:root {
  color-scheme: dark;
  --bg: #08111d;
  --panel: #101b2a;
  --panel-2: #142235;
  --panel-3: #18283d;
  --line: rgba(151, 178, 207, .14);
  --line-strong: rgba(151, 178, 207, .24);
  --text: #e8f0f8;
  --muted: #8fa3b8;
  --dim: #61758b;
  --accent: #f2a45b;
  --accent-bright: #ffc17d;
  --cyan: #5ed6df;
  --green: #83d6b3;
  --radius: 12px;
  --shadow: 0 16px 40px rgba(0,0,0,.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: var(--bg); color: var(--text); }
body { overflow: hidden; }
body.embed-mode { height: 100vh; height: 100dvh; overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.app-shell {
  height: 100vh; height: 100dvh; min-height: 0; display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 36px;
  background: radial-gradient(ellipse at 50% -20%, rgba(41,72,103,.26), transparent 58%), var(--bg);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(8,17,29,.88);
  min-width: 0; z-index: 2;
}
.brand-lockup { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(242,164,91,.35); background: linear-gradient(145deg, rgba(242,164,91,.18), rgba(242,164,91,.03)); display:flex; align-items:flex-end; justify-content:center; gap:3px; padding:8px; flex:none; }
.brand-mark span { display:block; width:4px; border-radius:5px 5px 1px 1px; background:linear-gradient(to top,var(--accent),#ffdb9d); box-shadow:0 0 10px rgba(242,164,91,.3); }
.brand-mark span:nth-child(1){height:9px}.brand-mark span:nth-child(2){height:16px}.brand-mark span:nth-child(3){height:12px}
.brand-copy { min-width:0; }
.eyebrow, .section-kicker { color: #7f96ae; font-size: 9px; letter-spacing: .17em; font-weight: 750; line-height: 1.2; }
.eyebrow { display:flex; align-items:center; gap:8px; margin-bottom:4px; white-space:nowrap; }
.eyebrow-dot { width:3px; height:3px; border-radius:50%; background:var(--accent); }
h1 { font-size: 18px; line-height:1.1; margin:0; font-weight:760; letter-spacing:-.035em; white-space:nowrap; }
h1 span { color:#a9bbcd; font-weight:500; }
.topbar-meta { display:flex; align-items:center; gap:12px; }
.era-chip, .offline-chip { display:flex; align-items:center; gap:7px; color:#aabbd0; font-size:9px; letter-spacing:.08em; font-weight:750; white-space:nowrap; }
.era-chip small { color:#72869b; font-size:8px; letter-spacing:.1em; padding-left:4px; }
.era-dot { width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 9px rgba(242,164,91,.55); }
.offline-chip { padding:7px 10px; border:1px solid var(--line); border-radius:20px; color:#91a6bb; }
.offline-pulse { width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 8px rgba(131,214,179,.55); }
.workspace { display:grid; grid-template-columns: 292px minmax(0,1fr) 292px; gap:10px; min-height:0; padding:10px; }
.panel { background:linear-gradient(180deg, rgba(18,31,48,.98), rgba(13,25,40,.98)); border:1px solid var(--line); border-radius:var(--radius); min-height:0; box-shadow:var(--shadow); }
.controls-panel, .inspector-panel { overflow:auto; scrollbar-width:thin; scrollbar-color:#30465d transparent; }
.controls-panel { padding:17px 16px 14px; }
.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:18px; }
.panel-heading h2 { font-size:15px; margin:5px 0 0; letter-spacing:-.02em; font-weight:700; }
.tiny-mark { color:#526a82; font-size:10px; letter-spacing:.12em; font-weight:800; padding-top:2px; }
.preset-block { padding:12px; background:rgba(255,255,255,.025); border:1px solid var(--line); border-radius:10px; margin-bottom:16px; }
.control-label-row { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.control-label-row label { font-size:11px; color:#c6d3e0; font-weight:650; }
.kind-tag { display:inline-flex; align-items:center; justify-content:center; color:#72879c; font-size:7px; letter-spacing:.11em; font-weight:800; border:1px solid rgba(132,158,185,.2); border-radius:4px; padding:3px 5px; white-space:nowrap; flex:none; }
.preset-buttons { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:9px; }
.preset-btn { border:1px solid var(--line); background:#111f30; border-radius:7px; color:#90a5ba; font-size:10px; padding:8px 5px; cursor:pointer; transition:background .2s,border-color .2s,color .2s,transform .2s; }
.preset-btn:hover { border-color:rgba(242,164,91,.45); color:#e9f1f8; }
.preset-btn.active { color:#ffd4a5; border-color:rgba(242,164,91,.45); background:rgba(242,164,91,.11); box-shadow:inset 0 0 0 1px rgba(242,164,91,.06); }
.slider-list { display:flex; flex-direction:column; gap:14px; }
.slider-control { min-width:0; }
.slider-value { display:flex; align-items:baseline; gap:5px; margin:4px 0 4px; }
.slider-value output { color:#f4f7fb; font-size:17px; line-height:1.15; font-weight:720; font-variant-numeric:tabular-nums; letter-spacing:-.04em; }
.slider-value span { color:#8da1b6; font-size:10px; }
input[type="range"] { display:block; width:100%; height:15px; margin:0; appearance:none; background:transparent; cursor:pointer; touch-action:pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height:4px; border-radius:10px; background:linear-gradient(90deg, rgba(242,164,91,.85), rgba(242,164,91,.2)); border:1px solid rgba(242,164,91,.16); }
input[type="range"]::-moz-range-track { height:4px; border-radius:10px; background:linear-gradient(90deg, rgba(242,164,91,.85), rgba(242,164,91,.2)); border:1px solid rgba(242,164,91,.16); }
input[type="range"]::-webkit-slider-thumb { appearance:none; width:13px;height:13px;border-radius:50%; margin-top:-5px; background:#ffd09b; border:2px solid #15263a; box-shadow:0 0 0 2px rgba(242,164,91,.28),0 0 12px rgba(242,164,91,.35); }
input[type="range"]::-moz-range-thumb { width:10px;height:10px;border-radius:50%; background:#ffd09b; border:2px solid #15263a; box-shadow:0 0 0 2px rgba(242,164,91,.28); }
.range-ends { display:flex; justify-content:space-between; color:#62788f; font-size:8px; margin-top:1px; font-variant-numeric:tabular-nums; }
.transport-block { border-top:1px solid var(--line); margin-top:16px; padding-top:13px; }
.transport-buttons { display:grid; grid-template-columns:1.1fr 1fr .8fr; gap:5px; margin-top:9px; }
.transport-btn { display:flex; align-items:center; justify-content:center; gap:5px; min-width:0; padding:9px 5px; background:#15253a; border:1px solid var(--line); border-radius:7px; color:#a9bbcd; font-size:9px; font-weight:700; cursor:pointer; transition:all .18s; white-space:nowrap; }
.transport-btn:hover { border-color:var(--line-strong); background:#1b3048; color:#fff; }
.transport-btn.primary { background:linear-gradient(135deg,#b96d36,#87502e); border-color:rgba(255,193,125,.5); color:#fff2e3; }
.transport-btn.primary:hover { filter:brightness(1.12); }
.play-icon { font-size:11px; width:12px; text-align:center; }
.step-icon { font-size:13px; color:var(--cyan); }
.reset-icon { font-size:14px; }
.changeover-btn { width:100%; display:flex; align-items:center; justify-content:center; gap:7px; padding:9px 10px; margin-top:7px; border:1px solid rgba(94,214,223,.23); border-radius:7px; background:rgba(94,214,223,.07); color:#9be4e8; font-size:10px; font-weight:750; cursor:pointer; transition:all .2s; }
.changeover-btn:hover { background:rgba(94,214,223,.13); border-color:rgba(94,214,223,.48); }
.changeover-btn small { color:#668e9b; font-size:7px; letter-spacing:.1em; margin-left:auto; }
.changeover-arrows { font-size:15px; }
.control-note { display:flex; align-items:flex-start; gap:8px; margin-top:14px; padding:10px 9px; background:rgba(94,214,223,.045); border-radius:7px; color:#71889e; font-size:9px; line-height:1.45; }
.note-icon { display:flex;align-items:center;justify-content:center; width:13px;height:13px; flex:none; border-radius:50%; border:1px solid rgba(94,214,223,.35); color:var(--cyan); font-size:9px; font-weight:800; }
.stage-panel { display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(180deg,#0d1928,#0a1522); box-shadow:var(--shadow); position:relative; }
.stage-toolbar { height:48px; flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 14px; border-bottom:1px solid var(--line); background:rgba(17,31,48,.84); }
.view-tabs { display:flex; align-items:center; gap:3px; padding:3px; background:#0b1725; border:1px solid rgba(132,158,185,.12); border-radius:8px; }
.view-tab { border:0; background:transparent; color:#7f95aa; font-size:10px; font-weight:650; padding:6px 11px; border-radius:5px; cursor:pointer; transition:all .2s; }
.view-tab:hover { color:#dce7f1; }
.view-tab.active { color:#f7d4b0; background:rgba(242,164,91,.14); box-shadow:inset 0 0 0 1px rgba(242,164,91,.14); }
.stage-tools { display:flex; align-items:center; gap:8px; }
.quality-toggle { display:flex; align-items:center; gap:2px; padding:3px; background:#0b1725; border:1px solid rgba(132,158,185,.12); border-radius:7px; }
.quality-btn { border:0; background:transparent; color:#71869c; padding:5px 8px; font-size:9px; border-radius:4px; cursor:pointer; }
.quality-btn.active { background:#20364d; color:#dce9f5; }
.icon-action { width:29px;height:29px; display:grid;place-items:center; border:1px solid var(--line); border-radius:7px; background:#14243a; color:#9fb4c9; cursor:pointer; font-size:14px; transition:all .2s; }
.icon-action:hover { color:#fff; border-color:rgba(94,214,223,.4); }
.canvas-stage { flex:1; min-height:0; position:relative; overflow:hidden; background:radial-gradient(ellipse at 52% 45%,rgba(35,65,91,.23),transparent 56%),linear-gradient(180deg,#0c1928,#091421); }
#sceneCanvas { display:block; width:100%;height:100%; }
.canvas-topline { position:absolute; top:14px; left:16px; right:16px; display:flex; justify-content:space-between; align-items:center; pointer-events:none; }
.scene-overline { color:#71869b; font-size:8px; letter-spacing:.16em; font-weight:800; }
.phase-pill { display:flex; align-items:center; gap:7px; padding:6px 9px; border:1px solid rgba(242,164,91,.25); border-radius:20px; color:#f0b77f; background:rgba(89,49,26,.22); font-size:8px; font-weight:800; letter-spacing:.08em; white-space:nowrap; }
.phase-pill i { width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px rgba(242,164,91,.55); }
.phase-pill.blast { border-color:rgba(94,214,223,.3); color:#8fe2e6; background:rgba(26,74,82,.23); }
.phase-pill.blast i { background:var(--cyan);box-shadow:0 0 8px rgba(94,214,223,.6); }
.canvas-corner-label { position:absolute; left:16px; bottom:13px; display:flex; align-items:center; gap:7px; color:#60788e; font-size:8px; letter-spacing:.12em; font-weight:750; pointer-events:none; }
.corner-cross { color:#8aa0b5; font-size:14px; }
.flow-legend { position:absolute; right:15px; bottom:14px; display:flex; align-items:center; gap:6px; color:#8498ac; font-size:8px; letter-spacing:.08em; font-weight:750; pointer-events:none; }
.legend-swatch { width:12px;height:3px;border-radius:3px;display:inline-block; }
.legend-swatch.hot { background:var(--accent); box-shadow:0 0 7px rgba(242,164,91,.5); }
.legend-swatch.cool { background:var(--cyan); box-shadow:0 0 7px rgba(94,214,223,.4); }
.legend-separator { height:10px;width:1px;background:var(--line-strong);margin:0 3px; }
.caption-bar { flex:none; display:flex; align-items:center; gap:12px; min-height:66px; padding:10px 16px; background:linear-gradient(90deg,rgba(242,164,91,.06),rgba(16,31,48,.7) 48%); border-top:1px solid var(--line); }
.caption-icon { width:28px;height:28px; display:grid;place-items:center; border-radius:8px; background:rgba(242,164,91,.13); border:1px solid rgba(242,164,91,.2); color:var(--accent-bright); font-size:16px; flex:none; }
.caption-icon.blast { color:var(--cyan); background:rgba(94,214,223,.1); border-color:rgba(94,214,223,.2); }
.caption-copy { min-width:0; flex:1; }
.caption-heading { font-size:11px; font-weight:750; color:#dbe7f1; margin-bottom:3px; }
.caption-copy p { margin:0; color:#8da1b5; font-size:9px; line-height:1.35; }
.phase-clock { display:flex; flex-direction:column; align-items:flex-end; gap:2px; flex:none; min-width:62px; }
.phase-clock span { color:#687f95; font-size:7px; letter-spacing:.12em; font-weight:800; }
.phase-clock strong { font-size:15px; color:#e7eff7; font-variant-numeric:tabular-nums; letter-spacing:.02em; }
.phase-clock .kind-tag { font-size:6px; padding:2px 4px; }
.mobile-metrics { display:none; }
.inspector-panel { padding:17px 15px 14px; }
.inspector-heading { margin-bottom:14px; }
.live-indicator { display:flex; align-items:center; gap:5px; color:#86d6b2; font-size:8px; letter-spacing:.12em; font-weight:800; padding-top:4px; }
.live-indicator i { width:5px;height:5px;border-radius:50%;background:#83d6b3;box-shadow:0 0 8px rgba(131,214,179,.5); }
.readout-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.readout-card { min-width:0; padding:10px 9px 9px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.025); }
.readout-card.featured { grid-column:1 / -1; background:linear-gradient(110deg,rgba(242,164,91,.12),rgba(242,164,91,.035)); border-color:rgba(242,164,91,.2); }
.readout-top { display:flex; align-items:center; justify-content:space-between; gap:5px; color:#7e94a9; font-size:7px; letter-spacing:.1em; font-weight:800; white-space:nowrap; }
.readout-top .kind-tag { font-size:6px; padding:2px 4px; }
.readout-value { display:flex; align-items:baseline; gap:4px; margin-top:7px; }
.readout-value strong { font-size:22px; line-height:1; color:#edf4fa; letter-spacing:-.05em; font-weight:720; font-variant-numeric:tabular-nums; }
.featured .readout-value strong { color:#ffd3a5; font-size:30px; }
.readout-value span { color:#91a5b9; font-size:10px; }
.readout-track { height:3px; background:rgba(255,255,255,.08); border-radius:5px; margin-top:9px; overflow:hidden; }
.readout-track i { display:block; height:100%; width:0; border-radius:5px; background:linear-gradient(90deg,#c77a42,#ffd09b); transition:width .25s; }
.readout-sub { color:#6f8499; font-size:8px; margin-top:7px; line-height:1.3; min-height:20px; }
.effectiveness-block { margin-top:9px; padding:11px 10px; border:1px solid rgba(94,214,223,.17); border-radius:8px; background:rgba(94,214,223,.045); }
.effectiveness-heading { display:flex;align-items:center;justify-content:space-between;gap:5px;color:#7e9aa9;font-size:7px;letter-spacing:.1em;font-weight:800; }
.effectiveness-heading .kind-tag { font-size:6px; }
.effectiveness-line { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-top:5px; }
.effectiveness-line strong { color:#9be4e8; font-size:20px; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.effectiveness-line span { color:#7d9ba7; font-size:8px; }
.effectiveness-track { height:4px; background:rgba(255,255,255,.08); border-radius:5px; margin-top:7px; overflow:hidden; }
.effectiveness-track i { display:block; height:100%; width:0; background:linear-gradient(90deg,#398f9b,#7fe2e7); border-radius:5px; transition:width .25s; }
.effectiveness-foot { display:flex; align-items:center; justify-content:space-between; gap:6px; color:#607d8b; font-size:7px; margin-top:7px; }
.profile-block { margin-top:15px; }
.profile-heading { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px; }
.profile-heading h3 { margin:4px 0 0; font-size:11px; font-weight:700; }
#profileCanvas { display:block; width:100%; height:140px; border-radius:7px; background:rgba(4,11,19,.35); border:1px solid rgba(151,178,207,.09); }
.profile-legend { display:flex;align-items:center;gap:14px;color:#7c91a5;font-size:8px;margin-top:6px; }
.profile-legend span { display:flex;align-items:center;gap:5px; }
.profile-key { width:12px;height:3px;border-radius:3px;display:inline-block; }
.solid-key { background:#e9a66b; }.gas-key { background:#60d1dd; }
.audit-card { margin-top:14px; padding:10px; border:1px solid rgba(131,214,179,.18); border-radius:8px; background:rgba(131,214,179,.04); }
.audit-heading { display:flex;align-items:center;gap:7px; }
.audit-check { display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:rgba(131,214,179,.14);color:#94e1bd;font-size:11px;font-weight:900;flex:none; }
.audit-heading div { display:flex;flex-direction:column;gap:2px;flex:1;min-width:0; }
.audit-heading strong { color:#cfe9dd;font-size:9px; }
.audit-heading small { color:#73958a;font-size:7px; }
.audit-heading .kind-tag { font-size:6px; }
.audit-result { display:flex;align-items:baseline;gap:7px;margin-top:8px; }
.audit-result strong { color:#a1e7c4;font-size:18px;letter-spacing:-.04em;font-variant-numeric:tabular-nums; }
.audit-result span { color:#779187;font-size:7px; }
.audit-foot { color:#668178;font-size:7px;line-height:1.4;margin-top:4px; }
.science-panel { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; }
.science-panel summary { display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;color:#c9d8e6;font-size:10px;font-weight:750; }
.science-panel summary::-webkit-details-marker { display:none; }
.science-icon { display:grid;place-items:center;width:19px;height:19px;border:1px solid rgba(94,214,223,.22);border-radius:5px;color:var(--cyan);background:rgba(94,214,223,.06);font-size:13px; }
.summary-chevron { margin-left:auto;color:#73889d;font-size:13px;transition:transform .2s; }
.science-panel[open] .summary-chevron { transform:rotate(180deg); }
.science-content { padding-top:11px; }
.science-intro { color:#91a5b9;font-size:9px;line-height:1.5;margin:0 0 10px; }
.equation-card { padding:9px; margin:7px 0; background:rgba(4,11,19,.35); border:1px solid rgba(151,178,207,.1); border-radius:7px; overflow:hidden; }
.equation-label { display:flex;justify-content:space-between;gap:6px;color:#7f98ad;font-size:7px;letter-spacing:.1em;font-weight:800;margin-bottom:7px; }
.equation-label small { color:#60778d;font-size:6px; }
.equation { color:#d6e4f0;font-family:Georgia,"Times New Roman",serif;font-size:10px;line-height:1.6;overflow-wrap:anywhere;margin:3px 0; }
.equation sub,.equation sup { font-size:7px; }
.property-note,.simplification-note,.history-note { color:#8095a9;font-size:8px;line-height:1.5;padding:8px 9px;margin-top:7px;border-left:2px solid rgba(94,214,223,.4);background:rgba(94,214,223,.035); }
.property-note strong,.simplification-note strong,.history-note strong { color:#b9cbd9; }
.history-note { border-left-color:rgba(242,164,91,.45);background:rgba(242,164,91,.035); }
.history-note .kind-tag { margin-top:5px; }
.disclaimer { color:#61768b;font-size:7px;line-height:1.45;margin:10px 0 1px; }
.statusbar { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px;border-top:1px solid var(--line);color:#657b91;font-size:7px;letter-spacing:.12em;font-weight:750;white-space:nowrap; }
.status-dot { display:inline-block;width:5px;height:5px;border-radius:50%;background:#83d6b3;box-shadow:0 0 7px rgba(131,214,179,.4);margin-right:5px; }
.status-divider { color:#34495f;padding:0 6px; }
.status-right { display:flex;align-items:center;gap:3px; }

@media (max-width: 1120px) and (min-width: 801px) {
  .workspace { grid-template-columns:260px minmax(0,1fr) 260px; }
  .controls-panel { padding:14px 12px; }
  .inspector-panel { padding:14px 11px; }
  .readout-value strong { font-size:19px; }
  .featured .readout-value strong { font-size:27px; }
}
@media (max-width: 800px) {
  .app-shell { grid-template-rows:56px minmax(0,1fr) 30px; }
  .topbar { padding:0 12px; }
  .brand-mark { width:29px;height:29px;padding:6px; }
  h1 { font-size:15px; }
  .eyebrow { font-size:7px; margin-bottom:3px; }
  .topbar-meta { gap:7px; }
  .era-chip { font-size:7px; }
  .era-chip small { display:none; }
  .offline-chip { font-size:7px; padding:6px 7px; }
  .workspace { display:grid;grid-template-columns:1fr;grid-template-rows:minmax(260px,1fr) minmax(220px,34%);gap:8px;padding:8px; }
  .stage-panel { grid-row:1; }
  .controls-panel { grid-row:2; padding:12px 12px 14px; }
  .inspector-panel { display:none; }
  .stage-toolbar { height:42px;padding:0 9px; }
  .view-tab { padding:6px 8px;font-size:9px; }
  .quality-btn { padding:5px 7px; }
  .icon-action { width:27px;height:27px; }
  .canvas-topline { top:9px;left:10px;right:10px; }
  .scene-overline { font-size:7px; }
  .phase-pill { padding:5px 7px;font-size:7px; }
  .canvas-corner-label { left:10px;bottom:8px;font-size:7px; }
  .flow-legend { right:10px;bottom:9px;font-size:7px; }
  .caption-bar { min-height:55px;padding:8px 10px;gap:8px; }
  .caption-icon { width:24px;height:24px; }
  .caption-heading { font-size:9px; }
  .caption-copy p { font-size:8px; }
  .phase-clock { min-width:52px; }
  .phase-clock strong { font-size:13px; }
  .mobile-metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px 7px 7px;border-top:1px solid var(--line);background:rgba(8,17,29,.6); }
  .mobile-metric { min-width:0;display:flex;flex-direction:column;gap:2px;padding:5px 6px;border:1px solid rgba(151,178,207,.1);border-radius:6px;background:rgba(255,255,255,.025); }
  .mobile-metric span { color:#6f859a;font-size:6px;letter-spacing:.08em;font-weight:800;white-space:nowrap; }
  .mobile-metric strong { color:#e9f2f9;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.03em; }
  .mobile-metric .kind-tag { align-self:flex-start;font-size:5px;padding:1px 3px; }
  .controls-panel .panel-heading { margin-bottom:10px; }
  .controls-panel .panel-heading h2 { font-size:13px;margin-top:3px; }
  .preset-block { padding:8px 9px;margin-bottom:10px; }
  .preset-buttons { margin-top:6px; }
  .preset-btn { padding:6px 4px;font-size:9px; }
  .slider-list { display:grid;grid-template-columns:1fr 1fr;column-gap:15px;row-gap:10px; }
  .slider-control { min-width:0; }
  .slider-control:last-child { grid-column:1 / -1; }
  .slider-value { margin:2px 0 1px; }
  .slider-value output { font-size:14px; }
  .range-ends { font-size:7px; }
  .transport-block { margin-top:10px;padding-top:9px; }
  .transport-buttons { margin-top:6px; }
  .transport-btn { padding:8px 4px;font-size:8px; }
  .changeover-btn { padding:8px;font-size:9px; }
  .control-note { margin-top:9px;padding:8px;font-size:8px; }
  .statusbar { padding:0 9px;font-size:6px;letter-spacing:.08em; }
}
@media (max-width: 430px) {
  .topbar-meta .era-chip { display:none; }
  .workspace { grid-template-rows:minmax(260px,1fr) minmax(230px,36%); }
  .view-tab { padding:6px 7px;font-size:8px; }
  .quality-toggle { gap:0; }
  .quality-btn { padding:5px 6px;font-size:8px; }
  .mobile-metric strong { font-size:10px; }
  .mobile-metric span { font-size:5px; }
  .phase-pill { max-width:160px; }
  .caption-copy p { max-width:240px; }
}
@media (max-height: 720px) and (min-width: 801px) {
  .app-shell { grid-template-rows:58px minmax(0,1fr) 30px; }
  .workspace { padding:7px;gap:7px; }
  .controls-panel,.inspector-panel { padding-top:11px;padding-bottom:10px; }
  .panel-heading { margin-bottom:11px; }
  .slider-list { gap:9px; }
  .transport-block { margin-top:10px;padding-top:9px; }
  #profileCanvas { height:115px; }
  .audit-card { margin-top:9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
.cycle-recovery { display:flex;align-items:center;gap:6px;margin-top:9px;padding-top:8px;border-top:1px solid rgba(94,214,223,.12); }
.cycle-recovery > span:first-child { color:#6f8d99;font-size:6px;letter-spacing:.1em;font-weight:800;flex:1; }
.cycle-recovery strong { color:#b7e9d1;font-size:11px;font-variant-numeric:tabular-nums; }
.cycle-recovery .kind-tag { font-size:5px;padding:2px 3px; }
