:root {
  color-scheme: light;
  --zero-blue: #0759c8;
  --zero-orange: #ff7a1a;
  --ink: #1c2633;
  --muted: #657386;
  --panel: rgba(255, 255, 255, 0.94);
  --line: rgba(28, 38, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
.tracker-shell {
  height: 100%;
  margin: 0;
}

body {
  background: #eef3f8;
  color: var(--ink);
}

.tracker-shell {
  position: relative;
  overflow: hidden;
}

.map {
  height: 100%;
  width: 100%;
}

.status-panel {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2;
  margin: 0 auto;
  max-width: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(16, 30, 48, 0.18);
  backdrop-filter: blur(16px);
}

.brand-row,
.driver-card,
.route-point {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 12px;
}

.brand-mark {
  display: grid;
  min-width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  letter-spacing: 1px;
}

.eyebrow,
.route-point p,
.driver-card p,
.last-updated {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

h1 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.status-pill {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(7, 89, 200, 0.12);
  color: var(--zero-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
}

.route-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(245, 248, 252, 0.92);
}

.route-point {
  gap: 12px;
}

.route-point strong,
.driver-card strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.25;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.pickup {
  background: var(--zero-blue);
}

.destination {
  background: var(--zero-orange);
}

.route-line {
  width: 2px;
  height: 26px;
  margin: 5px 0 5px 6px;
  background: linear-gradient(var(--zero-blue), var(--zero-orange));
}

.driver-card {
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.last-updated {
  margin-top: 12px;
}

.error-state {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(239, 243, 248, 0.92);
  text-align: center;
}

.error-state div {
  max-width: 360px;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(16, 30, 48, 0.18);
}

.error-state h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.error-state p {
  margin: 0;
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (min-width: 780px) {
  .status-panel {
    left: 24px;
    right: auto;
    bottom: 24px;
  }
}
