:root {
  color-scheme: dark;
  --bg: #080e18;
  --panel: #0d1724;
  --panel-2: #101d2b;
  --line: rgba(163, 190, 213, .13);
  --line-strong: rgba(163, 190, 213, .22);
  --text: #edf4f5;
  --muted: #8ea1ad;
  --muted-2: #637785;
  --cyan: #67d7d2;
  --cyan-2: #2caaa9;
  --amber: #e4b777;
  --violet: #a995d8;
  --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; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; max-width: 1800px; margin: 0 auto; padding: 0 28px 16px; }
.topbar { height: 68px; 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; position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid rgba(103,215,210,.42); border-radius: 8px; transform: rotate(45deg); }
.brand-mark span { width: 3px; border-radius: 3px; background: var(--cyan); transform: rotate(-45deg); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .5; }.brand-mark span:nth-child(2) { height: 14px; }.brand-mark span:nth-child(3) { height: 19px; opacity: .7; }
.eyebrow, .micro-label, .section-label { font-size: 9px; letter-spacing: .16em; color: #8ca5b2; font-weight: 750; }
.eyebrow span { color: #4e6572; padding: 0 4px; }
.brand-sub { margin-top: 4px; font-size: 8px; letter-spacing: .15em; color: #617785; }
.topbar-right { display: flex; align-items: center; gap: 24px; color: #7f939f; font-size: 9px; letter-spacing: .11em; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; }
.live-indicator.paused i { background: #e4b777; box-shadow: 0 0 8px rgba(228,183,119,.5); }.live-indicator i, .footer-dot, .pulse-ring { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #6ed9c5; box-shadow: 0 0 12px rgba(110,217,197,.6); }
.seed-label b { color: #c2d2d7; font-weight: 650; margin-left: 5px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; padding-top: 18px; align-items: start; }
.stage-column { min-width: 0; }
.stage-frame { height: min(48vw, calc(100vh - 280px)); min-height: 390px; max-height: 590px; position: relative; overflow: hidden; border: 1px solid rgba(146,177,197,.16); border-radius: 14px; background: radial-gradient(ellipse at 52% 40%, #132738 0%, #0a1522 48%, #080f19 100%); isolation: isolate; }
.scene-mount { position: absolute; inset: 0; z-index: 0; }
.scene-mount canvas { width: 100%; height: 100%; display: block; outline: none; touch-action: pan-y; }
.stage-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(7,14,23,.65), transparent 35%, transparent 72%, rgba(7,14,23,.22)), linear-gradient(0deg, rgba(7,14,23,.42), transparent 26%, transparent 78%, rgba(7,14,23,.16)); }
.stage-heading { position: absolute; z-index: 2; left: 28px; top: 25px; pointer-events: none; }
.stage-heading h1 { margin: 7px 0 4px; font-size: clamp(28px, 3.1vw, 42px); line-height: 1; letter-spacing: -.055em; font-weight: 560; }
.stage-heading h1 em { color: var(--amber); font-style: normal; font-weight: 420; }
.stage-heading p { color: #91a6b1; font-size: 11px; margin: 9px 0 0; letter-spacing: .015em; }
.scene-tag { position: absolute; z-index: 2; font-size: 8px; letter-spacing: .12em; color: #a7bdc5; font-weight: 700; padding: 7px 9px; border: 1px solid rgba(166,198,211,.13); background: rgba(7,17,28,.55); border-radius: 6px; backdrop-filter: blur(8px); pointer-events: none; }
.tag-top { top: 145px; left: 26px; }.tag-right { right: 23px; top: 48%; }.tag-bottom { bottom: 76px; left: 26px; }
.tag-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }.tag-dot.cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }.tag-dot.amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }.tag-dot.violet { background: var(--violet); margin-left: 6px; }
.axis-note { position: absolute; z-index: 2; left: 28px; bottom: 29px; color: #718996; font-size: 8px; letter-spacing: .13em; display: flex; align-items: center; gap: 8px; pointer-events: none; }.axis-line { display: inline-block; width: 30px; height: 1px; background: #5b7d8c; }
.scene-status { position: absolute; z-index: 3; top: 16px; right: 18px; font-size: 8px; letter-spacing: .1em; color: #6e8a99; }
.context-lost { position: absolute; z-index: 9; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; padding: 28px; background: rgba(5,12,20,.94); }.context-lost[hidden] { display: none; }.context-lost strong { font-size: 18px; }.context-lost span { max-width: 340px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.stage-controls { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: flex; gap: 7px; }
.icon-button { height: 34px; min-width: 34px; padding: 0 9px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid rgba(166,198,211,.18); background: rgba(7,17,28,.68); color: #b7c9cf; cursor: pointer; font-size: 8px; letter-spacing: .09em; backdrop-filter: blur(8px); transition: background .18s, border-color .18s, transform .18s; }
.icon-button:hover { background: rgba(22,46,59,.88); border-color: rgba(103,215,210,.45); }.icon-button:focus-visible, .button:focus-visible, .preset-button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }.icon-button span { font-weight: 750; }
.time-ribbon { position: absolute; z-index: 3; bottom: 17px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 8px 12px; white-space: nowrap; border: 1px solid rgba(166,198,211,.16); border-radius: 20px; background: rgba(8,18,29,.76); color: #a9bdc4; font-size: 8px; letter-spacing: .1em; backdrop-filter: blur(8px); }
.ribbon-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }.ribbon-separator { height: 10px; width: 1px; background: rgba(166,198,211,.2); }
.transport-bar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; margin-top: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(13,23,36,.86); }
.transport-buttons { display: flex; gap: 7px; align-items: center; }.button { border: 1px solid transparent; border-radius: 7px; padding: 8px 12px; min-height: 34px; font-size: 10px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .18s, border-color .18s, transform .18s; }.button:active { transform: translateY(1px); }.button-primary { color: #06191d; background: #74d9d0; border-color: #74d9d0; }.button-primary:hover { background: #94e6dc; }.button-quiet { color: #a7b9c0; background: rgba(255,255,255,.025); border-color: var(--line); }.button-quiet:hover { background: rgba(255,255,255,.07); border-color: var(--line-strong); }.play-button { min-width: 88px; }.play-glyph { font-size: 11px; line-height: 1; }.step-glyph { font-size: 16px; line-height: 8px; }.reset-glyph { font-size: 15px; line-height: 8px; }
.speed-control { width: min(240px, 36%); }.speed-control label { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .12em; color: #7f949f; margin-bottom: 6px; }.speed-control label b { color: #d3e0e0; font-size: 9px; letter-spacing: 0; }
input[type="range"] { width: 100%; accent-color: var(--cyan); cursor: pointer; height: 4px; margin: 0; }.range-ends { display: flex; justify-content: space-between; color: #647987; font-size: 8px; margin-top: 4px; }
.readout-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }.readout { min-width: 0; padding: 12px 13px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(13,23,36,.7); }.readout-label { display: flex; justify-content: space-between; align-items: center; color: #8298a4; font-size: 8px; letter-spacing: .1em; font-weight: 700; white-space: nowrap; }.readout-label small { font-size: 7px; color: #5e8990; letter-spacing: .08em; }.readout strong { display: block; margin-top: 7px; font-size: 23px; line-height: 1; font-weight: 560; letter-spacing: -.045em; color: #e4efed; white-space: nowrap; }.readout strong i { font-size: 10px; color: #9eb2b8; font-style: normal; font-weight: 500; letter-spacing: 0; }.readout-foot { display: block; margin-top: 7px; font-size: 8px; color: #6f8490; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.control-panel { border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg, #101b29, #0b1521); padding: 17px 17px 13px; min-width: 0; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; scrollbar-color: #29404e transparent; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; padding-bottom: 15px; border-bottom: 1px solid var(--line); }.panel-heading h2 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.035em; font-weight: 580; }.panel-index { color: #647d8a; font-size: 9px; letter-spacing: .12em; padding-top: 5px; }.panel-index i { color: #3c5260; font-style: normal; padding: 0 3px; }
.preset-section { padding: 14px 0 15px; border-bottom: 1px solid var(--line); }.section-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }.section-label span { color: #58717e; font-size: 7px; }
.preset-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }.preset-button { min-width: 0; display: flex; flex-direction: column; align-items: start; gap: 7px; text-align: left; padding: 8px 8px 9px; border-radius: 8px; border: 1px solid rgba(151,182,198,.12); background: rgba(255,255,255,.018); cursor: pointer; transition: border-color .18s, background .18s; }.preset-button:hover { border-color: rgba(103,215,210,.35); }.preset-button.active { border-color: rgba(103,215,210,.55); background: rgba(61,151,151,.10); }.preset-button b { display: block; font-size: 9px; font-weight: 650; color: #d8e5e4; white-space: nowrap; }.preset-button small { display: block; font-size: 7px; color: #748b97; margin-top: 3px; white-space: nowrap; }
.preset-art { width: 100%; height: 21px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(41,85,95,.1), rgba(41,85,95,.26), rgba(41,85,95,.1)); }.preset-art i { display: block; height: 15px; width: 2px; border-radius: 3px; background: #d9b277; box-shadow: 0 0 5px rgba(217,178,119,.4); }.fine-art { gap: 4px; }.fine-art i { height: 12px; }.fine-art i:nth-child(2),.fine-art i:nth-child(4) { height: 18px; }.coarse-art { gap: 18px; }.coarse-art i { width: 3px; height: 18px; }
.parameter-section { padding: 14px 0 8px; }.control-row { margin-bottom: 12px; }.control-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }.control-meta label { color: #c0d0d2; font-size: 10px; font-weight: 560; }.control-meta output { color: var(--cyan); font-size: 9px; font-weight: 650; font-variant-numeric: tabular-nums; }.control-row .range-ends { margin-top: 3px; }
.mechanism-card { border: 1px solid rgba(103,215,210,.16); background: linear-gradient(115deg, rgba(28,83,89,.18), rgba(18,38,54,.36)); border-radius: 9px; padding: 11px 11px 10px; margin-top: 2px; }.mechanism-head { display: flex; align-items: center; gap: 7px; color: #83b6b4; font-size: 8px; letter-spacing: .12em; font-weight: 750; }.pulse-ring { width: 5px; height: 5px; }.mechanism-stage { margin-left: auto; color: #e4b777; font-size: 7px; }.mechanism-flow { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 11px; }.mechanism-flow div { min-width: 0; }.mechanism-flow b { display: block; color: #668b93; font-size: 7px; letter-spacing: .08em; margin-bottom: 3px; }.mechanism-flow strong { display: block; color: #c7d9d9; font-size: 8px; font-weight: 650; white-space: nowrap; }.mechanism-flow small { display: block; margin-top: 3px; color: #718993; font-size: 7px; white-space: nowrap; }.flow-arrow { color: #53757c; font-size: 12px; }.mechanism-foot { border-top: 1px solid rgba(137,194,190,.12); margin-top: 9px; padding-top: 8px; color: #7e9c9f; font-size: 8px; line-height: 1.35; }
.science-panel { margin-top: 11px; border-top: 1px solid var(--line); }.science-panel summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 12px 0 3px; color: #c5d4d6; font-size: 10px; font-weight: 650; }.science-panel summary::-webkit-details-marker { display: none; }.science-icon { display: inline-flex; width: 19px; height: 19px; align-items: center; justify-content: center; margin-right: 7px; border: 1px solid rgba(103,215,210,.26); border-radius: 6px; color: var(--cyan); font-size: 12px; }.summary-plus { color: #76909b; font-size: 16px; font-weight: 350; transition: transform .2s; }.science-panel[open] .summary-plus { transform: rotate(45deg); }.science-content { padding: 10px 0 2px; }.science-intro { color: #8ea4ad; font-size: 9px; line-height: 1.55; margin: 0 0 10px; }.equation-block { border: 1px solid rgba(143,174,190,.1); border-radius: 6px; padding: 8px 9px; margin: 6px 0; background: rgba(255,255,255,.018); }.equation-block small { display: block; color: #6d8995; font-size: 7px; letter-spacing: .1em; margin-bottom: 5px; }.equation-block div { color: #d1e4e1; font-family: Georgia, "Times New Roman", serif; font-size: 13px; }.variable-list { padding: 7px 1px; }.variable-list div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 8px; border-bottom: 1px solid rgba(143,174,190,.07); }.variable-list b { color: #9edbd4; font-family: Georgia, serif; font-weight: 600; }.variable-list span { color: #8297a0; text-align: right; }
.validation-card { border: 1px solid rgba(103,215,210,.18); border-radius: 8px; padding: 10px; margin: 9px 0; background: rgba(21,69,73,.12); }.validation-title { display: flex; justify-content: space-between; align-items: center; color: #8bb8b6; font-size: 7px; letter-spacing: .12em; font-weight: 750; }.validation-title b { color: #e4b777; font-size: 7px; }.validation-card p { color: #8098a1; font-size: 8px; line-height: 1.4; margin: 7px 0; }.validation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }.validation-grid div { min-width: 0; }.validation-grid small { display: block; color: #6d8792; font-size: 7px; letter-spacing: .08em; }.validation-grid strong { display: block; margin-top: 4px; color: #d7e6e3; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }.validation-note { display: block; margin-top: 8px; color: #6f8993; font-size: 7px; }.limitations { border-left: 2px solid rgba(228,183,119,.5); padding: 3px 0 3px 9px; margin-top: 10px; }.limitations b { color: #b79d77; font-size: 7px; letter-spacing: .1em; }.limitations p { margin: 5px 0 0; color: #81959e; font-size: 8px; line-height: 1.5; }
.panel-footer { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; color: #657c87; font-size: 7px; letter-spacing: .11em; display: flex; align-items: center; gap: 7px; }.panel-footer span:not(.footer-dot) { color: #3f5965; }.footer-dot { width: 4px; height: 4px; }
.disclaimer { text-align: center; padding: 13px 0 0; color: #506571; font-size: 8px; letter-spacing: .035em; }
.embed-mode .topbar, .embed-mode .disclaimer { display: none; }.embed-mode { padding: 0; }.embed-mode .workspace { padding: 0; gap: 0; grid-template-columns: minmax(0,1fr) 330px; }.embed-mode .stage-frame { border-radius: 0; border: 0; height: 100vh; max-height: none; }.embed-mode .stage-column { height: 100vh; }.embed-mode .control-panel { height: 100vh; overflow: auto; border-radius: 0; }
@media (min-width: 1500px) { .workspace { grid-template-columns: minmax(0,1fr) 400px; }.stage-frame { height: min(61vw, 690px); max-height: 690px; }.control-panel { padding: 20px; }.control-row { margin-bottom: 15px; } }
@media (max-width: 1100px) { .app-shell { padding: 0 16px 14px; }.workspace { grid-template-columns: minmax(0,1fr) 330px; gap: 12px; }.stage-frame { min-height: 390px; height: 54vw; }.readout { padding: 10px 9px; }.readout strong { font-size: 19px; }.readout-foot { font-size: 7px; }.control-panel { padding: 14px; }.preset-button { padding: 7px 5px; }.preset-button small { font-size: 6px; } }
@media (max-width: 820px) { .control-panel { max-height: none; overflow: visible; }.workspace { grid-template-columns: 1fr; }.stage-frame { height: 60vw; min-height: 420px; max-height: 580px; }.control-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }.panel-heading, .preset-section, .parameter-section, .mechanism-card, .science-panel, .panel-footer { grid-column: 1 / -1; }.parameter-section { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }.parameter-section .section-label { grid-column: 1 / -1; }.mechanism-card { margin-top: 5px; }.science-panel { margin-top: 10px; } }
@media (max-width: 560px) {
  .app-shell { padding: 0 10px 12px; }.topbar { height: 54px; }.brand-mark { width: 24px; height: 24px; }.brand-sub { font-size: 7px; }.topbar-right { gap: 10px; font-size: 7px; }.live-indicator { display: none; }
  .workspace { padding-top: 10px; gap: 10px; }.stage-frame { height: 560px; min-height: 520px; max-height: 70vh; border-radius: 10px; }.stage-heading { top: 18px; left: 17px; }.stage-heading h1 { font-size: 31px; }.stage-heading p { max-width: 235px; font-size: 9px; line-height: 1.45; }.micro-label { font-size: 7px; }.scene-tag { font-size: 6px; padding: 6px 7px; }.tag-top { left: 15px; top: 108px; }.tag-right { right: 10px; top: 49%; }.tag-bottom { left: 15px; bottom: 68px; }.axis-note { left: 16px; bottom: 28px; font-size: 7px; }.time-ribbon { bottom: 13px; left: 50%; font-size: 6px; padding: 7px 9px; gap: 6px; }.stage-controls { right: 9px; bottom: 54px; gap: 5px; }.icon-button { height: 30px; min-width: 30px; padding: 0 7px; }.scene-status { right: 10px; top: 10px; font-size: 7px; }
  .transport-bar { margin-top: 8px; min-height: 58px; padding: 8px; gap: 8px; }.transport-buttons { gap: 4px; }.button { min-height: 32px; padding: 7px 9px; font-size: 9px; }.play-button { min-width: 72px; }.speed-control { width: 35%; }.speed-control label { font-size: 7px; }
  .readout-strip { grid-template-columns: repeat(2,1fr); gap: 6px; margin-top: 8px; }.readout { padding: 10px; }.readout strong { font-size: 22px; }.readout-foot { font-size: 7px; }
  .control-panel { display: block; padding: 14px 13px 12px; }.panel-heading h2 { font-size: 16px; }.parameter-section { display: block; }.control-row { margin-bottom: 13px; }.preset-button { padding: 8px; }.preset-button b { font-size: 9px; }.preset-button small { font-size: 7px; }.mechanism-flow strong { font-size: 8px; }.disclaimer { line-height: 1.5; font-size: 7px; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
