:root {
  color-scheme: dark;
  --bg: #060b12;
  --panel: rgba(10, 17, 26, 0.96);
  --panel-soft: rgba(15, 25, 36, 0.82);
  --line: rgba(146, 179, 192, 0.14);
  --line-strong: rgba(146, 179, 192, 0.24);
  --text: #e5edf0;
  --muted: #81939e;
  --faint: #52636f;
  --cyan: #78c8d1;
  --cyan-bright: #a2e0e1;
  --amber: #d18a5e;
  --green: #8cc6a8;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow: hidden; font-size: 12px; letter-spacing: 0.01em; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { width: 100%; height: 100vh; min-height: 640px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 52% 48%, #0c1822 0%, #070d15 48%, #05090f 100%); }
.topbar { height: 62px; flex: 0 0 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(5, 10, 16, 0.82); z-index: 4; }
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 245px; }
.brand-mark { width: 27px; height: 27px; position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid rgba(120,200,209,.42); border-radius: 8px; transform: rotate(0deg); }
.brand-mark span { width: 3px; border-radius: 5px; background: var(--cyan); box-shadow: 0 0 8px rgba(120,200,209,.45); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .55; }.brand-mark span:nth-child(2) { height: 15px; }.brand-mark span:nth-child(3) { height: 11px; opacity: .75; }
.brand-name { font-size: 12px; font-weight: 780; letter-spacing: .16em; line-height: 1.25; }
.brand-dot { color: var(--cyan); }.brand-subtitle { color: #637984; font-size: 8px; letter-spacing: .16em; margin-top: 3px; }
.topbar-center { display: flex; align-items: center; gap: 13px; color: #7e909b; font-size: 9px; letter-spacing: .15em; }
.topbar-kicker { color: #9bc6ca; }.topbar-divider { width: 1px; height: 14px; background: var(--line-strong); }
.topbar-right { display: flex; align-items: center; gap: 9px; min-width: 245px; justify-content: flex-end; }
.seed-chip, .webgl-chip { border: 1px solid var(--line-strong); border-radius: 4px; padding: 6px 9px; color: #8299a3; font-size: 8px; letter-spacing: .12em; }
.webgl-chip { color: #a6c6c6; display: inline-flex; align-items: center; gap: 6px; }.webgl-chip i { width: 5px; height: 5px; border-radius: 50%; background: #6fca9a; box-shadow: 0 0 7px #6fca9a; }
.workspace { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: 292px minmax(420px, 1fr) 292px; gap: 0; overflow: hidden; }
.panel { min-height: 0; overflow-y: auto; background: var(--panel); scrollbar-width: thin; scrollbar-color: #31434d transparent; position: relative; z-index: 2; }
.control-panel { border-right: 1px solid var(--line); padding: 22px 18px 18px; }
.data-panel { border-left: 1px solid var(--line); padding: 22px 17px 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.eyebrow { color: #72949c; font-size: 8px; letter-spacing: .18em; font-weight: 700; margin-bottom: 7px; }
.panel-heading h1, .panel-heading h2 { font-size: 20px; line-height: 1.1; letter-spacing: -.035em; font-weight: 570; margin: 0; }
.panel-index { color: #536873; font-size: 8px; letter-spacing: .12em; padding-top: 2px; white-space: nowrap; }
.panel-intro { color: #8b9ba4; font-size: 10px; line-height: 1.65; margin: 12px 0 19px; max-width: 235px; }
.control-section { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 8px; color: #9db2b8; font-size: 8px; font-weight: 730; letter-spacing: .14em; margin-bottom: 12px; }
.section-title span { color: var(--cyan); font-variant-numeric: tabular-nums; }
.preset-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.preset-button { border: 1px solid rgba(143,174,185,.14); border-radius: 6px; background: rgba(22,34,44,.5); min-height: 43px; padding: 6px 9px; display: flex; align-items: center; text-align: left; gap: 9px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.preset-button:hover { border-color: rgba(120,200,209,.42); background: rgba(28,48,58,.7); }.preset-button.active { border-color: rgba(120,200,209,.62); background: rgba(33,62,69,.34); box-shadow: inset 2px 0 0 var(--cyan); }
.preset-swatch { display: block; width: 27px; height: 27px; border-radius: 4px; flex: 0 0 auto; background: radial-gradient(circle at 50% 50%, #bb6a48 0 12%, #513a34 14% 17%, #d58b5d 19% 24%, #1b3235 27% 40%, #b65e3c 44% 48%, #13262e 50%); }
.preset-swatch.fine { background: repeating-linear-gradient(180deg, #b56a4b 0 2px, #19313a 2px 5px); }.preset-swatch.sparse { background: repeating-linear-gradient(180deg, #bc714a 0 4px, #19313a 4px 12px); }
.preset-button b { display: block; font-size: 10px; font-weight: 650; }.preset-button small { display: block; color: #71858e; font-size: 8px; margin-top: 3px; }
.slider-control { margin: 0 0 14px; }.slider-control:last-child { margin-bottom: 0; }
.slider-label { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; margin-bottom: 8px; }.slider-label label { color: #c2d0d3; font-size: 9px; }.slider-label output { color: var(--cyan-bright); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { display: block; width: 100%; height: 14px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 6px; background: linear-gradient(90deg, #4b858d, #253a45); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 6px; background: linear-gradient(90deg, #4b858d, #253a45); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; border: 2px solid #b3e4e2; background: #4b9ca4; border-radius: 50%; margin-top: -4px; box-shadow: 0 0 0 3px rgba(101,192,198,.1), 0 0 9px rgba(101,192,198,.35); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #b3e4e2; background: #4b9ca4; border-radius: 50%; box-shadow: 0 0 0 3px rgba(101,192,198,.1), 0 0 9px rgba(101,192,198,.35); }
input[type="range"]:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }
.range-ends { display: flex; justify-content: space-between; color: #596c76; font-size: 8px; margin-top: 4px; }
.control-footnote { border-top: 1px solid var(--line); padding-top: 13px; display: flex; gap: 8px; color: #6f838d; font-size: 8px; line-height: 1.6; }.info-glyph { display: inline-flex; width: 13px; height: 13px; border: 1px solid #50757b; color: #8ec4c4; border-radius: 50%; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 8px; }
.scene-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 43%, rgba(31,58,67,.28), rgba(7,13,20,.04) 53%, rgba(4,8,13,.4)); }
.scene-canvas { position: absolute; inset: 0; z-index: 0; background: #08111a url("../preview.webp") center center / cover no-repeat; }.scene-canvas canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6,11,18,.24), transparent 24%, transparent 76%, rgba(6,11,18,.24)), linear-gradient(180deg, rgba(6,11,18,.55), transparent 25%, transparent 70%, rgba(6,11,18,.42)); z-index: 1; }
.scene-heading { position: absolute; top: 27px; left: 28px; z-index: 2; pointer-events: none; max-width: 300px; }.scene-kicker { display: flex; align-items: center; gap: 7px; color: #8fa6ad; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }.live-dot { display: inline-block; width: 6px; height: 6px; background: #79d5a2; border-radius: 50%; box-shadow: 0 0 8px rgba(121,213,162,.8); }.live-dot.paused { background: #a58b69; box-shadow: 0 0 7px rgba(165,139,105,.5); }.scene-separator { color: #526c76; }
.scene-heading h2 { font-size: clamp(24px, 2.4vw, 35px); line-height: 1.03; letter-spacing: -.055em; font-weight: 520; margin: 18px 0 9px; text-shadow: 0 2px 20px rgba(0,0,0,.45); }.scene-heading h2 em { color: #d7a07b; font-family: Georgia, serif; font-weight: 400; }.scene-heading p { color: #8da1a8; font-size: 9px; line-height: 1.6; max-width: 245px; margin: 0; }
.scene-legend { position: absolute; z-index: 2; top: 30px; right: 24px; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }.legend-item { display: flex; align-items: center; gap: 7px; color: #8da1a8; font-size: 8px; }.legend-item i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }.legend-gel { background: #6f9c96; }.legend-band { background: #bf704b; box-shadow: 0 0 7px rgba(191,112,75,.55); }.legend-particle { background: #77d0da; border-radius: 50% !important; box-shadow: 0 0 7px rgba(119,208,218,.65); }
.scene-readout { position: absolute; z-index: 2; left: 26px; bottom: 87px; display: flex; gap: 22px; pointer-events: none; }.scene-readout div { display: flex; flex-direction: column; gap: 4px; }.mini-label { color: #718b94; font-size: 7px; letter-spacing: .14em; }.scene-readout b { color: #d4e0e1; font-size: 11px; font-weight: 560; }
.scene-controls { position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); width: calc(100% - 38px); max-width: 740px; min-height: 48px; padding: 7px 9px; border: 1px solid rgba(143,183,192,.2); border-radius: 8px; background: rgba(8,15,22,.86); backdrop-filter: blur(18px); display: flex; align-items: center; gap: 7px; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.scene-controls button { border: 1px solid transparent; border-radius: 5px; height: 31px; padding: 0 9px; background: transparent; color: #a4b8bc; cursor: pointer; transition: background .16s, border-color .16s, color .16s; white-space: nowrap; }.scene-controls button:hover { background: rgba(87,136,146,.17); border-color: rgba(120,200,209,.25); color: #e4f2f2; }.scene-controls button:focus-visible, .preset-button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.play-button { display: flex; align-items: center; gap: 8px; background: #b86e4b !important; color: #fff2e9 !important; font-size: 9px; font-weight: 680; padding: 0 13px !important; }.play-button:hover { background: #ca8059 !important; }.play-button span:first-child { font-size: 12px; }
.icon-button { font-size: 15px; min-width: 31px; }.control-divider { width: 1px; height: 20px; background: var(--line-strong); margin: 0 2px; flex: 0 0 auto; }.speed-control { display: flex; align-items: center; gap: 7px; padding: 0 4px; flex: 1 1 140px; min-width: 110px; }.speed-control span { color: #778d96; font-size: 7px; letter-spacing: .13em; }.speed-control input { max-width: 95px; flex: 1; }.speed-control b { color: #b6d9d9; font-size: 8px; min-width: 34px; text-align: right; font-weight: 600; }.text-icon-button { font-size: 10px; }.text-icon-button span { font-size: 8px; }.scene-credit { position: absolute; z-index: 2; bottom: 5px; right: 22px; color: #526772; font-size: 7px; letter-spacing: .14em; pointer-events: none; }
.context-notice { position: absolute; z-index: 8; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(320px, calc(100% - 36px)); padding: 18px; border: 1px solid rgba(120,200,209,.35); border-radius: 8px; background: rgba(8,16,24,.96); box-shadow: 0 20px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 8px; }.context-notice[hidden] { display: none; }.context-notice b { font-size: 13px; }.context-notice span { color: var(--muted); font-size: 10px; line-height: 1.5; }.context-notice button { align-self: flex-start; border: 1px solid var(--line-strong); background: #1c343d; color: #d4eeee; padding: 7px 10px; border-radius: 4px; margin-top: 5px; cursor: pointer; }.motion-note { position: absolute; z-index: 3; left: 25px; bottom: 65px; color: #8ca2a9; font-size: 8px; }.motion-note[hidden] { display: none; }
.data-heading { margin-bottom: 17px; }.data-heading h2 { font-size: 19px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.metric-card { min-width: 0; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(23,36,47,.72), rgba(11,19,28,.7)); border-radius: 6px; padding: 10px 9px 9px; min-height: 88px; }.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; color: #738991; font-size: 7px; letter-spacing: .09em; white-space: nowrap; }.metric-icon { color: #7db8bd; font-size: 12px; font-style: normal; }.metric-card strong { display: block; color: #e2eded; font-size: 20px; letter-spacing: -.04em; font-weight: 560; margin-top: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }.metric-card small { display: block; color: #71838c; font-size: 7px; margin-top: 4px; }.front-track { width: 100%; height: 2px; background: #22343c; margin-top: 8px; border-radius: 4px; overflow: hidden; }.front-track span { display: block; height: 100%; width: 0; background: #79c6c7; box-shadow: 0 0 7px rgba(121,198,199,.55); transition: width .2s; }
.validation-card { margin-top: 14px; padding: 13px 11px 11px; border: 1px solid rgba(130,177,180,.2); border-radius: 6px; background: linear-gradient(145deg, rgba(20,39,43,.55), rgba(12,20,28,.6)); }.validation-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }.validation-header h3 { font-size: 13px; margin: 0; font-weight: 570; }.textbook-tag { border: 1px solid rgba(122,184,161,.28); color: #9ac9ae; border-radius: 3px; padding: 4px 5px; font-size: 7px; letter-spacing: .1em; }.validation-card p { color: #82949a; font-size: 8px; line-height: 1.55; margin: 9px 0 11px; }.validation-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 6px 0; color: #82959c; font-size: 8px; }.validation-row b { color: #c8dcdb; font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }.validation-result { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #a4b8b8; font-size: 8px; }.validation-result strong { color: #a9d8b8; font-size: 14px; font-weight: 650; }.validation-equation { margin-top: 9px; padding: 7px 8px; border-radius: 4px; background: rgba(4,10,15,.45); color: #91bfc0; text-align: center; font-family: Georgia, serif; font-size: 10px; }
.science-panel { margin-top: 13px; border: 1px solid var(--line); border-radius: 6px; background: rgba(15,24,33,.56); }.science-panel summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 11px 10px; cursor: pointer; color: #c3d2d4; font-size: 10px; font-weight: 620; }.science-panel summary::-webkit-details-marker { display: none; }.science-panel summary span:first-child { display: flex; align-items: center; gap: 8px; }.science-mark { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 4px; color: #a5d7d7; background: rgba(86,149,155,.16); font-style: normal; font-size: 12px; }.summary-chevron { color: #7c949c; font-size: 14px; transition: transform .18s; }.science-panel[open] .summary-chevron { transform: rotate(180deg); }.science-content { border-top: 1px solid var(--line); padding: 12px 10px 13px; }.science-content h4 { color: #a6c6c7; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; margin: 11px 0 7px; }.science-content h4:first-child { margin-top: 0; }.science-content p, .science-content li { color: #8799a0; font-size: 8px; line-height: 1.6; }.science-content p { margin: 7px 0; }.science-content ul { padding-left: 14px; margin: 6px 0 9px; }.science-content li { margin: 4px 0; }.science-content li b { color: #b6cccd; }.equation { border-left: 2px solid #538d93; background: rgba(34,61,67,.3); padding: 8px 7px; color: #c5dddd; font-family: Georgia, serif; font-size: 10px; line-height: 1.4; }.equation.reaction { color: #e1a47e; border-left-color: #b76d4b; }.limitation-note { padding: 8px; background: rgba(126,91,61,.1); border: 1px solid rgba(183,130,85,.15); border-radius: 4px; }.limitation-note b { color: #d6a27d; }.classification-note { display: flex; align-items: center; gap: 7px; color: #70858d; font-size: 7px; letter-spacing: .07em; margin-top: 12px; }.classification-dot { width: 5px; height: 5px; border-radius: 50%; background: #d4a06f; box-shadow: 0 0 6px rgba(212,160,111,.5); }
.footerbar { height: 25px; flex: 0 0 25px; border-top: 1px solid var(--line); background: rgba(5,10,16,.86); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; color: #596d77; font-size: 7px; letter-spacing: .1em; }.footerbar b { color: #7ea9aa; padding: 0 3px; }.footerbar span:nth-child(2) { color: #6f828b; letter-spacing: .025em; text-transform: none; }.footer-right { white-space: nowrap; }
.embed-mode .topbar, .embed-mode .control-panel, .embed-mode .data-panel, .embed-mode .footerbar { display: none; }.embed-mode .app-shell { min-height: 0; height: 100vh; }.embed-mode .workspace { display: block; height: 100%; }.embed-mode .scene-stage { height: 100%; }.embed-mode .scene-heading { top: 18px; left: 18px; }.embed-mode .scene-controls { bottom: 14px; }
@media (max-width: 1120px) {
  .workspace { grid-template-columns: 260px minmax(350px, 1fr) 260px; }
  .control-panel { padding-left: 15px; padding-right: 15px; }.data-panel { padding-left: 13px; padding-right: 13px; }
  .scene-controls { width: calc(100% - 24px); gap: 4px; }.text-icon-button { padding: 0 6px !important; }.text-icon-button span { font-size: 7px; }
}
@media (max-width: 930px) {
  body { overflow: auto; }.app-shell { height: auto; min-height: 100vh; }.workspace { grid-template-columns: 260px minmax(0,1fr); grid-template-rows: minmax(580px, calc(100vh - 87px)) auto; overflow: visible; }.control-panel { grid-column: 1; grid-row: 1; }.scene-stage { grid-column: 2; grid-row: 1; }.data-panel { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-left: 0; border-top: 1px solid var(--line); }.data-heading, .metric-grid { grid-column: 1; }.validation-card, .science-panel, .classification-note { grid-column: 2; }.validation-card { margin-top: 0; }.science-panel { margin-top: 0; }.classification-note { align-self: start; }.footerbar { min-height: 25px; }
}
@media (max-width: 650px) {
  .topbar { height: 52px; flex-basis: 52px; padding: 0 13px; }.brand-lockup { min-width: 0; }.brand-mark { width: 24px; height: 24px; }.brand-name { font-size: 10px; }.brand-subtitle { font-size: 7px; }.topbar-center { display: none; }.topbar-right { min-width: 0; }.seed-chip { display: none; }.webgl-chip { font-size: 7px; padding: 5px 7px; }
  .workspace { display: flex; flex-direction: column; overflow: visible; gap: 0; }.scene-stage { order: 0; height: 51svh; min-height: 390px; flex: 0 0 51svh; }.control-panel { order: 1; border-right: 0; border-top: 1px solid var(--line); padding: 18px 16px 17px; overflow: visible; }.data-panel { order: 2; display: block; border-left: 0; padding: 18px 16px 22px; overflow: visible; }.panel-heading h1, .panel-heading h2 { font-size: 18px; }.panel-intro { max-width: none; }.preset-grid { grid-template-columns: repeat(3, 1fr); }.preset-button { padding: 7px 6px; min-height: 54px; gap: 5px; flex-direction: column; align-items: flex-start; }.preset-swatch { width: 100%; height: 5px; }.preset-button small { font-size: 7px; }.control-section { padding: 13px 0; }.slider-control { margin-bottom: 15px; }.scene-heading { top: 17px; left: 16px; max-width: 235px; }.scene-heading h2 { font-size: 26px; margin: 12px 0 7px; }.scene-heading p { font-size: 8px; max-width: 205px; }.scene-kicker { font-size: 7px; }.scene-legend { top: 17px; right: 13px; gap: 7px; }.legend-item { font-size: 7px; }.scene-readout { bottom: 81px; left: 16px; gap: 16px; }.scene-controls { bottom: 17px; width: calc(100% - 20px); min-height: 46px; gap: 3px; padding: 6px; }.scene-controls button { height: 30px; padding: 0 7px; }.play-button { padding: 0 9px !important; }.play-button span:last-child { display: none; }.speed-control { min-width: 88px; gap: 4px; }.speed-control span { display: none; }.speed-control input { max-width: none; }.text-icon-button span { display: none; }.desktop-only { display: none; }.scene-credit { display: none; }.motion-note { bottom: 66px; left: 15px; }.data-panel .data-heading { margin-bottom: 13px; }.metric-grid { gap: 7px; }.metric-card { min-height: 86px; }.validation-card { margin-top: 13px; }.science-panel { margin-top: 12px; }.footerbar { height: auto; min-height: 28px; padding: 7px 12px; font-size: 6px; }.footerbar span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
