/* Limitless Member App. Look and colors follow the pitch wireframe (Limitless blue, Inter + Montserrat). */
:root {
  --blue: #0E72C4; --blue-ink: #0A67B6; --blue-deep: #0B5FA5;
  --ink: #0E1A26; --ink-2: #33465A; --muted: #556575;
  --line: #D5DEE8; --line-2: #C5D1DE; --line-3: #E3E9F0;
  --bg: #F2F5F8; --card: #FFFFFF; --soft: #EAF0F6; --chip: #E4EAF1; --tint: #E3F1FD; --tint-line: #B9DBF7;
  --ok: #18774C; --ok-bg: #E1F3EA; --ok-line: #A9D9BF; --ok-ink: #0E3D27;
  --warn-bg: #FFF2D6; --warn-line: #F0D48F; --warn-ink: #5C3D00;
  --danger: #B13A25; --danger-bg: #FBE9E5; --danger-line: #EDB9AE; --star: #EE9B00; --unanswered: #8A5A00;
  --display: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--blue-ink); }
button, input, textarea { font-family: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #8CC8F7; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px; }

/* ---------- the frame: full screen on a phone, a phone shape on a computer ---------- */
.stage { height: 100vh; height: 100dvh; display: flex; }
.about { display: none; }
.phone { flex: 1; min-width: 0; display: flex; }
.app { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.boot { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--blue); }
.boot img { border-radius: 18px; }

@media (min-width: 760px) and (min-height: 560px) {
  body { background: #DCE4EC; }
  .stage { align-items: center; justify-content: center; gap: 64px; padding: 24px; }
  .phone { flex: none; width: 410px; height: min(864px, calc(100dvh - 48px)); padding: 10px; border-radius: 46px; background: var(--ink); box-shadow: 0 30px 70px rgba(14, 26, 38, 0.30); }
  .app { border-radius: 36px; }
}
@media (min-width: 1040px) and (min-height: 560px) {
  .about { display: flex; flex-direction: column; gap: 14px; max-width: 360px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
  .about img { border-radius: 14px; }
  .about .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); }
  .about h1 { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--ink); text-wrap: balance; }
  .about h2 { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 6px; }
  .about ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
  .about .fine { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 4px; }
}

/* ---------- screen skeleton ---------- */
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.scroll.pad { padding: 16px; gap: 14px; }
/* Inside a scrolling column nothing should squash to fit; it should scroll instead. */
.scroll > *, .stack > *, .list > * { flex-shrink: 0; }
.scroll.fab-room { padding-bottom: 96px; }
.tabs { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(8px + var(--safe-b)); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 12px; }
.tabs a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.tabs a[aria-current="page"] svg { stroke-width: 2.2; }

.bar { flex: none; background: #fff; border-bottom: 1px solid var(--line); padding: calc(20px + var(--safe-t)) 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.bar h1 { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.15; }
.bar .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar .aside { font-size: 13px; font-weight: 600; color: var(--muted); }
.bar.slim { flex-direction: row; align-items: center; justify-content: space-between; gap: 4px; padding: calc(10px + var(--safe-t)) 8px 10px; }
.bar.slim .left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bar-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-sub { font-size: 15px; font-weight: 600; color: var(--muted); }
.bar-step { font-size: 13px; font-weight: 600; color: var(--muted); padding-right: 10px; white-space: nowrap; }
.icon-btn { position: relative; flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); border-radius: 12px; cursor: pointer; text-decoration: none; }
.text-btn { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 10px; }
.text-btn.danger { color: var(--danger); }

.hero { flex: none; background: var(--blue); color: #fff; padding: calc(20px + var(--safe-t)) 20px 64px; display: flex; flex-direction: column; gap: 18px; }
.hero .row { display: flex; align-items: center; justify-content: space-between; }
.hero .logo { height: 24px; width: auto; }
.hero h1 { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.12; }
.hero p { font-size: 15px; }
.hero .stack { display: flex; flex-direction: column; gap: 4px; }
.hero.tall { padding: calc(56px + var(--safe-t)) 24px 88px; gap: 28px; }
.hero.tall .logo { height: 30px; align-self: flex-start; }
.hero.tall h1 { font-size: 32px; }
.hero.tall p { font-size: 16px; line-height: 1.5; }
.hero.tall .stack { gap: 10px; }
.hero .icon-btn { background: rgba(255, 255, 255, 0.16); color: #fff; border-radius: 22px; }
.dot { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 5px; background: #FFD23F; border: 2px solid var(--blue); }

/* ---------- pieces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.lift { flex: none; margin: -44px 16px 0; border: 0; border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px rgba(14, 26, 38, 0.10); }
.card.lift.big { margin: -56px 20px 0; border-radius: 20px; padding: 24px; gap: 16px; box-shadow: 0 10px 30px rgba(14, 26, 38, 0.12); }
.card h2 { font-size: 16px; font-weight: 700; }
.card.big h2, .card.lift.big h2 { font-size: 20px; }
a.card { text-decoration: none; color: var(--ink); }
.block { flex: none; padding: 20px 16px 4px; display: flex; flex-direction: column; gap: 12px; }
.block:last-of-type { padding-bottom: 24px; }
.block > h2, .block-head h2 { font-size: 18px; font-weight: 700; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.h-display { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.center { text-align: center; }
.grow { flex: 1; }
.empty { border: 1px dashed #A9B8C8; background: #fff; border-radius: 16px; padding: 20px 16px; text-align: center; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.empty strong { color: var(--ink); font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.1; cursor: pointer; text-decoration: none; text-align: center; }
.btn:active { background: var(--blue-deep); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn.wide { width: 100%; }
.btn.mid { min-height: 46px; font-size: 15px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn.plain { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn.text { background: transparent; color: var(--blue-ink); min-height: 44px; font-size: 15px; font-weight: 600; }
.btn.warn { background: #fff; color: var(--danger); border: 1.5px solid var(--line-2); }
.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--blue-ink); text-decoration: none; }

.note { flex: none; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.note svg { flex: none; margin-top: 1px; }
.note.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); }
.note.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.note.bad { background: var(--danger-bg); border: 1px solid var(--danger-line); color: #6E1F12; }
.note .sub { display: block; font-weight: 500; margin-top: 3px; }
.flash { margin: 14px 16px 0; }
.scroll.pad .flash { margin: 0; }
.testnote { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.testnote b { font-weight: 700; color: var(--ink-2); }
.testnote.demo { margin: 14px 28px 0; text-align: center; }

.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--chip); color: var(--ink-2); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.badge.staff { background: var(--tint); color: var(--blue-ink); }
.badge.sample { background: #F1ECDD; color: #6B5300; }
.badge.held { background: var(--warn-bg); color: var(--warn-ink); }

.chips { position: relative; flex: none; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 20px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer; white-space: nowrap; text-align: left; }
.chips.wrap .chip { white-space: normal; flex: 0 1 auto; }
.chip.on { border-color: var(--blue); background: var(--blue); color: #fff; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }

.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; background: var(--soft); color: var(--ink-2); }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; font-weight: 800; background: var(--blue); color: #fff; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who .name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.who .meta { font-size: 13px; color: var(--muted); }

.round { width: 52px; height: 52px; border-radius: 26px; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pct { font-size: 14px; font-weight: 700; color: var(--blue); }
.h-sub { font-size: 16px; font-weight: 700; }
.clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.chan { color: var(--blue-ink); }
.compose-row { display: flex; gap: 10px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 8px; }
.field .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-weight: 500; color: var(--muted); }
.field .req { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.input, .field input, .field textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--ink); background: #fff; min-width: 0; }
.field textarea, textarea.input { padding: 12px 14px; resize: none; line-height: 1.45; }
.field input:focus, .field textarea:focus, .input:focus { outline: 3px solid #8CC8F7; outline-offset: 1px; }
.field.bad input, .field.bad textarea { border-color: var(--danger); }
.field-err { font-size: 13px; font-weight: 600; color: var(--danger); }
.affixed { display: flex; align-items: center; gap: 8px; }
.affixed span { flex: none; font-size: 16px; font-weight: 600; color: var(--muted); }
.subhead { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-ink); margin-top: 6px; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px 0 42px; font-size: 16px; background: #F7F9FB; color: var(--ink); }
.video { display: flex; flex-direction: column; gap: 8px; }
.video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0E1A26; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video a { align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps i { height: 6px; border-radius: 3px; background: #DCE4EC; }
.steps i.on { background: var(--blue); }

/* ---------- home ---------- */
.meter { height: 8px; border-radius: 4px; background: #DCE4EC; overflow: hidden; }
.meter i { display: block; height: 8px; width: 0; border-radius: 4px; background: var(--blue); transition: width 0.4s ease; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; margin: 0 -16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.deal-mini { flex: none; width: 224px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.deal-mini .top { display: flex; align-items: center; gap: 10px; }
.deal-mini .kind { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.deal-mini .name { font-size: 16px; font-weight: 700; }
.deal-mini .offer { font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* ---------- deals ---------- */
.logo-tile { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: var(--blue); font-weight: 800; font-size: 16px; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-tile.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.logo-tile.sm img { padding: 4px; }
.logo-tile.lg { width: 64px; height: 64px; border-radius: 14px; font-size: 20px; }
.logo-tile.lg img { padding: 8px; }
.list { flex: 1; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.count { font-size: 13px; font-weight: 600; color: var(--muted); }
.deal-row { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); }
.deal-row .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.deal-row .title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 700; }
.deal-row .offer { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.deal-row .foot { font-size: 13px; color: var(--muted); }

.partner-head { display: flex; align-items: center; gap: 14px; }
.partner-head h1 { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.partner-head .sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 4px; }
.deal-card { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.deal-card .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); }
.deal-card .offer { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.25; }
.deal-card .fine { font-size: 14px; color: var(--ink-2); }
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px dashed var(--tint-line); border-radius: 12px; padding: 8px 8px 8px 14px; }
.code .lines { display: flex; flex-direction: column; min-width: 0; }
.code .label { font-size: 12px; font-weight: 600; color: var(--muted); }
.code .value { font-size: 17px; font-weight: 800; letter-spacing: 0.04em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.code .value.none { font-family: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.seg { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--chip); border-radius: 12px; padding: 4px; }
.seg button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 26, 38, 0.15); }
.table { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table .cap { padding: 12px 14px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line-3); }
.table .wrap { overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 9px 14px; border-bottom: 1px solid var(--line-3); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid #EEF2F6; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-weight: 700; white-space: nowrap; }
.table .hl { background: var(--tint); }
.table .sect td { background: #F7F9FB; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.terms { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.graphic { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.graphic img { display: block; width: 100%; height: auto; }
.links { display: flex; flex-direction: column; gap: 2px; }
.links a { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.stars { display: inline-flex; gap: 2px; color: var(--star); vertical-align: middle; }
.stars .off { color: #CBD5DF; }
.rating-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.review .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.review .text { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.review .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.review .foot { display: flex; justify-content: flex-end; }
.star-pick { display: flex; gap: 4px; }
.star-pick button { width: 48px; height: 48px; border: 0; background: transparent; color: #CBD5DF; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.star-pick button.on { color: var(--star); }

/* ---------- community ---------- */
.post { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.post .text { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.post.full .text { font-size: 16px; }
.post .photo { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; background: #DCE4EC; }
.post.full .photo { max-height: none; }
.post .counts { display: flex; gap: 18px; font-size: 13px; font-weight: 600; color: var(--muted); }
.post .actions { display: flex; align-items: center; gap: 12px; }
.like { min-height: 40px; padding: 0 14px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); }
.like.on { border-color: var(--blue); background: var(--tint); color: var(--blue); }
.fab { position: absolute; right: 18px; bottom: calc(86px + var(--safe-b)); z-index: 5; width: 58px; height: 58px; border: 0; border-radius: 29px; background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(14, 114, 196, 0.35); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.reply { display: flex; gap: 10px; align-items: flex-start; }
.reply .bubble { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.reply .name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.reply .name .meta { font-weight: 500; color: var(--muted); }
.reply .text { font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-bar { flex: none; margin: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(12px + var(--safe-b)); display: flex; gap: 8px; align-items: center; }
.reply-bar input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--line-2); border-radius: 23px; padding: 0 16px; font-size: 16px; color: var(--ink); }
.reply-bar button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 23px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.thumb { position: relative; align-self: flex-start; }
.thumb img { display: block; height: 96px; width: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.thumb button { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 15px; border: 0; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- profile ---------- */
.me-head { flex: none; background: #fff; border-bottom: 1px solid var(--line); padding: calc(24px + var(--safe-t)) 16px 18px; display: flex; align-items: center; gap: 14px; }
.me-head h1 { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.me-head .lines { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.me-head .done { font-size: 13px; color: var(--ok); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 24px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; }
.acc > button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 14px 16px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; text-align: left; color: var(--ink); }
.acc > button .lines { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc > button .t { font-size: 16px; font-weight: 700; }
.acc > button .c { font-size: 13px; color: var(--muted); }
.acc > button svg { flex: none; transition: transform 0.15s ease; }
.acc > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc .inner { border-top: 1px solid var(--line-3); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.qa { display: flex; flex-direction: column; gap: 3px; }
.qa .q { font-size: 13px; line-height: 1.4; color: var(--muted); }
.qa .a { font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.qa .a.none { font-weight: 500; color: var(--unanswered); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; width: 100%; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; font-size: 15px; color: var(--ink); }
.switch .track { flex: none; width: 46px; height: 28px; border-radius: 14px; position: relative; background: #B8C4D0; transition: background 0.15s ease; }
.switch .track i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: left 0.15s ease; }
.switch[aria-checked="true"] .track { background: var(--blue); }
.switch[aria-checked="true"] .track i { left: 21px; }
.rowlink { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.rowlink .lines { display: flex; flex-direction: column; gap: 2px; }
.rowlink .t { font-size: 16px; font-weight: 700; }
.rowlink .c { font-size: 13px; color: var(--muted); }
.rowlink svg { flex: none; transform: rotate(-90deg); color: var(--muted); }

/* ---------- alerts and team view ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); }
.alert.unread { border-color: var(--tint-line); background: #F4FAFF; }
.alert .lines { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.alert .what { font-size: 15px; line-height: 1.4; }
.alert .snip { font-size: 14px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.tile b { font-family: var(--display); font-size: 22px; font-weight: 800; }
.tile span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.team-item { border-top: 1px solid var(--line-3); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.team-item:first-of-type { border-top: 0; padding-top: 0; }
.team-item .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.team-item .head b { font-size: 15px; }
.team-item .quote { background: #F7F9FB; border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.team-item details { font-size: 13px; color: var(--ink-2); }
.team-item summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.team-item details ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.team-item details code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--soft); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }

/* ---------- sheets ---------- */
.sheet-back { position: absolute; inset: 0; z-index: 20; background: rgba(9, 20, 32, 0.52); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; max-height: 92%; overflow-y: auto; }
.sheet .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet .top h2 { font-size: 17px; font-weight: 700; }
.sheet-back.enter { animation: fade 0.16s ease-out; }
.sheet-back.enter .sheet { animation: rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0.6; } }

.skeleton { border-radius: 16px; height: 92px; background: linear-gradient(90deg, #E8EDF2 25%, #F2F5F8 37%, #E8EDF2 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.signin-foot { flex: none; margin-top: auto; padding: 24px 24px calc(32px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
