:root { --toy-grain-gold: #dfc288; }

/* The heater's control sits with the glass, on the same open canvas. */
.toy-thermoscope-control { position: absolute; z-index: 10; width: 220px; color: var(--text-dim); font: 11px/1.3 var(--font-mono); }
.toy-thermoscope-control label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--text-faint); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.toy-thermoscope-control output { color: var(--app-brass); font-size: 13px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.toy-thermoscope-control input { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.toy-thermoscope-control input::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right,var(--rule-strong) 0 var(--heat-start,50%),var(--app-brass) var(--heat-start,50%) var(--heat-end,50%),var(--rule-strong) var(--heat-end,50%) 100%); }
.toy-thermoscope-control input::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(to right,var(--rule-strong) 0 var(--heat-start,50%),var(--app-brass) var(--heat-start,50%) var(--heat-end,50%),var(--rule-strong) var(--heat-end,50%) 100%); }
.toy-thermoscope-control input::-moz-range-progress { background: transparent; }
.toy-thermoscope-control input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 16px; height: 22px; margin-top: -9.5px; border: 1px solid var(--app-brass); border-radius: 3px; background: linear-gradient(to right,var(--app-brass) 0 6px,var(--bg-raised) 6px 8px,var(--app-brass) 8px 100%); box-shadow: 0 1px 3px rgb(0 0 0 / .35); }
.toy-thermoscope-control input::-moz-range-thumb { width: 14px; height: 20px; border: 1px solid var(--app-brass); border-radius: 3px; background: linear-gradient(to right,var(--app-brass) 0 6px,var(--bg-raised) 6px 8px,var(--app-brass) 8px 100%); }
.toy-thermoscope-control input:hover::-webkit-slider-thumb { border-color: var(--text); }
.toy-thermoscope-control input:focus-visible { outline: none; }
.toy-thermoscope-scale { position: relative; display: flex; justify-content: space-between; margin-top: -7px; padding-top: 9px; background: repeating-linear-gradient(to right,var(--rule-strong) 0 1px,transparent 1px 25%) left top / calc(100% - 1px) 5px no-repeat; color: var(--text-faint); font-size: 9px; }
.toy-thermoscope-scale::before { content: ""; position: absolute; left: 50%; top: -3px; height: 8px; border-left: 1px solid var(--app-brass); }
#toy-thermoscope-air { margin: 14px 0 0; color: var(--text-dim); font-size: 11px; font-variant-numeric: tabular-nums; }

.toy-thermoscope-control input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--app-brass); outline-offset: 4px; }
.toy-thermoscope-control input:focus-visible::-moz-range-thumb { outline: 2px solid var(--app-brass); outline-offset: 4px; }

/* One operator station, with the same controls at every viewport size. */
.sluice-console { position: absolute; z-index: 21; bottom: 0; left: 0; right: 0; padding: 10px clamp(12px,3vw,40px) 8px; border-top: 1px solid var(--rule-strong); background: var(--bg-raised); color: var(--text-dim); }
.sluice-console[hidden], .sluice-workbench[hidden], .sluice-inspector[hidden], .sluice-pan[hidden] { display: none; }
.sluice-console-head, .sluice-console-main, .sluice-console-foot { max-width: 1240px; margin: auto; }
.sluice-console-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.sluice-live-result { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sluice-live-result > b { color: var(--text); font: 500 15px var(--font-body); }
#sluice-summary { color: var(--toy-grain-gold); font: 11px/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.sluice-console-main { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.sluice-operation { min-width: 0; border-left: 1px solid var(--rule); padding-left: 20px; font: 12px/1.4 var(--font-body); }
.sluice-operation:first-child { border-left: 0; padding-left: 0; }
.sluice-operation b { font-weight: 500; color: var(--text); }
.sluice-operation small { color: var(--text-faint); font-size: 11px; }
.sluice-flow-label { display: block; }
.sluice-flow-label > span, .sluice-hopper-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sluice-flow-label output { color: var(--text); font: 11px var(--font-mono); }
.sluice-flow-label .sluice-scale { color: var(--text-faint); font-size: 10px; margin-top: -6px; margin-bottom: 4px; }
.sluice-console input[type="range"], .sluice-workbench input[type="range"] { display: block; width: 100%; min-height: 44px; margin: 0; accent-color: var(--app-brass); cursor: ew-resize; }
.sluice-view-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.toy-app .toy-shell .sluice-console button, .toy-app .toy-shell .sluice-workbench button, .toy-app .toy-shell .sluice-inspector button { min-height: 44px; padding: 7px 12px; border: 1px solid var(--rule-strong); border-radius: 6px; background: transparent; color: var(--text); font: 12px/1.2 var(--font-body); white-space: nowrap; touch-action: manipulation; }
.toy-app .toy-shell .sluice-console button:hover, .toy-app .toy-shell .sluice-workbench button:hover, .toy-app .toy-shell .sluice-inspector button:hover { background: var(--bg); border-color: var(--line-mid); }
.toy-app .toy-shell .sluice-console button.is-on { border-color: var(--app-brass-dim); color: var(--toy-grain-gold); }
.toy-app .toy-shell .sluice-console button:disabled { opacity: .4; cursor: default; }
.sluice-cleanup-controls > div { display: flex; gap: 8px; margin: 8px 0; }
.sluice-cleanup-controls small { display: block; max-width: 260px; }
.sluice-console-foot { min-height: 24px; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#sluice-guidance { margin: 0; color: var(--text-dim); font: 12px/1.4 var(--font-body); }
.toy-app .toy-shell #sluice-water { border-color: transparent; color: var(--text-faint); }
.sluice-workbench { position: absolute; z-index: 25; right: 14px; bottom: calc(var(--sluice-console-height,210px) + 8px); width: min(470px,calc(100% - 28px)); max-height: calc(100dvh - var(--sluice-console-height,210px) - var(--toy-top-height,52px) - 16px); box-sizing: border-box; overflow: auto; padding: 14px 18px; border: 1px solid var(--rule-strong); border-radius: 9px; background: var(--bg-raised); box-shadow: 0 12px 36px rgb(0 0 0 / .25); }
.sluice-workbench-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sluice-workbench h2 { margin: 0; font: 500 16px var(--font-body); color: var(--text); }
.sluice-workbench p { margin: 12px 0; color: var(--text-dim); font: 12px/1.5 var(--font-body); }
.sluice-workbench label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 13px var(--font-body); color: var(--text); }
.sluice-workbench output { font: 12px var(--font-mono); color: var(--app-brass); }
.sluice-workbench select { width: 100%; min-height: 44px; margin: 8px 0 12px; padding: 6px 8px; border: 1px solid var(--rule-strong); background: var(--bg); color: var(--text); border-radius: 6px; }
.sluice-workbench .sluice-check { justify-content: flex-start; min-height: 44px; font-size: 12px; }
.sluice-calibration { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule-strong); }
.sluice-calibration h3 { margin: 0; color: var(--text); font: 500 15px/1.3 var(--font-body); }
.sluice-calibration #sluice-field-status { color: var(--toy-grain-gold); }
.sluice-calibration form { display: grid; gap: 10px; margin-top: 12px; }
.sluice-calibration form label { display: grid; gap: 5px; font-size: 12px; }
.sluice-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.sluice-calibration input, .sluice-calibration select { box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; padding: 7px 9px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--bg); color: var(--text); font: 13px var(--font-body); }
.sluice-calibration #sluice-field-result { padding: 10px; border: 1px solid var(--rule-strong); border-radius: 6px; color: var(--text); }
.sluice-calibration ol { padding-left: 20px; color: var(--text-dim); font: 11px/1.5 var(--font-mono); }
.sluice-calibration li { margin-bottom: 6px; overflow-wrap: anywhere; }
.sluice-calibration .sluice-run-actions { flex-wrap: wrap; }
.sluice-check input { width: 18px; height: 18px; accent-color: var(--app-brass); }
.sluice-run-actions { display: flex; gap: 12px; margin-top: 12px; }
.toy-app .toy-shell .sluice-workbench #sluice-run { flex: 1; color: var(--bg-raised); background: var(--app-brass); border-color: var(--app-brass); }
.sluice-table-scroll { overflow: auto; }
.sluice-contents { width: 100%; border-collapse: collapse; font: 10px/1.5 var(--font-mono); white-space: nowrap; }
.sluice-contents :is(td,th) { padding: 6px 5px; text-align: right; border-bottom: 1px solid var(--rule); font-weight: 400; }
.sluice-contents th:first-child { text-align: left; }
.sluice-contents tbody tr:last-child { color: var(--toy-grain-gold); }
.sluice-inspector { position: absolute; top: calc(var(--toy-top-height,52px) + 8px); left: 50%; transform: translateX(-50%); z-index: 22; display: flex; gap: 6px; align-items: center; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg-raised); }
.toy-app .toy-shell .sluice-inspector button { padding-inline: 8px; }
#sluice-pocket { padding: 0 6px; white-space: nowrap; color: var(--text-dim); font: 11px var(--font-mono); }
.sluice-pan { position: absolute; z-index: 8; top: var(--toy-top-height,52px); bottom: var(--sluice-console-height,210px); left: 0; right: 0; touch-action: none; cursor: grab; }
.sluice-pan:active { cursor: grabbing; }
.toy-app .toy-shell.has-sluice-console .toy-resume { top: auto; left: auto; right: 16px; bottom: calc(var(--sluice-console-height,210px) + 8px); transform: none; }
.toy-app .toy-shell.has-sluice-console .toy-scene-action-label { font-size: 10px; padding: 2px 6px; }
.toy-app .toy-shell.sluice-start-hints .toy-scene-action-label { opacity: 1; }
.toy-app .toy-shell.has-sluice-console :where(button,input,select):focus-visible { outline-color: var(--app-brass); }
@media (max-width: 900px), (max-height: 560px) {
 .sluice-console { padding: 4px 12px 0; }
 .sluice-console-head { margin-bottom: 3px; gap: 8px; }
 .sluice-live-result { display: grid; gap: 2px; }
 .sluice-live-result > b { font-size: 12px; }
 #sluice-summary { font-size: 9px; }
 .sluice-console-main { gap: 12px; }
 .sluice-operation { padding-left: 12px; font-size: 11px; }
 .sluice-operation small { font-size: 9px; }
 .sluice-flow-label output { font-size: 9px; }
 .sluice-flow-label .sluice-scale { font-size: 9px; margin-bottom: 0; }
 .sluice-view-controls { gap: 4px; }
 .toy-app .toy-shell .sluice-console button { padding: 6px 8px; font-size: 10px; }
 .sluice-cleanup-controls > div { gap: 4px; margin: 5px 0; }
 #sluice-guidance { font-size: 10px; }
 .sluice-workbench { bottom: calc(var(--sluice-console-height,200px) + 4px); max-height: calc(100dvh - var(--toy-top-height,52px) - 12px); }
}
@media (max-width: 580px) {
 .sluice-console-head { flex-wrap: wrap; }
 .sluice-view-controls { width: 100%; }
 .sluice-console-main { gap: 6px; }
 .sluice-operation { padding-left: 6px; }
 .sluice-cleanup-controls > div { flex-wrap: wrap; }
 .sluice-hopper-bottom { flex-wrap: wrap; }
 .sluice-flow-label > span { flex-wrap: wrap; gap: 2px; }
}
/* Water, Smoke, and Slime as a full-screen app.
   Loaded after water-smoke-slime.css, so this file owns layout and color.
   The canvas reads --accent, --text, --bg and --bg-raised from :root for
   walls, labels and label backgrounds, so the palette reaches it too. */

:root {
  --bg: #0b0c0e;
  --bg-raised: #131417;
  --text: #e6e7e9;
  --text-bright: #ffffff;
  --text-dim: #a2a5ab;
  --text-faint: #71747a;
  --accent: #cfd2d7;
  --accent-hover: #ffffff;
  --rule: #25272b;
  --rule-strong: #35373c;
  --line-mid: #4a4d53;
  --row-hover: rgba(255, 255, 255, 0.05);
  --selection-bg: #3a3c41;
  --selection-text: #ffffff;
  --emphasis: #e9a6bd;
  --toy-water: #8fb3c7;
  --d-bg: #1b1c20;
  --d-bg-raised: #131417;
  --d-canvas-bg: #08090a;
  --d-rule: #25272b;
  --d-rule-strong: #35373c;
  --d-text: #e6e7e9;
  --d-text-dim: #a2a5ab;
  --d-text-bright: #ffffff;
  --d-text-faint: #71747a;
  --d-accent: #cfd2d7;
  --d-accent-strong: #ffffff;
  --d-line-mid: #4a4d53;
  --font-heading: var(--font-body);
  --app-live: #3fb950;
  --app-rail: 94px;
  --app-ink: #0b0c0e;
  --app-brass: #d4c4a0;
  --app-brass-dim: #bc9d65;
  color-scheme: dark;
}

html:has(body.toy-app), body.toy-app { height: 100%; }
body.toy-app {
  margin: 0; padding: 0; overflow: hidden;
  background: var(--d-canvas-bg); color: var(--text);
  font: 14px/1.5 var(--font-body);
}
body.toy-app ::selection { background: var(--selection-bg); color: var(--selection-text); }
.toy-app :where(a, button, summary, input, select, [tabindex]):focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px;
}

/* The shell is the page. */
.toy-app .toy-shell.is-expanded {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none;
  border: 0; border-radius: 0; box-shadow: none; background: var(--d-canvas-bg);
}
.toy-app .toy-bar { height: 100%; display: flex; flex-direction: column; }
.toy-app .toy-shell button, .toy-app .toy-shell select { font-family: var(--font-body); font-size: 13px; color: var(--text-dim); }
.toy-app .toy-shell button { border-radius: 8px; }
.toy-app .toy-shell button:hover { background: var(--d-bg); color: var(--text-bright); }
.toy-app .toy-shell button.is-on { background: var(--d-bg); color: var(--text-bright); border-color: var(--rule-strong); }
.toy-app .toy-shell [data-panel][aria-expanded="true"] { background: var(--d-bg); border-color: var(--rule-strong); color: var(--text-bright); }

/* Top bar: name, scene, playback. */
.toy-app .toy-top {
  position: relative; z-index: 20; flex-shrink: 0; flex-wrap: wrap; gap: 6px 12px;
  min-height: 52px; padding: 6px 10px 6px 18px;
  background: var(--bg-raised); border-bottom: 1px solid var(--rule);
}
.toy-app .toy-shell .toy-top { z-index: 20 !important; }
.toy-brand {
  margin: 0; flex-shrink: 0; color: var(--text-bright);
  font: 600 15px/1 var(--font-body); letter-spacing: -0.01em; white-space: nowrap;
}
.toy-app .toy-scene-picker { position: static; flex: 0 1 300px; min-width: 150px; max-width: 300px; margin-right: auto; }
.toy-app .toy-scene-picker > summary {
  min-height: 38px; padding: 6px 10px 6px 12px; border: 1px solid var(--rule-strong);
  border-radius: 8px; background: var(--d-bg); color: var(--text); font: 13px var(--font-body);
}
.toy-app .toy-scene-picker > summary:hover { border-color: var(--line-mid); }
.toy-app .toy-scene-picker[open] > summary { border-color: var(--text-dim); }
.toy-app .toy-scene-picker > summary svg { width: 18px; height: 18px; color: var(--text-dim); }
.toy-app .toy-playback { gap: 2px; }
.toy-app .toy-shell .toy-playback .toy-icon { width: 40px; height: 40px; }
.toy-app .toy-shell .toy-sound,
.toy-app .toy-shell .toy-instruments-button { min-height: 36px; padding: 6px 12px; border-color: var(--rule-strong); }

/* A scene's own controls (the exhaust picker) float over the canvas, so the
   bar keeps the height the world was sized for. */
.toy-app .toy-top .toy-rig-controls {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  flex: none; width: max-content; max-width: calc(100% - 24px); padding: 4px 6px 4px 10px; gap: 6px;
  border: 1px solid var(--rule); border-radius: 12px; background: rgb(19 20 23 / 0.94);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}

/* Scene menu: a grid of every machine, grouped. */
.toy-app .toy-scene-picker .toy-scene-list {
  position: absolute; left: 12px; right: auto; top: calc(100% + 6px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-content: start;
  gap: 2px 6px; width: min(820px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--toy-top-height, 52px) - 18px); padding: 8px 10px 12px;
  background: var(--bg-raised); border: 1px solid var(--rule-strong); border-radius: 12px;
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.6); scrollbar-width: thin; scrollbar-color: #3a3c41 transparent;
}
.toy-app .toy-scene-list p {
  grid-column: 1 / -1; margin: 16px 0 6px; padding: 8px 10px;
  color: var(--text-bright); background: var(--d-bg);
  border-left: 3px solid var(--line-mid); border-radius: 4px;
  font: 600 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.toy-app .toy-scene-list p:first-child { margin-top: 4px; }
.toy-app .toy-scene-picker .toy-scene-list .toy-chip {
  justify-content: flex-start; min-height: 40px; width: 100%; padding: 6px 10px;
  border: 1px solid transparent; color: var(--text); text-align: left;
}
.toy-app .toy-scene-picker .toy-scene-list .toy-machine-choice { gap: 12px; padding: 6px 8px; }
.toy-app .toy-scene-picker .toy-scene-list .toy-chip.is-on { background: var(--d-bg); border-color: var(--rule-strong); }
.toy-app .toy-shell .toy-scene-preview { width: 56px; height: 40px; color: var(--line-mid); }
.toy-app .toy-scene-name { color: var(--text); font: 13px/1.3 var(--font-body); }
.toy-app .toy-scene-cue { color: var(--text-faint); font: 11px/1.35 var(--font-body); }
.toy-app .toy-scene-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.toy-app .toy-scene-copy .toy-scene-cue { flex-basis: 100%; }
.toy-scene-status {
  padding: 0 5px; border: 1px solid var(--rule-strong); border-radius: 4px;
  color: var(--text-faint); font: 600 9px/15px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.toy-scene-status[data-status="WORKS"] { color: #56d364; border-color: rgb(86 211 100 / 0.3); }
.toy-scene-status[data-status="PARTLY"] { color: #e3b341; border-color: rgb(227 179 65 / 0.3); }

/* Canvas. Its height comes from the host's fit; it never scrolls. */
.toy-app .toy-viewport, .toy-app .toy-stage { background: var(--d-canvas-bg); }
.toy-app .toy-shell .toy-resume {
  padding: 10px 22px; border: 0; border-radius: 999px;
  background: var(--text-bright); color: var(--app-ink); font-weight: 600;
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.5);
}
.toy-app .toy-shell .toy-resume:hover { background: #e3e4e7; color: #000; }
.toy-app .toy-nowater {
  position: absolute; left: 50%; bottom: 16px; z-index: 9; transform: translateX(-50%);
  max-width: min(520px, calc(100% - 32px)); margin: 0; padding: 8px 14px; border-radius: 8px;
  background: var(--bg-raised); border: 1px solid var(--rule-strong); color: var(--text-dim);
  font-size: 12px; text-align: center;
}

/* Machines drawn at their authored size keep a gutter for the tool rail. A
   world that fills the window (class has-room) runs underneath it instead. */
.toy-app .toy-shell.has-rail:not(.has-room) .toy-viewport { margin-left: var(--app-rail); }

/* Tools float beside the canvas as one vertical toolbar. */
.toy-app .toy-shell .toy-dock {
  position: absolute !important; z-index: 15; top: calc(var(--toy-top-height, 52px) + 12px) !important;
  left: 12px !important; right: auto !important; bottom: auto !important;
  flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important;
  gap: 2px !important; padding: 4px !important; margin: 0 !important;
  border: 1px solid var(--rule) !important; border-radius: 12px !important;
  background: rgb(19 20 23 / 0.94) !important; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}
.toy-app .toy-shell .toy-tools { flex-direction: column; flex: 0 0 auto !important; gap: 2px !important; }
.toy-app .toy-shell .toy-tools .tb {
  flex: 0 0 auto !important; width: 60px; min-width: 60px; min-height: 52px;
  padding: 6px 4px; gap: 3px; font-size: 10px; border-radius: 9px;
}
.toy-app .toy-shell .toy-tools .tb.is-on { background: rgb(212 196 160 / .10); color: var(--app-brass); border-color: rgb(212 196 160 / .28); }
.toy-app .toy-shell .toy-presets-entry {
  width: 60px; min-height: 44px; margin: 4px 0 0 !important; padding: 4px;
  border-color: var(--rule) !important; font-size: 10px; line-height: 1.2; white-space: normal; text-align: center;
}
.toy-app .toy-shell .toy-dock .toy-settings { width: 60px; height: 40px; }

/* Bottom bar: the machine's action and caption, then status. */
.toy-app .toy-foot {
  position: relative; z-index: 12; flex-shrink: 0; flex-direction: row; flex-wrap: wrap;
  align-items: center; gap: 6px 20px; padding: 8px 14px 8px 18px;
  background: var(--bg-raised); border-top: 1px solid var(--rule); color: var(--text-faint); font-size: 12px;
}
.toy-app .toy-machine-summary { width: auto; flex: 1 1 60%; gap: 14px; }
.toy-app .toy-machine-summary p { color: var(--text-dim); font: 13px/1.45 var(--font-body); }
.toy-app .toy-shell .toy-primary {
  min-width: 0; min-height: 38px; padding: 8px 16px; border: 0;
  background: var(--text-bright); color: var(--app-ink); font-weight: 600;
}
.toy-app .toy-shell .toy-primary:hover { background: #e3e4e7; color: #000; }
.toy-app .toy-shell .toy-primary:disabled { opacity: 0.35; }
.toy-app .toy-machine-metrics { flex: 0 1 auto; margin-left: auto; font: 12px/1.5 var(--font-mono); color: var(--text-faint); }
.toy-app .toy-machine-metrics b { color: var(--text); }
.toy-app .toy-shell #toy-air-pressure-compact,
.toy-app .toy-shell #toy-machine-view { min-height: 32px; padding: 4px 10px; border-color: var(--rule-strong); }
.toy-app .toy-foot-row { width: auto; gap: 16px; }
.toy-app .toy-foot-stats { margin-left: auto; }
.toy-app #toy-hint { color: var(--text-faint); }
.toy-app #toy-fps { color: var(--text-faint); font-size: 11px; }
.toy-app #toy-status { color: var(--text-dim); }
.toy-app #toy-status::before { background: var(--app-live); }
.toy-app .is-paused #toy-status::before { background: var(--text-faint); }
.toy-app .toy-build-notice, .toy-app .toy-keyboard-help { flex: 1 1 100%; }
.toy-app .toy-machine-diagnostics, .toy-app .toy-pressure-legend { flex: 0 1 auto; color: var(--text-faint); font-size: 12px; }
.toy-app .toy-foot-row { flex: 1 1 240px; }
/* With a machine caption showing, the grab hint repeats it. Build hints still show. */
.toy-app .toy-shell[data-active-tool="poke"] .toy-foot:has(> .toy-machine-summary:not([hidden])) #toy-hint { display: none; }

/* Panels: one card at a time, top right. */
.toy-app .toy-shell .toy-panel {
  position: absolute; z-index: 30;
  top: calc(var(--toy-top-height, 52px) + 10px) !important; right: 12px !important;
  bottom: auto !important; left: auto !important;
  width: min(380px, calc(100% - 24px)); max-height: calc(100dvh - var(--toy-top-height, 52px) - 24px) !important;
  padding: 4px 18px 18px; border: 1px solid var(--rule-strong); border-radius: 12px;
  background: var(--bg-raised); box-shadow: 0 24px 64px rgb(0 0 0 / 0.6);
  scrollbar-width: thin; scrollbar-color: #3a3c41 transparent;
}
.toy-app .toy-panel h2 { color: var(--text-bright); font: 600 15px/1.3 var(--font-body); }
.toy-app .toy-panel .toy-chip { border-color: var(--rule-strong); text-transform: none; }
.toy-app .toy-panel .toy-chip.is-on, .toy-app .toy-build-tools .toy-chip[aria-pressed="true"] {
  background: var(--text-bright); color: var(--app-ink); border-color: transparent;
}
.toy-app .toy-preset-body .toy-group > label,
.toy-app .toy-build-valves p, .toy-app .toy-build-camera p { color: var(--text-faint); }
.toy-app .toy-slider b { color: var(--text); }
.toy-app .toy-slider input, .toy-app .smoke-library-footer input { accent-color: #ffffff; }
.toy-app .toy-build-options select, .toy-app .toy-native-options select, .toy-app #toy-shape,
.toy-app .toy-rig-controls select, .toy-app #smoke-family {
  background: var(--d-bg); border-color: var(--rule-strong); color: var(--text);
}
@media (min-width: 1050px) {
  .toy-app .toy-shell.smoke-library-open .toy-bar { padding-right: 0; }
  .toy-app .toy-shell.smoke-library-open #toy-panel-smoke {
    width: min(380px, calc(100% - 24px)); border-width: 1px; border-radius: 12px; box-shadow: 0 24px 64px rgb(0 0 0 / 0.6);
  }
}

/* About. */
.toy-about-body p { margin: 0 0 12px; color: var(--text-dim); font: 13px/1.6 var(--font-body); }
.toy-about-body dl { margin: 4px 0 14px; }
.toy-about-body dl > div { padding: 10px 0; border-top: 1px solid var(--rule); }
.toy-about-body dt { margin-bottom: 3px; color: var(--text-bright); font: 600 12px/1.4 var(--font-body); }
.toy-about-body dd { margin: 0; color: var(--text-dim); font: 13px/1.55 var(--font-body); }
.toy-about-body a { color: var(--text-bright); text-decoration: underline; text-decoration-color: var(--line-mid); text-underline-offset: 3px; }
.toy-about-body a:hover { text-decoration-color: var(--text-bright); }
.toy-about-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; }

/* Touch screens get 44 px targets. */
@media (hover: none) {
  .toy-app .toy-shell .toy-playback .toy-icon { width: 44px; height: 44px; }
  .toy-app .toy-scene-picker > summary { min-height: 44px; }
  .toy-app .toy-shell .toy-primary { min-height: 44px; }
  .toy-app .toy-shell .toy-presets-entry, .toy-app .toy-shell .toy-dock .toy-settings { min-height: 44px; }
}

/* Short screens and phones in landscape: slimmer bars. */
@media (max-height: 560px) {
  .toy-app .toy-top { min-height: 0; flex-wrap: nowrap; padding: 3px 6px 3px 8px; }
  .toy-brand { display: none; }
  .toy-app .toy-scene-picker { flex: 1 1 auto; min-width: 130px; max-width: 280px; }
  .toy-app .toy-shell .toy-sound, .toy-app .toy-shell .toy-instruments-button { min-width: 0; padding: 6px 10px; }
  :root { --app-rail: 118px; }
  /* Two columns of tools fit beside a phone-height apparatus. Never set the
     dock's display here: scene rules use it to hide the dock. */
  .toy-app .toy-shell .toy-dock { top: calc(var(--toy-top-height, 48px) + 6px) !important; left: 6px !important; padding: 3px !important; }
  .toy-app .toy-shell .toy-tools { display: grid; grid-template-columns: 48px 48px; }
  .toy-app .toy-shell .toy-tools .tb { width: 48px; min-width: 48px; min-height: 44px; padding: 3px; font-size: 9px; gap: 1px; }
  .toy-app .toy-shell .toy-tools .tb svg { width: 18px; height: 18px; }
  .toy-app .toy-shell .toy-presets-entry, .toy-app .toy-shell .toy-dock .toy-settings { width: auto; min-height: 44px; font-size: 9px; margin: 2px 0 0 !important; }
  .toy-app .toy-foot { padding: 4px 10px; gap: 4px 12px; }
  .toy-app .toy-machine-summary p { font-size: 11px; line-height: 1.3; }
}

/* Narrow screens: the brand gives way to the scene menu, and the tools move to the bottom. */
@media (max-width: 720px) {
  .toy-brand { display: none; }
  .toy-app .toy-top { padding-left: 8px; }
  .toy-app .toy-scene-picker { flex: 1 1 auto; max-width: none; }
}
@media (max-width: 640px) and (min-height: 561px) {
  .toy-app .toy-shell .toy-dock {
    top: auto !important; left: 8px !important; right: 8px !important;
    bottom: calc(var(--toy-controls-height, 64px) + 8px) !important;
    width: fit-content; max-width: calc(100% - 16px); margin: 0 auto !important;
    flex-direction: row !important; align-items: center !important;
  }
  .toy-app .toy-shell .toy-tools { flex-direction: row; flex: 0 1 auto !important; min-width: 0; }
  .toy-app .toy-shell .toy-tools .tb { flex: 0 1 60px !important; width: auto; min-width: 44px; min-height: 48px; }
  .toy-app .toy-shell .toy-presets-entry { flex: 0 0 auto; margin: 0 0 0 2px !important; width: 58px; min-height: 48px; }
  .toy-app .toy-shell .toy-dock .toy-settings { flex: 0 0 auto; width: 44px; height: 48px; }
  .toy-app .toy-foot { padding: 8px 12px 10px; gap: 8px 12px; }
  .toy-app #toy-fps, .toy-app .toy-machine-diagnostics { display: none; }
  .toy-app .toy-foot-row #toy-hint { font-size: 12px; }
  .toy-app .toy-foot > .toy-playback { flex: 1 1 100%; justify-content: space-between; }
  .toy-app .toy-shell .toy-panel {
    top: auto !important; left: 8px !important; right: 8px !important; width: auto;
    bottom: calc(var(--toy-controls-height, 64px) + 8px) !important; max-height: 62dvh !important;
  }
  .toy-app .toy-machine-summary { grid-template-columns: 1fr; gap: 6px; }
}

/* Actions belong to the apparatus. The hit area is generous; the drawing
   remains visible beneath it, with a quiet label on hover or keyboard focus. */
.toy-app .toy-scene-actions { position: absolute; inset: 0; z-index: 9; overflow: hidden; pointer-events: none; }
.toy-app .toy-shell .toy-scene-action {
  position: absolute; min-width: 44px; min-height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; pointer-events: auto;
  color: var(--app-brass); cursor: pointer;
}
.toy-app .toy-shell .toy-scene-action:hover,
.toy-app .toy-shell .toy-scene-action:active { background: transparent; }
.toy-app .toy-shell .toy-scene-action:focus-visible { outline: 1px solid var(--app-brass); outline-offset: -3px; }
.toy-app .toy-shell .toy-scene-action.is-body-action { pointer-events: none; }
.toy-app .toy-shell .toy-scene-action:disabled { pointer-events: none; opacity: .45; }
.toy-scene-action-label {
  position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(calc(-50% + var(--action-label-shift, 0px)));
  width: max-content; max-width: min(220px, calc(100vw - 32px)); padding: 4px 8px;
  border: 1px solid var(--rule-strong); border-radius: 4px;
  background: var(--bg-raised); color: var(--app-brass); font: 12px/1.35 var(--font-body);
  pointer-events: none; opacity: 0;
}
.toy-scene-action:hover .toy-scene-action-label,
.toy-scene-action:focus-visible .toy-scene-action-label { opacity: 1; }
.toy-scene-action.is-label-above .toy-scene-action-label { top: auto; bottom: calc(100% + 4px); }
.toy-app .toy-shell .toy-scene-action.is-button-action {
  min-width: 140px; border: 1px solid var(--app-brass-dim); border-radius: 8px;
  background: var(--bg-raised); color: var(--app-brass);
}
.toy-app .toy-shell .toy-scene-action.is-button-action:hover { background: var(--d-bg); }
.toy-scene-action.is-button-action .toy-scene-action-label {
  position: static; display: block; width: auto; transform: none; padding: 0 10px; border: 0;
  background: transparent; opacity: 1;
}
.toy-app .toy-shell .toy-scene-action.is-field-action { border-radius: 0; }
.toy-app .toy-shell .toy-scene-action.is-field-action:hover:not(:focus-visible) { outline: 0; }
.toy-scene-action.is-field-action .toy-scene-action-label {
  border: 0; background: transparent; padding: 4px 0; opacity: 1;
  color: var(--text-dim); font-family: var(--font-mono); pointer-events: auto;
}
.toy-scene-action.is-field-action:hover .toy-scene-action-label,
.toy-scene-action.is-field-action:focus-visible .toy-scene-action-label { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.toy-app #toy-trap-physics h3 { margin: 18px 0 8px; font: 600 14px/1.4 var(--font-body); color: var(--text); }
.toy-app #toy-trap-physics .toy-panel-note { color: var(--text-dim); }
.toy-app .toy-live-readout { display: flex; align-items: center; gap: 10px; margin-left: 8px; font: 11px/1.3 var(--font-mono); white-space: nowrap; }
.toy-app .toy-live-readout #toy-status { gap: 5px; }
.toy-app .toy-shell .toy-machine-summary { flex-direction: column; align-items: flex-start; gap: 0; margin: 0 0 14px; }
.toy-app .toy-shell .toy-machine-metrics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; }
.toy-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; padding: 0 !important; border: 0 !important; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px), (max-height: 560px) {
  .toy-app .toy-live-readout { margin-left: 2px; }
  .toy-app .toy-live-readout #toy-fps { display: none; }
}
@media (max-width: 400px) {
  .toy-app .toy-live-readout { display: none; }
}
@media (max-width: 640px) {
  .toy-app .toy-top .toy-playback { flex-wrap: wrap; max-width: 100%; justify-content: flex-end; }
}
@media (max-width: 520px) and (max-height: 560px) {
  .toy-app .toy-top { flex-wrap: wrap; }
  .toy-app .toy-scene-picker { flex-basis: 100%; max-width: none; }
}
@media (hover: hover) {
  .toy-app .toy-shell .toy-scene-action:hover { outline: 1px solid rgb(212 196 160 / .25); outline-offset: -4px; }
}

/* Keep a paused hourglass visible through its neck and falling stream. */
.toy-app .toy-shell[data-scene="hourglass"] .toy-resume {
  top: auto; left: auto; right: 20px; bottom: 20px; transform: none;
}

/* Concentration uses the site's sage, gold and coral data colors. The field
   shares the apparatus camera; its legend and probe stay at reading size. */
.toy-app {
  --oxygen-sage: #9ec79a;
  --oxygen-gold: #dfc288;
  --oxygen-coral: #d9978c;
  --oxygen-brick: #b8796d;
  --oxygen-text: #e8e2d6;
  --oxygen-dim: #b8b2a2;
  --oxygen-rule: #4a544b;
}
.toy-app .toy-shell .toy-oxygen-button {
  min-height: 44px; padding: 6px 12px; border-color: var(--rule-strong);
}
.toy-app .toy-shell .toy-oxygen-button.is-on {
  color: var(--oxygen-sage); border-color: rgb(158 199 154 / .5); background: rgb(158 199 154 / .10);
}
.toy-app .toy-stage .toy-oxygen-canvas { z-index: 6; pointer-events: none; }
.toy-app .toy-stage .toy-oxygen-canvas[hidden] { display: none; }
.toy-oxygen-legend {
  position: absolute; z-index: 11; right: 14px; bottom: 14px;
  width: 238px; padding: 12px 14px 8px;
  background: rgb(30 36 32 / .94); border: 1px solid var(--oxygen-rule); border-radius: 10px;
  color: var(--oxygen-text); box-shadow: 0 8px 28px rgb(0 0 0 / .24);
  font: 12px/1.4 var(--font-body); font-variant-numeric: tabular-nums;
}
.toy-oxygen-legend[hidden], .toy-oxygen-probe[hidden] { display: none; }
.toy-oxygen-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.toy-oxygen-heading h2 { margin: 0; font: 600 13px/1.4 var(--font-body); color: var(--oxygen-text); }
.toy-oxygen-heading > span { color: var(--oxygen-dim); font-size: 11px; }
.toy-oxygen-reading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 8px 0 10px; }
.toy-oxygen-reading > span { color: var(--oxygen-dim); font-size: 11px; }
.toy-oxygen-reading output { color: var(--oxygen-text); font: 500 22px/1 var(--font-mono); }
.toy-oxygen-ramp {
  height: 8px; border-radius: 3px;
  background: linear-gradient(to right, var(--oxygen-brick), var(--oxygen-coral) 38.28%, var(--oxygen-gold) 71.77%, var(--oxygen-sage));
}
.toy-oxygen-ticks { display: flex; justify-content: space-between; gap: 4px; margin: 5px 0 4px; color: var(--oxygen-dim); font: 10px/1.4 var(--font-mono); }
.toy-oxygen-options { display: flex; gap: 4px; }
.toy-app .toy-shell .toy-oxygen-options button {
  flex: 1 1 0; min-height: 44px; padding: 6px; border: 1px solid transparent; color: var(--oxygen-dim);
  font: 12px/1.2 var(--font-body); background: transparent; border-radius: 5px;
}
.toy-app .toy-shell .toy-oxygen-options button[aria-pressed="true"] { color: var(--oxygen-sage); background: rgb(158 199 154 / .08); }
.toy-app .toy-shell .toy-oxygen-options button:hover { background: rgb(158 199 154 / .13); color: var(--oxygen-text); }
.toy-oxygen-options button:focus-visible, .toy-app .toy-shell .toy-oxygen-button:focus-visible { outline-color: var(--oxygen-sage); }
.toy-oxygen-help { margin: 6px 0 1px; color: var(--oxygen-dim); font: 11px/1.4 var(--font-body); }
.toy-oxygen-probe {
  position: absolute; z-index: 12; display: flex; align-items: baseline; gap: 9px;
  width: max-content; padding: 6px 9px; pointer-events: none; border: 1px solid var(--oxygen-rule); border-radius: 5px;
  background: rgb(30 36 32 / .96); color: var(--oxygen-text); font: 12px/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.toy-oxygen-probe > span { color: var(--oxygen-dim); font: 11px/1.4 var(--font-body); }
.toy-oxygen-instruments { margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.toy-app .toy-shell #toy-oxygen-instruments-toggle { min-height: 44px; }
.toy-app .toy-shell #toy-oxygen-instruments-toggle.is-on { color: var(--oxygen-sage); background: rgb(158 199 154 / .10); border-color: rgb(158 199 154 / .4); }
@media (max-width: 720px), (max-height: 560px) {
  .toy-oxygen-legend { right: 8px; bottom: 8px; width: 204px; padding: 8px 10px 6px; }
  .toy-oxygen-reading { margin: 5px 0 8px; }
  .toy-oxygen-reading output { font-size: 19px; }
  .toy-oxygen-help { display: none; }
  .toy-app .toy-shell .toy-oxygen-button { padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .toy-oxygen-legend, .toy-oxygen-probe { transition: none; animation: none; }
}

/* One readable comparison beside the cave, outside the scaled canvas. */
.toy-cave-indicator {
  --cave-placement: side;
  position: absolute; z-index: 11; right: 16px; top: calc((100% + var(--toy-top-height, 52px)) / 2);
  transform: translateY(-50%); box-sizing: border-box; width: 272px; padding: 18px;
  background: var(--bg-raised); color: var(--text); border: 1px solid var(--rule-strong); border-radius: 12px;
  font: 14px/1.45 var(--font-body); pointer-events: auto;
}
.toy-cave-indicator[hidden] { display: none; }
.toy-shell.has-cave-demo #toy-input { pointer-events: auto; cursor: crosshair; }
.toy-cave-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 12px; }
#toy-cave-paused { color: var(--app-brass); }
.toy-cave-indicator h2 { margin: 4px 0 10px; color: var(--text-bright); font: 600 23px/1.2 var(--font-body); letter-spacing: -.02em; }
.toy-cave-controls { display: grid; gap: 2px; }
.toy-cave-controls label { display: block; }
.toy-cave-controls label > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--text); font-size: 13px; }
.toy-cave-controls output { color: var(--app-brass); font: 12px/1.25 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.toy-app .toy-shell .toy-cave-controls input[type="range"] { display: block; width: 100%; height: 44px; margin: 0; padding: 0; accent-color: var(--app-brass); cursor: pointer; }
.toy-cave-controls input:focus-visible { outline: 2px solid var(--app-brass); outline-offset: 2px; border-radius: 3px; }
.toy-cave-controls input:disabled { opacity: .5; cursor: default; }
.toy-cave-pressure { margin-top: 6px; }
.toy-cave-pressure p { margin: 0 0 10px; color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.toy-cave-meter { position: relative; height: 8px; background: var(--rule); border-radius: 3px; }
.toy-cave-meter::after { content: ''; position: absolute; top: -3px; bottom: -3px; left: calc(50% - 1px); width: 2px; background: var(--text-dim); }
.toy-cave-meter-fill { position: absolute; left: 50%; top: 0; height: 100%; width: var(--pressure-size, 0%); background: var(--app-brass); border-radius: inherit; }
.toy-cave-meter[data-higher="cave"] .toy-cave-meter-fill { transform: translateX(-100%); }
.toy-cave-meter[data-higher="equal"] .toy-cave-meter-fill { width: 0; }
.toy-cave-meter-labels { display: flex; justify-content: space-between; gap: 4px; margin-top: 6px; color: var(--text-dim); font-size: 11px; }
.toy-cave-context { min-height: 2.9em; margin: 14px 0 0; color: var(--text-dim); font-size: 13px; }
.toy-cave-tracer { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--text-dim); font-size: 12px; }
@media (max-height: 560px) {
  .toy-cave-indicator { right: 10px; width: 250px; padding: 8px 14px; }
  .toy-cave-indicator h2 { margin: 0 0 4px; font-size: 21px; }
  .toy-cave-controls label > span { font-size: 12px; }
  .toy-cave-pressure { margin-top: 2px; }
  .toy-cave-pressure p { margin-bottom: 4px; font-size: 12px; }
  .toy-cave-meter-labels { margin-top: 4px; font-size: 10px; }
  .toy-cave-context { min-height: 0; margin-top: 4px; font-size: 12px; }
  .toy-cave-tracer { margin-top: 6px; padding-top: 6px; font-size: 11px; }
}
@media (max-width: 660px) and (max-aspect-ratio: 7/5) {
  .toy-cave-indicator { --cave-placement: bottom; top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; transform: none; }
  .toy-cave-context { min-height: 1.45em; }
}
/* The sand experiment keeps its purpose and measured result in view. */
.toy-sand-guide {
  position: absolute; z-index: 8; left: 50%; transform: translateX(-50%);
  width: min(640px, calc(100% - 24px)); text-align: center; pointer-events: none;
  color: var(--text); font: 14px/1.5 var(--font-body);
}
.toy-sand-guide p { margin: 0; }
.toy-sand-guide p + p { margin-top: 4px; color: var(--text-dim); font-size: 12px; }

/* Fixed to the viewport so the readout stays legible while the glass tumbles. */
.toy-hourglass-timer {
  --hourglass-timer-inset: clamp(16px, 3vw, 36px);
  position: absolute; z-index: 7; top: var(--hourglass-timer-inset); right: clamp(16px, 3vw, 36px);
  width: 204px; pointer-events: none; user-select: none;
  color: var(--text); font: 12px/1.4 var(--font-body); font-variant-numeric: tabular-nums;
}
.toy-shell.is-expanded .toy-hourglass-timer, .toy-shell:fullscreen .toy-hourglass-timer { top: calc(var(--toy-top-height, 52px) + var(--hourglass-timer-inset)); }
.hourglass-timer-label { display: flex; justify-content: space-between; color: var(--text-dim); }
.hourglass-timer-paused { display: none; color: var(--app-brass); }
.is-paused .hourglass-timer-paused { display: inline; }
.hourglass-timer-value { margin: 4px 0 5px; font: 36px/1.2 var(--font-mono); letter-spacing: -.05em; }
.hourglass-timer-detail { color: var(--text-dim); white-space: nowrap; }
.hourglass-timer-track { height: 2px; margin-top: 13px; overflow: hidden; background: var(--rule); }
.hourglass-timer-track i { display: block; width: 100%; height: 100%; background: var(--app-brass); transform: scaleX(0); transform-origin: left; }
.hourglass-timer-note { margin-top: 8px; color: var(--text-faint); font-size: 11px; }
@media (max-width: 640px), (max-height: 560px) {
  .toy-hourglass-timer { --hourglass-timer-inset: 12px; width: 168px; right: 14px; }
  .hourglass-timer-value { font-size: 28px; }
  .hourglass-timer-track { margin-top: 9px; }
}

/* Measurements sit beside the native particle view. */
.marly-native-panel { position: absolute; z-index: 5; left: 18px; top: calc(var(--toy-top-height, 52px) + 14px); display: grid; gap: 6px; min-width: 185px; max-width: 220px; padding: 12px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--bg-raised); color: var(--text); font: 12px/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.marly-native-panel p { margin: 0 0 4px; color: var(--text-dim); font: 12px/1.4 var(--font-body); }
.marly-native-panel strong { color: var(--accent); font: 15px/1.3 var(--font-heading); }
.marly-native-panel #marly-state { color: var(--text-dim); }
.toy-app .toy-shell .marly-native-panel button { min-height: 44px; border: 1px solid var(--rule-strong); border-radius: 6px; color: var(--text); background: var(--bg); font: 12px/1.3 var(--font-body); }
.toy-app .toy-shell .marly-native-panel button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.marly-native-panel button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-height: 560px) { .marly-native-panel { top: calc(var(--toy-top-height, 52px) + 4px); left: 8px; box-sizing: border-box; min-width: 0; width: 160px; padding: 8px; gap: 3px; font-size: 10px; } .marly-native-panel p { font-size: 11px; } }
