:root {
  color-scheme: dark;
  --bg: #071017;
  --panel: #0d1a23;
  --panel-2: #101f29;
  --panel-3: #132630;
  --line: rgba(157, 190, 201, .13);
  --line-strong: rgba(157, 190, 201, .22);
  --text: #e8f0ed;
  --muted: #91a6a9;
  --dim: #61767c;
  --sand: #d6a467;
  --sand-bright: #f1c98b;
  --cyan: #69d8d4;
  --green: #9bd7ad;
  --danger: #d99c7d;
  --radius: 13px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; background: radial-gradient(ellipse at 28% 8%, #12232b 0, #09141c 44%, #060d13 100%); }
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; min-height: 640px; max-width: 1920px; margin: 0 auto; padding: 0 24px 12px; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 68px; flex: 0 0 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 31px; height: 31px; display: flex; align-items: end; gap: 3px; padding: 6px 5px; border: 1px solid rgba(214,164,103,.35); border-radius: 9px; background: linear-gradient(145deg, rgba(214,164,103,.15), rgba(105,216,212,.05)); }
.brand-mark span { display: block; width: 5px; border-radius: 5px 5px 2px 2px; background: var(--sand); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .55; }.brand-mark span:nth-child(2) { height: 15px; }.brand-mark span:nth-child(3) { height: 11px; opacity: .75; }
.eyebrow, .section-kicker { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .16em; line-height: 1.4; }
.eyebrow span { color: var(--dim); margin-left: 5px; }
.brand-title { font-size: 13px; font-weight: 650; letter-spacing: .015em; margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 10px; letter-spacing: .09em; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #b6d4c7; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: #7bd29d; box-shadow: 0 0 11px rgba(123,210,157,.75); }
.seed-label b { color: var(--text); font-variant-numeric: tabular-nums; margin-left: 6px; letter-spacing: .05em; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr); gap: 16px; padding: 16px 0 12px; }
.scene-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(17,32,41,.96), rgba(9,19,27,.98)); box-shadow: 0 18px 55px rgba(0,0,0,.16); }
.scene-toolbar { height: 68px; flex: 0 0 68px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(12,25,33,.72); }
.scene-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
.scene-index { font-size: 10px; font-weight: 800; color: var(--sand); border: 1px solid rgba(214,164,103,.28); background: rgba(214,164,103,.08); padding: 6px 7px; border-radius: 6px; letter-spacing: .05em; }
.scene-heading h1 { font-size: 15px; font-weight: 680; letter-spacing: -.02em; margin: 0 0 3px; }
.scene-heading p { margin: 0; font-size: 10px; color: var(--muted); }
.scene-toolbar-actions { display: flex; align-items: center; gap: 12px; }
.scene-mode { color: #9eb4b7; font-size: 9px; letter-spacing: .12em; font-weight: 750; display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.mode-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(105,216,212,.5); }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(255,255,255,.025); cursor: pointer; color: var(--muted); transition: .18s ease; }
.icon-button:hover { color: var(--text); border-color: rgba(105,216,212,.5); background: rgba(105,216,212,.08); }
.camera-glyph { font-size: 17px; transform: rotate(-35deg); display: inline-block; }
.scene-wrap { flex: 1; min-height: 280px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #243b40, #0c1820 78%); }
#scene-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,13,18,.12), transparent 24%, transparent 70%, rgba(5,13,18,.38)); }
.scene-hud { position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; pointer-events: none; }
.scene-hud-top { top: 15px; align-items: start; }
.hud-chip { display: flex; gap: 9px; align-items: center; border: 1px solid rgba(181,211,209,.17); border-radius: 7px; padding: 7px 9px; background: rgba(7,17,23,.65); backdrop-filter: blur(10px); }
.hud-key { font-size: 8px; letter-spacing: .13em; color: #779196; font-weight: 800; }
.hud-chip b { color: #d6e5df; font-size: 9px; letter-spacing: .07em; font-weight: 750; }
.scene-hud-bottom { bottom: 13px; align-items: end; }
.scene-legend { display: flex; flex-wrap: wrap; gap: 13px; border: 1px solid rgba(181,211,209,.14); border-radius: 7px; padding: 8px 10px; background: rgba(7,17,23,.58); backdrop-filter: blur(10px); }
.scene-legend span { display: flex; align-items: center; gap: 6px; color: #b0c1bd; font-size: 8px; letter-spacing: .08em; font-weight: 700; }
.scene-legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.legend-grain { background: var(--sand-bright); box-shadow: 0 0 6px rgba(241,201,139,.5); }.legend-wave { background: var(--cyan); box-shadow: 0 0 6px rgba(105,216,212,.5); }.legend-dust { background: #b4a58e; }
.orbit-hint { color: #91a7a8; font-size: 8px; letter-spacing: .1em; padding-bottom: 6px; text-shadow: 0 1px 4px #000; }.orbit-hint b { color: var(--sand); padding: 0 4px; }
.annotation-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.annotation { display: none; position: absolute; color: #d4e2db; font-size: 8px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; text-shadow: 0 1px 8px #061016, 0 0 3px #061016; opacity: .9; transform: translate(-50%,-50%); }
.annotation i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); margin-right: 6px; box-shadow: 0 0 8px var(--cyan); vertical-align: 1px; }
#label-slip i { background: var(--sand-bright); box-shadow: 0 0 8px var(--sand); }
.webgl-message { position: absolute; z-index: 4; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(330px, calc(100% - 40px)); border: 1px solid rgba(217,156,125,.38); border-radius: 10px; background: rgba(11,22,29,.94); padding: 17px; box-shadow: 0 15px 40px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 7px; }
.webgl-message[hidden] { display: none; }.webgl-message strong { font-size: 12px; }.webgl-message span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.scene-caption { height: 32px; flex: 0 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 14px; color: #758b8f; font-size: 8px; letter-spacing: .035em; }
.scene-caption b { color: #a9bcb8; font-size: 8px; letter-spacing: .1em; margin-right: 5px; }.caption-right { white-space: nowrap; font-size: 8px; letter-spacing: .11em; color: #8ca2a1; }.caption-right i { display: inline-block; width: 4px; height: 4px; margin: 0 5px 1px; border-radius: 50%; background: var(--cyan); }
.lab-panel { min-height: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(15,29,38,.98), rgba(9,19,26,.98)); scrollbar-width: thin; scrollbar-color: #334b53 transparent; }
.panel-section { padding: 15px 15px 14px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-heading h2 { margin: 3px 0 0; font-size: 13px; font-weight: 670; letter-spacing: -.015em; }
.section-kicker { color: #6faeae; font-size: 8px; }
.unit-tag { color: #d2b082; border: 1px solid rgba(214,164,103,.24); border-radius: 5px; padding: 4px 6px; font-size: 7px; font-weight: 800; letter-spacing: .1em; background: rgba(214,164,103,.06); }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.readout-card { min-width: 0; border: 1px solid rgba(158,191,194,.12); border-radius: 8px; background: linear-gradient(145deg, rgba(22,42,51,.88), rgba(12,26,34,.88)); padding: 10px 10px 8px; }
.readout-primary { border-color: rgba(214,164,103,.17); background: linear-gradient(145deg, rgba(54,48,37,.44), rgba(14,29,36,.95)); }
.readout-label { color: #8ea4a4; font-size: 7px; font-weight: 800; letter-spacing: .12em; display: block; white-space: nowrap; }
.readout-value { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; min-width: 0; }
.readout-value strong { font-size: 22px; line-height: 1; letter-spacing: -.045em; font-weight: 650; font-variant-numeric: tabular-nums; color: #f0d3a5; }
.readout-primary:nth-child(2) .readout-value strong { color: #8de2dc; }
.readout-value small { font-size: 9px; color: #a0b5b2; }
.readout-track { height: 2px; border-radius: 2px; margin-top: 9px; background: rgba(214,164,103,.14); overflow: hidden; }.readout-track i { display: block; height: 100%; width: 50%; background: var(--sand); border-radius: 2px; transition: width .18s ease; }.cyan-track { background: rgba(105,216,212,.14); }.cyan-track i { background: var(--cyan); }
.readout-foot { display: block; margin-top: 6px; color: #738b8e; font-size: 7px; }
.micro-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 8px; }
.micro-metrics div { display: flex; flex-direction: column; gap: 4px; padding: 7px 8px; border: 1px solid rgba(158,191,194,.09); border-radius: 6px; background: rgba(255,255,255,.015); }
.micro-metrics span { color: #70878b; font-size: 7px; font-weight: 800; letter-spacing: .09em; }.micro-metrics b { font-size: 10px; color: #c4d5d0; font-variant-numeric: tabular-nums; }
.text-button { border: 0; padding: 4px 0; color: #84c9c4; background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; letter-spacing: .12em; }.text-button:hover { color: #c4f1e9; }
.presets { display: grid; grid-template-columns: 1fr; gap: 5px; margin-bottom: 13px; }
.preset-button { display: flex; align-items: center; gap: 9px; text-align: left; width: 100%; border: 1px solid rgba(158,191,194,.1); border-radius: 7px; padding: 7px 8px; background: rgba(255,255,255,.018); cursor: pointer; transition: border-color .18s, background .18s; }
.preset-button:hover { border-color: rgba(105,216,212,.35); background: rgba(105,216,212,.035); }.preset-button.active { border-color: rgba(214,164,103,.43); background: rgba(214,164,103,.07); }
.preset-swatch { width: 7px; height: 24px; border-radius: 5px; flex: 0 0 7px; }.dry-swatch { background: linear-gradient(#f0c58b,#b97c43); }.damp-swatch { background: linear-gradient(#81d4cf,#456d70); }.deep-swatch { background: linear-gradient(#b8a1e0,#6a6b9b); }
.preset-button b { display: block; font-size: 9px; font-weight: 700; color: #dce8e2; }.preset-button small { display: block; margin-top: 2px; color: #7f9698; font-size: 7px; }
.control-list { display: flex; flex-direction: column; gap: 11px; }
.control-row { display: block; min-width: 0; }
.control-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #b7c9c3; font-size: 9px; }.control-name b { color: #e5c28e; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.control-row input[type=range], .speed-control input[type=range] { appearance: none; width: 100%; height: 13px; margin: 4px 0 0; background: transparent; cursor: pointer; }
.control-row input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 5px; background: linear-gradient(90deg, #b88b58, #5b9d9b 72%, #29434b); }
.control-row input[type=range]::-moz-range-track { height: 3px; border-radius: 5px; background: linear-gradient(90deg, #b88b58, #5b9d9b 72%, #29434b); }
.control-row input[type=range]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border: 2px solid #0c1920; border-radius: 50%; margin-top: -4px; background: #e3bd83; box-shadow: 0 0 0 1px rgba(227,189,131,.55); }
.control-row input[type=range]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #0c1920; border-radius: 50%; background: #e3bd83; box-shadow: 0 0 0 1px rgba(227,189,131,.55); }
.range-ends { display: flex; justify-content: space-between; color: #627a7e; font-size: 7px; margin-top: -1px; }.range-ends i { font-style: normal; }
.validation-section { padding-bottom: 12px; }.verified-mark { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; color: var(--green); border: 1px solid rgba(155,215,173,.28); background: rgba(155,215,173,.08); font-size: 10px; }
.validation-intro { margin: -2px 0 9px; color: #82989a; font-size: 8px; line-height: 1.45; }
.validation-values { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; }.validation-values div { padding: 7px 6px; border-radius: 6px; border: 1px solid rgba(158,191,194,.1); background: rgba(255,255,255,.02); min-width: 0; }.validation-values span { display: block; color: #6e8589; font-size: 6px; letter-spacing: .1em; font-weight: 800; }.validation-values b { display: block; margin-top: 4px; font-size: 10px; font-variant-numeric: tabular-nums; color: #c7d9d2; white-space: nowrap; }
.validation-foot { margin-top: 8px; color: #72898c; font-size: 7px; }.validation-foot code { color: #c8b18e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.validation-foot span { color: var(--dim); padding: 0 3px; }
.science-panel { padding: 0 15px 14px; }.science-panel summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 13px 0 2px; }.science-panel summary::-webkit-details-marker { display: none; }.science-panel summary b { display: block; margin-top: 3px; font-size: 12px; }.chevron { color: var(--cyan); font-size: 18px; transition: transform .18s; }.science-panel[open] .chevron { transform: rotate(180deg); }
.science-content { padding-top: 10px; color: #92a7a5; font-size: 9px; line-height: 1.55; }.science-content h3 { margin: 12px 0 4px; color: #d7e2dc; font-size: 9px; letter-spacing: .04em; }.science-content p { margin: 4px 0 7px; }.science-content ul { padding-left: 15px; margin: 6px 0; }.science-content li { margin: 3px 0; }.science-content li b { color: #d4b68c; }.equation { padding: 7px 8px; margin: 6px 0; border-left: 2px solid rgba(105,216,212,.5); border-radius: 0 5px 5px 0; background: rgba(105,216,212,.045); color: #b5d8d1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; overflow-wrap: anywhere; }.model-disclaimer { padding-top: 8px; border-top: 1px solid var(--line); color: #c4a77e; font-size: 8px; }
.transport-bar { min-height: 54px; flex: 0 0 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: rgba(12,25,33,.94); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.transport-left, .transport-right { display: flex; align-items: center; gap: 8px; min-width: 0; }.transport-button { min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(158,191,194,.16); border-radius: 6px; background: rgba(255,255,255,.025); padding: 0 10px; color: #a8bfba; font-size: 8px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }.transport-button:hover { border-color: rgba(105,216,212,.4); color: var(--text); }.play-button { min-width: 91px; color: #d9c29f; border-color: rgba(214,164,103,.28); background: rgba(214,164,103,.08); }.play-button span { font-size: 12px; }.transport-button span { color: var(--cyan); }
.transport-divider { width: 1px; height: 23px; background: var(--line-strong); margin: 0 5px; }.speed-control { display: flex; align-items: center; gap: 8px; }.speed-control label { color: #748d91; font-size: 7px; letter-spacing: .12em; font-weight: 800; }.speed-control input { width: 84px !important; }.speed-control input::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: #34535a; }.speed-control input::-moz-range-track { height: 3px; border-radius: 4px; background: #34535a; }.speed-control input::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; border-radius: 50%; margin-top: -3.5px; background: var(--cyan); }.speed-control input::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--cyan); }.speed-control b { width: 32px; color: #d6e2dc; font-size: 8px; font-variant-numeric: tabular-nums; }
.quality-button, .export-button { min-height: 31px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(158,191,194,.14); border-radius: 6px; padding: 0 9px; background: rgba(255,255,255,.02); color: #91a9a7; font-size: 7px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }.quality-button:hover, .export-button:hover { border-color: rgba(105,216,212,.38); color: #d8e8e2; }.quality-dot { width: 6px; height: 6px; border-radius: 50%; background: #9bd7ad; box-shadow: 0 0 7px rgba(155,215,173,.5); }.export-button { color: #d5b68a; border-color: rgba(214,164,103,.2); }.export-button span { font-size: 13px; }
.disclaimer-line { text-align: center; padding: 8px 0 0; color: #536a70; font-size: 7px; letter-spacing: .15em; }.disclaimer-line i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #627d7d; margin: 0 8px 1px; }
.embed .topbar, .embed .disclaimer-line { display: none; }.embed { padding-top: 10px; }.embed .workspace { padding-top: 0; }
@media (min-width: 1500px) { .workspace { grid-template-columns: minmax(0,1fr) 390px; }.app-shell { padding-left: 30px; padding-right: 30px; }.panel-section { padding-left: 17px; padding-right: 17px; } }
@media (max-width: 1050px) { .app-shell { padding: 0 14px 10px; }.workspace { grid-template-columns: minmax(0,1fr) 330px; gap: 12px; }.panel-section { padding-left: 12px; padding-right: 12px; }.scene-caption { font-size: 7px; } }
@media (max-width: 820px) { .app-shell { height: auto; min-height: 100vh; overflow: visible; padding: 0 10px 10px; }.workspace { grid-template-columns: 1fr; grid-template-rows: minmax(350px, 48vh) auto; gap: 10px; }.scene-panel { min-height: 350px; }.lab-panel { overflow: visible; }.presets { grid-template-columns: repeat(3,1fr); }.preset-button { padding: 7px 6px; gap: 6px; }.preset-button b { font-size: 8px; }.preset-button small { font-size: 6px; }.control-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }.transport-bar { position: relative; bottom: auto; z-index: 2; margin-top: 10px; }.topbar { height: 58px; flex-basis: 58px; }.workspace { padding-top: 10px; } }
@media (max-width: 520px) { .app-shell { padding: 0 8px 8px; }.topbar-right { gap: 10px; font-size: 8px; }.seed-label { display: none; }.brand-title { font-size: 12px; }.scene-toolbar { height: 58px; flex-basis: 58px; padding: 0 11px; }.scene-heading h1 { font-size: 13px; }.scene-heading p { font-size: 8px; }.scene-mode { display: none; }.scene-wrap { min-height: 280px; }.workspace { grid-template-rows: minmax(300px, 43vh) auto; }.scene-legend { gap: 8px; padding: 7px 8px; }.scene-legend span { font-size: 6px; }.orbit-hint { font-size: 6px; }.scene-caption { padding: 0 8px; font-size: 6px; }.caption-right { font-size: 6px; }.transport-bar { flex-wrap: wrap; padding: 7px 8px; gap: 5px; }.transport-left, .transport-right { flex: 1; justify-content: space-between; }.transport-left { gap: 5px; }.transport-right { justify-content: flex-end; }.transport-button { padding: 0 8px; min-height: 29px; }.play-button { min-width: 76px; }.transport-divider { margin: 0 1px; }.speed-control { gap: 5px; }.speed-control input { width: 55px !important; }.speed-control label { font-size: 6px; }.speed-control b { font-size: 7px; width: 28px; }.quality-button, .export-button { min-height: 29px; padding: 0 7px; font-size: 6px; }.panel-section { padding: 13px 11px; }.readout-value strong { font-size: 20px; }.control-list { grid-template-columns: 1fr; }.presets { gap: 4px; }.preset-button { flex-direction: column; align-items: flex-start; gap: 4px; }.preset-swatch { width: 25px; height: 4px; flex-basis: 4px; }.preset-button b { font-size: 7px; }.preset-button small { display: none; }.scene-hud { left: 8px; right: 8px; }.scene-hud-top { top: 8px; }.scene-hud-bottom { bottom: 8px; }.hud-chip { padding: 6px 7px; gap: 5px; }.hud-key { font-size: 6px; }.hud-chip b { font-size: 7px; }.annotation { font-size: 6px; }.micro-metrics div { padding: 6px 6px; }.disclaimer-line { font-size: 6px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
