:root {
  color-scheme: dark;
  font-family: system-ui, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0b1120;
  color: #e5e7eb;
}
header {
  background: #111c32;
  padding: 22px 5%;
  border-bottom: 1px solid #273449;
}
.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand span { color: #38bdf8; }
.subtitle { color: #94a3b8; margin-top: 5px; }
main { max-width: 1150px; margin: auto; padding: 25px 18px; }
.hero { margin-bottom: 22px; }
h1 { margin-bottom: 5px; }
h2 { font-size: 19px; margin-top: 0; }
p { color: #94a3b8; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: #172238;
  border: 1px solid #29374d;
  border-radius: 15px;
  padding: 22px;
  margin-bottom: 18px;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #29374d;
}
.line strong { text-align: right; }
.notice {
  display: inline-block;
  padding: 10px 16px;
  background: #273449;
  border-radius: 9px;
}
.ok { color: #4ade80; }
.bad { color: #f87171; }
.warn { color: #fbbf24; }
select, button {
  padding: 12px;
  border-radius: 9px;
  font-size: 15px;
}
select {
  display: block;
  width: 100%;
  margin: 12px 0;
  background: #0b1120;
  color: white;
  border: 1px solid #475569;
}
button {
  background: #0284c7;
  border: none;
  color: white;
  cursor: pointer;
}
button.secondary { background: #334155; }
button.danger { background: #b91c1c; }
button:disabled { opacity: .4; cursor: not-allowed; }
.controls { display: flex; gap: 12px; }
.hint { font-size: 13px; line-height: 1.5; }
a { color: #38bdf8; }
footer {
  text-align: center;
  color: #64748b;
  padding: 25px;
}
@media(max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .line { font-size: 14px; }
}

.audio-meter {margin-top:18px}
.meter-label {margin-bottom:8px}
.meter-track {
  width:100%;height:18px;background:#334155;
  border-radius:10px;overflow:hidden
}
#audio-level {
  width:0%;height:100%;
  background:linear-gradient(90deg,#22c55e 60%,#eab308 85%,#ef4444);
  transition:width .08s
}
#audio-db {font-size:13px;color:#94a3b8;margin-top:7px}
