:root {
  color-scheme: light;
  /*
   * Control Center theme contract. Components consume semantic roles from
   * this palette. The dark block below must redeclare the complete contract;
   * tests keep both token sets synchronized.
   */
  --cc-accent: #c2410c;
  --cc-accent-hover: #9a3412;
  --cc-accent-bright: #f97316;
  --cc-brand-accent: #d35400;
  --cc-text-on-accent: #fff;
  --cc-surface: #fff;
  --cc-page-muted: #f5f7fb;
  --cc-surface-muted: #f8f9fa;
  --cc-surface-subtle: #f8fafc;
  --cc-surface-striped: #f9f9f9;
  --cc-surface-code: #f1f5f9;
  --cc-surface-faint: #fbfcfe;
  --cc-surface-hover: rgba(44, 62, 80, 0.05);
  --cc-surface-hover-subtle: rgba(44, 62, 80, 0.035);
  --cc-surface-warm: #fff8ed;
  --cc-surface-warm-soft: #fffaf3;
  --cc-surface-warm-muted: #fff4e5;
  --cc-surface-warm-hover: #ffedd5;
  --cc-surface-warm-selected: #fff7ed;
  --cc-surface-cost-item: #fdf3e7;
  --cc-surface-cost-item-hover: #f7e8d7;
  --cc-surface-accordion: #f7f6f3;
  --cc-surface-accordion-active: #f9f4ec;
  --cc-control-selected-bg: #2c3e50;
  --cc-control-selected-text: #fff;
  --cc-surface-translucent: rgba(255, 255, 255, 0.7);
  --cc-donut-surface: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)), linear-gradient(145deg, #fffdf9 0%, #f5f0eb 100%);
  --cc-border: #e9ecef;
  --cc-border-muted: #edf2f7;
  --cc-border-strong: #dee2e6;
  --cc-border-slate: #e2e8f0;
  --cc-border-card: #e5e7eb;
  --cc-border-soft: #eef2f7;
  --cc-border-control: #cbd5e1;
  --cc-border-control-strong: #94a3b8;
  --cc-border-warm: #f1e4d8;
  --cc-border-warm-muted: #f3e2d5;
  --cc-border-warm-selected: #fdba74;
  --cc-border-selection: #f6d7a7;
  --cc-border-selection-hover: #f2c48b;
  --cc-text-heading: #0f172a;
  --cc-text-strong: #111827;
  --cc-text-body: #212529;
  --cc-text-ink: #2c3e50;
  --cc-text-ink-soft: #34495e;
  --cc-text-label: #334155;
  --cc-text-control: #374151;
  --cc-text-secondary: #475569;
  --cc-text-muted: #64748b;
  --cc-text-subtle: #6b7280;
  --cc-text-bootstrap-muted: #6c757d;
  --cc-text-cost-heading: #4b5563;
  --cc-text-on-color: #fff;
  --cc-text-on-warning: #1c1917;
  --cc-text-disabled: #9ca3af;
  --cc-link-action: #2563eb;
  --cc-link-action-hover: #1d4ed8;
  --cc-plot-sample-text: #8a7356;
  --cc-delta-negative: #8a5a44;
  --cc-delta-positive: #b7791f;
  --cc-delta-zero: #78716c;
  --cc-status-success: #059340;
  --cc-status-danger: #e74432;
  --cc-status-warning: #f39c12;
  --cc-status-info: #3498db;
  --cc-status-neutral: #7f8c8d;
  --cc-status-neutral-solid: #565c52;
  --cc-status-no-action: #b5b5b5;
  --cc-status-alert: #fcdb03;
  --cc-status-fallback: #bdc3c7;
  --cc-chart-series-fallback: #ccc;
  --cc-chart-estimate: #bd6234;
  --cc-chart-final: #617487;
  --cc-chart-primary: #376f9f;
  --cc-chart-success: #3b825f;
  --cc-chart-warning: #a97927;
  --cc-chart-miss: #c86848;
  --cc-chart-median: #347b83;
  --cc-chart-categorical: #527e9f #5f866a #ae5e58 #987832 #786389 #4d827d #9f644c #925d70 #62718f #797d4f #6d5877 #8a764e;
  --cc-distribution-range: #a97761;
  --cc-distribution-box: #dce7df;
  --cc-distribution-box-line: #718b78;
  --cc-distribution-median: #987832;
  --cc-distribution-zero: #7b827c;
  --cc-state-info-bg: #eff6ff;
  --cc-state-info-bg-subtle: #f8fbfd;
  --cc-state-info-border: #bfdbfe;
  --cc-state-info-accent: #38bdf8;
  --cc-state-info-text: #1d4ed8;
  --cc-state-success-bg: #ecfdf5;
  --cc-state-success-border: #a7f3d0;
  --cc-state-success-text: #047857;
  --cc-state-danger-bg: #fef2f2;
  --cc-state-danger-bg-subtle: #fffafa;
  --cc-state-danger-border: #fecaca;
  --cc-state-danger-accent: #ef4444;
  --cc-state-danger-text: #b91c1c;
  --cc-state-warning-bg: #fffbeb;
  --cc-state-warning-bg-subtle: #fffcf5;
  --cc-state-warning-bg-soft: #fff6eb;
  --cc-state-warning-border: #fde68a;
  --cc-state-warning-border-soft: #f4e6d5;
  --cc-state-warning-text: #92400e;
  --cc-state-warning-border-strong: #facc15;
  --cc-state-warning-border-emphasis: #fcd34d;
  --cc-state-warning-accent: #f59e0b;
  --cc-state-warning-text-strong: #713f12;
  --cc-state-danger-border-emphasis: #f87171;
  --cc-state-danger-text-strong: #991b1b;
  --cc-warning-action-text: #92400e;
  --cc-warning-action-bg: #fffbeb;
  --cc-warning-action-border: #f59e0b;
  --cc-warning-action-hover-text: #78350f;
  --cc-warning-action-hover-bg: #fef3c7;
  --cc-warning-action-hover-border: #d97706;
  --cc-trend-good: #0f766e;
  --cc-trend-bad: #b91c1c;
  --cc-trend-good-solid: #1f7569;
  --cc-trend-bad-solid: #a83b3b;
  --cc-action-ready-bg: #2f7659;
  --cc-action-ready-hover-bg: #285f49;
  --cc-action-running-bg: #315f9b;
  --cc-action-alert-bg: #a33e38;
  --cc-action-alert-hover-bg: #85332f;
  --cc-nav-active-bg: linear-gradient(90deg, rgba(17, 24, 39, 0.08), rgba(255, 95, 26, 0.12));
  --cc-nav-active-ring: rgba(255, 95, 26, 0.12);
  --cc-nav-hover-bg: rgba(17, 24, 39, 0.04);
  --cc-summary-strip-bg: linear-gradient(135deg, rgba(249, 146, 46, 0.08), rgba(17, 24, 39, 0.04));
  --cc-summary-strip-border: #f4e4d6;
  --cc-loading-backdrop: rgba(255, 255, 255, 0.8);
  --cc-spinner-track: rgba(44, 62, 80, 0.2);
  --cc-plot-paper: #fff;
  --cc-plot-paper-warm: #fff8ed;
  --cc-plot-area: #fff;
  --cc-plot-default-area: #e5ecf6;
  --cc-plot-text: #2a3f5f;
  --cc-plot-grid: #f0f0f0;
  --cc-plot-zero-line: #e0e0e0;
  --cc-plot-legend-bg: rgba(255, 255, 255, 0.92);
  --cc-plot-legend-bg-soft: rgba(255, 255, 255, 0.8);
  --cc-plot-legend-border: rgba(0, 0, 0, 0.15);
  --cc-plot-hover-bg: #fff;
  --cc-plot-hover-border: #cbd5e1;
  --cc-plot-hover-text: #111827;
  --cc-plot-annotation-muted: #aaa;
  --cc-plot-annotation: #666;
  --cc-plot-annotation-strong: #555;
  --cc-plot-reference-line: #888;
  --cc-plot-trace-divider: rgba(255, 255, 255, 0.85);
  --cc-plot-label-text: #111827;
  --cc-plot-label-bg: rgba(255, 255, 255, 0.85);
  --cc-plot-transparent: rgba(255, 255, 255, 0);
  --cc-map-style: carto-positron;
  --cc-shadow-card: 0 2px 4px rgba(0, 0, 0, 0.05);
  --cc-shadow-card-soft: 0 2px 4px rgba(0, 0, 0, 0.04);
  --cc-shadow-card-hover: 0 5px 15px rgba(0, 0, 0, 0.05);
  --cc-shadow-raised-hover: 0 8px 18px rgba(0, 0, 0, 0.12);
  --cc-shadow-release-card: 0 10px 26px rgba(15, 23, 42, 0.06);
  --cc-shadow-selected: 0 0 0 1px rgba(249, 115, 22, 0.16), 0 8px 18px rgba(15, 23, 42, 0.06);
  --cc-shadow-panel: 0 4px 6px rgba(0, 0, 0, 0.1);
  --cc-shadow-panel-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
  --cc-focus-warm: 0 0 0 0.2rem rgba(217, 119, 6, 0.15);
  --cc-shadow-donut: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 24px rgba(0, 0, 0, 0.04);
  --cc-shadow-section: 0 3px 8px rgba(0, 0, 0, 0.05);
  --cc-shadow-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --cc-shadow-inset-divider: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  --bs-body-bg: var(--cc-surface);
  --bs-body-color: var(--cc-text-body);
  --bs-border-color: var(--cc-border);
  --bs-secondary-bg: var(--cc-surface-muted);
  --bs-tertiary-bg: var(--cc-surface-subtle);
  --bs-emphasis-color: var(--cc-text-heading);
  --bs-secondary-color: var(--cc-text-muted);
  --bs-link-color: var(--cc-link-action);
  --bs-link-hover-color: var(--cc-link-action-hover);
}

:root[data-bs-theme="dark"] {
  color-scheme: dark;
  --cc-accent: #fb923c;
  --cc-accent-hover: #fdba74;
  --cc-accent-bright: #fb923c;
  --cc-brand-accent: #ff5f1a;
  --cc-text-on-accent: #1c120b;
  --cc-surface: #11120f;
  --cc-page-muted: #151713;
  --cc-surface-muted: #191b17;
  --cc-surface-subtle: #1d1f1a;
  --cc-surface-striped: #171914;
  --cc-surface-code: #20231d;
  --cc-surface-faint: #141612;
  --cc-surface-hover: rgba(234, 229, 218, 0.07);
  --cc-surface-hover-subtle: rgba(234, 229, 218, 0.045);
  --cc-surface-warm: #20211d;
  --cc-surface-warm-soft: #191a17;
  --cc-surface-warm-muted: #26251f;
  --cc-surface-warm-hover: #302f27;
  --cc-surface-warm-selected: #2d2b23;
  --cc-surface-cost-item: #25251f;
  --cc-surface-cost-item-hover: #2f2f27;
  --cc-surface-accordion: #1a1b18;
  --cc-surface-accordion-active: #22221d;
  --cc-control-selected-bg: #3c4239;
  --cc-control-selected-text: #f7f3eb;
  --cc-surface-translucent: rgba(17, 18, 15, 0.8);
  --cc-donut-surface: radial-gradient(circle at 48% 38%, rgba(185, 196, 180, 0.07), rgba(185, 196, 180, 0) 58%), linear-gradient(145deg, #1d201d 0%, #181a18 100%);
  --cc-border: #30332c;
  --cc-border-muted: #272a24;
  --cc-border-strong: #3f433a;
  --cc-border-slate: #363a32;
  --cc-border-card: #34372f;
  --cc-border-soft: #292c26;
  --cc-border-control: #555b50;
  --cc-border-control-strong: #737b6c;
  --cc-border-warm: #44443a;
  --cc-border-warm-muted: #393a33;
  --cc-border-warm-selected: #9d7b56;
  --cc-border-selection: #5a5040;
  --cc-border-selection-hover: #73664f;
  --cc-text-heading: #f6f2e9;
  --cc-text-strong: #eee9df;
  --cc-text-body: #ddd7cc;
  --cc-text-ink: #cec8bd;
  --cc-text-ink-soft: #beb8ac;
  --cc-text-label: #d2ccc0;
  --cc-text-control: #e5dfd4;
  --cc-text-secondary: #bbb5aa;
  --cc-text-muted: #a39d92;
  --cc-text-subtle: #958f84;
  --cc-text-bootstrap-muted: #aaa499;
  --cc-text-cost-heading: #c5bfb4;
  --cc-text-on-color: #fff;
  --cc-text-on-warning: #1c1917;
  --cc-text-disabled: #716d65;
  --cc-link-action: #7fb2e5;
  --cc-link-action-hover: #a3c7e8;
  --cc-plot-sample-text: #c9aa7f;
  --cc-delta-negative: #dfa58d;
  --cc-delta-positive: #e4b65b;
  --cc-delta-zero: #b6afa5;
  --cc-status-success: #5bc89b;
  --cc-status-danger: #e8877c;
  --cc-status-warning: #ddb55b;
  --cc-status-info: #76a9d6;
  --cc-status-neutral: #999d96;
  --cc-status-neutral-solid: #565c52;
  --cc-status-no-action: #898d86;
  --cc-status-alert: #e4c75f;
  --cc-status-fallback: #9ca29a;
  --cc-chart-series-fallback: #70766e;
  --cc-chart-estimate: #e7a06f;
  --cc-chart-final: #9fb6c8;
  --cc-chart-primary: #79aeda;
  --cc-chart-success: #79c49d;
  --cc-chart-warning: #dec071;
  --cc-chart-miss: #f2aa7f;
  --cc-chart-median: #8fd8d5;
  --cc-chart-categorical: #78a6c8 #83ad8f #cf8178 #c4a464 #a58db4 #70aaa2 #c38b70 #b87f91 #8293b0 #a3a776 #987fa4 #b9a47a;
  --cc-distribution-range: #819b8a;
  --cc-distribution-box: #3f5047;
  --cc-distribution-box-line: #93ab9a;
  --cc-distribution-median: #d7b56d;
  --cc-distribution-zero: #87918a;
  --cc-state-info-bg: #142538;
  --cc-state-info-bg-subtle: #121e2b;
  --cc-state-info-border: #365a7a;
  --cc-state-info-accent: #68a8d1;
  --cc-state-info-text: #9cc4e7;
  --cc-state-success-bg: #122820;
  --cc-state-success-border: #356451;
  --cc-state-success-text: #83cdb0;
  --cc-state-danger-bg: #301b1b;
  --cc-state-danger-bg-subtle: #261717;
  --cc-state-danger-border: #71413d;
  --cc-state-danger-accent: #dc766d;
  --cc-state-danger-text: #e9a39c;
  --cc-state-warning-bg: #2b2315;
  --cc-state-warning-bg-subtle: #231e14;
  --cc-state-warning-bg-soft: #302417;
  --cc-state-warning-border: #705b2c;
  --cc-state-warning-border-soft: #59492a;
  --cc-state-warning-text: #e3c879;
  --cc-state-warning-border-strong: #eab308;
  --cc-state-warning-border-emphasis: #facc15;
  --cc-state-warning-accent: #dc9440;
  --cc-state-warning-text-strong: #ead18a;
  --cc-state-danger-border-emphasis: #d66760;
  --cc-state-danger-text-strong: #efb1aa;
  --cc-warning-action-text: #e7ce83;
  --cc-warning-action-bg: #2b2315;
  --cc-warning-action-border: #d97706;
  --cc-warning-action-hover-text: #f2dfaa;
  --cc-warning-action-hover-bg: #3a2c18;
  --cc-warning-action-hover-border: #f59e0b;
  --cc-trend-good: #5eead4;
  --cc-trend-bad: #fca5a5;
  --cc-trend-good-solid: #1f7569;
  --cc-trend-bad-solid: #a83b3b;
  --cc-action-ready-bg: #2f7659;
  --cc-action-ready-hover-bg: #285f49;
  --cc-action-running-bg: #315f9b;
  --cc-action-alert-bg: #a33e38;
  --cc-action-alert-hover-bg: #85332f;
  --cc-nav-active-bg: linear-gradient(90deg, rgba(234, 229, 218, 0.08), rgba(196, 112, 53, 0.2));
  --cc-nav-active-ring: rgba(249, 115, 22, 0.25);
  --cc-nav-hover-bg: rgba(234, 229, 218, 0.07);
  --cc-summary-strip-bg: linear-gradient(135deg, rgba(196, 112, 53, 0.15), rgba(234, 229, 218, 0.04));
  --cc-summary-strip-border: #55402f;
  --cc-loading-backdrop: rgba(17, 18, 15, 0.84);
  --cc-spinner-track: rgba(163, 157, 146, 0.32);
  --cc-plot-paper: #171916;
  --cc-plot-paper-warm: #191a17;
  --cc-plot-area: #1c1f1c;
  --cc-plot-default-area: #20241f;
  --cc-plot-text: #ddd8cf;
  --cc-plot-grid: #363931;
  --cc-plot-zero-line: #555b50;
  --cc-plot-legend-bg: rgba(23, 24, 21, 0.94);
  --cc-plot-legend-bg-soft: rgba(23, 24, 21, 0.82);
  --cc-plot-legend-border: rgba(163, 157, 146, 0.28);
  --cc-plot-hover-bg: #171815;
  --cc-plot-hover-border: #555b50;
  --cc-plot-hover-text: #f6f2e9;
  --cc-plot-annotation-muted: #958f84;
  --cc-plot-annotation: #c0baaf;
  --cc-plot-annotation-strong: #ddd7cc;
  --cc-plot-reference-line: #999d96;
  --cc-plot-trace-divider: rgba(23, 24, 21, 0.9);
  --cc-plot-label-text: #f6f2e9;
  --cc-plot-label-bg: rgba(23, 24, 21, 0.9);
  --cc-plot-transparent: rgba(23, 24, 21, 0);
  --cc-map-style: carto-darkmatter;
  --cc-shadow-card: 0 2px 6px rgba(0, 0, 0, 0.35);
  --cc-shadow-card-soft: 0 2px 5px rgba(0, 0, 0, 0.25);
  --cc-shadow-card-hover: 0 5px 16px rgba(0, 0, 0, 0.42);
  --cc-shadow-raised-hover: 0 8px 20px rgba(0, 0, 0, 0.5);
  --cc-shadow-release-card: 0 10px 28px rgba(0, 0, 0, 0.38);
  --cc-shadow-selected: 0 0 0 1px rgba(249, 115, 22, 0.28), 0 8px 18px rgba(0, 0, 0, 0.45);
  --cc-shadow-panel: 0 4px 8px rgba(0, 0, 0, 0.4);
  --cc-shadow-panel-hover: 0 6px 14px rgba(0, 0, 0, 0.5);
  --cc-focus-warm: 0 0 0 0.2rem rgba(249, 115, 22, 0.28);
  --cc-shadow-donut: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 10px 28px rgba(0, 0, 0, 0.22);
  --cc-shadow-section: 0 3px 10px rgba(0, 0, 0, 0.3);
  --cc-shadow-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --cc-shadow-inset-divider: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cc-surface);
  color: var(--cc-text-body);
}

.navbar-brand {
  font-weight: 700;
  color: var(--cc-brand-accent);
}

.navbar-text {
  font-size: .875rem;
  color: var(--cc-text-bootstrap-muted);
}

.cc-pagination {
  flex-wrap: wrap;
  gap: .25rem;
}

.pagination .page-link {
  color: var(--cc-accent);
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.pagination .page-link:hover {
  color: var(--cc-accent-hover);
}

.pagination .page-item.active .page-link {
  background-color: var(--cc-accent);
  border-color: var(--cc-accent);
  color: var(--cc-text-on-accent);
}

.pagination .page-item.disabled .page-link {
  color: var(--cc-text-disabled);
}

.btn-table-sm {
  padding: 0.18rem 0.38rem;
  font-size: 0.7rem;
  line-height: 1.15;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cc-btn-compact {
  --bs-btn-padding-y: .16rem;
  --bs-btn-padding-x: .42rem;
  --bs-btn-font-size: .7rem;
  white-space: nowrap;
}

.btn-accent {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
  color: var(--cc-text-on-accent);
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--cc-accent-hover);
  border-color: var(--cc-accent-hover);
  color: var(--cc-text-on-accent);
}

.cc-badge-neutral {
  color: var(--cc-text-label);
  background-color: var(--cc-surface-subtle);
  border: 1px solid var(--cc-border-strong);
}

.table-container {
  width: 100%;
  overflow-x: auto;
}

.table-container.position-relative {
  background-color: var(--cc-surface);
  border-radius: 0.5rem;
  box-shadow: var(--cc-shadow-card);
  overflow: auto;
  margin-bottom: 1.5rem;
  width: 100%;
  position: relative;
}

.cc-data-table {
  --cc-table-min-width: 0;
  --cc-table-header-position: sticky;
  --cc-table-header-padding: 0.5rem 0.6rem;
  --cc-table-header-font-size: 0.75rem;
  --cc-table-header-line-height: normal;
  --cc-table-header-white-space: nowrap;
  --cc-table-header-overflow: initial;
  --cc-table-cell-padding: 0.5rem 0.6rem;
  --cc-table-cell-font-size: 0.75rem;
  --cc-table-sort-gap: 0.5rem;
  width: 100%;
  min-width: var(--cc-table-min-width);
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

.cc-data-table thead th {
  position: var(--cc-table-header-position);
  top: 0;
  background-color: var(--cc-surface-muted);
  color: var(--cc-text-body);
  font-weight: 600;
  padding: var(--cc-table-header-padding);
  font-size: var(--cc-table-header-font-size);
  line-height: var(--cc-table-header-line-height);
  border-bottom: 2px solid var(--cc-border-strong);
  user-select: none;
  white-space: var(--cc-table-header-white-space);
  overflow: var(--cc-table-header-overflow);
}

.cc-data-table thead th[data-sort] {
  cursor: pointer;
}

.cc-data-table thead th[data-sort]:hover {
  background-color: var(--cc-border);
}

.cc-data-table thead th[data-sort]::after {
  content: '↕';
  display: inline-block;
  margin-left: var(--cc-table-sort-gap);
  font-size: 0.8em;
  opacity: 0.5;
}

.cc-data-table thead th[data-sort].sort-asc::after {
  content: '↑';
  opacity: 1;
}

.cc-data-table thead th[data-sort].sort-desc::after {
  content: '↓';
  opacity: 1;
}

.cc-data-table tbody td {
  padding: var(--cc-table-cell-padding);
  vertical-align: middle;
  border-top: 1px solid var(--cc-border-muted);
  font-size: var(--cc-table-cell-font-size);
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  hyphens: auto;
}

.cc-data-table tbody tr {
  transition: background-color 0.15s ease;
}

.cc-data-table tbody tr:hover {
  background-color: var(--cc-surface-hover);
}

.table-compact th,
.table-compact td {
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  vertical-align: middle;
}

.text-visible {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cc-border);
}

.dashboard-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--cc-text-heading);
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.015em;
}

.toolbar {
  background-color: var(--cc-surface);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: var(--cc-shadow-card);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar.filter-toolbar {
  background-color: var(--cc-surface);
  padding: 0.75rem 1rem;
  flex-direction: column;
  gap: 0.6rem;
}

.search-row {
  width: 100%;
}

.filter-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  overflow-x: auto;
}

.filter-row .form-select,
.filter-row input.form-control {
  min-width: 110px;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.78rem;
  height: 30px;
  line-height: 1.1;
}

.filter-row .form-select {
  width: auto;
}

.filter-row .btn-accent {
  height: 28px;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
}

.dashboard-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--cc-border);
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-card-hover);
}

.donut-chart {
  position: relative;
  height: 250px;
  padding: 14px;
  box-sizing: border-box;
  background: var(--cc-donut-surface);
  border: 1px solid var(--cc-border-muted);
  border-radius: 12px;
  box-shadow: var(--cc-shadow-donut);
  overflow: hidden;
}

.table-container.position-relative .loading-overlay {
  position: absolute;
  inset: 0;
  background: var(--cc-loading-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 0.5rem;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

#last-updated {
  font-size: 0.9rem;
  color: var(--cc-text-bootstrap-muted);
  white-space: nowrap;
  margin-left: auto;
  padding-left: 1rem;
}

.estimate-delta-negative {
  color: var(--cc-delta-negative);
}

.estimate-delta-positive {
  color: var(--cc-delta-positive);
}

.estimate-delta-zero {
  color: var(--cc-delta-zero);
}

#estimates-table td.estimate-delta-negative,
#flight-estimates-table td.estimate-delta-negative {
  color: var(--cc-delta-negative) !important;
  font-weight: 700;
}

#estimates-table td.estimate-delta-positive,
#flight-estimates-table td.estimate-delta-positive {
  color: var(--cc-delta-positive) !important;
  font-weight: 700;
}

#estimates-table td.estimate-delta-zero,
#flight-estimates-table td.estimate-delta-zero {
  color: var(--cc-delta-zero) !important;
  font-weight: 700;
}

.fa-link {
  font-size: 0.72rem;
  color: var(--cc-text-subtle);
  text-decoration: none;
}

.fa-link:hover {
  color: var(--cc-link-action);
  text-decoration: underline;
}

.mini-action {
  font-size: 0.65rem;
  color: var(--cc-text-subtle);
  cursor: pointer;
}

.mini-action:hover {
  color: var(--cc-link-action);
  text-decoration: underline;
}

.link-id {
  color: var(--cc-text-strong);
  font-weight: 600;
  text-decoration: none;
}

.link-id:hover {
  text-decoration: underline;
}

.plot-card {
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--cc-border-warm);
  background: linear-gradient(135deg, var(--cc-surface-warm-soft), var(--cc-surface-warm-muted));
}

.plot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-raised-hover);
}

.plot-card .card-header {
  background: var(--cc-surface-translucent);
  border-bottom: 1px solid var(--cc-border-warm);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.plot-card .card-header.plot-card-header-with-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
}

.weather-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-start: 0.75rem;
  vertical-align: middle;
  font-weight: 500;
}

.weather-product-select {
  width: auto;
  min-width: 7.6rem;
  height: 1.9rem;
  padding-block: 0.15rem;
  border-color: var(--cc-border-control);
  background-color: var(--cc-surface-subtle);
  color: var(--cc-text-control);
  font-size: 0.72rem;
}

.weather-altitude-control {
  display: inline-grid;
  grid-template-columns: auto auto minmax(7rem, 10rem) auto;
  align-items: center;
  gap: 0.42rem;
  padding: 0.22rem 0.48rem;
  border: 1px solid var(--cc-border-control);
  border-radius: 999px;
  background: var(--cc-surface-subtle);
  box-shadow: var(--cc-shadow-inset-highlight);
}

.weather-altitude-value {
  min-width: 3.25rem;
  padding: 0.12rem 0.38rem;
  border: 1px solid var(--cc-border-selection);
  border-radius: 999px;
  background: var(--cc-surface-warm-selected);
  color: var(--cc-text-heading);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.weather-altitude-bound {
  color: var(--cc-text-muted);
  font-size: 0.6rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.weather-altitude-slider {
  --weather-altitude-progress: 0%;
  width: 100%;
  min-width: 7rem;
  height: 1.2rem;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.weather-altitude-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--cc-control-indicator) 0%,
    var(--cc-control-indicator) var(--weather-altitude-progress),
    var(--cc-border-control) var(--weather-altitude-progress),
    var(--cc-border-control) 100%
  );
}

.weather-altitude-slider::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  appearance: none;
  border: 2px solid var(--cc-surface);
  border-radius: 50%;
  background: var(--cc-control-indicator);
  box-shadow: 0 0 0 1px var(--cc-border-control-strong);
}

.weather-altitude-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--cc-border-control);
}

.weather-altitude-slider::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--cc-control-indicator);
}

.weather-altitude-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid var(--cc-surface);
  border-radius: 50%;
  background: var(--cc-control-indicator);
  box-shadow: 0 0 0 1px var(--cc-border-control-strong);
}

.weather-altitude-slider:focus-visible {
  border-radius: 999px;
  outline: 2px solid var(--cc-focus-ring);
  outline-offset: 2px;
}

.weather-altitude-slider:disabled {
  cursor: default;
  opacity: 0.55;
}

@media (max-width: 767.98px) {
  .weather-controls {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-block-start: 0.5rem;
    margin-inline-start: 0;
  }

  .weather-altitude-control {
    grid-template-columns: auto auto minmax(5.5rem, 1fr) auto;
  }
}

.plot-sample-count {
  color: var(--cc-plot-sample-text);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.kpi-section {
  background: linear-gradient(135deg, var(--cc-surface-warm-soft), var(--cc-surface-warm-muted));
  border: 1px solid var(--cc-border-warm-muted);
  border-radius: 0.65rem;
  padding: 0.6rem 0.7rem;
  box-shadow: var(--cc-shadow-section);
}

.kpi-section h6 {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--cc-text-heading);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.45rem;
}

.kpi-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border-warm);
  border-radius: 0.4rem;
  padding: 0.38rem 0.5rem;
  box-shadow: var(--cc-shadow-inset-highlight);
  transition: transform .15s ease, box-shadow .15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-raised-hover);
}

.kpi-label {
  font-size: 0.58rem;
  color: var(--cc-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kpi-value {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cc-text-strong);
}

.kpi-value.estimate-delta-negative {
  color: var(--cc-delta-negative) !important;
}

.kpi-value.estimate-delta-positive {
  color: var(--cc-delta-positive) !important;
}

.kpi-value.estimate-delta-zero {
  color: var(--cc-delta-zero) !important;
}

.artifact-list .list-group-item.active {
  background-color: var(--cc-surface-warm-selected);
  border-color: var(--cc-border-selection);
  color: var(--cc-text-heading);
  font-weight: 600;
}

.artifact-list .list-group-item.active:hover,
.artifact-list .list-group-item.active:focus {
  background-color: var(--cc-surface-warm-hover);
  border-color: var(--cc-border-selection-hover);
}

@media (max-width: 768px) {
  .btn-stacked {
    flex-direction: column;
    gap: 0.2rem;
  }

  .btn-stacked .btn {
    width: 100%;
    justify-content: center;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .table-container.position-relative {
    border-radius: 0;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }
}

.navbar {
  background: linear-gradient(90deg, #0b1220 0%, #111827 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.navbar-brand {
  position: relative;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: #ff4d00;
  padding: 0.3rem 0.9rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 150ms ease, box-shadow 180ms ease, text-shadow 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.navbar-brand::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.38), rgba(255, 255, 255, 0.06));
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
  opacity: 0.7;
}

.navbar-brand:hover,
.navbar-brand:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  text-shadow: 0 6px 16px rgba(255, 77, 0, 0.3);
  color: #ff5f1a;
  border-color: rgba(255, 77, 0, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.navbar-brand:hover::after,
.navbar-brand:focus-visible::after {
  transform: translateY(-1px) scaleX(1.1);
  background: linear-gradient(90deg, rgba(255, 77, 0, 0.6), rgba(255, 255, 255, 0.1));
  opacity: 0.9;
}

.brand-mark {
  height: 18px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.brand-text {
  display: inline-block;
  line-height: 1.15;
}

.navbar .nav-link {
  color: rgba(226, 232, 240, 0.85);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-inline: 0.85rem;
  border-radius: 8px;
  transition: color 140ms ease, opacity 140ms ease, text-shadow 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  filter: brightness(1.05);
  background: transparent;
}

.navbar .nav-link.active {
  color: #ff5f1a;
  text-shadow: 0 0 10px rgba(255, 95, 26, 0.35);
  box-shadow: inset 0 -2px 0 rgba(255, 95, 26, 0.7);
  background: transparent;
}

.navbar-text {
  color: rgba(226, 232, 240, 0.8);
}

.cc-theme-toggle {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.cc-theme-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.cc-theme-toggle:focus-visible {
  color: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.36);
}

.cc-theme-toggle-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cc-theme-toggle-sun {
  display: none;
}

[data-bs-theme="dark"] .cc-theme-toggle-moon {
  display: none;
}

[data-bs-theme="dark"] .cc-theme-toggle-sun {
  display: block;
}

[data-bs-theme="dark"] .pika-single {
  color: var(--cc-text-body);
  background: var(--cc-surface);
  border-color: var(--cc-border-strong);
  box-shadow: var(--cc-shadow-panel);
}

[data-bs-theme="dark"] .pika-label,
[data-bs-theme="dark"] .pika-button {
  color: var(--cc-text-body);
  background: var(--cc-surface-muted);
}

[data-bs-theme="dark"] .pika-table th {
  color: var(--cc-text-muted);
}

:root .is-today .pika-button {
  color: var(--cc-link-action);
}

:root .is-selected .pika-button {
  color: var(--cc-text-on-accent);
  background: var(--cc-accent);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

:root .pika-button:hover,
:root .pika-row.pick-whole-week:hover .pika-button {
  color: var(--cc-text-strong);
  background: var(--cc-surface-warm-hover);
}

[data-bs-theme="dark"] .is-disabled .pika-button {
  color: var(--cc-text-disabled);
}

[data-bs-theme="dark"] .pika-prev,
[data-bs-theme="dark"] .pika-next {
  filter: invert(1) brightness(1.35);
}

@media (prefers-reduced-motion: reduce) {
  .cc-theme-toggle {
    transition: none;
  }

  .cc-theme-toggle:hover {
    transform: none;
  }
}

.spinner-brand {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--cc-spinner-track);
  border-top: 2px solid var(--cc-control-indicator);
  border-radius: 50%;
  animation: spin-brand 1s linear infinite;
}

@keyframes spin-brand {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
