/* Stellar Campaign Tracker
   Design: Apple design language (see DESIGN.md), adapted for Stellar.
   - Stellar cobalt (#0626c7) is the ONLY interactive colour, used sparingly.
   - Parchment canvas, white cards with hairlines, no shadows on chrome.
   - System font first (SF Pro on Apple devices), Inter elsewhere. Weights 300/400/600/700. */
:root {
  --accent: #0626c7;          /* {colors.primary}: Stellar cobalt */
  --accent-press: #041d9a;
  --accent-focus: #2b49e0;    /* {colors.primary-focus} */
  --accent-tint: #eef1fd;
  --accent-on-dark: #8aa0ff;  /* {colors.primary-on-dark} */
  --ink: #1d1d1f;             /* {colors.ink} */
  --ink-80: #333336;
  --muted: #6e6e73;
  --muted-48: #7a7a7a;        /* {colors.ink-muted-48} */
  --canvas: #ffffff;          /* {colors.canvas} */
  --parchment: #f5f5f7;       /* {colors.canvas-parchment} */
  --pearl: #fafafc;           /* {colors.surface-pearl} */
  --hairline: #e0e0e0;        /* {colors.hairline} */
  --divider: #f0f0f0;         /* {colors.divider-soft} */
  --tile: #272729;            /* {colors.surface-tile-1} */
  --black: #000000;
  --chip: rgba(210, 210, 215, 0.64);
  --good: #1a7f37;
  --bad: #c9302c;
  --warn: #9a5b00;
  --r-sm: 8px;                /* {rounded.sm} */
  --r-md: 11px;               /* {rounded.md} */
  --r-lg: 18px;               /* {rounded.lg} */
  --pill: 9999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: 32px;
  --nav-w: 232px;
}
body.nav-collapsed { --nav-w: 68px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--parchment); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.47; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pad { padding: 24px 0; }
.error { color: var(--bad); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- global nav: Apple's thin black bar, white Stellar logo ---------- */
/* ---------- Stellar OS shell: black sidebar, white logo, cobalt only on the active section ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--nav-w); transition: width 0.22s ease, padding 0.22s ease; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 18px; background: var(--black); color: #fff; overflow-y: auto; }
.content { margin-left: var(--nav-w); transition: margin-left 0.22s ease; container-type: inline-size; min-height: 100vh; display: flex; flex-direction: column; }
.content main { width: 100%; box-sizing: border-box; }
.content .foot { margin-top: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 2px 10px; }
.brand:hover { text-decoration: none; }
.brand img { height: 18px; width: auto; display: block; }
.brand span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }
.nav { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); padding: 0 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: rgba(255,255,255,0.74); font-size: 14px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav-item:hover { text-decoration: none; background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.on { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent-on-dark); }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item .soon { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--pill); padding: 1px 7px; }
.nav-item:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 1px; }
.who { font-size: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: rgba(255,255,255,0.6); padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.who .email { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who button { font-size: 12px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--r-sm); padding: 5px 12px; }
.who button:hover { border-color: #fff; }
.soon-panel { max-width: 640px; }
.soon-panel ul { margin: 8px 0 0; padding-left: 20px; }
.soon-panel li { margin: 4px 0; }

main { max-width: 1240px; margin: 0 auto; padding: 32px var(--gutter) 56px; outline: none; }

/* ---------- type ---------- */
h1 { font-family: var(--font-display); font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; margin: 0; }
h1 em, .voice { font-style: italic; font-weight: 300; letter-spacing: -0.01em; }
h2 { font-family: var(--font-display); font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.back { font-size: 13px; }

/* ---------- buttons: blue pill for the main action, quiet pills for the rest ---------- */
button, .btn {
  font: inherit; font-size: 14px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em;
  border: 1px solid rgba(0,0,0,0.12); background: var(--canvas); color: var(--ink);
  padding: 9px 18px; border-radius: var(--pill); cursor: pointer; text-decoration: none; display: inline-block;
  transition: transform 0.08s ease, background 0.15s, border-color 0.15s;
}
button:hover, .btn:hover { border-color: rgba(0,0,0,0.3); text-decoration: none; }
button:active, .btn:active { transform: scale(0.97); }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-press); border-color: var(--accent-press); }
.link-btn { border: none; background: none; padding: 0; color: var(--accent); font-size: inherit; border-radius: 0; }
.link-btn:hover { text-decoration: underline; }
.danger { color: var(--bad); }
button:disabled { opacity: 0.45; cursor: default; transform: none; }

/* ---------- fields ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { font: inherit; font-size: 15px; width: 100%; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.12); border-radius: var(--r-md); background: var(--canvas); color: var(--ink); }
/* One dropdown arrow everywhere, sitting inside the field (the browser's own arrow hugs the edge of pill shapes). */
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 12px; padding-right: 38px; text-overflow: ellipsis; }
select::-ms-expand { display: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-focus); box-shadow: 0 0 0 3px rgba(43,73,224,0.18); }
input[type=search] { border-radius: var(--pill); padding-left: 18px; }
textarea { min-height: 220px; resize: vertical; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.check input { width: auto; }
.actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.panel { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; }
.markets-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 8px; margin-bottom: 8px; align-items: center; }

/* ---------- sign in: white page, cobalt logo ---------- */
body.signin { background: var(--canvas); }
body.signin .sidebar { display: none; }
body.signin .content { margin-left: 0; }
.login { max-width: 380px; margin: 12vh auto 0; }
.login .logo { height: 30px; width: auto; display: block; margin-bottom: 28px; }
.login h1 { font-size: 32px; }
.login p { color: var(--muted); }
.login form > div { margin-top: 16px; }
.login .actions .primary { width: 100%; padding: 12px 22px; font-size: 15px; }
.no-access { max-width: 520px; }

/* ---------- campaign list ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input { max-width: 320px; }
.filters select { width: auto; border-radius: var(--pill); padding-right: 38px; }
.table-wrap { overflow-x: auto; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--pearl); }
.plays-cell { font-weight: 600; }
.artist { font-weight: 600; }
.song { font-style: italic; font-weight: 300; color: var(--muted); }
.status { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: var(--pill); background: var(--parchment); color: var(--ink-80); white-space: nowrap; }
.status.active { background: var(--accent-tint); color: var(--accent); }
.status.finished { background: #e6f4ea; color: var(--good); }

/* ---------- hero: Apple light tile, full-bleed, hairline below ---------- */
.band { background: var(--canvas); color: var(--ink); margin: -32px calc(50% - 50cqw) 0; padding: 28px calc(50cqw - 50%) 36px; border-bottom: 1px solid var(--hairline); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero h1 { font-size: 52px; line-height: 1.07; margin-top: 14px; overflow-wrap: anywhere; }
.hero .voice { font-size: 26px; line-height: 1.2; margin-top: 4px; color: var(--muted); }
.hero .meta { font-size: 13px; margin-top: 16px; display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.plays-big { text-align: right; }
.plays-big .n { font-family: var(--font-display); font-size: 72px; line-height: 1; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.plays-big .l { font-size: 14px; margin-top: 6px; color: var(--muted); }
.updated { font-size: 13px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); margin: 24px 0 8px; overflow: hidden; }
.stat { padding: 18px 20px; border-right: 1px solid var(--divider); min-width: 0; }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .l { font-size: 13px; color: var(--muted); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- sounds (campaign page) ---------- */
.sounds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sound { display: flex; gap: 14px; align-items: center; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 12px; }
.sound img, .sound .ph { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; background: var(--tile); flex: none; }
.sound .t { font-weight: 600; font-size: 15px; }
.sound .t a { color: var(--ink); }
.sound .s { font-size: 13px; color: var(--muted); }
.sound .count { font-weight: 600; color: var(--ink); }

/* ---------- post wall ---------- */
.wall { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.post { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.cover-wrap { position: relative; }
.post .cover { all: unset; position: relative; aspect-ratio: 3 / 4; background: var(--tile); display: block; width: 100%; cursor: zoom-in; }
.post .cover:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: -2px; }
.post .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .cover::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.55)); pointer-events: none; }
.post .cover .plays { position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #fff; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 20px; font-variant-numeric: tabular-nums; }
.post .chip { position: absolute; top: 8px; z-index: 1; background: rgba(0,0,0,0.5); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: var(--pill); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.post .chip.tl { left: 8px; }
.post .chip.tr { right: 8px; }
.post .body { padding: 10px 12px 12px; font-size: 13px; }
.post .handle { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .caption { font-size: 12px; color: var(--ink-80); margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.post .line { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.post .sound-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post.gone { opacity: 0.55; }
.tick { display: inline-block; background: var(--accent); color: #fff; border-radius: 50%; width: 14px; height: 14px; font-size: 9px; line-height: 14px; text-align: center; vertical-align: 1px; }

/* hover actions: Apple's translucent circular chips */
.card-actions { position: absolute; left: 8px; right: 8px; bottom: 44px; z-index: 2; display: flex; gap: 8px; justify-content: center; opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; pointer-events: none; }
.cover-wrap:hover .card-actions, .cover-wrap:focus-within .card-actions { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) { .card-actions { opacity: 1; transform: none; pointer-events: auto; } }
.card-actions button, .card-actions a { all: unset; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(245,245,247,0.82); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.08s, background 0.15s; }
.card-actions button:hover, .card-actions a:hover { background: #fff; }
.card-actions button:active, .card-actions a:active { transform: scale(0.94); }
.card-actions button:focus-visible, .card-actions a:focus-visible { outline: 2px solid #fff; }
.card-actions [data-act=remove]:hover { background: var(--bad); color: #fff; }
.card-actions svg, .icon-btn svg, .pm-close svg, .pm-nav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row-actions .card-actions { position: static; opacity: 1; transform: none; pointer-events: auto; justify-content: flex-end; }
.row-actions .card-actions button, .row-actions .card-actions a { background: var(--parchment); width: 32px; height: 32px; }
.post-table .link-btn.artist { color: var(--ink); font-weight: 600; }
.post-table .clamp { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-table tbody tr { cursor: default; }
.post-table a { color: var(--ink); }

/* ---------- add links ---------- */
.progress { height: 6px; background: var(--parchment); border-radius: var(--pill); overflow: hidden; margin: 14px 0; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width 0.3s; }
.items { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.items li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.items li:last-child { border-bottom: none; }
.items .u { overflow-wrap: anywhere; }
.items .e { color: var(--muted); }
.pill { font-weight: 600; font-size: 12px; }
.pill.success { color: var(--good); }
.pill.failed { color: var(--bad); }
.pill.duplicate { color: var(--warn); }
.pill.pending { color: var(--muted); }

/* ---------- charts ---------- */
.chart, .chart-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 18px 20px 10px; }
.chart svg { width: 100%; height: 200px; display: block; }
.chart-card { margin-top: 16px; position: relative; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head h3 { font-size: 15px; }
.chart-empty { padding: 32px 0; text-align: center; }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; margin: 4px 0 8px; color: var(--ink-80); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .tip-row i, .tile-name i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.plot svg { display: block; overflow: visible; }
.plot + .plot { border-top: 1px solid var(--divider); }
.plot .grid line, .an-svg .grid line { stroke: #ececf0; stroke-width: 1; }
.plot .grid line.zero, .an-svg .grid line.zero { stroke: #c7c7cc; }
.plot .grid text, .plot .xaxis text, .an-svg .grid text, .an-svg .xaxis text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.plot .panel-label { font-size: 12px; font-weight: 600; fill: var(--ink); }
.plot .end { font-size: 12px; fill: var(--ink); font-weight: 600; }
.plot .cross { stroke: var(--ink); stroke-width: 1; opacity: 0.2; }
.plot .hit { cursor: crosshair; touch-action: pan-y; }
.chart-foot { display: flex; justify-content: flex-end; padding-top: 4px; }
.chart-table { margin-top: 8px; max-height: 320px; overflow: auto; }

.tip { position: fixed; z-index: 60; background: rgba(29,29,31,0.94); color: #fff; border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; min-width: 160px; pointer-events: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tip-date { font-weight: 600; margin-bottom: 6px; }
.tip-group { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.6; margin-top: 6px; }
.tip-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 2px 0; }
.tip-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.tip-row b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- report (client link + Client view) ---------- */
body.share main { padding-top: 0; }
body.share .sh-band { margin-top: 0; padding-top: 20px; }
.sh-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.sh-top img { height: 20px; width: auto; display: block; }
.sh-top span { font-size: 12px; color: var(--muted); }
.client-view-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }

.sh-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 16px; }
.tabs, .seg { display: inline-flex; gap: 2px; background: rgba(0,0,0,0.05); border-radius: var(--pill); padding: 3px; flex-wrap: wrap; }
.tabs button, .seg button { border: none; background: transparent; padding: 7px 16px; color: var(--ink-80); font-size: 14px; }
.seg button { padding: 5px 12px; font-size: 13px; }
.tabs button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--canvas); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.08); }
.tabs button:hover:not([aria-selected="true"]), .seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.range input[type=date] { width: auto; padding: 6px 12px; font-size: 14px; border-radius: var(--pill); }

.sh-stats { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sh-stats .stat { position: relative; }
.sh-stats .stat .n { font-size: clamp(19px, 1.8vw, 24px); overflow: hidden; text-overflow: ellipsis; }
.stat-btn { all: unset; display: block; cursor: pointer; width: 100%; }
.stat-btn:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 6px; border-radius: 4px; }
.sh-stats .stat.on { box-shadow: inset 0 -3px 0 var(--mc, var(--accent)); }
.sh-stats .stat.on .l::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mc, var(--accent)); margin-right: 6px; vertical-align: 1px; }
.sh-stats .stat.on .l { color: var(--ink); font-weight: 600; }
.stat .d { font-size: 12px; margin-top: 4px; color: var(--good); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .d.muted { color: var(--muted); font-weight: 400; }
.d.neg, b.neg { color: var(--bad); }
b.pos { color: var(--good); }

.metric-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-toggle { padding: 6px 14px; font-size: 13px; color: var(--ink-80); }
.chip-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-toggle[aria-pressed="true"]::before { content: "✓ "; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px 18px; }
.tile-name { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: 14px; }
.tile-name i { margin-top: 5px; }
.tile-name span, .tile-name a { overflow-wrap: anywhere; }
.tile-name a { color: var(--ink); }
.tile .n { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .d { font-size: 12px; margin-top: 4px; }
.tile .bar { height: 4px; background: var(--parchment); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.tile .bar span { display: block; height: 100%; border-radius: 4px; }
.sh-filters select { max-width: 220px; }
.view-toggle { margin-left: auto; }

/* ---------- post preview window (the one element allowed a shadow: it floats) ---------- */
body.modal-open { overflow: hidden; }
.pm-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.48); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; }
.pm { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); width: min(940px, 100%); max-height: calc(100vh - 48px); background: var(--canvas); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.28); }
.pm-media { position: relative; background: var(--black); min-height: min(640px, calc(100vh - 48px)); }
.pm-media iframe, .pm-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pm-poster { object-fit: cover; filter: blur(2px) brightness(0.55); }
.pm-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: var(--chip); border: none; color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pm-nav:hover { background: rgba(245,245,247,0.95); }
.pm-nav:active { transform: translateY(-50%) scale(0.94); }
.pm-nav.prev { left: 10px; } .pm-nav.next { right: 10px; }
.pm-nav:disabled { opacity: 0.25; }
.pm-side { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.pm-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.pm-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--parchment); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 20px; overflow: hidden; }
.pm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pm-name { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.pm-who a { font-size: 14px; }
.pm-close { padding: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: none; background: var(--parchment); color: var(--ink-80); align-self: start; }
.pm-close:hover { background: #e8e8ed; }
.pm-actions { display: flex; gap: 8px; }
.pm-actions .btn { flex: 1; text-align: center; }
.icon-btn { padding: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); background: var(--canvas); color: var(--ink); }
.icon-btn:hover { border-color: rgba(0,0,0,0.3); text-decoration: none; }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.pm-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--hairline); }
.pm-tabs button { border: none; background: none; border-radius: 0; padding: 8px 0; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pm-tabs button:active { transform: none; }
.pm-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-tile { background: var(--parchment); border-radius: var(--r-md); padding: 12px 14px; }
.pm-tile .l { font-size: 12px; color: var(--muted); }
.pm-tile .n { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pm-chart { margin-top: 4px; }
.pm-chart .chart-head h3 { font-size: 14px; }
.pm-body > .muted { margin: 10px 0 0; }
.pm-details { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 14px; margin: 4px 0 0; font-size: 14px; }
.pm-details dt { color: var(--muted); }
.pm-details dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- share panel and link settings ---------- */
.share-panel { margin-top: 24px; }
.share-panel h2 { margin-bottom: 8px; }
.share-row { display: flex; gap: 8px; margin: 14px 0 8px; flex-wrap: wrap; }
.share-row input { flex: 1 1 320px; font-size: 13px; background: var(--parchment); border-radius: var(--pill); }
.warn-note { color: var(--warn); font-weight: 600; }
.settings { margin-top: 18px; border-top: 1px solid var(--hairline); padding-top: 14px; }
.settings h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 18px 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.settings .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 15px; font-weight: 400; margin: 0; }
.settings .row.sub { padding-left: 18px; color: var(--muted); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #e3e3e8; border-radius: var(--pill); transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.switch input:disabled + span { opacity: 0.4; }
.settings .never { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- footer: parchment fine print with the Copenhagen coordinates ---------- */
.foot { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 32px; font-size: 12px; color: var(--muted-48); font-variant-numeric: tabular-nums; }
body.signin .foot { position: fixed; left: 0; bottom: 0; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: rgba(29,29,31,0.94); color: #fff; padding: 10px 18px; border-radius: var(--pill); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 70; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#toast.show { opacity: 1; }

/* ---------- campaign form: sections, market splits, sheet status ---------- */
.form-sections > h2 { margin: 32px 0 14px; padding-top: 24px; border-top: 1px solid var(--divider); }
.form-sections > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.split-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.markets-row { grid-template-columns: minmax(0, 220px) 130px minmax(0, 1fr) auto; }
.markets-row .other { font-variant-numeric: tabular-nums; }
.split-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.folder-opt { align-items: flex-start; font-weight: 400; margin-top: 20px; padding: 14px 16px; background: var(--parchment); border-radius: var(--r-md); }
.folder-opt input { margin-top: 3px; }
.folder-opt > span > span { font-weight: 400; }
.sheet-line { margin: 18px 0 0; }
.hero .sheet-line { margin: 12px 0 0; font-size: 12px; }
.po { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.status.on_hold { background: #fff4e0; color: var(--warn); }

/* ---------- folders on the campaign page ---------- */
.posts-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.folders { margin-bottom: 16px; }
.folder-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.folder { position: relative; flex: 0 0 auto; min-width: 150px; max-width: 220px; border-radius: var(--r-md); background: var(--canvas); box-shadow: 0 0 0 1px var(--hairline); transition: box-shadow 0.15s; }
.folder:hover { box-shadow: 0 0 0 1px #c7c7cc; }
.folder.on { background: var(--canvas); box-shadow: 0 0 0 1.5px var(--accent); }
.folder.is-hidden .folder-name { color: var(--muted); }
.folder-main { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 34px 12px 14px; border-radius: var(--r-md); }
.folder-main:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.folder-name { font-weight: 600; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-n { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.folder-more { position: absolute; top: 6px; right: 6px; border: none; background: transparent; width: 28px; height: 28px; padding: 0; border-radius: 50%; color: var(--muted); font-size: 18px; line-height: 1; }
.folder-more:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.folder-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.folder-panel-head h2 { margin: 0 0 12px; }
#folder-panel .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 400; font-size: 14px; margin: 26px 0 0; }
#folder-panel h3 { margin-top: 24px; }
.pick-bar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; margin-bottom: 14px; border-radius: var(--pill); background: rgba(29,29,31,0.94); color: #fff; font-size: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pick-bar .link-btn { color: var(--accent-on-dark); }
.pick-bar .spacer { flex: 1; }
.pick-bar select { width: auto; padding: 6px 32px 6px 12px; background-position: right 11px center; border-radius: var(--pill); font-size: 13px; }
.pick-bar label { color: rgba(255,255,255,0.7); }
.pick { position: absolute; top: 8px; left: 8px; z-index: 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(245,245,247,0.86); cursor: pointer; }
.pick input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
td.pick-col .pick { position: static; background: transparent; }
.post.picked .cover { box-shadow: 0 0 0 3px var(--accent); }
tr.picked td { background: var(--accent-tint); }
.post .folder-line { color: var(--accent); font-weight: 600; }
.pm-folder select { width: auto; max-width: 180px; padding: 7px 32px 7px 12px; background-position: right 11px center; border-radius: var(--pill); font-size: 13px; }
.voice .folder-name { display: inline-block; margin-left: 12px; padding: 2px 12px; border-radius: var(--pill); background: var(--accent-tint); color: var(--accent); font-style: normal; font-size: 0.6em; font-weight: 600; vertical-align: middle; white-space: nowrap; }

/* ---------- folder sections (campaign page, "Folders" view) ---------- */
.fsec { background: var(--canvas); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hairline); margin-bottom: 18px; overflow: hidden; }
.fsec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; background: linear-gradient(180deg, var(--pearl), var(--parchment)); border-bottom: 1px solid var(--hairline); }
.fsec.shut .fsec-head { border-bottom: none; }
.fsec-title h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fsec-meta { margin-top: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fsec-meta b { color: var(--ink); font-weight: 600; }
.fsec-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fsec-actions button { padding: 7px 14px; font-size: 13px; }
.fsec-chev { width: 34px; height: 34px; padding: 0 !important; display: grid; place-items: center; border-radius: 50%; }
.fsec-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.fsec.shut .fsec-chev svg { transform: rotate(180deg); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--pill); background: var(--chip); color: var(--ink-80); letter-spacing: 0; }
.badge.on { background: var(--accent-tint); color: var(--accent); }
.fsec-flash { padding: 10px 20px; background: var(--accent-tint); color: var(--ink); border-bottom: 1px solid var(--hairline); }
.fsec-flash ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.fsec-flash .u { word-break: break-all; }
.fsec-add { padding: 16px 20px; border-bottom: 1px solid var(--hairline); background: var(--canvas); }
.fsec-add textarea { min-height: 84px; }
.fsec-add-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.fsec-add-row .spacer { flex: 1; }
.fsec-add .progress { margin-top: 10px; }
.fsec .fs-panel { margin: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--hairline); }
.fsec-empty { padding: 22px 20px; }
.fsec-table { position: relative; border: none; border-radius: 0; margin: 0; box-shadow: none; }
.fsec-table td.small { white-space: nowrap; }
.fsec-table table { min-width: 860px; }
.fsec-table th { font-size: 12px; font-weight: 600; color: var(--muted); }
.fsec-table td, .fsec-table th { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.fsec-table th:first-child, .fsec-table td:first-child { padding-left: 20px; }
.fsec-table tbody tr:hover td { background: var(--pearl); }
.fsec-table tr[data-gone] td { color: var(--muted); }
.creator-cell { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 190px; }
.creator-cell:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 3px; border-radius: 8px; }
.creator-cell .av { position: relative; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--parchment); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.creator-cell .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creator-cell .cw { display: flex; flex-direction: column; min-width: 0; }
.creator-cell .nm { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.creator-cell:hover .nm { color: var(--accent); }
.creator-cell .hd { font-size: 12px; color: var(--muted); }
.creator-cell .tick { color: var(--accent); font-size: 12px; }
.gone-tag { color: var(--bad); }
.fsec-table .row-actions .card-actions { gap: 6px; }
.fsec-table .row-actions .card-actions button, .fsec-table .row-actions .card-actions a { width: 30px; height: 30px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--divider); }
.pager .link-btn { font-size: 20px; line-height: 1; padding: 2px 8px; }
.pager .link-btn:disabled { color: var(--hairline); cursor: default; }

@media (max-width: 900px) {
  .sidebar { position: sticky; top: 0; inset: auto; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px var(--gutter) 8px; overflow: visible; }
  .content { margin-left: 0; }
  .brand { padding: 0; }
  .who { flex-direction: row; align-items: center; margin-left: auto; padding: 0; border: none; }
  .nav { order: 3; flex: 1 0 100%; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .nav::-webkit-scrollbar { display: none; }
  .nav-group { flex-direction: row; gap: 4px; }
  .nav-label { display: none; }
  .nav-item { padding: 6px 12px; font-size: 13px; border-radius: var(--pill); }
  .nav-item.on { box-shadow: none; }
  .nav-item svg { display: none; }
  .nav-item .soon { display: none; }
}

/* ---------- Campaign overview ---------- */
.ov-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 8px; }
.ov-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ov-stats .stat { padding: 18px clamp(14px, 1.6cqw, 20px); }
.ov-stats .stat .n { font-size: clamp(17px, 2cqw, 22px); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.ov-stats .stat .l, .ov-stats .stat .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-stats .stat .sub { font-size: 12px; color: var(--muted-48); margin-top: 1px; }

/* Overview toolbar: one line. Search takes the free space; filters live in a panel. */
.ov-bar { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.ov-search { position: relative; flex: 1 1 240px; min-width: 0; }
.ov-search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.ov-bar input, .ov-bar select, .ov-bar .ov-pill { height: 40px; }
.ov-bar > *, .ov-bar input, .ov-bar select, .ov-bar button { margin: 0; }
.ov-search input { width: 100%; border-radius: var(--pill); padding-top: 0; padding-bottom: 0; padding-left: 38px; }
.ov-pill { flex: none; width: auto; border-radius: var(--pill); white-space: nowrap; }
select.ov-pill { padding-top: 0; padding-bottom: 0; padding-right: 38px; }
#ov-fbtn { padding-top: 0; padding-bottom: 0; }
.ov-sort { display: inline-flex; align-items: center; gap: 2px; background: var(--canvas); border: 1px solid var(--hairline); padding-left: 14px; }
.ov-sort span { font-size: 13px; color: var(--muted); }
.ov-sort select { height: 38px; padding-top: 0; padding-bottom: 0; field-sizing: content; max-width: 230px; border: none; background-color: transparent; box-shadow: none !important; padding-left: 6px; padding-right: 34px; background-position: right 12px center; font-weight: 600; }
.ov-sort:focus-within { border-color: var(--accent-focus); box-shadow: 0 0 0 3px rgba(43,73,224,0.18); }
.ov-filt { position: relative; flex: none; }
#ov-fbtn { display: inline-flex; align-items: center; gap: 7px; }
#ov-fbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#ov-fbtn.on { border-color: var(--accent); color: var(--accent); }
.ov-count { min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 19px; text-align: center; }
.ov-fpanel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(380px, calc(100vw - 32px)); background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: 0 12px 32px rgba(0,0,0,0.12); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ov-fpanel[hidden] { display: none; }
.ov-fpanel label { display: grid; gap: 4px; min-width: 0; }
.ov-fpanel label span { font-size: 12px; font-weight: 600; color: var(--muted); }
.ov-fpanel select { width: 100%; }
.ov-fpanel-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--divider); padding-top: 12px; }
.th-sort { border: none; background: none; padding: 0; border-radius: 0; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.th-sort i { font-style: normal; font-size: 11px; opacity: 0.35; }
.th-sort:hover i, .th-sort.on i { opacity: 1; }
.th-sort.on { color: var(--ink); }
th.num .th-sort { flex-direction: row-reverse; }
@container (max-width: 760px) {
  .ov-bar { flex-wrap: wrap; position: relative; }
  .ov-search { flex-basis: 100%; }
  .ov-filt { position: static; }
  .ov-fpanel { left: 0; right: 0; width: auto; }
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-stats .stat:nth-child(2n) { border-right: none; }
  .ov-stats .stat { border-bottom: 1px solid var(--divider); }
}
@container (max-width: 420px) {
  .ov-sort span { display: none; }
  .ov-fpanel { grid-template-columns: 1fr; }
}
.ov-table .ov-po { font-variant-numeric: tabular-nums; }
.ov-table td:nth-child(3) div:first-child { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.ov-table table { min-width: 900px; }
.ov-table th, .ov-table td { padding-left: 12px; padding-right: 12px; }
.ov-table th:first-child, .ov-table td:first-child { padding-left: 18px; }
.ov-table td:nth-child(1), .ov-table td:nth-child(7), .ov-table td:nth-child(8), .ov-table td:nth-child(9) { white-space: nowrap; }
.ov-table td:nth-child(4), .ov-table td:nth-child(6) { max-width: 130px; }
.ov-table .artist { white-space: nowrap; }
.ov-table .song { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.filters select { width: auto; }
.ov-table td { vertical-align: middle; }
.ov-row { cursor: pointer; }
.ov-row.open td { background: var(--pearl); border-bottom-color: transparent; }
.ov-row:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: -2px; }
.ov-detail-row td { background: var(--pearl); padding: 0 18px 22px; white-space: normal !important; }
.ov-detail-row:hover td { background: var(--pearl) !important; }
.ovd { display: flex; flex-direction: column; gap: 14px; position: sticky; left: 18px; width: min(1100px, calc(100cqw - 2 * var(--gutter) - 38px)); }
.ovd-alloc-head { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ovd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--canvas); border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--hairline); }
.ovd-kpis > div { padding: 12px 16px; border-right: 1px solid var(--divider); display: flex; flex-direction: column; gap: 4px; }
.ovd-kpis > div:last-child { border-right: none; }
.ovd-kpis span { font-size: 12px; color: var(--muted); }
.ovd-kpis b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ovd-kpis b .status { font-size: 12px; }
.ovd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ovd-card { background: var(--canvas); border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--hairline); padding: 14px 16px; }
.ovd-card h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.ovd-card p { margin: 0; font-size: 14px; }
.ovd-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; border-top: 1px solid var(--divider); font-size: 14px; }
.ovd-card h4 + .ovd-line, .ovd-alloc .ovd-bar + .ovd-line { border-top: none; }
.ovd-line > span { color: var(--muted); flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }
.ovd-line > b { font-weight: 400; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.ovd-alloc { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--divider); }
.ovd-bar { display: flex; height: 8px; border-radius: var(--pill); overflow: hidden; gap: 2px; margin-bottom: 6px; }
.ovd-bar i { display: block; min-width: 4px; }
.ovd-line .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ovd-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ovd-foot .muted { flex: 1 1 260px; }
.small-btn { padding: 5px 14px !important; font-size: 13px !important; }
.status.upcoming { background: var(--parchment); color: var(--ink-80); box-shadow: inset 0 0 0 1px var(--hairline); }
.ov-missing { margin-top: 24px; }
.ov-missing h3 { margin: 0 0 4px; }
.ov-missing ul { margin: 8px 0 0; padding-left: 18px; }
.prefill-note { background: var(--accent-tint); border: none; margin: 0 0 16px; padding: 12px 16px; }

/* ---------- artist banner (team campaign page and client links) ---------- */
.art-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-bottom: none; background: linear-gradient(135deg, #1d1d1f 0%, #101a4a 100%); padding-bottom: 32px; }
.art-band .art-bg { position: absolute; inset: -60px; z-index: -2; background: var(--art) center / cover no-repeat; filter: blur(40px) saturate(1.25); transform: scale(1.1); opacity: 0; }
.art-band.has-img .art-bg { opacity: 1; }
.art-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%); }
.art-band .back, .art-band a:not(.btn) { color: rgba(255,255,255,0.85); }
.art-band .sh-top span { color: rgba(255,255,255,0.7); }
.art-band .hero { align-items: center; }
.art-id { display: flex; align-items: center; gap: 24px; min-width: 0; }
.art-avatar { position: relative; flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,0.14); box-shadow: 0 0 0 3px rgba(255,255,255,0.22), 0 12px 32px rgba(0,0,0,0.35); display: grid; place-items: center; font-size: 42px; font-weight: 600; color: rgba(255,255,255,0.85); }
.art-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-avatar .art-edit { position: absolute; inset: auto 0 0 0; height: 34px; border: none; border-radius: 0; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; font-weight: 600; opacity: 0; transition: opacity 0.15s; padding: 0; }
.art-avatar:hover .art-edit, .art-avatar .art-edit:focus-visible { opacity: 1; }
.art-text { min-width: 0; }
.art-band .hero h1 { margin-top: 0; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.25); }
.art-band .hero .voice { color: rgba(255,255,255,0.82); }
.art-band .hero .meta { color: rgba(255,255,255,0.75); }
.art-band .status { background: rgba(255,255,255,0.16); color: #fff; }
.art-band .sheet-line, .art-band .sheet-line.muted { color: rgba(255,255,255,0.7) !important; }
.art-band .warn-note { color: #ffd38a; }
.hero-actions { margin-top: 22px; }
.art-band .hero-actions button, .art-band .hero-actions .btn { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.art-band .hero-actions button:hover, .art-band .hero-actions .btn:hover { background: rgba(255,255,255,0.24); }
.art-band .hero-actions .primary { background: #fff; color: var(--ink); border-color: #fff; }
.art-band .hero-actions .primary:hover { background: rgba(255,255,255,0.9); }
.art-band .hero-actions .danger-lite { color: #ffc2bd; }
.art-band .voice .folder-name { background: rgba(255,255,255,0.18); color: #fff; }
.art-band .updated { color: rgba(255,255,255,0.7); }

/* folder sections take the artist's blurred banner */
.fsec-head.has-art { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #1d1d1f; border-bottom: none; }
.fsec-head.has-art::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: var(--art) center / cover; filter: blur(30px) saturate(1.2); transform: scale(1.1); }
.fsec-head.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25)); }
.fsec-head.has-art .fsec-meta { color: rgba(255,255,255,0.75); }
.fsec-head.has-art .fsec-meta b { color: #fff; }
.fsec-head.has-art .badge { background: rgba(255,255,255,0.18); color: #fff; }
.fsec-head.has-art .badge.on { background: rgba(255,255,255,0.9); color: var(--accent); }
.fsec-head.has-art .fsec-actions button:not(.primary) { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.28); }
.fsec-head.has-art .fsec-actions .primary { background: #fff; color: var(--ink); border-color: #fff; }
.fsec-art { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,0.3); }

/* team money strip under the banner */
.money-strip { margin-top: 20px; }

/* artist picker in the campaign form */
.artist-pick { position: relative; }
.pick-wrap { position: relative; }
.artist-pick .art-chosen { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.artist-pick .art-chosen img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.art-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; background: var(--canvas); border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--hairline), 0 12px 32px rgba(0,0,0,0.12); overflow: hidden; max-height: 360px; overflow-y: auto; }
.art-results button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; font-size: 14px; }
.art-results button:hover, .art-results button[aria-selected="true"] { background: var(--parchment); }
.art-results img, .art-results .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--parchment); flex: 0 0 40px; }
.art-results .fans { margin-left: auto; font-size: 12px; color: var(--muted); }
.art-results .none { padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* confirmation dialog */
.dlg-back { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.35); display: grid; place-items: center; padding: 16px; }
.dlg { background: var(--canvas); border-radius: var(--r-lg); box-shadow: 0 24px 64px rgba(0,0,0,0.25); width: min(460px, 100%); padding: 22px 22px 18px; }
.dlg h3 { margin: 0 0 8px; font-size: 19px; }
.dlg p { margin: 0 0 12px; color: var(--ink-80); font-size: 14px; }
.dlg .check { font-weight: 400; margin: 8px 0; align-items: flex-start; }
.dlg .check input { margin-top: 3px; }
.dlg .actions { justify-content: flex-end; margin-top: 16px; }
.ov-tr { display: flex; align-items: center; gap: 6px; }
.small-n { font-size: 15px !important; color: var(--muted); }
button.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
button.danger-solid:hover { background: #a92622; }
.row-tools { display: flex; gap: 4px; justify-content: flex-end; }
.row-tools button, .row-tools a { all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); }
.row-tools button:hover, .row-tools a:hover { background: var(--parchment); color: var(--ink); }
.row-tools .del:hover { background: #fdecea; color: var(--bad); }
.row-tools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Analytics ---------- */
.an-filters { margin-bottom: 4px; }
.an-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 8px; }
.an-kpis .stat .n { font-variant-numeric: normal; }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.an-card { background: var(--canvas); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hairline); padding: 18px 20px 14px; min-width: 0; }
.an-card.wide { grid-column: 1 / -1; }
.an-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.an-head h3 { margin: 0; font-size: 17px; }
.an-svg svg { display: block; overflow: visible; }
.an-svg .col-total, .an-svg .avg-label { font-size: 11px; fill: var(--muted); }
.an-svg .hit:focus, .an-svg .hit:hover { fill: rgba(0,0,0,0.03); outline: none; }
.an-empty { padding: 18px 0; }
.hbars { display: flex; flex-direction: column; gap: 4px; }
.hb-row { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 4px 6px; margin: 0 -6px; border-radius: var(--r-sm); font-size: 13px; }
.hb-row:hover, .hb-row:focus-visible { background: var(--pearl); outline: none; }
.hb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-tag { font-size: 11px; color: var(--muted); }
.hb-track { display: block; height: 14px; }
.hb-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.hb-val { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.hb-val .muted { font-size: 12px; }
.an-split { display: flex; gap: 2px; height: 10px; border-radius: 4px; overflow: hidden; margin: 2px 0 8px; }
.an-split i { display: block; min-width: 3px; }
.an-card .legend { margin-bottom: 10px; }
.an-list { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--divider); }
.an-list h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.an-list ul { list-style: none; margin: 0 0 6px; padding: 0; }
.an-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; border-top: 1px solid var(--divider); }
.an-list li:first-child { border-top: none; }
.an-list li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .an-grid { grid-template-columns: 1fr; } }

/* ---------- trending ---------- */
.tr-filters input[type=search] { max-width: 240px; margin-left: auto; }
.tr-stats { margin-top: 0; margin-bottom: 16px; }
.tr-table td { vertical-align: middle; }
.tr-song { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.tr-song .artist { line-height: 1.3; }
.tr-song a { color: inherit; }
.tr-song a:hover { color: var(--accent); }
.tr-thumb { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; object-fit: cover; background: var(--parchment); display: block; }
.tr-plats { display: flex; flex-wrap: wrap; gap: 4px; }
.tr-plat { font-size: 12px; white-space: nowrap; padding: 2px 9px; border-radius: var(--pill); background: var(--parchment); color: var(--ink-80); }
.tr-plat b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-plat i { font-style: normal; color: var(--muted); }
.tr-plat.up { background: var(--accent-tint); color: var(--accent); }
.tr-plat.up i { color: var(--accent); font-weight: 600; }
.tr-where { white-space: nowrap; font-size: 13px; }
.tr-where span { margin-right: 4px; }
.tr-note { max-width: 780px; margin-top: 16px; }
.tr-artist-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
.tr-songlist { list-style: none; margin: 0; padding: 0; }
.tr-songlist li { padding: 12px 0; border-top: 1px solid var(--divider); }
.tr-songlist li:first-child { border-top: none; padding-top: 0; }
.tr-songlist .tr-plats { margin: 6px 0 4px; }
.tr-aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 20px; }
.tr-aud-grid h3 { margin-bottom: 10px; }
@media (max-width: 900px) { .tr-artist-grid { grid-template-columns: 1fr; } .tr-filters input[type=search] { margin-left: 0; max-width: none; } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  main { padding-top: 24px; }
  .band { margin-top: -24px; padding-top: 20px; padding-bottom: 28px; }
  .who .email { display: none; }
  h1 { font-size: 30px; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 36px; }
  .hero .voice { font-size: 21px; }
  .art-id { gap: 16px; }
  .art-avatar { width: 72px; height: 72px; font-size: 28px; }
  .plays-big { text-align: left; }
  .plays-big .n { font-size: 48px; }
  .stat { border-right: none; border-bottom: 1px solid var(--divider); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .post .cover .plays { font-size: 18px; }
  .sh-controls { flex-direction: column; align-items: stretch; }
  .tabs { justify-content: space-between; }
  .tabs button { padding: 7px 10px; flex: 1; }
  .markets-row { grid-template-columns: minmax(0, 1fr) 100px auto; }
  .markets-row .other { grid-column: 1 / -1; margin-top: -4px; }
  .pick-bar { border-radius: var(--r-md); }
  .fsec-head { padding: 14px 16px; }
  .fsec-actions { width: 100%; }
  .fsec-actions .fsec-chev { margin-left: auto; }
  .view-toggle { margin-left: 0; }
  .sh-filters input, .sh-filters select { max-width: none; flex: 1 1 140px; }
  .pm-backdrop { padding: 0; place-items: stretch; }
  .pm { grid-template-columns: 1fr; max-height: 100vh; border-radius: 0; overflow-y: auto; }
  .pm-media { min-height: 0; height: 62vh; }
  .pm-side { overflow: visible; }
  .pm-details { grid-template-columns: 1fr; gap: 2px; }
  .pm-details dd { margin-bottom: 8px; }
}

/* Dashboard hero: artist, song, then one row of key chips (status, PO, the campaign's sound). */
.hero-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.key-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: var(--pill); background: var(--chip); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; max-width: 100%; min-width: 0; }
.key-chip .key-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.key-chip .key-sub { font-weight: 400; opacity: 0.7; }
.key-chip.po .key-text { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.key-chip.sound { text-decoration: none; }
.key-chip.sound .note { font-size: 15px; line-height: 1; }
.key-chip.sound:hover { filter: brightness(1.1); }
.hero-upd { font-size: 12px; color: var(--muted); margin-left: 4px; }
.art-band .key-chip { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.art-band a.key-chip.sound:hover { background: rgba(255,255,255,0.24); filter: none; }
.art-band .key-chip.s-active::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.art-band .key-chip.s-on_hold::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f5b83d; }
.art-band .hero-upd { color: rgba(255,255,255,0.6); }
.art-band .updated:empty { display: none; }
/* Campaign details, under the hero: one tidy row instead of loose text. */
.camp-details { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px 20px; margin: 16px 0 0; }
.camp-details dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; margin: 0; }
.camp-details dt { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.camp-details dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.camp-details .sheet-line { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--divider); font-size: 12px; }
.camp-details .sheet-line + .sheet-line { border-top: none; padding-top: 0; margin-top: 4px; }

/* ---------- Menu: collapse toggle (top, next to the logo) and icon-only mode ---------- */
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand-mark { display: none; }
.nav-toggle { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: none; border-radius: 8px; background: transparent; color: rgba(255,255,255,0.45); transition: background 0.15s, color 0.15s; }
.nav-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .frame { fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-toggle .pane { fill: currentColor; opacity: 0.55; transition: width 0.22s ease, opacity 0.15s; }
.nav-toggle:hover .pane { opacity: 0.9; }
body.nav-collapsed .nav-toggle .pane { width: 1.6px; }.who button { display: inline-flex; align-items: center; gap: 6px; }
.who button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.nav-collapsed .sidebar { padding-left: 10px; padding-right: 10px; overflow-x: hidden; }
body.nav-collapsed .side-top { flex-direction: column; gap: 10px; }
body.nav-collapsed .brand { justify-content: center; padding: 2px 0; }
body.nav-collapsed .brand img, body.nav-collapsed .brand span { display: none; }
body.nav-collapsed .brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; color: #000; font-size: 17px; font-weight: 700; font-style: italic; letter-spacing: -0.04em; }
body.nav-collapsed .nav-label { font-size: 0; height: 1px; padding: 0; margin: 0 8px 6px; background: rgba(255,255,255,0.14); }
body.nav-collapsed .nav-item { position: relative; justify-content: center; padding: 10px 0; }
body.nav-collapsed .nav-item span { display: none; }
body.nav-collapsed .nav-item .soon { position: absolute; width: 6px; height: 6px; padding: 0; font-size: 0; border: none; background: rgba(255,255,255,0.4); border-radius: 50%; margin: -14px -22px 0 0; }
body.nav-collapsed .nav-item.on { box-shadow: inset 3px 0 0 var(--accent-on-dark); }
body.nav-collapsed .who { align-items: center; padding-left: 0; padding-right: 0; }
body.nav-collapsed .who .email, body.nav-collapsed .who button span { display: none; }
body.nav-collapsed .who button { padding: 7px; }

/* ---------- Artist banner flows out of the black menu instead of meeting it at a hard edge ---------- */
.content .art-band { background: linear-gradient(120deg, #000 0%, #0b0f24 45%, #101a4a 100%); }
.content .art-band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: min(320px, 40%); z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.72) 30%, rgba(0,0,0,0.3) 65%, rgba(0,0,0,0) 100%); }
@media (max-width: 900px) {
  .nav-toggle { display: none; }
  .side-top { display: contents; }
  body.nav-collapsed { --nav-w: 0px; }
  body.nav-collapsed .sidebar { padding: 10px var(--gutter) 8px; }
  body.nav-collapsed .brand img, body.nav-collapsed .brand span, body.nav-collapsed .nav-item span { display: initial; }
  body.nav-collapsed .brand-mark, body.nav-collapsed .nav-label { display: none; }
  body.nav-collapsed .nav-item { padding: 6px 12px; }
  .content .art-band::before { display: none; }
}

/* Copy button next to PO numbers */
.copy-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -4px -6px -4px 4px; padding: 0; border: none; border-radius: 6px; background: transparent; color: var(--muted); vertical-align: middle; cursor: pointer; }
.copy-btn:hover { background: rgba(0,0,0,0.06); color: var(--accent); }
.copy-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn .c2 { display: none; }
.copy-btn.done { color: var(--good); }
.copy-btn.done .c1 { display: none; }
.copy-btn.done .c2 { display: inline; stroke-width: 2; }
.ov-po { display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.art-band .copy-btn { color: rgba(255,255,255,0.7); margin-right: -8px; }
.art-band .copy-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.art-band .copy-btn.done { color: #3ddc84; }

/* ---------- Post wall: small, image-only previews (details on hover and in the preview window) ---------- */
.sh-wall.wall, .wall { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.post { border-radius: 14px; border: none; background: var(--tile); }
.post .cover { aspect-ratio: 9 / 14; }
.post .cover::after { inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.post .cover .cap { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; display: flex; flex-direction: column; gap: 1px; color: #fff; min-width: 0; }
.post .cover .cap .cap-who { font-size: 11px; font-weight: 600; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .cover .cap .plays { position: static; font-size: 17px; }
.post .chip { font-size: 10px; padding: 2px 7px; top: 7px; }
.post .chip.tl { left: 7px; } .post .chip.tr { right: 7px; }
.post .cover img { transition: transform 0.25s ease; }
.post .cover:hover img { transform: scale(1.04); }

/* ---------- Preview window: smaller ---------- */
.pm { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); width: min(780px, 100%); max-height: min(560px, calc(100vh - 48px)); }
.pm-media { min-height: min(500px, calc(100vh - 48px)); }
.pm-side { padding: 18px 20px; gap: 12px; }
.pm-head { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
.pm-avatar { width: 40px; height: 40px; font-size: 16px; }
.pm-name { font-size: 15px; }
.pm-who a, .pm-who .small { font-size: 12px; }
.pm-actions .btn { padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.pm-actions .icon-btn { width: 36px; height: 36px; }
.pm-folder select { height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.pm-tabs button { padding: 6px 0; font-size: 14px; }
.pm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pm-tile { padding: 9px 11px; border-radius: 10px; }
.pm-tile .l { font-size: 11px; }
.pm-tile .n { font-size: 17px; }
.pm-chart .chart-head h3 { font-size: 13px; }
.pm-body > .muted { font-size: 11px; }
@media (max-width: 700px) {
  .pm { grid-template-columns: 1fr; max-height: calc(100vh - 32px); }
  .pm-media { min-height: 300px; }
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.post .cover img[hidden] { display: none; }

/* ---------- Creator roster ---------- */
.ro-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0 4px; }
.ro-add input { flex: 1 1 340px; min-width: 0; border-radius: var(--pill); height: 42px; padding-top: 0; padding-bottom: 0; }
.ro-add button { height: 42px; }
.ro-add-msg { flex-basis: 100%; min-height: 1.2em; }
.ro-empty h3 { margin: 0 0 6px; }
.ro-av { position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: var(--parchment); color: var(--ink-80); display: grid; place-items: center; font-weight: 600; overflow: hidden; font-size: calc(var(--s) * 0.4); }
.ro-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ro-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ro-names { display: flex; flex-direction: column; min-width: 0; }
.ro-names b, .ro-names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ro-table table { min-width: 860px; }
.ro-row { cursor: pointer; }
.ro-row:hover td { background: var(--pearl); }
.ro-row:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: -2px; }
.ro-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 20px; }
.ro-stats .stat .n { font-size: clamp(18px, 1.9cqw, 24px); }
.ro-stats .stat .sub { font-size: 12px; color: var(--muted-48); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-basis { margin: 4px 0 16px; }
.ro-insights { margin: 0 0 16px; }
.ro-ins-empty { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ro-ins-empty p { max-width: 640px; }
.ro-ins-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ro-ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ro-insights h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ro-bars { display: grid; gap: 6px; }
.ro-bar { display: grid; grid-template-columns: minmax(0, 9em) 1fr 3.2em; gap: 8px; align-items: center; font-size: 13px; }
.ro-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-bar-t { height: 8px; border-radius: 4px; background: var(--divider); overflow: hidden; }
.ro-bar-t i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.ro-bar-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-80); }
.ro-split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.ro-split i:first-child { background: var(--accent); }
.ro-split i:last-child { background: #7aa7e6; }
.ro-split-l { display: flex; justify-content: space-between; font-size: 13px; margin-top: 6px; }
.ro-notable { display: flex; flex-wrap: wrap; gap: 6px; }
.ro-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: var(--pill); background: var(--parchment); font-size: 13px; color: var(--ink); }
.ro-chip:hover { text-decoration: none; background: #e8e8ed; }
.ro-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.ro-cols .panel { margin: 0; }
.ro-cols textarea { min-height: 120px; resize: vertical; }
.ro-camps { width: 100%; }
.ro-camps th, .ro-camps td { padding: 8px 6px; }
.ro-h3 { margin: 28px 0 12px; }
.ro-wall .cover { cursor: pointer; }
.ro-star { font-size: 17px; line-height: 1; color: var(--ink-80); }
.ro-star.on { color: #c58a00; }
a.ro-star { all: unset; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #c58a00; font-size: 17px; }
a.ro-star:hover { background: var(--parchment); }
@container (max-width: 900px) {
  .ro-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ro-ins-grid { grid-template-columns: 1fr 1fr; }
  .ro-cols { grid-template-columns: 1fr; }
}
@container (max-width: 560px) {
  .ro-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ro-ins-grid { grid-template-columns: 1fr; }
}

/* Roster: audience insights in the Influencers.club layout */
.ro-insights { --ic-f: #d97a93; --ic-m: #4a7fdc; display: grid; gap: 14px; margin: 0 0 16px; }
.ro-insights > .panel { margin: 0; }
.ic-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.ic-niche { background: var(--accent-tint); color: var(--accent); }
.ic-mail { background: #e8f5ec; color: #1f6b3d; }
.ic-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 16px -6px -6px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.ic-nav a { padding: 6px 10px; border-radius: var(--pill); color: var(--ink-80); font-size: 13px; white-space: nowrap; }
.ic-nav a span { color: var(--muted-48); font-variant-numeric: tabular-nums; margin-right: 6px; font-size: 11px; }
.ic-nav a:hover { background: var(--parchment); text-decoration: none; }
.ic-sec { scroll-margin-top: 16px; }
.ic-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ic-head h3 { margin: 0; font-size: 19px; }
.ic-n { font-size: 13px; color: var(--muted-48); font-variant-numeric: tabular-nums; }
.ic-sub { font-size: 13px; color: var(--muted-48); }
.ic-lead { margin: -6px 0 14px; max-width: 720px; }
.ic-cap { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ic-gap { margin-top: 22px; }
.ic-sigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.ic-sig { padding: 14px 16px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin: 0 -1px -1px 0; min-width: 0; }
.ic-sig .l { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-sig .n { font-size: 22px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ic-sig .n small { font-size: 13px; font-weight: 400; color: var(--muted); }
.ic-sig .s { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-sig.warn .n { color: #b4592a; }
.up { color: #1f7a45; } .down { color: #b4592a; }
.ic-stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.ic-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 13px; color: var(--ink-80); }
.ic-legend.col { flex-direction: column; gap: 8px; font-size: 15px; }
.ic-legend b, .ic-mini b { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.ic-verdict { margin: 12px 0 0; color: var(--ink-80); }
.ic-growth { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 16px 6px; }
.ic-growth-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ic-growth-top .ic-cap { margin: 0; }
.ic-seg { display: inline-flex; gap: 4px; }
.ic-seg button { padding: 4px 12px; font-size: 13px; border-radius: var(--pill); }
.ic-seg button.on { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.ic-growth-sum { font-size: 14px; color: var(--ink-80); margin: 10px 0 2px; }
.ic-gsvg { width: 100%; height: auto; display: block; overflow: visible; }
.ic-gsvg .area { fill: var(--accent-tint); }
.ic-gsvg .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.ic-gsvg .dot { fill: var(--canvas); stroke: var(--accent); stroke-width: 2.5; }
.ic-gsvg .val { font-size: 12px; font-weight: 600; fill: var(--ink); }
.ic-gsvg .ax { font-size: 11px; fill: var(--muted); }
.ic-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ic-two.flat { gap: 40px; }
.ic-card { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 16px 18px; }
.ic-mini { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 10px; }
.ic-mini b { width: 8px; height: 8px; margin: 0 4px 0 8px; }
.ic-donut-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ic-donut { width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--ic-f) 0 calc(var(--f) * 1%), var(--ic-m) 0); display: grid; place-items: center; flex: none; }
.ic-donut > div { width: 92px; height: 92px; border-radius: 50%; background: var(--canvas); display: grid; place-content: center; text-align: center; }
.ic-donut b { font-size: 22px; } .ic-donut span { font-size: 12px; color: var(--muted); }
.ic-ages { display: grid; gap: 9px; }
.ic-age { display: grid; grid-template-columns: 3.4em 1fr 3.4em; gap: 10px; align-items: center; font-size: 13px; }
.ic-age-t { display: flex; height: 8px; border-radius: 4px; background: var(--divider); overflow: hidden; }
.ic-age-t i { display: block; height: 100%; }
.ic-age-v { text-align: right; font-variant-numeric: tabular-nums; }
.ic-flags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ic-flag { display: flex; gap: 12px; align-items: center; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 16px; }
.ic-flag .ic-cap { margin: 0 0 2px; }
.ic-flag-i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--parchment); color: var(--muted); flex: none; font-weight: 600; }
.ic-flag.yes .ic-flag-i { background: #e8f5ec; color: #1f6b3d; }
.ic-spons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ic-spon { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; gap: 2px 10px; padding: 8px; border: 1px solid var(--hairline); border-radius: var(--r-md); color: var(--ink); min-width: 0; }
.ic-spon:hover { text-decoration: none; background: var(--pearl); }
.ic-spon-img { grid-row: span 2; width: 56px; height: 74px; border-radius: 8px; background: var(--parchment); overflow: hidden; }
.ic-spon-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-spon-t { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ic-spon-m { font-size: 12px; color: var(--muted); align-self: end; }
.ic-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ic-person { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1px solid var(--hairline); border-radius: var(--pill); color: var(--ink); min-width: 0; }
.ic-person:hover { text-decoration: none; background: var(--pearl); }
.ic-person-n { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; }
.ic-person-n b, .ic-person-n span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-person-n span { color: var(--muted); font-size: 12px; }
.ic-looks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ic-looks.ic-more { margin-top: 12px; }
.ic-look { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px 12px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.ic-look-a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); min-width: 0; max-width: 100%; }
.ic-look-a:hover { text-decoration: none; }
.ic-look-a .ro-av { margin-bottom: 6px; }
.ic-look-a b, .ic-look-a span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.ic-look-a span { font-size: 13px; }
.ic-look-f { font-size: 13px; color: var(--ink-80); }
.ic-look-add { margin-top: 8px; font-size: 13px; padding: 5px 12px; }
a.ic-look-add.on { color: #9a6c00; border-radius: var(--pill); background: #fdf3dc; }
a.ic-look-add.on:hover { text-decoration: none; }
@container (max-width: 1100px) {
  .ic-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ic-spons, .ic-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 760px) {
  .ic-sigs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ic-two, .ic-two.flat, .ic-flags { grid-template-columns: 1fr; gap: 16px; }
  .ic-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ic-spons, .ic-people { grid-template-columns: 1fr; }
  .ic-nav { flex-wrap: nowrap; overflow-x: auto; }
}
.ro-insights > * { min-width: 0; }
@container (max-width: 760px) {
  .ic-sig .l, .ic-sig .s { white-space: normal; }
}

/* Platforms (roster + Discover) */
.pf-ico { width: 18px; height: 18px; display: block; }
.ro-pfmini { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; color: var(--ink-80); }
.ro-pfmini .pf-ico { width: 14px; height: 14px; }
.ro-pfmini.lg { width: 22px; height: 22px; margin-right: 8px; vertical-align: -3px; color: inherit; }
.ro-pfmini.lg .pf-ico { width: 22px; height: 22px; }
.ro-handle { display: inline-flex; align-items: center; }
.ro-pf { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding-left: 14px; background: var(--canvas); border: 1px solid rgba(0,0,0,0.12); }
.ro-pf select { border: none; background-color: transparent; height: 40px; padding: 0 34px 0 2px; box-shadow: none !important; field-sizing: content; font-weight: 600; }
.ro-pf:focus-within { border-color: var(--accent-focus); box-shadow: 0 0 0 3px rgba(43,73,224,0.18); }
.ro-pf-ico { color: var(--ink); }

/* Discover */
.dc-credits { align-self: center; }
.dc-bar { display: flex; gap: 8px; align-items: center; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 5px; }
.dc-bar > * { margin: 0; }
.dc-sel { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 42px; padding-left: 14px; border-radius: var(--pill); background: var(--parchment); }
.dc-sel select { border: none; background-color: transparent; height: 42px; padding: 0 34px 0 4px; box-shadow: none !important; field-sizing: content; font-weight: 600; }
.dc-sel:not(.dc-pf) { padding-left: 4px; }
.dc-sel:focus-within { box-shadow: 0 0 0 3px rgba(43,73,224,0.18); }
.dc-bar input { flex: 1 1 auto; min-width: 0; border: none; height: 42px; box-shadow: none !important; padding: 0 10px; }
.dc-bar .primary { height: 42px; flex: none; }
.dc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.dc-filters-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding-top: 0; padding-bottom: 0; }
.dc-filters-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dc-count:not(:empty) { min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 19px; text-align: center; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1 1 200px; min-width: 0; }
.dc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 11px; border-radius: var(--pill); background: var(--accent-tint); color: var(--accent); font-size: 13px; max-width: 100%; }
.dc-chip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-chip button { all: unset; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; }
.dc-chip button:hover { background: rgba(6,38,199,0.12); }
.dc-sort { height: 38px; margin-left: auto; }
.dc-sort[hidden] { display: none; }
.dc-cost { margin: 4px 0 16px; }
.dc-res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 8px 0 10px; }
.dc-applied { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.dc-applied .ro-chip { font-size: 12px; padding: 3px 10px; }
.dc-table table { min-width: 640px; }
.dc-who { color: var(--ink); }
.dc-who:hover { text-decoration: none; }
.dc-who:hover b { text-decoration: underline; }
.dc-acts { text-align: right; white-space: nowrap; }
.dc-btn { font-size: 13px; padding: 6px 12px; margin-left: 6px; display: inline-block; border-radius: var(--pill); border: 1px solid rgba(0,0,0,0.12); background: var(--canvas); color: var(--ink); }
a.dc-btn.on { color: #9a6c00; background: #fdf3dc; border-color: transparent; }
a.dc-btn:hover { text-decoration: none; }
.dc-more-row { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 16px 0; }
.dc-recent { margin-top: 28px; }
.dc-recent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dc-recent-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 10px; text-align: left; padding: 10px 14px; border-radius: var(--r-md); align-items: center; }
.dc-recent-item .ro-pfmini { grid-row: span 2; width: 18px; height: 18px; margin: 0; }
.dc-recent-item .ro-pfmini .pf-ico { width: 18px; height: 18px; }
.dc-recent-q { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Discover: the filters window */
.dc-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: none; border-radius: var(--r-lg); background: var(--canvas); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,0.24); }
.dc-dialog::backdrop { background: rgba(0,0,0,0.35); }
.dc-dlg-in { display: flex; flex-direction: column; max-height: calc(100vh - 48px); margin: 0; }
.dc-dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px 12px; border-bottom: 1px solid var(--divider); }
.dc-x { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--muted); }
.dc-x:hover { background: var(--parchment); }
.dc-dlg-body { overflow-y: auto; padding: 8px 24px 24px; }
.dc-sec h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.dc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dc-grid.one { grid-template-columns: 1fr; }
.df { position: relative; min-width: 0; }
.df > summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px 0 14px; border: 1px solid var(--hairline); border-radius: var(--r-md); cursor: pointer; font-size: 14px; font-weight: 500; }
.df > summary::-webkit-details-marker { display: none; }
.df > summary svg { width: 16px; height: 16px; margin-left: auto; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.df[open] > summary svg { transform: rotate(180deg); }
.df-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.df-l i { font-style: normal; color: var(--muted-48); font-weight: 400; }
.df-v { color: var(--accent); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.df.on > summary { border-color: var(--accent); background: var(--accent-tint); }
.df[open] > summary { border-color: var(--accent-focus); }
.df-pop { position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); width: max(100%, 320px); max-width: calc(100vw - 64px); background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0,0,0,0.14); padding: 14px; display: grid; gap: 10px; }
.dc-grid > :nth-child(4n) .df-pop, .dc-grid > :nth-child(4n-1) .df-pop { left: auto; right: 0; }
.df-check { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: var(--r-md); font-size: 14px; font-weight: 500; cursor: pointer; }
.df-check input { width: 18px; height: 18px; margin: 0; flex: none; }
.df-check:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.df-range { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.df-range label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; flex: 1 1 90px; }
.df-range input, .df-range select { height: 38px; padding-top: 0; padding-bottom: 0; }
.df-range > span { padding-bottom: 10px; }
.df-opts { display: grid; gap: 6px; font-size: 14px; }
.df-opts label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.df-opts input { width: auto; margin: 0; }
.df-opts .link-btn { justify-self: start; }
.df-tags, .df-pick { display: grid; gap: 8px; }
.df-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.df-tag-list:empty { display: none; }
.df-tags input, .df-pick input { height: 38px; padding-top: 0; padding-bottom: 0; }
.df-pick-list { max-height: 220px; overflow-y: auto; display: grid; border: 1px solid var(--divider); border-radius: var(--r-sm, 8px); }
.df-pick-list button { all: unset; cursor: pointer; padding: 7px 10px; font-size: 14px; border-bottom: 1px solid var(--divider); }
.df-pick-list button:hover, .df-pick-list button:focus-visible { background: var(--accent-tint); }
.df-pick-list > span { padding: 8px 10px; }
.df-min { border-top: 1px solid var(--divider); padding-top: 10px; }
.df-has { display: flex; flex-wrap: wrap; gap: 6px; }
.df-has-i { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--hairline); border-radius: var(--pill); font-size: 13px; cursor: pointer; }
.df-has-i input { position: absolute; opacity: 0; pointer-events: none; }
.df-has-i .pf-ico { width: 15px; height: 15px; }
.df-has-i.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.df-has-i:focus-within { box-shadow: 0 0 0 3px rgba(43,73,224,0.18); }
.dc-grid.one .df > .df-pop { position: static; box-shadow: none; width: auto; margin-top: 8px; }
.dc-dlg-foot { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--divider); }
.dc-dlg-foot [data-reset] { margin-right: auto; }
@container (max-width: 1000px) { .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dc-grid > :nth-child(odd) .df-pop { left: 0; right: auto; } .dc-grid > :nth-child(even) .df-pop { left: auto; right: 0; } }
@media (max-width: 760px) {
  .dc-bar { flex-wrap: wrap; border-radius: var(--r-lg); }
  .dc-bar input { flex-basis: 100%; order: 3; border-top: 1px solid var(--divider); border-radius: 0; }
  .dc-bar .primary { order: 4; width: 100%; }
  .dc-grid { grid-template-columns: 1fr; }
  .dc-grid .df-pop { position: static; width: auto; max-width: none; box-shadow: none; margin-top: 6px; }
  .dc-recent-list { grid-template-columns: 1fr; }
  .dc-sort { margin-left: 0; }
  .dc-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .dc-dlg-in { max-height: 100dvh; height: 100%; }
  .dc-dlg-body { flex: 1; }
  .dc-acts .dc-btn { margin: 2px 0 2px 4px; }
}
.dc-chip { white-space: nowrap; }
.dc-chip b { min-width: 0; }
#dc-clear { white-space: nowrap; }
@media (max-width: 760px) {
  .dc-row .dc-chips { flex-basis: 100%; order: 2; }
  .dc-row .dc-sort { order: 1; }
  .dc-chip { max-width: calc(100vw - 48px); }
}
.dc-table { position: relative; }
.dc-dlg-foot [data-reset] { white-space: nowrap; }
@media (max-width: 760px) { #dc-dlg-n { display: none; } .dc-dlg-foot { padding: 12px 16px; } .dc-dlg-head, .dc-dlg-body { padding-left: 16px; padding-right: 16px; } }
/* Insights: credibility + interests */
.ic-subh { font-size: 15px; font-weight: 600; }
.ic-cred-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ic-score { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: var(--r-md); border: 1px solid #cfe5d6; background: #eef7f1; color: #1f6b3d; }
.ic-score b { font-size: 22px; }
.ic-score small { font-size: 12px; color: var(--muted); }
.ic-score i { font-style: normal; font-weight: 600; margin-left: 8px; padding-left: 8px; border-left: 1px solid currentColor; }
.ic-score.ic-normal { border-color: #f1dfb0; background: #fdf6e3; color: #8a6200; }
.ic-score.ic-low, .ic-score.ic-bad { border-color: #f0cdbd; background: #fbefe9; color: #9b4422; }
.ic-ints { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; }
.ic-ints > div { display: grid; gap: 9px; align-content: start; }
.ic-int { display: grid; grid-template-columns: minmax(0, 1fr) 90px 3.4em; gap: 10px; align-items: center; font-size: 13px; }
.ic-int-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-int-t { height: 8px; border-radius: 4px; background: var(--divider); overflow: hidden; }
.ic-int-t i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.ic-int-v { text-align: right; font-variant-numeric: tabular-nums; }
@container (max-width: 760px) { .ic-ints { grid-template-columns: 1fr; } }

/* Back: always in the same place, top left of the page; stays in reach while scrolling. */
.backbar { position: sticky; top: 14px; z-index: 45; height: 0; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.backbar[hidden], body.signin .backbar { display: none; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: var(--pill); font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,0.86); color: var(--ink); border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 10px rgba(0,0,0,0.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.back-btn:hover { background: #fff; }
.back-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.has-back .content > main { padding-top: 66px; }
body.has-back .content > main > .band:first-child { margin-top: -66px; padding-top: 66px; }
@media (max-width: 760px) {
  .backbar { position: relative; top: 0; height: auto; padding-top: 12px; }
  body.has-back .content > main { padding-top: 16px; }
  body.has-back .content > main > .band:first-child { margin-top: -16px; padding-top: 20px; }
}

/* Roster lists */
.ro-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.ro-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--hairline); background: var(--canvas); color: var(--ink); font-size: 14px; font-weight: 500; }
.ro-tab span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ro-tab:hover { text-decoration: none; background: var(--pearl); }
.ro-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ro-tab.on span { color: rgba(255,255,255,0.7); }
.ro-tab-new { border-style: dashed; color: var(--accent); }
.ro-listbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.ro-listbar-r { display: flex; gap: 8px; flex-wrap: wrap; }
.ro-seg { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--parchment); }
.ro-seg a { padding: 7px 18px; border-radius: var(--pill); color: var(--ink-80); font-size: 14px; font-weight: 500; }
.ro-seg a:hover { text-decoration: none; }
.ro-seg a.on { background: var(--canvas); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.12); font-weight: 600; }
.ro-x-cell { width: 40px; text-align: right; }
.ro-x { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); font-size: 18px; }
.ro-x:hover { background: var(--parchment); color: var(--ink); }
.ro-row.open td, .cmp-row.open td { background: var(--accent-tint) !important; }
.ro-ask { border: none; border-radius: var(--r-lg); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(0,0,0,0.24); color: var(--ink); background: var(--canvas); }
.ro-ask::backdrop { background: rgba(0,0,0,0.35); }
.ro-ask form { padding: 20px 22px; display: grid; gap: 14px; margin: 0; }
.ro-ask h3 { margin: 0; }
.ro-ask label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ro-ask .actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.ro-ask .actions [data-n] { margin-right: auto; }
.ro-pick { width: min(560px, calc(100vw - 32px)); }
.ro-pick-list { max-height: min(420px, 55vh); overflow-y: auto; display: grid; border: 1px solid var(--divider); border-radius: var(--r-md); }
.ro-pick-row { display: flex !important; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--divider); cursor: pointer; color: var(--ink) !important; font-weight: 400 !important; }
.ro-pick-row[hidden] { display: none !important; }
.ro-pick-row input { width: 18px; height: 18px; margin: 0; flex: none; }
.ro-pick-row:hover { background: var(--pearl); }
.ro-lists { position: relative; }
.ro-lists > summary { list-style: none; cursor: pointer; }
.ro-lists > summary::-webkit-details-marker { display: none; }
.ro-lists-pop { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: 280px; background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0,0,0,0.18); padding: 12px; display: grid; gap: 8px; font-size: 14px; }
.ro-lists-pop label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ro-lists-pop label input { width: 16px; height: 16px; margin: 0; }
.ro-lists-new { display: flex; gap: 6px; border-top: 1px solid var(--divider); padding-top: 10px; margin: 2px 0 0; }
.ro-lists-new input { height: 34px; padding-top: 0; padding-bottom: 0; font-size: 14px; }
.ro-lists-new button { height: 34px; padding-top: 0; padding-bottom: 0; }

/* Creator side panel */
.ro-drawer[hidden] { display: none; }
.ro-drawer-back { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0); transition: background 0.2s; }
.ro-drawer.in .ro-drawer-back { background: rgba(0,0,0,0.18); }
.ro-drawer-panel { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(880px, 64vw); background: var(--parchment); box-shadow: -18px 0 48px rgba(0,0,0,0.18); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.22s ease; }
.ro-drawer.in .ro-drawer-panel { transform: none; }
.ro-drawer-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--canvas); border-bottom: 1px solid var(--hairline); flex: none; }
.ro-drawer-nav { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ro-drawer-nav button { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; }
.ro-drawer-full { margin-left: auto; height: 34px; display: inline-flex; align-items: center; }
.ro-drawer-x { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: var(--muted); }
.ro-drawer-x:hover { background: var(--parchment); color: var(--ink); }
.ro-drawer-body { flex: 1; overflow-y: auto; container-type: inline-size; overscroll-behavior: contain; }
.ro-drawer-main { max-width: none; padding: 32px 24px 48px; }
@media (max-width: 760px) { .ro-drawer-panel { width: 100vw; } .ro-drawer-main { padding: 32px 16px 40px; } }

/* List comparison */
.cmp-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.cmp-controls .ov-sort { height: 38px; }
.cmp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cmp-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; }
.cmp-card .l, .cmp-mini .l { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.cmp-card .n { font-size: 26px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.cmp-card .s, .cmp-mini .s { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cmp-two .panel, .cmp-tablep, .cmp-missing, .ro-cmp-snip { margin: 0 0 14px; }
.cmp-two .panel { margin: 0; }
.cmp-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px; }
.cmp-h h3 { margin: 0; }
.cmp-bars { display: grid; gap: 4px; }
button.cmp-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: 10px; align-items: center; padding: 5px 8px; border-radius: var(--r-md); font-size: 13px; }
button.cmp-row:hover, button.cmp-row:focus-visible { background: var(--pearl); }
button.cmp-row.open { background: var(--accent-tint); }
.cmp-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cmp-n > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cmp-t { position: relative; height: 10px; border-radius: 5px; background: var(--divider); }
.cmp-fill { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 5px; }
.cmp-fill.neg { background: #b4592a; }
.cmp-avg { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); opacity: 0.55; z-index: 1; }
.cmp-avg-key { display: inline-block; width: 2px; height: 12px; background: var(--ink); opacity: 0.55; vertical-align: -2px; margin-right: 4px; }
.cmp-legend { margin: 8px 0 0; }
.cmp-val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.cmp-val small { color: var(--muted); font-weight: 400; }
.cmp-table table { min-width: 860px; }
.cmp-table tr.cmp-row { cursor: pointer; }
.cmp-table tr.cmp-row:hover td { background: var(--pearl); }
.cmp-table tfoot td { font-weight: 600; background: var(--pearl); border-bottom: 1px solid var(--divider); }
.cmp-table tfoot small { font-weight: 400; }
.cmp-v.up { color: #1f7a45; } .cmp-v.down { color: #b4592a; }
.cmp-rk { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmp-rk.top { color: #9a6c00; background: #fdf3dc; padding: 1px 6px; border-radius: var(--pill); font-weight: 600; }
.cmp-miss-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-miss { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border: 1px solid var(--hairline); border-radius: var(--pill); font-size: 13px; }
.cmp-miss button { font-size: 12px; padding: 4px 10px; }
.cmp-minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cmp-mini { min-width: 0; }
.cmp-mini .n { font-size: 20px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ro-cmp-snip { margin-top: 14px; }
@container (max-width: 900px) { .cmp-cards, .cmp-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmp-two { grid-template-columns: 1fr; } }
/* Side panel: dim and soften everything behind it so the panel is the only thing in focus. */
.ro-drawer-back { cursor: pointer; transition: background 0.22s ease, backdrop-filter 0.22s ease, -webkit-backdrop-filter 0.22s ease; }
.ro-drawer.in .ro-drawer-back { background: rgba(10,12,20,0.45); backdrop-filter: blur(3px) saturate(0.85); -webkit-backdrop-filter: blur(3px) saturate(0.85); }
.ro-drawer-panel { box-shadow: -24px 0 64px rgba(0,0,0,0.28); }
body.drawer-open { overflow: hidden; }
/* Benchmarks table: fixed value + rank slots, so every column lines up */
.cmp-table table { min-width: 0; width: 100%; table-layout: fixed; }
.cmp-table col.bm-c-name { width: 26%; }
.cmp-table th { white-space: normal; vertical-align: bottom; line-height: 1.3; padding: 12px 10px; }
.cmp-table th:first-child, .cmp-table td:first-child { padding-left: 18px; }
.cmp-table td { vertical-align: middle; padding: 14px 10px; }
.cmp-table th.num { text-align: right; }
.bm-h { display: inline-block; padding-right: 30px; }
.bm { display: grid; grid-template-columns: minmax(0, 1fr) 26px; column-gap: 4px; align-items: baseline; justify-items: end; font-variant-numeric: tabular-nums; }
.bm-v { white-space: nowrap; font-size: 15px; }
.bm-v.up { color: #1f7a45; } .bm-v.down { color: #b4592a; }
.bm-r { justify-self: start; font-size: 11px; color: var(--muted); }
.bm-r.top { color: #9a6c00; font-weight: 700; }
.bm-who { text-align: right; padding-right: 30px; font-size: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.bm-tag { display: inline-block; margin-top: 3px; font-size: 11px; padding: 1px 8px; border-radius: var(--pill); background: var(--parchment); color: var(--muted); width: fit-content; }
.cmp-table tfoot td { vertical-align: top; }
.cmp-table tfoot .bm-v { font-weight: 600; }
.cmp-table .ro-names b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 900px) { .cmp-table table { min-width: 760px; } .cmp-table col.bm-c-name { width: 190px; } }
/* List header: one calm toolbar */
.ro-title { display: flex; align-items: center; gap: 10px; }
.ro-more { position: relative; font-size: 15px; font-weight: 400; letter-spacing: 0; }
.ro-more > summary { list-style: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--muted); line-height: 1; }
.ro-more > summary::-webkit-details-marker { display: none; }
.ro-more > summary:hover, .ro-more[open] > summary { background: var(--parchment); color: var(--ink); }
.ro-more-pop { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; min-width: 180px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0,0,0,0.14); padding: 6px; display: grid; }
.ro-more-pop button { all: unset; cursor: pointer; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.ro-more-pop button:hover { background: var(--parchment); }
.ro-more-pop .danger-lite { color: #b4592a; }
.ro-listbar { justify-content: flex-start; padding: 8px; margin: 0 0 16px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--pill); }
.ro-listtools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: 1 1 auto; min-width: 0; }
.ro-listtools:empty { display: none; }
.ro-listtools .ov-sort { height: 36px; border-color: transparent; background: var(--parchment); }
.ro-listtools .ov-sort select { height: 34px; }
.ro-addto { margin-left: auto; height: 36px; padding-top: 0; padding-bottom: 0; border: none; background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.ro-addto:hover { background: #e2e7fc; }
@media (max-width: 760px) { .ro-listbar { border-radius: var(--r-lg); } .ro-addto { margin-left: 0; } }
/* Rank chips + focus benchmark */
.cmp-rank, .cmp-focus { margin: 0 0 14px; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.cmp-chip { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--pill); background: var(--parchment); border: 1px solid transparent; color: var(--ink-80); }
.cmp-chip.on { background: var(--ink); color: #fff; font-weight: 600; }
.cmp-chip:disabled { opacity: 0.45; cursor: default; }
.cmp-focus-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cmp-focus-top .ov-sort { height: 38px; }
.cmp-peers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 16px; }
.cmp-peer { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-md); opacity: 0.6; }
.cmp-peer.on { opacity: 1; border-color: var(--accent); background: var(--accent-tint); }
.cmp-peer:focus-visible { outline: 2px solid var(--accent-focus); }
.cmp-peer-t { display: grid; min-width: 0; gap: 1px; }
.cmp-peer-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-peer-t .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-sim { font-size: 11px; font-weight: 600; color: var(--accent); margin-left: 4px; }
.cmp-focus-grid { display: grid; gap: 14px; }
.cmp-ft { width: 100%; table-layout: fixed; }
.cmp-ft th { white-space: normal; }
.cmp-ft th:first-child, .cmp-ft td:first-child { width: 28%; }
.cmp-ft td, .cmp-ft th { padding: 10px 12px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.cmp-ft td.small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-diff { display: inline-block; min-width: 3.4em; padding: 1px 8px; border-radius: var(--pill); font-size: 12px; font-weight: 600; text-align: center; }
.cmp-diff.up { background: #e8f5ec; color: #1f6b3d; } .cmp-diff.down { background: #fbefe9; color: #9b4422; }
@container (max-width: 900px) { .cmp-ft { min-width: 640px; } }
/* Home (next to Back) and back to top */
.backbar { display: flex; gap: 8px; }
.backbar[hidden] { display: none; }
.home-btn[hidden] { display: none; }
.home-btn { padding: 0 14px 0 11px; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 46; width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(29,29,31,0.88); color: #fff; border: none; box-shadow: 0 6px 20px rgba(0,0,0,0.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #000; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.in-panel { position: absolute; right: 20px; bottom: 20px; }
body.signin .to-top { display: none; }
@media (max-width: 760px) { .to-top { right: 16px; bottom: 16px; } }
.tr-plat.tr-mom { background: var(--parchment); }
.tr-plat.tr-mom.up { background: #e8f5ec; color: #1f6b3d; }
.tr-plat.tr-mom.tt.up { background: #fde8f0; color: #a3164f; }
/* Trending tracks: one signal per column */
.tr-table { table-layout: fixed; width: 100%; min-width: 760px; }
.tr-table col.tr-c-n { width: 44px; } .tr-table col.tr-c-song { width: 32%; } .tr-table col.tr-c-sig { width: 40%; }
.tr-table col.tr-c-where { width: 15%; } .tr-table col.tr-c-score { width: 72px; }
.tr-table td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
.tr-table .tr-song { min-width: 0; }
.tr-table .tr-song > div { min-width: 0; }
.tr-table .tr-song .artist, .tr-table .tr-song .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sigs { white-space: nowrap; overflow: hidden; }
.tr-s { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 8px 3px 7px; margin-right: 4px; border-radius: var(--pill); background: var(--parchment); color: var(--ink-80); }
.tr-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.tr-s.tt::before { background: #e5326f; } .tr-s.sp::before { background: #1db954; } .tr-s.sz::before { background: #0a84ff; }
.tr-s b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tr-where { white-space: nowrap; font-size: 16px; line-height: 1; }
.tr-flag { margin-right: 4px; }
.tr-more { font-size: 12px; color: var(--muted); margin-left: 2px; }
.tr-score b { display: block; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-score i { display: block; height: 3px; margin: 5px 0 0 auto; width: var(--w); max-width: 56px; border-radius: 2px; background: var(--accent); opacity: .55; }
.tr-songlist li { padding: 16px 0; }
.tr-songlist .tr-song .artist { font-weight: 600; font-size: 15px; }
.tr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 12px 0 0; }
.tr-facts > div { min-width: 0; }
.tr-facts dt { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.tr-facts dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tr-facts dd span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.tr-facts dd.up span { color: #1f7a45; font-weight: 500; }
.tr-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tr-fflags { display: block; margin: 4px 0 0 !important; font-size: 16px; letter-spacing: 3px; line-height: 1.4; color: inherit !important; }
.tr-facts .tr-fflags { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 12px; margin: 8px 0 0 !important; font-size: 13px; letter-spacing: 0; font-weight: 400; color: var(--ink-80) !important; }
.tr-facts .tr-fflags span { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-80); font-weight: 400; }

/* ---------- Payouts (campaign tab + sidebar page) ---------- */
.camp-tabs { margin: 24px 0 0; }
.camp-tabs a { display: inline-block; padding: 7px 16px; border-radius: var(--pill); color: var(--ink-80); font-size: 14px; text-decoration: none; }
.camp-tabs a[aria-selected="true"] { background: var(--canvas); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.08); }
.camp-tabs a .muted { font-weight: 400; font-size: 12px; }
#app.camp-on-payouts .sh-controls, #app.camp-on-payouts #panel, #app.camp-on-payouts .camp-posts { display: none !important; }
.camp-payouts { margin-top: 20px; }
.po-stats { margin-bottom: 16px; }
.po-stats .stat .n { font-size: 20px; }
.po-stats .po-over .n { color: var(--bad); }
.po-cap { display: inline-flex; align-items: center; gap: 2px; font-size: inherit; color: inherit; margin: 0; }
.po-cap input { width: 46px; padding: 1px 4px; font-size: 13px; border-radius: 6px; text-align: right; }
.po-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.po-tools-r { display: flex; gap: 8px; }
.po-sec { margin: 0 0 24px; }
.po-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 8px; }
.po-sec-head h3 { margin: 0; font-size: 17px; }
.po-sec-name { font: inherit; font-size: 17px; font-weight: 600; border: 1px solid transparent; background: transparent; padding: 4px 8px; margin-left: -8px; width: auto; min-width: 120px; max-width: 320px; border-radius: 8px; }
.po-sec-name:hover { border-color: var(--hairline); }
.po-deliv { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.po-deliv .po-in { width: 70px; padding: 4px 6px; font-size: 13px; border-color: var(--hairline); }
.po-deliv .po-in.num { width: 64px; }
.po-sec-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-left: auto; font-size: 13px; color: var(--muted); }
.po-sec-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.po-sec-sum i { font-style: normal; font-weight: 600; font-size: 12px; padding: 1px 6px; border-radius: var(--pill); }
.po-sec-sum i.good, .po-pct.good { background: #e8f5ec; color: #1f6b3d; }
.po-sec-sum i.bad, .po-pct.bad { background: #fdecea; color: var(--bad); }
.po-pct { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--pill); white-space: nowrap; }
.po-table { table-layout: fixed; min-width: 1040px; }
.po-table col.c-who { width: 17%; } .po-table col.c-by { width: 11%; } .po-table col.c-n { width: 64px; } .po-table col.c-m { width: 92px; }
.po-table col.c-st { width: 196px; } .po-table col.c-p { width: 70px; } .po-table col.c-paid { width: 130px; } .po-table col.c-x { width: 64px; }
.po-table th { padding: 10px 8px; } .po-table th.num { text-align: right; }
.po-table td { padding: 4px 6px; vertical-align: middle; }
.po-in { font: inherit; font-size: 14px; border: 1px solid transparent; background: transparent; padding: 6px 6px; border-radius: 6px; width: 100%; min-width: 0; }
.po-in:hover { border-color: var(--hairline); }
.po-in:focus { background: var(--canvas); }
.po-in.num { text-align: right; font-variant-numeric: tabular-nums; }
.po-total { font-weight: 600; }
.po-who { display: flex; align-items: center; gap: 2px; }
td.po-who { display: table-cell; }
.po-who .po-handle { font-weight: 600; width: calc(100% - 22px); }
.po-open { font-size: 12px; color: var(--muted); padding: 0 2px; }
.po-status { font-size: 13px; font-weight: 600; padding: 4px 28px 4px 10px; border-radius: var(--pill); border: none; background-position: right 10px center; width: 100%; }
.po-status.s-contacted { background-color: var(--parchment); color: var(--ink-80); }
.po-status.s-waiting_draft { background-color: #fff4e0; color: #8a5300; }
.po-status.s-drafted { background-color: #eef1fd; color: var(--accent); }
.po-status.s-waiting_payment { background-color: #fdecf3; color: #a3164f; }
.po-status.s-paid { background-color: #e8f5ec; color: #1f6b3d; }
.po-posted { text-align: center; }
.po-count { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.po-count.ok { color: #1f6b3d; }
.po-check { display: inline-flex; vertical-align: middle; margin: 0; }
.po-check input { width: 16px; height: 16px; margin: 0; }
.po-paid { white-space: nowrap; }
.po-via { width: auto; font-size: 13px; padding: 3px 24px 3px 8px; background-position: right 8px center; border-color: var(--hairline); margin-right: 6px; }
.po-x { text-align: right; }
.po-x .link-btn, .po-sec-sum .link-btn { color: var(--muted); font-size: 13px; }
.po-x .link-btn:hover { color: var(--bad); }
tr.po-st-paid .po-in { color: var(--muted); }
.po-add { display: flex; gap: 8px; margin: 8px 0 0; max-width: 460px; }
.po-add input { padding: 7px 12px; font-size: 14px; }
.po-add button { padding: 7px 14px; }
.po-note { max-width: 760px; }
.po-dialog { border: none; border-radius: var(--r-lg); padding: 24px; width: min(620px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.po-dialog::backdrop { background: rgba(0,0,0,0.4); }
.po-dialog h2 { margin: 0 0 6px; }
.po-dialog label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 0; }
.po-dialog select, .po-dialog input, .po-dialog textarea { margin-top: 4px; font-weight: 400; }
.po-dialog textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: var(--pearl); }
@media (max-width: 700px) { .po-sec-sum { margin-left: 0; } .po-tools { flex-direction: column; align-items: stretch; } }
.po-sec .table-wrap { position: relative; }
.po-empty-guide .po-steps { margin: 0; padding-left: 20px; max-width: 760px; }
.po-empty-guide .po-steps li { margin: 0 0 6px; }
.po-example { opacity: 0.85; }
.po-example .po-sec-head h3 { margin: 0; }
.po-table-ex { min-width: 680px; table-layout: auto; }
.po-table-ex td { padding: 10px 10px; }
.po-pill { display: inline-block; padding: 4px 10px; width: auto; }
/* Sidebar in Stellar cobalt */
.sidebar { background: var(--accent); }
.sidebar .nav-label { color: rgba(255,255,255,0.6); }
.sidebar .nav-item { color: rgba(255,255,255,0.86); }
.sidebar .nav-item:hover { background: rgba(255,255,255,0.12); }
.sidebar .nav-item.on { background: rgba(255,255,255,0.2); box-shadow: inset 3px 0 0 #fff; }
.sidebar .nav-item .soon { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.35); }
.sidebar .nav-toggle { color: rgba(255,255,255,0.7); }
.sidebar .nav-item:focus-visible { outline-color: #fff; }
/* Folder settings panel */
.switch { display: inline-block; cursor: pointer; }
.switch input { width: 100%; height: 100%; padding: 0; border: 0; }
.fp { display: flex; flex-direction: column; gap: 12px; }
.fp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-name { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.fp-name input { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; border-color: transparent; background: transparent; padding: 4px 10px; margin-left: -10px; max-width: 420px; }
.fp-name input:hover { border-color: var(--hairline); }
.fp-name input:focus { background: var(--canvas); }
.fp-card { background: var(--pearl); border: 1px solid var(--divider); border-radius: var(--r-md); padding: 14px 16px; }
.fp-card > b { display: block; font-size: 15px; }
.fp-card p { margin: 4px 0 0; }
.fp-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fp-line b { font-size: 15px; }
.fp-card .share-row { margin: 12px 0 6px; }
.fp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fp-meta .link-btn { font-size: inherit; }
.fp-card .settings { margin-top: 12px; }
.fp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.fs-panel, #folder-panel { padding: 18px 20px; }
.fp-foot .danger-lite { color: var(--bad); }
.fp-more { margin-top: 10px; border-top: 1px solid var(--divider); padding-top: 10px; }
.fp-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.fp-more .settings { border-top: none; margin-top: 4px; padding-top: 0; }
.fp-more .settings > h2:first-child, .fp-more .settings > h3:first-child { margin-top: 8px; }
/* New folder panel */
.nf-panel { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 14px 16px; margin: 0 0 16px; }
.nf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nf-row label { font-weight: 600; font-size: 14px; margin: 0; }
.nf-row input { flex: 1 1 260px; padding: 8px 14px; }
.nf-panel p { margin: 8px 0 0; }
/* Analytics: hero numbers, tabs, regions, campaigns */
.an-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.an-hero-card { background: var(--canvas); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hairline); padding: 20px 22px; min-width: 0; }
.an-hero-card .l { font-size: 14px; color: var(--muted); font-weight: 500; }
.an-hero-card .n { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.an-hero-card .d { font-size: 13px; color: var(--muted); }
.an-hero-card.main { background: var(--accent); box-shadow: none; color: #fff; }
.an-hero-card.main .l, .an-hero-card.main .d { color: rgba(255,255,255,0.78); }
.an-mini { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 2px 0; font-size: 14px; color: var(--muted); }
.an-mini b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.an-tabs { margin-top: 22px; }
.an-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.an-region { border: 1px solid var(--divider); border-radius: var(--r-md); padding: 14px 16px; background: var(--pearl); outline: none; }
.an-region:hover, .an-region:focus-visible { border-color: var(--hairline); background: var(--canvas); }
.an-region-top { display: flex; align-items: center; gap: 8px; }
.an-region-top .muted { margin-left: auto; }
.an-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.an-region-n { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.an-rbar { display: block; height: 6px; border-radius: var(--pill); background: var(--divider); overflow: hidden; }
.an-rbar i { display: block; height: 100%; border-radius: var(--pill); }
.an-region-m { font-size: 13px; margin-top: 10px; }
.an-region-m b, .an-mcell b { font-variant-numeric: tabular-nums; }
.an-region-m b.neg, .an-mcell b.neg { color: var(--bad); }
.an-sort button { padding: 4px 12px; font-size: 12px; }
.an-camps-wrap { box-shadow: none; border: none; }
.an-camps { table-layout: fixed; min-width: 620px; }
.an-camps col.c-rev, .an-camps col.c-cost { width: 120px; } .an-camps col.c-m { width: 220px; }
.an-camps td { vertical-align: middle; padding: 10px 12px; }
.an-camps th { padding: 10px 12px; }
.an-cname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-camps td .muted.small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-mcell { display: flex; align-items: center; gap: 10px; }
td.an-mcell { display: table-cell; }
.an-mcell .an-mbar { display: inline-block; vertical-align: middle; width: 120px; height: 8px; border-radius: var(--pill); background: var(--divider); overflow: hidden; margin-right: 10px; }
.an-mbar i { display: block; height: 100%; border-radius: var(--pill); background: #1baf7a; }
.an-mbar i.low { background: #eda100; }
.an-mbar i.neg { background: var(--bad); }
.an-more { margin-top: 8px; }
@media (max-width: 760px) { .an-hero { grid-template-columns: 1fr; } .an-hero-card .n { font-size: 32px; } }
/* Analytics: demo-style grouped columns and light read-out */
svg.gb { display: block; overflow: visible; }
svg.gb .grid line { stroke: var(--divider); }
svg.gb .grid line.zero { stroke: var(--hairline); }
svg.gb .grid text, svg.gb .gb-x { font-size: 12px; fill: var(--muted); }
svg.gb .gb-x { fill: var(--ink-80); font-size: 13px; }
svg.gb path { pointer-events: none; transition: opacity 0.15s; }
svg.gb .gb-hit { fill: transparent; transition: fill 0.12s; cursor: default; outline: none; }
svg.gb .gb-g:hover .gb-hit, svg.gb .gb-hit:focus-visible { fill: var(--accent-tint); }
.tip.tip-light { background: rgba(255,255,255,0.97); color: var(--ink); box-shadow: 0 0 0 1px var(--hairline), 0 8px 24px rgba(0,0,0,0.12); padding: 12px 14px; font-size: 14px; min-width: 190px; left: 0; top: 0; transition: none; will-change: transform; backdrop-filter: none; -webkit-backdrop-filter: none; }
.tip.tip-light .tip-date { font-size: 15px; margin-bottom: 8px; }
.tip.tip-light .tip-row { padding: 3px 0; }
.tip.tip-light .tip-row span { color: var(--muted); }
.an-mtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 18px; }
.an-mtile { background: var(--accent-tint); border-radius: var(--r-md); padding: 12px 14px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.an-mtile span { font-size: 13px; color: var(--muted); }
.an-mtile b { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.an-mtile b.neg { color: var(--bad); }
.an-mtile i { font-style: normal; font-size: 11px; color: var(--muted); }
/* Analytics: pies, view switch, smaller hero */
.an-head-r { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.an-view button { padding: 4px 12px; font-size: 12px; }
.an-hero-sm { margin-top: 18px; }
.an-hero-sm .an-hero-card .n { font-size: 32px; }
.an-n-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-labelsplit { margin: 0 0 14px; max-width: 520px; }
.an-donut { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.an-donut svg { flex: none; overflow: visible; }
.an-donut path { cursor: default; transition: opacity 0.15s, transform 0.15s; transform-origin: 110px 110px; outline: none; }
.an-donut.dim path:not(.on), .an-donut.dim li:not(.on) { opacity: 0.35; }
.an-donut path.on { transform: scale(1.03); }
.dn-total { font-family: var(--font-display); font-size: 22px; font-weight: 600; fill: var(--ink); }
.dn-sub { font-size: 12px; fill: var(--muted); }
.dn-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 280px; max-width: 520px; min-width: 0; display: grid; gap: 2px; }
.dn-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; padding: 5px 8px; border-radius: var(--r-sm); font-size: 13px; transition: opacity 0.15s, background 0.15s; outline: none; }
.dn-legend li.on { background: var(--accent-tint); }
.dn-legend i { width: 10px; height: 10px; border-radius: 3px; }
.dn-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dn-legend em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .an-donut { justify-content: center; } .dn-legend { flex-basis: 100%; } }
/* ---------- Invoices ---------- */
.inv-hero { margin-top: 12px; }
.inv-hero .inv-n { font-size: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-hero .inv-late .n { color: var(--bad); }
.inv-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; margin-left: 4px; }
.inv-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: var(--pill); white-space: nowrap; }
.inv-pill.s-requested { background: #fff4e0; color: #8a5300; }
.inv-pill.s-returned { background: #fdecf3; color: #a3164f; }
.inv-pill.s-invoiced { background: var(--accent-tint); color: var(--accent); }
.inv-pill.s-paid { background: #e8f5ec; color: #1f6b3d; }
.inv-pill.s-cancelled { background: var(--parchment); color: var(--muted); }
.inv-pill.overdue { background: #fdecea; color: var(--bad); }
.inv-split { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.inv-list { display: flex; flex-direction: column; gap: 10px; }
.inv-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; background: var(--canvas); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hairline); padding: 14px 16px; transition: box-shadow 0.15s; }
.inv-item:hover { box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }
.inv-item.on { box-shadow: 0 0 0 2px var(--accent); }
.inv-item:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.inv-item-top, .inv-item-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inv-item b { font-size: 15px; }
.inv-item-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-item-bot b { font-variant-numeric: tabular-nums; }
.inv-card { background: var(--canvas); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hairline); padding: 20px 22px; position: sticky; top: 76px; }
.inv-d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.inv-d-head h2 { margin: 2px 0 2px; }
.inv-amount { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.inv-amount .muted { font-family: var(--font); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.inv-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; margin: 0; padding: 14px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.inv-dl dt { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.inv-dl dd { margin: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.inv-d-lines { margin: 14px 0 0; display: grid; gap: 6px; }
.inv-d-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 10px; background: var(--pearl); border-radius: var(--r-sm); }
.inv-note { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--parchment); }
.inv-note.fin { background: #fdecf3; }
.inv-note p { margin: 4px 0 0; font-size: 14px; white-space: pre-wrap; }
.inv-actions { margin-top: 16px; display: grid; gap: 12px; }
.inv-do { background: var(--pearl); border: 1px solid var(--divider); border-radius: var(--r-md); padding: 14px 16px; }
.inv-do-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; }
.inv-do-row label { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0; display: flex; flex-direction: column; gap: 4px; }
.inv-do-row input, .inv-do-row select { padding: 8px 12px; font-size: 14px; width: auto; }
.inv-due { align-self: center; }
.inv-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 14px !important; font-weight: 500 !important; color: var(--ink) !important; }
.inv-check input { width: 16px; height: 16px; margin: 0; }
.inv-dialog .inv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.inv-amt { display: flex; gap: 6px; }
.inv-amt input { flex: 1; }
.inv-amt select { width: 96px; flex: none; }
.inv-lines { margin: 14px 0 0; padding: 12px 14px; background: var(--pearl); border-radius: var(--r-md); }
.inv-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 14px; }
.inv-line input { width: 140px; padding: 6px 10px; text-align: right; margin: 0; }
.inv-warn { background: #fff4e0; color: #8a5300; padding: 8px 12px; border-radius: var(--r-sm); }
.inv-team-list { display: grid; gap: 8px; margin-top: 10px; }
.inv-team-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.inv-team-list span { display: flex; flex-direction: column; }
.inv-team-list select, .inv-team .inv-do-row select { width: auto; padding: 6px 34px 6px 10px; font-size: 13px; }
@media (max-width: 900px) { .inv-split { grid-template-columns: 1fr; } .inv-card { position: static; } .inv-dialog .inv-form { grid-template-columns: 1fr; } }
.inv-dialog textarea { font-family: var(--font); font-size: 14px; }
/* Analytics: zooming into a chart */
.an-zoomable { cursor: pointer; }
.hb-row.an-zoomable:hover .hb-label { color: var(--accent); }
.dn-legend li.an-zoomable:hover span { color: var(--accent); }
#an-out { transition: transform 0.17s ease-in, opacity 0.17s ease-in; }
#an-out.an-zooming { transform: scale(1.06); opacity: 0; }
@keyframes an-zoom-in { from { transform: scale(0.86); opacity: 0; filter: blur(4px); } 60% { filter: blur(0); } to { transform: none; opacity: 1; } }
@keyframes an-zoom-out { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
#app.an-zoom-in { animation: an-zoom-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
#app.an-zoom-out { animation: an-zoom-out 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) { #app.an-zoom-in, #app.an-zoom-out { animation: none; } #an-out.an-zooming { transform: none; } }
.an-crumbs { font-size: 14px; color: var(--muted); margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.an-crumbs a { color: var(--accent); }
/* ---------- Campaign overview (cleaner) ---------- */
.ov2-head h1 { margin: 0; }
.ov2-sync { margin: 8px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ov2-sync > i { width: 7px; height: 7px; border-radius: 50%; background: #1baf7a; margin-right: 4px; }
.ov2-sync > i.bad { background: var(--bad); }
.ov2-sync .link-btn { font-size: 13px; }
.ov2-sum { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 30px 2px 30px; }
.ov2-sum .n { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ov2-sum .l { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ov2-sum .warn .n { color: #8a5300; }
.ov2-bar { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ov2-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--hairline); flex: 1 1 420px; overflow-x: auto; scrollbar-width: none; }
.ov2-tabs button { all: unset; cursor: pointer; padding: 0 0 12px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.ov2-tabs button:hover { color: var(--ink); }
.ov2-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.ov2-tabs button:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; border-radius: 4px; }
.ov2-tabs b { font-weight: 400; font-size: 13px; margin-left: 5px; color: var(--muted-48); }
.ov2-search { position: relative; flex: 0 1 260px; margin-bottom: 4px; }
.ov2-search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.ov2-search input { height: 38px; padding: 0 14px 0 36px; border-radius: var(--pill); font-size: 14px; margin: 0; }
.ov2-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; position: relative; margin-bottom: 4px; }
.ov2-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-80); stroke-width: 1.8; stroke-linecap: round; }
.ov2-icon.on { border-color: var(--accent); }
.ov2-icon .ov-count { position: absolute; top: -4px; right: -4px; }
.ov2-sortlbl { grid-column: 1 / -1; }
.ov2-cols, .ov2-row { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) 124px minmax(0, 1fr) minmax(0, 0.7fr) 92px 112px 108px; gap: 18px; align-items: center; }
.ov2-cols { padding: 0 20px 6px; position: sticky; top: 0; z-index: 4; background: var(--parchment); }
body.has-back .ov2-cols { top: 56px; }
.ov2-cols > * { font-size: 12px; color: var(--muted); font-weight: 500; }
.ov2-cols button { all: unset; cursor: pointer; font-size: 12px; color: var(--muted); }
.ov2-cols button:hover, .ov2-cols button.on { color: var(--ink); }
.ov2-cols button i { font-style: normal; margin-left: 4px; }
.ov2-cols .num { text-align: right; } .ov2-cols .end { text-align: right; }
.ov2-month { display: flex; justify-content: space-between; margin: 24px 4px 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ov2-month span:last-child { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ov2-month:first-of-type { margin-top: 8px; }
.ov2-list { display: flex; flex-direction: column; gap: 8px; }
.ov2-flat { margin-top: 8px; }
.ov2-row { padding: 14px 20px; background: var(--canvas); border-radius: 16px; box-shadow: 0 0 0 1px rgba(0,0,0,0.05); cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.ov2-row:hover { box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
.ov2-row.sel { box-shadow: 0 0 0 2px var(--accent); }
.ov2-row:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.ov2-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent); background: var(--accent-tint); flex: none; }
.ov2-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov2-av.big { width: 60px; height: 60px; font-size: 20px; }
.ov2-t { min-width: 0; }
.ov2-t b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov2-t span { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ov2-po { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-80); background: var(--parchment); border-radius: var(--pill); padding: 2px 3px 2px 10px; white-space: nowrap; }
.ov2-po .copy-btn { width: 24px; height: 24px; }
.ov2-po.none { color: var(--muted); font-weight: 400; background: none; padding-left: 0; }
.ov2-c { font-size: 14px; color: var(--ink-80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov2-when b { display: block; font-size: 14px; font-weight: 500; color: var(--ink-80); }
.ov2-when small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov2-price { text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov2-price span { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 3px; }
.ov2-price em { display: block; font-style: normal; font-weight: 500; font-size: 12px; color: #8a5300; margin-top: 2px; }
.ov2-st { justify-self: end; }
.ov2-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--pill); white-space: nowrap; }
.ov2-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ov2-pill.live { color: #1f6b3d; background: #eef8f1; }
.ov2-pill.soon { color: var(--accent); background: var(--accent-tint); }
.ov2-pill.hold { color: #8a5300; background: #fff6e6; }
.ov2-pill.done { color: var(--muted); background: var(--parchment); }
.ov2-empty { margin-top: 8px; }
/* side panel */
.ov2-drawer[hidden] { display: none; }
.ov2-back { position: fixed; inset: 0; z-index: 60; background: rgba(10,14,40,0); transition: background 0.2s; }
.ov2-drawer.in .ov2-back { background: rgba(10,14,40,0.22); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.ov2-panel { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: var(--canvas); box-shadow: -20px 0 60px rgba(0,0,0,0.16); padding: 22px 30px 26px; overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ov2-drawer.in .ov2-panel { transform: none; }
.ov2-ptop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.ov2-nav { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.ov2-nav button { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; }
.ov2-nav span { margin-left: 6px; }
.ov2-x { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: var(--muted); }
.ov2-x:hover { background: var(--parchment); color: var(--ink); }
.ov2-ph { display: flex; gap: 16px; align-items: center; }
.ov2-ph h2 { margin: 0; font-size: 26px; }
.ov2-ph .muted { font-size: 15px; }
.ov2-phkeys { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ov2-track { display: flex; align-items: center; margin: 26px 0 8px; }
.ov2-track i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.ov2-track i.on { background: var(--accent); }
.ov2-track b { flex: 1; height: 2px; background: var(--hairline); }
.ov2-track b.on { background: var(--accent); }
.ov2-trackl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.ov2-trackl .on { color: var(--ink); font-weight: 600; }
.ov2-big { display: flex; gap: 36px; margin-bottom: 22px; }
.ov2-big b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ov2-big b small { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--muted); }
.ov2-big span { font-size: 13px; color: var(--muted); }
.ov2-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; padding: 18px 0; margin: 0; border-top: 1px solid var(--divider); }
.ov2-facts dt { font-size: 12px; color: var(--muted); }
.ov2-facts dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.ov2-more summary { cursor: pointer; font-size: 14px; color: var(--accent); font-weight: 500; padding: 4px 0; }
.ov2-all { display: grid; gap: 14px; margin-top: 12px; }
.ov2-all section { background: var(--pearl); border-radius: var(--r-md); padding: 12px 14px; }
.ov2-all h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.ov2-all p { margin: 0; font-size: 14px; white-space: pre-wrap; }
.ov2-next { margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: var(--pearl); border: 1px solid var(--divider); }
.ov2-next.warn { background: #fff8ec; border-color: #f4e2bf; }
.ov2-next small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.ov2-next div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ov2-next span { font-size: 14px; }
.ov2-next .btn, .ov2-next button { flex: none; }
.ov2-pfoot { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; align-items: flex-start; }
.ov2-pfoot > .btn, .ov2-pfoot > button { flex: 1; text-align: center; justify-content: center; }
.ov2-menu { position: relative; }
.ov2-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); display: grid; place-items: center; font-size: 18px; }
.ov2-menu summary::-webkit-details-marker { display: none; }
.ov2-menu > div { position: absolute; right: 0; bottom: calc(100% + 8px); background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0,0,0,0.12); padding: 6px; min-width: 220px; display: grid; }
.ov2-menu > div a, .ov2-menu > div button { all: unset; cursor: pointer; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink); }
.ov2-menu > div a:hover, .ov2-menu > div button:hover { background: var(--parchment); text-decoration: none; }
.ov2-menu > div .danger { color: var(--bad); }
@media (max-width: 1000px) {
  .ov2-cols { display: none; }
  .ov2-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "av t st" "av po price"; gap: 4px 14px; }
  .ov2-row > :nth-child(1) { grid-area: av; } .ov2-row > :nth-child(2) { grid-area: t; } .ov2-row > :nth-child(3) { grid-area: po; }
  .ov2-row > :nth-child(4), .ov2-row > :nth-child(5), .ov2-row > :nth-child(6) { display: none; }
  .ov2-row > :nth-child(7) { grid-area: price; } .ov2-row > :nth-child(8) { grid-area: st; }
  .ov2-sum { gap: 12px 28px; } .ov2-sum .n { font-size: 24px; }
  .ov2-search { flex: 1 1 200px; }
}
/* ---------- Campaign page overhaul ---------- */
.camp-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--parchment); border-radius: var(--pill); }
.camp-tabs button { border: none; background: transparent; padding: 7px 18px; border-radius: var(--pill); color: var(--ink-80); font-size: 14px; font-weight: 500; }
.camp-tabs button[aria-selected="true"] { background: var(--canvas); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.08); }
.camp-tabs button .muted { font-weight: 400; font-size: 12px; }
.camp-menu { position: relative; display: inline-block; }
.camp-menu > summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--hairline); background: var(--canvas); font-weight: 600; line-height: 1; }
.camp-menu > summary::-webkit-details-marker { display: none; }
.camp-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; background: var(--canvas); border-radius: 12px; padding: 6px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.1), 0 10px 30px rgba(0,0,0,0.14); display: flex; flex-direction: column; }
.camp-menu > div a, .camp-menu > div button { display: block; text-align: left; padding: 9px 12px; border: none; background: none; border-radius: 8px; color: var(--ink); font-size: 14px; text-decoration: none; font-weight: 400; }
.camp-menu > div a:hover, .camp-menu > div button:hover { background: var(--pearl); }
.camp-menu > div .danger { color: var(--bad); }
.team-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: var(--pill); background: #eef1fd; color: var(--accent); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.camp-budget dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.camp-inv { font-size: 12px; text-decoration: none; }
.posts-updated { margin: -4px 0 12px; }
.share-dialog { border: none; border-radius: var(--r-lg); padding: 24px 24px 8px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.share-dialog::backdrop { background: rgba(0,0,0,0.4); }
.share-dialog .share-panel { margin: 0; }
.share-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--parchment); font-size: 18px; line-height: 1; padding: 0; color: var(--ink-80); }
.set-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.set-head h3 { margin: 0; }
.set-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
/* Payouts, lighter */
.po2-sum { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 16px 28px; align-items: end; padding: 4px 0 18px; border-bottom: 1px solid var(--hairline); margin: 0 0 18px; position: relative; }
.po2-sum .n { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.po2-sum .po2-main .n { font-size: 28px; color: var(--accent); }
.po2-sum .l { font-size: 13px; color: var(--muted); margin-top: 2px; }
.po2-sum .po2-over .n { color: var(--bad); }
.po2-bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--parchment); overflow: hidden; }
.po2-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.po2-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.po2-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.po2-filter button { border: none; background: none; padding: 6px 12px; border-radius: var(--pill); font-size: 13px; color: var(--ink-80); }
.po2-filter button[aria-selected="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.po2-tools .po-tools-r { gap: 18px; font-size: 14px; }
.po-sec { margin: 0 0 32px; }
.po-sec-head { border-bottom: 1px solid var(--hairline); padding-bottom: 6px; margin-bottom: 0; }
.po-tablewrap { overflow-x: auto; position: relative; }
.po-table thead th { background: none; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--hairline); text-transform: none; }
.po-table tbody td { border-bottom: 1px solid rgba(0,0,0,0.05); }
.po-table tbody tr:hover td { background: var(--pearl); }
.po-add { margin-top: 6px; }
.po-add input { border-color: transparent; background: transparent; padding-left: 6px; }
.po-add input:focus { border-color: var(--hairline); background: var(--canvas); }
.po-add button { display: none; }
.po-add:focus-within button { display: inline-block; }
.po-empty td { padding: 14px 6px !important; }
@media (max-width: 700px) {
  .po2-sum { grid-template-columns: 1fr 1fr; }
  .po2-sum .po2-main { grid-column: 1 / -1; }
  .po2-tools { flex-direction: column; align-items: stretch; }
}
.art-band .hero-actions .camp-menu > summary { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.28); font-size: 18px; padding: 6px 14px 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.art-band .hero-actions .camp-menu > summary:hover { background: rgba(255,255,255,0.24); }
.art-band .hero-actions .camp-menu > div { position: fixed; right: auto; z-index: 60; }
.art-band .hero-actions .camp-menu > div a, .art-band .hero-actions .camp-menu > div button { background: none; color: var(--ink); border: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: 100%; }
.art-band .hero-actions .camp-menu > div a:hover, .art-band .hero-actions .camp-menu > div button:hover { background: var(--pearl); }
.art-band .hero-actions .camp-menu > div .danger { color: var(--bad); }
.share-dialog .set-head { margin-top: 20px; }
.share-dialog .set-head:first-of-type { margin-top: 8px; }
/* ---------- Menu opens on hover (desktop) ---------- */
.brand-mark { display: none; }
body.nav-collapsed .brand-mark { display: block; width: 32px; height: 32px; border-radius: 9px; background: none; }
.brand .brand-mark { flex: none; }
.sidebar { overflow-x: hidden; transition: width 0.34s cubic-bezier(.2,.8,.2,1), padding 0.34s cubic-bezier(.2,.8,.2,1), box-shadow 0.34s ease; }
.sidebar .nav-item, .sidebar .brand, .sidebar .who .email { white-space: nowrap; }
body.nav-peek .content { margin-left: var(--nav-w); }
body.nav-peek .sidebar { box-shadow: 14px 0 44px rgba(4, 20, 110, 0.28); }
body.nav-peek .sidebar .nav-item span, body.nav-peek .sidebar .nav-label, body.nav-peek .sidebar .brand img, body.nav-peek .sidebar .brand span, body.nav-peek .sidebar .who .email { animation: nav-fade 0.3s 0.1s both; }
@keyframes nav-fade { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } body.nav-peek .sidebar * { animation: none !important; } }

/* ---------- Artist banner as a floating card ---------- */
main .art-band { margin: -12px 0 0 !important; padding: 24px 36px 32px !important; border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.10); }
main .art-band::before, .content .art-band::before { display: none; }
main .art-band::after { background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,.62) 100%); }
main .art-band ~ * .camp-details, main .art-band ~ .camp-details, .camp-details { position: relative; z-index: 2; margin: -48px 20px 0 !important; box-shadow: 0 8px 28px rgba(0,0,0,.10); border-color: transparent; }
main:has(.camp-details) .art-band { padding-bottom: 72px !important; }
@media (max-width: 700px) {
  main .art-band { padding: 18px 18px 28px !important; border-radius: 20px; }
  main:has(.camp-details) .art-band { padding-bottom: 64px !important; }
  .camp-details { margin: -44px 10px 0 !important; }
}
.brand img.brand-mark { display: none; }
body.nav-collapsed .brand img.brand-mark { display: block; }
@media (max-width: 900px) { body .brand img.brand-mark { display: none !important; } }
/* Closed menu: no strip, faint icons on the page background */
.sidebar { transition: width 0.34s cubic-bezier(.2,.8,.2,1), padding 0.34s cubic-bezier(.2,.8,.2,1), box-shadow 0.34s ease, background-color 0.3s ease; }
@media (min-width: 901px) {
  body.nav-collapsed .sidebar { background: transparent; }
  body.nav-collapsed .sidebar .nav-item { color: rgba(0,0,0,0.38); }
  body.nav-collapsed .sidebar .nav-item:hover { background: rgba(0,0,0,0.05); color: var(--ink); }
  body.nav-collapsed .sidebar .nav-item.on { background: none; color: var(--accent); box-shadow: none; }
  body.nav-collapsed .sidebar .nav-label { background: transparent; }
  body.nav-collapsed .sidebar .who { border-color: transparent; }
  body.nav-collapsed .sidebar .who button { color: rgba(0,0,0,0.38); border-color: transparent; }
}
/* The open menu pushes the page aside instead of covering it */
.content { transition: margin-left 0.34s cubic-bezier(.2,.8,.2,1); }
body.nav-peek .sidebar { box-shadow: none; }
/* Overview columns: one clean grid, labels sit exactly over what they describe */
.ov2-cols, .ov2-row { grid-template-columns: 44px minmax(0, 1.5fr) 128px minmax(0, 1fr) 120px 104px 120px 96px; gap: 20px; }
.ov2-cols { padding: 10px 20px 8px; border-bottom: 1px solid var(--hairline); margin-bottom: 4px; }
.ov2-cols .first { grid-column: 1 / span 2; }
.ov2-cols .po-h { padding-left: 10px; margin: 0; }
.ov2-cols .num { text-align: right; justify-self: end; }
.ov2-st { justify-self: start; }
.ov2-month { margin: 22px 20px 10px; }
.ov2-month:first-of-type { margin-top: 14px; }
/* Not enough room for every column (narrow window, or the menu open): compact two-line cards */
@container (max-width: 1060px) {
  .ov2-cols { display: none; }
  .ov2-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "av t st" "av po price"; gap: 4px 14px; }
  .ov2-row > :nth-child(1) { grid-area: av; } .ov2-row > :nth-child(2) { grid-area: t; } .ov2-row > :nth-child(3) { grid-area: po; }
  .ov2-row > :nth-child(4), .ov2-row > :nth-child(5), .ov2-row > :nth-child(6) { display: none; }
  .ov2-row > :nth-child(7) { grid-area: price; } .ov2-row > :nth-child(8) { grid-area: st; justify-self: end; }
}
.ov2-icon svg { display: block; }
.ov2-icon { margin-bottom: 0; }
.ov-filt .ov2-icon { justify-content: center; align-items: center; }
/* ⋯ menu on the campaign page floats above everything */
.camp-menu-pop { position: fixed; z-index: 200; min-width: 200px; background: var(--canvas); border-radius: 12px; padding: 6px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.1), 0 10px 30px rgba(0,0,0,0.16); display: flex; flex-direction: column; }
.camp-menu:not([open]) > .camp-menu-pop { display: none; }
.camp-menu-pop a, .camp-menu-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: none; background: none; border-radius: 8px; color: var(--ink); font-size: 14px; text-decoration: none; font-weight: 400; }
.camp-menu-pop a:hover, .camp-menu-pop button:hover { background: var(--pearl); text-decoration: none; }
.camp-menu-pop .danger { color: var(--bad); }
/* ---------- Post tiles: bigger, quieter, numbers you can read ---------- */
.wall { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 18px; }
.post { border: none; border-radius: 18px; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); background: var(--tile); }
.post .cover { aspect-ratio: 9 / 14; }
.post .cover::after { inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.72)); }
.post .tile-top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1; display: flex; justify-content: flex-start; pointer-events: none; }
.post .cover .tile-top .chip { position: static; font-size: 12px; font-weight: 500; padding: 4px 10px; background: rgba(0,0,0,0.42); }
.post .chip.tl, .post .chip.tr { display: none; }
.post .cover .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 14px 13px; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.post .cover .cap .cap-who { font-size: 13px; font-weight: 600; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .cover .cap .cap-views { font-size: 13px; opacity: 0.9; }
.post .cover .cap .plays { position: static; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-right: 2px; opacity: 1; }
.post .cap-more { display: flex; gap: 12px; font-size: 12px; font-variant-numeric: tabular-nums; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.2s ease, opacity 0.2s ease, margin 0.2s ease; }
.post .cap-more span { display: inline-flex; align-items: center; gap: 4px; }
.post .cap-more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cover-wrap:hover .cap-more, .cover-wrap:focus-within .cap-more { max-height: 20px; opacity: 0.95; margin-top: 4px; }
.post .card-actions { left: auto; right: 10px; top: 10px; bottom: auto; gap: 6px; flex-direction: row; }
.post .card-actions button, .post .card-actions a { width: 30px; height: 30px; background: rgba(0,0,0,0.42); color: #fff; }
.post .card-actions button:hover, .post .card-actions a:hover { background: rgba(0,0,0,0.65); }
.post .card-actions svg { width: 15px; height: 15px; }
.cover-wrap:hover .tile-top, .cover-wrap:focus-within .tile-top { opacity: 0; }
.post .tile-top { transition: opacity 0.15s; }
@media (hover: none) { .post .cap-more { max-height: 20px; opacity: 0.95; margin-top: 4px; } .post .card-actions { display: none; } .post .tile-top { opacity: 1 !important; } }
/* ---------- Video preview window ---------- */
.pm { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); width: min(900px, 100%); max-height: min(640px, calc(100vh - 48px)); border-radius: 22px; }
.pm-media { min-height: min(600px, calc(100vh - 48px)); overflow: hidden; }
.pm-media iframe { opacity: 0; transition: opacity 0.2s; }
.pm-media.ready iframe, .pm-media iframe[src*="youtube"] { opacity: 1; }
.pm-tap { position: absolute; inset: 0 0 56px; z-index: 2; border: none; background: transparent; padding: 0; border-radius: 0; cursor: pointer; display: grid; place-items: center; }
.pm-tap span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,0.45); display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity 0.15s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pm-tap.paused span { opacity: 1; }
.pm-tap span svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.pm-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 56px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 32px; align-items: center; gap: 10px; padding: 0 12px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; }
.pm-bar button { width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; }
.pm-bar button:hover { background: rgba(255,255,255,0.14); }
.pm-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-bar [data-pp] svg { fill: currentColor; }
.pm-bar [data-time] { font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0.9; }
.pm-bar input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; padding: 0; margin: 0; border: none; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255,255,255,0.3) var(--p, 0%)); cursor: pointer; }
.pm-bar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: none; }
.pm-bar input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: none; }
.pm-nav { z-index: 4; top: 46%; }
.pm-side { padding: 22px 24px; gap: 16px; }
.pm-head { grid-template-columns: 48px minmax(0, 1fr) 32px; gap: 12px; align-items: center; }
.pm-avatar { position: relative; width: 48px; height: 48px; overflow: hidden; font-size: 18px; }
.pm-avatar img { position: absolute; inset: 0; }
.pm-name { font-size: 17px; line-height: 1.25; }
.pm-sub { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-sub a { font-size: 13px; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pm-act { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--hairline); background: var(--canvas); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.pm-act:hover { background: var(--pearl); text-decoration: none; }
.pm-act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-act.icon { width: 36px; padding: 0; justify-content: center; margin-left: auto; }
.pm-act.danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.pm-folder select { height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.pm-tabs { gap: 24px; }
.pm-tabs button { padding: 8px 0; font-size: 14px; }
.pm-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-left: 4px; }
.pm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pm-tile { padding: 10px 12px; border-radius: 12px; }
.pm-tile .l { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pm-tile .l i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pm-tile .n { font-size: 19px; }
.pm-note { margin: 0; font-size: 12px; }
.pm-boost { display: grid; gap: 10px; }
.pm-boost p { margin: 0; }
.pm-boost textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; min-height: 84px; }
.pm-boost-row { display: flex; align-items: center; gap: 12px; }
.pm-boost-row .spacer { flex: 1; }
@media (max-width: 760px) {
  .pm { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow-y: auto; }
  .pm-media { min-height: 420px; }
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Report / Payouts: two clear workspaces ---------- */
.ws-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0 22px; background: var(--canvas); border-radius: 18px; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); overflow: hidden; position: relative; }
.ws-switch::after { content: ""; position: absolute; top: 14px; bottom: 14px; left: 50%; width: 1px; background: var(--hairline); }
.ws-switch button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 22px 15px; border: none; border-radius: 0; background: transparent; color: var(--muted); box-shadow: inset 0 -3px 0 transparent; transition: background 0.15s, box-shadow 0.2s, color 0.15s; }
.ws-switch button:hover { background: var(--pearl); }
.ws-switch button:active { transform: none; }
.ws-switch button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); background: var(--canvas); }
.ws-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--parchment); color: var(--muted); transition: background 0.15s, color 0.15s; }
.ws-switch button[aria-selected="true"] .ws-ic { background: var(--ink); color: #fff; }
.ws-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ws-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ws-t b { font-size: 16px; font-weight: 600; color: inherit; }
.ws-t small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#camp-payouts:not([hidden]), #app:not(.camp-on-payouts) .sh-controls { animation: ws-in 0.22s ease both; }
@keyframes ws-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .ws-switch button { padding: 12px 14px; gap: 10px; } .ws-t small { display: none; } .ws-ic { width: 34px; height: 34px; } }
/* Creators-by-folder tables, filters */
.posts-filter { margin: 0; }
.posts-filter select { width: auto; height: 38px; padding-top: 0; padding-bottom: 0; border-radius: var(--pill); font-size: 14px; }
.cr-table tr.no-videos .creator-cell .nm { color: var(--ink-80); }
.cr-table td .muted.small { white-space: nowrap; }
.cr-table tbody tr { cursor: default; }
/* ---------- Payout sheet v3 ---------- */
.po2-sum { grid-template-columns: 1.3fr repeat(4, 1fr); }
.po2-sum .po2-cost .n { color: var(--bad); }
.po2-sum .po2-margin .n { color: #1f7a45; }
.po-cost, .po-sec-sum .po-cost b { color: var(--bad) !important; }
.po-table .po-total.po-cost { color: var(--bad); font-weight: 600; }
.po-who { white-space: nowrap; }
td.po-who { display: table-cell; }
.po-who > * { vertical-align: middle; }
.po-av { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--parchment); font-size: 11px; font-weight: 600; color: var(--ink-80); margin-right: 4px; }
.po-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.po-who .po-handle { width: calc(100% - 64px); display: inline-block; }
.po-ok { color: #1f7a45; font-size: 12px; font-weight: 700; margin: 0 2px; }
.po-who-sel { width: 100%; padding: 6px 26px 6px 8px; background-position: right 8px center; border-color: transparent; background-color: transparent; font-size: 14px; }
.po-who-sel:hover { border-color: var(--hairline); }
.po-status.s-posted { background-color: #fff1e6; color: #a34a00; }
.po-status.s-waiting_payment { background-color: #eef1fd; color: var(--accent); }
.po-status.s-drafted { background-color: #f1eefc; color: #5b3fb8; }
.po-table col.c-p { width: 150px; }
.po-posted { white-space: nowrap; }
.po-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-80); font-variant-numeric: tabular-nums; vertical-align: middle; }
.po-prog-bar { width: 48px; height: 5px; border-radius: 5px; background: var(--parchment); overflow: hidden; display: inline-block; }
.po-prog-bar i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.po-prog.done { color: #1f7a45; }
.po-prog.done .po-prog-bar i { background: #1f7a45; }
.po-posted .link-btn.small { font-size: 12px; margin-left: 6px; }
.po-manual { opacity: 0; transition: opacity 0.15s; }
tr:hover .po-manual, .po-manual:focus { opacity: 1; }
.po-addrow td { padding: 6px 0 !important; border-bottom: none !important; background: transparent !important; }
.po-addbtn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px dashed var(--hairline); border-radius: 12px; background: transparent; color: var(--ink-80); font-size: 14px; font-weight: 500; text-align: left; }
.po-addbtn span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; line-height: 1; }
.po-addbtn:hover { border-color: var(--ink-80); color: var(--ink); background: var(--canvas); }
.po-addbtn:active { transform: none; }
.po-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: none; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--canvas); box-shadow: 0 0 0 1px var(--hairline); }
.po-add input { flex: 0 1 320px; border: 1px solid var(--hairline); background: var(--canvas); padding-left: 12px; }
.po-add button { display: inline-block !important; }
.po-add-msg { flex: 1 1 220px; }
.po-add-msg.bad { color: var(--bad); }
.po-suggest { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: #eef1fd; display: grid; gap: 10px; font-size: 14px; }
.po-sg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; }
.po-sg-act { display: inline-flex; gap: 12px; align-items: center; }
@media (max-width: 900px) { .po2-sum { grid-template-columns: 1fr 1fr; } .po2-sum .po2-main { grid-column: 1 / -1; } }
/* Campaign form: who runs it */
.runner-field { grid-column: 1 / -1; }
.people-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.people-pick .pp { padding: 7px 14px; border-radius: var(--pill); border: 1px solid var(--hairline); background: var(--canvas); color: var(--ink-80); font-size: 14px; font-weight: 500; }
.people-pick .pp[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.people-pick .pp[aria-pressed="true"]::before { content: "✓ "; }
/* Bigger previews, quieter numbers */
.sh-wall.wall, .wall { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.post .cover .cap { padding: 12px 14px 12px; }
.post .cover .cap .cap-who { font-size: 12px; }
.post .cover .cap .cap-views { font-size: 12px; }
.post .cover .cap .plays { font-size: 18px; }
.post .cover .tile-top .chip { font-size: 11px; padding: 3px 9px; }
.post .cover::after { inset: 62% 0 0; }
@media (max-width: 700px) { .sh-wall.wall, .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
/* TikTok's like/comment/share buttons only send people to TikTok: a transparent shield over that strip */
.pm-shield { position: absolute; right: 0; top: 38%; width: 72px; bottom: 56px; z-index: 2; }
.pm-tap { z-index: 1; }
/* Until TikTok's player reports in, clicks go straight to it (that's what wakes it up) */
.pm-media:not(.api) .pm-tap { pointer-events: none; }
/* TikTok's player draws its own header (avatar, name, logo) across the top and the like / comment /
   share / settings buttons down the right edge; none of them can be switched off. The player is made a
   little bigger than its window and pushed up, so those strips fall outside the frame and only the
   video (and our own bar) shows. */
.pm-media:has(iframe[src*="tiktok.com/player"]) { background: #000; }
/* The player fits the video to its height, so widening it only adds black bars at the sides, where
   TikTok's buttons then sit, outside the frame. Centred, so the video itself loses nothing at the sides. */
.pm-media iframe[src*="tiktok.com/player"] { inset: auto; left: -64px; top: -56px; width: calc(100% + 128px); height: calc(100% + 56px); }

/* ---------- Decks ---------- */
.linkish { all: unset; cursor: pointer; color: var(--accent); font-size: inherit; font-weight: 500; }
.linkish:hover { text-decoration: underline; }
.linkish:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; border-radius: 4px; }
.dk-tokline { margin: -12px 0 20px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.dk-tok { color: var(--muted); }
.dk-tok.warn { color: var(--warn); font-weight: 600; }
.dk-tok.bad { color: var(--bad); font-weight: 600; }
.dk-empty { text-align: center; padding: 48px 24px; }
.dk-empty h2 { margin: 0 0 8px; }
.dk-empty p { max-width: 46ch; margin: 0 auto 20px; }
.dk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.dk-card { display: flex; flex-direction: column; background: var(--canvas); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hairline); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; }
.dk-card:hover { box-shadow: 0 0 0 1px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-1px); }
.dk-card:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.dk-cover { position: relative; aspect-ratio: 16 / 9; background: var(--parchment); display: block; }
.dk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-flag { position: absolute; top: 10px; left: 10px; font-style: normal; font-size: 12px; font-weight: 600; background: #fff4e0; color: #8a5300; padding: 2px 10px; border-radius: var(--pill); }
.dk-meta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; min-width: 0; }
.dk-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-hero { margin: 0 0 18px; }
.dk-panel, .dk-fix { margin-bottom: 18px; }
.dk-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dk-head h2, .dk-fix h2 { margin: 0; font-size: 20px; }
.dk-fix { border-color: #f1d9a8; background: #fffaf0; }
.dk-fix > p { margin: 6px 0 12px; }
.dk-fixrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid #f1e4c8; }
.dk-fixrow img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.dk-up span { display: inline-block; cursor: pointer; padding: 8px 16px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.dk-up:focus-within span { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.dk-tbl td { vertical-align: middle; }
.dk-tbl input[type=date] { width: auto; min-width: 140px; padding: 6px 8px; font-size: 13px; }
.dk-tbl tr.dk-off td:not(:nth-last-child(-n+2)) { opacity: 0.45; }
.dk-acts { text-align: right; white-space: nowrap; }
.dk-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.dk-sl { display: flex; flex-direction: column; gap: 6px; position: relative; min-width: 0; }
.dk-sl img, .dk-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: var(--parchment); box-shadow: 0 0 0 1px var(--hairline); }
.dk-sl.skip img { opacity: 0.35; }
.dk-sl-n { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,0.6); color: #fff; padding: 1px 7px; border-radius: var(--pill); }
.dk-bar { display: block; height: 6px; border-radius: var(--pill); background: var(--parchment); overflow: hidden; }
.dk-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.small-thumbs { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.dk-views { display: flex; flex-direction: column; }
.dk-view { border-top: 1px solid var(--divider); }
.dk-view:first-child { border-top: 0; }
.dk-vrow { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: minmax(0, 2fr) 80px 90px minmax(0, 1.4fr) 70px; gap: 12px; align-items: center; padding: 12px 8px; border-radius: 10px; }
.dk-vrow:hover { background: var(--pearl); }
.dk-vrow:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: -2px; }
.dk-vrow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; max-width: 100%; }
.dk-view.on .dk-vrow { background: var(--accent-tint); }
.dk-vdetail { padding: 14px 8px 20px; }
.dk-ok { font-size: 11px; font-weight: 600; color: var(--good); background: #e8f5ec; padding: 1px 7px; border-radius: var(--pill); white-space: nowrap; }
.dk-steps { padding-left: 20px; margin: 16px 0; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.dk-dl { margin-left: 6px; font-weight: 600; }
.dk-key { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.dk-key code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--parchment); padding: 8px 10px; border-radius: 8px; font-size: 12px; }
.dk-once { color: var(--warn); margin: 6px 0 0; }
.dk-keys { border-top: 1px solid var(--hairline); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.dk-keyrow { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.dk-keyrow .linkish { margin-left: auto; font-size: 13px; }
.fig-remind { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px var(--gutter) 0; padding: 12px 16px; border-radius: 12px; background: #fff4e0; color: #6b4100; font-size: 14px; }
.fig-remind.bad { background: #fdecea; color: #8f1d1a; }
.fig-remind span { flex: 1 1 280px; }
.fig-remind a { font-weight: 600; color: inherit; }
.fig-remind button { all: unset; cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; }
@media (max-width: 900px) {
  .dk-vrow { grid-template-columns: minmax(0, 1fr) auto; }
  .dk-vrow > span:nth-child(n+3) { grid-column: 1 / -1; }
  .dk-fixrow { grid-template-columns: 72px minmax(0, 1fr); }
  .dk-fixrow img { width: 72px; }
  .dk-fixrow .dk-up { grid-column: 1 / -1; }
  .fig-remind { margin: 12px 16px 0; }
  .dk-slides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .small-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dk-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dk-hero .an-hero-card { padding: 12px; }
  .dk-hero .an-hero-card .n { font-size: 26px; }
  .dk-hero .an-hero-card .d { display: none; }
}

/* Campaign page: a clear way back to the list of campaigns, on the banner itself. */
.art-band a.camp-crumb { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px; padding: 6px 12px 6px 8px; border-radius: var(--pill); background: rgba(255,255,255,0.16); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.art-band a.camp-crumb:hover { background: rgba(255,255,255,0.28); }
.art-band a.camp-crumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.camp-crumb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Creator CSV import (creator-import.js) */
.ci-dialog { width: min(720px, calc(100vw - 32px)); }
.ci-drop { display: flex !important; align-items: center; justify-content: center; text-align: center; min-height: 120px; margin: 16px 0 8px !important; border: 2px dashed var(--hairline); border-radius: var(--r-md); background: var(--pearl); cursor: pointer; font-weight: 400 !important; padding: 16px; }
.ci-drop:hover, .ci-drop.over { border-color: var(--accent); background: var(--accent-tint); }
.ci-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ci-drop:focus-within { outline: 2px solid var(--accent-focus); outline-offset: 2px; }
.ci-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
.ci-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.ci-sum span { background: var(--pearl); border-radius: var(--pill); padding: 6px 12px; font-size: 13px; }
.ci-sum span.warn { background: #fff4e0; }
.ci-bad ul { margin: 6px 0 0; padding-left: 18px; max-height: 160px; overflow: auto; }
.ci-prev { margin-top: 12px; max-height: 260px; overflow: auto; }
.ci-prev td, .ci-prev th { white-space: nowrap; font-size: 13px; }
.po-dialog label.ci-now { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px !important; font-weight: 600; }
.ci-now input { margin-top: 3px; }
.ci-bar { height: 8px; border-radius: 4px; background: var(--pearl); overflow: hidden; margin: 16px 0 6px; }
.ci-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.ro-add #ro-import { background: var(--accent-tint); color: var(--accent); border: none; font-weight: 600; }

/* Clients (clients.js) */
.cl-table td { vertical-align: middle; }
.cl-unmatched { margin: 0 0 16px; padding: 16px 20px; }
.cl-unmatched summary { cursor: pointer; }
.cl-um { list-style: none; margin: 8px 0 0; padding: 0; columns: 2 260px; }
.cl-um li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; break-inside: avoid; border-bottom: 1px solid var(--divider); }
.cl-head { align-items: flex-start; }
.cl-head h1 { margin: 8px 0 0; }
a.cl-crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); text-decoration: none; }
a.cl-crumb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.cl-crumb:hover { color: var(--accent); }
.cl-chips, .cl-sibs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cl-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--pearl); border-radius: var(--pill); padding: 4px 12px; font-size: 13px; color: var(--ink); text-decoration: none; }
a.cl-chip:hover { background: var(--accent-tint); color: var(--accent); }
.cl-actions { display: flex; gap: 8px; align-items: center; }
.cl-stats { margin-top: 0; }
.cl-notes { margin: 16px 0 0; padding: 16px 20px; }
.cl-notes p { margin: 0; }
.cl-sec { margin-top: 32px; }
.cl-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cl-sec-head h2, .cl-sec > h2 { margin: 0; font-size: 20px; }
.cl-sec td { vertical-align: middle; }
.cl-row-act { white-space: nowrap; text-align: right; }
.cl-addr { white-space: pre-line; }
.cl-dialog { width: min(640px, calc(100vw - 32px)); }
.cl-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.cl-form .cl-wide { grid-column: 1 / -1; }
.cl-form .hint { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 4px; }
.cl-form label[hidden] { display: none; }
.po-dialog .cl-form label.check { display: flex; margin-top: 14px; }
@media (max-width: 700px) { .cl-form { grid-template-columns: 1fr; } .cl-um { columns: 1; } }
.dk-co { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-tint); border-radius: var(--pill); padding: 1px 8px; vertical-align: 1px; }
#client-hint .client-add { font-weight: 400; font-size: 12px; margin-top: 2px; }
#client-hint a { color: var(--accent); }
.cl-table .cl-g { display: none; }
@media (max-width: 700px) {
  .cl-table .cl-m { display: none; }
  .cl-table .cl-g { display: block; }
  .cl-table th, .cl-table td { padding: 12px 10px; }
  .cl-head .cl-actions { width: 100%; }
}
