@import url('https://fonts.googleapis.com/css2?family=Geist:wght@200;300;400;500;600&family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* TIC Clips. 80% neutrals (paper, cloud, mist, stone, graphite, ink, onyx) and 20% TIC accent
   (vino, rosa, rosa-ink), used only for glows, highlights, chart marks and active states.
   Text contrast, measured: ink on cloud 19.3:1, graphite 7.4:1, stone 5.1:1 (4.6 on paper),
   vino 9.8:1; on ink: white 19.3:1, fog 7.5:1, rosa 10.2:1. rosa-ink is for marks only (4.05:1 on cloud). */
:root {
  --paper: #F4F4F2;
  --cloud: #FFFFFF;
  --mist: #EBEBE8;
  --mist-2: #F2F2EF;
  --line: rgba(14, 14, 16, 0.08);
  --line-2: rgba(14, 14, 16, 0.14);
  --line-3: rgba(14, 14, 16, 0.28);
  --stone: #6E6E74;
  --graphite: #55555B;
  --ink: #0E0E10;
  --onyx: #1B1B1F;
  --onyx-2: #26262B;
  --fog: #A1A1A8;
  --fog-2: #8A8A90;
  --vino: #7A2440;
  --rosa: #F2A7C3;
  --rosa-ink: #D9487F;
  --glow: rgba(242, 167, 195, 0.55);
  --ok: #1F7A4D;   --ok-bg: #E6F2EA;  --ok-d: #7FD8A6;
  --warn: #8A5A00; --warn-bg: #F8EEDA; --warn-d: #F2C680;
  --bad: #B4232F;  --bad-bg: #FAE8E9;  --bad-d: #FF9AA3;
  --display: 'Geist', 'Instrument Sans', system-ui, sans-serif;
  --ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 24px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(14, 14, 16, 0.04), 0 8px 24px -12px rgba(14, 14, 16, 0.10);
  --sh-2: 0 2px 6px rgba(14, 14, 16, 0.05), 0 24px 60px -20px rgba(14, 14, 16, 0.22);
  --sh-dark: 0 30px 70px -24px rgba(14, 14, 16, 0.55), 0 2px 8px rgba(14, 14, 16, 0.18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 140ms;
  --t-mid: 220ms;
  --z-nav: 20;
  --z-modal: 50;
  --z-toast: 60;
  --z-skip: 100;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
body.locked { overflow: hidden; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
a:hover { color: var(--vino); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--rosa); color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; text-wrap: balance; }
h1 { font: 300 clamp(30px, 3.4vw, 42px)/1.08 var(--display); letter-spacing: -0.035em; }
h2 { font: 500 18px/1.25 var(--display); letter-spacing: -0.015em; }
h3, .h3 { font-size: 16px; }
p { margin: 0 0 0.75em; max-width: 70ch; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; }
a, button, summary, label.check, input, select, textarea { touch-action: manipulation; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--graphite); }
.faint { color: var(--stone); }
.small { font-size: 14px; }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .bad-t { color: var(--bad); }
.tiny-t { font-size: 12px; color: var(--stone); }
.break { overflow-wrap: anywhere; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt { margin-top: 18px; }
.grow { flex: 1; }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: var(--z-skip); background: var(--ink); color: var(--cloud); padding: 10px 16px; border-radius: 99px; font-weight: 600; }
.skip:focus { top: 12px; color: var(--cloud); }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 14px; height: 14px; }
.glyph { width: 22px; height: 22px; flex: none; }
.glyph-bg { fill: transparent; }
.glyph-br { fill: none; stroke: var(--rosa); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.glyph-play { fill: var(--cloud); }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.top { align-items: start; }

/* ── brand mark ── */
.mark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; border-radius: 14px; min-height: 44px; }
.mark:hover { color: var(--ink); }
.mark-tile { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(14, 14, 16, 0.5); flex: none; }
.mark-text { display: flex; flex-direction: column; line-height: 1.1; }
.mark-name { font: 500 19px var(--display); letter-spacing: -0.03em; }
.mark-sub { font-size: 12.5px; color: var(--stone); margin-top: 2px; }

/* ── shell (admin + clipper): floating frosted rail ── */
.shell { display: grid; grid-template-columns: 296px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 16px 0 16px 16px; z-index: 1; }
.rail-card {
  height: 100%; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px 14px;
  background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--r-xl); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
}
.rail .mark { padding: 0 6px 22px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 5px 14px 5px 5px; border-radius: 99px; color: var(--graphite); font-weight: 500; text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.nav-item + .nav-item { margin-top: 2px; }
.nav-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mist-2); color: var(--graphite); flex: none; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-mid); }
.nav-l { flex: 1; min-width: 0; }
.nav-meta { font-size: 12.5px; color: var(--stone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-item:hover { color: var(--ink); background: rgba(14, 14, 16, 0.04); }
.nav-item:hover .nav-ic { background: var(--cloud); color: var(--ink); }
.nav-item[aria-current='page'] { background: var(--ink); color: var(--cloud); box-shadow: 0 12px 28px -14px rgba(14, 14, 16, 0.7); }
.nav-item[aria-current='page'] .nav-ic { background: radial-gradient(circle at 50% 60%, var(--vino), var(--onyx-2) 72%); color: var(--rosa); box-shadow: 0 0 0 1px rgba(242, 167, 195, 0.4), 0 0 26px 6px rgba(242, 167, 195, 0.6); }
.nav-item[aria-current='page'] { background: radial-gradient(120px 60px at 24px 50%, rgba(122, 36, 64, 0.55), transparent 70%), var(--ink); }
.nav-item[aria-current='page'] .nav-meta { color: var(--fog); }
.rail-foot { margin-top: auto; padding-top: 14px; }
.ucard { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 20px; background: var(--mist-2); border: 1px solid var(--line); min-width: 0; }
.ucard-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ucard-t b { font-weight: 600; font-size: 14.5px; }
.ucard-t span { font-size: 13px; color: var(--stone); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 13px var(--ui); color: var(--ink); background: linear-gradient(145deg, #FFFFFF, #E6DED9); box-shadow: inset 0 0 0 1px var(--line); }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.rail-tools { margin-top: 10px; justify-content: space-between; padding: 0 4px; }
.body { min-width: 0; position: relative; z-index: 1; }
.main { padding: 34px 40px 88px; max-width: 1240px; outline: none; }
.mtop, .bnav { display: none; }

/* ── brand shell ── */
.bshell { min-height: 100vh; min-height: 100dvh; background: radial-gradient(900px 520px at 85% -160px, rgba(242, 167, 195, 0.22), transparent 70%) no-repeat, var(--paper); }
.btop { position: sticky; top: 0; z-index: var(--z-nav); background: rgba(244, 244, 242, 0.78); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--line); }
.btop-in, .brand-main { max-width: 1200px; margin: 0 auto; }
.btop-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 32px; }
.brand-main { padding: 34px 32px 96px; }
.who-b { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--graphite); margin-right: 6px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--cloud); box-shadow: inset 0 0 0 1px var(--line); }

/* ── page heads ── */
.page-head, .b-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.ph-text { min-width: 0; }
.page-head h1 .pill, .b-head h1 .pill { vertical-align: middle; position: relative; top: -4px; font-family: var(--ui); letter-spacing: 0; }
.sub { color: var(--graphite); margin: 10px 0 0; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--graphite); font-size: 14px; margin: 0 0 10px -6px; min-height: 36px; padding: 0 10px 0 6px; text-decoration: none; border-radius: 99px; }
.crumb:hover { color: var(--ink); background: rgba(14, 14, 16, 0.05); }
.brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.logo { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; font: 500 14px var(--display); color: var(--rosa); overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: cover; }

/* ── surfaces ── */
.panel { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 24px; box-shadow: var(--sh-1); }
.main > * + *, .brand-main > * + *, .col > * + *, .sect + .sect { margin-top: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head p { margin: 4px 0 0; }
.sect > h2 { margin: 30px 0 12px; font-size: 15px; color: var(--graphite); font-weight: 500; font-family: var(--ui); letter-spacing: 0; }

/* ── black cards: the key metric floats on the light page ── */
.hero, .panel.dark, .statline.dark, .auth-art {
  position: relative; overflow: hidden; isolation: isolate; color: var(--cloud);
  background:
    radial-gradient(70% 58% at 50% 118%, rgba(242, 167, 195, 0.62), rgba(217, 72, 127, 0.34) 38%, rgba(122, 36, 64, 0.22) 62%, transparent 82%),
    radial-gradient(48% 70% at 100% 100%, rgba(217, 72, 127, 0.30), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink) 55%, #1A0D13 100%);
  border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: var(--sh-dark);
}
.hero { border-radius: var(--r-xl); padding: 24px 32px 28px; }
.hero-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.updated { color: var(--fog); }
.big {
  font: 200 clamp(44px, 12.2vw, 176px)/0.86 var(--display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums;
  margin: 26px 0 12px -0.05em; color: var(--cloud); white-space: nowrap; transition: color 600ms var(--ease);
}
.big.bump { animation: bump 1400ms var(--ease); }
@keyframes bump { 0% { color: var(--rosa); text-shadow: 0 0 40px var(--glow); } 100% { color: var(--cloud); text-shadow: none; } }
.big-row { display: flex; align-items: flex-end; gap: 4px 14px; flex-wrap: wrap; min-width: 0; }
.big-row .big { margin-bottom: 12px; }
.unit { font: 300 clamp(18px, 2vw, 28px) var(--display); letter-spacing: -0.02em; color: var(--fog); padding-bottom: clamp(16px, 1.8vw, 30px); }
.big-label { font-size: 16px; color: var(--fog); margin: 0; }
.hero-bars { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin-top: 30px; }
.track { position: relative; height: 8px; border-radius: 99px; background: var(--onyx-2); overflow: hidden; }
.track.thin { height: 4px; margin-top: 2px; }
.track > span { position: absolute; inset: 0; border-radius: 99px; background: linear-gradient(90deg, var(--rosa-ink), var(--rosa)); box-shadow: 0 0 18px var(--glow); transform-origin: left center; transform: scaleX(0); transition: transform 1200ms var(--ease); }
.track.thin > span { background: rgba(255, 255, 255, 0.78); box-shadow: none; }
.track-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--fog); }
.track-meta b { font-weight: 600; color: var(--cloud); }
.hero-note { margin: 18px 0 0; color: var(--fog); }
.hero .btn.ghost, .dark .btn.ghost { background: transparent; color: var(--cloud); border-color: rgba(255, 255, 255, 0.2); }
.hero .btn.ghost:hover, .dark .btn.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.btn.on-hero[aria-pressed='true'] { background: rgba(255, 255, 255, 0.12); }
.hero :focus-visible, .dark :focus-visible { outline-color: var(--rosa); }

.panel.dark { border-radius: var(--r-l); }
.panel.dark h2 { color: var(--cloud); }
.dark .muted { color: var(--fog); }
.dark .faint { color: var(--fog-2); }
.dark .kv dt { color: var(--fog); }
.dark .kv dd { color: var(--cloud); }
.dark .meter { background: var(--onyx-2); }
.dark .meter > span { background: linear-gradient(90deg, var(--rosa-ink), var(--rosa)); box-shadow: 0 0 14px var(--glow); }
.dark .meter.full > span { background: var(--ok-d); box-shadow: none; }

/* stat strips: light by default, black with onyx tiles when .dark */
.statline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 16px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--cloud); box-shadow: var(--sh-1); }
.statline > div { padding: 18px 22px; margin: 0; }
.statline > div + div { border-left: 1px solid var(--line); }
.statline .k { display: block; color: var(--graphite); font-size: 14px; }
.statline .v { display: block; margin: 6px 0 0; font: 300 30px/1.1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.statline dd { margin: 0; }
.statline.dark { padding: 10px; gap: 8px; border-radius: var(--r-xl); }
.statline.dark > div { background: rgba(27, 27, 31, 0.86); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: var(--r-m); padding: 16px 18px; }
.statline.dark > div + div { border-left: 1px solid rgba(255, 255, 255, 0.07); }
.statline.dark .k { color: var(--fog); }
.statline.dark .v { font-size: 34px; font-weight: 300; color: var(--cloud); }

/* ── chart (light card) ── */
.chart { position: relative; }
.chart-host { position: relative; width: 100%; min-height: 210px; border-radius: var(--r-s); cursor: crosshair; touch-action: pan-y; }
.chart-host svg { display: block; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .base-l { stroke: var(--line-2); stroke-width: 1; }
.chart .axis-t { fill: var(--stone); font: 12px var(--ui); }
.chart .line { fill: none; stroke: var(--rosa-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--rosa-ink); stroke: var(--cloud); stroke-width: 2.5; }
.chart .cross { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; pointer-events: none; z-index: 2; background: var(--ink); color: var(--cloud); border-radius: var(--r-s); padding: 9px 13px; font-size: 13px; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); display: flex; flex-direction: column; gap: 1px; box-shadow: var(--sh-dark); }
.tip b { font: 400 20px var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tip .faint { color: var(--fog); }
.trend { color: var(--vino); margin: -6px 0 12px; font-weight: 500; }
.trend:empty { display: none; }
.daily { margin-top: 8px; }

/* ── tables ── */
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--stone); font-size: 13.5px; padding: 0 12px 10px; white-space: nowrap; vertical-align: bottom; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody th[scope='row'] { text-align: left; font-weight: 500; color: var(--ink); padding: 12px 12px 12px 0; border-top: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.r, th.r { text-align: right; }
td.act { text-align: right; width: 1%; white-space: nowrap; }
td.nowrap { white-space: nowrap; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover td { background: rgba(14, 14, 16, 0.018); }
tr.is-flagged td { background: rgba(180, 35, 47, 0.035); }
.rt.compact td { padding-top: 9px; padding-bottom: 9px; }
th .sort { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 6px 0; min-height: 32px; }
th .sort:hover, th .sort.on { color: var(--ink); }
.clip-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cc-text { display: flex; flex-direction: column; min-width: 0; }
.cc-text > span { white-space: nowrap; }
.cc-text .u { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; }
.thumb { width: 40px; height: 54px; border-radius: 10px; background: var(--mist-2); flex: none; display: grid; place-items: center; color: var(--stone); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 84px; height: 112px; }
.thumb-td { width: 52px; }
.m-only { display: none; }
.st { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.reason { max-width: 32ch; }
.earn-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 96px; }
.earn-cell .small { white-space: nowrap; }
.flags { display: inline-flex; align-items: center; gap: 5px; color: var(--warn); font-size: 13px; }
.strong-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.strong-link:hover { color: var(--vino); text-decoration: underline; }
.audit .detail { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12.5px var(--mono); color: var(--graphite); }

/* ── pills (status always text + dot, never color alone) ── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; background: var(--mist-2); color: var(--graphite); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { color: var(--ok); background: var(--ok-bg); box-shadow: none; }
.pill.warn { color: var(--warn); background: var(--warn-bg); box-shadow: none; }
.pill.bad { color: var(--bad); background: var(--bad-bg); box-shadow: none; }
.pill.rose { color: var(--vino); background: #F8E6EC; box-shadow: none; }
.pill.live { color: var(--ink); background: var(--cloud); font-weight: 600; box-shadow: none; }
.pill.live::before { background: var(--rosa-ink); box-shadow: 0 0 10px var(--rosa-ink); animation: live 2s ease-in-out infinite; }
.hero .pill.rose { color: var(--ink); background: var(--rosa); }
.hero .pill.warn, .hero .pill { color: var(--ink); background: var(--cloud); }
@keyframes live { 50% { opacity: .35; } }
.pill.tiny { font-size: 12px; padding: 1px 8px; margin-left: 8px; }
a.pill:hover { filter: brightness(0.97); color: var(--warn); }

/* ── meters ── */
.meter { height: 6px; border-radius: 99px; background: var(--mist); overflow: hidden; margin: 10px 0 8px; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--vino), var(--rosa-ink)); border-radius: 99px; transform-origin: left center; transition: transform 900ms var(--ease); }
.meter.full > span { background: var(--ok); }
.meter.sm { height: 4px; width: 96px; margin: 2px 0; }

/* ── buttons ── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid transparent;
  font: 600 15px var(--ui); white-space: nowrap; cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--cloud); box-shadow: 0 8px 20px -12px rgba(14, 14, 16, 0.6);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { background: var(--onyx-2); color: var(--cloud); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .42; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--cloud); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--line-3); background: var(--mist-2); color: var(--ink); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: var(--cloud); color: var(--bad); border-color: rgba(180, 35, 47, 0.3); box-shadow: none; }
.btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: var(--cloud); border-color: var(--bad); }
.btn.danger.solid:hover { background: #9B1C27; color: var(--cloud); }
.btn.ok { background: var(--cloud); color: var(--ok); border-color: rgba(31, 122, 77, 0.32); box-shadow: none; }
.btn.ok:hover { background: var(--ok-bg); color: var(--ok); }
.btn.icon { width: 44px; padding: 0; }
.btn.icon.ghost { border-color: transparent; color: var(--graphite); background: transparent; }
.btn.icon.ghost:hover { color: var(--ink); background: rgba(14, 14, 16, 0.06); }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: var(--cloud); animation: spin .7s linear infinite; }
.btn.ghost.is-busy::after, .btn.ok.is-busy::after, .btn.danger:not(.solid).is-busy::after, .btn.icon.is-busy::after { border-color: var(--line-2); border-top-color: var(--ink); }
.linklike { background: none; border: 0; padding: 8px 0; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; min-height: 44px; }
.linklike:hover { color: var(--vino); }

.lang { display: inline-flex; border-radius: 99px; padding: 3px; background: var(--mist); }
.lang button { background: none; border: 0; color: var(--graphite); font: 600 13px var(--ui); min-width: 38px; min-height: 32px; padding: 0 8px; border-radius: 99px; cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--cloud); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 14, 16, 0.12); }
.lang button:hover { color: var(--ink); }

/* ── forms ── */
.form { display: grid; gap: 16px; }
.form.g2f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form.g2f > .form-err, .form.g2f > .form-actions, .form.g2f > datalist { grid-column: 1 / -1; }
.f { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.f > label, .f > legend, .f > .lbl { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 7px; padding: 0; }
.opt { color: var(--stone); font-weight: 400; }
.req { color: var(--vino); font-weight: 600; }
.help { display: block; color: var(--graphite); font-size: 13.5px; margin-top: 6px; }
.help.calc { color: var(--vino); }
.err { display: block; color: var(--bad); font-size: 13.5px; margin-top: 6px; }
.static { margin: 0; padding: 11px 0; color: var(--graphite); }
input, select, textarea {
  width: 100%; min-height: 46px; font: inherit; font-size: 16px; color: var(--ink);
  background: #FAFAF9; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 10px 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--stone); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; background: var(--cloud); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 14, 16, 0.08); }
input[readonly] { color: var(--graphite); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--bad); background: #FFFBFB; }
.mono-in input { font-family: var(--mono); font-size: 14.5px; }
input[type='checkbox'], input[type='radio'] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; accent-color: var(--ink); flex: none; }
.checks { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; }
.affix { display: flex; align-items: stretch; }
.affix .pre { display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-s) 0 0 var(--r-s); color: var(--graphite); background: var(--mist-2); font-size: 15px; }
.affix input { border-radius: 0 var(--r-s) var(--r-s) 0; }
.pw { position: relative; }
.pw input { padding-right: 84px; }
.reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 38px; min-width: 72px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--graphite); font: 600 14px var(--ui); cursor: pointer; }
.reveal:hover { background: var(--mist-2); color: var(--ink); }
.form-err { padding: 12px 14px; border-radius: var(--r-s); background: var(--bad-bg); border: 1px solid rgba(180, 35, 47, 0.2); color: var(--ink); font-size: 14.5px; }
.summary { outline: none; }
.summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.summary ul { margin: 6px 0 0; padding-left: 20px; }
.summary .linklike { min-height: 32px; padding: 2px 0; text-align: left; color: var(--bad); text-decoration-color: currentColor; }
.form-actions { margin-top: 4px; }
.form-actions.wide .btn[type='submit'] { width: 100%; }
.fs { border: 0; padding: 22px 0 0; margin: 0; border-top: 1px solid var(--line); }
.fs:first-of-type { border-top: 0; padding-top: 0; }
.fs > legend { font: 500 18px var(--display); letter-spacing: -0.015em; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.fs > legend + p { clear: both; margin: 0 0 14px; }
.fs-grid { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.fs-grid > .f:has(textarea), .fs-grid > fieldset.f { grid-column: 1 / -1; }
.camp-form { gap: 26px; }
.copy-from { padding: 16px; border-radius: var(--r-m); background: var(--mist-2); border: 1px dashed var(--line-2); }
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.main > .toolbar { margin-bottom: 0; }
.f.search { width: min(340px, 100%); }
.f.search label { font-size: 13.5px; color: var(--graphite); font-weight: 400; }
.f.search input { border-radius: 99px; background: var(--cloud); padding-left: 18px; }

details.add { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
details.add > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--ink); font-weight: 600; list-style: none; border-radius: 99px; padding-right: 10px; }
details.add > summary .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--ink); color: var(--cloud); }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { margin-bottom: 10px; }
details.add .form { padding: 4px 0 6px; }

/* ── segmented / tabs: black active pill ── */
.seg, .tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--mist); border-radius: 99px; }
.seg button, .tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 99px; border: 0; background: none; color: var(--graphite); font: 500 14px var(--ui); cursor: pointer; text-decoration: none; white-space: nowrap; }
.seg button:hover, .tabs a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.seg button[aria-pressed='true'], .tabs a[aria-current='page'] { background: var(--ink); color: var(--cloud); box-shadow: 0 8px 18px -10px rgba(14, 14, 16, 0.7); }
.seg-n { font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; }
.seg button[aria-pressed='true'] .seg-n { color: var(--fog); }
.tabs { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.count { font-size: 12px; background: var(--rosa); color: var(--ink); border-radius: 99px; padding: 0 7px; line-height: 20px; font-weight: 600; }

/* ── auth: light page with a black showcase card ── */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 16px; gap: 16px; }
.auth-art { border-radius: var(--r-xl); padding: 40px 48px; background-size: 100% 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-mark { display: inline-flex; align-items: center; gap: 10px; font: 500 19px var(--display); letter-spacing: -0.03em; }
.auth-art .auth-mark .glyph { width: 28px; height: 28px; }
.auth-line { font: 200 clamp(56px, 7.6vw, 116px)/0.94 var(--display); letter-spacing: -0.06em; margin: 0; max-width: none; }
.auth-line em { font-style: normal; color: var(--rosa); text-shadow: 0 0 60px rgba(242, 167, 195, 0.35); }
.auth-sub { color: var(--fog); max-width: 40ch; margin-top: 24px; font-size: 17px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; outline: none; }
.auth-form .box { width: 100%; max-width: 400px; }
.auth-top { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 40px; }
.auth-mark.sm { display: none; }
.auth-mark.sm .glyph { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--ink); }
.auth-form h1 { margin-bottom: 8px; }
.auth-form .sub { margin: 0 0 26px; }
.auth-alt { margin-top: 22px; color: var(--graphite); font-size: 15px; }

/* ── clipper ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.camp-card { display: block; color: inherit; text-decoration: none; border-radius: var(--r-l); padding: 20px 22px; background: var(--cloud); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: box-shadow var(--t-mid), transform var(--t-mid) var(--ease); }
.camp-card:hover { color: inherit; box-shadow: var(--sh-2); transform: translateY(-2px); }
.camp-card .brandline { margin-bottom: 14px; }
.camp-name { font: 400 22px/1.15 var(--display); letter-spacing: -0.03em; margin-bottom: 4px; }
.camp-card > p { margin: 0; }
.card-earn { margin-top: 16px; }
.card-earn b { font: 300 24px var(--display); letter-spacing: -0.03em; }
.card-earn p { margin: 0; }
.card-views { font: 200 44px/1 var(--display); letter-spacing: -0.05em; margin-top: 18px; }
.terms { display: flex; gap: 10px 22px; flex-wrap: wrap; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.terms dt { font-size: 13px; color: var(--graphite); }
.terms dd { margin: 2px 0 0; font: 300 22px var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.onb .meter { margin: 0 0 6px; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.step { display: flex; gap: 14px; padding: 12px 0; align-items: flex-start; }
.step + .step { border-top: 1px solid var(--line); }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--ui); background: var(--mist-2); color: var(--graphite); box-shadow: inset 0 0 0 1px var(--line); }
.step.current .step-n { background: var(--ink); color: var(--cloud); box-shadow: 0 0 0 4px rgba(242, 167, 195, 0.35); }
.step.done .step-n { background: var(--ok-bg); color: var(--ok); box-shadow: none; }
.step.done h3 { color: var(--graphite); font-weight: 500; }
.step-body { min-width: 0; flex: 1; padding-top: 5px; }
.step-body p { margin: 2px 0 10px; }
.steps.setup .step-body { padding-bottom: 6px; }

.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.col > div + div { margin-top: 16px; }
.side-col { position: sticky; top: 20px; }
.submit-panel { border-color: var(--line-2); }
.earn-big { font: 200 60px/1 var(--display); letter-spacing: -0.055em; margin-top: -2px; }
.brief { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.kit-ov { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ov-prev { max-height: 140px; width: auto; border-radius: var(--r-s); background: repeating-conic-gradient(var(--mist-2) 0% 25%, var(--mist) 0% 50%) 50% / 16px 16px; }
.tags-block { margin: 18px 0 14px; }
.tags-block h3 { font-size: 14px; color: var(--graphite); font-weight: 500; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { padding: 4px 11px; border-radius: 99px; background: var(--mist-2); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }

.accts { list-style: none; margin: 0; padding: 0; }
.acct { padding: 14px 0; }
.acct + .acct { border-top: 1px solid var(--line); }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.w-addr { display: flex; flex-direction: column; min-width: 0; }
.w-addr .mono { overflow-wrap: anywhere; }
.mini-steps { margin: 12px 0; padding-left: 22px; color: var(--graphite); font-size: 14.5px; }
.mini-steps li + li { margin-top: 4px; }
.code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.check-note { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-s); background: var(--warn-bg); color: var(--ink); }
.check-note:empty { display: none; }

.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; flex-wrap: wrap; }
.rows li + li { border-top: 1px solid var(--line); }
.row-main { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
a.row-main:hover b { color: var(--vino); }
.row-num { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.row-num b { font: 300 24px var(--display); letter-spacing: -0.03em; }
.tx { display: inline-flex; align-items: center; gap: 2px; }
.tx a { display: inline-flex; align-items: center; gap: 4px; }

/* ── admin ── */
.pending-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pend { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--cloud); color: var(--graphite); text-decoration: none; min-height: 64px; box-shadow: var(--sh-1); transition: box-shadow var(--t-mid); }
.pend .ic { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--vino), var(--ink) 75%); color: var(--rosa); box-shadow: 0 0 16px rgba(242, 167, 195, 0.45); }
.pend b { font: 300 30px var(--display); letter-spacing: -0.04em; color: var(--ink); }
.pend.has { border-color: rgba(122, 36, 64, 0.25); }
.pend.has b { color: var(--vino); }
.pend:hover { color: var(--ink); box-shadow: var(--sh-2); }
.goal { margin-bottom: 14px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-color: rgba(180, 35, 47, 0.2); }
.danger-zone > div { flex: 1 1 360px; }
.danger-zone h2 { margin-bottom: 6px; }
.clip-detail { display: flex; gap: 18px; align-items: flex-start; }
.clip-detail > div { min-width: 0; flex: 1; }
.clip-detail .kv { margin-top: 12px; }
.cl { padding: 0; }
.cl > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; min-height: 64px; cursor: pointer; list-style: none; border-radius: var(--r-l); flex-wrap: wrap; }
.cl > summary::-webkit-details-marker { display: none; }
.cl > summary:hover { background: rgba(14, 14, 16, 0.015); }
.cl-sum { display: flex; flex-direction: column; min-width: 0; }
.cl-sum-w { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cl-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.cl-body > .row:first-child { padding: 14px 0 4px; }
.cl-body h3 { font-size: 14.5px; color: var(--graphite); font-weight: 500; margin-bottom: 4px; }
.cl-list > * + * { margin-top: 10px; }
.queue { border-color: rgba(138, 90, 0, 0.22); }
.q-act { gap: 12px; }

/* ── misc ── */
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-m); padding: 13px 16px; background: var(--cloud); border: 1px solid var(--line); color: var(--ink); font-size: 15px; box-shadow: var(--sh-1); }
.notice > .ic { margin-top: 2px; color: var(--graphite); }
.notice.warn { background: var(--warn-bg); border-color: rgba(138, 90, 0, 0.18); box-shadow: none; }
.notice.warn > .ic { color: var(--warn); }
.notice.bad { background: var(--bad-bg); border-color: rgba(180, 35, 47, 0.18); box-shadow: none; }
.notice.bad > .ic { color: var(--bad); }
.notice.ok > .ic { color: var(--ok); }
.panel .notice { margin: 12px 0; box-shadow: none; background: var(--mist-2); }
.panel .notice.warn { background: var(--warn-bg); }
.empty { text-align: center; padding: 36px 16px; }
.empty h3 { margin-bottom: 6px; font: 400 20px var(--display); letter-spacing: -0.02em; }
.empty p { margin: 0 auto 16px; }
.code { font-family: var(--mono); font-size: 13.5px; background: var(--mist-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 7px; overflow-wrap: anywhere; }
.code.big-code { font-size: 20px; padding: 6px 14px; letter-spacing: 0.06em; color: var(--cloud); background: var(--ink); border-color: var(--ink); box-shadow: 0 0 24px -6px var(--glow); }
.secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 15px; margin: 0; }
.kv dt { color: var(--graphite); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: var(--z-toast); max-width: min(520px, calc(100vw - 32px)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--cloud); padding: 12px 20px; border-radius: 99px; font-weight: 600; font-size: 15px; box-shadow: var(--sh-dark); transition: opacity var(--t-mid), transform var(--t-mid) var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }
.modal-bg { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 20px; background: rgba(14, 14, 16, 0.42); animation: fade var(--t-mid); }
.modal { width: 100%; max-width: 500px; max-height: calc(100vh - 40px); overflow: auto; background: var(--cloud); border-radius: var(--r-xl); padding: 20px 24px 24px; box-shadow: var(--sh-2); animation: rise var(--t-mid) var(--ease); }
.modal.wide { max-width: 640px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -4px -10px 12px 0; }
.modal-head h2 { font: 400 22px var(--display); letter-spacing: -0.03em; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.99); } }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 40vh; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .main { padding: 30px 28px 88px; }
  .shell { grid-template-columns: 264px minmax(0, 1fr); }
  .cols { grid-template-columns: 1fr; gap: 16px; }
  .side-col { position: static; }
  .col { display: contents; }
  .col > div + div { margin-top: 0; }
  .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; }
}
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; padding: 0; }
  .auth-art { display: none; }
  .auth-mark.sm { display: inline-flex; }
  .auth-top { justify-content: space-between; margin-bottom: 32px; }
  .hero-bars { grid-template-columns: 1fr; gap: 20px; }
  .statline { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statline > div + div { border-left: 0; }
  .statline > div { border-top: 1px solid var(--line); }
  .statline > div:nth-child(-n+2) { border-top: 0; }
  .statline > div:nth-child(even) { border-left: 1px solid var(--line); }
  .statline > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .statline.dark > div, .statline.dark > div:nth-child(even) { border: 1px solid rgba(255, 255, 255, 0.07); }
}
@media (max-width: 860px) {
  .shell { display: block; }
  .rail { display: none; }
  .mtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; position: sticky; top: 0; z-index: var(--z-nav); background: rgba(244, 244, 242, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--line); }
  .mtop .mark-sub { display: none; }
  .mtop .mark-tile { width: 36px; height: 36px; }
  .mtop .row { gap: 4px; flex-wrap: nowrap; }
  /* floating frosted pill nav, black active item */
  .bnav {
    display: flex; gap: 2px; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--z-nav);
    padding: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
  }
  .bnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--graphite); text-decoration: none; font-size: 12px; font-weight: 500; border-radius: 99px; min-width: 0; transition: background var(--t-fast), color var(--t-fast); }
  .bnav-item .nav-ic { width: 26px; height: 26px; background: none; }
  .bnav-item .ic { width: 21px; height: 21px; }
  .bnav-item .nav-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
  .bnav-item[aria-current='page'] { background: var(--ink); color: var(--cloud); box-shadow: 0 10px 24px -12px rgba(14, 14, 16, 0.8); }
  .bnav-item[aria-current='page'] .nav-ic { color: var(--rosa); background: radial-gradient(closest-side, rgba(242, 167, 195, 0.45), transparent); box-shadow: none; }
  .main { padding: 22px 16px calc(124px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 72px; scroll-padding-bottom: 96px; }
  .shell .toast, body .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .g2, .pending-row { grid-template-columns: 1fr; }
  .pending-row { gap: 8px; }
  .pend { min-height: 56px; padding: 10px 14px; }
}
@media (max-width: 640px) {
  .btop-in { padding: 8px 10px 8px 14px; }
  .btop .mark-tile { width: 36px; height: 36px; }
  .who-b { display: none; }
  .brand-main { padding: 22px 14px 72px; }
  .panel { padding: 18px 16px; border-radius: 20px; }
  .table-wrap { margin: 0; padding: 0; overflow: visible; }
  .hero { padding: 20px 20px 22px; border-radius: 24px; }
  .big { margin-top: 22px; }
  .big-label { font-size: 15px; }
  .statline .v { font-size: 26px; }
  .statline.dark .v { font-size: 28px; }
  .statline > div { padding: 14px 16px; }
  .form.g2f, .fs-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .seg { border-radius: 22px; }
  .f.search { width: 100%; }
  .page-head .row, .b-head .row { width: 100%; }
  .page-head .row .btn, .b-head .row .btn { flex: 1; }
  .danger-zone .btn { width: 100%; }
  .clip-detail { flex-direction: column; }
  .modal-bg { padding: 0; align-items: end; }
  .modal { max-width: none; border-radius: 24px 24px 0 0; max-height: 92vh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .kv { grid-template-columns: 1fr auto; }
  /* responsive tables → stacked rows */
  .rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rt, .rt tbody, .rt tr, .rt td { display: block; width: 100%; }
  .rt tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .rt tbody tr:first-child { border-top: 0; padding-top: 0; }
  .rt tbody th[scope='row'] { display: block; border: 0; padding: 0 0 4px; }
  .rt td { border: 0; padding: 3px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; text-align: right; min-height: 32px; }
  .rt td::before { content: attr(data-label); color: var(--graphite); font-size: 13.5px; text-align: left; flex: none; }
  .rt td[data-label='']::before { display: none; }
  .rt td:first-child { text-align: left; }
  .rt td:first-child[data-label]::before { display: none; }
  .rt td.act { width: 100%; justify-content: flex-end; }
  .rt td.act .row { justify-content: flex-end; flex-wrap: wrap; }
  .rt .st { align-items: flex-end; text-align: right; }
  .rt .clip-cell { width: 100%; }
  .rt.brand-t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2px 12px; }
  .rt.brand-t td { padding: 0; min-height: 0; }
  .rt.brand-t td::before { display: none; }
  .rt.brand-t td:nth-child(2) { display: none; }
  .rt.brand-t td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .rt.brand-t td:nth-child(3) { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .rt.brand-t td:nth-child(4) { grid-column: 2; grid-row: 2; justify-content: flex-end; font-size: 13.5px; color: var(--graphite); gap: 0; }
  .rt.brand-t td.act { grid-column: 3; grid-row: 1 / span 2; width: auto; }
  .m-only { display: block; font-size: 13.5px; color: var(--graphite); }
  tbody tr:hover td { background: none; }
  .audit .detail { max-width: 60vw; }
  .rows li { align-items: flex-start; }
  .row-num { align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .track > span, .meter > span { background: Highlight; }
  .pill::before { forced-color-adjust: none; }
}

/* ── pass 4 additions ── */
/* Designed no-thumbnail tile: TikTok covers expire, so this is the normal state. */
.thumb.none { background: radial-gradient(90% 70% at 50% 110%, rgba(217, 72, 127, 0.55), transparent 70%), linear-gradient(160deg, var(--onyx-2), var(--ink)); color: var(--rosa); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.thumb.none .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; filter: drop-shadow(0 0 6px rgba(242, 167, 195, 0.7)); }
.thumb.sm { width: 36px; height: 48px; border-radius: 9px; }
.clip-rows { list-style: none; margin: 0; padding: 0; }
.cr { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.cr + .cr { border-top: 1px solid var(--line); }
.cr-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.cr-l1, .cr-l2 { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; min-height: 28px; }
.cr-l1 .u { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; }
.cr-l1 .btn.icon { width: 36px; min-height: 36px; margin: -4px 0; }
.cr-views { color: var(--graphite); font-size: 14px; min-width: 0; }
.cr-views b { color: var(--ink); font-weight: 600; }
.cr-earn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.cr-earn b { font: 400 17px var(--display); letter-spacing: -0.02em; }
.cr-earn .meter.sm { width: 64px; }
.cr-note { margin: 0; }
.more-btn { margin-top: 10px; width: 100%; }
.stat-card { display: grid; gap: 4px; padding: 22px; border-radius: var(--r-m); background: radial-gradient(80% 120% at 100% 100%, rgba(217, 72, 127, 0.10), transparent 70%), var(--mist-2); box-shadow: inset 0 0 0 1px var(--line); }
.stat-card .k { color: var(--graphite); font-size: 14px; }
.stat-card .v { font: 200 56px/1 var(--display); letter-spacing: -0.05em; color: var(--vino); }
.stat-card p { margin: 6px 0 0; }
.review-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
.review-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 50% 60%, var(--vino), var(--onyx-2) 75%); color: var(--rosa); box-shadow: 0 0 24px rgba(242, 167, 195, 0.5); }
.review-card h2 { color: var(--cloud); margin-bottom: 6px; }
.wcell { display: flex; flex-direction: column; gap: 2px; }
/* skeletons */
.sk-wrap > * + * { margin-top: 16px; }
.sk { display: block; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--mist) 0%, var(--mist-2) 50%, var(--mist) 100%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; }
.sk + .sk { margin-top: 14px; }
.sk.dark { background: linear-gradient(90deg, var(--onyx) 0%, var(--onyx-2) 50%, var(--onyx) 100%); background-size: 200% 100%; }
.sk.tall { height: 34px; } .sk.huge { height: 120px; border-radius: 22px; } .sk.block { height: 220px; border-radius: 16px; }
.sk.w20 { width: 20%; } .sk.w30 { width: 30%; } .sk.w50 { width: 50%; } .sk.w60 { width: 60%; } .sk.w100 { width: 100%; }
.sk-hero { min-height: 300px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 640px) {
  .cr-earn { margin-left: 0; }
  .stat-card .v { font-size: 44px; }
}

/* ── pass 5: Instagram ── */
.hrow { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.plat-g { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ink); color: var(--rosa); flex: none; }
.plat-g .ic { width: 14px; height: 14px; }
.detected { margin: -6px 0 0; color: var(--vino); font-weight: 500; }
.detected:empty { display: none; }
.ig-src { display: block; }
.ig-ed { display: inline-grid; grid-template-columns: 112px auto; grid-template-rows: auto auto; gap: 4px 6px; align-items: center; justify-items: end; }
.ig-ed .ig-in { min-height: 36px; padding: 6px 10px; text-align: right; font-variant-numeric: tabular-nums; border-radius: 10px; }
.ig-ed .btn.sm { min-height: 36px; }
.ig-ed .ig-when { grid-column: 1 / -1; }
.ig-ed.due .ig-in { border-color: rgba(122, 36, 64, 0.45); background: #FDF6F8; }
.ig-ed.due .ig-when { color: var(--vino); }
@media (max-width: 640px) { .ig-ed { grid-template-columns: 1fr auto; width: 100%; } }

/* Instagram manual editor extras */
.ig-ed .ig-date { width: 9.5rem; min-height: 36px; }
.ig-ed .ig-check { flex-basis: 100%; color: var(--graphite); text-align: right; }

/* Landing: account type choice */
.choice-grid { display: grid; gap: 12px; margin-top: 4px; }
.choice { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 4px; padding: 20px; border-radius: 22px; text-decoration: none; border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; min-height: 44px; }
.choice:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(14,14,16,.10); }
.choice:focus-visible { outline: 2px solid var(--vino); outline-offset: 3px; }
.choice-ic { grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.choice-ic .ic { width: 22px; height: 22px; }
.choice-t { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.choice-d { font-size: 14px; line-height: 1.45; }
.choice-cta { font-size: 14px; font-weight: 600; margin-top: 6px; }
.choice.dark { background: var(--ink); color: #fff; border-color: var(--ink); background-image: radial-gradient(120% 90% at 100% 120%, rgba(122,36,64,.55), transparent 60%); }
.choice.dark .choice-ic { background: var(--onyx); color: var(--rosa); box-shadow: 0 0 22px rgba(242,167,195,.35); }
.choice.dark .choice-d { color: var(--fog); }
.choice.dark .choice-cta { color: var(--rosa); }
.choice.light { background: var(--cloud); color: var(--ink); }
.choice.light .choice-ic { background: #F4F4F2; color: var(--vino); }
.choice.light .choice-d { color: var(--graphite); }
.choice.light .choice-cta { color: var(--vino); }
@media (prefers-reduced-motion: reduce) { .choice, .choice:hover { transition: none; transform: none; } }
