:root{--ink:#153747;--muted:#586e79;--accent:#e96532;--navy:#12394a;--line:#dbe5e9;--paper:#f3f7f9;--white:#fff;font-family:system-ui,'Malgun Gothic',sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:10px 14px;font-weight:650}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #087bb9;outline-offset:3px}button:disabled{opacity:.55;cursor:not-allowed}a{color:#0871a0}h1{font-size:1.6rem;letter-spacing:-.045em;margin:4px 0 18px;line-height:1.25}h2{font-size:1.12rem;margin:0}h3{font-size:1rem;margin:0;line-height:1.4}p{line-height:1.6}small,.small{font-size:.8rem;line-height:1.5}.muted{color:var(--muted)}[hidden]{display:none!important}.top{height:76px;padding:12px 24px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:1.1rem;font-weight:800;flex:none}.brand small{display:block;font-size:.75rem;font-weight:500;color:var(--muted)}.brand-icon{display:grid;place-items:center;background:var(--navy);color:#fff;width:42px;height:42px;border-radius:13px;font-size:1.4rem}.top-actions{display:flex;gap:10px;align-items:center}.top-actions>span{font-size:.8rem;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(350px,440px) minmax(0,1fr);height:calc(100dvh - 145px)}.panel{overflow-y:auto;background:#fff;padding:26px 24px 36px;scroll-behavior:smooth}.page-title .eyebrow{color:#b24720;font-size:.78rem;letter-spacing:.08em;font-weight:750;margin:0}.profiles{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.profiles button{padding:12px 4px;font-size:.88rem}.profiles button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}.conditions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.conditions>label:first-child{grid-column:1/-1;display:flex;align-items:center;gap:14px}.conditions select{flex:1}.check{display:flex;align-items:center;gap:7px;font-size:.88rem;line-height:1.4}.check input{width:18px;height:18px;accent-color:var(--navy)}select,textarea{width:100%;min-height:44px;border:1px solid #b9cdd5;border-radius:9px;padding:8px;background:#fff;color:var(--ink)}.route-card{padding:16px;background:var(--paper);border-radius:16px;border:1px solid var(--line)}.route-card p{margin:0 0 12px;font-size:.92rem}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.stat strong{display:block;font-size:1.2rem;font-weight:800}.stat span{color:var(--muted);font-size:.78rem}.mix{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 8px}.chip{font-size:.8rem;padding:4px 8px;background:#fff;border:1px solid var(--line);border-radius:20px}.chip.empty{color:#768993}.actions{display:flex;gap:9px;margin:16px 0}.actions button{flex:1}.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.secondary{background:#fff;border-color:#8daebd}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-top:25px}.section-heading span{font-size:.85rem;color:var(--muted)}.stop-list{list-style:none;padding:0;margin:0}.stop-card{padding:17px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:30px 1fr;gap:11px}.stop-number{width:28px;height:28px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:.8rem;font-weight:800}.stop-card p{font-size:.88rem;margin:7px 0}.stop-card small{color:var(--muted);display:block}.stop-card .why{color:#18738a;margin-bottom:7px}.stop-actions{display:flex;gap:7px;margin-top:10px}.stop-actions button{font-size:.82rem;min-height:40px;padding:7px 10px}.stop-card.visited .stop-number{background:#146f63}.map-pane{position:relative;min-width:0;background:#dce8ed}.map-pane #map{height:100%;min-height:300px}.map-top,.map-bottom{position:absolute;z-index:500;display:flex;justify-content:space-between;align-items:center;gap:10px;left:18px;right:18px;pointer-events:none}.map-top{top:18px}.map-bottom{bottom:30px}.map-top span,.map-bottom span{background:#fff;padding:9px 14px;border-radius:12px;box-shadow:0 3px 18px #15374722;font-size:.88rem}.map-top button,.map-bottom select{pointer-events:auto;box-shadow:0 3px 18px #15374722}.map-bottom select{width:auto;max-width:185px;font-size:.8rem}.map-status{position:absolute;left:18px;right:18px;top:80px;z-index:600;background:#fff2cc;border-radius:10px;padding:12px;font-size:.88rem}.bottom-nav{height:69px;background:var(--navy);display:flex;justify-content:center;gap:6px;padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom));position:relative;z-index:600}.bottom-nav button{color:#d2e4ec;border:0;background:transparent;border-radius:9px;flex:1;max-width:190px;font-size:.88rem}.bottom-nav button[aria-current=page]{background:#fff;color:var(--navy)}.pin{width:28px;height:28px;border:2px solid #fff;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;box-shadow:0 2px 5px #0005}.pin.done{background:#146f63}.empty-state{padding:35px 18px;border:1px dashed #b8cdd6;border-radius:16px;text-align:center;margin:20px 0;color:var(--muted)}.saved-card,.record-card,.active-summary{border:1px solid var(--line);border-radius:15px;padding:16px;margin:15px 0;background:#fff}.saved-card p,.record-card p{font-size:.9rem;margin:9px 0}.saved-actions{display:flex;gap:7px;flex-wrap:wrap}.saved-actions button{font-size:.85rem}.badge{display:inline-block;font-size:.78rem;padding:4px 9px;border-radius:20px;background:#e9f0f4;color:var(--ink);margin:6px 0}.badge.field{background:#deeee9;color:#165948}.badge.demo{background:#fff0d3;color:#785211}.active-summary{background:var(--paper)}progress{width:100%;height:12px;accent-color:#157468;margin-top:12px}.active-summary .elapsed{font-size:.9rem}.records-filter label,.export-row label,dialog label{display:block;font-size:.9rem}.records-filter select,dialog select,dialog textarea{margin:7px 0 14px}.export-row{display:flex;gap:10px;align-items:end;margin:20px 0}.export-row label{flex:1}.export-row button{flex:1}.alert{background:#fff2cc;border-bottom:1px solid #ead78b;padding:12px 24px;font-size:.88rem}dialog{border:0;border-radius:20px;padding:26px;max-width:460px;width:calc(100% - 28px);color:var(--ink);box-shadow:0 20px 80px #10293855}dialog::backdrop{background:#0a263975}dialog h2{font-size:1.35rem;margin-bottom:10px}dialog p{font-size:.92rem}dialog .mode-option{display:flex;gap:10px;padding:15px 12px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.mode-option input{width:18px;height:18px;accent-color:var(--navy);flex:none}.mode-option small{display:block;margin-top:6px;color:var(--muted)}dialog details{font-size:.88rem;margin:16px 0}#toast{position:fixed;z-index:3000;bottom:85px;left:50%;transform:translateX(-50%);background:#102f40;color:#fff;border-radius:12px;padding:12px 18px;max-width:90vw;font-size:.9rem;box-shadow:0 5px 20px #0003}.leaflet-popup-content{font-size:14px;line-height:1.5}.leaflet-control-zoom{margin-top:85px!important}.leaflet-control-attribution{font-size:11px!important}
@media(max-width:760px){.top{height:68px;padding:10px 14px}.top-actions{gap:6px}.top-actions>span{display:none}.top-actions button{font-size:.8rem;padding:8px 10px}.workspace{height:auto;display:flex;flex-direction:column}.panel{overflow:visible;padding:22px 18px 28px;order:2}.map-pane{height:33dvh;min-height:245px;order:1}.map-pane #map{min-height:245px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:calc(64px + env(safe-area-inset-bottom));padding-bottom:max(8px,env(safe-area-inset-bottom))}.workspace{padding-bottom:76px}.bottom-nav button{font-size:.78rem;padding:8px 4px}.map-top{top:12px;left:12px;right:12px}.map-bottom{bottom:22px;left:12px;right:12px}.map-top span,.map-bottom span{font-size:.78rem;padding:7px 10px}.map-bottom select{min-height:34px;padding:5px}.map-status{top:65px;left:12px;right:12px;font-size:.8rem}.brand{font-size:1rem}.brand small{font-size:.7rem}.brand-icon{width:38px;height:38px}.profiles button{font-size:.85rem}.stat strong{font-size:1.12rem}.leaflet-control-zoom{display:none}.page-title h1{font-size:1.5rem}body[data-view=records] .map-pane,body[data-view=saved] .map-pane{display:none}}@media(prefers-reduced-motion:reduce){.panel{scroll-behavior:auto}}

.simulation{padding:16px;margin-bottom:24px;border:1px solid #9ec5ef;border-radius:16px;background:#f0f7ff}.simulation .section-heading{margin-top:0}.sim-controls{display:flex;flex-wrap:wrap;gap:6px}.sim-controls button{font-size:.82rem;flex:1}.sim-options{display:flex;align-items:center;gap:16px;margin-top:12px}.sim-options>label:first-child{display:flex;align-items:center;gap:8px;font-size:.8rem}.sim-options select{width:85px}.sim-story{background:white;border-radius:12px;padding:12px;margin-top:12px}.sim-story h3{margin-top:8px}.sim-story p{font-size:.88rem}.virtual-position{background:#1677ff;border:4px solid white;border-radius:50%;box-shadow:0 0 0 10px #1677ff25,0 2px 10px #12394a66}body[data-view=saved] .simulation,body[data-view=records] .simulation{display:none}

#map3d{position:absolute;inset:0;width:100%;height:100%}.scene-info{padding:16px;border-radius:16px;background:#f4eee5;margin-bottom:16px}.scene-info label{display:block;margin:10px 0}.scene-info .check{display:flex}.scene-stop{min-height:28px;width:28px;height:28px;padding:0;border-radius:50%;border:2px solid white;background:#e96532;color:white;font-size:12px;box-shadow:0 2px 6px #0005}.scene-person{width:34px;height:34px;border:3px solid white;border-radius:50%;background:#1677ff;color:white;text-align:center;line-height:28px;box-shadow:0 0 0 8px #1677ff33;font-weight:700}.maplibregl-ctrl-top-right{top:75px}.maplibregl-popup-content{color:#153747;max-height:240px;overflow:auto}.maplibregl-popup-content p{font-size:13px}.map-top #map-label{flex:1;min-width:0}.map-top button{font-size:.8rem;white-space:nowrap;padding:8px}.map-top{gap:6px}body[data-view=saved] .scene-info,body[data-view=records] .scene-info{display:none}@media(max-width:760px){.map-pane:has(#map3d:not([hidden])){height:48dvh;min-height:330px}.map-top #map-label{max-width:40%;font-size:.7rem}.maplibregl-popup-content{max-width:220px}}

.representative{margin:12px 0}.representative img{width:100%;max-height:220px;object-fit:contain;border-radius:12px;background:#eef2f4}.representative a{display:block;font-size:.72rem}#journal-preview,#book-card{width:100%;max-height:500px;object-fit:contain;border-radius:12px}#book-dialog{max-width:700px}#book-list article{padding:16px 0;border-bottom:1px solid #dbe5e9}#book-list img{width:100%;max-height:250px;object-fit:contain;margin-top:12px}#book-list label{display:flex;gap:10px;align-items:center}#book-list a{display:block;margin:8px 0}dialog input:not([type=checkbox]):not([type=radio]){width:100%;padding:10px;border:1px solid #b9cdd5;border-radius:9px;margin:8px 0}dialog{max-height:90dvh;overflow:auto}.stop-actions{flex-wrap:wrap}

.journey-legend{display:flex;align-items:center;gap:10px;font-size:12px;margin:12px 0}.journey-legend i{flex:1;height:8px;border-radius:8px;background:linear-gradient(90deg,#5c9e99,#d6a65c,#c46b4a)}#vworld-clean{width:100%;accent-color:#c58d55}#vworld-clean-value{float:right;font-size:12px;color:#5c6e73}

/* Person icon: feet identify the position; upright in both map views. */
.virtual-position,.scene-person{width:44px;height:56px;background:transparent;border:0;border-radius:0;box-shadow:none;line-height:normal}.virtual-position img,.scene-person img{display:block;width:44px;height:56px;filter:drop-shadow(0 2px 2px #12394a55)}
/* Map-first UI: floating controls and location-anchored story cards. */
.workspace{display:block;position:relative;height:calc(100dvh - 145px);padding:0}
.workspace>.map-pane{display:block!important;height:100%!important;min-height:0;position:absolute;inset:0}
.workspace>.panel{position:absolute;z-index:900;top:138px;left:18px;width:min(390px,calc(100% - 36px));max-height:calc(100% - 154px);padding:16px;border:1px solid #dbe5e9;border-radius:20px;box-shadow:0 12px 44px #12394a30;overflow:auto;background:#fffffff5;backdrop-filter:blur(12px)}
.panel>section{display:none}.panel[data-panel=main]>.view:not([hidden]),.panel[data-panel=scene]>.scene-info:not([hidden]),body .panel[data-panel=simulation]>.simulation{display:block}
#panel-close{display:block;margin:0 0 12px auto;position:sticky;top:0;z-index:2;min-height:36px;padding:6px 12px}.panel .scene-info,.panel .simulation{margin:0;border:0;padding:0;background:transparent}
.map-tools{position:absolute;top:78px;left:18px;z-index:700;display:flex;gap:8px;flex-wrap:wrap}.map-tools button{box-shadow:0 4px 18px #12394a20;font-size:.85rem}
.scene-person{z-index:500!important;pointer-events:none}.scene-stop{z-index:10}.maplibregl-popup{z-index:600}.route-story-popup .maplibregl-popup-content{max-height:min(420px,60dvh);padding:20px;border-radius:18px;box-shadow:0 12px 40px #12394a35}.route-story-popup .leaflet-popup-content{margin:18px;width:290px!important;max-width:calc(100vw - 80px)}
.map-story{animation:story-enter .22s ease-out}.map-story h3{font-size:1.18rem;margin:8px 0}.map-story>small{color:#507f80;font-weight:700}.map-story .story-content>p{font-size:.94rem;line-height:1.75;margin:10px 0}.story-nav{display:flex;gap:7px;margin:10px 0}.story-nav button{flex:1;font-size:.8rem;padding:8px;min-height:40px}.map-story progress{margin-top:2px;height:5px}.map-story details{font-size:.8rem}.map-story figure{margin:8px 0}.map-story img{max-height:110px;object-fit:cover}.story-stop-index{display:grid;gap:8px;margin:12px 0}.story-stop-index button{text-align:left}.maplibregl-ctrl-top-right{top:136px}.panel #sim-story{display:none}
@keyframes story-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.workspace{height:calc(100dvh - 132px)}.map-tools{left:10px;right:10px;top:68px;gap:5px}.map-tools button{font-size:.72rem;padding:7px 9px;min-height:38px}.workspace>.panel{top:auto;bottom:12px;left:10px;width:calc(100% - 20px);max-height:58dvh}.map-top #map-label{display:none}.map-top{justify-content:flex-end}.map-bottom{bottom:12px}.route-story-popup .maplibregl-popup-content{max-height:48dvh;padding:14px}.map-story .story-content>p{font-size:.85rem}.maplibregl-ctrl-top-right{top:115px}}
@media(prefers-reduced-motion:reduce){.map-story{animation:none}}

.leaflet-control-zoom{margin-top:150px!important}
.map-story:focus{outline:none}

/* Place photos remain visible when a story opens; retain the complete photograph. */
.representative figcaption{display:flex;flex-wrap:wrap;gap:2px 9px;margin-top:4px;line-height:1.35}
.representative figcaption small{flex-basis:100%;font-size:.7rem}
.map-story .representative img{display:block;width:100%;height:175px;max-height:none;object-fit:cover;object-position:center;background:#edf1ee;border-radius:10px}
.map-story .representative figcaption a{font-size:.65rem;color:#526e77}
.route-story-popup .maplibregl-popup-content{max-height:min(570px,calc(100dvh - 290px));overflow-y:auto}
.route-story-popup .leaflet-popup-content{max-height:calc(100dvh - 290px);overflow-y:auto}
@media(max-width:760px){.map-story .representative img{height:140px}.route-story-popup .maplibregl-popup-content,.route-story-popup .leaflet-popup-content{max-height:calc(100dvh - 270px)}}

/* The plan shows each place photograph before the story text. */
.stop-card .representative{margin:10px 0 8px}
.stop-card .representative img{display:block;width:100%;height:150px;max-height:none;object-fit:contain;border-radius:11px;background:#edf1ee}
.stop-card .representative figcaption{margin-top:5px}
.stop-card .representative figcaption a,.stop-card .representative figcaption small{font-size:.67rem;line-height:1.35}
@media(max-width:760px){.stop-card .representative img{height:138px}}

/* Route editing keeps recalculated context beside the map. */
.route-card h2{font-size:1.02rem;margin-bottom:7px}.route-card #storyline-summary{color:#315965}
.route-editor{margin:16px 0 10px;padding:14px;border:1px solid #b8d2d6;border-radius:15px;background:#f1f8f7}.route-editor .section-heading{margin:0;gap:8px}.route-editor .section-heading button{font-size:.75rem;min-height:34px;padding:5px 8px}.route-editor p{margin:8px 0;color:#45636c}.route-add{display:flex;align-items:end;gap:7px}.route-add label{flex:1;font-size:.78rem}.route-add select{margin-top:5px}.route-add button{white-space:nowrap;font-size:.8rem}
.stop-edit{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.stop-edit button{min-height:34px;padding:5px 8px;font-size:.75rem}.stop-edit .remove-stop{color:#a8462b;border-color:#e9bba9}

/* Quiet navigation dock with a clear current section. */
.bottom-nav{height:69px;gap:8px;padding:8px max(16px,env(safe-area-inset-right)) 9px max(16px,env(safe-area-inset-left));background:#f9fbfb;border-top:1px solid #d8e4e7;box-shadow:0 -4px 18px #12394a12}
.bottom-nav button{display:flex;align-items:center;justify-content:center;gap:9px;max-width:180px;min-height:50px;padding:8px 12px;border:1px solid transparent;border-radius:14px;background:transparent;color:#55717c;font-size:.85rem;font-weight:700;transition:background .18s,color .18s,transform .18s}
.bottom-nav button svg{display:block;width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav button:hover:not([aria-current=page]){background:#eaf2f4;color:#12394a}
.bottom-nav button[aria-current=page]{background:#12394a;color:#fff;box-shadow:0 4px 12px #12394a35}
.bottom-nav button:active{transform:scale(.97)}
@media(max-width:760px){.workspace{height:calc(100dvh - 140px - env(safe-area-inset-bottom))}.bottom-nav{height:calc(72px + env(safe-area-inset-bottom));gap:4px;padding:7px 8px calc(7px + env(safe-area-inset-bottom))}.bottom-nav button{flex-direction:column;gap:2px;min-width:0;min-height:56px;padding:5px 3px;border-radius:12px;font-size:.7rem;line-height:1.2;white-space:nowrap}.bottom-nav button svg{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){.bottom-nav button{transition:none}}

/* Keep the plan scannable; calculations and editing controls open on demand. */
.route-card{padding:18px;background:#fff;box-shadow:0 3px 14px #12394a0b}
.route-card h2{font-size:1.12rem;line-height:1.4;margin-bottom:8px}
.route-card #storyline-summary{font-size:.93rem;line-height:1.55;margin-bottom:13px}
.route-card .stats{margin:0;gap:12px}.route-card .stat strong{font-size:1.32rem}.route-card .stat span{font-size:.82rem}
.route-evidence{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}.route-evidence summary{font-size:.85rem;font-weight:700;color:#30667b;cursor:pointer}.route-evidence>p{font-size:.85rem;margin:10px 0}.route-evidence .mix{margin:10px 0}
.route-editor{background:#f1f8f7;padding:0}.route-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:12px 15px;list-style:none;font-weight:750;cursor:pointer}.route-editor>summary::-webkit-details-marker{display:none}.route-editor>summary::after{content:'＋';color:#1f6571;font-size:1.2rem;font-weight:500}.route-editor[open]>summary::after{content:'−'}
.route-editor>summary span{margin-left:auto;padding:3px 8px;border-radius:12px;background:#d8eeeb;color:#1f655e;font-size:.76rem}.route-editor-body{padding:0 15px 15px;border-top:1px solid #d8e9e7}.route-editor-body>p{font-size:.84rem;line-height:1.5;margin:11px 0}.route-editor-body>#reset-plan{width:100%;margin-top:10px;font-size:.8rem;min-height:36px}.route-add{margin-top:12px}
.stop-card .stop-meta{margin-top:8px}.stop-card .stop-meta summary{font-size:.82rem;font-weight:650;color:#427084;cursor:pointer}.stop-card .stop-meta p{font-size:.82rem;color:var(--muted);margin:6px 0 0}.stop-edit{display:none}#view-explore.editing .stop-edit{display:flex}

/* v31: concise course overview */
.stop-card .representative img{object-fit:cover;object-position:center}.profiles{margin-bottom:18px}.stats{grid-template-columns:.85fr 1.3fr .85fr;gap:6px}.stats .stat strong{font-size:1rem;letter-spacing:-.04em}.experience-mix{border-top:1px solid var(--line);padding-top:12px}.experience-mix h3{font-size:.82rem;font-weight:650}.experience-mix .mix{margin:9px 0 0}.experience-mix .chip{font-size:.75rem;padding:5px 7px}.experience-mix .chip:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--type-color);margin-right:5px}
/* v33: map controls grouped; navigation lives in the bottom bar. */
.map-top{right:auto;max-width:calc(100% - 255px);pointer-events:none}
.map-top #map-label{flex:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.map-tools{top:18px;left:auto;right:18px;flex-wrap:nowrap;align-items:start}
.map-options{position:relative;order:2}
.map-options>summary{list-style:none;cursor:pointer;background:white;border:1px solid var(--line);border-radius:12px;padding:12px 15px;font-size:.85rem;font-weight:650;box-shadow:0 4px 18px #12394a20}
.map-options>summary::-webkit-details-marker{display:none}
.map-options>summary:after{content:'⌄';margin-left:10px}
.map-options-menu{position:absolute;right:0;top:52px;width:170px;padding:7px;display:grid;gap:5px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px #12394a25}
.map-options-menu button{text-align:left;box-shadow:none}
.workspace>.panel{top:78px;max-height:calc(100% - 94px)}
.maplibregl-ctrl-top-right{top:78px}
@media(max-width:760px){.map-tools{right:10px;gap:5px}.map-top{max-width:calc(100% - 235px)}.map-tools button,.map-options>summary{font-size:.75rem;padding:10px}.workspace>.panel{top:76px;max-height:calc(100% - 90px)}}
/* v34: centered map toolbar */
.map-top{display:none!important}
.map-tools{left:50%;right:auto;transform:translateX(-50%);width:max-content}
/* v35: a single floating navigation, with saved routes and records in the course panel. */
body{padding-bottom:0}.workspace{height:calc(100dvh - 76px)}
.map-tools{padding:6px;gap:4px;background:#fffffff2;border:1px solid #dbe5e9;border-radius:18px;box-shadow:0 6px 24px #12394a24;backdrop-filter:blur(12px)}
.map-tools>button,.map-options>summary{border:0;box-shadow:none;background:transparent;white-space:nowrap;padding:12px;min-height:44px}
.map-tools>button{display:flex;align-items:center;gap:7px}
.map-tools svg,.course-tabs svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body:is([data-view=explore],[data-view=saved],[data-view=records]) .map-tools>[data-view=explore],.map-tools>[data-view=walk][aria-current=page]{background:#12394a;color:white}
.course-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:18px}
.course-tabs button{flex:1;min-width:0;padding:9px 5px;font-size:.76rem;border:0;background:#f0f5f6;white-space:nowrap}
.course-tabs button[aria-current=page]{background:#12394a;color:white}.course-tabs svg{display:none}
.panel:not([data-panel=main])>.course-tabs{display:none}
.workspace>.panel{top:88px;max-height:calc(100% - 104px)}
@media(max-width:760px){.workspace{height:calc(100dvh - 68px)}.map-tools{max-width:calc(100% - 16px);gap:0;padding:4px}.map-tools>button,.map-options>summary{font-size:.73rem;padding:10px 8px}.map-tools svg{display:none}.workspace>.panel{top:82px;max-height:calc(100% - 98px)}}
/* Leave room for the map toolbar above tall story cards. */
.route-story-popup .maplibregl-popup-content{max-height:min(420px,45dvh)}

.miniature-frame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:1500;background:#f2ede3}

body.miniature-active .map-bottom,body.miniature-active .leaflet-control-container{visibility:hidden}
.map-tools,.map-top{z-index:1600}.workspace>.panel{z-index:1700}
.map-view-switch{display:flex;gap:3px}.map-view-switch button{border:0;background:transparent;white-space:nowrap;padding:12px}
.map-view-switch button[aria-pressed=true]{background:#12394a;color:white}
body.miniature-active .map-top{pointer-events:none;background:#ffffffe0}
/* Reserve actual space for the course panel and the shared toolbar. */
@media(min-width:761px){
 .workspace{display:grid;grid-template-columns:390px minmax(0,1fr);position:relative}
 .workspace:has(>.panel[hidden]){grid-template-columns:minmax(0,1fr)}
 .workspace>.panel{position:relative;inset:auto;width:auto;height:100%;max-height:none;border-radius:0;box-shadow:none;z-index:1700}
 .workspace>.map-pane{position:relative;inset:auto;min-width:0;width:100%;height:100%;grid-column:2}
 .workspace:has(>.panel[hidden])>.map-pane{grid-column:1}
}
.miniature-frame{top:78px;height:calc(100% - 78px);bottom:0}
body.miniature-active .map-pane{background:#f2ede3}
body.miniature-active #map{visibility:hidden}
body.unified-active #map{visibility:hidden;pointer-events:none}
#unified-map{position:absolute;inset:0;z-index:1200}
.unified-status{position:absolute;z-index:1550;left:50%;top:160px;transform:translateX(-50%);padding:12px;background:white;border-radius:12px}
.unified-scene-tools{display:none;position:absolute;top:80px;left:12px;right:12px;z-index:1500;gap:5px;overflow-x:auto;padding:5px;background:#ffffffe8;border-radius:12px}
body.miniature-active .unified-scene-tools{display:flex}
.unified-scene-tools>*{flex-shrink:0;width:auto;min-height:38px;font-size:12px;padding:8px 10px}
.unified-place{background:#fff8ee;border:2px solid #f3a06c;color:#843f25;min-height:30px;width:30px;padding:0;border-radius:50%;font-size:13px}
.unified-person{color:#f45c2b;font-size:24px;text-shadow:0 0 2px white}
#unified-map .maplibregl-popup{z-index:1400}
.sidebar-toggle{display:none;position:absolute;top:12px;left:12px;z-index:1800;font-size:13px}
.workspace:has(>.panel[hidden])>.sidebar-toggle{display:block}
#route-stats{grid-template-columns:1fr 1fr;margin-top:0}
#route-stops{position:relative;list-style:none;padding:0;margin:14px 0}
#route-stops:before{content:"";position:absolute;left:14px;top:14px;bottom:24px;width:2px;background:#d6b79f}
#route-stops .stop-card{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;background:transparent;border:0;border-radius:0;border-bottom:0;padding:0 0 26px;margin:0}
#route-stops .stop-number{position:relative;z-index:1;box-shadow:0 0 0 4px white}
#route-stops .stop-card h3[role=button]{cursor:pointer}
#route-stops .stop-card h3[role=button]:focus-visible{outline:2px solid #087bb9;outline-offset:4px}
#route-stops .stop-actions:empty{display:none}
#panel-close{min-width:36px;padding:4px 10px;font-size:24px}
.route-story-popup .maplibregl-popup-content{max-height:none;overflow:visible;padding:16px}
#unified-map .route-story-popup{left:auto;right:16px;top:88px;transform:none!important;width:min(360px,calc(100% - 24px));max-width:360px!important}
#unified-map .route-story-popup .maplibregl-popup-tip{display:none}
.route-story-popup .map-story .representative img{height:150px}
.route-story-popup .map-story .story-content>p{font-size:14px;line-height:1.6}
@media(max-height:700px){
 .route-story-popup .maplibregl-popup-content{padding:12px}
 .route-story-popup .map-story .representative img{height:80px}
 .route-story-popup .map-story .story-content>p{font-size:12px;line-height:1.45;margin:7px 0}
 .route-story-popup .story-nav{margin:6px 0}
 .route-story-popup .story-nav button{min-height:32px;padding:5px}
}
body.unified-active .map-bottom{z-index:1500}
@media(max-width:760px){.unified-scene-tools{top:100px}}
.map-tools{top:10px;max-width:calc(100% - 16px);flex-wrap:wrap;justify-content:center}
@media(max-width:760px){
 .map-tools{width:calc(100% - 16px);gap:2px;padding:3px}
 .map-tools>button,.map-options>summary,.map-view-switch button{font-size:11px;padding:8px 6px;min-height:36px}
 .workspace>.panel{top:auto;bottom:0;left:0;width:100%;max-height:46%;border-radius:18px 18px 0 0}
 .map-tools svg{display:none}
 .miniature-frame{top:100px;height:calc(100% - 100px)}
 .workspace:has(>.panel:not([hidden]))>.map-pane{height:54%}
}

.unified-person{width:48px;height:62px;z-index:20;pointer-events:none;font-size:0;text-shadow:none;filter:drop-shadow(0 4px 5px #12394a66)}.unified-person img{display:block;width:48px;height:62px}

@media(max-width:760px){#unified-map .route-story-popup{right:12px;top:auto;bottom:78px;width:min(320px,calc(100% - 24px))}.route-story-popup .map-story .representative img{height:100px}}

.preview-speed{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;margin:0}.preview-speed select{width:auto;min-height:36px;padding:6px 8px;margin:0}

.custom-course-actions{display:flex;align-items:end;gap:8px;margin:12px 0}.custom-course-actions label{flex:1;font-size:12px}.custom-course-actions input{width:100%;margin-top:5px}.custom-course-actions button{white-space:nowrap}

.profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.profiles button{padding:10px 8px}

body.unified-active .map-bottom,body.unified-active .map-top{display:none}
#unified-map .maplibregl-ctrl-top-right{top:12px;right:12px}
#unified-map .maplibregl-ctrl-top-right .maplibregl-ctrl{margin:0 0 8px}
#unified-map .maplibregl-ctrl-group{border:1px solid #dbe5e9;border-radius:12px;box-shadow:0 3px 12px #12394a18;overflow:hidden}
#unified-map .maplibregl-ctrl-group button{width:42px;height:42px;min-height:42px}
body:not(.miniature-active) #unified-map .maplibregl-ctrl-compass{display:none}
.basemap-control{position:relative;clear:both;float:right}
.basemap-control>button{display:grid;place-items:center;width:42px;height:42px;min-height:42px;padding:10px;border-radius:12px;box-shadow:0 3px 12px #12394a18}
.basemap-control svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.basemap-menu{position:absolute;right:50px;top:0;width:190px;padding:12px;background:white;border:1px solid #dbe5e9;border-radius:12px;box-shadow:0 4px 18px #12394a25}
.basemap-menu label{font-size:12px}.basemap-menu select{margin-top:6px;font-size:13px}
body:not(.miniature-active) .unified-person,body:not(.miniature-active) .unified-person img{width:30px;height:39px}
#unified-map .route-story-popup{right:70px}

.account-dialog{width:min(420px,calc(100vw - 32px));padding:26px;border:1px solid #d5e3e9;border-radius:20px;color:#12394a;box-shadow:0 20px 70px #12394a30}.account-dialog::backdrop{background:#12394a55}.account-dialog h2{font-size:21px;margin:0 28px 16px 0}.account-dialog p{line-height:1.7}.account-dialog .small{padding:14px;background:#f0f6f7;border-radius:12px}.account-close{position:absolute;right:12px;top:12px;border:0;font-size:20px}.account-dialog #google-signin{margin:20px 0}.account-dialog #account-status{font-size:14px;color:#52727f}

.account-links{font-size:13px}.account-links a{color:#167c85}.account-dialog #account-retry{margin-right:8px}
.account-dialog h2{margin-bottom:10px}.account-dialog p{margin:12px 0;line-height:1.6}.account-dialog .small{padding:12px;font-size:13px}.account-dialog #google-signin{margin:16px 0}.account-dialog #account-status:empty,.account-dialog #account-sync-status:empty{display:none}.account-dialog .account-links{margin:16px 0 0;font-size:12px;color:#52727f}.account-links a{display:inline-block;margin-top:4px}
.viewpoint-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round}.viewpoint-toggle[aria-pressed="true"]{color:#16838a}

.tourism-landmark-pin{border:0;background:transparent;padding:0;width:28px;height:38px;overflow:visible;filter:drop-shadow(0 2px 3px #12394a55);cursor:pointer}.tourism-landmark-pin svg{width:26px;height:35px;fill:#16858e;stroke:white;stroke-width:1.6}.tourism-landmark-pin .building{fill:none;stroke-width:1.3}.tourism-landmark-pin span{display:none;position:absolute;bottom:40px;left:50%;transform:translateX(-50%);white-space:nowrap;background:white;color:#12394a;padding:6px 10px;border-radius:8px;font-size:12px;box-shadow:0 3px 12px #12394a22}.tourism-landmark-pin:hover span,.tourism-landmark-pin:focus-visible span{display:block}.tourism-landmark-pin:hover,.tourism-landmark-pin:focus-visible{z-index:20}.tourism-place-card h3{font-size:17px;margin:4px 18px 12px 0}.tourism-place-card img{width:100%;height:125px;object-fit:cover;border-radius:9px}.tourism-place-card p{line-height:1.6;font-size:13px}.tourism-place-card button{width:100%}.tourism-map-notice{position:absolute;bottom:80px;left:50%;transform:translateX(-50%);background:white;padding:9px 14px;border-radius:10px;font-size:13px;z-index:5}.tourism-place-popup .maplibregl-popup-content{padding:16px;border-radius:14px}

.tourism-place-popup .maplibregl-popup-content{max-height:none;overflow:visible}.tourism-place-card .small:empty{display:none}

.tourism-place-photo{margin:0;min-height:100px;background:#eff5f6;border-radius:9px;overflow:hidden;font-size:12px;color:#587782}.tourism-place-photo figcaption{padding:3px 6px;font-size:10px}.tourism-place-photo img{display:block;border-radius:0}

/* Shared place discovery, with a quiet, legible walking map in 2D. */
.tourism-landmark-pin{width:32px;height:40px;min-height:40px;filter:drop-shadow(0 2px 2px #12394a25)}
.tourism-landmark-pin svg{width:32px;height:40px;stroke-width:1.7}
.tourism-landmark-pin .building{fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tourism-landmark-pin.selected{z-index:45}.tourism-landmark-pin.selected svg{fill:#104f59;stroke-width:2.5}
.tourism-landmark-pin.show-label span{display:block;left:36px;bottom:7px;transform:none;padding:4px 7px;max-width:190px;overflow:hidden;text-overflow:ellipsis;font-size:11px;box-shadow:0 1px 4px #12394a12}
.tourism-landmark-pin:hover,.tourism-landmark-pin:focus-visible{z-index:50}
.tourism-landmark-pin:hover span,.tourism-landmark-pin:focus-visible span{display:block;max-width:none;overflow:visible;background:#12394a;color:white}
.tourism-cluster{display:flex;align-items:center;gap:5px;min-height:34px;border:2px solid white;border-radius:11px;background:#187b85;color:white;padding:5px 9px;font-size:12px;box-shadow:0 2px 6px #12394a30;white-space:nowrap}
.tourism-cluster::before{content:'';width:9px;height:9px;border:1.5px solid currentColor;border-radius:3px;box-shadow:-3px -3px 0 -1px #187b85,-3px -3px 0 0 currentColor}
.tourism-cluster:hover,.tourism-cluster:focus-visible{background:#104f59;z-index:40}
.tourism-cluster.selected{background:#104f59;outline:2px solid #16858e;outline-offset:2px;z-index:40}
.map-pane:has(.nearby-overlay:not([hidden])) .tourism-landmark-pin,.map-pane:has(.nearby-overlay:not([hidden])) .tourism-cluster,.map-pane:has(.nearby-overlay:not([hidden])) .tourism-place-popup{display:none}
.tourism-group-list{display:grid;gap:6px;max-height:min(380px,50dvh);overflow-y:auto;padding:2px}
.tourism-group-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:12px;font-size:13px;min-height:44px}
.tourism-group-list small{white-space:nowrap;font-size:11px;color:#587782}
.tourism-category{display:block;color:#16858e;margin:-5px 0 12px;font-size:12px}
#unified-map .tourism-place-popup{left:auto;right:70px;top:88px;transform:none!important;width:300px;max-width:calc(100% - 90px)!important}
.tourism-place-popup .maplibregl-popup-tip{display:none}
.tourism-place-card .primary{margin-top:4px;min-height:42px}
.tourism-place-photo{margin-top:10px}
.unified-place{overflow:visible;z-index:15}.unified-place b{font-weight:650}
.unified-place span{display:none;position:absolute;left:50%;bottom:36px;transform:translateX(-50%);padding:6px 10px;white-space:nowrap;border-radius:8px;background:#12394a;color:white;font-size:12px;font-weight:500;box-shadow:0 2px 8px #12394a22;pointer-events:none}
.unified-place:hover,.unified-place:focus-visible,.unified-place.selected{z-index:55}
.unified-place:hover span,.unified-place:focus-visible span,.unified-place.selected span{display:block}
body:not(.miniature-active) .unified-place{background:#e86b32;color:white;border:2px solid white;box-shadow:0 1px 5px #80412825;font-size:12px;width:29px;min-height:29px}
body:not(.miniature-active) .unified-place.selected{background:#a44320}
.tourism-landmark-pin:focus-visible,.tourism-cluster:focus-visible,.unified-place:focus-visible{outline:3px solid #1e6578;outline-offset:3px}
@media(max-width:760px){#unified-map .tourism-place-popup{top:auto;bottom:80px;right:12px;width:min(320px,calc(100% - 24px));max-width:calc(100% - 24px)!important}.tourism-place-card img{height:110px}.tourism-group-list{max-height:32dvh}}

/* WalkNavi header: keep the tagline readable alongside account controls. */
@media(max-width:480px){.top{gap:8px}.brand{gap:8px;font-size:1rem;flex:1;min-width:0}.brand-icon{width:34px;height:34px;flex:none;font-size:1.25rem}.brand>span:last-child{min-width:0}.brand small{font-size:.65rem;line-height:1.35;max-width:170px}.top-actions{flex:none;gap:5px}.top-actions button{padding:7px 8px;min-height:38px}}

/* Small phones: reserve independent touch controls and keep story actions visible. */
.sidebar-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;vertical-align:middle}.sidebar-toggle span{margin-left:6px}
@media(max-width:760px){
 body.unified-active .map-tools{left:62px;right:auto;transform:none;width:max-content;max-width:calc(100% - 124px);top:12px;flex-wrap:nowrap;gap:2px;padding:4px}
 .map-tools>button,.map-view-switch button{min-width:44px;min-height:44px;font-size:12px;padding:8px 6px}
 .map-view-switch{gap:2px}
 .sidebar-toggle{width:44px;height:44px;min-height:44px;padding:10px}
 .sidebar-toggle span{display:none}
 .workspace:has(>.panel[hidden])>.sidebar-toggle{display:grid;place-items:center}
 #panel-close{width:44px;min-height:44px}
 .preview-speed{gap:4px;font-size:12px}
 .preview-speed select{width:64px;min-height:44px;font-size:12px;margin:0;padding:6px}
 #unified-map .route-story-popup,#unified-map .tourism-place-popup{left:12px;right:64px;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;max-width:none!important;transform:none!important}
 #unified-map .route-story-popup .maplibregl-popup-content,#unified-map .tourism-place-popup .maplibregl-popup-content{width:100%;max-width:none;padding:12px;overflow:hidden;border-radius:16px}
 .route-story-popup .map-story{display:flex;flex-direction:column;max-height:min(340px,calc(100dvh - 320px - env(safe-area-inset-bottom)))}
 .map-story>small,.map-story>h3,.map-story>progress,.story-controls{flex:none}
 .map-story>small{font-size:10px;line-height:1.4;padding-right:16px}
 .map-story h3{font-size:16px;line-height:1.4;margin:6px 0 8px}
 .story-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
 .story-content::-webkit-scrollbar{display:none}
 .route-story-popup .map-story .representative img{height:100px}
 .map-story .story-content>p{font-size:13px;line-height:1.65;margin:8px 0}
 .story-controls{display:grid;gap:6px;margin-top:6px}
 .story-controls .story-nav{margin:0;gap:6px}
 .story-controls button{min-height:44px;font-size:12px;padding:7px}
 #unified-map .tourism-place-popup .maplibregl-popup-content{max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain}
 .tourism-place-card .primary{min-height:44px;position:sticky;bottom:0}
 .tourism-place-card h3{overflow-wrap:anywhere}
 .account-dialog{max-height:calc(100dvh - 24px);overflow-y:auto;padding:20px;overscroll-behavior:contain}
 .account-dialog h2{font-size:19px}.account-dialog p{font-size:14px}
 .top-actions button{min-height:44px}
}
@media(max-width:360px){.brand small{font-size:10px}.brand-icon{width:30px;height:34px}.brand{gap:6px}.top{padding:10px}.top-actions button{padding:7px 6px;font-size:12px}}
@media(max-width:760px) and (max-height:600px){.route-story-popup .map-story .representative img{height:80px}.workspace>.panel{max-height:52%;padding:12px 16px 24px}}

@media(max-width:760px){#unified-map .maplibregl-popup-close-button{width:44px;height:44px;min-height:44px;right:2px;top:2px;font-size:20px;border-radius:12px}.map-story>small{padding-right:34px}.map-story h3{padding-right:26px}}

@media(max-width:760px){.route-story-popup .story-controls button,.route-story-popup .story-content button{min-height:44px}.story-content:focus-visible{outline:2px solid #16858e;outline-offset:-2px}}

@media(max-width:760px){#unified-map .maplibregl-ctrl-top-right{z-index:1450}#unified-map .maplibregl-ctrl-group button,.basemap-control>button{width:44px;height:44px;min-height:44px}}

/* Mobile course sheet reserves map space rather than covering the route. */
.sheet-grip{display:none}.top-actions svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.top-actions #account,.top-actions #about{display:flex;align-items:center;justify-content:center;gap:7px}
@media(max-width:760px){
 .top-actions #account,.top-actions #about{width:44px;height:44px;padding:10px;border:0;background:transparent;border-radius:50%}
 .top-actions #account span,.top-actions #about span{display:none}
 .workspace>.panel{top:auto;bottom:0;left:0;width:100%;height:var(--sheet-height);max-height:none;padding:0 16px calc(24px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;backdrop-filter:none;background:#fff;overscroll-behavior:contain;scrollbar-width:none}
 .workspace>.panel::-webkit-scrollbar{display:none}
 .panel #panel-close{display:none}
 .sheet-grip{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;width:calc(100% + 32px);height:64px;margin:0 -16px 12px;padding:8px 18px 10px;border:0;border-bottom:1px solid var(--line);border-radius:20px 20px 0 0;background:#fff;touch-action:none;cursor:grab;font-size:13px}
 .sheet-grip i{display:block;flex-basis:100%;height:4px;margin:0 calc(50% - 20px) 7px;background:#bfccd1;border-radius:6px}
 .sheet-grip svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
 .panel[data-sheet=full]{border-radius:0}.panel[data-sheet=full] .sheet-grip{border-radius:0}.panel[data-sheet=full] .sheet-grip svg{transform:rotate(180deg)}
 .panel[data-sheet=collapsed]{overflow:hidden;padding-bottom:0}.panel[data-sheet=collapsed]>*:not(.sheet-grip){display:none!important}
 .workspace>.map-pane{height:calc(100% - var(--sheet-height,0px))!important;bottom:auto}
 .workspace[data-sheet=full]>.map-pane{height:100%!important;visibility:hidden}
 body.unified-active .map-tools{position:static;inset:auto;transform:none;width:44px;max-width:none;padding:0;display:flex;flex-direction:column;gap:8px;flex-wrap:nowrap;background:transparent;border:0;box-shadow:none;backdrop-filter:none}
 .map-tools>button,.map-view-switch button{display:grid;place-items:center;width:44px;height:44px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 18px #12394a20}
 .map-tools>[data-view=walk] span{display:none}.map-tools svg{display:block;width:22px;height:22px}
 .map-view-switch{display:block}.map-view-switch button[aria-pressed=true]{display:none}
}

/* Show the complete course summary before the sheet is expanded. */
@media(max-width:760px){
 .workspace>.panel{padding-left:12px;padding-right:12px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}
 .sheet-grip{height:44px;min-height:44px;width:calc(100% + 24px);margin:0 -12px 4px;padding:4px 14px 6px;font-size:12px}
 .sheet-grip i{height:3px;margin-bottom:3px}.sheet-grip svg{width:18px;height:18px}
 .panel .profiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:4px}
 .panel .profiles button{min-height:44px;padding:5px 2px;font-size:12px;line-height:1.25;letter-spacing:-.03em;white-space:nowrap;border-radius:9px}
 .panel .route-card{padding:6px 8px;border-radius:12px;box-shadow:none}
 .panel .route-card .stat{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px}
 .panel .route-card .stats{gap:8px}.panel .route-card .stat strong{font-size:15px;line-height:1.3;letter-spacing:-.03em}
 .panel .route-card .stat span{font-size:10px;line-height:1.25}
 .panel .experience-mix{padding-top:5px;margin-top:5px}
 .panel .experience-mix h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .panel .experience-mix .mix{gap:3px 4px;margin:0}
 .panel .experience-mix .chip{font-size:11px;line-height:1.3;padding:3px 6px}.panel .experience-mix .chip:before{width:6px;height:6px;margin-right:4px}
 .panel .section-heading{margin-top:12px}.panel .section-heading h2{font-size:14px}.panel .section-heading>span{font-size:11px}
 .panel #route-stops{margin-top:9px}.panel #route-stops .stop-card{gap:8px;padding-bottom:18px}
 .panel .stop-card h3{font-size:14px;line-height:1.4}.panel .stop-card small{font-size:11px}.panel .stop-card p{font-size:12px;line-height:1.65}
 .panel .stop-card .representative{margin:8px 0}.panel .stop-card .representative img{max-height:160px}
}
@media(max-width:360px){.panel .profiles button{font-size:11px}.panel .route-card .stat strong{font-size:14px}.panel .experience-mix .chip{font-size:11px;padding:2px 5px}}

/* Walking actions stay with the place story, including during movement. */
.route-story-popup .map-story{display:flex;flex-direction:column;max-height:min(600px,calc(100dvh - 180px))}
.map-story>small,.map-story>h3,.map-story>progress,.story-controls{flex:none}
.map-story .story-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.map-story .story-content::-webkit-scrollbar{display:none}
.map-story>progress{display:block;width:100%;margin:8px 0 0}
.story-controls{display:grid;gap:8px;margin-top:8px}
.story-controls .story-nav{margin:0}
.story-controls-inline{grid-template-columns:44px minmax(0,1fr) 44px 64px;align-items:center;gap:6px}
.story-controls-inline>button{min-width:0;min-height:44px;padding:6px;font-size:12px;white-space:nowrap}
.story-controls-inline>button:first-child{font-size:20px}
.story-controls-inline svg{display:block;width:18px;height:18px;margin:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.story-controls-inline .preview-speed{display:block;font-size:0;margin:0;min-width:0}
.story-controls-inline select{width:100%;min-width:0;min-height:44px;font-size:12px;padding:6px 3px;margin:0}
.control-label-compact{display:none}
@media(max-width:760px){
 .route-story-popup .map-story{max-height:min(440px,calc(100dvh - 220px - env(safe-area-inset-bottom)))}
 .story-controls{gap:6px;margin-top:6px}
 .story-controls .story-nav{gap:6px}
}
@media(max-width:420px){.story-controls-inline{grid-template-columns:44px minmax(0,1fr) 44px 62px;gap:4px}.story-controls-inline>button{font-size:11px;padding:6px 2px}.control-label-full{display:none}.control-label-compact{display:inline}}

/* Small account status; course controls remain touch-friendly. */
.course-sync-note{font-size:11px;line-height:1.4;color:#52727c;margin:4px 0 8px}
.account-courses{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}
.account-courses>h2{font-size:17px}.account-courses>button{margin:0 6px 8px 0;min-height:44px;font-size:12px}
.account-courses .saved-card h3{font-size:15px;margin:0 0 6px;overflow-wrap:anywhere}
.account-courses .saved-actions{display:flex;gap:8px;flex-wrap:wrap}.account-courses .saved-actions button{min-height:44px}
.course-sync-conflict{padding:12px;margin:12px 0;background:#fff4df;border:1px solid #e6ce9e;border-radius:12px;font-size:13px}
.course-sync-conflict button{min-height:44px;margin:4px 6px 0 0;font-size:12px}
@media(max-width:760px){.panel .course-sync-note{margin:2px 2px 5px;font-size:10px}.account-courses>h2{font-size:15px}}

#saved-list>.account-courses:first-child{border-top:0;margin-top:8px;padding-top:0}

.top-actions #share-site{display:flex;align-items:center;justify-content:center;gap:7px}
.share-dialog label{display:block;font-size:13px}.share-dialog input{width:100%;margin:8px 0 14px}.share-actions{display:flex;gap:8px;flex-wrap:wrap}.share-actions button{min-height:44px}
.location-notice{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);z-index:1600;max-width:calc(100% - 100px);width:max-content;margin:0;padding:10px 14px;border-radius:12px;background:#12394a;color:#fff;box-shadow:0 4px 18px #12394a30;font-size:12px;line-height:1.5;pointer-events:none}
@media(max-width:760px){.top-actions #share-site{width:44px;height:44px;padding:10px;border:0;background:transparent;border-radius:50%}.top-actions #share-site span{display:none}.top-actions{gap:0}.brand small{font-size:10px}.location-notice{bottom:14px;max-width:calc(100% - 40px)}}
@media(max-width:360px){.top{padding-left:10px;padding-right:8px}.brand{gap:7px}.brand small{font-size:9px}.brand-icon{width:32px;height:32px}.top-actions #share-site,.top-actions #account,.top-actions #about{width:40px;min-width:40px}}

.location-follow-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.location-follow-button .location-arrow{display:none}
.location-follow-button[data-mode="follow"],.location-follow-button[data-mode="heading"]{color:#167c85;background:#e7f3f4}
.location-follow-button[data-mode="heading"] .location-target{display:none}
.location-follow-button[data-mode="heading"] .location-arrow{display:block;fill:currentColor}
.live-location{width:44px;height:44px;pointer-events:none}
.live-location-dot{position:absolute;left:14px;top:14px;width:16px;height:16px;border:3px solid white;border-radius:50%;background:#2688ef;box-shadow:0 1px 6px #12394a60;box-sizing:border-box}
.live-location-cone{display:none;position:absolute;left:2px;top:-15px;width:40px;height:40px;background:linear-gradient(to top,#2688ef80,#2688ef08);clip-path:polygon(50% 100%,0 0,100% 0)}
.live-location.has-heading .live-location-cone{display:block}

.map-search-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.map-search-panel{position:absolute;z-index:1650;right:66px;top:12px;width:min(350px,calc(100% - 82px));background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:0 8px 28px #12394a25;box-sizing:border-box}
.map-search-panel form{display:flex;gap:6px}.map-search-panel input{min-width:0;flex:1;font-size:16px;margin:0;padding:10px}.map-search-panel form button{width:36px;min-height:40px;padding:4px;border:0;font-size:24px}
.map-search-status{font-size:12px;color:#5a7480;line-height:1.5;margin:8px 2px}.map-search-results{max-height:min(380px,50dvh);overflow:auto;overscroll-behavior:contain}
.map-search-results>button{display:block;width:100%;text-align:left;padding:11px 9px;margin:0 0 5px;border-radius:10px}.map-search-results strong{display:block;font-size:14px}.map-search-results small{display:block;font-size:11px;line-height:1.5;margin-top:4px;color:#5a7480}
.walking-guidance{position:absolute;z-index:1350;bottom:14px;left:12px;width:min(370px,calc(100% - 82px));padding:14px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 24px #12394a22;box-sizing:border-box}
.walking-guidance strong{display:block;font-size:13px;color:#167c85}.walking-guidance p{font-size:17px;font-weight:700;line-height:1.4;margin:7px 0}.walking-guidance small{display:block;font-size:12px;line-height:1.5;color:#5a7480}.walking-guidance>div{display:flex;gap:7px;margin-top:10px}.walking-guidance button{font-size:12px;min-height:40px;padding:8px 12px}.walking-guidance[data-state="off-route"]{border-color:#d99449}.walking-guidance[data-state="waiting"] p{color:#97601d}
.map-pane:has(.maplibregl-popup) .walking-guidance{display:none}
@media(max-width:760px){#unified-map .map-navigation-control .maplibregl-ctrl-zoom-in,#unified-map .map-navigation-control .maplibregl-ctrl-zoom-out{display:none}body:not(.miniature-active) #unified-map .map-navigation-control{display:none}.walking-guidance{padding:11px}.walking-guidance p{font-size:15px}.walking-guidance small{font-size:11px}}

.map-pane:has(.walking-guidance:not([hidden])) .location-notice{bottom:auto;top:12px;left:12px;transform:none;width:max-content;max-width:calc(100% - 82px);box-sizing:border-box}
.map-north-control{position:relative;color:#536a73}
.map-north-label{position:absolute;top:2px;left:0;width:100%;font-size:9px;font-weight:800;line-height:11px;color:#ae3e43}
.map-north-control svg{display:block;width:24px;height:30px;margin:10px auto 0;transform-origin:50% 50%}
.map-north-control .north-needle{fill:#d84e54}.map-north-control .south-needle{fill:#9aaeb7}
.map-search-more{width:100%;min-height:40px;font-size:12px;margin-top:6px}
.map-search-credit{display:block;text-align:right;font-size:11px;margin:8px 3px 0;color:#526a75}
.tourism-place-heading{display:flex;align-items:center;gap:5px;padding-right:30px;min-height:44px;margin-bottom:2px}
.tourism-place-heading h3{flex:1;min-width:0;margin:0;overflow-wrap:anywhere;font-size:14px;line-height:1.35}
.tourism-place-heading .primary{flex:none;width:auto;min-height:44px;margin:0;padding:6px 8px;font-size:11px;white-space:nowrap;position:static}

/* Individual category pins and a compact card anchored near the selected place. */
.tourism-landmark-pin{width:26px;height:32px;min-height:32px}
.tourism-landmark-pin>svg:not(.marker-connector){width:26px;height:32px;position:relative;z-index:1}
.tourism-landmark-pin .marker-connector{position:absolute;left:50%;bottom:0;width:1px;height:1px;overflow:visible;fill:none;stroke:#50878b;stroke-width:1;pointer-events:none}
.tourism-landmark-pin.show-label span{left:29px;bottom:4px}
body .unified-place,body:not(.miniature-active) .unified-place{width:28px;height:28px;min-height:28px;display:grid;place-items:center;padding:3px;background:#e86b32;color:#fff;border:2px solid #fff}
.unified-place>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#unified-map .tourism-place-popup{left:var(--place-popup-x,10px)!important;top:var(--place-popup-y,10px)!important;right:auto!important;bottom:auto!important;transform:none!important;max-width:calc(100% - 20px)!important}
#unified-map .tourism-place-popup .maplibregl-popup-content{width:100%;max-width:none;max-height:var(--place-popup-height,calc(100dvh - 120px));overflow-y:auto;overscroll-behavior:contain;padding:10px;border-radius:14px;box-shadow:0 5px 22px #12394a30}
.tourism-place-card .tourism-category{font-size:11px;margin:2px 0 6px}
.tourism-place-card .tourism-place-photo{margin-top:6px;min-height:70px}
.tourism-place-card .tourism-place-photo img{height:96px}
.tourism-place-card .tourism-place-photo figcaption{font-size:9px;line-height:1.35;padding:3px 5px}
.tourism-place-card>p{margin:7px 0 0;font-size:12px;line-height:1.45}
.tourism-place-card>a{display:inline-block;margin-top:6px;font-size:11px}
#unified-map .tourism-place-popup .maplibregl-popup-close-button{width:36px;height:44px;min-height:44px;top:5px;right:2px;padding:0;font-size:20px}

/* Compact global actions and a shared menu for secondary map controls. */
.brand-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.brand-icon .brand-route{stroke:#79d1cb;stroke-width:1.5;stroke-dasharray:2 3}
.top-actions{gap:4px}
.top-actions #share-site,.top-actions #account,.top-actions #about{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:10px;border:0;background:transparent;border-radius:50%}
.top-actions #share-site span,.top-actions #account span,.top-actions #about span{display:none}
.top-actions button:hover{background:#eef4f6}
.top-actions #connection{display:grid;place-items:center;width:28px;height:32px;margin-right:4px;color:#6e858e}
.top-actions #connection svg{width:19px;height:19px}
.top-actions #connection[data-offline=true]{color:#b57429}
#panel-close{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;margin-bottom:10px;font-size:12px;background:#f4f8fa;border-color:#dbe5e9;border-radius:10px}
#panel-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#panel-close:hover{background:#e8f1f4;border-color:#9ebbc7}
/* Controls stay above markers and place cards on desktop as well as mobile. */
#unified-map .maplibregl-ctrl-top-right{z-index:1450}
#unified-map .map-tools-control{position:static;transform:none}
#unified-map .map-tools-control>button[aria-expanded=true]{color:white;background:var(--navy);border-color:var(--navy)}
#unified-map .map-tools-menu{top:0;right:54px;width:238px;max-width:calc(100vw - 88px);max-height:var(--tools-menu-height,calc(100dvh - 120px));padding:14px;overflow:auto;overscroll-behavior:contain;border-radius:16px;box-shadow:0 6px 28px #12394a26}
.map-tools-menu>strong{display:block;font-size:14px;margin-bottom:10px}
body.unified-active .map-tools-in-menu{position:static;inset:auto;transform:none;display:flex;flex-direction:column;align-items:stretch;gap:8px;flex-wrap:nowrap;width:auto;max-width:none;padding:0;margin:0 0 12px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
#unified-map .map-tools-in-menu>[data-view=walk]{display:flex;justify-content:center;gap:8px;width:100%;height:44px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;font-size:13px;box-shadow:none}
#unified-map .map-tools-in-menu>[data-view=walk] span{display:inline}
#unified-map .map-tools-in-menu svg{display:block;width:20px;height:20px}
#unified-map .map-tools-menu .map-view-switch{display:flex;gap:4px;padding:3px;border-radius:12px;background:#edf3f5}
#unified-map .map-tools-menu .map-view-switch button{display:block;flex:1;width:auto;height:40px;min-height:40px;padding:7px;border:0;border-radius:9px;font-size:13px;background:transparent;box-shadow:none}
#unified-map .map-tools-menu .map-view-switch button[aria-pressed=true]{display:block;background:var(--navy);color:white}
.map-tools-menu label{display:block;color:var(--muted);font-size:12px}
.map-tools-menu select{width:100%;min-height:44px;margin:5px 0 8px;font-size:13px}
#unified-map .map-tools-menu .viewpoint-toggle,#unified-map .map-tools-menu #fit-map{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:auto;min-height:44px;margin-top:6px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:12px;box-shadow:none}
#unified-map .map-tools-menu .viewpoint-toggle svg{width:20px;height:20px;margin:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body:not(.miniature-active) .map-tools-menu .viewpoint-toggle{display:none!important}
@media(max-width:760px){
 .top-actions #connection{display:none}
 #unified-map .map-navigation-control{display:none!important}
 .panel #panel-close{display:none}
 .brand-icon svg{width:28px;height:28px}
}
@media(max-width:360px){.top-actions{gap:0}.top-actions #share-site,.top-actions #account,.top-actions #about{width:40px;min-width:40px}.brand-icon svg{width:26px;height:26px}}
/* Private analytics, following AptNavi's four-tab layout. */
.usage-dialog{width:min(1040px,calc(100vw - 24px));max-width:1040px;max-height:calc(100dvh - 32px);padding:24px;box-sizing:border-box;overflow:auto;color:#12394a;background:#fff;border:1px solid #d5e3e9;border-radius:20px}
.usage-controls{position:sticky;top:-24px;background:#fff;z-index:1;padding-top:4px;padding-bottom:2px}.usage-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.usage-heading h2{margin:0;font-size:24px}.usage-heading button{width:40px;height:40px;min-height:40px;padding:0;font-size:25px}
.usage-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.usage-toolbar label,.usage-share label{display:flex;gap:10px;align-items:center;font-size:13px}.usage-toolbar select,.usage-share select{width:auto;min-width:0;font-size:13px;padding:9px}.usage-toolbar button{width:40px;height:40px;min-height:40px;padding:9px}.usage-toolbar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.usage-tabs{display:flex;gap:5px;margin:14px 0 4px;padding:5px;background:#eef4f3;border-radius:10px}.usage-tabs button{flex:1;min-width:0;white-space:nowrap;font-size:13px;border:0;background:transparent;padding:10px 12px}.usage-tabs button[aria-selected=true]{background:#fff;color:#176c59;box-shadow:0 1px 5px #233d2510;font-weight:700}.usage-tabs button:focus-visible{outline:2px solid #187667;outline-offset:2px}
.usage-scope{line-height:1.6;margin:10px 0;color:#607b83;font-size:12px}.usage-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}.usage-totals>div{background:#f1f6f2;border:1px solid #dfe8e0;border-radius:10px;padding:16px;display:grid;gap:10px}.usage-totals span{font-size:13px;word-break:keep-all}.usage-totals strong{font-size:25px;color:#166a59}.usage-dialog small{display:block;color:#607b83;font-size:11px;margin-top:5px;line-height:1.5}
.usage-dialog h3{font-size:16px;margin:22px 0 12px}.usage-dialog section>svg{display:block;width:100%;height:auto;margin:8px 0}.usage-legend{display:flex;gap:15px;font-size:12px}.usage-legend span:first-child{color:#187667}.usage-legend span:last-child{color:#997c35}.usage-panels{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:28px}.usage-panels>section{min-width:0}
.usage-table-wrap{overflow:auto;max-width:100%;overscroll-behavior-x:contain}.usage-dialog table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.usage-dialog th{background:#f1f6f2;word-break:keep-all}.usage-dialog td,.usage-dialog th{padding:11px 8px;border-bottom:1px solid #e4ece6;vertical-align:top}.usage-dialog td:nth-child(n+2){white-space:nowrap}.usage-dialog caption{text-align:left;font-size:11px;padding:6px 0;color:#607b83}
.usage-action-list{list-style:none;margin:0;padding:0}.usage-action-list li{margin:0 0 18px}.usage-action-list li>div:first-child{display:flex;gap:8px;justify-content:space-between;font-size:12px}.usage-action-list strong{font-weight:500;white-space:nowrap}.usage-bar{height:5px;background:#eef2e8;margin-top:7px;border-radius:4px;overflow:hidden}.usage-bar i{display:block;background:#24816d;height:100%}.usage-dialog summary{cursor:pointer;font-size:13px;font-weight:600;padding:12px 0}.usage-method{margin-top:24px;border-top:1px solid #e3e9dc;padding-top:10px}.usage-empty{padding:20px;background:#f6f8f4;border-radius:10px;font-size:13px;line-height:1.6}
.usage-funnel{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.usage-funnel>div{padding:12px;background:#f1f6f2;border-radius:8px;display:grid;gap:9px}.usage-funnel span{font-size:12px}.usage-funnel b{font-size:20px}.usage-share{padding:16px;background:#f5f8f4;border-radius:10px;margin-top:24px}.usage-share input{width:100%;min-width:0;margin:12px 0;font-size:12px;box-sizing:border-box}
@media(max-width:700px){.usage-dialog{padding:18px 14px;max-height:calc(100dvh - 20px)}.usage-controls{top:-18px}.usage-heading h2{font-size:21px}.usage-panels{grid-template-columns:minmax(0,1fr);gap:8px}.usage-totals{gap:6px}.usage-totals>div{padding:10px;gap:8px}.usage-totals strong{font-size:20px}.usage-totals span{font-size:11px}.usage-tabs button{font-size:11px;padding:9px 6px}.usage-funnel{grid-template-columns:1fr 1fr}.usage-funnel>div:last-child{grid-column:1/-1}.usage-dialog td,.usage-dialog th{padding:9px 6px}.usage-table-wrap table{min-width:480px}.usage-dialog section>svg text{font-size:20px}.usage-action-list li>div:first-child span{overflow-wrap:anywhere}}
@media(max-width:360px){.usage-tabs{display:grid;grid-template-columns:1fr 1fr}.usage-totals{grid-template-columns:1fr}.usage-totals>div{grid-template-columns:1fr auto}.usage-totals small{grid-column:1/-1}}

/* Public course previews stay compact and separate from the editable map. */
.shared-course-dialog{max-width:480px;max-height:calc(100dvh - 32px);overflow:auto;padding:22px}
.shared-course-dialog h2,.share-dialog h2{padding-right:30px;overflow-wrap:anywhere}
.share-privacy,.city-availability{display:block;font-size:12px;line-height:1.5;color:var(--muted)}
.shared-course-map{height:210px;border-radius:12px;overflow:hidden;background:#edf1ed;margin:12px 0}
.shared-course-number{display:grid;place-items:center;width:21px;height:21px;border:2px solid #fff;border-radius:50%;font-size:11px;font-weight:800;background:#ec6a30;color:#fff;box-shadow:0 1px 4px #12394a44}
.shared-course-stops{padding-left:26px;max-height:155px;overflow:auto;font-size:14px;line-height:1.7;margin:12px 0}
.shared-course-import{width:100%;min-height:44px}
.walking-guidance p{font-size:23px;line-height:1.3;letter-spacing:-.03em;margin:9px 0}
.walking-guidance small{font-size:13px}.walking-guidance strong{font-size:14px}
@media(max-width:760px){.shared-course-dialog{padding:18px}.shared-course-map{height:180px}.shared-course-stops{max-height:120px}.walking-guidance p{font-size:20px}.walking-guidance small{font-size:12px}}
