:root {
  color-scheme: light;
  font-family: 'Noto Sans SC', 'Manrope', 'Microsoft YaHei', sans-serif;
  color: #252d2b;
  background: #f1f3f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #252d2b;
  --muted: #77817e;
  --line: #e3e8e5;
  --teal: #167d77;
  --teal-dark: #125e5a;
  --teal-soft: #e6f1ef;
  --white: #fff;
  --mono: 'DM Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; }

html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; background: #f1f3f1; }
button, input { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 66px; flex: 0 0 66px; display: flex; align-items: center; padding: 0 26px; background: #fff; border-bottom: 1px solid #e7ebe9; }
.brand { min-width: 210px; display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; display: flex; gap: 3px; align-items: flex-end; justify-content: center; padding: 5px 6px; border: 1px solid #d4e6e2; border-radius: 7px; background: #eff7f5; }
.brand-mark i { display: block; width: 3px; border-radius: 3px; background: var(--teal); }
.brand-mark i:nth-child(1) { height: 9px; opacity: .58; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 11px; opacity: .76; }
.brand-copy { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.brand-copy strong { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.brand-copy span { color: #79827f; font-size: 12px; }
.topbar-meta { display: flex; align-items: center; gap: 15px; margin-left: auto; color: #7a8481; font-size: 12px; }
.model-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.model-status i, .running-state i { width: 7px; height: 7px; border-radius: 50%; background: #d69c46; box-shadow: 0 0 0 3px #f9f1e4; }
.model-status.is-ready i { background: #29967e; box-shadow: 0 0 0 3px #e7f4ef; }
.meta-divider { width: 1px; height: 16px; background: var(--line); }
.model-spec { white-space: nowrap; }
.mobile-info { display: none !important; }

.workspace { width: 100%; max-width: 1680px; min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 17px; margin: 0 auto; padding: 17px; }
.viewport-panel { min-width: 0; min-height: 580px; display: flex; flex-direction: column; overflow: hidden; }
.viewport { position: relative; min-height: 0; flex: 1; overflow: hidden; border: 1px solid #e2e7e4; border-radius: 5px; background: #eff2f0; }
#scene-canvas { display: block; width: 100%; height: 100%; outline: 0; }
.viewport-topline { position: absolute; z-index: 2; top: 21px; left: 23px; right: 23px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; pointer-events: none; }
.viewport-title { pointer-events: auto; }
.eyebrow { display: block; margin-bottom: 5px; color: #818c88; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.viewport-title h1 { margin: 0; color: #29312f; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.view-tabs { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; padding: 3px; border: 1px solid #dde4e1; border-radius: 5px; background: rgba(255,255,255,.88); box-shadow: 0 2px 8px rgba(36,52,47,.04); pointer-events: auto; }
.view-tab { min-width: 48px; height: 29px; padding: 0 9px; border: 0; border-radius: 3px; background: transparent; color: #737d79; font-size: 11px; cursor: pointer; transition: background .16s, color .16s; }
.view-tab:hover { color: var(--teal-dark); }
.view-tab.is-active { background: #e7f1ef; color: var(--teal-dark); font-weight: 600; }
.viewport-bottomline { position: absolute; z-index: 2; right: 21px; bottom: 18px; left: 21px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.model-readouts { display: inline-flex; align-items: center; gap: 15px; padding: 8px 12px; border: 1px solid rgba(222,229,225,.9); border-radius: 4px; background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(36,52,47,.035); }
.readout { display: flex; align-items: center; gap: 8px; }
.readout > span:last-child { display: grid; gap: 1px; }
.readout strong { color: #34413e; font-family: var(--mono); font-size: 14px; line-height: 1.1; font-weight: 500; }
.readout small { color: #818b87; font-size: 10px; white-space: nowrap; }
.readout-divider { width: 1px; height: 23px; background: #e4e9e6; }
.readout-icon { position: relative; width: 18px; height: 18px; display: block; }
.sieve-icon::before, .sieve-icon::after { position: absolute; left: 1px; right: 1px; height: 4px; border: 1px solid #40948b; border-radius: 1px; content: ''; }
.sieve-icon::before { top: 3px; }
.sieve-icon::after { top: 10px; }
.zone-icon::before { position: absolute; inset: 2px 1px; border: 1px solid #d69a42; border-radius: 2px; background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(214,154,66,.65) 4px 5px); content: ''; }
.viewport-actions { display: flex; align-items: center; gap: 7px; pointer-events: auto; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid #dfe5e2; border-radius: 4px; background: rgba(255,255,255,.94); color: #687571; cursor: pointer; transition: border-color .16s, color .16s, background .16s; }
.icon-button:hover, .icon-button:focus-visible { border-color: #a9cbc4; color: var(--teal-dark); background: #f9fffd; }
.icon-button svg, .text-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.play-icon { display: none; }
#pause-motion[aria-pressed="true"] .pause-icon { display: none; }
#pause-motion[aria-pressed="true"] .play-icon { display: block; }
.viewport-footer { height: 31px; flex: 0 0 31px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 2px; color: #818a87; font-size: 10px; }
.viewport-footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: #37947d; }
.footer-note { display: inline-flex; gap: 6px; align-items: center; }
.footer-note b { color: var(--teal); font-size: 14px; font-weight: 600; }
.loading-state, .error-state { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(239,242,240,.83); color: #75807c; font-size: 12px; }
.loading-state[hidden], .error-state[hidden] { display: none; }
.loader-ring { width: 23px; height: 23px; border: 2px solid #cbdad6; border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state strong { color: #34413e; font-size: 15px; }
.error-state span { max-width: 280px; text-align: center; line-height: 1.6; }

.control-panel { min-width: 0; display: flex; flex-direction: column; align-self: stretch; padding: 20px 20px 15px; border: 1px solid #e2e7e4; border-radius: 5px; background: #fff; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.panel-heading h2 { margin: 0; color: #26302d; font-size: 17px; line-height: 1.3; font-weight: 600; }
.max-label { padding-bottom: 2px; color: #8b9591; font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.frequency-control { padding-top: 21px; }
.frequency-display { display: flex; align-items: flex-start; justify-content: space-between; }
.frequency-display label { padding-top: 4px; color: #56615d; font-size: 12px; font-weight: 500; }
.frequency-value { display: flex; align-items: baseline; gap: 5px; color: var(--teal-dark); font-family: var(--mono); }
.frequency-value output { font-size: 34px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.frequency-value span { color: #77837f; font-size: 12px; }
input[type="range"] { width: 100%; height: 18px; display: block; margin: 19px 0 1px; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #17827a 0 var(--range-progress, 50%), #e6ebe9 var(--range-progress, 50%) 100%); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #e6ebe9; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: #17827a; }
input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; appearance: none; border: 3px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px #167d77, 0 2px 4px rgba(30,87,79,.2); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 3px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px #167d77, 0 2px 4px rgba(30,87,79,.2); }
input[type="range"]:focus-visible { outline: 2px solid #91c6bc; outline-offset: 3px; border-radius: 3px; }
.range-labels { display: flex; justify-content: space-between; color: #9aa39f; font-family: var(--mono); font-size: 9px; }
.amplitude-readout { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 23px; padding: 12px 12px 11px; border: 1px solid #e7eeeb; border-radius: 4px; background: #f8fbfa; }
.amplitude-copy { display: grid; gap: 3px; }
.amplitude-copy > span { color: #798480; font-size: 10px; }
.amplitude-copy strong { color: #315f58; font-family: var(--mono); font-size: 19px; line-height: 1.1; font-weight: 500; }
.amplitude-copy small { color: #82908b; font-family: 'Noto Sans SC', sans-serif; font-size: 10px; font-weight: 400; }
.peak-readout { display: grid; gap: 4px; text-align: right; }
.peak-readout > span { color: #98a39e; font-size: 9px; }
.peak-readout strong { color: #758780; font-family: var(--mono); font-size: 16px; line-height: 1.1; font-weight: 400; }
.peak-readout small { color: #98a39e; font-size: 9px; }
.motion-trace { position: relative; height: 42px; padding: 3px 0 0; }
.motion-trace svg { display: block; width: 100%; height: 34px; }
.trace-baseline { fill: none; stroke: #e2eae6; stroke-width: 1; stroke-dasharray: 3 3; }
.trace-wave { fill: none; stroke: #72a99b; stroke-width: 1.3; stroke-linejoin: round; }
.motion-trace > span { position: absolute; right: 0; bottom: 0; color: #a0aaa5; font-size: 8px; }
.material-response { display: flex; align-items: center; gap: 7px; margin: 9px 0 10px; color: #87938d; font-size: 10px; }
.material-response > strong { margin-left: auto; color: #6e9180; font-size: 10px; font-weight: 500; }
.material-response > strong[data-level="medium"] { color: #b78f40; }
.material-response > strong[data-level="high"] { color: #bc7e3b; }
.response-meter { width: 37px; height: 4px; overflow: hidden; border-radius: 4px; background: #edf0eb; }
.response-meter > i { display: block; width: 25%; height: 100%; border-radius: inherit; background: #8bab8b; transition: width .15s, background .15s; }
.amplitude-meter { width: 77px; height: 5px; overflow: hidden; border-radius: 4px; background: #e4ece9; }
.amplitude-meter i { width: 25%; height: 100%; display: block; border-radius: inherit; background: #44a194; transition: width .16s ease; }
.mapping-note { margin: 8px 0 0; color: #939d99; font-size: 10px; }
.impact-note { margin-top: 3px; color: #a1aaa5; font-size: 9px; }
.powder-process .section-heading { margin-bottom: 9px; }
.powder-process .section-heading > span { color: #8a9a91; font-size: 9px; }
.drying-stages { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 9px 8px; border-radius: 4px; background: #faf9f4; }
.drying-stages > span { display: inline-flex; align-items: center; gap: 4px; color: #8f8774; font-size: 9px; white-space: nowrap; }
.drying-stages > b { color: #b8bbaa; font-weight: 400; font-size: 12px; }
.drying-stages i { display: inline-block; border-radius: 50%; flex: 0 0 auto; }
.wet-dot { width: 8px; height: 8px; background: #997246; }
.drying-dot { width: 6px; height: 6px; background: #d5ba77; }
.dry-dot { width: 4px; height: 4px; background: #e9d7a1; }
.inventory-copy { display: flex; align-items: baseline; justify-content: space-between; margin: 11px 0 6px; color: #7d8981; font-size: 10px; }
.inventory-copy strong { color: #5a8b79; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.inventory-meter { height: 5px; overflow: hidden; border-radius: 4px; background: #ebf0eb; }
.inventory-meter > i { display: block; width: 0; height: 100%; border-radius: inherit; background: #81aa8c; transition: width .2s; }
.inventory-caption { display: flex; justify-content: space-between; gap: 5px; margin: 5px 0 0; color: #9ba69d; font-size: 8px; }
.layer-inventory { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 9px; }
.layer-inventory > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 6px; color: #7d8981; font-size: 9px; }
.layer-inventory strong { color: #6b806f; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.layer-inventory > div > i { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 4px; background: #ebf0eb; }
.layer-inventory > div > i > i { display: block; width: 0; height: 100%; border-radius: inherit; background: #ac956b; transition: width .2s; }
.layer-inventory > div:nth-child(2) > i > i { background: #ddc78e; }
.exciter-note { margin: -1px 0 8px 25px; color: #9ba39f; font-size: 9px; line-height: 1.5; }
.panel-rule { height: 1px; flex: 0 0 1px; margin: 17px 0 15px; background: #edf0ee; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-heading h3 { margin: 0; color: #495450; font-size: 11px; font-weight: 600; }
.running-state { display: inline-flex; align-items: center; gap: 6px; color: #3f8c70; font-size: 10px; }
.running-state i { width: 6px; height: 6px; background: #3a9a79; box-shadow: 0 0 0 3px #edf7f2; }
.running-state.is-paused { color: #9a855f; }
.running-state.is-paused i { background: #c8a257; box-shadow: 0 0 0 3px #faf5e9; }
.state-row { min-height: 35px; display: flex; align-items: center; gap: 9px; border-top: 1px solid #f0f2f1; }
.state-label { flex: 1; color: #74807b; font-size: 11px; }
.state-row > strong { color: #3e4945; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.state-row > strong.state-description { color: #84908a; font-family: inherit; font-size: 9px; font-weight: 400; }
.state-row > strong.feed-rate { color: #588278; font-size: 11px; }
.state-row > strong.feed-rate small { color: #93a098; font-size: 9px; }
.feed-symbol { color: #ad8c54; font-family: var(--mono); font-size: 19px; }
.state-row > strong small { color: #929b97; font-family: 'Noto Sans SC', sans-serif; font-size: 9px; font-weight: 400; }
.state-symbol { position: relative; width: 17px; height: 17px; display: grid; place-items: center; color: #168078; }
.motor-symbol::before { width: 11px; height: 8px; border: 1px solid currentColor; border-radius: 2px; content: ''; }
.motor-symbol::after { position: absolute; right: 1px; width: 3px; height: 4px; border: 1px solid currentColor; border-left: 0; content: ''; }
.motor-symbol i { position: absolute; bottom: 1px; left: 5px; width: 1px; height: 3px; background: currentColor; }
.fan-symbol::before { width: 12px; height: 12px; border: 1px solid #ca9548; border-radius: 50%; content: ''; }
.fan-symbol i { position: absolute; width: 3px; height: 7px; border-radius: 3px; background: #d5a253; transform-origin: 50% 6px; }
.fan-symbol i::after { position: absolute; top: 7px; left: 1px; width: 1px; height: 1px; border-radius: 50%; background: #d5a253; content: ''; }
.air-symbol { align-content: center; gap: 2px; }
.air-symbol i { position: relative; width: 4px; height: 7px; border-top: 1px solid #499b90; border-right: 1px solid #499b90; transform: rotate(-45deg); }
.display-options .section-heading { margin-bottom: 2px; }
.toggle-row { min-height: 38px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0f2f1; color: #65716c; font-size: 11px; cursor: pointer; }
.toggle-row > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.toggle-row b { color: #51897d; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.amplify-option { color: #7b9488; font-family: var(--mono); font-size: 20px; }
.toggle-row input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.switch { position: relative; width: 31px; height: 17px; border: 1px solid #d5ddda; border-radius: 12px; background: #e9eeec; transition: background .16s, border-color .16s; }
.switch::after { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: white; box-shadow: 0 1px 2px rgba(30,48,42,.18); content: ''; transition: transform .16s; }
.toggle-row input:checked + .switch { border-color: var(--teal); background: var(--teal); }
.toggle-row input:checked + .switch::after { transform: translateX(14px); }
.toggle-row input:focus-visible + .switch { outline: 2px solid #91c6bc; outline-offset: 2px; }
.option-icon { width: 16px; height: 16px; display: inline-grid; place-items: center; color: #7e8b86; }
.cover-option::before { width: 12px; height: 7px; border: 1px solid currentColor; border-bottom-width: 2px; border-radius: 5px 5px 1px 1px; content: ''; }
.exciter-option::before { width: 12px; height: 10px; border: 1px solid currentColor; border-right: 1px dashed currentColor; border-radius: 2px; background: linear-gradient(135deg, transparent 45%, #e0e9e4 45% 55%, transparent 55%); content: ''; }
.airflow-option { color: #318b80; font-family: var(--mono); font-size: 17px; line-height: 1; }
.panel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 18px; }
.frequency-limit { display: inline-flex; align-items: center; gap: 6px; color: #87918d; font-size: 10px; white-space: nowrap; }
.limit-mark { width: 14px; height: 14px; display: inline-grid; place-items: center; border: 1px solid #d6dbd8; border-radius: 50%; color: #8b9490; font-family: var(--mono); font-size: 9px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0 5px 5px; border: 0; background: transparent; color: #48736d; font-size: 10px; cursor: pointer; white-space: nowrap; }
.text-button svg { width: 13px; height: 13px; }
.text-button:hover { color: var(--teal-dark); }

@media (min-width: 1400px) { .workspace { gap: 20px; padding: 20px; grid-template-columns: minmax(0, 1fr) 345px; } .viewport-panel { min-height: 680px; } }
@media (max-width: 980px) { .topbar { padding: 0 17px; } .brand { min-width: 185px; } .workspace { grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; padding: 12px; } .control-panel { padding: 18px 16px 14px; } .viewport-panel { min-height: 520px; } }
@media (max-width: 740px) {
  .topbar { height: 58px; flex-basis: 58px; padding: 0 14px; }
  .brand { min-width: auto; }
  .brand-copy { display: grid; gap: 0; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy span { font-size: 9px; }
  .topbar-meta { gap: 8px; margin-left: auto; margin-right: 8px; font-size: 10px; }
  .model-spec, .meta-divider { display: none; }
  .mobile-info { display: inline-grid !important; width: 31px; height: 31px; flex: 0 0 31px; }
  .mobile-info svg { width: 15px; height: 15px; }
  .workspace { display: flex; flex-direction: column; gap: 11px; padding: 10px; }
  .viewport-panel { min-height: 0; height: min(62vh, 610px); min-height: 410px; flex: 0 0 auto; }
  .control-panel { display: none; padding: 18px; }
  .control-panel.is-open { display: flex; }
  .viewport-topline { top: 15px; right: 13px; left: 14px; }
  .viewport-title h1 { max-width: 210px; font-size: 16px; }
  .viewport-topline { flex-wrap: wrap; gap: 11px; }
  .view-tabs { margin-left: auto; }
  .viewport-title .eyebrow { font-size: 9px; }
  .view-tabs { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
  .view-tab { min-width: 0; padding: 0 6px; font-size: 10px; }
  .viewport-bottomline { right: 12px; bottom: 12px; left: 12px; }
  .model-readouts { gap: 10px; padding: 7px 9px; }
  .readout { gap: 6px; }
  .readout-icon { transform: scale(.9); }
  .readout strong { font-size: 12px; }
  .readout small { font-size: 9px; }
  .viewport-footer { height: 25px; flex-basis: 25px; }
}
@media (max-width: 390px) {
  .viewport-panel { min-height: 375px; height: 57vh; }
  .view-tab { padding: 0 5px; }
  .viewport-title h1 { font-size: 14px; max-width: 145px; }
  .view-tabs { transform: none; }
  .viewport-actions { gap: 5px; }
  .icon-button { width: 31px; height: 31px; }
}

/* Dim technical display: cyan controls, warm powder and readable steel. */
:root {
  color-scheme: dark;
  color: #dcebf0;
  background: #071016;
  --ink: #e2f0f5;
  --muted: #8da6b2;
  --line: #203844;
  --teal: #36c7c8;
  --teal-dark: #81e3df;
  --teal-soft: #14353c;
  --white: #0d1d26;
}
body { background: radial-gradient(ellipse at 16% 0, #122b35 0, #071016 64%); }
.topbar { background: #0a1922; border-bottom-color: #24434e; }
.brand-mark { border-color: #256371; background: #12343d; box-shadow: inset 0 0 13px #2ec9cf15; }
.brand-copy span, .topbar-meta { color: #91a9b4; }
.model-status.is-ready i, .running-state i { background: #49c9a7; box-shadow: 0 0 0 3px #17453e; }
.viewport { border-color: #23414d; background: #071218; box-shadow: inset 0 0 45px #41c3d208; }
.eyebrow, .max-label, .range-labels, .mapping-note, .viewport-footer { color: #8ca4ae; }
.viewport-title h1, .panel-heading h2, .section-heading h3 { color: #e2f2f7; }
.view-tabs, .model-readouts, .icon-button { border-color: #2a4652; background: #10232de8; box-shadow: 0 4px 18px #0003; }
.view-tab { color: #9cb4bf; }
.view-tab:hover, .view-tab.is-active { color: #8cf5ec; background: #18434a; }
.readout strong { color: #d9edf2; }
.readout small, .state-label, .state-row > strong.state-description, .state-row > strong small { color: #91adb8; }
.readout-divider, .panel-rule { background: #223a45; }
.icon-button { color: #9dbcc7; }
.icon-button:hover, .icon-button:focus-visible { color: #a4fff5; border-color: #41a8ad; background: #15343e; }
.loading-state, .error-state { background: #08161fed; color: #9bb7c2; }
.error-state strong { color: #e2f2f7; }
.control-panel { border-color: #25414e; background: linear-gradient(155deg, #10232d, #0a1821); box-shadow: 0 8px 30px #0002; }
.frequency-display label, .amplitude-copy > span, .peak-readout > span, .material-response > span { color: #a8bec7; }
.frequency-value { color: #84eee5; text-shadow: 0 0 18px #38c8cb30; }
input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #39c8c7 0 var(--range-progress, 50%), #25414d var(--range-progress, 50%) 100%); }
input[type="range"]::-moz-range-track { background: #25414d; }
input[type="range"]::-moz-range-progress { background: #39c8c7; }
input[type="range"]::-webkit-slider-thumb { border-color: #163740; box-shadow: 0 0 0 1px #65dfdc, 0 0 12px #34c9ca66; }
input[type="range"]::-moz-range-thumb { border-color: #163740; box-shadow: 0 0 0 1px #65dfdc, 0 0 12px #34c9ca66; }
.amplitude-readout { border-color: #284752; background: #102b34; }
.amplitude-copy strong, .peak-readout strong { color: #c1edf0; }
.trace-baseline { stroke: #29424c; }
.trace-wave { stroke: #55c6c1; }
.material-response strong { color: #d4be82; }
.response-meter, .inventory-meter, .layer-inventory > div > i { background: #233b44; }
.drying-stages { background: #182c32; border: 1px solid #2a4147; }
.drying-stages span, .inventory-copy, .layer-inventory > div { color: #b7c6c5; }
.drying-stages b { color: #609096; }
.wet-dot { background: #c9a56a; }
.drying-dot { background: #e4ce95; }
.dry-dot { background: #fff0ca; }
.inventory-copy strong, .layer-inventory strong { color: #c4e5dd; }
.inventory-caption, .exciter-note, .frequency-limit { color: #91a8b2; }
.inventory-meter > i { background: #47a9a6; }
.layer-inventory > div > i > i { background: #b4a078; }
.layer-inventory > div:nth-child(2) > i > i { background: #ecdaaa; }
.state-row, .toggle-row { border-top-color: #203844; }
.state-row > strong, .toggle-row { color: #c2d5dd; }
.state-row > strong.feed-rate, .toggle-row b, .text-button { color: #7ad6cf; }
.state-row > strong.feed-rate small { color: #8faab5; }
.option-icon { color: #87a4ad; }
.switch { border-color: #3b5864; background: #263d48; }
.toggle-row input:checked + .switch { background: #278c91; border-color: #48cbcc; }
.switch::after { background: #d3e8eb; }
.running-state.is-paused { color: #d8bd80; }
.running-state.is-paused i { box-shadow: 0 0 0 3px #403824; }
.limit-mark { border-color: #415864; color: #a0b6bf; }

.throughput-calculator { margin-top: 18px; padding: 13px 11px; border: 1px solid #2a515c; border-radius: 5px; background: #0b2029; }
.throughput-calculator .section-heading { gap: 6px; margin-bottom: 9px; }
.estimate-badge { color: #dfc58e; font-size: 9px; text-align: right; }
.estimate-badge[data-mode="calibrated"] { color: #77d9bf; }
.throughput-specs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; color: #8faeb9; font-size: 10px; }
.throughput-specs b { color: #d4e9ef; font-weight: 500; }
.throughput-main { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px 0 12px; }
.throughput-main > div { display: grid; gap: 5px; min-width: 0; }
.throughput-main span { color: #a7c0ca; font-size: 9px; }
.throughput-main strong { color: #8bf0df; font-family: var(--mono); font-size: 23px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.throughput-main small, .throughput-target small, .mass-readouts small { color: #8faab6; font-family: inherit; font-size: 9px; font-weight: 400; }
.throughput-target { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; padding-top: 9px; border-top: 1px solid #24434e; color: #bdcfd7; font-size: 10px; }
.throughput-target strong { color: #e4cd96; font-family: var(--mono); font-size: 20px; font-weight: 500; white-space: nowrap; }
.throughput-condition { margin: 5px 0 7px; color: #d8ba7e; font-size: 9px; line-height: 1.6; }
.throughput-batch { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px; color: #98b5c0; font-size: 9px; }
.throughput-batch strong { color: #c4dde4; font-weight: 500; }
.weighing-heading { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #24434e; color: #a6bfca; font-size: 9px; }
.weighing-heading b { margin-left: 4px; font-family: var(--mono); font-weight: 500; }
.weighing-heading button { padding: 3px 0 3px 4px; border: 0; color: #78d9d0; background: transparent; font-size: 9px; cursor: pointer; }
.mass-readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.mass-readouts > div { display: grid; gap: 4px; min-width: 0; }
.mass-readouts span { color: #8faebc; font-size: 9px; }
.mass-readouts strong { color: #d5ebed; font-family: var(--mono); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.mass-readouts > div:nth-child(2) strong { color: #8bf0df; }
.throughput-basis { margin: 8px 0 0; color: #d1ba89; font-size: 9px; line-height: 1.65; }
.calibration-settings { margin-top: 10px; padding-top: 8px; border-top: 1px solid #24434e; color: #a6c1ca; font-size: 10px; }
.calibration-settings summary { color: #8bd6d3; cursor: pointer; }
.calibration-settings p { margin: 8px 0; color: #8da8b6; font-size: 9px; line-height: 1.65; }
.calibration-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calibration-inputs label { display: grid; gap: 5px; min-width: 0; color: #b6cbd4; font-size: 9px; }
.calibration-inputs input { width: 100%; min-width: 0; padding: 7px; border: 1px solid #355761; border-radius: 3px; background: #112e38; color: #d8eff2; font-family: var(--mono); font-size: 12px; }
.calibration-inputs input:focus-visible, .calibration-settings button:focus-visible, #reset-weighing:focus-visible { outline: 2px solid #73d7d1; outline-offset: 2px; }
.calibration-apply { width: 100%; margin-top: 9px; padding: 8px 4px; border: 1px solid #3a8990; border-radius: 3px; background: #16434c; color: #b0f0e8; font-size: 10px; cursor: pointer; }
.calibration-demo { padding: 7px 0 0; border: 0; background: transparent; color: #99b4c0; font-size: 9px; cursor: pointer; }
#calibration-error { color: #ffc099; }
@media (min-width: 741px) {
  .workspace { height: calc(100dvh - 66px); flex: 0 0 auto; }
  .viewport-panel { min-height: 0; }
  .control-panel { max-height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #37616d #0b1d26; }
}
@media (max-width: 390px) {
  .throughput-calculator { padding: 12px 9px; }
  .throughput-main strong { font-size: 21px; }
}
