:root {
  color-scheme: dark;
  --bg-deep: #020d24;
  --bg: #04183d;
  --brand-blue: #063b92;
  --brand-blue-light: #2858a4;
  --surface: #071d45;
  --surface-soft: #0a2555;
  --surface-raised: #0d2c63;
  --line: rgb(151 180 226 / 0.18);
  --line-strong: rgb(164 191 233 / 0.32);
  --text: #f4f7fc;
  --text-soft: #d7e1f1;
  --muted: #91a7c8;
  --accent: #ff8a1c;
  --accent-strong: #ff9c3b;
  --accent-soft: #ffc27d;
  --radius: 12px;
  --control-radius: 8px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg-deep); }

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -8%, rgb(42 89 166 / 0.42), transparent 30rem),
    linear-gradient(145deg, var(--bg-deep) 0%, var(--bg) 48%, #032256 100%);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgb(136 170 221 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(136 170 221 / 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

button, select, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.dashboard-shell {
  width: min(1780px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 34px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 92px;
  padding: 19px 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(100deg, rgb(5 45 109 / 0.98), rgb(6 31 72 / 0.96) 62%, rgb(4 24 58 / 0.98)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.topbar::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent));
}

.brand-block {
  position: relative;
  min-width: 0;
  padding-left: 18px;
}

.brand-block::before {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 4px;
  content: "";
  border-radius: 2px;
  background: var(--accent);
}

.brand-kicker, .section-label {
  margin: 0 0 7px;
  color: var(--accent-soft);
  font: 650 10px/1.2 var(--mono);
  letter-spacing: 0.14em;
}

.title-row { display: flex; align-items: center; gap: 14px; }
h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 2.2vw, 38px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.045em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgb(2 16 42 / 0.45);
  font-size: 11px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.status-badge.is-live .status-dot {
  background: var(--text);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.10);
}

.topbar-actions { display: flex; align-items: center; gap: 22px; }
.freshness-block { display: grid; gap: 4px; min-width: 78px; }
.freshness-block span { color: var(--muted); font-size: 10px; }
.freshness-block strong { color: var(--text); font: 650 13px/1 var(--mono); }

.segment:active { transform: translateY(1px); }

.control-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgb(4 22 54 / 0.88);
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgb(2 15 38 / 0.55);
}

.segment {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.segment:hover { color: var(--text-soft); }
.segment.is-active { color: #1c1309; background: var(--accent); font-weight: 700; }

.select-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.select-control select {
  min-height: 36px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--text-soft);
  background: #061b40;
}

.date-filter {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: #061b40;
}

.filter-label {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.date-granularity select {
  min-height: 34px;
  padding: 0 28px 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--text-soft);
  background: #08214d;
  font-size: 11px;
  font-weight: 700;
}
.date-granularity select option { font-size: 11px; }

.date-range-fields { display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; color: var(--muted); font: 520 10px var(--mono); }
.date-range-fields input { width: 112px; min-height: 30px; padding: 0 24px 0 0; border: 0; outline: 0; color: var(--text); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffc27d' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") no-repeat right center; font: 600 11px var(--mono); cursor: pointer; }
.date-apply-button { align-self: stretch; padding: 0 12px; border: 0; border-left: 1px solid var(--line); color: #1a1208; background: var(--accent); cursor: pointer; font-size: 11px; font-weight: 750; }
.date-apply-button:hover { background: var(--accent-strong); }

.calendar-popover {
  position: fixed;
  z-index: 100;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #061b40;
  box-shadow: 0 18px 48px rgb(0 7 24 / 0.48), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.calendar-popover[hidden] { display: none; }
.calendar-header { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; margin-bottom: 10px; }
.calendar-header strong { color: var(--text); text-align: center; font-size: 13px; }
.calendar-header button { width: 34px; height: 32px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent-soft); background: #08214d; cursor: pointer; font-size: 20px; }
.calendar-header button:hover { border-color: var(--accent); background: var(--surface-raised); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-weekdays { margin-bottom: 5px; color: var(--muted); font-size: 10px; text-align: center; }
.calendar-grid button { min-width: 0; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 7px; color: var(--text-soft); background: transparent; cursor: pointer; font: 600 11px var(--mono); }
.calendar-grid button:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.calendar-grid button.is-selected { border-color: var(--accent); color: #1a1208; background: var(--accent); }
.calendar-grid button:disabled { color: #526888; cursor: not-allowed; opacity: 0.52; }
.calendar-blank { height: 32px; }
.calendar-month-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
.calendar-month-grid button { height: 38px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.update-note {
  margin: 0 0 0 auto;
  color: var(--muted);
  font: 500 11px/1.4 var(--mono);
}

.hero-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.65fr);
  gap: 40px;
  align-items: end;
  margin: 18px 0 0;
  padding: 28px 30px 27px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgb(8 51 120 / 0.92), rgb(5 28 67 / 0.95) 62%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.hero-summary::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 330px;
  height: 220px;
  content: "";
  border: 46px solid rgb(255 138 28 / 0.08);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}

.hero-summary h2 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-bottom: 10px;
  font-size: clamp(22px, 1.7vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.summary-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.insight-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.insight-card { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgb(3 23 58 / 0.45); }
.insight-card h3 { margin: 0 0 8px; color: var(--text); font-size: 11px; letter-spacing: 0.02em; }
.insight-card ul { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; }
.insight-card li { position: relative; padding-left: 10px; color: var(--text-soft); font-size: 10px; line-height: 1.55; }
.insight-card li::before { position: absolute; top: 0.62em; left: 0; width: 4px; height: 4px; content: ""; border-radius: 50%; background: var(--muted); }
.insight-card.highlight { border-color: rgb(111 193 159 / 0.34); }
.insight-card.highlight h3 { color: #8fe0bd; }
.insight-card.highlight li::before { background: #68d1a2; }
.insight-card.weakness { border-color: rgb(255 194 125 / 0.3); }
.insight-card.weakness h3 { color: var(--accent-soft); }
.insight-card.weakness li::before { background: var(--accent); }
.insight-card.risk { border-color: rgb(255 138 28 / 0.42); }
.insight-card.risk h3 { color: #ffad59; }
.insight-card.risk li::before { background: #ff8a1c; }

.summary-context {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgb(3 23 58 / 0.45);
}

.summary-context h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.summary-context ul {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.summary-context li {
  position: relative;
  padding-left: 10px;
  color: var(--text-soft);
  font: 500 10px/1.55 var(--mono);
}

.summary-context li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: var(--muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.08fr 1.28fr repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgb(5 25 59 / 0.76);
}

.kpi-card {
  position: relative;
  min-width: 0;
  min-height: 118px;
  padding: 19px 17px 17px;
  border-right: 1px solid var(--line);
}

.kpi-card:first-child {
  background: linear-gradient(155deg, rgb(17 69 151 / 0.70), rgb(7 31 72 / 0.25));
}

.kpi-card:first-child::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--accent);
}

.kpi-card:last-child { border-right: 0; }
.kpi-label { margin-bottom: 15px; color: var(--muted); font-size: 11px; }
.kpi-value { margin-bottom: 10px; font: 680 clamp(23px, 1.8vw, 32px)/1 var(--mono); letter-spacing: -0.055em; white-space: nowrap; }
.kpi-card:first-child .kpi-value { color: var(--accent-soft); }
.kpi-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.kpi-delta { color: var(--text-soft); font-family: var(--mono); }
.kpi-delta.is-negative, .negative { color: var(--accent-soft); }
.kpi-skeleton { height: 118px; border-right: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.05), transparent); background-size: 220% 100%; }

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(310px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(8 33 76 / 0.90), rgb(4 22 53 / 0.90));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.045);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgb(10 38 84 / 0.35);
}

.panel-heading h2 { margin-bottom: 5px; font-size: 15px; font-weight: 680; letter-spacing: -0.02em; }
.panel-heading p { margin-bottom: 0; color: var(--muted); font-size: 10px; }

.chart-legend { display: flex; gap: 15px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-line { width: 20px; height: 2px; background: var(--accent); }
.legend-line.profit { background: #d7e3f7; }

.trend-chart { min-height: 308px; padding: 14px 14px 8px; overflow: hidden; }
.trend-chart svg { display: block; width: 100%; height: 282px; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis-label { fill: var(--muted); font: 10px var(--mono); }
.performance-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.profit-line { fill: none; stroke: #d7e3f7; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-point-performance { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.chart-point-profit { fill: var(--surface); stroke: #d7e3f7; stroke-width: 2; }
.provisional-zone { fill: rgb(255 138 28 / 0.055); }
.provisional-label { fill: var(--accent-soft); font: 10px var(--sans); }

.alert-list { padding: 4px 16px 11px; }
.alert-item { position: relative; padding: 14px 0 14px 12px; border-bottom: 1px solid var(--line); }
.alert-item::before { position: absolute; top: 18px; bottom: 18px; left: 0; width: 2px; content: ""; background: var(--accent); opacity: 0.75; }
.alert-item.notice::before { background: var(--text-soft); opacity: 0.36; }
.alert-item:last-child { border-bottom: 0; }
.alert-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.alert-title { margin: 0; font-size: 12px; font-weight: 650; }
.alert-level { color: var(--accent-soft); font: 650 9px var(--mono); }
.alert-item.notice .alert-level { color: var(--text-soft); }
.alert-detail { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.channel-panel { margin-top: 14px; }
.channel-count { color: var(--accent-soft); font: 650 11px var(--mono); }
.contribution-actions { display: flex; align-items: center; gap: 13px; }
.dimension-control .segment { min-height: 28px; }
.channel-table-wrap { max-height: 510px; overflow: auto; }
.channel-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.channel-table th, .channel-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.channel-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #071d45; font-size: 10px; font-weight: 550; }
.channel-table td { font: 520 11px var(--mono); }
.channel-table th:first-child, .channel-table td:first-child { text-align: left; }
.channel-table tbody tr { transition: background 140ms ease; }
.channel-table tbody tr:hover { background: rgb(24 68 137 / 0.18); }
.channel-table tbody tr:last-child td { border-bottom: 0; }
.channel-name { display: grid; gap: 3px; font-family: var(--sans); }
.channel-name strong { font-weight: 640; }
.channel-name small { color: var(--muted); font-size: 9px; }
.state-text { color: var(--text-soft); font-family: var(--sans); }
.state-text.loss { color: var(--accent-soft); }

.product-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.82fr;
  gap: 14px;
  margin-top: 14px;
}

.ranking-list { padding: 4px 16px 11px; }
.ranking-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ranking-row:last-child { border-bottom: 0; }
.ranking-index { color: var(--muted); font: 650 10px var(--mono); }
.ranking-row:first-child .ranking-index { color: var(--accent-soft); }
.ranking-name { min-width: 0; }
.ranking-name strong { display: block; overflow: hidden; color: var(--text-soft); font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.ranking-name small { color: var(--muted); font: 9px var(--mono); }
.ranking-value { text-align: right; font: 650 11px var(--mono); }
.ranking-value small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.risk-ranking { border-color: rgb(255 138 28 / 0.32); }

.dashboard-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 2px 0; color: var(--muted); font-size: 10px; }
.dashboard-footer p { margin-bottom: 0; }

.error-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgb(255 138 28 / 0.56);
  border-radius: var(--radius);
  color: var(--text);
  background: #2c1e12;
  box-shadow: 0 18px 50px rgb(0 8 26 / 0.34);
}

.error-banner[hidden] { display: none; }
.error-banner span { color: var(--accent-soft); font-size: 11px; }
.error-banner button { padding: 7px 10px; border: 0; border-radius: 6px; color: #1a1208; background: var(--accent-soft); cursor: pointer; }
.empty-state { padding: 42px 20px; color: var(--muted); text-align: center; font-size: 11px; }

@media (prefers-reduced-motion: no-preference) {
  .kpi-skeleton { animation: shimmer 1.8s ease-in-out infinite; }
  @keyframes shimmer { to { background-position: -120% 0; } }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar, .control-strip, .hero-summary, .panel, .kpi-grid { background: var(--surface); }
}

@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-card:nth-child(3n) { border-right: 0; }
  .kpi-card:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .risk-ranking { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .dashboard-shell { width: min(100% - 28px, 820px); padding-top: 14px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; flex-wrap: wrap; gap: 15px 22px; }
  .control-strip { flex-wrap: wrap; padding-block: 11px; }
  .date-filter { order: 3; width: 100%; }
  .date-range-fields { flex: 1; justify-content: space-between; }
  .date-range-fields input { width: min(40vw, 132px); }
  .update-note { flex-basis: 100%; margin-left: 0; }
  .hero-summary { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .summary-context { max-width: 560px; }
  .insight-grid { grid-template-columns: 1fr; }
  .analysis-grid, .product-grid { grid-template-columns: 1fr; }
  .risk-ranking { grid-column: auto; }
  .dashboard-footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 560px) {
  .dashboard-shell { width: min(100% - 18px, 500px); padding-top: 9px; }
  .topbar { min-height: 0; padding: 17px 15px; }
  .brand-kicker { font-size: 8px; letter-spacing: 0.1em; }
  .title-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  h1 { font-size: 27px; }
  .topbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .control-strip { padding-inline: 12px; }
  .select-control { flex: 1; justify-content: flex-end; }
  .select-control select { max-width: 150px; }
  .date-filter { min-width: 0; }
  .filter-label { flex: 0 0 36px; justify-content: center; padding: 0 6px; font-size: 10px; }
  .date-granularity { flex: 0 0 64px; min-width: 0; }
  .date-granularity select { width: 100%; min-height: 40px; padding: 0 18px 0 7px; font-size: 10px; }
  .date-range-fields { min-width: 0; gap: 3px; justify-content: flex-start; padding: 0 5px; font-size: 9px; }
  .date-range-fields input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    padding-right: 16px;
    background-size: 12px 12px;
    font-size: 9.5px;
  }
  .date-apply-button { flex: 0 0 40px; padding: 0 6px; font-size: 10px; }
  .hero-summary { padding: 21px 17px; }
  .hero-summary h2 { font-size: 23px; }
  .summary-copy { font-size: 12px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-card { min-height: 116px; padding: 16px 12px; }
  .kpi-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .kpi-card:nth-child(2n) { border-right: 0; }
  .kpi-card:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .kpi-value { font-size: 22px; }
  .kpi-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .panel-heading { padding: 14px; }
  .chart-legend { flex-direction: column; gap: 5px; }
  .trend-chart { min-height: 268px; padding-inline: 6px; }
  .trend-chart svg { height: 246px; }
  .channel-heading, .contribution-actions { align-items: flex-start; flex-direction: column; }
  .error-banner { right: 9px; bottom: 9px; left: 9px; grid-template-columns: 1fr; }
}
