/* GrooveLog — dark theme by default, light theme below. Colours live in the variables; components read only these. */
:root {
    --bg: #0e0e0f;
    --surface: #17171a;
    --surface-2: #202024;
    --surface-3: #2a2a2f;
    --line: #2c2c31;
    --line-strong: #3a3a40;
    --text: #ededed;
    --text-strong: #ffffff;
    --muted: #9b9ba1;
    --faint: #6d6d74;
    --accent: #e8a33d;
    --accent-strong: #f2b85c;
    --accent-ink: #1a1206;
    --accent-soft: #3a2a12;
    --up: #7cc68d;
    --down: #e57b6b;
    --danger-soft: #3b1d18;
    --shadow: rgba(0, 0, 0, .45);
    --radius: 10px;
    --radius-sm: 6px;
    font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    font-synthesis: none;
    color: var(--text);
    background: var(--bg);
    color-scheme: dark;
}
/* Light theme: chosen with the header switch (data-theme on <html>), or following the device when nothing is chosen.
   Covers, photo captions and the vinyl discs stay dark on purpose. Keep both blocks the same. */
:root[data-theme="light"] {
    --bg: #f6f5f2; --surface: #ffffff; --surface-2: #efeee9; --surface-3: #e5e3dc;
    --line: #e2e0d9; --line-strong: #cbc8bf; --text: #1b1b1d; --text-strong: #000000; --muted: #5f5f66; --faint: #7a7a80;
    --accent: #a35f08; --accent-strong: #864d05; --accent-ink: #ffffff; --accent-soft: #f6e5c8;
    --up: #2f8a46; --down: #c0492f; --danger-soft: #f8dcd5; --shadow: rgba(0, 0, 0, .18);
    color-scheme: light;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f6f5f2; --surface: #ffffff; --surface-2: #efeee9; --surface-3: #e5e3dc;
        --line: #e2e0d9; --line-strong: #cbc8bf; --text: #1b1b1d; --text-strong: #000000; --muted: #5f5f66; --faint: #7a7a80;
        --accent: #a35f08; --accent-strong: #864d05; --accent-ink: #ffffff; --accent-soft: #f6e5c8;
        --up: #2f8a46; --down: #c0492f; --danger-soft: #f8dcd5; --shadow: rgba(0, 0, 0, .18);
        color-scheme: light;
    }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
h1:focus { outline: none; }
button, input, select { font: inherit; }

/* Controls */
button, .button {
    display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
    border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14px; cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); text-decoration: none; }
button:disabled { opacity: .45; cursor: default; }
button.secondary, .button.secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-2); color: var(--text); }
input, select {
    padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
}
input::placeholder { color: var(--faint); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: 14px; margin: 12px 0; color: var(--muted); }
code { font-family: "Cascadia Mono", Consolas, monospace; }

/* Shell */
.shell { min-height: 100vh; }
aside {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
    padding: 14px max(24px, calc((100vw - 1240px) / 2)); background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: .5px; line-height: 1; white-space: nowrap; }
.brand:hover { color: var(--text-strong); text-decoration: none; }
.brand img { width: 32px; height: 32px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text small { font-size: 10px; font-weight: 500; letter-spacing: .4px; color: var(--muted); }
nav { display: flex; gap: 4px; margin-left: auto; }
nav a { padding: 8px 12px; color: var(--muted); font-size: 13px; font-weight: 500; border-radius: 999px; }
nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
nav a.active { color: var(--text); background: var(--surface-3); }
main { max-width: 1240px; width: 100%; padding: 36px 32px 80px; margin: 0 auto; }

/* Typography */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 14px 0 8px; }
h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.08; margin: 8px 0 14px; }
h2 { font-size: 20px; font-weight: 650; letter-spacing: -.3px; }
h3 { font-size: 16px; line-height: 1.4; }
.intro { color: var(--muted); line-height: 1.6; margin-bottom: 26px; max-width: 650px; }
.muted, small { color: var(--muted); font-size: 13px; }
.back-link { font-size: 13px; font-weight: 600; }

/* Cards and panels */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.stats section, .panel, .detail-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stats section { padding: 18px 20px; }
.stats span { font-size: 12px; font-weight: 500; color: var(--muted); }
.stats strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.panel, .detail-panel { padding: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 36px 0 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 13px; font-weight: 600; }
.empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.empty h2 { color: var(--text); }
.big-record { font-size: 60px; color: var(--faint); }
.notice { padding: 16px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 24px; color: var(--muted); line-height: 1.6; }
.notice strong { color: var(--text); }
.notice p { margin: 6px 0; font-size: 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.toolbar input { flex: 1; min-width: 180px; }

/* Tables */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; padding: 12px 16px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
tr:first-child td { border-top: 0; }
tbody tr:hover { background: var(--surface-2); }
td strong { font-weight: 600; }
td small { display: block; margin-top: 3px; }
td small a { color: var(--muted); }
td small a:hover { color: var(--text); }
.badge { background: var(--surface-3); color: var(--muted); font-size: 11px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.listen-cell { display: flex; align-items: center; gap: 12px; }
.listen-cell .cover { width: 40px; height: 40px; flex: none; border-radius: 4px; }

/* Collection */
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.record-card { background: var(--surface); border: 1px solid var(--line); padding: 12px; border-radius: var(--radius); color: inherit; transition: transform .15s, border-color .15s; }
.record-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.record-card > a { display: block; color: var(--text); }
.record-card > a:hover { text-decoration: none; }
.record-card h3 { margin: 12px 0 6px; }
.record-card p { margin: 6px 0; }
.album-cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); border-radius: var(--radius-sm); }
.sleeve { aspect-ratio: 1; background: var(--surface-2); display: grid; place-items: center; border-radius: var(--radius-sm); }
.vinyl { height: 80%; width: 80%; border-radius: 50%; background: repeating-radial-gradient(#141414 0 2px, #222 3px 4px); display: grid; place-items: center; }
.vinyl span { height: 34%; width: 34%; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.card-action { display: block; margin-top: 16px; font-size: 12px; font-weight: 600; }
.preview { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.track-row { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 0; color: var(--text); margin: 0; }
.track-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.track-row small { display: block; margin-top: 4px; }
.position { width: 35px; color: var(--faint); }

/* Artist profile */
.artist-hero { display: grid; grid-template-columns: 1fr 46%; gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-height: 360px; margin: 20px 0 24px; align-items: center; }
.artist-hero > div:first-child { padding: 32px 0 32px 36px; min-width: 0; }
.artist-hero h1 { overflow-wrap: anywhere; font-size: clamp(36px, 4.6vw, 64px); }
.artist-hero .intro { font-size: 14px; }
.artist-photo { width: 100%; margin: 0; height: 100%; position: relative; }
.artist-photo img { display: block; width: 100%; height: 100%; min-height: 360px; max-height: 500px; object-fit: cover; object-position: center 25%; }
.artist-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 16px 12px; background: linear-gradient(transparent, #000c); font-size: 11px; text-align: right; }
.artist-photo figcaption a { color: #fff; }
.hero-record { width: 230px; height: 230px; border-radius: 50%; background: repeating-radial-gradient(#111 0 2px, #222 3px 4px); display: grid; place-items: center; margin: 30px auto; }
.hero-record > span { width: 90px; height: 90px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 11px; letter-spacing: 1px; }
.hero-record small { font-size: 8px; color: var(--accent-ink); }
.record-hero { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: center; margin: 24px 0 30px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.record-hero h1 { font-size: clamp(28px, 3.6vw, 46px); overflow-wrap: anywhere; }
.record-hero .eyebrow { margin-top: 0; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.detail-panel .eyebrow { margin: 0; }
.detail-panel h2 { margin: 8px 0 16px; }
.title-ranking { padding: 0; list-style: none; margin: 0; }
.title-ranking li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.title-ranking li:last-child { border-bottom: 0; }
.title-number { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.title-body { flex: 1; min-width: 0; }
.title-body strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.title-meter { height: 3px; background: var(--surface-3); margin-top: 8px; border-radius: 3px; }
.title-meter > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.title-plays { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; background: var(--danger-soft); color: var(--text); padding: 16px; width: 100%; z-index: 20; }

@media (max-width: 800px) {
    aside { padding: 12px 18px; gap: 10px; flex-wrap: wrap; }
    aside .sync { margin-left: auto; }
    nav { margin: 0; width: 100%; overflow-x: auto; order: 3; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stats section { padding: 14px; }
    nav a { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
    main { padding: 24px 18px 60px; }
    .artist-hero { grid-template-columns: 1fr; gap: 0; }
    .artist-hero > div:first-child { padding: 26px; }
    .artist-photo img { min-height: 280px; height: 320px; }
    .record-hero { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 20px; }
    .detail-columns { grid-template-columns: 1fr; }
    .stats strong { font-size: 26px; }
    th:nth-child(2), td:nth-child(2) { display: none; }
}
@media (max-width: 520px) {
    .record-hero { grid-template-columns: 1fr; }
    .records { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .record-card { padding: 8px; }
    .record-card h3 { font-size: 14px; }
    th:nth-child(3), td:nth-child(3) { display: none; }
}
.title-link { color: inherit; text-decoration: none; }
.title-link:hover strong { color: var(--accent); }
.account { font-size: 12px; color: var(--muted); margin: 0; }
.account:hover { color: var(--text); }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
button.link:hover { color: var(--text); background: none; }

/* Theme switch in the header: shows the moon in light mode and the sun in dark mode (the theme you switch to). */
button.theme-toggle { background: none; border: 1px solid var(--line-strong); color: var(--muted); width: 30px; height: 30px; padding: 0;
    border-radius: 50%; display: grid; place-items: center; font-size: 14px; line-height: 1; flex: none; }
button.theme-toggle:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.theme-toggle .to-light { display: inline; }
.theme-toggle .to-dark { display: none; }
:root[data-theme="light"] .theme-toggle .to-light { display: none; }
:root[data-theme="light"] .theme-toggle .to-dark { display: inline; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .to-light { display: none; }
    :root:not([data-theme="dark"]) .theme-toggle .to-dark { display: inline; }
}

/* Loading: the previous content stays on screen, dimmed, with a running bar at the top of the window.
   The short delay keeps fast loads from flickering. The overview's period switch stays fully visible. */
.is-busy > :not(.home-head), .is-busy .home-head > :not(.home-top) { opacity: .45; transition: opacity .2s ease .12s; pointer-events: none; }
.is-busy::before {
    content: ""; position: fixed; top: 0; left: 0; z-index: 30; height: 3px; width: 35%; background: var(--accent);
    animation: busy-bar 1.1s ease-in-out infinite;
}
@keyframes busy-bar { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.busy-dot { font-size: 12px; color: var(--muted); margin-left: 10px; }
@media (prefers-reduced-motion: reduce) { .is-busy::before { animation: none; width: 100%; opacity: .6; } }

/* Artist photo and the owner's photo picker */
.artist-visual { position: relative; align-self: stretch; display: grid; align-items: center; }
.photo-pick { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgb(0 0 0 / .6); color: #fff; border-radius: 999px; padding: 6px 12px; }
button.link.photo-pick:hover { background: rgb(0 0 0 / .8); color: #fff; }
.photo-picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: -8px 0 24px; }
.photo-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
button.photo-option { position: relative; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; display: block; color: var(--muted); }
button.photo-option:hover { border-color: var(--accent); background: var(--surface-2); }
button.photo-option.current { border-color: var(--accent); }
.photo-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-option small { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 10px; font-weight: 500; color: #fff; background: rgb(0 0 0 / .6); }
.photo-option.none span { font-size: 13px; }

/* Logging a record (OpenScrobbler style): tracks on the left, your vinyl history on the right. */
.scrobble-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 32px; align-items: start; margin-top: 18px; }
.scrobble-head { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: center; }
.scrobble-cover { width: 168px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.scrobble-cover img, .scrobble-cover .sleeve { width: 100%; height: 100%; object-fit: cover; display: block; }
.scrobble-head h1 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 4px; overflow-wrap: anywhere; }
.scrobble-head .intro { margin: 0 0 10px; }
.scrobble-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0; }
.tag { background: var(--surface-3); color: var(--text); border-radius: 4px; padding: 2px 8px; font-weight: 600; font-size: 12px; }
.when { border: 0; padding: 0; margin: 22px 0 4px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.when label { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--text); cursor: pointer; }
.when input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
.when input[type=date], .when input[type=time] { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 6px 10px; }
.when-hint { font-size: 12px; margin: 4px 0 0; }
.scrobble-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.scrobble-actions .toolbar { margin: 14px 0; }
button.scrobble-go { padding: 11px 24px; font-size: 15px; }
.scrobble-tracks { list-style: none; margin: 6px 0 0; padding: 0; }
.scrobble-tracks li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.scrobble-tracks li.on { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.scrobble-tracks label { display: flex; gap: 12px; align-items: center; margin: 0; cursor: pointer; min-width: 0; color: var(--text); }
.scrobble-tracks input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.scrobble-tracks .position { color: var(--faint); font-size: 12px; width: 26px; flex: none; font-variant-numeric: tabular-nums; }
.scrobble-tracks .title { min-width: 0; overflow-wrap: anywhere; }
.scrobble-tracks .title small { display: block; color: var(--muted); font-size: 12px; }
.scrobble-tracks .length { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
button.small { padding: 4px 12px; font-size: 12px; }
.scrobble-history { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.scrobble-history .section-head { margin-top: 0; }
.lastfm-line { font-size: 13px; margin: 0 0 12px; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid transparent; }
.history-list li.failed { border-left-color: var(--down); }
.history-list li.pending { border-left-color: var(--accent); }
.history-cover { width: 44px; height: 44px; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.history-cover img, .history-cover .sleeve { width: 100%; height: 100%; object-fit: cover; display: block; }
.history-cover .vinyl span { display: none; }
.history-text { min-width: 0; display: grid; gap: 2px; }
.history-text strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-text small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-text small.history-error { color: var(--down); white-space: normal; }
.history-side { display: grid; justify-items: end; gap: 2px; font-size: 11px; color: var(--muted); }
.history-status { color: var(--up); font-weight: 700; }
li.failed .history-status { color: var(--down); }
li.pending .history-status { color: var(--accent); }
.history-buttons { display: flex; gap: 8px; }
.history-buttons button.link { font-size: 14px; }
button.link.danger { color: var(--down); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
    .scrobble-layout { grid-template-columns: 1fr; }
    .scrobble-history { position: static; max-height: none; }
    .scrobble-head { grid-template-columns: 110px minmax(0, 1fr); }
    .scrobble-cover { width: 110px; }
}

/* Collection: Discogs tools, genres, records no longer on Discogs; record page: your copy (private notes). */
.collection-tools { display: grid; gap: 6px; margin-bottom: 20px; }
.collection-tools h2 { margin: 0 0 4px; }
.collection-tools p { margin: 0; font-size: 13px; }
.collection-tools details { font-size: 12px; color: var(--muted); }
.record-card small.genres { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; }
.record-card.gone { opacity: .55; }
.record-card small.gone-note { display: block; color: var(--down); font-size: 11px; margin-top: 4px; }
.scrobble-genres { font-size: 13px; margin: 8px 0 0; }
.copy-notes { margin: 18px 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.copy-notes summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.copy-notes summary .muted { font-weight: 400; }
.copy-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.copy-fields label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); margin: 0; }
.copy-fields label.wide { grid-column: 1 / -1; }
.copy-fields input, .copy-fields select, .copy-fields textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 7px 10px; font: inherit; font-size: 14px; width: 100%; }
.copy-notes .toolbar { align-items: center; margin: 12px 0 0; }
.copy-notes .toolbar .muted { font-size: 12px; }
@media (max-width: 600px) { .copy-fields { grid-template-columns: 1fr; } }
.notes-import { display: grid; gap: 8px; padding-top: 6px; font-size: 13px; }
.notes-import p { margin: 0; }
.notes-import details { color: var(--muted); }
.record-card small.bought { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.title-row { display: flex; align-items: center; gap: 14px; }
.title-row h1 { margin-bottom: 0; }
button.icon-button { background: none; border: 1px solid var(--line-strong); color: var(--muted); width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 17px; line-height: 1; display: grid; place-items: center; flex: none; }
button.icon-button:hover, button.icon-button.on { background: var(--surface-2); color: var(--accent); border-color: var(--accent); }

/* History edit mode (owner): checkboxes per row and a bar at the bottom of the window. */
button.link.edit-toggle { font-size: 13px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; }
button.link.edit-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
table.selecting th.pick, table.selecting td.pick { width: 34px; padding-right: 0; }
td.pick input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
tr.picked td { background: color-mix(in srgb, var(--down) 9%, transparent); }
.selection-bar { position: sticky; bottom: 16px; z-index: 15; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px auto 0; width: fit-content; max-width: 100%;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 10px 8px 20px; box-shadow: 0 8px 30px var(--shadow); font-size: 14px; }
button.danger-button { background: var(--down); border-color: var(--down); color: #fff; }
button.danger-button:hover { background: color-mix(in srgb, var(--down) 85%, black); border-color: var(--down); color: #fff; }

/* Vinyl sort switch: Random (default) / A–Z / Year / Added */
.sort-switch { display: inline-flex; gap: 2px; padding: 3px; margin: -6px 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.sort-switch button { background: none; border: 0; color: var(--muted); padding: 6px 14px; font-size: 13px; font-weight: 500; border-radius: 999px; }
.sort-switch button span { display: inline-block; width: 1em; text-align: center; margin-right: 2px; }
.sort-switch button:hover { background: var(--surface-2); color: var(--text); border: 0; }
.sort-switch button.on { background: var(--accent); color: var(--accent-ink); }
