:root {
  color-scheme: dark;
  --bg: #07131d;
  --panel: #0b1a26;
  --panel-2: #0e202d;
  --line: rgba(154, 196, 207, .14);
  --line-strong: rgba(154, 196, 207, .24);
  --text: #e8f2f2;
  --muted: #8ca5ad;
  --dim: #5d747d;
  --warm: #f4a65e;
  --cool: #66d6e6;
  --mint: #9bd8bd;
  --accent: #c4e7e4;
  --radius: 12px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .24);
  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 44% -12%, rgba(32, 80, 95, .23), transparent 46%), var(--bg); 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 { outline: 2px solid #9edbdc; outline-offset: 3px; }
.app-shell { max-width: 1920px; margin: 0 auto; padding: 0 28px 24px; }
.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: 29px; height: 29px; border: 1px solid rgba(130, 202, 211, .55); border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(45deg); }
.brand-mark span { display: block; width: 3px; border-radius: 4px; background: #8cd6df; transform: rotate(-45deg); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .6; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 11px; opacity: .75; }
.eyebrow, .section-kicker, .scene-kicker { color: #7fabb5; font-size: 9px; font-weight: 750; letter-spacing: .18em; }
.brand-name { margin-top: 2px; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.brand-name span { margin-left: 7px; color: #6d8b95; font-size: 9px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 13px; }
.live-chip { border: 1px solid rgba(112, 198, 181, .25); background: rgba(43, 120, 104, .1); color: #a5d9c9; border-radius: 100px; padding: 6px 10px; font-size: 9px; font-weight: 750; letter-spacing: .12em; display: flex; align-items: center; gap: 7px; }
.live-chip i { width: 6px; height: 6px; background: #75d4b5; border-radius: 50%; box-shadow: 0 0 10px #75d4b5; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line-strong); background: transparent; border-radius: 50%; color: #9ebdc4; cursor: pointer; font-size: 15px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 18px; padding-top: 18px; align-items: start; }
.visual-column { min-width: 0; }
.scene-shell { height: clamp(450px, 54vh, 600px); min-height: 450px; position: relative; overflow: hidden; border: 1px solid rgba(120, 175, 187, .19); border-radius: 15px; background: radial-gradient(ellipse at 54% 45%, #163747 0%, #0a1d2a 54%, #07131d 100%); box-shadow: var(--shadow); isolation: isolate; }
.scene-root { position: absolute; inset: 0; z-index: 0; }
.scene-root canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.scene-vignette { pointer-events: none; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 16, 25, .65), transparent 45%), linear-gradient(0deg, rgba(5, 16, 25, .42), transparent 27%, transparent 76%, rgba(5, 16, 25, .26)); }
.scene-heading { position: absolute; z-index: 2; left: 25px; top: 24px; max-width: 360px; pointer-events: none; }
.scene-kicker { display: flex; align-items: center; gap: 8px; }
.kicker-line { width: 20px; height: 1px; background: #83c4c7; }
.scene-heading h1 { margin: 10px 0 6px; font-size: clamp(29px, 3.1vw, 42px); line-height: 1.05; font-weight: 650; letter-spacing: -.055em; }
.scene-heading h1 span { color: #8bcbd0; }
.scene-heading p { max-width: 300px; margin: 0; color: #9ab2b8; font-size: 11px; line-height: 1.55; }
.scene-badges { position: absolute; z-index: 2; left: 25px; top: 143px; display: flex; flex-wrap: wrap; gap: 7px; pointer-events: none; }
.scene-badge { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid rgba(146, 189, 197, .16); border-radius: 5px; background: rgba(8, 25, 36, .62); color: #afc5c9; font-size: 8px; font-weight: 700; letter-spacing: .08em; backdrop-filter: blur(10px); }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-warm { background: var(--warm); box-shadow: 0 0 8px rgba(244, 166, 94, .6); }
.dot-cool { background: var(--cool); box-shadow: 0 0 8px rgba(102, 214, 230, .55); }
.dot-interface { background: #c0d7d7; }
.scene-toolbar { position: absolute; right: 16px; top: 17px; z-index: 4; display: flex; gap: 6px; }
.tool-button { height: 29px; border: 1px solid rgba(145, 188, 197, .2); border-radius: 6px; padding: 0 9px; background: rgba(7, 21, 31, .68); color: #a8c0c5; font-size: 8px; font-weight: 750; letter-spacing: .09em; cursor: pointer; backdrop-filter: blur(10px); transition: border-color .2s, background .2s, transform .2s; }
.tool-button:hover { border-color: rgba(143, 212, 218, .55); background: rgba(18, 48, 61, .8); transform: translateY(-1px); }
.tool-button span { margin-right: 4px; color: #8ed4d8; font-size: 12px; }
.scene-footnote { position: absolute; left: 24px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 8px; color: #6e8d97; font-size: 8px; font-weight: 700; letter-spacing: .15em; pointer-events: none; }
.scale-mark { width: 18px; height: 7px; border-left: 1px solid #86aeb5; border-right: 1px solid #86aeb5; border-bottom: 1px solid #86aeb5; }
.scene-label { position: absolute; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid rgba(158, 201, 207, .18); border-radius: 5px; background: rgba(7, 21, 31, .76); color: #b7cbd0; font-size: 9px; letter-spacing: .01em; white-space: nowrap; pointer-events: none; backdrop-filter: blur(9px); transition: opacity .3s; }
.scene-label b { color: #80bdc6; font-size: 8px; letter-spacing: .08em; }
.label-pin { width: 5px; height: 5px; background: #8ed2d8; border-radius: 50%; box-shadow: 0 0 8px #8ed2d8; }
.label-upper { right: 10%; top: 26%; }
.label-interface { right: 8%; top: 52%; }
.label-sink { left: 52%; top: 72%; }
.label-rise { left: 28%; top: 40%; }
.context-overlay { display: none; position: absolute; z-index: 8; inset: 0; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: rgba(4, 13, 20, .92); text-align: center; padding: 30px; }
.context-overlay.visible { display: flex; }
.context-overlay strong { font-size: 15px; }
.context-overlay span { max-width: 330px; color: var(--muted); font-size: 11px; }
.context-icon { color: #8bd1d5; font-size: 30px; }
.scene-crosshair { position: absolute; z-index: 2; left: 50%; top: 50%; width: 18px; height: 18px; opacity: .15; pointer-events: none; transform: translate(-50%, -50%); }
.scene-crosshair:before, .scene-crosshair:after { content: ""; position: absolute; background: #b2e2e4; }
.scene-crosshair:before { width: 1px; height: 18px; left: 9px; }
.scene-crosshair:after { height: 1px; width: 18px; top: 9px; }
.transport-bar { min-height: 66px; display: flex; align-items: center; gap: 16px; padding: 10px 14px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(100deg, rgba(14, 32, 45, .95), rgba(9, 25, 36, .94)); }
.transport-left { display: flex; gap: 7px; align-items: center; }
.primary-button, .secondary-button { height: 34px; border-radius: 6px; padding: 0 12px; cursor: pointer; font-size: 9px; font-weight: 800; letter-spacing: .1em; transition: transform .2s, background .2s, border-color .2s; }
.primary-button { border: 1px solid rgba(142, 215, 212, .4); background: linear-gradient(135deg, #a2d5ce, #72b7b8); color: #08212a; min-width: 98px; }
.primary-button:hover { transform: translateY(-1px); background: #b9e4dc; }
.play-symbol { margin-right: 7px; font-size: 11px; }
.secondary-button { border: 1px solid var(--line-strong); background: rgba(17, 39, 52, .72); color: #a8c1c7; }
.secondary-button:hover { border-color: rgba(139, 207, 211, .5); background: rgba(24, 53, 66, .9); }
.transport-time { display: flex; flex-direction: column; min-width: 74px; padding-left: 8px; border-left: 1px solid var(--line); }
.transport-label, .speed-control label { color: #6f8b95; font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.transport-time strong { margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.speed-control { margin-left: auto; width: 158px; }
.speed-control label { display: flex; justify-content: space-between; align-items: center; }
.speed-control label strong { color: #b8d9d9; font-size: 10px; letter-spacing: .02em; }
input[type="range"] { appearance: none; width: 100%; height: 4px; margin: 10px 0 4px; border-radius: 10px; background: linear-gradient(90deg, #77bfc2, #315e6c); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #d1f1e8; border: 2px solid #4f969a; box-shadow: 0 0 0 3px rgba(114, 196, 193, .13); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #d1f1e8; border: 2px solid #4f969a; box-shadow: 0 0 0 3px rgba(114, 196, 193, .13); }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.readout-card { min-height: 89px; padding: 12px 13px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(10, 27, 39, .8); }
.readout-label { color: #7896a0; font-size: 8px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.info-dot { display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; margin-left: 3px; border: 1px solid #547580; border-radius: 50%; color: #8baeb7; font-size: 8px; font-weight: 500; letter-spacing: 0; }
.readout-value { margin-top: 6px; color: #e5f2f0; font-size: 22px; line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout-value .unit { margin-left: 4px; color: #9bb5bb; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.readout-sub { margin-top: 7px; color: #67828c; font-size: 7px; font-weight: 750; letter-spacing: .1em; white-space: nowrap; }
.validation-card { margin-top: 10px; padding: 15px 16px 12px; border: 1px solid rgba(121, 177, 184, .17); border-radius: 10px; background: linear-gradient(120deg, rgba(12, 31, 43, .94), rgba(9, 24, 35, .92)); }
.validation-head { display: flex; align-items: center; justify-content: space-between; }
.validation-head h2 { margin: 3px 0 0; font-size: 14px; font-weight: 620; letter-spacing: -.02em; }
.validation-tag { border: 1px solid rgba(107, 196, 162, .32); border-radius: 4px; padding: 4px 7px; color: #9cdbbd; background: rgba(51, 127, 98, .1); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.validation-tag.warn { color: #e6bf8b; border-color: rgba(215, 164, 90, .3); background: rgba(139, 91, 32, .12); }
.validation-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.validation-values > div { padding-left: 12px; border-left: 1px solid var(--line); }
.validation-values > div:first-child { padding-left: 0; border-left: 0; }
.validation-values span { display: block; color: #6e8a93; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.validation-values strong { display: inline-block; margin-top: 5px; color: #d7ebe8; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.validation-values small { margin-left: 4px; color: #79939b; font-size: 8px; }
.validation-note { margin: 11px 0 0; color: #78929a; font-size: 9px; line-height: 1.5; }
.science-panel { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(10, 26, 38, .84); overflow: hidden; }
.science-panel summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-panel summary strong { display: block; margin-top: 2px; font-size: 14px; font-weight: 650; }
.details-chevron { color: #8cb6bd; font-size: 19px; transition: transform .2s; }
.science-panel[open] .details-chevron { transform: rotate(180deg); }
.science-content { padding: 0 16px 18px; border-top: 1px solid var(--line); }
.science-intro { display: flex; gap: 12px; padding: 14px 0 10px; }
.science-icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(91, 166, 171, .12); color: #a0d4d4; font-size: 20px; }
.science-intro p { margin: 0; color: #9ab0b5; font-size: 10px; line-height: 1.6; }
.science-intro strong { color: #d7e9e6; }
.equation-block { padding: 12px 0; border-top: 1px solid rgba(140, 184, 192, .1); }
.equation-label { color: #76a5ae; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.equation { margin: 8px 0 5px; color: #e1f0ed; font-family: Georgia, "Times New Roman", serif; font-size: 19px; text-align: center; letter-spacing: .01em; }
.equation-small { font-size: 15px; line-height: 1.9; }
.fraction { display: inline-flex; vertical-align: middle; flex-direction: column; align-items: center; line-height: 1.1; padding: 0 3px; }
.fraction span:first-child { padding: 0 3px 3px; border-bottom: 1px solid rgba(218, 240, 237, .7); }
.fraction span:last-child { padding-top: 3px; }
.equation-block p { margin: 0; color: #819da5; font-size: 9px; line-height: 1.55; }
.equation-block p strong { color: #c6dedb; }
.parameter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 7px 0 14px; }
.parameter-grid > div { min-height: 57px; padding: 8px; border: 1px solid rgba(140, 184, 192, .1); border-radius: 6px; background: rgba(15, 39, 52, .45); }
.parameter-grid span { display: block; color: #88bdc2; font-family: Georgia, serif; font-size: 12px; }
.parameter-grid strong { display: block; margin-top: 3px; color: #c8dbda; font-size: 9px; font-weight: 650; }
.parameter-grid small { display: block; margin-top: 3px; color: #66818a; font-size: 7px; }
.assumptions { padding: 11px 12px; border-left: 2px solid rgba(113, 182, 184, .5); background: rgba(22, 51, 62, .27); }
.assumptions > strong { color: #bfd5d4; font-size: 9px; }
.assumptions ul { margin: 7px 0 0; padding-left: 15px; color: #8199a0; font-size: 9px; line-height: 1.65; }
.assumptions li + li { margin-top: 4px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 13px; color: #839da4; font-size: 8px; }
.legend-row span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.legend-dot.warm { background: var(--warm); }.legend-dot.cool { background: var(--cool); }.legend-dot.neutral { background: #8fa9ad; }
.disclaimer { padding: 12px 2px 0; color: #5f7881; font-size: 8px; letter-spacing: .03em; }
.control-column { position: sticky; top: 12px; max-height: calc(100vh - 98px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(106, 161, 171, .38) transparent; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(13, 31, 44, .97), rgba(8, 22, 33, .97)); box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.control-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.control-header h2 { margin: 3px 0 0; font-size: 18px; font-weight: 650; letter-spacing: -.04em; }
.control-index { color: #6d8b95; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.control-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; color: #87a8b0; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.micro-note { color: #526f79; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.preset-grid { display: grid; gap: 6px; }
.preset-button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px; padding: 7px 9px; border: 1px solid rgba(141, 184, 192, .13); border-radius: 7px; background: rgba(8, 23, 33, .68); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.preset-button:hover { border-color: rgba(128, 196, 202, .4); transform: translateX(2px); }
.preset-button.active { border-color: rgba(135, 205, 202, .48); background: linear-gradient(90deg, rgba(66, 124, 123, .2), rgba(19, 49, 59, .55)); }
.preset-icon { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; font-size: 17px; }
.warm-icon { color: #f0ad71; background: rgba(198, 112, 50, .12); }.mix-icon { color: #9fd1d1; background: rgba(77, 151, 157, .12); }.cool-icon { color: #79d5e0; background: rgba(60, 143, 163, .12); }
.preset-button b { display: block; color: #cbdedc; font-size: 10px; font-weight: 650; }
.preset-button small { display: block; margin-top: 2px; color: #718c94; font-size: 8px; }
.control-divider { height: 1px; margin: 15px 0 13px; background: var(--line); }
.slider-control { margin: 12px 0 13px; }
.slider-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slider-title label { color: #afc5c8; font-size: 10px; font-weight: 600; }
.slider-title output { color: #d5e9e5; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slider-control input[type="range"] { margin: 9px 0 2px; }
.slider-scale { display: flex; justify-content: space-between; color: #617d86; font-size: 7px; letter-spacing: .04em; }
.status-panel { margin-top: 16px; padding: 12px 11px 10px; border: 1px solid rgba(114, 188, 183, .17); border-radius: 8px; background: rgba(23, 59, 63, .17); }
.status-top { display: flex; align-items: center; gap: 7px; color: #a6d6c7; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.status-light { width: 6px; height: 6px; border-radius: 50%; background: #79d5b0; box-shadow: 0 0 9px rgba(121, 213, 176, .6); }
.status-panel p { margin: 7px 0 11px; color: #8ba6aa; font-size: 9px; line-height: 1.55; }
.status-panel[data-regime="stable"] .status-light { background: #83a6b6; box-shadow: 0 0 9px rgba(131, 166, 182, .45); }
.status-panel[data-regime="stable"] .status-top { color: #a4bdc7; }
.status-panel[data-regime="weak"] .status-light { background: #e0bd7e; box-shadow: 0 0 9px rgba(224, 189, 126, .45); }
.status-panel[data-regime="weak"] .status-top { color: #e0c795; }
.status-panel[data-regime="overturning"] .status-light { background: #e18d72; box-shadow: 0 0 9px rgba(225, 141, 114, .45); }
.status-panel[data-regime="overturning"] .status-top { color: #e6a58e; }
.density-bar { height: 5px; position: relative; border-radius: 10px; background: linear-gradient(90deg, #e4a46b 0%, #7dbebd 30%, #4e929b 58%, #35566b 100%); }
.density-band { position: absolute; left: 26%; width: 37%; top: -2px; bottom: -2px; border: 1px solid rgba(202, 234, 223, .65); border-radius: 4px; }
.density-marker { position: absolute; top: -5px; left: 42%; width: 2px; height: 15px; background: #e8f5e9; box-shadow: 0 0 8px rgba(224, 255, 246, .8); z-index: 1; transition: left .2s; }
.density-legend { display: flex; justify-content: space-between; margin-top: 8px; color: #5f7c84; font-size: 6px; font-weight: 750; letter-spacing: .08em; }
.control-foot { display: flex; justify-content: space-between; margin-top: 14px; color: #57727d; font-size: 7px; font-weight: 700; letter-spacing: .11em; }
.control-foot b { color: #8ba7ad; font-weight: 800; }
body.embed .app-shell { padding: 0 12px 12px; }
body.embed .topbar { display: none; }
body.embed .workspace { padding-top: 0; }
body.embed .scene-shell { border-radius: 0 0 12px 12px; }
@media (min-width: 1500px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; }
  .scene-shell { height: min(62vh, 720px); }
  .control-column { padding: 19px; }
}
@media (max-width: 1100px) {
  .app-shell { padding: 0 16px 20px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
  .scene-shell { height: 490px; }
  .readout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-column { padding: 13px; }
  .scene-heading { left: 18px; top: 19px; }
  .scene-badges { left: 18px; top: 132px; }
}
@media (max-width: 780px) {
  .app-shell { padding: 0 10px 16px; }
  .topbar { height: 58px; }
  .workspace { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
  .visual-column, .control-column { width: 100%; }
  .scene-shell { height: min(58vh, 540px); min-height: 390px; border-radius: 11px; }
  .scene-heading { left: 15px; top: 16px; max-width: 260px; }
  .scene-heading h1 { font-size: 31px; }
  .scene-heading p { max-width: 235px; font-size: 10px; }
  .scene-badges { left: 15px; top: 123px; gap: 5px; }
  .scene-badge { padding: 4px 6px; font-size: 7px; }
  .scene-toolbar { right: 8px; top: 8px; flex-direction: column; }
  .tool-button { height: 25px; padding: 0 7px; font-size: 7px; }
  .scene-label { font-size: 8px; padding: 4px 6px; }
  .label-upper { right: 5%; top: 27%; }
  .label-interface { right: 3%; top: 51%; }
  .label-sink { left: 46%; top: 74%; }
  .label-rise { left: 5%; top: 44%; }
  .scene-footnote { left: 14px; bottom: 12px; font-size: 7px; }
  .transport-bar { flex-wrap: wrap; gap: 10px; padding: 9px; }
  .transport-left { gap: 5px; }
  .primary-button, .secondary-button { height: 32px; padding: 0 9px; font-size: 8px; }
  .transport-time { margin-left: auto; }
  .speed-control { order: 3; width: 100%; margin-left: 0; padding: 0 2px; }
  .speed-control input { margin-top: 7px; }
  .readout-grid { gap: 7px; }
  .readout-card { min-height: 80px; padding: 10px; }
  .readout-value { font-size: 21px; }
  .control-column { position: static; max-height: none; overflow: visible; padding: 15px; }
  .preset-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .preset-button { min-height: 82px; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; }
  .preset-icon { width: 23px; height: 23px; flex-basis: 23px; }
  .preset-button b { font-size: 9px; }
  .preset-button small { font-size: 7px; line-height: 1.3; }
  .control-divider { margin: 13px 0 11px; }
  .slider-control { margin: 11px 0 12px; }
  .validation-values { gap: 7px; }
  .validation-values > div { padding-left: 8px; }
  .validation-values strong { font-size: 12px; }
  .validation-values small { display: block; margin: 2px 0 0; }
  .parameter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 390px) {
  .scene-shell { min-height: 370px; }
  .scene-heading h1 { font-size: 28px; }
  .scene-heading p { max-width: 205px; }
  .scene-badges { top: 115px; }
  .scene-label { font-size: 7px; }
  .scene-label b { display: none; }
  .readout-label { font-size: 7px; }
  .readout-value { font-size: 19px; }
  .readout-sub { font-size: 6px; }
  .preset-button { min-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
