:root {
  color-scheme: dark;
  --bg: #080d14;
  --panel: #101823;
  --panel-2: #0d151f;
  --panel-3: #141f2b;
  --line: #263544;
  --line-soft: rgba(124, 151, 172, .16);
  --text: #edf4f7;
  --muted: #91a3b1;
  --muted-2: #647786;
  --accent: #73dfd0;
  --accent-dim: rgba(115, 223, 208, .13);
  --gold: #d2b27a;
  --janus: #73dfd0;
  --epi: #dce7ef;
  --radius: 15px;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-shell { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(ellipse at 25% 0%, rgba(43, 74, 91, .14), transparent 42%), var(--bg); }
.topbar { height: 68px; flex: 0 0 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line-soft); background: rgba(8, 13, 20, .86); }
.brand-lockup { display: flex; align-items: center; gap: 13px; min-width: 0; }
.saturn-mark { width: 34px; height: 34px; border: 1px solid rgba(115, 223, 208, .42); border-radius: 50%; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #a8d6d2, #607e86 48%, #243946 78%); box-shadow: 0 0 24px rgba(115, 223, 208, .12); }
.saturn-mark:before { content: ""; position: absolute; width: 45px; height: 13px; border: 2px solid rgba(210, 178, 122, .9); border-left-color: rgba(210, 178, 122, .3); border-right-color: rgba(210, 178, 122, .3); border-radius: 50%; transform: rotate(-20deg); }
.saturn-mark span { width: 5px; height: 5px; border-radius: 50%; background: #d6e9e5; }
.eyebrow, .section-kicker { font-size: 9px; line-height: 1.2; letter-spacing: .17em; font-weight: 750; color: var(--accent); }
.brand-title { margin-top: 4px; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.top-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.live-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(115, 223, 208, .65); }
.live-indicator.paused { background: var(--gold); box-shadow: 0 0 10px rgba(210, 178, 122, .45); }
.meta-divider { width: 1px; height: 15px; background: var(--line); margin: 0 5px; }
.meta-note { color: var(--muted-2); font-weight: 500; letter-spacing: .04em; }
.workspace { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(340px, .88fr); gap: 13px; padding: 13px 16px 10px; }
.visual-panel, .control-panel { min-width: 0; min-height: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 27, 39, .97), rgba(11, 18, 27, .98)); box-shadow: 0 18px 55px rgba(0, 0, 0, .17); }
.visual-panel { display: flex; flex-direction: column; padding: 14px 15px 12px; overflow: hidden; }
.visual-head { flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 3px 10px; }
.visual-head h1 { margin: 5px 0 0; font-size: clamp(18px, 1.75vw, 24px); font-weight: 570; letter-spacing: -.045em; line-height: 1.15; }
.frame-label { display: flex; align-items: center; gap: 7px; padding: 7px 10px; white-space: nowrap; border: 1px solid rgba(115, 223, 208, .19); border-radius: 100px; color: var(--accent); background: rgba(115, 223, 208, .055); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.frame-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.frame-sub { color: var(--muted-2); font-weight: 500; letter-spacing: .02em; }
.stage { flex: 1 1 auto; min-height: 180px; position: relative; overflow: hidden; border: 1px solid rgba(128, 160, 180, .12); border-radius: 11px; background: radial-gradient(ellipse at 50% 48%, rgba(28, 53, 66, .36), rgba(7, 13, 21, .88) 68%); }
#space { display: block; width: 100%; height: 100%; }
.stage-legend { position: absolute; top: 12px; left: 13px; display: flex; gap: 15px; color: rgba(210, 225, 233, .72); font-size: 8px; font-weight: 800; letter-spacing: .14em; pointer-events: none; }
.stage-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; }
.janus-dot { background: var(--janus); box-shadow: 0 0 8px rgba(115, 223, 208, .55); }
.epi-dot { background: var(--epi); box-shadow: 0 0 8px rgba(220, 231, 239, .38); }
.stage-footnote { position: absolute; right: 12px; bottom: 10px; color: rgba(148, 169, 181, .48); font-size: 7px; font-weight: 700; letter-spacing: .13em; pointer-events: none; }
.readout-grid { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding-top: 9px; }
.readout-card { min-width: 0; padding: 9px 10px 7px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(7, 13, 20, .42); }
.readout-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 7px; line-height: 1.3; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }
.readout-value { margin-top: 5px; font-size: clamp(16px, 1.6vw, 21px); font-variant-numeric: tabular-nums; font-weight: 570; letter-spacing: -.045em; white-space: nowrap; }
.readout-value small { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.value-tag, .equation-tag { display: inline-block; margin-top: 3px; color: #748998; font-size: 7px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.caption-strip { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 9px 4px 0; }
.caption-mark { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 8px; color: var(--accent); background: var(--accent-dim); font-size: 15px; }
.caption-title { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.caption-strip p { margin: 3px 0 0; max-width: 690px; color: #a9b8c2; font-size: 10px; line-height: 1.4; }
.elapsed-block { flex: 0 0 auto; margin-left: auto; padding-left: 14px; border-left: 1px solid var(--line); text-align: right; }
.elapsed-block span { display: block; color: var(--muted-2); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.elapsed-block strong { display: block; margin-top: 2px; font-size: 17px; font-weight: 570; font-variant-numeric: tabular-nums; }
.elapsed-block strong small { color: var(--muted); font-size: 9px; font-weight: 500; }
.elapsed-block em { color: var(--muted-2); font-size: 7px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.control-panel { display: flex; flex-direction: column; gap: 11px; padding: 14px 14px 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #344757 transparent; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 17px; font-weight: 580; letter-spacing: -.035em; }
.model-chip { padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.transport-row { display: grid; grid-template-columns: 1.15fr 1fr 40px; gap: 7px; }
.transport-row button, .toggle-button, .preset-button { border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.transport-row button:active, .toggle-button:active, .preset-button:active { transform: translateY(1px); }
.button-primary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border-color: rgba(115, 223, 208, .38) !important; background: linear-gradient(135deg, rgba(115, 223, 208, .19), rgba(115, 223, 208, .08)); color: var(--accent); font-size: 11px; font-weight: 750; }
.button-primary:hover { background: rgba(115, 223, 208, .24); }
.button-secondary { min-height: 38px; background: rgba(255, 255, 255, .025); color: #c2d0d8; font-size: 10px; font-weight: 650; }
.button-secondary:hover, .icon-button:hover { background: var(--panel-3); border-color: #405567; }
.icon-button { min-height: 38px; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 20px; line-height: 1; }
.preset-block, .sliders-block { padding-top: 1px; }
.control-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.control-label-row label { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.control-label-row output { color: var(--text); font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.preset-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.preset-button { min-height: 43px; padding: 7px 9px; text-align: left; background: rgba(255, 255, 255, .025); }
.preset-button strong { display: block; color: #dce7ec; font-size: 9px; font-weight: 700; }
.preset-button span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.preset-button.active { border-color: rgba(115, 223, 208, .4); background: var(--accent-dim); }
.preset-button.active strong { color: var(--accent); }
.sliders-block { display: grid; grid-template-columns: 1fr; gap: 3px; }
.sliders-block .control-label-row { margin: 2px 0 0; }
input[type="range"] { width: 100%; height: 13px; margin: 0; appearance: none; background: transparent; cursor: pointer; accent-color: var(--accent); }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 10px; background: linear-gradient(90deg, rgba(115, 223, 208, .62), rgba(115, 223, 208, .17)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 10px; background: linear-gradient(90deg, rgba(115, 223, 208, .62), rgba(115, 223, 208, .17)); }
input[type="range"]::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4.5px; appearance: none; border: 2px solid #d6fff8; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(115, 223, 208, .12); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #d6fff8; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(115, 223, 208, .12); }
.range-hints { display: flex; justify-content: space-between; margin-top: -2px; color: var(--muted-2); font-size: 7px; font-variant-numeric: tabular-nums; }
.display-row { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 6px; }
.toggle-button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 5px 6px; background: rgba(255, 255, 255, .025); color: #aebdc7; font-size: 9px; font-weight: 650; white-space: nowrap; }
.toggle-button:hover { background: var(--panel-3); }
.toggle-button.active { border-color: rgba(115, 223, 208, .32); color: var(--accent); background: rgba(115, 223, 208, .07); }
.screenshot-button { color: #d6c39c; }
.check-card { padding: 9px 10px 8px; border: 1px solid rgba(115, 223, 208, .18); border-radius: 9px; background: linear-gradient(110deg, rgba(115, 223, 208, .07), rgba(12, 21, 31, .3)); }
.check-heading { display: flex; align-items: center; gap: 8px; }
.check-icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 20px; border-radius: 6px; color: var(--accent); background: rgba(115, 223, 208, .13); font-size: 12px; }
.check-heading strong { display: block; color: #dbe9eb; font-size: 8px; letter-spacing: .12em; }
.check-heading small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.check-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; padding-left: 28px; }
.check-values > div { min-width: 0; }
.check-values span { display: block; color: var(--muted-2); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.check-values strong { display: block; margin-top: 2px; color: #e5eff1; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.check-values em { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.science-panel { border-top: 1px solid var(--line-soft); padding-top: 9px; }
.science-panel summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: #dfe9ed; font-size: 10px; font-weight: 700; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: var(--accent); background: var(--accent-dim); font-size: 13px; }
.summary-hint { margin-left: auto; color: var(--muted-2); font-size: 8px; font-weight: 500; }
.science-content { padding: 9px 2px 0; color: #aabac3; font-size: 9px; line-height: 1.5; }
.science-content h3 { margin: 9px 0 4px; color: #e0e9ec; font-size: 9px; font-weight: 750; letter-spacing: .04em; }
.science-content p { margin: 4px 0 7px; }
.science-content b { color: #dbe7e9; }
.equation { overflow-wrap: anywhere; padding: 7px 8px; border: 1px solid var(--line-soft); border-radius: 6px; color: #cde7e3; background: rgba(4, 9, 15, .42); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; line-height: 1.45; }
.equation-tag { margin: 4px 0 2px; }
.disclaimer { margin-top: 9px !important; padding-top: 7px; border-top: 1px solid var(--line-soft); color: #8fa1ac; font-size: 8px; }
.keyboard-hint { margin-top: auto; padding-top: 2px; color: var(--muted-2); font-size: 7px; font-weight: 700; letter-spacing: .08em; text-align: center; }
kbd { padding: 2px 4px; border: 1px solid var(--line); border-radius: 3px; color: #aebdc7; background: rgba(255,255,255,.03); font: inherit; }
.keyboard-hint span { margin: 0 4px; color: #516675; }
.footer { flex: 0 0 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; color: #536675; font-size: 7px; font-weight: 700; letter-spacing: .13em; }
body.embed-mode { height: 100vh; height: 100dvh; overflow: hidden; }
@media (max-width: 900px) and (min-width: 761px) {
  .workspace { grid-template-columns: minmax(0, 1.45fr) minmax(310px, .95fr); padding-left: 10px; padding-right: 10px; gap: 9px; }
  .visual-panel { padding: 11px; }
  .control-panel { padding: 11px; gap: 8px; }
  .readout-label { font-size: 6px; }
  .readout-card { padding-left: 7px; padding-right: 7px; }
  .display-row { grid-template-columns: 1fr 1fr; }
  .screenshot-button { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar { height: 54px; flex-basis: 54px; padding: 0 13px; }
  .saturn-mark { width: 29px; height: 29px; }
  .saturn-mark:before { width: 39px; height: 11px; }
  .eyebrow { font-size: 7px; }
  .brand-title { margin-top: 2px; font-size: 13px; }
  .top-meta { gap: 6px; font-size: 8px; }
  .meta-note, .meta-divider { display: none; }
  .workspace { display: flex; flex-direction: column; gap: 7px; padding: 7px 8px 8px; }
  .visual-panel { flex: 0 0 55%; min-height: 0; padding: 9px 9px 7px; }
  .visual-head { padding: 0 2px 7px; align-items: center; }
  .visual-head h1 { margin-top: 3px; font-size: 15px; }
  .visual-head .section-kicker { font-size: 7px; }
  .frame-label { padding: 5px 7px; font-size: 6px; }
  .frame-sub { display: none; }
  .stage { flex: 1 1 auto; min-height: 105px; }
  .stage-legend { top: 7px; left: 8px; gap: 9px; font-size: 6px; }
  .stage-footnote { right: 7px; bottom: 6px; font-size: 6px; }
  .readout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding-top: 5px; }
  .readout-card { padding: 5px 7px 4px; border-radius: 6px; }
  .readout-label { font-size: 6px; letter-spacing: .08em; }
  .readout-value { margin-top: 2px; font-size: 14px; }
  .readout-value small { font-size: 8px; }
  .value-tag { margin-top: 0; font-size: 6px; }
  .caption-strip { min-height: 38px; gap: 7px; padding-top: 5px; }
  .caption-mark { width: 20px; height: 20px; flex-basis: 20px; font-size: 12px; }
  .caption-title { font-size: 7px; }
  .caption-strip p { margin-top: 2px; font-size: 8px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .elapsed-block { padding-left: 8px; }
  .elapsed-block span { font-size: 6px; }
  .elapsed-block strong { font-size: 13px; }
  .elapsed-block em { font-size: 6px; }
  .control-panel { flex: 1 1 auto; min-height: 0; padding: 9px 10px 8px; gap: 7px; border-radius: 11px; }
  .panel-heading h2 { font-size: 14px; }
  .model-chip { font-size: 6px; }
  .transport-row { grid-template-columns: 1.1fr 1fr 35px; gap: 5px; }
  .transport-row button { min-height: 32px; }
  .button-primary, .button-secondary { font-size: 9px; }
  .icon-button { font-size: 17px; }
  .control-label-row { margin-bottom: 3px; }
  .control-label-row label { font-size: 7px; }
  .control-label-row output { font-size: 9px; }
  .preset-button { min-height: 35px; padding: 5px 7px; }
  .preset-button strong { font-size: 8px; }
  .preset-button span { font-size: 7px; margin-top: 1px; }
  .sliders-block { gap: 1px; }
  .sliders-block .control-label-row { margin-top: 1px; }
  input[type="range"] { height: 11px; }
  .range-hints { font-size: 6px; }
  .display-row { grid-template-columns: 1.2fr 1fr .85fr; gap: 4px; }
  .toggle-button { min-height: 27px; padding: 4px; font-size: 7px; gap: 3px; }
  .check-card { padding: 6px 7px; }
  .check-heading { gap: 6px; }
  .check-icon { width: 17px; height: 17px; flex-basis: 17px; font-size: 10px; }
  .check-heading strong { font-size: 7px; }
  .check-heading small { font-size: 7px; }
  .check-values { margin-top: 5px; padding-left: 23px; }
  .check-values span { font-size: 6px; }
  .check-values strong { font-size: 9px; }
  .check-values em { font-size: 6px; }
  .science-panel { padding-top: 6px; }
  .science-panel summary { font-size: 9px; }
  .science-icon { width: 17px; height: 17px; }
  .summary-hint { font-size: 7px; }
  .science-content { font-size: 8px; padding-top: 6px; }
  .science-content h3 { font-size: 8px; margin-top: 7px; }
  .equation { font-size: 8px; padding: 5px 6px; }
  .keyboard-hint { padding-top: 0; font-size: 6px; }
  .footer { display: none; }
}
@media (max-width: 390px) {
  .visual-panel { flex-basis: 56%; }
  .frame-label { letter-spacing: .07em; }
  .display-row { grid-template-columns: 1fr 1fr; }
  .screenshot-button { grid-column: 1 / -1; }
  .toggle-button { min-height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.output-group { display: flex; align-items: center; gap: 6px; }
.output-group .value-tag { margin: 0; white-space: nowrap; }
.range-hints em { margin-left: auto; color: #748998; font-size: 6px; font-style: normal; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
