:root {
  color-scheme: light;
  --paper: #E7EAEE; --card: #F6F7F9; --ink: #14171C; --muted: #566070;
  --line: #C7CDD6; --sticker: #EE5019; --bc: #1A8BA9; --yt: #CC2F25;
  --ok: #2D7D52; --warn: #A86F00;
  --heading: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --paper: #101216; --card: #191C21; --ink: #E8EAEE; --muted: #9AA2AF;
  --line: #2C3139; --sticker: #FF6A35; --bc: #45B7D6; --yt: #FF6257;
  --ok: #5CC08A; --warn: #E3AE3C;
}
* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.45 system-ui, sans-serif; }
main { flex: 1; width: 100%; max-width: 46rem; margin-inline: auto; padding: 1rem; }
h1, h2 { font-family: var(--heading); font-weight: 900; text-transform: uppercase; }
h1 { margin: 0; line-height: 1.05; font-size: clamp(2rem, 9vw, 3.25rem); overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
button, select, .tap, .pagination a {
  min-height: 44px; padding: .5rem .75rem; background: var(--card); border: 1px solid var(--line);
  border-radius: .45rem; display: inline-flex; align-items: center;
}
button, select, label { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sticker); outline-offset: 2px; }
.divider { border-bottom: 3px solid var(--ink); margin-block: 0 1rem; }
.divider h1 { width: fit-content; max-width: 100%; background: var(--card); padding: .55rem .85rem; border-radius: .8rem .8rem 0 0; }
.divider p { margin: .45rem 0; }
.filters, .links li, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.chip, .pill { font: .8rem var(--mono); border: 1px solid var(--line); border-radius: 2rem; padding: .25rem .55rem; }
.chip select { background: transparent; padding: .25rem; border: 0; max-width: 10rem; }
.crate, .links { list-style: none; padding: 0; margin: .5rem 0; }
.record { background: var(--card); display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); padding: .35rem; margin-bottom: .35rem; border-radius: .5rem; text-decoration: none; overflow-wrap: anywhere; }
.muted { display: block; color: var(--muted); }
.cover, .artwork { object-fit: cover; background: var(--line); aspect-ratio: 1; display: block; flex-shrink: 0; border-radius: .25rem; }
.cover { width: 56px; height: 56px; }
.artwork { width: min(65%, 240px); height: auto; }
.placeholder { background: radial-gradient(circle at center, var(--line) 0 10%, var(--muted) 11% 36%, var(--line) 37%); }
.detail { display: flex; gap: .75rem; align-items: start; }
.sticker { background: var(--sticker); color: #14171C; border-radius: 50%; min-width: 2.75rem; min-height: 2.75rem; width: fit-content; display: grid; place-items: center; padding: .4rem; margin-block: .6rem; font: bold .9rem var(--mono); }
.pill.bandcamp { border-color: var(--bc); }
.pill.youtube { border-color: var(--yt); }
.links li { margin-bottom: .25rem; }
iframe { border: 0; max-width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mono { font-family: var(--mono); }
.tabs { position: sticky; bottom: 0; padding: .3rem .5rem max(.3rem, env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); display: flex; justify-content: center; gap: .25rem; }
.tabs a { flex: 0 1 7rem; display: grid; grid-auto-flow: column; place-content: center; gap: .25rem; min-height: 44px; font-size: .85rem; }
.tabs span { font-family: var(--mono); color: var(--muted); }
.sheet { margin-block: .6rem; padding: .85rem; background: var(--card); border: 1px solid var(--line); border-radius: .85rem .85rem .25rem .25rem; }
.sheet fieldset { border: 0; padding: 0; margin: 0 0 .75rem; }
.choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.choice { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem; }
.sheet textarea { display: block; width: 100%; margin-block: .4rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: .4rem; padding: .5rem; }
.chip input[type=number] { width: 5rem; min-height: 44px; padding: .2rem; background: transparent; border: 0; }
.record input[type=checkbox] { width: 1.3rem; height: 1.3rem; flex-shrink: 0; }
.source-row p { margin: .25rem 0 0; }
.chart { display: block; width: 100%; color: var(--ink); font: .78rem var(--mono); }
.chart text { fill: currentColor; }
.chart .bar { fill: var(--sticker); }
input[type=search], input:not([type]) { min-height: 44px; padding: .35rem; max-width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: .35rem; }

:root {
  --g-electronic: #c4deff; --g-score: #e2e8ef; --g-experimental: #e6d4ff;
  --g-jazz: #ffdbb3; --g-beats: #c9eacb; --g-guitar: #f3e19f; --g-song: #ebd2bc;
  --g-heavy: #22242b; --g-heavy-ink: #fff; --g-heavy-edge: #f05e61;
  --m-bright: #856100; --m-calm: #155da1; --m-night: #6b459d;
  --m-wistful: #576170; --m-harsh: #a62835;
}
:root[data-theme=dark] {
  --g-electronic: #9dc9ff; --g-score: #bdc9d7; --g-experimental: #cbb0ff;
  --g-jazz: #fbb97f; --g-beats: #a4d5a5; --g-guitar: #e8cc71; --g-song: #d7ad90;
  --g-heavy: #111318; --g-heavy-edge: #ff767d;
  --m-bright: #f6d366; --m-calm: #81beff; --m-night: #c4a4ff;
  --m-wistful: #b7c0cc; --m-harsh: #ff858e;
}
.genre-electronic { --tag-color: var(--g-electronic); }
.genre-score { --tag-color: var(--g-score); }
.genre-experimental { --tag-color: var(--g-experimental); }
.genre-jazz { --tag-color: var(--g-jazz); }
.genre-beats { --tag-color: var(--g-beats); }
.genre-guitar { --tag-color: var(--g-guitar); }
.genre-song { --tag-color: var(--g-song); }
.genre-heavy { --tag-color: var(--g-heavy); }
.mood-bright { --tag-color: var(--m-bright); }
.mood-calm { --tag-color: var(--m-calm); }
.mood-night { --tag-color: var(--m-night); }
.mood-wistful { --tag-color: var(--m-wistful); }
.mood-harsh { --tag-color: var(--m-harsh); }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-block: .35rem; }
.tag-row a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.tag-genre { color: #14171c; background: var(--tag-color, var(--g-score)); border-color: transparent; }
.tag-genre.genre-heavy { color: var(--g-heavy-ink); border-color: var(--g-heavy-edge); }
.tag-mood { color: var(--tag-color, var(--muted)); border-color: currentColor; }
.tag-mood::before { content: "●"; margin-right: .25rem; }
.tag-row [aria-current] { outline: 2px solid var(--ink); outline-offset: 1px; }
.sort-switch { display: inline-flex; margin-block: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: .45rem; }
.sort-switch a { display: grid; place-items: center; padding-inline: .75rem; min-height: 44px; text-decoration: none; }
.sort-switch [aria-current] { background: var(--ink); color: var(--card); border-radius: .4rem; }
.tabs a { grid-auto-flow: row; gap: 0; font-size: clamp(.7rem, 3.5vw, .85rem); }
.tabs [aria-current] { font-weight: 700; text-decoration-thickness: 2px; }

/* In progress strip (M15): drops being worked on, above the Bucket list. */
.progress h2 { font: 700 .8rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .5rem 0 .25rem; }
.progress ul { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .35rem; }
.progress li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: .45rem; padding: .45rem .6rem; }
.progress li.progress-running { border-left-color: var(--sticker); }
.progress li.progress-needs_you { border-left-color: var(--ink); }
.progress-label { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-step { font: .78rem var(--mono); color: var(--muted); }
.progress-head { display: grid; gap: .1rem; }
.progress summary { cursor: pointer; list-style: none; }
.progress summary::-webkit-details-marker { display: none; }
.progress-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.progress-actions .tap { font-size: .85rem; }
