:root {
  --background: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #fafafa;
  --surface-muted: #f4f4f5;
  --text: #18181b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --success: #16a34a;
  --warning: #d97706;
  --slate: #71717a;
  --violet: #7c3aed;
  --danger: #dc2626;
  --sidebar-width: 272px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--text); font-family: Geist, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 14px 10px 10px; background: var(--surface-subtle); border-right: 1px solid var(--border); }
.brand-row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 8px 12px; font-size: 15px; letter-spacing: -.02em; }
.brand-glyph { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--text); color: #fff; font-size: 10px; font-weight: 750; letter-spacing: -.03em; }
.sidebar-nav { padding-top: 20px; }
.nav-label { margin: 0; padding: 10px 8px 6px; color: var(--text-muted); font-size: 10px; font-weight: 520; }
.nav-link { min-height: 34px; display: flex; align-items: center; gap: 9px; margin: 1px 0; padding: 0 9px; border-radius: 7px; color: #3f3f46; font-size: 12px; transition: background 130ms ease, color 130ms ease; }
.nav-link:hover { background: #f0f0f1; color: var(--text); }
.nav-link.active { background: #eeeeef; color: var(--text); font-weight: 570; }
.nav-link.disabled { color: var(--text-faint); cursor: default; }
.nav-icon { width: 15px; flex: 0 0 15px; display: inline-grid; place-items: center; color: #52525b; font-size: 14px; }
.nav-count, .soon-badge { margin-left: auto; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-muted); font-size: 9px; line-height: 17px; text-align: center; }
.nav-count { min-width: 18px; height: 18px; padding: 0 5px; }
.soon-badge { padding: 0 6px; }
.sidebar-note { margin-top: auto; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.sidebar-note strong { font-size: 11px; }
.sidebar-note p { margin: 5px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.sidebar-footer { min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: 8px; padding: 8px; border-radius: 8px; }
.sidebar-footer:hover { background: #f0f0f1; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e4e4e7; font-size: 9px; font-weight: 700; }
.sidebar-footer div { min-width: 0; display: grid; gap: 2px; }
.sidebar-footer strong { font-size: 10px; }
.sidebar-footer div span { color: var(--text-muted); font-size: 9px; }
.more { color: var(--text-muted); letter-spacing: 1px; }
.sidebar-scrim { display: none; }

.main-panel { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.93); backdrop-filter: blur(12px); }
.menu-button { display: none !important; }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #52525b; cursor: pointer; }
.icon-button:hover { background: var(--surface-subtle); color: var(--text); }
.search-wrap { width: min(440px, 56vw); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: var(--text-muted); }
.search-wrap > span { font-size: 18px; transform: translateY(-1px); }
.search-wrap input { width: 100%; min-width: 0; height: 32px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-wrap input::placeholder { color: var(--text-faint); }
.search-wrap kbd { padding: 2px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-subtle); color: var(--text-faint); font-family: inherit; font-size: 9px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.connection-state { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 10px; }
.connection-state i, .live-dot i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }

.content-wrap { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 40px; }
.dashboard-view[hidden] { display: none; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; scroll-margin-top: 68px; }
.breadcrumb { margin: 0 0 13px; color: var(--text-muted); font-size: 10px; }
.breadcrumb span { padding: 0 5px; color: var(--text-faint); }
.page-intro h1 { margin: 0; font-size: clamp(25px, 2.3vw, 32px); font-weight: 530; letter-spacing: -.045em; line-height: 1.1; }
.page-intro > div > p:last-child { margin: 8px 0 0; color: var(--text-muted); font-size: 12px; }
.period-select-wrap { display: grid; gap: 5px; }
.period-select-wrap label { color: var(--text-muted); font-size: 9px; }
.period-select-wrap select { min-width: 148px; height: 34px; padding: 0 31px 0 11px; border: 1px solid var(--border); border-radius: 7px; outline: none; background: #fff; color: var(--text); font-size: 11px; cursor: pointer; }
.period-select-wrap select:focus-visible { border-color: #a1a1aa; box-shadow: 0 0 0 3px #f4f4f5; }
.section-tabs { display: inline-flex; gap: 2px; margin-top: 22px; padding: 3px; border-radius: 7px; background: var(--surface-muted); }
.section-tabs button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 10px; }
.section-tabs button:hover { color: var(--text); }
.section-tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.07); }

.kpi-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kpi-card { min-width: 0; min-height: 128px; padding: 16px; background: #fff; border-right: 1px solid var(--border); }
.kpi-card:last-child { border-right: 0; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #3f3f46; font-size: 10px; font-weight: 520; }
.card-heading button { padding: 0; border: 0; background: none; color: var(--text-muted); cursor: pointer; letter-spacing: 1px; }
.metric-context { color: var(--text-faint); font-size: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .055em; }
.kpi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 19px; }
.kpi-row > strong { overflow: hidden; text-overflow: ellipsis; font-size: clamp(22px, 2vw, 29px); font-weight: 500; letter-spacing: -.055em; white-space: nowrap; }
.change { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; font-size: 9px; font-weight: 600; }
.change.up { background: #eefbf3; color: #15803d; }
.change.warning { background: #fff7ed; color: #c2410c; }
.change.neutral { background: #f4f4f5; color: #52525b; }
.kpi-card p { margin: 10px 0 0; overflow: hidden; color: var(--text-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-grid { display: grid; gap: 12px; scroll-margin-top: 66px; }
.primary-grid { grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr); margin-top: 12px; }
.secondary-grid { grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); margin-top: 12px; }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.panel-header { min-height: 62px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px; }
.panel-header h2 { margin: 0; font-size: 12px; font-weight: 560; letter-spacing: -.015em; }
.panel-header p { margin: 5px 0 0; color: var(--text-muted); font-size: 9px; }
.panel-stat { display: flex; align-items: baseline; gap: 4px; color: var(--text-muted); font-size: 9px; white-space: nowrap; }
.panel-stat strong { color: var(--text); font-size: 12px; font-weight: 540; }

.trend-panel { min-height: 398px; }
.chart-wrap { height: 276px; display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 2px 18px 0 12px; }
.chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 11px 0 8px; color: var(--text-faint); font-size: 8px; text-align: right; }
#throughput-chart { width: 100%; height: 276px; display: block; }
.chart-x-axis { display: flex; justify-content: space-between; gap: 5px; padding: 9px 18px 16px 58px; color: var(--text-faint); font-size: 8px; }

.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 9px; }
.aging-summary { display: flex; align-items: baseline; gap: 5px; padding: 4px 16px 0; }
.aging-summary strong { font-size: 26px; font-weight: 500; letter-spacing: -.05em; }
.aging-summary span { color: var(--text-muted); font-size: 9px; }
.aging-bars { height: 172px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 12px; margin: 18px 16px 0; padding: 0 8px; border-bottom: 1px solid var(--border); background-image: linear-gradient(to bottom, transparent calc(33.33% - 1px), #f1f1f2 33.33%, transparent calc(33.33% + 1px)), linear-gradient(to bottom, transparent calc(66.66% - 1px), #f1f1f2 66.66%, transparent calc(66.66% + 1px)); }
.aging-column { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.aging-value { color: var(--text-muted); font-size: 8px; }
.aging-bar { width: min(42px, 70%); min-height: 8px; display: block; border-radius: 4px 4px 0 0; background: #52525b; }
.aging-column.warning .aging-bar { background: #f59e0b; }
.aging-column.critical .aging-bar { background: #ef4444; }
.aging-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 14px; padding: 14px 16px 16px; }
.aging-legend-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; color: var(--text-muted); font-size: 8px; }
.aging-legend-item strong { color: var(--text); font-size: 8px; font-weight: 560; }
.aging-dot { width: 6px; height: 6px; border-radius: 2px; background: #52525b; }
.aging-dot.warning { background: #f59e0b; }
.aging-dot.critical { background: #ef4444; }

.reconcile-badge, .signal-count, .table-result-count { flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 8px; }
.outcome-content { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 8px 18px 20px; }
.donut-wrap { display: grid; place-items: center; }
.donut { width: 174px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--surface-muted); }
.donut > div { width: 64%; aspect-ratio: 1; display: grid; place-content: center; border-radius: 50%; background: #fff; text-align: center; box-shadow: 0 0 0 1px rgba(0,0,0,.025); }
.donut strong { font-size: 22px; font-weight: 520; letter-spacing: -.055em; }
.donut span { margin-top: 3px; color: var(--text-muted); font-size: 8px; }
.outcome-list { display: grid; }
.outcome-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 9px 0; }
.outcome-copy { min-width: 0; }
.outcome-title-row { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.outcome-title-row strong { font-size: 10px; font-weight: 540; }
.outcome-copy > span { display: block; margin: 3px 0 0 14px; color: var(--text-muted); font-size: 8px; }
.outcome-values { display: grid; justify-items: end; }
.outcome-values strong { font-size: 10px; font-weight: 570; }
.outcome-values span { margin-top: 2px; color: var(--text-muted); font-size: 8px; }
.progress-track { height: 3px; grid-column: 1 / -1; overflow: hidden; border-radius: 99px; background: var(--surface-muted); }
.progress-track span { display: block; height: 100%; border-radius: inherit; }

.signal-list { padding: 0 16px 10px; }
.signal-list article { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); }
.signal-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 650; }
.signal-icon.critical { background: #fef2f2; color: var(--danger); }
.signal-icon.warning { background: #fff7ed; color: var(--warning); }
.signal-icon.neutral { background: #f4f4f5; color: #52525b; }
.signal-list strong { font-size: 10px; font-weight: 570; }
.signal-list p { margin: 4px 0 0; color: var(--text-muted); font-size: 9px; line-height: 1.5; }
.signal-list b { color: #3f3f46; font-weight: 570; }

.exceptions-panel { margin-top: 12px; scroll-margin-top: 66px; }
.table-header { align-items: center; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { height: 46px; padding: 0 16px; border-bottom: 1px solid #f0f0f1; text-align: left; font-size: 10px; }
th { height: 36px; background: var(--surface-subtle); color: var(--text-muted); font-size: 8px; font-weight: 520; text-transform: uppercase; letter-spacing: .055em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfc; }
.card-id { font-variant-numeric: tabular-nums; font-weight: 540; }
.age-cell { font-variant-numeric: tabular-nums; }
.status-badge, .priority-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 999px; font-size: 8px; white-space: nowrap; }
.status-badge.error { background: #fef2f2; color: #b91c1c; }
.status-badge.information { background: #fffbeb; color: #b45309; }
.status-badge.tailoring { background: #f5f3ff; color: #6d28d9; }
.status-badge.no-application { background: #f4f4f5; color: #52525b; }
.priority-badge { border: 1px solid var(--border); color: var(--text-muted); }
.priority-badge.critical { border-color: #fecaca; color: #b91c1c; }
.priority-badge.high { border-color: #fed7aa; color: #c2410c; }
.empty-state { margin: 0; padding: 35px 16px; color: var(--text-muted); text-align: center; font-size: 10px; }

.agents-table-panel { margin-top: 12px; }
.ops-source-panel { margin-top: 12px; }
.ops-source-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.ops-source-grid article { min-height: 94px; padding: 15px 16px; border-right: 1px solid var(--border); }
.ops-source-grid article:last-child { border-right: 0; }
.ops-source-grid span { display: block; color: var(--text-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.ops-source-grid strong { display: block; margin-top: 10px; font-size: 19px; font-weight: 520; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ops-source-grid small { display: block; margin-top: 5px; color: var(--text-muted); font-size: 8px; }
.ops-scope-note { margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 8px; }
.agents-table-header { min-height: 68px; }
.agent-header-badges { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.agents-table-wrap { max-height: 590px; }
.agents-table { min-width: 1400px; }
.agents-table td { height: 70px; }
.agents-table th:first-child, .agents-table td:first-child { width: 230px; }
.agents-table th:not(:first-child), .agents-table td:not(:first-child) { min-width: 142px; }
.agents-table tbody tr { transition: background 120ms ease; }
.agents-table tbody tr.selected-agent-row { background: #fafafa; box-shadow: inset 2px 0 0 var(--text); }
.agents-table tbody tr.team-row { background: var(--surface-subtle); }
.agents-table tbody tr.team-row td { height: 56px; border-bottom-color: var(--border); }
.agent-cell { display: flex; align-items: center; gap: 9px; }
.agent-avatar { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #f0f0f1; color: #3f3f46; font-size: 8px; font-weight: 700; }
.team-row .agent-avatar { background: var(--text); color: #fff; }
.agent-name-button { display: grid; gap: 2px; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.agent-name-button strong { font-size: 10px; font-weight: 570; }
.agent-name-button span { color: var(--text-muted); font-size: 8px; }
.agent-name-button:disabled { color: var(--text); opacity: 1; }
.team-row .agent-name-button { cursor: default; }
.metric-cell { display: grid; gap: 4px; align-content: center; }
.metric-cell > strong { font-size: 10px; font-weight: 580; font-variant-numeric: tabular-nums; }
.metric-cell > span { color: var(--text-muted); font-size: 8px; white-space: nowrap; }
.benchmark-delta { width: fit-content; padding: 3px 5px; border-radius: 999px; font-size: 7px !important; font-weight: 620; }
.benchmark-delta.positive { background: #eefbf3; color: #15803d; }
.benchmark-delta.attention { background: #fef2f2; color: #b91c1c; }
.benchmark-delta.diagnostic { background: #fff7ed; color: #b45309; }
.benchmark-delta.neutral { background: #f4f4f5; color: #52525b; }
.agents-table-note { min-height: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 8px; }
.agents-table-note span { display: inline-flex; align-items: center; gap: 5px; }
.agents-table-note span:last-child { margin-left: auto; color: var(--text-faint); }
.legend-swatch { width: 7px; height: 7px; border-radius: 50%; }
.legend-swatch.positive { background: #16a34a; }
.legend-swatch.attention { background: #dc2626; }
.legend-swatch.diagnostic { background: #d97706; }

.agent-detail-grid { grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr); margin-top: 12px; }
.selected-agent-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); }
.selected-agent-metric { min-height: 90px; padding: 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.selected-agent-metric:nth-child(even) { border-right: 0; }
.selected-agent-metric:nth-last-child(-n+2) { border-bottom: 0; }
.selected-agent-metric span { color: var(--text-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.selected-agent-metric strong { display: block; margin-top: 9px; font-size: 20px; font-weight: 520; letter-spacing: -.045em; }
.selected-agent-metric small { display: block; margin-top: 5px; color: var(--text-muted); font-size: 8px; }
.agent-comparison-list { display: grid; gap: 15px; padding: 2px 16px 18px; }
.agent-comparison-row { display: grid; gap: 7px; }
.comparison-labels { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto; align-items: center; gap: 12px; }
.comparison-labels > strong { font-size: 9px; font-weight: 560; }
.comparison-labels > span { color: var(--text-muted); font-size: 8px; white-space: nowrap; }
.comparison-tracks { display: grid; gap: 4px; }
.comparison-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--surface-muted); }
.comparison-track span { display: block; height: 100%; border-radius: inherit; background: #18181b; }
.comparison-track.team span { background: #d4d4d8; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #a1a1aa; outline-offset: 2px; }

@media (max-width: 1220px) {
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-card:nth-child(3) { border-right: 0; }
  .kpi-card:nth-child(n+4) { border-top: 1px solid var(--border); }
  .kpi-card:nth-child(5) { border-right: 0; }
  .primary-grid, .secondary-grid, .agent-detail-grid { grid-template-columns: 1fr; }
  .ops-source-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ops-source-grid article:nth-child(4n) { border-right: 0; }
  .ops-source-grid article:nth-child(n+5) { border-top: 1px solid var(--border); }
  .aging-panel { min-height: 360px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 180ms ease; box-shadow: 8px 0 30px rgba(0,0,0,.08); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(24,24,27,.26); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
  .sidebar-scrim.visible { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .main-panel { margin-left: 0; }
  .menu-button { display: grid !important; }
  .content-wrap { width: min(100% - 30px, 1500px); padding-top: 24px; }
}

@media (max-width: 700px) {
  .topbar { padding: 0 14px; }
  .search-wrap { width: auto; flex: 1; }
  .search-wrap kbd, .connection-state { display: none; }
  .page-intro { align-items: stretch; flex-direction: column; gap: 18px; }
  .period-select-wrap select { width: 100%; }
  .section-tabs { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .section-tabs button { padding: 0 4px; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-card, .kpi-card:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .kpi-card:nth-child(1), .kpi-card:nth-child(2) { border-top: 0; }
  .kpi-card:nth-child(even) { border-right: 0; }
  .kpi-card:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
  .outcome-content { grid-template-columns: 1fr; }
  .ops-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-source-grid article:nth-child(4n) { border-right: 1px solid var(--border); }
  .ops-source-grid article:nth-child(even) { border-right: 0; }
  .ops-source-grid article:nth-child(n+3) { border-top: 1px solid var(--border); }
  .agents-table-note span:last-child { width: 100%; margin-left: 0; }
}

@media (max-width: 480px) {
  .content-wrap { width: min(100% - 20px, 1500px); }
  .search-wrap input::placeholder { color: transparent; }
  .page-intro h1 { font-size: 26px; }
  .kpi-strip { grid-template-columns: 1fr; }
  .kpi-card, .kpi-card:nth-child(n) { grid-column: auto; border-top: 1px solid var(--border); border-right: 0; }
  .kpi-card:first-child { border-top: 0; }
  .ops-source-grid { grid-template-columns: 1fr; }
  .ops-source-grid article:nth-child(n) { border-top: 1px solid var(--border); border-right: 0; }
  .ops-source-grid article:first-child { border-top: 0; }
  .chart-wrap { height: 236px; padding-inline: 6px 12px; }
  #throughput-chart { height: 236px; }
  .chart-x-axis { padding-left: 47px; }
  .aging-legend { grid-template-columns: 1fr; }
  .selected-agent-grid { grid-template-columns: 1fr; }
  .selected-agent-metric, .selected-agent-metric:nth-child(even), .selected-agent-metric:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--border); }
  .selected-agent-metric:last-child { border-bottom: 0; }
  .comparison-labels { grid-template-columns: 1fr auto; }
  .comparison-labels .comparison-team-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
