:root {
  color-scheme: dark;
  --bg: #081216;
  --panel: #101d22;
  --panel-soft: #132329;
  --line: rgba(171, 206, 207, .12);
  --line-strong: rgba(171, 206, 207, .22);
  --text: #e5efec;
  --muted: #81999a;
  --faint: #536a6d;
  --teal: #76d8c6;
  --teal-bright: #9af0dc;
  --gold: #e2b978;
  --blue: #76b9d0;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; font-size: 13px; letter-spacing: .01em; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 72% 8%, rgba(37, 90, 91, .15), transparent 40%), var(--bg); }
.topbar { min-height: 78px; display: grid; grid-template-columns: 230px minmax(260px, 1fr) auto; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(7, 17, 21, .88); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .22em; }
.brand-mark { width: 25px; height: 25px; display: flex; align-items: end; gap: 3px; padding: 4px; border: 1px solid rgba(118,216,198,.42); border-radius: 7px; }
.brand-mark span { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--teal); }
.brand-mark span:nth-child(1) { height: 42%; opacity: .55; }.brand-mark span:nth-child(2) { height: 78%; }.brand-mark span:nth-child(3) { height: 58%; opacity: .78; }
.heading-block .eyebrow, .section-kicker, .stage-kicker { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.eyebrow i, .footer-note i { display: inline-block; width: 3px; height: 3px; margin: 0 7px 2px; border-radius: 50%; background: var(--faint); }
.heading-block h1 { margin: 5px 0 0; font-size: 19px; font-weight: 620; letter-spacing: -.025em; }
.top-status { display: flex; align-items: center; gap: 9px; color: #9cb7b2; font-size: 9px; font-weight: 750; letter-spacing: .12em; white-space: nowrap; }
.status-pulse, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px rgba(118,216,198,.6); }
.top-seed { margin-left: 13px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--faint); font-weight: 600; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 304px minmax(0, 1fr); gap: 18px; padding: 18px 20px 12px; }
.control-rail { min-height: 0; max-height: calc(100vh - 130px); overflow: auto; padding: 18px 17px 15px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, rgba(19,35,41,.97), rgba(12,25,30,.98)); scrollbar-width: thin; scrollbar-color: #31494c transparent; }
.rail-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.rail-heading h2 { margin: 5px 0 0; font-size: 16px; font-weight: 640; letter-spacing: -.02em; }
.live-dot { width: 6px; height: 6px; }
.control-section, .preset-section { padding-top: 15px; margin-top: 14px; border-top: 1px solid var(--line); }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: #d8e5e0; font-size: 11px; font-weight: 720; }
.section-index { color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.slider-control { display: block; margin: 0 0 15px; }
.control-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #b6c8c4; font-size: 10px; font-weight: 600; }
.control-label output { color: var(--teal-bright); font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 700; }
input[type="range"] { width: 100%; height: 15px; margin: 7px 0 0; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, rgba(118,216,198,.7), rgba(118,216,198,.18)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, rgba(118,216,198,.7), rgba(118,216,198,.18)); }
input[type="range"]::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4px; appearance: none; border: 2px solid #c5fff0; border-radius: 50%; background: #4fae9e; box-shadow: 0 0 0 3px rgba(118,216,198,.12); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #c5fff0; border-radius: 50%; background: #4fae9e; box-shadow: 0 0 0 3px rgba(118,216,198,.12); }
.range-ends { display: flex; justify-content: space-between; margin-top: -1px; color: #61797a; font-size: 8px; }
.preset-grid { display: grid; gap: 7px; }
.preset-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.preset-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.045); }
.preset-button.active { border-color: rgba(118,216,198,.48); background: rgba(62,139,129,.13); }
.preset-symbol { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: rgba(118,216,198,.1); color: var(--teal); font-size: 19px; }
.preset-button b { display: block; color: #d8e7e1; font-size: 10px; font-weight: 700; }
.preset-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.science-panel { margin-top: 16px; border-top: 1px solid var(--line); }
.science-panel summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 1px 3px; color: #dce8e2; font-size: 11px; font-weight: 700; cursor: pointer; list-style: none; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-panel summary > span:first-child { display: flex; align-items: center; gap: 8px; }
.science-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(226,185,120,.12); color: var(--gold); font-size: 14px; }
.summary-chevron { color: var(--muted); font-size: 17px; transition: transform .2s ease; }.science-panel[open] .summary-chevron { transform: rotate(180deg); }
.science-content { padding: 13px 1px 3px; }
.science-lead { margin: 0 0 14px; color: #9fb5af; font-size: 10px; line-height: 1.55; }
.science-step { display: grid; grid-template-columns: 23px 1fr; gap: 8px; margin: 12px 0; }
.science-step > span { color: var(--teal); font-size: 9px; font-weight: 800; }
.science-step b { display: block; margin-bottom: 4px; color: #dce8e2; font-size: 10px; }
.science-step code { display: inline-block; padding: 4px 6px; border: 1px solid rgba(118,216,198,.12); border-radius: 4px; background: rgba(118,216,198,.055); color: #9be0d1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.science-step p, .science-note p, .validation-card p { margin: 5px 0 0; color: #829a98; font-size: 9px; line-height: 1.5; }
.science-note { margin-top: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }
.science-note b { color: #d5e3dd; font-size: 9px; }
.validation-card { margin-top: 12px; padding: 11px; border: 1px solid rgba(226,185,120,.22); border-radius: 8px; background: rgba(226,185,120,.045); }
.validation-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #a58f6e; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.textbook-tag { padding: 3px 5px; border-radius: 4px; background: rgba(226,185,120,.15); color: var(--gold); }
.validation-card > b { color: #e8e4d9; font-size: 10px; }
.validation-values { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.validation-values span { color: #879b91; font-size: 7px; letter-spacing: .1em; }
.validation-values strong { display: block; margin-top: 4px; color: #e5e7dc; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.validation-diff { display: flex; justify-content: space-between; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(226,185,120,.13); color: #9caa9c; font-size: 8px; }
.validation-diff strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.exhibit { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.stage { position: relative; flex: 1; min-height: 430px; overflow: hidden; border: 1px solid rgba(153,197,191,.17); border-radius: 14px; background: radial-gradient(ellipse at 55% 30%, #183238 0%, #0c1b20 55%, #081216 100%); box-shadow: 0 18px 60px rgba(0,0,0,.24); isolation: isolate; }
#scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: none; }
.stage-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5,15,18,.48), transparent 27%, transparent 70%, rgba(5,15,18,.25)); }
.stage-header { position: absolute; z-index: 2; top: 19px; left: 21px; right: 21px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.stage-header h2 { margin: 5px 0 0; color: #e5f0e9; font-size: 15px; font-weight: 620; letter-spacing: -.025em; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.stage-kicker { color: #8ab8ad; font-size: 8px; }
.view-chip { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(174,222,211,.17); border-radius: 6px; background: rgba(7,18,22,.52); color: #b6d2c9; font-size: 8px; font-weight: 800; letter-spacing: .12em; backdrop-filter: blur(8px); }
.view-chip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 9px var(--teal); }
.stage-footer-left { position: absolute; z-index: 2; left: 21px; bottom: 17px; color: #9ab3ad; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-shadow: 0 2px 8px rgba(0,0,0,.8); pointer-events: none; }
.axis-arrow { color: var(--teal); font-size: 14px; vertical-align: -1px; }.footer-separator { margin: 0 7px; color: #516b69; }
.annotation { position: absolute; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid rgba(118,216,198,.25); border-radius: 5px; background: rgba(7,18,22,.72); color: #b8e9dc; font-size: 8px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; backdrop-filter: blur(7px); pointer-events: none; transform: translate(-50%, -50%); }
.annotation i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.annotation-gold { border-color: rgba(226,185,120,.32); color: #f0d1a1; }.annotation-gold i { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.annotation-muted { border-color: rgba(118,185,208,.25); color: #b5dce7; }.annotation-muted i { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.readout-grid { position: absolute; z-index: 2; top: 78px; right: 17px; display: grid; grid-template-columns: repeat(2, minmax(116px, 136px)); gap: 6px; pointer-events: none; }
.readout { min-height: 69px; padding: 10px 10px 8px; border: 1px solid rgba(165,207,198,.14); border-radius: 8px; background: rgba(7,19,23,.72); box-shadow: 0 7px 22px rgba(0,0,0,.12); backdrop-filter: blur(10px); }
.readout > span { display: block; color: #86a29d; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.readout strong { display: block; margin-top: 6px; color: #e0f0e9; font-size: 17px; font-weight: 620; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.readout strong em { color: #9bb6af; font-size: 9px; font-style: normal; letter-spacing: 0; }
.readout small { display: block; margin-top: 3px; color: #627f7c; font-size: 7px; font-weight: 750; letter-spacing: .1em; }
.webgl-message, .context-message { position: absolute; z-index: 6; inset: 50% auto auto 50%; width: min(360px, calc(100% - 40px)); padding: 18px; border: 1px solid rgba(226,185,120,.32); border-radius: 10px; background: rgba(9,20,24,.94); color: #e7e6da; text-align: center; transform: translate(-50%, -50%); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.webgl-message[hidden], .context-message[hidden] { display: none; }.webgl-message strong { display: block; margin-bottom: 7px; }.webgl-message span { color: #91a5a0; font-size: 10px; line-height: 1.5; }
.mechanism-strip { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 61px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(100deg, rgba(18,37,41,.9), rgba(13,28,33,.92)); }
.mechanism-strip > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mechanism-number { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid rgba(118,216,198,.22); border-radius: 7px; color: var(--teal); font-size: 9px; font-weight: 800; }
.mechanism-strip b { display: block; color: #9fc1b7; font-size: 8px; letter-spacing: .12em; }
.mechanism-strip small { display: block; margin-top: 4px; color: #809895; font-size: 9px; white-space: nowrap; }
.mechanism-arrow { color: #526f6d; font-size: 15px; }
.transport-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 65px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(14,29,34,.96); }
.transport-controls, .view-controls { display: flex; align-items: center; gap: 7px; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(255,255,255,.025); color: #b9d0c9; font-size: 15px; cursor: pointer; transition: .18s ease; }
.icon-button:hover, .text-button:hover { border-color: rgba(118,216,198,.42); background: rgba(118,216,198,.08); color: #e2fff5; }
.primary-control { border-color: rgba(118,216,198,.35); background: rgba(118,216,198,.14); color: var(--teal-bright); }
.control-divider { height: 28px; width: 1px; margin: 0 4px; background: var(--line-strong); }
.clock-block { min-width: 59px; }.clock-block small { display: block; color: #6e8985; font-size: 7px; font-weight: 800; letter-spacing: .12em; }.clock-block strong { display: block; margin-top: 4px; color: #d7e7e0; font-size: 12px; font-variant-numeric: tabular-nums; }
.speed-control { width: min(220px, 24%); }.speed-control label { display: flex; justify-content: space-between; color: #809995; font-size: 7px; font-weight: 800; letter-spacing: .12em; }.speed-control label strong { color: var(--teal); font-size: 9px; }.speed-control input { margin-top: 6px; }
.text-button { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #8ca5a0; font-size: 13px; cursor: pointer; }.text-button span { font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.mobile-readout-row { display: none; }
.footer-note { display: flex; justify-content: space-between; gap: 12px; padding: 8px 22px 12px; color: #52696b; font-size: 7px; font-weight: 750; letter-spacing: .13em; }
body.embed .topbar, body.embed .control-rail, body.embed .footer-note { display: none; }
body.embed .workspace { display: block; padding: 0; }.embed .exhibit { height: 100vh; gap: 0; }.embed .stage { border: 0; border-radius: 0; }.embed .mechanism-strip { display: none; }.embed .transport-bar { border-radius: 0; }
@media (max-width: 1050px) {
  .topbar { grid-template-columns: 190px 1fr auto; padding: 0 18px; gap: 15px; }.workspace { grid-template-columns: 280px minmax(0,1fr); padding: 14px; gap: 12px; }.control-rail { padding: 15px 13px; }.readout-grid { grid-template-columns: repeat(2, 116px); right: 12px; top: 76px; }.readout { min-height: 64px; padding: 8px; }.readout strong { font-size: 15px; }.mechanism-strip { padding: 8px 12px; }.mechanism-strip small { font-size: 8px; }.transport-bar { gap: 8px; padding: 8px; }.text-button { padding: 6px; }
}
@media (max-width: 760px) {
  .app-shell { min-height: 100dvh; }
  .topbar { min-height: 66px; grid-template-columns: auto 1fr; padding: 0 14px; gap: 12px; }
  .brand { font-size: 9px; }.brand small { font-size: 7px; }.brand-mark { width: 23px; height: 23px; }
  .heading-block .eyebrow { font-size: 7px; }.heading-block h1 { font-size: 15px; }
  .top-status { display: none; }
  .workspace { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
  .exhibit { order: 0; gap: 8px; }
  .stage { flex: none; height: min(55vh, 460px); min-height: 340px; border-radius: 11px; }
  .stage-header { top: 13px; left: 13px; right: 13px; }.stage-header h2 { font-size: 12px; }.stage-kicker { font-size: 7px; }.view-chip { padding: 6px; font-size: 7px; }
  .readout-grid { top: 62px; right: 9px; grid-template-columns: repeat(2, 104px); gap: 5px; }
  .readout { min-height: 57px; padding: 7px; }.readout > span { font-size: 6px; }.readout strong { margin-top: 4px; font-size: 14px; }.readout small { font-size: 6px; }
  .annotation { font-size: 7px; padding: 4px 5px; }
  .stage-footer-left { left: 12px; bottom: 11px; font-size: 7px; }
  .mechanism-strip { min-height: 54px; gap: 5px; padding: 7px; }.mechanism-strip > div { gap: 6px; }.mechanism-number { width: 21px; height: 21px; flex-basis: 21px; font-size: 8px; }.mechanism-strip b { font-size: 7px; }.mechanism-strip small { font-size: 7px; white-space: normal; line-height: 1.2; }.mechanism-arrow { font-size: 11px; }
  .transport-bar { min-height: 58px; gap: 6px; padding: 7px; }.transport-controls, .view-controls { gap: 4px; }.icon-button { width: 29px; height: 29px; }.clock-block { min-width: 48px; }.clock-block small { font-size: 6px; }.clock-block strong { font-size: 11px; }.speed-control { width: 95px; }.speed-control label { font-size: 6px; }.speed-control label strong { font-size: 8px; }.text-button { padding: 5px; font-size: 11px; }.text-button span { display: none; }
  .mobile-readout-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(18,35,40,.78); color: #809895; font-size: 7px; font-weight: 800; letter-spacing: .08em; }.mobile-readout-row strong { display: block; margin-top: 4px; color: #dcebe4; font-size: 11px; letter-spacing: 0; }
  .control-rail { order: 1; max-height: none; overflow: visible; padding: 14px; }
  .rail-heading { margin-bottom: 9px; }.control-section, .preset-section { margin-top: 11px; padding-top: 12px; }.slider-control { margin-bottom: 13px; }
  .footer-note { padding: 8px 12px 11px; font-size: 6px; }
}
@media (max-width: 390px) {
  .topbar { grid-template-columns: 1fr auto; }.brand { gap: 7px; letter-spacing: .1em; }.heading-block { justify-self: end; }.heading-block h1 { font-size: 13px; }.heading-block .eyebrow { font-size: 6px; }
  .stage { height: 355px; min-height: 355px; }.readout-grid { grid-template-columns: repeat(2, 96px); }.readout { min-height: 53px; }.readout strong { font-size: 13px; }
  .mechanism-strip small { font-size: 6px; }.mechanism-strip > div { gap: 4px; }.mechanism-number { width: 19px; height: 19px; flex-basis: 19px; }
  .speed-control { width: 77px; }.transport-controls { gap: 3px; }.icon-button { width: 26px; height: 28px; }.text-button { padding: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
