:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #101013;
  color: #f4f1f5;
  --line: #393640;
  --accent: #ff967b;
  --muted: #bcb7c4;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #d7c9ff; }
button, select, input, textarea { font: inherit; }
button, select, input[type="number"], textarea {
  color: inherit;
  background: #211f27;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: .6rem .8rem;
}
button, summary { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid #d7c9ff; outline-offset: 3px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(1rem, calc((100vw - 60rem) / 2)); border-bottom: 1px solid var(--line); }
.bar strong { color: var(--accent); font-size: 1.25rem; }
main { max-width: 62rem; margin: auto; padding: 1rem; }
.intro { padding: clamp(1.4rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(90deg, #1a1724 20%, #1a17243b), url("wave-field.webp") center / cover; }
.intro h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; margin: .45rem 0; }
.intro p { margin: 0; max-width: 32rem; }
.intro p:first-child { color: var(--accent); font-weight: 700; font-size: .875rem; letter-spacing: .1em; }
.panel { margin-top: 1rem; padding: clamp(1rem, 3vw, 1.65rem); background: #18171d; border: 1px solid var(--line); border-radius: 1rem; }
h2 { margin: 0 0 .8rem; }
.settings { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: .65rem; }
.settings label, details label { display: grid; min-width: 0; gap: .35rem; }
.settings :is(select, input) { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.primary { background: var(--accent); border-color: var(--accent); color: #261811; font-weight: 700; }
.record { color: var(--muted); }
output { display: block; min-height: 1.4em; margin: .65rem 0; color: #ded5ee; }
.monitor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.monitor div { background: #24212a; border-radius: .6rem; padding: .55rem; display: grid; gap: .3rem; }
.monitor span { color: var(--muted); font-size: .875rem; }
.monitor strong { font-size: clamp(1rem, 4vw, 1.4rem); font-variant-numeric: tabular-nums; }
progress { width: 100%; accent-color: var(--accent); margin-top: .6rem; }
.notes { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; }
.notes li { display: grid; place-items: center; gap: .25rem; min-width: 2.6rem; border: 1px solid var(--line); border-radius: .5rem; padding: .45rem; }
.notes li.active { background: #553e4a; border-color: var(--accent); }
.notes small { color: #e3cbff; }
textarea { width: 100%; resize: vertical; font-family: Consolas, monospace; }
summary { font-weight: 700; }
footer { color: var(--muted); padding: 1.25rem 0; }
audio { display: block; max-width: 100%; margin-bottom: .45rem; }
@media (max-width: 38rem) { .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 24rem) { .settings label:first-child { grid-column: 1 / -1; } }


#room-link { display: block; width: 100%; margin-top: .35rem; color: inherit; background: #211f27; border: 1px solid var(--line); border-radius: .5rem; padding: .6rem .8rem; }
#room-takes li { margin: .5rem 0; }
#room-takes button { margin: .2rem .3rem .2rem 0; }
audio[hidden] { display: none; }
