:root {
  color-scheme: dark;
  --bg: #061724;
  --panel: #081d2b;
  --panel-2: #0b2433;
  --line: rgba(139, 197, 216, .14);
  --line-strong: rgba(139, 197, 216, .24);
  --text: #e7f4f7;
  --muted: #87a6b4;
  --dim: #5e7d8b;
  --cyan: #75d4ed;
  --cyan-bright: #a6edff;
  --ice: #c8f2ff;
  --amber: #d6b47b;
  --green: #73d9bd;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { display: grid; grid-template-rows: 62px minmax(0, 1fr); width: 100%; height: 100dvh; min-height: 580px; background: radial-gradient(ellipse at 70% 30%, #0b2b3d 0, #061724 52%, #04131e 100%); }
.app-header { z-index: 5; display: flex; align-items: center; justify-content: space-between; min-width: 0; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(4, 17, 27, .94); }
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 240px; }
.brand-mark { position: relative; display: flex; align-items: end; justify-content: center; gap: 3px; width: 28px; height: 28px; padding: 4px 5px; border: 1px solid rgba(133, 218, 240, .32); border-radius: 8px; background: linear-gradient(145deg, rgba(91, 194, 222, .18), rgba(7, 36, 53, .5)); }
.brand-mark span { display: block; width: 4px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #c7f6ff, #55bad8); box-shadow: 0 0 8px rgba(117, 212, 237, .3); }
.brand-mark span:nth-child(1) { height: 10px; }.brand-mark span:nth-child(2) { height: 17px; }.brand-mark span:nth-child(3) { height: 13px; }
.brand-name { font-size: 13px; font-weight: 800; letter-spacing: .19em; line-height: 1.1; color: #e8f7fb; }.brand-name span { color: var(--cyan); }
.brand-subtitle { margin-top: 4px; color: #6d94a4; font-size: 8px; font-weight: 650; letter-spacing: .16em; }
.header-center { display: flex; align-items: center; gap: 11px; color: #c4e1e9; font-size: 9px; font-weight: 700; letter-spacing: .14em; }.header-index { color: var(--cyan); font-variant-numeric: tabular-nums; }.header-separator { color: #416373; }.header-muted { color: #6c8d9b; }
.header-right { display: flex; align-items: center; gap: 8px; color: #6d8e9c; font-size: 8px; font-weight: 700; letter-spacing: .13em; min-width: 240px; justify-content: end; }.offline-indicator { width: 6px; height: 6px; border-radius: 50%; background: #69d8b9; box-shadow: 0 0 9px rgba(105, 216, 185, .7); }.header-version { margin-left: 12px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; color: #a8d4e2; }
.workspace { display: grid; grid-template-columns: 324px minmax(0, 1fr); min-height: 0; overflow: hidden; }
.control-panel { position: relative; z-index: 2; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 22px 20px 20px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(8, 29, 43, .98), rgba(6, 23, 36, .98)); scrollbar-width: thin; scrollbar-color: #1e4b60 transparent; }
.panel-intro { padding-bottom: 18px; border-bottom: 1px solid var(--line); }.eyebrow { color: #6ca6b8; font-size: 8px; font-weight: 750; letter-spacing: .17em; }.panel-intro h1 { margin: 12px 0 9px; color: #e6f5f8; font-size: 27px; line-height: 1.03; font-weight: 570; letter-spacing: -.045em; }.panel-intro h1 em { color: #8eddf0; font-style: normal; font-weight: 480; }.panel-intro p { max-width: 270px; margin: 0; color: #8ca9b6; font-size: 10.5px; line-height: 1.65; }.model-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }.model-badges span { padding: 5px 7px; border: 1px solid rgba(111, 189, 210, .2); border-radius: 3px; color: #83b7c7; font-size: 7px; font-weight: 750; letter-spacing: .1em; background: rgba(36, 97, 118, .12); }
.control-section, .preset-section { padding: 16px 0 15px; border-bottom: 1px solid var(--line); }.section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }.section-heading > span:first-child { color: #6cc6dd; font-size: 8px; font-weight: 800; letter-spacing: .08em; }.section-heading h2 { margin: 0; color: #d9edf2; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }.section-rule { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(123, 187, 207, .2), transparent); }
.control-row { margin: 0 0 14px; }.control-row:last-child { margin-bottom: 0; }.control-row label { display: flex; justify-content: space-between; gap: 8px; color: #9bb6c0; font-size: 9px; line-height: 1.3; }.control-row output { flex: 0 0 auto; color: #d2edf4; font-size: 9px; font-weight: 650; font-variant-numeric: tabular-nums; }
input[type="range"] { display: block; width: 100%; height: 15px; margin: 8px 0 0; appearance: none; background: transparent; cursor: pointer; }input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 5px; background: linear-gradient(90deg, #367f99, #83d7ed); }input[type="range"]::-moz-range-track { height: 3px; border-radius: 5px; background: linear-gradient(90deg, #367f99, #83d7ed); }input[type="range"]::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4px; appearance: none; border: 2px solid #d5f8ff; border-radius: 50%; background: #4dacc8; box-shadow: 0 0 0 3px rgba(97, 196, 223, .12), 0 0 9px rgba(90, 198, 227, .5); }input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #d5f8ff; border-radius: 50%; background: #4dacc8; box-shadow: 0 0 0 3px rgba(97, 196, 223, .12); }.range-ends { display: flex; justify-content: space-between; color: #557887; font-size: 7px; letter-spacing: .04em; }
.last-control-section { padding-bottom: 14px; border-bottom: 0; }.preset-section { padding-top: 4px; }.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }.preset-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 54px; padding: 7px 4px; border: 1px solid rgba(117, 183, 202, .17); border-radius: 5px; background: rgba(10, 40, 56, .62); color: #85a8b5; cursor: pointer; transition: border-color .18s, background .18s, color .18s; }.preset-button:hover { border-color: rgba(122, 213, 234, .5); color: #d6f4fb; }.preset-button.active { border-color: rgba(105, 203, 226, .56); background: linear-gradient(180deg, rgba(39, 112, 137, .3), rgba(16, 62, 82, .25)); color: #d8f7ff; box-shadow: inset 0 0 18px rgba(76, 177, 204, .08); }.preset-symbol { color: #7bd6eb; font-size: 16px; line-height: 1; }.preset-button span:last-child { font-size: 8px; font-weight: 650; }.preset-status { min-height: 14px; margin-top: 7px; color: #5d8999; font-size: 8px; }
.validation-card { margin-top: 15px; padding: 12px 11px 10px; border: 1px solid rgba(106, 195, 216, .18); border-radius: 6px; background: linear-gradient(135deg, rgba(20, 65, 83, .44), rgba(8, 30, 45, .66)); }.validation-top { display: flex; align-items: center; gap: 8px; }.validation-icon { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(108, 219, 186, .3); border-radius: 50%; color: #83dfc2; font-size: 12px; }.validation-kicker { color: #6aa5b6; font-size: 7px; font-weight: 800; letter-spacing: .14em; }.validation-top strong { display: block; margin-top: 3px; color: #d8edf2; font-size: 9px; font-weight: 650; }.textbook-tag { margin-left: auto; padding: 4px 5px; border: 1px solid rgba(215, 180, 123, .25); border-radius: 3px; color: #d7bb8c; font-size: 6px; font-weight: 800; letter-spacing: .12em; }.validation-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }.validation-values div { display: flex; flex-direction: column; gap: 4px; }.validation-values span { color: #648999; font-size: 6px; font-weight: 800; letter-spacing: .1em; }.validation-values strong { color: #d6edf4; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }.validation-values div:last-child strong { color: #82d8bd; }.validation-card p { margin: 8px 0 0; color: #688b99; font-size: 7px; }
.science-section { margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.science-toggle { display: flex; align-items: center; width: 100%; gap: 9px; padding: 13px 0; border: 0; background: transparent; color: #cce5ec; text-align: left; font-size: 10px; font-weight: 700; cursor: pointer; }.science-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 4px; background: rgba(78, 162, 187, .15); color: #86d7e9; font-size: 13px; }.chevron { margin-left: auto; color: #7eacba; font-size: 17px; font-weight: 400; }.science-panel { display: none; padding: 0 0 14px 28px; }.science-panel.expanded { display: block; }.science-lead { margin: 0 0 12px; color: #8baab7; font-size: 9px; line-height: 1.6; }.equation-block { margin: 9px 0; padding-left: 8px; border-left: 2px solid rgba(100, 193, 216, .32); }.equation-block span { display: block; margin-bottom: 4px; color: #6b9cac; font-size: 6px; font-weight: 800; letter-spacing: .11em; }.equation-block code { color: #c1e7f0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8px; line-height: 1.55; white-space: normal; }.science-current { margin: 11px 0; color: #82a6b4; font-size: 8px; line-height: 1.55; }.science-limitations strong { color: #c0dce4; font-size: 8px; }.science-limitations ul { margin: 6px 0 0; padding-left: 14px; color: #7295a3; font-size: 8px; line-height: 1.6; }.sidebar-footnote { margin-top: 15px; color: #4f7483; font-size: 7px; line-height: 1.5; }
.visual-stage { position: relative; display: grid; grid-template-rows: 42px minmax(0, 1fr) 38px 114px 58px; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 52% 42%, rgba(12, 70, 93, .22), transparent 56%), #031724; }.scene-topline, .scene-bottomline { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; background: rgba(4, 20, 31, .58); }.scene-topline { border-bottom: 1px solid rgba(123, 194, 213, .1); }.scene-location, .scene-tools { display: flex; align-items: center; gap: 8px; color: #91b8c5; font-size: 8px; font-weight: 750; letter-spacing: .11em; }.location-dot { width: 6px; height: 6px; border-radius: 50%; background: #64cfe7; box-shadow: 0 0 9px rgba(100, 207, 231, .65); }.scene-coordinates { margin-left: 8px; color: #557f8f; font-size: 7px; font-weight: 550; }.scene-tools { color: #9bc4d0; font-variant-numeric: tabular-nums; }.run-dot { width: 6px; height: 6px; border-radius: 50%; background: #6bdbb9; box-shadow: 0 0 8px rgba(107, 219, 185, .7); }.run-dot.paused { background: #d5b178; box-shadow: 0 0 8px rgba(213, 177, 120, .5); }.tool-divider { height: 12px; width: 1px; margin: 0 4px; background: var(--line-strong); }
.scene-viewport { position: relative; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #0b3a50 0%, #062b40 45%, #031927 100%); }.scene-viewport canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: none; }.scene-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 52% 46%, transparent 42%, rgba(0, 9, 17, .23) 100%), linear-gradient(180deg, rgba(2, 13, 22, .05), transparent 23%, transparent 70%, rgba(2, 13, 22, .2)); }.scene-callout { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 4px; max-width: 180px; pointer-events: none; text-shadow: 0 2px 10px #00111d; }.scene-callout > span { color: #7ad4e9; font-size: 8px; font-weight: 800; letter-spacing: .14em; }.scene-callout strong { color: rgba(215, 243, 249, .91); font-size: 8px; font-weight: 800; letter-spacing: .12em; }.scene-callout small { color: rgba(143, 188, 202, .78); font-size: 8px; line-height: 1.35; }.callout-one { top: 12%; left: 5%; }.callout-two { top: 47%; left: 5%; }.callout-three { right: 4.5%; bottom: 20%; text-align: right; align-items: end; }.scene-scale { position: absolute; right: 19px; top: 18px; display: flex; align-items: center; gap: 7px; color: #78a3b2; font-size: 7px; font-weight: 750; letter-spacing: .12em; }.scale-line { display: inline-block; width: 22px; height: 1px; background: #79b8ca; }.scaled-tag { margin-left: 3px; padding: 3px 5px; border: 1px solid rgba(127, 194, 213, .22); border-radius: 2px; color: #9bcbd8; font-size: 6px; }.context-overlay { position: absolute; inset: 0; z-index: 8; display: none; place-items: center; background: rgba(2, 12, 20, .82); backdrop-filter: blur(6px); }.context-overlay.visible { display: grid; }.context-card { max-width: 290px; padding: 22px; border: 1px solid var(--line-strong); border-radius: 8px; background: #0a2636; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }.context-card strong { font-size: 13px; }.context-card p { color: #91b3c0; font-size: 10px; line-height: 1.6; }.error-detail { color: #d7b18b !important; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 8px !important; }.context-card button { padding: 8px 11px; border: 1px solid #4a9bb3; border-radius: 4px; background: #123f53; color: #d9f7ff; font-size: 9px; cursor: pointer; }
.scene-bottomline { border-top: 1px solid rgba(123, 194, 213, .1); }.scene-caption { display: flex; align-items: center; gap: 8px; color: #7195a3; font-size: 7px; font-weight: 750; letter-spacing: .13em; }.caption-mark { width: 6px; height: 6px; border-radius: 50%; background: #71d4eb; box-shadow: 0 0 7px rgba(113, 212, 235, .5); }.caption-divider { color: #365a69; }.scene-actions { display: flex; align-items: center; gap: 8px; }.icon-button, .quality-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 25px; padding: 0 8px; border: 1px solid rgba(118, 178, 197, .19); border-radius: 4px; background: rgba(8, 34, 49, .72); color: #83b2c1; font-size: 8px; font-weight: 750; letter-spacing: .08em; cursor: pointer; transition: .18s; }.icon-button:hover, .quality-button:hover { border-color: rgba(125, 214, 235, .55); color: #d3f4fc; }.icon-button span { font-size: 7px; }.quality-button { min-width: 42px; color: #d6bd8d; border-color: rgba(214, 180, 123, .22); }
.hud-panel { position: relative; z-index: 2; padding: 12px 19px 10px; border-top: 1px solid rgba(124, 194, 213, .12); background: linear-gradient(180deg, rgba(6, 26, 39, .94), rgba(5, 22, 34, .98)); }.hud-heading { display: flex; justify-content: space-between; margin-bottom: 10px; color: #7ba5b4; font-size: 7px; font-weight: 800; letter-spacing: .15em; }.hud-heading span:last-child { color: #5f8998; font-weight: 550; letter-spacing: .04em; font-variant-numeric: tabular-nums; }.hud-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.25fr 1fr; gap: 0; }.hud-metric { min-width: 0; padding: 0 13px; border-left: 1px solid rgba(125, 188, 207, .13); }.hud-metric:first-child { padding-left: 0; border-left: 0; }.hud-metric:last-child { padding-right: 0; }.hud-metric > span { display: block; overflow: hidden; color: #7799a7; font-size: 7px; font-weight: 750; letter-spacing: .09em; white-space: nowrap; text-overflow: ellipsis; }.hud-metric i { color: #4e8191; font-size: 6px; font-style: normal; }.hud-metric strong { display: block; margin-top: 5px; color: #e1f5f9; font-size: 17px; line-height: 1.1; font-weight: 570; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }.hud-metric small { display: block; overflow: hidden; margin-top: 5px; color: #638695; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }.metric-bar { height: 2px; margin-top: 5px; background: rgba(112, 165, 182, .17); }.metric-bar span { display: block; width: 5%; height: 100%; background: #75d4ed; box-shadow: 0 0 7px rgba(117, 212, 237, .45); transition: width .18s; }.hud-metric:first-child small { margin-top: 4px; }
.playback-bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border-top: 1px solid rgba(121, 188, 207, .13); background: rgba(4, 17, 28, .98); }.playback-controls { display: flex; align-items: center; gap: 7px; }.primary-play { display: flex; align-items: center; gap: 8px; min-width: 82px; height: 32px; padding: 0 12px; border: 1px solid rgba(116, 214, 236, .46); border-radius: 4px; background: linear-gradient(180deg, #1a627b, #12445c); color: #e5f9ff; font-size: 9px; font-weight: 750; cursor: pointer; box-shadow: 0 0 15px rgba(40, 140, 170, .12); }.primary-play:hover { background: linear-gradient(180deg, #237894, #17536c); }.button-icon { font-size: 10px; }.secondary-button { display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 9px; border: 1px solid rgba(112, 174, 193, .17); border-radius: 4px; background: rgba(8, 32, 46, .7); color: #86aab7; font-size: 8px; font-weight: 750; letter-spacing: .07em; cursor: pointer; }.secondary-button:hover { border-color: rgba(118, 210, 233, .45); color: #d6f4fa; }.secondary-button span { color: #a5d9e6; font-size: 12px; }.speed-control { display: flex; align-items: center; gap: 8px; }.speed-control label { color: #628b9a; font-size: 7px; font-weight: 800; letter-spacing: .12em; }.speed-control select { min-width: 60px; padding: 6px 7px; border: 1px solid rgba(112, 174, 193, .2); border-radius: 4px; outline: none; background: #0b2b3e; color: #c4e8f0; font-size: 9px; cursor: pointer; }.speed-control > span { display: none; color: #8fb9c7; font-size: 8px; }.playback-hint { display: flex; align-items: center; gap: 6px; color: #5c8290; font-size: 7px; font-weight: 750; letter-spacing: .1em; }.playback-hint span { color: #7396a3; font-weight: 550; letter-spacing: .03em; }.playback-hint b { margin-left: 7px; color: #8ec7d6; font-size: 8px; }
@media (max-width: 1120px) { .workspace { grid-template-columns: 296px minmax(0,1fr); }.control-panel { padding-left: 16px; padding-right: 16px; }.hud-metric { padding: 0 8px; }.hud-metric strong { font-size: 15px; }.header-center { display: none; } }
@media (max-width: 780px) { html, body { overflow: auto; min-height: 100%; }.app-shell { height: auto; min-height: 100dvh; grid-template-rows: 54px auto; }.app-header { padding: 0 14px; }.brand-lockup { min-width: 0; }.header-right { min-width: 0; font-size: 7px; }.header-version { display: none; }.workspace { display: flex; flex-direction: column; overflow: visible; }.visual-stage { order: 0; flex: none; height: 660px; grid-template-rows: 38px minmax(290px, 1fr) 34px 112px 58px; }.control-panel { order: 1; overflow: visible; padding: 20px 18px 26px; border-right: 0; border-top: 1px solid var(--line); }.panel-intro h1 { font-size: 25px; }.scene-topline { padding: 0 12px; }.scene-location { font-size: 7px; }.scene-coordinates { display: none; }.scene-tools { font-size: 7px; }.scene-callout { max-width: 140px; }.scene-callout small { font-size: 7px; }.callout-one { left: 4%; top: 10%; }.callout-two { left: 4%; top: 47%; }.callout-three { right: 4%; bottom: 16%; }.scene-scale { right: 10px; top: 12px; }.scene-bottomline { padding: 0 10px; }.scene-caption { gap: 5px; font-size: 6px; }.icon-button { padding: 0 6px; }.icon-button span { display: none; }.hud-panel { padding: 10px 10px 8px; }.hud-heading { margin-bottom: 9px; }.hud-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }.hud-metric { padding: 0 5px; }.hud-metric > span { font-size: 6px; letter-spacing: .04em; }.hud-metric i { display: none; }.hud-metric strong { margin-top: 6px; font-size: clamp(10px, 3.1vw, 14px); }.hud-metric small { font-size: 6px; }.playback-bar { padding: 0 10px; }.playback-controls { gap: 5px; }.primary-play { min-width: 68px; padding: 0 8px; }.secondary-button { padding: 0 7px; font-size: 7px; }.speed-control { gap: 5px; }.speed-control label { display: none; }.speed-control select { min-width: 54px; padding: 6px 4px; }.playback-hint { display: none; }.control-section { padding-top: 18px; }.preset-grid { gap: 8px; }.preset-button { min-height: 60px; }.validation-card { margin-top: 17px; } }
@media (max-width: 420px) { .visual-stage { height: 642px; grid-template-rows: 36px minmax(275px, 1fr) 32px 112px 56px; }.scene-tools { gap: 5px; }.scene-tools #run-state { font-size: 6px; }.scene-caption { font-size: 5.5px; }.scene-actions { gap: 5px; }.hud-metric { padding: 0 3px; }.hud-metric strong { font-size: 10px; }.hud-metric small { font-size: 5.5px; }.hud-metric > span { font-size: 5.5px; }.secondary-button { gap: 4px; padding: 0 6px; }.primary-play { min-width: 63px; }.playback-bar { padding: 0 8px; } }
@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 .app-shell { grid-template-rows: 0 minmax(0,1fr); min-height: 0; height: 100dvh; }body.embed .app-header { visibility: hidden; overflow: hidden; padding: 0; border: 0; }body.embed .workspace { grid-template-columns: 290px minmax(0,1fr); }body.embed .control-panel { padding-top: 14px; }body.embed .panel-intro h1 { font-size: 23px; }body.embed .visual-stage { grid-template-rows: 34px minmax(0,1fr) 32px 100px 52px; }
@media (max-width: 780px) { body.embed .app-shell { height: auto; min-height: 0; }body.embed .workspace { display: flex; }body.embed .visual-stage { height: 620px; } }
