/* OFF THE CV.app — everything inside the iMac's CRT (+ the boot handoff). */

html, body { margin: 0; background: var(--night); color: var(--paper); font-family: var(--f-ui); font-variant-ligatures: none; font-synthesis: none; }
html.in-app, html.in-app body { height: 100%; overflow: hidden; overscroll-behavior: none; }
#app[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
.noscript { padding: 24px; font-family: var(--f-ui); }

/* ---------------------------------------------------------------- handoff */
.boot-zoom { position: fixed; inset: 0; z-index: 9000; background: var(--night); opacity: 0; transition: opacity .42s var(--ease-out); transform-origin: 0 0; pointer-events: none; will-change: transform; }
.boot-zoom.is-on { opacity: 1; }
.boot-zoom.is-through { background: #000; }
.boot-zoom__stage { position: absolute; }
.boot-zoom__imac { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.boot-zoom__stage--drawn { border-radius: 14% 14% 18% 18%; background: linear-gradient(160deg, #e8e4dc, #b9c8cb 55%, var(--bondi)); }
.boot-zoom__glass { position: absolute; border-radius: 3%; background: #050505; overflow: hidden; }
.boot-zoom__glass::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--crt-glow); box-shadow: 0 0 18px 4px rgba(184,255,233,.7); transform: scaleX(0); opacity: 0; }
.boot-zoom__glass.is-power::after { animation: glassOn .55s var(--ease-out) forwards; }
@keyframes glassOn {
  0% { transform: scaleX(0); opacity: 1; }
  45% { transform: scaleX(1); height: 2px; opacity: 1; top: 50%; }
  100% { transform: scaleX(1); height: 100%; top: 0; margin-top: 0; opacity: 1; background: #04232b; box-shadow: inset 0 0 60px rgba(0,0,0,.8); }
}
.boot-fail { position: fixed; inset: 0; display: grid; place-items: center; font-family: var(--f-term); font-size: 28px; color: var(--crt-glow); background: #04232b; }
.boot-fail a { color: var(--flame); }

.gate { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: radial-gradient(ellipse at 50% 38%, #2e2219, var(--night) 70%); color: var(--paper); transition: opacity .6s var(--ease-out, ease), visibility .6s; }
/* CRT scanlines + vignette, same family as the installer screen */
.gate::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0,0,0,.55)); }
.gate.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__in { position: relative; z-index: 1; width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* Platinum startup window */
.gate__win { box-sizing: border-box; width: 100%; padding: 26px 26px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--plat-1); color: var(--ink, #111); border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-4), inset 2px 2px 0 var(--plat-0), inset -2px -2px 0 var(--plat-3), 6px 6px 0 rgba(0,0,0,.6); animation: gate-pop .5s var(--ease-out, ease) both; }
.gate__logo { width: 64px; height: 64px; image-rendering: pixelated; margin-bottom: 10px; }
.gate__welcome { margin: 0; font: 400 22px/1 var(--f-head); color: var(--plat-5); }
.gate__name { margin: 2px 0 0; font: 600 clamp(44px, 11vw, 60px)/.9 var(--f-head); letter-spacing: 0; }
.gate__by { margin: 8px 0 18px; font: 500 11px var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--plat-4); }
.gate__status { align-self: stretch; margin: 0 0 6px; text-align: left; font: 500 12px var(--f-ui); color: var(--plat-5); }
.gate__bar { box-sizing: border-box; align-self: stretch; height: 14px; padding: 1px; background: #fff; border: 1px solid var(--plat-5); box-shadow: inset 1px 1px 0 var(--plat-3); }
.gate__bar i { display: block; height: 100%; background: linear-gradient(#b8b8ff, var(--plat-hi) 55%, #4040c8); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); clip-path: inset(0 100% 0 0); }
.gate__actions { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 22px; }
.gate__actions button, .gate__skip { min-height: 30px; padding: 0 16px; border: 1px solid #000; border-radius: 5px; background: linear-gradient(var(--plat-0), var(--plat-2)); color: #000; font: 600 12px var(--f-ui); cursor: pointer; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-4); transition: opacity .3s; }
.gate__actions button:not(:disabled):active, .gate__skip:active { background: var(--plat-5); color: #fff; box-shadow: none; }
.gate__actions button:disabled { opacity: .4; cursor: default; }
/* default button: the thick Platinum ring */
.gate__enter { min-height: 34px !important; padding: 0 20px !important; outline: 3px solid #000; outline-offset: 2px; border-radius: 6px !important; }
.gate__enter:disabled { outline-color: var(--plat-4); }
.gate__enter:not(:disabled):hover { background: linear-gradient(#ffe0b8, var(--flame)); }
.gate__enter span:last-child { opacity: .6; }
.gate__quiet:not(:disabled):hover, .gate__skip:hover { background: linear-gradient(#fff, var(--plat-1)); }
.gate__skip { margin-top: 14px; align-self: flex-end; background: none; border-style: dashed; box-shadow: none; }
.gate__hint { margin: 0; font: 400 12px var(--f-ui); color: rgba(243,238,226,.55); text-align: center; }
/* the page behind the entry window never scrolls; a scroll is how you enter */
html.is-gated, html.is-gated body { overflow: hidden; overscroll-behavior: none; }
html.is-gated .gate { touch-action: none; }
.gate__how { align-self: stretch; margin: 12px 0 0; text-align: right; font: 500 12px var(--f-ui); color: var(--plat-5); }
@media (max-width: 560px) { .gate__how { text-align: center; } } /* phones: under full-width buttons */
/* extensions loading along the bottom, OS 9 style */
.gate__exts { position: absolute; z-index: 1; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); margin: 0; padding: 0; list-style: none; display: flex; gap: 10px; }
.gate__exts li { width: 32px; height: 32px; opacity: 0; transform: translateY(4px); transition: opacity .2s steps(2), transform .2s steps(2); }
.gate__exts li.is-on { opacity: 1; transform: none; }
.gate__exts img { width: 100%; height: 100%; image-rendering: pixelated; }
@keyframes gate-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.gate button:focus-visible { outline: 2px solid var(--flame); outline-offset: 4px; }
.gate__enter:focus-visible { outline: 3px solid var(--plat-hi); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gate, .gate__exts li { transition: none; } .gate__win { animation: none; } }
.menubar__make { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 10px; border: 1px solid #111; border-radius: 999px; background: var(--tangerine, #ff8a1f); color: #111; font: 700 12px var(--f-ui); text-decoration: none; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.menubar__make:hover { background: #111; color: #fff; }
.menubar__make:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

/* placeholder hero (only when js/hero is missing) */
.hero-placeholder { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 30%, #2a201a, var(--night) 70%); }
.hp { max-width: 760px; text-align: center; }
.hp__count { margin: 0 0 16px; font: 800 clamp(16px, 2vw, 20px) var(--f-dot); color: var(--flame); letter-spacing: .04em; }
.hp__count span { font-size: 1.6em; }
.hp__title { margin: 0 0 32px; font: 800 clamp(34px, 6vw, 72px)/1.02 var(--f-head); letter-spacing: 0; color: var(--paper); }
.hp__skip { min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 15px var(--f-ui); cursor: pointer; }
.hp__skip:hover { background: var(--flame); }

/* ---------------------------------------------------------------- CRT */
.app { position: fixed; inset: 0; background: #000; color: var(--ink); }
.crt { position: absolute; inset: 0; padding: 0; background: #000; }
.crt__tube { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: clamp(10px, 2.2vmin, 22px); background: #000; isolation: isolate; }
.crt-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; display: block; }
.crt-gl--none { display: none; }
.crt__screen { position: absolute; inset: 0; opacity: 0; filter: brightness(2.4) saturate(.2) blur(1.5px); transition: opacity .5s var(--ease-out), filter .9s var(--ease-out); }
.crt__screen.is-on { opacity: 1; filter: none; }
/* soft RGB fringe + phosphor glow on the tube edge, never on text */
.crt__tube::after { content: ""; position: absolute; inset: 0; z-index: 59; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 2px 0 6px rgba(255,60,80,.12), inset -2px 0 6px rgba(60,200,255,.12), inset 0 0 80px rgba(0,0,0,.45); }

.boot-chrome { position: absolute; z-index: 70; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.boot-chrome button { min-height: var(--tap); padding: 0 16px; border: 1px solid rgba(184,255,233,.35); background: rgba(4,35,43,.6); color: var(--crt-glow); font: 22px/1 var(--f-term); letter-spacing: .04em; border-radius: 4px; cursor: pointer; text-shadow: 0 0 8px rgba(184,255,233,.6); }
.boot-chrome button:hover { background: var(--crt-glow); color: #04232b; text-shadow: none; }
/* drawn on the glass by js/app/bootseq.js (so they bend with the tube); these are the real
   buttons, invisible, laid over where they're drawn */
.boot-chrome.is-glass { inset: 0; pointer-events: none; }
.boot-chrome.is-glass button { position: absolute; min-height: 0; padding: 0; opacity: 0; pointer-events: auto; }

/* ---------------------------------------------------------------- desktop */
.desk { position: absolute; inset: 0; overflow: hidden; overflow: clip; isolation: isolate; } /* clip: a focus() off-screen can't scroll the desk sideways */
.desk__fallback { position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 70% 110%, rgba(255,138,31,.45), transparent 60%),
  radial-gradient(90% 70% at 10% 0%, rgba(123,79,214,.55), transparent 60%),
  linear-gradient(180deg, #0b5566, #0a8fa8 55%, #2c6f63); }
.desk__wall { position: absolute; z-index: 0; inset: 0 0 auto 0; width: 100%; height: calc(100% + 44px); /* push wallpap's dev HUD (bottom-left, not switchable by URL) below the fold */ border: 0; opacity: 0; transition: opacity 1.2s var(--ease-out); pointer-events: none; background: transparent; }
.desk__wall.is-loaded { opacity: 1; }

.menubar { position: absolute; z-index: 40; top: 0; left: 0; right: 0; height: 28px; display: flex; align-items: stretch; justify-content: space-between; padding: 0 clamp(10px, 1.6vw, 20px); background: linear-gradient(#f2f2f2, #dcdcdc); border-bottom: 1px solid #111; box-shadow: 0 1px 0 rgba(255,255,255,.3); color: #111; font: 500 13px var(--f-ui); user-select: none; }
.menubar__menus { display: flex; margin: 0; padding: 0; list-style: none; }
.menu { position: relative; }
.menu__btn { height: 100%; padding: 0 10px; border: 0; background: none; cursor: default; display: flex; align-items: center; gap: 6px; }
.menu--logo .menu__btn { padding: 0 10px 0 4px; }
.menu--logo img { image-rendering: pixelated; display: block; }
.menu.is-open > .menu__btn { background: #2d2d2d; color: #fff; }
.menu__list { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 4px 0; list-style: none; background: #eee; border: 1px solid #111; box-shadow: 2px 2px 0 rgba(0,0,0,.35), 0 12px 28px rgba(0,0,0,.25); }
.menu.is-open .menu__list { display: block; }
.menu__item { width: 100%; text-align: left; padding: 5px 18px; border: 0; background: none; font: 500 13px var(--f-ui); cursor: default; white-space: nowrap; }
.menu__item:hover:not(:disabled), .menu__item:focus-visible { background: var(--bondi); color: #fff; outline: none; }
.menu__item:disabled { color: #999; }
.menu__sep { height: 1px; margin: 4px 0; background: #aaa; }
.menubar__right { display: flex; align-items: center; gap: 14px; }
.menubar__app { font-weight: 700; }
.menubar__clock { font: 800 14px var(--f-dot); letter-spacing: .02em; min-width: 6ch; text-align: right; }
.menubar__sound { width: 28px; height: 100%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.menubar__sound.is-off .ico--speaker { -webkit-mask-image: var(--i-mute); mask-image: var(--i-mute); }

.desk__area { position: absolute; top: 28px; left: 0; right: 0; bottom: 0; z-index: 10; }
.desk__home { display: contents; }
.icons { position: absolute; inset: 14px clamp(10px, 1.6vw, 22px) 14px auto; margin: 0; padding: 0; list-style: none; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 88px); grid-auto-columns: 96px; direction: rtl; gap: 2px 6px; max-width: calc(100% - 28px); }
.icons li { direction: ltr; }
.icon { width: 96px; height: 88px; padding: 2px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; border-radius: 4px; }
.icon img { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.35)); transition: transform .2s var(--ease-out); }
.icon:hover img { transform: translateY(-2px); }
.icon__label { max-width: 92px; padding: 1px 5px; border-radius: 3px; background: rgba(243,238,226,.92); color: #111; font: 500 12px/1.25 var(--f-ui); text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.icon.is-selected img { filter: brightness(.55) sepia(1) hue-rotate(170deg) saturate(3) drop-shadow(1px 2px 0 rgba(0,0,0,.35)); }
.icon.is-selected .icon__label { background: #111; color: #fff; }
.icon--wispr .icon__label { background: linear-gradient(90deg, var(--lime), #ffd23f, var(--tangerine), var(--strawberry), var(--grape), var(--bondi)); color: #111; font-weight: 700; }
.desk__toast { position: absolute; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; background: #111; color: var(--paper); font: 500 13px var(--f-ui); border-radius: 6px; transition: .3s var(--ease-out); z-index: 999; pointer-events: none; max-width: calc(100% - 32px); }
.desk__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- windows */
.win { position: absolute; display: flex; flex-direction: column; max-height: calc(100% - 24px); background: var(--plat-2); color: #111; border: 1px solid #111; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-4), 0 2px 0 rgba(0,0,0,.25), 0 22px 50px rgba(0,0,0,.38); font: 400 13px/1.45 var(--f-ui); opacity: 0; transform: scale(.94); transform-origin: 50% 30%; transition: opacity .22s var(--ease-out), transform .32s var(--ease-out); }
.win.is-open { opacity: 1; transform: none; }
.win.is-closing { opacity: 0; transform: scale(.96); transition-duration: .15s; }
.win[hidden] { display: none; }
.win.is-dragging { transition: none; cursor: grabbing; }
.win__bar { position: relative; flex: none; height: 24px; display: flex; align-items: center; gap: 8px; padding: 0 6px; border-bottom: 1px solid var(--plat-4); user-select: none; cursor: grab; touch-action: none; }
.win__stripes { position: absolute; left: 28px; right: 6px; top: 6px; height: 11px; background: repeating-linear-gradient(#fff 0 1px, var(--plat-4) 1px 2px); opacity: 0; }
.win.is-front .win__stripes { opacity: 1; }
.win__close { position: relative; z-index: 1; width: 14px; height: 14px; padding: 0; border: 1px solid #111; background: linear-gradient(135deg, #fff, var(--plat-3)); cursor: pointer; flex: none; }
.win__close::before { content: ""; position: absolute; inset: -10px; }
.win__close:active { background: #555; }
.win__title { position: relative; z-index: 1; margin: 0 auto; padding: 0 10px; background: var(--plat-2); font: 600 12px/24px var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 140px); }
.win:not(.is-front) .win__title { color: #777; }
.win__tools { position: relative; z-index: 1; display: flex; gap: 6px; background: var(--plat-2); padding-left: 6px; }
.win__tools:empty { display: none; }
/* the collapse box (windowshade): rolls the window up to its title bar */
.win__shade { position: relative; z-index: 1; width: 14px; height: 14px; padding: 0; border: 1px solid #111; background: linear-gradient(135deg, #fff, var(--plat-3)); cursor: pointer; flex: none; }
.win__shade::after { content: ""; position: absolute; left: 1px; right: 1px; top: 4px; height: 2px; border-top: 1px solid #111; border-bottom: 1px solid #111; }
.win__shade::before { content: ""; position: absolute; inset: -6px; }
.win__shade:active { background: #555; }
.win.is-shaded { height: auto !important; max-height: none; }
.win.is-shaded > :not(.win__bar) { display: none !important; }
.win.is-shaded .win__bar { border-bottom: 0; }
.win__tab { font: 600 12px/18px var(--f-ui); color: #111; padding: 0 8px; border: 1px solid #111; border-radius: 3px; background: #fff; text-decoration: none; white-space: nowrap; }
.win__tab:hover { background: var(--bondi); color: #fff; }
.win__body { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 14px 16px 16px; box-shadow: inset 0 1px 0 #fff; }
.win__body > p:first-child { margin-top: 0; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 14px; border: 1px solid #111; border-radius: 6px; background: linear-gradient(#fafafa, #d6d6d6); box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #999; color: #111; font: 500 13px var(--f-ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: linear-gradient(#fff, #e4e4e4); }
.btn:active { background: #3b3b3b; color: #fff; box-shadow: none; }
.btn:disabled { color: #999; cursor: default; }
.btn--primary { box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #999, 0 0 0 2px var(--plat-2), 0 0 0 3.5px #111; margin: 3px; }
.btn--sm { min-height: 28px; padding: 0 10px; font-size: 12px; }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 15px; font-weight: 700; }
.field { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid #111; background: #fff; box-shadow: inset 1px 1px 0 #aaa; color: #111; font: 400 14px var(--f-ui); border-radius: 0; }
.field:focus { outline: 2px solid var(--bondi); outline-offset: 0; }
.field--area { resize: vertical; line-height: 1.45; }
.row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.row .field { flex: 1; width: auto; min-width: 0; }
.small { font-size: 12px; color: #444; margin: 0 0 8px; }
.dot { font: 800 16px var(--f-dot); }
input[type=range] { accent-color: var(--bondi); flex: 1; }

/* alerts */
.win--alert .win__body { padding: 18px 18px 14px; }
.alert { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.alert__icon { image-rendering: pixelated; }
.alert__msg { margin: 2px 0 0; font: 500 14px/1.5 var(--f-ui); }
.alert__btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ask label { display: grid; gap: 10px; font-weight: 500; }

/* ---------------------------------------------------------------- icons (masked SVG, currentColor) */
.ico { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico--play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2l10 6-10 6z'/%3E%3C/svg%3E"); }
.ico--pause { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2h4v12H3zM9 2h4v12H9z'/%3E%3C/svg%3E"); }
.ico--skip { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l9 6-9 6zM12 2h2v12h-2z'/%3E%3C/svg%3E"); }
.ico--back { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 2L5 8l9 6zM2 2h2v12H2z'/%3E%3C/svg%3E"); }
.ico--mic { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 1h4v8H6zM3 7h2v2a3 3 0 006 0V7h2v2a5 5 0 01-4 4.9V15H7v-2.1A5 5 0 013 9z'/%3E%3C/svg%3E"); }
.ico--speaker { --i-mute: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 5h3l4-3v12l-4-3H1zM10 5l1-1 2 2 2-2 1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2z'/%3E%3C/svg%3E"); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 5h3l4-3v12l-4-3H1zM10 5a4 4 0 010 6l-1-1a2.6 2.6 0 000-4zM12 3a7 7 0 010 10l-1-1a5.6 5.6 0 000-8z'/%3E%3C/svg%3E"); width: 16px; height: 16px; }

/* ---------------------------------------------------------------- podcast */
.win--podcast .win__body { padding: 0; overflow: hidden; display: flex; }
.pod { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(236px, 26%, 290px); }
.pod__main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; overflow: auto; }
.pod__side { min-height: 0; overflow: auto; padding: 14px 12px; border-left: 1px solid var(--plat-4); background: var(--plat-1); box-shadow: inset 1px 0 0 #fff; }
.side__title { margin: 0 0 10px; font: 700 12px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #555; }
.side__hint { margin: 14px 2px 0; font: 400 12px/1.5 var(--f-ui); color: #666; }
.chapters { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.chap { width: 100%; display: grid; grid-template-columns: 30px 1fr; align-items: baseline; gap: 6px; min-height: 36px; padding: 7px 8px; border: 0; border-radius: 4px; background: none; text-align: left; font: 500 12.5px/1.3 var(--f-ui); cursor: pointer; color: #222; }
.chap:hover { background: rgba(10,143,168,.12); }
.chap__n { font: 800 13px var(--f-dot); color: #888; }
.chap.is-visited .chap__n { color: var(--bondi); }
.chap.is-current { background: #111; color: #fff; }
.chap.is-current .chap__n { color: var(--flame); }
.chap-drawer { display: none; }

.stage-box { flex: 1 1 auto; min-height: 200px; container-type: size; display: grid; justify-items: center; align-items: start; }
.stage-col { width: min(100cqw, max(200px, calc((100cqh - 112px) * 16 / 9))); display: flex; flex-direction: column; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse at 50% 20%, #3a2a1c, #0d0b09 70%); border: 1px solid #111; box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--plat-4); container-type: inline-size; --level: 0; }
.set { position: absolute; inset: 0; transform-origin: 0 0; }
.set__bg, .set__fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.set__bg { filter: saturate(.92) brightness(.84); transition: filter .5s; }
.set__fg[hidden] { display: none; }
.stage[data-speaker="you"] .set__bg { filter: saturate(.8) brightness(.66); }
.stage:not([data-shot="wide"]) img { image-rendering: pixelated; }
.stage__spot { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(26% 46% at var(--sx, 22%) 52%, rgba(255,190,120,calc(.14 + var(--level) * .1)), transparent 70%); }
.stage[data-speaker="you"] .stage__spot { background: radial-gradient(22% 40% at var(--sx, 50%) 80%, rgba(184,255,233,.2), transparent 70%); }
.seat { position: absolute; pointer-events: none; transition: filter .45s var(--ease-out); filter: brightness(.76) saturate(.86); }
.seat .puppet__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: block; user-select: none; }
.seat .puppet__img.is-off { visibility: hidden; }
.seat.is-placeholder .puppet__img { image-rendering: pixelated; }
.seat.is-active { filter: brightness(1.04) saturate(1.04) drop-shadow(0 0 22px rgba(255,190,120,.25)); }
/* until the foreground desk layer lands, feather the sprites' hard waist/sleeve cuts */
.stage--feather .seat { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 18%); mask-image: linear-gradient(to top, transparent 0, #000 18%); }
.stage--feather .seat--host { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 18%), linear-gradient(to right, transparent 0, #000 14%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, transparent 0, #000 18%), linear-gradient(to right, transparent 0, #000 14%); mask-composite: intersect; }
.stage--feather .seat--guest { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 18%), linear-gradient(to left, transparent 0, #000 14%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, transparent 0, #000 18%), linear-gradient(to left, transparent 0, #000 14%); mask-composite: intersect; }
.seat-you { position: absolute; pointer-events: none; filter: brightness(.82) saturate(.9); transition: filter .35s var(--ease-out); }
.seat-you[hidden] { display: none; }
.seat-you__img, .seat-you__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.seat-you__img img[src^="data:"] { object-fit: cover; clip-path: inset(6% 14% 0 14% round 40% 40% 4% 4%); image-rendering: pixelated; }
.seat-you.is-active { filter: brightness(1.08) drop-shadow(0 0 18px rgba(184,255,233,.45)); }
.seat-you.is-listening { animation: listen 1.4s ease-in-out infinite; }
.seat-you.is-arriving { animation: sitDown .9s var(--ease-out); }
@keyframes listen { 0%, 100% { filter: brightness(1) drop-shadow(0 0 6px rgba(184,255,233,.25)); } 50% { filter: brightness(1.1) drop-shadow(0 0 20px rgba(184,255,233,.55)); } }
@keyframes sitDown { from { opacity: 0; transform: translateY(18%); } }
.you-bubble { position: absolute; transform: translate(-50%, -100%); opacity: 0; padding: .45em .75em; max-width: 34%; background: var(--paper); color: #111; font: 600 clamp(12px, 1.3cqw, 14px)/1.3 var(--f-ui); border: 1px solid #111; border-radius: 8px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.you-bubble.is-on { opacity: 1; }
.think { position: absolute; transform: translate(-50%, -100%); display: flex; gap: .3em; padding: .45em .7em; background: var(--paper); border: 2px solid #111; border-radius: 999px; opacity: 0; pointer-events: none; font-size: clamp(6px, .9cqw, 11px); }
.think::after { content: ""; position: absolute; left: 30%; bottom: -.9em; width: .7em; height: .7em; background: var(--paper); border: 2px solid #111; border-radius: 50%; }
.think i { width: .8em; height: .8em; background: #111; border-radius: 1px; animation: thinkDot .6s steps(2) infinite; }
.think i:nth-child(2) { animation-delay: .2s; } .think i:nth-child(3) { animation-delay: .4s; }
.think.is-on { opacity: 1; }
@keyframes thinkDot { 50% { opacity: .2; } }
.itemcard { z-index: 3; position: absolute; left: 3.2%; bottom: 7%; min-width: 34%; max-width: 60%; padding: .7em .9em .8em; background: rgba(243,238,226,.97); color: #1a1a1a; border: 2px solid #1a1a1a; box-shadow: 4px 4px 0 rgba(0,0,0,.45); font-size: clamp(12px, 1.45cqw, 16px); opacity: 0; transform: translateY(6px); pointer-events: none; }
.itemcard.is-on { opacity: 1; transform: none; transition: transform .18s steps(3), opacity .01s; }
.itemcard__title { margin: 0 0 .4em; padding-bottom: .35em; border-bottom: 2px dashed #1a1a1a; font: 800 1.25em/1 var(--f-dot); letter-spacing: .06em; }
.itemcard__title span { color: var(--ember); }
.itemcard__rows { margin: 0; display: grid; gap: .2em; font: 500 .9em/1.3 var(--f-ui); }
.itemcard__rows div { display: flex; gap: .6em; }
.itemcard__rows dt { color: #7a6a52; min-width: 4.5em; }
.itemcard__rows dd { margin: 0; font-weight: 700; }
.cu, .insert { position: absolute; inset: 0; z-index: 1; background: #0d0b09; }
.cu[hidden], .insert[hidden] { display: none; }
.cu .puppet__img, .insert img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cu .puppet__img.is-off { visibility: hidden; }
.stage--layered .seat { filter: none; }
.stage--layered .seat .puppet__img { object-fit: fill; }
.stage--layered .seat.is-active { filter: brightness(1.05) saturate(1.04); }
.stage--layered .seat:not(.is-active) { filter: brightness(.86) saturate(.92); }
.itemcard--plate { background: none; border: 0; box-shadow: none; color: var(--paper); padding: 0; max-width: 40%; }
.itemcard--plate .itemcard__title { border-bottom-color: rgba(243,238,226,.5); font-size: 1.7em; font-weight: 800; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.itemcard--plate .itemcard__title span { color: var(--flame); }
.itemcard--plate .itemcard__rows { font: 700 1.05em/1.35 var(--f-dot); }
.itemcard--plate .itemcard__rows dt { color: rgba(243,238,226,.65); }
.itemcard--plate .itemcard__rows dd { color: var(--flame); }
.cutaway { position: absolute; inset: 0; z-index: 2; background: #0d0b09; }
.cutaway[hidden] { display: none; }
.cutaway img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.loadbar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; align-items: center; gap: .8em; padding: .6em 1em; background: #111; color: var(--paper); font: 800 clamp(12px, 1.4cqw, 15px)/1 var(--f-dot); letter-spacing: .14em; border: 2px solid var(--paper); z-index: 5; }
.loadbar i { width: 8em; height: .8em; border: 1px solid var(--paper); background: linear-gradient(90deg, var(--flame) 0 0) 0 0 / 0% 100% no-repeat; }
.loadbar.is-on { display: flex; }
.loadbar.is-on i { animation: loadFill .26s steps(6) forwards; }
@keyframes loadFill { to { background-size: 100% 100%; } }
.onair { position: absolute; top: 3%; left: 2.4%; padding: .3em .7em; font: 800 clamp(12px, 1.4cqw, 14px)/1 var(--f-dot); letter-spacing: .12em; color: #6b2a20; background: rgba(20,8,6,.7); border: 1px solid #3a1510; border-radius: 3px; }
.onair.is-on { color: #fff; background: #d8321d; border-color: #ff8a70; box-shadow: 0 0 14px rgba(255,80,50,.6); }

/* lower third */
.lower3 { position: relative; flex: none; padding: 9px 16px 11px; background: #141210; color: var(--paper); border-left: 4px solid var(--flame); min-height: 96px; font-size: 16px; }
.stage .lower3 { position: absolute; left: 2.4%; right: 2.4%; bottom: 3.2%; background: linear-gradient(90deg, rgba(14,12,10,.92), rgba(14,12,10,.84)); backdrop-filter: blur(3px); min-height: 0; }
.lower3__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.lower3__name { margin: 0; font: 700 12px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--flame); }
.lower3__tag { font: 800 12px/1 var(--f-dot); letter-spacing: .1em; padding: 3px 6px; border-radius: 3px; color: #111; background: #d8cdb4; }
.lower3__tag:empty { display: none; }
.lower3__tag.is-clean { background: linear-gradient(90deg, var(--lime), #ffd23f, var(--tangerine), var(--strawberry), var(--grape)); }
.lower3__sub { max-height: calc(1.3em * 3); overflow: hidden; scroll-behavior: auto; margin: 0; font: 400 clamp(15px, 1.25vw, 19px)/1.3 var(--f-head); letter-spacing: 0; text-wrap: pretty; }
.lower3__sub.is-scroll.is-more { -webkit-mask-image: linear-gradient(#000 calc(100% - .5em), rgba(0,0,0,.35)); mask-image: linear-gradient(#000 calc(100% - .5em), rgba(0,0,0,.35)); }
.lower3__sub.is-long { font-size: clamp(14px, 1.1vw, 17px); }
.lower3__sub.is-messy { font: 400 clamp(17px, 1.4vw, 21px)/1.3 var(--f-hand); color: #e8dcc3; max-height: calc(1.3em * 3); }
.sw { display: inline; transition: opacity .25s, color .3s; }
.sw--ins { display: none; }
.sw--ins.is-in { display: inline; color: var(--lime); animation: wordIn .35s var(--ease-out); }
.sw--del.is-struck { color: #b9a989; text-decoration: line-through 2px var(--ember); }
.sw--del.is-gone { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; vertical-align: bottom; white-space: nowrap; transition: max-width .35s var(--ease-io), opacity .2s; }
.lower3__sub.is-clean .sub__clean { animation: settle .3s var(--ease-out); }
/* karaoke: the word being spoken (js/app/subtitle.js, timings from data/words.json) */
.sub__w { transition: color .12s linear, text-shadow .12s linear; }
.sub__w.is-now { color: var(--flame); text-shadow: 0 0 10px rgba(255,169,70,.35); }
@media (prefers-reduced-motion: reduce) { .sub__w { transition: none; } .sub__w.is-now { text-shadow: none; } }
@keyframes wordIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes settle { from { opacity: .6; } }

/* transport */
.transport { display: flex; align-items: center; gap: 8px; flex: none; }
.chap-drawer { flex: none; }
.chap-drawer summary::-webkit-details-marker { display: none; }
.chap-drawer summary { list-style: none; }
.tbtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid #111; border-radius: 6px; background: linear-gradient(#fafafa, #d0d0d0); box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #999; cursor: pointer; color: #111; }
.tbtn:active { background: #333; color: #fff; }
.tbtn--play { width: 48px; height: 44px; background: linear-gradient(#ffb85e, var(--flame)); }
.scrub { position: relative; flex: 1; height: 40px; display: flex; align-items: center; cursor: pointer; touch-action: none; min-width: 80px; }
.scrub__track { position: relative; width: 100%; height: 10px; background: #fff; border: 1px solid #111; box-shadow: inset 1px 1px 0 #aaa; overflow: hidden; }
.scrub__fill { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--bondi) 0 7px, #0b7a8f 7px 9px); transform-origin: 0 50%; transform: scaleX(0); }
.scrub__ticks span { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.35); z-index: 1; }
.scrub__knob { position: absolute; top: 50%; width: 14px; height: 22px; margin: -11px 0 0 -7px; background: linear-gradient(90deg, #fff, #cfcfcf); border: 1px solid #111; border-radius: 3px; box-shadow: 1px 1px 0 rgba(0,0,0,.25); pointer-events: none; }
.time { flex: none; font: 800 14px var(--f-dot); letter-spacing: .02em; min-width: 12ch; text-align: right; color: #222; }

/* steering */
.steer { flex: none; display: grid; gap: 8px; }
.steer__label { margin: 0; display: flex; gap: 8px; align-items: baseline; font: 700 12px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #555; }
.now__label { letter-spacing: .04em; text-transform: none; font-weight: 500; color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 7px; }
.chips:empty { display: none; }
.chip { min-height: 36px; padding: 6px 13px; border: 1px solid #111; border-radius: 999px; background: #fff; box-shadow: 0 2px 0 #888; font: 500 13px/1.25 var(--f-ui); color: #111; cursor: pointer; text-align: left; transition: transform .15s, background .15s, box-shadow .15s; }
.chip:hover { background: #111; color: #fff; }
.chip:active { transform: translateY(2px); box-shadow: none; }
.chip.is-match { background: #eaffd2; box-shadow: 0 0 0 2px var(--lime), 0 2px 0 #888; }
.chip--next { background: transparent; border-style: dashed; box-shadow: none; }
.is-waiting .chip:not(.chip--next) { animation: chipCall 2.4s ease-in-out infinite; }
.is-waiting .chip:nth-child(2) { animation-delay: .15s; } .is-waiting .chip:nth-child(3) { animation-delay: .3s; } .is-waiting .chip:nth-child(4) { animation-delay: .45s; }
@keyframes chipCall { 0%, 70%, 100% { box-shadow: 0 2px 0 #888; } 35% { box-shadow: 0 2px 0 #888, 0 0 0 3px rgba(255,169,70,.55); } }
.say { display: flex; align-items: center; gap: 0; min-height: 48px; border: 1px solid #111; background: #fff; box-shadow: inset 1px 1px 0 #aaa; }
.say:focus-within { outline: 2px solid var(--bondi); outline-offset: 1px; }
.say__flow { flex: none; width: 44px; display: grid; place-items: center; }
.say__flow img { image-rendering: pixelated; }
.say__input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; font: 500 16px var(--f-ui); color: #111; outline: none; padding: 0 4px; }
.say__input::placeholder { color: #888; }
.say__mic, .say__go { flex: none; height: 46px; border: 0; border-left: 1px solid #ccc; background: none; cursor: pointer; padding: 0 14px; font: 700 13px var(--f-ui); color: #111; }
.say__mic { width: 48px; display: grid; place-items: center; }
.say__mic.is-on { background: var(--strawberry); color: #fff; }
.say__go { background: #111; color: #fff; border-left-color: #111; padding: 0 18px; }
.say__go:hover { background: var(--bondi); }
.say.is-miss { animation: shake .4s; }
.say__msg { margin: -2px 0 0; min-height: 1.3em; font: 500 12px var(--f-ui); color: #8a2a1a; }
.say__msg:empty { display: none; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------------------------------------------------------------- v3: audience, chooser, map, monitor, stats */
/* the visitor is the audience now: the old studio stool stays empty */
.seat-you, .you-bubble { display: none !important; }

/* audience badge in the steer row */
.steer__label { flex-wrap: wrap; row-gap: 4px; }
.steer__aud { display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; padding: 2px 10px 2px 2px; border-radius: 999px; background: #141210; color: var(--paper); letter-spacing: .06em; text-transform: none; transition: background .25s; }
.steer__aud:empty { display: none; }
.steer__aud.is-picked { background: var(--flame); color: #111; }
.steer__av, .aud__av { flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2c6f7c, #0b2530); box-shadow: 0 0 0 1.5px var(--flame); }
.steer__av img, .aud__av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.steer__you { font: 600 12px var(--f-ui); }
.aud__blank { width: 40%; height: 40%; border-radius: 50%; background: rgba(243,238,226,.35); }
.pod.is-listening .steer__av, .pod.is-listening .aud__av { animation: avListen 1.6s ease-in-out infinite; }
@keyframes avListen { 50% { box-shadow: 0 0 0 1.5px var(--flame), 0 0 0 5px rgba(184,255,233,.35); } }
.steer__k { white-space: nowrap; }
/* mid-episode host switcher: one face per host on the caption bar, the current one lit */
.hostsw { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hostsw[hidden] { display: none; }
.hostsw::before { content: 'Switch host'; margin-right: 2px; font: 700 10px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #a59d8d; }
.hostsw__chip { position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: radial-gradient(90% 70% at 50% 35%, #3a2c22, #17120e); opacity: .5; filter: saturate(.6); transition: opacity .2s, filter .2s, transform .2s var(--ease-out), box-shadow .2s; }
.hostsw__chip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block; }
.hostsw__chip:hover, .hostsw__chip:focus-visible { opacity: 1; filter: none; transform: translateY(-2px); }
.hostsw__chip.is-on { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--flame); cursor: default; }
.hostsw.is-flash .hostsw__chip { animation: hostswFlash 1.2s var(--ease-out); }
@keyframes hostswFlash { 0%, 100% { transform: none; } 25% { transform: translateY(-4px); opacity: 1; filter: none; } }
/* host picker: reuses the audience picker's look */
.cast .hostpick__grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width: 720px; margin-left: auto; margin-right: auto; }
/* host busts: clean cut-outs on a panel, cut straight at the shoulders (not circles) */
.cast .hostpick__portrait { width: 100%; max-width: 160px; aspect-ratio: 1; border-radius: 10px; background: radial-gradient(90% 70% at 50% 35%, #3a2c22, #17120e); overflow: hidden; align-items: end; }
.cast .hostpick__portrait img { object-fit: contain; object-position: 50% 100%; }
.hostpick__card { position: relative; }
.hostpick__rec { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 3px 7px; border-radius: 999px; background: var(--flame); color: #111; font: 800 10px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.cast .hostpick__portrait { position: relative; }
.hostpick__wpm { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(14,12,10,.82); color: var(--paper); font: 600 10px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }
.hostpick__wpm b { font: 800 13px/1 var(--f-head); color: var(--flame); letter-spacing: 0; margin-right: 2px; }
.hostpick__style { margin-top: 4px; font: 400 12px/1.4 var(--f-ui); color: #e3d9c4; }
.hostpick__style b { color: var(--flame); font-weight: 700; }
.hostpick__kind { font: 700 11px/1.3 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--flame); }
.cast.hostpick { background: radial-gradient(80% 60% at 50% 0%, rgba(255,169,70,.18), transparent 70%), #0e0c0a; opacity: 1; transition: none; }
/* opaque from its first frame: the podcast window fades in under it, so a second fade here let the player show through */
.hostpick__where { margin: 6px 0 22px; font: 700 16px/1.3 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--flame); }
.cast.hostpick.is-closing { opacity: 0; transition: opacity .38s var(--ease-out); }
.hostpick__step { margin: 0 auto 18px; max-width: 900px; }
.hostpick__h { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 10px; font: 700 15px/1.2 var(--f-head); letter-spacing: .02em; }
.hostpick__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--flame); color: #111; font: 800 13px var(--f-ui); }
.hostpick__lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 720px; margin: 0 auto; }
.hostpick__len { display: grid; gap: 3px; align-content: start; padding: 12px 10px; min-height: 44px; border: 1px solid rgba(243,238,226,.18); border-radius: 12px; background: rgba(243,238,226,.04); color: var(--paper); cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.hostpick__len:hover { border-color: rgba(243,238,226,.45); }
.hostpick__len.is-picked { border-color: var(--flame); background: rgba(255,169,70,.12); box-shadow: 0 0 0 2px var(--flame); }
.hostpick__min { font: 800 22px/1.1 var(--f-head); }
.hostpick__lenk { font: 700 11px/1.3 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--flame); }
.hostpick__lenb { font: 400 12px/1.4 var(--f-ui); color: #b3aa98; }
.hostpick__sub { margin: 8px 0 0; font: 400 13px/1.5 var(--f-ui); color: #cfc6b4; }
.hostpick__name { margin-top: 4px; }
.hostpick__go { position: sticky; bottom: 0; z-index: 2; display: grid; justify-items: center; gap: 2px; margin: 0 -16px; padding: 14px 16px 10px; background: linear-gradient(to bottom, rgba(14,12,10,0), rgba(14,12,10,.96) 30%); }
.hostpick__go .cast__skip { margin-top: 2px; }

/* chips (during playback): minutes + one recommended */
.chip__m { margin-left: 7px; font: 800 12px var(--f-dot); color: #7a6a52; white-space: nowrap; }
.chip:hover .chip__m { color: var(--flame); }
.chip.is-rec { border-color: var(--ember); box-shadow: 0 2px 0 var(--ember); }
.chip.is-rec::before { content: "★ "; color: var(--ember); }
.chip--util { background: #f4f1ea; box-shadow: none; border-style: dashed; }
.chip.is-picked, .card.is-picked { background: var(--flame) !important; color: #111 !important; }
.pod.is-waiting .chips { display: none; }

/* the say field: "Heard: … → going to X" */
.say__caret { font: 800 22px var(--f-dot); color: var(--bondi); }
.say__msg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: #333; }
.say__msg--miss { color: #8a2a1a; }
.say__msg--go, .say__msg--queued { color: #111; }
.say__k { padding: 2px 6px; border-radius: 3px; background: #111; color: var(--crt-glow); font: 800 12px var(--f-dot); letter-spacing: .08em; text-transform: uppercase; }
.say__msg--go .say__k { background: var(--lime); color: #111; }
.say__msg--queued .say__k { background: var(--bondi); color: #fff; }
.say__link { min-height: 32px; padding: 0 6px; border: 0; background: none; font: 700 12px var(--f-ui); color: var(--bondi); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.say__bar { display: inline-block; width: 64px; height: 6px; border: 1px solid #111; background: linear-gradient(var(--lime), var(--lime)) 0 0 / 0 100% no-repeat #fff; animation: sayBar linear forwards; }
@keyframes sayBar { to { background-size: 100% 100%; } }

/* the chooser: over the picture at a fork (desktop), in the flow on phones */
.stage-col { position: relative; }
.chooser { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; overflow: auto; color: var(--paper);
  background: linear-gradient(rgba(14,12,10,.86), rgba(14,12,10,.95)), repeating-linear-gradient(0deg, rgba(184,255,233,.04) 0 1px, transparent 1px 3px);
  border: 1px solid #111; animation: chooserIn .28s var(--ease-out); scrollbar-width: thin; }
.chooser[hidden] { display: none; }
@keyframes chooserIn { from { opacity: 0; transform: translateY(6px); } }
.chooser.is-min { inset: auto 0 0 0; padding: 8px 12px; overflow: hidden; background: rgba(14,12,10,.92); }
.chooser.is-min > :not(.chooser__head) { display: none; }
.chooser.is-min .chooser__min span { display: inline-block; transform: rotate(180deg); }
.chooser__head { display: flex; align-items: center; gap: 10px; }
.chooser__min { margin-left: auto; width: 40px; height: 40px; flex: none; border: 1px solid rgba(243,238,226,.3); border-radius: 8px; background: none; color: var(--paper); cursor: pointer; font: 700 14px var(--f-ui); }
.aud { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aud .aud__av { width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--flame); }
.aud__txt { margin: 0; display: grid; gap: 1px; min-width: 0; }
.aud__k { font: 800 12px var(--f-dot); letter-spacing: .12em; text-transform: uppercase; color: var(--flame); }
.aud__n { font: 700 16px/1.15 var(--f-head); }
.aud__l { font: 400 12px var(--f-ui); color: #b3aa98; }
.chooser__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 178px), 1fr)); gap: 8px; }
.card__b, .card__in { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card { position: relative; display: grid; align-content: start; gap: 5px; min-height: 44px; padding: 10px 12px 11px; border: 1px solid rgba(243,238,226,.2); border-radius: 10px; background: rgba(243,238,226,.06); color: var(--paper); text-align: left; cursor: pointer; transition: transform .18s var(--ease-out), border-color .18s, background .18s; }
.card:hover, .card:focus-visible { transform: translateY(-2px); border-color: rgba(243,238,226,.6); background: rgba(243,238,226,.1); }
.card.is-rec { border-color: var(--flame); box-shadow: 0 0 0 1px var(--flame), 0 6px 18px rgba(255,169,70,.15); background: rgba(255,169,70,.1); }
.card.is-match { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.card.is-seen:not(.is-rec) { opacity: .72; }
.card__rec { justify-self: start; margin: -2px 0 1px; padding: 2px 7px; border-radius: 3px; background: var(--flame); color: #111; font: 800 12px var(--f-dot); letter-spacing: .1em; text-transform: uppercase; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__t { font: 700 15px/1.2 var(--f-head); letter-spacing: 0; }
.card__min { flex: none; font: 800 14px var(--f-dot); color: var(--crt-glow); white-space: nowrap; }
.card__b { font: 400 12px/1.4 var(--f-ui); color: #d8cfbd; }
.card__in { font: 500 12px/1.4 var(--f-ui); color: #a59d8d; }
.card__ink { color: var(--flame); }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { padding: 1px 6px; border: 1px solid rgba(184,255,233,.35); border-radius: 999px; font: 500 12px/1.4 var(--f-ui); color: var(--crt-glow); }
.tag--seen { border-color: rgba(243,238,226,.3); color: #b3aa98; }
.chooser__utils { display: flex; flex-wrap: wrap; gap: 6px; }
.ubtn { min-height: 36px; padding: 0 12px; border: 1px dashed rgba(243,238,226,.4); border-radius: 999px; background: none; color: var(--paper); font: 500 12px var(--f-ui); cursor: pointer; }
.ubtn:hover { border-style: solid; background: rgba(243,238,226,.1); }
.ubtn--link { border-style: solid; border-color: var(--flame); color: var(--flame); }
.ubtn.is-match { border-color: var(--lime); color: var(--lime); }
.chooser__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-top: 4px; border-top: 1px dashed rgba(243,238,226,.2); }
.chooser__all { font: 500 12px var(--f-ui); color: #8f877a; }

/* the recommended route */
.route { display: flex; align-items: center; gap: 8px; font: 500 12px var(--f-ui); }
.route__k { font: 800 12px var(--f-dot); letter-spacing: .1em; text-transform: uppercase; color: var(--flame); }
.route__dots { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.route__dot { position: relative; width: 22px; height: 22px; border: 0; background: none; cursor: pointer; padding: 0; }
.route__dot::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .7; }
.route__dot.is-done::before { background: var(--lime); border-color: var(--lime); opacity: 1; }
.route li + li .route__dot::after { content: ""; position: absolute; left: -6px; top: 10.5px; width: 12px; height: 1px; background: currentColor; opacity: .35; }
.route__t { color: inherit; opacity: .8; white-space: nowrap; }
.chooser .route { color: var(--paper); }
.side__route { margin: -2px 0 10px; color: #333; }
.side__route .route { flex-wrap: wrap; gap: 4px 8px; }
.side__route .route__k { color: var(--ember); }


/* the studio monitor (picture-in-picture): top-right, clear of both faces */
.mon { position: absolute; z-index: 6; top: 3.2%; right: 2%; width: 27%; display: flex; flex-direction: column; background: #0d0b09; border: 2px solid #1a1a1a; border-radius: 6px; box-shadow: 0 0 0 1px rgba(243,238,226,.35), 0 8px 22px rgba(0,0,0,.5); container-type: inline-size; cursor: zoom-in; color: var(--paper); }
.mon[hidden] { display: none; }
.mon.is-in { animation: monIn .32s var(--ease-out); }
@keyframes monIn { from { opacity: 0; transform: scale(.92); transform-origin: 100% 0; } }
.mon[data-size="full"] { inset: 2.5%; width: auto; cursor: default; z-index: 8; }
.mon__bar { flex: none; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 2px 0 7px; background: linear-gradient(#2a2622, #171411); border-bottom: 1px solid #000; border-radius: 4px 4px 0 0; }
.mon__led { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 6px var(--ember); flex: none; }
.mon__title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 800 12px var(--f-dot); letter-spacing: .08em; text-transform: uppercase; color: #d8cfbd; }
.mon__btn { position: relative; width: 22px; height: 20px; flex: none; display: grid; place-items: center; border: 0; background: none; color: #d8cfbd; cursor: pointer; }
.mon__btn::before { content: ""; position: absolute; inset: -10px -4px; }
.mon__btn:hover { color: var(--flame); }
.mon__ico { width: 10px; height: 10px; border: 1.5px solid currentColor; }
.mon__ico--big { border-radius: 1px; }
.mon__ico--small { width: 8px; height: 6px; transform: translateY(2px); }
.mon__ico--x { border: 0; position: relative; }
.mon__ico--x::before, .mon__ico--x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.mon__ico--x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mon__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; border-radius: 0 0 4px 4px; }
.mon[data-size="full"] .mon__screen { flex: 1; aspect-ratio: auto; }
.mon__video, .mon__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.mon__slides img { opacity: 0; transition: opacity .5s; }
.mon__slides img.is-on { opacity: 1; }
.mon__open { position: absolute; right: 8px; bottom: 8px; display: none; min-height: 32px; padding: 0 10px; border: 1px solid var(--paper); border-radius: 999px; background: rgba(14,12,10,.8); color: var(--paper); font: 600 12px var(--f-ui); cursor: pointer; }
.mon[data-size="full"] .mon__open { display: block; }
.mon[data-size="panel"] { position: relative; inset: auto; width: auto; top: auto; right: auto; margin-top: 8px; cursor: default; }
.mon[data-size="panel"] .mon__screen { aspect-ratio: auto; }
.mon[data-size="panel"] .mon__btn:first-of-type { display: none; }

/* stats dashboard: big Doto numerals, labels, a bar or a funnel */
.mon[data-type="stats"] .mon__screen { background: radial-gradient(120% 90% at 0% 0%, #1b2a2b, #0b0a09 70%); overflow: auto; scrollbar-width: thin; }
.mon[data-type="stats"]:not([data-size="full"]) .mon__screen { aspect-ratio: auto; }
/* stats: see the v4 block at the end of the file */

/* phones: the chooser sits in the flow, under the say field */
@media (max-width: 760px) {
  .chooser { position: static; inset: auto; padding: 12px; border-radius: 12px; overflow: visible; }
  .chooser.is-min { position: static; }
  .chooser__cards { grid-template-columns: 1fr; }
  .card { min-height: 56px; }
  .ubtn { min-height: 40px; }
  .route__dot { width: 26px; height: 40px; }
  .route__dot::before { left: 8px; top: 15px; }
  .route li + li .route__dot::after { top: 19.5px; left: -8px; width: 16px; }
  .sub { min-height: 40px; padding: 6px 10px; }
  .cmap__subs { margin-left: 8px; gap: 5px; }
  .mon { width: 30%; }
  .mon__bar { height: 24px; }
  .mon__btn { width: 26px; height: 24px; }
  .say__link { min-height: 40px; }
  .chap-drawer summary { display: flex; }
}
@media (min-width: 761px) and (max-height: 780px) {
  .chooser { padding: 10px 12px; gap: 8px; }
  .chooser__cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 6px; }
  .card { padding: 8px 10px 9px; gap: 3px; }
  .card__b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------------------------------------------------------------- cast picker */
.cast { position: absolute; inset: 0; z-index: 20; overflow: auto; background: radial-gradient(80% 60% at 50% 0%, rgba(255,169,70,.18), transparent 70%), rgba(14,12,10,.96); color: var(--paper); opacity: 0; transition: opacity .45s var(--ease-out); }
.cast.is-open { opacity: 1; }
.cast.is-closing { opacity: 0; }
.cast__inner { max-width: 900px; margin: 0 auto; padding: clamp(16px, 3vh, 34px) clamp(16px, 3vw, 32px) 24px; text-align: center; }
.cast__kicker { margin: 0 0 6px; font: 800 13px var(--f-dot); letter-spacing: .14em; color: var(--flame); text-transform: uppercase; }
.cast__title { margin: 0 0 10px; font: 800 clamp(32px, 4.6vw, 56px)/1 var(--f-head); letter-spacing: 0; }
.cast.is-open .cast__title { animation: rise .7s var(--ease-out) both .1s; }
.cast__lede { max-width: 60ch; margin: 0 auto 18px; font: 400 14px/1.55 var(--f-ui); color: #cfc6b4; }
.cast { container-type: inline-size; }
.cast__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@container (min-width: 860px) { .cast__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.cast__group { margin: 4px 0 8px; font: 700 12px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--flame); text-align: left; }
.cast__card { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 10px 8px 12px; border: 1px solid rgba(243,238,226,.18); border-radius: 12px; background: rgba(243,238,226,.04); color: var(--paper); cursor: pointer; transition: transform .25s var(--ease-out), border-color .2s, background .2s; }
.cast.is-open .cast__card { animation: rise .6s var(--ease-out) both; }
.cast.is-open .cast__card:nth-child(2) { animation-delay: .05s; } .cast.is-open .cast__card:nth-child(3) { animation-delay: .1s; } .cast.is-open .cast__card:nth-child(4) { animation-delay: .15s; } .cast.is-open .cast__card:nth-child(5) { animation-delay: .2s; } .cast.is-open .cast__card:nth-child(6) { animation-delay: .25s; } .cast.is-open .cast__card:nth-child(7) { animation-delay: .3s; }
.cast__card:hover { transform: translateY(-3px); border-color: rgba(243,238,226,.45); }
.cast__card.is-picked { border-color: var(--flame); background: rgba(255,169,70,.12); box-shadow: 0 0 0 2px var(--flame); }
.cast__card.is-busy { opacity: .6; }
.cast__portrait { width: 100%; max-width: 92px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2c6f7c, #0b2530); margin-bottom: 6px; }
.cast__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.cast__card--photo .cast__portrait { background: repeating-linear-gradient(45deg, rgba(243,238,226,.06) 0 6px, transparent 6px 12px), #1d1a17; border: 1px dashed rgba(243,238,226,.4); }
.cast__plus { font: 400 40px var(--f-head); color: var(--flame); }
.cast__label { font: 700 15px/1.2 var(--f-head); }
.cast__blurb { font: 400 12px/1.4 var(--f-ui); color: #b3aa98; }
.cast__form { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 12px; }
.cast__field { display: grid; gap: 6px; text-align: left; font: 500 12px var(--f-ui); color: #cfc6b4; flex: 1 1 260px; max-width: 360px; }
.cast__name { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(243,238,226,.4); border-radius: 8px; background: rgba(243,238,226,.06); color: var(--paper); font: 500 17px var(--f-ui); }
.win .ask .cast__name { background: #fff; color: #111; border-color: #111; border-radius: 0; }
.cast__name:focus { outline: 2px solid var(--flame); outline-offset: 1px; }
.cast__go { min-height: 48px; font-size: 15px; font-weight: 700; }
.cast .btn--primary { box-shadow: 0 0 0 2px #1a1714, 0 0 0 3.5px var(--flame); background: var(--flame); border-color: #111; }
.cast__skip { margin-top: 14px; min-height: 40px; border: 0; background: none; color: #a59d8d; font: 500 13px var(--f-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- demos */
.win--demo .win__body { padding: 0; display: flex; flex-direction: column; }
.demo__frame-wrap { position: relative; flex: 1; min-height: 280px; background: #fff; }
.demo__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo__loading { position: absolute; inset: 0; display: grid; place-items: center; background: #04232b; color: var(--crt-glow); font: 24px var(--f-term); transition: opacity .5s; }
.demo__loading.is-done { opacity: 0; pointer-events: none; }
.demo__hint { flex: none; margin: 0; padding: 8px 12px; font: 400 12px var(--f-ui); color: #555; border-top: 1px solid var(--plat-4); }
.demo__hint a { color: #111; font-weight: 600; }
.demo__qr { display: grid; grid-template-columns: 168px 1fr; gap: 18px; padding: 18px; align-items: center; }
.demo__qr-code { background: #fff; padding: 6px; border: 1px solid #111; }
.demo__qr-code svg { display: block; width: 100%; height: auto; }
.demo__qr-head { margin: 0 0 6px; font: 700 18px/1.2 var(--f-head); }
.demo__qr-url { margin: 0 0 12px; font: 800 15px var(--f-dot); }
.demo__media { margin: 0; padding: 12px; }
.demo__media img, .demo__media video { display: block; width: 100%; height: auto; border: 1px solid #111; }
.demo__media figcaption { margin-top: 8px; font-size: 12px; color: #555; }
.demo__link { padding: 18px; display: grid; gap: 12px; justify-items: start; }
.demo__link p { margin: 0; }

/* ---------------------------------------------------------------- tiny apps */
.chat { display: grid; gap: 10px; }
.chat__log { height: 200px; overflow: auto; padding: 10px; background: #fff; border: 1px solid #111; box-shadow: inset 1px 1px 0 #aaa; display: flex; flex-direction: column; gap: 8px; }
.chat__log p { margin: 0; max-width: 85%; padding: 7px 10px; border-radius: 10px; font-size: 13px; }
.chat__bot { background: #eee; border: 1px solid #ccc; border-left: 3px solid var(--accent); align-self: flex-start; }
.chat__me { background: #111; color: #fff; align-self: flex-end; }
.chat__bot.is-thinking::after { content: "…"; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat__form { display: flex; gap: 8px; align-items: center; }
.chat__form .btn--primary { margin: 3px 3px 3px 0; }
.code { margin: 0; min-height: 190px; padding: 12px; background: #0f1a17; color: #c8f7dc; font: 400 13px/1.55 var(--f-ui); border: 1px solid #111; white-space: pre-wrap; }
.code__ghost { color: #4f6d62; }
.code__ghost:not(:empty)::after { content: "  ⇥"; color: #2b4a40; }
.code__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #555; }
.paint { display: block; width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto; image-rendering: pixelated; border: 1px solid #111; cursor: crosshair; touch-action: none; }
.paint__pal { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.swatch { width: 30px; height: 30px; border: 1px solid #111; cursor: pointer; }
.swatch.is-on { outline: 2px solid #111; outline-offset: 2px; }
.paint__row { display: flex; gap: 6px; justify-content: center; }
.paint__status { font-size: 12px; color: #555; text-align: center; margin: 8px 0 0; min-height: 2.6em; }
.results { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.results li { padding: 8px 10px; background: #fff; border: 1px solid #bbb; font-size: 13px; }
.movie { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #111; background: #000; }
.movie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.movie--dolly img { animation: dolly 3s var(--ease-io) both; }
.movie--crash img { animation: crash 1.2s cubic-bezier(.8,0,.2,1) both; }
.movie--orbit img { animation: orbit 4s var(--ease-io) both; }
@keyframes dolly { to { transform: scale(1.35) translateY(4%); } }
@keyframes crash { 60% { transform: scale(2.2) translate(-8%, 2%); filter: blur(2px); } to { transform: scale(2) translate(-8%, 2%); } }
@keyframes orbit { 0% { transform: scale(1.2) translateX(6%) rotate(-1deg); } 100% { transform: scale(1.2) translateX(-6%) rotate(1deg); } }
.notes { margin: 8px 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.notes .is-new { color: var(--bondi); animation: wordIn .4s var(--ease-out); }
.todo { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.todo label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.todo input { width: 18px; height: 18px; accent-color: var(--bondi); }
.todo input:checked + span { text-decoration: line-through; color: #777; }
.board { position: relative; height: 220px; background: #fff linear-gradient(#eee 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, #eee 1px, transparent 1px) 0 0 / 16px 16px; border: 1px solid #111; cursor: crosshair; touch-action: none; overflow: hidden; }
.board .shape { position: absolute; border: 1px solid #111; opacity: .9; }
.finder { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.finder--list { grid-template-columns: 1fr; }
.finder__item { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 0; background: none; font: 500 12px/1.25 var(--f-ui); text-align: center; cursor: pointer; border-radius: 4px; }
.finder--list .finder__item { flex-direction: row; text-align: left; padding: 6px; }
.finder__item:hover:not(.is-static) { background: rgba(10,143,168,.15); }
.finder__item img { image-rendering: pixelated; }
.finder__meta { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--plat-4); font-size: 12px; color: #555; }
.simpletext { background: #fff; border: 1px solid #111; padding: 14px 16px; font: 400 13.5px/1.6 var(--f-ui); }
.simpletext p { margin: 0 0 10px; }
.simpletext p:first-child { font-weight: 700; letter-spacing: .1em; }

/* Wispr Style Guide.cwk: a word-processor page (ruler, page, status bar) set in Wispr's own type and colours */
.win--guide .win__body { padding: 0; display: flex; flex-direction: column; min-height: 0; }
.guide__ruler { flex: none; height: 18px; border-bottom: 1px solid var(--plat-4); background: repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 8px) 12px 12px / calc(100% - 24px) 5px no-repeat, repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 64px) 12px 4px / calc(100% - 24px) 13px no-repeat, var(--plat-1, #eee); }
.guide__page { flex: 1; min-height: 0; overflow-y: auto; margin: 8px; padding: 26px 30px 22px; background: #ffffeb; color: #1a1a1a; border: 1px solid #111; box-shadow: 2px 2px 0 rgba(0,0,0,.3); font: 400 13.5px/1.55 Figtree, var(--f-ui); }
.guide__page p, .guide__page ul { margin: 0; }
.guide__kicker { font: 500 10.5px/1.4 'Spline Sans Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #034f46; }
.guide__title { margin: 6px 0 8px; font: 400 34px/1.05 'EB Garamond', Georgia, serif; letter-spacing: -.01em; }
.guide__lede { color: #444; max-width: 44ch; }
.guide__sec { margin-top: 22px; padding-top: 12px; border-top: 1px solid rgba(26,26,26,.3); display: grid; gap: 10px; }
.guide__h { margin: 0; display: flex; align-items: baseline; gap: 10px; font: 500 20px/1.2 'EB Garamond', Georgia, serif; }
.guide__h span { font: 500 10.5px 'Spline Sans Mono', ui-monospace, monospace; color: #666; }
.guide__list { padding-left: 18px; display: grid; gap: 4px; }
.guide__marks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide__mark { display: grid; place-items: center; height: 74px; border: 1px solid rgba(26,26,26,.3); font: 500 34px/1 'EB Garamond', Georgia, serif; color: #1a1a1a; }
.guide__mark.is-dark { background: #1a1a1a; color: #ffffeb; border-color: #1a1a1a; }
.guide__swatches { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.guide__swatches li { display: grid; grid-template-columns: 30px auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline; }
.guide__swatches i { grid-row: span 2; align-self: center; width: 30px; height: 30px; border: 1px solid #1a1a1a; }
.guide__swatches b { font-weight: 600; }
.guide__swatches code { justify-self: end; font: 400 11px 'Spline Sans Mono', ui-monospace, monospace; color: #666; }
.guide__swatches span { grid-column: 2 / -1; font-size: 12px; color: #555; }
.guide__note, .guide__spec { font-size: 12px; color: #555; }
.guide__serif { font: 400 28px/1.15 'EB Garamond', Georgia, serif; }
.guide__sans { font: 600 18px/1.3 Figtree, var(--f-ui); }
.guide__dd { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide__do, .guide__dont { margin-bottom: 4px !important; font: 600 11px 'Spline Sans Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.guide__do { color: #034f46; }
.guide__dont { color: #c2401f; }
.guide__foot { margin-top: 24px !important; font-size: 11px; color: #777; }
.guide__status { flex: none; display: flex; justify-content: space-between; padding: 2px 10px 4px; border-top: 1px solid var(--plat-4); font: 400 11px var(--f-ui); color: #444; }
@media (max-width: 760px) {
  .guide__page { margin: 0; border: 0; box-shadow: none; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .guide__swatches, .guide__dd { grid-template-columns: minmax(0, 1fr); }
  .guide__ruler, .guide__status { display: none; }
}
.about { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.about img { image-rendering: pixelated; }
.about__title { margin: 0 0 6px; font: 800 20px var(--f-head); }
.win--wispr .win__body { padding: 0 0 16px; }
.wf > *:not(.wf__band) { margin-left: 16px; margin-right: 16px; }
.wf__band { height: 12px; background: linear-gradient(var(--lime) 0 17%, #ffd23f 17% 34%, var(--tangerine) 34% 50%, var(--strawberry) 50% 67%, var(--grape) 67% 84%, var(--bondi) 84%); }
.wf__title { margin-top: 14px; margin-bottom: 4px; font: 800 20px var(--f-head); }
.wf__lede { margin-top: 0; font-size: 13px; color: #444; }
.wf__row { display: flex; justify-content: flex-end; margin-top: 8px; }
.wf__out { min-height: 3em; padding: 10px 12px; background: #141210; color: var(--paper); font: 600 16px/1.4 var(--f-head); border-left: 4px solid var(--flame); }
.wf__out:empty { display: none; }
.wf__out.is-messy { font: 400 18px/1.35 var(--f-hand); color: #e8dcc3; }
.wf__fine { font-size: 12px; color: #666; }

/* end card */
.win--end .win__body { padding: 0; }
.end { padding: 26px 24px 22px; background: radial-gradient(90% 80% at 100% 0%, rgba(255,169,70,.22), transparent 60%), var(--paper); }
.end__kicker { margin: 0 0 6px; font: 800 13px var(--f-dot); letter-spacing: .14em; text-transform: uppercase; color: var(--bondi); }
.end__title { margin: 0 0 10px; font: 800 clamp(32px, 4vw, 44px)/1 var(--f-head); letter-spacing: 0; color: #111; }
.end__lede { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: #333; }
.end__links { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.end__links a { color: #111; font-weight: 600; text-underline-offset: 3px; }
.end__row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,.15); }


/* ---------------------------------------------------------------- work app */
.win--work .win__body { padding: 0; display: flex; }
.work { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; }
.work__loading { padding: 16px; font: 22px var(--f-term); color: #333; }
.work__nav { min-height: 0; overflow: auto; padding: 12px; border-right: 1px solid var(--plat-4); background: var(--plat-1); }
.work__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.work__item { width: 100%; display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; min-height: 56px; padding: 6px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; color: #111; }
.work__item:hover { background: rgba(10,143,168,.12); }
.work__item[aria-selected="true"] { background: #111; color: #fff; }
.work__thumb { width: 56px; height: 42px; border: 1px solid #111; background: #fff; overflow: hidden; display: grid; place-items: center; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__thumb img.is-icon { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.work__meta { min-width: 0; display: grid; gap: 2px; }
.work__name { font: 700 13px/1.25 var(--f-ui); }
.work__line { font: 400 12px/1.35 var(--f-ui); color: inherit; opacity: .7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work__pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.work__back { display: none; }
.work__detail { flex: 1; min-height: 0; overflow: auto; padding: 18px 20px 22px; outline: none; display: grid; gap: 14px; align-content: start; }
.work__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.work__title { margin: 0; font: 800 clamp(22px, 2.4vw, 30px)/1.05 var(--f-head); letter-spacing: 0; }
.work__status { font: 800 12px/1 var(--f-dot); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border: 1px solid #111; border-radius: 3px; background: #fff; }
.work__one { margin: 0; font: 400 14px/1.5 var(--f-ui); color: #333; }
.work__video { width: 100%; background: #000; border: 1px solid #111; display: block; aspect-ratio: 16 / 9; }
.work__embed { position: relative; aspect-ratio: 16 / 10; border: 1px solid #111; background: #fff repeating-linear-gradient(45deg, #f4f4f4 0 10px, #fff 10px 20px); display: grid; place-items: center; }
.work__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.work__live .small { margin-bottom: 6px; }
.work__explainer { font: 400 13.5px/1.6 var(--f-ui); color: #222; }
.work__explainer p { margin: 0 0 10px; }
.work__links { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery { margin: 0; }
.gallery__frame { border: 1px solid #111; background: #111; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.gallery__frame img { width: 100%; height: 100%; object-fit: contain; }
.gallery__bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.gallery__count { font: 800 13px var(--f-dot); min-width: 5ch; text-align: center; }
.mockup { border: 1px solid #111; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.mockup__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: linear-gradient(#f2f2f2, #d8d8d8); border-bottom: 1px solid #111; }
.mockup__bar i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #111; background: #fff; }
.mockup__bar span { flex: 1; margin-left: 8px; padding: 2px 8px; background: #fff; border: 1px solid #999; font: 500 12px var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup img { display: block; width: 100%; height: auto; }
.mockup--phone { width: min(260px, 70%); margin: 0 auto; border: 8px solid #111; border-radius: 28px; }
.win--link .link__title { margin: 4px 0 0; }
.win--link .row { margin-top: 14px; }
.link__url { font-size: 12.5px; }
@media (max-width: 760px) {
  .work { grid-template-columns: 1fr; }
  .work__pane { display: none; }
  .work.is-detail .work__nav { display: none; }
  .work.is-detail .work__pane { display: flex; }
  .work__back { display: inline-flex; align-self: flex-start; margin: 10px 12px 0; min-height: 40px; }
  .work__item { min-height: 64px; }
}

/* ---------------------------------------------------------------- mid widths + short screens */
@media (min-width: 761px) and (max-width: 1060px) {
  .pod { grid-template-columns: minmax(0, 1fr); }
  .pod__side { display: none; }
  .chap-drawer { display: block; flex: none; border: 1px solid var(--plat-4); background: var(--plat-1); }
  .chap-drawer summary { min-height: 34px; display: flex; align-items: center; padding: 0 12px; font: 700 12px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
  .chap-drawer__body { padding: 0 6px 8px; max-height: 40vh; overflow: auto; }
}
@media (min-width: 761px) and (max-height: 780px) {
  .pod__main { gap: 8px; padding: 10px 12px 12px; }
  .stage-box { min-height: 150px; }
  .stage-col { width: min(100cqw, max(160px, calc((100cqh - 96px) * 16 / 9))); }
  .lower3 { min-height: 80px; padding: 7px 14px 8px; }
  .lower3__sub { max-height: calc(1.36em * 2); }
  .lower3__sub.is-messy { max-height: calc(1.3em * 2); }
  .side__hint, .steer__label { display: none; }
  .tbtn { width: 34px; height: 34px; } .tbtn--play { width: 42px; height: 36px; }
  .scrub { height: 34px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .chip { flex: none; min-height: 34px; white-space: nowrap; }
  .say { min-height: 42px; } .say__input, .say__mic, .say__go { height: 40px; }
  .transport .chap-drawer { position: relative; display: block; border: 1px solid #111; border-radius: 6px; background: linear-gradient(#fafafa, #d0d0d0); }
  .transport .chap-drawer summary { min-height: 32px; padding: 0 10px; font-size: 12px; }
  .transport .chap-drawer[open] .chap-drawer__body { position: absolute; z-index: 30; bottom: calc(100% + 6px); right: 0; width: 280px; max-height: 60vh; overflow: auto; background: var(--plat-1); border: 1px solid #111; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
}
@media (min-width: 1061px) and (max-height: 780px) {
  .transport .chap-drawer { display: none; }
}

/* ---------------------------------------------------------------- narrow / portrait phones */
@media (max-width: 760px) {
  .crt__tube { border-radius: 12px; }
  .menubar { height: 40px; font-size: 12px; padding: 0 6px; }
  .menu:nth-child(3), .menu:nth-child(6), .menubar__app { display: none; }
  .menu__btn { min-width: 40px; justify-content: center; padding: 0 8px; }
  .menubar__sound { width: 40px; }
  .menu__list { min-width: 200px; }
  .menu__item { padding: 10px 16px; font-size: 14px; }
  .desk__area { top: 40px; }
  /* one home screen: every icon in a single grid that scrolls as a whole, like a phone */
  .desk__home { display: grid; position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 8px 4px; padding: 14px 10px calc(24px + env(safe-area-inset-bottom)); transition: padding-top .45s var(--ease-out); }
  .desk__home > .icons { display: contents; }
  .desk__home .icons li { order: 2; }   /* phone: the show, then the work folders, then the system and toys, Trash last */
  .desk__home .icons li.is-offthecv { order: 0; }
  .desk__home .icons--proj li { order: 1; }
  .desk__home .icons li.is-trash { order: 3; }
  .desk__area.has-island .desk__home { padding-top: 64px; }
  .icon { position: relative; width: 100%; height: 88px; }
  .desk__home .icon .icon__label { max-width: 100%; padding: 0 2px; background: none; color: #fff; font: 600 11.5px/1.25 var(--f-ui); text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.6); }
  .desk__home .icon.is-selected .icon__label { background: none; color: #fff; }
  .desk__home .icon--wispr .icon__label { background: linear-gradient(90deg, var(--lime), #ffd23f, var(--tangerine), var(--strawberry), var(--grape), var(--bondi)); color: #111; padding: 0 5px; border-radius: 3px; text-shadow: none; }

  /* installing: the icon is the installer, filling up like an app downloading */
  .desk__home .icon.is-installing .icon__label::after { content: none; }
  .desk__home .icon.is-installing img { opacity: 1; filter: grayscale(.6) brightness(.8); }
  .icon__dl { position: absolute; top: 2px; left: 50%; width: 48px; height: 48px; margin-left: -24px; border-radius: 12px; background: rgba(0,0,0,.45); display: grid; place-items: center; pointer-events: none; }
  .icon__dl::before { content: ""; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: conic-gradient(rgba(255,255,255,.9) calc(var(--p, 0) * 1turn), transparent 0); box-sizing: border-box; box-shadow: inset 0 0 0 2px rgba(0,0,0,.45); transition: background .3s; }
  .icon__badge { position: absolute; top: -3px; left: calc(50% + 14px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b30; color: #fff; font: 700 12px/22px var(--f-ui); text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.4); pointer-events: none; }

  /* the jukebox hangs off the menu bar as a small black pill: what's playing, the time, play/pause */
  .win.win--island { left: 50% !important; top: 8px !important; width: min(340px, calc(100% - 20px)) !important; max-height: none; border: 0; border-radius: 22px; background: #000; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.55); transform: translate(-50%, -64px) scale(.6); transform-origin: 50% 0; transition: opacity .3s var(--ease-out), transform .5s cubic-bezier(.2, 1.25, .4, 1); }
  .win.win--island.is-open { transform: translate(-50%, 0); }
  .win.win--island.is-closing { transform: translate(-50%, -64px) scale(.6); opacity: 0; }
  .win--island .win__bar, .win--island .juke__ctrl, .win--island .juke__status, .win--island .juke__state, .win--island .juke__kbps { display: none; }
  .win--island .juke { grid-template-columns: minmax(0, 1fr); }
  .win--island .win__body { padding: 0; background: #000; box-shadow: none; overflow: hidden; }
  .win--island .juke__lcd { margin: 0; padding: 7px 8px 7px 16px; border: 0; background: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
  .win--island .juke__row { display: contents; }
  .win--island .juke__bars { order: 0; flex: none; width: 26px; height: 18px; gap: 1px; }
  .win--island .juke__bars i:nth-child(n+7) { display: none; }
  .win--island .juke__marquee { order: 1; flex: 1; min-width: 0; font-size: 12px; }
  .win--island .juke__time { order: 2; font-size: 20px; min-width: 0; }
  .win--island .juke__toggle { order: 3; display: grid; }
  .win--island .juke__skip { order: 4; margin-left: -4px; font-size: 13px; }

  .win--sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; max-height: calc(100% - 6px); border-radius: 14px 14px 0 0; transform: translateY(40px); box-shadow: 0 -12px 40px rgba(0,0,0,.45); }
  .win--sheet.is-open { transform: none; }
  .win--sheet .win__bar { height: 40px; cursor: default; }
  .win--sheet .win__stripes { top: 14px; }
  .win--sheet .win__close { width: 22px; height: 22px; }
  .win--sheet .win__title { font-size: 13px; line-height: 40px; }
  .win--sheet .win__tab { line-height: 26px; }
  .win--podcast.win--sheet { height: calc(100% - 4px) !important; max-height: none; }
  .win--modal { left: 12px !important; right: 12px; width: auto !important; }

  .pod { grid-template-columns: minmax(0, 1fr); }
  .pod__side { display: none; }
  .win--sheet { max-width: 100%; }
  .pod__main { padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); gap: 10px; }
  .stage-box { flex: none; min-height: 0; container-type: normal; display: block; }
  .stage-col { width: 100%; }
  .stage { width: 100%; }
  .lower3 { height: auto; min-height: 96px; overflow: visible; }
  .lower3__sub { font-size: 16px; max-height: calc(1.3em * 5); }
  .lower3__sub.is-scroll.is-more { -webkit-mask-image: linear-gradient(#000 calc(100% - .5em), rgba(0,0,0,.35)); mask-image: linear-gradient(#000 calc(100% - .5em), rgba(0,0,0,.35)); }
.lower3__sub.is-long { font-size: clamp(14px, 1.1vw, 17px); }
.lower3__sub.is-messy { font-size: 18px; max-height: calc(1.3em * 5); }
  .transport { gap: 6px; }
  .tbtn { width: 44px; height: 44px; }
  .time { min-width: 0; font-size: 12px; }
  .chip { min-height: 44px; font-size: 13.5px; }
  .chap-drawer { display: block; border: 1px solid var(--plat-4); background: var(--plat-1); }
  .chap-drawer summary { min-height: 44px; display: flex; align-items: center; padding: 0 12px; font: 700 12px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
  .chap-drawer__body { padding: 0 6px 8px; }
  .chap { min-height: 44px; }
  .cast__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cast__portrait { max-width: 96px; }
  .cast .hostpick__grid { grid-template-columns: 1fr; gap: 8px; }
  .hostsw__chip { width: 40px; height: 40px; }
  .hostpick__wpm { left: 0; right: 0; bottom: 0; padding: 2px 0; border-radius: 0; text-align: center; font-size: 8px; }
  .hostpick__wpm b { font-size: 10px; }
  .hostsw::before { display: none; }
  .lower3__name { white-space: nowrap; }
  .hostpick__lens { grid-template-columns: 1fr; gap: 8px; }
  .hostpick__len { grid-template-columns: 76px 1fr; text-align: left; align-items: center; column-gap: 10px; }
  .hostpick__len .hostpick__min { grid-row: 1 / span 2; font-size: 18px; }
  .hostpick__card { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 12px; padding: 10px 12px; }
  .hostpick__card .hostpick__portrait { grid-row: 1 / span 4; width: 72px; margin: 0; }
  .demo__qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .demo__qr-code { width: min(240px, 70vw); }
  .demo__frame-wrap { min-height: 60vh; }
  .you-bubble { display: none; }
  .btn, .btn--sm { min-height: 40px; }
  .btn--sm { min-width: 40px; }
  .win__tab { display: inline-flex; align-items: center; min-height: 32px; position: relative; }
  .win__tab::before { content: ""; position: absolute; inset: -6px -2px; }
  .demo__hint a { display: inline-block; padding: 12px 0; }
  .end__links a { display: inline-block; padding: 12px 0; }
  .field { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 760px) { .steer__k { display: none; } .steer__label { align-items: center; } }
@media (max-width: 760px) { .mon:not([data-size="full"]):not([data-size="panel"]) .mon__btn:first-of-type { display: none; } }
.ubtn.is-rec { border: 1px solid var(--flame); background: rgba(255,169,70,.14); color: var(--paper); }
.ubtn.is-rec::before { content: "★ Recommended · "; color: var(--flame); font-weight: 700; }

/* ================================================================ v4: calmer map, one obvious next, full-then-PiP monitor */

/* ---- the episode map: chapter rows, minutes right, the current chapter open */
.pod__side { padding: 16px 12px 16px 14px; }
.side__title { margin: 0 0 8px; }
.side__route { margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--plat-3); border-radius: 6px; background: #fff; color: #333; }
.side__route .route { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; }
.side__route .route__k { flex: 1 0 100%; color: var(--ember); font-size: 12px; white-space: nowrap; }
.side__route .route__t { font: 500 12px var(--f-ui); color: #666; opacity: 1; }
.side__route .route__dots { margin-left: -6px; }
.chap-drawer summary { gap: 10px; justify-content: space-between; }
.chap-drawer__meta { font: 500 12px var(--f-ui); letter-spacing: 0; text-transform: none; color: #666; }
.side__route .route__dot { color: #777; }
.chapters.cmap { display: grid; gap: 0; border-top: 1px solid var(--plat-3); }
.cmap__ch { display: block; border-bottom: 1px solid var(--plat-2); }
.cmap .chap { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 8px; column-gap: 7px; align-items: baseline; min-height: 40px; padding: 10px 4px 10px 6px; border-radius: 0; background: none; color: #222; font: 600 13px/1.3 var(--f-head); letter-spacing: 0; }
.cmap .chap:hover { background: rgba(10,143,168,.08); }
.cmap .chap::after { content: ""; font: 400 12px var(--f-ui); color: #999; transition: transform .2s var(--ease-out); justify-self: end; }
.cmap .chap[aria-expanded]::after { content: "›"; }
.cmap .chap[aria-expanded="true"]::after { transform: rotate(90deg); }
.cmap .chap__n { font: 500 12px var(--f-ui); color: #9a9a9a; font-variant-numeric: tabular-nums; }
.cmap .chap__t { min-width: 0; text-wrap: balance; overflow-wrap: normal; hyphens: none; }
.cmap .chap__m, .cmap .sub__m { font: 500 12px var(--f-ui); color: #777; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nobr { white-space: nowrap; }
.chap__route { display: inline-block; width: 6px; height: 6px; margin: 0 0 1px 7px; border-radius: 50%; background: var(--ember); vertical-align: middle; opacity: .75; }
.cmap__ch.is-visited > .chap .chap__n { color: var(--bondi); }
.cmap__ch.is-current { background: #fff; box-shadow: inset 3px 0 0 var(--flame); }
.cmap__ch.is-current > .chap { background: none; color: #111; font-weight: 800; }
.cmap__ch.is-current > .chap .chap__n { color: var(--ember); font-weight: 700; }
.cmap__ch.is-current > .chap .chap__m { color: #333; }
.cmap__ch.is-open:not(.is-current) { background: rgba(255,255,255,.55); }
.chap__now { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 6px 1px 5px; border-radius: 999px; background: #111; color: #fff; font: 700 10px/1.5 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.chap__now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--flame); animation: chap-now 1.4s ease-in-out infinite; }
@keyframes chap-now { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .chap__now::before { animation: none; } }
.cmap__ch.is-visited:not(.is-current) > .chap .chap__n { font-weight: 800; }
.sub.is-now { background: #fff; color: #111; font-weight: 700; border-left-color: var(--flame); box-shadow: inset 2px 0 0 var(--flame); }
.sub.is-now .sub__dot { background: var(--flame); border-color: var(--flame); }
.cmap__subs { margin: -4px 0 0; padding: 0 0 10px 31px; list-style: none; display: grid; gap: 0; }
.cmap__subs li { display: block; }
.sub { width: 100%; display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; column-gap: 9px; align-items: center; min-height: 30px; padding: 5px 6px 5px 8px; border: 0; border-left: 1px solid var(--plat-3); border-radius: 0; background: none; color: #4a4a4a; font: 400 12.5px/1.3 var(--f-head); text-align: left; cursor: pointer; }
.sub:hover { background: rgba(10,143,168,.08); color: #111; }
.sub__t { min-width: 0; text-wrap: pretty; }
.sub__dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #aaa; box-sizing: border-box; align-self: center; }
.sub.is-rec .sub__dot { border-color: var(--ember); box-shadow: 0 0 0 1px rgba(255,108,76,.2); }
.sub.is-visited .sub__dot { background: var(--bondi); border-color: var(--bondi); }
.sub.is-visited { color: #555; }
.sub.is-now { border-left: 3px solid var(--flame); padding-left: 6px; background: rgba(255,169,70,.16); color: #111; font-weight: 700; }
.sub.is-now .sub__dot { background: var(--flame); border-color: var(--flame); }
.sub.is-rec .sub__t::before { content: none; }
.side__legend { margin: 12px 2px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 400 12px var(--f-ui); color: #666; }
.side__legend span { display: inline-flex; align-items: center; gap: 6px; }
.side__legend .sub__dot { display: inline-block; }
.side__legend .is-heard { background: var(--bondi); border-color: var(--bondi); }
.side__legend .is-route { border-color: var(--ember); }
.side__hint { margin-top: 10px; }
.chap-drawer__body .side__route { margin: 6px 4px 8px; }

/* ---- during an answer: one quiet "Up next" */
.chip--up, .chip--next { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; }
.chip__k { font: 800 12px var(--f-dot); letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.chip--up:hover .chip__k, .chip--next:hover .chip__k { color: var(--flame); }

/* ---- the chooser: one primary, two alternatives, More… */
.chooser { gap: 12px; padding: 14px 16px; background: linear-gradient(rgba(14,12,10,.9), rgba(14,12,10,.97)), repeating-linear-gradient(0deg, rgba(184,255,233,.04) 0 1px, transparent 1px 3px); }
.chooser__acts { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chooser__acts + .chooser__min { margin-left: 0; }
.act { min-height: 32px; padding: 0 12px; border: 1px solid rgba(243,238,226,.35); border-radius: 999px; background: none; color: var(--paper); font: 500 12px var(--f-ui); cursor: pointer; white-space: nowrap; }
.act:hover { background: rgba(243,238,226,.1); }
.act--link { border-color: var(--flame); color: var(--flame); }
.prim-wrap { display: grid; gap: 6px; }
.prim { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: center; padding: 14px 16px 15px 18px; border: 0; border-radius: 12px; background: linear-gradient(#ffbd66, var(--flame)); color: #111; text-align: left; cursor: pointer; box-shadow: 0 3px 0 #b55d1c, 0 10px 26px rgba(255,169,70,.22); transition: transform .15s, box-shadow .15s, filter .15s; }
.prim > * { grid-column: 1; position: relative; }
.prim:hover { filter: brightness(1.05); }
.prim:active { transform: translateY(2px); box-shadow: 0 1px 0 #b55d1c; }
.prim:focus-visible { outline: 2px solid var(--crt-glow); outline-offset: 3px; }
.prim.is-match { box-shadow: 0 0 0 3px var(--lime), 0 3px 0 #b55d1c; }
.prim.is-picked { filter: brightness(1.12); }
.prim__k { display: flex; align-items: center; gap: 8px; font: 800 12px var(--f-dot); letter-spacing: .12em; text-transform: uppercase; }
.prim__rec { padding: 1px 6px; border-radius: 3px; background: #111; color: var(--flame); }
.prim__head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.prim__t { font: 800 clamp(20px, 2.6cqw, 28px)/1.1 var(--f-head); letter-spacing: 0; }
.prim__min { font: 800 15px var(--f-dot); white-space: nowrap; }
.prim__b { font: 400 13px/1.4 var(--f-ui); color: #3b2614; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prim .card__tags .tag { border-color: rgba(17,17,17,.35); color: #111; }
.prim__go { grid-column: 2; grid-row: 1 / span 4; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #111; color: var(--flame); }
.prim__go .ico { width: 18px; height: 18px; }
.prim__fill { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: #111; opacity: 0; transform-origin: 0 50%; transform: scaleX(0); }
.prim__fill.is-on { opacity: .8; animation: primFill 8s linear forwards; }
@keyframes primFill { to { transform: scaleX(1); } }
.prim__auto { min-height: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font: 500 12px var(--f-ui); color: #d8cfbd; }
.prim__n { font: 800 14px var(--f-dot); letter-spacing: .04em; color: var(--crt-glow); }
.prim__n.is-off { font: 500 12px var(--f-ui); letter-spacing: 0; color: #9c9384; }
.prim__stay { min-height: 28px; padding: 0 12px; border: 1px solid rgba(243,238,226,.45); border-radius: 999px; background: none; color: var(--paper); font: 600 12px var(--f-ui); cursor: pointer; }
.prim__stay:hover { background: rgba(243,238,226,.12); }
.chooser__or { font: 800 12px var(--f-dot); letter-spacing: .12em; text-transform: uppercase; color: #9c9384; }
p.chooser__or { margin: 2px 0 -4px; }
.chooser__alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
.chooser__doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); gap: 6px; }
.card--alt, .card--door { padding: 9px 11px 10px; gap: 4px; border-radius: 9px; }
.card--alt .card__t, .card--door .card__t { font-size: 14px; }
.card--alt .card__min, .card--door .card__min { font-size: 13px; }
.card--door .card__b { -webkit-line-clamp: 1; }
.chooser__foot { align-items: flex-start; }
.more { flex: 1 1 260px; min-width: 0; display: grid; gap: 6px; }
.more__btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 2px; border: 0; background: none; color: #b3aa98; font: 600 12px var(--f-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.more__btn:hover, .more__btn.is-open { color: var(--paper); }
.more__n { min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgba(243,238,226,.14); font: 800 12px/18px var(--f-dot); text-align: center; text-decoration: none; }
.more__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.more__list[hidden] { display: none; }
.more__item { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 12px; border: 1px solid rgba(243,238,226,.25); border-radius: 999px; background: none; color: var(--paper); font: 500 12px/1.2 var(--f-ui); text-align: left; cursor: pointer; }
.more__item:hover { border-color: rgba(243,238,226,.6); background: rgba(243,238,226,.08); }
.more__item.is-match { border-color: var(--lime); color: var(--lime); }
.more__item.is-picked { background: var(--flame); color: #111; }
.more__m { font: 800 12px var(--f-dot); color: #9c9384; white-space: nowrap; }
.chooser__foot .route { margin-left: auto; padding-top: 5px; }

/* ---- the monitor: opens big, tucks into the corner that keeps faces clear */
.mon[data-size="full"] { inset: 2%; }
.mon[data-size="pip"][data-corner="tl"] { right: auto; left: 2%; }
.mon[data-size="pip"][data-corner="br"] { top: auto; bottom: 3.2%; }
.mon[data-size="pip"][data-corner="bl"] { top: auto; right: auto; bottom: 3.2%; left: 2%; }
/* side (monitor.js rule 1): a panel at the stage's edge, beside the hosts, on the side the corner picker chose */
.mon[data-size="side"] { top: 3.2%; right: 2%; width: 36%; max-height: 93.6%; z-index: 7; cursor: default; }
.mon[data-size="side"][data-corner$="l"] { right: auto; left: 2%; }
.mon[data-size="side"][data-corner^="b"] { top: auto; bottom: 3.2%; }
/* stats and the menu: a full-height column that scrolls inside */
.mon[data-size="side"]:is([data-type="stats"], [data-type="cards"]) { top: 3.2%; bottom: 3.2%; width: clamp(240px, 38%, 460px); }
.mon[data-size="side"]:is([data-type="stats"], [data-type="cards"]) .mon__screen { flex: 1; min-height: 0; aspect-ratio: auto; overflow: auto; }
.mon[data-size="side"] .mon__open { display: block; }
/* at side size the actions get their own row under the screen, so they never sit on a dashboard that scrolls */
.mon[data-size="side"]:is([data-type="stats"], [data-type="cards"]) .mon__acts:not(:empty) { position: static; flex: none; justify-content: flex-end; padding: 6px 8px; border-top: 1px solid rgba(243,238,226,.12); }
.mon[data-size="pip"]:hover { box-shadow: 0 0 0 2px var(--flame), 0 8px 22px rgba(0,0,0,.5); }
.mon__acts { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.mon__acts:empty, .mon[data-size="pip"] .mon__acts, .mon[data-size="strip"] .mon__acts { display: none; }
.mon__act { min-height: 32px; padding: 0 12px; border: 1px solid var(--paper); border-radius: 999px; background: rgba(14,12,10,.82); color: var(--paper); font: 600 12px var(--f-ui); cursor: pointer; }
.mon__act--link { border-color: var(--flame); color: var(--flame); }
.mon__act:hover { background: #111; }
.mon[data-size="panel"] .mon__open { display: block; }
.mon[data-size="panel"]:not([data-type="stats"]) .mon__screen { aspect-ratio: 16 / 10; }
.mon[data-size="panel"] .mon__btn:first-of-type { display: grid; }
.mon[data-size="strip"] { position: relative; inset: auto; top: auto; right: auto; width: auto; margin-top: 8px; display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: stretch; cursor: pointer; }
.mon[data-size="strip"] .mon__screen { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; border-radius: 4px 0 0 4px; }
.mon[data-size="strip"] .mon__bar { grid-column: 2; grid-row: 1; height: auto; min-height: 46px; border-bottom: 0; border-radius: 0 4px 4px 0; }
.mon[data-size="strip"] .mon__title::after { content: "  ·  tap to open"; font: 500 12px var(--f-ui); letter-spacing: 0; text-transform: none; color: #9c9384; }
.mon[data-size="strip"] .mon__open { display: none; }
.mon[data-size="strip"][data-type="stats"] { grid-template-columns: minmax(0, 1fr); }
.mon[data-size="strip"][data-type="stats"] .mon__screen { display: none; }
.mon[data-size="strip"][data-type="stats"] .mon__bar { grid-column: 1; border-radius: 4px; }

@media (max-width: 760px) {
  .chooser { padding: 12px; gap: 10px; }
  .chooser__head { flex-wrap: wrap; }
  .chooser__alts { grid-template-columns: minmax(0, 1fr); }
  .prim { padding: 12px 14px 14px; }
  .prim__go { width: 44px; height: 44px; }
  .prim__t { font-size: 21px; }
  .card--alt { min-height: 48px; }
  .more__item, .more__btn, .act, .prim__stay { min-height: 40px; }
  .chooser__foot .route { margin-left: 0; flex-wrap: wrap; row-gap: 0; }
  .sub { min-height: 40px; }
  .cmap__subs { padding-left: 30px; }
  .mon[data-size="strip"] .mon__bar { min-height: 48px; }
}
@media (min-width: 761px) and (max-height: 780px) {
  .chooser { padding: 10px 12px; gap: 8px; }
  .prim { padding: 10px 14px 12px 16px; }
  .prim__go { width: 44px; height: 44px; }
  .prim__b { -webkit-line-clamp: 1; }
  .card--alt .card__b { -webkit-line-clamp: 1; }
  .card--door .card__b { display: none; }
}
@media (max-width: 440px) {
  .gate__actions { flex-direction: column-reverse; align-items: stretch; }
  .gate__skip { align-self: stretch; }
}

/* episode map: By topic / By project tabs */
.side__tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 12px; border: 1px solid #111; border-radius: 6px; overflow: hidden; background: linear-gradient(#fafafa, #d6d6d6); box-shadow: inset 0 1px 0 #fff; }
.side__tab { min-height: 32px; padding: 0 8px; border: 0; background: none; font: 600 12px var(--f-ui); color: #222; cursor: pointer; }
.side__tab + .side__tab { border-left: 1px solid #111; }
.side__tab:hover { background: rgba(10,143,168,.12); }
.side__tab.is-on { background: #111; color: #fff; }
.side__tab:focus-visible { outline: 2px solid var(--bondi); outline-offset: -3px; }
.side__panel[hidden], .side__legend[hidden] { display: none; }
.side__lede { margin: 0 2px 10px; font: 400 12px/1.45 var(--f-ui); color: #555; }
.pcards, .pgroup__list { margin: 0; padding: 0; list-style: none; }
.pcards { display: grid; gap: 14px; }
.pgroup__t { margin: 0 2px 6px; font: 700 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #777; }
.pgroup__list { display: grid; gap: 8px; }
.pcard { width: 100%; display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px; border: 1px solid var(--plat-4); border-radius: 6px; background: #fff; text-align: left; color: #111; cursor: pointer; box-shadow: inset 0 -1px 0 var(--plat-2), 2px 2px 0 rgba(0,0,0,.12); transition: transform .08s, box-shadow .08s, border-color .15s; }
.pcard:hover { border-color: #111; }
.pcard:active { transform: translate(1px, 1px); box-shadow: none; }
.pcard:focus-visible { outline: 2px solid var(--bondi); outline-offset: 2px; }
.pcard.is-now { border-color: #111; background: #111; color: #fff; }
.pcard__pic { width: 64px; height: 64px; border: 1px solid #111; border-radius: 3px; overflow: hidden; background: var(--plat-2); display: grid; place-items: center; }
.pcard__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__mono { font: 600 34px/1 var(--f-head); color: var(--ember); }
.pcard__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pcard__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font: 600 19px/1 var(--f-head); }
.pcard__st { padding: 1px 5px; border: 1px solid currentColor; border-radius: 3px; font: 600 10px/1.3 var(--f-ui); letter-spacing: .04em; color: #777; }
.pcard__tag { font: 600 12px/1.3 var(--f-ui); color: var(--ember); }
.pcard.is-now .pcard__tag { color: var(--flame); }
.pcard__blurb { font: 400 11.5px/1.4 var(--f-ui); color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard.is-now .pcard__blurb { color: #bbb; }
.pcard__go { margin-top: 3px; font: 700 11px var(--f-ui); color: var(--bondi); }
.pcard.is-now .pcard__go { color: var(--flame); }
.pcard.is-visited:not(.is-now) .pcard__go::after { content: " · heard"; color: #999; font-weight: 500; }

/* phones: the chooser comes up as a sheet pinned to the bottom of the screen (on desktop it
   sits over the picture), so the options are on screen the moment Foyra asks. ▾ folds it
   down to its header; the page under it gets room to scroll the say field clear of it. */
@media (max-width: 760px) {
  .chooser:not([hidden]) {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); top: auto;
    z-index: 60; max-height: min(58dvh, 560px); overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid rgba(243,238,226,.18); border-radius: 14px; box-shadow: 0 -12px 40px rgba(0,0,0,.55);
    background: repeating-linear-gradient(0deg, rgba(184,255,233,.035) 0 1px, transparent 1px 3px), #0e0c0a;
    animation: chooser-up .28s cubic-bezier(.2,.8,.2,1);
  }
  .chooser.is-min:not([hidden]) { position: fixed; max-height: none; overflow: hidden; }
  .pod.is-waiting .pod__main { padding-bottom: min(60dvh, 580px); }
}
@keyframes chooser-up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chooser:not([hidden]) { animation: none; } }

/* "Play it for me" (js/boot.js autoplayCard): moves the story on by itself */
.autoplay { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 8000; display: flex; align-items: center; gap: 10px; animation: rise .5s var(--ease-out, ease) both .9s; }
.autoplay__btn { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: #0d0b09; color: var(--paper); font: 700 14px var(--f-ui); cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.45), inset 0 0 0 1px rgba(243,238,226,.18); }
.autoplay__btn:hover, .autoplay__btn:focus-visible { box-shadow: 0 6px 24px rgba(0,0,0,.45), inset 0 0 0 1px var(--flame); }
.autoplay__ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--flame); color: #1a120a; font-size: 10px; }
.autoplay.is-on .autoplay__ico { background: var(--paper); }
.autoplay__or { font: 500 12px var(--f-ui); color: rgba(243,238,226,.55); }
.autoplay.is-on .autoplay__or { display: none; }
.sayhi { display: grid; gap: 8px; margin-top: 8px; }
.sayhi .btn { justify-content: flex-start; }

/* ---------------------------------------------------------------- v4: stats panels
   Numbers are the hero, one picture explains them. Left: the lead number (label above, figure below), then the
   supporting figures as quiet rows. Right: the one chart. One accent (flame) marks what the line is about; the
   rest stays paper-grey. Small caps labels, thin rules, no boxes unless something is a card. */
.stats { --mut: #9d968a; --rule: rgba(243,238,226,.12); display: grid; gap: 18px; padding: 16px 18px 18px; color: var(--paper); }
.mon[data-size="full"] .stats { grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: 20px 32px; padding: clamp(16px, 3cqw, 32px) clamp(18px, 3.6cqw, 40px); min-height: 100%; align-content: center; align-items: center; }
.mon[data-size="full"] .stats:not(:has(.stats__lead)) .stats__main, .mon[data-size="full"] .stats:not(:has(.stats__main)) .stats__lead { grid-column: 1 / -1; }
.stats__lead, .stats__main { min-width: 0; display: grid; gap: 18px; align-content: center; }
.stats__ct, .stats__l, .stats__when { font: 700 11px/1.3 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.stats__ct { margin: 0 0 10px; }

/* the numbers */
.stats__kpis { display: grid; gap: 0; }
.stats__kpi { display: flex; flex-direction: column-reverse; gap: 4px; padding: 10px 0; border-top: 1px solid var(--rule); }
.stats__kpi:first-child { border-top: 0; padding-top: 0; }
.stats__v { margin: 0; display: flex; align-items: baseline; font: 800 26px/1 var(--f-dot); color: var(--paper); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stats__kpi:first-child .stats__v { font-size: clamp(40px, 8cqw, 84px); color: var(--flame); text-shadow: 0 0 18px rgba(255,169,70,.3); }
.stats__fix { font-size: .55em; margin: 0 .05em; opacity: .85; }
.stats__l { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; color: var(--mut); }
.stats__kpi:first-child .stats__l { font-size: 14px; color: #d8cfbd; }
.stats:not(:has(.stats__main)) .stats__kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 28px; }
.stats:not(:has(.stats__main)) .stats__kpi { border-top: 0; padding: 0; }
.stats:not(:has(.stats__main)) .stats__kpi .stats__v { font-size: clamp(34px, 6.5cqw, 72px); color: var(--flame); }

/* bars and funnels */
.stats__rows { display: grid; gap: 10px; }
.stats__row { display: grid; grid-template-columns: minmax(0, 8em) 1fr auto auto; align-items: center; gap: 10px; font: 500 13px var(--f-ui); color: #d8cfbd; }
.stats__rl { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stats__track { height: 8px; border-radius: 2px; background: rgba(243,238,226,.08); overflow: hidden; }
.stats__fill { display: block; height: 100%; border-radius: 2px; background: var(--flame); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease-out); }
.stats.is-on .stats__fill { transform: scaleX(var(--f)); }
.stats--funnel .stats__fill { background: var(--bondi); }
.stats__rv { font: 800 15px var(--f-dot); color: var(--paper); text-align: right; font-variant-numeric: tabular-nums; min-width: 3.4em; }
.stats__pct { font: 700 12px var(--f-ui); color: var(--mut); min-width: 3em; text-align: right; }

/* pictogram */
.stats__grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 4px; max-width: min(100%, calc(var(--cols) * 22px)); }
.stats__grid i { display: block; aspect-ratio: 1; border-radius: 50%; background: rgba(243,238,226,.16); transform: scale(0); transition: transform .35s var(--ease-out), background .35s; }
.stats.is-on .stats__grid i { transform: none; }
.stats.is-on .stats__grid i.is-hl { background: var(--flame); }
.stats__grid[data-icon="cv"] i { aspect-ratio: 3 / 4; border-radius: 1px; background: linear-gradient(rgba(14,12,10,.4) 0 0) 22% 22% / 56% 9% no-repeat, linear-gradient(rgba(14,12,10,.25) 0 0) 22% 44% / 56% 6% no-repeat, linear-gradient(rgba(14,12,10,.25) 0 0) 22% 60% / 40% 6% no-repeat, #cfc7b6; }
.stats__grid[data-icon="phone"] i { aspect-ratio: 9 / 16; border-radius: 3px; }
.stats.is-on .stats__grid[data-icon="phone"] i.is-hl { background: var(--bondi); }
.stats__grid[data-icon="tile"] i { border-radius: 2px; }
.stats__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font: 500 13px var(--f-ui); color: #d8cfbd; }
.stats__key::before { content: ""; display: inline-block; width: .65em; height: .65em; margin-right: .45em; border-radius: 50%; background: rgba(243,238,226,.3); }
.stats__key.is-hl::before { background: var(--flame); }
.stats--grid:has([data-icon="phone"]) .stats__key.is-hl::before { background: var(--bondi); }

/* timeline: a vertical rail, the last stop lit */
.stats__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stats__steps li { position: relative; display: grid; grid-template-columns: minmax(0, 9.5em) 1fr; column-gap: 14px; padding: 0 0 12px 20px; opacity: 0; transform: translateX(-6px); transition: opacity .45s, transform .45s var(--ease-out); }
.stats__steps li::before { content: ""; position: absolute; left: 0; top: 3px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #d8cfbd; background: #0e0d0b; z-index: 1; }
.stats__steps li::after { content: ""; position: absolute; left: 5px; top: 12px; bottom: -3px; width: 1px; background: var(--rule); }
.stats__steps li:last-child { padding-bottom: 0; }
.stats__steps li:last-child::after { display: none; }
.stats__steps li:last-child::before { background: var(--flame); border-color: var(--flame); box-shadow: 0 0 8px rgba(255,169,70,.6); }
.stats.is-on .stats__steps li { opacity: 1; transform: none; }
.stats__when { grid-row: span 2; padding-top: 1px; }
.stats__steps b { font: 700 15px/1.25 var(--f-ui); color: var(--paper); }
.stats__sub { font: 500 13px/1.35 var(--f-ui); color: var(--mut); }

/* pipeline */
.stats__fl + .stats__fl { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.stats__flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px 22px; }
.stats__flow li { position: relative; display: grid; align-content: center; padding: 8px 11px; border: 1px solid rgba(243,238,226,.22); border-radius: 5px; font: 600 13px/1.25 var(--f-ui); color: #d8cfbd; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease-out); }
.stats__flow li small { font: 500 11px var(--f-ui); color: var(--mut); }
.stats__flow li + li::before { content: "→"; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); color: var(--mut); font-weight: 700; }
.stats__flow li.is-hot { border-color: var(--flame); color: var(--flame); }
.stats__flow.is-hot li { border-color: rgba(255,169,70,.45); }
.stats.is-on .stats__flow li { opacity: 1; transform: none; }
.stats__loop { margin: 8px 0 0; font: 600 12px var(--f-ui); color: var(--mut); }

/* tags, checks */
.stats__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stats__tags li { padding: 5px 10px; border-radius: 4px; border: 1px solid rgba(243,238,226,.22); color: #d8cfbd; font: 600 13px var(--f-ui); opacity: 0; transition: opacity .3s; }
.stats__tags li:first-child { border-color: var(--flame); color: var(--flame); }
.stats.is-on .stats__tags li { opacity: 1; }
.stats__checks { list-style: none; margin: 0; padding: 0; display: grid; }
.stats__checks li { padding: 8px 0; border-top: 1px solid var(--rule); font: 500 14px/1.35 var(--f-ui); color: #d8cfbd; opacity: 0; transition: opacity .4s; }
.stats__checks li:first-child { border-top: 0; padding-top: 0; }
.stats.is-on .stats__checks li { opacity: 1; }

/* photo, press, footnote */
.stats__photo { margin: 0; }
.stats__photo img { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 4px; }
.stats__photo figcaption { margin-top: 6px; font: 500 12px var(--f-ui); color: var(--mut); }
.stats__news { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.clip { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border: 1px solid rgba(243,238,226,.2); border-radius: 5px; color: var(--paper); text-decoration: none; opacity: 0; transition: opacity .5s; }
.stats.is-on .clip { opacity: 1; }
.clip:hover { border-color: var(--flame); }
.clip__pub, .clip__date { font: 700 11px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.clip__head { font: 700 15px/1.25 var(--f-ui); }
.clip__fact { font: 500 13px/1.35 var(--f-ui); color: #d8cfbd; }
.stats__src { grid-column: 1 / -1; margin: 0; padding-top: 10px; border-top: 1px solid var(--rule); font: 500 11px var(--f-ui); color: #7d776c; }

/* the small sizes: one column, the hero still first */
.mon[data-size="panel"] .stats { padding: 12px 14px 14px; gap: 14px; }
.mon[data-size="pip"] .stats { padding: 10px; gap: 10px; }
.mon[data-size="pip"] .stats__main { display: none; }
.mon[data-size="pip"] .stats__kpi:not(:first-child) { display: none; }
.mon[data-size="pip"] .stats__kpi:first-child .stats__v { font-size: 13cqw; }
/* rule 3 (monitor.js): a dashboard has no small version, so on phones (panel ⇄ strip) it has no shrink button */
.mon[data-type="stats"][data-size="panel"] .mon__btn:first-of-type, .mon[data-type="cards"][data-size="panel"] .mon__btn:first-of-type { display: none; }
.mon[data-type="stats"] { cursor: default; }
/* a dense dashboard (4+ numbers): the numbers run in a row across the top, the charts side by side under them */
.mon[data-size="full"] .stats:has(.stats__kpi:nth-child(4)) { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 16px; }
.stats:has(.stats__kpi:nth-child(4)) .stats__kpis { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 10px 14px; }
.stats:has(.stats__kpi:nth-child(4)) .stats__kpi { border-top: 0; padding: 0; }
.stats:has(.stats__kpi:nth-child(4)) .stats__kpi:first-child .stats__v { font-size: clamp(30px, 5.4cqw, 60px); }
.stats:has(.stats__kpi:nth-child(4)) .stats__v { font-size: clamp(22px, 3.6cqw, 40px); }
.mon[data-size="full"] .stats:has(.stats__kpi:nth-child(4)) .stats__main { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 28px; }
.stats:has(.stats__kpi:nth-child(4)) .stats__rows { gap: 6px; }
.stats:has(.stats__kpi:nth-child(4)) .stats__ct { margin-bottom: 6px; }
/* the inline "Open it" sits bottom right on a dashboard, clear of the numbers */
.mon[data-type="stats"] .mon__acts { left: auto; right: 10px; }
.mon[data-type="stats"]:has(.mon__acts:not(:empty)) .stats { padding-bottom: 52px; }
/* phones: a long dashboard scrolls inside the panel instead of pushing the say field off screen */
.mon[data-size="panel"][data-type="stats"] .mon__screen { max-height: 58vh; }
/* photo sets: stacked, cross-fading */
.stats__photo.is-set .stats__pics { display: grid; }
.stats__photo.is-set .stats__pics img { grid-area: 1 / 1; opacity: 0; transition: opacity .6s; aspect-ratio: 4 / 3; }
.stats__photo.is-set .stats__pics img.is-on { opacity: 1; }
/* logo wall: each logo on its own paper tile */
.stats__logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 104px), 1fr)); gap: 8px; }
.stats__logos li { display: grid; place-items: center; aspect-ratio: 2.2; padding: 10px 12px; border-radius: 5px; background: #f3eee2; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease-out); }
.stats__logos img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.stats.is-on .stats__logos li { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .stats__logos li { transition: none; } }
/* qr: scan to open, beside its address */
.stats__qr { margin: 0; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.stats__qrcode { flex: none; display: block; width: clamp(140px, 26cqw, 260px); padding: 10px; border-radius: 6px; background: #fff; }
.stats__qrcode svg { display: block; width: 100%; height: auto; }
.stats__qr figcaption { display: grid; gap: 6px; font: 500 14px/1.35 var(--f-ui); color: var(--mut); }
.stats__qr figcaption b { font: 800 clamp(22px, 4cqw, 40px)/1 var(--f-dot); color: var(--flame); }
@container (max-width: 560px) { .mon[data-size="full"] .stats { grid-template-columns: 1fr; } .stats__steps li { grid-template-columns: 1fr; } .stats__when { grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .stats__grid i, .stats__steps li, .stats__flow li, .stats__tags li, .stats__checks li, .clip, .stats__fill { transition: none; } }
/* the pile: sheets knocked slightly askew, overlapping, so it reads as a heap, not a table */
.stats__grid[data-icon="cv"] { gap: 0; max-width: min(100%, calc(var(--cols) * 30px)); }
.stats__grid[data-icon="cv"] i { margin: -2px; transform: scale(0) rotate(var(--r)); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.stats.is-on .stats__grid[data-icon="cv"] i { transform: rotate(var(--r)); }
.stats__kpi.is-long:first-child .stats__v { font-size: clamp(32px, 5.4cqw, 60px); }
.stats__grid[data-icon="cv"] { gap: 6px 4px; max-width: min(100%, calc(var(--cols) * 34px)); }
.stats__grid[data-icon="cv"] i { margin: 0; background-color: #ece6d8; }
.stats__flow li { max-width: 100%; }

/* "Play it for me" sits with the other controls, bottom right above "Skip to the work", and is quiet like them:
   the caption owns the bottom left, so nothing may sit on top of it */
.autoplay { left: auto; right: calc(max(16px, var(--gutter, 24px)) + env(safe-area-inset-right, 0px)); bottom: calc(max(16px, var(--gutter, 24px)) + 52px + env(safe-area-inset-bottom, 0px)); transform: none; flex-direction: row-reverse; }
.autoplay__btn { min-height: 40px; padding: 0 16px 0 12px; background: rgba(15,13,11,.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 12px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(243,238,226,.22); }
.autoplay__ico { width: 18px; height: 18px; background: transparent; color: var(--flame); box-shadow: inset 0 0 0 1px currentColor; font-size: 8px; }
.autoplay.is-on .autoplay__ico { background: transparent; color: var(--paper); }
@media (max-width: 767px) { .autoplay { bottom: auto; top: calc(max(16px, var(--gutter, 24px)) + 56px + env(safe-area-inset-top, 0px)); } .autoplay__or { display: none; } }
@media (min-width: 768px) { .autoplay { right: auto; left: calc(max(16px, var(--gutter, 24px)) + env(safe-area-inset-left, 0px)); bottom: calc(max(16px, var(--gutter, 24px)) + env(safe-area-inset-bottom, 0px)); flex-direction: row; } }

/* ---------------------------------------------------------------- v5: the 1999 minute (js/app/era.js)
   projects column on the left, a jukebox that's already playing, an installer, a launch splash */
.icons--proj { inset: 14px auto 14px clamp(10px, 1.6vw, 22px); direction: ltr; }
/* right side, desktop: Macintosh HD top right, Trash bottom right (Mac OS 8), the toys start a column of their own */
@media (min-width: 761px) {
  .icons li.is-hd { grid-row: 1; grid-column: 1; }
  .icons li.is-trash { grid-row: -2; grid-column: 1; }
  .icons li.is-fun-first { grid-row: 1; }
}
a.icon { text-decoration: none; }
.icon--proj .icon__label { background: rgba(17,17,17,.82); color: var(--paper); }
.icon.is-installing img { opacity: .45; filter: grayscale(1) drop-shadow(1px 2px 0 rgba(0,0,0,.35)); }
.icon.is-installing .icon__label::after { content: " · installing"; color: var(--tangerine); }

.win--juke .win__body { padding: 0; background: #23252b; }
.juke { display: grid; gap: 0; color: #9bff5e; font: 500 12px/1.3 'Spline Sans Mono', ui-monospace, monospace; }
.juke__lcd { margin: 8px 8px 6px; padding: 6px 8px; background: #000; border: 2px inset #4a4d55; display: grid; gap: 4px; }
.juke__row { display: flex; align-items: baseline; gap: 10px; }
.juke__state { color: #9bff5e; }
.juke__time { font: 400 26px/1 'VT323', ui-monospace, monospace; color: #9bff5e; text-shadow: 0 0 6px rgba(155,255,94,.6); min-width: 3ch; }
.juke__kbps { margin-left: auto; font-size: 10px; color: #4f9a2f; }
.juke__marquee { overflow: hidden; white-space: nowrap; color: #ffd84a; }
.juke__marquee span { display: inline-block; padding-left: 100%; animation: juke-scroll 11s linear infinite; }
.win--juke:not(.is-playing) .juke__marquee span { animation-play-state: paused; }
@keyframes juke-scroll { to { transform: translateX(-100%); } }
.juke__bars { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.juke__bars i { flex: 1; height: 15%; background: linear-gradient(#ff5b3a, #ffd84a 40%, #9bff5e); transform-origin: bottom; }
.win--juke.is-playing .juke__bars i { animation: juke-eq .9s ease-in-out infinite alternate; }
@keyframes juke-eq { 0% { height: 12%; } 30% { height: 85%; } 60% { height: 35%; } 100% { height: 70%; } }
/* audio only: the player has to be on screen for YouTube to play it, so it sits behind everything, invisible */
/* as the Diwali invite does it: the wrapper is zero pixels tall and clips, so no browser can paint the
   video (Safari composites a cross-origin video layer without its parent's opacity); the player inside
   keeps its 200x200 size, which is what YouTube needs to keep playing */
.juke__host { position: absolute !important; left: 0; bottom: 0; width: 300px !important; height: 0 !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; z-index: -1; }
.juke__vid { display: block; width: 200px; height: 200px; border: 0; }
.juke__toggle { display: none; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #2a2c31; color: #9bff5e; font: 700 12px var(--f-ui); cursor: pointer; }
.juke__toggle:active { background: #3a3d44; }
.juke__ctrl { display: flex; gap: 4px; padding: 6px 8px 2px; }
.juke__btn { flex: 1; min-height: 30px; border: 1px solid #111; border-radius: 2px; background: linear-gradient(#e6e3dc, #a9a59c); color: #111; font: 700 12px var(--f-ui); cursor: pointer; box-shadow: inset 1px 1px 0 #fff; }
.juke__btn:active { background: linear-gradient(#a9a59c, #e6e3dc); }
.juke__status { margin: 0; padding: 4px 8px 8px; font-size: 10px; color: #9aa0ab; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.inst { display: grid; gap: 10px; padding: 14px 16px 16px; }
.inst__head { display: flex; gap: 12px; align-items: center; }
.inst__head p { margin: 0; }
.inst__t { font: 700 14px var(--f-ui); }
.inst__s, .inst__file { font: 400 12px var(--f-ui); color: #555; }
.inst__doing { margin: 4px 0 0; font: 500 13px var(--f-ui); }
.inst__file { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inst__bar { height: 14px; border: 1px solid #111; background: #fff; box-shadow: inset 1px 1px 0 #999; overflow: hidden; }
.inst__bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(-45deg, #6b6bd8 0 6px, #8d8dee 6px 12px); background-size: 17px 100%; animation: inst-stripes .8s linear infinite; }
@keyframes inst-stripes { to { background-position: 17px 0; } }
.inst__row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.inst__row--end { justify-content: flex-end; gap: 8px; }
.inst__note { flex: 1; font: 400 12px var(--f-ui); color: #555; }
/* phone: the "opens in 15 s" bar under the grid (no installer window on a phone) */
.inst-bar { position: absolute; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 9000; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; background: var(--plat-2); color: #111; border: 1px solid #111; border-radius: 10px; box-shadow: inset 1px 1px 0 #fff, 0 10px 30px rgba(0,0,0,.45); font: 400 13px/1.3 var(--f-ui); animation: icon-land .5s var(--ease-out) both; }
.inst-bar img { image-rendering: pixelated; flex: none; }
.inst-bar p { flex: 1; margin: 0; min-width: 0; }
.inst-bar.is-held p::after { content: ", after the tour"; color: #555; }
.inst-bar .btn { min-height: 38px; padding: 0 12px; }

/* the first-visit tour (js/app/tour.js): a ghost Mac arrow and a caption in Wispr Flow's look
   (Lumen card, Figtree, a Vast border-button), plus a soft ring on whatever it is pointing at */
.gtour__cursor { position: absolute; left: 0; top: 0; z-index: 99996; width: 18px; height: 28px; pointer-events: none; opacity: 0; transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45, .05, .25, 1); filter: drop-shadow(1px 2px 1px rgba(0,0,0,.35)); }
.gtour__cursor.is-on { opacity: 1; }
.gtour__cursor svg { display: block; transform-origin: 2px 2px; transition: transform .12s; }
.gtour__cursor.is-press svg { transform: scale(.82); }
.gtour__cap { --lumen: #ffffeb; --vast: #1a1a1a; position: absolute; z-index: 99995; width: min(270px, calc(100% - 20px)); padding: 10px 12px 9px; background: var(--lumen); color: var(--vast); border: 1px solid rgba(26,26,26,.18); border-radius: 14px; box-shadow: 0 12px 30px rgba(26,26,26,.25), 0 2px 6px rgba(26,26,26,.1); font: 500 13.5px/1.4 Figtree, var(--f-ui); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s, left .5s cubic-bezier(.45,.05,.25,1), top .5s cubic-bezier(.45,.05,.25,1); }
.gtour__cap.is-on { opacity: 1; transform: none; }
.gtour__cap p { margin: 0; }
.gtour__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.gtour__brand { font: 600 10.5px/1 Figtree, var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: rgba(26,26,26,.5); }
.gtour__skip { min-height: 28px; padding: 0 10px; border: 2px solid var(--vast); border-radius: 8px; background: var(--lumen); color: var(--vast); font: 600 12px/1 Figtree, var(--f-ui); cursor: pointer; }
.gtour__skip:hover { background: #f0d7ff; box-shadow: 2px 2px 0 0 var(--vast); }
.gtour__extra:empty { display: none; }
.gtour__n { font: 600 10.5px/1 Figtree, var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: rgba(26,26,26,.5); }
.gtour__btns { display: flex; gap: 6px; }
.gtour__btn { min-height: 30px; padding: 0 10px; border: 2px solid var(--vast); border-radius: 8px; background: var(--lumen); color: var(--vast); font: 600 12px/1 Figtree, var(--f-ui); cursor: pointer; }
.gtour__btn.is-primary { background: #f0d7ff; }
.gtour__btn.is-text { border-color: transparent; background: none; color: rgba(26,26,26,.6); }
.gtour__btn:disabled { opacity: .35; cursor: default; }
.menubar__help { width: 22px; height: 22px; margin: 0 4px; padding: 0; border: 1px solid #111; border-radius: 50%; background: var(--plat-1); font: 700 12px/1 var(--f-ui); cursor: pointer; }
@media (max-width: 760px) { .gtour__btn { min-height: 44px; min-width: 44px; padding: 0 12px; font-size: 13px; } .gtour__cap { width: calc(100% - 16px); } .menubar__help { display: none; } }
.gtour__pill { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #1a1a1a; color: #ffffeb; font: 600 11.5px/1.2 Figtree, var(--f-ui); width: max-content; max-width: 100%; }
.gtour__wave { display: flex; align-items: center; gap: 2px; height: 16px; padding: 0 4px; }
.gtour__wave i { width: 2px; height: 30%; border-radius: 2px; background: #ffffeb; animation: gtour-wave .6s ease-in-out infinite alternate; }
@keyframes gtour-wave { to { height: 100%; } }
.is-tour-lit { outline: 2px solid rgba(240,215,255,.95); outline-offset: 3px; border-radius: 8px; box-shadow: 0 0 0 6px rgba(240,215,255,.28); transition: outline-color .3s, box-shadow .3s; }
.win.is-tour-lit { border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .gtour__cap { transition: opacity .01s; transform: none; } .gtour__wave i { animation: none; height: 60%; } }

.splash { position: absolute; inset: 0; z-index: 9000; display: grid; place-items: center; background: rgba(10,9,8,.0); pointer-events: none; transition: background .35s; }
.splash.is-on { background: rgba(10,9,8,.55); }
.splash__card { display: grid; justify-items: center; gap: 6px; padding: 26px 40px 22px; background: var(--plat-2); color: #111; border: 1px solid #111; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-4), 0 22px 50px rgba(0,0,0,.5); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .45s var(--ease-out); text-align: center; }
.splash.is-on .splash__card { opacity: 1; transform: none; }
.splash__card p { margin: 0; }
.splash__card img { image-rendering: pixelated; }
.splash__t { font: 400 clamp(34px, 5vw, 52px)/1 'Jersey 10', var(--f-dot), monospace; letter-spacing: .02em; }
.splash__s { font: 600 14px var(--f-ui); }
.splash__c { font: 400 11px var(--f-ui); color: #666; }
.splash__go { font: 500 12px var(--f-ui); color: #444; }
.splash__dots { display: flex; gap: 5px; margin-top: 6px; }
.splash__dots i { width: 7px; height: 7px; background: #111; animation: splash-dot 1s steps(2) infinite; }
.splash__dots i:nth-child(2) { animation-delay: .33s; } .splash__dots i:nth-child(3) { animation-delay: .66s; }
@keyframes splash-dot { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .juke__marquee span, .juke__bars i, .inst__bar i, .splash__dots i { animation: none !important; } }
.folder__bar { margin: 0; padding: 4px 10px; border-bottom: 1px solid var(--plat-4); font: 400 12px var(--f-ui); color: #444; text-align: center; }
.folder__grid { margin: 0; padding: 10px; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; background: #fff; }
.folder__grid .icon { width: 100%; height: auto; min-height: 88px; padding-bottom: 6px; }
.folder__grid .icon__label { background: none; max-width: 100%; -webkit-line-clamp: 3; }
.win--folder .win__body { overflow-y: auto; }

/* Built with (js/app/apps.js): the real build numbers, data/build-stats.json */
.win--built .win__body { padding: 0; }
.built { display: grid; gap: 12px; padding: 14px 16px 14px; font: 400 13px/1.4 var(--f-ui); }
.built p { margin: 0; }
.built__t { font: 700 15px/1.25 var(--f-ui); }
.built__s, .built__note { font-size: 12px; color: #555; }
.built__load { padding: 18px 16px; margin: 0; }
.built__tiles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
.built__tiles li { display: grid; align-content: start; gap: 2px; padding: 8px 10px 9px; background: #fff; border: 1px solid #111; box-shadow: inset -1px -1px 0 var(--plat-3), 1px 1px 0 rgba(0,0,0,.25); }
.built__tiles b { font: 400 30px/1 'VT323', var(--f-ui); color: #111; }
.built__tiles span { font-weight: 600; font-size: 12px; }
.built__tiles em { font-style: normal; font-size: 11px; color: #666; }
.built__chart { padding: 8px 10px 6px; background: #fff; border: 1px solid #111; }
.built__ch { font-weight: 600; font-size: 12px; margin-bottom: 6px !important; }
.built__chart ol { margin: 0; padding: 0; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; height: 96px; align-items: end; }
.built__chart li { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; }
.built__chart li i { order: 1; align-self: end; width: 100%; max-width: 30px; background: repeating-linear-gradient(-45deg, #6b6bd8 0 4px, #8d8dee 4px 8px); border: 1px solid #111; }
.built__chart li b { order: 0; font-size: 10px; font-weight: 600; }
.built__chart li span { order: 2; font-size: 10px; color: #555; padding-top: 3px; }
@media (max-width: 760px) { .built__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .built__tiles b { font-size: 26px; } }

/* the project info card (js/app/infocard.js): Platinum, beside the icon, never on it */
.icard { position: absolute; z-index: 99990; width: min(300px, calc(100% - 16px)); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 10px; padding: 9px 10px 8px; background: var(--plat-1); color: #111; border: 1px solid #111; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-4), 2px 3px 0 rgba(0,0,0,.35); font: 400 12px/1.4 var(--f-ui); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .14s var(--ease-out), transform .18s var(--ease-out); }
.icard.is-on { opacity: 1; transform: none; }
.icard.is-touch { pointer-events: auto; }
.icard[hidden] { display: none; }
.icard p { margin: 0; }
.icard__pic { width: 76px; height: 48px; object-fit: cover; border: 1px solid #111; background: #fff; image-rendering: auto; }
.icard__body { display: grid; gap: 3px; align-content: start; }
.icard__t { font: 700 13px/1.25 var(--f-ui); }
.icard__what { color: #222; }
.icard__row { color: #333; }
.icard__row b { display: inline-block; min-width: 40px; margin-right: 4px; font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: #555; }
.icard__where { grid-column: 1 / -1; padding-top: 6px; border-top: 1px solid var(--plat-4); font-size: 11px; color: #444; }
.icard__btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.icard__btns .btn { min-height: 34px; }
@media (prefers-reduced-motion: reduce) { .icard { transition: none; transform: none; } }

.icons li.is-new .icon { animation: icon-land .7s var(--ease-out) both; }
.icons li.is-new .icon__label { background: #111; color: #fff; }
@keyframes icon-land { 0% { transform: scale(.3) translateY(-30px); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: none; } }

/* the lock screen (js/app/era.js login): blurred desktop, big clock, floating account bubbles */
.desk.is-locked .menubar, .desk.is-locked .icons { visibility: hidden; }
.lock { position: absolute; inset: -28px 0 0; z-index: 9500; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 8px; padding: clamp(24px, 6vh, 64px) 16px clamp(16px, 4vh, 32px); color: #fff; background: rgba(10,30,40,.35); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); opacity: 0; transition: opacity .45s, transform .45s; text-shadow: 0 1px 12px rgba(0,0,0,.35); font-family: 'Bricolage Grotesque', var(--f-ui); }
.lock.is-on { opacity: 1; }
.lock.is-out { opacity: 0; transform: scale(1.03); }
.lock p { margin: 0; }
.lock__top { text-align: center; display: grid; justify-items: center; gap: 6px; }
.lock__time { font-weight: 600; font-variation-settings: 'opsz' 96; font-size: clamp(64px, 13vw, 140px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.lock__date { font-weight: 600; font-size: clamp(15px, 2vw, 20px); opacity: .92; }
.lock__online { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px !important; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.16); font-weight: 600; font-size: 13px; }
.lock__online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5df07a; box-shadow: 0 0 8px #5df07a; animation: lock-pulse 1.6s ease-in-out infinite; }
@keyframes lock-pulse { 50% { opacity: .35; } }
.lock__mid { width: 100%; max-width: 1100px; min-height: 0; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 12px; }
.lock__field { position: relative; width: 100%; height: 100%; min-height: 240px; }
/* the lobby floats over the whole lock screen; only the clock block and the name box sit above it */
.lock > .lock__mid > .lock__field { position: absolute; inset: 0; width: auto; height: auto; min-height: 0; z-index: 1; pointer-events: none; }
.lock__field .lock__user:not(.is-gone) { pointer-events: auto; }
.lock__top, .lock__bottom { position: relative; z-index: 2; }
.lock__mid > .lock__bottom { grid-row: 2; }
.lock__field[hidden], .lock__picked[hidden], .lock__add[hidden], .lock__bottom[hidden] { display: none; }
.lock__user { position: absolute; left: 0; top: 0; width: calc(var(--bub, 54px) * 2); display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; will-change: transform; font-family: inherit; }
.lock__user > * { transition: transform .25s var(--ease-out), opacity .3s; }
.lock__user:hover .lock__face { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0,0,0,.35), 0 0 0 3px #fff; }
.lock__user.is-gone > * { opacity: 0; transform: scale(.3); }
.lock__user.is-gone { pointer-events: none; }
.lock__face { width: calc(var(--bub, 54px) * 1.41); height: calc(var(--bub, 54px) * 1.41); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.22); box-shadow: 0 4px 16px rgba(0,0,0,.3), 0 0 0 2px rgba(255,255,255,.4); }
.lock__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lock__glyph { font: 300 38px/1 'Bricolage Grotesque', sans-serif; color: #fff; }
.lock__user.is-guest .lock__face { background: radial-gradient(circle at 50% 38%, #fff 0 17%, transparent 18%), radial-gradient(ellipse at 50% 100%, #fff 0 36%, transparent 37%), linear-gradient(#9aa3ad, #6d7783); }
.lock__user.is-add .lock__face { background: rgba(255,255,255,.1); box-shadow: 0 0 0 2px rgba(255,255,255,.7) inset; border: 0; }
.lock__name { font-weight: 600; font-size: 14px; line-height: 1.15; }
.lock__role { font-weight: 500; font-size: 11px; line-height: 1.2; opacity: .8; text-align: center; max-width: calc(var(--bub, 54px) * 2); }
/* a big lobby (the whole Wispr team): smaller type so names still fit under smaller bubbles */
.lock__field.is-crowd .lock__name { font-size: 12px; }
.lock__field.is-crowd .lock__role { font-size: 9.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lock__field.is-tight .lock__role { display: none; }
.lock__field.is-tight .lock__name { font-size: 10.5px; }
.lock__field.is-tight .lock__user { gap: 2px; }
/* the lobby floats a few big faces at a time: name under the face, the role on hover or focus */
.lock__field .lock__user > * { transition: transform .35s var(--ease-out), opacity .7s ease; }
.lock__field .lock__role { opacity: 0; max-height: 0; overflow: hidden; transition: opacity .2s, max-height .2s; }
.lock__field .lock__user:hover .lock__role, .lock__field .lock__user:focus-visible .lock__role { opacity: .85; max-height: 3em; }
.lock__field .lock__user.is-add .lock__role, .lock__field .lock__user.is-guest .lock__role { opacity: .7; max-height: 3em; }
.lock__field .lock__name { font-size: 13.5px; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.lock__field .lock__user.is-gone > *, .lock__field .lock__user.is-gone .lock__role { opacity: 0; }
/* the ppt.live lobby's own motion: each face bobs and tilts on its beat (show.html .gpill pbob),
   a newcomer pops in (ppop), and a picked face holds still while it turns green (.nbubble.here) */
.lock__field { overflow: hidden; }  /* safety: every face is kept fully on screen anyway */
.lock__field .lock__face { animation: lock-bob var(--d, 5s) ease-in-out var(--dl, 0s) infinite; will-change: transform; }
.lock__field .lock__user.is-new .lock__face { animation: lock-pop .75s cubic-bezier(.2,1.6,.4,1) both, lock-bob var(--d, 5s) ease-in-out .75s infinite; }
.lock__field .lock__user.is-picked .lock__face { animation-play-state: paused; }
@keyframes lock-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes lock-pop { 0% { transform: scale(0) rotate(-24deg); } 70% { transform: scale(1.18) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .lock__field .lock__face, .lock__field .lock__user.is-new .lock__face { animation: none; } }
/* picked: your bubble goes green and you're in */
.lock__user.is-picked .lock__face { box-shadow: 0 0 0 4px #3ddc84, 0 0 28px rgba(61,220,132,.75); transform: scale(1.12); }
.lock__user.is-picked .lock__name { color: #3ddc84; }
.lock__field.has-pick .lock__user:not(.is-picked) > * { opacity: .25; }
@media (prefers-reduced-motion: reduce) { .lock__user.is-picked .lock__face { transform: none; } }
.lock__bottom { display: grid; justify-items: center; gap: 8px; width: min(320px, 100%); }
.lock__search, .lock__pw { width: 100%; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); color: #fff; font: 500 14px 'Bricolage Grotesque', var(--f-ui); outline: none; text-align: center; }
.lock__search::placeholder, .lock__pw::placeholder { color: rgba(255,255,255,.78); }
.lock__search:focus, .lock__pw:focus { box-shadow: inset 0 0 0 1.5px #fff; }
.lock__hint { font-weight: 500; font-size: 13px; opacity: .85; }
.lock__picked, .lock__add { align-self: center; display: grid; justify-items: center; gap: 8px; width: min(320px, 100%); animation: lock-rise .4s var(--ease-out) both; }
@keyframes lock-rise { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.lock__picked .lock__face, .lock__add .lock__face { width: 120px; height: 120px; }
.lock__facebtn { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.lock__big { font-weight: 600; font-size: 24px; }
.lock__form { position: relative; display: flex; width: min(260px, 100%); margin-top: 6px; }
.lock__form .lock__pw { padding-right: 40px; -webkit-text-security: disc; }
.lock__form .lock__name-in { -webkit-text-security: none; }
.lock__go { position: absolute; right: 3px; top: 3px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #123; font: 700 15px var(--f-ui); cursor: pointer; }
.lock__back { padding: 5px 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: 500 12px 'Bricolage Grotesque', var(--f-ui); cursor: pointer; }
@media (max-width: 760px) { .lock__user { width: 86px; } .lock__face { width: 60px; height: 60px; } .lock__role { display: none; } }
@media (prefers-reduced-motion: reduce) { .lock__online::before { animation: none; } }
.lock__online[hidden] { display: none; }
