:root {
  color-scheme: dark;
  --bg: #08121d;
  --bg-soft: #0b1723;
  --panel: #101e2b;
  --panel-2: #122332;
  --panel-3: #172a39;
  --line: rgba(149, 186, 208, .14);
  --line-strong: rgba(149, 186, 208, .23);
  --text: #e6f0f5;
  --muted: #8ea4b4;
  --dim: #607989;
  --cyan: #6ed8f4;
  --ice: #b4e9fb;
  --blue: #58b9e2;
  --warm: #e6b67f;
  --green: #82d5b6;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: 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 20% -15%, rgba(49, 103, 131, .16), transparent 42%), var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .005em;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, canvas:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.app-shell { max-width: 1780px; margin: 0 auto; padding: 0 34px 28px; }
.topbar { height: 70px; 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; border: 1px solid rgba(110,216,244,.42); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 3px; transform: rotate(-8deg); background: rgba(67,151,183,.08); }
.brand-mark span { width: 3px; border-radius: 3px; background: var(--cyan); display: block; }
.brand-mark span:nth-child(1) { height: 8px; opacity: .55; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 11px; opacity: .75; }
.eyebrow, .brand-sub, .section-kicker, .scene-caption, .hud-label, .metric-head, .subhead, .tiny-label, .control-count, .mechanism-top, .science-number, .validation-values span, .footer, .live-indicator, .seed-chip, .tool-button em, .speed-control, .scene-hints, .scene-legend, .scene-scale, .readout-note, .model-state, .range-ends { font-family: var(--mono); letter-spacing: .09em; }
.eyebrow { color: #b8ceda; font-size: 10px; font-weight: 700; }
.eyebrow-dot { display: inline-block; width: 3px; height: 3px; margin: 0 6px 2px; border-radius: 50%; background: var(--cyan); }
.brand-sub { color: #5f7b8c; font-size: 9px; margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.live-indicator { font-size: 9px; color: #91b4c5; display: flex; align-items: center; gap: 7px; }
.live-indicator i, .state-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #72c9a7; box-shadow: 0 0 0 4px rgba(114,201,167,.1); }
.seed-chip { color: #6f8998; border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; font-size: 9px; }
.seed-chip b { color: #c2d5df; font-weight: 600; margin-left: 5px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, .78fr); gap: 22px; padding-top: 23px; align-items: start; }
.visual-column { min-width: 0; }
.title-row { min-height: 83px; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 2px 14px; }
.section-kicker { font-size: 9px; font-weight: 700; color: #7291a3; display: flex; align-items: center; gap: 8px; }
.kicker-line { width: 17px; height: 1px; background: var(--cyan); display: inline-block; }
h1 { margin: 5px 0 0; font-size: clamp(29px, 3vw, 39px); line-height: 1.02; letter-spacing: -.055em; font-weight: 680; }
.title-period { color: var(--cyan); }
.subtitle { color: #9aafbd; margin: 4px 0 0; font-size: 13px; }
.model-state { display: flex; align-items: center; gap: 8px; margin-top: 29px; font-size: 9px; color: #7795a5; white-space: nowrap; }
.state-dot { width: 6px; height: 6px; background: #8ba2ae; box-shadow: none; }
.state-dot.is-running { background: #74d9b2; box-shadow: 0 0 0 4px rgba(116,217,178,.12); }
.scene-card { overflow: hidden; border: 1px solid rgba(130,177,199,.2); border-radius: 10px; background: #0a1722; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.scene-topline { height: 36px; padding: 0 13px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(140,180,200,.1); background: linear-gradient(90deg, rgba(19,38,52,.9), rgba(10,22,32,.95)); }
.scene-caption { font-size: 9px; color: #a3bac8; font-weight: 700; }
.scene-caption-icon { color: var(--cyan); font-size: 14px; margin-right: 4px; }
.caption-divider { color: #425d6c; padding: 0 5px; }
#sceneMode { color: #6f9aac; }
.scene-hints { display: flex; gap: 12px; color: #607c8c; font-size: 8px; }
kbd { border: 1px solid rgba(141,176,194,.2); border-radius: 3px; padding: 2px 4px; font: inherit; color: #9db3bf; }
.scene-wrap { position: relative; height: clamp(390px, 51vh, 525px); min-height: 360px; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #183143 0%, #0d1d2a 49%, #08131e 100%); }
.three-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; outline: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(ellipse at center, transparent 52%, rgba(3,10,16,.36) 100%); }
.scene-grid { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .12; background-image: linear-gradient(rgba(130,190,216,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(130,190,216,.13) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, transparent, black 22%, black 80%, transparent); }
.scene-loading { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; background: #0a1722; color: #8ca8b8; font: 9px var(--mono); letter-spacing: .14em; transition: opacity .35s ease; }
.scene-loading.is-hidden { opacity: 0; pointer-events: none; }
.loader-ring { width: 27px; height: 27px; border: 2px solid rgba(110,216,244,.15); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene-error { max-width: 300px; text-align: center; line-height: 1.7; color: #e6b67f; }
.scene-hud { position: absolute; z-index: 4; top: 14px; padding: 8px 10px 7px; min-width: 112px; border: 1px solid rgba(145,190,210,.16); border-radius: 5px; background: rgba(7,18,28,.72); backdrop-filter: blur(8px); pointer-events: none; }
.scene-hud-left { left: 13px; }
.scene-hud-right { right: 13px; text-align: right; }
.hud-label { display: block; font-size: 8px; color: #7d9aaa; }
.scene-hud b { display: block; margin-top: 2px; font: 600 17px var(--mono); color: #d9f3fc; letter-spacing: -.04em; }
.scene-hud small { display: block; color: #668294; font-size: 9px; margin-top: 1px; }
.annotation-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.annotation { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 6px; color: #d1eff9; font: 700 8px var(--mono); letter-spacing: .08em; white-space: nowrap; text-shadow: 0 1px 5px #06111b, 0 0 9px #06111b; opacity: 0; transition: opacity .2s ease; }
.annotation i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(110,216,244,.16), 0 0 12px var(--cyan); }
.ann-lens i { background: #a9edff; }
.ann-flow i { background: #56c8f0; }
.scene-legend { position: absolute; z-index: 4; bottom: 13px; left: 13px; display: flex; gap: 13px; color: #9bb1bd; font-size: 8px; padding: 7px 9px; border-radius: 4px; background: rgba(7,18,28,.68); border: 1px solid rgba(145,190,210,.12); backdrop-filter: blur(6px); }
.scene-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.legend-dot.frozen { background: #b3d9eb; }
.legend-dot.water { background: #4ecaf4; }
.legend-dot.ice { background: #a1f0ff; box-shadow: 0 0 6px #68c9e9; }
.scene-scale { position: absolute; z-index: 4; bottom: 15px; right: 14px; display: flex; align-items: center; gap: 7px; color: #6f8998; font-size: 8px; }
.scene-scale i { width: 45px; height: 1px; background: rgba(161,202,222,.55); position: relative; }
.scene-scale i::before, .scene-scale i::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: rgba(161,202,222,.65); }
.scene-scale i::before { left: 0; } .scene-scale i::after { right: 0; }
.transport-bar { min-height: 53px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 12px; background: #0e1d29; border-top: 1px solid rgba(145,190,210,.12); }
.transport-main, .transport-tools { display: flex; align-items: center; gap: 7px; }
.icon-button { width: 31px; height: 31px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid rgba(146,181,199,.17); border-radius: 6px; color: #9eb8c6; background: #142736; cursor: pointer; font-size: 13px; transition: .18s ease; }
.icon-button:hover, .tool-button:hover { color: #e8f8ff; border-color: rgba(110,216,244,.48); background: #193448; }
.icon-button.primary { color: #09202a; background: var(--cyan); border-color: var(--cyan); font-size: 11px; }
.icon-button.primary:hover { background: #a0eafa; }
.play-glyph { transform: translateX(1px); }
.transport-divider { width: 1px; height: 23px; background: var(--line-strong); margin: 0 5px; }
.speed-control { font-size: 8px; color: #6f8a9a; }
#speedSelect { color: #c5d8e2; background: #142735; border: 1px solid rgba(146,181,199,.17); border-radius: 5px; padding: 6px 7px; font: 10px var(--mono); outline: none; }
.tool-button { border: 1px solid transparent; background: transparent; color: #8ba5b4; height: 32px; padding: 0 7px; border-radius: 5px; display: flex; align-items: center; gap: 5px; cursor: pointer; transition: .18s ease; }
.tool-button span { font-size: 15px; }
.tool-button em { font-size: 8px; font-style: normal; }
.tool-button.is-low { color: var(--warm); }
.export-button { color: #8bd9ef; }
.metrics-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.metric-card { min-width: 0; padding: 10px 11px 9px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(145deg, rgba(18,35,49,.95), rgba(13,27,39,.95)); }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: #7e9aa9; font-size: 8px; font-weight: 700; white-space: nowrap; }
.metric-icon { font-style: normal; font-size: 14px; color: #7897a9; }
.depth-icon { color: #b7d2df; }
.accent-cyan .metric-icon, .accent-cyan .metric-value { color: var(--cyan); }
.accent-ice .metric-icon, .accent-ice .metric-value { color: #a9e5f5; }
.accent-warm .metric-icon, .accent-warm .metric-value { color: var(--warm); }
.metric-value { display: flex; align-items: baseline; gap: 5px; margin-top: 3px; color: #e3f1f6; }
.metric-value b { font: 600 22px var(--mono); letter-spacing: -.07em; }
.metric-value small { font: 10px var(--mono); color: #89a5b4; }
.metric-foot { color: #698392; font-size: 9px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout-note { color: #617e8e; font-size: 8px; display: flex; align-items: center; gap: 7px; margin: 8px 1px 0; letter-spacing: .045em; }
.readout-note b { color: #91b3c4; font-size: 8px; }
.note-mark { display: inline-flex; width: 13px; height: 13px; align-items: center; justify-content: center; border: 1px solid rgba(110,216,244,.38); color: var(--cyan); border-radius: 50%; font: 9px var(--mono); }
.control-column { min-width: 0; padding: 17px 17px 15px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(150deg, rgba(17,32,45,.98), rgba(12,25,37,.98)); box-shadow: 0 15px 45px rgba(0,0,0,.12); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 21px; font-weight: 620; letter-spacing: -.04em; }
.control-count { color: #6c8797; font-size: 8px; white-space: nowrap; margin-bottom: 4px; }
.panel-intro { color: #8ba2b0; font-size: 11px; line-height: 1.55; margin: 7px 0 15px; max-width: 350px; }
.preset-block, .controls-block { border-top: 1px solid var(--line); padding-top: 12px; }
.subhead { display: flex; justify-content: space-between; align-items: center; color: #9bb3c0; font-size: 8px; font-weight: 700; margin-bottom: 9px; }
.tiny-label { color: #617d8d; font-size: 7px; font-weight: 400; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 14px; }
.preset-button { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 8px 8px 7px; border: 1px solid rgba(143,178,196,.15); border-radius: 6px; background: rgba(17,35,49,.7); text-align: left; cursor: pointer; transition: .18s ease; }
.preset-button:hover { border-color: rgba(110,216,244,.4); background: rgba(27,52,68,.75); }
.preset-button.selected { border-color: rgba(110,216,244,.68); background: rgba(36,82,101,.22); box-shadow: inset 0 0 0 1px rgba(110,216,244,.08); }
.preset-swatch { width: 23px; height: 4px; border-radius: 3px; margin-bottom: 7px; background: #c4a47a; }
.sand-swatch { background: #d5b982; }
.clay-swatch { background: #9c8a78; }
.preset-button b { font-size: 10px; font-weight: 650; color: #d5e2e9; white-space: nowrap; }
.preset-button small { color: #708a99; font-size: 8px; margin-top: 2px; white-space: nowrap; }
.controls-block { padding-top: 12px; }
.control-item { padding: 0 0 10px; margin-bottom: 9px; border-bottom: 1px solid rgba(143,178,196,.08); }
.control-item.last-control { border: 0; margin-bottom: 0; padding-bottom: 5px; }
.control-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.control-label label { color: #cbd9e1; font-size: 10px; font-weight: 550; }
.control-label output { color: #8bcfe2; font: 9px var(--mono); white-space: nowrap; }
.range { width: 100%; height: 4px; margin: 0; display: block; appearance: none; -webkit-appearance: none; border-radius: 8px; background: linear-gradient(90deg, #2f7795, #27495b); cursor: pointer; }
.range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #a5e7f6; border: 2px solid #163b4d; box-shadow: 0 0 0 3px rgba(110,216,244,.12); }
.range::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #a5e7f6; border: 2px solid #163b4d; box-shadow: 0 0 0 3px rgba(110,216,244,.12); }
.range-warm { background: linear-gradient(90deg, #9d704a, #534538); }
.range-warm::-webkit-slider-thumb { background: #e8bd8d; border-color: #4e3928; box-shadow: 0 0 0 3px rgba(230,182,127,.12); }
.range-warm::-moz-range-thumb { background: #e8bd8d; border-color: #4e3928; }
.range-ends { display: flex; justify-content: space-between; color: #617d8d; font-size: 7px; letter-spacing: .035em; margin-top: 5px; }
.mechanism-card { margin-top: 11px; padding: 11px 12px 10px; border: 1px solid rgba(92,173,205,.2); border-radius: 6px; background: linear-gradient(110deg, rgba(24,63,80,.32), rgba(18,39,53,.45)); }
.mechanism-top { display: flex; align-items: center; gap: 7px; color: #85adbf; font-size: 8px; font-weight: 700; }
.mechanism-icon { color: var(--cyan); font-size: 15px; }
.mechanism-status { margin-left: auto; color: #8fd7b8; font-size: 7px; }
.mechanism-card p { margin: 7px 0 8px; color: #9cb4c0; font-size: 9px; line-height: 1.55; }
.mechanism-equation { display: inline-block; color: #c9eaf4; font: 12px var(--mono); letter-spacing: -.02em; padding: 5px 8px; border-radius: 4px; background: rgba(4,17,27,.38); }
.mechanism-equation span { color: var(--cyan); }
.science-section { margin-top: 20px; border: 1px solid var(--line); border-radius: 9px; background: rgba(13,27,39,.86); overflow: hidden; }
.science-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 17px; }
.science-details > summary::-webkit-details-marker { display: none; }
.science-symbol { width: 30px; height: 30px; border: 1px solid rgba(110,216,244,.26); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--cyan); font: 16px var(--mono); background: rgba(48,112,140,.1); }
.science-details summary b { display: block; font-size: 12px; color: #d6e5eb; }
.science-details summary small { display: block; font-size: 9px; color: #7792a1; margin-top: 1px; }
.science-toggle { margin-left: auto; color: #80a1b2; font: 17px var(--mono); }
.science-content { border-top: 1px solid var(--line); padding: 16px 17px 14px; }
.science-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.science-card { padding: 13px; border: 1px solid rgba(143,178,196,.13); border-radius: 6px; background: rgba(19,38,52,.5); }
.science-number { color: #6d9aaf; font-size: 8px; font-weight: 700; }
.science-card h3, .validation-panel h3 { margin: 6px 0 5px; font-size: 12px; font-weight: 620; color: #d6e6ed; }
.science-card p, .validation-panel p { margin: 0; color: #8ca5b2; font-size: 10px; line-height: 1.55; }
.equation { margin: 10px 0 7px; padding: 8px 7px; border-radius: 4px; background: rgba(5,18,28,.55); color: #b9e8f4; text-align: center; font: 12px var(--mono); white-space: nowrap; }
.science-card > small { color: #7893a1; font-size: 9px; line-height: 1.5; display: block; }
.science-card > small b { color: #9db9c7; }
.validation-panel { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.4fr); gap: 20px; align-items: center; margin-top: 12px; padding: 14px; border: 1px solid rgba(110,216,244,.19); border-radius: 6px; background: rgba(24,62,78,.17); }
.validation-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.validation-values > div { padding: 9px; background: rgba(6,19,29,.42); border-radius: 5px; border: 1px solid rgba(143,178,196,.1); min-width: 0; }
.validation-values span { display: block; color: #6f92a4; font-size: 7px; white-space: nowrap; }
.validation-values b { display: block; color: #c8eef7; font: 600 16px var(--mono); margin: 4px 0 2px; }
.validation-values small { color: #728c9b; font-size: 8px; line-height: 1.4; display: block; }
.assumptions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.assumptions-row > div { padding: 10px 12px; border-left: 2px solid rgba(110,216,244,.35); background: rgba(19,38,52,.35); }
.assumptions-row b { display: block; color: #9ab9c8; font: 700 8px var(--mono); letter-spacing: .08em; margin-bottom: 4px; }
.assumptions-row span { color: #829ba9; font-size: 9px; line-height: 1.55; }
.disclaimer { margin: 12px 0 0; color: #647f8e; font-size: 9px; font-style: italic; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 2px 0; color: #4e6979; font-size: 8px; }
.context-lost::after { content: "WEBGL CONTEXT LOST — waiting for graphics device restoration"; position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; background: rgba(5,13,20,.9); color: #e6b67f; font: 10px var(--mono); letter-spacing: .08em; text-align: center; padding: 20px; }
.embed-mode .app-shell { padding-top: 0; }
.embed-mode .topbar, .embed-mode .science-section, .embed-mode .footer { display: none; }
.embed-mode .workspace { padding-top: 12px; }
.embed-mode .title-row { min-height: 66px; }

@media (max-width: 1120px) {
  .app-shell { padding-left: 22px; padding-right: 22px; }
  .workspace { grid-template-columns: minmax(0, 1.4fr) minmax(310px, .85fr); gap: 15px; }
  .control-column { padding: 14px; }
  .scene-wrap { height: clamp(370px, 48vh, 500px); }
  .metric-card { padding-left: 9px; padding-right: 8px; }
  .metric-value b { font-size: 19px; }
  .metric-head { font-size: 7px; }
  .tool-button { padding: 0 5px; }
  .tool-button em { font-size: 7px; }
}
@media (max-width: 860px) {
  .workspace { grid-template-columns: 1fr; }
  .control-column { order: 2; }
  .scene-wrap { height: min(58vw, 500px); min-height: 390px; }
  .science-grid { grid-template-columns: 1fr; }
  .science-card { padding: 12px; }
}
@media (max-width: 560px) {
  .app-shell { padding: 0 12px 22px; }
  .topbar { height: 54px; }
  .brand-mark { width: 24px; height: 24px; }
  .eyebrow { font-size: 8px; }
  .brand-sub { font-size: 8px; }
  .topbar-right { gap: 7px; }
  .live-indicator { font-size: 7px; }
  .seed-chip { font-size: 7px; padding: 5px 6px; }
  .workspace { padding-top: 15px; gap: 13px; }
  .title-row { min-height: 74px; padding-bottom: 10px; }
  .section-kicker { font-size: 8px; }
  h1 { font-size: 31px; }
  .subtitle { font-size: 11px; }
  .model-state { margin-top: 24px; font-size: 7px; gap: 6px; }
  .scene-card { border-radius: 8px; }
  .scene-topline { height: 32px; padding: 0 9px; }
  .scene-caption { font-size: 8px; }
  .scene-hints { display: none; }
  .scene-wrap { height: 410px; min-height: 410px; }
  .scene-hud { top: 9px; min-width: 96px; padding: 6px 7px; }
  .scene-hud-left { left: 8px; }
  .scene-hud-right { right: 8px; }
  .scene-hud b { font-size: 14px; }
  .scene-hud small { font-size: 8px; }
  .scene-legend { left: 8px; bottom: 9px; gap: 8px; font-size: 7px; padding: 6px 7px; }
  .scene-scale { display: none; }
  .annotation { font-size: 7px; }
  .transport-bar { min-height: 49px; padding: 6px 7px; gap: 5px; }
  .transport-main, .transport-tools { gap: 4px; }
  .icon-button { width: 29px; height: 29px; }
  .transport-divider { margin: 0 2px; }
  .speed-control { font-size: 7px; }
  #speedSelect { padding: 5px 4px; font-size: 9px; }
  .tool-button { width: 28px; justify-content: center; padding: 0; }
  .tool-button em { display: none; }
  .tool-button span { font-size: 16px; }
  .metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
  .metric-card { padding: 9px 10px 8px; }
  .metric-head { font-size: 8px; }
  .metric-value b { font-size: 21px; }
  .metric-foot { font-size: 8px; }
  .readout-note { font-size: 7px; line-height: 1.5; }
  .control-column { padding: 14px 12px 12px; }
  .panel-heading h2 { font-size: 19px; }
  .panel-intro { font-size: 10px; }
  .preset-button { padding: 7px 6px; }
  .preset-button b { font-size: 9px; }
  .preset-button small { font-size: 7px; }
  .control-label label { font-size: 10px; }
  .control-label output { font-size: 8px; }
  .range-ends { font-size: 7px; }
  .mechanism-card p { font-size: 9px; }
  .science-details > summary { padding: 12px; }
  .science-content { padding: 12px; }
  .validation-panel { grid-template-columns: 1fr; gap: 10px; padding: 11px; }
  .validation-values { gap: 5px; }
  .validation-values > div { padding: 7px 6px; }
  .validation-values span { font-size: 6px; }
  .validation-values b { font-size: 12px; }
  .validation-values small { font-size: 7px; }
  .assumptions-row { grid-template-columns: 1fr; gap: 7px; }
  .footer { flex-direction: column; font-size: 7px; }
}
@media (max-width: 365px) {
  .scene-wrap { height: 380px; min-height: 380px; }
  .scene-legend { gap: 5px; font-size: 6px; }
  .metric-head { font-size: 7px; }
  .metric-value b { font-size: 19px; }
  .preset-grid { gap: 4px; }
  .preset-button b { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
