[hidden]{display:none!important}header{height:auto;min-height:86px;flex-wrap:wrap;padding-block:18px}nav{margin-left:auto;display:flex;gap:16px;align-items:center}nav a{color:#d7e7ad}a{color:#315f44}.button{display:inline-block;border:1px solid #d4ddd5;border-radius:6px;padding:11px 14px;text-decoration:none;cursor:pointer}.ops-shell{max-width:1600px;margin:auto;padding:32px}.panel,.route-card{background:#fff;border:1px solid #dce3dc;border-radius:10px;padding:22px;margin-bottom:16px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.page-heading label{font-size:12px}.page-heading input{margin-top:5px}.wrap{flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.metric{background:#e8eee3;padding:18px;border-radius:8px}.metric strong{display:block;font-size:30px}.metric span{color:#5e7163}.controls{margin:16px 0}.ops-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;margin-top:24px}.route-card h3{font-size:19px;margin:0 0 6px}.stop{display:flex;align-items:center;gap:8px;border-top:1px solid #e5eae3;padding:12px 0}.stop>button:first-child{flex:1;text-align:left}.stop small{display:block;color:#738175;margin-top:5px}.badge{font-size:11px;padding:4px 8px;border-radius:20px;background:#eef1e9;white-space:nowrap}.badge.completed{background:#d7eacb}.badge.blocked{background:#f7d7c9}.badge.in_progress{background:#d4e7ff}#shiftMap{height:360px;margin:16px 0;border-radius:8px}#jobMap{height:300px;margin:16px 0}#jobDialog{max-width:800px}.service-choices{display:flex;gap:12px;flex-wrap:wrap}.service-choices label,#propertyChoices label{display:flex;gap:9px;align-items:center}.service-choices input,#propertyChoices input{width:auto;margin:0}.service-choices label{margin:8px 0}#propertyChoices{max-height:230px;overflow:auto;padding:8px;background:#f4f6f2;border-radius:6px}#draftOrder li{padding:7px}#draftOrder button{min-height:32px;padding:4px 9px;margin-left:6px}#photos{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}#photos img{width:130px;height:100px;object-fit:cover;border-radius:6px}#activity p{padding:10px 0;border-top:1px solid #eee;font-size:12px}.map-pin{border-radius:50%;background:#173b2e;color:white;text-align:center;line-height:28px;border:2px solid white;font-weight:bold;box-shadow:0 2px 5px #0004}.crew-pin{background:#3164b7}#notice{background:#d7e7ad;border-radius:6px;padding:15px;margin-bottom:16px}#welcome{max-width:780px;margin:50px auto;padding:40px}#welcome h1{font-size:36px;margin:16px 0}#welcome button{margin:20px 0}#connection.error,#jobStatus.error,#routeError{color:#a33b2e}#jobFeatures p{border-left:4px solid #aac28d;padding:8px 12px;margin:7px 0}#members p,#invitations p{padding:9px 0;border-bottom:1px solid #eee}#jobTiming{font-size:12px;color:#647568}.route-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.route-actions select{max-width:180px}#photo{padding:4px;max-width:280px}@media(max-width:900px){.ops-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-direction:column}.metrics{grid-template-columns:repeat(2,1fr)}.ops-shell{padding:18px}.route-card,.panel{padding:16px}.stop{flex-wrap:wrap}#welcome{padding:22px;margin:20px auto}header nav{margin-left:0;width:100%;justify-content:space-between}.stop>button:first-child{min-width:180px}}

.customer-app-alert{background:#fff0cf;color:#70260d;border:3px solid #ad390e;border-radius:8px;padding:18px;margin:14px 0}.customer-app-alert>strong{font-size:21px;letter-spacing:.4px;display:block}.customer-app-alert h3{font-size:19px;margin:10px 0}.customer-app-alert p{white-space:pre-wrap;margin:10px 0}.customer-app-alert .button{background:#8c2d0b;color:white;border:0;font-weight:700;display:block;text-align:center}.customer-app-check{border:2px solid #b45309;padding:15px;background:#fff8e8;border-radius:8px;margin:15px 0}.customer-app-check .check-label{font-size:15px;line-height:1.5}.customer-app-check>strong{font-size:17px}#customerAppReceipt{font-weight:650;color:#315f44}

.fleet-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin-bottom:24px}.fleet-card h3{margin-top:0}.fleet-card progress{width:100%;accent-color:#376b4d}.fleet-card.attention{border:2px solid #b24625;background:#fff6ec}.fleet-status{font-size:1.1rem}.visit-clock{padding:12px 18px;background:#eef4ef;border-radius:12px;margin-top:16px}.visit-clock #activeClock{font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums}#visitWeather p{overflow-wrap:anywhere}#correctionSection{border-top:1px solid #ccc;margin-top:20px}#fleetSection .error{color:#8c3018}

.visit-actions{position:sticky;top:0;z-index:1000;background:#fff;padding:12px 0;border-bottom:1px solid #dde5dc}.visit-actions button{flex:1;min-height:48px}

.company-logo{width:220px;height:auto;background:white;border-radius:8px;padding:8px}.brand{gap:16px}.wide-dialog{width:min(1200px,94vw);max-width:1200px}#overviewMap{height:65vh;min-height:360px;border-radius:14px}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.inline-check{display:flex;align-items:center;gap:8px}.inline-check input,.choice-grid input[type=checkbox],.estimate-list input[type=checkbox]{width:auto}.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.estimate-list{max-height:350px;overflow:auto;margin:15px 0}.estimate-row{display:grid;grid-template-columns:30px 1fr 110px;align-items:center;gap:12px;border-top:1px solid #ddd;padding:10px}.estimate-row input{margin:0}.planning-disclaimer{background:#fff3d9;border-left:4px solid #a57722;padding:15px;line-height:1.5}.photo-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin:20px 0}.photo-feed img{width:100%;height:140px;object-fit:cover;border-radius:12px}.photo-feed button{text-align:left;background:white}.photo-feed small{display:block}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}td,th{text-align:left;border-bottom:1px solid #ddd;padding:12px;vertical-align:top}#generatorPreview article{background:#f3f6f0;border-radius:12px;padding:18px;margin:14px 0}.over-capacity{border:2px solid #a33b2e}.map-legend-item{padding:6px 12px;border-left:5px solid;border-radius:4px;background:#f3f6f0}.review-note{font-size:12px;color:#806320}@media(max-width:700px){.form-grid{grid-template-columns:1fr}.company-logo{width:170px}.estimate-row{grid-template-columns:25px 1fr 80px}}

.route-marker{background:transparent;border:0}.route-symbol{display:flex;width:34px;height:34px;align-items:center;justify-content:center;border:3px solid white;border-radius:50%;color:white;font-weight:800;box-shadow:0 2px 6px #0006;box-sizing:border-box}.truck-symbol{border-radius:10px}.truck-symbol svg{width:24px;height:24px;fill:white;stroke:white;stroke-width:1}.stale-symbol{border:3px dashed #f59e0b;opacity:.65}

#savedRoutesMap{height:440px;border-radius:16px;margin-top:12px}.saved-route-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.saved-route-card{padding:16px;background:#f3f6f3;border-radius:12px;border-left:7px solid}.saved-route-card button{margin:4px}#savedStopOrder li{padding:8px}#savedStopOrder li span{display:inline-block;min-width:180px}#savedStopOrder button{margin-left:5px}#savedPropertyChoices{max-height:260px;overflow:auto}#savedRouteEditor{border-top:1px solid #ccc;margin-top:20px;padding-top:20px}

/* Storm overview and photo fleet */
.storm-overview{background:linear-gradient(120deg,#123d32,#245b4b);color:#fff;padding:24px;border-radius:20px;margin:12px 0 24px;box-shadow:0 10px 30px #113e3015}.storm-overview h2{font-size:clamp(22px,3vw,34px);margin:6px 0 12px}.storm-overview .eyebrow,.storm-overview .muted{color:#cce1d8}.storm-overview a{background:#fff;color:#173e32}.storm-overview .row>div{flex:1}.storm-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:18px 0}.storm-stat{display:flex;flex-direction:column;gap:6px;padding:16px;background:#f0f5f2;border:1px solid #dce7df;border-radius:12px;color:#173e32}.storm-stat strong{font-size:30px;line-height:1.1}.storm-stat span{font-size:13px}.storm-overview .storm-stat{background:#ffffff12;border-color:#ffffff25;color:white}.storm-alert{border-left:4px solid #e5b352;background:#fff2d9;color:#6a3e00;padding:10px 14px;border-radius:6px}.asset-card{border:1px solid #dbe5de;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 4px 20px #173e3208}.asset-photo,.asset-placeholder{width:100%;height:180px;object-fit:cover;display:block}.asset-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#e5ede7,#c7d9cd);color:#466453;letter-spacing:3px;font-weight:800}.asset-body{padding:18px}.asset-body h3{font-size:24px;margin:12px 0 8px}.asset-badge{display:inline-block;background:#e5f4e9;color:#205a33;font-size:12px;font-weight:700;padding:6px 10px;border-radius:99px}.asset-badge.danger{background:#ffede6;color:#a13f24}.fleet-card{border-radius:16px;box-shadow:0 4px 20px #173e3208}.fleet-card progress{height:12px;accent-color:#2b7653}#billingDialog td{vertical-align:top}#billingDialog details{margin:18px 0}#dispatchChoiceDialog>button{display:block;width:100%;margin:12px 0}.page-heading{align-items:flex-start}.page-heading>.row{max-width:760px}
/* Office navigation: live operations first, planning in one place. */
.dispatch-layout header{min-height:64px;padding:10px 24px}.dispatch-layout .company-logo{width:155px;padding:5px}.dispatch-layout .ops-shell{max-width:none;padding:22px 26px 30px 250px}.dispatch-rail{position:fixed;left:0;top:91px;bottom:0;width:220px;padding:24px 16px;border-right:1px solid #d8e1d9;background:#edf2ed;z-index:1001}.dispatch-rail nav{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:24px 0}.dispatch-rail button{text-align:left;border:0;background:transparent;padding:14px 16px;font-weight:650}.dispatch-rail button[aria-current=page]{background:#173f31;color:#fff;border-radius:9px}.dispatch-rail .muted{font-size:12px;line-height:1.6}.dispatch-layout .page-heading{margin-bottom:14px;align-items:center}.dispatch-layout .page-heading h1{font-size:28px;margin:5px 0}.dispatch-layout .page-heading>.row{max-width:none}.dispatch-layout .storm-overview{padding:14px 20px;margin:0 0 18px;border-radius:14px}.dispatch-layout .storm-overview h2{font-size:22px;margin:4px 0}.dispatch-layout .storm-overview .row>a,.dispatch-layout .storm-overview>.muted,.dispatch-layout .storm-overview .eyebrow{display:none}.dispatch-layout .storm-stats{margin:12px 0 0;gap:8px}.dispatch-layout .storm-stat{padding:10px 12px}.dispatch-layout .storm-stat strong{font-size:23px}.dispatch-layout .storm-alert{margin:8px 0 0;padding:6px 10px;font-size:13px}.live-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:18px;align-items:start}.live-map{min-width:0;padding:18px}.live-map h2,#fleetSection h2{margin:0 0 10px;font-size:21px}.live-map>p,#fleetSection>p{font-size:12px;line-height:1.5;margin:8px 0;color:#647568}.live-map #shiftMap{height:540px;min-height:420px;margin-bottom:0}.live-map select{max-width:260px}.dispatch-layout #fleet{display:flex;flex-direction:column;max-height:650px;overflow:auto;gap:10px;margin:0}.dispatch-layout .fleet-card{padding:16px;margin:0}.dispatch-layout .fleet-card p{font-size:13px;margin:8px 0}.dispatch-layout .fleet-card h3{font-size:19px}.dispatch-layout .fleet-card button{font-size:12px;padding:8px}.radar-compact{background:#fff;border:1px solid #dce3dc;border-radius:12px;margin:16px 0;padding:14px 18px}.radar-compact summary{cursor:pointer;font-weight:700}.radar-compact #radarPanel{border:0;margin:12px 0 0;padding:0;max-width:900px}.radar-compact h2{font-size:18px}.radar-compact p{font-size:12px}.desk-page>h2{font-size:32px;margin:10px 0 20px}.planning-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.planning-steps article{padding:24px;border:1px solid #dce3dc;background:white;border-radius:16px}.step-number{display:inline-grid;place-items:center;background:#dfeacb;border-radius:50%;width:32px;height:32px;font-weight:bold}.planning-steps h3{font-size:20px;margin:16px 0 8px}.planning-steps p{color:#647568;line-height:1.5}.desk-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 28px}.desk-actions button,.desk-actions a{padding:18px;background:white;font-weight:650}.route-builder-workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);gap:20px;align-items:start;margin-top:16px}.route-builder-map{position:sticky;top:0}#savedRoutesMap{height:520px}#builderEditorSlot #savedRouteEditor{border:0;margin:0;padding:0}#savedPropertyChoices{max-height:180px;display:block}#savedPropertyChoices label{margin:4px 0;padding:8px;border-radius:8px;background:#f2f5f0}#savedStopOrder{padding-left:24px}#savedStopOrder li{border-bottom:1px solid #e1e8df}#savedStopOrder li span{min-width:0;display:block;padding-bottom:8px}#savedRouteForm .form-grid{grid-template-columns:1fr 90px}.planning-banner{padding:12px 16px;background:#e6efdf;border-radius:10px;color:#315c3e;font-size:13px;letter-spacing:1px}.dispatch-tools summary,.desk-page details>summary{cursor:pointer;font-weight:650}#recentPhotosSection .photo-feed img{height:100px}#recentPhotosSection h2{font-size:20px}
@media(max-width:1100px){.live-workspace{grid-template-columns:1fr}.dispatch-layout #fleet{max-height:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}.live-map #shiftMap{height:440px}.planning-steps{grid-template-columns:1fr}.route-builder-workspace{grid-template-columns:1fr}.route-builder-map{position:static}#savedRoutesMap{height:360px}}
@media(max-width:750px){.dispatch-layout .ops-shell{padding:16px}.dispatch-rail{position:static;width:auto;padding:0;border:0;background:none}.dispatch-rail>.eyebrow,.dispatch-rail>.muted{display:none}.dispatch-rail nav{flex-direction:row;overflow:auto;margin:0 0 18px;gap:4px}.dispatch-rail button{white-space:nowrap;font-size:12px;padding:12px}.dispatch-layout .page-heading{align-items:stretch}.dispatch-layout .storm-stats{grid-template-columns:repeat(2,1fr)}.dispatch-layout header nav{width:auto;margin-left:auto}.dispatch-layout header nav>a{display:none}}

.activity-feed{display:grid;gap:10px;margin-top:16px}.activity-card{display:flex;align-items:flex-start;gap:14px;padding:15px;background:#f5f7f4;border-radius:12px;border:1px solid #dfe7df}.activity-icon{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;background:#e2e9e4;border-radius:50%;color:#224d3c;font-weight:800}.activity-card.complete .activity-icon{background:#d9ecd7}.activity-card.attention .activity-icon{background:#ffe4b9;color:#844300}.activity-body{display:grid;gap:5px;flex:1}.activity-body small,.activity-card time{color:#57665e;font-size:12px}.activity-body p{margin:0}.activity-property{justify-self:start;padding:0;border:0;background:transparent;color:#245f49;text-align:left;font-weight:600}.activity-card time{white-space:nowrap;padding-top:3px}.service-charges{margin:24px 0;padding:20px;border:1px solid #cad9cd;border-radius:14px;background:#f6f8f4}.charge-card{border-top:1px solid #ccd7ce;padding:14px 0}.service-charges input[type=checkbox]{width:auto}.service-charges form{margin-bottom:20px}.weather-cards{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.weather-hour{flex:1 0 130px;padding:14px;background:#edf3ed;border-radius:10px}.weather-alert{width:100%;padding:16px;background:#fff2d8;border-left:4px solid #ab6400}.weather-alert p{white-space:pre-wrap}.storm-weather{margin-top:18px}
.live-shortcuts{margin:0 0 18px}.property-gallery,.camera-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px;margin:18px 0}.gallery-photo,.camera-card{border:1px solid #d7e1d8;border-radius:16px;padding:16px;background:#f5f8f3}.gallery-photo img{width:100%;height:220px;object-fit:cover;border-radius:10px}.gallery-photo strong{display:block;margin-top:10px}.camera-card iframe{width:100%;aspect-ratio:16/9;border:0;margin-top:14px;border-radius:12px}.camera-card>a{display:inline-block;margin:10px}.storm-cameras{margin-top:18px}.asset-card{border-radius:20px;overflow:hidden;box-shadow:0 5px 18px #142b2010}.asset-photo,.asset-placeholder{height:200px;object-fit:cover}.asset-placeholder{background:linear-gradient(140deg,#183b30,#567564);color:#dce9d4;font-size:25px;letter-spacing:5px}.asset-body{display:grid;gap:8px}.asset-kind{font-size:10px;letter-spacing:2px;color:#617568}.asset-body h3{font-size:28px;margin:3px 0}.asset-body p{margin:3px 0}.fleet-card{padding:17px;border-radius:16px}.fleet-card h3{margin:0 0 5px;font-size:19px}.fleet-card p{margin:7px 0;font-size:13px}.fleet-card .row{gap:6px;margin-top:12px}.fleet-card button{padding:8px 10px;font-size:12px}.fleet-card progress{height:8px}.route-crew-label{font-weight:600;color:#64746b}#fleet{max-height:650px}.live-map>p{font-size:12px;line-height:1.45}#themeToggle{white-space:nowrap}
html[data-theme=dark]{color-scheme:dark}html[data-theme=dark] body{background:#101a17;color:#e3ede6}html[data-theme=dark] .dispatch-rail{background:#13231d;border-color:#2a4035}html[data-theme=dark] .panel,html[data-theme=dark] .route-card,html[data-theme=dark] dialog,html[data-theme=dark] .saved-route-card,html[data-theme=dark] .asset-card,html[data-theme=dark] .planning-steps article{background:#1a2922;color:#e3ede6;border-color:#35493c}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea,html[data-theme=dark] button,html[data-theme=dark] .button{background:#24382d;color:#edf4ee;border-color:#4b6254}html[data-theme=dark] button.primary,html[data-theme=dark] .primary{background:#c3db8e;color:#152218}html[data-theme=dark] .dispatch-rail button[aria-current=page]{background:#b9d58b;color:#152218}html[data-theme=dark] a{color:#b9dbab}html[data-theme=dark] .muted,html[data-theme=dark] small,html[data-theme=dark] .activity-card time,html[data-theme=dark] .route-crew-label,html[data-theme=dark] .eyebrow{color:#a7bcae}html[data-theme=dark] .activity-card,html[data-theme=dark] .service-charges,html[data-theme=dark] .gallery-photo,html[data-theme=dark] .camera-card,html[data-theme=dark] .weather-hour,html[data-theme=dark] .metric,html[data-theme=dark] .radar-compact{background:#22372b;border-color:#3c5143;color:#e4eee5}html[data-theme=dark] th,html[data-theme=dark] td{border-color:#46594b}html[data-theme=dark] .error{color:#ffbdab}html[data-theme=dark] .weather-alert{background:#493920;color:#ffe8bc}html[data-theme=dark] .leaflet-popup-content-wrapper,html[data-theme=dark] .leaflet-popup-tip,html[data-theme=dark] .leaflet-tooltip{background:#1e3026;color:#edf3ee}html[data-theme=dark] .metric span{color:#b6c9bb}html[data-theme=dark] .asset-badge{background:#354a35;color:#d5edc7}html[data-theme=dark] .customer-app-alert{background:#55321e;color:#ffe9cc}
/* Command center: neutral surfaces, consistent light/dark contrast. */
:root{--cc-bg:#f1f5fa;--cc-panel:#fff;--cc-soft:#f5f8fc;--cc-text:#19283f;--cc-muted:#61718a;--cc-line:#dde5ef;--cc-accent:#2463da;--cc-warn:#9b4c05}
html[data-theme=dark]{--cc-bg:#101722;--cc-panel:#192332;--cc-soft:#202e40;--cc-text:#e8eef7;--cc-muted:#b1bed0;--cc-line:#34445b;--cc-accent:#8bb6ff;--cc-warn:#ffcb82;background:var(--cc-bg)}
html,html body{min-height:100%;background:var(--cc-bg);color:var(--cc-text)}
.dispatch-layout header{background:#152133;border-bottom:1px solid #30435b}.dispatch-layout .ops-shell{padding-left:238px}.dispatch-rail,html[data-theme=dark] .dispatch-rail{background:#152133;color:#d9e3f4;border-color:#30435b;width:210px}.dispatch-rail .eyebrow,.dispatch-rail .muted{color:#a9bdd6!important}.dispatch-rail button,html[data-theme=dark] .dispatch-rail button{background:transparent;color:#c6d4e9;border:0}.dispatch-rail button[aria-current=page],html[data-theme=dark] .dispatch-rail button[aria-current=page]{background:#245ec9;color:white}
html .panel,html .route-card,html dialog,html .saved-route-card,html .asset-card,html .planning-steps article,html .radar-compact,html[data-theme=dark] .panel,html[data-theme=dark] .route-card,html[data-theme=dark] dialog,html[data-theme=dark] .saved-route-card,html[data-theme=dark] .asset-card,html[data-theme=dark] .planning-steps article,html[data-theme=dark] .radar-compact{background:var(--cc-panel);color:var(--cc-text);border-color:var(--cc-line);box-shadow:0 4px 18px #06152a08}
html[data-theme=dark] :is(.storm-stat,.visit-clock,.visit-actions,.saved-route-card,.planning-banner,.map-legend-item,#propertyChoices,#savedPropertyChoices label,#generatorPreview article,.activity-card,.service-charges,.gallery-photo,.camera-card,.weather-hour,.metric,.badge){background:var(--cc-soft);color:var(--cc-text);border-color:var(--cc-line)}
html[data-theme=dark] :is(input,select,textarea,button,.button){background:var(--cc-soft);color:var(--cc-text);border-color:var(--cc-line)}
html[data-theme=dark] :is(.primary,button.primary){background:#3877e5;color:white;border-color:#3877e5}
html[data-theme=dark] :is(.muted,small,.eyebrow,.route-crew-label,.live-map>p,#fleetSection>p,.metric span,.activity-card time,.activity-body small,#jobTiming,.asset-kind,.planning-steps p){color:var(--cc-muted)}
html[data-theme=dark] :is(.error,#fleetSection .error,#connection.error,#jobStatus.error,#routeError){color:#ffb7a9}
html[data-theme=dark] :is(.storm-alert,.planning-disclaimer,.weather-alert,.customer-app-check){background:#3b3020;color:#ffdb9f;border-color:#bd9048}
html[data-theme=dark] a{color:#a4c8ff}html[data-theme=dark] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-tooltip){background:var(--cc-panel);color:var(--cc-text)}
html[data-theme=dark] .leaflet-control-zoom a{background:var(--cc-panel);color:var(--cc-text)}
.dispatch-layout .storm-overview,html[data-theme=dark] .storm-overview{background:var(--cc-panel);color:var(--cc-text);border:1px solid var(--cc-line);box-shadow:none;padding:16px 20px}.dispatch-layout .storm-overview .storm-stat{background:var(--cc-soft);color:var(--cc-text);border:1px solid var(--cc-line);border-radius:12px;padding:14px}.dispatch-layout .storm-overview h2{font-size:20px}.storm-stats strong{font-variant-numeric:tabular-nums}.live-shortcuts{margin:0 0 14px;gap:8px}.live-shortcuts button{padding:9px 14px;font-size:12px;background:var(--cc-panel);color:var(--cc-text);border-color:var(--cc-line)}
.live-workspace{grid-template-columns:minmax(240px,.8fr) minmax(360px,1.5fr) minmax(280px,1fr);gap:16px}.next-actions{padding:20px}.next-actions h2{font-size:22px;margin:8px 0}.next-actions>.muted{margin-bottom:16px}.insight-card{border:1px solid var(--cc-line);border-left:3px solid #e0a044;border-radius:12px;background:var(--cc-soft);padding:15px;margin:12px 0;display:grid;gap:8px}.insight-card strong{font-size:14px}.insight-card p{font-size:13px}.insight-card small{font-size:12px;color:var(--cc-muted);line-height:1.55}.insight-card.priority-1{border-left-color:#e26262}.insight-card.priority-3{border-left-color:#5f91df}.insight-card button{font-size:12px;justify-self:start;padding:6px 10px;min-height:32px}.live-map #shiftMap{height:520px;min-height:360px}.live-map>p{max-height:3em;overflow:auto}.dispatch-layout #fleet{max-height:650px}.dispatch-layout #fleetSection>p{margin-bottom:12px}.route-progress-strip{margin-top:16px}.route-progress-strip h2{font-size:20px;margin-bottom:14px}.route-tracks{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.route-track{border:1px solid var(--cc-line);border-top:3px solid var(--route-color);border-radius:10px;padding:14px;display:grid;gap:8px}.route-track small{color:var(--cc-muted)}.route-track progress{width:100%;accent-color:var(--route-color);height:8px}.route-track button{font-size:12px;justify-self:start;min-height:30px;padding:5px 8px}.insights-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;margin-top:18px}.insight-status{color:var(--cc-muted);font-size:12px;margin-top:10px}.insight-row{border-top:1px solid var(--cc-line);padding:16px 0}.insight-row h3{font-size:17px;margin:0 0 7px}.insight-row small{color:var(--cc-muted)}.ai-setup p{margin:12px 0}.empty-insights{padding:18px 0;color:var(--cc-muted)}
@media(max-width:1450px){.live-workspace{grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)}.next-actions{grid-column:1/-1}.next-actions #nextActions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.insight-card{margin:8px 0}.next-actions #nextActions>.muted{grid-column:1/-1}}
@media(max-width:950px){.live-workspace,.insights-grid{grid-template-columns:1fr}.next-actions #nextActions{grid-template-columns:1fr}.dispatch-layout #fleet{max-height:none}.live-map #shiftMap{height:420px}.next-actions{grid-column:auto}}
@media(max-width:750px){.dispatch-layout .ops-shell{padding:16px}.dispatch-rail,html[data-theme=dark] .dispatch-rail{width:auto;background:transparent;border:0}.dispatch-rail button{color:var(--cc-text)}.dispatch-rail nav{flex-wrap:nowrap}.route-tracks{grid-template-columns:1fr 1fr}}
@media(max-width:450px){.route-tracks{grid-template-columns:1fr}}

html[data-theme=dark] body{background:var(--cc-bg);color:var(--cc-text)}
.dispatch-layout .page-heading{margin-bottom:10px}.dispatch-layout .storm-overview{padding:12px 16px}.dispatch-layout .storm-overview .storm-stat{padding:10px 12px}.dispatch-layout #stormAttention{display:none}.dispatch-layout .storm-overview .storm-stats{margin-top:10px}.dispatch-layout .live-map>p{font-size:11px}.dispatch-layout .next-actions{padding:16px}.dispatch-layout .insight-card{padding:12px}

.dispatch-layout header button:hover{background:#2b3c53;color:#fff}.dispatch-layout header #themeToggle{background:#223249;color:#eef4ff;border-color:#52647b}

/* Live operations: Ponderosa colors and compact dispatch cards. */
:root{--cc-bg:#f3f4ef;--cc-soft:#f4f6f1;--cc-text:#20352b;--cc-muted:#617268;--cc-line:#dce3da;--cc-accent:#2e6448}
html[data-theme=dark]{--cc-bg:#111b17;--cc-panel:#1c2922;--cc-soft:#26362d;--cc-text:#edf3ed;--cc-muted:#bacbbd;--cc-line:#405447;--cc-accent:#b7d598}
.dispatch-layout header,.dispatch-rail,html[data-theme=dark] .dispatch-rail{background:#193b2e;border-color:#345743}
.dispatch-rail button[aria-current=page],html[data-theme=dark] .dispatch-rail button[aria-current=page]{background:#b9d58b;color:#142d21}
.dispatch-rail .eyebrow,.dispatch-rail .muted{color:#c2d2bf!important}
.dispatch-layout header #themeToggle{background:#2b4b39;color:#f3f5ec;border-color:#64816b}
html[data-theme=dark] :is(.primary,button.primary){background:#bdd694;color:#172c1d;border-color:#bdd694}
html[data-theme=dark] a{color:#c0dda6}
.live-workspace{grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);align-items:start}
.live-map #shiftMap{height:530px}.dispatch-layout #fleet{max-height:590px}
.dispatch-layout .fleet-card{padding:12px;margin-bottom:8px;box-shadow:none}
.fleet-card h3{font-size:16px;margin:0 0 5px}.fleet-card p{font-size:12px;line-height:1.4;margin:5px 0}.fleet-card .fleet-status{font-size:12px}.fleet-card progress{margin:5px 0;height:6px}.fleet-detail{font-size:12px;margin-top:8px}.fleet-detail summary{cursor:pointer;color:var(--cc-muted);padding:5px 0}.fleet-detail .row{margin-top:8px}
@media(max-width:950px){.live-workspace{grid-template-columns:1fr}.live-map #shiftMap{height:440px}.dispatch-layout #fleet{max-height:500px}}

.next-actions{margin:16px 0}.next-actions summary{font-weight:700;cursor:pointer}.next-actions #nextActions{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}#desk-help details p{padding:12px 0;line-height:1.6}#desk-customers>button,#desk-customers>.button{margin:12px 8px 12px 0}#desk-customers>label{max-width:520px}

/* Fleet and customer editing feedback */
#assetSaveStatus:not(:empty){padding:12px;border:1px solid currentColor;border-radius:8px;font-weight:600} .customer-manager{margin:24px 0;padding:24px}.customer-manager form{display:grid;gap:16px}.customer-manager .form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.customer-manager label:not(.inline-check),.customer-preview-label{display:flex;flex-direction:column;gap:6px}.customer-manager input:not([type=checkbox]),.customer-manager select{width:100%;box-sizing:border-box}#customerPropertyChoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}#customerPropertyChoices label{padding:12px;border:1px solid #82958a55;border-radius:8px;display:flex;align-items:center;gap:10px}#customerManagerStatus{padding:12px}#savedStopOrder li[draggable]{cursor:grab;padding:12px;border:1px solid #82958a66;border-radius:8px;margin-bottom:8px}#savedStopOrder li.dragging{opacity:.45}#savedStopOrder button{cursor:pointer}

.asset-card .asset-photo{height:300px;object-fit:contain;background:#e8eeea}#assetPhotoPreview{display:block;width:100%;max-height:400px;object-fit:contain;background:#e8eeea;border-radius:12px;margin:12px 0}#assetPhotoPreview[hidden]{display:none}
