:root {
  color-scheme: dark;
  --bg: #0d1015;
  --panel: #151a21;
  --panel-2: #1a2029;
  --line: rgba(255,255,255,.085);
  --muted: #8c96a4;
  --muted-2: #657080;
  --text: #edf0f3;
  --sand: #e2b66f;
  --sand-bright: #f0c983;
  --cyan: #7bd8dc;
  --green: #87d3a0;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { min-width: 320px; font-family: var(--font); font-size: 13px; letter-spacing: .01em; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.app-shell { max-width: 1680px; margin: 0 auto; padding: 0 28px 22px; }
.topbar { height: 72px; 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: 28px; height: 28px; display: flex; align-items: end; gap: 3px; padding: 4px; border: 1px solid rgba(226,182,111,.35); border-radius: 8px; transform: skewY(-10deg); }
.brand-mark span { display: block; width: 5px; border-radius: 4px 4px 1px 1px; background: var(--sand); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .6; }.brand-mark span:nth-child(2) { height: 15px; }.brand-mark span:nth-child(3) { height: 11px; opacity: .78; }
.eyebrow { font-size: 9px; font-weight: 750; letter-spacing: .16em; color: #929cab; }
.eyebrow-divider { color: #586271; padding: 0 4px; }.brand-name { margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .13em; color: #e8edf2; }
.topbar-right { display: flex; align-items: center; gap: 12px; }.live-indicator, .seed-chip { border: 1px solid var(--line); padding: 7px 10px; border-radius: 5px; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #aab3bf; }
.live-indicator { display: flex; align-items: center; gap: 7px; }.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(135,211,160,.65); }.seed-chip { color: var(--sand); border-color: rgba(226,182,111,.22); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 22px; padding-top: 22px; align-items: start; }
.scene-column { min-width: 0; }.scene-heading { display: flex; align-items: end; justify-content: space-between; padding: 2px 2px 16px; }.eyebrow.warm { color: #bd9c6b; }.scene-heading h1 { margin: 7px 0 2px; font-size: clamp(25px, 3vw, 35px); letter-spacing: -.045em; line-height: 1.08; font-weight: 760; }.subtitle { margin: 0; color: #9aa4b0; font-size: 13px; }.subtitle em { color: #d6b77f; font-style: normal; }.scene-state { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 9px; letter-spacing: .12em; font-weight: 750; color: #aeb7c1; white-space: nowrap; }.state-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 9px rgba(135,211,160,.5); }
.scene-frame { height: clamp(350px, 43vw, 570px); min-height: 350px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: radial-gradient(ellipse at 53% 30%, #43505a 0%, #252e36 44%, #171c22 100%); isolation: isolate; }.scene-mount { position: absolute; inset: 0; z-index: 1; }.scene-mount canvas { display: block; width: 100%; height: 100%; outline: none; }.scene-vignette { pointer-events: none; position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg,rgba(7,10,14,.38),transparent 20%,transparent 73%,rgba(8,11,15,.42)),linear-gradient(90deg,rgba(8,10,14,.16),transparent 30%,transparent 70%,rgba(8,10,14,.12)); }.scene-topline { position: absolute; z-index: 3; top: 16px; left: 17px; right: 17px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }.scene-tag { font-size: 8px; font-weight: 800; letter-spacing: .15em; padding: 8px 10px; background: rgba(10,14,18,.62); border: 1px solid rgba(255,255,255,.13); border-radius: 4px; color: #d9dfe5; backdrop-filter: blur(8px); }.tag-icon { color: var(--sand-bright); margin-right: 6px; }.scene-hint { font-size: 8px; letter-spacing: .12em; color: rgba(238,242,246,.68); text-shadow: 0 1px 4px #14181d; }.scene-hint span { padding: 0 5px; color: var(--sand); }.scene-caption { position: absolute; z-index: 3; bottom: 22px; display: flex; align-items: center; gap: 9px; pointer-events: none; }.scene-caption-left { left: 20px; }.scene-caption-right { right: 20px; flex-direction: row-reverse; text-align: right; }.caption-line { width: 25px; height: 1px; background: var(--sand); box-shadow: 0 0 7px rgba(226,182,111,.55); }.scene-caption strong { display: block; font-size: 8px; letter-spacing: .14em; color: #f0d4a1; }.scene-caption small { display: block; margin-top: 3px; font-size: 9px; color: rgba(238,242,246,.72); }.scene-scale { position: absolute; z-index: 3; bottom: 21px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; font-size: 8px; color: rgba(255,255,255,.62); }.scene-scale i { width: 48px; height: 3px; border-left: 1px solid rgba(255,255,255,.75); border-right: 1px solid rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.75); }.scene-loading { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(13,16,21,.84); color: #c5ced8; font-size: 9px; letter-spacing: .18em; font-weight: 800; transition: opacity .4s ease; }.scene-loading.hidden { opacity: 0; pointer-events: none; }.loader-ring { width: 28px; height: 28px; border: 2px solid rgba(226,182,111,.2); border-top-color: var(--sand); border-radius: 50%; animation: spin 1s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }.webgl-fallback { position: absolute; z-index: 7; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; text-align: center; background: rgba(12,16,21,.94); }.webgl-fallback strong { font-size: 17px; }.webgl-fallback span { max-width: 360px; line-height: 1.6; color: var(--muted); }
.transport-bar { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; background: #151a21; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; }.transport-main, .transport-tools { display: flex; align-items: center; gap: 8px; }.primary-control, .icon-control, .text-control { border: 1px solid rgba(255,255,255,.1); background: #1c232c; border-radius: 5px; cursor: pointer; transition: background .18s,border-color .18s,transform .18s; }.primary-control:hover, .icon-control:hover, .text-control:hover { background: #28313c; border-color: rgba(226,182,111,.45); }.primary-control { height: 32px; padding: 0 12px; display: flex; align-items: center; gap: 8px; color: #f0d4a1; border-color: rgba(226,182,111,.3); font-size: 9px; letter-spacing: .12em; font-weight: 800; }.pause-glyph { font-size: 14px; line-height: 1; }.icon-control { width: 32px; height: 32px; font-size: 15px; color: #c6ced7; }.transport-divider { height: 21px; width: 1px; margin: 0 3px; background: var(--line); }.speed-select-label { font-size: 8px; color: #8e99a7; letter-spacing: .13em; font-weight: 800; }.speed-select { background: #1c232c; border: 1px solid rgba(255,255,255,.1); color: #e3e8ed; border-radius: 4px; padding: 7px 7px; font-size: 10px; }.text-control { height: 31px; padding: 0 9px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #aeb8c4; }.text-control span { font-size: 8px; font-weight: 800; letter-spacing: .1em; }.quality-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }.quality-control[aria-pressed="false"] .quality-dot { background: #c28b60; }
.readout-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 12px; }.readout-card { min-width: 0; padding: 12px 13px 10px; background: linear-gradient(145deg,#181e26,#141920); border: 1px solid var(--line); border-radius: 7px; }.readout-top { display: flex; align-items: center; justify-content: space-between; color: #8793a1; font-size: 8px; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }.readout-icon { color: #c9a46e; font-size: 15px; }.readout-value { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; }.readout-value strong { font-size: clamp(21px,2.1vw,27px); letter-spacing: -.045em; font-weight: 720; color: #f0f1f1; font-variant-numeric: tabular-nums; }.readout-value small { color: #8e99a6; font-size: 10px; }.readout-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 8px; color: #74808e; font-size: 7px; font-weight: 750; letter-spacing: .1em; }.readout-bar { display: block; height: 3px; flex: 1; background: #2a333d; border-radius: 3px; overflow: hidden; }.readout-bar i { display: block; height: 100%; width: 60%; background: linear-gradient(90deg,#b58a55,#ead09a); border-radius: 3px; transition: width .3s; }.highlight-readout { border-color: rgba(226,182,111,.2); background: linear-gradient(145deg,rgba(68,52,33,.38),#171a1f); }
.science-section { margin-top: 13px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #141920; }.science-toggle { display: flex; width: 100%; align-items: center; gap: 11px; padding: 12px 14px; border: 0; background: transparent; cursor: pointer; text-align: left; }.science-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: rgba(123,216,220,.1); color: var(--cyan); font-size: 15px; }.science-toggle strong { display: block; font-size: 11px; }.science-toggle small { display: block; margin-top: 3px; font-size: 9px; color: var(--muted); }.science-chevron { margin-left: auto; color: #9ba5b0; font-size: 18px; transition: transform .2s; }.science-toggle[aria-expanded="true"] .science-chevron { transform: rotate(180deg); }.science-panel { padding: 0 14px 16px; border-top: 1px solid var(--line); }.science-intro { padding: 14px 0 12px; }.micro-label { display: block; color: #c3a16d; font-size: 8px; font-weight: 800; letter-spacing: .14em; }.science-intro p, .science-notes p { margin: 6px 0 0; color: #a6b0bc; font-size: 10px; line-height: 1.6; }.mechanism-flow { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 11px; border: 1px solid rgba(226,182,111,.17); border-radius: 5px; background: rgba(94,72,43,.13); color: #c9d0d6; font-size: 9px; }.mechanism-flow span { flex: 1; }.mechanism-flow b { display: block; margin-bottom: 3px; color: #d9b77e; font-size: 7px; letter-spacing: .12em; }.mechanism-flow i { color: #a3cfd0; font-style: normal; font-size: 13px; }.equation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.equation-card { padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: #181e26; }.equation-card span { display: block; color: #83909e; font-size: 7px; font-weight: 800; letter-spacing: .12em; }.equation-card code { display: block; margin: 9px 0 6px; color: #e8d0a3; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 13px; }.equation-card small { color: #8d99a6; font-size: 8px; }.validation-box { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 11px; border: 1px solid rgba(135,211,160,.2); border-radius: 5px; background: rgba(46,79,62,.13); }.validation-box>div:first-child { flex: 1; min-width: 150px; }.validation-box strong { display: block; margin-top: 4px; font-size: 10px; }.validation-box small { display: block; margin-top: 3px; color: #88959f; font-size: 8px; }.validation-values { display: flex; gap: 14px; }.validation-values span { display: block; }.validation-values small { font-size: 7px; letter-spacing: .1em; }.validation-values b { display: block; margin-top: 4px; font-size: 10px; font-variant-numeric: tabular-nums; }.validation-pass { padding: 5px 7px; border-radius: 3px; background: rgba(135,211,160,.13); color: #9de0b4; font-size: 8px; font-weight: 800; letter-spacing: .1em; }.science-notes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 13px; }.disclaimer { margin: 12px 0 0; color: #65717e; font-size: 9px; text-align: center; }
.control-panel { background: #151a21; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 17px 15px; border-bottom: 1px solid var(--line); }.panel-header h2 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.03em; }.panel-count { font-size: 8px; font-weight: 800; letter-spacing: .1em; color: #8793a1; border: 1px solid var(--line); border-radius: 4px; padding: 6px 7px; }.preset-block, .control-group { padding: 14px 16px 15px; border-bottom: 1px solid var(--line); }.control-section-label { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; color: #8994a1; font-size: 8px; font-weight: 800; letter-spacing: .13em; }.label-line { height: 1px; flex: 1; background: var(--line); }.preset-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }.preset-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; text-align: left; background: #1a2029; border: 1px solid rgba(255,255,255,.065); border-radius: 5px; cursor: pointer; transition: .18s; }.preset-btn:hover { border-color: rgba(226,182,111,.3); background: #202833; }.preset-btn.active { background: rgba(110,83,48,.2); border-color: rgba(226,182,111,.48); }.preset-symbol { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 5px; font-size: 15px; }.quiet-symbol { background: rgba(123,216,220,.1); color: var(--cyan); }.boom-symbol { background: rgba(226,182,111,.13); color: var(--sand-bright); }.damp-symbol { background: rgba(129,151,179,.12); color: #aabbd0; }.preset-btn strong { display: block; font-size: 10px; font-weight: 750; }.preset-btn small { display: block; margin-top: 2px; color: #84909e; font-size: 8px; }.range-control { margin-top: 12px; }.range-control:first-of-type { margin-top: 0; }.range-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.range-heading label { color: #d0d6dc; font-size: 10px; }.range-heading output { color: #e3bf82; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }.tiny-help { display: inline-grid; place-items: center; width: 12px; height: 12px; border: 1px solid #64707c; border-radius: 50%; color: #95a0ac; font-size: 8px; }.range-control input[type="range"] { display: block; width: 100%; height: 15px; margin: 6px 0 1px; appearance: none; background: transparent; cursor: pointer; }.range-control input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg,#c59b5f,#5a6572); }.range-control input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg,#c59b5f,#5a6572); }.range-control input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 2px solid #171b20; border-radius: 50%; background: #e7c17f; box-shadow: 0 0 0 1px rgba(231,193,127,.7); }.range-control input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #171b20; border-radius: 50%; background: #e7c17f; box-shadow: 0 0 0 1px rgba(231,193,127,.7); }.range-ends { display: flex; justify-content: space-between; color: #66717f; font-size: 7px; }.panel-footer { padding: 13px 16px 14px; }.model-status { display: flex; align-items: center; gap: 7px; color: #8c9a9f; font-size: 8px; font-weight: 800; letter-spacing: .1em; }.status-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px rgba(135,211,160,.55); }.model-status-right { margin-left: auto; color: #9da7b2; font-weight: 600; letter-spacing: .04em; }.reset-params { width: 100%; margin-top: 13px; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: #1a2029; color: #b8c1cb; font-size: 9px; cursor: pointer; }.reset-params:hover { border-color: rgba(226,182,111,.35); color: #e4c18a; }.legend-row { display: flex; justify-content: space-between; margin-top: 13px; color: #7d8996; font-size: 8px; }.legend-row span { display: flex; align-items: center; gap: 6px; }.legend-grain, .legend-wave { width: 7px; height: 7px; border-radius: 50%; background: #e3b36c; }.legend-wave { border: 1px solid #77d1d7; background: transparent; box-shadow: 0 0 5px rgba(123,216,220,.45); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.embed-mode .topbar, .embed-mode .scene-heading, .embed-mode .readout-grid, .embed-mode .science-section, .embed-mode .disclaimer { display: none; }.embed-mode .workspace { padding-top: 0; grid-template-columns: minmax(0,1fr) 320px; }.embed-mode .scene-frame { height: 100vh; max-height: 900px; border-radius: 0; }.embed-mode .transport-bar { border-radius: 0; }
@media (max-width: 1120px) { .app-shell { padding: 0 18px 20px; }.workspace { grid-template-columns: minmax(0,1fr) 320px; gap: 14px; }.readout-card { padding: 10px; }.readout-top { font-size: 7px; }.transport-tools .text-control span { display: none; } }
@media (max-width: 860px) { .workspace { grid-template-columns: 1fr; }.control-panel { display: grid; grid-template-columns: 1fr 1fr; }.panel-header { grid-column: 1/-1; }.preset-block { grid-column: 1/-1; }.control-group { border-right: 1px solid var(--line); }.control-group:nth-of-type(3) { border-right: 0; }.panel-footer { grid-column: 1/-1; }.preset-grid { grid-template-columns: repeat(3,1fr); }.preset-btn { min-width: 0; }.preset-btn small { font-size: 7px; }.scene-frame { height: min(62vw,520px); min-height: 360px; } }
@media (max-width: 560px) { .app-shell { padding: 0 10px 18px; }.topbar { height: 58px; }.brand-name { font-size: 9px; }.eyebrow { font-size: 8px; }.topbar-right { gap: 5px; }.live-indicator { display: none; }.seed-chip { font-size: 8px; padding: 6px 7px; }.workspace { padding-top: 13px; gap: 12px; }.scene-heading { padding-bottom: 11px; align-items: center; }.scene-heading h1 { font-size: 26px; }.subtitle { font-size: 11px; }.scene-state { font-size: 7px; }.scene-frame { height: 57vh; min-height: 330px; max-height: 510px; border-radius: 7px; }.scene-hint { display: none; }.scene-topline { top: 10px; left: 10px; }.scene-caption { bottom: 14px; gap: 5px; }.scene-caption-left { left: 10px; }.scene-caption-right { right: 10px; }.scene-caption small { max-width: 115px; font-size: 7px; }.scene-caption strong { font-size: 7px; }.caption-line { width: 15px; }.scene-scale { display: none; }.transport-bar { padding: 0 7px; height: 48px; gap: 5px; }.transport-main, .transport-tools { gap: 5px; }.primary-control { padding: 0 8px; gap: 5px; font-size: 8px; }.icon-control { width: 29px; height: 29px; }.transport-divider { margin: 0 1px; }.speed-select-label { display: none; }.speed-select { padding: 6px 3px; font-size: 9px; }.text-control { width: 30px; justify-content: center; padding: 0; }.text-control span { display: none; }.readout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 8px; }.readout-card { padding: 9px 10px; }.readout-value strong { font-size: 24px; }.readout-top { font-size: 7px; }.control-panel { display: block; }.panel-header { padding: 14px; }.preset-block, .control-group { padding: 12px 13px; }.preset-grid { grid-template-columns: 1fr; }.preset-btn { padding: 7px 8px; }.preset-btn small { font-size: 8px; }.control-group { border-right: 0; }.range-control { margin-top: 14px; }.panel-footer { padding: 12px 13px; }.equation-grid { grid-template-columns: 1fr; }.validation-box { align-items: flex-start; flex-wrap: wrap; }.validation-values { order: 2; width: 100%; justify-content: space-between; }.validation-pass { margin-left: auto; }.science-notes { grid-template-columns: 1fr; gap: 10px; }.disclaimer { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
