:root {
  color-scheme: dark;
  font: 1rem/1.5 system-ui, sans-serif;
  color: #f2f5f4;
  background: #121518;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  width: min(100%, 46rem);
  margin: auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
}
header { margin: 0.5rem 0 1.5rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 8vw, 3.4rem); letter-spacing: -0.06em; }
h2 { font-size: 1.15rem; margin-bottom: 0.65rem; }
p, pre { color: #bcc8c5; }
#environment { color: #84e5c4; font-size: 0.875rem; }
section {
  margin: 0.75rem 0;
  padding: 1rem;
  background: #1b2023;
  border: 1px solid #343d40;
  border-radius: 1rem;
}
label { display: grid; gap: 0.25rem; min-width: 0; font-size: 0.9rem; }
button, input, select { font: inherit; max-width: 100%; }
button, select {
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #4e625c;
  border-radius: 0.65rem;
  background: #28332f;
  color: inherit;
}
button { margin-top: 0.8rem; cursor: pointer; }
section > button:first-of-type { color: #0d221b; background: #85e5c5; font-weight: 650; }
button:disabled { opacity: 0.52; cursor: default; }
input[type="file"] { min-height: 2.5rem; padding-block: 0.3rem; }
.options, .references { display: grid; gap: 0.65rem; margin-top: 0.7rem; }
@media (min-width: 34rem) { .options { grid-template-columns: 1fr 1fr; } }
details { margin-top: 0.55rem; }
pre { margin: 0.5rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.85rem; }
#stems { margin-top: 0.7rem; }
.stem { display: flex; gap: 0.5rem; align-items: center; min-height: 2.7rem; border-bottom: 1px solid #343d40; }
.stem label { display: flex; align-items: center; flex: 1; gap: 0.45rem; }
.stem button { margin: 0.2rem 0; min-height: 2.25rem; }
audio { width: 100%; margin-top: 0.7rem; }
[hidden] { display: none; }
