:root {
  color-scheme: light;
  --bg: #f3f9ff;
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --surface-3: #eaf5ff;
  --line: #d9e7f0;
  --line-bright: #bcd3e3;
  --text: #071b35;
  --muted: #58738a;
  --faint: #7890a3;
  --cyan: #139ee8;
  --mint: #18b990;
  --amber: #e99a25;
  --critical: #dc5260;
  --tenant-primary: #139ee8;
  --tenant-secondary: #43c6f3;
  --tenant-accent: #18b990;
  --sidebar-w: 238px;
  --rail-h: 76px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background-image:
    linear-gradient(rgba(19,158,232,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,158,232,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--cyan);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

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

.eyebrow, .section-code, .auth-kicker, .count-label, .sidebar label,
.section-index, th, .field-hint, .auth-footer, .rail-system, .user-menu-copy small {
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 3px rgba(96,120,134,.1);
}
.status-dot--good { background: var(--mint); box-shadow: 0 0 9px rgba(102,240,181,.55); }
.status-dot--warn { background: var(--amber); box-shadow: 0 0 9px rgba(255,196,92,.5); }
.status-dot--bad { background: var(--critical); box-shadow: 0 0 9px rgba(255,107,120,.5); }

/* Auth */
.auth-stage {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}
.auth-stage::after {
  content: "";
  position: absolute;
  width: min(46vw, 650px);
  aspect-ratio: 1;
  right: -12vw;
  top: 8vh;
  border: 1px solid rgba(87,214,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(87,214,255,.025), 0 0 0 160px rgba(87,214,255,.018);
  pointer-events: none;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px clamp(24px, 5vw, 72px);
}
.brand-mark {
  width: 48px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  font-family: "Bahnschrift SemiCondensed", sans-serif;
  font-size: 13px;
  color: var(--cyan);
}
.brand-mark i { position: absolute; left: -1px; bottom: -1px; width: 16px; height: 3px; background: var(--cyan); }
.auth-brand p { margin: 0; }
.auth-product { margin-top: 2px !important; font: 700 18px/1 "Bahnschrift SemiCondensed", sans-serif; letter-spacing: .08em; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.auth-main {
  display: flex;
  align-items: center;
  padding: 30px clamp(24px, 11vw, 170px) 72px;
  position: relative;
  z-index: 1;
}
.auth-main::before {
  content: "";
  width: 1px;
  height: 70%;
  background: linear-gradient(transparent, var(--line-bright), transparent);
  position: absolute;
  left: clamp(20px, 7vw, 105px);
}
.auth-panel { width: min(100%, 520px); }
.auth-panel--wide { width: min(100%, 820px); }
.auth-kicker { color: var(--muted); font-size: 11px; display: flex; gap: 10px; align-items: center; margin-bottom: 38px; }
.section-code { margin: 0 0 12px; color: var(--cyan); font-size: 11px; }
.auth-panel h1 {
  margin: 0;
  font: 650 clamp(46px, 6vw, 76px)/.94 "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  letter-spacing: -.045em;
}
.auth-panel:not(.auth-panel--wide) h1 { max-width: 650px; }
.auth-intro { margin: 24px 0 32px; max-width: 530px; color: var(--muted); line-height: 1.65; }
.stack-form { display: grid; gap: 9px; max-width: 460px; }
.stack-form label, .message-form label {
  margin-top: 8px;
  color: #bcd0da;
  font-size: 12px;
  font-weight: 650;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #09141d;
  padding: 13px 14px;
  transition: border-color .15s, background .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-bright); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); background: #0c1a24; outline: none; box-shadow: 0 0 0 2px rgba(87,214,255,.14); }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.action-button {
  border: 0;
  margin-top: 18px;
  padding: 15px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cyan);
  color: #041119;
  font-weight: 750;
  letter-spacing: .015em;
  transition: background .15s, transform .15s;
}
.action-button:hover { background: #8be4ff; transform: translateY(-1px); }
.action-button:active { transform: translateY(0); }
.action-button:disabled { cursor: wait; opacity: .55; transform: none; }
.action-button--compact { width: auto; min-width: 180px; padding: 12px 15px; margin-top: 8px; }
.security-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 460px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.55;
}
.security-note span { color: var(--mint); font-size: 18px; }
.security-note p { margin: 0; }
.security-note strong { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.auth-footer { padding: 18px clamp(24px,5vw,72px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; }
.form-message { padding: 11px 13px; margin: 12px 0 0; border-left: 2px solid var(--mint); background: rgba(102,240,181,.07); color: var(--mint); font-size: 13px; }
.form-message--error { border-color: var(--critical); background: rgba(255,107,120,.08); color: #ff9da6; }
.field-hint { margin: 2px 0 0; color: var(--faint); font-size: 10px; line-height: 1.5; }
.tenant-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 32px 0 18px; }
.tenant-card {
  min-height: 118px;
  padding: 22px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 15px;
  align-items: center;
  text-align: left;
  border: 0;
  background: var(--surface);
}
.tenant-card:hover { background: var(--surface-2); }
.tenant-card .tenant-monogram { border-color: var(--card-color, var(--cyan)); color: var(--card-color, var(--cyan)); }
.tenant-card b { display: block; font: 650 18px "Bahnschrift SemiCondensed", sans-serif; }
.tenant-card small { display: block; margin-top: 4px; color: var(--muted); letter-spacing: .08em; }
.tenant-card > span:last-child { color: var(--card-color, var(--cyan)); font-size: 22px; }
.text-button { border: 0; padding: 8px 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

/* Application shell */
.app-shell { min-height: 100vh; padding-top: var(--rail-h); padding-left: var(--sidebar-w); }
.top-rail {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto 0;
  height: var(--rail-h);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: #08131c;
}
.rail-identity { width: var(--sidebar-w); display: flex; align-items: center; gap: 11px; padding: 0 16px; border-right: 1px solid var(--line); }
.tenant-monogram {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tenant-primary);
  color: var(--tenant-primary);
  font: 700 13px "Bahnschrift SemiCondensed", sans-serif;
  letter-spacing: .03em;
}
.rail-identity strong { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 650 14px "Bahnschrift SemiCondensed", sans-serif; letter-spacing: .04em; }
.rail-identity span:not(.tenant-monogram) { display: block; margin-top: 2px; color: var(--faint); font: 10px "Bahnschrift SemiCondensed", sans-serif; letter-spacing: .08em; }
.rail-spacer { flex: 1; }
.rail-system { display: flex; align-items: center; gap: 20px; padding: 0 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.rail-system span { display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.rail-system b { color: var(--text); font-weight: 650; }
.utc-clock { min-width: 130px; display: flex; align-items: center; justify-content: center; gap: 6px; border-left: 1px solid var(--line); font: 600 18px "Bahnschrift SemiCondensed", monospace; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.utc-clock small { color: var(--cyan); font-size: 9px; letter-spacing: .12em; }
.user-menu { position: relative; min-width: 190px; border-left: 1px solid var(--line); }
.user-menu-button { width: 100%; height: 100%; padding: 0 15px; display: flex; gap: 10px; align-items: center; border: 0; background: transparent; text-align: left; }
.user-menu-button:hover { background: var(--surface); }
#user-initials { width: 32px; height: 32px; display: grid; place-items: center; background: var(--tenant-primary); color: var(--bg); font: 700 11px "Bahnschrift SemiCondensed", sans-serif; }
.user-menu-copy { min-width: 0; flex: 1; }
.user-menu-copy b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-copy small { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }
.user-popover { position: absolute; right: 8px; top: calc(100% + 8px); width: 230px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line-bright); box-shadow: 0 18px 35px rgba(0,0,0,.28); }
.user-popover p { margin: 0 0 12px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.user-popover button { width: 100%; padding: 10px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.sidebar {
  position: fixed;
  z-index: 25;
  left: 0;
  top: var(--rail-h);
  bottom: 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: #08131c;
  border-right: 1px solid var(--line);
}
.sidebar-heading { padding: 22px 18px 12px; display: flex; justify-content: space-between; color: var(--faint); font: 9px "Bahnschrift SemiCondensed", sans-serif; letter-spacing: .14em; }
.sidebar nav { padding: 0 10px; }
.nav-item {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.025); }
.nav-item.is-active { color: var(--text); background: linear-gradient(90deg, rgba(87,214,255,.11), transparent); border-left-color: var(--tenant-primary); }
.nav-item > span { color: var(--faint); font-size: 15px; }
.nav-item.is-active > span { color: var(--tenant-primary); }
.nav-item b { font-size: 12px; font-weight: 600; }
.nav-item small { color: var(--faint); font: 9px "Bahnschrift SemiCondensed", sans-serif; }
.sidebar-bottom { margin-top: auto; padding: 18px; border-top: 1px solid var(--line); }
.sidebar-bottom label { display: block; margin-bottom: 7px; color: var(--faint); font-size: 8px; }
.sidebar-bottom select { padding: 9px; font-size: 11px; }
.sidebar-bottom p { margin: 13px 0 0; color: var(--faint); font-size: 9px; display: flex; align-items: center; gap: 8px; }
.workspace { min-height: calc(100vh - var(--rail-h)); padding: clamp(24px,3vw,42px); }
.global-message { position: sticky; z-index: 10; top: 10px; margin: -12px 0 18px; padding: 12px 15px; border-left: 2px solid var(--amber); background: #281f11; color: var(--amber); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.global-message.is-error { border-color: var(--critical); color: var(--critical); }
.global-message.is-success { border-color: var(--mint); color: var(--mint); }
.page { max-width: 1500px; margin: 0 auto; animation: reveal .3s ease both; }
.page-header { min-height: 92px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-header h1 { margin: 0; font: 650 clamp(31px,4vw,48px)/1 "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif; letter-spacing: -.025em; }
.page-header h1 em { color: var(--muted); font-style: normal; font-weight: 350; }
.refresh-button { margin-top: 5px; padding: 10px 13px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 11px; }
.refresh-button:hover { border-color: var(--cyan); color: var(--text); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, .72fr); gap: 24px; }
.flight-board, .kpi-rail, .provider-mini, .activity-log, .content-section { border-top: 2px solid var(--line-bright); background: var(--surface); }
.flight-board, .activity-log, .content-section { padding: 18px 20px 20px; }
.section-header { min-height: 38px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-header > div { display: flex; align-items: baseline; gap: 10px; }
.section-header h2 { margin: 0; font: 650 17px "Bahnschrift SemiCondensed", sans-serif; letter-spacing: .02em; }
.section-index { color: var(--cyan); font-size: 9px; }
.count-label { color: var(--muted); font-size: 9px; padding-top: 4px; }
.section-header--compact { padding: 17px 18px 10px; margin: 0; }
.ops-sidebar { display: grid; gap: 24px; align-content: start; }
.kpi-rail dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.kpi-rail dl div { position: relative; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.kpi-rail dl div:nth-child(odd) { border-right: 1px solid var(--line); }
.kpi-rail dl div:last-child { grid-column: span 2; border-right: 0; }
.kpi-rail dt { color: var(--muted); font-size: 10px; }
.kpi-rail dd { margin: 4px 0 0; font: 650 27px "Bahnschrift SemiCondensed", monospace; font-variant-numeric: tabular-nums; }
.kpi-rail dl span { color: var(--faint); font: 8px "Bahnschrift SemiCondensed", sans-serif; letter-spacing: .1em; }
#kpi-failed:not(:empty), #kpi-weather:not(:empty) { color: var(--amber); }
.provider-mini ul { list-style: none; margin: 0; padding: 0; }
.provider-mini li { padding: 11px 18px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); font-size: 11px; }
.provider-mini li span:first-child { text-transform: capitalize; }
.provider-mini li span:last-child { color: var(--muted); }
.inline-link { border: 0; background: transparent; color: var(--cyan); font-size: 9px; letter-spacing: .04em; padding: 3px; }

/* Flight strips */
.flight-list { position: relative; padding-left: 18px; }
.flight-list::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: 16px; width: 1px; background: linear-gradient(var(--tenant-primary), var(--line), transparent); }
.flight-strip {
  position: relative;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: minmax(115px, .8fr) minmax(180px, 1.45fr) repeat(3, minmax(66px,.55fr)) minmax(100px,.8fr) minmax(76px,.55fr);
  min-height: 82px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tenant-primary);
}
.flight-strip::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--tenant-primary); left: -23px; top: 34px; box-shadow: 0 0 0 4px var(--surface), 0 0 12px var(--tenant-primary); }
.flight-strip:last-child { margin-bottom: 0; }
.flight-strip > div { padding: 13px 12px; border-right: 1px solid var(--line); }
.flight-strip > div:last-child { border-right: 0; }
.flight-call strong { display: block; font: 700 19px "Bahnschrift SemiCondensed", monospace; letter-spacing: .04em; }
.flight-call span, .telemetry span, .flight-eta span, .route small { color: var(--faint); font: 8px "Bahnschrift SemiCondensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.route strong { display: flex; justify-content: space-between; align-items: center; gap: 9px; font: 650 16px "Bahnschrift SemiCondensed", monospace; letter-spacing: .04em; }
.route strong i { height: 1px; flex: 1; position: relative; background: var(--line-bright); }
.route strong i::after { content: ""; position: absolute; right: 0; top: -2px; border-left: 4px solid var(--line-bright); border-top: 2px solid transparent; border-bottom: 2px solid transparent; }
.route-progress { width: 100%; height: 2px; display: block; margin-top: 9px; border: 0; appearance: none; background: var(--line); }
.route-progress::-webkit-progress-bar { background: var(--line); }
.route-progress::-webkit-progress-value { background: var(--tenant-primary); }
.route-progress::-moz-progress-bar { background: var(--tenant-primary); }
.telemetry strong, .flight-eta strong { display: block; margin-top: 3px; font: 650 15px "Bahnschrift SemiCondensed", monospace; font-variant-numeric: tabular-nums; }
.flight-phase { display: flex; flex-direction: column; justify-content: center; }
.flight-phase b { color: var(--mint); font: 600 10px "Bahnschrift SemiCondensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.flight-phase small { color: var(--faint); font-size: 8px; margin-top: 5px; }
.flight-gate-button {
  align-self: flex-start;
  margin-top: 7px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--tenant-primary) 45%, var(--line));
  border-radius: 6px;
  color: var(--tenant-primary);
  background: transparent;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.flight-gate-button:hover { color: white; background: var(--tenant-primary); }
.flight-list--full .flight-strip { grid-template-columns: minmax(125px,.8fr) minmax(220px,1.6fr) repeat(3,minmax(90px,.55fr)) minmax(120px,.7fr) minmax(90px,.55fr); }
.empty-state { min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px dashed var(--line); padding: 30px; }
.empty-symbol { color: var(--line-bright); font: 36px "Bahnschrift SemiCondensed", sans-serif; }
.empty-state h3 { margin: 12px 0 7px; font: 600 18px "Bahnschrift SemiCondensed", sans-serif; }
.empty-state p { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.loading-state { min-height: 240px; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; color: var(--muted); }
.loading-state span { width: 5px; height: 22px; background: var(--cyan); animation: pulse 1s infinite alternate; }
.loading-state span:nth-child(2) { animation-delay: .2s; }
.loading-state span:nth-child(3) { animation-delay: .4s; }
.loading-state p { flex-basis: 100%; margin: 2px 0 0; text-align: center; font-size: 11px; }
.activity-log { margin-top: 24px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { padding: 10px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--faint); text-align: left; font-size: 8px; font-weight: 500; }
td { padding: 12px; border-bottom: 1px solid rgba(32,52,66,.7); color: #c7d9e1; font-size: 11px; vertical-align: top; }
td.mono { font-family: "Bahnschrift SemiCondensed", monospace; font-variant-numeric: tabular-nums; color: var(--text); }
.status-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-transform: uppercase; font: 8px "Bahnschrift SemiCondensed", sans-serif; letter-spacing: .07em; }
.table-empty { padding: 30px; text-align: center; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; }

/* Pages */
.content-section { min-width: 0; }
.dispatch-layout { display: grid; grid-template-columns: minmax(350px,.8fr) minmax(420px,1.2fr); gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > div { min-width: 0; }
.message-form { display: grid; gap: 8px; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--faint); font: 10px "Bahnschrift SemiCondensed", monospace; }
.message-list { max-height: 610px; overflow-y: auto; border-top: 1px solid var(--line); }
.message-entry { padding: 14px 4px; display: grid; grid-template-columns: 76px 1fr auto; gap: 13px; border-bottom: 1px solid var(--line); }
.message-entry > time { color: var(--faint); font: 10px "Bahnschrift SemiCondensed", monospace; font-variant-numeric: tabular-nums; }
.message-entry header { display: flex; gap: 8px; align-items: center; font: 650 11px "Bahnschrift SemiCondensed", monospace; }
.message-entry header span { color: var(--cyan); }
.message-entry p { margin: 7px 0 0; color: #c7d9e1; font: 12px/1.5 "Segoe UI", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-entry aside { color: var(--faint); font: 8px "Bahnschrift SemiCondensed", sans-serif; text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.attention-board { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.attention-item { padding: 24px; border-right: 1px solid var(--line); }
.attention-item:last-child { border-right: 0; }
.attention-item b { display: block; font: 650 38px "Bahnschrift SemiCondensed", monospace; }
.attention-item span { color: var(--muted); font-size: 11px; }
.attention-item small { display: block; margin-top: 14px; color: var(--faint); font-size: 9px; }
.provider-list { border-top: 1px solid var(--line); }
.provider-row { display: grid; grid-template-columns: 46px minmax(120px,1fr) minmax(110px,.7fr) minmax(130px,1fr) auto; gap: 14px; align-items: center; padding: 16px 10px; border-bottom: 1px solid var(--line); }
.provider-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-bright); color: var(--cyan); font: 700 11px "Bahnschrift SemiCondensed", sans-serif; text-transform: uppercase; }
.provider-row h3 { margin: 0; text-transform: capitalize; font: 650 14px "Bahnschrift SemiCondensed", sans-serif; }
.provider-row p { margin: 3px 0 0; color: var(--faint); font-size: 9px; }
.provider-data span { display: block; color: var(--faint); font: 8px "Bahnschrift SemiCondensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.provider-data strong { display: block; margin-top: 4px; font-size: 10px; font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.provider-state { min-width: 100px; text-align: right; }
.admin-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.admin-tabs button { padding: 11px 18px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); }
.admin-tabs button[aria-selected="true"] { color: var(--text); border-color: var(--cyan); background: rgba(87,214,255,.05); }
.admin-split { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(320px,.65fr); gap: 24px; }
.stack-form--compact { gap: 7px; max-width: none; }
.stack-form--compact input, .stack-form--compact select { padding: 10px 11px; }
.admin-form-section fieldset { margin: 10px 0; border: 1px solid var(--line); padding: 12px; }
.admin-form-section legend { padding: 0 6px; color: var(--muted); font-size: 10px; }
.check-list { display: grid; gap: 7px; max-height: 130px; overflow-y: auto; }
.check-list label { margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check-list input { width: auto; }
.airline-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.airline-row { min-height: 76px; padding: 13px 15px; display: grid; grid-template-columns: 40px 1fr auto; gap: 13px; align-items: center; background: var(--surface-2); }
.airline-swatch { width: 32px; height: 32px; border: 1px solid var(--airline-color); color: var(--airline-color); display: grid; place-items: center; font: 700 9px "Bahnschrift SemiCondensed", sans-serif; }
.airline-row h3 { margin: 0; font: 650 14px "Bahnschrift SemiCondensed", sans-serif; }
.airline-row p { margin: 3px 0 0; color: var(--faint); font-size: 9px; }
.mobile-only { display: none; }
.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 20px; }

@keyframes pulse { from { opacity: .25; transform: scaleY(.45); } to { opacity: 1; transform: scaleY(1); } }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1180px) {
  .rail-system span:last-child { display: none; }
  .overview-grid { grid-template-columns: minmax(0,1.55fr) minmax(240px,.7fr); }
  .flight-strip { grid-template-columns: minmax(105px,.8fr) minmax(160px,1.35fr) repeat(2,minmax(64px,.55fr)) minmax(92px,.7fr) minmax(72px,.5fr); }
  .flight-strip .telemetry:nth-of-type(5) { display: none; }
  .dispatch-layout { grid-template-columns: minmax(320px,.8fr) minmax(380px,1.1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 194px; }
  .workspace { padding: 25px 22px; }
  .overview-grid { grid-template-columns: 1fr; }
  .ops-sidebar { grid-template-columns: 1fr 1fr; }
  .flight-strip { grid-template-columns: minmax(105px,.75fr) minmax(170px,1.4fr) repeat(2,minmax(65px,.55fr)) minmax(92px,.7fr); }
  .dispatch-layout, .admin-split { grid-template-columns: 1fr; }
  .message-list { max-height: none; }
  .rail-system { display: none; }
  .user-menu { min-width: 160px; }
  .attention-board { grid-template-columns: 1fr 1fr; }
  .attention-item:nth-child(2) { border-right: 0; }
  .attention-item { border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  :root { --rail-h: 58px; }
  .mobile-only { display: block; }
  .app-shell { padding-left: 0; }
  .top-rail { align-items: stretch; }
  #mobile-menu { width: 48px; border-right: 1px solid var(--line); }
  .rail-identity { width: auto; flex: 1; border-right: 0; padding: 0 10px; }
  .tenant-monogram { width: 32px; height: 32px; flex-basis: 32px; }
  .utc-clock { min-width: 102px; font-size: 15px; }
  .user-menu { min-width: 54px; }
  .user-menu-button { padding: 0 10px; justify-content: center; }
  .user-menu-copy, .user-menu-button > span:last-child { display: none; }
  .sidebar { width: min(82vw,280px); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 15px 0 30px rgba(0,0,0,.3); }
  .sidebar.is-open { transform: translateX(0); }
  .workspace { padding: 22px 15px; }
  .page-header { min-height: 102px; }
  .page-header h1 { font-size: 34px; }
  .refresh-button { align-self: flex-start; padding: 9px; font-size: 0; }
  .refresh-button span { font-size: 16px; }
  .ops-sidebar { grid-template-columns: 1fr; }
  .flight-board, .activity-log, .content-section { padding: 15px 13px; }
  .flight-strip {
    grid-template-columns: 1fr 1.55fr .85fr;
    grid-template-areas: "call route phase" "alt speed eta";
  }
  .flight-strip > div { border-bottom: 1px solid var(--line); }
  .flight-strip .flight-call { grid-area: call; }
  .flight-strip .route { grid-area: route; }
  .flight-strip .flight-phase { grid-area: phase; }
  .flight-strip .telemetry:nth-of-type(3) { grid-area: alt; display: block; }
  .flight-strip .telemetry:nth-of-type(4) { grid-area: speed; display: block; }
  .flight-strip .telemetry:nth-of-type(5) { display: none; }
  .flight-strip .flight-eta { grid-area: eta; }
  .tenant-grid { grid-template-columns: 1fr; }
  .auth-panel h1 { font-size: 48px; }
  .auth-main { padding-top: 20px; }
  .auth-main::before { display: none; }
  .auth-footer span:first-child, .auth-footer span:last-child { display: none; }
  .auth-footer { justify-content: center; }
  .provider-row { grid-template-columns: 38px 1fr auto; }
  .provider-data { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 450px) {
  .auth-brand { padding: 20px; }
  .auth-main { padding: 20px 20px 55px; }
  .auth-panel h1 { font-size: 42px; }
  .auth-kicker { margin-bottom: 26px; }
  .tenant-card { padding: 16px; min-height: 96px; }
  .utc-clock { display: none; }
  .page-header { min-height: 92px; }
  .flight-list { padding-left: 13px; }
  .flight-strip::before { left: -18px; }
  .flight-strip > div { padding: 10px 8px; }
  .flight-call strong { font-size: 15px; }
  .route strong { font-size: 13px; }
  .telemetry strong, .flight-eta strong { font-size: 12px; }
  .attention-board { grid-template-columns: 1fr; }
  .attention-item { border-right: 0; }
  .message-entry { grid-template-columns: 56px 1fr; }
  .message-entry aside { grid-column: 2; text-align: left; }
}

/* Alliance Operations Cloud redesign */
:root {
  color-scheme: light;
  --bg: #f4f9fd;
  --surface: #ffffff;
  --surface-2: #f6fafd;
  --surface-3: #eaf4fb;
  --line: #d9e7f0;
  --line-bright: #bfd4e3;
  --text: #0a2540;
  --muted: #58738a;
  --faint: #7890a3;
  --cyan: #139ee8;
  --mint: #18b990;
  --amber: #e99a25;
  --critical: #dc5260;
  --tenant-primary: #139ee8;
  --tenant-secondary: #43c6f3;
  --tenant-accent: #18b990;
  --sidebar-w: 238px;
  --rail-h: 76px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

html, body { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 84% 4%, rgba(67,198,243,.13), transparent 25rem),
    linear-gradient(145deg, #fff 0%, #f4f9fd 50%, #ecf7fd 100%);
  color: var(--text);
}
body::before {
  opacity: .24;
  background-image:
    linear-gradient(rgba(19,158,232,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,158,232,.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.status-dot {
  box-shadow: 0 0 0 3px rgba(120,144,163,.12);
}
.status-dot--good { background: var(--mint); box-shadow: 0 0 0 3px rgba(24,185,144,.13); }
.status-dot--warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(233,154,37,.12); }
.status-dot--bad { background: var(--critical); box-shadow: 0 0 0 3px rgba(220,82,96,.12); }

.eyebrow, .section-code, .auth-kicker, .count-label, .sidebar label,
.section-index, th, .field-hint, .auth-footer, .rail-system, .user-menu-copy small {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: .15em;
}

/* Split alliance authentication */
.auth-stage {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 88%, rgba(19,158,232,.11), transparent 26rem),
    linear-gradient(145deg, #fff 0%, #f4f9fd 58%, #e6f5fd 100%);
}
.auth-stage::after {
  width: 540px;
  right: -210px;
  top: 18%;
  border-color: rgba(19,158,232,.12);
  box-shadow: 0 0 0 88px rgba(19,158,232,.022), 0 0 0 176px rgba(19,158,232,.016);
}
.auth-brand { padding: 30px clamp(24px, 5vw, 76px); }
.brand-mark {
  border: 0;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, #0759a6, #1689eb);
  box-shadow: 0 10px 26px rgba(7,89,166,.2);
}
.brand-mark i { left: 10px; right: 10px; width: auto; bottom: 9px; height: 2px; background: rgba(255,255,255,.7); }
.auth-product { color: var(--text); }
.auth-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .7fr);
  gap: clamp(45px, 8vw, 130px);
  align-items: center;
  padding: 30px clamp(24px, 7vw, 110px) 72px;
}
.auth-main::before { display: none; }
.auth-story { max-width: 740px; }
.auth-story { position: relative; isolation: isolate; }
.auth-story::before,
.auth-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(19,158,232,.14);
  border-radius: 50%;
  pointer-events: none;
}
.auth-story::before { width: 390px; height: 390px; left: -170px; top: -110px; }
.auth-story::after { width: 14px; height: 14px; left: 212px; top: -18px; border: 5px solid #fff; background: #139ee8; box-shadow: 0 7px 20px rgba(19,158,232,.3); }
.auth-story h1 {
  margin: 0;
  font: 750 clamp(58px, 7.15vw, 92px)/.93 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: clamp(-5.5px, -.065em, -2.5px);
  color: #0a2540;
}
.auth-story h1 span { color: #139ee8; }
.auth-story > p:not(.eyebrow) {
  max-width: 620px;
  margin: 30px 0;
  color: #58738a;
  font-size: 17px;
  line-height: 1.7;
}
.auth-story-status {
  display: flex;
  gap: 28px;
  align-items: center;
  color: #58738a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}
.auth-story-status span { display: flex; gap: 9px; align-items: center; }
.auth-panel {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(175,205,224,.7);
  border-radius: 24px;
  color: #071b35;
  background:
    radial-gradient(circle at 92% 2%, rgba(67,198,243,.14), transparent 15rem),
    rgba(255,255,255,.96);
  box-shadow: 0 32px 70px rgba(8,67,105,.12);
}
.auth-panel--wide { max-width: 670px; }
.auth-panel .section-code { color: #139ee8; }
.auth-panel h1 {
  color: #071b35;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}
.auth-panel .auth-intro { color: #58738a; }
.auth-panel .auth-kicker { color: #6f8b9f; }
.auth-panel .stack-form label { color: #294f6c; }
.auth-panel input, .auth-panel select {
  border-color: #c9dce8;
  border-radius: 11px;
  background: #f9fcff;
  color: #071b35;
}
.auth-panel input::placeholder { color: #8aa0b1; }
.auth-panel input:focus, .auth-panel select:focus {
  border-color: #139ee8;
  background: white;
  box-shadow: 0 0 0 3px rgba(19,158,232,.14);
}
.auth-panel .action-button {
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, #0759a6, #1689eb);
  box-shadow: 0 12px 28px rgba(7,89,166,.26);
}
.auth-panel .action-button:hover { background: linear-gradient(135deg, #0867ba, #22a3f2); }
.auth-panel .security-note { border-color: #dce8f0; color: #7890a3; }
.auth-panel .security-note strong { color: #315a78; }
.auth-panel .field-hint { color: #7890a3; }
.auth-panel .tenant-grid { border-color: #dce8f0; background: #dce8f0; }
.auth-panel .tenant-card { color: #071b35; background: #fff; }
.auth-panel .tenant-card:hover { background: #f0f8fe; }
.auth-panel .tenant-card small { color: #7890a3; }
.auth-panel .text-button { color: #47728e; }
.auth-footer { border-color: rgba(10,37,64,.08); color: #7890a3; }

/* Shell and navigation */
.top-rail {
  color: var(--text);
  border-color: #dce9f1;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 25px rgba(8,47,82,.045);
}
.alliance-wordmark {
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.alliance-wordmark strong {
  color: #082f52;
  font-size: 13px;
  letter-spacing: -.01em;
}
.alliance-wordmark span {
  margin-top: 2px;
  color: #139ee8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}
.rail-identity {
  width: auto;
  max-width: 240px;
  border-right: 0;
  padding: 0 22px;
}
.tenant-monogram {
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--tenant-primary);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tenant-primary) 22%, transparent);
}
.rail-identity strong { color: #082f52; }
.rail-identity span:not(.tenant-monogram) { color: #7890a3; }
.rail-system, .utc-clock, .user-menu { border-color: var(--line); }
.rail-system { color: #58738a; }
.utc-clock { color: #082f52; }
.utc-clock small { color: #139ee8; }
.user-menu-button:hover { background: #f5fafe; }
#user-initials {
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--tenant-primary), #139ee8);
}
.user-menu-copy b { color: #082f52; }
.user-menu-copy small { color: #7890a3; }
.user-popover {
  border-color: var(--line);
  border-radius: 15px;
  color: var(--text);
  background: white;
  box-shadow: 0 22px 50px rgba(8,47,82,.14);
}
.user-popover button { border-color: var(--line); border-radius: 9px; color: var(--text); background: #f5fafe; }
.sidebar {
  border-color: #dce9f1;
  color: var(--text);
  background: rgba(250,253,255,.94);
}
.sidebar-heading { color: #7890a3; }
.nav-item {
  min-height: 48px;
  margin: 3px 0;
  border: 0;
  border-radius: 11px;
  color: #617b90;
}
.nav-item:hover { color: #082f52; background: #edf6fc; }
.nav-item.is-active {
  color: #082f52;
  border: 0;
  background: linear-gradient(90deg, rgba(19,158,232,.13), rgba(67,198,243,.045));
}
.nav-item.is-active::after {
  content: "";
  width: 4px;
  height: 21px;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
  border-radius: 3px;
  background: var(--tenant-primary);
}
.nav-item > span, .nav-item.is-active > span { color: #139ee8; }
.nav-item small { display: none; }
.sidebar-bottom { border-color: var(--line); }
.sidebar-bottom label, .sidebar-bottom p { color: #7890a3; }
.sidebar-bottom select {
  border-radius: 10px;
  color: #082f52;
  background: white;
}
.workspace { background: transparent; }
.global-message {
  border: 1px solid #f2d9a9;
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  color: #82540f;
  background: #fff9ee;
  box-shadow: 0 10px 24px rgba(8,47,82,.07);
}
.global-message.is-error { color: #a52f3b; background: #fff3f4; }
.global-message.is-success { color: #0b795d; background: #effbf7; }

/* Content surfaces */
.page-header {
  min-height: 108px;
  border-color: rgba(8,47,82,.1);
}
.page-header h1 {
  color: #082f52;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: clamp(40px, 4.2vw, 62px);
  font-weight: 750;
  letter-spacing: -.055em;
}
.page-header h1 em { color: #139ee8; font-weight: 720; }
.page-header .eyebrow { color: #6b879b; }
.refresh-button, .secondary-button {
  min-height: 44px;
  border: 1px solid #cfe0eb;
  border-radius: 11px;
  color: #315a78;
  background: rgba(255,255,255,.8);
}
.refresh-button:hover, .secondary-button:hover { border-color: #139ee8; color: #0a6fac; background: white; }
.flight-board, .kpi-rail, .provider-mini, .activity-log, .content-section,
.provider-workspace {
  border: 1px solid rgba(190,213,228,.72);
  border-top: 1px solid rgba(190,213,228,.72);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(8,47,82,.055);
}
.section-header h2 { color: #082f52; }
.section-index { color: #139ee8; }
.count-label { color: #7890a3; }
.flight-board {
  color: #071b35;
  border-color: rgba(190,213,228,.72);
  background:
    radial-gradient(circle at 92% 2%, rgba(67,198,243,.12), transparent 18rem),
    rgba(255,255,255,.96);
  box-shadow: 0 18px 45px rgba(8,47,82,.055);
}
.flight-board .section-header h2 { color: #071b35; }
.flight-board .count-label { color: #6f899c; }
.flight-board .flight-strip { border-color: #d9e7f0; background: #f7fbff; }
.flight-board .flight-strip > div { border-color: #dfeaf1; }
.flight-board .flight-list::before { background: linear-gradient(var(--tenant-primary), #c9dce8, transparent); }
.flight-board .flight-strip::before { box-shadow: 0 0 0 4px #fff, 0 0 12px color-mix(in srgb, var(--tenant-primary) 45%, transparent); }
.flight-board .route-progress, .flight-board .route-progress::-webkit-progress-bar { background: #dce8f0; }
.flight-board .empty-state { border-color: #cbdde8; }
.flight-board .empty-state h3 { color: #071b35; }
.flight-board .empty-state p { color: #6d879a; }
.flight-board .loading-state { color: #6d879a; }
.kpi-rail dl, .kpi-rail dl div, .provider-mini li { border-color: #e1ebf2; }
.kpi-rail dt, .provider-mini li span:last-child { color: #6d879a; }
.kpi-rail dd { color: #082f52; }
.inline-link { color: #0787cf; }
.activity-log th, table th { border-color: #dce8f0; color: #6e8799; background: #f7fbfe; }
.activity-log td, td { border-color: #e5eef4; color: #31556f; }
td.mono { color: #082f52; }
.status-label { color: #617d91; }
.empty-state, .table-empty { border-color: #cbdde8; color: #688296; }
.empty-state h3 { color: #082f52; }
.empty-state p { color: #6d879a; }
.empty-symbol { color: #9ac7df; }
input, select, textarea {
  border-color: #cbdde8;
  border-radius: 10px;
  color: #0a2540;
  background: white;
}
input:hover, select:hover, textarea:hover { border-color: #9bc8df; }
input:focus, select:focus, textarea:focus {
  border-color: #139ee8;
  background: white;
  box-shadow: 0 0 0 3px rgba(19,158,232,.13);
}
.stack-form label, .message-form label { color: #315a78; }
.action-button {
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, #0759a6, #1689eb);
  box-shadow: 0 10px 24px rgba(7,89,166,.2);
}
.action-button:hover { color: white; background: linear-gradient(135deg, #0867ba, #22a3f2); }
.message-entry, .message-list, .provider-list { border-color: #e1ebf2; }
.message-entry p { color: #31556f; }
.message-entry header { color: #082f52; }
.attention-board, .attention-item { border-color: #dce8f0; }
.attention-item b { color: #082f52; }
.admin-tabs { border-color: #dce8f0; }
.admin-tabs button { color: #617d91; }
.admin-tabs button[aria-selected="true"] { color: #082f52; border-color: #139ee8; background: #edf8fe; }
.airline-list { border-color: #dce8f0; background: #dce8f0; }
.airline-row { background: white; }
.airline-row h3 { color: #082f52; }

/* Provider workspace and operations deck */
.operations-deck {
  min-height: 178px;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(180px, .65fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  color: #edf8ff;
  background:
    radial-gradient(circle at 90% 4%, rgba(67,198,243,.22), transparent 19rem),
    linear-gradient(145deg, #0a4069 0%, #062b4c 54%, #041e34 100%);
  box-shadow: 0 30px 65px rgba(6,43,76,.19);
  transform: perspective(1200px) rotateX(.35deg);
}
.operations-deck::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -180px;
  bottom: -300px;
  border: 1px solid rgba(67,198,243,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(67,198,243,.035), 0 0 0 110px rgba(67,198,243,.02);
}
.deck-brand, .deck-health, .deck-metrics { position: relative; z-index: 1; }
.deck-brand { display: flex; align-items: center; gap: 18px; }
.deck-monogram {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--tenant-primary), #139ee8);
  box-shadow: 0 15px 32px rgba(0,0,0,.2);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
}
.deck-brand p, .deck-health p {
  margin: 0 0 8px;
  color: #8fb6cb;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .15em;
}
.deck-brand h2 { margin: 0; color: white; font-size: clamp(24px,3vw,36px); letter-spacing: -.035em; }
.deck-brand > div > span { display: block; margin-top: 6px; color: #9dc1d4; font-size: 10px; letter-spacing: .1em; }
.deck-health {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  border-left: 1px solid rgba(159,202,225,.18);
  border-right: 1px solid rgba(159,202,225,.18);
}
.deck-health p { display: flex; align-items: center; gap: 8px; }
.deck-health strong { font-size: 35px; font-variant-numeric: tabular-nums; }
.deck-health > span { color: #8fb6cb; font-size: 11px; }
.deck-metrics { margin: 0; display: grid; grid-template-columns: repeat(3,1fr); align-items: center; }
.deck-metrics div { text-align: center; }
.deck-metrics dt { color: #8fb6cb; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.deck-metrics dd { margin: 7px 0 0; color: white; font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; }
#provider-error-count:not(:empty) { color: #ff8c97; }
.tenant-scope-note, .readonly-note {
  margin: 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid #cce6f4;
  border-radius: 13px;
  color: #41647d;
  background: rgba(236,248,254,.82);
  font-size: 12px;
}
.tenant-scope-note > span { color: #139ee8; font-size: 22px; }
.tenant-scope-note p { margin: 0; line-height: 1.55; }
.tenant-scope-note strong { display: block; color: #082f52; }
.readonly-note { border-color: #efd7a9; color: #80571c; background: #fff9ee; }
.provider-workspace { padding: 24px; }
.provider-card-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.provider-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #d9e7f0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8,47,82,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.provider-card:hover { transform: translateY(-2px); border-color: #b9d7e8; box-shadow: 0 20px 38px rgba(8,47,82,.08); }
.provider-card header {
  min-height: 128px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 18px;
}
.provider-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0877b9;
  background: #eaf7fe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}
.provider-card h3 { margin: 1px 0 5px; color: #082f52; font-size: 17px; }
.provider-card header p { margin: 0; color: #678297; font-size: 11px; line-height: 1.5; }
.provider-chip {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  text-transform: uppercase;
}
.provider-chip--muted { color: #647f93; background: #edf3f7; }
.provider-chip--saved { color: #0877b9; background: #e8f6fd; }
.provider-chip--success { color: #087b60; background: #e6f8f2; }
.provider-chip--error { color: #b63744; background: #fff0f1; }
.provider-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid #e2ecf2;
  border-bottom: 1px solid #e2ecf2;
  background: #f8fbfd;
}
.provider-card-meta > span { min-width: 0; padding: 12px 15px; }
.provider-card-meta > span:first-child { border-right: 1px solid #e2ecf2; }
.provider-card-meta small { display: block; color: #8a9eac; font-size: 7px; font-weight: 750; letter-spacing: .1em; }
.provider-card-meta b { display: block; margin-top: 4px; color: #49697f; font-size: 9px; font-weight: 650; overflow-wrap: anywhere; }
.credential-lock { color: #18a17d; font-style: normal; }
.provider-error { margin: 0; padding: 10px 15px; color: #a43a45; background: #fff5f5; font-size: 10px; line-height: 1.45; }
.provider-card footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.provider-toggle {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: #6d879a;
  background: transparent;
  font-size: 9px;
}
.provider-toggle > span { width: 36px; height: 20px; padding: 2px; border-radius: 999px; background: #cbd9e2; transition: background .15s; }
.provider-toggle > span::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(8,47,82,.18); transition: transform .15s; }
.provider-toggle.is-on > span { background: #18b990; }
.provider-toggle.is-on > span::after { transform: translateX(16px); }
.provider-toggle:disabled { cursor: not-allowed; opacity: .55; }
.configure-button {
  min-height: 38px;
  padding: 0 4px;
  border: 0;
  color: #087fc3;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}
.configure-button:hover { color: #0759a6; }
.provider-loading {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #6d879a;
  font-size: 12px;
}
.provider-loading span { width: 36px; height: 36px; border: 3px solid #d7e8f2; border-top-color: #139ee8; border-radius: 50%; animation: spin .8s linear infinite; }
.provider-loading p { margin: 0; }

/* Provider configuration drawer */
.provider-dialog {
  width: min(650px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto 0 auto auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px 0 0 24px;
  color: #0a2540;
  background: #fff;
  box-shadow: -24px 0 70px rgba(6,43,76,.22);
}
.provider-dialog::backdrop { background: rgba(6,31,52,.48); }
.provider-dialog[open] { animation: drawer-in .24s ease both; }
.provider-dialog form { max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.provider-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 24px;
  color: white;
  background:
    radial-gradient(circle at 95% 0, rgba(67,198,243,.2), transparent 14rem),
    linear-gradient(145deg, #0a4069, #062b4c);
}
.provider-dialog-header .eyebrow { color: #89b8d0; }
.provider-dialog-header h2 { margin: 0; font-size: 31px; letter-spacing: -.035em; }
.provider-dialog-header p:last-child { max-width: 500px; margin: 9px 0 0; color: #a7c7d9; font-size: 12px; line-height: 1.5; }
.dialog-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  color: white;
  background: rgba(255,255,255,.06);
  font-size: 24px;
}
.provider-dialog-body { padding: 22px 30px 28px; overflow-y: auto; }
.provider-security-banner {
  display: flex;
  gap: 11px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border-radius: 12px;
  color: #35627e;
  background: #edf8fe;
}
.provider-security-banner > span { color: #18a17d; font-size: 20px; }
.provider-security-banner p { margin: 0; font-size: 11px; line-height: 1.5; }
.provider-security-banner strong { display: block; color: #082f52; }
.provider-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.provider-field { min-width: 0; }
.provider-field:has(input[type="url"]), .provider-event-fieldset, .provider-field-note { grid-column: 1 / -1; }
.provider-field label, .provider-event-fieldset legend { display: block; margin-bottom: 7px; color: #315a78; font-size: 11px; font-weight: 700; }
.provider-field input { min-height: 45px; }
.provider-field small { display: block; margin-top: 6px; color: #8299aa; font-size: 9px; line-height: 1.45; }
.provider-field--secret input { padding-right: 38px; background: #fbfdff; }
.provider-event-fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d9e7f0;
  border-radius: 11px;
}
.provider-event-fieldset legend { padding: 0 5px; }
.provider-event-fieldset label { display: flex; gap: 8px; align-items: center; color: #49697f; font-size: 10px; }
.provider-event-fieldset input { width: auto; }
.provider-field-note { margin: 0; padding: 12px 14px; border-left: 3px solid #43c6f3; color: #58738a; background: #f5fbfe; font-size: 10px; line-height: 1.5; }
.provider-enable-control {
  min-height: 66px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  border: 1px solid #d9e7f0;
  border-radius: 12px;
  background: #f8fbfd;
}
.provider-enable-control strong { display: block; color: #082f52; font-size: 12px; }
.provider-enable-control small { display: block; margin-top: 3px; color: #7890a3; font-size: 9px; }
.provider-enable-control input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: #18b990; }
.provider-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 30px;
  border-top: 1px solid #dfeaf1;
  background: #f8fbfd;
}
.secondary-button { padding: 0 15px; }
.secondary-button--blue { color: #087fc3; }
.provider-dialog-actions .action-button { margin: 0; min-height: 44px; }
.flight-gate-dialog { width: min(540px, calc(100vw - 32px)); }
.flight-gate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flight-gate-fields label { color: #47677d; font-size: 11px; font-weight: 700; }
.flight-gate-fields input, .flight-gate-fields select { margin-top: 7px; }
.message-entry p { white-space: pre-wrap; }
.message-reply { margin-top: 10px; }
.message-reply summary {
  width: fit-content;
  cursor: pointer;
  color: var(--tenant-primary);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.message-reply form { display: grid; gap: 8px; margin-top: 8px; }
.message-reply textarea { min-height: 72px; resize: vertical; }
.message-reply .small-primary-button { justify-self: start; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drawer-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .provider-card-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .operations-deck { grid-template-columns: 1.2fr .7fr; }
  .deck-metrics { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(159,202,225,.18); }
  .alliance-wordmark { width: var(--sidebar-w); }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 204px; }
  .alliance-wordmark { display: none; }
  .auth-main { grid-template-columns: 1fr; gap: 42px; padding-top: 20px; }
  .auth-story { max-width: 700px; }
  .auth-story h1 { font-size: clamp(55px,10vw,78px); }
  .auth-panel { justify-self: start; max-width: 620px; }
  .operations-deck { grid-template-columns: 1fr 1fr; }
  .provider-dialog { width: min(620px, calc(100vw - 20px)); }
}

@media (max-width: 700px) {
  :root { --rail-h: 62px; }
  .auth-main { padding: 20px 20px 55px; }
  .auth-story h1 { font-size: clamp(47px,14vw,64px); }
  .auth-story > p:not(.eyebrow) { font-size: 14px; }
  .auth-story-status { flex-direction: column; align-items: flex-start; gap: 10px; }
  .auth-panel { padding: 27px 22px; border-radius: 20px; }
  .auth-panel h1 { font-size: 37px; }
  .rail-identity { max-width: none; }
  .sidebar { background: white; }
  .page-header h1 { font-size: 39px; }
  .provider-workspace { padding: 17px 13px; }
  .provider-card-list { grid-template-columns: 1fr; }
  .operations-deck { grid-template-columns: 1fr; padding: 20px; transform: none; }
  .deck-health { padding: 18px 0; border: 0; border-top: 1px solid rgba(159,202,225,.18); border-bottom: 1px solid rgba(159,202,225,.18); }
  .deck-metrics { grid-column: auto; padding-top: 10px; border: 0; }
  .tenant-scope-note { padding: 14px; }
  .provider-dialog {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  .provider-dialog form { max-height: 100vh; }
  .provider-dialog-header { padding: 22px 19px; }
  .provider-dialog-body { padding: 18px 19px 24px; }
  .provider-fields { grid-template-columns: 1fr; }
  .provider-field:has(input[type="url"]), .provider-event-fieldset, .provider-field-note { grid-column: auto; }
  .provider-dialog-actions { padding: 12px 15px; flex-wrap: wrap; }
  .provider-dialog-actions button { flex: 1 1 135px; }
  .provider-dialog-actions .action-button { min-width: 180px; }
}

@media (max-width: 450px) {
  .auth-story h1 { font-size: 45px; }
  .auth-brand { padding: 20px; }
  .page-header h1 { font-size: 34px; }
  .provider-card header { grid-template-columns: 42px 1fr; }
  .provider-chip { grid-column: 2; justify-self: start; }
  .provider-card-meta { grid-template-columns: 1fr; }
  .provider-card-meta > span:first-child { border-right: 0; border-bottom: 1px solid #e2ecf2; }
  .provider-event-fieldset { grid-template-columns: 1fr; }
  .deck-brand { align-items: flex-start; }
  .deck-monogram { width: 58px; height: 58px; flex-basis: 58px; border-radius: 14px; }
  .deck-brand h2 { font-size: 25px; }
}

/* Airline Backend control room */
.backend-deck { grid-template-columns: minmax(270px,1.2fr) minmax(220px,.7fr) minmax(390px,1.1fr); }
.admin-trust-badge {
  align-self: flex-start;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(67,198,243,.32);
  border-radius: 8px;
  color: #7fe0ff;
  background: rgba(67,198,243,.09);
  font-size: 10px !important;
  letter-spacing: .12em;
}
.backend-metrics { grid-template-columns: repeat(4,1fr); }
.backend-metrics dd { font-size: 27px; }
.backend-tab-rail {
  position: sticky;
  z-index: 8;
  top: calc(var(--rail-h) + 8px);
  margin: 20px 0;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 7px;
  border: 1px solid #d8e6ef;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 30px rgba(8,47,82,.07);
  scrollbar-width: thin;
}
.backend-tab-rail button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: #58738a;
  background: transparent;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}
.backend-tab-rail button:hover { color: #082f52; background: #eef7fc; }
.backend-tab-rail button[aria-selected="true"] { color: white; background: linear-gradient(135deg,#0759a6,#1689eb); box-shadow: 0 8px 18px rgba(7,89,166,.2); }
.backend-panel { min-width: 0; padding: 24px; border: 1px solid #d9e7f0; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 18px 45px rgba(8,47,82,.055); animation: reveal .22s ease both; }
.backend-error { margin: 20px 0; padding: 16px 18px; border: 1px solid #f1cbd0; border-left: 4px solid var(--critical); border-radius: 12px; color: #a23440; background: #fff4f5; }
.backend-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.backend-settings-grid > label:not(.settings-switch) { display: grid; gap: 7px; color: #315a78; font-size: 11px; font-weight: 700; }
.backend-settings-grid input, .backend-settings-grid select { min-height: 46px; }
.settings-switch { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid #d9e7f0; border-radius: 12px; color: #082f52; background: #f8fbfd; }
.settings-switch strong { display: block; font-size: 12px; }
.settings-switch small { display: block; margin-top: 4px; color: #7890a3; font-size: 9px; font-weight: 400; line-height: 1.4; }
.settings-switch input { width: 22px; min-height: 22px; flex: 0 0 auto; accent-color: #18b990; }
.form-actions { display: flex; align-items: end; justify-content: flex-end; }
.form-actions .action-button { margin: 0; }
.backend-two-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.backend-two-column--gates { grid-template-columns: minmax(0,1fr) minmax(360px,.8fr); }
.fr24-schedule-section { margin-bottom: 20px; }
.fr24-schedule-section > header {
  align-items: flex-start;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tenant-primary) 7%, #f8fbfd), #f8fbfd 55%);
}
.schedule-intro, .subsection-note {
  margin: 5px 0 0;
  color: #6e8798;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}
.schedule-freshness {
  min-width: 180px;
  display: grid;
  justify-items: end;
  gap: 4px;
}
.schedule-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  padding: 5px 8px;
  border: 1px solid #cce8de;
  border-radius: 7px;
  color: #087b60;
  background: #effaf6;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}
.schedule-freshness small { color: #8a9eac; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.schedule-freshness time { color: #49697f; font-size: 9px; font-weight: 700; }
.schedule-table-wrap table { min-width: 780px; }
.schedule-table-wrap td > small {
  display: block;
  margin-top: 4px;
  color: #7b91a1;
  font-size: 8px;
}
.schedule-gate strong { color: #082f52; font-size: 12px; }
.schedule-empty {
  min-height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: #6c8596;
  background:
    linear-gradient(rgba(216,232,241,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,232,241,.28) 1px, transparent 1px),
    #fbfdfe;
  background-size: 22px 22px;
}
.schedule-empty > span {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #c7e1ef;
  border-radius: 10px;
  color: #0877b9;
  background: #edf8fe;
  font-size: 10px;
  font-weight: 800;
}
.schedule-empty strong { color: #315a78; font-size: 11px; }
.schedule-empty p { max-width: 630px; margin: 5px 0 0; font-size: 9px; line-height: 1.5; }
.backend-stack { display: grid; gap: 20px; align-content: start; }
.backend-subsection { min-width: 0; overflow: hidden; border: 1px solid #d9e7f0; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(8,47,82,.04); }
.backend-subsection > header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #e2ecf2; background: #f8fbfd; }
.backend-subsection > header .eyebrow { margin-bottom: 5px; font-size: 8px; }
.backend-subsection > header h2 { margin: 0; color: #082f52; font-size: 17px; }
.small-primary-button { min-height: 40px; padding: 0 13px; border: 0; border-radius: 9px; color: white; background: #139ee8; font-size: 10px; font-weight: 750; white-space: nowrap; }
.small-primary-button:hover { background: #087fc3; }
.placeholder-guide { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 13px 15px; border: 1px solid #cae5f3; border-radius: 12px; color: #466b83; background: #eef9fe; font-size: 10px; }
.placeholder-guide strong { margin-right: 5px; color: #082f52; }
.placeholder-guide code { padding: 4px 6px; border-radius: 5px; color: #0877b9; background: white; font-size: 9px; }
.backend-record-list { display: grid; }
.backend-record { padding: 15px 17px; border-bottom: 1px solid #e4edf3; }
.backend-record:last-child { border-bottom: 0; }
.backend-record > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.backend-record h3 { margin: 4px 0 0; color: #082f52; font-size: 13px; }
.backend-record p { margin: 10px 0; color: #617d91; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.backend-record--compact { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.record-code { color: #139ee8; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.record-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.record-actions button, .danger-link { min-height: 32px; padding: 0 8px; border: 1px solid #d2e1ea; border-radius: 7px; color: #477089; background: #fff; font-size: 9px; }
.record-actions button:hover { border-color: #139ee8; color: #0877b9; }
.record-actions .danger-link, .danger-link { color: #b33e49; }
.record-actions .danger-link:hover, .danger-link:hover { border-color: #dc5260; color: #a52e39; }
.backend-list-empty { padding: 34px 20px; color: #7890a3; text-align: center; font-size: 11px; }
.backend-table-wrap { overflow-x: auto; }
.backend-table-wrap table { min-width: 760px; }
.backend-table-wrap .record-actions { min-width: 155px; }
.compact-inline-form { display: grid; grid-template-columns: 1.3fr .75fr .6fr auto; gap: 9px; align-items: end; padding: 16px; border-bottom: 1px solid #e2ecf2; }
.compact-inline-form label { display: grid; gap: 6px; color: #58738a; font-size: 9px; font-weight: 700; }
.compact-inline-form input, .compact-inline-form select { min-height: 40px; padding: 8px 9px; }
.backend-settings-grid--single { grid-template-columns: 1fr; padding: 18px; }
.airline-editor-dialog .editor-field-wide { grid-column: 1 / -1; }
.airline-editor-dialog textarea { min-height: 150px; }

@media (max-width: 1180px) {
  .backend-deck { grid-template-columns: 1fr 1fr; }
  .backend-metrics { grid-column: 1 / -1; grid-template-columns: repeat(4,1fr); }
  .backend-two-column { grid-template-columns: 1fr; }
  .backend-two-column--gates { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .backend-deck { grid-template-columns: 1fr; }
  .backend-panel { padding: 15px 12px; }
  .backend-tab-rail {
    margin-left: -2px;
    margin-right: -2px;
    border-radius: 12px;
    scrollbar-width: auto;
    box-shadow: inset -18px 0 16px -18px #139ee8, 0 12px 30px rgba(8,47,82,.07);
  }
  .backend-settings-grid { grid-template-columns: 1fr; }
  .backend-metrics { grid-template-columns: repeat(2,1fr); gap: 14px 0; }
  .compact-inline-form { grid-template-columns: 1fr 1fr; }
  .compact-inline-form label:first-child { grid-column: 1 / -1; }
  .compact-inline-form button { min-height: 44px; }
  .backend-subsection > header { align-items: flex-start; }
  .fr24-schedule-section > header { display: grid; }
  .schedule-freshness { min-width: 0; justify-items: start; }
  .small-primary-button, .record-actions button, .danger-link {
    min-height: 44px;
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 450px) {
  .compact-inline-form { grid-template-columns: 1fr; }
  .compact-inline-form label:first-child { grid-column: auto; }
  .backend-metrics dd { font-size: 24px; }
  .placeholder-guide { align-items: flex-start; }
}

/* Airline identity layer */
.brand-logo-frame {
  --brand-stage-color: var(--tenant-primary);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-stage-color) 34%, #29465c);
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--brand-stage-color) 13%, transparent), transparent 58%),
    linear-gradient(145deg, #08243a, #061a2b 72%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 7px 18px color-mix(in srgb, var(--brand-stage-color) 9%, rgba(6,26,43,.22));
}
.brand-logo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.brand-logo-frame.has-fallback {
  color: #f2f8fc;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.brand-logo-frame [data-airline-fallback] {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: "Bahnschrift SemiCondensed", sans-serif;
  font-weight: 800;
  letter-spacing: .04em;
}

.tenant-card {
  grid-template-columns: 136px 1fr auto;
  position: relative;
  box-shadow: inset 3px 0 0 var(--card-color, var(--cyan));
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tenant-card:hover,
.tenant-card:focus-visible {
  box-shadow:
    inset 4px 0 0 var(--card-color, var(--cyan)),
    0 10px 24px color-mix(in srgb, var(--card-color, var(--cyan)) 12%, transparent);
  transform: translateY(-1px);
}
.tenant-card-brand {
  --brand-stage-color: var(--card-color, var(--cyan));
  width: 128px;
  height: 60px;
  padding: 7px 9px;
  border-radius: 10px;
}
.tenant-card-brand.has-fallback {
  color: #f2f8fc;
  font-size: 15px;
}

.tenant-monogram.has-logo {
  width: 100px;
  height: 42px;
  flex-basis: 100px;
  padding: 6px 9px;
}
.tenant-monogram.has-fallback {
  color: #f2f8fc;
}
.rail-identity > .brand-logo-frame > [data-airline-fallback] {
  display: grid;
  margin: 0;
  color: inherit;
  font: 800 13px "Bahnschrift SemiCondensed", sans-serif;
}
.rail-identity > div > span {
  display: block;
  margin-top: 2px;
  color: #7890a3;
  font: 10px "Bahnschrift SemiCondensed", sans-serif;
  letter-spacing: .08em;
}

.deck-monogram.has-logo {
  width: 164px;
  flex-basis: 164px;
  padding: 10px 12px;
}
.deck-monogram.has-fallback {
  color: #f2f8fc;
}

.airline-row {
  grid-template-columns: 118px 1fr auto;
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--airline-color, #d9e7f0) 65%, transparent);
}
.airline-swatch {
  --brand-stage-color: var(--airline-color, #315a78);
  width: 110px;
  height: 48px;
  padding: 7px 9px;
  border-radius: 7px;
}
.airline-swatch.has-fallback {
  color: #f2f8fc;
}

.nav-item.is-active {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--tenant-primary) 12%, #fff),
    color-mix(in srgb, var(--tenant-primary) 3%, #fff)
  );
}
.nav-item > span { color: #139ee8; }
.nav-item.is-active > span { color: var(--tenant-primary); }

@media (max-width: 700px) {
  .tenant-monogram.has-logo {
    width: 82px;
    height: 34px;
    flex-basis: 82px;
    padding: 4px 6px;
  }
  .deck-monogram.has-logo {
    width: 142px;
    flex-basis: 142px;
  }
}

@media (max-width: 450px) {
  .tenant-card {
    grid-template-columns: 106px 1fr auto;
  }
  .tenant-card-brand {
    width: 100px;
    height: 50px;
    padding: 6px 7px;
  }
  .rail-identity {
    padding-right: 6px;
    padding-left: 6px;
    gap: 7px;
  }
  .rail-identity strong {
    max-width: 84px;
    font-size: 12px;
  }
  .deck-brand {
    align-items: flex-start;
    gap: 12px;
  }
  .deck-monogram.has-logo {
    width: 120px;
    flex-basis: 120px;
  }
  .airline-row {
    grid-template-columns: 96px minmax(0,1fr);
  }
  .airline-swatch {
    width: 90px;
    height: 44px;
    padding: 6px 7px;
  }
  .airline-row > .status-label {
    grid-column: 2;
    justify-self: start;
  }
}

/* Administration deletion controls */
.admin-users-table { min-width: 800px; }
.admin-action-cell { width: 210px; text-align: right; vertical-align: middle; }
.admin-action-placeholder { color: #a0b2bf; }
.admin-user-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.admin-edit-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #b8d6e7;
  border-radius: 8px;
  color: #0877b9;
  background: #f5fbfe;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .03em;
}
.admin-edit-button:hover,
.admin-edit-button:focus-visible { border-color: #139ee8; color: #0759a6; background: #eaf7fe; }
.admin-delete-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d99aa1;
  border-radius: 8px;
  color: #a83a45;
  background: #fff;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .03em;
}
.admin-delete-button:hover:not(:disabled),
.admin-delete-button:focus-visible {
  border-color: #c94451;
  color: #922a35;
  background: #fff5f6;
}
.admin-delete-button:disabled {
  cursor: not-allowed;
  border-color: #dce5eb;
  color: #8ca0ae;
  background: #f4f7f9;
}
.admin-protection-label {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #d8e4ec;
  border-radius: 7px;
  color: #627d90;
  background: #f6fafc;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.airline-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.admin-disabled-action {
  max-width: 158px;
  display: grid;
  justify-items: end;
  gap: 5px;
}
.admin-disabled-action small {
  color: #7890a3;
  font-size: 8px;
  line-height: 1.35;
  text-align: right;
}

.admin-delete-dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: #0a2540;
  background: #fff;
  box-shadow: 0 30px 90px rgba(6,31,52,.3);
}

.admin-role-dialog {
  width: min(650px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: #0a2540;
  background: #fff;
  box-shadow: 0 30px 90px rgba(6,31,52,.3);
}
.admin-role-dialog::backdrop { background: rgba(6,31,52,.56); }
.admin-role-dialog[open] { animation: reveal .18s ease both; }
.admin-role-dialog form { max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.admin-role-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 22px;
  color: #f5f9fc;
  background:
    radial-gradient(circle at 95% 0, rgba(67,198,243,.16), transparent 14rem),
    linear-gradient(145deg, #0a4069, #061f35);
}
.admin-role-header .eyebrow { color: #89b8d0; }
.admin-role-header h2 { margin: 0; font-size: 29px; letter-spacing: -.035em; }
.admin-role-header p:last-child { margin: 9px 0 0; color: #b4cbd9; font-size: 11px; }
.admin-role-body { padding: 22px 28px 26px; overflow-y: auto; }
.admin-role-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #dce9f0;
  border-radius: 11px;
  background: #f8fbfd;
}
.admin-role-identity > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--tenant-primary);
  font-size: 10px;
  font-weight: 800;
}
.admin-role-identity strong { display: block; color: #082f52; font-size: 13px; }
.admin-role-identity small { display: block; margin-top: 3px; color: #6e8798; font-size: 9px; }
.admin-role-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-role-fields > label:not(.settings-switch) { display: grid; gap: 7px; color: #315a78; font-size: 11px; font-weight: 700; }
.admin-role-fields select { min-height: 46px; }
.admin-active-switch { margin: 0; }
.admin-role-note, .admin-role-global-note {
  margin: 15px 0 0;
  padding: 12px 14px;
  border: 1px solid #efd7a9;
  border-left: 3px solid #e9a93d;
  border-radius: 9px;
  color: #80571c;
  background: #fff9ee;
  font-size: 9px;
  line-height: 1.5;
}
.admin-role-airlines { margin: 18px 0 0; padding: 14px; border: 1px solid #d9e7f0; border-radius: 11px; }
.admin-role-airlines legend { padding: 0 5px; color: #315a78; font-size: 11px; font-weight: 750; }
.admin-role-airlines > p { margin: 0 0 11px; color: #7890a3; font-size: 9px; }
.admin-role-airlines .check-list { max-height: 170px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.admin-role-airlines .check-list label { min-height: 38px; padding: 7px 9px; border: 1px solid #e1ebf1; border-radius: 8px; background: #fbfdfe; }
.admin-role-global-note { display: flex; gap: 10px; border-color: #cce6f4; border-left-color: #139ee8; color: #41647d; background: #eef9fe; }
.admin-role-global-note p { margin: 0; }
.admin-role-global-note strong { display: block; color: #082f52; }
.admin-role-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 28px;
  border-top: 1px solid #dfe8ee;
  background: #f8fbfd;
}
.admin-role-actions .action-button { width: auto; margin: 0; }
.admin-delete-dialog::backdrop { background: rgba(6,31,52,.56); }
.admin-delete-dialog[open] { animation: reveal .18s ease both; }
.admin-delete-dialog form {
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}
.admin-delete-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 22px;
  color: #f5f9fc;
  background:
    radial-gradient(circle at 95% 0, rgba(201,68,81,.15), transparent 14rem),
    linear-gradient(145deg, #0a3658, #061f35);
}
.admin-delete-header .eyebrow { color: #f0a8af; }
.admin-delete-header h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -.035em;
}
.admin-delete-header p:last-child {
  max-width: 470px;
  margin: 9px 0 0;
  color: #b4cbd9;
  font-size: 11px;
  line-height: 1.55;
}
.admin-delete-body {
  padding: 24px 28px 28px;
  overflow-y: auto;
}
.admin-delete-target {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #e1e9ee;
  border-left: 3px solid #c94451;
  border-radius: 10px;
  background: #f8fbfd;
}
.admin-delete-target > span {
  color: #a83a45;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}
.admin-delete-target strong {
  color: #082f52;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.admin-delete-target small {
  color: #6e8798;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.admin-delete-body > label {
  display: block;
  margin-bottom: 7px;
  color: #315a78;
  font-size: 11px;
  font-weight: 750;
}
.admin-delete-body > input {
  min-height: 46px;
  border-color: #d0dde6;
  background: #fff;
}
.admin-delete-body > input:focus {
  border-color: #c94451;
  box-shadow: 0 0 0 3px rgba(201,68,81,.1);
}
.admin-delete-hint {
  margin: 8px 0 0;
  color: #7890a3;
  font-size: 9px;
  line-height: 1.5;
}
.admin-delete-hint code {
  color: #92313b;
  font-family: "Bahnschrift SemiCondensed", monospace;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.admin-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 28px;
  border-top: 1px solid #dfe8ee;
  background: #f8fbfd;
}
.destructive-confirm {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #b62f3c;
  border-radius: 10px;
  color: #fff;
  background: #c94451;
  font-size: 10px;
  font-weight: 800;
}
.destructive-confirm:hover:not(:disabled) { background: #b93441; }
.destructive-confirm:disabled {
  cursor: not-allowed;
  border-color: #d8e1e7;
  color: #8ea0ad;
  background: #e9eef2;
}

@media (max-width: 700px) {
  .admin-delete-button, .admin-edit-button { min-height: 44px; padding-right: 13px; padding-left: 13px; }
  .airline-row-actions { flex-wrap: wrap; }
  .admin-role-fields { grid-template-columns: 1fr; }
  .admin-role-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .admin-role-dialog form { max-height: calc(100vh - 20px); }
  .admin-delete-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .admin-delete-dialog form { max-height: calc(100vh - 20px); }
}

@media (max-width: 450px) {
  .airline-row-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .admin-disabled-action {
    max-width: none;
    justify-items: start;
  }
  .admin-disabled-action small { text-align: left; }
  .admin-delete-header { padding: 21px 19px 19px; }
  .admin-delete-header h2 { font-size: 25px; }
  .admin-delete-body { padding: 20px 19px 24px; }
  .admin-delete-actions {
    padding: 12px 15px;
    flex-wrap: wrap;
  }
  .admin-delete-actions button { flex: 1 1 140px; }
  .admin-role-header { padding: 21px 19px 19px; }
  .admin-role-header h2 { font-size: 25px; }
  .admin-role-body { padding: 20px 19px 24px; }
  .admin-role-airlines .check-list { grid-template-columns: 1fr; }
  .admin-role-actions { padding: 12px 15px; flex-wrap: wrap; }
  .admin-role-actions button { flex: 1 1 140px; }
}
