/* ════════════════════════════════════════════════════════════════
   Campaign Overview (metric cards #prfExplorerGrid, the selected metric's
   graph and the comparison cards #ovtPeriod / #ovtAds, js/overviewCompare.js)
   and Platform Comparison (#ccmRoot, js/campaignComparison.js), charts from
   js/orvAnalytics.js. One spacing scale, one radius, one surface:
     space 4 · 8 · 12 · 16 · 24 · 32   radius 14 (cards) / 10 (controls) / 999 (pills)
   Platform Comparison: table on desktop, stacked cards from tablet down. Electric Lime = "best";
   platform colours only for series. App is dark-only.
   ════════════════════════════════════════════════════════════════ */
:root {
  --a-s1: 4px; --a-s2: 8px; --a-s3: 12px; --a-s4: 16px; --a-s5: 24px; --a-s6: 32px;
  --a-r: 14px; --a-r-sm: 10px;
  --a-surface: rgba(255, 255, 255, .035); --a-surface-2: rgba(255, 255, 255, .06);
  --a-line: rgba(255, 255, 255, .1); --a-line-2: rgba(255, 255, 255, .18);
  --a-text: #F2F2F0; --a-text-2: rgba(242, 242, 240, .66); --a-text-3: rgba(242, 242, 240, .48);
  --a-lime: #B6FF3B; --a-good: #8EE07A; --a-bad: #FF9A85;
}

/* ── Campaign Overview ───────────────────────────────────────────
   Metric cards: compact cards grouped by what they measure (see below). */
#page-performance .prf-metric-explorer { margin-top: var(--a-s4); gap: var(--a-s2); }
/* Metric groups (2026-11-18): Reach · Cost & budget · Engagement · Conversions · Revenue, each a
   compact container in its own muted colour (no orange everywhere). Groups sit side by side and wrap;
   a group grows with its number of cards, so every card keeps the same compact size. */
#page-performance #prfExplorerGrid { display: flex; flex-wrap: wrap; gap: var(--a-s3); align-items: flex-start; }
#page-performance #prfExplorerGrid .prf-mgroup { --g-bg: rgba(255, 255, 255, .02); --g-line: rgba(255, 255, 255, .08); --g-dot: #A6ABB3; --g-ink: rgba(242, 242, 240, .62);
  flex: 0 1 auto; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: var(--a-s2); padding: var(--a-s2) var(--a-s3) var(--a-s3); border: 1px solid var(--g-line); border-radius: var(--a-r); background: var(--g-bg); }
#page-performance #prfExplorerGrid .prf-mgroup[data-group="reach"] { --g-bg: rgba(110, 150, 210, .07); --g-line: rgba(110, 150, 210, .2); --g-dot: #7FA3D6; --g-ink: #9DB6DC; }
#page-performance #prfExplorerGrid .prf-mgroup[data-group="cost"] { --g-bg: rgba(160, 170, 185, .06); --g-line: rgba(160, 170, 185, .18); --g-dot: #A3ACB9; --g-ink: #B4BBC6; }
#page-performance #prfExplorerGrid .prf-mgroup[data-group="engagement"] { --g-bg: rgba(160, 135, 215, .07); --g-line: rgba(160, 135, 215, .2); --g-dot: #A891D8; --g-ink: #BBA9E0; }
#page-performance #prfExplorerGrid .prf-mgroup[data-group="conversions"] { --g-bg: rgba(110, 185, 140, .07); --g-line: rgba(110, 185, 140, .2); --g-dot: #7DBF96; --g-ink: #9CCDAE; }
#page-performance #prfExplorerGrid .prf-mgroup[data-group="revenue"] { --g-bg: rgba(205, 180, 120, .07); --g-line: rgba(205, 180, 120, .2); --g-dot: #CDB27A; --g-ink: #D6C196; }
#page-performance #prfExplorerGrid .prf-mgroup-h { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--g-ink); }
/* Content-sized (2026-11-18): every card has the same compact width and a group is only as wide as
   its cards, so a two-metric group stays small; groups wrap side by side and never stretch to fill a row. */
#page-performance #prfExplorerGrid { --tile-w: 126px; }
/* At most four cards per line in a group (a 7-metric group wraps to 4 + 3), so groups pack into balanced rows. */
#page-performance #prfExplorerGrid .prf-mgroup { max-width: min(100%, calc(4 * var(--tile-w) + 3 * var(--a-s2) + 2 * var(--a-s3) + 2px)); }
#page-performance #prfExplorerGrid .prf-mgroup-tiles { display: flex; flex-wrap: wrap; gap: var(--a-s2); }
#page-performance #prfExplorerGrid .prf-mgroup-tiles > .prf-explorer-tile { flex: 0 0 var(--tile-w); width: var(--tile-w); }
#page-performance #prfExplorerGrid .prf-explorer-tile { min-width: 0; min-height: 62px; }
#page-performance #prfExplorerGrid .prf-explorer-dot { background: var(--g-dot) !important; opacity: 1; }
body.dark-mode #page-performance #prfExplorerGrid .prf-explorer-tile:not(.prf-explorer-tile-active) { background: rgba(11, 12, 10, .55); border-color: rgba(255, 255, 255, .07); }
body.dark-mode #page-performance #prfExplorerGrid .prf-explorer-tile:not(.prf-explorer-tile-active):hover { background: rgba(11, 12, 10, .8); border-color: var(--g-line); }
/* Card states: loading, not available (supported, but no figure for this selection); a real 0 shows as 0. */
.prf-explorer-state { font-size: 10.5px; line-height: 1.2; color: var(--a-text-3); }
.prf-explorer-state:empty { display: none; }
#page-performance .prf-explorer-tile.is-na .prf-explorer-val, #page-performance .prf-explorer-tile.is-loading .prf-explorer-val { color: var(--a-text-3); }
#page-performance .prf-explorer-tile.is-loading .prf-explorer-state { animation: ovaPulse 1.1s ease-in-out infinite alternate; }
@keyframes ovaPulse { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #page-performance .prf-explorer-tile.is-loading .prf-explorer-state { animation: none; } }
/* The page title: one line, no header block. */
#prfPerfCol > .prf-ov-title { order: -3; flex: 0 0 100%; }
.prf-ov-title { margin: 0 0 var(--a-s4); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: var(--a-text); }
/* The selected metric's graph next to the period comparison; ad vs ad below. */
.prf-dash { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--a-s4); align-items: start; margin-top: var(--a-s4); color: var(--a-text); }
.prf-dash-wide { grid-column: 1 / -1; }
#prfDash .prf-chart-wrap, #prfDash .prf-charts-grid { margin: 0; min-width: 0; }
#prfDash .prf-chart-card-primary { margin: 0; border-radius: var(--a-r); }
@media (min-width: 1101px) { #prfDash .prf-chart-card-primary .prf-chart-body { height: 340px; } }
.ovc-table th, .ovc-table td { padding-top: 6px; padding-bottom: 6px; }
.ova-loading { padding: var(--a-s4) 0; font-size: 13px; color: var(--a-text-3); }
button.ova-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; }
.ovc-custom { display: flex; flex-wrap: wrap; gap: var(--a-s3); margin-bottom: var(--a-s3); }
.ovc-custom fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.ovc-custom legend { float: left; margin-right: var(--a-s1); padding: 0; font-size: 12px; font-weight: 600; color: var(--a-text-3); }
.ovc-custom .ova-date { min-width: 0; }
#ovtPeriod .ova-sub { margin: 0 0 var(--a-s3); }
.ovc-table th[scope="row"] { color: var(--a-text-2); }
.ovc-table td, .ovc-table thead th:not(:first-child) { padding-left: var(--a-s3); text-align: right; white-space: nowrap; }
.ovc-table td.is-good { color: var(--a-good); } .ovc-table td.is-bad { color: var(--a-bad); } .ovc-table td.is-flat, .ovc-table td.is-neutral { color: var(--a-text-2); }
.ovc-table td.is-best { color: var(--a-lime); font-weight: 700; }
.ovc-table tbody tr:last-child th, .ovc-table tbody tr:last-child td { border-bottom: 0; }
.ovc-ads { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--a-s5); align-items: start; }
.ovc-verdict { margin: 0 0 var(--a-s1); font-size: 14px; line-height: 1.55; color: var(--a-text-2); }
.ovc-verdict b { color: var(--a-text); }
.ovc-verdict.is-muted { margin-bottom: var(--a-s3); }
.ovc-adtable { margin-top: var(--a-s3); }
.ovc-adtable thead th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.ovc-vs { font-size: 12px; color: var(--a-text-3); }
.ovc-sub-hd { margin-bottom: var(--a-s3); }

.ova { display: flex; flex-direction: column; gap: var(--a-s4); margin-top: var(--a-s4); color: var(--a-text); }
.ova-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--a-s4); }
.ova-h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ova-h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--a-text); }
.ova-sub { margin: var(--a-s1) 0 0; font-size: 13px; color: var(--a-text-3); }
.ova-note { margin: var(--a-s2) 0 0; font-size: 13px; color: var(--a-text-2); }
.ova-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Controls */
.ova-ctrls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s2); }
.ova-select, .ova-date { min-height: 34px; padding: 0 var(--a-s3); border-radius: var(--a-r-sm); border: 1px solid var(--a-line-2); background: #121411; color: var(--a-text); font: 500 13px/1 inherit; font-family: inherit; max-width: 100%; }
.ova-btn { min-height: 34px; padding: 0 var(--a-s3); border-radius: var(--a-r-sm); border: 1px solid var(--a-line-2); background: transparent; color: var(--a-text-2); font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.ova-btn:hover { color: var(--a-text); background: var(--a-surface-2); }
.ova-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--a-line); background: var(--a-surface); }
.ova-seg button { min-height: 28px; padding: 0 var(--a-s3); border: 0; border-radius: 999px; background: transparent; color: var(--a-text-2); font: 600 12.5px/1 inherit; font-family: inherit; cursor: pointer; }
.ova-seg button[aria-pressed="true"] { background: var(--a-text); color: #0B0C0A; }
.ova-check { display: inline-flex; align-items: center; gap: var(--a-s2); font-size: 13px; color: var(--a-text-2); cursor: pointer; }
.ova-check input { accent-color: var(--a-lime); width: 16px; height: 16px; }
.ova-link { color: var(--a-lime); font-weight: 600; cursor: pointer; text-decoration: none; }
.ova-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ova-select:focus-visible, .ova-date:focus-visible, .ova-btn:focus-visible, .ova-seg button:focus-visible, .ova-link:focus-visible, .ova-check input:focus-visible, .pcm-x:focus-visible { outline: 2px solid var(--a-lime); outline-offset: 2px; }

/* Cards */
.ova-card { padding: var(--a-s4); border-radius: var(--a-r); border: 1px solid var(--a-line); background: var(--a-surface); }
.ova-card__hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a-s3); margin-bottom: var(--a-s4); }
.ova-card__hd h4 { margin: 0; font-size: 14px; font-weight: 600; }
.ova-empty { padding: var(--a-s4); border-radius: var(--a-r-sm); border: 1px dashed var(--a-line-2); color: var(--a-text-2); font-size: 13.5px; line-height: 1.55; }
.ova-empty b { color: var(--a-text); }
.ova-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--a-s3); margin-bottom: var(--a-s4); }
.ova-kpis > div { min-width: 0; padding: var(--a-s3); border-radius: var(--a-r-sm); background: var(--a-surface); border: 1px solid var(--a-line); }
.ova-kpis span { display: block; font-size: 12px; color: var(--a-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ova-kpis b { display: block; margin-top: var(--a-s1); font-size: 16px; font-variant-numeric: tabular-nums; }
.ova-kpis b.is-good { color: var(--a-good); } .ova-kpis b.is-bad { color: var(--a-bad); }
.ova-kpis .is-best { border-color: var(--a-lime); } .ova-kpis .is-best b { color: var(--a-lime); }
.ova-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ova-table th, .ova-table td { padding: var(--a-s2) 0; border-bottom: 1px solid var(--a-line); text-align: left; font-weight: 500; }
.ova-table td { text-align: right; font-variant-numeric: tabular-nums; }
.ova-table thead th { color: var(--a-text-3); font-weight: 600; font-size: 12px; }
.ova-dot { display: inline-block; width: 8px; height: 8px; margin-right: var(--a-s2); border-radius: 50%; background: var(--c); vertical-align: 1px; }

/* Line chart */
.ova-chart { position: relative; min-width: 0; }
.ova-chart.is-loading { height: 200px; border-radius: var(--a-r-sm); background: var(--a-surface); }
.ova-chart.is-empty p { margin: 0; padding: var(--a-s5) var(--a-s4); border-radius: var(--a-r-sm); border: 1px dashed var(--a-line-2); color: var(--a-text-2); font-size: 13.5px; text-align: center; }
.ova-legend { display: flex; flex-wrap: wrap; gap: var(--a-s2) var(--a-s4); margin: 0 0 var(--a-s3); padding: 0; list-style: none; font-size: 12.5px; color: var(--a-text-2); }
.ova-legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; border-radius: 2px; background: var(--c); vertical-align: 3px; }
.ova-legend i.is-dashed { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
.ova-legend i.is-a { background: var(--a-text-2); } .ova-legend i.is-b { background: var(--a-lime); }
.ova-chart__plot { position: relative; }
.ova-chart__plot svg { display: block; width: 100%; height: auto; aspect-ratio: 640 / 240; overflow: visible; }
.ova-gl { stroke: rgba(255, 255, 255, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ova-axis { fill: var(--a-text-3); font-size: 11px; font-family: inherit; }
.ova-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ova-line.is-dashed { stroke-dasharray: 5 5; }
.ova-cross { stroke: rgba(255, 255, 255, .3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ova-tip { position: absolute; top: 0; z-index: 3; display: grid; gap: 3px; min-width: 150px; padding: var(--a-s2) var(--a-s3); border-radius: var(--a-r-sm); background: #1A1C19; border: 1px solid var(--a-line-2); font-size: 12px; color: var(--a-text-2); pointer-events: none; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); }
.ova-tip b { color: var(--a-text); font-weight: 600; }
.ova-tip span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ova-tip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ova-tip em { margin-left: auto; padding-left: var(--a-s3); font-style: normal; color: var(--a-text); font-variant-numeric: tabular-nums; }

/* Paired bars (share of spend vs share of conversions) */
.ova-pairs { display: grid; gap: var(--a-s3); }
.ova-pair { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--a-s3); align-items: center; }
.ova-pair__n { font-size: 13px; color: var(--a-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ova-pair__n i { display: inline-block; width: 8px; height: 8px; margin-right: var(--a-s2); border-radius: 50%; background: var(--c); }
.ova-pair__bars { display: grid; gap: 3px; }
.ova-bar { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: var(--a-s2); align-items: center; }
.ova-bar span { display: block; height: 8px; min-width: 2px; border-radius: 4px; }
.ova-bar.is-a span { background: var(--a-text-2); } .ova-bar.is-b span { background: var(--a-lime); }
.ova-bar em { font-style: normal; font-size: 12px; color: var(--a-text-2); text-align: right; font-variant-numeric: tabular-nums; }

/* ── Platform Comparison ─────────────────────────────────────────── */
.pcm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a-s3); margin-top: var(--a-s5); }
.pcm-period { margin-bottom: var(--a-s4); }
#ccmRoot { display: flex; flex-direction: column; gap: var(--a-s4); color: var(--a-text); }
#ccmRoot > .rx-head { margin-bottom: 0; }
.pcm-summary { padding: var(--a-s4); border-radius: var(--a-r); border: 1px solid var(--a-line); background: var(--a-surface); }
.pcm-summary ul { margin: 0; padding-left: 18px; display: grid; gap: var(--a-s1); font-size: 14px; line-height: 1.55; }
.pcm-tip { margin: var(--a-s3) 0 0; padding: var(--a-s2) var(--a-s3); border-radius: var(--a-r-sm); background: rgba(182, 255, 59, .08); border: 1px solid rgba(182, 255, 59, .35); color: var(--a-text); font-size: 14px; font-weight: 600; }
.pcm-tip.is-quiet { background: transparent; border-color: var(--a-line); color: var(--a-text-2); font-weight: 500; }
.pcm-basis { margin: var(--a-s2) 0 0; font-size: 12px; color: var(--a-text-3); }
.pcm-sec { display: grid; gap: var(--a-s2); }
.pcm-table-wrap { overflow-x: auto; border-radius: var(--a-r); border: 1px solid var(--a-line); background: var(--a-surface); }
.pcm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pcm-table th, .pcm-table td { padding: var(--a-s3) var(--a-s4); border-bottom: 1px solid var(--a-line); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.pcm-table tbody tr:last-child th, .pcm-table tbody tr:last-child td { border-bottom: 0; }
.pcm-table .pcm-rowh { text-align: left; color: var(--a-text-2); font-weight: 500; white-space: nowrap; }
.pcm-col { min-width: 120px; font-weight: 600; }
.pcm-colname { display: block; white-space: nowrap; }
.pcm-col .ova-link, .pcm-col .pcm-mut { display: block; margin-top: var(--a-s1); font-size: 12px; font-weight: 600; }
.pcm-table td.is-off { background: rgba(255, 255, 255, .015); }
.pcm-v { display: block; }
.pcm-v.is-best { color: var(--a-lime); font-weight: 700; }
.pcm-v.is-worst { color: var(--a-text-3); text-decoration: underline dotted rgba(242, 242, 240, .35); text-underline-offset: 3px; }
.pcm-ch { display: block; margin-top: 2px; font-size: 11.5px; color: var(--a-text-3); }
.pcm-ch.is-good { color: var(--a-good); } .pcm-ch.is-bad { color: var(--a-bad); }
.pcm-mut { color: var(--a-text-3); font-weight: 500; }
.pcm-legend { margin: 0; font-size: 12px; color: var(--a-text-3); }
.pcm-legend .pcm-v { display: inline; }
.pcm-x { margin-left: var(--a-s2); width: 22px; height: 22px; border: 1px solid var(--a-line-2); border-radius: 50%; background: transparent; color: var(--a-text-2); line-height: 1; cursor: pointer; }
.pcm-cards { display: none; }
.pcm-card { padding: var(--a-s4); border-radius: var(--a-r); border: 1px solid var(--a-line); background: var(--a-surface); }
.pcm-card__h { display: flex; align-items: center; margin: 0 0 var(--a-s3); font-size: 14px; font-weight: 600; }
.pcm-card__h .pcm-x { margin-left: auto; }
.pcm-card dl { display: grid; gap: var(--a-s2); margin: 0; }
.pcm-card dl > div { display: flex; justify-content: space-between; gap: var(--a-s3); font-size: 13.5px; }
.pcm-card dt { color: var(--a-text-2); }
.pcm-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pcm-two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--a-s3); align-items: start; }
.pcm-picker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s3); padding: var(--a-s3) var(--a-s4); border-radius: var(--a-r); border: 1px solid var(--a-line); background: var(--a-surface); }
.pcm-picker__l { font-size: 13px; font-weight: 600; }
.pcm-picker .ova-select { min-width: 240px; }

/* Tablet */
@media (max-width: 1100px) {
  .prf-dash, .ovc-ads { grid-template-columns: minmax(0, 1fr); }
  .pcm-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pcm-table-wrap { display: none; }
  .pcm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a-s3); }
}
/* Mobile */
@media (max-width: 600px) {
  #page-performance #prfExplorerGrid .prf-mgroup { flex-basis: 100%; }
  #page-performance #prfExplorerGrid .prf-mgroup-tiles > .prf-explorer-tile { flex: 0 0 calc(50% - var(--a-s2) / 2); width: calc(50% - var(--a-s2) / 2); min-width: 0; }
  /* Comparison tables become one block per metric */
  .ovc-table thead { display: none; }
  .ovc-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a-s1) var(--a-s3); padding: var(--a-s3) 0; border-bottom: 1px solid var(--a-line); }
  .ovc-table tbody tr:last-child { border-bottom: 0; }
  .ovc-table tbody th[scope="row"] { grid-column: 1 / -1; padding: 0; border: 0; color: var(--a-text); font-weight: 600; }
  .ovc-table tbody td { padding: 0; border: 0; text-align: left; white-space: normal; }
  .ovc-table tbody td::before { content: attr(data-l); display: block; font-size: 11.5px; font-weight: 500; color: var(--a-text-3); }
  .ovc-custom fieldset { width: 100%; }
  .ovc-custom .ova-date { flex: 1 1 130px; }
  .ova-kpis { grid-template-columns: minmax(0, 1fr); }
  .pcm-cards { grid-template-columns: minmax(0, 1fr); }
  .pcm-bar { flex-direction: column; align-items: stretch; }
  .pcm-picker .ova-select { min-width: 0; width: 100%; }
  .ova-pair { grid-template-columns: 76px minmax(0, 1fr); }
}
.ova-tip[hidden], .ova-cross[hidden] { display: none; }

/* ── Cross-platform Comparison: everything in cards (2026-11-25) ─────
   The period (with the previous period) is a card; the table and its
   legend are one card; the chart and the share card end level. */
.pcm-periodcard { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--a-s4); padding: var(--a-s4); border-radius: var(--a-r); border: 1px solid var(--a-line); background: var(--a-surface); align-items: stretch; }
.pcm-pc__main { display: flex; flex-direction: column; gap: var(--a-s3); min-width: 0; }
.pcm-pc__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a-s2) var(--a-s3); }
.pcm-pc__range { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.pcm-pc__range b { font-size: 15px; color: var(--a-text); font-weight: 650; }
.pcm-pc__lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--a-text-3); }
.pcm-pc__n, .pcm-pc__hint { font-size: 12.5px; color: var(--a-text-3); margin: 0; line-height: 1.5; }
.pcm-pc__prev { display: flex; flex-direction: column; gap: var(--a-s3); padding: var(--a-s3) var(--a-s4); border-radius: var(--a-r-sm); border: 1px dashed var(--a-line-2, var(--a-line)); }
.pcm-pc__prev.is-on { border-style: solid; border-color: color-mix(in srgb, var(--og-mid, #7CCB45) 45%, transparent); background: var(--og-card-soft, transparent); }
.pcm-period { margin: 0; }
.pcm-sec { padding: var(--a-s4); border-radius: var(--a-r); border: 1px solid var(--a-line); background: var(--a-surface); gap: var(--a-s3); }
.pcm-sec > .pcm-table-wrap { border: 0; border-radius: 0; background: transparent; }
.pcm-sec > .pcm-legend { padding-top: var(--a-s3); border-top: 1px solid var(--a-line); }
@media (min-width: 1001px) { .pcm-two { align-items: stretch; } .pcm-two > * { height: 100%; box-sizing: border-box; } }
@media (max-width: 900px) { .pcm-periodcard { grid-template-columns: minmax(0, 1fr); } }

/* ── Performance Overview (2026-11-25) ───────────────────────────────
   The title is a card like every page's; the graph and Compare periods end
   level (the graph grows to the comparison's height instead of leaving a
   gap under it). */
#prfOvTitle { box-sizing: border-box; margin: 0 0 var(--a-s4); padding: var(--app-card-pad, 20px 24px); border: 1px solid var(--app-card-line, var(--a-line)); border-radius: var(--app-card-r, 16px); background: var(--og-card-head, var(--a-surface)); }
@media (min-width: 1101px) {
  #prfDash { align-items: stretch; }
  #prfDash > .prf-chart-wrap, #prfDash .prf-charts-grid { display: flex; flex-direction: column; min-height: 0; }
  #prfDash .prf-charts-grid, #prfDash .prf-chart-card-primary { flex: 1 1 auto; }
  #prfDash .prf-chart-card-primary { display: flex; flex-direction: column; }
  /* A fixed height (the chart draws to it), the same as Compare periods' table; the card stretches the last few pixels. */
  #prfDash .prf-chart-card-primary .prf-chart-body { height: 470px; flex: none; }
}
.ovc-purpose { margin: 0 0 var(--a-s3); font-size: 13px; line-height: 1.5; color: var(--a-text-3); }


/* Ads vs Ads is its own page (2026-11-26): not repeated in Performance Overview. */
#page-performance #ovtAds { display: none !important; }
#advRoot { display: flex; flex-direction: column; gap: var(--a-s4); color: var(--a-text); }
#advRoot > .rx-head { margin-bottom: 0; }
.adv-grid { display: flex; flex-direction: column; gap: var(--a-s4); }
/* The comparison is wide (table + chart side by side); the two notes sit next to each other below it, the same height. */
.adv-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a-s4); align-items: stretch; }
@media (max-width: 800px) { .adv-side { grid-template-columns: minmax(0, 1fr); } }
.adv-list { margin: var(--a-s2) 0 0; padding: 0; list-style: none; display: grid; gap: var(--a-s2); font-size: 13.5px; line-height: 1.5; color: var(--a-text-2); }
.adv-list b { color: var(--a-text); }
@media (max-width: 1000px) { .adv-grid { grid-template-columns: minmax(0, 1fr); } }
