/* Childhood Dreams — light "paper" design system.
   White background, near-black text, soft grey borders, black primary buttons.
   Not a single gradient backdrop: body::before is one fixed pseudo-element with a
   slow CSS transform/opacity drift. It switches itself off for reduced-motion,
   Save-Data and low-end devices (html.fx-off, set by the tiny inline script in
   app/layout.js — no JS animation, no canvas, no blur).
   Every visual token is a CSS variable; the admin theme editor overrides the same
   variables server-side via app/layout.js. Class names are stable, so existing
   pages keep working without changes. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #333333; /* was --muted-strong; kept for compat */
  --muted: #666666;
  --line: #e5e5e5;
  --line-strong: #c8c8c8;
  --soft: #f5f5f5;

  --accent: #000000;
  --accent-ink: #000000;
  --accent-soft: #f4f4f4;
  --accent-border: #d4d4d4;

  --ok: #111111; --ok-bg: #f4f4f4;
  --warn: #333333; --warn-bg: #ededed;
  --bad: #000000; --bad-bg: #e8e8e8;
  --up-fg: var(--ok); --up-bg: var(--ok-bg);
  --down-fg: var(--bad); --down-bg: var(--bad-bg);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: var(--font-display); --font-sans: var(--font-body);
  --r: 12px;
  --gutter: 24px; --head: 54px; --side: 272px;
  --shadow: 0 1px 2px rgba(16, 16, 20, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: hidden; }
body {
  min-height: 100vh; min-height: 100dvh; color: var(--ink);
  font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  background: var(--bg);
}
* { -webkit-tap-highlight-color: transparent; }

/* ---- the one decorative animation: a slow, subtle white→light grey/silver drift ---- */
/* phones: no big fixed gradient layer (it makes scrolling and taps feel heavy) */
@media (max-width: 899px) { body::before { display: none; } }
body::before {
  content: ""; position: fixed; inset: -30%; z-index: -1; pointer-events: none; contain: strict;
  background:
    radial-gradient(55% 55% at 28% 28%, var(--soft) 0%, transparent 70%),
    radial-gradient(50% 50% at 72% 62%, color-mix(in srgb, var(--line) 55%, transparent) 0%, transparent 70%),
    var(--bg);
  opacity: .85;
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  body:not(.grad-off):not(.fx-off)::before {
    animation: grad-drift var(--grad-speed, 64s) ease-in-out infinite alternate;
  }
}
@keyframes grad-drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .8; }
  50%  { transform: translate3d(1.5%, -1.5%, 0) scale(1.03); opacity: 1; }
  to   { transform: translate3d(-1.5%, 1%, 0) scale(1.05); opacity: .92; }
}
html.fx-off body::before, body.grad-off::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ink); color: #fff; }
.serif { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.sans { font-family: var(--font-body); font-weight: 600; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.tiny { font-size: .72rem; }
.up { font-weight: 600; font-size: .72rem; color: var(--muted); }

/* one-way text-fit helpers (audit: long IDs / emails / titles) */
.ellip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; white-space: normal; }

@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes skel { to { background-position: -200% 0; } }
@keyframes drawer-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
.page-in { animation: fade .18s ease backwards; }

/* ---------------- shell: sidebar, top bar, drawer ---------------- */
.side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--side); z-index: 50;
  background: var(--bg); border-right: 1px solid var(--line);
  padding: 16px 12px 14px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
}
.side-top, .drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 16px; min-height: 52px; }
.logo { display: block; height: 46px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
a.nav, button.nav {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-weight: 500; font-size: .84rem; line-height: 1.2; min-height: 40px; cursor: pointer; text-align: left;
  transition: background-color .15s ease, color .15s ease;
}
a.nav .ico, button.nav .ico { flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
a.nav .lbl, button.nav .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.nav:hover, button.nav:hover { background: var(--soft); color: var(--ink); }
a.nav.on { background: var(--soft); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--ink); }
a.nav.sub { padding-left: 38px; min-height: 36px; font-size: .8rem; }
.caret { margin-left: auto; transition: transform .15s ease; }
.caret.open { transform: rotate(180deg); }
.side .sect, .drawer .sect { padding: 16px 12px 6px; font-size: .7rem; font-weight: 600; color: var(--muted); opacity: .85; }
.side .grow { flex: 1; min-height: 12px; }

.topbar {
  position: sticky; top: 12px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--head); padding: 0 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); box-shadow: var(--shadow);
}
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar h2 { font-size: .95rem; font-weight: 600; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; flex: none; position: relative; }
.iconbtn:hover { background: var(--soft); color: var(--ink); }
.dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--bg); }
.avatar {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; overflow: hidden;
  background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; border: 0; cursor: pointer; flex: none;
  padding: 0; -webkit-appearance: none; appearance: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 34px; height: 34px; font-size: .78rem; }
.pop-wrap { position: relative; }
.pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; z-index: 90; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg); box-shadow: 0 12px 28px rgba(16, 16, 20, .12); animation: fade .12s ease;
}
.pop a, .pop button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: .8rem; cursor: pointer; text-align: left; min-height: 38px; }
.pop a:hover, .pop button:hover { background: var(--soft); }
.pop .danger { color: var(--bad); }
.pop-note { padding: 8px 10px; font-size: .74rem; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-wrap: anywhere; }
.pop-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.pop .pfrow { padding: 4px 10px 2px; }
.pop .pfrow .hint { display: block; margin-top: 2px; }

.main { margin-left: var(--side); padding: 12px var(--gutter) 90px; min-height: 100vh; max-width: 1560px; }
.main.has-mini { padding-bottom: 110px; }
.plain { padding: 44px var(--gutter) 60px; max-width: 1100px; margin: 0 auto; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: .8rem; }
.skip:focus { left: 8px; }

/* mobile drawer (slide-over panel) */
.drawer-back { position: fixed; inset: 0; z-index: 100; background: rgba(16, 16, 20, .32); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.drawer-back.open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.drawer {
  position: absolute; inset: 8px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 14px; overflow-y: auto;
  background: var(--bg); display: none; flex-direction: column; gap: 2px; max-width: 320px;
}
.drawer-back.open .drawer { display: flex; animation: drawer-in .2s ease; }
.drawer .who { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }

@media (max-width: 900px) {
  :root { --gutter: 12px; --head: 52px; }
  .side { display: none; }
  .main { margin-left: 0; padding-bottom: 96px; }
  .btn.sm { min-height: 40px; padding: 9px 14px; font-size: .78rem; }
  .chip, .tabs button, .seg button { min-height: 40px; }
}
@media (min-width: 901px) { .drawer-back { display: none; } }
body.side-off .side { display: none; }
body.side-off .main { margin-left: 0; }

.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pagehead > div { min-width: 0; }
.pagehead h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.3rem, 3.6vw, 1.9rem); line-height: 1.12; overflow-wrap: anywhere; }
.crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .74rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.crumb a { text-decoration: underline; text-underline-offset: 2px; }
.crumb .sep { opacity: .6; }
.pagehead .up.muted, .pagehead .up:not(.badge) { font-size: .74rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.pagehead .up a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- surfaces ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow); min-width: 0; overflow-wrap: anywhere;
}
.card.flat { background: var(--card); }
.card h3, .h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; font-size: .98rem; line-height: 1.25; margin-bottom: 12px; }
.card:hover { border-color: var(--line-strong); }
.card, .rel, .btn, .chip, .tabs button, a.nav, .badge, .input, .rank-row { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g21 { grid-template-columns: 2fr 1fr; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.span4 { grid-column: 1 / -1; }
.auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span3 { grid-column: span 2; } }
@media (max-width: 720px) { .g2, .g3, .g21 { grid-template-columns: minmax(0, 1fr); } .span2, .span3 { grid-column: auto; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 420px) { .g4.stack-sm { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* KPI cards */
.kpi { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.kpi:hover { border-color: var(--line-strong); box-shadow: 0 4px 12px rgba(0, 0, 0, .04); }
.kpi .label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); overflow-wrap: anywhere; }
.kpi .value { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.15; margin-top: 6px; color: var(--ink); overflow-wrap: anywhere; min-width: 0; font-variant-numeric: tabular-nums; }
.kpi .sub { margin-top: 6px; font-size: .75rem; color: var(--muted); }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.kpi-top > div:first-child { min-width: 0; }
.tile-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); }
.tone-indigo, .tone-rose, .tone-teal, .tone-amber { background: var(--soft); color: var(--ink); }
.chip-delta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.chip-delta.up { background: var(--up-bg); color: var(--up-fg); }
.chip-delta.down { background: var(--down-bg); color: var(--down-fg); }
.chip-delta.flat { background: var(--soft); color: var(--muted); }
.up-c { color: var(--up-fg); } .down-c { color: var(--down-fg); }
.trend { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 500; color: var(--ok); white-space: nowrap; }
.trend.down { color: var(--bad); } .trend.flat { color: var(--muted); }

/* small stat tiles inside a card */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tiles.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); min-width: 0; }
.tile span { font-size: .76rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile b { font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .tiles, .tiles.t4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .tiles, .tiles.t4 { grid-template-columns: minmax(0, 1fr); } }
.tbl.compact { min-width: 0; }

/* ---------------- controls ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 40px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .82rem; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--soft); opacity: 1; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { padding: 7px 12px; font-size: .75rem; min-height: 34px; }
.btn.block { width: 100%; padding: 12px 20px; }
.btn.lg { padding: 13px 24px; font-size: .9rem; min-height: 48px; }
.btn:active { transform: translateY(1px); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .lbl { font-size: .76rem; font-weight: 500; color: var(--ink); }
.req::before { content: "*"; color: var(--bad); margin-right: 2px; }
.input, select.input, textarea.input { width: 100%; background: var(--card); border: 1px solid var(--line-strong); padding: 10px 12px; min-height: 40px; font-family: inherit; font-size: .84rem; color: var(--ink); border-radius: 8px; outline: none; appearance: none; -webkit-appearance: none; }
@media (max-width: 900px) {
  /* Prevent auto-zoom behavior on focus across iOS/Android to prevent lag on low-end devices */
  .input, select.input, textarea.input, input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="password"] {
    font-size: 16px !important;
  }
}
.input:focus, select.input:focus, textarea.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 16, 20, .08); }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select.input option { background: var(--card); color: var(--ink); }
textarea.input { resize: vertical; min-height: 96px; }
.input::placeholder { color: #9a9ba3; }
.input:disabled, .input[readonly] { background: var(--soft); color: var(--muted); }
.check { display: flex; gap: 10px; cursor: pointer; font-weight: 500; font-size: .84rem; min-height: 40px; align-items: center; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.hint { font-size: .76rem; color: var(--muted); line-height: 1.45; }
.err { color: var(--bad); font-size: .84rem; font-weight: 500; }
.okmsg { color: var(--ok); font-size: .84rem; font-weight: 500; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 13px; min-height: 34px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); cursor: pointer; font-weight: 500; font-size: .76rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { background: var(--soft); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { padding: 7px 14px; min-height: 32px; background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-weight: 500; font-size: .76rem; white-space: nowrap; color: var(--muted); flex: none; }
.tabs button.on { background: var(--ink); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; background: var(--card); overflow: hidden; max-width: 100%; }
.seg button { padding: 7px 13px; min-height: 34px; background: transparent; border: 0; cursor: pointer; font-weight: 500; font-size: .74rem; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }
.select-pill { appearance: none; -webkit-appearance: none; min-height: 32px; padding: 6px 30px 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card) linear-gradient(45deg, transparent 50%, var(--muted) 50%) no-repeat calc(100% - 15px) 50% / 5px 5px; color: var(--ink); font-size: .76rem; font-family: inherit; cursor: pointer; }
.select-pill option { background: var(--card); }

/* ---------------- tables + badges ---------------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); -webkit-overflow-scrolling: touch; max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 520px; }
.tbl th { text-align: left; padding: 10px 14px; font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--soft); }
.tbl tr.click { cursor: pointer; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.nw, .tbl th.nw { white-space: nowrap; }
.tbl td, .tbl th { line-height: 1.35; min-width: 44px; }
.cell-rel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-rel img, .cell-rel .thumb { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: var(--soft); flex: none; border: 1px solid var(--line); }
.cell-rel span { min-width: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: .7rem; font-weight: 600; background: var(--card); color: var(--ink); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.badge.draft { background: #f8fafc; color: #333333; border-color: #ededed; font-weight: 500; }
.badge.submitted { background: #f0f9ff; border-color: #ededed; color: #000000; font-weight: 600; }
.badge.in_review { background: #ededed; border-color: #8c8c8c; color: #000000; font-weight: 600; }
.badge.changes_requested, .badge.warn, .badge.pending { background: #ededed; border-color: #8c8c8c; color: #000000; font-weight: 600; }
.badge.approved, .badge.ok, .badge.paid { background: #ededed; border-color: #ededed; color: #000000; font-weight: 600; }
.badge.live { background: #000000; border-color: #000000; color: #ffffff; font-weight: 700; }
.badge.rejected, .badge.bad, .badge.unpaid { background: #fef2f2; border-color: #ededed; color: #000000; font-weight: 600; }
.bar { height: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .2s ease; }
.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; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-weight: 400; font-size: .84rem; overflow-wrap: anywhere; }
.empty .big { font-size: .95rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.empty-ico { display: grid; place-items: center; margin: 0 auto 12px; color: var(--muted); }
.empty .btn { margin-top: 14px; }

/* ranked list (top stores / territories / tracks) */
.rank { display: flex; flex-direction: column; }
.rank-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-n { font-size: .74rem; font-weight: 600; color: var(--muted); }
.rank-name { font-weight: 500; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; min-width: 0; }
.rank-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rank-vals { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.rank-track { grid-column: 2 / -1; height: 5px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.rank-track > i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.cc { display: inline-grid; place-items: center; min-width: 24px; height: 18px; padding: 0 4px; border-radius: 4px; background: var(--soft); font-size: .62rem; font-weight: 700; color: var(--ink); flex: none; border: 1px solid var(--line); }
.flag { font-size: 1rem; line-height: 1; flex: none; }

.sparkrow { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sparkrow:last-child { border-bottom: 0; }
.sparkrow .n { font-variant-numeric: tabular-nums; font-weight: 600; }

/* activity list (kept for compat; "Recent activity" cards were removed — the
   notifications bell lives in the topbar now) */
.activity { display: flex; flex-direction: column; gap: 10px; }
.act { border-left: 3px solid var(--line-strong); background: var(--soft); border-radius: 8px; padding: 10px 12px; display: block; min-width: 0; }
.act.indigo { border-left-color: var(--ink); } .act.green { border-left-color: var(--ok); } .act.rose { border-left-color: var(--bad); }
.act-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.act-head b { font-size: .8rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.act-head time { font-size: .7rem; color: var(--muted); white-space: nowrap; flex: none; }
.act p { font-size: .76rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }

/* ---------------- releases ---------------- */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.rel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: block; min-width: 0; }
.rel:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.rel .art { aspect-ratio: 1; background: var(--soft) center/cover no-repeat; border-bottom: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .72rem; font-weight: 500; }
.rel .meta { padding: 12px 14px 14px; min-width: 0; }
.rel .t { font-family: var(--font-display); font-weight: 600; font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }

/* ---------------- modal + toast ---------------- */
.modal-back { position: fixed; inset: 0; z-index: 120; background: rgba(16, 16, 20, .4); display: grid; place-items: center; padding: 16px; animation: fade .18s ease-out; }
.modal { background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; width: min(520px, 100%); max-height: 90vh; max-height: 90dvh; overflow-y: auto; padding: 22px; box-shadow: 0 12px 32px rgba(16, 16, 20, .14); overflow-wrap: anywhere; min-width: 0; animation: modal-enter .2s cubic-bezier(0.16, 1, 0.3, 1); }
.modal.wide { width: min(860px, 100%); }
@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--ink); border: 1px solid var(--ink); color: #fff; padding: 11px 20px; border-radius: 10px; font-weight: 500; font-size: .82rem; animation: toast-enter .2s cubic-bezier(0.16, 1, 0.3, 1); max-width: min(90vw, 480px); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.toast.bad { background: var(--bad); border-color: var(--bad); }
@keyframes toast-enter {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }

/* ---------------- charts (own SVG charts, no chart library) ---------------- */
.chartcard .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chartcard .head h3 { margin: 0; }
.card, .chartcard { min-width: 0; }
.chartcard { overflow: hidden; }
.cx { position: relative; width: 100%; min-width: 0; }
.cx svg { display: block; width: 100%; height: auto; overflow: visible; }
.axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.cx .grid-l { stroke: var(--line); stroke-width: .6; }
.cx .base-l { stroke: var(--line-strong); stroke-width: .8; }
.cx .guide-l { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.cx-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 110px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); font-size: .74rem; transform: translate(-50%, calc(-100% - 8px)); white-space: nowrap; color: var(--ink); }
.cx-tip b { display: block; font-weight: 600; margin-bottom: 3px; }
.cx-tip span { color: var(--muted); }
.legend { display: flex; gap: 6px 16px; justify-content: flex-start; flex-wrap: wrap; margin-top: 8px; padding-left: 2px; font-size: .74rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.legend i.ln { width: 14px; height: 2px; border-radius: 2px; }
.cx-empty { display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .8rem; padding: 12px; overflow-wrap: anywhere; }
.donut-wrap { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 520px) { .donut-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; } .donut-wrap > ul { width: 100%; } }
.donut-legend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .78rem; min-width: 0; }
.donut-legend li i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.donut-legend li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-skel { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .chart-skel { animation: none; } }
html.fx-off .chart-skel { animation: none; }

/* filter bar */
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filterbar .field { min-width: 160px; flex: 1 1 160px; }
.filter-mobile { display: none; }
@media (max-width: 900px) { .filter-mobile { display: inline-flex; } }
.sheet-back { position: fixed; inset: 0; z-index: 110; background: rgba(16, 16, 20, .4); display: flex; align-items: flex-end; padding: 0; }
.sheet { width: 100%; max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 0 0; padding: 18px; max-height: 82vh; overflow-y: auto; min-width: 0; }

/* responsive tables: at very small widths collapse wide rows line-by-line
   (mark a table `stack-mobile` to use this; horizontal scroll stays the default) */
@media (max-width: 560px) {
  table.stack-mobile { min-width: 0; }
  table.stack-mobile thead { display: none; }
  table.stack-mobile tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.stack-mobile td { display: flex; gap: 10px; justify-content: space-between; border: 0; padding: 3px 14px; text-align: left !important; }
  table.stack-mobile td::before { content: attr(data-th); color: var(--muted); font-size: .7rem; font-weight: 600; flex: none; text-align: right; }
}

/* ---------------- uploads + form ---------------- */
.drop { border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--card); display: grid; place-items: center; text-align: center; cursor: pointer; padding: 26px; font-weight: 500; min-height: 44px; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--soft); }
.cover-drop { aspect-ratio: 1; width: min(100%, 360px); position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft) center/cover no-repeat; }
.steps { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-bottom: 20px; overflow-x: auto; }
.steps div { flex: 1; padding: 8px 14px; border-radius: 7px; font-weight: 500; font-size: .75rem; white-space: nowrap; text-align: center; color: var(--muted); cursor: pointer; }
.steps div.on { background: var(--ink); color: #fff; } .steps div.done { color: var(--ink); }
.picker { position: absolute; z-index: 40; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 26px rgba(16, 16, 20, .14); max-height: 280px; overflow-y: auto; }
.picker button { display: block; width: 100%; text-align: left; padding: 11px 14px; min-height: 42px; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--ink); }
.picker button:hover { background: var(--soft); }
.credit { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 14px; display: grid; gap: 10px; }

/* ---------------- auth ---------------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 14px; }
.auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px 24px; box-shadow: 0 16px 40px rgba(16, 16, 20, .1); overflow-wrap: anywhere; }
.auth-card .brand { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-card img.biglogo { height: 40px; width: auto; max-width: 80%; object-fit: contain; }
.auth-card h1 { font-size: 1.15rem; font-weight: 600; text-align: center; margin-bottom: 6px; }
.auth-card p.sub { text-align: center; color: var(--muted); margin-bottom: 18px; font-size: .8rem; }
.auth-card .rule { height: 1px; background: var(--line); margin: 0 -26px 18px; }

/* ---------------- release form ---------------- */
.rf { max-width: 760px; margin: 0 auto; }
.rf-sec { margin-bottom: 16px; }
.rf-sec > h3 { margin-bottom: 12px; }
.rf .cover-drop { width: min(100%, 320px); }
.cover-up { position: absolute; inset: 0; background: rgba(16, 16, 20, .6); color: #fff; display: grid; place-items: center; font-weight: 600; }
.note-card { margin-bottom: 16px; background: var(--warn-bg); border-color: var(--warn); }
.input.bad, .cover-drop.bad, .drop.bad { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.field-err { margin-top: 4px; font-size: .78rem; color: var(--bad); font-weight: 500; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: inherit; min-height: 40px; overflow-wrap: anywhere; text-align: left; }
.locked { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.locked-v { background: var(--soft); color: var(--ink); display: flex; align-items: center; min-height: 40px; padding: 8px 10px; overflow-wrap: anywhere; border-radius: 8px; }
@media (max-width: 720px) { .locked { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.track-card { padding: 0; overflow: hidden; }
.track-card.has-err { border-color: var(--bad); }
.track-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; min-height: 54px; }
.track-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .76rem; }
.track-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.track-caret { color: var(--muted); font-size: .7rem; }
.track-body { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.credit-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; }
.credit-role { font-size: .75rem; font-weight: 500; padding-top: 12px; color: var(--muted); }
.credit-main { min-width: 0; }
.credit-more summary { cursor: pointer; font-size: .75rem; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; min-height: 40px; }
@media (max-width: 480px) { .credit-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .credit-role { padding-top: 0; } }

.rd { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.rd-cover { width: min(100%, 420px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft) center/cover no-repeat; display: grid; place-items: center; align-self: center; }
.rd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 560px) { .rd-fields { grid-template-columns: minmax(0, 1fr); } }
.admin-sum { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); background: var(--soft); display: grid; place-items: center; }
@media (max-width: 640px) { .admin-sum { grid-template-columns: minmax(0, 1fr); } .admin-cover { max-width: 320px; margin: 0 auto; } }

/* song list + mini player */
.song { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 8px; border-bottom: 1px solid var(--line); min-height: 54px; }
.song:last-child { border-bottom: 0; }
.song:hover { background: var(--soft); }
.song.playing { background: var(--soft); }
.song-n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; font-size: .8rem; text-align: center; }
.song-t { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-d { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.play-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); display: grid; place-items: center; cursor: pointer; font-size: 12px; }
.play-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mini { position: fixed; left: var(--side); right: 0; bottom: 0; z-index: 82; background: var(--card); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 8px 14px; box-shadow: 0 -2px 10px rgba(16, 16, 20, .04); }
@media (max-width: 900px) { .mini { left: 0; } }
.mini .cover { width: 40px; height: 40px; border-radius: 8px; background: var(--soft) center/cover no-repeat; flex: none; }
.mini .meta { min-width: 0; flex: 1; }
.mini .t { font-weight: 600; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .prog { height: 4px; background: var(--soft); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.mini .prog > i { display: block; height: 100%; background: var(--ink); }

.roster { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.roster a { flex: none; width: 78px; text-align: center; }
.roster .av { width: 60px; height: 60px; border-radius: 50%; background: var(--soft) center/cover no-repeat; margin: 0 auto 6px; display: grid; place-items: center; font-weight: 700; color: var(--ink); border: 1px solid var(--line); }
.roster .nm { font-size: .74rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kv { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0; }
.kv > dt { padding: 11px 0; font-size: .76rem; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.kv > dd { padding: 11px 0; font-weight: 500; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; min-width: 0; }
.kv .copyrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kv .copyrow > span.count { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: minmax(0, 1fr); } .kv > dt { padding-bottom: 0; border-bottom: 0; } .kv > dd { padding-top: 4px; } }

.problem { border-left: 4px solid var(--bad); background: var(--bad-bg); margin-bottom: 16px; }
.row-line { padding: 11px 0; border-bottom: 1px solid var(--line); }
.tint-warn { background: var(--warn-bg) !important; border-color: var(--warn) !important; }
.tint-bad { background: var(--bad-bg) !important; border-color: var(--bad) !important; }

h1, h2, h3, .h3 { line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
p { line-height: 1.6; }
.lbl, .label, .hint { line-height: 1.45; }
.card .btn, .card .badge { max-width: 100%; }
.btn { text-align: center; }
@media (max-width: 640px) { .card { padding: 14px; } .modal { padding: 18px; } }
@media (max-width: 400px) { .auth-card { padding: 24px 16px !important; } }

/* copy button (long IDs / emails) */
.copybtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--card); color: var(--muted); font-size: .68rem; font-weight: 600; cursor: pointer; flex: none; }
.copybtn:hover { background: var(--soft); color: var(--ink); }
.copybtn.ok { color: var(--ok); border-color: var(--ok); }
.copybtn-sm { min-height: 24px; padding: 2px 6px; font-size: .6rem; }
.copybtn-lg { min-height: 36px; padding: 6px 12px; font-size: .75rem; }

/* settings workbench */
.settings-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; }
.swatch input[type="color"] { width: 34px; height: 30px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--card); cursor: pointer; }
.preview { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--bg); }
.legend-json, .mono-book { font-family: var(--font-mono); font-size: .78rem; }

@media print {
  body::before { display: none; } body { background: #fff; color: #000; }
  .side, .topbar, .drawer-back, .no-print, .mini { display: none !important; }
  .main { margin: 0; padding: 0; } .card { border: 1px solid #999; box-shadow: none; background: #fff; }
}

.btn.ghost.danger { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.btn.ghost.danger:hover { background: rgba(179, 38, 30, .12); }

/* --- 2026-10-19: People cards on phones, always-reachable Save bar, steadier taps --- */
.savebar { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 90; gap: 8px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 16, 20, .22); }
.savebar .btn { min-height: 44px; padding: 0 18px; font-size: .9rem; }
@media (max-width: 720px) {
  .people-tbl { min-width: 0; font-size: .88rem; }
  .people-tbl thead { display: none; }
  .people-tbl, .people-tbl tbody, .people-tbl tr, .people-tbl td { display: block; width: 100%; }
  .people-tbl tbody tr { padding: 14px; border-bottom: 1px solid var(--line); }
  .people-tbl tbody tr:hover td { background: transparent; }
  .people-tbl td { padding: 4px 0; border: 0; text-align: left !important; }
  .people-tbl td:nth-child(1) b { font-size: 1rem; }
  .people-tbl td:nth-child(2)::before { content: "Role  "; color: var(--muted); }
  .people-tbl td:nth-child(3)::before { content: "Releases  "; color: var(--muted); }
  .people-tbl td:nth-child(4)::before { content: "Revenue  "; color: var(--muted); }
  .people-tbl td:nth-child(5) { display: flex; align-items: center; gap: 8px; }
  .people-tbl td:nth-child(5)::before { content: "Threshold"; color: var(--muted); }
  .people-tbl td:nth-child(5) input { max-width: 110px; }
  .people-tbl td:nth-child(6), .people-tbl td:nth-child(8) { display: none; }
  .people-tbl td:nth-child(9) { padding-top: 10px; }
  .people-tbl td:nth-child(9) > * { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
}

/* Admin review: cover is always a true 1:1 square (the height attribute used to stretch it) */
.admin-cover { height: auto; max-width: 520px; aspect-ratio: 1 / 1; align-self: start; }

/* --- Task A: Copy-ready admin review --- */
.copy-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.copy-row-item:last-child {
  border-bottom: 0;
}
.copy-row-content {
  flex: 1;
  min-width: 0;
}
.copy-row-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.copy-row-val {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: normal;
  user-select: all;
  -webkit-user-select: all;
}
.copy-row-val.mono {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.copy-icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.copy-icon-btn:hover {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--line-strong);
}
.copy-icon-btn.copied {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--ok);
}
/* Release Review Section & Review QA: Redesigned spacious, uncompressed layout */
.review-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.admin-review-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Hero Section: Cover Artwork + Core Release Metadata */
.admin-review-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .admin-review-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-artwork-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-artwork-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
  position: relative;
  display: grid;
  place-items: center;
}

.admin-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-download-btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.admin-download-btn-lg:hover {
  background: var(--soft);
  border-color: var(--ink);
}
.admin-download-btn-lg:active {
  transform: scale(0.98);
}
.admin-download-btn-lg.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.admin-download-btn-lg.primary:hover {
  opacity: 0.92;
}

/* Spacious Metadata Tiles Grid (Never compressed) */
.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.admin-meta-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  min-width: 0;
}
.admin-meta-tile-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-meta-tile-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: normal;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Track Card: Song Reviewing Container */
.admin-track-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease;
}
.admin-track-card:hover {
  border-color: var(--line-strong);
}

.admin-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-track-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-track-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.88rem;
  flex: none;
}

.admin-track-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Audio Player & Download Banner */
.admin-audio-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.admin-audio-player {
  flex: 1 1 240px;
  height: 42px;
  min-width: 220px;
}
.admin-audio-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.admin-audio-dl-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.admin-audio-dl-btn:active {
  transform: scale(0.98);
}

/* Responsive Credits Items (No squished table) */
.admin-credits-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  flex-wrap: wrap;
}
.admin-credit-name-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.admin-credit-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Files List Box */
.admin-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.admin-file-row:last-child {
  border-bottom: 0;
}

/* Distributor Spreadsheet Export Box */
.admin-export-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Review Decision & Actions Box */
.admin-actions-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(16, 16, 20, 0.04);
}

.sticky-bar-mobile, .sticky-actions-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Bottom sheet for mobile messages composer */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(16, 16, 20, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.15s ease;
}
.bottom-sheet {
  width: 100%;
  max-width: 600px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 16px 16px 0 0;
  padding: 20px 18px max(20px, env(safe-area-inset-bottom, 20px));
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  box-shadow: 0 -8px 30px rgba(16, 16, 20, 0.18);
  animation: slide-up 0.2s ease;
}
@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Status Timeline */
.status-timeline-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 16px;
}
.status-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.status-timeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  min-width: 0;
}
.status-step-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--card);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  transition: all 0.2s ease;
}
.status-step.done .status-step-node {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.status-step.current .status-step-node {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.15);
}
.status-step.warn .status-step-node {
  background: var(--warn);
  border-color: var(--warn);
  color: #fff;
}
.status-step.rejected .status-step-node {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.status-step-label {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.status-step.done .status-step-label,
.status-step.current .status-step-label {
  color: var(--ink);
  font-weight: 700;
}
.status-step-connector {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 1;
}
.status-step-connector.filled {
  background: var(--ink);
}
@media (max-width: 480px) {
  .status-step-node {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }
  .status-step-connector {
    top: 11px;
  }
  .status-step-label {
    font-size: 0.65rem;
  }
}

/* Reduced motion & fx-off overrides */
html.fx-off *,
html.fx-off *::before,
html.fx-off *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- analytics: world map (Labelcaster-style territories card) ---------- */
.wmap {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  padding: 8px 0;
  box-sizing: border-box;
  background: transparent;
  border: none;
  box-shadow: none;
}
.wmap svg { display: block; width: 100%; height: auto; max-height: 360px; }
.wmap path { fill: var(--soft, #ededed); stroke: none; cursor: default; transition: fill .15s ease; }
.wmap path.l1 { fill: var(--map-1); cursor: pointer; } .wmap path.l2 { fill: var(--map-2); cursor: pointer; }
.wmap path.l3 { fill: var(--map-3); cursor: pointer; } .wmap path.l4 { fill: var(--map-4); cursor: pointer; } .wmap path.l5 { fill: var(--map-5); cursor: pointer; }
.wmap path.on { fill-opacity: 0.85;  }
.wmap-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 10px; font-size: .75rem; color: var(--muted); }
.wmap-info { min-width: 0; overflow-wrap: anywhere; }
.wmap-legend { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: .72rem; }
.wmap-legend i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
:root { --map-1: #ededed; --map-2: #8c8c8c; --map-3: #333333; --map-4: #000000; --map-5: #000000; }
.wmap-legend .l1 { background: var(--map-1); } .wmap-legend .l2 { background: var(--map-2); } .wmap-legend .l3 { background: var(--map-3); }
.wmap-legend .l4 { background: var(--map-4); } .wmap-legend .l5 { background: var(--map-5); }

/* ---------- analytics screen (Labelcaster + Believe Backstage merge) ---------- */
.an { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.an-body > * + * { margin-top: 14px; }
.an-filters { padding: 14px 16px; }
.an-bar-top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.an-grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.an-sel { width: auto; min-height: 34px; padding: 6px 28px 6px 10px; font-size: .76rem; }
.an-search { width: 190px; min-height: 34px; padding: 6px 10px; font-size: .78rem; }
.an-check { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.an-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.an-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.an-card-label { font-size: .72rem; font-weight: 500; color: var(--muted); }
.an-card-value { font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.55rem); line-height: 1.15; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-card-sub { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-card .chip-delta { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.an-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px; min-width: 0; }
.an-tile-name { font-size: .76rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .95; }
.an-tile b { font-size: 1.3rem; line-height: 1.2; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.an-terr { display: flex; flex-direction: column; gap: 4px; }
.an-terr li { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(40px, 1.2fr) 52px; align-items: center; gap: 8px; padding: 6px 0; font-size: .78rem; }
.an-cc { color: var(--muted); white-space: nowrap; font-size: .74rem; }
.an-tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.an-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.an-bar { display: block; height: 14px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.an-bar.thin { height: 5px; border-radius: 999px; margin-top: 6px; }
.an-bar > i { display: block; height: 100%; background: #333333; border-radius: inherit; }
.an-bar.thin > i { background: #8c8c8c; }
.an-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.an-sub { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.an-col { display: flex; flex-direction: column; }
.an-rd { display: grid; grid-template-columns: 18px 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.an-rd:last-child { border-bottom: 0; }
.an-rd-n { font-size: .72rem; color: var(--muted); font-weight: 600; }
.an-rd-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 1.1rem; }
.an-rd-main { min-width: 0; }
.an-rd-top { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; }
.an-rd-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.an-rd-share { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.an-rd-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; font-size: .78rem; }
.an-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: baseline; }
.an-tbl { min-width: 560px; }
.an-total td { background: var(--soft); }
.an-clip { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 10px; font-size: .76rem; color: var(--muted); }
.an-pager label { display: inline-flex; align-items: center; gap: 8px; }
.an-mom { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1000px) { .an-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .an-two { grid-template-columns: minmax(0, 1fr); }
  .an-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-search { width: 100%; }
  .an-terr li { grid-template-columns: 46px minmax(0, 1fr) 44px; } .an-terr .an-bar { display: none; }
  .an-clip { max-width: 160px; }
}
@media (max-width: 380px) { .an-cards { grid-template-columns: minmax(0, 1fr); } }
@media print { .an-filters { display: none; } }

/* Logo: visible inside sidebar and drawer when menu is open; removed entirely when menu is closed */
.topbar-logo { display: none !important; }

/* --- 2026-10-20: phone top bar, compact Artists rows, cleaner map --- */
@media (max-width: 560px) {
  .topbar { gap: 4px; padding: 0 8px; }
  .topbar .left { flex: 1 1 auto; gap: 4px; overflow: hidden; }
  .topbar .right { flex: none; gap: 0; }
  .topbar-logo { display: none !important; }
  .topbar .right .badge { display: none; }
}
.people-tbl td { vertical-align: middle; }
.people-tbl td:nth-child(6) { white-space: nowrap; }
@media (min-width: 721px) {
  .people-tbl td:last-child > .row { flex-wrap: nowrap !important; }
  .people-tbl td:last-child { white-space: nowrap; }
}
@media (min-width: 721px) and (max-width: 1180px) {
  .people-tbl th:nth-child(6), .people-tbl td:nth-child(6), .people-tbl th:nth-child(8), .people-tbl td:nth-child(8) { display: none; }
}
.wmap svg { max-height: 300px; }


/* ---- touch response ---- */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
a, button, [role="button"], .nav, summary, label, select, input { touch-action: manipulation; }
button, .btn, .nav, .tabs button { transition: background-color .12s ease, color .12s ease, transform .08s ease, border-color .12s ease; }
button:active, .btn:active, .nav:active, .tabs button:active { transform: scale(.97); }
.nav.pending { opacity: .85; }
.navbar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300; background: var(--ink, #111); transform-origin: left; animation: navbar-run 8s cubic-bezier(.1,.7,.2,1) forwards; pointer-events: none; }
@keyframes navbar-run { from { transform: scaleX(.02); } 60% { transform: scaleX(.7); } to { transform: scaleX(.96); } }
@media (prefers-reduced-motion: reduce) { .navbar { animation: none; transform: scaleX(.6); } }

/* ---- smoothness ---- */
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.main > * { animation: page-in .16s ease-out both; }
.rel { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.card, .rel { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { .main > * { animation: none; } }

/* ---- analytics tab strip + smooth violet charts ---- */
.an-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 12px; padding: 4px; background: var(--soft); border-radius: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.an-tabs::-webkit-scrollbar { display: none; }
.an-tab { flex: 0 0 auto; padding: 9px 14px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.an-tab.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---- simple, flat look: no glow, no soft shadows, no background gradient ---- */
body::before { display: none !important; }
.card, .chartcard, .btn, .chip, .an *, .side, .drawer, .topbar, .modal, .auth-card, .mini, .toast, select, input, textarea { box-shadow: none !important; text-shadow: none !important; filter: none !important; }
.card:hover, .btn:hover, .rel:hover { box-shadow: none !important; }

/* --- 2026-10-24 (v7.15): roomier store list, thin ring, album covers, pager on the left --- */
.an-rank { display: flex; flex-direction: column; min-width: 0; }
.an-rank-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 46px; align-items: center; column-gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--soft); font-size: .88rem; }
.an-rank-row:last-child { border-bottom: 0; }
.an-rank-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.an-rank-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.an-rank-n { font-variant-numeric: tabular-nums; text-align: right; }
.an-rank-p { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }
.an .grid.g2 > .donut-wrap { justify-self: center; }
.donut-wrap { gap: 22px; }
.an-ttl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.an-ttl-t { min-width: 0; }
.an-cov { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: var(--soft); display: block; }
.an-cov-ph { display: grid; place-items: center; font-weight: 700; color: var(--muted); font-size: 1rem; }
.an-tbl td { padding-top: 10px; padding-bottom: 10px; }
.an-pager { justify-content: flex-start; gap: 16px; }
.an-pager label { white-space: nowrap; flex: none; }
.an-pager-sp { flex: 1 1 auto; }
.an-pager > span:not(.an-pager-sp) { white-space: nowrap; }
@media (max-width: 640px) { .an-rank-row { column-gap: 12px; padding: 12px 0; } .an-clip { max-width: 130px; } }

/* ---- Finance (artist): few boxes, lots of air ---- */
.fin .fin-sec { margin-top: 44px; }
.fin .fin-sec:first-of-type { margin-top: 28px; }
.fin .fin-sec > .h3 { margin: 0 0 14px; }
.fin-card { padding: 22px; }
.fin-range { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.fin-range .field { flex: 1 1 140px; min-width: 0; }
.fin-quick { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; }
.fin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px; margin: 24px 0 20px; }
.fin-stats > div { min-width: 0; }
.fin-stats span { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.fin-stats b { display: block; margin-top: 4px; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fin-stats small { font-size: .74rem; font-weight: 500; color: var(--muted); }
.fin-bal { display: flex; flex-direction: column; gap: 16px; }
.fin-bal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fin-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.fin-big { font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fin-meter { height: 4px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.fin-meter i { display: block; height: 100%; background: var(--ink); }
.fin-more { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); text-decoration: none; }
.fin-details > summary { list-style: none; }
.fin-details > summary::-webkit-details-marker { display: none; }
.fin-details .tbl-wrap { margin-top: 14px; }
.tbl tr.tot td { background: var(--soft); border-bottom: 1px solid var(--line-strong); }
