:root {
  color-scheme: dark;
  /* Phase 1 semantic foundation. Legacy names remain aliases so the QA panel
     and existing pages keep their current appearance while later themes swap
     one stable token layer. */
  --color-canvas: #07080c;
  --color-surface: #0f1118;
  --color-surface-raised: #151823;
  --color-border: #252938;
  --color-border-strong: #4c5268;
  --color-text-muted: #8d93a7;
  --color-text: #f5f7ff;
  --color-brand: #ff2f92;
  --color-brand-soft: rgba(255, 47, 146, 0.14);
  --color-action: #42e8d6;
  --color-warning: #ffc85a;
  --color-danger: #ff5a70;
  --color-success: #65e49b;
  --bg: var(--color-canvas);
  --panel: var(--color-surface);
  --panel-2: var(--color-surface-raised);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --muted: var(--color-text-muted);
  --text: var(--color-text);
  --pink: var(--color-brand);
  --pink-soft: var(--color-brand-soft);
  --cyan: var(--color-action);
  --yellow: var(--color-warning);
  --red: var(--color-danger);
  --green: var(--color-success);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --motion-fast: 160ms;
  --motion-standard: 220ms;
  --ease-out-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --qa-font-size: 16px;
  --qa-canvas-width: 1440px;
  --qa-left-width: 250px;
  --qa-right-width: 290px;
  --qa-room-height: 520px;
}

* { box-sizing: border-box; user-select: none; -webkit-user-select: none; }
input, textarea, select, option, [contenteditable="true"], [contenteditable=""] { user-select: text; -webkit-user-select: text; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 47, 146, 0.1), transparent 28rem),
    radial-gradient(circle at 10% 100%, rgba(66, 232, 214, 0.06), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-size: var(--qa-font-size);
}

button, select { font: inherit; }

a { color: inherit; text-decoration: none; }

.launcher-page {
  display: block;
  padding: 0;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--bg) 92%, var(--pink) 8%), var(--bg) 48%),
    var(--bg);
}

.launcher-shell { width: min(calc(var(--qa-canvas-width) + 48px), 100%); margin-inline: auto; padding: clamp(28px, 5vw, 72px) 24px; }

.product-nav { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25); }
.product-nav[hidden], .product-account[hidden], .product-assurance[hidden], .product-footer[hidden] { display: none; }
.product-nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(var(--qa-canvas-width), calc(100% - 48px)); min-height: 68px; margin-inline: auto; }
.product-wordmark { display: inline-flex; align-items: baseline; justify-self: start; gap: 10px; width: fit-content; }
.product-wordmark-name { color: var(--text); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.product-wordmark-stage { color: var(--pink); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.product-nav-links { display: flex; align-items: center; gap: 28px; }
.product-nav-links a { position: relative; padding: 24px 0 22px; color: var(--muted); font-size: 12px; font-weight: 650; }
.product-nav-links a::after { content: ''; position: absolute; right: 0; bottom: 18px; left: 0; height: 1px; background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform 180ms var(--ease-out-ui); }
.product-nav-links a:hover, .product-nav-links a:focus-visible { color: var(--text); }
.product-nav-links a:hover::after, .product-nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.product-account { position: relative; justify-self: end; }
.product-account-trigger { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 5px 8px 5px 5px; border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.product-account-trigger:hover, .product-account-trigger[aria-expanded="true"] { background: color-mix(in srgb, var(--text) 7%, transparent); }
.product-account-trigger:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.product-account-trigger > svg { width: 14px; transition: transform 180ms var(--ease-out-ui); }
.product-account-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.product-avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid color-mix(in srgb, var(--pink) 38%, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--pink) 11%, var(--bg)); color: var(--text); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.product-avatar.large { width: 42px; height: 42px; font-size: 11px; }
.product-account-label { font-size: 12px; font-weight: 700; }
.product-account-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(320px, calc(100vw - 28px)); padding: 18px; border: 1px solid color-mix(in srgb, var(--line) 78%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--bg) 94%, var(--text) 6%); box-shadow: 0 22px 70px rgba(17, 12, 20, .18); color: var(--text); }
.product-account-head { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; }
.product-account-head div { display: grid; gap: 2px; }
.product-account-head strong { font-size: 14px; }
.product-account-head small { color: var(--muted); font-size: 10px; }
.product-account-status { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 12px; padding: 11px 0; border-block: 1px solid color-mix(in srgb, var(--line) 70%, transparent); color: var(--muted); font-size: 11px; line-height: 1.55; }
.product-account-status i { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--green); }
.product-locale-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 10px; padding: 9px 7px; color: var(--muted); font-size: 11px; }
.product-locale-field select, .footer-locale-field select { min-height: 32px; padding: 5px 28px 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.product-account-actions { display: grid; gap: 2px; }
.product-account-actions button { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.product-account-actions button:not(:disabled):hover, .product-account-actions button:not(:disabled):focus-visible { background: color-mix(in srgb, var(--text) 6%, transparent); }
.product-account-actions button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.product-account-actions button:disabled { color: var(--muted); cursor: not-allowed; }
.product-account-actions button > span { font-size: 12px; font-weight: 650; }
.product-account-actions button > small { color: var(--muted); font-size: 9px; }
.product-account-note { margin: 11px 7px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.product-assurance { border-top: 1px solid color-mix(in srgb, var(--product-footer-text, #f4f1f5) 10%, transparent); background: color-mix(in srgb, var(--product-footer-bg, #111015) 92%, var(--product-footer-text, #f4f1f5) 8%); color: var(--product-footer-text, #f4f1f5); }
.product-assurance-inner { display: grid; grid-template-columns: repeat(3, 1fr); width: min(var(--qa-canvas-width), calc(100% - 48px)); margin-inline: auto; }
.product-assurance article { display: flex; align-items: flex-start; gap: 16px; min-height: 118px; padding: 30px 34px; border-right: 1px solid color-mix(in srgb, var(--product-footer-text, #f4f1f5) 10%, transparent); }
.product-assurance article:first-child { padding-left: 0; }
.product-assurance article:last-child { padding-right: 0; border-right: 0; }
.product-assurance article > span { color: var(--pink); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.product-assurance article div { display: grid; gap: 7px; }
.product-assurance strong { font-size: 14px; letter-spacing: .02em; }
.product-assurance p { margin: 0; color: var(--product-footer-muted, #9d98a3); font-size: 11px; line-height: 1.6; }
.product-footer { background: var(--product-footer-bg, #111015); color: var(--product-footer-text, #f4f1f5); }
.product-footer-inner { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(480px, 1.3fr); gap: clamp(64px, 10vw, 150px); width: min(var(--qa-canvas-width), calc(100% - 48px)); margin-inline: auto; padding: clamp(62px, 8vw, 104px) 0 clamp(48px, 6vw, 78px); }
.product-footer-brand { max-width: 430px; }
.product-footer-kicker { margin: 0 0 22px; color: var(--pink); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.product-footer-brand h2 { margin: 0; max-width: 390px; color: var(--product-footer-text, #f4f1f5); font-size: clamp(28px, 3.1vw, 46px); line-height: 1.08; letter-spacing: -.045em; }
.product-footer-brand > p:last-child { margin: 22px 0 0; color: var(--product-footer-muted, #9d98a3); font-size: 12px; line-height: 1.7; }
.product-footer-links { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 34px; }
.product-footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.product-footer-links strong { margin-bottom: 8px; color: var(--product-footer-text, #f4f1f5); font-size: 11px; font-weight: 800; }
.product-footer-links a { position: relative; color: var(--product-footer-muted, #9d98a3); font-size: 11px; line-height: 1.5; }
.product-footer-links a:hover, .product-footer-links a:focus-visible { color: var(--product-footer-text, #f4f1f5); }
.product-footer-links a:focus-visible { outline: 1px solid var(--pink); outline-offset: 4px; }
.product-footer-bottom { display: flex; justify-content: space-between; gap: 30px; width: min(var(--qa-canvas-width), calc(100% - 48px)); margin-inline: auto; padding: 22px 0 28px; border-top: 1px solid color-mix(in srgb, var(--product-footer-text, #f4f1f5) 10%, transparent); color: var(--product-footer-muted, #9d98a3); font-size: 9px; letter-spacing: .03em; }
.footer-locale-field { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.footer-locale-field select { border-color: color-mix(in srgb, var(--product-footer-text, #f4f1f5) 18%, transparent); background: color-mix(in srgb, var(--product-footer-bg, #111015) 86%, white 14%); color: var(--product-footer-text, #f4f1f5); }

.launcher-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .72fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: end;
  min-height: min(590px, 64vh);
  padding: clamp(24px, 4vw, 58px) 0 clamp(42px, 6vw, 80px);
}

.launcher-copy { min-width: 0; }

.launcher-copy { position: relative; }

/* The original logo's white areas are transparent, so every theme shows through. */
.brand-logo { width: min(var(--logo-width, 132px), 100%); margin: 0 0 var(--logo-gap, 18px); color: var(--color-text); transform: translate(var(--logo-x, 0px), var(--logo-y, 0px)); pointer-events: none; }
.brand-logo[hidden] { display: none; }
.brand-logo[data-align="center"] { margin-inline: auto; }
.brand-logo[data-align="right"] { margin-left: auto; }
.brand-logo svg { display: block; width: 100%; height: auto; aspect-ratio: 1140 / 720; }
/* Grid-area anchoring keeps this purely decorative layer behind the left
   column, including when the marquee moves to a second row on small screens.
   A separate crop prevents oversized/offset artwork from extending the page. */
.brand-background { position: absolute; grid-area: 1 / 1 / 2 / 2; inset: calc(0px - clamp(28px, 5vw, 72px) - clamp(24px, 4vw, 58px)) 0 0 -24px; margin: 0; z-index: -1; overflow: hidden; pointer-events: none; color: var(--color-text); opacity: .08; }
.brand-background[hidden] { display: none; }
.brand-background svg { position: absolute; display: block; width: var(--background-logo-width, 118%); max-width: none; height: auto; aspect-ratio: 1140 / 720; left: var(--background-logo-x, -16%); top: var(--background-logo-y, -14%); }
.brand-background-art { position: absolute; width: var(--background-logo-width, 118%); aspect-ratio: 1140 / 720; left: var(--background-logo-x, -16%); top: var(--background-logo-y, -14%); pointer-events: none; }
.brand-background-art[hidden] { display: none; }
.brand-background-art svg { width: 100%; height: 100%; inset: 0; overflow: visible; }
.brand-background-camera { position: absolute; inset: 0; z-index: 1; transform-origin: 50.350877% 52.777778%; }
.brand-background-outline { position: absolute; inset: 0; z-index: 3; }
.brand-background-lids { position: absolute !important; inset: 0; z-index: 2; pointer-events: none; }
.brand-background[data-motion-ready] > svg { visibility: hidden; }
.brand-background[data-motion-running] .brand-background-camera { will-change: transform; }
[data-logo-lens] { transform-box: view-box; transform-origin: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .brand-background[data-motion-ready] > svg { visibility: visible; }
  .brand-background-art { display: none; }
}
.qa-logo-group { padding: 16px 0; border-bottom: 1px solid #292c38; }
.qa-logo-group > summary { cursor: pointer; color: #eef0f8; font-size: 13px; font-weight: 700; }
.qa-logo-group > summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.qa-logo-group > .qa-hint { margin: 8px 0 0; }
.qa-logo-controls { padding-top: 14px; }
.qa-logo-controls .qa-hint { margin: 10px 0; }
.qa-logo-controls .qa-actions { margin-top: 14px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.launcher-shell h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(42px, 5.7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.062em;
  text-wrap: balance;
}

/* React Bits True Focus adaptation: the editable h1 remains the source of
   truth, while a sibling overlay owns the decorative focus frame. */
.launcher-shell h1[data-true-focus] { position: relative; z-index: 1; }
.launcher-shell h1[data-true-focus] > [data-true-focus-source] { transition: color 220ms var(--ease-out-ui), opacity 220ms var(--ease-out-ui); }
.launcher-shell h1[data-true-focus].true-focus-ready > [data-true-focus-source] { color: transparent; }
.true-focus-overlay { position: absolute; z-index: 2; pointer-events: auto; user-select: none; white-space: pre-line; overflow: visible; }
.true-focus-word { position: relative; display: inline-block; cursor: default; transition: filter var(--true-focus-duration, 420ms) var(--ease-out-ui), opacity var(--true-focus-duration, 420ms) var(--ease-out-ui), color var(--true-focus-duration, 420ms) var(--ease-out-ui); }
.true-focus-word:not(.active) { filter: blur(var(--true-focus-blur, 3px)); opacity: .42; }
.true-focus-word.active { color: var(--color-text); }
.true-focus-frame { position: absolute; pointer-events: none; border: 0; opacity: 0; transition: left var(--true-focus-duration, 420ms) var(--ease-out-ui), top var(--true-focus-duration, 420ms) var(--ease-out-ui), width var(--true-focus-duration, 420ms) var(--ease-out-ui), height var(--true-focus-duration, 420ms) var(--ease-out-ui), opacity 160ms ease-out; }
.true-focus-overlay.ready .true-focus-frame { opacity: 1; }
.true-focus-corner { position: absolute; width: 13px; height: 13px; border: 2px solid var(--true-focus-border, var(--pink)); filter: drop-shadow(0 0 5px var(--true-focus-glow, var(--pink))); }
.true-focus-corner.tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.true-focus-corner.tr { top: -8px; right: -8px; border-left: 0; border-bottom: 0; }
.true-focus-corner.bl { bottom: -8px; left: -8px; border-right: 0; border-top: 0; }
.true-focus-corner.br { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }

.launcher-lead {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.78;
}

/* React Bits Warp Text adaptation. The semantic paragraph stays in the DOM
   for copy editing and screen readers; the canvas is only a visual layer. */
.launcher-lead[data-warp-text] { min-height: 2em; }
.launcher-lead[data-warp-text].warp-text-ready { color: transparent; -webkit-text-fill-color: transparent; }
.warp-text-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: auto; }

.transcript-cover {
  position: relative;
  min-width: 0;
  width: min(var(--transcript-width, 100%), calc(100% + clamp(0px, 9vw, 140px)));
  height: var(--transcript-height, 420px);
  transform: translate(var(--transcript-x, 0px), var(--transcript-y, 0px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.launcher-hero.without-marquee { grid-template-columns: minmax(0, 1fr); }
.transcript-stream {
  position: relative;
  height: 100%;
  overflow: hidden;
  /* Fade only text, never paint a gradient panel over the page. */
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / var(--transcript-edge-opacity, 0)), #000 var(--transcript-fade-size, 8%), #000 calc(100% - var(--transcript-fade-size, 8%)), rgb(0 0 0 / var(--transcript-edge-opacity, 0)));
}
.transcript-stream:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }
.transcript-stream > .magic-marquee-group { min-height: 100%; }
.transcript-pair {
  position: relative;
  display: grid;
  flex: none;
  padding: 3px 0;
  outline: none;
  cursor: default;
}
.transcript-swap-layers { display: grid; align-items: center; pointer-events: none; }
.transcript-pair p {
  grid-area: 1 / 1;
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.transcript-raw {
  color: var(--transcript-raw-color);
  font-size: var(--transcript-raw-size, 17px);
  font-weight: 400;
  line-height: 1.85;
}
.transcript-clean {
  color: color-mix(in srgb, var(--transcript-gooey-color) var(--swap-glint, 0%), var(--transcript-clean-color));
  font-size: var(--transcript-clean-size, 25px);
  font-weight: var(--transcript-clean-weight, 750);
  line-height: 1.5;
  letter-spacing: -.025em;
  opacity: 0;
}
.transcript-cover[data-gooey-swap="false"] .transcript-swap-layers { filter: none !important; }
.transcript-stream[data-keyboard-pause="true"] > .magic-marquee-group { animation-play-state: paused; }
.transcript-pair:focus-visible { outline: 1px solid color-mix(in srgb, var(--pink) 70%, transparent); outline-offset: 8px; }
.transcript-raw mark { color: inherit; background: transparent; text-decoration: underline; text-decoration-color: var(--transcript-issue-color); text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
.transcript-raw mark[data-problem-style="highlight"] { background: color-mix(in srgb, var(--transcript-highlight-color) var(--transcript-highlight-opacity, 16%), transparent); box-decoration-break: clone; -webkit-box-decoration-break: clone; text-decoration: none; }
.transcript-raw mark[data-problem-style="box"] { outline: 1px dashed color-mix(in srgb, var(--transcript-issue-color) 88%, transparent); outline-offset: 1px; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-decoration: none; }
.transcript-raw mark[data-problem-style="both"] { background: color-mix(in srgb, var(--transcript-highlight-color) var(--transcript-highlight-opacity, 16%), transparent); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.transcript-clean strong { font-weight: inherit; color: color-mix(in srgb, var(--transcript-gooey-color) var(--swap-glint, 0%), var(--transcript-emphasis-color)); }
.transcript-cover[data-static="true"] .transcript-stream { mask-image: none; }

.text-effect-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.chapter-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.chapter-heading span { color: var(--pink); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.chapter-heading strong { color: var(--muted); font-size: 12px; font-weight: 600; }

.version-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(260px, .68fr);
  grid-template-rows: repeat(2, minmax(148px, auto));
  gap: 12px;
}

.version-card {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(100px, .32fr) minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  column-gap: clamp(18px, 3vw, 44px);
  align-items: start;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .12);
  transition: transform var(--motion-standard) var(--ease-out-ui), border-color var(--motion-fast) var(--ease-out-ui), background-color var(--motion-fast) var(--ease-out-ui);
}

.version-card:hover { transform: translateX(6px); border-color: var(--line-strong); }
.version-card:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.version-card.featured {
  grid-row: 1 / span 2;
  min-height: 312px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  border-color: color-mix(in srgb, var(--pink) 46%, var(--line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--pink) 12%, transparent), var(--panel));
}
.version-card:not(.featured) {
  background: linear-gradient(145deg, color-mix(in srgb, var(--pink) 8%, transparent), var(--panel));
}
.version-card-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.version-index { color: var(--pink); font-weight: 900; letter-spacing: 0.12em; }
.version-status { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--pink) 44%, var(--line)); border-radius: 999px; color: var(--text); background: var(--pink-soft); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.version-card h2 { grid-column: 2; margin: 0 0 9px; font-size: clamp(21px, 2vw, 29px); }
.version-card p { grid-column: 2; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.68; }
.card-cta { grid-column: 3; grid-row: 1 / span 2; align-self: center; display: inline-block; color: var(--cyan); font-size: 12px; font-weight: 750; white-space: nowrap; }
.version-card.featured .version-card-meta { grid-column: 1 / -1; }
.version-card.featured h2 { grid-column: 1; align-self: end; margin: 48px 0 12px; font-size: clamp(32px, 3.8vw, 52px); }
.version-card.featured p { grid-column: 1; max-width: 38ch; font-size: 15px; }
.version-card.featured .card-cta { grid-column: 2; grid-row: 2 / span 2; }

/* English copy needs a wider reading measure. Keep the chapter stack compact
   by giving V2/V3 their full text column and reserving only the action rail. */
html[lang="en-US"] .version-card:not(.featured) {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(14px, 2vw, 30px);
}
html[lang="en-US"] .version-card:not(.featured) .version-card-meta { grid-column: 1; grid-row: 1; }
html[lang="en-US"] .version-card:not(.featured) h2 { grid-column: 1; grid-row: 2; max-width: 20ch; }
html[lang="en-US"] .version-card:not(.featured) p { grid-column: 1; grid-row: 3; width: min(100%, 44ch); max-width: 44ch; }
html[lang="en-US"] .version-card:not(.featured) .card-cta { grid-column: 2; grid-row: 1 / -1; }

.boundary-note {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.boundary-note strong { color: var(--yellow); white-space: nowrap; }

/* React Bits Scroll Expand adaptation: the selected training card becomes the page transition. */
.scroll-expand-transition,
.scroll-expand-arrival {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.scroll-expand-transition { background: rgba(7, 8, 12, 0); }
.scroll-expand-transition__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(var(--se-top) var(--se-right) var(--se-bottom) var(--se-left) round var(--se-start-radius));
  will-change: clip-path;
}

.scroll-expand-transition__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(30px, 6vw, 108px);
  border-radius: 0;
  background: var(--panel);
  border: 0;
  box-shadow: none;
  transform: scale(1.12);
  transform-origin: center;
  will-change: transform;
}

.scroll-expand-transition__card .version-card { min-height: 100%; }
.scroll-expand-transition__card h2 { margin-top: auto; font-size: clamp(36px, 7vw, 88px); }
.scroll-expand-transition__card p { max-width: 680px; min-height: 0; font-size: clamp(16px, 2vw, 24px); }
.scroll-expand-transition__card .card-cta { margin-top: 24px; font-size: 18px; }
.scroll-expand-transition__card.featured { background: linear-gradient(145deg, rgba(255, 47, 146, 0.22), var(--panel)); }

.scroll-expand-transition__scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.08) 52%, rgba(0, 0, 0, 0.3));
  will-change: opacity;
}

.scroll-expand-arrival {
  background: var(--panel);
  opacity: 1;
  transition: opacity var(--se-arrival-duration, 340ms) var(--se-arrival-ease, ease-out);
}
.scroll-expand-arrival.is-settling { opacity: 0; }

/* The target page installs this cover before its body can paint, preventing a white flash. */
html.scroll-expand-entry-pending body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1900;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  background: var(--panel);
  transition: clip-path var(--se-arrival-duration, 340ms) var(--se-arrival-ease, cubic-bezier(0.22, 1, 0.36, 1));
}
html.scroll-expand-entry-pending[data-scroll-expand-mode="v2"] body::before {
  background: linear-gradient(145deg, rgba(255, 47, 146, 0.3), var(--panel) 62%);
}
html.scroll-expand-entry-pending .topbar,
html.scroll-expand-entry-pending .workspace {
  opacity: 0;
  transform: translate3d(var(--se-handoff-x, 0px), var(--se-handoff-y, var(--se-handoff-offset, 38px)), 0);
  transition: opacity var(--se-handoff-element-duration, 320ms) var(--se-arrival-ease, ease), transform var(--se-handoff-element-duration, 320ms) var(--se-arrival-ease, ease);
  will-change: opacity, transform;
}
html.scroll-expand-entry-pending[data-scroll-expand-direction="up"] { --se-handoff-x: 0px; --se-handoff-y: var(--se-handoff-offset, 38px); }
html.scroll-expand-entry-pending[data-scroll-expand-direction="down"] { --se-handoff-x: 0px; --se-handoff-y: calc(0px - var(--se-handoff-offset, 38px)); }
html.scroll-expand-entry-pending[data-scroll-expand-direction="left"] { --se-handoff-x: var(--se-handoff-offset, 38px); --se-handoff-y: 0px; }
html.scroll-expand-entry-pending[data-scroll-expand-direction="right"] { --se-handoff-x: calc(0px - var(--se-handoff-offset, 38px)); --se-handoff-y: 0px; }
html.scroll-expand-entry-pending.scroll-expand-entry-settling[data-scroll-expand-direction="up"] body::before { clip-path: inset(100% 0 0 0); }
html.scroll-expand-entry-pending.scroll-expand-entry-settling[data-scroll-expand-direction="down"] body::before { clip-path: inset(0 0 100% 0); }
html.scroll-expand-entry-pending.scroll-expand-entry-settling[data-scroll-expand-direction="left"] body::before { clip-path: inset(0 0 0 100%); }
html.scroll-expand-entry-pending.scroll-expand-entry-settling[data-scroll-expand-direction="right"] body::before { clip-path: inset(0 100% 0 0); }
html.scroll-expand-entry-pending.scroll-expand-entry-settling .topbar { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: var(--se-handoff-topbar-delay, 60ms); }
html.scroll-expand-entry-pending.scroll-expand-entry-settling .workspace { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: var(--se-handoff-content-delay, 150ms); }

@media (prefers-reduced-motion: reduce) {
  .scroll-expand-transition,
  .scroll-expand-arrival { display: none; }
  html.scroll-expand-entry-pending body::before { display: none; transition: none; }
  html.scroll-expand-entry-pending .topbar,
  html.scroll-expand-entry-pending .workspace { opacity: 1; transform: none; transition: none; }
}

html.is-page-transitioning { cursor: progress; }
html.is-page-transitioning .version-card { pointer-events: none; }

.trainer-page { min-height: 100vh; overflow-x: hidden; --mode-accent: var(--pink); }
.trainer-page[data-mode="v1"] { --mode-accent: var(--cyan); }
.trainer-page[data-mode="v2"] { --mode-accent: var(--pink); }
.trainer-page[data-mode="v3"] { --mode-accent: var(--yellow); }

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.back-link { color: var(--muted); font-size: 14px; transition: color var(--motion-fast) var(--ease-out-ui); }
.back-link:hover { color: var(--text); }
.brand { font-weight: 850; letter-spacing: -0.02em; }
.version-pill { padding: 5px 9px; border-radius: 7px; background: color-mix(in srgb, var(--mode-accent) 12%, transparent); color: var(--mode-accent); font-size: 11px; font-weight: 900; }
.topbar-spacer { flex: 1; }
.timer { min-width: 62px; font-variant-numeric: tabular-nums; color: #d9deee; }

.ghost-btn, .primary-btn, .pressure-btn, .scenario-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel-2);
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out-ui), border-color var(--motion-fast) var(--ease-out-ui), background-color var(--motion-fast) var(--ease-out-ui), color var(--motion-fast) var(--ease-out-ui), opacity var(--motion-fast) var(--ease-out-ui);
}

.ghost-btn { border-radius: 10px; padding: 9px 13px; }
.ghost-btn.active { border-color: var(--cyan); color: var(--cyan); }
.ghost-btn:hover, .pressure-btn:hover, .scenario-btn:hover { border-color: var(--line-strong); }
.ghost-btn:active, .primary-btn:active, .pressure-btn:active, .scenario-btn:active { transform: translateY(1px); }
.ghost-btn:focus-visible, .primary-btn:focus-visible, .pressure-btn:focus-visible, .scenario-btn:focus-visible, .back-link:focus-visible {
  outline: 2px solid var(--mode-accent);
  outline-offset: 3px;
}
.ghost-btn:disabled, .primary-btn:disabled, .pressure-btn:disabled, .scenario-btn:disabled { cursor: not-allowed; opacity: .52; }

.workspace {
  display: grid;
  grid-template-columns: var(--qa-left-width) minmax(0, 1fr) var(--qa-right-width);
  min-height: calc(100vh - 68px);
}

.side-panel { padding: 20px; background: color-mix(in srgb, var(--panel) 72%, transparent); }
.side-panel.left { border-right: 1px solid var(--line); }
.side-panel.right { border-left: 1px solid var(--line); }
.panel-heading { margin: 0 0 18px; color: #d8dcec; font-size: 13px; letter-spacing: 0.08em; }

.metric-list { display: grid; gap: 10px; }
.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(37, 41, 56, 0.7);
}
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { font-variant-numeric: tabular-nums; }
.metric .bad { color: var(--red); }
.metric .warn { color: var(--yellow); }
.metric .hedge { color: #ffa94d; }
.metric .good { color: var(--green); }

.goal-card, .coach-card, .event-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.goal-card { margin-top: 22px; }
.goal-card small, .coach-card small { color: var(--muted); }
.goal-card p, .coach-card p { margin: 8px 0 0; line-height: 1.55; }

.audience-config {
  margin-bottom: 22px;
  padding: 15px;
  border: 1px solid rgba(255, 47, 146, 0.34);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 47, 146, 0.08), rgba(15, 17, 24, 0.92));
}
.audience-config h3 { margin: 0; font-size: 14px; }
.audience-config > p { margin: 6px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.brief-field { display: grid; gap: 5px; margin-top: 10px; }
.brief-field span { color: #aeb4c6; font-size: 11px; }
.brief-field select, .brief-field input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--control-bg);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}
.brief-summary { margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(7, 8, 12, 0.62); }
.brief-summary strong { display: block; color: var(--cyan); font-size: 12px; }
.brief-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.brief-provider-note { display: grid; gap: 4px; margin-top: 12px; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; background: rgba(7, 8, 12, 0.46); }
.brief-provider-note span { color: var(--muted); font-size: 10px; }
.brief-provider-note strong { color: var(--cyan); font-size: 11px; }
.brief-provider-note small { color: #777e92; font-size: 9px; line-height: 1.45; }
.provider-fields { display: none; }.provider-fields.visible { display: block; }
.audience-config-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.audience-config-actions button { padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 11px; }
.audience-config-actions button:first-child { border-color: rgba(255, 47, 146, 0.6); background: var(--pink-soft); }
.audience-config-actions [data-audience-preview] { grid-column: 1 / -1; background: transparent; color: var(--muted); }
.provider-status { min-height: 16px; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.stage {
  min-width: 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stage-head h1 { margin: 0; font-size: 19px; }
.stage-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.stage-status { margin-left: auto; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 9px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: 12px; transition: border-color var(--motion-fast), background-color var(--motion-fast), color var(--motion-fast); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #646a7d; }
.status-dot.live { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 90, 112, 0.1); animation: pulse 1.5s infinite; }
.stage-status[data-stt-state="requesting"], .stage-status[data-stt-state="processing"] { border-color: color-mix(in srgb, var(--yellow) 25%, transparent); background: color-mix(in srgb, var(--yellow) 7%, transparent); color: color-mix(in srgb, var(--yellow) 82%, var(--text)); }
.stage-status[data-stt-state="listening"] { border-color: color-mix(in srgb, var(--green) 25%, transparent); background: color-mix(in srgb, var(--green) 7%, transparent); color: color-mix(in srgb, var(--green) 82%, var(--text)); }
.stage-status[data-stt-state="paused"] { border-color: color-mix(in srgb, var(--yellow) 34%, transparent); color: var(--yellow); }
.stage-status[data-stt-state="error"], .stage-status[data-stt-state="permission-denied"] { border-color: color-mix(in srgb, var(--red) 34%, transparent); background: color-mix(in srgb, var(--red) 7%, transparent); color: color-mix(in srgb, var(--red) 82%, var(--text)); }
.stage-status[data-stt-state="complete"] { border-color: color-mix(in srgb, var(--green) 28%, transparent); color: var(--green); }
.stage-status [data-stt-retry] { padding: 2px 7px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font-size: 10px; }
.stage-status [data-stt-retry]:focus-visible { outline: 2px solid var(--mode-accent); outline-offset: 2px; }

.room {
  min-height: var(--qa-room-height);
  border: 1px solid rgba(255, 47, 146, 0.38);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 47, 146, 0.05), transparent 32%),
    #090b10;
  overflow: hidden;
  position: relative;
}

.camera-room { display: grid; place-items: center; padding: 26px; }
.duo-room { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(210px, 0.48fr); gap: 12px; padding: 12px; }
.creator-room { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 12px; padding: 12px; }
.audience-stack { display: grid; gap: 12px; }

.audience-primary-stage {
  position: relative;
  min-width: 0;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0a0b10;
}
.audience-live-slot { position: absolute; inset: 0; }
.audience-live-slot[hidden], .audience-preview-caption[hidden] { display: none; }
.audience-live-slot > .audience-tile { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; }
.audience-preview-caption { position: absolute; z-index: 4; left: 18px; bottom: 76px; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(7,8,12,.76); backdrop-filter: blur(10px); pointer-events: none; }
.audience-preview-caption span { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.audience-preview-caption strong { color: #eef1f7; font-size: 12px; }
.creator-mini-tile { min-width: 0; }
.creator-mini-tile .video-off { padding: 20px; text-align: center; line-height: 1.6; }

.video-tile, .audience-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #11131a;
}
.camera-room .video-tile { width: min(780px, 100%); aspect-ratio: 16 / 9; }
.video-tile video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1) !important; background: #0c0e14; }
.video-off {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: radial-gradient(circle, #181b25, #0c0e13 70%);
}
.video-tile.camera-on .video-off { display: none; }

/* V1 keeps the original expression-diagnostic boundary; the camera is only the subtitle background. */
.v1-diagnostic-room { padding: 14px; }
.v1-diagnostic-room .video-tile { width: 100%; height: 100%; min-height: calc(var(--qa-room-height) - 28px); aspect-ratio: auto; background: #08090d; }
.v1-diagnostic-room .video-tile video { position: absolute; inset: 0; }
.v1-diagnostic-room .video-off { z-index: 1; }
.v1-diagnostic-room .camera-target, .v1-diagnostic-room .tile-label { z-index: 6; }
.v1-diagnostic-room .prompt-banner { z-index: 7; }
.stt-camera-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 11px;
  overflow: hidden;
  padding: 74px clamp(24px, 5vw, 72px) 100px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(4,5,8,.08) 12%, rgba(4,5,8,.36) 54%, rgba(4,5,8,.9) 100%);
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.stt-camera-overlay .placeholder { align-self: center; margin: auto; color: rgba(255,255,255,.52); font-size: clamp(17px, 2vw, 24px); }
.stt-line { font-size: clamp(19px, 2.25vw, 30px); font-weight: 520; line-height: 1.55; letter-spacing: .01em; transition: opacity 180ms ease, transform 180ms ease; }
.stt-line.old { color: rgba(255,255,255,.48); font-size: clamp(15px, 1.7vw, 22px); }
.stt-line.interim { color: rgba(255,255,255,.72); }
.stt-token { padding: 0; border: 0; background: transparent; color: inherit; text-shadow: inherit; }
.stt-token.filler { color: #ff7b8d; text-decoration: underline wavy #ff7b8d; text-underline-offset: 5px; }
.stt-token.hedge { color: #ffb15c; }
.stt-token.vague { color: #ffe06e; border-bottom: 2px dashed #ffe06e; }
.stt-token.repeat { padding-inline: .12em; border-radius: .16em; background: rgba(157, 200, 255, .2); color: #b9d8ff; }
.diagnostic-feedback-panel .feedback-empty { margin: 0 0 16px; color: #666d7e; font-size: 12px; line-height: 1.6; }
.diagnostic-feedback { max-height: calc(100vh - 150px); }
.diagnostic-feedback .event-card { position: relative; padding: 11px 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.diagnostic-feedback .event-card strong { display: block; margin-bottom: 5px; }
.diagnostic-feedback .vague-event strong { color: #ffe06e; }
.diagnostic-feedback .filler-event strong { color: #ff7b8d; }
.diagnostic-feedback .hedge-event strong { color: #ffb15c; }
.diagnostic-feedback .repeat-event strong { color: #9dc8ff; }

.camera-target {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 7px rgba(255, 47, 146, 0.14), 0 0 26px var(--pink);
}
.camera-target::after { content: "看这里"; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #fff; font-size: 10px; font-weight: 800; }
.tile-label { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; border-radius: 8px; background: rgba(4, 5, 8, 0.72); font-size: 12px; }

.audience-tile {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  transition: border-color 180ms ease, transform 180ms ease;
}
.audience-tile > * { position: relative; z-index: 2; }
.audience-tile .avatar-video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0d12; }
.audience-tile[data-avatar-state="live"] { align-items: end; }
.audience-tile[data-avatar-state="live"] .avatar { opacity: 0; }
.audience-tile[data-avatar-state="live"] .audience-copy { width: calc(100% + 20px); margin: 70px -10px -10px; padding: 26px 10px 10px; background: linear-gradient(transparent, rgba(4, 5, 8, 0.92)); }
.audience-tile.speaking { border-color: var(--pink); box-shadow: inset 0 0 0 1px rgba(255, 47, 146, 0.4), 0 0 34px rgba(255, 47, 146, 0.14); }
.audience-tile.speaking .avatar { animation: avatar-talk 420ms ease-in-out infinite alternate; }
.avatar-provider-state { display: inline-block; margin-top: 10px; padding: 4px 7px; border-radius: 99px; background: rgba(66, 232, 214, 0.09); color: var(--cyan); font-size: 9px; }
.audience-tile.attention { border-color: var(--pink); transform: translateY(-2px); }
.avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #373d54, #181b27);
  border: 2px solid #515a77;
  font-size: 30px;
  font-weight: 900;
}
.audience-tile.attention .avatar { border-color: var(--pink); box-shadow: 0 0 0 7px var(--pink-soft); }
.audience-name { margin-top: 14px; font-weight: 800; }
.audience-role { margin-top: 4px; color: var(--muted); font-size: 12px; }
.audience-reaction { min-height: 38px; margin-top: 12px; color: #dfe3f2; font-size: 13px; line-height: 1.45; }

.prompt-banner {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(760px, calc(100% - 36px));
  transform: translateX(-50%);
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(7, 8, 12, 0.86);
  backdrop-filter: blur(12px);
  line-height: 1.5;
}
.prompt-banner strong { color: var(--cyan); }

/* Topic choice lives beneath the training stage, never over the creator's image. */
body[data-mode="v1"] .stage { grid-template-rows: auto minmax(0, 1fr) auto auto; }
body[data-mode="v2"] .stage { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.creator-topic-picker { min-width: 0; color: var(--text); background: var(--control-bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transform: translate(var(--qa-x, 0px), var(--qa-y, 0px)); width: var(--qa-width, auto); height: var(--qa-height, auto); }
.creator-topic-picker [hidden] { display: none !important; }
.topic-toggle { display: flex; gap: 16px; align-items: center; width: 100%; min-height: 60px; padding: 14px 18px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.topic-toggle:hover { background: var(--panel-2); }
.topic-label { flex: none; color: var(--cyan); font-size: 13px; font-weight: 700; }
.topic-toggle #sessionPrompt { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.topic-chevron { flex: none; color: var(--muted); }
.topic-toggle[aria-expanded="true"] .topic-chevron { transform: rotate(180deg); }
.topic-panel { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.topic-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.topic-legend { padding: 14px 0 12px; font-size: 14px; font-weight: 650; }
.topic-source { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
.topic-source label { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 14px; }
.topic-source input { accent-color: var(--cyan); }
.topic-input-panel > label { display: block; margin-bottom: 8px; color: var(--text); font-size: 13px; }
.topic-input-panel textarea, .topic-input-panel select { display: block; box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; line-height: 1.6; }
.topic-input-panel textarea { resize: vertical; min-height: 100px; max-height: 260px; }
.topic-template-preview p { margin: 12px 0; color: var(--text); line-height: 1.7; font-size: 14px; overflow-wrap: anywhere; }
.topic-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.creator-topic-picker > .topic-hint { margin: 0; padding: 0 18px 12px; }
.topic-error { color: var(--red); font-size: 13px; line-height: 1.6; }
.topic-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.topic-actions button { min-height: 44px; }
.creator-topic-picker :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.topic-panel fieldset:disabled { opacity: .65; }

.transcript {
  min-height: 112px;
  max-height: 180px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: #d8ddec;
  line-height: 1.75;
}
.transcript .placeholder { color: #62687a; }
.interim { color: #747b91; }

.v1-diagnostic-room .stt-camera-overlay {
  inset: 0;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  padding: 74px clamp(24px, 5vw, 72px) 100px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(4,5,8,.08) 12%, rgba(4,5,8,.36) 54%, rgba(4,5,8,.9) 100%);
}
.v1-diagnostic-room .stt-camera-overlay .placeholder { color: rgba(255,255,255,.52); }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.primary-btn { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--pink); font-weight: 850; }
.primary-btn.running { background: var(--red); }
.control-note { color: var(--muted); font-size: 12px; }

.recording-badge {
  position: absolute;
  z-index: 8;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(7,8,12,.72);
  color: #fff;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(10px);
}
.recording-badge[hidden] { display: none; }
.recording-badge > span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,90,112,.14); animation: pulse 1.4s ease-in-out infinite; }
.recording-badge strong { letter-spacing: .1em; }
.recording-badge time { color: rgba(255,255,255,.72); }

.media-device-panel {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.media-device-panel summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 750;
}
.media-device-panel summary::-webkit-details-marker { display: none; }
.media-device-panel summary::after { content: '＋'; margin-left: auto; color: var(--muted); font-size: 16px; font-weight: 400; }
.media-device-panel[open] summary::after { content: '－'; }
.media-device-panel summary small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
.media-device-body { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 14px; align-items: end; padding: 4px 4px 16px; }
.media-device-field { display: grid; gap: 6px; min-width: 0; }
.media-device-field > span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.media-device-field select {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--control-bg);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}
.media-device-field select:focus-visible, .media-record-toggle:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
.media-record-toggle { grid-column: 1 / span 2; min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 8px 0; cursor: pointer; }
.media-record-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--pink); }
.media-record-toggle > span { display: grid; gap: 3px; }
.media-record-toggle strong { color: var(--text); font-size: 12px; }
.media-record-toggle small { color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.5; }
.media-refresh { grid-column: 3; grid-row: 1; min-height: 42px; white-space: nowrap; }
.media-device-status { grid-column: 1 / -1; min-height: 18px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.media-device-status[data-kind="ready"] { color: var(--green); }
.media-device-status[data-kind="warning"] { color: var(--yellow); }
.media-device-status[data-kind="recording"], .media-device-status[data-kind="error"] { color: var(--red); }
.media-device-panel[data-session-running] summary { color: var(--muted); }

.recording-review {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(300px, 1.15fr);
  gap: 14px 20px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.recording-review[hidden] { display: none; }
.recording-review-copy { align-self: end; }
.recording-review-copy h2 { margin: 6px 0; font-size: 18px; }
.recording-review-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.recording-review video { grid-column: 2; grid-row: 1 / span 3; width: 100%; max-height: 330px; aspect-ratio: 16 / 9; border-radius: 12px; background: #08090d; object-fit: contain; transform: scaleX(1) !important; }
.recording-review-transcript { min-width: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.recording-review-transcript strong { display: block; margin-bottom: 7px; color: var(--cyan); font-size: 10px; letter-spacing: .06em; }
.recording-review-transcript p { max-height: 116px; margin: 0; overflow: auto; color: var(--text); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.recording-review-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recording-review-actions button { min-height: 40px; padding-block: 9px; }
.recording-unsaved { grid-column: 1 / -1; margin: 0; color: var(--yellow); font-size: 10px; line-height: 1.6; }
.recording-unsaved[data-kind="ready"] { color: var(--green); }
.recording-unsaved[data-kind="error"] { color: var(--red); }

.pressure-group, .scenario-list { display: flex; flex-wrap: wrap; gap: 7px; }
.pressure-btn, .scenario-btn { padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 12px; }
.pressure-btn.active, .scenario-btn.active { border-color: var(--pink); color: #fff; background: var(--pink-soft); }

.event-feed { display: grid; gap: 10px; max-height: 360px; overflow: auto; }
.event-card { font-size: 13px; line-height: 1.5; }
.event-card strong { color: var(--cyan); }
.event-card.system strong { color: var(--yellow); }
.event-card small { display: block; margin-top: 7px; color: #777e92; font-size: 10px; }

/* Passive audience signal: an honest trend, not a decorative sparkline. */
.interest-panel {
  flex: 0 0 auto;
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--panel-2) 74%, transparent);
}
.interest-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.interest-head > div { display: grid; gap: 3px; }
.interest-head span { color: var(--text); font-size: 11px; font-weight: 800; }
.interest-head small { color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.interest-head strong { color: var(--mode-accent); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.interest-summary { min-height: 30px; margin: 9px 0 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.interest-chart { width: 100%; height: 74px; display: block; overflow: visible; }
.interest-baseline { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 5; }
.interest-chart polyline { fill: none; stroke: var(--mode-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.interest-chart circle { fill: var(--bg); stroke: var(--mode-accent); stroke-width: 2.5; }
.interest-scale { display: flex; justify-content: space-between; margin-top: 3px; color: #62697a; font-size: 8px; }
.interest-details { margin-top: 9px; border-top: 1px solid var(--line); padding-top: 8px; color: var(--muted); font-size: 9px; }
.interest-details summary { cursor: pointer; color: var(--muted); }
.interest-details p { margin: 8px 0; line-height: 1.5; }
.interest-details table { width: 100%; border-collapse: collapse; color: var(--muted); font-size: 8px; }
.interest-details th, .interest-details td { padding: 5px 3px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.interest-details caption { padding-bottom: 5px; text-align: left; }

/* Provider IDs stay developer-only; creators choose visible audience roles here. */
.avatar-selector-open { overflow: hidden; }
.avatar-selector-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .62);
}
.avatar-selector-dialog::backdrop { background: rgba(3, 4, 7, .76); backdrop-filter: blur(8px); }
.avatar-selector-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; max-height: inherit; }
.avatar-selector-head { display: flex; justify-content: space-between; gap: 24px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.avatar-selector-head h2 { margin: 5px 0 7px; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.045em; }
.avatar-selector-head p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.avatar-selector-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 23px; }
.avatar-selector-template { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 13px 26px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 64%, transparent); }
.avatar-selector-template span { grid-row: 1 / 3; align-self: center; padding: 6px 8px; border-radius: 6px; background: color-mix(in srgb, var(--mode-accent) 12%, transparent); color: var(--mode-accent); font-size: 9px; font-weight: 800; }
.avatar-selector-template strong { font-size: 12px; }
.avatar-selector-template small { color: var(--muted); font-size: 10px; }
.avatar-selector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; overflow: auto; padding: 20px 26px; }
.avatar-choice { position: relative; min-width: 0; display: grid; grid-template-columns: 54px 1fr 22px; gap: 13px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; transition: transform var(--motion-standard) var(--ease-out-ui), border-color var(--motion-fast) var(--ease-out-ui), background-color var(--motion-fast) var(--ease-out-ui); }
.avatar-choice:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.avatar-choice:focus-visible { outline: 2px solid var(--mode-accent); outline-offset: 3px; }
.avatar-choice.selected { border-color: color-mix(in srgb, var(--mode-accent) 62%, var(--line)); background: color-mix(in srgb, var(--mode-accent) 9%, var(--panel-2)); }
.avatar-choice-glyph { width: 54px; height: 68px; display: grid; place-items: center; border-radius: 27px 27px 12px 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--mode-accent) 20%, var(--panel-2)), var(--control-bg)); color: var(--mode-accent); font-size: 20px; font-weight: 900; }
.avatar-choice > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.avatar-choice strong { font-size: 13px; }
.avatar-choice small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.avatar-choice em { margin-top: 5px; color: color-mix(in srgb, var(--text) 74%, var(--muted)); font-size: 10px; font-style: normal; line-height: 1.5; }
.avatar-choice i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--bg); font-size: 11px; font-style: normal; }
.avatar-choice.selected i { border-color: var(--mode-accent); background: var(--mode-accent); }
.avatar-selector-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 26px; border-top: 1px solid var(--line); }
.avatar-selector-actions [data-avatar-selection-status] { margin-right: auto; color: var(--muted); font-size: 10px; }

.loading-row { display: none; align-items: center; gap: 10px; padding: 14px; color: var(--muted); }
.loading-row.visible { display: flex; }
.spinner { width: 18px; height: 18px; border: 2px solid #353a4c; border-top-color: var(--pink); border-radius: 50%; animation: spin 0.8s linear infinite; }

.privacy-note { margin-top: 22px; color: #73798e; font-size: 11px; line-height: 1.6; }

/* V1：诊断指标之外的训练控制，保留原项目的语言、规则与模型入口。 */
.v1-training-tools { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.v1-tools-title { display: grid; gap: 3px; }
.v1-tools-title h3 { margin: 0; color: #e8ebf7; font-size: 13px; }
.language-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--control-bg); }
.language-switch button { min-height: 29px; padding: 4px 5px; border: 0; border-radius: 7px; background: transparent; color: #9aa1b5; font-size: 10px; cursor: pointer; }
.language-switch button.active { background: rgba(255, 47, 143, 0.16); color: #ff72b7; box-shadow: inset 0 0 0 1px rgba(255, 47, 143, 0.27); }
.language-switch button:disabled { cursor: not-allowed; opacity: 0.45; }
.language-status { min-height: 28px; margin: -2px 0 0; color: #737b91; font-size: 10px; line-height: 1.4; }
.stt-status { min-height: 30px; margin: -5px 0 0; padding: 7px 8px; border: 1px solid #242938; border-radius: 8px; background: #0a0c11; color: #8992a8; font-size: 9px; line-height: 1.45; }
.stt-status[data-state="ready"] { border-color: rgba(82, 214, 154, 0.25); color: #76dbaa; }
.stt-status[data-state="warning"] { border-color: rgba(255, 188, 84, 0.3); color: #e4bb72; }
.stt-status[data-state="error"] { border-color: rgba(255, 91, 121, 0.34); color: #ff849c; }
.v1-tool-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v1-tool-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); color: #cbd1e4; font-size: 11px; cursor: pointer; }
.v1-tool-actions button:hover { border-color: #a53270; color: #ff8bc7; }
.v1-tool-actions button > span:first-child { color: var(--pink); font-size: 15px; line-height: 1; }
.v1-settings-dialog { width: min(610px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; }
.settings-field { display: grid; gap: 7px; margin-top: 16px; color: #d9deec; font-size: 12px; }
.settings-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.settings-field small { color: #7d8498; font-size: 10px; font-weight: 400; }
.settings-field input, .settings-field textarea, .settings-field select { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; outline: none; background: var(--control-bg); color: var(--text); font: inherit; line-height: 1.5; }
.settings-field textarea { resize: vertical; }
.settings-field input:focus, .settings-field textarea:focus, .settings-field select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 47, 143, 0.1); }
.settings-note { margin: 16px 0 0; color: #8790a6; font-size: 11px; line-height: 1.6; }
.core-ai-report { margin: 16px 0 0; max-height: 310px; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #090b10; color: #cdd3e5; white-space: pre-wrap; font: 12px/1.75 inherit; }
.desktop-runtime .v1-tools-title::after { content: '离线诊断核心已连接'; color: #52d69a; font-size: 9px; letter-spacing: .05em; }
body:not(.desktop-runtime) .v1-tools-title::after { content: '浏览器在线识别 · 实验'; color: #d1a85b; font-size: 9px; letter-spacing: .05em; }

/* 人工验收调控层：X/Y 和尺寸仅影响被选择的主元素，0 表示保留自适应尺寸。 */
.topbar, .side-panel.left, .stage, .side-panel.right, .room, .video-tile, .prompt-banner, .transcript, .controls {
  transform: translate(var(--qa-x, 0px), var(--qa-y, 0px));
}
.topbar, .side-panel.left, .stage, .side-panel.right, .room, .video-tile, .prompt-banner, .transcript, .controls { width: var(--qa-width, auto); height: var(--qa-height, auto); }
.version-disabled .workspace, .version-disabled .launcher-shell > :not(.qa-trigger):not(.qa-panel) { opacity: 0.28; pointer-events: none; filter: grayscale(1); }
.version-disabled::after { content: "此版本已在调控板中关闭"; position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; color: var(--text); font-size: 24px; font-weight: 800; pointer-events: none; }

.qa-trigger { position: fixed; right: 18px; bottom: 18px; z-index: 60; padding: 11px 15px; border: 1px solid rgba(255, 47, 146, 0.62); border-radius: 999px; background: #17101a; color: #fff; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38); cursor: pointer; font-weight: 800; }
.qa-panel { position: fixed; display: flex; flex-direction: column; z-index: 61; right: 18px; bottom: 68px; width: min(390px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 96px)); overflow: hidden; border: 1px solid #494154; border-radius: 18px; background: #101117; color: #eef0f8; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56); }
.qa-panel[hidden] { display: none; }
.qa-panel-head, .qa-tabs, .qa-global-save { flex: none; }
.qa-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #292c38; cursor: grab; user-select: none; touch-action: none; }
.qa-panel.is-dragging .qa-panel-head { cursor: grabbing; }
.qa-panel-head strong, .qa-panel-head small { display: block; }.qa-panel-head small { margin-top: 3px; color: #8d93a7; font-size: 11px; }
.qa-drag-hint { margin-left: auto; color: #71788d; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.qa-close { border: 0; background: transparent; color: #c7cada; font-size: 24px; cursor: pointer; }
.qa-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 8px 12px; border-bottom: 1px solid #292c38; background: #0c0d12; }
.qa-fine-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qa-fine-target { display: block; color: #b3b8cc; overflow-wrap: anywhere; line-height: 1.5; margin: 8px 0 12px; }
.qa-fine-properties { display: grid; gap: 8px; margin: 12px 0; }
.qa-fine-property { display: grid; grid-template-columns: 1fr minmax(0, 130px) 28px; align-items: center; gap: 6px; font-size: 12px; }
.qa-fine-property input { min-width: 0; width: 100%; padding: 7px; color: #eef0f8; background: #0c0d12; border: 1px solid #4c5268; border-radius: 6px; font: inherit; }
.qa-fine-property button { padding: 4px; }
.qa-fine-property:has([data-qa-palette]) { grid-template-columns: 1fr minmax(0, 106px) 24px 24px; }
.qa-fine-property input[type="color"] { width: 24px; height: 28px; padding: 1px; }
.qa-fine-group summary { cursor: pointer; font-size: 12px; font-weight: 700; padding: 10px 0; }
.qa-fine-group .qa-fine-property { margin: 7px 0; }
.qa-panel [data-qa-fine-copy] textarea, .qa-panel [data-qa-fine-ui] select { width: 100%; }
[data-qa-inspect-hover] { outline: 2px solid var(--pink) !important; outline-offset: 3px !important; cursor: crosshair !important; }
.qa-tab { padding: 8px 6px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #858b9c; cursor: pointer; font-size: 11px; font-weight: 750; }
.qa-tab:hover { color: #d8dbe5; background: #161821; }
.qa-tab.active { border-color: rgba(255,47,146,.45); background: rgba(255,47,146,.12); color: #fff; }
.qa-scroll { min-height: 0; flex: 1 1 auto; overflow: auto; padding: 0 18px 18px; }
.qa-page[hidden] { display: none; }
.qa-panel section { padding: 16px 0; border-bottom: 1px solid #292c38; }.qa-panel section:last-child { border-bottom: 0; }.qa-panel h2 { margin: 0 0 8px; font-size: 13px; }.qa-hint { margin: 0 0 12px; color: #8d93a7; font-size: 11px; line-height: 1.5; }
.qa-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }.qa-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #cdd1df; font-size: 12px; cursor: pointer; }.qa-switch input { position: absolute; opacity: 0; }.qa-switch i { width: 30px; height: 17px; border-radius: 20px; background: #343846; position: relative; transition: 160ms; }.qa-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: 160ms; }.qa-switch input:checked + i { background: var(--pink); }.qa-switch input:checked + i::after { transform: translateX(13px); }
.qa-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.qa-color, .qa-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; color: #cdd1df; font-size: 12px; }.qa-color input { width: 38px; height: 24px; padding: 1px; border: 1px solid #3c4050; border-radius: 5px; background: transparent; }.qa-select select { min-width: 170px; padding: 6px; border: 1px solid #3c4050; border-radius: 6px; background: #191c25; color: #eef0f8; font-size: 12px; }
.qa-provider-field { display: grid; gap: 6px; margin-top: 10px; color: #cdd1df; font-size: 12px; }.qa-provider-field input { width: 100%; padding: 7px 8px; border: 1px solid #3c4050; border-radius: 6px; background: #0a0b0f; color: #eef0f8; font: 11px ui-monospace, Consolas, monospace; }.qa-provider-save { width: 100%; margin-top: 12px; padding: 8px; border: 1px solid rgba(255, 47, 146, 0.5); border-radius: 7px; background: var(--pink-soft); color: #fff; cursor: pointer; font-size: 12px; }.qa-provider-status { min-height: 16px; margin: 8px 0 0; color: #8d93a7; font-size: 11px; line-height: 1.45; }
.qa-field { display: grid; grid-template-columns: 105px 1fr 42px; gap: 8px; align-items: center; margin-top: 9px; color: #cdd1df; font-size: 12px; }.qa-field input { accent-color: var(--pink); }.qa-field output { color: var(--cyan); text-align: right; font-variant-numeric: tabular-nums; }.qa-actions { display: flex; gap: 8px; }.qa-actions button { flex: 1; padding: 8px; border: 1px solid #3c4050; border-radius: 7px; background: #191c25; color: #eef0f8; cursor: pointer; font-size: 12px; }.qa-json { width: 100%; min-height: 110px; margin-top: 10px; resize: vertical; border: 1px solid #303442; border-radius: 8px; background: #0a0b0f; color: #aeb5cc; padding: 9px; font: 10px/1.45 ui-monospace, Consolas, monospace; }
.qa-copy-list { display: grid; gap: 9px; max-height: 330px; margin-top: 10px; overflow: auto; padding-right: 4px; }.qa-copy-field { display: grid; gap: 5px; color: #cdd1df; font-size: 11px; }.qa-copy-field input, .qa-copy-field textarea { width: 100%; border: 1px solid #3c4050; border-radius: 7px; background: #0a0b0f; color: #eef0f8; padding: 7px 8px; font: 11px/1.45 Inter, "Microsoft YaHei", sans-serif; resize: vertical; }
.qa-palette-list { display: grid; gap: 8px; }.qa-palette { display: grid; grid-template-columns: 62px 1fr; column-gap: 10px; align-items: center; min-height: 62px; padding: 9px; border: 1px solid #303442; border-radius: 8px; background: #0c0d12; color: #eef0f8; text-align: left; cursor: pointer; }.qa-palette:hover { border-color: #565d71; }.qa-palette.active { border-color: var(--pink); box-shadow: inset 3px 0 var(--pink); }.qa-palette-swatches { display: flex; height: 30px; overflow: hidden; border: 1px solid #454a5b; border-radius: 5px; }.qa-palette-swatches i { flex: 1; }.qa-palette strong { font-size: 12px; }.qa-palette small { color: #9da3b5; font-size: 10px; line-height: 1.4; }
.qa-global-save { padding: 10px 14px 12px; border-top: 1px solid #343746; background: #101117; }
.qa-global-save .qa-save-state { margin: 0 0 8px; padding: 0; border: 0; background: transparent; }
.qa-save-location { margin-bottom: 8px; font-size: 11px; color: #cdd1df; }
.qa-save-location summary { cursor: pointer; }
.qa-save-location summary span { color: #9ca3b8; font-size: 10px; overflow-wrap: anywhere; }
.qa-save-location p { margin: 6px 0; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.qa-save-location button { padding: 5px 8px; border: 1px solid #3c4050; border-radius: 5px; background: #191c25; color: #eef0f8; cursor: pointer; font: inherit; }
.qa-save-location button:disabled { opacity: .55; cursor: wait; }
.qa-save-scope { margin: 8px 0 0; color: #9ca3b8; font-size: 10px; line-height: 1.45; }
.qa-save-state { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 12px; padding: 10px; border: 1px solid #303442; border-radius: 9px; background: #0a0b0f; }
.qa-save-state > i { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #e3b050; box-shadow: 0 0 0 4px rgba(227,176,80,.1); }
.qa-save-state[data-state="project"] > i { background: #52d69a; box-shadow: 0 0 0 4px rgba(82,214,154,.1); }
.qa-save-state[data-state="warning"] > i { background: #ff8c52; box-shadow: 0 0 0 4px rgba(255,140,82,.1); }
.qa-save-state[data-state="error"] > i { background: #ff5b79; box-shadow: 0 0 0 4px rgba(255,91,121,.1); }
.qa-save-state strong, .qa-save-state small { display: block; }.qa-save-state strong { color: #e9ebf4; font-size: 11px; }.qa-save-state small { margin-top: 4px; color: #777e92; font-size: 9px; line-height: 1.4; }
.qa-save-actions .qa-primary-action { border-color: rgba(255,47,146,.58); background: rgba(255,47,146,.16); color: #fff; font-weight: 800; }
.qa-actions button:disabled { cursor: wait; opacity: .55; }
.qa-project-restore { width: 100%; margin-top: 8px; padding: 7px; border: 0; background: transparent; color: #777e92; cursor: pointer; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.qa-project-restore:hover { color: #cbd0df; }
.qa-component-switches { margin-top: 14px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.5; } }
@keyframes avatar-talk { to { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 9px var(--pink-soft); } }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1100px) {
  .product-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .product-footer-links { max-width: 720px; }
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .side-panel.right { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .launcher-page *, .trainer-page *, .contact-page * { translate: none !important; }
  .topbar { height: auto; min-height: 56px; flex-wrap: wrap; row-gap: 8px; padding: 8px 12px; }
  .video-tile, .stage, .contact-main, .depth-carousel, .depth-carousel-stage { max-width: 100%; }
  .launcher-hero { grid-template-columns: minmax(0, 1fr); }
  .contact-intro { grid-template-columns: minmax(0, 1fr); }
  .launcher-shell { width: 100%; padding-inline: 16px; }
  .product-nav-inner, .product-assurance-inner, .product-footer-inner, .product-footer-bottom { width: calc(100% - 32px); }
  .product-nav-links { display: none; }
  .product-account-label { display: none; }
  .product-account-trigger { padding-right: 4px; }
  .product-assurance-inner { grid-template-columns: 1fr; }
  .product-assurance article, .product-assurance article:first-child, .product-assurance article:last-child { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--product-footer-text, #f4f1f5) 10%, transparent); }
  .product-assurance article:last-child { border-bottom: 0; }
  .product-footer-links { grid-template-columns: 1fr 1fr; }
  .product-footer-bottom { flex-direction: column; gap: 8px; }
  .brand-background { left: -16px; }
  .launcher-hero { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .transcript-cover { max-height: min(var(--transcript-height, 420px), 60vh); }
  .transcript-cover { width: min(var(--transcript-width, 100%), 100%); }
  .version-grid { grid-template-columns: 1fr; }
  .version-card, .version-card.featured { grid-row: auto; min-height: auto; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; }
  .version-card h2, .version-card p, .version-card.featured h2, .version-card.featured p { grid-column: 1; }
  .version-card h2, .version-card.featured h2 { margin: 28px 0 9px; }
  .version-card .card-cta, .version-card.featured .card-cta { grid-column: 2; grid-row: 2 / span 2; }
  html[lang="en-US"] .version-card:not(.featured) .version-card-meta { grid-column: 1; grid-row: auto; }
  html[lang="en-US"] .version-card:not(.featured) h2,
  html[lang="en-US"] .version-card:not(.featured) p { grid-column: 1; grid-row: auto; width: auto; max-width: none; }
  html[lang="en-US"] .version-card:not(.featured) .card-cta { grid-column: 2; grid-row: 2 / span 2; }
  .workspace { display: block; }
  .side-panel.left { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-list { grid-template-columns: repeat(2, 1fr); }
  .stage { padding: 12px; }
  .duo-room, .creator-room { grid-template-columns: 1fr; }
  .audience-stack { grid-template-columns: repeat(2, 1fr); }
  .brand { font-size: 13px; }
  .media-device-body { grid-template-columns: 1fr; }
  .media-device-field, .media-record-toggle, .media-refresh, .media-device-status { grid-column: 1; grid-row: auto; }
  .recording-review { grid-template-columns: 1fr; }
  .recording-review video { grid-column: 1; grid-row: auto; }
}

@media (max-width: 480px) {
  .product-wordmark-stage { display: none; }
  .product-footer-links { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Marquee owns its reduced-motion mode. Keep its resume control available. */
  .version-card { animation: none !important; transition-duration: .01ms !important; }
  .version-card:hover { transform: none; }
  .true-focus-word, .true-focus-frame, .transcript-raw, .transcript-clean { transition-duration: .01ms !important; animation: none !important; }
  .true-focus-word:not(.active) { filter: none; opacity: .72; }
  .true-focus-frame { opacity: 0 !important; }
  .recording-badge > span { animation: none; }
}

/* V3 Creator Studio — sourced from open-source creator, meeting and analytics patterns. */
.creator-studio-page {
  --studio-bg: #08090b;
  --studio-panel: #0d0f12;
  --studio-panel-raised: #121419;
  --studio-control: #090b0e;
  --studio-muted: #6d727c;
  --studio-line: #202329;
  --studio-line-strong: #30343c;
  background: var(--studio-bg);
  color: var(--studio-text);
}
.creator-studio-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 51% -18%, color-mix(in srgb, var(--pink) 8%, transparent), transparent 34rem);
}
.creator-studio-page .topbar {
  height: 72px;
  padding: 0 20px;
  gap: 14px;
  border-color: var(--studio-line);
  background: color-mix(in srgb, var(--studio-bg) 94%, transparent);
}
.product-identity { display: flex; align-items: center; gap: 11px; min-width: 238px; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--studio-line-strong);
  border-radius: 10px;
  background: #f2f2ef;
  color: #090a0c;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: -0.08em;
}
.product-identity > div { display: grid; gap: 2px; }
.creator-studio-page .brand { font-size: 13px; line-height: 1; }
.product-subtitle { color: #686c76; font-size: 9px; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.creator-studio-page .version-pill { border: 1px solid rgba(255, 47, 146, 0.22); border-radius: 999px; background: rgba(255, 47, 146, 0.08); font-size: 9px; letter-spacing: 0.08em; }
.session-clock { display: flex; align-items: center; gap: 9px; padding-right: 2px; }
.session-clock small { color: #666b74; font-size: 9px; }
.creator-studio-page .timer { min-width: 42px; color: #f3f3f1; font-size: 13px; font-weight: 750; }
.creator-studio-page .ghost-btn { padding: 9px 12px; border-color: var(--studio-line-strong); border-radius: 9px; background: #101216; font-size: 11px; font-weight: 700; }
.creator-studio-page .camera-btn { display: flex; align-items: center; gap: 7px; background: #f0f0ed; color: #0a0b0d; }
.control-indicator { width: 6px; height: 6px; border-radius: 50%; background: #6d7179; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07); }
.camera-btn.active .control-indicator { background: #16a56a; }

.creator-studio-page .workspace {
  grid-template-columns: 252px minmax(560px, 1fr) 310px;
  min-height: calc(100vh - 72px);
  max-width: 1800px;
  margin: 0 auto;
  border-inline: 1px solid var(--studio-line);
  background: #090a0c;
}
.creator-studio-page .side-panel { padding: 0; background: var(--studio-panel); }
.creator-studio-page .side-panel.left { border-color: var(--studio-line); }
.creator-studio-page .side-panel.right { position: sticky; top: 72px; align-self: start; display: flex; flex-direction: column; height: var(--qa-height, calc(100vh - 72px)); min-height: 0; padding: 22px 18px 18px; border-color: var(--studio-line); overflow: hidden; }
.rail-section { padding: 19px 16px; border-bottom: 1px solid var(--studio-line); }
.brief-rail { padding-top: 22px; }
.panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-kicker { display: block; margin-bottom: 5px; color: #666b76; font-size: 8px; font-weight: 850; letter-spacing: 0.16em; }
.creator-studio-page .panel-heading { margin: 0; color: #e9e9e6; font-size: 12px; letter-spacing: 0; }
.panel-step { color: #3e424a; font: 700 10px/1 ui-monospace, Consolas, monospace; }

.compact-brief { margin-top: 14px; padding: 13px; border: 1px solid var(--studio-line); border-radius: 12px; background: #101216; }
.compact-brief-tag { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: rgba(255, 47, 146, 0.1); color: #ff8ec0; font-size: 9px; font-weight: 750; }
.compact-brief > strong { display: block; margin-top: 10px; font-size: 14px; }
.compact-brief > p { min-height: 34px; margin: 6px 0 12px; color: #898e98; font-size: 10px; line-height: 1.55; }
.compact-brief > div { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--studio-line); }
.compact-brief > div span { color: #696e78; font-size: 9px; }
.compact-brief button { border: 0; background: transparent; color: #e5e5e2; cursor: pointer; font-size: 10px; font-weight: 750; }

.creator-studio-page .scenario-list { display: grid; gap: 6px; margin-top: 13px; }
.creator-studio-page .scenario-btn { display: grid; grid-template-columns: 29px 1fr; gap: 10px; align-items: center; width: 100%; padding: 9px; border-color: transparent; border-radius: 10px; background: transparent; text-align: left; }
.creator-studio-page .scenario-btn:hover { background: rgba(255, 255, 255, 0.035); }
.creator-studio-page .scenario-btn.active { border-color: var(--studio-line); background: #14161b; }
.scenario-index { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--studio-line); border-radius: 8px; color: #676c76; font: 750 8px/1 ui-monospace, Consolas, monospace; }
.scenario-btn.active .scenario-index { border-color: rgba(255, 47, 146, 0.3); background: rgba(255, 47, 146, 0.1); color: #ff8ec0; }
.scenario-btn strong, .scenario-btn small { display: block; }
.scenario-btn strong { color: #d9dad8; font-size: 10px; }
.scenario-btn small { margin-top: 2px; color: #5f646e; font-size: 8px; }
.signal-live { display: flex; align-items: center; gap: 4px; color: #4fba82; font-size: 8px; font-weight: 800; }
.signal-live i { width: 5px; height: 5px; border-radius: 50%; background: #4fba82; }
.creator-studio-page .metric-list { grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }
.creator-studio-page .metric { display: grid; gap: 9px; align-content: space-between; min-height: 60px; padding: 10px; border: 1px solid var(--studio-line); border-radius: 10px; background: var(--studio-panel-raised); }
.creator-studio-page .metric span { font-size: 9px; }
.creator-studio-page .metric strong { color: #e5e5e2; font-size: 15px; }
.creator-studio-page .metric .bad { color: #ff7a8f; }
.creator-studio-page .metric .warn { color: #e5b45f; }
.creator-studio-page .metric .good { color: #6cd7a0; }
.creator-studio-page .metric-featured { background: linear-gradient(135deg, rgba(49, 157, 104, 0.08), #0f1115); }

.creator-studio-page .stage { padding: 22px 20px 18px; gap: 13px; background: var(--studio-bg); grid-template-rows: auto minmax(410px, 1fr) auto; }
.creator-studio-page .stage-head { min-height: 46px; }
.creator-studio-page .stage-head h1 { font-size: 18px; letter-spacing: -0.02em; }
.creator-studio-page .stage-head p { margin-top: 4px; color: var(--studio-muted); font-size: 10px; }
.creator-studio-page .stage-status { padding: 7px 10px; border: 1px solid var(--studio-line); border-radius: 999px; background: #0e1014; color: #8a8f98; font-size: 9px; }

.creator-studio-page .room { min-height: 430px; border-color: var(--studio-line-strong); border-radius: 16px; background: var(--studio-panel); box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24); }
.creator-studio-page .creator-room { grid-template-columns: minmax(0, 1fr) 205px; gap: 9px; padding: 39px 10px 66px; }
.room-topline { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--studio-line); color: #5e636c; font-size: 8px; letter-spacing: 0.08em; }
.room-topline span:first-child { display: flex; align-items: center; gap: 6px; color: #8a8f98; font-weight: 800; }
.room-topline i { width: 5px; height: 5px; border-radius: 50%; background: #ff5e78; box-shadow: 0 0 0 3px rgba(255, 94, 120, 0.09); }
.creator-studio-page .video-tile { min-height: 0; border-color: var(--studio-line); border-radius: 12px; background: var(--studio-panel); }
.creator-studio-page .video-off { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--studio-panel-raised) 88%, white 4%), var(--studio-control) 67%); }
.camera-empty-state { display: grid; justify-items: center; color: #787d86; }
.camera-empty-state strong { margin-top: 15px; color: #b9bbb9; font-size: 12px; }
.camera-empty-state small { margin-top: 5px; font-size: 9px; }
.camera-glyph { width: 56px; height: 40px; border: 1px solid #343840; border-radius: 11px; position: relative; }
.camera-glyph::before { content: ''; position: absolute; inset: 9px 13px; border: 1px solid #555b65; border-radius: 50%; }
.camera-glyph::after { content: ''; position: absolute; right: -8px; top: 12px; border: 7px solid transparent; border-left-color: #343840; }
.camera-grid { position: absolute; inset: 0; opacity: 0.13; pointer-events: none; background: linear-gradient(90deg, transparent 33.2%, #fff 33.3%, transparent 33.5%, transparent 66.5%, #fff 66.6%, transparent 66.8%), linear-gradient(transparent 33.2%, #fff 33.3%, transparent 33.5%, transparent 66.5%, #fff 66.6%, transparent 66.8%); }
.creator-studio-page .camera-target { top: 10px; width: 9px; height: 9px; background: #ff80b7; box-shadow: 0 0 0 5px rgba(255, 47, 146, 0.12); }
.creator-studio-page .camera-target::after { top: 16px; color: #d7d7d4; font-size: 8px; }
.creator-studio-page .tile-label { display: flex; align-items: center; gap: 6px; left: 10px; bottom: 9px; padding: 5px 7px; border: 1px solid rgba(255,255,255,0.08); border-radius: 7px; font-size: 9px; }
.tile-label i { width: 5px; height: 5px; border-radius: 50%; background: #49bd7f; }
.creator-studio-page .audience-stack { gap: 8px; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.creator-studio-page .audience-tile { min-height: 0; padding: 10px; border-color: var(--studio-line); border-radius: 12px; background: var(--studio-panel-raised); text-align: left; place-items: stretch; }
.creator-studio-page .audience-copy { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto auto; column-gap: 9px; align-content: center; width: 100%; }
.creator-studio-page .avatar { grid-row: 1 / 3; width: 34px; height: 34px; border-width: 1px; border-color: #3b404a; background: #1b1e24; font-size: 12px; }
.creator-studio-page .audience-name { margin: 0; font-size: 9px; }
.creator-studio-page .audience-role { margin-top: 2px; font-size: 8px; }
.creator-studio-page .audience-reaction { grid-column: 1 / -1; min-height: 0; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--studio-line); color: #aeb1b7; font-size: 8px; line-height: 1.45; }
.creator-studio-page .avatar-provider-state { position: absolute; top: 8px; right: 8px; margin: 0; padding: 3px 5px; background: rgba(255,255,255,0.04); color: #676c75; font-size: 7px; }
.creator-studio-page .audience-tile.attention { border-color: rgba(255, 47, 146, 0.58); background: rgba(255, 47, 146, 0.055); }
.creator-studio-page .prompt-banner { bottom: 10px; width: calc(100% - 20px); min-height: 47px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-color: var(--studio-line); border-radius: 11px; background: rgba(12, 14, 17, 0.94); color: #c7c8c6; font-size: 10px; }
.prompt-label { padding: 5px 7px; border-radius: 6px; background: rgba(255, 47, 146, 0.1); color: #ff91c1; font-size: 8px; font-weight: 800; white-space: nowrap; }

.transcript-shell { border: 1px solid var(--studio-line); border-radius: 14px; background: var(--studio-panel); overflow: hidden; }
.transcript-head { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--studio-line); }
.transcript-head > div { display: flex; align-items: center; gap: 9px; }
.transcript-head .section-kicker { margin: 0; }
.transcript-head strong { font-size: 10px; }
.transcript-head > span { color: #5f646e; font-size: 8px; }
.creator-studio-page .transcript { min-height: 74px; max-height: 118px; padding: 12px 14px; border: 0; border-radius: 0; background: transparent; font-size: 10px; line-height: 1.65; }
.creator-studio-page .controls { min-height: 51px; display: grid; grid-template-columns: 1fr auto 1fr; padding: 8px 11px; border-top: 1px solid var(--studio-line); }
.pressure-control { display: flex; align-items: center; gap: 8px; color: #676c75; font-size: 8px; }
.creator-studio-page .pressure-group { gap: 3px; padding: 3px; border-radius: 8px; background: var(--studio-control); }
.creator-studio-page .pressure-btn { min-width: 27px; padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; font-size: 8px; }
.creator-studio-page .pressure-btn.active { background: var(--studio-line-strong); color: var(--studio-text); }
.creator-studio-page .primary-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 158px; padding: 10px 16px; border-radius: 9px; background: #f0f0ed; color: #0a0b0d; font-size: 10px; }
.creator-studio-page .primary-btn.running { background: #ff6682; color: #fff; }
.record-dot { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.privacy-inline { align-self: center; justify-self: end; color: #585d66; font-size: 8px; }
.creator-studio-page .loading-row { padding: 10px 13px; border-top: 1px solid var(--studio-line); font-size: 9px; }

.feed-intro { margin: 10px 0 16px; color: var(--studio-muted, #6d727b); font-size: 9px; line-height: 1.55; }
.creator-studio-page .event-feed { flex: 1; min-height: 0; max-height: none; align-content: start; gap: 8px; padding-right: 6px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #4a515d transparent; }
.creator-studio-page .interest-panel { margin-bottom: 12px; padding: 11px; border-color: var(--studio-line); border-radius: 11px; background: var(--studio-panel-raised); }
.creator-studio-page .interest-chart { height: 58px; }
.creator-studio-page .interest-details { border-color: var(--studio-line); }
.creator-studio-page .event-feed::-webkit-scrollbar { width: 8px; }
.creator-studio-page .event-feed::-webkit-scrollbar-track { background: transparent; }
.creator-studio-page .event-feed::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #4a515d; background-clip: padding-box; }
.creator-studio-page .event-feed::-webkit-scrollbar-thumb:hover { background-color: #747c8a; }
.creator-studio-page .event-card { position: relative; padding: 12px 12px 12px 15px; border-color: var(--studio-line); border-radius: 11px; background: var(--studio-panel-raised); font-size: 9px; line-height: 1.55; }
.creator-studio-page .event-card.removable { padding-right: 36px; }
.creator-studio-page .event-card::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: rgba(255, 47, 146, 0.65); }
.creator-studio-page .event-card strong { display: block; margin-bottom: 5px; color: #efefec; font-size: 9px; }
.creator-studio-page .event-card.system strong { color: #d7b86f; }
.creator-studio-page .event-card.system::before { background: #9d8351; }
.creator-studio-page .event-card small { font-size: 7px; }
.creator-studio-page .scene-event { background: linear-gradient(135deg, rgba(157, 131, 81, 0.11), #101216 58%); }
.creator-studio-page .scene-event::before { background: #d1ad5e; }
.event-dismiss { position: absolute; top: 8px; right: 8px; display: grid; width: 18px; height: 18px; place-items: center; padding: 0; border: 1px solid #363b45; border-radius: 6px; background: #171a20; color: #a2a7b0; cursor: pointer; font-size: 14px; line-height: 1; }
.event-dismiss:hover { border-color: #6d7480; background: #242933; color: #f1f1ed; }
.event-dismiss:focus-visible { outline: 2px solid #ff8fbe; outline-offset: 2px; }
.creator-studio-page .goal-card { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-top: 14px; padding: 12px; border-color: var(--studio-line); border-radius: 11px; background: #0f1115; }
.goal-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 47, 146, 0.1); color: #ff8fbe; font-size: 10px; font-weight: 850; }
.creator-studio-page .goal-card p { font-size: 9px; }

.creator-studio-page .brief-sheet {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  margin: 0;
  padding: 28px;
  border: 0;
  border-left: 1px solid var(--studio-line-strong);
  border-radius: 0;
  background: var(--studio-panel-raised);
  box-shadow: -28px 0 90px rgba(0, 0, 0, 0.55);
  overflow: auto;
}
.creator-studio-page .brief-sheet[hidden] { display: none; }
.brief-sheet-open::after { content: ''; position: fixed; z-index: 70; inset: 0; background: rgba(0, 0, 0, 0.58); backdrop-filter: blur(3px); }
.brief-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; }
.brief-sheet-head h3 { font-size: 18px; }
.brief-sheet-head button { border: 0; background: transparent; color: #9297a0; cursor: pointer; font-size: 24px; }
.creator-studio-page .brief-sheet > p { margin: 10px 0 22px; font-size: 10px; }
.creator-studio-page .brief-field { margin-top: 15px; gap: 7px; }
.creator-studio-page .brief-field span { font-size: 9px; }
.creator-studio-page .brief-field select, .creator-studio-page .brief-field input { padding: 11px; border-color: var(--studio-line-strong); background: var(--studio-control); font-size: 10px; }
.creator-studio-page .brief-summary { margin-top: 12px; padding: 13px; background: #0b0d10; }
.creator-studio-page .brief-summary strong { font-size: 10px; }
.creator-studio-page .brief-summary span { font-size: 9px; }
.creator-studio-page .audience-config-actions { margin-top: 18px; }
.creator-studio-page .audience-config-actions button { padding: 11px; border-color: var(--studio-line-strong); background: #181b20; font-size: 10px; }
.creator-studio-page .audience-config-actions button:first-child { border: 0; background: #f0f0ed; color: #0a0b0d; }

.report-panel { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.report-panel[hidden] { display: none; }
.report-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 7, 0.78); backdrop-filter: blur(8px); }
.report-dialog { position: relative; width: min(680px, 100%); padding: 27px; border: 1px solid var(--studio-line-strong, rgba(255,255,255,.14)); border-radius: 18px; background: #111318; box-shadow: 0 34px 100px rgba(0, 0, 0, 0.6); }
.report-head { display: flex; align-items: flex-start; justify-content: space-between; }
.report-head h2 { margin: 0; font-size: 22px; }
.report-head button { border: 0; background: transparent; color: #858a94; cursor: pointer; font-size: 24px; }
.report-lead { margin: 8px 0 22px; color: #747984; font-size: 10px; }
.report-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.v1-report .report-metrics { grid-template-columns: repeat(4, 1fr); }
.report-metrics > div { padding: 16px; border: 1px solid var(--studio-line, rgba(255,255,255,.08)); border-radius: 12px; background: #0c0e11; }
.report-metrics small, .report-metrics strong, .report-metrics span { display: block; }
.report-metrics small { color: #777c85; font-size: 9px; }
.report-metrics strong { margin-top: 12px; font-size: 25px; letter-spacing: -0.04em; }
.report-metrics span { margin-top: 6px; color: #555a63; font-size: 8px; }
.report-focus { margin-top: 11px; padding: 17px; border: 1px solid rgba(255, 47, 146, 0.18); border-radius: 12px; background: rgba(255, 47, 146, 0.055); }
.report-focus span { color: #ff8fbe; font-size: 8px; font-weight: 800; letter-spacing: 0.08em; }
.report-focus strong { display: block; margin-top: 8px; font-size: 15px; }
.report-focus p { margin: 7px 0 0; color: #777c85; font-size: 9px; }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.report-actions .primary-btn { min-width: 138px; }
.paste-dialog { width: min(720px, 100%); }
.paste-transcript-input { width: 100%; min-height: 280px; resize: vertical; padding: 15px 16px; border: 1px solid var(--studio-line-strong, rgba(255,255,255,.14)); border-radius: 12px; background: #090b0f; color: #eef1f7; font: 14px/1.75 Inter, "Microsoft YaHei", sans-serif; outline: none; }
.paste-transcript-input:focus { border-color: rgba(255,47,146,.65); box-shadow: 0 0 0 3px rgba(255,47,146,.09); }

@media (max-width: 1240px) {
  .creator-studio-page .workspace { grid-template-columns: 224px minmax(520px, 1fr) 270px; }
  .creator-studio-page .creator-room { grid-template-columns: minmax(0, 1fr) 172px; }
}
@media (max-width: 980px) {
  .creator-studio-page .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .creator-studio-page .side-panel.right { position: static; grid-column: 1 / -1; height: auto; min-height: 260px; max-height: none; border-top: 1px solid var(--studio-line); }
  .creator-studio-page .event-feed { max-height: 360px; grid-template-columns: repeat(2, 1fr); }
  .avatar-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .creator-studio-page .topbar { height: auto; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
  .product-identity { min-width: 0; }
  .creator-studio-page .version-pill, .session-clock small, .setup-btn { display: none; }
  .creator-studio-page .workspace { display: block; }
  .creator-studio-page .side-panel.left { border-bottom: 1px solid var(--studio-line); }
  .creator-studio-page .stage { padding: 14px; }
  .creator-studio-page .creator-room { grid-template-columns: 1fr; padding-bottom: 76px; }
  .creator-studio-page .audience-stack { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
  .creator-studio-page .audience-tile { min-height: 104px; }
  .creator-studio-page .controls { grid-template-columns: 1fr; justify-items: stretch; }
  .avatar-selector-grid { grid-template-columns: 1fr; padding-inline: 16px; }
  .avatar-selector-head, .avatar-selector-actions { padding-inline: 16px; }
  .avatar-selector-actions { flex-wrap: wrap; }
  .avatar-selector-actions [data-avatar-selection-status] { flex-basis: 100%; }
  .privacy-inline { justify-self: center; }
  .report-metrics { grid-template-columns: 1fr; }
  .v1-report .report-metrics { grid-template-columns: 1fr; }
}
