/* ─────────────────────────────────────────────────────────────────────────────
   DOSE GUIDED v3 — the redesign layer. Loaded after guided.css and wins on
   every rule it repeats. See docs/V3-DESIGN.md for the reasoning and sources.
   Summary: readable by default (18px body), 44px targets, visible navigation,
   one motion system, glass that never costs contrast, a calm mode.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --zoom:1;
  --tb-h:56px;
}
html[data-text="lg"] { --zoom:1.12; }
html[data-text="xl"] { --zoom:1.25; }
/* the zoom multiplies vh-based heights: at the largest text the media gives the space back */
html[data-text="xl"] .phone { height:min(330px, 33vh); }
html[data-text="xl"] [data-step="check"] .hint { font-size:14px; }
html[data-text="xl"] .review .phone { height:min(560px, 55vh); }
html[data-text="xl"] .words { height:min(600px, 60vh); }
html[data-text="xl"] .om-art { height:min(230px, 23vh); }
html[data-text="xl"] [data-step="offer"] .sub { display:none; }
html[data-text="xl"] .offer-main { margin-top:8px; padding:14px; gap:18px; }
html[data-text="xl"] .offer-alt { margin-top:8px; }
html[data-text="xl"] .om-body { gap:7px; }
html[data-text="xl"] .om-get { gap:3px 14px; }
html[data-text="xl"] [data-step="check"] .sub { margin-top:6px; }
html[data-text="xl"] .cam { height:min(400px, 44vh); }
html[data-text="xl"] .orb { width:180px; height:180px; }
html[data-text="xl"] .alt { min-height:72px; }
html[data-text="xl"] .oa-t { margin-bottom:6px; }
html[data-text="xl"] .om-foot { padding-top:4px; }
html[data-text="xl"] .alt small { -webkit-line-clamp:1; }
html[data-text="lg"] .phone { height:min(430px, 45vh); }
html[data-text="lg"] .review .phone { height:min(600px, 61vh); }
html[data-text="lg"] .words { height:min(640px, 66vh); }
html[data-text="lg"] .om-art { height:min(310px, 30vh); }

/* ── type: one notch up everywhere ── */
body { font-size:18px; line-height:1.5; }
.q { font-size:clamp(30px, min(4.6vw, 5.2vh), 42px); line-height:1.1; }
.sub { font-size:18px; max-width:56ch; }
.hint { font-size:16px; }
.tiny { font-size:16px; min-height:44px; padding:0 14px; }
.tiny i { font-size:18px; }
.primary { height:60px; font-size:19px; padding:0 30px; border-radius:16px; }
.ghost { height:56px; font-size:17px; }
.mini { height:44px; padding:0 14px; font-size:15px; }
.chip { height:32px; font-size:14px; padding:0 12px; }
.timeline li { font-size:16px; }
.work .hint { font-size:16px; }
.words-t { font-size:12px; }
.words-t small { font-size:14px; }
.words .script li { font-size:17.5px; line-height:1.45; padding:10px 14px 11px 16px; }
.words .script li b { font-size:12px; padding-top:6px; }
.card strong { font-size:15px; }
.card small { font-size:14px; }
.lib-month { font-size:14px; }
.kmenu button { height:44px; font-size:16px; padding:0 12px; }
.kmenu button i { font-size:19px; }
.lm-text { font-size:15.5px; line-height:1.5; color:var(--t-400); }
.lm :is(h2, h3) { font-size:22px; }
.toast { font-size:16px; padding:13px 18px; }
.how-head p, .pipe-t p { font-size:15px; }
.pipe-h b { font-size:16px; }
.phone-cap { font-size:12.5px; }
.review .phone-cap { font-size:13px; }
.dock-btn { width:auto; min-width:58px; height:52px; padding:0 12px; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; font-size:18px; }
.dock-btn small { font-size:10.5px; font-weight:650; letter-spacing:.02em; line-height:1; white-space:nowrap; }
.phone-dock { bottom:12px; padding:4px; gap:4px; border-radius:18px; }
.review .phone-cap { bottom:78px; }
/* the story caption sits high by design: no later rule may pin its other edge, or the box stretches */
[data-kind="story"] .phone-cap { top:14%; bottom:auto !important; }
.review [data-kind="story"] .phone-cap { font-size:16px; }

/* ── targets: nothing under 44px to press ── */
.lib-search { height:48px; }
.lib-search input { font-size:16px; }
.lib-seg button { height:38px; padding:0 16px; font-size:15px; }
.lib-pill { height:38px; }
.lib-sort { height:48px; font-size:15px; }
.lib-top .primary.lib-new { height:48px; font-size:15px; padding:0 18px 0 16px; }
.lib-search button { width:32px; height:32px; }
.card .kb { position:absolute; z-index:4; width:44px; height:44px; font-size:20px; right:4px; top:4px; opacity:.85; transform:none; background:rgba(8,4,18,.62); }
.card .ca { display:block; width:100%; padding:0; text-align:left; }
.card:focus-within .kb { opacity:1; } @media (hover:hover) and (pointer:fine) { .card:hover .kb { opacity:1; } }
.card .play { width:52px; height:52px; margin:-26px 0 0 -26px; font-size:22px; }
.lib-grid { grid-template-columns:repeat(auto-fill, minmax(168px, 1fr)); gap:16px 14px; }
.x { width:44px; height:44px; border-radius:12px; font-size:20px; }
.row { padding:12px 10px; min-height:56px; }
.row strong { font-size:16px; }
.row small { font-size:14px; color:var(--t-400); }
.sw { width:46px; height:26px; }
.sw i { width:22px; height:22px; }
.sw[data-on="1"] i { translate:20px 0; }
.lm-actions button { height:52px; font-size:16px; }
.lm-input { height:52px; font-size:17px; }
.lang-sw button { height:32px; padding:0 12px; font-size:12px; }
/* ten languages do not fit one row: the switch becomes its own block under the title and wraps (round 253) */
.lang-sw { display:flex; flex-wrap:wrap; row-gap:4px; margin:8px 0 0; max-width:100%; width:fit-content; }
.choice { padding:14px; }
.ch-t { font-size:18px; }
.ch-d { font-size:15px; }
.dest-head { min-height:64px; }
.dchip { min-height:48px; font-size:15px; }
.stepback { min-height:44px; }

.pipe-t p small, .lib-month small, .oa-t, .words-t, .menu-t { color:var(--t-500); }
.how-foot, .rec-foot, .drawer-foot { position:relative; z-index:1; display:flex; align-items:center; gap:8px; padding:13px 20px 15px; border-top:1px solid rgba(var(--op-line),.07); font-size:12.5px; color:var(--t-400); white-space:nowrap; background:color-mix(in srgb, var(--s-1) 88%, transparent); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); }
html.op-dark .drawer-foot { background:color-mix(in srgb, var(--s-1) 84%, transparent); }
.you-body { -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 14px), transparent 100%); mask-image:linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 14px), transparent 100%); }
.drawer-foot small { color:var(--t-400); font-size:11px; }
.lib-titles small, .card small { color:var(--t-500); }

button, a, .lchip, .chip, .card, .row { touch-action:manipulation; }

/* ── focus: always visible, never subtle (headings receive focus only to be announced) ── */
:focus-visible { outline:3px solid var(--color-brand); outline-offset:2px; border-radius:8px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible, h2[tabindex="-1"]:focus-visible { outline:none; }
.primary:focus-visible, .ghost:focus-visible { outline-offset:3px; }
.skip { position:fixed; left:12px; top:-60px; z-index:300; padding:12px 16px; border-radius:12px; background:var(--color-brand); color:var(--color-primary-foreground); font-weight:600; transition:top var(--dur-fast) var(--ease-out); }
.skip:focus { top:12px; }

/* ── the shell: a visible top bar, a bottom bar on phones ── */
.corner, #brand, .brand, .drawer, .corner-back { display:none !important; }
.topbar {
  position:fixed; left:0; right:0; top:0; z-index:60; height:var(--tb-h); zoom:var(--zoom);
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 16px 0 20px;
  background:var(--glass); border-bottom:1px solid rgba(var(--op-line),.08); backdrop-filter:blur(18px) saturate(1.3);
}
.tb-brand { display:inline-flex; align-items:center; gap:.45em; height:44px; padding:0 8px; margin-left:-8px; border-radius:12px; font-weight:700; letter-spacing:-.02em; font-size:22px; color:var(--t-100); }
.tb-brand .dose-pill { box-shadow:none; }
.tb-nav { display:flex; align-items:center; gap:4px; }
.tb-btn { position:relative; display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 14px; border-radius:12px; font-size:16px; font-weight:600; color:var(--t-300); transition:background-color var(--dur-fast), color var(--dur-fast); }
.tb-btn i { font-size:20px; color:var(--t-400); transition:color var(--dur-fast); }
.tb-btn:hover { background:rgba(var(--op-line),.06); color:var(--t-100); }
.tb-btn:hover i { color:var(--color-brand); }
.tb-btn[aria-current="true"] { color:var(--t-100); background:color-mix(in srgb, var(--color-brand) 10%, transparent); }
.tb-btn[aria-current="true"] i { color:var(--color-brand); }
.tb-badge { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border-radius:99px; font-family:var(--font-mono); font-size:11px; font-weight:600; color:var(--color-primary-foreground); background:var(--color-brand); }
.tb-avatar { width:28px; height:28px; border-radius:9px; display:grid; place-items:center; overflow:hidden; font-size:11px; font-weight:700; color:#fff; background:var(--color-brand); }
.tb-avatar img { width:100%; height:100%; object-fit:cover; }
.tabbar { display:none; }
#stage { padding:calc(var(--tb-h) + 16px) 20px 24px; zoom:var(--zoom); }
.step { max-height:calc((100dvh - var(--tb-h) - 40px) / var(--zoom)); }
body[data-mood="library"] #stage { padding:0 20px 48px; }
.lib-top { position:sticky; top:0; z-index:20; padding:calc(var(--tb-h) + 18px) 4px 14px 2px; background:transparent; backdrop-filter:none; border:0; }
.lib-top::before { content:''; position:absolute; left:50%; translate:-50% 0; top:0; bottom:0; width:100vw; z-index:-1; background:var(--s-0); -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image:linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
.lib-top::after { content:''; position:absolute; left:2px; right:4px; bottom:8px; height:1px; background:rgba(var(--op-line),.08); }
.step.wide { max-width:min(1240px, 100vw - 48px); }
body[data-mood="library"] .topbar { background:var(--s-0); }

/* ── the You panel: a sheet of cards, glass over whatever is behind it ── */
.you {
  position:fixed; right:14px; top:14px; bottom:14px; z-index:80; width:min(414px, calc(100vw - 28px)); border-radius:26px;
  background:color-mix(in srgb, var(--s-1) 82%, transparent); backdrop-filter:blur(30px) saturate(1.5); -webkit-backdrop-filter:blur(30px) saturate(1.5);
  border:1px solid rgba(var(--op-line),.10); box-shadow:0 2px 6px rgba(0,0,0,.06), 0 40px 90px -40px rgba(23,22,29,.55);
  display:flex; flex-direction:column; overflow:hidden; translate:calc(100% + 28px) 0; transition:translate var(--dur-slow) var(--ease-out);
}
html.op-dark .you { background:color-mix(in srgb, var(--s-1) 76%, transparent); box-shadow:0 2px 6px rgba(0,0,0,.4), 0 40px 90px -40px rgba(0,0,0,.9); }
.you.open { translate:0 0; }
/* a soft brand light in the top corner, so the sheet is not a flat slab */
.you::before { content:''; position:absolute; right:-40px; top:-60px; width:260px; height:260px; border-radius:99px; pointer-events:none;
  background:radial-gradient(circle, color-mix(in srgb, var(--color-brand) 26%, transparent), transparent 70%); filter:blur(10px); }
.you-head { position:relative; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:20px 16px 16px 20px; }
.you-head .who { padding:0; border:0; gap:13px; }
.you-body { position:relative; flex:1; overflow-y:auto; padding:0 14px 16px; display:flex; flex-direction:column; gap:12px; scrollbar-width:thin; scrollbar-color:rgba(var(--op-line),.18) transparent; }
.ycard { padding:6px 6px 8px; border-radius:18px; background:color-mix(in srgb, var(--s-1) 72%, transparent); border:1px solid rgba(var(--op-line),.07); }
html.op-dark .ycard { background:rgba(255,255,255,.03); }
.ycard .menu-t { margin:8px 10px 4px; }
.ycard .row { border-radius:14px; }
.pref { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px; }
.pref-t strong { display:block; font-size:16px; font-weight:600; color:var(--t-100); }
.pref-t small { display:block; font-size:14px; color:var(--t-500); }
.seg3 { display:inline-flex; gap:2px; padding:3px; border-radius:12px; background:rgba(var(--op-line),.06); flex:none; }
.seg3 button { display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 12px; border-radius:9px; font-size:14px; font-weight:600; color:var(--t-400); transition:background-color var(--dur-fast), color var(--dur-fast); }
.seg3 button i { font-size:16px; }
.seg3 button[aria-checked="true"] { background:var(--s-1); color:var(--t-100); box-shadow:0 1px 2px rgba(0,0,0,.1); }
html.op-dark .seg3 button[aria-checked="true"] { background:var(--s-3); }
.seg-text button { width:44px; padding:0; justify-content:center; font-family:var(--font-sans); }
.seg-text .t-lg { font-size:18px; }
.seg-text .t-xl { font-size:22px; }

/* ── motion: one system ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
/* calm mode: the field becomes a still gradient; keyframe motion stops; transitions stay short */
html.calm #field { display:none; }
html.calm #stage::before { display:none; }
/* calm: a still ground that still remembers the rings */
html.calm body { background:
  repeating-radial-gradient(ellipse 60% 48% at 50% 34%, transparent 0 46px, color-mix(in srgb, var(--color-brand) 5%, transparent) 46px 48px),
  radial-gradient(ellipse 70% 55% at 50% 30%, color-mix(in srgb, var(--color-brand) 9%, var(--s-0)) 0%, var(--s-0) 70%); }
html.calm .work-shimmer, html.calm .wave i, html.calm .dose-aurora::before, html.calm .dose-aurora::after, html.calm .segs i::after { animation-play-state:paused !important; }
html.calm .intro { animation:none; opacity:0; visibility:hidden; }
@media (hover:hover) and (pointer:fine) { html.calm .choice:hover { transform:none; } }

/* ── forced colours (Windows high contrast): borders where colour alone drew the shape ── */
@media (forced-colors: active) {
  .primary, .ghost, .mini, .tiny, .tb-btn, .tab-btn, .lchip, .alt, .choice, .card .ca, .card .kb, .dock-btn, .seg3 button, .lib-seg button, .row, .dchip, .dest-head, .x, .send { border:1px solid ButtonText; }
  .tb-btn[aria-current="true"], .lchip[aria-pressed="true"], .seg3 button[aria-checked="true"] { outline:2px solid Highlight; outline-offset:-2px; }
  .words .script li[data-on] { outline:2px solid Highlight; }
  #field, #stage::before { display:none; }
}

/* ── glass that keeps its contrast ── */
.phone-tools .tool, .ghost, .kmenu, .toast { background:var(--glass); }

/* ── the field sits calmer behind content; full only on arrival and celebration ── */
#field { opacity:.34; }
body[data-mood="focus"] #field { opacity:.24; }
body[data-mood="busy"] #field { opacity:.4; }
body[data-mood="celebrate"] #field { opacity:.5; }
html.op-dark #field { opacity:.48; }
html.op-dark body[data-mood="focus"] #field { opacity:.36; }
html.op-dark body[data-mood="busy"] #field { opacity:.55; }

/* ── the review: every line shows it can be changed ── */
/* only the dock steps aside for the plate now: captions have their own rule beside the plate CSS */
.phone:has(.intro) .phone-dock { opacity:0; }
.phone-cap, .phone-dock { transition:opacity var(--dur-base); }
/* the phone and the column share one height, so the actions close level with the phone's foot (round 219) */
.review .phone, .words { height:min(680px, 72vh); }
.words .script li { font-size:16.5px; padding:7px 10px 8px 14px; gap:12px; }
.words .actions { gap:10px; }
.words .script li b { padding-top:5px; }
.words .actions { margin-top:12px !important; }
.review-meta { margin-top:10px; }
.words .script li .pen { margin-left:auto; flex:none; align-self:center; width:32px; height:32px; border-radius:9px; display:grid; place-items:center; font-size:17px; color:var(--t-500); background:rgba(var(--op-line),.05); transition:color var(--dur-fast), background-color var(--dur-fast); }
.words .script li:hover .pen, .words .script li[data-on] .pen { color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 11%, transparent); }
.words .script li { padding-right:10px; }

/* ── the share screen: the ways in, and the first run ── */
.asrow .mini { height:44px; }
.asrow .t { font-size:15px; }
.asrow .t small { font-size:13px; }
.asrow .ic { width:40px; height:40px; }
.sharebar .mini { height:46px; font-size:16px; }
.send { display:inline-flex; align-items:center; justify-content:center; width:auto; height:56px; padding:0 18px 0 22px; gap:8px; font-size:17px; font-weight:650; border-radius:16px; white-space:nowrap; }
.send i { font-size:20px; }
.sharebox textarea { font-size:20px; }
.ta-ph { font-size:20px; }
.firstrun { display:flex; align-items:stretch; gap:8px; list-style:none; margin:22px 0 0; padding:0; width:min(100%, 760px); }
.firstrun li { flex:1; display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:16px; background:var(--glass); border:1px solid rgba(var(--op-line),.08); text-align:left; }
.firstrun li i { font-size:24px; color:var(--color-brand); flex:none; }
.firstrun strong { display:block; font-size:15.5px; font-weight:650; color:var(--t-100); }
.firstrun small { display:block; font-size:13.5px; color:var(--t-500); line-height:1.3; }
.firstrun li + li { position:relative; }
.firstrun li + li::before { content:''; position:absolute; left:-9px; top:50%; width:10px; height:2px; background:rgba(var(--op-line),.18); }
@media (max-width:780px) { .firstrun { flex-direction:column; gap:6px; } .firstrun li + li::before { display:none; } }

/* ── press feedback, everywhere a finger lands ── */
.primary, .ghost, .tb-btn, .tab-btn, .alt, .lchip, .choice, .dchip, .dest-head, .row, .mini, .send, .dock-btn, .kb, .card .ca, .lib-seg button, .seg3 button { transition-property:transform, background-color, color, border-color, box-shadow, opacity, filter; transition-duration:var(--dur-fast); transition-timing-function:var(--ease-out); }
.primary:active, .ghost:active, .tb-btn:active, .tab-btn:active, .alt:active, .lchip:active, .dchip:active, .dest-head:active, .mini:active, .send:active, .dock-btn:active, .kb:active, .lib-seg button:active, .seg3 button:active, .x:active { transform:scale(.96); }
.choice:active { transform:translateY(-4px) scale(.985); }
.card .ca:active { transform:scale(.985); }

/* ── toasts that can be read, and acted on ── */
.toaster { gap:10px; }
.toast { pointer-events:auto; cursor:pointer; white-space:normal; max-width:min(460px, calc(100vw - 24px)); line-height:1.35; }
.toast-act { margin-left:6px; height:34px; padding:0 12px; border-radius:9px; font-size:14px; font-weight:700; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 11%, transparent); flex:none; }
.toast-act:hover { background:color-mix(in srgb, var(--color-brand) 18%, transparent); }
/* round 370: the card for a language version that landed: the picture with its seal and a ring that says it is new, the language, the
   video's name, the state as one small line, Watch and Share side by side at one height, the X in the corner, and a line of time running
   out under it. It rides the toasts' stack and leaves the way it came */
.landed { position:relative; display:grid; grid-template-columns:56px minmax(0, 1fr); grid-template-areas:"pic text" "pic acts" "foot foot"; column-gap:14px; row-gap:10px; align-items:start; width:min(420px, calc(100vw - 24px)); padding:14px 44px 16px 16px; border-radius:20px; background:var(--glass); box-shadow:var(--shadow); overflow:hidden; pointer-events:auto; text-align:left; }
.landed-pic { grid-area:pic; position:relative; width:56px; height:56px; }
.landed-pic img { width:56px; height:56px; border-radius:14px; object-fit:cover; display:block; background:var(--s-3); }
.landed-ring { position:absolute; inset:-3px; border-radius:17px; border:2px solid var(--accent); opacity:0; animation:landedRing 1.1s var(--ease-out) .3s 1; }
@keyframes landedRing { 0% { opacity:.9; transform:scale(.92); } 100% { opacity:0; transform:scale(1.3); } }
.landed-seal { position:absolute; right:-5px; bottom:-5px; width:22px; height:22px; border-radius:99px; display:grid; place-items:center; font-size:12px; color:#fff; background:var(--sem-green); box-shadow:0 0 0 2px var(--s-0); }
.landed-t { grid-area:text; display:grid; gap:3px; min-width:0; }
.landed-t b { font-size:15.5px; font-weight:650; line-height:1.25; color:var(--t-100); }
.landed-t small { font-size:13.5px; line-height:1.3; color:var(--t-300); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.landed-state { display:inline-flex; align-items:center; gap:5px; margin-top:2px; font-size:12.5px; font-weight:600; color:var(--t-400); }
.landed[data-state="ok"] .landed-state i { color:var(--sem-green); font-size:14px; }
.landed[data-state="wait"] .landed-state i { color:var(--t-500); font-size:14px; }
.landed-acts { grid-area:acts; display:flex; align-items:center; gap:4px; }
.landed-go { display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 16px; border:0; border-radius:10px; font:inherit; font-size:14px; font-weight:700; color:#fff; background:var(--color-brand); cursor:pointer; transition:background-color .15s, color .15s; }
.landed-go i { font-size:14px; }
.landed-go.soft { color:var(--accent); background:transparent; padding:0 12px; }
.landed-go:hover { filter:brightness(1.06); } .landed-go.soft:hover { background:color-mix(in srgb, var(--color-brand) 10%, transparent); filter:none; } .landed-go:active { scale:.97; }
.landed-x { position:absolute; top:10px; right:10px; width:30px; height:30px; border:0; border-radius:99px; background:transparent; color:var(--t-500); cursor:pointer; display:grid; place-items:center; font-size:15px; } .landed-x:hover { background:var(--s-3); color:var(--t-200); }
.landed-allow { grid-area:foot; justify-self:start; display:inline-flex; align-items:center; gap:6px; margin:2px 0 0; padding:0; border:0; background:none; font:inherit; font-size:12.5px; color:var(--t-500); cursor:pointer; } .landed-allow:hover { color:var(--accent); } .landed-allow i { font-size:14px; }
.landed-bar { position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--brand-grad); transform-origin:left center; }
@media (prefers-reduced-motion: reduce) { .landed-ring { animation:none; } }
/* the card shows over the viewer too: a version lands while another video is being watched */
.toaster:has(.landed) { z-index:210; }
@media (max-width:560px) { .landed { grid-template-columns:48px minmax(0, 1fr); padding-right:40px; } .landed-pic, .landed-pic img { width:48px; height:48px; } .landed-pic img { border-radius:12px; } }

/* ── the share box says what it takes ── */
.share-note { margin:10px 0 0; font-size:14.5px; color:var(--t-500); max-width:60ch; transition:color var(--dur-fast); }
.share-note.bad { color:var(--sem-red); font-weight:600; }

/* ── round 1-3 of references: sources on the plan, photo tips, the teleprompter ── */
.om-src { display:flex; align-items:center; gap:6px; margin:-2px 0 0; font-size:14px; color:var(--t-400); }
.om-src i { font-size:16px; color:var(--color-brand); }
.tips { list-style:none; margin:14px 0 0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; max-width:760px; }
.tips li { display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 12px; border-radius:99px; background:var(--glass); border:1px solid rgba(var(--op-line),.08); font-size:14.5px; color:var(--t-200); }
.tips li i { font-size:17px; color:var(--color-brand); }
/* ── the recorder ─────────────────────────────────────────────────────────
   A stage, not a page: it takes the height it is given and the camera grows
   into whatever is left, so this screen can never scroll. The words stand
   beside the camera, close to it and high, so her eyes stay near the lens. */
[data-step="record"] { overflow:hidden; height:calc((100dvh - var(--tb-h) - 40px) / var(--zoom)); justify-content:center; }
[data-step="record"] .q { transition:font-size .4s var(--ease-out); }
/* while it is filming the heading gets out of the way: the red dot and the clock say enough */
[data-step="record"].filming .q { font-size:20px; }
[data-step="record"].filming .sub { display:none; }
.rec-stage { flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; gap:32px; width:min(100%, 1000px); margin-top:14px; }
.rec-cam { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; height:100%; min-height:0; flex:none; }
/* the height is set in script, in pixels, and the width follows from the ratio. It cannot come
   from flex: a box whose height is resolved by the flex line cannot report a width back to that
   line, so the row is laid out from a wrong total and the camera paints over the words. */
.rec-cam .cam { flex:none; min-height:0; width:auto; margin:0; }
/* the control belongs to the picture it controls: one row, under the camera */
[data-step="record"] #recActions { flex:none; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:14px; margin:0; }
[data-step="record"] .rec-btn { width:60px; height:60px; }
[data-step="record"] .rec-btn i { width:44px; height:44px; }
[data-step="record"] .rec-label { width:auto; margin:0; font-size:15px; text-align:left; white-space:nowrap; }
[data-step="record"] #recRestart { margin:0; }
[data-step="record"] #recDone { flex:none; margin-top:16px; }
/* the reading column: short lines, biased to the top third, where the eyes go */
.prompter { flex:none; width:min(36ch, 430px); align-self:stretch; display:flex; flex-direction:column; justify-content:center; padding-bottom:14%; text-align:left; }
.pr-t { display:flex; align-items:center; gap:8px; margin:0 0 13px; font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--t-500); }
.pr-t i { font-size:15px; color:var(--color-brand); }
.pr-t b { margin-left:auto; font-weight:500; letter-spacing:.08em; color:var(--t-400); font-variant-numeric:tabular-nums; }
.prompter > b { display:block; font-size:clamp(21px, 2.05vw, 31px); font-weight:650; line-height:1.28; letter-spacing:-.015em; color:var(--t-100); text-wrap:balance; }
.prompter > span { display:block; margin-top:14px; font-size:16px; line-height:1.45; color:var(--t-500); }
/* the rail is the clock: the live mark fills over the time that line takes to say */
.pr-dots { display:flex; gap:5px; margin-top:20px; }
.pr-dots i { position:relative; flex:1; height:4px; border-radius:99px; background:rgba(var(--op-line),.14); overflow:hidden; }
.pr-dots i::after { content:''; position:absolute; left:0; top:0; bottom:0; width:0; border-radius:99px; background:var(--color-brand); }
.pr-dots i[data-done]::after { width:100%; background:color-mix(in srgb, var(--color-brand) 45%, transparent); }
.pr-dots i[data-on]::after { width:100%; transition:width var(--pace, 5s) linear; }
.prompter { cursor:default; }
[data-step="record"].filming .prompter { cursor:pointer; }
.pr-hint { margin:10px 0 0; font-size:12.5px; color:var(--t-500); opacity:0; transition:opacity .3s; }
[data-step="record"].filming .pr-hint { opacity:1; }
[data-step="record"] .stepback { margin-top:6px; }
[data-step="record"] .sub { margin-top:6px; }
@media (max-height:820px) { .prompter > b { font-size:clamp(19px, 1.9vw, 26px); } .prompter > span { font-size:15px; margin-top:11px; } .pr-dots { margin-top:14px; } }
@media (max-width:900px) {
  [data-step="record"] { height:auto; overflow-y:auto; }
  .rec-stage { flex-direction:column; gap:14px; margin-top:6px; width:100%; }
  .rec-cam { height:auto; flex:none; }
  .rec-cam .cam { flex:none; height:min(360px, 40vh) !important; }
  .prompter { width:min(100%, 430px); align-self:auto; padding-bottom:0; text-align:center; }
  .pr-t { justify-content:center; margin-bottom:8px; }
  .pr-t b { margin-left:0; }
  .prompter > b { font-size:19px; }
  .prompter > span { font-size:15px; margin-top:8px; }
  .pr-dots { justify-content:center; margin-top:12px; }
}
.cam[data-state="recording"] .cam-guide { opacity:0; }
#recRestart { margin-left:6px; }
#notifyMe { margin-top:2px; }
#notifyMe:disabled { opacity:.8; cursor:default; }

/* ── sound like you: one sentence to read ── */
.voice-line { margin:22px 0 0; padding:20px 26px; max-width:640px; border-radius:20px; background:var(--s-1); border:1px solid rgba(var(--op-line),.10); box-shadow:var(--shadow); font-size:22px; line-height:1.4; font-weight:500; color:var(--t-100); text-wrap:balance; }
[data-step="voice"] .actions { margin-top:22px; }

/* what is a stand-in says so, and the approval line reads in two rows */
.standin { display:flex; align-items:flex-start; gap:9px; margin:12px 0 0; padding:11px 14px; max-width:56ch; border-radius:13px; background:color-mix(in srgb, var(--sem-amber) 9%, transparent); border:1px solid color-mix(in srgb, var(--sem-amber) 22%, transparent); font-size:14.5px; line-height:1.45; color:var(--t-200); text-align:left; }
.standin i { font-size:17px; color:var(--sem-amber); flex:none; margin-top:1px; }
.words .standin { margin:0 0 12px; }
.approval { display:flex; align-items:flex-start; gap:9px; margin:-2px 0 14px; font-size:14px; color:var(--t-400); }
.approval i { font-size:19px; color:var(--sem-green); flex:none; margin-top:1px; }
.ap-t b { display:block; font-size:14.5px; font-weight:600; color:var(--t-100); }
.ap-t small { display:block; margin-top:2px; font-size:13px; color:var(--t-500); }
.done-line { margin-bottom:12px; }

/* ── the offer: a card for the pick, four cards for the rest ── */
[data-step="offer"] .q { font-size:clamp(28px, 3.9vh, 36px); }
[data-step="offer"] .sub { max-width:72ch; margin-top:6px; }
.offer-main { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:24px; width:min(100%, 900px); margin-top:14px; padding:16px; border-radius:24px; background:var(--s-1); border:1px solid rgba(var(--op-line),.10); box-shadow:var(--shadow); text-align:left; }
.om-art { position:relative; height:min(320px, 32vh); aspect-ratio:9/16; border-radius:18px; overflow:hidden; background:#000; }
.om-art video, .om-art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.om-art .phone-cap { bottom:14px; font-size:12px; }
.om-art .phone-ai { top:10px; right:10px; }
.om-body { display:flex; flex-direction:column; gap:14px; min-width:0; padding:2px 0; }
.om-k { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; height:28px; padding:0 10px; border-radius:8px; font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 11%, transparent); }
.om-k i { font-size:13px; }
.om-name { margin:2px 0 0; font-size:27px; font-weight:700; letter-spacing:-.02em; line-height:1.15; color:var(--t-100); outline:none; }
.om-why { margin:0; font-size:16.5px; line-height:1.5; color:var(--t-300); max-width:52ch; }
.om-get { list-style:none; margin:2px 0 0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:5px 16px; }
.om-get li { display:flex; align-items:flex-start; gap:8px; font-size:15px; line-height:1.4; color:var(--t-200); }
.om-get i { font-size:18px; color:var(--color-brand); flex:none; margin-top:1px; }
.om-langs { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-top:2px; padding-top:13px; border-top:1px solid rgba(var(--op-line),.07); }
.om-lt { font-size:14px; font-weight:600; color:var(--t-400); margin-right:2px; }
.lchip { display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 13px; border-radius:99px; border:1.5px solid rgba(var(--op-line),.14); background:var(--s-1); font-size:15px; font-weight:600; color:var(--t-200); transition:border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.lchip small { font-size:11.5px; font-weight:500; color:var(--t-500); }
.lchip:hover { border-color:rgba(var(--op-line),.3); }
.lchip[aria-pressed="true"] { background:color-mix(in srgb, var(--color-brand) 12%, transparent); border-color:var(--color-brand); color:var(--t-100); }
.lchip[aria-pressed="true"]::before { content:'✓'; font-size:13px; color:var(--color-brand); margin-right:-2px; }
.lchip:disabled { cursor:default; }
.lchip-more { border-style:dashed; color:var(--t-400); }
.lchip-more i { font-size:15px; }
.om-foot { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:auto; padding-top:16px; }
.om-time { display:inline-flex; align-items:center; gap:6px; font-size:15px; color:var(--t-400); }
.om-time i { font-size:18px; color:var(--color-brand); }
.om-foot .primary { height:56px; font-size:18px; padding:0 26px; }
.offer-alt { width:min(100%, 900px); margin-top:30px; text-align:left; }
.oa-t { margin:0 0 10px 4px; font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--t-500); }
.alt-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; }
.alt { display:flex; flex-direction:column; align-items:flex-start; gap:7px; min-height:104px; padding:14px 16px; border-radius:16px; background:var(--glass); border:1px solid rgba(var(--op-line),.09); text-align:left; transition:border-color var(--dur-fast), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
@media (hover:hover) and (pointer:fine) { .alt:hover { border-color:color-mix(in srgb, var(--color-brand) 45%, transparent); transform:translateY(-2px); box-shadow:0 14px 30px -20px rgba(0,0,0,.35); } }
.alt > i { font-size:20px; color:var(--color-brand); }
.alt-t { display:flex; flex-direction:column; gap:2px; min-width:0; }
.alt strong { font-size:15.5px; font-weight:650; color:var(--t-100); line-height:1.25; }
.alt small { font-size:13.5px; line-height:1.35; color:var(--t-500); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.alt-d { margin-top:auto; font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; color:var(--t-500); }
@media (max-height:820px) { .om-src { display:none; } .cam { height:min(420px, 50vh) !important; margin-top:12px; } [data-step="record"] .sub { font-size:16px; margin-top:6px; } .rec-btn { width:64px; height:64px; } .alt { min-height:64px; } [data-step="offer"] .sub { display:none; } .om-art { height:min(300px, 32vh); } .om-art .phone-cap { display:none; } .om-get { display:none; } .om-body { gap:10px; } .alt { min-height:64px; } .alt small { display:none; } .alt-t { flex-direction:row; align-items:baseline; gap:10px; } .offer-main { margin-top:10px; padding:16px 18px; } .offer-alt { margin-top:20px; } [data-step="offer"] .stepback { margin-top:8px; } }
[data-step="offer"] .stepback { margin-top:8px; background:transparent; border-color:transparent; color:var(--t-400); }

/* ── help: the short version first ── */
.how-short { list-style:none; margin:6px 0 4px; padding:0; display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.how-short li { display:flex; flex-direction:column; gap:8px; padding:14px; border-radius:16px; background:rgba(var(--op-line),.04); border:1px solid rgba(var(--op-line),.07); font-size:14.5px; line-height:1.4; color:var(--t-300); }
.how-short li i { font-size:24px; color:var(--color-brand); }
.how-short strong { display:block; font-size:16px; font-weight:650; color:var(--t-100); margin-bottom:2px; }
.how-deep { margin:16px 0 4px; font-size:14px; color:var(--t-400); }
@media (max-width:780px) { .how-short { grid-template-columns:1fr; } }

/* ── a turning icon while a chip works ── */
.spin { animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

.done-next { height:56px; font-size:17px; padding:0 24px; border-radius:16px; }
.ghost.done-next i { color:var(--color-brand); }
[data-step="done"] .actions { gap:12px; align-items:center; }

/* ── the approval record: a card with the frame, then the facts ── */
.lm.wide { width:min(100%, 600px); }
/* the details sheet: a hero with the frame and the origin chips, a grid of facts, one approval row, the id (round 241) */
[data-kind="record"] .lm-ico { display:none; } [data-kind="record"] #lmTitle { font-size:19px; margin-top:2px; }
.rc { text-align:left; }
.rc-hero { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:16px; align-items:center; padding:12px; border-radius:16px; background:rgba(var(--op-line),.03); border:1px solid rgba(var(--op-line),.08); }
.rc-hero .rec-shot { width:72px; border-radius:10px; }
.rc-title { margin:0; font-size:17px; font-weight:700; letter-spacing:-.01em; line-height:1.25; color:var(--t-100); }
.rc-sub { display:flex; align-items:center; gap:6px; margin:4px 0 0; font-size:13px; color:var(--t-400); } .rc-sub i { font-size:14px; color:var(--color-brand); }
.rc-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.rc-chip { display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 9px; border-radius:8px; background:rgba(var(--op-line),.06); font-size:12.5px; font-weight:600; color:var(--t-200); font-variant-numeric:tabular-nums; white-space:nowrap; }
.rc-chip { max-width:100%; min-width:0; } .rc-chip-t { min-width:0; overflow:hidden; text-overflow:ellipsis; }   /* on a phone a long "Dose app · <browser> on <system>" ran past the card (3 October 2026) */
.rc-chip i { font-size:14px; color:var(--t-400); } .rc-chip.rc-from i { color:#25D366; } .rc-chip.rc-app i { color:var(--color-brand); }
.rc-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:1px; margin:12px 0 0; border-radius:14px; overflow:hidden; background:rgba(var(--op-line),.09); border:1px solid rgba(var(--op-line),.09); }
.rc-cell { display:flex; flex-direction:column; gap:3px; min-width:0; padding:10px 12px; background:var(--s-1); }
.rc-cell small { font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--t-500); }
.rc-cell span { font-size:13.5px; line-height:1.35; color:var(--t-100); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rc-approval { display:flex; align-items:center; gap:10px; margin:12px 0 0; padding:10px 12px; border-radius:12px; background:color-mix(in srgb, var(--sem-green) 10%, transparent); }
.rc-approval > i { flex:none; font-size:22px; color:var(--sem-green); }
.rc-approval b { display:block; font-size:14px; color:var(--sem-green); } .rc-approval small { display:block; margin-top:1px; font-size:12.5px; line-height:1.4; color:var(--t-300); }
.rc-approval.rc-pending { background:color-mix(in srgb, var(--sem-amber) 12%, transparent); } .rc-pending > i, .rc-pending b { color:var(--sem-amber); }
.rc-id { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:10px 0 0; font-family:var(--font-mono); font-size:11px; color:var(--t-500); } .rc-id span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rc-id .rc-acts { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; flex:none; overflow:visible; white-space:normal; } .rc-acts .rc-why { font-size:11px; color:var(--t-500); white-space:nowrap; }   /* Copy details and Print the handout side by side (round 278) */
@media (max-width: 560px) { .rc-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } .rc-hero { gap:12px; } .rc-cell span { white-space:normal; } }
/* on a phone the foot's buttons and "Approve the video first" ran past the sheet's edge (3 October 2026): the row may shrink and wrap there */
@media (max-width: 560px) { .rc-id .rc-acts { flex:1 1 auto; min-width:0; } }
.rec-card { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:18px; align-items:center; width:100%; margin:2px 0 16px; padding:14px; border-radius:18px; background:rgba(var(--op-line),.03); border:1px solid rgba(var(--op-line),.08); text-align:left; }
.rec-shot { position:relative; width:96px; aspect-ratio:9/16; border-radius:12px; overflow:hidden; background:#000; }
.rec-shot img { width:100%; height:100%; object-fit:cover; }
.rec-seal { position:absolute; right:5px; bottom:5px; width:22px; height:22px; border-radius:99px; display:grid; place-items:center; background:#fff; color:var(--sem-green); font-size:15px; box-shadow:0 2px 6px rgba(0,0,0,.25); }
.rec-title { margin:0; font-size:17px; font-weight:700; letter-spacing:-.01em; line-height:1.25; color:var(--t-100); }
.rec-kind { display:flex; align-items:center; gap:6px; margin:6px 0 0; font-size:13.5px; color:var(--t-400); }
.rec-kind i { font-size:15px; color:var(--color-brand); }
.rec-by { display:inline-flex; align-items:center; gap:6px; margin:10px 0 0; padding:4px 10px 4px 8px; border-radius:8px; background:color-mix(in srgb, var(--sem-green) 12%, transparent); font-size:13.5px; color:var(--sem-green); }
.rec-by b { color:var(--sem-green); }
.rec-by i { font-size:15px; }
.rec-when { margin:6px 0 0; font-size:13px; color:var(--t-500); font-variant-numeric:tabular-nums; }
.lm.wide .rec { margin-top:0; }
.rec-row { grid-template-columns:112px 1fr; padding:10px 14px; }

/* live mode: the models, and what they cost */
.engines { display:flex; flex-direction:column; gap:8px; margin:2px 0 4px; text-align:left; }
.eng { position:relative; display:grid; grid-template-columns:1fr auto; gap:2px 12px; padding:12px 44px 12px 14px; border-radius:14px; border:1.5px solid rgba(var(--op-line),.12); cursor:pointer; transition:border-color var(--dur-fast), background-color var(--dur-fast); }
.eng input { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; }
.eng-n { font-size:15.5px; font-weight:650; color:var(--t-100); }
.eng-p { font-family:var(--font-mono); font-size:12.5px; color:var(--t-400); white-space:nowrap; }
.eng small { grid-column:1 / 3; font-size:13px; line-height:1.4; color:var(--t-500); }
.eng > i { position:absolute; right:14px; top:50%; margin-top:-11px; font-size:22px; color:var(--color-brand); opacity:0; transform:scale(.6); transition:opacity var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.eng[data-on="1"] { border-color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 7%, transparent); }
.eng[data-on="1"] > i { opacity:1; transform:none; }
.eng:has(input:focus-visible) { outline:3px solid var(--color-brand); outline-offset:2px; }
.live-cost b { color:var(--t-300); font-weight:600; }
#live .lm-scrim, #live { align-items:center; }
#live .lm { width:min(100%, 560px); max-height:calc(100dvh - 40px); padding:22px 0 0; overflow:hidden; display:flex; flex-direction:column; gap:0; }
#live .lm-ico, #live h3 { flex:none; }
#live .lm-body { flex:1; min-height:0; overflow-y:auto; padding:8px 24px 4px; display:flex; flex-direction:column; gap:12px; scrollbar-width:thin; }
#live .lm-text, #live .live-cost, #live .cn-field, #live .menu-t, #live .engines { width:100%; margin-left:0; margin-right:0; }
#live .lm-text { margin:0; }
#live .menu-t { margin:2px 0 0; }
#live .live-cost { margin:0 0 4px; }
#live .lm-actions { position:relative; flex:none; margin:0; padding:14px 24px 20px; border-top:1px solid rgba(var(--op-line),.08); background:var(--s-1); }
/* a soft edge over the scroll, so a cut card reads as more below rather than a broken layout */
#live .lm-actions::before { content:''; position:absolute; left:0; right:0; bottom:100%; height:26px; pointer-events:none; background:linear-gradient(to bottom, transparent, var(--s-1)); }

/* live mode */
#rowLive[data-on="1"] > i:first-child { color:var(--sem-green); }
#rowLive[data-on="1"] strong::after { content:' · on'; color:var(--sem-green); }
.live-cost { display:flex; align-items:flex-start; gap:8px; margin:14px 0 0; font-size:13.5px; line-height:1.45; color:var(--t-500); text-align:left; }
.live-cost i { font-size:16px; color:var(--color-brand); flex:none; margin-top:1px; }
#live .lm { text-align:center; }
#live .lm-text { text-align:left; }

/* ── connecting an account ── */
.cn-scrim { position:fixed; inset:0; z-index:97; display:grid; place-items:center; padding:20px; background:rgba(8,4,18,.42); backdrop-filter:blur(6px); }
.cn-scrim[hidden] { display:none; }
.cn { width:min(100%, 440px); border-radius:24px; overflow:hidden; background:var(--s-1); border:1px solid rgba(var(--op-line),.10); box-shadow:var(--shadow); }
.cn-head { display:flex; align-items:center; justify-content:center; gap:14px; padding:22px 0 6px; }
.cn-logo, .cn-dose { width:54px; height:54px; border-radius:17px; display:grid; place-items:center; font-size:26px; color:#fff; }
.cn-dose { background:color-mix(in srgb, var(--color-brand) 12%, transparent); font-size:22px; }
.cn-dose .dose-pill { width:26px; height:16px; }
.cn-arrow { color:var(--t-500); font-size:18px; }
.cn-body { padding:12px 26px 24px; text-align:center; }
.cn h3 { margin:0 0 6px; font-size:21px; font-weight:700; letter-spacing:-.02em; color:var(--t-100); }
.cn-sub { margin:0 0 14px; font-size:15.5px; line-height:1.45; color:var(--t-400); }
.cn-asks { list-style:none; margin:0 0 14px; padding:0; display:flex; flex-direction:column; gap:8px; text-align:left; }
.cn-asks li { display:flex; align-items:flex-start; gap:10px; padding:11px 14px; border-radius:13px; background:rgba(var(--op-line),.04); font-size:15px; color:var(--t-200); }
.cn-asks i { font-size:17px; color:var(--sem-green); margin-top:1px; }
.cn-note { display:flex; align-items:flex-start; gap:8px; margin:0; font-size:13.5px; line-height:1.4; color:var(--t-500); text-align:left; }
.cn-note i { font-size:16px; color:var(--color-brand); flex:none; margin-top:1px; }
.cn-foot { display:flex; gap:10px; margin-top:18px; }
.cn-foot button { flex:1; height:52px; font-size:16px; border-radius:14px; padding:0 14px; }
.cn-foot.one button { flex:none; width:100%; }
.cn-plat { margin:-12px -26px -24px; padding:20px 26px 22px; border-top:3px solid var(--net); }
.cn-plat-t { margin:0 0 10px; font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--net); }
.cn-allow { background:var(--net); }
.cn-acct { display:flex; align-items:center; gap:12px; margin:14px 0; padding:10px 12px; border-radius:14px; border:1px solid rgba(var(--op-line),.10); text-align:left; }
.cn-acct img { width:42px; height:42px; border-radius:12px; object-fit:cover; }
.cn-acct b { display:block; font-size:15.5px; color:var(--t-100); }
.cn-acct small { display:block; font-size:13.5px; color:var(--t-500); }
.cn-acct span { flex:1; min-width:0; }
.cn-acct > i { font-size:20px; color:var(--sem-green); }
.cn-fake { margin:12px 0 0; font-size:12px; color:var(--t-500); }
.cn-wait { display:flex; flex-direction:column; align-items:center; padding:14px 0 6px; font-size:16px; color:var(--t-300); }
.cn-spin { font-size:34px; color:var(--color-brand); }
.cn-ok { padding-top:6px; }
.cn-tick { display:block; font-size:52px; color:var(--sem-green); margin-bottom:8px; }
.acct span small { display:block; font-size:13px; font-weight:400; color:var(--t-500); }

/* the connection being made: a pulse crossing the wire, and the three real steps */
#connect[data-step="wait"] .cn-head { display:none; }
#connect[data-step="wait"] .cn-body, #connect[data-step="wait"] .cn-wait { padding-top:8px; }
.cn-link { display:flex; align-items:center; justify-content:center; gap:0; margin:6px 0 18px; }
.cn-end { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; font-size:25px; color:#fff; flex:none; }
.cn-end-dose { background:color-mix(in srgb, var(--color-brand) 14%, transparent); }
.cn-end-dose .dose-pill { width:26px; height:16px; }
.cn-wire { position:relative; width:96px; height:2px; background:rgba(var(--op-line),.14); }
.cn-dot { position:absolute; top:50%; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:99px; background:var(--color-brand); box-shadow:0 0 12px 2px color-mix(in srgb, var(--color-brand) 55%, transparent); }
.cn-steps { list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:9px; text-align:left; width:100%; }
.cn-steps li { display:flex; align-items:center; gap:10px; font-size:15px; color:var(--t-500); transition:color var(--dur-base); }
.cn-steps li i { font-size:19px; color:var(--t-600); transition:color var(--dur-base); }
.cn-steps li[data-on] { color:var(--t-200); }
.cn-steps li[data-on] i { color:var(--color-brand); }
.cn-steps li[data-done] { color:var(--t-300); }
.cn-steps li[data-done] i { color:var(--sem-green); }
.cn-bar { display:block; width:100%; height:4px; border-radius:99px; background:rgba(var(--op-line),.10); overflow:hidden; }
.cn-bar i { display:block; height:100%; border-radius:99px; background:var(--brand-grad); transform-origin:left; }

/* ── the sign-off at the end of a piece ── */
.outro { position:absolute; inset:0; z-index:6; display:none; flex-direction:column; align-items:center; justify-content:center; gap:6px; background:linear-gradient(160deg, #17102E 0%, #0E0E12 60%, #2A1550 100%); color:#fff; pointer-events:none; }
.outro::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 60% 40% at 50% 45%, color-mix(in srgb, var(--color-brand) 32%, transparent), transparent 70%); }
.outro-mark { position:relative; z-index:1; display:grid; place-items:center; width:64px; height:64px; border-radius:22px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); }
.outro-mark .dose-pill { width:30px; height:18px; box-shadow:0 0 22px rgba(var(--op-accent-rgb),.7); }
.outro b { position:relative; z-index:1; margin-top:10px; font-size:22px; font-weight:800; letter-spacing:-.02em; }
.outro small { position:relative; z-index:1; font-size:12px; opacity:.72; }
.viewer-stage .outro b { font-size:30px; }
.viewer-stage .outro-mark { width:84px; height:84px; border-radius:28px; }
.viewer-stage .outro-mark .dose-pill { width:40px; height:24px; }

/* ── the waiting screens breathe: nothing sits still, nothing jumps ── */
.orb-doc, .orb-img { will-change:transform; }
.facts li { will-change:transform, opacity; }
.timeline li span, .now, .orb-pct { transition:color var(--dur-base); }

.facts li.in i { animation:popc .5s cubic-bezier(.22, 1, .36, 1) .22s both !important; }
.facts li { transition:background-color var(--dur-base); }
.orb-halo { position:absolute; inset:-6px; border-radius:99px; border:2px solid color-mix(in srgb, var(--color-brand) 45%, transparent); pointer-events:none; }
.orb { position:relative; }
[data-step="reading"] .q, [data-step="reading"] .sub { transition:color var(--dur-base); }   /* round 326: the swap is gsap's; a CSS opacity transition on top smeared it */

/* ── the hub: one place for every account ── */
.step.wide-mid { max-width:min(1000px, 100vw - 48px); }
.hub { width:min(100%, 860px); margin-top:20px; text-align:left; }
.hub-t { display:flex; align-items:center; gap:8px; margin:0 0 10px 2px; font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--t-500); }
.hub-t i { font-size:15px; color:var(--color-brand); }
.hub-t + .hub-grid + .hub-t { margin-top:20px; }
.hub { display:flex; flex-direction:column; gap:6px; }
.hub-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; }
.hub-grid + .hub-t { margin-top:22px; }
.hub-card { display:grid; grid-template-columns:auto minmax(0, 1fr); grid-template-rows:auto auto auto; column-gap:13px; row-gap:2px; align-items:center; padding:15px 16px 16px; border-radius:18px; background:var(--s-1); border:1.5px solid rgba(var(--op-line),.10); text-align:left; transition:border-color var(--dur-fast), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
@media (hover:hover) and (pointer:fine) { .hub-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb, var(--color-brand) 45%, transparent); box-shadow:0 16px 34px -22px rgba(0,0,0,.4); } }
.hub-card[data-on="0"] { border-style:dashed; background:transparent; }
.hub-logo { grid-row:1 / 3; width:46px; height:46px; border-radius:14px; display:grid; place-items:center; font-size:23px; color:#fff; border:1px solid rgba(var(--op-line),.08); }
.hub-card[data-on="0"] .hub-logo { color:var(--t-400); background:rgba(var(--op-line),.05); }
.hub-name { align-self:end; font-size:16.5px; font-weight:650; color:var(--t-100); }
.hub-state { align-self:start; min-width:0; font-size:13.5px; color:var(--t-500); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hub-do { position:relative; grid-column:1 / 3; display:grid; place-items:center; margin-top:12px; height:42px; border-radius:11px; font-size:14.5px; font-weight:600; overflow:hidden; }
.hub-do b { grid-area:1 / 1; display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; font-weight:600; transition:opacity var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.hub-do i { font-size:17px; }
.hd-off { opacity:0; transform:translateY(6px); color:var(--sem-red); }
.hub-card[data-on="1"] .hub-do { color:var(--sem-green); background:color-mix(in srgb, var(--sem-green) 10%, transparent); }
.hub-card[data-on="0"] .hub-do { color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 12%, transparent); transition:background-color var(--dur-fast), color var(--dur-fast); }
.hub-card[data-on="0"]:hover .hub-do, .hub-card[data-on="0"]:focus-visible .hub-do { color:var(--color-primary-foreground); background:var(--color-brand); }
/* a connected card offers the opposite action only when you reach for it */
.hub-card[data-on="1"]:hover .hub-do, .hub-card[data-on="1"]:focus-visible .hub-do { background:color-mix(in srgb, var(--sem-red) 10%, transparent); }
.hub-card[data-on="1"]:focus-visible .hd-on { opacity:0; transform:translateY(-6px); } @media (hover:hover) and (pointer:fine) { .hub-card[data-on="1"]:hover .hd-on { opacity:0; transform:translateY(-6px); } }
.hub-card[data-on="1"]:focus-visible .hd-off { opacity:1; transform:none; } @media (hover:hover) and (pointer:fine) { .hub-card[data-on="1"]:hover .hd-off { opacity:1; transform:none; } }
.hub-card[data-on="1"]:hover { border-color:color-mix(in srgb, var(--sem-red) 40%, transparent); }
.hub-logo { transition:background-color var(--dur-base), color var(--dur-base); }
.hub-link { margin-top:10px; }
[data-step="accounts"] .hint { margin-top:18px; }
@media (max-width:1100px) { .hub-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:780px) { .hub-grid { grid-template-columns:1fr; gap:10px; } .hub-card { grid-template-columns:auto 1fr auto; grid-template-rows:auto auto; padding:12px 14px; column-gap:12px; } .hub-logo { grid-row:1 / 3; width:42px; height:42px; } .hub-name { font-size:15.5px; } .hub-do { grid-column:3; grid-row:1 / 3; margin-top:0; padding:0 12px; } [data-step="accounts"] .hub-t + .hub-grid + .hub-t { margin-top:16px; } }

/* the platform screen: an account chooser and permissions you can weigh */
.cn-foot button { white-space:nowrap; }
.cn-foot .primary i { font-size:17px; margin-left:2px; }
.cn-pick { display:flex; flex-direction:column; gap:8px; margin:14px 0 0; }
.cn-pick .cn-acct { margin:0; cursor:pointer; transition:border-color var(--dur-fast), background-color var(--dur-fast); }
.cn-pick input { position:absolute; opacity:0; pointer-events:none; }
.cn-pick .cn-acct > i { opacity:0; transform:scale(.6); transition:opacity var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.cn-pick .cn-acct:has(input:checked) { border-color:var(--net, var(--color-brand)); background:color-mix(in srgb, var(--net, var(--color-brand)) 7%, transparent); }
.cn-pick .cn-acct:has(input:checked) > i { opacity:1; transform:none; color:var(--net, var(--color-brand)); }
.cn-pick .cn-acct:has(input:focus-visible) { outline:3px solid var(--color-brand); outline-offset:2px; }
.cn-ava { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; font-size:20px; color:var(--t-500); background:rgba(var(--op-line),.06); flex:none; }
.cn-other-form { margin-top:10px; }
.cn-field { display:block; text-align:left; }
.cn-field span { display:block; margin-bottom:5px; font-size:13px; color:var(--t-500); }
.cn-field input { width:100%; height:48px; padding:0 14px; border-radius:12px; font-size:16px; color:var(--t-100); background:var(--s-0); border:1.5px solid rgba(var(--op-line),.14); outline:none; transition:border-color var(--dur-fast), box-shadow var(--dur-fast); }
.cn-field input:focus { border-color:var(--net, var(--color-brand)); box-shadow:0 0 0 4px color-mix(in srgb, var(--net, var(--color-brand)) 12%, transparent); }
.cn-scopes-t { margin:16px 0 8px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--t-500); text-align:left; }
.cn-asks li { justify-content:flex-start; gap:10px; }
.cn-asks li span { flex:1; }
.cn-asks li small { font-family:var(--font-mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--t-500); }
.cn-asks li i { color:var(--sem-green); }
.cn-opt { padding:0; background:transparent; }
.cn-opt label { display:flex; align-items:center; gap:10px; width:100%; padding:11px 14px; border-radius:13px; background:rgba(var(--op-line),.04); cursor:pointer; }
.cn-opt input { position:absolute; opacity:0; pointer-events:none; }
.cn-opt i { font-size:19px; color:var(--t-500); }
.cn-opt label:has(input:checked) i { color:var(--net, var(--color-brand)); }
.cn-opt label:has(input:focus-visible) { outline:3px solid var(--color-brand); outline-offset:2px; }

/* ── what is not connected looks like it ── */
.dchip[data-off] { border-style:dashed; border-color:rgba(var(--op-line),.22); background:transparent; color:var(--t-400); }
.dchip[data-off] i { color:var(--t-500); }
.dchip[data-off] small { color:var(--t-500); }
.dchip[data-off]:hover { border-color:color-mix(in srgb, var(--color-brand) 55%, transparent); color:var(--t-100); }
.dchip[data-off]:hover i, .dchip[data-off]:hover .dchip-plug { color:var(--color-brand); }
.dchip-plug { margin-left:2px; font-size:13px; color:var(--t-500); display:inline-grid; place-items:center; }
.acct[data-off="1"] i { color:var(--t-500); }
.acct[data-off="1"] span { color:var(--t-300); }

/* ── connected accounts, under You ── */
.acct { display:flex; align-items:center; gap:12px; width:100%; padding:9px 10px; border-radius:12px; }
.acct i { font-size:20px; color:var(--color-brand); width:24px; }
.acct span { flex:1; font-size:15.5px; font-weight:550; color:var(--t-100); }
.acct .mini { height:36px; font-size:14px; }
.acct .mini[data-on="1"] { color:var(--sem-green); background:color-mix(in srgb, var(--sem-green) 10%, transparent); }
.manage-link { margin-top:2px; }

/* ── print: only the approval record, on paper ── */
@media print {
  body > *:not(#libModal) { display:none !important; }
  #libModal, .lm-scrim { position:static !important; display:block !important; background:#fff !important; backdrop-filter:none !important; padding:0 !important; }
  .lm { width:100% !important; max-width:none !important; box-shadow:none !important; border:0 !important; }
  .lm-ico, .lm-actions { display:none !important; }
  .rec-title-print { display:block !important; font-size:14px; color:#333; margin:0 0 10px; }
  .rec { border-color:#ccc !important; }
  .rec-row { border-color:#e5e5e5 !important; color:#000 !important; }
  .rec-row small { color:#555 !important; }
}

/* ── phones: the three destinations live in a bottom bar ── */
@media (max-width:780px) {
  .tb-nav { display:flex; }
  .tb-nav > .tb-btn:not(.tray) { display:none; }
  .topbar { padding:0 10px 0 16px; }
  .tabbar { position:fixed; left:0; right:0; bottom:0; z-index:60; display:flex; justify-content:space-around; align-items:stretch; height:calc(64px + env(safe-area-inset-bottom)); padding:0 8px env(safe-area-inset-bottom); background:var(--glass); border-top:1px solid rgba(var(--op-line),.08); backdrop-filter:blur(18px) saturate(1.3); }
  .tab-btn { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:56px; font-size:13px; font-weight:600; color:var(--t-400); }
  .tab-btn i { font-size:24px; }
  .tab-btn[aria-current="true"] { color:var(--color-brand); }
  #stage { padding:calc(var(--tb-h) + 12px) 12px calc(72px + env(safe-area-inset-bottom)); }
  .step { max-height:calc((100dvh - var(--tb-h) - 92px) / var(--zoom)); }
  body[data-mood="library"] #stage { padding:0 12px calc(80px + env(safe-area-inset-bottom)); }
  /* relative, not static: the header's ::before backdrop is absolute with top:0/bottom:0,
     and without a positioned parent it escaped to the step and painted the whole library
     over with an opaque sheet on phones (1-sep design sweep) */
  .lib-top { position:relative; padding-top:calc(var(--tb-h) + 14px); }
  .toaster { bottom:calc(80px + env(safe-area-inset-bottom)); }
  .offer-main { grid-template-columns:1fr; gap:14px; padding:14px; }
  .om-art { height:min(300px, 34vh); margin:0 auto; }
  .om-get { grid-template-columns:1fr; }
  .alt-grid { grid-template-columns:1fr 1fr; }
  .om-foot { flex-direction:column; align-items:stretch; }
  .om-foot .primary { width:100%; }
  .you { right:0; top:auto; bottom:0; width:100%; max-height:88dvh; border-radius:24px 24px 0 0; translate:0 calc(100% + 24px); }
  .you.open { translate:0 0; }
}

/* the drawn avatar, when the filming has not happened (or failed) */
.check-still { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }


/* ── the avatar sheet: the shots Dose films her in ───────────────────────── */
/* one height for all four, so they read as one contact sheet and the wide one
   is visibly wider, not taller. The phone above gives up room to make space. */
[data-step="check"]:has(#checkSheet:not([hidden])) .phone { height:min(352px, 39vh); margin-top:16px; }
[data-step="check"]:has(#checkSheet:not([hidden])) .hint { margin-top:12px; font-size:12.5px; }
.sheet { margin:14px 0 0; width:min(100%, 700px); }
.sheet-t { margin:0 0 8px; font-size:13px; color:var(--t-500); text-align:center; }
.sheet-row { display:flex; align-items:flex-start; justify-content:center; gap:10px; }
.shot { margin:0; display:flex; flex-direction:column; align-items:center; gap:5px; }
.shot img { height:86px; width:auto; border-radius:10px; border:1px solid rgba(var(--op-line),.10); background:var(--s-1); object-fit:cover; box-shadow:var(--shadow); }
.shot[data-ratio="3:4"] img { aspect-ratio:3/4; }
.shot[data-ratio="9:16"] img { aspect-ratio:9/16; }
.shot[data-ratio="16:9"] img { aspect-ratio:16/9; }
.shot figcaption { display:flex; flex-direction:column; gap:1px; text-align:center; line-height:1.3; max-width:13ch; }
.shot figcaption b { font-size:12px; font-weight:600; color:var(--t-200); }
.shot figcaption small { font-size:10.5px; color:var(--t-500); }
@media (max-height:860px) { .shot figcaption small { display:none; } .shot img { height:74px; } }
@media (max-height:760px) {
  [data-step="check"]:has(#checkSheet:not([hidden])) .phone { height:min(300px, 34vh); margin-top:10px; }
  [data-step="check"]:has(#checkSheet:not([hidden])) .sub { margin-top:6px; font-size:15px; }
  [data-step="check"]:has(#checkSheet:not([hidden])) .hint { margin-top:8px; font-size:11.5px; }
  .sheet { margin-top:10px; } .sheet-t { margin-bottom:6px; } .shot img { height:62px; }
}
@media (max-width:560px) { .shot img { height:64px; } .shot figcaption small { display:none; } }


/* the first hello loops with sound: it has to be stoppable */
.phone-play { position:absolute; left:50%; top:50%; translate:-50% -50%; width:62px; height:62px; border-radius:99px; display:grid; place-items:center; font-size:26px; color:#fff; background:rgba(0,0,0,.46); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.22); }
.phone-play i { margin-left:3px; }
[data-step="check"] .phone { cursor:pointer; }
.eng-p { display:none; }


/* ── the six presenters ───────────────────────────────────────────────────── */
.cast { display:grid; grid-template-columns:repeat(6, 1fr); gap:12px; width:min(100%, 900px); margin-top:20px; }
.cast-one { position:relative; display:flex; flex-direction:column; gap:8px; padding:0; border-radius:16px; text-align:center; transition:transform .25s var(--ease-out); }
.cast-one img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:14px; border:2px solid transparent; background:var(--s-1); transition:border-color .2s, box-shadow .2s; }
.cast-one b { font-size:14px; font-weight:600; color:var(--t-100); }
.cast-one small { display:block; font-size:11.5px; color:var(--t-500); margin-top:-4px; }
@media (hover:hover) and (pointer:fine) { .cast-one:hover { transform:translateY(-3px); } }
.cast-one[aria-pressed="true"] img { border-color:var(--color-brand); box-shadow:0 0 0 4px color-mix(in srgb, var(--color-brand) 18%, transparent); }
.cast-one .tick { position:absolute; right:8px; top:8px; width:24px; height:24px; border-radius:99px; display:grid; place-items:center; font-size:13px; color:#fff; background:var(--color-brand); opacity:0; transform:scale(.25); filter:blur(4px); transition:opacity .3s var(--ease-out), transform .3s var(--ease-out), filter .3s var(--ease-out); }
.cast-one[aria-pressed="true"] .tick { opacity:1; transform:scale(1); filter:blur(0); }
@media (max-width:900px) { .cast { grid-template-columns:repeat(3, 1fr); } }
@media (max-width:520px) { .cast { grid-template-columns:repeat(2, 1fr); } .cast-one small { display:none; } }


/* ── settings ─────────────────────────────────────────────────────────────
   A drawer beside the You panel, speaking the same language as it: groups with
   a quiet label, rows in a card, a tinted icon, the state under the name. One
   section at a time, with a way back, and the save bar only where there is
   something to save. */
.kpane {
  position:fixed; right:14px; top:14px; bottom:14px; z-index:79; width:min(480px, calc(100vw - 28px)); border-radius:26px;
  background:color-mix(in srgb, var(--s-1) 90%, transparent); backdrop-filter:blur(30px) saturate(1.5); -webkit-backdrop-filter:blur(30px) saturate(1.5);
  border:1px solid rgba(var(--op-line),.10); box-shadow:0 2px 6px rgba(0,0,0,.06), 0 40px 90px -40px rgba(23,22,29,.55);
  display:flex; flex-direction:column; overflow:hidden; translate:calc(100% + 28px) 0;
  transition:translate var(--dur-slow) var(--ease-out), right var(--dur-slow) var(--ease-out);
}
.kpane.open { translate:0 0; }
.kpane.beside { right:calc(min(414px, 100vw - 28px) + 26px); }
html.op-dark .kpane { background:color-mix(in srgb, var(--s-1) 86%, transparent); }
/* the same soft brand light the You panel has in its corner */
.kpane::before { content:''; position:absolute; left:0; right:0; top:0; height:180px; pointer-events:none;
  background:radial-gradient(120% 100% at 82% 0%, color-mix(in srgb, var(--color-brand) 20%, transparent), transparent 62%); }
.kpane-top { position:relative; display:flex; align-items:center; gap:10px; padding:20px 20px 14px; flex:none; }
.kpane-top h2 { margin:0; font-size:21px; font-weight:700; letter-spacing:-.02em; color:var(--t-100); }
.kback { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:17px; color:var(--t-200); background:rgba(var(--op-line),.07); transition:background-color .15s, transform .2s var(--ease-out); }
@media (hover:hover) and (pointer:fine) { .kback:hover { background:rgba(var(--op-line),.13); transform:translateX(-2px); } }
.kpane-top .x { margin-left:auto; }
.kpane-body { position:relative; flex:1 1 auto; min-height:0; overflow-y:auto; padding:0 16px 20px; }

/* the list */
.setwrap { display:block; width:100%; margin:0; text-align:left; }
.setnav { display:block; }
.setfoot { display:flex; align-items:center; gap:8px; margin:22px 6px 0; font-size:12.5px; color:var(--t-500); }
.setfoot .dose-pill { width:14px; height:14px; flex:none; }

/* one section */
.setpane { padding:0; background:none; border:0; overflow:visible; }
/* the drawer header already says which section this is */
.setsec h2 { display:none; }
.setsec > .setp:first-of-type { margin-top:2px; }
.setp { margin:0 0 18px; font-size:13.5px; line-height:1.6; color:var(--t-400); max-width:none; }
.setpane .cn-field { margin-bottom:14px; }
.setpane .menu-t { margin:20px 0 9px; }
.kstate { display:block; margin:0 0 12px; font-size:13px; color:var(--t-500); }
.kstate[data-ok="1"] { color:var(--sem-green); }
.kstate[data-ok="0"] { color:var(--sem-amber); }
.kpane-do { display:flex; gap:10px; padding:14px 20px; border-top:1px solid rgba(var(--op-line),.08); background:var(--s-0); flex:none; }
.kpane-do .primary { flex:1; height:46px; font-size:15.5px; border-radius:13px; }
.kpane-do .ghost { height:46px; border-radius:13px; }
@media (max-width:900px) { .kpane, .kpane.beside { right:14px; width:calc(100vw - 28px); } }

/* ── four ways to appear, in one row ──────────────────────────────────────
   The fourth card turned a three-column grid into a second row with one
   orphan on it, and that put the screen on a scrollbar. Four columns, a
   shorter picture, and the step is told to fit rather than scroll. */
[data-step="presence"] { overflow:hidden; }
[data-step="presence"] .choices { grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; margin-top:22px; width:min(100%, 900px); align-items:stretch; }   /* three cards since the record tile went (round 264); four again when it is shown */
[data-step="presence"] .choices:has([data-presence="record"]:not([hidden])) { grid-template-columns:repeat(4, minmax(0,1fr)); width:min(100%, 1080px); }
[data-step="presence"] .choice { align-self:stretch; }
/* the avatar card before there is an avatar: a plain ground, a silhouette and what is still to set up; once there is one, the card wears it */
.choice.needs-setup .ch-art img, .choice.needs-setup .ch-art video, .choice.needs-setup .ch-play { display:none; }
.ch-ghost { position:absolute; inset:0; display:grid; place-items:center; color:rgba(255,255,255,.72); font-size:72px; pointer-events:none; }
.ch-need { position:absolute; left:10px; right:10px; bottom:10px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:6px 9px; border-radius:8px; background:rgba(12,6,26,.62); color:#fff; font-size:11.5px; font-weight:600; letter-spacing:.02em; backdrop-filter:blur(6px); }
.ch-need i { font-size:14px; }
[data-step="presence"] .choice { padding:12px; gap:10px; }
/* the picture is a portrait, a little taller and narrower than before, so the face shows; the card itself keeps its width (Sergio, 15-sep) */
[data-step="presence"] .ch-art { aspect-ratio:4/5; width:auto; height:min(236px, 28vh); max-height:none; min-height:150px; margin:0 auto; border-radius:14px; }
[data-step="presence"] .ch-t { font-size:16px; margin-top:2px; }
[data-step="presence"] .ch-d { font-size:13px; line-height:1.4; }
@media (max-height:820px) {
  [data-step="presence"] .ch-art { height:min(184px, 23vh); }
  [data-step="presence"] .ch-d { display:none; }
  [data-step="presence"] .sub { display:none; }
}
@media (max-width:1000px) and (min-width:901px) {
  [data-step="presence"] .choices { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:900px) {
  [data-step="presence"] { overflow-y:auto; }
  [data-step="presence"] .choices { grid-template-columns:1fr; }
  [data-step="presence"] .ch-art { width:min(100%, 260px); height:auto; aspect-ratio:4/5; }
}


/* ── the script, before it is made ────────────────────────────────────────
   The words used to appear only after the video existed. Reading them first is
   the whole point of approving anything. */
.om-script { margin-top:2px; padding:14px 16px; border-radius:14px; background:color-mix(in srgb, var(--color-brand) 5%, transparent); border:1px solid rgba(var(--op-line),.07); text-align:left; }
.oms-t { display:flex; align-items:center; gap:8px; margin:0 0 9px; font-size:12px; font-weight:650; letter-spacing:.04em; text-transform:uppercase; color:var(--t-400); }
.oms-t i { font-size:15px; color:var(--color-brand); }
.oms-t small { margin-left:auto; font-weight:500; letter-spacing:0; text-transform:none; font-size:12px; color:var(--t-500); }
.om-script ol { margin:0; padding:0 0 0 1.1em; display:flex; flex-direction:column; gap:6px; }
.om-script li { font-size:14.5px; line-height:1.45; color:var(--t-200); }
.om-script li::marker { color:var(--t-500); font-variant-numeric:tabular-nums; }
.oms-n { margin:10px 0 0; font-size:12.5px; color:var(--t-500); }
@media (max-height:820px) { .om-script { padding:11px 13px; } .om-script li { font-size:13.5px; } .oms-n { display:none; } }


/* ── the tray: what is being made while you are elsewhere ─────────────────── */
.tray { position:relative; }
.tray .tray-n { min-width:20px; height:20px; padding:0 6px; border-radius:99px; display:grid; place-items:center; font-size:var(--fs-caption); font-weight:700; color:#fff; background:var(--t-400); font-variant-numeric:tabular-nums; }
.tray[data-busy="1"] .tray-n { background:var(--color-brand); }
.tray[data-busy="1"] i { animation:traypulse 1.6s ease-in-out infinite; }
@keyframes traypulse { 0%,100% { opacity:1; } 50% { opacity:.45; } }
.traylist { position:absolute; right:16px; top:calc(var(--tb-h) - 6px); z-index:70; width:min(360px, calc(100vw - 32px)); padding:8px; border-radius:16px; background:var(--s-0); border:1px solid rgba(var(--op-line),.10); box-shadow:0 30px 70px -30px rgba(0,0,0,.5); display:flex; flex-direction:column; gap:4px; }
.tjob { display:flex; align-items:center; gap:11px; padding:8px; border-radius:12px; text-align:left; width:100%; transition:background-color .15s; }
.tjob:hover { background:rgba(var(--op-line),.05); }
.tj-art { position:relative; width:40px; height:52px; border-radius:8px; overflow:hidden; background:var(--s-1); flex:none; }
.tj-art img { width:100%; height:100%; object-fit:cover; }
.tj-spin { position:absolute; inset:0; background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size:220% 100%; animation:shimmer 1.6s ease-in-out infinite; }
.tj-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.tj-t strong { font-size:14px; font-weight:600; color:var(--t-100); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tj-t small { font-size:12px; color:var(--t-500); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tjob > i { font-size:16px; color:var(--t-500); flex:none; }
.tjob[data-state="done"] > i { color:var(--sem-green); }
.tjob[data-state="failed"] > i { color:var(--sem-amber); }
.tjob[data-state="running"] > i { animation:spin 1.1s linear infinite; }
.tj-none { margin:0; padding:12px; font-size:13.5px; color:var(--t-500); text-align:center; }
/* where the job came from (5 October 2026): a small glyph and one word at the head of the row's small line; only WhatsApp's glyph takes a colour */
.tj-from { font-weight:600; color:var(--t-300); }
.tj-from i { margin-right:4px; font-size:13px; vertical-align:-1.5px; color:var(--t-400); }
.tj-from[data-from="whatsapp"] i { color:#25D366; }
/* the background-production card (round 291): the row is View status; a stopped one carries Dismiss beside it; Start another under the list */
.tjob-row { display:flex; align-items:center; gap:6px; }
.tjob-row .tjob { flex:1; min-width:0; }
.tj-go { flex:none; font-size:12.5px; font-weight:600; color:var(--color-brand); white-space:nowrap; }
.tj-x { flex:none; height:44px; padding:0 10px; border-radius:10px; font-size:13px; color:var(--t-400); background:transparent; border:1px solid rgba(var(--op-line),.14); }
.tj-x:hover { color:var(--t-100); border-color:rgba(var(--op-line),.3); }
.tj-more { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:44px; margin-top:4px; border-radius:10px; font-size:13.5px; font-weight:600; color:var(--color-brand); background:transparent; }
.tj-more:hover { background:rgba(var(--op-line),.05); }

#dictate[data-on="1"] { color:#fff; background:var(--accent); border-color:transparent; }   /* round 370: the brand, not an alarm */
#dictate[data-on="1"] i { color:#fff; }



/* ── where videos can go ──────────────────────────────────────────────────
   Dashed boxes with a filled button inside each read as unfinished, and a row
   of four over a row of two leaves a ragged edge. One list, one action a row. */
[data-step="accounts"] .hub-grid, #hubSocial, #hubFiles { display:flex; flex-direction:column; gap:6px; width:min(100%, 620px); }
.hub-row { display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:12px; width:100%; padding:9px 13px; border-radius:14px; background:var(--glass); border:1px solid rgba(var(--op-line),.08); text-align:left; transition:background-color .15s, border-color .15s, transform .2s var(--ease-out); }
@media (hover:hover) and (pointer:fine) { .hub-row:hover { background:rgba(var(--op-line),.05); transform:translateY(-1px); } }
.hub-row .hub-logo { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; font-size:20px; color:var(--t-200); border:1px solid rgba(var(--op-line),.10); }
.hub-row[data-on="1"] .hub-logo { color:#fff; border-color:transparent; }
.hub-info { display:flex; flex-direction:column; gap:1px; min-width:0; }
.hub-info b { font-size:15px; font-weight:650; color:var(--t-100); }
.hub-info small { font-size:12.5px; color:var(--t-500); }
.hub-row[data-on="1"] .hub-info small { color:var(--sem-green); }
.hub-row .hub-act { position:relative; display:inline-flex; align-items:center; height:34px; padding:0 14px; border-radius:99px; font-size:13.5px; font-weight:600; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 10%, transparent); white-space:nowrap; }
.hub-row[data-on="1"] .hub-act { color:var(--sem-green); background:color-mix(in srgb, var(--sem-green) 12%, transparent); }
.hub-row[data-on="1"]:hover .hub-act { color:#E11D48; background:color-mix(in srgb, #E11D48 12%, transparent); }
.hub-act .hd-on, .hub-act .hd-off { display:inline-flex; align-items:center; gap:6px; }
 /* both labels, always. A swap that only happens on hover cannot be found on a tablet, and
   cannot be found at all by someone who does not know to hover. */
.hub-act .hd-off { display:none; }
.hub-row[data-on="1"] .hub-act { color:#E11D48; background:color-mix(in srgb, #E11D48 10%, transparent); }
.hub-row[data-on="1"] .hd-on { display:none; }
.hub-row[data-on="1"] .hd-off { display:inline-flex; }


/* ── the two things you set up once, on the first screen ──────────────────── */
.youkit { display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; justify-content:center; }
.youkit:empty { display:none; }
.yk { display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:10px; padding:8px 12px 8px 9px; border-radius:14px; background:var(--glass); border:1px solid rgba(var(--op-line),.09); text-align:left; transition:background-color .15s, border-color .15s, transform .2s var(--ease-out); }
@media (hover:hover) and (pointer:fine) { .yk:hover { transform:translateY(-1px); background:rgba(var(--op-line),.05); border-color:color-mix(in srgb, var(--color-brand) 35%, transparent); } }
.yk-ic { width:34px; height:34px; border-radius:10px; overflow:hidden; display:grid; place-items:center; font-size:17px; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 11%, transparent); }
.yk-ic img { width:100%; height:100%; object-fit:cover; }
.yk-t { display:flex; flex-direction:column; gap:0; min-width:0; }
.yk-t b { font-size:13.5px; font-weight:650; color:var(--t-100); }
.yk-t small { font-size:11.5px; color:var(--t-500); }
.yk > i { font-size:15px; color:var(--t-500); }
.yk[data-on="1"] .yk-ic { color:var(--sem-green); background:color-mix(in srgb, var(--sem-green) 12%, transparent); }
@media (max-height:820px) { .youkit { margin-top:10px; } .yk-t small { display:none; } }


/* ── recording a voice ────────────────────────────────────────────────────
   Cloning a voice has nothing to do with a camera, and it is not a
   teleprompter either: it is one passage, read once. A single centred column,
   the words at a size meant for reading aloud rather than shouting. */
[data-step="record"].voice-only .rec-cam .cam,
[data-step="record"].voice-only #prompter { display:none !important; }
[data-step="record"].voice-only .rec-stage { display:flex; flex-direction:column; align-items:center; gap:0; width:min(100%, 620px); }
[data-step="record"].voice-only .rec-cam { flex-direction:column; height:auto; gap:12px; }
[data-step="record"].voice-only #recActions { margin-top:4px; }
[data-step="record"].voice-only .vs-note { margin-top:10px; }
[data-step="record"].voice-only .rec-stage { justify-content:center; gap:0; }
.voicestage { display:flex; flex-direction:column; align-items:center; gap:16px; width:100%; }
.vs-read { margin:0; padding:20px 24px; border-radius:18px; background:var(--glass); border:1px solid rgba(var(--op-line),.08); font-size:19px; line-height:1.55; color:var(--t-100); text-align:left; text-wrap:pretty; }
.vs-deck { display:flex; align-items:center; gap:16px; }
.vs-orb { position:relative; width:74px; height:74px; border-radius:99px; display:grid; place-items:center; background:color-mix(in srgb, var(--color-brand) 10%, transparent); border:1px solid rgba(var(--op-line),.09); flex:none; }
.vs-orb i { font-size:28px; color:var(--color-brand); position:relative; z-index:1; }
.vs-orb canvas { position:absolute; inset:0; width:100%; height:100%; }
.vs-time { font-family:var(--font-mono); font-size:30px; font-weight:600; color:var(--t-100); font-variant-numeric:tabular-nums; }
.vs-note { font-size:13.5px; color:var(--t-500); text-align:center; max-width:44ch; }
.vs-note[data-warn="1"] { color:var(--sem-amber); }
#vsPlay { width:min(100%, 420px); }
@media (max-height:860px) { .vs-read { padding:15px 18px; font-size:17px; } .vs-orb { width:62px; height:62px; } .vs-time { font-size:26px; } }




/* ── the offer ────────────────────────────────────────────────────────────
   One screen, and it does not move. The card is a fixed shell: preview on the
   left, the words on the right with the room that is left, and the actions on
   a foot that is always in view. Only the words scroll, and only when there
   are more of them than there is room, which is the one place a scrollbar is
   honest. Everything else was being squeezed until the page gave way. */
/* the card is short now: it sits in the middle of the screen like every other step, and
   `safe` keeps the top reachable on a window too short for it (Sergio, 2-sep: "no esta al centro") */
[data-step="offer"] { overflow:hidden; height:calc((100dvh - var(--tb-h) - 16px) / var(--zoom)); justify-content:safe center; }
[data-step="offer"] .sub { display:none; }
.offer-main { display:flex; flex-direction:column; gap:12px; width:min(100%, 1000px); flex:0 1 auto; min-height:0; padding:14px 20px; border-radius:22px; background:var(--s-0); border:1px solid rgba(var(--op-line),.08); box-shadow:var(--shadow); margin-top:16px; }
[data-step="offer"] .om-art { height:100%; max-height:none; width:auto; aspect-ratio:9/16; margin:0; border-radius:16px; }
.om-body { display:flex; flex-direction:column; min-height:0; gap:12px; text-align:left; }
.om-head { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.om-name { margin:0; font-size:23px; font-weight:700; letter-spacing:-.02em; color:var(--t-100); }
.om-head .om-langs { margin:0 0 0 auto; flex:0 1 auto; }
@media (max-width:1150px) { .om-head .om-langs { margin:2px 0 0; width:100%; } }
.om-script { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; padding:14px 16px; border-radius:16px; background:color-mix(in srgb, var(--color-brand) 5%, transparent); border:1px solid rgba(var(--op-line),.07); }
.oms-t { display:flex; align-items:baseline; gap:10px; margin:0 0 10px; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--t-400); }
.oms-t i { font-size:14px; color:var(--color-brand); }
.oms-t small { margin-left:auto; font-weight:500; letter-spacing:0; text-transform:none; font-size:12px; color:var(--t-500); }
.om-script ol { flex:1 1 auto; min-height:0; overflow-y:auto; scrollbar-width:thin; margin:0; padding:0 4px 0 1.4em; display:flex; flex-direction:column; gap:8px; }
/* ── the offer, 2-sep: the script is the thing being reviewed, so it gets the room ──
   A small portrait and the title in one row, the languages beside them, and every line of the
   script in the open at reading size with its own Edit. The list only scrolls when the window
   is too short for it, never by design. */
.om-top { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
/* ── the offer, 2-sep second pass: three tiles and room to breathe ── */
.om-hero { display:flex; align-items:center; gap:18px; }
.om-sub { margin:0; font-size:16px; line-height:1.45; color:var(--t-400); }
.om-sub b { font-weight:650; color:var(--t-100); }
.om-titles:focus { outline:none; }
.om-tiles { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; }
.om-tiles[data-n="4"] { grid-template-columns:repeat(4, minmax(0, 1fr)); }   /* the "Who appears" tile (round 270) */
.tile-ic { overflow:hidden; } .tile-ic img { width:100%; height:100%; object-fit:cover; object-position:50% 18%; }
.om-tile { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-height:136px; padding:16px 16px 14px; border-radius:20px; text-align:left; background:var(--s-1); border:1px solid rgba(var(--op-line),.09); cursor:pointer; transition:border-color .15s, box-shadow .2s, transform var(--dur-fast) var(--ease-out); }
.om-tile:hover { border-color:color-mix(in srgb, var(--color-brand) 45%, transparent); box-shadow:0 14px 34px -22px rgba(0,0,0,.4); }
.om-tile:active { transform:scale(.985); }
.tile-ic { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; font-size:19px; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 10%, transparent); }
.tile-k { margin-top:6px; font-size:14px; font-weight:600; color:var(--t-400); }
.tile-d { font-size:14px; line-height:1.4; color:var(--t-400); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tile-v { font-size:17px; line-height:1.35; font-weight:650; color:var(--t-100); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.om-tile[data-sheet="script"] .tile-v { font-weight:500; }
.om-tile[data-sheet="script"] .tile-v::before { content:'\201C'; } .om-tile[data-sheet="script"] .tile-v::after { content:'\201D'; }
.tile-a { margin-top:auto; padding-top:8px; display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:650; color:var(--color-brand); }
.tile-a i { font-size:14px; }
[data-step="offer"] .om-foot { justify-content:space-between; padding-top:4px; }
[data-step="offer"] .om-foot .om-time { margin-left:0; font-size:14px; }
.osheet { width:min(100%, 700px); max-height:calc(100dvh - 40px); display:flex; flex-direction:column; border-radius:24px; background:var(--s-1); border:1px solid rgba(var(--op-line),.10); box-shadow:var(--shadow); overflow:hidden; text-align:left; }
.osheet-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:22px 24px 12px; }
.osheet-head h2 { margin:0; font-size:22px; font-weight:700; letter-spacing:-.02em; color:var(--t-100); }
.osheet-head p { margin:5px 0 0; font-size:15px; line-height:1.45; color:var(--t-400); max-width:56ch; }
.osheet-body { flex:1 1 auto; min-height:0; overflow-y:auto; padding:6px 24px 10px; }
.osheet-body:focus-visible { outline:none; box-shadow:inset 0 0 0 3px color-mix(in srgb, var(--color-brand) 30%, transparent); }
.osheet-foot { display:flex; align-items:center; gap:10px; padding:12px 24px 20px; border-top:1px solid rgba(var(--op-line),.07); }
.osheet-foot #osheetDone { margin-left:auto; height:48px; padding:0 22px; font-size:15px; }
.osheet-foot .ghost.sm { height:44px; }
.osheet { width:min(100%, 780px); }
.osheet-head { padding:28px 32px 14px; } .osheet-body { padding:4px 32px 10px; } .osheet-foot { padding:14px 32px 24px; }
/* the words as a reading list: one line per block, a hairline between them, nothing boxed */
.osheet .oms { overflow:visible; gap:0; padding:0; }
.osheet .oms li { padding:22px 4px 22px 2px; gap:20px; border:0; border-radius:0; background:transparent; border-top:1px solid rgba(var(--op-line),.09); align-items:flex-start; }
.osheet .oms li:first-child { border-top:0; padding-top:12px; }
.osheet .oms-num { min-width:26px; margin-top:9px; font-size:14px; }
.osheet .oms-body { gap:10px; }
.osheet .oms .oms-l { font-size:19px; line-height:1.55; color:var(--t-100); }
.oms-tag { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; padding:5px 11px; border-radius:99px; font-size:13px; font-weight:650; letter-spacing:.01em; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 8%, transparent); }
.oms-tag i { font-size:14px; }
.osheet .oms .oms-edit { align-self:center; background:transparent; border:1px solid rgba(var(--op-line),.12); color:var(--t-200); }
.osheet .oms .oms-edit:hover { border-color:var(--color-brand); color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 6%, transparent); }
.osheet .oms-lab { margin-top:6px; } .osheet .oms-in { font-size:17px; line-height:1.5; }
.opt-list { display:flex; flex-direction:column; gap:8px; }
.opt { display:flex; align-items:center; gap:14px; min-height:60px; padding:12px 14px; border-radius:16px; border:1.5px solid rgba(var(--op-line),.12); background:var(--s-0); text-align:left; cursor:pointer; transition:border-color .15s, background-color .15s; }
.opt[aria-checked="true"] { border-color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 8%, transparent); }
.opt > i { font-size:22px; color:var(--color-brand); flex:none; }
.opt span { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; } .opt b { font-size:16px; color:var(--t-100); } .opt small { font-size:14px; line-height:1.4; color:var(--t-400); }
.opt em { flex:none; font-style:normal; font-size:12.5px; font-weight:650; color:var(--color-brand); }
.opt .opt-check { flex:none; font-size:22px; color:var(--color-brand); opacity:0; transition:opacity .15s; }
.opt[aria-checked="true"] .opt-check { opacity:1; }
.lang-grid { display:flex; flex-wrap:wrap; gap:10px; padding:4px 0 8px; }
@media (max-width:900px) { .om-tiles { grid-template-columns:1fr; } .om-tiles[data-n="4"] { grid-template-columns:repeat(2, minmax(0, 1fr)); } .om-tile { min-height:0; } }
.om-thumb { position:relative; flex:none; width:64px; height:64px; border-radius:16px; overflow:hidden; background:#000; }
.om-thumb img, .om-thumb video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 18%; }
.om-titles { flex:1 1 320px; min-width:0; display:flex; flex-direction:column; gap:4px; }
.om-meta { margin:0; display:flex; flex-wrap:wrap; gap:4px 14px; font-size:13.5px; color:var(--t-400); }
.om-meta span { display:inline-flex; align-items:center; gap:6px; }
.om-meta i { font-size:16px; color:var(--color-brand); }
.om-top .om-langs { margin:0; padding:0; border:0; flex:0 1 auto; }
.oms { list-style:none; margin:0; padding:2px 0 0; display:flex; flex-direction:column; gap:5px; flex:0 1 auto; min-height:0; overflow-y:auto; scrollbar-width:thin; }
.oms li { display:flex; align-items:flex-start; gap:12px; padding:6px 12px; border-radius:14px; background:color-mix(in srgb, var(--color-brand) 4%, transparent); border:1px solid rgba(var(--op-line),.06); }
.oms-num { flex:none; margin-top:5px; font-family:var(--font-mono); font-size:12px; letter-spacing:.06em; color:var(--color-brand); }
.oms-body { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:4px; }
.oms .oms-l { font-size:17px; line-height:1.5; color:var(--t-100); }
.oms-cap { display:flex; align-items:flex-start; gap:6px; font-size:13px; line-height:1.4; color:var(--t-400); }
.oms-cap i { flex:none; font-size:15px; color:var(--color-brand); margin-top:2px; }
.oms .oms-edit { align-self:center; }
.oms-lab { display:block; font-size:12.5px; font-weight:650; letter-spacing:.03em; text-transform:uppercase; color:var(--t-400); }
.oms-lab + .oms-lab { margin-top:8px; }
.oms-lab .oms-in { margin-top:4px; text-transform:none; letter-spacing:0; font-weight:400; }
[data-step="offer"] .om-foot { padding-top:2px; }
[data-step="offer"] .q { font-size:clamp(26px, 3.4vh, 32px); }
[data-step="offer"] .om-tabs { width:auto; margin:-4px 0 0; padding:3px; align-self:flex-start; background:color-mix(in srgb, var(--color-brand) 5%, transparent); }
[data-step="offer"] .stepback { margin-top:6px; }
@media (max-height:860px) {
  /* a laptop at 1280x800: the five lines of a full script still fit without a scroll */
  [data-step="offer"] .q { font-size:26px; margin-bottom:2px; }
  .oms li { padding:6px 12px; gap:10px; } .oms { gap:4px; } .oms .oms-l { font-size:15.5px; line-height:1.4; } .oms-cap { font-size:12.5px; line-height:1.3; }
  .offer-main { gap:8px; padding:12px 16px; } .om-top { gap:12px; } .om-thumb { width:54px; } .om-name { font-size:20px; } .om-meta { font-size:13px; gap:4px 12px; }
  .oms .oms-edit { min-height:40px; } [data-step="offer"] .om-foot { padding-top:0; } .om-foot .primary { height:46px; }
}
@media (max-height:800px) { .om-tile { min-height:124px; padding:12px 14px 12px; } .om-thumb { width:52px; height:52px; } .offer-main { gap:10px; padding:12px 16px; } }
.om-script li { font-size:15px; line-height:1.5; color:var(--t-200); }
.om-script li::marker { color:var(--t-500); font-variant-numeric:tabular-nums; }
 /* Editing is a labelled button that is always there. Hover states and click-the-text are
   invisible to someone who has never been told they exist, and this app is used by doctors in
   their fifties and sixties. */
.om-script li { display:flex; align-items:flex-start; gap:10px; }
.oms-l { flex:1; }
.oms-edit { flex:none; display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 11px; border-radius:9px; font-size:13px; font-weight:600; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 10%, transparent); border:1px solid color-mix(in srgb, var(--color-brand) 22%, transparent); }
.oms-edit i { font-size:15px; }
.oms-edit:hover { background:color-mix(in srgb, var(--color-brand) 18%, transparent); }
.oms-fix { display:block; width:100%; }
.oms-in { width:100%; padding:10px 12px; border-radius:11px; border:2px solid var(--color-brand); background:var(--s-0); font:inherit; font-size:15px; line-height:1.5; color:var(--t-100); resize:vertical; }
.oms-in:focus { outline:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--color-brand) 20%, transparent); }
.oms-fixdo { display:flex; gap:8px; margin-top:8px; }
.primary.sm { height:38px; padding:0 16px; font-size:14px; border-radius:11px; gap:7px; }
.primary.sm i { font-size:16px; }
.oms-ask { display:flex; flex-direction:column; gap:8px; }   /* the deck's change request (round 291): the line, then the box and Send */
.oms-ask-t { margin:0; font-size:14px; line-height:1.45; color:var(--t-400); }
.oms-ask-row { display:flex; gap:8px; }
.oms-ask input { flex:1; height:42px; padding:0 14px; border-radius:12px; border:1px solid rgba(var(--op-line),.14); background:var(--s-0); font-size:14.5px; color:var(--t-100); }
.oms-ask input:focus { outline:none; border-color:var(--color-brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--color-brand) 18%, transparent); }
.oms-ask .send { width:auto; height:42px; padding:0 14px; gap:6px; border-radius:12px; font-size:14.5px; font-weight:650; }
.oms-ask .send i { font-size:17px; }
/* the action never falls to a line of its own looking abandoned: it holds the right edge, and
   if the row runs out of room the two quiet buttons wrap under it instead */
.om-foot { display:flex; align-items:center; gap:10px; flex-wrap:wrap-reverse; justify-content:flex-end; }
.om-foot .ghost.sm { margin-right:auto; }
.om-foot .ghost.sm + .ghost.sm { margin-right:auto; margin-left:calc(-1 * var(--gap, 0px)); }
.ghost.sm { height:38px; padding:0 14px; font-size:13.5px; border-radius:11px; }
.ghost.sm i { font-size:16px; }
.om-foot .om-time { margin-left:auto; display:inline-flex; align-items:center; gap:7px; font-size:13.5px; color:var(--t-500); }
.om-foot .primary { height:56px; padding:0 26px; font-size:17px; }


@media (max-width:900px) {
  [data-step="offer"] { overflow-y:auto; height:auto; }
  .offer-main { grid-template-columns:1fr; }
  .om-top .om-langs { width:100%; }
}



/* ── touch targets ────────────────────────────────────────────────────────
   The project's own floor is 44px and several controls had slipped under it.
   The people using this are doctors in their fifties and sixties, often on a
   tablet, and 32px is a miss waiting to happen. */
.seg button, .seg3 button { min-height:44px; }
.seg-text button { width:48px; min-height:44px; }
.oms-edit { min-height:44px; padding:0 14px; font-size:13.5px; }
.av-ic { width:40px; height:40px; }
.av-use, .hub-act, .vplay { min-height:40px; }
.vplay { width:40px; }
.ghost.sm, .primary.sm { min-height:44px; }
.mini { min-height:40px; }


/* ── the formats, as tabs ─────────────────────────────────────────────────
   They used to sit under the card as a row of pills with the icon on one line
   and the name wrapped under it, which looked like a mistake and hid the one
   thing you most want to change. Above the card, the one you are looking at
   is the one that is selected. */
.oftabs { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; width:min(100%, 1000px); margin-top:14px; padding:5px; border-radius:16px; background:var(--glass); border:1px solid rgba(var(--op-line),.07); flex:none; }
.oftab { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 15px; border-radius:12px; font-size:14px; font-weight:600; color:var(--t-400); white-space:nowrap; transition:background-color .18s, color .18s; }
.oftab i { font-size:17px; }
.oftab em { font-style:normal; font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--color-brand); padding:2px 6px; border-radius:99px; background:color-mix(in srgb, var(--color-brand) 12%, transparent); }
.oftab:hover { color:var(--t-100); background:rgba(var(--op-line),.05); }
.oftab[aria-selected="true"] { color:var(--t-100); background:var(--s-0); box-shadow:0 2px 10px -4px rgba(0,0,0,.28); }
.oftab[aria-selected="true"] i { color:var(--color-brand); }
@media (max-width:1000px) { .oftab span { display:none; } .oftab { padding:0 13px; } .oftab[aria-selected="true"] span { display:inline; } }


/* ── the player ───────────────────────────────────────────────────────────
   A four-pixel line at the very edge with no numbers on it is not a player.
   This one says where you are, how long it runs, and can be dragged. */
.vplayer { position:absolute; left:0; right:0; bottom:0; display:flex; align-items:center; gap:11px; padding:34px 14px 12px; background:linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,.32) 55%, transparent); }
.vp-btn { width:38px; height:38px; flex:none; border-radius:99px; display:grid; place-items:center; font-size:16px; color:#fff; background:rgba(255,255,255,.16); backdrop-filter:blur(8px); transition:background-color .15s, scale .15s; }
@media (hover:hover) and (pointer:fine) { .vp-btn:hover { background:rgba(255,255,255,.28); scale:1.06; } }
.vp-time { font-family:var(--font-mono); font-size:12.5px; font-weight:600; color:#fff; font-variant-numeric:tabular-nums; text-shadow:0 1px 3px rgba(0,0,0,.5); flex:none; }
.vp-dur { color:rgba(255,255,255,.72); }
.vp-track { position:relative; flex:1; height:22px; display:flex; align-items:center; cursor:pointer; touch-action:none; }
.vp-track::before { content:''; position:absolute; left:0; right:0; height:5px; border-radius:99px; background:rgba(255,255,255,.28); transition:height .15s var(--ease-out); }
.vp-fill { position:absolute; left:0; height:5px; width:0; border-radius:99px; background:var(--brand-grad); transition:height .15s var(--ease-out); }
.vp-knob { position:absolute; left:0; width:13px; height:13px; margin-left:-6px; border-radius:99px; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.45); scale:0; transition:scale .18s var(--ease-out); }
.vp-track:hover::before, .vp-track:focus-visible::before, .vp-track[data-drag="1"]::before,
.vp-track:hover .vp-fill, .vp-track:focus-visible .vp-fill, .vp-track[data-drag="1"] .vp-fill { height:7px; }
.vp-track:focus-visible .vp-knob, .vp-track[data-drag="1"] .vp-knob { scale:1; } @media (hover:hover) and (pointer:fine) { .vp-track:hover .vp-knob { scale:1; } }
.vp-track:focus-visible { outline:2px solid #fff; outline-offset:6px; border-radius:99px; }
@media (max-width:560px) { .vplayer { opacity:1; translate:0 0; } }

/* the watermark sat where the clock now is */
#viewerStage .phone-mark { bottom:70px; }
#viewerStage .viewer-cap { bottom:78px; }


/* ── your avatars, in the drawer ──────────────────────────────────────────
   These lost their styling when the settings block was rewritten and came out
   as a full-width photograph with the controls spilling under it. A card each:
   the face at a sensible size, the name and what it is, the actions on their
   own line so nothing wraps. */
.avset { display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.av-none { margin:0 0 14px; font-size:13.5px; line-height:1.55; color:var(--t-500); }
.av { display:grid; grid-template-columns:56px minmax(0,1fr) auto; grid-template-rows:auto auto; column-gap:13px; row-gap:9px; align-items:center;
  padding:11px; border-radius:16px; background:var(--s-0); border:1px solid rgba(var(--op-line),.08); }
.av[data-on="1"] { border-color:color-mix(in srgb, var(--color-brand) 40%, transparent); background:color-mix(in srgb, var(--color-brand) 5%, transparent); }
.av-face { grid-row:1; width:56px; height:74px; border-radius:12px; overflow:hidden; display:grid; place-items:center;
  background:var(--s-1); border:1px solid rgba(var(--op-line),.08); color:var(--t-400); font-size:20px; }
.av-face img { width:100%; height:100%; object-fit:cover; }
.av-body { grid-column:2; grid-row:1; display:flex; flex-direction:column; justify-content:center; gap:3px; min-width:0; }
.av-name { font-size:15.5px; font-weight:650; color:var(--t-100); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.av-body small { font-size:12.5px; color:var(--t-500); }
.av-in { grid-column:3; grid-row:1; justify-self:end; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--color-brand);
  padding:3px 8px; border-radius:99px; background:color-mix(in srgb, var(--color-brand) 12%, transparent); }
.av-use { grid-column:3; grid-row:1; justify-self:end; height:32px; padding:0 13px; border-radius:99px; font-size:13px; font-weight:600;
  color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 11%, transparent); }
.av-use:hover { background:color-mix(in srgb, var(--color-brand) 19%, transparent); }
.av-photo { display:flex; align-items:center; gap:14px; margin-top:10px; padding:13px 14px; border-radius:16px; background:var(--s-0); border:1px solid rgba(var(--op-line),.08); }
.av-photo-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.av-photo-t b { font-size:15px; font-weight:650; color:var(--t-100); }
.av-photo-t small { font-size:13px; line-height:1.4; color:var(--t-500); }
.av-photo .av-photo-go { flex:none; display:inline-flex; align-items:center; justify-content:center; min-height:40px; height:auto; white-space:nowrap; text-decoration:none; }
.av-photo .av-photo-go[data-busy] { opacity:.65; pointer-events:none; }
@media (max-width:520px) { .av-photo { flex-direction:column; align-items:stretch; } .av-photo .av-photo-go { width:100%; } }
.lm-photo { display:block; width:128px; height:128px; margin:2px auto 14px; border-radius:50%; object-fit:cover; border:1px solid rgba(var(--op-line),.12); }
.lm-photo-t { display:block; }
.av-tools { grid-column:1 / -1; grid-row:2; display:flex; gap:4px; padding-top:9px; border-top:1px solid rgba(var(--op-line),.07); }
.av-ic { width:42px; height:42px; border-radius:11px; display:grid; place-items:center; font-size:16px; color:var(--t-400);
  background:rgba(var(--op-line),.05); transition:background-color .15s, color .15s; }
.av-ic:hover { background:rgba(var(--op-line),.11); color:var(--t-100); }
.av-ic:disabled { opacity:.3; }
.av-del { margin-left:auto; }
.av-del:hover { color:#E11D48; background:color-mix(in srgb, #E11D48 11%, transparent); }
.av-demo { font-weight:500; font-size:11.5px; color:var(--sem-amber); }

/* ── choosing a voice ─────────────────────────────────────────────────────── */
.vpick { display:flex; flex-direction:column; gap:8px; }
.vrow { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:12px; padding:9px 12px 9px 9px;
  border-radius:15px; background:var(--s-0); border:1px solid rgba(var(--op-line),.08); }
.vrow[data-on="1"] { border-color:color-mix(in srgb, var(--color-brand) 40%, transparent); background:color-mix(in srgb, var(--color-brand) 5%, transparent); }
.vplay { width:44px; height:44px; border-radius:99px; display:grid; place-items:center; font-size:16px; color:#fff;
  background:var(--color-brand); transition:filter .15s, scale .15s; }
@media (hover:hover) and (pointer:fine) { .vplay:hover { filter:brightness(1.1); scale:1.05; } }
.vtext { display:flex; flex-direction:column; gap:1px; min-width:0; }
.vtext b { font-size:15px; font-weight:650; color:var(--t-100); }
.vtext small { font-size:12.5px; color:var(--t-500); }

/* ── the keys ─────────────────────────────────────────────────────────────
   A label, a field and a line of orange text underneath is a form, not an
   answer. Each key is a card that says what it is for and whether it works. */
.setsec[data-sec="keys"] .cn-field { display:block; margin:0 0 8px; padding:14px 15px; border-radius:16px;
  background:var(--s-0); border:1px solid rgba(var(--op-line),.08); }
.setsec[data-sec="keys"] .cn-field span { display:block; margin-bottom:9px; font-size:14.5px; font-weight:650; color:var(--t-100); }
.setsec[data-sec="keys"] .cn-field input { width:100%; height:44px; padding:0 13px; border-radius:11px;
  border:1px solid rgba(var(--op-line),.14); background:var(--s-1); font-family:var(--font-mono); font-size:13.5px; color:var(--t-100); }
.setsec[data-sec="keys"] .cn-field input:focus { outline:none; border-color:var(--color-brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--color-brand) 18%, transparent); }
.setsec[data-sec="keys"] .kstate { display:inline-flex; align-items:center; gap:7px; margin:0 0 20px 15px; font-size:12.5px; }
.setsec[data-sec="keys"] .kstate::before { content:''; width:8px; height:8px; border-radius:99px; background:var(--t-500); flex:none; }
.setsec[data-sec="keys"] .kstate[data-ok="1"]::before { background:var(--sem-green); }
.setsec[data-sec="keys"] .kstate[data-ok="0"]::before { background:var(--sem-amber); }

/* ── models, in the drawer ────────────────────────────────────────────────
   A radio and two lines of prose stacked up is a specification sheet. These
   are choices: a card each, the one in use marked, the sentence underneath. */
.setsec:is([data-sec="models"],[data-sec="voice"]) .engines { display:flex; flex-direction:column; gap:8px; }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng { position:relative; display:grid; grid-template-columns:1fr auto; gap:4px 12px; padding:13px 15px; border-radius:16px; background:var(--s-0); border:1px solid rgba(var(--op-line),.08); cursor:pointer; transition:border-color .15s, background-color .15s; }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng:hover { background:rgba(var(--op-line),.04); }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng[data-on="1"] { border-color:color-mix(in srgb, var(--color-brand) 45%, transparent); background:color-mix(in srgb, var(--color-brand) 6%, transparent); }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng input { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng-n { font-size:15px; font-weight:650; color:var(--t-100); }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng small { grid-column:1 / -1; font-size:12.5px; line-height:1.5; color:var(--t-500); }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng .ph-check-circle { grid-column:2; grid-row:1; font-size:20px; color:var(--color-brand); opacity:0; scale:.6; transition:opacity .2s, scale .2s var(--ease-out); }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng[data-on="1"] .ph-check-circle { opacity:1; scale:1; }

/* ── where your videos can go, in the drawer ─────────────────────────────── */
.setsec[data-sec="accounts"] .menu-t { display:flex; align-items:center; gap:8px; }
.setsec[data-sec="accounts"] .menu-t i { font-size:15px; color:var(--color-brand); }
#hubSocial, #hubFiles { display:flex; flex-direction:column; gap:6px; width:100%; }
.setnote { margin:18px 0 0; font-size:12.5px; line-height:1.55; color:var(--t-500); }


/* ── the drawer speaks the panel's language ───────────────────────────────
   Same cards, same mono labels, same rows with a bare brand icon: two sheets
   side by side should not look like two different products. */
.setnav .ycard + .ycard { margin-top:14px; }
.setnav .row { min-height:60px; }
.setnav .row > .ph-caret-right { font-size:15px; color:var(--t-500); flex:none; }
.setnav .row strong { font-size:15px; }
.setnav .row small { font-size:12.5px; }
.setnav .row[data-ok="1"] small { color:var(--sem-green); }
.setfoot { display:flex; align-items:center; gap:8px; margin:18px 10px 0; font-size:12.5px; color:var(--t-500); }
.setfoot .dose-pill { width:14px; height:14px; flex:none; }
.setnav { display:flex; flex-direction:column; }
.setnav .setfoot { margin-top:auto; padding-top:20px; }

/* the account rows are rows, like every other row in this product */
.setsec[data-sec="accounts"] .ycard + .ycard { margin-top:14px; }
.hub-row { padding:12px 10px; min-height:60px; background:transparent; border:0; box-shadow:none;
  grid-template-columns:24px 1fr auto; gap:12px; transition:background-color .15s, transform .25s var(--ease-out); }
@media (hover:hover) and (pointer:fine) { .hub-row:hover { background:rgba(var(--op-line),.05); transform:translateX(2px); } }
.hub-row .hub-logo { width:24px; height:24px; border-radius:8px; font-size:20px; color:var(--color-brand); background:transparent; border:0; }
.hub-row[data-on="1"] .hub-logo { font-size:15px; border-radius:8px; }
.setsec[data-sec="accounts"] .setp { margin:0 10px 16px; }
.setsec[data-sec="accounts"] .setnote { margin:16px 10px 0; }
/* the old card's label used to fade in on hover. In a row it just has to be readable. */
.hub-row .hd-off { opacity:1; transform:none; }
/* the list fills the sheet, so the footer sits on the floor instead of hanging mid-air */
.kpane-body > .setwrap { min-height:100%; display:flex; flex-direction:column; }
.setwrap > .setnav { flex:1 1 auto; }

/* nothing made yet: one card that says so and points at the one thing to do */
.av-empty { display:grid; justify-items:center; text-align:center; gap:6px; padding:30px 20px 32px; }
.av-empty-ic { width:56px; height:56px; border-radius:18px; display:grid; place-items:center; font-size:26px;
  color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 10%, transparent); margin-bottom:4px; }
.av-empty b { font-size:16px; font-weight:650; color:var(--t-100); }
.av-empty small { font-size:13px; color:var(--t-500); max-width:30ch; line-height:1.45; }
/* on an empty shelf this is the only thing to do, so it looks like it */
.setsec[data-sec="avatar"] #avatarBuild { width:100%; justify-content:center; margin-top:14px; min-height:54px; font-size:15.5px; }
#avatarBuild.first { background:var(--color-brand); border-color:transparent; color:#fff; box-shadow:0 8px 22px -10px rgba(109,58,232,.65); }
#avatarBuild.first:hover { filter:brightness(1.06); }

/* the voices are rows in a card, like the panel's rows */
.setsec[data-sec="voice"] .ycard + .ycard { margin-top:14px; }
.vpick { gap:0; }
.vrow { padding:10px 10px; min-height:60px; background:transparent; border:0; border-radius:14px;
  grid-template-columns:40px minmax(0,1fr) auto; transition:background-color .15s, transform .25s var(--ease-out); }
@media (hover:hover) and (pointer:fine) { .vrow:hover { background:rgba(var(--op-line),.05); transform:translateX(2px); } }
.vrow[data-on="1"] { background:color-mix(in srgb, var(--color-brand) 7%, transparent); border:0; }
.vplay { width:40px; height:40px; }
.vown { padding:6px 10px 14px; }
.vown .kstate { display:block; margin:0 0 12px; }
.vown #voiceClone { width:100%; justify-content:center; min-height:54px; font-size:15.5px; }

/* one key, one card: the field and what it is doing belong together */
.keycard { padding:16px 14px 14px; }
.keycard + .keycard { margin-top:14px; }
.keycard .cn-field { margin:0; }
.keycard .kstate { display:block; margin:12px 4px 0; }

/* models are rows in a card too */
.setsec[data-sec="models"] .ycard + .ycard { margin-top:14px; }
.setsec:is([data-sec="models"],[data-sec="voice"]) .engines { display:flex; flex-direction:column; gap:0; }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng { background:transparent; border:0; border-radius:14px; padding:12px 10px; min-height:60px;
  align-content:center; transition:background-color .15s, transform .25s var(--ease-out); }
@media (hover:hover) and (pointer:fine) { .setsec:is([data-sec="models"],[data-sec="voice"]) .eng:hover { background:rgba(var(--op-line),.05); transform:translateX(2px); } }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng[data-on="1"] { border:0; background:color-mix(in srgb, var(--color-brand) 7%, transparent); }
/* the tick gets its own column so the description never runs under it */
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng { grid-template-columns:minmax(0,1fr) 26px; padding-right:10px; }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng small { grid-column:1; }
.setsec:is([data-sec="models"],[data-sec="voice"]) .eng .ph-check-circle { grid-column:2; grid-row:1 / -1; align-self:center; margin:0; position:static; }

/* ── onboarding: the first visit is a wizard, so the shell stays out of the way.
   The brand stays; Make, Library and You wait until there is a person to belong to. ── */
body.ob .tb-nav, body.ob .tabbar { display:none !important; }
.hello-form { width:min(480px, 100%); margin:10px auto 0; display:flex; flex-direction:column; gap:16px; text-align:left; }
.hello-form .cn-field input { height:54px; font-size:17px; }
.hello-form .actions { margin-top:8px; justify-content:center; }
[data-step="hello"] .hint { margin-top:20px; }

/* the two quiet actions of the making screen share one row, tucked closer to the hint,
   so the screen still fits at 800px tall */
.make-tools { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:-12px; }

/* The voice recorder is a reading card, not a camera: it does not need the camera's
   full-height stage. Without this the stage grew and centred, leaving a 150px hole under
   the heading and pushing the microphone note to the far bottom (1-sep design sweep). */
[data-step="record"].voice-only .rec-stage { flex:0 0 auto; justify-content:flex-start; margin-top:26px; }
[data-step="record"].voice-only .vs-note { margin-top:14px; }

/* ── 1-sep design sweep ─────────────────────────────────────────────────── */
/* (The library header's 100vw backdrop widens scrollWidth on paper, but #stage is
   overflow:hidden and nothing actually scrolls sideways: measured, left alone.) */
/* On a phone the share row cannot hold four buttons: Continue was 103px off screen. The two
   quiet attach buttons keep the first row; Say it and Continue take a full-width second one. */
@media (max-width:560px) {
  .sharebar { flex-wrap:wrap; }
  .sharebar .send { flex:1 1 40%; }
}
/* a short landscape screen was 13px shy of holding the making screen */
@media (max-height:820px) {
  [data-step="making"] .work { gap:14px; margin-top:14px; }
}

/* ── the edit: cutaways, the lower third and the caption designs (1-sep) ── */
/* the cutaway picture covers the video while the voice goes on; a slow Ken Burns keeps it alive */
.broll-shot { position:absolute; inset:0; z-index:3; width:100%; height:100%; object-fit:cover; pointer-events:none;
  transform:scale(1.06); transition:transform linear; }
.broll-shot.on { transform:scale(1.14); }
.broll-shot[hidden] { display:none; }
/* the words never hide behind the cutaway: the voice keeps talking, the caption keeps reading */
.phone-cap { z-index:4; }

/* The name plate: a broadcast lower-third, top-left, exactly where the burned file draws it,
   so what you preview is what you post. The accent bar sweeps in first, the words follow
   clipped behind it, everything leaves the way it came (Sergio, 1-sep: the old one was flat,
   sat low, and could land on the captions). */
.kind-ui.intro { position:absolute; left:14px; top:7%; bottom:auto; right:auto; z-index:5; display:flex; flex-direction:row; align-items:stretch; gap:0;
  padding:11px 18px 11px 13px; border-radius:15px; overflow:hidden; background:rgba(10,8,20,.72); backdrop-filter:blur(8px) saturate(1.4); -webkit-backdrop-filter:blur(8px) saturate(1.4);
  border:1px solid rgba(255,255,255,.08); color:#fff; text-align:left; pointer-events:none;
  animation:plate-io 5.2s var(--ease-out, ease) both; }
.kind-ui.intro::before { display:none; }
.kind-ui.intro .in-bar { flex:none; width:5px; border-radius:4px; margin-right:12px; align-self:stretch;
  background:linear-gradient(180deg, #A78BFA, var(--color-brand)); box-shadow:0 0 12px color-mix(in srgb, var(--color-brand) 55%, transparent);
  transform-origin:top; animation:plate-bar .55s var(--ease-out, ease) .35s both; }
.kind-ui.intro .in-t { display:block; animation:plate-text .6s var(--ease-out, ease) .55s both; }
.kind-ui.intro b { position:relative; display:block; font-size:15.5px; font-weight:750; letter-spacing:-.01em; text-shadow:none; }
.kind-ui.intro small { position:relative; display:block; margin-top:2px; font-size:10.5px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:rgba(255,255,255,.78); }
@keyframes plate-io {
  0%   { opacity:0; translate:-36px 0; }
  7%   { opacity:1; translate:0 0; }
  86%  { opacity:1; translate:0 0; }
  96%, 100% { opacity:0; translate:-36px 0; }
}
@keyframes plate-bar { from { transform:scaleY(0); } to { transform:scaleY(1); } }
@keyframes plate-text { from { opacity:0; clip-path:inset(0 100% 0 0); translate:-8px 0; } to { opacity:1; clip-path:inset(0 -8% 0 0); translate:0 0; } }
/* captions stay visible under the plate: only the HIGH position must step down while it shows */
.phone:has(.intro) .phone-cap, .viewer-stage:has(.intro) .phone-cap { opacity:1; }
.phone:has(.intro) .phone-cap[data-cappos="top"], .viewer-stage:has(.intro) .phone-cap[data-cappos="top"] { top:calc(10% + 84px); }

/* caption designs: the player mirrors what the burned file draws */
/* a real stroke painted BEHIND the letterfill: the four-shadow imitation smudged every edge
   (Sergio, 1-sep, twice, with screenshots) */
.phone-cap[data-capstyle="pop"] { background:transparent; box-shadow:none; font-size:19px; font-weight:800; line-height:1.35;
  -webkit-text-stroke:4px rgba(0,0,0,.85); paint-order:stroke fill; text-shadow:0 3px 10px rgba(0,0,0,.4); }
.phone-cap[data-capstyle="pop"] span[data-said] { color:#B79CFF; }
.phone-cap[data-capstyle="clean"] { background:transparent; box-shadow:none; font-weight:650;
  text-shadow:0 1px 3px rgba(0,0,0,.75), 0 4px 14px rgba(0,0,0,.5); }

/* ── 1-sep, second wave: the cut on the offer, editable cutaways, avatar options ── */
/* the cut chips sit with the languages: both decide what the video is */
.om-cut { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.cutchip { min-height:44px; }
.cutchip[aria-pressed="true"] { border-color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 9%, transparent); color:var(--t-100); }
/* the cutaway prompt under its line: quiet, but a real labelled row with a real Edit */
.oms-picrow { list-style:none; margin:-2px 0 2px; }
.oms-picrow .oms-pic { display:flex; align-items:flex-start; gap:8px; flex:1; padding:8px 10px; border-radius:10px;
  background:color-mix(in srgb, var(--color-brand) 6%, transparent); font-size:12.5px; line-height:1.45; color:var(--t-400); }
.oms-picrow .oms-pic > i { flex:none; font-size:15px; color:var(--color-brand); margin-top:1px; }
.oms-picrow .oms-pic-t { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* how many avatars to draw, and the face they wear */
.avopts { display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.avopt { display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }
.avopt-t { font-size:13.5px; color:var(--t-400); }
.avopt [role="group"] { display:flex; gap:6px; }
.avopt button { min-width:44px; min-height:44px; padding:0 14px; border-radius:12px; border:1.5px solid rgba(var(--op-line),.14);
  background:var(--s-0); font-size:14.5px; font-weight:600; color:var(--t-200); cursor:pointer; transition:border-color .15s, background-color .15s; }
.avopt button[aria-pressed="true"] { border-color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 9%, transparent); color:var(--t-100); }
/* the candidate picker on the check screen */
[data-step="check"].picking .phone { display:none; }
.cand-row { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.shot.cand { width:min(200px, 42vw); }
/* the old sheet rule pinned img height to 86px, which turned candidates into wide chin-only
   strips (Sergio, 1-sep, "no se ve ninguno"): height comes from the 9:16 ratio, and the crop
   holds the face high in the frame whatever the box does */
.shot.cand img { width:100%; height:auto; aspect-ratio:9/16; object-fit:cover; object-position:50% 15%; border-radius:16px; border:2.5px solid transparent; transition:border-color .15s, box-shadow .15s; }
.shot.cand[data-keep="1"] img { border-color:var(--color-brand); box-shadow:0 0 0 4px color-mix(in srgb, var(--color-brand) 16%, transparent); }
.shot.cand figcaption { margin-top:8px; }
.shot.cand .av-use { min-height:44px; padding:0 16px; }
.shot.cand[data-keep="1"] .av-use { background:color-mix(in srgb, var(--color-brand) 12%, transparent); border-color:var(--color-brand); color:var(--t-100); }
/* captions: crisp, and placed where the doctor says */
.phone-cap[data-capstyle="pop"], .phone-cap[data-capstyle="clean"] { backdrop-filter:none; -webkit-backdrop-filter:none; }
.phone-cap[data-cappos="top"] { bottom:auto !important; top:10%; }
.phone-cap[data-cappos="middle"] { bottom:auto !important; top:50%; translate:0 -50%; }
/* "Low" must win even on a story, whose captions otherwise ride high under the hook (Sergio, 2-sep:
   the chip said Low, the words stayed up). Each context keeps its own clearance from the dock. */
.phone-cap[data-cappos="bottom"], [data-kind="story"] .phone-cap[data-cappos="bottom"] { top:auto !important; translate:none; bottom:46px !important; }
.review .phone-cap[data-cappos="bottom"] { bottom:78px !important; }
.om-art .phone-cap[data-cappos="bottom"] { bottom:14px !important; }
#viewerStage .phone-cap[data-cappos="bottom"] { bottom:78px !important; }
/* live mode paints no stages: an empty timeline was a white bar that meant nothing (Sergio, 2-sep) */
.timeline:empty { display:none; }
.langmenu .cv-chips button[aria-busy="true"] { opacity:.7; cursor:progress; }
/* drafts in the library: filed the moment the video exists, told apart until approved (2-sep) */
.card .draft-tag { position:absolute; left:8px; top:8px; z-index:2; display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:8px;
  background:rgba(12,6,26,.74); color:#fff; font-size:12px; font-weight:650; letter-spacing:.01em; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.card .draft-tag i { font-size:14px; color:#FFD48A; }
/* made on WhatsApp: the tag on the thumbnail (under the draft tag when both), and beside the title in the viewer */
.rec-copy { display:inline-flex; align-items:center; gap:5px; height:26px; padding:0 9px; border-radius:7px; border:1px solid rgba(var(--op-line),.12); background:transparent; font:inherit; font-size:12px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--t-300); cursor:pointer; } .rec-copy:hover { color:var(--color-brand); border-color:var(--color-brand); } .rec-copy i { font-size:13px; }
.wa-tag { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:8px; background:rgba(12,6,26,.74); color:#fff; font-size:12px; font-weight:650; letter-spacing:.01em; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.wa-tag i { font-size:14px; color:#25D366; }
.card .wa-tag { position:absolute; left:8px; top:8px; z-index:2; }   /* the left corner: the three dots own the right one */
.card .draft-tag + .wa-tag { top:40px; }
#viewerTitle .wa-tag { margin-left:10px; vertical-align:middle; background:rgba(255,255,255,.14); }
.lib-drafts { display:flex; align-items:center; gap:12px; margin:0 0 18px; padding:12px 16px; border-radius:14px; font-size:15px; line-height:1.45; color:var(--t-200);
  background:color-mix(in srgb, var(--color-brand) 8%, transparent); border:1px solid color-mix(in srgb, var(--color-brand) 22%, transparent); }
.lib-drafts i { flex:none; font-size:22px; color:var(--color-brand); }
.lib-drafts b { color:var(--t-100); }
/* ── the Doctorpedia catalogue (branch catalog) ── */
.pseg { position:relative; display:inline-flex; padding:3px; border-radius:12px; background:rgba(var(--op-line),.05); border:1px solid rgba(var(--op-line),.08); flex:none; }
.pseg button { position:relative; z-index:1; }
.pseg-thumb { position:absolute; top:3px; bottom:3px; left:3px; width:0; border-radius:9px; background:var(--s-1); box-shadow:0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(var(--op-line),.08); opacity:0; }
.pseg-thumb.placed { opacity:1; transition:left .34s var(--ease-out), width .34s var(--ease-out); }
.pseg:has(.pseg-thumb.placed) button[aria-selected="true"] { background:transparent; box-shadow:none; }
.pseg button { height:38px; padding:0 14px; border-radius:9px; font-size:15px; font-weight:500; color:var(--t-400); transition:color .2s, background-color .2s; }
.pseg button:hover, .pseg button[aria-selected="true"] { color:var(--t-100); }
.pseg button[aria-selected="true"] { background:var(--s-1); box-shadow:0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(var(--op-line),.08); }
.lib-titles .lib-scope { margin-right:6px; }
.lib-scope button { font-weight:600; }
.cat-bar { display:flex; align-items:center; gap:8px; padding:2px 0 18px; }
.cat-dd { display:inline-flex; align-items:center; gap:8px; height:48px; padding:0 12px 0 14px; border-radius:12px; background:var(--s-1); border:1.5px solid rgba(var(--op-line),.12); color:var(--t-100); font-size:15px; transition:border-color .2s, box-shadow .2s, background-color .2s; }
.cat-dd small { font-size:13px; color:var(--t-500); }
.cat-dd small::after { content:''; display:inline-block; width:1px; height:14px; margin-left:8px; vertical-align:-2px; background:rgba(var(--op-line),.18); }
.cat-dd span { font-weight:600; color:var(--t-300); }
.cat-dd[data-set="true"] { border-color:color-mix(in srgb, var(--color-brand) 55%, transparent); background:color-mix(in srgb, var(--color-brand) 6%, var(--s-1)); }
.cat-dd[data-set="true"] span { color:var(--color-brand); }
.cat-dd:hover { border-color:rgba(var(--op-line),.24); }
.cat-dd[aria-expanded="true"] { border-color:color-mix(in srgb, var(--color-brand) 55%, transparent); box-shadow:0 0 0 4px color-mix(in srgb, var(--color-brand) 12%, transparent); }
.cat-dd i { font-size:13px; color:var(--t-500); transition:transform .25s var(--ease-out); }
.cat-dd[aria-expanded="true"] i { transform:rotate(180deg); }
.cat-clear { display:inline-flex; align-items:center; gap:5px; height:44px; padding:0 10px; border-radius:10px; font-size:14px; font-weight:600; color:var(--t-400); background:transparent; border:0; }
.cat-clear:hover { color:var(--t-100); background:rgba(var(--op-line),.06); }
.cat-n { margin-left:auto; display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--t-400); }
.cat-n em { font-style:normal; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; padding:3px 7px; border-radius:6px; color:var(--t-500); border:1px solid rgba(var(--op-line),.14); }
.catmenu { width:300px; padding:8px; }
.cm-search { display:flex; align-items:center; gap:8px; height:42px; padding:0 10px 0 12px; margin:0 0 6px; border-radius:10px; background:rgba(var(--op-line),.05); border:1px solid rgba(var(--op-line),.08); }
.cm-search:focus-within { border-color:color-mix(in srgb, var(--color-brand) 50%, transparent); background:var(--s-1); }
.cm-search i { font-size:16px; color:var(--t-500); }
.cm-search input { flex:1; min-width:0; height:100%; border:0; background:transparent; font:inherit; font-size:15px; color:var(--t-100); outline:none; }
.cm-search input::placeholder { color:var(--t-500); }
.cm-search input::-webkit-search-cancel-button { -webkit-appearance:none; }
.cm-list { max-height:308px; overflow-y:auto; overscroll-behavior:contain; padding:2px 0; }
.catmenu .cm-list button { height:42px; gap:10px; padding:0 8px; font-size:15px; }
.cm-box { flex:none; display:grid; place-items:center; width:20px; height:20px; border-radius:6px; border:1.5px solid rgba(var(--op-line),.28); background:var(--s-1); transition:background-color .15s, border-color .15s; }
.catmenu .cm-list button .cm-box i { width:auto; font-size:13px; color:#fff; opacity:0; transform:scale(.6); transition:opacity .15s, transform .2s var(--ease-out); }
.catmenu button[aria-checked="true"] .cm-box { background:var(--color-brand); border-color:var(--color-brand); }
.catmenu button[aria-checked="true"] .cm-box i { opacity:1; transform:scale(1); }
.cm-t { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.catmenu .cm-list button small { flex:none; font-size:13px; color:var(--t-500); font-variant-numeric:tabular-nums; }
.cm-none { margin:0; padding:16px 10px; font-size:14px; color:var(--t-400); text-align:center; }
.cm-foot { display:flex; align-items:center; gap:6px; margin-top:6px; padding-top:8px; border-top:1px solid rgba(var(--op-line),.08); }
.cm-count { flex:1; padding-left:4px; font-size:13px; color:var(--t-500); }
.catmenu .cm-foot button { width:auto; height:40px; padding:0 14px; font-size:14px; font-weight:600; border-radius:10px; }
.catmenu .cm-foot .cm-clear { color:var(--t-400); }
.catmenu .cm-foot .cm-done { color:#fff; background:var(--color-brand); }
.catmenu .cm-foot .cm-done:hover { background:var(--color-brand); filter:brightness(1.08); }
.cat-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(238px, 1fr)); gap:22px 18px; }
.ccard { display:flex; flex-direction:column; align-items:stretch; gap:3px; padding:0; text-align:left; background:transparent; border:0; border-radius:16px; cursor:pointer; }
.ccard-frame { position:relative; display:block; width:100%; aspect-ratio:16/10; border-radius:16px; overflow:hidden; background:#000; margin-bottom:7px; transition:transform .3s var(--ease-out), box-shadow .3s; box-shadow:0 1px 2px rgba(0,0,0,.06); }
.ccard-frame img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.ccard-frame img:not(.asset-bg), .rel-frame img:not(.asset-bg) { transition:transform .55s var(--ease-out); }
[data-wide="1"] > img:not(.asset-bg):not(video), .asset-hero[data-wide="1"] .asset-still { object-fit:cover; }
[data-wide="1"] > .asset-bg { display:none; }
@media (hover:hover) and (pointer:fine) { .ccard:hover .ccard-frame img:not(.asset-bg), .rel:hover .rel-frame img:not(.asset-bg) { transform:scale(1.035); } }
.ccard.just .ccard-frame { animation:ccard-ring 1.2s var(--ease-out) both; }
@keyframes ccard-ring { 0% { box-shadow:0 0 0 3px color-mix(in srgb, var(--color-brand) 70%, transparent); } 100% { box-shadow:0 0 0 14px transparent; } }
.ccard-frame .asset-bg { object-fit:cover; filter:blur(24px) saturate(1.1); transform:scale(1.25); opacity:.55; }
@media (hover:hover) and (pointer:fine) { .ccard:hover .ccard-frame { transform:translateY(-3px); box-shadow:0 18px 34px -22px rgba(0,0,0,.5); } }
.ccard:focus-visible { outline:none; } .ccard:focus-visible .ccard-frame { box-shadow:0 0 0 3px color-mix(in srgb, var(--color-brand) 55%, transparent); }
.ccard-dur, .ccard-lang { position:absolute; bottom:8px; padding:3px 7px; border-radius:7px; font-family:var(--font-mono); font-size:11.5px; color:#fff; background:rgba(10,8,20,.62); }
.ccard-dur { right:8px; } .ccard-lang { left:8px; }
.ccard b { font-size:15.5px; font-weight:650; line-height:1.3; color:var(--t-100); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ccard small { font-size:13.5px; color:var(--t-400); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ccard .ccard-2 { color:var(--t-500); }
.cat-none { display:flex; flex-direction:column; align-items:center; gap:6px; padding:70px 0; text-align:center; color:var(--t-300); }
.cat-none i { font-size:30px; color:var(--t-500); margin-bottom:6px; } .cat-none span { font-size:18px; font-weight:650; color:var(--t-100); } .cat-none small { font-size:14.5px; color:var(--t-400); } .cat-none .ghost { margin-top:12px; }
.asset-page { width:100%; padding:calc(var(--tb-h) + 18px) 4px 60px; text-align:left; }
.asset-back { margin:0 0 14px; background:transparent; border-color:transparent; color:var(--t-400); padding-left:6px; }
.asset { display:grid; grid-template-columns:minmax(0, 1fr) 380px; gap:28px; align-items:start; }
.asset-hero { position:relative; display:grid; place-items:center; width:100%; aspect-ratio:16/10; border-radius:22px; overflow:hidden; background:#000; outline:none; will-change:transform; }
.asset-hero:focus-visible { box-shadow:0 0 0 3px color-mix(in srgb, var(--color-brand) 55%, transparent); }
.asset-hero img, .asset-hero video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.asset-hero .asset-bg, .rel-frame .asset-bg { object-fit:cover; filter:blur(28px) saturate(1.1); transform:scale(1.25); opacity:.55; }
.asset-hero .asset-still { transition:transform .6s var(--ease-out); cursor:pointer; }
@media (hover:hover) and (pointer:fine) { .asset-hero:not([data-playing="1"]):hover .asset-still { transform:scale(1.02); } }
.asset-hero video { z-index:1; cursor:pointer; } .asset-hero video[hidden] { display:none; }
.asset-hero .slot-play { position:relative; z-index:2; display:grid; place-items:center; width:76px; height:76px; border-radius:50%; padding:0; border:0; font-size:30px; color:#14111f; background:rgba(255,255,255,.94); box-shadow:0 10px 30px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.04); cursor:pointer; transition:transform .25s var(--ease-out), background-color .2s; }
.asset-hero .slot-play i { margin-left:4px; } .asset-hero .slot-play i.ph-arrow-counter-clockwise { margin-left:0; }
@media (hover:hover) and (pointer:fine) { .asset-hero .slot-play:hover { transform:scale(1.06); background:#fff; } }
.asset-hero[data-idle="1"] { cursor:none; } .asset-hero[data-idle="1"] .avc { opacity:0; }
.avc { position:absolute; left:0; right:0; bottom:0; z-index:3; display:flex; align-items:center; gap:6px; padding:34px 12px 10px; color:#fff; background:linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, transparent); transition:opacity .3s; }
.avc[hidden] { display:none; }
.avc-b { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:10px; color:#fff; background:transparent; font-size:20px; transition:background-color .15s; }
.avc-b:hover { background:rgba(255,255,255,.14); }
.avc-t { flex:none; min-width:40px; text-align:center; font-family:var(--font-mono); font-size:12.5px; font-variant-numeric:tabular-nums; opacity:.92; }
.avc-bar { position:relative; flex:1; height:24px; cursor:pointer; outline:none; touch-action:none; }
.avc-bar::before { content:''; position:absolute; left:0; right:0; top:10px; height:4px; border-radius:2px; background:rgba(255,255,255,.28); }
.avc-fill { position:absolute; left:0; top:10px; height:4px; width:0; border-radius:2px; background:#fff; }
.avc-knob { position:absolute; top:6px; left:0; width:12px; height:12px; border-radius:50%; background:#fff; transform:translateX(-50%) scale(.6); opacity:0; transition:opacity .2s, transform .2s var(--ease-out); box-shadow:0 1px 4px rgba(0,0,0,.4); }
.avc-bar:focus-visible .avc-knob { opacity:1; transform:translateX(-50%) scale(1); } @media (hover:hover) and (pointer:fine) { .avc-bar:hover .avc-knob { opacity:1; transform:translateX(-50%) scale(1); } }
.avc-bar:focus-visible::before { background:rgba(255,255,255,.45); }
.avc-sample { flex:none; margin-left:4px; font-style:normal; font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; padding:3px 6px; border-radius:5px; border:1px solid rgba(255,255,255,.35); opacity:.75; }
.asset-hero:fullscreen { border-radius:0; aspect-ratio:auto; width:100vw; height:100vh; } .asset-hero:fullscreen video { object-fit:contain; }
.asset-dur { position:absolute; z-index:2; right:14px; bottom:12px; padding:4px 9px; border-radius:8px; font-family:var(--font-mono); font-size:12.5px; color:#fff; background:rgba(10,8,20,.6); } .asset-dur[hidden] { display:none; }
.asset-h { margin:18px 0 6px; font-size:30px; font-weight:700; letter-spacing:-.02em; line-height:1.15; color:var(--t-100); }
.asset-desc { margin:0; font-size:17px; line-height:1.55; color:var(--t-300); max-width:64ch; }
.asset-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.atag { padding:5px 10px; border-radius:99px; font-size:13px; font-weight:600; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 8%, transparent); }
.asset-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.asset-actions .primary { height:52px; font-size:16px; padding:0 22px; } .asset-actions .ghost { height:52px; }
.asset-side { display:flex; flex-direction:column; gap:14px; }
.acard { padding:14px; border-radius:20px; background:var(--s-0); border:1px solid rgba(var(--op-line),.08); }
.am-doc { display:flex; align-items:center; gap:12px; padding:2px 4px 14px; border-bottom:1px solid rgba(var(--op-line),.08); }
.am-ava { flex:none; width:46px; height:46px; border-radius:50%; object-fit:cover; background:#000; }
.am-doc > div { flex:1; min-width:0; } .am-doc b { display:block; font-size:15.5px; font-weight:650; color:var(--t-100); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .am-doc small { display:block; font-size:13.5px; color:var(--t-400); }
.am-more { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:50%; color:var(--t-400); background:rgba(var(--op-line),.05); font-size:18px; transition:background-color .15s, color .15s, transform .2s var(--ease-out); }
@media (hover:hover) and (pointer:fine) { .am-more:hover { color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 10%, transparent); transform:translateX(2px); } }
.am-chips { display:flex; flex-wrap:wrap; gap:6px; padding:14px 4px 12px; }
.am-chip { display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 12px 0 10px; border-radius:99px; background:var(--s-1); border:1px solid rgba(var(--op-line),.12); font-size:13.5px; font-weight:600; color:var(--t-200); transition:border-color .15s, background-color .15s, transform .15s var(--ease-out); }
.am-chip i { font-size:15px; color:var(--color-brand); }
@media (hover:hover) and (pointer:fine) { .am-chip:not(.static):hover { border-color:color-mix(in srgb, var(--color-brand) 55%, transparent); background:color-mix(in srgb, var(--color-brand) 6%, var(--s-1)); transform:translateY(-1px); } }
.am-chip.static { cursor:default; color:var(--t-400); } .am-chip.static i { color:var(--t-500); }
.am-facts { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:2px 4px 12px; }
.am-fact { padding:10px 12px 11px; border-radius:12px; background:rgba(var(--op-line),.045); }
.am-fact small { display:block; font-size:12.5px; color:var(--t-500); margin-bottom:2px; } .am-fact b { display:block; font-size:15px; font-weight:650; color:var(--t-100); font-variant-numeric:tabular-nums; }
.am-rights { display:flex; align-items:center; gap:10px; margin:0 4px; padding:11px 12px; border-radius:12px; background:color-mix(in srgb, var(--sem-green) 9%, transparent); }
.am-rights i { flex:none; font-size:22px; color:var(--sem-green); } .am-rights b { display:block; font-size:14.5px; font-weight:650; color:var(--t-100); } .am-rights small { display:block; font-size:13px; color:var(--t-400); }
.am-rights[data-ok="0"] { background:color-mix(in srgb, var(--sem-amber) 12%, transparent); } .am-rights[data-ok="0"] i { color:var(--sem-amber); }
.am-id { display:flex; align-items:center; gap:8px; padding:12px 4px 0; }
.am-id small { font-size:13px; color:var(--t-500); } .am-id code { font-family:var(--font-mono); font-size:13px; color:var(--t-200); }
.am-copy { margin-left:auto; display:grid; place-items:center; width:36px; height:36px; border-radius:10px; color:var(--t-400); font-size:17px; transition:background-color .15s, color .15s; }
.am-copy:hover { color:var(--t-100); background:rgba(var(--op-line),.06); }
.asset-files { padding:14px 8px 8px; }
.af-h { margin:0 8px 6px; font-size:14px; font-weight:600; color:var(--t-400); }
.alink { display:flex; align-items:center; gap:12px; width:100%; padding:10px 8px; border-radius:14px; background:transparent; border:0; text-align:left; cursor:pointer; transition:background-color .15s; }
.alink + .alink { position:relative; } .alink + .alink::before { content:''; position:absolute; left:64px; right:8px; top:0; height:1px; background:rgba(var(--op-line),.08); }
.alink:hover { background:rgba(var(--op-line),.05); }
.alink .tile-ic { flex:none; }
.alink-t { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
.alink-t b { font-size:15px; font-weight:650; color:var(--t-100); } .alink-t small { font-size:13px; color:var(--t-400); }
.alink-t code { font-family:var(--font-mono); font-size:12px; color:var(--t-500); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:2px; }
.alink > i { flex:none; font-size:18px; color:var(--t-500); transition:color .15s, transform .2s var(--ease-out); }
@media (hover:hover) and (pointer:fine) { .alink:hover > i { color:var(--color-brand); transform:translate(1px, -1px); } }
.asset-rel { margin-top:34px; }
.asset-rel :is(h2, h3) { margin:0 0 12px; font-size:18px; font-weight:700; letter-spacing:-.01em; color:var(--t-100); }
.rel-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; }
.rel { display:flex; flex-direction:column; gap:6px; padding:0; text-align:left; background:transparent; border:0; cursor:pointer; border-radius:14px; }
.rel-frame { position:relative; display:block; width:100%; aspect-ratio:16/10; border-radius:14px; overflow:hidden; background:#000; transition:transform .3s var(--ease-out); }
.rel-frame img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
@media (hover:hover) and (pointer:fine) { .rel:hover .rel-frame { transform:translateY(-2px); } }
.rel b { font-size:14.5px; font-weight:650; color:var(--t-100); line-height:1.3; } .rel small { font-size:13px; color:var(--t-400); }
@media (max-width:1000px) { .asset { grid-template-columns:1fr; } .rel-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } .cat-bar { flex-wrap:wrap; } .cat-n { width:100%; margin-left:0; } }
/* ── the attached-file chip (round 220): an icon that says what it is, a line that says whether it
   was read, and, when it was not, what to do; the failure is red and unmissable ── */
.files { gap:10px; margin:10px 0 6px; }
.file { display:flex; align-items:center; gap:12px; width:min(100%, 560px); padding:10px 8px 10px 10px; border-radius:16px; background:var(--s-0); border:1.5px solid rgba(var(--op-line),.10); font-size:15px; text-align:left; }
.file .f-ic { flex:none; width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:color-mix(in srgb, var(--color-brand) 10%, transparent); }
.file .f-ic i { font-size:21px; color:var(--color-brand); }
.file .f-t { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:3px; }
.file .f-t b { font-size:15.5px; font-weight:650; color:var(--t-100); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file .f-s { display:inline-flex; align-items:center; gap:6px; font-size:14px; line-height:1.35; color:var(--t-400); }
.file .f-s i { font-size:17px; flex:none; }
.file .f-h { font-size:14px; line-height:1.4; color:var(--t-400); }
.file[data-state="ok"] .f-s { color:var(--sem-green); }
.file[data-state="empty"] .f-s { color:var(--sem-amber); }
.file[data-state="bad"] { border-color:color-mix(in srgb, var(--sem-red) 50%, transparent); background:color-mix(in srgb, var(--sem-red) 6%, var(--s-0)); }
.file[data-state="bad"] .f-ic { background:color-mix(in srgb, var(--sem-red) 12%, transparent); }
.file[data-state="bad"] .f-ic i { color:var(--sem-red); }
.file[data-state="bad"] .f-s { color:var(--sem-red); font-weight:650; }
.file[data-state="bad"] .f-h { color:var(--t-200); }
.file .f-x { flex:none; width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:18px; color:var(--t-500); }
.file .f-x:hover { color:var(--sem-red); background:color-mix(in srgb, var(--sem-red) 8%, transparent); }
/* ── the review, 2-sep: words for tabs, a reading list, one meta line, and "being made" on the phone ── */
.words .lang-sw { margin-left:12px; padding:3px; border-radius:11px; gap:3px; }
.words .lang-sw button { height:32px; padding:0 14px; border-radius:9px; font-family:var(--font-sans); font-size:13.5px; font-weight:600; letter-spacing:0; text-transform:none; display:inline-flex; align-items:center; gap:7px; }
.words .lang-sw button .spin { font-size:14px; }
.words-t small { margin-top:8px; font-size:14px; line-height:1.45; color:var(--t-400); }
.words .words-t { font-family:var(--font-sans); font-size:14px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--t-400); display:flex; align-items:center; flex-wrap:wrap; }
.words .words-t small { flex-basis:100%; font-weight:400; }
.capmenu .menu-t { font-family:var(--font-sans); font-size:14px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--t-400); }
.words .script { gap:0; }
.words .script li { border:0; border-radius:0; background:transparent; padding:14px 6px 14px 4px; gap:16px; border-top:1px solid rgba(var(--op-line),.08); font-size:17px; line-height:1.5; color:var(--t-300); }
.words .script li:first-child { border-top:0; }
@media (hover:hover) and (pointer:fine) { .words .script li:hover { background:transparent; transform:none; color:var(--t-100); } }
.words .script li[data-on] { background:transparent; border-color:rgba(var(--op-line),.08); box-shadow:none; color:var(--t-100); }
.words .script li[data-on]::before { left:-14px; top:14px; bottom:14px; }
.words .script li[data-on]::after { display:none; }
.words .script li b { width:26px; font-size:12.5px; padding-top:6px; }
.words .script li .pen { width:36px; height:36px; border-radius:10px; }
.review-meta .meta-line { display:inline-flex; align-items:center; gap:8px; font-size:14px; line-height:1.4; color:var(--t-400); }
.review .review-links { display:flex; gap:6px; margin-top:4px; }
.review .review-links .tiny { margin-top:0; padding:0 10px; background:transparent; border-color:transparent; color:var(--t-400); font-size:14px; }
.review .review-links .tiny:hover { color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 6%, transparent); }
.words .actions { margin-top:14px; justify-content:flex-start; }
.words .actions .primary, .words .actions .ghost { height:56px; }
.review-meta .meta-line i { font-size:16px; color:var(--color-brand); }
.review-meta .chip { display:none; }
/* an uploaded video's rights line (25 September): the practice's own confirmation, never ticked for it; a 44 px row */
.rv-rights { display:flex; align-items:center; gap:10px; min-height:44px; margin:10px 0 0; font-size:15px; line-height:1.45; color:var(--t-300); cursor:pointer; }
.rv-rights input { flex:none; width:20px; height:20px; margin:0; accent-color:var(--color-brand); cursor:pointer; }
.rv-rights input[aria-invalid="true"] { outline:2px solid var(--sem-red); outline-offset:2px; border-radius:4px; }
.phone-making { position:absolute; left:14px; right:14px; bottom:96px; z-index:6; display:flex; flex-direction:column; align-items:center; gap:8px; padding:16px 14px 14px; border-radius:18px; text-align:center; color:#fff;
  background:rgba(10,8,20,.72); backdrop-filter:blur(10px) saturate(1.3); -webkit-backdrop-filter:blur(10px) saturate(1.3); border:1px solid rgba(255,255,255,.1); }
.phone-making b { font-size:14.5px; font-weight:650; letter-spacing:-.01em; }
.phone-making small { font-size:12.5px; color:rgba(255,255,255,.75); }
.pm-ring { width:30px; height:30px; border-radius:99px; border:3px solid rgba(255,255,255,.22); border-top-color:#B79CFF; animation:pm-spin 1s linear infinite; }
@keyframes pm-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pm-ring { animation:none; border-top-color:rgba(255,255,255,.22); } }
.phone:has(.phone-making) .phone-cap { opacity:0; }
/* the review's Spanish tab before the dub exists: a plain line and the button that makes it */
.review-dub { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; margin:10px 0 4px; padding:12px 14px; border-radius:14px; font-size:15px; line-height:1.4; color:var(--t-200);
  background:color-mix(in srgb, var(--color-brand) 8%, transparent); border:1px solid color-mix(in srgb, var(--color-brand) 22%, transparent); }
.review-dub > i { font-size:20px; color:var(--color-brand); }
.review-dub span { flex:1 1 220px; }
.review-dub button { min-height:44px; }

/* the presenters' voices: one row each, portrait, and same-gender voice chips */
.cvrow { display:flex; align-items:center; gap:12px; padding:10px 6px; }
.cvrow + .cvrow { border-top:1px solid rgba(var(--op-line),.07); }
.cvrow img { width:44px; height:44px; border-radius:12px; object-fit:cover; }
.cv-t { min-width:76px; } .cv-t b { display:block; font-size:14.5px; color:var(--t-100); }
.cv-t small { font-size:11.5px; color:var(--t-500); }
.cv-chips { display:flex; gap:6px; flex-wrap:wrap; margin-left:auto; }
.cv-chips button { min-height:44px; padding:0 13px; border-radius:11px; border:1.5px solid rgba(var(--op-line),.14);
  background:var(--s-0); font-size:13.5px; font-weight:600; color:var(--t-200); cursor:pointer; transition:border-color .15s, background-color .15s; }
.cv-chips button[aria-pressed="true"] { border-color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 9%, transparent); color:var(--t-100); }

/* the caption menu inside the viewer */
.capmenu { position:absolute; left:50%; right:auto; translate:-50% 0; bottom:130px; z-index:6; width:min(420px, calc(100vw - 36px));
  background:var(--s-0); border:1px solid rgba(var(--op-line),.12); border-radius:16px; padding:14px 16px; box-shadow:0 18px 60px -18px rgba(0,0,0,.45); }
.capmenu .menu-t { margin:4px 0 8px; }
.capmenu .cv-chips { margin:0 0 10px; }
.capmenu-note { margin:2px 0 0; font-size:12px; line-height:1.5; color:var(--t-500); }

/* the clone's own controls inside its card */
.vown #voiceUseRow { width:100%; margin:0 0 10px; }
.vown .vdel { width:100%; justify-content:center; min-height:48px; margin-top:8px; color:#B4231F; border-color:color-mix(in srgb, #B4231F 30%, transparent); }
html.op-dark .vown .vdel { color:#FF8A80; border-color:color-mix(in srgb, #FF8A80 30%, transparent); }
.vown .vdel:hover { background:color-mix(in srgb, #B4231F 8%, transparent); }

/* the field obeys its own switch now: overlays that say off actually get a still, faded field */
body[data-field="off"] #field { opacity:0; }

/* the language submenu: a titled, compact grid instead of a mile of rows */
#kmenu .km-t { display:flex; align-items:center; gap:7px; margin:2px 6px 8px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--t-500); }
#kmenu .km-t i { font-size:14px; color:var(--color-brand); }
#kmenu .dub-grid { display:grid; grid-template-columns:1fr 1fr; gap:2px; min-width:280px; }
#kmenu .dub-grid button { min-height:44px; justify-content:flex-start; }

/* ── Ask Dose: the mic and the panel (branch assistant) ── */
.askbtn { position:fixed; left:24px; bottom:24px; z-index:92; width:64px; height:64px; border-radius:50%; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg, var(--color-brand), color-mix(in srgb, var(--color-brand) 70%, #ff7a59)); box-shadow:0 14px 34px -12px color-mix(in srgb, var(--color-brand) 70%, transparent), 0 2px 6px rgba(0,0,0,.12); transition:transform .25s var(--ease-out), box-shadow .25s; }
@media (hover:hover) and (pointer:fine) { .askbtn:hover { transform:translateY(-2px) scale(1.03); } }
.askbtn:active { transform:scale(.96); }
.askbtn > i { position:relative; z-index:1; font-size:28px; transition:opacity .2s, transform .2s; }
.askbtn-ring { position:absolute; inset:0; border-radius:50%; border:2px solid color-mix(in srgb, var(--color-brand) 60%, transparent); opacity:0; }
.askbtn[data-state="listening"] .askbtn-ring { opacity:1; animation:askring 1.4s ease-out infinite; }
@keyframes askring { 0% { transform:scale(1); opacity:.9; } 100% { transform:scale(1.9); opacity:0; } }
.askbtn[data-state="listening"] { background:linear-gradient(135deg, #ff5c7a, #ff7a59); }
.askbtn[data-state="thinking"] > i { animation:askspin 1s linear infinite; }
@keyframes askspin { to { transform:rotate(360deg); } }
.askbtn-bars { position:absolute; inset:0; display:none; place-items:center; grid-auto-flow:column; gap:4px; }
.askbtn-bars i { width:5px; height:14px; border-radius:3px; background:#fff; animation:askbar .9s ease-in-out infinite; }
.askbtn-bars i:nth-child(2) { animation-delay:.15s; } .askbtn-bars i:nth-child(3) { animation-delay:.3s; } .askbtn-bars i:nth-child(4) { animation-delay:.45s; }
@keyframes askbar { 0%, 100% { transform:scaleY(.5); } 50% { transform:scaleY(1.6); } }
.askbtn[data-state="speaking"] > i { opacity:0; } .askbtn[data-state="speaking"] .askbtn-bars { display:grid; }
.ask { position:fixed; left:24px; bottom:100px; z-index:91; width:min(400px, calc(100vw - 48px)); max-height:min(62vh, 620px); display:flex; flex-direction:column; border-radius:24px; background:var(--glass); border:1px solid rgba(var(--op-line),.10); backdrop-filter:blur(28px) saturate(1.4); box-shadow:var(--shadow); overflow:hidden; text-align:left; }
.ask[hidden] { display:none; }
.ask-head { display:flex; align-items:center; gap:10px; padding:14px 12px 12px 18px; border-bottom:1px solid rgba(var(--op-line),.08); }
.ask-dot { width:10px; height:10px; border-radius:50%; background:var(--color-brand); box-shadow:0 0 0 4px color-mix(in srgb, var(--color-brand) 18%, transparent); }
.ask-head > div { flex:1; min-width:0; } .ask-head b { display:block; font-size:15.5px; font-weight:700; color:var(--t-100); } .ask-head small { display:block; font-size:13px; color:var(--t-400); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ask-ic { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:12px; color:var(--t-400); font-size:19px; transition:background-color .15s, color .15s; }
.ask-ic:hover { color:var(--t-100); background:rgba(var(--op-line),.06); }
.ask-ic[aria-pressed="false"] { color:var(--t-500); }
.ask-log { flex:1 1 auto; min-height:120px; overflow-y:auto; padding:14px 14px 6px; display:flex; flex-direction:column; gap:8px; overscroll-behavior:contain; }
.ask-m { max-width:86%; font-size:15.5px; line-height:1.45; }
.ask-m[data-who="me"] { align-self:flex-end; padding:9px 13px; border-radius:16px 16px 4px 16px; color:#fff; background:var(--color-brand); }
.ask-m[data-who="dose"] { align-self:flex-start; padding:9px 13px; border-radius:16px 16px 16px 4px; color:var(--t-100); background:var(--s-1); border:1px solid rgba(var(--op-line),.08); }
.ask-m[data-who="dose"] span:empty::after { content:'…'; color:var(--t-500); }
.ask-m[data-who="act"] { align-self:flex-start; display:inline-flex; align-items:center; gap:7px; padding:3px 6px; font-size:13px; color:var(--t-400); } .ask-m[data-who="act"] i { font-size:15px; color:var(--color-brand); }
.ask-heard { margin:0; padding:6px 18px 8px; font-size:14.5px; color:var(--t-300); font-style:italic; } .ask-heard[hidden] { display:none; }
.ask-foot { display:flex; align-items:center; gap:8px; padding:10px 12px 12px; border-top:1px solid rgba(var(--op-line),.08); }
.ask-foot input { flex:1; min-width:0; height:44px; padding:0 14px; border-radius:12px; border:1px solid rgba(var(--op-line),.12); background:var(--s-1); font:inherit; font-size:15px; color:var(--t-100); outline:none; }
.ask-foot input:focus { border-color:color-mix(in srgb, var(--color-brand) 55%, transparent); box-shadow:0 0 0 4px color-mix(in srgb, var(--color-brand) 12%, transparent); }
.ask-send { flex:none; display:grid; place-items:center; width:44px; height:44px; border-radius:12px; color:#fff; background:var(--color-brand); font-size:19px; }
@media (max-width:700px) { .askbtn { left:16px; bottom:16px; width:58px; height:58px; } .ask { left:16px; bottom:84px; width:calc(100vw - 32px); } }

/* the state, readable with the panel closed */
.askbtn { --lvl:0; }
.askbtn-halo { position:absolute; inset:-6px; border-radius:50%; background:color-mix(in srgb, #ff5c7a 35%, transparent); opacity:0; transform:scale(calc(1 + var(--lvl) * .45)); transition:opacity .2s, transform .08s linear; }
.askbtn[data-state="listening"] .askbtn-halo { opacity:1; }
.askbtn[data-state="thinking"] { background:linear-gradient(135deg, color-mix(in srgb, var(--color-brand) 80%, #000), var(--color-brand)); }
.askbtn[data-state="thinking"] .askbtn-ring { opacity:1; border-color:rgba(255,255,255,.7); border-right-color:transparent; border-bottom-color:transparent; animation:askspin 1s linear infinite; }
.askbtn[data-state="thinking"] > i { animation:none; opacity:.85; }   /* the ring turns around the button's own icon (the code point here was a glyph the cut font no longer has) */
.askpill { position:fixed; left:98px; bottom:32px; z-index:92; display:inline-flex; align-items:center; gap:10px; max-width:min(420px, calc(100vw - 130px)); min-height:48px; padding:10px 16px 10px 13px; border-radius:18px; background:var(--glass); border:1px solid rgba(var(--op-line),.10); backdrop-filter:blur(24px) saturate(1.4); box-shadow:var(--shadow); color:var(--t-100); font-size:15px; line-height:1.35; text-align:left; cursor:pointer; transition:transform .25s var(--ease-out), opacity .3s; }
@media (hover:hover) and (pointer:fine) { .askpill:hover { transform:translateY(-1px); } }
.askpill[data-state="idle"] { color:var(--t-400); }
#askPillText { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.askpill-dot { flex:none; width:10px; height:10px; border-radius:50%; background:var(--t-500); transition:background-color .2s; }
.askpill[data-state="listening"] { color:var(--t-100); border-color:color-mix(in srgb, #ff5c7a 45%, transparent); }
.askpill[data-state="listening"] .askpill-dot { background:#ff3b5c; box-shadow:0 0 0 0 rgba(255,59,92,.5); animation:askdot 1.2s ease-out infinite; }
@keyframes askdot { 0% { box-shadow:0 0 0 0 rgba(255,59,92,.55); } 100% { box-shadow:0 0 0 9px rgba(255,59,92,0); } }
.askpill[data-state="thinking"] .askpill-dot { background:var(--color-brand); animation:askblink 1s ease-in-out infinite; }
@keyframes askblink { 0%, 100% { opacity:1; } 50% { opacity:.25; } }
.askpill[data-state="speaking"] .askpill-dot { background:var(--color-brand); animation:askbarb .9s ease-in-out infinite; }
@keyframes askbarb { 0%, 100% { transform:scale(.8); } 50% { transform:scale(1.25); } }
@media (max-width:700px) { .askpill { left:84px; bottom:22px; max-width:calc(100vw - 108px); } }

/* the transport never disappears under a picture or an intro (Sergio, 3-sep) */
.phone-dock { z-index:7; }
.phone:has(.intro) .phone-dock { opacity:.55; }

/* round 368 (Sergio, 6 October: the notice covered the captions). A video that is not here has no transport to show, so the notice takes the
   transport's own strip, under the lowest place a caption can sit (78 px); the strip's gradient stays and gives it its contrast */
.vplayer[data-none="1"] { pointer-events:none; } .vplayer[data-none="1"] > * { visibility:hidden; }
.vp-none { position:absolute; left:14px; right:14px; bottom:12px; z-index:6; margin:0; min-height:38px; padding:0 4px; color:#fff; font-size:13.5px; font-weight:600; line-height:1.3; text-shadow:0 1px 3px rgba(0,0,0,.55); text-align:center; display:flex; align-items:center; gap:8px; justify-content:center; } .vp-none i { font-size:18px; flex:none; }
/* round 306's line, "on this device only", rides with a live transport: a small chip at the top left, clear of the captions and of the chips at the right */
.vp-none.vp-note { left:14px; right:auto; bottom:auto; top:14px; max-width:calc(100% - 140px); min-height:0; padding:4px 9px; border-radius:6px; font-size:11px; font-weight:600; letter-spacing:.02em; text-shadow:none; background:rgba(12,6,26,.74); text-align:left; } .vp-none.vp-note i { font-size:13px; }

.as-choose { display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px 10px 10px; border-radius:16px; background:var(--s-1); border:1px dashed rgba(var(--op-line),.22); text-align:left; cursor:pointer; transition:border-color .15s, background-color .15s; }
.as-choose:hover { border-color:color-mix(in srgb, var(--color-brand) 50%, transparent); background:color-mix(in srgb, var(--color-brand) 5%, var(--s-1)); }
.as-choose .ic { flex:none; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; font-size:20px; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 10%, transparent); }
.as-choose .t { flex:1; min-width:0; font-size:15px; font-weight:600; color:var(--t-100); } .as-choose .t small { display:block; font-weight:400; font-size:13.5px; color:var(--t-400); margin-top:1px; }
.as-choose > i { flex:none; font-size:18px; color:var(--t-500); }

/* the catalogue's languages */
.asset-langs { position:absolute; left:12px; top:12px; z-index:3; display:inline-flex; gap:4px; padding:4px; border-radius:12px; background:rgba(10,8,20,.55); backdrop-filter:blur(10px); }
.asset-langs[hidden] { display:none; }
.asset-langs button { height:34px; padding:0 11px; border-radius:9px; font-size:13.5px; font-weight:600; color:rgba(255,255,255,.8); transition:background-color .15s, color .15s; }
.asset-langs button:hover, .asset-langs button[aria-selected="true"] { color:#fff; } .asset-langs button[aria-selected="true"] { background:rgba(255,255,255,.2); }
.asset-cap { position:absolute; left:8%; right:8%; bottom:72px; z-index:2; margin:0; padding:0; text-align:center; font-size:22px; font-weight:800; line-height:1.3; color:#fff; text-shadow:0 2px 6px rgba(0,0,0,.7), 0 0 2px rgba(0,0,0,.9); pointer-events:none; }
.asset-cap[hidden] { display:none; }
.tsheet { width:min(100%, 640px); }
.ts-list { list-style:none; margin:0; padding:2px 0 6px; }
.ts-row { display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px; min-height:56px; padding:6px 4px; border-top:1px solid rgba(var(--op-line),.07); }
.ts-row:first-child { border-top:0; }
.ts-name { font-size:16px; font-weight:600; color:var(--t-100); } .ts-name small { display:block; font-weight:400; font-size:13px; color:var(--t-500); }
.ts-ok { display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:600; color:var(--sem-green); } .ts-ok i { font-size:18px; }
.ts-making { display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--t-300); font-variant-numeric:tabular-nums; } .ts-making i { font-size:17px; color:var(--color-brand); }
.ts-row .ghost.sm { height:40px; font-size:14px; }
.tsheet-foot { justify-content:space-between; gap:14px; }
.ts-note { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--t-500); line-height:1.35; } .ts-note i { font-size:16px; flex:none; }
.tsheet-foot .primary { height:48px; padding:0 22px; font-size:15px; flex:none; }

.tsheet:focus, .tsheet:focus-visible { outline:none; box-shadow:var(--shadow); }

/* Dose on WhatsApp: the pairing sheet */
.wsheet { width:min(100%, 560px); }
.ws-wait, .ws-lead { margin:6px 0 10px; font-size:16px; line-height:1.5; color:var(--t-200); display:flex; align-items:center; gap:10px; }
.ws-steps { list-style:none; margin:2px 0 0; padding:0; display:flex; flex-direction:column; }
.ws-steps li { display:flex; gap:16px; padding:16px 0 18px; border-top:1px solid rgba(var(--op-line),.08); }
.ws-steps li:first-child { border-top:0; padding-top:8px; }
.ws-n { flex:none; width:28px; height:28px; margin-top:1px; border-radius:50%; display:grid; place-items:center; font-family:var(--font-mono); font-size:12.5px; font-weight:600; color:var(--color-brand); background:color-mix(in srgb, var(--color-brand) 11%, transparent); }
.ws-st { flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; }
.ws-st > b { font-size:16px; font-weight:600; line-height:1.4; color:var(--t-100); }
.ws-num { display:flex; align-items:center; gap:10px; min-height:50px; padding:6px 6px 6px 14px; border-radius:14px; border:1px solid rgba(var(--op-line),.10); background:rgba(var(--op-line),.03); }
.ws-num > i { flex:none; font-size:22px; color:#25D366; }
.ws-num > span { flex:1; min-width:0; font-family:var(--font-mono); font-size:15.5px; font-weight:600; letter-spacing:.02em; color:var(--t-100); }
.ws-open { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px 0 14px; border-radius:10px; font-size:14px; font-weight:600; color:var(--color-primary-foreground); background:var(--color-brand); text-decoration:none; white-space:nowrap; transition:opacity .2s, transform .15s; }
@media (hover:hover) and (pointer:fine) { .ws-open:hover { transform:translateY(-1px); } } .ws-open i { font-size:15px; }
.ws-join { font-size:13.5px; line-height:1.45; color:var(--t-400); } .ws-join b { font-family:var(--font-mono); font-weight:600; color:var(--t-200); }
.ws-join a, .ws-link { color:var(--color-brand); font-weight:600; text-decoration:none; } .ws-link { background:none; border:0; padding:0; font:inherit; font-weight:600; cursor:pointer; } .ws-join a:hover, .ws-link:hover { text-decoration:underline; }
.ws-code { position:relative; display:flex; justify-content:center; gap:8px; padding:16px 60px 16px 18px; border-radius:16px; background:rgba(var(--op-line),.05); transition:opacity .3s; }
.ws-code span { width:46px; height:60px; display:grid; place-items:center; border-radius:12px; background:var(--s-1); border:1px solid rgba(var(--op-line),.10); font-family:var(--font-mono); font-size:32px; font-weight:700; color:var(--t-100); }
.ws-code span:nth-child(3) { margin-right:12px; }
.ws-copy { position:absolute; right:12px; top:50%; transform:translateY(-50%); width:36px; height:36px; border-radius:10px; border:1px solid rgba(var(--op-line),.10); background:var(--s-1); color:var(--t-300); display:grid; place-items:center; font-size:17px; cursor:pointer; }
.ws-copy:hover { color:var(--color-brand); border-color:var(--color-brand); } .ws-copy .ph-check { color:var(--sem-green); }
.ws-timer { display:flex; align-items:center; gap:12px; }
.ws-bar { flex:1; height:4px; border-radius:99px; background:rgba(var(--op-line),.10); overflow:hidden; }
.ws-bar i { display:block; height:100%; border-radius:99px; background:var(--color-brand); transform-origin:left; transition:transform 1s linear, background .3s; }
.ws-left { min-width:12ch; font-family:var(--font-mono); font-size:12.5px; letter-spacing:.02em; color:var(--t-400); white-space:nowrap; }
.ws-renew { height:32px; padding:0 12px; border-radius:9px; border:1px solid rgba(var(--op-line),.12); background:transparent; font:inherit; font-size:13.5px; font-weight:600; color:var(--t-300); cursor:pointer; white-space:nowrap; transition:color .2s, border-color .2s, background .2s; }
.ws-renew:hover { color:var(--color-brand); border-color:var(--color-brand); } .ws-renew:disabled { opacity:.6; cursor:default; }
[data-state="expired"] .ws-code { opacity:.35; }
[data-state="expired"] .ws-bar i { background:var(--sem-amber); }
[data-state="expired"] .ws-left { color:var(--sem-amber); }
[data-state="expired"] .ws-renew { color:var(--color-primary-foreground); background:var(--color-brand); border-color:var(--color-brand); }
[data-state="expired"] .ws-open { opacity:.4; pointer-events:none; }
.ws-list { list-style:none; margin:4px 0 6px; padding:14px 0 0; border-top:1px solid rgba(var(--op-line),.08); display:flex; flex-direction:column; gap:8px; }
.ws-list li { display:flex; align-items:flex-start; gap:8px; font-size:14.5px; line-height:1.45; color:var(--t-300); } .ws-list i { flex:none; font-size:18px; color:var(--sem-green); margin-top:1px; } .ws-list i.ph-warning-circle { color:var(--sem-amber); }
.wa-dot { display:inline-block; width:8px; height:8px; margin:0 7px 1px 0; border-radius:50%; background:var(--sem-green); box-shadow:0 0 0 3px color-mix(in srgb, var(--sem-green) 18%, transparent); vertical-align:middle; }
.wa-dot.off { background:var(--t-500); box-shadow:none; opacity:.6; }
#rowWhats[data-wa="on"] small { color:var(--t-300); }
.ws-phones { margin:2px 0 14px; padding:12px 14px; border-radius:14px; border:1px solid rgba(var(--op-line),.10); background:rgba(var(--op-line),.03); }
.ws-k { display:block; margin:0 0 8px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--t-500); }
.ws-phones ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.ws-phones li { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:14.5px; color:var(--t-300); } .ws-phones li b { font-family:var(--font-mono); font-weight:600; color:var(--t-100); } .ws-phones li span { flex:1; font-size:13px; color:var(--t-500); } .ws-phones .ws-unpair { font-size:13px; }
/* who uses each phone (round 277): the doctor, or a staff member who prepares the words; two buttons and a name */
.ws-who { flex:1 1 100%; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding-left:16px; }
.ws-who .ws-role { flex:none; display:inline-flex; gap:2px; border-radius:11px; background:rgba(var(--op-line),.06); }
.ws-role button { height:44px; padding:0 16px; border:0; border-radius:11px; background:transparent; font:inherit; font-size:14px; font-weight:600; color:var(--t-400); cursor:pointer; transition:color var(--dur-fast), background var(--dur-fast); }
.ws-role button:hover { color:var(--t-100); } .ws-role button[aria-pressed="true"] { color:var(--t-100); background:var(--s-1); box-shadow:0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(var(--op-line),.08); } .ws-role button:disabled { opacity:.6; cursor:default; }
.ws-staff { flex:1 1 140px; min-width:0; height:44px; padding:0 12px; border-radius:11px; font:inherit; font-size:15px; color:var(--t-100); background:var(--s-0); border:1.5px solid rgba(var(--op-line),.14); outline:none; transition:border-color var(--dur-fast), box-shadow var(--dur-fast); }
.ws-staff:focus { border-color:var(--color-brand); box-shadow:0 0 0 4px color-mix(in srgb, var(--color-brand) 12%, transparent); }
.ws-phones li[data-role="staff"] > span { color:var(--t-300); }
.ws-paired { display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:28px 12px 20px; }
.ws-paired i { font-size:54px; color:var(--sem-green); } .ws-paired b { font-size:20px; color:var(--t-100); } .ws-paired p { margin:0; max-width:42ch; font-size:15px; line-height:1.5; color:var(--t-300); }
@media (max-width: 560px) {
  .ws-steps li { flex-direction:column; gap:8px; }
  .ws-num { flex-wrap:wrap; padding:10px 10px 10px 12px; row-gap:10px; } .ws-num > span { flex:1 1 auto; min-width:12ch; font-size:15px; } .ws-open { flex:1 1 100%; justify-content:center; height:42px; font-size:15px; }
  .ws-code { gap:5px; padding:12px 50px 12px 12px; } .ws-code span { width:34px; height:50px; font-size:24px; border-radius:9px; } .ws-code span:nth-child(3) { margin-right:8px; }
  .ws-copy { right:8px; width:32px; height:32px; }
  .ws-timer { flex-wrap:wrap; } .ws-bar { flex-basis:100%; }
}

/* a language version waiting for its own approval (round 272): the viewer offers to approve it, in the brand colour so it is not one tool among five */
.viewer-ok { background:color-mix(in srgb, var(--color-brand) 60%, transparent); }
.viewer-ok:hover { background:color-mix(in srgb, var(--color-brand) 78%, transparent); }

/* ── round 276: the design sweep (16 September 2026) ──────────────────────
   One decision per screen, fewer words, one motion language, 44 px wherever a doctor taps, and
   the blocks of rounds 269 to 275 in the same card as the rest. The audit: docs/DESIGN-SWEEP-276.md. */

/* one motion language: what enters rises in, a state that changes settles once, nothing bounces */
@keyframes rise { from { opacity:0; translate:0 10px; } to { opacity:1; translate:0 0; } }
@keyframes settle { from { transform:scale(.96); opacity:.5; } to { transform:none; opacity:1; } }
.patient { animation:rise var(--dur-base) var(--ease-out) both; }
.dchip[data-done], .file[data-state="ok"] .f-s i, .file[data-state="flag"] .f-s i, .phone-ok, .rec-seal, .ws-copy .ph-check, .cast-one[aria-pressed="true"] .tick { animation:settle var(--dur-fast) var(--ease-out) both; }
.work-shimmer { animation-duration:2.6s; }

/* sheets and modals open above the viewer: Details and the words of a language asked for from it opened behind it */
.lm-scrim { z-index:210; }

/* the share screen: a set-up chip that is done is a status, not a decision, so it leaves the screen (both stay one tap away under You) */
.yk[data-on="1"] { display:none; }
.youkit:not(:has(.yk[data-on="0"])) { display:none; }
[data-step="share"] .sub { max-width:40ch; }

/* the offer: one word to act on per tile */
.tile-a { font-size:15px; }

/* the review: the language tabs are targets */
.words .lang-sw { padding:3px; border-radius:12px; }
.words .lang-sw button { height:40px; padding:0 16px; font-size:14px; border-radius:9px; }

/* the done screen fits an iPad in landscape: the social line and Manage accounts leave (the accounts live in Settings,
   "Where your videos can go"), the patient block is compact, the link sits on one line, Send it comes first */
.done-line, #doneAccounts { display:none; }
[data-step="done"] .sub { margin-top:6px; }
.done { gap:30px; }
.done .phone { height:min(420px, 46vh); margin-top:6px; }
.dests { padding-top:0; gap:8px; }
.approval { margin:0 0 10px; }
.patient { padding:12px 14px 14px; }
.patient-head { align-items:center; }
.patient-head small { margin-top:1px; }
.patient-body { align-items:center; gap:14px; margin-top:10px; }
.patient-qr { width:104px; height:104px; }
.patient-txt { flex:1; min-width:0; gap:8px; }
.patient-url { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.patient-acts .dchip { min-height:44px; }
.dest-head { min-height:56px; padding:9px 14px; }
.dest-head small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
[data-step="done"] .actions { margin-top:16px; }
@media (max-height:900px) { .done .phone { height:min(380px, 44vh); } [data-step="done"] .q { font-size:clamp(28px, 3.9vh, 36px); } }

/* You: the activity block shows its newest three rows; See all opens the rest (the thirty rows stay in the DOM) */
#logCard:not(.open) .lrow:nth-child(n+4), #logCard:not(.open) #logMore, #logCard:not(.open) #logCsv { display:none; }
#logRows:not(:has(.lrow:nth-child(4))) + .log-acts #logAll { display:none; }
.row.lrow { padding:8px 10px; }
.row.lrow strong { font-size:14px; }
.log-acts .mini { min-height:44px; }
.crow .mini { height:44px; min-height:44px; padding:0 16px; font-size:14px; }
.you-note { margin:6px 10px 6px; }
.you-field { padding:6px 10px 2px; }

/* the pairing sheet: every small control is a target */
.ws-num { min-height:56px; padding:6px 6px 6px 16px; }
.ws-open { height:44px; padding:0 16px 0 18px; font-size:15px; }
.ws-code { padding:14px 64px 14px 16px; }
.ws-copy { width:44px; height:44px; right:10px; }
.ws-renew { height:44px; padding:0 16px; font-size:14px; }
.ws-link.ws-unpair { min-height:44px; padding:0 10px; }
.ws-phones .ws-unpair { font-size:14px; }
.ws-list li { font-size:15px; }

/* the viewer: labels on one line, the one approval the one filled control, the transport a target */
.viewer-tools { gap:10px; flex-wrap:wrap; justify-content:center; width:max-content; max-width:calc(100vw - 32px); }   /* six buttons with the patient link (audit 2C) are 833 px: narrower screens take them on two rows, inside the screen */
.viewer-ctrl { white-space:nowrap; height:48px; padding:0 18px; font-size:15px; }
.viewer-close { width:48px; }
.viewer-ok, .viewer-ok:hover { background:var(--color-brand); color:var(--color-primary-foreground); border-color:transparent; font-weight:650; }
.vp-btn { width:44px; height:44px; }

/* the library: segments, the clear button and the three dots at 44 px or more */
.lib-seg button, .pseg button { height:44px; }
.lib-pill { height:44px; }
.lib-search button { width:44px; height:44px; }
.kmenu button { height:48px; }
.card .kb { width:48px; height:48px; }

/* the record's copy button and the photo thumbnails' remove: targets, and never hover-only */
.rec-copy { height:40px; padding:0 12px; font-size:13px; }
.thumb button { opacity:1; width:30px; height:30px; font-size:14px; }

/* ── the one account (round 279): the sign-in screen covers the app until someone is signed in ── */
/* ── the account screens (round 293): a full-height split. Left, a card with the brand, one headline, the fields under small
   uppercase labels (a slightly darker ground, a border only when focused), the one primary action and a light secondary one.
   Right, a still of the product with a small dark card in its corner. Both halves fade and lift in; none of it under reduced motion. ── */
.signin { position:fixed; inset:0; z-index:250; display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); grid-template-rows:max-content; gap:20px; align-items:stretch; padding:20px; overflow-y:auto; overscroll-behavior:contain; background:var(--s-0); }   /* max-content: the row grows with a long form, since a fixed box has no free space to give an auto row */
.signin::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse 55% 45% at 18% 0%, color-mix(in srgb, var(--color-brand) 9%, transparent), transparent 70%); }
.signin-in { display:flex; flex-direction:column; justify-content:center; min-height:calc(100dvh - 40px); padding:48px; border-radius:20px; background:var(--s-1); border:1px solid rgba(var(--op-line),.06); box-shadow:var(--shadow); text-align:left; animation:rise 700ms var(--ease-out) both; }
.signin-in > * { width:min(420px, 100%); margin-left:auto; margin-right:auto; }
.signin-brand { display:flex; align-items:center; gap:.45em; margin-bottom:34px; font-size:22px; font-weight:700; letter-spacing:-.02em; color:var(--t-100); }
.signin-brand .dose-pill { box-shadow:none; }
.signin-h { margin:0 auto; font-size:clamp(28px, 3vw, 34px); font-weight:600; letter-spacing:-.025em; line-height:1.12; color:var(--t-100); text-wrap:balance; }
.signin-sub { margin-top:10px; font-size:16.5px; line-height:1.5; color:var(--t-400); text-wrap:balance; }
.signin[data-mode="hold"] .signin-h { font-size:clamp(22px, 2.4vw, 26px); }
/* 10 November 2026: a patient account sees one screen in place of the app: on the app's own ground, the column alone, centred, with no
   panel beside it and no card around the words */
.signin[data-mode="patient"] { background:var(--s-0); }
.signin[data-mode="patient"] .signin-side { display:none; }
.signin[data-mode="patient"] .signin-in { background:none; border:0; box-shadow:none; text-align:center; }
.signin[data-mode="patient"] .signin-brand { display:flex; justify-content:center; }
.signin-note { margin-top:14px; font-size:15px; line-height:1.5; color:var(--t-500); text-wrap:balance; }
.signin[data-mode="patient"] .signin-form { margin-top:34px; }
.signin[data-mode="patient"] .signin-alt { align-items:center; margin-top:10px; padding-top:0; border-top:0; }
.signin[data-mode="patient"] .signin-out { align-self:center; }
/* the heading takes the focus when this screen opens, so it is read first; it is not a control and shows no ring */
.signin-h:focus { outline:none; }
/* Continue with Google first, then the email way (round 283) */
.signin-sso { margin-top:28px; }
.signin-google { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:52px; border-radius:14px; border:1.5px solid rgba(var(--op-line),.12); background:var(--s-1); color:var(--t-100); font:inherit; font-size:16.5px; font-weight:600; cursor:pointer; transition:background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.signin-google i { font-size:21px; }
.signin-google:hover { background:var(--s-3); border-color:rgba(var(--op-line),.18); }
.signin-google:active { transform:scale(.98); }
.signin-google.busy { opacity:.6; pointer-events:none; }
.signin-link { margin-top:10px; }   /* the sign-in link by email, under Google (3 Nov 2026) */
.signin-google:focus-visible { outline:2px solid var(--color-brand); outline-offset:3px; }
.signin-form { display:flex; flex-direction:column; gap:16px; margin-top:22px; }
.signin .cn-field span { display:block; margin:0 0 7px 2px; font-size:11.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--t-500); }
.signin .cn-field input, .signin .cn-field select { width:100%; height:52px; padding:0 16px; border-radius:12px; font:inherit; font-size:16.5px; color:var(--t-100); background:var(--s-3); border:1.5px solid transparent; outline:none; transition:border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast); }
.signin .cn-field input::placeholder { color:var(--t-600); }
.signin .cn-field input:focus, .signin .cn-field select:focus { border-color:var(--color-brand); background:var(--s-1); box-shadow:0 0 0 4px color-mix(in srgb, var(--color-brand) 12%, transparent); }
html.op-dark .signin .cn-field input:focus, html.op-dark .signin .cn-field select:focus { background:var(--s-2); }
.signin-help { display:block; margin:7px 0 0 2px; font-size:13.5px; line-height:1.45; color:var(--t-500); }
.signin-pass { position:relative; }
.signin-pass .cn-field input { padding-right:56px; }
.signin-eye { position:absolute; right:4px; bottom:4px; display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:10px; background:transparent; color:var(--t-400); font-size:20px; cursor:pointer; }
.signin-eye:hover { color:var(--t-100); background:rgba(var(--op-line),.05); }
.signin-forgot { align-self:flex-end; margin:-8px 0 0; min-height:36px; padding:0 2px; border:0; background:none; font:inherit; font-size:14.5px; color:var(--t-400); cursor:pointer; text-decoration:underline; text-underline-offset:3px; text-decoration-color:transparent; transition:color var(--dur-fast), text-decoration-color var(--dur-fast); }
.signin-forgot:hover { color:var(--color-brand); text-decoration-color:currentColor; }
.signin-check { display:flex; align-items:flex-start; gap:10px; margin:0; font-size:15px; line-height:1.45; color:var(--t-300); cursor:pointer; }
.signin-check input { flex:none; width:20px; height:20px; margin:2px 0 0; accent-color:var(--color-brand); cursor:pointer; }
.signin-msg { margin:-4px 0 0; font-size:15px; line-height:1.45; color:var(--sem-red); }
.signin-msg.ok { color:var(--sem-green); }
.signin-msg:empty { display:none; }
.signin .actions { margin-top:6px; }
.signin .actions .primary { width:100%; height:56px; font-size:17.5px; justify-content:center; }
.signin .primary.busy { opacity:.7; pointer-events:none; }
.signin-alt { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.signin-alt-btn { display:flex; align-items:center; justify-content:center; width:100%; min-height:52px; padding:0 18px; border-radius:16px; border:1.5px solid rgba(var(--op-line),.12); background:var(--s-1); font:inherit; font-size:16.5px; font-weight:600; color:var(--t-100); cursor:pointer; transition:background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.signin-alt-btn:hover { background:var(--s-3); border-color:rgba(var(--op-line),.18); }
.signin-alt-btn:active { transform:scale(.98); }
.signin-alt-btn:focus-visible { outline:2px solid var(--color-brand); outline-offset:3px; }
/* round 296: on the hold of a signed-in account the email is the account's, shown as a fixed field; Sign out is the quiet way out of the question or the hold */
.signin-fixed b { display:flex; align-items:center; min-height:52px; padding:0 16px; border-radius:12px; background:var(--s-3); font-size:16.5px; font-weight:500; color:var(--t-100); overflow-wrap:anywhere; }
.signin-out { align-self:center; min-height:44px; padding:0 10px; border:0; background:none; font:inherit; font-size:14.5px; color:var(--t-400); cursor:pointer; text-decoration:underline; text-underline-offset:3px; text-decoration-color:transparent; transition:color var(--dur-fast), text-decoration-color var(--dur-fast); }
.signin-out:hover { color:var(--color-brand); text-decoration-color:currentColor; }
.signin-out:focus-visible { outline:2px solid var(--color-brand); outline-offset:3px; border-radius:8px; }
/* the right half: a still of the product, tinted with the brand at the foot, and the corner card */
.signin-side { position:sticky; top:20px; align-self:start; height:calc(100dvh - 40px); min-height:520px; border-radius:20px; overflow:hidden; background:color-mix(in srgb, var(--color-brand) 30%, var(--s-0)); animation:rise 700ms var(--ease-out) 80ms both; }
.signin-side::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, color-mix(in srgb, var(--color-brand) 8%, transparent) 0%, transparent 42%, color-mix(in srgb, var(--color-brand) 60%, #16092E) 100%); }
/* round 280: the same screen says the work is on its way the first time a browser opens it */
.signin-wait { display:none; height:4px; margin-top:26px; border-radius:99px; background:rgba(var(--op-line),.08); overflow:hidden; }
.signin-wait::after { content:""; display:block; width:40%; height:100%; border-radius:99px; background:var(--brand-grad); animation:signin-wait 1.4s var(--ease-in-out) infinite alternate; }
@keyframes signin-wait { from { translate:-40% 0; } to { translate:250% 0; } }
.signin[data-mode="sync"] .signin-form, .signin[data-mode="sync"] .signin-alt, .signin[data-mode="sync"] .signin-sso { display:none; }
.signin[data-mode="sync"] .signin-wait { display:block; }
body.signin-on .askbtn, body.signin-on .askpill { visibility:hidden; }
.signin-row .mini { margin-left:auto; flex:none; }
html.calm .signin-in, html.calm .signin-side { animation:none; }
html.calm .signin-wait::after { animation-play-state:paused !important; }
@media (max-width: 760px) {
  .signin { grid-template-columns:1fr; gap:0; padding:12px; }
  .signin-side { display:none; }
  .signin-in { min-height:calc(100dvh - 24px); padding:32px 24px; }
  .signin-brand { margin-bottom:26px; }
}

/* ── the doctor's Home (round 284): a plain screen like the library, one primary action ── */
.home { width:min(1080px, 100%); margin:0 auto; padding-top:calc(var(--tb-h) + 34px); text-align:left; }   /* the page scrolls in the library's plain mood; the top bar sits over its first 56px */
.home-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px 24px; flex-wrap:wrap; }
.home-head .q { text-align:left; }
.home-head .sub { margin:10px 0 0; text-align:left; }
.home-make { flex:none; gap:10px; }
.home-tiles { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; margin-top:30px; }
.home-tile { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-height:156px; padding:18px 18px 16px; border-radius:18px; border:1px solid rgba(var(--op-line),.08); background:var(--s-1); box-shadow:0 1px 2px rgba(0,0,0,.04); color:var(--t-100); font:inherit; text-align:left; text-decoration:none; }
a.home-tile, button.home-tile { cursor:pointer; transition:border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
a.home-tile:hover, button.home-tile:hover { border-color:rgba(var(--op-accent-rgb),.35); }
a.home-tile:active, button.home-tile:active { transform:scale(.99); }
.home-tile:focus-visible, .home-card:focus-visible, .home-now:focus-visible { outline:2px solid var(--color-brand); outline-offset:3px; }
.home-k { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--t-500); }
.home-k i { font-size:18px; color:var(--color-brand); }
.home-tile strong { font-size:19px; letter-spacing:-.01em; }
.home-tile small { font-size:15px; line-height:1.45; color:var(--t-300); }
.home-tile small.home-soft { margin-top:auto; font-size:13.5px; color:var(--t-500); }
.home-bar { display:block; width:100%; height:8px; margin:4px 0 2px; border-radius:99px; background:rgba(var(--op-line),.08); overflow:hidden; }
.home-bar i { display:block; height:100%; width:0; border-radius:99px; background:var(--brand-grad); transition:width var(--dur-slow) var(--ease-out); }
/* round 290: the plan tile's banner, a payment that failed or a plan that paused */
.home-banner { grid-column:1 / -1; order:10; display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:14px; font-size:15px; line-height:1.45; color:var(--t-100); background:color-mix(in srgb, var(--sem-amber) 12%, transparent); border:1px solid color-mix(in srgb, var(--sem-amber) 32%, transparent); }
.home-banner[data-kind="paused"] { background:color-mix(in srgb, var(--sem-red) 8%, transparent); border-color:color-mix(in srgb, var(--sem-red) 28%, transparent); }
.home-banner i { font-size:22px; color:var(--sem-amber); flex:none; }
.home-banner[data-kind="paused"] i { color:var(--sem-red); }
.home-banner span { flex:1; }
.home-banner .tiny { margin:0; flex:none; }
@media (max-width: 560px) { .home-banner { flex-wrap:wrap; } .home-banner .tiny { width:100%; justify-content:center; } }
.home-link { display:inline-flex; align-items:center; gap:6px; margin-top:auto; min-height:36px; font-size:15px; font-weight:600; color:var(--color-brand); text-decoration:none; }
.home-link:hover { text-decoration:underline; text-underline-offset:3px; }
.home-sec { margin-top:30px; }
.home-sec h2 { margin:0 0 12px; font-size:18px; letter-spacing:-.01em; }
.home-sec-h { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.home-sec-h h2 { margin:0; }
.home-sec-h + .home-grid { margin-top:12px; }
#homeNow { display:flex; flex-direction:column; gap:8px; }
.home-now { display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:10px 14px; border-radius:14px; border:1px solid rgba(var(--op-accent-rgb),.22); background:color-mix(in srgb, var(--color-brand) 5%, var(--s-1)); color:var(--t-100); font:inherit; text-align:left; cursor:pointer; }
.home-now.quiet { cursor:default; border-color:rgba(var(--op-line),.08); background:var(--s-1); }
.home-now > i:first-child { font-size:20px; color:var(--color-brand); }
.home-now span { flex:1; min-width:0; }
.home-now b { display:block; font-size:15.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-now small { display:block; font-size:13.5px; color:var(--t-400); }
.home-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 200px)); gap:16px; }
.home-card { display:flex; flex-direction:column; gap:7px; padding:0; border:0; background:none; color:var(--t-100); font:inherit; text-align:left; cursor:pointer; }
.home-art { display:block; aspect-ratio:4 / 5; border-radius:14px; overflow:hidden; background:var(--s-3); }
.home-art img { display:block; width:100%; height:100%; object-fit:cover; transition:transform var(--dur-base) var(--ease-out); }
@media (hover:hover) and (pointer:fine) { .home-card:hover .home-art img { transform:scale(1.03); } }
.home-t { font-size:15.5px; font-weight:600; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.home-st { font-size:13.5px; color:var(--t-500); }
.home-st[data-st="draft"] { color:var(--sem-amber); }
.home-st[data-st="ok"], .home-st[data-st="shared"], .home-st[data-st="page"] { color:var(--sem-green); }
.home-empty { grid-column:1 / -1; margin:0; padding:28px; border-radius:16px; border:1px dashed rgba(var(--op-line),.16); font-size:16px; color:var(--t-400); text-align:center; }
/* the deck's sections (round 292): the empty attention line, the prepare box with its button, the first Home's suggestion, the profile tile first in its row */
.home-none { margin:0; padding:16px 18px; border-radius:14px; border:1px dashed rgba(var(--op-line),.16); font-size:15px; color:var(--t-400); }
.home-ask { display:flex; align-items:center; gap:10px; }
.home-ask textarea { flex:1; min-width:0; min-height:60px; padding:14px 16px; border-radius:16px; border:1px solid rgba(var(--op-line),.14); background:var(--s-0); font:inherit; font-size:16px; line-height:1.4; color:var(--t-100); resize:none; }
.home-ask textarea::placeholder { color:var(--t-500); }
.home-ask textarea:focus { outline:none; border-color:var(--color-brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--color-brand) 18%, transparent); }
.home-sug { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.home-profile .home-tiles { margin-top:0; }
.home-profile #homeProfile { order:-1; }
@media (max-width: 560px) { .home-ask { flex-direction:column; align-items:stretch; } .home-ask textarea { min-height:96px; } }   /* the placeholder runs to three lines on a phone */
@media (max-width: 900px) { .home-tiles { grid-template-columns:1fr; } .home-tile { min-height:0; } .home-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } .home { padding-top:calc(var(--tb-h) + 24px); } }
@media (max-width: 560px) { .home-make { width:100%; justify-content:center; } }
@media (prefers-reduced-motion: reduce) { .home-bar i, .home-art img { transition:none; } }

/* ── round 297: the library as a clickable mockup until the archive connects in October ── */
.mock-pill { display:inline-flex; align-items:center; gap:8px; margin:0 0 14px; padding:0 12px; height:34px; border-radius:99px; font-size:13.5px; font-weight:600; line-height:1; color:var(--t-300); background:rgba(var(--op-line),.05); border:1px solid rgba(var(--op-line),.1); }
.mock-pill i { font-size:16px; color:var(--t-500); }
.ccard-w { position:relative; display:flex; flex-direction:column; min-width:0; }
.ccard-w .ccard { width:100%; }
.ccard-pick { align-self:flex-start; display:inline-flex; align-items:center; gap:6px; min-height:44px; margin:0 0 0 -8px; padding:0 10px 0 8px; border:0; border-radius:10px; background:transparent; font:inherit; font-size:13.5px; font-weight:600; color:var(--t-400); cursor:pointer; transition:color var(--dur-fast), background-color var(--dur-fast); }
.ccard-pick i { font-size:15px; }
.ccard-pick:hover { color:var(--t-100); background:rgba(var(--op-line),.05); }
.ccard-pick:focus-visible { outline:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--color-brand) 45%, transparent); }
.ccard-pick[aria-pressed="true"], .asset-pick[aria-pressed="true"] { color:var(--color-brand); }
.asset-pick[aria-pressed="true"] { border-color:color-mix(in srgb, var(--color-brand) 55%, transparent); background:color-mix(in srgb, var(--color-brand) 7%, transparent); }
.ccard-views, .lib-views { color:var(--t-400); font-variant-numeric:tabular-nums; }
.lib-sample, .sample-tag { font-style:normal; font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; padding:2px 6px; border-radius:6px; color:var(--t-500); border:1px solid rgba(var(--op-line),.14); vertical-align:middle; }
.sample-tag { margin-left:4px; padding:1px 5px; }
/* A3 (26 October 2026): every sample item says so. The catalogue is a generated archive: real specialties and conditions, invented pieces */
.ccard-sample { position:absolute; top:8px; left:8px; margin:0; padding:2px 8px; border-radius:999px; background:rgba(0,0,0,.55); color:#fff; font-size:10px; letter-spacing:.06em; text-transform:uppercase; z-index:2; }
.asset-sample { vertical-align:middle; font-size:12px; }
.check-sample { position:absolute; top:10px; left:10px; margin:0; padding:2px 8px; border-radius:999px; background:rgba(0,0,0,.55); color:#fff; font-size:10px; letter-spacing:.06em; text-transform:uppercase; z-index:2; }
@media (prefers-reduced-motion: reduce) { .ccard-pick { transition:none; } }
/* ═══════════════════════════════════════════════════════════════════════════
   round 298: one calm system (24 September 2026). The plan, the tokens and the reason for every decision:
   docs/DESIGN-SWEEP-2026-09-24.md. The tokens live in :root at the top of guided.css. This block wins on every
   rule it repeats; the older rules above stay for the pieces they still describe.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── the ground: plain, no field, no clearing, no blur anywhere ── */
#field, #stage::before { display:none !important; }
body, html.calm body, body[data-mood="library"] { background:var(--s-0); }
* { -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }

/* ── type: the scale ── */
body { font-size:var(--fs-body); line-height:1.5; }
.q { font-size:var(--fs-display); font-weight:600; letter-spacing:-.02em; line-height:1.12; }
.sub { margin-top:var(--sp-3); font-size:var(--fs-body); line-height:1.5; color:var(--t-400); max-width:var(--measure); }
.hint { margin-top:var(--sp-4); font-size:var(--fs-small); line-height:1.5; color:var(--t-500); max-width:var(--measure); }
.hint b { color:var(--t-300); }
.sub.now { color:var(--t-100); font-weight:500; }
/* the labels that were mono uppercase at 10 to 11 px: sans, 12 px, sentence case, a little spacing */
.menu-t, .om-k, .oa-t, .hub-t, .pr-t, .words-t, .drop-d, .ws-k, .edit-k, .plan-body .k, .cn-plat-t, .cn-scopes-t, .rc-cell small, .starterlist .lab, .pl-k, .pl-now-t small, .oms-t, .oms-lab, .setsec[data-sec="keys"] .kstate, .lib-month, .rc-id, .cn-asks li small, .dchip small, .st, .pipe-t p small, .plan-lines li b, .cat-n em, .ws-left, .ws-join b { font-family:var(--font-sans); font-size:var(--fs-caption); font-weight:600; letter-spacing:.02em; text-transform:none; color:var(--t-500); }
.menu-t { margin:var(--sp-3) var(--sp-2) var(--sp-1); }
/* the 12 px floor: nothing a doctor reads is smaller */
.phone-ai, .phone-seal, .phone-wa, .phone-mark, .phone-cap, .cam-guide, .cam-rec, .card .dur, .card .lang, .lang-sw button, .dock-btn small, .kind-ui.intro small, .ch-badge, .ch-reco, .ch-need, .tb-badge, .tb-avatar, .file small, .lchip small, .asrow .t small, .yk-t small, .ccard-dur, .ccard-lang, .signin .cn-field span, .cn-fake, .tj-t small, .drawer-foot small, .av-in, .av-demo, .avc-sample, .rc-chip, .vs-note, .pr-hint, .shot figcaption b, .shot figcaption small, .oms-num, .words .script li b, .om-src, .rec-when, .intro small, .outro small, .oftab em, .rc-approval small, .rc-sub, .am-id small, .am-id code, .alink-t code, .capmenu-note, .cm-count, .setfoot, .how-foot, .rec-foot, .drawer-foot { font-size:var(--fs-caption); }
html[data-text="xl"] [data-step="check"] .hint, html[data-text="xl"] .alt small, .hint small { font-size:var(--fs-small); }
.words-t small, .tiny, .mini, .chip, .kstate, .setnote, .you-note, .share-note, .row small, .card small, .ch-d, .home-k, .home-st, .home-now small, .home-tile small, .home-tile small.home-soft, .tile-k, .tile-d, .om-time, .om-meta, .dest-head small, .patient-head small, .patient-wait, .patient-wait small, .approval, .ap-t small, .lib-titles small, .lm-text, .setp, .toast small, .asrow .t, .file .f-s, .file .f-h, .tips li, .cn-field > span, .signin-help, .cn-note, .cn-sub, .standin, .changed, .change-hint, .review-meta .meta-line, .ts-note, .ws-join, .ws-list li, .ws-phones li, .eng small, .av-body small, .vtext small, .hub-info small, .om-sub, .oms-cap, .oms-ask-t, .oms-n, .lib-none, .lib-empty-big small, .cat-none small, .ccard small, .rel small, .asset-desc, .am-doc small, .am-fact small, .am-rights small, .alink-t small, .af-h, .tj-none, .ask-head small, .ask-m[data-who="act"], .ask-heard, .prompter > span, .timeline li, .stages, .timeleft small, .cn-acct small, .acct span small, .pl-sub, .pl-per, .pl-price small, .pl-lines li, .pl-foot, .pl-renew, .pl-meter-t, .pl-faq details p, .pl-bill-note, .pl-sheet-fine { font-size:var(--fs-small); }
.row strong, .card strong, .ch-t, .home-now b, .home-t, .tile-v, .dest-head strong, .patient-head b, .ap-t b, .toast, .yk-t b, .file .f-t b, .eng-n, .av-name, .vtext b, .hub-info b, .ts-name, .ws-st > b, .lib-titles h2, .kmenu button, .oms .oms-l, .osheet .oms .oms-l, .words .script li, .vs-read, .om-script li, .opt b, .ccard b, .rel b, .alink-t b, .am-doc b, .am-fact b, .am-rights b, .ask-m, .pref-t strong, .cn-acct b, .prompter > b, .ask-head b, .drop-t, .facts li, .edit-d, .how-short li, .pl-card h2, .pl-btn, .pl-bill-intro, .pl-sheet-line, .pl-done p, .pl-health strong, .pl-faq summary { font-size:var(--fs-body); }
.lm :is(h2, h3), .osheet-head h2, .how-head h3, .kpane-top h2, .cn h3, .edit-t, .om-name, .libinfo-t, .asset-h, .rec-title, .rc-title, .pl-done h2, .pl-faq h2, .pl-now-t strong, .home-sec h2, .asset-rel :is(h2, h3), .pl-billing h2 { font-size:var(--fs-section); font-weight:600; letter-spacing:-.01em; }

/* ── motion: two durations, one ease, a 4 px rise, nothing bounces or pulses ── */
@keyframes rise { from { opacity:0; translate:0 4px; } to { opacity:1; translate:0 0; } }
@keyframes settle { from { transform:scale(.98); opacity:.6; } to { transform:none; opacity:1; } }
.tray[data-busy="1"] i, .ta-ph::after, .askbtn[data-state="listening"] .askbtn-ring, .askpill[data-state="listening"] .askpill-dot, .askpill[data-state="thinking"] .askpill-dot, .askpill[data-state="speaking"] .askpill-dot, .timeline li[data-on] i::after, .ccard.just .ccard-frame, .cn-dot, .facts li.in i, .lib-search button, .cam-count { animation:none; }
.ta-ph::after { display:none; }
.timeline li[data-on] i::after { scale:1; opacity:1; }
.facts li i { transform:none; }
.ccard.just .ccard-frame { box-shadow:0 0 0 2px var(--accent); }
.work-shimmer { opacity:.5; }
.phone-ok { animation:settle var(--dur-fast) var(--ease-out) both; }
.patient { animation:rise var(--dur-base) var(--ease-out) both; }
.pl-main > *, .pl-card.pl-in, .signin-in, .signin-side { animation-duration:var(--dur-base); }
.pl-main > :nth-child(n+2) { animation-delay:30ms; } .pl-main > :nth-child(n+4) { animation-delay:60ms; } .pl-main > :nth-child(n+8) { animation-delay:90ms; } .pl-main > :nth-child(n+10) { animation-delay:120ms; }
.signin-side { animation-delay:40ms; }
/* hover is a 1 to 2 px lift on cards and tiles, and nothing else */
.drop.over, .choice.previewing .ch-art img { transform:none; scale:none; filter:none; } @media (hover:hover) and (pointer:fine) { .tiny:hover, .ghost:hover, .dose-aurora:hover, .drop:hover, .row:hover, .hub-row:hover, .vrow:hover, .setsec:is([data-sec="models"],[data-sec="voice"]) .eng:hover, .starters button:hover, .starterlist button:hover, .dchip:hover, .phone-expand:hover, .kback:hover, .askbtn:hover, .askpill:hover, .am-more:hover, .ws-open:hover, .vp-btn:hover, .vplay:hover, .strip-item:hover, .lchip:hover, .primary:hover, .mini:hover, .alt:hover, .hub-card:hover, .am-chip:not(.static):hover, .pl-card:hover, .asset-hero:not([data-playing="1"]):hover .asset-still, .ccard:hover .ccard-frame img:not(.asset-bg), .rel:hover .rel-frame img:not(.asset-bg), .home-card:hover .home-art img { transform:none; scale:none; filter:none; } }
@media (hover:hover) and (pointer:fine) { .alink:hover > i { transform:none; } }
.card.menu-open .ca { transform:translateY(-2px); } @media (hover:hover) and (pointer:fine) { .choice:hover, a.home-tile:hover, button.home-tile:hover, .om-tile:hover, .card:hover .ca, .ccard:hover .ccard-frame, .cast-one:hover, .yk:hover, .alt:hover, .hub-card:hover, .rel:hover .rel-frame, .home-card:hover .home-art, .pl-card:hover, .opt:hover { transform:translateY(-2px); } }
.choice:hover, .card:hover .ca, .card.menu-open .ca, .ccard:hover .ccard-frame, .alt:hover, .hub-card:hover, .om-tile:hover, .pl-card:hover { box-shadow:none; }
.choice, a.home-tile, button.home-tile, .om-tile, .card .ca, .ccard-frame, .cast-one, .yk, .alt, .hub-card, .rel-frame, .home-art, .pl-card, .opt { transition:transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), background-color var(--dur-fast); }
.choice:active { transform:translateY(-1px) scale(.99); }
.row:active { transform:scale(.99); }
.primary:active, .ghost:active, .tb-btn:active, .tab-btn:active, .alt:active, .lchip:active, .dchip:active, .dest-head:active, .mini:active, .send:active, .dock-btn:active, .kb:active, .lib-seg button:active, .seg3 button:active, .x:active, .dose-aurora:active { transform:scale(.96); }
.orb-doc, .orb-img, .facts li { will-change:auto; }

/* ── one accent: the primary action, links and a selected state. Icons and their tints are neutral ── */
.dose-aurora::before, .dose-aurora::after { display:none; content:none; animation:none; }
.primary { height:52px; padding:0 var(--sp-6); border-radius:var(--r-2); font-size:var(--fs-body); font-weight:600; gap:var(--sp-2); color:#fff; background:var(--accent); box-shadow:none; transition:background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
html.op-dark .primary { color:#0F0E14; }
.primary:hover { filter:none; background:color-mix(in srgb, var(--accent) 86%, #000); }
html.op-dark .primary:hover { background:color-mix(in srgb, var(--accent) 86%, #fff); }
.primary:disabled { opacity:.4; }
.primary i { font-size:18px; }
.ghost { height:52px; padding:0 var(--sp-4); border-radius:var(--r-2); font-size:var(--fs-body); font-weight:500; color:var(--t-100); background:var(--s-1); border:1px solid var(--line-strong); gap:var(--sp-2); }
.ghost:hover { background:var(--s-3); border-color:var(--line-strong); }
.ghost i, .tiny i, .mini i, .row > i:first-child, .tb-btn i, .home-k i, .om-time i, .om-src i, .approval i, .done-line i, .dest-head > i:first-child, .drop-ico, .lm-ico, .patient-head > i, .tips li i, .facts li i, .firstrun li i, .how-short li i, .pipe-ico, .yk-ic, .tile-ic, .asrow .ic, .as-choose .ic, .starterlist button .ic, .lr-ic, .kmenu button i, .setnav .row > .ph-caret-right, .cn-note i, .live-cost i, .om-get i, .review-meta .meta-line i, .review-dub > i, .rec-kind i, .rc-sub i, .alt > i, .hub-t i, .pr-t i, .ws-n, .am-chip i, .alink .tile-ic, .setsec[data-sec="accounts"] .menu-t i, .vs-orb i, .home-now > i:first-child, .ts-making i, .lib-drafts i, .pl-kicker, .how-foot i, .oms-t i, .oms-cap i, .oms-num, .oms-picrow .oms-pic > i, .edit-k, .plan-body .k, .cn-dose, .cn-end-dose { color:var(--t-400); }
.drop-ico, .lm-ico, .yk-ic, .tile-ic, .asrow .ic, .as-choose .ic, .starterlist button .ic, .lr-ic, .pipe-ico, .dest-head > i:first-child, .vs-orb, .av-empty-ic, .ws-n, .cn-dose, .cn-end-dose, .pl-kicker { background:var(--s-3); color:var(--t-300); }
.toast i { color:var(--sem-green); }
.lm.danger .lm-ico { color:var(--sem-red); background:color-mix(in srgb, var(--sem-red) 10%, transparent); }
.link, .home-link, .tile-a, .tj-go, .tj-more, .ws-link, .ws-join a, .pl-alt, .pl-done-moves a, .toast-act { color:var(--accent); }
.tb-btn:hover i, .row[aria-current="true"] strong, .lchip[aria-pressed="true"]::before, .cat-dd[data-set="true"] span { color:var(--accent); }
.tb-btn[aria-current="true"] { background:var(--s-3); color:var(--t-100); }
.tb-btn[aria-current="true"] i { color:var(--t-100); }
.tab-btn[aria-current="true"] { color:var(--accent); }
.tiny { margin-top:var(--sp-3); padding:0 var(--sp-3); border-radius:var(--r-2); font-size:var(--fs-small); font-weight:500; color:var(--t-400); background:transparent; border:1px solid transparent; }
.tiny:hover { color:var(--t-100); background:var(--s-3); }
.mini { height:44px; padding:0 var(--sp-4); border-radius:var(--r-2); font-size:var(--fs-small); font-weight:500; color:var(--t-200); background:var(--s-3); border:1px solid transparent; }
.mini:hover { color:var(--t-100); background:color-mix(in srgb, var(--s-3) 60%, var(--line-strong)); }
.chip { height:32px; border-radius:var(--r-1); background:var(--s-3); border:0; }
.x { flex-shrink:0; min-width:44px; min-height:44px; border-radius:var(--r-2); color:var(--t-400); }
.x:hover { background:var(--s-3); color:var(--t-100); }
.sw { background:var(--line-strong); }
.sw[data-on="1"] { background:var(--accent); }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:var(--r-1); }

/* ── surfaces: a hairline for a card, one shadow for a raised surface, one radius scale ── */
.choice, .offer-main, .sharebox, .voice-line, .thumb, .shot img, .linkrow, .home-tile, .pl-card, .lib-pill, .pseg-thumb, .seg3 button[aria-checked="true"], .lib-search, .lib-sort, .om-tile, .hub-card, .alt, .yk, .asrow, .ycard, .vs-read, .drop, .dest-card, .patient, .rec-card, .rc-hero, .av, .vrow, .eng, .opt, .oftabs, .oftab[aria-selected="true"], .timeline, .facts li, .tips li, .firstrun li, .starters button, .starterlist button, .cn-acct, .file, .change-row, .am-chip, .acard, .ws-num, .ws-phones, .ws-code span, .keycard, .cat-dd, .home-now, .home-banner, .pl-now, .pl-billing, .pl-done, .pl-health, .pl-banner, .lib-drafts, .review-dub, .standin, .om-script, .oms li, .pl-btn, .ws-copy, .ws-renew, .tj-x, .rec-copy, .signin-google, .signin-alt-btn { box-shadow:none; }
.choice, .offer-main, .sharebox, .voice-line, .home-tile, .pl-card, .om-tile, .hub-card, .alt, .yk, .ycard, .vs-read, .drop, .dest-card, .patient, .rec-card, .rc-hero, .av, .cn-acct, .file, .acard, .home-now, .lib-drafts, .review-dub, .om-script, .oms li, .pl-now, .pl-billing, .pl-done, .pl-health, .ws-phones, .ws-num, .keycard, .setsec[data-sec="keys"] .cn-field { border-radius:var(--r-3); background:var(--s-1); border:1px solid var(--line); }
.choice, .offer-main, .sharebox, .home-tile, .om-tile, .alt, .yk, .dest-card, .patient, .drop { padding:var(--sp-4); }
.you, .kpane, .osheet, .lm, .how, .cn, .edit-panel, .plan-panel, .ask, .wsheet, .tsheet, .viewer-stage, .phone, .cam, .phone-play, .signin-in, .signin-side { border-radius:var(--r-4); }
.kmenu, .catmenu, .toast, .traylist, .capmenu, .askpill, .lm-input, .cn-field input, .home-ask textarea, .oms-in, .oms-ask input, .edit-ta, .ask-foot input, .lib-search, .lib-sort, .cat-dd, .ws-staff, .signin .cn-field input, .signin .cn-field select { border-radius:var(--r-2); }
.kmenu, .catmenu, .toast, .traylist, .capmenu, .you, .kpane, .osheet, .lm, .how, .cn, .edit-panel, .plan-panel, .ask, .askpill, .edit-from, .pl-toast { background:var(--s-1); border:1px solid var(--line); box-shadow:var(--shadow); }
.you::before, .kpane::before { display:none; }
.phone, .cam { border:1px solid var(--line); box-shadow:var(--shadow); }
.viewer-stage { box-shadow:var(--shadow); }
.lm-scrim, .cn-scrim, .plan-scrim, .scrim { background:rgba(27,25,38,.4); }
.viewer-scrim { background:rgba(15,14,20,.88); }
.seg3, .lib-seg, .pseg, .ws-role, .lang-sw, .oftabs { background:var(--s-3); border:0; border-radius:var(--r-2); }
.seg3 button[aria-checked="true"], .lib-pill, .pseg-thumb, .pseg button[aria-selected="true"], .ws-role button[aria-pressed="true"], .lang-sw button[aria-selected="true"], .oftab[aria-selected="true"] { background:var(--s-1); border-radius:var(--r-1); }
.cn-field > span { margin-bottom:6px; font-size:var(--fs-caption); font-weight:600; letter-spacing:.02em; color:var(--t-500); }
.cn-field input, .lm-input, .home-ask textarea, .oms-in, .oms-ask input, .edit-ta, .ask-foot input, .ws-staff { background:var(--s-3); border:1px solid transparent; color:var(--t-100); font-size:var(--fs-body); }
.cn-field input:focus, .lm-input:focus, .home-ask textarea:focus, .oms-in:focus, .oms-ask input:focus, .edit-ta:focus, .ask-foot input:focus, .ws-staff:focus { background:var(--s-1); border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.lib-search, .lib-sort, .cat-dd { background:var(--s-1); border:1px solid var(--line-strong); }

/* ── the shell: a plain top bar with a hairline, quiet tabs ── */
.topbar { background:var(--s-1); border-bottom:1px solid var(--line); padding:0 var(--sp-4) 0 var(--sp-6); }
body[data-mood="library"] .topbar { background:var(--s-1); }
.tb-brand { font-size:20px; }
.tb-btn { font-size:var(--fs-small); font-weight:600; color:var(--t-300); gap:6px; padding:0 var(--sp-3); border-radius:var(--r-2); }
.tb-btn i { font-size:18px; color:var(--t-400); }
.tb-btn:hover { background:var(--s-3); }
.tb-avatar { width:26px; height:26px; border-radius:8px; font-size:var(--fs-caption); background:var(--accent); }
.tb-badge { min-width:20px; height:20px; font-family:var(--font-sans); font-size:var(--fs-caption); background:var(--s-3); color:var(--t-200); }
.tabbar { background:var(--s-1); border-top:1px solid var(--line); }
.tab-btn { font-size:var(--fs-caption); font-weight:600; }
.lib-top::before { background:var(--s-0); }
.lib-top::after { background:var(--line); }
#stage { padding:calc(var(--tb-h) + var(--sp-8)) var(--sp-6) var(--sp-6); }
.step { padding:0 0 var(--sp-4); }
.actions { gap:var(--sp-3); margin-top:var(--sp-6); }

/* ── Home: the greeting, then sections with a 48 px rhythm and no boxes; one composed field; tiles with one line ── */
.home { padding-top:calc(var(--tb-h) + var(--sp-12)); }
#homeSub { display:none; }   /* it counted the drafts the first section already lists */
.home-sec { margin-top:var(--sp-12); }
.home-sec h2 { margin:0 0 var(--sp-4); }
.home-profile .home-tiles, .home-sec-h + .home-grid { margin-top:var(--sp-4); }
#homeNow { gap:var(--sp-2); }
.home-now { min-height:60px; padding:var(--sp-3) var(--sp-4); border-radius:var(--r-3); border:1px solid var(--line); background:var(--s-1); }
.home-now.quiet { border-color:var(--line); }
.home-now b { font-weight:600; }
.home-none { padding:var(--sp-4); border-radius:var(--r-3); border:1px dashed var(--line-strong); font-size:var(--fs-body); color:var(--t-400); }
.home-sug { gap:var(--sp-2); margin-bottom:var(--sp-2); }
/* the prepare box: the text area and the one action inside one field */
.home-ask { position:relative; display:flex; flex-direction:column; align-items:flex-end; gap:var(--sp-3); padding:var(--sp-3); border-radius:var(--r-3); background:var(--s-1); border:1px solid var(--line-strong); transition:border-color var(--dur-fast), box-shadow var(--dur-fast); }
.home-ask:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.home-ask textarea { width:100%; min-height:72px; padding:var(--sp-2) var(--sp-2) 0; border:0; background:transparent; font-size:var(--fs-body); }
.home-ask textarea:focus { border:0; box-shadow:none; background:transparent; }
.home-make { height:48px; padding:0 var(--sp-4); }
.home-tiles { gap:var(--sp-3); }
.home-tile { min-height:0; gap:var(--sp-1); padding:var(--sp-4); }
.home-tile strong { font-size:18px; font-weight:600; margin-top:2px; }
.home-tile small { color:var(--t-400); }
.home-tile small.home-soft { margin-top:var(--sp-2); }
.home-bar { height:6px; margin:var(--sp-2) 0 var(--sp-1); background:var(--s-3); }
.home-link { margin-top:var(--sp-2); font-size:var(--fs-small); }
.home-grid { gap:var(--sp-4); }
.home-card { gap:var(--sp-2); }
.home-art { border-radius:var(--r-2); }
.home-t { font-size:var(--fs-body); font-weight:600; }
.home-st { font-size:var(--fs-small); }
.home-empty { padding:var(--sp-6); border-radius:var(--r-3); border:1px dashed var(--line-strong); font-size:var(--fs-body); }
#homeLib.tiny { margin:0; color:var(--accent); }
#homeLib.tiny i { display:none; }
#homeLib.tiny:hover { background:transparent; text-decoration:underline; text-underline-offset:3px; }
@media (max-width: 560px) { .home-ask { align-items:stretch; } .home-make { width:100%; } .home { padding-top:calc(var(--tb-h) + var(--sp-6)); } .home-sec { margin-top:var(--sp-8); } }

/* ── Create: one composed input, quiet icon labels and the one action; one quiet line under it; a static tint behind the hero ── */
[data-step="share"] { position:relative; }
[data-step="share"]::before { content:''; position:absolute; left:50%; top:-40px; width:min(760px, 100%); height:340px; translate:-50% 0; pointer-events:none; background:radial-gradient(ellipse 55% 60% at 50% 40%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 72%); }
[data-step="share"] > * { position:relative; }
[data-step="share"] .sub { max-width:40ch; }   /* the one line that says what the box takes; the note under the box carries the size limit and any error */
.sharebox { margin-top:var(--sp-8); width:min(100%, 680px); padding:var(--sp-3) var(--sp-3) var(--sp-2); border:1px solid var(--line-strong); }
.sharebox:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.sharebox textarea, .ta-ph { font-size:18px; line-height:1.45; padding:var(--sp-2) var(--sp-2) 0; }
.ta-ph { left:var(--sp-2); top:var(--sp-2); right:var(--sp-2); }
.sharebox textarea { min-height:72px; }
.sharebar { gap:2px; margin-top:var(--sp-2); padding-top:var(--sp-2); border-top:1px solid var(--line); }
.sharebar .mini, #dictate.send { height:44px; padding:0 var(--sp-3); border-radius:var(--r-2); font-size:var(--fs-small); font-weight:500; color:var(--t-400); background:transparent; border:0; white-space:nowrap; }
.sharebar .mini i, #dictate.send i { font-size:18px; color:var(--t-400); }
.sharebar .mini:hover, #dictate.send:hover { color:var(--t-100); background:var(--s-3); }
#dictate[data-on="1"] { color:#fff; background:var(--accent); }
#dictate[data-on="1"] i { color:#fff; }
#shareGo.send { height:44px; padding:0 var(--sp-4); border-radius:var(--r-2); font-size:var(--fs-small); font-weight:600; }
.share-note { margin-top:var(--sp-3); font-size:var(--fs-small); color:var(--t-500); }
.veil { border-radius:var(--r-3); border:1px dashed var(--accent); background:color-mix(in srgb, var(--accent) 6%, var(--s-1)); font-size:var(--fs-body); }
.file { border-radius:var(--r-2); padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3); }
.file .f-ic { width:36px; height:36px; border-radius:var(--r-1); background:var(--s-3); } .file .f-ic i { color:var(--t-400); font-size:18px; }
.share-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:var(--sp-2) var(--sp-6); margin-top:var(--sp-6); }
.asrow { margin:0; padding:0; gap:var(--sp-2); background:transparent; border:0; }
.asrow .ic { width:32px; height:32px; border-radius:var(--r-1); background:var(--s-3); }
.asrow .t { font-size:var(--fs-small); color:var(--t-300); }
.asrow .t small { display:inline; margin-left:6px; font-size:var(--fs-small); color:var(--t-500); }
.asrow .t small::before { content:'· '; }
.asrow .mini { min-height:44px; padding:0 var(--sp-2); background:transparent; color:var(--accent); font-weight:600; }
.asrow .mini i { display:none; }
.asrow .mini:hover { background:transparent; text-decoration:underline; text-underline-offset:3px; }
.as-choose { border-radius:var(--r-2); border:1px dashed var(--line-strong); background:transparent; padding:var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-2); }
.as-choose .t { font-size:var(--fs-small); } .as-choose .t small { font-size:var(--fs-small); }
.youkit { margin:0; gap:var(--sp-1); }
.yk { grid-template-columns:auto auto; gap:var(--sp-2); min-height:44px; padding:0 var(--sp-2); border:0; border-radius:var(--r-2); background:transparent; }
@media (hover:hover) and (pointer:fine) { .yk:hover { transform:none; background:var(--s-3); border:0; } }
.yk-ic { display:none; }
.yk-t small { display:none; }
.yk-t b { font-size:var(--fs-small); font-weight:600; color:var(--accent); }
.yk > i { order:-1; font-size:16px; color:var(--accent); }
@media (max-height:820px) { .youkit { margin-top:0; } }
@media (max-width:560px) { .sharebar { flex-wrap:wrap; } .sharebar .send { flex:1 1 40%; } .share-foot { flex-direction:column; gap:var(--sp-2); } }

/* ── the welcome wizard, the photo and the voice screens: the sign-in's fields, one line of tips, a plain card to read ── */
.hello-form { gap:var(--sp-4); margin-top:var(--sp-6); }
.hello-form .cn-field input { height:52px; }
[data-step="hello"] .hint { margin-top:var(--sp-4); }
.tips { margin-top:var(--sp-3); gap:var(--sp-1) var(--sp-4); }
.tips li { height:auto; padding:0; border:0; background:transparent; color:var(--t-500); }
.tips li i { font-size:16px; }
.drop { margin-top:var(--sp-6); width:min(100%, 560px); min-height:150px; border:1px dashed var(--line-strong); background:var(--s-1); }
/* pass 3 of the 20 November audit: the hover look only where a pointer hovers; a tap on a touch screen left it on */
.drop.over { border-color:var(--accent); }
@media (hover:hover) and (pointer:fine) { .drop:hover { border-color:var(--accent); } }
.drop-ico { width:48px; height:48px; border-radius:var(--r-2); font-size:24px; }
.drop-d { margin-top:2px; }
.thumb { border-radius:var(--r-2); border:1px solid var(--line); }
[data-step="record"] .sub { margin-top:var(--sp-2); }
.vs-read { padding:var(--sp-4) var(--sp-6); font-size:var(--fs-body); line-height:1.6; }
.vs-orb { width:64px; height:64px; }
.vs-time { font-size:24px; }
.vs-note:empty { display:none; }
[data-step="record"] .rec-btn { border-width:2px; background:var(--s-1); }
.rec-btn i { background:var(--sem-red); box-shadow:none; }
.rec-label { color:var(--t-400); }
.cam { border-radius:var(--r-4); box-shadow:var(--shadow); }
.prompter > b { font-size:22px; font-weight:600; }
.pr-dots i::after { background:var(--accent); }

/* ── presence and the presenters: cards with a picture, a title and one line; a flat tag ── */
[data-step="presence"] .choices { gap:var(--sp-3); margin-top:var(--sp-8); }
[data-step="presence"] .choice { padding:var(--sp-3); gap:var(--sp-2); border-radius:var(--r-3); }
.choice[data-reco] { border-color:var(--accent); box-shadow:none; }
[data-step="presence"] .ch-art { border-radius:var(--r-2); }
.ch-art { background:var(--s-3); }
.ch-badge { border-radius:var(--r-1); font-weight:600; letter-spacing:0; }
.ch-badge i { color:#fff; }
.ch-reco { border-radius:var(--r-1); background:var(--accent); box-shadow:none; letter-spacing:0; }
.ch-need { border-radius:var(--r-1); letter-spacing:0; }
.ch-ghost { color:rgba(27,25,38,.28); font-size:64px; }
.choice.needs-setup .ch-art { background:linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--s-3)), var(--s-3)); }
[data-step="presence"] .ch-t { font-size:var(--fs-body); font-weight:600; }
[data-step="presence"] .ch-d { font-size:var(--fs-small); color:var(--t-400); }
@media (max-width:780px) { .choice .ch-badge { display:none; } .choice .ch-need { left:4px; right:4px; bottom:4px; padding:4px 6px; font-size:var(--fs-caption); line-height:1.25; } .choice .ch-need i { display:none; } .choice .ch-reco { top:6px; right:6px; } }
.cast { gap:var(--sp-3); margin-top:var(--sp-8); }
.cast-one img { border-radius:var(--r-2); border:2px solid transparent; }
.cast-one[aria-pressed="true"] img { border-color:var(--accent); box-shadow:none; }
.cast-one b { font-size:var(--fs-small); }
.cast-one small { margin-top:0; font-size:var(--fs-caption); }
.cast-one .tick { background:var(--accent); }

/* ── the table (offer): one surface with a hairline, tiles with a label, a value and one word to act on ── */
[data-step="offer"] { height:auto; overflow:visible; justify-content:center; }
[data-step="offer"] .q { font-size:var(--fs-display); }
.offer-main { width:min(100%, 960px); margin-top:var(--sp-6); padding:var(--sp-6); gap:var(--sp-4); background:var(--s-1); }
.om-hero { gap:var(--sp-4); }
.om-thumb { width:56px; height:56px; border-radius:var(--r-2); }
.om-sub { font-size:var(--fs-body); }
.om-sub b { font-weight:600; }
.om-tiles { gap:var(--sp-3); }
.om-tile { min-height:0; gap:var(--sp-1); padding:var(--sp-4); }
.om-tile:hover { border-color:var(--line-strong); }
.tile-ic { width:36px; height:36px; border-radius:var(--r-1); font-size:18px; margin-bottom:var(--sp-2); }
.tile-k { margin-top:0; font-size:var(--fs-small); font-weight:500; color:var(--t-500); }
.tile-v { font-size:var(--fs-body); font-weight:600; -webkit-line-clamp:1; }
.om-tile[data-sheet="script"] .tile-v { font-weight:500; }
.tile-d { display:none; }   /* tiles carry one line; the note stays in the DOM, since a check reads its text */
.tile-a { padding-top:var(--sp-2); font-size:var(--fs-small); font-weight:600; }
.tile-a i { font-size:14px; }
[data-step="offer"] .om-foot { padding-top:var(--sp-2); }
.om-foot .primary { height:52px; }
.om-foot .om-time { font-size:var(--fs-small); }
.oftabs { padding:var(--sp-1); }
.oftab { min-height:40px; font-size:var(--fs-small); }
.oftab em { color:var(--accent); background:transparent; padding:0; }
[data-step="offer"] .stepback, .stepback { margin-top:var(--sp-4); }
@media (max-width:900px) { .om-tiles { grid-template-columns:1fr 1fr; } .om-tiles[data-n="4"] { grid-template-columns:1fr 1fr; } .offer-main { padding:var(--sp-4); } }
@media (max-width:560px) { .om-tiles, .om-tiles[data-n="4"] { grid-template-columns:1fr; gap:var(--sp-2); } .om-tile { display:grid; grid-template-columns:36px minmax(0, 1fr) auto; grid-template-rows:auto auto; align-items:center; column-gap:var(--sp-3); row-gap:2px; padding:var(--sp-3); } .om-tile .tile-ic { grid-row:1 / 3; margin:0; } .om-tile .tile-k { grid-column:2; grid-row:1; } .om-tile .tile-v { grid-column:2; grid-row:2; } .om-tile .tile-a { grid-column:3; grid-row:1 / 3; padding:0; margin:0; } .om-hero { align-items:flex-start; } }
@media (max-height:860px) { .offer-main { gap:var(--sp-3); padding:var(--sp-4) var(--sp-6); } .om-foot .primary { height:48px; } }

/* ── the offer sheets, the change request and the lines ── */
.osheet:focus, .osheet:focus-visible, .tsheet:focus, .tsheet:focus-visible, .lm:focus-visible, .how:focus-visible { outline:none; box-shadow:var(--shadow); }
.osheet-head { padding:var(--sp-6) var(--sp-6) var(--sp-3); }
.osheet-body { padding:0 var(--sp-6) var(--sp-3); }
.osheet-foot { padding:var(--sp-3) var(--sp-6) var(--sp-6); border-top:1px solid var(--line); }
.osheet-head p { font-size:var(--fs-small); }
.osheet .oms li { padding:var(--sp-4) 0; border-top:1px solid var(--line); background:transparent; }
.osheet .oms li:first-child { padding-top:var(--sp-2); }
.oms li { background:var(--s-1); border-color:var(--line); }
.oms .oms-edit { min-height:44px; border-radius:var(--r-1); color:var(--t-200); background:var(--s-3); border:0; }
.oms-edit:hover { background:color-mix(in srgb, var(--s-3) 60%, var(--line-strong)); }
.oms-tag { color:var(--t-400); background:var(--s-3); }
.opt { border-radius:var(--r-2); border:1px solid var(--line); background:var(--s-1); }
.opt[aria-checked="true"] { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 6%, var(--s-1)); }
.opt > i { color:var(--t-400); } .opt[aria-checked="true"] > i, .opt .opt-check, .opt em { color:var(--accent); }
.lchip { border-radius:var(--r-1); border:1px solid var(--line-strong); background:var(--s-1); font-weight:500; }
.lchip[aria-pressed="true"] { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 8%, var(--s-1)); }
.edit-panel { padding:var(--sp-6); gap:var(--sp-3); }
.edit-ta { border-radius:var(--r-2); }
.edit-eg button { min-height:44px; border-radius:var(--r-1); background:var(--s-3); border:0; }
.edit-foot .primary, .edit-foot .ghost { height:48px; }

/* ── progress (making): the ring and the time, quiet steps, one line, a text link ── */
.work { gap:var(--sp-4); margin-top:var(--sp-6); }
.orb { width:min(220px, 30vh); height:min(220px, 30vh); }
.orb-img { box-shadow:none; background:var(--s-3); }
.orb-pct { border:1px solid var(--line); background:var(--s-1); font-family:var(--font-sans); font-size:var(--fs-caption); }
.orb-halo { display:none; }
.timeleft b { font-size:40px; font-weight:600; letter-spacing:-.02em; }
.timeline { padding:0; background:transparent; border:0; gap:0; }
.timeline li { font-size:var(--fs-small); gap:var(--sp-2); }
.timeline li i { width:24px; height:24px; border-color:var(--line-strong); }
.timeline li::before { top:12px; background:var(--line); }
.timeline li[data-on] i { border-color:var(--accent); background:var(--s-1); }
.timeline li[data-on] i::after { width:8px; height:8px; }
.timeline li[data-on] { font-weight:600; }
.work .hint { margin-top:0; font-size:var(--fs-small); color:var(--t-500); }
.make-tools { margin-top:0; }
.make-tools .tiny { color:var(--accent); }
.make-tools .tiny i { display:none; }
.facts { margin-top:var(--sp-4); gap:var(--sp-2); }
.facts li { border-radius:var(--r-2); border:1px solid var(--line); background:var(--s-1); font-size:var(--fs-small); }
.facts li i { color:var(--sem-green); }
.orb-doc { background:var(--s-3); color:var(--t-400); }
.orb-doc .scan { background:linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 22%, transparent) 50%, transparent); }

/* ── the review: the phone at the left, the words at reading size on hairlines ── */
.review { gap:var(--sp-8); }
.words .q { margin:0 0 var(--sp-3); font-size:var(--fs-display); }
.words .words-t { margin:0 0 var(--sp-2); font-size:var(--fs-small); color:var(--t-500); font-weight:500; gap:var(--sp-2); }
.words .words-t small { flex-basis:auto; margin:0; font-size:var(--fs-small); color:var(--t-500); }
.words .words-t small::before { content:none; }
.words .script li { padding:var(--sp-3) 0; gap:var(--sp-3); font-size:var(--fs-body); line-height:1.5; color:var(--t-300); border-top:1px solid var(--line); }
.words .script li[data-on] { color:var(--t-100); }
.words .script li[data-on] b { color:var(--accent); }
.words .script li b { width:24px; font-family:var(--font-sans); font-size:var(--fs-caption); font-weight:600; color:var(--t-500); }
.words .script li[data-on]::before { display:none; }
.review-meta .meta-line { font-size:var(--fs-small); color:var(--t-500); }
.words .actions { margin-top:var(--sp-4) !important; gap:var(--sp-2); }
.words .actions .primary, .words .actions .ghost { height:52px; }
.review .review-links { gap:0; margin-top:var(--sp-1); }
.review .review-links .tiny { margin:0; font-size:var(--fs-small); }
.review .review-links .tiny i { display:none; }
.phone-dock { border-radius:var(--r-3); background:rgba(15,14,20,.6); border:1px solid rgba(255,255,255,.14); }
.dock-btn { border-radius:var(--r-2); }
.review-dub { border-radius:var(--r-2); border:1px solid var(--line); background:var(--s-1); }
.standin { border-radius:var(--r-2); }
.change-row { border-radius:var(--r-2); border:1px solid var(--accent); box-shadow:none; }

/* the marks on a video frame: sans, 12 px, on one line, never wider than the frame */
.phone-ai { font-family:var(--font-sans); font-weight:600; letter-spacing:0; text-transform:none; max-width:calc(100% - 20px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-radius:6px; }
.phone-seal, .phone-wa { max-width:calc(100% - 20px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-radius:6px; }
.phone-seal .seal-t { min-width:0; overflow:hidden; text-overflow:ellipsis; }   /* the ellipsis needs a box of its own inside the flex badge: on a phone the name was cut mid-letter (3 October 2026) */
.phone-expand, .viewer-stage .phone-ai, .viewer-stage .phone-seal { font-size:var(--fs-caption); }
.phone-expand { min-height:44px; }
.rec-copy, .rec-card .mini, .lang-sw button { min-height:44px; }
@media (max-width:780px) { .dock-btn small { display:none; } .dock-btn { width:44px; min-width:44px; height:44px; padding:0; } .phone-dock { bottom:10px; } .review .phone-cap { bottom:64px; } .viewer-tools { left:var(--sp-3); right:var(--sp-3); translate:none; flex-wrap:wrap; justify-content:center; bottom:var(--sp-3); } .viewer-ctrl { height:44px; padding:0 var(--sp-3); } }
/* ── the viewer and the done screen ── */
.viewer-ctrl { border-radius:var(--r-2); background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.14); font-size:var(--fs-small); }
.viewer-close { border-radius:var(--r-2); }
.viewer-tools { gap:var(--sp-2); }
.viewer-ok, .viewer-ok:hover { background:var(--accent); color:#fff; border-color:transparent; font-weight:600; }
.vp-btn { border-radius:99px; }
.vp-time { font-family:var(--font-sans); font-size:var(--fs-caption); }
.capmenu { padding:var(--sp-4); }
[data-step="done"] .sub { margin-top:var(--sp-2); }
.done { gap:var(--sp-8); margin-top:var(--sp-2); }
.approval { gap:var(--sp-2); margin:0 0 var(--sp-3); font-size:var(--fs-small); }
.approval i { color:var(--sem-green); }
.dests { gap:0; }
.patient { margin:0 0 var(--sp-3); padding:var(--sp-4); }
.patient-head { font-size:var(--fs-small); }
.patient-qr { border-radius:var(--r-1); border:1px solid var(--line); }
.patient-url { font-family:var(--font-sans); }
.dest-card { border-radius:0; border:0; border-top:1px solid var(--line); background:transparent; padding:0; }
.dest-card:last-child { border-bottom:1px solid var(--line); }
.dest-card.open { border-color:var(--line); box-shadow:none; }
.dest-head { min-height:60px; padding:var(--sp-2) var(--sp-1); gap:var(--sp-3); }
.dest-head:hover { background:transparent; }
.dest-head > i:first-child { width:36px; height:36px; border-radius:var(--r-1); font-size:18px; }
.dest-head strong { font-size:var(--fs-body); font-weight:600; }
.dest-head small { color:var(--t-500); }
.dest-head > i:last-child { color:var(--t-400); }
.dest-opts { padding:0 var(--sp-1) var(--sp-3) 52px; gap:var(--sp-2); }
.dchip { border-radius:var(--r-1); border:1px solid var(--line-strong); background:var(--s-1); font-size:var(--fs-small); }
.dchip i { color:var(--t-400); }
.dchip[data-done] i { color:var(--sem-green); }
[data-step="done"] .actions { margin-top:var(--sp-6); }
.done-next { height:52px; }
@media (max-width:780px) { .dest-opts { padding-left:var(--sp-1); } }

/* ── Content: the scope as title tabs with an underline, the filters as one quiet segment, quiet fields, one primary ── */
.lib-top { display:grid; grid-template-columns:auto 1fr auto auto; grid-template-areas:"titles titles titles new" "seg . search sort"; align-items:center; gap:var(--sp-4) var(--sp-3); padding:calc(var(--tb-h) + var(--sp-6)) 0 var(--sp-4); }
.lib-titles { grid-area:titles; align-items:baseline; gap:var(--sp-4); }
.lib-titles .lib-scope { margin:0; padding:0; gap:var(--sp-4); background:transparent; border-radius:0; overflow:visible; }
.pseg button, .lib-scope button { height:44px; padding:0 2px; border-radius:0; font-size:var(--fs-section); font-weight:600; color:var(--t-500); background:transparent; box-shadow:none; }
.pseg button:hover, .pseg button[aria-selected="true"], .lib-scope button[aria-selected="true"] { color:var(--t-100); background:transparent; box-shadow:none; }
.pseg-thumb { top:auto; bottom:-2px; height:2px; border-radius:1px; background:var(--accent); box-shadow:none; }
.pseg:has(.pseg-thumb.placed) button[aria-selected="true"] { background:transparent; }
.lib-titles small { color:var(--t-500); }
.lib-top .primary.lib-new { grid-area:new; height:44px; padding:0 var(--sp-4); font-size:var(--fs-small); }
.lib-seg { grid-area:seg; justify-self:start; max-width:100%; overflow-x:auto; scrollbar-width:none; padding:var(--sp-1); }
.lib-top .primary.lib-new { height:52px; }
.lib-seg button { min-width:44px; height:44px; padding:0 var(--sp-3); font-size:var(--fs-small); font-weight:500; color:var(--t-400); white-space:nowrap; }
.lib-seg button[aria-selected="true"] { color:var(--t-100); }
.lib-pill { height:44px; top:var(--sp-1); left:var(--sp-1); }
.lib-search { grid-area:search; height:52px; flex:none; width:240px; border-radius:var(--r-2); }
.lib-search:focus-within { width:240px; flex-basis:auto; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.lib-search input { min-height:44px; font-size:var(--fs-small); }
.lib-search i { color:var(--t-500); }
.lib-search:focus-within i { color:var(--t-400); }
.lib-search button { width:44px; height:44px; }
.lib-sort { grid-area:sort; height:52px; font-size:var(--fs-small); }
.lib-sort[aria-expanded="true"] { border-color:var(--accent); box-shadow:none; }
.lib-body { padding:var(--sp-4) 0 var(--sp-12); }
.lib-month { margin:0 0 var(--sp-3); font-weight:600; color:var(--t-500); }
.lib-month:not(:first-child) { margin-top:var(--sp-8); }
.lib-month small { font-size:var(--fs-caption); }
.lib-grid { gap:var(--sp-6) var(--sp-4); }
.card { gap:var(--sp-2); }
.card .ca { border-radius:var(--r-2); border:1px solid var(--line); }
.card .ca::after { background:linear-gradient(to top, rgba(15,14,20,.35), transparent 40%); }
.card strong { font-size:var(--fs-body); font-weight:600; }
.card small { color:var(--t-500); }
.card .dur, .card .lang { font-family:var(--font-sans); font-size:var(--fs-caption); font-weight:600; height:24px; border-radius:6px; }
.card .draft-tag, .wa-tag { border-radius:6px; font-weight:600; letter-spacing:0; }
.card .draft-tag i { color:#fff; }
.card .kb { border-radius:var(--r-1); border:0; background:rgba(15,14,20,.55); }
.card .play { display:none; }
.lib-drafts { margin:0 0 var(--sp-6); padding:var(--sp-3) var(--sp-4); font-size:var(--fs-small); background:var(--s-1); border:1px solid var(--line); }
.lib-drafts b { font-weight:600; }
.lib-none { padding:var(--sp-12) var(--sp-4); }
.lib-empty-big { margin-top:var(--sp-12); }
.lib-empty-big i { color:var(--t-400); }
.lib-empty-big span { font-size:var(--fs-section); }
@media (max-width:1100px) { .lib-top { grid-template-columns:1fr auto; grid-template-areas:"titles new" "search search" "seg seg" "sort sort"; } .lib-search { width:100%; } .lib-search:focus-within { width:100%; } .lib-sort { justify-self:start; } }
@media (max-width:780px) { .lib-top { padding-top:calc(var(--tb-h) + var(--sp-4)); gap:var(--sp-3); } .lib-scope button { font-size:20px; } .lib-seg button { padding:0 var(--sp-3); } .lib-grid { grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:var(--sp-4) var(--sp-3); } }
/* the catalogue: styling only, the markup is another round's */
.cat-bar { gap:var(--sp-2); padding:0 0 var(--sp-4); }
.cat-dd { height:44px; border-radius:var(--r-2); font-size:var(--fs-small); }
.cat-dd[data-set="true"] { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 6%, var(--s-1)); }
.cat-dd[aria-expanded="true"] { border-color:var(--accent); box-shadow:none; }
.cat-grid { gap:var(--sp-6) var(--sp-4); }
.ccard-frame { border-radius:var(--r-2); border:1px solid var(--line); }
.ccard b { font-size:var(--fs-body); font-weight:600; }
.ccard-dur, .ccard-lang { font-family:var(--font-sans); font-weight:600; border-radius:6px; }
.atag { color:var(--t-300); background:var(--s-3); }
.asset-hero { border-radius:var(--r-3); }
.asset-h { font-size:var(--fs-display); font-weight:600; }
.asset-desc { font-size:var(--fs-body); }
.am-chip { border-radius:var(--r-1); }
.am-rights { border-radius:var(--r-2); }

/* ── the Account sheet and Settings: plain sheets, groups as a label and rows on hairlines, no boxes ── */
.you { width:min(420px, calc(100vw - 28px)); right:14px; top:14px; bottom:14px; background:var(--s-1); }
html.op-dark .you, html.op-dark .kpane { background:var(--s-1); box-shadow:var(--shadow); }
.you-head { padding:var(--sp-6) var(--sp-4) var(--sp-3) var(--sp-6); }
.who-avatar { width:44px; height:44px; border-radius:var(--r-2); box-shadow:none; background:var(--accent); font-size:var(--fs-small); }
.who strong { font-size:var(--fs-body); font-weight:600; }
.who small { font-size:var(--fs-small); }
#youClose { flex-shrink:0; min-width:44px; }
.you-body { padding:0 var(--sp-4) var(--sp-4); gap:0; }
.ycard, html.op-dark .ycard { padding:var(--sp-2) 0 var(--sp-3); border:0; border-radius:0; background:transparent; }
.ycard + .ycard { border-top:1px solid var(--line); }
.ycard .menu-t { margin:var(--sp-3) var(--sp-2) var(--sp-1); }
.row { padding:var(--sp-3) var(--sp-2); border-radius:var(--r-2); gap:var(--sp-3); }
.row:hover { background:var(--s-3); }
.row strong { font-weight:600; }
.row small { color:var(--t-500); margin-top:1px; }
.row > i:last-child { color:var(--t-500); font-size:14px; }
.crow:hover { background:transparent; }
.signin-row { display:grid; grid-template-columns:24px minmax(0, 1fr); align-items:center; column-gap:var(--sp-3); }
.signin-row > span { min-width:0; }
.signin-row strong { overflow-wrap:anywhere; }
.signin-row .mini { grid-column:2; justify-self:start; margin:var(--sp-2) 0 0; }
.signin-row > i:last-child { grid-column:3; grid-row:1; }
a.signin-row { grid-template-columns:24px minmax(0, 1fr) auto; text-decoration:none; }
a.signin-row strong, a.signin-row small { text-decoration:none; }
.pref { padding:var(--sp-2) var(--sp-2); }
.seg3 button { height:44px; font-weight:500; }
.seg3 button[aria-checked="true"] { font-weight:600; }
.you-field { padding:var(--sp-1) var(--sp-2) 0; }
.you-note { margin:var(--sp-2) var(--sp-2) var(--sp-1); }
.log-acts { padding:var(--sp-1) var(--sp-2) 0; }
.log-acts .mini { height:44px; min-height:44px; }
.crow .mini { height:44px; min-height:44px; }
.drawer-foot, .how-foot, .rec-foot { padding:var(--sp-3) var(--sp-6); border-top:1px solid var(--line); background:var(--s-1); }
.drawer-foot .dose-pill { box-shadow:none; }
.kpane { width:min(460px, calc(100vw - 28px)); }
.kpane.beside { right:calc(min(420px, 100vw - 28px) + 26px); }
.kpane-top { padding:var(--sp-6) var(--sp-6) var(--sp-3); }
.kpane-body { padding:0 var(--sp-4) var(--sp-4); }
.kback { border-radius:var(--r-2); background:var(--s-3); }
.setnav .ycard + .ycard { margin-top:0; }
.setnav .row { min-height:56px; }
.setnav .row[data-ok="1"] small { color:var(--t-500); }
.setfoot { margin:var(--sp-6) var(--sp-2) 0; }
.setp { margin:0 0 var(--sp-4); }
.setpane .menu-t { margin:var(--sp-4) 0 var(--sp-2); }
.kstate { font-size:var(--fs-small); }
.kpane-do { background:var(--s-1); border-top:1px solid var(--line); }
.kpane-do .primary, .kpane-do .ghost { height:44px; }
.av, .vrow, .eng { border-radius:var(--r-2); }
.av[data-on="1"], .vrow[data-on="1"], .setsec:is([data-sec="models"],[data-sec="voice"]) .eng[data-on="1"] { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 6%, var(--s-1)); }
.av-use { border-radius:var(--r-1); color:var(--t-200); background:var(--s-3); }
.av-in { border-radius:var(--r-1); color:var(--accent); background:color-mix(in srgb, var(--accent) 10%, transparent); letter-spacing:0; }
.vplay { background:var(--accent); }
.hub-row .hub-logo { color:var(--t-400); }
.hub-row .hub-act { border-radius:var(--r-1); color:var(--t-200); background:var(--s-3); }
.hub-row[data-on="1"] .hub-act { color:var(--sem-green); background:color-mix(in srgb, var(--sem-green) 10%, transparent); }
#avatarBuild.first, .vown #voiceClone { box-shadow:none; }
@media (max-width:780px) { .you { width:100%; right:0; top:auto; bottom:0; border-radius:var(--r-4) var(--r-4) 0 0; } }

/* ── sheets, menus, toasts and confirmations: one radius, one shadow, a 4 px rise, a fade ── */
.lm-scrim { padding:var(--sp-4); }
.lm { width:min(100%, 420px); padding:var(--sp-6); gap:var(--sp-2); }
.lm-ico { width:48px; height:48px; border-radius:var(--r-2); font-size:22px; margin-bottom:var(--sp-1); }
.lm :is(h2, h3) { font-size:var(--fs-section); }
.lm-text { font-size:var(--fs-small); max-width:var(--measure); }
.lm-input { margin-top:var(--sp-2); }
.lm-actions { gap:var(--sp-2); margin-top:var(--sp-4); }
.lm-actions button { min-height:44px; height:48px; border-radius:var(--r-2); font-size:var(--fs-body); }
.lm.danger .lm-actions #lmOk { background:var(--sem-red); }
.kmenu { padding:var(--sp-1); min-width:220px; }
.kmenu button { height:44px; padding:0 var(--sp-3); border-radius:var(--r-1); font-size:var(--fs-small); }
.kmenu button i { font-size:18px; }
.kmenu button:hover, .kmenu button:focus-visible { background:var(--s-3); }
.kmenu hr { border-top-color:var(--line); margin:var(--sp-1) var(--sp-2); }
.kmenu button small { font-size:var(--fs-caption); }
#kmenu .km-t { font-size:var(--fs-caption); letter-spacing:.02em; text-transform:none; }
.toaster { right:var(--sp-6); bottom:var(--sp-6); gap:var(--sp-2); }
.toast { padding:var(--sp-3) var(--sp-4); font-size:var(--fs-small); border-radius:var(--r-2); }
.toast small { font-size:var(--fs-small); }
.toast-act { min-height:44px; border-radius:var(--r-1); font-size:var(--fs-small); background:var(--s-3); }
.traylist { padding:var(--sp-2); border-radius:var(--r-3); }
.tjob { border-radius:var(--r-2); }
.tj-art { border-radius:var(--r-1); }
.how-head { padding:var(--sp-6) var(--sp-6) var(--sp-3); }
.how-body { padding:0 var(--sp-6) var(--sp-3); }
.how-short li { border-radius:var(--r-2); background:var(--s-3); border:0; }
.cn-body { padding:var(--sp-3) var(--sp-6) var(--sp-6); }
.cn-foot button { border-radius:var(--r-2); }
.cn-asks li { border-radius:var(--r-2); background:var(--s-3); }
.cn-asks i { color:var(--sem-green); }
.wsheet .ws-steps li { padding:var(--sp-4) 0; }
.ws-num { border-radius:var(--r-2); background:var(--s-3); border:0; }
.ws-open { border-radius:var(--r-2); background:var(--accent); }
.ws-code { border-radius:var(--r-2); background:var(--s-3); }
.ws-code span { border-radius:var(--r-1); border:1px solid var(--line); font-size:28px; }
.ws-copy, .ws-renew { border-radius:var(--r-1); }
.ws-phones { border-radius:var(--r-2); background:var(--s-3); border:0; }
.ws-bar i { background:var(--accent); }
.tsheet-foot .primary { height:44px; }
.ask { border-radius:var(--r-3); }
.askbtn { background:var(--accent); box-shadow:var(--shadow); }
.askbtn[data-state="listening"] { background:var(--sem-red); }
.askbtn[data-state="thinking"] { background:var(--accent); }

/* ── the sign-in screens and the plans page: a token pass only, no layout change ── */
.signin-in { padding:var(--sp-12); }
.signin-google, .signin-alt-btn { border-radius:var(--r-2); border:1px solid var(--line-strong); }
.signin-google:hover, .signin-alt-btn:hover { background:var(--s-3); }
.signin .cn-field span { font-size:var(--fs-caption); letter-spacing:.02em; text-transform:none; }
.signin .cn-field input, .signin .cn-field select { border-radius:var(--r-2); font-size:var(--fs-body); }
.signin-h { font-weight:600; letter-spacing:-.02em; }
.signin-sub { font-size:var(--fs-body); }
.signin-help, .signin-forgot, .signin-check, .signin-msg { font-size:var(--fs-small); }
.signin-forgot, .home-link { min-height:44px; }
.signin-check { min-height:44px; }
.signin .actions .primary { height:52px; font-size:var(--fs-body); }
.signin-wait::after { background:var(--accent); }
@media (max-width: 760px) { .signin-in { padding:var(--sp-8) var(--sp-6); } }
/* the plans page's own pass lives at the end of assets/plans.css, which loads after this file */

/* round 310: the destinations sheet (the deck's "Where should it go?"), its confirmation, the website shown and disabled, a stopped make in Content */
.dest-sheet .opt { width:100%; }
.dest-sheet .opt > i:first-child { flex:none; font-size:20px; color:var(--t-400); }
.dest-sheet .opt span { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.dest-sheet .opt small { color:var(--t-500); }
.dest-sheet .opt[disabled] { opacity:.55; cursor:not-allowed; }
.dest-sheet .osheet-foot .primary.sm { margin-left:auto; height:48px; padding:0 22px; }
.dest-confirm { margin:4px 0 8px; font-size:var(--fs-body); line-height:1.5; color:var(--t-100); }
.card-failed .draft-tag { background:rgba(150, 24, 40, .86); color:#fff; }
.phone-withdrawn, .viewer-stage .phone-withdrawn { top:90px; }
/* ── round 310: the rest of Copy Deck item 9 on the same system (round 298): Home's first line, the line over the box, Ideas and the
   briefing, Insights, the Account sheet's "Go to" rows on a phone, the booking field, the catalogue's "On my profile" and "Add all" ── */
.home-head .home-first { display:block; margin:var(--sp-3) 0 0; max-width:var(--measure); font-size:var(--fs-body); line-height:1.5; color:var(--t-300); }
.home-or { margin:var(--sp-4) 0 var(--sp-2); font-size:var(--fs-small); color:var(--t-400); }
.home-list { display:flex; flex-direction:column; gap:var(--sp-2); }
.home-list .home-now b, .home-sug .home-now b { white-space:normal; }   /* a question or a suggestion reads whole, over two lines on a phone */
.home-brief { margin:0; max-width:var(--measure); font-size:var(--fs-body); line-height:1.5; color:var(--t-200); }
#homeBrief .home-link { margin-top:var(--sp-2); min-height:44px; }
.insights { width:min(1080px, 100%); margin:0 auto; padding-top:calc(var(--tb-h) + var(--sp-12)); text-align:left; }
.insights .q { text-align:left; }
.ins-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:var(--sp-3); margin-top:var(--sp-8); }
.ins-tile { display:flex; flex-direction:column; gap:var(--sp-1); min-width:0; padding:var(--sp-4); border-radius:var(--r-3); border:1px solid var(--line); background:var(--s-1); }
.ins-k { font-size:var(--fs-caption); letter-spacing:.01em; color:var(--t-400); }
.ins-v { font-size:32px; font-weight:600; letter-spacing:-.02em; line-height:1.15; color:var(--t-100); }
.ins-tile small { font-size:var(--fs-small); line-height:1.4; color:var(--t-400); }
.ins-tile .home-bar { margin-top:var(--sp-2); }
.ins-empty { margin-top:var(--sp-8); max-width:var(--measure); }
.ins-more { margin:var(--sp-8) 0 0; font-size:var(--fs-small); color:var(--t-400); }
@media (max-width: 560px) { .insights { padding-top:calc(var(--tb-h) + var(--sp-6)); } .ins-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); margin-top:var(--sp-6); } .ins-v { font-size:28px; } }
.you-nav { display:none; }
@media (max-width: 780px) { .you-nav { display:block; } }
.cat-mine[aria-pressed="true"] { color:var(--accent); background:var(--s-3); }
.cat-mine small { font-size:var(--fs-caption); color:inherit; }
.cat-add { color:var(--accent); }
.lib-origin { color:var(--t-300); }
/* 10 November: My Profile is a page of Account; the way out to the public page is a quiet pill under its note */
.you-public { align-self:flex-start; width:max-content; height:44px; margin:var(--sp-2) var(--sp-2) 0; padding:0 18px 0 14px; border-radius:999px; font-size:15px; text-decoration:none; }
#youNav a.row, #youNav a.row strong, #youNav a.row small, #youTeam a.row, #youTeam a.row strong, #youTeam a.row small { text-decoration:none; }
#youNav a.row, #youTeam a.row { color:var(--t-100); }
#youNav a.row small, #youTeam a.row small { color:var(--t-400); }
#youNav a.row > i, #youTeam a.row > i { color:var(--t-400); }

/* ═══════════════════════════════════════════════════════════════════════════
   round 314: the design audit of 25 September 2026. Every finding, where it shows and why it matters:
   docs/DESIGN-AUDIT-2026-09-25.md. Presentation only, one section per screen; this block wins on every rule it repeats.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── the shell. Round 298's #stage and .toaster rules came after the phone block and undid it: the tab bar covered the foot of every
   screen on a phone and an iPad in portrait, and toasts sat on the tab bar. Settings opened off the screen, behind the Account sheet,
   below 900 px wide (the "beside" offset of the desktop). ── */
@media (max-width:780px) {
  #stage { padding:calc(var(--tb-h) + var(--sp-4)) var(--sp-6) calc(64px + var(--sp-4) + env(safe-area-inset-bottom)); }   /* the 24 px sides Home and Content keep */
  .step { max-height:calc((100dvh - var(--tb-h) - 64px - var(--sp-8) - env(safe-area-inset-bottom)) / var(--zoom)); }
  body.ob #stage { padding-bottom:calc(var(--sp-4) + env(safe-area-inset-bottom)); }
  body.ob .step { max-height:calc((100dvh - var(--tb-h) - var(--sp-8) - env(safe-area-inset-bottom)) / var(--zoom)); }
  .toaster { left:var(--sp-3); right:var(--sp-3); bottom:calc(64px + var(--sp-3) + env(safe-area-inset-bottom)); }
  body.ob .toaster { bottom:calc(var(--sp-3) + env(safe-area-inset-bottom)); }
}
@media (max-width:900px) { .kpane, .kpane.beside { right:14px; width:calc(100vw - 28px); z-index:81; } }
@media (max-width:780px) {
  .kpane, .kpane.beside { left:0; right:0; top:auto; bottom:0; width:100%; height:88dvh; border-radius:var(--r-4) var(--r-4) 0 0; translate:0 calc(100% + 24px); }
  .kpane.open { translate:0 0; }
}
/* the notch and the rounded corners of an iPhone held sideways */
.topbar { padding-left:max(var(--sp-6), env(safe-area-inset-left)); padding-right:max(var(--sp-4), env(safe-area-inset-right)); }
@media (max-width:780px) { .topbar { padding-left:max(var(--sp-4), env(safe-area-inset-left)); padding-right:max(10px, env(safe-area-inset-right)); } .tabbar { padding-left:max(8px, env(safe-area-inset-left)); padding-right:max(8px, env(safe-area-inset-right)); } }
/* a toast's icon says what kind of news it is: a tick for done, amber for a warning, neutral for the rest (every warning was green) */
.toast i { color:var(--t-400); }
.toast i.ph-check-circle, .toast i.ph-check, .toast i.ph-seal-check { color:var(--sem-green); }
.toast i.ph-warning, .toast i.ph-warning-circle { color:var(--sem-amber); }
/* one badge in the top bar: the tray's count takes Content's neutral count, not the accent */
.tray .tray-n, .tray[data-busy="1"] .tray-n { color:var(--t-200); background:var(--s-3); }
/* the initials on the accent in dark mode: the accent is light there, so the letters are dark (2.7:1 before) */
html.op-dark .tb-avatar, html.op-dark .who-avatar { color:#0F0E14; }
/* touch screens show no resting scrollbar (an iPad draws them only while scrolling); the frames now look like the device */
@media (hover:none) and (pointer:coarse) { .step, .you-body, .kpane-body, .osheet-body, .words .script, .home-ask textarea, .sharebox textarea, .facts { scrollbar-width:none; } }
/* the viewer's scrim covers the top bar fully, so its close button does not sit on the Account label behind it */
.viewer-scrim { background:rgba(15,14,20,.94); }
/* a section heading that wraps keeps a heading's line height (33 px lines at 22 px before) */
.home-sec h2, .osheet-head h2, .kpane-top h2, .how-head h3, .cn h3, .asset-rel :is(h2, h3) { line-height:1.25; }

/* ── colour: text on the accent and on the light reds and greens of dark mode is dark there (white on #A78BFA is 2.7:1); a red that reads at 4.5:1 on the page ── */
:root { --sem-red:#C81E3F; }
html.op-dark .ch-reco, html.op-dark .viewer-ok, html.op-dark .viewer-ok:hover, html.op-dark .catmenu .cm-foot .cm-done, html.op-dark .cast-one .tick, html.op-dark .vplay, html.op-dark #avatarBuild.first, html.op-dark .lm.danger .lm-actions #lmOk, html.op-dark #dictate[data-on="1"], html.op-dark #dictate[data-on="1"] i, html.op-dark .card .shared, html.op-dark .timeline li[data-done] i { color:#0F0E14; }

/* ── the sign-in screens (sign-in, sign-up, reset, new password, the country question, the hold) ── */
/* the country select takes the fields' padding and a drawn caret: its words started 4 px right of every other field's, beside the system's arrow */
.signin .cn-field select { -webkit-appearance:none; appearance:none; padding:0 48px 0 16px; background-repeat:no-repeat; background-position:right 16px center; background-size:16px 16px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235F5B72' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html.op-dark .signin .cn-field select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23A6A2B4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* the account's email on the hold is fixed: it reads as a line of text, not as a field waiting to be typed in */
.signin-fixed b { min-height:0; padding:var(--sp-1) 2px 0; background:none; border-radius:0; font-weight:600; }
/* sublines wrap to the column, not balanced into two short lines under a wider heading */
.signin-sub, .signin-help { text-wrap:pretty; }
/* the label and help gaps on the scale (7 px before) */
.signin .cn-field span { margin:0 0 var(--sp-2) 2px; }
.signin-help { margin:var(--sp-2) 0 0 2px; }
/* the card and the photo beside it are one pair: a hairline for both, no shadow on one of them only */
.signin-in { box-shadow:none; border:1px solid var(--line); }
/* the split made the form a 256 px column beside a half-width photo on an iPad in portrait (round 315's A1): one column up to 900 px */
@media (max-width:900px) {
  .signin { grid-template-columns:1fr; gap:0; padding:var(--sp-3); }
  .signin-side { display:none; }
  .signin-in { min-height:calc(100dvh - 24px); padding:var(--sp-8) var(--sp-6); }
}
/* on the pricing page the sign-in covers a visitor who came from the site's Pricing: a quiet way back (round 315's A2); the app has none */
.signin-back { display:none; text-decoration:none; }
body.plans-page .signin-back:not([hidden]) { display:inline-flex; align-items:center; }

/* ── the welcome wizard (hello, photo, voice) ── */
/* the sign-in's fields sit on a white card; here they sat on the grey page in a grey only 1.05:1 away from it, so the field had no edge */
.hello-form .cn-field input { background:var(--s-1); border:1px solid var(--line-strong); }
.hello-form .cn-field input:focus { border-color:var(--accent); }
/* the four photo tips: two by two, never three and one left alone */
.tips { display:grid; grid-template-columns:repeat(2, max-content); justify-content:center; justify-items:start; gap:var(--sp-2) var(--sp-6); }
@media (max-width:560px) { .tips { grid-template-columns:max-content; } }
/* one kind of skip on both screens: a quiet link that goes forward (the photo screen had a bordered button, the voice screen a link with a back arrow) */
#photosSkip { height:auto; min-height:44px; padding:0 var(--sp-3); border:1px solid transparent; background:transparent; color:var(--t-400); font-size:var(--fs-small); font-weight:500; }
#photosSkip:hover { color:var(--t-100); background:var(--s-3); }
#photosSkip i { font-size:18px; }
/* the microphone is a level meter, not a second round button above the record button */
.vs-orb { background:transparent; border:0; }
.vs-orb i { color:var(--t-400); }
.vs-time { font-family:var(--font-sans); font-weight:600; letter-spacing:-.01em; }

/* ── Home ── */
/* the three tiles: a label, a value, one line and one action in the accent at the foot. Two tiles had no action or a grey one, and the feet did not line up */
.home-link, .home-go { display:inline-flex; align-items:center; gap:6px; margin-top:auto; min-height:44px; padding-top:var(--sp-2); font-size:var(--fs-small); font-weight:600; color:var(--accent); text-decoration:none; }
.home-link i, .home-go i { font-size:14px; }
.home-link:hover, a.home-tile:hover .home-go, button.home-tile:hover .home-go { text-decoration:underline; text-underline-offset:3px; }
#homeBrief .home-link { margin-top:var(--sp-2); padding-top:0; }
.home-tile small.home-soft { margin-top:var(--sp-1); }
.home-tile small.home-soft:empty { display:none; }
/* the plan's bar says what it measures */
.home-bar-k { margin-top:var(--sp-2); font-size:var(--fs-caption); font-weight:600; color:var(--t-500); }
.home-bar-k:has(+ .home-bar[hidden]) { display:none; }
.home-bar-k + .home-bar { margin-top:var(--sp-1); }
/* three tiles side by side down to 600 px: at an iPad in portrait they stacked, with a bar 686 px long */
@media (max-width:900px) { .home-tiles { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width:600px) { .home-tiles { grid-template-columns:1fr; } }
/* a section's heading and its one link on one baseline, and the heading's usual 16 px to what follows (it had 32 and the link sat low) */
.home-sec .home-sec-h { align-items:baseline; margin:0 0 var(--sp-4); }
.home-sec .home-sec-h h2 { margin:0; }
.home-sec-h + .home-grid { margin-top:0; }
#homeLib.tiny { display:inline-flex; align-items:center; min-height:44px; font-weight:600; }
/* Recently published: four equal columns across the row (three 200 px cards sat at the left, the link far at the right) */
.home-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); }
@media (max-width:900px) { .home-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:var(--sp-3); } }
/* a title on one line and one on two keep their state lines level */
.home-t { min-height:calc(2em * 1.3); }
/* the state in the caption grey every other card uses (the green was Home's alone) */
.home-st, .home-st[data-st] { color:var(--t-500); }
/* on a phone the latest videos are a list, like the rows above them: never two covers and a third alone */
@media (max-width:560px) {
  .home-grid { grid-template-columns:1fr; gap:var(--sp-2); }
  .home-card { display:grid; grid-template-columns:48px minmax(0, 1fr); grid-template-rows:auto auto; align-items:center; column-gap:var(--sp-3); row-gap:2px; min-height:60px; padding:var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2); border:1px solid var(--line); border-radius:var(--r-3); background:var(--s-1); }
  .home-art { grid-row:1 / 3; width:48px; aspect-ratio:4 / 5; border-radius:var(--r-1); }
  .home-t { min-height:0; align-self:end; -webkit-line-clamp:1; }
  .home-st { align-self:start; }
  @media (hover:hover) and (pointer:fine) { .home-card:hover .home-art { transform:none; } }
}
/* an empty section is one plain line under its heading, like the rest of the page, not a dashed box no other surface has */
.home-none, .home-empty { padding:0; border:0; border-radius:0; background:none; font-size:var(--fs-body); color:var(--t-400); text-align:left; max-width:var(--measure); }
/* the prepare box on a phone: room for the three lines of its placeholder, so no scrollbar and no clipped text */
.home-ask textarea { field-sizing:content; max-height:40vh; }
@media (max-width:560px) { .home-ask textarea { min-height:104px; } }

/* ── Create ── */
/* the screen stays where it is when a file or a link joins the box: it was centred, and every card added moved the heading up by half its height */
[data-step="share"] { align-self:start; padding-top:min(16vh, 150px); }
[data-step="share"]::before { top:calc(min(16vh, 150px) - 40px); }
/* the rotating example sat 8 px right of and below the point where typing starts (its offset and its padding both counted) */
.ta-ph { left:0; top:0; right:0; }
/* a link that could not be read says so once, on its card; the line under the box keeps it for a screen reader only */
#shareBox:has(.file[data-state="bad"]) + .share-note.bad { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.share-note { text-wrap:pretty; }
/* while dictating, Stop and Prepare this for me were two filled buttons 2 px apart */
#dictate + #shareGo { margin-left:var(--sp-2); }
/* the box grows with what is typed, up to a limit, instead of clipping the third line behind a scrollbar */
.sharebox textarea { field-sizing:content; max-height:34vh; }
@media (max-width:560px) { .sharebox textarea { min-height:104px; } }

/* ── the no-patient-details sheet and the confirmations (delete, withdraw, start over) ── */
/* each button as wide as its words: two equal halves broke "I understand — continue" onto two lines inside a 48 px button */
.lm-actions { flex-wrap:wrap-reverse; }
.lm-actions button { flex:1 1 auto; white-space:nowrap; }
/* a two-line heading at a heading's line height, not the body's 1.5 */
.lm :is(h2, h3) { line-height:1.25; text-wrap:balance; }
.lm-text { text-wrap:pretty; }

/* ── the table (offer) and its three sheets (the words, music, languages) ── */
/* the one action at the body size (17 px before, the only 17 on the scale); on a phone it takes two lines calmly instead of squeezing into 48 px */
.om-foot .primary { font-size:var(--fs-body); padding:0 var(--sp-6); }
@media (max-width:560px) { .om-foot .primary { height:auto; min-height:52px; padding:var(--sp-3) var(--sp-4); line-height:1.3; text-align:center; } .om-foot .primary i { display:none; } }
/* the language chips were 40 px tall, under the 44 px a finger needs */
.lchip { min-height:44px; height:auto; }
/* the line numbers of the words, as the review writes them: sans, 12 px, caption grey (the sheet had bold mono 14 px) */
.osheet .oms-num, .oms-num { font-family:var(--font-sans); font-size:var(--fs-caption); font-weight:600; letter-spacing:0; color:var(--t-500); }
/* one height for every button in a sheet's foot (44 beside 48 before) */
.osheet-foot .ghost, .osheet-foot .ghost.sm, .osheet-foot .primary, .osheet-foot .primary.sm, .dest-sheet .osheet-foot .primary.sm { height:48px; min-height:48px; font-size:var(--fs-body); }
.osheet-foot .ghost.sm { padding:0 var(--sp-4); }
/* the first choice's focus ring was cut by the top of the sheet's scrolling body */
.osheet-body { padding-top:var(--sp-1); }
/* the numbers sit on the first line of their words, and a phone gives the words the room the 20 px gutter took */
.osheet .oms-num { margin-top:6px; min-width:20px; }
@media (max-width:560px) { .osheet .oms li { gap:var(--sp-3); } }
/* on a phone the foot's quiet buttons broke into three lines inside 44 px ("Write / it / again"): the one action takes the top row, the quiet ones share the row under it */
@media (max-width:560px) {
  .osheet-foot { flex-wrap:wrap-reverse; gap:var(--sp-2); }
  .osheet-foot .primary, .osheet-foot #osheetDone, .dest-sheet .osheet-foot .primary.sm { flex:1 1 100%; margin-left:0; }
  .osheet-foot .ghost, .osheet-foot .ghost.sm { flex:1 1 auto; white-space:nowrap; padding:0 var(--sp-3); font-size:var(--fs-small); }
  .osheet-foot .ghost i { display:none; }
}

/* ── the review, the viewer and the done screen ── */
/* the phone frames: a hairline over a black ground drew as a heavy black ring round every preview (and the catalogue's covers); the ground now stops inside the border */
.phone, .cam, .ccard-frame, .plan-art { background-clip:padding-box; }
/* the words list cut its last line in half at an iPad's height with nothing to say it scrolls: it fades out at the foot instead */
.words .script { padding-bottom:var(--sp-6); -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - var(--sp-6)), transparent); mask-image:linear-gradient(to bottom, #000 calc(100% - var(--sp-6)), transparent); }
/* the done screen's buttons: the light one's icon in the neutral grey every other light button uses, not the accent; both at the body size */
.ghost.done-next i { color:var(--t-400); }
.done-next { font-size:var(--fs-body); padding:0 var(--sp-6); border-radius:var(--r-2); }
.patient-head, .patient-wait, .approval { text-wrap:pretty; }
/* the done screen stays put when Send it, Post it or Keep a copy opens: it was centred and every section moved it up by half its height */
[data-step="done"] { align-self:start; padding-top:min(8vh, 80px); }
/* the done screen's two buttons share a phone's row in equal halves (the longer "Open Content" pushed them onto two ragged rows) */
@media (max-width:560px) { [data-step="done"] .actions { flex-wrap:nowrap; } [data-step="done"] .done-next { flex:1 1 0; min-width:0; padding:0 var(--sp-3); } }

/* ── Content (Mine), its menus and confirmations ── */
/* the filters on a phone: each label kept whole and the row scrolls sideways under a fade ("Needs approvaReady" overlapped before) */
.lib-seg button { flex:none; }
@media (max-width:560px) { .lib-seg { padding-right:var(--sp-6); -webkit-mask-image:linear-gradient(to right, #000 calc(100% - var(--sp-6)), transparent); mask-image:linear-gradient(to right, #000 calc(100% - var(--sp-6)), transparent); } }
/* the toolbar on an iPad: one row for the filters, search and sort down to 900 px, then search beside sort, never four stacked rows */
@media (min-width:901px) and (max-width:1100px) {
  .lib-top { grid-template-columns:auto 1fr auto auto; grid-template-areas:"titles titles titles new" "seg . search sort"; }
  .lib-search, .lib-search:focus-within { width:220px; }
  .lib-sort { justify-self:auto; }
}
@media (max-width:900px) {
  .lib-top { grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"titles new" "search sort" "seg seg"; }
  .lib-sort { justify-self:end; }
}
/* a card's state tag and its three dots shared the corner and overlapped on narrow cards: there the tag is its icon, the words stay under the cover */
.card { container-type:inline-size; }
@container (max-width:220px) { .card .draft-tag { max-width:28px; overflow:hidden; white-space:nowrap; gap:var(--sp-2); padding:4px 7px; } .card .draft-tag i { flex:none; font-size:14px; } }
/* a title on one line and one on two keep the lines under them level across a row */
.card strong { min-height:calc(2em * 1.3); }
/* the one mono uppercase label left after round 298: sentence case, the sans */
.lib-sample, .sample-tag { display:inline-block; font-family:var(--font-sans); font-weight:600; letter-spacing:0; text-transform:none; }
.lib-sample::first-letter, .sample-tag::first-letter { text-transform:uppercase; }

/* ── the Doctorpedia catalogue, its filters and an asset page (styling only; the markup is the catalogue's) ── */
/* On my profile sits in the filters' row with the filters' look (it was a bare text button beside three bordered ones) */
.cat-bar .cat-mine { height:44px; padding:0 var(--sp-3); border:1px solid var(--line-strong); border-radius:var(--r-2); background:var(--s-1); color:var(--t-100); font-weight:500; }
.cat-bar .cat-mine[aria-pressed="true"] { border-color:var(--accent); color:var(--accent); background:color-mix(in srgb, var(--accent) 6%, var(--s-1)); }
/* on a phone the three filters were three ragged widths: one width, the whole row */
@media (max-width:560px) { .cat-bar .cat-dd, .cat-bar .cat-mine { width:100%; justify-content:flex-start; } .cat-bar .cat-dd > i:last-child { margin-left:auto; } }
/* 44 px targets: the filter menu's rows, search and Done (40 to 42), the asset page's language tabs (34), chips (36), the copy (36) and the doctor (40) */
.catmenu .cm-list button, .catmenu .cm-foot button { height:auto; min-height:44px; }
.cm-search { height:auto; min-height:46px; }
.cm-search input { min-height:44px; }
#assetLangs [data-alang], .am-chip, .am-copy, .am-more { min-height:44px; min-width:44px; }
.am-copy, .am-more { display:inline-grid; place-items:center; }

/* ── Insights ── */
/* four tiles in a row and the plan's use on its own full row, so no tile is left alone on a phone or an iPad */
.ins-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); }
.ins-tile[data-ins="plan"] { grid-column:1 / -1; }
.ins-tile[data-ins="plan"] .home-bar { max-width:420px; }   /* a meter, not a rule across the page */
@media (max-width:900px) { .ins-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
/* the tile's label at the size Home's tiles use (12 px here, 14 on Home) */
.ins-k { font-size:var(--fs-small); color:var(--t-500); }

/* ── the Account sheet and Settings ── */
/* Activity with nothing in it said the same sentence twice: the empty line, then the note under it */
#logCard:has(#logEmpty) > .you-note { display:none; }
/* a booking link that was refused shows it on the field itself, not only in a toast */
.cn-field input[aria-invalid="true"] { border-color:var(--sem-red); background:color-mix(in srgb, var(--sem-red) 5%, var(--s-1)); }
/* Settings' foot said "Everything here stays on this device", which stopped being true when the name, the avatar and the voice began to travel with the account */
.setfoot { display:none; }
/* the build label "v3" in the Account sheet's foot read as unfinished */
#drawerFoot { display:none; }
/* the voice list's "In use" tag in sentence case, like every other label since round 298 */
.av-in { text-transform:none; font-family:var(--font-sans); }
/* the presenter voices' caption was 11.5 px; the back button shrank to 41 px beside a long title; the icon of Create my avatar was grey on the accent (1.06:1) */
.cv-t small { font-size:var(--fs-caption); }
.kback { flex:none; min-width:44px; }
#avatarBuild.first i { color:inherit; }
/* the pairing sheet's list: its label and dates at 4.48:1 on their ground, now above 5:1 */
.ws-phones .ws-k, .ws-phones li small { color:var(--t-400); }
/* the voice list in Settings: Use this and the play button were 40 px */
.av-use, .hub-act, .vplay { min-height:44px; }
.vplay { width:44px; height:44px; }

/* ── round 318 (27 September 2026): the Account sheet reordered and quieter, and Insights drawn ──
   The sheet: no backdrop blur (it is opaque), no blurred glow inside it, one slide-in transition and the blocks fading up after it in
   CSS, so nothing animates against the slide and nothing re-blurs the animated canvas behind. What matters most first; the rest under
   More, which remembers whether it was left open; Sign out a quiet text button in the foot. */
.you { -webkit-backdrop-filter:none; backdrop-filter:none; border-radius:var(--r-4); }
.you::before { display:none; }
.scrim { -webkit-backdrop-filter:none; backdrop-filter:none; }
.you-head { align-items:center; padding:var(--sp-6) var(--sp-4) var(--sp-4) var(--sp-6); }
.who-avatar { width:48px; height:48px; font-size:var(--fs-body); }
.who strong { font-size:17px; }
.you-body { padding:0 var(--sp-4) var(--sp-6); }
.you-body > * { opacity:1; }
@keyframes youIn { from { opacity:0; translate:0 6px; } to { opacity:1; translate:0 0; } }
.you.open .you-body > * { animation:youIn var(--dur-base) var(--ease-out) both; animation-delay:calc(60ms + var(--i, 0) * 30ms); }
.you.open .drawer-foot { animation:youIn var(--dur-base) var(--ease-out) both; animation-delay:200ms; }
.ycard { padding:var(--sp-3) 0 var(--sp-3); }
.you-email, .you-email:hover { background:transparent; cursor:default; }
.you-email strong { font-weight:500; color:var(--t-200); }
/* how you appear: two tiles, the avatar and the voice, with a picture or an icon, the state, and a plus until each exists */
.you-appear { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--sp-2); padding:0 var(--sp-2); }
.ya { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:var(--sp-3); min-height:132px; padding:var(--sp-3) var(--sp-3) var(--sp-3); border-radius:var(--r-3); border:1px solid var(--line); background:var(--s-1); text-align:left; font:inherit; color:var(--t-100); cursor:pointer; transition:border-color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.ya:hover { border-color:var(--line-strong); background:var(--s-3); }
.ya:active { transform:scale(.99); }
.ya:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ya[data-on="1"] { border-color:color-mix(in srgb, var(--accent) 35%, transparent); }
.ya-pic { width:44px; height:44px; border-radius:var(--r-2); overflow:hidden; display:grid; place-items:center; font-size:20px; color:var(--accent); background:color-mix(in srgb, var(--accent) 10%, transparent); }
.ya-pic img { width:100%; height:100%; object-fit:cover; }
.ya-t { display:flex; flex-direction:column; min-width:0; }
.ya-t strong { font-size:var(--fs-small); font-weight:600; line-height:1.3; }
.ya-t small { font-size:var(--fs-caption); color:var(--t-500); line-height:1.35; }
.ya > i:last-child { position:absolute; top:var(--sp-3); right:var(--sp-3); font-size:14px; color:var(--t-500); }
.who-mail { color:var(--t-500); overflow-wrap:anywhere; }
.who small + small { margin-top:1px; }
#appearCard .you-note { margin-top:var(--sp-3); }
/* the two doors side by side, on the phones that have no room for them in the tab bar (round 310 keeps them off the desktop) */
@media (max-width: 780px) { .you-nav { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--sp-1); } }
.you-nav .row { padding:var(--sp-2) var(--sp-2); }
.you-nav .row small { display:none; }
.you-nav .row > i:last-child { margin-left:auto; }
/* More: a row that opens the rest; its caret turns */
.you-more { border-top:1px solid var(--line); padding-top:var(--sp-2); }
.you-more > summary { list-style:none; cursor:pointer; }
.you-more > summary::-webkit-details-marker { display:none; }
.you-more > summary .you-more-caret { transition:rotate var(--dur-base) var(--ease-out); }
.you-more[open] > summary .you-more-caret { rotate:180deg; }
.you-more[open] > summary { margin-bottom:var(--sp-2); }
.you-more[open] > summary small { display:none; }
.you-more > .ycard:first-of-type { border-top:1px solid var(--line); }
/* the foot: the product on the left, Sign out a quiet text button on the right */
.drawer-foot { display:flex; align-items:center; gap:var(--sp-2); }
.you-out { display:inline-flex; align-items:center; gap:6px; margin-left:auto; min-height:44px; padding:0 var(--sp-2); border:0; border-radius:var(--r-1); background:transparent; font:inherit; font-size:var(--fs-small); font-weight:500; color:var(--t-500); cursor:pointer; }
.you-out:hover { color:var(--t-100); background:var(--s-3); }
.you-out:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.you-out i { font-size:16px; }
@media (max-width: 420px) { .you-appear { grid-template-columns:1fr; } .ya { flex-direction:row; align-items:center; min-height:64px; } .ya > i:last-child { position:static; margin-left:auto; } .you-nav { grid-template-columns:1fr; } .you-nav .row small { display:block; } }

/* Insights: the four numbers count up, the plan's meter below them, then the weeks, where the videos stand, and the languages */
.insights .q { margin-bottom:var(--sp-2); }
.ins-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:var(--sp-4); margin-top:var(--sp-8); }
.ins-tile { gap:var(--sp-2); padding:var(--sp-6) var(--sp-6) var(--sp-4); border-radius:var(--r-3); animation:youIn var(--dur-base) var(--ease-out) both; animation-delay:calc(var(--i, 0) * 50ms); }
.ins-tile:nth-child(2) { --i:1; } .ins-tile:nth-child(3) { --i:2; } .ins-tile:nth-child(4) { --i:3; } .ins-tile:nth-child(5) { --i:4; }
.ins-k { font-size:var(--fs-small); color:var(--t-500); }
.ins-v { font-size:40px; font-weight:600; letter-spacing:-.03em; line-height:1.05; font-variant-numeric:tabular-nums; }
.ins-tile small { font-size:var(--fs-small); color:var(--t-400); }
.ins-tile[data-ins="plan"] { flex-direction:row; align-items:center; flex-wrap:wrap; gap:var(--sp-1) var(--sp-6); }
.ins-tile[data-ins="plan"] .ins-k { flex:0 0 100%; }
.ins-tile[data-ins="plan"] .ins-v { font-size:28px; }
.ins-tile[data-ins="plan"] .home-bar { flex:1 1 220px; margin:0; max-width:none; }
.ins-viz { display:grid; grid-template-columns:2fr 1fr 1fr; gap:var(--sp-4); margin-top:var(--sp-4); }
.ins-card { min-width:0; padding:var(--sp-6); border-radius:var(--r-3); border:1px solid var(--line); background:var(--s-1); animation:youIn var(--dur-base) var(--ease-out) both; }
.ins-card:nth-child(1) { animation-delay:200ms; } .ins-card:nth-child(2) { animation-delay:250ms; } .ins-card:nth-child(3) { animation-delay:300ms; }
.ins-card h2 { margin:0; font-size:var(--fs-body); font-weight:600; letter-spacing:-.01em; }
.ins-card-sub { margin:2px 0 var(--sp-4); font-size:var(--fs-small); color:var(--t-500); }
.ins-bars svg { display:block; width:100%; height:auto; overflow:visible; }
.ins-bar-bg { fill:var(--s-3); }
@keyframes insGrow { from { transform:scaleY(0); } to { transform:scaleY(1); } }
@keyframes insWide { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.ins-bar-v { fill:var(--accent); transform-box:fill-box; transform-origin:bottom; animation:insGrow .7s var(--ease-out) both; animation-delay:calc(240ms + var(--i, 0) * 45ms); }
.ins-bar:hover .ins-bar-v { fill:color-mix(in srgb, var(--accent) 80%, #000); }
html.op-dark .ins-bar:hover .ins-bar-v { fill:color-mix(in srgb, var(--accent) 80%, #fff); }
.ins-bar-n { font-size:12px; font-weight:600; fill:var(--t-300); font-family:var(--font-sans); animation:youIn var(--dur-base) var(--ease-out) both; animation-delay:calc(600ms + var(--i, 0) * 45ms); }
.ins-bar-l { font-size:11px; fill:var(--t-500); font-family:var(--font-sans); }
.ins-stack { display:flex; height:14px; border-radius:99px; overflow:hidden; background:var(--s-3); transform-origin:left; animation:insWide .7s var(--ease-out) both; animation-delay:300ms; }
.ins-stack i { display:block; flex:0 0 var(--w); min-width:3px; }
[data-k="shared"] > i, .ins-stack i[data-k="shared"] { background:var(--accent); }
[data-k="page"] > i, .ins-stack i[data-k="page"] { background:color-mix(in srgb, var(--accent) 62%, var(--s-1)); }
[data-k="kept"] > i, .ins-stack i[data-k="kept"] { background:color-mix(in srgb, var(--accent) 30%, var(--s-1)); }
[data-k="waiting"] > i, .ins-stack i[data-k="waiting"] { background:color-mix(in srgb, var(--sem-amber) 55%, var(--s-1)); }
.ins-legend { margin:var(--sp-4) 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:var(--sp-2); }
.ins-legend li { display:flex; align-items:center; gap:var(--sp-2); font-size:var(--fs-small); color:var(--t-300); }
.ins-legend li > i { width:10px; height:10px; border-radius:50%; flex:none; }
.ins-legend li > span { flex:1; min-width:0; }
.ins-legend li > b { font-weight:600; color:var(--t-100); font-variant-numeric:tabular-nums; }
.ins-lrows { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:var(--sp-3); }
.ins-lrows li { display:grid; grid-template-columns:minmax(72px, auto) 1fr auto; align-items:center; gap:var(--sp-3); font-size:var(--fs-small); color:var(--t-300); animation:youIn var(--dur-base) var(--ease-out) both; animation-delay:calc(320ms + var(--i, 0) * 60ms); }
.ins-lrows li > b { font-weight:600; color:var(--t-100); font-variant-numeric:tabular-nums; }
.ins-lbar { display:block; height:8px; border-radius:99px; background:var(--s-3); overflow:hidden; }
.ins-lbar i { display:block; height:100%; width:var(--w); border-radius:99px; background:var(--accent); transform-origin:left; animation:insWide .7s var(--ease-out) both; animation-delay:calc(360ms + var(--i, 0) * 60ms); }
.ins-none { margin:0; font-size:var(--fs-small); color:var(--t-500); }
.ins-more { margin-top:var(--sp-6); }
@media (max-width: 1100px) { .ins-viz { grid-template-columns:1fr 1fr; } .ins-chart { grid-column:1 / -1; } }
@media (max-width: 900px) { .ins-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } .ins-tile[data-ins="plan"] { grid-column:1 / -1; } }
@media (max-width: 600px) { .ins-viz { grid-template-columns:1fr; } .ins-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { .you.open .you-body > *, .you.open .drawer-foot, .ins-tile, .ins-card, .ins-bar-v, .ins-bar-n, .ins-stack, .ins-lrows li, .ins-lbar i, .you-more > summary .you-more-caret { animation:none; transition:none; } }
html.calm .you.open .you-body > *, html.calm .you.open .drawer-foot, html.calm .ins-tile, html.calm .ins-card, html.calm .ins-bar-v, html.calm .ins-bar-n, html.calm .ins-stack, html.calm .ins-lrows li, html.calm .ins-lbar i { animation:none; }

/* ── round 320: no Home. The app opens on Create; Copy Deck item 13's banner and today's ideas live there, and Content takes the upload.
   The older .home-* rules above stay for what other screens borrow (.home-bar and .home-none on Insights); the rest of them is unused. */
.plan-banner { display:flex; align-items:center; gap:var(--sp-3); width:min(100%, 680px); margin:0 0 var(--sp-6); padding:var(--sp-3) var(--sp-4); border-radius:var(--r-3); font-size:var(--fs-small); line-height:1.45; text-align:left; color:var(--t-100); background:color-mix(in srgb, var(--sem-amber) 12%, transparent); border:1px solid color-mix(in srgb, var(--sem-amber) 32%, transparent); }
.plan-banner[data-kind="paused"] { background:color-mix(in srgb, var(--sem-red) 8%, transparent); border-color:color-mix(in srgb, var(--sem-red) 28%, transparent); }
.plan-banner > i { font-size:22px; color:var(--sem-amber); flex:none; }
.plan-banner[data-kind="paused"] > i { color:var(--sem-red); }
.plan-banner span { flex:1; }
.plan-banner .tiny { margin:0; flex:none; }
@media (max-width:560px) { .plan-banner { flex-wrap:wrap; } .plan-banner .tiny { width:100%; justify-content:center; } }
.ideas { display:flex; flex-wrap:wrap; justify-content:center; gap:var(--sp-2); width:min(100%, 680px); margin:var(--sp-4) auto 0; }
.idea-chip { display:inline-flex; align-items:center; gap:8px; max-width:100%; min-height:38px; padding:6px 14px 6px 10px; border-radius:99px; border:1px solid var(--line); background:var(--s-1); color:var(--t-200); font:inherit; font-size:var(--fs-small); text-align:left; cursor:pointer; transition:transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.idea-chip i { font-size:16px; color:var(--accent); flex:none; }
.idea-chip b { font-weight:500; }
@media (hover:hover) and (pointer:fine) { .idea-chip:hover { transform:translateY(-1px); border-color:color-mix(in srgb, var(--accent) 40%, var(--line)); background:color-mix(in srgb, var(--accent) 6%, var(--s-1)); color:var(--t-100); } }
.idea-chip:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.idea-chip.ghost { width:min(300px, 100%); height:34px; border-color:transparent; background:linear-gradient(90deg, var(--s-2) 25%, var(--s-3) 50%, var(--s-2) 75%); background-size:200% 100%; animation:ideaShimmer 1.4s linear infinite; }
.idea-chip.ghost:nth-child(2) { width:min(260px, 100%); } .idea-chip.ghost:nth-child(3) { width:min(280px, 100%); }
@keyframes ideaShimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }
@keyframes ideaIn { from { opacity:0; translate:0 6px; } to { opacity:1; translate:0 0; } }
.idea-chip[data-idea] { animation:ideaIn .4s var(--ease-out) both; animation-delay:calc(var(--i, 0) * 60ms); }
.sr-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@media (prefers-reduced-motion: reduce) { .idea-chip, .idea-chip[data-idea], .idea-chip.ghost { animation:none; transition:none; } }
html.calm .idea-chip[data-idea], html.calm .idea-chip.ghost { animation:none; }
/* Content: Upload a video beside New video */
.lib-actions { grid-area:new; display:flex; align-items:center; gap:var(--sp-2); justify-self:end; }
.lib-up { display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 var(--sp-4); border-radius:12px; border:1px solid var(--line); background:var(--s-1); color:var(--t-200); font:inherit; font-size:var(--fs-small); font-weight:600; cursor:pointer; transition:border-color var(--dur-fast), color var(--dur-fast); }
.lib-up i { font-size:18px; color:var(--accent); }
.lib-up:hover { border-color:color-mix(in srgb, var(--accent) 40%, var(--line)); color:var(--t-100); }
.lib-up:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:600px) { .lib-up span, .lib-top .primary.lib-new span { display:none; } .lib-up, .lib-top .primary.lib-new { width:44px; min-width:44px; padding:0; justify-content:center; } .lib-up i, .lib-top .primary.lib-new i { margin:0; } }   /* on a phone both are icons with their names as labels, so the two scope tabs keep their room; the Create tab sits under the thumb anyway */
/* round 320, Sergio on the first screen: the presenter row in two lines and better drawn. One soft card under the box: the presenter
   (the face round, "Presented by someone else" as the line, the name and the disclosure under it, Change as a pill on the right), a
   hairline, then the two things made once (Create your avatar, Clone your voice) as chips with their icons. The words are the same. */
.share-foot { flex-direction:column; align-items:stretch; gap:0; width:min(100%, 680px); margin:var(--sp-6) auto 0; padding:0; border:1px solid var(--line); border-radius:var(--r-3); background:var(--s-1); overflow:hidden; text-align:left; }
.share-foot:not(:has(.asrow > *, .as-choose)) { display:none; }
.asrow, .as-choose { display:flex; align-items:center; gap:var(--sp-3); width:100%; margin:0; padding:var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); border:0; border-radius:0; background:transparent; }
.asrow .ic { width:44px; height:44px; border-radius:50%; background:var(--s-3); }
.asrow .t { flex:1 1 200px; min-width:0; font-size:var(--fs-body); font-weight:600; color:var(--t-100); }
.asrow .t small { display:block; margin:2px 0 0; font-size:var(--fs-small); font-weight:400; color:var(--t-400); }
.asrow .t small::before { content:none; }
.asrow .mini { flex:none; min-height:44px; padding:0 var(--sp-4); border-radius:99px; border:1px solid var(--line); background:var(--s-0); color:var(--t-100); font-weight:600; transition:border-color var(--dur-fast), background var(--dur-fast); }
.asrow .mini i { display:inline-block; color:var(--accent); }
.asrow .mini:hover { text-decoration:none; background:color-mix(in srgb, var(--accent) 6%, var(--s-0)); border-color:color-mix(in srgb, var(--accent) 40%, var(--line)); }
.as-choose { border:0; border-radius:0; padding:var(--sp-3) var(--sp-4); }
.youkit { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:var(--sp-2); margin:0; padding:var(--sp-3) var(--sp-4); border-top:1px solid var(--line); }
.yk { display:inline-flex; grid-template-columns:none; align-items:center; gap:8px; min-height:44px; padding:0 14px 0 10px; border-radius:99px; border:1px solid var(--line); background:var(--s-0); color:var(--t-200); transition:transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast); }
.yk-ic { display:grid; width:24px; height:24px; border-radius:50%; font-size:14px; }
.yk-t b { font-size:var(--fs-small); font-weight:600; color:var(--t-100); }
.yk-t small { display:none; }
.yk > i { font-size:13px; color:var(--t-500); }
@media (hover:hover) and (pointer:fine) { .yk:hover { transform:translateY(-1px); border:1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background:color-mix(in srgb, var(--accent) 6%, var(--s-0)); } }
.yk:focus-visible, .asrow .mini:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:600px) { .share-foot { margin-top:var(--sp-4); } .asrow, .as-choose { padding:var(--sp-3); } .asrow .mini { width:100%; justify-content:center; } .youkit { padding:var(--sp-3); } .yk { flex:1 1 auto; justify-content:center; } }
@media (prefers-reduced-motion: reduce) { .yk, .asrow .mini { transition:none; } @media (hover:hover) and (pointer:fine) { .yk:hover { transform:none; } } }
.yk-ic { order:1; } .yk-t { order:2; } .yk > i { order:3; }   /* the icon, the name, then the plus or the pencil */
@media (max-width:600px) { .asrow { flex-wrap:wrap; } .asrow .t { flex:1 1 160px; } .asrow .mini { flex:1 1 100%; width:auto; } }   /* the presenter and the words on one line, Change under them */

/* ── round 321: the box is the screen. Sergio, 27 September: the box for making a video must be evidently the most important thing on
   the first screen; the presenter card and the chips competed with it. The box grows (wider, taller, bigger words, a soft lift with an
   accent glow) and everything under it turns into footnotes: the ideas as hairline chips, the presenter and the two things made once as
   small muted lines with no card around them, still two lines, still the same words and the same 44 px targets. */
.sharebox { width:min(100%, 760px); margin-top:var(--sp-8); padding:var(--sp-4) var(--sp-4) var(--sp-3); border-radius:var(--r-4); border:1px solid color-mix(in srgb, var(--accent) 22%, var(--line-strong)); box-shadow:0 1px 2px rgba(0,0,0,.04), 0 28px 70px -36px color-mix(in srgb, var(--accent) 45%, transparent); transition:border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.sharebox:focus-within { border-color:var(--accent); box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), 0 32px 80px -36px color-mix(in srgb, var(--accent) 55%, transparent); }
.sharebox textarea, .ta-ph { font-size:20px; line-height:1.45; }
.sharebox textarea { min-height:112px; }
.sharebar { margin-top:var(--sp-3); padding-top:var(--sp-3); }
.share-note { margin-top:var(--sp-3); font-size:var(--fs-caption); }
.ideas { width:min(100%, 760px); margin-top:var(--sp-4); }
.idea-chip { min-height:34px; padding:4px 12px 4px 9px; border-color:var(--line); background:transparent; color:var(--t-400); font-size:13px; }
.idea-chip i { font-size:14px; color:var(--t-500); }
@media (hover:hover) and (pointer:fine) { .idea-chip:hover { transform:none; color:var(--t-100); background:var(--s-1); border-color:color-mix(in srgb, var(--accent) 35%, var(--line)); } }
.idea-chip:hover i { color:var(--accent); }
.share-foot { width:min(100%, 760px); margin-top:var(--sp-8); border:0; border-radius:0; background:transparent; overflow:visible; }
.asrow, .as-choose { justify-content:center; gap:var(--sp-3); padding:0; }
.asrow .ic { width:32px; height:32px; }
.asrow .t { flex:0 1 auto; font-size:var(--fs-small); font-weight:500; color:var(--t-300); }
.asrow .t small { display:inline; margin:0 0 0 6px; font-size:var(--fs-small); font-weight:400; color:var(--t-500); }
.asrow .t small::before { content:'· '; }
.asrow .mini { min-height:44px; padding:0 var(--sp-2); border:0; background:transparent; color:var(--accent); font-weight:600; }
.asrow .mini i { display:none; }
.asrow .mini:hover { background:transparent; border:0; text-decoration:underline; text-underline-offset:3px; }
.youkit { justify-content:center; gap:var(--sp-4); padding:0; border-top:0; }
.yk { min-height:44px; padding:0 var(--sp-2); border:0; background:transparent; color:var(--t-400); }
.yk-ic { width:22px; height:22px; font-size:13px; color:var(--t-400); background:var(--s-3); }
.yk-t b { font-weight:500; color:var(--t-300); }
.yk > i { display:none; }
@media (hover:hover) and (pointer:fine) { .yk:hover { transform:none; border:0; background:transparent; } }
.yk:hover .yk-t b { color:var(--t-100); text-decoration:underline; text-underline-offset:3px; }
.yk:hover .yk-ic { color:var(--accent); background:color-mix(in srgb, var(--accent) 10%, transparent); }
@media (max-width:600px) { .sharebox { padding:var(--sp-3); } .sharebox textarea { min-height:120px; font-size:18px; } .ta-ph { font-size:18px; } .asrow { flex-wrap:wrap; row-gap:0; } .asrow .t { flex:1 1 200px; } .asrow .t small { display:block; margin:2px 0 0; } .asrow .t small::before { content:none; } .asrow .mini { flex:0 0 auto; width:auto; } .youkit { gap:var(--sp-2); } .yk { flex:0 0 auto; } }
/* the notice while the avatar or the voice is missing (round 321): tinted, one line, the two ways in, a close; it fades out when closed */
.nudge { display:flex; align-items:center; gap:var(--sp-3); width:min(100%, 760px); margin:0 0 var(--sp-6); padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); border-radius:var(--r-3); border:1px solid color-mix(in srgb, var(--accent) 18%, transparent); background:color-mix(in srgb, var(--accent) 7%, transparent); text-align:left; font-size:var(--fs-small); line-height:1.45; color:var(--t-200); animation:ideaIn .4s var(--ease-out) both; transition:opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out); }
.nudge.out { opacity:0; translate:0 -6px; }
.nudge > i { flex:none; font-size:20px; color:var(--accent); }
.nudge p { flex:1 1 240px; min-width:0; margin:0; }
.nudge b { color:var(--t-100); }
.nudge-acts { display:flex; gap:var(--sp-1); flex:none; }
.nudge .tiny { margin:0; min-height:36px; padding:0 12px; background:var(--s-1); color:var(--t-100); }
.nudge .tiny[hidden] { display:none; }
.nudge-x { flex:none; display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:50%; background:transparent; color:var(--t-500); cursor:pointer; transition:background var(--dur-fast), color var(--dur-fast); }
.nudge-x:hover { background:color-mix(in srgb, var(--accent) 10%, transparent); color:var(--t-100); }
.nudge-x:focus-visible, .nudge .tiny:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media (max-width:600px) { .nudge { flex-wrap:wrap; padding:var(--sp-3); } .nudge p { flex:1 1 200px; } .nudge-acts { width:100%; padding-left:calc(20px + var(--sp-3)); } .nudge-x { order:-1; margin-left:auto; } .nudge > i { order:-2; } .nudge p { order:-1; } }
@media (prefers-reduced-motion: reduce) { .nudge { animation:none; transition:none; } }
html.calm .nudge { animation:none; }

/* ═══════════════════════════════════════════════════════════════════════════
   Round 326 (29 September 2026). Sergio: the closable notice pushed everything down and the foot of Create fell off the screen; Create must
   fit the screen with no scroll; the notice goes under the top bar as a strip; the pills under the box never finished loading (app.js); and
   the foot of Create mixed a left-justified row with centred links.
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── the notice as a strip under the top bar: full width, one line, its two buttons and the close; the stage is padded by it ── */
#youNudge { position:fixed; top:var(--tb-h); left:0; right:0; z-index:59; width:auto; max-width:none; margin:0; padding:4px 12px 4px 20px; border-radius:0; border:0; border-bottom:1px solid var(--line); background:var(--s-1); justify-content:center; animation:none; }
#youNudge p { flex:0 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#youNudge .tiny { min-height:44px; }
#youNudge .nudge-x { width:44px; height:44px; }
body:has(#youNudge:not([hidden]):not(.out)) { --banner-h:53px; }   /* drops the moment the close starts (.out), so the column glides while the strip fades */
#stage { padding-top:calc(var(--tb-h) + var(--banner-h, 0px) + var(--sp-4)); }
.step { max-height:calc((100dvh - var(--tb-h) - var(--banner-h, 0px) - 40px) / var(--zoom)); }
@media (max-width:1180px) { .nudge-more { display:none; } }
/* while the strip offers the avatar and the voice, the same two links do not repeat under the sheet */
body:has(#youNudge:not([hidden]):not(.out)) #youKit { display:none; }   /* the two links rise in while the strip fades, not after it */
/* Content's sticky head starts under the strip too */
.lib-top { padding-top:calc(var(--tb-h) + var(--banner-h, 0px) + 18px); }
/* ── the top anchor of Create: high and still, but no longer a fifth of a small screen ── */
[data-step="share"] { padding-top:clamp(8px, 14vh - 60px, 80px); }
[data-step="share"]::before { top:calc(clamp(8px, 14vh - 60px, 80px) - 40px); }
/* ── the ladder: what gives way as the screen gets shorter, so Create never scrolls ── */
@media (max-height:880px) { .ideas { margin-top:var(--sp-4); } .share-foot { margin-top:var(--sp-4); } }
@media (max-height:740px) { [data-step="share"] .sub { display:none; } }
@media (max-height:680px) { .sharebox textarea { min-height:72px; } .share-foot { margin-top:var(--sp-3); } .ideas { margin-top:var(--sp-3); } }
@media (max-height:600px) { #ideas { display:none; } }
/* ── phones and the iPad in portrait: the strip keeps one line (its buttons live under the sheet as the two links), no top anchor ── */
@media (max-width:780px) {
  #youNudge { flex-wrap:nowrap; padding:4px 4px 4px 14px; }
  #youNudge .nudge-acts { display:none; }
  body:has(#youNudge:not([hidden]):not(.out)) #youKit { display:flex; }
  #stage { padding-top:calc(var(--tb-h) + var(--banner-h, 0px) + var(--sp-4)); }
  .step { max-height:calc((100dvh - var(--tb-h) - var(--banner-h, 0px) - 64px - var(--sp-8) - env(safe-area-inset-bottom)) / var(--zoom)); }
  [data-step="share"] { padding-top:0; }
  [data-step="share"]::before { top:-40px; }
  .lib-top { padding-top:calc(var(--tb-h) + var(--banner-h, 0px) + 14px); }
}
/* ── under the sheet: one centred line and one verb, the same shape whether a presenter is chosen or not ── */
.share-foot { align-items:center; text-align:center; gap:var(--sp-1); }
.asrow, .as-choose { width:auto; max-width:100%; justify-content:center; flex-wrap:wrap; gap:0 10px; padding:0; }
.as-choose { min-height:44px; padding:0 6px 0 4px; border:0; border-radius:12px; background:transparent; cursor:pointer; }
.as-choose:hover, .as-choose:focus-visible { background:color-mix(in srgb, var(--accent) 8%, var(--s-1)); }
.asrow .ic, .as-choose .ic { width:28px; height:28px; border-radius:50%; font-size:15px; }
.asrow .t, .as-choose .t { flex:0 1 auto; font-size:var(--fs-small); font-weight:500; color:var(--t-400); text-align:center; }
.as-choose > i { display:none; }
.asrow .mini, .as-choose .go { display:inline-flex; align-items:center; min-height:44px; padding:0 var(--sp-2); border-radius:10px; font-size:var(--fs-small); font-weight:600; color:var(--accent); }
.as-choose:hover .go { text-decoration:underline; text-underline-offset:3px; }
.youkit { justify-content:center; gap:0 var(--sp-4); }
@media (max-width:600px) { .asrow .t { flex:0 1 auto; } .asrow .t small { display:inline; margin:0 0 0 6px; } }
/* ── after the independent review of round 326 ── */
/* the two doors of "How you appear" one under the other, as rows (Sergio, 29 September) */
.you-appear { grid-template-columns:1fr; }
.ya { flex-direction:row; align-items:center; min-height:64px; gap:var(--sp-3); }
.ya > i:last-child { position:static; margin-left:auto; }
/* the screens in library mood pad themselves: they clear the strip too */
.asset-page { padding-top:calc(var(--tb-h) + var(--banner-h, 0px) + 18px); }
.insights { padding-top:calc(var(--tb-h) + var(--banner-h, 0px) + var(--sp-12)); }
@media (max-width:560px) { .insights { padding-top:calc(var(--tb-h) + var(--banner-h, 0px) + var(--sp-6)); } }
/* the making screen gives up a little air on a short screen, so Start another stays in view with the strip showing */
@media (max-height:700px) { [data-step="making"] .work { gap:8px; margin-top:8px; } [data-step="making"] .sub { margin-top:4px; } [data-step="making"] .timeleft { margin-top:0; } }
/* the strip follows the text-size setting like the top bar and the stage do */
#youNudge { zoom:var(--zoom); }
/* ── motion for the strip and what moves around it (round 326, the smoothness pass, corrected after the frame-by-frame audit) ── */
/* the strip settles in from under the top bar (backwards, never both: a filled last keyframe would beat the .out fade); closing fades it
   up while the column glides at the same time, since --banner-h drops the moment .out is set: one 300 ms motion, not two in series */
@keyframes nudgeIn { from { opacity:0; translate:0 -8px; } to { opacity:1; translate:0 0; } }
#youNudge { animation:nudgeIn var(--dur-base) var(--ease-out) backwards; transition:opacity 260ms var(--ease-out), translate 260ms var(--ease-out); }
#youNudge.out { animation:none; opacity:0; translate:0 -6px; }
.nudge { animation-fill-mode:backwards; }
body:has(#youNudge:not([hidden]):not(.out)) { --banner-h:53px; }
/* the follow-along runs only while the strip is closing (body.strip-closing, set by the close for 420 ms): a load lands once, and a change
   of screen never slides the stage in either direction */
body.strip-closing #stage { transition:padding-top 300ms var(--ease-out); }
body.strip-closing [data-step="share"] { transition:max-height 300ms var(--ease-out); }
/* the two links under the sheet rise in when the strip goes (a display change restarts the animation) */
#youKit { animation:ideaIn var(--dur-base) var(--ease-out) backwards; }
/* the idea placeholders fade before the row folds (the fold itself glides the lines below, flipStep in paintIdeas); the transition lives
   on .out only, so it never fights the screen's own entrance */
#ideas.out { opacity:0; transition:opacity 220ms var(--ease-out); }
/* the close button of a sheet: no opacity in its transition, so a tween on it is not re-transitioned by CSS */
.x { transition-property:transform, background-color, color; transition-duration:var(--dur-fast); transition-timing-function:var(--ease-out); }
/* a toast grows into its place and folds away, so its neighbours glide */
.toast { overflow:hidden; }
@media (prefers-reduced-motion:reduce) { #youNudge, #youKit { animation:none !important; } #stage, [data-step="share"], #ideas, #youNudge, .toast { transition:none !important; } }
html.calm #youNudge, html.calm #youKit { animation:none !important; }
html.calm #stage, html.calm [data-step="share"], html.calm #ideas, html.calm #youNudge { transition:none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   Round 327 (30 September 2026). Sergio: what the plan does not include must be visible, marked, and lead to the plans, wherever it
   appears; and a language chosen at the offer starts the moment the English exists. One notice and one mark for every place.
   ═══════════════════════════════════════════════════════════════════════════ */
.plan-gate { display:flex; align-items:center; gap:var(--sp-3); padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); border-radius:var(--r-3); border:1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background:color-mix(in srgb, var(--accent) 7%, var(--s-1)); text-align:left; font-size:var(--fs-small); line-height:1.45; color:var(--t-300); }
.plan-gate > i { flex:none; font-size:20px; color:var(--accent); }
.plan-gate p { flex:1 1 auto; min-width:0; margin:0; text-wrap:pretty; }
.plan-gate b { font-weight:600; color:var(--t-100); }
.plan-gate-go { flex:none; min-height:44px; padding:0 var(--sp-4); border:0; border-radius:var(--r-2); background:var(--accent); color:var(--color-primary-foreground); font:inherit; font-size:var(--fs-small); font-weight:600; white-space:nowrap; cursor:pointer; transition:filter var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.plan-gate-go:hover { filter:brightness(1.06); }
.plan-gate-go:active { transform:scale(.96); }
.plan-gate-go:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
/* a tap on something locked answers where the notice is: one soft ring, once */
@keyframes gateAsk { from { box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 38%, transparent); } to { box-shadow:0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); } }
.plan-gate.pulse { animation:gateAsk 650ms var(--ease-out); }
/* the mark on what the plan does not include now */
.plan-tag { display:inline-flex; align-items:center; gap:4px; margin-left:auto; padding:2px 8px 2px 6px; border-radius:999px; font-size:12px; font-weight:600; line-height:1.4; color:var(--accent); background:color-mix(in srgb, var(--accent) 10%, transparent); white-space:nowrap; }
.plan-tag i { font-size:12px; }
.lchip.locked, #kmenu .dub-grid button.locked, .langmenu [data-lmmake].locked { color:var(--t-400); border-style:dashed; cursor:pointer; }
.lchip.locked .plan-tag { margin-left:6px; }
/* where the notice sits in each place */
.lang-gate { margin:0 0 var(--sp-4); }
.om-gate { margin-top:var(--sp-3); }
.om-beta { margin:10px 0 0; font-size:13px; line-height:1.45; color:var(--t-500); text-align:right; }
.om-beta b { font-weight:600; color:var(--t-700, inherit); }
@media (max-width:720px) { .om-beta { text-align:center; } }
.om-gate .plan-gate { padding:var(--sp-3) var(--sp-4); }
#kmenu:has(.km-gate) { width:min(440px, calc(100vw - 24px)); }
.km-gate { padding:var(--sp-1) var(--sp-1) var(--sp-2); }
.km-gate .plan-gate { flex-wrap:wrap; align-items:flex-start; padding:var(--sp-3); }
.km-gate .plan-gate > i { margin-top:1px; }
.km-gate .plan-gate p { flex:1 1 200px; }
#kmenu .km-gate .plan-gate-go { width:100%; height:44px; justify-content:center; color:var(--color-primary-foreground); }
#kmenu .dub-grid button .plan-tag { margin-left:auto; }
#kmenu .plan-tag i, .langmenu .plan-tag i { width:auto; font-size:12px; color:inherit; }
/* in the viewer's narrow menu the mark is the lock alone; the notice under the chips says the rest */
.langmenu .plan-tag { gap:0; margin-left:6px; padding:3px 5px; font-size:0; }
.langmenu .capmenu-note .plan-gate { margin-top:var(--sp-2); }
.review-dub.gated { align-items:center; gap:var(--sp-3); padding:var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); border-radius:var(--r-3); border:1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background:color-mix(in srgb, var(--accent) 7%, var(--s-1)); }
.review-dub.gated > i { color:var(--accent); }
.review-dub.gated b { color:var(--t-100); font-weight:600; }
@media (max-width:600px) { .plan-gate { flex-wrap:wrap; } .plan-gate-go { width:100%; } }
@media (prefers-reduced-motion:reduce) { .plan-gate.pulse { animation:none; } .plan-gate-go { transition:none; } }
html.calm .plan-gate.pulse { animation:none; }
/* round 327, the three features of the cards: where each notice sits */
.dest-gate { padding:0 var(--sp-1) var(--sp-3) 52px; }
.hub-gate { margin:0 0 var(--sp-2); }
.hub-row.locked .hub-logo { color:var(--t-500); }
.hub-row.locked .hub-info small { color:var(--t-500); }
.hub-row .plan-tag { margin-left:auto; }
.ws-gate { padding:0 24px var(--sp-2); }
.ins-gate { margin-top:var(--sp-6); }
.dest-head strong .plan-tag, .row strong .plan-tag { margin-left:8px; vertical-align:1px; }
@media (max-width:780px) { .dest-gate { padding-left:var(--sp-1); } .ws-gate { padding:0 var(--sp-4) var(--sp-2); } }


/* ── round 328: the reading plan. One card, one row per step, in the app's own row pattern (Account, the menus): the icon in a 24 px column,
   the title at 16 px and 600, the detail at 15 px under it, the figure at 14 px on the right, 56 px a row, radius 14. The ring spins
   while the row's work runs and the tick draws when it is done; a drawer opens under the running row and closes when it ticks; the right
   column counts the seconds and then keeps the result. The accent while running, the green of an approval when done. Sized for readers
   over fifty (Sergio, 30 September): no grey lighter than --t-500, one thing moving at a time. The states are pr-running and pr-done:
   .done is the done screen's grid and .running is free, but neither is safe to borrow ── */
.plan-run { list-style:none; margin:24px auto 0; padding:6px; width:min(100%, 560px); background:var(--s-1); border:1px solid var(--line); border-radius:var(--r-3); text-align:left; }
.plan-run > li { display:grid; grid-template-columns:24px 1fr auto; align-items:start; gap:12px; min-height:56px; padding:12px 12px; border-radius:14px; text-align:left; transition:background-color .4s ease; }
.plan-run > li.pr-running { background:rgba(var(--op-accent-rgb), .06); }
.plan-run .mark { display:block; width:22px; height:22px; margin:5px 0 0 1px; }
.plan-run .mark svg { display:block; width:100%; height:100%; overflow:visible; }
.plan-run .ring { fill:none; stroke:var(--line-strong); stroke-width:1.6; transition:stroke .35s ease; }
.plan-run > li.pr-running .ring { stroke:var(--accent); stroke-linecap:round; stroke-dasharray:12 35; transform-origin:50% 50%; animation:planSpin .9s linear infinite; }
.plan-run > li.pr-done .ring { stroke:var(--sem-green); }
.plan-run .tick { fill:none; stroke:var(--sem-green); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:1; transition:stroke-dashoffset .4s cubic-bezier(.16, 1, .3, 1); }
.plan-run > li.pr-done .tick { stroke-dashoffset:0; }
.plan-run .pr-body { min-width:0; padding-top:5px; }
.plan-run .lbl { display:block; font-size:16px; font-weight:600; line-height:1.4; color:var(--t-500); transition:color .4s ease; }
.plan-run > li.pr-running .lbl, .plan-run > li.pr-done .lbl { color:var(--t-100); }
.plan-run .pr-drawer { display:grid; grid-template-rows:0fr; transition:grid-template-rows .5s cubic-bezier(.16, 1, .3, 1); }
.plan-run > li.pr-running .pr-drawer { grid-template-rows:1fr; }
.plan-run .pr-drawer ul { overflow:hidden; min-height:0; margin:0; padding:0; list-style:none; }
.plan-run .pr-sub { display:grid; grid-template-rows:0fr; margin-top:0; opacity:0; transition:grid-template-rows .4s cubic-bezier(.16, 1, .3, 1), margin-top .4s cubic-bezier(.16, 1, .3, 1), opacity .35s ease; }
.plan-run .pr-sub.in { grid-template-rows:1fr; margin-top:4px; opacity:1; }
.plan-run .pr-sub:first-child.in { margin-top:2px; }
.plan-run .pr-sub > span { display:block; overflow:hidden; min-height:0; font-size:15px; line-height:1.45; color:var(--t-400); }
.plan-run .out { padding-top:6px; font-size:14px; line-height:1.4; color:var(--t-400); white-space:nowrap; font-variant-numeric:tabular-nums; opacity:0; transition:opacity .4s ease; }
.plan-run > li.pr-running .out, .plan-run > li.pr-done .out { opacity:1; }
@keyframes planSpin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .plan-run > li, .plan-run .ring, .plan-run .tick, .plan-run .lbl, .plan-run .pr-drawer, .plan-run .pr-sub, .plan-run .out { transition-duration:.001ms !important; }
  .plan-run > li.pr-running .ring { animation:none; stroke-dasharray:none; }
}

/* ── round 329: one hover language (Sergio, 30 September: "algunos botones no tienen un hover suficientemente visible"). Measured by
   scripts/check/hover-audit.mjs before this block: 28 of 90 controls changed nothing under the pointer and 6 changed too little (a 3 to 5%
   grey over a near-white ground). One tint drawn from the accent, so it reads on any ground and matches the selected state; one duration;
   no movement, because gsap owns the arrival of many of these elements and a transform or opacity transition would fight it (the
   29 September lesson), and because a control that slides under an older reader's pointer is harder to hit. Only for a pointer that
   can hover: a finger never leaves a control lit ── */
:root { --hover-tint:rgba(var(--op-accent-rgb), .10); --hover-line:rgba(var(--op-accent-rgb), .38); --hover-dur:180ms; }
html.op-dark { --hover-tint:rgba(var(--op-accent-rgb), .22); }
.tb-btn, .tb-brand, .tiny, .mini, .ghost, .primary, .lib-up, .lib-sort, .lib-new, .lib-seg button, .lib-scope button, .row, .ya, .you-out, .x, .nudge-x, .kb, .ca, .card, .om-tile, .plan-gate-go, .stepback, .idea, .lm-actions button, .done-next, .dest-head, .hub-row, .vrow, .plan-gate-go { transition:background-color var(--hover-dur) var(--ease-out), color var(--hover-dur) var(--ease-out), border-color var(--hover-dur) var(--ease-out), box-shadow 220ms var(--ease-out), filter var(--hover-dur) var(--ease-out); }
.send { transition:background-color var(--hover-dur) var(--ease-out), color var(--hover-dur) var(--ease-out), box-shadow 220ms var(--ease-out), transform .15s var(--ease-out), opacity .15s var(--ease-out); }
@media (hover:hover) and (pointer:fine) {
  .tb-btn:hover, .tb-brand:hover { background:var(--hover-tint); color:var(--t-100); }
  .tb-btn[aria-current="true"]:hover { background:rgba(var(--op-accent-rgb), .17); }
  .tiny:hover, .mini:hover, .ghost:hover, .lib-up:hover, .lib-sort:hover, .you-out:hover, .stepback:hover, .lib-seg button:hover, .lib-scope button:hover { background:var(--hover-tint); color:var(--t-100); border-color:var(--hover-line); transform:none; }
  .lib-seg button[aria-selected="true"]:hover, .lib-scope button[aria-selected="true"]:hover { background:transparent; }   /* the moving thumb already sits behind the chosen one */
  .row:hover, summary.row:hover, .ya:hover, .dest-head:hover, .hub-row:hover, .vrow:hover { background:var(--hover-tint); transform:none; }
  .ya:hover { border-color:var(--hover-line); }
  .primary:hover, .send:not(.send-alt):hover, .plan-gate-go:hover, .lib-new:hover, .done-next:hover { background:color-mix(in srgb, var(--accent) 86%, #000); filter:none; box-shadow:0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
  .send.send-alt:hover { background:var(--hover-tint); color:var(--t-100); }
  .card:hover { border-color:var(--hover-line); box-shadow:var(--shadow); }
  .om-tile:hover { border-color:var(--hover-line); background:rgba(var(--op-accent-rgb), .04); }
  .x:hover, .nudge-x:hover, .kb:hover { background:var(--hover-tint); color:var(--t-100); }
  .ca:hover { filter:brightness(1.06); }
  .idea:hover { background:var(--hover-tint); border-color:var(--hover-line); color:var(--t-100); }
}

/* ── round 330: the three ways to appear (Sergio, 30 September, a frame in hand: the kind's chip and Our pick collided on the avatar card, that
   card carried four things at once and recommended an avatar that did not exist yet, and the line under each title was hidden on any
   laptop). The picture fills the card and the card is narrower instead, so the face stays in view through the crop; the title says the kind,
   so the chip goes; Our pick alone, top left, and only on a way that is ready; the line under the title stays until the window is really
   short; the avatar card before there is an avatar keeps its silhouette and says what is left to do in words, under the title ── */
[data-step="presence"] .choices { width:min(100%, 840px); gap:var(--sp-4); margin-top:var(--sp-6); }
[data-step="presence"] .choices:has([data-presence="record"]:not([hidden])) { width:min(100%, 1100px); }
[data-step="presence"] .choice { padding:10px 10px 16px; gap:6px; }
[data-step="presence"] .ch-art { width:100%; height:auto; aspect-ratio:4/5; max-height:min(280px, 30vh); min-height:150px; margin:0; }
[data-step="presence"] .ch-badge, [data-step="presence"] .ch-need { display:none; }
[data-step="presence"] .ch-reco { left:10px; right:auto; top:10px; padding:5px 10px; font-size:12px; }
[data-step="presence"] .ch-ghost { font-size:72px; }
[data-step="presence"] .ch-t { margin-top:8px; font-size:17px; }
[data-step="presence"] .ch-d { display:block; font-size:14px; line-height:1.4; color:var(--t-400); max-width:28ch; }
@media (max-height:820px) {
  [data-step="presence"] .ch-art { height:auto; max-height:min(280px, 30vh); }
  [data-step="presence"] .ch-d, [data-step="presence"] .sub { display:block; }
}
@media (max-height:640px) {
  [data-step="presence"] .ch-art { max-height:24vh; }
  [data-step="presence"] .ch-d, [data-step="presence"] .sub { display:none; }
}

/* ── round 370 (Sergio, 6 October: "algo más cool, más bonito, más intuitivo, mejor animado" for the microphone; round 331 drew the first
   band). The band inside the box while the microphone is open, in the brand's colour (red read as an alarm): a microphone with a halo
   that swells with the voice itself, the word, the seconds, the wave drawn from the sound with its older bars fading, one hint; while the
   model writes it down, a light runs along a line in place of the wave. The band grows into its place and leaves the same way, and the
   box breathes while it listens ── */
.dictlive { display:flex; align-items:center; gap:12px; margin:0 0 8px; padding:9px 14px; border-radius:14px; color:var(--accent); background:color-mix(in srgb, var(--accent) 7%, var(--s-1)); overflow:hidden; }
.dl-mic { position:relative; flex:none; width:32px; height:32px; display:grid; place-items:center; color:var(--accent); }
.dl-mic .ph { position:relative; z-index:1; font-size:17px; }
.dl-halo { position:absolute; inset:0; border-radius:50%; background:color-mix(in srgb, var(--accent) 24%, transparent); transform:scale(.85); opacity:.3; transition:transform .09s linear, opacity .12s linear; }
.dictlive[data-state="writing"] .dl-halo { animation:dlBreath 1.6s ease-in-out infinite; transition:none; }
@keyframes dlBreath { 0%, 100% { transform:scale(.85); opacity:.35; } 50% { transform:scale(1.2); opacity:.9; } }
.dl-k { flex:none; font-size:15px; font-weight:600; color:var(--t-100); }
.dl-time { flex:none; min-width:3.4ch; font-size:14px; color:var(--t-400); font-variant-numeric:tabular-nums; }
.dl-wave { flex:1 1 140px; min-width:80px; height:34px; display:block; }
.dictlive[data-state="writing"] .dl-wave { display:none; }
.dl-shimmer { display:none; flex:1 1 140px; min-width:80px; height:4px; border-radius:99px; background:linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent) 0 38%, var(--accent) 50%, color-mix(in srgb, var(--accent) 16%, transparent) 62% 100%); background-size:240% 100%; animation:dlSweep 1.3s linear infinite; }
.dictlive[data-state="writing"] .dl-shimmer { display:block; }
@keyframes dlSweep { from { background-position:130% 0; } to { background-position:-30% 0; } }
.dl-hint { flex:none; max-width:46%; font-size:14px; line-height:1.3; color:var(--t-500); text-align:right; }
.sharebox[data-listening="1"] { animation:dlGlow 2.6s ease-in-out infinite; }
@keyframes dlGlow { 0%, 100% { box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 50% { box-shadow:0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); } }
@media (max-width:640px) { .dl-hint { display:none; } }
@media (prefers-reduced-motion: reduce) { .dl-halo, .dl-shimmer, .sharebox[data-listening="1"] { animation:none !important; } }

/* ── round 338: the dot field behind Create (assets/dots.js), after Oryn's home. Under the stage, from the top bar down, fading out by
   two thirds of the screen; shown only while Create is; it washes down from the top each time Create comes back. The canvas draws its
   own quiet oval behind the title and the box; colour and brightness come from the script, which reads the accent ── */
#createDots { position:fixed; left:0; top:calc((var(--tb-h) + var(--banner-h, 0px)) * var(--zoom, 1)); width:100%; height:66vh; z-index:0; pointer-events:none; display:block;
  opacity:0; transition:opacity .45s var(--ease-out);
  -webkit-mask-image:linear-gradient(180deg, #000 0%, #000 34%, transparent 100%); mask-image:linear-gradient(180deg, #000 0%, #000 34%, transparent 100%); }
body:has(:is([data-step="share"], [data-step="reading"], [data-step="offer"], [data-step="presence"], [data-step="cast"], [data-step="making"], [data-step="review"], [data-step="done"], [data-step="photos"], [data-step="record"], [data-step="hello"], [data-step="check"], [data-step="building"]):not([hidden])) #createDots { opacity:1; }   /* round 348: behind every screen of the making and the setup */
#createDots.wash { animation:dotsWash 1.6s cubic-bezier(.22, .72, .2, 1) both; }
@keyframes dotsWash { from { clip-path:inset(0 0 100% 0); } to { clip-path:inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { #createDots.wash { animation:none; } }

/* ── round 339: on phones the three destinations float in a capsule of glass (assets/dock.js moves the pill). Clear white glass over the
   page: a blur that lets Content's cards show through as they scroll under it, a light rim on the upper edge and a fainter one below, a
   soft shadow. The pill under the current one is a drop of the accent's glass that stretches as it travels. The labels stay under the
   icons: for readers over fifty an icon alone says less. The stage and the notices keep clear of the capsule ── */
@media (max-width:780px) {
  .tabbar { left:max(12px, env(safe-area-inset-left)); right:max(12px, env(safe-area-inset-right)); bottom:calc(10px + env(safe-area-inset-bottom)); height:66px; padding:0 6px; border-radius:999px; border:0;
    background:color-mix(in srgb, var(--s-1) 76%, transparent); -webkit-backdrop-filter:blur(22px) saturate(1.6) !important; backdrop-filter:blur(22px) saturate(1.6) !important;   /* the one exception to round 298's no-blur rule: the capsule is glass */
    box-shadow:inset 1px 1px 0 rgba(255,255,255,.75), inset -1px -1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(var(--op-line),.07), 0 14px 34px -14px rgba(27,25,38,.35); isolation:isolate; }
  html.op-dark .tabbar { background:color-mix(in srgb, var(--s-1) 72%, transparent); box-shadow:inset 1px 1px 0 rgba(255,255,255,.16), inset -1px -1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(255,255,255,.06), 0 14px 34px -14px rgba(0,0,0,.6); }
  .tab-btn { position:relative; z-index:1; min-height:56px; border-radius:999px; background:none; }
  .tab-pill { position:absolute; left:0; top:6px; bottom:6px; width:0; z-index:0; border-radius:999px; pointer-events:none; will-change:transform, width;
    background:rgba(var(--op-accent-rgb), .12); box-shadow:inset 1px 1px 0 rgba(255,255,255,.7), inset -1px -1px 0 rgba(var(--op-accent-rgb), .12), 0 6px 16px -8px rgba(var(--op-accent-rgb), .45); }
  html.op-dark .tab-pill { background:rgba(var(--op-accent-rgb), .2); box-shadow:inset 1px 1px 0 rgba(255,255,255,.18), 0 6px 16px -8px rgba(0,0,0,.6); }
  .tab-pill[hidden] { display:none; }
  #stage { padding-bottom:calc(92px + env(safe-area-inset-bottom)); }
  body[data-mood="library"] #stage { padding-bottom:calc(98px + env(safe-area-inset-bottom)); }
  .step { max-height:calc((100dvh - var(--tb-h) - var(--banner-h, 0px) - 108px) / var(--zoom)); }   /* the notice strip counts too: without it the screen stood 53 px too tall and its title slid under the strip */
  [data-step="offer"] { overflow-y:auto; overflow-x:hidden; justify-content:safe center; }   /* when the table stands taller than the window it scrolls from its title, as the other screens do; it used to spill under the strip above and the capsule below */
  .toaster { bottom:calc(92px + env(safe-area-inset-bottom)); }
}

/* ── round 340: the legal line and the Legal page. On Create (the one screen with room under it) a single quiet line at the foot of
   the window, on laptops only and only when the window is tall enough; on phones the Account sheet's "Legal" is the way there. The
   plans page and the Legal page end with the same line ── */
.legal-foot { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:4px 18px; font-size:13px; line-height:1.5; color:var(--t-500); }
.legal-foot a { color:var(--t-400); text-decoration:none; border-radius:6px; padding:2px 4px; transition:color var(--hover-dur, 180ms) var(--ease-out), background-color var(--hover-dur, 180ms) var(--ease-out); }
.legal-foot a:hover { color:var(--t-100); background:var(--hover-tint, rgba(var(--op-accent-rgb), .1)); }
#legalFoot { position:fixed; left:0; right:0; bottom:calc(14px + env(safe-area-inset-bottom)); z-index:2; opacity:0; visibility:hidden; transition:opacity .3s var(--ease-out), visibility 0s linear .3s; }
body:has([data-step="share"]:not([hidden])) #legalFoot { opacity:1; visibility:visible; transition:opacity .3s var(--ease-out); }
@media (max-width:780px), (max-height:700px) { #legalFoot { display:none; } }
.plans-page > .legal-foot { padding:8px 20px calc(28px + env(safe-area-inset-bottom)); }
.you-legal { margin-left:10px; font-size:var(--fs-caption); color:var(--t-400); text-decoration:none; border-radius:6px; padding:2px 6px; transition:color var(--hover-dur, 180ms) var(--ease-out), background-color var(--hover-dur, 180ms) var(--ease-out); }
.you-legal:hover { color:var(--t-100); background:var(--hover-tint, rgba(var(--op-accent-rgb), .1)); }
.signin-check a { color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.lg-main { width:min(720px, 100%); margin:0 auto; padding:44px 20px 40px; text-align:left; }
.lg-main .pl-kicker, .lg-main .q { text-align:left; }
.lg-main .q { margin-bottom:18px; }
.lg-toc { display:flex; flex-wrap:wrap; gap:6px 8px; margin:0 0 28px; }
.lg-toc a { font-size:14px; color:var(--t-300); text-decoration:none; padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:var(--s-1); }
.lg-toc a:hover { color:var(--t-100); border-color:var(--hover-line, var(--line-strong)); background:var(--hover-tint, var(--s-3)); }
.lg-sec { padding:22px 0; border-top:1px solid var(--line); scroll-margin-top:calc(var(--tb-h) + 12px); }
.lg-sec h2 { margin:0 0 8px; font-size:20px; font-weight:600; color:var(--t-100); letter-spacing:-.01em; }
.lg-sec p { margin:0; max-width:62ch; font-size:17px; line-height:1.6; color:var(--t-200); }
.lg-sec a { color:var(--accent); }
.lg-note { display:flex; align-items:flex-start; gap:8px; color:var(--t-400) !important; }
.lg-note i { margin-top:4px; font-size:16px; color:var(--t-500); }
.lg-sec:target h2 { color:var(--accent); }

/* ═══ round 341: the account panel, one list and its pages ═══
   Sergio, 30 September: the sheet that unfolds is confusing, "More" loses you, everything is scattered and some things are hard to reach.
   Now: one panel, a quiet ground, and white cards of rows. Every row is the same shape (a tinted icon, a name, what is set, an arrow) and
   opens its page inside the same panel; the head turns into the way back and the page's name. No accordion, no second pane beside it. */
.you { width:min(440px, calc(100vw - 28px)); background:radial-gradient(95% 34% at 8% 0%, rgba(var(--op-accent-rgb), .11), transparent 72%), var(--s-0); }
html.op-dark .you { background:radial-gradient(95% 34% at 8% 0%, rgba(var(--op-accent-rgb), .13), transparent 72%), var(--s-0); }
/* the head: who you are on the list; the way back and the page's name on a page */
.you .you-head { align-items:center; gap:var(--sp-3); padding:var(--sp-6) var(--sp-4) var(--sp-4) var(--sp-6); }
.you[data-view="page"] .you-head { padding:var(--sp-4) var(--sp-4) var(--sp-1) var(--sp-4); }
.you .who { flex:1; min-width:0; gap:var(--sp-4); }
.you .who[hidden], .you-crumb[hidden] { display:none; }
.you .who > span:last-child { min-width:0; }
.you .who-avatar { flex:none; width:56px; height:56px; border-radius:18px; font-size:18px; font-weight:600; letter-spacing:.01em; background:linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); box-shadow:0 8px 18px -10px rgba(var(--op-accent-rgb), .8); }
.you .who strong { font-size:19px; font-weight:600; line-height:1.25; letter-spacing:-.01em; overflow-wrap:anywhere; }
.you .who small { font-size:var(--fs-small); line-height:1.4; color:var(--t-400); }
.you .who .who-mail { color:var(--t-500); }
.you-crumb { flex:1; min-width:0; display:flex; align-items:center; gap:var(--sp-3); }
.you-crumb h2 { margin:0; min-width:0; font-size:20px; font-weight:600; line-height:1.25; letter-spacing:-.01em; color:var(--t-100); outline:none; }
.you .kback { flex:none; width:44px; height:44px; min-width:44px; border-radius:50%; font-size:18px; color:var(--t-100); background:var(--s-1); border:1px solid var(--line); }
.you .x { flex:none; }
/* the body: the list, or one page */
.you .you-body { display:block; padding:var(--sp-3) var(--sp-4) var(--sp-6); }
.you-hub { display:flex; flex-direction:column; gap:var(--sp-3); }
.you-hub[hidden], .you-pages[hidden], .you-pages .setsec[hidden] { display:none; }
.you-group { display:flex; flex-direction:column; padding:var(--sp-1); border-radius:var(--r-3); background:var(--s-1); border:1px solid var(--line); }
.you .you-nav { display:none; }
/* one row shape for everything on the list */
.you-hub .row { position:relative; min-height:60px; padding:var(--sp-2) var(--sp-3) var(--sp-2) 10px; gap:var(--sp-3); border-radius:var(--r-2); border:0; background:transparent; font:inherit; color:var(--t-100); text-decoration:none; cursor:pointer; }
.you-group .row + .row::before { content:''; position:absolute; left:62px; right:var(--sp-3); top:-1px; height:1px; background:var(--line); pointer-events:none; }
.you-group .row[hidden] { display:none; }
.you .row > .ri { flex:none; width:40px; height:40px; border-radius:var(--r-2); overflow:hidden; display:grid; place-items:center; font-size:20px; color:var(--accent); background:rgba(var(--op-accent-rgb), .09); }
.you .ri img { width:100%; height:100%; object-fit:cover; }
.you-hub .row strong { display:flex; align-items:center; flex-wrap:wrap; gap:2px 8px; font-size:var(--fs-body); font-weight:600; line-height:1.3; color:var(--t-100); }
.you-hub .row small { display:block; margin-top:1px; font-size:var(--fs-small); line-height:1.4; color:var(--t-400); }
.you-hub .row strong .plan-tag { margin-left:0; }
.you-hub .row > i:last-child { position:static; flex:none; margin-left:0; font-size:16px; color:var(--t-500); }
.you-hub .ya { flex-direction:row; align-items:center; text-align:left; }
.you-hub .ya:active { transform:scale(.99); }
.you-set { flex:none; padding:4px 10px; border-radius:999px; font-size:13px; font-weight:600; line-height:1.4; color:var(--accent); background:rgba(var(--op-accent-rgb), .10); white-space:nowrap; }
.ya[data-on="1"] .you-set { display:none; }
.ya[data-on="0"] > i:last-child { display:none; }
/* the plan: the one card in the accent, so it is found first */
.you-hub .you-plan .row { min-height:72px; padding:var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-3); border-radius:var(--r-3); border:1px solid rgba(var(--op-accent-rgb), .24); background:linear-gradient(135deg, rgba(var(--op-accent-rgb), .12), rgba(var(--op-accent-rgb), .04)), var(--s-1); }
.you .you-plan .row > .ri { color:var(--color-primary-foreground); background:var(--accent); }
.you-plan-go { flex:none; display:inline-flex; align-items:center; gap:4px; font-size:var(--fs-small); font-weight:600; color:var(--accent); white-space:nowrap; }
.you-plan-go i { font-size:13px; }
/* a page: a line of what it is for, then white cards */
.you-pages .setsec { display:flex; flex-direction:column; gap:var(--sp-3); }
.you .you-pages .setp { margin:0 var(--sp-2) 0; max-width:none; font-size:var(--fs-small); line-height:1.5; color:var(--t-400); }
.you .you-pages .ycard, html.op-dark .you .you-pages .ycard { margin:0; padding:var(--sp-2) var(--sp-2) var(--sp-3); border-radius:var(--r-3); background:var(--s-1); border:1px solid var(--line); }
.you .you-pages .ycard + .ycard { margin-top:0; border-top:1px solid var(--line); }
.you .you-pages .ycard > .menu-t { margin:var(--sp-2) var(--sp-2) var(--sp-2); }
.you .you-pages .setnote { margin:var(--sp-2) var(--sp-2) 0; }
.you .you-pages .setsec > .setnote { margin:0 var(--sp-2); }
.you .you-pages .setsec[data-sec="you"] .cn-field { display:block; margin:0; padding:var(--sp-2) var(--sp-2) var(--sp-1); }
.you .you-pages .setsec[data-sec="you"] .you-note { margin:var(--sp-1) var(--sp-2) var(--sp-2); }
.you .you-pages .avset { margin-bottom:0; }
.you .you-pages #avatarBuild { width:100%; justify-content:center; margin-top:0; }
.you .you-pages .vown { padding:var(--sp-2) var(--sp-3) var(--sp-3); }
.you .you-pages .vown > .menu-t { margin-left:0; margin-right:0; }
.you .you-pages .pref { padding:var(--sp-2) var(--sp-2); }
.you .you-pages .pref + .pref { border-top:1px solid var(--line); margin-top:var(--sp-1); padding-top:var(--sp-3); }
/* on a 390 px phone the three looks (Light, Dark, Auto) ran 6 px past their card (3 October 2026): a little less room inside each */
@media (max-width:420px) { .you .pref .seg3 button { padding:0 9px; gap:5px; } }
@media (max-width:379px) { .you .pref { flex-wrap:wrap; row-gap:8px; } }   /* and on a narrower phone (360 px) the segment goes under its name rather than past the card */
.you .you-pages .setsec[data-sec="display"] .ycard, .you .you-pages .setsec[data-sec="privacy"] .ycard { padding-bottom:var(--sp-2); }
/* the bar that saves, and the foot (on the list only) */
.you .kpane-do { padding:var(--sp-3) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom)); background:transparent; border-top:1px solid var(--line); }
.you .kpane-do[hidden] { display:none; }
.you .kpane-do .primary { flex:1; height:52px; }
.you .drawer-foot { padding:var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-6); background:transparent; border-top:1px solid var(--line); }
.you[data-view="page"] .drawer-foot { display:none; }
/* motion: the list's blocks rise once as the panel arrives; going into a page and coming back is one short slide that says which way */
.you.open .you-body > * { animation:none; }
.you.open .you-hub > * { animation:youIn var(--dur-base) var(--ease-out) backwards; animation-delay:calc(50ms + var(--i, 0) * 28ms); }
@keyframes youFwd { from { opacity:0; translate:18px 0; } to { opacity:1; translate:0 0; } }
@keyframes youBack { from { opacity:0; translate:-18px 0; } to { opacity:1; translate:0 0; } }
.you.open .you-body > .you-in-fwd { animation:youFwd 240ms var(--ease-out) backwards; }
.you.open .you-body > .you-in-back { animation:youBack 240ms var(--ease-out) backwards; }
.you.open .you-hub.you-in-back > * { animation:none; }
@media (prefers-reduced-motion: reduce) { .you.open .you-hub > *, .you.open .you-body > .you-in-fwd, .you.open .you-body > .you-in-back { animation:none; } }
html.calm .you.open .you-hub > *, html.calm .you.open .you-body > .you-in-fwd, html.calm .you.open .you-body > .you-in-back { animation:none; }
@media (hover:hover) and (pointer:fine) { .you .kback:hover { background:var(--hover-tint); border-color:var(--hover-line); transform:none; } .you-plan .row:hover { background:linear-gradient(135deg, rgba(var(--op-accent-rgb), .17), rgba(var(--op-accent-rgb), .07)), var(--s-1); } }
/* on a phone: a sheet from the bottom, one height for the list and the pages so nothing jumps; My Profile and Insights lead the list */
@media (max-width:780px) {
  .you { width:100%; height:min(92dvh, calc(100dvh - 28px)); max-height:none; }
  .you .you-nav { display:flex; }
  .you .you-nav .row small { display:block; }
  .you .you-head { padding:var(--sp-4) var(--sp-3) var(--sp-3) var(--sp-4); }
  .you .who-avatar { width:48px; height:48px; border-radius:16px; font-size:16px; }
  .you .you-body { padding:var(--sp-3) var(--sp-3) var(--sp-4); }
  .you .drawer-foot { padding:var(--sp-3) var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom)) var(--sp-4); }
}
/* inside the panel a plan notice stacks: the words across, the button under them */
.you .hub-gate .plan-gate { flex-wrap:wrap; align-items:flex-start; padding:var(--sp-3); }
.you .hub-gate .plan-gate > i { margin-top:1px; }
.you .hub-gate .plan-gate p { flex:1 1 200px; }
.you .hub-gate .plan-gate-go { width:100%; height:44px; }
.you .hub-row { min-height:56px; padding:var(--sp-2) var(--sp-2); }
/* every control in the panel answers the pointer (round 329's rule): the list's rows, the voice page's play buttons and chips, the segmented choices */
@media (hover:hover) and (pointer:fine) {
  .you-hub .row:hover { background:var(--hover-tint); }
  .you .vplay:hover { background:color-mix(in srgb, var(--accent) 86%, #000); filter:none; scale:1; }
  .you .cv-chips button:not([aria-pressed="true"]):hover, .you .seg3 button:not([aria-checked="true"]):hover, .you .av-ic:not(:disabled):hover { background:var(--hover-tint); color:var(--t-100); }
  .you .av-use:hover { background:var(--hover-tint); color:var(--t-100); }
  .you .cv-chips button, .you .seg3 button, .you .av-use, .you .av-ic, .you .vplay { transition:background-color var(--hover-dur) var(--ease-out), color var(--hover-dur) var(--ease-out), border-color var(--hover-dur) var(--ease-out); }
}
@media (hover:hover) and (pointer:fine) {
  .you .cv-chips button[aria-pressed="true"]:hover { background:color-mix(in srgb, var(--accent) 16%, transparent); }
  .you .seg3 button[aria-checked="true"]:hover { box-shadow:0 2px 6px rgba(0,0,0,.16); }
}   /* 20 November 2026 (audit pass 2): this block was never closed, so everything below applied only with a mouse; on a phone Content lost its Mine/Examples pill */
/* ── round 342: the sign-in after BiteSized's (Sergio, 30 September 2026: "el diseño debe ser mas parecido al de bitesized, hazlo igual,
   solo cambia los textos, el color del shader, y el color de algunos brandings y obvio el logo. y el boton principal debe ser el nuestro.
   el shader debe ser el fondo del componente de la izquierda"). BiteSized's login (#loginScreen and its .lg-* rules) translated by hand
   onto Dose's tokens. The screen is one flat ground; on the left a dark rounded panel whose background is the wave field
   (assets/signin-waves.js), with the mark at its top and the headline and three lines at its foot, over two scrims so the words read; on
   the right the form, centred in a 400 px column that scrolls by itself when the window is short, so the panel never moves. The form has
   no card: soft fields with no border at rest, small quiet labels, the primary button (Dose's own, flat), Continue with Google under
   it as a quiet outlined button, a rule, then the way to the other mode as a line of text and the small print. Up to 900 px the panel
   goes and the form stands alone with the mark above the heading, as BiteSized does under its own breakpoint. The panel is dark in both
   looks. Every rule of this screen that came before is overridden here; the modes, ids and behaviour are untouched ── */
.signin { display:flex; align-items:stretch; gap:0; padding:0; overflow:hidden; background:var(--s-1); }
.signin::before { content:none; }

/* the form's side */
.signin-in { flex:1 1 0; min-width:0; min-height:0; display:flex; flex-direction:column; justify-content:flex-start; padding:var(--sp-6) 56px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:rgba(var(--op-line),.18) transparent; border:0; border-radius:0; background:none; box-shadow:none; animation:none; }
.signin-in > .signin-col { display:flex; flex-direction:column; flex:none; width:min(400px, 100%); margin:auto; }   /* auto margins centre the column and give way when the form is taller than the window, so its top is never cut */
.signin-col > * { flex:none; }
.signin-brand { display:none; margin:0 0 14px; font-size:22px; }
.signin-h { margin:0; font-size:28px; line-height:34px; font-weight:700; letter-spacing:-.02em; text-wrap:balance; }
.signin[data-mode="hold"] .signin-h { font-size:24px; line-height:30px; }
.signin-sub { margin:10px 0 0; font-size:var(--fs-body); line-height:1.5; color:var(--t-400); }
.signin-form { gap:var(--sp-4); margin-top:20px; }
.signin .cn-field span { margin:0 0 6px; font-size:13px; line-height:16px; font-weight:500; letter-spacing:0; text-transform:none; color:var(--t-400); }
.signin .cn-field input, .signin .cn-field select { height:52px; border:1.5px solid transparent; border-radius:var(--r-2); background-color:var(--s-3); font-size:var(--fs-body); transition:border-color var(--hover-dur) var(--ease-out), background-color var(--hover-dur) var(--ease-out), box-shadow var(--hover-dur) var(--ease-out); }
.signin .cn-field input::placeholder { color:var(--t-600); }
.signin .cn-field input:focus, .signin .cn-field select:focus { border-color:var(--accent); background-color:var(--s-1); box-shadow:0 0 0 4px rgba(var(--op-accent-rgb), .12); }
/* the country select keeps its drawn caret while focused (the old focus rule's background shorthand dropped it) */
.signin .cn-field select:focus { background-repeat:no-repeat; background-position:right 16px center; background-size:16px 16px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235F5B72' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html.op-dark .signin .cn-field select:focus { background-repeat:no-repeat; background-position:right 16px center; background-size:16px 16px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23A6A2B4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.signin-help { margin:6px 0 0; }
.signin-fixed b { padding:var(--sp-1) 0 0; }
.signin-eye { border-radius:var(--r-1); transition:color var(--hover-dur) var(--ease-out), background-color var(--hover-dur) var(--ease-out); }
.signin-forgot { margin:-12px 0 -8px; color:var(--t-400); border-radius:6px; }   /* a 44 px target whose words sit close under the password, as BiteSized's do */
.signin .actions { margin-top:var(--sp-1); }
/* Continue with Google, under the primary: outlined and quiet */
.signin-sso { margin-top:var(--sp-3); }
.signin-google { height:48px; gap:10px; border:1px solid var(--line-strong); border-radius:var(--r-2); background:transparent; font-size:var(--fs-body); font-weight:500; color:var(--t-100); transition:background-color var(--hover-dur) var(--ease-out), border-color var(--hover-dur) var(--ease-out), opacity var(--hover-dur) var(--ease-out); }
.signin-google svg { flex:none; }
.signin-google:active { transform:none; }
/* the foot: a rule, the way to the other mode as one line of text (the whole line is the button), the quiet ways out, the small print */
.signin-alt { align-items:flex-start; gap:0; margin-top:20px; padding-top:6px; border-top:1px solid var(--line); }
.signin-alt-btn { display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; column-gap:.35em; width:auto; min-height:44px; padding:0; border:0; border-radius:6px; background:none; font-size:15px; line-height:1.35; font-weight:400; color:var(--t-400); text-align:left; text-decoration:none; transition:color var(--hover-dur) var(--ease-out); }
.signin-alt-btn b { font-weight:600; color:var(--t-100); text-decoration:underline; text-underline-offset:3px; text-decoration-color:transparent; transition:color var(--hover-dur) var(--ease-out), text-decoration-color var(--hover-dur) var(--ease-out); }
.signin-alt-btn:active { transform:none; }
.signin-out { align-self:flex-start; padding:0; font-size:var(--fs-small); color:var(--t-400); }
.signin-fine { margin:var(--sp-2) 0 0; font-size:13px; line-height:1.55; color:var(--t-500); text-wrap:pretty; }
.signin-google:hover, .signin-alt-btn:hover { background:transparent; }   /* a finger leaves nothing lit; the pointer's hover is below */
.signin-google:hover { border-color:var(--line-strong); }
@media (hover:hover) and (pointer:fine) {
  .signin-google:hover { background:var(--hover-tint); border-color:var(--hover-line); }
  .signin-alt-btn:hover { background:none; border:0; }
  .signin-alt-btn:hover b { color:var(--accent); text-decoration-color:currentColor; }
  .signin-eye:hover { background:var(--hover-tint); color:var(--t-100); }
  .signin-forgot:hover, .signin-out:hover { color:var(--accent); }
}

/* the panel: always dark, in both looks */
.signin-side { order:-1; position:relative; top:auto; align-self:stretch; flex:none; display:flex; flex-direction:column; justify-content:space-between; gap:var(--sp-6); width:calc(50% - 16px); height:auto; min-height:0; margin:16px; padding:var(--sp-8); border-radius:var(--r-3); overflow:hidden; background:#0C0818; color:#fff; animation:none; --color-brand:#A78BFA; }
.signin-waves { position:absolute; inset:0; display:block; width:100%; height:100%; opacity:0; transition:opacity 1.2s var(--ease-out); }
.signin-waves.on { opacity:1; }
/* two scrims over the field: a short one under the mark, a long strong one under the words */
.signin-side::before, .signin-side::after { content:""; position:absolute; left:0; right:0; z-index:1; pointer-events:none; }
.signin-side::before { top:0; height:30%; background:linear-gradient(180deg, rgba(12,8,24,.9), rgba(12,8,24,0)); }
.signin-side::after { top:auto; bottom:0; height:70%; background:linear-gradient(0deg, rgba(12,8,24,.92) 0%, rgba(12,8,24,.72) 34%, rgba(12,8,24,.2) 72%, rgba(12,8,24,0) 100%); }
.signin-side-brand { position:relative; z-index:2; display:flex; align-items:center; gap:.45em; font-size:24px; line-height:36px; font-weight:700; letter-spacing:-.02em; color:#fff; }
.signin-side-brand .dose-pill { box-shadow:none; }
.signin-seller { position:relative; z-index:2; max-width:440px; text-shadow:0 1px 18px rgba(4,2,10,.55); }
.signin-seller h2 { margin:0; font-size:34px; line-height:1.12; font-weight:700; letter-spacing:-.02em; color:#fff; text-wrap:balance; }
.signin-seller p { margin:var(--sp-4) 0 0; max-width:400px; font-size:var(--fs-body); line-height:1.6; color:rgba(255,255,255,.84); text-wrap:pretty; }
.signin-seller ul { display:flex; flex-direction:column; gap:var(--sp-3); margin:28px 0 0; padding:0; list-style:none; }
.signin-seller li { display:flex; align-items:center; gap:var(--sp-3); font-size:15px; line-height:1.4; color:rgba(255,255,255,.92); }
.signin-seller li i { flex:none; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,.14); font-size:13px; color:#fff; text-shadow:none; }
.signin-seller small { display:block; margin-top:var(--sp-8); font-size:13px; line-height:1.5; color:rgba(255,255,255,.62); }

/* the arrival: the blocks of the form and of the panel's words rise one after another, once, when the screen opens */
@keyframes signin-in { from { opacity:0; translate:0 12px; } to { opacity:1; translate:0 0; } }
.signin-col > *, .signin-seller > * { animation:signin-in 450ms var(--ease-out) both; }
.signin-col > :nth-child(2), .signin-seller > :nth-child(2) { animation-delay:50ms; }
.signin-col > :nth-child(3), .signin-seller > :nth-child(3) { animation-delay:100ms; }
.signin-col > :nth-child(n+4), .signin-seller > :nth-child(n+4) { animation-delay:150ms; }
.signin-col > :nth-child(n+6) { animation-delay:200ms; }
.signin-col > :nth-child(n+7) { animation-delay:250ms; }
html.calm .signin-col > *, html.calm .signin-seller > * { animation:none; }
html.calm .signin-waves { transition:none; }
@media (prefers-reduced-motion:reduce) { .signin-col > *, .signin-seller > * { animation:none; } }

/* between the one-column layout and a wide window the form's side keeps a usable width */
@media (max-width:1100px) { .signin-in { padding:var(--sp-6) var(--sp-8); } .signin-seller h2 { font-size:30px; } }
/* one column up to 900 px (round 315's width): the panel goes, the mark stands above the heading */
@media (max-width:900px) {
  .signin { gap:0; padding:0; }
  .signin-side { display:none; }
  .signin-in { min-height:0; padding:var(--sp-8) var(--sp-6); }
  .signin-brand { display:flex; }
}

/* ── round 343: air in the account panel. Sergio, on the published panel: "todo está muy apretado, no hay espacio de respiro".
   Taller rows, wider gaps between the cards and inside them, a roomier head and plan card, one notch more between the icon and the
   words. The list scrolls a little on a laptop; the room is worth more than the fit ── */
.you { width:min(480px, calc(100vw - 28px)); }
.you .you-head { gap:var(--sp-4); padding:32px 22px 22px 28px; }
.you .who { gap:18px; }
.you .who-avatar { width:60px; height:60px; border-radius:20px; }
.you .who > span:last-child { display:flex; flex-direction:column; gap:3px; }
.you .who strong { font-size:20px; }
.you .you-body { padding:var(--sp-3) 22px 32px; }
.you-hub { gap:24px; }
.you-group { padding:10px; border-radius:22px; }
.you-hub .row { min-height:78px; padding:16px 14px 16px 14px; gap:18px; border-radius:16px; }
.you-group .row + .row::before { left:76px; right:14px; }
.you-hub .row strong { font-size:17px; }
.you-hub .row small { margin-top:3px; }
.you .row > .ri { width:44px; height:44px; border-radius:14px; font-size:21px; }
.you-hub .you-plan .row { min-height:88px; padding:20px 20px 20px 18px; border-radius:22px; }
.you .drawer-foot { padding:20px 22px 20px 28px; }
.you[data-view="page"] .you-head { padding:20px 20px 6px 20px; }
.you .you-pages .setsec { gap:var(--sp-4); }
.you .you-pages .ycard, html.op-dark .you .you-pages .ycard { padding:var(--sp-3) var(--sp-3) var(--sp-4); border-radius:20px; }
.you .you-pages .setp { margin:var(--sp-1) var(--sp-2) var(--sp-2); }
@media (max-width:780px) {
  .you .you-head { padding:22px 16px 16px 20px; }
  .you .you-body { padding:var(--sp-3) var(--sp-4) var(--sp-6); }
  .you-hub { gap:16px; }
  .you-hub .row { min-height:70px; }
}

/* ── round 344: the text-size setting, whole. The panel follows it (round 341) but on a phone a zoomed 100% ran off the screen: its width
   and its height are divided by the zoom so it stays inside; the phone's bar follows the setting too, like the top bar ── */
.you { zoom:1; width:min(calc(480px * var(--zoom)), calc(100vw - 28px)); }
.you > .you-head, .you > .you-body, .you > .kpane-do, .you > .drawer-foot { zoom:var(--zoom); }
@media (max-width:780px) {
  .you { width:100%; }
  /* the bar grows with the setting by its sizes, not by zoom: the pill is measured in screen pixels and a zoomed bar put it between two places */
  .tabbar { height:calc(66px * var(--zoom)); }
  .tab-btn { font-size:calc(var(--fs-caption) * var(--zoom)); }
  .tab-btn i { font-size:calc(24px * var(--zoom)); }
}
/* the Content screen's head at a larger text size on a phone: the titles row wraps instead of pushing the page wider (the whole page
   then zoomed out, and the panel with it: what Sergio saw as "text size not working so well") */
@media (max-width:900px) {
  .lib-top > * { min-width:0; }
  .lib-titles { flex-wrap:wrap; row-gap:2px; min-width:0; }
  .lib-titles small { white-space:normal; }
}
/* the Content head's full-width backdrop is drawn inside the zoomed stage: at a larger text size its 100vw grew past the screen and the
   phone zoomed the whole page out (the panel with it). Its width follows the zoom. */
.lib-top::before { width:calc(100vw / var(--zoom)); }

/* ═══ round 346: the top bar. Sergio, 1 October: "el diseño del topbar puede tener un diseño mucho más cool y más moderno, se ve anticuado".
   The bar is the page's own ground, no slab, no line. The two places, Create and Content, sit in a capsule in the middle: white, a
   hairline, a soft shadow, and under the current one the same pill that slides in the phone's bar (dock.js). The doctor's own pages,
   My Profile and Insights, stand quietly at the right as words; Account is the avatar with the name and a small caret. ═══ */
:root { --tb-h:60px; }
.topbar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:var(--sp-4); padding:0 var(--sp-4) 0 var(--sp-6); background:transparent; border-bottom:0; backdrop-filter:none; -webkit-backdrop-filter:none; }
body[data-mood="library"] .topbar { background:transparent; }
.topbar::after { content:''; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--line); opacity:0; transition:opacity .25s var(--ease-out); pointer-events:none; }
body[data-mood="library"] .topbar::after { opacity:1; }
.tb-brand { justify-self:start; font-size:21px; }
.tb-nav { display:contents; }
.tb-main { position:relative; justify-self:center; display:flex; align-items:center; gap:2px; padding:4px; border-radius:999px; background:var(--s-1); border:1px solid var(--line); box-shadow:0 1px 2px rgba(27,25,38,.04), 0 10px 30px -18px rgba(27,25,38,.35); isolation:isolate; }
html.op-dark .tb-main { box-shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.7); }
.tb-main .tb-btn { position:relative; z-index:1; height:42px; padding:0 18px; border-radius:999px; font-size:15px; font-weight:600; color:var(--t-300); background:transparent; }
.tb-main .tb-btn i { font-size:18px; color:var(--t-400); }
.tb-main .tb-btn[aria-current="true"], .tb-main .tb-btn[aria-current="true"] i { color:var(--accent); background:transparent; }
.tb-main .tab-pill { position:absolute; left:0; top:4px; bottom:4px; width:0; z-index:0; border-radius:999px; pointer-events:none; will-change:transform, width; background:rgba(var(--op-accent-rgb), .11); }
html.op-dark .tb-main .tab-pill { background:rgba(var(--op-accent-rgb), .2); }
.tb-main .tb-badge { min-width:20px; height:20px; margin-left:2px; font-size:12px; color:var(--accent); background:rgba(var(--op-accent-rgb), .12); }
.tb-main .tray { padding:0 14px; }
.tb-side { justify-self:end; display:flex; align-items:center; gap:2px; }
.tb-quiet { height:42px; padding:0 14px; border-radius:999px; font-size:15px; font-weight:500; color:var(--t-300); }
.tb-quiet i { font-size:18px; color:var(--t-400); }
.tb-you { height:46px; padding:4px 10px 4px 4px; margin-left:var(--sp-2); border-radius:999px; font-size:15px; font-weight:600; color:var(--t-200); gap:10px; border:1px solid var(--line); background:var(--s-1); }
.tb-you .tb-avatar { width:36px; height:36px; border-radius:50%; font-size:13px; font-weight:600; letter-spacing:.01em; background:linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); }
.tb-you .tb-caret { font-size:12px; color:var(--t-500); margin-left:-2px; transition:rotate .2s var(--ease-out); }
.tb-you[aria-expanded="true"] .tb-caret { rotate:180deg; }
.tb-you[aria-expanded="true"] { border-color:rgba(var(--op-accent-rgb), .35); background:rgba(var(--op-accent-rgb), .08); }
/* 5 October 2026: centred under the capsule by its left edge, not by `translate`. The opening tween (trayOpen in app.js) ends by clearing
   what it wrote, and the animation library then left its own copy of the translate on the list as a transform, so the shift counted
   twice and the list landed half its width to the left (Sergio's frame of 5 October; tray-fit measures it now) */
.tb-main .traylist { right:auto; left:calc(50% - min(180px, 50vw - 16px)); top:calc(100% + 8px); }
@media (hover:hover) and (pointer:fine) {
  .tb-main .tb-btn:hover { background:rgba(var(--op-accent-rgb), .06); color:var(--t-100); }
  .tb-main .tb-btn[aria-current="true"]:hover { background:rgba(var(--op-accent-rgb), .09); color:color-mix(in srgb, var(--accent) 78%, var(--t-100)); }
  .tb-quiet:hover { background:var(--hover-tint); color:var(--t-100); }
  .tb-you:hover { background:var(--hover-tint); border-color:var(--hover-line); color:var(--t-100); }
}
/* the five still fit at 800 px: the words of the side buttons shorten first, then the capsule's padding */
@media (max-width:1100px) { .topbar { grid-template-columns:auto auto 1fr; } .tb-main .tb-btn { padding:0 14px; } .tb-quiet { padding:0 10px; } }
@media (max-width:900px) { .tb-quiet span { display:none; } .tb-quiet { padding:0 11px; } }
@media (max-width:780px) {
  .topbar { display:flex; justify-content:space-between; padding:0 10px 0 16px; }
  .tb-nav { display:flex; }
  .tb-main, .tb-side { display:contents; }
  .tb-nav .tb-btn:not(.tray) { display:none; }
  .tb-main .tab-pill { display:none; }
  /* the tray sits at the bar's right end on a phone: its list hangs from that end, inside the screen (3 October 2026: centred on the
     button, as on a wide screen, it opened half off the left edge) */
  .tb-main .traylist { position:fixed; left:16px; right:16px; width:auto; top:calc(var(--tb-h) + 4px); }
}
/* Sergio, 1 October, on the frames: "¿puedes hacerlo un poco más glassmorphism?". The capsule and the account button are glass like the
   phone's bar (round 339): the ground shows through a blur, a light rim on the upper-left edge, a fainter one lower-right, a soft drop;
   the pill is a drop of accent glass. The bar itself stays the page's ground with a faint veil at the top, so the blur is only where
   a control is. The second exception to round 298's no-blur rule, by request. */
.topbar { background:linear-gradient(to bottom, color-mix(in srgb, var(--s-0) 72%, transparent), transparent); }
body[data-mood="library"] .topbar { background:linear-gradient(to bottom, color-mix(in srgb, var(--s-0) 72%, transparent), transparent); }
.tb-main, .tb-you {
  background:color-mix(in srgb, var(--s-1) 58%, transparent); border:0;
  -webkit-backdrop-filter:blur(22px) saturate(1.6); backdrop-filter:blur(22px) saturate(1.6);
  box-shadow:inset 1px 1px 0 rgba(255,255,255,.8), inset -1px -1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(var(--op-line),.08), 0 14px 34px -16px rgba(27,25,38,.4);
}
html.op-dark .tb-main, html.op-dark .tb-you {
  background:color-mix(in srgb, var(--s-1) 56%, transparent);
  box-shadow:inset 1px 1px 0 rgba(255,255,255,.16), inset -1px -1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(255,255,255,.07), 0 14px 34px -16px rgba(0,0,0,.7);
}
.tb-main .tab-pill { background:rgba(var(--op-accent-rgb), .13); box-shadow:inset 1px 1px 0 rgba(255,255,255,.75), inset -1px -1px 0 rgba(var(--op-accent-rgb), .12), 0 6px 16px -8px rgba(var(--op-accent-rgb), .45); }
html.op-dark .tb-main .tab-pill { background:rgba(var(--op-accent-rgb), .22); box-shadow:inset 1px 1px 0 rgba(255,255,255,.2), 0 6px 16px -8px rgba(0,0,0,.6); }
.tb-you[aria-expanded="true"] { background:color-mix(in srgb, var(--s-1) 58%, transparent); box-shadow:inset 1px 1px 0 rgba(255,255,255,.8), inset -1px -1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(var(--op-accent-rgb), .35), 0 14px 34px -16px rgba(27,25,38,.4); }
@media (hover:hover) and (pointer:fine) {
  .tb-you:hover { background:color-mix(in srgb, var(--s-1) 74%, transparent); box-shadow:inset 1px 1px 0 rgba(255,255,255,.9), inset -1px -1px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(var(--op-accent-rgb), .3), 0 14px 34px -16px rgba(var(--op-accent-rgb), .45); }
}
/* so the glass has something to be glass over: a still, soft accent glow on the ground under the capsule, and a sheen across the capsule */
.topbar::before { content:''; position:absolute; left:50%; top:-60px; translate:-50% 0; width:520px; height:170px; border-radius:50%; background:radial-gradient(closest-side, rgba(var(--op-accent-rgb), .20), transparent); pointer-events:none; z-index:0; }
html.op-dark .topbar::before { background:radial-gradient(closest-side, rgba(var(--op-accent-rgb), .26), transparent); }
.tb-brand, .tb-main, .tb-side { position:relative; z-index:1; }
.tb-main::after { content:''; position:absolute; inset:0; border-radius:inherit; z-index:-1; pointer-events:none; background:linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 55%); }
html.op-dark .tb-main::after { background:linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0) 55%); }
.tb-main .tab-pill { z-index:0; }
@media (max-width:780px) { .topbar::before { display:none; } }

/* ═══ round 347: the two setup screens, the photo and the voice. Sergio, 1 October, on each: "esto puede tener un mejor diseño más cool",
   "esto también". The photo step: the drop zone is a portrait frame (a white card with a dashed hairline and a faint face guide, the
   camera tile at its centre), the four tips beside it as a list with tinted icons, the chosen photos under them; a soft accent glow
   behind the frame. The voice step: the passage as one quiet card with an accent quotation mark, the microphone orb and the time
   larger, the record button a red drop in a ring of accent glass. Both looks; one column on a phone. ═══ */
[data-step="photos"] .ph-wrap { position:relative; display:grid; grid-template-columns:300px minmax(260px, 420px); gap:var(--sp-8); align-items:center; justify-content:center; width:100%; margin-top:var(--sp-6); }
[data-step="photos"] .ph-wrap::before { content:''; position:absolute; left:150px; top:50%; translate:-50% -50%; width:520px; height:520px; border-radius:50%; background:radial-gradient(closest-side, rgba(var(--op-accent-rgb), .14), transparent); pointer-events:none; z-index:0; }
[data-step="photos"] .drop { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:var(--sp-2); width:300px; min-height:0; aspect-ratio:3 / 4; margin:0; padding:var(--sp-6); border-radius:28px; border:1.5px dashed rgba(var(--op-accent-rgb), .45); background:var(--s-1); box-shadow:0 1px 2px rgba(27,25,38,.04), 0 24px 50px -30px rgba(var(--op-accent-rgb), .45); cursor:pointer; transition:border-color var(--hover-dur, 180ms) var(--ease-out), box-shadow var(--hover-dur, 180ms) var(--ease-out), background-color var(--hover-dur, 180ms) var(--ease-out); }
[data-step="photos"] .drop.over, [data-step="photos"] .drop:focus-visible { border-color:var(--accent); border-style:solid; background:color-mix(in srgb, var(--accent) 3%, var(--s-1)); box-shadow:0 1px 2px rgba(27,25,38,.04), 0 24px 50px -26px rgba(var(--op-accent-rgb), .6); }
@media (hover:hover) and (pointer:fine) { [data-step="photos"] .drop:hover { border-color:var(--accent); border-style:solid; background:color-mix(in srgb, var(--accent) 3%, var(--s-1)); box-shadow:0 1px 2px rgba(27,25,38,.04), 0 24px 50px -26px rgba(var(--op-accent-rgb), .6); } }
[data-step="photos"] .drop:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
/* round 360: the frame says "a portrait is taken here" without drawing a person (the head-and-shoulders guide read as a fake, cheap
   avatar: Sergio, 2 October). A slow light in the brand's three colours breathes behind a field of the app's dots; over it a viewfinder,
   four corners and a line of light that travels down and back; the camera sits in a glass disc at its centre. Hovering or dragging a
   photo over the frame draws the corners in and wakes the light. Nothing moves under calm or reduced motion. */
.drop-guide { position:absolute; inset:0; border-radius:inherit; overflow:hidden; pointer-events:none; }
.dg-orb { position:absolute; left:50%; top:37%; width:74%; aspect-ratio:1; translate:-50% -50%; border-radius:50%; opacity:.34; filter:blur(38px);
  background:conic-gradient(from 200deg, rgb(109 58 232), rgb(193 59 158), rgb(242 106 46), rgb(109 58 232)); animation:dgTurn 16s linear infinite, dgBreathe 5.2s ease-in-out infinite alternate; transition:opacity 320ms var(--ease-out); }
html.op-dark .dg-orb { opacity:.46; }
.dg-dots { position:absolute; inset:0; background-image:radial-gradient(circle, rgba(var(--op-accent-rgb), .34) 1px, transparent 1.5px); background-size:14px 14px; background-position:50% 37%;
  -webkit-mask-image:radial-gradient(58% 44% at 50% 37%, #000 20%, transparent 78%); mask-image:radial-gradient(58% 44% at 50% 37%, #000 20%, transparent 78%); }
.dg-view { position:absolute; left:50%; top:37%; width:58%; aspect-ratio:1 / 1.12; translate:-50% -50%; transition:scale 420ms var(--ease-out); }
.dg-view i { position:absolute; width:26px; height:26px; border:2.5px solid var(--accent); opacity:.9; transition:translate 420ms var(--ease-out), opacity 220ms var(--ease-out); }
.dg-view i:nth-child(1) { left:0; top:0; border-right:0; border-bottom:0; border-radius:12px 0 0 0; }
.dg-view i:nth-child(2) { right:0; top:0; border-left:0; border-bottom:0; border-radius:0 12px 0 0; }
.dg-view i:nth-child(3) { left:0; bottom:0; border-right:0; border-top:0; border-radius:0 0 0 12px; }
.dg-view i:nth-child(4) { right:0; bottom:0; border-left:0; border-top:0; border-radius:0 0 12px 0; }
.dg-view em { position:absolute; left:6%; right:6%; top:8%; height:2px; border-radius:2px; background:linear-gradient(90deg, transparent, rgba(var(--op-accent-rgb), .9) 30%, rgb(193 59 158 / .9) 70%, transparent); box-shadow:0 0 14px 2px rgba(var(--op-accent-rgb), .35); opacity:.75; animation:dgScan 3.4s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
[data-step="photos"] .drop.over .dg-view i:nth-child(1), [data-step="photos"] .drop:focus-visible .dg-view i:nth-child(1) { translate:7px 7px; }
@media (hover:hover) and (pointer:fine) { [data-step="photos"] .drop:hover .dg-view i:nth-child(1) { translate:7px 7px; } }
[data-step="photos"] .drop.over .dg-view i:nth-child(2), [data-step="photos"] .drop:focus-visible .dg-view i:nth-child(2) { translate:-7px 7px; }
@media (hover:hover) and (pointer:fine) { [data-step="photos"] .drop:hover .dg-view i:nth-child(2) { translate:-7px 7px; } }
[data-step="photos"] .drop.over .dg-view i:nth-child(3), [data-step="photos"] .drop:focus-visible .dg-view i:nth-child(3) { translate:7px -7px; }
@media (hover:hover) and (pointer:fine) { [data-step="photos"] .drop:hover .dg-view i:nth-child(3) { translate:7px -7px; } }
[data-step="photos"] .drop.over .dg-view i:nth-child(4), [data-step="photos"] .drop:focus-visible .dg-view i:nth-child(4) { translate:-7px -7px; }
@media (hover:hover) and (pointer:fine) { [data-step="photos"] .drop:hover .dg-view i:nth-child(4) { translate:-7px -7px; } }
[data-step="photos"] .drop.over .dg-orb, [data-step="photos"] .drop:focus-visible .dg-orb { opacity:.55; }
@media (hover:hover) and (pointer:fine) { [data-step="photos"] .drop:hover .dg-orb { opacity:.55; } }
@keyframes dgTurn { to { rotate:360deg; } }
@keyframes dgBreathe { from { scale:.92; } to { scale:1.08; } }
@keyframes dgScan { from { top:8%; } to { top:90%; } }
@media (prefers-reduced-motion:reduce) { .dg-orb, .dg-view em { animation:none; } .dg-view em { top:50%; opacity:.4; } }
html.calm .dg-orb, html.calm .dg-view em { animation:none; } html.calm .dg-view em { top:50%; opacity:.4; }
[data-step="photos"] .drop { padding-bottom:28px; }
[data-step="photos"] .drop-ico { position:absolute; left:50%; top:37%; translate:-50% -50%; z-index:1; width:64px; height:64px; margin:0; border-radius:50%; display:grid; place-items:center; font-size:28px; color:var(--accent); background:color-mix(in srgb, var(--s-1) 78%, transparent); box-shadow:inset 1px 1px 0 rgba(255,255,255,.85), inset -1px -1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(var(--op-accent-rgb), .16), 0 14px 30px -14px rgba(var(--op-accent-rgb), .55); transition:scale 320ms var(--ease-out), box-shadow 320ms var(--ease-out); }
html.op-dark [data-step="photos"] .drop-ico { box-shadow:inset 1px 1px 0 rgba(255,255,255,.16), inset -1px -1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(255,255,255,.08), 0 14px 30px -14px rgba(0,0,0,.7); }
[data-step="photos"] .drop.over .drop-ico, [data-step="photos"] .drop:focus-visible .drop-ico { scale:1.06; }
@media (hover:hover) and (pointer:fine) { [data-step="photos"] .drop:hover .drop-ico { scale:1.06; } }
[data-step="photos"] .drop-t { position:relative; z-index:1; margin-top:var(--sp-2); font-size:16px; font-weight:600; color:var(--t-100); text-align:center; line-height:1.3; }
[data-step="photos"] .drop-d { position:relative; z-index:1; font-size:var(--fs-small); color:var(--t-500); }
[data-step="photos"] .ph-side { position:relative; z-index:1; display:flex; flex-direction:column; gap:var(--sp-4); min-width:0; }
[data-step="photos"] .tips { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; margin:0; max-width:none; gap:var(--sp-2); }
@media (max-width:560px) { [data-step="photos"] .tips { display:flex; } }
[data-step="photos"] .tips li { display:flex; align-items:center; gap:var(--sp-3); min-height:52px; padding:6px 10px 6px 6px; border-radius:16px; background:var(--s-1); border:1px solid var(--line); font-size:15px; color:var(--t-200); }
[data-step="photos"] .tips li i { flex:none; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; font-size:19px; color:var(--accent); background:rgba(var(--op-accent-rgb), .09); }
[data-step="photos"] .thumbs { justify-content:flex-start; gap:var(--sp-2); margin:0; }
[data-step="photos"] .thumb { width:72px; height:96px; border-radius:14px; border:1px solid var(--line); box-shadow:0 10px 24px -16px rgba(27,25,38,.35); }
[data-step="photos"] .actions { margin-top:var(--sp-8); }
@media (max-width:820px) {
  [data-step="photos"] .ph-wrap { grid-template-columns:1fr; gap:var(--sp-4); justify-items:center; max-width:460px; margin-left:auto; margin-right:auto; }
  [data-step="photos"] .ph-wrap::before { left:50%; top:30%; width:420px; height:420px; }
  [data-step="photos"] .drop { width:100%; aspect-ratio:auto; min-height:220px; }
  [data-step="photos"] .ph-side { width:100%; }
  [data-step="photos"] .actions { margin-top:var(--sp-6); }
}
@media (max-height:760px) and (min-width:821px) { [data-step="photos"] .drop { width:260px; } [data-step="photos"] .ph-wrap { grid-template-columns:260px minmax(260px, 400px); gap:var(--sp-6); margin-top:var(--sp-4); } [data-step="photos"] .ph-wrap::before { left:130px; } }
/* the voice */
[data-step="record"].voice-only .rec-stage { position:relative; width:min(100%, 680px); gap:0; margin-top:var(--sp-6); }
[data-step="record"].voice-only .rec-stage::before { content:''; position:absolute; left:50%; top:62%; translate:-50% -50%; width:560px; height:420px; border-radius:50%; background:radial-gradient(closest-side, rgba(var(--op-accent-rgb), .12), transparent); pointer-events:none; z-index:0; }
[data-step="record"].voice-only .voicestage { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:var(--sp-6); width:100%; }
[data-step="record"].voice-only .vs-read { position:relative; width:100%; margin:0; padding:30px 34px 30px 38px; border-radius:24px; background:var(--s-1); border:1px solid var(--line); box-shadow:0 1px 2px rgba(27,25,38,.04), 0 24px 50px -32px rgba(var(--op-accent-rgb), .5); font-size:20px; line-height:1.6; color:var(--t-100); }
[data-step="record"].voice-only .vs-read::before { content:'\201C'; position:absolute; left:16px; top:4px; font-size:64px; line-height:1; font-weight:700; color:rgba(var(--op-accent-rgb), .3); pointer-events:none; }
[data-step="record"].voice-only .vs-deck { gap:var(--sp-4); }
[data-step="record"].voice-only .vs-orb { width:84px; height:84px; background:rgba(var(--op-accent-rgb), .10); box-shadow:inset 0 0 0 1px rgba(var(--op-accent-rgb), .18); }
[data-step="record"].voice-only .vs-orb i { font-size:32px; }
[data-step="record"].voice-only .vs-time { font-size:36px; }
[data-step="record"].voice-only .rec-cam { position:relative; z-index:1; gap:var(--sp-3); margin-top:var(--sp-2); }
[data-step="record"].voice-only .rec-btn { width:80px; height:80px; border:0; background:color-mix(in srgb, var(--s-1) 70%, transparent); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:inset 1px 1px 0 rgba(255,255,255,.8), 0 0 0 2px rgba(var(--op-accent-rgb), .35), 0 0 0 10px rgba(var(--op-accent-rgb), .08), 0 14px 30px -14px rgba(var(--op-accent-rgb), .55); }
[data-step="record"].voice-only .rec-btn i { width:52px; height:52px; box-shadow:0 6px 14px -6px rgba(220,38,71,.6); }
[data-step="record"].voice-only .rec-btn:hover { box-shadow:inset 1px 1px 0 rgba(255,255,255,.8), 0 0 0 2px rgba(var(--op-accent-rgb), .55), 0 0 0 12px rgba(var(--op-accent-rgb), .12), 0 14px 30px -12px rgba(var(--op-accent-rgb), .65); }
[data-step="record"].voice-only .rec-label { font-size:16px; font-weight:500; color:var(--t-300); }
html.op-dark [data-step="record"].voice-only .rec-btn { background:color-mix(in srgb, var(--s-1) 70%, transparent); box-shadow:inset 1px 1px 0 rgba(255,255,255,.14), 0 0 0 2px rgba(var(--op-accent-rgb), .4), 0 0 0 10px rgba(var(--op-accent-rgb), .1), 0 14px 30px -14px rgba(0,0,0,.7); }
@media (max-width:600px) { [data-step="record"].voice-only .vs-read { padding:24px 22px 24px 28px; font-size:18px; } [data-step="record"].voice-only .vs-read::before { font-size:48px; left:10px; } [data-step="record"].voice-only .rec-stage::before { width:360px; height:320px; } }
/* on a phone both steps must fit above the bar: smaller orb, time and paddings for the voice; the tips as two compact rows and a lower
   frame for the photo. The step is centred and clips what does not fit, so the sizes are the fit. */
@media (max-width:600px) {
  [data-step="record"].voice-only .rec-stage { margin-top:var(--sp-3); }
  [data-step="record"].voice-only .voicestage { gap:var(--sp-4); }
  [data-step="record"].voice-only .vs-read { padding:18px 18px 18px 24px; font-size:17px; line-height:1.5; }
  [data-step="record"].voice-only .vs-read::before { font-size:40px; left:8px; top:2px; }
  [data-step="record"].voice-only .vs-orb { width:64px; height:64px; }
  [data-step="record"].voice-only .vs-orb i { font-size:26px; }
  [data-step="record"].voice-only .vs-time { font-size:30px; }
  [data-step="record"].voice-only .rec-cam { margin-top:0; gap:var(--sp-2); }
  [data-step="record"].voice-only .rec-btn { width:68px; height:68px; }
  [data-step="record"].voice-only .rec-btn i { width:44px; height:44px; }
  [data-step="photos"] .ph-wrap { margin-top:var(--sp-4); gap:var(--sp-3); }
  [data-step="photos"] .drop { min-height:188px; padding:var(--sp-4); padding-bottom:18px; border-radius:22px; }
  [data-step="photos"] .drop-guide::before { top:8%; width:22%; }
  [data-step="photos"] .drop-guide::after { top:36%; width:56%; }
  [data-step="photos"] .drop-ico { width:48px; height:48px; font-size:22px; border-radius:14px; }
  [data-step="photos"] .drop-t { font-size:15px; }
  [data-step="photos"] .tips { display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-2); }
  [data-step="photos"] .tips li { min-height:44px; padding:4px 8px 4px 4px; border-radius:12px; font-size:13px; line-height:1.25; gap:var(--sp-2); }
  [data-step="photos"] .tips li i { width:32px; height:32px; border-radius:9px; font-size:16px; }
  [data-step="photos"] .thumb { width:56px; height:74px; }
  [data-step="photos"] .actions { margin-top:var(--sp-4); }
}

/* ═══ round 348: the reading's plan as a timeline. Sergio, 1 October: "esta sección debe ser más cool también". The card is translucent
   over the dot field; a thin line joins the marks and fills as the steps are done; the running step's ring spins in the accent with a
   soft glow, a done step is a filled green check, a waiting one a hairline circle; the seconds sit in a small pill at the right; the
   running row's words take the accent. The painter is round 328's, untouched. ═══ */
.plan-run { position:relative; width:min(100%, 600px); margin-top:28px; padding:10px; border-radius:24px; background:color-mix(in srgb, var(--s-1) 86%, transparent); border:1px solid var(--line); box-shadow:0 1px 2px rgba(27,25,38,.04), 0 30px 60px -36px rgba(var(--op-accent-rgb), .45); }
.plan-run::before { content:''; position:absolute; left:33px; top:34px; bottom:34px; width:2px; border-radius:2px; background:var(--line); pointer-events:none; }
.plan-run > li { position:relative; grid-template-columns:28px 1fr auto; gap:14px; min-height:64px; padding:14px 14px 14px 12px; border-radius:16px; }
.plan-run > li.pr-running { background:rgba(var(--op-accent-rgb), .07); }
.plan-run > li.pr-done { background:transparent; }
/* the line fills down to the last done step */
.plan-run > li.pr-done::before { content:''; position:absolute; left:21px; top:50%; bottom:-50%; width:2px; background:var(--sem-green); opacity:.55; z-index:0; }
.plan-run > li.pr-done:last-child::before { display:none; }
.plan-run .mark { position:relative; z-index:1; width:28px; height:28px; margin:3px 0 0 0; border-radius:50%; background:var(--s-1); }
.plan-run .ring { stroke-width:1.5; }
.plan-run > li.pr-running .mark { box-shadow:0 0 0 6px rgba(var(--op-accent-rgb), .10); }
.plan-run > li.pr-running .ring { stroke-width:2; stroke-dasharray:14 33; }
.plan-run > li.pr-done .mark { background:var(--sem-green); box-shadow:0 0 0 4px color-mix(in srgb, var(--sem-green) 14%, transparent); }
.plan-run > li.pr-done .ring { stroke:transparent; }
.plan-run > li.pr-done .tick { stroke:#fff; stroke-width:2; }
.plan-run .pr-body { padding-top:6px; }
.plan-run .lbl { font-size:17px; }
.plan-run > li.pr-running .lbl { color:var(--accent); }
.plan-run .pr-sub > span { font-size:15px; color:var(--t-400); }
.plan-run .out { align-self:start; margin-top:4px; padding:4px 10px; border-radius:999px; font-size:13px; font-weight:600; color:var(--t-400); background:var(--s-3); white-space:nowrap; }
.plan-run > li.pr-running .out { color:var(--accent); background:rgba(var(--op-accent-rgb), .10); }
.plan-run > li.pr-done .out { color:var(--sem-green); background:color-mix(in srgb, var(--sem-green) 10%, transparent); }
.plan-run > li .out:empty { display:none; }
html.op-dark .plan-run { background:color-mix(in srgb, var(--s-1) 80%, transparent); }
html.op-dark .plan-run .mark { background:var(--s-1); }
html.op-dark .plan-run > li.pr-done .mark { background:var(--sem-green); }
html.op-dark .plan-run > li.pr-done .tick { stroke:#0F0E14; }
@media (max-width:600px) { .plan-run { padding:6px; border-radius:20px; } .plan-run::before { left:27px; } .plan-run > li { gap:12px; padding:12px 10px 12px 8px; } .plan-run > li.pr-done::before { left:17px; } .plan-run .lbl { font-size:16px; } }

/* ═══ round 349: who appears, at the head of the box; the box's focus as a ring of light. Sergio, 1 October: "la parte donde se señala
   Presented by se pierde un poco; debe ir en un lugar más notorio, limpio, elegante y minimalista", and "el box en focus debe tener la
   animación suave del anillo que lo rodea, en gradient, en lugar de un borde sólido". ═══ */
.sharebox > .asrow { display:flex; align-items:center; justify-content:flex-start; flex-wrap:nowrap; gap:10px; width:auto; max-width:none; margin:0 0 var(--sp-2); padding:0 2px 10px 2px; border-bottom:1px solid var(--line); text-align:left; }
.sharebox > .asrow .ic { flex:none; width:30px; height:30px; border-radius:50%; overflow:hidden; display:grid; place-items:center; font-size:15px; color:var(--accent); background:rgba(var(--op-accent-rgb), .10); }
.sharebox > .asrow .ic img { width:100%; height:100%; object-fit:cover; }
.sharebox > .asrow .t { flex:1 1 auto; min-width:0; font-size:15px; font-weight:600; color:var(--t-100); text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sharebox > .asrow .t small { display:inline; margin-left:6px; font-size:14px; font-weight:400; color:var(--t-500); }
.sharebox > .asrow .t small::before { content:'· '; }
.sharebox > .asrow .mini { flex:none; margin-left:auto; min-height:36px; height:36px; padding:0 12px 0 10px; border-radius:999px; border:1px solid var(--line); background:var(--s-1); font-size:14px; font-weight:600; color:var(--accent); gap:6px; }
.sharebox > .asrow .mini i { display:inline; font-size:14px; }
.sharebox > .asrow .mini:hover { background:var(--hover-tint); border-color:var(--hover-line); text-decoration:none; }
.sharebox > .asrow .as-choose { width:100%; justify-content:flex-start; min-height:36px; padding:0; gap:10px; border-radius:12px; }
.sharebox > .asrow .as-choose .t { font-weight:600; color:var(--t-100); }
.sharebox > .asrow .as-choose .go { margin-left:auto; min-height:36px; padding:0 12px; border-radius:999px; border:1px solid var(--line); background:var(--s-1); font-size:14px; }
@media (max-width:600px) { .sharebox > .asrow .t { white-space:normal; font-size:14px; } .sharebox > .asrow .t small { display:block; margin:1px 0 0; } .sharebox > .asrow .t small::before { content:''; } }
/* the ring: a conic gradient of the accent's family, masked to a 2 px band just outside the box, turning slowly; it fades in on focus,
   the solid border fades out. Still under reduced motion and the calm setting. */
@property --ring-a { syntax:'<angle>'; inherits:false; initial-value:0deg; }
.sharebox { position:relative; overflow:visible; transition:border-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.sharebox::before { content:''; position:absolute; inset:-3px; border-radius:calc(var(--r-4) + 3px); padding:2.5px; pointer-events:none; z-index:2; opacity:0; transition:opacity .35s var(--ease-out);
  background:conic-gradient(from var(--ring-a), var(--accent), #C4B5FD, #A78BFA, var(--accent), #DDD6FE, var(--accent));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude;
  animation:ringTurn 7s linear infinite; animation-play-state:paused; }
.sharebox:focus-within { border-color:transparent; box-shadow:0 0 0 1px transparent, 0 32px 80px -36px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 40px -10px rgba(var(--op-accent-rgb), .25); }
.sharebox:focus-within::before { opacity:1; animation-play-state:running; }
@keyframes ringTurn { to { --ring-a:360deg; } }
html.op-dark .sharebox::before { background:conic-gradient(from var(--ring-a), var(--accent), #7C5CE6, #C4B5FD, var(--accent), #6D3AE8, var(--accent)); }
@media (prefers-reduced-motion: reduce) { .sharebox::before { animation:none; } }
html.calm .sharebox::before { animation:none; }

/* ═══ Round 350 (Sergio, 1 October 2026: "que todo se sienta fluido y bien animado pero elegante y smooth pero que cause asombro") ═══
   The motion pass. Nothing new moves; what already moved now moves on one curve (--ease-out, cubic-bezier(.2, 0, 0, 1): quick off the
   mark, a long soft landing), travels far enough to be seen (8 px, where it was 4) and comes into focus as it lands. What arrives takes
   its time (400 to 500 ms); what leaves goes in 150. A press is one depth everywhere. An icon that changes meaning changes in place.
   The scripted half lives in app.js (the 'settle' ease, show(), arrive(), sheetIn and sheetOut, swapIcon). */

/* a press: 0.96 on every control a finger lands on, and it eases in and out. Before this round the press was a transform on controls
   whose transitions did not name the transform, so most of them snapped. Now it is the scale property, named in the transition of every
   control of the set (the list is restated whole, with !important, because each control's own transition shorthand would drop it);
   nothing scripted moves the scale property, so no entrance is slowed by it. Cards, rows and tiles keep their lighter press on the
   transform: 4 % of a wide surface is a lurch */
.primary, .ghost, .tb-btn, .tab-btn, .lchip, .dchip, .dest-head, .mini, .send, .dock-btn, .kb, .lib-seg button, .seg3 button, .x, .dose-aurora, .askbtn, .plan-gate-go, .lib-up, .lib-sort, .cat-dd, .nudge-x, .you-out, .toast-act { transition-property:background-color, color, border-color, box-shadow, filter, scale !important; }
.primary, .send { transition-property:background-color, color, border-color, box-shadow, filter, opacity, scale !important; }
.primary:active, .ghost:active, .tb-btn:active, .tab-btn:active, .lchip:active, .dchip:active, .dest-head:active, .mini:active, .send:active, .dock-btn:active, .kb:active, .lib-seg button:active, .seg3 button:active, .x:active, .dose-aurora:active, .askbtn:active, .plan-gate-go:active, .lib-up:active, .lib-sort:active, .cat-dd:active, .nudge-x:active, .you-out:active, .toast-act:active { transform:none; scale:.96; }
.primary:disabled:active, .send:disabled:active { scale:none; }
.tiny:active, .idea-chip:active, .alt:active { transform:scale(.96); }

/* the account panel: it arrives on the long landing and leaves faster than it came; its blocks come into focus one after another */
.you { transition:translate 460ms var(--ease-out); }
.you:not(.open) { transition-duration:240ms; }
@keyframes youIn { from { opacity:0; translate:0 10px; filter:blur(5px); } to { opacity:1; translate:0 0; filter:blur(0); } }
.you.open .you-hub > * { animation:youIn 460ms var(--ease-out) backwards; animation-delay:calc(60ms + var(--i, 0) * 40ms); }
@keyframes youFwd { from { opacity:0; translate:22px 0; } to { opacity:1; translate:0 0; } }
@keyframes youBack { from { opacity:0; translate:-22px 0; } to { opacity:1; translate:0 0; } }
.you.open .you-body > .you-in-fwd, .you.open .you-body > .you-in-back { animation-duration:340ms; }
.you.open .you-hub.you-in-back > * { animation:none; }
.scrim { transition:opacity 320ms var(--ease-out); }

/* today's ideas come into focus under the box, one after another */
@keyframes ideaIn { from { opacity:0; translate:0 8px; filter:blur(4px); } to { opacity:1; translate:0 0; filter:blur(0); } }
.idea-chip[data-idea] { animation:ideaIn 520ms var(--ease-out) backwards; animation-delay:calc(var(--i, 0) * 70ms); }

/* the arrival's words (app.js arrive()): each one is a block, so it can rise on its own */
.q-w { display:inline-block; will-change:transform, opacity, filter; }

/* a tick that appears grows into focus by its transition alone; the old settle keyframe would fight it */
.cast-one[aria-pressed="true"] .tick, .ws-copy .ph-check { animation:none; }
.kmenu button[aria-checked="true"] .tick { filter:blur(0); }

/* the arrow of a forward action leans the way it goes */
@media (hover:hover) {
  .send i.ph-arrow-right, .primary i.ph-arrow-right { transition:translate 220ms var(--ease-out); }
  .send:not(:disabled):hover i.ph-arrow-right, .primary:not(:disabled):hover i.ph-arrow-right { translate:3px 0; }
  /* a cover leans in under the pointer, as the catalogue's already did */
  .card .ca img { transition:transform .55s var(--ease-out); }
  .card:hover .ca img { transform:scale(1.035); }
}

/* a picture's edge is a neutral line: pure black at 10 % in the light look, pure white in the dark, never a tinted grey */
.card .ca, .ccard-frame, .rel-frame { border-color:rgb(0 0 0 / .1); }
html.op-dark .card .ca, html.op-dark .ccard-frame, html.op-dark .rel-frame { border-color:rgb(255 255 255 / .1); }

/* numbers that change keep their width */
.tb-badge, .card .dur, .ccard-dur, .tray-n { font-variant-numeric:tabular-nums; }

@media (prefers-reduced-motion: reduce) { .you.open .you-hub > *, .idea-chip[data-idea] { animation:none; } .q-w { will-change:auto; } }
html.calm .you.open .you-hub > *, html.calm .idea-chip[data-idea] { animation:none; }
html.calm .you { transition-duration:200ms; }
html.calm .send i.ph-arrow-right, html.calm .primary i.ph-arrow-right, html.calm .card .ca img { transition:none; translate:none; transform:none; }

/* ═══ Round 351 (Sergio, 1 October 2026, on the offer: "este diseño puede ser mucho más cool, ¿no? y mejor animado") ═══
   The offer shows the video before it exists. Left, a portrait frame: who appears, a bar per line of the script, and the lines as
   captions said one after another (app.js playPreview). Right, the title, the choices as plain rows and the one action. Only the action
   has chrome; the rows are text on hairlines (round 321's rule). A row under the pointer lights its part of the frame: the caption, the
   face, the music, the language. The entrance is app.js enterOffer. */
.offer-main { width:min(100%, 900px); flex:none; min-height:auto; padding:var(--sp-6); gap:var(--sp-4); border-radius:var(--r-4); }   /* the card keeps the height of what it holds; a short window scrolls the page, never the card's edge through its content */
.om-body { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:var(--sp-8); align-items:stretch; }
.om-side { display:flex; flex-direction:column; min-width:0; }

/* the frame */
.om-stage { position:relative; flex:none; align-self:center; width:232px; aspect-ratio:9 / 16; border-radius:20px; overflow:hidden; background:#0E0C14; isolation:isolate;
  box-shadow:0 0 0 1px rgb(0 0 0 / .1), 0 28px 48px -28px rgba(var(--op-accent-rgb), .55), 0 10px 20px -14px rgba(27,25,38,.35); }
html.op-dark .om-stage { box-shadow:0 0 0 1px rgb(255 255 255 / .1), 0 28px 48px -28px rgba(0,0,0,.8); }
.om-stage .om-thumb { position:absolute; inset:0; width:auto; height:auto; border-radius:0; background:#0E0C14; }
.om-stage .om-thumb img, .om-stage .om-thumb video { transition:scale .7s var(--ease-out); }
.om-stage::after { content:''; position:absolute; inset:auto 0 0 0; height:58%; z-index:1; pointer-events:none; background:linear-gradient(to top, rgb(8 6 16 / .78), rgb(8 6 16 / .35) 45%, transparent); }
.om-stage::before { content:''; position:absolute; inset:0 0 auto 0; height:22%; z-index:1; pointer-events:none; background:linear-gradient(to bottom, rgb(8 6 16 / .4), transparent); }
.om-segs { position:absolute; left:12px; right:12px; top:12px; z-index:2; display:flex; gap:4px; }
.om-segs i { flex:1; height:3px; border-radius:2px; overflow:hidden; background:rgb(255 255 255 / .32); }
.om-segs b { display:block; height:100%; border-radius:2px; background:#fff; transform-origin:0 50%; transform:scaleX(0); }
.om-cap { position:absolute; left:14px; right:14px; bottom:16px; z-index:2; height:6.6em; font-size:15px; line-height:1.32; border-radius:var(--r-2); outline:1.5px solid transparent; outline-offset:6px; transition:outline-color .3s var(--ease-out); }
.om-cap p { position:absolute; left:0; right:0; bottom:0; max-height:6.6em; margin:0; font-weight:600; color:#fff; text-align:center; text-wrap:balance; text-shadow:0 1px 10px rgb(0 0 0 / .55); opacity:0; overflow:hidden; }
.om-cap p span { display:inline-block; }
/* what a row under the pointer lights: a chip grows into focus (scale .25, a 4 px blur), the face comes closer, the caption gets a ring */
.om-chip { position:absolute; top:26px; z-index:2; display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 9px; border-radius:99px; font-size:12px; font-weight:600; color:#fff; background:rgb(14 10 26 / .55); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  opacity:0; scale:.25; filter:blur(4px); transition:opacity .3s var(--ease-out), scale .3s var(--ease-out), filter .3s var(--ease-out); }
.om-eq { left:12px; transform-origin:0 50%; } .om-lg { right:12px; transform-origin:100% 50%; letter-spacing:.02em; }
/* 21 November 2026 (audit pass 5): an AI presenter is marked on the frame at all times, as the review's phone marks it; the music chip
   that grows in on a hover takes the row below it */
.om-ai { position:absolute; top:26px; left:12px; z-index:2; display:inline-flex; align-items:center; gap:5px; height:24px; padding:0 9px 0 7px; border-radius:99px; font-size:12px; font-weight:500; line-height:16px; color:rgb(255 255 255 / .94); background:rgb(14 10 26 / .34); -webkit-backdrop-filter:blur(12px) saturate(1.4); backdrop-filter:blur(12px) saturate(1.4); box-shadow:0 0 0 1px rgb(255 255 255 / .14) inset; white-space:nowrap; pointer-events:none; }
.om-ai i { font-size:13px; opacity:.86; }
.om-ai ~ .om-eq { top:56px; }
.om-eq em { display:inline-flex; align-items:flex-end; gap:2px; height:10px; }
.om-eq em i { width:2px; height:100%; border-radius:1px; background:#fff; transform-origin:50% 100%; animation:omEq 900ms ease-in-out infinite alternate; }
.om-eq em i:nth-child(2) { animation-delay:-300ms; } .om-eq em i:nth-child(3) { animation-delay:-600ms; }
@keyframes omEq { from { transform:scaleY(.3); } to { transform:scaleY(1); } }
.offer-main:has([data-sheet="music"]:focus-visible) .om-eq, .offer-main:has([data-sheet="langs"]:focus-visible) .om-lg { opacity:1; scale:1; filter:blur(0); } @media (hover:hover) and (pointer:fine) { .offer-main:has([data-sheet="music"]:hover) .om-eq, .offer-main:has([data-sheet="langs"]:hover) .om-lg { opacity:1; scale:1; filter:blur(0); } }
.offer-main:has([data-who]:focus-visible) .om-thumb :is(img, video) { scale:1.06; }
@media (hover:hover) and (pointer:fine) { .offer-main:has([data-who]:hover) .om-thumb :is(img, video) { scale:1.06; } }
.offer-main:has([data-sheet="script"]:is(:hover, :focus-visible)) .om-cap { outline-color:rgb(255 255 255 / .7); }

/* the side: a title, the rows, the action */
.om-hero { display:block; padding:2px 0 var(--sp-3); }
.om-titles { flex:none; gap:6px; }
.om-name { margin:0; font-size:var(--fs-section); font-weight:600; letter-spacing:-.015em; line-height:1.2; color:var(--t-100); text-wrap:balance; }
.om-sub { font-size:15px; line-height:1.45; text-wrap:pretty; }
.om-tiles, .om-tiles[data-n="4"] { display:flex; flex-direction:column; gap:0; }
.om-tile { position:relative; display:grid; grid-template-columns:40px minmax(0, 1fr) auto; grid-template-rows:auto auto; align-items:center; column-gap:var(--sp-3); row-gap:1px; min-height:66px; margin:0 -10px; padding:10px 12px 10px 10px; border:0; border-radius:var(--r-2); background:transparent; box-shadow:none;
  transition:background-color var(--hover-dur) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.om-tile::before { content:''; position:absolute; left:10px; right:10px; top:0; height:1px; background:var(--line); transition:opacity var(--hover-dur) var(--ease-out); }
.om-tile:focus-visible { transform:none; box-shadow:none; } @media (hover:hover) and (pointer:fine) { .om-tile:hover { transform:none; box-shadow:none; } }
.om-tile:active { transform:none; scale:.985; }
.om-tile .tile-ic { grid-column:1; grid-row:1 / 3; width:40px; height:40px; margin:0; border-radius:var(--r-2); font-size:19px; }
.om-tile .tile-k { grid-column:2; grid-row:1; align-self:end; margin:0; font-size:13px; font-weight:500; color:var(--t-500); }
.om-tile .tile-v { grid-column:2; grid-row:2; align-self:start; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:var(--fs-body); font-weight:600; line-height:1.35; color:var(--t-100); }
.om-tile[data-sheet="script"] .tile-v { font-weight:500; }
.om-tile .tile-a { grid-column:3; grid-row:1 / 3; align-self:center; margin:0; padding:0 0 0 var(--sp-2); font-size:var(--fs-small); font-weight:600; white-space:nowrap; }
.om-tile .tile-a i { transition:translate 220ms var(--ease-out); }
@media (hover:hover) {
  .om-tile:hover { background:rgba(var(--op-accent-rgb), .06); border-color:transparent; }
  .om-tile:hover::before, .om-tile:hover + .om-tile::before { opacity:0; }
  .om-tile:hover .tile-a i { translate:3px 0; }
  #offerMake i { transition:color var(--hover-dur, 180ms) var(--ease-out); }   /* audit pass 4: no turning icons; the sparkle only lightens */
  #offerMake:not([data-plans]):hover i { color:color-mix(in srgb, var(--accent) 55%, #fff); }
}
[data-step="offer"] .om-foot, .om-foot { margin-top:auto; padding-top:var(--sp-4); display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:var(--sp-3); }
.om-foot .om-time { margin:0; flex:none; }
.om-foot .primary { height:52px; }

@media (min-width:641px) { html[data-text="lg"] .om-stage { width:204px; } html[data-text="xl"] .om-stage { width:184px; } }   /* the larger text sizes zoom the stage: the frame gives the room back */
@media (max-height:800px) { .om-stage { width:204px; } .om-tile { min-height:60px; padding-top:8px; padding-bottom:8px; } .offer-main { padding:var(--sp-4) var(--sp-6); } }
/* a narrow column: the action takes the width and the time sits under it, as its note */
@media (max-width:860px) { .om-body { gap:var(--sp-6); } .om-stage { width:204px; } [data-step="offer"] .om-foot, .om-foot { flex-direction:column; align-items:stretch; gap:var(--sp-3); } .om-foot .primary { order:1; width:100%; } .om-foot .om-time { order:2; align-self:center; } }
/* a phone: the frame is a small portrait beside the title, with its bars and no caption; the rows and the action take the width */
@media (max-width:640px) {
  .offer-main { padding:var(--sp-4); }
  .om-body { grid-template-columns:76px minmax(0, 1fr); column-gap:var(--sp-4); row-gap:var(--sp-3); align-items:center; }
  .om-side { display:contents; }
  .om-stage { width:76px; border-radius:14px; grid-column:1; grid-row:1; }
  .om-cap, .om-chip { display:none; }
  .om-ai { top:auto; bottom:6px; left:6px; height:18px; padding:0 6px 0 5px; gap:3px; font-size:11px; background:rgb(14 10 26 / .66); } .om-ai i { font-size:11px; } .om-ai-more { display:none; }   /* the small frame has no shade under it: a darker chip keeps the word legible on a white coat */
  .om-stage::after, .om-stage::before { display:none; }
  .om-segs { left:7px; right:7px; top:7px; gap:2px; } .om-segs i { height:2px; }
  .om-hero { grid-column:2; grid-row:1; padding:0; }
  .om-name { font-size:19px; }
  .om-tiles, .om-tiles[data-n="4"] { grid-column:1 / -1; }
  .om-tile, .om-tile:first-child { margin:0 -8px; padding:10px 8px; grid-template-columns:40px minmax(0, 1fr) auto; }
  html[data-text="xl"] .om-tile .tile-a { white-space:normal; text-align:end; max-width:7em; }   /* at the largest text size a long action wraps before it runs over the value */
  .om-foot, [data-step="offer"] .om-foot { grid-column:1 / -1; padding-top:var(--sp-2); }
  .om-gate, .om-beta { grid-column:1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .om-eq em i { animation:none; } }
html.calm .om-eq em i { animation:none; }
html.calm .om-chip, html.calm .om-stage .om-thumb :is(img, video) { transition:none; }

/* ═══ Round 352 (Sergio, 1 October 2026, on the WhatsApp sheet: "este diseño también puede ser muchísimo más cool, ¿no?") ═══
   The pairing as a short chat. What the doctor sends is a bubble in the chat's own green, with its tail at the right; what Dose will
   answer is a white bubble at the left, three dots while the sheet waits for the server. One strong action per message, in the same
   green (it leaves for the other app); Done and the plan's note are quiet. Far fewer words. app.js pairWhatsApp draws it. */
.wsheet { width:min(100%, 560px); --wa:#008069; --wa-ink:#fff; --wa-bub:#D9FDD3; --wa-bub-ink:#111B21; --wa-paper:#F3EFE8; }
html.op-dark .wsheet { --wa:#00A884; --wa-ink:#0B141A; --wa-bub:#005C4B; --wa-bub-ink:#E9EDEF; --wa-paper:#12181C; }
.wsheet .osheet-body { padding-top:var(--sp-2); }
/* the plan's note: one quiet strip, its way to the plans a small outline */
.wsheet .ws-gate { padding:0 var(--sp-6) var(--sp-3); }
.wsheet .plan-gate { align-items:flex-start; gap:var(--sp-3); padding:var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); border-radius:var(--r-3); font-size:13.5px; line-height:1.45; }
.wsheet .plan-gate > i { margin-top:1px; }
.wsheet .plan-gate-go { align-self:center; min-height:40px; padding:0 var(--sp-3); background:transparent; color:var(--accent); box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.wsheet .plan-gate-go:hover { filter:none; background:color-mix(in srgb, var(--accent) 9%, transparent); }

.ws-chat { border-radius:var(--r-4); padding:var(--sp-3) var(--sp-4) var(--sp-4); background:
  radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--wa) 9%, transparent), transparent 70%), var(--wa-paper); box-shadow:inset 0 0 0 1px rgb(0 0 0 / .05); }
html.op-dark .ws-chat { box-shadow:inset 0 0 0 1px rgb(255 255 255 / .06); }
.ws-chat .ws-num { display:flex; align-items:center; gap:var(--sp-2); min-height:0; padding:0 0 var(--sp-2); border:0; border-radius:0; background:transparent; }
.ws-chat .ws-num > i { flex:none; font-size:24px; color:#25D366; }
.ws-chat .ws-num > b { font-size:var(--fs-body); font-weight:600; color:var(--t-100); }
.ws-chat .ws-num > span { flex:1; text-align:end; font-family:var(--font-sans); font-size:var(--fs-small); font-weight:500; letter-spacing:.01em; font-variant-numeric:tabular-nums; color:var(--t-400); }
.ws-chat .ws-steps { margin:0; gap:var(--sp-3); }
.ws-chat .ws-steps li, .wsheet .ws-chat .ws-steps li { display:block; position:relative; padding:0; border:0; }
.ws-chat .ws-n { position:absolute; left:0; top:0; width:24px; height:24px; margin:0; font-family:var(--font-sans); font-size:12.5px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--t-300); background:color-mix(in srgb, var(--t-100) 7%, transparent); }
.ws-chat .ws-steps[data-n="1"] .ws-n { display:none; }
.ws-chat .ws-st { align-items:flex-end; gap:var(--sp-2); }
.ws-chat .ws-st > b { align-self:flex-start; min-height:24px; padding-left:32px; display:flex; align-items:center; font-size:var(--fs-small); font-weight:600; line-height:1.3; color:var(--t-300); }
.ws-chat .ws-steps[data-n="1"] .ws-st > b { padding-left:0; }
/* a bubble: what is sent sits at the right in the chat's green, its last corner square, like a message's */
.ws-bub { position:relative; max-width:100%; padding:10px 14px; border-radius:18px 18px 4px 18px; background:var(--wa-bub); color:var(--wa-bub-ink); box-shadow:0 1px 1px rgb(0 0 0 / .08); font-size:var(--fs-body); line-height:1.4; }
.ws-say { font-weight:500; }
.ws-bub.ws-code { display:flex; align-items:center; justify-content:flex-end; gap:2px; padding:10px 10px 10px 18px; border-radius:18px 18px 4px 18px; background:var(--wa-bub); transition:opacity .3s var(--ease-out), filter .3s var(--ease-out); }
.ws-bub.ws-code span { width:auto; min-width:.62em; height:auto; padding:0; border:0; border-radius:0; background:transparent; display:inline-block; text-align:center; font-family:var(--font-sans); font-size:40px; font-weight:600; line-height:1.15; letter-spacing:0; font-variant-numeric:tabular-nums; color:var(--wa-bub-ink); }
.ws-bub.ws-code span:nth-child(3) { margin-right:.34em; }
.ws-bub.ws-code .ws-copy { position:static; transform:none; flex:none; width:44px; height:44px; margin-left:var(--sp-3); border:0; border-radius:50%; background:color-mix(in srgb, var(--wa-bub-ink) 8%, transparent); color:var(--wa-bub-ink); font-size:18px; transition:background-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.ws-bub.ws-code .ws-copy:hover { background:color-mix(in srgb, var(--wa-bub-ink) 15%, transparent); color:var(--wa-bub-ink); border-color:transparent; }
.ws-bub.ws-code .ws-copy:active { scale:.96; }
.ws-bub.ws-code .ws-copy .ph-check { color:var(--wa); }
html.op-dark .ws-bub.ws-code .ws-copy .ph-check { color:#7CE3C3; }
/* the time left: a hairline under the code and one line of words */
.ws-chat .ws-timer { align-self:stretch; justify-content:flex-end; gap:var(--sp-3); padding-left:32px; }
.ws-chat .ws-steps[data-n="1"] .ws-timer { padding-left:0; }
.ws-chat .ws-bar { flex:1 1 auto; height:3px; background:color-mix(in srgb, var(--t-100) 9%, transparent); }
.ws-chat .ws-bar i { background:var(--wa); }
.ws-chat .ws-left { min-width:0; font-family:var(--font-sans); font-size:13px; font-variant-numeric:tabular-nums; letter-spacing:0; color:var(--t-400); }
.ws-chat .ws-renew { height:auto; min-height:44px; margin:-10px 0; padding:0 2px; border:0; background:transparent; font-size:13px; font-weight:600; color:var(--accent); }
.ws-chat .ws-renew:hover { color:var(--accent); text-decoration:underline; }
/* the one action under a message: it leaves for the other app, so it wears that app's green */
.ws-acts { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:var(--sp-2) var(--sp-4); }
.ws-acts:empty { display:none; }
.ws-chat .ws-open { height:44px; padding:0 14px 0 18px; border-radius:999px; font-size:15px; font-weight:600; color:var(--wa-ink); background:var(--wa); box-shadow:0 6px 16px -8px color-mix(in srgb, var(--wa) 80%, transparent); transition:filter var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out), opacity .2s; }
@media (hover:hover) and (pointer:fine) { .ws-chat .ws-open:hover { transform:none; filter:brightness(1.07); } }
.ws-chat .ws-open:active { scale:.96; }
.ws-chat .ws-open i { transition:translate 220ms var(--ease-out); }
@media (hover:hover) { .ws-chat .ws-open:hover i { translate:2px -2px; } }
.ws-chat .ws-open.ws-open-quiet { background:transparent; color:var(--wa); box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--wa) 50%, transparent); }
html.op-dark .ws-chat .ws-open.ws-open-quiet { color:#7CE3C3; }
.ws-chat .ws-link { min-height:44px; font-size:var(--fs-small); }
.ws-chat .ws-join { align-self:stretch; padding-left:32px; text-align:end; font-size:13px; line-height:1.45; color:var(--t-400); text-wrap:pretty; }
.ws-chat .ws-steps[data-n="1"] .ws-join { padding-left:0; }
.ws-chat .ws-join b { font-family:var(--font-sans); font-weight:600; color:var(--t-200); }
/* Dose's bubble: at the left, white, three dots while the sheet asks the server whether the code has arrived */
.ws-chat .ws-reply { display:flex; justify-content:flex-start; }
.ws-bub.ws-in { display:inline-flex; align-items:center; gap:10px; border-radius:18px 18px 18px 4px; background:var(--s-1); color:var(--t-400); font-size:var(--fs-small); box-shadow:0 1px 1px rgb(0 0 0 / .06); }
html.op-dark .ws-bub.ws-in { background:var(--s-3); }
.ws-dots { display:inline-flex; align-items:center; gap:4px; }
.ws-dots i { width:6px; height:6px; border-radius:50%; background:var(--t-500); animation:wsDot 1.2s ease-in-out infinite; }
.ws-dots i:nth-child(2) { animation-delay:.16s; } .ws-dots i:nth-child(3) { animation-delay:.32s; }
@keyframes wsDot { 0%, 60%, 100% { opacity:.35; translate:0 0; } 30% { opacity:1; translate:0 -3px; } }
[data-state="expired"] .ws-bub.ws-code { opacity:.4; filter:saturate(.3); }
[data-state="expired"] .ws-chat .ws-bar i { background:var(--sem-amber); }
[data-state="expired"] .ws-chat .ws-renew { background:transparent; border:0; color:var(--accent); }
[data-state="expired"] .ws-reply { display:none; }
/* what goes with the code: two short lines under the chat */
.wsheet .ws-list { flex-direction:row; flex-wrap:wrap; gap:var(--sp-2) var(--sp-4); margin:var(--sp-3) 0 0; padding:0 var(--sp-1); border:0; }
.wsheet .ws-list li { font-size:13.5px; color:var(--t-400); align-items:center; gap:6px; } .wsheet .ws-list i { font-size:16px; margin:0; }
/* paired: the answer */
.ws-paired { padding:var(--sp-8) var(--sp-4) var(--sp-6); gap:var(--sp-2); }
.ws-paired i { font-size:60px; color:var(--wa, var(--sem-green)); }
.ws-paired b { font-size:var(--fs-section); font-weight:600; letter-spacing:-.01em; }
.ws-paired p { text-wrap:pretty; }
/* the foot: Done is quiet here; the sheet's action is the message */
.wsheet .osheet-foot .primary { background:var(--s-3); color:var(--t-100); box-shadow:none; }
.wsheet .osheet-foot .primary:hover { background:color-mix(in srgb, var(--t-100) 10%, var(--s-3)); box-shadow:none; filter:none; }
@media (max-width:560px) {
  .ws-chat { padding:var(--sp-3); }
  .ws-bub.ws-code span { font-size:32px; }
  .ws-chat .ws-open { flex:1 1 auto; justify-content:center; }
  .ws-chat .ws-num { flex-wrap:nowrap; padding:0 0 var(--sp-3); } .ws-chat .ws-num > span { min-width:0; font-size:13px; }
  .ws-chat .ws-timer { flex-wrap:nowrap; } .ws-chat .ws-bar { flex-basis:auto; }
  .wsheet .plan-gate { flex-wrap:wrap; } .wsheet .plan-gate p { flex:1 1 200px; } .wsheet .plan-gate-go { width:auto; flex:none; align-self:flex-start; margin-left:calc(20px + var(--sp-3)); }
}
@media (prefers-reduced-motion: reduce) { .ws-dots i { animation:none; opacity:.6; } }
html.calm .ws-dots i { animation:none; opacity:.6; }

/* ═══ Round 353 (Sergio, 1 October 2026, on Content: "esta sección puede ser más fácil de navegar, de entender; el diseño puede ser
   más cool, más unificado con el resto de la app") ═══
   One way to say where you are, the top bar's: a white capsule with the tinted pill, for Mine and Doctorpedia. Under it the states as
   plain filters with their counts, the same pill sliding under the chosen one. A card says its state in words under its title, with a
   dot (amber waits for you, green is published, grey is ready); the cover keeps only what belongs to the picture. The notice of what
   waits leads to it. app.js renderLibrary paints the counts and the states, and glides the cards on a change of filter or order. */

/* the head */
.lib-titles { align-items:center; gap:var(--sp-4); }
.lib-titles .lib-scope { margin:0; padding:4px; gap:2px; border-radius:999px; background:var(--s-1); border:1px solid var(--line); box-shadow:0 1px 2px rgba(27,25,38,.04), 0 10px 30px -18px rgba(27,25,38,.35); overflow:visible; isolation:isolate; }
html.op-dark .lib-titles .lib-scope { box-shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.7); }
.lib-scope button, .pseg.lib-scope button { height:40px; padding:0 18px; border-radius:999px; font-size:15px; font-weight:600; color:var(--t-300); background:transparent; box-shadow:none; }
.lib-scope button[aria-selected="true"], .pseg.lib-scope button[aria-selected="true"] { color:var(--accent); background:transparent; }
.lib-scope .pseg-thumb { top:4px; bottom:4px; height:auto; border-radius:999px; background:rgba(var(--op-accent-rgb), .11); box-shadow:none; }
.lib-titles small { font-size:var(--fs-small); color:var(--t-500); }
.lib-sample { padding:1px 7px; border-radius:999px; font-size:var(--fs-caption); font-weight:500; color:var(--t-500); border-color:var(--line-strong); }
.lib-actions { gap:var(--sp-3); }
.lib-top .primary.lib-new, .lib-up { height:44px; }
.lib-up { border-radius:var(--r-2); }

/* the states: words and their counts, the pill under the one in use */
.lib-seg { padding:0; gap:2px; background:transparent; border:0; border-radius:999px; }
.lib-seg button { display:inline-flex; align-items:center; gap:8px; height:44px; min-width:44px; padding:0 14px; border-radius:999px; font-size:15px; font-weight:500; color:var(--t-400); background:transparent; }
.lib-seg button[aria-selected="true"] { color:var(--accent); font-weight:600; }
.lib-seg button::after { content:attr(data-n); min-width:20px; padding:0 6px; height:20px; display:inline-grid; place-items:center; border-radius:999px; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--t-400); background:var(--s-3); transition:background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.lib-seg button:not([data-n])::after { display:none; }
.lib-seg button[aria-selected="true"]::after { color:var(--accent); background:var(--s-1); }
.lib-seg button[data-filter="approval"]:not([data-n="0"])::after { color:var(--st-wait-ink); background:var(--st-wait-bg); }
.lib-pill { left:3px; top:0; height:44px; border-radius:999px; background:rgba(var(--op-accent-rgb), .11); box-shadow:none; }
:root { --st-wait-ink:#8A5300; --st-wait-bg:#FFF1D6; --st-wait-dot:#E09A1A; --st-pub-ink:#1B7F4B; --st-pub-dot:#22A861; }
html.op-dark { --st-wait-ink:#F5C26B; --st-wait-bg:rgba(245,194,107,.16); --st-wait-dot:#F0B040; --st-pub-ink:#6BD6A0; --st-pub-dot:#3CCB86; }

/* find and order: one quiet field, one quiet word */
.lib-search { height:44px; width:240px; border-radius:999px; padding:0 6px 0 14px; border:1px solid var(--line-strong); }
.lib-search:focus-within { width:300px; }
.lib-search { transition:border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), width .35s var(--ease-out); }
.lib-search button { width:32px; height:32px; }
/* the clear button looks 32 px and answers a finger across 44, the house's target (3 October 2026: on an iPad it was a 32 px target) */
.lib-search button { position:relative; } .lib-search button::after { content:''; position:absolute; inset:-6px; border-radius:999px; }
.lib-sort { height:44px; width:auto; justify-self:end; padding:0 12px; border:0; border-radius:999px; background:transparent; color:var(--t-300); font-weight:500; }
.lib-sort[aria-expanded="true"] { background:var(--hover-tint); color:var(--t-100); border:0; }
@media (min-width:1101px) { .lib-top { grid-template-columns:auto 1fr auto auto; grid-template-areas:"titles titles titles new" "seg . search sort"; row-gap:var(--sp-4); } }

/* what waits, and the way to it */
.lib-drafts { gap:var(--sp-3); padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); border-radius:var(--r-3); border:1px solid color-mix(in srgb, var(--st-wait-dot) 30%, var(--line)); background:color-mix(in srgb, var(--st-wait-dot) 7%, var(--s-1)); min-height:56px; }
.lib-drafts > i { color:var(--st-wait-dot); }
.lib-drafts > span { flex:1 1 auto; min-width:0; text-wrap:pretty; }
.lib-drafts-go { flex:none; height:40px; padding:0 var(--sp-4); border:0; border-radius:var(--r-2); background:var(--s-1); color:var(--t-100); font:inherit; font-size:var(--fs-small); font-weight:600; cursor:pointer; box-shadow:0 0 0 1px var(--line-strong); transition:background-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.lib-drafts-go:hover { background:var(--s-3); } .lib-drafts-go:active { scale:.96; }

/* the months: a word and a hairline */
.lib-month { gap:var(--sp-3); font-size:var(--fs-small); font-weight:600; color:var(--t-400); }
.lib-month small { font-size:var(--fs-caption); font-weight:600; font-variant-numeric:tabular-nums; padding:1px 7px; border-radius:999px; background:var(--s-3); color:var(--t-400); }
.lib-month::after { content:''; flex:1; height:1px; background:var(--line); }

/* the cards: a little wider, a shorter cover (the face, not the whole frame), a quiet menu, the state in words */
.lib-grid { grid-template-columns:repeat(auto-fill, minmax(204px, 1fr)); gap:var(--sp-8) var(--sp-4); }
.card { gap:var(--sp-2); }
.card .ca { aspect-ratio:3 / 4; border-radius:var(--r-3); }
.card .ca img, .card .ca video { object-position:50% 18%; }
.card strong { padding:var(--sp-1) 2px 0; font-size:15px; font-weight:600; line-height:1.3; min-height:calc(2em * 1.3); }
.card small { display:block; padding:0 2px; font-size:13px; line-height:1.4; color:var(--t-500); }
.card small[data-st]::before { padding-left:14px; background:radial-gradient(circle at 3.5px 50%, var(--st-dot, color-mix(in srgb, var(--t-500) 60%, transparent)) 3.5px, transparent 4px) no-repeat; }
.card small[data-st="ready"]::before { content:'Approved · not shared yet · '; }   /* audit 16: the word the done screen says; audit pass 2: and that it waits to be shared */
.card small[data-st="published"]::before { content:'Shared · '; --st-dot:var(--st-pub-dot); color:var(--st-pub-ink); font-weight:500; }
.card small[data-st="withdrawn"]::before { content:''; }
.card small[data-st="approval"] { color:var(--st-wait-ink); font-weight:500; }
.card small[data-st="approval"]::before { content:''; --st-dot:var(--st-wait-dot); }
.card small .lib-x { display:none; }   /* "shared" is said by Published now; the word stays in the markup for what reads it */
.card .shared { display:none; }   /* the line under the title says it now */
.card .draft-tag { left:10px; top:10px; padding:4px 10px 4px 8px; border-radius:999px; background:var(--st-wait-bg); color:var(--st-wait-ink); font-size:12px; font-weight:600; -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:0 1px 2px rgb(0 0 0 / .12); }
:root .card .draft-tag { --st-wait-bg:#FFF1D6; --st-wait-ink:#8A5300; }   /* on a picture the tag keeps its light look in both themes */
.card .draft-tag i, .card .draft-tag i.ph { color:#C27A00; font-size:13px; }
@container (max-width:220px) { .card .draft-tag { max-width:none; overflow:visible; padding:4px 10px 4px 8px; gap:5px; } }
.card .wa-tag { left:auto; right:10px; bottom:10px; top:auto; width:24px; height:24px; padding:0; justify-content:center; border-radius:50%; font-size:0; gap:0; background:rgba(12,8,24,.55); }
.card .wa-tag i { font-size:15px; }
.card .draft-tag + .wa-tag { top:auto; }
.card .lang { right:10px; bottom:10px; } .card .wa-tag ~ .lang, .card .lang ~ .wa-tag { right:40px; }
.card .dur { left:10px; bottom:10px; }
.card .kb { right:2px; top:2px; width:44px; height:44px; border:0; border-radius:50%; background:transparent; opacity:1; color:#1B1926; transition:scale var(--dur-fast) var(--ease-out); }
.card .kb::before { content:''; position:absolute; inset:8px; z-index:-1; border-radius:50%; background:rgb(255 255 255 / .82); box-shadow:0 1px 3px rgb(0 0 0 / .2); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); transition:background-color var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.card .kb i { font-size:15px; color:#1B1926; }
.card.menu-open .kb { background:transparent; }
@media (hover:hover) and (pointer:fine) { .card .kb:hover { background:transparent; } }
.card.menu-open .kb::before { background:#fff; scale:1.1; }
@media (hover:hover) and (pointer:fine) { .card .kb:hover::before { background:#fff; scale:1.1; } }
.card .kb i { transition:color var(--dur-fast) var(--ease-out); }
.card.menu-open .kb i { color:var(--accent-on-light, #6D3AE8); }
@media (hover:hover) and (pointer:fine) { .card .kb:hover i { color:var(--accent-on-light, #6D3AE8); } }

@media (max-width:1100px) { .lib-search, .lib-search:focus-within { width:100%; } .lib-sort { justify-self:start; } }
@media (max-width:780px) {
  .lib-grid { grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:var(--sp-6) var(--sp-3); }
  .lib-scope button, .pseg.lib-scope button { height:40px; padding:0 14px; font-size:15px; }
  .lib-seg button { padding:0 12px; font-size:14px; }
  .lib-drafts { flex-wrap:wrap; padding:var(--sp-3); } .lib-drafts > span { flex:1 1 200px; } .lib-drafts-go { margin-left:calc(22px + var(--sp-3)); }
}

/* ═══ Round 354 (Sergio, 1 October 2026: the app showed the "who appears" screen while it loaded; "un loader estaría bueno aprovechando
   el shader de fondo que tenemos, pero haciéndolo más protagonista y más cool") ═══
   The veil over the load (assets/boot.js draws its dots and decides when it lifts). The mark is the capsule, its two halves closing;
   a ring leaves it every 1.6 s, in step with the rings in the dots. If the script never runs, the last rule lifts the veil by itself. */
.boot { position:fixed; inset:0; z-index:400; display:grid; place-items:center; background:var(--s-0); opacity:1; transition:opacity .5s var(--ease-out), visibility 0s linear .5s; animation:bootGone .4s linear 12s forwards; }
.boot.lift { opacity:0; visibility:hidden; pointer-events:none; }
.boot.lift.now { transition:none; }
.boot canvas { position:absolute; inset:0; width:100%; height:100%; }
.boot-mid { position:relative; display:grid; justify-items:center; gap:26px; transition:scale .5s var(--ease-out), filter .5s var(--ease-out); }
.boot.lift .boot-mid { scale:1.12; filter:blur(6px); }
.boot-pill { position:relative; display:block; width:96px; height:57px; rotate:-24deg; }
.boot-pill i { position:absolute; top:0; bottom:0; width:50%; animation:bootHalf .7s var(--ease-out) backwards; }
.boot-pill i:first-child { left:0; border-radius:999px 0 0 999px; background:#D9CCFA; --from:-38px; box-shadow:inset -1px 0 0 rgb(0 0 0 / .14); }
.boot-pill i:last-child { right:0; border-radius:0 999px 999px 0; background:var(--accent); --from:38px; }
html.op-dark .boot-pill i:first-child { background:#EDE6FF; }
.boot-pill::before { content:''; position:absolute; inset:-10px; z-index:-1; border-radius:999px; background:rgba(var(--op-accent-rgb), .35); filter:blur(22px); animation:bootGlow 1.6s ease-in-out .55s infinite alternate backwards; }
.boot-pill::after { content:''; position:absolute; left:50%; top:50%; width:120px; height:120px; margin:-60px 0 0 -60px; border-radius:50%; border:1.5px solid rgba(var(--op-accent-rgb), .55); opacity:0; animation:bootRing 1.6s var(--ease-out) .55s infinite; }
.boot-say { font-size:var(--fs-small); font-weight:500; color:var(--t-400); opacity:0; translate:0 6px; transition:opacity .5s var(--ease-out), translate .5s var(--ease-out); }
.boot.long .boot-say { opacity:1; translate:0 0; }
@keyframes bootHalf { from { translate:var(--from) 0; opacity:0; } to { translate:0 0; opacity:1; } }
@keyframes bootGlow { from { opacity:.5; scale:.9; } to { opacity:1; scale:1.15; } }
@keyframes bootRing { from { opacity:.7; scale:.5; } to { opacity:0; scale:2.6; } }
@keyframes bootGone { to { opacity:0; visibility:hidden; pointer-events:none; } }
@media (prefers-reduced-motion: reduce) { .boot-pill i, .boot-pill::before, .boot-pill::after { animation:none; } .boot-pill::after { display:none; } }
@media print { .boot { display:none; } }

/* ═══ Round 355 (Sergio, 1 October 2026: "el ending scene de Dose debe ser muuucho más cool, es aburridísimo; en cada vídeo") ═══
   The sign-off in the player is a canvas now (app.js drawSignoff, the same drawing the recorded file gets): the ground, the dots, the
   capsule closing, the ring, the word and who reviewed it. The old mark and words stay in the markup for what reads them, unseen. */
.outro { background:transparent; }
.outro::after { display:none; }
.outro .outro-cv { position:absolute; inset:0; width:100%; height:100%; }
.outro .outro-mark, .outro > b, .outro > small { display:none; }

/* ═══ Round 356: the audit of 2 October (docs/audit/2026-10-02-exhaustive.md) ═══ */
/* the loader when the app cannot start (F2): it stays, says so and offers a reload; with JavaScript off (F14) one plain line */
.boot.js { animation:none; }
.boot.stuck .boot-pill::after, .boot.stuck .boot-pill::before { animation:none; opacity:.4; }
.boot.stuck .boot-say { max-width:30ch; text-align:center; font-size:var(--fs-body); line-height:1.45; color:var(--t-200); }
.boot-retry { height:48px; padding:0 var(--sp-6); border:0; border-radius:var(--r-2); background:var(--accent); color:#fff; font:inherit; font-weight:600; cursor:pointer; }
html.op-dark .boot-retry { color:#0F0E14; }
.boot-retry[hidden] { display:none; }
.noscript { position:fixed; inset:0; z-index:500; display:grid; place-items:center; margin:0; padding:var(--sp-6); background:var(--s-0); color:var(--t-100); font-size:var(--fs-body); text-align:center; }

/* audit D11: the text-size setting reaches the sheets and the dialogs too (they sit outside the zoomed stage) */
.lm-scrim > .osheet, .lm-scrim > .lm, .lm-scrim > .how, .cn-scrim > .cn { zoom:var(--zoom); }
.lm-scrim > .osheet { max-height:calc((100dvh - 40px) / var(--zoom)); }

/* audit D10: the two links under the box ("Create your avatar", "Clone your voice") sat in a foot that was hidden unless it held the
   "appearing" row, which round 349 moved to the head of the box: they never showed, and on a phone the strip's own buttons are hidden too */
.share-foot:has(.yk) { display:flex; }
/* audit B12, A16, F19: 44 px on touch */
@media (pointer:coarse), (max-width:780px) {
  .lib-scope button, .pseg.lib-scope button, .lib-drafts-go { height:44px; }
  .sharebox > .asrow .mini { min-height:44px; height:44px; } .sharebox > .asrow .as-choose { min-height:44px; }
  .tb-btn { min-height:44px; }
}
/* audit C8: on a phone at the larger text sizes Light, Dark and Auto ran off the panel: the control takes its own row */
@media (max-width:480px) { html[data-text="lg"] .you .pref, html[data-text="xl"] .you .pref { flex-wrap:wrap; } html[data-text="lg"] .you .pref .seg3, html[data-text="xl"] .you .pref .seg3 { flex:1 1 100%; } html[data-text="lg"] .you .pref .seg3 button, html[data-text="xl"] .you .pref .seg3 button { flex:1 1 0; justify-content:center; padding:0 6px; } }
/* audit F10: "Request a change" on a short window: the panel scrolls inside the window and follows the text size */
.plan > .edit-panel { zoom:var(--zoom); max-height:calc((100dvh - 40px) / var(--zoom)); overflow-y:auto; overscroll-behavior:contain; }
/* audit F17: calm mode stops the two loops the reading screen kept */
html.calm .plan-run > li.pr-running .ring { animation:none; stroke-dasharray:none; }
html.calm #createDots.wash { animation:none; }
/* audit F13: a heading for the screens that had none, for assistive use only */
.sr-only { position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* ── Round 357: the sources consulted for a script's draft. A quiet block under the words (the offer's sheet, the video's details): each
   page is a link with its publisher in ink and its title after it; the doctor's own material is a plain row; one calm line under them.
   No seal and no warning colour: the block states facts, it does not vouch for the words ── */
.srcs { margin-top:var(--sp-4); padding:var(--sp-3) var(--sp-4); border-radius:var(--r-3); background:color-mix(in srgb, var(--accent) 5%, var(--s-1)); border:1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); text-align:left; }
.srcs-k { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--t-300); }
.srcs-k i { font-size:16px; color:var(--accent); }
.srcs ul { list-style:none; margin:var(--sp-2) 0 0; padding:0; display:grid; gap:2px; }
.srcs li a, .srcs-own { display:grid; grid-template-columns:1fr auto; align-items:center; column-gap:10px; min-height:44px; padding:6px 8px; margin:0 -8px; border-radius:var(--r-2); color:var(--t-100); text-decoration:none; }
.srcs li b { grid-column:1; font-size:15px; font-weight:600; line-height:1.3; }
.srcs li a > span, .srcs-own > span { grid-column:1; font-size:14px; line-height:1.35; color:var(--t-400); overflow-wrap:anywhere; }
.srcs li a > i { grid-column:2; grid-row:1 / span 2; font-size:16px; color:var(--t-500); transition:color var(--hover-dur, 150ms) var(--ease-out), translate var(--hover-dur, 150ms) var(--ease-out); }
.srcs li a { transition:background-color var(--hover-dur, 150ms) var(--ease-out); }
@media (hover:hover) { .srcs li a:hover { background:var(--hover-tint); } .srcs li a:hover > i { color:var(--accent); translate:1px -1px; } }
.srcs li a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.rc .srcs { margin:var(--sp-3) 0 0; }
.om-tile .tile-seal { margin-left:6px; font-size:14px; color:var(--accent); vertical-align:-1px; }
.srcs-note { margin:var(--sp-2) 0 0; font-size:13px; line-height:1.45; color:var(--t-500); }
.srcs li[data-src="model"] .srcs-own { min-height:0; padding:2px 8px; }

/* ── Round 358: the offer's sheets, in glass (Sergio, 2 October, on "The words": "más alineado al resto de la app, más glassmorphism, más
   cool, más wow, más interactivo, mejores animaciones"). The shell is the top bar capsule's glass, larger: the page behind is blurred by
   the scrim and shows through a translucent sheet with a lit edge; a faint wash of the accent sits behind the head. The third exception to
   round 298's no-blur rule, by request. "The words" itself: the script's beats over the lines, each as wide as its line is long; the
   lines as soft rows with a light that follows the pointer; every line's seconds; the whole script's seconds as a ring in the head.
   Motion is the house's: one curve, 8 px rises, nothing loops but the shimmer while the words are being written. ── */
#osheet.lm-scrim { background:rgba(27,25,38,.26); -webkit-backdrop-filter:blur(18px) saturate(1.35) !important; backdrop-filter:blur(18px) saturate(1.35) !important; }
html.op-dark #osheet.lm-scrim { background:rgba(4,3,10,.5); }
#osheet > .osheet { position:relative; isolation:isolate; border:0; border-radius:28px; background:color-mix(in srgb, var(--s-1) 78%, transparent);
  box-shadow:inset 1px 1px 0 rgba(255,255,255,.85), inset -1px -1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(var(--op-line),.07), 0 60px 120px -48px rgba(27,25,38,.6), 0 20px 44px -26px rgba(27,25,38,.32); }
html.op-dark #osheet > .osheet { background:color-mix(in srgb, var(--s-1) 74%, transparent); box-shadow:inset 1px 1px 0 rgba(255,255,255,.16), inset -1px -1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(255,255,255,.06), 0 60px 120px -48px rgba(0,0,0,.85); }
#osheet > .osheet:focus, #osheet > .osheet:focus-visible { box-shadow:inset 1px 1px 0 rgba(255,255,255,.85), inset -1px -1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(var(--op-line),.07), 0 60px 120px -48px rgba(27,25,38,.6), 0 20px 44px -26px rgba(27,25,38,.32); }
html.op-dark #osheet > .osheet:focus, html.op-dark #osheet > .osheet:focus-visible { box-shadow:inset 1px 1px 0 rgba(255,255,255,.16), inset -1px -1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(255,255,255,.06), 0 60px 120px -48px rgba(0,0,0,.85); }
#osheet > .osheet::before { content:''; position:absolute; inset:0 0 auto 0; height:240px; z-index:-1; pointer-events:none; border-radius:28px 28px 0 0;
  background:radial-gradient(70% 100% at 12% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%), radial-gradient(48% 80% at 92% 0%, rgba(242,106,46,.09), transparent 70%); }
#osheet .osheet-head { align-items:center; gap:var(--sp-3); padding:var(--sp-6) var(--sp-6) var(--sp-4); }
#osheet .osheet-head > div:first-child { flex:1 1 auto; min-width:0; }
#osheet .osheet-head h2 { font-size:24px; letter-spacing:-.02em; text-wrap:balance; }
#osheet .osheet-head .x { flex:none; width:44px; height:44px; border-radius:50%; background:rgba(var(--op-line),.06); transition:background-color var(--hover-dur, 150ms) var(--ease-out), scale 120ms var(--ease-out); }
#osheet .osheet-head .x:active { scale:.96; }
@media (hover:hover) { #osheet .osheet-head .x:hover { background:rgba(var(--op-line),.12); } }
#osheet .osheet-foot { border-top:1px solid rgba(var(--op-line),.07); background:color-mix(in srgb, var(--s-1) 46%, transparent); border-radius:0 0 28px 28px; }
#osheet .osheet-foot .ghost { background:color-mix(in srgb, var(--s-1) 70%, transparent); }

/* the seconds of the whole script: a ring that fills toward forty */
.os-meter { position:relative; flex:none; width:52px; height:52px; display:grid; place-items:center; align-content:center; line-height:1; }
.os-meter svg { position:absolute; inset:0; width:100%; height:100%; rotate:-90deg; }
.os-ring-bg { fill:none; stroke:rgba(var(--op-line),.1); stroke-width:3; }
.os-ring { fill:none; stroke:var(--accent); stroke-width:3; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:100; }
.os-meter b { font-size:16px; font-weight:700; letter-spacing:-.02em; color:var(--t-100); font-variant-numeric:tabular-nums; }
.os-meter small { margin-top:1px; font-size:10px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--t-500); }

/* the beats: five bars, each as wide as its line is long */
.oms-beats { display:flex; gap:5px; height:6px; margin:0 0 var(--sp-4); }
.oms-beats i { flex:1 1 0; min-width:10px; border-radius:99px; background:color-mix(in srgb, var(--accent) 22%, rgba(var(--op-line),.08)); transition:background-color 220ms var(--ease-out), flex-grow 260ms var(--ease-out); }
.oms-beats i.on, .oms-beats i.lit { background:var(--accent); }
@media (hover:hover) { .oms-beats { height:16px; padding:5px 0; margin-bottom:calc(var(--sp-4) - 10px); cursor:default; } }

/* the lines */
#osheet .oms { gap:7px; padding:0 0 2px; overflow:visible; }
#osheet .oms li, #osheet .oms li:first-child { position:relative; overflow:hidden; display:flex; align-items:flex-start; gap:14px; padding:14px 12px 6px 14px; border:0; border-radius:20px;
  background:color-mix(in srgb, var(--s-1) 62%, transparent); box-shadow:inset 0 0 0 1px rgba(var(--op-line),.07);
  transition:background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
html.op-dark #osheet .oms li { background:color-mix(in srgb, var(--s-3) 55%, transparent); box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); }
#osheet .oms li::before { content:''; position:absolute; inset:0; pointer-events:none; opacity:0; transition:opacity 220ms var(--ease-out);
  background:radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%); }
@media (hover:hover) {
  #osheet .oms li:hover, #osheet .oms li.lit { background:color-mix(in srgb, var(--s-1) 88%, transparent); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 14px 30px -22px rgba(27,25,38,.45); }
  html.op-dark #osheet .oms li:hover, html.op-dark #osheet .oms li.lit { background:color-mix(in srgb, var(--s-3) 80%, transparent); }
  #osheet .oms li:hover::before { opacity:1; }
}
#osheet .oms li[data-editing] { background:color-mix(in srgb, var(--s-1) 92%, transparent); box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent), 0 18px 40px -26px color-mix(in srgb, var(--accent) 60%, transparent); }
html.op-dark #osheet .oms li[data-editing] { background:color-mix(in srgb, var(--s-3) 85%, transparent); }
#osheet .oms li > * { position:relative; }
#osheet .oms-num { flex:none; min-width:0; width:28px; height:28px; margin-top:1px; display:grid; place-items:center; border-radius:50%; font-size:13px; font-weight:700; letter-spacing:0; color:var(--accent); background:color-mix(in srgb, var(--accent) 11%, transparent); font-variant-numeric:tabular-nums; }
#osheet .oms-body { gap:4px; }
#osheet .oms .oms-l { font-size:17.5px; line-height:1.48; color:var(--t-100); text-wrap:pretty; cursor:text; }
.oms-meta { display:flex; align-items:center; gap:10px; min-height:44px; }
@media (hover:hover) and (pointer:fine) { .oms-meta { min-height:38px; } #osheet .oms .oms-edit { min-height:34px; padding:0 12px; } }
.oms-secs { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:600; color:var(--t-400); font-variant-numeric:tabular-nums; }
.oms-secs i { font-size:15px; color:var(--t-500); }
#osheet .oms-tag { align-self:center; padding:3px 9px; font-size:12.5px; font-weight:600; color:var(--t-400); background:rgba(var(--op-line),.06); }
#osheet .oms-tag i { font-size:13px; }
#osheet .oms .oms-edit { align-self:center; margin-left:auto; min-height:44px; padding:0 14px; border-radius:99px; border:0; font-size:14px; font-weight:600; color:var(--t-200); background:transparent;
  transition:background-color 150ms var(--ease-out), color 150ms var(--ease-out), scale 120ms var(--ease-out); }
#osheet .oms .oms-edit:active { scale:.96; }
@media (hover:hover) { #osheet .oms li:hover .oms-edit, #osheet .oms .oms-edit:focus-visible { color:var(--accent); background:color-mix(in srgb, var(--accent) 10%, transparent); } #osheet .oms .oms-edit:hover { background:color-mix(in srgb, var(--accent) 16%, transparent); } }
@media (hover:none) { #osheet .oms .oms-edit { color:var(--accent); background:color-mix(in srgb, var(--accent) 9%, transparent); } }

/* the editor inside a row */
#osheet .oms-fix { flex:1 1 auto; min-width:0; }
#osheet .oms-lab { margin-top:2px; }
#osheet .oms-in { margin-top:6px; padding:12px 14px; border-radius:14px; font-size:17px; line-height:1.5; resize:none; background:color-mix(in srgb, var(--s-1) 80%, transparent); border:1px solid rgba(var(--op-line),.12); }
html.op-dark #osheet .oms-in { background:color-mix(in srgb, var(--s-0) 70%, transparent); }
#osheet .oms-in:focus { background:var(--s-1); }
.oms-count { display:block; margin:6px 2px 10px; font-size:13px; font-weight:600; color:var(--t-400); font-variant-numeric:tabular-nums; }
#osheet .oms-fixdo { margin-top:12px; }

/* while the words are being written again: a light runs through them */
#osheet .oms.is-writing .oms-l { color:transparent; background:linear-gradient(100deg, var(--t-300) 35%, var(--accent) 50%, var(--t-300) 65%) 0 0 / 220% 100%; -webkit-background-clip:text; background-clip:text; animation:omsShimmer 1.5s linear infinite; }
#osheet .oms.is-writing li { pointer-events:none; }
@keyframes omsShimmer { from { background-position:110% 0; } to { background-position:-110% 0; } }
@media (prefers-reduced-motion:reduce) { #osheet .oms.is-writing .oms-l { animation:none; color:var(--t-400); background:none; } }
html.calm #osheet .oms.is-writing .oms-l { animation:none; color:var(--t-400); background:none; }

/* what sits under the lines */
#osheet .srcs { margin-top:var(--sp-3); border-radius:20px; background:color-mix(in srgb, var(--accent) 5%, color-mix(in srgb, var(--s-1) 60%, transparent)); border:0; box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, rgba(var(--op-line),.06)); }
#osheet .oms-ask { margin-top:var(--sp-3); padding:var(--sp-4); border-radius:20px; background:color-mix(in srgb, var(--s-1) 62%, transparent); box-shadow:inset 0 0 0 1px rgba(var(--op-line),.07); }
#osheet .oms-ask[hidden] { display:none; }

/* the other three sheets of the offer wear the same glass; their rows sit a little lighter on it */
#osheet .opt { background:color-mix(in srgb, var(--s-1) 62%, transparent); }

@media (max-width:560px) {
  #osheet.lm-scrim { padding:10px; }
  #osheet > .osheet, #osheet > .osheet::before { border-radius:26px; }
  #osheet > .osheet::before { border-radius:26px 26px 0 0; }
  #osheet .osheet-head { padding:var(--sp-5, 20px) var(--sp-4) var(--sp-3); }
  #osheet .osheet-head h2 { font-size:22px; }
  #osheet .osheet-body { padding-left:var(--sp-3); padding-right:var(--sp-3); }
  #osheet .oms li, #osheet .oms li:first-child { padding:13px 10px 4px 12px; gap:12px; border-radius:18px; }
  #osheet .oms .oms-l { font-size:17px; }
  #osheet .osheet-foot { border-radius:0 0 26px 26px; }
  .os-meter { width:48px; height:48px; }
}

/* ═══ Round 364 (Sergio, 5 October 2026: "esto debe ser más intuitivo... una notificación temporal lo hace muy torpe, debe ser proactivo") ═══
   Two places. On Create, when nothing was written, the reason stays under the box with its next step (app.js shareHelp): one quiet
   block, the subjects the sources cover as chips, one tap each; the day's ideas wait while it is there, so the screen holds one thing to
   do. On the plan, the narrower videos of a broad request sit under the title as the same hairline chips. */
.share-help { width:min(100%, 760px); margin:var(--sp-4) auto 0; display:flex; align-items:flex-start; gap:var(--sp-3); padding:var(--sp-4); border-radius:var(--r-3); border:1px solid var(--line); background:var(--s-1); text-align:left; }
.share-help[hidden] { display:none; }
.share-help .sh-ic { flex:none; font-size:20px; line-height:24px; color:var(--accent); }
.share-help .sh-ic.ph-warning { color:var(--sem-amber); }
.sh-t { min-width:0; flex:1; display:flex; flex-direction:column; gap:var(--sp-2); }
.sh-t > b { font-size:var(--fs-body); font-weight:600; line-height:24px; color:var(--t-100); text-wrap:balance; }
.sh-t > p { margin:0; font-size:var(--fs-small); line-height:1.5; color:var(--t-400); text-wrap:pretty; }
.sh-chips, .sh-acts { display:flex; flex-wrap:wrap; align-items:center; gap:var(--sp-2); }
.sh-chips { margin-top:2px; }
.sh-k { margin-right:2px; font-size:13px; color:var(--t-500); }
.sh-chips .idea-chip { color:var(--t-100); border-color:color-mix(in srgb, var(--accent) 35%, var(--line)); }
.sh-chips .idea-chip i { color:var(--accent); }
.sh-chips .idea-chip[data-topic] { animation:ideaIn .4s var(--ease-out) both; animation-delay:calc(var(--i, 0) * 60ms); }
.sh-acts .mini:not(#_) { background:transparent; border:1px solid var(--line); box-shadow:none; }
.sh-acts .mini:not(#_):hover { background:var(--s-2); }
.share-help:not([hidden]) ~ :is(.ideas, .share-foot) { display:none; }
/* The note on the plan (app.js paintOffer, focusNote, keepFocus): one object, three parts. What happened in a sentence, the other videos
   as chips, and "Keep this one", which folds it away. A soft tint and a hairline ring, no card of its own: it sits under the title, its
   text on the title's left edge. Nothing in it has to be answered. */
.om-note { position:relative; display:grid; grid-template-columns:18px minmax(0, 1fr) auto; align-items:center; column-gap:var(--sp-2); row-gap:6px; margin:var(--sp-3) -12px 0; padding:8px 6px 12px 12px; border-radius:var(--r-3);
  background:rgba(var(--op-accent-rgb), .045); box-shadow:inset 0 0 0 1px rgba(var(--op-accent-rgb), .09); }
html.op-dark .om-note { background:rgba(var(--op-accent-rgb), .09); box-shadow:inset 0 0 0 1px rgba(var(--op-accent-rgb), .16); }
.om-note-ic { grid-column:1; grid-row:1; font-size:16px; color:var(--accent); }
.om-note-t { grid-column:2; grid-row:1; margin:0; font-size:var(--fs-small); line-height:1.4; color:var(--t-300); text-wrap:pretty; }
.om-note-short, .om-note-more { display:none; }
.om-note-keep { grid-column:3; grid-row:1; position:relative; display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px 0 12px; border:0; border-radius:99px; background:transparent; color:var(--t-400); font:inherit; font-size:13px; font-weight:600; white-space:nowrap; cursor:pointer;
  transition:background-color var(--hover-dur) var(--ease-out), color var(--hover-dur) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.om-note-keep::after { content:''; position:absolute; inset:-4px 0; }   /* the target is 40 px tall, the pill 32 */
.om-note-keep i { font-size:14px; color:currentColor; }
.om-note-keep:active { scale:.96; }
.om-note-keep:focus-visible, .om-note-more:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media (hover:hover) { .om-note-keep:hover { background:var(--hover-tint); color:var(--t-100); } }
.om-angles { grid-column:2 / -1; grid-row:2; display:flex; flex-wrap:wrap; align-items:center; gap:6px var(--sp-2); min-width:0; }
.om-angles-k { margin-right:2px; font-size:13px; color:var(--t-500); }
.om-angles .idea-chip { min-height:32px; padding:4px 12px; color:var(--t-200); background:var(--s-1); transition:background-color var(--hover-dur) var(--ease-out), color var(--hover-dur) var(--ease-out), border-color var(--hover-dur) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.om-angles .idea-chip:active { scale:.96; }
/* A phone: the plan's card has no room to grow (it does not scroll), so the note is one short line beside the frame, under the title, and
   "Options" opens its choices in a sheet, like the plan's other rows. The whole line is the target. */
@media (max-width:640px) {
  .om-note { grid-template-columns:14px minmax(0, 1fr); align-items:start; column-gap:6px; margin:6px 0 0; padding:0; border-radius:0; background:none; box-shadow:none; }
  html.op-dark .om-note { background:none; box-shadow:none; }
  .om-note-ic { font-size:14px; line-height:18px; }
  .om-note-t { font-size:13px; line-height:18px; color:var(--t-400); }
  .om-note-long, .om-angles, .om-note-keep { display:none; }
  .om-note-short { display:inline; }
  .om-note-more { display:inline-flex; align-items:center; gap:2px; padding:0; border:0; background:none; font:inherit; font-weight:600; color:var(--accent); cursor:pointer; }
  .om-note-more i { font-size:12px; }
  .om-note-more::after { content:''; position:absolute; inset:-8px -6px; }
  .sh-chips .idea-chip { min-height:40px; }
}
/* the sheet behind the phone's line: the other videos as rows that go somewhere, not choices that stay ticked */
.opt-k { margin:0 0 2px; padding:0 4px; font-size:13px; color:var(--t-500); }
.opt.opt-go > i:last-child { font-size:18px; color:var(--t-500); transition:translate 220ms var(--ease-out), color var(--hover-dur) var(--ease-out); }
.opt.opt-go:active { scale:.98; }
@media (hover:hover) { .opt.opt-go:hover { border-color:var(--hover-line); } .opt.opt-go:hover > i:last-child { translate:3px 0; color:var(--accent); } }
@media (prefers-reduced-motion: reduce) { .sh-chips .idea-chip[data-topic] { animation:none; } }
html.calm .sh-chips .idea-chip[data-topic] { animation:none; }

/* ── round 366: the doctor's own words ─────────────────────────────────────────────────────────────────────────────────────────────── */
/* the button in the box's bar: as quiet as its neighbours, in the accent's tint once pressed */
/* round 370 (Sergio, 6 October: "un botón más identificable, con un tooltip"): the only switch in the bar looks like one, a track with its knob */
.sharebar .own-toggle { gap:8px; padding-right:10px; border-color:var(--line); }
.own-sw { position:relative; display:inline-block; width:30px; height:18px; border-radius:99px; background:color-mix(in srgb, var(--t-500) 28%, transparent); transition:background-color .2s; flex:none; }
.own-sw::after { content:''; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:99px; background:var(--s-0); box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .2s var(--ease-out); }
.sharebar #ownToggle[aria-pressed="true"] .own-sw { background:var(--accent); }
.sharebar #ownToggle[aria-pressed="true"] .own-sw::after { transform:translateX(12px); }
.sharebar #ownToggle[aria-pressed="true"] { border-color:color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (prefers-reduced-motion: reduce) { .own-sw, .own-sw::after { transition:none; } }
/* one tooltip for the switch and the chips: on hover and on keyboard focus; on a touch screen the hint line under the box and the sheet's rows say the same */
[data-tip] { position:relative; }
[data-tip]::after { content:attr(data-tip); position:absolute; left:50%; bottom:calc(100% + 9px); transform:translate(-50%, 4px); width:max-content; max-width:min(280px, 80vw); padding:8px 11px; border-radius:10px; background:var(--t-100); color:var(--s-0); font-size:12.5px; font-weight:500; line-height:1.4; letter-spacing:0; text-transform:none; text-align:left; white-space:normal; opacity:0; pointer-events:none; z-index:40; box-shadow:0 10px 26px -14px rgba(0,0,0,.45); transition:opacity .15s, transform .15s var(--ease-out); }
[data-tip][data-tip-side="bottom"]::after { bottom:auto; top:calc(100% + 9px); transform:translate(-50%, -4px); }
[data-tip]:focus-visible::after { opacity:1; transform:translate(-50%, 0); } @media (hover:hover) and (pointer:fine) { [data-tip]:hover::after { opacity:1; transform:translate(-50%, 0); } }
@media (hover:none) { [data-tip]::after { display:none; } }
@media (prefers-reduced-motion: reduce) { [data-tip]::after { transition:none; } }
/* the way in front (Let Dose write it) and the way back */
.idea-chip.prime { border-color:color-mix(in srgb, var(--accent) 50%, var(--line)); background:color-mix(in srgb, var(--accent) 9%, var(--s-1)); color:var(--t-100); }
.idea-chip.prime i { color:var(--accent); }
.idea-chip.back i { color:var(--t-400); }
.sharebar #ownToggle[aria-pressed="true"], .sharebar #ownToggle[aria-pressed="true"] i { color:var(--accent); }
.sharebar #ownToggle[aria-pressed="true"] { background:color-mix(in srgb, var(--accent) 10%, transparent); }
@media (hover:hover) { .sharebar #ownToggle[aria-pressed="true"]:hover { color:var(--accent); background:color-mix(in srgb, var(--accent) 15%, transparent); } }
/* what happens to the words, said under them inside the box */
.own-hint { margin:var(--sp-2) var(--sp-2) 0; font-size:14px; line-height:1.45; color:var(--t-400); text-wrap:pretty; }
.own-hint[hidden] { display:none; }
/* the three ways live on the plan's note (round 367), as chips like the angles'; the busy note turns its icon */
.om-note-own .om-angles-k { margin-right:4px; }
.om-note-own .om-note-ic.spin { animation:spin 1s linear infinite; }
.om-note-own[aria-busy="true"] .om-note-t { color:var(--t-400); }
/* a line added at the end */
.oms-add { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; margin-top:7px; border-radius:20px; border:1.5px dashed rgba(var(--op-line),.18); background:transparent; font-size:15px; font-weight:600; color:var(--t-400);
  transition:color 150ms var(--ease-out), border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), scale 120ms var(--ease-out); }
@media (hover:hover) { .oms-add:hover { color:var(--accent); border-color:color-mix(in srgb, var(--accent) 45%, transparent); background:color-mix(in srgb, var(--accent) 5%, transparent); } }
.oms-add:active { scale:.98; }
.oms-add[hidden] { display:none; }
#osheet .oms-fixdo .oms-rm { margin-left:auto; }
@media (max-width:560px) { .oms-seg button { padding:0 8px; font-size:13.5px; } }
/* ── round 369: the globe of letters (assets/sphere.js) on the making screen, the avatar's drawing and the reading. The picture is cut
   away as the line passes down it and the letters take its place; the old ring, shimmer and blur are gone from these screens. The orb
   grows a little on the making screen: the globe is that screen's one object ── */
[data-step="making"] .orb { width:min(400px, 44vh); height:min(400px, 44vh); }
[data-step="building"] .orb { width:min(340px, 36vh); height:min(340px, 36vh); }
[data-step="reading"] .orb { width:min(230px, 25vh); height:min(230px, 25vh); margin:14px auto 0; }
[data-step="reading"] .orb-pct { display:none; }
[data-step="reading"] .plan-run { margin-top:18px; }
:is([data-step="making"], [data-step="building"], [data-step="reading"]) .orb .ring, :is([data-step="making"], [data-step="building"]) .work-shimmer { display:none; }
:is([data-step="making"], [data-step="building"], [data-step="reading"]) .orb canvas { position:absolute; left:50%; top:50%; translate:-50% -50%; pointer-events:none; z-index:1; }
:is([data-step="making"], [data-step="building"], [data-step="reading"]) .orb-img { width:90%; height:90%; box-shadow:none; background:transparent; z-index:0; }
:is([data-step="making"], [data-step="building"], [data-step="reading"]) .orb-img img { filter:none !important; transform:none !important; }
:is([data-step="making"], [data-step="building"], [data-step="reading"]) .orb-img.no-photo { clip-path:inset(100% 0 0 0 round 50%) !important; }
:is([data-step="making"], [data-step="building"], [data-step="reading"]) .orb.uncovered .orb-img { transition:clip-path .55s var(--ease-out); clip-path:inset(0 0 0 0 round 50%) !important; }   /* 'uncovered', not 'landed': round 370's card took that word (6 Oct, a white 56 px grid over the orb) */
:is([data-step="making"], [data-step="building"]) .orb-pct { z-index:2; }
html[data-text="xl"] [data-step="making"] .orb { width:min(280px, 32vh); height:min(280px, 32vh); }
html[data-text="xl"] [data-step="building"] .orb { width:min(240px, 28vh); height:min(240px, 28vh); }
@media (max-height:700px) { [data-step="making"] .orb { width:min(290px, 34vh); height:min(290px, 34vh); } [data-step="building"] .orb { width:min(250px, 30vh); height:min(250px, 30vh); } [data-step="reading"] .orb { width:min(160px, 19vh); height:min(160px, 19vh); } }
/* the photo step: the picture that lands fills the frame while it is looked at */
.drop { position:relative; }
.drop-shot { position:absolute; inset:0; border-radius:inherit; overflow:hidden; z-index:2; background:var(--s-1); }
.drop.looking :is(.drop-guide, .drop-ico, .drop-t, .drop-d) { opacity:0; transition:opacity .2s; }
.drop-shot[hidden] { display:none; }
.drop-shot canvas { position:absolute; left:50%; top:50%; translate:-50% -50%; pointer-events:none; z-index:1; }
.ds-img { position:absolute; inset:0; z-index:0; }
.ds-img img { width:100%; height:100%; object-fit:cover; object-position:50% 30%; }

/* ── 23 October 2026, the specification's rule A3 (speak instead of type): a microphone on every field. Inside the field at its right,
   small on a one-line field; on a longer field at the bottom right, in a strip of its own under the words, so the lines keep their width
   (the Create box keeps Say it under its words the same way); the browser's words land in the field as they are heard. While it listens the
   button is the brand's Done pill with a halo that swells with the voice (the Create box's), a Cancel beside it, and the field breathes
   as the box does. A refused microphone dims the button and its tooltip says why, once by itself, then on hover. The wrapper is a div
   (a span would take .cn-field span's margins and size); the one !important: the fields' own paddings come from heavier selectors ── */
.dict-wrap:not(.dict-hosted) { position:relative; display:block; min-width:0; flex:1 1 140px; }   /* a field that was a flex item (the staff name, the change request) keeps its share; a host (the library's search box) keeps its own display */
.dict-wrap:not(.dict-hosted) > .dict-in { width:100%; }
.dict-wrap:not(.dict-hosted):not(.dict-ta) > .dict-in { padding-right:46px !important; }
.dict-wrap:not(.dict-hosted):not(.dict-ta)[data-on="1"] > .dict-in { padding-right:120px !important; }
.dict-wrap.dict-ta > .dict-in { display:block; padding-bottom:46px !important; }   /* block: an inline textarea leaves a baseline gap under itself, and the control would sit in it */
.dict-ui { position:absolute; right:6px; top:0; bottom:0; display:flex; align-items:center; gap:2px; z-index:1; }
.dict-wrap.dict-ta .dict-ui { top:auto; bottom:7px; }
.dict-ui.dict-host { position:static; flex:none; }
.dict-ui .dict-mic, .dict-ui .dict-cancel { position:relative; flex:none; width:auto; height:32px; min-width:32px; margin:0; padding:0; border:0; border-radius:10px; background:transparent; color:var(--t-400); display:inline-flex; align-items:center; justify-content:center; gap:5px; font:inherit; font-size:14px; font-weight:600; line-height:1; cursor:pointer; animation:none; transition:color var(--hover-dur, 180ms) var(--ease-out), background-color var(--hover-dur, 180ms) var(--ease-out); }
.dict-ui .dict-mic .ph, .dict-ui .dict-cancel .ph { position:relative; z-index:1; font-size:18px; color:inherit; }
.dict-ui .dict-mic:hover, .dict-ui .dict-cancel:hover { color:var(--t-100); background:var(--hover-tint, var(--s-3)); }
.lib-search .dict-ui .dict-mic, .lib-search .dict-ui .dict-cancel { border-radius:99px; }   /* the round search box */
.dict-word { display:none; position:relative; z-index:1; font-weight:600; }
.dict-halo { position:absolute; inset:-3px; border-radius:13px; background:color-mix(in srgb, var(--accent) 26%, transparent); opacity:0; transform:scale(.9); transition:transform .09s linear, opacity .12s linear; pointer-events:none; }
.dict-wrap[data-on="1"] .dict-ui .dict-mic { padding:0 11px 0 9px; color:#fff; background:var(--accent); }
.dict-wrap[data-on="1"] .dict-ui .dict-mic:hover { color:#fff; background:var(--accent); filter:brightness(1.07); }
.dict-wrap[data-on="1"] .dict-ui .dict-mic .ph { color:#fff; }
.dict-wrap[data-on="1"] .dict-word { display:inline; }
.dict-wrap[data-on="1"] .dict-halo { opacity:.25; }
html.op-dark .dict-wrap[data-on="1"] .dict-ui .dict-mic, html.op-dark .dict-wrap[data-on="1"] .dict-ui .dict-mic .ph, html.op-dark .dict-wrap[data-on="1"] .dict-ui .dict-mic:hover { color:#0F0E14; }
.dict-wrap[data-on="1"] > .dict-in, .dict-wrap.dict-hosted[data-on="1"] { animation:dlGlow 2.6s ease-in-out infinite; }
.dict-wrap[data-on="2"] .dict-ui .dict-mic { pointer-events:none; }
.dict-wrap[data-off="1"] .dict-ui .dict-mic { opacity:.45; }
/* the tooltip hangs from the button's right edge, so it never leaves a phone's window; a refusal shows it by itself for a moment, on touch too */
.dict-ui [data-tip]::after { content:attr(data-tip); inset:auto; left:auto; right:0; bottom:calc(100% + 9px); border-radius:10px; transform:translate(0, 4px); }
.dict-ui [data-tip]:focus-visible::after, .dict-ui .tip-now::after { opacity:1; transform:translate(0, 0); } @media (hover:hover) and (pointer:fine) { .dict-ui [data-tip]:hover::after { opacity:1; transform:translate(0, 0); } }
@media (hover:none) { .dict-ui .tip-now::after { display:block; } }
/* the library's search box while it listens: the width it has when focused, its own clear button away (Cancel does that), and on a
   phone the pill is the stop alone, so the words heard keep their room */
.lib-search[data-on="1"] { width:300px; }
.lib-search[data-on="1"] #libQx { display:none; }
@media (max-width:1100px) { .lib-search[data-on="1"] { width:100%; } }
@media (max-width:780px) { .dict-hosted[data-on="1"] .dict-word { display:none; } .dict-hosted[data-on="1"] .dict-ui .dict-mic { padding:0; min-width:36px; } }
@media (prefers-reduced-motion: reduce) { .dict-wrap[data-on="1"] > .dict-in, .dict-wrap.dict-hosted[data-on="1"] { animation:none; } .dict-halo { transition:none; } }

/* 20 Nov 2026 (Sergio: no bounce, in any sign-in): the wait after signing in ("Opening your work", "Signing you in") was drawn inside
   the sign-in screen, with its art panel, so it read as being sent back to sign in. It is now the page's own loader: the page's
   ground, the mark and one line in the middle, nothing of the sign-in around it */
.signin[data-mode="sync"] { grid-template-columns:minmax(0, 1fr); background:var(--s-0, #F7F7F5); padding:0; }
.signin[data-mode="sync"] .signin-side { display:none !important; }
.signin[data-mode="sync"] .signin-in { min-height:100dvh; border:0; border-radius:0; box-shadow:none; background:transparent; text-align:center; align-items:center; }
.signin[data-mode="sync"] .signin-in > * { width:min(360px, 100%); }
.signin[data-mode="sync"] .signin-brand { justify-content:center; margin-bottom:22px; }
.signin[data-mode="sync"] .signin-h { font-size:20px; font-weight:500; letter-spacing:-.01em; }
.signin[data-mode="sync"] .signin-sub { margin-top:6px; font-size:15px; }
.signin[data-mode="sync"] .signin-wait { width:min(160px, 60%); }

/* 20 November 2026: the sign-in reads like BiteSized's. The password's eye says its word (Show, Hide) beside the icon, and
   "Create an account" is an underlined link at rest, not only on hover */
.signin-pass .cn-field input { padding-right:96px; }
.signin-eye { display:inline-flex; align-items:center; gap:6px; width:auto; padding:0 12px 0 10px; border-radius:999px; font-size:14px; white-space:nowrap; }
.signin-eye > i { font-size:16px; }
.signin-alt-btn b { font-weight:400; text-decoration-color:rgba(var(--op-line),.35); }
@media (hover:hover) { .signin-alt-btn:hover b { text-decoration-color:currentColor; } }
/* 20 November 2026 (audit 15): the approval line in the phone viewer, inside the picture above the player's controls (provLine) */
#viewerStage > .prov-line.in-stage { position:absolute; left:16px; right:16px; bottom:60px; z-index:3; margin:0; pointer-events:none; text-shadow:0 1px 2px rgba(0,0,0,.6); }
/* 20 November 2026 (audit 23): one button records the voice; the ring beside it only shows the level, with no microphone of its own */
[data-step="record"].voice-only .vs-orb { display:none; }
[data-step="record"].voice-only:has(#recStart[data-recording]) .vs-orb { display:grid; }
[data-step="record"].voice-only .vs-orb i { display:none; }

/* 20 November 2026 (audit pass 2): the first approval shows every line of the script in The words, numbered, before Approve script and create
   video; a long script scrolls inside the tile */
.om-tile[data-sheet="script"] { align-items:start; }
.om-tile[data-sheet="script"] .tile-ic { align-self:start; }
.om-tile[data-sheet="script"] .tile-a { align-self:start; padding-top:2px; }
.om-tile .tile-v.tile-lines { display:flex; flex-direction:column; gap:3px; margin-top:4px; max-height:8.8em; overflow-y:auto; overscroll-behavior:contain; white-space:normal; text-overflow:clip; -webkit-line-clamp:unset; font-size:var(--fs-small); font-weight:450; line-height:1.4; color:var(--t-100); scrollbar-width:thin; }
.om-tile[data-sheet="script"] .tile-v.tile-lines::before, .om-tile[data-sheet="script"] .tile-v.tile-lines::after { content:none; }
.tile-lines .tl { display:grid; grid-template-columns:1.3em minmax(0, 1fr); column-gap:6px; }
.tile-lines .tl b { font-weight:500; color:var(--t-500); font-variant-numeric:tabular-nums; }
@media (max-height:800px) { .om-tile .tile-v.tile-lines { max-height:6.6em; } }

/* 20 November 2026 (audit pass 2): on a phone Upload and New video say what they do, on a row of their own under Mine and Examples */
@media (max-width:600px) {
  .lib-top { grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"titles titles" "new new" "search sort" "seg seg"; }
  .lib-top .lib-actions { justify-self:stretch; }
  .lib-top .lib-actions > .lib-up, .lib-top .lib-actions > .primary.lib-new { flex:1 1 0; }
  .lib-up span, .lib-top .primary.lib-new span { display:inline; }
  .lib-up, .lib-top .primary.lib-new { width:auto; min-width:0; padding:0 var(--sp-4); gap:var(--sp-2); justify-content:center; }
  .lib-up .lib-up-more { display:none; }
}

/* 20 November 2026 (audit pass 2): where the side panel is gone (a phone, a narrow window), one line under the mark says what Dose is */
.signin-tag { display:none; }
@media (max-width:900px) { .signin-tag { display:block; margin:-6px 0 18px; font-size:var(--fs-small); line-height:1.4; color:var(--t-500); } .signin[data-mode="patient"] .signin-tag, .signin[data-mode="sync"] .signin-tag { display:none; } }

/* 20 November 2026 (audit pass 2): Insights with nothing shared says when numbers come, and the way to share one */
.ins-empty > span { display:block; }
.ins-empty .ins-empty-go { display:inline-flex; align-items:center; gap:var(--sp-2); height:44px; margin-top:var(--sp-4); padding:0 var(--sp-4); }

/* 20 November 2026 (audit pass 2): the photo tips are read, not pressed: a plain list, no boxes around them */
[data-step="photos"] .ph-side .tips { gap:var(--sp-2); }
[data-step="photos"] .ph-side .tips li { min-height:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--t-300); }
[data-step="photos"] .ph-side .tips li i { width:auto; height:auto; border-radius:0; background:transparent; font-size:18px; color:var(--t-500); }

/* 20 November 2026 (audit pass 2): the places of Doctorpedia show from 1360 px, beside the mark; New video and Content then sit centred in
   the room left between them and Account, never under them */
@media (min-width:1360px) {
  .topbar:has(> .tb-places:not([hidden])) { grid-template-columns:max-content fit-content(480px) minmax(0, 1fr) max-content; }
  .topbar:has(> .tb-places:not([hidden])) > .tb-brand { grid-column:1; grid-row:1; }
  .topbar > .tb-places:not([hidden]) { grid-column:2; grid-row:1; justify-self:start; margin-left:0; }
  .topbar:has(> .tb-places:not([hidden])) .tb-main { grid-column:3; grid-row:1; justify-self:center; }
  .topbar:has(> .tb-places:not([hidden])) .tb-side { grid-column:4; grid-row:1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   20 November 2026, audit pass 4: phone, touch and access. Sizes and places only; the look stays.
   ═══════════════════════════════════════════════════════════════════════════ */
/* the one next step of the words' review, the video's review and the making screen stays in view on a phone, just above the tab bar,
   on the surface it stands on; what scrolls passes under it */
@media (max-width:780px) {
  [data-step="offer"] .om-foot { position:sticky; bottom:calc(-1 * var(--sp-4)); z-index:6; margin-bottom:calc(-1 * var(--sp-4)); padding-bottom:var(--sp-4); background:var(--s-1); box-shadow:0 -14px 14px -10px var(--s-1); }
  [data-step="making"] .make-tools { align-self:stretch; width:100%; }   /* the strip spans the column, so nothing shows beside the button */
  [data-step="making"] .make-tools.make-tools { padding-top:var(--sp-1); padding-bottom:var(--sp-4); }   /* slim: the steps above it stay readable */
  [data-step="review"] #reviewActions, [data-step="making"] .make-tools { position:sticky; bottom:calc(-1 * var(--sp-4)); z-index:6; padding:var(--sp-3) 0 calc(var(--sp-2) + var(--sp-4)); background:var(--s-0); box-shadow:0 -14px 14px -10px var(--s-0); }
}
/* Content's search box at 16 px where a finger types, so the phone does not zoom into it */
@media (pointer:coarse) { .lib-search input { font-size:16px; } }
/* a phone on its side: Content's head scrolls away with the page instead of holding half the window */
@media (max-height:500px) { .lib-top { position:relative; } body[data-mood="library"] .topbar { background:var(--s-0); } }   /* the bar then carries its own ground */
/* "Say it": 32 px to the eye, 44 px to a finger (::before, since ::after is its tooltip) */
.dict-ui .dict-mic::before, .dict-ui .dict-cancel::before { content:''; position:absolute; left:-6px; right:-6px; top:-6px; bottom:-6px; }
/* the sample page's player: 44 px buttons; the scrubbers keep their thin bar and take a 44 px band of touch */
.avc-b { width:44px; height:44px; }
.vp-track::after, .avc-bar::after { content:''; position:absolute; left:0; right:0; top:50%; height:44px; translate:0 -50%; }
/* the Account panel's Legal link, a full row to a finger */
.you-legal { display:inline-flex; align-items:center; min-height:44px; }
/* a touch screen (an iPad too): the top bar, Mine and Examples, Change and the legal links at 44 px */
@media (pointer:coarse) {
  .tb-main .tb-btn, .tb-quiet { height:44px; min-width:44px; justify-content:center; }
  .lib-scope button, .pseg.lib-scope button { height:44px; }
  .asrow .mini, .om-tile .tile-a { min-height:44px; }
  #legalFoot a, .legal-foot a { display:inline-flex; align-items:center; min-height:44px; }
}
/* a phone on Create: a notice comes in under the top bar, never over "Say it" or "Prepare this for me" */
@media (max-width:780px) {
  body:has([data-step="share"]:not([hidden])) .toaster { top:calc(var(--tb-h) + var(--banner-h, 0px) + var(--sp-2)); bottom:auto; }
}
/* small words that are still read: at least 12 px */
.ccard-sample, .check-sample, .avc-sample, .os-meter small { font-size:12px; }
/* Preparing: the green of what is done, dark enough to read on its tint */
html:not(.op-dark) .plan-run > li.pr-done .out { color:#166534; }
/* a window under 500 px tall: the notice strip gives its line back to the screen; its two links sit under the sheet instead */
@media (max-height:499.98px) {
  #youNudge { display:none !important; }
  body:has(#youNudge:not([hidden]):not(.out)) { --banner-h:0px; }
  body:has(#youNudge:not([hidden]):not(.out)) #youKit { display:flex; }
}
