/* ============================================================
   SHOW OVERVIEW v3 — decision-first cockpit
   ============================================================ */

.sv3 {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding-bottom: 40px;
}

/* ── HEADER ───────────────────────────────────────────────── */
.sv3-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 4px;
}
.sv3-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 6px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-quiet);
  transition: background 120ms, color 120ms;
}
.sv3-back:hover { background: var(--hairline); color: var(--text); }
.sv3-head-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sv3-head-sep { color: var(--text-faint); }
.sv3-head-actions {
  margin-left: auto;
}

.sv3-actions { position: relative; }
.sv3-actions-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  transition: background 120ms, border-color 120ms;
}
.sv3-actions-trigger:hover {
  background: var(--surface);
  border-color: var(--hairline-strong);
}
.sv3-actions-trigger.is-open {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-muted);
}
.sv3-actions-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.04), 0 12px 40px oklch(0 0 0 / 0.14);
  z-index: 30;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: sv3-actions-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sv3-actions-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.sv3-actions-group { display: flex; flex-direction: column; gap: 1px; }
.sv3-actions-group-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}
.sv3-actions-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  transition: background 100ms;
}
.sv3-actions-item:hover { background: var(--bg-elevated); }
.sv3-actions-item.is-primary { background: var(--bg-elevated); }
.sv3-actions-item.is-primary:hover { background: var(--hairline); }
.sv3-actions-item.is-danger { color: var(--h-critical); }
.sv3-actions-item-icon {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  background: var(--hairline);
  color: var(--text);
}
.sv3-actions-item.is-danger .sv3-actions-item-icon { background: var(--h-critical-bg); color: var(--h-critical); }
.sv3-actions-item-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sv3-actions-item-label { font-weight: 500; letter-spacing: -0.005em; }
.sv3-actions-item-hint { font-size: 11.5px; color: var(--text-muted); }
.sv3-actions-item-pill {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: var(--text);
  color: var(--bg);
  padding: 2px 7px;
  border-radius: 999px;
}
.sv3-head-freshness {
  font-size: 11px;
  color: var(--text-muted);
}
.sv3-head-freshness strong { color: var(--text); font-weight: 500; }
.sv3-head-freshness-sep {
  margin: 0 6px;
  color: var(--text-faint);
}
.sv3-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sv3-gallery-pager {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sv3-gallery-nav {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  transition: border-color 120ms, color 120ms;
  flex-shrink: 0;
}
.sv3-gallery-nav:hover { color: var(--text); border-color: var(--hairline-strong); }
.sv3-gallery-meta { flex: 1; min-width: 0; }
.sv3-gallery-num {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sv3-gallery-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.sv3-gallery-blurb {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.sv3-gallery-dots {
  display: flex;
  gap: 4px;
}
.sv3-gallery-dot {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline-strong);
  transition: background 120ms;
}
.sv3-gallery-dot.is-active { background: var(--text); }
.sv3-gallery-dot:hover { background: var(--text-muted); }

.sv3-gallery-frame {
  animation: sv3-gallery-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sv3-gallery-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sv3-cat-table .sv3-cat-sec-row th {
  padding: 18px 0 8px;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  text-align: left;
  vertical-align: baseline;
  font-weight: 500;
}
/* Extra breathing room above 2nd+ section groups (Matplats, Walkup, …) */
.sv3-cat-table tr + .sv3-cat-sec-row th {
  padding-top: 36px;
}
.sv3-cat-table .sv3-cat-sec-row th.num {
  text-align: right;
}
.sv3-cat-sec-th {
  white-space: nowrap;
}
.sv3-cat-col-h {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.sv3-cat-sec-name {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-cat-sec-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-left: 10px;
}
.sv3-cat-table .sv3-cat-tier {
  padding-left: 14px;
  color: var(--text);
}
.sv3-cat-empty-row td.sv3-cat-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
}

:root {
  --compare-1: oklch(0.55 0.13 230);
  --compare-2: oklch(0.55 0.13 155);
  --compare-3: oklch(0.62 0.14 50);
}
.sv3-compare-line {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.sv3-compare-line-1 { stroke: var(--compare-1); }
.sv3-compare-line-2 { stroke: var(--compare-2); }
.sv3-compare-line-3 { stroke: var(--compare-3); }

.sv3-compare {
  position: relative;
}
.sv3-chart-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.sv3-range-seg {
  display: inline-flex;
  gap: 2px;
}
.sv3-range-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: background 120ms, color 120ms;
  letter-spacing: -0.005em;
}
.sv3-range-btn:hover { color: var(--text); }
.sv3-range-btn.is-active {
  background: var(--hairline);
  color: var(--text);
}

.sv3-compare-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-quiet);
  transition: color 120ms;
  align-self: center;
}
.sv3-compare-trigger:hover { color: var(--text); }
.sv3-compare-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-height: 380px;
}
.sv3-compare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.sv3-compare-head button {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: var(--text-muted);
}
.sv3-compare-head button:hover { background: var(--hairline); color: var(--text); }
.sv3-compare-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px;
}
.sv3-compare-row {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  transition: background 100ms;
}
.sv3-compare-row:hover { background: var(--bg-elevated); }
.sv3-compare-row.is-on { background: var(--hairline); }
.sv3-compare-check { color: var(--text); font-weight: 600; }
.sv3-compare-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv3-compare-date {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sv3-compare-fill { font-size: 11px; font-weight: 500; }

.sv3-compare-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.sv3-compare-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
}
.sv3-compare-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  padding: 2px 0;
}
.sv3-compare-search-input::placeholder { color: var(--text-muted); }
.sv3-compare-search-clear {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sv3-compare-search-clear:hover { background: var(--hairline); color: var(--text); }

.sv3-compare-chip { padding: 3px 4px 3px 8px; }
.sv3-compare-swatch { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.sv3-compare-chip-x {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  color: var(--text-muted);
}
.sv3-compare-chip-x:hover { background: var(--hairline); color: var(--text); }
.sv3-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
}
.sv3-head-divider {
  width: 1px;
  height: 14px;
  background: var(--hairline);
  margin: 0 4px;
}
.sv3-head-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  transition: background 120ms, color 120ms, border-color 120ms;
}
.sv3-head-icon:hover { color: var(--text); border-color: var(--hairline-strong); background: var(--bg-elevated); }

/* ── ACT 1: SIGNAL ────────────────────────────────────────── */
.sv3-signal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 0 8px;
}
.sv3-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.sv3-venue-chip-quiet {
  background: transparent !important;
  border: 1px solid var(--hairline);
  color: var(--text-muted) !important;
  font-weight: 500;
}
.sv3-venue-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: var(--hairline);
  color: var(--text);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sv3-signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.sv3-signal-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.sv3-signal-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.sv3-signal-stat .sv3-title-stat-val {
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--text);
}
.sv3-signal-stat .sv3-title-stat-sub {
  font-size: 14px;
  color: var(--text-muted);
}
.sv3-headline {
  max-width: 980px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sv3-subline { max-width: 760px; }

.sv3-date-stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.sv3-date-day {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.sv3-date-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  align-self: center;
}
.sv3-date-wd {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.sv3-date-mo {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  text-transform: capitalize;
}
.sv3-date-when {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: center;
  margin-left: 4px;
}
.sv3-headline {
  margin: 0;
  font-family: "Crimson Pro", "Clarendon Text", Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--text);
}
.sv3-subline {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--text-quiet);
  max-width: 760px;
  font-weight: 400;
}
.sv3-signal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.sv3-signal-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
}
.sv3-stamp strong { color: var(--text); font-weight: 500; }

/* ── ACT 2: STORY ─────────────────────────────────────────── */
.sv3-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.sv3-chart-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.sv3-chart-skeleton {
  width: 100%;
  aspect-ratio: 880 / 400;
  display: flex;
  align-items: stretch;
  padding: 4px 0;
}
.sv3-chart-skeleton-body {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--hairline) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: sv3-skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes sv3-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sv3-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.sv3-chart-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-chart {
  display: block;
  color: var(--text);
  max-height: 420px;
  overflow: visible;
}
.sv3-observed {
  stroke: var(--text);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sv3-today-dot { fill: var(--text); }
.sv3-snapshot-dot {
  fill: var(--bg-elevated);
  stroke: var(--text);
  stroke-width: 1.5;
  pointer-events: none;
  transition: stroke-width 120ms;
}
.sv3-snapshot-dot.is-hover {
  fill: var(--text);
  stroke-width: 2;
}
.sv3-snapshot-hit {
  fill: transparent;
  cursor: pointer;
}
.sv3-tip {
  pointer-events: none;
}
.sv3-tip-bg {
  fill: var(--surface);
  stroke: var(--hairline-strong);
  stroke-width: 1;
  filter: drop-shadow(0 4px 12px oklch(0 0 0 / 0.08));
}
.sv3-tip-row-k {
  fill: var(--text-muted);
  font-size: 10.5px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.sv3-tip-row-v {
  fill: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sv3-tip-rule {
  stroke: var(--hairline-strong);
  stroke-width: 1;
}
.sv3-tip-date {
  fill: var(--text);
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
   v3 TABS — distinctive visual identity per tab
   ============================================================ */
.sv3-section-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 8px;
}

/* ── ANNONSER ─ stock-ticker meets terminal ──────────── */
.sv3-ads-v3 { display: flex; flex-direction: column; gap: 40px; padding-top: 18px; }
.sv3-ticker {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.sv3-ticker-cell {
  background: var(--bg);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sv3-ticker-cell-hero { background: var(--bg-elevated); }
.sv3-ticker-k {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-ticker-v {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-top: 4px;
}
.sv3-ticker-cell-hero .sv3-ticker-v { font-size: 56px; letter-spacing: -0.035em; }
.sv3-ticker-v-x { font-size: 22px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.sv3-ticker-spark { display: block; margin-top: 6px; }
.sv3-ticker-spark-line { stroke-width: 1.5; fill: none; }
.sv3-ticker-spark-quiet  .sv3-ticker-spark-line { stroke: var(--text-quiet); }
.sv3-ticker-spark-quiet  .sv3-ticker-spark-dot  { fill:   var(--text-quiet); }
.sv3-ticker-spark-strong .sv3-ticker-spark-line { stroke: var(--h-strong); }
.sv3-ticker-spark-strong .sv3-ticker-spark-dot  { fill:   var(--h-strong); }
.sv3-ticker-spark-healthy .sv3-ticker-spark-line { stroke: var(--text); }
.sv3-ticker-spark-healthy .sv3-ticker-spark-dot  { fill:   var(--text); }
.sv3-ticker-spark-low    .sv3-ticker-spark-line { stroke: var(--h-low); }
.sv3-ticker-spark-low    .sv3-ticker-spark-dot  { fill:   var(--h-low); }

.sv3-funnelv3 { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.sv3-funnelv3-stack { display: flex; flex-direction: column; gap: 14px; }
.sv3-funnelv3-row { display: flex; flex-direction: column; gap: 6px; }
.sv3-funnelv3-label {
  display: flex; align-items: baseline; gap: 12px;
}
.sv3-funnelv3-stage {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}
.sv3-funnelv3-rate {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.sv3-funnelv3-bar {
  position: relative;
  height: 36px;
  background: var(--bg-sunken);
  border-radius: 4px;
  overflow: hidden;
}
.sv3-funnelv3-bar-prev {
  position: absolute; inset: 0;
  background: var(--hairline);
  opacity: 0.5;
}
.sv3-funnelv3-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--text);
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sv3-funnelv3-bar-value {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  z-index: 2;
  letter-spacing: -0.01em;
}

.sv3-camp { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.sv3-camp-list {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--hairline);
}
.sv3-camp-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
}
.sv3-camp-card-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sv3-camp-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.sv3-camp-card-name { font-size: 14px; font-weight: 500; color: var(--text); }
.sv3-camp-card-roas { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.sv3-camp-card-roas-x { font-size: 12px; font-weight: 400; opacity: 0.6; margin-left: 1px; }
.sv3-camp-card-bar { height: 3px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.sv3-camp-card-bar-spend { height: 100%; background: var(--text); border-radius: 2px; transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.sv3-camp-card-row { display: flex; gap: 20px; font-size: 12px; color: var(--text); }
.sv3-camp-card-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-right: 4px; }
.sv3-camp-card-spark { display: flex; align-items: center; justify-content: flex-end; }

/* ── PUBLIK ─ population pyramid + triptych ──────────── */
.sv3-aud-v3 { display: flex; flex-direction: column; gap: 40px; padding-top: 18px; }
.sv3-aud-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.sv3-aud-stat {
  padding: 22px 24px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sv3-aud-stat + .sv3-aud-stat {
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}
.sv3-aud-stat-k {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-aud-stat-v {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  margin-top: 4px;
}
.sv3-aud-stat-unit { font-size: 18px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.sv3-aud-stat-slash { color: var(--text-faint); margin: 0 4px; font-weight: 300; }
.sv3-aud-stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.sv3-pyramid { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.sv3-pyramid-head { display: flex; justify-content: space-between; align-items: center; }
.sv3-pyramid-legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-muted); }
.sv3-pyramid-swatch { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.sv3-pyramid-w { background: var(--text); }
.sv3-pyramid-m { background: var(--text-faint); }
.sv3-pyramid-grid { display: flex; flex-direction: column; gap: 6px; }
.sv3-pyramid-row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  gap: 12px;
}
.sv3-pyramid-side { display: flex; align-items: center; gap: 8px; }
.sv3-pyramid-side-l { justify-content: flex-end; flex-direction: row-reverse; }
.sv3-pyramid-side-r { justify-content: flex-start; }
.sv3-pyramid-axis {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.sv3-pyramid-bar {
  flex: 1;
  height: 14px;
  background: var(--bg-sunken);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.sv3-pyramid-side-l .sv3-pyramid-bar { display: flex; justify-content: flex-end; }
.sv3-pyramid-bar-fill { height: 100%; border-radius: 3px; transition: width 480ms cubic-bezier(0.22, 1, 0.36, 1); }
.sv3-pyramid-bar-fill.sv3-pyramid-w { background: var(--text); }
.sv3-pyramid-bar-fill.sv3-pyramid-m { background: var(--text-faint); }
.sv3-pyramid-val { font-size: 11.5px; color: var(--text); font-weight: 500; min-width: 38px; }

.sv3-aud-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 12px;
}
.sv3-aud-split > div { display: flex; flex-direction: column; gap: 14px; }
.sv3-aud-cities, .sv3-aud-channels { display: flex; flex-direction: column; gap: 14px; }
.sv3-aud-city {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.4fr) 2fr 44px;
  gap: 12px;
  align-items: center;
}
.sv3-aud-city-rank { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.06em; }
.sv3-aud-city-name { font-size: 14px; color: var(--text); font-weight: 500; }
.sv3-aud-city-bar { display: block; height: 4px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.sv3-aud-city-bar-fill { display: block; height: 100%; background: var(--text); border-radius: 2px; transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.sv3-aud-city-pct { font-size: 13px; font-weight: 500; text-align: right; color: var(--text); }
.sv3-aud-channel {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) 2fr 44px;
  gap: 12px;
  align-items: center;
}
.sv3-aud-channel-name { font-size: 13.5px; color: var(--text); }
.sv3-aud-channel-bar { display: block; height: 4px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.sv3-aud-channel-bar-fill { display: block; height: 100%; background: var(--h-soldout); border-radius: 2px; }
.sv3-aud-channel-pct { font-size: 13px; font-weight: 500; text-align: right; color: var(--text); }

/* ── RESULTAT ─ P&L cockpit ──────────────────────────── */
.sv3-res { display: flex; flex-direction: column; gap: 40px; padding-top: 18px; }
.sv3-res-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.sv3-res-hero-main { display: flex; flex-direction: column; gap: 8px; }
.sv3-res-hero-value {
  font-size: 59px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-top: 6px;
}
.sv3-res-hero-unit {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}
.sv3-res-hero-row { display: flex; gap: 24px; font-size: 13px; align-items: baseline; margin-top: 4px; }
.sv3-res-hero-margin { font-weight: 500; }
.sv3-res-hero-vs { color: var(--text); }
.sv3-res-vs-k { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.sv3-res-hero-side { display: flex; gap: 32px; }
.sv3-res-hero-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sv3-res-hero-cell-k {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-res-hero-cell-v {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sv3-res-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 12px;
}
.sv3-res-col { display: flex; flex-direction: column; gap: 18px; }
.sv3-res-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.sv3-res-col-total { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.sv3-res-items { display: flex; flex-direction: column; gap: 18px; }
.sv3-res-item { display: flex; flex-direction: column; gap: 4px; }
.sv3-res-item-row { display: flex; justify-content: space-between; align-items: baseline; }
.sv3-res-item-label { font-size: 14px; font-weight: 500; color: var(--text); }
.sv3-res-item-value { font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: -0.005em; }
.sv3-res-item-sub { font-size: 11.5px; color: var(--text-muted); }
.sv3-res-item-bar { height: 4px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.sv3-res-item-fill { height: 100%; border-radius: 2px; transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.sv3-res-fill-rev { background: var(--h-strong); }
.sv3-res-fill-cost { background: var(--text); }

/* ── DISKUSSION ─ bubble chat + decisions rail ──────── */
.sv3-disc-v3 { display: flex; flex-direction: column; gap: 24px; padding-top: 18px; }
.sv3-disc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 260px;
  gap: 40px;
}
.sv3-disc-thread { display: flex; flex-direction: column; gap: 20px; }
.sv3-bubble {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}
.sv3-bubble.is-mine { grid-template-columns: minmax(0, 1fr) 32px; }
.sv3-bubble-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
}
.sv3-bubble-mine { background: var(--text); color: var(--bg); }
.sv3-bubble-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sv3-bubble.is-mine .sv3-bubble-stack { align-items: flex-end; }
.sv3-bubble-meta { display: flex; gap: 8px; font-size: 11.5px; color: var(--text-muted); align-items: baseline; }
.sv3-bubble-who { font-weight: 500; color: var(--text); }
.sv3-bubble-box {
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px 12px 12px 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.005em;
  max-width: 92%;
}
.sv3-bubble.is-mine .sv3-bubble-box {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  border-radius: 12px 12px 4px 12px;
}

.sv3-disc-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}
.sv3-disc-decisions { display: flex; flex-direction: column; gap: 16px; }
.sv3-decision-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.sv3-decision-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sv3-decision-when {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.sv3-decision-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.sv3-decision-by { font-size: 11px; color: var(--text-muted); }

.sv3-disc-composer {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  align-items: center;
}
.sv3-disc-composer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.sv3-disc-composer-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sv3-disc-composer-input {
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.sv3-disc-composer-input::placeholder { color: var(--text-faint); }
.sv3-disc-composer-input:focus { outline: none; }
.sv3-disc-composer-hint { font-size: 11px; color: var(--text-faint); }
.sv3-disc-composer-send {
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: opacity 120ms;
}
.sv3-disc-composer-send:disabled { opacity: 0.35; cursor: default; }
.sv3-ads-v2 { display: flex; flex-direction: column; gap: 32px; }
.sv3-ads-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.sv3-ads-hero-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-ads-hero-value {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-top: 8px;
}
.sv3-ads-hero-x {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}
.sv3-ads-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}
.sv3-ads-hero-right { display: flex; flex-direction: column; gap: 6px; }
.sv3-ads-spark { display: block; }
.sv3-ads-spark-line { stroke: var(--text); stroke-width: 1.5; fill: none; }
.sv3-ads-spark-fill { fill: var(--text); opacity: 0.06; }
.sv3-ads-spark-dot { fill: var(--text); }
.sv3-ads-hero-spark-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: right;
}

.sv3-funnel { display: flex; flex-direction: column; gap: 14px; }
.sv3-funnel-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-funnel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.sv3-funnel-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  position: relative;
}
.sv3-funnel-stage {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.sv3-funnel-value {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
.sv3-funnel-sub { font-size: 12px; color: var(--text-muted); }
.sv3-funnel-bar { height: 4px; background: var(--hairline); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.sv3-funnel-bar-fill {
  height: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sv3-funnel-rate {
  position: absolute;
  top: 8px;
  right: -16px;
  width: 32px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  z-index: 2;
}

.sv3-camp { display: flex; flex-direction: column; gap: 14px; }
.sv3-camp-head { display: flex; justify-content: space-between; align-items: baseline; }
.sv3-camp-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-camp-sub { font-size: 12px; color: var(--text-muted); }
.sv3-camp-list { display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.sv3-camp-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  background: var(--bg);
}
.sv3-camp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.sv3-camp-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.sv3-camp-card-roas {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.sv3-camp-card-roas-x { font-size: 12px; font-weight: 400; opacity: 0.6; margin-left: 1px; }
.sv3-camp-card-bar {
  height: 3px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.sv3-camp-card-bar-spend {
  height: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sv3-camp-card-row {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--text);
}
.sv3-camp-card-k {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 4px;
}

/* ============================================================
   PUBLIK v2 — editorial audience
   ============================================================ */
.sv3-aud-v2 { display: flex; flex-direction: column; gap: 36px; }
.sv3-aud-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.sv3-aud-hero-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-aud-hero-value {
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-top: 6px;
  color: var(--text);
}
.sv3-aud-hero-unit {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}
.sv3-aud-hero-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

.sv3-aud-gender-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 12px;
  background: var(--hairline);
}
.sv3-aud-gender-w { background: var(--text); }
.sv3-aud-gender-m { background: var(--text-quiet); }
.sv3-aud-gender-u { background: var(--hairline-strong); }
.sv3-aud-gender-meta {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text);
}
.sv3-aud-gender-meta-faint { color: var(--text-muted); }

.sv3-aud-section { display: flex; flex-direction: column; gap: 12px; }
.sv3-aud-section-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-aud-age-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 200px;
}
.sv3-aud-age-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  align-items: center;
}
.sv3-aud-age-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sv3-aud-age-bar {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.sv3-aud-age-bar-fill {
  width: 100%;
  background: var(--text);
  transition: height 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sv3-aud-age-pct {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
}

.sv3-aud-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.sv3-aud-split > div { display: flex; flex-direction: column; gap: 14px; }

.sv3-aud-cities { display: flex; flex-direction: column; gap: 14px; }
.sv3-aud-city {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.4fr) 2fr 44px;
  gap: 12px;
  align-items: center;
}
.sv3-aud-city-rank {
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.sv3-aud-city-name { font-size: 14px; color: var(--text); font-weight: 500; }
.sv3-aud-city-bar {
  display: block;
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.sv3-aud-city-bar-fill {
  display: block;
  height: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sv3-aud-city-pct {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  color: var(--text);
}

.sv3-aud-channels { display: flex; flex-direction: column; gap: 14px; }
.sv3-aud-channel {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) 2fr 44px;
  gap: 12px;
  align-items: center;
}
.sv3-aud-channel-name { font-size: 13.5px; color: var(--text); }
.sv3-aud-channel-bar {
  display: block;
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.sv3-aud-channel-bar-fill {
  display: block;
  height: 100%;
  background: var(--h-soldout);
  border-radius: 2px;
}
.sv3-aud-channel-pct {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  color: var(--text);
}

/* ============================================================
   DISKUSSION v2 — editorial conversation
   ============================================================ */
.sv3-disc-v2 { display: flex; flex-direction: column; gap: 0; }
.sv3-disc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 28px;
}
.sv3-disc-count { display: flex; align-items: baseline; gap: 8px; }
.sv3-disc-count-num {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
}
.sv3-disc-count-k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-disc-people { display: flex; gap: -4px; }
.sv3-disc-person {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.sv3-disc-person:first-child { margin-left: 0; }

.sv3-disc-thread { display: flex; flex-direction: column; gap: 32px; padding-bottom: 28px; }
.sv3-disc-msg {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}
.sv3-disc-msg-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.sv3-disc-msg-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sv3-disc-msg-head { display: flex; align-items: baseline; gap: 10px; }
.sv3-disc-msg-who { font-size: 14px; font-weight: 500; color: var(--text); }
.sv3-disc-msg-ago { font-size: 11.5px; color: var(--text-muted); }
.sv3-disc-msg-text {
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--hairline);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.005em;
  font-family: "Crimson Pro", Georgia, serif;
}
.sv3-disc-msg-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.sv3-disc-msg-actions button {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 120ms, color 120ms;
}
.sv3-disc-msg-actions button:hover { background: var(--hairline); color: var(--text); }

.sv3-disc-composer {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  align-items: center;
}
.sv3-disc-composer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.sv3-disc-composer-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sv3-disc-composer-input {
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.sv3-disc-composer-input::placeholder { color: var(--text-faint); }
.sv3-disc-composer-input:focus { outline: none; }
.sv3-disc-composer-hint {
  font-size: 11px;
  color: var(--text-faint);
}
.sv3-disc-composer-send {
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: opacity 120ms;
}
.sv3-disc-composer-send:disabled { opacity: 0.35; cursor: default; }
.sv3-marker-hit {
  fill: transparent;
}
.sv3-marker.is-active .sv3-marker-bg {
  fill: var(--text);
  stroke: var(--text);
}
.sv3-marker.is-active .sv3-marker-ico {
  color: var(--bg);
}
.sv3-marker-leader {
  stroke: var(--hairline-strong);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.sv3-marker-title {
  fill: var(--text);
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sv3-tip-attr {
  fill: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-sans);
}
.sv3-peer-line {
  stroke: var(--text-faint);
  stroke-width: 1.25;
  stroke-dasharray: 3 4;
  fill: none;
}
.sv3-peer-label {
  fill: var(--text-faint);
  font-size: 9.5px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sv3-band {
  fill: var(--h-strong);
  opacity: 0.13;
}
.sv3-band-edge {
  stroke: var(--h-strong);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  fill: none;
  opacity: 0.5;
}
.sv3-future-line {
  stroke: var(--h-strong);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 3;
}
.sv3-today-line {
  stroke: var(--text);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.45;
}
.sv3-today-label {
  fill: var(--text);
  font-size: 9.5px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.sv3-speldag-line {
  stroke: var(--text-faint);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.sv3-speldag-label {
  fill: var(--text-muted);
  font-size: 9.5px;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}
.sv3-proj-dot {
  fill: var(--h-strong);
  stroke: var(--bg-elevated);
  stroke-width: 2;
}
.sv3-proj-label {
  fill: var(--h-strong);
  font-size: 10.5px;
  font-family: var(--font-sans);
  font-weight: 500;
}
.sv3-marker-tick {
  stroke: var(--text-muted);
  stroke-width: 1;
}
.sv3-marker-bg {
  fill: var(--bg-elevated);
  stroke: var(--text-quiet);
  stroke-width: 1;
}
.sv3-marker-ico {
  display: inline-flex;
  color: var(--text);
}

/* Anchor stats panel */
.sv3-anchors {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sv3-anchor {
  background: var(--bg-elevated);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sv3-anchor-label {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-anchor-value {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.sv3-anchor-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── ACT 3: MOVE ──────────────────────────────────────────── */
.sv3-move {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sv3-move-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.sv3-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  gap: 20px;
  align-items: center;
  text-align: left;
  padding: 22px 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--text);
  transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 120ms;
  width: 100%;
}
.sv3-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.sv3-primary.is-armed { transform: scale(0.995); }
.sv3-primary-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sv3-primary-label {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.sv3-primary-body {
  font-size: 13.5px;
  color: oklch(1 0 0 / 0.62);
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.dark .sv3-primary-body { color: oklch(0 0 0 / 0.62); }
.sv3-primary-lift {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.sv3-primary-lift-pp {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sv3-primary-lift-sym {
  font-size: 14px;
  font-weight: 400;
  margin-left: 2px;
  opacity: 0.7;
}
.sv3-primary-lift-cap {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
  margin-top: 4px;
}
.sv3-primary-arrow { display: inline-flex; opacity: 0.85; }

.sv3-secondaries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sv3-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 120ms, background 120ms;
}
.sv3-secondary:hover { border-color: var(--hairline-strong); background: var(--surface); }
.sv3-secondary.is-quiet { background: transparent; color: var(--text-muted); }
.sv3-secondary-label { letter-spacing: -0.005em; }
.sv3-secondary-lift {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--hairline);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── QUIET STATUS BAR ─────────────────────────────────────── */
.sv3-quiet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--text-muted);
}
.sv3-quiet-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sv3-quiet-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.sv3-quiet-rail {
  display: flex;
  gap: 4px;
}
.sv3-quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text-quiet);
  transition: background 120ms, color 120ms;
}
.sv3-quiet-link:hover { background: var(--hairline); color: var(--text); }
.sv3-date-chip.is-active {
  background: var(--text);
  color: var(--bg);
}
.sv3-date-chip.is-active span:first-child,
.sv3-date-chip.is-active .sv3-date-chip-sub {
  color: var(--bg);
}
.sv3-date-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
}
.sv3-date-chip span:first-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.sv3-date-chip-sub {
  text-transform: capitalize;
  color: var(--text-muted);
}
  padding: 0 6px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--hairline);
  color: var(--text);
  font-size: 10.5px;
  font-weight: 500;
}

/* ── INLINE PANEL (no chrome — editorial sections) ────────── */
.sv3-inline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 4px;
  animation: sv3-inline-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sv3-inline-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sv3-inline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--hairline);
}
.sv3-inline-tabs {
  justify-content: flex-start;
  gap: 4px;
}
.sv3-inline-tabs .sv3-quiet-link.is-active {
  background: var(--text);
  color: var(--bg);
}
.sv3-inline-tabs .sv3-quiet-link.is-active .sv3-quiet-num {
  background: color-mix(in oklch, var(--bg) 18%, transparent);
  color: var(--bg);
}
.sv3-inline-head h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-inline-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* drop boxed grids inside the inline panel — use clean row layout */
.sv3-inline-body .sv2-stat-grid,
.sv3-inline-body .sv2-grid-3,
.sv3-inline-body .sv2-grid-4 {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  gap: 0;
  padding-bottom: 28px;
}
.sv3-inline-body .sv2-kpi {
  background: transparent;
  padding: 4px 20px 4px 0;
  position: relative;
}
.sv3-inline-body .sv2-kpi + .sv2-kpi {
  padding-left: 20px;
  border-left: 1px solid var(--hairline);
}
.sv3-inline-body .sv2-kpi-value {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 6px;
  line-height: 1.05;
}
.sv3-inline-body .sv2-kpi-label {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-inline-body .sv2-kpi-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* anchor stats: borderless row inside Översikt */
.sv3-inline-body .sv3-anchors {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.sv3-inline-body .sv3-anchor {
  background: transparent;
  padding: 4px 20px 4px 0;
}
.sv3-inline-body .sv3-anchor + .sv3-anchor {
  padding-left: 20px;
  border-left: 1px solid var(--hairline);
}
.sv3-inline-body .sv3-anchor-value {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 6px;
}
.sv3-inline-body .sv3-anchor-sub { font-size: 12px; margin-top: 3px; }

/* story (chart + anchors) — stack vertically inside the panel */
.sv3-inline-body .sv3-story {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sv3-chart-wrap-inline {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* sections inside panel — clean header + content, no card */
.sv3-inline-body .sv2-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 18px 0 0 0;
}
.sv3-inline-body .sv2-section-head {
  margin-bottom: 14px;
  padding-top: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}
.sv3-inline-body .sv3-chart-head {
  padding-top: 18px;
}
.sv3-inline-body .sv2-section-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sv3-inline-body .sv2-section-sub { display: none; }

/* tables inside panel */
.sv3-inline-body .sv2-table th {
  background: transparent;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 12px 8px 0;
  cursor: default;
}
.sv3-inline-body .sv2-table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
}
.sv3-inline-body .sv2-table tr:last-child td { border-bottom: 0; }

/* bars (audience / channels) — two-col, no boxes */
.sv3-inline-body .sv2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.sv3-inline-body .sv2-bars { gap: 12px; }
.sv3-inline-body .sv2-bar-label { font-size: 13px; }
.sv3-inline-body .sv2-bar-val { font-size: 13px; font-weight: 500; }

/* topp städer — borderless row of cities */
.sv3-inline-body .sv2-cities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.sv3-inline-body .sv2-city {
  background: transparent;
  padding: 4px 20px 4px 0;
}
.sv3-inline-body .sv2-city + .sv2-city {
  padding-left: 20px;
  border-left: 1px solid var(--hairline);
}
.sv3-inline-body .sv2-city-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.sv3-inline-body .sv2-city-pct {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 6px;
}

/* discussion thread inside panel */
.sv3-inline-body .sv2-thread {
  padding: 0;
  gap: 18px;
}
.sv3-inline-body .sv2-composer {
  padding: 16px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
}
.sv3-inline-body .sv2-discussion {
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* ── DEEP DRAWER ──────────────────────────────────────────── */
.sv3-drawer-scrim {
  position: fixed; inset: 0;
  background: oklch(0 0 0 / 0.16);
  z-index: 100;
  animation: sv3-scrim 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dark .sv3-drawer-scrim { background: oklch(0 0 0 / 0.4); }
@keyframes sv3-scrim { from { opacity: 0; } to { opacity: 1; } }

.sv3-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 560px;
  max-width: 92vw;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--hairline);
  z-index: 101;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: sv3-drawer 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sv3-drawer {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.sv3-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
}
.sv3-drawer-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}
.sv3-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 32px;
}
.sv3-dd { display: flex; flex-direction: column; gap: 16px; }

.sv3-dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.sv3-dd-grid .sv3-col-span { grid-column: 1 / -1; }
.sv3-dd-grid .sv3-col { display: flex; flex-direction: column; gap: 18px; }
.sv3-kpi-col { display: flex !important; flex-direction: column; gap: 0 !important; }
.sv3-kpi-col .sv2-kpi {
  padding: 12px 0 !important;
  border-left: 0 !important;
  border-bottom: 1px solid var(--hairline);
}
.sv3-kpi-col .sv2-kpi:last-child { border-bottom: 0; }

.sv3-edit-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
.sv3-edit-input:focus { outline: none; border-color: var(--hairline-strong); }
/* Concert editor form */
.sv3-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.sv3-edit-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sv3-edit-field > span { font-size: 11.5px; font-weight: 500; color: var(--text-quiet); }
.sv3-edit-col2 { grid-column: 1 / -1; }
.sv3-edit-textarea { resize: vertical; min-height: 64px; line-height: 1.45; font-family: inherit; }
.sv3-edit-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text); cursor: pointer;
  align-self: end; padding-bottom: 8px;
}
.sv3-edit-toggle input { width: 15px; height: 15px; accent-color: var(--text); cursor: pointer; }
.sv3-edit-actions { display: flex; justify-content: flex-end; margin-top: 2px; }
.sv3-edit-save {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: opacity 120ms;
}
.sv3-edit-save:hover { opacity: 0.88; }
.sv3-edit-save:disabled { opacity: 0.5; cursor: not-allowed; }
.sv3-edit-note { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin-top: 2px; }
@media (max-width: 640px) {
  .sv3-edit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .sv3-story { grid-template-columns: 1fr; }
  .sv3-anchors { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
  .sv3-headline { font-size: 36px; }
  .sv3-primary { grid-template-columns: 1fr; }
  .sv3-primary-arrow { display: none; }
}
