/* Brand tokens — see the LOOK-AND-FEEL project doc */
:root {
  --ground: #F4F3F0;
  --card: #FFFFFF;
  --tile: #F7F6F3;
  --border: #E7E5E1;
  --input-border: #DEDBD5;
  --ink: #15191E;
  --slate: #233A4C;
  --slate-deep: #1A2C3A;
  --muted: #5B6670;
  --orange: #E8611A;
  --orange-text: #B0440E;
  --orange-tint: #FDEBDD;
  --success: #15803D;
  --success-tint: #DCFCE7;
  --danger: #B42318;
  --danger-tint: #FEE4E2;
  --radius-card: 24px;
  --radius-tile: 16px;
  --shadow: 0 10px 30px rgba(21, 25, 30, 0.06);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); line-height: 1.5; }
a { color: var(--orange-text); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 16px 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--card); border-radius: 999px; padding: 10px 12px 10px 20px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand .dot { color: var(--orange); }
.nav-spacer { flex: 1 1 auto; }
.nav-user { color: var(--muted); font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: var(--slate); color: #FFFFFF; }
.btn-light { background: var(--tile); color: var(--ink); border: 1.5px solid var(--input-border); }
.btn-primary { background: var(--orange); color: #FFFFFF; font-size: 19px; font-weight: 700; min-height: 52px; }
.btn-primary:hover { background: #C9500F; color: #FFFFFF; }
.btn-block { width: 100%; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 32px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { height: 50px; border: 1.5px solid var(--input-border); border-radius: 999px; padding: 0 18px; font: inherit; font-size: 16px; background: #FFFFFF; color: var(--ink); }
.field input:focus { outline: 3px solid var(--orange-tint); border-color: var(--orange); }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.alert { border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.alert-error { background: var(--danger-tint); color: var(--danger); }

/* Login page */
.auth-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-side { flex: 1 1 460px; background: var(--slate); color: #FFFFFF; padding: 48px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; gap: 32px; }
.auth-side .brand { color: #FFFFFF; }
.auth-side h1 { font-size: clamp(34px, 4vw, 52px); margin-top: auto; }
.auth-side h1 span { color: var(--orange); }
.auth-side p { color: #C3CED8; max-width: 460px; margin: 0 0 auto; font-size: 17px; }
.auth-main { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 30px; }
.auth-note { font-size: 14px; color: var(--muted); margin: 0; }

/* Development home */
.page { padding: 40px 0 80px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.page h1 span { color: var(--orange); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.chip-done { background: var(--success-tint); color: var(--success); }
.chip-next { background: var(--orange-tint); color: var(--orange-text); }
.chip-later { background: var(--tile); color: var(--muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------------------
   Homepage (ported from the "Small courier" mockup)
   --------------------------------------------------------------------------- */
.page-home a { color: var(--ink); text-decoration: none; }
.page-home a:hover { color: var(--orange-text); }
.page-home input::placeholder, .page-home textarea::placeholder { color: #7A848D; }
.ha-float { position: absolute; }
@media (max-width: 680px) {
  .ha-float { position: static; margin: 12px; max-width: none !important; width: auto !important; }
  .ha-map { height: auto !important; }
  .ha-svg { position: static !important; height: 340px !important; }
}

/* Private-preview strip shown while the site is locked */
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: var(--slate-deep); color: #DCE3E9; font-size: 13px; padding: 8px 20px; }
.preview-bar strong { color: #FFFFFF; }
.preview-actions { display: flex; align-items: center; gap: 14px; }
.preview-actions a { color: #F4A06B; text-decoration: none; font-weight: 600; }
.preview-actions a:hover { color: #FFFFFF; }
.preview-actions button { background: none; border: 1px solid #4B6476; color: #FFFFFF; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }

/* Send It Quickly card */
.quick-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 20px 50px rgba(21,25,30,0.08); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.quick-field { display: flex; align-items: center; gap: 12px; background: var(--tile); border: 1.5px solid var(--input-border); border-radius: 16px; padding: 0 16px; min-height: 54px; }
.quick-field:focus-within { border-color: var(--orange); }
.quick-field label { font-size: 13px; font-weight: 600; color: var(--muted); width: 64px; flex: none; }
.quick-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.size-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.size-opt { position: relative; cursor: pointer; }
.size-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-card { position: relative; display: block; min-height: 84px; border-radius: 14px; text-align: center; padding: 10px 4px; border: 1.5px solid var(--border); background: var(--tile); }
.size-opt input:checked + .size-card { border-color: var(--orange); background: #FFF4EC; }
.size-opt input:focus-visible + .size-card { outline: 3px solid var(--orange-tint); outline-offset: 2px; }
.size-check { display: none; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); align-items: center; justify-content: center; }
.size-opt input:checked + .size-card .size-check { display: flex; }
.seg { flex: 1 1 220px; display: flex; gap: 6px; background: var(--ground); padding: 5px; border-radius: 999px; border: 0; margin: 0; min-width: 0; }
.seg label { flex: 1; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 4px rgba(21,25,30,0.14); }
.seg input:focus-visible + span { outline: 3px solid var(--orange-tint); }
.btn-orange { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 0; border-radius: 999px; background: var(--orange); color: #FFFFFF; font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; padding: 0 22px; }
.btn-orange:hover { background: #C9500F; }

/* Request form */
.request-card { flex: 999 1 560px; min-width: 0; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.req-field { display: flex; flex-direction: column; gap: 6px; }
.req-field label { font-size: 14px; font-weight: 600; }
.req-field .opt { font-weight: 500; color: var(--muted); }
.req-field input, .req-field select, .req-field textarea { min-height: 48px; border: 1.5px solid var(--input-border); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; background: #FFFFFF; color: var(--ink); }
.req-field textarea { padding: 12px 14px; resize: vertical; }
.req-field input:focus, .req-field select:focus, .req-field textarea:focus { outline: 3px solid var(--orange-tint); border-color: var(--orange); }
.req-field.has-error input, .req-field.has-error select, .req-field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 0; font-size: 13px; color: var(--danger); }
.field-help { margin: 0; font-size: 13px; color: var(--muted); }
.promise { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--orange-tint, #FDEBDD); color: #7A2E08; font-size: 14px; font-weight: 600; }
.path-note { margin: 0; font-size: 13px; font-weight: 600; color: #B0440E; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-route { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: #15191E; color: #FFFFFF; font-size: 18px; font-weight: 700; }
.btn-route:hover { background: #233A4C; }
.page-home a.btn-route, a.btn-route { color: #FFFFFF; text-decoration: none; }
.route-page { padding: 32px 20px 96px; }
.route-page .request-card { max-width: 860px; margin: 0 auto; }
.city-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.city-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-right: 2px; }
.city-chip { padding: 6px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.page-home a.city-ask { font-size: 14px; font-weight: 700; color: var(--orange-text); margin-left: 4px; }
.handoff { border: 1.5px dashed var(--input-border); border-radius: 16px; padding: 14px 16px; }
.handoff summary { cursor: pointer; font-weight: 700; }
.timing-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.timing-set legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.timing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.timing-opt { position: relative; cursor: pointer; }
.timing-opt input { position: absolute; opacity: 0; }
.timing-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 1.5px solid var(--input-border); border-radius: 16px; background: #FFFFFF; }
.timing-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.timing-price { font-size: 13px; font-weight: 700; color: var(--orange-text); white-space: nowrap; }
.timing-desc { font-size: 13px; color: var(--muted); }
.timing-opt input:checked + .timing-card { border-color: var(--orange); background: #FFF4EC; box-shadow: 0 0 0 3px var(--orange-tint); }
.timing-opt input:focus-visible + .timing-card { outline: 3px solid var(--orange); }
.timing-opt.is-off { cursor: not-allowed; opacity: 0.55; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.agree.has-error span { color: var(--danger); }
.page-home .agree a, .agree a { color: var(--orange-text); text-decoration: underline; }
.alert-info { padding: 12px 16px; border-radius: 14px; background: #EEF3F7; color: #233A4C; font-weight: 600; }

/* Request-sent page */
.sent-wrap { padding: 64px 20px; display: flex; justify-content: center; }
.sent-card { max-width: 640px; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.sent-card h1 { font-size: 44px; }
.sent-card .dot { color: var(--orange); }
.sent-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--success-tint); display: flex; align-items: center; justify-content: center; }
.sent-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 6px 0; padding: 18px; background: var(--tile); border-radius: var(--radius-tile); }
.sent-summary dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sent-summary dd { margin: 2px 0 0; font-weight: 600; }
.sent-card .btn { align-self: flex-start; }

@media (max-width: 480px) { .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Homepage menu bar on phones: drop the section links, keep logo + buttons */
@media (max-width: 760px) {
  .home-nav { border-radius: 24px !important; padding: 12px !important; gap: 12px !important; }
  .home-nav nav { display: none !important; }
  .home-nav > div { width: 100%; }
  .home-nav > div > a { flex: 1; justify-content: center; font-size: 14px !important; padding: 0 12px !important; }
}

/* Information pages (what we can't carry, terms, privacy) */
.info-page { padding: 24px 20px 72px; }
.info-card { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.info-card h1 { font-size: clamp(32px, 4vw, 44px); }
.info-card h1 .dot { color: var(--orange); }
.info-card h2 { font-size: 20px; margin-top: 14px; }
.info-card p { margin: 0; color: #3A444D; }
.info-card .lead { color: var(--muted); font-size: 18px; }
.info-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: #3A444D; }
.info-updated { padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; }
.info-links { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
.info-links a { color: var(--muted); }
.nav .btn-light { white-space: nowrap; }
@media (max-width: 700px) { .nav .btn-light { display: none; } }

/* Customer quote page */
.quote-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding: 20px; border-radius: var(--radius-tile); background: #FFF4EC; border: 1.5px solid #F6C9A8; }
.quote-amount { font-family: var(--font-head); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; }
.quote-window { color: var(--ink); font-size: 16px; }
.quote-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.quote-decline summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.quote-decline[open] { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.quote-decline label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.quote-decline .opt { font-weight: 500; color: var(--muted); }
.quote-decline textarea { border: 1.5px solid var(--input-border); border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 16px; resize: vertical; }
.quote-decline .btn { align-self: flex-start; }

/* ---------- Customer portal ---------- */
.portal { min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); }
.portal-top { background: var(--card); border-bottom: 1px solid var(--border); }
.portal-top-inner { max-width: 820px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.portal-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.portal-brand .dot { color: var(--orange); }
.portal-top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.portal-who { font-size: 14px; color: var(--muted); max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-ghost { border: 1px solid var(--input-border); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.btn-ghost:hover { background: var(--tile); }
.portal-main { flex: 1 1 auto; width: 100%; max-width: 820px; margin: 0 auto; padding: 32px 20px 56px; }
.portal-foot { border-top: 1px solid var(--border); background: var(--card); text-align: center; padding: 20px; font-size: 14px; color: var(--muted); }

.portal-head { margin-bottom: 24px; }
.portal-head h1 { font-size: 34px; margin-top: 4px; }
.portal-head .dot { color: var(--orange); }
.acct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acct-chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--tile); border: 1px solid var(--border); }

.portal-section { margin-top: 28px; }
.section-h { font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; }

.action-card { display: flex; align-items: center; gap: 16px; background: var(--slate); color: #fff; border-radius: var(--radius-tile); padding: 18px 20px; text-decoration: none; margin-bottom: 12px; box-shadow: var(--shadow); }
.action-card:hover { background: var(--slate-deep); color: #fff; }
.action-main { min-width: 0; }
.action-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #F4A06B; }
.action-route { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
.action-right { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.action-price { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.action-go { font-size: 13px; color: #C3CED8; }

.order-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-tile); padding: 16px 18px; text-decoration: none; color: var(--ink); margin-bottom: 10px; box-shadow: var(--shadow); }
.order-card:hover { color: var(--ink); border-color: var(--input-border); transform: translateY(-1px); }
.order-card.is-static { cursor: default; box-shadow: none; }
.order-main { min-width: 0; flex: 1; }
.order-route { margin: 0; font-weight: 700; font-size: 15px; }
.order-route .arrow { color: var(--orange); font-weight: 600; }
.order-meta { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

.pill { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.pill-wait { background: #EEF3F7; color: var(--slate); }
.pill-action { background: var(--orange-tint); color: var(--orange-text); }
.pill-go { background: var(--success-tint); color: var(--success); }
.pill-off { background: var(--tile); color: var(--muted); }

.empty-card { background: var(--card); border: 1px dashed var(--input-border); border-radius: var(--radius-tile); padding: 28px; text-align: center; color: var(--muted); }
.empty-card .btn-orange { margin-top: 12px; min-height: 48px; font-size: 16px; }

.portal-narrow { max-width: 480px; margin: 24px auto; }
.signin-card { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.signin-card h1 { font-size: 30px; }
.signin-card .dot { color: var(--orange); }
.signin-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.signin-form label { font-size: 14px; font-weight: 600; }
.signin-form input { min-height: 50px; border: 1.5px solid var(--input-border); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; }
.signin-form input:focus { outline: 3px solid var(--orange-tint); border-color: var(--orange); }
.signin-form .btn-orange { margin-top: 6px; min-height: 52px; }

.back-link { display: inline-block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.order-detail { padding: 28px; }
.order-detail-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.od-route { font-size: 24px; }
.od-route .to { color: var(--muted); font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; padding: 18px; background: var(--tile); border-radius: var(--radius-tile); }
.detail-grid dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.detail-grid dd { margin: 3px 0 0; font-weight: 600; }
.quote-box { background: #FFF4EC; border: 1px solid var(--orange-tint); border-radius: var(--radius-tile); padding: 22px; margin-top: 10px; }
.quote-box .quote-amount { font-family: var(--font-head); font-weight: 800; font-size: 34px; margin: 0; }
.quote-box .quote-window { margin: 4px 0 16px; color: var(--muted); }
.status-note { padding: 14px 16px; border-radius: var(--radius-tile); background: var(--tile); font-weight: 600; margin-top: 10px; }
.status-note.ok { background: var(--success-tint); color: var(--success); }
.timeline { margin-top: 22px; }
.timeline h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-family: var(--font-body); }
.timeline ul { list-style: none; padding: 0; margin: 10px 0 0; }
.timeline li { padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
.tl-when { color: var(--muted); margin-right: 10px; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .order-detail-top { flex-direction: column; }
  .portal-who { max-width: 36vw; }
}

/* ---------- Driver app (phone-first) ---------- */
.drive { min-height: 100vh; background: #15191E; color: #fff; display: flex; flex-direction: column; }
.drive-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #2A2F36; position: sticky; top: 0; background: #15191E; z-index: 5; }
.drive-brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 17px; }
.drive-date { font-size: 14px; color: #9AA3AD; font-weight: 600; }
.drive-main { flex: 1; max-width: 560px; width: 100%; margin: 0 auto; padding: 18px 16px 48px; }
.drive-head h1 { font-size: 30px; }
.drive-head .dot { color: var(--orange); }
.drive-count { color: #9AA3AD; margin: 4px 0 18px; font-weight: 600; }

.stop-row { display: flex; align-items: center; gap: 12px; background: #1E242B; border: 1px solid #2A2F36; border-radius: 16px; padding: 14px 16px; text-decoration: none; color: #fff; margin-bottom: 10px; }
.stop-row:active { background: #262D35; color: #fff; }
.stop-time { font-weight: 800; font-size: 13px; color: var(--orange); min-width: 64px; }
.stop-mid { flex: 1; min-width: 0; }
.stop-who { display: block; font-weight: 700; font-size: 15px; }
.stop-route { display: block; font-size: 12px; color: #9AA3AD; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-route b { color: var(--orange); }
.dpill { font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.dpill-new { background: rgba(232,97,26,0.2); color: #F4A06B; }
.dpill-go { background: rgba(21,128,61,0.25); color: #86EFAC; }

.drive-empty { text-align: center; padding: 48px 20px; color: #9AA3AD; }
.drive-empty .muted { font-size: 14px; }

.drive-back { display: inline-block; color: #9AA3AD; text-decoration: none; font-weight: 600; margin-bottom: 14px; }
.drive-status { border-radius: 14px; padding: 12px 16px; font-weight: 800; margin-bottom: 16px; text-align: center; }
.drive-status-approved { background: rgba(232,97,26,0.18); color: #F4A06B; }
.drive-status-picked_up { background: rgba(35,58,76,0.9); color: #9FD0F0; }
.drive-status-delivered { background: rgba(21,128,61,0.25); color: #86EFAC; }

.leg { background: #1E242B; border: 1px solid #2A2F36; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.leg-label { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #9AA3AD; }
.leg-addr { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.leg-addr.sm { font-size: 16px; }
.leg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.leg-contact { font-size: 14px; color: #C3CED8; }
.leg-contact a { color: var(--orange); font-weight: 700; }
.leg-note { margin: 10px 0 0; font-size: 14px; color: #C3CED8; }
.leg-note b { color: #fff; }
.leg-meta { margin: 8px 0 0; font-size: 13px; color: #9AA3AD; }

.dbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.dbtn-nav { background: #2A2F36; color: #fff; }
.dbtn-nav:active { background: #333A42; color: #fff; }
.dbtn-primary { background: var(--orange); color: #fff; width: 100%; min-height: 58px; font-size: 18px; margin-top: 6px; }
.dbtn-ghost { background: #2A2F36; color: #fff; width: 100%; list-style: none; }
.dbtn-ghost::-webkit-details-marker { display: none; }

.drive-actions { position: sticky; bottom: 0; padding: 14px 0 6px; background: linear-gradient(180deg, rgba(21,25,30,0) 0%, #15191E 30%); }
.drive-actions form { margin: 0 0 10px; }
.deliver-fields { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; background: #1E242B; border: 1px solid #2A2F36; border-radius: 16px; padding: 16px; }
.deliver-fields label { font-size: 13px; font-weight: 600; color: #9AA3AD; margin-top: 6px; }
.deliver-fields input[type=text] { min-height: 48px; border-radius: 12px; border: 1.5px solid #2A2F36; background: #15191E; color: #fff; padding: 0 14px; font: inherit; font-size: 16px; }
.deliver-fields input[type=file] { color: #C3CED8; font-size: 14px; }
.leg-proof .dbtn { margin-top: 10px; }
