:root{color-scheme:light;--ink:#000;--muted:#55554f;--line:#e5e3d8;--paper:#f5f4ef;--accent:#ff4b1f;--accent-ink:#b8330f;
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:#fff}
*{box-sizing:border-box}
body{margin:0;background:#fff}
main{max-width:860px;margin:0 auto;padding:32px 16px 56px}
[data-readout]{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.eyebrow{margin:0;color:var(--accent-ink);font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
h1{font-size:clamp(30px,5.4vw,46px);line-height:1.08;letter-spacing:-.02em;margin:8px 0 12px}
.deck{font-size:18px;line-height:1.55;margin:0 0 22px;max-width:680px}
.card{border:1px solid var(--line);border-radius:22px;padding:22px;margin:0 0 22px;background:#fff}
.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;border:2px dashed #cfccc0;border-radius:16px;
  background:var(--paper);cursor:pointer;text-align:center;padding:18px;transition:border-color .2s}
.drop:hover,.drop.over{border-color:var(--accent)}
.drop input{position:absolute;width:1px;height:1px;opacity:0}
.drop-title{font-weight:700;font-size:18px}
.drop-hint{color:var(--muted);font-size:14px}
.file-name{margin:10px 0 0;font-weight:600;overflow-wrap:anywhere}
.link{background:none;border:0;padding:0;min-height:44px;color:var(--accent-ink);text-decoration:underline;text-underline-offset:4px;font-size:15px;cursor:pointer}
.options{display:grid;grid-template-columns:1.2fr 1fr;gap:18px 26px;margin:8px 0 18px}
fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
legend{font-weight:700;margin-bottom:8px}
.choice{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:14px;padding:10px 12px;cursor:pointer;font-size:14px;line-height:1.4}
.choice b{display:block;font-size:15px}
.choice:has(input:checked){border-color:var(--ink);background:var(--paper)}
.choice input{accent-color:var(--accent);margin-top:3px}
.sliders{display:flex;flex-direction:column;gap:16px}
.slider{display:flex;flex-direction:column;gap:6px;font-weight:700}
.slider span{display:flex;justify-content:space-between;gap:10px}
.slider output{font-weight:500}
.slider input{width:100%;accent-color:var(--accent);min-height:32px}
.slider small{font-weight:400;color:var(--muted);font-size:13px}
.slider.off{opacity:.45}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border:0;border-radius:999px;background:var(--accent);
  color:#fff;font-size:16px;font-weight:700;cursor:pointer;text-decoration:none}
.primary:disabled{background:#d8d5cb;color:#6b6a63;cursor:not-allowed}
.status{margin-top:16px}
.bar{height:8px;border-radius:99px;background:#efede6;overflow:hidden}
.bar span{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}
.status p{margin:8px 0 0;font-size:14px}
.status.error p{color:#a3200b}
.result h2,.about h2{font-size:22px;margin:0 0 14px}
.players{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
figure{margin:0}
figcaption{font-weight:700;font-size:14px;margin-bottom:6px}
audio{width:100%}
.download{margin-bottom:18px}
.measures{width:100%;border-collapse:collapse;font-size:15px}
.measures caption{text-align:left;color:var(--muted);font-size:13px;padding-bottom:8px}
.measures th,.measures td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left}
.measures td{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-align:right}
.measures th[scope=col]:not(:first-child){text-align:right}
.notes{font-size:14px;color:var(--muted);margin:12px 0 0}
.about{padding:6px 2px}
.about p{line-height:1.6}
.about a{color:var(--accent-ink)}
pre{background:#000;color:#fff;border-radius:12px;padding:12px 14px;overflow:auto;font-size:14px}
.links{font-weight:600}
.small{font-size:13px;color:var(--muted)}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(max-width:700px){.options,.players{grid-template-columns:1fr}.card{padding:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
