:root {
  color-scheme: dark;
  color: #eef3ec;
  background: #111713;
  --ink: #eef3ec;
  --muted: #a5b5a8;
  --line: #354239;
  --green: #c8ef8f;
  --forest: #0b110e;
  --lime: #c8ef8f;
  --paper: #19221c;
  --warn: #f5ce84;
  --danger: #ffadb0;
  --surface: #1d2921;
  --active: #273725;
  --accent-ink: #182516;
}
body { background: radial-gradient(ellipse at 48% 0%, #263127 0%, #151d17 34rem, #111713 65rem); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline-color: var(--lime); }
h1 { font-size: clamp(2.35rem, 4vw, 3.55rem); letter-spacing: -.07em; }
h2 { letter-spacing: -.035em; }
main { padding-top: 30px; }
.skip { background: var(--paper); }
.sidebar { border-right: 1px solid #26322a; padding: 21px 15px 15px; }
.brand { gap: 10px; padding: 4px 8px 22px; margin-bottom: 12px; border-bottom: 1px solid #26322a; }
.brand img { width: 51px; height: 43px; }
.brand strong { font-size: 1.12rem; letter-spacing: -.04em; }
.brand small { color: var(--muted); }
.nav-group { margin-bottom: 22px; }
.nav-label { color: #91a495; }
.nav-link { position: relative; margin: 3px 0; color: #b8c7bb; border: 1px solid transparent; }
.nav-link:hover { background: #1c2a20; color: var(--ink); }
.nav-link.active { background: #233423; color: var(--lime); border-color: #3c5037; }
.nav-link.active::before { content: ''; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 4px; background: var(--lime); }
.side-footer { border-color: #26322a; }
.workspace-label { color: #aebdb0; }
.top { background: #141c17; border-color: #2d392f; }
.avatar { color: var(--lime); background: #2c412b; border-color: #40563b; }
.demo-label { background: #26362a; color: #c6ddbd; }
.icon-btn, .btn.secondary { background: #202b23; color: var(--ink); border-color: #3c4a40; }
.icon-btn:hover, .btn.secondary:hover { background: #303e33; border-color: #697a6d; }
.btn { color: var(--accent-ink); background: var(--lime); border-radius: 8px; padding-inline: 15px; }
.btn:hover { background: #deffb2; }
.btn.light { color: #d3eabd; background: #263629; border-color: #384b3a; }
.btn.light:hover { background: #354838; }
.btn.danger { color: #ffd0cf; background: #4b282b; border-color: #704246; }
.btn.danger:hover { background: #63353a; }
.text-btn, .rowbutton { color: var(--lime); }
.unread { background: #f1bf66; border-color: #242d26; }

.page-head { align-items: flex-end; margin-bottom: 23px; }
.page-head p { margin-top: 8px; }
.date-line { color: #c7d8c1; display: flex; align-items: center; gap: 8px; font-size: .75rem; letter-spacing: .095em; }
.date-line .icon { width: .95rem; height: .95rem; color: #aacb97; }
.date-line span { border-left: 1px solid #4b5b4e; padding-left: 9px; color: #a2b49e; }
.dispatch-head { padding-bottom: 5px; }
.dispatch-head .actions { padding-bottom: 2px; }

.metrics {
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: #1b261e;
  border-radius: 15px;
  overflow: hidden;
}
.metric {
  position: relative;
  border: 0;
  border-right: 1px solid #374439;
  border-radius: 0;
  background: transparent;
  padding: 13px 16px 14px;
  transition: background .18s ease;
}
.metric:last-child { border-right: 0; }
.metric:hover { background: #293b2c; transform: none; }
.metric:focus-visible { outline-offset: -3px; }
.metric-top { justify-content: space-between; color: #d5e1d6; }
.metric-number { margin: 0 0 2px; font-size: 2.45rem; color: #f4faf1; font-variant-numeric: tabular-nums; }
.metric small { color: #a9bbab; }
.tile-icon { background: #2d432d; color: #c8eea1; border: 1px solid #3f5640; }
.tile-icon.blue { background: #293949; border-color: #435567; color: #b9d5f3; }
.tile-icon.amber { background: #443724; border-color: #654b2c; color: #f6cc87; }
.tile-icon.gray { background: #323b35; border-color: #4b574f; color: #becdc3; }

.card { background: var(--paper); border-color: var(--line); border-radius: 15px; }
.card-head, .filters, .fleet-list li { border-color: var(--line); }
.card-head { padding-block: 12px; }
.split { align-items: start; }
.radar-grid { grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr); gap: 14px; }
.radar-card { background: #14221b; }
.map { background: #162a22; }
.overview-map { height: 402px; }
.map[role=region] { border-radius: inherit; }
img.map-art { filter: grayscale(1) invert(.89) brightness(.72) contrast(1.15); opacity: .8; }
.map-layer { background: #142820; }
.map-layer::before { content: ''; position: absolute; z-index: 1; inset: 0; background: #2d734b23; pointer-events: none; }
.map-layer svg.map-art { z-index: 1; }
.map-art .route { stroke: #c3f179; stroke-width: 3; filter: drop-shadow(0 0 3px #c3f17980); }
.map-marker { background: #bfe88e; border-color: #1c3525; color: #1b2f1c; box-shadow: 0 0 0 4px #bfe88e40, 0 6px 14px #0007; }
.map-marker.stale { background: #ffd181; color: #3a280d; box-shadow: 0 0 0 4px #ffd18140, 0 6px 14px #0007; }
.map-marker.depot { background: #b6cfe5; color: #26384a; }
.map-marker:hover, .map-marker[aria-pressed=true] { box-shadow: 0 0 0 6px #c4eda675, 0 0 22px #bce49470; }
.map-marker.stale[aria-pressed=true] { box-shadow: 0 0 0 6px #ffd18169, 0 0 22px #ffd18155; }
.map-heading { position: absolute; z-index: 4; top: 22px; left: 21px; text-shadow: 0 2px 12px #0b120f; pointer-events: none; }
.map-heading span { display: flex; gap: 6px; align-items: center; color: #d2e5ce; font-size: .7rem; letter-spacing: .13em; font-weight: 800; }
.map-heading .icon { width: .9rem; height: .9rem; }
.map-heading h2 { font-size: clamp(1.65rem, 3vw, 2.33rem); letter-spacing: -.055em; margin-top: 3px; color: #f5faf4; }
.map-legend { z-index: 4; background: #18261ce8; color: #e0ebdf; border-color: #405448; }
.overview-map .map-legend { left: auto; right: 13px; top: 13px; }
.map-legend .dot { background: #c8ef8f; }
.map-legend .dot.warn { background: #f6ca80; }
.map-controls { z-index: 4; }
.map-controls .icon-btn { background: #19281fef; color: #e9f1e6; }
.attribution { background: #17281f; color: #ccdacf; z-index: 5; }
.map-caption { border-color: var(--line); }
.map-caption[hidden] { display: none; }
.map-focus {
  position: absolute;
  z-index: 4;
  bottom: 26px;
  left: 16px;
  max-width: calc(100% - 73px);
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #14231bee;
  border: 1px solid #50634e;
  border-radius: 10px;
  box-shadow: 0 6px 28px #08140eb0;
}
.map-focus-icon { color: var(--lime); background: #263e29; border-radius: 7px; padding: 7px; }
.map-focus a { color: #eef6ec; font-weight: 800; font-size: .86rem; }
.map-focus a:hover { text-decoration: underline; }
.map-focus a span { color: var(--muted); }
.map-focus small { display: block; color: #b4c6b4; font-size: .73rem; }
.map-focus .pill { margin-left: 4px; }
.overview-map:has(.map-focus) .map-layer { -webkit-mask-image: linear-gradient(black 67%, #000a); mask-image: linear-gradient(black 67%, #000a); }

.dispatch-queue { display: flex; flex-direction: column; min-height: 100%; }
.queue-title { display: flex; justify-content: space-between; align-items: center; padding: 17px 15px 12px; gap: 8px; }
.queue-title h2 { font-size: 1.3rem; }
.queue-title p { margin-top: 4px; font-size: .82rem; color: var(--muted); }
.queue-total { border: 1px solid #425545; color: #dceadc; padding: 4px 9px; border-radius: 6px; font-weight: 800; font-variant-numeric: tabular-nums; }
.queue-filters { display: flex; gap: 4px; margin: 0 12px 6px; padding: 3px; background: #111a14; border: 1px solid #344338; border-radius: 8px; }
.queue-filters button { color: #afc1b1; background: none; border: 1px solid transparent; border-radius: 6px; font-size: .78rem; font-weight: 800; min-height: 37px; flex: 1; padding: 3px 5px; }
.queue-filters button:hover { color: var(--ink); }
.queue-filters button[aria-pressed=true] { background: #304032; color: var(--ink); border-color: #495d4d; }
.queue-filters span { font-size: .72rem; color: #ffda9a; margin-left: 2px; }
.queue-list { list-style: none; padding: 0 11px 8px; margin: 0; max-height: 305px; overflow: auto; }
.queue-list li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 5px; min-height: 63px; border-bottom: 1px solid #334036; }
.queue-list li:last-child { border-bottom: 0; }
.queue-list li.needs-attention { background: #3a3021; border-bottom-color: #604d32; border-radius: 8px 8px 0 0; }
.queue-trip { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 3px 0; flex: 1; }
.queue-trip:hover strong { color: var(--lime); }
.queue-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; background: #2a3a2d; color: #cfdfce; border-radius: 7px; }
.needs-attention .queue-icon { background: #514026; color: #ffd181; }
.queue-info { min-width: 0; }
.queue-info strong { display: block; font-size: .81rem; line-height: 1.27; overflow-wrap: anywhere; }
.queue-info small { display: block; margin-top: 3px; font-size: .73rem; }
.queue-meta { flex: none; display: flex; align-items: center; gap: 4px; }
.queue-meta .pill { font-size: .67rem; padding-inline: 5px; }
.queue-pin { min-width: 34px; min-height: 36px; }
.queue-pin[aria-pressed=true] { border-color: var(--lime); color: var(--lime); }
.dispatch-records { grid-template-columns: minmax(0, 1.85fr) minmax(275px, 1fr); gap: 14px; }
.activity li { border-color: #354239; }

.data-table th { background: #202d23; color: #b9cbbc; }
.data-table td, .data-table th { border-color: var(--line); }
.data-table tbody tr:hover { background: #223027; }
.pill { background: #334139; color: #dce8df; }
.pill.green { background: #2e4833; color: #cef5bd; }
.pill.amber { background: #4c3a24; color: #ffdb9b; }
.pill.red { background: #542d34; color: #ffc7cc; }
.pill.blue { background: #2c3d50; color: #cee3f8; }
input, select, textarea { background-color: #121b15; border-color: #46584a; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #94a899; }
select { background-color: #121b15; }
.fleet-button { background: var(--paper); color: var(--ink); }
.fleet-button:hover, .fleet-button[aria-pressed=true] { background: #263d29; }
.fleet-button[aria-pressed=true] { box-shadow: inset 3px 0 var(--lime); }
.notice, .feedback .notice { background: #273e2a; color: #d9f0d5; border-color: #425946; }
.notice.info { background: #273747; color: #d4e9ff; border-color: #425970; }
.notice.warn, .feedback .notice.warn { background: #423322; color: #ffe0aa; border-color: #665035; }
.notice.error, .feedback .notice.error { background: #4c2a2d; color: #ffd0d0; border-color: #76444a; }
dialog { background: #202a22; border-color: #4e6453; color: var(--ink); }
dialog::backdrop { background: #070e0bb0; backdrop-filter: blur(3px); }
.center-page .error-code { color: var(--lime); }

.auth-main { max-width: 1600px; padding: 16px; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); min-height: calc(100dvh - 32px); border: 1px solid #384b3d; border-radius: 19px; overflow: hidden; background: #172019; }
.auth-art { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 35px clamp(24px,4vw,62px); min-height: 540px; overflow: hidden; background: #192b20; }
.auth-art::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/assets/lagos.webp') center/cover no-repeat; filter: grayscale(1) invert(.9) brightness(.65) contrast(1.2); opacity: .74; }
.auth-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,#10281abd 0%,#13251b40 55%,#0d1c14ee 100%); }
.auth-brand { display: flex; align-items: center; gap: 13px; color: #f0f7ee; font-size: 1.14rem; font-weight: 800; }
.auth-brand img { width: 62px; }
.auth-intro { position: relative; z-index: 3; margin-top: auto; padding: 40px 0 25px; max-width: 620px; }
.auth-intro > div { color: var(--lime); font-size: .74rem; font-weight: 800; letter-spacing: .13em; }
.auth-intro h2 { font-size: clamp(2.7rem,5.6vw,6rem); letter-spacing: -.07em; line-height: .99; margin: 12px 0 15px; }
.auth-intro p { color: #cfdfce; max-width: 29rem; }
.auth-map-mark { position: absolute; inset: 35% auto auto 61%; padding: 13px; border-radius: 13px; color: var(--accent-ink); background: var(--lime); box-shadow: 0 0 0 10px #c8ef8f30, 0 8px 40px #c8ef8f44; }
.auth-map-mark .icon { width: 25px; height: 25px; }
.auth-map-credit { color: #b5c8b7; font-size: .72rem; }
.auth-form { display: flex; flex-direction: column; justify-content: center; gap: 15px; padding: 30px clamp(28px, 6vw, 96px); }
.auth-form h1 { font-size: clamp(2.1rem,4vw,3.4rem); }
.auth-form .form { margin-top: 6px; }
.auth-form .form > .actions > button { width: 100%; }
.auth-form .text-btn { align-self: flex-start; display: inline-flex; align-items: center; }
.auth-mobile { display: none; }

@media(max-width: 1160px) { .radar-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); } }
@media(max-width: 970px) { .dispatch-records { grid-template-columns: minmax(0,1fr); } }
@media(max-width: 760px) {
  .radar-grid { grid-template-columns: minmax(0,1fr); }
  .overview-map { height: clamp(330px, 60vw, 420px); }
  .auth-shell { display: block; min-height: calc(100dvh - 32px); }
  .auth-art { display: none; }
  .auth-mobile { display: flex; padding-bottom: 17px; }
  .auth-form { min-height: calc(100dvh - 34px); }
}
@media(max-width: 690px) {
  main { padding-top: 22px; }
  .page-head { align-items: flex-start; }
  .metrics { row-gap: 0; }
  .metric { padding: 11px 13px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-number { font-size: 2rem; }
  .map-heading { top: 16px; left: 13px; }
  .overview-map .map-legend { top: 73px; left: 12px; right: auto; }
  .map-focus { left: 10px; }
  .map-focus .pill { display: none; }
  .top-actions .sign-in-link { padding-inline: 10px; }
  .top-actions { gap: 5px; }
  .crumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-left, .crumb { min-width: 0; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.map-focus { padding-block: 6px; bottom: 22px; }
.map-focus strong { font-size: .86rem; }
.trip-progress {
  list-style: none;
  margin: 0 0 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 7px;
}
.trip-progress li { position: relative; display: grid; align-content: start; justify-items: start; gap: 7px; font-size: .78rem; color: var(--muted); }
.trip-progress li:not(:last-child)::after { content: ''; position: absolute; width: calc(100% - 41px); height: 1px; top: 17px; left: 39px; background: #48554b; }
.trip-progress li.reached:not([aria-current]):not(:last-child)::after { background: #a9d27d; }
.trip-progress li span { display: grid; place-items: center; width: 34px; height: 34px; background: #232e26; border: 1px solid #4d5d50; border-radius: 8px; }
.trip-progress li.reached span { color: var(--lime); border-color: #6d9259; }
.trip-progress li[aria-current] { color: var(--lime); }
.trip-progress li[aria-current] span { color: var(--accent-ink); background: var(--lime); }
@media(max-width: 520px) {
  .trip-progress { padding: 12px 10px; gap: 4px; }
  .trip-progress li { font-size: .67rem; }
  .auth-form { padding-inline: 20px; }
}
