:root { --bg: #0e0f12; --panel: #16181d; --line: #262a31; --fg: #f2f3f5; --muted: #8b8f98; --accent: #ffd400; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg);
  font: 15px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
button { font: inherit; font-weight: 600; background: var(--accent); color: #111; border: 0;
  border-radius: 10px; padding: 11px 18px; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
button.ghost { background: #23262d; color: var(--fg); }
button.on { background: var(--accent); color: #111; }
button.sm { padding: 7px 12px; font-size: 13px; }
input[type=text], input[type=number], input:not([type]) { font: inherit; background: #1a1c21; color: var(--fg);
  border: 1px solid #2c2f36; border-radius: 10px; padding: 12px; width: 100%; }
select { font: inherit; background: #1a1c21; color: var(--fg); border: 1px solid #2c2f36;
  border-radius: 8px; padding: 6px 8px; max-width: 100%; }
input[type=range] { accent-color: var(--accent); width: 100%; min-width: 0; }
input[type=checkbox] { accent-color: var(--accent); width: 20px; height: 20px; }
.muted { color: var(--muted); }

/* painel de controles */
.grp { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.grp:first-child { border-top: 0; padding-top: 0; }
.grp h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 8px; margin: 8px 0; }
.row > span { color: var(--muted); font-size: 13px; }
.row > select { grid-column: 2 / 4; }
.row > input[type=checkbox] { justify-self: start; grid-column: 2; }
.row output { min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
