:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #11151c; color: #e6e9ef; font-family: system-ui, sans-serif;
}
.controls {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding: 12px 16px;
  background: #1a202b; border-bottom: 1px solid #2b3445;
}
.controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #9aa6bb; }
select, input, button {
  font: inherit; font-size: 15px; padding: 6px 10px; color: #e6e9ef;
  background: #252d3b; border: 1px solid #3a455a; border-radius: 6px;
}
input { width: 90px; }
input[type=range] { width: 140px; padding: 0; }
.controls label.check { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: #e6e9ef; padding-bottom: 8px; }
input[type=checkbox] { width: auto; }
button { cursor: pointer; background: #2f6fed; border-color: #2f6fed; }
button.running { background: #b9433f; border-color: #b9433f; }
.notice { padding: 8px 16px; font-size: 13px; background: #3a2f17; color: #f2c46d; }
.notice.ok { background: #17321f; color: #7ad39a; }
main { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; padding: 16px; }
canvas { width: min(88vw, 78vh); aspect-ratio: 1; }
.readout { min-width: 220px; text-align: center; }
.note { font-size: 64px; font-weight: 600; line-height: 1.1; }
.detail { font-size: 18px; color: #9aa6bb; margin-top: 6px; min-height: 24px; }
.meter { position: relative; height: 10px; margin: 18px auto 8px; width: 220px; background: #252d3b; border-radius: 5px; }
.meter::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: #5b677d; }
#needle { position: absolute; top: -3px; width: 6px; height: 16px; left: 50%; margin-left: -3px; border-radius: 3px; background: #5b677d; }
.status { font-size: 13px; color: #78849a; margin-top: 12px; max-width: 260px; }
