:root {
  color-scheme: dark;
  --bg: #07131d;
  --panel: #0c1b27;
  --panel-2: #102331;
  --line: rgba(150, 194, 208, .14);
  --line-strong: rgba(150, 194, 208, .23);
  --text: #e8f4f4;
  --muted: #8ba5ae;
  --muted-2: #627d88;
  --accent: #69e2d3;
  --accent-2: #2fb8b2;
  --blue: #6eacd4;
  --warning: #e7b77c;
  --radius: 16px;
  --shadow: 0 18px 48px 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; min-width: 320px; min-height: 100%; background: var(--bg); color: var(--text); }
body { overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse at 40% -25%, rgba(42, 108, 121, .16), transparent 47%), var(--bg); }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(7, 19, 29, .86); position: relative; z-index: 2; }
.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(105, 226, 211, .38); border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 3px; transform: rotate(-8deg); background: rgba(105, 226, 211, .06); }
.brand-mark span { display: block; width: 3px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 10px rgba(105, 226, 211, .5); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .55; }.brand-mark span:nth-child(2) { height: 18px; }.brand-mark span:nth-child(3) { height: 12px; opacity: .72; }
.brand-copy { min-width: 0; }
.eyebrow { font-size: 9px; letter-spacing: .17em; color: var(--muted-2); font-weight: 800; line-height: 1.4; }
.eyebrow i { display: inline-block; width: 3px; height: 3px; margin: 0 6px 2px; border-radius: 50%; background: var(--accent); }
h1 { font-size: 17px; letter-spacing: -.035em; margin: 3px 0 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h1 span { color: var(--accent); font-weight: 400; }
.top-meta { display: flex; align-items: center; gap: 9px; }
.topic-chip, .model-chip { border: 1px solid var(--line); border-radius: 99px; padding: 7px 10px; font-size: 9px; letter-spacing: .1em; font-weight: 800; color: #a5bec4; white-space: nowrap; }
.topic-chip { color: var(--accent); border-color: rgba(105, 226, 211, .2); background: rgba(105, 226, 211, .05); }
.chip-dot, .live-mark { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(105, 226, 211, .7); margin-right: 6px; vertical-align: 1px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 358px; gap: 18px; padding: 18px 20px 20px; height: calc(100vh - 76px); height: calc(100dvh - 76px); min-height: 560px; max-width: 1800px; margin: 0 auto; }
.visual-column { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.stage-card { min-height: 0; flex: 1; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15, 35, 48, .96), rgba(8, 22, 33, .98)); box-shadow: var(--shadow); overflow: hidden; }
.stage-topline { height: 43px; flex: 0 0 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid rgba(150, 194, 208, .09); }
.stage-label { color: #a6c0c5; font-size: 9px; letter-spacing: .15em; font-weight: 800; }.stage-units { color: var(--muted-2); font-size: 8px; letter-spacing: .13em; font-weight: 750; }.stage-units span { color: var(--accent); margin: 0 4px; }
.canvas-wrap { flex: 1; min-height: 0; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 44%, rgba(25, 77, 89, .23), transparent 56%), #081923; }
#scene { display: block; width: 100%; height: 100%; outline: none; }
.canvas-corner { position: absolute; top: 14px; pointer-events: none; font-size: 8px; letter-spacing: .12em; color: rgba(166, 196, 202, .55); font-weight: 750; }.canvas-corner.top-left { left: 17px; }.canvas-corner.top-right { right: 17px; color: #9ebbc1; }.canvas-corner b { color: var(--accent); font-size: 10px; margin-left: 4px; }
.stage-footer { min-height: 70px; display: grid; grid-template-columns: max-content minmax(0,1fr) max-content; gap: 14px; align-items: center; padding: 12px 17px; border-top: 1px solid rgba(150, 194, 208, .1); background: rgba(6, 17, 26, .56); }
.state-indicator { display: flex; align-items: center; gap: 7px; border: 1px solid rgba(105, 226, 211, .2); border-radius: 7px; background: rgba(105, 226, 211, .06); color: var(--accent); padding: 7px 9px; font-size: 8px; font-weight: 850; letter-spacing: .12em; white-space: nowrap; }.state-light { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(105,226,211,.7); }
.state-indicator.weak { color: var(--warning); border-color: rgba(231, 183, 124, .2); background: rgba(231, 183, 124, .06); }.state-indicator.weak .state-light { background: var(--warning); box-shadow: 0 0 8px rgba(231,183,124,.6); }.state-indicator.clear { color: #9ab9d2; border-color: rgba(110,172,212,.2); background: rgba(110,172,212,.06); }.state-indicator.clear .state-light { background: var(--blue); box-shadow: 0 0 8px rgba(110,172,212,.6); }
#caption { margin: 0; color: #9bb1b8; font-size: 11px; line-height: 1.5; }.keyboard-hint { color: var(--muted-2); font-size: 8px; letter-spacing: .08em; white-space: nowrap; }kbd { border: 1px solid var(--line-strong); border-radius: 4px; padding: 3px 5px; color: #a9c1c5; font: inherit; }
.under-stage { display: flex; align-items: center; justify-content: space-between; min-height: 18px; padding: 0 4px; gap: 12px; }.legend { display: flex; flex-wrap: wrap; gap: 15px; }.legend-item { color: var(--muted-2); font-size: 9px; display: inline-flex; align-items: center; gap: 6px; }.legend-item i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }.legend-own { background: var(--accent); }.legend-neighbour { background: var(--blue); }.legend-field { background: transparent; border: 1px solid var(--accent); }.model-note { color: #526d77; font-size: 8px; letter-spacing: .09em; white-space: nowrap; }
.control-column { min-width: 0; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(105,226,211,.25) transparent; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 26, 38, .94); box-shadow: var(--shadow); }
.panel-section { padding: 17px 17px 15px; border-bottom: 1px solid var(--line); }.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }.section-heading h2 { margin: 3px 0 0; font-size: 15px; letter-spacing: -.025em; font-weight: 650; }.section-icon { color: var(--accent); font-size: 25px; line-height: 1; opacity: .7; }.section-intro { margin: 9px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.preset-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 15px; }.preset-button { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); color: #9cb4bb; padding: 9px 9px; text-align: left; font-size: 10px; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }.preset-button span { float: right; color: var(--muted-2); }.preset-button.active { border-color: rgba(105,226,211,.38); color: var(--accent); background: rgba(105,226,211,.07); }.preset-button:hover { border-color: rgba(105,226,211,.45); }
.slider-group { margin: 0 0 14px; }.slider-group.last-slider { margin-bottom: 0; }.slider-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }.slider-heading label { color: #c2d4d6; font-size: 10px; font-weight: 600; }.slider-heading output { color: var(--accent); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type=range] { appearance: none; display: block; width: 100%; height: 15px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, rgba(105,226,211,.66), rgba(105,226,211,.18)); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, rgba(105,226,211,.66), rgba(105,226,211,.18)); }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; border: 2px solid #09202a; background: var(--accent); box-shadow: 0 0 0 3px rgba(105,226,211,.13), 0 0 10px rgba(105,226,211,.35); }
input[type=range]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #09202a; background: var(--accent); box-shadow: 0 0 0 3px rgba(105,226,211,.13); }
input[type=range]:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; border-radius: 6px; }.range-ends { display: flex; justify-content: space-between; color: #5e7983; font-size: 8px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.compact-heading { align-items: center; }.live-word { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 8px; letter-spacing: .13em; font-weight: 850; }.live-word i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(105,226,211,.7); }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }.readout-card { min-width: 0; min-height: 73px; padding: 10px 10px 8px; border: 1px solid rgba(150,194,208,.1); border-radius: 9px; background: rgba(255,255,255,.022); }.readout-card.primary-readout { border-color: rgba(105,226,211,.23); background: linear-gradient(135deg, rgba(105,226,211,.08), rgba(105,226,211,.02)); }.readout-label { display: block; color: var(--muted-2); font-size: 7px; letter-spacing: .12em; font-weight: 850; white-space: nowrap; }.readout-card strong { display: inline-block; margin-top: 7px; color: #e5f3f1; font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }.primary-readout strong { color: var(--accent); }.readout-card small { display: block; margin-top: 4px; color: #78929b; font-size: 8px; }.readout-card em { color: #58737d; font-style: normal; font-size: 6px; letter-spacing: .07em; }
.response-meter-wrap { margin-top: 13px; }.meter-heading, .meter-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.meter-heading span, .meter-foot span { color: var(--muted-2); font-size: 7px; letter-spacing: .1em; font-weight: 800; }.meter-heading strong { color: var(--accent); font-size: 8px; letter-spacing: .05em; }.meter-track { height: 5px; border-radius: 8px; margin: 7px 0 6px; overflow: hidden; background: #1b3440; }.meter-fill { height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #2d9c9d, var(--accent)); transition: width .18s ease; }.meter-foot span { font-size: 7px; letter-spacing: .04em; font-weight: 600; }
.time-readout { color: #77949c; font-size: 10px; font-variant-numeric: tabular-nums; }.transport-row { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 7px; margin-top: 13px; }.run-button, .utility-button, .screenshot-button { min-height: 36px; border-radius: 8px; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }.run-button { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(105,226,211,.35); background: var(--accent); color: #082129; font-size: 10px; font-weight: 850; }.play-icon { font-size: 12px; line-height: 1; }.utility-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); color: #b5c8cb; font-size: 9px; }.utility-button span { display: block; color: var(--muted-2); font-size: 7px; margin-top: 1px; }.reset-button { color: #90aab1; }.run-button:hover, .utility-button:hover, .screenshot-button:hover { transform: translateY(-1px); border-color: rgba(105,226,211,.55); }.run-button:active, .utility-button:active, .screenshot-button:active { transform: translateY(0); }
.quality-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }.quality-row > span { color: var(--muted-2); font-size: 7px; letter-spacing: .11em; font-weight: 850; }.segmented { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: rgba(0,0,0,.12); }.segmented button { padding: 4px 9px; border: 0; border-radius: 5px; background: transparent; color: #78929b; font-size: 8px; cursor: pointer; }.segmented button.selected { background: rgba(105,226,211,.14); color: var(--accent); }.screenshot-button { min-height: 26px; padding: 4px 8px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: #9cb5ba; font-size: 9px; }.screenshot-button span { font-size: 8px; }
.science-panel { border-bottom: 1px solid var(--line); }.science-panel summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; }.science-panel summary::-webkit-details-marker { display: none; }.science-panel summary strong { display: block; margin-top: 3px; font-size: 13px; font-weight: 650; }.summary-plus { color: var(--accent); font-size: 18px; transition: transform .2s ease; }.science-panel[open] .summary-plus { transform: rotate(45deg); }.science-content { padding: 0 17px 17px; }.science-content h3 { margin: 10px 0 5px; color: #cfe0df; font-size: 10px; }.science-content p { margin: 5px 0 9px; color: #8ea8af; font-size: 9px; line-height: 1.6; }.equation-card { padding: 9px 10px; margin: 7px 0; border: 1px solid rgba(105,226,211,.13); border-radius: 7px; background: rgba(105,226,211,.035); }.equation-card span { display: block; margin-bottom: 6px; color: #6e9299; font-size: 7px; letter-spacing: .1em; font-weight: 850; }.equation-card code { color: #bcece3; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; white-space: normal; }.science-list { padding-left: 15px; margin: 7px 0 12px; color: #8ea8af; font-size: 8px; line-height: 1.7; }.science-list b { color: var(--accent); }.audit-card { border: 1px solid rgba(110,172,212,.2); border-radius: 8px; padding: 10px; background: rgba(110,172,212,.045); margin-top: 12px; }.audit-head { display: flex; justify-content: space-between; gap: 8px; color: #91b5c9; font-size: 7px; letter-spacing: .1em; font-weight: 850; }.audit-status { color: var(--accent); }.audit-card p { margin: 6px 0 9px; font-size: 8px; }.audit-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }.audit-values small { display: block; color: #6f8e9a; font-size: 6px; letter-spacing: .1em; }.audit-values strong { display: block; margin-top: 3px; color: #d5e9e9; font-size: 12px; font-variant-numeric: tabular-nums; }.disclaimer { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 11px !important; color: #6e8790 !important; font-size: 8px !important; }.panel-footnote { padding: 10px 17px 12px; color: #526c76; font-size: 7px; letter-spacing: .06em; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 1500px) { .workspace { grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; padding: 22px 24px; }.topbar { padding: 0 32px; } }
@media (max-width: 1000px) { .workspace { grid-template-columns: minmax(0, 1fr) 330px; padding: 14px; gap: 12px; }.topbar { padding: 0 18px; }.model-chip { display: none; }.stage-footer { grid-template-columns: max-content minmax(0,1fr); }.keyboard-hint { display: none; } }
@media (max-width: 760px) {
  html, body { min-height: 100%; }
  .app-shell { min-height: 100vh; min-height: 100dvh; }
  .topbar { height: 58px; padding: 0 13px; }.brand-mark { width: 29px; height: 29px; border-radius: 9px; }.brand-copy .eyebrow { font-size: 7px; }.brand-copy h1 { font-size: 13px; }.top-meta { gap: 0; }.topic-chip { font-size: 7px; padding: 6px 7px; }
  .workspace { height: auto; min-height: calc(100vh - 58px); min-height: calc(100dvh - 58px); display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(275px, 41dvh) minmax(0,1fr); gap: 10px; padding: 10px; overflow: hidden; }
  .visual-column { gap: 6px; }.stage-card { min-height: 0; }.stage-topline { height: 31px; flex-basis: 31px; padding: 0 11px; }.stage-label { font-size: 7px; }.stage-units { font-size: 6px; }.canvas-corner { top: 8px; font-size: 6px; }.canvas-corner.top-left { left: 10px; }.canvas-corner.top-right { right: 10px; }.canvas-corner b { font-size: 8px; }.stage-footer { min-height: 48px; grid-template-columns: max-content minmax(0,1fr); gap: 8px; padding: 7px 9px; }.state-indicator { padding: 5px 6px; font-size: 6px; gap: 5px; }.state-light { width: 5px; height: 5px; }#caption { font-size: 8px; line-height: 1.35; }.under-stage { min-height: 14px; }.legend { gap: 9px; }.legend-item { font-size: 7px; gap: 4px; }.legend-item i { width: 5px; height: 5px; }.model-note { font-size: 6px; }
  .control-column { overflow: auto; overscroll-behavior: contain; border-radius: 12px; }.panel-section { padding: 13px 13px 12px; }.section-heading h2 { font-size: 13px; }.section-intro { font-size: 9px; margin: 7px 0 10px; }.preset-row { margin-bottom: 12px; }.preset-button { padding: 8px; font-size: 9px; }.slider-group { margin-bottom: 11px; }.slider-heading label, .slider-heading output { font-size: 9px; }.range-ends { font-size: 7px; }.readout-card { min-height: 62px; padding: 8px; }.readout-card strong { font-size: 19px; margin-top: 6px; }.readout-label { font-size: 6px; }.readout-card small { font-size: 7px; }.readout-card em { font-size: 5px; }.transport-row { margin-top: 10px; }.science-panel summary { padding: 12px 13px; }.science-content { padding: 0 13px 13px; }.panel-footnote { padding: 8px 13px 10px; }
}
@media (max-width: 390px) { .workspace { grid-template-rows: minmax(255px, 39dvh) minmax(0,1fr); padding: 8px; gap: 8px; }.topbar { padding: 0 10px; }.brand-lockup { gap: 9px; }.topic-chip { font-size: 6px; }.stage-footer { grid-template-columns: 1fr; gap: 4px; min-height: 54px; }.state-indicator { width: max-content; }.keyboard-hint { display: none; }.model-note { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body.embed-mode { height: 100vh; height: 100dvh; overflow: hidden; }
body.embed-mode .app-shell { height: 100vh; height: 100dvh; min-height: 0; }
body.embed-mode .workspace { height: calc(100vh - 76px); height: calc(100dvh - 76px); min-height: 0; }
@media (max-width: 760px) { body.embed-mode .workspace { height: calc(100vh - 58px); height: calc(100dvh - 58px); min-height: 0; } }
