/* Dashboard (v1.13.0) — the former analytics.html styles, scoped under #tab-dashboard so they cannot leak into the other admin pages.
   Generated from analytics.html at the merge; edit freely from now on. */
#tab-dashboard input[type=text],
#tab-dashboard input[type=password],
#tab-dashboard input[type=search],
#tab-dashboard input[type=number],
#tab-dashboard input[type=date],
#tab-dashboard input[type=email] {font-family:'Outfit',sans-serif; font-size:13.5px; color:var(--text); border:1px solid var(--line); border-radius:6px; padding:9px 11px; background:var(--surface);}
#tab-dashboard input:focus {outline:none; border-color:var(--gold);}
#tab-dashboard .status-line {font-size:12.5px; margin-top:8px; min-height:16px;}
#tab-dashboard .status-line.err {color:var(--red);}
#tab-dashboard .btn {font-family:'Outfit',sans-serif; font-size:13px; font-weight:700; border:none; border-radius:20px; padding:9px 18px; cursor:pointer; white-space:nowrap;}
#tab-dashboard .btn-gold {background:var(--gold); color:var(--navy);}
#tab-dashboard .btn-gold:hover {opacity:.9;}
#tab-dashboard .btn-ghost {background:none; color:var(--text); border:1px solid var(--line);}
#tab-dashboard .btn-ghost:hover {border-color:var(--accent);}
#tab-dashboard select {font-family:'Outfit',sans-serif; font-size:13px; border:1px solid var(--line); border-radius:6px; padding:8px 10px; background:var(--surface); color:var(--text);}
#tab-dashboard .controls {display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:20px;}
#tab-dashboard .controls .spacer {margin-left:auto;}
#tab-dashboard .dash-tabs {display:flex; gap:6px; margin-bottom:20px; border-bottom:1px solid var(--line);}
#tab-dashboard .dash-tab {font-family:'Outfit',sans-serif; font-size:13.5px; font-weight:600; color:var(--gray); background:none; border:none; padding:10px 4px; cursor:pointer; border-bottom:2px solid transparent; margin-right:18px;}
#tab-dashboard .dash-tab.active {color:var(--text); border-bottom-color:var(--gold);}
#tab-dashboard .dash-panel {display:none;}
#tab-dashboard .dash-panel.active {display:block;}
#tab-dashboard .stats {display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:14px; margin-bottom:24px;}
#tab-dashboard .pagination {display:flex; align-items:center; justify-content:center; gap:14px; margin-top:16px; font-size:12.5px; color:var(--gray);}
#tab-dashboard .pagination button {font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:600; background:none; border:1px solid var(--line); border-radius:16px; padding:6px 14px; cursor:pointer; color:var(--text);}
#tab-dashboard .pagination button:hover:not(:disabled) {border-color:var(--accent);}
#tab-dashboard .pagination button:disabled {opacity:.4; cursor:default;}
#tab-dashboard .pagination-row {display:flex; align-items:center; justify-content:center; gap:20px; margin-bottom:6px; flex-wrap:wrap;}
#tab-dashboard .pagination-row .pagination {margin-top:0;}
#tab-dashboard .result-line {font-size:12.5px; color:var(--gray); margin:2px 0 10px;}
#tab-dashboard .page-size {display:flex; align-items:center; gap:6px; font-size:12px; color:var(--gray);}
#tab-dashboard .page-size select {width:auto; padding:5px 8px; font-size:12px;}
#tab-dashboard select:not([multiple]):not([size]) {-webkit-appearance:none; -moz-appearance:none; appearance:none; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:12px 8px; cursor:pointer; text-overflow:ellipsis;}
#tab-dashboard .page-size select {padding-right:28px; background-position:right 9px center;}
#tab-dashboard .section-desc {font-size:12.5px; color:var(--gray); margin:-6px 0 14px;}
#tab-dashboard .log-table {width:100%; border-collapse:collapse; font-size:12.5px; background:var(--surface); border:1px solid var(--line); border-radius:10px; overflow:hidden;}
#tab-dashboard .log-table th {text-align:left; font-family:'Outfit',sans-serif; font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); font-weight:700; padding:9px 12px; border-bottom:1px solid var(--line); white-space:nowrap;}
#tab-dashboard .log-table td {padding:9px 12px; border-bottom:1px solid var(--line); vertical-align:top;}
#tab-dashboard .log-table tr:last-child td {border-bottom:none;}
#tab-dashboard .log-table tr:hover td {background:var(--bg);}
#tab-dashboard .log-table .params-cell {font-size:11.5px; color:var(--text); max-width:420px; cursor:help;}
#tab-dashboard .params-line {white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
#tab-dashboard .params-k {color:var(--gray);}
#tab-dashboard .params-link {color:var(--accent); text-decoration:none;}
#tab-dashboard .params-link:hover {text-decoration:underline;}
#tab-dashboard .log-table .duration-cell {font-family:'Outfit',sans-serif; font-weight:700; white-space:nowrap;}
#tab-dashboard .funnel {display:flex; align-items:stretch; gap:0; flex-wrap:wrap;}
#tab-dashboard .funnel-stage {flex:1; min-width:130px; padding:14px 16px; text-align:center; position:relative;}
#tab-dashboard .funnel-stage .funnel-value {font-family:'Fraunces',serif; font-size:22px; font-weight:600; color:var(--text);}
#tab-dashboard .funnel-stage .funnel-label {font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); margin-top:4px;}
#tab-dashboard .funnel-stage .funnel-pct {font-size:11px; color:var(--gray); margin-top:2px;}
#tab-dashboard .log-table .model-badge {font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:2px 6px; border-radius:8px; color:#fff; margin-right:3px; display:inline-block; white-space:nowrap;}
#tab-dashboard .log-table .model-badge.cpm {background:var(--read);}
#tab-dashboard .log-table .model-badge.cpc {background:var(--learn);}
#tab-dashboard .log-table .model-badge.cpa {background:var(--experience);}
#tab-dashboard .log-table .model-badge.revshare {background:var(--travel);}
#tab-dashboard .log-table .reconciliation-badge {font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:2px 7px; border-radius:9px; color:#fff; white-space:nowrap;}
#tab-dashboard .click-id-cell {display:flex; align-items:center; gap:6px; white-space:nowrap;}
#tab-dashboard .click-id-cell code {font-family:monospace; font-size:11px; color:var(--text);}
#tab-dashboard .copy-btn {display:flex; align-items:center; justify-content:center; width:22px; height:22px; flex-shrink:0; background:none; border:1px solid var(--line); border-radius:5px; cursor:pointer; color:var(--gray);}
#tab-dashboard .copy-btn:hover {border-color:var(--accent); color:var(--text);}
#tab-dashboard .copy-btn svg {width:11px; height:11px;}
#tab-dashboard .copy-btn.copied {border-color:#2f9e5c; color:#2f9e5c;}
#tab-dashboard .path-badge {font-family:'Outfit',sans-serif; font-size:10px; font-weight:700; letter-spacing:.04em; padding:2px 7px; border-radius:4px; white-space:nowrap;}
#tab-dashboard .path-badge.legacy {background:rgba(255,255,255,.08); color:var(--gray);}
#tab-dashboard .path-badge.redirect {background:rgba(120,214,156,.16); color:#2f9e5c;}
#tab-dashboard .muted {color:var(--gray);}
#tab-dashboard .stat-card {background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:16px; position:relative;}
#tab-dashboard .kpi-info {position:absolute; top:10px; right:10px; width:15px; height:15px; border-radius:50%; background:rgba(0,0,0,0.14); color:var(--gray); font-family:'Outfit',sans-serif; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; cursor:help;}
#tab-dashboard .kpi-info:hover .kpi-tooltip,
#tab-dashboard .kpi-info:focus .kpi-tooltip {opacity:1; visibility:visible;}
#tab-dashboard .kpi-tooltip {position:absolute; top:calc(100% + 8px); right:0; width:230px; background:var(--navy); color:#fff; font-family:'Outfit',sans-serif; font-size:11.5px; font-weight:400; line-height:1.45; text-transform:none; letter-spacing:0; padding:10px 12px; border-radius:8px; opacity:0; visibility:hidden; transition:opacity .15s ease; z-index:30; box-shadow:0 10px 26px rgba(0,0,0,.28); pointer-events:none;}
#tab-dashboard .kpi-delta {font-family:'Outfit',sans-serif; font-size:11.5px; font-weight:600; margin-top:3px;}
#tab-dashboard .kpi-delta.up {color:var(--travel);}
#tab-dashboard .kpi-delta.down {color:var(--red);}
#tab-dashboard .kpi-delta.flat {color:var(--gray);}
#tab-dashboard .kpi-sparkline {display:block; width:100%; height:26px; margin-top:6px;}
#tab-dashboard .kpi-sparkline {overflow:visible;}
#tab-dashboard .kpi-sparkline polyline {vector-effect:non-scaling-stroke;}
#tab-dashboard .kpi-sparkline .spark-area {fill:color-mix(in srgb, var(--accent) 12%, transparent); stroke:none;}
#tab-dashboard .kpi-sparkline .spark-current {fill:none; stroke:var(--accent); stroke-width:1.6;}
#tab-dashboard .kpi-sparkline .spark-previous {fill:none; stroke:var(--gray); stroke-width:1.3; stroke-dasharray:3,2;}
#tab-dashboard .stat-card .label {font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--gray); font-weight:600; margin-bottom:6px; padding-right:20px;}
#tab-dashboard .stat-card .value {font-family:'Fraunces',serif; font-size:26px; font-weight:600; color:var(--text);}
#tab-dashboard .card {background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:20px; margin-bottom:28px;}
#tab-dashboard .top-performers-row {display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:20px; margin-bottom:8px;}
#tab-dashboard .top-performers-row .card {margin-bottom:0; min-width:0;}
@media (max-width: 980px) {
#tab-dashboard .top-performers-row {grid-template-columns:1fr 1fr;}
}
@media (max-width: 620px) {
#tab-dashboard .top-performers-row {grid-template-columns:1fr;}
}
#tab-dashboard .top-rank-row {display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid var(--line);}
#tab-dashboard .top-rank-row:last-child {border-bottom:none;}
#tab-dashboard .top-rank-num {font-family:'Fraunces',serif; font-size:15px; font-weight:600; color:var(--gray); width:16px; flex-shrink:0;}
#tab-dashboard .top-rank-thumb {width:34px; height:34px; border-radius:6px; object-fit:cover; flex-shrink:0; background:var(--bg);}
#tab-dashboard .top-rank-main {flex:1; min-width:0;}
#tab-dashboard .top-rank-link {display:block; text-decoration:none; color:inherit;}
#tab-dashboard .top-rank-link:hover .top-rank-name {text-decoration:underline; color:var(--accent);}
#tab-dashboard .top-rank-name {display:block; font-size:12.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:4px;}
#tab-dashboard .top-rank-bar-track {height:5px; border-radius:3px; background:var(--bg); overflow:hidden;}
#tab-dashboard .top-rank-sub {font-size:11.5px; color:var(--gray); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums;}
#tab-dashboard .top-rank-bar-fill {height:100%; border-radius:3px; background:var(--accent);}
#tab-dashboard .top-rank-value {font-size:12.5px; font-weight:700; white-space:nowrap; flex-shrink:0;}
#tab-dashboard .card h2 {font-family:'Fraunces',serif; font-size:16.5px; margin:0 0 14px;}
#tab-dashboard .mini-chart {position:relative; margin-bottom:12px;}
#tab-dashboard .section {margin-bottom:32px;}
#tab-dashboard .section h2 {font-family:'Fraunces',serif; font-size:17px; margin:0 0 12px;}
#tab-dashboard .list {display:flex; flex-direction:column; gap:8px;}
#tab-dashboard .row {background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:12px 14px; cursor:pointer;}
#tab-dashboard .row:hover {border-color:var(--accent);}
#tab-dashboard .row-head {display:flex; align-items:center; gap:10px;}
#tab-dashboard .row-thumb {width:32px; height:32px; border-radius:6px; object-fit:cover; flex-shrink:0;}
#tab-dashboard .row-head .name {font-family:'Fraunces',serif; font-weight:600; font-size:14px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
#tab-dashboard .row-head .metric {font-family:'Outfit',sans-serif; font-size:12.5px; color:var(--gray); white-space:nowrap;}
#tab-dashboard .row-head .metric b {color:var(--text); font-weight:700;}
#tab-dashboard .row-head .chevron {font-size:11px; color:var(--gray); transition:transform .15s ease;}
#tab-dashboard .export-btn {display:flex; align-items:center; justify-content:center; width:26px; height:26px; flex-shrink:0; background:none; border:1px solid var(--line); border-radius:6px; cursor:pointer; color:var(--gray);}
#tab-dashboard .export-btn:hover:not(:disabled) {border-color:var(--accent); color:var(--text);}
#tab-dashboard .export-btn:disabled {opacity:.4; cursor:default;}
#tab-dashboard .export-btn svg {width:13px; height:13px;}
#tab-dashboard .open-link-btn {display:flex; align-items:center; justify-content:center; width:26px; height:26px; flex-shrink:0; background:none; border:1px solid var(--line); border-radius:6px; color:var(--gray); text-decoration:none;}
#tab-dashboard .open-link-btn:hover {border-color:var(--accent); color:var(--text);}
#tab-dashboard .open-link-btn svg {width:13px; height:13px;}
#tab-dashboard .source-badge {font-family:'Outfit',sans-serif; font-size:10.5px; font-weight:600; letter-spacing:.03em; padding:3px 8px; border-radius:7px; flex-shrink:0;}
#tab-dashboard .source-badge.smartlist {background:color-mix(in srgb, var(--experience) 14%, var(--surface)); color:var(--experience);}
#tab-dashboard .source-badge.widget {background:color-mix(in srgb, var(--taste) 14%, var(--surface)); color:var(--taste);}
#tab-dashboard .source-badge.casting {background:color-mix(in srgb, var(--experience) 14%, var(--surface)); color:var(--experience);}
#tab-dashboard .source-badge.fast {background:color-mix(in srgb, var(--taste) 14%, var(--surface)); color:var(--taste);}
#tab-dashboard .source-badge.unlabeled {background:color-mix(in srgb, var(--gray) 16%, var(--surface)); color:var(--gray);}
#tab-dashboard .row.open .chevron {transform:rotate(90deg);}
#tab-dashboard .row-detail {display:none; margin-top:10px; padding-top:10px; border-top:1px solid var(--line); font-size:12.5px;}
#tab-dashboard .row.open .row-detail {display:block;}
#tab-dashboard .row-detail .sub-row {display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:4px 0; color:var(--gray); flex-wrap:wrap;}
#tab-dashboard .row-detail .sub-row code {font-family:monospace; font-size:11px;}
#tab-dashboard .badge {display:inline-block; font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.03em; padding:3px 8px; border-radius:7px; margin-right:6px;}
#tab-dashboard .badge.Read {background:color-mix(in srgb, var(--read) 14%, var(--surface)); color:var(--read);}
#tab-dashboard .badge.Taste {background:color-mix(in srgb, var(--taste) 14%, var(--surface)); color:var(--taste);}
#tab-dashboard .badge.Experience {background:color-mix(in srgb, var(--experience) 14%, var(--surface)); color:var(--experience);}
#tab-dashboard .badge.Travel {background:color-mix(in srgb, var(--travel) 14%, var(--surface)); color:var(--travel);}
#tab-dashboard .badge.Learn {background:color-mix(in srgb, var(--learn) 14%, var(--surface)); color:var(--learn);}
#tab-dashboard .badge.Listen {background:color-mix(in srgb, var(--listen) 14%, var(--surface)); color:var(--listen);}
#tab-dashboard .badge.campaign-scheduled {background:color-mix(in srgb, var(--taste) 14%, var(--surface)); color:var(--taste);}
#tab-dashboard .badge.campaign-ended {background:color-mix(in srgb, var(--gray) 16%, var(--surface)); color:var(--gray);}
#tab-dashboard .badge.campaign-live {background:#FFCC00; color:#00114A;}
#tab-dashboard .campaign-range {font-size:10.5px; color:var(--gray); font-weight:400; text-transform:none; letter-spacing:0;}
#tab-dashboard .badge.neutral {background:color-mix(in srgb, var(--gray) 16%, var(--surface)); color:var(--gray);}
#tab-dashboard .empty {font-size:13px; color:var(--gray); padding:20px; text-align:center; background:var(--surface); border:1px solid var(--line); border-radius:10px;}

/* Read-only accounts (Analytics Access) see the Dashboard only: no menu, the page uses the whole width. */
body.analytics-only .sidebar { display: none; }
body.analytics-only #tab-dashboard { max-width: none; }

/* The admin's generic form rules make every select/input full width; the dashboard's filter bars want them at their natural width. */
#tab-dashboard .controls select, #tab-dashboard .controls input[type=text], #tab-dashboard .controls input[type=search] { width: auto; max-width: 100%; }
/* The "Top …" cards: two by two (Top links takes the whole row while Top sites is hidden). */
#tab-dashboard .top-performers-row { grid-template-columns: repeat(2, 1fr); }
#tab-dashboard .top-performers-row .card.wide { grid-column: 1 / -1; }
@media (max-width: 620px) { #tab-dashboard .top-performers-row { grid-template-columns: 1fr; } }
#tab-dashboard .top-performers-row { margin-bottom: 28px; }

/* Overview: "Rank by" selector above the rankings. */
#tab-dashboard .top-controls { margin-bottom: 14px; }
#tab-dashboard .top-controls .inline-label { font-size: 12.5px; color: var(--gray); font-weight: 600; align-self: center; }

/* Overview: "Performance by contract" — one stacked first column, short compensation lines, stacked reconciliation badges. */
#tab-dashboard .contract-table td.contract-main { min-width: 190px; }
#tab-dashboard .contract-product { font-weight: 600; color: var(--text); }
#tab-dashboard .contract-sub { font-size: 11.5px; color: var(--gray); }
#tab-dashboard .contract-sub.contract-term.soon { color: var(--red); }
#tab-dashboard .contract-model { margin-bottom: 4px; line-height: 1.35; }
#tab-dashboard .contract-model .contract-sub { display: block; margin-top: 1px; }
#tab-dashboard .contract-table th, #tab-dashboard .contract-table td { padding-left: 8px; padding-right: 8px; }
#tab-dashboard .contract-table td.contract-models { max-width: 190px; }
#tab-dashboard .contract-table td:nth-child(n+3):nth-child(-n+8) { white-space: nowrap; font-variant-numeric: tabular-nums; }
#tab-dashboard .contract-table .reconciliation-badge { margin-bottom: 3px; cursor: help; white-space: normal; display: inline-block; max-width: 150px; line-height: 1.3; }

#tab-dashboard .log-host {display:block; max-width:340px; overflow-wrap:anywhere; font-weight:600; font-size:12px;}

/* ===== Geography (v1.19.0) — sub-tab "Geography". Colours (--geo-*), the map, the ranking lists, the stacked bars and the hours chart live in assets/shared/geo.css (also used by the vendor portal). ===== */
#tab-dashboard .geo-notice {background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:10px 14px; margin-bottom:16px; color:var(--text);}
#tab-dashboard .geo-coverage {font-size:12px; color:var(--gray);}
#tab-dashboard .geo-muted {color:var(--gray); font-size:12.5px;}
#tab-dashboard .geo-section {font-family:'Fraunces',serif; font-size:22px; margin:8px 0 14px;}
#tab-dashboard .geo-row {display:flex; flex-wrap:wrap; gap:16px; align-items:stretch; margin-bottom:28px;}
#tab-dashboard .geo-row .card {margin-bottom:0; min-width:0;}
#tab-dashboard .geo-map-card {flex:2 1 480px; display:flex; flex-direction:column; gap:12px;}
#tab-dashboard .geo-rank-card {flex:1 1 300px;}
#tab-dashboard .geo-city-card {flex:1 1 320px;}
#tab-dashboard .geo-profile-card {flex:2 1 420px;}
#tab-dashboard .geo-act-card {flex:2 1 420px;}
#tab-dashboard .geo-cta-card {flex:1 1 300px;}
#tab-dashboard .geo-card-head {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px;}
#tab-dashboard .geo-card-head h2 {margin-bottom:2px;}
#tab-dashboard .geo-tag {font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gray); margin-bottom:6px;}
#tab-dashboard .geo-signals {display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:12px;}
#tab-dashboard .geo-signal {background:var(--bg); border-radius:8px; padding:12px 14px; font-size:13.5px; line-height:1.45;}
#tab-dashboard .geo-legend-row {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 18px; font-size:12px; color:var(--gray);}
#tab-dashboard .geo-offmap {font-size:12.5px; color:var(--gray); border-top:1px solid var(--line); padding-top:10px; min-height:18px;}
#tab-dashboard .geo-offmap strong {color:var(--text);}
#tab-dashboard .geo-tiles {display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:12px;}
#tab-dashboard .geo-tile {background:var(--bg); border-radius:8px; padding:12px 14px;}
#tab-dashboard .geo-tile-v {font-family:'Fraunces',serif; font-size:21px; line-height:1.25; margin-top:2px;}
#tab-dashboard .geo-tile-s {font-size:12px; color:var(--gray); margin-top:1px;}
#tab-dashboard .geo-act-head, #tab-dashboard .geo-act-row {display:grid; grid-template-columns:minmax(96px,1.1fr) minmax(70px,2fr) 44px 60px 62px; gap:8px 10px; align-items:center; font-size:13.5px;}
#tab-dashboard .geo-act-head {font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--gray); margin-bottom:8px;}
#tab-dashboard .geo-act-row {margin-bottom:9px;}
#tab-dashboard .geo-act-head span:nth-child(n+3), #tab-dashboard .geo-act-row > :nth-child(n+3) {text-align:right;}
#tab-dashboard .geo-act-name {display:inline-flex; align-items:center; gap:8px; font-weight:600;}
#tab-dashboard .geo-dot {display:inline-block; width:10px; height:10px; border-radius:50%; flex-shrink:0;}
#tab-dashboard .geo-cta-list {display:flex; flex-direction:column; gap:10px; margin-top:14px;}
#tab-dashboard .geo-cta-row {display:grid; grid-template-columns:minmax(0,1fr) 44px 74px; gap:10px; align-items:center; font-size:13.5px;}
#tab-dashboard .geo-cta-row b, #tab-dashboard .geo-cta-row .geo-muted {text-align:right;}
#tab-dashboard .geo-mx-wrap {overflow-x:auto;}
#tab-dashboard .geo-mx {min-width:640px; display:flex; flex-direction:column; gap:4px;}
#tab-dashboard .geo-mx-row {display:grid; grid-template-columns:130px repeat(7, minmax(0,1fr)); gap:4px; align-items:stretch;}
#tab-dashboard .geo-mx-h {display:flex; flex-direction:column; align-items:center; gap:4px; font-size:11.5px; font-weight:600; text-align:center;}
#tab-dashboard .geo-mx-c {display:flex; flex-direction:column; justify-content:center; font-size:13.5px;}
#tab-dashboard .geo-mx-c small {font-size:11.5px; color:var(--gray);}
#tab-dashboard .geo-mx-cell {display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:46px; border-radius:6px; font-size:14px;}
#tab-dashboard .geo-mx-cell small {font-size:10.5px; font-weight:600; min-height:13px;}

/* ===== v1.19.1 — charts (js/91-dash-charts.js), Overview and Performances rework. Chart colours are CSS variables: no redraw on a theme switch. ===== */
@media (max-width: 760px) { #tab-dashboard .funnel {flex-wrap:wrap; row-gap:8px;} #tab-dashboard .funnel-stage {flex:1 1 90px;} }

/* Overview */
#tab-dashboard .stats.stats-6 {grid-template-columns:repeat(3, 1fr);}
#tab-dashboard .stats.stats-8 {grid-template-columns:repeat(4, 1fr);}
#tab-dashboard .stat-card .kpi-sub {font-size:12px; color:var(--gray); margin-top:2px; min-height:16px;}
@media (max-width: 1000px) { #tab-dashboard .stats.stats-8 {grid-template-columns:repeat(2, 1fr);} }
@media (max-width: 760px) { #tab-dashboard .stats.stats-6 {grid-template-columns:repeat(2, 1fr);} }
#tab-dashboard .pf-card-head {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin-bottom:12px;}
#tab-dashboard .pf-card-head h2 {margin:0;}
#tab-dashboard .ov-two {display:grid; grid-template-columns:repeat(auto-fit, minmax(340px, 1fr)); gap:20px; margin-bottom:28px;}
#tab-dashboard .ov-two .card {margin-bottom:0; min-width:0;}
#tab-dashboard .funnel {display:flex; flex-wrap:wrap; align-items:center; gap:6px 0;}
#tab-dashboard .funnel {flex-wrap:nowrap; gap:0;}
#tab-dashboard .funnel-stage {flex:1 1 0; min-width:0; padding:8px 4px; text-align:center;}
#tab-dashboard .funnel-step {flex:0 0 78px; display:flex; flex-direction:column; align-items:center; text-align:center; color:var(--gray);}
#tab-dashboard .funnel-step b {font-size:13px; color:var(--text);}
#tab-dashboard .funnel-step small {font-size:10.5px; line-height:1.2;}
#tab-dashboard .funnel-step span {font-size:15px; line-height:1;}
#tab-dashboard .rev-total {font-family:'Fraunces',serif; font-size:24px; font-weight:600; margin-bottom:10px;}
#tab-dashboard .rev-total small {font-family:'Outfit',sans-serif; font-size:12px; font-weight:400; color:var(--gray);}
#tab-dashboard .rev-stack, #tab-dashboard .rec-stack {display:flex; gap:2px; height:14px; border-radius:7px; overflow:hidden; margin-bottom:12px;}
#tab-dashboard .rev-seg, #tab-dashboard .rev-dot {background:var(--travel);}
#tab-dashboard .rev-seg.cpm, #tab-dashboard .rev-dot.cpm {background:var(--read);}
#tab-dashboard .rev-seg.cpc, #tab-dashboard .rev-dot.cpc {background:var(--learn);}
#tab-dashboard .rev-seg.cpa, #tab-dashboard .rev-dot.cpa {background:var(--experience);}
#tab-dashboard .rev-seg.revshare, #tab-dashboard .rev-dot.revshare {background:var(--travel);}
#tab-dashboard .rev-legend {display:flex; flex-direction:column; gap:7px;}
#tab-dashboard .rev-leg {display:grid; grid-template-columns:12px minmax(0,1fr) auto 38px; gap:9px; align-items:center; font-size:13.5px;}
#tab-dashboard .rev-leg.zero {opacity:.45;}
#tab-dashboard .rev-leg small {color:var(--gray); text-align:right;}
#tab-dashboard .rev-dot, #tab-dashboard .rec-dot {display:inline-block; width:10px; height:10px; border-radius:3px;}
#tab-dashboard .reconciliation-grid {display:block;}
#tab-dashboard .rec-verdict {font-size:14px; margin-bottom:10px;}
#tab-dashboard .rec-verdict.warn b:last-of-type {color:var(--red);}
#tab-dashboard .rec-seg.ok, #tab-dashboard .rec-dot.ok {background:var(--travel);}
#tab-dashboard .rec-seg.warn, #tab-dashboard .rec-dot.warn {background:var(--red);}
#tab-dashboard .rec-seg.warn.MISSING_CALCULATION_BASIS, #tab-dashboard .rec-dot.warn.MISSING_CALCULATION_BASIS, #tab-dashboard .rec-seg.warn.CPA_TRIGGER_NOT_VERIFIED, #tab-dashboard .rec-dot.warn.CPA_TRIGGER_NOT_VERIFIED {background:var(--taste);}
#tab-dashboard .rec-seg.neutral, #tab-dashboard .rec-dot.neutral {background:var(--gray);}
#tab-dashboard .rec-list {display:flex; flex-direction:column; gap:7px;}
#tab-dashboard .rec-row {display:grid; grid-template-columns:12px minmax(0,1fr) auto; gap:9px; align-items:center; font-size:13.5px;}
#tab-dashboard .top-pills {margin:-4px 0 10px;}
#tab-dashboard .top-kind {font-style:normal; font-size:10px; font-weight:600; letter-spacing:.03em; text-transform:uppercase; color:var(--gray); background:var(--bg); border-radius:5px; padding:1px 6px; margin-left:4px; vertical-align:1px;}

/* Performances */
#tab-dashboard .controls .inline-label {font-size:12.5px; color:var(--gray); font-weight:600; margin:0; align-self:center; text-transform:none; letter-spacing:0; display:inline;}
#tab-dashboard .pf-signals {display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:12px; margin-bottom:24px;}
#tab-dashboard .pf-signal {background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:12px 14px; font-size:13.5px; line-height:1.45;}
#tab-dashboard .pf-signal-body {display:flex; align-items:flex-start; gap:12px;}
#tab-dashboard .pf-thumbs {display:inline-flex; flex-shrink:0;}
#tab-dashboard .pf-thumb {position:relative; width:46px; height:46px; border-radius:9px; overflow:hidden; flex-shrink:0; background:color-mix(in srgb, var(--gray) 22%, var(--surface)); border:1px solid var(--line);}
#tab-dashboard .pf-thumb img {position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:var(--surface);}
#tab-dashboard .pf-thumb-ph {position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:16px; color:var(--gray);}
#tab-dashboard .pf-thumbs.multi .pf-thumb {width:34px; height:34px; border-radius:8px; border:2px solid var(--surface);}
#tab-dashboard .pf-thumbs.multi .pf-thumb + .pf-thumb {margin-left:-10px;}
#tab-dashboard .pf-tag {font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gray); margin-bottom:5px;}
#tab-dashboard .pf-scope {font-size:12.5px; color:var(--gray);}
#tab-dashboard .pf-link {background:none; border:none; color:var(--accent); font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:600; text-decoration:underline; cursor:pointer; padding:0 0 0 6px;}
#tab-dashboard .pf-card-head input[type=search] {width:240px; max-width:100%; padding:7px 10px; font-size:13px;}
#tab-dashboard .pf-tabs {display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px;}
#tab-dashboard .pf-tab {font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:600; color:var(--gray); background:none; border:1px solid var(--line); border-radius:999px; padding:5px 12px; cursor:pointer; display:inline-flex; align-items:center; gap:7px;}
#tab-dashboard .pf-tab span {font-size:11px; font-weight:700; background:var(--bg); border-radius:999px; padding:1px 7px;}
#tab-dashboard .pf-tab:hover {border-color:var(--accent);}
#tab-dashboard .pf-tab.on {background:var(--gold); border-color:var(--gold); color:#00114A;}
#tab-dashboard .pf-tab.on span {background:rgba(0,17,74,.12);}
#tab-dashboard #pfTable {overflow-x:auto;}
#tab-dashboard .pf-head, #tab-dashboard .pf-row {display:grid; grid-template-columns:26px minmax(200px,1fr) 118px 70px 76px 96px 92px; gap:10px; align-items:center; min-width:760px;}
#tab-dashboard .pf-head {padding:0 10px 8px; border-bottom:1px solid var(--line);}
#tab-dashboard .pf-th {font-family:'Outfit',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--gray); background:none; border:none; padding:0; cursor:pointer; text-align:left;}
#tab-dashboard .pf-th.num {text-align:right;}
#tab-dashboard .pf-th.on {color:var(--text);}
#tab-dashboard .pf-item {border-bottom:1px solid var(--line); min-width:760px;}
#tab-dashboard .pf-row {padding:9px 10px; cursor:pointer; min-width:0;}
#tab-dashboard .pf-row:hover {background:var(--bg);}
#tab-dashboard .pf-rank {font-family:'Fraunces',serif; font-size:14px; color:var(--gray); text-align:right;}
#tab-dashboard .pf-name {display:flex; align-items:center; gap:8px; min-width:0;}
#tab-dashboard .pf-name .badge {margin-right:0;}
#tab-dashboard .pf-title {font-size:13.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;}
#tab-dashboard .pf-num {display:flex; flex-direction:column; align-items:flex-end; gap:3px; font-size:13.5px; font-variant-numeric:tabular-nums;}
#tab-dashboard .pf-num:nth-child(5) {flex-direction:row; justify-content:flex-end; align-items:center; gap:5px;}
#tab-dashboard .pf-bar {display:block; width:100%; height:4px; border-radius:2px; background:var(--bg); overflow:hidden;}
#tab-dashboard .pf-bar i {display:block; height:100%; border-radius:2px; background:var(--ec-impr);}
#tab-dashboard .pf-bar.wide {height:8px;}
#tab-dashboard .pf-act {display:flex; align-items:center; justify-content:flex-end; gap:6px;}
#tab-dashboard .pf-act .chevron {font-size:11px; color:var(--gray); transition:transform .15s ease;}
#tab-dashboard .pf-item.open .chevron {transform:rotate(90deg);}
#tab-dashboard .pf-item.open .pf-detail {display:block;}
#tab-dashboard .pf-detail {margin:0; padding:10px 14px 14px 42px; border-top:none;}
#tab-dashboard .pf-trend {font-size:12.5px; font-weight:700;}
#tab-dashboard .pf-trend.up, #tab-dashboard .pf-vs.up {color:var(--travel);}
#tab-dashboard .pf-trend.down, #tab-dashboard .pf-vs.down {color:var(--red);}
#tab-dashboard .pf-vs {font-size:10px;}
#tab-dashboard .pf-muted {color:var(--gray);}
#tab-dashboard .pf-foot {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; font-size:12.5px; color:var(--gray);}
#tab-dashboard .pf-pos {display:flex; align-items:flex-end; gap:10px; height:200px;}
#tab-dashboard .pf-pos-col {flex:1; min-width:0; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:5px; font-size:12.5px;}
#tab-dashboard .pf-pos-col small {font-size:10.5px; color:var(--gray); white-space:nowrap;}
#tab-dashboard .pf-pos-bar {display:flex; align-items:flex-end; width:100%; max-width:56px; flex:1; min-height:0;}
#tab-dashboard .pf-pos-bar i {display:block; width:100%; border-radius:5px 5px 0 0; background:var(--ec-ctr);}
#tab-dashboard .pf-pos-n {font-weight:700; color:var(--text);}
#tab-dashboard .pf-eng-row {display:grid; grid-template-columns:minmax(70px,.8fr) minmax(60px,2fr) 52px; gap:6px 10px; align-items:center; font-size:13.5px; margin-bottom:12px;}
#tab-dashboard .pf-eng-row small {grid-column:2 / -1; color:var(--gray); font-size:11.5px; margin-top:-4px;}
#tab-dashboard .pf-eng-name {font-weight:600; overflow:hidden; text-overflow:ellipsis;}

/* v1.42.0 — custom period: two date fields next to a period selector (assets/shared/period.js) */
#tab-dashboard .ep-box {display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap;}
#tab-dashboard .ep-box[hidden] {display:none;}
#tab-dashboard .ep-f {display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--gray);}
#tab-dashboard .ep-box input[type=date] {font-family:'Outfit',sans-serif; font-size:13px; color:var(--text); border:1px solid var(--line); border-radius:6px; padding:7px 9px; background:var(--surface); width:auto;}
#tab-dashboard .ep-apply {background:var(--gold); color:var(--navy);}
#tab-dashboard .ep-cancel {background:none; color:var(--text); border:1px solid var(--line);}
#tab-dashboard .ep-err {font-size:12px; color:var(--red);}

/* v1.43.0 — the button that opens the product sheet, at the end of a Top products row */
#tab-dashboard .top-rank-sheet {display:flex; align-items:center; justify-content:center; width:26px; height:26px; flex-shrink:0; background:none; border:1px solid var(--line); border-radius:6px; cursor:pointer; color:var(--gray); padding:0;}
#tab-dashboard .top-rank-sheet:hover, #tab-dashboard .top-rank-sheet:focus-visible {border-color:var(--accent); color:var(--text);}
#tab-dashboard .top-rank-sheet svg {width:13px; height:13px;}
