/* Phase 21: task-first driver workspace, refined route cards and accessible mobile tools.
   All selectors are intentionally scoped to the driver portal. */
body.ui-driver{
 --driver21-fg:#153c32;
 --driver21-primary:#126a53;
 --driver21-primary-soft:#e7f4ec;
 --driver21-line:#d9e8df;
 --driver21-warning-bg:#fff5e6;
 --driver21-warning-border:#edd6a6;
 --driver21-warning-text:#815517;
}
body.ui-driver .driver-action-panel{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:18px;margin:0 0 18px;padding:19px 22px;background:linear-gradient(112deg,#f1f9f3,#fff);border:1px solid #cce6d5;border-radius:19px;box-shadow:0 8px 22px #174a3710}
body.ui-driver .driver-action-symbol{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#d8efe1;color:#146047;font-weight:800;font-size:24px}
body.ui-driver .driver-action-copy .driver-kicker{color:#6f907a}
body.ui-driver .driver-action-copy h2{color:#194e3a;margin:3px 0 4px;font-size:clamp(17px,1.6vw,21px);letter-spacing:-.025em}
body.ui-driver .driver-action-copy p{margin:0;font-size:13px;color:#607a69;line-height:1.6;max-width:640px}
body.ui-driver .driver-action-link{display:inline-flex;gap:10px;justify-content:center;align-items:center;border-radius:11px;min-height:44px;padding:10px 16px;background:#146951;color:white;text-decoration:none;white-space:nowrap;font-weight:750;font-size:13px}
body.ui-driver .driver-action-link:hover{background:#0d5342;color:#fff}
body.ui-driver .driver-route-stack{position:relative;margin:12px 0 13px;padding:14px 15px;background:#f7faf7;border:1px solid #e3eee6;border-radius:13px}
body.ui-driver .driver-route-stop{position:relative;display:grid;grid-template-columns:13px minmax(0,1fr);align-items:start;gap:10px;padding:2px 0 14px}
body.ui-driver .driver-route-stop--destination{padding-bottom:1px}
body.ui-driver .driver-route-stop:not(:last-child)::after{content:"";position:absolute;top:20px;bottom:1px;left:5px;border-left:1.5px dashed #a6c9b7}
body.ui-driver .driver-route-dot{height:11px;width:11px;margin-top:7px;border:3px solid #17765a;background:white;border-radius:50%}
body.ui-driver .driver-route-stop--destination .driver-route-dot{border-color:#e27c62}
body.ui-driver .driver-route-stop small{display:block;text-transform:uppercase;letter-spacing:.08em;color:#849588;font-size:10px;line-height:1.8;font-weight:800}
body.ui-driver .driver-route-stop strong{font-size:14px;line-height:1.5;color:#24483b;overflow-wrap:anywhere;font-weight:750}
body.ui-driver .driver-trip-guidance{border:1px solid #d3e8d8;border-left:3px solid #308c67;background:#f3faf4;color:#275d43;border-radius:10px;padding:11px 13px;font-size:13px;font-weight:650;margin:11px 0}
body.ui-driver .driver-trip-guidance--attention{border-color:var(--driver21-warning-border);border-left-color:#d6943a;background:var(--driver21-warning-bg);color:var(--driver21-warning-text)}
body.ui-driver .driver-trips-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0 18px;padding:12px 14px;background:#fff;border:1px solid var(--driver21-line);border-radius:14px}
body.ui-driver .driver-trips-toolbar>span{font-size:12px;color:#698074;font-weight:750;flex:0 0 auto}
body.ui-driver .driver-trip-filters{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
body.ui-driver .driver-trip-filters button{font-size:12px;padding:7px 11px;min-height:36px;border:1px solid transparent;background:transparent;color:#577668;white-space:nowrap;border-radius:9px}
body.ui-driver .driver-trip-filters button:hover{background:#eff7f1}
body.ui-driver .driver-trip-filters button[aria-pressed="true"]{background:#e3f2e8;border-color:#b8ddc4;color:#165e43}
body.ui-driver .driver-filter-empty{border-style:dashed;background:#fbfcfa;color:#667c70;margin-top:6px!important}
body.ui-driver .driver-price-preview{border-radius:9px;background:#eff8f0;padding:9px 12px;color:#1d6649;border:1px solid #d6e9da;font-size:13px;font-weight:700;margin:10px 0 13px}
body.ui-driver .driver-offer-help{font-size:12px}
body.ui-driver .driver-vehicle-hint{font-size:12px;color:#6c8175;margin-top:10px;padding-top:8px;border-top:1px dashed #e3ede6}
body.ui-driver .driver-readiness-meter{margin:6px 0 17px;border:1px solid #ddeae0;padding:13px 15px;border-radius:12px;background:#fff}
body.ui-driver .driver-readiness-meter-heading{display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:12px;color:#637c6c;margin-bottom:10px}
body.ui-driver .driver-readiness-meter-heading strong{font-size:12px;color:#215b43}
body.ui-driver .driver-readiness-track{width:100%;height:8px;border-radius:999px;background:#e7eee9;overflow:hidden}
body.ui-driver .driver-readiness-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2d8f67,#51a37b);transition:width .2s ease}
body.ui-driver .driver-readiness li.is-ready::before{content:"✓";color:#16805b}
body.ui-driver .driver-readiness li.needs-action{border-color:#eed8b6;background:#fffbf3;color:#775e3f}
body.ui-driver .driver-readiness li.needs-action::before{content:"!";color:#9c621d;width:20px;left:11px;text-align:center}
body.ui-driver .driver-readiness li.needs-action strong{color:#895b26}
body.ui-driver .driver-tour-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:14px 17px;margin:0 0 21px;gap:8px;background:#fff;border:1px solid #dfe9e0;border-radius:15px;box-shadow:0 8px 23px #194a3810}
body.ui-driver .driver-tour-steps li{display:flex;align-items:center;gap:9px;color:#809387;font-size:12px;min-width:0}
body.ui-driver .driver-tour-steps li>span{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;background:#eff3ef;border:1px solid #e1e9e3;border-radius:50%;font-weight:800;color:#718276}
body.ui-driver .driver-tour-steps li.is-complete{color:#236b4f}
body.ui-driver .driver-tour-steps li.is-complete>span{background:#dff2e5;border-color:#b3d9bd;color:#14634b}
body.ui-driver .driver-tour-steps li[aria-current="step"]>span{background:#14664e;color:#fff;border-color:#14664e}
body.ui-driver .driver-tour-steps li[aria-current="step"] strong{font-weight:850;color:#164d3c}
body.ui-driver .driver-password-toggle{margin:0 0 7px;min-height:34px;padding:4px 10px!important;border:none!important;background:transparent!important;color:#14674e!important;justify-self:start;box-shadow:none!important;font-size:12px}
body.ui-driver .driver-password-toggle:hover{text-decoration:underline}
body.ui-driver .driver-main .driver-mobile-more[hidden]{display:none!important}
body.ui-driver .driver-mobile-more{display:none}
@media(max-width:1050px){
 body.ui-driver .driver-action-panel{grid-template-columns:42px minmax(0,1fr);gap:14px}
 body.ui-driver .driver-action-symbol{width:42px;height:42px}
 body.ui-driver .driver-action-link{grid-column:2;justify-self:start}
 body.ui-driver .driver-trips-toolbar{flex-direction:column;align-items:flex-start}
}
@media(max-width:700px){
 body.ui-driver{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
 body.ui-driver .driver-action-panel{padding:16px;gap:11px;border-radius:15px}
 body.ui-driver .driver-action-symbol{width:38px;height:38px;font-size:21px}
 body.ui-driver .driver-action-copy h2{font-size:18px}
 body.ui-driver .driver-action-link{grid-column:1/-1;width:100%;margin-top:2px}
 body.ui-driver .driver-trip-filters{max-width:100%;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:4px;scrollbar-width:thin}
 body.ui-driver .driver-trips-toolbar{overflow:hidden;align-items:stretch}
 body.ui-driver .driver-tour-steps{padding:12px 9px;gap:4px}
 body.ui-driver .driver-tour-steps li{flex-direction:column;text-align:center;gap:5px;font-size:10px}
 body.ui-driver .driver-tour-steps li>span{flex:none;width:28px;height:28px}
 body.ui-driver .driver-tour-steps li strong{overflow-wrap:anywhere}
 body.ui-driver .driver-mobile-nav{position:fixed;overflow:visible}
 body.ui-driver .driver-mobile-nav button.driver-more-toggle{display:grid;place-items:center;gap:2px;min-width:0;min-height:52px;border:0;border-radius:9px;box-shadow:none;padding:7px 2px;background:transparent;color:#477469;font-size:10px;font-weight:750;line-height:1.25}
 body.ui-driver .driver-mobile-nav button.driver-more-toggle[aria-expanded="true"],body.ui-driver .driver-mobile-nav button.driver-more-toggle[aria-current="page"]{background:#eaf5ee;color:#145b49}
 body.ui-driver .driver-mobile-more{display:grid;position:absolute;bottom:calc(100% + 9px);right:12px;width:min(300px,calc(100vw - 24px));z-index:1010;gap:3px;background:white;border:1px solid #d6e6db;border-radius:17px;padding:12px;box-shadow:0 16px 44px #123f3240}
 body.ui-driver .driver-mobile-more strong{font-size:12px;letter-spacing:.05em;color:#637d6b;padding:5px 10px 7px;text-transform:uppercase}
 body.ui-driver .driver-mobile-more a{display:flex;justify-content:flex-start;align-items:center;min-height:43px;padding:10px 12px;font-size:13px;font-weight:750;color:#225641;border-radius:9px}
 body.ui-driver .driver-mobile-more a:hover,body.ui-driver .driver-mobile-more a:focus-visible{background:#edf7ef}
}
@media(max-width:360px){body.ui-driver .driver-route-stop strong{font-size:12px}body.ui-driver .driver-action-copy p{font-size:12px}}
@media(prefers-reduced-motion:reduce){body.ui-driver .driver-readiness-track span{transition:none}}

body.ui-driver .driver-state-pill.driver-closed{background:#f0f3f1;border-color:#e0e6e1;color:#607568}
