:root{font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:#213f32;background:#f4f6ee;--ink:#213f32;--muted:#79866d;--line:#dfe6d5;--paper:#fbfcf6;--green:#315c3e;--amber:#b9853d;--red:#a35a4d}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #6292b5;outline-offset:2px}[hidden]{display:none!important}.topbar{height:68px;display:flex;justify-content:space-between;align-items:center;padding:0 27px;background:var(--paper);border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;font-size:23px;letter-spacing:-.8px;font-weight:700}.brand img{width:34px;height:34px}.brand small{font-size:10px;letter-spacing:1.4px;color:#7b8b6d;font-weight:400;margin-left:18px}.top-actions{display:flex;gap:8px}.quiet-button{background:#f0f4e7;border:1px solid #dce4d0;padding:10px 14px;border-radius:9px;font-size:12px;min-height:44px}.demo-banner{height:29px;display:flex;align-items:center;justify-content:center;background:#f3e9cc;color:#846b36;font-size:10px;letter-spacing:.6px}.workspace{height:calc(100dvh - 97px);display:grid;grid-template-columns:minmax(0,1fr) 420px}.map-pane{position:relative;min-width:0;isolation:isolate;background:#e5ebde}#map{height:100%;width:100%;background:#e8edde}.map-caption{position:absolute;z-index:450;top:21px;left:23px;display:flex;gap:9px;align-items:center;max-width:calc(100% - 110px);padding:12px 15px;background:#fcfdf7f5;border:1px solid #fff;border-radius:10px;font-size:11px;box-shadow:0 3px 18px #30472d0c}.map-caption i{height:7px;width:7px;background:#678753;border-radius:50%}.map-caption b{font-weight:500}.map-tools{position:absolute;z-index:450;right:20px;top:20px;display:flex;flex-direction:column;gap:8px}.map-tools button{width:43px;height:43px;border-radius:10px;background:var(--paper);border:1px solid #d5e0c9;font-size:25px}.search-area{position:absolute;z-index:550;left:50%;top:81px;transform:translateX(-50%);padding:12px 19px;border-radius:25px;background:#315c3e;color:#fff;font-size:12px;box-shadow:0 3px 18px #294b3040}.map-note{position:absolute;z-index:450;bottom:37px;left:21px;max-width:80%;font-size:10px;line-height:1.8;color:#7d794d;background:#fffff2e8;padding:9px 12px;border-radius:8px}.geo-intro{position:absolute;z-index:550;left:23px;bottom:50px;max-width:360px;background:var(--paper);border:1px solid #dbe5ce;box-shadow:0 6px 30px #263b2520;border-radius:14px;padding:19px}.geo-intro strong{font-size:16px}.geo-intro p{font-size:11px;line-height:1.8;color:#80906f;margin:9px 0 15px}.inline-actions{display:flex;gap:9px}.primary,.secondary,.danger{padding:12px 14px;min-height:48px;border-radius:9px;font-size:12px;font-weight:550;display:flex;align-items:center;justify-content:center;gap:6px}.primary{background:#315c3e;color:#f3f8ed;border:1px solid #315c3e}.primary:hover{background:#416f4c}.secondary{background:#eef3e4;color:#516d3f;border:1px solid #dbe5cf}.danger{background:#fcf0e9;color:#9b5d46;border:1px solid #edd8ca}.text-button{min-height:40px;background:transparent;padding:6px 2px;color:#718355;text-decoration:underline;text-underline-offset:4px;font-size:11px}.drawer{display:flex;flex-direction:column;min-height:0;background:var(--paper);border-left:1px solid var(--line);z-index:650}.main-tabs{display:flex;gap:27px;padding:0 25px;border-bottom:1px solid var(--line);flex:none}.main-tabs button{font-size:13px;background:transparent;padding:20px 3px 15px;border-bottom:3px solid transparent;min-height:54px;color:#8c967d}.main-tabs button[aria-selected=true]{border-color:#738a51;color:#305031;font-weight:600}.pane{display:flex;flex-direction:column;min-height:0;flex:1}.pane-head{padding:21px 24px 14px;flex:none}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#8e9b7e}h1,h2,h3,p{margin-top:0}h1{font-size:24px;letter-spacing:-.7px;margin:8px 0}.pane-head p{font-size:11px;line-height:1.8;color:#849175;margin:5px 0}.count-badge{font-size:12px;vertical-align:middle;background:#e5edd8;color:#627c42;border-radius:6px;padding:3px 7px;margin-left:5px}.filters{display:flex;align-items:center;gap:7px;margin-top:14px}.filters select{border:1px solid #e0e7d5;color:#667954;background:#f5f8ee;border-radius:7px;padding:8px;font-size:11px;min-width:0;max-width:100%;flex:1;min-height:36px}.icon-button{width:35px;height:36px;background:transparent;font-size:25px;color:#7d9565}.sync{font-size:9px;color:#939e86;line-height:1.7;padding-top:9px}.sync.offline{color:#b1834d}.scroll-content{overflow:auto;flex:1;min-height:0;padding:0 23px 18px;scrollbar-width:thin;scrollbar-color:#d7dfca transparent}.event-card{display:block;width:100%;text-align:left;background:#fffef8;border:1px solid #e0e6d6;border-left:3px solid #b88d48;border-radius:11px;padding:13px;margin-bottom:9px}.event-card.closure{border-left-color:#597e9b}.event-card.traffic{border-left-color:#b26f5c}.event-card.other{border-left-color:#62926e}.event-top{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#8e8054}.event-state{padding:3px 5px;border-radius:4px;color:#76874f;background:#ecf1df}.event-state.UNKNOWN,.event-state.CLEAR_REPORTED{background:#f7ecd4;color:#ac844d}.event-state.COMMUNITY_ENDED,.event-state.EXPIRED{background:#ecefe5;color:#8e9a7d}.event-card strong{display:block;font-size:13px;font-weight:600;margin:11px 0 6px}.event-meta{display:flex;gap:9px;justify-content:space-between;font-size:10px;color:#8d997e}.event-card p{margin:8px 0 0;font-size:10px;color:#8b9879;line-height:1.7}.empty{padding:35px 16px;text-align:center;color:#869a72}.empty span{font-size:30px;display:block;color:#a0b48d;margin-bottom:12px}.empty strong{font-size:13px;font-weight:500}.empty p{font-size:11px;line-height:1.8;margin-top:9px;color:#9aa68a}.publisher{padding:14px 22px 17px;border-top:1px solid var(--line);background:#f6f8ef;flex:none}.publisher-top{display:flex;align-items:center;gap:10px;margin-bottom:11px;font-size:10px;color:#839272}.publisher-top select{flex:1;min-width:0;background:transparent;border:0;color:#607349;font-size:11px;padding:4px}.publisher .inline-actions>.primary{flex:1}.publisher .secondary{padding:12px 14px}.publisher-note{font-size:9px;color:#8c987e;line-height:1.8;margin:9px 0 0}.status{font-size:11px;color:#698750;line-height:1.8;margin-top:8px}.status.error{color:#ab7251}.pick-pin{display:none;position:absolute;z-index:600;top:50%;left:50%;transform:translate(-50%,-50%);height:48px;width:48px;pointer-events:none;border:2px solid white;border-radius:50%;outline:2px solid #ac8137;background:#fffaec9c;place-items:center;font-size:34px;color:#9f7330}.picking .pick-pin{display:grid}.pick-card{position:absolute;z-index:650;left:22px;right:22px;bottom:29px;padding:18px;max-width:440px;margin:auto;border:1px solid #dce4d1;background:var(--paper);border-radius:13px;box-shadow:0 5px 25px #20352a25}.pick-card strong{font-size:15px}.pick-card p{font-size:11px;color:#859670;line-height:1.6;margin:9px 0 14px}.pick-card .primary{flex:1}.pick-card .text-button{display:block;margin:7px auto -4px}.event-pin,.cluster-pin{width:38px;height:38px;border:3px solid white;border-radius:50%;background:#b98a40;box-shadow:0 3px 10px #213e3229;display:grid;place-items:center;color:white;font-size:22px}.event-pin.closure{background:#6485a6}.event-pin.traffic{background:#ae6e5f}.event-pin.other{background:#59866b}.event-pin.UNKNOWN{outline:2px dashed #ba9655;outline-offset:2px}.event-pin.COMMUNITY_ENDED{background:#96a382}.cluster-pin{background:#426347;font-size:13px;font-weight:600;outline:5px solid #74965b30}.cluster-pin.historical{background:#8793a1;outline-color:#8793a120;border-style:dashed}.self-dot{display:block;width:15px;height:15px;background:#3976be;border:3px solid white;border-radius:50%}.leaflet-control-zoom{border:1px solid #d1dcc7!important;box-shadow:none!important;border-radius:8px!important;overflow:hidden}.leaflet-control-zoom a{background:var(--paper)!important;color:#7b9266!important}.leaflet-bottom.leaflet-left{bottom:22px;left:10px}.leaflet-control-attribution{font-size:8px!important;background:#fffff4e0!important}.leaflet-control-attribution a{color:#71815c}.route-notice{padding:12px 14px;border-radius:9px;background:#ecf3e3;color:#71845b!important;font-size:11px;line-height:1.8}.route-card{border:1px solid var(--line);border-radius:11px;background:#fffefa;padding:15px;margin:10px 0}.route-card.active{border-color:#879e6a;background:#f0f5e8}.route-card h3{font-size:14px;margin-bottom:7px}.route-card p{font-size:10px;line-height:1.8;color:#899677;margin-bottom:10px}.route-card .inline-actions>*{flex:1;font-size:11px;min-height:42px}.record-controls{display:flex;gap:8px;margin:14px 0}.record-controls>*{flex:1}.recording{color:#a1674d!important}.history-note{padding:10px 13px;background:#edf0f1;color:#7c8790;border-radius:8px;font-size:10px;line-height:1.8;margin-top:12px}.segment-control{display:flex;gap:5px;margin-top:13px}.segment-control button{background:#eef2e5;border:1px solid #e0e6d7;padding:8px 15px;border-radius:6px;font-size:11px;min-height:36px}.segment-control button[aria-pressed=true]{background:#dce7ce;color:#4e6b38;border-color:#c8d8b6}.history-card{background:#f6f7f3;border:1px solid #dce2d9;border-radius:11px;padding:15px;text-align:left;display:block;width:100%;margin-bottom:10px}.history-card strong{font-size:14px}.history-card p{font-size:10px;color:#8a957f;line-height:1.8;margin:9px 0 0}.hour-bars{display:flex;align-items:end;gap:3px;height:30px;margin-top:13px}.hour-bars i{flex:1;min-height:2px;background:#b7c5aa;border-radius:2px}.detail-pane{overflow:auto;padding:20px 24px 25px;min-height:0;flex:1}.back-button{background:transparent;color:#81966b;font-size:11px;padding:7px 0;min-height:38px}.detail-pane h2{font-size:23px;margin:13px 0 9px}.detail-source{font-size:11px;line-height:1.8;color:#899679}.detail-summary{padding:16px;background:#eef3e5;border-radius:10px;margin:15px 0;font-size:12px;color:#647c4d;line-height:1.9}.feedback{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.feedback button{font-size:11px;padding:10px 5px}.section-title{font-size:13px;font-weight:600;margin:23px 0 13px}.timeline{border-left:1px solid #d9e3cb;margin-left:4px;padding-left:18px}.timeline-item{position:relative;padding-bottom:17px;font-size:11px;color:#627750;line-height:1.7}.timeline-item:before{content:'';position:absolute;left:-22px;top:5px;width:7px;height:7px;border-radius:50%;background:#a4b68c}.timeline-item small{display:block;color:#95a385;font-size:9px;margin-top:3px}.timeline-item.retracted{opacity:.55}.mine-item{padding:12px;border:1px solid var(--line);border-radius:9px;margin:9px 0;font-size:11px;line-height:1.8}.mine-item p{margin:0;color:#8d9b7f}.more{width:100%;background:transparent;min-height:44px;color:#7c8f64;font-size:11px}.footer{font-size:9px;color:#9aa58a;padding:9px 22px;display:flex;justify-content:space-between;border-top:1px solid var(--line);flex:none}.alert-strip{position:fixed;z-index:1600;left:24px;top:113px;max-width:360px;background:#284f37;color:#f5faee;padding:15px 18px;border-radius:12px;box-shadow:0 5px 28px #183e2930;font-size:12px;line-height:1.8;text-align:left}.toast{position:fixed;z-index:5000;bottom:25px;left:50%;transform:translateX(-50%);background:#254834f2;color:#f5faec;padding:13px 20px;border-radius:10px;max-width:90vw;width:max-content;font-size:12px;line-height:1.7;text-align:center}dialog{max-width:450px;width:calc(100% - 32px);max-height:86dvh;border:1px solid #dce5ce;border-radius:17px;background:var(--paper);padding:27px;color:var(--ink);overflow:auto;box-shadow:0 20px 70px #19332333}dialog::backdrop{background:#223c2c75}.dialog-close{position:absolute;top:9px;right:9px;width:42px;height:42px;background:transparent;font-size:25px;color:#8b9c79}dialog h2{font-size:23px;margin:12px 0 17px}dialog p{font-size:11px;line-height:1.9;color:#7b8d68}dialog input,dialog select{border:1px solid #d9e4cc;background:#fffef9;color:#567344;border-radius:8px;padding:11px;font-size:12px;max-width:100%;width:100%}.settings-status{padding:15px;background:#e9f1de;border-radius:10px;font-size:13px;line-height:1.9;margin-bottom:15px}.settings-status small{display:block;font-size:10px;color:#788d60}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:13px;border-bottom:1px solid var(--line);padding:14px 0;font-size:12px;line-height:1.7}.setting-row small{font-size:10px;color:#8a9977;display:block}.setting-row input[type=checkbox]{appearance:none;min-width:40px;width:40px;height:24px;padding:0;border-radius:16px;background:#d6dfc9;border:0;position:relative;cursor:pointer}.setting-row input[type=checkbox]:after{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;background:white;border-radius:50%;box-shadow:0 1px 3px #1232}.setting-row input:checked{background:#78975e}.setting-row input:checked:after{left:19px}.setting-row select{width:160px;font-size:11px}.settings-buttons{display:flex;flex-direction:column;gap:8px;margin-top:17px}.settings-buttons button{width:100%}.privacy-details{border-top:1px solid var(--line);margin-top:18px;padding-top:10px}.privacy-details summary{font-size:12px;color:#7b8f64;cursor:pointer;padding:11px 0;min-height:44px}.privacy-details a{color:#58783f}.choice-event{border:1px solid #d7e1cb;background:#eff5e6;border-radius:9px;padding:13px;font-size:12px;text-align:left;width:100%;margin-bottom:8px;min-height:48px}.feedback-hint{font-size:10px;line-height:1.8;color:#93a27f;margin:10px 0}.notice-error{background:#f6e7d6;padding:12px;border-radius:8px;color:#a3714c!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.history-detail-title{font-size:12px;line-height:1.8;color:#6f8260}noscript{padding:30px;display:block}@media(max-width:760px){.topbar{height:58px;padding:0 15px}.brand{font-size:19px;gap:7px}.brand img{width:29px;height:29px}.brand small{display:none}.quiet-button{font-size:10px;padding:8px 11px;min-height:40px}.top-actions{gap:6px}#share{width:40px;font-size:18px;padding:0}#share span{display:none}.demo-banner{height:25px;font-size:9px}.workspace{height:calc(100dvh - 83px);display:flex;flex-direction:column}.map-pane{height:38%;min-height:230px;flex:none}.drawer{flex:1;border-left:0;border-radius:19px 19px 0 0;margin-top:-12px;min-height:0;overflow:hidden;position:relative}.main-tabs{gap:27px;padding:0 21px}.main-tabs button{min-height:47px;padding:13px 3px 10px;font-size:12px}.pane-head{padding:16px 20px 10px}h1{font-size:21px;margin:5px 0}.pane-head p{font-size:10px}.filters{margin-top:10px}.filters select{padding:7px;font-size:10px}.sync{font-size:8px;padding-top:6px}.scroll-content{padding:0 19px 12px}.event-card{padding:11px;margin-bottom:8px}.event-card strong{font-size:12px;margin-top:8px}.event-top{font-size:8px}.event-meta,.event-card p{font-size:9px}.publisher{padding:10px 19px calc(10px + env(safe-area-inset-bottom))}.publisher-top{margin-bottom:8px;font-size:9px}.publisher-top select{font-size:10px}.publisher .primary,.publisher .secondary{font-size:11px;min-height:48px;padding:10px 12px}.publisher-note{font-size:8px;margin-top:7px}.status{font-size:10px;margin-top:7px}.footer{display:none}.map-caption{top:13px;left:15px;font-size:10px;padding:10px 12px}.map-tools{top:13px;right:14px;gap:6px}.map-tools button{width:37px;height:37px;font-size:23px}.search-area{top:66px;font-size:11px;padding:10px 16px}.map-note{bottom:27px;left:15px;font-size:9px;max-width:72%}.geo-intro{left:15px;right:60px;bottom:32px;padding:14px;border-radius:12px;max-width:340px}.geo-intro strong{font-size:14px}.geo-intro p{font-size:10px;margin:6px 0 10px}.geo-intro button{font-size:10px;min-height:40px;padding:8px 12px}.leaflet-bottom.leaflet-left{bottom:33px;left:4px}.leaflet-bottom.leaflet-right{bottom:13px}.leaflet-control-attribution{font-size:7px!important}.picking .drawer{display:none}.picking .map-pane{flex:1;height:100%}.picking .map-caption{max-width:calc(100% - 90px)}.pick-card{left:15px;right:15px;bottom:calc(28px + env(safe-area-inset-bottom));padding:16px}.picking .leaflet-bottom.leaflet-left{bottom:210px}.detail-pane{padding:12px 20px 20px}.detail-pane h2{font-size:21px;margin-top:9px}.detail-summary{font-size:11px}.feedback button{font-size:10px;min-height:48px}.alert-strip{top:95px;left:15px;right:15px;max-width:none;font-size:11px}.toast{bottom:calc(20px + env(safe-area-inset-bottom));font-size:11px}dialog{padding:24px;max-height:88dvh}.route-card{padding:13px}.empty{padding:19px 10px}.empty p{font-size:10px}.record-controls{margin:11px 0}.route-notice{font-size:10px;padding:10px 12px}.history-note{font-size:9px}.pane[data-view=routes] .pane-head{padding-bottom:0}}@media(max-height:720px) and (max-width:760px){.map-pane{min-height:190px}.pane-head{padding-top:11px}.pane-head>p{display:none}.publisher-note{display:none}.geo-intro p{font-size:9px;margin:5px 0}.geo-intro{bottom:25px}.main-tabs button{min-height:42px}}@media(max-width:350px){.topbar{padding:0 10px}.brand{font-size:17px}.brand img{width:26px;height:26px}.quiet-button{padding:8px;font-size:9px}.top-actions{gap:4px}.main-tabs{gap:23px}.feedback{gap:4px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Focused voting panel: totals remain readable after the single vote is used. */
.vote-panel{margin-top:20px}.vote-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.vote-heading h3{font-size:15px;margin:0}.vote-heading>span{font-size:11px;color:#71845b}.vote-assessment{padding:10px 12px;border-radius:8px;background:#edf2e6;color:#60794c;font-size:11px;line-height:1.7;margin-bottom:10px}.vote-assessment[data-assessment=CONFLICT]{background:#f5e9d7;color:#8f6333}.vote-panel .feedback{grid-template-columns:1fr 1fr;gap:8px}.vote-panel .vote-choice{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;text-align:left;border:1px solid #d9e2ce;border-radius:10px;background:#fffefa;color:#496637;min-height:76px;padding:12px;overflow:hidden}.vote-choice:after{content:'';position:absolute;bottom:0;left:0;height:3px;width:var(--vote-share,0%);background:#a1b780}.vote-label{font-size:12px;font-weight:600}.vote-count{font-size:22px;line-height:1;font-variant-numeric:tabular-nums}.vote-recent{grid-column:1/-1;font-size:9px;color:#788c67}.vote-panel .vote-choice[aria-pressed=true]{border-color:#648249;background:#eaf2df;box-shadow:inset 0 0 0 1px #648249}.vote-panel .vote-choice:disabled{opacity:1;cursor:default}.vote-panel .vote-choice:not(:disabled):hover{background:#f1f6e9;border-color:#78975e}.vote-panel .vote-choice:focus-visible{outline:2px solid #365a29;outline-offset:2px}.vote-panel .vote-secondary{min-height:63px;background:#f6f7f2}.vote-secondary .vote-label{font-size:11px;font-weight:400}.vote-secondary .vote-count{font-size:18px}.vote-caption{font-size:10px;line-height:1.8;color:#7d8f6c;margin:10px 0 0}
/* Road-aware drawing keeps controls below the map's geographic center. */
#draw-card{padding:14px;max-height:calc(50% - 40px);overflow:auto}#draw-card strong{font-size:14px}#draw-card label{font-size:11px}#draw-name{display:block;width:100%;padding:8px;margin:5px 0 10px;border:1px solid #cfdbc2;border-radius:8px;background:#fffef9}#draw-card .segment-control{margin-top:8px}#draw-card p{margin:8px 0;font-size:11px;line-height:1.6}#draw-card .draw-privacy{font-size:9px;color:#687b5b;margin-bottom:0}.draw-footer{display:flex;justify-content:space-between;align-items:center;gap:8px}#draw-card .draw-footer .text-button{margin:0;min-height:32px;font-size:10px}.draw-footer span,.draw-footer a{font-size:9px;color:#637954}.drawing-route #search-area,.drawing-route .map-note{display:none!important}@media(max-width:760px){.drawing-route .leaflet-bottom.leaflet-left{bottom:auto;top:65px}.drawing-route .leaflet-control-zoom{margin-top:0}#draw-card{bottom:calc(25px + env(safe-area-inset-bottom))}#draw-card .primary,#draw-card .secondary{min-height:44px;padding:9px 10px}.drawing-route .map-caption{top:9px}}
@media(min-width:761px){.drawing-route .workspace{grid-template-columns:1fr}.drawing-route .drawer{display:none}.drawing-route #draw-card{left:22px;right:auto;width:360px;max-height:calc(100% - 110px)}}
@media(max-width:760px){#draw-card>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#draw-card #draw-name{padding:7px;margin:7px 0}#draw-card .segment-control button{min-height:30px;padding:5px 12px}#draw-card p{margin:6px 0;font-size:10px}#draw-card .draw-privacy{font-size:9px}#draw-card .draw-footer .text-button{min-height:28px}}
.drawing-route .leaflet-bottom.leaflet-left{bottom:auto;top:65px}.drawing-route .leaflet-control-zoom{margin-top:0}
/* Correction operates on selected waypoints or road sections. */
.route-edit-pin{width:32px;height:32px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#286e68;color:#fff;font-size:12px;font-weight:700;box-shadow:0 2px 7px #203b3240}.route-edit-pin.selected{background:#b77925;outline:3px solid #f4ce81}.route-edit-pin:disabled{opacity:.65;cursor:wait}.route-edit-actions{display:grid;grid-template-columns:1fr 1fr}#draw-target{display:block;width:100%;height:38px;border:1px solid #cfdbc2;border-radius:8px;padding:6px;margin:0 0 8px;background:#fffef9;color:#405c35;font-size:12px}#draw-correction .inline-actions{margin-bottom:8px}#draw-correction .primary{flex:1}#draw-card .draw-explanation{font-size:10px;color:#647752;margin:8px 0 0}#draw-card .draw-explanation summary{cursor:pointer;min-height:24px;line-height:1.6}#draw-card .draw-main-actions{margin-top:8px}.correcting-route #draw-undo,.correcting-route #draw-save{flex:1}@media(max-width:760px){#draw-target{height:34px;font-size:11px}#draw-card #draw-correction .primary,#draw-card #draw-delete{font-size:11px}#draw-card .draw-explanation{font-size:9px;margin-top:6px}}
.compact-home{background:#e5ebde}
.compact-home .topbar,.compact-home .demo-banner,.compact-home .map-caption,.compact-home #view-nearby>.pane-head,.compact-home #view-nearby>.scroll-content,.compact-home .publisher-top,.compact-home .publisher-note,.compact-home .footer,.compact-home #geo-intro,.compact-home #search-area,.compact-home #map-note{display:none!important}
.compact-home .workspace{height:100dvh;display:block;position:relative}
.compact-home .map-pane{position:absolute;inset:0;height:100%;min-height:0}
.compact-home .drawer{position:absolute;z-index:650;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(520px,calc(100% - 32px));height:auto;max-height:75dvh;margin:0;background:transparent;border:0;border-radius:0;overflow:visible;pointer-events:auto}
/* Keep publishing controls in the visible screen during page pinch/pan as well as map zoom. */
.compact-home[data-view="nearby"]:not(.showing-detail) .drawer{position:fixed;left:var(--publisher-x,50%);top:var(--publisher-bottom,100dvh);bottom:auto;width:min(520px,calc(var(--publisher-width,100vw) - 32px));transform-origin:50% 100%;transform:translate(-50%,-100%) scale(var(--publisher-scale,1)) translateY(calc(-22px - env(safe-area-inset-bottom)))}
.compact-home #view-nearby{display:block;pointer-events:auto}
.compact-home .publisher{padding:8px;border:1px solid #ffffff90;background:#fffef8f5;border-radius:21px;box-shadow:0 8px 32px #18312424}
.compact-home .publisher>.inline-actions:first-of-type{gap:8px}
.compact-home .publisher #quick-post,.compact-home .publisher #nearby{flex:1;min-height:56px;padding:14px 10px;border-radius:14px;font-size:16px;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.compact-home #quick-post{background:#315c3e;color:#fff}
.compact-home #nearby{background:#edf1e7;color:#315c3e;border:0}
.compact-home .publisher .status{margin:8px 8px 2px;font-size:12px}
.compact-home .publisher>.inline-actions:has(>.text-button){justify-content:center}
.compact-home .publisher .text-button{font-size:12px;padding:7px 10px}
.compact-home .picking .drawer,.compact-home.picking .drawer{display:none}
.compact-home .pick-card{bottom:calc(22px + env(safe-area-inset-bottom));width:auto;max-width:488px;left:16px;right:16px;padding:16px;background:#fffef8f5;border-radius:21px;box-shadow:0 8px 32px #18312424}
.compact-home .pick-card strong{font-size:17px}
.compact-home .pick-card p{font-size:13px;margin:8px 0 14px;color:#66735e}
.compact-home .pick-card .primary,.compact-home .pick-card .secondary{min-height:48px;font-size:15px;border-radius:13px}
.picking-location .pick-pin{display:none}
.compact-home.picking-location .drawer{display:flex}
.selected-location-marker{pointer-events:none}
.selected-location-pin{display:block;position:relative;width:44px;height:46px;padding:0;border:0;background:none;filter:drop-shadow(0 2px 3px #18312440);pointer-events:auto}
.selected-location-icon{display:block;width:44px;height:46px;pointer-events:none;user-select:none;overflow:visible}
.compact-home .leaflet-control-zoom{display:none}
.compact-home .leaflet-bottom.leaflet-right{bottom:1px}
.compact-home .leaflet-control-attribution{font-size:8px!important}
.compact-home .toast{bottom:calc(108px + env(safe-area-inset-bottom));max-width:calc(100vw - 40px)}
.compact-home.showing-detail .drawer{pointer-events:auto;overflow:auto;background:var(--paper);border-radius:20px;box-shadow:0 8px 32px #18312424}
.compact-home.showing-detail #view-nearby{display:none!important}
.compact-home.showing-detail .detail-pane{display:block;padding:20px;flex:none}
@media(max-width:380px){.compact-home .publisher #quick-post,.compact-home .publisher #nearby{font-size:15px}}

.compact-home .map-tools{position:fixed;z-index:800;left:var(--publisher-x,50%);top:var(--publisher-bottom,100dvh);right:auto;bottom:auto;transform-origin:50% 100%;transform:translate(-50%,-100%) scale(var(--publisher-scale,1)) translateY(calc(-22px - env(safe-area-inset-bottom)));flex-direction:row;align-items:center;gap:12px;width:max-content;max-width:calc(var(--publisher-width,100vw) - 24px);pointer-events:none}
.compact-home .map-tools>button{pointer-events:auto;flex:none}

.compact-home .map-tools #nearby{width:48px;height:48px;min-height:48px;padding:0;touch-action:manipulation}
.compact-home .map-tools #nearby[aria-busy=true] svg{opacity:.55}

.compact-home:is([data-view="routes"],[data-view="profile"],.showing-detail) .drawer{bottom:calc(84px + env(safe-area-inset-bottom));max-height:calc(100dvh - 108px - env(safe-area-inset-bottom))}
.compact-home .map-tools button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffffa0;border-radius:13px;box-shadow:0 3px 15px #18312418}
.compact-home .map-tools svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.compact-home .map-tools button[aria-pressed=true]{background:var(--green);color:white}
.compact-home[data-view="profile"]:not(.showing-detail) .drawer{height:74px;max-height:74px;overflow:hidden;background:var(--paper);border-radius:21px;box-shadow:0 8px 32px #18312424}
.compact-home[data-view="routes"] .drawer{height:auto;max-height:55dvh;overflow:hidden;background:var(--paper);border-radius:21px;box-shadow:0 8px 32px #18312424}
.compact-home #view-routes:not([hidden]),.compact-home #view-profile:not([hidden]){display:flex;min-height:0}
.compact-home #view-routes .pane-head{padding:8px;flex-shrink:0}
.compact-home #view-routes .record-controls{margin:0;gap:8px}
.compact-home #view-routes .record-controls button{min-height:56px;padding:14px 10px;border-radius:14px;font-size:16px;font-weight:600}
.compact-home #view-routes #record-status:empty{display:none}
.compact-home #view-routes #record-status:not(:empty){display:block;margin:8px 0 0;padding:8px 10px;font-size:11px;line-height:1.6}
.compact-home #view-routes .route-library{min-height:0;margin:0 8px 8px;overflow:auto}
.compact-home #view-routes .route-library:not(:has(.route-card)):not(:has(#alerts .event-card)){display:none}
.compact-home #view-routes .route-library>summary{position:sticky;top:0;z-index:1;list-style:none;min-height:44px;font-size:13px;cursor:pointer}
.compact-home #view-routes .route-library>summary::-webkit-details-marker{display:none}
.compact-home #view-routes .route-library>summary::after{content:'⌄';margin-left:5px}
.compact-home #view-routes .route-library[open]>summary::after{content:'⌃'}
.compact-home #view-routes .route-library>summary:focus-visible{outline:3px solid #6292b5;outline-offset:-3px}
.compact-home #view-routes .route-library .scroll-content{padding:0 2px 4px;overflow:visible}
.compact-home #view-routes #routes>.empty,.compact-home #view-routes #alerts>.feedback-hint{display:none}
.compact-home #view-routes .route-library .section-title:not(:has(+ #alerts .event-card)){display:none}
.compact-home .profile-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px;min-height:72px}
.compact-home .profile-menu button{display:flex;flex-direction:column;gap:2px;min-width:0;min-height:56px;padding:8px 2px;border-radius:14px;font-size:12px;white-space:nowrap}
.compact-home .profile-menu small{font-size:10px;font-weight:400;opacity:.8}
.compact-home dialog.profile-dialog{position:fixed;inset:auto 16px calc(22px + env(safe-area-inset-bottom));width:min(520px,calc(100% - 32px));max-width:520px;height:123px;max-height:123px;margin:0 auto;padding:8px;overflow:hidden;border-radius:21px}
.compact-home dialog.profile-dialog[open]{display:flex;flex-direction:column;gap:5px}
.compact-home #profile-records-dialog.profile-dialog{bottom:calc(84px + env(safe-area-inset-bottom));height:auto;max-height:min(360px,calc(100dvh - 112px - env(safe-area-inset-bottom)))}
.compact-home #profile-records-dialog[open]{animation:draw-tools-rise 240ms cubic-bezier(.2,.75,.3,1)}
.compact-home #profile-records-dialog .profile-dialog-content{flex:0 1 auto;padding:0 4px 4px}
.compact-home #profile-records-dialog .route-list-guide{margin:0 4px 8px;font-size:11px;line-height:1.6}
.compact-home #route-list-status{margin:0 4px 8px;color:var(--green);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.compact-home #route-list-status:empty{display:none}
.compact-home #profile-records-dialog .route-manager-row{padding:6px 4px;scroll-margin:4px}
.compact-home #profile-records-dialog .route-manager-row.just-saved{background:var(--glass-active,#deedfb);border-radius:15px}
.compact-home #profile-records-dialog .route-manager-main{min-height:52px}
.compact-home #profile-records-dialog .route-manager-main>.danger{font-weight:650}
.compact-home dialog.profile-dialog::backdrop{background:#223c2c24}
.compact-home .profile-dialog-header{display:flex;align-items:center;gap:8px;flex:0 0 44px;min-height:44px;padding-left:6px}
.compact-home .profile-dialog-header h2{flex:1;min-width:0;margin:0;font-size:14px;line-height:1.3}
.compact-home .profile-dialog-header h2 small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:2px}
.compact-home .profile-dialog-header .dialog-close{position:static;flex:0 0 44px;width:44px;height:44px;padding:0;border-radius:10px;font-size:22px}
.compact-home .profile-dialog-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bac8aa transparent;padding:0 6px}
.compact-home .profile-dialog-content .primary,.compact-home .profile-dialog-content .secondary,.compact-home .profile-dialog-content .text-button{min-height:44px;font-size:12px;padding:8px 10px}
.compact-home .profile-dialog-content .profile-empty{min-height:44px;display:flex;align-items:center;justify-content:center;margin:0;font-size:12px}
.compact-home .profile-empty-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px}
.compact-home .profile-empty-actions button{flex:none}
.compact-home .profile-record-row{display:flex;align-items:center;gap:6px;min-height:56px;border-bottom:1px solid var(--line)}
.compact-home .profile-record-info{flex:1;min-width:0}
.compact-home .profile-record-info strong,.compact-home .profile-record-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-home .profile-record-info strong{font-size:12px;font-weight:600}
.compact-home .profile-record-info small{font-size:10px;color:var(--muted);margin-top:3px}
.compact-home .profile-dialog-content .setting-row{min-height:56px;padding:8px 0}
.compact-home .profile-dialog-content .setting-row select{min-height:44px;padding:8px}
.compact-home .profile-dialog-content .settings-status{font-size:12px;padding:10px;margin:8px 0}
.compact-home .profile-dialog-content .settings-buttons{display:grid;gap:6px}
.compact-home .profile-dialog-content .privacy-details>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-size:12px}
.compact-home .profile-dialog-content .empty{padding:10px 0}
.compact-home .profile-dialog-content .empty span,.compact-home .profile-dialog-content .empty p{display:none}
.compact-home .profile-dialog-content .mine-item{padding:6px 0;margin:0 0 8px;border:0;border-bottom:1px solid var(--line);border-radius:0}
.compact-home .profile-dialog-content .profile-contact-actions{display:flex;align-items:center;gap:8px;min-height:56px}
.compact-home .profile-contact-actions select{flex:1;min-width:0;min-height:44px;padding:8px;font-size:12px}
.compact-home .profile-contact-actions button{flex:none}
.compact-home.drawing-route .map-tools{display:flex}
.compact-home .toast{bottom:calc(164px + env(safe-area-inset-bottom))}

/* Drawing actions float independently; map gestures pass through the empty overlay. */
.compact-home.drawing-route #draw-card{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;pointer-events:none}
.compact-home.drawing-route #draw-card .draw-tools{position:static;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;max-width:100%;padding:0;overflow:visible;pointer-events:none}
.compact-home.drawing-route #draw-card .draw-tools::-webkit-scrollbar{display:none}
@media(max-width:280px){.compact-home.drawing-route #draw-card .draw-tools{display:grid;grid-template-columns:repeat(3,44px);gap:8px 12px}}
.compact-home.drawing-route #draw-card .draw-icon-button{display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;pointer-events:auto}
.compact-home.drawing-route #draw-card .draw-icon-button svg{width:22px;height:22px;flex:none}
.compact-home.drawing-route #draw-card #draw-cancel{position:static}
.compact-home.drawing-route #draw-card .draw-bottom{position:fixed;left:var(--publisher-x,50%);top:var(--publisher-bottom,100dvh);bottom:auto;transform-origin:50% 100%;transform:translate(-50%,-100%) scale(var(--publisher-scale,1)) translateY(calc(-84px - env(safe-area-inset-bottom)));display:flex;flex-direction:column;align-items:center;gap:10px;width:min(520px,calc(var(--publisher-width,100vw) - 24px));max-height:calc(100dvh - 36px);overflow:visible;pointer-events:none}
.compact-home.drawing-route #draw-card .draw-bottom>p,.compact-home.drawing-route #draw-card .draw-main-actions>*{pointer-events:auto}
.compact-home.drawing-route #draw-card .draw-main-actions{display:flex;justify-content:center;gap:10px;margin:0;flex-shrink:0;pointer-events:none}
.compact-home.drawing-route #draw-card .draw-main-actions button{flex:none;min-height:48px;padding:12px 20px;font-size:14px;line-height:1.4}
.compact-home.drawing-route #draw-card #draw-status{max-width:100%;margin:0;padding:6px 12px;border-radius:15px;font-size:11px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
.compact-home.drawing-route #draw-card #draw-status:empty{display:none}
.compact-home.drawing-route #draw-card #draw-status.notice-error{max-height:72px;overflow:auto;text-align:left}
.compact-home.drawing-route #draw-card #draw-consent{max-width:100%;margin:0;padding:7px 12px;border-radius:15px;font-size:11px;line-height:1.5}
.compact-home.drawing-route #draw-card #draw-options{position:absolute;top:auto;bottom:calc(100% + 12px);left:50%;right:auto;transform:translateX(-50%);width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 220px);margin:0;padding:12px;border:0;border-radius:20px;overflow:auto;pointer-events:auto}
.compact-home.drawing-route #draw-card #draw-name-label{display:block;font-size:11px}
.compact-home.drawing-route #draw-card #draw-name{min-height:44px;margin:5px 0 8px;padding:9px;font-size:16px}
.compact-home.drawing-route #draw-card .draw-explanation{margin:0;font-size:11px}
.compact-home.drawing-route #draw-card .draw-explanation summary{min-height:36px;display:flex;align-items:center;list-style:none;cursor:pointer}
.compact-home.drawing-route #draw-card .draw-explanation summary::before{content:'›';margin-right:6px;font-size:16px}
.compact-home.drawing-route #draw-card .draw-explanation[open] summary::before{transform:rotate(90deg)}
.compact-home.drawing-route #draw-card #draw-privacy{font-size:11px;line-height:1.6;margin:0 0 8px}
.compact-home.drawing-route #draw-card #draw-attribution,.compact-home.drawing-route #draw-card #draw-attribution a{font-size:10px}
.compact-home.drawing-route .pick-pin{display:none}
.compact-home.drawing-route #draw-card .draw-main-actions .draw-icon-button{width:48px;height:48px;min-height:48px;padding:0;font-size:14px}
.compact-home.drawing-route #draw-card .draw-bottom{max-width:520px;overflow:visible}
.compact-home.drawing-route #draw-card #draw-status{max-width:calc(100vw - 40px);font-size:12px;pointer-events:none}
.compact-home.drawing-route #draw-card .draw-main-actions{gap:8px}
.compact-home.drawing-route #draw-card .draw-main-actions>button{min-width:68px;padding:12px 16px}
.compact-home.drawing-route #draw-card .draw-main-actions>.draw-icon-button{min-width:48px}
.route-handle-marker{background:none;border:0}
.compact-home .route-edit-pin{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent!important;box-shadow:none!important;touch-action:none;cursor:grab;position:relative}
.compact-home .route-edit-pin::before{content:'';width:16px;height:16px;border:3px solid white;border-radius:50%;background:#187984;box-shadow:0 1px 6px #18312460}
.compact-home .route-edit-pin.selected{outline:0;background:transparent!important}
.compact-home .route-edit-pin.selected::before{background:#075cb9;outline:3px solid #8ec8f7}
.compact-home .route-edit-pin.route-candidate{font-size:24px;font-weight:500;color:white;cursor:pointer;background:transparent!important}
.compact-home .route-edit-pin.route-candidate::before{position:absolute;inset:7px;width:30px;height:30px;box-sizing:border-box;background:#075cb9;z-index:-1}
.compact-home .route-edit-pin:active{cursor:grabbing}
.compact-home #view-routes .record-controls button{min-height:56px}
.compact-home .route-manager-row{padding:3px 0;border-bottom:1px solid var(--line)}
.compact-home .route-manager-main{display:flex;align-items:center;gap:6px;min-height:48px}
.compact-home .route-manager-main>button{flex:none;min-height:44px;padding:8px 11px;font-size:12px}
.compact-home .route-manager-main>.route-manager-name{flex:1;min-width:0;text-align:left;padding:4px 7px;border-radius:12px}
.compact-home .route-manager-name strong,.compact-home .route-manager-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-home .route-manager-name strong{font-size:13px;font-weight:650}
.compact-home .route-manager-name small{font-size:10px;color:var(--muted);margin-top:3px}
.compact-home .route-manager-more{display:flex;align-items:center;gap:8px;font-size:11px}
.compact-home .route-manager-more summary{min-height:28px;padding:5px 7px;cursor:pointer;list-style:none;color:var(--muted)}
.compact-home .route-manager-more[open] summary{margin-bottom:4px}
.compact-home .route-manager-more>button{min-height:40px;margin:0 6px 6px;font-size:11px}
.compact-home .route-manager-empty{display:flex;align-items:center;justify-content:space-between;font-size:13px;padding:6px}
.compact-home .route-extras{font-size:11px;padding:5px 7px}
.compact-home .route-extras>summary{min-height:40px;padding:10px 0;cursor:pointer}
.compact-home dialog.route-confirm{position:fixed;inset:auto 16px calc(22px + env(safe-area-inset-bottom));width:min(420px,calc(100% - 32px));max-width:420px;max-height:154px;margin:0 auto;padding:12px 14px;border-radius:22px;overflow:auto}
.compact-home dialog.route-confirm p{margin:0 0 10px;font-size:12px;line-height:1.6;max-height:58px;overflow:auto}
.compact-home dialog.route-confirm button{min-height:44px;padding:8px 12px;font-size:13px;border-radius:999px}
