/*
 * 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 #243041;
  background: #0d1420;
  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: 0 0 0 1px #2b527a; }
.brand-copy strong { font-size: 20px; letter-spacing: -.02em; }
.brand-copy small { color: #8ea0b7; 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: rgba(37, 136, 247, .08); }
.avatar { border-color: #3e6fa2; background: #162638; }
.sidebar {
  top: var(--topbar);
  height: calc(100vh - var(--topbar));
  padding: 16px 12px 28px;
  border-right: 1px solid #222c39;
  background: #0e131b;
}
.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: #aeb8c6;
  font-weight: 650;
}
.sidebar nav a:hover { color: var(--text); background: var(--surface-2); }
.sidebar nav a.active {
  color: #fff;
  border-color: #2766a5;
  background: #164d83;
  box-shadow: inset 3px 0 #63afff;
}
.nav-icon { flex-basis: 22px; color: #7995b4; }
.sidebar nav a.active .nav-icon { color: #d9ecff; }
.nav-label { margin: 23px 12px 8px; color: #6f7b8b; 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: #77b7fb; 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: #52a6ff; color: #fff; background: var(--blue); box-shadow: 0 8px 22px rgba(37, 136, 247, .2); }
.button.primary:hover { background: #3c98fb; filter: none; }
.button.secondary { border-color: #3b4655; color: #ecf1f8; background: var(--surface-2); }
.button.secondary:hover { border-color: #5c6a7c; 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: rgba(239, 100, 114, .55); color: #ff9ca7; background: rgba(239, 100, 114, .06); }
.button.success { border-color: rgba(57, 198, 138, .45); color: #9ae8c2; background: rgba(57, 198, 138, .08); }
input, textarea, select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #394657;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: #0d1117;
}
input:hover, textarea:hover, select:hover { border-color: #536174; }
input:focus, textarea:focus, select:focus { border-color: #5ca9fa; box-shadow: 0 0 0 3px rgba(37, 136, 247, .16); outline: 0; }
input:disabled, textarea:disabled, select:disabled { opacity: .62; cursor: not-allowed; }
label { color: #dfe5ee; }
label small { color: var(--muted-2); }
.id-input, .editable-table .id-input { width: 104px; min-height: 36px; border: 1px solid #466078; border-radius: 6px; background: #101a25; 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: rgba(57, 198, 138, .42); color: #62d9a4; background: rgba(57, 198, 138, .08); }
.status-badge.changed { border-color: rgba(242, 184, 75, .5); color: #f8c869; background: rgba(242, 184, 75, .08); }
.status-badge.new { border-color: rgba(53, 199, 193, .45); color: #6fe0dc; background: rgba(53, 199, 193, .08); }
.status-badge.warning { border-color: rgba(242, 184, 75, .45); color: #f4c76c; background: rgba(242, 184, 75, .08); }
.status-badge.error, .status-badge.failed { border-color: rgba(239, 100, 114, .45); color: #ff9ca7; background: rgba(239, 100, 114, .08); }
.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 #303d4e;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #141b25, #101722);
  box-shadow: none;
}
.dashboard-hero::before, .dashboard-hero::after { display: none; }
.dashboard-hero .page-header { margin-bottom: 26px; }
.dashboard-hero .muted { color: #b2bdca; }
.dashboard-hero .metric-grid { border: 0; background: transparent; }
.dashboard-hero .metric-card { min-height: 104px; border: 1px solid #303c4c; background: #0f151e; }
.dashboard-metrics .metric-card:last-child strong { color: #75dca9; }
.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: #52647a; background: var(--surface-2); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.airline-badge { color: #d9ebff; background: #174f86; box-shadow: inset 0 0 0 1px #377cbf; }
.workspace-row .compact-stats { border-color: var(--line); background: #0f141c; }
.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:
    radial-gradient(circle at 92% 5%, rgba(58, 151, 247, .2), transparent 34%),
    linear-gradient(135deg, #13253a 0%, #101a28 58%, #111821 100%);
}
.dashboard-welcome::after {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -160px;
  bottom: -185px;
  border: 44px solid rgba(76, 164, 255, .08);
  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: #bdc9d7; 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 rgba(84, 151, 219, .36);
  border-radius: 10px;
  background: rgba(5, 14, 25, .36);
}
.guidance-number {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.dashboard-guidance div { display: grid; gap: 2px; }
.dashboard-guidance small { color: #89a5c2; 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 rgba(57, 198, 138, .32);
  border-radius: 999px;
  color: #78dfad;
  background: rgba(57, 198, 138, .06);
  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: #0e131a;
  transition: border-color .16s ease, background .16s ease;
}
.dashboard-status-list > a:hover { border-color: #4c6480; background: #151d27; }
.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: #0e141c; }
.workspace-entity-links a:hover { background: #172333; }
.workspace-entity-links span { color: #8ca0b8; 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 rgba(242, 184, 75, .3); border-radius: 9px; background: rgba(242, 184, 75, .05); }
.dashboard-active-job > span:first-child { color: #e8d4a5; }
.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: #0e131a; }
.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: #fff; background: #194f85; 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: #0e131a;
}
.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: #fff; background: #163f69; }
.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: #17283a; font-size: 12px; font-weight: 800; }
.workflow-rail > a.active > span { color: #fff; 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: #536174; background: var(--surface-2); }
.entity-tabs a.active { color: #fff; border-color: #3e83c8; background: #163f69; }
.entity-tabs span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 6px; color: var(--blue-2); background: #0d151f; font-size: 10px; }
.entity-tabs a.active span { color: #fff; background: #287fd3; }

/* 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: #3e83c8; background: #152b43; }
.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: #506073; background: var(--surface-2); }
.entity-row.featured { box-shadow: inset 3px 0 var(--blue); }
.entity-icon { color: var(--blue-2); background: #17283a; }
.utility-panel { border-color: var(--line); background: var(--surface); }
.next-action-card { border-color: #3a78b7; background: linear-gradient(115deg, #142234, 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: #566579; }
.source-tab.active { color: #fff; border-color: #4b91d7; background: #152a41; }
.source-tab.source-vamsys.active { border-color: var(--purple); background: rgba(163, 139, 244, .1); }
.source-tab.source-fr24.active { border-color: var(--cyan); background: rgba(53, 199, 193, .09); }
.source-tab.source-manual.active { border-color: #8290a2; background: #202733; }
.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: #0f141b; }
.filter-chip:hover { color: var(--text); border-color: #536174; }
.filter-chip.active { color: #fff; border-color: #4a93df; background: #174b7c; }
.filter-chip.changed.active { border-color: var(--amber); background: rgba(242, 184, 75, .12); }
.filter-chip.new.active { border-color: var(--cyan); background: rgba(53, 199, 193, .1); }
.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 #394657; color: #b9c3d0; background: #1a222d; 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: #171f2a; }
.record-row.state-current { box-shadow: inset 3px 0 var(--green); }
.record-row.state-changed { box-shadow: inset 3px 0 var(--amber); }
.record-row.state-new { box-shadow: inset 3px 0 var(--cyan); }
.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: -12px 0 20px -20px #000; }
.record-actions .button { white-space: nowrap; }
.cell-subline { display: block; margin-top: 4px; color: var(--muted-2); }
.carrier-chip { color: #c6baff; background: rgba(163, 139, 244, .12); }
.fleet-pill-list > span { border: 1px solid rgba(53, 199, 193, .35); color: #83e4df; background: rgba(53, 199, 193, .07); }
.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: rgba(3, 6, 10, .76); backdrop-filter: blur(4px); }
.route-editor-dialog, .comparison-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid #405066; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-dialog); }
.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: #0e1218; }
.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: #0e141c; }
.checkbox-grid label:hover { border-color: #536174; }
.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: #d4c6ff; }.field-change-list .after { color: #83e4bf; }

/* 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: #fff; background: #246cae; }
.rule-workshop { gap: 16px; }
.rule-primary-card { border-color: #3e5f80; background: var(--surface); }
.rule-sentence, .rule-conditions, .advanced-rule-options, .advanced-rule-panel { border-color: var(--line); background: #0f141b; }
.rule-sentence > span, .rule-sentence > b { color: var(--cyan); }
.target-fleet-picker { border-color: var(--line); }
.rule-import-card { gap: 24px; border-color: #3b4b5f; 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: #17283a; }
.alias-edit-form { gap: 8px; }

/* Jobs, system and utilities */
.global-job-dock { border-color: #335d89; background: #111c29; }
.progress-track { background: #0b1119; }
.progress-track > span { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.list-card { background: var(--surface); }
.event-log { border-color: var(--line); background: #0d1117; }
.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 rgba(53,199,193,.45); border-left: 4px solid var(--cyan); border-radius: 10px; background: rgba(53,199,193,.07); }
.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: #06191a; 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 #3e83c8; border-radius: 10px; background: #132338; box-shadow: 0 10px 26px rgba(0,0,0,.24); }
.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: #83e4bf; border-color: rgba(67,211,158,.45); }
.decision-state.keep, .decision-state.reject { color: #d7c8ff; border-color: rgba(163,139,244,.45); }
.proposal-caption { display: flex; gap: 9px; align-items: center; margin: 12px 0 8px; }
.proposal-caption span { padding: 4px 7px; border-radius: 5px; color: #062021; background: var(--cyan); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.proposal-caption strong { color: #8be8e3; 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: #92ece8; background: rgba(53,199,193,.12); }
.source-first-diff .source-value { color: #83e4df; background: rgba(53,199,193,.06); }
.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: rgba(239, 100, 114, .35); background: rgba(239, 100, 114, .04); }
.action-menu > div { border-color: var(--line); background: var(--surface-elevated); box-shadow: var(--shadow-dialog); }
.action-menu > div > *:hover { background: #324052; }
.language-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #0d1219; }
.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: #061923; 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: #0e141c; }
.help-step-grid article > span { display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 11px; border-radius: 50%; color: #061923; 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 #a38bf4; }
.help-definition-grid .source-working { border-top: 3px solid #43d39e; }
.help-callout { margin-top: 10px; padding: 14px 16px; border-left: 3px solid var(--blue); border-radius: 6px; background: #101a26; }
.help-callout strong { display: block; margin-bottom: 4px; }

/* Login */
.login-page { background: #0b0e13; }
.login-shell { border-color: #303b49; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.login-brand { background: linear-gradient(145deg, #0e2844, #111822); }
.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: #9fd0ff; }
.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: #9be3bf; }
.source-freshness > span { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(57,198,138,.12); }
.source-freshness.missing { color: #f6c66a; }
.source-freshness.missing > span { background: var(--amber); box-shadow: 0 0 0 4px rgba(242,184,75,.12); }
.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 #376c9f;
  border-radius: 9px;
  background: #122238;
}
.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: #ffd27c; 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 #344252;
  border-radius: 11px;
  background: #0e151e;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.fr24-count-grid a:hover { border-color: #4d98df; background: #132337; transform: translateY(-1px); }
.fr24-count-grid span { color: #c5d0dc; 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: #56728f; 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: #10161e;
}
.status-switcher a:hover, .status-switcher a.active { color: #fff; background: #19222d; }
.status-switcher a b { font-size: 19px; }
.status-switcher .all { border-top-color: #758396; }
.status-switcher .current { border-top-color: var(--green); }
.status-switcher .new { border-top-color: #37bdf1; }
.status-switcher .changed { border-top-color: var(--amber); }
.status-switcher .outdated { border-top-color: var(--red); }
.status-switcher .check { border-top-color: #ff8b4c; }
.status-switcher .protected { border-top-color: var(--purple); }
.status-switcher .current.active { border-color: var(--green); background: rgba(57,198,138,.11); }
.status-switcher .new.active { border-color: #37bdf1; background: rgba(55,189,241,.11); }
.status-switcher .changed.active { border-color: var(--amber); background: rgba(242,184,75,.11); }
.status-switcher .outdated.active { border-color: var(--red); background: rgba(239,100,114,.11); }
.status-switcher .check.active { border-color: #ff8b4c; background: rgba(255,139,76,.11); }
.status-switcher .protected.active { border-color: var(--purple); background: rgba(163,139,244,.11); }

.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: var(--shadow-dialog); }
.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 #3a6d9f;
  border-radius: 10px;
  background: #122136;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}
.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: inset 4px 0 var(--green); }
.decision-table .record-row.state-new { box-shadow: inset 4px 0 #37bdf1; }
.decision-table .record-row.state-changed { box-shadow: inset 4px 0 var(--amber); }
.decision-table .record-row.state-outdated { box-shadow: inset 4px 0 var(--red); }
.decision-table .record-row.state-check { box-shadow: inset 4px 0 #ff8b4c; }
.decision-table .record-row.state-protected { box-shadow: inset 4px 0 var(--purple); }
.status-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #cbd4df;
  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: #68dca8; }
.status-label.new { color: #55caf6; }
.status-label.changed { color: #f7c666; }
.status-label.outdated { color: #ff8591; }
.status-label.check { color: #ffa16e; }
.status-label.protected { color: #b5a3ff; }
.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: #6c8198; }
.fleet-summary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr24-flight-link {
  color: var(--color-info, #64b5ff);
  text-decoration: none;
  text-underline-offset: 3px;
}
.fr24-flight-link:hover,
.fr24-flight-link:focus-visible {
  color: #9bd1ff;
  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: #101720; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.diff-row > span { overflow-wrap: anywhere; }
.diff-row.conflict { background: rgba(255,139,76,.07); }
.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: rgba(76, 145, 216, .07); }
.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 rgba(42, 201, 140, .45); border-radius: 10px; background: rgba(42, 201, 140, .08); }
.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: inset 3px 0 var(--red); }
.record-row.state-check { box-shadow: inset 3px 0 #ff8b4c; }
.record-row.state-protected { box-shadow: inset 3px 0 var(--purple); }
.filter-chip.outdated.active { border-color: var(--red); background: rgba(239,100,114,.13); }
.filter-chip.check.active { border-color: #ff8b4c; background: rgba(255,139,76,.13); }
.status-badge.outdated { border-color: rgba(239,100,114,.52); color: #ff8d98; background: rgba(239,100,114,.1); }
.status-badge.check { border-color: rgba(255,139,76,.52); color: #ffad7f; background: rgba(255,139,76,.1); }
.status-badge.protected { border-color: rgba(163,139,244,.52); color: #bcadff; background: rgba(163,139,244,.1); }
.empty-comparison-state { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid #42668a; border-radius: 11px; background: #121e2b; }
.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: #061923; 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: #0e151d; cursor: pointer; }
.publish-scope label.create { border-top-color: #37bdf1; }
.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:
    radial-gradient(circle at 15% -10%, rgba(37, 136, 247, .13), transparent 30rem),
    radial-gradient(circle at 95% 15%, rgba(53, 199, 193, .05), transparent 28rem),
    var(--navy-950);
}
.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 #2a394b;
  background: rgba(11, 18, 29, .94);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .2);
  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: #365f89; background: #0c1724; box-shadow: 0 0 22px rgba(37, 136, 247, .18); }
.brand-copy strong { color: #fff; font-size: 22px; }
.brand-copy small { color: #8fa3ba; font-size: 10px; }
.primary-nav {
  display: flex;
  grid-column: 2;
  gap: 5px;
  justify-content: center;
  padding: 5px;
  border: 1px solid #2a394a;
  border-radius: 12px;
  background: #0d1622;
}
.primary-nav a {
  position: relative;
  min-width: 98px;
  padding: 10px 15px;
  border-radius: 8px;
  color: #aebdcc;
  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: #fff; background: #172536; }
.primary-nav a.active { color: #fff; background: #1b568f; box-shadow: inset 0 0 0 1px #3279ba, 0 6px 18px rgba(16, 85, 151, .22); }
.topbar-actions { grid-column: 3; justify-self: end; margin-left: 0; }
.language-switch { border-color: #314155; background: #111b28; }
.user-menu summary { min-height: 44px; padding: 4px 4px 4px 10px; border-radius: 999px; }
.user-menu summary:hover { background: #172435; }
.avatar { color: #e4f2ff; border-color: #417cb6; background: #17304a; }
.user-menu-panel {
  display: grid;
  position: absolute;
  z-index: 50;
  top: 54px;
  right: 0;
  width: 230px;
  padding: 8px;
  border: 1px solid #35465a;
  border-radius: 12px;
  background: #152131;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
}
.user-menu-identity { display: grid; gap: 2px; margin-bottom: 5px; padding: 11px 12px 13px; border-bottom: 1px solid #2b3a4c; }
.user-menu-identity small { color: #8ea2b9; 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: #cfdae6; 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: #fff; background: #213247; }
.user-menu-panel form { position: static; min-width: 0; margin-top: 4px; padding: 4px 0 0; border: 0; border-top: 1px solid #2b3a4c; border-radius: 0; background: transparent; box-shadow: none; }
.menu-count { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; color: #221600; 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 #355a7d;
  border-radius: 20px;
  background:
    linear-gradient(110deg, rgba(28, 65, 101, .96) 0%, rgba(18, 42, 67, .96) 55%, rgba(13, 27, 43, .98) 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}
.welcome-panel::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(78, 169, 255, .07), transparent 45%); 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: #c5d5e5; 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: #8db4d8; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.welcome-facts dd { margin: 0; color: #fff; 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 rgba(121, 187, 247, .16); border-radius: 50%; content: ""; }
.welcome-brand span { width: min(21vw, 260px); border-color: rgba(121, 187, 247, .25); }
.welcome-brand img { position: relative; z-index: 1; width: min(13vw, 154px); aspect-ratio: 1; border: 2px solid rgba(184, 220, 255, .34); border-radius: 50%; object-fit: cover; box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 0 50px rgba(37, 136, 247, .16); }
.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 rgba(242,184,75,.35); border-radius: 999px; color: #f4cf83; background: rgba(242,184,75,.07); font-size: 13px; font-weight: 750; }
.launch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 22px); }
.launch-card {
  display: grid;
  position: relative;
  min-height: 196px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px 14px;
  align-items: start;
  padding: clamp(22px, 2.2vw, 32px);
  overflow: hidden;
  border: 1px solid #34465a;
  border-top: 3px solid var(--card-accent, var(--blue));
  border-radius: 16px;
  background: linear-gradient(145deg, #182536, #121c29);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .17);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.launch-card::after { position: absolute; width: 130px; height: 130px; right: -74px; bottom: -84px; border: 24px solid color-mix(in srgb, var(--card-accent) 12%, transparent); border-radius: 50%; content: ""; }
.launch-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--card-accent) 70%, #405269); background: linear-gradient(145deg, #1c2c40, #152334); box-shadow: 0 22px 50px rgba(0, 0, 0, .26); }
.launch-card.capture { --card-accent: var(--cyan); }
.launch-card.airlines { --card-accent: var(--blue); }
.launch-card.export { --card-accent: var(--purple); }
.launch-card.settings { --card-accent: var(--amber); }
.launch-icon { display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid color-mix(in srgb, var(--card-accent) 48%, transparent); border-radius: 14px; color: color-mix(in srgb, var(--card-accent) 82%, white); background: color-mix(in srgb, var(--card-accent) 12%, transparent); font-size: 27px; font-weight: 500; }
.launch-card > span:nth-child(2) { display: grid; grid-column: 1 / -1; gap: 7px; align-self: end; }
.launch-card strong { color: #fff; font-family: "Lufthansa Head", sans-serif; font-size: 23px; }
.launch-card small { color: #9fb0c3; font-size: 14px; line-height: 1.45; }
.launch-card > b { position: relative; z-index: 1; grid-column: 2; grid-row: 1; align-self: center; color: color-mix(in srgb, var(--card-accent) 75%, white); font-size: 24px; }

/* 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 #324458; border-radius: 18px; background: linear-gradient(125deg, #17283b, #111b28); }
.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: #70cbc8; background: rgba(53,199,193,.08); }
.page-accent.export { color: #b9a9ff; background: rgba(163,139,244,.08); }
.page-accent.settings { color: #f5c868; background: rgba(242,184,75,.08); }
.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 #314155; border-radius: 13px; background: #141f2d; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.gateway-card:hover { transform: translateY(-2px); border-color: #5484b1; background: #19283a; }
.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: #97a9bc; }
.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: #67d8a3; background: rgba(57,198,138,.06); }
.semantic-state.warning { color: #f5c766; background: rgba(242,184,75,.06); }
.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 #314155; border-radius: 15px; background: #141f2d; }
.settings-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 13px; color: var(--blue-2); background: #1a3550; font-size: 24px; }
.settings-card h2 { margin-bottom: 6px; font-size: 21px; }
.settings-card p { color: #98aabd; }
.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: #3a4b5f;
    background: #111c2a;
    box-shadow: 0 24px 50px rgba(0,0,0,.42);
  }
  .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; }
  .launch-card { min-height: 132px; padding: 20px; }
  .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; }
  .launch-icon { width: 48px; height: 48px; }
  .launch-card strong { font-size: 20px; }
}

/* 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 #355675;
  border-radius: 18px;
  background: linear-gradient(115deg, #1b3f61, #142b43 62%, #101d2b);
  box-shadow: 0 20px 55px rgba(0,0,0,.2);
}
.capture-masthead h1 { margin-bottom: 8px; font-size: clamp(36px, 3.4vw, 52px); }
.capture-masthead p:not(.eyebrow) { margin: 0; color: #bdd0e3; font-size: 16px; }
.capture-masthead img { width: 88px; height: 88px; border: 1px solid #497ba7; border-radius: 50%; object-fit: cover; box-shadow: 0 14px 38px rgba(0,0,0,.28), 0 0 32px rgba(37,136,247,.15); }
.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 #33465a;
  border-radius: 16px;
  background: linear-gradient(145deg, #172536, #121c29);
  box-shadow: 0 16px 42px rgba(0,0,0,.16);
}
.capture-column legend {
  display: flex;
  width: auto;
  gap: 10px;
  align-items: center;
  padding: 0 8px 0 0;
  color: #dce8f4;
  font-family: "Lufthansa Head", sans-serif;
  font-weight: 800;
}
.capture-column legend > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #fff; background: #246aab; font-family: "Lufthansa Text", sans-serif; font-size: 12px; }
.capture-column legend small { font-size: 18px; }
.column-intro { min-height: 45px; margin: 8px 0 18px; color: #99adbf; 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 #35485d;
  border-radius: 12px;
  background: #111c29;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.capture-choice:hover { transform: translateY(-1px); border-color: #527598; background: #172536; }
.capture-choice:has(input:checked) { border-color: #3e91df; background: linear-gradient(135deg, rgba(35,105,171,.27), rgba(18,33,49,.98)); box-shadow: inset 0 0 0 1px rgba(74,159,240,.18); }
.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: #98aabd; font-size: 12px; line-height: 1.42; }
.capture-choice em { width: max-content; margin-top: 3px; padding: 3px 6px; border-radius: 5px; color: #8bc8ff; background: rgba(37,136,247,.13); 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 #365b7e; border-radius: 11px; color: #88c4fb; background: #142b41; font-size: 17px; font-weight: 850; }
.capture-choice:has(input:checked) .choice-marker { color: #fff; border-color: #4e9ee8; background: #2268a8; }
.choice-marker.observed { color: #62d3ce; border-color: #34716f; background: rgba(53,199,193,.09); }
.choice-marker.generated { color: #c4b5ff; border-color: #645b8d; background: rgba(163,139,244,.09); }
.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: #b6c9d9; background: rgba(53,199,193,.06); 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: rgba(242,184,75,.06); }
.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: #aebed0; font-size: 12px; font-weight: 750; }
.capture-code-grid input, .capture-airline-name input, .capture-speed-label select { min-height: 44px; border-color: #354a61; background: #0d1723; }
.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: #90a3b6; 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: #b8cadd; background: #101b28; font-size: 12px; line-height: 1.45; }
.capture-setting-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #2b3c4f; }
.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: #90a3b6; 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 #365675;
  border-radius: 14px;
  background: linear-gradient(110deg, #152b40, #111d2b);
}
.capture-console-footer > div { display: grid; gap: 4px; }
.capture-console-footer small { color: #98abbd; }
.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 #33485d;
  border-radius: 12px;
  background: #0d1723;
}
.fleet-capture-summary > div { display: grid; gap: 6px; min-width: 0; padding: 16px 18px; }
.fleet-capture-summary > div + div { border-left: 1px solid #33485d; }
.fleet-capture-summary span { color: #8fa5ba; 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 #33485d; border-radius: 11px; background: #111c29; }
.fleet-capture-form .check-row span { display: grid; gap: 3px; }
.fleet-capture-form .check-row small { color: #93a8bb; 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 #33485d; 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: #3e668d; background: linear-gradient(145deg, #14263a 0%, #0d1722 72%); }
.airline-tile-shell.composition .airline-tile::before { background: linear-gradient(90deg, #9d83ee, #45d5ce); }
.airline-tile {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  min-height: 240px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #314256;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(145deg, #121d2a 0%, #0d141d 72%);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.airline-tile::before { position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), #45d5ce); content: ""; }
.airline-tile:hover { border-color: #4f89c2; transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0,0,0,.24); }
.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 #3a6388; border-radius: 999px; color: #8fc9ff; background: rgba(42,139,229,.08); font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.workspace-kind-badge.composition { border-color: #755fbd; color: #c7b7ff; background: rgba(157,131,238,.09); }
.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: rgba(4,10,18,.35); }
.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 #35495f; border-radius: 999px; color: var(--muted); background: rgba(5,12,20,.38); font-size: 11px; }
.composition-source-chips b { color: #c7b7ff; }
.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 #3b4d61; border-radius: 8px; color: #c8d6e5; background: rgba(10,17,25,.94); font-weight: 900; cursor: pointer; list-style: none; }
.airline-tile-management > summary::-webkit-details-marker { display: none; }
.airline-tile-management[open] > summary { border-color: #5b93c8; color: #9fd1ff; }
.airline-management-menu { position: absolute; top: 38px; right: 0; display: grid; width: min(310px, calc(100vw - 42px)); gap: 12px; padding: 15px; border: 1px solid #38516a; border-radius: 11px; background: #111b27; box-shadow: 0 18px 42px rgba(0,0,0,.48); }
.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; }
.composition-create-panel { position: relative; }
.composition-create-panel > summary { list-style: none; }
.composition-create-panel > summary::-webkit-details-marker { display: none; }
.composition-create-panel form { position: absolute; z-index: 8; top: calc(100% + 8px); right: 0; display: grid; width: min(360px, calc(100vw - 42px)); gap: 10px; padding: 16px; border: 1px solid #38516a; border-radius: 11px; background: #111b27; box-shadow: 0 18px 42px rgba(0,0,0,.48); }
.composition-create-panel label { display: grid; gap: 6px; color: #d6e0eb; font-size: 12px; font-weight: 750; }
.composition-create-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.airline-workspace-bar { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #0e141c; }
.airline-workspace-bar .workspace-identity { min-width: 300px; }
.airline-workspace-bar .workspace-primary-nav { flex: 1; justify-content: flex-end; max-width: 690px; padding: 5px; background: #090e14; }
.airline-workspace-bar .workspace-primary-nav a { flex: 1 1 135px; min-width: 120px; padding: 11px 18px; font-size: 15px; font-weight: 800; }
.airline-workspace-bar .workspace-primary-nav a.active { background: #164f87; box-shadow: inset 0 -2px #75bdff; }
.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: #8fc9ff; }

.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 #346b9e; border-radius: 10px; background: rgba(13,26,40,.96); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.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: #101821; }
.import-method-card.api { border-top: 3px solid #46a8ff; }
.import-method-card.csv { border-top: 3px solid #43cbb7; }
.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 #39678e; border-radius: 10px; color: #8ac8ff; background: #102b43; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.import-method-card.csv .method-icon { border-color: #347668; color: #76e2cf; background: #0d2b27; }
.method-state { padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.method-state.warning { color: #ffd37c; background: rgba(242,184,75,.1); }
.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: #0a1017; }
.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: #0a1017; }

@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: #82c8ff; 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 #334b64; border-radius: 16px; background: linear-gradient(145deg, #172536, #111b27); box-shadow: 0 16px 42px rgba(0,0,0,.16); }
.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(#38c9c3 0 calc(var(--progress) * 1%), #287fd0 calc(var(--progress) * 1%) calc(var(--progress) * 1%), #26384b calc(var(--progress) * 1%) 100%); box-shadow: 0 0 42px rgba(41,139,226,.12); transition: background .5s ease; }
.capture-progress-ring::before { position: absolute; inset: 13px; border: 1px solid #354a60; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1a3045, #0e1824 72%); content: ""; }
.capture-progress-ring > div { display: grid; z-index: 1; gap: 2px; place-items: center; }
.capture-progress-ring strong { color: #fff; font-size: 45px; line-height: 1; letter-spacing: -.05em; }
.capture-progress-ring span { color: #8fa8bd; 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 #2c4054; text-align: center; }
.capture-time-block > span { color: #8fa3b7; font-size: 12px; }
.capture-time-block > strong { color: #e4eef8; font-size: 18px; }
.capture-time-block small { color: #7f95aa; }
.capture-time-block b { color: #a8bed2; }
.capture-job-state { display: flex; min-height: 52px; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid currentColor; border-radius: 12px; color: #67d8a3; background: rgba(57,198,138,.07); 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: 0 0 0 5px color-mix(in srgb, currentColor 13%, transparent); }
.capture-job-state.waiting, .capture-job-state.paused { color: #f5c766; background: rgba(242,184,75,.07); }
.capture-job-state.interrupted, .capture-job-state.failed { color: #ff7f8b; background: rgba(255,99,116,.07); }
.capture-job-state.complete { color: #67d8a3; }
.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: #8196a9; 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 #334b64; border-radius: 16px; background: linear-gradient(145deg, #152333, #0e1722); box-shadow: 0 16px 42px rgba(0,0,0,.16); }
.capture-live-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 23px 26px 18px; border-bottom: 1px solid #2a3d51; }
.capture-live-head h2 { margin: 3px 0 5px; font-size: 26px; }
.capture-live-head p:not(.eyebrow) { margin: 0; color: #91a6b9; font-size: 13px; }
.capture-live-indicator { display: inline-flex; flex: 0 0 auto; gap: 9px; align-items: center; padding: 8px 11px; border: 1px solid rgba(53,199,193,.28); border-radius: 999px; color: #61d3cf; background: rgba(53,199,193,.06); 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 #2a3d51; background: rgba(28,53,78,.38); }
.capture-current-work > div { display: grid; min-width: 0; gap: 4px; padding: 16px 24px; border-right: 1px solid #2a3d51; }
.capture-current-work span, .capture-current-work small { color: #8ea3b7; font-size: 11px; }
.capture-current-work strong { overflow: hidden; color: #e8f1fa; 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 #2a3d51; 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: #09121d; 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 #1c2b3b; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.capture-log-row:hover { background: #0e1c2a; }
.capture-log-row time { padding-top: 3px; color: #60778d; }
.capture-log-tag { overflow: hidden; padding: 3px 7px; border: 1px solid #315071; border-radius: 5px; color: #85bff4; background: rgba(37,136,247,.08); 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: #cedbea; font-weight: 700; overflow-wrap: anywhere; }
.capture-log-row small { color: #73899e; line-height: 1.45; }
.capture-log-row.source .capture-log-tag { border-color: #286d69; color: #62d3ce; background: rgba(53,199,193,.06); }
.capture-log-row.warning .capture-log-tag { border-color: #7d632d; color: #f5c766; background: rgba(242,184,75,.06); }
.capture-log-row.error .capture-log-tag { border-color: #84404a; color: #ff8c97; background: rgba(255,99,116,.06); }
.capture-log-empty { display: grid; min-height: 260px; place-items: center; padding: 30px; color: #71869a; text-align: center; }
.capture-source-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid #2a3d51; background: #101c28; }
.capture-source-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; border-right: 1px solid #283b4e; }
.capture-source-summary span { color: #8298ac; font-size: 11px; }
.capture-source-summary strong { font-size: 19px; }
.capture-source-summary .live strong { color: #62d3ce; }
.capture-source-summary .cache strong { color: #82c8ff; }
.capture-source-summary .fallback strong { color: #f5c766; }
.capture-source-summary .failed strong { color: #ff7f8b; }
.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 #2a3d51; }
  .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: #68d9ae; 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 #2b3948;
  border-radius: 10px;
  background: #0d141d;
}
.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 #263442; border-radius: 0; }
.route-status-bar a:hover { color: #fff; background: #151f2a; }
.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: #fff;
  background: #1a2633;
  box-shadow: inset 0 -2px var(--status-accent);
}
.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: 0 0 0 3px color-mix(in srgb, var(--status-accent) 14%, transparent); }
.route-status-bar a b { display: grid; min-width: 25px; height: 25px; place-items: center; padding: 0 6px; border: 1px solid #334456; border-radius: 13px; color: #d9e7f5; background: #111a24; 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 #30445a;
  border-radius: 9px;
  background: #111a25;
}
.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 #30445a; }
.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: 10%; }
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 .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: #c2d3e4; white-space: nowrap; }
.route-times span { margin: 0 5px; color: #567590; }
.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 #30445a; 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 #2d3a49;
  border-radius: 11px;
  background: #0e151e;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .13);
}
.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 #344354;
  background: #111923;
  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: #fff; background: color-mix(in srgb, var(--tab-accent) 15%, #111923); }
.workbook-primary-tabs a.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--tab-accent) 42%, #344354);
  background: color-mix(in srgb, var(--tab-accent) 18%, #15202c);
  box-shadow: inset 0 3px var(--tab-accent);
}
.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 #394b5e;
  border-radius: 999px;
  color: #dbe7f3;
  background: #111922;
  font-size: 11px;
}
.workbook-primary-tabs a b { border-color: color-mix(in srgb, var(--tab-accent) 45%, #394b5e); color: color-mix(in srgb, var(--tab-accent) 78%, white); background: color-mix(in srgb, var(--tab-accent) 9%, #111922); }
.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 #344354;
  border-radius: 7px;
  color: var(--muted);
  background: #0e151e;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.workbook-status-more > summary.active { color: #fff; border-color: #477aaa; background: #17283a; }
.workbook-status-more > summary i { color: #74879a; 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 #3a4a5c;
  border-radius: 9px;
  background: #17212d;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
}
.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: #fff; background: #233246; }
.comparison-table-frame .route-search-toolbar,
.comparison-table-frame .reference-search-toolbar {
  min-height: 59px;
  margin: 0;
  padding: 9px 11px;
  border-bottom: 1px solid #2d3a49;
  background: #0d141c;
}
.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 #2d3a49; 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", "Lufthansa Text", 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: #8fc9ff; 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: #101721; transition: border-color .16s ease, transform .16s ease; }
.export-airline-card:hover { border-color: #4775a8; 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: #101721; }
.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: 0 0 0 8px var(--surface); 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 #344150; border-radius: 10px; background: #0b1017; }
.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: #fff; background: #215f9c; box-shadow: 0 3px 12px rgba(0,0,0,.22); }
.export-method-tabs button.active small { color: #cfe8ff; }
.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: 0 0 0 4px rgba(57,198,138,.1); }
.export-method-note.csv i { background: var(--blue); box-shadow: 0 0 0 4px rgba(37,136,247,.1); }
.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: #0e151e; }
.export-entity-button:hover { border-color: #3f6893; background: #111d2a; }
.export-entity-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #31577e; border-radius: 8px; color: #8fc9ff; background: #10263b; 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: #6f8094; 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: #0c1219; }
.export-control-panel > footer span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.export-control-panel > footer strong { color: #c4cfdd; 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: linear-gradient(105deg,#172638,#111820 70%); }
.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: #263241; }
.export-live-progress > div span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--cyan)); }
.export-live-progress strong { color: var(--blue-2); }
.export-log-stream { min-height: 330px; max-height: 470px; overflow: auto; flex: 1; background: #0b1118; }
.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: #101923; }
.export-history-row > span:nth-child(2) { display: grid; gap: 3px; }
.export-history-row small { color: var(--muted); }
.export-history-row b { color: #718198; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #778293; }
.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: 0 0 0 4px rgba(37,136,247,.12); }
.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: #517aa4; font-size: 34px; }
.export-log-empty strong { color: #dbe5f0; 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: #101923; }
.export-log-footer strong { color: #fff; }
.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 #425369; border-radius: 15px; color: var(--text); background: #101720; box-shadow: var(--shadow-dialog); }
.export-scope-dialog::backdrop { background: rgba(2,6,11,.78); 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: #172230; }
.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: #0d141d; }
.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: #0d141d; }
.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: #121b26; }
.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: #c7d3e1; 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: #0b121a; }
.export-scope-form fieldset > label.create { border-top-color: #37bdf1; }
.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: #fff; }
.export-confirmation input { width: 100%; }
.export-safety-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid #285d50; border-radius: 8px; background: #0c211d; }
.export-safety-note > span { color: #60ddb7; font-size: 17px; }
.export-safety-note p { display: grid; gap: 2px; }
.export-safety-note small { color: #9dbdb5; }
.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 #31577e; border-radius: 10px; color: #8fc9ff; background: #10263b; 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: linear-gradient(105deg, #182434, #121923 72%); }
.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: #0b1017; }
.record-editor-context { min-width: 0; padding: 20px; border-right: 1px solid var(--line); background: #101822; }
.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: #e2ebf5; background: #151f2b; 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: #72859a; 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 #285d50; border-radius: 9px; background: rgba(41, 173, 128, .07); }
.record-editor-save-note > span { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; color: #092018; background: #62ddb4; font-weight: 900; }
.record-editor-save-note p { display: grid; gap: 3px; margin: 0; }
.record-editor-save-note small { color: #91b6ab; font-size: 11px; line-height: 1.35; }
.record-editor .editor-sections { display: grid; gap: 14px; padding: 20px; background: #0b1017; }
.record-editor .editor-sections fieldset { margin: 0; padding: 17px; overflow: visible; border-color: #2f3e50; border-radius: 10px; background: #111923; }
.record-editor .editor-sections legend { margin-left: 0; padding: 0 8px; color: #91caff; 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: #cbd5e1; 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: #7f91a5; 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 #324256; border-radius: 8px; background: #0c121a; }
.record-editor .choice-editor { margin-top: 14px; padding: 13px; border: 1px solid #2d3a49; border-radius: 9px; background: #0d141d; }
.record-editor .editor-danger-zone { align-items: center; justify-content: space-between; padding: 12px 20px; color: #a97780; background: #11161e; 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: #101721; }
.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 #2d3c4e; border-top: 3px solid var(--settings-accent); border-radius: 11px; color: var(--text); background: #111923; }
.settings-quick-card:hover { border-color: color-mix(in srgb, var(--settings-accent) 55%, #2d3c4e); background: #15202c; 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%, #101923); 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: #101721; }
.settings-api-link { padding: 9px 10px; color: #71cac8; 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 #32475e; border-radius: 14px; background: linear-gradient(110deg, #172b40, #111923); }
.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 #2d3d50; border-left: 3px solid var(--settings-accent); border-radius: 12px; color: var(--text); background: #111923; }
.airline-setting-card:hover:not(section) { border-color: color-mix(in srgb, var(--settings-accent) 55%, #2d3d50); background: #14202d; }
.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%, #101923); }
.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: #cbd5e1; 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: #b9aaff; }
.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 #2d3d50; border-top: 2px solid #46b9ec; border-radius: 10px; background: #111923; }
.fleet-assignment-overview article small { color: #8da9c7; 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: rgba(242,184,75,.045); }
.fleet-assignment-overview article.ready { border-top-color: #57d6a2; background: rgba(57,198,138,.045); }
.unresolved-code-list { display: grid; gap: 7px; padding: 10px; border: 1px solid rgba(242,184,75,.32); border-radius: 9px; background: rgba(242,184,75,.045); }
.unresolved-code-list > small { color: #f5c766; 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 rgba(242,184,75,.48); border-radius: 999px; color: #f8d884; background: #111923; font: 700 12px/1 var(--font-text); cursor: pointer; }
.unresolved-code-list button:hover, .unresolved-code-list button:focus-visible { border-color: #f5c766; background: rgba(242,184,75,.12); }

/* 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 #31516d; border-radius: 10px; background: #101d2a; }
.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 rgba(68,189,183,.38); border-radius: 8px; color: var(--text); background: rgba(68,189,183,.07); }
.active-rule-chips a:hover { border-color: var(--cyan); background: rgba(68,189,183,.12); }
.active-rule-chips strong { color: #8fe2dd; 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 #31516d; border-radius: 10px; background: #0d1823; }
.rule-builder-source { display: block; padding: 8px 10px 10px; border: 1px solid #2d455c; border-radius: 9px; background: #111e2b; }
.rule-builder-source legend, .target-fleet-picker legend { padding: 0 7px; color: #78d7d2; 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: #071d2a; background: var(--cyan); font-size: 20px; font-weight: 900; }
.target-fleet-picker { padding: 8px 10px 10px; border: 1px solid #2d455c; border-radius: 9px; background: #0b141e; }
.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 #365674; border-radius: 6px; color: #9dcbf5; background: #102237; font: 750 10px/1 var(--font-text); cursor: pointer; }
.fleet-picker-toolbar button:hover { border-color: var(--blue); color: white; }
.fleet-picker-toolbar span { min-width: 62px; color: var(--muted); font-size: 9px; text-align: right; }
.fleet-picker-toolbar b { color: #8fe2dd; }
.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: #839bb4; 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: #a9c7bb; background: rgba(57,198,138,.055); font-size: 11px; }
.fleet-combination-note span { color: #76dfba; font-weight: 900; }
.template-safety { display: flex; gap: 8px; align-items: center; margin-top: 11px; padding: 9px 10px; border-radius: 8px; color: #9be5c7; background: rgba(57,198,138,.07); }
.template-safety > span { font-weight: 900; }
.template-safety small { color: #a9c7bb; }
.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 #31516d; border-radius: 10px; background: #0d1721; 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 #284157; background: #132335; }
.fleet-rule-card > header p, .fleet-rule-card > header strong { margin: 0; }
.fleet-rule-card > header p { color: #8fc9ff; 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: #8fe2dd; background: rgba(68,189,183,.1); 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 #1d3448; }
.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: #7ed5d1; 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: linear-gradient(105deg,#172638,#111820 72%); }
.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: #9aaabc; background: rgba(154,170,188,.06); }
.api-console-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 19px 20px; }
.api-console-form label { display: grid; gap: 6px; color: #cbd6e2; 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 #31516d; border-radius: 9px; background: #101d2a; }
.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 #285d50; border-radius: 9px; background: #0d201d; }
.api-secret-note > span, .api-readonly-note > span { color: #61ddb6; 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: #91b6ab; 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: #0c1219; }
.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: #31516d; background: #101d2a; }
.api-readonly-note > span { color: #8fc9ff; }
.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: #0d141d; }
.api-contract-summary > div > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid #465467; border-radius: 50%; color: #7d8da0; font-size: 10px; font-weight: 850; }
.api-contract-summary > div.ready > span { border-color: #3cb98e; color: #76dfba; background: rgba(57,198,138,.08); }
.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: #101822; }
.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: #0b1118; }
.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: #101923; }
.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 #31516d; border-radius: 10px; background: #101d2a; }
.api-boundary-note > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #08213a; background: #7fc5ff; 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 #2f745f; border-radius: 10px; background: linear-gradient(105deg,#0d2821,#102029); }
.api-member-reuse-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #092118; background: #66d9b2; font-size: 18px; font-weight: 900; }
.api-member-reuse > div { display: grid; gap: 3px; }
.api-member-reuse small { color: #a8c8bc; 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: #718397; 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: linear-gradient(115deg,#121f2d,#101720 70%); }
.vamsys-baseline-card.api { border-color: #35688c; }
.vamsys-baseline-card.csv { align-items: stretch; flex-direction: column; border-color: #315e50; }
.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 #355675;
  border-radius: 18px;
  background: linear-gradient(115deg, #1b3f61, #142b43 62%, #101d2b);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.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: #bdd0e3; font-size: 15px; }
.management-masthead img { width: 78px; height: 78px; flex: 0 0 78px; border: 1px solid #497ba7; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 34px rgba(0,0,0,.25); }
.management-masthead.jobs { border-color: #356375; background: linear-gradient(115deg,#174457,#153144 62%,#101d2b); }
.management-masthead.help { border-color: #3a5679; background: linear-gradient(115deg,#1b4167,#182d48 62%,#101d2b); }
.management-masthead.system { border-color: #645838; background: linear-gradient(115deg,#4b3d1c,#282b29 62%,#111b27); }
.management-masthead.users { border-color: #4f4677; background: linear-gradient(115deg,#3a2f64,#232943 62%,#111b27); }
.management-masthead.audit { border-color: #315e50; background: linear-gradient(115deg,#174839,#17372f 62%,#101d26); }
.management-masthead.user-detail { min-height: 124px; border-color: #4f4677; background: linear-gradient(115deg,#342b59,#242a43 62%,#111b27); }
.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: #101721; }
.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: #63cec9; }
.management-summary-strip .finished strong { color: #67d8a3; }
.management-summary-strip .attention strong { color: #f3bd5d; }
.management-summary-strip form { display: flex; align-items: center; justify-content: flex-end; padding: 9px 12px; background: #101721; }
.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: linear-gradient(105deg,#172638,#111820 72%); }
.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: #0e151e; }
.management-list-row:last-child { border-bottom: 0; }
.management-list-row:hover { background: #121d29; }
.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: #718198; }
.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 #31577e; border-radius: 50%; color: #8fc9ff; background: #10263b; font-size: 20px; }
.management-empty strong { color: #dce7f2; 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: #33475c; background: rgba(16,24,34,.96); 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: #101721; }
.help-page-new .help-step-grid article, .help-page-new .help-definition-grid article { background: #0d141d; }

/* 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 #2e3d4f; border-top: 3px solid var(--health-accent); border-radius: 11px; background: #111923; }
.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: #e7eef7; 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: #0c1219; }
.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: #91a4b8; text-align: left; background: #182331; 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: #0f161f; }
.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: #0e151e; }
.users-page-new .user-account-row:last-child { border-bottom: 0; }
.users-page-new .user-account-row:hover { background: #14202d; }
.users-page-new .user-create-panel { padding: 0; }
.users-page-new .user-create-panel > summary { min-height: 76px; padding: 15px 18px; background: linear-gradient(105deg,#172638,#111820 72%); }
.users-page-new .user-create-panel > form { padding: 18px; }
.users-page-new .permission-airline, .user-edit-page-new .permission-airline { border-radius: 9px; background: #0d141d; }
.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 #2b6151; border-radius: 11px; background: #0d211c; }
.audit-safety-strip > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #092018; background: #62ddb4; font-weight: 900; }
.audit-safety-strip > div { display: grid; gap: 3px; }
.audit-safety-strip small { color: #94b9af; }
.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: #101721; }
.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%,#101721); 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%,#344354); background: color-mix(in srgb,var(--audit-accent) 16%,#111923); box-shadow: inset 0 3px var(--audit-accent); }
.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%,#394b5e); 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: #8fc9ff; 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; }
.composition-create-panel { position: relative; }
.composition-create-panel > summary { list-style: none; cursor: pointer; }
.composition-create-panel > summary::-webkit-details-marker { display: none; }
.composition-create-panel > form { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; display: grid; width: min(360px,calc(100vw - 36px)); gap: 10px; padding: 16px; border: 1px solid #3b5875; border-radius: 12px; background: #111b27; box-shadow: 0 20px 48px rgba(0,0,0,.42); }
.composition-create-panel label { display: grid; gap: 6px; color: #c8d6e5; font-weight: 800; }
.composition-create-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.airline-setting-card.composition { border-top-color: #55c9d4; background: linear-gradient(145deg,#102733,#111923 62%); }
.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 #356779; border-radius: 16px; background: linear-gradient(112deg,#17475b,#142d43 58%,#101a27); }
.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: #b8cede; }
.composition-total { display: grid; min-width: 118px; place-items: center; padding: 13px 18px; border: 1px solid #4e8292; border-radius: 12px; background: rgba(7,23,34,.48); }
.composition-total strong { color: #69d4da; font-size: 34px; }
.composition-total small { color: #a9c1d1; 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 #326657; border-radius: 11px; background: #0d211c; }
.composition-safety > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #082018; background: #65ddb6; font-weight: 900; }
.composition-safety > div { display: grid; gap: 3px; }
.composition-safety small { color: #9bbcaf; }
.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 #3d6d92; border-radius: 11px; color: var(--text); background: #102438; }
.composition-active-job > div { display: grid; gap: 2px; }
.composition-active-job small { color: #a9bed1; }
.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: #101721; }
.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: linear-gradient(105deg,#172638,#111820 72%); }
.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: #0e151e; }
.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 #3e7d69; border-radius: 50%; color: #63d7ab; background: #10271f; font-weight: 900; }
.composition-source-row.missing .source-state { border-color: #8a6634; color: #f1bd60; background: #2a2112; }
.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: #cbd8e5; }
.build-panel li:last-child { border-bottom: 0; }
.build-panel li span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #3e6f92; border-radius: 50%; color: #83c4f4; background: #10263a; 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: #d4ad69; }
.build-ready { color: #69d4ad; }
.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; }
  .composition-create-panel > summary, .airline-list-actions > .button { width: 100%; text-align: center; }
  .composition-create-panel > form { position: static; width: 100%; margin-top: 8px; }
  .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: #101923; }
.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: #182a3b; color: #cbdcea; 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: rgba(16, 34, 49, .45); }
.transfer-review td small { display: inline-block; margin-top: 5px; color: var(--muted); }
.transfer-review td a { color: #67d8cb; 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: #b2c8dc; }
.transfer-review details summary { cursor: pointer; color: #67d8cb; }
.transfer-review details p { padding: 6px 0; overflow-wrap: anywhere; }
.transfer-review .warning { border-left: 3px solid #eab45b; padding: 12px 16px; background: #2b2418; }
@media (max-width: 700px) { .transfer-review { padding: 16px 12px; } .transfer-review th, .transfer-review td { padding: 10px; } .transfer-review table { min-width: 600px; } }
