:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1e2430;
  --muted: #708094;
  --line: #e6eaf0;
  --danger: #c73a4a;
  --warning: #d88b14;
  --info: #2979ff;
  --success: #208a53;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --primary: #b2173f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

body.brandable { --primary: var(--business-primary, #b2173f); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { background: #0f172a; color: #fff; padding: 28px 20px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-signout { background: none; border: 0; padding: 10px 0; color: rgba(255,255,255,.45); font-size: .85rem; cursor: pointer; width: 100%; text-align: left; }
.sidebar-signout:hover { color: #fff; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,0.08); display: grid; place-items: center; overflow: hidden; flex: 0 0 48px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo--wide { width: auto; max-width: 120px; height: 40px; flex: 0 0 auto; background: transparent; border-radius: 0; padding: 0; overflow: visible; }
.brand-logo--wide img { width: auto; max-width: 120px; height: 40px; object-fit: contain; }
.brand-badge { width: 24px; height: 24px; color: #fff; }
.brand-title { font-size: 1.1rem; font-weight: 700; }
.brand-subtitle { font-size: .88rem; color: rgba(255,255,255,.65); }
.nav-group { display: grid; gap: 8px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: rgba(255,255,255,.8); }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-link svg, .icon { width: 20px; height: 20px; flex: 0 0 20px; }
.main { padding: 28px; }
.page-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.page-title { margin: 0; font-size: 1.85rem; }
.page-copy { margin: 6px 0 0; color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.stat-card { display: grid; gap: 8px; }
.stat-label { color: var(--muted); font-size: .9rem; }
.stat-value { font-size: 1.9rem; font-weight: 800; }
.card-title { margin: 0 0 12px; font-size: 1.1rem; }
.stack { display: grid; gap: 16px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-muted { background: #edf1f6; color: #5a6574; }
.badge-warning { background: #fff4de; color: #a36300; }
.badge-info { background: #e4efff; color: #1857b8; }
.badge-success { background: #e4f7ed; color: #187444; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; padding: 12px 16px; cursor: pointer; transition: .2s ease; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #eef2f7; color: var(--text); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn:hover { transform: translateY(-1px); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .92rem; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.helper { color: var(--muted); font-size: .82rem; }
.flash-wrap { display: grid; gap: 12px; margin-bottom: 18px; }
.flash { padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; }
.flash.success { background: #e8f8ef; border-color: #bde8cd; color: #1a6a3d; }
.flash.error { background: #fff0f2; border-color: #ffd0d7; color: #8d2134; }
.flash.info { background: #e4efff; border-color: #b8d4ff; color: #1a3d7a; word-break: break-all; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, rgba(178,23,63,.12), transparent 32%), var(--bg); }
.login-card { width: min(100%, 460px); }
.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 8px 0; }
.login-logo { max-width: 100%; max-height: 130px; width: auto; height: auto; object-fit: contain; display: block; }
.login-brand-icon { width: 52px; height: 52px; }
.login-brand-text { display: grid; gap: 4px; }
.login-brand-name { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.login-brand-tagline { color: var(--muted); font-size: .92rem; }
.page-top-logo { margin-bottom: 4px; }
.page-top-logo img { max-height: 56px; width: auto; object-fit: contain; display: block; }
.page-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.page-topbar-brand img { max-height: 44px; width: auto; object-fit: contain; display: block; }
.page-topbar-brand strong { font-size: 1.1rem; }
.page-topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.page-topbar-user { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.toggle-row { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-row input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; cursor: pointer; accent-color: var(--primary); }
.notification-banner { border-left: 4px solid var(--primary); background: rgba(178,23,63,.04); margin-bottom: 8px; }

/* ── Proof-of-Delivery ────────────────────────────────────────────────────── */
.pod-receipt { border-left: 3px solid #187444; background: #f0faf4; border-radius: 12px; padding: 12px 14px; }
.pod-receipt--complete { border-left-color: var(--primary); background: rgba(178,23,63,.04); }
.pod-receipt-label { font-size: .88rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pod-sig-img { max-width: 100%; height: auto; max-height: 90px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }
/* Pickup photo grid */
.pod-photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pod-photo-grid--capture { min-height: 0; }
.pod-photo-thumb-wrap { position: relative; display: inline-block; }
.pod-photo-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #f1f5f9; display: block; }
.pod-photo-grid a .pod-photo-thumb { width: 72px; height: 72px; }
.pod-photo-delete { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--danger, #dc2626); color: #fff; border: none; cursor: pointer; font-size: .85rem; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.pod-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 900; display: flex; align-items: flex-end; justify-content: center; }
.pod-overlay[hidden] { display: none; }
.pod-sheet { background: #fff; border-radius: 24px 24px 0 0; padding: 28px 24px 40px; width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; }
.pod-sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pod-title { margin: 0; font-size: 1.3rem; font-weight: 700; }
.pod-canvas-wrap { position: relative; border: 2px dashed var(--line); border-radius: 16px; background: #f8fafc; overflow: hidden; }
.pod-canvas { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.pod-canvas-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .95rem; pointer-events: none; }
.metric { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { border-bottom: 0; }
.list { display: grid; gap: 14px; }
.list-item { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.topline { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.meta { color: var(--muted); font-size: .88rem; }
.map-shell { border-radius: 22px; overflow: hidden; background: #dce5ef; border: 1px solid var(--line); min-height: 360px; position: relative; }
.map-shell.is-fullscreen { position: fixed !important; inset: 0; z-index: 9999; height: 100dvh !important; min-height: 0; border-radius: 0; margin: 0; }
.map-close-btn { display: none; position: absolute; top: 14px; right: 14px; z-index: 10001; background: rgba(15,23,42,.82); color: #fff; border: 0; border-radius: 12px; padding: 10px 16px; font-size: .88rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(4px); }
.map-shell.is-fullscreen .map-close-btn { display: block; }
body.map-fullscreen-active { overflow: hidden; }
.map-gesture-overlay { position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(15,23,42,.38); color: #fff; font-size: .9rem; font-weight: 600; cursor: pointer; border-radius: inherit; transition: opacity .2s; text-align: center; padding: 16px; user-select: none; }
.map-gesture-overlay.is-hidden { opacity: 0; pointer-events: none; }
.map-shell.fullscreen-mobile { min-height: 70vh; }
.map-shell > #map, .map-shell > .js-map { width: 100%; height: 100%; min-height: 360px; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #445166; text-align: center; background: linear-gradient(145deg, #edf3fa, #dbe7f5); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.kpi { font-size: 1.2rem; font-weight: 700; }
.note { background: #f8fafc; border: 1px dashed var(--line); padding: 14px; border-radius: 14px; }
.logo-preview { max-width: 200px; max-height: 100px; width: auto; height: auto; object-fit: contain; border-radius: 16px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.inline-form { display: inline; }
.mobile-bar { display: none; }
.map-toolbar { justify-content: space-between; align-items: center; }
.map-shell.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  min-height: 100vh;
  border-radius: 0;
  margin: 0;
}
.map-shell.is-fullscreen .js-map { min-height: 100vh; }
.courier-marker-wrap {
  background: transparent;
  border: 0;
}
.courier-marker {
  width: 34px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
}
.courier-marker__pulse {
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: rgba(41, 121, 255, 0.18);
  border: 2px solid rgba(41, 121, 255, 0.22);
}
.courier-marker__arrow {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 18px solid #2979ff;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.2));
  transform: rotate(var(--heading, 0deg));
  transform-origin: center 75%;
}
.nav-hud {
  margin-top: 18px;
}
.nav-banner {
  background: linear-gradient(145deg, #0f172a, #172554);
  color: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}
.nav-banner .meta {
  color: rgba(255, 255, 255, 0.72);
}
.nav-banner-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}
.nav-banner-distance {
  font-size: 1.3rem;
  font-weight: 800;
  white-space: nowrap;
}
.nav-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.nav-summary-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}
.nav-summary-item strong {
  font-size: 1.1rem;
}
.nav-summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.nav-summary-actions .btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.directions-panel {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.direction-current-card {
  background: linear-gradient(145deg, #f8fafc, #eef4fb);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.direction-current-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}
.directions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.direction-step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
}
.direction-step.is-current {
  border-color: rgba(178, 23, 63, 0.22);
  background: rgba(178, 23, 63, 0.06);
}
.direction-step.empty {
  color: var(--muted);
  background: #fbfcfe;
}
.direction-instruction {
  font-weight: 600;
  line-height: 1.4;
}
.direction-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: .86rem;
}
.stop-list { display: grid; gap: 14px; }
.stop-card { border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe; padding: 16px; }
.stop-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.geocode-card { border: 1px dashed var(--line); border-radius: 16px; padding: 14px; background: #fbfcfe; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .page-topbar { display: none; }
  .main { padding: 18px; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2, .split, .form-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
  .map-shell.fullscreen-mobile { min-height: 100vh; margin: -18px; border-radius: 0; }
  .page-header { flex-direction: column; }
  .nav-banner-main, .nav-summary-grid { grid-template-columns: 1fr; display: grid; }
  .nav-summary-actions { justify-content: stretch; flex-direction: column; }
  .nav-summary-actions .btn { width: 100%; }
}

/* ── Route sections (create/edit job form) ─────────────────────── */
.route-section { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fbfcfe; }
.route-section--dropoff { border-color: #c5e8d1; background: #f6fcf8; }
.route-section-head { display: flex; align-items: center; gap: 10px; }
.route-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.route-badge--pickup  { background: #e6eeff; color: #2346c4; }
.route-badge--dropoff { background: #e3f8ec; color: #1a7345; }

/* ── Saved template search card ────────────────────────────────── */
.template-search-wrap { position: relative; }
.template-search-input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; background: #fff; transition: border-color .15s; }
.template-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(178,23,63,.1); }
.template-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; z-index: 200; max-height: 320px; overflow-y: auto; }
.template-dropdown li { padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.template-dropdown li:hover, .template-dropdown li.tpl-active { background: #f0f3fa; }
.tpl-name { font-weight: 600; font-size: .95rem; }
.tpl-route { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.tpl-delete { padding: 3px 10px; font-size: .78rem; font-weight: 600; border-radius: 8px; background: #fef0f1; border: 1px solid #f9cace; color: var(--danger); cursor: pointer; white-space: nowrap; }
.tpl-delete:hover { background: var(--danger); color: #fff; }

/* ── Save-as-template inline panel ─────────────────────────────── */
.template-save-panel { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #f8fafc; margin-top: 16px; }

/* ── Client portal ──────────────────────────────────────────────── */
.client-portal { background: #fff; }
.client-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 200; }
.client-header-inner { max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 16px; }
.client-brand-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.client-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.client-logo-text { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.client-nav { display: flex; gap: 2px; }
.client-nav-link { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: .9rem; transition: background .15s, color .15s; }
.client-nav-link:hover, .client-nav-link.active { background: #f0f3fa; color: var(--text); }
.client-main { max-width: 1040px; margin: 0 auto; padding: 36px 24px 72px; }

/* Status stepper */
.client-stepper { display: flex; align-items: center; padding: 20px 24px; gap: 0; }
.status-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.status-step-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--line); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: background .3s; }
.status-step.done .status-step-dot { background: var(--success); }
.status-step.current .status-step-dot { background: var(--primary); box-shadow: 0 0 0 5px rgba(178,23,63,.12); }
.status-step-label { font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.status-step.done .status-step-label, .status-step.current .status-step-label { color: var(--text); }
.status-step-line { flex: 1; height: 2px; background: var(--line); margin: 0 4px; margin-bottom: 18px; transition: background .3s; }
.status-step-line.active { background: var(--success); }

/* Day pill checkboxes */
.day-pill { display: inline-flex; cursor: pointer; }
.day-pill input[type="checkbox"] { display: none; }
.day-pill span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
.day-pill input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.day-pill span:hover { border-color: var(--primary); }

/* Client job card */
.client-job-card { transition: box-shadow .15s; }
.client-job-card:hover { box-shadow: 0 4px 24px rgba(15,23,42,.1); }

/* Pulse animation for live badge */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ── Courier tab navigation ──────────────────────────────────────────────── */
.courier-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 20px; position: sticky; top: 0; z-index: 80; background: var(--bg); padding: 8px 0 4px; }
.courier-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 8px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; min-height: 76px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.courier-tab.is-active { border-color: var(--primary); background: rgba(178,23,63,.05); }
.tab-count { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--text); }
.tab-count--warn { color: var(--warning); }
.tab-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.courier-tab.is-active .tab-label { color: var(--primary); }
.courier-panel--hidden { display: none !important; }

/* Job card: time badge (top-right of card header) */
.job-time-pill { display: flex; flex-direction: column; align-items: center; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 4px 12px; min-width: 54px; text-align: center; font-size: 1rem; font-weight: 800; line-height: 1.25; white-space: nowrap; flex-shrink: 0; }
.job-time-pill--urgent { border-color: var(--warning); color: var(--warning); }

/* Job card: price / duration / time meta pills row */
.job-meta-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 2px; align-items: center; }
.job-meta-pill { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.job-meta-pill--pay { color: var(--success); border-color: var(--success); }

/* ── Waze / navigation buttons ───────────────────────────────────────────── */
.btn-waze { background: #09d3ef; color: #0a2438; font-weight: 700; }
.btn-waze:hover { background: #07bdd8; }

/* ── Dedicated map page ──────────────────────────────────────────────────── */
.map-page-shell { position: relative; height: calc(100dvh - 130px); min-height: 500px; border-radius: 22px; overflow: hidden; background: #dce5ef; border: 1px solid var(--line); }
.map-page-shell > .js-map { width: 100%; height: 100%; min-height: 0; }
.map-page-overlay { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1001; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: rgba(15,23,42,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; padding: 10px 14px; }
.map-page-overlay .btn { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.18); padding: 10px 14px; font-size: .88rem; }
.map-page-overlay .btn-waze { background: #09d3ef; color: #0a2438; border-color: transparent; }
.map-page-overlay .btn-waze:hover { background: #07bdd8; }
.map-page-ref { font-weight: 700; font-size: .9rem; color: #fff; white-space: nowrap; margin-right: 4px; }

@media (max-width: 980px) {
  .courier-tabs { margin: 12px 0 16px; gap: 8px; }
  .map-page-shell { height: calc(100dvh - 80px); margin: -18px; border-radius: 0; min-height: 0; }
}

@media (max-width: 700px) {
  .client-header-inner { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .client-nav { gap: 0; }
  .client-nav-link { padding: 7px 10px; font-size: .82rem; }
  .client-main { padding: 20px 16px 48px; }
  .client-stepper { padding: 16px; gap: 0; overflow-x: auto; }
  .status-step-label { font-size: .72rem; }
}

