/* ============================================================================
   Bigdatr: a live surface. Page-local styles on top of the scrollcraft floor.
   The engine's own selectors are left alone; everything here styles markup
   this page authored.
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* the six roles */
  --sc-canvas: #F4F0F9;
  --sc-surface: #FFFFFF;
  --sc-ink: #1D1030;
  --sc-ink-soft: #54476A;
  --sc-accent: #7337B6;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --sc-font-text: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* light-ground depth: halved alphas, shadow tinted to the canvas hue */
  --sc-shadow-color: 268 50% 22%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.07), 0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.07);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.06), 0 12px 26px -8px hsl(var(--sc-shadow-color) / 0.16);
  --sc-e3: 0 4px 10px hsl(var(--sc-shadow-color) / 0.07), 0 26px 52px -14px hsl(var(--sc-shadow-color) / 0.26);
  --sc-edge: inset 0 1px 0 rgb(255 255 255 / 0.9);

  /* brand */
  --deep: #3C0B72;
  --deeper: #2B0855;
  --purple: #7337B6;
  --purple-2: #5C2F9B;
  --lav: #C3ABDD;
  --lav-soft: #EEE6F8;
  --line: #E6DEF0;
  --line-2: #D6CAE6;
  --ink-3: #6A5D80;
  --warn: #FFCA3A; --warn-bg: #FFF5D6; --warn-ink: #634800;
  --err: #FF595E;  --err-bg: #FFE7E8; --err-ink: #9A1B21;
  --ok-ink: #17694A;

  /* chrome geometry */
  --side-w: 232px;
  --top-h: 56px;
  --bot-h: 32px;
  --gut: 28px;
  --r1: 6px; --r2: 10px; --r3: 16px;
}

/* focus and anchor scrolling must clear the fixed chrome; act anchors still land flush */
html { scroll-padding-top: calc(var(--top-h) + 12px); scroll-padding-bottom: calc(var(--bot-h) + 16px); }
.act { scroll-margin-top: calc(-1 * (var(--top-h) + 12px)); }
body { font-size: 15px; letter-spacing: -0.006em; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--sc-ink); color: #fff; padding: 10px 14px; border-radius: var(--r2); text-decoration: none; }
.skip:focus, .skip:focus-visible { top: 12px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: var(--r1); }
svg { width: 1em; height: 1em; flex: none; stroke-width: 1.9; }
b, strong { font-weight: 600; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r2); border: 1px solid transparent;
  font: 600 14px/1 var(--sc-font-text); letter-spacing: -0.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--sc-ease-out), border-color 150ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), box-shadow 150ms var(--sc-ease-out);
}
.btn svg { font-size: 16px; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: var(--sc-e1), inset 0 1px 0 rgb(255 255 255 / 0.18); }
.btn--primary:hover { background: var(--purple-2); }
.btn--light { background: #fff; color: var(--deep); box-shadow: var(--sc-e2); }
.btn--light:hover { background: var(--lav-soft); }
.btn--ghost { background: #fff; color: var(--sc-ink); border-color: var(--line-2); box-shadow: var(--sc-e1); }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn--quiet { background: var(--lav-soft); color: var(--purple-2); }
.btn--quiet:hover { background: #E3D6F4; }
.btn--sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }
.link { color: var(--purple); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.link:hover { color: var(--purple-2); text-decoration-thickness: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 11.5px/1 var(--sc-font-text); letter-spacing: 0.02em; white-space: nowrap; }
.pill--sample { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px #F3DE9C; }
.pill--sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #D9A400; }
.pill--draft { background: var(--lav-soft); color: var(--purple-2); }
.you { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--purple); color: #fff; font: 700 10px/1.2 var(--sc-font-text); letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }

.kicker { margin: 0 0 2px; font: 600 11.5px/1.3 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); }
.viewtitle { margin: 0; font: 600 22px/1.15 var(--sc-font-display); letter-spacing: -0.02em; color: var(--sc-ink); }
.viewtitle__meta { display: block; margin-top: 3px; font: 500 13px/1.35 var(--sc-font-text); letter-spacing: 0; color: var(--ink-3); }

/* ---------------------------------------------------------------- chrome -- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 60;
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px 14px 16px;
  background: linear-gradient(180deg, var(--deep) 0%, var(--deeper) 100%);
  color: #fff;
}
.side :focus-visible { outline-color: #fff; }
.side__logo { display: block; color: #fff; padding: 2px 10px 0; width: fit-content; }
.side__logo svg { width: 98px; height: 30px; }
.side__ws { display: grid; gap: 2px; margin: 0 4px; padding: 10px 12px; border-radius: var(--r2); background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.side__ws-k { font: 500 11px/1.2 var(--sc-font-text); color: #CDB9E8; letter-spacing: 0.04em; text-transform: uppercase; }
.side__ws-v { font: 600 13.5px/1.3 var(--sc-font-text); }
.side__nav { display: grid; gap: 2px; }
.side__group { margin: 12px 12px 4px; font: 600 10.5px/1.2 var(--sc-font-text); letter-spacing: 0.08em; text-transform: uppercase; color: #BFA7DF; }
.side__group:first-child { margin-top: 0; }
.side__nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  height: 38px; padding: 0 12px; border-radius: var(--r2);
  color: #E8DDF6; text-decoration: none; font: 500 14px/1 var(--sc-font-text);
  transition: background-color 150ms var(--sc-ease-out), color 150ms var(--sc-ease-out);
}
.side__nav a svg { font-size: 18px; color: #C9B3E6; }
.side__nav a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.side__nav a[aria-current="true"] { background: #fff; color: var(--deep); font-weight: 600; box-shadow: var(--sc-e2); }
.side__nav a[aria-current="true"] svg { color: var(--purple); }
.side__foot { margin-top: auto; display: grid; gap: 10px; padding: 0 10px; }
.side__foot p { margin: 0; font-size: 12px; line-height: 1.45; color: #CDB9E8; }
.side__foot a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.side__foot a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

.top {
  position: fixed; top: 0; left: var(--side-w); right: 0; height: var(--top-h); z-index: 60;
  display: flex; align-items: center; gap: 14px; padding: 0 var(--gut);
  background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__logo { display: none; }
.crumbs { flex: 1; min-width: 0; }
.crumbs ol { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font: 500 13.5px/1 var(--sc-font-text); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs [aria-current] { color: var(--sc-ink); font-weight: 600; }
.top__search { display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; border-radius: var(--r2); background: var(--sc-canvas); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-size: 13.5px; text-decoration: none; transition: box-shadow 150ms var(--sc-ease-out); }
.top__search:hover { box-shadow: inset 0 0 0 1px var(--lav); color: var(--sc-ink); }
.top__login { color: var(--sc-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.top__login:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 0.22em; }

.status {
  position: fixed; left: var(--side-w); right: 0; bottom: 0; height: var(--bot-h); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 var(--gut);
  background: #fff; border-top: 1px solid var(--line);
  font: 500 12px/1 var(--sc-font-text); color: var(--ink-3); white-space: nowrap;
}
.status b { color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.status__dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #D9A400; vertical-align: 1px; }
.tabs { display: none; }

/* -------------------------------------------------------------- stages -- */
.act { position: relative; }
.view {
  position: absolute; top: var(--top-h); bottom: var(--bot-h); left: var(--side-w); right: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px var(--gut) 20px;
}
.viewhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }

/* ================================================= 1 · creative (pan) == */
.stage--feed { background: var(--sc-canvas); }
.ground { position: absolute; inset: -12% 0 -12% 0; z-index: 0; pointer-events: none; }
.ground__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #D9CCEA 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 85%);
  transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -10px), 0);
}
.feedhead {
  position: absolute; z-index: 4; left: var(--side-w); right: 0; top: var(--top-h);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 20px var(--gut) 0;
}
.feedhead .viewtitle__meta { display: inline; margin: 0 0 0 10px; }
.chips { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; list-style: none; max-width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips li {
  flex: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font: 500 12.5px/1 var(--sc-font-text); color: var(--ink-3);
  transition: background-color 200ms var(--sc-ease-out), color 200ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out);
}
.chips li svg { font-size: 14px; }
.chips li b { font-variant-numeric: tabular-nums; color: var(--sc-ink); }
.chips li.is-zero { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.chips li.is-zero b { color: var(--ink-3); font-weight: 500; }
.chips li.is-inview { background: var(--deep); color: #fff; box-shadow: none; }
.chips li.is-inview b { color: #fff; }

.rail {
  position: absolute; z-index: 2; left: 0; top: calc(var(--top-h) + 124px); bottom: calc(var(--bot-h) + 16px);
  display: flex; align-items: center; gap: 22px;
  padding-left: calc(var(--side-w) + var(--gut));
  --mh: clamp(220px, calc(100svh - var(--top-h) - var(--bot-h) - 236px), 380px);
}
.rail__tail { flex: none; width: calc(var(--gut) + 8px); height: 1px; }

.welcome {
  flex: none; position: relative;
  width: min(500px, 40vw); min-height: calc(var(--mh) + 54px); padding: 30px 34px 30px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  border-radius: 22px; color: #fff; overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, rgb(115 55 182 / 0.55), transparent 70%),
    linear-gradient(165deg, #45107F 0%, var(--deep) 45%, var(--deeper) 100%);
  box-shadow: var(--sc-e3);
  transform: translate3d(calc(var(--mx, 0) * 5px), calc(var(--my, 0) * 4px), 0);
}
.welcome::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16); pointer-events: none; }
.welcome__k { margin: 0 0 auto; font: 500 14px/1.45 var(--sc-font-text); color: #D9C9EE; max-width: 30ch; }
.welcome__h { margin: 0; font: 500 clamp(2.5rem, 1.1rem + 3.1vw, 4.1rem)/0.98 var(--sc-font-display); letter-spacing: -0.035em; text-wrap: balance; }
.welcome__h em { font-style: normal; color: var(--lav); }
.welcome__p { margin: 0; max-width: 40ch; font: 400 16px/1.55 var(--sc-font-text); color: #E6DAF4; }
.welcome__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 6px; }
.welcome__cta p { margin: 0; font-size: 12.5px; color: #D9C9EE; }
.welcome :focus-visible { outline-color: #fff; }

.ad {
  flex: none; position: relative; display: flex; flex-direction: column; gap: 10px;
  border-radius: var(--r3);
  will-change: transform, opacity;
}
.ad__media {
  position: relative; height: var(--mh); overflow: hidden; border-radius: var(--r3);
  background: #fff; box-shadow: var(--sc-e2);
  transition: box-shadow 180ms var(--sc-ease-out), transform 180ms var(--sc-ease-out);
}
.ad__media img, .ad__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad__vid { opacity: 0; transition: opacity 300ms var(--sc-ease-out); }
.ad__vid.is-on { opacity: 1; }
.ad--169 .ad__media { width: calc(var(--mh) * 16 / 9); }
.ad--45 .ad__media { width: calc(var(--mh) * 4 / 5); }
.ad--34 .ad__media { width: calc(var(--mh) * 3 / 4); }
.ad--11 .ad__media { width: var(--mh); }
.ad--bb .ad__media { width: calc(var(--mh) * 2); }
.ad--text .ad__media { width: calc(var(--mh) * 0.86); background: #fff; }

.ad__band {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 14px 12px; color: #fff;
  font: 500 13.5px/1.25 var(--sc-font-display);
}
.ad__band b { font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.ad__band span { text-align: right; }
.ad__band--orbel { background: #1F2A55; }
.ad__band--orbel b { letter-spacing: 0.16em; font-size: 12px; }
.ad__band--fernwick { background: #233328; flex-direction: column; align-items: flex-start; gap: 2px; }
.ad__band--fernwick span { text-align: left; font-size: 15px; font-weight: 600; }
.ad__band--tussock { background: #5B3B12; }
.ad__band--wayfold { background: #0E5E5A; }
.ad__band--wayfold b { text-transform: lowercase; font-size: 16px; letter-spacing: -0.02em; }
.ad__band--larkspur { background: #1E4A2E; flex-direction: column; align-items: flex-start; gap: 2px; }
.ad__band--larkspur span { text-align: left; }
.ad__band--bb { padding: 14px 20px; }
.ad__band--bb b { font-size: 22px; letter-spacing: -0.02em; }
.ad__badge {
  position: absolute; z-index: 2; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px;
  border-radius: 999px; background: rgb(20 10 34 / 0.92); color: #fff; font: 600 11.5px/1 var(--sc-font-text);
}
.ad__badge svg { font-size: 12px; fill: currentColor; }
.ad__meta { padding: 0 2px; }
.ad__brand { display: flex; align-items: center; gap: 7px; margin: 0; font: 600 14px/1.3 var(--sc-font-text); color: var(--sc-ink); white-space: nowrap; }
.ad__brand i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.ad__sub { margin: 2px 0 0 15px; font: 500 12.5px/1.3 var(--sc-font-text); color: var(--ink-3); white-space: nowrap; }
.ad__open { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: pointer; border-radius: var(--r3); }
.ad__open:focus-visible { outline-offset: 4px; }
.ad__pause {
  position: absolute; z-index: 4; top: 10px; right: 10px; width: 30px; height: 30px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgb(20 10 34 / 0.88); color: #fff; cursor: pointer;
}
.ad__pause svg { font-size: 14px; }
.ad__pause:focus-visible { outline-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .ad:hover .ad__media { box-shadow: var(--sc-e3); transform: translateY(-3px); }
}

.serp { padding: 18px 18px 0; display: grid; gap: 7px; }
.serp__url { margin: 0; font: 500 12px/1.3 var(--sc-font-text); color: #3E4553; }
.serp__url b { font-weight: 700; color: var(--sc-ink); }
.serp__t { margin: 0; font: 500 17px/1.3 var(--sc-font-text); color: #1A3FB0; letter-spacing: -0.01em; }
.serp__d { margin: 0; font: 400 13.5px/1.5 var(--sc-font-text); color: #3E4553; }
.radio { padding: 18px; display: grid; gap: 10px; height: 100%; align-content: start; }
.wave { width: 100%; height: 44px; color: #33B5C4; }
.radio__k { margin: 6px 0 0; font: 600 11px/1 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.radio__t { margin: 0; font: 500 15px/1.5 var(--sc-font-display); color: var(--sc-ink); }

.feedend { flex: none; align-self: center; min-height: calc(var(--mh) + 54px); width: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 0 4px 2px; }
.feedend__k { margin: 0; font: 600 20px/1.2 var(--sc-font-display); letter-spacing: -0.02em; color: var(--sc-ink); }
.feedend__p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sc-ink-soft); }
.shot { margin: 8px 0 0; }
.shot img { width: 180px; height: auto; border-radius: 12px; box-shadow: var(--sc-e2); }
.shot figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-3); }

.toast {
  position: absolute; z-index: 5; right: calc(var(--gut) + 8px); top: calc(var(--top-h) + 132px);
  opacity: 0; transform: translate3d(0, -10px, 0); pointer-events: none;
  transition: opacity 360ms var(--sc-ease-out), transform 360ms var(--sc-ease-out);
}
.toast.is-on { opacity: 1; transform: none; }
.toast__in {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 12px;
  border-radius: 14px; background: #fff; box-shadow: var(--sc-e3), inset 0 0 0 1px var(--line);
  transform: translate3d(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 12px), 0);
}
.toast__in svg { font-size: 18px; color: var(--purple); padding: 8px; box-sizing: content-box; border-radius: 10px; background: var(--lav-soft); }
.toast__in p { display: grid; gap: 2px; margin: 0; font-size: 13px; line-height: 1.25; }
.toast__in p span { color: var(--ink-3); }

/* ================================================ 2 · share of voice == */
.view--sov { gap: 14px; }
.sov { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; }
.sov__main {
  display: flex; flex-direction: column; min-height: 0;
  padding: 20px 22px 16px; border-radius: 18px; background: #fff; box-shadow: var(--sc-e2), inset 0 0 0 1px var(--line);
}
.sov__lines { position: relative; min-height: 2.6em; margin-bottom: 14px; font: 500 clamp(1.25rem, 0.8rem + 1vw, 1.75rem)/1.15 var(--sc-font-display); letter-spacing: -0.025em; }
.sov__line { margin: 0; transition: opacity 420ms var(--sc-ease-out), transform 420ms var(--sc-ease-out); text-wrap: balance; }
.sov__line b { color: var(--purple); font-weight: 600; }
.sov__line--end { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translate3d(0, 10px, 0); font-size: 1.32em; line-height: 1.02; letter-spacing: -0.035em; }
.sov__line--end em { font-style: normal; color: var(--purple); }
[data-state="all"] .sov__line:not(.sov__line--end) { opacity: 0; transform: translate3d(0, -8px, 0); }
[data-state="all"] .sov__line--end { opacity: 1; transform: none; }

.table { --row-h: clamp(44px, calc((100svh - 470px) / 6), 62px); display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.table__head, .row {
  display: grid; align-items: center; column-gap: 14px;
  grid-template-columns: 26px minmax(200px, 1.4fr) minmax(80px, 1.2fr) 62px 74px 84px;
}
.table__head { padding: 0 10px 8px; border-bottom: 1px solid var(--line); font: 600 11.5px/1.2 var(--sc-font-text); color: var(--ink-3); letter-spacing: 0.02em; }
.num { text-align: right; }
.h-short { display: none; }
.table__body { position: relative; height: calc(var(--row-h) * 6); }
.row {
  position: absolute; left: 0; right: 0; top: 0; height: var(--row-h); padding: 0 10px;
  border-bottom: 1px solid #F0EBF6;
  transform: translate3d(0, calc(var(--rank) * var(--row-h)), 0);
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1), background-color 400ms var(--sc-ease-out);
  font-size: 15px;
}
.row--you { background: #FAF6FE; }
.row__rank { font-weight: 700; color: var(--ink-3); }
.row__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.row__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row__brand .you { flex: none; }
.row__brand i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.row__bar { height: 12px; border-radius: 6px; background: #F2EDF8; overflow: hidden; }
.row__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--c); transform-origin: 0 50%; transform: scaleX(var(--w, 0)); transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1); }
.row__share { font-weight: 600; }
.row__spend { color: var(--sc-ink-soft); }
.row__move { font-weight: 600; font-size: 13px; color: var(--ink-3); }
.row__move.up { color: var(--ok-ink); }
.row__move.down { color: var(--err-ink); }
.row.is-hot { background: #FFF1F3; }
.sov__status { margin: auto 2px 0; padding-top: 12px; border-top: 1px solid var(--line); font: 500 13.5px/1.4 var(--sc-font-text); color: var(--sc-ink-soft); min-height: 2.8em; }

.sov__side { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.board { padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--sc-e2), inset 0 0 0 1px var(--line); }
.board__h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 12px; font: 600 14px/1 var(--sc-font-text); }
.board__h span { font-weight: 600; font-size: 12.5px; color: var(--purple); font-variant-numeric: tabular-nums; }
.board__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sw {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 6px 8px;
  min-height: 62px; padding: 10px 10px 9px; text-align: left;
  border: 0; border-radius: 12px; cursor: pointer;
  background: #F3EFF8; color: var(--ink-3);
  font: 600 12.5px/1.15 var(--sc-font-text);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 260ms var(--sc-ease-out), color 260ms var(--sc-ease-out), box-shadow 260ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.sw svg { font-size: 17px; }
.sw__name { grid-column: 1 / -1; }
.sw__track { justify-self: end; grid-row: 1; grid-column: 2; width: 28px; height: 16px; border-radius: 999px; background: #D9CEE7; position: relative; transition: background-color 260ms var(--sc-ease-out); }
.sw__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(30 10 50 / 0.3); transition: transform 260ms var(--sc-ease-out); }
.sw[aria-checked="true"] { background: var(--deep); color: #fff; box-shadow: var(--sc-e1); }
.sw[aria-checked="true"] .sw__track { background: var(--lav); }
.sw[aria-checked="true"] .sw__track::after { transform: translateX(12px); }
.sw[data-feed] { background-color: var(--purple); }
.sw:active { transform: scale(0.97); }
.sw:hover { box-shadow: inset 0 0 0 1px var(--lav); }
.sw.is-flash { animation: sw-flash 700ms var(--sc-ease-out); }
@keyframes sw-flash { 0% { transform: scale(1); } 30% { transform: scale(1.05); } 100% { transform: scale(1); } }
.board__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.board__foot p { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-3); }

.spot { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.spot__frame {
  position: relative; flex: 1; min-height: 120px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 45%, #241040 0%, #150828 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), var(--sc-e1);
  transition: box-shadow 400ms var(--sc-ease-out);
}
.spot__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; margin: 0; padding: 18px 28px; text-align: center; font-size: 13.5px; line-height: 1.5; color: #CDB9E8; transition: opacity 300ms var(--sc-ease-out); }
.spot__empty svg { font-size: 24px; color: var(--lav); }
.spot__empty span { max-width: 30ch; }
.spot__poster, .spot__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms var(--sc-ease-out); }
.spot__band { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 14px; background: #10233A; color: #fff; font: 500 13px/1.2 var(--sc-font-display); transform: translate3d(0, 100%, 0); transition: transform 520ms var(--sc-ease-out) 200ms; }
.spot__band b { letter-spacing: 0.2em; font-size: 12px; }
.spot__replay { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: rgb(16 10 30 / 0.88); color: #fff; font: 600 12px/1 var(--sc-font-text); cursor: pointer; }
.spot__replay:focus-visible { outline-color: #fff; }
.spot__cap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); opacity: 0; transition: opacity 300ms var(--sc-ease-out); }
.spot__new { flex: none; padding: 3px 7px; border-radius: 5px; background: var(--err-bg); color: var(--err-ink); font-weight: 700; font-size: 11px; letter-spacing: 0.02em; }
.spot[data-state="on"] { }
.spot[data-state="on"] .spot__empty { opacity: 0; }
.spot[data-state="on"] .spot__poster, .spot[data-state="on"] .spot__vid.is-on { opacity: 1; }
.spot[data-state="on"] .spot__band { transform: none; }
.spot[data-state="on"] .spot__cap { opacity: 1; }
.spot[data-state="on"] .spot__frame { box-shadow: var(--sc-e3); }

/* ===================================================== 3 · media mix == */
.act--mix { padding-block: 26px 40px; }
.flowview { padding-left: calc(var(--side-w) + var(--gut)); padding-right: var(--gut); }
.act--mix .flowview { padding-top: calc(var(--top-h) + 10px); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 12.5px/1 var(--sc-font-text); color: var(--sc-ink-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; background: var(--c); vertical-align: -1px; }
.mix {
  margin-top: 16px; padding: 20px 22px 18px; border-radius: 18px; background: #fff; box-shadow: var(--sc-e2), inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto auto; gap: 14px 26px;
}
.mix__chart { min-width: 0; }
#mix-svg { display: block; width: 100%; height: clamp(200px, 30vh, 300px); overflow: visible; }
#mix-svg .col { transition: opacity 260ms var(--sc-ease-out); }
#mix-svg .col.is-dim { opacity: 0.42; }
#mix-svg .guide { stroke: #EEE8F5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mix__months { display: grid; grid-template-columns: repeat(12, 1fr); margin: 8px 0 0; padding: 0; list-style: none; font: 500 11.5px/1 var(--sc-font-text); color: var(--ink-3); text-align: center; }
.mix__months li.is-on { color: var(--sc-ink); font-weight: 700; }
.mix__read { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mix__month { margin: 0; font: 600 26px/1 var(--sc-font-display); letter-spacing: -0.02em; }
.mix__total { margin: 0 0 6px; font-size: 13.5px; color: var(--sc-ink-soft); }
.mix__total span { font-weight: 700; color: var(--sc-ink); }
.mix__rows { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 0; font-size: 13px; }
.mix__rows dt { display: flex; align-items: center; gap: 7px; color: var(--sc-ink-soft); }
.mix__rows dt i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.mix__rows dd { margin: 0; text-align: right; font-weight: 600; }
.mix__rows .is-key dt { color: var(--sc-ink); font-weight: 600; }
.mix__alert { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; padding: 9px 11px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12.5px; line-height: 1.4; box-shadow: inset 0 0 0 1px #F3DE9C; }
.mix__alert svg { font-size: 15px; margin-top: 1px; }
.mix__alert.is-off { visibility: hidden; }
.mix__scrub { grid-column: 1; display: flex; align-items: center; gap: 12px; font: 600 12.5px/1 var(--sc-font-text); color: var(--sc-ink-soft); }
.mix__scrub input { flex: 1; accent-color: var(--purple); }

.real {
  margin: 18px 0 0; padding: 22px 24px; border-radius: 18px;
  background: var(--deep); color: #fff; box-shadow: var(--sc-e2);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: start;
}
.real__k { grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 7px; margin: 3px 0 0; padding: 6px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.1); font: 600 12px/1 var(--sc-font-text); letter-spacing: 0.02em; white-space: nowrap; }
.real__p { margin: 0; max-width: 64ch; font: 500 clamp(1.05rem, 0.9rem + 0.4vw, 1.3rem)/1.45 var(--sc-font-display); letter-spacing: -0.01em; text-wrap: pretty; }
.real__p b { color: var(--warn); font-weight: 700; }
.real figcaption { font-size: 12.5px; line-height: 1.5; color: #D4C3EA; }
.real a { color: #fff; }
.real :focus-visible { outline-color: #fff; }

/* ========================================================= 4 · audit == */
.audit { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.draft {
  position: relative; margin: 0; align-self: start; max-height: 100%;
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: var(--sc-e3), inset 0 0 0 1px var(--line);
  max-width: none;
}
.draft__media { position: relative; flex: 1; min-height: 0; aspect-ratio: 4 / 4.2; }
.draft__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.draft__copy { padding: 14px 16px 16px; display: grid; gap: 6px; }
.draft__brand { margin: 0; font: 700 11.5px/1 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase; color: #233328; }
.draft__h { margin: 0; font: 600 20px/1.2 var(--sc-font-display); letter-spacing: -0.02em; }
.draft__price { margin: 0; font: 500 15px/1.35 var(--sc-font-text); }
.draft__fine { margin: 0; font-size: 10.5px; color: var(--ink-3); }
.draft mark { background: transparent; color: inherit; border-radius: 3px; box-shadow: inset 0 -2px 0 transparent; transition: background-color 300ms var(--sc-ease-out), box-shadow 300ms var(--sc-ease-out); }
.draft mark.is-flag[data-sev="high"] { background: var(--err-bg); box-shadow: inset 0 -2px 0 var(--err); }
.draft mark.is-flag[data-sev="medium"], .draft mark.is-flag[data-sev="low"] { background: var(--warn-bg); box-shadow: inset 0 -2px 0 var(--warn); }
.scan { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.scan i {
  position: absolute; left: 0; right: 0; top: 0; height: 64px; margin-top: -64px;
  background: linear-gradient(180deg, transparent, rgb(115 55 182 / 0.16) 85%, rgb(115 55 182 / 0.9) 100%);
  transform: translate3d(0, var(--scan-y, 0px), 0);
  opacity: var(--scan-o, 0);
}
.report {
  display: flex; flex-direction: column; gap: 12px; min-height: 0;
  padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: var(--sc-e2), inset 0 0 0 1px var(--line);
}
.report__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.report__t { margin: 0; font: 600 17px/1.2 var(--sc-font-display); letter-spacing: -0.015em; }
.report__sum { margin: 0; font-size: 13px; font-weight: 600; color: var(--purple); font-variant-numeric: tabular-nums; }
.flags { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.flag {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: #FBF9FD; box-shadow: inset 0 0 0 1px var(--line);
  transform: translate3d(0, 6px, 0);
  transition: opacity 360ms var(--sc-ease-out), transform 360ms var(--sc-ease-out), filter 360ms var(--sc-ease-out);
}
.flag.is-on { opacity: 1; transform: none; filter: none; }
/* Not found yet: a skeleton row, not faded text. Results fill in as the scan reaches them. */
.flag:not(.is-on) { opacity: 1; filter: none;
  background-image: linear-gradient(#EAE3F3, #EAE3F3), linear-gradient(#EAE3F3, #EAE3F3), linear-gradient(#F1ECF7, #F1ECF7);
  background-size: 48px 18px, 38% 10px, 62% 8px;
  background-position: 14px 13px, 90px 15px, 90px 35px;
  background-repeat: no-repeat; }
.flag:not(.is-on) > * { visibility: hidden; }
.flag__sev { margin: 1px 0 0; align-self: start; justify-self: start; padding: 4px 8px; border-radius: 6px; font: 700 11px/1 var(--sc-font-text); letter-spacing: 0.03em; }
.flag[data-sev="high"] .flag__sev { background: var(--err-bg); color: var(--err-ink); box-shadow: inset 0 0 0 1px #F7B9BC; }
.flag[data-sev="medium"] .flag__sev { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px #F0D88A; }
.flag[data-sev="low"] .flag__sev { background: #F1EDF6; color: var(--sc-ink-soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.flag__rule { margin: 0 0 3px; font: 600 14px/1.25 var(--sc-font-text); }
.flag__why { margin: 0; font-size: 13px; line-height: 1.45; color: var(--sc-ink-soft); }
.flag__fix { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--sc-ink); }
.flag__fix::before { content: "Fix: "; font-weight: 600; color: var(--purple); }
.report__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 4px; }
.report__note { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }

/* ====================================================== 5 · platform == */
.act--platform { padding-block: 24px 64px; }
.act--platform .flowview { padding-top: 18px; }
.plat {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 18px;
  padding: 44px 0 44px 44px; border-radius: 26px; overflow: hidden; color: #fff;
  background:
    radial-gradient(70% 90% at 85% 40%, rgb(115 55 182 / 0.55), transparent 70%),
    linear-gradient(160deg, #46107F 0%, var(--deep) 50%, var(--deeper) 100%);
  box-shadow: var(--sc-e3);
}
.plat :focus-visible { outline-color: #fff; }
.plat__k { margin: 0 0 10px; font: 600 12px/1 var(--sc-font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lav); }
.plat__h { margin: 0; font: 500 clamp(2rem, 1.2rem + 2vw, 3.2rem)/1.02 var(--sc-font-display); letter-spacing: -0.035em; text-wrap: balance; }
.plat__h em { font-style: normal; color: var(--lav); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.stats li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 0.16); }
.stats b { font: 500 clamp(2rem, 1.4rem + 1.3vw, 2.7rem)/1 var(--sc-font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: #DCCDF0; }
.plat__trust { display: flex; align-items: center; gap: 9px; margin: 26px 0 0; font-size: 14px; color: #E6DAF4; }
.plat__trust svg { font-size: 17px; color: var(--lav); }
.tour { position: relative; margin: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.tour__stage { position: relative; aspect-ratio: 1120 / 1080; margin-right: -6%; }
.tour__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: translate3d(0, var(--tour-y, 0px), 0); }
.tour figcaption { display: flex; align-items: center; gap: 12px; margin: 0 44px 0 0; font-size: 12.5px; color: #D4C3EA; }
.tour__toggle { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.12); color: #fff; font: 600 12px/1 var(--sc-font-text); cursor: pointer; }
.tour__toggle:hover { background: rgb(255 255 255 / 0.2); }

.voices { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; margin-top: 18px; }
.voice { margin: 0; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: var(--sc-e1), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.voice blockquote { margin: 0; }
.voice p { margin: 0; font: 500 16px/1.45 var(--sc-font-display); letter-spacing: -0.01em; color: var(--sc-ink); text-wrap: pretty; }
.voice--lead { background: var(--lav-soft); box-shadow: inset 0 0 0 1px #E1D3F2; }
.voice--lead p { font-size: clamp(1.15rem, 0.95rem + 0.5vw, 1.4rem); line-height: 1.38; }
.voice figcaption { font-size: 13px; font-weight: 600; color: var(--sc-ink-soft); }

.lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.insights, .help { padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: var(--sc-e1), inset 0 0 0 1px var(--line); }
.paneltitle { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.paneltitle h3 { margin: 0; font: 600 18px/1.2 var(--sc-font-display); letter-spacing: -0.015em; }
.paneltitle__meta { font-size: 13px; color: var(--ink-3); }
.posts { margin: 0; padding: 0; list-style: none; }
.posts li + li { border-top: 1px solid var(--line); }
.posts a { display: grid; gap: 3px; padding: 12px 0; color: inherit; text-decoration: none; }
.posts time { font-size: 12px; font-weight: 600; color: var(--purple); font-variant-numeric: tabular-nums; }
.posts__t { font: 600 15px/1.35 var(--sc-font-display); letter-spacing: -0.01em; }
.posts__d { font-size: 13px; line-height: 1.45; color: var(--sc-ink-soft); }
.posts a:hover .posts__t { color: var(--purple); text-decoration: underline; text-underline-offset: 0.2em; }

.sub { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.sub fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sub legend { display: grid; gap: 3px; padding: 0; margin-bottom: 8px; }
.sub__h { font: 600 18px/1.2 var(--sc-font-display); letter-spacing: -0.015em; }
.sub__h em { font-style: normal; color: var(--purple); }
.sub__p { font-size: 13px; color: var(--sc-ink-soft); }
.sub__preview { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12.5px; line-height: 1.4; box-shadow: inset 0 0 0 1px #F3DE9C; }
.sub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.sub__grid .span2 { grid-column: 1 / -1; }
.sub label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--sc-ink-soft); }
.sub .opt { font-weight: 500; color: var(--ink-3); }
.sub input, .find__form input {
  height: 38px; padding: 0 11px; border-radius: 8px; border: 0;
  background: #FBF9FD; box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 14px/1 var(--sc-font-text); color: var(--sc-ink);
  transition: box-shadow 150ms var(--sc-ease-out);
}
.sub input:focus-visible, .find__form input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--purple); border-radius: 8px; }
.sub input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.sub__err { min-height: 1.3em; margin: 8px 0; font-size: 12.5px; color: var(--err-ink); }
.sub__out { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #F7F3FB; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.5; }
.sub__out p { margin: 0 0 8px; }
.sub__out dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.sub__out dt { color: var(--ink-3); }
.sub__out dd { margin: 0; font-weight: 600; word-break: break-word; }

.help details { border-top: 1px solid var(--line); }
.help details:first-of-type { border-top: 0; }
.help summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; font: 600 14.5px/1.35 var(--sc-font-text); }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--lav-soft); color: var(--purple); font-weight: 600; transition: transform 160ms var(--sc-ease-out); }
.help details[open] summary::after { content: "–"; }
.help summary:hover { color: var(--purple); }
.help details > div { padding: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--sc-ink-soft); }
.help details p { margin: 0 0 8px; }

/* ===================================================== 6 · search close == */
.view--search { gap: 18px; padding-top: 24px; }
.find { width: min(760px, 100%); display: flex; flex-direction: column; gap: 14px; margin-block: auto; }
.find__t { margin: 0 0 6px; font: 500 clamp(2.3rem, 1.3rem + 2.4vw, 3.6rem)/1 var(--sc-font-display); letter-spacing: -0.035em; text-wrap: balance; }
.find__t em { font-style: normal; color: var(--purple); }
.find__form { position: relative; display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 46px; border-radius: 16px; background: #fff; box-shadow: var(--sc-e3), inset 0 0 0 1px var(--line); }
.find__form > svg { position: absolute; left: 16px; font-size: 20px; color: var(--purple); }
.find__form input { flex: 1; min-width: 0; height: 44px; font-size: 16px; background: transparent; box-shadow: none; padding: 0 4px; }
.find__form input:focus-visible { box-shadow: none; }
.find__form:focus-within { box-shadow: var(--sc-e3), inset 0 0 0 2px var(--purple); }
.find__out { min-height: 64px; font-size: 14px; line-height: 1.5; color: var(--sc-ink-soft); }
.find__hint { margin: 0; }
.result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 16px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: var(--sc-e1), inset 0 0 0 1px var(--line); color: var(--sc-ink); }
.result__sw { width: 12px; height: 36px; border-radius: 4px; background: var(--c); grid-row: span 2; }
.result__n { margin: 0; font: 600 16px/1.2 var(--sc-font-display); }
.result__d { margin: 0; font-size: 13px; color: var(--sc-ink-soft); }
.result__rank { grid-row: span 2; text-align: right; font: 600 22px/1 var(--sc-font-display); color: var(--purple); }
.result__rank small { display: block; font: 500 11.5px/1.3 var(--sc-font-text); color: var(--ink-3); }
.empty { padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.empty p { margin: 0; }
.empty p + p { margin-top: 4px; }
.find__carry { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.find__carry p { margin: 0 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.find__carry ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.find__carry li { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--deep); color: #fff; }
.find__carry li.is-off { background: #fff; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.find__carry li svg { font-size: 13px; }
.find__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 6px; }
.find__cta p { margin: 0; font-size: 13px; color: var(--sc-ink-soft); }
.find__cta a:not(.btn) { color: var(--purple); font-weight: 600; }
.foot { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot nav a { font-size: 12.5px; font-weight: 500; color: var(--sc-ink-soft); text-decoration: none; }
.foot nav a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 0.2em; }
.foot p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }

/* ===================================================== inspector dialog == */
.insp {
  width: min(980px, calc(100vw - 32px)); max-height: calc(100svh - 40px); padding: 0; border: 0; border-radius: 22px;
  display: none; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  background: #fff; color: var(--sc-ink); box-shadow: var(--sc-e3); overflow: hidden;
}
.insp[open] { display: grid; }
.insp::backdrop { background: rgb(28 10 50 / 0.55); backdrop-filter: blur(3px); }
.insp__media { position: relative; background: #120A20; min-height: 280px; display: grid; place-items: center; }
.insp__media img, .insp__media video { width: 100%; height: 100%; max-height: calc(100svh - 40px); object-fit: contain; display: block; }
.insp__media .serp, .insp__media .radio { width: 100%; max-width: 440px; margin: 24px; padding: 22px; border-radius: 14px; background: #fff; }
.insp__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 20px; overflow: auto; }
.insp__title { margin: 0; font: 600 26px/1.1 var(--sc-font-display); letter-spacing: -0.025em; }
.insp__meta { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 4px 0 0; font-size: 13.5px; }
.insp__meta dt { color: var(--ink-3); }
.insp__meta dd { margin: 0; font-weight: 600; }
.insp h3 { margin: 10px 0 4px; font: 600 13px/1.2 var(--sc-font-text); letter-spacing: 0.03em; text-transform: uppercase; color: var(--purple); }
.insp__more p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--sc-ink-soft); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.spark i { flex: 1; border-radius: 2px; background: var(--lav); }
.spark i.on { background: var(--purple); }
.insp__close { align-self: flex-start; margin-top: auto; }

/* ============================================================ tablet == */
@media (max-width: 1180px) {
  :root { --side-w: 76px; --gut: 22px; }
  .side { padding: 18px 10px; align-items: center; }
  .side__logo { padding: 0; }
  .side__logo svg { width: 48px; height: 15px; }
  .side__ws, .side__group, .side__foot p { display: none; }
  .side__nav a { width: 52px; justify-content: center; padding: 0; }
  .side__nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .side__foot a { font-size: 0; justify-content: center; }
  .side__foot a svg { font-size: 20px; }
  .top__search { width: auto; }
  .top__search span { display: none; }
  .sov { grid-template-columns: minmax(0, 1fr) 300px; }
  .table__head, .row { grid-template-columns: 22px minmax(120px, 1.3fr) minmax(50px, 1fr) 58px 0 82px; column-gap: 10px; }
  .col-spend { visibility: hidden; }
  .mix { grid-template-columns: minmax(0, 1fr) 240px; }
}

/* ============================================================= phone == */
@media (max-width: 860px) {
  :root { --side-w: 0px; --top-h: 52px; --bot-h: calc(60px + env(safe-area-inset-bottom)); --gut: 16px; }
  body { font-size: 14.5px; }
  .side, .status, .crumbs, .top__login, .top__search { display: none; }
  .top { left: 0; gap: 10px; background: var(--deep); border-bottom: 0; backdrop-filter: none; color: #fff; }
  .top :focus-visible { outline-color: #fff; }
  .top__logo { display: block; color: #fff; margin-right: auto; }
  .top__logo svg { width: 76px; height: 24px; display: block; }
  .top__cta { height: 34px; padding: 0 13px; font-size: 13px; background: #fff; color: var(--deep); }
  .top__cta:hover { background: var(--lav-soft); }
  .pill--sample { height: 22px; font-size: 11px; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--bot-h);
    display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgb(40 10 70 / 0.25);
  }
  .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); text-decoration: none; font: 600 11px/1 var(--sc-font-text); }
  .tabs a svg { font-size: 20px; }
  .tabs a[aria-current="true"] { color: var(--purple); }
  .tabs a[aria-current="true"] svg { stroke-width: 2.3; }

  .view { padding: 14px var(--gut) 12px; gap: 10px; }
  .viewtitle { font-size: 19px; }
  .viewtitle__meta { font-size: 12px; }
  .kicker { font-size: 10.5px; }

  /* creative */
  .feedhead { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 14px; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .chips li { height: 26px; padding: 0 9px; font-size: 12px; flex: none; }
  .rail { top: calc(var(--top-h) + 112px); bottom: calc(var(--bot-h) + 14px); gap: 14px; --mh: clamp(170px, calc(100svh - var(--top-h) - var(--bot-h) - 250px), 300px); }
  .welcome { width: min(330px, 84vw); padding: 22px 20px 20px; gap: 12px; border-radius: 18px; }
  .welcome__k { font-size: 13px; }
  .welcome__h { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .welcome__p { font-size: 14.5px; line-height: 1.5; }
  .welcome__cta p { font-size: 12px; }
  .toast { display: none; }
  .ad__band { font-size: 12.5px; padding: 9px 11px 10px; }
  .ad__band--bb b { font-size: 18px; }
  .feedend { width: 250px; }
  .shot img { width: 140px; }

  /* share of voice */
  .view--sov { gap: 8px; }
  .view--sov .viewhead .btn { width: 34px; padding: 0; }
  .view--sov .viewhead .btn__t { display: none; }
  .sov { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 8px; align-content: start; }
  .sov__main { order: 2; padding: 10px 12px 8px; border-radius: 14px; }
  .sov__side { order: 1; display: contents; }
  .board { order: 1; padding: 10px; border-radius: 14px; }
  .spot { order: 3; flex: none; }
  .board__h { margin-bottom: 8px; font-size: 12.5px; }
  .board__grid { gap: 5px; }
  .sw { min-height: 0; grid-template-columns: auto 1fr auto; grid-template-rows: auto; padding: 7px 8px; gap: 6px; font-size: 11px; border-radius: 9px; }
  .sw svg { font-size: 14px; }
  .sw__name { grid-column: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sw__track { display: none; }
  .board__foot { margin-top: 0; }
  .board__foot p { display: none; }
  #board-auto { margin-top: 6px; height: 28px; font-size: 12px; }
  .sov__lines { font-size: 16px; min-height: 2.75em; margin-bottom: 6px; }
  .sov__line--end { font-size: 1.25em; }
  .table { --row-h: 34px; }
  .table__head { padding: 0 6px 5px; font-size: 10.5px; }
  .table__head, .row { grid-template-columns: 16px minmax(0, 1.75fr) minmax(22px, 0.45fr) 44px 0 38px; column-gap: 7px; }
  .table__head { white-space: nowrap; }
  .h-long { display: none; }
  .h-short { display: inline; }
  .report__head { flex-direction: column; align-items: flex-start; gap: 3px; }
  .row { padding: 0 6px; font-size: 12.5px; }
  .row__bar { height: 8px; }
  .row__move { font-size: 11.5px; }
  .you { font-size: 9px; padding: 2px 4px; margin-left: 4px; }
  .sov__status { margin-top: 6px; padding-top: 6px; font-size: 12px; min-height: 2.6em; }
  .spot__frame { flex: none; height: 74px; min-height: 0; border-radius: 12px; display: grid; }
  .spot__poster, .spot__vid { width: 132px; right: auto; }
  .spot__band { left: 132px; top: 0; bottom: 0; transform: translate3d(100%, 0, 0); flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; padding: 8px 12px; }
  .spot__empty { padding: 8px 12px; font-size: 12px; grid-auto-flow: column; gap: 8px; }
  .spot__cap { display: none; }
  .spot__replay { top: auto; bottom: 6px; right: auto; left: 6px; height: 24px; padding: 0 8px; font-size: 11px; }

  /* media mix */
  .act--mix { padding-block: 10px 24px; }
  .act--mix .flowview { padding-top: calc(var(--top-h) + 8px); }
  .act--mix .viewhead { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mix { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
  .mix__read { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .mix__month { font-size: 22px; }
  .mix__rows { grid-template-columns: 1fr auto 1fr auto; }
  .mix__scrub { grid-row: auto; }
  #mix-svg { height: 200px; }
  .mix__months { font-size: 10px; }
  .real { grid-template-columns: 1fr; padding: 18px; }
  .real__k { grid-row: auto; justify-self: start; }

  /* audit */
  .view--audit { gap: 10px; }
  .view--audit .pill--draft { display: none; }
  .audit { grid-template-columns: 1fr; gap: 10px; align-content: start; }
  .draft { flex-direction: row; max-width: none; border-radius: 14px; }
  .draft__media { flex: none; width: 104px; aspect-ratio: auto; }
  .draft__copy { padding: 10px 12px; gap: 4px; }
  .draft__brand { font-size: 10px; }
  .draft__h { font-size: 15.5px; }
  .draft__price { font-size: 13px; }
  .report { padding: 12px; gap: 8px; border-radius: 14px; }
  .report__t { font-size: 15px; }
  .report__head { padding-bottom: 8px; }
  .flags { gap: 6px; }
  .flag { grid-template-columns: 54px 1fr; gap: 8px; padding: 8px 10px; }
  .flag__sev { font-size: 10px; padding: 3px 6px; }
  .flag__rule { font-size: 13px; margin: 0; }
  .flag__why { display: none; }
  .flag__fix { font-size: 12px; margin-top: 2px; }
  .report__note { display: none; }

  /* platform */
  .act--platform { padding-block: 12px 40px; }
  .act--platform .flowview { padding-top: 8px; }
  .plat { grid-template-columns: 1fr; padding: 28px 20px 18px; border-radius: 20px; gap: 6px; }
  .stats { gap: 16px 18px; margin-top: 22px; }
  .tour__stage { margin: 0 -8% 0 -4%; }
  .tour figcaption { margin: 0; flex-wrap: wrap; }
  .voices, .lower { grid-template-columns: 1fr; }
  .sub__grid { grid-template-columns: 1fr; }

  /* search */
  .view--search { padding-top: 22px; gap: 12px; }
  .find { gap: 12px; }
  .find__form { padding: 6px 6px 6px 40px; border-radius: 14px; }
  .find__form > svg { left: 13px; font-size: 18px; }
  .find__form input { height: 40px; font-size: 16px; }
  .find__out { min-height: 0; font-size: 13.5px; }
  .find__carry { gap: 6px; }
  .find__carry li { height: 24px; font-size: 11px; }
  .find__cta { gap: 8px 14px; }
  .foot nav { gap: 4px 12px; }
  .foot nav a { font-size: 11.5px; }

  .insp { grid-template-columns: 1fr; max-height: calc(100svh - 24px); overflow: auto; width: calc(100vw - 20px); }
  .insp__media { min-height: 200px; }
  .insp__body { overflow: visible; }
}

/* compact phones: hold the essentials, drop the garnish */
@media (max-width: 860px) and (max-height: 700px) {
  .welcome__k { display: none; }
  .welcome__p { font-size: 13.5px; }
  .welcome { padding: 18px 18px 16px; gap: 10px; }
  .feedhead .kicker { display: none; }
  .rail { top: calc(var(--top-h) + 92px); }
  .sov__lines { font-size: 14.5px; min-height: 2.75em; }
  .table { --row-h: 28px; }
  .board__h { display: none; }
  .view--sov .kicker, .view--audit .kicker { display: none; }
  .sw { padding: 6px 8px; }
  .sov__main { padding: 8px 10px 6px; }
  .sov__lines { margin-bottom: 4px; }
  .table__head { padding-bottom: 4px; }
  .sov__status { font-size: 11.5px; }
  .spot__frame { height: 62px; }
  .spot__poster, .spot__vid { width: 110px; }
  .spot__band { left: 110px; }
  .view--sov .viewtitle__meta, .view--audit .viewtitle__meta { display: none; }
  .draft__media { width: 84px; }
  .flag__fix { display: none; }
  .find__t { font-size: 1.85rem; margin-bottom: 0; }
  .view--search { padding-top: 14px; gap: 8px; }
  .find { gap: 9px; }
  .view--search .kicker { display: none; }
  .find__form input { height: 36px; }
  .find__out { font-size: 12.5px; line-height: 1.45; }
  .find__carry li { height: 22px; padding: 0 7px; font-size: 10.5px; }
  .find__cta { margin-top: 2px; }
  .find__cta .btn--lg { height: 42px; }
  .foot { padding-top: 8px; }
  .foot p { font-size: 10.5px; line-height: 1.4; }
  .foot nav { display: none; }
}

/* ===================================================== reduced motion == */
@media (prefers-reduced-motion: reduce) {
  .row, .row__bar i, .sov__line, .flag, .spot__band, .spot__poster, .spot__vid, .toast, .chips li, .sw, .sw__track::after { transition-duration: 1ms !important; }
  .ground__dots, .welcome, .toast__in, .tour__vid { transform: none !important; }
  .scan i { display: none; }
  .ad { opacity: 1 !important; transform: none !important; }
  /* the engine hands the rail back as a scroll region; keep the heading out of the snap */
  .stage--feed { scroll-padding-inline: calc(var(--side-w) + var(--gut)) var(--gut); }
  [data-sc-act="pan"] [data-sc-pan] > .welcome { scroll-snap-align: start; }
}
