:root {
  --dhl-yellow: #ffcc00;
  --dhl-yellow-soft: #fff5bf;
  --dhl-red: #d40511;
  --dhl-red-dark: #93000b;
  --ink: #151515;
  --ink-soft: #4e4e4e;
  --surface: #ffffff;
  --surface-2: #f6f6f3;
  --line: #deded8;
  --success: #18794e;
  --warning: #b05d00;
  --info: #1f5f99;
  --shadow: 0 18px 45px rgba(21, 21, 21, 0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --content: 1180px;
}


/* Ensure the HTML hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
}
.topbar__inner,
.site-header__inner,
.page-shell,
.footer__inner {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}
.topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar__status { display: flex; gap: 16px; align-items: center; }
.signal { display: inline-flex; gap: 7px; align-items: center; }
.signal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5be39a;
  box-shadow: 0 0 0 4px rgba(91, 227, 154, 0.13);
}
.signal[data-live-state="connecting"]::before,
.signal[data-live-state="reconnecting"]::before {
  background: var(--dhl-yellow);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15);
}
.signal[data-live-state="error"]::before {
  background: var(--dhl-red);
  box-shadow: 0 0 0 4px rgba(212, 5, 17, 0.15);
}
.signal[data-live-state="disconnected"]::before {
  background: #aaa;
  box-shadow: 0 0 0 4px rgba(170, 170, 170, 0.15);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 204, 0, 0.96);
  border-bottom: 1px solid rgba(147, 0, 11, 0.18);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { width: 216px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #4a0006;
  font-size: 0.9rem;
  font-weight: 750;
}
.nav a:hover,
.nav a[aria-current="page"] { background: rgba(212, 5, 17, 0.12); color: var(--dhl-red-dark); }
.nav a.nav-signin {
  margin-left: 7px;
  padding-inline: 16px;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 7px 17px rgba(88,101,242,.24);
}
.nav a.nav-signin:hover,
.nav a.nav-signin[aria-current="page"] {
  background: #4752c4;
  color: #fff;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  transition: 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--dhl-red); color: #fff; box-shadow: 0 9px 22px rgba(212,5,17,.18); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { border: 1px solid rgba(21,21,21,.18); background: rgba(255,255,255,.35); }
.btn--soft { background: var(--dhl-yellow-soft); color: var(--dhl-red-dark); border: 1px solid #efcf45; }
.btn--small { min-height: 34px; padding-inline: 13px; font-size: .82rem; }
.icon-button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(21,21,21,.14); background: rgba(255,255,255,.38);
}

.page-shell { padding-block: 34px 70px; }
.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: stretch;
  border-radius: 30px;
  overflow: hidden;
  background: var(--dhl-yellow);
  box-shadow: var(--shadow);
}
.hero__copy { padding: clamp(38px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--dhl-red-dark);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}
.eyebrow::before { content: ""; width: 34px; height: 4px; background: var(--dhl-red); border-radius: 999px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 6vw, 5.7rem);
  line-height: .96;
  letter-spacing: -.065em;
  max-width: 780px;
}
h1 em { color: var(--dhl-red); font-style: normal; }
.hero__copy > p { max-width: 650px; color: #3d3500; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 42px; color: #554900; font-size: .88rem; font-weight: 700; }
.hero__visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,0,0,.12), transparent 42%),
    radial-gradient(circle at 30% 30%, #fff0 0 24%, rgba(255,255,255,.32) 25% 27%, transparent 28%),
    #e6b800;
}
.hero__visual::before,
.hero__visual::after { content: ""; position: absolute; background: var(--dhl-red); transform: skewX(-18deg); opacity: .95; }
.hero__visual::before { width: 120%; height: 20px; right: -35%; top: 30%; box-shadow: 0 34px 0 var(--dhl-red), 0 68px 0 var(--dhl-red); }
.hero__visual::after { width: 68%; height: 150px; right: -15%; bottom: 0; border-radius: 20px 0 0 0; }
.flight-card {
  position: absolute;
  z-index: 2;
  width: min(390px, calc(100% - 48px));
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.95);
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(59,41,0,.2);
  overflow: hidden;
}
.flight-card__head { padding: 20px 22px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.flight-card__route { padding: 24px 22px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.airport-code { font-size: 2.25rem; font-weight: 950; letter-spacing: -.05em; }
.airport-code:last-child { text-align: right; }
.route-line { width: 90px; height: 2px; background: var(--line); position: relative; }
.route-line::after { content: "✈"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -56%); color: var(--dhl-red); background: #fff; padding: 0 8px; }
.flight-card__body { padding: 0 22px 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.metric { border-radius: 12px; background: var(--surface-2); padding: 12px; }
.metric span, .stat span, .field-label, .muted { color: var(--ink-soft); font-size: .78rem; }
.metric strong, .stat strong { display: block; margin-top: 4px; }

.section { margin-top: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 5px; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.section-heading p { color: var(--ink-soft); margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(21,21,21,.045);
}
.card--padded { padding: 22px; }
.card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--yellow { background: var(--dhl-yellow); border-color: #e4b900; }
.card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.card p:last-child { margin-bottom: 0; }
.role-card { padding: 22px; position: relative; overflow: hidden; }
.role-card::after { content: ""; position: absolute; width: 90px; height: 8px; right: -15px; top: 18px; background: var(--dhl-red); transform: skewX(-18deg); opacity: .16; box-shadow: 0 16px 0 var(--dhl-red); }
.role-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--dhl-yellow-soft); color: var(--dhl-red); font-size: 1.25rem; margin-bottom: 18px; }
.link-row { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; color: var(--dhl-red); font-weight: 850; }

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.page-title h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin-bottom: 8px; }
.page-title p { color: var(--ink-soft); max-width: 700px; margin-bottom: 0; }
.role-switcher {
  display: grid;
  gap: 6px;
  min-width: min(100%, 270px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.role-switcher label {
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.role-switcher select {
  width: 100%;
  min-height: 42px;
  padding: 8px 38px 8px 11px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.role-switcher select:focus-visible {
  outline: 3px solid rgba(212, 5, 17, .18);
  border-color: var(--dhl-red);
}
.role-switcher select:disabled { cursor: wait; opacity: .7; }
.role-panel { display: none; }
.role-panel.is-active { display: block; }

.dashboard-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 18px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 18px; }
.kpi strong { display: block; font-size: 1.85rem; letter-spacing: -.045em; }
.kpi span { font-size: .82rem; color: var(--ink-soft); }
.kpi__trend { color: var(--success) !important; font-weight: 800; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; }
th { color: var(--ink-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 850;
  background: #eee;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--success { color: var(--success); background: #e7f6ee; }
.status--warning { color: var(--warning); background: #fff1dc; }
.status--info { color: var(--info); background: #e8f2fb; }
.status--red { color: var(--dhl-red); background: #fde8ea; }

.activity-list, .task-list, .event-list { list-style: none; margin: 0; padding: 0; }
.activity-list li, .task-list li, .event-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child, .task-list li:last-child, .event-list li:last-child { border-bottom: 0; }
.activity-row { display: flex; gap: 12px; align-items: flex-start; }
.activity-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dhl-red); margin-top: 7px; flex: 0 0 auto; }
.activity-row strong { display: block; font-size: .9rem; }
.activity-row span { font-size: .78rem; color: var(--ink-soft); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfcfc9;
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--dhl-red); box-shadow: 0 0 0 3px rgba(212,5,17,.10); }

/* Custom PTFS airport menu. Unlike a native select, this always opens below the field. */
.airport-combobox { position: relative; }
.airport-combobox input { padding-right: 46px; text-transform: uppercase; font-weight: 850; letter-spacing: .06em; }
.airport-combobox__toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid #dddcd5;
  border-radius: 0 12px 12px 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.15rem;
  cursor: pointer;
}
.airport-combobox.is-open .airport-combobox__toggle { transform: rotate(180deg); }
.airport-combobox__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 236px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cfcfc9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(21,21,21,.18);
}
.airport-combobox__menu[hidden] { display: none; }
.airport-combobox__option {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 850;
  letter-spacing: .06em;
  cursor: pointer;
}
.airport-combobox__option:hover,
.airport-combobox__option:focus-visible,
.airport-combobox__option.is-active { background: var(--dhl-yellow-soft); color: var(--dhl-red-dark); }
textarea { min-height: 112px; resize: vertical; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.helper { color: var(--ink-soft); font-size: .78rem; }

.operations-map {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(23deg, transparent 24%, rgba(255,255,255,.09) 25% 26%, transparent 27% 74%, rgba(255,255,255,.08) 75% 76%, transparent 77%),
    linear-gradient(113deg, transparent 24%, rgba(255,255,255,.08) 25% 26%, transparent 27% 74%, rgba(255,255,255,.08) 75% 76%, transparent 77%),
    #262626;
  border-radius: var(--radius);
}
.operations-map::before { content: ""; position: absolute; inset: 11% 8%; border: 1px dashed rgba(255,204,0,.34); border-radius: 50%; transform: rotate(-11deg); }
.map-route { position: absolute; left: 17%; right: 15%; top: 51%; height: 3px; background: linear-gradient(90deg, var(--dhl-yellow) 0 74%, rgba(255,255,255,.25) 74%); transform: rotate(-10deg); transform-origin: left center; }
.map-route::after { content: "✈"; position: absolute; left: 71%; top: 50%; transform: translate(-50%, -55%) rotate(10deg); color: var(--dhl-red); background: var(--dhl-yellow); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; box-shadow: 0 10px 20px rgba(0,0,0,.3); }
.map-label { position: absolute; color: #fff; font-weight: 850; font-size: .83rem; }
.map-label--start { left: 12%; top: 58%; }
.map-label--end { right: 11%; top: 36%; }
.map-overlay { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.map-chip { background: rgba(255,255,255,.92); border-radius: 10px; padding: 9px 11px; font-size: .78rem; }
.progress { height: 8px; background: #e7e7e1; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--dhl-red); border-radius: inherit; }
.tracking-steps { display: grid; gap: 12px; }
.tracking-step { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.tracking-step__dot { width: 18px; height: 18px; border: 4px solid #ddd; border-radius: 50%; background: #fff; margin-top: 2px; }
.tracking-step.is-complete .tracking-step__dot { border-color: var(--success); background: var(--success); }
.tracking-step.is-active .tracking-step__dot { border-color: var(--dhl-red); box-shadow: 0 0 0 4px rgba(212,5,17,.12); }
.tracking-step strong { display: block; font-size: .9rem; }
.tracking-step span { color: var(--ink-soft); font-size: .78rem; }

.calendar-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-day { padding: 14px 8px; border-radius: 14px; text-align: center; background: var(--surface-2); }
.calendar-day strong { display: block; font-size: 1.05rem; }
.calendar-day span { font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; }
.calendar-day.is-active { background: var(--dhl-yellow); color: var(--dhl-red-dark); }
.event-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-card:last-child { border-bottom: 0; }
.event-date { border-radius: 14px; background: var(--ink); color: #fff; text-align: center; padding: 10px; }
.event-date strong { display: block; font-size: 1.35rem; }
.event-date span { font-size: .7rem; text-transform: uppercase; }

.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aircraft-card { overflow: hidden; }
.aircraft-card__visual { height: 140px; display: grid; place-items: center; background: linear-gradient(135deg, var(--dhl-yellow), #f4b800); color: var(--dhl-red); font-size: 3rem; position: relative; }
.aircraft-card__visual::before, .aircraft-card__visual::after { content: ""; position: absolute; width: 72%; height: 7px; right: -12%; background: var(--dhl-red); transform: skewX(-18deg); opacity: .22; }
.aircraft-card__visual::before { top: 33px; }
.aircraft-card__visual::after { top: 48px; }
.aircraft-card__body { padding: 18px; }
.aircraft-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { padding: 6px 9px; border-radius: 999px; background: var(--surface-2); font-size: .72rem; font-weight: 800; }

.notice { border-left: 4px solid var(--dhl-red); padding: 14px 16px; background: #fff; border-radius: 0 12px 12px 0; color: var(--ink-soft); font-size: .85rem; }
.disclaimer { margin-top: 22px; border: 1px dashed rgba(212,5,17,.32); color: #6e2429; background: #fff7f7; border-radius: 12px; padding: 14px 16px; font-size: .8rem; }

.footer { background: var(--ink); color: #fff; }
.footer__inner { padding-block: 34px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer img { width: 190px; filter: none; }
.footer p { color: #bdbdbd; font-size: .8rem; margin: 10px 0 0; max-width: 650px; }
.footer__links { display: flex; gap: 16px; color: #d5d5d5; font-size: .82rem; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 340px;
  background: var(--ink);
  color: #fff;
  padding: 15px 17px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  opacity: 0;
  transition: 220ms ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  .nav.is-open { display: flex; }
  .nav a { border-radius: 10px; }
  .menu-button { display: inline-grid; place-items: center; }
  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 430px; }
  .dashboard-grid, .grid-3, .fleet-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .topbar__inner { min-height: 42px; }
  .topbar__status span:last-child { display: none; }
  .site-header__inner { min-height: 68px; gap: 12px; }
  .brand img { width: 170px; }
  .header-actions .btn { display: none; }
  .page-shell { padding-top: 22px; }
  .hero__copy { padding: 36px 24px; }
  .hero__visual { min-height: 360px; }
  .flight-card { width: calc(100% - 32px); }
  .dashboard-grid, .grid-2, .grid-3, .fleet-grid, .form-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .page-title { align-items: flex-start; flex-direction: column; }
  .role-switcher { width: 100%; }
  .event-card { grid-template-columns: 66px 1fr; }
  .event-card .btn { grid-column: 1 / -1; }
  .calendar-strip { overflow-x: auto; grid-template-columns: repeat(7, 72px); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; }
}

/* 2026 brand, Discord sign-up, and interactive fleet additions */
.site-header__inner {
  grid-template-columns: 188px 1fr auto;
  gap: 14px;
}
.brand img {
  width: 178px;
  max-height: 62px;
  object-fit: contain;
}
.nav { gap: 2px; }
.nav a { padding: 9px 9px; font-size: .82rem; }
.join-discord { white-space: nowrap; }
.footer img {
  width: 215px;
  background: var(--dhl-yellow);
  border-radius: 12px;
  padding: 9px 12px;
}

.aircraft-card--interactive {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.aircraft-card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(212,5,17,.28);
}
.aircraft-card h2 { font-size: 1.35rem; margin: 12px 0 4px; }
.aircraft-name-button,
.link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}
.aircraft-name-button {
  font-weight: 900;
  letter-spacing: -.025em;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.aircraft-name-button:hover,
.aircraft-name-button:focus-visible { color: var(--dhl-red); text-decoration: underline; }
.link-button {
  margin-top: 17px;
  color: var(--dhl-red);
  font-size: .82rem;
  font-weight: 900;
}
.link-button:hover,
.link-button:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.aircraft-card[hidden] { display: none; }

.aircraft-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 32px));
  overflow-y: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}
.aircraft-dialog::backdrop { background: rgba(15,15,15,.68); backdrop-filter: blur(4px); }
.aircraft-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  background: var(--dhl-yellow);
  border-bottom: 1px solid #e3b900;
}
.aircraft-dialog__header h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.05em; }
.dialog-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(21,21,21,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  font-size: 1.8rem;
  line-height: 1;
}
.aircraft-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 24px 0;
}
.aircraft-detail-stats .stat { padding: 15px; background: var(--surface-2); border-radius: 14px; }
.aircraft-detail-stats .stat strong { font-size: 1.25rem; }
.aircraft-airports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 24px;
}
.aircraft-airports h3 { margin-bottom: 10px; }
.airport-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.airport-tag {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--dhl-yellow-soft);
  border: 1px solid #ead56c;
  color: var(--dhl-red-dark);
  font-size: .78rem;
  font-weight: 900;
}
.aircraft-dialog > .helper { margin: -8px 24px 24px; }

.signup-hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 20px;
  align-items: stretch;
  border-radius: 30px;
  background: var(--dhl-yellow);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.signup-hero__copy { padding: clamp(34px, 6vw, 72px); align-self: center; }
.signup-hero__copy h1 { margin-top: 18px; }
.signup-hero__copy > p { color: #443b00; max-width: 680px; font-size: 1.05rem; }
.signup-card {
  margin: 24px;
  padding: 26px;
  align-self: center;
  box-shadow: 0 24px 55px rgba(75,53,0,.18);
}
.signup-card__logo {
  width: 230px;
  background: var(--dhl-yellow);
  padding: 9px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.signup-card h2 { font-size: 1.6rem; letter-spacing: -.035em; }
.permission-list { display: grid; gap: 12px; margin-top: 18px; }
.permission-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.permission-list > div > span {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; background: var(--ink); color: #fff; font-weight: 900; font-size: .78rem;
}
.permission-list p { margin: 0; }
.permission-list small { color: var(--ink-soft); }
.btn--discord { background: #5865f2; color: #fff; box-shadow: 0 9px 22px rgba(88,101,242,.24); }
.discord-action { min-width: 238px; }
.discord-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.18); }
.oauth-note { margin: 18px 0 0 !important; }
.oauth-note code { background: rgba(255,255,255,.42); padding: 2px 6px; border-radius: 6px; }
.clean-list { margin: 14px 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.clean-list li { position: relative; padding-left: 27px; }
.clean-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 950; }

@media (max-width: 1120px) {
  .site-header__inner { grid-template-columns: 170px 1fr auto; }
  .brand img { width: 162px; }
  .nav a { padding-inline: 7px; font-size: .78rem; }
  .join-discord { padding-inline: 14px; font-size: .82rem; }
}

@media (max-width: 980px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .signup-hero { grid-template-columns: 1fr; }
  .signup-card { margin-top: 0; }
}

@media (max-width: 700px) {
  .brand img { width: 150px; max-height: 54px; }
  .nav a.nav-signin { margin-left: 0; }
  .discord-action { width: 100%; min-width: 0; }
  .aircraft-detail-stats { grid-template-columns: 1fr; }
  .aircraft-airports { grid-template-columns: 1fr; }
  .signup-card { margin: 0 18px 18px; }
  .signup-hero__copy { padding: 34px 22px 24px; }
}

/* Discord-authenticated dashboard */
/* Site-wide Discord account status */
.site-account {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: 7px;
}
.nav .account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(21,21,21,.08);
}
.nav .account-chip:hover,
.nav .account-chip:focus-visible {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(21,21,21,.13);
}
.account-chip__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--dhl-yellow);
  color: var(--dhl-red-dark);
  font-weight: 950;
}
.account-chip > span:last-child { min-width: 0; display: grid; line-height: 1.1; text-align: left; }
.account-chip strong,
.account-chip small { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip small { margin-top: 3px; color: var(--ink-soft); font-size: .7rem; font-weight: 750; }
.nav .site-signout {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
}
.nav .site-signout:hover,
.nav .site-signout:focus-visible {
  background: #303030;
  color: #fff;
}

.dashboard-loading { min-height: 130px; display: grid; align-content: center; gap: 8px; }
.dashboard-loading p { margin: 0; }
.dashboard-access-message { display: grid; gap: 12px; align-items: start; }
.dashboard-access-message p { margin: 0; }
.dashboard-access-message .btn { width: max-content; }
.dashboard-role-content[hidden],
.auth-message[hidden] { display: none; }
.auth-message {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}
.auth-message--error { border-left: 4px solid var(--dhl-red); }
.auth-message--success { border-left: 4px solid var(--success); }


/* Responsive placement for the site-wide signed-in account panel. */
@media (max-width: 980px) {
  .site-account {
    width: 100%;
    margin-left: 0;
    padding: 6px 0 2px;
    justify-content: space-between;
  }
  .nav .account-chip { flex: 1 1 auto; }
  .account-chip strong,
  .account-chip small { max-width: min(58vw, 300px); }
  .nav .site-signout { flex: 0 0 auto; }
}


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

.assignment-aircraft-select {
  min-width: 165px;
  padding: 8px 34px 8px 10px;
  font-size: .9rem;
}

[data-available-order] td:last-child {
  white-space: nowrap;
}

/* Protected Dispatch Center */
.dispatch-shell { padding-bottom: 54px; }
.dispatch-title { align-items: end; }
.dispatch-assignment-banner {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.8fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 22px;
  color: var(--ink);
  background: var(--dhl-yellow);
  box-shadow: var(--shadow);
}
.dispatch-assignment-banner > div:first-child { display: grid; gap: 4px; }
.dispatch-assignment-banner > div:first-child > strong { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.055em; }
.dispatch-assignment-banner > div:first-child > span:last-child { font-weight: 800; }
.dispatch-assignment-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dispatch-assignment-meta > span { min-width: 0; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.62); }
.dispatch-assignment-meta small,
.dispatch-assignment-meta strong { display: block; overflow-wrap: anywhere; }
.dispatch-assignment-meta small { margin-bottom: 5px; color: #625300; font-weight: 800; }
.dispatch-kpis { margin-bottom: 22px; }
.dispatch-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .75fr); gap: 20px; align-items: stretch; }
.dispatch-grid--lower { align-items: start; }
.dispatch-scope-card { min-width: 0; overflow: hidden; }
.dispatch-card-heading { gap: 18px; margin-bottom: 0; }
.dispatch-card-heading h2,
.dispatch-own-card h2 { font-size: 1.35rem; }
.dispatch-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; font-size: .75rem; font-weight: 850; }
.dispatch-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.dispatch-legend__dot { width: 10px; height: 10px; border-radius: 50%; background: #eef1f4; border: 2px solid #5b6570; }
.dispatch-legend__dot--dhl { background: var(--dhl-yellow); border-color: var(--dhl-red); }
.dispatch-legend__dot--own { background: var(--dhl-red); border-color: #fff; box-shadow: 0 0 0 2px var(--dhl-red); }
.dispatch-scope {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at center, rgba(65,139,103,.2), transparent 1px), #071811;
  background-size: 38px 38px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.dispatch-scope::before,
.dispatch-scope::after { content: ''; position: absolute; z-index: -1; inset: 50% auto auto 50%; transform: translate(-50%,-50%); border: 1px solid rgba(115,255,186,.22); border-radius: 50%; }
.dispatch-scope::before { width: 64%; aspect-ratio: 1; }
.dispatch-scope::after { width: 32%; aspect-ratio: 1; }
.dispatch-scope__grid::before,
.dispatch-scope__grid::after { content: ''; position: absolute; background: rgba(115,255,186,.16); }
.dispatch-scope__grid::before { width: 1px; height: 100%; left: 50%; top: 0; }
.dispatch-scope__grid::after { height: 1px; width: 100%; left: 0; top: 50%; }
.dispatch-scope__empty { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(330px, 80%); color: #b9d1c3; text-align: center; font-weight: 800; }
.dispatch-aircraft-marker { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 2px; transform: translate(-50%,-50%); border: 0; padding: 0; color: #d7e2dc; background: transparent; font: inherit; }
.dispatch-aircraft-marker__icon { display: block; font-size: .8rem; line-height: 1; transform: rotate(var(--aircraft-heading)); transform-origin: center; text-shadow: 0 0 8px rgba(210,232,220,.5); }
.dispatch-aircraft-marker__label { padding: 2px 4px; border-radius: 4px; background: rgba(4,15,10,.76); font-size: .61rem; font-weight: 900; white-space: nowrap; }
.dispatch-aircraft-marker.is-dhl { z-index: 3; color: var(--dhl-yellow); }
.dispatch-aircraft-marker.is-dhl .dispatch-aircraft-marker__label { color: var(--ink); background: var(--dhl-yellow); }
.dispatch-aircraft-marker.is-own { z-index: 4; color: #fff; }
.dispatch-aircraft-marker.is-own::before { content: ''; position: absolute; width: 24px; height: 24px; top: -7px; border: 2px solid var(--dhl-red); border-radius: 50%; animation: dispatch-pulse 1.7s ease-out infinite; }
.dispatch-aircraft-marker.is-own .dispatch-aircraft-marker__label { color: #fff; background: var(--dhl-red); }
@keyframes dispatch-pulse { 0% { transform: scale(.65); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.dispatch-flight-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.dispatch-flight-details > div { padding: 13px; border-radius: 13px; background: var(--surface-2); }
.dispatch-flight-details dt { margin-bottom: 4px; color: var(--ink-soft); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.dispatch-flight-details dd { margin: 0; font-weight: 900; overflow-wrap: anywhere; }
.dispatch-match-note { margin-top: 16px; }
.dispatch-table-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.dispatch-table-controls input[type="search"] { min-width: min(240px, 100%); }
.dispatch-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 850; white-space: nowrap; }
.dispatch-toggle input { accent-color: var(--dhl-red); }
.dispatch-traffic-table table { min-width: 760px; }
.dispatch-traffic-table tr.is-dhl-flight td { background: #fff8cf; }
.dispatch-traffic-table tr.is-own-flight td { background: var(--dhl-yellow); border-bottom-color: #d9b400; }
.dispatch-callsign-tag { display: inline-block; margin-top: 5px; padding: 3px 6px; border-radius: 999px; color: #fff; background: var(--dhl-red); font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.dispatch-company-list { display: grid; gap: 10px; margin-top: 18px; }
.dispatch-company-flight { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.dispatch-company-flight.is-online { border-color: #99caae; background: #edf8f1; }
.dispatch-company-flight.is-own { border: 2px solid var(--dhl-red); background: var(--dhl-yellow-soft); }
.dispatch-company-flight__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dispatch-company-flight > span,
.dispatch-company-flight > small { color: var(--ink-soft); }

@media (max-width: 980px) {
  .dispatch-assignment-banner,
  .dispatch-grid { grid-template-columns: 1fr; }
  .dispatch-assignment-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-scope { min-height: 420px; }
}
@media (max-width: 620px) {
  .dispatch-assignment-meta,
  .dispatch-flight-details { grid-template-columns: 1fr; }
  .dispatch-card-heading { align-items: flex-start; }
  .dispatch-legend,
  .dispatch-table-controls { justify-content: flex-start; }
  .dispatch-table-controls input[type="search"] { width: 100%; }
  .dispatch-scope { min-height: 350px; }
}


/* ===== Assignment-based DHL flight plan ===== */
.dispatch-flight-plan-card { overflow: hidden; }
.dispatch-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--dhl-yellow-soft), #fff 72%);
}
.dispatch-plan-head h2 { margin-top: 6px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.dispatch-plan-head p { max-width: 760px; margin-top: 8px; color: var(--ink-soft); }
.dispatch-plan-form { display: grid; }
.dispatch-plan-section { padding: 24px; border-top: 1px solid var(--line); }
.dispatch-plan-section:first-child { border-top: 0; }
.dispatch-plan-section__heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.dispatch-plan-section__heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: .76rem;
  font-weight: 950;
}
.dispatch-plan-section__heading h3 { font-size: 1.15rem; }
.dispatch-plan-section__heading p { margin-top: 3px; color: var(--ink-soft); font-size: .88rem; }
.dispatch-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.dispatch-plan-grid .field { min-width: 0; padding: 12px; border-right: 1px solid var(--line); background: rgba(255,255,255,.72); }
.dispatch-plan-grid .field:last-child { border-right: 0; }
.dispatch-plan-grid .field input,
.dispatch-plan-grid .field select { width: 100%; }
.dispatch-plan-grid input[readonly] { color: var(--ink); background: #f5f3e9; font-weight: 850; }
.dispatch-plan-route-field { margin-top: 14px; }
.dispatch-plan-route-field textarea,
.dispatch-plan-command-section textarea { width: 100%; resize: vertical; }
.dispatch-performance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.dispatch-performance-cell { min-width: 0; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dispatch-performance-cell:nth-child(4n) { border-right: 0; }
.dispatch-performance-cell:nth-last-child(-n+3) { border-bottom: 0; }
.dispatch-performance-cell span,
.dispatch-performance-cell small { display: block; }
.dispatch-performance-cell span { color: var(--ink-soft); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .055em; }
.dispatch-performance-cell strong { display: block; margin: 6px 0 2px; font-size: clamp(1.15rem, 2vw, 1.65rem); overflow-wrap: anywhere; }
.dispatch-performance-cell small { color: var(--ink-soft); font-size: .72rem; }
.dispatch-performance-note { margin-top: 10px; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.dispatch-plan-command-section { background: var(--surface-2); }
.dispatch-plan-command-section textarea { min-height: 132px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.5; }
.dispatch-plan-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dispatch-plan-actions .helper { margin-left: auto; }

@media (max-width: 980px) {
  .dispatch-plan-grid,
  .dispatch-performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-plan-grid .field:nth-child(2n),
  .dispatch-performance-cell:nth-child(2n) { border-right: 0; }
  .dispatch-plan-grid .field:nth-child(-n+2),
  .dispatch-performance-cell:nth-child(-n+6) { border-bottom: 1px solid var(--line); }
  .dispatch-plan-grid .field:nth-last-child(-n+2),
  .dispatch-performance-cell:nth-last-child(-n+1) { border-bottom: 0; }
}
@media (max-width: 620px) {
  .dispatch-plan-head { display: grid; }
  .dispatch-plan-grid,
  .dispatch-performance-grid { grid-template-columns: 1fr; }
  .dispatch-plan-grid .field,
  .dispatch-performance-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .dispatch-plan-grid .field:last-child,
  .dispatch-performance-cell:last-child { border-bottom: 0; }
  .dispatch-plan-actions .btn { width: 100%; }
  .dispatch-plan-actions .helper { width: 100%; margin-left: 0; }
}

/* ===== FlightBrief vector route planner + live Dispatch navigation map ===== */
.dispatch-route-type {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.dispatch-route-type button,
.dispatch-map-toolbar button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
}
.dispatch-route-type button:hover,
.dispatch-map-toolbar button:hover { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.7); }
.dispatch-route-type button.is-active,
.dispatch-map-toolbar button.is-active {
  color: #fff;
  border-color: var(--dhl-red);
  background: var(--dhl-red);
}
.dispatch-waypoint-planner { margin-top: 4px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.6); }
.dispatch-waypoint-heading { padding: 14px 16px; margin: 0; }
.dispatch-waypoint-heading h4 { font-size: 1rem; }
.dispatch-waypoint-table { min-width: 660px; }
.dispatch-waypoint-table th:first-child,
.dispatch-waypoint-table td:first-child { width: 50px; text-align: center; }
.dispatch-waypoint-table th:last-child,
.dispatch-waypoint-table td:last-child { width: 50px; text-align: center; }
.dispatch-waypoint-number { font-weight: 900; color: var(--ink-soft); }
.dispatch-waypoint-table input { width: 100%; min-width: 0; }
.dispatch-waypoint-table input.is-invalid { border-color: #b42318; background: #fff2f0; box-shadow: 0 0 0 2px rgba(180,35,24,.12); }
.dispatch-waypoint-remove { width: 30px; height: 30px; border: 0; border-radius: 50%; color: #fff; background: #7c1717; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.dispatch-plan-route-field .helper { display: block; margin-top: 7px; }
.dispatch-plan-route-field .helper.is-error { color: #a82318; font-weight: 850; }
.dispatch-plan-route-field textarea[readonly] { color: var(--ink); background: #f5f3e9; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 850; }

.dispatch-route-map-card { margin-top: 18px; border: 1px solid #22323d; border-radius: 16px; overflow: hidden; background: #0d1820; box-shadow: 0 16px 35px rgba(12,24,32,.18); }
.dispatch-map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 18px 20px; color: #f4f7f6; background: linear-gradient(135deg,#101f29,#182d38); }
.dispatch-map-head h4 { margin-top: 4px; font-size: 1.1rem; }
.dispatch-map-head p { margin-top: 5px; color: #b6c8d1; font-size: .82rem; }
.dispatch-map-head .eyebrow { color: #ffd800; }
.dispatch-route-distance { min-width: 125px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; text-align: right; background: rgba(0,0,0,.18); }
.dispatch-route-distance small,
.dispatch-route-distance strong { display: block; }
.dispatch-route-distance small { color: #b6c8d1; font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.dispatch-route-distance strong { margin-top: 3px; color: #ffd800; font-size: 1.18rem; }

.dispatch-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 10px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); color: #e7eef1; background: #14252e; }
.dispatch-map-toolbar button,
.dispatch-map-toolbar .dispatch-map-switch { color: #cfdae0; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.04); }
.dispatch-map-toolbar button:hover,
.dispatch-map-toolbar .dispatch-map-switch:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.dispatch-map-toolbar button.is-active { color: #151515; border-color: #ffd800; background: #ffd800; }
.dispatch-map-switch { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 10px; border-radius: 8px; font-size: .76rem; font-weight: 900; text-decoration: none; }
.dispatch-map-switch.is-disabled, .dispatch-map-switch[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.dispatch-map-toolbar__spacer { flex: 1 1 18px; }
.dispatch-map-toolbar--live { border-top: 0; }
.dispatch-map-filter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; font-size: .76rem; font-weight: 900; color: #dce6ea; }
.dispatch-map-filter input { accent-color: var(--dhl-red); }
.dispatch-map-status { color: #9fc7b2; font-size: .72rem; font-weight: 850; white-space: nowrap; }

.dispatch-vector-map { position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: 420px; overflow: hidden; background: radial-gradient(circle at 50% 46%,#16303a 0,#0d1b23 52%,#071116 100%); }
.dispatch-vector-map svg { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; }
.dispatch-vector-map svg.is-panning { cursor: grabbing; }
.dispatch-map-coast { filter: invert(88%); opacity: .58; pointer-events: none; }
.dispatch-map-boundaries { filter: invert(88%); opacity: .44; pointer-events: none; }
.dispatch-map-airport-asset { filter: invert(90%); opacity: .38; pointer-events: none; }
.dispatch-map-airport-asset.is-runway { opacity: .52; }
.dispatch-vector-map svg.hide-runways .dispatch-map-airport-asset.is-runway { display: none; }
.dispatch-vector-map svg.hide-waypoints [data-map-waypoints] { display: none; }
.dispatch-vector-map svg.hide-aircraft-labels .dispatch-map-aircraft__label { display: none; }

.dispatch-map-airport-label circle { fill: #ffd800; stroke: #111; stroke-width: 1.3; }
.dispatch-map-airport-label text { fill: #ffe568; stroke: #071116; stroke-width: 2.6px; paint-order: stroke fill; font-size: 9px; font-weight: 950; letter-spacing: .04em; pointer-events: none; }
.dispatch-map-waypoint { cursor: pointer; }
.dispatch-map-waypoint__hit { fill: transparent; }
.dispatch-map-waypoint__dot { fill: #65d7bf; stroke: #0b171d; stroke-width: 1; }
.dispatch-map-waypoint text { fill: #8de5d2; stroke: #081319; stroke-width: 2.4px; paint-order: stroke fill; font-size: 7.5px; font-weight: 800; pointer-events: none; }
.dispatch-map-waypoint:hover .dispatch-map-waypoint__dot,
.dispatch-map-waypoint:focus .dispatch-map-waypoint__dot { fill: #ffd800; r: 4; }
.dispatch-map-waypoint:hover text,
.dispatch-map-waypoint:focus text { fill: #fff4a6; }

.dispatch-map-route-casing { fill: none; stroke: rgba(0,0,0,.82); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.dispatch-map-route-line { fill: none; stroke: #ffd800; stroke-width: 3.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.dispatch-map-route-line.is-direct { stroke-dasharray: 13 7; }
.dispatch-map-route-line.is-rdv { stroke: #ff7268; stroke-dasharray: 7 9; }
.dispatch-map-route-casing.is-rdv { stroke-width: 7; }
.dispatch-map-route-node circle { fill: #fff; stroke: #151515; stroke-width: 2; }
.dispatch-map-route-node.is-waypoint circle { fill: #65d7bf; }
.dispatch-map-route-node.is-arrival circle { fill: #d90812; stroke: #fff; }
.dispatch-map-route-node.is-departure circle { fill: #ffd800; }
.dispatch-map-route-node text { fill: #fff; stroke: #071116; stroke-width: 3px; paint-order: stroke fill; font-size: 10px; font-weight: 950; text-anchor: middle; pointer-events: none; }

.dispatch-map-aircraft { pointer-events: auto; }
.dispatch-map-aircraft image { pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.78)); }
.dispatch-map-aircraft.is-dhl image { filter: brightness(0) saturate(100%) invert(82%) sepia(99%) saturate(1200%) hue-rotate(355deg) brightness(103%) contrast(102%) drop-shadow(0 0 4px rgba(255,216,0,.75)); }
.dispatch-map-aircraft.is-own image { filter: brightness(0) saturate(100%) invert(21%) sepia(96%) saturate(5250%) hue-rotate(349deg) brightness(91%) contrast(111%) drop-shadow(0 0 5px rgba(217,8,18,.95)); }
.dispatch-map-aircraft__label { pointer-events: none; }
.dispatch-map-aircraft__callsign,
.dispatch-map-aircraft__detail { fill: #f1f6f3; stroke: #061014; stroke-width: 3px; paint-order: stroke fill; font-weight: 950; }
.dispatch-map-aircraft__callsign { font-size: 10px; }
.dispatch-map-aircraft__detail { fill: #b9d0c5; font-size: 7.5px; font-weight: 800; }
.dispatch-map-aircraft__label.is-dhl .dispatch-map-aircraft__callsign { fill: #ffe566; }
.dispatch-map-aircraft__label.is-own .dispatch-map-aircraft__callsign { fill: #ff7f86; }

.dispatch-live-map-empty { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(340px,80%); margin: 0; padding: 13px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #c6d7cf; background: rgba(4,13,17,.78); text-align: center; font-weight: 850; pointer-events: none; }
.dispatch-live-map-empty[hidden] { display: none; }
.dispatch-map-attribution { margin: 0; color: #9eb0b9; background: #101f27; font-size: .73rem; line-height: 1.55; }
.dispatch-map-attribution a { color: #ffd800; font-weight: 850; }
.dispatch-grid--map { grid-template-columns: minmax(0,1.85fr) minmax(280px,.65fr); }

@media (max-width: 980px) {
  .dispatch-grid--map { grid-template-columns: 1fr; }
  .dispatch-vector-map { min-height: 360px; }
}
@media (max-width: 700px) {
  .dispatch-map-head { display: grid; align-items: start; }
  .dispatch-route-distance { width: 100%; text-align: left; }
  .dispatch-map-toolbar__spacer { display: none; }
  .dispatch-map-toolbar button, .dispatch-map-toolbar .dispatch-map-switch { flex: 1 1 auto; }
  .dispatch-map-status { width: 100%; }
  .dispatch-vector-map { min-height: 300px; }
}

/* Dispatch route/navigation refinements — filed callsigns, runway legs, popup, and ruler */
.dispatch-runway-leg-controls {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.62);
}
.dispatch-runway-leg-row {
  display: grid;
  grid-template-columns: minmax(220px,1fr) 100px 32px;
  align-items: center;
  gap: 10px;
}
.dispatch-runway-leg-row label { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.dispatch-runway-leg-row input[type="number"] { width: 100%; }
.dispatch-runway-leg-controls p { margin: 0; color: var(--muted); font-size: .88rem; }

.dispatch-plan-actions .is-disabled,
.btn.is-disabled {
  opacity: .48;
  cursor: not-allowed;
  pointer-events: auto;
  filter: grayscale(.35);
}

.dispatch-vector-map svg.hide-airports [data-map-airports] { display: none; }
.dispatch-map-airport-label circle { fill: #ffd800; stroke: #111; stroke-width: .8; vector-effect: non-scaling-stroke; }
.dispatch-map-airport-label.is-arr circle { fill: #d90812; }
.dispatch-map-airport-label text {
  font-size: 6px;
  stroke-width: 1.5px;
  letter-spacing: .02em;
}

.dispatch-map-route-node { cursor: pointer; }
.dispatch-map-route-node.is-selected circle {
  stroke: #ffcf33;
  stroke-width: 4;
  filter: drop-shadow(0 0 5px rgba(255,216,0,.9));
}
.dispatch-map-route-node.is-departure-custom circle,
.dispatch-map-route-node.is-arrival-custom circle {
  fill: #fff;
  stroke: #ffcf33;
  stroke-width: 2;
}
.dispatch-map-route-node.is-runway-rollout circle,
.dispatch-map-route-node.is-departure-runway circle,
.dispatch-map-route-node.is-arrival-runway circle { fill: #ffcf33; }

.dispatch-route-add-popover {
  position: absolute;
  z-index: 20;
  display: none;
  width: min(285px, calc(100% - 16px));
  padding: 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(10,22,29,.97);
  color: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.36);
}
.dispatch-route-add-popover.is-visible { display: block; }
.dispatch-route-add-popover strong { display: block; font-size: 1.05rem; }
.dispatch-route-add-popover p { margin: 6px 0 12px; color: #cbd8de; font-size: .88rem; }
.dispatch-route-add-popover > div { display: flex; flex-wrap: wrap; gap: 7px; }

.distance-tool-line { stroke: #ffcf5c; stroke-width: 2; stroke-dasharray: 6 5; }
.distance-tool-point { fill: #ffcf5c; stroke: #16232b; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.distance-tool-heading,
.distance-tool-distance {
  fill: #fff;
  stroke: #071116;
  stroke-width: 3px;
  paint-order: stroke fill;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  pointer-events: none;
}
.distance-tool-heading { font-size: 8px; }
.distance-tool-distance { font-size: 9px; fill: #ffcf5c; }
.dispatch-vector-map svg.is-measuring { cursor: crosshair; }

body[data-dispatch-navigation] .dispatch-vector-map--live { min-height: 620px; }
body[data-dispatch-navigation] .dispatch-grid--map { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }

@media (max-width: 820px) {
  .dispatch-runway-leg-row { grid-template-columns: 1fr 88px 28px; }
  body[data-dispatch-navigation] .dispatch-grid--map { grid-template-columns: 1fr; }
  body[data-dispatch-navigation] .dispatch-vector-map--live { min-height: 420px; }
}


/* Dispatch map fullscreen mode */
.dispatch-route-map-card:fullscreen,
.dispatch-scope-card:fullscreen {
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #071116;
}
.dispatch-route-map-card:fullscreen::backdrop,
.dispatch-scope-card:fullscreen::backdrop { background: #071116; }
.dispatch-route-map-card:fullscreen .dispatch-map-head,
.dispatch-scope-card:fullscreen .dispatch-card-heading { flex: 0 0 auto; background: #101f27; }
.dispatch-route-map-card:fullscreen .dispatch-map-toolbar,
.dispatch-scope-card:fullscreen .dispatch-map-toolbar { flex: 0 0 auto; }
.dispatch-route-map-card:fullscreen .dispatch-vector-map,
.dispatch-scope-card:fullscreen .dispatch-vector-map { flex: 1 1 auto; width: 100%; min-height: 0; height: auto; aspect-ratio: auto; }
.dispatch-route-map-card:fullscreen .dispatch-map-attribution,
.dispatch-scope-card:fullscreen .dispatch-map-attribution { flex: 0 0 auto; }


/* Dispatch v8 — runway extension switches and draggable FlightBrief-style handles */
.dispatch-runway-leg-toggle {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}
.dispatch-runway-leg-toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.dispatch-runway-leg-toggle__track {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border: 1px solid rgba(26, 35, 39, .2);
  border-radius: 999px;
  background: #d9e0e3;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .09);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dispatch-runway-leg-toggle__track > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .24);
  transition: transform .18s ease;
}
.dispatch-runway-leg-toggle input:checked + .dispatch-runway-leg-toggle__track {
  border-color: #c59d00;
  background: var(--dhl-yellow);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 2px rgba(255, 204, 0, .14);
}
.dispatch-runway-leg-toggle input:checked + .dispatch-runway-leg-toggle__track > span {
  transform: translateX(18px);
}
.dispatch-runway-leg-toggle input:focus-visible + .dispatch-runway-leg-toggle__track {
  outline: 3px solid rgba(211, 0, 0, .25);
  outline-offset: 2px;
}
.dispatch-runway-leg-toggle__label {
  min-width: 0;
  line-height: 1.2;
}
.dispatch-map-route-node.is-draggable-runway-leg {
  cursor: grab;
  touch-action: none;
}
.dispatch-map-route-node.is-draggable-runway-leg circle {
  stroke: #1d2528;
  stroke-width: 1.5;
  paint-order: stroke fill;
}
.dispatch-map-route-node.is-draggable-runway-leg::after { content: ''; }
.dispatch-map-route-node.is-draggable-runway-leg.is-dragging,
.dispatch-vector-map svg.is-dragging-runway-leg .dispatch-map-route-node.is-draggable-runway-leg {
  cursor: grabbing;
}
.dispatch-map-route-node.is-draggable-runway-leg.is-dragging circle {
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45));
}
@media (max-width: 720px) {
  .dispatch-runway-leg-toggle__track { width: 38px; height: 22px; }
  .dispatch-runway-leg-toggle__track > span { width: 14px; height: 14px; }
  .dispatch-runway-leg-toggle input:checked + .dispatch-runway-leg-toggle__track > span { transform: translateX(16px); }
}

/* Assignment lifecycle, diversion and follow-aircraft controls */
.assignment-lifecycle {
  display: grid;
  grid-template-columns: auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
  padding: 12px 16px;
  border: 1px solid rgba(20, 34, 41, .12);
  border-radius: 12px;
  background: #fff;
}
.assignment-lifecycle span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf1f3;
  color: #526068;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.assignment-lifecycle span.is-active { background: var(--dhl-yellow); color: #1b1f20; box-shadow: 0 0 0 3px rgba(255, 204, 0, .18); }
.assignment-lifecycle span.is-complete { background: #d9f0df; color: #195d2c; }
.assignment-lifecycle i { display: block; height: 3px; border-radius: 999px; background: #dce3e6; }
.assignment-lifecycle-message { margin: 0 0 18px; color: #59676e; font-size: .9rem; }

.dispatch-map-toolbar button[data-dispatch-map-follow-own].is-active {
  color: #151a1d;
  border-color: #d2a900;
  background: var(--dhl-yellow);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, .18);
}
.dispatch-map-toolbar button[data-dispatch-map-follow-own]:disabled { opacity: .5; cursor: not-allowed; }

.dispatch-own-card [data-dispatch-diversion-open] { width: 100%; margin-top: 14px; }
.dispatch-diversion-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}
.dispatch-diversion-dialog::backdrop { background: rgba(5, 13, 17, .72); backdrop-filter: blur(3px); }
.dispatch-diversion-dialog form { position: relative; padding: 28px; }
.dispatch-diversion-dialog h2 { margin: 4px 0 8px; }
.dispatch-diversion-choice {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 12px;
  background: #f2f5f6;
  border-left: 5px solid var(--dhl-yellow);
}
.dispatch-diversion-choice strong { font-size: 2rem; letter-spacing: .04em; }
.dispatch-diversion-choice span { color: #59676e; font-weight: 700; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf1f3;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .assignment-lifecycle { grid-template-columns: 1fr; }
  .assignment-lifecycle i { width: 3px; height: 12px; margin-left: 18px; }
  .assignment-lifecycle span { width: fit-content; }
  .dispatch-diversion-choice { align-items: flex-start; flex-direction: column; }
}

/* Pilot statistics, navigation lifecycle, V-speeds, and route guidance */
.statistics-shell { padding-bottom: 48px; }
.pilot-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 22px;
  background: linear-gradient(125deg, #fff 0%, #fff9dc 100%);
  border-left: 6px solid var(--dhl-yellow);
}
.pilot-profile-card__avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #17242a;
  color: var(--dhl-yellow);
  font-size: 2rem;
  font-weight: 900;
}
.pilot-profile-card h2 { margin: 2px 0 4px; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.pilot-profile-card p { margin: 0; color: var(--ink-soft); font-weight: 700; }
.pilot-profile-card__id { text-align: right; }
.pilot-profile-card__id span { display: block; color: var(--ink-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
.pilot-profile-card__id strong { display: block; margin-top: 4px; }
.pilot-stat-card { position: relative; overflow: hidden; }
.pilot-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -38px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 204, 0, .12);
}
.statistics-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.statistics-rate { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 14px; }
.statistics-rate strong { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.statistics-rate span { max-width: 280px; color: var(--ink-soft); }
.statistics-progress { height: 12px; overflow: hidden; border-radius: 999px; background: #e7ecee; }
.statistics-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dhl-yellow), #f0b400); }

.nav-flight-status-card {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(380px, 1.45fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-left: 6px solid var(--dhl-yellow);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-flight-status-card[data-flight-stage="airborne"] { border-left-color: #2582c4; background: linear-gradient(100deg, #fff 0%, #edf7ff 100%); }
.nav-flight-status-card[data-flight-stage="landing"] { border-left-color: #ef9f18; background: linear-gradient(100deg, #fff 0%, #fff6e3 100%); }
.nav-flight-status-card[data-flight-stage="complete"] { border-left-color: var(--success); background: linear-gradient(100deg, #fff 0%, #eaf8ef 100%); box-shadow: 0 0 0 4px rgba(27, 143, 68, .08); }
.nav-flight-status-card__current { display: flex; align-items: center; gap: 15px; }
.nav-flight-status-card__current strong { display: block; margin: 2px 0 4px; font-size: 1.45rem; }
.nav-flight-status-card__current p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.nav-flight-status-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #17242a;
  color: var(--dhl-yellow);
  font-size: 1.4rem;
  font-weight: 900;
}
.nav-flight-status-card[data-flight-stage="airborne"] .nav-flight-status-card__icon { color: #8fd1ff; }
.nav-flight-status-card[data-flight-stage="landing"] .nav-flight-status-card__icon { color: #ffd17d; }
.nav-flight-status-card[data-flight-stage="complete"] .nav-flight-status-card__icon { color: #83e5a6; }
.nav-flight-status-card__steps { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 8px; }
.nav-flight-status-card__steps span { padding: 7px 10px; border-radius: 999px; background: #edf1f3; color: #65737a; font-size: .76rem; font-weight: 850; white-space: nowrap; }
.nav-flight-status-card__steps span.is-active { color: #1a2023; background: var(--dhl-yellow); box-shadow: 0 0 0 3px rgba(255, 204, 0, .17); }
.nav-flight-status-card__steps span.is-complete { color: #195d2c; background: #d9f0df; }
.nav-flight-status-card__steps i { height: 3px; border-radius: 999px; background: #dce3e6; }

.nav-flight-status-toast {
  position: fixed;
  z-index: 90;
  top: 88px;
  right: 20px;
  width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 13px;
  background: #102028;
  color: #fff;
  border-left: 5px solid var(--dhl-yellow);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
}
.nav-flight-status-toast.is-visible { opacity: 1; transform: translateY(0); }
.nav-flight-status-toast strong { display: block; color: var(--dhl-yellow); }
.nav-flight-status-toast span { display: block; margin-top: 3px; color: #d5e0e5; font-size: .88rem; }

.nav-vspeeds { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.nav-vspeeds__heading h3 { margin: 2px 0 10px; font-size: 1.15rem; }
.nav-vspeeds__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.nav-vspeeds__grid > div { padding: 11px; border-radius: 11px; background: #f2f5f6; border: 1px solid #e1e7e9; }
.nav-vspeeds__grid span { display: block; color: var(--dhl-red); font-size: .72rem; font-weight: 900; letter-spacing: .06em; }
.nav-vspeeds__grid strong { display: block; margin: 2px 0; font-size: 1.05rem; }
.nav-vspeeds__grid small { color: var(--ink-soft); }

.nav-guidance-panel {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(130px, .65fr) minmax(130px, .65fr) minmax(270px, 1.7fr);
  gap: 10px;
  width: min(820px, calc(100% - 28px));
  padding: 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: rgba(5, 17, 23, .91);
  color: #fff;
  box-shadow: 0 15px 38px rgba(0,0,0,.36);
  backdrop-filter: blur(7px);
  pointer-events: none;
}
.nav-guidance-panel__heading,
.nav-guidance-panel__target,
.nav-course-indicator { min-width: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.06); }
.nav-guidance-panel span { display: block; color: #9fb1ba; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.nav-guidance-panel strong { display: block; margin: 2px 0; color: var(--dhl-yellow); font-size: 1.55rem; line-height: 1.05; }
.nav-guidance-panel small { display: block; color: #d4e0e5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-course-indicator__labels { display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; text-align: center; }
.nav-course-indicator__labels strong { margin: 0; font-size: .9rem; color: #fff; }
.nav-course-indicator__track { position: relative; height: 30px; margin: 5px 5px 3px; border-radius: 999px; background: linear-gradient(90deg, rgba(214,41,49,.34), rgba(255,204,0,.28), rgba(29,155,72,.34), rgba(255,204,0,.28), rgba(214,41,49,.34)); }
.nav-course-indicator__center { position: absolute; top: 3px; bottom: 3px; left: 50%; width: 2px; transform: translateX(-50%); background: rgba(255,255,255,.72); }
.nav-course-indicator__ball { position: absolute; top: 50%; left: calc(50% + var(--course-offset, 0%)); width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: #aab5ba; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); transition: transform .35s ease, background .2s ease; }
.nav-course-indicator[data-course-state="green"] .nav-course-indicator__ball { background: #28b463; }
.nav-course-indicator[data-course-state="yellow"] .nav-course-indicator__ball { background: #f4bf24; }
.nav-course-indicator[data-course-state="red"] .nav-course-indicator__ball { background: #dc3038; }
.nav-course-indicator > small { text-align: center; }

.flight-complete-dialog {
  width: min(580px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
}
.flight-complete-dialog::backdrop { background: rgba(4, 13, 17, .78); backdrop-filter: blur(5px); }
.flight-complete-dialog__content { padding: 32px; text-align: center; background: linear-gradient(150deg, #fff 0%, #fff9dd 100%); }
.flight-complete-dialog__check { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 50%; background: #dff5e7; color: var(--success); font-size: 2.6rem; font-weight: 900; box-shadow: 0 0 0 8px rgba(27,143,68,.08); }
.flight-complete-dialog h2 { margin: 5px 0 10px; font-size: clamp(1.65rem, 4vw, 2.3rem); }
.flight-complete-dialog p { max-width: 480px; margin: 0 auto 22px; color: var(--ink-soft); }
.flight-complete-dialog .dispatch-plan-actions { justify-content: center; }

@media (max-width: 900px) {
  .nav-flight-status-card { grid-template-columns: 1fr; }
  .nav-guidance-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-course-indicator { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .pilot-profile-card { grid-template-columns: auto 1fr; }
  .pilot-profile-card__id { grid-column: 1 / -1; text-align: left; }
  .statistics-rates { grid-template-columns: 1fr; }
  .nav-flight-status-card__steps { grid-template-columns: 1fr; }
  .nav-flight-status-card__steps i { width: 3px; height: 10px; margin-left: 18px; }
  .nav-guidance-panel { position: relative; left: auto; bottom: auto; transform: none; width: calc(100% - 18px); margin: -128px auto 9px; grid-template-columns: 1fr 1fr; }
  .nav-course-indicator { grid-column: 1 / -1; }
  .flight-complete-dialog__content { padding: 26px 20px; }
}

/* Expanded pilot statistics */
.pilot-stat-grid--expanded {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.pilot-stat-grid--expanded .pilot-stat-card strong {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}
.pilot-active-stat {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  border-left: 6px solid #2582c4;
  background: linear-gradient(105deg, #fff 0%, #eef8ff 100%);
}
.pilot-active-stat h2 { margin: 3px 0 5px; }
.pilot-active-stat p { margin: 0; color: var(--ink-soft); }
.pilot-active-stat__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 12px;
}
.pilot-active-stat__metrics span {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(23,36,42,.08);
}
.pilot-active-stat__metrics small {
  display: block;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .68rem;
  font-weight: 800;
}
.pilot-active-stat__metrics strong { display: block; margin-top: 3px; }
.pilot-history-table { min-width: 1260px; }
.pilot-history-table td { vertical-align: top; }

@media (max-width: 980px) {
  .pilot-active-stat { grid-template-columns: 1fr; align-items: stretch; }
  .pilot-active-stat .btn { width: 100%; }
}
@media (max-width: 640px) {
  .pilot-active-stat__metrics { grid-template-columns: 1fr; }
}

/* ATIS and runway suggestions */
.dispatch-atis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dispatch-atis-card {
  border: 1px solid rgba(25, 35, 41, 0.13);
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 16px 45px rgba(18, 28, 34, 0.07);
}

.dispatch-atis-card[data-atis-state="warning"] {
  border-color: rgba(210, 145, 0, 0.55);
  background: linear-gradient(180deg, #fffdf5, #fff);
}

.dispatch-atis-card[data-atis-state="current"] {
  border-color: rgba(25, 126, 79, 0.32);
}

.dispatch-atis-card__head,
.dispatch-atis-card__runway {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dispatch-atis-card__head h3 {
  margin: 3px 0 0;
}

.dispatch-atis-card__runway {
  margin: 20px 0 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft, #f5f7f7);
  flex-wrap: wrap;
}

.dispatch-atis-card__runway small,
.dispatch-atis-card__runway span {
  color: var(--ink-soft);
}

.dispatch-atis-card__runway strong {
  width: 100%;
  font-size: 1.2rem;
}

.dispatch-atis-card__text {
  min-height: 3.2em;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}

.dispatch-atis-card__suggestion {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(25, 35, 41, 0.1);
  font-weight: 700;
}

.dispatch-atis-card[data-atis-state="warning"] .dispatch-atis-card__suggestion {
  color: #855c00;
}

@media (max-width: 800px) {
  .dispatch-atis-grid { grid-template-columns: 1fr; }
  .dispatch-atis-card__head,
  .dispatch-atis-card__runway { align-items: flex-start; }
}

/* Staff-managed event calendar */
.event-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.event-loading { margin-bottom: 18px; }
.event-calendar-layout {
  display: grid;
  grid-template-columns: minmax(310px, .76fr) minmax(0, 1.5fr);
  gap: 18px;
  align-items: start;
}
.event-calendar-panel { position: sticky; top: 96px; }
.event-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.event-calendar__header h2 { margin: 9px 0 0; font-size: 1.55rem; }
.event-calendar__controls { display: flex; gap: 7px; align-items: center; }
.event-calendar__weekdays,
.event-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.event-calendar__weekdays { margin-bottom: 7px; }
.event-calendar__weekdays span {
  color: var(--ink-soft);
  font-size: .67rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}
.event-calendar__day {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 850;
}
.event-calendar__day:hover { border-color: rgba(212, 5, 17, .3); }
.event-calendar__day.is-outside { opacity: .34; }
.event-calendar__day.is-today { box-shadow: inset 0 0 0 2px var(--dhl-red); }
.event-calendar__day.is-selected { background: var(--dhl-yellow); color: var(--dhl-red-dark); border-color: #dbad00; }
.event-calendar__day small {
  position: absolute;
  right: 4px;
  bottom: 3px;
  min-width: 17px;
  min-height: 17px;
  display: grid;
  place-items: center;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--dhl-red);
  color: #fff;
  font-size: .58rem;
}
.event-staff-tools {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.event-staff-tools h3 { margin: 13px 0 7px; }
.event-feed-heading { align-items: flex-start; }
.event-filter-bar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.event-filter {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 850;
}
.event-filter:hover,
.event-filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.event-card--live { align-items: start; }
.event-card__content { min-width: 0; }
.event-card__title-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.event-card__title-row h3 { margin: 0; font-size: 1.12rem; }
.event-card__description {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink-soft);
  font-size: .86rem;
}
.event-card__actions { display: grid; gap: 8px; min-width: 108px; }
.event-empty { padding: 42px 16px; text-align: center; }
.event-empty strong { display: block; font-size: 1.05rem; }
.event-dialog {
  width: min(780px, calc(100% - 28px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
}
.event-dialog::backdrop { background: rgba(7, 10, 12, .72); backdrop-filter: blur(4px); }
.event-dialog .dialog-close {
  position: sticky;
  z-index: 3;
  top: 13px;
  float: right;
  margin: 13px 13px -55px 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.event-dialog__content { padding: 32px; }
.event-detail__header { display: flex; justify-content: space-between; gap: 20px; padding-right: 40px; }
.event-detail__header h2 { margin: 13px 0 6px; font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.04em; }
.event-detail__header p { color: var(--ink-soft); }
.event-detail__description { margin: 22px 0; font-size: .98rem; white-space: pre-line; }
.event-detail__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.event-detail__metrics .metric strong { overflow-wrap: anywhere; }
.event-detail__section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.event-detail__section h3 { margin-bottom: 12px; }
.event-role-counts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.event-role-counts span { padding: 7px 10px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); font-size: .75rem; }
.event-role-counts strong { color: var(--ink); }
.event-participant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.event-participant { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.event-participant__avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--dhl-yellow); color: var(--dhl-red-dark); font-weight: 900; }
.event-participant strong, .event-participant small { display: block; }
.event-participant small { color: var(--ink-soft); font-size: .68rem; }
.event-rsvp-panel { margin-top: 24px; padding: 18px; border: 1px solid #ead05b; border-radius: 16px; background: #fff9dc; }
.event-rsvp-panel select { margin: 7px 0 12px; }
.event-rsvp-actions, .event-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-detail__actions { margin-top: 24px; }
.event-cancelled-notice { margin-top: 18px; border-left-color: var(--dhl-red); }
.event-editor-dialog { width: min(900px, calc(100% - 28px)); }
.event-editor-dialog h2 { margin: 13px 0 6px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.event-fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.event-fieldset legend { padding: 0 6px; font-size: .82rem; font-weight: 800; }
.event-checkbox-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.event-checkbox { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-size: .78rem; }
.event-checkbox input { width: auto; margin: 0; }
.event-checkbox span { overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .event-calendar-layout { grid-template-columns: 1fr; }
  .event-calendar-panel { position: static; }
  .event-detail__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .event-page-actions { justify-content: flex-start; }
  .event-calendar__header, .event-feed-heading, .event-detail__header { align-items: flex-start; flex-direction: column; }
  .event-filter-bar { justify-content: flex-start; }
  .event-card--live { grid-template-columns: 60px 1fr; }
  .event-card__actions { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .event-detail__metrics, .event-participant-list { grid-template-columns: 1fr; }
  .event-dialog__content { padding: 26px 18px; }
  .event-checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Permanent event deletion is intentionally visually distinct from normal editing. */
.btn--danger {
  background: #7d1117;
  border-color: #7d1117;
  color: #fff;
}

.btn--danger:hover:not(:disabled),
.btn--danger:focus-visible:not(:disabled) {
  background: #5f0d12;
  border-color: #5f0d12;
  color: #fff;
}

.btn--danger:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Hub-and-spoke shipment journey */
.assignment-current-leg {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--ink, #151515);
  font-size: 1rem;
}

.shipment-journey {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.shipment-journey__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted, #666);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shipment-journey__route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
}

.shipment-journey__route i {
  color: #777;
  font-style: normal;
  font-weight: 800;
}

.shipment-journey__stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 5px 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #4c4c4c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.shipment-journey__stop.is-complete {
  border-color: rgba(0, 116, 54, 0.35);
  background: #e7f7ed;
  color: #006b32;
}

.shipment-journey__stop.is-active {
  border-color: #d40511;
  background: #ffcc00;
  color: #111;
  box-shadow: 0 0 0 2px rgba(212, 5, 17, 0.12);
}

.shipment-journey small {
  display: block;
  color: var(--muted, #666);
  line-height: 1.35;
}

.shipment-journey--dispatch {
  width: 100%;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
}

@media (max-width: 700px) {
  .shipment-journey__route {
    gap: 5px;
  }

  .shipment-journey__stop {
    min-width: 42px;
    padding: 4px 7px;
  }
}

/* Readable Pilot Operations assignment cards */
.assignment-card-list {
  display: grid;
  gap: 18px;
  padding: 0 22px 24px;
}

.assignment-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line, #dedede);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.assignment-card__header,
.assignment-card__actions,
.shipment-journey__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.assignment-card__header > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.assignment-card__header strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.assignment-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.assignment-card__current-leg {
  padding: 18px;
  border-left: 5px solid var(--dhl-red, #d40511);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffcc00, #ffe47a);
}

.assignment-card__leg-label {
  display: block;
  margin-bottom: 8px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.assignment-card__airports {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.assignment-card__airports strong {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  letter-spacing: -.045em;
}

.assignment-card__airports strong:last-child { text-align: right; }
.assignment-card__airports span { font-size: 1.5rem; font-weight: 900; }

.assignment-card__details,
.assignment-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.assignment-card__metric,
.assignment-summary-grid > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line, #dedede);
  border-radius: 12px;
  background: #f8f8f8;
}

.assignment-card__metric span,
.assignment-summary-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted, #666);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.assignment-card__metric strong,
.assignment-summary-grid strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.assignment-card__description {
  margin: 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f6f6f6;
  color: var(--muted, #5f5f5f);
  line-height: 1.55;
}

.assignment-card__actions {
  align-items: end;
  padding-top: 2px;
}

.assignment-card__actions label {
  display: grid;
  flex: 1 1 420px;
  gap: 7px;
  color: var(--muted, #666);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.assignment-card__actions .assignment-aircraft-select {
  width: 100%;
  min-width: 0;
  text-transform: none;
}

.assignment-card__actions .btn { flex: 0 0 auto; }

.assignment-current-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--dhl-yellow, #ffcc00);
}

.assignment-current-route__arrow {
  font-size: 1.5rem;
  font-weight: 950;
}

.shipment-journey__heading { margin-bottom: 8px; }
.shipment-journey__heading .shipment-journey__label { margin-bottom: 0; }
.shipment-journey__heading small { font-weight: 800; }

.shipment-journey__legs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.shipment-journey__leg {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 10px;
  background: #fff;
  color: #565656;
  font-size: .77rem;
}

.shipment-journey__leg b {
  font-size: .68rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.shipment-journey__leg.is-current {
  border-color: var(--dhl-red, #d40511);
  background: #fff4b8;
  color: #111;
  box-shadow: inset 4px 0 0 var(--dhl-red, #d40511);
}

.shipment-journey__leg.is-complete {
  border-color: rgba(0, 116, 54, .3);
  background: #e7f7ed;
  color: #006b32;
}

.shipment-journey__leg.is-upcoming { opacity: .76; }

@media (max-width: 760px) {
  .assignment-card-list { padding: 0 14px 18px; }
  .assignment-card { padding: 15px; }
  .assignment-card__header,
  .assignment-card__actions { align-items: stretch; flex-direction: column; }
  .assignment-card__badges { justify-content: flex-start; }
  .assignment-card__details,
  .assignment-summary-grid { grid-template-columns: 1fr 1fr; }
  .assignment-card__actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .assignment-card__details,
  .assignment-summary-grid { grid-template-columns: 1fr; }
  .assignment-card__airports strong { font-size: 1.55rem; }
}

/* Ground Crew operations */
.ground-workspace { display: grid; gap: 24px; }
.ground-control-grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.5fr); gap: 22px; }
.ground-operations-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 22px; align-items: start; }
.ground-shift-form { display: grid; gap: 12px; }
.ground-shift-form label { display: grid; gap: 6px; font-weight: 800; }
.ground-shift-form label span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.ground-shift-form select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.ground-shift-note { margin: 14px 0 0; }
.ground-live-map-card { overflow: hidden; }
.ground-live-map-shell { position: relative; min-height: 430px; background: #edf1f3; border-top: 1px solid var(--line); overflow: hidden; }
.ground-live-map { display: block; width: 100%; height: 430px; background: linear-gradient(180deg, #e7f0f4, #d8e5eb); }
.ground-live-map > image { opacity: .84; pointer-events: none; }
.ground-map-empty { position: absolute; inset: auto 18px 18px 18px; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.ground-map-empty span { color: var(--ink-soft); font-size: .86rem; }
.ground-map-airport circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.ground-map-airport text { font-size: 12px; font-weight: 900; paint-order: stroke; stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.ground-map-airport.is-selected circle { fill: var(--dhl-yellow); stroke: var(--dhl-red); stroke-width: 3; }
.ground-map-aircraft path { fill: var(--dhl-red); stroke: #fff; stroke-width: 2; }
.ground-map-aircraft text { font-size: 13px; font-weight: 900; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.ground-map-aircraft__sub { font-size: 10px !important; font-weight: 700 !important; fill: var(--ink-soft) !important; }
.ground-job-list { padding: 0 20px 20px; display: grid; gap: 14px; }
.ground-job-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); display: grid; gap: 14px; }
.ground-job-card > header, .ground-cargo-card > header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ground-job-card > header strong, .ground-cargo-card > header strong { display: block; font-size: 1.12rem; }
.ground-job-card > header p, .ground-cargo-card p { margin: 3px 0 0; color: var(--ink-soft); }
.ground-job-meta, .ground-cargo-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ground-job-meta span, .ground-cargo-meta span { display: grid; gap: 2px; padding: 10px; background: var(--surface-2); border-radius: 10px; }
.ground-job-meta small, .ground-cargo-meta small { color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.ground-job-meta a { color: var(--info); font-weight: 800; }
.ground-job-actions, .ground-task-actions, .pilot-ground-services__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ground-job-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ground-task-list { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ground-task-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.ground-task-row > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ground-roster { display: grid; gap: 10px; }
.ground-roster-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.ground-roster-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ground-roster-row > span:first-child { display: grid; }
.ground-roster-row small { color: var(--ink-soft); }
.ground-cargo-board { overflow: hidden; }
.partner-cargo-banner { margin: 0 20px 20px; border: 1px solid rgba(212,5,17,.22); border-left: 6px solid var(--dhl-red); border-radius: 14px; background: linear-gradient(120deg, var(--dhl-yellow-soft), #fff); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.partner-cargo-banner strong { display: block; font-size: 1.15rem; }
.partner-cargo-banner p { margin: 4px 0 0; color: var(--ink-soft); }
.partner-cargo-banner > span { background: var(--dhl-red); color: #fff; border-radius: 999px; padding: 7px 11px; font-weight: 900; white-space: nowrap; }
.ground-cargo-list { padding: 0 20px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ground-cargo-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); display: grid; gap: 12px; }
.ground-cargo-card.is-partner { border-color: rgba(212,5,17,.35); box-shadow: inset 4px 0 0 var(--dhl-red); }
.ground-cargo-route { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.ground-cargo-route span { color: var(--dhl-red); }
.ground-handling-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ground-handling-tags span { border-radius: 999px; background: var(--surface-2); padding: 5px 8px; font-size: .76rem; font-weight: 800; }
.partner-event { color: var(--dhl-red-dark) !important; font-weight: 800; }
.partner-inline { display: inline-block; margin-right: 5px; border-radius: 999px; background: var(--dhl-yellow); color: var(--dhl-red-dark); padding: 1px 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.pilot-ground-services { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface-2); display: grid; gap: 12px; }
.pilot-ground-services__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pilot-ground-services__heading strong { display: block; }
.pilot-ground-services__requests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pilot-ground-services__requests label { display: flex; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; }
.pilot-manifest-summary { padding-top: 12px; border-top: 1px solid var(--line); }
.manifest-result { display: grid; gap: 8px; }
.manifest-result > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.manifest-result ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 5px; }
.manifest-result li { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }

/* Public pilot directory */
.pilot-directory-form { display: flex; gap: 10px; align-items: center; }
.pilot-directory-form input { min-width: min(430px, 70vw); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; background: var(--surface); }
.pilot-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pilot-directory-card { display: grid; gap: 12px; padding: 18px; }
.pilot-directory-card__head { display: flex; gap: 12px; align-items: center; }
.pilot-directory-card__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--dhl-yellow); color: var(--dhl-red-dark); font-weight: 950; font-size: 1.2rem; }
.pilot-directory-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pilot-directory-card__stats span { display: grid; padding: 9px; background: var(--surface-2); border-radius: 10px; }
.pilot-directory-card__stats small { color: var(--ink-soft); }
.public-profile-note { color: var(--ink-soft); font-size: .9rem; }

@media (max-width: 900px) {
  .ground-control-grid, .ground-operations-grid { grid-template-columns: 1fr; }
  .ground-cargo-list, .pilot-directory-grid { grid-template-columns: 1fr; }
  .ground-job-meta, .ground-cargo-meta { grid-template-columns: 1fr; }
  .partner-cargo-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .ground-live-map-shell, .ground-live-map { min-height: 340px; height: 340px; }
  .ground-task-row, .ground-job-card > header, .ground-cargo-card > header, .pilot-ground-services__heading { align-items: stretch; flex-direction: column; }
  .pilot-ground-services__requests { grid-template-columns: 1fr; }
  .pilot-directory-form { align-items: stretch; flex-direction: column; }
  .pilot-directory-form input { min-width: 0; width: 100%; }
}

.ground-cargo-select {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.ground-cargo-select input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--dhl-red);
  flex: 0 0 auto;
}

.ground-cargo-card.is-selected {
  border-color: rgba(212, 5, 17, 0.62);
  box-shadow: 0 0 0 3px rgba(212, 5, 17, 0.12), var(--shadow);
}


/* Pilot Operations assignment filtering and partner freight */
.pilot-order-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  align-items: end;
  gap: 12px;
  padding: 0 22px 18px;
}

.pilot-order-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pilot-order-filters label > span {
  color: var(--ink-soft, #666);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pilot-order-filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line, #dedede);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--surface, #fff);
}

.pilot-order-filter-count {
  align-self: center;
  white-space: nowrap;
  color: var(--ink-soft, #666);
  font-size: .86rem;
}

.assignment-card--partner {
  border-color: rgba(212, 5, 17, .42);
  box-shadow: 0 10px 28px rgba(212, 5, 17, .10);
}

.assignment-card--partner .assignment-card__current-leg {
  background: linear-gradient(135deg, #ffcc00, #fff2a8);
}

@media (max-width: 980px) {
  .pilot-order-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .pilot-order-filters {
    grid-template-columns: 1fr;
    padding: 0 14px 16px;
  }

  .pilot-order-filter-count {
    justify-self: start;
  }
}
