:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243038;background:#eef0eb;font-synthesis:none;--amber:#efbb56;--ink:#14252e;--muted:#77817e;--line:#e1e5dd}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b17413;outline-offset:4px}button{transition:background .15s,transform .15s}button:active{transform:translateY(1px)}a{color:inherit}h1,h2,h3,p{margin-top:0}h2{font-size:30px;line-height:1.12;letter-spacing:-1px;margin-bottom:16px}h2:focus{outline:none}h3{font-size:14px}p{line-height:1.6}small{font-size:11px}.workspace{display:flex;min-height:100dvh}.rail{width:92px;background:var(--ink);padding:27px 10px;display:flex;flex-direction:column;align-items:center;gap:14px;flex:none}.brand-symbol{display:grid;place-items:center;width:49px;height:49px;color:var(--amber);font-size:44px;text-decoration:none;margin-bottom:45px;line-height:1}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:70px;width:72px;background:none;color:#a6b5b7;font-size:10px;border-radius:14px}.nav-item>span{font-size:26px;line-height:1.2}.nav-item.active{background:#2c3b3e;color:var(--amber)}.nav-item:hover{background:#26383e}.rail-version{margin-top:auto;color:#97a5a6;text-align:center;font-size:22px;font-weight:600}.rail-version small{font-size:10px;font-weight:400}.main{flex:1;min-width:0;display:flex;flex-direction:column}header{height:100px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);background:#fafbf7;flex:none}.wordmark{font-weight:850;font-size:32px;letter-spacing:-1.8px;position:relative;padding-bottom:17px;line-height:1}.wordmark>span{color:#997129;font-size:23px;letter-spacing:-1px;margin-left:5px}.wordmark>small{position:absolute;left:1px;bottom:0;white-space:nowrap;font-size:8px;letter-spacing:1.8px;font-weight:600;color:#7c8580}.header-meta{display:flex;gap:9px;align-items:center;font-size:11px;color:#6b7773}.local-dot{height:6px;width:6px;border-radius:50%;background:#749686}.prototype-label{font-size:9px;letter-spacing:1px;border:1px solid #d9ded5;border-radius:5px;padding:8px 11px;margin-left:18px}.content{display:grid;grid-template-columns:minmax(0,1fr) 370px;flex:1;min-height:calc(100dvh - 100px)}.map{position:relative;min-height:640px;overflow:hidden;background:#182d35}.map-art{position:absolute;width:100%;height:100%;inset:0}.map-top{position:absolute;top:26px;left:26px;right:24px;display:flex;justify-content:space-between;pointer-events:none}.map-location{color:#f0f3e9;font-size:14px;font-weight:550}.map-location>span{color:var(--amber);font-size:22px;margin-right:7px}.map-location>small{display:block;margin:6px 0 0 29px;color:#99adad;font-size:10px;font-weight:400}.north{color:#d5ddda;display:flex;flex-direction:column;align-items:center;font-size:22px}.north small{font-size:9px;margin-top:3px}.map-hint{position:absolute;top:106px;left:50%;transform:translateX(-50%);padding:10px 16px;border:1px solid #45606a;background:#14252ee6;border-radius:30px;color:#bac8c6;font-size:11px;white-space:nowrap;pointer-events:none}.markers{position:absolute;inset:0;pointer-events:none}.marker{position:absolute;transform:translate(-50%,-50%);background:#f1bd58;border:5px solid #f1bd5826;background-clip:padding-box;color:#293238;border-radius:50%;width:49px;height:49px;display:grid;place-items:center;pointer-events:auto;box-shadow:0 5px 24px #0004;outline:1px solid #f1bd583d}.marker>span{font-size:29px;line-height:1}.marker small{position:absolute;top:46px;white-space:nowrap;color:#f0f2e6;font-size:10px;background:#182d35d9;padding:4px 7px;border-radius:4px}.marker.confirmed{background-color:#a4c5a9;border-color:#a4c5a926;outline-color:#a4c5a93d}.marker.disputed{background-color:#d9a09a;border-color:#d9a09a26;outline-color:#d9a09a3d}.marker.aged{opacity:.72}.marker.selected{outline:3px solid #f8f9ed;outline-offset:7px}.marker:active{transform:translate(-50%,-50%)}.draft-marker{position:absolute;transform:translate(-50%,-50%);color:white;background:#476a78;border:2px dashed white;border-radius:50%;width:50px;height:50px;display:grid;place-items:center;font-size:28px;box-shadow:0 0 0 15px #fff1}.map.picking{cursor:crosshair}.map-bottom{position:absolute;left:24px;right:24px;bottom:22px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.demo-pill{font-size:10px;color:#c5ceca;background:#15272ed9;border:1px solid #3e5459;padding:8px 11px;border-radius:6px;display:flex;align-items:center;gap:7px}.demo-pill i{width:5px;height:5px;border-radius:50%;background:var(--amber)}.map-caption{font-size:9px;color:#91a7ab}.primary{background:var(--amber);color:#263038;font-weight:650;min-height:49px;border-radius:9px;padding:13px 18px;text-align:center}.primary:hover{background:#e5ab3e}.add-floating{position:absolute;bottom:79px;left:50%;transform:translateX(-50%);box-shadow:0 6px 20px #0003;white-space:nowrap;display:flex;gap:14px;align-items:center;font-size:13px;padding:14px 24px}.add-floating:active{transform:translate(-50%,1px)}.add-floating>span{font-size:22px;line-height:1}.panel{padding:32px 27px;background:#f8f9f4;min-width:0;overflow-wrap:anywhere}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#7f8a7f;margin-bottom:17px}.muted{font-size:12px;color:#64716c;line-height:1.7}.panel-heading .muted{margin-bottom:25px}.summary{padding:20px;background:#e9ede4;border:1px solid #e0e6da;border-radius:12px;display:flex;gap:18px;align-items:center;margin-bottom:30px}.summary>strong{font-size:42px;font-weight:550;letter-spacing:-2px;line-height:1}.summary>span{font-size:12px;line-height:1.6}.summary small{font-size:10px;color:#7e897c}.summary-dot{width:8px;height:8px;border-radius:50%;background:#8ca487;margin-left:auto;box-shadow:0 0 0 5px #8ca48716}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.section-title h3{font-size:12px;margin:0}.section-title>span{font-size:9px;color:#939c91}.report-row{display:flex;text-align:left;align-items:center;width:100%;gap:11px;background:transparent;border-bottom:1px solid var(--line);padding:18px 0;min-height:80px}.report-row:hover{background:#eef1e9}.row-icon{width:33px;height:36px;display:grid;place-items:center;border-radius:9px;background:#f2e6c8;color:#8b6929;font-size:24px;flex:none}.row-icon.confirmed{background:#dfebde;color:#638263}.row-icon.disputed{background:#f0ddd7;color:#a16b60}.row-icon.expired,.row-icon.closed{background:#e5e7e2;color:#7d8379}.row-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.row-copy strong{font-size:12px;font-weight:600}.row-copy>span{font-size:10px;color:#7d877c}.row-arrow{color:#919b8c;margin-left:auto;font-size:18px}.check{display:flex;align-items:center;gap:10px;font-size:11px;line-height:1.6;min-height:48px;margin:18px 0;cursor:pointer}.check input{width:18px;height:18px;accent-color:#556d54;flex:none}.tip{display:flex;gap:14px;border-top:1px solid var(--line);padding-top:24px;margin-top:22px}.tip>span{color:#89947f;font-size:24px}.tip p{font-size:11px;color:#7f897d}.tip strong{font-size:11px;font-weight:600;color:#4f5e4d}.legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.legend>span{display:flex;align-items:center;gap:5px;font-size:8px;color:#788476}.legend i,.tag i{height:6px;width:6px;border-radius:50%;display:inline-block;background:#c4a466}.legend .confirmed{background:#88a98a}.legend .disputed{background:#c38d85}.back{background:none;padding:0;min-height:44px;color:#798376;font-size:11px;margin-bottom:20px}.tag{display:inline-flex;gap:7px;align-items:center;border:1px solid #e4dfc8;background:#f0ead8;padding:7px 10px;border-radius:6px;font-size:10px;color:#8c773b;margin-bottom:20px}.tag.confirmed{background:#e4eddf;border-color:#d7e2cf;color:#5f7e5a}.tag.disputed{background:#f2e3de;border-color:#e7d5cf;color:#a07165}.tag.closed,.tag.expired{background:#e7e9e2;color:#6d776b;border-color:#d9ddd1}.direction{font-size:13px;color:#6d7a68}.detail-metrics{border-block:1px solid var(--line);margin:26px 0;padding:8px 0}.detail-metrics>div{display:flex;justify-content:space-between;align-items:center;padding:13px 0;gap:12px}.detail-metrics span{font-size:11px;color:#75806e}.detail-metrics strong{font-size:12px;font-weight:600}blockquote{font-size:13px;margin:20px 0;padding:15px;border-left:3px solid #d4c89d;background:#efeee3;line-height:1.7}.notice,.success{font-size:12px;background:#eee9d7;border:1px solid #e4d9b7;padding:15px;border-radius:10px;line-height:1.65;margin:18px 0}.notice p{margin:5px 0 13px}.success{background:#e5eddf;border-color:#d8e3d0;color:#58754e}.prompt{font-size:13px;font-weight:600;margin-top:28px;margin-bottom:15px}.vote-actions,.actions{display:flex;gap:10px}.vote-actions>*{flex:1;min-height:54px;font-size:12px}.negative,.danger{background:#ecdcd6;color:#985b50;border-radius:9px;padding:13px 17px;font-weight:600}.negative:hover,.danger:hover{background:#e7cfc7}.fine{font-size:10px;color:#7c8778;line-height:1.7;margin-top:12px}.demo-note{border-top:1px solid var(--line);padding-top:20px;margin-top:30px;font-size:10px;color:#899280}.full{width:100%;margin-top:10px}.secondary{background:#e8ece2;border:1px solid #d7dfcc;color:#506049;border-radius:9px;min-height:46px;padding:12px 15px;font-size:12px;font-weight:550}.secondary:hover{background:#dfe7d6}.text-danger{color:#a16b5e;background:transparent;font-size:12px;min-height:46px}.steps{display:flex;gap:6px;margin:21px 0}.steps>i{height:3px;background:#dce2d4;flex:1;border-radius:4px}.steps .active{background:#c5a350}.field{display:block;font-size:12px;font-weight:550;line-height:1.7;margin:20px 0 8px}.field input,.field textarea,.field select{width:100%;margin-top:8px;border:1px solid #d4dccb;border-radius:8px;padding:13px;background:#fffef9;color:#344331;font-size:12px;min-height:47px}.field textarea{resize:vertical}.optional{font-weight:400;color:#84907d;font-size:10px}.location-preview{display:flex;gap:14px;align-items:center;padding:18px;background:#e9ede2;border-radius:10px;margin:22px 0}.location-preview>span{font-size:25px;color:#8b9b7e}.location-preview strong{font-size:12px;display:block}.location-preview small{display:block;color:#829077;margin-top:6px;font-size:10px}fieldset{border:0;padding:0;margin:24px 0}legend{font-size:12px;font-weight:600;padding:0;margin-bottom:10px}.radio{display:flex;gap:10px;align-items:center;min-height:47px;border-bottom:1px solid var(--line);font-size:12px;cursor:pointer}.radio input{accent-color:#8c7436;height:18px;width:18px}.segmented{display:flex;background:#e8ece2;border-radius:8px;padding:4px;margin:24px 0 10px}.segmented button{flex:1;border-radius:6px;min-height:42px;font-size:11px;background:transparent;color:#7a8670}.segmented button.active{background:#f9faf4;color:#384a30;box-shadow:0 1px 4px #0001}.empty{text-align:center;color:#7c8876;padding:35px 12px;font-size:12px;line-height:1.8}.help-item{border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.help-item h3{font-size:13px;margin-bottom:10px}.help-item p{font-size:12px;color:#74816c}.storage-warning{font-size:12px;line-height:1.5;padding:12px 26px;background:#efe0bb;color:#654d22}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);max-width:calc(100% - 32px);width:max-content;background:#f7f8ef;color:#273a2b;border:1px solid #c7d3bc;border-radius:10px;padding:15px 21px;box-shadow:0 5px 28px #0003;font-size:12px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:10}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #dce2d3;border-radius:21px;background:#f7f8f0;padding:35px;max-width:460px;width:calc(100% - 32px);color:#28392b;box-shadow:0 20px 100px #0004}dialog::backdrop{background:#0a1b24be;backdrop-filter:blur(5px)}dialog h1{font-size:28px;line-height:1.15;letter-spacing:-1px}dialog p{font-size:13px;color:#77816e}.welcome-mark{width:57px;height:57px;display:grid;place-items:center;background:var(--ink);color:var(--amber);font-size:40px;border-radius:15px;margin-bottom:24px}dialog .primary{font-size:13px}dialog .primary span{margin-left:12px}dialog h2{font-size:25px}.actions>*{flex:1;font-size:12px}
@media(min-width:1600px){.content{grid-template-columns:minmax(0,1fr) 420px}.panel{padding:40px}.map{min-height:760px}h2{font-size:36px}}
@media(max-width:1050px){header{padding:0 24px}.content{grid-template-columns:minmax(0,1fr) 330px}.panel{padding:27px 22px}.rail{width:76px;padding-inline:5px}.nav-item{width:64px}.prototype-label{display:none}.map-location{font-size:12px}.map-caption{display:none}}
@media(max-width:760px){.workspace{display:block;padding-bottom:74px}.rail{position:fixed;bottom:0;left:0;right:0;height:70px;padding:4px 14px calc(4px + env(safe-area-inset-bottom));width:100%;flex-direction:row;justify-content:space-around;gap:8px;z-index:5;background:#f8f9f4;border-top:1px solid var(--line)}.rail .brand-symbol,.rail-version{display:none}.nav-item{width:30%;min-height:56px;color:#829078;gap:4px;font-size:10px}.nav-item>span{font-size:22px}.nav-item.active{background:#e9ecdf;color:#4e603c}.nav-item:hover{background:#e9ecdf}header{height:79px;padding:0 20px}.wordmark{font-size:29px}.wordmark>span{font-size:22px}.wordmark>small{font-size:7px;letter-spacing:1.3px}.header-meta{font-size:9px;max-width:110px;line-height:1.5}.local-dot{flex:none}.content{display:flex;flex-direction:column;min-height:auto}.map{height:400px;min-height:400px}.map-top{left:18px;right:18px;top:18px}.map-location{font-size:12px}.map-hint{top:83px;font-size:9px;padding:8px 12px}.map-bottom{left:15px;right:15px;bottom:14px}.demo-pill{font-size:8px;padding:6px 9px}.add-floating{bottom:54px;min-height:45px;font-size:12px;padding:10px 20px}.map-art{opacity:.95}.marker{height:42px;width:42px;border-width:4px}.marker>span{font-size:24px}.marker small{top:38px;font-size:8px}.panel{padding:27px 23px 32px;border-radius:20px 20px 0 0;margin-top:-15px;z-index:1;min-height:350px}.panel h2{font-size:28px}.panel-heading .muted{font-size:12px}.summary{margin-bottom:22px;padding:17px}.summary>strong{font-size:36px}.report-row{min-height:72px;padding:14px 0}.row-copy strong{font-size:12px}.row-copy>span{font-size:10px}.toast{bottom:86px;font-size:11px}.back{margin-bottom:10px}.check{font-size:11px;min-height:44px}.legend{font-size:9px}.map.picking{height:360px;min-height:360px}dialog{padding:27px}.panel:has(.steps){min-height:370px}.tip{margin-top:14px}.map-caption{display:block;font-size:8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.map-actions{position:absolute;z-index:450;bottom:88px;left:50%;transform:translateX(-50%);display:flex;gap:8px;width:calc(100% - 32px);max-width:380px}.map-actions .primary{flex:1;min-height:52px;padding:12px;font-size:14px;box-shadow:0 4px 15px #0002}.map-actions .secondary{min-width:85px;min-height:52px;margin:0;background:#f8f9f4;font-size:14px;box-shadow:0 4px 15px #0002}
.real-map{min-height:680px;background:#e9ecdd;isolation:isolate}.real-map #map-canvas{position:absolute;inset:0 0 38px;z-index:0;background:#e9ecdd}.real-map .map-top{z-index:450;align-items:flex-start;gap:15px}.real-map .map-location{background:#14252ef0;padding:12px 16px;border-radius:10px;box-shadow:0 3px 15px #0002}.real-map .map-location small{margin-left:0;line-height:1.6;max-width:210px}.real-map .map-hint{z-index:440;top:120px}.real-map .map-bottom{bottom:7px;left:12px;z-index:450}.real-map .demo-pill{background:#f8f9f4;color:#526348;border:0;padding:6px}.real-map .add-floating{z-index:450;bottom:88px}.real-map .leaflet-top.leaflet-right{top:90px;right:12px}.map-tools{display:flex;flex-direction:column;gap:7px;pointer-events:auto}.map-tools button{min-height:38px;background:#f8f9f4eF;border:1px solid #d4ddca;border-radius:7px;padding:8px 11px;font-size:11px;color:#3c5034;box-shadow:0 2px 8px #0001}.map-tools button:hover{background:#e7ebdc}.report-pin-wrapper{background:transparent;border:0}.report-pin{display:grid;place-items:center;background:#efbb56;border:3px solid #fff8ce;border-radius:50%;width:44px;height:44px;box-shadow:0 3px 12px #0004;color:#2c3c2d;font-size:26px;position:relative}.report-pin.confirmed{background:#a4c5a9;border-color:#eff7e9}.report-pin.disputed{background:#d9a09a;border-color:#fff0ea}.report-pin.selected{outline:3px solid #243c45;outline-offset:4px}.report-pin small{position:absolute;top:45px;background:#1b3038;color:white;padding:3px 6px;border-radius:4px;font-size:9px;white-space:nowrap}.draft-pin{display:grid!important;place-items:center;color:white;background:#3875ba;border:3px dashed white;border-radius:50%;font-size:28px;box-shadow:0 2px 12px #0004}.tile-status{position:absolute;top:160px;left:18px;right:18px;z-index:460;background:#fff1cf;padding:12px;border:1px solid #cfac68;border-radius:8px;font-size:12px}.trip-box{padding:17px;background:#e9ede4;border-radius:10px;margin:20px 0 25px}.trip-box strong{font-size:13px}.trip-box p{font-size:11px;color:#78856d;margin:8px 0}.geo-gate{min-height:100dvh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at top left,#34515a,#14252e 70%)}.gate-card{max-width:460px;width:100%;background:#f8f9f1;border-radius:22px;padding:35px;box-shadow:0 12px 80px #0004}.gate-card h1{font-size:36px;letter-spacing:-1.5px;line-height:1.12}.gate-card>p{font-size:13px;color:#6c7c64}.gate-error{color:#a4503d!important;background:#f3e2dc;padding:12px;border-radius:7px}.gate-card button:disabled{opacity:.6;cursor:wait}.leaflet-control-attribution{font-size:10px!important}.leaflet-container{font-family:inherit}[hidden]{display:none!important}
@media(max-width:760px){.real-map{height:430px;min-height:430px}.real-map .map-location{font-size:11px;padding:10px 12px}.real-map .map-location small{font-size:9px;max-width:190px}.real-map .map-hint{font-size:9px;top:111px}.map-tools button{font-size:10px;min-height:36px;padding:7px}.panel{margin-top:0;border-radius:0}.real-map .add-floating{bottom:80px}.gate-card{padding:27px}.gate-card h1{font-size:32px}.real-map .leaflet-control-attribution{font-size:8px!important}.real-map.picking{height:390px;min-height:390px}.real-map .map-bottom{bottom:5px}.real-map .demo-pill{font-size:8px}}
/* Freshness is shared with native through markerAppearance; icons stay clickable as they fade. */
.report-pin,.report-pin.confirmed,.report-pin.disputed{background:var(--pin-color,#ecb338);border-color:#fff8;opacity:var(--pin-opacity,1);color:#fff;transition:background .3s,opacity .3s}
.report-pin svg{width:28px;height:28px;overflow:visible;filter:drop-shadow(0 1px 1px #0002)}
.report-pin small{color:#fff;background:#24363e;font-weight:600}
.row-icon,.row-icon.confirmed,.row-icon.disputed,.row-icon.closed,.row-icon.expired{background:var(--pin-color,#8b9197);color:#fff}
.tag i,.tag.confirmed i,.tag.disputed i{background:var(--pin-color,#8b9197)}
.tag.confirmed{background:#f7e5e4;border-color:#e8c6c5;color:#ac343b}
.legend{gap:10px 16px;line-height:1.5}.legend>span{font-size:10px}.legend .confirmed{background:#e5343b}.legend .pending{background:#ecb338}.legend .aged{background:#8b9197}
.freshness-label{font-size:15px;font-weight:650;color:#344a37;background:#e9ede4;border-radius:9px;padding:13px 15px;line-height:1.5}
.row-copy>span{line-height:1.6}.report-row{min-height:84px}.help-item p{white-space:pre-wrap;overflow-wrap:anywhere}
.location-status{background:#edf0e5;color:#4a5e40;line-height:1.6}
.map-tools button:disabled,.trip-box button:disabled{opacity:.65;cursor:wait}
/* Mobile first: readable text and direct controls on small, older phones. */
@media(max-width:760px){
 body{font-size:16px}.workspace{min-height:100vh}.map-actions{bottom:78px;left:16px;right:16px;transform:none;width:auto}.map-actions .primary{font-size:14px;min-height:52px}.map-actions .secondary{font-size:14px;min-width:80px}.real-map .map-hint{top:111px;left:16px;right:82px;transform:none;width:auto;white-space:normal;line-height:1.5;font-size:11px}.real-map .map-top{gap:8px;left:14px;right:14px}.real-map .map-location{max-width:calc(100% - 90px);font-size:12px}.real-map .map-location small{font-size:11px}.map-tools{width:78px;flex:none}.map-tools button{font-size:12px;min-height:44px}.real-map .leaflet-top.leaflet-right{top:100px}.muted,.panel-heading .muted,.trip-box p,.help-item p{font-size:14px}.fine,.row-copy>span,.legend>span,.demo-note,.location-preview small{font-size:12px}.row-copy strong,.prompt,.field,.radio{font-size:15px}.row-copy{gap:5px}.report-row{min-height:78px}.field textarea,.field select,.field input{font-size:16px;min-height:48px}.check{font-size:14px;min-height:48px}.radio{min-height:48px}.primary,.secondary,.negative,.vote-actions>*{font-size:15px;min-height:48px}.back{font-size:14px}.tag{font-size:12px}.summary{display:none}.trip-box{padding:14px}.trip-box strong{font-size:15px}.tip p,.tip strong{font-size:12px}.segmented button{font-size:13px;min-height:46px}.panel{padding:22px 18px 28px}.panel h2{font-size:27px}.map{height:390px;min-height:390px}.real-map{height:390px;min-height:390px}.real-map.picking{height:350px;min-height:350px}.detail-metrics span,.detail-metrics strong{font-size:13px}.empty{font-size:14px}.nav-item{font-size:11px}.real-map .leaflet-control-attribution{font-size:9px!important}.storage-warning{font-size:13px}
}
@media(max-width:760px) and (max-height:720px){.real-map{height:310px;min-height:310px}.real-map.picking{height:300px;min-height:300px}}
@media(max-width:760px){.real-map .leaflet-top.leaflet-right{top:115px;right:4px}.map-actions{bottom:62px}}
/* Map controls stay at the edges; instructions and primary actions live below the tiles. */
.real-map{--map-footer-height:98px;min-height:680px}
.real-map #map-canvas{inset:0 0 var(--map-footer-height)}
.real-map .map-top{top:12px;left:12px;right:76px;display:block}
.district-button{pointer-events:auto;max-width:100%;min-height:44px;padding:9px 12px;border:1px solid #dce1d7;border-radius:12px;background:#fafbf7f5;color:#34463b;box-shadow:0 2px 8px #14252e12;font-size:13px;line-height:1.2;text-align:left}
.district-button span{margin-left:8px;color:#7e8d80}
.real-map .map-tools{position:absolute;z-index:450;right:12px;bottom:calc(var(--map-footer-height) + 18px);width:52px;display:block}
.real-map .map-tools .locate-button{display:grid;place-items:center;width:52px;height:52px;min-height:52px;padding:12px;border:1px solid #d4ddd3;border-radius:50%;background:#fff;color:#374c56;box-shadow:0 3px 12px #14252e2b}
.locate-button svg{display:block;width:26px;height:26px}.real-map .locate-button.located{color:#2878c8}.real-map .locate-button.locating{color:#a47a28;opacity:.65}
.real-map .leaflet-top.leaflet-right{top:12px;right:12px}.real-map .leaflet-right .leaflet-control{margin:0}.real-map .leaflet-control-zoom{border:1px solid #d4ddd3;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #14252e1a}.real-map .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;color:#374c56;font-weight:400;background:#fff}
.real-map .map-footer{position:absolute;z-index:450;left:0;right:0;bottom:0;height:var(--map-footer-height);padding:10px 12px 7px;background:#f8f9f4;border-top:1px solid #dce1d7}
.real-map .map-actions{position:static;transform:none;width:100%;max-width:400px;display:flex;margin:0 auto;gap:8px}
.real-map .map-actions .primary{min-height:52px;box-shadow:none}.real-map .map-actions .secondary{box-shadow:none}
.real-map .map-hint{position:static;transform:none;max-width:none;width:auto;padding:6px 0 0;margin:0;border:0;border-radius:0;background:none;color:#63716a;font-size:12px;text-align:center;white-space:normal;line-height:1.4}
.real-map .tile-status{top:70px;left:12px;right:76px;font-size:13px}
@media(max-width:760px){
 header{height:64px;padding:0 16px}.wordmark{font-size:27px}.wordmark>small{font-size:6px;letter-spacing:1px}
 .real-map,.real-map.picking{height:calc(100vh - 134px);height:calc(100svh - 134px);min-height:400px;max-height:780px}
 .real-map .map-top{top:12px;left:12px;right:72px}.real-map .map-tools{right:12px;width:52px}
 .real-map .map-hint{font-size:11px;left:auto;right:auto;top:auto}
 .real-map .leaflet-control-attribution{font-size:9px!important;max-width:calc(100vw - 16px)}
 .district-button{font-size:13px;padding:9px 12px}
}
.real-map.adding{--map-footer-height:44px}
@media(min-width:761px){.content{grid-template-columns:minmax(0,520px) 370px;justify-content:center}.real-map{height:calc(100vh - 100px);min-height:740px}.panel{height:calc(100vh - 100px);min-height:740px;overflow-y:auto}}
@media(min-width:761px) and (max-width:1050px){.content{grid-template-columns:minmax(0,520px) 330px}}
.map-context-popup .leaflet-popup-content{margin:14px;min-width:190px}
.map-context-menu{display:grid;gap:8px;color:#243038;line-height:1.4}
.map-context-menu strong{font-size:15px;margin-bottom:4px;font-weight:600}
.map-context-menu button{min-height:52px;font-size:16px;width:100%}
.sheet-handle,.sheet-close{display:none}
/* Phone reference: the map is the screen, secondary content opens in a bottom sheet. */
@media(max-width:760px){
 .workspace{height:100vh;height:100svh;min-height:0;padding-bottom:70px;overflow:hidden}
 .workspace header{display:none}.main,.content{height:100%;min-height:0}.content{display:block}
 .real-map,.real-map.picking{height:calc(100vh - 70px);height:calc(100svh - 70px);min-height:280px;max-height:none}
 .map-home .panel{display:none}.rail{z-index:700}
 .panel-open .panel{position:fixed;z-index:600;left:0;right:0;bottom:70px;height:auto;min-height:0;max-height:calc(100vh - 100px);max-height:calc(100svh - 100px);overflow-y:auto;overscroll-behavior:contain;border:1px solid #e1e5dd;border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -5px 24px #14252e20;padding:22px 18px 24px}
 .point-selection .panel{max-height:42vh;max-height:42svh}
 .sheet-handle{display:block;position:absolute;top:8px;left:50%;transform:translateX(-50%);width:34px;height:4px;border-radius:4px;background:#c7cec6}
 .sheet-close{display:grid;place-items:center;float:right;width:44px;height:44px;min-height:44px;margin:-4px -4px 4px 8px;border-radius:50%;background:#e9ede5;color:#52615b;font-size:27px;line-height:1}
 .real-map .leaflet-top.leaflet-right{top:auto;bottom:calc(var(--map-footer-height) + 106px);right:12px}
 .storage-warning{position:fixed;z-index:650;top:8px;left:8px;right:8px;border-radius:12px;padding:12px;box-shadow:0 2px 12px #14252e20}
 .storage-warning+.location-status{top:100px}
}
.map-demo{display:block;text-align:center;color:#7d887f;font-size:10px;line-height:1.4;margin-top:2px}
.real-map{--map-footer-height:114px}.real-map.adding{--map-footer-height:62px}
:root{--phone-nav-height:70px}
@supports(padding-bottom:env(safe-area-inset-bottom)){:root{--phone-nav-height:calc(70px + env(safe-area-inset-bottom))}}
@media(max-width:760px){
 .workspace{padding-bottom:var(--phone-nav-height)}.rail{height:var(--phone-nav-height)}
 .real-map,.real-map.picking{height:calc(100vh - var(--phone-nav-height));height:calc(100svh - var(--phone-nav-height))}
 .panel-open .panel{bottom:var(--phone-nav-height);max-height:calc(100vh - var(--phone-nav-height) - 30px);max-height:calc(100svh - var(--phone-nav-height) - 30px)}
 .point-selection .panel{max-height:42vh;max-height:42svh}
}
/* A report opens over the map, with its two useful actions visible immediately. */
.report-sheet .panel{position:fixed;z-index:600;bottom:20px;left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 32px));height:auto;min-height:0;max-height:calc(100vh - 40px);overflow-y:auto;padding:20px;border:1px solid #e1e5dd;border-radius:20px;background:#fafbf7;box-shadow:0 -5px 28px #14252e26}
.report-sheet .sheet-close{display:grid;place-items:center;float:right;width:44px;height:44px;margin:-4px -4px 4px 8px;border-radius:50%;background:#e9ede5;color:#52615b;font-size:27px;line-height:1}
.report-card .tag{margin-bottom:8px;font-size:12px}.report-card h2{font-size:25px;letter-spacing:-.6px;margin-bottom:6px}.report-place{font-size:13px;color:#6d7972;margin:0 0 10px;line-height:1.5}.report-card .freshness-label{padding:0;background:none;font-size:14px;line-height:1.5;margin:0 0 14px}.report-card .fine{margin:8px 0;font-size:12px}.report-card .vote-actions>*{min-height:52px;font-size:15px}.report-more{margin-top:10px;border-top:1px solid #e1e5dd}.report-more summary{cursor:pointer;min-height:44px;padding:13px 0;font-size:13px;color:#66776a}.report-more .detail-metrics{margin:0 0 12px}.report-more blockquote{margin:10px 0}.report-card .success{margin:10px 0;padding:12px}
@media(max-width:760px){.report-sheet .rail{display:none}.report-sheet .panel{left:0;right:0;bottom:0;transform:none;width:100%;max-height:58vh;max-height:58svh;border-radius:20px 20px 0 0;padding:22px 18px calc(18px + env(safe-area-inset-bottom,0px))}.report-card h2{font-size:24px}}
/* The visual beacon follows zoom while its transparent finger target stays 44px. */
.report-pin-wrapper{display:flex!important;align-items:center;justify-content:center}
.report-pin{flex:none;width:var(--marker-size,44px);height:var(--marker-size,44px);border-width:var(--marker-border-size,3px);box-shadow:0 2px 7px #0003}
.report-pin svg{width:var(--marker-symbol-size,28px);height:var(--marker-symbol-size,28px)}
.report-pin small{top:calc(var(--marker-size,44px) + 1px);left:50%;transform:translateX(-50%)}
/* WebKit's Copy/Search callout must not compete with the map's long-press menu. */
#map-canvas,#map-canvas *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#map-canvas input,#map-canvas textarea,#map-canvas select,#map-canvas [contenteditable=""],#map-canvas [contenteditable="true"],#map-canvas [contenteditable="plaintext-only"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
/* Full-height map with a compact translucent action dock. */
.workspace{height:100vh;height:100svh;min-height:0;padding:0;overflow:hidden}
.workspace header{display:none}.main,.content{height:100%;min-height:0}.content{display:block}
.real-map,.real-map.picking{--map-footer-height:100px;height:100%;min-height:0;max-height:none}
.real-map #map-canvas{inset:0}
.map-home .panel{display:none}
.real-map .map-footer{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));height:auto;padding:9px 10px 6px;border:1px solid #ffffff26;border-radius:17px;background:rgba(20,37,46,.86);box-shadow:0 4px 20px #14252e30}
@supports(backdrop-filter:blur(8px)){.real-map .map-footer{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}}
.real-map .map-actions{max-width:none;gap:8px;align-items:center}
.real-map .map-actions .primary{flex:1;min-width:0;min-height:50px;padding:10px 8px;font-size:15px;border-radius:11px}
.dock-settings{display:grid;place-items:center;flex:none;width:50px;height:50px;min-height:50px;border:1px solid #ffffff30;border-radius:11px;background:#ffffff16;color:#fff}
.dock-settings:hover{background:#ffffff28}.dock-settings svg{width:25px;height:25px}
.real-map .map-demo{margin-top:5px;color:#d7dfe1;font-size:10px;line-height:1.3}
.real-map .map-tools{right:12px;bottom:calc(124px + env(safe-area-inset-bottom,0px))}
.real-map .map-tools .locate-button{padding:13px}.locate-button svg{width:26px;height:26px}
.real-map .leaflet-top.leaflet-right{top:auto;right:12px;bottom:calc(204px + env(safe-area-inset-bottom,0px))}
.real-map .leaflet-bottom{bottom:calc(101px + env(safe-area-inset-bottom,0px))}
.real-map .leaflet-bottom.leaflet-left{bottom:calc(121px + env(safe-area-inset-bottom,0px))}
.real-map.adding .map-footer{display:none}
.panel-open .panel{position:fixed;z-index:600;left:50%;right:auto;bottom:0;transform:translateX(-50%);width:min(460px,100%);height:auto;min-height:0;max-height:calc(100vh - 55px);max-height:calc(100svh - 55px);overflow-y:auto;overscroll-behavior:contain;border:1px solid #e1e5dd;border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -5px 24px #14252e20;padding:24px 18px calc(20px + env(safe-area-inset-bottom,0px))}
.point-selection .panel{max-height:42vh;max-height:42svh}
.report-sheet .panel{max-height:58vh;max-height:58svh}
.sheet-handle{display:block;position:absolute;top:8px;left:50%;transform:translateX(-50%);width:34px;height:4px;border-radius:4px;background:#c7cec6}
.sheet-close{display:grid;place-items:center;float:right;width:44px;height:44px;min-height:44px;margin:-4px -4px 4px 8px;border-radius:50%;background:#e9ede5;color:#52615b;font-size:27px;line-height:1}
.location-steps{padding-left:23px;font-size:15px;line-height:1.55}.location-steps li{padding:0 0 13px 3px}.location-guide{display:inline-block;padding:12px 0;font-size:14px}
.storage-warning{position:fixed;z-index:650;top:8px;left:8px;right:8px;max-width:500px;border-radius:12px;padding:12px;background:#fff8e5;box-shadow:0 2px 12px #14252e20;font-size:13px}
/* A held point opens one compact form; the map remains visible above it. */
.add-sheet .panel{bottom:var(--keyboard-inset,0px);padding:10px 16px calc(16px + env(safe-area-inset-bottom,0px));max-height:calc(var(--visible-height,100svh) - 12px)}
.comment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:4px}
.comment-heading label{font-size:16px;font-weight:600}
.comment-heading .sheet-close{float:none;flex:none;margin:0 -4px 0 0;width:44px;height:44px}
.add-sheet #comment{display:block;width:100%;height:68px;min-height:68px;max-height:150px;resize:none;overflow-y:auto;padding:10px 12px;border:1px solid #d4dccd;border-radius:11px;background:#fff;color:#243038;font-size:16px;line-height:23px}
.add-sheet [data-action="publish"]{margin-top:10px;min-height:50px;font-size:16px;border-radius:11px}
/* One short introduction on opening, also available again from settings. */
#welcome{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100vh;height:100svh;max-height:none;margin:0;padding:calc(24px + env(safe-area-inset-top,0px)) 22px calc(24px + env(safe-area-inset-bottom,0px));border:0;border-radius:0;background:#f8f9f4;color:#243038;overflow-y:auto;overscroll-behavior:contain;z-index:1000}
#welcome[open]{display:flex;flex-direction:column;align-items:center}
#welcome::backdrop{background:#f8f9f4}
.welcome-content{width:100%;max-width:420px;margin:auto 0}
#welcome h1{margin:0 0 28px;font-size:30px;line-height:1.2;letter-spacing:-.7px;font-weight:750}
#welcome h1:focus{outline:none}
.intro-items{display:grid;gap:22px;margin:0 0 28px}
.intro-item{display:flex;gap:13px;align-items:flex-start}
.intro-number{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#efe4c8;color:#775a22;font-size:16px;font-weight:650}
.intro-item h2{margin:2px 0 6px;font-size:17px;line-height:1.3;letter-spacing:0}
.intro-item p{margin:0;font-size:15px;line-height:1.5;color:#52615b}
#welcome #start-demo{min-height:52px;margin-top:0;font-size:17px;border-radius:12px}
#welcome .intro-demo{margin:12px 0 0;font-size:11px;line-height:1.4;color:#6e7a72;text-align:center}
@media(max-height:620px){#welcome{padding-top:18px;padding-bottom:18px}#welcome h1{font-size:27px;margin-bottom:20px}.intro-items{gap:16px;margin-bottom:20px}.intro-item p{font-size:14px}.intro-item h2{font-size:16px}}

.intro-item>p{padding-top:3px;color:#34443d;font-size:16px;line-height:1.5}
@media(max-height:620px){.intro-item>p{font-size:15px}}
.toast{bottom:calc(110px + env(safe-area-inset-bottom,0px));z-index:500;font-size:14px;padding:12px 16px;line-height:1.4}

#welcome:not([open]){display:none}
/* Matching, finger-sized map controls without an action dock. */
.real-map .map-tools{display:flex;flex-direction:column;gap:12px;width:52px;right:12px;bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.real-map .map-tools button{display:grid;place-items:center;width:52px;height:52px;min-height:52px;padding:0;border:1px solid #d4ddd3;border-radius:16px;background:#fff;color:#374c56;box-shadow:0 3px 12px #14252e2b}
.real-map .map-tools button:hover{background:#f2f5f3}
.real-map .map-tools .locate-button{border-radius:16px;padding:0}
.settings-button svg{display:block;width:26px;height:26px}
.real-map .leaflet-top.leaflet-right{top:auto;right:12px;bottom:calc(156px + env(safe-area-inset-bottom,0px))}
.real-map .leaflet-control-zoom.leaflet-bar{border:0;background:none;border-radius:0;box-shadow:none;overflow:visible}
.real-map .leaflet-control-zoom.leaflet-bar a{box-sizing:border-box;display:grid;place-items:center;padding:0;width:52px;height:52px;line-height:1;margin:0 0 12px;border:1px solid #d4ddd3;border-radius:16px;background:#fff;color:#374c56;font-size:32px;font-weight:400;box-shadow:0 3px 12px #14252e2b}
.real-map .leaflet-control-zoom.leaflet-bar a:last-child{margin-bottom:0}
.real-map .leaflet-control-zoom.leaflet-bar a:hover{background:#f2f5f3}
.real-map .leaflet-control-zoom.leaflet-bar a.leaflet-disabled{color:#a7b0b4;background:#f4f6f5;cursor:default}
.real-map .leaflet-bottom{bottom:0}
.real-map .leaflet-bottom.leaflet-left{bottom:18px}
.toast{bottom:calc(36px + env(safe-area-inset-bottom,0px))}
.real-map .leaflet-control-zoom.leaflet-bar a:first-child,.real-map .leaflet-control-zoom.leaflet-bar a:last-child{border-radius:16px}

/* Lucide artwork uses a common centered 24px canvas, independent of text baselines. */
.real-map .map-tools button .map-control-icon,.real-map .leaflet-control-zoom.leaflet-bar a .map-control-icon{display:block;width:24px;height:24px;margin:0;pointer-events:none}
