:root {
  color-scheme: dark;
  --bg: #050c16;
  --panel: #0b1522;
  --panel-2: #0d1b2a;
  --line: rgba(143, 180, 215, 0.14);
  --line-strong: rgba(143, 180, 215, 0.24);
  --text: #e6f0fb;
  --muted: #8194aa;
  --faint: #53677d;
  --cyan: #65d9f2;
  --blue: #65aaff;
  --violet: #b19cff;
  --mint: #65e5c3;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 50% -18%, #11243a 0%, #07111d 43%, #040a12 100%); color: var(--text); font-size: 13px; line-height: 1.45; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid #69d8f4; outline-offset: 3px; }
.app-shell { width: min(1600px, 100%); margin: 0 auto; padding: 0 28px 18px; }
.topbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand-mark { width: 35px; height: 35px; border: 1px solid rgba(95, 205, 239, .4); border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 3px; background: linear-gradient(145deg, rgba(54,157,207,.16), rgba(28,63,98,.18)); box-shadow: 0 0 26px rgba(40,165,226,.12), inset 0 0 12px rgba(88,200,245,.1); flex: 0 0 auto; }
.brand-mark span { width: 3px; border-radius: 3px; background: #6cdef2; box-shadow: 0 0 8px rgba(108,222,242,.55); }
.brand-mark span:nth-child(1) { height: 10px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 13px; opacity: .8; }
.eyebrow, .section-kicker, .section-note, .scene-mode, .scene-location, .clock-label, .readout-label, .validation-kicker, .panel-footer, .page-footer, .range-ends, .control-label-row label, .small-hint, .stage-legend, .stage-hint { font-size: 9px; letter-spacing: .13em; font-weight: 700; }
.eyebrow { color: #7e9ab6; margin-bottom: 3px; }
.eyebrow-sep { color: #425b74; padding: 0 5px; }
h1 { font-size: 16px; font-weight: 630; letter-spacing: -.025em; margin: 0; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-dash { color: #52738d; padding: 0 3px; }
.top-meta { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.field-pill { border: 1px solid rgba(88,195,226,.23); background: rgba(45,137,172,.09); color: #a7dff0; padding: 7px 10px; border-radius: 99px; font-size: 9px; letter-spacing: .08em; font-weight: 750; white-space: nowrap; }
.field-dot, .live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #69e3d0; margin-right: 7px; box-shadow: 0 0 10px #69e3d0; }
.seed-label { color: #6d8197; font-size: 9px; letter-spacing: .1em; white-space: nowrap; }
.seed-label strong { color: #a9bfd4; font-weight: 650; margin-left: 4px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; padding-top: 18px; }
.visual-column { min-width: 0; }
.scene-card { border: 1px solid rgba(122,164,201,.2); background: #06101d; border-radius: var(--radius); overflow: hidden; box-shadow: 0 22px 65px rgba(0,0,0,.22), 0 0 0 1px rgba(95,190,234,.025); }
.stage { height: clamp(430px, 53vw, 640px); min-height: 430px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 48% 54%, #102d46 0%, #071525 48%, #020711 100%); isolation: isolate; }
.stage-sky-glow { position: absolute; z-index: 0; width: 62%; height: 45%; left: 18%; top: 8%; background: radial-gradient(ellipse, rgba(55,127,185,.14), transparent 70%); pointer-events: none; }
.three-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.stage-topline, .stage-bottomline { position: absolute; z-index: 5; left: 17px; right: 17px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.stage-topline { top: 16px; }
.scene-location { color: #b7cde0; display: flex; align-items: center; gap: 3px; }
.scene-location b { color: #70d6ee; font-size: 9px; margin-left: 7px; font-weight: 800; }
.scene-mode { color: #728da7; }
.scene-mode span { color: #3f6b8e; padding: 0 5px; }
.stage-bottomline { bottom: 14px; }
.stage-legend { display: flex; gap: 15px; color: #91a7bd; font-size: 8px; }
.stage-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stage-legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.legend-ice { background: #b8e7ff; box-shadow: 0 0 8px #8bdcff; }
.legend-plasma { background: #61ebed; box-shadow: 0 0 8px #61ebed; }
.legend-radar { background: #8ce8ce; box-shadow: 0 0 8px #8ce8ce; }
.stage-hint { color: #617b94; font-size: 8px; }
kbd { color: #9eb2c7; border: 1px solid rgba(137,177,210,.2); background: rgba(6,18,30,.72); border-radius: 4px; padding: 2px 4px; font: inherit; margin-left: 6px; }
.scene-annotations { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.annotation { position: absolute; display: flex; align-items: center; gap: 7px; color: #d1e7f7; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.annotation-copy { display: flex; flex-direction: column; gap: 2px; }
.annotation-copy b { font-size: 8px; letter-spacing: .12em; font-weight: 750; }
.annotation-copy small { font-size: 9px; color: #8ba8c0; }
.annotation-line { display: block; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, #74d9f0); box-shadow: 0 0 8px rgba(116,217,240,.6); }
.annotation-ice { top: 26%; left: 7%; }
.annotation-plasma { top: 50%; right: 5%; flex-direction: row-reverse; text-align: right; }
.annotation-plasma .annotation-line { background: linear-gradient(90deg, #72e7d6, transparent); }
.annotation-radar { bottom: 22%; left: 31%; }
.annotation-radar .annotation-line { background: linear-gradient(90deg, transparent, #9ae9d6); }
.stage-status { position: absolute; z-index: 8; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(440px, calc(100% - 36px)); padding: 16px 18px; border: 1px solid rgba(112,169,204,.3); border-radius: 12px; background: rgba(4,12,22,.92); color: #bdd4e7; font-size: 12px; line-height: 1.6; box-shadow: 0 12px 50px rgba(0,0,0,.42); }
.stage-status[hidden] { display: none; }
.scene-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 13px; background: linear-gradient(180deg, #0a1624, #081320); border-top: 1px solid rgba(121,168,206,.14); }
.transport-controls, .toolbar-right { display: flex; align-items: center; gap: 7px; }
.control-button, .icon-button, .quality-button { border: 1px solid rgba(129,168,202,.2); background: rgba(19,38,57,.75); color: #afc4d7; border-radius: 8px; height: 34px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.control-button:hover, .icon-button:hover, .quality-button:hover { background: rgba(35,64,91,.85); border-color: rgba(121,201,230,.4); }
.control-button:active, .icon-button:active { transform: translateY(1px); }
.primary-button { color: #04121d; background: linear-gradient(135deg, #73e1ee, #72c7ec); border-color: transparent; font-weight: 750; }
.primary-button:hover { background: linear-gradient(135deg, #9aebf2, #8bd7f1); color: #04121d; }
.button-icon { font-size: 15px; line-height: 1; }
.sim-clock { display: flex; flex-direction: column; line-height: 1.1; margin-right: 7px; }
.clock-label { color: #6e859b; font-size: 7px; }
.sim-clock strong { font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: #b6d4e9; margin-top: 4px; }
.icon-button { width: 34px; padding: 0; font-size: 17px; }
.quality-button { height: 30px; font-size: 8px; letter-spacing: .1em; padding: 0 9px; color: #a4bdd2; }
.quality-button span { color: #67d4ed; font-size: 12px; }
.readout-section, .mechanism-section { margin-top: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 9px; }
.section-kicker { color: #7c9ab6; font-size: 9px; }
.section-note { color: #617991; font-size: 8px; }
.section-note i { color: #4d718f; font-style: normal; padding: 0 4px; }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.readout-card { position: relative; min-height: 102px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px 10px; background: linear-gradient(145deg, rgba(14,29,45,.94), rgba(8,19,31,.92)); overflow: hidden; }
.readout-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -32px; bottom: -42px; border-radius: 50%; background: currentColor; opacity: .045; filter: blur(3px); }
.accent-cyan { color: var(--cyan); }
.accent-blue { color: var(--blue); }
.accent-violet { color: var(--violet); }
.accent-mint { color: var(--mint); }
.readout-label { color: #7e96ad; font-size: 8px; letter-spacing: .1em; white-space: nowrap; }
.readout-label span { display: inline-block; color: #5c7a94; font-size: 7px; margin-left: 4px; }
.readout-value { display: flex; align-items: baseline; gap: 5px; margin-top: 8px; color: currentColor; }
.readout-value strong { font-size: 25px; line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.readout-value small { color: #8ca5bc; font-size: 10px; }
.readout-foot { color: #6e8499; font-size: 9px; margin-top: 7px; }
.echo-meter { height: 3px; border-radius: 5px; background: rgba(115,155,185,.15); margin-top: 9px; overflow: hidden; }
.echo-meter span { display: block; height: 100%; width: 42%; background: linear-gradient(90deg, #43bcae, #75efd0); box-shadow: 0 0 8px rgba(101,229,195,.45); transition: width .3s ease; }
.mechanism-flow { display: flex; align-items: stretch; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8,19,31,.7); }
.mechanism-step { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: flex-start; }
.step-index { width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid rgba(97,188,218,.25); border-radius: 6px; background: rgba(57,142,178,.1); color: #72d6ed; font-size: 8px; font-weight: 750; }
.mechanism-step b { display: block; color: #c4d6e5; font-size: 9px; font-weight: 650; margin-top: 1px; }
.mechanism-step small { display: block; color: #6f849a; font-size: 8px; margin-top: 3px; line-height: 1.4; }
.flow-arrow { color: #4e7c9b; font-size: 17px; align-self: center; padding: 0 1px; }
.science-panel { margin-top: 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8,19,31,.74); overflow: hidden; }
.science-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; cursor: pointer; list-style: none; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-panel summary > span:first-child { display: flex; align-items: center; gap: 12px; }
.science-panel summary b { color: #d0e0ed; font-size: 12px; font-weight: 650; }
.summary-hint { color: #617b94; font-size: 8px; letter-spacing: .1em; }
.summary-hint i { color: #6ed9ec; font-style: normal; font-size: 13px; padding-left: 8px; }
.science-panel[open] .summary-hint i { display: inline-block; transform: rotate(45deg); }
.science-content { padding: 0 15px 16px; border-top: 1px solid var(--line); }
.science-intro { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0 13px; }
.science-intro p { margin: 0; color: #9aafc2; max-width: 720px; font-size: 11px; }
.science-tag { flex: 0 0 auto; border: 1px solid rgba(94,204,191,.24); background: rgba(40,144,127,.1); border-radius: 99px; padding: 5px 8px; color: #83d9c7; font-size: 7px; letter-spacing: .09em; font-weight: 750; }
.equation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.equation-card { border: 1px solid rgba(123,165,202,.13); border-radius: 8px; padding: 10px 11px; background: rgba(16,32,49,.56); min-width: 0; }
.equation-card > span { display: block; color: #7795b0; font-size: 8px; letter-spacing: .1em; margin-bottom: 7px; }
.equation-card code { color: #b8e3f4; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
.equation-card p { margin: 7px 0 0; color: #71869b; font-size: 9px; }
.variables-strip { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 9px 10px; border: 1px solid rgba(123,165,202,.12); border-radius: 8px; background: rgba(11,25,39,.52); color: #71879b; font-size: 9px; line-height: 1.65; }
.variables-strip b { flex: 0 0 auto; color: #819db5; font-size: 8px; letter-spacing: .12em; }
.variables-strip code { color: #a9d6e9; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.validation-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 12px; border: 1px solid rgba(88,207,187,.22); border-radius: 9px; background: linear-gradient(110deg, rgba(23,81,82,.18), rgba(13,30,45,.6)); }
.validation-card > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.validation-kicker { color: #70cbbd; font-size: 8px; }
.validation-card b { color: #d0e6e9; font-size: 11px; }
.validation-card small { color: #79939f; font-size: 9px; }
.validation-numbers { display: flex; gap: 20px; }
.validation-numbers div { display: flex; flex-direction: column; gap: 3px; }
.validation-numbers small { font-size: 7px; letter-spacing: .1em; color: #6f9e9a; }
.validation-numbers b { font-size: 12px; color: #a6e6d8; font-variant-numeric: tabular-nums; }
.limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.limits-grid > div { border-left: 2px solid rgba(103,175,209,.35); padding: 2px 0 2px 9px; }
.limits-grid b, .reference-list > b { color: #819db5; font-size: 8px; letter-spacing: .12em; }
.limits-grid p { margin: 5px 0 0; color: #71869b; font-size: 9px; }
.reference-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.reference-list > b { width: 100%; }
.reference-list a { color: #78cde2; font-size: 9px; text-decoration: none; }
.reference-list a:hover { color: #b3edfa; text-decoration: underline; }
.control-column { min-width: 0; }
.control-panel { border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(155deg, rgba(13,27,43,.98), rgba(7,17,29,.98)); box-shadow: 0 20px 55px rgba(0,0,0,.2); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 15px 13px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 4px 0 0; font-size: 15px; letter-spacing: -.02em; font-weight: 650; }
.panel-live { color: #72d8c5; font-size: 8px; letter-spacing: .12em; display: flex; align-items: center; gap: 6px; }
.panel-live i, .footer-status-dot { display: inline-block; width: 5px; height: 5px; background: #63e0c0; border-radius: 50%; box-shadow: 0 0 8px rgba(99,224,192,.65); }
.preset-block { padding: 13px 14px 14px; border-bottom: 1px solid var(--line); }
.control-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.control-label-row label { color: #9bb0c4; font-size: 8px; letter-spacing: .1em; }
.control-label-row output { color: #8ad9ed; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.small-hint { color: #627d96; font-size: 7px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 9px; }
.preset-button { min-width: 0; min-height: 61px; border: 1px solid rgba(121,164,198,.16); border-radius: 8px; background: rgba(10,24,38,.8); padding: 7px 5px 6px; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.preset-button:hover { border-color: rgba(101,207,230,.35); background: rgba(21,47,67,.7); }
.preset-button.active { border-color: rgba(89,204,224,.52); background: linear-gradient(140deg, rgba(38,109,136,.24), rgba(15,42,60,.72)); box-shadow: inset 0 0 0 1px rgba(91,195,221,.08); }
.preset-symbol { display: block; color: #7bdced; font-size: 12px; line-height: 1; margin-bottom: 4px; }
.preset-button b { display: block; color: #c1d4e3; font-size: 8px; font-weight: 700; white-space: nowrap; }
.preset-button small { display: block; color: #6f879d; font-size: 7px; margin-top: 2px; white-space: nowrap; }
.control-group { padding: 12px 15px 10px; border-bottom: 1px solid rgba(122,164,198,.09); }
.control-group input[type="range"], .speed-block input[type="range"] { width: 100%; height: 14px; margin: 9px 0 1px; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; accent-color: #6bd4eb; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, #3d9fba, #315b7d); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, #3d9fba, #315b7d); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border: 2px solid #d7f8ff; border-radius: 50%; background: #57c5e2; box-shadow: 0 0 0 3px rgba(80,193,224,.12), 0 0 10px rgba(80,193,224,.4); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #d7f8ff; border-radius: 50%; background: #57c5e2; box-shadow: 0 0 0 3px rgba(80,193,224,.12), 0 0 10px rgba(80,193,224,.4); }
.range-ends { display: flex; align-items: center; justify-content: space-between; color: #536b82; font-size: 7px; letter-spacing: .07em; }
.last-control { border-bottom: 0; }
.speed-block { padding: 12px 15px 13px; border-top: 1px solid var(--line); background: rgba(4,13,23,.35); }
.speed-block input[type="range"] { margin-top: 8px; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; border-top: 1px solid var(--line); color: #617b92; font-size: 7px; letter-spacing: .1em; }
.panel-footer span:first-child { display: flex; align-items: center; gap: 6px; color: #7dbcae; }
.side-note { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; margin-top: 10px; border: 1px solid rgba(104,159,192,.15); border-radius: 9px; background: rgba(11,26,41,.6); }
.note-icon { color: #70c9e0; font-size: 14px; line-height: 1.2; }
.side-note p { margin: 0; color: #71879c; font-size: 9px; line-height: 1.5; }
.side-note b { color: #a7bed0; font-weight: 650; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px 0; color: #4f657a; font-size: 7px; letter-spacing: .1em; }
body.embed .app-shell { padding: 0; }
body.embed .topbar, body.embed .page-footer { display: none; }
body.embed .workspace { padding-top: 0; grid-template-columns: minmax(0,1fr) 300px; }
body.embed .stage { min-height: 380px; }
@media (min-width: 1500px) {
  .workspace { grid-template-columns: minmax(0,1fr) 350px; gap: 20px; }
  .stage { height: 660px; }
  .control-panel { position: sticky; top: 12px; }
}
@media (max-width: 1100px) {
  .app-shell { padding: 0 18px 16px; }
  .workspace { grid-template-columns: minmax(0,1fr) 305px; gap: 12px; }
  h1 { font-size: 14px; }
  .readout-grid { gap: 7px; }
  .readout-card { padding: 10px; }
  .readout-value strong { font-size: 22px; }
  .readout-label { font-size: 7px; }
  .mechanism-flow { gap: 4px; padding: 8px; }
  .mechanism-step { gap: 5px; }
  .mechanism-step b { font-size: 8px; }
  .mechanism-step small { font-size: 7px; }
}
@media (max-width: 820px) {
  .topbar { min-height: 76px; }
  .top-meta { gap: 8px; }
  .seed-label { display: none; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .stage { height: min(62vw, 540px); min-height: 390px; }
  .control-column { display: grid; grid-template-columns: minmax(0,1fr); }
  .control-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel-heading, .preset-block, .speed-block, .panel-footer { grid-column: 1 / -1; }
  .control-group { border-right: 1px solid rgba(122,164,198,.09); }
  .last-control { border-bottom: 0; }
  .side-note { margin-top: 9px; }
}
@media (max-width: 560px) {
  .app-shell { padding: 0 10px 13px; }
  .topbar { min-height: 72px; gap: 8px; }
  .brand-lockup { gap: 9px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .eyebrow { font-size: 7px; letter-spacing: .1em; }
  h1 { max-width: 230px; font-size: 12px; line-height: 1.25; white-space: normal; }
  .top-meta { align-self: flex-start; padding-top: 17px; }
  .field-pill { font-size: 7px; padding: 6px 7px; letter-spacing: .04em; }
  .field-dot { width: 5px; height: 5px; margin-right: 4px; }
  .workspace { padding-top: 10px; gap: 12px; }
  .stage { height: 440px; min-height: 390px; }
  .stage-topline { left: 10px; right: 10px; top: 10px; }
  .scene-location, .scene-mode { font-size: 7px; }
  .scene-mode { letter-spacing: .08em; }
  .annotation { transform: scale(.82); transform-origin: left center; }
  .annotation-ice { left: 2%; top: 27%; }
  .annotation-plasma { right: 0; top: 49%; transform-origin: right center; }
  .annotation-radar { left: 23%; bottom: 20%; }
  .stage-bottomline { left: 9px; right: 9px; bottom: 9px; align-items: flex-end; }
  .stage-legend { gap: 7px; font-size: 6px; letter-spacing: .07em; }
  .stage-legend span { gap: 4px; }
  .stage-hint { display: none; }
  .scene-toolbar { padding: 8px; min-height: 54px; flex-wrap: wrap; }
  .transport-controls, .toolbar-right { gap: 5px; }
  .control-button { height: 32px; padding: 0 8px; font-size: 10px; }
  .button-icon { font-size: 13px; }
  .sim-clock { margin-right: 2px; }
  .clock-label { font-size: 6px; }
  .sim-clock strong { font-size: 10px; }
  .icon-button { width: 30px; height: 30px; font-size: 15px; }
  .quality-button { height: 28px; font-size: 7px; padding: 0 7px; }
  .readout-section, .mechanism-section { margin-top: 12px; }
  .section-heading { margin-bottom: 7px; }
  .section-kicker { font-size: 8px; }
  .section-note { font-size: 6px; letter-spacing: .08em; }
  .readout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .readout-card { min-height: 91px; padding: 10px 11px 8px; }
  .readout-label { font-size: 7px; }
  .readout-label span { font-size: 6px; }
  .readout-value { margin-top: 7px; }
  .readout-value strong { font-size: 24px; }
  .readout-foot { font-size: 8px; margin-top: 5px; }
  .mechanism-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; padding: 10px; }
  .flow-arrow { display: none; }
  .mechanism-step { gap: 7px; }
  .mechanism-step b { font-size: 8px; }
  .mechanism-step small { font-size: 7px; }
  .science-panel { margin-top: 11px; }
  .science-panel summary { padding: 12px; }
  .science-panel summary > span:first-child { gap: 8px; }
  .summary-hint { font-size: 6px; }
  .science-content { padding: 0 10px 12px; }
  .science-intro { display: block; }
  .science-intro p { font-size: 10px; }
  .science-tag { display: inline-block; margin-top: 8px; }
  .equation-grid { grid-template-columns: 1fr; }
  .equation-card code { font-size: 10px; }
  .variables-strip { display: block; }
  .variables-strip b { display: block; margin-bottom: 4px; }
  .validation-card { display: block; }
  .validation-numbers { justify-content: space-between; gap: 10px; margin-top: 12px; }
  .limits-grid { grid-template-columns: 1fr; }
  .reference-list { gap: 7px 10px; }
  .reference-list a { font-size: 8px; }
  .control-panel { display: block; }
  .panel-heading { padding: 14px 13px 11px; }
  .preset-block { padding: 12px 12px 13px; }
  .control-group { padding: 12px 13px 9px; }
  .control-label-row label { font-size: 8px; }
  .control-label-row output { font-size: 10px; }
  .speed-block { padding: 12px 13px; }
  .panel-footer { padding: 9px 13px; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 6px; }
  body.embed .workspace { display: block; }
  body.embed .control-column { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
