/* QuikSim Phase 1 · public site, sign-in and player
   Tokens first; components after. Plain CSS, no build step. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-sans-3-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* Neutrals */
  --paper: #FBFAF8;
  --surface: #FFFFFF;
  --sunk: #F3F1EE;
  --line: #DDD8D1;
  --control: #8F887F;
  --muted: #6A645C;
  --ink-2: #3E3A35;
  --ink: #23211E;
  /* Player chrome */
  --chrome: #1E1D1B;
  --chrome-raised: #2A2926;
  --chrome-line: #3A3835;
  --chrome-text: #ECEAE6;
  --chrome-muted: #A8A39B;
  /* Project accents */
  --cag: #1E3A5C; --cag-tint: #E8EDF3; --cag-deep: #152B45; --cag-on: #C9D6E6;
  --ran: #2D5E44; --ran-tint: #E6EFE8; --ran-deep: #224834; --ran-on: #E6EFE8;
  --uni: #5A2E5E; --uni-tint: #F1E9F1; --uni-deep: #44224A; --uni-on: #F1E9F1;
  /* Status */
  --pos-fg: #1F6B3F; --pos-bg: #E3F1E7;
  --info-fg: #1F4F8A; --info-bg: #E5EEF9;
  --warn-fg: #7A4A00; --warn-bg: #FBF0D9;
  --neutral-fg: #5D5850; --neutral-bg: #EEEBE7;
  --crit-fg: #A2321F; --crit-bg: #FBE9E5;
  --focus: #1D5FD1;
  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* Shape */
  --r-s: 4px; --r-m: 6px; --r-l: 10px; --r-xl: 14px;
  --shadow-overlay: 0 12px 32px rgba(35, 33, 30, 0.16);
  --gutter: 20px;
  --container: 1200px;
  /* The current room: shell by default */
  --accent: var(--ink); --accent-deep: #3E3A35; --accent-tint: var(--sunk); --accent-on: #C8C3BB;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

.space-cag { --accent: var(--cag); --accent-deep: var(--cag-deep); --accent-tint: var(--cag-tint); --accent-on: var(--cag-on); }
.space-rangitoto { --accent: var(--ran); --accent-deep: var(--ran-deep); --accent-tint: var(--ran-tint); --accent-on: var(--ran-on); }
.space-university { --accent: var(--uni); --accent-deep: var(--uni-deep); --accent-tint: var(--uni-tint); --accent-on: var(--uni-on); }

/* Image fallbacks: one pattern per room, on the room's accent */
.pattern { background-color: var(--accent); }
.space-cag .pattern, .pattern.space-cag {
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; }
.space-rangitoto .pattern, .pattern.space-rangitoto {
  background-image: repeating-radial-gradient(circle at 74% 118%, transparent 0 17px, rgba(255,255,255,.11) 17px 18px); }
.space-university .pattern, .pattern.space-university {
  background-image: linear-gradient(90deg, transparent 0 48px, rgba(255,255,255,.16) 48px 49px, transparent 49px),
    repeating-linear-gradient(180deg, transparent 0 21px, rgba(255,255,255,.09) 21px 22px); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-m); background: var(--chrome-text); color: var(--chrome); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }
.serif { font-family: var(--font-display); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1rem + .4vw, 21px); line-height: 1.5; color: var(--ink-2); }
.icon { flex: none; display: inline-block; vertical-align: middle; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.site-header__auth { display: flex; align-items: center; gap: 16px; min-width: 0; }
.site-header__email { min-width: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--muted); }
.site-nav { border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0 auto; display: flex; gap: 28px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.site-nav a { display: inline-flex; align-items: center; height: 48px; padding-top: 3px; border-bottom: 3px solid transparent; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
.in-space .site-header { border-bottom-color: var(--accent); }
.in-space .site-nav { background: var(--accent); border-top-color: var(--accent); }
.in-space .site-nav a { color: #FFFFFF; }
.in-space .site-nav a:hover { border-bottom-color: rgba(255,255,255,.45); }
.in-space .site-nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.in-space .site-nav a:focus-visible { outline-color: #FFFFFF; outline-offset: -3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-m);
  font: 600 16px/1 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .12s, border-color .12s; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: #3E3A35; }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--control); }
.btn-secondary:hover { background: var(--sunk); border-color: var(--ink); }
.btn-small { height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { background: #E6E2DC; color: var(--control); border-color: transparent; cursor: not-allowed; }
.btn-secondary[disabled] { background: var(--surface); border-color: var(--line); color: var(--muted); }
.link-quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.link-quiet:hover { text-decoration-thickness: 2px; }
.link-accent { color: var(--accent); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-s); background: var(--neutral-bg); color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
.badge-outline { background: transparent; border: 1px solid var(--line); }
.badge-solid { background: var(--ink); color: #FFFFFF; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* Section rhythm */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight-top { padding-top: clamp(32px, 4vw, 48px); }
.marker { display: block; width: 32px; height: 3px; background: var(--accent); margin-bottom: 18px; }
.h-section { font-family: var(--font-display); font-size: clamp(26px, 1.2rem + 1vw, 32px); line-height: 1.2; font-weight: 600; }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-28 { gap: 28px; } .gap-40 { gap: 40px; } .gap-48 { gap: 48px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.split__main { flex: 999 1 520px; min-width: 0; }
.split__side { flex: 1 1 320px; min-width: 0; }
.measure { max-width: 680px; }
.prose p + p { margin-top: 1em; }
.prose { font-size: 18px; line-height: 1.65; color: var(--ink-2); }

/* Home hero */
.hero-home { background-color: var(--sunk); background-image: linear-gradient(rgba(35,33,30,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(35,33,30,.045) 1px, transparent 1px); background-size: 32px 32px; border-bottom: 1px solid var(--line); }
.hero-home__inner { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 7vw, 104px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-home h1 { max-width: 980px; font-family: var(--font-display); font-size: clamp(34px, 1.4rem + 2.6vw, 54px); line-height: 1.1; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }

/* Cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.grid-sims { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 24px; }
.space-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--r-l); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.space-card:hover { box-shadow: var(--shadow-overlay); }
a.space-card:hover .space-card__cta { text-decoration: underline; text-underline-offset: 4px; }
.space-card__image { aspect-ratio: 16 / 9; position: relative; }
.space-card__body { flex: 1; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.space-card__title { font-family: var(--font-display); font-size: 23px; line-height: 1.25; font-weight: 600; }
.space-card__text { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.space-card__cta { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.tag-on-image { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-s); background: #FFFFFF; color: var(--ink); font-size: 13px; font-weight: 700; }
.space-university .tag-on-image { left: 64px; }

.sim-card { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.sim-card__image { flex: 1 1 400px; min-height: 200px; aspect-ratio: 16 / 9; }
.sim-card__body { flex: 999 1 360px; min-width: 0; padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sim-card__title { font-family: var(--font-display); font-size: clamp(23px, 1.1rem + .6vw, 28px); line-height: 1.2; font-weight: 600; color: var(--ink); text-decoration: none; }
a.sim-card__title:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.sim-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.sim-card__actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.chip-soon { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-m); background: var(--neutral-bg); color: var(--ink-2); font-size: 15px; font-weight: 600; }

/* Your simulations */
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.group-head__name { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.swatch { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.sim-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.sim-row__thumb { flex: none; width: clamp(96px, 13vw, 176px); aspect-ratio: 16 / 9; border-radius: var(--r-m); }
.sim-row__text { flex: 1 1 196px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sim-row__title { font-family: var(--font-display); font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--ink); text-decoration: none; }
.sim-row__action { margin-left: auto; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps__num { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 17px; color: var(--muted); }
.steps__title { font-family: var(--font-display); font-size: 25px; line-height: 1.2; font-weight: 600; }
.steps__text { font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* CTA block */
.cta { padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); background: var(--ink); color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.cta h2 { flex: 1 1 420px; max-width: 620px; font-family: var(--font-display); font-size: clamp(28px, 1.3rem + 1.4vw, 40px); line-height: 1.15; font-weight: 600; text-wrap: balance; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta .btn-light { background: var(--paper); color: var(--ink); }
.cta .btn-light:hover { background: #FFFFFF; }
.cta .btn-ghost { color: #FFFFFF; border-color: #A8A39B; background: transparent; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #FFFFFF; }
.cta .link-quiet { color: #FFFFFF; }
.cta :focus-visible { outline-color: #FFFFFF; }
.cta.cta-accent { background-color: var(--accent); }
.cta-accent .btn-light { color: var(--accent); background: #FFFFFF; }
.cta-accent .btn-ghost { border-color: var(--accent-on); }

/* Footer */
.site-footer { background: var(--sunk); border-top: 1px solid var(--line); color: var(--ink-2); }
.site-footer__inner { padding-top: 48px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.site-footer p { font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }

/* Project space */
.hero-space { color: #FFFFFF; }
.hero-space__inner { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-space .eyebrow { color: var(--accent-on); }
.hero-space h1 { max-width: 900px; font-family: var(--font-display); font-size: clamp(36px, 1.4rem + 2.8vw, 58px); line-height: 1.06; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.hero-space .hero-space__headline { max-width: 680px; font-size: clamp(19px, 1rem + .5vw, 23px); line-height: 1.45; }
.hero-space__access { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--accent-on); }
.objectives { padding: clamp(24px, 2.6vw, 32px); border-radius: var(--r-l); background: var(--accent-tint); display: flex; flex-direction: column; gap: 16px; }
.objectives h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.45; }
.checklist .icon { margin-top: 2px; color: var(--accent); }
.checklist-2col { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--chrome); display: flex; align-items: center; justify-content: center; }
.video__play { width: 76px; height: 54px; border: 0; border-radius: 12px; background: var(--chrome-text); color: var(--chrome); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.video__play:hover { background: #FFFFFF; }
.video__note { position: absolute; left: 18px; bottom: 16px; font-size: 13px; color: var(--chrome-muted); }
.side-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.downloads { list-style: none; margin: 0; padding: 0; }
.downloads a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.downloads li:last-child a { border-bottom: 1px solid var(--line); }
.downloads a:hover .downloads__title { text-decoration-thickness: 2px; }
.downloads__title { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.downloads .icon { color: var(--muted); }

/* Breadcrumb */
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-underline-offset: 3px; }
.breadcrumb .sep { color: var(--control); }
.breadcrumb [aria-current] { font-weight: 600; }

/* Launch page */
.launch-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 56px; }
.launch-top__image { flex: 1 1 520px; min-width: 0; aspect-ratio: 16 / 9; border-radius: var(--r-l); }
.launch-top__info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.launch-top h1 { font-family: var(--font-display); font-size: clamp(34px, 1.4rem + 2vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.015em; }
.action-panel { padding: 24px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.action-panel__message { font-family: var(--font-display); font-size: 23px; line-height: 1.25; font-weight: 600; }
.action-panel__support { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.action-panel__note { display: flex; align-items: flex-start; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.action-panel__note .icon { margin-top: 2px; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.build-line { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.banner-warn { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-l); background: var(--warn-bg); color: var(--warn-fg); }
.banner-warn strong { display: block; font-size: 16px; }
.banner-warn span { font-size: 15px; line-height: 1.45; }
[data-device-warning][hidden] { display: none; }
.numbered { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.numbered li { display: flex; align-items: flex-start; gap: 16px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.numbered .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.numbered .t { padding-top: 2px; }

/* Centred panel: sign-in, continue, errors */
.panel-page { background-color: var(--sunk); background-image: linear-gradient(rgba(35,33,30,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(35,33,30,.045) 1px, transparent 1px); background-size: 32px 32px; }
.panel-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: clamp(32px, 7vw, 104px) 0 clamp(48px, 7vw, 104px); display: flex; flex-direction: column; gap: 20px; }
.panel { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.panel h1 { font-family: var(--font-display); font-size: clamp(28px, 1.2rem + 1.1vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.panel__intro { margin-top: -6px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.panel__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--sunk); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.panel__help { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.panel__small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.note-box { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--r-l); background: var(--sunk); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.note-box .icon { margin-top: 2px; }
.below-panel { padding: 0 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.word-break { word-break: break-all; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-size: 16px; font-weight: 600; }
.input, .textarea { width: 100%; border: 1px solid var(--control); border-radius: var(--r-m); background: var(--surface); color: var(--ink); font: 400 17px/1.5 var(--font-ui); }
.input { height: 50px; padding: 0 14px; }
.textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.input:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus-visible, .textarea:focus-visible { border-color: var(--ink); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--crit-fg); }
.input[aria-invalid="true"] { border: 2px solid var(--crit-fg); }

/* Rating scale (radio group) */
.rating { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rating legend { padding: 0; margin-bottom: 12px; font-size: 19px; line-height: 1.35; font-weight: 600; }
.rating__scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--control); border-radius: 8px; overflow: hidden; }
.rating__scale label { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; border-right: 1px solid var(--control); font-size: 19px; font-weight: 600; background: var(--surface); cursor: pointer; user-select: none; }
.rating__scale label:last-child { border-right: 0; }
.rating__scale input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rating__scale label:hover { background: var(--sunk); }
.rating__scale label:has(input:checked) { background: var(--ink); color: #FFFFFF; }
.rating__scale label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; z-index: 1; }
.rating__ends { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }

/* Player */
.player-body { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--chrome); }
.player { height: 100%; display: flex; flex-direction: column; }
.player-bar { flex: none; position: relative; z-index: 3; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 6px; background: var(--chrome); border-bottom: 1px solid var(--chrome-line); color: var(--chrome-text); }
.player-bar--preview { box-shadow: inset 0 3px 0 #F2C66D; }
.player-bar__left, .player-bar__right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.player-bar__left { gap: 12px; }
.player-bar__right { flex: none; }
.player-bar__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.player-bar__space { flex: none; font-size: 14px; color: var(--chrome-muted); }
.player-bar__divider { flex: none; width: 1px; height: 22px; background: var(--chrome-line); }
.cbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-m); background: transparent; color: var(--chrome-text); font: 600 15px var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.cbtn:hover { background: var(--chrome-raised); }
.cbtn:focus-visible { outline-color: #8AB4FF; }
.cbtn--finish { margin-left: 6px; padding: 0 16px; background: var(--chrome-text); color: var(--chrome); font-weight: 700; }
.cbtn--finish:hover { background: #FFFFFF; }
.cbtn--report { color: var(--chrome-muted); font-weight: 400; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.cbtn--icon { width: 44px; height: 44px; padding: 0; justify-content: center; }
.pill-preview { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-s); background: #F2C66D; color: #3A2A00; font-size: 13px; font-weight: 700; }
.only-compact { display: none !important; }
@media (max-width: 767px) {
  .player-bar { height: 44px; padding: 0 4px 0 0; }
  .player-bar__left { gap: 0; }
  .only-wide { display: none !important; }
  .only-compact { display: inline-flex !important; }
  .cbtn--finish { height: 32px; padding: 0 12px; font-size: 14px; }
  .pill-preview { margin-left: 8px; height: 22px; font-size: 12px; padding: 0 7px; }
}
.stage { flex: 1; position: relative; min-height: 0; background: #E9E6E1; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #E9E6E1; }
.stage:fullscreen { background: #000; }
.overlay { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay[hidden] { display: none; }
.overlay--dim { background: rgba(20,19,17,.45); }
.overlay--loading { color: #FFFFFF; transition: opacity .3s; }
.overlay--loading .shade { position: absolute; inset: 0; background: rgba(20,19,17,.58); }
.overlay--loading .msg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 19px; font-weight: 600; }
.loadbar { display: block; width: 180px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; }
.loadbar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 2px; background: #FFFFFF; animation: load 1.1s ease-in-out infinite; }
@keyframes load { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .loadbar::after { animation: none; left: 0; } }
.overlay--paused { background: var(--chrome-raised); }
.dialog-card { width: 100%; max-width: 500px; padding: 32px; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-overlay); display: flex; flex-direction: column; gap: 14px; }
.dialog-card h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.2; font-weight: 600; }
.dialog-card p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.dialog-card .actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767px) {
  .overlay--sheet { align-items: flex-end; padding: 0; }
  .overlay--sheet .dialog-card { max-width: none; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px 20px 28px; }
  .overlay--sheet .dialog-card .actions { flex-direction: column; }
  .overlay--sheet .dialog-card .btn { width: 100%; height: 52px; }
}
.fs-hint { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 5; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(30,29,27,.92); color: var(--chrome-text); font: 600 15px var(--font-ui); white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .4s; }
.fs-hint[hidden] { display: none; }
.menu { position: absolute; top: 50px; right: 6px; z-index: 6; width: 250px; padding: 6px; border-radius: var(--r-l); background: var(--chrome-raised); border: 1px solid var(--chrome-line); box-shadow: 0 12px 32px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu .cbtn { height: 48px; width: 100%; justify-content: flex-start; gap: 12px; font-size: 16px; }
.menu hr { border: 0; height: 1px; margin: 4px 8px; background: var(--chrome-line); }

/* Finish route (feedback, thank you) */
.finish-main { flex: 1; padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 96px); }
.finish-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.finish-inner h1 { font-family: var(--font-display); font-size: clamp(30px, 1.3rem + 1.6vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.check-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--pos-bg); color: var(--pos-fg); display: flex; align-items: center; justify-content: center; }
.finish-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.finish-page .player-bar { position: sticky; top: 0; }

/* Prototype helper (not part of the product) */
.proto { position: fixed; left: 12px; bottom: 12px; z-index: 1000; font-family: var(--font-ui); }
.proto__toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(30,29,27,.94); color: #FFFFFF; font: 600 13px var(--font-ui); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.proto__toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: #F2C66D; }
.proto__panel { position: absolute; left: 0; bottom: 46px; width: min(320px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; padding: 14px; border-radius: 12px; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-overlay); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.proto__panel[hidden] { display: none; }
.proto__panel h2 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.proto__panel a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.proto__panel ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.proto__panel p { color: var(--ink-2); line-height: 1.45; }
@media print { .proto { display: none; } }
.is-pseudo-fs .player-bar { display: none; }

@media (max-width: 767px) { .proto { left: 8px; bottom: 8px; } .proto__toggle { width: 36px; padding: 0; justify-content: center; opacity: .9; } .proto__lbl { display: none; } }
