/* FantaScript-inspired control-room theme. System fonts only; no remote requests. */
:root {
  color-scheme:dark;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#e9ffff;
  background:#040c0f;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  --ink:#e9ffff;
  --muted:#8cb2b7;
  --dim:#59777c;
  --surface:#081419;
  --surface-2:#0b1b21;
  --surface-3:#10262d;
  --line:#164752;
  --line-soft:#102f37;
  --cyan:#00d5ff;
  --cyan-bright:#63e7ff;
  --cyan-soft:#06313b;
  --success:#5af2bd;
  --warning:#ffca6a;
  --danger:#ff806d;
  --shadow:0 18px 50px #0008;
}
* { box-sizing:border-box; }
html { min-width:320px; background:#040c0f; }
body { margin:0; min-width:320px; min-height:100dvh; background:#040c0f; }
button,input,select,textarea { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled,input:disabled { cursor:not-allowed; }
button:disabled { opacity:.42; }
a { color:inherit; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--cyan); outline-offset:3px; }
button,input,select { min-height:42px; }
input[type=checkbox],input[type=radio],input[type=range] { min-height:0; accent-color:var(--cyan); }
input[type=range] { width:100%; height:30px; cursor:pointer; }
input[type=range]::-webkit-slider-runnable-track { height:3px; border-radius:3px; background:linear-gradient(90deg,#0b7187,#164752); }
input[type=range]::-webkit-slider-thumb { width:15px; height:15px; margin-top:-6px; border:2px solid #061014; border-radius:50%; background:var(--cyan); -webkit-appearance:none; box-shadow:0 0 14px #00d5ff88; }
::selection { color:#001014; background:var(--cyan); }
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:#061115; }
::-webkit-scrollbar-thumb { border:2px solid #061115; border-radius:8px; background:#1b4f59; }

.boot-screen { min-height:100dvh; display:grid; place-items:center; color:var(--cyan); font:700 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.18em; text-transform:uppercase; background-color:#040c0f; background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px); background-size:80px 80px; }
.studio { position:relative; min-height:100dvh; overflow:hidden; background-color:#040c0f; background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px); background-size:80px 80px; }
.studio::before { content:""; position:absolute; z-index:0; top:-300px; left:50%; width:900px; height:560px; pointer-events:none; transform:translateX(-50%); background:radial-gradient(ellipse,#00d5ff1c 0%,#00d5ff08 38%,transparent 70%); }
.studio>* { position:relative; z-index:1; }
.studio-header { height:78px; max-width:1400px; margin:auto; padding:0 36px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line-soft); background:#040c0fd9; backdrop-filter:blur(14px); }
.wordmark { display:inline-flex; align-items:center; color:#efffff; font-size:20px; font-weight:750; letter-spacing:-.6px; text-decoration:none; }
.wordmark>span:last-child { color:var(--cyan); font-weight:470; }
.brand-mark { position:relative; display:flex; gap:3px; align-items:center; justify-content:center; margin-right:12px; padding:8px; height:36px; width:36px; border:1px solid #16849a; border-radius:8px; background:#071b21; box-shadow:inset 0 0 18px #00d5ff14,0 0 18px #00d5ff18; }
.brand-mark::after { content:""; position:absolute; inset:4px; border:1px solid #00d5ff21; border-radius:4px; }
.brand-mark i { z-index:1; width:3px; height:12px; border-radius:1px; background:var(--cyan); box-shadow:0 0 8px #00d5ffcc; }
.brand-mark i:nth-child(2) { height:20px; }
.header-meta { display:flex; align-items:center; gap:9px; color:var(--muted); font:600 10px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; text-transform:uppercase; }
.quiet-dot,.demo-dot,.ack-dot,.pending-dot { display:inline-block; flex:0 0 auto; height:7px; width:7px; border-radius:50%; background:var(--cyan); box-shadow:0 0 10px #00d5ffcc; }
.demo-dot,.pending-dot { background:var(--warning); box-shadow:0 0 10px #ffca6aaa; }
.ack-dot { background:var(--success); box-shadow:0 0 10px #5af2bdaa; }
.version-pill,.small-pill { border:1px solid var(--line); border-radius:5px; padding:5px 7px; color:#91bbc1; background:#09171c; font:600 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; }
.version-pill { margin-left:12px; }

.studio-main { max-width:1280px; padding:54px 8px 76px; margin:auto; }
.intro-row { display:flex; align-items:flex-end; justify-content:space-between; gap:44px; margin-bottom:34px; padding:20px 0 8px; }
.intro-row>div { max-width:760px; }
.eyebrow { color:var(--cyan); font:700 10px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.22em; margin:0 0 18px; }
.eyebrow::before { content:"// "; color:#4c8b97; }
h1 { max-width:850px; margin:0; color:#f1ffff; font-size:clamp(38px,4.2vw,62px); line-height:1.02; font-weight:560; letter-spacing:-3px; }
h1>span { color:#86e9f8; text-shadow:0 0 34px #00d5ff2e; }
.intro-copy { max-width:660px; color:var(--muted); line-height:1.75; font-size:14px; margin:20px 0 0; }
.demo-button { flex:0 0 auto; margin-bottom:4px; }
.button { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; border-radius:7px; border:1px solid transparent; padding:11px 16px; color:#dfffff; background:transparent; font-size:12px; font-weight:680; letter-spacing:.01em; text-decoration:none; transition:border-color .18s,background .18s,color .18s,box-shadow .18s,transform .18s; }
.button:hover { transform:translateY(-1px); }
.button.primary { color:#001217; background:var(--cyan); border-color:var(--cyan); box-shadow:0 0 25px #00d5ff28; }
.button.primary:hover { color:#001217; background:#60e7ff; border-color:#60e7ff; box-shadow:0 0 34px #00d5ff4a; }
.button.secondary { color:#c8f8ff; background:#0a1c22; border-color:#22525d; }
.button.secondary:hover { background:#0e2a32; border-color:#00b8dd; }

.workspace { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(330px,.82fr); gap:24px; align-items:start; }
.settings-column { display:grid; gap:18px; min-width:0; }
.card,.preview-card,.project-tools { position:relative; overflow:hidden; padding:26px 28px; border:1px solid var(--line-soft); border-radius:12px; background:linear-gradient(180deg,#0a171cfa,#071217fa); box-shadow:0 12px 35px #0000002b; }
.card::before,.preview-card::before,.project-tools::before { content:""; position:absolute; top:-1px; left:24px; width:74px; height:1px; background:var(--cyan); box-shadow:0 0 13px var(--cyan); }
.section-heading { display:flex; gap:13px; align-items:center; margin-bottom:24px; }
.section-heading>svg { margin-left:auto; color:#4bc6dc; flex:0 0 auto; }
.step-number { display:flex; align-items:center; justify-content:center; width:34px; height:34px; flex:0 0 auto; border:1px solid #12677a; border-radius:7px; color:var(--cyan); background:#06212a; font:700 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace; box-shadow:inset 0 0 16px #00d5ff12; }
h2 { margin:0; color:#eaffff; font-size:15px; font-weight:680; letter-spacing:-.2px; }
.section-heading p { margin:5px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.mode-list { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:24px; }
.mode-option { position:relative; display:flex; align-items:flex-start; gap:11px; min-height:103px; padding:14px 13px; border:1px solid #153941; border-radius:8px; background:#071419; cursor:pointer; transition:border-color .16s,background .16s,box-shadow .16s; }
.mode-option:hover { border-color:#247385; background:#0a1b20; }
.mode-option.selected { border-color:#00acd0; background:linear-gradient(145deg,#082731,#08181d); box-shadow:inset 0 0 24px #00d5ff0c,0 0 0 1px #00d5ff0a; }
.mode-option.selected::after { content:""; position:absolute; top:0; right:12px; width:32px; height:1px; background:var(--cyan); box-shadow:0 0 9px var(--cyan); }
.mode-option input { margin:3px 0 0; flex:0 0 auto; }
.mode-option strong { color:#dfffff; font-size:12px; font-weight:680; }
.mode-tag { display:inline-block; margin-left:8px; color:#66dff2; font:650 7px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.07em; }
.mode-option small { display:block; margin-top:7px; color:#76999f; font-size:10px; line-height:1.55; }
.field-label { display:flex; justify-content:space-between; gap:12px; margin-bottom:9px; color:#c7f4f8; font-size:11px; line-height:1.5; font-weight:650; }
.field-label output { color:var(--cyan); font:600 10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:nowrap; }
.text-input,select { width:100%; border:1px solid #174550; border-radius:6px; background:#050f13; padding:11px 12px; color:#e8ffff; font-size:12px; transition:border-color .16s,box-shadow .16s,background .16s; }
.text-input:hover,select:hover { border-color:#286b79; }
.text-input:focus,select:focus { border-color:var(--cyan); background:#07161b; box-shadow:0 0 0 3px #00d5ff12; }
.text-input:disabled { opacity:.48; }
.url-input { font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
.field-help { display:block; margin:8px 0 0; color:#75959a; font-size:10px; line-height:1.7; }
.text-button { min-height:32px; border:0; padding:4px 0; color:#69e4f7; text-decoration:underline; text-decoration-color:#00d5ff55; text-underline-offset:4px; font-size:10px; background:transparent; }
.text-button:hover { color:#c8f9ff; }
.text-button.danger { color:#ff9e8e; text-decoration-color:#ff806d66; }
.notice { padding:13px 15px; border-radius:7px; line-height:1.6; font-size:11px; border:1px solid; margin-bottom:14px; overflow-wrap:anywhere; }
.notice.compact { display:flex; gap:10px; align-items:flex-start; font-size:10px; }
.notice.compact svg { flex:0 0 auto; }
.notice.neutral { background:#092028; border-color:#174c58; color:#9dd5dd; }
.notice.warning { background:#241d0e; border-color:#765721; color:#f4d48f; }
.notice.success { background:#09251e; border-color:#17604a; color:#91e5c5; }
.toggle-row { position:relative; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 0; border-bottom:1px solid #102b32; cursor:pointer; }
.toggle-row:last-child { border:none; }
.toggle-row>span:first-child { flex:1; }
.toggle-row strong { display:block; color:#d8f8fb; font-size:11px; font-weight:640; }
.toggle-row small { display:block; margin-top:5px; color:#73969c; font-size:10px; line-height:1.6; }
.toggle-row input { position:absolute; right:2px; width:40px; height:23px; opacity:0; }
.toggle-row input:focus-visible+.switch-track { outline:2px solid var(--cyan); outline-offset:3px; }
.switch-track { display:block; width:38px; height:22px; border:1px solid #2e555d; border-radius:20px; background:#10292f; flex:0 0 auto; pointer-events:none; transition:background .16s,border-color .16s; }
.switch-track::after { content:""; display:block; margin:3px; width:14px; height:14px; border-radius:50%; background:#7b9aa0; transition:transform .16s,background .16s,box-shadow .16s; }
.toggle-row input:checked+.switch-track { border-color:#008ea9; background:#073744; }
.toggle-row input:checked+.switch-track::after { transform:translateX(16px); background:var(--cyan); box-shadow:0 0 11px #00d5ffcc; }
.toggle-row.disabled { opacity:.42; cursor:not-allowed; }
.background-editor { padding-top:15px; }
.upload-zone { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; min-height:146px; padding:24px 18px; overflow:hidden; border:1px dashed #237285; border-radius:8px; color:#70dff0; background:#06161b; text-align:center; cursor:pointer; transition:border-color .16s,background .16s; }
.upload-zone:hover { border-color:var(--cyan); background:#082129; }
.upload-zone input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
.upload-zone:focus-within { outline:2px solid var(--cyan); outline-offset:3px; }
.upload-zone strong { max-width:100%; color:#cbf7fb; font-size:11px; overflow-wrap:anywhere; }
.upload-zone small { color:#62878d; font-size:9px; line-height:1.6; }
.upload-zone img { height:78px; max-width:100%; border-radius:4px; object-fit:contain; }
.split-fields { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:end; margin:18px 0; }
.split-fields.single-field { grid-template-columns:1fr; }
.split-fields>* { min-width:0; }
.range-label { display:block; margin:18px 0 5px; }
.selector-details { margin-top:18px; color:#8cbcc3; font-size:11px; }
.selector-details summary { color:#bdeef3; cursor:pointer; line-height:1.6; }
.selector-field { display:block; margin-top:16px; }

.preview-column { position:sticky; top:20px; min-width:0; }
.preview-card { padding:22px; border-color:#17444e; box-shadow:var(--shadow),0 0 35px #00d5ff0a; }
.preview-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:17px; }
.small-pill { color:#67dff2; border-color:#145161; background:#07212a; }
.stage-preview { position:relative; isolation:isolate; overflow:hidden; aspect-ratio:16/10; border:1px solid #1a5360; border-radius:7px; background:#020709; box-shadow:inset 0 0 35px #000; }
.stage-preview::after { content:""; position:absolute; z-index:6; inset:0; border:1px solid #ffffff08; pointer-events:none; }
.stage-preview>img { position:absolute; inset:0; width:100%; height:100%; }
.stage-preview.with-backdrop { background:#051116; }
.preview-event { position:absolute; inset:0; padding:19px 16px; color:#dffcff; background:radial-gradient(circle at 78% 62%,#00d5ff26 0%,transparent 30%),linear-gradient(135deg,#06151b 0%,#09242d 50%,#041014 100%); }
.preview-event::after { content:""; position:absolute; inset:0; opacity:.7; background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px); background-size:24px 24px; }
.preview-event>small,.preview-event>strong { position:relative; z-index:1; }
.preview-event>small { display:block; margin-bottom:12px; color:#64dbed; font:650 5px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:1px; }
.preview-event>strong { display:block; font-weight:560; font-size:clamp(20px,2.3vw,33px); letter-spacing:-1.2px; line-height:1.02; }
.preview-event>span { position:absolute; z-index:1; bottom:17px; color:#78aab1; font:600 5px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:1px; }
.mini-child { position:absolute; z-index:2; inset:0; display:flex; align-items:center; flex-direction:column; padding:27px 0 15px; }
.mini-child.opaque { inset:10% 3%; background:#03090b; }
.mini-header { position:absolute; inset:0 0 auto; display:flex; justify-content:space-between; gap:6px; padding:9px; color:#86aab0; background:#061318; border-bottom:1px solid #123842; font:600 6px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; }
.mini-header>span:first-child { color:var(--cyan); font-weight:700; }
.mini-caption { max-height:100%; overflow:auto; padding:10px; border:1px solid #1b4e59; border-radius:4px; color:white; background:#000; font-size:clamp(10px,1.1vw,15px); line-height:1.55; box-shadow:0 12px 30px #0009; }
.preview-disclaimer { margin:13px 0 15px; color:#64848a; font-size:9px; line-height:1.7; }
.preview-summary { display:flex; justify-content:space-between; gap:10px; padding:13px 0; border-top:1px solid #123038; border-bottom:1px solid #123038; color:#789ca2; font:550 9px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; }
.preview-summary>span:first-child { display:flex; align-items:center; gap:7px; }
.mode-explainer { padding:17px 0 7px; }
.mode-explainer strong { color:#c9f6fa; font-size:10px; font-weight:650; }
.mode-explainer p { margin-top:8px; color:#6e9298; font-size:10px; line-height:1.7; }
.launch-button { width:100%; justify-content:space-between; padding:14px 17px; }
.launch-note { margin:10px 0 0; color:#58787e; font:500 8px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; text-align:center; }
.project-tools { margin-top:16px; padding:20px; }
.project-tools h3 { margin:0 0 6px; color:#d7fbff; font-size:11px; font-weight:650; }
.project-tools p { color:#6f9298; font-size:10px; line-height:1.6; }
.tool-buttons { display:flex; gap:10px; margin:14px 0; }
.tool-buttons>button { flex:1; padding:8px; }
.check-label { display:flex; align-items:center; gap:8px; color:#85aab0; font-size:10px; cursor:pointer; }
.studio-footer { max-width:1280px; margin:auto; display:flex; justify-content:space-between; gap:20px; padding:21px 8px 28px; border-top:1px solid var(--line-soft); color:#527178; font:500 9px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.02em; }
.mobile-launch { display:none; }

/* Presentation view */
.presentation { width:100%; height:100vh; height:100dvh; display:flex; flex-direction:column; overflow:hidden; color:white; background:#000; }
.stage-canvas { position:relative; isolation:isolate; flex:1 1 0; min-height:0; overflow:hidden; }
.event-background { position:absolute; inset:0; width:100%; height:100%; }
.sample-background { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:space-between; padding:clamp(22px,5vw,100px); color:#e7fdff; background:radial-gradient(circle at 78% 58%,#00d5ff2d 0%,transparent 31%),linear-gradient(135deg,#051116,#08242d 52%,#030a0d); }
.sample-background::after { content:""; position:absolute; inset:0; opacity:.85; background-image:linear-gradient(#ffffff07 1px,transparent 1px),linear-gradient(90deg,#ffffff07 1px,transparent 1px); background-size:80px 80px; }
.sample-background>* { z-index:1; }
.sample-kicker { color:var(--cyan); font:700 clamp(8px,.8vw,13px)/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.25em; }
.sample-background>div { margin-top:4vh; margin-bottom:auto; font-size:clamp(34px,7vw,132px); font-weight:520; letter-spacing:-.06em; line-height:.98; text-shadow:0 0 60px #00d5ff16; }
.sample-background em { color:#7fe9f8; font-family:inherit; font-style:normal; font-weight:480; }
.sample-footer { color:#6b9ba3; font:600 clamp(7px,.7vw,12px)/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.15em; }
.iframe-layout { position:absolute; inset:0; display:flex; justify-content:center; align-items:center; min-width:0; min-height:0; }
.live-frame { display:block; max-width:100%; max-height:100%; border:0; background:transparent; }
.demo-badge { position:absolute; z-index:2; top:14px; right:14px; padding:7px 9px; border:1px solid #12758a; border-radius:5px; color:#99effb; background:#051b21e8; font:700 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.12em; pointer-events:none; }
.stage-diagnostic { position:absolute; z-index:3; left:14px; top:14px; max-width:min(650px,calc(100% - 28px)); max-height:50%; display:flex; gap:12px; overflow:auto; padding:15px; border:1px solid #176d7d; border-radius:8px; color:#c8f8ff; background:#06171df2; box-shadow:0 12px 35px #0009; font-size:11px; }
.stage-diagnostic.warning { color:#ffe1a7; background:#251d0ef2; border-color:#8b6727; }
.stage-diagnostic>svg,.stage-diagnostic>button { flex:0 0 auto; }
.stage-diagnostic p { margin:7px 0 0; color:inherit; opacity:.75; font-size:10px; line-height:1.7; }
.stage-diagnostic .text-button { color:var(--cyan-bright); }
.icon-button { width:30px; height:30px; min-height:30px; border:none; padding:4px; color:inherit; background:transparent; }
.presentation-dock { position:relative; z-index:5; flex:0 0 auto; max-height:42%; overflow:auto; padding:11px 18px max(11px,env(safe-area-inset-bottom)); color:#c8f6fb; background:#051116f5; border-top:1px solid #155260; box-shadow:0 -14px 40px #0007; }
.dock-main { display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.dock-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:8px 11px; border:1px solid #1c5360; border-radius:6px; color:#bcecf2; background:#091b20; font-size:10px; text-decoration:none; }
.dock-button:hover { color:#e9ffff; background:#0d2830; border-color:#00a8c9; }
.dock-button.prominent { color:#001217; background:var(--cyan); border-color:var(--cyan); font-weight:680; box-shadow:0 0 20px #00d5ff2d; }
.dock-actions { display:flex; align-items:center; gap:8px; margin-left:auto; flex-wrap:wrap; }
.dock-status { display:flex; gap:8px; align-items:center; color:#acd8de; font-size:10px; }
.dock-status small { display:block; margin-top:5px; color:#5d7d82; font-size:8px; }
.dock-message { margin:9px 0 0; color:#f1d292; font-size:10px; line-height:1.6; }
.dock-reveal { position:absolute; z-index:5; right:max(12px,env(safe-area-inset-right)); bottom:max(12px,env(safe-area-inset-bottom)); width:44px; height:44px; display:grid; place-items:center; border:1px solid #168198; border-radius:7px; color:#aaf0fa; background:#061a20e8; box-shadow:0 0 22px #00d5ff1f; opacity:.35; transition:opacity .15s,background .15s; }
.dock-reveal:hover,.dock-reveal:focus-visible { opacity:1; background:#092a33; }

/* Direct-page toolkit */
.console-main { max-width:960px; margin:50px auto 76px; padding:0 24px; }
.console-main>.notice { margin-top:24px; }
.console-card { margin-top:18px; }
.console-copy { color:#9bc0c5; font-size:12px; line-height:1.8; }
.console-card .notice { margin-top:20px; margin-bottom:0; }
.console-card .tool-buttons { flex-wrap:wrap; }
.console-card .tool-buttons>button { flex:0 1 auto; padding:11px 17px; }
.code-reader { display:block; width:100%; min-height:350px; margin-top:16px; padding:14px; resize:vertical; border:1px solid #1b5d6b; border-radius:7px; color:#baf3fa; background:#030b0e; box-shadow:inset 0 0 25px #000; font:10px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; }

@media(max-width:1360px) {
  .studio-main,.studio-footer { margin-left:36px; margin-right:36px; }
}
@media(max-width:1060px) {
  .workspace { grid-template-columns:minmax(0,1.3fr) minmax(300px,.8fr); gap:18px; }
  .card { padding:22px; }
  .preview-card { padding:18px; }
  .mode-list { grid-template-columns:1fr; }
  .mode-option { min-height:0; }
  .dock-status { display:none; }
}
@media(max-width:780px) {
  .studio-header { height:70px; padding:0 20px; }
  .header-meta { font-size:9px; }
  .version-pill { display:none; }
  .studio-main { margin:0 18px; padding:34px 0 40px; }
  .intro-row { align-items:flex-start; flex-direction:column; gap:22px; margin-bottom:26px; padding-top:8px; }
  .intro-copy { font-size:12px; }
  .demo-button { align-self:flex-start; }
  .workspace { display:flex; flex-direction:column; gap:20px; }
  .settings-column,.preview-column { width:100%; }
  .preview-column { position:static; }
  .card { padding:21px 18px; }
  .preview-card { padding:18px; }
  .mode-list { grid-template-columns:1fr 1fr; }
  .mode-option { min-height:106px; }
  .preview-event>strong { font-size:30px; }
  .mini-caption { font-size:14px; }
  .mobile-launch { display:block; }
  .mobile-launch button { width:100%; }
  .studio-footer { margin:0 18px; flex-direction:column; gap:6px; }
  .dock-main { gap:9px; }
  .presentation-dock { padding:9px 10px max(9px,env(safe-area-inset-bottom)); }
  .dock-actions { gap:6px; }
  .dock-button { padding:7px; min-height:36px; font-size:9px; }
  .demo-badge { font-size:7px; padding:5px; }
  .stage-diagnostic { padding:11px; font-size:10px; }
}
@media(max-width:520px) {
  .wordmark { font-size:19px; }
  .brand-mark { width:33px; height:33px; }
  .header-meta { max-width:130px; justify-content:flex-end; text-align:right; }
  .header-meta .quiet-dot { display:none; }
  h1 { font-size:38px; letter-spacing:-2px; }
  .mode-list { grid-template-columns:1fr; }
  .mode-option { min-height:0; }
  .split-fields { grid-template-columns:1fr; gap:15px; }
  .preview-title { align-items:flex-start; }
  .dock-actions .dock-button span { display:none; }
  .dock-actions .dock-button.prominent span { display:inline; }
  .dock-button { min-width:36px; }
  .console-main { padding:0 17px; }
  .console-main h1 { font-size:34px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition:none!important; scroll-behavior:auto!important; }
}
