* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; color: inherit; }
kbd { font-family: var(--font); font-size: 10px; border: .5px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--faint); margin-left: auto; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; border-radius: 6px; }

/* ---------- Shell: mobile-first single column ---------- */
.shell { --offline-reserve: calc(82px + env(safe-area-inset-top)); display: flex; flex-direction: column; min-height: 100vh; max-width: 520px; margin: 0 auto; background: var(--bg); position: relative; }
.sidebar { display: none; }
.listcol { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.listscroll { flex: 1; overflow-y: auto; }
.listscroll::-webkit-scrollbar { width: 0; }
.detailcol { display: none; }
.mobileonly { display: flex; }

/* Mobile: open thread overlays the list */
.shell.showdetail .detailcol { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 20; background: var(--bg); max-width: 520px; margin: 0 auto; }
.shell.showdetail .tabbar { display: none; }
.shell.is-offline .listcol { padding-top: var(--offline-reserve); }
.shell.showdetail.is-offline .detailcol { top: var(--offline-reserve); }

/* Top bar (mobile) */
.topbar { align-items: center; gap: 10px; padding: 12px 16px; border-bottom: .5px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.topbar .logo { width: 26px; height: 26px; flex: 0 0 auto; }
.topbar .wm { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.topbar .wm b { color: var(--amber-d); }
.topbar .spacer { flex: 1; }
.moon { width: 40px; height: 34px; border: .5px solid var(--line); background: var(--card); border-radius: 999px; font-size: 15px; cursor: pointer; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; }
.shell.is-sabbath .moon { background: var(--amber-t); border-color: var(--amber); color: var(--amber-tt); }

.banner { display: none; padding: 10px 16px; font-size: 16px; line-height: 1.5; background: var(--amber-t); color: var(--amber-tt); border-bottom: .5px solid var(--line); }
.shell.is-sabbath .banner { display: block; }

/* ---------- Titles / rows (shared) ---------- */
.topline { padding: 16px 18px 2px; display: flex; align-items: baseline; justify-content: space-between; }
.topline .t { font-size: 25px; font-weight: 600; letter-spacing: -.02em; }
.sect { padding: 14px 18px 6px; font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sect .n { background: var(--ink); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 0 6px; }

.tcard { display: flex; gap: 11px; width: 100%; text-align: left; padding: 12px 16px; background: var(--card); border: none; border-top: .5px solid var(--line); cursor: pointer; align-items: stretch; }
.tcard.active { background: var(--amber-t); }
.tcard .rail { width: 3px; border-radius: 3px; flex: 0 0 auto; }
.tcard .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tcard .src { font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.tcard .ttl { font-size: 15px; font-weight: 400; line-height: 1.25; color: var(--ink); }
.tcard .ttl.w { font-weight: 600; }
.tcard .snip { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.tcard .snip b { color: var(--ink); font-weight: 600; }
.tcard .tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.tcard .tag { font-size: 10.5px; color: var(--amber-tt); background: var(--amber-t); border-radius: 999px; padding: 1px 8px; }
.tcard .av { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; align-self: center; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }

/* Thread */
.thead { display: flex; align-items: center; gap: 8px; padding: 12px 12px; position: sticky; top: 0; z-index: 4; }
.thead .back { border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px 0 2px; }
.thead .ti { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.thead .ti .a { font-size: 15px; font-weight: 600; }
.thead .ti .b { font-size: 12px; margin-top: 1px; }
.thead .open { border: none; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 6px 11px; color: #fff; cursor: pointer; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 15px 6px; display: flex; flex-direction: column; gap: 13px; }
.msgs::-webkit-scrollbar { width: 0; }
.m { display: flex; gap: 8px; }
.m.me { flex-direction: row-reverse; }
.m .mav { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }
.m .col { display: flex; flex-direction: column; max-width: 72%; }
.m.me .col { align-items: flex-end; }
.m .nm { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.m .bub { border-radius: 15px; padding: 9px 12px; font-size: 14px; line-height: 1.4; }
.m.them .bub { background: var(--card); border: .5px solid var(--line); border-top-left-radius: 4px; }
.m.me .bub { border-top-right-radius: 4px; }
.rx { display: flex; gap: 6px; margin-top: 5px; }
.m.me .rx { justify-content: flex-end; }
.rx .chip { font-size: 11px; border: .5px solid var(--line); background: var(--card); border-radius: 999px; padding: 2px 8px; cursor: pointer; user-select: none; }
.rx .chip.on { background: var(--amber-t); border-color: var(--amber); color: var(--amber-tt); font-weight: 600; }

/* Manual read-aloud */
.speech-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 9px 0 1px; }
.speech-controls.thread-speech { padding: 8px 14px; background: var(--card); border-bottom: .5px solid var(--line); }
.speech-controls button { min-height: 36px; border: .5px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.speech-controls button:first-child { border-color: var(--amber); color: var(--amber-tt); }
.speech-controls button[disabled] { opacity: .45; cursor: default; }
.speech-status { color: var(--muted); font-size: 12px; line-height: 1.45; padding-top: 8px; }
.offline-status { position: fixed; top: max(8px, env(safe-area-inset-top)); left: 50%; z-index: 30; pointer-events: none; width: min(calc(100% - 24px), 496px); margin: 0; padding: 10px 12px; transform: translateX(-50%); border: 1px solid var(--amber); border-radius: 12px; background: var(--amber-t); box-shadow: 0 4px 18px rgba(0,0,0,.12); color: var(--ink); font-size: 16px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
[data-mutation]:disabled { cursor: not-allowed; opacity: .55; }
.thread-speech + .msgs { padding-top: 10px; }

.composer { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-top: .5px solid var(--line); background: var(--card); }
.composer .at { font-size: 19px; color: var(--muted); }
.composer input { flex: 1; background: var(--bg); border: .5px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: 14px; color: var(--ink); outline: none; }
.composer input:focus { border-color: var(--amber); }
.composer .send { width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--amber-d); color: #fff; font-size: 18px; cursor: pointer; flex: 0 0 auto; }

/* Empty detail state (desktop) */
.empty-detail { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--faint); gap: 10px; padding: 40px; }
.empty-detail .tile { width: 54px; height: 54px; opacity: .9; }
.empty-detail .h { font-size: 15px; color: var(--muted); font-weight: 500; }
.empty-detail .s { font-size: 13px; }

/* Catch-up */
.catch { margin: 14px 16px 6px; background: linear-gradient(120deg,#f6b45a,#c9781c); color: #fff; border-radius: 16px; padding: 15px 16px; }
.catch .h { font-size: 15px; font-weight: 600; }
.catch .s { font-size: 12.5px; opacity: .93; margin-top: 3px; line-height: 1.4; }
.cbul { display: flex; gap: 10px; width: 100%; text-align: left; margin: 0 16px 9px; background: var(--card); border: .5px solid var(--line); border-radius: 13px; padding: 12px 14px; cursor: pointer; }
.cbul.active { border-color: var(--amber); }
.cbul .rail { width: 3px; border-radius: 3px; flex: 0 0 auto; }
.cbul .cx { flex: 1; min-width: 0; }
.cbul .cs { font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.cbul .cb { font-size: 13.5px; line-height: 1.35; }
.cbul .cq { font-size: 11.5px; margin-top: 3px; }
.cbul .cq.need { color: var(--amber-tt); font-weight: 600; }
.cbul .cq.fyi { color: var(--muted); }

/* Search */
.searchwrap { padding: 12px 16px 4px; }
.searchbar { display: flex; align-items: center; gap: 9px; background: var(--card); border: .5px solid var(--line); border-radius: 12px; padding: 10px 13px; }
.searchbar input { flex: 1; border: none; background: none; font-size: 15px; color: var(--ink); outline: none; }
.results .sres { display: flex; gap: 10px; width: 100%; text-align: left; padding: 11px 16px; background: var(--card); border: none; border-top: .5px solid var(--line); cursor: pointer; }
.results .sres.active { background: var(--amber-t); }
.results .rail { width: 3px; border-radius: 3px; }
.results .sx { flex: 1; min-width: 0; }
.results .ss { font-size: 11px; font-weight: 600; margin-bottom: 1px; }
.results .sb { font-size: 14px; }
.results .sh { font-size: 12px; color: var(--muted); margin-top: 1px; }
.results mark { background: var(--amber-t); color: var(--amber-tt); border-radius: 3px; padding: 0 2px; }
.empty { padding: 40px 24px; text-align: center; color: var(--faint); font-size: 13px; line-height: 1.5; }

/* Compose */
.cp { padding: 16px 18px 8px; }
.cp h3 { font-size: 19px; font-weight: 600; margin: 0 0 3px; }
.cp p { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.4; }
.anchor { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: .5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 9px; cursor: pointer; }
.anchor.sel { border-color: var(--amber); box-shadow: 0 0 0 1.5px var(--amber); }
.anchor .ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.anchor .tx { flex: 1; }
.anchor .tx .a { font-size: 14px; font-weight: 600; }
.anchor .tx .b { font-size: 12px; color: var(--muted); margin-top: 1px; }
.anchor .rd { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; }
.anchor.sel .rd { border-color: var(--amber-d); background: var(--amber-d); box-shadow: inset 0 0 0 3px #fff; }
.cta { display: block; width: calc(100% - 36px); margin: 10px 18px 16px; padding: 13px; border: none; border-radius: 13px; background: var(--amber-d); color: #fff; text-align: center; font-size: 15px; font-weight: 600; cursor: pointer; }

/* Mobile tab bar */
.tabbar { border-top: .5px solid var(--line); background: var(--card); padding: 6px 0 max(8px, env(safe-area-inset-bottom)); position: sticky; bottom: 0; }
.tabbar button { flex: 1; border: none; background: none; padding: 6px 0; font-size: 11px; color: var(--faint); cursor: pointer; }
.tabbar button .ic { display: block; font-size: 20px; line-height: 1.15; }
.tabbar button.on { color: var(--amber-d); }
.fam { text-align: center; font-size: 11px; color: var(--faint); padding: 12px 0 6px; }

/* ---------- Desktop: three-pane platform (≥ 860px) ---------- */
@media (min-width: 860px) {
  .shell { display: grid; grid-template-columns: 248px minmax(320px, 400px) 1fr; grid-template-rows: 100vh; max-width: 1440px; height: 100vh; box-shadow: 0 0 60px rgba(0,0,0,.05); }
  .mobileonly { display: none !important; }

  .sidebar { display: flex; flex-direction: column; border-right: .5px solid var(--line); background: var(--card); padding: 16px 12px; min-height: 0; }
  .sidebar .brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; }
  .sidebar .logo { width: 28px; height: 28px; }
  .sidebar .wm { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
  .sidebar .wm b { color: var(--amber-d); }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: none; background: none; padding: 9px 11px; border-radius: 9px; font-size: 14px; color: var(--ink); cursor: pointer; }
  .side-nav button .ic { font-size: 16px; width: 18px; text-align: center; color: var(--muted); }
  .side-nav button.on { background: var(--amber-t); color: var(--amber-tt); font-weight: 500; }
  .side-nav button.on .ic { color: var(--amber-d); }
  .side-foot { margin-top: auto; }
  .side-rest { display: flex; align-items: center; gap: 11px; width: 100%; border: .5px solid var(--line); background: var(--card); padding: 9px 11px; border-radius: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
  .side-rest .ic { font-size: 15px; }
  .shell.is-sabbath .side-rest { background: var(--amber-t); border-color: var(--amber); color: var(--amber-tt); }
  .side-foot .fam { text-align: left; padding: 12px 4px 0; }

  .listcol { border-right: .5px solid var(--line); background: var(--bg); min-height: 0; }
  .listcol .banner { border-bottom: .5px solid var(--line); }
  .detailcol { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
  .shell.showdetail .detailcol { position: static; inset: auto; z-index: auto; max-width: none; margin: 0; }
  .shell.is-offline .detailcol { padding-top: var(--offline-reserve); }
  .shell.showdetail.is-offline .detailcol { top: auto; }
  .detailcol .thead .back { display: none; }
  .m .col { max-width: 60%; }
}

@media (hover: hover) {
  .tcard:hover, .cbul:hover, .results .sres:hover { background: #faf9f5; }
  .side-nav button:hover, .side-rest:hover { background: #efeee8; }
  .tcard.active:hover, .results .sres.active:hover { background: var(--amber-t); }
}

/* System cards (Happening) */
.scard { display: flex; gap: 11px; padding: 13px 16px; background: var(--card); border-top: .5px solid var(--line); }
.scard .rail { width: 3px; border-radius: 3px; flex: 0 0 auto; }
.scard .body { flex: 1; min-width: 0; }
.scard .src { font-size: 11px; font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.scard .src .chip { border-radius: 5px; padding: 1px 5px; }
.scard .ttl { font-size: 14px; font-weight: 500; }
.scard .det { font-size: 12px; color: var(--muted); margin-top: 1px; }
.scard .acts { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.scard .act { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 6px 12px; border: .5px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.scard .act.primary { color: #fff; border: none; }
.scard.done { opacity: .5; }
.scard .done-tag { font-size: 11px; color: var(--ok); font-weight: 600; margin-top: 8px; }

/* Channels */
.chan { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 12px 16px; background: var(--card); border: none; border-top: .5px solid var(--line); cursor: pointer; }
.chan .ci { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.chan .cm { flex: 1; min-width: 0; }
.chan .cn { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.chan .cd { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.chan .badge { font-size: 10px; background: var(--amber-t); color: var(--amber-tt); border-radius: 999px; padding: 1px 7px; font-weight: 600; }
.chan .chev { color: var(--faint); font-size: 18px; }
.chan[disabled] { cursor: default; opacity: .75; }

/* Command */
.cmd { padding: 14px 16px; }
.cmd h3 { font-size: 19px; font-weight: 600; margin: 2px 2px 3px; }
.cmd p { font-size: 12.5px; color: var(--muted); margin: 0 2px 12px; line-height: 1.4; }
.cmd .box { display: flex; gap: 8px; align-items: flex-end; }
.cmd textarea { flex: 1; min-height: 64px; resize: none; background: var(--card); border: .5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-family: inherit; font-size: 14px; color: var(--ink); outline: none; }
.cmd textarea:focus { border-color: var(--amber); }
.cmd .go { border: none; background: var(--amber-d); color: #fff; border-radius: 10px; padding: 11px 15px; font-weight: 600; cursor: pointer; }
.plan { margin-top: 14px; }
.plan .lbl { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 0 2px 8px; }
.step { display: flex; align-items: center; gap: 11px; background: var(--card); border: .5px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 8px; }
.step .si { width: 30px; height: 30px; border-radius: 8px; background: var(--amber-t); color: var(--amber-tt); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
.step .sx { flex: 1; }
.step .sa { font-size: 13.5px; font-weight: 500; }
.step .sb { font-size: 11.5px; color: var(--muted); }
.step .chk { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.plan .confirm { display: block; width: 100%; border: none; background: var(--amber-d); color: #fff; border-radius: 12px; padding: 13px; font-weight: 600; font-size: 15px; cursor: pointer; margin-top: 4px; }
.plan .success { background: var(--bg); border: .5px solid var(--ok); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 600; margin-top: 4px; }

/* Rest screen */
.rest { padding: 14px 16px; }
.rest .hero { background: linear-gradient(120deg,#f6b45a,#c9781c); color: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.rest .hero .h { font-size: 15px; font-weight: 600; }
.rest .hero .s { font-size: 12.5px; opacity: .93; margin-top: 3px; line-height: 1.4; }
.rrow { display: flex; align-items: center; gap: 12px; background: var(--card); border: .5px solid var(--line); border-radius: 13px; padding: 11px 13px; margin-bottom: 8px; }
.rrow .ri { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; }
.rrow .rt { flex: 1; }
.rrow .rt .a { font-size: 13.5px; font-weight: 500; }
.rrow .rt .b { font-size: 11.5px; color: var(--muted); }
.tog { width: 44px; height: 44px; min-width: 44px; padding: 9px 0; background: transparent; cursor: pointer; flex: 0 0 auto; border: none; display: flex; align-items: center; justify-content: center; }
.tog-track { display: block; width: 44px; height: 26px; border-radius: 999px; background: #d8d6cd; position: relative; flex: 0 0 auto; }
.tog-track i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.tog.on .tog-track, .tog-track.on { background: var(--amber); }
.tog.on .tog-track i, .tog-track.on i { left: 21px; }

/* Care privacy banner */
.care-banner { margin: 10px 15px 0; background: var(--src-unison-t); color: var(--src-unison-d); border-radius: 12px; padding: 10px 13px; font-size: 12px; line-height: 1.45; }

/* Handoff sheet */
.sheet { border-top: .5px solid var(--line); background: var(--card); padding: 12px 15px 16px; }
.sheet h4 { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.sheet p { font-size: 12px; color: var(--muted); margin: 0 0 10px; line-height: 1.4; }
.prow { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: none; background: none; padding: 8px 2px; border-bottom: .5px solid var(--line); cursor: pointer; }
.prow .pa { width: 30px; height: 30px; border-radius: 50%; background: var(--src-note-t); color: var(--src-note-d); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: 0 0 auto; }
.prow .pn { flex: 1; font-size: 14px; }
.prow .pick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.prow.sel .pick { border-color: var(--amber-d); background: var(--amber-d); box-shadow: inset 0 0 0 3px #fff; }
.sheet .do { display: block; width: 100%; border: none; background: var(--amber-d); color: #fff; border-radius: 11px; padding: 12px; font-weight: 600; margin-top: 12px; cursor: pointer; }
.hand-btn { border: .5px solid var(--line); background: var(--card); font-size: 11px; font-weight: 600; border-radius: 999px; padding: 6px 10px; cursor: pointer; color: var(--muted); }

/* More menu (mobile) */
.moremenu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: none; background: var(--card); border-top: .5px solid var(--line); padding: 15px 16px; font-size: 15px; cursor: pointer; }
.moremenu button .ic { font-size: 18px; width: 22px; text-align: center; color: var(--muted); }

.sys-line { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.sys-line span { background: var(--src-note-t); border-radius: 999px; padding: 3px 11px; }

/* Today */
.today-lead { font-size: 12.5px; color: var(--muted); margin: 4px 18px 2px; line-height: 1.4; }
.today-speech { margin: 0 18px 4px; }

/* Ask answer */
.ask-answer { margin-top: 14px; background: var(--card); border: .5px solid var(--line); border-radius: 14px; padding: 14px 15px; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.ochips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.ochip { border: none; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 10px; cursor: pointer; }

/* Accessibility covenant */
button, input, textarea, [role="button"] { min-height: 44px; }
.moon, .send, .back, .rx .chip, button.icon-only { min-width: 44px; }
input, textarea { font-size: 16px; }
.searchbar input, .cmd textarea, .composer input { font-size: 16px; }
.speech-controls button { min-height: 44px; }
.tcard .ttl, .tcard .snip, .m .bub, .sys-line, .empty-detail .h, .empty-detail .s,
.catch .h, .catch .s, .cbul .cb, .results .sb, .results .sh, .empty,
.scard .ttl, .scard .det, .speech-status, .cmd p, .step .sa, .step .sb, .plan .success,
.cp p, .anchor .tx .a, .anchor .tx .b, .rest .hero .s,
.today-lead, .ask-answer, .care-banner, .sheet p { font-size: 16px; line-height: 1.5; }
.field-label { display: block; margin: 0 2px 6px; color: var(--ink); font-size: 16px; font-weight: 600; }
.composer-label { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Gate (sign-in / no-access) ───────────────────────────────────
   Rapport is allowlist-only until SPEC §8 phase 3. White text sits on
   --amber-d, never --amber (contrast). 16px type floor applies here
   too — the gate is long-form reading for anyone who lands on it. */
body.gated .shell { display: none; }
.gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); overflow-y: auto; }
.gate[hidden] { display: none; }
.gate-card { width: 100%; max-width: 380px; }
.gate-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.gate-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.gate-wm { font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.gate-wm b { font-weight: 600; }
.gate-sub { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.gate-field { margin-bottom: 14px; }
.gate-label { display: block; margin: 0 2px 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.gate-field input { width: 100%; box-sizing: border-box; padding: 12px 14px; min-height: 44px; font-family: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.gate-field input:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.gate-error { margin: 0 0 14px; padding: 10px 12px; font-size: 16px; line-height: 1.5; color: var(--danger); background: #fdf0f0; border-radius: 10px; }
.gate-error[hidden] { display: none; }
.gate-btn { width: 100%; min-height: 44px; padding: 12px 16px; font-family: inherit; font-size: 16px; font-weight: 600; color: #fff; background: var(--amber-d); border: 0; border-radius: 10px; cursor: pointer; }
.gate-btn:hover { background: var(--amber-h); }
.gate-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.gate-btn[disabled] { opacity: .6; cursor: default; }
.gate-btn-quiet { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.gate-btn-quiet:hover { background: var(--amber-t); }
.gate-family { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: #8a8a91; }
.gate-spectrum { width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #2e7d5b 0 20%, #00a896 20% 40%, #3a6ea5 40% 60%, #7c3aed 60% 80%, #f2506e 80% 100%); }

/* Demo-fixture honesty — a real sign-in must never imply real threads. */
.demo-notice { position: fixed; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%); width: min(calc(100% - 24px), 496px); margin: 0; padding: 8px 12px; font-size: 13px; line-height: 1.4; text-align: center; color: var(--amber-tt); background: var(--amber-t); border: 1px solid var(--amber); border-radius: 10px; }
.demo-notice[hidden] { display: none; }
