:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bg: #0f1110;
  --panel: #171a19;
  --panel-2: #1f2321;
  --line: #2a2f2c;
  --text: #e9ece9;
  --muted: #8d958f;
  --accent: #7ddc8f;
  --accent-ink: #0c1a10;
  --warn: #f0b85a;
  --danger: #ef6b6b;
  --wave: #8b928d;
  --wave-hover: #c4cac5;
  --wave-played: #7ddc8f;
  --radius: 12px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f4; --panel: #ffffff; --panel-2: #f0f2ef; --line: #e1e5e0;
    --text: #151816; --muted: #69716b; --accent: #1f9e46; --accent-ink: #ffffff;
    --wave: #9aa39c; --wave-hover: #5f6962; --wave-played: #1f9e46;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 80px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hidden, [hidden] { display: none !important; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.brand { font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.brand::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 4px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 100%;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
label.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }

/* ---------- sign in / sign up ---------- */
.auth { max-width: 380px; margin: 60px auto; display: grid; gap: 12px; }
.auth h2, .auth p { margin: 0; }
.auth .btn.primary { width: 100%; margin-top: 4px; }
.auth-err { color: var(--danger); }
.auth-err:empty { display: none; }

/* ---------- player ---------- */
.player-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.play {
  width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
}
.play svg { width: 22px; height: 22px; }
.wave { position: relative; height: 96px; margin-bottom: 26px; user-select: none; }
.wave canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.wave-hover {
  position: absolute; top: -22px; transform: translateX(-50%); font-size: 11px; font-variant-numeric: tabular-nums;
  background: var(--panel-2); border: 1px solid var(--line); padding: 0 6px; border-radius: 4px; pointer-events: none;
}
.wave-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.wave-markers { position: absolute; left: 0; right: 0; bottom: -24px; height: 20px; }
.marker {
  position: absolute; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--panel); background: var(--warn); color: #1b1300; font-size: 10px; font-weight: 700;
  padding: 0; cursor: pointer; line-height: 16px;
}
.marker.admin { background: var(--accent); color: var(--accent-ink); }
.marker.resolved { opacity: .35; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.versions { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 3px 12px; font-size: 13px; cursor: pointer;
}
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- tracklist ---------- */
.tracks { list-style: none; margin: 0; padding: 0; }
.tracks li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer;
}
.tracks li:hover { background: var(--panel-2); }
.tracks li.on { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.tracks .num { width: 20px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------- comments ---------- */
.composer { display: flex; flex-direction: column; gap: 8px; }
.composer .stamp {
  font-variant-numeric: tabular-nums; font-size: 13px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; cursor: pointer;
}
.composer .stamp.off { text-decoration: line-through; color: var(--muted); }
.comments { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.comment { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 8px; }
.comment:hover { background: var(--panel-2); }
.comment.flash { background: color-mix(in srgb, var(--warn) 18%, transparent); }
.comment.resolved .body { color: var(--muted); text-decoration: line-through; }
.comment .ts {
  flex: none; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--warn); background: none; border: 0;
  padding: 0; cursor: pointer; min-width: 44px; text-align: left;
}
.comment.admin .ts { color: var(--accent); }
.comment .who { font-weight: 600; font-size: 14px; line-height: 22px; }
.comment .who .muted { font-weight: 400; margin-left: 4px; }
.comment .body { white-space: pre-wrap; word-wrap: break-word; }
.comment .actions { display: flex; gap: 4px; flex: none; align-items: flex-start; }

/* ---------- payment ---------- */
.pay {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
}
.pay .amount { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.3);
}

.layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .layout.two { grid-template-columns: 280px 1fr; align-items: start; } }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); cursor: pointer;
}
.dropzone.over { border-color: var(--accent); color: var(--text); }
.progress { height: 4px; background: var(--panel-2); border-radius: 2px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 500; }
code.link { font-size: 12px; background: var(--panel-2); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

@media (max-width: 600px) { .hint { display: none; } .wave { height: 72px; } }

/* A version switch is buffering: the old version keeps playing until the swap. */
.wave.switching canvas { opacity: .6; transition: opacity .15s; }

.tab { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); background: var(--panel-2); }
@media (max-width: 760px) { .wide-only { display: none; } }

/* ---------- admin shell ---------- */
.shell.with-side { display: grid; min-height: 100vh; }
.shell:not(.with-side) .main { max-width: 960px; margin: 0 auto; padding: 24px 16px 80px; }
.shell.with-side .main { padding: 24px 32px 80px; min-width: 0; width: 100%; max-width: 1180px; justify-self: center; }
.side {
  border-right: 1px solid var(--line); padding: 18px 10px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel);
}
.side .brand { color: inherit; text-decoration: none; padding: 0 10px 6px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.side-foot { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--line); padding-top: 10px; }
.side-link {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; font-size: 14px;
  color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; width: 100%;
}
.side-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link:hover { background: var(--panel-2); }
.side-link.on { background: var(--panel-2); font-weight: 600; }
.side-link.muted { color: var(--muted); }
.ico { width: 18px; height: 18px; flex: none; color: var(--muted); }
.drop-target.over { outline: 2px solid var(--accent); outline-offset: -2px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (max-width: 860px) {
  .shell.with-side { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .shell.with-side .main { padding: 20px 16px 80px; }
}

.list-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.crumbs { font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.crumbs a { color: var(--muted); text-decoration: none; border-radius: 6px; padding: 2px 4px; }
.crumbs a:hover { color: var(--text); }
.crumbs > :last-child { color: var(--text); font-weight: 600; }
.crumbs .sep { color: var(--muted); font-weight: 400 !important; }
.search { width: 220px !important; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
tr.click a { color: var(--text); text-decoration: none; font-weight: 500; }
.list-panel { position: relative; min-height: 180px; }
.drop-hint { display: none; }
.list-panel.over { outline: 2px dashed var(--accent); outline-offset: -8px; }
.list-panel.over .drop-hint {
  display: grid; place-items: center; position: absolute; inset: 0; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 80%, transparent); font-weight: 600;
}
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- upload tray & naming dialog ---------- */
.tray { position: fixed; right: 16px; bottom: 16px; width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; z-index: 40; }
.tray-row { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tray-row .progress { margin-top: 6px; }
.dlg {
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text);
  width: min(560px, calc(100vw - 32px)); padding: 24px;
}
.dlg::backdrop { background: rgba(0,0,0,.55); }
.dlg .field { margin-top: 12px; }
.dlg .file-line { margin: 4px 0 4px; word-break: break-all; }
.dlg #matchRow { margin-top: 14px; }

/* ---------- player chrome ---------- */
.head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.clock { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); white-space: nowrap; }
.player-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.player-foot .details { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 0;
  background: none; color: var(--muted); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 7px; padding: 4px 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--text); color: var(--bg); }
.seg button[hidden] { display: none; }

/* ---------- versions list ---------- */
.vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.vrow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.vrow:hover { background: var(--panel-2); }
.vrow.on { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.vrow .chip { flex: none; }
.star.on { color: var(--warn); }

/* ---------- alignment pass ---------- */
.comment .ts { line-height: 22px; }
.comment .actions { align-items: center; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.hint-line { margin: -4px 0 10px; }
.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 16px 0; align-items: start; }
.proj-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.proj-main .panel + .panel { margin-top: 0; }
.tracks li { gap: 10px; padding: 9px 10px; }
.tracks li .badge { flex: none; }
.dropzone.slim { margin-top: 10px; padding: 12px 16px; border-width: 1.5px; font-size: 14px; }
.player-head h2 { overflow-wrap: anywhere; }
.player-foot { margin-top: 2px; }
.player-foot > .icon-btn:first-child { margin-left: -8px; }
.vrow { padding: 8px 10px; }
.vrow .icon-btn { margin: 0 -2px; }
#links td { vertical-align: middle; }
#links th:nth-child(3), #links th:nth-child(4) { width: 1%; white-space: nowrap; padding-right: 20px; }
.vlabel { font-weight: 600; font-size: 14px; }
.vrow.on .vlabel { color: var(--accent); }

@media (min-width: 960px) { .proj-grid { grid-template-columns: 300px minmax(0, 1fr); } }
.tracks li .badge { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracks li .grow { min-width: 0; }

/* Whole-panel drop targets */
.drop-panel { position: relative; }
.drop-veil { display: none; }
.drop-panel.over { outline: 2px solid var(--accent); outline-offset: -2px; }
.drop-panel.over .drop-veil {
  display: grid; place-items: center; position: absolute; inset: 0; border-radius: var(--radius); z-index: 5;
  background: color-mix(in srgb, var(--panel) 85%, transparent); font-weight: 600; color: var(--accent); pointer-events: none;
}
#trackDrop { text-align: center; line-height: 1.4; }

/* Collapsible sidebar: the column animates to 0 while the panel slides and fades out. */
.shell.with-side { grid-template-columns: 232px minmax(0, 1fr); transition: grid-template-columns .32s var(--ease); }
.shell.with-side.collapsed { grid-template-columns: 0px minmax(0, 1fr); }
.side {
  overflow: hidden; min-width: 0;
  transition: opacity .22s ease, transform .32s var(--ease), padding .32s var(--ease), border-color .32s ease, visibility 0s;
}
.side > * { min-width: 212px; }
.shell.collapsed .side {
  opacity: 0; transform: translateX(-24px); padding-left: 0; padding-right: 0; border-right-color: transparent; visibility: hidden;
  transition: opacity .18s ease, transform .32s var(--ease), padding .32s var(--ease), border-color .32s ease, visibility 0s .32s;
}
.side-toggle { position: fixed; top: 14px; left: 188px; z-index: 30; transition: left .32s var(--ease), background .15s, color .15s; }
.shell.collapsed .side-toggle { left: 12px; }
.shell.with-side .main { transition: padding .32s var(--ease); }
.shell.with-side.collapsed .main { padding-left: 64px; }
@media (max-width: 860px) {
  .side-toggle { left: auto; right: 12px; }
  .shell.collapsed .side-toggle { left: auto; right: 12px; }
  .shell.with-side.collapsed .main { padding-left: 16px; padding-top: 56px; }
  .shell.with-side, .shell.with-side.collapsed { grid-template-columns: 1fr; }
  .shell.collapsed .side { display: none; }
}

/* In-place rename & in-app dialogs */
.inline-edit {
  font: inherit; color: inherit; background: var(--panel-2); border: 1px solid var(--accent);
  border-radius: 6px; padding: 2px 8px; margin: -3px -9px; width: calc(100% + 18px); min-width: 120px; outline: none;
}
.side-link .inline-edit { margin: -3px 0; width: 100%; }
.crumbs .inline-edit { width: 220px; margin: -3px 0; }
.dlg-sm { width: min(420px, calc(100vw - 32px)); }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-fill:hover { filter: brightness(1.08); }

/* ---------- motion ---------- */
.btn, .chip, .icon-btn, .side-link, .seg button, .stamp, .tab {
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .12s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:active:not(:disabled), .chip:active, .icon-btn:active, .seg button:active, .stamp:active { transform: scale(.96); }
.play { transition: transform .15s var(--ease), filter .15s ease; }
.play:hover { filter: brightness(1.06); }
.play:active { transform: scale(.92); }
.play svg { transition: transform .2s var(--ease); }
.tracks li, .vrow, tr.click td, .comment, .side-link { transition: background-color .15s ease, box-shadow .2s ease, opacity .2s ease; }
.marker { transition: transform .15s var(--ease), opacity .2s ease; }
.marker:hover { transform: translateX(-50%) scale(1.2); }
.wave canvas { transition: opacity .2s ease; }
.drop-panel { transition: outline-color .15s ease; }
.drop-panel.over .drop-veil, .list-panel.over .drop-hint { animation: fade-in .15s ease; }
.dropzone { transition: border-color .15s ease, color .15s ease, background-color .15s ease; }

/* Views ease in when you navigate */
.view-in { animation: view-in .26s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* Dialogs */
.dlg[open] { animation: dlg-in .22s var(--ease); }
.dlg[open]::backdrop { animation: fade-in .22s ease; }
.dlg.closing { animation: dlg-out .14s ease forwards; }
.dlg.closing::backdrop { animation: fade-out .14s ease forwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(4px) scale(.98); } }

/* Toasts & upload tray */
.toast { animation: toast-in .28s var(--ease); }
.toast.out { animation: toast-out .2s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 6px); } }
.tray-row { animation: rise-in .26s var(--ease); }
.tray-row.out { animation: fade-out .2s ease forwards; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }

/* New comments and rows slide in */
.enter { animation: item-in .32s var(--ease) both; }
@keyframes item-in { from { opacity: 0; transform: translateY(-6px); } }

/* Reordering: the dragged row becomes a placeholder; the others glide (see flip() in admin). */
.vrow.dragging, .tracks li.dragging {
  opacity: 1; background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent);
  border-radius: 8px;
}
.vrow.dragging > *, .tracks li.dragging > * { opacity: .35; }
.vrow[draggable="true"], .tracks li[draggable="true"] { cursor: grab; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::backdrop { animation-duration: .001ms !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
.vlist, .tracks { position: relative; }

/* Branding */
.brand.has-logo::before { display: none; }
.brand-logo { height: 28px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; flex: none; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-foot { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.share-foot a { color: var(--muted); }
.share-foot a:hover { color: var(--text); }
.brand-preview { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; }
.logo-slot {
  width: 88px; height: 88px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2);
  display: grid; place-items: center; overflow: hidden; flex: none; cursor: pointer; transition: border-color .15s ease;
}
.logo-slot:hover { border-color: var(--muted); }
.logo-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .12s ease, border-color .15s ease; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: var(--text); }
input[type=color] { width: 36px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }

/* Share links table */
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none; cursor: pointer; }
#links td { padding-top: 10px; padding-bottom: 10px; }
.who-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-name { font-weight: 500; min-width: 0; }
.pill-select { position: relative; display: inline-flex; flex: none; }
.pill-select select {
  -webkit-appearance: none; appearance: none; width: auto; cursor: pointer;
  padding: 4px 28px 4px 12px; border-radius: 999px; font-size: 13px; line-height: 20px;
  background: var(--panel-2); border: 1px solid var(--line); transition: border-color .15s ease;
}
.pill-select select:hover { border-color: var(--muted); }
.pill-select::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.cell-check { display: flex; align-items: center; gap: 8px; min-height: 28px; white-space: nowrap; }
.cell-check .badge { display: inline-flex; align-items: center; height: 20px; line-height: 1; padding: 0 8px; }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.who-cell .pill-select select { min-width: 124px; }
.side .brand { padding-right: 44px; min-width: 0; }

/* Artist filter */
.artist-filter select { min-width: 140px; max-width: 220px; text-overflow: ellipsis; }
.artist-filter.on select { border-color: var(--accent); color: var(--accent); }
.artist-filter.on::after { border-color: var(--accent); }
.artist-link { color: inherit !important; font-weight: 400 !important; text-decoration: none; }
.artist-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.search { padding: 6px 12px !important; border-radius: 999px !important; font-size: 14px; }
.crumbs { white-space: nowrap; }
