/* =============================================================================
   songbook.css — the playing surface
   -----------------------------------------------------------------------------
   Chrome is built against the ratified taste corpus (records/skills/taste:
   color-type-layout.md standing laws + control-surfaces-spec.md), because the
   first pass invented its own conventions and hit four NEVERs:

     · bordered-rect control groups  → "a table in word" (e-08). Now: tight
       clusters, hairline separators, no boxes around controls.
     · dotted underline on the editable chord name → blueprint semantics belong
       to containers, never editable text (e-07). Now: a spine mark.
     · ghost buttons in control rows (e-06/07). Now: filled accent primary,
       tint-well secondary, ink third.
     · filled-pill chips rank LAST (e-06). Now: spine-chips, square r2.
     · didactic empty-state prose → "i hate text that tries to TEACH me"
       (YOU-SAID, STRONG, e-13). Now: empty states show the SHAPE of what will
       be there, and no string in this file instructs.

   Ambient constants: r2 corners (2px) · 3px uniform spine as the accent
   language · accent carries STATE, never surface · small-caps labels · mono
   tabular numerals · shell/dense spacing (clusters pad 9 / gap 7) · elevation
   present (blur-12 @ 20%) on floating surfaces only.

   The chart geometry below the chrome is unchanged: the horizontal axis is
   musical time, bars are equal grid columns, notation owns the vertical space
   and lyrics sit underneath. Density shrinks text and gaps, never notation.
============================================================================= */

.songbook-mount { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.sb {
  --line:   color-mix(in srgb, var(--fg) 15%, transparent);
  --line-2: color-mix(in srgb, var(--fg) 30%, transparent);
  --chip:   color-mix(in srgb, var(--fg) 6%, transparent);
  --well:   color-mix(in srgb, var(--accent) 12%, transparent);
  --well-2: color-mix(in srgb, var(--accent) 19%, transparent);
  --shadow: 0 4px 12px color-mix(in srgb, #000 20%, transparent);
  --lyr: 12.5px;
  --r: 2px;
  display: flex; flex-direction: column; gap: 9px;
  height: 100%; min-height: 0;
}

/* Placed EARLY on purpose: `[data-tip]` ties `.sb-lyric` on specificity, so if it
   came later it would win and turn absolutely-positioned elements static. */
/* Tooltip: surface-bordered float, 230ms hover delay. Describes; never instructs. */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%;
  transform: translateX(-50%); opacity: 0; pointer-events: none; white-space: nowrap;
  z-index: 20; background: var(--bg-elev); color: var(--fg); font-size: 10.5px;
  font-weight: 500; letter-spacing: 0; text-transform: none;
  padding: 4px 8px; border-radius: var(--r); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); transition: opacity .15s ease;
}
[data-tip]:hover::after { opacity: 1; transition-delay: 230ms; }
.sb-bar[data-tip]::after { bottom: auto; top: calc(100% + 5px); }

/* Small-caps label — the corpus's label voice, used for every control name. */
.sb-lab {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-mute);
}

/* ------------------------------------------------------- head: identity + act */
.sb-head {
  display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.sb-id { display: flex; flex-direction: column; gap: 1px; min-width: 170px; }
.sb-id h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.012em; }
.sb-id .who { font-size: 12.5px; color: var(--fg-dim); }
.sb-id .meta {
  font: 600 10px/1.5 var(--mono); letter-spacing: .05em; color: var(--fg-mute);
  display: flex; gap: 7px; align-items: center; flex-wrap: wrap;
}
.sb-id .meta .soft { color: color-mix(in srgb, var(--fg) 34%, transparent); }

.sb-act { display: flex; align-items: center; gap: 7px; margin-left: auto; flex-wrap: wrap; }

/* Primary: A3 soft-depth — faint top gradient, small lift, filled accent, h26.
   Press is symmetric 220/220 ease and activation strips the fill to an outline
   ("fill means go"). */
.sb-primary {
  font-family: inherit; font-weight: 700; font-size: 11.5px; line-height: 1; height: 26px; padding: 0 14px; border: 0;
  border-radius: var(--r); cursor: pointer; display: inline-flex;
  align-items: center; gap: 7px; color: var(--accent-fg);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: 0 1.5px 4px color-mix(in srgb, #000 22%, transparent);
  transition: all 220ms cubic-bezier(.4, 0, .2, 1);
}
.sb-primary:hover { filter: brightness(1.04); }
.sb-primary.live {
  background: transparent; color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.sb-primary .cnt {
  font: 700 11px/1 var(--mono); font-variant-numeric: tabular-nums;
  min-width: 8px;
}

/* Secondary: tint well — borderless, accent @12% ground, accent text. */
.sb-tw {
  font-family: inherit; font-weight: 600; font-size: 11px; line-height: 1; height: 24px; padding: 0 10px; border: 0;
  border-radius: var(--r); cursor: pointer;
  background: var(--well); color: var(--accent);
  transition: background 150ms ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.sb-tw:hover { background: var(--well-2); }
.sb-tw.quiet { background: var(--chip); color: var(--fg-dim); }
.sb-tw.quiet:hover { background: color-mix(in srgb, var(--fg) 11%, transparent); }
.sb-tw.on { background: var(--accent); color: var(--accent-fg); }

/* Ink third — the lowest tier, for kebabs and dismissals. */
.sb-ink {
  font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1; height: 22px; min-width: 22px; padding: 0 5px;
  border: 0; background: none; color: var(--fg-mute); cursor: pointer;
  border-radius: var(--r);
}
.sb-ink:hover { background: var(--chip); color: var(--fg); }

button:focus-visible, input:focus-visible {
  outline: none; background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.sb [hidden] { display: none !important; }

/* The live loop, described where it lives. Spine-chip, square r2. */
.sb-loopchip {
  display: inline-flex; align-items: center; gap: 7px; height: 24px;
  padding: 0 8px 0 7px; background: var(--chip);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0;
  font: 700 10.5px/1 var(--mono); color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.sb-loopchip b { color: var(--fg); font-weight: 700; }

/* Segmented dense strip — the depth dial. */
.sb-seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.sb-seg button {
  font-family: inherit; font-weight: 600; font-size: 11px; line-height: 1; height: 24px; padding: 0 11px; border: 0;
  background: transparent; color: var(--fg-dim); cursor: pointer;
  border-right: 1px solid var(--line);
  transition: background 150ms ease, color 150ms ease;
}
.sb-seg button:last-child { border-right: 0; }
.sb-seg button:hover { background: var(--chip); color: var(--fg); }
.sb-seg button.on { background: var(--accent); color: var(--accent-fg); }

/* -------------------------------------------------------------- setup row */
.sb-setup {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 0 0 1px;
}
.sb-unit { display: inline-flex; align-items: center; gap: 6px; padding-right: 7px; }
.sb-unit + .sb-unit { border-left: 1px solid var(--line); padding-left: 12px; }

/* Stepper, to spec: 1.5px frame, mono tabular value in a bordered centre cell.
   Hold-to-repeat arms at 174ms and accelerates 300 → 80ms; click has instant
   attack and a 150ms release, and re-clicking inside the window re-flashes. */
.sb-step { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.sb-step button {
  font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1; width: 24px; height: 23px; border: 0;
  background: var(--bg-elev); color: var(--accent); cursor: pointer;
  transition: background 150ms ease;
}
.sb-step button:hover { background: var(--well); }
.sb-step button.hit { background: var(--well-2); transition: none; }
.sb-step .v {
  font: 700 11.5px/23px var(--mono); font-variant-numeric: tabular-nums;
  padding: 0 9px; min-width: 44px; text-align: center;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  color: var(--fg);
}
/* Numbers travel. */
.sb-step .v i { display: inline-block; font-style: normal; transition: transform 174ms cubic-bezier(.4,0,.2,1), opacity 174ms ease; }
.sb-step .v.up i   { animation: sbUp 260ms cubic-bezier(.4,0,.2,1); }
.sb-step .v.down i { animation: sbDown 260ms cubic-bezier(.4,0,.2,1); }
@keyframes sbUp   { 0% { transform: translateY(6px); opacity: .3 } 100% { transform: none; opacity: 1 } }
@keyframes sbDown { 0% { transform: translateY(-6px); opacity: .3 } 100% { transform: none; opacity: 1 } }

/* ------------------------------------------------------------- provenance */
/* Role-tiered: a layer nobody has verified gets a state spine and is legible;
   a layer that IS verified stays quiet. The row describes the chart's footing;
   it does not tell anyone what to do about it. */
.sb-prov { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sb-tag {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 9.5px; padding: 2px 7px 2px 6px; border-radius: 0 var(--r) var(--r) 0;
  background: var(--chip); border-left: 3px solid var(--line-2);
  color: var(--fg-mute);
}
.sb-tag b { font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-dim); }
.sb-tag i { font-style: normal; font-family: var(--mono); font-size: 9px; }
.sb-tag.solid   { border-left-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.sb-tag.mine    { border-left-color: var(--accent); }
.sb-tag.mine b  { color: var(--fg); }
.sb-tag.weak    { border-left-color: var(--c-amber-1, #d97706); }
.sb-tag.absent  { opacity: .5; }

/* ------------------------------------------------------------------ shapes */
/* Every voicing the song uses, once and legible. The chart itself then carries
   names, with a grip only where a chord first appears in a section. */
.sb-shapes { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; padding: 2px 0 1px; }
.sb-shape { display: inline-flex; align-items: flex-end; gap: 6px; }
.sb-shape .sb-grip { width: 30px; height: 30px; }
.sb-shape .sb-grip::before { height: 30px; background: repeating-linear-gradient(to bottom,
    color-mix(in srgb, var(--fg) 34%, transparent) 0 1px, transparent 1px 5.8px); }
.sb-shape b { font-size: 12.5px; font-weight: 700; color: var(--fg); }

/* ---------------------------------------------------------------- practice */
.sb-practice { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--fg-dim); }
.sb-pstat { display: inline-flex; gap: 5px; align-items: baseline; }
.sb-pstat b { font: 700 12px var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.sb-weak {
  font: 600 10.5px/1 var(--mono); padding: 3px 8px; cursor: pointer;
  border: 0; border-left: 3px solid var(--c-amber-1, #d97706);
  border-radius: 0 var(--r) var(--r) 0; background: var(--chip); color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.sb-weak:hover { background: var(--well); color: var(--accent); }
.sb-weak i { font-style: normal; opacity: .7; margin-left: 6px; }

/* Empty state = the SHAPE of what will be there. A ghost of the real row,
   never a lesson about how to fill it. */
.sb-practice.ghost { user-select: none; pointer-events: none; }
.sb-practice.ghost .gh {
  display: inline-block; height: 17px; border-radius: 0 var(--r) var(--r) 0;
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--fg) 9%, transparent);
}

/* -------------------------------------------------------------------- ears */
.sb-ears {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 8px 11px; background: var(--bg-elev);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0;
}
.sb-ereadout { font-size: 12px; color: var(--fg-dim); display: flex; gap: 9px; align-items: center; }
.sb-ereadout b { font: 700 17px var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.sb-ereadout b.intune { color: var(--c-mint-1, #059669); }
.sb-cents { font: 500 11px var(--mono); color: var(--fg-mute); }
.sb-meter {
  position: relative; width: 128px; height: 14px; border-radius: var(--r);
  background: var(--bg); border: 1.5px solid var(--line-2);
  box-shadow: inset 0 2px 4px color-mix(in srgb, #000 16%, transparent);
}
.sb-meter i {
  position: absolute; top: -2px; width: 8px; height: 16px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--bg-elev), var(--chip));
  border: 1.5px solid var(--line-2); transform: translateX(-50%);
  box-shadow: 0 1.5px 3px color-mix(in srgb, #000 25%, transparent);
  transition: left .08s linear;
}
.sb-meter::before {
  content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1px;
  background: var(--line-2);
}
.sb-match { font-size: 11.5px; }
.sb-match.ok { color: var(--c-mint-1, #059669); }
.sb-match.near { color: var(--c-amber-1, #d97706); }
.sb-match.off { color: var(--fg-mute); }

/* ----------------------------------------------------------------- systems */
.sb-systems {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding-right: 4px;
}
.sb-section { margin: 0 0 15px; padding: 0; }   /* padding:0 — the site's own
   `section` rule adds 128px, which is what the vertical-whitespace complaint
   was made of. */

.sb-sechead {
  display: flex; align-items: center; gap: 9px; padding: 3px 0 4px 8px;
  border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
  position: sticky; top: 0; background: var(--bg); z-index: 3;
}
/* The spine carries the section's standing — accent is state, nothing else. */
.sb-section[data-mark="good"]  .sb-sechead { border-left-color: var(--c-mint-1, #059669); }
.sb-section[data-mark="shaky"] .sb-sechead { border-left-color: var(--c-amber-1, #d97706); }
.sb-section[data-mark="wrong"] .sb-sechead { border-left-color: var(--c-rose-1, #e11d48); }

.sb-seclabel { font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--fg); }
.sb-section[data-kind="chorus"]     .sb-seclabel { color: var(--c-amber-1, #d97706); }
.sb-section[data-kind="verse"]      .sb-seclabel { color: var(--c-cyan-1, #0891b2); }
.sb-section[data-kind="pre-chorus"] .sb-seclabel { color: var(--c-violet-1, #7c3aed); }
.sb-section[data-kind="bridge"]     .sb-seclabel { color: var(--c-mint-1, #059669); }
.sb-secmeta { font: 500 9.5px var(--mono); color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.sb-repeat {
  font: 700 9px var(--mono); padding: 1.5px 4.5px; border-radius: var(--r);
  background: var(--accent); color: var(--accent-fg);
}
.sb-secgap { flex: 1; }
/* The strum pattern, written once for the section instead of papered over
   every bar. A repeating figure is notated once — that is what a chart does. */
.sb-strum { display: inline-flex; align-items: center; gap: 3px; padding: 0 2px; }
.sb-strum i { font-style: normal; font-size: 12px; line-height: 1; color: color-mix(in srgb, var(--fg) 62%, transparent); }
.sb-strum i.up { color: color-mix(in srgb, var(--fg) 38%, transparent); }
.sb-strum i.mute { color: var(--fg-mute); }
.sb-strum.p-claimed { opacity: .8; }
/* Hover-revealed affordances — "normal human instinct" (e-08 V4). */
.sb-sechead .sb-tw, .sb-sechead .sb-ink { opacity: 0; transition: opacity 150ms ease; }
.sb-sechead:hover .sb-tw, .sb-sechead:hover .sb-ink,
.sb-sechead:focus-within .sb-tw, .sb-sechead:focus-within .sb-ink { opacity: 1; }
.sb-section.looped .sb-sechead .sb-tw { opacity: 1; }

.sb-gap { font: 500 10px var(--mono); color: var(--fg-mute); padding: 4px 0 10px; letter-spacing: .04em; }

.sb-system { margin-top: 9px; }
/* One bar = one equal column. Equal musical time is equal width, exactly, and
   the column count is one number for the whole song so it holds across
   sections too. */
.sb-bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); border-left: 1px solid var(--line-2); }
.sb-slyr { position: relative; min-height: 18px; margin-top: 2px; overflow: hidden; }

.sb-bar { position: relative; border-right: 1px solid var(--line-2); min-width: 0; cursor: pointer; }
/* Blueprint frame, not hatching: a bar with nothing in it shows its shape and
   then gets out of the way. */
.sb-bar.empty { cursor: default; background: color-mix(in srgb, var(--fg) 2.5%, transparent); }
.sb-bar.in-loop { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sb-bar.in-loop.empty { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.sb-bar:hover:not(.empty) { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.sb-barnum {
  position: absolute; top: 1px; right: 3px; font: 500 8px var(--mono);
  color: var(--fg-mute); opacity: .55; pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.sb-notation {
  position: relative; padding: 12px 0 4px;
  background-image: repeating-linear-gradient(to right,
    color-mix(in srgb, var(--fg) 9%, transparent) 0 1px, transparent 1px 25%);
}
.sb-row { position: relative; }
.sb-chords { height: 30px; }
.sb-tab-row { height: 30px; margin-top: 2px; }
.sb-mel-row { height: 34px; margin-top: 2px; }

.sb-chord {
  position: absolute; top: 0; height: 100%;
  display: flex; align-items: flex-start; gap: 4px; padding-left: 4px;
  border-left: 1px solid color-mix(in srgb, var(--fg) 26%, transparent);
}
.sb-chord.tied { border-left: 0; opacity: .45; }
.sb-cname { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; color: var(--fg); white-space: nowrap; }
/* Provenance by SPINE, never by underline — a dashed underline on editable
   text is blueprint semantics in the wrong place (e-07). */
.sb-chord.p-claimed { border-left-style: dotted; }
.sb-chord.p-claimed .sb-cname { color: color-mix(in srgb, var(--fg) 72%, transparent); font-weight: 600; }
.sb-chord.p-mine { border-left-color: var(--accent); border-left-width: 3px; padding-left: 5px; }
.sb-chord:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }

/* The grip: constant at every density — compression shrinks text, never notation. */
.sb-grip { position: relative; width: 26px; height: 26px; flex: none; margin-top: 1px; }
.sb-grip::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 100%; height: 26px;
  background: repeating-linear-gradient(to bottom,
    color-mix(in srgb, var(--fg) 34%, transparent) 0 1px, transparent 1px 5px);
}
.sb-dot { position: absolute; width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 1px var(--bg); }
.sb-dot.open { background: transparent; border: 1.2px solid var(--fg-dim); width: 3.5px; height: 3.5px; }

.sb-rhythm { position: absolute; inset: 0; }
.sb-hit {
  position: absolute; top: 0; font-size: 12px; line-height: 1;
  color: color-mix(in srgb, var(--fg) 62%, transparent);
  transform: translateX(-50%); font-style: normal;
}
.sb-hit.up { color: color-mix(in srgb, var(--fg) 40%, transparent); }
.sb-hit.mute { color: var(--fg-mute); }

.sb-tab { position: absolute; inset: 0; }
.sb-string { position: absolute; left: 0; right: 0; height: 1px; background: color-mix(in srgb, var(--fg) 26%, transparent); }
.sb-note {
  position: absolute; font: 600 9px var(--mono); line-height: 1; color: var(--fg);
  background: var(--bg); padding: 0 1.5px; transform: translateX(-50%); font-style: normal;
}

.sb-melody { position: absolute; inset: 0; }
.sb-mnote { position: absolute; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 55%, transparent); transform: translateY(-50%); min-width: 4px; }
.sb-mnote.p-mine { background: var(--accent); }

.sb-lyric {
  position: absolute; top: 0; font-size: var(--lyr); line-height: 1.34;
  color: var(--fg); padding-right: 10px; overflow-wrap: break-word; hyphens: none;
}
.sb-lyric.p-derived { color: var(--fg-dim); }
.sb-lyric.cont { opacity: .5; }

.sb-playhead {
  position: absolute; top: 0; left: 0; width: 2px; pointer-events: none; z-index: 4;
  background: var(--accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent);
  will-change: transform;
}

.sb-notes {
  font-size: 11.5px; line-height: 1.55; color: var(--fg-dim);
  padding: 8px 0 0; border-top: 1px solid var(--line); max-width: 90ch;
}
.sb-notes b { color: var(--fg-mute); margin-right: 7px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

/* ------------------------------------------------------- floating surfaces */
.sb-pop {
  position: absolute; z-index: 60; min-width: 208px; padding: 9px;
  border-radius: var(--r); border: 1.5px solid var(--line-2);
  background: var(--bg-elev); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 7px;
}
.sb-pop.wide { width: min(560px, 92vw); position: fixed; }
.sb-pop.menu { padding: 4px; gap: 0; min-width: 186px; }
.sb-pophead {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  color: var(--fg-mute); display: flex; justify-content: space-between; gap: 9px;
}
.sb-pophead i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.sb-menuitem {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font-family: inherit; font-weight: 600; font-size: 11.5px; line-height: 1;
  height: 27px; padding: 0 9px; border: 0; background: none;
  color: var(--fg-dim); cursor: pointer; text-align: left; border-radius: var(--r);
  border-left: 3px solid transparent;
}
.sb-menuitem:hover { background: var(--chip); color: var(--fg); }
.sb-menuitem.on { color: var(--fg); border-left-color: var(--accent); background: var(--chip); }
.sb-menuitem .k { margin-left: auto; font: 500 9.5px var(--mono); color: var(--fg-mute); }
.sb-menugroup { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); padding: 8px 9px 3px; }
.sb-menusep { height: 1px; background: var(--line); margin: 4px 0; }

.sb-popin {
  font: 700 14px var(--mono); padding: 6px 8px; border-radius: var(--r);
  border: 1.5px solid var(--line-2); background: var(--bg); color: var(--fg);
}
.sb-poprow { display: flex; gap: 6px; }
.sb-poprow .sb-tw, .sb-poprow .sb-primary { flex: 1; justify-content: center; height: 26px; }
.sb-srcs { display: flex; flex-direction: column; gap: 4px; max-height: 46vh; overflow: auto; }
.sb-src {
  display: flex; gap: 9px; align-items: baseline; font-size: 11px; padding: 5px 7px;
  background: var(--chip); border-left: 3px solid var(--line-2); border-radius: 0 var(--r) var(--r) 0;
}
.sb-src.used { border-left-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.sb-src.rej { opacity: .68; }
.sb-src b { font: 700 10.5px var(--mono); color: var(--fg); }
.sb-src span { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-mute); }
.sb-src i { font-style: normal; color: var(--fg-dim); font-size: 10.5px; }


@media (max-width: 760px) {
  .sb-act { margin-left: 0; }
  .sb-id h1 { font-size: 16px; }
}
