/* 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; on a computer (1024px+) a left menu and a wide content area ---------- */
.app { position: relative; height: 100vh; height: 100dvh; 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; }
.solo, .shell { flex: 1; min-height: 0; display: flex; }
.solo > .screen { flex: 1; }
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.main > .screen { flex: 1; min-height: 0; }
.side, .testbar { display: none; }
.desk-only { display: none !important; }

/* ---------- 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(5, 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; overflow: hidden; 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(5, 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, .seg a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; }
.seg button[aria-selected="true"], .seg a[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 textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 160px; border: 1.5px solid var(--line-2); border-radius: 23px; padding: 11px 16px; font-size: 16px; line-height: 1.4; color: var(--ink); resize: none; }
.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; }
}

/* =====================================================================================================================
   Version 2 (2026-11-23): desktop layout, directory and map, messages, learn, webinars, banner ads, partner form.
   ===================================================================================================================== */
.phone-only { display: block; }
.badge.plat { background: #E6EAF0; color: #2E3B4A; }
.badge.gold { background: #FBEFC9; color: #6B4E00; }
.badge.partner { background: #FDE7D9; color: #8A3B0B; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.coach { background: var(--ok-bg); color: var(--ok); }
.avatar.xxl { width: 96px; height: 96px; font-size: 32px; font-weight: 800; background: var(--blue); color: #fff; }
.pill { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #D93B2B; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tabs .ic { position: relative; display: inline-flex; }
.count-dot { position: absolute; top: -5px; right: -11px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #D93B2B; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ok-text { color: var(--ok); font-weight: 700; }
.input, select.input { appearance: none; -webkit-appearance: none; }
select.input { padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23556575' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; font-size: 16px; color: var(--ink); }
.field select { width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-actions { display: flex; flex-direction: column; gap: 6px; }
.btn.going { background: var(--ok); }
.text-btn.tiny { min-height: 0; padding: 0; font-size: 12px; color: inherit; text-decoration: underline; }
.text-btn.small { font-size: 13px; color: var(--muted); align-self: flex-start; padding: 0; min-height: 36px; }
.rowlink.tight { min-height: 48px; padding: 10px 14px; }
button.rowlink { width: 100%; cursor: pointer; text-align: left; font: inherit; }
.big-num { font-size: 15px; color: var(--ink-2); }
.big-num b { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--blue); margin-right: 4px; }
.prose { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.prose p { white-space: pre-wrap; overflow-wrap: anywhere; }
.terms.big { gap: 10px; font-size: 15px; }
.quote { background: #F7F9FB; border: 1px solid var(--line-3); border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); }
.pic-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.thumb-img { height: 72px; width: auto; border-radius: 10px; border: 1px solid var(--line); }
.check { display: flex; align-items: flex-start; gap: 12px; border: 0; background: transparent; padding: 6px 0; cursor: pointer; text-align: left; font-size: 15px; line-height: 1.45; color: var(--ink); }
.check .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; }
.check[aria-checked="true"] .box { background: var(--blue); border-color: var(--blue); }
.field.agree { gap: 2px; }
.field.agree.bad .box { border-color: var(--danger); }
.btn.text.sm { min-height: 36px; font-size: 14px; align-self: flex-start; padding: 0; }
.chip svg { margin-right: 4px; vertical-align: -3px; }

/* home */
.hero-acts { display: flex; align-items: center; gap: 8px; }
.hero-me { display: inline-flex; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); }
.hero.flat { padding-bottom: 24px; }
.dash { display: flex; flex-direction: column; padding-bottom: 24px; }
.dash .col-main, .dash .col-side { display: contents; }
.dash .o1 { order: 0; } .dash .flash { order: 1; } .dash .o2 { order: 2; } .dash .o3 { order: 3; } .dash .o4 { order: 4; }
.dash .o5 { order: 5; } .dash .o6 { order: 6; } .dash .o7 { order: 7; } .dash .o8 { order: 8; }
.dash .o2 { padding: 16px 16px 0; }
.news-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.news-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line-3); }
.news-item:first-child { border-top: 0; }
.news-item .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.news-item .lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.news-item .k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-ink); }
.news-item .t { font-size: 15px; font-weight: 700; line-height: 1.3; }
.news-item .m { font-size: 13px; color: var(--muted); }
.news-item > svg { flex: none; transform: rotate(-90deg); color: var(--muted); }
.post.mini { gap: 6px; }
.coach-card .who .meta { line-height: 1.4; }

/* banner ads */
.ad { display: flex; align-items: stretch; gap: 0; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; background: linear-gradient(135deg, #0E72C4 0%, #0A4F8C 100%); box-shadow: 0 6px 18px rgba(14, 114, 196, 0.22); }
.ad-img { flex: none; width: 34%; max-width: 180px; object-fit: cover; background: #0A4F8C; }
.ad-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ad-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.ad-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255, 255, 255, 0.18); padding: 2px 7px; border-radius: 5px; }
.ad-who { font-weight: 600; opacity: 0.9; }
.ad strong { font-family: var(--display); font-size: 17px; font-weight: 800; line-height: 1.25; }
.ad-text { font-size: 14px; line-height: 1.4; opacity: 0.92; }
.ad-cta { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--blue-ink); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; }

/* webinars and resources */
.event { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.event .lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.event .t { font-size: 15px; font-weight: 700; line-height: 1.3; }
.event .m { font-size: 13px; color: var(--muted); }
.event .badge { align-self: flex-start; }
.event .btn { flex: none; }
.daybox { flex: none; width: 52px; height: 56px; border-radius: 12px; background: var(--tint); color: var(--blue-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.daybox b { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.daybox i { font-style: normal; font-family: var(--display); font-size: 22px; font-weight: 800; }
.event-when { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.event-when .lines { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ink-2); }
.event-when b { font-size: 16px; color: var(--ink); }
.rsvp-box { display: flex; flex-direction: column; gap: 10px; }
.sect { display: flex; flex-direction: column; gap: 10px; }
.res-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.res { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.res-top { display: flex; align-items: center; gap: 10px; }
.res .k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-ink); }
.res .t { font-size: 16px; font-weight: 700; line-height: 1.3; }
.res .s { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.res .m { font-size: 13px; color: var(--muted); margin-top: auto; }
.brand-tile { background: var(--blue); color: #fff; border-color: var(--blue); }
.article { display: flex; flex-direction: column; gap: 14px; }

/* members: directory and map */
.members .bar { gap: 10px; }
.bar .aside svg { vertical-align: -3px; }
.dir-search { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.dir-search .q { grid-column: 1 / -1; }
.dir-search .input { min-height: 46px; height: 46px; font-size: 16px; }
.dir-search .btn { min-height: 46px; }
.dir { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.dir.view-list .dir-map { display: none; }
.dir.view-map .dir-list { display: none; }
.dir-map { flex: 1; min-height: 0; position: relative; background: #DCE4EC; }
.map-box { position: absolute; inset: 0; }
.dir-map > .empty { margin: 16px; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mtop { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.mtop .lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mtop .name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mtop .co { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.mtop .meta, .profile-card-big .meta { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.mcard .about { font-size: 14px; color: var(--ink-2); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mact { display: flex; gap: 8px; }
.pin-wrap { background: none; border: 0; }
.pin { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(14, 26, 38, 0.35); display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--text); overflow: hidden; }
.pin.s { background: #7D8FA3; }
.pin.c { background: var(--ok); }
.pin img { width: 100%; height: 100%; object-fit: cover; }
.pop { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); font: 14px/1.35 var(--text); }
.pop b { font-size: 15px; }
.pop span { color: var(--muted); }
.pop u { color: var(--blue-ink); font-weight: 700; text-decoration: none; margin-top: 4px; }
.profile-card-big { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 18px; }
.profile-card-big .badges { display: flex; gap: 6px; }
.profile-card-big .co { font-size: 16px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.co-logo { height: 28px; width: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.m-actions { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

/* messages */
.messages .bar { padding-bottom: 14px; }
.messages.in-thread > .bar { display: none; }
.split { flex: 1; min-height: 0; display: flex; }
.pane-list { flex: 1; gap: 8px; }
.pane-main { display: none; flex: 1; min-width: 0; min-height: 0; flex-direction: column; }
.split.has-pane .pane-list { display: none; }
.split.has-pane .pane-main { display: flex; }
.pane-empty { margin: auto; max-width: 360px; }
.small-empty { padding: 16px; }
.conv { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-decoration: none; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.conv .lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv .top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.conv .name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.conv .when { flex: none; font-size: 12px; color: var(--muted); }
.conv .last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .name { font-weight: 800; }
.conv.unread .last { color: var(--ink); font-weight: 600; }
.conv.on { border-color: var(--blue); background: #F4FAFF; }
.conv .pill { margin-left: 0; }
.req-row { border-color: var(--tint-line); background: #F4FAFF; }
.req-row .pill { margin-left: auto; }
.reqcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.reqcard .who { text-decoration: none; color: var(--ink); }
.row-end { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.thread-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.thread-head .lines { display: flex; flex-direction: column; min-width: 0; margin-left: 6px; }
.thread-head .bar-sub.small { font-size: 12.5px; font-weight: 500; }
.thread-head .left > a { display: inline-flex; }
.msgs { gap: 10px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 9px 13px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg.mine .bubble { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg .text { font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .meta { font-size: 11.5px; color: var(--muted); }
.msg.mine .meta { color: rgba(255, 255, 255, 0.8); text-align: right; }
.day-sep { display: flex; justify-content: center; margin: 6px 0 2px; }
.day-sep span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--chip); padding: 3px 10px; border-radius: 10px; }
.pad-b { padding: 12px 16px calc(16px + var(--safe-b)); }

/* profile */
.profile-grid .pcol { display: contents; }
.qa-grid { display: flex; flex-direction: column; gap: 14px; }
.mute-list { font-size: 14px; }
.mute-list summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; color: var(--blue-ink); }
.mute-list .chips { margin-top: 8px; }
.mute-list p { margin-top: 8px; }

/* signed-out screens on wide screens: everything in one centred column */
.signin-foot a.small { color: var(--muted); text-align: center; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .res-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .dir-search { grid-template-columns: 110px 140px 1fr auto auto; }
  .dir-search .q { grid-column: auto; }
}
@media (min-width: 760px) {
  .grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-items: start; }
  .grid-form > .full, .grid-form > .subhead, .grid-form > .lead, .grid-form > .video, .grid-form > .form-actions,
  .grid-form > .btn-row, .grid-form > .note, .grid-form > fieldset { grid-column: 1 / -1; }
  .qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .qa-grid .full { grid-column: 1 / -1; }
  .welcome .scroll { align-items: center; }
  .welcome .hero.tall { width: 100%; align-items: center; text-align: center; padding: 64px 24px 104px; }
  .welcome .hero.tall .logo { align-self: center; }
  .welcome .hero .stack { max-width: 560px; }
  .welcome .card.lift.big { width: min(500px, calc(100% - 40px)); margin: -64px auto 0; }
  .welcome .signin-foot, .welcome .testnote.demo { width: min(500px, calc(100% - 40px)); }
  .narrow { max-width: 780px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 14px; }
  .sheet-back { align-items: center; justify-content: center; padding: 24px; }
  .sheet { width: min(560px, 100%); border-radius: 20px; max-height: 88vh; }
}
@media (max-width: 759px) {
  .narrow { display: contents; }
}

/* ---------- computer layout ---------- */
@media (min-width: 1024px) {
  .side { display: flex; flex-direction: column; flex: none; width: 248px; background: #fff; border-right: 1px solid var(--line); padding: 20px 12px 14px; gap: 18px; overflow-y: auto; }
  .brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px; border-radius: 14px; background: var(--blue); text-decoration: none; }
  .brand img { height: 26px; width: auto; }
  .brand span { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); padding-top: 3px; }
  .side-links { display: flex; flex-direction: column; gap: 2px; }
  .side-links a, .side-alert { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 600; }
  .side-links a:hover, .side-alert:hover { background: var(--soft); }
  .side-links a[aria-current="page"] { background: var(--tint); color: var(--blue-ink); font-weight: 700; }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-3); padding-top: 12px; }
  .side-me { display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 6px; border-radius: 12px; text-decoration: none; color: var(--ink); background: #F7F9FB; }
  .side-me .lines { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--muted); }
  .side-me b { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-me .lines span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .testbar { display: block; flex: none; background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 13px; padding: 7px 32px; }
  .tabs, .fab { display: none; }
  .phone-only { display: none !important; }
  .desk-only { display: inline-flex !important; }

  .bar { padding: 22px 32px 14px; }
  .bar h1 { font-size: 28px; }
  .bar.slim { padding: 12px 24px; }
  .scroll.pad { padding: 24px 32px 40px; gap: 16px; }
  .scroll.pad > *, .list > *, .feed, .article, .profile-card-big { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; }
  .scroll.pad > .feed { max-width: 780px; }
  .scroll.pad > .article { max-width: 820px; }
  .scroll.pad > .profile-card-big { max-width: 640px; padding: 36px; }
  .scroll.pad > .narrow { max-width: 780px; }

  .shell .hero { margin: 24px 32px 0; border-radius: 22px; padding: 26px 32px 30px; }
  .shell .hero .logo { display: none; }
  .home .hero .row { justify-content: flex-end; position: absolute; right: 52px; top: 26px; }
  .home .hero { position: relative; }
  .shell .hero h1 { font-size: 32px; }
  .welcome .hero.tall .logo { height: 34px; }
  .home .card.lift { margin: 0; box-shadow: none; border: 1px solid var(--line); }
  .dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 22px; padding: 22px 32px 40px; align-items: start; max-width: 1244px; width: 100%; margin: 0 auto; }
  .dash .col-main, .dash .col-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
  .dash .block { padding: 0; }
  .dash .o2 { padding: 0; }
  .dash .flash { margin: 0; }
  .hscroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .deal-mini { width: auto; }

  .list { padding: 22px 32px 40px; gap: 14px; }
  .deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
  .two-col { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .two-col .col-a { position: sticky; top: 0; }
  .ad { max-width: 100%; }
  .ad-body { padding: 16px 20px; }
  .ad strong { font-size: 19px; }

  .members .bar, .messages .bar { padding-bottom: 14px; }
  .dir { display: grid; grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); }
  .dir.view-list .dir-map, .dir.view-map .dir-list { display: flex; }
  .dir-list.scroll.pad { padding: 18px 20px 32px; border-right: 1px solid var(--line); }
  .dir-list.scroll.pad > * { max-width: none; }

  .messages.in-thread > .bar { display: flex; }
  .split { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
  .split .pane-list, .split.has-pane .pane-list { display: flex; border-right: 1px solid var(--line); padding: 16px; }
  .split .pane-list > * { max-width: none; }
  .split .pane-main { display: flex; }
  .thread-head .icon-btn:first-child { display: none; }
  .thread-wrap > .bar.slim .left > .icon-btn:first-child { display: none; }
  .msgs.scroll.pad > * { max-width: none; margin-left: 0; margin-right: 0; width: auto; }
  .msgs.scroll.pad > .msg.mine { margin-left: auto; }
  .msgs.scroll.pad > .testnote, .msgs.scroll.pad > .day-sep, .msgs.scroll.pad > .empty, .msgs.scroll.pad > .note { width: 100%; }
  .msg { max-width: 70%; }
  .reply-bar { padding: 12px 20px 16px; }

  .me-head { padding: 28px 32px 22px; }
  .me-head > * { max-width: none; }
  .profile-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr); gap: 22px; align-items: start; padding: 24px 32px 40px; max-width: 1244px; width: 100%; margin: 0 auto; }
  .profile-grid .pcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

  .join .scroll.pad { padding-top: 32px; }
}
@media (min-width: 1400px) {
  .res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.feed { display: flex; flex-direction: column; gap: 14px; }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col .col-a, .two-col .col-b { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.two-col { display: flex; flex-direction: column; gap: 14px; }
.thread-head a, .hero-me, .side-me, .mtop, .conv, .news-item, .res, .event .lines { text-decoration: none; }
@media (min-width: 1024px) { .two-col { display: grid; } }

/* Alerts on this device (Profile > Notifications) */
.device { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #e3e8ef); display: grid; gap: 8px; justify-items: start; }
.device .subhead { margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
