*{box-sizing:border-box}body{margin:0;font:16px/1.45 system-ui,sans-serif;background:#f5f1ec;color:#30261f}header{background:#50301b;color:#fff;display:flex;justify-content:center;align-items:center;gap:12px;padding:12px}header img{width:56px;height:56px;object-fit:contain;border-radius:8px;background:white}header strong{font-size:21px;display:block}header span{color:#f4decc;font-size:13px}main{max-width:1200px;margin:16px auto;padding:0 20px 20px}.overview{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);gap:14px;align-items:start;margin-bottom:14px}.card{background:#fff;border:1px solid #e7ddd2;border-radius:16px;padding:18px;margin-bottom:14px;box-shadow:0 4px 14px #50301b09}.overview>.card{margin-bottom:0;min-width:0}.resultbody{display:flex;flex-direction:column;justify-content:center;gap:4px}.fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 10px;align-items:end}.fields .wide{grid-column:1/-1}.fields>div{min-width:0}.maphead{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.mapempty{display:grid;place-items:center;min-height:100px;padding:12px;text-align:center;background:#f5f1ec;border:1px solid #e7ddd2;border-radius:10px}.mapnotice{margin:0 0 6px}.mapwarning{color:#684821;background:#fff8e9;border-radius:8px;padding:8px}.mapcard{margin-bottom:12px}h1{font-size:23px;line-height:1.2;margin:0 0 6px}h2{font-size:19px;margin:0 0 8px;overflow-wrap:anywhere}p{margin:5px 0}label{display:block;font-weight:650;font-size:13px;margin:0 0 3px}input,select,button{font:inherit;width:100%;min-width:0;min-height:42px;padding:8px;border-radius:8px;border:1px solid #cfc1b3;background:#fff;color:inherit}button,.link{background:#50301b;color:#fff;border:0;font-weight:650;text-align:center;cursor:pointer}.link{display:inline-block;padding:10px 16px;border-radius:8px;text-decoration:none}.hint{color:#695d52;font-size:13px}.badge{display:inline-block;background:#fff0d8;color:#75471a;border-radius:6px;padding:3px 8px;font-weight:650;font-size:11px;margin-bottom:6px}.time{text-align:center;font-size:clamp(26px,3.5vw,40px);font-weight:750;color:#326346;margin:4px 0;letter-spacing:-.6px;overflow-wrap:anywhere}.center{text-align:center}#load,#updated{font-size:12px;margin:9px 0 0}#updated{text-align:center}.mapcard #map{height:clamp(340px,48vh,520px);border:1px solid #ddd;border-radius:10px;margin-top:8px}#map[hidden],[hidden]{display:none!important}.vehicle-area-icon{background:#fff;border:2px solid #376b93;border-radius:50%;display:grid;place-items:center;box-shadow:0 2px 6px #0003;pointer-events:none}.vehicle-area-icon svg{display:block;width:26px;height:26px}footer{text-align:center;font-size:12px;color:#6c6258;padding:10px}.warn{background:#fff8e9;border:1px solid #ead2ad;border-radius:8px;padding:12px;color:#684821}a{color:#78421d}button:disabled{opacity:.5;cursor:default}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #c1883e;outline-offset:2px}
@media(max-width:720px){main{margin:10px auto;padding:0 12px 16px}.overview{grid-template-columns:1fr;gap:10px}.overview .card,.mapcard{padding:14px}header{padding:9px}header img{width:48px;height:48px}input,select,button{min-height:44px}.mapcard #map{height:clamp(260px,40vh,420px)}}@media(max-width:390px){.fields{grid-template-columns:1fr}}

/* Completed delivery state: explicit backend completion only. */
.delivery-completed{text-align:center;padding:8px 0 12px;display:flex;flex-direction:column;align-items:center;gap:5px}
.completed-icon{display:grid;place-items:center;background:#d8f2df;color:#168039;width:64px;height:64px;border-radius:50%;margin:0 auto 4px}
.completed-icon svg{width:34px;height:34px;display:block}
.completed-title{color:#168039;font-size:clamp(24px,3vw,32px);line-height:1.18;font-weight:800;letter-spacing:-.35px;margin:0;overflow-wrap:anywhere}
.completed-wish{color:#171717;font-size:clamp(16px,1.8vw,20px);line-height:1.35;font-weight:750;margin:3px 0 0}
#result.is-complete #updated{margin-top:10px}
.mapcard.is-complete .mapnotice,.mapcard.is-complete #mapcredits{display:none}
.mapcard.is-complete .mapempty{min-height:100px;font-weight:650;color:#30261f}
@media(max-width:720px){.completed-icon{width:56px;height:56px}.completed-icon svg{width:30px;height:30px}.delivery-completed{padding:6px 0 10px}}
