:root {
  color-scheme: dark;
  --bg: #07121d;
  --panel: #0c1a28;
  --panel-2: #102235;
  --line: rgba(157, 190, 216, .13);
  --muted: #8198aa;
  --text: #e8f1f7;
  --cyan: #75dce7;
  --ice: #b9f5ff;
  --violet: #b18bff;
  --amber: #ffc47a;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; }
button, select, input { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; max-width: 1800px; margin: 0 auto; padding: 0 22px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 16px; }
.brand-lockup { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(117,220,231,.4); border-radius: 10px; position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; background: linear-gradient(145deg, rgba(117,220,231,.12), rgba(177,139,255,.08)); }
.brand-mark span { width: 3px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 10px rgba(117,220,231,.6); }
.brand-mark span:nth-child(1) { height: 10px; opacity: .55; }.brand-mark span:nth-child(2) { height: 19px; }.brand-mark span:nth-child(3) { height: 13px; opacity: .75; }
.eyebrow, .section-label, .hud-kicker { color: #8ca8bb; font-size: 9px; letter-spacing: .16em; font-weight: 750; }
h1 { font-size: 17px; letter-spacing: -.02em; margin: 3px 0 0; font-weight: 650; }
.topbar-meta { display: flex; align-items: center; gap: 12px; color: #92a9ba; font-size: 9px; letter-spacing: .12em; font-weight: 700; white-space: nowrap; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #70e6c3; box-shadow: 0 0 9px #70e6c3; }
.seed-chip { border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; color: #a9c0d1; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 16px; padding: 16px 0 12px; align-items: start; }
.visual-column { min-width: 0; }
.scene-frame { position: relative; width: 100%; height: clamp(420px, calc(100vh - 315px), 680px); min-height: 420px; overflow: hidden; border: 1px solid rgba(130,177,203,.18); border-radius: 14px; background: radial-gradient(ellipse at 48% 48%, #17324a 0%, #0a1b2b 55%, #050e17 100%); box-shadow: 0 18px 50px rgba(0,0,0,.24), inset 0 0 50px rgba(50,110,145,.08); }
.scene-mount { position: absolute; inset: 0; z-index: 1; }
.scene-mount canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-mount .label-layer { pointer-events: none; }
.scene-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(3,10,17,.36), transparent 24%, transparent 72%, rgba(3,10,17,.5)); }
.scene-hud { position: absolute; z-index: 3; pointer-events: none; }
.hud-top-left { top: 22px; left: 24px; }
.hud-title { margin-top: 7px; font-size: clamp(19px, 2vw, 26px); letter-spacing: -.045em; font-weight: 650; color: #eff8fc; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hud-subtitle { margin-top: 6px; color: #9db5c5; font-size: 11px; letter-spacing: .015em; }
.hud-top-right { top: 20px; right: 20px; display: flex; gap: 7px; }
.hud-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(5,17,28,.68); border: 1px solid rgba(148,191,217,.2); border-radius: 99px; padding: 7px 10px; color: #c7dce8; font-size: 9px; letter-spacing: .1em; backdrop-filter: blur(8px); }
.hud-pill i { width: 5px; height: 5px; border-radius: 50%; background: #70e6c3; box-shadow: 0 0 8px #70e6c3; }.hud-pill b { color: #eafaff; font-weight: 700; }
.hud-pill.muted { color: #91aabb; }
.scene-legend { position: absolute; z-index: 3; left: 23px; bottom: 22px; display: grid; gap: 9px; padding: 12px 14px; border: 1px solid rgba(148,191,217,.16); border-radius: 9px; background: rgba(5,17,28,.62); backdrop-filter: blur(9px); color: #c1d3df; font-size: 10px; }
.scene-legend div { display: flex; align-items: center; gap: 8px; }.scene-legend small { color: #7f98a9; font-size: 9px; }
.legend-swatch { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }.legend-swatch.ice { background: #c5faff; box-shadow: 0 0 9px #9aefff; }.legend-swatch.plasma { background: #b38cff; box-shadow: 0 0 9px #a67dff; }.legend-swatch.radar { background: #ffc47a; box-shadow: 0 0 9px #ffc47a; }
.scene-bottomline { position: absolute; z-index: 3; right: 21px; bottom: 22px; display: flex; gap: 18px; color: #718a9c; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.transport-bar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; margin-top: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(13,29,44,.8); }
.transport-left, .transport-right { display: flex; align-items: center; gap: 7px; }
.transport-btn, .icon-btn, .quality-toggle { border: 1px solid rgba(144,181,205,.16); background: rgba(18,39,57,.8); border-radius: 7px; color: #b7cad8; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.transport-btn { padding: 8px 11px; font-size: 10px; font-weight: 650; }.transport-btn:hover, .icon-btn:hover, .quality-toggle:hover { background: #18364d; border-color: rgba(117,220,231,.4); }.transport-btn:active, .icon-btn:active { transform: translateY(1px); }
.transport-btn.primary { background: rgba(65,160,173,.17); border-color: rgba(117,220,231,.35); color: #aef3f5; }.play-icon { margin-right: 6px; font-size: 11px; }
kbd { border: 1px solid rgba(160,189,208,.2); border-radius: 3px; padding: 1px 4px; margin-left: 4px; color: #7893a5; font-size: 8px; }
.transport-divider { width: 1px; height: 24px; background: var(--line); margin: 0 3px; }.speed-control { display: flex; align-items: center; gap: 7px; color: #7893a5; font-size: 8px; letter-spacing: .12em; font-weight: 700; }.speed-control select { background: transparent; border: 0; color: #c7d8e3; font-size: 10px; outline: none; cursor: pointer; }.speed-control select option { background: #102235; }
.icon-btn { width: 31px; height: 31px; font-size: 17px; line-height: 1; }.quality-toggle { height: 31px; padding: 0 9px; font-size: 8px; letter-spacing: .1em; font-weight: 800; }.quality-toggle.active { color: #8de3dc; border-color: rgba(117,220,231,.32); }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.readout-card { min-height: 89px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(16,37,55,.96), rgba(10,25,39,.96)); padding: 11px 12px 9px; min-width: 0; }
.readout-label { color: #829cae; font-size: 8px; letter-spacing: .11em; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.unit-tag { margin-left: 4px; color: #627e91; font-size: 7px; letter-spacing: .08em; }.unit-tag.scaled { color: #d5a96e; }
.readout-value { margin-top: 7px; color: #e8f6fb; font-size: 23px; line-height: 1; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }.readout-value small { margin-left: 5px; color: #91aabc; font-size: 10px; font-weight: 500; letter-spacing: 0; }.readout-foot { margin-top: 6px; color: #70899b; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.highlight-readout { border-color: rgba(177,139,255,.23); background: linear-gradient(145deg, rgba(36,31,65,.75), rgba(12,25,42,.98)); }
.validation-strip { display: flex; align-items: center; gap: 10px; margin-top: 9px; padding: 10px 13px; border: 1px solid rgba(117,220,231,.18); border-radius: 9px; background: rgba(13,35,47,.6); min-width: 0; }.validation-icon { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; color: #86e6d3; background: rgba(80,196,165,.12); font-size: 12px; }.validation-copy { display: grid; gap: 3px; min-width: 0; }.validation-copy strong { font-size: 8px; color: #91b9c6; letter-spacing: .1em; }.validation-copy span { font-size: 9px; color: #8da6b5; font-variant-numeric: tabular-nums; }.validation-copy b { color: #d8eaf0; font-weight: 650; }.validation-status { margin-left: auto; color: #78cfc0; font-size: 8px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.control-panel { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #0d1c2b, #0a1724); padding: 17px 16px 13px; min-width: 0; max-height: calc(100vh - 108px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #29485d transparent; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--line); }.panel-heading h2 { margin: 5px 0 0; font-size: 15px; font-weight: 620; letter-spacing: -.025em; }.panel-indicator { color: #73d8c4; font-size: 10px; text-shadow: 0 0 9px rgba(115,216,196,.6); }
.preset-block { padding: 14px 0 13px; border-bottom: 1px solid var(--line); }.section-label { margin-bottom: 10px; }.preset-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }.preset-btn { min-height: 32px; padding: 6px 4px; border: 1px solid rgba(140,175,198,.15); border-radius: 6px; background: #102336; color: #91aabc; font-size: 9px; cursor: pointer; transition: .18s ease; }.preset-btn:hover { border-color: rgba(117,220,231,.4); color: #d5edf5; }.preset-btn.active { color: #a9f0ed; background: rgba(65,160,173,.15); border-color: rgba(117,220,231,.42); }
.control-section { padding: 13px 0 12px; border-bottom: 1px solid var(--line); }.control-section .section-label { margin-bottom: 12px; }.control-row + .control-row { margin-top: 14px; }.control-row label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #c5d4df; font-size: 10px; }.control-row output { color: #8bdde1; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; height: 15px; margin: 7px 0 0; background: transparent; cursor: pointer; accent-color: #73d5df; }.range-ends { display: flex; justify-content: space-between; color: #627d90; font-size: 8px; margin-top: -1px; }
input[type="range"]:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #77dbe4; outline-offset: 3px; }
.control-footnote { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 11px; padding: 9px; border-radius: 7px; background: rgba(117,220,231,.055); }.info-mark { flex: 0 0 15px; width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid rgba(117,220,231,.35); border-radius: 50%; color: #85dfe5; font-size: 9px; }.control-footnote p { margin: 0; color: #809aab; font-size: 9px; line-height: 1.45; }
.science-panel { border: 1px solid rgba(140,175,198,.15); border-radius: 8px; background: rgba(10,25,39,.6); }.science-panel summary { display: flex; align-items: center; justify-content: space-between; list-style: none; padding: 11px 11px; cursor: pointer; color: #c7dbe5; font-size: 10px; font-weight: 700; }.science-panel summary::-webkit-details-marker { display: none; }.science-symbol { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: rgba(177,139,255,.13); color: #c2a8ff; margin-right: 7px; font-size: 12px; }.chevron { color: #7894a7; font-size: 16px; transition: transform .2s ease; }.science-panel[open] .chevron { transform: rotate(180deg); }.science-content { border-top: 1px solid var(--line); padding: 12px 11px 13px; }.science-content h3 { margin: 4px 0 9px; color: #c9dce7; font-size: 10px; font-weight: 750; }.causal-list { list-style: none; margin: 0 0 13px; padding: 0; display: grid; gap: 9px; counter-reset: cause; }.causal-list li { display: grid; grid-template-columns: 20px 1fr; gap: 0 7px; counter-increment: cause; }.causal-list li::before { content: counter(cause, decimal-leading-zero); grid-row: span 2; color: #83dce0; font-size: 8px; font-weight: 800; padding-top: 1px; }.causal-list b { color: #b9cedb; font-size: 9px; }.causal-list span { color: #7e98a9; font-size: 8px; line-height: 1.45; margin-top: 2px; }.equation-card { padding: 9px; margin: 8px 0; border: 1px solid rgba(145,171,193,.12); border-radius: 6px; background: rgba(17,38,56,.65); }.equation-label { color: #7d9aad; font-size: 7px; letter-spacing: .12em; font-weight: 800; }.equation { margin: 7px 0 5px; color: #d8e9f2; font-family: Georgia, serif; font-size: 14px; letter-spacing: .01em; }.equation-card p { margin: 0; color: #7892a4; font-size: 8px; line-height: 1.4; }.assumption-list { margin: 0; padding-left: 15px; display: grid; gap: 5px; color: #8199a9; font-size: 8px; line-height: 1.45; }.source-note { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); color: #728b9d; font-size: 8px; line-height: 1.5; }.source-note b { color: #9cb5c5; font-size: 7px; letter-spacing: .12em; }.panel-footer { margin-top: 12px; color: #5f7889; font-size: 8px; line-height: 1.45; }
.footerbar { display: flex; justify-content: space-between; padding: 9px 0 14px; border-top: 1px solid var(--line); color: #5e7789; font-size: 8px; letter-spacing: .1em; font-weight: 700; }
.webgl-fallback { position: absolute; z-index: 5; inset: 0; display: grid; align-content: center; justify-items: center; padding: 24px; text-align: center; background: radial-gradient(ellipse, rgba(18,45,66,.95), rgba(4,13,22,.97)); }.webgl-fallback[hidden] { display: none; }.fallback-icon { color: #8bdde1; font-size: 40px; }.webgl-fallback strong { margin-top: 12px; font-size: 17px; }.webgl-fallback p { max-width: 330px; color: #90a9ba; font-size: 12px; line-height: 1.6; }
/* CSS2D scene annotations */
.scene-label { padding: 5px 7px; border: 1px solid rgba(137,195,217,.28); border-radius: 5px; background: rgba(5,18,29,.72); color: #d1e7f0; font-size: 9px; letter-spacing: .08em; white-space: nowrap; text-shadow: 0 1px 4px #06101a; backdrop-filter: blur(5px); }.scene-label small { color: #86a7bb; font-size: 8px; }
@media (max-width: 1050px) { .workspace { grid-template-columns: minmax(0,1fr) 310px; gap: 10px; }.app-shell { padding: 0 14px; }.readout-card { padding: 10px 9px; }.readout-value { font-size: 20px; }.readout-label { font-size: 7px; } }
@media (max-width: 820px) { .workspace { grid-template-columns: 1fr; }.control-panel { max-height: none; overflow: visible; }.scene-frame { height: min(58vh, 520px); min-height: 340px; }.readout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.topbar-meta { font-size: 8px; gap: 7px; }.seed-chip { padding: 6px 7px; } }
@media (max-width: 520px) { .app-shell { padding: 0 10px; }.topbar { height: 64px; }.brand-mark { width: 30px; height: 30px; }.topbar-meta { gap: 6px; letter-spacing: .06em; }.topbar-meta > span:nth-child(2) { display: none; }h1 { font-size: 15px; }.workspace { padding-top: 10px; }.scene-frame { height: 48vh; min-height: 320px; border-radius: 10px; }.hud-top-left { top: 15px; left: 14px; }.hud-top-right { top: 13px; right: 12px; flex-direction: column; align-items: flex-end; }.hud-title { font-size: 19px; }.hud-subtitle { max-width: 220px; font-size: 9px; }.hud-kicker { font-size: 7px; }.scene-legend { left: 11px; bottom: 12px; padding: 9px 10px; gap: 6px; font-size: 8px; }.scene-legend small { font-size: 7px; }.scene-bottomline { right: 11px; bottom: 13px; flex-direction: column; gap: 4px; font-size: 7px; text-align: right; }.transport-bar { flex-wrap: wrap; padding: 7px; }.transport-left { gap: 5px; }.transport-btn { padding: 7px 8px; font-size: 9px; }.transport-right { margin-left: auto; }.readout-grid { gap: 6px; }.readout-card { min-height: 82px; }.readout-label { font-size: 7px; }.readout-value { font-size: 21px; }.validation-strip { align-items: flex-start; padding: 9px; }.validation-status { display: none; }.validation-copy span { line-height: 1.45; }.panel-heading h2 { font-size: 14px; }.control-panel { padding: 14px 12px; }.footerbar { font-size: 7px; }.footerbar span:last-child { text-align: right; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
body.embed-mode .topbar, body.embed-mode .footerbar { display: none; }
body.embed-mode .app-shell { padding: 0; }
body.embed-mode .workspace { padding-top: 0; }
