/* NABZ UNRLSD — true black, flat surfaces, one gold accent on data and the playing state.
   Layout grid: sidebar 232px + canvas with 40px gutters (24px under 1100px, 16px on phones).
   Type scale: 12 / 14 / 16 / 24, plus the display serif for the wordmark and song titles. */

:root {
  --ground: #000000;
  --surface: #0d0d0e;
  --raised: #161618;
  --active: #202022;
  --border: #1c1c1e;
  --rule: #151517;
  --control: #3a3a3c;
  --text: #f5f5f7;
  --muted: #b4b4b4;
  --faint: #949494;
  --primary: #f5f5f7;
  --accent: #c9a96e;
  --accent-ink: #0b0b0b;
  --negative: #e5566f;
  --positive: #3fc07a;
  --grid: #232325;
  --chart-1: #c9a96e;
  --chart-muted: #3a3a3c;
  --chart-span: .12;
  --axis-ink: #949494;
  --ink: #f5f5f7;

  /* tiers: one hue, from full gold down to stone */
  --tier-S: #c9a96e; --tier-A: #a99272; --tier-B: #807666; --tier-C: #5e5953; --tier-D: #46433f;

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --fs-title: 24px; --fs-section: 16px; --fs-body: 14px; --fs-small: 12px;
  --radius-card: 14px; --radius-control: 999px; --radius-cover: 6px;
  --gap: 16px; --pad: 40px;
  --sidebar: 232px; --player: 80px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.55, 0, .7, .2);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--text); }
body { font: 400 var(--fs-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* Bodoni at display size has hairlines that vanish on screens. A small optical size and a
   heavier weight keep the same face with strokes that stay visible. */
.wordmark b, .auth-art h1, .hero-now h2, .song-left h1, .tier-row .lab, .story-body p:first-child::first-letter {
  font-optical-sizing: none; font-variation-settings: "opsz" 14; font-weight: 500; -webkit-font-smoothing: auto; }
.auth-art h1, .song-left h1, .hero-now h2 { letter-spacing: -.025em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 16px; height: 16px; }
svg.i.l { width: 22px; height: 22px; }
svg.i.fill { fill: currentColor; stroke: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: var(--radius-control);
  font-weight: 500; font-size: 14px; white-space: nowrap; transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s, opacity .25s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: #000; }
.btn.primary:hover { background: #fff; }
.btn.gold { background: var(--accent); color: var(--accent-ink); }
.btn.gold:hover { background: #d6b77d; }
.btn.ghost { border: 1px solid var(--control); color: var(--text); }
.btn.ghost:hover { border-color: #5a5a5c; background: var(--raised); }
.btn.quiet { color: var(--muted); padding: 0 12px; }
.btn.quiet:hover { color: var(--text); background: var(--raised); }
.btn.danger { color: var(--negative); border: 1px solid #3a2228; }
.btn.danger:hover { background: #2c1a20; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); transition: color .2s, background-color .2s, transform .35s var(--ease); }
.icon-btn:hover { color: var(--text); background: var(--raised); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.on { color: var(--accent); }

.field { display: grid; gap: 6px; }
.field label, .label { font-size: 12px; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--faint); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--control);
  outline: 0; transition: border-color .2s, background-color .2s; }
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input:hover, .select:hover, .textarea:hover { border-color: #4a4a4c; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); background: #0f0f10; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23949494' stroke-width='1.6'%3E%3Cpath d='M2 4.5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { padding-left: 40px; border-radius: 999px; background: var(--surface); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.seg button { position: relative; z-index: 1; height: 30px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .3s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: #000; }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 999px; background: var(--text); transition: transform .5s var(--ease), width .5s var(--ease); }

.switch { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--control); transition: background-color .3s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--raised); color: var(--muted); white-space: nowrap; }
.pill.gold { background: #2a2418; color: var(--accent); }
.pill.warn { background: #2a2418; color: #e2c48c; }
.pill.neg { background: #2c1a20; color: var(--negative); }
.pill.pos { background: #172a1d; color: var(--positive); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-art { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: var(--ground); }
.auth-art .wordmark { font-size: 15px; }
.auth-art h1 { font: 400 clamp(56px, 7.4vw, 120px)/.92 var(--serif); letter-spacing: -.03em; max-width: 9ch; }
.auth-art .lede { margin-top: 28px; max-width: 30rem; font-size: 18px; line-height: 1.55; color: var(--text); }
.auth-art .foot { color: var(--faint); font-size: 12px; display: flex; gap: 24px; }
.wave { display: block; width: calc(100% + 96px); margin: 0 -48px; height: clamp(90px, 16vh, 160px); }
.wave rect { fill: var(--raised); transform-box: fill-box; transform-origin: center; }
.wave rect.hot { fill: var(--accent); }
.auth-form { display: grid; place-items: center; padding: 48px; background: var(--surface); }
.auth-card { width: min(400px, 100%); display: grid; gap: 22px; }
.auth-card h2 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.auth-card p.sub { color: var(--muted); margin-top: 6px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card .btn { height: 46px; }
.auth-switch { color: var(--muted); font-size: 13px; }
.auth-switch button { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--control); }
.auth-switch button:hover { text-decoration-color: var(--text); }
.form-error { color: var(--negative); font-size: 13px; min-height: 20px; }
.done { display: grid; gap: 14px; }
.done .tick { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #000; }

/* ---------- shell ---------- */
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; }
.wordmark b { font: 500 24px/1 var(--serif); letter-spacing: .02em; }
.wordmark span { font-size: 10px; letter-spacing: .32em; color: var(--accent); font-weight: 500; }
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 28px 16px calc(var(--player) + 20px); display: flex; flex-direction: column; gap: 28px; border-right: 1px solid var(--border); }
.side .wordmark { padding: 0 12px; }
.nav { display: grid; gap: 2px; }
.nav .group { font-size: 12px; color: var(--faint); padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--raised); }
.nav a .count { margin-left: auto; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #000; display: grid; place-items: center; font-weight: 600; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; transition: background-color .2s; }
.side .me:hover { background: var(--raised); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--active); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text); flex: none; }
.avatar.gold { background: var(--accent); color: #000; }
.side .me .who { min-width: 0; line-height: 1.3; }
.side .me .who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .me .who small { color: var(--faint); font-size: 12px; }

.main { min-width: 0; padding: 0 var(--pad) calc(var(--player) + 64px); }
.view { max-width: 1320px; margin: 0 auto; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 40px 0 24px; flex-wrap: wrap; }
.title-row h1 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -.015em; }
.title-row .sub { color: var(--muted); margin-top: 4px; }
.title-row .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar .search { flex: 1 1 240px; max-width: 340px; }
.toolbar .spacer { flex: 1; }
.toolbar .select { width: auto; height: 38px; border-radius: 999px; }

/* ---------- library ---------- */
.hero-now { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; padding: 32px; margin: 8px 0 40px; border-radius: 20px; background: var(--hero, var(--surface)); overflow: hidden; position: relative; }
.hero-now .cover { width: 184px; }
.hero-now h2 { font: 400 clamp(36px, 4.4vw, 60px)/1 var(--serif); letter-spacing: -.02em; margin: 8px 0 12px; }
.hero-now .meta { color: var(--muted); }
.hero-now .row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-now .kicker { color: var(--accent); font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 32px 24px; }
.card { position: relative; display: grid; gap: 12px; }
.cover { position: relative; aspect-ratio: 1; border-radius: var(--radius-cover); overflow: hidden; background: var(--raised); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter .6s; }
.card:hover .cover img { transform: scale(1.045); }
.cover .blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); }
.card .play-fab { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center;
  opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .35s var(--ease), transform .5s var(--ease); box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); }
.card:hover .play-fab, .card:focus-within .play-fab, .card.playing .play-fab { opacity: 1; transform: none; }
.card .play-fab:hover { transform: scale(1.06) !important; }
.card .t { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card .t a { font-weight: 500; font-size: 15px; line-height: 1.35; }
.card .t a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--control); }
.card .m { color: var(--faint); font-size: 13px; display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.card .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.card .badges .pill { background: rgba(0,0,0,.72); color: var(--text); }
.card .badges .pill.new { background: var(--accent); color: #000; }
.tier-chip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-weight: 600; font-size: 12px; color: #000; flex: none; }
.tier-chip.none { background: transparent; color: var(--faint); border: 1px dashed var(--control); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; height: 100%; background: var(--accent); transform-origin: bottom; animation: eq 1s var(--ease) infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; } .eq i:nth-child(4) { animation-delay: -.2s; }
.eq.paused i { animation-play-state: paused; transform: scaleY(.3); }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.list { display: grid; }
.list .row { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) 120px 72px 60px 40px; gap: 16px; align-items: center; padding: 10px 12px; border-radius: 10px; transition: background-color .2s; }
.list .row:hover { background: var(--surface); }
.list .row.head { color: var(--faint); font-size: 12px; padding-top: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: 6px; }
.list .row.head:hover { background: none; }
.list .row .idx { color: var(--faint); text-align: right; }
.list .row .cv { width: 48px; height: 48px; border-radius: 4px; overflow: hidden; background: var(--raised); }
.list .row .cv img { width: 100%; height: 100%; object-fit: cover; }
.list .row .nm b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .row .nm small { color: var(--faint); }
.list .row.playing .nm b { color: var(--accent); }
.list .row .r { text-align: right; color: var(--muted); }

.empty { padding: 72px 24px; text-align: center; border: 1px dashed var(--control); border-radius: var(--radius-card); color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty h3 { color: var(--text); font-weight: 500; font-size: 16px; }

/* ---------- song page ---------- */
.song { position: relative; }
.song-field { position: absolute; left: calc(var(--pad) * -1); right: calc(var(--pad) * -1); top: 0; height: 520px; background: var(--field, #111); opacity: .55; z-index: -1; transition: background-color .8s; }
.song-field::after { content: ""; position: absolute; inset: auto 0 0 0; height: 260px; background: var(--ground); opacity: .0; }
.song-grid { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); gap: 72px; padding-top: 48px; align-items: start; }
.song-left { position: sticky; top: 40px; display: grid; gap: 22px; }
.song-left .cover { border-radius: 8px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.song-left h1 { font: 400 clamp(36px, 3.6vw, 52px)/1.02 var(--serif); letter-spacing: -.02em; }
.song-left .meta { color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.song-left .controls { display: flex; gap: 10px; align-items: center; }
.big-play { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; transition: transform .45s var(--ease), background-color .2s; }
.big-play:hover { transform: scale(1.05); background: #d6b77d; }
.big-play:active { transform: scale(.95); }
.rate { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius-card); background: var(--surface); }
.rate .label { display: flex; justify-content: space-between; }
.tier-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tier-pick button { height: 44px; border-radius: 10px; background: var(--raised); color: var(--muted); font-weight: 600; font-size: 16px; transition: transform .45s var(--ease), background-color .3s, color .3s; }
.tier-pick button:hover { color: var(--text); background: var(--active); }
.tier-pick button[aria-pressed="true"] { color: #000; transform: translateY(-2px); }
.about { color: var(--muted); display: grid; gap: 10px; }
.about p { color: var(--text); line-height: 1.6; }
.song-right { min-width: 0; padding-bottom: 40px; }
.song-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; position: sticky; top: 0; background: var(--ground); z-index: 3; padding-top: 12px; }
.song-tabs button { height: 44px; color: var(--faint); font-weight: 500; position: relative; transition: color .2s; }
.song-tabs button:hover { color: var(--text); }
.song-tabs button[aria-selected="true"] { color: var(--text); }
.song-tabs .bar { position: absolute; bottom: -1px; height: 2px; background: var(--accent); left: 0; transition: transform .5s var(--ease), width .5s var(--ease); }
.lyrics { display: grid; gap: 4px; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: -.015em; }
.lyrics .ln { color: var(--text); opacity: .92; transition: opacity .4s, color .4s; }
.lyrics:hover .ln { opacity: .4; }
.lyrics .ln:hover { opacity: 1; }
.lyrics .gap { height: 28px; }
.lyrics-empty { color: var(--faint); font-size: 16px; }

.composer { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-card); background: var(--surface); margin-bottom: 28px; }
.composer .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.composer .textarea { background: var(--raised); border-color: transparent; min-height: 84px; }
.composer .textarea:focus { border-color: var(--accent); }
.stamp { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.stamp input { accent-color: var(--accent); width: 16px; height: 16px; }
.comments { display: grid; }
.comment { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.comment .hd { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comment .hd b { font-weight: 500; }
.comment .hd small { color: var(--faint); font-size: 12px; }
.comment p { margin-top: 4px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ts { color: var(--accent); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ts:hover { text-decoration: underline; }

/* ---------- tier list ---------- */
.tiers { display: grid; gap: 8px; }
.tier-row { display: grid; grid-template-columns: 148px 1fr; min-height: 96px; border-radius: var(--radius-card); background: var(--surface); overflow: hidden; transition: background-color .25s; }
.tier-row.over { background: var(--raised); }
.tier-row .lab { display: grid; place-items: center; text-align: center; padding: 10px 12px; font: 500 40px/1 var(--serif); }
.tier-row .lab small { display: block; font: 600 12px/1.3 var(--font); letter-spacing: 0; margin-top: 8px; text-align: center; }
.drop { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; align-content: center; min-height: 96px; }
.drop .hint { color: var(--faint); font-size: 13px; align-self: center; padding-left: 6px; }
.chip { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 14px 0 8px; border-radius: 10px; background: var(--raised); cursor: grab; user-select: none; touch-action: none;
  transition: background-color .2s, box-shadow .3s, opacity .2s; max-width: 260px; }
.chip:hover { background: var(--active); }
.chip img, .chip .ph { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; flex: none; background: var(--active); }
.chip span { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.ghost { opacity: .25; }
.chip.static { cursor: pointer; }
.tiers.read .tier-row, .tiers.read .drop { min-height: 76px; }
.tiers.read .chip { height: 56px; }
.tiers.read .chip img, .tiers.read .chip .ph { width: 40px; height: 40px; }
.chip.lifted { position: fixed; z-index: 100; pointer-events: none; cursor: grabbing; box-shadow: 0 24px 48px -12px rgba(0,0,0,.9); background: var(--active); transform: rotate(-2deg) scale(1.04); transition: transform .25s var(--ease), box-shadow .3s; }
.tray { margin-top: 28px; }
.tray h2 { font-size: 16px; font-weight: 500; margin-bottom: 12px; display: flex; justify-content: space-between; }
.tray .drop { border-radius: var(--radius-card); border: 1px dashed var(--control); min-height: 88px; }
.save-state { color: var(--faint); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- profile, panels, tables ---------- */
.panel { background: var(--surface); border-radius: var(--radius-card); padding: 24px; min-width: 0; }
.panel > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.panel > header h2 { font-size: var(--fs-section); font-weight: 500; }
.panel > header .note { color: var(--faint); font-size: 12px; }
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.kpis { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); background: var(--surface); border-radius: var(--radius-card); margin-bottom: var(--gap); }
.kpi { padding: 20px 24px; display: grid; gap: 6px; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi b { font-size: 26px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 14px; color: var(--faint); font-weight: 400; margin-left: 3px; letter-spacing: 0; }
.kpi .d { font-size: 12px; color: var(--faint); }
.kpi.lead b { font-size: 34px; color: var(--accent); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { font-weight: 400; font-size: 12px; color: var(--faint); text-align: left; padding: 0 12px 10px; white-space: nowrap; }
.table th button { color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.table th button:hover, .table th button[aria-sort] { color: var(--text); }
.table td { padding: 12px; border-top: 1px solid var(--rule); vertical-align: middle; }
.table tr.click { cursor: pointer; transition: background-color .15s; }
.table tr.click:hover td { background: var(--raised); }
.table .num { text-align: right; }
.table .song-cell { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.table .song-cell img, .table .song-cell .ph { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; background: var(--raised); flex: none; }
.table .song-cell b { font-weight: 500; }
.table-wrap { overflow-x: auto; margin: 0 -12px; }
.dash { color: var(--faint); }

.stack { display: flex; height: 10px; border-radius: 2px; overflow: hidden; background: var(--raised); min-width: 120px; }
.stack i { display: block; height: 100%; }
.tier-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.tier-legend span { display: inline-flex; gap: 6px; align-items: center; }
.tier-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.heat { border-collapse: separate; border-spacing: 3px; font-size: 12px; width: 100%; }
.heat th { font-weight: 400; color: var(--faint); padding: 4px 6px; white-space: nowrap; text-align: left; }
.heat thead th { text-align: center; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.heat td { text-align: center; height: 34px; min-width: 44px; border-radius: 4px; font-variant-numeric: tabular-nums; color: var(--text); }
.heat td.z { color: var(--faint); }

.feed { display: grid; }
.feed .it { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.feed .it:first-child { border-top: 0; padding-top: 0; }
.feed .it p { color: var(--muted); grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .it small { color: var(--faint); }

.rank { display: grid; }
.rank .r { display: grid; grid-template-columns: 24px 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.rank .r:first-child { border-top: 0; }
.rank .r .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.rank .r:first-child .n { color: var(--accent); }
.rank img, .rank .ph { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--raised); }
.rank b { font-weight: 500; }
.rank small { color: var(--faint); display: block; }

/* ---------- admin forms ---------- */
.editor { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.editor .side-col { position: sticky; top: 24px; display: grid; gap: 16px; }
.drop-zone { position: relative; display: grid; place-items: center; text-align: center; gap: 8px; padding: 24px; border-radius: var(--radius-card); border: 1px dashed var(--control); color: var(--muted); cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop-zone:hover, .drop-zone.over { border-color: var(--accent); background: var(--surface); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone.cover-zone { aspect-ratio: 1; padding: 0; overflow: hidden; }
.drop-zone.cover-zone img { width: 100%; height: 100%; object-fit: cover; }
.drop-zone b { color: var(--text); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.progress { height: 3px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.audio-file { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-card); background: var(--surface); }
.audio-file .nm { flex: 1; min-width: 0; }
.audio-file .nm b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-file .nm small { color: var(--faint); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--surface); }
.toggle-row small { display: block; color: var(--faint); }

.user-row { display: grid; grid-template-columns: 36px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.user-row:first-child { border-top: 0; }
.user-row .who b { font-weight: 500; display: block; }
.user-row .who small { color: var(--faint); }
.user-row .note { color: var(--muted); font-size: 13px; }
.user-row .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.invite-link { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--raised); font-size: 12px; color: var(--muted); max-width: 520px; }
.invite-link code { font: inherit; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mini-tiers { display: grid; gap: 6px; }
.mini-tiers .t { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; }
.mini-tiers .t .tier-chip { width: 32px; height: 32px; font-size: 14px; }
.mini-tiers .songs { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tiers .songs span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--raised); }
.mini-tiers .songs em { color: var(--faint); font-style: normal; font-size: 13px; }

/* ---------- dialog ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 16px; }
.dialog { width: min(440px, 100%); background: var(--surface); border-radius: 18px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.9); }
.dialog h2 { font-size: 20px; font-weight: 500; }
.dialog .acts { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- player ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--player); background: var(--surface); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 0 20px;
  transform: translateY(100%); transition: transform .7s var(--ease); }
.player.on { transform: none; }
.p-now { display: flex; align-items: center; gap: 14px; min-width: 0; }
.p-now .cv { width: 52px; height: 52px; border-radius: 4px; overflow: hidden; background: var(--raised); flex: none; }
.p-now .cv img { width: 100%; height: 100%; object-fit: cover; }
.p-now .tx { min-width: 0; }
.p-now .tx a { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-now .tx a:hover { text-decoration: underline; text-underline-offset: 3px; }
.p-now .tx small { color: var(--faint); font-size: 12px; }
.p-mid { display: grid; gap: 4px; justify-items: center; }
.p-ctl { display: flex; align-items: center; gap: 10px; }
.p-ctl .pp { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: #000; display: grid; place-items: center; transition: transform .35s var(--ease); }
.p-ctl .pp:hover { transform: scale(1.06); }
.p-ctl .pp:active { transform: scale(.94); }
.p-seek { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; width: 100%; font-size: 11px; color: var(--faint); }
.p-seek span:last-child { text-align: left; }
.p-seek span:first-child { text-align: right; }
.range { --v: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 14px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--text) var(--v), var(--control) var(--v)); } /* taste-skill-ignore: a two-stop hard edge, the slider's fill, not a fade */
.range::-moz-range-track { height: 3px; border-radius: 2px; background: var(--control); }
.range::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--text); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; margin-top: -4.5px; opacity: 0; transition: opacity .2s; }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { opacity: 1; }
.range:hover::-moz-range-thumb { opacity: 1; }
.range:hover::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--accent) var(--v), var(--control) var(--v)); } /* taste-skill-ignore: slider fill */
.p-right { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.p-right .range { width: 110px; }
.p-mobile-bar { display: none; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--player) + 20px); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--text); color: #000; padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 13px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.8); }

/* ---------- motion ---------- */
.rise { animation: rise 1.05s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade { animation: fade .6s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.pop { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
::view-transition-group(cover) { animation-duration: .8s; animation-timing-function: var(--ease); }
.skeleton { background: var(--surface); border-radius: var(--radius-card); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- studio on phones ---------- */
.nav .studio-link, .studio-strip { display: none; }

/* ---------- inspire ---------- */
.inspire { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.inspire-form { display: grid; gap: 20px; }
.inspire-form .seg { align-self: start; justify-self: start; }
.inspire-form .seg button { display: inline-flex; gap: 6px; align-items: center; }
.recorder { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: var(--radius-card); background: var(--raised); }
.rec-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; transition: transform .5s var(--ease), background-color .3s; }
.rec-btn:hover { transform: scale(1.05); }
.rec-btn:active { transform: scale(.95); }
.recorder.live .rec-btn { background: var(--negative); color: #fff; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 10px rgba(229, 86, 111, .14); } }
.rec-main { display: grid; gap: 8px; min-width: 0; }
.rec-wave { width: 100%; height: 48px; display: block; }
.rec-meta { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.rec-meta [data-hint] { flex: 1; }
.memo-ready { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-card); background: var(--raised); }
.memo-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.memo-acts .faint { flex: 1; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memo-player { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.memo-player .memo-pp { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: #000; display: grid; place-items: center; transition: transform .4s var(--ease); }
.memo-player .memo-pp:hover { transform: scale(1.06); }
.memo-player [data-t] { font-size: 12px; white-space: nowrap; }
.memo-player.big { grid-template-columns: 52px 1fr auto; }
.memo-player.big .memo-pp { width: 52px; height: 52px; background: var(--accent); }
.send-row { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
.send-row .progress { flex: 1; }
.sent-item { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--rule); justify-items: start; }
.sent-item:first-child { border-top: 0; padding-top: 0; }
.sent-item .hd { display: flex; gap: 10px; align-items: center; justify-content: space-between; width: 100%; }
.sent-item .hd b { font-weight: 500; }
.sent-item p { color: var(--muted); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sent-item .memo-player { width: 100%; }
.sent-item .btn { margin-left: -12px; }

/* ---------- admin inbox, comment groups, emails ---------- */
.inbox { display: grid; }
.inbox-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; padding: 16px 12px; margin: 0 -12px; border-radius: 12px; align-items: start; transition: background-color .25s; }
.inbox-row:hover { background: var(--raised); }
.inbox-row + .inbox-row { border-top: 1px solid var(--rule); }
.ib-main { display: grid; gap: 2px; min-width: 0; }
.ib-top { display: flex; gap: 8px; align-items: center; }
.ib-top b { font-weight: 500; }
.inbox-row.unread .ib-top b, .inbox-row.unread .ib-title { font-weight: 600; color: var(--text); }
.ib-title { font-weight: 500; }
.ib-title:empty { display: none; }
.ib-body { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-side { display: grid; gap: 6px; justify-items: end; }
.ib-side .pill { gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.inspo-read { display: grid; gap: var(--gap); max-width: 820px; }
.story-body { display: grid; gap: 18px; font-size: 18px; line-height: 1.7; max-width: 64ch; }
.story-body p:first-child::first-letter { font-family: var(--serif); font-size: 3.2em; float: left; line-height: .9; margin: 6px 10px 0 0; color: var(--accent); }

.cgroups { display: grid; gap: 10px; }
.cgroup { background: var(--surface); border-radius: var(--radius-card); overflow: hidden; }
.cg-head { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 20px; gap: 16px; align-items: center; padding: 14px 20px 14px 14px; text-align: left; transition: background-color .25s; }
.cg-head:hover { background: var(--raised); }
.cg-head img, .cg-head .ph { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; background: var(--raised); }
.cg-t { display: grid; min-width: 0; }
.cg-t b { font-weight: 500; font-size: 15px; }
.cg-t small { color: var(--faint); }
.cg-who { display: flex; }
.cg-who .avatar { width: 28px; height: 28px; font-size: 10px; border: 2px solid var(--surface); margin-left: -8px; }
.cg-head > svg { color: var(--faint); transition: transform .5s var(--ease); }
.cgroup.open .cg-head > svg { transform: rotate(180deg); }
.cg-body { overflow: hidden; height: 0; }
.cgroup.open .cg-body { height: auto; }
.cg-body .comments { padding: 0 20px 6px 76px; }
.cg-body .comment:last-child { border-bottom: 0; }

.mail-panel { margin-bottom: var(--gap); display: grid; gap: 12px; }
.mail-panel .toggle-row > span:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.mail-panel .toggle-row small { grid-column: 2; }
.mail-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.subs { display: flex; flex-wrap: wrap; gap: 8px; }
.subs span { padding: 6px 12px; border-radius: 999px; background: var(--raised); font-size: 13px; color: var(--muted); }
.subs b { color: var(--text); font-weight: 500; margin-right: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad: 24px; --sidebar: 76px; }
  .side { padding-left: 12px; padding-right: 12px; align-items: center; }
  .side .wordmark span, .nav a span, .nav .group, .side .me .who { display: none; }
  .side .wordmark { padding: 0; }
  .nav a { width: 44px; justify-content: center; padding: 0; position: relative; }
  .nav a .count { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .song-grid { gap: 40px; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); }
  .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .editor { grid-template-columns: 240px 1fr; }
  .p-right .range { display: none; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; --player: 64px; }
  .nav .group, .nav .group ~ a:not(.studio-link) { display: none; }
  .nav .studio-link { display: flex; }
  .shell.in-studio .studio-strip { display: flex; position: sticky; top: 0; z-index: 20; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--pad); margin: 0; background: var(--ground); border-bottom: 1px solid var(--border); grid-row: 1; }
  .shell.in-studio .studio-strip a { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); font-weight: 500; font-size: 13px; background: var(--surface); transition: background-color .3s, color .3s; }
  .shell.in-studio .studio-strip a[aria-current] { background: var(--text); color: #000; }
  .shell.in-studio .main { grid-row: 2; }
  .inspire { grid-template-columns: 1fr; }
  .recorder { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rec-main { width: 100%; }
  .rec-meta [data-hint] { font-size: 12px; }
  .tier-row { grid-template-columns: 96px 1fr; }
  .tier-row .lab { padding: 8px 6px; }
  .tier-row .lab small { font-size: 11px; }
  .song-left h1 { font-size: 40px; }
  .hero-now h2 { font-size: 40px; }
  .cg-head { grid-template-columns: 40px minmax(0, 1fr) 20px; padding: 12px; gap: 12px; }
  .cg-head img, .cg-head .ph { width: 40px; height: 40px; }
  .cg-who { display: none; }
  .cg-body .comments { padding: 0 12px 6px; }
  .comment { grid-template-columns: 32px 1fr 32px; gap: 10px; }
  .inbox-row { grid-template-columns: 32px minmax(0, 1fr); }
  .ib-side { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .story-body { font-size: 16px; }
  .title-row .actions { width: 100%; }
  .table-wrap { margin: 0 -12px; padding: 0 12px; }
  .dialog { padding: 22px; }
  .dialog .acts { flex-direction: column-reverse; }
  .dialog .acts .btn { width: 100%; height: 44px; }
  .auth-card .btn { height: 50px; }
  .input, .select { height: 46px; font-size: 16px; }
  .textarea { font-size: 16px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 52vh; padding: 24px 16px; }
  .auth-art h1 { font-size: clamp(48px, 15vw, 72px); }
  .auth-art .lede { font-size: 16px; margin-top: 16px; }
  .auth-art .foot { display: none; }
  .auth-form { padding: 32px 16px 48px; place-items: start center; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; inset: auto 0 0 0; height: 60px; padding: 0 8px env(safe-area-inset-bottom); flex-direction: row; border-right: 0; border-top: 1px solid var(--border); background: var(--surface); gap: 0; }
  .side .wordmark, .side .me, .nav .group { display: none; }
  .nav { display: flex; width: 100%; justify-content: space-around; overflow-x: auto; }
  .nav a { width: 48px; height: 48px; }
  .main { padding-bottom: calc(60px + var(--player) + 48px); }
  .player { bottom: 60px; grid-template-columns: 1fr auto; padding: 0 8px 0 8px; gap: 8px; border-radius: 0; }
  .p-mid .p-seek, .p-right, .p-ctl .prev, .p-ctl .next { display: none; }
  .p-now .cv { width: 44px; height: 44px; }
  .p-mobile-bar { display: block; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--raised); }
  .p-mobile-bar i { display: block; height: 100%; background: var(--accent); width: 0; }
  .toasts { bottom: calc(60px + var(--player) + 16px); }
  .title-row { padding-top: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .card .play-fab { opacity: 1; transform: none; width: 40px; height: 40px; right: 8px; bottom: 8px; }
  .hero-now { grid-template-columns: 1fr; padding: 20px; }
  .hero-now .cover { width: 120px; }
  .list .row { grid-template-columns: 44px minmax(0, 1fr) 28px 40px; }
  .list .row .idx, .list .row .h-st, .list .row .h-du { display: none; }
  .song-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .song-left { position: static; }
  .song-left .cover { width: min(100%, 360px); margin: 0 auto; }
  .tier-row .lab { font-size: 30px; }
  .chip { height: 52px; max-width: 100%; }
  .chip img, .chip .ph { width: 38px; height: 38px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-left: 0 !important; border-top: 1px solid var(--border); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--border) !important; }
  .editor, .form-grid { grid-template-columns: 1fr; }
  .editor .side-col { position: static; }
  .user-row { grid-template-columns: 36px 1fr; }
  .user-row .note, .user-row .acts { grid-column: 2; justify-content: flex-start; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.nav a .count[hidden] { display: none; }
[hidden] { display: none !important; }
.dlg-tip { display: block; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--raised); color: var(--muted); font-size: 13px; line-height: 1.5; }
.dlg-tip b { color: var(--text); font-weight: 500; }
