/* Delivery desk follows the existing light/dark POS palette. */
.route-desk{max-width:1450px;margin:0 auto;padding:20px 24px 48px;color:var(--ink)}
.route-head,.route-toolbar,.route-job-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.route-head{align-items:flex-start;margin-bottom:22px}.route-head h2{font-size:28px;margin:3px 0 8px;letter-spacing:-.03em}.route-head p{margin:0;color:var(--ink-50);font-size:13px}.route-head .route-eyebrow{font-size:10px;letter-spacing:.14em;color:var(--success)}
.route-date-tools{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.route-desk input,.route-desk select{background:var(--paper);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;padding:10px;min-height:42px;font:inherit;max-width:100%;width:100%;box-sizing:border-box}.route-date-tools input{width:150px}
.route-desk input[type=checkbox]{width:18px;min-height:18px;height:18px;accent-color:var(--success);flex-shrink:0}
.route-btn{background:var(--paper);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;min-height:40px;padding:9px 14px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.route-btn.primary{background:var(--chrome);color:var(--on-chrome);border-color:var(--chrome)}.route-btn:disabled{opacity:.45;cursor:not-allowed}.route-btn:hover:not(:disabled){border-color:var(--success)}
.route-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.route-metric{display:grid;gap:5px;border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:16px}.route-metric strong{font-size:24px}.route-metric span{font-size:12px;color:var(--ink-50)}
.route-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin:20px 0;overflow-x:auto}.route-tabs .route-btn{border:0;border-radius:0;background:transparent;color:var(--ink-50);white-space:nowrap;padding:13px 18px}.route-tabs [aria-current=page]{color:var(--ink);box-shadow:inset 0 -3px var(--success)}
.route-view{display:grid;gap:14px}.route-view h3{margin:0;font-size:16px}.route-card{border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:20px}.route-card p{font-size:13px;line-height:1.6;margin:10px 0}.route-muted{font-size:12px;color:var(--ink-50);line-height:1.6}.route-pill{background:var(--paper-2);border-radius:20px;padding:5px 10px;font-size:11px;color:var(--ink-70)}
.route-type{font-size:11px;font-weight:600;padding:5px 9px;border-radius:6px;white-space:nowrap}.route-type.pickup{background:var(--pill);color:var(--success)}.route-type.delivery{background:var(--paper-2);color:var(--ink)}.route-job-head{justify-content:flex-start}.route-job-head>strong{margin-inline-end:auto}.route-job-editor{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}.route-job-editor summary,.route-card>summary{cursor:pointer;font-size:12px;color:var(--ink-70);padding:4px 0}.route-job-editor>.route-btn{margin:12px 7px 0 0}
.route-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}.route-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px}.route-field>span{color:var(--ink-50)}.route-weekdays{display:flex;flex-wrap:wrap;gap:15px;grid-column:1/-1}.route-weekdays .route-field{align-items:center}
.route-notice{border:1px solid var(--line-strong);border-inline-start:3px solid var(--success);border-radius:8px;padding:15px 18px;display:grid;gap:7px;background:var(--paper-2);font-size:12px;line-height:1.6}.route-warning{display:block;color:var(--ink-70);font-size:11px;line-height:1.6}.route-empty{padding:34px;border:1px dashed var(--line-strong);border-radius:12px;color:var(--ink-50);font-size:13px;text-align:center}.route-link{display:inline-block;color:var(--success);font-size:12px;margin:6px 12px 6px 0;text-decoration:underline}.route-stop-list{list-style:none;counter-reset:stops;padding:0;margin:14px 0}.route-stop-list li{counter-increment:stops;display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding:14px 0;font-size:12px}.route-stop-list li:before{content:counter(stops);display:grid;place-items:center;border-radius:50%;width:25px;height:25px;background:var(--paper-2)}.route-stop-list li>span:last-of-type{margin-inline-start:auto}
@media(max-width:800px){.route-desk{padding:16px 12px 40px}.route-metrics{grid-template-columns:repeat(2,1fr)}.route-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.route-head h2{font-size:24px}.route-tabs .route-btn{padding:12px}.route-card{padding:16px}.route-date-tools{width:100%}.route-toolbar>.route-btn.primary{width:100%}.route-stop-list li>span:last-of-type{margin-inline-start:0}}
@media(max-width:420px){.route-form-grid{grid-template-columns:1fr}.route-job-head{gap:8px}}
/* Driver surfaces use the same theme variables, including night mode. */
#screen-driver .driver-next-stop{background:var(--paper);border-color:var(--line-strong);box-shadow:none;color:var(--ink)}
#screen-driver .driver-next-stop .muted{color:var(--ink-70);font-size:14px;line-height:1.6;margin:8px 0}
#screen-driver .driver-route-stop.active{background:var(--pill);color:var(--ink)}
#screen-driver .driver-route-stop.active>b{background:var(--chrome);color:var(--on-chrome)}
#driverBody>.panel{max-width:680px;margin-left:auto;margin-right:auto}
#driverBody .route-btn{display:inline-block;margin:10px 8px 0 0;text-decoration:none;line-height:1.5;vertical-align:middle}
#driverBody .driver-next-kicker{background:var(--pill);color:var(--success);font-weight:650;letter-spacing:.02em}
#driverBody .driver-route-list{box-shadow:none}
@media(max-width:650px){#driverBody .driver-next-stop>.route-btn{display:block;width:100%;text-align:center;margin:10px 0 0;box-sizing:border-box}#driverBody .driver-route-head{padding-inline:2px}#driverBody .driver-route-head h2{font-size:30px}}
/* Signature: the same calm hierarchy as the approved walkthrough. */
.route-signature{max-width:1240px;padding:30px 32px 48px;--route-tint:var(--pill)}
.route-signature .route-head{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:0}
.route-signature .route-head h2{font-size:27px;font-weight:650;margin:8px 0;letter-spacing:-.025em}
.route-signature .route-eyebrow{font-size:11px;font-weight:650;letter-spacing:.13em}
.route-signature .route-overview{display:flex;flex-wrap:wrap;gap:10px 24px;padding:16px 0;color:var(--ink-70);font-size:12px}
.route-signature .route-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 20px;padding:0 0 18px;overflow:visible}
.route-signature .route-steps .route-btn{display:flex;gap:9px;align-items:center;text-align:start;padding:10px 8px;white-space:normal;border-radius:10px;box-shadow:none;font-weight:500;font-size:12px}
.route-step-number{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;border-radius:50%;background:var(--paper-2);color:var(--ink-70)}
.route-signature .route-steps [aria-current=step]{background:var(--route-tint);color:var(--success)}
.route-signature .route-steps [aria-current=step] .route-step-number{background:var(--success);color:var(--paper)}
.route-signature .route-support-tools{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin:12px 0 22px}
.route-signature .route-support-tools .route-btn{border:0;background:transparent;min-height:36px;padding:6px 9px;color:var(--ink-70);font-weight:500}
.route-signature .route-connection{display:flex;align-items:center;justify-content:space-between;gap:16px;border:0;border-radius:12px;background:var(--paper-2);padding:16px 20px}
.route-signature .route-connection p{margin:4px 0 0;color:var(--ink-70)}
.route-signature .route-toolbar{align-items:center;justify-content:flex-start;gap:12px;margin:0 0 10px}
.route-signature .route-toolbar>div:first-child{margin-inline-end:auto;flex-basis:100%}
.route-signature .route-toolbar h3{font-size:23px;font-weight:600;margin:0}
.route-signature .route-toolbar p{max-width:660px;margin:7px 0;color:var(--ink-70)}
.route-signature .route-toolbar>.primary{margin-inline-start:auto}
.route-signature .route-btn{min-height:44px;border-radius:10px;padding:11px 16px;font-weight:550;transition:background-color .15s,border-color .15s}
.route-signature .route-btn.primary{padding-inline:22px}
.route-signature .route-job-grid,.route-signature .route-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.route-signature .route-card{padding:22px;border-radius:15px;box-shadow:0 3px 12px rgba(0,0,0,.025);min-width:0}
.route-signature .route-job:has(input:checked){border-color:var(--success)}
.route-signature .route-area{font-size:23px;font-weight:600;letter-spacing:-.02em;margin:24px 0 5px;overflow-wrap:anywhere}
.route-signature .route-address{font-size:13px;color:var(--ink-70);margin:5px 0}
.route-signature .route-job-head{gap:8px}.route-signature .route-job-head strong{font-size:13px}
.route-signature .route-type{font-size:11px;font-weight:600;border-radius:6px;background:var(--route-tint);color:var(--success)}
.route-signature .route-pill{background:var(--paper-2);color:var(--ink-70);font-size:10px;border-radius:6px;padding:5px 8px}
.route-signature .route-job-editor{margin-top:20px;padding-top:13px}.route-signature .route-job-editor summary{color:var(--ink-70);font-size:12px;min-height:25px}
.route-signature .route-job-editor[open]{grid-column:1/-1}.route-signature .route-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.route-signature .route-stop-list li{align-items:flex-start;padding:18px 0;gap:10px}.route-signature .route-stop-list li:before{width:30px;height:30px;background:var(--route-tint);color:var(--success);flex-shrink:0}
.route-signature .route-stop-detail{display:grid;gap:3px;flex:1;min-width:100px}.route-signature .route-stop-detail span{color:var(--ink-70);font-size:12px}
.route-signature .route-stop-list .route-link{flex-basis:100%;margin:0 0 0 40px}
.route-signature .route-empty{background:var(--paper);padding:45px 22px;border:1px solid var(--line)}
.route-signature .route-view{gap:18px}.route-signature details.route-card>summary{font-size:14px;font-weight:550;min-height:24px}
.route-signature .route-view-manual .delivery-card{box-shadow:none;margin-top:14px}
.route-signature .route-view-manual .delivery-summary{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:850px){.route-signature{padding:22px 18px 40px}.route-signature .route-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.route-signature .route-job-grid,.route-signature .route-plan-grid{grid-template-columns:1fr}.route-signature .route-date-tools{width:auto}.route-signature .route-support-tools{justify-content:flex-start}}
@media(max-width:480px){.route-signature{padding:18px 10px 34px}.route-signature .route-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.route-signature .route-head h2{font-size:24px}.route-signature .route-card{padding:18px}.route-signature .route-connection{align-items:stretch;flex-direction:column}.route-signature .route-toolbar>.primary{width:100%;margin:0}.route-signature .route-job-head .route-pill{margin-inline-start:auto}.route-signature .route-form-grid{grid-template-columns:1fr}.route-signature .route-date-tools{width:100%}.route-signature .route-date-tools input{flex:1;min-width:125px}.route-signature .route-overview{gap:8px 16px}}
@media(prefers-reduced-motion:reduce){.route-signature .route-btn{transition:none}}
.route-simple .route-steps{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px;padding-bottom:12px}.route-simple .route-step-number{display:none}.route-simple .route-steps .route-btn{padding:10px 18px;min-width:90px}.route-simple .route-date-tools input{width:145px}.route-simple-plan,.route-simple-handover{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:18px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:24px}.route-simple-plan h3{font-size:23px}.route-simple-plan p{margin-bottom:0}.route-simple-plan>.primary{background:var(--yellow);color:#14263B;border-color:var(--yellow)}.route-simple-list{display:grid;gap:10px}.route-simple .route-simple-job{padding:17px 22px;box-shadow:none}.route-simple .route-simple-job p{margin:10px 0 0}.route-simple .route-simple-job .route-job-editor{margin-top:12px;padding-top:9px}.route-simple .route-simple-job .route-job-head{justify-content:space-between}.route-simple .route-simple-job .route-job-head strong{margin-inline-end:auto}.route-simple-attention{display:grid;gap:10px;margin-top:18px}.route-simple-attention>p{margin:0 0 8px}.route-simple-handover{background:var(--pill)}.route-simple-handover p{margin:4px 0 0}.route-simple-presence{display:flex;align-items:center;gap:12px;padding:16px 20px;background:var(--paper);border:1px solid var(--line);border-radius:10px;font-size:14px}.route-simple-presence input{width:20px;height:20px}.route-simple .route-plan-grid{grid-template-columns:1fr}#driverBody details.driver-route-list{padding:14px 20px}#driverBody details.driver-route-list>summary{font-size:14px;cursor:pointer;min-height:30px}@media(max-width:650px){.route-simple-plan,.route-simple-handover{padding:20px}.route-simple-plan>.route-btn,.route-simple-handover>.route-btn{width:100%}.route-simple .route-date-tools{display:flex;flex-wrap:wrap;width:100%}.route-simple .route-date-tools input{flex:1;min-width:140px}.route-simple .route-simple-job{padding:16px}.route-simple .route-steps .route-btn{padding:10px 14px;min-width:0}}
.ai-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.ai-heading h3{margin:4px 0 8px}.ai-off{display:inline-flex;padding:9px 14px;border-radius:30px;background:#fff3d2;color:#624900;font-size:13px;font-weight:700}.ai-notice{padding:18px 22px;border:1px solid #d9e8e5;border-radius:14px;background:#f2f9f7;color:#274d49;line-height:1.7}.ai-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ai-metrics .route-metric{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--paper);display:flex;flex-direction:column;gap:8px}.ai-metrics strong{font-size:26px}.ai-metrics span{font-size:13px;color:var(--ink-70)}.ai-breakdowns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ai-stat-row{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.ai-trial{max-width:900px;width:100%;box-sizing:border-box}.ai-chat{min-height:180px;max-height:420px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:20px;background:#f4f7f9;border-radius:14px;margin:18px 0}.ai-bubble{white-space:pre-wrap;overflow-wrap:anywhere;max-width:86%;padding:13px 17px;line-height:1.8;border-radius:14px;background:white;border:1px solid #e1e8ed;font-size:15px}.ai-bubble.customer{align-self:flex-end;background:#0b2339;color:white;border-color:#0b2339}.ai-bubble.assistant{align-self:flex-start}.ai-placeholder{margin:auto;color:#667887}.ai-options{display:flex;gap:10px;margin:12px 0;flex-wrap:wrap}.ai-options select{max-width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:white}.ai-trial textarea{width:100%;padding:15px;border-radius:12px;border:1px solid var(--line);font:inherit;line-height:1.6;resize:vertical;box-sizing:border-box}.ai-trial .route-support-tools{margin-top:12px}.ai-review{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid var(--line)}.ai-review>span{flex:1;color:var(--ink-70);font-size:13px}.ai-review-transcript{width:100%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px}@media(max-width:800px){.ai-breakdowns{grid-template-columns:1fr}.ai-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-chat{padding:12px}.ai-bubble{max-width:95%}.ai-trial .route-btn.primary{width:100%}}
