:root {
  color-scheme: dark;
  --bg: #090d12;
  --panel: #10161e;
  --panel-2: #151d27;
  --text: #edf3f8;
  --muted: #94a3b4;
  --line: #253142;
  --accent: #72d2c7;
  --accent-2: #8da8ff;
  --danger: #d96b78;
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, #15202d 0, transparent 30rem), var(--bg);
  color: var(--text);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.shell { width: min(1100px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 44px; }
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .14em; font-size: .72rem; margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1; margin: 0; letter-spacing: -.04em; }
h2 { font-size: 1.05rem; margin: 0 0 10px; }
.lede, .muted { color: var(--muted); }
.lede { max-width: 700px; line-height: 1.5; }
.status-pill { background: #17212c; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: .86rem; color: var(--accent); white-space: nowrap; }
.notice { padding: 14px 16px; border: 1px solid #3b4654; border-radius: 14px; background: rgba(255,255,255,.03); color: #d8e2eb; line-height: 1.45; margin-bottom: 16px; }
.background-notice { background: linear-gradient(135deg, rgba(114,210,199,.08), rgba(141,168,255,.035)); border-color: #34515a; }
.background-notice p { margin: 8px 0 0; color: #b9c7d3; font-size: .88rem; }
.background-notice .small-inline { color: var(--muted); font-size: .78rem; }
.support-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.support-badge { display: inline-flex; align-items: center; border: 1px solid #385e64; border-radius: 999px; padding: 5px 9px; color: #aee9e0; background: rgba(114,210,199,.08); font-size: .72rem; font-weight: 700; }
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.14); }
.control-card { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap { gap: 18px; }
button { border: 0; border-radius: 12px; padding: 11px 14px; font-weight: 750; color: var(--text); background: var(--panel-2); }
button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #071014; }
button.secondary { border: 1px solid #385063; background: #17212c; }
button.ghost { border: 1px solid var(--line); background: transparent; color: #c6d3de; }
button.danger { border: 1px solid #653844; background: #2c171d; color: #ffb9c1; }
label { display: block; margin: 16px 0 0; }
label > span { display: flex; justify-content: space-between; gap: 16px; color: #cdd8e3; font-size: .9rem; }
.setting-help { display: block; margin-top: 5px; color: #8192a3; font-size: .76rem; line-height: 1.45; }
input[type="range"] { width: 100%; margin-top: 8px; accent-color: var(--accent); }
.output-line, .small { margin-top: 11px; color: var(--muted); font-size: .82rem; }
.meter-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.meter-card { background: #0c1219; border: 1px solid #202b38; border-radius: 14px; padding: 14px; min-height: 88px; }
.meter-card strong { font-size: 1.45rem; }
.meter-card > span:last-child { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.meter-label { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 6px; }
.meter-explainer { margin-top: 12px; border-top: 1px solid #202b38; padding-top: 10px; }
.meter-explainer summary { cursor: pointer; color: #b8c7d5; font-size: .8rem; font-weight: 700; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.guide-grid p { margin: 0; padding: 11px; border: 1px solid #202b38; border-radius: 12px; background: #0c1219; }
.guide-grid strong { display: block; font-size: .78rem; color: #dfe8ef; margin-bottom: 3px; }
.guide-grid span { display: block; color: var(--muted); font-size: .74rem; line-height: 1.42; }
.progress-track { height: 8px; border-radius: 999px; background: #0a0f15; overflow: hidden; margin-top: 14px; }
.progress-track div { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s linear; }
.volume-control { max-width: 420px; }
.hr-readout { margin-top: 15px; font-size: 1.15rem; }
.hr-readout strong { font-size: 2.3rem; }
.log-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { text-align: left; border-bottom: 1px solid #202b38; padding: 10px 8px; font-size: .82rem; }
th { color: var(--muted); font-weight: 700; }
footer { color: #788898; font-size: .76rem; line-height: 1.5; text-align: center; padding: 20px 10px 0; }
@media (max-width: 760px) {
  .grid.two, .meter-grid, .guide-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; }
  .status-pill { align-self: flex-start; }
}
