:root {
  color-scheme: dark;
  --bg: #07111b;
  --panel: #0b1722;
  --panel-raised: #101f2c;
  --line: rgba(151, 184, 201, .13);
  --line-strong: rgba(151, 184, 201, .22);
  --text: #e5eef1;
  --muted: #8296a2;
  --muted-2: #5d7481;
  --accent: #6fe0d2;
  --accent-dim: #2e8f8a;
  --copper: #c79565;
  --blue: #60b8d5;
  --radius: 10px;
  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 { 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; background: var(--bg); }
.topbar { height: 68px; flex: 0 0 68px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #09141e; position: relative; z-index: 2; }
.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 29px; height: 29px; position: relative; border: 1px solid rgba(111,224,210,.55); border-radius: 50%; flex: 0 0 auto; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--accent); opacity: .85; }
.brand-mark::before { width: 1px; height: 23px; left: 13px; top: 2px; }
.brand-mark::after { height: 1px; width: 23px; top: 13px; left: 2px; }
.brand-mark span { position: absolute; width: 5px; height: 5px; border: 1px solid var(--accent); border-radius: 50%; background: #09141e; z-index: 1; }
.brand-mark span:nth-child(1) { left: 11px; top: 2px; }.brand-mark span:nth-child(2) { right: 2px; top: 11px; }.brand-mark span:nth-child(3) { left: 11px; bottom: 2px; }.brand-mark span:nth-child(4) { left: 2px; top: 11px; }
.eyebrow { color: var(--muted-2); font-size: 9px; letter-spacing: .16em; font-weight: 750; line-height: 1.3; }
h1 { margin: 3px 0 0; font-size: 16px; font-weight: 620; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; }
h1 span { color: var(--accent-dim); font-weight: 400; padding: 0 3px; }
.topbar-right { display: flex; align-items: center; gap: 9px; color: #91a6b1; font-size: 9px; letter-spacing: .12em; font-weight: 700; white-space: nowrap; }
.live-dot, .state-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(111,224,210,.55); }
.topbar-divider { width: 1px; height: 15px; background: var(--line-strong); margin: 0 5px; }
.edition { color: var(--muted-2); }
.workspace { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 376px; }
.stage { min-width: 0; min-height: 0; position: relative; overflow: hidden; background: radial-gradient(ellipse at 48% 49%, #142b38 0%, #0b1b28 43%, #08141e 100%); border-right: 1px solid var(--line); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-topline { position: absolute; left: 26px; right: 26px; top: 23px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.stage-kicker, .stage-scale { font-size: 9px; letter-spacing: .13em; font-weight: 750; color: #91a8b3; }
.kicker-square { width: 6px; height: 6px; display: inline-block; margin-right: 8px; background: var(--accent); vertical-align: 1px; }
.stage-separator, .stage-scale span { color: var(--accent-dim); padding: 0 5px; }
.stage-scale { color: #617987; font-weight: 600; }
.stage-caption { position: absolute; left: 26px; bottom: 24px; width: min(440px, calc(100% - 52px)); padding: 13px 16px 14px; background: rgba(7,17,27,.76); border: 1px solid rgba(143,178,194,.16); border-left: 2px solid var(--accent-dim); border-radius: 5px; backdrop-filter: blur(10px); pointer-events: none; }
.caption-index { font-size: 8px; letter-spacing: .17em; color: var(--accent); font-weight: 800; margin-bottom: 6px; }
.stage-caption p { color: #c0d0d6; font-size: 11px; line-height: 1.55; margin: 0; max-width: 420px; }
.stage-coordinate { position: absolute; bottom: 30px; right: 26px; color: #4e6876; font-size: 8px; letter-spacing: .15em; font-weight: 700; }
.stage-coordinate span { color: #78909c; margin-left: 6px; }
.inspector { min-height: 0; background: var(--panel); overflow: hidden; }
.inspector-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #29404d transparent; padding: 21px 20px 12px; }
.inspector-scroll::-webkit-scrollbar { width: 5px; }.inspector-scroll::-webkit-scrollbar-thumb { background: #29404d; border-radius: 4px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-heading h2, .check-heading h2 { margin: 3px 0 0; font-size: 14px; font-weight: 620; letter-spacing: -.015em; }
.state-pill { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(111,224,210,.18); border-radius: 20px; color: var(--accent); font-size: 8px; letter-spacing: .13em; font-weight: 800; }
.state-dot { width: 5px; height: 5px; }
.state-pill.paused { color: #b5a37c; border-color: rgba(199,149,101,.25); }.state-pill.paused .state-dot { background: var(--copper); box-shadow: none; }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.readout-card { min-width: 0; background: #0e1c28; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px 10px; min-height: 82px; }
.primary-readout { background: linear-gradient(140deg, rgba(25,61,67,.56), rgba(14,28,40,.95)); border-color: rgba(111,224,210,.24); }
.readout-label { font-size: 8px; color: #8da1ac; letter-spacing: .11em; font-weight: 750; white-space: nowrap; }
.readout-label span { color: #4d7e7e; font-size: 7px; margin-left: 3px; }
.readout-value { display: flex; align-items: baseline; gap: 5px; margin-top: 8px; line-height: 1; }
.readout-value strong { font-size: 24px; font-weight: 560; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.primary-readout .readout-value strong { color: #a4f2e8; }
.readout-value small { color: #8ca1ab; font-size: 10px; }
.readout-foot { margin-top: 6px; font-size: 8px; color: #607683; }
.secondary-readouts { display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px 0; }
.secondary-readouts div { display: flex; flex-direction: column; gap: 3px; }
.secondary-readouts span { font-size: 8px; color: #728895; }.secondary-readouts strong { font-size: 10px; font-weight: 600; color: #b7c7ce; font-variant-numeric: tabular-nums; }
.view-section, .controls-section, .motion-section, .check-section, .science-panel { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 15px; }
.compact-heading h2 { font-size: 13px; }
.view-switch { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 4px; margin-top: 11px; border: 1px solid var(--line); border-radius: 7px; background: #08141e; }
.view-button { border: 0; border-radius: 5px; background: transparent; color: #8195a0; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; cursor: pointer; transition: background .18s ease, color .18s ease; }
.view-button:hover { color: var(--text); background: rgba(255,255,255,.035); }.view-button.active { background: #18313a; color: #a8eee5; box-shadow: inset 0 0 0 1px rgba(111,224,210,.2); }
.view-icon { width: 18px; height: 13px; display: block; position: relative; border: 1px solid currentColor; border-radius: 3px; opacity: .9; }
.assembled-icon::before { content: ""; position: absolute; left: 7px; top: -3px; height: 17px; width: 2px; background: currentColor; transform: rotate(45deg); }
.cutaway-icon::before { content: ""; position: absolute; left: 8px; top: 1px; height: 9px; border-left: 1px dashed currentColor; }.cutaway-icon::after { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; border-top: 1px solid currentColor; }
.exploded-icon { border-style: dashed; }.exploded-icon::before { content: ""; position: absolute; left: 8px; top: -5px; height: 4px; border-left: 1px solid currentColor; }.exploded-icon::after { content: ""; position: absolute; left: 8px; bottom: -5px; height: 4px; border-left: 1px solid currentColor; }
.illustrative-tag { color: #b28b5f; font-size: 7px; letter-spacing: .12em; border: 1px solid rgba(199,149,101,.25); padding: 4px 6px; border-radius: 3px; font-weight: 800; }
.control-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.control-row { min-width: 0; }
.control-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.control-head label { color: #c3d0d5; font-size: 10px; font-weight: 550; }
.control-head output { color: #8eddd4; font-size: 9px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; height: 4px; display: block; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, #347d7c, #25404a); border-radius: 4px; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #b5f0e8; border: 2px solid #0c2029; box-shadow: 0 0 0 1px #58b8ae; }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #b5f0e8; border: 2px solid #0c2029; box-shadow: 0 0 0 1px #58b8ae; }
.range-ends { display: flex; justify-content: space-between; color: #526a77; font-size: 7px; margin-top: 5px; }
.preset-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 15px; }
.preset-label { color: #647d89; font-size: 7px; letter-spacing: .12em; font-weight: 800; margin-right: auto; }
.preset-button { border: 1px solid var(--line-strong); border-radius: 4px; background: #0d1b27; color: #a4b5bd; padding: 6px 8px; font-size: 8px; cursor: pointer; transition: .16s ease; }
.preset-button:hover { color: var(--accent); border-color: rgba(111,224,210,.45); }
.quality-switch { display: flex; border: 1px solid var(--line); border-radius: 5px; padding: 2px; background: #08141e; }
.quality-switch button { border: 0; background: transparent; color: #6d8390; padding: 4px 7px; font-size: 8px; border-radius: 3px; cursor: pointer; }
.quality-switch button.selected { color: #a9eee6; background: #19353d; }
.transport-row { display: grid; grid-template-columns: 1.1fr .8fr .8fr 1fr; gap: 5px; margin-top: 12px; }
.transport-button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 5px; background: #0e1d29; color: #9fb1ba; padding: 8px 4px; font-size: 9px; cursor: pointer; transition: .16s ease; }
.transport-button:hover { border-color: rgba(111,224,210,.4); color: var(--text); }.play-button { background: #183a40; border-color: rgba(111,224,210,.3); color: #a7eee5; }
.pause-glyph { width: 8px; height: 10px; display: inline-block; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.play-glyph { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.step-glyph { font-size: 17px; line-height: 10px; transform: translateY(-1px); }.reset-glyph { font-size: 15px; line-height: 10px; }
.camera-glyph { width: 12px; height: 9px; border: 1px solid currentColor; border-radius: 2px; position: relative; }.camera-glyph::before { content: ""; position: absolute; left: 3px; top: -4px; width: 4px; height: 3px; border: 1px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }.camera-glyph::after { content: ""; position: absolute; width: 3px; height: 3px; border: 1px solid currentColor; border-radius: 50%; left: 3px; top: 2px; }
.elapsed-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: #627985; font-size: 7px; letter-spacing: .08em; }.elapsed-row strong { color: #9db0b9; font-size: 8px; font-weight: 600; letter-spacing: 0; margin-left: 4px; font-variant-numeric: tabular-nums; }
.check-section { background: rgba(13,32,40,.55); margin-left: -20px; margin-right: -20px; padding: 14px 20px 13px; border-bottom: 1px solid var(--line); }
.check-heading { display: flex; align-items: center; gap: 9px; }.check-heading h2 { font-size: 11px; }.check-mark { width: 21px; height: 21px; border-radius: 50%; border: 1px solid rgba(111,224,210,.32); color: var(--accent); display: grid; place-items: center; font-size: 11px; flex: 0 0 auto; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-top: 12px; }.check-grid div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }.check-grid span { color: #657d89; font-size: 7px; }.check-grid strong { color: #c1d1d6; font-size: 10px; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }.check-difference strong { color: #91ded3; }
.check-note { margin: 9px 0 0; color: #6f8490; font-size: 8px; line-height: 1.5; }
.science-panel { margin-top: 0; padding-top: 0; }.science-panel summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 15px 0 13px; }.science-panel summary::-webkit-details-marker { display: none; }.science-panel summary span:first-child { display: flex; flex-direction: column; gap: 3px; }.science-panel summary strong { font-size: 12px; font-weight: 620; }.details-chevron { color: var(--accent); font-size: 18px; transition: transform .2s ease; }.science-panel[open] .details-chevron { transform: rotate(180deg); }
.science-content { padding: 0 0 14px; color: #9aadb6; font-size: 9px; line-height: 1.6; }.science-content h3 { color: #d1dce0; font-size: 10px; margin: 10px 0 5px; font-weight: 650; }.science-content p { margin: 5px 0 9px; }.science-content code { color: #a7e8df; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }.equation { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; margin: 4px 0; background: #0d1c27; border: 1px solid var(--line); border-radius: 4px; }.equation span { color: #728994; }.equation code { white-space: nowrap; }.science-content ul { padding-left: 15px; margin: 6px 0 10px; }.science-content li { margin: 4px 0; }.science-content li strong { color: #c6d5da; }.disclaimer { color: #7f9b9f; border-left: 2px solid var(--accent-dim); padding-left: 9px; margin-top: 12px !important; }
.panel-footer { display: flex; justify-content: space-between; gap: 8px; color: #4d6571; font-size: 7px; letter-spacing: .1em; padding: 13px 0 5px; }.panel-footer b { color: var(--accent-dim); padding: 0 3px; }
@media (max-width: 920px) and (min-width: 701px) { .workspace { grid-template-columns: minmax(0,1fr) 345px; }.inspector-scroll { padding-left: 16px; padding-right: 16px; }.check-section { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }.topbar { padding: 0 18px; }.stage-topline { left: 18px; right: 18px; } }
@media (max-width: 700px) {
  body { overflow: hidden; }
  .topbar { height: 58px; flex-basis: 58px; padding: 0 14px; }
  .brand-lockup { gap: 10px; }.brand-mark { width: 25px; height: 25px; }.brand-mark::before { left: 11px; height: 19px; }.brand-mark::after { top: 11px; width: 19px; }.brand-mark span:nth-child(1) { left: 9px; top: 2px; }.brand-mark span:nth-child(2) { right: 2px; top: 9px; }.brand-mark span:nth-child(3) { left: 9px; bottom: 2px; }.brand-mark span:nth-child(4) { left: 2px; top: 9px; }
  .eyebrow { font-size: 8px; } h1 { font-size: 13px; }.topbar-right { font-size: 0; gap: 0; }.topbar-right .live-dot { width: 6px; height: 6px; }.topbar-divider, .edition { display: none; }
  .workspace { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(250px, 39dvh) minmax(0,1fr); }
  .stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .stage-topline { left: 14px; right: 14px; top: 13px; }.stage-kicker { font-size: 7px; }.stage-scale { font-size: 7px; }
  .stage-caption { left: 12px; bottom: 11px; width: min(330px, calc(100% - 24px)); padding: 8px 10px 9px; }.caption-index { font-size: 7px; margin-bottom: 3px; }.stage-caption p { font-size: 9px; line-height: 1.4; }.stage-coordinate { display: none; }
  .inspector { overflow: hidden; }.inspector-scroll { padding: 14px 14px 12px; }
  .section-heading h2 { font-size: 13px; }.readout-grid { gap: 6px; margin-top: 10px; }.readout-card { min-height: 69px; padding: 8px 9px 7px; }.readout-label { font-size: 7px; }.readout-value { margin-top: 6px; }.readout-value strong { font-size: 20px; }.readout-value small { font-size: 9px; }.readout-foot { margin-top: 4px; font-size: 7px; }.secondary-readouts { padding-top: 7px; }.secondary-readouts span { font-size: 7px; }.secondary-readouts strong { font-size: 9px; }
  .view-section, .controls-section, .motion-section, .check-section, .science-panel { margin-top: 13px; padding-top: 12px; }.view-switch { margin-top: 8px; }.view-button { flex-direction: row; justify-content: center; font-size: 8px; padding: 7px 3px; gap: 5px; }.view-icon { transform: scale(.82); }
  .control-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 11px; margin-top: 11px; }.control-head { margin-bottom: 6px; }.control-head label { font-size: 9px; }.control-head output { font-size: 8px; }.range-ends { font-size: 6px; }
  .preset-row { margin-top: 12px; }.preset-label { font-size: 6px; }.preset-button { padding: 5px 7px; font-size: 7px; }
  .transport-row { margin-top: 9px; }.transport-button { padding: 7px 3px; font-size: 8px; }.elapsed-row { font-size: 6px; }
  .check-section { margin-left: -14px; margin-right: -14px; padding: 12px 14px; }.check-grid { margin-top: 9px; }.check-grid span { font-size: 6px; }.check-grid strong { font-size: 9px; }.check-note { font-size: 7px; margin-top: 7px; }
  .science-panel summary { padding: 12px 0; }.science-content { font-size: 8px; }.equation { padding: 5px 7px; }.equation code { font-size: 8px; }.science-content code { font-size: 8px; }
}
@media (max-width: 380px) {
  .topbar { padding: 0 10px; }.brand-lockup { gap: 8px; }.topbar-right { display: none; }.stage-scale { display: none; }
  .workspace { grid-template-rows: minmax(235px, 36dvh) minmax(0,1fr); }
  .inspector-scroll { padding-left: 11px; padding-right: 11px; }.check-section { margin-left: -11px; margin-right: -11px; padding-left: 11px; padding-right: 11px; }
  .control-list { column-gap: 10px; }.control-head label { font-size: 8px; }.control-head output { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
body.embed-mode { height: 100vh; height: 100dvh; overflow: hidden; }

.elapsed-row strong i { color: #6f8a95; font-style: normal; font-size: 7px; font-weight: 500; }
