:root { --ink:#17253a; --muted:#77879d; --navy:#111e36; --navy2:#1d3554; --mint:#22bd91; --mint-light:#d6fff0; --page:#f4f7fc; --card:#fff; --line:#e6ecf3; --shadow:0 8px 30px rgba(25,47,77,.055); }
*{box-sizing:border-box} html{scroll-behavior:smooth;-webkit-text-size-adjust:100%} body{margin:0;background:var(--page);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;color:var(--ink);font-size:14px;line-height:1.45} button,input,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:wait;opacity:.65}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #77d9b8;outline-offset:2px} .hidden{display:none!important}
.app-header{height:74px;background:var(--navy);color:white;position:relative;z-index:1000;box-shadow:0 6px 25px rgba(9,19,37,.1)}.header-wrap{max-width:1640px;margin:auto;height:100%;display:flex;align-items:center;padding:0 30px;gap:12px}.brand-icon{height:46px;width:46px;border-radius:14px;background:#243d59;display:grid;place-items:center;border:1px solid #42637b}.brand-label{display:flex;flex-direction:column;gap:0;line-height:1.15}.brand-label strong{font-size:22px;letter-spacing:2.5px;font-weight:850}.brand-label span{font-size:9px;letter-spacing:1.85px;color:#a5bcd0;font-weight:800;margin-top:3px}.header-actions{display:flex;align-items:center;gap:9px;margin-left:auto}.status-pill{font-size:12px;display:flex;align-items:center;gap:8px;background:#23354e;color:#dbeaf4;padding:9px 12px;border-radius:999px;white-space:nowrap}.status-dot,.green-pulse{height:8px;width:8px;border-radius:100%;background:#ebb65a;display:inline-block;flex-shrink:0}.status-pill.ready .status-dot,.green-pulse{background:#56e2ad;box-shadow:0 0 0 3px #56e2ad20}.status-pill.error .status-dot{background:#ff9278}.icon-button{height:35px;width:35px;border:1px solid #455570;background:#253752;color:white;border-radius:10px;font-size:20px}
.main-layout{display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(420px,.92fr);max-width:1640px;min-height:calc(100vh - 74px);margin:auto}.map-pane{height:calc(100vh - 74px);min-height:550px;position:sticky;top:0;background:#d8e6e4;overflow:hidden}.map-pane #map{height:100%;width:100%;z-index:0;background:#d3e2db}.map-top{position:absolute;top:22px;left:24px;z-index:400;pointer-events:none}.map-label{display:flex;align-items:center;gap:10px;background:#ffffffed;color:#24354d;font-weight:850;padding:12px 15px;border-radius:15px;box-shadow:0 7px 27px #00000018}.map-label #mapCounter{font-weight:500;color:#6d7990}.map-bottom{position:absolute;z-index:410;bottom:30px;left:24px}.map-float-btn{display:inline-flex;gap:10px;align-items:center;border:1px solid #e7ebf0;border-radius:12px;padding:12px 16px;background:#fff;box-shadow:0 9px 26px #0002;color:#283952;font-weight:750}.map-float-btn:first-letter{font-size:22px}.map-fallback{position:absolute;z-index:420;inset:0;background:#e6ecf0;display:grid;place-items:center;text-align:center;padding:25px;color:#445}
.planner-pane{padding:30px clamp(19px,3vw,47px) 22px;max-width:760px;width:100%;margin:auto}.intro{margin:2px 0 24px}.eyebrow{display:flex;align-items:center;gap:12px;color:#168865;font-size:11px;letter-spacing:2.05px;font-weight:850}.version{color:#7890a3;letter-spacing:.4px;font-size:10px;font-weight:700;background:#e7edf4;padding:4px 8px;border-radius:20px}.intro h1{margin:12px 0 9px;font-size:clamp(31px,3.05vw,46px);letter-spacing:-1.9px;line-height:1.08;font-weight:830}.intro h1 em{font-style:normal;color:#179b75}.intro p{font-size:13px;color:#6f7d92;max-width:455px;margin:0;line-height:1.7}.field-label{font-size:11px;font-weight:830;letter-spacing:1.5px;color:#4d6077;margin-bottom:10px}.mode-card{margin-bottom:17px}.mode-switch{background:#e8eef5;border-radius:13px;padding:5px;display:grid;grid-template-columns:1fr 1fr;gap:5px}.mode-choice{border:0;border-radius:10px;background:transparent;color:#6c7b8f;font-weight:750;padding:11px 10px;display:flex;align-items:center;justify-content:center;gap:7px}.mode-choice.selected{background:#fff;color:#152b42;box-shadow:0 3px 10px #101e361c}.mode-symbol{font-size:18px}
.notice{font-size:13px;padding:13px 16px;border-radius:11px;margin-bottom:15px;line-height:1.55;background:#fff3df;border:1px solid #edc98e;color:#75532b}.notice.success{background:#e8fff5;border-color:#b5ecd8;color:#176d52}.notice.error{background:#fff0ed;border-color:#f4bdaf;color:#9d3827}
.step-card{border-radius:17px;background:#fff;box-shadow:var(--shadow);padding:22px 23px;margin-bottom:17px;border:1px solid #edf1f6}.section-heading{display:flex;align-items:center;gap:11px;margin-bottom:17px}.section-heading h2{font-size:16px;margin:0;font-weight:850;letter-spacing:-.25px}.step-number{display:grid;place-items:center;height:28px;min-width:28px;background:#e3f9ee;color:#16866c;font-size:11px;font-weight:900;border-radius:9px}.count-pill{background:#edf2f7;color:#61738c;border-radius:100px;padding:5px 10px;font-size:11px;margin-left:auto;font-weight:750}.origin-line{display:flex;gap:12px;align-items:center;margin:2px 0 13px}.origin-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:#e6f8f1;color:#12a37b;font-size:24px;font-weight:900}.origin-text{display:flex;flex-direction:column;min-width:0;gap:3px}.origin-text strong{font-size:14px;overflow-wrap:anywhere}.origin-text small{font-size:12px;color:#8190a2}.action-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{border:0;border-radius:10px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:770;font-size:13px;min-height:42px;text-align:center}.btn.secondary{background:#edf4f8;color:#2b4e68}.btn.secondary:hover{background:#e2eff4}.btn.primary{background:#173653;color:#fff;box-shadow:0 5px 12px #17365315}.btn.primary:hover{background:#235078}.btn.accent{background:#1ebd91;color:#fff}.btn.accent:hover{background:#159f7b}.btn.wide{width:100%;min-height:48px}.btn-leading{border-radius:7px;background:#ffffff28;font-size:19px;line-height:1;width:26px;height:26px;display:grid;place-items:center}.link-btn{border:0;background:none;color:#147a67;font-weight:750;font-size:12px;padding:7px 2px;text-decoration:none;min-height:37px}.link-btn:hover{text-decoration:underline}.subtle-link{color:#91a0b0}
.sub-label{display:block;margin:14px 0 6px;font-weight:750;font-size:12px;color:#52657a}.field{min-width:0;width:100%;height:44px;padding:0 13px;border:1px solid #dbe4ee;border-radius:10px;color:#1d3045;background:#fbfdff;font-size:14px;outline:none}.field:focus{border-color:#28ae89;box-shadow:0 0 0 3px #1cbb9020}.search-row{display:flex;gap:8px}.search-row .field{flex:1}.search-btn{background:#1baf88;color:#fff;padding:0 18px}.search-btn:hover{background:#139c76}.search-context{background:#eaf8f5;color:#20745c;font-size:12px;padding:10px 12px;border-radius:9px;margin-top:10px}.search-results{margin-top:10px;border:1px solid #d7e2e9;overflow:hidden;border-radius:10px;background:#fff}.candidate-row{display:flex;align-items:stretch;border-bottom:1px solid #eff1f5}.candidate-row:last-child{border-bottom:0}.candidate{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;border:0;background:#fff;border-bottom:1px solid #eff1f5;padding:11px 13px;text-align:left;color:#243a50}.candidate{border-bottom:0;flex:1}.preview-btn{width:42px;flex-shrink:0;border:0;background:#f6f9fb;color:#199777;font-size:22px;border-left:1px solid #edf1f5}.preview-btn:hover{background:#e8f8f1}.candidate:hover{background:#ecf7f3}.candidate .candidate-name{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.candidate .candidate-action{color:#179475;font-weight:850;font-size:12px;white-space:nowrap}.bulk-row{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin:10px 0 4px}.small-muted{font-size:11px;color:#9aabb7}.bulk-panel{padding:13px;background:#f3f8fb;border-radius:12px;margin:8px 0 13px}.bulk-panel .sub-label{margin-top:0}.bulk-panel textarea{min-height:88px;resize:vertical;padding:11px 12px;width:100%;border:1px solid #d8e2eb;border-radius:10px;background:#fff;color:#1d3045}.bulk-panel .btn{margin-top:9px}.list-top{margin-top:20px;padding-top:10px;border-top:1px solid #eef1f5;display:flex;justify-content:space-between;align-items:center}.list-top strong{font-size:13px}.stop-list{display:flex;flex-direction:column;gap:8px;margin:8px 0 0}.empty-list{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;background:#f8fafd;border-radius:12px;padding:22px 10px;color:#798ba0}.empty-list strong{font-size:13px;color:#60758b}.empty-list small{font-size:11px;max-width:220px}.empty-sign{font-size:27px;color:#b4c7d3}
.stop-entry{display:flex;align-items:center;gap:10px;border:1px solid #ecf0f4;border-radius:12px;padding:10px 8px 10px 11px;background:#fcfdff}.stop-entry.done{opacity:.6;background:#f5f8fa}.stop-entry .stop-no{height:28px;width:28px;display:grid;place-items:center;background:#eaf3fb;color:#1f5479;border-radius:9px;font-weight:850;flex-shrink:0;font-size:12px}.stop-entry .stop-no.ordered{background:#d5f8ec;color:#0c8d68}.stop-info{min-width:0;flex:1}.stop-info strong{display:block;font-size:12px;font-weight:740;line-height:1.4;overflow-wrap:anywhere}.stop-info small{display:block;font-size:11px;color:#8899a8;margin-top:4px}.stop-entry.done .stop-info strong{text-decoration:line-through}.stop-control{background:none;border:none;border-radius:8px;width:27px;height:30px;font-size:19px;color:#9cabb9;flex-shrink:0}.stop-control.remove:hover{background:#fff0ec;color:#c65944}.stop-check{width:19px;height:19px;accent-color:#14ad81;flex-shrink:0;cursor:pointer}
.calc-help{font-size:11px;color:#90a1ae;text-align:center;line-height:1.55;margin:10px 0 0}.route-summary{margin-top:17px}.stats{display:grid;grid-template-columns:1fr 1.15fr .8fr;gap:6px;background:#f3f9f7;border-radius:13px;padding:14px 12px}.stats>div{display:flex;flex-direction:column;gap:5px;align-items:center}.stats span{color:#6e918b;font-size:9px;font-weight:850;letter-spacing:.4px;white-space:nowrap}.stats strong{font-size:21px;color:#1b5b4d;letter-spacing:-.5px}.route-order{margin-top:15px;display:flex;flex-direction:column;gap:9px}.route-step{display:flex;gap:10px;align-items:flex-start;font-size:12px;padding:8px 2px}.route-step:not(:last-child){border-bottom:1px dashed #e9eff2}.route-step .r-num{font-size:12px;display:grid;place-items:center;height:25px;width:25px;border-radius:8px;background:#e4f8ef;color:#168866;font-weight:850;flex-shrink:0}.route-step .r-name{flex:1;overflow-wrap:anywhere;line-height:1.4}.route-step .r-dist{color:#8294a4;white-space:nowrap;font-size:11px}.route-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:14px}.fine-print{color:#8a9aa8;font-size:10px;line-height:1.65;margin-top:15px}.footer{text-align:center;color:#96a6b4;font-size:10px;line-height:1.6;margin:26px 0 0;padding:0 5px 18px}.footer span{color:#71879a}
.access-dialog{width:min(410px,calc(100vw - 34px));border:0;box-shadow:0 25px 80px #0818294d;border-radius:19px;padding:25px;color:var(--ink)}.access-dialog::backdrop{background:#13243bb3;backdrop-filter:blur(4px)}.access-dialog h2{margin:10px 0;font-size:22px;letter-spacing:-.5px}.access-dialog p{font-size:13px;color:#6f8091;line-height:1.6}.dialog-icon{font-size:27px}.dialog-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:20px}.privacy-hint{font-size:11px!important;color:#98a7b5!important;margin-bottom:0}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:3000;max-width:min(94vw,480px);background:#1b3750;color:#fff;padding:14px 18px;border-radius:11px;box-shadow:0 10px 30px #0005;text-align:center;line-height:1.45;font-weight:660}.pin-map{background:#1db78c;color:white;border-radius:9px;border:2px solid white;box-shadow:0 2px 8px #0004;font-size:13px;font-weight:800;width:31px;height:31px;display:grid;place-items:center}.pin-map.completed{background:#8c9eaa}.pin-map.start{background:#17476c;border-radius:50%;font-size:17px}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:10px!important}
@media (max-width:990px){.main-layout{grid-template-columns:minmax(0,1fr)}.map-pane{height:330px;min-height:330px;position:relative;top:auto}.planner-pane{padding:26px 18px 20px;max-width:700px}.intro h1{font-size:37px}.header-wrap{padding:0 18px}} 
@media (max-width:500px){.app-header{height:66px}.header-wrap{padding:0 12px}.brand-icon{height:39px;width:39px;border-radius:12px}.brand-label strong{font-size:18px;letter-spacing:2px}.brand-label span{font-size:7px;letter-spacing:1.1px}.status-pill{font-size:10px;padding:7px 8px;gap:5px}.icon-button{width:32px;height:32px}.map-pane{height:270px;min-height:270px}.map-top{top:13px;left:14px}.map-label{font-size:11px;padding:9px 11px}.map-bottom{bottom:12px;left:13px}.map-float-btn{font-size:11px;padding:9px 12px}.planner-pane{padding:22px 12px 15px}.intro{margin:0 6px 19px}.intro h1{font-size:34px}.intro p{font-size:12px}.step-card{padding:18px 15px;border-radius:15px}.section-heading h2{font-size:15px}.mode-card{padding:0 2px}.route-summary .stats strong{font-size:19px}.footer{padding-bottom:calc(15px + env(safe-area-inset-bottom));}.toast{bottom:calc(14px + env(safe-area-inset-bottom));font-size:12px;width:92vw}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
