:root {
  color-scheme: dark;
  --bg: #07131b;
  --panel: #0c1c26;
  --panel-2: #10232e;
  --line: rgba(163, 207, 218, .14);
  --line-strong: rgba(163, 207, 218, .24);
  --text: #eaf5f7;
  --muted: #8ca6ae;
  --dim: #5e7882;
  --cyan: #74d9e8;
  --ice: #b6f0f8;
  --gold: #d2a878;
  --green: #83d8b4;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 72% 8%, rgba(27, 71, 84, .18), transparent 42%), var(--bg); color: var(--text); font-size: 13px; line-height: 1.5; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.app-shell { max-width: 1680px; margin: 0 auto; padding: 0 34px 24px; }
.topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; }
.brand-mark { width: 25px; height: 24px; display: flex; align-items: end; gap: 3px; padding: 3px; border: 1px solid rgba(116,217,232,.36); border-radius: 7px; transform: skewY(-8deg); }
.brand-mark span { width: 4px; border-radius: 4px 4px 2px 2px; background: var(--cyan); box-shadow: 0 0 10px rgba(116,217,232,.4); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .62; }.brand-mark span:nth-child(2) { height: 14px; }.brand-mark span:nth-child(3) { height: 10px; opacity: .8; }
.brand-word { font-size: 12px; letter-spacing: .16em; font-weight: 800; }.brand-word span { color: var(--cyan); }
.topbar-center, .topbar-right { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 9px; letter-spacing: .14em; font-weight: 700; }
.eyebrow { color: #9ab5bd; }.seed-chip { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 5px; color: #9fc5ce; font-size: 9px; letter-spacing: .12em; }
.topbar-right { gap: 8px; }.live-dot, .scene-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(131,216,180,.6); }.version { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--dim); }
.hero-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 28px 0 22px; }
.kicker { display: flex; align-items: center; gap: 9px; color: var(--cyan); font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.kicker-line { display: inline-block; width: 20px; height: 1px; background: var(--cyan); }
h1 { margin: 8px 0 5px; font-size: clamp(27px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.08; font-weight: 680; }
h1 em { color: #a6d9e2; font-weight: 360; font-style: normal; }
.title-colon { color: var(--gold); }
.hero-copy p { margin: 8px 0 0; max-width: 680px; color: #9bb1b8; font-size: 13px; }
.hero-meta { display: flex; align-items: center; gap: 11px; padding-bottom: 3px; white-space: nowrap; color: var(--muted); font-size: 10px; }
.meta-label { color: var(--gold); letter-spacing: .12em; font-weight: 700; }.meta-divider { width: 1px; height: 14px; background: var(--line-strong); }.meta-value { color: #8ba5ae; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, .82fr); gap: 18px; align-items: start; }
.scene-column { min-width: 0; }
.scene-frame { height: clamp(440px, 46vw, 620px); min-height: 440px; position: relative; overflow: hidden; border: 1px solid rgba(126, 183, 195, .2); border-radius: var(--radius); background: radial-gradient(ellipse at 48% 46%, #173440, #0b1c26 70%); box-shadow: 0 20px 60px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.035); }
.scene-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,12,18,.32), transparent 20%, transparent 77%, rgba(4,12,18,.42)); }
.scene-host { position: absolute; inset: 38px 0 34px; z-index: 1; }
.scene-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.scene-topline, .scene-bottomline { position: absolute; z-index: 4; left: 17px; right: 17px; display: flex; align-items: center; justify-content: space-between; }
.scene-topline { top: 13px; }.scene-bottomline { bottom: 10px; color: #6f8c96; font-size: 8px; letter-spacing: .13em; font-weight: 700; }.scene-bottomline b { color: #3e626e; padding: 0 4px; }.scene-bottomline strong { color: #b3dfe7; font-size: 10px; letter-spacing: .04em; }
.scene-tag { display: flex; align-items: center; gap: 8px; color: #b8d5dc; font-size: 9px; font-weight: 800; letter-spacing: .15em; }.scene-tag-dot { width: 5px; height: 5px; }.scene-top-actions { display: flex; align-items: center; gap: 12px; }.scene-coords { color: #6f8e98; font-size: 8px; letter-spacing: .14em; }
.icon-button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-strong); background: rgba(10,28,37,.7); color: #9dc9d2; cursor: pointer; font-size: 16px; line-height: 1; }.icon-button:hover { background: #173b47; }
.scene-annotations { position: absolute; inset: 0; z-index: 3; pointer-events: none; color: rgba(186,227,235,.82); font-size: 8px; letter-spacing: .16em; font-weight: 800; }
.annotation { position: absolute; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 5px #07131b; }.annotation-line { width: 24px; height: 1px; background: rgba(116,217,232,.8); box-shadow: 0 0 8px rgba(116,217,232,.6); }.annotation-flow { top: 25%; left: 7%; }.annotation-crystals { top: 48%; right: 7%; flex-direction: row-reverse; }.annotation-bed { bottom: 19%; left: 11%; }
.scene-legend { position: absolute; z-index: 4; bottom: 38px; right: 16px; display: flex; gap: 13px; padding: 7px 9px; border: 1px solid rgba(158,202,211,.13); border-radius: 6px; background: rgba(5,17,24,.64); backdrop-filter: blur(8px); color: #93adb5; font-size: 8px; }
.scene-legend span { display: flex; align-items: center; gap: 5px; }.scene-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }.legend-frazil { background: #b8f2ff; box-shadow: 0 0 7px #6ec9dc; }.legend-anchor { background: #e2f9ff; }.legend-flow { width: 11px !important; height: 2px !important; border-radius: 0 !important; background: #72dbe7; }
.context-message { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 10px 14px; border: 1px solid rgba(116,217,232,.25); border-radius: 8px; background: rgba(4,16,22,.92); color: #b6dce3; }
.scene-fallback { position: absolute; z-index: 7; inset: 15%; display: grid; place-items: center; text-align: center; color: #b9dce3; border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(6,18,25,.9); padding: 24px; }
.transport-bar { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12,28,38,.86); }
.transport-controls, .transport-tools { display: flex; align-items: center; gap: 7px; }.primary-button, .secondary-button, .tool-button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 7px; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.primary-button { min-width: 88px; padding: 0 12px; border: 1px solid #79dce9; background: #6acbd9; color: #06202a; font-weight: 800; }.primary-button:hover { background: #8be6f0; }.primary-button:not(.is-playing) { background: #153744; color: #b9edf3; border-color: #32616c; }.play-icon { font-size: 11px; }
.secondary-button { padding: 0 10px; border: 1px solid var(--line-strong); background: #112630; color: #a9c2c9; font-size: 11px; }.secondary-button:hover, .tool-button:hover { background: #1a3945; border-color: rgba(116,217,232,.45); }.button-glyph { color: var(--cyan); font-size: 15px; }
.transport-speed { display: grid; grid-template-columns: auto minmax(70px, 100px) auto; gap: 8px; align-items: center; color: #78939d; font-size: 8px; letter-spacing: .12em; font-weight: 800; }.transport-speed output { color: #b5d9df; font-size: 10px; letter-spacing: 0; min-width: 34px; }
.tool-button { padding: 0 9px; border: 1px solid var(--line); background: transparent; color: #9eb6bd; font-size: 9px; }.export-button { color: #bce7ec; border-color: rgba(116,217,232,.24); }.export-button span { font-size: 15px; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 4px; border-radius: 20px; background: linear-gradient(90deg, #64cbd9 0%, #64cbd9 var(--range-fill, 50%), #28414b var(--range-fill, 50%), #28414b 100%); cursor: pointer; accent-color: var(--cyan); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border: 2px solid #c7f6fa; border-radius: 50%; background: #4fb9c9; box-shadow: 0 0 0 3px rgba(91,202,216,.15), 0 0 9px rgba(91,202,216,.55); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #c7f6fa; border-radius: 50%; background: #4fb9c9; box-shadow: 0 0 0 3px rgba(91,202,216,.15); }
.science-card { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12,28,38,.8); overflow: hidden; }.science-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 0; background: transparent; text-align: left; cursor: pointer; }.science-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: rgba(116,217,232,.1); color: var(--cyan); font-size: 15px; }.science-title { color: #d7ebee; font-size: 12px; font-weight: 700; }.science-subtitle { color: #6f8d97; font-size: 10px; }.science-chevron { margin-left: auto; color: var(--cyan); font-size: 18px; }.science-content { padding: 0 14px 14px; border-top: 1px solid var(--line); }.science-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; padding-top: 15px; }.science-index { color: var(--gold); font-size: 8px; letter-spacing: .14em; font-weight: 800; }.science-grid h3 { margin: 4px 0 5px; color: #cfe6eb; font-size: 12px; }.science-grid p, .limitations { margin: 0; color: #8fa9b1; font-size: 10px; line-height: 1.65; }.science-grid code { color: #a8e4ec; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }.science-footnote { margin-top: 14px; padding: 10px; border-radius: 6px; background: rgba(116,217,232,.055); color: #8faab2; font-size: 9px; line-height: 1.7; }.science-footnote span { color: var(--cyan); font-size: 8px; font-weight: 800; letter-spacing: .14em; margin-right: 8px; }.limitations { margin-top: 9px; color: #728c95; }.disclaimer { margin: 10px 0 0; color: #59737d; font-size: 9px; }
.control-column { min-width: 0; padding: 15px 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16,36,47,.96), rgba(9,24,33,.96)); box-shadow: 0 18px 45px rgba(0,0,0,.15); }
.panel-heading, .measurements-heading { display: flex; align-items: center; justify-content: space-between; }.panel-eyebrow { color: var(--cyan); font-size: 8px; letter-spacing: .16em; font-weight: 800; }.panel-heading h2, .measurements-heading h2 { margin: 3px 0 0; color: #e1eff1; font-size: 17px; letter-spacing: -.025em; }.panel-number { color: #45636e; font-size: 22px; font-weight: 300; }
.preset-block { margin-top: 15px; padding: 11px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.section-label { display: flex; justify-content: space-between; color: #8faab1; font-size: 8px; letter-spacing: .14em; font-weight: 800; }.section-label span { color: #58737e; font-weight: 600; }.preset-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }.preset-button { min-width: 0; min-height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--line); border-radius: 7px; background: rgba(6,20,28,.5); color: #8faab2; cursor: pointer; font-size: 9px; transition: .18s ease; }.preset-button:hover { border-color: rgba(116,217,232,.42); color: #cde9ed; }.preset-button.active { border-color: rgba(116,217,232,.62); background: rgba(69,160,176,.12); color: #c7edf1; box-shadow: inset 0 0 0 1px rgba(116,217,232,.06); }.preset-mark { font-size: 13px; line-height: 1.1; }.clear-mark { color: #83c6d3; }.bloom-mark { color: #9aeaf0; }.ice-mark { color: #c4f2f7; }.preset-description { min-height: 28px; margin: 8px 0 0; color: #76919a; font-size: 9px; line-height: 1.5; }
.control-list { display: grid; gap: 13px; padding: 14px 0 15px; border-bottom: 1px solid var(--line); }.control-item { min-width: 0; }.control-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 10px; }.control-label label { color: #c2d8dd; font-size: 10px; font-weight: 650; }.control-label output { color: #a9e2e9; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }.control-item input { display: block; }.range-ends { display: flex; justify-content: space-between; margin-top: 5px; color: #607b85; font-size: 8px; }.control-hint { margin: 5px 0 0; color: #67828c; font-size: 8px; }.scaled-tag { display: inline-block; margin-left: 4px; padding: 1px 4px; border-radius: 3px; color: #c7aa80; background: rgba(210,168,120,.09); font-size: 7px; letter-spacing: .08em; vertical-align: 1px; }
.measurements { padding: 14px 0 11px; border-bottom: 1px solid var(--line); }.measurements-heading h2 { font-size: 15px; }.telemetry-pulse { display: inline-flex; align-items: center; gap: 5px; color: #85d6b3; font-size: 8px; letter-spacing: .12em; font-weight: 800; }.telemetry-pulse i { width: 5px; height: 5px; border-radius: 50%; background: #79d6ad; box-shadow: 0 0 8px #79d6ad; }.state-line { display: flex; align-items: center; gap: 7px; margin: 11px 0 8px; color: #8ed9c0; font-size: 8px; letter-spacing: .13em; font-weight: 800; }.state-dot { width: 6px; height: 6px; border-radius: 50%; background: #77d6ae; box-shadow: 0 0 8px #77d6ae; }.state-dot.is-idle { background: #d2a878; box-shadow: 0 0 8px #d2a878; }.state-note { margin-left: auto; color: #5f7982; font-size: 7px; }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.readout { display: flex; flex-direction: column; min-height: 69px; padding: 8px 9px 7px; border: 1px solid rgba(156,203,214,.1); border-radius: 7px; background: rgba(4,18,25,.45); }.readout-label { color: #79949d; font-size: 8px; }.readout strong { margin-top: 2px; color: #d9f2f5; font-size: 19px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }.readout-sub { margin-top: 5px; color: #55717b; font-size: 7px; letter-spacing: .11em; }.meter-row { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: #6d8993; font-size: 7px; letter-spacing: .1em; }.meter { flex: 1; height: 3px; border-radius: 4px; background: #203c46; overflow: hidden; }.meter i { display: block; width: var(--fill, 40%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #479cae, #8be0e8); }.meter-row b { color: #b7e5ea; font-size: 9px; }.rise-row { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; color: #78939c; font-size: 9px; }.rise-row strong { color: #b5dce2; font-size: 10px; font-variant-numeric: tabular-nums; }
.validation-card { margin-top: 13px; padding: 11px; border: 1px solid rgba(210,168,120,.2); border-radius: 8px; background: linear-gradient(120deg, rgba(210,168,120,.06), rgba(5,19,26,.3)); }.validation-head { display: flex; justify-content: space-between; align-items: center; }.validation-head .panel-eyebrow { color: #c9a77a; }.checkmark { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(131,216,180,.12); color: #83d8b4; font-size: 11px; }.validation-card h3 { margin: 5px 0 1px; color: #d9e9e9; font-size: 12px; }.validation-card p { margin: 0; color: #819ba3; font-size: 8px; }.validation-card p b { color: #b9dce1; }.validation-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }.validation-values div { display: flex; flex-direction: column; gap: 3px; }.validation-values span { color: #718c95; font-size: 7px; letter-spacing: .13em; }.validation-values strong { color: #c4e4e8; font-size: 12px; font-variant-numeric: tabular-nums; }.validation-diff { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(210,168,120,.13); color: #829aa1; font-size: 8px; }.validation-diff strong { color: #a5e0c5; font-size: 10px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 2px 0; color: #4f6b75; font-size: 8px; letter-spacing: .13em; font-weight: 700; }.footer span:last-child { color: #78949d; }
[hidden] { display: none !important; }
.embed-mode .app-shell { max-width: none; padding: 0 10px 10px; }.embed-mode .topbar, .embed-mode .hero-heading, .embed-mode .footer { display: none; }.embed-mode .workspace { grid-template-columns: minmax(0, 1fr) 340px; gap: 10px; }.embed-mode .scene-frame { height: calc(100vh - 100px); min-height: 400px; }.embed-mode .science-card, .embed-mode .disclaimer { display: none; }
@media (max-width: 1100px) { .app-shell { padding: 0 20px 20px; }.workspace { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr); gap: 12px; }.control-column { padding: 13px; }.transport-bar { flex-wrap: wrap; }.transport-speed { margin-left: auto; }.transport-tools { width: 100%; justify-content: flex-end; }.scene-frame { height: 500px; } }
@media (max-width: 820px) { .app-shell { padding: 0 14px 20px; }.topbar { height: 54px; }.topbar-center { display: none; }.hero-heading { padding: 22px 0 17px; }.hero-meta { display: none; }.workspace { grid-template-columns: 1fr; }.scene-frame { height: clamp(380px, 64vw, 520px); min-height: 380px; }.control-column { padding: 15px; }.control-list { grid-template-columns: 1fr 1fr; column-gap: 22px; }.measurements { padding-top: 15px; }.validation-card { margin-bottom: 2px; }.footer { flex-wrap: wrap; }.embed-mode .workspace { grid-template-columns: 1fr; }.embed-mode .scene-frame { height: 68vh; }.embed-mode .control-column { display: none; } }
@media (max-width: 520px) { body { font-size: 12px; }.app-shell { padding: 0 10px 15px; }.topbar-right { font-size: 8px; }.version { display: none; }.brand-word { font-size: 10px; }.hero-heading { padding: 18px 0 15px; }.hero-copy p { font-size: 11px; line-height: 1.5; max-width: 330px; }.kicker { font-size: 8px; }.scene-frame { height: 390px; min-height: 390px; border-radius: 10px; }.scene-host { inset: 34px 0 32px; }.scene-topline { left: 10px; right: 10px; top: 9px; }.scene-bottomline { left: 10px; right: 10px; bottom: 8px; font-size: 7px; }.scene-coords { display: none; }.scene-annotations { font-size: 7px; }.annotation-flow { top: 22%; left: 4%; }.annotation-crystals { right: 3%; top: 48%; }.annotation-bed { left: 7%; bottom: 19%; }.annotation-line { width: 14px; }.scene-legend { left: 9px; right: auto; bottom: 34px; gap: 8px; padding: 6px 7px; font-size: 7px; }.transport-bar { gap: 8px; padding: 8px; }.transport-controls { width: 100%; }.primary-button { flex: 1; }.secondary-button { flex: 1; }.transport-speed { grid-template-columns: auto 1fr auto; width: 100%; margin: 2px 0; }.transport-tools { width: 100%; }.tool-button { flex: 1; }.control-list { grid-template-columns: 1fr; gap: 13px; }.preset-button { font-size: 8px; }.science-subtitle { display: none; }.science-grid { grid-template-columns: 1fr; gap: 13px; }.footer { font-size: 7px; }.footer span:nth-child(2) { display: none; }.readout strong { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
.process-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; margin-top: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(10,27,36,.74); }
.process-step { min-width: 0; display: flex; flex-direction: column; gap: 2px; }.process-step span { color: #6d9aa4; font-size: 7px; font-weight: 800; letter-spacing: .14em; }.process-step strong { color: #cde9ed; font-size: 10px; }.process-step small { color: #708c96; font-size: 8px; line-height: 1.35; }.process-arrow { color: #5b9ba7; font-size: 14px; }
@media (max-width: 520px) { .process-strip { grid-template-columns: 1fr; gap: 7px; }.process-arrow { display: none; }.process-step { display: grid; grid-template-columns: 84px 1fr; align-items: baseline; }.process-step span { grid-column: 1; grid-row: 1 / span 2; }.process-step strong { grid-column: 2; }.process-step small { grid-column: 2; } }
