@font-face { font-family: "Lufthansa Text"; src: url("fonts/LufthansaText-Regular.d66ea3475853.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lufthansa Text"; src: url("fonts/LufthansaText-Light.7af60a889f36.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Lufthansa Text"; src: url("fonts/LufthansaText-Bold.cd5cf5da79e9.otf") format("opentype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Lufthansa Head"; src: url("fonts/LufthansaHead-Light.2786f7fddd83.otf") format("opentype"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Lufthansa Head"; src: url("fonts/LufthansaHead-Bold.e3df56b2595d.otf") format("opentype"); font-weight: 600 900; font-display: swap; }

:root {
  --bg: #080a0f;
  --surface: #11151d;
  --surface-2: #171c26;
  --surface-3: #202733;
  --surface-elevated: #252d3a;
  --line: #343d4c;
  --line-soft: #242b36;
  --text: #f4f7fb;
  --muted: #aeb9c9;
  --blue: #2588ff;
  --blue-2: #72b2ff;
  --cyan: #25d0c7;
  --green: #43d69b;
  --amber: #ffbf5b;
  --red: #ff6b7a;
  --purple: #a68aff;
  --topbar: 76px;
  --sidebar: 250px;
  font-family: "Lufthansa Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 80% -15%, rgba(37,136,255,.11) 0, transparent 30%), var(--bg); font-size: 16px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
small { font-size: 14px; line-height: 1.4; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template: var(--topbar) 1fr / var(--sidebar) 1fr; transition: grid-template-columns .2s ease; }
.app-shell.sidebar-collapsed { --sidebar: 76px; }
.topbar { position: sticky; z-index: 30; top: 0; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(10,16,27,.9); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(18px); }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { display: block; width: 64px; height: 64px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; object-fit: cover; box-shadow: 0 0 28px rgba(61,152,255,.28); }
.brand-mark.small { width: 44px; height: 44px; font-size: 21px; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.topbar-actions { display: flex; gap: 14px; align-items: center; }
.mobile-menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.role-pill { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue-2); background: rgba(61,152,255,.08); font-size: 14px; }
.user-menu { position: relative; }
.user-menu summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; font-weight: 700; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--blue); border-radius: 50%; background: var(--surface-2); }
.user-menu form { position: absolute; right: 0; top: 48px; min-width: 150px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); box-shadow: 0 16px 50px rgba(0,0,0,.4); }
.user-menu button { width: 100%; padding: 9px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.user-menu button:hover { background: var(--surface-3); }

.sidebar { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow: auto; padding: 16px 12px 30px; background: rgba(14,22,35,.95); border-right: 1px solid var(--line-soft); }
.sidebar-toggle, .sidebar nav a { display: flex; width: 100%; min-height: 44px; gap: 13px; align-items: center; padding: 10px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; white-space: nowrap; }
.sidebar-toggle { margin-bottom: 10px; border: 1px solid var(--line-soft); }
.sidebar nav a:hover { color: var(--text); background: var(--surface-2); }
.sidebar nav a.nav-sub { min-height: 38px; padding-top: 7px; padding-bottom: 7px; padding-left: 25px; font-size: 14px; }
.nav-icon { flex: 0 0 24px; color: var(--blue-2); font-size: 19px; text-align: center; }
.nav-count { display: inline-grid; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 6px; place-items: center; border-radius: 999px; color: #07111f; background: var(--amber); font-size: 13px; }
.nav-label { margin: 22px 13px 8px; color: #8495ad; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-empty { display: block; padding: 10px 13px; color: #8fa0b8; font-size: 14px; }
.sidebar-collapsed .sidebar span:not(.nav-icon), .sidebar-collapsed .sidebar .nav-label { display: none; }
.sidebar-collapsed .sidebar-toggle { justify-content: center; }

.content { min-width: 0; padding: 38px clamp(20px, 4vw, 58px) 80px; }
.global-job-dock { margin: -12px 0 28px; padding: 16px 18px; border: 1px solid rgba(255,191,91,.48); border-radius: 16px; background: linear-gradient(115deg, rgba(87,57,16,.28), rgba(17,26,41,.94)); box-shadow: 0 16px 42px rgba(0,0,0,.16); }
.global-job-heading { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; }.global-job-heading > div { display: grid; gap: 2px; }.global-job-heading small { color: #c8b995; }
.global-job-list { display: grid; gap: 8px; }.global-job-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 28%); gap: 24px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(6,13,23,.35); }.global-job-row:hover { border-color: var(--amber); }.global-job-row > div:first-child { display: grid; gap: 3px; }.global-job-row small { color: var(--muted); }.global-job-progress > span { display: block; color: var(--amber); font-weight: 900; text-align: right; }
.page-header { display: flex; min-height: 98px; align-items: flex-start; margin-bottom: 30px; }
.page-header.split { justify-content: space-between; gap: 24px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand-copy strong { font-family: "Lufthansa Head", "Lufthansa Text", sans-serif; }
h1 { margin-bottom: 9px; font-size: clamp(32px, 4vw, 52px); line-height: 1.03; letter-spacing: -.045em; }
h2 { margin-bottom: 8px; font-size: 26px; letter-spacing: -.025em; }
h3 { margin-bottom: 6px; }
.eyebrow { margin-bottom: 10px; color: var(--blue-2); font-size: 14px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.muted { max-width: 780px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.mono, code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.mono-wrap { overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.metric-grid.manifest-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { display: flex; min-height: 140px; flex-direction: column; justify-content: center; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(25,38,59,.95), rgba(15,25,40,.95)); box-shadow: 0 18px 44px rgba(0,0,0,.16); }
.metric-card.accent { border-color: rgba(61,152,255,.55); background: linear-gradient(145deg, rgba(25,75,122,.7), rgba(19,39,65,.95)); }
.metric-card span, .metric-card small { color: var(--muted); }
.metric-card strong { margin: 7px 0 4px; font-size: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 34px 0 18px; }
.workspace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.workspace-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(17,26,41,.88); }
.workspace-title { display: flex; gap: 14px; align-items: center; }
.workspace-title p, .dataset-note { margin: 0; color: var(--muted); font-size: 15px; }
.airline-badge { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, var(--blue), #215ca0); font-weight: 900; }
.status-line { display: flex; gap: 8px; align-items: center; margin: 22px 0; font-size: 15px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-dot.ok { background: var(--green); box-shadow: 0 0 11px var(--green); }
.status-dot.working { background: var(--amber); box-shadow: 0 0 11px var(--amber); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.compact-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 20px; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.compact-stats div { padding: 12px 8px; border-right: 1px solid var(--line-soft); text-align: center; }
.compact-stats div:last-child { border: 0; }
.compact-stats dt { color: var(--muted); font-size: 14px; text-transform: uppercase; }
.compact-stats dd { margin: 5px 0 0; font-weight: 800; }
.dataset-note { min-height: 36px; }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; font-weight: 750; }
.button:hover { filter: brightness(1.12); }
.button.primary { border-color: var(--blue); background: linear-gradient(135deg, #197de6, #4c9fff); }
.button.secondary { background: var(--surface-2); }
.button.success { border-color: #2c9f74; background: rgba(67,214,155,.14); color: #76e3b8; }
.button.danger { border-color: #9d3d4a; background: rgba(255,107,122,.12); color: #ff9ca6; }
.save-tools { display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }
.rule-preview { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(18,41,67,.72); }
.rule-preview strong { display: block; margin-bottom: 6px; font-size: 17px; }
.rule-preview p { margin: 5px 0; color: var(--muted); }
.rule-preview ul { margin: 10px 0 0; padding-left: 22px; color: var(--text); }
.rule-preview.warning { border-color: #a87632; background: rgba(168,118,50,.13); }
.rule-preview.error { border-color: #9d3d4a; color: #ffb5bd; }
.button.wide { width: 100%; margin-top: 18px; }

.rule-explainer { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 20px; }
.rule-explainer article { display: grid; grid-template-columns: 40px 1fr; gap: 12px; min-height: 84px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(17,26,41,.8); }
.rule-explainer article > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--blue); font-weight: 900; }
.rule-explainer article div { display: grid; gap: 3px; }.rule-explainer article small { color: var(--muted); }.rule-explainer > i { color: var(--blue-2); font-size: 23px; font-style: normal; }
.rule-workshop { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr); gap: 18px; align-items: start; }.rule-primary-card { border-color: rgba(61,152,255,.5); background: linear-gradient(150deg, rgba(24,60,99,.62), rgba(17,26,41,.92)); }.rule-intro { max-width: 780px; color: #c4d3e4; }.rule-side-stack { display: grid; gap: 18px; }
.rule-sentence { display: grid; grid-template-columns: auto minmax(0,1fr) auto minmax(0,1fr); gap: 12px; align-items: end; margin: 20px 0 15px; padding: 18px; border: 1px solid rgba(37,208,199,.35); border-radius: 13px; background: rgba(4,18,27,.42); }.rule-sentence > span, .rule-sentence > b { align-self: center; color: var(--cyan); font-size: 13px; letter-spacing: .08em; }.rule-sentence label, .rule-conditions label { display: grid; gap: 6px; }
.rule-conditions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }.rule-conditions small, .advanced-rule-options small { color: var(--muted); font-weight: 400; }
.advanced-rule-options { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }.advanced-rule-options summary { cursor: pointer; color: var(--blue-2); font-weight: 750; }.advanced-rule-options[open] summary { margin-bottom: 12px; }
.advanced-rule-panel { margin: 20px 0 6px; border: 1px solid var(--line); border-radius: 15px; background: rgba(17,26,41,.72); }.advanced-rule-panel > summary { display: grid; gap: 4px; padding: 18px 21px; cursor: pointer; }.advanced-rule-panel > summary span { color: var(--blue-2); font-size: 13px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.advanced-rule-panel > summary strong { font-size: 19px; }.advanced-rule-panel > summary small { color: var(--muted); }.advanced-rule-form { padding: 0 21px 21px; }
.saved-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }.saved-rule-group { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,26,41,.72); }.saved-rule-group h3 { display: flex; justify-content: space-between; margin-bottom: 13px; }.saved-rule-group h3 span { display: grid; min-width: 27px; height: 27px; place-items: center; border-radius: 99px; color: var(--blue-2); background: rgba(61,152,255,.12); font-size: 14px; }.saved-rule { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line-soft); }.saved-rule:first-of-type { border-top: 0; }.saved-rule > div:first-child { display: grid; gap: 4px; }.saved-rule small, .empty-rule { color: var(--muted); }.empty-rule { margin: 0; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.search-form { display: flex; width: min(560px, 100%); gap: 9px; }
input, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #0d1624; color: var(--text); }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,152,255,.12); }
input:disabled, textarea:disabled { color: #8797ad; cursor: not-allowed; }
select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #0d1624; color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(17,26,41,.88); }
.export-preflight-card { display: flex; flex-direction: column; }
.export-preflight-card form { margin-top: auto; }
.form-card label { display: grid; gap: 7px; }
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.disabled-button { opacity: .45; }
.stage-return { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.dashboard-actions { display: flex; gap: 12px; margin-top: 24px; }
.workspace-nav { display: flex; gap: 6px; overflow-x: auto; margin: -8px 0 28px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12,20,32,.8); }
.workspace-nav a, .workspace-nav span { flex: 0 0 auto; padding: 11px 15px; border-radius: 9px; color: var(--muted); font-size: 15px; }
.workspace-nav a:hover, .workspace-nav a.active { color: white; background: rgba(61,152,255,.18); }
.workspace-nav .disabled { opacity: .42; cursor: not-allowed; }
.capture-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.capture-layout > * { min-width: 0; }
.capture-form { padding: 30px; }
.step-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.step-heading.compact { margin-top: 16px; }
.step-heading > span, .guided-steps > li > span, .workflow-strip article > span { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--blue); font-family: "Lufthansa Head", sans-serif; font-weight: 700; }
.step-heading h2, .step-heading p { margin: 0; }.step-heading p { color: var(--muted); }
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode-card { display: grid !important; grid-template-columns: auto 1fr; gap: 14px !important; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.mode-card:has(input:checked) { border-color: var(--blue); background: rgba(61,152,255,.09); }
.mode-card input { margin-top: 4px; }.mode-card div { display: grid; gap: 4px; }.mode-card small { color: var(--muted); }.mode-card em { width: max-content; padding: 3px 7px; border-radius: 6px; color: #b9d7ff; background: rgba(61,152,255,.18); font-size: 14px; font-style: normal; text-transform: uppercase; }
.timing-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.capture-form .stack-form label { font-size: 14px; }
.capture-form .mode-card { padding: 18px; }.capture-form .mode-card strong { font-size: 16px; }.capture-form .mode-card small { font-size: 14px; line-height: 1.45; }
.timing-card { position: relative; display: grid !important; grid-template-columns: 22px 1fr; gap: 5px 11px !important; min-height: 88px; margin: 0 !important; padding: 17px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.timing-card:has(input:checked) { border-color: var(--blue); background: rgba(61,152,255,.09); }
.timing-card input { grid-row: 1 / 4; width: 17px; height: 17px; margin-top: 2px; }.timing-card strong { font-size: 16px; }.timing-card small { color: #b8c8da; font-size: 14px; font-weight: 400; line-height: 1.4; }.timing-card em { width: max-content; padding: 3px 7px; border-radius: 5px; color: var(--blue-2); background: rgba(61,152,255,.12); font-size: 14px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.timing-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,13,23,.38); }.timing-custom[hidden] { display: none; }.timing-custom > div > small { color: var(--muted); }.timing-custom .code-grid { margin: 8px 0 3px; }
.timing-summary { margin: 2px 0 8px; padding: 12px 14px; border-left: 3px solid var(--cyan); border-radius: 6px; color: #c3d5e7; background: rgba(37,208,199,.07); font-size: 14px; line-height: 1.5; }
.capture-notice { display: grid; gap: 4px; padding: 14px; border-left: 3px solid var(--blue); border-radius: 8px; background: rgba(61,152,255,.08); }.capture-notice span { color: var(--muted); font-size: 15px; }
.active-capture-panel { margin-bottom: 26px; }.active-capture-panel .section-heading { margin-top: 0; }.active-capture-panel .list-card { border-color: rgba(255,191,91,.4); background: linear-gradient(120deg, rgba(84,56,18,.2), rgba(17,26,41,.88)); }
.airline-lookup-status { margin: 3px 0 8px; padding: 11px 13px; border-left: 3px solid var(--blue); border-radius: 7px; color: #bad0e7; background: rgba(61,152,255,.07); font-size: 15px; }.airline-lookup-status.loading { color: var(--amber); border-color: var(--amber); }.airline-lookup-status.resolved { color: #86e6bf; border-color: var(--green); background: rgba(67,214,155,.07); }.airline-lookup-status.error { color: #ffabb3; border-color: var(--red); background: rgba(255,107,122,.07); }
.capture-form input[readonly] { color: #d7e7f7; border-color: #344c69; background: #111d2d; }
.workflow-help { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(17,26,41,.88); }
.guided-steps { display: grid; gap: 4px; padding: 0; list-style: none; }.guided-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 12px 0; opacity: .65; }.guided-steps li.active { opacity: 1; }.guided-steps small { display: block; color: var(--muted); }
.workflow-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }.workflow-strip article { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,26,41,.72); }.workflow-strip article.done { border-color: rgba(43,194,161,.42); }.workflow-strip article.attention { border-color: rgba(255,187,82,.55); }.workflow-strip small { display: block; margin-top: 3px; color: var(--muted); }
.workflow-strip.workflow-five { grid-template-columns: repeat(5, 1fr); }.workflow-strip article.complete { border-color: rgba(43,194,161,.42); }.workflow-strip article.working { border-color: var(--blue); }.workflow-strip article.blocked { border-color: rgba(255,111,111,.38); }.workflow-strip article.open { opacity: .72; }
.readiness-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(110deg, rgba(24,64,102,.62), rgba(17,26,41,.85)); }.readiness-card h2, .readiness-card p { margin: 0; }.readiness-ring { display: grid; place-items: center; flex: 0 0 70px; width: 70px; height: 70px; border: 5px solid rgba(61,152,255,.3); border-top-color: var(--blue); border-radius: 50%; font-family: "Lufthansa Head", sans-serif; font-weight: 700; }.readiness-ring.ready { border-color: #2bc2a1; }
.issue-panel { margin-bottom: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,26,41,.76); }.issue-panel .section-heading { margin: 0 0 14px; }.issue-list { display: grid; gap: 8px; }.issue-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: rgba(7,13,23,.55); }.issue-row > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; font-weight: 700; }.issue-row.blocking > span { color: #ffb3b3; background: rgba(255,90,90,.16); }.issue-row.notice > span { color: #b9d7ff; background: rgba(61,152,255,.16); }.issue-row small { display: block; color: var(--muted); }.issue-row a { color: var(--blue-2); }
.action-stack { margin-top: 14px; }.action-stack .button { width: 100%; }
fieldset { display: grid; gap: 8px; margin: 8px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.check-row { display: flex !important; align-items: center; gap: 8px; }.check-row input { width: auto; }
.simple-list { display: grid; gap: 8px; margin-top: 20px; }.simple-list div { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; }.simple-list span { color: var(--muted); font-size: 14px; }
.result-count { color: var(--muted); font-size: 15px; }
.save-indicator { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-size: 14px; }
.save-indicator.saving { color: var(--amber); }
.save-indicator.error { color: var(--red); }
.data-panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(17,26,41,.84); }
.table-scroll { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { position: sticky; z-index: 2; top: 0; padding: 14px; border-bottom: 1px solid var(--line); background: #18263a; color: #c0cede; font-size: 14px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.data-table tbody tr:hover { background: rgba(61,152,255,.04); }
.editable-table input { min-width: 100px; padding: 7px 8px; border-color: transparent; background: transparent; }
.editable-table input:hover, .editable-table input:focus { border-color: var(--line); background: #0b1421; }
.editable-table .time-input { min-width: 70px; width: 70px; }
.editable-table .airport-input { min-width: 68px; width: 68px; }
.editable-table .fleet-multiselect { min-width: 210px; min-height: 58px; padding: 5px; }
.editable-table .routing-input { min-width: 240px; }
.route-detail-cell { min-width: 190px; vertical-align: top; white-space: normal; }
.route-editor-dialog { width: min(980px, calc(100vw - 32px)); max-width: none; max-height: min(840px, calc(100vh - 32px)); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: #0b1421; color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.route-editor-dialog::backdrop { background: rgba(2,8,18,.78); backdrop-filter: blur(4px); }
.route-editor-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); background: rgba(11,20,33,.97); }
.route-editor-header h2 { margin: 3px 0 6px; }
.route-details-grid { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 24px; background: #0b1421; }
.route-details-grid label { display: grid; gap: 7px; color: #dbe5f1; font-size: 16px; font-weight: 750; }
.editable-table .route-editor-dialog input,
.editable-table .route-editor-dialog textarea {
  min-width: 0;
  padding: 10px 12px;
  border-color: #3b506d;
  background: #0d1624;
}
.editable-table .route-editor-dialog input:hover,
.editable-table .route-editor-dialog input:focus,
.editable-table .route-editor-dialog textarea:hover,
.editable-table .route-editor-dialog textarea:focus {
  border-color: var(--blue);
  background: #0d1624;
}
.route-details-grid select[multiple] { min-height: 150px; }
.route-details-grid .wide-field { grid-column: 1 / -1; }
.route-details-grid .check-row { align-self: end; min-height: 42px; }
.route-details-grid .check-row input { min-width: 0; width: auto; }
.status-badge { display: inline-flex; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(159,176,200,.08); color: #c3cfde; font-size: 14px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.status-badge.current, .status-badge.succeeded, .status-badge.noop { border-color: rgba(67,214,155,.38); color: var(--green); }
.status-badge.protected, .status-badge.protected_noop { border-color: rgba(166,138,255,.4); color: var(--purple); }
.status-badge.running, .status-badge.update { border-color: rgba(61,152,255,.45); color: var(--blue-2); }
.status-badge.failed, .status-badge.conflict, .status-badge.protected_external_drift { border-color: rgba(255,107,122,.45); color: var(--red); }
.status-badge.add, .status-badge.missing_review { border-color: rgba(255,191,91,.45); color: var(--amber); }
.empty-cell, .empty-state { padding: 45px; color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px; color: var(--muted); font-size: 15px; }
.pagination a { color: var(--blue-2); }

.card-list { display: grid; gap: 12px; }
.list-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(17,26,41,.82); }
.list-card:hover { border-color: #405777; transform: translateY(-1px); }
.list-card h3 { margin-top: 9px; }
.list-card p { margin: 0; color: var(--muted); }
.progress-compact { width: min(340px, 40%); text-align: right; }
.progress-track { height: 7px; margin: 7px 0; border-radius: 99px; overflow: hidden; background: #0a111d; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width .4s ease; }
.progress-track.large { height: 12px; margin: 22px 0 12px; }
.job-progress-card { padding: 28px; border: 1px solid #365474; border-radius: 18px; background: linear-gradient(145deg, rgba(27,67,104,.72), rgba(18,31,48,.94)); }
.job-actions { display: flex; align-items: center; gap: 10px; }
.progress-number { font-size: 58px; font-weight: 900; letter-spacing: -.05em; }
.progress-meta { display: flex; justify-content: space-between; color: #b8c8da; }
.capture-progress-card { margin-bottom: 18px; background: linear-gradient(145deg, rgba(25,58,91,.82), rgba(15,24,37,.98)); }
.capture-progress-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.capture-progress-head h2 { margin: 5px 0 4px; font-size: clamp(25px, 2.1vw, 38px); }
.capture-current-item { margin: 0; color: #c9d9eb; font-size: 17px; }
.capture-total-progress { flex: 0 0 auto; text-align: right; }
.capture-total-progress span { display: block; color: var(--muted); font-size: 14px; }
.capture-total-progress strong { display: block; color: #fff; font-size: clamp(44px, 4vw, 68px); line-height: .95; letter-spacing: -.05em; }
.capture-operations { display: grid; gap: 16px; margin-bottom: 26px; }
.capture-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #101925; }
.capture-pipeline-step { display: flex; min-height: 62px; align-items: center; gap: 9px; padding: 12px 14px; border-right: 1px solid var(--line-soft); color: #72849a; }
.capture-pipeline-step span { font-size: 16px; }
.capture-pipeline-step strong { font-size: 14px; }
.capture-pipeline-step.current { background: rgba(61,152,255,.13); color: #fff; box-shadow: inset 0 -3px 0 var(--blue); }
.capture-pipeline-step.current span { color: var(--blue-2); }
.capture-pipeline-step.complete { color: #bfeedd; background: rgba(67,214,155,.07); }
.capture-pipeline-step.complete span { color: var(--green); }
.capture-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.capture-metric-grid article { display: grid; min-height: 128px; align-content: center; gap: 7px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.capture-metric-grid span, .capture-metric-grid small { color: var(--muted); }
.capture-metric-grid strong { font-size: 27px; }
.capture-source-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0e1723; }
.capture-source-strip div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; border-right: 1px solid var(--line-soft); }
.capture-source-strip span { color: #acbdd1; font-size: 14px; }
.capture-source-strip strong { font-size: 24px; }
.capture-source-strip .live strong { color: var(--cyan); }.capture-source-strip .cache strong { color: var(--blue-2); }.capture-source-strip .fallback strong { color: var(--amber); }.capture-source-strip .failed strong { color: var(--red); }
.capture-recent-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #0d1521; }
.capture-recent-card .section-heading { margin: 0; padding: 20px 22px 14px; border-bottom: 1px solid var(--line-soft); }
.capture-recent-card .section-heading h2 { font-size: 23px; }
.capture-recent-list { display: grid; }
.capture-recent-list > div:not(.empty-cell) { display: grid; grid-template-columns: 74px 12px minmax(180px, .75fr) minmax(220px, 1fr); align-items: center; gap: 12px; padding: 11px 22px; border-bottom: 1px solid var(--line-soft); }
.capture-recent-list time { color: #71849d; font-family: Consolas, monospace; }
.capture-recent-list strong { color: #f2f6fb; }
.capture-recent-list > div > span:last-child { color: var(--muted); }
.source-dot { width: 9px; height: 9px; border-radius: 50%; background: #75869a; box-shadow: 0 0 0 4px rgba(117,134,154,.1); }
.source-dot.live { background: var(--cyan); }.source-dot.cache { background: var(--blue-2); }.source-dot.fallback { background: var(--amber); }.source-dot.failed { background: var(--red); }
@media (min-width: 1700px) { .capture-pipeline { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.event-log { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: #0b1421; }
.event { display: grid; grid-template-columns: 82px 145px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; }
.event time { color: #667a95; }.event strong { color: var(--blue-2); }.event.warning strong { color: var(--amber); }.event.error strong { color: var(--red); }

.summary-chips, .reason-list, .filter-tabs, .decision-row { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-chips span, .reason-list span, .filter-tabs a { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }
.filter-tabs { margin-bottom: 18px; }.filter-tabs a.active { border-color: var(--blue); color: var(--blue-2); background: rgba(61,152,255,.1); }
.review-list { display: grid; gap: 14px; }
.review-query-toolbar { display: grid; grid-template-columns: minmax(240px,2fr) 110px repeat(3,minmax(150px,1fr)) auto; gap: 8px; margin: 14px 0; }
.filtered-bulk-preview { margin: 0 0 16px; border: 1px solid rgba(89,203,143,.35); border-radius: 10px; background: rgba(89,203,143,.06); }
.filtered-bulk-preview > summary { display: flex; justify-content: space-between; gap: 18px; padding: 13px 16px; cursor: pointer; }
.filtered-bulk-preview > summary span { color: var(--muted); }
.filtered-bulk-preview-body { padding: 0 16px 16px; }
.filtered-bulk-preview-body p { max-width: 920px; color: var(--muted); }
.review-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,26,41,.86); }
.review-top { display: flex; justify-content: space-between; gap: 20px; }
.review-top h3 { margin-top: 10px; }
.reason-list { margin: 12px 0; }.reason-list span { color: var(--amber); }
.diff-grid { display: grid; grid-template-columns: 150px repeat(4, minmax(130px, 1fr)); margin: 16px 0; border: 1px solid var(--line-soft); border-radius: 10px; overflow: auto; }
.diff-grid > * { min-width: 130px; padding: 10px 11px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 14px; overflow-wrap: anywhere; }
.diff-head { background: var(--surface-3); color: var(--muted); font-weight: 800; }.conflict-value { color: var(--red); }
.decision-row { justify-content: flex-end; margin-top: 14px; }

.alert { padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.alert.success { border-color: #287a5c; color: #86e6bf; }.alert.error { border-color: #8f3945; color: #ffabb3; }.alert.warning { border-color: #88672e; color: #ffd28b; }
.message-stack { display: grid; gap: 8px; margin-bottom: 18px; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login-shell { display: grid; width: min(1000px, 100%); grid-template-columns: 1.1fr .9fr; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: rgba(13,22,36,.94); box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.login-brand { display: flex; min-height: 560px; gap: 24px; align-items: center; padding: 60px; background: radial-gradient(circle at 20% 30%, rgba(37,208,199,.16), transparent 35%), linear-gradient(145deg, #12365c, #101c2e 66%); }
.login-brand h1 { font-size: 72px; }.login-brand h1 span { color: var(--cyan); }.login-brand p:last-child { max-width: 390px; color: #bfd0e2; line-height: 1.6; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.stack-form { display: grid; gap: 10px; margin-top: 26px; }.stack-form label { margin-top: 7px; color: #c5d1df; font-size: 15px; font-weight: 750; }.stack-form input { padding: 13px; }
.carrier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 1rem; align-items: start; }
.carrier-grid .form-card { margin: 0; }.new-carrier { border-style: dashed; }
.checkbox-line { display: flex !important; align-items: center; gap: .65rem; }.checkbox-line input { width: 1.1rem; height: 1.1rem; }
.protection-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr) auto; gap: 22px; align-items: end; margin-bottom: 20px; }
.protection-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }.protection-form label { display: grid; gap: 7px; }
.permission-airline { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; }.permission-option, .carrier-checks { margin-left: 24px; }.carrier-checks { display: grid; gap: 5px; }.api-option { color: var(--amber) !important; }
.user-management-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 20px; align-items: start; }
.user-basics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.temporary-password-field { display: grid; align-content: start; gap: 4px; min-width: 0; }
.temporary-password-field small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.password-control { display: flex; align-items: stretch; gap: 8px; }
.password-control input { flex: 1; min-width: 0; }
.password-control button { flex-shrink: 0; }
.password-control button[hidden] { display: none; }
.user-basics-grid label small, .permission-fieldset > .muted, .account-switch small { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.45; }
.permission-fieldset { margin-top: 18px; padding: 18px; }.permission-fieldset legend { padding: 0 8px; font-size: 17px; font-weight: 800; }.permission-fieldset > .muted { margin-bottom: 14px; }
.permission-workspace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.permission-airline { gap: 11px; padding: 16px; background: rgba(8,14,24,.32); }.permission-airline.selected { border-color: rgba(61,152,255,.5); background: rgba(61,152,255,.055); }.permission-title { min-height: 32px; }.permission-title strong { font-size: 18px; }.permission-airline > label:not(.check-row) { font-size: 14px; }
.carrier-checks { padding: 9px 0 9px 12px; border-left: 2px solid var(--line); }.carrier-checks label { color: #c8d5e4; font-size: 14px; font-weight: 400; }
.account-directory { position: sticky; top: calc(var(--topbar) + 18px); }
.user-account-list { display: grid; gap: 9px; margin-top: 20px; }.user-account-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 20px; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(8,14,24,.28); }.user-account-row:hover { border-color: var(--blue); background: rgba(61,152,255,.06); }.user-account-row .avatar { width: 38px; height: 38px; }.user-account-copy, .user-account-meta { display: grid; gap: 3px; min-width: 0; }.user-account-copy small, .user-account-meta small { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }.user-account-meta { justify-items: end; text-align: right; }.row-arrow { color: var(--blue-2); font-size: 28px; }
.user-edit-form { gap: 18px; margin-top: 0; }.account-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }.account-switch { align-items: flex-start; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8,14,24,.32); }.account-switch.warning { border-color: rgba(255,191,91,.5); background: rgba(255,191,91,.055); }.account-switch input { margin-top: 3px; }.account-switch > span { display: grid; gap: 4px; }.account-switch strong, .account-switch small { display: block; }
.sticky-save-bar { position: sticky; z-index: 15; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border: 1px solid var(--blue); border-radius: 14px; background: rgba(16,29,47,.96); box-shadow: 0 18px 55px rgba(0,0,0,.42); backdrop-filter: blur(16px); }.sticky-save-bar span { color: #c6d5e6; font-size: 14px; }
.data-workflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.data-workflow-card { display: grid; grid-template-columns: 54px 1fr; gap: 16px; min-height: 205px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,26,41,.82); }
.data-workflow-card:hover { border-color: var(--blue); transform: translateY(-2px); }.data-workflow-card > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--cyan), var(--blue)); font-size: 19px; font-weight: 900; }.data-workflow-card h2 { margin: 3px 0 8px; font-size: 25px; }.data-workflow-card p:not(.eyebrow) { min-height: 62px; color: var(--muted); font-size: 15px; line-height: 1.55; }.data-workflow-card strong, .settings-link strong { color: var(--blue-2); font-size: 15px; }
.settings-link { display: block; min-height: 220px; }.settings-link:hover { border-color: var(--blue); transform: translateY(-2px); }.settings-link h2 { margin: 7px 0 12px; }.settings-link p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.6; }
.status-badge.changed { border-color: rgba(255,191,91,.45); color: var(--amber); }.status-badge.new { border-color: rgba(61,152,255,.45); color: var(--blue-2); }
.comparison-cell { min-width: 150px; white-space: normal; }.comparison-cell summary { cursor: pointer; list-style: none; }.comparison-cell summary::-webkit-details-marker { display: none; }.comparison-cell details > p { width: 260px; margin: 10px 0 0; color: var(--muted); line-height: 1.45; }

/* Airline workbench: source, decision and action must remain visually distinct. */
.workspace-heading { margin-bottom: 20px; }
.workspace-actions { display: flex; max-width: 580px; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.workspace-actions .save-indicator { flex-basis: auto; }
.source-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.source-key { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 0 10px; min-height: 70px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,26,41,.76); }
.source-key > span { grid-row: 1 / 3; width: 10px; height: 100%; border-radius: 99px; background: var(--muted); }
.source-key strong { font-size: 15px; }.source-key small { color: var(--muted); font-size: 14px; }
.source-key.vamsys > span { background: var(--purple); }.source-key.fr24 > span { background: var(--cyan); }.source-key.vaas > span { background: var(--green); }.source-key.manual > span { background: var(--blue); }
.workbench-toolbar { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr); gap: 16px; align-items: center; margin: 0 0 16px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.filter-chip { display: inline-flex; min-height: 38px; gap: 8px; align-items: center; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: #b5c3d5; background: rgba(17,26,41,.74); font-size: 14px; }
.filter-chip b { display: grid; min-width: 22px; height: 22px; padding: 0 6px; place-items: center; border-radius: 99px; background: rgba(255,255,255,.08); }
.filter-chip:hover, .filter-chip.active { border-color: var(--blue); color: white; background: rgba(61,152,255,.16); }
.filter-chip.changed.active { border-color: var(--amber); background: rgba(255,191,91,.14); }.filter-chip.new.active { border-color: var(--cyan); }.filter-chip.current.active { border-color: var(--green); }.filter-chip.outdated.active { border-color: #d58b64; }.filter-chip.check.active { border-color: var(--red); }.filter-chip.protected.active { border-color: var(--purple); }
.workbench-panel { border-color: #364c69; box-shadow: 0 18px 55px rgba(0,0,0,.18); }
.workbench-table { min-width: 1040px; white-space: normal; }
.workbench-table th { background: #142238; color: #d7e3f2; }
.workbench-table td { min-width: 110px; vertical-align: middle; }
.record-row { border-left: 4px solid transparent; }.record-row.state-changed { border-left-color: var(--amber); background: rgba(255,191,91,.025); }.record-row.state-new { border-left-color: var(--cyan); }.record-row.state-current { border-left-color: var(--green); }.record-row.state-outdated { border-left-color: #d58b64; }.record-row.state-check { border-left-color: var(--red); }.record-row.state-protected { border-left-color: var(--purple); }
.status-badge.current { border-color: rgba(89,203,143,.45); color: var(--green); }.status-badge.changed { border-color: rgba(255,191,91,.45); color: var(--amber); }.status-badge.new { border-color: rgba(87,214,232,.45); color: var(--cyan); }.status-badge.outdated { border-color: rgba(213,139,100,.55); color: #efb18f; }.status-badge.check { border-color: rgba(238,108,122,.5); color: #ff9ca8; }.status-badge.protected { border-color: rgba(172,132,255,.5); color: #c8a9ff; }
.compact-workbench-table td { height: 52px; padding-top: 8px; padding-bottom: 8px; }
.compact-workbench-table .comparison-trigger small { display: none; }
.compact-workbench-table .record-actions .button { min-height: 34px; padding: 7px 10px; }
.workbench-filter-form { flex: 1 1 720px; display: grid; grid-template-columns: minmax(220px,2fr) minmax(110px,.6fr) minmax(150px,.8fr) minmax(160px,.8fr) auto; gap: 8px; }
.editor-danger-zone { display: flex; justify-content: flex-end; padding: 16px 22px 22px; border-top: 1px solid var(--line); }
.comparison-cell { min-width: 280px !important; max-width: 420px; }
.comparison-trigger { display: grid; min-width: 128px; gap: 4px; justify-items: start; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.comparison-trigger:hover .status-badge { filter: brightness(1.22); box-shadow: 0 0 0 2px rgba(61,152,255,.18); }
.comparison-trigger small { color: var(--blue-2); font-size: 13px; font-weight: 700; }
.compact-workbench-table .comparison-trigger small { display: none; }
.compact-workbench-table .cell-subline { display: none; }
.comparison-dialog { width: min(720px, calc(100vw - 32px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #0c1624; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.7); }
.comparison-dialog::backdrop { background: rgba(3,8,15,.78); backdrop-filter: blur(4px); }
.comparison-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: #132139; }
.comparison-dialog-header h2 { margin-bottom: 5px; }
.comparison-dialog .field-change-list { max-width: none; margin: 22px 24px 24px; }
.comparison-empty { margin: 22px 24px 24px; padding: 16px; border: 1px solid rgba(67,214,155,.35); border-radius: 11px; color: #9ce8c8; background: rgba(67,214,155,.07); }
.field-change-list { display: grid; width: auto; max-width: 620px; gap: 1px; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.field-change-list > div { display: grid; grid-template-columns: minmax(80px,.7fr) minmax(100px,1fr) minmax(100px,1fr); gap: 1px; background: var(--line); }
.field-change-list > div > * { min-width: 0; padding: 9px 10px; overflow-wrap: anywhere; background: #101a29; }
.field-change-list .diff-heading > span { color: #8fa6c0; background: #17253a; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.field-change-list .before { color: #c8b8dd; text-decoration-color: rgba(255,255,255,.2); }.field-change-list .after { color: #90e7c3; }
.status-badge.manual { border-color: rgba(61,152,255,.55); color: var(--blue-2); background: rgba(61,152,255,.08); }
.status-badge.warning { border-color: rgba(255,191,91,.45); color: var(--amber); }
.cell-subline { display: block; margin-top: 4px; color: var(--muted); white-space: nowrap; }
.record-actions { display: flex; min-width: 140px !important; gap: 7px; align-items: center; }.button.quiet { min-height: 36px; padding: 7px 10px; }
.workbench-table .record-actions { white-space: nowrap; }
.route-pair { display: flex; gap: 9px; align-items: center; font-size: 17px; }.route-pair i { color: var(--blue-2); font-style: normal; }.time-pair { font-weight: 800; }
.carrier-chip { display: inline-flex; padding: 6px 9px; border-radius: 7px; color: #d7c9ff; background: rgba(166,138,255,.14); font-weight: 850; }
.fleet-pill-list { display: flex; min-width: 220px; max-width: 420px; flex-wrap: wrap; gap: 5px; }.fleet-pill-list span { padding: 5px 8px; border: 1px solid rgba(37,208,199,.25); border-radius: 7px; color: #9de6e1; background: rgba(37,208,199,.07); font-size: 13px; }.fleet-pill-list .unresolved { border-color: rgba(255,191,91,.3); color: var(--amber); background: rgba(255,191,91,.06); }
.editor-sections { display: grid; gap: 16px; padding: 22px; background: #09121f; }.editor-sections fieldset { margin: 0; padding: 0; overflow: hidden; border-color: #334b69; background: #0e1928; }.editor-sections legend { margin-left: 18px; padding: 0 9px; color: var(--blue-2); font-family: "Lufthansa Head", sans-serif; font-size: 18px; font-weight: 800; }.editor-sections .route-details-grid { background: transparent; }
.choice-editor { margin: 0 24px 24px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,12,21,.48); }.choice-editor > strong { font-size: 17px; }.choice-editor > p { margin: 4px 0 13px; color: var(--muted); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }.checkbox-grid label { display: flex; min-height: 44px; gap: 9px; align-items: center; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #101d2d; cursor: pointer; }.checkbox-grid label:has(input:checked) { border-color: var(--cyan); background: rgba(37,208,199,.1); }.checkbox-grid input { flex: 0 0 auto; width: 18px !important; min-width: 0 !important; height: 18px; }.checkbox-grid span { display: grid; color: #dce7f3; }.checkbox-grid b { color: var(--cyan); }
.fleet-choice-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.create-dialog { width: min(780px, calc(100vw - 32px)); }.create-record-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px; }.create-record-form label { display: grid; gap: 7px; font-weight: 750; }.create-record-form .wide-field, .create-record-form fieldset, .create-record-form .form-actions { grid-column: 1 / -1; }.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 8px; }

input:disabled, textarea:disabled, select:disabled { opacity: .58; border-style: dashed; cursor: not-allowed; }
.workbench-journey { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 0 0 20px; }.workbench-journey a { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; min-height: 70px; align-content: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,26,41,.78); }.workbench-journey a:hover, .workbench-journey a.active { border-color: var(--blue); background: rgba(61,152,255,.11); }.workbench-journey a > span { grid-row: 1 / 3; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-weight: 900; }.workbench-journey small { color: var(--muted); }.workbench-journey > i { color: var(--blue-2); font-size: 21px; font-style: normal; }
.quick-export-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; margin: 22px 0; padding: 24px; border: 1px solid rgba(37,208,199,.36); border-radius: 17px; background: linear-gradient(120deg, rgba(11,61,65,.28), rgba(17,26,41,.9)); }.quick-export-card h2 { margin: 4px 0 6px; }.quick-export-card p:not(.eyebrow) { margin: 0; color: var(--muted); }.quick-export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.connection-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }.connection-card { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(17,26,41,.78); }.connection-card.active { border-color: rgba(67,214,155,.4); }.connection-card.locked { background: rgba(10,17,29,.58); }.connection-card h2 { margin: 12px 0 7px; }.connection-card p { color: var(--muted); font-size: 15px; line-height: 1.5; }.connection-card > strong { color: var(--green); }.api-requirements { display: grid; gap: 4px; color: #c3d0df; font-size: 14px; }
.api-setup { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-top: 16px; }.api-setup label { margin: 0; }.api-verify-form { margin-top: 8px; }.connection-card .capture-notice, .connection-card .alert { margin-top: 14px; }
.next-action-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 18px; padding: 25px 27px; border: 1px solid var(--blue); border-radius: 17px; background: linear-gradient(120deg, rgba(25,74,119,.72), rgba(17,26,41,.9)); }.next-action-card h2 { margin: 5px 0; font-size: 27px; }.next-action-card p:not(.eyebrow) { margin: 0; color: #c2d1e2; font-size: 15px; }
.completion-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 18px 0; padding: 22px 24px; border: 1px solid rgba(67,214,155,.45); border-radius: 15px; background: rgba(67,214,155,.07); }.completion-actions h2 { margin: 4px 0; }.completion-actions p:not(.eyebrow) { margin: 0; color: var(--muted); }
.completion-actions.failed-recovery { border-color: rgba(255,107,122,.45); background: rgba(255,107,122,.06); }

@media (max-width: 900px) {
  .review-query-toolbar { grid-template-columns: 1fr 1fr; }
  .review-query-toolbar input[name="q"] { grid-column: 1 / -1; }
  .workbench-filter-form { display: grid; grid-template-columns: 1fr 1fr; flex-basis: 100%; }
  .workbench-filter-form input[name="q"] { grid-column: 1 / -1; }
  :root { --sidebar: 76px; }
  .sidebar span:not(.nav-icon), .sidebar .nav-label { display: none; }
  .sidebar-toggle { justify-content: center; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid.manifest-metrics { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .capture-layout { grid-template-columns: 1fr; }.workflow-strip, .workflow-strip.workflow-five { grid-template-columns: 1fr 1fr; }
  .login-shell { grid-template-columns: 1fr; }.login-brand { min-height: 260px; padding: 34px; }.login-card { padding: 34px; }
  .diff-grid { grid-template-columns: 120px repeat(4, 180px); }
  .protection-card, .protection-form { grid-template-columns: 1fr; }
  .data-workflow-grid { grid-template-columns: 1fr; }
  .connection-choice { grid-template-columns: 1fr; }
  .next-action-card { align-items: stretch; flex-direction: column; }
  .completion-actions { align-items: stretch; flex-direction: column; }
  .global-job-row { grid-template-columns: 1fr; gap: 8px; }.global-job-progress > span { text-align: left; }
  .user-management-layout { grid-template-columns: 1fr; }.account-directory { position: static; }
  .workbench-journey { grid-template-columns: 1fr 1fr; }.workbench-journey > i { display: none; }
  .quick-export-card { grid-template-columns: 1fr; }
  .source-legend { grid-template-columns: 1fr 1fr; }
  .rule-explainer { grid-template-columns: 1fr; }.rule-explainer > i { display: none; }.rule-workshop { grid-template-columns: 1fr; }.saved-rule-grid { grid-template-columns: 1fr; }
  .workbench-toolbar { grid-template-columns: 1fr; }
  .filter-chips, .workspace-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .review-query-toolbar { grid-template-columns: 1fr; }
  .review-query-toolbar input[name="q"] { grid-column: auto; }
  .filtered-bulk-preview > summary { display: grid; }
  .workbench-filter-form { grid-template-columns: 1fr; }
  .workbench-filter-form input[name="q"] { grid-column: auto; }
  :root { --topbar: 66px; --sidebar: 0px; }
  .app-shell { display: block; }.sidebar { position: fixed; z-index: 40; top: var(--topbar); left: 0; width: 250px; transform: translateX(0); transition: transform .2s; box-shadow: 25px 0 60px rgba(0,0,0,.45); }.app-shell.sidebar-collapsed .sidebar { transform: translateX(-100%); }.app-shell:not(.sidebar-collapsed) .sidebar { transform: translateX(0); }
  .sidebar span:not(.nav-icon), .sidebar .nav-label { display: initial; }.sidebar .nav-label { display: block; }.sidebar-toggle { justify-content: flex-start; }
  .mobile-menu-toggle { display: grid; flex: 0 0 40px; place-items: center; }
  .content { padding: 28px 16px 60px; }.brand-copy small, .role-pill, .user-menu summary > span:first-child { display: none; }.topbar { height: var(--topbar); gap: 10px; padding: 0 16px; }.topbar-actions { margin-left: auto; }
  .page-header.split, .toolbar, .list-card, .progress-meta { align-items: stretch; flex-direction: column; }.progress-compact { width: 100%; text-align: left; }.compact-stats { grid-template-columns: 1fr 1fr; }.event { grid-template-columns: 60px 1fr; }.event span { grid-column: 1 / -1; }
  .code-grid, .timing-profiles, .timing-custom, .workflow-strip, .workflow-strip.workflow-five, .api-setup { grid-template-columns: 1fr; }.dashboard-actions { flex-direction: column; }.readiness-card { align-items: flex-start; }.issue-row { grid-template-columns: 30px 1fr; }.issue-row a { grid-column: 2; }
  .metric-grid.manifest-metrics { grid-template-columns: 1fr; }
  .route-editor-header { align-items: stretch; flex-direction: column; }
  .route-details-grid { grid-template-columns: 1fr; padding: 18px; }
  .user-basics-grid, .account-switches { grid-template-columns: 1fr; }.user-account-row { grid-template-columns: 42px minmax(0, 1fr) 18px; }.user-account-meta { grid-column: 2; justify-items: start; text-align: left; }.row-arrow { grid-column: 3; grid-row: 1 / span 2; }.sticky-save-bar { align-items: stretch; flex-direction: column; bottom: 8px; }
  .login-page { padding: 0; }.login-shell { min-height: 100vh; border: 0; border-radius: 0; }.login-brand { display: none; }
  .source-legend, .create-record-form { grid-template-columns: 1fr; }
  .create-record-form > *, .create-record-form .wide-field { grid-column: 1; }
  .field-change-list { width: 82vw; }
  .field-change-list > div { grid-template-columns: 1fr; }
  .field-change-list .diff-heading { display: none; }
  .rule-sentence, .rule-conditions { grid-template-columns: 1fr; }.rule-sentence > span, .rule-sentence > b { margin-top: 4px; }
}

/* VAAS component layer: neutral surfaces, one accent, stable geometry. */
:focus-visible { outline: 3px solid #8bc0ff; outline-offset: 3px; }
.sidebar, .topbar { background: rgba(10,12,17,.96); }
.sidebar nav a.active { color: #fff; background: var(--blue); box-shadow: 0 8px 24px rgba(37,136,255,.2); }
.sidebar nav a.active .nav-icon { color: #fff; }
.metric-card, .workspace-card, .form-card, .workflow-help, .data-panel,
.saved-rule-group, .connection-card, .issue-panel { background: var(--surface); box-shadow: none; }
.metric-card.accent, .rule-primary-card, .next-action-card, .readiness-card {
  background: linear-gradient(145deg, rgba(37,136,255,.11), var(--surface));
}
.data-table th, .workbench-table th { background: #171c25; }
.data-table tbody tr:hover { background: rgba(255,255,255,.035); }
.workbench-table td, .workbench-table .record-actions { background-color: inherit; }
.record-actions { justify-content: flex-end; }
input, textarea, select { min-height: 42px; background: #0d1016; }
.button { min-height: 42px; border-radius: 9px; }
.button.primary { background: var(--blue); box-shadow: 0 7px 20px rgba(37,136,255,.18); }
.button.secondary { background: transparent; }
.button.quiet { background: transparent; }
.source-tabs { display: flex; gap: 8px; margin: -10px 0 18px; padding-bottom: 2px; overflow-x: auto; }
.source-tab { display: inline-flex; min-height: 42px; flex: 0 0 auto; gap: 8px; align-items: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface); }
.source-tab > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; color: var(--text); background: var(--surface-elevated); font-size: 13px; font-weight: 900; }
.source-tab:hover { color: var(--text); border-color: #596678; }
.source-tab.active { color: #fff; border-color: var(--blue); background: rgba(37,136,255,.12); }
.source-tab.source-vamsys.active { border-color: var(--purple); background: rgba(166,138,255,.1); }
.source-tab.source-fr24.active { border-color: var(--cyan); background: rgba(37,208,199,.09); }
.source-tab.source-manual.active { border-color: #8b97a8; background: rgba(174,185,201,.08); }
.source-context { display: flex; margin-bottom: 16px; padding: 14px 16px; border-left: 3px solid var(--purple); border-radius: 7px; background: var(--surface); }
.source-context.source-fr24 { border-left-color: var(--cyan); }
.source-context div { display: grid; gap: 3px; }.source-context span { color: var(--muted); }
.source-record-table { min-width: 900px; white-space: normal; }
.source-record-table td:nth-child(2) { min-width: 250px; }
.source-details summary { color: var(--blue-2); cursor: pointer; font-weight: 800; }
.source-details dl { display: grid; grid-template-columns: repeat(2, minmax(220px,1fr)); gap: 1px; margin: 12px 0 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--line-soft); }
.source-details dl div { min-width: 0; padding: 9px 10px; background: #0d1118; }
.source-details dt { color: var(--muted); font-size: 13px; }.source-details dd { margin: 3px 0 0; overflow-wrap: anywhere; white-space: normal; }
.target-fleet-picker { min-width: 0; margin: 0; }.target-fleet-picker legend { color: var(--muted); font-size: 14px; }
.alias-edit-form { display: grid; grid-template-columns: 100px minmax(160px,1fr) minmax(140px,1fr) auto auto auto; }
.alias-edit-form .button { white-space: nowrap; }.check-row.compact { min-width: max-content; }
.rule-import-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,.8fr); gap: 32px; align-items: center; margin: 20px 0; }
.import-commit { justify-content: flex-end; margin-top: 20px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0; }.pagination a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue-2); }
.danger-text { color: #ff99a5; }.success-text { color: #7fe3ba; }
@media (max-width: 1100px) { .alias-edit-form { grid-template-columns: 90px 1fr 1fr; }.rule-import-card { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .source-details dl { grid-template-columns: 1fr; }.alias-edit-form { grid-template-columns: 1fr; }.source-tabs { margin-top: 0; } }

/* 2026-08 product redesign: quiet application shell and task-first hierarchy. */
:root {
  --bg: #061a33;
  --surface: #0b2442;
  --surface-2: #102d50;
  --surface-3: #15385f;
  --surface-elevated: #1a4471;
  --line: #254a70;
  --line-soft: #173958;
  --text: #f7faff;
  --muted: #a7bad0;
  --blue: #2386f5;
  --blue-2: #8cc5ff;
  --cyan: #44bdb7;
  --green: #4bc38a;
  --amber: #e9ad55;
  --red: #eb6a76;
  --purple: #9c88da;
  --topbar: 76px;
  --sidebar: 260px;
}
body { background: radial-gradient(circle at 72% 0%, #0b2b50 0, var(--bg) 38%, #04152b 100%); font-size: 16px; }
.app-shell { grid-template: var(--topbar) 1fr / var(--sidebar) minmax(0, 1fr); }
.app-shell.sidebar-collapsed { --sidebar: 72px; }
.topbar { padding: 0 28px; border-bottom-color: #21446a; background: #06162b; backdrop-filter: none; }
.brand { gap: 10px; }
.brand-mark.small { width: 44px; height: 44px; border-width: 1px; box-shadow: 0 0 24px rgba(35,134,245,.22); }
.brand-copy strong { font-size: 22px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 2px; color: #83a8cf; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.topbar-context { margin-left: 30px; padding-left: 30px; border-left: 1px solid var(--line); color: #8aa9c9; font-size: 14px; }
.role-pill { padding: 5px 9px; border-color: var(--line); color: var(--muted); background: transparent; font-size: 12px; }
.avatar { width: 38px; height: 38px; border-color: #4674a3; background: var(--surface-2); }
.sidebar { top: var(--topbar); height: calc(100vh - var(--topbar)); padding: 18px 14px 24px; border-right-color: #21446a; background: linear-gradient(180deg, #071a31 0%, #06172d 100%); }
.sidebar-toggle, .sidebar nav a { min-height: 46px; gap: 12px; padding: 10px 13px; border-radius: 9px; }
.sidebar-toggle { margin-bottom: 18px; color: #7e8998; border: 0; }
.sidebar nav a { margin: 3px 0; color: #a9bdd3; font-weight: 650; }
.sidebar nav a:hover { color: var(--text); background: #102d50; }
.sidebar nav a.active { color: #fff; background: linear-gradient(90deg, #174a7d, #12385f); box-shadow: inset 3px 0 #4ca4ff, 0 8px 24px rgba(0,0,0,.12); }
.sidebar nav a.active .nav-icon { color: var(--blue-2); }
.nav-icon { flex-basis: 22px; color: #85a9ce; font-size: 17px; }
.nav-label { margin: 24px 13px 8px; color: #6f93b8; font-size: 10px; letter-spacing: .14em; }
.nav-count { min-width: 19px; height: 19px; font-size: 11px; }
.content { width: 100%; max-width: 2100px; margin: 0; padding: 52px clamp(32px, 3vw, 64px) 88px; }

h1 { margin-bottom: 12px; font-size: clamp(38px, 3vw, 54px); line-height: 1.04; letter-spacing: -.04em; }
h2 { font-size: 26px; letter-spacing: -.025em; }
h3 { font-size: 19px; }
.eyebrow { margin-bottom: 10px; color: #78afe7; font-size: 11px; letter-spacing: .16em; }
.muted { color: var(--muted); line-height: 1.5; }
.page-header { min-height: 0; margin-bottom: 32px; }
.page-header.split { align-items: flex-end; }
.page-header.split > .button, .page-header.split > form { flex: 0 0 auto; }
.section-heading { margin: 42px 0 18px; }
.section-heading.compact-heading { margin-top: 38px; }
.section-heading h2 { margin: 0; }
.text-link { color: var(--blue-2); font-weight: 700; }
.text-link:hover { color: #a8cbff; }
.card-link { display: inline-block; margin-top: 18px; }

.dashboard-hero { position: relative; padding: 40px; overflow: hidden; border: 1px solid #2e5d89; border-radius: 20px; background: linear-gradient(120deg, rgba(15,55,94,.98), rgba(8,35,66,.98) 58%, rgba(12,45,82,.98)); box-shadow: 0 24px 70px rgba(0,8,23,.24); }
.dashboard-hero::before { position: absolute; width: 520px; height: 520px; top: -350px; right: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(61,153,246,.28), rgba(61,153,246,0) 70%); content: ""; pointer-events: none; }
.dashboard-hero::after { position: absolute; width: 360px; height: 360px; bottom: -300px; left: 20%; border-radius: 50%; background: rgba(40,132,225,.12); filter: blur(4px); content: ""; pointer-events: none; }
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-hero .page-header { margin-bottom: 38px; }
.dashboard-hero .muted { max-width: 660px; color: #bed0e3; font-size: 17px; }
.dashboard-hero .button { min-height: 48px; padding-inline: 20px; }

.button { min-height: 44px; padding: 10px 16px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.button.primary { border-color: #5cacff; background: linear-gradient(135deg, #2d94ff, #1676df); box-shadow: 0 10px 26px rgba(18,105,201,.28); }
.button.primary:hover { background: #3d8af2; filter: none; }
.button.secondary { border-color: var(--line); background: var(--surface-2); }
.button.secondary:hover { border-color: #46505f; background: var(--surface-3); filter: none; }
.button.success { color: #b9ead2; background: rgba(75,195,138,.08); }
.button.danger { color: #f0a1aa; background: transparent; }
.button.quiet { min-height: 34px; padding: 6px 9px; }

.metric-grid { gap: 1px; overflow: hidden; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.metric-card, .metric-card.accent { min-height: 112px; padding: 22px 24px; border: 0; border-radius: 0; background: var(--surface); }
.metric-card strong { margin: 6px 0 0; font-size: 32px; }
.metric-card small { display: block; margin-top: 7px; color: #86a6c7; font-size: 12px; }
.dashboard-hero .metric-grid { margin-bottom: 0; border-color: rgba(101,150,196,.45); background: rgba(94,142,186,.4); }
.dashboard-hero .metric-card { min-height: 126px; background: rgba(4,24,46,.48); }
.dashboard-metrics .metric-card:last-child strong { display: flex; gap: 10px; align-items: center; color: #78dfad; font-size: 23px; }
.metric-card a { margin-top: 8px; color: var(--blue-2); font-size: 13px; }
.form-card, .data-panel, .issue-panel, .connection-card, .saved-rule-group { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: none; }
.form-card { padding: 20px; }
.form-grid { gap: 14px; }

.workspace-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 20px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.workspace-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto 1fr auto; gap: 18px 24px; align-items: start; min-height: 254px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(16,48,84,.96), rgba(9,35,65,.98)); box-shadow: 0 16px 44px rgba(0,9,24,.18); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.workspace-row::before { position: absolute; width: 190px; height: 190px; top: -110px; right: -70px; border-radius: 50%; background: rgba(52,143,238,.12); content: ""; }
.workspace-row:last-child { border-bottom: 1px solid var(--line); }
.workspace-row:hover { border-color: #3b78ad; background: linear-gradient(145deg, #133b65, #0b2a4b); transform: translateY(-2px); box-shadow: 0 20px 50px rgba(0,9,24,.28); }
.workspace-title { min-width: 0; }
.workspace-title h3 { margin: 0 0 5px; font-size: 21px; }
.workspace-title p { color: var(--muted); }
.airline-badge { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(145deg, #23598a, #173d68); color: #b9dcff; box-shadow: inset 0 0 0 1px #3f72a2; font-size: 14px; }
.workspace-state { display: flex; grid-column: 1 / -1; gap: 9px; align-items: center; color: #b8cbe0; }
.workspace-row .compact-stats { grid-column: 1 / -1; align-self: end; margin: 2px 0 0; border: 1px solid rgba(84,130,174,.35); border-radius: 11px; background: rgba(4,24,46,.35); }
.workspace-row .compact-stats div { padding: 15px 12px; border-color: rgba(84,130,174,.3); }
.compact-stats dt { color: #86a8ca; font-size: 10px; letter-spacing: .09em; }
.compact-stats dd { margin-top: 5px; font-size: 19px; }
.workspace-open { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; color: #8fc7ff; font-size: 14px; font-weight: 750; }
.workspace-open span { font-size: 20px; }
.row-arrow { color: #788494; font-size: 20px; text-align: right; }
.empty-state { padding: 36px; color: var(--muted); text-align: center; }
.empty-state h3 { color: var(--text); }
.empty-icon { display: grid; width: 42px; height: 42px; margin: 0 auto 12px; place-items: center; border-radius: 9px; color: var(--blue-2); background: #1b2736; }

.workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: -8px 0 26px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.workspace-identity { display: flex; min-width: 0; gap: 10px; align-items: center; }
.workspace-identity > span:last-child { display: grid; min-width: 0; }
.workspace-identity small { color: #717d8c; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.workspace-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.airline-badge.small { width: 34px; height: 34px; font-size: 11px; }
.workspace-nav { margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #0d1015; }
.workspace-nav a { padding: 7px 12px; border-radius: 5px; font-size: 13px; }
.workspace-nav a:hover, .workspace-nav a.active { color: #fff; background: #222a35; }
.workspace-nav a.active { box-shadow: inset 0 -2px var(--blue); }

.entity-list { overflow: hidden; margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.entity-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 70px 24px; gap: 16px; align-items: center; min-height: 82px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.entity-row:last-child { border-bottom: 0; }
.entity-row:hover { background: #161b22; }
.entity-row.featured { box-shadow: inset 3px 0 var(--blue); }
.entity-row h2, .entity-row p { margin: 0; }
.entity-row p { margin-top: 3px; color: var(--muted); }
.entity-row > strong { font-size: 22px; text-align: right; }
.entity-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; color: #8494a8; background: var(--surface-3); font-family: monospace; font-size: 12px; }
.source-note { display: flex; gap: 16px; align-items: baseline; padding: 12px 16px; border-left: 3px solid var(--blue); background: #101720; }
.source-note p { margin: 0; color: var(--muted); }
.utility-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.utility-panel summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; list-style: none; }
.utility-panel summary > span:first-child { display: grid; gap: 2px; }
.utility-panel summary small { color: var(--muted); }
.utility-panel .quick-export-actions { padding: 0 16px 16px; }

.compact-journey { margin-bottom: 14px; }
.workbench-journey { gap: 6px; }
.workbench-journey a { min-height: 58px; padding: 9px 11px; border-radius: 8px; background: var(--surface); }
.workbench-journey a > span { width: 28px; height: 28px; background: #29313c; font-size: 12px; }
.workbench-journey a.active { border-color: #456383; background: #121c28; }
.workbench-journey a.active > span { background: var(--blue); }
.workbench-journey small { font-size: 12px; }

.next-action-card { padding: 20px 22px; border: 1px solid #365c87; border-radius: 10px; background: #111923; }
.next-action-card h2 { font-size: 22px; }
.readiness-card { margin-bottom: 14px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.readiness-ring { width: 58px; height: 58px; font-size: 13px; }
.workflow-strip { gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.workflow-strip article { min-height: 76px; padding: 12px; border: 0; border-radius: 0; background: var(--surface); }
.workflow-strip article > span { width: 28px; height: 28px; background: #29313c; font-size: 12px; }

input, textarea, select { min-height: 40px; padding: 8px 10px; border-radius: 7px; border-color: #343b46; background: #0c0f14; }
input:focus, textarea:focus, select:focus { border-color: #5a91d8; box-shadow: 0 0 0 3px rgba(47,128,237,.13); outline: 0; }
label { color: #d8dde5; }
.stack-form { gap: 14px; }
.route-editor-dialog, .comparison-dialog { border-radius: 12px; background: #0d1117; }
.route-editor-header, .comparison-dialog-header { padding: 18px 20px; background: #141a22; }
.editor-sections { padding: 16px; background: #0b0f14; }
.editor-sections fieldset { border-radius: 8px; background: #10151c; }
.editor-sections legend { font-size: 16px; }
.create-record-form { gap: 14px; padding: 20px; }

.source-tabs { gap: 5px; margin: -4px 0 14px; }
.source-tab { min-height: 38px; padding: 7px 11px; border-radius: 7px; background: var(--surface); }
.source-tab > span { width: 21px; height: 21px; border-radius: 5px; }
.source-context { margin-bottom: 14px; padding: 11px 14px; }
.workbench-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.search-form { max-width: 430px; }
.filter-chips { justify-content: flex-end; }
.filter-chip { min-height: 34px; padding: 6px 9px; border-radius: 7px; background: #12161c; font-size: 12px; }
.filter-chip b { min-width: 19px; height: 19px; }
.data-panel { overflow: auto; }
.data-table th, .workbench-table th { padding: 10px 12px; color: #aeb8c6; background: #151a21; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.data-table td { padding: 11px 12px; border-color: var(--line-soft); }
.workbench-panel { border-color: var(--line); box-shadow: none; }
.comparison-cell { min-width: 210px !important; }
.record-actions { min-width: 125px !important; }
.fleet-pill-list { min-width: 180px; }
.route-table { width: 100%; min-width: 1000px; table-layout: fixed; }
.route-table th:nth-child(1) { width: 17%; }.route-table th:nth-child(2) { width: 12%; }.route-table th:nth-child(3) { width: 14%; }.route-table th:nth-child(4) { width: 14%; }.route-table th:nth-child(5) { width: 11%; }.route-table th:nth-child(6) { width: 11%; }.route-table th:nth-child(7) { width: 21%; }
.route-table .comparison-cell, .route-table .record-actions, .route-table .fleet-pill-list { min-width: 0 !important; }
.route-table .record-actions { flex-wrap: wrap; }
.action-menu { position: relative; }
.action-menu > summary { list-style: none; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu > div { position: absolute; z-index: 12; top: calc(100% + 6px); right: 0; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.action-menu > div > * { padding: 9px 10px; border: 0; border-radius: 5px; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
.action-menu > div > *:hover { background: var(--surface-3); }
.save-indicator { color: var(--green); font-size: 12px; }
.comparison-dialog:has(.route-inline-editor) { width: min(1040px, calc(100vw - 32px)); overflow: auto; }

.connection-choice { gap: 12px; }
.connection-card { min-height: 0; padding: 18px; }
.connection-card.locked { opacity: .78; }
.connection-card > .button { margin-top: 10px; }
.api-connection-panel { padding: 0; }
.api-connection-panel > summary { display: flex; align-items: center; justify-content: space-between; min-height: 100%; padding: 18px; cursor: pointer; list-style: none; }
.api-connection-panel > summary::-webkit-details-marker { display: none; }
.api-connection-panel > summary h2 { margin: 9px 0 5px; }
.api-connection-panel > summary p { margin: 0; }
.api-connection-panel > summary > span:last-child { color: var(--muted); font-size: 20px; }
.api-connection-panel[open] > summary { border-bottom: 1px solid var(--line); }
.api-connection-panel[open] > summary > span:last-child { transform: rotate(180deg); }
.connection-details { padding: 18px; }
.history-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.history-panel > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; list-style: none; }
.history-panel > summary > span:first-child { display: grid; gap: 2px; }
.history-panel > summary small { color: var(--muted); }
.history-panel[open] > summary { border-bottom: 1px solid var(--line); }
.history-panel .card-list { padding: 10px; }
.history-panel .list-card { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
.history-panel .list-card:last-child { border-bottom: 0; }
.user-management-layout { grid-template-columns: minmax(0,1fr); }
.account-directory { position: static; order: -1; }
.user-create-panel { padding: 0; }
.user-create-panel > summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; cursor: pointer; list-style: none; }
.user-create-panel > summary::-webkit-details-marker { display: none; }
.user-create-panel > summary h2, .user-create-panel > summary p { margin-bottom: 2px; }
.user-create-panel > summary small { color: var(--muted); }
.user-create-panel[open] > summary { border-bottom: 1px solid var(--line); }
.user-create-panel > form { padding: 20px; }
.user-account-row { border-radius: 7px; }
.section-tabs { display: flex; gap: 4px; overflow-x: auto; margin: -8px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.section-tabs a { flex: 0 0 auto; padding: 7px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.section-tabs a:hover { color: var(--text); background: var(--surface-2); }
.capture-notice { border-left-color: #4c6787; background: #111820; }
.rule-explainer article { min-height: 66px; padding: 11px; border-radius: 8px; background: var(--surface); }
.rule-explainer article > span { width: 30px; height: 30px; background: #2a3440; font-size: 12px; }
.rule-primary-card { border-color: #3a526e; background: var(--surface); }
.rule-sentence, .advanced-rule-options, .advanced-rule-panel { border-radius: 8px; background: #0e1319; }
.saved-rule-grid { gap: 10px; }
.list-card { padding: 15px 18px; border-radius: 9px; background: var(--surface); }
.global-job-dock { border-radius: 9px; box-shadow: none; }

@media (max-width: 1120px) {
  .workspace-list { grid-template-columns: 1fr; }
  .workspace-row { grid-template-columns: minmax(0,1fr); }
  .metric-grid.manifest-metrics { grid-template-columns: repeat(2,1fr); }
  .workbench-toolbar { align-items: stretch; flex-direction: column; }
  .filter-chips { justify-content: flex-start; }
  .capture-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capture-source-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --sidebar: 72px; }
  .content { padding: 28px 24px 60px; }
  .topbar-context { display: none; }
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .dashboard-hero { padding: 30px; }
  .workspace-bar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .workspace-nav { width: 100%; }
  .workspace-nav a { flex: 1 0 auto; text-align: center; }
  .workbench-journey { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --topbar: 60px; --sidebar: 0px; }
  .topbar { padding: 0 14px; }
  .brand-copy strong { font-size: 18px; }
  .content { padding: 22px 14px 48px; }
  .page-header, .page-header.split { gap: 16px; align-items: stretch; flex-direction: column; margin-bottom: 20px; }
  .page-header.split > .button { width: 100%; }
  .capture-progress-head { align-items: flex-start; flex-direction: column; }
  .capture-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capture-total-progress { text-align: left; }
  .capture-metric-grid, .capture-source-strip { grid-template-columns: 1fr; }
  .capture-recent-list > div:not(.empty-cell) { grid-template-columns: 62px 10px minmax(0, 1fr); }
  .capture-recent-list > div > span:last-child { grid-column: 3; }
  h1 { font-size: 31px; }
  .metric-grid, .metric-grid.manifest-metrics { grid-template-columns: 1fr; }
  .metric-card { min-height: 76px; padding: 14px 16px; }
  .metric-card strong { font-size: 24px; }
  .dashboard-hero { margin: -4px -2px 0; padding: 22px 18px; border-radius: 15px; }
  .dashboard-hero .muted { font-size: 15px; }
  .dashboard-hero .metric-card { min-height: 88px; }
  .workspace-list { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .workspace-row { grid-template-columns: minmax(0,1fr); gap: 15px; min-height: 0; padding: 20px; }
  .workspace-row .workspace-title { grid-column: 1; }
  .workspace-row .workspace-state { grid-column: 1; grid-row: auto; }
  .workspace-row .compact-stats { grid-column: 1; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .workspace-open { grid-column: 1; }
  .workspace-bar { margin-top: 0; }
  .workspace-identity { width: 100%; }
  .workspace-nav { display: grid; grid-template-columns: repeat(4,1fr); overflow: visible; }
  .workspace-nav a { min-width: 0; padding: 8px 4px; }
  .workbench-journey { grid-template-columns: 1fr 1fr; }
  .source-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .entity-row { grid-template-columns: 36px minmax(0,1fr) 22px; gap: 11px; }
  .entity-row > strong { grid-column: 2; text-align: left; }
  .entity-row .row-arrow { grid-column: 3; grid-row: 1 / 3; }
  .source-tabs { display: grid; grid-template-columns: repeat(2,1fr); overflow: visible; }
  .source-tab { min-width: 0; }
  .filter-chips { display: grid; grid-template-columns: repeat(2,1fr); }
  .filter-chip { justify-content: space-between; }
  .search-form { width: 100%; }
  .source-legend { grid-template-columns: 1fr; }
  .rule-workshop, .rule-sentence, .rule-conditions, .connection-choice { grid-template-columns: 1fr; }
  .route-editor-dialog, .create-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .route-editor-header { padding: 16px; }
  .materialize-callout { align-items: stretch; flex-direction: column; margin: 0 14px 16px; }
  .materialize-callout .button { width: 100%; }
  .inline-record-editor { margin: 0 14px 16px; }
  .create-record-form { padding: 16px; }
  .user-management-layout { gap: 14px; }
  .workspace-actions { display: grid; width: 100%; grid-template-columns: 1fr auto; }
  .workspace-actions .button.primary { width: 100%; }
  .workspace-actions .save-indicator { grid-column: 1 / -1; }
  .action-menu > div { right: 0; }
  .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: 9px; background: var(--surface); }
  .workbench-table td { display: grid; width: 100%; min-width: 0 !important; grid-template-columns: 84px minmax(0,1fr); gap: 12px; align-items: start; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
  .workbench-table td:last-child { border-bottom: 0; }
  .workbench-table td::before { content: attr(data-label); padding-top: 2px; color: #768291; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .workbench-table td > input, .workbench-table td > select, .workbench-table td > div { min-width: 0; }
  .workbench-table .comparison-cell, .workbench-table .record-actions { min-width: 0 !important; }
  .workbench-table .record-actions { display: grid; grid-template-columns: 84px 1fr 1fr; }
  .workbench-table .record-actions::before { grid-row: 1; }
  .workbench-table .record-actions .button { width: 100%; }
  .fleet-pill-list { min-width: 0; }
  .cell-subline { white-space: normal; }
}
.api-credential-form {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.api-connection-panel {
  grid-column: 1 / -1;
}

.api-credential-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) minmax(12rem, 1fr) minmax(16rem, 1.4fr);
  gap: 0.85rem;
}

.api-secret-field small,
.api-write-choice small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-weight: 400;
}

.api-write-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.api-write-choice input {
  margin-top: 0.25rem;
}

.api-existing-connections {
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .api-credential-grid {
    grid-template-columns: 1fr;
  }
}


.import-protection-scope {
  margin: 1rem 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border, #344653);
  border-radius: 12px;
}
.import-protection-scope legend { font-weight: 700; padding: 0 .4rem; }
.import-protection-scope label { display: grid; gap: .45rem; }
.import-protection-scope p { line-height: 1.5; margin: .7rem 0; }
.import-protection-scope input { width: 100%; box-sizing: border-box; }
.import-protection-scope details { font-size: .9rem; }
.workbench-edit-hint { max-width: 100ch; line-height: 1.5; }
