:root {
  color-scheme: dark;
  --bg: #070d18;
  --panel: #0d1725;
  --panel-2: #101d2d;
  --line: rgba(147, 177, 198, .13);
  --line-strong: rgba(147, 177, 198, .23);
  --text: #e7eef4;
  --muted: #91a4b4;
  --dim: #617789;
  --cyan: #6bd2df;
  --cyan-soft: rgba(65, 187, 203, .13);
  --amber: #d9a56a;
  --green: #8ed7b7;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 42% 0%, #102034 0, #070d18 48%, #060b13 100%); }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { max-width: 1720px; min-height: 100vh; margin: 0 auto; padding: 0 28px 16px; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup, .topbar-right { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 30px; height: 30px; position: relative; border: 1px solid rgba(107,210,223,.5); border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 2px; background: linear-gradient(145deg, rgba(64,176,193,.17), rgba(217,165,106,.07)); }
.brand-mark span { display: block; width: 3px; border-radius: 4px; background: var(--cyan); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .55; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 12px; opacity: .75; }
.eyebrow { font-size: 9px; font-weight: 750; letter-spacing: .16em; color: #8298aa; line-height: 1.5; }
.eyebrow span { color: #4b7287; padding: 0 3px; }
.brand-title { font-size: 12px; font-weight: 620; letter-spacing: .025em; color: #d5e0e9; margin-top: 1px; }
.live-indicator { display: flex; align-items: center; gap: 8px; color: #a7c9c8; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.live-indicator i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #7ed5ac; box-shadow: 0 0 12px rgba(126,213,172,.8); }
.seed-tag { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--dim); font-size: 9px; letter-spacing: .12em; }
.seed-tag b { color: #c4d1dc; font-weight: 700; margin-left: 5px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; padding-top: 22px; align-items: start; }
.exhibit-column { min-width: 0; }
.exhibit-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 1px 2px 15px; }
.eyebrow.cyan { color: #6cb8c5; }
h1 { margin: 4px 0 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.05; font-weight: 680; }
.subtitle { margin: 6px 0 0; color: #8da3b4; font-size: 13px; letter-spacing: .005em; }
.view-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 8px; font-weight: 760; letter-spacing: .14em; color: #a4b6c2; background: rgba(13,23,37,.56); }
.view-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(107,210,223,.65); }
.scene-frame { border: 1px solid rgba(125,165,188,.18); border-radius: 12px; overflow: hidden; background: #08111d; box-shadow: 0 18px 50px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.015); }
.scene-root { height: min(54vw, 540px); min-height: 390px; max-height: 560px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 48%, #13293a 0, #0a1725 50%, #07111d 100%); }
.simulation-canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-top-left, .scene-top-right { position: absolute; z-index: 2; top: 16px; display: flex; align-items: center; gap: 9px; color: #8da9b9; font-size: 8px; font-weight: 750; letter-spacing: .14em; pointer-events: none; }
.scene-top-left { left: 18px; }
.scene-top-right { right: 18px; color: #8299a8; }
.scene-index { color: var(--cyan); font-size: 10px; }
.scale-mark { display: inline-block; width: 18px; height: 8px; border-left: 1px solid #7fa6b5; border-right: 1px solid #7fa6b5; border-bottom: 1px solid #7fa6b5; opacity: .7; }
.scene-callout { position: absolute; z-index: 2; display: flex; align-items: center; gap: 6px; color: rgba(187,208,216,.65); font-size: 7px; font-weight: 760; letter-spacing: .13em; pointer-events: none; }
.callout-line { display: block; width: 22px; height: 1px; background: rgba(107,210,223,.5); }
.callout-source { left: 22%; top: 45%; transform: translateY(-20px); }
.callout-front { right: 13%; top: 36%; }
.callout-bands { left: 11%; bottom: 29%; }
.callout-bands .callout-line { background: rgba(217,165,106,.68); }
.scene-legend { position: absolute; z-index: 2; left: 18px; bottom: 17px; display: grid; gap: 7px; pointer-events: none; }
.scene-legend div { display: flex; align-items: center; gap: 7px; color: #94a9b8; font-size: 8px; letter-spacing: .025em; }
.scene-legend i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.legend-cyan { background: #6bd2df; box-shadow: 0 0 8px rgba(107,210,223,.55); }
.legend-amber { background: #d5a15e; }
.legend-white { background: #c2d2d7; }
.scene-hint { position: absolute; z-index: 2; right: 17px; bottom: 17px; color: #738a9b; font-size: 7px; font-weight: 740; letter-spacing: .12em; pointer-events: none; }
.scene-hint span { margin: 0 5px; color: #3d667b; }
.mouse-icon { font-size: 12px; color: #8db5c3; }
.scene-bottomline { height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-top: 1px solid rgba(147,177,198,.1); background: #0b1624; color: #6f8597; font-size: 8px; letter-spacing: .035em; }
.scene-bottomline b { color: #a8bbc7; font-size: 7px; letter-spacing: .1em; margin-right: 5px; }
.context-overlay, .scene-error { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: rgba(5,12,21,.9); color: #dce7ee; }
.context-overlay[hidden], .scene-error[hidden] { display: none; }
.context-overlay strong, .scene-error strong { font-size: 14px; }
.context-overlay span, .scene-error span { max-width: 320px; color: #91a4b4; font-size: 11px; line-height: 1.6; }
.context-symbol { color: var(--cyan); font-size: 30px; }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.readout-card { min-width: 0; padding: 12px 13px 10px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(145deg, rgba(15,28,44,.96), rgba(10,19,31,.96)); }
.readout-label { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #8297a8; font-size: 7px; font-weight: 760; letter-spacing: .105em; white-space: nowrap; }
.readout-label span { color: #648f99; font-size: 6px; letter-spacing: .08em; }
.readout-value { margin-top: 9px; color: #e3edf2; font-size: 25px; font-weight: 620; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout-value small { color: #8ea5b4; font-size: 11px; font-weight: 540; letter-spacing: 0; }
.readout-foot { margin-top: 4px; color: #607789; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.science-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12,22,35,.8); overflow: hidden; }
.science-panel summary { min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 10px 15px; cursor: pointer; list-style: none; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(107,210,223,.25); border-radius: 8px; color: var(--cyan); background: rgba(107,210,223,.08); font-size: 16px; }
.science-panel summary b { display: block; color: #dce6ed; font-size: 11px; font-weight: 650; }
.science-panel summary small { display: block; margin-top: 2px; color: #72889a; font-size: 9px; }
.summary-status { margin-left: auto; color: #6c8797; font-size: 8px; font-weight: 760; letter-spacing: .12em; }
.science-panel[open] .summary-status { color: var(--cyan); }
.science-content { padding: 0 15px 15px; border-top: 1px solid var(--line); }
.science-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 14px; }
.science-grid article { padding: 12px; border: 1px solid rgba(147,177,198,.1); border-radius: 8px; background: rgba(17,31,47,.58); }
.science-kicker { color: #7c95a7; font-size: 7px; font-weight: 760; letter-spacing: .13em; }
.tag-textbook, .tag-illustrative { display: inline-block; margin-left: 4px; color: #6ec6d1; font-size: 6px; }
.tag-illustrative { color: #d9a56a; }
.science-grid h3, .validation-box h3 { margin: 7px 0 8px; color: #dce7ed; font-size: 12px; font-weight: 630; }
.equation { padding: 9px 10px; border-radius: 5px; background: #091521; color: #b5dce0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.science-grid p, .validation-box p { margin: 8px 0 0; color: #879cab; font-size: 9px; line-height: 1.65; }
.assumption-strip { margin-top: 12px; padding: 11px 12px; border-left: 2px solid rgba(217,165,106,.65); background: rgba(217,165,106,.055); }
.assumption-strip b { color: #c9a77f; font-size: 7px; letter-spacing: .13em; }
.assumption-strip p { margin: 5px 0 0; color: #8da0ae; font-size: 9px; line-height: 1.6; }
.validation-box { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 18px; align-items: center; margin-top: 12px; padding: 13px; border: 1px solid rgba(107,210,223,.18); border-radius: 8px; background: rgba(44,121,133,.055); }
.validation-values { display: grid; gap: 7px; }
.validation-values div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.validation-values small { color: #718c9d; font-size: 7px; letter-spacing: .1em; }
.validation-values b { color: #c9e2e4; font-size: 10px; font-variant-numeric: tabular-nums; }
.validation-values i { color: #8099a8; font-size: 8px; font-style: normal; font-weight: 450; }
.control-column { min-width: 0; padding: 17px 16px 14px; border: 1px solid rgba(147,177,198,.15); border-radius: 12px; background: linear-gradient(160deg, rgba(15,27,42,.98), rgba(9,17,29,.98)); box-shadow: 0 18px 48px rgba(0,0,0,.16); }
.control-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.control-header h2 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.025em; font-weight: 640; }
.control-number { color: #38566b; font-size: 22px; font-weight: 300; }
.preset-block { padding: 14px 0 13px; border-bottom: 1px solid var(--line); }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8ba0af; font-size: 8px; font-weight: 780; letter-spacing: .13em; }
.section-label small { color: #536c7e; font-size: 7px; letter-spacing: .1em; }
.preset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.preset-btn { min-width: 0; min-height: 62px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 8px 8px 7px; border: 1px solid var(--line); border-radius: 7px; background: rgba(7,15,25,.62); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.preset-btn:hover { border-color: rgba(107,210,223,.38); }
.preset-btn.active { border-color: rgba(107,210,223,.48); background: rgba(55,142,153,.105); }
.preset-btn b { color: #cbd8e0; font-size: 9px; font-weight: 650; }
.preset-btn small { color: #72899a; font-size: 7px; line-height: 1.3; }
.preset-mark { width: 20px; height: 4px; display: block; border-radius: 4px; margin-bottom: 3px; background: #8dc7c7; }
.mark-fine { background: repeating-linear-gradient(90deg,#d7ad72 0 2px,transparent 2px 4px); }
.mark-broad { height: 5px; background: linear-gradient(90deg,#b46f45 0 25%,#d8aa69 25% 72%,#a96b43 72%); }
.control-section { padding: 13px 0 12px; border-bottom: 1px solid var(--line); }
.slider-control { margin-top: 12px; }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.slider-head label { color: #c0cdd6; font-size: 10px; font-weight: 540; }
.slider-head output { color: #80c8d0; font-size: 9px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { display: block; width: 100%; height: 15px; margin: 6px 0 0; background: transparent; cursor: pointer; accent-color: #67c4d0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg,rgba(107,210,223,.65),rgba(87,126,146,.34)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg,rgba(107,210,223,.65),rgba(87,126,146,.34)); }
input[type="range"]::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4px; border: 2px solid #c3f0ef; border-radius: 50%; background: #398b99; box-shadow: 0 0 0 3px rgba(78,184,196,.12); -webkit-appearance: none; }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #c3f0ef; border-radius: 50%; background: #398b99; box-shadow: 0 0 0 3px rgba(78,184,196,.12); }
input[type="range"]:focus-visible { outline: 2px solid rgba(107,210,223,.65); outline-offset: 4px; border-radius: 3px; }
.range-labels { display: flex; justify-content: space-between; color: #5e7587; font-size: 7px; margin-top: 1px; }
.time-section { padding-bottom: 13px; }
.transport-row { display: grid; grid-template-columns: 1.15fr .9fr .9fr; gap: 6px; margin-top: 11px; }
.transport-row button { min-height: 35px; border-radius: 6px; font-size: 8px; font-weight: 760; letter-spacing: .09em; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.transport-row button:active, .utility-btn:active { transform: translateY(1px); }
.transport-primary { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(91,193,205,.48); background: linear-gradient(135deg,#1d6d7a,#164854); color: #e4fbfb; }
.transport-primary:hover { background: linear-gradient(135deg,#278696,#1b5865); }
.transport-secondary { border: 1px solid var(--line-strong); background: rgba(7,15,25,.62); color: #9cb0be; }
.transport-secondary:hover { border-color: rgba(107,210,223,.35); color: #d3e2e9; }
.transport-secondary span { color: var(--cyan); margin-left: 3px; font-size: 11px; }
.utility-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.utility-btn { min-height: 35px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 6px; background: rgba(7,15,25,.52); color: #91a6b5; font-size: 8px; cursor: pointer; transition: border-color .16s ease,color .16s ease; }
.utility-btn:hover { border-color: rgba(107,210,223,.36); color: #d2e2e8; }
.utility-btn span { color: var(--cyan); margin-right: 3px; font-size: 12px; vertical-align: -1px; }
.live-data { padding: 12px 0 8px; }
.live-data-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: #8ea2b1; font-size: 9px; }
.live-data-row b { color: #cbdde2; font-size: 9px; font-weight: 620; font-variant-numeric: tabular-nums; }
.live-data-row i { color: #8096a4; font-size: 8px; font-style: normal; font-weight: 450; }
.control-footnote { display: flex; align-items: flex-start; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); color: #667e8f; font-size: 8px; line-height: 1.5; }
.footnote-dot { flex: 0 0 auto; width: 5px; height: 5px; margin-top: 3px; border-radius: 50%; background: #c69b63; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 11px; border-top: 1px solid var(--line); color: #5d7486; font-size: 7px; letter-spacing: .11em; }
.footer span:nth-child(2) { color: #6e8290; font-size: 8px; letter-spacing: .015em; }
.footer b { color: var(--cyan); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translate(-50%, 16px); padding: 10px 14px; border: 1px solid rgba(107,210,223,.25); border-radius: 8px; background: rgba(12,27,40,.96); color: #d7e9ec; font-size: 10px; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
button:focus-visible, summary:focus-visible { outline: 2px solid rgba(107,210,223,.7); outline-offset: 3px; }
@media (max-width: 1100px) {
  .app-shell { padding: 0 18px 14px; }
  .workspace { grid-template-columns: minmax(0,1fr) 320px; gap: 14px; }
  .control-column { padding: 14px 12px; }
  .scene-root { height: 48vw; min-height: 360px; }
  .readout-card { padding: 10px; }
  .readout-value { font-size: 22px; }
  .readout-label { font-size: 6px; }
}
@media (max-width: 820px) {
  .workspace { grid-template-columns: minmax(0,1fr); }
  .scene-root { height: min(68vw,520px); min-height: 340px; }
  .control-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; }
  .control-header, .preset-block, .utility-row, .live-data, .control-footnote { grid-column: 1 / -1; }
  .control-section { border-bottom: 1px solid var(--line); }
  .time-section { border-bottom: 0; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .app-shell { padding: 0 10px 12px; }
  .topbar { height: 56px; }
  .brand-mark { width: 27px; height: 27px; }
  .brand-title { font-size: 10px; }
  .eyebrow { font-size: 8px; }
  .topbar-right { gap: 8px; }
  .live-indicator { font-size: 7px; gap: 5px; }
  .seed-tag { padding: 6px 7px; font-size: 7px; }
  .workspace { padding-top: 15px; gap: 12px; }
  .exhibit-heading { align-items: flex-start; margin: 0 2px 11px; }
  h1 { font-size: 29px; }
  .subtitle { font-size: 11px; }
  .view-chip { margin-top: 20px; padding: 6px 7px; font-size: 6px; letter-spacing: .08em; }
  .scene-frame { border-radius: 9px; }
  .scene-root { height: 390px; min-height: 0; max-height: 440px; }
  .scene-top-left { top: 11px; left: 11px; font-size: 7px; }
  .scene-top-right { top: 11px; right: 11px; font-size: 6px; }
  .scene-callout { font-size: 6px; }
  .callout-source { left: 10%; top: 40%; }
  .callout-front { right: 7%; top: 31%; }
  .callout-bands { left: 7%; bottom: 33%; }
  .scene-legend { left: 11px; bottom: 12px; gap: 5px; }
  .scene-legend div { font-size: 7px; }
  .scene-hint { right: 10px; bottom: 13px; font-size: 6px; }
  .scene-bottomline { height: auto; min-height: 29px; padding: 7px 9px; flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; font-size: 6px; }
  .scene-bottomline b { font-size: 6px; }
  .readout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 8px; }
  .readout-card { padding: 10px; }
  .readout-label { font-size: 7px; }
  .readout-value { margin-top: 7px; font-size: 23px; }
  .readout-foot { font-size: 7px; }
  .science-panel { margin-top: 9px; }
  .science-grid { grid-template-columns: minmax(0,1fr); }
  .validation-box { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .validation-values { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .validation-values div { display: block; }
  .validation-values b { display: block; margin-top: 4px; font-size: 9px; }
  .control-column { display: block; padding: 13px 12px; }
  .control-header h2 { font-size: 16px; }
  .preset-grid { gap: 5px; }
  .preset-btn { min-height: 58px; padding: 7px 6px; }
  .preset-btn b { font-size: 8px; }
  .preset-btn small { font-size: 6px; }
  .control-section { padding: 12px 0; }
  .slider-control { margin-top: 11px; }
  .slider-head label { font-size: 10px; }
  .slider-head output { font-size: 9px; }
  .transport-row button { min-height: 38px; }
  .utility-btn { font-size: 7px; }
  .footer { justify-content: center; text-align: center; gap: 7px 12px; }
  .footer span:nth-child(2) { flex-basis: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.embed-mode .topbar, .embed-mode .footer { display: none; }
.embed-mode .workspace { padding-top: 10px; }
.embed-mode .exhibit-heading { margin-top: 0; }
