:root{--ink:#17231d;--muted:#65726a;--line:#dce3dd;--paper:#f5f7f2;--surface:#ffffff;--forest:#123b2a;--forest-bright:#1d6949;--lime:#c8f16d;--fresh:#157347;--stale:#a66b00;--offline:#a33a34;--shadow:0 18px 50px rgb(18 59 42/9%);color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--paper);color:var(--ink)}*{box-sizing:border-box}body,html{min-height:100%;margin:0}body{background:radial-gradient(circle at 82% 0,rgb(200 241 109/18%),transparent 24rem),var(--paper)}button,input,select{color:inherit;font:inherit}button,select{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgb(29 105 73/30%);outline-offset:2px}.app-shell{min-height:100vh}.drivers-workspace,.workspace-nav{width:min(1200px,calc(100% - 48px));margin:24px auto}.driver-actions,.workspace-nav{display:flex;flex-wrap:wrap;gap:12px}.driver-actions button:not(.primary-button),.workspace-nav button{border:1px solid var(--line);border-radius:8px;padding:10px 14px;background:white}.workspace-nav button[aria-pressed=true]{background:var(--forest);color:white}.driver-list{padding:0;list-style:none}.driver-code,.driver-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;padding:20px;border:1px solid var(--line);border-radius:12px;background:white}.driver-list p{margin:6px 0;color:var(--muted)}.driver-id-field{display:grid;max-width:320px;margin-top:12px;color:var(--muted);font-size:12px;font-weight:700;gap:6px}.driver-access-settings input:not([type=checkbox]),.driver-id-field input{width:100%;min-height:40px;padding:9px 11px;border:1px solid #cdd7cf;border-radius:8px;background:white}.driver-code{display:block}.driver-code strong{display:block;margin:12px 0;font-size:24px;letter-spacing:.1em}.driver-access-workspace{width:min(1120px,calc(100% - 48px));margin:30px auto 56px}.driver-access-heading{margin-bottom:22px}.driver-access-heading h1,.driver-access-section__heading h2{margin:0;font-family:Georgia,Times New Roman,serif;font-weight:600;letter-spacing:-.035em}.driver-access-heading h1{font-size:clamp(32px,4vw,44px)}.driver-access-section{margin-top:22px;padding:24px;border:1px solid var(--line);border-radius:16px;background:rgb(255 255 255/94%);box-shadow:0 7px 24px rgb(18 59 42/5%)}.driver-access-section__heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}.driver-access-section__heading h2{font-size:25px}.driver-access-list{display:grid;margin:0;padding:0;gap:12px;list-style:none}.driver-access-card{display:flex;align-items:flex-start;justify-content:space-between;padding:18px;border:1px solid var(--line);border-radius:12px;gap:18px}.driver-access-card__identity>strong{font-size:17px}.driver-access-card__identity p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.driver-access-block{max-width:680px;padding:10px 12px;border-left:3px solid var(--stale);border-radius:4px;background:#fff9e9;color:#74510d!important}.driver-access-card .driver-actions{flex-shrink:0}.driver-access-settings{display:grid;max-width:600px;gap:16px}.driver-access-settings>label:first-child{display:grid;color:#35423a;font-size:12px;font-weight:750;gap:7px}.driver-access-checkbox{display:flex;align-items:center;color:#35423a;font-size:13px;gap:9px}.driver-access-checkbox input{width:17px;height:17px;accent-color:var(--forest-bright)}.driver-access-identifiers{display:grid;margin:0 0 20px;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.driver-access-identifiers>div{padding:13px 15px;border:1px solid var(--line);border-radius:9px;background:#f9faf8}.driver-access-identifiers dt{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.driver-access-identifiers dd{margin:5px 0 0;overflow-wrap:anywhere;font-weight:700}.driver-access-notice{padding:10px 12px;border:1px solid #b9dcc5;border-radius:8px;background:#edf8f1;color:#15583b;font-size:13px}.app-header{position:sticky;z-index:20;top:0;display:flex;min-height:76px;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid rgb(220 227 221/90%);background:rgb(245 247 242/90%);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brand{display:inline-flex;align-items:center;color:var(--ink);gap:12px;text-decoration:none}.brand-mark{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;background:var(--forest);color:var(--lime);font-family:Georgia,serif;font-size:24px;font-weight:700;transform:rotate(-4deg)}.brand>span:last-child{display:flex;flex-direction:column}.brand strong{font-size:16px;letter-spacing:-.02em}.brand small{color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.header-actions,.header-context{display:flex;align-items:center;gap:12px}.user-context{color:var(--muted);font-size:13px;font-weight:600}.org-chip{max-width:220px;overflow:hidden;padding:8px 12px;text-overflow:ellipsis;white-space:nowrap}.org-chip,.org-select{border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--forest);font-size:12px;font-weight:700}.org-select{max-width:260px;padding:8px 28px 8px 12px}.global-notice{width:min(1536px,calc(100% - 64px));margin:18px auto 0}.logout-button,.text-button{border:0;background:transparent;color:var(--forest-bright);font-size:13px;font-weight:750}.tower-main{width:min(1600px,100%);margin:0 auto;padding:28px 32px 48px}.tower-main--centered{display:grid;min-height:calc(100vh - 76px);place-items:center}.summary-strip{display:grid;overflow:hidden;margin-bottom:24px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);grid-template-columns:repeat(5,1fr)}.summary-metric{position:relative;display:flex;min-height:96px;align-items:flex-end;justify-content:space-between;padding:22px 24px;border-right:1px solid var(--line)}.summary-metric:last-child{border-right:0}.summary-metric:after{position:absolute;top:0;right:24px;left:24px;height:3px;border-radius:0 0 4px 4px;background:var(--forest);content:"";opacity:.16}.summary-metric--fresh:after{background:var(--fresh);opacity:.7}.summary-metric--stale:after{background:var(--stale);opacity:.7}.summary-metric--offline:after{background:var(--offline);opacity:.7}.summary-metric span{color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.summary-metric strong{font-size:32px;letter-spacing:-.05em;line-height:1}.notice{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding:12px 16px;border:1px solid;border-radius:12px;font-size:13px;gap:16px}.notice--error{border-color:#edc8c4;background:#fff5f3;color:#762a24}.notice--offline{border-color:#ead4a3;background:#fff9e9;color:#74510d}.tower-toolbar{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:16px}.section-kicker{display:block;margin-bottom:5px;color:var(--forest-bright);font-size:10px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.auth-card h1,.loading-copy h2,.state-panel h2,.tower-toolbar h2{margin:0;font-family:Georgia,Times New Roman,serif;font-weight:600;letter-spacing:-.035em}.tower-toolbar h2{font-size:30px}.refresh-status{display:flex;align-items:center;color:var(--muted);font-size:12px;font-weight:650;gap:8px}.status-dot{width:8px;height:8px;border-radius:50%;background:#8d9891}.status-dot--active{background:var(--fresh);box-shadow:0 0 0 5px rgb(21 115 71/12%)}.filter-row{display:flex;overflow-x:auto;margin-bottom:16px;padding-bottom:2px;gap:8px}.filter-button{min-width:max-content;padding:8px 13px;border:1px solid var(--line);border-radius:999px;background:rgb(255 255 255/75%);color:var(--muted);font-size:12px;font-weight:750}.filter-button[aria-pressed=true]{border-color:var(--forest);background:var(--forest);color:white}.fleet-layout{display:grid;min-height:640px;gap:16px;grid-template-columns:minmax(280px,365px) minmax(0,1fr)}.fleet-list{display:flex;max-height:720px;overflow-y:auto;flex-direction:column;padding-right:5px;gap:10px;scrollbar-color:#bcc8bf transparent;scrollbar-width:thin}.vehicle-card{width:100%;padding:18px;border:1px solid var(--line);border-radius:16px;background:rgb(255 255 255/92%);box-shadow:0 5px 20px rgb(18 59 42/4%);text-align:left;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.vehicle-card:hover{border-color:#91aa9b;transform:translateY(-1px)}.vehicle-card--selected{border-color:var(--forest-bright);box-shadow:0 0 0 2px rgb(29 105 73/12%),0 10px 28px rgb(18 59 42/12%)}.vehicle-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.vehicle-card h3{margin:3px 0 0;font-size:16px;letter-spacing:-.02em}.vehicle-id{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.1em}.freshness{flex-shrink:0;padding:5px 7px;border-radius:6px;font-size:9px;font-weight:900;letter-spacing:.08em}.freshness--fresh{background:#e7f5ed;color:var(--fresh)}.freshness--stale{background:#fff1d2;color:#8b5a00}.freshness--offline,.freshness--unknown{background:#fbe9e7;color:#87332e}.vehicle-identifiers{display:flex;flex-wrap:wrap;margin:9px 0 14px;color:var(--muted);font-size:11px;gap:7px}.vehicle-identifiers span{padding:3px 7px;border:1px solid #e1e7e1;border-radius:5px;background:#f9faf8}.vehicle-details{display:grid;margin:0;gap:11px}.vehicle-details>div{display:grid;align-items:start;gap:10px;grid-template-columns:74px 1fr}.vehicle-details dt{color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.vehicle-details dd{margin:0;font-size:11px;font-weight:650}.vehicle-details dd small{display:block;margin-top:2px;color:var(--muted);font-size:10px;font-weight:500;text-transform:capitalize}.no-report{margin:16px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.map-panel{position:relative;min-height:640px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#e7ede6;box-shadow:var(--shadow)}.map-canvas{position:absolute;inset:0}.map-empty{position:absolute;z-index:2;top:50%;left:50%;display:flex;width:min(340px,calc(100% - 48px));padding:22px;border:1px solid rgb(255 255 255/80%);border-radius:14px;background:rgb(255 255 255/92%);box-shadow:var(--shadow);flex-direction:column;transform:translate(-50%,-50%)}.map-empty span{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}.map-unavailable{position:absolute;inset:24px;display:flex;align-items:center;justify-content:center;padding:24px;border:1px dashed var(--line);border-radius:14px;background:#f4f6f3;color:var(--ink);flex-direction:column;text-align:center}.map-unavailable span{max-width:380px;margin-top:8px;color:var(--muted);font-size:13px;line-height:1.5}.map-marker{width:40px;height:40px}.map-marker--popup-open{z-index:1}.map-marker__pin{position:relative;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer}.map-marker__pin:before{position:absolute;top:4px;left:7px;width:26px;height:26px;border:2px solid white;border-radius:50% 50% 50% 0;background:var(--forest);box-shadow:0 5px 18px rgb(18 59 42/35%);content:"";transform:rotate(-45deg)}.map-marker__pin:after{position:absolute;top:13px;left:16px;width:8px;height:8px;border-radius:50%;background:white;content:""}.map-marker__pin:focus-visible{outline:3px solid var(--forest);outline-offset:2px;border-radius:8px}.map-marker--selected .map-marker__pin:before{background:#c4ec6b;box-shadow:0 0 0 4px rgb(18 59 42/18%),0 6px 22px rgb(18 59 42/35%)}.map-marker--selected .map-marker__pin:after{background:var(--forest)}.map-marker__popup{position:absolute;bottom:calc(100% + 6px);left:50%;width:max-content;max-width:220px;padding:7px 10px;border-radius:8px;background:white;box-shadow:0 5px 18px rgb(18 59 42/25%);color:var(--forest);font-size:12px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;pointer-events:none;transform:translateX(-50%)}.map-marker__popup[hidden]{display:none}.auth-card,.loading-panel,.state-panel{border:1px solid var(--line);border-radius:24px;background:rgb(255 255 255/94%);box-shadow:var(--shadow)}.state-panel{width:min(520px,100%);padding:48px;text-align:center}.state-panel h2{font-size:32px}.state-panel p{margin:13px 0 24px;color:var(--muted);line-height:1.6}.loading-panel{display:grid;min-height:560px;padding:48px;align-items:center;gap:48px;grid-template-columns:.85fr 1.15fr}.loading-copy h2{font-size:36px}.loading-copy p{color:var(--muted)}.loading-grid{display:grid;height:360px;gap:12px;grid-template-columns:repeat(2,1fr)}.loading-grid span{border-radius:16px;background:linear-gradient(100deg,#edf1ec 20%,#f8faf7 50%,#edf1ec 80%);background-size:220% 100%;animation:shimmer 1.8s linear infinite}.auth-screen{display:grid;min-height:calc(100vh - 76px);align-items:center;justify-content:center;padding:64px 24px;gap:24px;grid-template-columns:minmax(0,500px) minmax(240px,330px)}.auth-card{padding:44px}.auth-card h1{max-width:440px;margin-top:8px;font-size:clamp(36px,5vw,52px);line-height:.98}.auth-card>p{margin:20px 0 28px;color:var(--muted);line-height:1.65}.auth-form{display:grid;gap:17px}.auth-form label{display:grid;color:#35423a;font-size:12px;font-weight:750;gap:7px}.auth-form input,.auth-form select{width:100%;padding:12px 13px;border:1px solid #cdd7cf;border-radius:9px;background:white}.primary-button{min-height:44px;padding:11px 18px;border:1px solid var(--forest);border-radius:10px;background:var(--forest);color:white;font-weight:750}.primary-button:hover:not(:disabled){border-color:var(--forest-bright);background:var(--forest-bright)}.form-error{padding:10px 12px;border-radius:8px;background:#fff0ee;color:#852f29;font-size:12px;line-height:1.45}.auth-note{align-self:end;margin-bottom:34px;padding:24px;border-radius:0 20px 20px 0;background:var(--forest);color:white}.auth-note strong{color:var(--lime);font-size:13px;letter-spacing:.02em}.auth-note p{margin:10px 0 0;color:rgb(255 255 255/70%);font-size:12px;line-height:1.6}.configuration-checklist{display:grid;margin-top:28px;padding:18px;border-radius:12px;background:#f3f6f2;color:var(--muted);font-size:11px;gap:6px 12px;grid-template-columns:1fr auto}.configuration-checklist code{color:var(--forest);font-size:11px}@keyframes shimmer{to{background-position:-220% 0}}@media (max-width:980px){.summary-strip{grid-template-columns:repeat(3,1fr)}.summary-metric{border-bottom:1px solid var(--line)}.fleet-layout,.loading-panel{grid-template-columns:1fr}.fleet-list{max-height:none;padding-right:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.map-panel{min-height:520px}.auth-screen{grid-template-columns:minmax(0,560px)}.auth-note{margin:0;border-radius:20px}}@media (max-width:640px){.app-header{padding:0 18px}.org-chip,.org-select,.user-context{display:none}.driver-access-workspace,.global-notice{width:calc(100% - 32px)}.driver-access-card{flex-direction:column}.driver-access-identifiers{grid-template-columns:1fr}.tower-main{padding:20px 16px 36px}.summary-strip{grid-template-columns:repeat(2,1fr)}.summary-metric{min-height:78px;padding:18px}.summary-metric strong{font-size:26px}.fleet-list{grid-template-columns:1fr}.fleet-layout{min-height:0}.map-panel{min-height:430px}.notice,.tower-toolbar{align-items:flex-start;flex-direction:column}.auth-card,.state-panel{padding:30px 24px}.auth-screen{padding:36px 18px}.loading-panel{min-height:430px;padding:28px}.loading-grid{height:180px}.configuration-checklist{grid-template-columns:1fr}}.workflow-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1rem;margin:1rem 0}.workflow-card{background:#fff;border:1px solid #dce4e9;border-radius:14px;padding:1.25rem;min-width:0}.workflow-card h2{margin-top:0;font-size:1.2rem}.workflow-card label{display:grid;gap:.4rem;margin:.7rem 0}.workflow-card input,.workflow-card select,.workflow-toolbar input{padding:.65rem;border:1px solid #b9c6ce;border-radius:7px;width:100%;color:#173042;background:white}.workflow-card button,.workflow-toolbar button{padding:.6rem .8rem;margin:.25rem;border-radius:7px;cursor:pointer}.workflow-card button:disabled,.workflow-toolbar button:disabled{opacity:.5;cursor:not-allowed}.workflow-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:.6rem;margin:1rem 0}.workflow-toolbar label{display:grid;gap:.4rem;flex:1 1}.stop-list{padding-left:1.3rem}.stop-list li{margin:.8rem 0}.muted,.stop-list span{color:#536674;font-size:.9rem}.workflow-card fieldset{border:1px solid #dce4e9;border-radius:8px}.history-panel{margin-top:1rem}.drivers-workspace,.workspace-guide,.workspace-nav{width:min(1536px,calc(100% - 64px))}.workspace-nav{margin-bottom:12px}.workspace-guide{margin:0 auto 12px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:14px;line-height:1.6}.workspace-guide summary{cursor:pointer;color:var(--forest);font-weight:700}.workspace-guide li{margin:8px 0}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.workspace-heading h1{margin:0;font-size:32px;letter-spacing:-.035em}.workflow-card p,.workspace-heading p{color:var(--muted);line-height:1.6}.workflow-card button:not(.primary-button),.workflow-toolbar button,.workspace-heading button{border:1px solid var(--line);background:var(--surface);color:var(--forest);font-weight:650}.driver-actions button,.workflow-card button,.workflow-toolbar button,.workspace-heading button,.workspace-nav button{min-height:44px}.workspace-heading button{padding:10px 16px;border-radius:8px}.workflow-card{border-color:var(--line)}.drivers-workspace>label,.workflow-card>label{font-size:14px;font-weight:650}.drivers-workspace>label{display:grid;max-width:320px;gap:8px}.drivers-workspace>label select{min-height:44px;border:1px solid var(--line);border-radius:8px;background:white;padding:10px}.workflow-card input,.workflow-card select,.workflow-toolbar input{min-height:44px;border-color:#b7c6bb;color:var(--ink)}.workflow-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))}.workflow-toolbar label{min-width:min(100%,220px)}.workflow-card fieldset{min-width:0;padding:16px;border-color:var(--line)}.workflow-card legend{color:var(--forest);font-weight:700;padding:0 6px}.workflow-card>h3{margin-bottom:0}.status-badge{display:inline-block;padding:5px 10px;border-radius:999px;background:#eef1ed;font-size:13px;font-weight:750;text-transform:capitalize}.workflow-card .status-badge--active,.workflow-card .status-badge--completed{background:#e7f5ed;color:#15583b}.workflow-card .status-badge--planned{background:#fff1d2;color:#79561b}.workflow-card .status-badge--cancelled{background:#fbe9e7;color:#87332e}.history-link{display:inline-block;padding:14px 0;color:var(--forest-bright);font-weight:700}#selected-vehicle-history{scroll-margin-top:100px}.vehicle-details dt{font-size:11px}.vehicle-details dd{font-size:13px}.vehicle-details dd small{font-size:12px}.freshness{font-size:11px;letter-spacing:.02em}@media (max-width:720px){.drivers-workspace,.workspace-guide,.workspace-nav{width:calc(100% - 32px)}.header-actions,.header-context{flex-wrap:wrap;justify-content:flex-end}.app-header{gap:16px;padding:12px 16px}.org-chip,.org-select{max-width:180px}.workspace-heading{align-items:flex-start}.fleet-layout .map-panel{grid-row:1}.fleet-list{max-height:440px}.workflow-toolbar{align-items:stretch}}@media (prefers-reduced-motion:reduce){.loading-grid span{animation:none}.vehicle-card{transition:none}}