:root {
  color-scheme: dark;
  --bg: #080e16;
  --panel: #101a25;
  --panel-2: #0d1620;
  --line: rgba(167, 195, 207, .13);
  --line-strong: rgba(167, 195, 207, .22);
  --text: #e7f0f2;
  --muted: #93a8b1;
  --dim: #657b85;
  --accent: #73d8c4;
  --accent-strong: #9aebd9;
  --warm: #e9c58a;
  --radius: 14px;
  font-family: 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); }
body { min-height: 100vh; overflow-x: hidden; }
body.embed-mode { height: 100vh; height: 100dvh; overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { width: 100%; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 20% -15%, rgba(40, 93, 100, .16), transparent 45%), var(--bg); }
body.embed-mode .app-shell { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.topbar { height: 72px; flex: 0 0 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(8, 14, 22, .92); }
.brand-lockup { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(115, 216, 196, .55); border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-28deg); }
.brand-mark span { width: 3px; border-radius: 4px; background: var(--accent); display: block; }
.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; letter-spacing: .17em; color: #7f9aa4; font-weight: 750; }
.eyebrow span { color: var(--accent); padding: 0 3px; }
.brand-text h1 { font-size: 19px; line-height: 1.1; letter-spacing: -.035em; margin: 4px 0 0; font-weight: 650; }
.topbar-meta { display: flex; align-items: center; gap: 10px; color: #93a8b1; font-size: 9px; letter-spacing: .14em; font-weight: 750; white-space: nowrap; }
.live-indicator, .time-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(115, 216, 196, .6); }
.seed-label { margin-left: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; color: #728b96; font-size: 9px; letter-spacing: .1em; }
.workspace { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 386px; gap: 14px; padding: 14px; }
.exhibit-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(20, 35, 46, .92), rgba(10, 18, 27, .98)); box-shadow: 0 16px 55px rgba(0, 0, 0, .18); }
.stage-topline { min-height: 67px; flex: 0 0 67px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid rgba(167, 195, 207, .08); }
.stage-topline h2 { font-size: 15px; letter-spacing: -.02em; margin: 4px 0 0; font-weight: 600; }
.time-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(4, 11, 18, .42); border-radius: 7px; padding: 7px 10px; color: #c2d5d9; font-size: 11px; font-variant-numeric: tabular-nums; }
.canvas-frame { flex: 1 1 auto; min-height: 180px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 45% 55%, rgba(25, 70, 79, .12), transparent 55%), #09121c; }
#scene { display: block; width: 100%; height: 100%; }
.canvas-corner-label { position: absolute; left: 16px; bottom: 12px; pointer-events: none; font-size: 8px; letter-spacing: .14em; color: rgba(158, 186, 193, .62); font-weight: 700; }
.canvas-corner-label span { color: var(--accent); padding: 0 3px; }
.process-rail { flex: 0 0 57px; display: flex; align-items: center; justify-content: center; gap: clamp(9px, 2vw, 28px); border-top: 1px solid rgba(167, 195, 207, .08); background: rgba(5, 11, 17, .24); }
.process-step { display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: center; }
.process-step span { grid-row: span 2; color: var(--accent); font-size: 9px; font-weight: 800; }
.process-step b { color: #c6d7da; font-size: 10px; font-weight: 650; }
.process-step small { color: #718790; font-size: 8px; margin-top: 2px; }
.process-link { width: clamp(12px, 3vw, 38px); height: 1px; background: linear-gradient(90deg, rgba(115, 216, 196, .45), rgba(115, 216, 196, .05)); }
.control-panel { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(17, 28, 40, .98), rgba(11, 19, 28, .98)); scrollbar-width: thin; scrollbar-color: rgba(115, 216, 196, .25) transparent; }
.control-panel::-webkit-scrollbar { width: 5px; }
.control-panel::-webkit-scrollbar-thumb { background: rgba(115, 216, 196, .25); border-radius: 10px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 15px; font-weight: 620; letter-spacing: -.02em; }
.run-state { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .11em; border: 1px solid rgba(115, 216, 196, .2); background: rgba(115, 216, 196, .06); border-radius: 5px; padding: 6px 7px; white-space: nowrap; }
.run-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.run-state.paused { color: #e2bd7b; border-color: rgba(226, 189, 123, .22); background: rgba(226, 189, 123, .06); }
.run-state.blocked { color: #d98d83; border-color: rgba(217, 141, 131, .22); background: rgba(217, 141, 131, .06); }
.readout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 17px; }
.readout-card { min-width: 0; padding: 10px 9px 9px; border: 1px solid rgba(167, 195, 207, .1); border-radius: 8px; background: rgba(4, 11, 18, .36); }
.readout-label { color: #7f98a2; font-size: 7px; letter-spacing: .12em; font-weight: 800; white-space: nowrap; }
.readout-value { margin-top: 7px; color: #e9f4f2; font-size: clamp(15px, 1.5vw, 19px); font-weight: 620; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout-value small { font-size: 8px; color: #8ea7ae; font-weight: 600; letter-spacing: 0; }
.readout-note { margin-top: 3px; color: #647b85; font-size: 7px; white-space: nowrap; }
.control-section, .preset-section { padding-top: 12px; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: center; justify-content: space-between; color: #c6d6d9; font-size: 10px; font-weight: 700; margin-bottom: 12px; }
.section-index { color: #68818a; font-size: 8px; letter-spacing: .13em; }
.slider-control { margin-bottom: 12px; }
.slider-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.slider-heading label { color: #b8cbd0; font-size: 10px; font-weight: 560; }
.slider-heading output { color: var(--accent-strong); font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { appearance: none; width: 100%; height: 14px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--accent); }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, rgba(115, 216, 196, .58), rgba(115, 216, 196, .13)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, rgba(115, 216, 196, .58), rgba(115, 216, 196, .13)); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: var(--accent); border: 2px solid #10242a; box-shadow: 0 0 0 2px rgba(115, 216, 196, .2), 0 0 9px rgba(115, 216, 196, .28); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #10242a; box-shadow: 0 0 0 2px rgba(115, 216, 196, .2); }
input[type="range"]:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.range-limits { display: flex; justify-content: space-between; color: #607780; font-size: 7px; margin-top: 1px; }
.preset-section { margin-top: 2px; }
.preset-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 13px; }
.preset-button { min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 6px; padding: 7px 6px; border: 1px solid rgba(167, 195, 207, .12); border-radius: 7px; background: rgba(4, 11, 18, .3); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.preset-button:hover { border-color: rgba(115, 216, 196, .35); transform: translateY(-1px); }
.preset-button.active { border-color: rgba(115, 216, 196, .55); background: rgba(115, 216, 196, .08); }
.preset-button b { display: block; color: #c7d8da; font-size: 8px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.preset-button small { display: block; color: #70868f; font-size: 7px; margin-top: 3px; white-space: nowrap; }
.preset-icon { flex: 0 0 17px; width: 17px; height: 17px; display: block; position: relative; border: 1px solid rgba(115, 216, 196, .45); border-radius: 50%; }
.rings-icon::before, .rings-icon::after { content: ""; position: absolute; border: 1px solid var(--accent); border-radius: 50%; inset: 3px; }
.rings-icon::after { inset: 6px; }
.quiet-icon { border-style: dashed; opacity: .7; }
.quiet-icon::after { content: ""; position: absolute; height: 1px; width: 10px; left: 3px; top: 7px; background: #a5b5b8; transform: rotate(-35deg); }
.dense-icon::before, .dense-icon::after { content: ""; position: absolute; left: 3px; right: 3px; height: 1px; background: var(--accent); top: 5px; box-shadow: 0 3px 0 var(--accent), 0 6px 0 var(--accent); }
.transport-row { display: grid; grid-template-columns: 1.15fr .8fr .6fr 1.2fr; gap: 6px; margin-bottom: 10px; }
.transport-button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 1px solid rgba(167, 195, 207, .14); border-radius: 6px; background: rgba(4, 11, 18, .38); color: #aec2c7; font-size: 9px; font-weight: 650; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.transport-button:hover { border-color: rgba(115, 216, 196, .38); background: rgba(115, 216, 196, .06); }
.transport-button:active { transform: translateY(1px); }
.transport-button.primary { background: rgba(115, 216, 196, .13); color: var(--accent-strong); border-color: rgba(115, 216, 196, .38); }
.transport-button.icon-only { font-size: 18px; line-height: 1; }
.transport-button.screenshot-button { font-size: 8px; }
.pause-glyph { font-size: 11px; }
.utility-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 11px; }
.quality-switch { display: flex; align-items: center; gap: 3px; color: #718993; font-size: 7px; letter-spacing: .1em; font-weight: 800; }
.quality-switch span { margin-right: 4px; }
.quality-switch button { padding: 4px 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #7e959d; font-size: 8px; cursor: pointer; }
.quality-switch button[aria-pressed="true"] { color: var(--accent-strong); border-color: rgba(115, 216, 196, .28); background: rgba(115, 216, 196, .07); }
.keyboard-hint { color: #627a83; font-size: 7px; white-space: nowrap; }
kbd { padding: 2px 4px; border: 1px solid rgba(167, 195, 207, .18); border-radius: 3px; color: #9eb2b7; font-size: 7px; background: rgba(4, 11, 18, .5); }
.keyboard-hint span { padding: 0 3px; }
.caption-card { padding: 10px 11px; border: 1px solid rgba(115, 216, 196, .17); border-radius: 7px; background: linear-gradient(110deg, rgba(115, 216, 196, .07), rgba(115, 216, 196, .015)); margin-bottom: 10px; }
.caption-heading { display: flex; align-items: center; gap: 6px; color: var(--accent-strong); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.caption-mark { font-size: 11px; }
.caption-card p { margin: 6px 0 0; color: #a6bbc0; font-size: 9px; line-height: 1.45; }
.science-panel { border-top: 1px solid var(--line); padding-top: 10px; }
.science-panel summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: #c6d6d9; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-panel summary::after { content: "+"; color: var(--accent); font-size: 15px; font-weight: 400; }
.science-panel[open] summary::after { content: "−"; }
.summary-hint { margin-left: auto; margin-right: 9px; color: #718790; font-size: 7px; letter-spacing: 0; font-weight: 500; }
.science-content { padding-top: 10px; }
.science-intro { color: #9db2b8; font-size: 9px; line-height: 1.5; margin: 0 0 10px; }
.equation-block { padding: 8px 9px; margin: 6px 0; border-left: 2px solid rgba(115, 216, 196, .55); background: rgba(4, 11, 18, .34); }
.equation-label, .check-title { display: block; color: #7d9a9f; font-size: 7px; font-weight: 800; letter-spacing: .1em; margin-bottom: 5px; }
.equation-block code { display: block; color: #d5e4e2; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; line-height: 1.65; white-space: normal; }
.check-block { padding: 9px; margin-top: 8px; border: 1px solid rgba(115, 216, 196, .16); border-radius: 6px; }
.check-block p { margin: 0; color: #a9bdc1; font-size: 8px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.simplification-note { color: #82989f; font-size: 8px; line-height: 1.55; margin: 9px 0; }
.simplification-note b { color: #b7c9cb; }
.disclaimer { color: #72868d; font-size: 8px; line-height: 1.45; margin: 9px 0 2px; }
.site-footer { flex: 0 0 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; color: #536b75; font-size: 7px; letter-spacing: .1em; }
.site-footer i { color: var(--accent); font-style: normal; padding: 0 3px; }
.site-footer span:last-child { letter-spacing: 0; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 350px; }
  .control-panel { padding: 13px; }
  .topbar { padding: 0 18px; }
}
@media (max-width: 700px) {
  body:not(.embed-mode) .app-shell { min-height: 100vh; }
  .topbar { height: 58px; flex-basis: 58px; padding: 0 13px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-text h1 { font-size: 16px; }
  .eyebrow { font-size: 7px; }
  .topbar-meta { gap: 6px; font-size: 7px; }
  .seed-label { display: none; }
  .workspace { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
  .exhibit-panel { flex: 0 0 39%; min-height: 220px; }
  .stage-topline { min-height: 49px; flex-basis: 49px; padding: 0 12px; }
  .stage-topline h2 { font-size: 12px; }
  .time-chip { font-size: 9px; padding: 5px 7px; }
  .canvas-frame { min-height: 135px; }
  .process-rail { flex-basis: 40px; gap: 10px; }
  .process-step { column-gap: 5px; }
  .process-step b { font-size: 8px; }
  .process-step small { font-size: 6px; }
  .process-link { width: 10px; }
  .control-panel { flex: 1 1 auto; min-height: 0; padding: 12px; }
  .panel-heading { margin-bottom: 10px; }
  .panel-heading h2 { font-size: 13px; }
  .readout-grid { gap: 5px; margin-bottom: 12px; }
  .readout-card { padding: 8px 6px 7px; }
  .readout-label { font-size: 6px; letter-spacing: .08em; }
  .readout-value { font-size: 16px; margin-top: 5px; }
  .readout-value small { font-size: 7px; }
  .readout-note { font-size: 6px; }
  .control-section, .preset-section { padding-top: 9px; }
  .section-title { margin-bottom: 9px; font-size: 9px; }
  .slider-control { margin-bottom: 9px; }
  .slider-heading label { font-size: 9px; }
  .slider-heading output { font-size: 8px; }
  .preset-row { gap: 5px; }
  .preset-button { min-height: 43px; gap: 4px; padding: 5px 4px; }
  .preset-button b { font-size: 7px; }
  .preset-button small { font-size: 6px; }
  .preset-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .transport-row { gap: 5px; }
  .transport-button { min-height: 32px; font-size: 8px; padding: 0 5px; }
  .screenshot-button { gap: 4px; }
  .utility-row { margin-bottom: 9px; }
  .caption-card { padding: 9px; }
  .caption-card p { font-size: 8px; }
  .site-footer { display: none; }
}
@media (max-width: 390px) {
  .topbar-meta { letter-spacing: .08em; }
  .process-rail { gap: 7px; }
  .process-link { width: 7px; }
  .keyboard-hint { font-size: 6px; }
  .transport-row { grid-template-columns: 1fr .75fr .55fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.provenance-chip { display: inline-block; margin-left: 6px; padding: 3px 5px; border: 1px solid rgba(115, 216, 196, .18); border-radius: 4px; color: #83bdb3; font-size: 6px; letter-spacing: .09em; vertical-align: 1px; font-weight: 800; }
.run-state.paused, .run-state.blocked { color: #a4b9bd; border-color: rgba(167, 195, 207, .2); background: rgba(167, 195, 207, .05); }
