:root {
    --bg: #faf8f5;
    --fg: #1f1d1a;
    --muted: #6b665e;
    --accent: #7a2e3b;
    --card: #fff;
    --line: #e4dfd6;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #171614; --fg: #ece8e1; --muted: #a39d93; --accent: #d98a97; --card: #211f1c; --line: #34312c; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--fg); }
a { color: var(--accent); }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1.5rem; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 1rem; align-items: center; }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--fg); }
.who, .muted { color: var(--muted); }
main { max-width: 64rem; margin: 0 auto; padding: 1.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; }
.narrow { max-width: 24rem; }
label { display: block; margin: .75rem 0 .25rem; font-weight: 600; }
input, select, textarea { width: 100%; padding: .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font: inherit; }
button { margin-top: 1rem; padding: .5rem 1rem; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
.flash { padding: .5rem .75rem; border-radius: 6px; background: var(--card); border-left: 4px solid var(--accent); }
.flash-error { border-left-color: #c0392b; }
h1 { margin-top: 0; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.button { display: inline-block; padding: .5rem 1rem; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.link { background: none; color: var(--muted); padding: 0; margin: 0; text-decoration: underline; }
button.danger { background: #c0392b; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center; }
.filters input, .filters select { width: auto; flex: 1 1 10rem; }
.filters button { margin-top: 0; }
table.songs { width: 100%; border-collapse: collapse; }
table.songs th, table.songs td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.voice { display: inline-block; margin: 0 .4rem .2rem 0; padding: 0 .4rem; border: 1px solid var(--line); border-radius: 4px; }
.voice small { color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 1rem 0; padding: .5rem 1rem 1rem; }
legend { font-weight: 600; padding: 0 .25rem; }
.voice-row { display: flex; gap: .5rem; align-items: end; margin-bottom: .5rem; }
.voice-row > div { display: flex; gap: .5rem; flex: 1; }
.voice-row > div > div { flex: 1; }
.voice-row label { margin-top: 0; font-weight: 400; font-size: .85rem; color: var(--muted); }
.voice-row button { margin-bottom: .6rem; }
input[type=checkbox] { width: auto; }
.danger-zone { margin-top: 2rem; }
.help-text, .form-text { color: var(--muted); font-size: .9rem; }
ul.form-errors, div > ul { color: #c0392b; }
.tracks { list-style: none; padding: 0; }
.tracks li { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.track-label { min-width: 6rem; font-weight: 600; }
.tracks audio { flex: 1; max-width: 32rem; }
