:root{--ink:#17231f;--bg:#fbfaf6;--brand:#14342b;--accent:#e8a23a;--line:#d9d6cb}
*{box-sizing:border-box}
html,body{margin:0;height:100%;font:16px/1.4 -apple-system,system-ui,sans-serif;color:var(--ink);background:var(--bg);overscroll-behavior:none}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit;border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 12px;min-height:44px}
button{cursor:pointer}
input[type=checkbox]{min-height:0;width:20px;height:20px}
.primary,#login button{background:var(--brand);color:#fff;border-color:var(--brand)}
#login{max-width:320px;margin:18vh auto;padding:20px;display:grid;gap:12px}
#app{position:fixed;inset:0}
#map{position:absolute;inset:0}
header{position:absolute;z-index:2;top:0;left:0;right:0;background:var(--brand);padding:calc(env(safe-area-inset-top) + 8px) 8px 8px}
#chips{display:flex;gap:4px;overflow-x:auto}
#chips button{flex:1 0 auto;font-size:13px;padding:6px 4px;white-space:nowrap;background:transparent;color:#fff;border-color:#ffffff55}
#chips button.on{background:#fff;color:var(--ink);border-color:#fff}
#chips i,.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:4px;background:var(--c)}
#fabs{position:absolute;z-index:2;right:10px;top:calc(env(safe-area-inset-top) + 76px);display:grid;gap:8px}
#fabs button{width:48px;height:48px;font-size:24px;padding:0;box-shadow:0 2px 8px #0004}
#fabs button.on{background:#1a73e8;color:#fff}
#sheet{position:absolute;z-index:3;left:0;right:0;bottom:0;background:var(--bg);border-radius:16px 16px 0 0;box-shadow:0 -3px 14px #0003;max-height:65%;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}
#handle{display:flex;justify-content:space-between;gap:10px;border:0;background:transparent;width:100%;text-align:left;font-weight:600}
#sheet.closed #panel{display:none}
#sheet:not(.closed) #caret{transform:rotate(180deg)}
#panel{overflow:auto;padding:0 12px 12px;-webkit-overflow-scrolling:touch}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.tabs button{flex:1}.tabs button.on{background:var(--accent);border-color:var(--accent);font-weight:600}
#routeForm{display:grid;gap:8px}
#warn{color:#8a4b00;font-size:14px;margin:4px 0;white-space:pre-line}
#list{list-style:none;margin:0;padding:0}
#list li button{display:block;width:100%;text-align:left;margin-bottom:6px}
#list small,.fine{color:#56625d;font-size:13px;display:block}
.pin{width:26px;height:26px;border-radius:50%;background:var(--c);border:2px solid #fff;color:#fff;font:700 13px/22px system-ui;text-align:center}
.pin.priced{width:auto;border-radius:13px;padding:0 6px;font-size:12px;white-space:nowrap}
.me{width:18px;height:18px;border-radius:50%;background:#1a73e8;border:3px solid #fff;box-shadow:0 0 0 8px #1a73e833}
.pop{max-width:270px;font-size:14px}.pop h3{margin:0 0 4px;font-size:16px}.pop a{display:inline-block;margin:6px 12px 0 0;padding:6px 0;font-weight:600}.pop button{min-height:36px;margin-top:6px}
dialog{border:0;border-radius:14px;width:min(92vw,380px)}
dialog form{display:grid;gap:10px}dialog h2{margin:0}
@media(min-width:800px){
  #sheet{top:calc(env(safe-area-inset-top) + 70px);right:auto;width:380px;max-height:none;border-radius:0 16px 0 0}
  #sheet.closed{top:auto}
}
