/* The Desk: Liz's console. Editorial, calm, built for daily use on a phone or a laptop.
   Coral means one thing only: this needs you. */

:root {
  --paper: #FAF8F3;
  --card: #FFFFFF;
  --ink: #0F2B2B;
  --muted: #587070;
  --faint: #8C9C9A;
  --line: #E6E1D6;
  --line-2: #EFEBE2;
  --green: #003333;
  --green-2: #0A4242;
  --green-3: #125252;
  --mint: #EAF1EF;
  --coral: #F33F16;
  --coral-ink: #BF300D;
  --coral-soft: #FDEEE8;
  --ok: #1D7A55;
  --ok-soft: #E6F3EC;
  --rail-ink: rgba(255, 255, 255, .9);
  --rail-muted: rgba(255, 255, 255, .58);
  --shadow: 0 1px 2px rgba(15, 43, 43, .05), 0 12px 32px -18px rgba(15, 43, 43, .28);
  --serif: "Playfair Display", Georgia, serif;
  --sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1818; --card: #112222; --ink: #E7EFED; --muted: #9DB2AF; --faint: #6E8481;
    --line: #213636; --line-2: #1A2E2E; --mint: #173030; --coral-ink: #FF8A66;
    --coral-soft: #3A1A12; --ok: #5BC794; --ok-soft: #12302A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1818; --card: #112222; --ink: #E7EFED; --muted: #9DB2AF; --faint: #6E8481;
  --line: #213636; --line-2: #1A2E2E; --mint: #173030; --coral-ink: #FF8A66;
  --coral-soft: #3A1A12; --ok: #5BC794; --ok-soft: #12302A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--green); color: var(--rail-ink); padding: 26px 18px 20px;
  overflow: hidden;
}
.rail::after {
  content: ""; position: absolute; left: -120px; bottom: -160px; width: 360px; height: 360px;
  border-radius: 50%; border: 1.5px solid rgba(243, 63, 22, .35); pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; }
.face { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--green-3); box-shadow: 0 0 0 2px var(--green), 0 0 0 3.5px var(--coral); }
.face img { position: absolute; width: 300%; max-width: none; left: -95%; top: -34%; }
.brand b { display: block; font: 600 19px/1.1 var(--serif); color: #fff; }
.brand small { display: block; font: 600 10.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--rail-muted); margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font: 500 14.5px/1.2 var(--sans); color: var(--rail-muted);
  transition: background .18s, color .18s;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"]::before { content: ""; width: 3px; height: 18px; border-radius: 2px; background: var(--coral); margin-left: -12px; margin-right: 9px; }
.nav .count { margin-left: auto; font: 600 12px/1 var(--sans); color: var(--rail-muted); }
.nav .count.hot { background: var(--coral); color: #fff; padding: 4px 8px; border-radius: 999px; }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 14px 8px; }
.rail-foot { margin-top: auto; padding: 16px 8px 0; font: 500 11.5px/1.5 var(--sans); color: var(--rail-muted); position: relative; z-index: 1; }
.rail-foot a { color: #fff; text-decoration: none; display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 6px; }
.rail-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rail-foot a svg { width: 14px; height: 14px; }
.rail-foot .mark { display: block; margin-top: 14px; letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }

.main { min-width: 0; padding: 44px clamp(20px, 5vw, 64px) 96px; outline: none; }
.view { max-width: 1040px; margin: 0 auto; animation: rise .35s ease both; }
/* Movement only, never opacity: if a browser pauses animations, everything is still readable. */
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }

.tabbar { display: none; }
.topbar { display: none; }

/* ---------- type ---------- */
.masthead { margin-bottom: 30px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral); flex: none; }
h1 { font: 600 clamp(34px, 4.4vw, 50px)/1.06 var(--serif); letter-spacing: -.015em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--coral); }
.dek { font: 400 17px/1.6 var(--sans); color: var(--muted); margin: 14px 0 0; max-width: 60ch; }
h2 { font: 600 24px/1.2 var(--serif); margin: 0; }
h3 { font: 700 15px/1.35 var(--sans); margin: 0; }
.label { font: 700 10.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- surfaces ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 24px 26px; }
.section { margin-top: 44px; }
.section-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1.5px solid var(--ink); padding-top: 14px; margin-bottom: 18px; }
.section-hd .label { color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }

/* ---------- buttons and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px;
  padding: 11px 18px; font: 600 14px/1 var(--sans); border: 1.5px solid transparent; text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, transform .12s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-3); }
/* Dark mode, chosen or from the device: the primary button turns light so it still stands out. */
:root[data-theme="dark"] .btn.primary { background: #E7EFED; color: #0B1818; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.primary { background: #E7EFED; color: #0B1818; }
  :root:not([data-theme="light"]) .btn.primary:hover { background: #FFFFFF; }
  :root:not([data-theme="light"]) .cov .bar i { background: var(--ok); }
}
.btn.coral { background: var(--coral); color: #fff; }
.btn.coral:hover { background: #D93811; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.quiet { background: none; border: 0; padding: 8px 6px; color: var(--muted); font-weight: 600; }
.btn.quiet:hover { color: var(--ink); }
.btn.danger { background: var(--coral-ink); color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.live { background: var(--coral); color: #fff; }
.btn.live .rec { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

.field { display: block; width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 12px 14px; font: 400 15px/1.55 var(--sans); outline: none; transition: border-color .18s, box-shadow .18s; }
.field:focus { border-color: var(--green-3); box-shadow: 0 0 0 3px rgba(0, 51, 51, .1); }
.field:focus-visible { outline: none; }
textarea.field { resize: vertical; min-height: 120px; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); }
.search .field { padding-left: 40px; }
.mic-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.mic-note.warn { color: var(--coral-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px;
  font: 600 12.5px/1.2 var(--sans); color: var(--muted); transition: all .18s; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--sans); letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--mint); color: var(--muted); }
.pill.coral { background: var(--coral-soft); color: var(--coral-ink); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Today ---------- */
.dateline { display: flex; align-items: center; gap: 12px; font: 700 11px/1 var(--sans); letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.dateline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.lead { font: 500 italic clamp(21px, 2.4vw, 27px)/1.4 var(--serif); color: var(--ink); margin: 16px 0 0; max-width: 34em; }
.lead b { font-style: normal; font-weight: 600; color: var(--coral-ink); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure { padding: 20px 22px 18px; border-left: 1px solid var(--line); }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure .n { display: block; font: 600 44px/1 var(--serif); letter-spacing: -.02em; }
.figure .n.alert { color: var(--coral); }
.figure .k { display: block; margin-top: 10px; font: 600 12px/1.35 var(--sans); color: var(--muted); }
.rundown-mini { list-style: none; margin: 0; padding: 0; }
.rundown-mini li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.rundown-mini .no { font: 500 italic 20px/1.2 var(--serif); color: var(--coral); }
.rundown-mini q { quotes: none; font: 600 16px/1.4 var(--serif); }
.empty-note { padding: 24px 0; color: var(--muted); }
.empty-note b { display: block; font: 500 italic 22px/1.3 var(--serif); color: var(--ink); margin-bottom: 4px; }

.idea { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.idea:first-of-type { padding-top: 4px; }
.idea h4 { font: 600 18px/1.3 var(--serif); margin: 8px 0 6px; }
.idea p { margin: 0; color: var(--muted); font-size: 14px; }
.idea .ev { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.idea .ev span { font-size: 13px; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--line); }

.coverage { display: grid; gap: 12px; }
.cov { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; }
.cov .t { font: 600 13.5px/1.3 var(--sans); }
.cov .bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.cov .bar i { display: block; height: 100%; background: var(--green-3); border-radius: 999px; transition: width .6s ease; }
:root[data-theme="dark"] .cov .bar i { background: var(--ok); }
.cov .v { font: 600 12px/1 var(--sans); color: var(--muted); min-width: 92px; text-align: right; }
.cov .v.hot { color: var(--coral-ink); }

.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.action { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); text-align: left; transition: border-color .18s, transform .18s; }
.action:hover { border-color: var(--ink); transform: translateY(-2px); }
.action svg { width: 22px; height: 22px; color: var(--coral); }
.action b { font: 600 16px/1.25 var(--serif); }
.action span { font-size: 13px; color: var(--muted); }

/* ---------- Inbox: the rundown ---------- */
.rundown { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.slug { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.slug .no { font: 500 italic 30px/1 var(--serif); color: var(--coral); padding-top: 2px; }
.slug.done .no { color: var(--ok); }
.slug q { quotes: none; font: 600 21px/1.35 var(--serif); display: block; }
.slug .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font: 500 12.5px/1.4 var(--sans); color: var(--muted); }
.slug .meta .why { flex: 1 0 100%; }
.slug .answer { grid-column: 2; margin-top: 16px; }
.slug .answer .row { margin-top: 12px; }
.slug.done .answered { grid-column: 2; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--ok-soft); font-size: 14px; }
.slug.done .answered b { color: var(--ok); }
.allclear { padding: 56px 0 24px; text-align: left; }
.allclear b { display: block; font: 500 italic clamp(38px, 5vw, 56px)/1.05 var(--serif); }
.allclear p { color: var(--muted); max-width: 42ch; }

/* ---------- lists: asked and knowledge ---------- */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 8px; padding: 8px 13px; font: 600 13px/1 var(--sans); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.filters { margin-bottom: 18px; }
.listing { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.item { border-bottom: 1px solid var(--line); }
.item > button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: none; border: 0; padding: 16px 4px; text-align: left; }
.item > button:hover .title { color: var(--coral-ink); }
.item .title { font: 600 16px/1.4 var(--serif); transition: color .15s; }
.item .sub { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font: 500 12.5px/1.4 var(--sans); color: var(--muted); }
.item .body { padding: 0 4px 18px; white-space: pre-line; color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.item .body .reply { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--mint); }
/* Members asked, one row per chat: what the member wrote reads as body text, not a heading,
   with each follow up on its own line underneath so the flow shows before it is opened. */
.item.chat .title { font: 600 15px/1.55 var(--sans); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.item.chat .flow { list-style: none; margin: 8px 0 2px; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.item.chat .flow li { font: 500 14px/1.65 var(--sans); color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.item.chat .flow li.more { font-style: italic; }
.item.chat .cue { color: var(--coral-ink); font-weight: 600; }
/* A whole chat, laid out like Try it: Members asked, and the Inbox's "See the whole conversation". */
.thread { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 4px; white-space: normal; }
.thread .bubble { font-family: var(--sans); font-size: 14.5px; }
.thread .bubble b { font-weight: 600; }
.thread .bubble.mark { box-shadow: 0 0 0 3px var(--coral); }
.slug .context { margin-top: 12px; }
.slug .context .thread { margin-top: 10px; }
.more-row { padding: 18px 0; }
.count-line { font: 600 12.5px/1 var(--sans); color: var(--muted); margin: 0 0 14px; }

.pinned { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 22px 24px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--coral);
  margin-bottom: 26px; box-shadow: var(--shadow); }
.pinned h3 { font: 600 20px/1.25 var(--serif); margin: 6px 0 8px; }
.pinned p { margin: 0; white-space: pre-line; font-size: 14.5px; color: var(--muted); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8, 20, 20, .42); z-index: 40; }
@keyframes fade { from { transform: scale(.995); } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--card); z-index: 41;
  display: flex; flex-direction: column; box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .5); animation: slide .28s ease both; }
@keyframes slide { from { transform: translateX(30px); } }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-bd { padding: 24px; overflow-y: auto; flex: 1; }
.drawer-bd h2 { font-size: 26px; margin: 8px 0 16px; }
.drawer-bd .text { white-space: pre-line; line-height: 1.75; font-size: 15px; }
.drawer-ft { padding: 16px 24px; border-top: 1px solid var(--line); }
.drawer-bd label { display: block; margin: 18px 0 8px; }
.drawer-bd label:first-child { margin-top: 0; }
.drawer-bd textarea.field { min-height: 280px; }
.confirm { padding: 14px 16px; border-radius: 12px; background: var(--coral-soft); color: var(--coral-ink); font-weight: 600; font-size: 14px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- Teach ---------- */
.teach-hero { position: relative; overflow: hidden; border-radius: 20px; background: var(--green); color: #fff; padding: 34px 36px; }
.teach-hero::after { content: ""; position: absolute; right: -90px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 63, 22, .28), rgba(243, 63, 22, 0)); pointer-events: none; }
.teach-hero h2 { font-size: clamp(26px, 3vw, 34px); color: #fff; max-width: 20em; }
.teach-hero p { color: rgba(255, 255, 255, .8); max-width: 50ch; margin: 12px 0 22px; }
.teach-hero .chip { background: transparent; border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85); }
.teach-hero .chip:hover { border-color: #fff; color: #fff; }
.teach-hero .chip.thin { border-color: var(--coral); color: #fff; }
.teach-hero .btn.coral { margin-top: 20px; position: relative; z-index: 1; }
.teach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 26px 18px; text-align: center; cursor: pointer; transition: border-color .18s, background .18s; margin-top: 16px; }
.drop:hover, .drop.over { border-color: var(--green-3); background: var(--mint); }
.drop svg { width: 26px; height: 26px; color: var(--coral); }
.drop b { display: block; font: 600 15px/1.3 var(--sans); margin-top: 6px; }
.drop span { font-size: 12.5px; color: var(--muted); }
.note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--mint); font-size: 13.5px; }
.note.warn { background: var(--coral-soft); color: var(--coral-ink); }
.readout { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.readout b { color: var(--ink); }
.readout.good b { color: var(--ok); }
.files { list-style: none; margin: 14px 0 0; padding: 0; max-height: 220px; overflow-y: auto; border-top: 1px solid var(--line-2); }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.files li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li span:last-child { color: var(--muted); flex: none; }
.paste { margin-top: 12px; display: grid; gap: 10px; }
.meter { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--coral); border-radius: 999px; }
.meter.good i { background: var(--ok); }

/* ---------- studio ---------- */
.studio { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; animation: fade .25s ease both; }
.studio-bar { display: flex; align-items: center; gap: 16px; padding: 16px clamp(18px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.onair { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  background: var(--coral); color: #fff; padding: 7px 11px; border-radius: 6px; }
.onair i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.studio-topic { font: 600 14px/1.2 var(--sans); color: var(--muted); }
.studio-body { flex: 1; overflow-y: auto; display: flex; justify-content: center; padding: clamp(28px, 6vh, 72px) clamp(18px, 4vw, 40px) 60px; }
.stage { width: min(760px, 100%); }
.stage.fading { opacity: .25; transition: opacity .3s; }
.trail { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; font: 600 12px/1 var(--sans); color: var(--muted); }
.trail i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-3); }
.trail i.now { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.trail span { margin-left: 8px; }
.paraphrase { font: 500 italic 17px/1.55 var(--serif); color: var(--muted); border-left: 3px solid var(--coral); padding-left: 16px; margin: 0 0 22px; }
.question { font: 600 clamp(26px, 3.6vw, 38px)/1.25 var(--serif); margin: 0 0 22px; letter-spacing: -.01em; }
.stage textarea.field { min-height: 190px; font-size: 16px; }
.stage .row { margin-top: 14px; }
.thinking { display: flex; align-items: center; gap: 14px; font: 500 italic 20px/1.4 var(--serif); color: var(--muted); padding: 40px 0; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .5; } }
.learned h2 { font-size: clamp(28px, 3.6vw, 40px); }
.insight { padding: 18px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-top: 14px; animation: rise .4s ease both; }
.insight h3 { font: 600 17px/1.3 var(--serif); margin-bottom: 6px; }
.insight p { margin: 0; font-size: 14.5px; color: var(--muted); white-space: pre-line; }
.milestone { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; }

/* ---------- Try it ---------- */
.try { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(72vh, 680px); overflow: hidden; }
.try-log { overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: min(80%, 620px); padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.bubble.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: var(--mint); border-bottom-left-radius: 5px; }
.bubble.bot.esc { background: var(--coral-soft); }
.why { align-self: flex-start; max-width: min(80%, 620px); font: 500 12.5px/1.5 var(--sans); color: var(--muted); margin-top: -6px; padding-left: 4px; }
.try-form { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.try-form .field { min-height: 0; }

/* ---------- Your data ---------- */
.settings { display: grid; gap: 22px; }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; }
.setting h3 { font: 600 18px/1.3 var(--serif); }
.setting p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 58ch; }

/* ---------- toasts, loading ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: var(--ink); color: var(--paper); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); font-size: 14px; animation: rise .3s ease both; }
.toast b { font-family: var(--serif); font-style: italic; font-weight: 600; }
.toast.error { background: var(--coral-ink); color: #fff; }
.toast .x { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; font-size: 18px; line-height: 1; padding: 0 2px; }
.loading { display: grid; place-items: center; min-height: 60vh; font: 500 italic 22px/1.3 var(--serif); color: var(--muted); }
.fail { max-width: 520px; margin: 12vh auto; }
.fail b { display: block; font: 600 30px/1.2 var(--serif); margin-bottom: 10px; }

/* ---------- signing in ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; background: var(--green); color: #fff; padding: 40px 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.auth-side::after { content: ""; position: absolute; right: -200px; top: -220px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 63, 22, .24), rgba(243, 63, 22, 0)); pointer-events: none; }
.auth-mark b { display: block; font: 600 22px/1 var(--serif); }
.auth-mark small { display: block; margin-top: 6px; font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--rail-muted); }
.auth-arch { position: relative; margin: 0 auto; width: min(290px, 70%); }
.auth-arch::before { content: ""; position: absolute; inset: -16px -16px 30px -16px; border: 1.5px solid rgba(243, 63, 22, .7); border-radius: 999px 999px 30px 30px; }
.auth-arch img { position: relative; display: block; width: 100%; height: 360px; object-fit: cover; object-position: 50% 6%; border-radius: 999px 999px 22px 22px; }
.auth-line { position: relative; z-index: 1; margin: 0; max-width: 22em; font: 500 italic 21px/1.45 var(--serif); color: rgba(255, 255, 255, .9); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); display: flex; flex-direction: column; }
.auth-card h1 { margin-bottom: 8px; }
.auth-card > .muted { margin: 0 0 12px; }
.auth-card .label { display: block; margin: 18px 0 8px; }
.pw { position: relative; }
.pw .field { padding-right: 72px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px;
  font: 600 12.5px/1 var(--sans); color: var(--muted); }
.auth-go { width: 100%; margin-top: 26px; padding: 15px 18px; font-size: 15px; }
.auth-card .btn.quiet { align-self: center; margin-top: 12px; }
.auth-error { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--coral-soft); color: var(--coral-ink); font-size: 14px; font-weight: 600; }
.auth-note { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--mint); font-size: 14px; }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.checks li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; border: 1.5px solid var(--faint); vertical-align: middle; }
.checks li.ok { color: var(--ok); }
.checks li.ok::before { background: var(--ok); border-color: var(--ok); }

/* ---------- team ---------- */
.members { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.person { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.initial { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); font: 600 19px/1 var(--serif); }
.person .nm { font: 600 18px/1.3 var(--serif); }
.person .sub { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font: 500 12.5px/1.4 var(--sans); color: var(--muted); }
.person .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.linkbox { grid-column: 2 / -1; display: grid; gap: 8px; margin-top: 4px; padding: 14px; border-radius: 12px; background: var(--mint); }
.linkbox p { margin: 0; font-size: 13.5px; }
.linkbox .row { flex-wrap: nowrap; }
.linkbox input { flex: 1; min-width: 0; font-size: 13px; }
.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 12px; align-items: end; }
.invite .label { display: block; margin-bottom: 8px; }
.rail-foot .who { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; }
.rail-foot .setup { display: flex; width: fit-content; margin-bottom: 14px; }
.rail-foot .signout { display: block; background: none; border: 0; padding: 0; margin-bottom: 14px; color: var(--rail-muted); font: 500 11.5px/1.5 var(--sans);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rail-foot .signout:hover { color: #fff; }

/* ---------- AI account ---------- */
.ai-now { display: grid; gap: 12px; }
.ai-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ai-line b { font: 600 22px/1.25 var(--serif); overflow-wrap: anywhere; }
.ai-now > p { margin: 0; }
.ai-confirm { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--coral-soft); }
.ai-confirm p { margin: 0; font-size: 14px; }
.key-form { display: grid; gap: 10px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.key-form input { flex: 1 1 240px; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.key-form input.masked { -webkit-text-security: disc; text-security: disc; }
.key-form p { margin: 0; max-width: 64ch; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.choice { display: grid; gap: 6px; align-content: start; text-align: left; padding: 18px 20px; background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; cursor: pointer; transition: border-color .18s; }
.choice:hover:not([disabled]) { border-color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--green-3); box-shadow: 0 0 0 3px rgba(0, 51, 51, .1); cursor: default; }
.choice[disabled]:not([aria-pressed="true"]) { opacity: .62; cursor: default; }
.choice-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.choice-hd b { font: 600 18px/1.3 var(--serif); }
.choice-sub { color: var(--muted); font-size: 14px; line-height: 1.5; }
.choice-cost { font-size: 13px; font-weight: 600; }
.ai-guide summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  border-top: 1.5px solid var(--ink); padding-top: 14px; }
.ai-guide summary::-webkit-details-marker { display: none; }
.ai-guide summary .label { color: var(--ink); }
.ai-guide summary .label::after { content: " +"; }
.ai-guide[open] summary .label::after { content: " \2212"; }
.ai-guide[open] summary { margin-bottom: 18px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; max-width: 70ch; font-size: 15px; line-height: 1.6; }
.steps li { padding-left: 4px; }
.steps a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ai-sub { font: 600 18px/1.3 var(--serif); margin: 28px 0 12px; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .teach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; padding: 12px 18px;
    background: var(--green); color: #fff; }
  .topbar b { font: 600 17px/1 var(--serif); }
  .topbar .face { width: 32px; height: 32px; }
  .topbar a { margin-left: auto; color: var(--rail-muted); font: 600 12.5px/1 var(--sans); text-decoration: none; }
  .main { padding: 26px 18px calc(100px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px;
    text-decoration: none; font: 600 10.5px/1 var(--sans); color: var(--faint); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar .dot { position: absolute; top: 3px; left: calc(50% + 8px); min-width: 17px; height: 17px; border-radius: 999px;
    background: var(--coral); color: #fff; font: 700 10px/17px var(--sans); text-align: center; padding: 0 4px; }
  .slug { grid-template-columns: 40px minmax(0, 1fr); }
  .slug .no { font-size: 24px; }
  .slug q { font-size: 18px; }
  .slug .answer, .slug.done .answered { grid-column: 1 / -1; }
  .toolbar { grid-template-columns: 1fr; }
  .cov { grid-template-columns: 110px 1fr; }
  .cov .v { grid-column: 2; text-align: left; }
  .setting { grid-template-columns: 1fr; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .field { font-size: 16px; } /* under 16px, iPhones zoom the page when she taps a box */
  .auth { grid-template-columns: 1fr; }
  .auth-side { flex-direction: row; align-items: center; padding: 18px 20px; }
  .auth-arch, .auth-line { display: none; }
  .auth-main { place-items: start center; padding: 30px 20px 40px; }
  .person { grid-template-columns: 40px minmax(0, 1fr); }
  .person .acts { grid-column: 2; justify-content: flex-start; }
  .invite { grid-template-columns: 1fr; }
  .studio-bar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .studio-topic { order: 3; flex-basis: 100%; }
  .teach-hero { padding: 26px 22px; }
  .figure .n { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Academy applications */
.app-card { margin-bottom: 18px; }
.app-hd { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 18px; margin-bottom: 16px; }
.app-hd h3 { font: 600 22px/1.2 var(--serif); margin: 0 0 4px; }
.app-hd p { margin: 0; overflow-wrap: anywhere; }
.app-fit { list-style: none; margin: 8px 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--mint); display: grid; gap: 8px; font-size: 14px; }
.app-fit .pill { min-width: 48px; justify-content: center; }
.app-answers { margin: 0 0 16px; }
.app-answers div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.app-answers dt { font-weight: 600; color: var(--muted); }
.app-answers dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.app-asked { margin: 0 0 16px; }
.app-q { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.app-q p { margin: 4px 0; }
.app-decide { margin: 8px 0 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; }
.app-decide .field { margin: 8px 0 12px; }
.app-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13px/1.6 var(--sans); background: var(--mint); border-radius: 10px; padding: 14px; margin: 12px 0 0; }
.app-draft { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 12px 4px; }
.app-draft p, .app-draft .app-follow { flex-basis: 100%; margin: 0; }
.app-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 22px; }
.app-stat { padding: 14px 16px; border-radius: 12px; background: var(--mint); display: grid; gap: 2px; }
.app-stat b { font: 600 26px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.app-stat span { font: 500 12.5px/1.3 var(--sans); color: var(--muted); }
.app-stat.hot { background: var(--coral-soft); }
.app-stat.hot b { color: var(--coral-ink); }
.app-hes { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 600px) { .app-answers div { grid-template-columns: 1fr; gap: 2px; } }
