/*
 * VAAS 3 interface system
 * Neutral work surfaces, VAA blue as an action/brand accent and semantic
 * colours for data sources and states. This file is intentionally organised
 * by component instead of by individual page.
 */

:root {
  --bg: #0b0e13;
  --surface: #121720;
  --surface-2: #171e28;
  --surface-3: #202936;
  --surface-elevated: #273342;
  --line: #2d3745;
  --line-soft: #222b37;
  --text: #f5f7fb;
  --muted: #a5afbd;
  --muted-2: #778293;
  --blue: #2588f7;
  --blue-2: #8fc6ff;
  --cyan: #35c7c1;
  --green: #39c68a;
  --amber: #f2b84b;
  --red: #ef6472;
  --purple: #a38bf4;
  --topbar: 72px;
  --sidebar: 232px;
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --shadow-dialog: 0 28px 80px rgba(0, 0, 0, .5);
}

html { background: var(--bg); }
body {
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(80, 164, 255, .8); outline-offset: 2px; }

/* Application shell */
.app-shell { grid-template: var(--topbar) 1fr / var(--sidebar) minmax(0, 1fr); }
.app-shell.sidebar-collapsed { --sidebar: 72px; }
.topbar {
  height: var(--topbar);
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  justify-content: flex-start;
}
.topbar-actions { margin-left: auto; }
.brand { min-width: 184px; gap: 10px; }
.brand-mark.small { width: 42px; height: 42px; border: 0; box-shadow: none; }
.brand-copy strong { font-size: 20px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.topbar-context {
  margin-left: 18px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.role-pill { border-color: var(--line); color: var(--blue-2); background: color-mix(in srgb, color-mix(in srgb, var(--blue) 9%, var(--surface)) 8%, transparent); }
.avatar { border-color: var(--line-soft); background: var(--surface); }
.sidebar {
  top: var(--topbar);
  height: calc(100vh - var(--topbar));
  padding: 16px 12px 28px;
  border-right: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.sidebar-toggle { min-height: 42px; margin-bottom: 16px; border: 0; color: var(--muted-2); background: transparent; }
.sidebar nav a {
  min-height: 44px;
  margin: 3px 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 650;
}
.sidebar nav a:hover { color: var(--text); background: var(--surface-2); }
.sidebar nav a.active {
  color: var(--text);
  border-color: var(--line-soft);
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  box-shadow: none;
}
.nav-icon { flex-basis: 22px; color: var(--blue); }
.sidebar nav a.active .nav-icon { color: var(--text); }
.nav-label { margin: 23px 12px 8px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.content { width: 100%; max-width: 1900px; margin: 0 auto; padding: 36px clamp(24px, 3vw, 52px) 80px; }

/* Typography and page anatomy */
h1 { margin: 0 0 10px; font-size: clamp(34px, 3vw, 48px); line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: 25px; letter-spacing: -.02em; }
h3 { font-size: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.muted { color: var(--muted); line-height: 1.55; }
.page-header { min-height: 0; margin-bottom: 26px; }
.page-header.split { align-items: flex-end; gap: 24px; }
.page-header > div:first-child { min-width: 0; }
.page-header .muted { max-width: 780px; }
.section-heading { margin: 34px 0 16px; }
.text-link { color: var(--blue-2); }

/* Buttons and form controls */
.button {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 750;
}
.button.primary { border-color: var(--line-soft); color: var(--text); background: var(--blue); box-shadow: none; }
.button.primary:hover { background: color-mix(in srgb, var(--blue) 9%, var(--surface)); filter: none; }
.button.secondary { border-color: var(--line-soft); color: var(--text); background: var(--surface-2); }
.button.secondary:hover { border-color: var(--line-soft); background: var(--surface-3); filter: none; }
.button.quiet { min-height: 36px; padding: 7px 10px; background: transparent; }
.button-count { display: inline-grid; min-width: 20px; height: 20px; margin-left: 7px; place-items: center; border-radius: 999px; background: var(--surface-elevated); font-size: 11px; }
.button.danger { border-color: color-mix(in srgb, var(--line-soft) 55%, transparent); color: var(--red); background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 6%, transparent); }
.button.success { border-color: color-mix(in srgb, var(--line-soft) 45%, transparent); color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 8%, transparent); }
input, textarea, select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface-2);
}
input:hover, textarea:hover, select:hover { border-color: var(--line-soft); }
input:focus, textarea:focus, select:focus { border-color: var(--line-soft); box-shadow: none; outline: 0; }
input:disabled, textarea:disabled, select:disabled { opacity: .62; cursor: not-allowed; }
label { color: var(--text); }
label small { color: var(--muted-2); }
.id-input, .editable-table .id-input { width: 104px; min-height: 36px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--surface); font-weight: 800; }
.save-indicator { color: var(--green); font-size: 12px; }

/* Cards, panels and states */
.form-card, .data-panel, .issue-panel, .connection-card, .saved-rule-group,
.metric-card, .workspace-card, .list-card, .job-progress-card, .active-capture-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: none;
}
.form-card { padding: 22px; }
.metric-grid { gap: 14px; overflow: visible; border: 0; background: transparent; }
.metric-card, .metric-card.accent { min-height: 108px; padding: 20px 22px; border-radius: var(--radius-md); background: var(--surface); }
.metric-card strong { margin-top: 7px; font-size: 30px; }
.metric-card small { color: var(--muted-2); }
.alert { border-radius: var(--radius-sm); }
.status-badge { border: 1px solid transparent; border-radius: 999px; }
.status-badge.current { border-color: color-mix(in srgb, var(--line-soft) 42%, transparent); color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 8%, transparent); }
.status-badge.changed { border-color: color-mix(in srgb, var(--line-soft) 50%, transparent); color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 8%, transparent); }
.status-badge.new { border-color: color-mix(in srgb, var(--line-soft) 45%, transparent); color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 8%, transparent); }
.status-badge.warning { border-color: color-mix(in srgb, var(--line-soft) 45%, transparent); color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 8%, transparent); }
.status-badge.error, .status-badge.failed { border-color: color-mix(in srgb, var(--line-soft) 45%, transparent); color: var(--red); background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 8%, transparent); }
.status-dot.ok { background: var(--green); }.status-dot.working { background: var(--blue); }
.empty-state, .empty-cell { color: var(--muted); }

/* Dashboard */
.dashboard-hero {
  padding: 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
}
.dashboard-hero::before, .dashboard-hero::after { display: none; }
.dashboard-hero .page-header { margin-bottom: 26px; }
.dashboard-hero .muted { color: var(--muted); }
.dashboard-hero .metric-grid { border: 0; background: transparent; }
.dashboard-hero .metric-card { min-height: 104px; border: 1px solid var(--line-soft); background: var(--surface-2); }
.dashboard-metrics .metric-card:last-child strong { color: var(--green); }
.workspace-list { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.workspace-row {
  min-height: 228px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: none;
}
.workspace-row::before { display: none; }
.workspace-row:hover { border-color: var(--line-soft); background: var(--surface-2); transform: translateY(-1px); box-shadow: none; }
.airline-badge { color: var(--text); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); box-shadow: none; }
.workspace-row .compact-stats { border-color: var(--line); background: var(--surface-2); }
.workspace-open { color: var(--blue-2); }

/* Dashboard command center */
.dashboard-page { width: 100%; max-width: 1660px; margin: 0 auto; }
.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr);
  gap: 18px;
}
.dashboard-welcome, .dashboard-status-panel, .dashboard-workspace-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.dashboard-welcome {
  display: grid;
  position: relative;
  min-height: 330px;
  align-content: space-between;
  padding: 34px;
  overflow: hidden;
  background: var(--surface);
}
.dashboard-welcome::after {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -160px;
  bottom: -185px;
  border: 44px solid color-mix(in srgb, var(--line-soft) 8%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.dashboard-welcome > * { position: relative; z-index: 1; }
.dashboard-welcome h1 { max-width: 780px; margin-bottom: 14px; }
.dashboard-welcome .muted { max-width: 720px; color: var(--muted); font-size: 17px; }
.dashboard-actions { display: flex; gap: 10px; margin-top: 26px; }
.dashboard-guidance {
  display: flex;
  max-width: 780px;
  gap: 13px;
  align-items: center;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--line-soft) 36%, transparent);
  border-radius: 10px;
  background: var(--surface);
}
.guidance-number {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--text);
  background: var(--blue);
  font-weight: 900;
}
.dashboard-guidance div { display: grid; gap: 2px; }
.dashboard-guidance small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.dashboard-guidance strong { font-size: 14px; }

.dashboard-status-panel {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
}
.dashboard-status-panel > header { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.dashboard-status-panel h2 { margin: 0; }
.system-ready, .workspace-ready {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--line-soft) 32%, transparent);
  border-radius: 999px;
  color: var(--green);
  background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 6%, transparent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.dashboard-status-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.dashboard-status-list > a {
  display: grid;
  min-height: 134px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-2);
  transition: border-color .16s ease, background .16s ease;
}
.dashboard-status-list > a:hover { border-color: var(--line-soft); background: var(--surface); }
.dashboard-status-list span { color: var(--muted); font-size: 13px; }
.dashboard-status-list strong { margin: 5px 0 1px; font-size: 30px; line-height: 1; }
.dashboard-status-list small { color: var(--muted-2); font-size: 11px; }
.status-panel-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 17px; color: var(--blue-2); font-size: 13px; font-weight: 750; }

.dashboard-workspaces { margin-top: 38px; }
.dashboard-workspaces .section-heading { align-items: flex-end; margin-top: 0; }
.dashboard-workspaces .section-heading .muted { font-size: 14px; }
.dashboard-workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dashboard-workspace-card { padding: 26px; background: var(--surface); }
.dashboard-workspace-card > header { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.dashboard-workspace-card .workspace-title h3 { margin-bottom: 4px; font-size: 21px; }
.dashboard-workspace-card .workspace-title p { color: var(--muted-2); font-size: 13px; }
.workspace-dataset-note { margin: 18px 0 12px; color: var(--muted); font-size: 13px; }
.workspace-entity-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.workspace-entity-links a { display: grid; min-height: 108px; align-content: center; padding: 15px; background: var(--surface-2); }
.workspace-entity-links a:hover { background: var(--surface); }
.workspace-entity-links span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.workspace-entity-links strong { margin: 4px 0 2px; font-size: 25px; }
.workspace-entity-links small { color: var(--blue-2); font-size: 11px; opacity: 0; transform: translateY(3px); transition: opacity .16s ease, transform .16s ease; }
.workspace-entity-links a:hover small, .workspace-entity-links a:focus-visible small { opacity: 1; transform: translateY(0); }
.dashboard-workspace-card > footer { display: flex; gap: 9px; align-items: center; margin-top: 18px; }
.dashboard-workspace-card > footer .button.quiet { color: var(--muted); }
.dashboard-active-job { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 18px 0 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--line-soft) 30%, transparent); border-radius: 9px; background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 5%, transparent); }
.dashboard-active-job > span:first-child { color: var(--muted); }
.dashboard-active-job > strong { color: var(--amber); }
.dashboard-active-job .progress-track { grid-column: 1 / -1; }
.dashboard-active-job .progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--amber); }

/* Airline context and navigation */
.workspace-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.workspace-identity { display: flex; min-width: 0; gap: 12px; align-items: center; }
.workspace-identity > span:last-child { display: grid; min-width: 0; gap: 2px; }
.workspace-identity small { color: var(--blue-2); font-size: 11px; letter-spacing: .04em; text-transform: none; }
.workspace-identity strong { overflow: hidden; color: var(--text); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.airline-badge.small { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; }
.workspace-nav { display: flex; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.workspace-nav a { min-width: 92px; padding: 9px 13px; border-radius: 6px; color: var(--muted); text-align: center; }
.workspace-nav a:hover { color: var(--text); background: var(--surface-2); }
.workspace-nav a.active { color: var(--text); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); box-shadow: none; }
.workflow-rail {
  display: grid;
  grid-template-columns: minmax(120px,1fr) auto minmax(120px,1fr) auto minmax(120px,1fr) auto minmax(120px,1fr) auto minmax(120px,1fr);
  align-items: center;
  gap: 8px;
  margin: -8px 0 26px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}
.workflow-rail > i { color: var(--muted-2); font-style: normal; text-align: center; }
.workflow-rail > a { display: grid; position: relative; min-width: 0; grid-template-columns: 30px minmax(0,1fr); gap: 0 9px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--muted); }
.workflow-rail > a:hover { color: var(--text); background: var(--surface-2); }
.workflow-rail > a.active { color: var(--text); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.workflow-rail > a > span { display: grid; grid-row: 1 / 3; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--blue-2); background: var(--surface); font-size: 12px; font-weight: 800; }
.workflow-rail > a.active > span { color: var(--text); background: var(--blue); }
.workflow-rail strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-rail small { overflow: hidden; color: var(--muted-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.entity-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}
.entity-tabs a { display: flex; min-height: 50px; gap: 10px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface); }
.entity-tabs a:hover { color: var(--text); border-color: var(--line-soft); background: var(--surface-2); }
.entity-tabs a.active { color: var(--text); border-color: var(--line-soft); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.entity-tabs span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 6px; color: var(--blue-2); background: var(--surface); font-size: 10px; }
.entity-tabs a.active span { color: var(--text); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }

/* Guided workflows */
.workbench-journey { gap: 8px; }
.workbench-journey > i { color: var(--muted-2); }
.workbench-journey a { min-height: 64px; border-color: var(--line); background: var(--surface); }
.workbench-journey a.active { border-color: var(--line-soft); background: var(--surface); }
.source-note { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); background: var(--surface); }
.entity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; border: 0; background: transparent; }
.entity-row { min-height: 112px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.entity-row:last-child { border-bottom: 1px solid var(--line); }
.entity-row:hover { border-color: var(--line-soft); background: var(--surface-2); }
.entity-row.featured { box-shadow: none; }
.entity-icon { color: var(--blue-2); background: var(--surface); }
.utility-panel { border-color: var(--line); background: var(--surface); }
.next-action-card { border-color: var(--line-soft); background: var(--surface); }
.readiness-card, .workflow-strip article { border-color: var(--line); background: var(--surface); }

/* Data source switcher */
.source-tabs { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; margin: 0 0 14px; overflow: visible; }
.source-tab { min-height: 56px; gap: 10px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface); }
.source-tab > span:first-child { flex: 0 0 28px; width: 28px; height: 28px; color: var(--text); background: var(--surface-3); }
.source-tab-copy { display: grid !important; width: auto !important; height: auto !important; gap: 1px; place-items: initial !important; border-radius: 0 !important; background: transparent !important; }
.source-tab-copy strong { color: inherit; font-size: 13px; }
.source-tab-copy small { overflow: hidden; color: var(--muted-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.source-tab:hover { color: var(--text); border-color: var(--line-soft); }
.source-tab.active { color: var(--text); border-color: var(--line-soft); background: var(--surface); }
.source-tab.source-vamsys.active { border-color: var(--purple); background: color-mix(in srgb, color-mix(in srgb, var(--purple) 9%, var(--surface)) 10%, transparent); }
.source-tab.source-fr24.active { border-color: var(--cyan); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 9%, transparent); }
.source-tab.source-manual.active { border-color: var(--line-soft); background: var(--surface); }
.source-context { border-left-color: var(--purple); background: var(--surface); }
.source-context.source-fr24 { border-left-color: var(--cyan); }

/* Workbench */
.workspace-actions { display: grid; grid-template-columns: auto auto; gap: 8px; justify-items: end; }
.workspace-actions .button { white-space: nowrap; }
.workspace-actions .save-indicator { grid-column: 1 / -1; }
.workbench-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.search-form { width: min(430px, 100%); }
.filter-chips { gap: 6px; justify-content: flex-end; }
.filter-chip { min-height: 34px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-2); }
.filter-chip:hover { color: var(--text); border-color: var(--line-soft); }
.filter-chip.active { color: var(--text); border-color: var(--line-soft); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.filter-chip.changed.active { border-color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 12%, transparent); }
.filter-chip.new.active { border-color: var(--cyan); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 10%, transparent); }
.data-panel { overflow: hidden; border-color: var(--line); background: var(--surface); }
.table-scroll { overflow: auto; scrollbar-color: #52647a #11161d; }
.data-table, .workbench-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.workbench-table.editable-table { min-width: 900px !important; table-layout: fixed; }
.data-table th, .workbench-table th { position: sticky; z-index: 3; top: 0; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); background: var(--surface); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.data-table td, .workbench-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); background: var(--surface); vertical-align: middle; }
.data-table tbody tr:hover td, .workbench-table tbody tr:hover td { background: var(--surface); }
.record-row.state-current { box-shadow: none; }
.record-row.state-changed { box-shadow: none; }
.record-row.state-new { box-shadow: none; }
.comparison-cell { width: 150px; min-width: 150px !important; }
.comparison-trigger { display: inline-grid; gap: 4px; justify-items: start; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.comparison-trigger small { color: var(--muted-2); }
.record-actions { position: sticky; z-index: 2; right: 0; min-width: 150px !important; gap: 7px; justify-content: flex-end; box-shadow: none; }
.record-actions .button { white-space: nowrap; }
.cell-subline { display: block; margin-top: 4px; color: var(--muted-2); }
.carrier-chip { color: var(--muted); background: color-mix(in srgb, color-mix(in srgb, var(--purple) 9%, var(--surface)) 12%, transparent); }
.fleet-pill-list > span { border: 1px solid color-mix(in srgb, var(--line-soft) 35%, transparent); color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 7%, transparent); }
.route-table { min-width: 1040px; table-layout: fixed; }
.route-table th:nth-child(1) { width: 14%; }.route-table th:nth-child(2) { width: 15%; }.route-table th:nth-child(3) { width: 14%; }.route-table th:nth-child(4) { width: 8%; }.route-table th:nth-child(5) { width: 10%; }.route-table th:nth-child(6) { width: 23%; }.route-table th:nth-child(7) { width: 16%; }
.route-table .comparison-cell, .route-table .record-actions, .route-table .fleet-pill-list { min-width: 0 !important; }
.empty-cell { padding: 38px !important; text-align: center; }
.pagination { margin: 18px 0; }

/* Dialogs and editors */
dialog::backdrop { background: var(--surface); backdrop-filter: blur(4px); }
.route-editor-dialog, .comparison-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--surface); box-shadow: none; }
.route-editor-header, .comparison-dialog-header { position: sticky; z-index: 4; top: 0; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.editor-sections { padding: 20px; background: var(--surface-2); }
.editor-sections fieldset { margin: 0 0 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.editor-sections legend { padding: 0 8px; color: var(--blue-2); font-size: 16px; }
.route-details-grid { gap: 14px; }
.choice-editor { border-color: var(--line); background: var(--surface-2); }
.checkbox-grid label { border-color: var(--line); background: var(--surface-2); }
.checkbox-grid label:hover { border-color: var(--line-soft); }
.create-record-form { gap: 15px; padding: 22px; }
.field-change-list { border-color: var(--line); background: var(--line); }
.field-change-list > div { background: var(--surface); }
.field-change-list .diff-heading { background: var(--surface-3); }
.field-change-list .before { color: var(--text); }.field-change-list .after { color: var(--green); }

/* Rules and settings */
.section-tabs { gap: 6px; margin: 0 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.section-tabs a { padding: 8px 11px; border-radius: 6px; color: var(--muted); }
.section-tabs a:hover { color: var(--text); background: var(--surface-3); }
.rule-explainer { gap: 10px; }
.rule-explainer article { border-color: var(--line); background: var(--surface); }
.rule-explainer article > span { color: var(--text); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.rule-workshop { gap: 16px; }
.rule-primary-card { border-color: var(--line-soft); background: var(--surface); }
.rule-sentence, .rule-conditions, .advanced-rule-options, .advanced-rule-panel { border-color: var(--line); background: var(--surface-2); }
.rule-sentence > span, .rule-sentence > b { color: var(--cyan); }
.target-fleet-picker { border-color: var(--line); }
.rule-import-card { gap: 24px; border-color: var(--line-soft); background: var(--surface); }
.saved-rule-grid { gap: 12px; }
.saved-rule { border-color: var(--line-soft); }
.saved-rule-group h3 span { color: var(--blue-2); background: var(--surface); }
.alias-edit-form { gap: 8px; }

/* Jobs, system and utilities */
.global-job-dock { border-color: var(--line-soft); background: var(--surface); }
.progress-track { background: var(--surface-2); }
.progress-track > span { background: var(--surface); }
.list-card { background: var(--surface); }
.event-log { border-color: var(--line); background: var(--surface-2); }
.review-page-header { margin-bottom: 18px; }
.review-header-actions { display: flex; gap: 10px; align-items: center; }
.source-priority-banner { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 14px; align-items: center; margin-bottom: 16px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--line-soft) 45%, transparent); border-left: 4px solid var(--cyan); border-radius: 10px; background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 7%, transparent); }
.source-priority-banner p { margin: 3px 0 0; color: var(--muted); }
.source-priority-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 10px; color: var(--on-accent); background: var(--cyan); font-weight: 900; }
.review-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.review-metrics article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.review-metrics span { color: var(--muted); font-size: 12px; }
.review-metrics strong { font-size: 22px; }
.review-filter-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.review-filter-tabs a { flex: 0 0 auto; }
.bulk-review-bar { display: flex; position: sticky; z-index: 8; top: calc(var(--topbar) + 10px); align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); box-shadow: none; }
.bulk-review-bar > div { display: flex; gap: 12px; align-items: center; }
.bulk-review-bar > div > span { color: var(--muted); font-size: 12px; }
.bulk-select-toggle { display: flex; gap: 9px; align-items: center; font-weight: 700; }
.bulk-select-toggle input, .review-select { width: 18px; height: 18px; accent-color: var(--cyan); }
.source-first-review { gap: 12px; }
.source-first-review, .source-first-review .review-card, .source-first-review .review-card > * { min-width: 0; }
.source-first-review .review-card { max-width: 100%; border: 1px solid var(--line); background: var(--surface); }
.source-first-review .review-card.source-proposal { border-left: 4px solid var(--cyan); }
.review-top { align-items: flex-start; }
.review-identity { display: flex; gap: 12px; align-items: center; }
.decision-state { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800; }
.decision-state.accept { color: var(--green); border-color: color-mix(in srgb, var(--line-soft) 45%, transparent); }
.decision-state.keep, .decision-state.reject { color: var(--text); border-color: color-mix(in srgb, var(--line-soft) 45%, transparent); }
.proposal-caption { display: flex; gap: 9px; align-items: center; margin: 12px 0 8px; }
.proposal-caption span { padding: 4px 7px; border-radius: 5px; color: var(--on-accent); background: var(--cyan); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.proposal-caption strong { color: var(--green); font-size: 12px; }
.reason-details { margin: 8px 0; }
.reason-details summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.source-first-diff { grid-template-columns: minmax(140px,.8fr) repeat(3,minmax(150px,1fr)); margin-top: 10px; }
.source-first-diff .source-column { color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 12%, transparent); }
.source-first-diff .source-value { color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 6%, transparent); }
.review-decisions { justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.system-status-grid .metric-card { background: var(--surface); }
.danger-zone-card { border-color: color-mix(in srgb, var(--line-soft) 35%, transparent); background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 4%, transparent); }
.action-menu > div { border-color: var(--line); background: var(--surface-elevated); box-shadow: none; }
.action-menu > div > *:hover { background: var(--surface); }
.language-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.language-switch button { min-width: 30px; padding: 4px 7px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 900; cursor: pointer; }
.language-switch button:hover { color: var(--text); background: var(--surface-3); }
.language-switch button.active { color: var(--on-accent); background: var(--cyan); }
.help-topic-nav { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 18px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.help-topic-nav a { flex: 0 0 auto; padding: 8px 12px; border-radius: 7px; color: var(--muted); font-weight: 800; }
.help-topic-nav a:hover { color: var(--text); background: var(--surface-3); }
.help-section { margin-bottom: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.help-section h2 { margin-top: 2px; }
.help-step-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-top: 16px; }
.help-step-grid article, .help-definition-grid article { padding: 15px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface-2); }
.help-step-grid article > span { display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 11px; border-radius: 50%; color: var(--on-accent); background: var(--blue-2); font-weight: 900; }
.help-step-grid h3, .help-definition-grid h3 { margin: 0 0 6px; }
.help-step-grid p, .help-definition-grid p, .help-callout p { margin: 0; color: var(--muted); }
.help-definition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.help-definition-grid .source-fr24 { border-top: 3px solid var(--cyan); }
.help-definition-grid .source-vamsys { border-top: 3px solid var(--line-soft); }
.help-definition-grid .source-working { border-top: 3px solid var(--line-soft); }
.help-callout { margin-top: 10px; padding: 14px 16px; border-left: 3px solid var(--blue); border-radius: 6px; background: var(--surface); }
.help-callout strong { display: block; margin-bottom: 4px; }

/* Login */
.login-page { background: var(--surface-2); }
.login-shell { border-color: var(--line-soft); background: var(--surface); box-shadow: none; }
.login-brand { background: var(--surface); }
.login-form { background: var(--surface); }

/* Responsive behaviour */
@media (max-width: 1180px) {
  :root { --sidebar: 76px; }
  .sidebar span:not(.nav-icon), .sidebar .nav-label { display: none; }
  .sidebar-toggle { justify-content: center; }
  .sidebar nav a { justify-content: center; }
  .content { padding-inline: 24px; }
  .topbar-context { display: none; }
  .workspace-bar { grid-template-columns: 1fr; gap: 14px; }
  .workspace-nav { width: 100%; }
  .workspace-nav a { flex: 1; }
  .workflow-rail { display: flex; overflow-x: auto; }
  .workflow-rail > a { flex: 0 0 150px; }
  .source-tab-copy small { display: none; }
  .workbench-toolbar { align-items: stretch; flex-direction: column; }
  .filter-chips { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .dashboard-overview, .dashboard-workspace-grid { grid-template-columns: 1fr; }
  .dashboard-welcome, .dashboard-status-panel { min-height: 0; }
  .dashboard-status-panel { min-height: 290px; }
  .page-header.split { align-items: stretch; flex-direction: column; }
  .workspace-actions { justify-items: stretch; }
  .entity-tabs { grid-template-columns: repeat(2, 1fr); }
  .source-tabs { grid-template-columns: repeat(2, 1fr); }
  .source-tab:last-child { grid-column: 1 / -1; }
  .entity-list { grid-template-columns: 1fr; }
  .rule-workshop, .rule-sentence, .rule-conditions, .rule-import-card { grid-template-columns: 1fr; }
  .help-step-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-grid.manifest-metrics { grid-template-columns: repeat(2, 1fr); }
  .review-metrics { grid-template-columns: repeat(2,1fr); }
  .bulk-review-bar { position: static; align-items: stretch; flex-direction: column; }
  .bulk-review-bar > div { justify-content: space-between; }
  .source-first-diff { display: grid; grid-template-columns: minmax(110px,.75fr) repeat(3,minmax(160px,1fr)); overflow-x: auto; }
}

@media (max-width: 620px) {
  :root { --topbar: 60px; --sidebar: 0px; }
  .topbar { padding: 0 14px; }
  .content { padding: 20px 14px 48px; }
  h1 { font-size: 31px; }
  .workspace-bar { margin-bottom: 18px; }
  .workspace-nav { display: flex; overflow-x: auto; }
  .workspace-nav a { flex: 0 0 92px; }
  .workspace-nav a { min-width: 0; padding-inline: 5px; font-size: 12px; }
  .entity-tabs { gap: 6px; }
  .entity-tabs a { min-height: 44px; padding: 8px; }
  .source-tabs { gap: 6px; }
  .source-tab { min-height: 46px; }
  .filter-chips { display: grid; grid-template-columns: repeat(2, 1fr); }
  .filter-chip { justify-content: space-between; }
  .metric-grid, .metric-grid.manifest-metrics { grid-template-columns: 1fr; }
  .review-metrics { grid-template-columns: 1fr 1fr; }
  .source-priority-banner { grid-template-columns: 1fr; }
  .review-header-actions { align-items: stretch; flex-direction: column; }
  .review-decisions { align-items: stretch; flex-direction: column; }
  .source-first-diff { width: 100%; max-width: 100%; contain: inline-size; }
  .help-step-grid, .help-definition-grid { grid-template-columns: 1fr; }
  .workspace-list { grid-template-columns: minmax(0, 1fr); }
  .dashboard-hero { padding: 20px 17px; }
  .dashboard-welcome, .dashboard-status-panel, .dashboard-workspace-card { padding: 20px 17px; }
  .dashboard-actions, .dashboard-workspace-card > footer { align-items: stretch; flex-direction: column; }
  .dashboard-actions .button, .dashboard-workspace-card > footer .button { width: 100%; }
  .dashboard-status-list { grid-template-columns: 1fr 1fr; }
  .dashboard-status-list > a { min-height: 112px; padding: 13px; }
  .dashboard-workspace-card > header { align-items: flex-start; }
  .workspace-entity-links { grid-template-columns: repeat(2, 1fr); }
  .workspace-entity-links a { min-height: 94px; }
  .workspace-entity-links small { opacity: 1; transform: none; }
  .route-editor-dialog, .comparison-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .route-editor-header { padding: 16px; }
  .editor-sections { padding: 10px; }
  .workbench-panel { overflow: visible; border: 0; background: transparent; }
  .workbench-panel .table-scroll { overflow: visible; }
  .workbench-table { display: block; min-width: 0; }
  .workbench-table thead { display: none; }
  .workbench-table tbody { display: grid; gap: 12px; }
  .workbench-table tr.record-row { display: block; overflow: hidden; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius-md); background: var(--surface); box-shadow: none; }
  .workbench-table td { display: grid; position: static; width: 100%; min-width: 0 !important; grid-template-columns: 86px minmax(0, 1fr); gap: 11px; align-items: start; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); box-shadow: none; }
  .workbench-table td::before { content: attr(data-label); padding-top: 3px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .record-actions { grid-template-columns: 86px 1fr 1fr !important; }
  .id-input { width: 100%; }
}

/* Focused airline workbench -------------------------------------------------
 * The everyday path deliberately uses fewer surfaces than the administrative
 * pages. Status colour is redundant with a label and a left-edge marker.
 */
.workspace-primary-nav { display: flex; align-items: center; overflow-x: auto; }
.workspace-primary-nav a { flex: 0 0 auto; min-width: 76px; text-align: center; }
.workspace-primary-nav .workspace-publish-link { margin-left: 6px; color: var(--blue); }
.workspace-primary-nav .workspace-publish-link::before { margin-right: 6px; content: "↑"; }

.simple-airline-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 26px;
}
.simple-airline-header h1 { margin-bottom: 8px; }
.primary-action-group { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.primary-action-group form { margin: 0; }
.source-freshness { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--green); }
.source-freshness > span { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: none; }
.source-freshness.missing { color: var(--amber); }
.source-freshness.missing > span { background: var(--amber); box-shadow: none; }
.simple-job-banner {
  display: grid;
  grid-template-columns: auto auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface);
}
.simple-job-banner > span:nth-of-type(2) { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.simple-job-banner b { color: var(--blue-2); }
.fr24-summary { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fr24-summary > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.fr24-summary h2 { margin: 0; }
.attention-link { color: var(--amber); font-weight: 800; }
.fr24-count-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.fr24-count-grid a {
  display: grid;
  min-height: 150px;
  align-content: center;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--surface-2);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.fr24-count-grid a:hover { border-color: var(--line-soft); background: var(--surface); transform: translateY(-1px); }
.fr24-count-grid span { color: var(--muted); font-weight: 800; }
.fr24-count-grid strong { margin: 6px 0; font-size: 42px; line-height: 1; }
.fr24-count-grid small { color: var(--muted-2); }
.simple-explainer { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 13px 16px; color: var(--muted); font-size: 13px; }
.simple-explainer strong { color: var(--text); }
.simple-explainer i { color: var(--blue); font-style: normal; }

.lean-workbench-header { margin-top: 18px; }
.status-switcher {
  display: grid;
  grid-template-columns: repeat(7,minmax(105px,1fr));
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}
.status-switcher a {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-2);
}
.status-switcher a:hover, .status-switcher a.active { color: var(--text); background: var(--surface); }
.status-switcher a b { font-size: 19px; }
.status-switcher .all { border-top-color: var(--line-soft); }
.status-switcher .current { border-top-color: var(--green); }
.status-switcher .new { border-top-color: var(--line-soft); }
.status-switcher .changed { border-top-color: var(--amber); }
.status-switcher .outdated { border-top-color: var(--red); }
.status-switcher .check { border-top-color: var(--line-soft); }
.status-switcher .protected { border-top-color: var(--purple); }
.status-switcher .current.active { border-color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 11%, transparent); }
.status-switcher .new.active { border-color: var(--line-soft); background: color-mix(in srgb, color-mix(in srgb, var(--blue) 9%, var(--surface)) 11%, transparent); }
.status-switcher .changed.active { border-color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 11%, transparent); }
.status-switcher .outdated.active { border-color: var(--red); background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 11%, transparent); }
.status-switcher .check.active { border-color: var(--line-soft); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 11%, transparent); }
.status-switcher .protected.active { border-color: var(--purple); background: color-mix(in srgb, color-mix(in srgb, var(--purple) 9%, var(--surface)) 11%, transparent); }

.lean-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.lean-search { display: flex; width: min(650px,100%); gap: 8px; }
.lean-search input { flex: 1; }
.compact-filter { position: relative; }
.compact-filter > summary { padding: 10px 12px; color: var(--muted); cursor: pointer; }
.compact-filter > form { display: grid; position: absolute; z-index: 12; width: 620px; max-width: calc(100vw - 40px); grid-template-columns: repeat(3,minmax(130px,1fr)) auto; gap: 10px; align-items: end; top: calc(100% + 6px); right: 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-elevated); box-shadow: none; }
.compact-filter label { display: grid; gap: 5px; font-size: 12px; }
.simple-bulk-bar {
  display: flex;
  position: sticky;
  z-index: 8;
  top: calc(var(--topbar) + 8px);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
}
.simple-bulk-bar > div:first-child { display: grid; gap: 2px; }
.simple-bulk-bar small { color: var(--muted); }
.simple-bulk-bar > div:last-child { display: flex; gap: 8px; align-items: center; }
.simple-bulk-bar form { margin: 0; }

.simple-table-panel { border-radius: 10px; }
.decision-table { min-width: 980px; table-layout: fixed; }
.decision-table th:nth-child(1) { width: 16%; }
.decision-table th:nth-child(2) { width: 14%; }
.decision-table th:nth-child(3) { width: 22%; }
.decision-table th:nth-child(4) { width: 15%; }
.decision-table th:nth-child(5) { width: auto; }
.decision-table th:nth-child(6) { width: 54px; }
.decision-table td { height: 58px; padding: 9px 13px; }
.decision-table tr.decided { opacity: .68; }
.decision-table .record-row.state-current { box-shadow: none; }
.decision-table .record-row.state-new { box-shadow: none; }
.decision-table .record-row.state-changed { box-shadow: none; }
.decision-table .record-row.state-outdated { box-shadow: none; }
.decision-table .record-row.state-check { box-shadow: none; }
.decision-table .record-row.state-protected { box-shadow: none; }
.status-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
span.status-label { cursor: default; }
.status-label > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-label.current { color: var(--green); }
.status-label.new { color: var(--blue); }
.status-label.changed { color: var(--amber); }
.status-label.outdated { color: var(--red); }
.status-label.check { color: var(--amber); }
.status-label.protected { color: var(--purple); }
.decision-note { display: block; margin: 4px 0 0 8px; color: var(--muted-2); }
.route-pair { font-size: 16px; }
.route-pair span { margin: 0 4px; color: var(--muted); }
.fleet-summary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr24-flight-link {
  color: var(--color-info, var(--blue));
  text-decoration: none;
  text-underline-offset: 3px;
}
.fr24-flight-link:hover,
.fr24-flight-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}
.fr24-flight-link span { font-size: .76em; opacity: .82; }
.row-disclosure { text-align: right; }
.row-disclosure button { width: 34px; height: 34px; border: 0; border-radius: 7px; color: var(--blue-2); background: transparent; font-size: 26px; cursor: pointer; }
.row-disclosure button:hover { background: var(--surface-3); }
.row-disclosure a { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; color: var(--blue-2); font-size: 26px; }
.row-disclosure a:hover { background: var(--surface-3); }

.comparison-dialog .route-editor-header { align-items: flex-start; }
.comparison-dialog .route-editor-header h2 { margin: 12px 0 5px; }
.comparison-dialog .route-editor-header p { margin: 0; color: var(--muted); }
.simple-diff-table { padding: 18px 22px; }
.diff-header, .diff-row { display: grid; grid-template-columns: minmax(150px,.8fr) repeat(3,minmax(160px,1fr)); }
.diff-header > *, .diff-row > * { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.diff-header { color: var(--muted); background: var(--surface); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.diff-row > span { overflow-wrap: anywhere; }
.diff-row.conflict { background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 7%, transparent); }
.technical-details { margin: 0 22px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.record-row[data-row-dialog] { cursor: pointer; }
.record-row[data-row-dialog]:hover { background: color-mix(in srgb, color-mix(in srgb, var(--blue) 9%, var(--surface)) 7%, transparent); }
.inline-record-editor { margin: 0 22px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.inline-record-editor > summary { display: flex; align-items: center; justify-content: center; margin: 0; list-style: none; cursor: pointer; }
.inline-record-editor > summary::-webkit-details-marker { display: none; }
.inline-record-editor[open] > summary { margin: 12px 12px 0; }
.inline-record-editor .editor-sections { padding: 14px 0 0; }
.materialize-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 22px 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--line-soft) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 8%, transparent); }
.materialize-callout p { margin: 4px 0 0; color: var(--muted); }
.record-status-summary { display: flex; gap: 12px; margin: 16px 20px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.record-status-summary span { color: var(--muted); }
.compact-record-diff { margin: 16px 20px 0; }
.comparison-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.comparison-actions form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.record-row.state-outdated { box-shadow: none; }
.record-row.state-check { box-shadow: none; }
.record-row.state-protected { box-shadow: none; }
.filter-chip.outdated.active { border-color: var(--red); background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 13%, transparent); }
.filter-chip.check.active { border-color: var(--line-soft); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 13%, transparent); }
.status-badge.outdated { border-color: color-mix(in srgb, var(--line-soft) 52%, transparent); color: var(--red); background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 10%, transparent); }
.status-badge.check { border-color: color-mix(in srgb, var(--line-soft) 52%, transparent); color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 10%, transparent); }
.status-badge.protected { border-color: color-mix(in srgb, var(--line-soft) 52%, transparent); color: var(--purple); background: color-mix(in srgb, color-mix(in srgb, var(--purple) 9%, var(--surface)) 10%, transparent); }
.empty-comparison-state { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface); }
.empty-comparison-state > div { display: flex; gap: 14px; align-items: center; }
.empty-comparison-state > div > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 9px; color: var(--on-accent); background: var(--blue-2); font-size: 24px; font-weight: 900; }
.empty-comparison-state h2, .empty-comparison-state p { margin: 0; }
.empty-comparison-state p { margin-top: 4px; color: var(--muted); }
.publish-scope { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 0; border: 0; }
.publish-scope legend { grid-column: 1 / -1; margin-bottom: 4px; font-weight: 850; }
.publish-scope label { display: flex; min-height: 92px; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-top-width: 3px; border-radius: 9px; background: var(--surface-2); cursor: pointer; }
.publish-scope label.create { border-top-color: var(--line-soft); }
.publish-scope label.update { border-top-color: var(--amber); }
.publish-scope label.delete { border-top-color: var(--red); }
.publish-scope input { width: 18px; height: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--blue); }
.publish-scope span { display: grid; gap: 4px; }
.publish-scope small { color: var(--muted); font-weight: 400; line-height: 1.35; }

@media (max-width: 980px) {
  .fr24-count-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .simple-explainer { align-items: flex-start; flex-wrap: wrap; }
  .status-switcher { grid-template-columns: repeat(7,130px); }
  .simple-bulk-bar { position: static; align-items: stretch; flex-direction: column; }
  .simple-bulk-bar > div:last-child { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .workspace-primary-nav a { flex-basis: 86px; }
  .simple-airline-header, .fr24-summary > header, .lean-toolbar { align-items: stretch; flex-direction: column; }
  .primary-action-group, .primary-action-group form, .primary-action-group .button { width: 100%; }
  .fr24-summary { padding: 17px; }
  .fr24-count-grid { grid-template-columns: 1fr 1fr; }
  .fr24-count-grid a { min-height: 118px; padding: 15px; }
  .fr24-count-grid strong { font-size: 34px; }
  .simple-explainer { display: grid; grid-template-columns: 1fr; }
  .simple-explainer i { display: none; }
  .lean-search { width: 100%; }
  .compact-filter > form { position: static; width: 100%; grid-template-columns: 1fr; margin-top: 8px; }
  .simple-bulk-bar > div:last-child, .simple-bulk-bar form, .simple-bulk-bar .button { width: 100%; }
  .decision-table { display: block; min-width: 0; }
  .decision-table thead { display: none; }
  .decision-table tbody { display: grid; gap: 10px; }
  .decision-table tr.record-row { display: grid; overflow: hidden; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; background: var(--surface); }
  .decision-table td { display: grid; width: 100%; height: auto; grid-template-columns: 82px minmax(0,1fr); gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
  .decision-table td::before { content: attr(data-label); color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .decision-table .row-disclosure { display: none; }
  .diff-header { display: none; }
  .diff-row { display: grid; grid-template-columns: 1fr; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; }
  .diff-row > * { border-bottom: 1px solid var(--line-soft); }
  .comparison-actions { align-items: stretch; flex-direction: column; }
  .comparison-actions form { display: grid; grid-template-columns: 1fr; }
  .empty-comparison-state { align-items: stretch; flex-direction: column; }
  .publish-scope { grid-template-columns: 1fr; }
}

/* 2026-08-26 horizontal application frame and calm entry dashboard */
:root {
  --navy-950: #080d15;
  --navy-900: #0d1521;
  --navy-850: #111c2a;
  --navy-800: #172434;
  --navy-750: #1c2c3f;
  --topbar: 76px;
}

body {
  background: var(--surface);
}
.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template: var(--topbar) minmax(0, 1fr) / minmax(0, 1fr);
}
.topbar {
  display: grid;
  position: sticky;
  z-index: 30;
  top: 0;
  height: var(--topbar);
  grid-column: 1;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 0 clamp(20px, 2.4vw, 42px);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.brand { min-width: 0; justify-self: start; }
.brand, .primary-nav, .topbar-actions, .mobile-menu-toggle { grid-row: 1; }
.brand-mark.small { width: 44px; height: 44px; border-color: var(--line-soft); background: var(--surface); box-shadow: none; }
.brand-copy strong { color: var(--text); font-size: 22px; }
.brand-copy small { color: var(--muted); font-size: 10px; }
.primary-nav {
  display: flex;
  grid-column: 2;
  gap: 5px;
  justify-content: center;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
}
.primary-nav a {
  position: relative;
  min-width: 98px;
  padding: 10px 15px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.primary-nav a:hover { color: var(--text); background: var(--surface); }
.primary-nav a.active { color: var(--text); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); box-shadow: none; }
.topbar-actions { grid-column: 3; justify-self: end; margin-left: 0; }
.language-switch { border-color: var(--line-soft); background: var(--surface); }
.user-menu summary { min-height: 44px; padding: 4px 4px 4px 10px; border-radius: 999px; }
.user-menu summary:hover { background: var(--surface); }
.avatar { color: var(--text); border-color: var(--line-soft); background: var(--surface); }
.user-menu-panel {
  display: grid;
  position: absolute;
  z-index: 50;
  top: 54px;
  right: 0;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: none;
}
.user-menu-identity { display: grid; gap: 2px; margin-bottom: 5px; padding: 11px 12px 13px; border-bottom: 1px solid var(--line-soft); }
.user-menu-identity small { color: var(--muted); font-size: 12px; }
.user-menu-panel > a, .user-menu-panel form button { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; padding: 8px 11px; border: 0; border-radius: 7px; color: var(--text); background: transparent; font-size: 13px; font-weight: 650; text-align: left; cursor: pointer; }
.user-menu-panel > a:hover, .user-menu-panel form button:hover { color: var(--text); background: var(--surface); }
.user-menu-panel form { position: static; min-width: 0; margin-top: 4px; padding: 4px 0 0; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; box-shadow: none; }
.menu-count { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; color: var(--on-accent); background: var(--amber); font-size: 11px; }
.content { grid-column: 1; grid-row: 2; width: 100%; max-width: none; padding: clamp(28px, 3vw, 48px) clamp(20px, 4vw, 72px) 80px; }

/* Dashboard */
.dashboard-page { width: 100%; max-width: 1780px; margin: 0 auto; }
.welcome-panel {
  display: grid;
  position: relative;
  min-height: 294px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: none;
}
.welcome-panel::before { position: absolute; inset: 0; background: var(--surface); content: ""; pointer-events: none; }
.welcome-copy { position: relative; z-index: 1; align-self: center; padding: clamp(30px, 4vw, 58px); }
.welcome-copy h1 { margin-bottom: 12px; font-size: clamp(38px, 4vw, 62px); }
.welcome-copy > p:not(.eyebrow) { max-width: 760px; color: var(--text); font-size: 17px; }
.welcome-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 30px 0 0; }
.welcome-facts div { display: grid; gap: 4px; min-width: 210px; }
.welcome-facts dt { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.welcome-facts dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 750; }
.welcome-brand { display: grid; position: relative; place-items: center; }
.welcome-brand::before, .welcome-brand span { position: absolute; width: min(27vw, 340px); aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--line-soft) 16%, transparent); border-radius: 50%; content: ""; }
.welcome-brand span { width: min(21vw, 260px); border-color: color-mix(in srgb, var(--line-soft) 25%, transparent); }
.welcome-brand img { position: relative; z-index: 1; width: min(13vw, 154px); aspect-ratio: 1; border: 2px solid color-mix(in srgb, var(--line-soft) 34%, transparent); border-radius: 50%; object-fit: cover; box-shadow: none; }
.dashboard-launch { margin-top: clamp(30px, 4vw, 48px); }
.dashboard-launch .section-heading { margin-top: 0; }
.live-job-link { display: inline-flex; gap: 9px; align-items: center; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--line-soft) 35%, transparent); border-radius: 999px; color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 7%, transparent); font-size: 13px; font-weight: 750; }
.launch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 22px); }

/* Deliberately simple selection and settings pages */
.gateway-page, .settings-page { width: 100%; max-width: 1660px; margin: 0 auto; }
.gateway-header { display: flex; min-height: 180px; align-items: center; justify-content: space-between; padding: 28px 34px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--surface); }
.gateway-header h1 { margin-bottom: 9px; }
.page-accent { display: grid; flex: 0 0 92px; width: 92px; height: 92px; place-items: center; border: 1px solid currentColor; border-radius: 24px; font-size: 44px; }
.page-accent.api { color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 8%, transparent); }
.page-accent.export { color: var(--purple); background: color-mix(in srgb, color-mix(in srgb, var(--purple) 9%, var(--surface)) 8%, transparent); }
.page-accent.settings { color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 8%, transparent); }
.gateway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.gateway-card { display: grid; min-height: 96px; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--surface); transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.gateway-card:hover { transform: translateY(-2px); border-color: var(--line-soft); background: var(--surface); }
.gateway-card .airline-badge { width: 52px; height: 52px; }
.gateway-copy { display: grid; min-width: 0; gap: 4px; }
.gateway-copy strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.gateway-copy small { color: var(--muted); }
.gateway-card > b { color: var(--blue-2); font-size: 23px; }
.semantic-state { display: inline-flex; gap: 7px; align-items: center; padding: 6px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.semantic-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.semantic-state.success { color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 6%, transparent); }
.semantic-state.warning { color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 6%, transparent); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.settings-card { display: grid; min-height: 176px; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 25px; border: 1px solid var(--line-soft); border-radius: 15px; background: var(--surface); }
.settings-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 13px; color: var(--blue-2); background: var(--surface); font-size: 24px; }
.settings-card h2 { margin-bottom: 6px; font-size: 21px; }
.settings-card p { color: var(--muted); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.settings-actions a { color: var(--blue-2); font-size: 13px; font-weight: 800; }
.airline-settings-section { margin-top: 38px; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; padding-inline: 20px; }
  .primary-nav a { min-width: 82px; padding-inline: 11px; }
  .brand-copy small, .language-switch { display: none; }
  .launch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --topbar: 68px; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .brand { grid-column: 1; }
  .topbar-actions { grid-column: 2; justify-self: end; }
  .mobile-menu-toggle { display: grid; grid-column: 3; place-items: center; }
  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    grid-column: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 8px;
    border-color: var(--line-soft);
    background: var(--surface);
    box-shadow: none;
  }
  .app-shell.nav-open .primary-nav { display: grid; }
  .primary-nav a { min-width: 0; }
  .welcome-panel { grid-template-columns: minmax(0, 1fr) 220px; }
  .welcome-brand::before { width: 240px; }
  .welcome-brand span { width: 190px; }
  .welcome-brand img { width: 120px; }
}

@media (max-width: 720px) {
  .content { padding: 22px 14px 54px; }
  .brand-mark.small { width: 38px; height: 38px; }
  .brand-copy small, .user-name { display: none; }
  .topbar-actions { gap: 5px; }
  .primary-nav { grid-template-columns: 1fr 1fr; }
  .primary-nav a:last-child { grid-column: 1 / -1; }
  .welcome-panel { min-height: 0; grid-template-columns: 1fr; }
  .welcome-copy { padding: 28px 22px 32px; }
  .welcome-copy h1 { font-size: 39px; }
  .welcome-copy > p:not(.eyebrow) { font-size: 15px; }
  .welcome-facts { display: grid; gap: 16px; margin-top: 24px; }
  .welcome-brand { display: none; }
  .launch-grid, .gateway-grid, .settings-grid { grid-template-columns: 1fr; }
  .gateway-header { min-height: 0; padding: 24px 20px; }
  .page-accent { display: none; }
  .gateway-card { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 13px; padding: 15px; }
  .gateway-card .airline-badge { width: 48px; height: 48px; }
  .gateway-card .semantic-state { grid-column: 2 / -1; grid-row: 2; justify-self: start; }
  .gateway-card > b { grid-column: 3; grid-row: 1; }
  .settings-card { min-height: 0; grid-template-columns: 46px minmax(0, 1fr); padding: 20px; }
  .settings-icon { width: 46px; height: 46px; }
}

@media (max-width: 430px) {
  .brand-copy { display: none; }
}

/* Compact data-capture console */
.capture-page-new { width: 100%; max-width: 1780px; margin: 0 auto; }
.capture-masthead {
  display: flex;
  min-height: 172px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
  padding: 30px 36px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: none;
}
.capture-masthead h1 { margin-bottom: 8px; font-size: clamp(36px, 3.4vw, 52px); }
.capture-masthead p:not(.eyebrow) { margin: 0; color: var(--text); font-size: 16px; }
.capture-masthead img { width: 88px; height: 88px; border: 1px solid var(--line-soft); border-radius: 50%; object-fit: cover; box-shadow: none; }
.compact-active-captures { margin: 0 0 24px; }
.compact-active-captures .section-heading { margin-top: 0; }
.capture-console {
  display: grid;
  grid-template-columns: minmax(230px, .74fr) minmax(360px, 1.15fr) minmax(340px, 1.05fr);
  gap: 16px;
  align-items: stretch;
}
.capture-column {
  min-width: 0;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
}
.capture-column legend {
  display: flex;
  width: auto;
  gap: 10px;
  align-items: center;
  padding: 0 8px 0 0;
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
}
.capture-column legend > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--text); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); font-family: "Segoe UI", system-ui, sans-serif; font-size: 12px; }
.capture-column legend small { font-size: 18px; }
.column-intro { min-height: 45px; margin: 8px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.capture-choice {
  display: grid;
  position: relative;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 13px;
  align-items: center;
  margin-bottom: 11px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.capture-choice:hover { transform: translateY(-1px); border-color: var(--line-soft); background: var(--surface); }
.capture-choice:has(input:checked) { border-color: var(--line-soft); background: var(--surface); box-shadow: none; }
.capture-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.capture-choice > span:last-child { display: grid; min-width: 0; gap: 4px; }
.capture-choice strong { font-size: 16px; }
.capture-choice small { color: var(--muted); font-size: 12px; line-height: 1.42; }
.capture-choice em { width: max-content; margin-top: 3px; padding: 3px 6px; border-radius: 5px; color: var(--blue); background: color-mix(in srgb, color-mix(in srgb, var(--blue) 9%, var(--surface)) 13%, transparent); font-size: 10px; font-style: normal; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.choice-marker { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-soft); border-radius: 11px; color: var(--blue); background: var(--surface); font-size: 17px; font-weight: 850; }
.capture-choice:has(input:checked) .choice-marker { color: var(--text); border-color: var(--line-soft); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.choice-marker.observed { color: var(--green); border-color: var(--line-soft); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 9%, transparent); }
.choice-marker.generated { color: var(--muted); border-color: var(--line-soft); background: color-mix(in srgb, color-mix(in srgb, var(--purple) 9%, var(--surface)) 9%, transparent); }
.capture-column-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 13px; border-left: 3px solid var(--cyan); border-radius: 7px; color: var(--muted); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 6%, transparent); font-size: 12px; }
.capture-column-note > span { color: var(--cyan); font-weight: 900; }
.capture-column-note p { margin: 0; }
.capture-column-note.safety { margin-top: 18px; border-left-color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 6%, transparent); }
.capture-column-note.safety > span { color: var(--amber); }
.capture-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capture-code-grid label, .capture-airline-name { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.capture-code-grid input, .capture-airline-name input, .capture-speed-label select { min-height: 44px; border-color: var(--line-soft); background: var(--surface); }
.capture-airline-name { margin-top: 11px; }
.capture-airline-column .airline-lookup-status { margin: 10px 0 18px; }
.capture-subheading { display: grid; gap: 3px; margin-bottom: 10px; }
.capture-subheading strong { font-size: 14px; }
.capture-subheading small { color: var(--muted); font-size: 12px; }
.callsign-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.callsign-choice { min-height: 124px; grid-template-columns: 38px minmax(0,1fr); align-content: center; margin: 0; padding: 13px; }
.callsign-choice .choice-marker { width: 38px; height: 38px; }
.callsign-strategy-summary { margin: 10px 0 0; padding: 10px 12px; border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 12px; line-height: 1.45; }
.capture-setting-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.capture-setting-group.is-disabled, .capture-choice.is-disabled { opacity: .48; }
.capture-choice.is-disabled { cursor: not-allowed; transform: none; }
.window-inputs input { font-size: 18px; font-weight: 800; }
.capture-speed-label { display: grid; gap: 10px; }
.capture-speed-label > span { display: grid; gap: 3px; }
.capture-speed-label small { color: var(--muted); font-size: 12px; }
.capture-settings-column .timing-summary { margin: 10px 0 0; padding: 10px 12px; border-left-width: 2px; font-size: 12px; }
.compact-custom-timing { grid-template-columns: 1fr; gap: 12px; margin-top: -6px; padding: 13px; }
.compact-custom-timing > div { display: grid; gap: 7px; }
.compact-custom-timing .capture-code-grid input { min-height: 38px; padding: 7px 9px; }
.capture-console-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
}
.capture-console-footer > div { display: grid; gap: 4px; }
.capture-console-footer small { color: var(--muted); }
.capture-console-footer .button { flex: 0 0 auto; min-width: 220px; }

.fleet-capture-form { display: grid; gap: 20px; padding: 22px 26px 26px; }
.fleet-capture-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
}
.fleet-capture-summary > div { display: grid; gap: 6px; min-width: 0; padding: 16px 18px; }
.fleet-capture-summary > div + div { border-left: 1px solid var(--line-soft); }
.fleet-capture-summary span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fleet-capture-summary strong { overflow-wrap: anywhere; font-size: 16px; }
.fleet-capture-form .check-row { margin: 0; padding: 15px 16px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface); }
.fleet-capture-form .check-row span { display: grid; gap: 3px; }
.fleet-capture-form .check-row small { color: var(--muted); line-height: 1.45; }
#composition-fleet-dialog { width: min(980px, calc(100vw - 32px)); }
#composition-fleet-dialog .fleet-source-picker { max-height: min(520px, 58vh); overflow: auto; border-bottom: 1px solid var(--line); }
#composition-fleet-dialog .composition-source-row { grid-template-columns: 34px minmax(180px,.9fr) minmax(190px,1fr) auto; }
#composition-fleet-dialog .composition-source-actions form { margin: 0; }
#composition-fleet-dialog > .capture-notice { margin: 18px 22px 0; }
#composition-fleet-dialog > .form-actions { padding: 16px 22px 20px; }

@media (max-width: 1180px) {
  .capture-console { grid-template-columns: minmax(220px,.7fr) minmax(0,1fr); }
  .capture-settings-column { grid-column: 1 / -1; }
  .capture-settings-column { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .capture-settings-column legend, .capture-settings-column .column-intro, .capture-settings-column .capture-column-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .capture-masthead { min-height: 140px; padding: 25px 22px; }
  .capture-masthead img { width: 68px; height: 68px; }
  .capture-console { grid-template-columns: 1fr; }
  .capture-settings-column { display: block; grid-column: auto; }
  .capture-console-footer { align-items: stretch; flex-direction: column; }
  .capture-console-footer .button { width: 100%; }
  .fleet-capture-summary { grid-template-columns: 1fr; }
  .fleet-capture-summary > div + div { border-top: 1px solid var(--line-soft); border-left: 0; }
  #composition-fleet-dialog .composition-source-row { grid-template-columns: 34px minmax(0,1fr) auto; }
  #composition-fleet-dialog .composition-source-row .source-dataset { grid-column: 2/-1; }
}

/* Airline workbench 2026-08-26: one calm, full-width daily workspace. */
.airline-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.airline-tile-shell { position: relative; min-width: 0; }
.airline-tile-shell.composition .airline-tile { border-color: var(--line-soft); background: var(--surface); }
.airline-tile-shell.composition .airline-tile::before { background: var(--surface); }
.airline-tile {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  min-height: 240px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.airline-tile::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--surface); content: ""; }
.airline-tile:hover { border-color: var(--line-soft); transform: translateY(-2px); box-shadow: none; }
.workspace-kind-line { display: flex; min-height: 25px; align-items: center; justify-content: space-between; gap: 12px; }
.workspace-kind-line small { color: var(--muted); font-size: 11px; }
.workspace-kind-badge { padding: 4px 8px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--blue); background: color-mix(in srgb, color-mix(in srgb, var(--blue) 9%, var(--surface)) 8%, transparent); font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.workspace-kind-badge.composition { border-color: var(--line-soft); color: var(--muted); background: color-mix(in srgb, color-mix(in srgb, var(--purple) 9%, var(--surface)) 9%, transparent); }
.airline-tile-code, .airline-tile-name { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.airline-tile-code strong { font-size: 22px; letter-spacing: .08em; }
.airline-tile-code span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.airline-tile-name { justify-content: flex-start; }
.airline-tile-name h2 { margin: 0 0 3px; font-size: 21px; }
.airline-tile-name p { margin: 0; color: var(--muted); }
.airline-sync-times { display: grid; grid-template-columns: 1fr 1fr; align-self: end; margin: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.airline-sync-times div { padding: 12px 13px; }
.airline-sync-times div + div { border-left: 1px solid var(--line); }
.airline-sync-times dt { margin-bottom: 5px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.airline-sync-times dd { margin: 0; font-size: 14px; font-weight: 700; }
.airline-tile-arrow { position: absolute; right: 21px; bottom: 20px; color: var(--blue); font-size: 22px; }
.composition-source-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -7px; }
.composition-source-chips span { display: flex; gap: 6px; align-items: center; padding: 5px 8px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; }
.composition-source-chips b { color: var(--muted); }
.airline-tile-management { position: absolute; z-index: 7; top: 14px; right: 14px; }
.airline-tile-management > summary { display: grid; width: 34px; height: 32px; place-items: center; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--text); background: var(--surface); font-weight: 900; cursor: pointer; list-style: none; }
.airline-tile-management > summary::-webkit-details-marker { display: none; }
.airline-tile-management[open] > summary { border-color: var(--line-soft); color: var(--blue); }
.airline-management-menu { position: absolute; top: 38px; right: 0; display: grid; width: min(310px, calc(100vw - 42px)); gap: 12px; padding: 15px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface); box-shadow: none; }
.airline-management-menu > div { display: flex; justify-content: space-between; gap: 12px; }
.airline-management-menu small { color: var(--muted); }
.airline-management-menu form, .airline-management-menu label { display: grid; gap: 7px; }
.airline-management-menu label { color: var(--muted); font-size: 11px; font-weight: 750; }
.airline-management-menu input { min-width: 0; height: 39px; }
.airline-management-menu .button { min-height: 36px; }

.airline-workspace-bar { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.airline-workspace-bar .workspace-identity { min-width: 300px; }
.airline-workspace-bar .workspace-primary-nav { flex: 1; justify-content: flex-start; max-width: 690px; padding: 5px; background: var(--surface-2); }
.airline-workspace-bar .workspace-primary-nav a { flex: 1 0 90px; min-width: 90px; padding: 11px 10px; font-size: 15px; font-weight: 800; }
.airline-workspace-bar .workspace-primary-nav a.active { background: color-mix(in srgb, var(--blue) 9%, var(--surface)); box-shadow: none; }
.workspace-publish-shortcut { flex: 0 0 auto; padding: 8px 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.workspace-publish-shortcut:hover, .workspace-publish-shortcut.active { color: var(--blue); }

.status-switcher a span { display: flex; align-items: baseline; gap: 6px; }
.status-switcher a span small { color: var(--muted-2); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.reference-status-switcher { flex: 1; margin: 0; }
.reference-status-switcher a { min-width: 105px; padding: 9px 11px; }

.selected-route-actions { position: sticky; z-index: 8; bottom: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; width: max-content; margin: 0 0 10px auto; padding: 8px 10px 8px 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); box-shadow: none; }
.selected-route-actions span { color: var(--muted); font-size: 13px; font-weight: 700; }
.route-comparison-grid { min-width: 1120px; table-layout: auto; }
.route-comparison-grid th:nth-child(n) { width: auto; }
.route-comparison-grid .select-column { width: 44px; text-align: center; }
.route-comparison-grid th:nth-child(2) { width: 138px; }
.route-comparison-grid th:nth-child(3) { width: 105px; }
.route-comparison-grid th:nth-child(4), .route-comparison-grid th:nth-child(5) { width: 82px; }
.route-comparison-grid th:nth-child(6), .route-comparison-grid th:nth-child(7) { width: 120px; }
.route-comparison-grid th:nth-child(8) { width: 170px; }
.route-comparison-grid th:nth-child(9) { width: 116px; }
.route-comparison-grid td { height: 54px; padding: 8px 11px; }
.row-edit .button { min-height: 34px; padding: 7px 11px; }

.vamsys-import-dialog { width: min(1060px, calc(100vw - 32px)); }
.import-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; }
.import-method-card { display: grid; align-content: start; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.import-method-card.api { border-top: 3px solid var(--line-soft); }
.import-method-card.csv { border-top: 3px solid var(--line-soft); }
.import-method-card h3 { margin: 0 0 6px; font-size: 21px; }
.import-method-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.method-icon { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid var(--line-soft); border-radius: 10px; color: var(--blue); background: var(--surface); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.import-method-card.csv .method-icon { border-color: var(--line-soft); color: var(--green); background: var(--surface); }
.method-state { padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.method-state.warning { color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 10%, transparent); }
.compact-csv-import { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compact-csv-import label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.compact-csv-import input[type="file"] { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); }
.compact-csv-import .button { grid-column: 1 / -1; margin-top: 4px; }
.import-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: var(--surface-2); }

@media (max-width: 900px) {
  .airline-workspace-bar .workspace-identity { min-width: 0; }
  .airline-workspace-bar .workspace-primary-nav { width: 100%; max-width: none; justify-content: stretch; }
  .import-method-grid { grid-template-columns: 1fr; }
  .reference-status-switcher { width: 100%; }
}
@media (max-width: 620px) {
  .airline-tile-grid { grid-template-columns: 1fr; }
  .airline-tile { min-height: 0; padding: 19px; }
  .airline-tile-management { top: 12px; right: 12px; }
  .airline-sync-times { grid-template-columns: 1fr; }
  .airline-sync-times div + div { border-top: 1px solid var(--line); border-left: 0; }
  .compact-csv-import { grid-template-columns: 1fr; }
  .import-dialog-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .capture-masthead img { display: none; }
  .capture-column { padding: 21px 17px; }
  .callsign-choice-grid { grid-template-columns: 1fr; }
  .callsign-choice { min-height: 0; }
}

/* Focused live monitor for a running data capture */
.capture-run-page { width: 100%; max-width: 1780px; margin: 0 auto; }
.capture-run-masthead { min-height: 142px; margin-bottom: 18px; }
.capture-run-masthead h1 { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; }
.capture-run-masthead h1 span { color: var(--blue); font-size: .62em; letter-spacing: .04em; }
.capture-run-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.capture-run-sidebar { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.capture-ring-card { display: grid; flex: 1 1 auto; grid-template-rows: auto minmax(184px,1fr) auto; align-items: center; justify-items: center; padding: 24px 22px 22px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); box-shadow: none; }
.capture-ring-card > .eyebrow { width: 100%; margin-bottom: 18px; text-align: center; }
.capture-progress-ring { --progress: 0; display: grid; position: relative; width: 184px; height: 184px; place-items: center; border-radius: 50%; background: conic-gradient(color-mix(in srgb, var(--green) 9%, var(--surface)) 0 calc(var(--progress) * 1%), color-mix(in srgb, var(--blue) 9%, var(--surface)) calc(var(--progress) * 1%) calc(var(--progress) * 1%), var(--surface) calc(var(--progress) * 1%) 100%); box-shadow: none; transition: background .5s ease; }
.capture-progress-ring::before { position: absolute; inset: 13px; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--surface); content: ""; }
.capture-progress-ring > div { display: grid; z-index: 1; gap: 2px; place-items: center; }
.capture-progress-ring strong { color: var(--text); font-size: 45px; line-height: 1; letter-spacing: -.05em; }
.capture-progress-ring span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.capture-time-block { display: grid; width: 100%; gap: 5px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); text-align: center; }
.capture-time-block > span { color: var(--muted); font-size: 12px; }
.capture-time-block > strong { color: var(--text); font-size: 18px; }
.capture-time-block small { color: var(--muted); }
.capture-time-block b { color: var(--muted); }
.capture-job-state { display: flex; min-height: 52px; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid currentColor; border-radius: 12px; color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 7%, transparent); font-size: 13px; font-weight: 850; }
.capture-job-state i, .capture-live-indicator i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: none; }
.capture-job-state.waiting, .capture-job-state.paused { color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 7%, transparent); }
.capture-job-state.interrupted, .capture-job-state.failed { color: var(--red); background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 7%, transparent); }
.capture-job-state.complete { color: var(--green); }
.capture-run-actions { display: grid; gap: 8px; }
.capture-run-actions form, .capture-run-actions .button { width: 100%; }
.capture-run-actions .button { min-height: 44px; }
.capture-safe-stop { margin: 0; padding: 2px 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.capture-live-panel { display: grid; min-width: 0; grid-template-rows: auto auto auto minmax(330px, 1fr) auto; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); box-shadow: none; }
.capture-live-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 23px 26px 18px; border-bottom: 1px solid var(--line-soft); }
.capture-live-head h2 { margin: 3px 0 5px; font-size: 26px; }
.capture-live-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.capture-live-indicator { display: inline-flex; flex: 0 0 auto; gap: 9px; align-items: center; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--line-soft) 28%, transparent); border-radius: 999px; color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 6%, transparent); font-size: 11px; font-weight: 800; white-space: nowrap; }
.capture-current-work { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,.28fr); border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--surface) 38%, transparent); }
.capture-current-work > div { display: grid; min-width: 0; gap: 4px; padding: 16px 24px; border-right: 1px solid var(--line-soft); }
.capture-current-work span, .capture-current-work small { color: var(--muted); font-size: 11px; }
.capture-current-work strong { overflow: hidden; color: var(--text); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.compact-pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
.compact-pipeline .capture-pipeline-step { min-height: 44px; padding: 9px 12px; }
.compact-pipeline .capture-pipeline-step strong { font-size: 11px; }
.capture-log-stream { min-height: 330px; max-height: 540px; overflow: auto; background: var(--surface-2); scrollbar-color: #34506c #0c1722; }
.capture-log-row { display: grid; grid-template-columns: 72px 92px minmax(0,1fr); gap: 12px; align-items: start; padding: 11px 22px; border-bottom: 1px solid var(--line-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.capture-log-row:hover { background: var(--surface); }
.capture-log-row time { padding-top: 3px; color: var(--blue); }
.capture-log-tag { overflow: hidden; padding: 3px 7px; border: 1px solid var(--line-soft); border-radius: 5px; color: var(--blue); background: color-mix(in srgb, color-mix(in srgb, var(--blue) 9%, var(--surface)) 8%, transparent); font-size: 10px; font-weight: 850; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.capture-log-row > div { display: grid; min-width: 0; gap: 3px; }
.capture-log-row strong { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.capture-log-row small { color: var(--muted); line-height: 1.45; }
.capture-log-row.source .capture-log-tag { border-color: var(--line-soft); color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 6%, transparent); }
.capture-log-row.warning .capture-log-tag { border-color: var(--line-soft); color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 6%, transparent); }
.capture-log-row.error .capture-log-tag { border-color: var(--line-soft); color: var(--red); background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 6%, transparent); }
.capture-log-empty { display: grid; min-height: 260px; place-items: center; padding: 30px; color: var(--muted); text-align: center; }
.capture-source-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line-soft); background: var(--surface); }
.capture-source-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; border-right: 1px solid var(--line-soft); }
.capture-source-summary span { color: var(--muted); font-size: 11px; }
.capture-source-summary strong { font-size: 19px; }
.capture-source-summary .live strong { color: var(--green); }
.capture-source-summary .cache strong { color: var(--blue); }
.capture-source-summary .fallback strong { color: var(--amber); }
.capture-source-summary .failed strong { color: var(--red); }
.capture-run-page .completion-actions { margin-top: 16px; }

@media (min-width: 1600px) {
  .compact-pipeline { grid-template-columns: repeat(8, minmax(0,1fr)); }
  .capture-live-panel { grid-template-rows: auto auto auto minmax(420px,1fr) auto; }
  .capture-log-stream { max-height: 660px; }
}

@media (max-width: 980px) {
  .capture-run-grid { grid-template-columns: 240px minmax(0,1fr); }
  .capture-progress-ring { width: 158px; height: 158px; }
  .capture-progress-ring strong { font-size: 38px; }
  .capture-live-head { flex-direction: column; }
  .capture-current-work { grid-template-columns: 1fr; }
  .capture-current-work > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .capture-source-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .capture-run-masthead h1 { display: grid; gap: 6px; }
  .capture-run-grid { grid-template-columns: 1fr; }
  .capture-run-sidebar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
  .capture-ring-card { grid-row: 1 / span 4; grid-template-rows: auto auto auto; }
  .capture-job-state, .capture-run-actions, .capture-safe-stop { grid-column: 2; }
  .capture-live-panel { min-height: 680px; }
  .capture-log-row { grid-template-columns: 62px 74px minmax(0,1fr); padding-inline: 14px; }
}

@media (max-width: 520px) {
  .capture-run-sidebar { display: flex; }
  .capture-ring-card { grid-row: auto; grid-template-rows: auto auto auto; }
  .capture-job-state, .capture-run-actions, .capture-safe-stop { grid-column: auto; }
  .capture-live-head { padding: 20px 17px 15px; }
  .capture-current-work > div { padding: 14px 17px; }
  .compact-pipeline { grid-template-columns: 1fr 1fr; }
  .capture-log-row { grid-template-columns: 54px minmax(0,1fr); gap: 7px 9px; }
  .capture-log-row .capture-log-tag { grid-column: 1; grid-row: 2; }
  .capture-log-row > div { grid-column: 2; grid-row: 1 / span 2; }
  .capture-source-summary > div { padding: 11px 13px; }
}

/* Final workbench density overrides live last so legacy table rules cannot win. */
@media (min-width: 981px) {
  .airline-workspace-bar {
    display: grid;
    grid-template-columns: minmax(245px, .72fr) minmax(520px, 1.5fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: -10px;
    padding: 9px 13px;
  }
  .airline-workspace-bar .workspace-identity { min-width: 0; }
  .airline-workspace-bar .workspace-primary-nav { width: 100%; max-width: 720px; justify-self: center; }
}

.reference-toolbar {
  display: grid;
  grid-template-columns: minmax(350px, 470px) minmax(620px, 1fr);
  gap: 10px;
  padding: 9px 10px;
}
.reference-toolbar .workbench-filter-form { display: grid; grid-template-columns: minmax(190px,1fr) 112px 96px; gap: 7px; }
.reference-toolbar .workbench-filter-form input,
.reference-toolbar .workbench-filter-form select,
.reference-toolbar .workbench-filter-form .button { min-height: 40px; height: 40px; padding-block: 7px; }
.reference-toolbar .reference-status-switcher {
  display: grid;
  overflow: visible;
  grid-template-columns: repeat(7, minmax(76px,1fr));
  gap: 6px;
  margin: 0;
}
.reference-toolbar .reference-status-switcher a {
  min-width: 0;
  min-height: 48px;
  padding: 6px 9px;
  border-width: 1px;
  border-top-width: 3px;
  border-radius: 8px;
}
.reference-toolbar .reference-status-switcher a b { font-size: 16px; }
.reference-toolbar .reference-status-switcher a span { font-size: 12px; }

table.route-comparison-grid {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}
table.route-comparison-grid > thead > tr > th:nth-child(n) { width: auto; }
table.route-comparison-grid > thead > tr > th.select-column { width: 44px; }
table.route-comparison-grid > thead > tr > th.status-column { width: 148px; }
table.route-comparison-grid > thead > tr > th.id-column { width: 105px; }
table.route-comparison-grid > thead > tr > th.airport-column { width: 86px; }
table.route-comparison-grid > thead > tr > th.flight-column { width: 128px; }
table.route-comparison-grid > thead > tr > th.callsign-column { width: 128px; }
table.route-comparison-grid > thead > tr > th.type-column { width: auto; }
table.route-comparison-grid > thead > tr > th.edit-column { width: 118px; }
table.route-comparison-grid > tbody > tr > td { height: 52px; padding: 8px 12px; }

table.reference-workbench-table { width: 100%; min-width: 900px; table-layout: fixed; }
table.reference-workbench-table > thead > tr > th:nth-child(1) { width: 17%; }
table.reference-workbench-table > thead > tr > th:nth-child(2) { width: 12%; }
table.reference-workbench-table > thead > tr > th:nth-child(3) { width: 16%; }
table.reference-workbench-table > thead > tr > th:nth-child(4) { width: auto; }
table.reference-workbench-table > thead > tr > th:nth-child(5) { width: 18%; }
table.reference-workbench-table > thead > tr > th:nth-child(6) { width: 118px; }
table.reference-workbench-table > tbody > tr > td { height: 52px; padding: 8px 13px; }

@media (max-width: 1280px) {
  .reference-toolbar { grid-template-columns: 1fr; }
  .reference-toolbar .workbench-filter-form { max-width: 500px; }
}

@media (max-width: 980px) {
  .airline-workspace-bar { margin-top: 0; }
  .reference-toolbar .reference-status-switcher { grid-template-columns: repeat(7, 105px); overflow-x: auto; }
}

/* Route review: one calm control plane, then the data. */
.route-head-actions { display: grid; justify-items: end; gap: 8px; }
.route-head-actions > div:first-child { display: flex; align-items: center; gap: 9px; }
.route-head-actions .save-indicator { min-height: auto; padding: 0 3px; border: 0; color: var(--green); background: transparent; font-size: 11px; }

.route-status-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  gap: 0;
  margin: 0 0 9px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-2);
}
.route-status-bar a {
  --status-accent: #758396;
  min-height: 47px;
  padding: 7px 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.route-status-bar a + a { border-left: 1px solid var(--line-soft); border-radius: 0; }
.route-status-bar a:hover { color: var(--text); background: var(--surface); }
.route-status-bar a.active,
.route-status-bar a.current.active,
.route-status-bar a.new.active,
.route-status-bar a.changed.active,
.route-status-bar a.outdated.active,
.route-status-bar a.check.active,
.route-status-bar a.protected.active {
  border-color: transparent;
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
}
.route-status-bar a span { gap: 7px; }
.route-status-bar a span::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--status-accent); box-shadow: none; }
.route-status-bar a b { display: grid; min-width: 25px; height: 25px; place-items: center; padding: 0 6px; border: 1px solid var(--line-soft); border-radius: 13px; color: var(--text); background: var(--surface); font-size: 13px; }
.route-status-bar .current { --status-accent: var(--green); }
.route-status-bar .new { --status-accent: #37bdf1; }
.route-status-bar .changed { --status-accent: var(--amber); }
.route-status-bar .outdated { --status-accent: var(--red); }
.route-status-bar .check { --status-accent: #ff8b4c; }
.route-status-bar .protected { --status-accent: var(--purple); }

.route-search-toolbar { margin-bottom: 9px; padding: 2px 0; }
.route-search-toolbar .lean-search { width: min(590px, 100%); }
.route-search-toolbar input,
.route-search-toolbar .button { min-height: 40px; height: 40px; }
.route-search-toolbar .compact-filter > summary { min-height: 40px; padding: 9px 12px; border-radius: 7px; }

.route-decision-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface);
}
.route-decision-copy { display: grid; gap: 1px; min-width: 190px; }
.route-decision-copy strong { font-size: 13px; }
.route-decision-copy small { color: var(--muted-2); font-size: 11px; }
.route-decision-actions,
.route-selected-inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.route-decision-actions > form { margin: 0; }
.route-selected-inline { padding-left: 9px; border-left: 1px solid var(--line-soft); }
.route-selected-inline span { min-width: 82px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.route-decision-bar .button { min-height: 38px; padding: 8px 12px; }

table.route-comparison-grid {
  width: 100%;
  min-width: 1200px;
  table-layout: fixed;
}
table.route-comparison-grid > thead > tr > th:nth-child(n) { width: auto; }
table.route-comparison-grid > thead > tr > th.select-column { width: 44px; }
table.route-comparison-grid > thead > tr > th.status-column { width: 190px; }
table.route-comparison-grid > thead > tr > th.id-column { width: 7%; }
table.route-comparison-grid > thead > tr > th.airport-column { width: 6%; }
table.route-comparison-grid > thead > tr > th.flight-column { width: 9%; }
table.route-comparison-grid > thead > tr > th.callsign-column { width: 9%; }
table.route-comparison-grid > thead > tr > th.type-column { width: 8%; }
table.route-comparison-grid > thead > tr > th.time-column { width: 15%; }
table.route-comparison-grid > thead > tr > th.days-column { width: 14%; }
table.route-comparison-grid > thead > tr > th.edit-column { width: 108px; }
table.route-comparison-grid > tbody > tr > td { height: 54px; padding: 8px 12px; }
table.route-comparison-grid .status-label {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
table.route-comparison-grid .select-column { text-align: center; }
table.route-comparison-grid input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}
.route-times { color: var(--text); white-space: nowrap; }
.route-times span { margin: 0 5px; color: var(--blue); }
.route-days { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
  .route-status-bar { grid-template-columns: repeat(7, 116px); overflow-x: auto; }
  .route-decision-bar { align-items: stretch; flex-direction: column; gap: 8px; }
  .route-decision-actions { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .route-head-actions { justify-items: stretch; }
  .route-head-actions > div:first-child { flex-wrap: wrap; }
  .route-search-toolbar { align-items: stretch; flex-direction: column; }
  .route-search-toolbar .lean-search { width: 100%; }
  .route-decision-actions,
  .route-selected-inline { align-items: stretch; flex-direction: column; }
  .route-selected-inline { padding: 8px 0 0; border-top: 1px solid var(--line-soft); border-left: 0; }
  .route-selected-inline span { min-width: 0; text-align: left; }
}

/* Shared airline tables: workbook-style status tabs attached to one frame. */
.comparison-table-frame {
  overflow: visible;
  margin-bottom: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--surface-2);
  box-shadow: none;
}
.workbook-status-tabs {
  display: flex;
  position: relative;
  z-index: 12;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 9px 11px 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: 10px 10px 0 0;
}
.workbook-primary-tabs { display: flex; align-items: flex-end; gap: 4px; }
.workbook-primary-tabs a {
  --tab-accent: #748395;
  --tab-tint: rgba(116, 131, 149, .08);
  display: flex;
  min-width: 112px;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: -1px;
  padding: 9px 13px 10px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: color-mix(in srgb, var(--tab-accent) 72%, white);
  background: var(--tab-tint);
  font-size: 13px;
  font-weight: 750;
}
.workbook-primary-tabs a:hover { color: var(--text); background: color-mix(in srgb, var(--tab-accent) 15%, var(--surface)); }
.workbook-primary-tabs a.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--tab-accent) 42%, var(--line-soft));
  background: color-mix(in srgb, var(--tab-accent) 18%, var(--surface));
  box-shadow: none;
}
.workbook-primary-tabs a.all { --tab-accent: #9aa9ba; --tab-tint: rgba(154,169,186,.055); }
.workbook-primary-tabs a.new { --tab-accent: #37bdf1; --tab-tint: rgba(55,189,241,.065); }
.workbook-primary-tabs a.changed { --tab-accent: var(--amber); --tab-tint: rgba(242,184,75,.065); }
.workbook-primary-tabs a.outdated { --tab-accent: var(--red); --tab-tint: rgba(239,100,114,.065); }
.workbook-primary-tabs a b,
.workbook-status-more a b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 11px;
}
.workbook-primary-tabs a b { border-color: color-mix(in srgb, var(--tab-accent) 45%, var(--line-soft)); color: color-mix(in srgb, var(--tab-accent) 78%, white); background: color-mix(in srgb, var(--tab-accent) 9%, var(--surface)); }
.workbook-status-more { position: relative; margin-bottom: 5px; }
.workbook-status-more > summary {
  display: flex;
  min-width: 112px;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.workbook-status-more > summary.active { color: var(--text); border-color: var(--line-soft); background: var(--surface); }
.workbook-status-more > summary i { color: var(--muted); font-style: normal; }
.workbook-status-more > div {
  display: grid;
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: 210px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: none;
}
.workbook-status-more a { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.workbook-status-more a:hover,
.workbook-status-more a.active { color: var(--text); background: var(--surface); }
.comparison-table-frame .route-search-toolbar,
.comparison-table-frame .reference-search-toolbar {
  min-height: 59px;
  margin: 0;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.reference-search-toolbar .workbench-filter-form {
  display: grid;
  width: min(670px, 100%);
  grid-template-columns: minmax(240px, 1fr) 190px 96px;
  gap: 8px;
}
.reference-search-toolbar .workbench-filter-form input,
.reference-search-toolbar .workbench-filter-form select,
.reference-search-toolbar .workbench-filter-form .button { min-height: 40px; height: 40px; }
.comparison-table-frame .route-decision-bar { margin: 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; box-shadow: none; }
.comparison-table-frame .frame-table-panel { overflow: hidden; margin: 0; border: 0; border-radius: 0 0 10px 10px; }
.comparison-table-frame .frame-table-panel table th:first-child { border-top-left-radius: 0; }
.comparison-table-frame .frame-table-panel table th:last-child { border-top-right-radius: 0; }
.reference-workbench-table .status-badge { padding: 5px 9px; font-size: 12px; letter-spacing: 0; text-transform: none; }
.reference-workbench-table .comparison-trigger { min-width: 0; }

@media (max-width: 560px) {
  .workbook-status-tabs { align-items: stretch; flex-direction: column; padding: 8px 8px 0; }
  .workbook-primary-tabs { gap: 2px; overflow-x: auto; overflow-y: hidden; }
  .workbook-primary-tabs a { min-width: 88px; padding-inline: 9px; }
  .workbook-status-more { align-self: flex-end; margin: 0 0 7px; }
  .reference-search-toolbar .workbench-filter-form { grid-template-columns: 1fr; }
  .reference-search-toolbar .workbench-filter-form input,
  .reference-search-toolbar .workbench-filter-form select,
  .reference-search-toolbar .workbench-filter-form .button { width: 100%; }
}

/* Lufthansa typography hierarchy: one family system across the working UI. */
h2, h3 {
  font-family: "Lufthansa Head", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
}
.page-header .muted,
.workspace-heading .muted {
  font-family: "Lufthansa Text", ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
}
.mono {
  font-family: "Lufthansa Text", ui-sans-serif, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .015em;
}

/* Compact export console */
.export-console-page { display: grid; gap: 16px; }
.export-masthead { min-height: 90px; padding-block: 16px; }
.export-masthead h1 { display: flex; gap: 18px; align-items: baseline; }
.export-masthead h1 span { color: var(--blue); font-size: 21px; font-weight: 400; }
.export-airline-picker { display: grid; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.export-picker-heading { max-width: 720px; }
.export-picker-heading h2, .export-picker-heading p { margin: 0; }
.export-picker-heading p { margin-top: 6px; color: var(--muted); }
.export-airline-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.export-airline-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 76px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface); transition: border-color .16s ease, transform .16s ease; }
.export-airline-card:hover { border-color: var(--line-soft); transform: translateY(-1px); }
.export-airline-card > span:nth-child(2) { display: grid; gap: 3px; }
.export-airline-card small { color: var(--muted); }
.export-airline-card b { color: var(--blue-2); font-size: 20px; }
.export-context-bar { display: flex; min-height: 62px; gap: 18px; align-items: center; justify-content: space-between; padding: 9px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.export-context-bar > div { display: flex; gap: 11px; align-items: center; }
.export-context-bar > div > span:last-child { display: grid; gap: 1px; }
.export-context-bar small, .export-context-bar label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.export-context-bar form { display: flex; gap: 9px; align-items: center; }
.export-context-bar select { min-width: 210px; min-height: 38px; padding: 7px 34px 7px 10px; }
.export-console-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: 16px; }
.csv-build-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.csv-build-steps li { display: grid; align-content: start; gap: 5px; }
.csv-build-steps span, .source-download-bar span { color: var(--muted); }
.csv-return-details { grid-column: 1/-1; }
.csv-return-details summary { cursor: pointer; color: var(--blue-2); padding-block: 8px; }
.export-onboarding-card.new-build { padding: 16px 20px; gap: 12px; }
.export-onboarding-card.new-build h2 { font-size: 19px; }
.export-masthead h1 { font-size: 30px; }
.export-masthead img { max-height: 60px; width: auto; }
.export-onboarding-card.new-build > div > p.muted { display: none; }
.capture-quality-line { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 12px 18px; color: var(--muted); border-bottom: 1px solid var(--line); }
.export-next-action { display: flex; flex-wrap: wrap; gap: 5px 14px; padding: 0 12px 9px; font-size: 12px; color: var(--muted); }
.export-next-action a { margin-left: auto; }
.export-log-panel.export-log-idle { min-height: 0; align-self: start; }
.export-log-idle .export-log-stream { min-height: 0; max-height: none; overflow: visible; }
.export-log-idle .export-log-empty { min-height: 160px; }
.source-download-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 12px; }
.export-scope-dialog details.export-review-status { display: block; }
.export-review-status summary { cursor: pointer; color: var(--blue-2); }
.export-review-status[open] > * + * { margin-top: 10px; }
.export-scope-form [data-export-submit], .export-scope-form [data-api-export-submit] { position: sticky; bottom: 0; box-shadow: none; z-index: 1; }
@media (max-width: 720px) {
  .csv-build-steps, .export-console-grid { grid-template-columns: 1fr; }
  .export-context-bar { flex-wrap: wrap; }
  .export-context-bar select { min-width: 0; width: 100%; }
  .export-context-bar form { min-width: 0; width: 100%; }
}
.export-control-panel, .export-log-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.export-control-panel { display: flex; flex-direction: column; }
.export-control-panel > header { padding: 20px 20px 15px; }
.export-control-panel h2, .export-control-panel p { margin: 0; }
.export-control-panel header p:last-child { margin-top: 5px; color: var(--muted); }
.export-method-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 20px; padding: 4px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); }
.export-method-tabs button { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 8px 13px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.export-method-tabs button span { font-size: 16px; font-weight: 850; }
.export-method-tabs button small { font-size: 11px; }
.export-method-tabs button.active { color: var(--text); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); box-shadow: none; }
.export-method-tabs button.active small { color: var(--text); }
.export-method-note { display: flex; gap: 8px; align-items: center; margin: 10px 20px 5px; color: var(--muted); font-size: 12px; }
.export-method-note[hidden] { display: none; }
.export-method-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: none; }
.export-method-note.csv i { background: var(--blue); box-shadow: none; }
.export-entity-list { display: grid; gap: 7px; padding: 12px 20px 18px; }
.export-entity-button { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; gap: 11px; align-items: center; width: 100%; min-height: 66px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); text-align: left; background: var(--surface-2); }
.export-entity-button:hover { border-color: var(--line-soft); background: var(--surface); }
.export-entity-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--blue); background: var(--surface); font-size: 17px; }
.export-entity-button > span:nth-child(2) { display: grid; gap: 2px; }
.export-entity-button strong { font-size: 16px; }
.export-entity-button small { color: var(--muted); font-size: 11px; }
.export-change-count { display: grid; justify-items: end; color: var(--blue-2); font-size: 18px; font-weight: 800; }
.export-change-count small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.export-entity-button > b { color: var(--muted); font-size: 18px; }
.export-control-panel > footer { display: grid; gap: 3px; margin-top: auto; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface-2); }
.export-control-panel > footer span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.export-control-panel > footer strong { color: var(--muted); font-size: 12px; }
.export-log-panel { display: flex; min-height: 570px; flex-direction: column; }
.export-log-header { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.export-log-header h2, .export-log-header p { margin: 0; }
.export-log-header p:last-child { margin-top: 5px; color: var(--muted); }
.export-live-progress { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.export-live-progress > div { height: 6px; overflow: hidden; border-radius: 99px; background: var(--surface); }
.export-live-progress > div span { display: block; height: 100%; border-radius: inherit; background: var(--surface); }
.export-live-progress strong { color: var(--blue-2); }
.export-log-stream { min-height: 330px; max-height: 470px; overflow: auto; flex: 1; background: var(--surface-2); }
.export-history-row { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 66px; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.export-history-row:hover { background: var(--surface); }
.export-history-row > span:nth-child(2) { display: grid; gap: 3px; }
.export-history-row small { color: var(--muted); }
.export-history-row b { color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface); }
.status-dot.succeeded { background: var(--green); }
.status-dot.failed, .status-dot.cancelled { background: var(--red); }
.status-dot.running, .status-dot.queued { background: var(--blue); box-shadow: none; }
.export-log-empty { display: grid; min-height: 320px; place-content: center; justify-items: center; gap: 6px; padding: 30px; color: var(--muted); text-align: center; }
.export-log-empty > span { color: var(--blue); font-size: 34px; }
.export-log-empty strong { color: var(--text); font-size: 17px; }
.export-log-footer { display: flex; gap: 10px; align-items: center; min-height: 48px; margin-top: auto; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: var(--surface); }
.export-log-footer strong { color: var(--text); }
.export-log-footer a { margin-left: auto; color: var(--blue-2); font-weight: 750; }
.export-scope-dialog { width: min(740px,calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 0; overflow: auto; border: 1px solid var(--line-soft); border-radius: 15px; color: var(--text); background: var(--surface); box-shadow: none; }
.export-scope-dialog::backdrop { background: var(--surface); backdrop-filter: blur(3px); }
.export-scope-dialog > header { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.export-scope-dialog h2, .export-scope-dialog p { margin: 0; }
.export-scope-dialog header p:last-child { margin-top: 4px; color: var(--muted); }
.export-counter-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 20px 8px; background: var(--surface-2); }
.export-counter-heading strong { font-size: 13px; }
.export-counter-heading span { color: var(--muted); font-size: 11px; text-align: right; }
.export-scope-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.export-scope-summary > div { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--surface-2); }
.export-scope-summary span { color: var(--muted); font-size: 12px; }
.export-scope-summary strong { color: var(--blue-2); font-size: 18px; }
.export-review-status { position: relative; display: grid; grid-template-columns: minmax(180px,1fr) auto auto; gap: 8px 18px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.export-review-status > div > strong, .export-review-status > div > span { display: block; }
.export-review-status > div > strong { font-size: 12px; }
.export-review-status > div > span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.export-review-status dl { display: flex; gap: 14px; margin: 0; }
.export-review-status dl div { display: flex; gap: 5px; align-items: baseline; }
.export-review-status dt { color: var(--muted); font-size: 10px; }
.export-review-status dd { margin: 0; font-size: 13px; font-weight: 700; }
.export-review-status > a { color: var(--blue-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.export-review-status > p { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.export-review-status > p.warning { color: var(--amber); }
.export-scope-dialog [data-export-method-panel][hidden] { display: none; }
.export-scope-form { display: grid; gap: 15px; padding: 20px 22px 22px; }
.export-scope-form button:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.45); }
.export-scope-form fieldset { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0; padding: 0; border: 0; }
.export-scope-form legend { grid-column: 1/-1; margin-bottom: 2px; color: var(--text); font-weight: 800; }
.export-scope-form fieldset > label { display: flex; min-height: 68px; gap: 9px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-top-width: 3px; border-radius: 8px; background: var(--surface-2); }
.export-scope-form fieldset > label.create { border-top-color: var(--line-soft); }
.export-scope-form fieldset > label.update { border-top-color: var(--amber); }
.export-scope-form fieldset > label.delete { border-top-color: var(--red); }
.export-scope-form fieldset input { width: 17px; height: 17px; min-height: 17px; margin-top: 2px; accent-color: var(--blue); }
.export-scope-form fieldset label span { display: grid; gap: 3px; }
.export-scope-form fieldset small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.export-confirmation { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.export-confirmation b { color: var(--text); }
.export-confirmation input { width: 100%; }
.export-safety-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); }
.export-safety-note > span { color: var(--green); font-size: 17px; }
.export-safety-note p { display: grid; gap: 2px; }
.export-safety-note small { color: var(--muted); }
.export-csv-mode { grid-template-columns: 1fr 1fr !important; }
.export-csv-mode > label { border-top-width: 1px !important; }
.export-action-options:disabled { opacity: .42; }
.export-unavailable { display: grid; justify-items: center; gap: 8px; padding: 38px 24px; text-align: center; }
.export-unavailable > span { display: grid; min-width: 52px; height: 44px; place-items: center; border: 1px solid var(--line-soft); border-radius: 10px; color: var(--blue); background: var(--surface); font-weight: 850; }
.export-unavailable h3, .export-unavailable p { margin: 0; }
.export-unavailable p { max-width: 460px; color: var(--muted); }

@media (max-width: 980px) {
  .export-airline-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .export-console-grid { grid-template-columns: 1fr; }
  .export-log-panel { min-height: 470px; }
}
@media (max-width: 620px) {
  .export-masthead h1 { align-items: flex-start; flex-direction: column; gap: 2px; }
  .export-context-bar, .export-context-bar form { align-items: stretch; flex-direction: column; }
  .export-context-bar select { width: 100%; }
  .export-airline-grid { grid-template-columns: 1fr; }
  .export-console-grid { display: block; }
  .export-log-panel { margin-top: 14px; }
  .export-method-tabs { margin-inline: 14px; }
  .export-method-note { margin-inline: 14px; }
  .export-entity-list { padding-inline: 14px; }
  .export-scope-summary { grid-template-columns: 1fr; }
  .export-counter-heading { align-items: flex-start; flex-direction: column; }
  .export-counter-heading span { text-align: left; }
  .export-review-status { grid-template-columns: 1fr; }
  .export-review-status > p { grid-column: 1; }
  .export-scope-form fieldset, .export-csv-mode { grid-template-columns: 1fr !important; }
  .export-scope-dialog > header { align-items: stretch; flex-direction: column; }
}

/* Calm record editors: comparison context left, editable VAAS target right. */
.record-editor { width: min(1180px, calc(100vw - 32px)); }
.record-editor .route-editor-header { padding: 18px 22px; background: var(--surface); }
.record-editor .route-editor-header h2 { margin: 4px 0 5px; font-size: 25px; }
.record-editor .route-editor-header .muted { max-width: 820px; font-size: 14px; line-height: 1.45; }
.record-editor-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 2fr); align-items: stretch; background: var(--surface-2); }
.record-editor-context { min-width: 0; padding: 20px; border-right: 1px solid var(--line); background: var(--surface); }
.record-editor-context > .eyebrow { margin-bottom: 12px; }
.record-editor-context .compact-record-diff { width: 100%; margin: 0; }
.record-editor-context .field-change-list > div { grid-template-columns: 1fr; }
.record-editor-context .field-change-list .diff-heading { display: none; }
.record-editor-context .field-change-list > div > * { padding: 7px 10px; }
.record-editor-context .field-change-list > div > strong { padding-top: 11px; color: var(--text); background: var(--surface); font-size: 12px; }
.record-editor-context .field-change-list .before::before,
.record-editor-context .field-change-list .after::before { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.record-editor-context .field-change-list .before::before { content: "vAMSYS"; }
.record-editor-context .field-change-list .after::before { content: "VAAS"; }
.record-editor-context .record-status-summary { display: grid; gap: 5px; margin: 0; padding: 14px; }
.record-editor-save-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 7%, transparent); }
.record-editor-save-note > span { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; color: var(--on-accent); background: color-mix(in srgb, var(--green) 9%, var(--surface)); font-weight: 900; }
.record-editor-save-note p { display: grid; gap: 3px; margin: 0; }
.record-editor-save-note small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.record-editor .editor-sections { display: grid; gap: 14px; padding: 20px; background: var(--surface-2); }
.record-editor .editor-sections fieldset { margin: 0; padding: 17px; overflow: visible; border-color: var(--line-soft); border-radius: 10px; background: var(--surface); }
.record-editor .editor-sections legend { margin-left: 0; padding: 0 8px; color: var(--blue); font-size: 15px; }
.record-editor .route-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; padding: 0; }
.record-editor .route-details-grid label { gap: 6px; color: var(--text); font-size: 13px; }
.record-editor .route-details-grid input,
.record-editor .route-details-grid select,
.record-editor .route-details-grid textarea { min-height: 42px; padding: 9px 11px; font-size: 15px; }
.record-editor .route-details-grid label small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.record-editor .route-details-grid .check-row { min-height: 42px; align-self: end; padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-2); }
.record-editor .choice-editor { margin-top: 14px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface-2); }
.record-editor .editor-danger-zone { align-items: center; justify-content: space-between; padding: 12px 20px; color: var(--muted); background: var(--surface-2); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.record-editor .editor-danger-zone .button { text-transform: none; letter-spacing: 0; }

/* Settings center */
.settings-page, .airline-settings-page, .api-console-page { display: grid; width: 100%; max-width: 1780px; gap: 16px; margin: 0 auto; }
.settings-masthead, .api-masthead { min-height: 142px; margin-bottom: 0; }
.settings-profile-strip { display: flex; min-height: 68px; gap: 22px; align-items: center; padding: 10px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.settings-profile-strip .avatar { width: 42px; height: 42px; }
.settings-profile-strip > div, .settings-profile-strip > span:not(.avatar) { display: grid; gap: 2px; }
.settings-profile-strip > span:not(.avatar) { margin-left: auto; padding-left: 22px; border-left: 1px solid var(--line); }
.settings-profile-strip small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.settings-quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.settings-quick-card { --settings-accent: var(--blue); display: grid; min-height: 112px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line-soft); border-top: 3px solid var(--settings-accent); border-radius: 11px; color: var(--text); background: var(--surface); }
.settings-quick-card:hover { border-color: color-mix(in srgb, var(--settings-accent) 55%, var(--line-soft)); background: var(--surface); transform: translateY(-1px); }
.settings-quick-card.jobs { --settings-accent: var(--cyan); }
.settings-quick-card.system { --settings-accent: var(--amber); }
.settings-quick-card.users { --settings-accent: var(--purple); }
.settings-quick-card.audit { --settings-accent: #6dd0a8; }
.settings-quick-card .settings-icon { width: 42px; height: 42px; color: color-mix(in srgb, var(--settings-accent) 75%, white); background: color-mix(in srgb, var(--settings-accent) 13%, var(--surface)); font-size: 19px; }
.settings-quick-card h2, .settings-quick-card small, .settings-quick-card p { margin: 0; }
.settings-quick-card h2 { margin-bottom: 3px; font-size: 18px; }
.settings-quick-card small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.settings-quick-card > b { color: color-mix(in srgb, var(--settings-accent) 75%, white); }
.settings-section-heading { padding: 12px 2px 2px; }
.settings-section-heading h2, .settings-section-heading p { margin: 0; }
.settings-section-heading p:last-child { margin-top: 4px; color: var(--muted); }
.settings-airline-list { display: grid; gap: 8px; }
.settings-airline-row { display: grid; min-height: 72px; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 13px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.settings-api-link { padding: 9px 10px; color: var(--green); font-weight: 800; }

.airline-settings-heading { display: flex; min-height: 118px; gap: 24px; align-items: center; justify-content: space-between; padding: 22px 26px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }
.airline-settings-heading h1, .airline-settings-heading p { margin: 0; }
.airline-settings-heading p:last-child { margin-top: 6px; color: var(--muted); }
.airline-settings-heading .airline-badge { width: 66px; height: 66px; font-size: 19px; }
.airline-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.airline-setting-card { --settings-accent: var(--blue); display: grid; min-height: 174px; grid-template-columns: 48px minmax(0,1fr); gap: 15px; padding: 21px; border: 1px solid var(--line-soft); border-left: 3px solid var(--settings-accent); border-radius: 12px; color: var(--text); background: var(--surface); }
.airline-setting-card:hover:not(section) { border-color: color-mix(in srgb, var(--settings-accent) 55%, var(--line-soft)); background: var(--surface); }
.airline-setting-card.fleet { --settings-accent: var(--amber); }
.airline-setting-card.api { --settings-accent: var(--cyan); }
.airline-setting-card.protection { --settings-accent: var(--purple); }
.airline-setting-card .settings-icon { width: 48px; height: 48px; color: color-mix(in srgb, var(--settings-accent) 78%, white); background: color-mix(in srgb, var(--settings-accent) 12%, var(--surface)); }
.airline-setting-card h2, .airline-setting-card p { margin: 0; }
.airline-setting-card h2 { margin-bottom: 6px; font-size: 21px; }
.airline-setting-card p:not(.eyebrow) { color: var(--muted); line-height: 1.45; }
.airline-setting-card strong { display: inline-block; margin-top: 13px; color: color-mix(in srgb, var(--settings-accent) 74%, white); }
.airline-protection-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; margin-top: 12px; }
.airline-protection-form label { display: grid; gap: 5px; color: var(--text); font-size: 12px; font-weight: 750; }
.airline-protection-form input, .airline-protection-form button { min-height: 40px; height: 40px; }
.protection-version { display: block; margin-top: 7px; color: var(--purple); }
.airline-setting-card.source-ignore-card { grid-column: 1 / -1; min-height: 0; }
.source-ignore-form { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; }
.source-ignore-form label { display: grid; gap: 5px; }
.source-ignore-form label small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.35; }
.source-ignore-prefixes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.source-ignore-actions { display: flex; align-items: center; gap: 12px; }
.source-ignore-actions .protection-version { margin: 0; }
.protection-card .source-ignore-form { grid-template-columns: 1fr; }

/* Fleet assignment workbench */
.fleet-assignment-overview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin: 16px 0 12px; }
.fleet-assignment-overview article { display: grid; min-height: 76px; align-content: center; gap: 1px; padding: 12px 15px; border: 1px solid var(--line-soft); border-top: 2px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.fleet-assignment-overview article small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fleet-assignment-overview article strong { color: var(--text); font-size: 21px; line-height: 1.1; }
.fleet-assignment-overview article span { color: var(--muted); font-size: 11px; }
.fleet-assignment-overview article.warning { border-top-color: var(--amber); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 4%, transparent); }
.fleet-assignment-overview article.ready { border-top-color: var(--line-soft); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 4%, transparent); }
.unresolved-code-list { display: grid; gap: 7px; padding: 10px; border: 1px solid color-mix(in srgb, var(--line-soft) 32%, transparent); border-radius: 9px; background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 4%, transparent); }
.unresolved-code-list > small { color: var(--amber); font-weight: 750; }
.unresolved-code-list > div { display: flex; flex-wrap: wrap; gap: 6px; }
.unresolved-code-list button { min-height: 28px; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--line-soft) 48%, transparent); border-radius: 999px; color: var(--amber); background: var(--surface); font: 700 12px/1 var(--font-text); cursor: pointer; }
.unresolved-code-list button:hover, .unresolved-code-list button:focus-visible { border-color: var(--line-soft); background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 12%, transparent); }

/* Compact fleet-rule builder and readable saved-rule cards. */
.active-rule-strip { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 22px; align-items: center; margin: 0 0 14px; padding: 13px 15px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.active-rule-strip h2, .active-rule-strip p { margin: 0; }
.active-rule-strip h2 { font-size: 17px; }
.active-rule-chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px; }
.active-rule-chips a { display: grid; min-width: 132px; flex: 0 0 auto; gap: 1px; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--line-soft) 38%, transparent); border-radius: 8px; color: var(--text); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 7%, transparent); }
.active-rule-chips a:hover { border-color: var(--cyan); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 12%, transparent); }
.active-rule-chips strong { color: var(--green); font-size: 13px; }
.active-rule-chips span { color: var(--muted); font-size: 10px; }
.rule-workshop { grid-template-columns: 1fr; }
.rule-side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
.rule-builder { display: grid; grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr); gap: 12px; align-items: start; margin: 16px 0 10px; padding: 15px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.rule-builder-source { display: block; padding: 8px 10px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface); }
.rule-builder-source legend, .target-fleet-picker legend { padding: 0 7px; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .07em; }
.rule-builder-arrow { display: grid; width: 34px; height: 34px; place-items: center; margin-top: 36px; border-radius: 50%; color: var(--on-accent); background: var(--cyan); font-size: 20px; font-weight: 900; }
.target-fleet-picker { padding: 8px 10px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface-2); }
.target-fleet-picker legend { padding: 0 7px; }
.fleet-picker-toolbar { display: flex; min-height: 32px; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.fleet-picker-toolbar > small { color: var(--muted); font-size: 10px; }
.fleet-picker-toolbar > div { display: flex; gap: 5px; align-items: center; }
.fleet-picker-toolbar button { min-height: 25px; padding: 3px 7px; border: 1px solid var(--line-soft); border-radius: 6px; color: var(--blue); background: var(--surface); font: 750 10px/1 var(--font-text); cursor: pointer; }
.fleet-picker-toolbar button:hover { border-color: var(--blue); color: var(--text); }
.fleet-picker-toolbar span { min-width: 62px; color: var(--muted); font-size: 9px; text-align: right; }
.fleet-picker-toolbar b { color: var(--green); }
.fleet-choice-grid { grid-template-columns: repeat(2,minmax(170px,1fr)); gap: 7px; }
.fleet-picker-scroll { max-height: 288px; padding-right: 3px; overflow-y: auto; scrollbar-color: #3e678c #0a151f; scrollbar-width: thin; }
.fleet-choice-grid label { min-height: 58px; padding: 8px 10px; }
.fleet-choice-grid span { line-height: 1.18; }
.fleet-choice-grid span > small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 650; }
.fleet-combination-note { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; padding: 9px 11px; border-radius: 8px; color: var(--muted); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 6%, transparent); font-size: 11px; }
.fleet-combination-note span { color: var(--green); font-weight: 900; }
.template-safety { display: flex; gap: 8px; align-items: center; margin-top: 11px; padding: 9px 10px; border-radius: 8px; color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 7%, transparent); }
.template-safety > span { font-weight: 900; }
.template-safety small { color: var(--muted); }
.substitution-rule-group { grid-column: 1/-1; }
.fleet-rule-card-grid { display: grid; grid-template-columns: repeat(3,minmax(260px,1fr)); gap: 9px; }
.fleet-rule-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); scroll-margin-top: 86px; }
.fleet-rule-card > header { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 13px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.fleet-rule-card > header p, .fleet-rule-card > header strong { margin: 0; }
.fleet-rule-card > header p { color: var(--blue); font-size: 15px; font-weight: 900; }
.fleet-rule-card > header strong { color: var(--muted); font-size: 11px; }
.fleet-rule-card > header > span { padding: 4px 7px; border-radius: 999px; color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 10%, transparent); font-size: 10px; font-weight: 800; white-space: nowrap; }
.fleet-rule-targets { display: grid; }
.fleet-rule-target { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.fleet-rule-target:first-child { border-top: 0; }
.fleet-rule-target > div { display: grid; gap: 3px; }
.fleet-rule-target strong { font-size: 12px; }
.fleet-rule-target small { color: var(--muted); font-size: 10px; }
.fleet-rule-target .button { min-height: 32px; padding: 5px 8px; font-size: 10px; }

/* Focused Operations API console */
.api-masthead h1 { display: flex; gap: 18px; align-items: baseline; }
.api-masthead h1 span { color: var(--green); font-size: 21px; font-weight: 400; }
.api-console-grid { display: grid; grid-template-columns: minmax(460px,.92fr) minmax(480px,1.08fr); gap: 14px; }
.api-console-connection, .api-console-status { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.api-console-status { display: flex; min-height: 560px; flex-direction: column; }
.api-panel-heading { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 19px 20px 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
.api-panel-heading h2, .api-panel-heading p { margin: 0; }
.api-panel-heading p:last-child { margin-top: 5px; color: var(--muted); }
.semantic-state.neutral { color: var(--muted); background: color-mix(in srgb, var(--surface) 6%, transparent); }
.api-console-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 19px 20px; }
.api-console-form label { display: grid; gap: 6px; color: var(--text); font-size: 12px; font-weight: 800; }
.api-console-form .wide-field { grid-column: 1/-1; }
.api-console-form input { min-height: 42px; }
.api-write-toggle { display: flex !important; min-height: 68px; flex-direction: row; gap: 11px !important; align-items: flex-start; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface); }
.api-write-toggle input { width: 18px; height: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--blue); }
.api-write-toggle span { display: grid; gap: 3px; }
.api-write-toggle small { color: var(--muted); font-weight: 400; line-height: 1.35; }
.api-secret-note, .api-readonly-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface); }
.api-secret-note > span, .api-readonly-note > span { color: var(--green); font-size: 18px; }
.api-secret-note p, .api-readonly-note p { display: grid; gap: 3px; margin: 0; }
.api-secret-note small, .api-readonly-note small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.api-secondary-action { padding: 0 20px 14px; }
.api-existing-connections { margin: 0 20px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.api-existing-connections > summary { padding: 10px 12px; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.api-alias-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 10px 10px; }
.api-readonly-note { margin: 20px; border-color: var(--line-soft); background: var(--surface); }
.api-readonly-note > span { color: var(--blue); }
.api-contract-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.api-contract-summary > div { display: flex; min-height: 78px; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface-2); }
.api-contract-summary > div > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 850; }
.api-contract-summary > div.ready > span { border-color: var(--line-soft); color: var(--green); background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 8%, transparent); }
.api-contract-summary p { display: grid; gap: 2px; margin: 0; }
.api-contract-summary small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.api-contract-summary strong { font-size: 12px; }
.api-contract-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.api-contract-meta > span { display: grid; gap: 2px; }
.api-contract-meta small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.api-contract-meta strong { font-size: 12px; }
.api-log-stream { min-height: 245px; max-height: 390px; overflow: auto; flex: 1; background: var(--surface-2); }
.api-log-stream .export-log-empty { min-height: 245px; }
.api-readback-action { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.api-readback-action > div { display: grid; gap: 2px; }
.api-readback-action small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.api-readback-action strong { font-size: 13px; }
.api-boundary-note { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 12px 15px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.api-boundary-note > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--on-accent); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); font-weight: 900; }
.api-boundary-note p { display: grid; gap: 2px; margin: 0; }
.api-boundary-note small { color: var(--muted); }
.api-boundary-note a { color: var(--blue-2); font-weight: 800; white-space: nowrap; }
.api-member-reuse { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; margin: 18px 20px 0; padding: 13px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.api-member-reuse-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--on-accent); background: color-mix(in srgb, var(--green) 9%, var(--surface)); font-size: 18px; font-weight: 900; }
.api-member-reuse > div { display: grid; gap: 3px; }
.api-member-reuse small { color: var(--muted); line-height: 1.35; }
.api-member-reuse form { display: flex; gap: 7px; align-items: center; }
.api-member-reuse select { min-width: 190px; }
.api-form-separator { display: flex; align-items: center; gap: 10px; margin: 16px 20px 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.api-form-separator::before, .api-form-separator::after { height: 1px; flex: 1; background: var(--line); content: ""; }

/* Compact baseline chooser; deliberately separate from the API console classes. */
.vamsys-baseline-choice { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 12px; margin-bottom: 20px; scroll-margin-top: 88px; }
.vamsys-baseline-card { display: flex; min-height: 154px; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.vamsys-baseline-card.api { border-color: var(--line-soft); }
.vamsys-baseline-card.csv { align-items: stretch; flex-direction: column; border-color: var(--line-soft); }
.vamsys-baseline-card-copy { max-width: 720px; }
.vamsys-baseline-card h2 { margin: 9px 0 5px; }
.vamsys-baseline-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.vamsys-baseline-actions { display: grid; min-width: 220px; gap: 8px; justify-items: stretch; }
.vamsys-baseline-actions form, .vamsys-baseline-actions .button { width: 100%; }
.vamsys-baseline-card.csv .vamsys-baseline-actions { width: 100%; min-width: 0; }
.vamsys-baseline-card.csv .button { width: 100%; margin-top: 15px; }
.member-api-adoption { display: grid; gap: 7px; }

@media (max-width: 1120px) {
  .settings-quick-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .api-console-grid { grid-template-columns: 1fr; }
  .vamsys-baseline-choice { grid-template-columns: 1fr; }
  .fleet-choice-grid, .fleet-rule-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rule-side-stack { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .record-editor-layout { grid-template-columns: 1fr; }
  .record-editor-context { border-right: 0; border-bottom: 1px solid var(--line); }
  .record-editor .route-details-grid { grid-template-columns: 1fr; }
  .settings-quick-grid, .airline-settings-grid { grid-template-columns: 1fr; }
  .settings-profile-strip { align-items: flex-start; flex-wrap: wrap; }
  .settings-profile-strip > span:not(.avatar) { margin-left: 0; }
  .settings-airline-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .settings-api-link { grid-column: 2/-1; padding: 0; }
  .source-ignore-prefixes { grid-template-columns: 1fr; }
  .source-ignore-actions { align-items: stretch; flex-direction: column; }
  .fleet-assignment-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .active-rule-strip, .rule-builder { grid-template-columns: 1fr; }
  .rule-builder-arrow { width: 30px; height: 30px; margin: 0 auto; transform: rotate(90deg); }
  .fleet-choice-grid, .fleet-rule-card-grid { grid-template-columns: 1fr; }
  .fleet-picker-toolbar { align-items: flex-start; flex-direction: column; }
  .api-console-form { grid-template-columns: 1fr; }
  .api-console-form .wide-field { grid-column: auto; }
  .api-contract-summary, .api-contract-meta { grid-template-columns: 1fr; }
  .api-readback-action, .api-boundary-note { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
  .api-member-reuse { align-items: stretch; grid-template-columns: auto 1fr; }
  .api-member-reuse form { grid-column: 1/-1; align-items: stretch; flex-direction: column; }
  .vamsys-baseline-choice { grid-template-columns: 1fr; }
  .vamsys-baseline-card { align-items: stretch; flex-direction: column; }
  .vamsys-baseline-actions { width: 100%; min-width: 0; }
}

/* Unified administration, help, system, jobs, users and personal audit. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.management-page { display: grid; width: 100%; max-width: 1780px; gap: 16px; margin: 0 auto; }
.management-masthead {
  display: flex;
  min-height: 142px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 34px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: none;
}
.management-masthead h1, .management-masthead p { margin: 0; }
.management-masthead h1 { margin-top: 2px; font-size: clamp(34px,3.1vw,48px); }
.management-masthead p:last-child { margin-top: 7px; color: var(--text); font-size: 15px; }
.management-masthead img { width: 78px; height: 78px; flex: 0 0 78px; border: 1px solid var(--line-soft); border-radius: 50%; object-fit: cover; box-shadow: none; }
.management-masthead.jobs { border-color: var(--line-soft); background: var(--surface); }
.management-masthead.help { border-color: var(--line-soft); background: var(--surface); }
.management-masthead.system { border-color: var(--line-soft); background: var(--surface); }
.management-masthead.users { border-color: var(--line-soft); background: var(--surface); }
.management-masthead.audit { border-color: var(--line-soft); background: var(--surface); }
.management-masthead.user-detail { min-height: 124px; border-color: var(--line-soft); background: var(--surface); }
.management-masthead.user-detail > .button { flex: 0 0 auto; }
.managed-user-heading { display: flex; gap: 16px; align-items: center; }
.managed-user-heading .avatar { width: 58px; height: 58px; flex: 0 0 58px; font-size: 20px; }
.management-summary-strip { display: grid; min-height: 66px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.management-summary-strip.has-action { grid-template-columns: repeat(3,minmax(115px,170px)) minmax(0,1fr); }
.management-summary-strip > div { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 15px; background: var(--surface); }
.management-summary-strip small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.management-summary-strip strong { font-size: 23px; }
.management-summary-strip .active strong { color: var(--green); }
.management-summary-strip .finished strong { color: var(--green); }
.management-summary-strip .attention strong { color: var(--amber); }
.management-summary-strip form { display: flex; align-items: center; justify-content: flex-end; padding: 9px 12px; background: var(--surface); }
.management-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.management-panel > header { display: flex; min-height: 72px; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.management-panel > header h2, .management-panel > header p { margin: 0; }
.management-list { display: grid; }
.management-list-row { display: grid; min-height: 68px; grid-template-columns: 9px minmax(220px,1fr) minmax(150px,.55fr) auto 18px; gap: 13px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); color: var(--text); background: var(--surface-2); }
.management-list-row:last-child { border-bottom: 0; }
.management-list-row:hover { background: var(--surface); }
.management-list-copy, .job-row-progress { display: grid; min-width: 0; gap: 3px; }
.management-list-copy strong { font-size: 15px; }
.management-list-copy small, .job-row-progress small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.job-row-progress { justify-items: end; text-align: right; }
.job-row-progress strong { color: var(--blue-2); }
.management-list-row > b { color: var(--muted); }
.management-empty { display: grid; min-height: 220px; place-content: center; justify-items: center; gap: 5px; padding: 28px; color: var(--muted); text-align: center; }
.management-empty > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 5px; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--blue); background: var(--surface); font-size: 20px; }
.management-empty strong { color: var(--text); font-size: 17px; }

/* Help follows the same framing, while retaining the guided five-step content. */
.help-page-new .help-topic-nav { position: sticky; z-index: 8; top: calc(var(--topbar) + 8px); margin: 0; padding: 6px; border-color: var(--line-soft); background: var(--surface); backdrop-filter: blur(12px); }
.help-page-new .help-topic-nav a { min-width: 112px; text-align: center; }
.help-page-new .help-section { margin: 0; padding: 20px 22px; border-radius: 12px; background: var(--surface); }
.help-page-new .help-step-grid article, .help-page-new .help-definition-grid article { background: var(--surface-2); }

/* System console */
.system-health-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.system-health-grid article { --health-accent: var(--blue); display: grid; min-height: 112px; align-content: center; gap: 4px; padding: 17px 19px; border: 1px solid var(--line-soft); border-top: 3px solid var(--health-accent); border-radius: 11px; background: var(--surface); }
.system-health-grid article.project { --health-accent: var(--cyan); }
.system-health-grid article.backup { --health-accent: var(--green); }
.system-health-grid article.smtp { --health-accent: var(--amber); }
.system-health-grid span, .system-health-grid small { color: var(--muted); }
.system-health-grid span { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.system-health-grid strong { color: color-mix(in srgb,var(--health-accent) 72%,white); font-size: 25px; }
.system-console-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.system-console-card { display: flex; min-height: 300px; flex-direction: column; }
.system-fact-list { display: grid; margin: 0; }
.system-fact-list > div { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 18px; border-bottom: 1px solid var(--line-soft); }
.system-fact-list dt { color: var(--muted); }
.system-fact-list dd { margin: 0; color: var(--text); font-weight: 850; }
.system-console-card > p { margin: 0; padding: 18px; color: var(--muted); line-height: 1.55; }
.system-console-card > footer { margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; background: var(--surface-2); }
.system-panel-action { margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--line); }
.system-table-wrap, .audit-table-wrap { overflow: auto; }
.system-table, .audit-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.system-table th, .audit-table th { height: 42px; padding: 9px 13px; color: var(--muted); text-align: left; background: var(--surface); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.system-table td, .audit-table td { height: 58px; padding: 10px 13px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.system-table tr:last-child td, .audit-table tr:last-child td { border-bottom: 0; }
.system-table td:first-child, .audit-table td:not([colspan]):first-child { display: grid; gap: 2px; }
.system-table td small, .audit-table td small { color: var(--muted); }

/* User directory and user detail */
.users-page-new .user-management-layout { display: grid; grid-template-columns: 1fr; gap: 12px; }
.users-page-new .account-directory { position: static; order: -1; }
.users-page-new .account-directory > p, .users-page-new .account-directory > h2 { margin-inline: 18px; }
.users-page-new .account-directory > p.eyebrow { margin-top: 18px; }
.users-page-new .user-account-list { gap: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.users-page-new .user-account-row { min-height: 70px; padding: 11px 18px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: var(--surface-2); }
.users-page-new .user-account-row:last-child { border-bottom: 0; }
.users-page-new .user-account-row:hover { background: var(--surface); }
.users-page-new .user-create-panel { padding: 0; }
.users-page-new .user-create-panel > summary { min-height: 76px; padding: 15px 18px; background: var(--surface); }
.users-page-new .user-create-panel > form { padding: 18px; }
.users-page-new .permission-airline, .user-edit-page-new .permission-airline { border-radius: 9px; background: var(--surface-2); }
.user-edit-page-new .user-edit-form { gap: 12px; }
.user-edit-section { padding: 0; }
.user-edit-section > .eyebrow, .user-edit-section > h2, .user-edit-section > .muted { margin-inline: 19px; }
.user-edit-section > .eyebrow { margin-top: 18px; }
.user-edit-section .user-basics-grid, .user-edit-section .account-switches, .user-edit-section .permission-workspace-grid { padding: 0 19px 19px; }
.user-edit-section .account-switches { margin-top: 0; }

/* Personal VAAS audit */
.audit-safety-strip { display: grid; min-height: 72px; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface); }
.audit-safety-strip > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--on-accent); background: color-mix(in srgb, var(--green) 9%, var(--surface)); font-weight: 900; }
.audit-safety-strip > div { display: grid; gap: 3px; }
.audit-safety-strip small { color: var(--muted); }
.audit-filter-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,420px); gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.audit-category-tabs { display: flex; gap: 5px; overflow-x: auto; }
.audit-category-tabs a { --audit-accent: #9aa9ba; display: flex; min-width: 104px; min-height: 40px; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; color: color-mix(in srgb,var(--audit-accent) 72%,white); background: color-mix(in srgb,var(--audit-accent) 7%,var(--surface)); font-size: 12px; font-weight: 800; }
.audit-category-tabs a.auth { --audit-accent: #69b7f1; }
.audit-category-tabs a.data { --audit-accent: #5fd4c7; }
.audit-category-tabs a.job { --audit-accent: #f2bd62; }
.audit-category-tabs a.admin { --audit-accent: #b3a2ff; }
.audit-category-tabs a.security { --audit-accent: #ff8591; }
.audit-category-tabs a.active { border-color: color-mix(in srgb,var(--audit-accent) 52%,var(--line-soft)); background: color-mix(in srgb,var(--audit-accent) 16%,var(--surface)); box-shadow: none; }
.audit-category-tabs b { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 5px; border: 1px solid color-mix(in srgb,var(--audit-accent) 45%,var(--line-soft)); border-radius: 99px; font-size: 10px; }
.audit-search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.audit-search-form input, .audit-search-form button { min-height: 40px; height: 40px; }
.audit-directory > header > small { color: var(--muted); }
.audit-table { min-width: 1120px; table-layout: fixed; }
.audit-table th:nth-child(1) { width: 118px; }
.audit-table th:nth-child(2) { width: 140px; }
.audit-table th:nth-child(3) { width: 120px; }
.audit-table th:nth-child(4) { width: 150px; }
.audit-table th:nth-child(5) { width: 225px; }
.audit-table td { vertical-align: middle; }
.audit-table td:not([colspan]):last-child { display: grid; gap: 3px; }
.audit-table td[colspan] { display: table-cell; height: auto; padding: 0; }
.audit-table td[colspan] .management-empty { min-height: 220px; }
.audit-category { --audit-accent: #9aa9ba; display: inline-flex; gap: 7px; align-items: center; padding: 5px 8px; border: 1px solid color-mix(in srgb,var(--audit-accent) 50%,transparent); border-radius: 99px; color: color-mix(in srgb,var(--audit-accent) 80%,white); background: color-mix(in srgb,var(--audit-accent) 9%,transparent); font-size: 11px; font-weight: 800; }
.audit-category i { width: 7px; height: 7px; border-radius: 50%; background: var(--audit-accent); }
.audit-category.auth { --audit-accent: #69b7f1; }
.audit-category.data { --audit-accent: #5fd4c7; }
.audit-category.job { --audit-accent: #f2bd62; }
.audit-category.admin { --audit-accent: #b3a2ff; }
.audit-category.security { --audit-accent: #ff8591; }
.audit-action { overflow: hidden; color: var(--blue); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* Airline compositions keep independent source airlines visible and calm. */
.airline-list-actions { display: flex; gap: 8px; align-items: flex-start; }
.airline-setting-card.composition { border-top-color: var(--line-soft); background: var(--surface); }
.composition-page { display: grid; width: 100%; max-width: 1780px; gap: 14px; margin: 0 auto; }
.composition-masthead { display: flex; min-height: 132px; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 30px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); }
.composition-masthead h1, .composition-masthead p { margin: 0; }
.composition-masthead h1 { margin-top: 2px; font-size: clamp(32px,3vw,46px); }
.composition-masthead p:last-child { max-width: 850px; margin-top: 6px; color: var(--text); }
.composition-total { display: grid; min-width: 118px; place-items: center; padding: 13px 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.composition-total strong { color: var(--blue); font-size: 34px; }
.composition-total small { color: var(--muted); font-weight: 800; }
.composition-safety { display: grid; min-height: 66px; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface); }
.composition-safety > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--on-accent); background: color-mix(in srgb, var(--green) 9%, var(--surface)); font-weight: 900; }
.composition-safety > div { display: grid; gap: 3px; }
.composition-safety small { color: var(--muted); }
.composition-active-job { display: grid; min-height: 62px; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 11px; color: var(--text); background: var(--surface); }
.composition-active-job > div { display: grid; gap: 2px; }
.composition-active-job small { color: var(--muted); }
.composition-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(310px,390px); gap: 14px; align-items: start; }
.composition-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.composition-panel > header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.composition-panel > header h2, .composition-panel > header p { margin: 0; }
.composition-add-form { display: grid; grid-template-columns: minmax(190px,270px) auto; gap: 7px; }
.composition-add-form select, .composition-add-form button { min-height: 40px; height: 40px; }
.composition-source-list { display: grid; }
.composition-source-row { display: grid; min-height: 72px; grid-template-columns: 34px minmax(170px,.8fr) minmax(210px,1fr) auto auto; gap: 13px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.composition-source-row:last-child { border-bottom: 0; }
.composition-source-row .source-state { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--green); background: var(--surface); font-weight: 900; }
.composition-source-row.missing .source-state { border-color: var(--line-soft); color: var(--amber); background: var(--surface); }
.source-identity, .source-dataset { display: grid; min-width: 0; gap: 3px; }
.source-identity small, .source-dataset small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.composition-source-actions { display: flex; gap: 6px; align-items: center; }
.composition-empty { display: grid; min-height: 210px; place-content: center; justify-items: center; padding: 28px; color: var(--muted); text-align: center; }
.composition-empty p { max-width: 460px; margin: 5px 0 0; }
.build-panel > header { display: block; }
.build-panel ol { display: grid; gap: 0; margin: 0; padding: 7px 18px; list-style: none; }
.build-panel li { display: grid; min-height: 58px; grid-template-columns: 29px minmax(0,1fr); gap: 10px; align-items: center; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.build-panel li:last-child { border-bottom: 0; }
.build-panel li span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--blue); background: var(--surface); font-size: 11px; font-weight: 900; }
.build-panel > form { padding: 14px 18px 7px; }
.build-panel > form .button { width: 100%; }
.build-blocker, .build-ready { margin: 0; padding: 8px 18px 18px; font-size: 11px; line-height: 1.45; }
.build-blocker { color: var(--amber); }
.build-ready { color: var(--green); }
.composition-dissolve { display: grid; gap: 10px; margin-top: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.composition-dissolve p { display: grid; gap: 3px; margin: 0; }
.composition-dissolve small { color: var(--muted); font-size: 11px; line-height: 1.4; }

@media (max-width: 1120px) {
  .composition-layout { grid-template-columns: 1fr; }
  .system-health-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .system-console-grid { grid-template-columns: 1fr 1fr; }
  .system-console-grid .backup-policy { grid-column: 1/-1; min-height: 210px; }
  .audit-filter-panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .airline-list-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .airline-list-actions > .button { width: 100%; text-align: center; }
  .composition-masthead { align-items: flex-start; flex-direction: column; padding: 21px 19px; }
  .composition-total { width: 100%; }
  .composition-panel > header { align-items: stretch; flex-direction: column; }
  .composition-add-form { grid-template-columns: 1fr; }
  .composition-source-row { grid-template-columns: 34px minmax(0,1fr) auto; }
  .composition-source-row .source-dataset { grid-column: 2/-1; }
  .composition-source-actions { grid-column: 2; align-items: stretch; flex-direction: column; }
  .management-masthead { min-height: 0; padding: 22px 20px; }
  .management-masthead img { display: none; }
  .management-masthead.user-detail { align-items: stretch; flex-direction: column; }
  .management-summary-strip { grid-template-columns: repeat(3,1fr); }
  .management-summary-strip form { grid-column: 1/-1; justify-content: stretch; }
  .management-summary-strip form .button { width: 100%; }
  .management-list-row { grid-template-columns: 9px minmax(0,1fr) auto; }
  .job-row-progress { grid-column: 2; justify-items: start; text-align: left; }
  .management-list-row .status-badge { grid-column: 3; grid-row: 1; }
  .management-list-row > b { grid-column: 3; grid-row: 2; justify-self: end; }
  .system-health-grid, .system-console-grid { grid-template-columns: 1fr; }
  .system-console-grid .backup-policy { grid-column: auto; }
  .audit-safety-strip { align-items: stretch; grid-template-columns: auto 1fr; }
  .audit-safety-strip form { grid-column: 1/-1; }
  .audit-safety-strip .button { width: 100%; }
  .audit-search-form { grid-template-columns: 1fr; }
}

/* One shared selection from source review to CSV/API output. */
.transfer-review { max-width: 1580px; margin: 0 auto; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.transfer-review h1 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 38px); }
.transfer-review h2 { margin: 28px 0 14px; font-size: 23px; }
.transfer-review > p { margin: 12px 0 20px; max-width: 1050px; color: var(--muted); line-height: 1.6; }
.transfer-review table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; text-align: left; }
.transfer-review th { padding: 13px 16px; background: var(--surface); color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .035em; }
.transfer-review td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.transfer-review tbody tr:nth-child(even) { background: var(--surface); }
.transfer-review td small { display: inline-block; margin-top: 5px; color: var(--muted); }
.transfer-review td a { color: var(--green); font-weight: 700; }
.transfer-review td form { margin: 0; }
.transfer-review td .button { white-space: normal; min-width: 145px; }
.transfer-review details { margin-top: 8px; color: var(--muted); }
.transfer-review details summary { cursor: pointer; color: var(--green); }
.transfer-review details p { padding: 6px 0; overflow-wrap: anywhere; }
.transfer-review .warning { border-left: 3px solid var(--line-soft); padding: 12px 16px; background: var(--surface); }
@media (max-width: 700px) { .transfer-review { padding: 16px 12px; } .transfer-review th, .transfer-review td { padding: 10px; } .transfer-review table { min-width: 600px; } }

/* Explicit route drafts, readable previews and distinct delivery state. */
.explicit-edit-actions { position: sticky; bottom: 0; z-index: 4; background: var(--panel, var(--surface)); padding: 16px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 10px; }
.explicit-edit-actions p { flex-basis: 100%; margin: 0; }
.edit-preview { padding: 16px; border: 1px solid var(--line-soft); border-radius: 8px; margin: 12px 0; }
.edit-diff-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(80px, 2fr) 20px minmax(80px, 2fr); gap: 12px; padding: 10px; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.edit-diff-row span:last-child { color: var(--green); }
.delivery-state { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); line-height: 1.4; }

/* Data remains the workspace; the update guide is optional assistance. */
.workspace-primary-nav { flex-wrap: wrap; overflow: visible; }
.workspace-inventory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.workspace-inventory a { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); }
.workspace-inventory a:hover { border-color: var(--blue); background: var(--surface-3); }
.workspace-inventory span { font-weight: 700; }
.workspace-inventory strong { font-size: 24px; line-height: 1; }
.workspace-inventory small { grid-column: 1 / -1; color: var(--muted); }
.workspace-empty-hint { color: var(--muted); font-size: 14px; }
.guided-next { padding: 16px 20px; gap: 20px; margin: 18px 0; }
.guided-next .eyebrow { display: none; }
.guided-next h2 { margin: 0; font-size: 20px; }
.guided-next p { margin: 6px 0 0; font-size: 14px; }
.workspace-update-guide { border: 1px solid var(--line); border-radius: 9px; padding: 16px 20px; }
.workspace-update-guide > summary { cursor: pointer; font-weight: 700; }
.workspace-update-guide .guided-progress a { padding: 10px; font-size: 13px; }
.route-view-switch { display: flex; gap: 8px; margin: 18px 0; border-bottom: 1px solid var(--line); }
.route-view-switch a { padding: 10px 14px; color: var(--muted); }
.route-view-switch a[aria-current] { color: var(--text); border-bottom: 3px solid var(--blue); }
.route-review-help, .inline-help { font-size: 13px; }
.route-review-help { padding: 10px 16px; }
.route-review-help summary, .inline-help summary { cursor: pointer; color: var(--muted); }
.route-review-help p { max-width: 85ch; }
.route-fleet-value { display: inline-block; white-space: nowrap; }
.route-fleet-value small { color: var(--muted); margin-left: 4px; font-size: 10px; }
.route-comparison-grid .record-row.state-new, .route-table .record-row.state-new { background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 12%, transparent); }
.route-comparison-grid .record-row.state-changed, .route-table .record-row.state-changed { background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 13%, transparent); }
.route-comparison-grid .record-row.state-outdated, .route-table .record-row.state-outdated { background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 17%, transparent); }
.route-comparison-grid .record-row.state-check, .route-table .record-row.state-check { background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 10%, transparent); }
table.route-comparison-grid > tbody > tr > td { height: 42px; padding: 5px 10px; }
table.route-comparison-grid .decision-note { display: none; }
table.route-comparison-grid .delivery-state { margin-top: 2px; font-size: 10px; }
table.route-comparison-grid .status-label { padding: 4px 8px; font-size: 12px; }
.route-table { table-layout: auto; min-width: 1120px; }
.route-table th:nth-child(n) { width: auto; }
.route-table th:first-child { width: 36px; }
.route-table th:nth-child(2) { width: 160px; }
.route-table .comparison-cell .comparison-trigger { display: block; }
.route-table.compact-workbench-table td { height: 42px; padding: 5px 10px; }
.route-table .delivery-state { font-size: 10px; margin-top: 2px; }
.route-table .status-badge { font-size: 11px; padding: 4px 7px; }
.route-data-heading { margin: 12px 0 16px; align-items: center; }
.route-data-heading h1 { font-size: 30px; margin: 4px 0; }
.route-data-heading p { margin: 4px 0; }
.route-data-heading .workspace-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 600px; }
.route-data-heading .save-indicator { font-size: 11px; padding: 4px 8px; }
.route-data-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.route-data-toolbar .workbench-filter-form { flex: none; width: 100%; grid-template-columns: minmax(180px, 1fr) 100px 150px 160px auto; }
.route-data-toolbar .filter-chips { justify-content: flex-start; }
.route-table td { min-width: 0; }
.route-table .record-actions { display: table-cell; position: static; box-shadow: none; }
.route-table input[type="checkbox"] { width: 18px !important; min-width: 18px !important; height: 18px !important; min-height: 18px !important; margin: 0; padding: 0; vertical-align: middle; }
.route-table .comparison-trigger { min-width: 0; }
.route-table .delivery-state { max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.route-comparison-grid tr.decided { opacity: 1; }
.route-table .missing-value { color: var(--red); background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 16%, transparent); }
@media (max-width: 900px) {
  .workspace-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .workspace-primary-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-inventory a { padding: 14px; }
  .workspace-update-guide { padding: 12px; }
  .route-table { min-width: 0; }
  .route-data-toolbar .workbench-filter-form { grid-template-columns: 1fr 1fr; }
  .route-data-toolbar .workbench-filter-form input[name="q"] { grid-column: 1 / -1; }
  .route-table .record-actions { display: grid; }
}
.change-explanation { padding: 12px 16px; background: var(--surface); border-left: 3px solid var(--line-soft); margin: 12px 0; }
.workflow-strip { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: 8px; margin-bottom: 16px; }
.workflow-strip a { padding: 8px; }
@media(max-width: 600px) { .edit-diff-row { grid-template-columns: 1fr; } .explicit-edit-actions { position: static; } }
.start-heading { margin: 30px 0 32px; }
.start-heading h1 { font-size: clamp(28px, 3vw, 42px); margin: 8px 0; }
.start-heading > p:last-child { color: var(--muted); font-size: 18px; }

/* Keep daily data work focused on the route rather than secondary metadata. */
.route-data-sheet { max-width: 1680px; }
.route-data-sheet .workbench-toolbar { padding: 14px; }
.route-data-sheet .workbench-filter-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; width: 100%; max-width: none; }
.route-data-sheet .workbench-filter-form > input[name="q"] { flex: 1 1 280px; width: min(520px, 100%); max-width: 520px; }
.route-filter-options > summary { padding: 12px 14px; cursor: pointer; color: var(--muted); }
.route-filter-options[open] { flex: 1 1 100%; }
.route-filter-options > div { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 10px 0; }
.route-filter-options label { display: grid; gap: 6px; min-width: 150px; color: var(--muted); }
.route-table-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.route-columns-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.route-columns-toggle input { width: 16px; height: 16px; min-width: 16px; margin: 0; }
.route-data-sheet .route-table { table-layout: fixed; min-width: 1050px; }
.route-data-sheet .route-table th:nth-child(1) { width: 42px; }
.route-data-sheet .route-table th:nth-child(2) { width: 108px; }
.route-data-sheet .route-table th:nth-child(3) { width: 105px; }
.route-data-sheet .route-table th:nth-child(4), .route-data-sheet .route-table th:nth-child(5) { width: 90px; }
.route-data-sheet .route-table th:nth-child(6), .route-data-sheet .route-table th:nth-child(7) { width: 135px; }
.route-data-sheet .route-table th:nth-child(8) { width: auto; }
.route-data-sheet .route-table th:nth-child(9) { width: 100px; }
.route-data-sheet .route-table th:nth-child(10) { width: 145px; }
.route-data-sheet .route-table th:nth-child(11) { width: 110px; }
.route-data-sheet .route-table td { padding: 9px 12px; height: 48px; font-size: 14px; background: var(--surface); }
.route-data-sheet .route-table tbody tr:nth-child(even) > td { background: var(--surface); }
.route-data-sheet .route-table tbody tr:hover > td { background: var(--surface); }
.route-data-sheet .route-table .route-detail-column, .route-data-sheet .route-fleet-value small, .route-data-sheet .delivery-state, .route-data-sheet .comparison-trigger > small { display: none; }
.route-data-sheet:has(#route-details-toggle:checked) .route-detail-column { display: table-cell; }
.route-data-sheet:has(#route-details-toggle:checked) .route-table { min-width: 1390px; }
.route-data-sheet:has(#route-details-toggle:checked) .route-fleet-value small { display: inline; font-size: 12px; }
.route-data-sheet:has(#route-details-toggle:checked) .delivery-state { display: block; }
.route-data-sheet .route-fleet-list { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 13px; }
.route-data-sheet .route-fleet-value { padding: 3px 7px; border: 1px solid var(--line-soft); border-radius: 5px; font-size: 13px; color: var(--text); background: var(--surface); }
.route-data-sheet .comparison-cell .status-badge { font-size: 12px; padding: 5px 9px; }
.route-data-sheet .record-actions .button { min-height: 32px; padding: 7px 10px; font-size: 12px; }
.lean-transfer-review { max-width: 1680px; }
.transfer-header-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.transfer-area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.transfer-area-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.transfer-area-card.active { border-color: var(--line-soft); background: var(--surface); box-shadow: none; }
.transfer-area-title { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; font-weight: 700; color: var(--text); }
.transfer-area-title span { color: var(--blue); }
.transfer-area-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.transfer-area-card dt { color: var(--muted); font-size: 12px; }
.transfer-area-card dd { margin: 5px 0 0; font-size: 24px; font-weight: 700; }
.transfer-area-issues { margin-top: 12px; color: var(--amber); font-size: 13px; }
.transfer-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 16px 0 12px; }
.transfer-list-heading h2 { margin: 0; font-size: 21px; }
.transfer-list-heading h2 span { margin-left: 10px; color: var(--muted); font-size: 14px; font-weight: 400; }
.transfer-baseline-note { margin-left: auto; color: var(--amber); font-size: 12px; }
.transfer-help > summary, .transfer-row-details > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.transfer-help[open] { flex: 1 1 100%; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.transfer-row-scroll { border: 1px solid var(--line); border-radius: 10px; }
.transfer-row-table { table-layout: fixed; min-width: 700px; }
.transfer-row-table th:first-child { width: 95px; }
.transfer-row-table th:nth-child(2) { width: 40%; }
.transfer-row-table th:last-child { width: 160px; }
.transfer-row-table td { padding: 10px 14px; height: 48px; }
.transfer-row-table tbody tr:nth-child(even) > td { background: var(--surface); }
.transfer-row-table .button { min-height: 30px; padding: 6px 10px; font-size: 12px; }
.transfer-action { color: var(--green); font-size: 13px; }
.transfer-excluded .transfer-entry { color: var(--muted); }
@media (max-width: 1000px) { .transfer-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .route-data-sheet .route-table { min-width: 1050px; } .transfer-area-grid { gap: 8px; } .transfer-area-card { padding: 12px; } }
.start-history { margin-top: 24px; font-size: 13px; color: var(--muted); }
.start-status { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--blue-2); }
.airline-tile-shell { border-radius: 18px; }
.airline-tile-name p { display: none; }
.capture-console { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capture-advanced { grid-column: 1 / -1; padding: 15px 20px; border: 1px solid var(--line); border-radius: 12px; }
.capture-advanced > summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.capture-advanced .capture-settings-column { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.capture-advanced .capture-settings-column legend, .capture-advanced .column-intro, .capture-advanced .capture-column-note, .capture-advanced .timing-custom { grid-column: 1 / -1; }
.capture-column > .column-intro, .capture-column-note { display: none; }
.connection-status-tabs { gap: 8px; padding: 12px 0; margin: 0; border: 0; flex-wrap: wrap; }
.connection-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.connection-toolbar .lean-search { flex: 1; max-width: 450px; }
.connection-note, .connection-help { color: var(--muted); font-size: 13px; margin: 12px 0; }
.connection-table-scroll { border: 1px solid var(--line); border-radius: 10px; }
.connection-table { table-layout: fixed; min-width: 1080px; width: 100%; }
.connection-table th:nth-child(n), .connection-table td { width: auto; min-width: 0; }
.connection-table th:first-child { width: 105px; }
.connection-table th:last-child { width: 90px; }
.connection-table td { padding: 8px 10px; height: 44px; }
.connection-values { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-change { font-size: 12px; color: var(--amber); }
.connection-table .button { padding: 5px 9px; min-height: 30px; font-size: 12px; }
.connection-table .state-new { background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 12%, transparent); }
.connection-table .state-changed { background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 13%, transparent); }
.connection-table .state-outdated { background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 17%, transparent); }
.connection-table .state-check { background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 10%, transparent); }
.connection-table .state-new td { background: color-mix(in srgb, color-mix(in srgb, var(--green) 9%, var(--surface)) 12%, transparent); }
.connection-table .state-changed td { background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 13%, transparent); }
.connection-table .state-outdated td { background: color-mix(in srgb, color-mix(in srgb, var(--amber) 9%, var(--surface)) 17%, transparent); }
.connection-table .state-check td { background: color-mix(in srgb, color-mix(in srgb, var(--red) 9%, var(--surface)) 10%, transparent); }
.connection-workspace { width: 100%; max-width: 1680px; }
.connection-paired-table { min-width: 1080px; }
.connection-paired-table th:first-child { width: 110px; }
.connection-paired-table th:nth-child(2), .connection-paired-table th:nth-child(3) { width: 90px; }
.connection-paired-table th:nth-child(4) { width: 135px; }
.connection-paired-table th:nth-child(5) { width: 180px; }
.connection-paired-table th:nth-child(6) { width: 180px; }
.connection-paired-table th:last-child { width: auto; }
.connection-paired-table.with-carrier th:nth-child(2) { width: 65px; }
.connection-paired-table.with-carrier th:nth-child(3), .connection-paired-table.with-carrier th:nth-child(4) { width: 90px; }
.connection-paired-table.with-carrier th:nth-child(5) { width: 135px; }
.connection-paired-table.with-carrier th:nth-child(6), .connection-paired-table.with-carrier th:nth-child(7) { width: 180px; }
.connection-paired-table td { vertical-align: top; padding: 12px 10px; font-size: 14px; }
.connection-flight-line { height: 26px; line-height: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-auto-state { color: var(--green); font-size: 13px; }
.connection-reason { margin: 0 0 8px; color: var(--amber); line-height: 1.4; font-size: 12px; }
.connection-result { font-size: 13px; }
.connection-result summary { color: var(--blue); cursor: pointer; padding: 4px 0; }
.connection-result p { margin: 10px 0; line-height: 1.45; overflow-wrap: anywhere; }
.capture-page-new .capture-masthead { padding: 24px 28px; }
.capture-page-new .capture-masthead img { width: 84px; height: 84px; }
.capture-page-new .capture-column { padding: 18px; }
.capture-page-new .capture-choice { min-height: 88px; padding: 14px; }
.capture-page-new .capture-console-footer { padding: 16px 20px; }
.route-detail-current { padding: 10px 14px; color: var(--muted); }
@media (max-width: 800px) {
  .capture-console { grid-template-columns: 1fr; }
  .capture-advanced .capture-settings-column { grid-template-columns: 1fr; }
  .connection-toolbar .lean-search { max-width: none; flex-basis: 100%; }
}

/* Daily route workspace: quiet context, directional filters, one table. */
.route-state-strip { display:flex; flex-wrap:wrap; gap:8px 24px; padding:12px 16px; margin:0 0 18px; border:1px solid var(--line); border-radius:10px; color:var(--muted); font-size:13px; }
.route-core-filters { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)) auto auto; gap:10px; align-items:end; width:100%; }
.route-core-filters label { display:grid; gap:5px; font-size:12px; font-weight:600; }
.route-core-filters input { width:100%; min-width:0; }
.route-data-toolbar .workbench-filter-form { flex-wrap:wrap; width:100%; }
.route-data-toolbar .workbench-filter-form > input[name=q] { max-width:360px; }
.route-review-reason { display:block; max-width:240px; margin-top:5px; font-size:12px; color:var(--text); }
.route-change-summary { display:block; max-width:240px; margin-top:5px; font-size:12px; color:var(--muted); }
.route-ignore-action { margin-top:4px; }
.route-ignore-action .button { font-size:12px; padding:4px 8px; }
.route-bulk-disclosure,.handoff-details { margin-top:18px; padding:14px 18px; border:1px solid var(--line); border-radius:10px; }
.route-bulk-disclosure > summary,.handoff-details > summary { cursor:pointer; font-weight:600; }
.handoff-summary { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-bottom:16px; }
.handoff-summary > div { flex:1; min-width:240px; }
.handoff-summary p { margin:5px 0; color:var(--muted); }
.export-log-panel > summary { padding:16px; cursor:pointer; font-weight:600; }
.export-console-grid { align-items:start; }
.delivery-counts { display:flex; flex-wrap:wrap; gap:32px; margin:24px 0; }
.delivery-counts > div { display:grid; gap:4px; }
.delivery-counts strong { font-size:28px; }
.workflow-preferences { margin-bottom:22px; }
.workflow-preferences form { display:grid; gap:14px; }
.workflow-preferences .button { justify-self:start; }
.import-exclusions { margin:8px 0 18px; color:var(--muted); font-size:13px; }
@media(max-width:1000px) { .route-core-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .route-core-filters { grid-template-columns:1fr; } .route-state-strip { gap:8px; flex-direction:column; } .delivery-counts { gap:20px; } }

/* Saved FR24 facts: progressive disclosure within route/aircraft details. */
.fr24-evidence-panel, .fr24-aircraft-details {
  margin: 18px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface-2); color: var(--text); overflow: clip;
}
.fr24-evidence-panel > summary, .fr24-aircraft-details > summary,
.fr24-flight-events > summary {
  padding: 16px 18px; min-height: 48px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--text);
}
.fr24-evidence-panel > summary small {
  margin-left: 12px; color: var(--muted); font-size: 13px; font-weight: 400;
}
.fr24-evidence-panel > summary:hover, .fr24-aircraft-details > summary:hover {
  background: var(--surface-3);
}
.fr24-evidence-panel summary:focus-visible, .fr24-aircraft-details summary:focus-visible {
  outline: 3px solid var(--blue-2); outline-offset: -4px; border-radius: 12px;
}
.fr24-source-details { padding: 0 18px 18px; }
.fr24-source-caption { color: var(--muted); font-size: 13px; line-height: 1.55; }
.fr24-fact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.fr24-fact { padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue-2);
  border-radius: 12px; background: var(--surface); min-width: 0; }
.fr24-fact.planned { border-top-color: var(--purple); }
.fr24-fact.observed { border-top-color: var(--green); }
.fr24-fact span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.fr24-fact strong { display: block; font-size: 17px; overflow-wrap: anywhere; }
.fr24-source-facts, .fr24-event-times { display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 20px; margin: 18px 0; }
.fr24-source-facts div, .fr24-event-times div { min-width: 0; }
.fr24-source-facts dt, .fr24-event-times dt { color: var(--muted); font-size: 13px; }
.fr24-source-facts dd, .fr24-event-times dd { margin: 5px 0 0; font-size: 14px;
  color: var(--text); overflow-wrap: anywhere; }
.fr24-plausibility-note { border-left: 3px solid var(--amber); padding: 12px;
  background: var(--surface); border-radius: 8px; font-size: 14px; }
.fr24-flight-events { border-top: 1px solid var(--line); }
.fr24-flight-events > summary { padding-left: 0; }
.fr24-events { display: grid; gap: 10px; }
.fr24-event { padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); }
.fr24-event header { display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--muted); }
.fr24-event-state { border: 1px solid currentColor; border-radius: 6px;
  padding: 3px 8px; font-weight: 700; color: var(--blue-2); }
.fr24-event-state.scheduled { color: var(--purple); }
.fr24-event-state.landed, .fr24-event-state.observed { color: var(--green); }
.fr24-event-state.diverted { color: var(--amber); }
.fr24-event-state.cancelled { color: var(--red); }
.fr24-event-aircraft { margin: 12px 0; font-size: 14px; }
.fr24-event-aircraft small, .fr24-event-times small { display: block; margin-top: 5px;
  font-size: 13px; color: var(--muted); }
.fr24-actual-times { color: var(--muted); font-size: 13px; }
.fr24-actual-times p { margin: 4px 0; }
.fr24-aircraft-details { margin: 0 0 18px; }
.fr24-aircraft-details > dl, .fr24-aircraft-details > p { margin: 16px 18px; }
@media (max-width: 700px) {
  .fr24-evidence-panel { margin: 12px; }
  .fr24-fact-grid, .fr24-source-facts, .fr24-event-times { grid-template-columns: minmax(0,1fr); }
  .fr24-evidence-panel > summary small { display: block; margin: 6px 0 0 18px; }
}
