:root {
  color-scheme: dark;
  --bg: #07131e;
  --panel: rgba(11, 25, 38, 0.94);
  --panel-2: #0e2030;
  --line: rgba(129, 169, 191, 0.16);
  --line-strong: rgba(129, 169, 191, 0.27);
  --text: #e8f2f7;
  --muted: #8da5b4;
  --muted-2: #617b8b;
  --cyan: #70d9f4;
  --cyan-soft: rgba(112, 217, 244, 0.12);
  --blue: #3caed2;
  --amber: #e6ad73;
  --green: #8fd7c4;
  --radius: 15px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.app-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 47% 4%, rgba(26, 73, 94, 0.16), transparent 38%),
    linear-gradient(180deg, #081722 0%, #07131e 100%);
}

.topbar {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(130, 171, 191, 0.13);
  background: rgba(5, 15, 24, 0.72);
}
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid rgba(112, 217, 244, 0.46); border-radius: 10px;
  color: #a8eaff; font-size: 15px; font-weight: 800;
  background: linear-gradient(145deg, rgba(67, 163, 198, 0.24), rgba(15, 43, 60, 0.34));
  box-shadow: inset 0 0 14px rgba(93, 211, 242, 0.08);
}
.brand-name { font-size: 11px; letter-spacing: 0.16em; font-weight: 800; }
.brand-name span { color: #7390a1; font-weight: 600; margin-left: 6px; letter-spacing: 0.11em; }
.brand-subtitle { margin-top: 4px; font-size: 8px; letter-spacing: 0.18em; color: #7793a3; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.chapter-chip, .seed-label { font-size: 9px; letter-spacing: 0.14em; color: #9bb5c3; }
.chapter-chip { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(112, 217, 244, 0.2); border-radius: 20px; background: rgba(51, 135, 165, 0.08); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.seed-label { color: #607d8d; }

.workspace {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 270px minmax(420px, 1fr) 278px;
  gap: 12px;
  padding: 12px;
}
.panel {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #294457 transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.018);
  padding: 16px 15px;
}
.panel::-webkit-scrollbar { width: 5px; }
.panel::-webkit-scrollbar-thumb { background: #294457; border-radius: 8px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.panel-heading h2 { margin: 5px 0 0; font-size: 15px; letter-spacing: -0.025em; font-weight: 650; }
.compact-heading { margin-bottom: 14px; }
.eyebrow { font-size: 8px; letter-spacing: 0.18em; color: #7291a3; font-weight: 750; }
.panel-icon { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #7bbdd1; font-size: 19px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.section-row h3 { margin: 0; font-size: 9px; letter-spacing: 0.15em; font-weight: 800; color: #b4c9d4; }
.micro-label { font-size: 7px; letter-spacing: 0.13em; color: #5e7b8b; }
.section-divider { height: 1px; background: var(--line); margin: 16px 0; }

.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.preset-button {
  min-width: 0; min-height: 58px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  padding: 7px 3px; border: 1px solid rgba(129, 169, 191, 0.14); border-radius: 10px;
  background: rgba(21, 42, 57, 0.62); color: #9cb2bf; cursor: pointer;
  font-size: 8px; font-weight: 650; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.preset-button:hover { transform: translateY(-1px); border-color: rgba(112, 217, 244, 0.38); color: #e1f7ff; }
.preset-button.selected { border-color: rgba(112, 217, 244, 0.55); background: rgba(61, 150, 181, 0.16); color: #e3f8ff; box-shadow: inset 0 0 16px rgba(112, 217, 244, 0.05); }
.preset-glyph { font-size: 17px; line-height: 1; color: var(--cyan); }
.slow-glyph { color: #d6b27e; }
.dry-glyph { color: #9bb49e; }
.preset-description { margin: 9px 0 0; min-height: 28px; color: #708b9b; font-size: 9px; line-height: 1.45; }

.control-group { margin: 0 0 15px; }
.control-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.control-label-row label { color: #c9d9e1; font-size: 10px; font-weight: 600; }
.control-label-row output { color: #83d8ef; font-size: 9px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.control-help { margin: 4px 0 0; font-size: 8px; line-height: 1.35; color: #5f7989; }
input[type="range"] {
  appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 4px; margin: 0;
  border-radius: 8px; background: linear-gradient(90deg, #2b91b1, #25485d); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #b8f1ff; border: 2px solid #2c7189; box-shadow: 0 0 0 3px rgba(92, 207, 236, 0.12), 0 0 10px rgba(91, 213, 245, 0.24);
}
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #b8f1ff; border: 2px solid #2c7189; box-shadow: 0 0 0 3px rgba(92, 207, 236, 0.12); }
.range-ends { display: flex; justify-content: space-between; margin-top: 6px; color: #526e7f; font-size: 7px; letter-spacing: 0.07em; }
.speed-output { color: var(--cyan); font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.playback-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; margin-top: 12px; }
.action-button {
  min-height: 34px; border: 1px solid rgba(129, 169, 191, 0.19); border-radius: 8px;
  background: rgba(23, 45, 60, 0.75); color: #a9bfca; cursor: pointer;
  font-size: 9px; font-weight: 700; transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.action-button:hover { border-color: rgba(112, 217, 244, 0.44); background: rgba(40, 81, 103, 0.55); }
.action-button:active { transform: translateY(1px); }
.primary-action { color: #e4faff; border-color: rgba(91, 204, 235, 0.45); background: linear-gradient(135deg, rgba(39, 134, 166, 0.48), rgba(26, 80, 106, 0.52)); }

.scene-panel {
  position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(115, 164, 189, 0.2); border-radius: var(--radius);
  background: radial-gradient(ellipse at 52% 44%, #102737 0%, #091a27 52%, #07131e 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.scene-topline { position: absolute; z-index: 3; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.scene-title-block h1 { margin: 5px 0 3px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.1; letter-spacing: -0.045em; font-weight: 700; text-shadow: 0 2px 16px rgba(0,0,0,.32); }
.scene-title-block p { margin: 0; font-size: 10px; color: #8da8b7; }
.scene-status-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.run-status { padding: 6px 9px; border: 1px solid rgba(113, 221, 196, 0.26); border-radius: 18px; color: #9ce5d4; background: rgba(39, 123, 108, 0.13); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.run-status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: #7fe0c7; box-shadow: 0 0 8px #7fe0c7; }
.run-status.paused { color: #d9b77d; border-color: rgba(217, 183, 125, .28); background: rgba(130, 92, 38, .12); }
.run-status.paused::before { background: #d9b77d; box-shadow: none; }
.scale-chip { color: #7894a3; font-size: 7px; letter-spacing: .11em; }
.scene-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#scene-canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 15, 23, .30) 0%, transparent 22%, transparent 73%, rgba(5, 15, 23, .42) 100%), radial-gradient(ellipse at center, transparent 47%, rgba(3, 10, 17, .23) 100%); }
.annotation-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.annotation {
  position: absolute; padding: 6px 8px; border: 1px solid rgba(118, 207, 231, .28); border-radius: 6px;
  background: rgba(6, 23, 34, .78); color: #b7e9f6; font-size: 7px; letter-spacing: .12em; font-weight: 800;
  white-space: nowrap; transform: translate(-50%, -50%); box-shadow: 0 5px 18px rgba(0,0,0,.2); transition: opacity .15s ease;
}
.annotation span { color: #5bbbd8; margin-right: 5px; }
.water-annotation { border-color: rgba(63, 191, 231, .35); color: #8edff4; }
.lens-annotation { border-color: rgba(149, 232, 255, .44); color: #d0f8ff; }
.scene-legend { position: absolute; left: 18px; bottom: 62px; display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.scene-legend span { display: flex; align-items: center; gap: 7px; color: #9ab1bd; font-size: 7px; letter-spacing: .12em; font-weight: 700; text-shadow: 0 2px 7px #06111b; }
.legend-swatch { width: 7px; height: 7px; display: inline-block; border-radius: 2px; }
.cold-swatch { background: #72c8ed; box-shadow: 0 0 8px rgba(114,200,237,.6); }
.water-swatch { background: #40d7ff; box-shadow: 0 0 8px rgba(64,215,255,.6); }
.ice-swatch { background: #c3f4ff; box-shadow: 0 0 8px rgba(195,244,255,.6); }
.scene-bottom-hud { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 13px; display: grid; grid-template-columns: 92px minmax(90px, 1fr) auto; align-items: end; gap: 13px; pointer-events: none; }
.hud-readout { display: flex; flex-direction: column; gap: 4px; }
.hud-label, .timeline-label-row { color: #718d9d; font-size: 7px; letter-spacing: .13em; font-weight: 750; }
.hud-readout strong { color: #e0f5fc; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.timeline-wrap { min-width: 0; }
.timeline-label-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 6px; }
.timeline-track { height: 4px; overflow: hidden; border-radius: 8px; background: rgba(127, 167, 188, .19); }
.timeline-fill { height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, #3b9fbe, #9ceeff); box-shadow: 0 0 9px rgba(102, 219, 246, .4); transition: width .16s linear; }
.flow-state { padding: 6px 8px; border: 1px solid rgba(91, 208, 240, .25); border-radius: 6px; color: #8de5fa; background: rgba(18, 83, 107, .2); font-size: 7px; letter-spacing: .1em; font-weight: 800; white-space: nowrap; }
.flow-state.inactive { color: #d1aa79; border-color: rgba(209, 170, 121, .24); background: rgba(103, 73, 37, .16); }
.context-message { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(4, 13, 21, .94); text-align: center; padding: 24px; }
.context-message[hidden] { display: none; }
.context-message strong { color: #e8f5fa; font-size: 14px; }
.context-message span { max-width: 280px; color: #91a9b7; font-size: 11px; line-height: 1.5; }
.scene-toolbar { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 13px; border-top: 1px solid rgba(123, 168, 189, .15); background: rgba(5, 15, 24, .65); }
.drag-hint { color: #688697; font-size: 7px; letter-spacing: .11em; font-weight: 700; }
.mouse-icon { color: #8ecfe0; margin-right: 5px; font-size: 12px; }
.toolbar-actions { display: flex; gap: 5px; }
.tool-button { min-height: 28px; padding: 0 8px; border: 1px solid rgba(129, 169, 191, .17); border-radius: 7px; background: rgba(18, 38, 53, .78); color: #9bb4c1; cursor: pointer; font-size: 10px; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.tool-button span { font-size: 8px; font-weight: 650; }
.tool-button:hover { border-color: rgba(112, 217, 244, .44); color: #e0f8ff; background: rgba(36, 79, 99, .5); }
.export-button { color: #bcefff; border-color: rgba(112, 217, 244, .26); }

.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: #75dfc4; box-shadow: 0 0 0 4px rgba(117, 223, 196, .08), 0 0 10px rgba(117, 223, 196, .4); }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.readout-card { min-width: 0; padding: 11px 10px 10px; border: 1px solid rgba(129, 169, 191, .15); border-radius: 10px; background: linear-gradient(145deg, rgba(24, 49, 65, .72), rgba(12, 29, 43, .76)); }
.readout-label { display: block; color: #7793a3; font-size: 7px; letter-spacing: .13em; font-weight: 800; }
.readout-card strong { display: block; margin-top: 7px; color: #e7f5fb; font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -.04em; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout-note { display: block; margin-top: 4px; color: #668191; font-size: 7px; line-height: 1.3; }
.heave-card strong { color: #e7c18d; }
.pressure-card strong { color: #b2e8f7; }
.water-card strong { color: #79d8ef; }
.secondary-readouts { margin-top: 10px; display: grid; gap: 7px; }
.secondary-readouts > div { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(129, 169, 191, .09); }
.secondary-readouts span { color: #6d8797; font-size: 7px; letter-spacing: .09em; }
.secondary-readouts strong { color: #b9cbd4; font-size: 9px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.validation-tag { padding: 4px 6px; border: 1px solid rgba(131, 213, 183, .22); border-radius: 5px; color: #8bd6bb; font-size: 7px; letter-spacing: .1em; font-weight: 800; }
.validation-intro { margin: 0 0 9px; color: #7993a2; font-size: 8px; line-height: 1.45; }
.validation-row, .validation-result { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0; }
.validation-row span, .validation-result span { color: #8ba1ad; font-size: 8px; }
.validation-row strong { color: #c9dce5; font-size: 8px; font-weight: 650; font-variant-numeric: tabular-nums; }
.validation-result { margin-top: 9px; padding: 8px; border: 1px solid rgba(112, 217, 244, .19); border-radius: 7px; background: rgba(43, 126, 152, .1); }
.validation-result span { color: #a2c5d2; }
.validation-result strong { color: #a1e8d5; font-size: 11px; font-variant-numeric: tabular-nums; }
.validation-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; color: #5f7988; font-size: 7px; }

.science-panel { border: 0; }
.science-panel summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-panel summary strong { display: block; margin-top: 4px; font-size: 14px; font-weight: 650; }
.summary-chevron { color: #8ba6b5; font-size: 17px; transition: transform .2s ease; }
.science-panel[open] .summary-chevron { transform: rotate(180deg); }
.science-content { padding-top: 12px; }
.mechanism-list { display: grid; gap: 10px; }
.mechanism-item { display: grid; grid-template-columns: 22px 1fr; gap: 7px; }
.mechanism-item > b { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(112, 217, 244, .2); border-radius: 6px; color: #72cde7; font-size: 8px; }
.mechanism-item strong { display: block; color: #c9dce4; font-size: 8px; font-weight: 700; }
.mechanism-item small { display: block; margin-top: 3px; color: #718a99; font-size: 7px; line-height: 1.4; }
.equation-card { display: grid; gap: 6px; margin-top: 13px; padding: 10px; border: 1px solid rgba(129, 169, 191, .14); border-radius: 8px; background: rgba(5, 17, 27, .45); }
.equation-label { margin-top: 3px; color: #68899b; font-size: 6px; letter-spacing: .14em; font-weight: 800; }
.equation-card code { color: #b9e8f4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 8px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.variable-list { margin-top: 10px; }
.variable-list p { margin: 6px 0; color: #718b9a; font-size: 7px; line-height: 1.5; }
.variable-list b { color: #adc4d0; font-weight: 700; }
.illustrative-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px; border: 1px solid rgba(209, 170, 121, .15); border-radius: 8px; background: rgba(103, 73, 37, .09); color: #9e896d; font-size: 7px; letter-spacing: .08em; line-height: 1.5; }
.note-icon { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid rgba(209, 170, 121, .3); border-radius: 50%; color: #d4b58b; font-size: 9px; font-weight: 800; flex: 0 0 auto; }
.footer-note { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 7px; color: #4d697a; font-size: 7px; letter-spacing: .08em; }
.footer-note span:nth-child(2) { text-align: center; letter-spacing: .02em; }

.embed-mode .topbar, .embed-mode .footer-note { display: none; }
.embed-mode .workspace { height: 100vh; min-height: 0; padding: 8px; }
.embed-mode .scene-panel { min-height: 0; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 245px minmax(340px, 1fr) 250px; gap: 9px; padding: 9px; }
  .panel { padding: 13px 12px; }
  .scene-legend { bottom: 58px; }
}

@media (max-width: 900px) and (min-width: 701px) {
  .workspace { grid-template-columns: 230px minmax(300px, 1fr); grid-template-rows: minmax(460px, 1fr) auto; }
  .right-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .right-panel > .section-divider { display: none; }
  .science-panel { grid-column: 1 / -1; }
  .readout-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 700px) {
  .app-shell { height: auto; min-height: 100vh; overflow: visible; }
  .topbar { height: 54px; min-height: 54px; padding: 0 12px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 9px; }
  .brand-name span { display: none; }
  .brand-subtitle { font-size: 7px; }
  .topbar-right { gap: 8px; }
  .chapter-chip { padding: 6px 8px; font-size: 7px; }
  .seed-label { font-size: 7px; }
  .workspace { display: flex; flex-direction: column; gap: 9px; padding: 8px; }
  .scene-panel { order: -1; min-height: 430px; height: 52vh; max-height: 560px; flex: 0 0 auto; }
  .scene-topline { top: 12px; left: 12px; right: 12px; }
  .scene-title-block h1 { font-size: 19px; }
  .scene-title-block p { font-size: 9px; }
  .scene-status-stack { gap: 5px; }
  .run-status { padding: 5px 7px; font-size: 6px; }
  .scale-chip { font-size: 6px; }
  .scene-legend { left: 11px; bottom: 58px; gap: 5px; }
  .scene-legend span { font-size: 6px; }
  .scene-bottom-hud { left: 10px; right: 10px; bottom: 10px; grid-template-columns: 65px minmax(60px, 1fr); gap: 8px; }
  .flow-state { display: none; }
  .hud-readout strong { font-size: 11px; }
  .timeline-label-row { font-size: 5px; }
  .annotation { font-size: 6px; padding: 5px 6px; }
  .scene-toolbar { min-height: 39px; padding: 0 8px; }
  .drag-hint { font-size: 6px; }
  .tool-button { padding: 0 6px; min-height: 26px; }
  .tool-button span { font-size: 7px; }
  .panel { overflow: visible; padding: 14px; }
  .left-panel { order: 0; }
  .right-panel { order: 1; }
  .panel-heading h2 { font-size: 15px; }
  .preset-button { min-height: 62px; font-size: 9px; }
  .control-label-row label { font-size: 11px; }
  .control-label-row output { font-size: 10px; }
  .control-help { font-size: 9px; }
  .range-ends { font-size: 8px; }
  .readout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout-card { padding: 12px; }
  .readout-label { font-size: 8px; }
  .readout-card strong { font-size: 20px; }
  .readout-note { font-size: 8px; }
  .secondary-readouts span { font-size: 8px; }
  .secondary-readouts strong { font-size: 10px; }
  .validation-intro, .validation-row span, .validation-result span { font-size: 9px; }
  .validation-row strong { font-size: 9px; }
  .mechanism-item strong { font-size: 9px; }
  .mechanism-item small, .variable-list p { font-size: 8px; }
  .equation-card code { font-size: 9px; }
  .footer-note { display: none; }
  .embed-mode .workspace { height: 100vh; padding: 6px; }
  .embed-mode .scene-panel { height: 54vh; }
}

@media (max-width: 380px) {
  .scene-panel { min-height: 400px; }
  .scene-title-block h1 { font-size: 17px; }
  .scale-chip { display: none; }
  .drag-hint { letter-spacing: .04em; }
  .toolbar-actions { gap: 3px; }
  .tool-button span { display: none; }
  .tool-button { min-width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
