:root {
  color-scheme: light;
  --page: #f3f6f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f7f9fa;
  --surface-strong: #eaf0f2;
  --text: #343537;
  --text-strong: #242426;
  --muted: #6d7377;
  --subtle: #8b9296;
  --border: #dbe3e7;
  --border-strong: #c8d4da;
  --navy: #252426;
  --navy-light: #393638;
  --accent: #008d97;
  --accent-strong: #007b85;
  --accent-soft: #e2f7f8;
  --cyan: #12d4d9;
  --normal: #177b5d;
  --normal-soft: #e6f5ef;
  --watch: #8a6800;
  --watch-soft: #fff8cc;
  --intervention: #d80000;
  --intervention-soft: #ffe8e8;
  --unavailable: #74818a;
  --shadow-sm: 0 1px 2px rgba(7, 26, 39, 0.04), 0 8px 22px rgba(7, 26, 39, 0.045);
  --shadow-md: 0 18px 50px rgba(7, 26, 39, 0.09);
  --radius: 18px;
  --radius-sm: 12px;
  --focus: #007f8a;
  --curve-planned: #5f6b70;
  --curve-actual: #008d97;
}

:root[data-density="compact"] {
  --radius: 14px;
  --radius-sm: 10px;
}

:root[data-density="compact"] .panel,
:root[data-density="compact"] .status-banner {
  padding: 0.85rem 1rem;
}

:root[data-density="compact"] .kpi-grid,
:root[data-density="compact"] .overview-grid,
:root[data-density="compact"] .station-detail-grid {
  gap: 0.75rem;
}

#dashboardContent {
  display: flex;
  flex-direction: column;
  gap: inherit;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111416;
  --surface: #1a1e20;
  --surface-raised: #202527;
  --surface-soft: #15191b;
  --surface-strong: #272d30;
  --text: #e0e7e9;
  --text-strong: #f6fbfc;
  --muted: #9fb0b9;
  --subtle: #788c98;
  --border: #303638;
  --border-strong: #454d50;
  --navy: #111416;
  --navy-light: #272d30;
  --accent: #33ced5;
  --accent-strong: #6ee1e5;
  --accent-soft: #17383b;
  --cyan: #33ced5;
  --normal: #4ec89a;
  --normal-soft: #12392e;
  --watch: #ffd83d;
  --watch-soft: #3a310a;
  --intervention: #ff5a5f;
  --intervention-soft: #451416;
  --unavailable: #a2b0b8;
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 22px 60px rgba(0, 0, 0, 0.3);
  --focus: #59c9ff;
  --curve-planned: #a9b4b8;
  --curve-actual: #33ced5;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
input[type="date"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1480px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(37, 36, 38, 0.98);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  text-decoration: none;
}

.brand-logo-tile {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
}

.brand-logo-tile img {
  width: 55px;
  height: 55px;
  max-width: none;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.16em;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: #b8c4c7;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.environment-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce8ed;
  font-size: 12px;
  font-weight: 650;
}

.environment-badge > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64d9bc;
  box-shadow: 0 0 0 4px rgba(100, 217, 188, 0.13);
}

.timezone-label {
  color: #b8cad3;
  font-size: 13px;
}

.icon-button,
.date-arrow,
.today-button,
.topbar-action,
.notice button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.icon-button {
  display: grid;
  width: 42px;
  place-items: center;
  border-color: rgba(255, 255, 255, 0.15);
  color: #d7e5eb;
}

.icon-button:hover,
.topbar-action:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

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

.theme-icon-moon,
:root[data-theme="dark"] .theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #d7e5eb;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.page-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 38px 24px 48px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 720;
  line-height: 1.12;
}

h2 {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 720;
  line-height: 1.25;
}

h3 {
  font-size: 15px;
  font-weight: 720;
}

.heading-context {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.date-panel {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.date-arrow {
  display: grid;
  width: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--muted);
}

.date-arrow:hover,
.today-button:hover {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--text-strong);
}

.date-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.date-input-wrap {
  display: grid;
  align-content: center;
  min-width: 180px;
  padding: 2px 12px;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.date-input-wrap span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.date-input-wrap input {
  width: 100%;
  min-height: 27px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 690;
}

.today-button {
  padding: 0 13px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 720;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.notice div {
  display: grid;
  gap: 2px;
}

.notice strong {
  color: var(--text-strong);
}

.notice span {
  color: var(--muted);
}

.notice-error {
  border-color: color-mix(in srgb, var(--intervention) 30%, var(--border));
  background: var(--intervention-soft);
}

.notice button {
  flex: 0 0 auto;
  padding: 0 14px;
  border-color: color-mix(in srgb, var(--intervention) 35%, var(--border));
  color: var(--intervention);
  font-weight: 700;
}

.dashboard-loading {
  display: grid;
  gap: 20px;
}

.loading-banner,
.loading-card {
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.loading-banner {
  height: 150px;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.loading-card {
  height: 178px;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.status-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px);
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.status-banner[data-level="normal"] {
  border-color: color-mix(in srgb, var(--normal) 25%, var(--border));
  background: linear-gradient(110deg, var(--normal-soft), var(--surface) 48%);
}

.status-banner[data-level="watch"] {
  border-color: color-mix(in srgb, var(--watch) 26%, var(--border));
  background: linear-gradient(110deg, var(--watch-soft), var(--surface) 48%);
}

.status-banner[data-level="intervention"] {
  border-color: color-mix(in srgb, var(--intervention) 27%, var(--border));
  background: linear-gradient(110deg, var(--intervention-soft), var(--surface) 48%);
}

.status-symbol {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--accent);
}

.status-banner[data-level="normal"] .status-symbol {
  background: var(--normal-soft);
  color: var(--normal);
}

.status-banner[data-level="watch"] .status-symbol {
  background: var(--watch-soft);
  color: var(--watch);
}

.status-banner[data-level="intervention"] .status-symbol {
  background: var(--intervention-soft);
  color: var(--intervention);
}

.status-symbol svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.status-symbol-mark {
  stroke-width: 2.2;
}

.status-copy h2 {
  margin-bottom: 5px;
  font-size: 25px;
}

.status-copy p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.programme-progress {
  display: grid;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.programme-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.programme-progress-head strong {
  color: var(--text-strong);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.programme-progress svg {
  width: 100%;
  height: 12px;
}

.programme-track {
  fill: var(--surface-strong);
}

.programme-fill {
  fill: var(--accent);
  transition: width 320ms ease;
}

.status-banner[data-level="normal"] .programme-fill { fill: var(--normal); }
.status-banner[data-level="watch"] .programme-fill { fill: var(--watch); }
.status-banner[data-level="intervention"] .programme-fill { fill: var(--intervention); }

.programme-progress > span {
  color: var(--muted);
  font-size: 12px;
}

.section-heading,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.compact-heading {
  align-items: flex-end;
  margin-bottom: 13px;
}

.compact-heading h2 {
  margin-bottom: 0;
}

.freshness {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-live-status {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-live-status > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--unavailable);
}

.dashboard-live-status[data-state="current"] .dashboard-live-dot {
  background: var(--normal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--normal) 14%, transparent);
}

.dashboard-live-status[data-state="refreshing"] .dashboard-live-dot {
  background: var(--accent);
  animation: dashboard-live-pulse 1.2s ease-in-out infinite;
}

.dashboard-live-status[data-state="retrying"] .dashboard-live-dot {
  background: var(--watch);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--watch) 14%, transparent);
}

@keyframes dashboard-live-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.kpi-card {
  display: flex;
  min-width: 0;
  min-height: 178px;
  flex-direction: column;
  padding: 18px;
}

.kpi-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.kpi-label {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.01em;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kpi-topline .status-chip {
  flex: 0 0 auto;
}

.status-chip,
.flight-status,
.summary-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 720;
  white-space: nowrap;
}

.status-chip {
  gap: 5px;
  padding: 4px 7px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-chip::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-normal { background: var(--normal-soft); color: var(--normal); }
.status-watch { background: var(--watch-soft); color: var(--watch); }
.status-intervention { background: var(--intervention-soft); color: var(--intervention); }
.status-unavailable { background: var(--surface-strong); color: var(--unavailable); }

.kpi-value {
  margin: 14px 0 8px;
  color: var(--text-strong);
  font-size: clamp(26px, 2.1vw, 34px);
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1;
}

.kpi-context {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kpi-period {
  margin: -1px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.kpi-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 10px;
  font-weight: 650;
}

.kpi-meta span:last-child {
  text-align: right;
}

.overview-grid,
.secondary-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.overview-grid {
  grid-template-columns: minmax(0, 1.95fr) minmax(320px, 0.9fr);
}

.secondary-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
}

.panel {
  min-width: 0;
  padding: 22px;
}

.panel-header {
  margin-bottom: 20px;
}

.panel-header h2 {
  margin-bottom: 4px;
}

.panel-header p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.chart-legend,
.chart-key {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.chart-legend span,
.chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-legend-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  font-style: normal;
}

.timeline-legend-normal,
.timeline-legend-awaiting,
.timeline-legend-future,
.timeline-legend-unavailable {
  border-radius: 50%;
}

.timeline-legend-normal {
  border: 2px solid var(--surface);
  background: var(--normal);
  box-shadow: 0 0 0 1px var(--normal);
}

.timeline-legend-late::before,
.timeline-legend-critical::before {
  position: absolute;
  top: 0;
  left: 5px;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--timeline-legend-severity, var(--watch));
  content: "";
}

.timeline-legend-late::after,
.timeline-legend-critical::after {
  position: absolute;
  top: 0;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--timeline-legend-severity, var(--watch));
  content: "";
}

.timeline-legend-critical {
  --timeline-legend-severity: var(--intervention);
}

.timeline-legend-cancelled::before,
.timeline-legend-cancelled::after {
  position: absolute;
  top: 5px;
  left: 0;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--intervention);
  content: "";
}

.timeline-legend-cancelled::before {
  transform: rotate(45deg);
}

.timeline-legend-cancelled::after {
  transform: rotate(-45deg);
}

.timeline-legend-awaiting {
  border: 2px solid var(--watch);
  background: var(--surface);
}

.timeline-legend-future {
  border: 2px solid var(--unavailable);
  background: var(--surface);
}

.timeline-legend-unavailable {
  display: inline-grid;
  border: 0;
  border-radius: 2px;
  background: var(--unavailable);
  color: var(--surface);
  font-size: 9px;
  font-weight: 850;
  place-items: center;
}

.timeline-legend-unavailable::after {
  content: "?";
}

.target-key {
  width: 2px;
  height: 12px;
  background: var(--text-strong);
}

.baseline-key {
  width: 7px;
  height: 7px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.chart-wrap {
  width: 100%;
  min-height: 280px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.departure-timeline {
  width: 100%;
  height: auto;
  overflow: visible;
}

.timeline-grid,
.timeline-tick {
  stroke: var(--border);
  stroke-width: 1;
}

.timeline-target-band {
  fill: var(--normal-soft);
  opacity: 0.78;
}

.timeline-target-line {
  stroke: var(--normal);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}

.timeline-unavailable-lane {
  stroke: var(--unavailable);
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.timeline-axis-label,
.timeline-axis-title,
.timeline-target-label,
.timeline-flight-number,
.timeline-flight-time,
.timeline-exception-label,
.timeline-flight-cancelled {
  font-family: inherit;
}

.timeline-axis-label {
  fill: var(--subtle);
  font-size: 10px;
  font-weight: 600;
}

.timeline-axis-title,
.timeline-target-label {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.timeline-flight-number {
  fill: var(--text-strong);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.timeline-flight-time {
  fill: var(--muted);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.timeline-city-pair {
  fill: var(--text);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.timeline-unavailable-lane-label {
  fill: var(--unavailable);
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.timeline-stem {
  stroke-linecap: round;
  stroke-width: 2.2;
}

.timeline-stem-watch {
  stroke: var(--watch);
}

.timeline-stem-intervention {
  stroke: var(--intervention);
}

.timeline-stem-projected {
  stroke: var(--watch);
  stroke-dasharray: 3 3;
}

.timeline-dot {
  vector-effect: non-scaling-stroke;
}

.timeline-dot-normal {
  fill: var(--normal);
  stroke: var(--surface);
  stroke-width: 1.2;
}

.timeline-dot-watch {
  fill: var(--watch);
  stroke: var(--surface);
  stroke-width: 1.5;
}

.timeline-dot-intervention {
  fill: var(--intervention);
  stroke: var(--surface);
  stroke-width: 1.5;
}

.timeline-dot-projected {
  fill: var(--surface);
  stroke: var(--watch);
  stroke-width: 2;
}

.timeline-dot-future {
  fill: var(--surface);
  stroke: var(--unavailable);
  stroke-width: 1.7;
}

.timeline-unavailable-mark {
  fill: var(--unavailable);
  stroke: var(--surface);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.timeline-unavailable-glyph {
  fill: var(--surface);
  font-family: inherit;
  font-size: 10px;
  font-weight: 850;
  pointer-events: none;
}

.timeline-exception-label {
  fill: var(--text-strong);
  font-size: 11px;
  font-weight: 750;
}

.timeline-flight-cancelled {
  fill: var(--intervention);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.accessible-data {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.accessible-data summary {
  width: fit-content;
  padding-top: 12px;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 690;
}

.accessible-data table {
  margin-top: 10px;
}

.attention-panel {
  background: linear-gradient(165deg, var(--surface-raised), var(--surface-soft));
}

.count-badge {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--watch-soft);
  color: var(--watch);
  font-size: 13px;
  font-weight: 800;
}

.attention-list {
  display: grid;
  gap: 10px;
}

.attention-item {
  padding: 14px 0 4px 16px;
  border-top: 1px solid var(--border);
  border-left: 3px solid var(--watch);
}

.attention-item:first-child {
  border-top: 0;
}

.attention-item[data-severity="intervention"] {
  border-left-color: var(--intervention);
}

.attention-item h3 {
  margin-bottom: 5px;
}

.attention-item > p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.attention-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.empty-attention {
  display: grid;
  min-height: 230px;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.empty-attention svg {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  fill: none;
  stroke: var(--normal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.empty-attention strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text-strong);
}

.empty-attention p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.station-chart,
.delay-chart {
  display: grid;
  gap: 15px;
}

.station-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.85fr) minmax(220px, 2.2fr) 74px;
  align-items: center;
  gap: 14px;
}

.station-name strong,
.station-name span {
  display: block;
}

.station-name strong {
  color: var(--text-strong);
  font-size: 13px;
}

.station-name span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-bar {
  width: 100%;
  height: 22px;
  overflow: visible;
}

.station-track {
  fill: var(--surface-strong);
}

.station-value {
  fill: var(--accent);
}

.station-row[data-status="normal"] .station-value { fill: var(--normal); }
.station-row[data-status="watch"] .station-value { fill: var(--watch); }
.station-row[data-status="intervention"] .station-value { fill: var(--intervention); }

.station-target {
  stroke: var(--text-strong);
  stroke-width: 1.5;
}

.station-baseline {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.8;
}

.station-score {
  text-align: right;
}

.station-score strong,
.station-score span {
  display: block;
}

.station-score strong {
  color: var(--text-strong);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.station-score span {
  color: var(--muted);
  font-size: 10px;
}

.panel-total {
  color: var(--text-strong);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.delay-row {
  display: grid;
  gap: 6px;
}

.delay-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.delay-row-head strong {
  color: var(--text-strong);
  font-size: 12px;
}

.delay-row-head span {
  color: var(--muted);
  font-size: 10px;
}

.delay-bar {
  width: 100%;
  height: 11px;
}

.delay-track {
  fill: var(--surface-strong);
}

.delay-value {
  fill: var(--accent);
}

.delay-row[data-controllable="false"] .delay-value {
  fill: var(--curve-planned);
}

.chart-footnote {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.flight-panel {
  margin-bottom: 18px;
}

.summary-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.summary-pill {
  gap: 5px;
  padding: 5px 9px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 10px;
}

.summary-pill strong {
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  overflow-x: auto;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  font-size: 12px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.flight-table {
  min-width: 860px;
}

.flight-table tbody tr:hover {
  background: var(--surface-soft);
}

.flight-number {
  color: var(--text-strong);
  font-weight: 750;
}

.route-cell,
.time-cell,
.delay-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.route-cell {
  font-weight: 650;
}

.muted-value {
  color: var(--subtle);
}

.delay-late {
  color: var(--watch);
  font-weight: 720;
}

.delay-severe {
  color: var(--intervention);
  font-weight: 750;
}

.flight-status {
  padding: 4px 8px;
  font-size: 10px;
}

.flight-status.status-arrived { background: var(--normal-soft); color: var(--normal); }
.flight-status.status-airborne { background: var(--accent-soft); color: var(--accent-strong); }
.flight-status.status-delayed { background: var(--watch-soft); color: var(--watch); }
.flight-status.status-scheduled { background: var(--surface-strong); color: var(--muted); }
.flight-status.status-cancelled { background: var(--intervention-soft); color: var(--intervention); }
.flight-status.status-diverted { background: var(--watch-soft); color: var(--watch); }

.cause-cell {
  max-width: 190px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-footer {
  display: grid;
  width: 100%;
  align-items: center;
  justify-items: center;
  gap: 6px;
  padding: 18px 4px 8px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

.data-footer p {
  margin-bottom: 0;
}

.data-footer strong {
  color: var(--muted);
}

.data-footer-brand {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Secure sign-in */
.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 0.95fr) minmax(440px, 1.05fr);
  background: var(--surface);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 82% 18%, rgba(25, 199, 208, 0.18), transparent 26%),
    radial-gradient(circle at 10% 80%, rgba(25, 199, 208, 0.08), transparent 25%),
    linear-gradient(145deg, #171618, #2a282b 62%, #1e1d1f);
  color: #d9e7ed;
  overflow: hidden;
}

.login-story::after {
  position: absolute;
  right: -8%;
  bottom: -7%;
  width: min(46vw, 520px);
  height: min(46vw, 520px);
  background: url("/assets/bermudair-mark.png") center / contain no-repeat;
  content: "";
  opacity: 0.065;
}

.brand-light,
.login-story-copy,
.login-story-status {
  position: relative;
  z-index: 1;
}

.login-story-copy {
  max-width: 620px;
  margin: auto 0;
  padding: 80px 0;
}

.login-story-copy .eyebrow {
  color: #5fd6cf;
}

.login-story-copy h1 {
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 690;
  line-height: 1.02;
}

.login-story-copy > p:last-child {
  max-width: 540px;
  margin-bottom: 0;
  color: #abc3cf;
  font-size: 17px;
  line-height: 1.65;
}

.login-story-status {
  display: flex;
  max-width: 460px;
  align-items: flex-start;
  gap: 12px;
  color: #a9c0cb;
  font-size: 12px;
}

.login-story-status > span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #58d4b0;
  box-shadow: 0 0 0 5px rgba(88, 212, 176, 0.12);
}

.login-story-status p {
  margin-bottom: 0;
}

.login-story-status strong {
  display: block;
  margin-bottom: 2px;
  color: #e5f0f3;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 50px clamp(30px, 7vw, 110px);
  background: var(--surface);
}

.login-card {
  width: min(430px, 100%);
}

.login-panel-brand {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-bottom: 46px;
}

.login-panel-brand img {
  width: min(300px, 82%);
  height: auto;
}

.login-panel-brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-card h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 38px);
}

.login-intro {
  margin-bottom: 30px;
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 9px;
}

.login-card label {
  margin-top: 9px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 720;
}

.login-card input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--text-strong);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 66px;
}

.password-field button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 54px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 720;
}

.password-field button:hover {
  background: var(--accent-soft);
}

.form-error {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--intervention-soft);
  color: var(--intervention);
  font-size: 12px;
  font-weight: 650;
}

.primary-button {
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 730;
  box-shadow: 0 8px 20px rgba(11, 37, 56, 0.18);
  transition: transform 140ms ease, background 140ms ease;
}

.primary-button:hover:not(:disabled) {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.login-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.login-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: var(--normal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.login-demo-badge {
  margin-top: 20px;
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--muted);
}

@media (max-width: 1240px) {
  .kpi-grid,
  .loading-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpi-card {
    min-height: 160px;
  }
}

@media (max-width: 1020px) {
  .topbar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .overview-grid,
  .secondary-grid {
    grid-template-columns: 1fr;
  }

  .attention-panel {
    min-height: auto;
  }

  .attention-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attention-item {
    border-top: 0;
  }

  .login-shell {
    grid-template-columns: minmax(360px, 0.85fr) minmax(400px, 1.15fr);
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding: 28px 18px 38px;
  }

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

  .date-panel {
    align-self: flex-start;
  }

  .status-banner {
    grid-template-columns: auto 1fr;
  }

  .programme-progress {
    grid-column: 1 / -1;
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .attention-list {
    grid-template-columns: 1fr;
  }

  .login-shell {
    display: block;
    background: var(--surface);
  }

  .login-story {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 38px 24px;
  }

  .login-panel-brand {
    margin-bottom: 56px;
  }
}

@media (max-width: 680px) {
  .brand small,
  .timezone-label,
  .environment-badge {
    display: none;
  }

  .topbar {
    min-height: 64px;
  }

  .brand-logo-tile {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-logo-tile img {
    width: 48px;
    height: 48px;
  }

  .page-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .date-panel {
    width: 100%;
    flex-wrap: wrap;
  }

  .date-input-wrap {
    min-width: 130px;
    flex: 1 1 150px;
  }

  .today-button {
    flex: 1 0 100%;
    border-color: var(--border);
  }

  .status-banner {
    padding: 19px;
  }

  .status-symbol {
    width: 48px;
    height: 48px;
  }

  .status-copy h2 {
    font-size: 21px;
  }

  .kpi-grid,
  .loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kpi-card {
    min-height: 170px;
    padding: 15px;
  }

  .kpi-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .kpi-label {
    white-space: normal;
  }

  .kpi-value {
    font-size: 27px;
  }

  .panel {
    padding: 18px;
  }

  .panel-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .chart-legend,
  .chart-key,
  .summary-pills {
    justify-content: flex-start;
  }

  .chart-wrap {
    min-height: 210px;
  }

  .station-row {
    grid-template-columns: 90px minmax(130px, 1fr) 62px;
    gap: 9px;
  }

  .data-footer {
    align-items: center;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 29px;
  }

  .status-banner {
    grid-template-columns: 1fr;
  }

  .status-symbol {
    display: none;
  }

  .kpi-grid,
  .loading-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-height: 150px;
  }

  .station-row {
    grid-template-columns: 78px minmax(110px, 1fr) 54px;
  }

  .station-name span {
    display: none;
  }

  .flight-table {
    min-width: 0;
  }

  .flight-table thead {
    display: none;
  }

  .flight-table,
  .flight-table tbody,
  .flight-table tr,
  .flight-table td {
    display: block;
    width: 100%;
  }

  .flight-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .flight-table tr:last-child {
    border-bottom: 0;
  }

  .flight-table td {
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .flight-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--subtle);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .cause-cell {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Pinax executive interface */
:root {
  --page: #f4f5f5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f7f8f8;
  --surface-strong: #edf0f1;
  --text: #3b4143;
  --text-strong: #222627;
  --muted: #667074;
  --subtle: #7d878b;
  --border: #d8dddf;
  --border-strong: #bec7ca;
  --navy: #272527;
  --navy-light: #383638;
  --accent: #008d97;
  --accent-strong: #007982;
  --accent-soft: #e5f4f5;
  --normal: #25765f;
  --normal-soft: #e8f2ee;
  --watch: #8a6800;
  --watch-soft: #fff8cc;
  --intervention: #d80000;
  --intervention-soft: #ffe8e8;
  --shadow-sm: none;
  --shadow-md: none;
  --radius: 8px;
  --radius-sm: 6px;
}

:root[data-theme="dark"] {
  --page: #111415;
  --surface: #1a1e1f;
  --surface-raised: #1a1e1f;
  --surface-soft: #151819;
  --surface-strong: #252a2c;
  --text: #d9dfe1;
  --text-strong: #f3f6f7;
  --muted: #a3adb1;
  --subtle: #839095;
  --border: #343a3c;
  --border-strong: #4b5457;
  --accent: #32c7cf;
  --accent-strong: #66d9df;
  --accent-soft: #17383b;
  --normal: #5cc49f;
  --normal-soft: #17372d;
  --watch: #ffd83d;
  --watch-soft: #3a310a;
  --intervention: #ff5a5f;
  --intervention-soft: #451416;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.topbar {
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid #d8dddf;
  background: #ffffff;
  color: #272527;
  backdrop-filter: none;
}

.brand {
  gap: 14px;
  color: #272527;
}

.header-wordmark {
  display: block;
  width: 154px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: #d8dddf;
}

.product-lockup {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand .product-lockup strong {
  color: #272527;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand .product-lockup small {
  margin: 0;
  color: #70777a;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.topbar-meta {
  gap: 10px;
}

.environment-badge {
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #cfd5d7;
  border-radius: 4px;
  background: #f5f6f6;
  color: #5f686b;
  font-size: 11px;
  font-weight: 600;
}

.environment-badge > span {
  display: none;
}

.timezone-label {
  color: #667074;
  font-size: 12px;
}

.icon-button,
.topbar-action {
  min-height: 34px;
  border-color: #d8dddf;
  border-radius: 5px;
  color: #4f585b;
}

.icon-button {
  width: 36px;
}

.icon-button:hover,
.topbar-action:hover {
  border-color: #b7c0c3;
  background: #f4f5f5;
  color: #222627;
}

.topbar-action {
  padding: 0 11px;
  font-weight: 500;
}

.page-shell {
  width: min(1440px, 100%);
  padding: 32px 24px 46px;
}

.page-heading {
  margin-bottom: 22px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

h1,
h2,
h3 {
  letter-spacing: -0.015em;
}

h1 {
  margin-bottom: 5px;
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 600;
}

h2 {
  font-size: 19px;
  font-weight: 600;
}

h3 {
  font-weight: 600;
}

.heading-context {
  font-size: 14px;
}

.date-panel {
  gap: 4px;
  padding: 5px;
  border-radius: 7px;
  box-shadow: none;
}

.date-arrow,
.today-button {
  min-height: 38px;
  border-radius: 5px;
}

.date-arrow {
  width: 38px;
  flex-basis: 38px;
}

.date-input-wrap {
  min-width: 174px;
  padding: 1px 11px;
}

.date-input-wrap span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.date-input-wrap input {
  font-size: 13px;
  font-weight: 500;
}

.today-button {
  padding: 0 12px;
  font-weight: 500;
}

.status-banner {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  margin-bottom: 28px;
  padding: 17px 20px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.status-banner[data-level="normal"],
.status-banner[data-level="watch"],
.status-banner[data-level="intervention"] {
  background: var(--surface);
}

.status-banner[data-level="normal"] { border-color: var(--border); border-left-color: var(--normal); }
.status-banner[data-level="watch"] { border-color: var(--border); border-left-color: var(--watch); }
.status-banner[data-level="intervention"] { border-color: var(--border); border-left-color: var(--intervention); }

.status-symbol {
  display: none;
}

.status-copy h2 {
  margin-bottom: 3px;
  font-size: 21px;
}

.status-copy p:last-child {
  font-size: 13px;
}

.programme-progress {
  gap: 6px;
  padding-left: 20px;
}

.programme-progress-head,
.programme-progress > span {
  font-size: 11px;
}

.programme-progress-head strong {
  font-size: 13px;
  font-weight: 600;
}

.programme-progress svg {
  height: 10px;
}

.compact-heading {
  margin-bottom: 11px;
}

.freshness {
  font-size: 12px;
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.kpi-card {
  min-height: 164px;
  padding: 17px 16px 15px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.kpi-card:last-child {
  border-right: 0;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
}

.status-chip {
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.status-normal,
.status-watch,
.status-intervention,
.status-unavailable {
  background: transparent;
}

.kpi-value {
  margin: 13px 0 7px;
  font-size: clamp(25px, 2vw, 31px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.kpi-context {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.kpi-meta {
  gap: 7px;
  padding-top: 10px;
  font-size: 10.5px;
  font-weight: 400;
}

.overview-grid,
.secondary-grid {
  gap: 16px;
  margin-bottom: 16px;
}

.overview-grid {
  grid-template-columns: minmax(0, 1.85fr) minmax(330px, 0.85fr);
}

.secondary-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.8fr);
}

.panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header p:not(.eyebrow) {
  font-size: 12.5px;
}

.chart-legend,
.chart-key {
  font-size: 11px;
  font-weight: 500;
}

.attention-panel {
  background: var(--surface);
}

.count-badge {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text-strong);
  font-weight: 600;
}

.attention-list {
  gap: 0;
}

.attention-item {
  padding: 14px 0 13px 14px;
  border-left-width: 2px;
}

.attention-item h3 {
  font-size: 14px;
}

.attention-item > p {
  font-size: 12px;
}

.attention-meta {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.empty-attention {
  min-height: 210px;
}

.station-chart,
.delay-chart {
  gap: 14px;
}

.station-name strong,
.station-score strong {
  font-size: 12.5px;
  font-weight: 600;
}

.station-name span,
.station-score span,
.delay-row-head span {
  font-size: 10.5px;
}

.panel-total {
  font-size: 18px;
  font-weight: 600;
}

.delay-row-head,
.delay-row-head strong {
  font-size: 12px;
}

.summary-pills {
  gap: 0;
}

.summary-pill {
  gap: 4px;
  padding: 0 9px;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-size: 10.5px;
  font-weight: 400;
}

.summary-pill:first-child {
  padding-left: 0;
  border-left: 0;
}

.summary-pill strong {
  font-weight: 600;
}

table {
  font-size: 13px;
}

th,
td {
  padding: 10px 11px;
}

th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--surface);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.flight-number,
.route-cell {
  font-weight: 600;
}

.flight-status {
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 500;
}

.data-footer {
  padding-top: 18px;
  font-size: 10.5px;
}

.data-footer-brand {
  font-size: 14px;
}

/* Restrained sign-in */
.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  grid-template-columns: 1fr;
  padding: 36px 20px;
  background: var(--page);
}

.login-panel {
  display: block;
  min-height: auto;
  padding: 0;
  background: transparent;
}

.login-card {
  width: min(420px, calc(100vw - 40px));
  padding: 34px 38px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.login-panel-brand {
  display: grid;
  gap: 5px;
  margin-bottom: 28px;
}

.login-panel-brand img {
  width: 224px;
  margin-bottom: 9px;
}

.login-panel-brand strong {
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 600;
}

.login-panel-brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.login-card h1 {
  margin-bottom: 7px;
  font-size: 27px;
}

.login-intro {
  margin-bottom: 18px;
  font-size: 13px;
}

.login-card label {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
}

.login-card input {
  min-height: 44px;
  border-radius: 5px;
  background: var(--surface);
}

.password-field button {
  border-radius: 4px;
  font-weight: 500;
}

.form-error {
  border-radius: 5px;
  font-weight: 500;
}

.primary-button {
  min-height: 44px;
  margin-top: 12px;
  border-radius: 5px;
  font-weight: 600;
  box-shadow: none;
  transition: background 140ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: none;
}

.login-security {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10.5px;
}

.demo-access {
  margin-top: 12px;
  padding: 11px 12px 10px;
  border-left: 2px solid var(--accent);
  background: var(--surface-soft);
}

.demo-access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.demo-access-header strong {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
}

.demo-credential-list {
  display: grid;
  gap: 5px;
  margin: 0;
}

.demo-credential-list > div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
}

.demo-credential-list dt {
  color: var(--muted);
  font-size: 10.5px;
}

.demo-credential-list dd {
  min-width: 0;
  margin: 0;
}

.demo-credential-list code {
  color: var(--text-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
  user-select: all;
  white-space: pre-wrap;
}

@media (max-width: 1240px) {
  .kpi-grid,
  .loading-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpi-card {
    min-height: 150px;
  }

  .kpi-card:nth-child(3n) {
    border-right: 0;
  }

  .kpi-card:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding: 26px 18px 38px;
  }

  .page-heading {
    gap: 18px;
  }

  .status-banner {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .programme-progress {
    grid-column: auto;
    padding: 14px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .login-panel {
    min-height: auto;
    padding: 0;
  }

  .login-panel-brand {
    margin-bottom: 36px;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 0 14px;
  }

  .header-wordmark {
    width: 130px;
  }

  .brand-divider {
    height: 24px;
  }

  .brand .product-lockup small,
  .timezone-label,
  .environment-badge {
    display: none;
  }

  .date-panel {
    width: 100%;
  }

  .status-banner {
    padding: 16px;
  }

  .kpi-grid,
  .loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .kpi-card {
    min-height: 154px;
    padding: 15px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .kpi-card:nth-child(3n) {
    border-right: 1px solid var(--border);
  }

  .kpi-card:nth-child(2n) {
    border-right: 0;
  }

  .kpi-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .kpi-topline {
    flex-direction: row;
  }

  .panel {
    padding: 17px;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 10px;
  }

  .header-wordmark {
    width: 116px;
  }

  .brand .product-lockup strong {
    font-size: 13px;
  }

  .page-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .kpi-grid,
  .loading-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card,
  .kpi-card:nth-child(2n),
  .kpi-card:nth-child(3n),
  .kpi-card:nth-last-child(-n + 2) {
    min-height: 142px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .kpi-card:last-child {
    border-bottom: 0;
  }

  .login-shell {
    padding: 20px 12px;
  }

  .login-card {
    width: min(420px, calc(100vw - 24px));
    padding: 32px 24px 27px;
  }

  .login-panel-brand img {
    width: min(220px, 85%);
  }

  .demo-access-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

/* Wallboard chart clarity */
.insight-grid {
  min-width: 0;
}

.timeline-axis-label {
  font-size: 12px;
  font-weight: 500;
}

.timeline-axis-title,
.timeline-target-label {
  font-size: 10px;
}

.timeline-exception-label,
.timeline-flight-cancelled {
  font-size: 13px;
  font-weight: 650;
}

.station-chart,
.delay-chart {
  gap: 17px;
}

.station-row {
  grid-template-columns: minmax(130px, 0.8fr) minmax(260px, 2.4fr) 96px;
  gap: 18px;
}

.station-bar {
  height: 30px;
}

.station-target,
.station-baseline {
  stroke-width: 2.5;
}

.station-name strong {
  font-size: 16px;
}

.station-score strong {
  font-size: 18px;
}

.station-name span,
.station-score span {
  font-size: 12px;
}

.delay-row {
  gap: 8px;
}

.delay-row-head,
.delay-row-head strong {
  font-size: 15px;
}

.delay-row-head > strong {
  font-size: 18px;
}

.delay-row-head span {
  font-size: 12px;
}

.delay-bar {
  height: 18px;
}

.panel-total {
  font-size: 26px;
}

.chart-footnote {
  font-size: 12px;
}

@media (min-width: 1600px) and (min-height: 900px) {
  .topbar {
    padding-right: max(32px, calc((100vw - 1760px) / 2));
    padding-left: max(32px, calc((100vw - 1760px) / 2));
  }

  .page-shell {
    width: min(1760px, 100%);
    padding: 24px 32px 38px;
  }

  .page-heading {
    margin-bottom: 16px;
  }

  .status-banner {
    gap: 20px;
    margin-bottom: 18px;
    padding: 14px 18px;
  }

  .compact-heading {
    margin-bottom: 8px;
  }

  .kpi-grid {
    margin-bottom: 16px;
  }

  .kpi-card {
    min-height: 150px;
    padding: 14px 15px 13px;
  }

  .kpi-value {
    margin-top: 10px;
    font-size: 34px;
  }

  .insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.65fr) minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 14px;
    align-items: stretch;
    margin-bottom: 16px;
  }

  .insight-grid > .overview-grid,
  .insight-grid > .secondary-grid {
    display: contents;
  }

  .insight-grid .panel {
    padding: 18px;
  }

  .insight-grid .panel-header {
    gap: 12px;
    margin-bottom: 14px;
  }

  .insight-grid .panel-header h2 {
    font-size: 20px;
  }

  .insight-grid .panel-header p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.35;
  }

  .insight-grid .chart-legend,
  .insight-grid .chart-key {
    gap: 9px;
    font-size: 12px;
  }

  .insight-grid .chart-wrap {
    min-height: 0;
  }

  .insight-grid .accessible-data {
    margin-top: 8px;
  }

  .insight-grid .accessible-data summary {
    padding-top: 8px;
  }

  .station-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
  }

  .station-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
  }

  .station-name {
    min-width: 0;
    white-space: nowrap;
  }

  .station-name strong,
  .station-name span {
    display: inline;
  }

  .station-name span {
    margin-left: 5px;
  }

  .station-score span {
    display: none;
  }

  .station-score {
    grid-column: 2;
    grid-row: 1;
  }

  .station-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 22px;
  }

  .delay-chart {
    gap: 6px;
  }

  .delay-row {
    gap: 3px;
  }

  .delay-row-head {
    gap: 8px;
  }

  .delay-row-head > div {
    min-width: 0;
  }

  .delay-row-head > div strong,
  .delay-row-head > div span {
    display: block;
    overflow: hidden;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .delay-row-head > div strong {
    font-size: 15px;
  }

  .delay-row-head > div span {
    margin-top: 1px;
    font-size: 11.5px;
  }

  .delay-row-head > strong {
    font-size: 17px;
    white-space: nowrap;
  }

  .delay-bar {
    height: 14px;
  }

  .chart-footnote {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 11.5px;
    line-height: 1.25;
  }

  .attention-item {
    padding-top: 12px;
    padding-bottom: 11px;
  }
}

@media (max-width: 1020px) {
  .overview-grid,
  .secondary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .station-row {
    grid-template-columns: 78px minmax(0, 1fr) 64px;
    gap: 9px;
  }

  .station-bar {
    height: 26px;
  }
}

@media (max-width: 480px) {
  .station-row {
    grid-template-columns: 68px minmax(0, 1fr) 56px;
  }

  .station-name span {
    display: none;
  }

  .station-name strong {
    font-size: 15px;
  }

  .station-score strong {
    font-size: 16px;
  }
}

/* Three-second on-time performance header */
:root {
  --normal-band: #126146;
  --watch-band: #ffd83d;
  --intervention-band: #e00000;
  --unavailable-band: #526068;
  --status-band-text: #ffffff;
  --watch-band-text: #242426;
}

:root[data-theme="dark"] {
  --normal-band: #164f3d;
  --watch-band: #ffd83d;
  --intervention-band: #e00000;
  --unavailable-band: #46545c;
}

.status-banner {
  --status-band: var(--unavailable-band);
  border: 0;
  background: var(--status-band);
  color: var(--status-band-text);
}

.status-banner[data-level="normal"] {
  --status-band: var(--normal-band);
  background: var(--normal-band);
}

.status-banner[data-level="watch"] {
  --status-band: var(--watch-band);
  --status-band-text: var(--watch-band-text);
  background: var(--watch-band);
}

.status-banner[data-level="intervention"] {
  --status-band: var(--intervention-band);
  background: var(--intervention-band);
}

.status-banner[data-level="unavailable"] {
  --status-band: var(--unavailable-band);
  background: var(--unavailable-band);
}

.status-copy h2,
.status-subtitle,
.status-targets,
.status-drivers,
.programme-progress,
.programme-progress-head,
.programme-progress-head strong,
.programme-progress > span {
  color: var(--status-band-text);
}

.status-targets {
  margin: 0;
  color: var(--status-band-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.035em;
  opacity: 0.9;
}

.status-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.08;
}

.status-subtitle {
  margin: 0 0 9px;
  font-size: clamp(20px, 1.7vw, 27px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
}

.status-drivers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
  max-width: 980px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.status-drivers li {
  position: relative;
  min-width: 0;
  padding-left: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.status-drivers li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.78;
  transform: translateY(-50%);
}

.programme-progress {
  border-color: color-mix(in srgb, var(--status-band-text) 28%, transparent);
}

.programme-progress-head strong {
  font-size: 24px;
  font-weight: 600;
}

.programme-track {
  fill: color-mix(in srgb, var(--status-band-text) 26%, transparent);
}

.status-banner .programme-fill,
.status-banner[data-level="normal"] .programme-fill,
.status-banner[data-level="watch"] .programme-fill,
.status-banner[data-level="intervention"] .programme-fill {
  fill: var(--status-band-text);
}

@media (min-width: 1600px) {
  .topbar {
    min-height: 66px;
    padding-right: max(34px, calc((100vw - 1800px) / 2));
    padding-left: max(34px, calc((100vw - 1800px) / 2));
  }

  .page-heading .eyebrow {
    display: none;
  }

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

  .page-shell {
    width: min(1800px, 100%);
    padding: 12px 30px 0;
  }

  .page-heading {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
  }

  .heading-context {
    color: var(--text-strong);
    font-size: 18px;
    font-weight: 500;
  }

  .date-panel {
    gap: 3px;
    padding: 3px;
  }

  .date-arrow,
  .today-button {
    min-height: 32px;
  }

  .date-arrow {
    width: 34px;
    flex-basis: 34px;
  }

  .date-input-wrap {
    min-width: 164px;
  }

  .status-banner {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
    min-height: 210px;
    gap: 42px;
    margin-bottom: 18px;
    padding: 22px 34px;
    border-radius: 10px;
  }

  .status-copy h2 {
    margin: 2px 0 12px;
    font-size: clamp(48px, 3.6vw, 62px);
  }

  .status-subtitle {
    font-size: clamp(25px, 1.9vw, 32px);
  }

  .status-drivers {
    gap: 12px 30px;
    margin-top: 17px;
  }

  .status-drivers li {
    padding-left: 22px;
    font-size: 22px;
  }

  .status-drivers li::before {
    width: 9px;
    height: 9px;
  }

  .programme-progress {
    align-content: center;
    gap: 13px;
    padding-left: 35px;
  }

  .programme-progress-head {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 2px;
    font-size: 17px;
  }

  .programme-progress-head strong {
    font-size: 54px;
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .programme-progress svg {
    height: 16px;
  }

  .programme-progress > span {
    font-size: 15px;
    line-height: 1.35;
    opacity: 0.84;
  }

  .compact-heading {
    margin-bottom: 8px;
  }

  .compact-heading .eyebrow {
    display: none;
  }

  .compact-heading h2 {
    font-size: 22px;
  }

  .freshness {
    margin-bottom: 0;
    font-size: 15px;
  }

  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 13px;
    margin-bottom: 17px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .kpi-grid .kpi-card {
    min-height: 154px;
    padding: 17px 19px 15px;
    border: 1px solid var(--border);
    border-top: 6px solid var(--unavailable);
    border-radius: 8px;
    background: var(--surface);
  }

  .kpi-grid .kpi-card:not([data-kpi="customer-nps"])[data-status="normal"] {
    border-color: var(--normal-band);
    background: var(--normal-band);
  }

  .kpi-grid .kpi-card:not([data-kpi="customer-nps"])[data-status="watch"] {
    border-color: var(--watch-band);
    background: var(--watch-band);
  }

  .kpi-grid .kpi-card:not([data-kpi="customer-nps"])[data-status="intervention"] {
    border-color: var(--intervention-band);
    background: var(--intervention-band);
  }

  .kpi-grid .kpi-card:not([data-kpi="customer-nps"])[data-status="unavailable"] {
    border-color: var(--unavailable-band);
    background: var(--unavailable-band);
  }

  .kpi-grid .kpi-card:not([data-kpi="customer-nps"]) .kpi-label,
  .kpi-grid .kpi-card:not([data-kpi="customer-nps"]) .kpi-value,
  .kpi-grid .kpi-card:not([data-kpi="customer-nps"]) .kpi-period,
  .kpi-grid .kpi-card:not([data-kpi="customer-nps"]) .kpi-context,
  .kpi-grid .kpi-card:not([data-kpi="customer-nps"]) .status-chip {
    color: var(--status-band-text);
  }

  .kpi-grid .kpi-card:not([data-kpi="customer-nps"]) .status-chip {
    border-color: color-mix(in srgb, var(--status-band-text) 45%, transparent);
    background: transparent;
  }

  .kpi-card[data-kpi="completion"] {
    display: none;
  }

  .kpi-card[data-status="normal"] { border-top-color: var(--normal); }
  .kpi-card[data-status="watch"] { border-top-color: var(--watch); }
  .kpi-card[data-status="intervention"] { border-top-color: var(--intervention); }

  .kpi-topline {
    align-items: center;
  }

  .kpi-label {
    display: block;
    color: var(--text-strong);
    font-size: 17px;
    font-weight: 500;
    -webkit-line-clamp: unset;
  }

  .kpi-card .status-chip,
  .kpi-card .kpi-context,
  .kpi-card .kpi-meta {
    display: none;
  }

  .kpi-card:not([data-status="normal"]) .status-chip {
    display: inline-flex;
    font-size: 13px;
  }

  .kpi-card:not([data-status="normal"]) .kpi-context {
    display: -webkit-box;
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .kpi-value {
    margin: 18px 0 0;
    font-size: 47px;
    font-weight: 650;
    letter-spacing: -0.04em;
  }

  .kpi-card[data-kpi="customer-nps"] .kpi-value {
    margin-bottom: 10px;
  }

  .kpi-card[data-kpi="customer-nps"] .kpi-period {
    margin: 0;
    font-size: 15px;
  }

  .kpi-card:not([data-status="normal"]) .kpi-value {
    margin-bottom: 9px;
  }

  .insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(380px, 0.75fr);
    gap: 17px;
    align-items: stretch;
    margin-bottom: 0;
  }

  .insight-grid > .overview-grid {
    display: contents;
  }

  .insight-grid > .secondary-grid {
    display: none;
  }

  .insight-grid .panel {
    min-height: 368px;
    padding: 22px 25px;
    border-radius: 8px;
  }

  .insight-grid .panel-header {
    margin-bottom: 10px;
  }

  .insight-grid .panel-header h2 {
    font-size: 25px;
  }

  .insight-grid .panel-header p:not(.eyebrow) {
    font-size: 15px;
  }

  .insight-grid .panel-header .eyebrow {
    font-size: 13px;
  }

  .insight-grid .chart-legend {
    font-size: 15px;
  }

  .curve-panel .chart-wrap {
    display: grid;
    min-height: 0;
    place-items: center;
  }

  .curve-panel .departure-timeline {
    width: min(100%, 1050px);
  }

  .timeline-axis-label {
    font-size: 14px;
  }

  .timeline-axis-title,
  .timeline-target-label {
    font-size: 12px;
  }

  .timeline-flight-number {
    font-size: 13px;
  }

  .timeline-flight-time {
    font-size: 10.5px;
  }

  .timeline-exception-label,
  .timeline-flight-cancelled {
    font-size: 16px;
  }

  .insight-grid .accessible-data {
    display: none;
  }

  .empty-attention {
    min-height: 250px;
  }

  .empty-attention svg {
    width: 50px;
    height: 50px;
  }

  .empty-attention strong {
    font-size: 20px;
  }

  .attention-item h3 {
    font-size: 18px;
  }

  .attention-panel .panel-header p:not(.eyebrow),
  .attention-item > p {
    display: none;
  }

  .attention-meta {
    font-size: 13px;
  }

  .flight-panel {
    display: none;
  }
}

@media (max-width: 1200px) {
  .status-drivers {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 14px;
  }
}

@media (max-width: 680px) {
  .status-copy h2 {
    font-size: clamp(29px, 9vw, 36px);
  }

  .status-subtitle {
    font-size: 20px;
  }

  .status-drivers li {
    font-size: 15px;
  }
}

/* Operational context: ranked delay attribution and mock airport weather */
.station-detail-grid {
  grid-template-columns: minmax(0, 1fr);
}

.operational-context-panel {
  margin-bottom: 18px;
}

.operational-context-panel .panel-header {
  margin-bottom: 16px;
}

.operational-context-panel .panel-header > * {
  min-width: 0;
  max-width: 100%;
}

.context-freshness {
  min-width: 0;
  max-width: 100%;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operational-context-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

.context-block {
  min-width: 0;
}

.context-block + .context-block {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.context-block-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.context-block-heading h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
}

.context-block-heading > strong {
  color: var(--text-strong);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.operational-context-panel .delay-chart {
  gap: 12px;
}

.operational-context-panel .delay-row,
.operational-context-panel .delay-row-head {
  min-width: 0;
}

.delay-code-detail {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 9px;
}

.operational-context-panel .delay-code-detail > .delay-code {
  display: inline-flex;
  min-width: 48px;
  min-height: 24px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text-strong);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.delay-code-copy {
  min-width: 0;
}

.operational-context-panel .delay-row-head .delay-code-copy strong,
.operational-context-panel .delay-row-head .delay-code-copy span {
  display: block;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operational-context-panel .delay-row-head .delay-code-copy strong {
  font-size: 14px;
}

.operational-context-panel .delay-row-head .delay-code-copy span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.delay-flight-numbers {
  color: var(--text-strong);
  font-weight: 750;
}

.operational-context-panel .delay-row-head > strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.delay-other-row {
  display: none;
}

.delay-other-causes {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 1px;
}

.operational-context-panel .delay-row-head .delay-other-causes .delay-other-cause {
  display: inline;
  overflow: visible;
  margin: 0;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.weather-summary-copy {
  margin: -3px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weather-station {
  min-width: 0;
  padding: 13px 14px 12px;
  border-top: 4px solid var(--unavailable);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.weather-station:nth-child(even) {
  border-right: 0;
}

.weather-station[data-status="normal"] { border-top-color: var(--normal); }
.weather-station[data-status="watch"] { border-top-color: var(--watch); }
.weather-station[data-status="intervention"] { border-top-color: var(--intervention); }

.weather-station-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.weather-station-identity {
  min-width: 0;
}

.weather-station-identity strong,
.weather-station-identity span {
  display: block;
}

.weather-station-identity strong {
  color: var(--text-strong);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.weather-station-identity span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-category {
  display: inline-flex;
  min-width: 44px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
}

.weather-normal {
  background: var(--normal-soft);
  color: var(--normal);
}

.weather-watch {
  background: var(--watch-soft);
  color: var(--watch);
}

.weather-intervention {
  background: var(--intervention-soft);
  color: var(--intervention);
}

.weather-condition {
  margin: 9px 0 8px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
}

.weather-brief {
  display: none;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
}

.weather-metrics > div:first-child {
  grid-column: 1 / -1;
}

.weather-metrics dt,
.weather-metrics dd {
  margin: 0;
}

.weather-metrics dt {
  color: var(--muted);
  font-size: 10px;
}

.weather-metrics dd {
  color: var(--text-strong);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.weather-impact {
  min-height: 35px;
  margin: 11px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

@media (min-width: 1600px) {
  .kpi-grid {
    margin-bottom: 15px;
  }

  .insight-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(310px, 0.65fr) minmax(430px, 0.9fr);
    gap: 17px;
  }

  .operational-context-panel {
    min-height: 368px;
    margin-bottom: 0;
    padding: 15px 18px 12px;
  }

  .operational-context-panel .panel-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    margin-bottom: 7px;
  }

  .operational-context-panel .panel-header h2 {
    font-size: 21px;
  }

  .operational-context-panel .panel-header .eyebrow {
    display: none;
  }

  .operational-context-panel .panel-header > div > p:not(.eyebrow) {
    display: none;
  }

  .context-freshness {
    margin-top: 0;
    font-size: 11px;
  }

  .operational-context-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .context-block + .context-block {
    margin-top: 8px;
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .context-block-heading {
    margin-bottom: 5px;
  }

  .context-block-heading h3 {
    font-size: 14px;
  }

  .context-block-heading > strong {
    font-size: 17px;
  }

  .operational-context-panel .delay-chart {
    gap: 4px;
  }

  .operational-context-panel .delay-row {
    gap: 2px;
  }

  .operational-context-panel .delay-row:nth-child(n + 4):not(.delay-other-row) {
    display: none;
  }

  .operational-context-panel .delay-other-row {
    display: grid;
  }

  .operational-context-panel .delay-code-detail > .delay-code {
    min-width: 43px;
    min-height: 20px;
    flex-basis: 43px;
    font-size: 11px;
  }

  .operational-context-panel .delay-row-head .delay-code-copy strong {
    font-size: 12px;
  }

  .operational-context-panel .delay-row-head .delay-code-copy span {
    font-size: 11px;
  }

  .operational-context-panel .delay-row-head > strong {
    font-size: 13px;
  }

  .operational-context-panel .delay-bar {
    display: none;
  }

  .operational-context-panel .chart-footnote {
    display: none;
  }

  .weather-summary-copy {
    overflow: hidden;
    margin-bottom: 3px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .weather-station {
    padding: 5px 8px 6px;
    border-top-width: 3px;
  }

  .weather-station-identity strong {
    font-size: 14px;
  }

  .weather-station-identity span,
  .weather-condition,
  .weather-impact {
    display: none;
  }

  .weather-brief {
    display: block;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
  }

  .weather-station[data-status="watch"] .weather-brief,
  .weather-station[data-status="intervention"] .weather-brief {
    display: none;
  }

  .weather-station[data-status="watch"] .weather-impact,
  .weather-station[data-status="intervention"] .weather-impact {
    display: block;
    min-height: 0;
    overflow: hidden;
    margin: 3px 0 0;
    padding: 0;
    border: 0;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .weather-category {
    min-width: 39px;
    min-height: 19px;
    padding: 1px 5px;
    font-size: 11px;
  }

  .weather-metrics {
    display: none;
  }
}

@media (max-width: 1020px) {
  .operational-context-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .context-block + .context-block {
    margin-top: 20px;
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .operational-context-panel .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .context-freshness {
    white-space: normal;
  }

  .weather-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-station {
    padding: 8px;
    border-top-width: 3px;
  }

  .weather-station-identity span,
  .weather-condition,
  .weather-impact,
  .weather-metrics {
    display: none;
  }

  .weather-brief {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
  }
}

/* Priority outbound and inbound flight progress */
.flight-progress-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: 18px 22px;
}

.flight-progress-header {
  display: block;
  margin-bottom: 0;
}

.flight-progress-header h2 {
  margin-bottom: 4px;
}

.flight-progress-lanes {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.flight-progress-lane {
  min-width: 0;
}

.flight-progress-lane > h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.flight-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flight-progress-grid[data-route-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flight-progress-grid[data-route-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.flight-progress-grid[data-route-count="0"] {
  display: none;
}

.flight-progress-panel[data-route-count="0"] {
  grid-template-columns: minmax(0, 1fr);
}

.route-progress-card {
  --route-progress-color: var(--unavailable);
  --route-progress-background: var(--surface-soft);
  --route-progress-border: var(--border);
  min-width: 0;
  padding: 13px 15px 14px;
  border: 1px solid var(--route-progress-border);
  border-radius: 7px;
  background: var(--route-progress-background);
}

.flight-progress-lane .route-progress-card {
  padding: 9px 10px 10px;
}

.flight-progress-lane .route-progress-code {
  min-width: 0;
  font-size: 13px;
}

.flight-progress-lane .route-flight-status {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 8.5px;
}

.flight-progress-lane .route-progress-head {
  gap: 4px;
}

.flight-progress-lane .route-progress-arrow {
  margin-right: 2px;
  margin-left: 2px;
}

.flight-progress-lane .route-progress-detail {
  margin-top: 6px;
}

.flight-progress-lane .route-progress-meter-head {
  margin-top: 6px;
}

.flight-progress-lane .route-progress-meter {
  height: 8px;
}

.route-progress-card[data-level="normal"] {
  --route-progress-color: var(--normal);
  --route-progress-background: var(--normal-soft);
  --route-progress-border: color-mix(in srgb, var(--normal) 28%, var(--border));
}

.route-progress-card[data-level="watch"] {
  --route-progress-color: var(--watch);
  --route-progress-background: var(--watch-soft);
  --route-progress-border: color-mix(in srgb, var(--watch) 28%, var(--border));
}

.route-progress-card[data-level="intervention"] {
  --route-progress-color: var(--intervention);
  --route-progress-background: var(--surface);
  --route-progress-border: var(--intervention);
}

.route-progress-head,
.route-progress-detail,
.route-progress-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-progress-code {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.route-progress-arrow {
  margin: 0 6px;
  color: var(--accent-strong);
  font-weight: 500;
}

.route-flight-status {
  display: inline-flex;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.route-status-normal { background: var(--normal-soft); color: var(--normal); }
.route-status-watch { background: var(--watch-soft); color: var(--watch); }
.route-status-intervention { background: transparent; color: var(--intervention); }
.route-status-unavailable { background: var(--surface-strong); color: var(--muted); }

.route-progress-detail {
  align-items: baseline;
  margin-top: 10px;
}

.route-progress-flight {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-progress-timing {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-progress-meter-head {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 10px;
}

.route-progress-meter-head strong {
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.route-progress-meter {
  display: block;
  width: 100%;
  height: 11px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: var(--surface-strong);
}

.route-progress-meter::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-strong);
}

.route-progress-meter::-webkit-progress-value {
  border-radius: 999px;
  background: var(--route-progress-color);
}

.route-progress-meter::-moz-progress-bar {
  border-radius: 999px;
  background: var(--route-progress-color);
}

@media (min-width: 1600px) {
  .flight-progress-panel {
    grid-template-columns: minmax(205px, 0.28fr) minmax(0, 1.72fr);
    min-height: 108px;
    gap: 16px;
    margin-bottom: 15px;
    padding: 11px 16px;
  }

  .flight-progress-header .eyebrow {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .flight-progress-header h2 {
    font-size: 20px;
  }

  .flight-progress-header p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.3;
  }

  .flight-progress-grid {
    gap: 7px;
  }

  .route-progress-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 9px 12px 10px;
  }

  .route-progress-head,
  .route-progress-detail {
    grid-column: 1 / -1;
  }

  .route-progress-head { grid-row: 1; }

  .route-progress-detail {
    grid-row: 2;
    margin-top: 5px;
  }

  .route-progress-meter-head {
    grid-column: 2;
    grid-row: 3;
    margin: 6px 0 0 8px;
  }

  .route-progress-meter-head > span {
    display: none;
  }

  .route-progress-meter {
    grid-column: 1;
    grid-row: 3;
    margin-top: 6px;
  }

  .route-progress-code {
    font-size: 15px;
  }

  .flight-progress-lane .route-progress-code {
    font-size: 15px;
  }

  .route-progress-meter {
    height: 9px;
  }
}

@media (max-width: 1020px) {
  .flight-progress-panel {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
  }

  .flight-progress-lanes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .flight-progress-grid[data-route-count] {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Display mode control */
.fullscreen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-right: 10px;
  padding-left: 10px;
}

.fullscreen-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.fullscreen-icon-exit {
  display: none;
}

.fullscreen-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.fullscreen-toggle[aria-pressed="true"] .fullscreen-icon-enter {
  display: none;
}

.fullscreen-toggle[aria-pressed="true"] .fullscreen-icon-exit {
  display: block;
}

.fullscreen-status {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 24px;
  max-width: min(360px, calc(100vw - 28px));
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  color: var(--text-strong);
  font-size: 12px;
  line-height: 1.35;
}

:root:fullscreen {
  background: var(--page);
}

:root:-webkit-full-screen {
  background: var(--page);
}

:root[data-fullscreen="true"] .topbar,
:root:fullscreen .topbar,
:root:-webkit-full-screen .topbar {
  display: none;
}

:root[data-fullscreen="true"] .data-footer,
:root:fullscreen .data-footer,
:root:-webkit-full-screen .data-footer {
  display: none;
}

@media (max-width: 680px) {
  .fullscreen-toggle {
    width: 36px;
    padding: 0;
  }

  .fullscreen-status {
    right: 14px;
  }

  .fullscreen-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar-action.fullscreen-toggle {
    display: inline-flex;
  }
}

/* Compact dashboard navigation */
.topbar-meta {
  min-width: 0;
  margin-left: auto;
}

.topbar-menu-shell {
  position: relative;
  flex: 0 0 auto;
}

.topbar-menu-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #cfd5d7;
  border-radius: 8px;
  background: #ffffff;
  color: #353b3e;
  place-items: center;
  touch-action: manipulation;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.topbar-menu-toggle:hover {
  border-color: #aeb8bb;
  background: #f2f4f4;
  color: #202426;
}

.topbar-menu-toggle[aria-expanded="true"] {
  border-color: #272527;
  background: #272527;
  color: #ffffff;
}

.hamburger-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.hamburger-icon span {
  position: absolute;
  left: 0;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 150ms ease, opacity 120ms ease, top 150ms ease;
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}

.hamburger-icon span:nth-child(2) {
  top: 6px;
}

.hamburger-icon span:nth-child(3) {
  top: 12px;
}

.topbar-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.topbar-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.topbar-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.topbar-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: min(296px, calc(100vw - 24px));
  max-height: calc(100vh - 84px);
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 20px 52px rgba(20, 30, 34, 0.2);
  color: var(--text);
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}

.topbar-menu-items {
  display: block;
}

.topbar-menu-context {
  display: none;
}

.topbar-menu-section {
  padding: 9px 10px;
}

.topbar-menu-section + .topbar-menu-section {
  border-top: 1px solid var(--border);
}

.topbar-menu-heading {
  margin: 0;
  padding: 2px 9px 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.topbar-menu-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 580;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  touch-action: manipulation;
  transition: background 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.topbar-menu-item + .topbar-menu-item {
  margin-top: 2px;
}

.topbar-menu-item[href]::after {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-left: auto;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  opacity: 0.34;
  transform: rotate(45deg);
}

/* The previous-day brief downloads a PDF rather than navigating, so it carries a
   download glyph instead of the chevron every other menu link uses. Declared
   after the [href] rule so it wins at equal specificity. */
.topbar-menu-item[download]::after {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin-left: auto;
  border: 0;
  transform: none;
  opacity: 0.42;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%202v7.4%22%2F%3E%3Cpath%20d%3D%22M4.9%206.5%208%209.6l3.1-3.1%22%2F%3E%3Cpath%20d%3D%22M2.9%2013.2h10.2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%202v7.4%22%2F%3E%3Cpath%20d%3D%22M4.9%206.5%208%209.6l3.1-3.1%22%2F%3E%3Cpath%20d%3D%22M2.9%2013.2h10.2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  content: "";
}

.topbar-menu-item[download]:hover::after {
  opacity: 0.7;
}

.topbar-menu-item:hover {
  background: var(--surface-strong);
  color: var(--text-strong);
}

.topbar-menu-item[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.topbar-menu-item[aria-current="page"]::after {
  width: 7px;
  height: 4px;
  border-top: 0;
  border-right-width: 1.5px;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.8;
  transform: rotate(45deg) translateY(-1px);
}

.topbar-menu-item:focus-visible {
  z-index: 1;
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.topbar-menu-item .fullscreen-icon,
.topbar-menu-item .theme-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.topbar-menu-item.fullscreen-toggle {
  width: 100%;
  padding: 10px;
}

.topbar-menu-item .fullscreen-label {
  display: inline;
}

.topbar-menu-section button.topbar-menu-item:not(.topbar-menu-signout) {
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.topbar-menu-section button.topbar-menu-item:not(.topbar-menu-signout):hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.topbar-menu-signout {
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--intervention) 30%, var(--border));
  background: color-mix(in srgb, var(--intervention) 6%, var(--surface));
  color: var(--intervention);
  font-weight: 680;
}

.topbar-menu-signout:hover {
  border-color: color-mix(in srgb, var(--intervention) 46%, var(--border));
  background: var(--intervention-soft);
  color: var(--intervention);
}

@media (max-width: 680px) {
  :root[data-topbar-menu-open="true"] {
    overflow: hidden;
  }

  :root[data-topbar-menu-open="true"] body {
    overflow: hidden;
    overscroll-behavior: none;
  }

  :root[data-topbar-menu-open="true"] body::before {
    position: fixed;
    z-index: 29;
    inset: 64px 0 0;
    background: rgba(25, 32, 35, 0.28);
    content: "";
  }

  .topbar-menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .topbar-menu {
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 76px);
    -webkit-overflow-scrolling: touch;
  }

  .topbar-menu-context {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
  }

  .topbar-menu-source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-weight: 650;
  }

  .topbar-menu-source::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--unavailable);
    content: "";
  }

  .topbar-menu-source[data-state="live"]::before {
    background: var(--normal);
  }

  .topbar-menu-source[data-state="demo"]::before {
    background: var(--accent);
  }

  .topbar-menu-source[data-state="degraded"]::before,
  .topbar-menu-source[data-state="stale"]::before {
    background: var(--watch);
  }

  .topbar-menu-source[data-state="unavailable"]::before {
    background: var(--intervention);
  }

  .topbar-menu-item {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .topbar-menu-item.fullscreen-toggle {
    padding: 9px 10px;
  }

  .topbar-menu-heading {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .topbar-menu {
    position: fixed;
    top: 70px;
    right: max(10px, env(safe-area-inset-right));
    left: auto;
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px - env(safe-area-inset-bottom));
    border-radius: 12px;
  }

  .topbar-menu-items {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Live-source health and OOOI movement times */
.environment-badge {
  gap: 7px;
  white-space: nowrap;
}

.environment-badge::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--unavailable);
  content: "";
}

.environment-badge[data-state="live"]::before {
  background: var(--normal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--normal) 14%, transparent);
}

.environment-badge[data-state="degraded"]::before,
.environment-badge[data-state="stale"]::before {
  background: var(--watch);
}

.environment-badge[data-state="unavailable"]::before {
  background: var(--intervention);
}

.environment-badge[data-state="demo"]::before {
  background: var(--accent);
}

.source-notice {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--watch);
  border-radius: 7px;
  background: var(--watch-soft);
  color: var(--text);
}

.source-notice[data-state="unavailable"] {
  border-left-color: var(--intervention);
  background: var(--intervention-soft);
}

.source-notice-mark {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--watch);
}

.source-notice[data-state="unavailable"] .source-notice-mark {
  background: var(--intervention);
}

.source-notice > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.source-notice strong {
  flex: 0 0 auto;
  color: var(--text-strong);
  font-size: 13px;
}

.source-notice span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.section-unavailable {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.flight-table {
  min-width: 1240px;
}

.oooi-heading {
  min-width: 64px;
}

.oooi-heading abbr {
  display: block;
  color: var(--text-strong);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.oooi-heading span {
  display: block;
  margin-top: 1px;
  color: var(--subtle);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.oooi-source-heading {
  min-width: 104px;
}

.oooi-cell {
  min-width: 64px;
  color: var(--text-strong);
  font-weight: 650;
}

.oooi-cell.muted-value {
  color: var(--subtle);
  font-weight: 400;
}

.oooi-source-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.oooi-source-badge[data-source="pdf"],
.oooi-source-badge[data-source="live"] {
  border-color: color-mix(in srgb, var(--normal) 28%, var(--border));
  background: var(--normal-soft);
  color: var(--normal);
}

.oooi-source-badge[data-source="pending"] {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.flight-table-empty td {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.flight-status.status-taxiing,
.flight-status.status-landed {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.flight-status.status-not-scheduled,
.flight-status.status-unavailable {
  background: var(--surface-strong);
  color: var(--muted);
}

.field-help {
  margin: -8px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.login-secondary-action {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 650;
}

.login-secondary-action:hover {
  background: var(--surface-soft);
}

.account-card {
  width: min(560px, calc(100vw - 40px));
}

.account-card .login-panel-brand {
  margin-bottom: 24px;
}

.account-section {
  padding: 20px 0 24px;
}

.account-section + .account-section {
  border-top: 1px solid var(--border);
}

.account-section h2 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 17px;
  line-height: 1.3;
}

.account-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.account-section-heading h2 {
  margin-bottom: 4px;
}

.account-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-preference-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.account-preference-badge[data-state="enabled"] {
  border-color: color-mix(in srgb, var(--normal) 26%, var(--border));
  background: var(--normal-soft);
  color: var(--normal);
}

.account-preference-badge[data-state="disabled"],
.account-preference-badge[data-state="unavailable"] {
  color: var(--muted);
}

.account-preference-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
  cursor: pointer;
}

.login-card .account-preference-toggle input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--accent-strong);
  box-shadow: none;
}

.account-preference-toggle strong,
.account-preference-toggle small {
  display: block;
}

.account-preference-toggle strong {
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.35;
}

.account-preference-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.account-preference-toggle:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.65;
}

.account-preference-status {
  margin: 10px 0 0;
  color: var(--normal);
  font-size: 12px;
  font-weight: 650;
}

.account-preference-status[data-state="error"] {
  color: var(--intervention);
}

.account-email-preference .primary-button {
  margin-top: 10px;
}

.account-card > .login-secondary-action {
  margin-top: 0;
}

.timeline-empty-label {
  fill: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

@media (min-width: 1600px) {
  .source-notice {
    min-height: 40px;
    margin-bottom: 12px;
    padding: 7px 12px;
  }
}

@media (max-width: 680px) {
  .source-notice > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .source-notice strong {
    white-space: normal;
  }

  .context-freshness {
    max-width: 100%;
  }
}

/* Full-screen wallboard: one complete operating picture, without scrolling. */
@media (min-width: 1200px) {
  :root[data-fullscreen="true"],
  :root[data-fullscreen="true"] body,
  :root[data-fullscreen="true"] .app-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  :root[data-fullscreen="true"] .page-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0 clamp(18px, 1.7vw, 34px) clamp(10px, 1.25vh, 16px);
    overflow: hidden;
  }

  :root[data-fullscreen="true"] .page-heading,
  :root[data-fullscreen="true"] .source-notice,
  :root[data-fullscreen="true"] .flight-panel,
  :root[data-fullscreen="true"] .data-footer {
    display: none !important;
  }

  :root[data-fullscreen="true"] #dashboardContent:not([hidden]) {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: clamp(8px, 1.2vh, 15px);
    overflow: hidden;
  }

  :root[data-fullscreen="true"] .status-banner,
  :root[data-fullscreen="true"] .flight-progress-panel,
  :root[data-fullscreen="true"] .compact-heading,
  :root[data-fullscreen="true"] .kpi-grid,
  :root[data-fullscreen="true"] .insight-grid,
  :root[data-fullscreen="true"] .overview-grid,
  :root[data-fullscreen="true"] .operational-context-panel {
    margin: 0;
  }

  :root[data-fullscreen="true"] .status-banner,
  :root[data-fullscreen="true"] .flight-progress-panel,
  :root[data-fullscreen="true"] .kpi-grid,
  :root[data-fullscreen="true"] .insight-grid {
    contain: layout paint;
  }

  :root[data-fullscreen="true"] .programme-fill {
    transition: none;
  }

  :root[data-fullscreen="true"] .status-banner {
    height: clamp(170px, 21vh, 220px);
    min-height: 0;
  }

  :root[data-fullscreen="true"] .flight-progress-panel {
    height: clamp(142px, 15.5vh, 166px);
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }

  :root[data-fullscreen="true"] .route-progress-card {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  :root[data-fullscreen="true"] .flight-progress-header {
    align-self: center;
  }

  :root[data-fullscreen="true"] .flight-progress-lanes,
  :root[data-fullscreen="true"] .flight-progress-lane,
  :root[data-fullscreen="true"] .flight-progress-grid {
    min-height: 0;
  }

  :root[data-fullscreen="true"] .flight-progress-lane {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  :root[data-fullscreen="true"] section[aria-labelledby="kpiHeading"] {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(6px, 0.75vh, 9px);
  }

  :root[data-fullscreen="true"] .kpi-grid {
    height: clamp(108px, 12.8vh, 136px);
    min-height: 0;
  }

  :root[data-fullscreen="true"] .kpi-grid .kpi-card {
    height: 100%;
    min-height: 0;
    padding: 13px 17px 12px;
  }

  :root[data-fullscreen="true"] .kpi-value {
    margin-top: 11px;
    font-size: clamp(36px, 2.6vw, 44px);
  }

  :root[data-fullscreen="true"] .kpi-card:not([data-status="normal"]) .kpi-value {
    margin-bottom: 6px;
  }

  :root[data-fullscreen="true"] .kpi-card:not([data-status="normal"]) .kpi-context {
    font-size: 13px;
    line-height: 1.2;
  }

  :root[data-fullscreen="true"] .kpi-card[data-kpi="customer-recovery"] .kpi-value {
    margin-top: 9px;
    font-size: clamp(32px, 2.35vw, 38px);
    line-height: 0.95;
  }

  :root[data-fullscreen="true"] .insight-grid {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.65fr) minmax(390px, 0.9fr);
    gap: clamp(10px, 1vw, 17px);
    align-items: stretch;
    overflow: hidden;
  }

  :root[data-fullscreen="true"] .insight-grid > .overview-grid {
    display: contents;
  }

  :root[data-fullscreen="true"] .insight-grid > .secondary-grid {
    display: none;
  }

  :root[data-fullscreen="true"] .insight-grid .panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  :root[data-fullscreen="true"] .curve-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  :root[data-fullscreen="true"] .curve-panel .chart-wrap {
    display: grid;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    place-items: center;
  }

  :root[data-fullscreen="true"] .curve-panel .departure-timeline {
    width: 100%;
    height: 100%;
    max-height: 100%;
  }

  :root[data-fullscreen="true"] .attention-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  :root[data-fullscreen="true"] .attention-list {
    min-height: 0;
    overflow: hidden;
  }

  :root[data-fullscreen="true"] .operational-context-panel {
    min-height: 0;
  }
}

/* Operational readiness: aggregate forward-risk information only. */
.readiness-page-shell {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 38px 0 24px;
}

.readiness-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.readiness-heading h1 {
  margin: 3px 0 7px;
  color: var(--text-strong);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.readiness-heading p:last-child,
.readiness-freshness {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.readiness-freshness {
  padding-bottom: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.readiness-error { margin-bottom: 18px; }

.readiness-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.readiness-summary-card {
  min-height: 170px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-top: 6px solid var(--normal);
  border-radius: 9px;
  background: var(--surface);
}

.readiness-summary-card[data-level="watch"] { border-top-color: var(--watch); }
.readiness-summary-card[data-level="intervention"] { border-top-color: var(--intervention); }
.readiness-summary-card > span { color: var(--text); font-size: 16px; font-weight: 650; }
.readiness-summary-card > strong {
  display: block;
  margin: 16px 0 7px;
  color: var(--text-strong);
  font-size: 48px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}
.readiness-summary-card > small { color: var(--muted); font-size: 14px; }

.readiness-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.readiness-rotation-panel,
.readiness-detail-panel { padding: 24px 26px; }
.readiness-rotation-panel .panel-header { margin-bottom: 18px; }
.readiness-table-wrap { overflow-x: auto; }
.readiness-table { width: 100%; border-collapse: collapse; }
.readiness-table th,
.readiness-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  white-space: nowrap;
}
.readiness-table th {
  padding-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.readiness-table td:first-child { color: var(--text-strong); font-size: 16px; font-weight: 700; }
.readiness-badge {
  display: inline-flex;
  min-width: 62px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--normal-soft);
  color: var(--normal);
  font-size: 11px;
  font-weight: 700;
}
.readiness-table tr[data-level="watch"] .readiness-badge { background: var(--watch-soft); color: var(--watch); }
.readiness-table tr[data-level="intervention"] .readiness-badge { background: var(--intervention-soft); color: var(--intervention); }

.readiness-side-grid { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; }
.readiness-detail-panel header { margin-bottom: 16px; }
.readiness-detail-panel h2 { margin: 4px 0 0; font-size: 24px; }
.readiness-detail-panel dl { margin: 0; }
.readiness-detail-panel dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.readiness-detail-panel dt { color: var(--muted); font-size: 14px; }
.readiness-detail-panel dd { margin: 0; color: var(--text-strong); font-size: 24px; font-variant-numeric: tabular-nums; font-weight: 650; }

@media (max-width: 980px) {
  .readiness-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readiness-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .readiness-page-shell { width: min(100% - 28px, 1480px); padding-top: 24px; }
  .readiness-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .readiness-freshness { white-space: normal; }
  .readiness-summary-grid { grid-template-columns: 1fr; }
}

/* Customer survey: aggregate numeric results only. */
.survey-page-shell {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 38px 0 24px;
}

.survey-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.survey-page-heading h1 {
  margin: 3px 0 5px;
  color: var(--text-strong);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.survey-page-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.survey-response-count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 3px;
  color: var(--muted);
}

.survey-response-count strong {
  color: var(--text-strong);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.survey-response-count span {
  font-size: 14px;
}

.survey-error {
  margin-bottom: 20px;
}

.survey-loading-hero,
.survey-loading-card {
  border-radius: 8px;
}

.survey-loading-hero {
  height: 230px;
  margin-bottom: 18px;
}

.survey-loading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.survey-loading-card {
  height: 150px;
}

.survey-nps-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1.58fr);
  align-items: stretch;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-left: 8px solid var(--normal);
  border-radius: 9px;
  background: var(--surface);
}

.survey-nps-score {
  padding: 28px 34px 26px;
  border-right: 1px solid var(--border);
}

.survey-nps-score h2 {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.survey-nps-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 7px;
}

.survey-nps-value strong {
  color: var(--text-strong);
  font-size: clamp(72px, 7vw, 108px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.survey-nps-value span {
  color: var(--muted);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.survey-nps-composition {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 30px 38px;
}

.survey-nps-bar {
  display: flex;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.survey-nps-promoters { background: var(--normal); }
.survey-nps-passives { background: var(--watch); }
.survey-nps-detractors { background: var(--intervention); }

.survey-nps-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.survey-nps-breakdown article {
  min-width: 0;
  padding-left: 16px;
  border-left: 3px solid var(--border-strong);
}

.survey-nps-breakdown article[data-group="promoters"] { border-left-color: var(--normal); }
.survey-nps-breakdown article[data-group="passives"] { border-left-color: var(--watch); }
.survey-nps-breakdown article[data-group="detractors"] { border-left-color: var(--intervention); }

.survey-nps-breakdown span,
.survey-nps-breakdown small {
  display: block;
  color: var(--muted);
}

.survey-nps-breakdown span {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.survey-nps-breakdown strong {
  display: block;
  color: var(--text-strong);
  font-size: clamp(30px, 3vw, 42px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.survey-nps-breakdown small {
  margin-top: 7px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.survey-section {
  margin-bottom: 18px;
  padding: 22px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}

.survey-section-heading {
  margin-bottom: 17px;
}

.survey-section-heading h2 {
  margin: 3px 0 0;
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.survey-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.survey-headline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.survey-metric-card {
  display: grid;
  min-width: 0;
  min-height: 132px;
  grid-template-rows: auto 1fr auto auto;
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
}

.survey-metric-card > span {
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.survey-metric-card > strong {
  align-self: end;
  margin: 10px 0 4px;
  color: var(--text-strong);
  font-size: clamp(28px, 3vw, 40px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.survey-metric-card > small {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.survey-metric-meter {
  width: 100%;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: var(--surface-strong);
}

.survey-metric-meter::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-strong);
}

.survey-metric-meter::-webkit-progress-value {
  border-radius: 999px;
  background: var(--normal);
}

.survey-metric-meter::-moz-progress-bar {
  border-radius: 999px;
  background: var(--normal);
}

.survey-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.survey-two-column .survey-section {
  min-width: 0;
}

.survey-compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.survey-footer {
  margin-top: 2px;
}

.kpi-card[href] {
  color: inherit;
  text-decoration: none;
}

.kpi-card[href]:hover,
.kpi-card[href]:focus-visible {
  border-color: var(--accent-strong);
  outline: none;
}

/*
 * Operational signals are read from across an office, including browser and
 * full-screen layouts below the 1600px office breakpoint. Keep the status on
 * the whole card in every layout instead of relying on a narrow top border.
 */
.kpi-grid .kpi-card[data-status="normal"] {
  border-color: var(--normal-band);
  background: var(--normal-band);
}

.kpi-grid .kpi-card[data-status="watch"] {
  --status-band-text: var(--watch-band-text);
  border-color: var(--watch-band);
  background: var(--watch-band);
}

.kpi-grid .kpi-card[data-status="intervention"] {
  border-color: var(--intervention-band);
  background: var(--intervention-band);
}

.kpi-grid .kpi-card[data-status="unavailable"] {
  border-color: var(--unavailable-band);
  background: var(--unavailable-band);
}

.kpi-grid .kpi-card[data-status] .kpi-label,
.kpi-grid .kpi-card[data-status] .kpi-value,
.kpi-grid .kpi-card[data-status] .kpi-period,
.kpi-grid .kpi-card[data-status] .kpi-context,
.kpi-grid .kpi-card[data-status] .kpi-meta,
.kpi-grid .kpi-card[data-status] .status-chip {
  color: var(--status-band-text);
}

.kpi-grid .kpi-card[data-status] .kpi-meta {
  border-top-color: color-mix(in srgb, var(--status-band-text) 25%, transparent);
}

.kpi-grid .kpi-card[data-status] .status-chip {
  border-color: color-mix(in srgb, var(--status-band-text) 45%, transparent);
  background: transparent;
}

.kpi-grid .kpi-card[href]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Historical performance analysis */
.analysis-page-shell {
  width: min(1500px, 100%);
}

.analysis-heading,
.analysis-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.analysis-heading {
  margin-bottom: 22px;
}

.analysis-heading h1 {
  margin-bottom: 7px;
}

.analysis-heading > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.analysis-target {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.analysis-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 0.72fr)) repeat(3, minmax(175px, 1fr)) auto;
  gap: 13px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
}

.analysis-filter-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.analysis-filter-panel label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analysis-filter-panel input,
.analysis-filter-panel select {
  width: 100%;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
}

.analysis-apply {
  min-height: 43px;
  padding: 0 18px;
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
  background: var(--accent-strong);
  color: var(--surface);
  font-weight: 700;
  white-space: nowrap;
}

.analysis-results-heading {
  margin: 0 0 13px;
}

.analysis-results-heading h2 {
  margin-bottom: 0;
  font-size: 23px;
}

.analysis-results-heading > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.analysis-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-soft);
}

.analysis-tab {
  min-height: 44px;
  padding: 9px 10px;
  white-space: nowrap;
  border: 0;
  border-radius: 6px;
  background: transparent;
  /* Full text colour, not --muted: an unselected tab is a button you can press,
     and muted grey on the track read as disabled. */
  color: var(--text);
  font-weight: 720;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.analysis-tab:hover {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text-strong);
}

.analysis-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* The selected tab was white on a near-white track with only a soft shadow to
   separate them. It now carries the accent and a defined edge, matching how the
   topbar marks the current page. */
.analysis-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent);
}

.analysis-tab[aria-selected="true"]:hover {
  color: var(--accent-strong);
}

.analysis-tab-panel {
  min-width: 0;
}

.analysis-ml-readiness {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  margin-bottom: 18px;
  padding: 22px 24px;
  background: var(--surface);
}

.analysis-ml-readiness h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.analysis-ml-readiness p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.analysis-ml-readiness[data-state="lift"] {
  border-color: color-mix(in srgb, var(--normal) 38%, var(--border));
  background: var(--normal-soft);
}

.analysis-ml-readiness[data-state="uncertain"],
.analysis-ml-readiness[data-state="insufficient_data"] {
  border-color: color-mix(in srgb, var(--watch) 32%, var(--border));
  background: var(--watch-soft);
}

.analysis-ml-readiness[data-state="no_lift"],
.analysis-ml-readiness[data-state="error"] {
  border-color: color-mix(in srgb, var(--intervention) 34%, var(--border));
  background: var(--intervention-soft);
}

.analysis-ml-readiness-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-ml-range-button,
.analysis-ml-retry-button {
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
  font-size: 12px;
  font-weight: 740;
}

.analysis-ml-range-button {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--surface);
}

.analysis-ml-deficits {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 12px;
}

.analysis-ml-deficits:empty {
  display: none;
}

.analysis-ml-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.analysis-ml-target {
  display: grid;
  min-height: 112px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
  text-align: left;
}

.analysis-ml-target[aria-pressed="true"] {
  border-color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent-strong), var(--shadow-sm);
}

.analysis-ml-target > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.analysis-ml-target > strong {
  margin: 8px 0 3px;
  font-size: 22px;
  line-height: 1.1;
}

.analysis-ml-target > small {
  color: var(--muted);
}

.analysis-ml-target[data-state="lift"] > strong {
  color: var(--normal);
}

.analysis-ml-target[data-state="uncertain"] > strong,
.analysis-ml-target[data-state="insufficient_data"] > strong {
  color: var(--watch);
}

.analysis-ml-target[data-state="no_lift"] > strong {
  color: var(--intervention);
}

.analysis-ml-evidence,
.analysis-ml-chart-panel,
.analysis-ml-insight-panel,
.analysis-ml-deviation-panel {
  margin-bottom: 18px;
  padding: 22px 24px;
}

.analysis-ml-section-header {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.analysis-ml-section-header h2,
.analysis-ml-insight-panel h2 {
  margin-bottom: 3px;
  font-size: 22px;
}

.analysis-ml-section-header p:last-child,
.analysis-ml-insight-panel .panel-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.analysis-ml-state-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.analysis-ml-state-badge[data-state="lift"] {
  background: var(--normal-soft);
  color: var(--normal);
}

.analysis-ml-state-badge[data-state="uncertain"] {
  background: var(--watch-soft);
  color: var(--watch);
}

.analysis-ml-state-badge[data-state="no_lift"] {
  background: var(--intervention-soft);
  color: var(--intervention);
}

.analysis-ml-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.analysis-ml-metric {
  display: grid;
  min-height: 116px;
  align-content: space-between;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
}

.analysis-ml-metric > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.analysis-ml-metric > strong {
  margin: 8px 0 3px;
  color: var(--text-strong);
  font-size: clamp(26px, 3vw, 38px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.analysis-ml-metric > small {
  color: var(--muted);
  font-size: 10px;
}

.analysis-ml-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.analysis-ml-split-item {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.analysis-ml-split-item > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.analysis-ml-split-item > strong {
  font-size: 12px;
}

.analysis-ml-split-item > small {
  color: var(--muted);
  font-size: 10px;
}

.analysis-ml-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.analysis-ml-chart-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analysis-ml-key {
  display: inline-block;
  width: 21px;
  height: 10px;
  border-top: 2px solid currentColor;
}

.analysis-ml-key-perfect {
  color: var(--subtle);
  border-top-style: dashed;
}

.analysis-ml-key-observed {
  position: relative;
  color: var(--accent-strong);
}

.analysis-ml-key-observed::after {
  position: absolute;
  top: -4px;
  left: 8px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.analysis-ml-chart-wrap {
  min-height: 320px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.analysis-ml-chart {
  width: 100%;
  min-width: 680px;
  height: auto;
}

.analysis-ml-grid {
  stroke: var(--border);
  stroke-width: 1;
}

.analysis-ml-perfect-line {
  stroke: var(--subtle);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.analysis-ml-interval {
  stroke: var(--accent-strong);
  stroke-width: 1.5;
}

.analysis-ml-point {
  fill: var(--surface);
  stroke: var(--accent-strong);
  stroke-width: 2.5;
}

.analysis-ml-axis-label,
.analysis-ml-axis-title {
  fill: var(--muted);
  font-family: inherit;
}

.analysis-ml-axis-label {
  font-size: 10px;
  font-weight: 620;
}

.analysis-ml-axis-title {
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.05em;
}

.analysis-ml-chart-panel .accessible-data {
  margin-top: 8px;
}

.analysis-ml-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analysis-ml-insight-panel {
  min-width: 0;
}

.analysis-ml-risk-list,
.analysis-ml-driver-list {
  display: grid;
  gap: 13px;
}

.analysis-ml-risk-row,
.analysis-ml-driver-row {
  display: grid;
  gap: 7px;
}

.analysis-ml-risk-row > div,
.analysis-ml-driver-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.analysis-ml-risk-row strong,
.analysis-ml-driver-row strong {
  color: var(--text-strong);
  font-size: 12px;
}

.analysis-ml-risk-row span,
.analysis-ml-driver-row span {
  color: var(--muted);
  font-size: 10px;
}

.analysis-ml-risk-track,
.analysis-ml-driver-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.analysis-ml-risk-track > span,
.analysis-ml-driver-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-strong);
}

.analysis-ml-empty {
  margin: 0;
  padding: 22px 10px;
  color: var(--muted);
  text-align: center;
}

.analysis-ml-method {
  padding: 0;
}

.analysis-ml-method > summary {
  padding: 17px 20px;
  color: var(--text-strong);
  font-weight: 720;
  cursor: pointer;
}

.analysis-ml-method > dl {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 9px 18px;
  margin: 0;
  padding: 0 20px 20px;
}

.analysis-ml-method dt {
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 720;
}

.analysis-ml-method dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.analysis-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.analysis-metric {
  display: grid;
  min-height: 145px;
  align-content: space-between;
  padding: 18px 19px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.analysis-metric[data-status="normal"] {
  border-color: var(--normal-band);
  background: var(--normal-band);
  color: #ffffff;
}

.analysis-metric[data-status="watch"] {
  border-color: var(--watch-band);
  background: var(--watch-band);
  color: var(--watch-band-text);
}

.analysis-metric[data-status="intervention"] {
  border-color: var(--intervention-band);
  background: var(--intervention-band);
  color: #ffffff;
}

.analysis-metric[data-status="unavailable"] {
  border-color: var(--unavailable-band);
  background: var(--unavailable-band);
  color: #ffffff;
}

.analysis-metric > span {
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

.analysis-metric > strong {
  align-self: end;
  margin: 13px 0 4px;
  color: inherit;
  font-size: clamp(32px, 4vw, 50px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.analysis-metric > small {
  color: inherit;
  font-size: 12px;
  opacity: 0.86;
}

.analysis-trend-panel {
  margin-bottom: 18px;
  padding: 22px 24px;
}

.analysis-trend-header {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.analysis-trend-header h2 {
  margin-bottom: 3px;
  font-size: 22px;
}

.analysis-trend-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.analysis-trend-legend {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.analysis-trend-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.analysis-trend-key {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 12px;
}

.analysis-trend-key::before {
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  border-top: 2px solid currentColor;
  content: "";
}

.analysis-trend-key::after {
  position: absolute;
  top: 2px;
  left: 9px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  background: var(--surface);
  content: "";
}

.analysis-trend-key-d15 {
  color: var(--accent-strong);
}

.analysis-trend-key-d15::after {
  border-radius: 50%;
}

.analysis-trend-key-a15 {
  color: var(--text-strong);
}

.analysis-trend-key-a15::before,
.analysis-trend-key-target::before {
  border-top-style: dashed;
}

.analysis-trend-key-target {
  color: var(--normal);
}

.analysis-trend-key-target::after {
  display: none;
}

.analysis-trend-chart-wrap {
  width: 100%;
  min-height: 300px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.analysis-trend-chart-wrap:focus-visible {
  border-radius: 5px;
}

.analysis-trend-chart {
  width: 100%;
  min-width: 680px;
  height: auto;
  overflow: visible;
}

.analysis-trend-grid,
.analysis-trend-axis {
  stroke: var(--border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.analysis-trend-target-line {
  stroke: var(--normal);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.analysis-trend-axis-label,
.analysis-trend-axis-title,
.analysis-trend-target-label {
  font-family: inherit;
}

.analysis-trend-axis-label {
  fill: var(--subtle);
  font-size: 10px;
  font-weight: 620;
}

.analysis-trend-axis-title,
.analysis-trend-target-label {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.analysis-trend-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  vector-effect: non-scaling-stroke;
}

.analysis-trend-line-d15 {
  stroke: var(--accent-strong);
}

.analysis-trend-line-a15 {
  stroke: var(--text-strong);
  stroke-dasharray: 8 5;
}

.analysis-trend-marker {
  fill: var(--surface);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.analysis-trend-marker-d15 {
  stroke: var(--accent-strong);
}

.analysis-trend-marker-a15 {
  stroke: var(--text-strong);
}

.analysis-trend-empty {
  display: grid;
  min-height: 300px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  place-items: center;
  text-align: center;
}

.analysis-trend-panel .accessible-data {
  margin-top: 8px;
}

.analysis-trend-panel .accessible-data th,
.analysis-trend-panel .accessible-data td {
  white-space: nowrap;
}

.analysis-delay-code-panel,
.analysis-delay-trend-panel {
  margin-bottom: 18px;
  padding: 22px 24px;
}

.analysis-delay-panel-header {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.analysis-delay-panel-header h2 {
  margin-bottom: 3px;
  font-size: 22px;
}

.analysis-delay-panel-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.analysis-delay-availability {
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.analysis-delay-availability[data-state="available"] {
  border-color: color-mix(in srgb, var(--normal) 42%, var(--border));
  background: var(--normal-soft);
  color: var(--normal);
}

.analysis-delay-availability[data-state="partial"] {
  border-color: color-mix(in srgb, var(--watch) 42%, var(--border));
  background: var(--watch-soft);
  color: var(--watch);
}

.analysis-delay-availability[data-state="unavailable"] {
  border-color: color-mix(in srgb, var(--unavailable) 42%, var(--border));
  color: var(--unavailable);
}

.analysis-delay-code-list {
  display: grid;
  gap: 14px;
}

.analysis-delay-code-row {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(280px, 1.7fr) minmax(92px, auto);
  align-items: center;
  gap: 16px;
}

.analysis-delay-code-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.analysis-delay-code-badge {
  display: inline-grid;
  min-width: 42px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 800;
  place-items: center;
}

.analysis-delay-code-copy {
  min-width: 0;
}

.analysis-delay-code-copy strong,
.analysis-delay-code-copy span {
  display: block;
}

.analysis-delay-code-copy strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-delay-code-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-delay-code-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.analysis-delay-code-value {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--subtle);
}

.analysis-delay-code-row[data-controllability="controllable"] .analysis-delay-code-value {
  background: var(--accent-strong);
}

.analysis-delay-code-row[data-controllability="mixed"] .analysis-delay-code-value {
  background: var(--watch);
}

.analysis-delay-code-score {
  text-align: right;
}

.analysis-delay-code-score strong,
.analysis-delay-code-score span {
  display: block;
}

.analysis-delay-code-score strong {
  color: var(--text-strong);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.analysis-delay-code-score span {
  color: var(--muted);
  font-size: 10px;
}

.analysis-delay-empty {
  min-height: 120px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  place-items: center;
  text-align: center;
}

.analysis-delay-empty:not([hidden]) {
  display: grid;
}

.analysis-delay-key {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 12px;
}

.analysis-delay-key::before {
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  border-top: 2px solid currentColor;
  content: "";
}

.analysis-delay-key::after {
  position: absolute;
  top: 2px;
  left: 9px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.analysis-delay-key-observed {
  color: var(--watch);
}

.analysis-delay-key-coded {
  color: var(--text-strong);
}

.analysis-delay-key-coded::before,
.analysis-delay-key-target::before {
  border-top-style: dashed;
}

.analysis-delay-key-coded::after {
  border-radius: 1px;
}

.analysis-delay-key-target {
  color: var(--normal);
}

.analysis-delay-key-target::after {
  display: none;
}

.analysis-delay-trend-target-line {
  stroke: var(--normal);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.analysis-delay-trend-line-observed {
  stroke: var(--watch);
}

.analysis-delay-trend-line-coded {
  stroke: var(--text-strong);
  stroke-dasharray: 8 5;
}

.analysis-delay-trend-marker-observed {
  stroke: var(--watch);
}

.analysis-delay-trend-marker-coded {
  stroke: var(--text-strong);
}

.analysis-delay-code-panel .accessible-data,
.analysis-delay-trend-panel .accessible-data {
  margin-top: 8px;
}

.analysis-delay-code-panel .accessible-data th,
.analysis-delay-code-panel .accessible-data td,
.analysis-delay-trend-panel .accessible-data th,
.analysis-delay-trend-panel .accessible-data td {
  white-space: nowrap;
}

.analysis-table-panel {
  padding: 22px 24px;
}

.analysis-delay-panel .analysis-table-panel,
#analysisDelayPanel .analysis-table-panel {
  margin-bottom: 18px;
}

#analysisDelayPanel .analysis-table-panel:last-child {
  margin-bottom: 0;
}

.analysis-table-panel .panel-header {
  margin-bottom: 14px;
}

.analysis-table th,
.analysis-table td {
  white-space: nowrap;
}

.analysis-empty {
  padding: 38px 20px !important;
  color: var(--muted);
  text-align: center;
}

.analysis-loading {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .analysis-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .analysis-apply {
    align-self: stretch;
  }
}

@media (max-width: 760px) {
  .analysis-heading,
  .analysis-results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-filter-panel,
  .analysis-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .analysis-target {
    white-space: normal;
  }

  .analysis-tabs {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .analysis-ml-readiness,
  .analysis-ml-targets,
  .analysis-ml-split,
  .analysis-ml-insight-grid,
  .analysis-ml-method > dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .analysis-ml-readiness {
    padding: 18px;
  }

  .analysis-ml-readiness-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .analysis-ml-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-ml-evidence,
  .analysis-ml-chart-panel,
  .analysis-ml-insight-panel,
  .analysis-ml-deviation-panel {
    padding: 18px;
  }

  .analysis-ml-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-ml-risk-row > div,
  .analysis-ml-driver-row > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .analysis-trend-panel {
    padding: 18px;
  }

  .analysis-trend-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-trend-legend {
    justify-content: flex-start;
  }

  .analysis-delay-code-panel,
  .analysis-delay-trend-panel {
    padding: 18px;
  }

  .analysis-delay-panel-header,
  .analysis-delay-code-row {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr);
  }

  .analysis-delay-panel-header {
    flex-direction: column;
  }

  .analysis-delay-code-score {
    text-align: left;
  }

  .analysis-delay-code-copy span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .analysis-ml-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .analysis-table .analysis-empty {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .survey-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .survey-two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .survey-page-shell {
    width: min(100% - 28px, 1480px);
    padding-top: 24px;
  }

  .survey-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .survey-nps-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-nps-score {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .survey-nps-composition {
    padding: 24px;
  }

  .survey-nps-breakdown,
  .survey-metric-grid,
  .survey-headline-grid,
  .survey-loading-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-metric-card {
    min-height: 120px;
  }
}

/* Keep the office wallboard control immediately available outside the menu. */
.topbar-fullscreen-toggle {
  min-width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-color: #cfd5d7;
  border-radius: 6px;
  background: #ffffff;
  color: #353b3e;
}

.topbar-fullscreen-toggle:not([aria-pressed="true"]):hover {
  border-color: #aeb8bb;
  background: #f2f4f4;
  color: #202426;
}

@media (max-width: 680px) {
  .topbar-fullscreen-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }
}

@media (max-width: 380px) {
  .topbar {
    gap: 12px;
  }

  .brand-divider,
  .product-lockup {
    display: none;
  }
}

/*
 * Dashboard overall-palette reconciliation: start
 *
 * The header is the single green/yellow/red verdict for the operating day.
 * Performance colours that do not match that verdict use the neutral surface,
 * while their semantic statuses and labels remain unchanged. Delayed
 * intervention-level flight cards retain a white surface with a red outline
 * and progress line. Airport weather is intentionally excluded and keeps its
 * own independent alert colours.
 */
:root[data-dashboard-verdict="normal"]
  .kpi-grid .kpi-card:is([data-status="watch"], [data-status="intervention"]),
:root[data-dashboard-verdict="watch"]
  .kpi-grid .kpi-card:is([data-status="normal"], [data-status="intervention"]),
:root[data-dashboard-verdict="intervention"]
  .kpi-grid .kpi-card:is([data-status="normal"], [data-status="watch"]) {
  --status-band-text: var(--text-strong);
  border-color: var(--border-strong);
  border-top-color: var(--border-strong);
  background: var(--surface);
  color: var(--text-strong);
}

:root[data-dashboard-verdict="normal"]
  .kpi-grid .kpi-card:is([data-status="watch"], [data-status="intervention"]) .kpi-meta,
:root[data-dashboard-verdict="watch"]
  .kpi-grid .kpi-card:is([data-status="normal"], [data-status="intervention"]) .kpi-meta,
:root[data-dashboard-verdict="intervention"]
  .kpi-grid .kpi-card:is([data-status="normal"], [data-status="watch"]) .kpi-meta {
  border-top-color: var(--border);
}

:root[data-dashboard-verdict="normal"]
  .kpi-grid .kpi-card:is([data-status="watch"], [data-status="intervention"]) .status-chip,
:root[data-dashboard-verdict="watch"]
  .kpi-grid .kpi-card:is([data-status="normal"], [data-status="intervention"]) .status-chip,
:root[data-dashboard-verdict="intervention"]
  .kpi-grid .kpi-card:is([data-status="normal"], [data-status="watch"]) .status-chip {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--muted);
}

:root[data-dashboard-verdict="normal"]
  .route-progress-card:is([data-level="watch"]),
:root[data-dashboard-verdict="watch"]
  .route-progress-card:is([data-level="normal"]),
:root[data-dashboard-verdict="intervention"]
  .route-progress-card:is([data-level="normal"], [data-level="watch"]) {
  --route-progress-color: var(--text-strong);
  --route-progress-background: var(--surface);
  --route-progress-border: var(--border-strong);
}

:root[data-dashboard-verdict="normal"]
  .route-progress-card:is([data-level="watch"]) .route-flight-status,
:root[data-dashboard-verdict="watch"]
  .route-progress-card:is([data-level="normal"]) .route-flight-status,
:root[data-dashboard-verdict="intervention"]
  .route-progress-card:is([data-level="normal"], [data-level="watch"]) .route-flight-status {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--muted);
}

:root[data-dashboard-verdict="watch"] .timeline-target-band,
:root[data-dashboard-verdict="intervention"] .timeline-target-band {
  fill: var(--surface);
}

:root[data-dashboard-verdict="watch"] .timeline-target-line,
:root[data-dashboard-verdict="intervention"] .timeline-target-line {
  stroke: var(--border-strong);
}

:root[data-dashboard-verdict="watch"] .timeline-legend-normal,
:root[data-dashboard-verdict="intervention"] .timeline-legend-normal {
  border-color: var(--surface);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--text-strong);
}

:root[data-dashboard-verdict="watch"] .timeline-dot-normal,
:root[data-dashboard-verdict="intervention"] .timeline-dot-normal {
  fill: var(--surface);
  stroke: var(--text-strong);
}

:root[data-dashboard-verdict="normal"] .timeline-stem-watch,
:root[data-dashboard-verdict="normal"] .timeline-stem-projected,
:root[data-dashboard-verdict="intervention"] .timeline-stem-watch,
:root[data-dashboard-verdict="intervention"] .timeline-stem-projected,
:root[data-dashboard-verdict="normal"] .timeline-stem-intervention {
  stroke: var(--border-strong);
}

:root[data-dashboard-verdict="watch"] .timeline-stem-intervention {
  stroke: var(--border-strong);
}

:root[data-dashboard-verdict="normal"] .timeline-dot-watch,
:root[data-dashboard-verdict="intervention"] .timeline-dot-watch,
:root[data-dashboard-verdict="normal"] .timeline-dot-projected,
:root[data-dashboard-verdict="intervention"] .timeline-dot-projected,
:root[data-dashboard-verdict="watch"] .timeline-dot-intervention,
:root[data-dashboard-verdict="normal"] .timeline-dot-intervention {
  fill: var(--surface);
  stroke: var(--text-strong);
}

:root[data-dashboard-verdict="watch"] .timeline-label-intervention,
:root[data-dashboard-verdict="normal"] .timeline-label-intervention {
  fill: var(--text-strong);
}

:root[data-dashboard-verdict="normal"] .timeline-legend-late,
:root[data-dashboard-verdict="intervention"] .timeline-legend-late,
:root[data-dashboard-verdict="watch"] .timeline-legend-critical,
:root[data-dashboard-verdict="normal"] .timeline-legend-critical {
  --timeline-legend-severity: var(--border-strong);
}

:root[data-dashboard-verdict="normal"] .timeline-legend-awaiting,
:root[data-dashboard-verdict="intervention"] .timeline-legend-awaiting {
  border-color: var(--border-strong);
  background: var(--surface);
}

:root[data-dashboard-verdict="watch"] .timeline-legend-cancelled::before,
:root[data-dashboard-verdict="watch"] .timeline-legend-cancelled::after,
:root[data-dashboard-verdict="normal"] .timeline-legend-cancelled::before,
:root[data-dashboard-verdict="normal"] .timeline-legend-cancelled::after {
  background: var(--border-strong);
}

:root[data-dashboard-verdict="watch"] .timeline-flight-cancelled,
:root[data-dashboard-verdict="normal"] .timeline-flight-cancelled {
  fill: var(--border-strong);
}

:root[data-dashboard-verdict="normal"]
  .station-row:is([data-status="watch"], [data-status="intervention"]) .station-value,
:root[data-dashboard-verdict="watch"]
  .station-row:is([data-status="normal"], [data-status="intervention"]) .station-value,
:root[data-dashboard-verdict="intervention"]
  .station-row:is([data-status="normal"], [data-status="watch"]) .station-value {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1;
}

:root[data-dashboard-verdict="normal"]
  .attention-item:is([data-severity="watch"], [data-severity="intervention"]):not([data-action-id="airport-weather"]),
:root[data-dashboard-verdict="watch"]
  .attention-item:is([data-severity="normal"], [data-severity="intervention"]):not([data-action-id="airport-weather"]),
:root[data-dashboard-verdict="intervention"]
  .attention-item:is([data-severity="normal"], [data-severity="watch"]):not([data-action-id="airport-weather"]) {
  border-left-color: var(--border-strong);
}

:root[data-dashboard-verdict="watch"] .empty-attention svg,
:root[data-dashboard-verdict="intervention"] .empty-attention svg {
  stroke: var(--text-strong);
}

:root[data-dashboard-verdict="watch"]
  .flight-status.status-arrived,
:root[data-dashboard-verdict="intervention"]
  .flight-status.status-arrived,
:root[data-dashboard-verdict="normal"]
  .flight-status.status-delayed,
:root[data-dashboard-verdict="normal"]
  .flight-status.status-diverted,
:root[data-dashboard-verdict="intervention"]
  .flight-status.status-delayed,
:root[data-dashboard-verdict="intervention"]
  .flight-status.status-diverted,
:root[data-dashboard-verdict="watch"]
  .flight-status.status-cancelled,
:root[data-dashboard-verdict="normal"]
  .flight-status.status-cancelled {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

:root[data-dashboard-verdict="watch"]
  .oooi-source-badge[data-source="pdf"],
:root[data-dashboard-verdict="watch"]
  .oooi-source-badge[data-source="live"],
:root[data-dashboard-verdict="intervention"]
  .oooi-source-badge[data-source="pdf"],
:root[data-dashboard-verdict="intervention"]
  .oooi-source-badge[data-source="live"] {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--muted);
}

:root[data-dashboard-verdict="normal"] .delay-late,
:root[data-dashboard-verdict="intervention"] .delay-late,
:root[data-dashboard-verdict="watch"] .delay-severe,
:root[data-dashboard-verdict="normal"] .delay-severe {
  color: var(--text-strong);
}

:root[data-dashboard-verdict="watch"]
  .dashboard-live-status[data-state="current"] .dashboard-live-dot,
:root[data-dashboard-verdict="intervention"]
  .dashboard-live-status[data-state="current"] .dashboard-live-dot,
:root[data-dashboard-verdict="normal"]
  .dashboard-live-status[data-state="retrying"] .dashboard-live-dot,
:root[data-dashboard-verdict="intervention"]
  .dashboard-live-status[data-state="retrying"] .dashboard-live-dot,
:root[data-dashboard-verdict="watch"]
  .environment-badge[data-state="live"]::before,
:root[data-dashboard-verdict="intervention"]
  .environment-badge[data-state="live"]::before,
:root[data-dashboard-verdict="normal"]
  .environment-badge:is([data-state="degraded"], [data-state="stale"])::before,
:root[data-dashboard-verdict="intervention"]
  .environment-badge:is([data-state="degraded"], [data-state="stale"])::before,
:root[data-dashboard-verdict="watch"]
  .topbar-menu-source[data-state="live"]::before,
:root[data-dashboard-verdict="intervention"]
  .topbar-menu-source[data-state="live"]::before,
:root[data-dashboard-verdict="normal"]
  .topbar-menu-source:is([data-state="degraded"], [data-state="stale"])::before,
:root[data-dashboard-verdict="intervention"]
  .topbar-menu-source:is([data-state="degraded"], [data-state="stale"])::before,
:root[data-dashboard-verdict="watch"]
  .environment-badge[data-state="unavailable"]::before,
:root[data-dashboard-verdict="normal"]
  .environment-badge[data-state="unavailable"]::before,
:root[data-dashboard-verdict="watch"]
  .topbar-menu-source[data-state="unavailable"]::before,
:root[data-dashboard-verdict="normal"]
  .topbar-menu-source[data-state="unavailable"]::before {
  background: var(--border-strong);
  box-shadow: none;
}

:root[data-dashboard-verdict="normal"] .source-notice,
:root[data-dashboard-verdict="watch"] .source-notice[data-state="unavailable"],
:root[data-dashboard-verdict="intervention"] .source-notice:not([data-state="unavailable"]) {
  border-color: var(--border);
  border-left-color: var(--border-strong);
  background: var(--surface);
}

:root[data-dashboard-verdict="normal"] .source-notice .source-notice-mark,
:root[data-dashboard-verdict="watch"]
  .source-notice[data-state="unavailable"] .source-notice-mark,
:root[data-dashboard-verdict="intervention"]
  .source-notice:not([data-state="unavailable"]) .source-notice-mark {
  background: var(--border-strong);
}

/* Dashboard overall-palette reconciliation: end */

.analysis-block-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(280px, 2fr) minmax(96px, auto);
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.analysis-block-row:first-child {
  border-top: 0;
}

.analysis-block-route {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.analysis-block-route h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 720;
  color: var(--text-strong);
}

.analysis-block-status {
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.analysis-block-status[data-status="under-blocked"],
.analysis-block-status[data-status="over-blocked"] {
  color: var(--intervention, #b0241d);
}

.analysis-block-detail {
  margin: 0;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.analysis-block-variance {
  justify-self: end;
  font-size: 1.05rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}

.analysis-block-variance[data-status="under-blocked"],
.analysis-block-variance[data-status="over-blocked"] {
  color: var(--intervention, #b0241d);
}

@media (max-width: 720px) {
  .analysis-block-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .analysis-block-detail {
    grid-column: 1 / -1;
  }
}

/* Day archetypes. Six categorical swatches, distinguishable in both themes and
   never the only carrier of meaning: every group is also named in words. */
.analysis-archetype-swatch {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 8px;
  background: var(--archetype-color, var(--muted));
}

/* A categorical palette for small marks has to separate by LIGHTNESS as well as
   hue: dark green against dark slate reads as one colour at this size. Clean is
   deliberately the lightest and disrupted the most saturated, so the two ends of
   the ramp are obvious before the legend is read. Scoped to the panel by
   attribute so swatches, calendar squares and chart bars all pick it up. */
#analysisArchetypePanel [data-band="clean"] { --archetype-color: #57C08A; }
#analysisArchetypePanel [data-band="disrupted"] { --archetype-color: #C62A1E; }
#analysisArchetypePanel [data-band="elevated"][data-hue="0"] { --archetype-color: #3D4A52; }
#analysisArchetypePanel [data-band="elevated"][data-hue="1"] { --archetype-color: #2E7FC2; }
#analysisArchetypePanel [data-band="elevated"][data-hue="2"] { --archetype-color: #A97BEA; }
#analysisArchetypePanel [data-band="elevated"][data-hue="3"] { --archetype-color: #D9A017; }
#analysisArchetypePanel [data-band="elevated"][data-hue="4"] { --archetype-color: #E38FBB; }

/* On a dark surface the darkest entry would sink into the background. */
[data-theme="dark"] #analysisArchetypePanel [data-band="clean"] { --archetype-color: #6FD9A0; }
[data-theme="dark"] #analysisArchetypePanel [data-band="disrupted"] { --archetype-color: #F0574A; }
[data-theme="dark"] #analysisArchetypePanel [data-band="elevated"][data-hue="0"] { --archetype-color: #8595A0; }
[data-theme="dark"] #analysisArchetypePanel [data-band="elevated"][data-hue="1"] { --archetype-color: #56A8ED; }
[data-theme="dark"] #analysisArchetypePanel [data-band="elevated"][data-hue="2"] { --archetype-color: #C4A3F5; }
[data-theme="dark"] #analysisArchetypePanel [data-band="elevated"][data-hue="3"] { --archetype-color: #F0BC3E; }
[data-theme="dark"] #analysisArchetypePanel [data-band="elevated"][data-hue="4"] { --archetype-color: #F0A8CC; }

.analysis-archetype-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.analysis-archetype-legend span {
  display: inline-flex;
  align-items: center;
}

.analysis-archetype-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 8px;
}

.analysis-archetype-day {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: var(--archetype-color, var(--border));
}

.analysis-archetype-day[data-ungrouped="true"] {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
}

.analysis-block-code-list {
  display: grid;
  gap: 0;
}

.analysis-archetype-bar {
  fill: var(--archetype-color, var(--muted));
}

.analysis-archetype-bar[data-ungrouped="true"] {
  fill: var(--border-strong);
}

/* Pinax 2 */
.pinax2-page .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.pinax2-page .topbar-brand .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.pinax2-page .topbar-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.pinax2-page .topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pinax2-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.pinax2-hints {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.pinax2-chat-panel {
  display: grid;
  gap: 0.85rem;
}

.pinax2-messages {
  min-height: 280px;
  max-height: 55vh;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
  padding: 0.25rem;
}

.pinax2-message {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--surface-soft);
}

.pinax2-message-user {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.pinax2-message p {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
}

.pinax2-composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.pinax2-composer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.65rem;
}

.pinax2-pending {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.ghost-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
}

/* Pinax 2 control plane */
.pinax2-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.4fr 1fr;
}
@media (max-width: 900px) {
  .pinax2-grid { grid-template-columns: 1fr; }
}
.pinax2-list { display: grid; gap: 0.5rem; }
.pinax2-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  background: var(--surface-soft);
}
.pinax2-shell .muted { color: var(--muted); }
.pinax2-composer-actions label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.personal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* Link-styled buttons must never show default underlines (fixes black bar under CTAs). */
a.primary-button,
a.ghost-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1.2;
}

/* —— Personal board workspace (full-bleed product surface) —— */
html.personal-page,
body.personal-page-body {
  height: 100%;
  margin: 0;
}

body.personal-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--page, #f4f5f5);
}

.personal-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding-inline: 1rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface, #fff);
}

.personal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.personal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft, #f3f6f7);
  color: var(--ink, #242426);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.personal-chip-live {
  border-color: color-mix(in srgb, #1a7f4b 35%, var(--border));
  background: color-mix(in srgb, #1a7f4b 12%, #fff);
  color: #145c37;
}

.personal-chip-muted {
  color: var(--muted);
  font-weight: 500;
}

.personal-chip-danger {
  border-color: color-mix(in srgb, #b42318 35%, var(--border));
  background: color-mix(in srgb, #b42318 10%, #fff);
  color: #912018;
}

.personal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.personal-toolbar-btn {
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.personal-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.personal-main > .panel {
  margin: 1.25rem auto;
  max-width: 32rem;
  width: calc(100% - 2rem);
}

.personal-frame-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
}

.personal-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: var(--surface, #fff);
}

@media (max-width: 720px) {
  .personal-topbar {
    align-items: flex-start;
  }

  .personal-meta {
    order: 3;
    width: 100%;
  }

  .personal-toolbar-btn[hidden] {
    display: none !important;
  }
}

/* —— Customize workshop —— */
.customize-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  display: grid;
  gap: 1rem;
}

.customize-intro h1 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.55rem;
}

.customize-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.customize-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

.customize-catalog-card {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 12px);
  background: var(--surface-soft, #f7f9fa);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.customize-catalog-card:hover {
  border-color: color-mix(in srgb, var(--accent, #1f6feb) 40%, var(--border));
  box-shadow: 0 1px 0 color-mix(in srgb, #000 6%, transparent);
}

.customize-catalog-card.is-on {
  border-color: color-mix(in srgb, #1a7f4b 40%, var(--border));
  background: color-mix(in srgb, #1a7f4b 8%, #fff);
}

.customize-catalog-card strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.customize-catalog-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.customize-catalog-card.is-on .customize-catalog-status {
  color: #145c37;
}

.customize-catalog-card small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.customize-on-board {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.customize-on-board h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.customize-prompt-panel .pinax2-messages {
  min-height: 220px;
  max-height: 42vh;
}

.customize-side-panel h2 {
  margin-top: 0;
  font-size: 1rem;
}

.customize-side-panel h2 + .pinax2-list {
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .customize-layout {
    grid-template-columns: 1fr 1fr;
  }

  .customize-side-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .customize-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Pinax 2 — preview stage, ticket cards, and build-wait states
   ============================================================ */

.preview-stage {
  display: grid;
  gap: 1rem;
}
.preview-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.preview-stage-head h2 {
  margin: 0.1rem 0 0.2rem;
}
.preview-stage-body {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr);
  gap: 1rem;
  align-items: start;
}
.preview-frame-shell {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}
.preview-frame {
  width: 100%;
  height: 560px;
  border: 0;
  background: var(--surface);
  display: block;
}
.preview-skeleton,
.preview-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}
.preview-skeleton span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: preview-spin 0.9s linear infinite;
}
@keyframes preview-spin {
  to { transform: rotate(360deg); }
}
.preview-unavailable strong {
  color: var(--text-strong);
}
.preview-side h3 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.preview-changes {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}
.preview-change {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}
.preview-change code {
  font-size: 0.78rem;
  word-break: break-all;
}
.preview-change span {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.preview-change-added { border-left: 3px solid var(--normal); }
.preview-change-modified { border-left: 3px solid var(--accent); }
.preview-change-removed { border-left: 3px solid var(--intervention); }
.preview-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.preview-hint {
  margin-top: 0.6rem;
  font-size: 0.82rem;
}
.preview-success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--normal);
  background: var(--normal-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.preview-success strong {
  color: var(--normal);
}

/* Ticket cards */
.tkt-card {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.6rem;
  background: var(--surface);
}
.tkt-card.tkt-preview_ready {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.tkt-card.tkt-live,
.tkt-card.tkt-rejected {
  opacity: 0.72;
}
.tkt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}
.tkt-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
}
.tkt-badge-preview_ready { background: var(--accent-soft); color: var(--accent-strong); }
.tkt-badge-building,
.tkt-badge-planned,
.tkt-badge-promoting { background: var(--watch-soft); color: var(--watch); }
.tkt-badge-live { background: var(--normal-soft); color: var(--normal); }
.tkt-badge-failed { background: var(--intervention-soft); color: var(--intervention); }
.tkt-meta {
  font-size: 0.75rem;
  color: var(--subtle);
  white-space: nowrap;
}
.tkt-title {
  font-size: 0.9rem;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.tkt-plan {
  font-size: 0.8rem;
  margin: 0;
}
.tkt-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--watch);
}
.tkt-progress::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--watch);
  animation: preview-spin 0.9s linear infinite;
  flex: none;
}
.tkt-fail-reason {
  margin: 0;
  font-size: 0.82rem;
  color: var(--intervention);
}
.tkt-card details summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.35rem 0;
}
.tkt-review {
  justify-self: start;
}

/* Chat wait state */
.pinax2-message.pinax2-pending p {
  color: var(--muted);
}
.pinax2-message.pinax2-pending p::after {
  content: "…";
  animation: pinax2-ellipsis 1.2s steps(4, end) infinite;
}
@keyframes pinax2-ellipsis {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}
.pinax2-pending-clock {
  font-size: 0.75rem;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.composer-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .preview-stage-body {
    grid-template-columns: 1fr;
  }
  .preview-frame {
    height: 440px;
  }
}

@media (max-width: 720px) {
  /* Prompting is the primary interaction — it precedes the catalog on mobile. */
  .customize-prompt-panel { order: -2; }
  .customize-side-panel { order: -1; }
}

/* ============================================================
   Customize redesign — professional hierarchy (design review)
   ============================================================ */

.customize-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.4rem 0.2rem 0.2rem;
}
.customize-head h1 {
  margin: 0.1rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.customize-head-meta {
  margin: 0;
  max-width: 44ch;
  text-align: right;
  font-size: 0.9rem;
}

.customize-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  align-items: start;
}

/* The prompt is the workspace — give it presence; the rail stays quiet. */
.customize-prompt-panel {
  min-height: 480px;
}
.customize-side-panel {
  background: var(--surface-soft);
  box-shadow: none;
}
.customize-rail-versions {
  margin-top: 1.1rem;
}
.customize-side-panel .panel-header h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Widget library: compact uniform grid, one hint for the whole section. */
.customize-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.6rem;
}
.customize-catalog-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: border-color 120ms ease, background-color 120ms ease;
}
.customize-catalog-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
}
.customize-catalog-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.customize-catalog-card strong {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}
.customize-catalog-card.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.customize-catalog-status {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: var(--surface);
  text-transform: none;
}
.customize-catalog-card.is-on .customize-catalog-status {
  border-color: transparent;
  background: var(--accent);
  color: #ffffff;
}

/* Chat: readable conversation, quiet chrome */
.pinax2-messages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.25rem 0.1rem;
  background: transparent;
  border: 0;
}
.pinax2-message {
  max-width: 86%;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.pinax2-message strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 0.15rem;
}
.pinax2-message p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.pinax2-message-user {
  align-self: flex-end;
  background: var(--accent-soft);
  border-color: transparent;
}
.pinax2-message-assistant {
  align-self: flex-start;
}

/* Composer: one aligned row — mode segments left, action right */
.pinax2-composer textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
}
.pinax2-composer textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.pinax2-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.mode-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}
.mode-seg label {
  position: relative;
  cursor: pointer;
}
.mode-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mode-seg span {
  display: inline-block;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 120ms ease, color 120ms ease;
}
.mode-seg label:has(input:checked) span {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
}
.mode-seg label:has(input:focus-visible) span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.composer-hint {
  margin-top: 0.5rem;
}

/* Personal edit mode bar */
.personal-edit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.6rem 1.4rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.personal-edit-bar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-strong);
}
.personal-edit-actions {
  display: flex;
  gap: 0.6rem;
}
.personal-approve-bar {
  border-color: var(--normal);
  background: var(--normal-soft);
}

.personal-stale-bar {
  border-color: var(--watch);
  background: var(--watch-soft);
}
