/* ──────────────────────────────────────────────────────────────
   KSCH — the Librarian (1.69 N85), on Library → Add music since 1.72 (N89)
   Loaded after app.css; uses its tokens. Everything a person
   might want to tune by eye is a custom property on .lb-page:
   change a value here and every mark, row and bar follows.
   Motion numbers are TUNE in js/views/studio-librarian.js.
   ────────────────────────────────────────────────────────────── */
.lb-page {
  --lb-hard: #ff6b61;                 /* a hard cut: near silence or a bleep */
  --lb-hard-dim: rgba(255, 107, 97, .16);
  --lb-soft: var(--dial);             /* a softer dip */
  --lb-soft-dim: var(--dial-dim);
  --lb-mark-w: 3px;                   /* a cut on the timeline */
  --lb-mark-h: 14px;
  --lb-tl-h: 26px;                    /* the timeline's height */
  --lb-list-w: 380px;                 /* the ranked list's width on a desk */
  --lb-row-art: 44px;
  --lb-head-art: 96px;
  --lb-gap: 14px;
  --lb-word: rgba(255, 107, 97, .22); /* the listed word, marked in a lyric line */
  display: grid; gap: var(--lb-gap);
}
.lb-page audio { display: none; }
.lb-page mark { background: var(--lb-word); color: var(--text); border-radius: 3px; padding: 0 3px; }
.lb-page h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .01em; }
.lb-page h4 { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }

/* ─── Status strip ─── */
.lb-status { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.6fr) auto; gap: 18px; align-items: center; padding: 14px 18px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
.lb-status-l { display: grid; gap: 6px; min-width: 0; }
.lb-top { display: flex; align-items: center; gap: 10px; }
.lb-phase { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .01em; line-height: 1; }
.lb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.lb-status.running .lb-dot { background: var(--ok); box-shadow: 0 0 10px rgba(88, 195, 154, .7); animation: pulse 1.6s ease-in-out infinite; }
.lb-status.paused .lb-dot { background: var(--warn); }
.lb-now { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; width: 0; background: var(--dial); }
.lb-bartext { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* As many columns as there are tiles: one is left out when the librarian cannot say it. */
.lb-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.lb-tile { padding: 8px 10px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); min-width: 0; }
.lb-tile .v { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.lb-tile .k { font-size: 11px; line-height: 1.25; color: var(--muted); margin-top: 3px; }
.lb-tile.warn .v { color: var(--dial); }
.lb-tile.bad .v { color: var(--lb-hard); }
.lb-status-r { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lb-offline { padding: 12px 16px; border: 1px solid rgba(230, 57, 47, .4); background: var(--lamp-dim); border-radius: var(--r); font-size: 14px; }

/* ─── Queues ─── */
.lb-queues { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.lb-queues::-webkit-scrollbar { display: none; }
.lb-queues button { flex: none; height: 40px; padding: 0 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-2); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; margin-bottom: -1px; }
.lb-queues button:hover { color: var(--text); }
.lb-queues button.on { color: var(--dial); border-bottom-color: var(--dial); font-weight: 600; }
.lb-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--text-2); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.lb-queues button.on .lb-badge { background: var(--dial-dim); border-color: var(--dial-line); color: var(--dial); }
.lb-work { min-width: 0; }

/* ─── The listening desk ─── */
.lb-desk { display: grid; gap: 12px; position: relative; }
.lb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lb-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-tabs button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink); color: var(--text-2); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lb-tabs button:hover { background: var(--ink-3); color: var(--text); }
.lb-tabs button.on { background: var(--dial-dim); border-color: var(--dial-line); color: var(--dial); font-weight: 600; }
.lb-toolbar-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-search { width: 220px; height: 32px; }
.lb-hint { font-size: 13px; color: var(--muted); }
.lb-backlog { font-size: 12.5px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.lb-split { display: grid; grid-template-columns: var(--lb-list-w) minmax(0, 1fr); gap: var(--lb-gap); align-items: start; }

/* the ranked list */
.lb-listwrap { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lb-list { display: grid; max-height: calc(100vh - 340px); min-height: 200px; overflow-y: auto; }
.lb-row { display: grid; grid-template-columns: var(--lb-row-art) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; overflow: hidden; }
.lb-row:hover { background: var(--ink-3); }
.lb-row.on { background: var(--dial-dim); box-shadow: inset 3px 0 0 var(--dial); }
.lb-row-art img, .lb-row-art .lb-noart { width: var(--lb-row-art); height: var(--lb-row-art); border-radius: var(--r-sm); object-fit: cover; background: var(--ink-3); }
.lb-noart { display: grid; place-items: center; color: var(--muted); }
.lb-noart svg { width: 40%; height: 40%; }
.lb-row-t { min-width: 0; }
.lb-row-title { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row-r { display: grid; gap: 4px; justify-items: end; }
.lb-cuts { font-family: var(--font-mono); font-size: 12px; color: var(--lb-hard); }
.lb-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.lb-copybox { width: 100%; font-family: var(--font-mono); font-size: 13px; margin-top: 8px; resize: vertical; }

/* the chosen song */
.lb-detailwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.lb-split > * { min-width: 0; }
.lb-detail { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.lb-head { display: grid; grid-template-columns: var(--lb-head-art) minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.lb-back { display: none; }
.lb-head-art img, .lb-head-art .lb-noart { width: var(--lb-head-art); height: var(--lb-head-art); border-radius: var(--r-sm); object-fit: cover; background: var(--ink-3); }
.lb-head-t { min-width: 0; display: grid; gap: 4px; }
.lb-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: .005em; overflow-wrap: anywhere; }
.lb-sub { font-size: 14px; color: var(--text-2); }
.lb-pills { margin-top: 4px; gap: 6px; }
.lb-verdict { font-size: 15px; line-height: 1.5; padding: 10px 14px; border-radius: var(--r-sm); background: var(--ink); border-left: 3px solid var(--line-2); }
.lb-desk .lb-verdict { border-left-color: var(--dial); }

/* the timeline */
.lb-tl { position: relative; height: var(--lb-tl-h); background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: visible; }
.lb-mk { position: absolute; top: 50%; width: var(--lb-mark-w); height: var(--lb-mark-h); margin-left: calc(var(--lb-mark-w) / -2); transform: translateY(-50%); border: 0; padding: 0; border-radius: 2px; cursor: pointer; background: var(--lb-soft); }
.lb-mk.hard { background: var(--lb-hard); height: calc(var(--lb-mark-h) + 6px); }
.lb-mk.bleep { background: transparent; border: 2px solid var(--lb-hard); width: calc(var(--lb-mark-w) + 4px); margin-left: calc((var(--lb-mark-w) + 4px) / -2); }
.lb-mk::after { content: ''; position: absolute; inset: -6px -8px; }   /* a bigger target than the mark itself */
.lb-mk:hover { transform: translateY(-50%) scaleY(1.3); }
.lb-ph { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); opacity: 0; pointer-events: none; }
.lb-ph.on { opacity: 1; box-shadow: 0 0 8px rgba(236, 232, 222, .7); }
.lb-tl-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.lb-tl-key span { display: inline-flex; align-items: center; gap: 6px; }
.lb-tl-key i { width: 3px; height: 12px; border-radius: 2px; background: var(--lb-soft); }
.lb-tl-key i.hard { background: var(--lb-hard); height: 16px; }
.lb-tl-key i.bleep { background: transparent; border: 2px solid var(--lb-hard); width: 7px; }

/* the moments */
.lb-events-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-events { display: grid; gap: 6px; }
.lb-ev { display: grid; grid-template-columns: auto 200px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); border-left-width: 3px; }
.lb-ev.hard { border-left-color: var(--lb-hard); }
.lb-ev.soft { border-left-color: var(--lb-soft); }
.lb-ev.playing { background: var(--dial-dim); }
.lb-ev-t { display: grid; gap: 2px; font-size: 12px; }
.lb-ev-kind { color: var(--text-2); }
.lb-ev-line { font-size: 14px; line-height: 1.4; }
.lb-linesbox { display: grid; gap: 8px; }
.lb-lines { display: grid; gap: 4px; }
.lb-line { display: grid; grid-template-columns: auto 48px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13.5px; }

/* the verdict bar — always within reach of the chosen song */
/* The verdict bar. On a desk it sits above the song, the way a mail reader's
   toolbar sits above the message, and sticks under the studio console while
   the moments scroll: always in reach, never over the song's title or its
   verdict (1.69: stuck to the bottom of a 900-px screen it covered both). On a
   phone it is at the bottom, above the tab bar, where the thumb is. */
.lb-actions { position: sticky; top: calc(var(--console-h, 0px) + 8px); bottom: 12px; order: -1; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--chrome-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.lb-actions:empty { display: none; }
.lb-actions-l, .lb-actions-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb-keys { display: inline-flex; align-items: center; gap: 4px; }
.lb-short { display: none; }

/* the tuning drawer */
.lb-desk.tuning .lb-split { grid-template-columns: var(--lb-list-w) minmax(0, 1fr); }
.lb-tune { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 60; background: var(--ink-2); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lb-tune-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lb-tune-b { overflow-y: auto; padding: 16px 18px calc(24px + var(--safe-b)); display: grid; gap: 16px; align-content: start; }
.lb-note { padding: 10px 14px; background: var(--dial-dim); border: 1px solid var(--dial-line); border-radius: var(--r-sm); font-size: 13px; margin: 12px 18px 0; }
.lb-tune-b > .lb-note { margin: 0; }
.lb-oldnote { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; line-height: 1.45; }
.lb-knob-err { margin-top: 2px; }
.lb-knob input[aria-invalid="true"] { border-color: var(--lb-hard); }
.lb-knobs { display: grid; gap: 14px; }
.lb-knob { display: grid; gap: 6px; }
.lb-knob-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lb-knob-l { font-size: 14px; font-weight: 500; }
.lb-knob-v { display: inline-flex; align-items: center; gap: 6px; }
.lb-num { width: 76px; height: 28px; padding: 0 8px; font-family: var(--font-mono); text-align: right; }
.lb-tune-sec { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.lb-words { font-family: var(--font-mono); font-size: 13px; min-height: 140px; resize: vertical; }
.lb-page .err { color: var(--lb-hard); }

/* ─── A phone: one column, the list, then the song with a Back ─── */
@media (max-width: 860px) {
  .lb-status { grid-template-columns: 1fr; gap: 12px; }
  .lb-status-r { justify-content: flex-start; }
  .lb-search { width: 100%; }
  .lb-toolbar-r { width: 100%; }
  .lb-split { grid-template-columns: 1fr; }
  .lb-list { max-height: none; }
  .lb-detailwrap { display: none; }
  .lb-desk.open .lb-listwrap, .lb-desk.open .lb-toolbar, .lb-desk.open .lb-hint, .lb-desk.open .lb-backlog { display: none; }
  .lb-desk.open .lb-detailwrap { display: grid; }
  .lb-back { display: inline-flex; }
  .lb-head { grid-template-columns: auto 64px minmax(0, 1fr); }
  .lb-head-art img, .lb-head-art .lb-noart { width: 64px; height: 64px; }
  .lb-whole { grid-column: 1 / -1; justify-self: start; }
  .lb-title { font-size: 22px; }
  .lb-ev { grid-template-columns: auto minmax(0, 1fr); }
  .lb-ev-line { grid-column: 1 / -1; }
  .lb-actions { order: 0; top: auto; bottom: calc(var(--bar-h) + var(--safe-b) + 8px); }
  .lb-keys { display: none; }
  .lb-actions { flex-wrap: nowrap; padding: 8px 10px; gap: 8px; }
  .lb-actions-l, .lb-actions-r { flex-wrap: nowrap; gap: 6px; }
  .lb-actions-r { flex: 1; justify-content: flex-end; }
  .lb-actions .btn.sm { padding: 0 9px; }
  .lb-actions .btn.ghost { padding: 0 6px; }
  .lb-actions .btn.icon.sm { width: 28px; padding: 0; }
  .lb-long { display: none; }
  .lb-short { display: inline; }
  .lb-tiles { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb-detail { padding: 14px; }
}
/* ──────────────────────────────────────────────────────────────
   The Librarian page — the other queues (1.69)
   Duplicates, Couldn't identify, All songs, Recent work, Settings.
   Prefix lbm-. The desk itself (lb-) is in librarian.css.
   Uses the app's tokens only; nothing here has a colour of its own.
   ────────────────────────────────────────────────────────────── */
.lbm-section { display: grid; gap: 14px; min-width: 0; }
.lbm-lede { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 62ch; }
.lbm-list { display: grid; gap: 14px; min-width: 0; }

/* cards: one duplicate group, one unidentified file */
.lbm-card { padding: 14px 16px; display: grid; gap: 12px; min-width: 0; overflow: hidden; }
.lbm-card-h { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.lbm-card-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lbm-title { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.lbm-title.big { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: .01em; line-height: 1.05; }
.lbm-thumb { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); background: var(--ink-3); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.lbm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lbm-thumb svg { width: 20px; height: 20px; }
.lbm-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* members of a duplicate group */
.lbm-members { display: grid; gap: 8px; }
.lbm-member { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ink); min-width: 0; }
.lbm-member.lbm-rec { border-color: var(--dial-line); background: var(--dial-dim); }
.lbm-member-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lbm-name { font-weight: 500; overflow-wrap: anywhere; }
.lbm-facts { line-height: 1.5; }

/* comparing two copies */
.lbm-compare { display: grid; gap: 8px; margin-top: 8px; }
.lbm-compare-sum { font-weight: 500; }
.lbm-moments { display: grid; gap: 4px; }
.lbm-moment { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--ink); }
.lbm-moment:nth-child(even) { background: var(--ink-2); }
.lbm-ab { display: inline-flex; gap: 4px; }

/* the identify form */
.lbm-problem { display: flex; align-items: center; gap: 8px; color: var(--warn); font-size: 13px; }
.lbm-problem svg { width: 16px; height: 16px; flex: none; }
.lbm-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.lbm-result { min-height: 0; }
.lbm-found { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(88, 195, 154, .1); border: 1px solid rgba(88, 195, 154, .3); font-size: 13.5px; }
.lbm-found svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--ok); }

/* all songs */
.lbm-toolbar { display: grid; gap: 10px; }
.lbm-search { width: 100%; }
.lbm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lbm-chip { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); color: var(--text-2); font-size: 13px; cursor: pointer; }
.lbm-chip:hover { border-color: var(--muted); color: var(--text); }
.lbm-chip.on { background: var(--dial-dim); border-color: var(--dial-line); color: var(--dial); }
.lbm-rows { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); overflow: hidden; }
.lbm-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); cursor: pointer; min-width: 0; }
.lbm-row:first-child { border-top: 0; }
.lbm-row:hover { background: var(--ink-3); }
.lbm-row .lbm-thumb { width: 40px; height: 40px; }
.lbm-row-t { min-width: 0; display: grid; gap: 1px; }
.lbm-row-t .lbm-name, .lbm-row-t .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbm-row-f { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lbm-row-p { display: flex; gap: 4px; flex-wrap: nowrap; }

/* one song, opened in place */
.lbm-detail { display: grid; gap: 14px; min-width: 0; }
.lbm-detail-h { display: flex; }
.lbm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lbm-block .panel-h h3 { font-size: 15px; }
.lbm-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 13.5px; }
.lbm-k { color: var(--muted); }
.lbm-v { overflow-wrap: anywhere; }
.lbm-reasons { margin: 8px 0 0; padding-left: 18px; }
.lbm-lyrics { display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.lbm-lyric { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr); align-items: center; gap: 8px; padding: 2px 4px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.4; }
.lbm-lyric.hot { background: var(--lamp-dim); }
.lbm-lyric mark { background: transparent; color: #ff8b84; font-weight: 600; }
.lbm-nol { display: inline-block; width: 28px; }

/* the record */
.lbm-actions { display: grid; gap: 6px; }
.lbm-action { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ink-2); min-width: 0; }
.lbm-action.undone { opacity: .55; }
.lbm-action-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lbm-kind { font-weight: 500; }
.lbm-action .lbm-acts { margin-top: 4px; }

/* settings */
.lbm-settings { display: grid; }
.lbm-num { width: 120px; }
.lbm-save { justify-content: flex-end; }

/* phones: one column, nothing wider than the screen */
@media (max-width: 720px) {
  .lbm-form { grid-template-columns: 1fr; }
  .lbm-row { grid-template-columns: 40px minmax(0, 1fr); }
  .lbm-row-f { display: none; }
  .lbm-row-p { grid-column: 2; flex-wrap: wrap; }
  .lbm-moment { grid-template-columns: 52px minmax(0, 1fr); }
  .lbm-ab { grid-column: 1 / -1; }
  .lbm-card-h { flex-wrap: wrap; }
  .lbm-title.big { font-size: 20px; }
  .lbm-lyrics { max-height: 300px; }
}

/* ── 1.72 — Add music: the drop zone and the Librarian as one page (N89) ──
   Two numbered steps of one job under one heading: drop songs, then the
   Librarian files them. The section heads share one style so the page reads
   as a single designed page rather than two stacked. */
.addm-lede { max-width: 700px; margin: -6px 0 24px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.addm-sec { margin-bottom: 34px; }
.addm-sec + .addm-sec { padding-top: 28px; border-top: 1px solid var(--line); }
.addm-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.addm-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
.addm-sub { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 720px; }
.addm-step { flex: none; width: 28px; height: 28px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--dial); border: 1px solid var(--dial-line); background: var(--dial-dim); }
.addm-status { margin-bottom: 12px; }
.addm-status.ok { color: var(--ok); }
.addm-drop { width: 100%; display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed var(--line-2); border-radius: var(--r);
  background: var(--ink-2); color: var(--text); cursor: pointer; font: inherit; text-align: center;
  transition: border-color .2s ease-out, background-color .2s ease-out, transform .2s ease-out; }
.addm-drop svg { width: 26px; height: 26px; color: var(--dial); }
.addm-drop-t { font-size: 17px; font-weight: 600; }
.addm-drop-s { font-size: 13px; color: var(--muted); }
.addm-drop:hover, .addm-drop:focus-visible { border-color: var(--dial-line); }
.addm-drop.over { border-color: var(--dial); background: var(--dial-dim); transform: scale(1.005); }
.addm-results { margin-top: 14px; }
.addm-results:empty { display: none; }
.addm-lib .lb-page { margin-top: 4px; }

/* ── 1.88 — Find a song: the record shop on Add music (N151) ──
   One search box, the explicit/clean switch beside it, results in three
   groups, and the Recent list. Rows are a cover, the words, and one action on
   the right; on a phone the action drops under the words. */
.addm-shop-state:empty { display: none; }
.addm-shop-off { margin-bottom: 14px; }
.addm-shop-warn { display: flex; align-items: center; gap: 6px; color: var(--dial); margin-bottom: 12px; }
.addm-shop-warn svg { width: 16px; height: 16px; flex: none; }
.addm-shop-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.addm-shop-qwrap { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-2);
  transition: border-color .2s ease-out, box-shadow .2s ease-out; }
.addm-shop-qwrap:focus-within { border-color: var(--dial-line); box-shadow: 0 0 0 3px var(--dial-dim); }
.addm-shop-qwrap svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.addm-shop-q { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.addm-shop-q::placeholder { color: var(--muted); }
.addm-shop-q:disabled { opacity: .5; }
.addm-shop-ver.off { opacity: .45; pointer-events: none; }
.addm-shop-results.busy { opacity: .7; }
.addm-shop-results:empty { display: none; }
.addm-shop-group { margin-bottom: 20px; }
.addm-shop-group .eyebrow { margin-bottom: 8px; }
.addm-shop-list { display: flex; flex-direction: column; gap: 6px; }
.addm-shop-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); min-width: 0; }
.addm-shop-cover { flex: none; width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--ink-3); }
.addm-shop-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.addm-shop-cover.round { border-radius: 50%; }
.addm-shop-cover.big { width: 84px; height: 84px; }
.addm-shop-main { flex: 1 1 200px; min-width: 0; }
.addm-shop-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 15px; }
.addm-shop-title > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addm-shop-meta { color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addm-shop-note { color: var(--dial); font-size: 12px; margin-top: 3px; }
.addm-shop-badge { flex: none; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.addm-shop-badge.explicit { color: var(--lamp); border-color: rgba(230, 57, 47, .45); background: var(--lamp-dim); }
.addm-shop-badge.clean { color: var(--ok); border-color: rgba(88, 195, 154, .45); background: rgba(88, 195, 154, .12); }
.addm-shop-recent-row .addm-shop-badge { margin-left: 8px; vertical-align: middle; }
.addm-shop-act { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.addm-shop-addwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.addm-shop-add svg { width: 14px; height: 14px; }
.addm-shop-alt, .addm-shop-play { border: 0; background: transparent; color: var(--dial); font: inherit; font-size: 12px; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.addm-shop-alt:hover, .addm-shop-play:hover { text-decoration: underline; }
.addm-shop-play svg { width: 12px; height: 12px; }
.addm-shop-have, .addm-shop-job { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.addm-shop-have svg, .addm-shop-job svg { width: 15px; height: 15px; flex: none; }
.addm-shop-have svg, .addm-shop-job.ready, .addm-shop-job.owned { color: var(--ok); }
.addm-shop-job.failed { color: var(--lamp); }
.addm-shop-job.fetching, .addm-shop-job.filing, .addm-shop-job.queued { color: var(--text-2); }
.addm-shop-spin { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--dial); animation: addm-spin .9s linear infinite; }
@keyframes addm-spin { to { transform: rotate(360deg); } }
.addm-shop-artist-head { display: flex; align-items: center; gap: 14px; margin: 12px 0 18px; }
.addm-shop-artist-head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.addm-shop-back { margin-bottom: 4px; }
.addm-shop-recent-wrap { margin-top: 22px; }
.addm-shop-recent-wrap[hidden] { display: none; }
.addm-shop-recent-wrap .eyebrow { margin-bottom: 8px; }
.addm-shop-recent-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.addm-shop-recent-row:first-child { border-top: 0; }
.addm-shop-recent-main { min-width: 0; }
.addm-shop-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--muted); }
.addm-shop-dot.ready, .addm-shop-dot.owned { background: var(--ok); }
.addm-shop-dot.failed { background: var(--lamp); }
.addm-shop-dot.fetching, .addm-shop-dot.filing, .addm-shop-dot.queued { background: var(--dial); animation: addm-pulse 1.2s ease-in-out infinite; }
@keyframes addm-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .addm-drop { transition: none; } .addm-drop.over { transform: none; } .addm-shop-spin, .addm-shop-dot { animation: none; } .addm-shop-qwrap { transition: none; } }
@media (max-width: 600px) {
  .addm-shop-row { flex-wrap: wrap; }
  .addm-shop-main { flex-basis: calc(100% - 60px); }
  .addm-shop-act { flex: 1 1 100%; justify-content: flex-start; padding-left: 60px; }
  .addm-shop-addwrap { flex-direction: row; align-items: center; gap: 10px; }
  .addm-shop-ver { width: 100%; }
  .addm-shop-ver button { flex: 1; }
}
@media (max-width: 860px) {
  .addm-head h2 { font-size: 21px; }
  .addm-drop { padding: 26px 16px; }
}
