.sync-overlay{position:fixed;inset:0;z-index:1000;background:rgba(10,6,5,.72);display:flex;align-items:flex-end;justify-content:center;padding:16px}
@media (min-width:640px){.sync-overlay{align-items:center}}
.sync-dialog{background:#24180f;color:#f6ede6;border:1px solid rgba(255,255,255,.14);border-radius:16px;max-width:440px;width:100%;padding:20px 20px 16px;box-shadow:0 12px 40px rgba(0,0,0,.5)}
.sync-dialog h2{margin:0 0 8px;font-size:1.25rem}
.sync-dialog p{margin:0 0 10px;line-height:1.45}
.sync-actions{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.sync-actions .btn{width:100%;justify-content:center;min-height:44px}
.sync-toast{position:fixed;left:12px;right:12px;margin:0 auto;width:auto;bottom:calc(76px + env(safe-area-inset-bottom));z-index:999;display:flex;align-items:center;gap:10px;background:#2e2016;color:#f6ede6;border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:10px 12px;max-width:min(92vw,460px);box-shadow:0 8px 24px rgba(0,0,0,.45);font-size:.92rem}
.sync-toast>span{flex:1;min-width:0}
.sync-toast .btn{flex:none}
.sync-x{background:none;border:0;color:inherit;font-size:1.2rem;line-height:1;cursor:pointer;padding:4px 6px;min-width:32px;min-height:32px}
.sync-card .row-btns{margin:6px 0 8px}
.cf-ts{margin:8px 0 4px}.cf-ts:empty{display:none}
/* v17.67: readable age help, clear-on-sign-out, route planner */
label.check .age-help{color:#4a3b5c!important;opacity:1!important;font-size:.9rem;line-height:1.4;margin-top:2px}
.so-clear{margin:-4px 0 16px;padding:12px 14px;border-radius:12px;background:#fff;color:#2b2140}
.so-clear-label{display:flex;gap:10px;align-items:flex-start;font-weight:600;cursor:pointer}
.so-clear-label input{width:22px;height:22px;flex:none;margin-top:1px}
.so-clear-help{display:block;font-weight:400;font-size:.88rem;color:#4a3b5c;margin-top:2px;line-height:1.4}
.route-card{margin:16px 0;color:#2b2140}
.route-card h2{margin:0 0 6px}
.route-note{background:#fff4d6;border:1px solid #e9c46a;color:#3d2c00;border-radius:10px;padding:8px 10px;font-size:.92rem;line-height:1.4}
.route-label{display:block;font-weight:700;margin:12px 0 4px}
.route-card input[type=search],.route-card input[type=text],.route-link{width:100%;box-sizing:border-box;min-height:44px;border:1px solid #b9aecb;border-radius:10px;padding:8px 12px;font:inherit;background:#fff;color:#2b2140}
.route-results,.route-stops,.route-saved{list-style:none;margin:6px 0;padding:0}
.route-results li+li{margin-top:6px}
.route-add{display:flex;width:100%;align-items:center;gap:8px;min-height:44px;text-align:left;background:#f4eefb;border:1px solid #d9cdea;border-radius:10px;padding:8px 10px;font:inherit;color:#2b2140;cursor:pointer}
.route-add>span:first-child{flex:1;min-width:0}
.route-plus{font-size:1.3rem;font-weight:700;color:#5a189a}
.route-meta{font-size:.84rem;color:#5b4d6e}
.route-stops li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #ece6f3}
.route-num{flex:none;width:28px;height:28px;border-radius:50%;background:#5a189a;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem}
.route-stop-main{flex:1;min-width:0;display:flex;flex-direction:column}
.route-stop-title{color:#2b2140;font-weight:600}
.route-approx{color:#7a4a00;font-weight:600}
.route-stop-btns{display:flex;gap:4px;flex:none}
.route-icon{width:36px;height:40px;border:1px solid #d9cdea;border-radius:8px;background:#fff;color:#2b2140;font-size:1.05rem;cursor:pointer}
.route-icon[disabled]{opacity:.35;cursor:default}
.route-controls,.route-share,.route-save{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
.route-save input{flex:1;min-width:160px}
.route-rt{display:flex;gap:8px;align-items:center;min-height:44px}
.route-rt input{width:20px;height:20px}
.route-h3{margin:18px 0 4px;font-size:1.05rem}
.route-saved li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 0;border-top:1px solid #ece6f3}
.route-saved-name{font-weight:600;flex:1;min-width:120px;overflow-wrap:anywhere}
.route-empty{color:#5b4d6e;margin:8px 0}
.route-pin-btn{margin-top:8px}
.route-marker-wrap{background:none;border:0}
.route-marker{position:absolute;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;background:#14101c;color:#fff;border:2px solid #ffd166;font:700 13px/22px system-ui,sans-serif;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.route-marker.is-approx{border-style:dashed}
.route-marker::after{content:'';}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media print{.route-card{break-inside:avoid}}
/* v17.68 age screen + chat-public note */
.age-gate{margin-top:.5rem}
.age-gate h2{margin:0 0 .25rem;font-size:1.25rem;color:#1f1830}
.age-gate fieldset{border:0;padding:0;margin:0;min-width:0}
.age-gate legend{font-weight:700;color:#1f1830;margin:0 0 .5rem;padding:0;font-size:1rem}
.age-gate-row{display:flex;gap:.75rem}
.age-gate-row .field{flex:1;min-width:0}
.age-gate select{width:100%;min-height:48px;font-size:1rem;padding:.5rem .6rem;border:1px solid #8a7ba0;border-radius:10px;background:#fff;color:#1f1830}
.age-gate .hint{color:#4a3b5c}
.age-refused h2{margin:0 0 .5rem;font-size:1.25rem;color:#1f1830}
label.check .age-help a{color:#3d1f7a;text-decoration:underline}
.chat-public{border-left:4px solid #ffd166;background:#fff8e1;color:#2a2238;padding:.6rem .8rem;border-radius:8px;margin:.5rem 0}
.chat-public strong{color:#2a2238}
/* v17.69 tilt view: a perspective tilt of the flat 2D map picture (no terrain or heights) */
.map-tilt{position:absolute;left:6px;bottom:30px;z-index:1050;display:flex;gap:6px;align-items:center}
.map-tilt-btn,.map-tilt-turn{min-height:44px;min-width:44px;padding:0 14px;border-radius:22px;border:1px solid rgba(255,255,255,.55);background:rgba(20,16,28,.88);color:#fff;font:600 15px/1 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.map-tilt-turn{padding:0;font-size:20px}
.map-tilt-btn[aria-pressed="true"]{background:#fff;color:#14101c;border-color:#14101c}
.map-tilt-btn:focus-visible,.map-tilt-turn:focus-visible{outline:3px solid #ffd23f;outline-offset:2px}
.map-tilt-turn[hidden]{display:none}
.map-tilt-turn:disabled{opacity:.45;cursor:default}
.map-tilt-note{display:none;position:absolute;left:8px;right:8px;top:8px;z-index:1050;margin:0;padding:8px 12px;border-radius:10px;background:rgba(20,16,28,.9);color:#fff;font:600 14px/1.35 system-ui,sans-serif;text-align:center;pointer-events:none}
.map-frame.is-tilt-size{background:linear-gradient(180deg,#0d0b14 0%,#1d1830 55%,#2a2340 100%)}
.map-frame.is-tilt-size .leaflet-host{transform-origin:50% 100%;transition:transform .55s cubic-bezier(.2,.7,.2,1);will-change:transform;touch-action:pan-y;background:transparent}
.map-frame.is-tilted .leaflet-host{touch-action:none;cursor:grab}
.map-frame.is-tilted .leaflet-host.is-panning{cursor:grabbing}
.map-frame.is-tilted .leaflet-host{transform:perspective(var(--persp,1100px)) rotateX(var(--tilt)) translateY(calc(-1 * var(--pivot,0px))) rotateZ(var(--turn)) translateY(var(--pivot,0px))}
.map-frame.is-tilted .leaflet-marker-icon>*{rotate:var(--tz);scale:1 var(--bb)}
.map-frame.is-tilt-size .leaflet-marker-icon>*{transition:rotate .55s cubic-bezier(.2,.7,.2,1),scale .55s cubic-bezier(.2,.7,.2,1)}
.map-frame.is-tilted .map-hint{display:none}
.map-frame.is-tilted .map-tilt-note{display:block}
.map-frame.tilt-instant .leaflet-host,.map-frame.tilt-instant .leaflet-marker-icon>*{transition:none!important}
@media (prefers-reduced-motion:reduce){.map-frame .leaflet-host,.map-frame .leaflet-marker-icon>*{transition:none!important}}
