/* Audius design system (Song Passport and the other Audius products): Audius purple #7E1BCC and the Audius gradient with an Apple-clean finish:
   neutral chrome, one purple accent, the Harmony gradient used sparingly, frosted bars, hairlines, pill buttons, quiet shadows.
   Type is the system stack (SF Pro on Apple devices); Avenir Next is used only where it is already installed, never shipped. */
:root {
  --bg: #F7F7F9; --bg-2: #F5F5F7; --surface: #FFFFFF; --surface-2: #F7F7F9; --surface-3: #ECECF0;
  --line: #E4E4EA; --line-strong: #C4C4CC; --fg: #16161A; --fg-2: #44444E; --muted: #63636C; --faint: #6E6E78;
  --blue: #7E1BCC; --violet: #5B23E1; --grad: linear-gradient(315deg, #5B23E1 0%, #A22FEB 100%);
  --grad-soft: linear-gradient(315deg, rgba(91,35,225,.10), rgba(126,27,204,.10));
  --accent: #7E1BCC; --accent-strong: #5B23E1; --accent-ink: #FFFFFF; --accent-soft: #F4E8FD;
  --ok: #14763A; --ok-soft: #E6F6EC; --warn: #B45309; --warn-soft: #FEF3E2; --crit: #B91C1C; --crit-soft: #FDECEC;
  --info: #5B23E1; --info-soft: #F4E8FD; --money: #14763A; --money-soft: #E6F6EC;
  --glass: rgba(255,255,255,.72); --glass-side: rgba(245,245,247,.78);
  --shadow-sm: 0 1px 2px rgba(16,16,20,.04); --shadow: 0 1px 2px rgba(16,16,20,.04), 0 6px 20px rgba(16,16,20,.05);
  --shadow-lg: 0 20px 50px rgba(16,16,20,.14);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Avenir Next", Inter, "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Avenir Next", Inter, "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-lg: 16px; --r: 14px; --r-sm: 12px; --r-xs: 8px;
  --ease: cubic-bezier(.25,.1,.25,1); --t: .2s;
  --sidebar: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0B0B0E; --bg-2: #101014; --surface: #16161A; --surface-2: #1C1C21; --surface-3: #2A2A31;
  --line: #2A2A31; --line-strong: #42424B; --fg: #F2F2F5; --fg-2: #D8D8DE; --muted: #A9A9B3; --faint: #85858F;
  --blue: #7E1BCC; --violet: #C17BF5; --grad: linear-gradient(315deg, #7E1BCC 0%, #A22FEB 100%);
  --grad-soft: linear-gradient(315deg, rgba(126,27,204,.18), rgba(193,123,245,.14));
  --accent: #C17BF5; --accent-strong: #7E1BCC; --accent-ink: #FFFFFF; --accent-soft: #24123A;
  --ok: #4ADE80; --ok-soft: #0F2A1A; --warn: #FBBF24; --warn-soft: #2E2410; --crit: #F87171; --crit-soft: #331618;
  --info: #C17BF5; --info-soft: #24123A; --money: #4ADE80; --money-soft: #0F2A1A;
  --glass: rgba(11,11,14,.72); --glass-side: rgba(16,16,20,.78);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0E; --bg-2: #101014; --surface: #16161A; --surface-2: #1C1C21; --surface-3: #2A2A31;
  --line: #2A2A31; --line-strong: #42424B; --fg: #F2F2F5; --fg-2: #D8D8DE; --muted: #A9A9B3; --faint: #85858F;
  --blue: #7E1BCC; --violet: #C17BF5; --grad: linear-gradient(315deg, #7E1BCC 0%, #A22FEB 100%);
  --grad-soft: linear-gradient(315deg, rgba(126,27,204,.18), rgba(193,123,245,.14));
  --accent: #C17BF5; --accent-strong: #7E1BCC; --accent-ink: #FFFFFF; --accent-soft: #24123A;
  --ok: #4ADE80; --ok-soft: #0F2A1A; --warn: #FBBF24; --warn-soft: #2E2410; --crit: #F87171; --crit-soft: #331618;
  --info: #C17BF5; --info-soft: #24123A; --money: #4ADE80; --money-soft: #0F2A1A;
  --glass: rgba(11,11,14,.72); --glass-side: rgba(16,16,20,.78);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55); color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; min-height: 100vh; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: 1.45rem; letter-spacing: -0.024em; }
h3, .h3 { font-size: 1.05rem; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; transition: color var(--t) var(--ease), background-color var(--t) var(--ease), opacity var(--t) var(--ease); }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--violet) 35%, transparent); }
.mono, code, .code { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 12px; }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .02em; color: var(--accent); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: .5px solid var(--line-strong); background: var(--glass-side); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font-weight: 700; letter-spacing: -0.02em; font-size: 15.5px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-strong); display: grid; place-items: center; color: #fff; }
.brand-mark svg { width: 18px; height: 18px; stroke-width: 1.75; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.nav-section { padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 8px; color: var(--fg-2); font-weight: 500; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.nav a:hover { background: var(--surface-3); text-decoration: none; color: var(--fg); }
.nav a.active { background: var(--accent-soft); color: var(--fg); }
.nav a.active svg { color: var(--accent); }
.nav a svg { width: 18px; height: 18px; flex: none; color: var(--muted); stroke-width: 1.6; }
.nav .count { margin-left: auto; font: 600 11px var(--sans); background: var(--accent-strong); color: #fff; border-radius: 99px; padding: 1px 7px; }
.sidebar-foot { margin-top: auto; padding: 10px; border-top: .5px solid var(--line-strong); display: flex; align-items: center; gap: 10px; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: .5px solid transparent; transition: border-color var(--t) var(--ease); }
.topbar.scrolled { border-bottom-color: var(--line-strong); }
.topbar .search { flex: 6 1 0; min-width: 0; max-width: 520px; position: relative; }
.topbar .search input { width: 100%; padding: 9px 16px 9px 38px; border-radius: 99px; border: 1px solid transparent; background: var(--surface-3); outline: none; transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.topbar .search input:focus { background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.topbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--faint); }
.btn.menu-btn { display: none; }
.page { padding: 36px 32px 96px; max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head .lede { color: var(--muted); max-width: 640px; margin-top: 10px; font-size: 17px; line-height: 1.45; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); background: var(--glass); }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .btn.menu-btn { display: inline-grid; }
  .topbar, .page { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: .5px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: .5px solid var(--line-strong); }
.card-body { padding: 18px 22px; }
.card.hero { position: relative; overflow: hidden; border: 0; color: #fff; background: linear-gradient(315deg, #3B2A86 0%, #5B23E1 45%, #7E1BCC 100%); box-shadow: var(--shadow); }
.card.hero .muted { color: rgba(255,255,255,.75); }
.card.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.10), transparent 60%); pointer-events: none; }
.card.glass { background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split-main { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack-sm { display: flex; flex-direction: column; gap: 6px; } .stack-lg { display: flex; flex-direction: column; gap: 22px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.spacer { flex: 1; }

/* ---------- Stats ---------- */
.stat { padding: 18px 20px; }
.stat .label svg, .eyebrow svg, .badge svg, .chip svg, .label svg { width: 14px; height: 14px; flex: none; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .value { font: 700 28px/1.1 var(--display); letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat .value.money { color: var(--money); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; cursor: pointer; transition: transform var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease), opacity var(--t) var(--ease); white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; stroke-width: 1.75; }
.btn-primary { background: #7E1BCC; color: #fff; border-color: transparent; }
.btn-primary:hover { background: #5B23E1; }
.btn-dark { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-dark:hover { background: var(--fg); opacity: .9; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { color: var(--crit); }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; border-radius: 50%; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input { width: 100%; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); outline: none; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.input.mono { font-family: var(--mono); }
textarea.input { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 99px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 99px; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--fg-2); white-space: nowrap; line-height: 1.6; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.crit { background: var(--crit-soft); color: var(--crit); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.money { background: var(--money-soft); color: var(--money); }
.badge.grad { background: var(--accent-strong); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--surface-3); font: 500 12px var(--mono); color: var(--fg-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); padding: 10px 14px; border-bottom: .5px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: .5px solid var(--line-strong); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }
.table .r { text-align: right; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-bottom: .5px solid var(--line-strong); color: inherit; transition: background-color var(--t) var(--ease); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); text-decoration: none; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Artwork + avatars ---------- */
.art { position: relative; overflow: hidden; width: 46px; height: 46px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.art.lg { width: 120px; height: 120px; border-radius: 14px; font-size: 38px; }
.art.xl { width: 184px; height: 184px; border-radius: 16px; font-size: 56px; box-shadow: var(--shadow); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatars { display: flex; } .avatars .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); } .avatars .avatar:first-child { margin-left: 0; }

/* ---------- Split bar ---------- */
.splitbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.splitbar > i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ---------- Progress ---------- */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent-strong); border-radius: 99px; transition: width .5s var(--ease); }
.ring { --p: 0; --size: 64px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; font: 700 15px var(--display); }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring > span { position: relative; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: .5px solid var(--line-strong); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.tabs a:hover, .tabs button:hover { color: var(--fg); text-decoration: none; }
.tabs .on { color: var(--fg); border-bottom-color: var(--accent); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl-item.ok::before { border-color: var(--ok); background: var(--ok); }
.tl-item.warn::before { border-color: var(--warn); }
.tl-item .when { font-size: 12px; color: var(--muted); }

/* ---------- Empty, callouts ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--accent-soft); color: var(--accent); }
.empty h3, .empty .h3 { color: var(--fg); margin-bottom: 6px; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.callout.info { background: var(--info-soft); border-color: transparent; }
.callout.warn { background: var(--warn-soft); border-color: transparent; }
.callout.ok { background: var(--ok-soft); border-color: transparent; }
.callout.crit { background: var(--crit-soft); border-color: transparent; }
.callout svg { flex: none; width: 19px; height: 19px; margin-top: 1px; }
.skeleton { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; min-height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Modal + toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(11,11,14,.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: pop .2s var(--ease); }
.modal.wide { width: min(860px, 100%); }
.modal-head { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-body { padding: 16px 24px; }
.modal-foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--fg); color: var(--bg); padding: 11px 20px; border-radius: 99px; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .2s ease; max-width: 90vw; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.toast.err { background: var(--crit); color: #fff; }

/* ---------- Auth / public pages ---------- */
.public { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(80% 50% at 50% -10%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%), var(--bg); }
.public-card { width: min(520px, 100%); }
.public-wide { width: min(880px, 100%); }

/* ---------- Waveform / audio ---------- */
.wave { display: flex; align-items: center; gap: 2px; height: 40px; }
.wave i { flex: 1; background: var(--line-strong); border-radius: 2px; min-width: 2px; }
.wave i.on { background: var(--accent); }

/* ---------- Misc ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hash { font: 500 12px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.seal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 30px; text-align: center; color: var(--muted); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.kbd { font: 600 11px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }
.fade-in { animation: fade .3s ease; }

.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.feature-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.empty .icon svg { width: 26px; height: 26px; }

/* ---------- Glossary terms (term() in app.js): dotted underline, plain-English tooltip on hover or tap ---------- */
.term { position: relative; text-decoration: underline dotted color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; cursor: help; outline: none; }
.term::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); width: max-content; max-width: min(280px, 80vw);
  padding: 9px 12px; border-radius: 12px; background: var(--fg); color: var(--bg); font: 500 12.5px/1.45 var(--sans); letter-spacing: 0; text-transform: none; white-space: normal; text-align: left;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); z-index: 60; }
.term:hover::after, .term:focus::after { opacity: 1; transform: translate(-50%, 0); }

/* Filter chips (credits by role) */
.fchip { border: .5px solid var(--line-strong); background: var(--surface); color: var(--fg-2); border-radius: 99px; padding: 5px 12px; font: 600 13px var(--sans, inherit); cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.fchip:hover { background: var(--surface-3); }
.fchip.on { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }

/* Any icon without a size of its own sits at text size (zero specificity, so every rule above still wins). */
:where(svg[aria-hidden="true"]) { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
:where(.list-item) > svg[aria-hidden="true"] { color: var(--faint); }

/* ---------- Motion ---------- */
:root { --spring: cubic-bezier(.32, .72, 0, 1); }
.page { view-transition-name: page; }
::view-transition-old(page) { animation: .18s var(--ease) both vt-out; }
::view-transition-new(page) { animation: .28s var(--spring) both vt-in; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.list-item[href]:active, a.card:active { transform: scale(.995); }
.list-item, a.card { transition: transform .15s var(--ease), background-color var(--t) var(--ease); }
.fade-in { animation: rise .32s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
/* The next page renders off-stage while the current one stays put (see route() in app.js). */
.view-stage { position: absolute !important; left: 0; top: 0; height: 100vh; overflow: hidden; visibility: hidden; pointer-events: none; contain: strict; view-transition-name: none !important; }
.public-inner { view-transition-name: page; }
::view-transition-group(page) { animation-duration: .3s; animation-timing-function: var(--spring); }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(page), ::view-transition-new(page) { animation: none; } }

/* ---------- Skeletons shaped like the page ---------- */
.sk-row { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-bottom: .5px solid var(--line-strong); }
.sk-row .skeleton { border-radius: 8px; }
.sk-art { width: 44px; height: 44px; flex: none; border-radius: 10px !important; }

/* ---------- Phone: bottom tab bar, tap targets, safe areas ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-top: .5px solid var(--line-strong); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; justify-content: center; color: var(--muted); font-size: 10.5px; font-weight: 600; border-radius: 10px; text-decoration: none; }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a.active { color: var(--accent-strong); }
  .page { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.topbar { padding-top: max(12px, env(safe-area-inset-top)); }
@media (pointer: coarse) {
  .btn, .input, select.input { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .btn-icon { min-width: 44px; }
  .fchip, .dc-role { min-height: 40px; }
}

/* ---------- Live name search (signed-out home) ---------- */
.live { text-align: left; margin-top: 14px; }
.live .card { overflow: hidden; }
.live-artist { display: flex; gap: 16px; align-items: center; padding: 18px 20px; flex-wrap: wrap; }
.live-artist .grow { flex: 1; min-width: 180px; }
.live-songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 4px 20px 20px; }
.live-song { color: inherit; text-decoration: none !important; min-width: 0; }
.live-song .art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; font-size: 22px; }
.live-song b, .live-song span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-song b { font-size: 13.5px; margin-top: 8px; }
.live-song span { font-size: 12px; color: var(--muted); }

/* ---------- "It's official" moment ---------- */
.official-back { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: fade .25s ease both; }
.official { width: min(440px, 100%); text-align: center; }
.official .seal { width: 112px; height: 112px; margin: 0 auto 18px; }
.official .seal circle, .official .seal path { fill: none; stroke: var(--accent-strong); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.official .seal .ring { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw .9s var(--spring) .1s forwards; }
.official .seal .tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s var(--spring) .75s forwards; stroke-width: 4; }
.official .cert { margin-top: 22px; text-align: left; animation: slide-up .55s var(--spring) 1s both; }
.official h2 { animation: rise .4s var(--spring) .6s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(40px) scale(.98); } }

/* ---------- Add to Home Screen hint (iOS Safari) ---------- */
.a2hs { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: .5px solid var(--line-strong); box-shadow: var(--shadow-lg); font-size: 13.5px; animation: slide-up .4s var(--spring) both; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Selected filter chips: the strong accent is too dark on the dark soft fill, so dark mode uses the light accent. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fchip.on { color: var(--accent); } }
:root[data-theme="dark"] .fchip.on { color: var(--accent); }

/* ---------- Redesign (24 Oct): calm, visual, aligned. 8px grid; four type sizes (title, heading, body, small);
   purple only for the primary action and the health ring; monospace only inside code chips. ---------- */
.quiet { color: var(--muted); }
.card-head h2 { display: inline-flex; align-items: center; gap: 6px; }
.info-tip { display: inline-flex; vertical-align: middle; color: var(--faint); text-decoration: none; border-radius: 50%; }
.info-tip svg { width: 15px; height: 15px; }
.info-tip:hover, .info-tip:focus-visible { color: var(--fg-2); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--fg); }

/* Song hero: big art over a soft blur of itself. */
.song-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; gap: 32px; padding: 32px; margin-bottom: 24px;
  border-radius: var(--r-lg); background: var(--surface); border: .5px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.song-hero::before { content: ""; position: absolute; inset: -60px; z-index: -1; background: var(--hero-art, var(--grad-soft)) center / cover no-repeat; filter: blur(56px) saturate(1.3); opacity: .38; }
.song-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface) 70%, transparent) 100%); }
.song-hero .art.xl { width: 200px; height: 200px; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.song-hero-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.song-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.02; overflow-wrap: anywhere; }
.hero-version { font-weight: 500; color: var(--muted); font-size: .55em; letter-spacing: -0.01em; }
.hero-artist { font-size: 1.15rem; font-weight: 600; }
.hero-artist a { color: var(--fg); text-decoration: none; }
.hero-artist a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-meta { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.btn-lg-icon { width: 48px; height: 48px; }
@media (max-width: 760px) {
  .song-hero { flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; gap: 16px; }
  .song-hero .art.xl { width: 220px; height: 220px; }
  .song-hero-txt { align-items: center; width: 100%; }
  .song-hero-txt .row { justify-content: center; }
}

/* Passport health: ring + tiles. */
.health { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; margin-bottom: 24px; }
.health-sum { display: flex; align-items: center; gap: 16px; }
.health-sum p { margin: 4px 0 0; font-size: 14px; }
.pring { --size: 88px; position: relative; width: var(--size); height: var(--size); flex: none; }
.pring svg, .dc-scope .pring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pring circle { fill: none; stroke-width: 9; }
.pring .track { stroke: var(--surface-3); }
.pring .fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s var(--spring, ease); }
.pring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.pring b { font: 700 26px var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pring small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 96px; padding: 16px 12px 12px;
  border-radius: var(--r); background: var(--surface-2); border: .5px solid var(--line); text-align: left; font: inherit; color: var(--fg); cursor: pointer;
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease); }
.tile:hover { background: var(--surface-3); }
.tile:active { transform: scale(.97); }
.tile-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--fg-2); box-shadow: inset 0 0 0 .5px var(--line-strong); }
.tile-ic svg { width: 17px; height: 17px; }
.tile-ic.lg { width: 48px; height: 48px; } .tile-ic.lg svg { width: 24px; height: 24px; }
.tile-name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.tile .sdot { position: absolute; top: 14px; right: 12px; }
.sdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--line-strong); }
.sdot.done { background: #22A559; } .sdot.check { background: #E8A100; } .sdot.unknown { background: var(--line-strong); } .sdot.na { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
@media (max-width: 1100px) { .health { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .health { padding: 16px; } }

/* Facts: one aligned two-column grid, the same label width in every card. */
.facts { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px 16px; margin: 0; padding: 24px; font-size: 15px; }
.facts dt { color: var(--muted); font-size: 14px; padding-top: 1px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
@media (max-width: 760px) { .facts { grid-template-columns: 112px minmax(0, 1fr); padding: 16px; gap: 12px; } }
.src { width: 18px; height: 18px; border: 0; padding: 0; border-radius: 50%; background: transparent; display: inline-grid; place-items: center; cursor: pointer; flex: none; position: relative; }
.src:not(.ok)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.src.ok { background: var(--ok-soft); color: var(--ok); }
.src.ok svg { width: 11px; height: 11px; stroke-width: 2.4; }
.src::after { content: ""; position: absolute; inset: -13px; }
.card-foot { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-top: .5px solid var(--line); font-size: 13px; color: var(--muted); }
.card-foot svg { width: 14px; height: 14px; }
.card-foot-btn { width: 100%; border: 0; border-top: .5px solid var(--line); background: none; padding: 12px; font: 600 14px var(--sans, inherit); color: var(--fg-2); cursor: pointer; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-foot-btn:hover { background: var(--surface-2); }

/* Codes: chips you tap to copy. */
.codes { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px; }
.codes .quiet { margin: 0; font-size: 14px; }
@media (max-width: 760px) { .codes { padding: 16px; } }
.codeitem { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.code-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 8px 12px; border-radius: 10px; border: .5px solid var(--line-strong); background: var(--surface-2); color: var(--fg); font: inherit; cursor: copy; transition: background-color var(--t) var(--ease); }
.code-chip:hover { background: var(--surface-3); }
.code-k { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.code-v { font: 500 13.5px var(--mono); overflow: hidden; text-overflow: ellipsis; }
.code-ok { color: var(--ok); display: inline-flex; } .code-ok svg { width: 14px; height: 14px; stroke-width: 2.2; }

/* People: avatar rows. */
.people { display: flex; flex-direction: column; padding: 8px 0; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px 24px; color: var(--fg); text-decoration: none; min-width: 0; }
a.person:hover { background: var(--surface-2); }
.person .avatar { width: 40px; height: 40px; font-size: 14px; }
.person-txt { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.person-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.verified svg { width: 10px; height: 10px; stroke-width: 2.6; }
@media (max-width: 760px) { .person { padding: 8px 16px; } }

/* The "…" menu. */
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 200px; padding: 6px; border-radius: 12px; background: var(--surface); border: .5px solid var(--line-strong); box-shadow: var(--shadow-lg); animation: pop .15s var(--ease); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; font: 500 14px var(--sans, inherit); color: var(--fg); text-align: left; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--surface-3); outline: none; }
.menu svg { width: 16px; height: 16px; color: var(--muted); }

/* Sheets opened from tiles. */
.sheet { display: flex; flex-direction: column; gap: 16px; }
.sheet p { margin: 0; line-height: 1.5; }
.sheet-top { display: flex; align-items: center; gap: 12px; }
.sheet-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sheet-links { display: flex; flex-wrap: wrap; gap: 8px; }
[hidden] { display: none !important; }
.split-main.solo { grid-template-columns: minmax(0, 1fr); }
.split-main { gap: 24px; }
.page-head .lede { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Cover grid: songs as artwork. */
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 24px 16px; padding: 24px; }
.cover { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--fg); text-decoration: none; }
.cover .art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; font-size: 28px; margin-bottom: 6px; transition: transform var(--t) var(--ease); }
.cover:hover .art { transform: scale(1.02); }
.cover-t { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.cover-t, .cover-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-t .sdot { width: 8px; height: 8px; }
.cover-s { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 16px 12px; } }

/* Get-started steps: three tiles in a row. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); color: var(--fg); text-decoration: none; background: var(--surface-2); }
.step.next { background: var(--accent-soft); }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line-strong); }
.step.next .step-n { background: var(--accent-strong); color: #fff; box-shadow: none; }
.step.done .step-n { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.step.done .step-n svg { width: 16px; height: 16px; stroke-width: 2.4; }
.step-t { font-weight: 600; font-size: 15px; }
.step.done .step-t { color: var(--muted); }
.step-s { font-size: 13px; color: var(--muted); }
.step.next .step-s { color: var(--accent-strong); font-weight: 600; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step { flex-direction: row; align-items: center; } .step-s { margin-left: auto; } }

/* Artist hero: same soft blur of the artwork as the song page. */
.dc-ahero { position: relative; isolation: isolate; overflow: hidden; background: none !important; }
.dc-ahero::before { content: ""; position: absolute; inset: -60px; z-index: -1; background: var(--hero-art, var(--grad-soft)) center / cover no-repeat; filter: blur(56px) saturate(1.3); opacity: .38; }
.dc-ahero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent)); }
/* Money check card: ring, one sentence, one number, bars. */
.wedge-main { display: flex; gap: 24px; align-items: center; min-width: 0; }
.wedge-big { font: 700 clamp(1.25rem, 1rem + 1vw, 1.6rem)/1.2 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.wedge-money b { font: 700 1.6rem var(--display); color: var(--crit); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
@media (max-width: 760px) { .wedge-main { flex-direction: column; align-items: flex-start; gap: 16px; } }
.list-item .sdot { width: 8px; height: 8px; }
/* Wallet fees: one number, two rows. */
.fees { display: flex; flex-direction: column; gap: 12px; }
.fees-big { display: flex; align-items: baseline; gap: 8px; }
.fees-big b { font: 700 2rem var(--display); letter-spacing: -0.03em; color: var(--money); }
.fees-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.fees-row span { display: inline-flex; align-items: center; gap: 6px; }
.fees-foot { display: flex; align-items: center; gap: 6px; font-size: 13px; }
@media (max-width: 760px) { .wl-hero .row.wrap { flex-wrap: nowrap; } .wl-hero .btn-lg { flex: 1; justify-content: center; padding-inline: 12px; } }
/* A to-do card: icon, two lines, whole card is the button. */
.todo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--fg); cursor: pointer; }
.todo .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.todo .quiet { font-size: 13px; }
.todo:hover { background: var(--surface-2); }
.split-main.side-only { grid-template-columns: minmax(0, 1fr); }
.split-main.side-only > .stack-lg:first-child { display: none; }
.split-main.side-only > .stack-lg:last-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
/* Tooltips take no room until shown, so they never widen the page. */
.term:not(:hover):not(:focus)::after { display: none; }
.sp-av { width: 28px; height: 28px; font-size: 11px; }

/* Lazy cover art and photos over their generated fallback */
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; opacity: 0; transition: opacity .35s var(--ease); }
.art > img.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .art > img { transition: none; } }
.cover-btn { position: relative; padding: 0; border: 0; background: none; border-radius: 16px; cursor: pointer; flex: none; }
.cover-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.photo-btn { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; flex: none; }
.photo-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.photo-add { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: var(--shadow); }

/* Not launched yet: the "Coming" pill in the sidebar and the early-access line on those screens. */
.soon { display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font: 650 10.5px/1.6 var(--sans); letter-spacing: .02em; text-transform: none; }
.soon-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-soft); color: var(--fg-2); font-size: 13.5px; }
.soon-bar .soon { margin: 0; background: var(--accent); color: var(--accent-ink); }
