.driver-shell {
  color-scheme: dark;
  --d-sky: #4aa8cf;
  --d-sky-dark: #247fa5;
  --d-sky-pale: #eaf7fc;
  --d-yellow: #fff0b3;
  --d-ink: #e7f1f4;
  --d-muted: #aec0c8;
  --d-paper: #17262c;
  --d-bg: #101b20;
  --d-line: #30434b;
  color: var(--d-ink);
  background: var(--d-bg);
}

.driver-shell .driver-header { position: sticky; z-index: 20; top: 0; background: var(--d-paper); border-bottom: 1px solid var(--d-line); }
.driver-shell .driver-header-inner { display: flex; min-height: 62px; align-items: center; gap: 12px; }
.driver-shell .brand-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--d-ink); font-size: 14px; font-weight: 800; line-height: 1.08; text-decoration: none; }
.driver-shell .brand-mark small { display: block; margin-top: 3px; color: var(--d-muted); font-size: 10px; font-weight: 600; }
.driver-shell .driver-stage-badge { border-radius: 999px; background: var(--d-yellow); color: #51471f; padding: 5px 9px; font-size: 10px; font-weight: 750; }
.driver-shell .driver-stage-badge { display:inline-flex; align-items:center; gap:7px; }
.driver-shell .driver-stage-badge img { width:21px; height:25px; border-radius:2px; object-fit:cover; }
.driver-shell .driver-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.driver-shell .driver-header-actions a,
.driver-shell .driver-header-actions button { border: 0; background: transparent; color: var(--d-sky-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.driver-shell .driver-main { flex: 1; }
.driver-shell .driver-main .flow-page,
.driver-shell .account-page { width: min(100%, 430px); margin-inline: auto; padding: 15px 11px 28px; }
.driver-shell .flow-card,
.driver-shell .account-card { border: 1px solid var(--d-line); border-radius: 17px; background: var(--d-paper); color: var(--d-ink); box-shadow: 0 7px 22px color-mix(in srgb, var(--d-ink) 9%, transparent); }
.driver-shell .flow-card { padding: 17px; }
.driver-shell .account-card { padding: 20px; }
.driver-shell .flow-heading h1,
.driver-shell .account-card h1 { margin: 0 0 5px; font-size: 19px; font-weight: 800; line-height: 1.35; }
.driver-shell .flow-heading p,
.driver-shell .account-card p { color: var(--d-muted); font-size: 12px; }
.driver-shell .form-label { color: var(--d-ink); font-size: 12px; font-weight: 700; }
.driver-shell .form-control,
.driver-shell .form-select { min-height: 44px; border-color: var(--d-line); border-radius: 10px; background-color: var(--d-paper); color: var(--d-ink); }
.driver-shell .form-control:focus,
.driver-shell .form-select:focus { border-color: var(--d-sky); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--d-sky) 28%, transparent); }
.driver-shell .btn-primary { border-color: var(--d-sky-dark); background: var(--d-sky-dark); color: #fff; font-weight: 750; }
.driver-shell .btn-primary:hover { border-color: #1c6c8d; background: #1c6c8d; }
.driver-shell .btn-warning { border-color: transparent; background: var(--d-yellow); color: #51471f; font-weight: 750; }
.driver-shell .btn-outline-primary { border-color: color-mix(in srgb, var(--d-sky-dark) 35%, var(--d-line)); color: var(--d-sky-dark); }
.driver-shell .site-footer { border-top: 1px solid var(--d-line); background: var(--d-paper); color: var(--d-muted); padding: 11px 0; font-size: 10px; }
.driver-shell .status-chip,
.driver-shell .status { display: inline-flex; align-items: center; border-radius: 999px; background: var(--d-sky-pale); color: var(--d-sky-dark); padding: 4px 8px; font-size: 10px; font-weight: 750; }
.driver-shell .assigned-driver { display: flex; align-items: center; gap: 10px; border-radius: 13px; background: var(--d-sky-pale); padding: 11px; }
.driver-shell .driver-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: var(--d-yellow); font-size: 18px; }
.driver-shell .assigned-driver strong,
.driver-shell .assigned-driver small { display: block; }
.driver-shell .assigned-driver strong { font-size: 13px; }
.driver-shell .assigned-driver small { color: var(--d-muted); font-size: 10px; }
.driver-shell .summary-line { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--d-line); font-size: 12px; }
.driver-shell .summary-line span { color: var(--d-muted); }
.driver-shell .summary-line strong { overflow-wrap: anywhere; }
.driver-shell .order-list { display: grid; gap: 9px; }
.driver-shell .order-list-item { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; border: 1px solid var(--d-line); border-radius: 13px; background: var(--d-paper); padding: 12px; color: var(--d-ink); text-decoration: none; }
.driver-shell .order-list-item:hover { border-color: var(--d-sky); }
.driver-shell .order-list-date,
.driver-shell .order-list-item small { color: var(--d-muted); font-size: 10px; }
.driver-shell .order-list-date { grid-column: 1 / -1; }
.driver-shell .order-list-item strong { font-size: 12px; }
.driver-shell .order-list-item .status-chip { grid-column: 1 / -1; justify-self: start; }
.driver-shell .chat-messages { min-height: 92px; border-radius: 12px; background: var(--d-bg); padding: 10px; }
.driver-shell .chat-form { margin-top: 12px; }
.driver-shell .chat-form textarea { border-radius: 10px; }
.driver-shell .timeline-title { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.driver-shell .page-alerts { padding-top: 9px; }

@media (max-width: 760px) {
  .driver-shell .driver-header-inner { min-height: 56px; gap: 8px; }
  .driver-shell .driver-stage-badge { font-size: 9px; }
  .driver-shell .driver-main .flow-page,
  .driver-shell .account-page { padding: 10px 9px 22px; }
  .driver-shell .flow-card { padding: 13px; }
  .driver-shell .summary-line { grid-template-columns: 1fr; gap: 3px; }
  .driver-shell .site-footer .container { gap: 4px; }
}

/* Driver workbench: phone-first hierarchy from the approved portal prototype. */
.driver-shell { min-height:100svh; display:flex; flex-direction:column; }
.driver-shell .driver-main { width:100%; }.driver-shell .driver-header-inner { max-width:960px; }.driver-shell .driver-stage-badge { margin-left:8px; }
.driver-shell .driver-activation-card { position:relative; overflow:hidden; border-radius:20px; padding:24px; }.driver-shell .driver-activation-icon { display:grid; width:54px; height:54px; margin-bottom:14px; place-items:center; border-radius:17px; background:var(--d-yellow); font-size:27px; }.driver-shell .driver-activation-card .eyebrow,.driver-shell .step-label { display:inline-flex; border-radius:99px; background:var(--d-sky-pale); padding:5px 9px; color:var(--d-sky-dark); font-size:10px; font-weight:800; }.driver-shell .driver-activation-card h1 { margin:11px 0 6px; font-size:23px; }.driver-shell .driver-activation-card > p { color:var(--d-muted)!important; font-size:12px; line-height:1.7; }
.driver-shell .driver-activation-steps { display:flex; align-items:center; gap:8px; margin:17px 0; }.driver-shell .driver-activation-steps > span { display:grid; width:26px; height:26px; place-items:center; border:1px solid var(--d-line); border-radius:50%; background:var(--d-bg); color:var(--d-muted); font-size:9px; font-weight:800; }.driver-shell .driver-activation-steps > span.current,.driver-shell .driver-activation-steps > span.complete { border-color:var(--d-sky); background:var(--d-sky); color:#173c4b; }.driver-shell .driver-activation-steps > i { width:35px; height:1px; background:var(--d-line); }.driver-shell .driver-activation-steps > i.complete { background:var(--d-sky); }.driver-shell .driver-activation-steps > small { color:var(--d-muted); font-size:10px; }
.driver-shell .driver-otp-panel { border:1px solid var(--d-line); border-radius:15px; background:var(--d-bg); padding:14px; }.driver-shell .driver-safety-card { display:grid; gap:5px; margin-top:17px; border:1px solid color-mix(in srgb,var(--d-yellow) 55%,var(--d-line)); border-radius:13px; background:color-mix(in srgb,var(--d-yellow) 22%,var(--d-paper)); padding:12px; }.driver-shell .driver-safety-card strong { font-size:11px; }.driver-shell .driver-safety-card span { color:var(--d-muted); font-size:10px; line-height:1.6; }.driver-shell .driver-login-prompt { margin:18px 0 0; color:var(--d-muted); font-size:11px; text-align:center; }.driver-shell .driver-login-prompt a { color:var(--d-sky-dark); font-weight:800; }
.driver-shell .driver-main .flow-page { width:min(100%, 680px); padding:21px 12px 35px; }.driver-shell .flow-heading { margin-bottom:14px; }.driver-shell .flow-heading h1 { margin:10px 0 5px; color:var(--d-ink); font-size:24px; font-weight:850; }.driver-shell .flow-heading p { color:var(--d-muted); font-size:12px; line-height:1.6; }.driver-shell .driver-workbench-summary { display:flex; align-items:center; gap:12px; margin-bottom:12px; border:1px solid var(--d-line); border-radius:16px; background:var(--d-paper); padding:13px; }.driver-shell .driver-summary-icon { display:grid; width:43px; height:43px; flex:0 0 43px; place-items:center; border-radius:14px; background:var(--d-yellow); font-size:22px; }.driver-shell .driver-workbench-summary > div { display:grid; gap:3px; min-width:0; }.driver-shell .driver-workbench-summary strong { font-size:12px; }.driver-shell .driver-workbench-summary small { color:var(--d-muted); font-size:10px; line-height:1.45; }.driver-shell .driver-count { display:grid; width:27px; height:27px; flex:0 0 27px; margin-left:auto; place-items:center; border-radius:50%; background:var(--d-sky-pale); color:var(--d-sky-dark); font-size:10px; font-weight:850; }.driver-shell .driver-order-panel { padding:17px; }.driver-shell .driver-shell .empty-state p { color:var(--d-muted); font-size:11px; }
.driver-shell .order-list { gap:11px; }.driver-shell .order-list-item { gap:10px; border-radius:16px; padding:15px; transition:border-color .15s ease,transform .15s ease; }.driver-shell .order-list-item:hover { transform:translateY(-1px); }.driver-shell .driver-order-top { display:flex; grid-column:1/-1; align-items:center; justify-content:space-between; gap:8px; color:var(--d-muted); font-size:10px; font-weight:750; }.driver-shell .driver-order-top .status-chip { grid-column:auto; background:var(--d-yellow); color:#51471f; }.driver-shell .order-list-date { grid-column:1/-1; }.driver-shell .driver-route-point { display:flex; align-items:flex-start; gap:10px; border-top:1px solid var(--d-line); padding-top:10px; }.driver-shell .driver-route-point > i { display:grid; width:24px; height:24px; flex:0 0 24px; place-items:center; border-radius:8px; background:var(--d-sky-pale); color:var(--d-sky-dark); font-size:10px; font-style:normal; }.driver-shell .driver-route-point > div { display:grid; gap:3px; min-width:0; }.driver-shell .driver-route-point small { color:var(--d-muted); font-size:9px; }.driver-shell .driver-route-point strong { color:var(--d-ink); font-size:11px; font-weight:700; line-height:1.5; overflow-wrap:anywhere; }.driver-shell .driver-order-meta { display:flex; grid-column:1/-1; flex-wrap:wrap; justify-content:space-between; gap:7px; border-top:1px solid var(--d-line); padding-top:10px; color:var(--d-muted); font-size:9px; }.driver-shell .driver-order-meta b { color:var(--d-sky-dark); font-size:10px; }.driver-shell .driver-fleet-note { margin:12px 3px; color:var(--d-muted); font-size:10px; line-height:1.6; text-align:center; }
.driver-shell .driver-back-link { display:inline-block; margin:0 0 12px 2px; color:var(--d-muted); font-size:11px; font-weight:700; text-decoration:none; }.driver-shell .driver-back-link:hover { color:var(--d-sky-dark); }.driver-shell .driver-order-status { display:grid; gap:4px; margin-bottom:12px; border-radius:13px; background:var(--d-sky-pale); padding:12px; }.driver-shell .driver-order-status > div { display:flex; align-items:center; gap:8px; color:var(--d-sky-dark); font-size:13px; }.driver-shell .driver-status-dot { width:8px; height:8px; border-radius:50%; background:var(--d-sky-dark); }.driver-shell .driver-order-status > small { color:var(--d-muted); font-size:9px; }.driver-shell .readonly-tag { margin-left:auto; border-radius:99px; background:var(--d-paper); padding:5px 8px; color:var(--d-muted); font-size:9px; font-weight:750; }.driver-shell .fleet-status-readonly { margin-top:4px; }.driver-shell .driver-route-card { display:grid; gap:10px; margin:13px 0; border:1px solid var(--d-line); border-radius:14px; background:var(--d-bg); padding:13px; }.driver-shell .driver-route-card .driver-route-point { border:0; padding:0; }.driver-shell .driver-route-card .driver-route-point + .driver-route-point { border-top:1px solid var(--d-line); padding-top:10px; }.driver-shell .driver-arrival-action { min-height:49px; border-radius:13px; }.driver-shell .order-chat { border:1px solid var(--d-line); border-radius:15px; background:var(--d-bg); padding:13px; }.driver-shell .chat-safety-note { margin:6px 0 12px; color:var(--d-muted); font-size:9px; line-height:1.55; }.driver-shell .chat-message { max-width:90%; margin:7px 0; border-radius:12px 12px 12px 3px; background:var(--d-paper); padding:9px 11px; font-size:11px; }.driver-shell .chat-message.mine { margin-left:auto; border-radius:12px 12px 3px 12px; background:var(--d-yellow); }.driver-shell .chat-message-heading { display:flex; justify-content:space-between; gap:10px; color:var(--d-muted); font-size:9px; }.driver-shell .chat-message p { margin:5px 0 0; color:var(--d-ink); white-space:pre-wrap; overflow-wrap:anywhere; }.driver-shell .chat-voice { border-color:var(--d-line); color:var(--d-ink); font-size:10px; }
.driver-shell .driver-header-actions form { margin:0; }.driver-shell .driver-header-actions a,.driver-shell .driver-header-actions button { padding:5px; }
@media (min-width: 761px) { .driver-shell .driver-main .flow-page { width:min(100%, 760px); }.driver-shell .driver-order-panel { padding:21px; }.driver-shell .driver-activation-card { padding:30px; } }
@media (max-width: 760px) { .driver-shell .driver-header-inner { flex-wrap:wrap; padding-block:7px; }.driver-shell .driver-stage-badge { margin-left:auto; }.driver-shell .driver-header-actions { width:100%; justify-content:flex-end; margin:0 0 6px; }.driver-shell .driver-header-inner:has(.driver-header-actions) { row-gap:4px; }.driver-shell .driver-header-inner .brand-mark { margin-right:auto; }.driver-shell .driver-main .flow-page { width:100%; max-width:680px; box-sizing:border-box; padding:14px 10px 26px; }.driver-shell .flow-heading h1 { font-size:22px; }.driver-shell .driver-workbench-summary { padding:11px; }.driver-shell .driver-order-panel { min-width:0; padding:13px; }.driver-shell .order-list-item { min-width:0; grid-template-columns:minmax(0,1fr); }.driver-shell .driver-order-top { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; }.driver-shell .driver-order-top > span:first-child { min-width:0; overflow-wrap:anywhere; }.driver-shell .driver-order-top .status-chip { max-width:100%; white-space:normal; text-align:center; }.driver-shell .driver-route-point strong { min-width:0; font-size:10px; overflow-wrap:anywhere; }.driver-shell .driver-order-meta { min-width:0; } }
.driver-shell .empty-state { padding:28px 12px; text-align:center; }.driver-shell .empty-state > span { font-size:30px; }.driver-shell .empty-state h2 { margin:9px 0 5px; font-size:15px; }.driver-shell .empty-state p { color:var(--d-muted); font-size:11px; }
.driver-shell .chat-messages { color:#edf5f7; }
.driver-shell .chat-message { background:#263b43; color:#edf5f7; }
.driver-shell .chat-message-heading { color:#b8cbd2; }
.driver-shell .chat-message p { color:#edf5f7; }
.driver-shell .chat-message.mine { background:#ffe29a; color:#1a2a31; }
.driver-shell .chat-message.mine .chat-message-heading { color:#514629; }
.driver-shell .chat-message.mine p { color:#1a2a31; }
.driver-shell .chat-voice,.driver-shell .btn-outline-secondary { border-color:#71858d; color:#e1edf1; }
.driver-shell .chat-voice:hover,.driver-shell .btn-outline-secondary:hover { border-color:#a9c0c8; background:#263b43; color:#fff; }
.driver-shell .alert-info { border-color:#315868; background:#183440; color:#d7edf5; }
.driver-shell .alert-warning { border-color:#69572c; background:#3b331f; color:#fff0c4; }
.driver-shell .alert-danger { border-color:#713a40; background:#402428; color:#ffdfe2; }
