:root{--ink:#111827;--muted:#64748b;--line:#e5e7eb;--brand:#ef4444;--green:#10b981;--paper:#fff;--bg:#f3f5f8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.45 Inter,system-ui,-apple-system,Segoe UI,sans-serif}.top{height:68px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 720px)/2));position:sticky;top:0;z-index:5}.brand{color:#fff;text-decoration:none;font-weight:900;letter-spacing:.04em}.brand span{display:inline-grid;place-items:center;background:var(--brand);width:34px;height:34px;border-radius:10px;margin-right:8px}.brand b{color:#fca5a5;font-size:.75em}.link{background:none;border:0;color:#fff;font-weight:700}.container{max-width:720px;margin:auto;padding:28px 18px 110px}h1{font-size:clamp(2rem,8vw,3.2rem);line-height:1;margin:.35em 0}h2{font-size:1.15rem;margin:.45em 0}p{color:var(--muted)}a{color:#dc2626;font-weight:700}.eyebrow{color:#ef4444;font-size:.73rem;font-weight:900;letter-spacing:.14em}.card{display:block;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;margin:14px 0;box-shadow:0 8px 28px #0f172a0a;text-decoration:none;color:var(--ink)}.form{display:grid;gap:16px}.form label,.pin label{display:grid;gap:6px;font-weight:750;color:#334155}input,select{width:100%;min-height:48px;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font:inherit;background:#fff}button,.button{min-height:48px;border-radius:13px;border:0;padding:12px 18px;font:inherit;font-weight:900;cursor:pointer;text-decoration:none;display:inline-grid;place-items:center}.primary,.go{background:var(--ink);color:#fff}.go{background:var(--green);min-width:148px}.danger{background:#fee2e2;color:#b91c1c}.secondary{background:#fff;border:1px solid #cbd5e1;color:var(--ink)}.flash{max-width:684px;margin:16px auto 0;padding:12px 16px;border-radius:12px;background:#dcfce7;color:#166534}.flash.error{background:#fee2e2;color:#991b1b}.hero{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(135deg,#111827,#26334a);color:#fff;border-radius:24px;padding:24px}.hero p{color:#cbd5e1}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.stats div{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px}.stats span,.card>span,.vehicle-mini span{display:block;color:var(--muted);font-size:.72rem;font-weight:800}.stats strong{display:block;font-size:1.15rem;margin-top:5px}.pill{display:inline-block!important;width:max-content;background:#f1f5f9;border-radius:999px;padding:5px 9px;color:#475569!important}.job-card{border-left:5px solid var(--brand)}.vehicle-mini{display:grid;gap:5px}.route{display:grid;grid-template-columns:1fr 1fr;gap:12px}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions form{flex:1}.actions button{width:100%}.decline{display:flex;gap:6px}.state{padding:22px}.state>.primary,.state form:not(.decline) button{width:100%}.pin input{text-align:center;letter-spacing:.4em;font-size:2rem}.support{display:block;text-align:center;padding:16px;margin:20px 0;background:#e0f2fe;color:#075985;border-radius:15px}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.row small,.profile small{display:block;color:var(--muted)}.total{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.profile{display:flex;align-items:center;gap:14px}.profile img,.avatar{width:72px;height:72px;border-radius:50%;object-fit:cover}.avatar{display:grid;place-items:center;background:#111827;color:#fff;font-size:2rem;font-weight:900}.active{color:#047857}.bottom{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;padding:max(10px,env(safe-area-inset-bottom)) 8px;z-index:10}.bottom a{width:min(20%,130px);text-align:center;color:#475569;text-decoration:none;font-size:.76rem;padding:8px 2px}.auth{max-width:480px;margin:8vh auto}.tabs{color:var(--muted);font-size:.84rem;font-weight:800}.empty{text-align:center;padding:34px}@media(max-width:560px){.container{padding-top:20px}.hero{align-items:flex-start;flex-direction:column}.hero form,.hero button{width:100%}.stats{grid-template-columns:1fr}.route{grid-template-columns:1fr}.top{padding:0 16px}.brand{font-size:.9rem}}@media(prefers-reduced-motion:no-preference){button,.card{transition:transform .15s ease,box-shadow .15s ease}button:active,.job-card:active{transform:scale(.98)}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Public Driver authentication follows the shared Velox sign-in language. */
.auth-shell{background:#f7f7f8}
.auth-shell .top{position:static;height:64px;background:#fff;color:var(--ink);border-bottom:1px solid #ececec;box-shadow:0 1px 8px rgba(15,23,42,.04)}
.auth-shell .brand{color:var(--ink)}
.auth-shell .brand b{color:#c62828}
.auth-shell .container{display:grid;place-items:center;width:100%;max-width:none;min-height:calc(100dvh - 64px);padding:28px 18px 40px}
.auth-shell .auth{width:100%;max-width:520px;margin:0}
.auth-card.card{margin:0;padding:30px;border-color:#ececec;border-radius:16px;box-shadow:0 14px 38px rgba(15,23,42,.08)}
.auth-brand{display:flex;align-items:center;gap:11px;margin-bottom:24px}
.auth-brand>span{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;color:#fff;background:var(--brand);border-radius:11px;font-weight:900}
.auth-brand strong{display:block;color:var(--ink);font-size:.94rem;letter-spacing:.045em}
.auth-brand strong b{color:#c62828;font-size:.78em}
.auth-brand small{display:block;margin-top:1px;color:var(--muted);font-size:.72rem;letter-spacing:.04em}
.auth-badge{display:inline-block!important;width:max-content;padding:5px 10px;color:#b3261e!important;background:#fff2f2;border-radius:999px;font-size:.75rem!important;font-weight:800!important}
.auth-card h1{margin:12px 0 8px;font-size:1.9rem;line-height:1.2;letter-spacing:-.02em}
.auth-intro{margin:0;color:#666}
.auth-form{gap:14px;margin-top:20px}
.auth-form label{gap:7px;color:#2a2a2a;font-weight:700}
.auth-form input{min-height:48px;border-color:#cfcfcf;border-radius:9px;outline:0;transition:border-color .2s ease,box-shadow .2s ease}
.auth-form input:focus{border-color:#d93025;box-shadow:0 0 0 3px rgba(217,48,37,.12)}
.auth-form .primary{width:100%;min-height:48px;margin-top:8px;background:#e53935;border-radius:9px;box-shadow:0 6px 14px rgba(229,57,53,.18)}
.auth-form .primary:hover{background:#cf2f2b}
.auth-links{display:flex;justify-content:flex-end;margin-top:18px}
.auth-links a{font-size:.92rem}
.auth-note{margin:20px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:.86rem;line-height:1.5}

/* Authenticated Driver Portal shell and dashboard. */
.operational-shell{background:#f4f6f9}
.top{height:72px;padding:0 24px;background:#101827;box-shadow:0 1px 0 rgba(255,255,255,.08)}
.top-inner{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;margin:0 auto}
.brand{display:inline-flex;align-items:center;white-space:nowrap}
.brand .brand-copy{display:inline-block;width:auto;height:auto;margin:0;background:transparent;border-radius:0}
.top-actions{display:flex;align-items:center;gap:8px}
.logout-form{display:inline-flex;margin:0}
.header-action{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:#e5e7eb;text-decoration:none;font-size:.84rem;font-weight:800;cursor:pointer}
.header-action:hover,.header-action:focus-visible{background:rgba(255,255,255,.08);color:#fff}
.portal-shell{display:grid;grid-template-columns:220px minmax(0,1fr);width:100%;max-width:1440px;min-height:calc(100dvh - 72px);margin:0 auto}
.portal-shell>.container{width:100%;max-width:none;margin:0;padding:36px 30px 52px}
.side-nav{position:sticky;top:72px;align-self:start;height:calc(100dvh - 72px);padding:28px 18px;border-right:1px solid #e1e6ed;background:#fff}
.side-nav:before{display:block;margin:0 12px 14px;color:#94a3b8;content:"DRIVER WORKSPACE";font-size:.65rem;font-weight:900;letter-spacing:.12em}
.side-nav a{display:flex;align-items:center;gap:12px;min-height:46px;margin:4px 0;padding:10px 12px;border-radius:11px;color:#526071;text-decoration:none;font-size:.9rem;font-weight:750}
.side-nav a:hover{background:#f5f7fa;color:#111827}
.side-nav a.active-nav{background:#fff1f1;color:#c92727}
.nav-icon{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border:1px solid #dce2e9;border-radius:8px;background:#fff;color:#657286;font-size:.64rem;font-weight:900}
.active-nav .nav-icon{border-color:#ffd5d5;background:#fff;color:#d92d2d}
.nav-icon-home:before{content:"H"}.nav-icon-jobs:before{content:"J"}.nav-icon-vehicle:before{content:"V"}.nav-icon-fleet:before{content:"F"}.nav-icon-earnings:before{content:"P"}.nav-icon-profile:before{content:"D"}.nav-icon-performance:before{content:"%"}
.mobile-nav{display:none}
.flash{max-width:calc(1440px - 48px)}
button:disabled,.button[aria-disabled="true"]{cursor:not-allowed;opacity:.5;box-shadow:none}

.dashboard-page{max-width:1180px;margin:0 auto}
.dashboard-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:214px;overflow:hidden;padding:30px 32px;border:1px solid rgba(255,255,255,.08);border-radius:24px;background:linear-gradient(130deg,#101827 0%,#1d2b43 72%,#263955 100%);color:#fff;box-shadow:0 18px 38px rgba(15,23,42,.14)}
.dashboard-hero:after{position:absolute;right:-80px;bottom:-125px;width:300px;height:300px;border:1px solid rgba(255,255,255,.08);border-radius:50%;content:"";box-shadow:0 0 0 45px rgba(255,255,255,.025),0 0 0 90px rgba(255,255,255,.018)}
.dashboard-hero.hero-active{background:linear-gradient(130deg,#101827 0%,#292238 62%,#5b2028 120%)}
.dashboard-hero.hero-online{background:linear-gradient(130deg,#101827 0%,#163343 100%)}
.hero-copy,.hero-actions{position:relative;z-index:1}
.dashboard-hero .eyebrow{margin-top:22px;color:#ff8b8b}
.dashboard-hero h1{max-width:660px;margin:10px 0 8px;font-size:clamp(2rem,4vw,3rem);letter-spacing:-.04em}
.dashboard-hero p{max-width:680px;margin:0;color:#c8d1de;font-size:1rem}
.hero-status{display:inline-flex;align-items:center;gap:8px;padding:5px 9px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(255,255,255,.07);color:#eef2f7;font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.status-dot{width:7px;height:7px;border-radius:50%;background:#94a3b8}
.hero-online .status-dot{background:#36d399;box-shadow:0 0 0 4px rgba(54,211,153,.12)}
.hero-active .status-dot{background:#fb7185;box-shadow:0 0 0 4px rgba(251,113,133,.12)}
.hero-actions{display:flex;min-width:185px;flex-direction:column;align-items:stretch;gap:10px}
.hero-actions form,.hero-actions button{width:100%}
.hero-primary,.dashboard-hero .go{background:#fff;color:#111827}
.dashboard-hero .danger{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.08);color:#fff}
.hero-links{display:flex;justify-content:center;gap:14px;min-height:22px}
.hero-links a{color:#fff;font-size:.82rem}

.dashboard-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0 20px}
.dashboard-kpis>div{min-width:0;padding:15px 16px;border:1px solid #e2e7ed;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.dashboard-kpis span{display:block;color:#748094;font-size:.67rem;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
.dashboard-kpis strong{display:block;overflow-wrap:anywhere;margin-top:5px;color:#162033;font-size:1.22rem;line-height:1.25}
.dashboard-kpis>div:last-child strong{font-size:.95rem}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.85fr);gap:18px;align-items:start}
.dashboard-main,.dashboard-rail{display:grid;min-width:0;gap:18px}
.dashboard-card.card{margin:0;padding:22px;border-color:#e1e6ec;border-radius:17px;box-shadow:0 7px 24px rgba(15,23,42,.045)}
.card-kicker{display:block;color:#d83434;font-size:.65rem;font-weight:900;letter-spacing:.12em}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.section-heading h2{margin:4px 0 0;color:#182234;font-size:1.17rem}
.section-heading>a{white-space:nowrap;font-size:.78rem}
.pill-live{background:#fff0f1;color:#bf2532!important}
.job-heading{display:flex;align-items:center;gap:10px;margin:20px 0 12px}
.job-heading strong{font-size:1rem}
.job-type{padding:5px 8px;border-radius:7px;background:#f1f5f9;color:#4a586a;font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.job-route-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.job-route-summary>div{min-width:0;padding:13px;border:1px solid #e8ecf1;border-radius:12px;background:#f8fafc}
.job-route-summary span{display:block;color:#8792a2;font-size:.62rem;font-weight:900;letter-spacing:.1em}
.job-route-summary b,.job-route-summary small{display:block;overflow-wrap:anywhere}
.job-route-summary b{margin:4px 0 2px;color:#273348}
.job-route-summary small{color:#697689}
.job-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:14px 0;color:#64748b;font-size:.78rem}
.job-meta b{color:#334155}
.card-action{width:max-content;min-height:42px;padding:9px 15px}
.dashboard-empty{padding:26px 8px 6px}
.dashboard-empty p{max-width:440px;margin:9px auto 16px}
.empty-mark{display:block;width:38px;height:38px;margin:0 auto 12px;border:2px solid #dfe5ec;border-radius:12px;box-shadow:inset 0 0 0 7px #f8fafc}

.location-consent p{margin:14px 0 6px}
.location-consent .location-detail{margin:0 0 14px;color:#3f4d61;font-size:.82rem;font-weight:800}
.location-consent .location-start{width:max-content;min-height:42px;padding:9px 14px}
.location-consent small{display:block;margin-top:11px;color:#8490a1}
.status-chip{display:inline-flex!important;align-items:center;width:max-content;padding:6px 9px;border-radius:999px;font-size:.68rem!important;font-weight:850!important}
.status-offline{background:#eef1f5;color:#5d6877!important}
.status-ready{background:#ecfdf5;color:#087b5a!important}

.dashboard-card-group{min-width:0}
.section-heading.standalone{margin:2px 2px 10px}
.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.quick-actions>a{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;min-width:0;padding:13px;border:1px solid #e1e6ec;border-radius:13px;background:#fff;color:#263248;text-decoration:none;box-shadow:0 5px 18px rgba(15,23,42,.035)}
.quick-actions>a:hover{border-color:#f4b9b9;box-shadow:0 8px 22px rgba(15,23,42,.07)}
.quick-icon{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff1f1;color:#cc2d2d;font-size:.75rem;font-weight:900}
.quick-actions b,.quick-actions small{min-width:0;overflow-wrap:anywhere}
.quick-actions b{font-size:.78rem}.quick-actions small{color:#8994a3;font-size:.67rem}

.mode-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}
.mode-row h2{margin:4px 0}
.mode.mode-ready{background:#eafaf4;color:#087b5a}.mode.mode-muted{background:#f1f3f6;color:#667085}
.vehicle-name,.registration{display:block}.vehicle-name{margin-top:14px;font-size:1.02rem}.registration{margin-top:2px;color:#64748b;font-size:.82rem;font-weight:800;letter-spacing:.06em}
.approval-line{display:flex;align-items:center;gap:7px!important;margin:11px 0!important;color:#087b5a!important;font-size:.78rem;font-weight:800}.approval-line span{width:7px;height:7px;border-radius:50%;background:#10b981}
.custody-note{display:grid;gap:2px;margin:13px 0;padding:11px;border-radius:10px;background:#fff7ed;color:#9a4e0c}.custody-note small{color:#a66529}
.inline-links{display:flex;gap:14px;margin-top:12px;font-size:.84rem}
.summary-list{display:grid;gap:0;margin:13px 0 10px}.summary-list>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf0f4}.summary-list>div:last-child{border-bottom:0}.summary-list span{color:#687588;font-size:.82rem}.summary-list b{color:#1e293b}
.performance-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:15px}.performance-grid>div{min-width:0;padding:10px 4px;border-radius:9px;background:#f7f9fb;text-align:center}.performance-grid strong,.performance-grid span{display:block}.performance-grid strong{font-size:1rem}.performance-grid span{margin-top:2px;color:#778396;font-size:.61rem;text-transform:uppercase}
.alert-row{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-bottom:1px solid #edf0f4}.alert-row:last-of-type{border-bottom:0}.alert-dot{width:8px;height:8px;flex:0 0 8px;margin-top:6px;border-radius:50%;background:#ef4444}.alert-row b,.alert-row small{display:block}.alert-row b{font-size:.82rem}.alert-row small{margin-top:2px;color:#8792a2;font-size:.68rem}.quiet-state{margin:14px 0;color:#758195}.support-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px -4px -4px;padding:13px;border-radius:11px;background:#eff7ff}.support-row b,.support-row small{display:block}.support-row b{font-size:.82rem}.support-row small{max-width:210px;color:#67758a;font-size:.68rem}.support-row a{white-space:nowrap;font-size:.76rem}

@media(max-width:1100px){.portal-shell{grid-template-columns:188px minmax(0,1fr)}.portal-shell>.container{padding:30px 24px 46px}.dashboard-grid{grid-template-columns:1fr}.dashboard-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-card,.alerts-card{grid-column:1/-1}.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-hero{align-items:flex-start;flex-direction:column}.hero-actions{width:100%;max-width:300px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Premium visual refinement: shared action, icon and operational hierarchy. */
.primary,.go{background:#e53935;color:#fff}
.primary:hover,.go:hover{background:#cf302d}
a,button{outline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(229,57,53,.28)}
.top{height:68px}
.portal-shell{min-height:calc(100dvh - 68px)}
.side-nav{top:68px;height:calc(100dvh - 68px)}
.header-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-status{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:5px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;color:#d6dde8;font-size:.7rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.header-status>span:first-child{width:7px;height:7px;border-radius:50%;background:#8b96a7}
.header-status.is-online>span:first-child{background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.12)}
.header-status.on-delivery{color:#fff1f2;background:rgba(239,68,68,.13)}
.header-status.on-delivery>span:first-child{background:#fb7185}
.nav-icon{border:0;background:transparent}
.nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.side-nav a{font-weight:780}
.side-nav a.active-nav{box-shadow:inset 3px 0 0 #e53935}
.mobile-more-menu{display:none}

.dashboard-page a:not(.button){text-decoration:none}
.dashboard-page a:not(.button):hover{text-decoration:none}
.dashboard-hero{min-height:200px;padding:27px 30px;border-radius:25px;box-shadow:0 12px 28px rgba(15,23,42,.11)}
.dashboard-hero h1{font-size:clamp(1.85rem,3.2vw,2.65rem)}
.dashboard-hero .eyebrow{margin-top:17px}
.hero-primary,.dashboard-hero .go{background:#e53935;color:#fff;box-shadow:0 8px 18px rgba(229,57,53,.22)}
.hero-primary:hover,.dashboard-hero .go:hover{background:#cf302d;color:#fff}
.hero-vehicle{display:flex;align-items:center;gap:8px;margin-top:14px;color:#e2e8f0;font-size:.78rem;font-weight:750}
.hero-vehicle svg{width:17px;height:17px;fill:none;stroke:#ff8b8b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hero-actions{min-width:190px}
.dashboard-kpis{align-items:stretch;gap:12px;margin:14px 0 18px}
.dashboard-kpis>div{display:flex;min-height:98px;flex-direction:column;justify-content:center;padding:14px 15px;border-radius:18px;box-shadow:0 3px 12px rgba(15,23,42,.035)}
.dashboard-kpis strong{margin-top:4px;font-size:1.18rem}
.dashboard-kpis small{display:block;overflow:hidden;margin-top:4px;color:#929baa;font-size:.67rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.dashboard-grid{grid-template-columns:minmax(0,1.55fr) minmax(300px,.82fr);grid-template-areas:"active vehicle" "location earnings" "quick performance" "quick alerts";gap:16px;align-items:start}
.grid-active{grid-area:active}.grid-vehicle{grid-area:vehicle}.grid-location{grid-area:location}.grid-earnings{grid-area:earnings}.grid-quick{grid-area:quick}.grid-performance{grid-area:performance}.grid-alerts{grid-area:alerts}
.dashboard-card.card{padding:20px;border-color:#e3e7ec;border-radius:20px;box-shadow:0 4px 16px rgba(15,23,42,.035)}
.card-kicker{letter-spacing:.1em}
.section-heading h2{font-weight:780}
.section-heading>a{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border-radius:9px;background:#fff1f1;color:#c92d2d;font-size:.72rem}
.section-heading>a:hover{background:#ffe5e5}
.job-route-summary>div{border-radius:14px}
.card-action{background:#e53935;box-shadow:0 6px 14px rgba(229,57,53,.16)}
.empty-mark{display:grid;place-items:center;border:0;background:#fff1f1;box-shadow:none;color:#d93333}
.empty-mark svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dashboard-empty{padding-top:22px}
.dashboard-empty p{margin-top:8px}
.location-consent p{max-width:650px}
.location-consent .location-detail{font-weight:750}
.location-consent .location-start{border-color:#f2b7b7;color:#c92d2d}
.location-consent .location-start:not(:disabled):hover{background:#fff1f1}
.location-consent .location-start.primary{border-color:#e53935;color:#fff}
.location-consent .location-start.primary:not(:disabled):hover{background:#cf302d}
.location-consent [hidden]{display:none!important}
.location-consent .location-online-message{margin:0 0 13px;padding:9px 11px;border-radius:10px;background:#fff1f1;color:#a92727;font-size:.8rem;font-weight:800}
.location-consent .location-help{max-width:650px;margin-top:13px;padding:10px 12px;border:1px solid #e4e8ed;border-radius:11px;background:#f8fafc;color:#526071;font-size:.78rem}
.location-consent .location-help summary{cursor:pointer;color:#c92d2d;font-weight:800}
.location-consent .location-help p{margin:8px 0 0;font-size:.76rem;line-height:1.45}
.location-help-mobile{display:none}
.status-warning{background:#fff4e5;color:#98620b!important}
.location-consent small{margin-top:9px}
.mode-row h2{font-size:1.08rem;line-height:1.25}
.operating-card .registration{margin-top:10px}
.operating-card>.compact-link{display:inline-flex;align-items:center;min-height:34px;margin-top:12px;padding:7px 11px;border:1px solid #e0e5eb;border-radius:10px;color:#2e3a4d;font-size:.76rem}
.operating-card>.compact-link:hover{border-color:#efaaaa;background:#fff6f6;color:#bd2929}
.inline-links a{display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;border:1px solid #e0e5eb;border-radius:10px;font-size:.76rem}
.summary-list{margin-bottom:0}
.quick-actions{gap:9px}
.quick-actions>a{min-height:66px;padding:12px;border-radius:15px;box-shadow:0 3px 12px rgba(15,23,42,.03)}
.quick-icon{background:#fff0f0}
.quick-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.quick-actions b{font-weight:780}
.support-row a{display:inline-flex;align-items:center;min-height:31px;padding:6px 9px;border-radius:8px;background:#fff;color:#ba2929}

@media(max-width:1100px) and (min-width:768px){
  .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"active active" "vehicle earnings" "location location" "quick quick" "performance alerts"}
  .performance-card,.alerts-card{grid-column:auto}
}
@media(max-width:900px) and (min-width:768px){
  .dashboard-hero{min-height:220px;align-items:center;flex-direction:row;gap:14px;padding:22px}
  .dashboard-hero h1{font-size:1.72rem}
  .dashboard-hero p{font-size:.86rem}
  .hero-actions{width:158px;min-width:158px}
  .hero-vehicle{display:none}
}

/* Driver-owned vehicle registration and review cards. */
.vehicles-page{width:100%;max-width:1080px}
.vehicle-page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}
.vehicle-page-header h1{margin:.24em 0 .15em}.vehicle-page-header p{margin:0}
.add-vehicle-button{min-width:148px;background:#e53935;color:#fff;box-shadow:0 7px 17px rgba(229,57,53,.18)}
.add-vehicle-button:hover{background:#cf302d;color:#fff}
.vehicle-registration-form.card{max-width:900px;margin:0 0 22px;padding:24px;border-color:#e1e6ec;border-radius:20px;box-shadow:0 8px 28px rgba(15,23,42,.055)}
.vehicle-form-heading h2{margin:5px 0 3px;font-size:1.35rem}.vehicle-form-heading p{margin:0 0 18px}
.vehicle-form-grid,.vehicle-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.vehicle-form-grid label{gap:7px}.optional-label{color:#8994a3;font-size:.68rem;font-weight:700}
.vehicle-registration-form input,.vehicle-registration-form select{border-color:#cfd6df;border-radius:10px;background:#fff}
.vehicle-registration-form input:focus,.vehicle-registration-form select:focus{border-color:#e66868;box-shadow:0 0 0 3px rgba(229,57,53,.09);outline:0}
.vehicle-upload-grid{margin-top:18px}
.vehicle-file-field{align-content:start;min-width:0;padding:15px;border:1px dashed #cdd5df;border-radius:13px;background:#f8fafc}
.vehicle-file-field>span{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#334155;font-weight:800}
.vehicle-file-field em{color:#8994a3;font-size:.68rem;font-style:normal;font-weight:700;text-transform:uppercase}
.vehicle-file-field input[type=file]{min-height:44px;margin-top:9px;padding:6px;background:#fff;font-size:.78rem}
.vehicle-file-field input[type=file]::file-selector-button{min-height:30px;margin-right:9px;padding:6px 10px;border:0;border-radius:7px;background:#e9edf2;color:#263248;font:inherit;font-weight:800;cursor:pointer}
.vehicle-file-field small{display:block;margin-top:7px;color:#748094;font-size:.7rem;font-weight:600;line-height:1.4}
.vehicle-photo-preview{width:100%;height:150px;margin-top:10px;border-radius:10px;object-fit:cover;background:#edf1f5}
.vehicle-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:19px;padding-top:17px;border-top:1px solid #edf0f4}
.vehicle-form-actions .button,.vehicle-form-actions button{min-width:160px}
.vehicle-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}
.vehicle-card.card{display:grid;grid-template-columns:145px minmax(0,1fr);min-width:0;margin:0;padding:0;overflow:hidden;border-color:#e1e6ec;border-radius:18px;box-shadow:0 6px 22px rgba(15,23,42,.045)}
.vehicle-thumbnail{display:grid;min-height:220px;place-items:center;background:#eef2f6;overflow:hidden}
.vehicle-thumbnail img{width:100%;height:100%;min-height:220px;object-fit:cover}
.vehicle-thumbnail>span{display:grid;place-items:center;color:#98a2b2}.vehicle-thumbnail svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}.vehicle-thumbnail small{margin-top:7px;font-size:.65rem;font-weight:750}
.vehicle-card-body{display:flex;min-width:0;flex-direction:column;padding:18px}
.vehicle-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.vehicle-card-title h2{margin:0;color:#1f2937;font-size:1.07rem;line-height:1.25}.vehicle-card-title p{margin:3px 0 0;font-size:.76rem}
.vehicle-status-badge{display:inline-flex!important;align-items:center;width:max-content;flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#536071!important;font-size:.61rem!important;font-weight:900!important;letter-spacing:.05em}
.vehicle-status-submitted .vehicle-status-badge{background:#fff4d6;color:#8a5a05!important}.vehicle-status-approved .vehicle-status-badge{background:#e7f8f1;color:#087958!important}.vehicle-status-rejected .vehicle-status-badge{background:#feeceb;color:#b42318!important}.vehicle-status-suspended .vehicle-status-badge{background:#fde8e8;color:#991b1b!important}
.vehicle-facts{display:grid;grid-template-columns:1.25fr .75fr;gap:8px;margin:15px 0 11px}.vehicle-facts>div{min-width:0;padding:9px 10px;border-radius:9px;background:#f7f9fb}.vehicle-facts dt{color:#8490a1;font-size:.61rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.vehicle-facts dd{overflow-wrap:anywhere;margin:3px 0 0;color:#273449;font-size:.76rem;font-weight:850}
.vehicle-document-indicator{display:flex;align-items:center;gap:7px;color:#7b8798;font-size:.7rem;font-weight:750}.vehicle-document-indicator span{display:grid;width:18px;height:18px;place-items:center;border-radius:50%;background:#edf1f5}.vehicle-document-indicator.has-document{color:#087958}.vehicle-document-indicator.has-document span{background:#e5f7ef}
.vehicle-photo-pending,.vehicle-photo-rejected{display:grid;gap:3px;margin-top:10px;padding:9px 10px;border-radius:9px;background:#fff7dc;color:#805600}.vehicle-photo-pending b,.vehicle-photo-rejected b{font-size:.67rem;letter-spacing:.04em}.vehicle-photo-pending small,.vehicle-photo-rejected small{font-size:.68rem;line-height:1.4}.vehicle-photo-rejected{background:#fff0ef;color:#a32820}
.vehicle-review-state{display:grid;gap:3px;margin-top:13px;padding:10px 11px;border-left:3px solid #cbd5e1;border-radius:0 8px 8px 0;background:#f8fafc}.vehicle-review-state b{font-size:.78rem}.vehicle-review-state small{display:block;color:#748094;font-size:.68rem;line-height:1.4}.vehicle-status-submitted .vehicle-review-state{border-color:#e1a724;background:#fffbeb}.vehicle-status-approved .vehicle-review-state{border-color:#10b981;background:#f0fdf8}.vehicle-status-rejected .vehicle-review-state,.vehicle-status-suspended .vehicle-review-state{border-color:#ef4444;background:#fff5f5}
.vehicle-update-panel{margin-top:12px;border-top:1px solid #e8edf2;padding-top:10px}.vehicle-update-panel summary{cursor:pointer;color:#38475d;font-size:.73rem;font-weight:850}.vehicle-update-panel form{display:grid;gap:8px;margin-top:10px}.vehicle-update-panel label{gap:6px;font-size:.72rem}.vehicle-update-panel input[type=file]{min-width:0;padding:7px;font-size:.7rem}.vehicle-update-panel small{font-size:.67rem;line-height:1.4}.vehicle-update-panel button{min-height:38px;padding:7px 10px}.verification-completion{padding:12px;border:1px solid #f0d48d;border-radius:10px;background:#fffbeb}.verification-completion form+form{margin-top:14px;padding-top:14px;border-top:1px solid #efdcae}
.vehicle-update-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}
.vehicle-card-actions{margin-top:auto;padding-top:14px}.vehicle-card-actions form{margin:0}.vehicle-card-actions .button,.vehicle-card-actions button{width:100%;min-height:41px;padding:8px 11px;border-radius:10px;font-size:.75rem}.active-vehicle-label{display:flex;align-items:center;justify-content:center;min-height:39px;border-radius:10px;background:#e7f8f1;color:#087958;font-size:.73rem;text-transform:uppercase}
.vehicle-empty-state{text-align:center;padding:42px 22px}.vehicle-empty-state h2{margin:12px 0 4px}.vehicle-empty-state p{max-width:470px;margin:0 auto 17px}.vehicle-empty-state .button{width:max-content;margin:auto}.vehicle-empty-icon{display:grid!important;width:52px;height:52px;margin:auto;place-items:center;border-radius:15px;background:#fff0f0;color:#d83232!important}.vehicle-empty-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:980px){.vehicle-card-grid{grid-template-columns:1fr}.vehicle-card.card{grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:700px){.vehicle-page-header{align-items:stretch;flex-direction:column;gap:13px}.add-vehicle-button{width:100%}.vehicle-form-grid,.vehicle-upload-grid{grid-template-columns:1fr}.vehicle-registration-form.card{padding:19px}.vehicle-form-actions{align-items:stretch;flex-direction:column-reverse}.vehicle-form-actions .button,.vehicle-form-actions button{width:100%}.vehicle-card.card{grid-template-columns:118px minmax(0,1fr)}.vehicle-thumbnail,.vehicle-thumbnail img{min-height:220px}}
@media(max-width:440px){.vehicle-card.card{display:block}.vehicle-thumbnail,.vehicle-thumbnail img{width:100%;min-height:0;height:150px}.vehicle-card-body{padding:16px}.vehicle-facts{grid-template-columns:1fr 1fr}}
