/* WeSangha "Lotus Buddies" brand tokens (from Design's Lotus artifact).
   Type: soft serif (Fraunces, SOFT axis) for prompts, Nunito for everything else. */
:root{
  --paper:#FFF6EA;
  --card:#FFFFFF;
  --ink:#3B2F4A;
  --muted:#6A5A7E;
  --ink-2:var(--muted);
  --plum:#3B2F4A;
  --sage:#5E9A68;
  --sage-soft:#E4F0E1;
  --peach:#FFE0D5;
  --butter:#FFF1C2;
  --lilac:#EEE6FC;
  --line:#EFE3D3;
  --coral:#E46F5B; /* only Leave and a recording dot */
  --neutral:#FFFCF8; /* neutral inner card */
  --disabled:#CDBFD1;
  --r-xl:24px; /* big surfaces: form card, guide panel */
  --r-lg:16px; /* inner cards, video tiles */
  --r-md:12px; /* banners, inputs, read-only boxes */
  --r-pill:999px; /* pills, buttons, badges */
  --shadow-card:0 24px 60px -32px rgba(59,39,66,.35);
  --bar-h:64px;
  --pad:64px; /* page side padding; the top bar's lotus sits here on every screen */
  --display:'Fraunces',Georgia,'Times New Roman',serif;
  --body:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;
  color-scheme:light;
}
@media (max-width:1439px){:root{--pad:48px}}
@media (max-width:1279px){:root{--pad:32px}}
@media (max-width:767px){:root{--pad:20px}}
*{box-sizing:border-box}
html,body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5}
h1,h2,h3{font-family:var(--display);font-variation-settings:"SOFT" 100;font-weight:500;text-wrap:balance;margin:0}
button,input,textarea{font:inherit;color:inherit}
a{color:var(--plum)}
:focus-visible{outline:3px solid var(--plum);outline-offset:2px;border-radius:var(--r-md)}

/* One narrow column: the session without in-app video (or the companion fallback). */
.app{max-width:440px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;background:var(--card);border-left:1px solid var(--line);border-right:1px solid var(--line)}

.link{background:none;border:0;padding:6px 4px;cursor:pointer;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;font-size:14px;min-height:36px}
.link:hover{color:var(--ink)}

/* One top bar on every screen (entry .ebar, session column header.bar, video #chrome):
   64px, paper + 1px line, lotus 32 + wordmark left, step dots centred, text links + lilac pills right. */
.bar,.ebar,body.has-video .chrome{height:var(--bar-h);flex:none;background:var(--paper);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:12px;padding:0 20px;min-width:0}
/* The session column is 440px: with a founding badge the bar may wrap to a second row (still min 64px). */
.bar:has(#founding-badge){height:auto;min-height:var(--bar-h);flex-wrap:wrap;padding:12px 20px}
.mark,.emark{display:flex;align-items:center;gap:10px;flex:none;font-family:var(--display);font-variation-settings:"SOFT" 100;font-weight:500;font-size:22px;line-height:1;color:var(--plum);text-decoration:none;white-space:nowrap}
.mark .lotus,.emark .lotus{width:32px;height:32px;flex:none}
.prog{display:flex;justify-content:center;align-items:center;gap:8px;flex:1;min-width:0}
.prog span{width:8px;height:8px;border-radius:50%;flex:none;background:var(--line)}
.prog span.done,.prog span.now{background:var(--sage)}
.bar .link,.enav .link,.enav a,.chrome-r .link{font-family:var(--body);font-weight:600;font-size:15px;color:var(--plum);min-height:0;padding:0}
#founding-badge,.voice{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:0;border-radius:var(--r-pill);background:var(--lilac);color:var(--plum);font-family:var(--body);font-weight:600;font-size:13px;line-height:1;white-space:nowrap;flex:none}
.voice{cursor:pointer}
/* Recording (daily video only): neutral white pill, coral only for the dot; empty = hidden. */
.rec{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-pill);background:#fff;color:var(--ink);font-family:var(--body);font-weight:600;font-size:13px;line-height:1;white-space:nowrap;flex:none}
.rec::before{content:'';width:9px;height:9px;border-radius:50%;background:var(--coral);flex:none}
.rec:empty{display:none}
.voice[aria-pressed="false"]{color:var(--muted)}

.partner{padding:4px 18px 8px;display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-2)}
.dot{width:9px;height:9px;border-radius:50%;background:#CDBFC9;flex:none}
.dot.on{background:var(--sage)}
.dot.pause{background:#D9A877}
.toast{margin:0 18px 6px;padding:8px 12px;border-radius:var(--r-md);background:var(--butter);font-size:14px}
.cue{margin:0 18px 6px;padding:8px 12px;border-radius:var(--r-md);background:var(--lilac);font-size:15px;display:flex;gap:8px;align-items:baseline}
.cue b{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.enter{animation:fade .35s ease}

main{flex:1;padding:10px 22px 16px;display:flex;flex-direction:column;gap:16px}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.foot{padding:10px 18px 14px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;color:var(--ink-2);flex-wrap:wrap}
.foot .skip{margin-left:auto;display:flex;align-items:center;gap:8px}
.foot .skip .link{font-size:13px}

.eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.big{font-size:28px;line-height:1.2}
.mid{font-size:22px;line-height:1.3}
.sub{color:var(--ink-2);margin:0;max-width:40ch}
.center{text-align:center;margin-left:auto;margin-right:auto}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:4px 10px;border-radius:var(--r-pill);background:var(--lilac);color:var(--plum);width:fit-content}
.badge.sage{background:var(--sage-soft);color:#45603F}

/* One button set. Primary 52px plum; secondary (.soft, .pause) lilac 48px; ghost 48px line border;
   Leave (.leave, .vleave, .coral-text) white with a coral border. Coral is for Leave only. */
.btn{min-height:48px;padding:0 24px;border-radius:var(--r-pill);border:0;cursor:pointer;font-family:var(--body);font-weight:700;font-size:16px;line-height:1.2;color:var(--plum);text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.btn.primary{min-height:52px;background:var(--plum);color:#fff}
.btn.primary:disabled{background:var(--disabled);color:#fff;cursor:not-allowed}
.btn.soft,.btn.pause{background:var(--lilac);color:var(--plum)}
.btn.ghost{background:transparent;border:1.5px solid var(--line);color:var(--plum)}
.btn.leave,.btn.coral-text,.vleave{min-height:48px;padding:0 24px;border-radius:var(--r-pill);background:#fff;border:1.5px solid var(--coral);color:var(--coral);font-family:var(--body);font-weight:700;font-size:16px;cursor:pointer}
.btn.small{padding:0 18px;font-size:15px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.panel{border:1px solid var(--line);border-radius:var(--r-lg);padding:16px 20px;display:grid;gap:10px;background:var(--neutral)}
.tip{background:var(--sage-soft);border:0;font-size:14px}
.linkbox{display:flex;gap:8px;align-items:center}
.linkbox code{flex:1;background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:10px 12px;font-family:var(--body);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agree{display:flex;gap:12px;align-items:flex-start;text-align:left;width:100%;border:1.5px solid var(--line);background:var(--card);border-radius:var(--r-md);padding:12px 14px;cursor:pointer;min-height:48px}
.agree .box{width:22px;height:22px;border-radius:7px;border:2px solid #BFAFC4;flex:none;display:grid;place-items:center;font-size:14px;color:#fff;margin-top:1px}
.agree[aria-pressed="true"]{border-color:var(--sage);background:#F6FAF4}
.agree[aria-pressed="true"] .box{background:var(--sage);border-color:var(--sage)}

.scale{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.scale button{min-height:48px;border-radius:var(--r-md);border:1.5px solid var(--line);background:var(--card);cursor:pointer;font-weight:700;font-size:17px}
.scale button[aria-pressed="true"]{background:var(--plum);color:#fff;border-color:var(--plum)}
.scale-ends{display:flex;justify-content:space-between;font-size:13px;color:var(--ink-2)}
.field{width:100%;min-height:46px;border-radius:var(--r-md);border:1.5px solid var(--line);padding:10px 12px;font:inherit;background:var(--card);color:var(--ink)}
.small{font-size:13px;color:var(--ink-2)}
label.lbl{font-weight:700;font-size:15px}

.timebar{height:6px;border-radius:6px;background:var(--line);overflow:hidden}
.timebar i{display:block;height:100%;background:#BFA6C6;border-radius:6px;transition:width .3s linear}
.timeline{display:flex;justify-content:space-between;font-size:13px;color:var(--ink-2)}

.recede{opacity:.82}
.lookleft{font-size:14px;color:var(--ink-2);display:flex;gap:8px;align-items:center}
.starter{background:var(--lilac);border-radius:var(--r-md);padding:12px 14px;font-family:var(--display);font-variation-settings:"SOFT" 100;font-size:18px}
.stem{font-family:var(--display);font-variation-settings:"SOFT" 100;font-weight:400;font-size:22px;line-height:1.3;margin:0}
.stems-more{display:grid;gap:4px}
.stems-more p{margin:0}
.delta{display:flex;gap:14px;align-items:center}
.delta .n{font-family:var(--display);font-size:34px;line-height:1}
.delta .k{font-size:12px;color:var(--ink-2)}

/* Lotus breathing (replaces the plain breathing circle) */
.breathwrap{display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 0}
.breathlbl{position:relative;height:28px;width:100%;font-family:var(--display);font-size:18px;color:var(--plum)}
.breathlbl span{position:absolute;left:50%;top:0;transform:translate(-50%,0);white-space:nowrap}
.breathlbl .in{animation:lblin 8s infinite}
.breathlbl .out{animation:lblout 8s infinite}
@keyframes lblin{0%,45%{opacity:1}50%,95%{opacity:0}100%{opacity:1}}
@keyframes lblout{0%,45%{opacity:0}50%,95%{opacity:1}100%{opacity:0}}

/* Guide moment: the Lotus talks, captions follow along */
.guide{display:grid;gap:14px;justify-items:center;text-align:center;padding-top:4px}
.guide-orb{height:200px;display:grid;place-items:center;transition:height .3s ease}
.guide-who{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--ink-2)}
.gdot{width:8px;height:8px;border-radius:50%;background:#D8CDE2}
.gdot.on{background:var(--sage);box-shadow:0 0 0 4px var(--sage-soft)}
.caps{display:grid;gap:8px;max-width:32ch;min-height:104px;align-content:start}
.caps p{margin:0;font-family:var(--display);font-variation-settings:"SOFT" 100;font-weight:500;font-size:22px;line-height:1.3;color:var(--ink)}
.caps p.past{font-family:var(--body);font-size:16px;font-weight:400;color:var(--ink-2)}
.gv{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.gv span{border-radius:var(--r-pill);padding:6px 12px;font-weight:700;font-size:14px}
.gv.plan span{background:var(--sage-soft);display:flex;gap:6px;align-items:center}
.gv.plan b{width:20px;height:20px;border-radius:50%;background:#9CC5A1;color:#fff;display:grid;place-items:center;font-size:12px}
.gv.why .no{background:#F1ECE6;color:#9A8C9E;text-decoration:line-through}
.gv.why .yes{background:#E4F0E1;color:#3E6F48}
.gv.ex{display:grid;gap:6px;width:100%;max-width:330px}
.bub{border-radius:14px;padding:5px 11px;line-height:1.35;font-size:14px;text-align:left;max-width:85%}
.bub.bq{background:#EEE6FC;justify-self:start;border-bottom-left-radius:4px}
.bub.ba{background:#FFE0D5;justify-self:end;border-bottom-right-radius:4px}

.overlay{position:fixed;inset:0;background:rgba(59,39,66,.25);display:grid;place-items:center;padding:16px;z-index:5}
.dialog{background:var(--card);border-radius:var(--r-xl);padding:24px;max-width:420px;width:100%;display:grid;gap:12px;box-shadow:var(--shadow-card)}
.nudge{background:var(--lilac);border:0;border-radius:var(--r-lg);padding:16px 20px;display:grid;gap:8px;font-size:15px}
.beat{flex:1;display:grid;place-items:center;text-align:center}
.doc{gap:12px}
.doc ul{padding-left:20px;margin:0;display:grid;gap:6px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media (prefers-reduced-motion:reduce){
  .enter,.breathlbl .in,.breathlbl .out{animation:none}
  .breathlbl .out{opacity:0}
}
@media (max-width:460px){.app{border:0}.big{font-size:25px}}

/* A mid-round cue ("About a minute left.") kept in the panel for the rest of the round */
.clue{background:var(--butter);border-radius:var(--r-md);padding:8px 12px;display:grid;gap:2px}
.clue b{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.clue p{margin:0;font-family:var(--display);font-variation-settings:"SOFT" 100;font-size:17px;color:var(--plum)}

/* Ring (3+): name chips in turn order */
.partner .ring{flex:1}
.ring{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 10px 4px 4px;border-radius:var(--r-pill);background:var(--card);border:1.5px solid var(--line);font-size:13px;font-weight:600;color:var(--ink)}
.chip b{width:22px;height:22px;border-radius:50%;background:var(--paper);display:grid;place-items:center;font-size:12px;color:var(--ink-2)}
.chip .cdot{width:8px;height:8px;border-radius:50%;background:#CDBFC9}
.chip.on .cdot{background:var(--sage)}
.chip.away .cdot{background:#D9A877}
.chip.away{color:var(--ink-2)}
.chip.now{background:var(--plum);border-color:var(--plum);color:#fff;animation:pulse 2.4s ease-in-out infinite}
.chip.now .cdot{background:#fff}
.chip.now b{background:rgba(255,255,255,.18);color:#fff}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(59,47,74,.25)}50%{box-shadow:0 0 0 5px rgba(59,47,74,0)}}

/* Landing: "How many of you?" segmented control */
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;background:var(--paper);border-radius:14px;padding:4px}
.seg button{min-height:56px;border:0;border-radius:11px;background:transparent;cursor:pointer;display:grid;gap:0;padding:6px 4px;color:var(--ink-2)}
.seg button b{font-size:18px;color:var(--ink)}
.seg button span{font-size:12px}
.seg button[aria-checked="true"]{background:var(--card);box-shadow:0 2px 8px -4px rgba(59,47,74,.35);color:var(--plum)}

/* Private journals + the writer-only notes card */
textarea.field{resize:vertical;min-height:96px;line-height:1.4}
.notes{background:var(--butter);border-radius:var(--r-lg);padding:16px 20px;display:grid;gap:6px}
.notes b{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.notes p{margin:0;font-family:var(--display);font-variation-settings:"SOFT" 100;font-size:19px;line-height:1.35;white-space:pre-wrap;color:var(--plum)}
.notes p.empty{color:var(--ink-2)}
.small-starter{font-size:16px;padding:8px 12px}
@media (prefers-reduced-motion:reduce){.chip.now{animation:none}}

/* Lobby plan picker (host) and read-only plan (guests) */
.plan-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.plan-toggle{min-height:44px;padding:8px 12px}
.plan-toggle:disabled{cursor:not-allowed;opacity:.75}
.stepper{display:flex;align-items:center;gap:4px}
.stepper .btn{min-width:44px;min-height:44px;padding:0;font-size:20px}
.stepper .btn:disabled{opacity:.4;cursor:not-allowed}
.stepper-val{min-width:54px;text-align:center;font-weight:700;font-size:15px}
.plan-picker{display:grid;gap:8px}
/* Narrow screens (the Start card on a phone, any narrow plan): the stepper wraps under the toggle. */
@media (max-width:600px){
  .plan-row{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
  .plan-toggle{flex:1 1 200px;min-width:0;padding:8px 10px;gap:8px}
  .stepper{flex:none;margin-left:auto}
}
.plan-list{margin:0;padding-left:18px;display:grid;gap:4px}

/* "I'm done" with its sub-label */
.btn.stack{flex-direction:column;line-height:1.2;padding:8px 22px}
.btnsub{font-size:12px;font-weight:400;opacity:.85}

/* Before card (exercise explainer) and the "How does this work?" sheet: eyebrow, petal, title, why, how,
   example, I'm ready, credit. The sheet slides up over the panel content (250ms); the footer stays. */
.bcard{display:grid;gap:10px;width:100%;max-width:560px;margin:0 auto;justify-items:start}
.bcard > *{max-width:100%}
.bc-eyebrow{font-weight:700;font-size:13px;color:var(--ink-2)}
.bcard h2.big{font-size:28px;line-height:1.2}
@media (max-width:1279px){.bcard h2.big{font-size:24px}}
.bc-why{margin:0;font-size:16px;color:var(--ink)}
.bc-how{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.bc-how li{position:relative;padding-left:18px;font-size:15px;line-height:1.4}
.bc-how li::before{content:'';position:absolute;left:2px;top:.55em;width:7px;height:7px;border-radius:50%;background:var(--sage)}
.bcard .row{width:100%}
.bc-credit{margin:0;font-size:14px}
.bcard.sheet.in{animation:sheetup .25s ease-out}
@keyframes sheetup{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* turnDemo: an inner neutral card; people dots on top, bubbles stack below (max 3 shown), caption at the end.
   Dots: peach (A / topic owner), lilac (B), sage-soft (C). Thread: a sage line joins each question to the last. */
.td{width:100%;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--neutral);padding:12px 14px;display:grid;gap:8px}
.td-people{display:flex;gap:10px}
.td-p{display:grid;justify-items:center;gap:1px}
.td-p small{font-size:11px;font-weight:700;color:var(--ink-2);line-height:1}
.td-dot{width:24px;height:24px;border-radius:50%;display:block}
.c0{--c:var(--peach);--g:rgba(255,224,213,.25)}
.c1{--c:var(--lilac);--g:rgba(238,230,252,.25)}
.c2{--c:var(--sage-soft);--g:rgba(228,240,225,.25)}
.td-dot{background:var(--c);box-shadow:inset 0 0 0 1px rgba(59,47,74,.08)}
.td-dot.pulse{animation:tdpulse .6s ease}
@keyframes tdpulse{50%{transform:scale(1.15)}}
.td-stack{position:relative;display:grid;gap:6px;align-content:start}
.td.thread .td-stack{padding-left:16px}
.td-b{position:relative;justify-self:start;max-width:92%;background:#fff;border:1.5px solid var(--c);border-radius:var(--r-lg);padding:6px 12px;font-size:15px;line-height:1.35;color:var(--plum);display:grid;gap:1px;
  opacity:0;transform:translateY(8px);transition:opacity .35s ease-out,transform .35s ease-out,box-shadow .35s ease-out}
.td-b.show{opacity:.55;transform:none}
.td-b.show.now{opacity:1;box-shadow:0 0 0 4px var(--g)}
.td-lbl{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2)}
.td-line{position:absolute;left:-11px;bottom:50%;width:2px;height:0;background:var(--sage);transform:scaleY(0);transform-origin:top;transition:transform .3s ease-out}
.td-b.show .td-line{transform:scaleY(1)}
.td-bw{background:transparent;color:inherit;border-radius:4px;padding:0 2px;transition:background .2s ease .35s}
.td-b.show .td-bw{background:var(--butter)}
.td-pause{justify-self:center;display:grid;justify-items:center;line-height:1.1;color:var(--ink-2);opacity:0;transition:opacity .3s}
.td-pause.show{opacity:.5}
.td-pause small{font-size:12px}
.td-cap{margin:2px 0 0;font-weight:600;font-size:14px;color:var(--plum);opacity:0;transition:opacity .4s}
.td-cap.show{opacity:1}
.td .out{animation:tdout .3s ease forwards}
@keyframes tdout{to{opacity:0;transform:translateY(-8px);max-height:0;margin:0;padding-top:0;padding-bottom:0;border-width:0;overflow:hidden}}
.td-b.out,.td-pause.out{max-height:120px}
.td .gone{display:none}
@media (prefers-reduced-motion:reduce){
  .td-b,.td-pause,.td-cap,.td-line,.td-bw{transition:none}
  .td-b{transform:none}
  .td-dot.pulse,.td .out,.bcard.sheet.in{animation:none}
}

/* During: butter stem card, turn chips (sage open floor with three dots; peach topic), one-line rule */
.stemcard{background:var(--butter);border-radius:var(--r-lg);padding:16px 20px;display:grid;gap:8px}
.stemcard .stem{background:none !important;padding:0 !important}
.tchips{display:flex;flex-wrap:wrap;gap:8px}
.tchip{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:4px 12px;border-radius:var(--r-pill);background:var(--sage-soft);color:var(--plum);font-family:var(--body);font-weight:600;font-size:13px}
.tchip.topic{background:var(--peach)}
.tdots{display:inline-flex;gap:3px}
.tdots i{width:5px;height:5px;border-radius:50%;background:var(--sage)}
.rule{margin:0;font-size:15px;color:var(--ink)}
.safety{margin:0;line-height:1.5}
.safety b{font-weight:600;color:var(--ink)}
.how-link{width:fit-content;color:var(--plum);font-size:14px;padding:4px 0;min-height:32px}
.silence-nudge{margin:0;animation-name:snudge;animation-timing-function:linear;animation-fill-mode:both}
@keyframes snudge{0%{opacity:0}8%{opacity:1}92%{opacity:1}100%{opacity:0}}

/* Pair stem rounds: big turn line (+ "Listening" pill), the listener's stem card at 70%, the sage-soft cue card,
   three guide dots, the thin 60 s turn bar. A swap cross-fades the turn line (1.2 s). */
.pturn{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pturn h2.big{font-size:28px;line-height:1.2}
@media (max-width:1279px){.pturn h2.big{font-size:24px}}
.pturn.swap{animation:pswap 1.2s ease}
@keyframes pswap{0%{opacity:0}50%{opacity:.3}100%{opacity:1}}
.stemcard.listen{opacity:.7}
.cuecard{background:var(--sage-soft);border-radius:var(--r-lg);padding:16px 20px;display:grid;gap:4px}
.cuecard b{font-weight:700;font-size:16px;color:var(--ink)}
.cuecard .small{font-size:14px}
/* UY72: the listener's elevated cue (above their dimmed stem), the speaker's live 1-2-3 tracker, the 3 s turn-change
   beat (swap line, a 1.2 s sage flash on a new stem, Done locked and muted, then a soft unlock). */
.cuecard.listener{background:#EAF3EC;border:1.5px solid var(--sage);padding:14px 16px;gap:2px}
.cuecard.listener b{font-family:var(--body);font-weight:700;font-size:16px;color:var(--plum)}
.cuecard.listener .small{font-weight:400;font-size:14px;color:var(--muted)}
.rep-tracker{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
.rep-hint{font-family:var(--body);font-size:14px;color:var(--plum)}
.rep-pills{display:inline-flex;gap:8px}
.rep{min-width:40px;height:40px;padding:0 12px;border-radius:var(--r-pill);border:1.5px solid var(--line);background:var(--paper);color:var(--muted);font-family:var(--body);font-weight:700;font-size:15px;line-height:1;cursor:pointer}
.rep.cur{border:2px solid var(--plum);background:var(--butter);color:var(--plum)}
.rep.done{border:2px solid var(--sage);background:var(--sage);color:#fff}
.swap-line{margin:0;font-size:14px;font-weight:600;color:var(--plum)}
.swap-line.again{justify-self:start;width:fit-content;background:var(--lilac);border-radius:var(--r-pill);padding:4px 12px}
.stemcard.fresh{animation:stemfresh 1.2s ease-out both}
@keyframes stemfresh{0%,35%{box-shadow:inset 0 0 0 2px var(--sage)}100%{box-shadow:inset 0 0 0 2px rgba(94,154,104,0)}}
.btn.primary.locked:disabled{background:var(--plum);opacity:.45;cursor:default}
.btn.primary.unlocked{animation:unlock .4s ease-out both}
@keyframes unlock{from{opacity:.45}to{opacity:1}}
/* Pairs, lobby / Before card: the partner is ready. A warm callout above the button, and a soft sage ring pulse on it. */
.ready-cue{flex:1 1 100%;box-sizing:border-box;display:flex;align-items:center;gap:10px;background:#EAF3EC;border:1.5px solid var(--sage);border-radius:12px;padding:10px 14px;font-family:var(--body);font-weight:600;font-size:15px;line-height:1.35;color:var(--plum)}
.ready-stack{display:grid;gap:10px}
.ready-cue::before{content:'';flex:none;width:8px;height:8px;border-radius:50%;background:var(--sage)}
.ready-pulse{animation:readypulse 2s ease-out infinite}
@keyframes readypulse{from{box-shadow:0 0 0 0 rgba(94,154,104,.45)}to{box-shadow:0 0 0 10px rgba(94,154,104,0)}}
@media (prefers-reduced-motion:reduce){
  .stemcard.fresh,.btn.primary.unlocked{animation:none}
  .ready-pulse{animation:none;box-shadow:0 0 0 3px rgba(94,154,104,.35)}
}
.turnbar{height:4px}
.turnbar i{background:var(--sage)}

/* turnDemo, pair stem: the stem chip, Speaking / Listening lane labels, A left (peach) and B right (lilac),
   completion bubbles (stem words muted, the ending in plum 600), small sage-soft "Thank you." bubbles, Done ✓ and Swap. */
.td-stemchip{margin:0;justify-self:start;background:var(--butter);border-radius:var(--r-pill);padding:4px 12px;font-family:var(--display);font-variation-settings:"SOFT" 100;font-weight:400;font-size:16px}
.td-lanes{display:flex;justify-content:space-between;font-size:12px;font-weight:700;color:var(--ink-2)}
.td-lane.on{color:var(--sage)}
.td.pairstem .side1{justify-self:end}
.td-sw{color:var(--muted)}
.td.pairstem .td-b b{font-weight:600}
.td-b.td-ty{background:var(--sage-soft);border-color:transparent;font-size:13px;padding:4px 10px}
.td-done{justify-self:start;background:var(--sage);color:#fff;border-radius:var(--r-pill);padding:2px 10px;font-size:12px;font-weight:700;opacity:0;transition:opacity .3s}
.td-swap{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--ink-2);opacity:0;transition:opacity .3s}
.td-swap::before,.td-swap::after{content:'';flex:1;height:1px;background:var(--line)}
.td-done.show,.td-swap.show{opacity:1}
@media (prefers-reduced-motion:reduce){.pturn.swap{animation:none}.td-done,.td-swap{transition:none}}

/* Guest end card (close screen, guests only): fades in a few seconds after the session ends. */
.signup{border:1px solid var(--line);border-radius:var(--r-lg);padding:16px 20px;display:grid;gap:10px;background:var(--neutral)}
.signup.in{animation:fade .4s ease}
.signup [hidden]{display:none !important}
.signup-title{font-size:22px;line-height:1.25}
.signup-body{margin:0;color:var(--ink-2)}
.signup-boxes{display:grid;gap:8px}
.check-row{display:flex;gap:12px;align-items:center;min-height:48px;padding:10px 14px;border:1.5px solid var(--line);border-radius:var(--r-md);background:var(--card);cursor:pointer}
.check-row input{width:22px;height:22px;margin:0;flex:none;accent-color:var(--sage);cursor:pointer}
.check-row:has(input:checked){border-color:var(--sage);background:#F6FAF4}
.signup-err,.signup-fail{font-size:14px;font-weight:700;color:var(--ink)} /* no red: coral is only for Leave */
.signup-send{width:fit-content}
.signup-privacy{margin:0}
.signup-thanks{display:flex;gap:12px;align-items:flex-start}
.signup-thanks p{margin:2px 0 0}
.signup-check{width:30px;height:30px;border-radius:50%;background:var(--sage);color:#fff;display:grid;place-items:center;font-weight:700;flex:none}
@media (max-width:460px){.signup{padding:16px}.signup-send{width:100%}}
@media (prefers-reduced-motion:reduce){.signup.in{animation:none}}

/* Phone gate: one calm, centered card (fits 360x640). */
.gate-wrap{justify-content:center;align-items:center;padding:16px}
.gate{width:100%;max-width:380px;background:var(--paper);border:1px solid var(--line);border-radius:var(--r-xl);padding:24px 20px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.gate .big{font-size:24px}
.gate .btn{width:100%}
.gate .small{margin:0}

/* ---------- In-app video (Daily, behind a flag). Everything below applies only with body.has-video
   (stage + guide panel) or body.companion (opted-in fallback); the column above is untouched. ---------- */
.video[hidden],.video [hidden],.chrome[hidden]{display:none !important}
body.has-video{--panel:360px;display:grid;grid-template-columns:minmax(0,1fr) var(--panel);grid-template-rows:var(--bar-h) minmax(0,1fr);height:100vh;height:100dvh;overflow:hidden}
@media (max-width:1179px){body.has-video{--panel:320px}}
@media (min-width:1440px){body.has-video{--panel:380px}}

/* Top bar, full width: lotus + waiting line · step dots · Voice */
/* Same side offset as the entry pages' .ewrap, so the lotus + wordmark don't move from Start to the session. */
body.has-video .chrome{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:0 max(var(--pad),calc((100% - 1240px) / 2));min-width:0}
.chrome-l{display:flex;align-items:center;gap:14px;min-width:0}
.chrome-r{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.chrome-r #founding-badge{margin-left:0 !important}
.chrome .prog{flex:none;gap:8px}
.chrome .prog span{width:8px;height:8px;border-radius:50%;flex:none}
.chrome #copy{min-height:40px;padding:0 16px;font-size:15px;white-space:nowrap}
.wait-line{font-size:14px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mark.breathe .lotus{animation:breathe 4s ease-in-out infinite;transform-origin:50% 50%}
@keyframes breathe{0%,100%{transform:scale(.9)}50%{transform:scale(1.1)}}

/* Stage: tiles above a 72px control bar */
body.has-video .video{grid-column:1;grid-row:2;display:flex;flex-direction:column;padding:16px 16px 0;min-width:0;min-height:0;background:var(--paper)} /* stage: paper, 16px */
.stage-main{position:relative;flex:1;min-height:0;container-type:size;display:grid;place-items:start center}
/* The largest 16:9 --cols x --rows box that fits the stage, top-aligned so leftover paper sits below.
   PiP is positioned against this box (not the full stage), so it always sits on a tile corner. */
.tiles{--cols:1;--rows:1;position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:12px;
  width:min(100cqw,calc((100cqh - (var(--rows) - 1) * 12px) / var(--rows) * 16 / 9 * var(--cols) + (var(--cols) - 1) * 12px))}
.tile{position:relative;flex:0 0 calc((100% - (var(--cols) - 1) * 12px) / var(--cols));aspect-ratio:16/9;border-radius:var(--r-lg);overflow:hidden;background:var(--plum)}
.tile:not(.me){animation:tilein .3s ease}
@keyframes tilein{from{opacity:0}}
.tile video{width:100%;height:100%;object-fit:cover;display:block}
.tile.me video{transform:scaleX(-1)}
.tile.off video{display:none}
.tile.turn,.tile.me.pip.turn{box-shadow:0 0 0 3px var(--sage)} /* pair stems: on your own PiP when you're speaking */
.tile-name{position:absolute;left:10px;bottom:10px;display:inline-flex;align-items:center;gap:4px;max-width:calc(100% - 20px);background:rgba(59,47,74,.72);color:#fff;font-family:var(--body);font-weight:600;font-size:13px;line-height:1.3;border-radius:var(--r-pill);padding:4px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile-name .ico{width:14px;height:14px;flex:none}
.tile.turn .tile-name{background:var(--sage)}
/* B: partner camera off (peach, plum initial). C: yours (lilac). */
.tile-off{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:var(--peach);color:var(--plum);text-align:center;padding:8px}
.tile.off .tile-off{display:flex}
.tile-off .ini{width:96px;height:96px;border-radius:50%;background:var(--plum);color:#fff;display:grid;place-items:center;font-family:var(--display);font-variation-settings:"SOFT" 100;font-size:40px}
.tile-off .nm{font-weight:700}
.tile-off .muted{font-size:13px;color:var(--ink-2)}
.tile.me .tile-off{background:var(--lilac)}
.tile.me .tile-off .nm{display:none}
.tile.off .tile-name{display:none} /* name already sits under the initial */
/* E: reconnecting */
.tile-recon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:none;background:var(--card);color:var(--plum);font-weight:700;font-size:14px;border-radius:var(--r-pill);padding:6px 14px}
.tile.gone .tile-recon{display:block}
.tile.gone > video,.tile.gone .tile-off,.tile.gone .tile-name{opacity:.6}
/* Self PiP (with others here): bottom-right by default, 12px insets, drag to any corner */
.tile.me.pip{position:absolute;width:clamp(160px,20%,240px);border:2px solid #fff;border-radius:var(--r-md);box-shadow:none;z-index:2;touch-action:none;cursor:grab}
.tile.pip[data-corner="br"]{right:12px;bottom:12px}
.tile.pip[data-corner="bl"]{left:12px;bottom:12px}
.tile.pip[data-corner="tr"]{right:12px;top:12px}
.tile.pip[data-corner="tl"]{left:12px;top:12px}
.tile.pip .tile-off .ini{width:44px;height:44px;font-size:20px}
.tile.pip .tile-off .muted{font-size:12px}
.tile.pip .tile-name{left:6px;bottom:6px;padding:2px 8px;font-size:12px}
.pip-hide,.pip-show{display:none;border:0;cursor:pointer;font:inherit}
.pip-hide{position:absolute;top:6px;right:6px;z-index:1;background:rgba(59,47,74,.72);color:#fff;font-size:12px;font-weight:700;border-radius:var(--r-pill);padding:4px 10px;min-height:28px}
.tile.pip:hover .pip-hide,.tile.pip:focus-within .pip-hide{display:block}
.tile.pip.pip-hidden{width:40px;height:40px;aspect-ratio:auto;border-radius:50%;border:0;background:var(--lilac);cursor:pointer}
.tile.pip.pip-hidden > :not(.pip-show){display:none !important}
.tile.pip.pip-hidden .pip-show{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:var(--lilac);color:var(--plum);font-family:var(--display);font-size:18px}

/* Notes layer: D blocked, F fallback, G a moment, the 3-2-1 */
.video-notes{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:3}
.video-notes > *{grid-area:1/1;pointer-events:auto}
.vcard{background:var(--card);border-radius:var(--r-lg);padding:16px 20px;max-width:440px;margin:12px;display:grid;gap:12px;box-shadow:var(--shadow-card)}
.vcard p{margin:0}
/* Stage placeholder until the call is up (room, token, daily-js, join): calm, no spinner. */
.vconnect{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:15px;background:rgba(255,246,234,.85);border-radius:999px;padding:10px 18px}
.vconnect-dot{width:10px;height:10px;border-radius:50%;background:var(--sage);animation:vconnect 2.4s ease-in-out infinite}
@keyframes vconnect{0%,100%{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.vconnect-dot{animation:none}}
.video.has-remote #video-perm{align-self:end;justify-self:start}
.moment{align-self:stretch;justify-self:stretch;background:rgba(255,246,234,.7);border-radius:var(--r-lg);display:grid;place-items:center}
.moment-card{display:grid;gap:8px;justify-items:center;text-align:center;padding:20px}
.vcount{font-family:var(--display);font-variation-settings:"SOFT" 100;font-size:72px;color:var(--plum);background:rgba(255,246,234,.85);border-radius:50%;width:140px;height:140px;display:grid;place-items:center}

/* Control bar: Video not working? · Mic, Camera · Leave */
.video-bar{flex:none;height:72px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}
.vhelp{justify-self:start;min-height:48px;font-size:13px}
.vbar-mid{display:flex;gap:16px}
.vbar-right{justify-self:end}
.vc{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:60px;padding:0;border:0;background:none;cursor:pointer;color:var(--plum)}
.vc-c{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--lilac);color:var(--plum)}
.vc[aria-pressed="false"] .vc-c{background:var(--plum);color:#fff}
.vc-l{font-family:var(--body);font-weight:600;font-size:12px;line-height:1.2}
.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Guide panel: the current step only, footer pinned in-flow (content must end above it) */
/* The guide panel is the session's form card: a floating white card inset 16px from the bar, the
   right edge and the bottom (the --panel column width includes the inset), 24px inside. */
body.has-video .app{grid-column:2;grid-row:2;max-width:none;width:auto;margin:16px 16px 16px 0;min-height:0;border:0;border-radius:var(--r-xl);box-shadow:var(--shadow-card);background:var(--card);overflow:hidden;display:flex;flex-direction:column}
body.has-video .vmain{flex:1 1 0;overflow-y:auto;min-height:0;padding:24px 24px 16px;gap:12px}
body.has-video .app > .partner,body.has-video .app > .cue,body.has-video .app > .toast{margin-left:24px;margin-right:24px}
body.has-video .app > .partner{padding:20px 0 0}
body.has-video .app > .partner + .vmain,body.has-video .app > .cue + .vmain,body.has-video .app > .toast + .vmain{padding-top:12px}
body.has-video .app > .cue:first-child,body.has-video .app > .toast:first-child{margin-top:24px}
body.has-video .vmain .row:has(#join-title){align-items:flex-start}
body.has-video .vmain .row:has(#join-title) .lotus{display:none} /* lotus already lives in the top bar */
body.has-video .vmain .panel{gap:8px}
body.has-video .vmain .agree{min-height:44px;padding:10px 12px}
.vfoot{flex:none;display:grid;gap:8px;padding:16px 24px 24px;border-top:1px solid var(--line);background:var(--card);font-size:13px;color:var(--ink-2)}
.vfoot #ready,.vfoot #start-now{flex:1 1 100%}
.vfoot-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.vfoot-btns.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.vfoot-btns .btn{min-height:48px;padding:6px 8px;font-size:15px;line-height:1.2}
.step-head{order:-3;display:flex;align-items:baseline;justify-content:space-between;gap:10px}

.step-count{font-size:13px;color:var(--ink-2);white-space:nowrap}
.vmain .tring{order:-2}
.tring{position:relative;width:120px;height:120px;margin:0 auto;display:grid;place-items:center;flex:none}
.tring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.tring circle{fill:none;stroke-width:8}
.tring .tr-bg{stroke:var(--sage-soft)}
#timer-ring{stroke:var(--sage);stroke-linecap:round;transition:stroke-dashoffset .3s linear,stroke .6s ease}
.tring.late .tr-bg{stroke:var(--line)}
.tring.late #timer-ring{stroke:#F2D36B} /* butter, one shade deeper so it shows on the track */
.tring-time{font-family:var(--display);font-variation-settings:"SOFT" 100;font-weight:500;font-size:32px;color:var(--plum)}
.vmain .big{font-size:22px}
.vmain .stem{background:var(--butter);border-radius:var(--r-lg);padding:16px 20px}
.vmain #rule-card{background:none;padding:0;font-size:15px;color:var(--ink)}
.vmain .turn-line{margin:0;font-weight:700;font-size:16px;color:var(--plum)}
.vmain .btn.stack,.vmain #ready,.vmain #begin,.vmain #im-ready{flex:1 1 100%}
.vmain .vpaused{background:var(--lilac);border-radius:var(--r-md);padding:10px 14px;display:grid;gap:6px;justify-items:start}
.vmain .guide{gap:10px}
.vmain .guide-orb{height:96px !important}
.vmain .guide-orb svg,.vmain .breathwrap svg{width:96px;height:96px}
.vmain .caps{min-height:0}
.vmain .caps p{font-size:19px}

/* F, after the person's own tap: the companion column, wider and centred, beside any call */
body.companion .app{max-width:560px}
.again-row{padding:8px 18px 0;text-align:right}

/* Under 1024px: stage on top (~55%), panel below, the control bar on a soft plum pill */
@media (max-width:1023px){
  body.has-video{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--bar-h) 55dvh minmax(0,1fr)}
  body.has-video .video{position:relative;padding:16px}
  /* Stacked: the guide card sits under the stage like a sheet, no side inset, rounded top corners only. */
  body.has-video .app{grid-column:1;grid-row:3;margin:0;border-radius:var(--r-xl) var(--r-xl) 0 0}
  body.has-video .chrome{gap:10px}
  .video-bar{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);z-index:4;height:auto;display:flex;gap:14px;padding:6px 16px;border-radius:var(--r-pill);background:rgba(59,47,74,.55)}
  .video-bar .vc-l,.video-bar .vhelp{color:#fff}
  .tile.me.pip{width:120px}
  .stage-main{padding-bottom:88px} /* room for the overlaid control pill */
}

@media (prefers-reduced-motion:reduce){
  .mark.breathe .lotus,.tile:not(.me){animation:none}
  #timer-ring{transition:none}
}

/* Host invite card (lobby, both modes): ready-to-paste text first, then a one-line link row once everyone's in. */
.invite h3{font-size:20px}
.invite-text{background:var(--paper);border-radius:var(--r-md);padding:12px 14px;font-size:14px;white-space:pre-line;overflow-wrap:anywhere;user-select:all}
.invite .row .btn{flex:1 1 auto}
.invite-row{display:flex;align-items:center;gap:10px;font-size:14px;min-width:0}
.invite-row b{white-space:nowrap}
.invite-row code{flex:1;min-width:0;font-family:var(--body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2)}

/* ---------- Entry pages (sign-in, Start, guest join): body.entry only. Full-width paper, split layout,
   desktop-first; the 440px .app column above still applies everywhere else. ---------- */
body.entry{overflow-x:hidden}
body.entry .app{max-width:none;background:var(--paper);border:0;--form:480px;--gap:96px;--h1:56px}
.ewrap{width:100%;max-width:calc(1240px + 2 * var(--pad));margin:0 auto;padding:0 var(--pad)}
.ebar-in{height:100%;display:flex;align-items:center;gap:16px}
.enav{margin-left:auto;display:flex;align-items:center;gap:20px;font-size:15px}
.enav>*{white-space:nowrap}
body.entry main.emain{flex:1;display:flex;align-items:center;padding:24px 0 40px;gap:0}
.split{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) var(--form);grid-template-areas:"hero form" "rest form";column-gap:var(--gap);row-gap:32px}
.story{position:relative;min-width:0;display:grid;gap:20px;justify-items:start;align-content:start}
.hero{grid-area:hero;align-self:end}
.rest{grid-area:rest;align-self:start;gap:28px}
.hero::before,.hero::after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;filter:blur(70px);opacity:.6;z-index:-1;pointer-events:none}
.hero::before{background:var(--peach);left:-140px;top:-100px}
.hero::after{background:var(--lilac);left:120px;top:40px}
.hero h1{font-size:var(--h1);line-height:1.05;max-width:16ch}
.lead{font-size:19px;color:var(--ink-2);max-width:46ch;margin:0}
.host-tip{display:flex;align-items:center;gap:10px;width:100%;max-width:46ch;box-sizing:border-box;background:var(--butter);border-radius:var(--r-md);padding:12px 16px;font-family:var(--body);font-size:16px;line-height:1.4;color:var(--ink)}
.host-tip-icon{flex:none;font-size:18px;line-height:1}
.host-tip-text{flex:1;min-width:0}
.host-tip .link{flex:none;align-self:center;font-family:var(--body);font-size:15px;font-weight:600;color:var(--plum);padding:6px 2px}
.story h3{font-family:var(--body);font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.how{display:grid;gap:14px}
.how ol{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.how li{display:flex;gap:14px;align-items:flex-start;max-width:40ch}
.how .num{width:32px;height:32px;border-radius:50%;background:var(--sage);color:#fff;display:grid;place-items:center;font-weight:700;flex:none}
.how b{display:block;font-weight:600;font-size:17px}
.how li div span{font-size:15px;color:var(--ink-2)}
.before{background:var(--sage-soft);border-radius:var(--r-lg);padding:16px 20px;display:grid;gap:10px;font-size:15px}
.brow{display:flex;gap:12px;align-items:baseline;max-width:40ch}
.bicon{flex:none;width:22px;text-align:center}
.fcard{grid-area:form;align-self:center;min-width:0;background:var(--card);border-radius:var(--r-xl);padding:40px;box-shadow:var(--shadow-card);animation:fadeup .3s ease both}
.fcard,.fcard-in,.fcard form,.sent{display:grid;gap:14px}
.fcard form{gap:12px}
.fcard .line{margin:0;color:var(--ink-2)}
.fcard .small{margin:0}
.fcard .field{min-height:52px;border:1px solid var(--line)}
.fcard .field:focus{outline:3px solid var(--lilac);outline-offset:0;border-color:var(--plum)}
.fcard .btn.wide{width:100%;margin-top:4px}
.fcard .gv.plan{margin:0}
.sent{justify-items:start}
.sent .btn.wide{margin:0}
.sizes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.sizes button{height:88px;border:1.5px solid var(--line);border-radius:var(--r-lg);background:var(--card);cursor:pointer;display:grid;align-content:center;justify-items:center;gap:2px;padding:8px 6px;color:var(--ink-2)}
.sizes button b{font-size:22px;line-height:1.1;color:var(--ink)}
.sizes button span{font-size:13px;line-height:1.3;text-align:center}
.sizes button[aria-checked="true"]{background:var(--lilac);border:2px solid var(--plum);color:var(--plum)}
.check{display:flex;gap:12px;align-items:flex-start;font-size:15px;cursor:pointer;padding:4px 0}
.check input{width:22px;height:22px;margin:1px 0 0;accent-color:var(--plum);flex:none;cursor:pointer}
.efoot{padding:18px 0 22px;font-size:13px;color:var(--ink-2);flex:none}
.efoot a{color:var(--ink-2)}
@keyframes fadeup{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (max-width:1439px){body.entry .app{--form:440px;--gap:72px;--h1:48px}}
@media (max-width:1279px){body.entry .app{--form:400px;--gap:48px;--h1:40px}}
@media (max-width:1023px){
  body.entry .app{--gap:32px;--h1:36px}
  body.entry main.emain{align-items:flex-start;padding:8px 0 32px}
  .split{grid-template-columns:minmax(0,1fr);grid-template-areas:"hero" "form" "rest";max-width:calc(560px + 2 * var(--pad));row-gap:var(--gap)}
  .hero,.rest{align-self:start}
  .hero{gap:12px}
  .hero .lotus{width:96px;height:96px}
  .hero::before,.hero::after{width:300px;height:300px}
  .fcard{padding:24px}
  .sizes{grid-template-columns:1fr}
  .sizes button{height:auto;min-height:56px;grid-auto-flow:column;justify-content:space-between;align-items:center;padding:10px 18px}
}
@media (max-width:767px){
  body.entry .app{--gap:24px;--h1:30px}
  .enav{gap:12px}
  .enav .epriv{display:none} /* it's in the footer */
  .enav .link{font-size:14px}
  .lead{font-size:17px}
  .hero::before,.hero::after{width:220px;height:220px}
}
@media (prefers-reduced-motion:reduce){.fcard{animation:none}}
/* Short laptop screens (e.g. 1024x768): tighten the card so its button stays above the fold. */
@media (min-width:1024px) and (max-height:820px){
  body.entry main.emain{padding:8px 0 24px}
  .fcard{padding:28px 32px}
  .fcard,.fcard-in,.fcard form{gap:8px}
  .fcard h2,.step-head h2{font-size:24px}
  .hero .lotus{width:120px;height:120px}
}
.fcard .lbl{font-weight:700;font-size:15px}

/* Card title (form card H2 and the guide panel's step name): 28/1.2 at 1280 and up, 24 below. */
.fcard h2,.step-head h2{font-size:28px;line-height:1.2}
@media (max-width:1279px){.fcard h2,.step-head h2{font-size:24px}}

/* Simple pages (Connecting…, expired, full): the entry bar and paper, so Start → session keeps the bar still. */
.simple{display:grid;gap:16px;justify-items:start;max-width:560px}
.simple .sub{max-width:46ch}

/* Start → session: the bar stays, the content below it cross-fades in (250ms) on the first session render. */
body.xfade #video,body.xfade #app{animation:xfade .25s ease both}
body.xfade:not(.has-video) #app{animation:none}
body.xfade:not(.has-video) #app > :not(.bar){animation:xfade .25s ease both}
@keyframes xfade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){body.xfade #video,body.xfade #app,body.xfade #app > *{animation:none !important}}

/* Video guide card: the lobby plan rows wrap the stepper under the toggle when the card is narrow. */
body.has-video .vmain .plan-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.has-video .vmain .plan-toggle{flex:1 1 110px;min-width:0}
body.has-video .vmain .stepper{flex:none;margin-left:auto}
body.has-video .vmain .stepper .btn{min-width:40px;min-height:40px}
body.has-video .vmain .stepper-val{min-width:48px}
body.has-video .vmain .plan-toggle{padding:8px 10px;gap:8px}

/* ---------- Sign-in card: Google button (Google's own look, not plum), "or" divider (profile-signin-spec §1) ---------- */
.gbtn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:52px;border:1px solid #DADCE0;border-radius:var(--r-pill);background:#fff;color:#1F1F1F;font-family:'Roboto',var(--body);font-weight:600;font-size:16px;text-decoration:none;cursor:pointer}
.gbtn:hover{background:#F8F9FA}
.gbtn svg{flex:none}
.gfail{color:var(--ink)}
.or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.fcard .btn.soft.wide{min-height:48px}
.enote{margin:0;padding:10px 14px;border-radius:var(--r-md);background:var(--lilac);font-size:15px}

/* ---------- Top-bar avatar + menu card (signed-in host pages only) ---------- */
.avatar{display:inline-grid;place-items:center;border-radius:50%;background:var(--lilac);color:var(--plum);font-family:var(--body);font-weight:700;line-height:1;object-fit:cover;flex:none;overflow:hidden}
.amenu-wrap{position:relative;display:flex}
.abtn{width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.abtn:hover .avatar{box-shadow:0 0 0 3px var(--lilac)}
.amenu{position:absolute;right:0;top:calc(100% + 8px);z-index:10;min-width:240px;max-width:320px;background:var(--card);border-radius:var(--r-lg);box-shadow:var(--shadow-card),0 2px 10px -4px rgba(59,39,66,.2);padding:8px;display:grid;gap:2px}
.amenu[hidden]{display:none}
.amenu-who{display:grid;gap:2px;padding:10px 12px 12px;border-bottom:1px solid var(--line);margin-bottom:4px;white-space:normal}
.amenu-who b{font-weight:700;font-size:15px;color:var(--ink)}
.amenu-who .small{overflow-wrap:anywhere}
.enav .amenu a,.enav .amenu button{display:flex;align-items:center;min-height:44px;padding:0 12px;border:0;border-radius:var(--r-md);background:none;text-align:left;font-family:var(--body);font-weight:600;font-size:15px;color:var(--plum);text-decoration:none;cursor:pointer;width:100%}
.enav .amenu a:hover,.enav .amenu button:hover{background:var(--paper)}

/* ---------- Profile (/profile): one centred column, max 720, white cards radius 24, padding 32, gap 24 ---------- */
body.entry main.pmain{align-items:flex-start;padding:24px 0 48px}
.profile{max-width:720px;margin:0 auto;display:grid;gap:24px}
.pback{font-weight:600;font-size:15px;justify-self:start}
.pcard{background:var(--card);border-radius:var(--r-xl);padding:32px;box-shadow:var(--shadow-card);display:grid;gap:16px;justify-items:start}
.pcard h2{font-size:24px;line-height:1.2}
.pcard p{margin:0}
.you{display:flex;gap:24px;align-items:center;width:100%}
.you-txt{display:grid;gap:4px;min-width:0;flex:1}
.pname-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pname-row h1{font-size:28px;line-height:1.2;overflow-wrap:anywhere}
.pname-row .link{font-family:var(--body);font-weight:600;font-size:15px;color:var(--plum);padding:4px 2px;min-height:0}
.pname-edit{display:grid;gap:10px;max-width:420px}
.pname-edit .field{min-height:48px}
.pname-edit .btn.small{min-height:44px}
.pname-edit .btn.primary.small{min-height:44px}
.fpill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:var(--r-pill);background:var(--butter);color:var(--plum);font-weight:600;font-size:13px;white-space:nowrap}
.pmail{color:var(--muted);overflow-wrap:anywhere}
.perr:empty{display:none}
.slist{list-style:none;margin:0;padding:0;width:100%;display:grid}
.slist li{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding:12px 0;border-top:1px solid var(--line);font-size:16px}
.slist li:first-child{border-top:0;padding-top:0}
.swhen{font-weight:600}
.sdot{color:var(--muted)}
.sempty{display:grid;gap:16px;justify-items:start}
.sempty p{color:var(--muted)}
.pcard [hidden]{display:none}
#card-account .link{color:var(--muted);padding:4px 0;min-height:0}
.dialog .row .btn{flex:1 1 auto}
@media (max-width:767px){.pcard{padding:24px}.you{flex-direction:column;align-items:flex-start}}
