/* Campaign Performance (/campaign-performance). Pairs with campaign-performance.js.
 * Colours come from the theme engine tokens (--te-*), so every preset and dark mode apply. */

.cp {
  --cp-fg: var(--te-foreground, var(--foreground));
  --cp-card: var(--te-card, var(--card));
  --cp-muted: var(--te-muted, var(--muted));
  --cp-muted-fg: var(--te-muted-foreground, var(--muted-foreground));
  --cp-border: var(--te-border, var(--border));
  --cp-brand: var(--te-brand, var(--gc-orange, #e8630c));
  --cp-good: var(--te-success, #16a34a);
  --cp-warn: var(--te-warning, #d97706);
  --cp-bad: var(--te-destructive, #dc2626);
  --cp-info: #2563eb;
  --cp-radius: var(--te-radius, 0.625rem);
  --cp-conf: #60a5fa;
  --cp-exp: #c4b5fd;
  display: block;
  color: var(--cp-fg);
  font-size: 13px;
  line-height: 1.45;
  padding: 4px 0 48px;
}
.dark .cp { --cp-conf: #3b82f6; --cp-exp: #8b5cf6; }
/* The app's base (preflight) rules this page relies on, at zero specificity: inside
 * the app they change nothing (the same rules already apply, and any app rule wins),
 * and an exported HTML file, which has no app stylesheet, renders identically. */
:where(.cp) :where(*, ::before, ::after) { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
:where(.cp) :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; }
:where(.cp) :where(small) { font-size: 80%; }
:where(.cp) :where(b, strong) { font-weight: bolder; }
:where(.cp) :where(ol, ul, menu) { list-style: none; }
:where(.cp) :where(svg, img) { display: block; vertical-align: middle; }
:where(.cp) :where(table) { text-indent: 0; border-color: inherit; border-collapse: collapse; }
:where(.cp) :where(a) { color: inherit; text-decoration: inherit; }
:where(.cp) :where(button, input, select, textarea) { font: inherit; font-feature-settings: inherit; font-variation-settings: inherit; letter-spacing: inherit; color: inherit; background-color: transparent; border-radius: 0; }
.cp * { box-sizing: border-box; }
.cp :is(p, li, td, th, dd) { overflow-wrap: normal; }
.cp-content { display: flex; flex-direction: column; gap: 16px; }
.cp button { font: inherit; color: inherit; cursor: pointer; }
.cp-dim { color: var(--cp-muted-fg); }
.cp-good { color: var(--cp-good); }
.cp-bad { color: var(--cp-bad); }
.cp-note { margin: 10px 0 0; font-size: 12px; color: var(--cp-muted-fg); }
.cp-empty { margin: 0; padding: 22px 6px; color: var(--cp-muted-fg); font-size: 12.5px; text-align: center; }
.cp-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--cp-muted-fg); font-weight: 400; }
.cp-tag { display: inline-block; padding: 1px 6px; border-radius: 999px; background: var(--cp-muted); font-size: 10.5px; font-weight: 600; }

/* Head */
.cp-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.cp-head h1 { margin: 6px 0 6px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; text-transform: none; }
.cp-head p { margin: 0; max-width: 760px; color: var(--cp-muted-fg); }
.cp-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cp-brand); }
.cp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--cp-border); border-radius: calc(var(--cp-radius) - 2px); background: var(--cp-card); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cp-btn:hover:not(:disabled) { background: var(--cp-muted); }
.cp-btn:disabled { opacity: 0.5; cursor: default; }
.cp-btn svg { width: 14px; height: 14px; }
.cp-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; color: var(--cp-muted-fg); }
.cp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.cp-pill.cp-good { color: var(--cp-good); background: color-mix(in srgb, var(--cp-good) 12%, transparent); border-color: color-mix(in srgb, var(--cp-good) 30%, transparent); }
.cp-pill.cp-warn { color: var(--cp-warn); background: color-mix(in srgb, var(--cp-warn) 12%, transparent); border-color: color-mix(in srgb, var(--cp-warn) 30%, transparent); }
.cp-pill.cp-bad { color: var(--cp-bad); background: color-mix(in srgb, var(--cp-bad) 11%, transparent); border-color: color-mix(in srgb, var(--cp-bad) 30%, transparent); }
.cp-pill.cp-muted { color: var(--cp-muted-fg); background: var(--cp-muted); }

/* Cards */
.cp-card { background: var(--cp-card); border: 1px solid var(--cp-border); border-radius: calc(var(--cp-radius) + 4px); padding: 16px 18px; min-width: 0; scroll-margin-top: 80px; }
.cp-card-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.cp-card-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; text-transform: none; }
.cp-card-head p { margin: 3px 0 0; font-size: 12px; color: var(--cp-muted-fg); max-width: 640px; }
.cp-grid-2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; }
.cp-grid-2--rev { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
@media (max-width: 1100px) { .cp-grid-2, .cp-grid-2--rev { grid-template-columns: minmax(0, 1fr); } }
.cp-card-stack { display: flex; flex-direction: column; gap: 16px; }
#cp-reasons .cp-reason { max-width: 900px; }

/* Norms strip + today strip */
.cp-norms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.cp-norms > div { background: var(--cp-card); border: 1px solid var(--cp-border); border-radius: var(--cp-radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cp-norms span { font-size: 11px; font-weight: 600; color: var(--cp-muted-fg); text-transform: uppercase; letter-spacing: 0.04em; }
.cp-norms b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.cp-norms small { font-size: 11px; color: var(--cp-muted-fg); }
.cp-today { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding: 11px 14px; border-radius: var(--cp-radius); background: color-mix(in srgb, var(--cp-brand) 7%, var(--cp-card)); border: 1px solid color-mix(in srgb, var(--cp-brand) 22%, var(--cp-border)); font-size: 12.5px; }

/* KPIs */
.cp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 10px; }
@media (max-width: 640px) { .cp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-kpi { position: relative; background: var(--cp-card); border: 1px solid var(--cp-border); border-radius: calc(var(--cp-radius) + 2px); padding: 12px 13px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-kpi-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cp-muted-fg); }
.cp-kpi-value { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cp-kpi-value small { font-size: 13px; color: var(--cp-muted-fg); font-weight: 600; }
.cp-kpi-sub { font-size: 11px; line-height: 1.35; color: var(--cp-muted-fg); }
.cp-kpi--good { border-color: color-mix(in srgb, var(--cp-good) 40%, var(--cp-border)); }
.cp-kpi--warn { border-color: color-mix(in srgb, var(--cp-warn) 45%, var(--cp-border)); }
.cp-kpi--bad { border-color: color-mix(in srgb, var(--cp-bad) 45%, var(--cp-border)); }
.cp-ring { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; }
.cp-ring-bg { fill: none; stroke: var(--cp-muted); stroke-width: 5; }
.cp-ring-fg { fill: none; stroke-width: 5; stroke-linecap: round; stroke: var(--cp-muted-fg); }
.cp-ring-fg.cp-good { stroke: var(--cp-good); } .cp-ring-fg.cp-warn { stroke: var(--cp-warn); } .cp-ring-fg.cp-bad { stroke: var(--cp-bad); }
.cp-ring text { font-size: 12px; font-weight: 700; fill: var(--cp-fg); }

/* Funnel */
.cp-funnel { display: flex; flex-direction: column; }
.cp-stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; font-weight: 600; }
.cp-stage-head b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cp-stage-head small { font-weight: 400; }
.cp-bar { height: 22px; background: var(--cp-muted); border-radius: 6px; overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: 6px; }
.cp-bar-0 { background: #3b82f6; } .cp-bar-1 { background: #6366f1; } .cp-bar-2 { background: #8b5cf6; } .cp-bar-3 { background: #10b981; } .cp-bar-4 { background: #f59e0b; }
.cp-conn { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0 6px 12px; margin-left: 10px; border-left: 2px solid var(--cp-border); font-size: 11.5px; }
.cp-conv { color: var(--cp-good); font-weight: 700; }
.cp-conn.is-worst { border-left-color: var(--cp-bad); }
.cp-conn.is-worst .cp-conv { color: var(--cp-bad); }
.cp-badge { margin-left: auto; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 800; color: var(--cp-bad); background: color-mix(in srgb, var(--cp-bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cp-bad) 30%, transparent); text-transform: uppercase; letter-spacing: 0.03em; }

/* Stat grids */
.cp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--cp-border); border: 1px solid var(--cp-border); border-radius: var(--cp-radius); overflow: hidden; margin-top: 14px; }
.cp-stats > div { background: var(--cp-card); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-stats span { font-size: 10.5px; font-weight: 700; color: var(--cp-muted-fg); text-transform: uppercase; letter-spacing: 0.04em; }
.cp-stats b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-stats small { font-size: 11px; color: var(--cp-muted-fg); }
.cp-stats--3 { margin-top: 0; }
@media (max-width: 640px) { .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Segmented + chips */
.cp-seg { display: inline-flex; border: 1px solid var(--cp-border); border-radius: calc(var(--cp-radius) - 2px); overflow: hidden; }
.cp-seg button { border: 0; background: transparent; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.cp-seg button[aria-pressed="true"] { background: var(--cp-fg); color: var(--cp-card); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cp-chip { border: 1px solid var(--cp-border); background: var(--cp-card); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.cp-chip span { color: var(--cp-muted-fg); font-weight: 500; }
.cp-chip.is-on { background: var(--cp-fg); color: var(--cp-card); border-color: var(--cp-fg); }
.cp-chip.is-on span { color: inherit; opacity: 0.75; }

/* Tables */
.cp-scroll { overflow: auto; border: 1px solid var(--cp-border); border-radius: var(--cp-radius); max-width: 100%; }
.cp-scroll--tall { max-height: 460px; margin-top: 14px; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cp-table th { position: sticky; top: 0; z-index: 1; background: var(--cp-muted); text-align: left; padding: 8px 10px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cp-muted-fg); white-space: nowrap; }
.cp-table td { padding: 8px 10px; border-top: 1px solid var(--cp-border); vertical-align: top; font-variant-numeric: tabular-nums; }
.cp-num td:not(:first-child), .cp-num th:not(:first-child) { text-align: right; white-space: nowrap; }
.cp-num td:first-child { white-space: nowrap; font-weight: 600; }
.cp-table tfoot td { position: sticky; bottom: 0; background: var(--cp-muted); font-weight: 700; }
.cp-table tr.is-today td { background: color-mix(in srgb, var(--cp-brand) 6%, transparent); }
.cp-click tbody tr { cursor: pointer; }
.cp-click tbody tr:hover td, .cp-click tbody tr:focus-visible td { background: var(--cp-muted); }
.cp-click tbody tr:focus-visible { outline: 2px solid var(--cp-brand); outline-offset: -2px; }
.cp-low { color: var(--cp-bad); font-weight: 700; }
.cp-high { color: var(--cp-good); font-weight: 700; }
.cp-table select { max-width: 220px; height: 30px; border: 1px solid var(--cp-border); border-radius: 6px; background: var(--cp-card); color: var(--cp-fg); font: inherit; font-size: 12px; padding: 0 6px; }
.cp-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--cp-muted-fg); }
.cp-dotlabel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cp-dotlabel i { width: 8px; height: 8px; border-radius: 3px; flex: none; }

/* Chart */
.cp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--cp-muted-fg); margin: 2px 0 8px; }
.cp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cp-legend i { display: inline-block; width: 12px; height: 10px; border-radius: 3px; }
.cp-sw-conf { background: var(--cp-conf); } .cp-sw-exp { background: var(--cp-exp); }
.cp-sw-visit { background: var(--cp-good); } .cp-sw-avg { height: 0 !important; border-top: 2px dashed var(--cp-muted-fg); }
.cp-chart { display: block; width: 100%; height: auto; }
.cp-grid { stroke: var(--cp-border); stroke-width: 1; }
.cp-axis { fill: var(--cp-muted-fg); font-size: 10.5px; }
.cp-c-conf { fill: var(--cp-conf); } .cp-c-exp { fill: var(--cp-exp); }
.cp-c-visit { fill: var(--cp-good); }
.cp-c-dot { fill: var(--cp-card); stroke: var(--cp-good); stroke-width: 2; }
.cp-c-avg { stroke: var(--cp-muted-fg); stroke-width: 1.5; stroke-dasharray: 6 5; }

/* Reasons */
.cp-reason { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 90px; align-items: center; gap: 10px; padding: 5px 0; }
.cp-reason-label { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-reason-track { height: 9px; background: var(--cp-muted); border-radius: 5px; overflow: hidden; }
.cp-reason-track i { display: block; height: 100%; border-radius: 5px; }
.cp-reason-val { text-align: right; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.cp-reason-val small { color: var(--cp-muted-fg); font-weight: 500; margin-left: 4px; }
.cp-divider { height: 1px; background: var(--cp-border); margin: 14px 0; }
.cp-sublabel { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cp-muted-fg); margin: 12px 0 8px; }
.cp-attr { display: flex; height: 30px; border-radius: 8px; overflow: hidden; }
.cp-attr span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.cp-trend { display: flex; align-items: flex-end; gap: 10px; min-height: 120px; }
.cp-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--cp-muted-fg); }
.cp-trend-col b { color: var(--cp-fg); }
.cp-trend-bar { width: 100%; max-width: 46px; display: flex; flex-direction: column-reverse; border-radius: 6px; overflow: hidden; background: var(--cp-muted); }
.cp-trend-bar i { display: block; width: 100%; }

/* Target */
.cp-target-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.cp-target-top > b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.cp-target-top span { color: var(--cp-muted-fg); }
.cp-target-top span b { color: var(--cp-fg); }
.cp-prog { position: relative; height: 30px; margin: 18px 0 6px; background: var(--cp-muted); border-radius: 8px; }
.cp-prog i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(90deg, #3b82f6, #2563eb); }
.cp-prog em { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--cp-warn); }
.cp-prog em::after { content: "Forecast"; position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; font-style: normal; color: var(--cp-warn); white-space: nowrap; }
.cp-prog-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--cp-muted-fg); }
.cp-banner { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 13px; border-radius: var(--cp-radius); font-size: 12.5px; color: var(--cp-warn); background: color-mix(in srgb, var(--cp-warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cp-warn) 32%, transparent); }
.cp-banner svg { width: 16px; height: 16px; flex: none; }
.cp-banner--good { color: var(--cp-good); background: color-mix(in srgb, var(--cp-good) 10%, transparent); border-color: color-mix(in srgb, var(--cp-good) 30%, transparent); }

/* Insights */
.cp-insight { position: relative; border: 1px solid var(--cp-border); border-radius: var(--cp-radius); padding: 12px 14px 10px 17px; margin-bottom: 10px; overflow: hidden; }
.cp-insight:last-child { margin-bottom: 0; }
.cp-insight::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cp-info); }
.cp-insight--crit::before { background: var(--cp-bad); } .cp-insight--warn::before { background: var(--cp-warn); }
.cp-insight h3 { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-size: 13px; font-weight: 700; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.cp-ins-icon { flex: none; width: 19px; height: 19px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; background: var(--cp-info); }
.cp-insight--crit .cp-ins-icon { background: var(--cp-bad); } .cp-insight--warn .cp-ins-icon { background: var(--cp-warn); }
.cp-insight dl { margin: 0; }
.cp-insight dl > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--cp-border); }
.cp-insight dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cp-muted-fg); padding-top: 2px; }
.cp-insight dd { margin: 0; font-size: 12.5px; }
.cp-insight footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--cp-border); }
.cp-owner { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--cp-muted); }
.cp-link { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 700; color: var(--cp-info); }
@media (max-width: 640px) { .cp-insight dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .cp-reason { grid-template-columns: minmax(0, 1fr) 80px; } .cp-reason-track { grid-column: 1 / -1; grid-row: 2; } }

@media print {
  .cp-actions, .cp-seg, .cp-chips, .cp-pager, .cp-table select { display: none !important; }
  .cp-scroll, .cp-scroll--tall { max-height: none; overflow: visible; }
}

/* Daily charts: labelled columns + outcome pie (2026-09-26) */
.cp-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .cp-charts { grid-template-columns: minmax(0, 1fr); } }
.cp-h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cp-muted-fg); }
.cp-chart-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.cp-chart--cols { display: block; max-width: none; }
.cp-val { fill: var(--cp-fg); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-val.is-zero { fill: var(--cp-muted-fg); font-weight: 500; opacity: 0.7; }
.cp-pie-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cp-pie { width: 220px; height: 220px; flex: none; }
.cp-slice { stroke: var(--cp-card); stroke-width: 1.5; }
.cp-slice-val { fill: #fff; font-size: 12px; font-weight: 800; paint-order: stroke; stroke: rgba(0, 0, 0, 0.28); stroke-width: 2px; }
.cp-pie-total { fill: var(--cp-fg); font-size: 22px; font-weight: 800; }
.cp-pie-sub { fill: var(--cp-muted-fg); font-size: 11px; }
.cp-pie-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.cp-pie-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 52px; align-items: center; gap: 8px; font-size: 12.5px; }
.cp-pie-legend i { width: 12px; height: 12px; border-radius: 3px; }
.cp-pie-legend b { font-variant-numeric: tabular-nums; }
.cp-pie-legend em { font-style: normal; color: var(--cp-muted-fg); text-align: right; font-variant-numeric: tabular-nums; }
.cp-meter { display: inline-block; width: 46px; height: 6px; margin-right: 6px; vertical-align: middle; border-radius: 3px; background: var(--cp-muted); overflow: hidden; }
.cp-meter i { display: block; height: 100%; background: var(--cp-good); }

/* v4: bigger daily chart with zoom */
.cp-chart-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cp-zoom { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--cp-border); border-radius: calc(var(--cp-radius) - 2px); padding: 2px; }
.cp-zoom button { min-width: 30px; height: 28px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; font-weight: 700; }
.cp-zoom button:hover:not(:disabled) { background: var(--cp-muted); }
.cp-zoom button:disabled { opacity: 0.4; cursor: default; }
.cp-zoom span { min-width: 44px; text-align: center; font-size: 12px; font-weight: 600; color: var(--cp-muted-fg); }
.cp-chart-scroll { border: 1px solid var(--cp-border); border-radius: var(--cp-radius); padding: 6px 4px 2px; }
.cp-val { font-size: 12px; }
.cp-chart--cols .cp-axis { font-size: 11.5px; }
.cp-pie-legend { max-width: 520px; }
.cp-kpi--good .cp-kpi-label, .cp-kpi--warn .cp-kpi-label, .cp-kpi--bad .cp-kpi-label { padding-right: 44px; }

/* 2026-09-28: today and tomorrow (same styles as the Pro page). */
.cp-plan { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin: 0 0 12px; }
.cp-plan-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; border: 1px solid var(--cp-border); border-radius: calc(var(--cp-radius) + 4px); background: var(--cp-card); overflow: hidden; }
.cp-plan-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cp-info, #2563eb); }
.cp-plan-label { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cp-muted-fg); }
.cp-plan-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cp-plan-main b { font-size: 30px; font-weight: 750; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cp-plan-main span { font-size: 13px; color: var(--cp-muted-fg); }
.cp-plan-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--cp-border); border-radius: var(--cp-radius); overflow: hidden; background: var(--cp-border); }
.cp-plan-split > div { padding: 8px 12px; background: var(--cp-card); }
.cp-plan-split b { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-plan-split small { font-size: 11.5px; color: var(--cp-muted-fg); }
.cp-plan-note { margin: auto 0 0; font-size: 12.5px; color: var(--cp-muted-fg); }
.cp-plan-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-plan-table th { padding: 8px 12px; text-align: right; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cp-muted-fg); border-bottom: 1px solid var(--cp-border); white-space: nowrap; }
.cp-plan-table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid color-mix(in srgb, var(--cp-border) 70%, transparent); font-variant-numeric: tabular-nums; }
.cp-plan-table th:first-child, .cp-plan-table td:first-child { text-align: left; padding-left: 0; }
.cp-plan-table tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--cp-border); }
.cp-plan-table .cp-sub { display: block; }
.cp-plan-name { font-weight: 600; text-align: left; }
.cp-plan-sub { color: var(--cp-info, #2563eb) !important; font-weight: 600; }
.cp-plan-cols { margin-top: 4px; }
.cp-plan-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.cp-plan-h span { font-size: 12px; font-weight: 500; color: var(--cp-muted-fg); }
.cp-plan-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; border-top: 1px solid var(--cp-border); }
.cp-plan-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--cp-border) 70%, transparent); }
.cp-plan-who { min-width: 0; }
.cp-plan-who b { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.cp-plan-who small { font-size: 11.5px; color: var(--cp-muted-fg); }
@media (max-width: 760px) {
  .cp-plan { grid-template-columns: 1fr; }
  .cp-plan-main b { font-size: 26px; }
  .cp-plan-table thead { display: none; }
  .cp-plan-table, .cp-plan-table tbody, .cp-plan-table tfoot { display: block; }
  .cp-plan-table tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px 8px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--cp-border) 70%, transparent); }
  .cp-plan-table td { display: block; padding: 0; border: 0; text-align: left; }
  .cp-plan-table td:first-child { grid-column: 1 / -1; }
  .cp-plan-table td:nth-child(2)::before { content: "Today "; }
  .cp-plan-table td:nth-child(3)::before { content: "Done "; }
  .cp-plan-table td:nth-child(4)::before { content: "No-show "; }
  .cp-plan-table td:nth-child(5)::before { content: "Expected "; }
  .cp-plan-table td:nth-child(6)::before { content: "Tomorrow "; }
  .cp-plan-table td::before { display: block; font-size: 10px; color: var(--cp-muted-fg); text-transform: uppercase; letter-spacing: .04em; }
  .cp-plan-table td:first-child::before { content: none; }
}

/* ===== 2026-09-28: "Operations console" design (the user's reference), scoped to .ds.
 * Colours follow the app's theme tokens; the accents are the reference's. ===== */
.ds {
  --ds-card: var(--cp-card, #fff);
  --ds-ink: var(--cp-fg, #0c1222);
  --ds-muted: color-mix(in srgb, var(--ds-ink) 64%, var(--ds-card));
  --ds-muted-2: color-mix(in srgb, var(--ds-ink) 50%, var(--ds-card));
  --ds-line: color-mix(in srgb, var(--ds-ink) 8%, transparent);
  --ds-line-strong: color-mix(in srgb, var(--ds-ink) 13%, transparent);
  --ds-soft: color-mix(in srgb, var(--ds-ink) 4.5%, var(--ds-card));
  --ds-head: color-mix(in srgb, var(--ds-ink) 2.5%, var(--ds-card));
  --ds-accent: #2b3a8f; --ds-accent-soft: color-mix(in srgb, #2b3a8f 9%, var(--ds-card));
  --ds-green: #047857; --ds-green-soft: color-mix(in srgb, #047857 9%, var(--ds-card));
  --ds-amber: #b45309; --ds-amber-soft: color-mix(in srgb, #b45309 9%, var(--ds-card));
  --ds-red: #b91c1c; --ds-red-soft: color-mix(in srgb, #b91c1c 8%, var(--ds-card));
  --ds-radius: 16px;
  --ds-sh1: 0 1px 2px rgba(12,18,34,.03), 0 1px 1px rgba(12,18,34,.02);
  --ds-sh2: 0 1px 3px rgba(12,18,34,.04), 0 8px 28px rgba(12,18,34,.06);
  --ds-sh3: 0 2px 6px rgba(12,18,34,.05), 0 16px 44px rgba(12,18,34,.09);
  color: var(--ds-ink);
  font-size: 13.5px; line-height: 1.5; letter-spacing: -.005em;
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  display: block;
}
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds button { font: inherit; }
.ds-muted { color: var(--ds-muted-2); }
.ds-good { color: var(--ds-green); font-weight: 700; }
.ds-bad { color: var(--ds-red); font-weight: 700; }
.ds-strong { font-weight: 700; }
.ds-empty { margin: 0; padding: 18px 4px; text-align: center; font-size: 12.5px; color: var(--ds-muted-2); }
.ds-empty--left { text-align: left; padding: 4px 0; }

/* top bar */
.ds-topbar { margin: 0 0 22px; padding: 4px 0 16px; border-bottom: 1px solid var(--ds-line); }
.ds-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.ds-tb-left { min-width: 0; }
.ds-crumb { font-size: 11.5px; color: var(--ds-muted-2); font-weight: 500; letter-spacing: .02em; }
.ds-crumb b { color: var(--ds-muted); font-weight: 600; margin: 0 2px; }
.ds-crumb-link { padding: 0; border: 0; background: none; color: var(--ds-accent); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.ds-crumb-link:hover { text-decoration: underline; }
.ds h1 { font-size: 21px; font-weight: 650; margin: 2px 0 0; letter-spacing: -.025em; line-height: 1.2; }
.ds-pro { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 7px; background: var(--ds-ink); color: var(--ds-card); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; vertical-align: 3px; }
.ds-tb-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ds-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.ds-chip-live { background: var(--ds-green-soft); color: var(--ds-green); border-color: color-mix(in srgb, #047857 18%, transparent); }
.ds-chip-risk { background: var(--ds-amber-soft); color: var(--ds-amber); border-color: color-mix(in srgb, #b45309 18%, transparent); }
.ds-chip-plain { background: var(--ds-card); color: var(--ds-muted); border-color: var(--ds-line-strong); }
.ds-chip svg { width: 11px; height: 11px; }
.ds-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ds-pulse { animation: dsPulse 1.8s ease-in-out infinite; }
@keyframes dsPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ds-pulse { animation: none; } }
.ds-tb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ds-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--ds-line-strong); background: var(--ds-card); color: var(--ds-ink); cursor: pointer; transition: .16s ease; white-space: nowrap; box-shadow: var(--ds-sh1); }
.ds-btn:hover { border-color: color-mix(in srgb, var(--ds-ink) 20%, transparent); transform: translateY(-1px); box-shadow: var(--ds-sh2); }
.ds-btn svg { width: 13px; height: 13px; }
.ds-btn-primary { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-card); }

/* section headers + cards */
.ds-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 2px 12px; }
.ds-sec-title { font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.ds-sec-sub { font-size: 11.5px; color: var(--ds-muted-2); font-weight: 500; margin-top: 2px; }
.ds-card { background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); box-shadow: var(--ds-sh1); transition: box-shadow .25s ease; margin-bottom: 22px; min-width: 0; }
.ds-card:hover { box-shadow: var(--ds-sh2); }
.ds-g2 > .ds-card, .ds-g2b > .ds-card { margin-bottom: 0; }
.ds-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 18px 22px 16px; border-bottom: 1px solid var(--ds-line); }
.ds-card-h h3 { font-size: 13.5px; font-weight: 700; margin: 0; letter-spacing: -.015em; }
.ds-card-h p { font-size: 11.5px; color: var(--ds-muted-2); margin: 3px 0 0; font-weight: 500; max-width: 760px; }
.ds-count { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--ds-muted-2); }
.ds-card-b { padding: 22px; }
.ds-card-b--flush { padding: 0; }
.ds-card-b--chart { padding: 14px 18px 8px; }
.ds-card-tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ds-g2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-bottom: 22px; }
.ds-g2b { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; margin-bottom: 22px; align-items: start; }
.ds-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--ds-soft); border: 1px solid var(--ds-line); }
.ds-seg button { padding: 5px 11px; border: 0; border-radius: 7px; background: none; color: var(--ds-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.ds-seg button span { color: var(--ds-muted-2); font-weight: 600; margin-left: 2px; }
.ds-seg button[aria-pressed="true"] { background: var(--ds-card); color: var(--ds-ink); box-shadow: var(--ds-sh1); }
.ds-toolbar { margin: -8px 0 14px; }

/* hero */
.ds-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ds-hk { position: relative; overflow: hidden; min-width: 0; padding: 22px 22px 12px; background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); box-shadow: var(--ds-sh1); transition: .25s cubic-bezier(.4,0,.2,1); }
.ds-hk:hover { box-shadow: var(--ds-sh3); transform: translateY(-2px); border-color: var(--ds-line-strong); }
.ds-hk-lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .11em; }
.ds-badge { font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ds-b-blue { background: var(--ds-accent-soft); color: var(--ds-accent); }
.ds-b-green { background: var(--ds-green-soft); color: var(--ds-green); }
.ds-b-amber { background: var(--ds-amber-soft); color: var(--ds-amber); }
.ds-b-red { background: var(--ds-red-soft); color: var(--ds-red); }
.ds-hk-v { font-size: 40px; font-weight: 600; letter-spacing: -.045em; line-height: .98; font-variant-numeric: tabular-nums; }
.ds-hk-f { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11.5px; font-weight: 600; }
.ds-hk-n { color: var(--ds-muted-2); font-weight: 500; text-align: right; }
.ds-d-up { color: var(--ds-green); white-space: nowrap; }
.ds-d-dn { color: var(--ds-red); white-space: nowrap; }
.ds-d-fl { color: var(--ds-muted-2); white-space: nowrap; }
.ds-spark { display: block; width: 100%; height: 38px; margin: 6px 0 -4px; }
.ds-hk-health { background: linear-gradient(160deg, var(--ds-card) 0%, var(--ds-amber-soft) 100%); border-color: color-mix(in srgb, #b45309 16%, transparent); }
.ds-health { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.ds-health svg { flex: none; color: var(--ds-ink); }
.ds-health-copy b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ds-health-copy b small { font-size: 13px; font-weight: 500; color: var(--ds-muted-2); }
.ds-health-copy span { display: block; font-size: 11.5px; color: var(--ds-muted); margin-top: 4px; font-weight: 500; }

/* secondary strip */
.ds-sec { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 22px; background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); box-shadow: var(--ds-sh1); overflow: hidden; }
.ds-sk { padding: 16px 20px; border-right: 1px solid var(--ds-line); min-width: 0; }
.ds-sk:last-child { border-right: 0; }
.ds-sk-l { font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px; }
.ds-sk-v { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ds-sk-v small { font-size: 12px; color: var(--ds-muted-2); font-weight: 500; margin-left: 1px; }
.ds-sk-v.bad { color: var(--ds-red); }
.ds-sk-v.good { color: var(--ds-green); }
.ds-sk-f { font-size: 11px; color: var(--ds-muted-2); margin-top: 5px; font-weight: 500; }

/* funnel */
.ds-fstage-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.ds-fstage-name { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.ds-fstage-name small { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--ds-muted-2); }
.ds-fstage-cnt { font-size: 16px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ds-fstage-bar { height: 30px; background: var(--ds-soft); border-radius: 8px; overflow: hidden; }
.ds-fstage-bar i { display: block; height: 100%; border-radius: 8px; }
.ds-fb1 { background: linear-gradient(90deg, #3949a8, #2b3a8f); }
.ds-fb2 { background: linear-gradient(90deg, #5566c4, #3d4cae); }
.ds-fb4 { background: linear-gradient(90deg, #2fa477, #047857); }
.ds-fb5 { background: linear-gradient(90deg, #d99a4e, #b45309); }
.ds-fconn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0 8px 3px; font-size: 11.5px; font-weight: 600; }
.ds-fconn-line { width: 2px; height: 14px; background: var(--ds-line-strong); border-radius: 2px; margin-left: 12px; flex-shrink: 0; }
.ds-fc-conv { color: var(--ds-green); }
.ds-fc-drop { color: var(--ds-muted-2); font-weight: 500; }
.ds-fc-badge { margin-left: auto; background: var(--ds-red-soft); color: var(--ds-red); border: 1px solid color-mix(in srgb, #b91c1c 18%, transparent); border-radius: 6px; padding: 2px 8px; font-size: 10px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; text-transform: uppercase; }

/* where campaigns stand */
.ds-attr-bar { display: flex; height: 38px; border-radius: 9px; overflow: hidden; border: 1px solid var(--ds-line); }
.ds-attr-seg { display: flex; align-items: center; justify-content: center; min-width: 22px; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.ds-attr-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 16px; }
.ds-attr-item .k { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .07em; }
.ds-attr-item .k i { width: 8px; height: 8px; border-radius: 2px; }
.ds-attr-item .v { font-size: 17px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.ds-attr-item .v span { font-size: 11.5px; color: var(--ds-muted-2); font-weight: 500; margin-left: 3px; }
.ds-mini-h { font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.ds-reasons { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ds-line); }
.ds-reason { display: flex; align-items: center; gap: 11px; padding: 6px 0; }
.ds-reason-lbl { flex: 0 0 44%; min-width: 0; padding: 0; border: 0; background: none; color: var(--ds-ink); text-align: left; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ds-reason-lbl:hover { color: var(--ds-accent); text-decoration: underline; }
.ds-reason-track { flex: 1; height: 8px; background: var(--ds-soft); border-radius: 5px; overflow: hidden; }
.ds-reason-track i { display: block; height: 100%; border-radius: 5px; }
.ds-reason-val { flex: 0 0 auto; min-width: 96px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-reason-val span { color: var(--ds-muted-2); font-weight: 500; margin-left: 4px; font-size: 11px; }

/* chart */
.ds-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ds-muted); }
.ds-lg { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.ds-lg-bar { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(180deg, #93c5fd, #bfdbfe); border: 1px solid #93c5fd; }
.ds-lg-line { width: 16px; height: 2.5px; border-radius: 2px; background: var(--ds-green); }
.ds-lg-dash { width: 16px; border-top: 2px dashed #94a3b8; }
.ds-lg-band { width: 13px; height: 10px; border-radius: 3px; background: rgba(43,58,143,.09); border: 1px solid rgba(43,58,143,.15); }
.ds-chart { display: block; width: 100%; height: auto; }
.ds-chart .ds-grid { stroke: var(--ds-line); stroke-width: 1; }
.ds-chart .ds-axis { fill: var(--ds-muted-2); font-weight: 600; }
.ds-chart .ds-dotc { fill: var(--ds-card); }

/* target */
.ds-tg-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ds-tg-big { font-size: 38px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ds-tg-big small { font-size: 16px; color: var(--ds-muted-2); font-weight: 500; }
.ds-tg-sub { font-size: 12px; color: var(--ds-muted); }
.ds-tg-prog { position: relative; height: 42px; margin: 28px 0 8px; background: var(--ds-soft); border-radius: 10px; }
.ds-tg-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px 0 0 10px; background: linear-gradient(90deg, #3949a8, #2b3a8f); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-size: 12px; font-weight: 700; }
.ds-tg-forecast { position: absolute; top: -7px; bottom: -7px; width: 3px; background: var(--ds-amber); border-radius: 2px; }
.ds-tg-forecast::after { content: "Forecast"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: var(--ds-amber); white-space: nowrap; }
.ds-tg-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ds-muted-2); font-weight: 600; }
.ds-tg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ds-line); border: 1px solid var(--ds-line); border-radius: 11px; overflow: hidden; margin-top: 22px; }
.ds-tg-stat { background: var(--ds-card); padding: 14px 15px; }
.ds-tg-stat .k { font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.ds-tg-stat .v { font-size: 20px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ds-tg-stat .v small { font-size: 12px; font-weight: 500; color: var(--ds-muted-2); }
.ds-tg-stat .v.bad { color: var(--ds-red); }
.ds-banner { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 13px 15px; border-radius: 11px; background: var(--ds-amber-soft); border: 1px solid color-mix(in srgb, #b45309 20%, transparent); color: var(--ds-amber); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.ds-banner svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.ds-banner b { font-weight: 800; }

/* insights */
.ds-ins-list { display: grid; gap: 11px; }
.ds-ins { position: relative; overflow: hidden; padding: 16px 18px; border: 1px solid var(--ds-line); border-radius: 13px; background: var(--ds-card); transition: .22s cubic-bezier(.4,0,.2,1); }
.ds-ins:hover { box-shadow: var(--ds-sh3); transform: translateY(-2px); border-color: var(--ds-line-strong); }
.ds-ins::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; }
.ds-ins-crit::before { background: var(--ds-red); }
.ds-ins-warn::before { background: var(--ds-amber); }
.ds-ins-h { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 10px; }
.ds-ins-ico { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; margin-top: 1px; }
.ds-ins-crit .ds-ins-ico { background: var(--ds-red); }
.ds-ins-warn .ds-ins-ico { background: var(--ds-amber); }
.ds-ins-title { flex: 1; font-size: 13px; font-weight: 700; line-height: 1.45; letter-spacing: -.015em; }
.ds-ins-score { flex-shrink: 0; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; margin-top: 1px; }
.ds-ins-crit .ds-ins-score { background: var(--ds-red-soft); color: var(--ds-red); }
.ds-ins-warn .ds-ins-score { background: var(--ds-amber-soft); color: var(--ds-amber); }
.ds-ins-row { display: flex; gap: 12px; padding: 8px 0 8px 33px; border-top: 1px solid var(--ds-line); font-size: 12.5px; line-height: 1.55; }
.ds-ins-k { flex: 0 0 64px; padding-top: 2px; font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .06em; }
.ds-ins-v { min-width: 0; color: var(--ds-muted); overflow-wrap: anywhere; }
.ds-ins-v b { color: var(--ds-ink); font-weight: 700; }
.ds-ins-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0 0 33px; margin-top: 4px; border-top: 1px solid var(--ds-line); }
.ds-owner { font-size: 10.5px; font-weight: 700; font-style: normal; padding: 4px 10px; border-radius: 7px; background: var(--ds-soft); color: var(--ds-muted); letter-spacing: .02em; white-space: nowrap; }
.ds-ins-link { padding: 0; border: 0; background: none; color: var(--ds-accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.ds-ins-link:hover { text-decoration: underline; }

/* today & tomorrow */
.ds-plan { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.ds-plan-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--ds-line); border-radius: 13px; background: var(--ds-head); }
.ds-plan-v { font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ds-plan-v small { margin-left: 8px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--ds-muted-2); }
.ds-plan-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ds-line); border: 1px solid var(--ds-line); border-radius: 10px; overflow: hidden; }
.ds-plan-split > div { padding: 9px 12px; background: var(--ds-card); }
.ds-plan-split b { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-plan-split small { font-size: 11px; color: var(--ds-muted-2); }
.ds-plan-note { margin: auto 0 0; font-size: 12px; color: var(--ds-muted); }
#ds-plan .ds-tbl-wrap { border: 1px solid var(--ds-line); border-radius: 12px; }

/* tables */
.ds-tbl-wrap { overflow: auto; max-height: 460px; }
.ds-tbl-wrap--tall { max-height: 720px; }
.ds-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ds-tbl thead th { position: sticky; top: 0; z-index: 2; padding: 11px 14px; background: var(--ds-head); text-align: right; font-size: 10px; font-weight: 800; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--ds-line); white-space: nowrap; }
.ds-tbl thead th:first-child { text-align: left; }
.ds-tbl tbody td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--ds-line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-tbl tbody td:first-child { text-align: left; font-weight: 600; white-space: normal; min-width: 240px; max-width: 360px; }
.ds-tbl tbody tr { transition: background .12s; }
.ds-tbl tbody tr:hover { background: var(--ds-head); }
.ds-tbl-click tbody tr, .ds-tbl tbody tr[data-act] { cursor: pointer; }
.ds-tbl tfoot td { position: sticky; bottom: 0; padding: 12px 14px; text-align: right; font-weight: 700; font-size: 12px; background: var(--ds-head); border-top: 1.5px solid var(--ds-line-strong); font-variant-numeric: tabular-nums; }
.ds-tbl tfoot td:first-child { text-align: left; }
.ds-tbl tr.ds-today td { background: var(--ds-accent-soft); }
.ds-sub { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--ds-muted-2); }
.ds-flag-low { color: var(--ds-red); font-weight: 700; }
.ds-flag-ok { color: var(--ds-green); font-weight: 700; }
.ds-meter { display: inline-block; width: 48px; height: 6px; margin-right: 7px; vertical-align: middle; border-radius: 4px; background: var(--ds-soft); overflow: hidden; }
.ds-meter i { display: block; height: 100%; border-radius: 4px; background: var(--ds-accent); }
.ds-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--ds-card)); border: 1px solid color-mix(in srgb, var(--c) 20%, transparent); }
.ds-day-flag { display: inline-flex; align-items: center; margin-left: 7px; padding: 2px 6px; border-radius: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.ds-day-flag.above { background: var(--ds-green-soft); color: var(--ds-green); }
.ds-day-flag.below { background: var(--ds-red-soft); color: var(--ds-red); }
.ds-day-today { background: var(--ds-accent-soft); color: var(--ds-accent); }

/* Pro: area tiles */
.ds-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.ds-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 20px 20px 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-card); color: var(--ds-ink); text-align: left; cursor: pointer; box-shadow: var(--ds-sh1); overflow: hidden; transition: .22s cubic-bezier(.4,0,.2,1); }
.ds-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--t); }
.ds-tile:hover { box-shadow: var(--ds-sh3); transform: translateY(-2px); border-color: var(--ds-line-strong); }
.ds-tile-lbl { font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .1em; }
.ds-tile-v { font-size: 36px; font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--t); font-variant-numeric: tabular-nums; }
.ds-tile-v small { margin-left: 6px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--ds-muted-2); }
.ds-tile-f { font-size: 12px; font-weight: 600; line-height: 1.5; }
.ds-tile-blurb { font-size: 11.5px; color: var(--ds-muted-2); line-height: 1.45; }
.ds-tile-go { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--ds-accent); }

/* Pro: campaign briefs */
.ds-briefs { display: grid; gap: 14px; }
.ds-brief { position: relative; overflow: hidden; padding: 20px 22px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-card); box-shadow: var(--ds-sh1); }
.ds-brief::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ds-line-strong); }
.ds-brief-bad::before { background: var(--ds-red); }
.ds-brief-warn::before { background: var(--ds-amber); }
.ds-brief-good::before { background: var(--ds-green); }
.ds-brief-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.ds-brief-t { min-width: 0; }
.ds-brief-t h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ds-brief-figs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; margin: 16px 0; background: var(--ds-line); border: 1px solid var(--ds-line); border-radius: 12px; overflow: hidden; }
.ds-bf { padding: 12px 14px; background: var(--ds-card); min-width: 0; }
.ds-bf .k { font-size: 10px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.ds-bf .v { font-size: 19px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ds-bf .v small { font-size: 11.5px; font-weight: 500; color: var(--ds-muted-2); letter-spacing: 0; }
.ds-bf .v.bad { color: var(--ds-red); }
.ds-bf .v.warn { color: var(--ds-amber); }
.ds-bf .v.good { color: var(--ds-green); }
.ds-bf .s { margin-top: 4px; font-size: 11px; color: var(--ds-muted-2); line-height: 1.4; }
.ds-brief-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; }
.ds-issues, .ds-actions { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ds-issues li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; }
.ds-issues li i { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #94a3b8; }
.ds-issue-bad i { background: var(--ds-red) !important; }
.ds-issue-warn i { background: var(--ds-amber) !important; }
.ds-issues b { display: block; font-weight: 700; }
.ds-issues span { color: var(--ds-muted); }
.ds-actions { counter-reset: dsact; }
.ds-actions li { counter-increment: dsact; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; font-size: 12.5px; line-height: 1.5; }
.ds-actions li span { position: relative; padding-left: 26px; font-weight: 600; }
.ds-actions li span::before { content: counter(dsact); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px; background: var(--ds-accent-soft); color: var(--ds-accent); font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

@media (max-width: 1180px) {
  .ds-hero, .ds-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-brief-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .ds-g2, .ds-g2b { grid-template-columns: 1fr; }
  .ds-sec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-sk { border-bottom: 1px solid var(--ds-line); }
}
@media (max-width: 760px) {
  .ds-hero, .ds-tiles { grid-template-columns: 1fr; }
  .ds-hk-v { font-size: 34px; }
  .ds-card-h { padding: 16px; }
  .ds-card-b { padding: 16px; }
  .ds-card-b--flush { padding: 0; }
  .ds-plan { grid-template-columns: 1fr; }
  .ds-brief { padding: 16px; }
  .ds-brief-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-brief-cols { grid-template-columns: 1fr; }
  .ds-reason-lbl { flex-basis: 40%; }
  .ds-tbl tbody td:first-child { min-width: 180px; }
  .ds-tb-actions { width: 100%; }
}

/* "What do these figures mean?" */
.ds-help { margin: -8px 0 18px; border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-card); box-shadow: var(--ds-sh1); }
.ds-help summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 16px; cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.ds-help summary::-webkit-details-marker { display: none; }
.ds-help summary::after { content: "Show ▾"; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ds-accent); }
.ds-help[open] summary::after { content: "Hide ▴"; }
.ds-help-i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ds-accent-soft); color: var(--ds-accent); font-size: 12px; font-weight: 800; font-style: italic; }
.ds-help-sub { font-size: 12px; font-weight: 500; color: var(--ds-muted-2); }
.ds-help-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 28px; padding: 6px 16px 18px; border-top: 1px solid var(--ds-line); }
.ds-help h4 { margin: 12px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted-2); }
.ds-help dl { margin: 0; display: grid; gap: 8px; }
.ds-help dt { font-size: 12.5px; font-weight: 700; }
.ds-help dd { margin: 1px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ds-muted); }

.cp-plan-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cp-plan { margin-top: 14px; }
@media (max-width: 760px) { .cp-plan-cols { grid-template-columns: 1fr; } }

/* ===== 2026-09-28: "Operations console" design (the user's reference), scoped to .ds.
 * Colours follow the app's theme tokens; the accents are the reference's. ===== */
.ds {
  --ds-card: var(--cp-card, #fff);
  --ds-ink: var(--cp-fg, #0c1222);
  --ds-muted: color-mix(in srgb, var(--ds-ink) 64%, var(--ds-card));
  --ds-muted-2: color-mix(in srgb, var(--ds-ink) 50%, var(--ds-card));
  --ds-line: color-mix(in srgb, var(--ds-ink) 8%, transparent);
  --ds-line-strong: color-mix(in srgb, var(--ds-ink) 13%, transparent);
  --ds-soft: color-mix(in srgb, var(--ds-ink) 4.5%, var(--ds-card));
  --ds-head: color-mix(in srgb, var(--ds-ink) 2.5%, var(--ds-card));
  --ds-accent: #2b3a8f; --ds-accent-soft: color-mix(in srgb, #2b3a8f 9%, var(--ds-card));
  --ds-green: #047857; --ds-green-soft: color-mix(in srgb, #047857 9%, var(--ds-card));
  --ds-amber: #b45309; --ds-amber-soft: color-mix(in srgb, #b45309 9%, var(--ds-card));
  --ds-red: #b91c1c; --ds-red-soft: color-mix(in srgb, #b91c1c 8%, var(--ds-card));
  --ds-radius: 16px;
  --ds-sh1: 0 1px 2px rgba(12,18,34,.03), 0 1px 1px rgba(12,18,34,.02);
  --ds-sh2: 0 1px 3px rgba(12,18,34,.04), 0 8px 28px rgba(12,18,34,.06);
  --ds-sh3: 0 2px 6px rgba(12,18,34,.05), 0 16px 44px rgba(12,18,34,.09);
  color: var(--ds-ink);
  font-size: 13.5px; line-height: 1.5; letter-spacing: -.005em;
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  display: block;
}
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds button { font: inherit; }
.ds-muted { color: var(--ds-muted-2); }
.ds-good { color: var(--ds-green); font-weight: 700; }
.ds-bad { color: var(--ds-red); font-weight: 700; }
.ds-strong { font-weight: 700; }
.ds-empty { margin: 0; padding: 18px 4px; text-align: center; font-size: 12.5px; color: var(--ds-muted-2); }
.ds-empty--left { text-align: left; padding: 4px 0; }

/* top bar */
.ds-topbar { margin: 0 0 22px; padding: 4px 0 16px; border-bottom: 1px solid var(--ds-line); }
.ds-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.ds-tb-left { min-width: 0; }
.ds-crumb { font-size: 11.5px; color: var(--ds-muted-2); font-weight: 500; letter-spacing: .02em; }
.ds-crumb b { color: var(--ds-muted); font-weight: 600; margin: 0 2px; }
.ds-crumb-link { padding: 0; border: 0; background: none; color: var(--ds-accent); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.ds-crumb-link:hover { text-decoration: underline; }
.ds h1 { font-size: 21px; font-weight: 650; margin: 2px 0 0; letter-spacing: -.025em; line-height: 1.2; }
.ds-pro { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 7px; background: var(--ds-ink); color: var(--ds-card); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; vertical-align: 3px; }
.ds-tb-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ds-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.ds-chip-live { background: var(--ds-green-soft); color: var(--ds-green); border-color: color-mix(in srgb, #047857 18%, transparent); }
.ds-chip-risk { background: var(--ds-amber-soft); color: var(--ds-amber); border-color: color-mix(in srgb, #b45309 18%, transparent); }
.ds-chip-plain { background: var(--ds-card); color: var(--ds-muted); border-color: var(--ds-line-strong); }
.ds-chip svg { width: 11px; height: 11px; }
.ds-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ds-pulse { animation: dsPulse 1.8s ease-in-out infinite; }
@keyframes dsPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ds-pulse { animation: none; } }
.ds-tb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ds-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--ds-line-strong); background: var(--ds-card); color: var(--ds-ink); cursor: pointer; transition: .16s ease; white-space: nowrap; box-shadow: var(--ds-sh1); }
.ds-btn:hover { border-color: color-mix(in srgb, var(--ds-ink) 20%, transparent); transform: translateY(-1px); box-shadow: var(--ds-sh2); }
.ds-btn svg { width: 13px; height: 13px; }
.ds-btn-primary { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-card); }

/* section headers + cards */
.ds-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 2px 12px; }
.ds-sec-title { font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.ds-sec-sub { font-size: 11.5px; color: var(--ds-muted-2); font-weight: 500; margin-top: 2px; }
.ds-card { background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); box-shadow: var(--ds-sh1); transition: box-shadow .25s ease; margin-bottom: 22px; min-width: 0; }
.ds-card:hover { box-shadow: var(--ds-sh2); }
.ds-g2 > .ds-card, .ds-g2b > .ds-card { margin-bottom: 0; }
.ds-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 18px 22px 16px; border-bottom: 1px solid var(--ds-line); }
.ds-card-h h3 { font-size: 13.5px; font-weight: 700; margin: 0; letter-spacing: -.015em; }
.ds-card-h p { font-size: 11.5px; color: var(--ds-muted-2); margin: 3px 0 0; font-weight: 500; max-width: 760px; }
.ds-count { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--ds-muted-2); }
.ds-card-b { padding: 22px; }
.ds-card-b--flush { padding: 0; }
.ds-card-b--chart { padding: 14px 18px 8px; }
.ds-card-tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ds-g2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-bottom: 22px; }
.ds-g2b { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; margin-bottom: 22px; align-items: start; }
.ds-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--ds-soft); border: 1px solid var(--ds-line); }
.ds-seg button { padding: 5px 11px; border: 0; border-radius: 7px; background: none; color: var(--ds-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.ds-seg button span { color: var(--ds-muted-2); font-weight: 600; margin-left: 2px; }
.ds-seg button[aria-pressed="true"] { background: var(--ds-card); color: var(--ds-ink); box-shadow: var(--ds-sh1); }
.ds-toolbar { margin: -8px 0 14px; }

/* hero */
.ds-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ds-hk { position: relative; overflow: hidden; min-width: 0; padding: 22px 22px 12px; background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); box-shadow: var(--ds-sh1); transition: .25s cubic-bezier(.4,0,.2,1); }
.ds-hk:hover { box-shadow: var(--ds-sh3); transform: translateY(-2px); border-color: var(--ds-line-strong); }
.ds-hk-lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .11em; }
.ds-badge { font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ds-b-blue { background: var(--ds-accent-soft); color: var(--ds-accent); }
.ds-b-green { background: var(--ds-green-soft); color: var(--ds-green); }
.ds-b-amber { background: var(--ds-amber-soft); color: var(--ds-amber); }
.ds-b-red { background: var(--ds-red-soft); color: var(--ds-red); }
.ds-hk-v { font-size: 40px; font-weight: 600; letter-spacing: -.045em; line-height: .98; font-variant-numeric: tabular-nums; }
.ds-hk-f { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11.5px; font-weight: 600; }
.ds-hk-n { color: var(--ds-muted-2); font-weight: 500; text-align: right; }
.ds-d-up { color: var(--ds-green); white-space: nowrap; }
.ds-d-dn { color: var(--ds-red); white-space: nowrap; }
.ds-d-fl { color: var(--ds-muted-2); white-space: nowrap; }
.ds-spark { display: block; width: 100%; height: 38px; margin: 6px 0 -4px; }
.ds-hk-health { background: linear-gradient(160deg, var(--ds-card) 0%, var(--ds-amber-soft) 100%); border-color: color-mix(in srgb, #b45309 16%, transparent); }
.ds-health { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.ds-health svg { flex: none; color: var(--ds-ink); }
.ds-health-copy b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ds-health-copy b small { font-size: 13px; font-weight: 500; color: var(--ds-muted-2); }
.ds-health-copy span { display: block; font-size: 11.5px; color: var(--ds-muted); margin-top: 4px; font-weight: 500; }

/* secondary strip */
.ds-sec { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 22px; background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-radius); box-shadow: var(--ds-sh1); overflow: hidden; }
.ds-sk { padding: 16px 20px; border-right: 1px solid var(--ds-line); min-width: 0; }
.ds-sk:last-child { border-right: 0; }
.ds-sk-l { font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px; }
.ds-sk-v { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ds-sk-v small { font-size: 12px; color: var(--ds-muted-2); font-weight: 500; margin-left: 1px; }
.ds-sk-v.bad { color: var(--ds-red); }
.ds-sk-v.good { color: var(--ds-green); }
.ds-sk-f { font-size: 11px; color: var(--ds-muted-2); margin-top: 5px; font-weight: 500; }

/* funnel */
.ds-fstage-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.ds-fstage-name { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.ds-fstage-name small { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--ds-muted-2); }
.ds-fstage-cnt { font-size: 16px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ds-fstage-bar { height: 30px; background: var(--ds-soft); border-radius: 8px; overflow: hidden; }
.ds-fstage-bar i { display: block; height: 100%; border-radius: 8px; }
.ds-fb1 { background: linear-gradient(90deg, #3949a8, #2b3a8f); }
.ds-fb2 { background: linear-gradient(90deg, #5566c4, #3d4cae); }
.ds-fb4 { background: linear-gradient(90deg, #2fa477, #047857); }
.ds-fb5 { background: linear-gradient(90deg, #d99a4e, #b45309); }
.ds-fconn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0 8px 3px; font-size: 11.5px; font-weight: 600; }
.ds-fconn-line { width: 2px; height: 14px; background: var(--ds-line-strong); border-radius: 2px; margin-left: 12px; flex-shrink: 0; }
.ds-fc-conv { color: var(--ds-green); }
.ds-fc-drop { color: var(--ds-muted-2); font-weight: 500; }
.ds-fc-badge { margin-left: auto; background: var(--ds-red-soft); color: var(--ds-red); border: 1px solid color-mix(in srgb, #b91c1c 18%, transparent); border-radius: 6px; padding: 2px 8px; font-size: 10px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; text-transform: uppercase; }

/* where campaigns stand */
.ds-attr-bar { display: flex; height: 38px; border-radius: 9px; overflow: hidden; border: 1px solid var(--ds-line); }
.ds-attr-seg { display: flex; align-items: center; justify-content: center; min-width: 22px; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.ds-attr-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 16px; }
.ds-attr-item .k { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .07em; }
.ds-attr-item .k i { width: 8px; height: 8px; border-radius: 2px; }
.ds-attr-item .v { font-size: 17px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.ds-attr-item .v span { font-size: 11.5px; color: var(--ds-muted-2); font-weight: 500; margin-left: 3px; }
.ds-mini-h { font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.ds-reasons { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ds-line); }
.ds-reason { display: flex; align-items: center; gap: 11px; padding: 6px 0; }
.ds-reason-lbl { flex: 0 0 44%; min-width: 0; padding: 0; border: 0; background: none; color: var(--ds-ink); text-align: left; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ds-reason-lbl:hover { color: var(--ds-accent); text-decoration: underline; }
.ds-reason-track { flex: 1; height: 8px; background: var(--ds-soft); border-radius: 5px; overflow: hidden; }
.ds-reason-track i { display: block; height: 100%; border-radius: 5px; }
.ds-reason-val { flex: 0 0 auto; min-width: 96px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-reason-val span { color: var(--ds-muted-2); font-weight: 500; margin-left: 4px; font-size: 11px; }

/* chart */
.ds-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ds-muted); }
.ds-lg { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.ds-lg-bar { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(180deg, #93c5fd, #bfdbfe); border: 1px solid #93c5fd; }
.ds-lg-line { width: 16px; height: 2.5px; border-radius: 2px; background: var(--ds-green); }
.ds-lg-dash { width: 16px; border-top: 2px dashed #94a3b8; }
.ds-lg-band { width: 13px; height: 10px; border-radius: 3px; background: rgba(43,58,143,.09); border: 1px solid rgba(43,58,143,.15); }
.ds-chart { display: block; width: 100%; height: auto; }
.ds-chart .ds-grid { stroke: var(--ds-line); stroke-width: 1; }
.ds-chart .ds-axis { fill: var(--ds-muted-2); font-weight: 600; }
.ds-chart .ds-dotc { fill: var(--ds-card); }

/* target */
.ds-tg-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ds-tg-big { font-size: 38px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ds-tg-big small { font-size: 16px; color: var(--ds-muted-2); font-weight: 500; }
.ds-tg-sub { font-size: 12px; color: var(--ds-muted); }
.ds-tg-prog { position: relative; height: 42px; margin: 28px 0 8px; background: var(--ds-soft); border-radius: 10px; }
.ds-tg-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px 0 0 10px; background: linear-gradient(90deg, #3949a8, #2b3a8f); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-size: 12px; font-weight: 700; }
.ds-tg-forecast { position: absolute; top: -7px; bottom: -7px; width: 3px; background: var(--ds-amber); border-radius: 2px; }
.ds-tg-forecast::after { content: "Forecast"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: var(--ds-amber); white-space: nowrap; }
.ds-tg-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ds-muted-2); font-weight: 600; }
.ds-tg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ds-line); border: 1px solid var(--ds-line); border-radius: 11px; overflow: hidden; margin-top: 22px; }
.ds-tg-stat { background: var(--ds-card); padding: 14px 15px; }
.ds-tg-stat .k { font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.ds-tg-stat .v { font-size: 20px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ds-tg-stat .v small { font-size: 12px; font-weight: 500; color: var(--ds-muted-2); }
.ds-tg-stat .v.bad { color: var(--ds-red); }
.ds-banner { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 13px 15px; border-radius: 11px; background: var(--ds-amber-soft); border: 1px solid color-mix(in srgb, #b45309 20%, transparent); color: var(--ds-amber); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.ds-banner svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.ds-banner b { font-weight: 800; }

/* insights */
.ds-ins-list { display: grid; gap: 11px; }
.ds-ins { position: relative; overflow: hidden; padding: 16px 18px; border: 1px solid var(--ds-line); border-radius: 13px; background: var(--ds-card); transition: .22s cubic-bezier(.4,0,.2,1); }
.ds-ins:hover { box-shadow: var(--ds-sh3); transform: translateY(-2px); border-color: var(--ds-line-strong); }
.ds-ins::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; }
.ds-ins-crit::before { background: var(--ds-red); }
.ds-ins-warn::before { background: var(--ds-amber); }
.ds-ins-h { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 10px; }
.ds-ins-ico { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; margin-top: 1px; }
.ds-ins-crit .ds-ins-ico { background: var(--ds-red); }
.ds-ins-warn .ds-ins-ico { background: var(--ds-amber); }
.ds-ins-title { flex: 1; font-size: 13px; font-weight: 700; line-height: 1.45; letter-spacing: -.015em; }
.ds-ins-score { flex-shrink: 0; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; margin-top: 1px; }
.ds-ins-crit .ds-ins-score { background: var(--ds-red-soft); color: var(--ds-red); }
.ds-ins-warn .ds-ins-score { background: var(--ds-amber-soft); color: var(--ds-amber); }
.ds-ins-row { display: flex; gap: 12px; padding: 8px 0 8px 33px; border-top: 1px solid var(--ds-line); font-size: 12.5px; line-height: 1.55; }
.ds-ins-k { flex: 0 0 64px; padding-top: 2px; font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .06em; }
.ds-ins-v { min-width: 0; color: var(--ds-muted); overflow-wrap: anywhere; }
.ds-ins-v b { color: var(--ds-ink); font-weight: 700; }
.ds-ins-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0 0 33px; margin-top: 4px; border-top: 1px solid var(--ds-line); }
.ds-owner { font-size: 10.5px; font-weight: 700; font-style: normal; padding: 4px 10px; border-radius: 7px; background: var(--ds-soft); color: var(--ds-muted); letter-spacing: .02em; white-space: nowrap; }
.ds-ins-link { padding: 0; border: 0; background: none; color: var(--ds-accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.ds-ins-link:hover { text-decoration: underline; }

/* today & tomorrow */
.ds-plan { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.ds-plan-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--ds-line); border-radius: 13px; background: var(--ds-head); }
.ds-plan-v { font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ds-plan-v small { margin-left: 8px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--ds-muted-2); }
.ds-plan-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ds-line); border: 1px solid var(--ds-line); border-radius: 10px; overflow: hidden; }
.ds-plan-split > div { padding: 9px 12px; background: var(--ds-card); }
.ds-plan-split b { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-plan-split small { font-size: 11px; color: var(--ds-muted-2); }
.ds-plan-note { margin: auto 0 0; font-size: 12px; color: var(--ds-muted); }
#ds-plan .ds-tbl-wrap { border: 1px solid var(--ds-line); border-radius: 12px; }

/* tables */
.ds-tbl-wrap { overflow: auto; max-height: 460px; }
.ds-tbl-wrap--tall { max-height: 720px; }
.ds-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ds-tbl thead th { position: sticky; top: 0; z-index: 2; padding: 11px 14px; background: var(--ds-head); text-align: right; font-size: 10px; font-weight: 800; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--ds-line); white-space: nowrap; }
.ds-tbl thead th:first-child { text-align: left; }
.ds-tbl tbody td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--ds-line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-tbl tbody td:first-child { text-align: left; font-weight: 600; white-space: normal; min-width: 240px; max-width: 360px; }
.ds-tbl tbody tr { transition: background .12s; }
.ds-tbl tbody tr:hover { background: var(--ds-head); }
.ds-tbl-click tbody tr, .ds-tbl tbody tr[data-act] { cursor: pointer; }
.ds-tbl tfoot td { position: sticky; bottom: 0; padding: 12px 14px; text-align: right; font-weight: 700; font-size: 12px; background: var(--ds-head); border-top: 1.5px solid var(--ds-line-strong); font-variant-numeric: tabular-nums; }
.ds-tbl tfoot td:first-child { text-align: left; }
.ds-tbl tr.ds-today td { background: var(--ds-accent-soft); }
.ds-sub { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--ds-muted-2); }
.ds-flag-low { color: var(--ds-red); font-weight: 700; }
.ds-flag-ok { color: var(--ds-green); font-weight: 700; }
.ds-meter { display: inline-block; width: 48px; height: 6px; margin-right: 7px; vertical-align: middle; border-radius: 4px; background: var(--ds-soft); overflow: hidden; }
.ds-meter i { display: block; height: 100%; border-radius: 4px; background: var(--ds-accent); }
.ds-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--ds-card)); border: 1px solid color-mix(in srgb, var(--c) 20%, transparent); }
.ds-day-flag { display: inline-flex; align-items: center; margin-left: 7px; padding: 2px 6px; border-radius: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.ds-day-flag.above { background: var(--ds-green-soft); color: var(--ds-green); }
.ds-day-flag.below { background: var(--ds-red-soft); color: var(--ds-red); }
.ds-day-today { background: var(--ds-accent-soft); color: var(--ds-accent); }

/* Pro: area tiles */
.ds-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.ds-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 20px 20px 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-card); color: var(--ds-ink); text-align: left; cursor: pointer; box-shadow: var(--ds-sh1); overflow: hidden; transition: .22s cubic-bezier(.4,0,.2,1); }
.ds-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--t); }
.ds-tile:hover { box-shadow: var(--ds-sh3); transform: translateY(-2px); border-color: var(--ds-line-strong); }
.ds-tile-lbl { font-size: 10.5px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .1em; }
.ds-tile-v { font-size: 36px; font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--t); font-variant-numeric: tabular-nums; }
.ds-tile-v small { margin-left: 6px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--ds-muted-2); }
.ds-tile-f { font-size: 12px; font-weight: 600; line-height: 1.5; }
.ds-tile-blurb { font-size: 11.5px; color: var(--ds-muted-2); line-height: 1.45; }
.ds-tile-go { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--ds-accent); }

/* Pro: campaign briefs */
.ds-briefs { display: grid; gap: 14px; }
.ds-brief { position: relative; overflow: hidden; padding: 20px 22px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-card); box-shadow: var(--ds-sh1); }
.ds-brief::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ds-line-strong); }
.ds-brief-bad::before { background: var(--ds-red); }
.ds-brief-warn::before { background: var(--ds-amber); }
.ds-brief-good::before { background: var(--ds-green); }
.ds-brief-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.ds-brief-t { min-width: 0; }
.ds-brief-t h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ds-brief-figs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; margin: 16px 0; background: var(--ds-line); border: 1px solid var(--ds-line); border-radius: 12px; overflow: hidden; }
.ds-bf { padding: 12px 14px; background: var(--ds-card); min-width: 0; }
.ds-bf .k { font-size: 10px; font-weight: 700; color: var(--ds-muted-2); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.ds-bf .v { font-size: 19px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ds-bf .v small { font-size: 11.5px; font-weight: 500; color: var(--ds-muted-2); letter-spacing: 0; }
.ds-bf .v.bad { color: var(--ds-red); }
.ds-bf .v.warn { color: var(--ds-amber); }
.ds-bf .v.good { color: var(--ds-green); }
.ds-bf .s { margin-top: 4px; font-size: 11px; color: var(--ds-muted-2); line-height: 1.4; }
.ds-brief-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; }
.ds-issues, .ds-actions { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ds-issues li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; }
.ds-issues li i { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #94a3b8; }
.ds-issue-bad i { background: var(--ds-red) !important; }
.ds-issue-warn i { background: var(--ds-amber) !important; }
.ds-issues b { display: block; font-weight: 700; }
.ds-issues span { color: var(--ds-muted); }
.ds-actions { counter-reset: dsact; }
.ds-actions li { counter-increment: dsact; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; font-size: 12.5px; line-height: 1.5; }
.ds-actions li span { position: relative; padding-left: 26px; font-weight: 600; }
.ds-actions li span::before { content: counter(dsact); position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px; background: var(--ds-accent-soft); color: var(--ds-accent); font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

@media (max-width: 1180px) {
  .ds-hero, .ds-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-brief-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .ds-g2, .ds-g2b { grid-template-columns: 1fr; }
  .ds-sec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-sk { border-bottom: 1px solid var(--ds-line); }
}
@media (max-width: 760px) {
  .ds-hero, .ds-tiles { grid-template-columns: 1fr; }
  .ds-hk-v { font-size: 34px; }
  .ds-card-h { padding: 16px; }
  .ds-card-b { padding: 16px; }
  .ds-card-b--flush { padding: 0; }
  .ds-plan { grid-template-columns: 1fr; }
  .ds-brief { padding: 16px; }
  .ds-brief-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-brief-cols { grid-template-columns: 1fr; }
  .ds-reason-lbl { flex-basis: 40%; }
  .ds-tbl tbody td:first-child { min-width: 180px; }
  .ds-tb-actions { width: 100%; }
}

/* "What do these figures mean?" */
.ds-help { margin: -8px 0 18px; border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-card); box-shadow: var(--ds-sh1); }
.ds-help summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 16px; cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.ds-help summary::-webkit-details-marker { display: none; }
.ds-help summary::after { content: "Show ▾"; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ds-accent); }
.ds-help[open] summary::after { content: "Hide ▴"; }
.ds-help-i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ds-accent-soft); color: var(--ds-accent); font-size: 12px; font-weight: 800; font-style: italic; }
.ds-help-sub { font-size: 12px; font-weight: 500; color: var(--ds-muted-2); }
.ds-help-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 28px; padding: 6px 16px 18px; border-top: 1px solid var(--ds-line); }
.ds-help h4 { margin: 12px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted-2); }
.ds-help dl { margin: 0; display: grid; gap: 8px; }
.ds-help dt { font-size: 12.5px; font-weight: 700; }
.ds-help dd { margin: 1px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ds-muted); }
