:root{font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;color:#203b34;background:#f5f7f4;line-height:1.6;font-size:15px;--green:#157052;--blue:#285a9b;--amber:#a85c10}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;padding:15px 24px;background:#fff;border-bottom:1px solid #dce4dc;gap:12px}header>div{display:flex;align-items:center;gap:25px}header strong{font-size:23px}header span{font-size:17px;font-weight:600}header small{color:#657669;white-space:nowrap}.notice{margin:0;padding:11px 24px;background:#fbf1dc;color:#6e531e;font-size:14px}.notice strong{font-weight:600}main{display:grid;grid-template-columns:minmax(0,1fr) 370px;max-width:1800px;margin:auto;min-height:calc(100vh - 130px)}.map-section{min-width:0;position:sticky;top:0;align-self:start;padding:14px}.map-tools{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:10px}.map-tools span{font-size:13px;color:#647164}button,select{font:inherit;min-height:44px;border:1px solid #bfcdbe;border-radius:7px;background:#fff;color:#233e32;padding:8px 12px;cursor:pointer}button:hover{background:#eaf0e6;border-color:#5d805b}button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #618536;outline-offset:3px}a{color:#215e70;overflow-wrap:anywhere}#map{width:100%;height:calc(100vh - 238px);min-height:500px;border:1px solid #c5d1c1;border-radius:9px;background:#e7ece4;z-index:0}.loading{padding:20px}.legend{display:flex;flex-wrap:wrap;gap:9px 18px;margin-top:12px;font-size:12px}.legend>span{display:flex;align-items:center;gap:7px}.route-line,.pending-line{display:inline-block;width:25px;border-top:4px solid var(--green)}.pending-line{border-top:4px dashed var(--amber)}.station-dot,.bike-dot,.signal-dot{display:inline-block;width:12px;height:12px;border:2px solid #fff;box-shadow:0 0 0 1px #778a78;border-radius:50%;background:var(--blue)}.bike-dot{background:var(--green)}.signal-dot{background:#e4a546;border-radius:2px}.map-note{font-size:12px;color:#5d705e;margin:10px 0}.leaflet-container{font-family:inherit!important}.leaflet-container a.leaflet-popup-close-button{width:32px;height:32px;font-size:24px}.leaflet-popup-content{line-height:1.7;font-size:14px;min-width:210px;margin:20px 22px!important}.leaflet-popup-content h2{font-size:17px;margin:7px 0}.leaflet-popup-content p{margin:9px 0}.leaflet-tooltip{font-family:inherit;font-size:13px}.leaflet-control-zoom a{width:42px!important;height:42px!important;line-height:42px!important}.station-icon{background:#285a9b;border:2px solid #fff;border-radius:6px;color:white;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;box-shadow:0 1px 5px #233e3240}.badge{display:inline-block;font-size:12px;color:#8b5816;background:#fff1d3;border-radius:4px;padding:3px 8px}.sourcebadge{color:#275d41;background:#e4efdf}.small{font-size:12px;color:#5e6e5b}.map-popbutton{width:100%;margin-top:6px}aside{border-left:1px solid #dce4dc;background:#fff;padding:20px;min-width:0}h1{font-size:21px;margin:0 0 6px}h2{font-size:19px;margin:12px 0 8px}h3{font-size:15px;margin:15px 0 8px}p{margin:9px 0}fieldset{padding:0;border:0;margin:16px 0}legend{font-size:13px;color:#6a7b63;margin-bottom:6px}fieldset label{display:flex;gap:10px;align-items:center;min-height:45px;cursor:pointer;border-bottom:1px solid #eef1ea}fieldset label>span:last-child{margin-left:auto;color:#71806b;font-size:12px}input[type=checkbox]{width:18px;height:18px;accent-color:#286a50}.swatch{flex-shrink:0}.layers{border-bottom:1px solid #dce4dc;padding-bottom:15px;margin-bottom:18px}.list-label{display:block;margin-bottom:6px;font-weight:600}select{width:100%;margin-bottom:10px}#items{max-height:380px;overflow:auto;overscroll-behavior:contain}.item{display:block;width:100%;text-align:left;margin:7px 0;padding:12px;background:#f9fbf7}.item span{display:block;font-size:12px;color:#6c7c63;margin-top:4px}.item .pendingtext{color:#98621b}.detail{scroll-margin-top:20px}.detail h2{overflow-wrap:anywhere}.detail dl{font-size:14px}dt{color:#687b5e;font-size:12px;margin-top:14px}dd{margin:1px 0 0;overflow-wrap:anywhere}.detail .detailNote{padding:12px;background:#fff4de;border-radius:6px;font-size:14px}#backList{width:100%;text-align:left}details{border-top:1px solid #dce4dc;padding-top:16px;margin-top:18px;font-size:13px}summary{cursor:pointer;min-height:30px;font-weight:600}details ul{padding-left:20px}details li{margin-bottom:8px}.sources p{font-size:12px}.sources li{margin-bottom:14px}.error{background:#fff1dd;color:#7b4e15;padding:15px;border:1px solid #e6c48b;border-radius:6px}footer{padding:14px 24px;border-top:1px solid #dce4dc;color:#6c7c63;font-size:12px}#scopeInfo{font-size:13px;color:#526b51}[hidden]{display:none!important}@media(max-width:1050px){main{grid-template-columns:minmax(0,1fr) 320px}aside{padding:16px}header{padding:13px 18px}.notice{padding:10px 18px}}@media(max-width:760px){header{padding:12px 15px;align-items:start}header>div{display:block}header strong{font-size:20px}header span{display:block;font-size:15px;margin-top:4px}header small{font-size:11px}.notice{padding:10px 15px;font-size:12px}main{display:flex;flex-direction:column}.map-section{position:relative;order:0;padding:12px}#map{height:61vh;min-height:390px}.map-tools{margin-bottom:8px}.map-tools span{font-size:12px}aside{border-left:0;border-top:1px solid #dce4dc;padding:18px;order:1}.layers{margin-bottom:15px}.legend{font-size:11px;gap:8px 13px}.map-note{font-size:11px}fieldset{display:grid;grid-template-columns:1fr}#items{max-height:320px}.detail{scroll-margin-top:10px}footer{padding:12px 18px}}
/* 0.4: keep the original restrained, responsive map layout. */
main{grid-template-columns:minmax(0,1fr) 390px}.route-picker{display:flex;align-items:center;gap:12px;flex:1;font-size:13px}.route-picker select{margin:0;max-width:430px;flex:1;min-width:0}.map-tools button{white-space:nowrap}.status-filters{display:flex;flex-wrap:wrap;gap:2px 18px;margin:0 0 10px}.status-filters legend{width:100%}.status-filters label{border:0;display:flex;align-items:center;gap:6px;min-height:44px}.status-filters label>span:last-child{margin:0}.blocked-line{display:inline-block;width:25px;border-top:4px dashed #b83c45}.bike-dot{background:#326aaf;border-color:#d98a20}.toggle{display:flex;align-items:center;min-height:44px;gap:10px}.stats{background:#f0f5ef;border-radius:6px;padding:12px;margin:12px 0;font-size:14px}.stats strong{font-size:20px}.stats p{margin:4px 0}.tabs{display:flex;gap:8px;margin-bottom:12px}.tabs button{flex:1}.tabs button[aria-pressed=true]{background:#174d42;color:white}input[type=search]{display:block;width:100%;min-height:44px;font:inherit;border:1px solid #bfcdbe;border-radius:6px;padding:10px;margin:6px 0 10px}.item .confirmedtext{color:#146e50}.item .pendingtext{color:#985c13}.item .blockedtext{color:#a52b3d}#more{width:100%;margin-top:10px}.badge.confirmed{background:#e1f1e7;color:#126b48}.badge.pending{background:#fff1d3;color:#89510c}.badge.blocked{background:#fbe3e7;color:#a12638}.subrecord{padding:10px 0;border-bottom:1px solid #e3e9e0}.subrecord summary{font-weight:400}.empty{padding:15px;background:#f4f6f2}.detail .station-link{width:100%;text-align:left;margin:4px 0}#map{height:calc(100vh - 325px);min-height:430px}.map-section{padding-top:12px}#items{max-height:430px}.detail .evidence{font-size:12px}#gaps ul{padding-left:20px}.small a{font-size:inherit}@media(max-width:1050px){main{grid-template-columns:minmax(0,1fr) 330px}.route-picker{display:block}.route-picker select{display:block;width:100%}.map-tools{align-items:end}}@media(max-width:760px){main{display:flex}.map-tools{gap:8px}.map-tools button{font-size:12px;max-width:120px;white-space:normal}.route-picker{font-size:12px}.status-filters{gap:0 12px}.status-filters label{font-size:12px}#map{height:55vh;min-height:330px}.map-note{font-size:12px}.stats{font-size:14px}}
/* 0.5 map, location and draft report controls */
header{position:sticky;top:0;z-index:1100;flex-wrap:wrap;padding:10px 18px}header>div{gap:16px}.report-open{background:#fff1c9;border:2px solid #ad640b;font-weight:700;color:#6e3900;min-height:48px;white-space:nowrap}.report-open:hover{background:#ffe5a0}.geo-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#e8f1ff;border-bottom:1px solid #bbcee5}.geo-prompt p{font-size:13px;margin:2px 0}.button-row{display:flex;gap:8px;flex-shrink:0}.map-section{top:78px}.view-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:8px 0}.view-controls label{flex:1;min-width:180px;font-size:12px}.view-controls select{margin:0;display:block}.view-controls button{font-size:13px;padding:8px 10px}.data-filters{display:flex;gap:2px 14px;flex-wrap:wrap;margin:4px 0}.data-filters label{font-size:13px;display:flex;gap:7px;align-items:center;border:0;min-height:44px}.data-filters legend{width:100%}.mode-note{padding:7px 10px;background:#edf0f3;border-left:4px solid #546f93;font-size:13px;margin:6px 0}#locationStatus{margin:6px 0;overflow-wrap:anywhere}#map{height:calc(100vh - 475px);min-height:350px;background:#f0f2f1}.real-location-icon,.sim-location-icon,.event-location-icon{display:flex;align-items:center;justify-content:center;border:2px solid white;border-radius:50%;box-shadow:0 1px 5px #25364a66;background:#196cd1;color:white;font-size:23px;line-height:1}.sim-location-icon{background:#932aab;font-size:27px}.event-location-icon{background:#ffcc44;color:#583b00;font-size:24px}.event-picker{background:#fff4ce;border:2px solid #bf7a17;border-radius:8px;padding:12px;margin:8px 0;scroll-margin-top:90px}.event-picker p{font-size:13px}.event-picker button{margin:4px 3px 0 0}.report-panel{border:2px solid #bc7923;border-radius:8px;padding:14px;margin-bottom:20px;scroll-margin-top:100px;background:#fffdf5}.report-heading{display:flex;gap:8px;justify-content:space-between;align-items:center}.report-heading h2{margin:0;font-size:19px}.report-heading button{font-size:12px;padding:6px}.report-warning{background:#fff0cd;border-left:4px solid #b36b0c;padding:10px;font-weight:600;font-size:14px}.report-panel>p{font-size:13px}.report-panel form>label{display:block;font-weight:600;font-size:13px;margin:13px 0 5px}.report-panel input:not([type=file]),.report-panel textarea{display:block;width:100%;font:inherit;min-height:44px;padding:9px;border:1px solid #bfcdbe;border-radius:6px}.report-panel textarea{resize:vertical}.report-panel form>button{width:100%;margin:5px 0}button:disabled{opacity:.6;cursor:not-allowed}.photo-actions{display:flex;gap:8px}.photo-button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:1;min-height:44px;border:1px solid #bfcdbe;border-radius:6px;background:#fff;cursor:pointer;font-size:14px}.photo-button input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.photo-button:focus-within{outline:3px solid #618536;outline-offset:2px}.photo-previews{display:grid;grid-template-columns:1fr 1fr;gap:8px}.photo-previews img{width:100%;height:110px;object-fit:contain;background:#e9ece8}.photo-previews p{font-size:11px;overflow-wrap:anywhere}.photo-previews button{width:100%;font-size:12px}.train-count{font-size:12px}#locationMode,#baseStatus{overflow-wrap:anywhere}@media(max-width:1050px){header small{display:none}.map-section{top:75px}}@media(max-width:760px){header{padding:8px 12px;gap:6px;flex-wrap:nowrap}header>div{flex:1}header span{font-size:12px;margin:0}header strong{font-size:18px}.report-open{font-size:13px;padding:6px 10px}.geo-prompt{display:block;padding:12px}.geo-prompt .button-row{margin-top:8px}.geo-prompt .button-row button{flex:1}.map-section{top:auto}.view-controls{gap:6px}.view-controls label{flex-basis:100%}.view-controls button{font-size:12px;flex:1}.data-filters{gap:0 10px}.data-filters label{font-size:12px}.status-filters{margin-top:4px}#map{height:53vh;min-height:330px}.report-panel{scroll-margin-top:80px}.event-picker{scroll-margin-top:80px}.tabs button{padding:8px 5px;font-size:14px}}
.map-section{position:relative;top:auto}#reportForm input:focus-visible,#reportForm textarea:focus-visible{outline:3px solid #618536;outline-offset:2px}
/* 0.5.1: location actions always have a permanent, visible home. */
header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 16px;padding:10px 18px}header .brand{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;min-width:0}header .version-badge{display:inline-block;font-size:12px;font-weight:700;background:#edf3e9;color:#365b32;border:1px solid #c4d3b9;border-radius:5px;padding:2px 6px;white-space:nowrap}.primary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:365px}.primary-actions button{display:block;visibility:visible;min-height:48px;font-weight:700;white-space:nowrap;padding:8px 12px}.location-action{background:#1e5d9c;border:2px solid #1e5d9c;color:white}.location-action:hover{background:#184e83;color:white}.simulation-action{background:#f7edf9;border:2px solid #9853a5;color:#73357f}.quick-location-status{grid-column:1/-1;font-size:12px;line-height:1.5;margin:0;color:#425c6f;overflow-wrap:anywhere}.report-panel,.event-picker,.detail{scroll-margin-top:145px}button#myLocation:disabled{display:block;visibility:visible;opacity:.8}#simulateLocation:disabled{display:block;visibility:visible;opacity:.65}@media(max-width:1050px){header .brand span:not(.version-badge){font-size:13px}.primary-actions{min-width:340px}}@media(max-width:760px){header{grid-template-columns:1fr;gap:6px;padding:8px 10px}.brand strong{font-size:18px}header .brand span:not(.version-badge){font-size:12px}.primary-actions{width:100%;min-width:0;gap:6px}.primary-actions button{font-size:13px;padding:7px 4px;min-height:48px}.quick-location-status{font-size:11px;min-width:0}.report-panel,.event-picker,.detail{scroll-margin-top:170px}}@media(max-width:360px){header .brand span:not(.version-badge){display:none}.primary-actions button{font-size:12px}}
/* 0.6: all map options above the map; dense settings collapse as a group. */
.control-panel{max-width:1800px;margin:auto;padding:10px 16px 6px;background:#fff;border-bottom:1px solid #dce4dc}.route-row{display:flex;align-items:center;gap:10px}.route-row .route-picker{display:flex;align-items:center;gap:10px;font-size:13px;flex:1;min-width:0}.route-row select{width:100%;max-width:600px;margin:0;min-height:46px}.route-buttons{display:flex;gap:8px;flex-shrink:0}.route-buttons button{min-height:46px}#moveToRoute{border:2px solid #9853a5;background:#f7edf9;color:#73357f;font-weight:700}.map-settings{border:0;border-bottom:1px solid #e0e6dc;padding:0;margin:6px 0 0}.map-settings>summary{display:flex;align-items:center;min-height:44px;font-size:13px;gap:8px}.map-settings>summary:before{content:'＋';font-size:17px}.map-settings[open]>summary:before{content:'−'}.settings-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px 20px;padding:6px 0 12px}.settings-grid>label{font-size:13px}.settings-grid select{margin:4px 0 0}.settings-grid fieldset{margin:0}.settings-grid label{min-height:44px}.settings-grid .toggle{grid-column:1/-1}.settings-grid .data-filters,.settings-grid .status-filters{display:flex;flex-wrap:wrap}.position-overview{display:flex;gap:16px;align-items:start}.position-overview .mode-note{flex:1;margin:6px 0;padding:5px 8px;font-size:12px;overflow-wrap:anywhere}.position-overview details{border:0;margin:0;padding:0;min-width:215px;max-width:50%}.position-overview summary{min-height:38px;padding:8px 0;font-size:12px}.simulation-hint{font-size:12px;line-height:1.5;color:#6f487b;margin:4px 0 6px;overflow-wrap:anywhere}.geo-prompt{padding:8px 16px;gap:10px;justify-content:start;flex-wrap:wrap}.geo-prompt>span{font-size:12px}.geo-prompt .button-row{margin-left:auto}.geo-prompt button{font-size:13px;min-height:44px;padding:6px 12px}#map{height:59vh;min-height:350px;max-height:700px}.map-section{padding-top:10px}.layers .notice{font-size:12px;padding:9px;border-radius:4px;margin:8px 0}.leaflet-tooltip{max-width:250px;white-space:normal;overflow-wrap:anywhere}.leaflet-top{top:5px}.control-panel .event-picker{margin-top:8px}.map-settings summary:focus-visible,.position-overview summary:focus-visible{outline:3px solid #618536;outline-offset:2px}@media(max-width:1100px){main{display:flex;flex-direction:column}aside{border-left:0;border-top:1px solid #dce4dc}.map-section{width:100%}#map{height:55vh;min-height:360px}#items{max-height:320px}}@media(max-width:760px){.control-panel{padding:8px 12px 4px}.route-row{display:block}.route-row .route-picker{display:flex;gap:8px}.route-row .route-picker select{flex:1;min-width:0;font-size:14px}.route-buttons{margin-top:6px}.route-buttons button{flex:1;font-size:13px;white-space:normal;padding:7px}.settings-grid{grid-template-columns:1fr;gap:6px}.position-overview{display:block}.position-overview details{max-width:none;min-width:0}.position-overview summary{min-height:36px;padding:6px 0}.position-overview .mode-note{font-size:11px}.simulation-hint{font-size:11px}.geo-prompt{display:flex;padding:8px 12px;gap:5px 10px}.geo-prompt>span{display:none}.geo-prompt .button-row{margin:0 0 0 auto}.geo-prompt button{font-size:12px;padding:5px 9px}.geo-prompt strong{font-size:13px}#map{height:52vh;min-height:330px}.map-note{font-size:11px}.map-settings>summary{font-size:13px}.legend{gap:8px 12px}}
/* 0.5.2: six controls, then the map; supporting information stays below. */
header{position:static;display:block;padding:8px 16px}header .brand{gap:6px 12px}header strong{font-size:20px}header .brand span:not(.version-badge){font-size:13px}.map-workspace{max-width:1800px;margin:auto;background:#fff;padding:8px 14px 0}.primary-actions{grid-template-columns:repeat(6,minmax(0,1fr));min-width:0;width:100%;gap:8px;margin-bottom:8px}.primary-actions button{min-width:0;min-height:52px;font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;padding:8px}.primary-actions button>span{display:block;font-size:11px;font-weight:400;margin-top:3px}.map-stage{position:relative;isolation:isolate}#map{height:65vh;height:65dvh;min-height:340px;max-height:800px;border-radius:7px}.map-top-actions{position:absolute;z-index:800;right:10px;top:12px;display:flex;gap:6px;flex-wrap:wrap;max-width:calc(100% - 76px);justify-content:flex-end}.map-top-actions button{min-height:44px;font-size:13px;padding:7px 10px;box-shadow:0 1px 5px #203b3422}.leaflet-top.leaflet-right{top:62px}.map-mode-label{position:absolute;z-index:700;bottom:24px;left:12px;max-width:calc(100% - 24px);margin:0;padding:5px 9px;background:#fffef5eF;border:1px solid #9853a5;border-radius:5px;color:#73357f;font-size:12px;pointer-events:none}.choice-panel{position:absolute;z-index:1000;left:50%;transform:translateX(-50%);top:8px;width:calc(100% - 24px);max-width:500px;max-height:calc(100% - 16px);overflow:auto;background:#fff;border:2px solid #56776b;border-radius:8px;padding:14px;box-shadow:0 5px 25px #203b3444}.choice-panel label{display:block;font-size:14px;margin-bottom:7px}.choice-panel select{font-size:16px;min-height:48px}.choice-panel button{font-size:14px}.choice-panel .button-row{flex-wrap:wrap}main{display:block;max-width:1200px;min-height:0}.map-information{padding:12px 18px}.map-information .geo-prompt{border-radius:6px}.map-information .settings-grid{grid-template-columns:1fr 1fr}aside{border-left:0;border-top:1px solid #dce4dc}.map-settings{margin-top:12px}#positionInfo{margin-top:10px}.report-panel,.event-picker,.detail{scroll-margin-top:12px}.map-workspace:fullscreen,.map-workspace.is-fullscreen{max-width:none;width:100%;height:100vh;height:100dvh;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:flex;flex-direction:column;background:#fff}.map-workspace.is-fullscreen{position:fixed;inset:0;z-index:10000}.map-fullscreen-open{overflow:hidden}.is-fullscreen .map-stage{flex:1;min-height:0}.is-fullscreen #map{height:100%;min-height:0;max-height:none}.is-fullscreen .primary-actions{flex-shrink:0}.is-fullscreen .primary-actions button{min-height:44px;font-size:13px;padding:5px}.is-fullscreen .primary-actions button>span{font-size:10px}.leaflet-tooltip{max-width:min(250px,65vw)}
@media(max-width:1000px){.primary-actions{grid-template-columns:repeat(3,minmax(0,1fr))}#map{height:64vh;height:64dvh}}
@media(max-width:520px){header{padding:7px 10px}.map-workspace{padding:6px 8px 0}.primary-actions{gap:6px}.primary-actions button{font-size:13px;min-height:52px;padding:7px 4px}.primary-actions button>span{font-size:10px}.map-information{padding:12px}.map-information .settings-grid{grid-template-columns:1fr}#map{height:62vh;height:62dvh;min-height:310px}.map-top-actions{gap:5px}.map-top-actions button{font-size:12px;padding:6px 8px}.map-mode-label{font-size:11px}.geo-prompt{display:block}.geo-prompt .button-row{margin-top:7px}.geo-prompt>span{display:block}.map-workspace.is-fullscreen .primary-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-height:500px) and (orientation:landscape){.is-fullscreen .primary-actions{grid-template-columns:repeat(6,minmax(0,1fr))}.is-fullscreen .primary-actions button{font-size:12px;min-height:44px}.is-fullscreen .primary-actions button>span{display:none}}
/* Tooltip boxes must retain a readable line width at zoomed-out positions. */
.leaflet-tooltip{width:max-content;max-width:min(250px,65vw);white-space:normal}
/* 0.5.3: type is hue; verification is dash pattern plus text. */
:root{--road-independent:#087250;--road-bridge:#225cb5;--road-crossing:#b7540b;--road-unknown:#616a73;--road-blocked:#b62b43}
.road-line{display:inline-block;flex:0 0 30px;width:30px;border-top:5px solid var(--road-independent)}
.independent-line{border-color:var(--road-independent)}.bridge-line{border-color:var(--road-bridge)}.crossing-line{border-color:var(--road-crossing)}.unknown-line{border-color:var(--road-unknown);border-top-style:dashed}.road-line.blocked-line{border-color:var(--road-blocked);border-top-style:dashed}
.status-solid,.status-dashed{display:inline-block;width:25px;border-top:4px solid var(--road-unknown)}.status-dashed{border-top-style:dashed}
.pending-line{border-color:var(--road-unknown)}.badge.pending{background:#edf0f2;color:#424e59}.item .pendingtext{color:#4c5964}.bike-dot{border-color:#616a73}
.road-legend{gap:10px 20px;font-size:13px}.road-legend>span{min-height:26px;max-width:100%;overflow-wrap:anywhere}#typeCounts{font-size:13px;color:#42534e}#priorityReview p,#priorityReview li{overflow-wrap:anywhere}.subrecord h3{overflow-wrap:anywhere}
@media(max-width:520px){.road-legend{display:grid;grid-template-columns:1fr;gap:4px;font-size:12px}.road-legend>span{min-height:28px}.road-line{flex-basis:32px;width:32px}#typeCounts{font-size:12px}}
/* 0.5.4: map symbols retain their true coordinates; labels alone are offset. */
:root{--road-bridge:#087250;--road-crossing:#b62b43}.user-confirmed{background:#e1f1e7;color:#126b48}
.youbike-icon{display:flex;align-items:center;justify-content:center;gap:1px;background:#fff;border:2px solid #326aaf;border-radius:8px;color:#174d42;box-shadow:0 1px 4px #203b3440;font-size:19px;line-height:1}.youbike-icon b{font:800 15px/1 system-ui}.route-label-anchor{pointer-events:none!important}.route-map-label{position:absolute;display:block;height:28px;line-height:24px;padding:0 7px;border:1px solid #48665a;border-radius:5px;background:#fffffff2;color:#203b34;font-size:13px;font-weight:700;text-align:center;white-space:nowrap;box-shadow:0 1px 4px #203b3426;pointer-events:none}.confirmation-end-icon,.scope-end-sample{position:relative;display:inline-block;width:28px;height:28px;flex:0 0 28px;background:#fff;border:1px solid #b62b43;border-radius:50%;box-shadow:0 1px 4px #203b3433}.end-dot{position:absolute;width:9px;height:9px;background:#b62b43;border-radius:50%;left:9px;top:9px}.end-slash{position:absolute;width:3px;height:23px;left:12px;top:2px;background:#b62b43;transform:rotate(38deg);border-radius:2px}.crossing-feature-icon{background:#fff;border:1px solid #48665a;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:22px}.confirmation-end-icon:focus-visible,.youbike-icon:focus-visible{outline:3px solid #254a84;outline-offset:3px}#mainlineInfo{scroll-margin-top:12px}#mainlineInfo>summary{font-size:14px;min-height:44px;line-height:1.5}#exitCandidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}.road-legend>span{line-height:1.5}.crossing-line{border-color:#b62b43}.map-top-actions button#moveToRoute{max-width:170px;white-space:normal}
@media(max-width:600px){#exitCandidates{grid-template-columns:1fr}.route-map-label{font-size:12px}.primary-actions button{font-size:12px;line-height:1.45}}
/* A dot beside a slash, not a barred-circle road-closure symbol. */
.confirmation-end-icon,.scope-end-sample{border-radius:5px;border-color:#b8c4bc}.end-dot{left:4px;top:10px;width:8px;height:8px}.end-slash{left:18px;top:2px;transform:rotate(28deg)}
.leaflet-tooltip.scope-end-tooltip{width:160px;max-width:55vw;white-space:normal;line-height:1.45;font-size:12px;text-align:center}
.map-crosshair{position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%);z-index:750;pointer-events:none;border:2px solid #263e38;border-radius:50%;box-shadow:0 0 0 2px #fff;background:linear-gradient(#263e38,#263e38) center top/2px 10px no-repeat,linear-gradient(#263e38,#263e38) center bottom/2px 10px no-repeat,linear-gradient(#263e38,#263e38) left center/10px 2px no-repeat,linear-gradient(#263e38,#263e38) right center/10px 2px no-repeat}.map-crosshair span{position:absolute;top:49px;left:50%;transform:translateX(-50%);white-space:nowrap;font:600 11px/1.5 system-ui;color:#263e38;background:#fffffff0;padding:1px 5px;border-radius:3px;box-shadow:0 0 0 1px #fff}.map-crosshair[hidden]{display:none}
/* Mask every non-basemap pane, including layers recreated after pan/zoom/data reload. */
.clean-map-only #map .leaflet-pane:not(.leaflet-map-pane):not(.leaflet-tile-pane),.clean-map-only .map-crosshair,.clean-map-only .map-mode-label{display:none!important}
.ticket-icon{display:inline-block;width:22px;height:22px;vertical-align:middle;flex:none}.primary-actions .ticket-icon,.map-top-actions .ticket-icon{margin-right:5px}.youbike-icon .ticket-icon{width:34px;height:24px}.station-icon .ticket-icon{width:21px;height:21px}.real-location-icon .ticket-icon,.sim-location-icon .ticket-icon,.event-location-icon .ticket-icon{width:24px;height:24px}.confirmation-end-icon .ticket-icon,.scope-end-sample .ticket-icon{width:26px;height:26px;color:#b62b43}.crossing-feature-icon .ticket-icon{width:24px;height:24px}.legend .ticket-icon{width:22px;height:22px}.legend .ticket-icon[viewBox="0 0 36 24"]{width:33px}.legend .scope-end-sample .ticket-icon{width:26px;height:26px}.legend .scope-end-sample{border:0;box-shadow:none}.confirmation-end-icon{display:flex;align-items:center;justify-content:center}.subrecord h3>.ticket-icon{width:33px;height:22px;margin-right:4px}
/* 0.5.6: remaining program-controlled glyphs share the accepted SVG artwork. */
summary{list-style:none}summary::-webkit-details-marker{display:none}summary::marker{content:""}summary>.disclosure-icon{width:18px;height:18px;margin-right:6px;transition:transform .15s}details[open]>summary>.disclosure-icon{transform:rotate(90deg)}
.map-crosshair{border:0;box-shadow:none;background:none;color:#263e38}.map-crosshair>.ticket-icon{width:44px;height:44px;filter:drop-shadow(1px 0 #fff) drop-shadow(-1px 0 #fff)}
.line-sample{width:25px;height:24px;border:0!important;box-shadow:none;background:none;stroke-width:4;flex:none}.line-sample.independent-line{color:var(--road-independent)}.line-sample.crossing-line{color:#b62b43}.line-sample.unknown-line,.line-sample.status-solid,.line-sample.status-dashed{color:var(--road-unknown)}.line-sample.blocked-line{color:var(--road-blocked)}
#items .ticket-icon{width:18px;height:18px;margin-left:4px}#backList .ticket-icon{margin-right:6px}.leaflet-control-zoom .ticket-icon{width:22px;height:22px;vertical-align:middle;pointer-events:none}

.map-crosshair>.ticket-icon>*{vector-effect:non-scaling-stroke}
/* Compact station drawings keep the same geographic anchor and readable route strokes. */
.youbike-icon.compact-station,.station-icon.compact-station{border-width:1px;box-shadow:0 1px 2px #203b3426}.youbike-icon.compact-station .ticket-icon{width:22px;height:18px}.station-icon.compact-station .ticket-icon{width:17px;height:17px}

/* T1 source comparison: reuse the accepted R2 source controls above the existing Leaflet map. */
.compare-mode-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.compare-mode-controls button[aria-pressed=true]{background:#174d42;color:#fff}.compare-mode-controls span{font-size:12px;flex:1;min-width:200px}.quick-sources{background:#fff;border:1px solid #ccd9e1;border-radius:12px;padding:12px;margin:8px 0}.quick-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.quick-head h2{margin:0;font-size:18px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.quick-source{border:1px solid #ced9df;border-left:3px solid var(--color);border-radius:8px;padding:8px;background:#f5f9fb;display:grid;grid-template-columns:1fr auto;gap:3px 8px;align-items:center}.quick-source[data-selected=false]{background:#fff;border-left-color:#b7c4cc}.quick-source label{display:flex;align-items:center;gap:7px;font-size:14px;min-height:40px}.quick-source input{width:20px;height:20px;accent-color:var(--color)}.comparison-swatch{display:inline-block;height:2px;width:22px;background:var(--color);flex:none}.quick-source button{font-size:12px;white-space:nowrap;min-height:40px;padding:7px}.quick-source small{grid-column:1/-1;font-size:11px;line-height:1.5;color:#526c7b}.comparison-table{overflow:auto}#comparisonInfo th,#comparisonInfo td{padding:8px;border:1px solid #ccd9e1;text-align:left;font-size:13px}#comparisonInfo table{border-collapse:collapse;width:100%}.source-compare-active .road-legend{display:none}.comparison-end-icon{border:1.5px solid #425e72;border-radius:4px;background:#fff;display:flex;align-items:center;justify-content:center;font:700 16px system-ui;color:#425e72}.comparison-error{color:#a23b2c!important}.is-fullscreen #comparisonPanel{max-height:40dvh;overflow:auto;flex-shrink:0}.is-fullscreen .compare-mode-controls{flex-shrink:0}.youbike-icon:before,.station-icon:before{content:'';position:absolute;inset:-9px;pointer-events:auto}.leaflet-popup-content{overflow-wrap:anywhere;max-height:40vh;overflow:auto}.leaflet-popup{max-width:calc(100vw - 24px)}
@media(max-width:760px){.quick-grid{grid-template-columns:1fr}.quick-source{padding:5px 8px}.quick-source label{font-size:13px}.quick-source small{font-size:10px}.quick-head button{min-height:40px;padding:7px}.compare-mode-controls span{flex-basis:100%}}

/* T2: shared top-button measurements; wrap instead of shrinking labels or hit targets. */
.map-workspace .primary-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:8px;grid-auto-rows:1fr}
.map-workspace .primary-actions>button,.map-workspace .map-top-actions>button{min-height:52px;min-width:0;font-size:14px;line-height:1.4;padding:8px 12px;border-radius:7px;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.map-workspace .primary-actions>button>span{display:block;font-size:14px;line-height:1.4;font-weight:400;margin-top:3px;white-space:normal}
.map-workspace .primary-actions .ticket-icon,.map-workspace .map-top-actions .ticket-icon{width:22px;height:22px;margin-right:5px}
.map-workspace.is-fullscreen .primary-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));max-height:45dvh;overflow:auto;flex-shrink:0}
.map-workspace.is-fullscreen .primary-actions>button>span{display:block}
#displayMenu{max-height:min(calc(100% - 16px),calc(100dvh - 32px));overscroll-behavior:contain}
.choice-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:-14px;background:#fff;z-index:1;padding:4px 0 8px}
.choice-heading button{min-height:44px;flex:none;font-size:14px}
#displayMenu select{width:100%;min-width:0}#displayMenu #comparisonPanel{margin:8px 0 0;padding:0;border:0;border-radius:0;max-height:none;overflow:visible}
#displayMenu .quick-grid{grid-template-columns:1fr}#displayMenu .quick-source{padding:8px;gap:6px}
#displayMenu .quick-source label{display:flex;min-height:44px;min-width:0;margin:0;font-size:14px;overflow-wrap:anywhere}
#displayMenu .quick-source button,#displayMenu .quick-head button{min-height:44px;font-size:14px;padding:8px;border-radius:7px;white-space:normal}
#displayMenu .quick-head h2{font-size:16px}#displayMenu .quick-source small{overflow-wrap:anywhere}
#displayMenu .quick-head .button-row{display:flex;gap:8px;flex-wrap:wrap}#displayMenu summary{min-height:44px;padding:8px 0;overflow-wrap:anywhere}
@media(max-width:360px){#displayMenu .quick-source{grid-template-columns:1fr}#displayMenu .quick-source button{justify-self:start}}

/* T4: the SVG center and Leaflet geographic anchor are the same pixel. No border/padding shifts. */
.comparison-end-icon{display:block;border:0!important;border-radius:0;padding:0!important;background:transparent!important;box-shadow:none;line-height:0;box-sizing:border-box;color:#425e72}
.comparison-end-icon>svg{display:block;width:44px;height:44px;max-width:none;margin:0;padding:0;border:0;transform:none}
.test-endpoint-label{font-size:13px;color:#425e72;pointer-events:none;white-space:normal}.test-endpoint-sample{display:inline-flex;align-items:center;vertical-align:middle;width:28px;height:28px;flex:none}.test-endpoint-sample>svg{display:block;width:28px;height:28px}
/* T5: one six-choice selector, source legend distinct from road-state legend. */
#displayMenu .quick-source{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center}#displayMenu .quick-source p{grid-column:1/-1;margin:0;font-size:12px;overflow-wrap:anywhere}#displayMenu .comparison-swatch{display:block;width:36px;height:12px;background:none;color:var(--color)}#displayMenu .comparison-swatch>svg{display:block}#displayMenu .quick-source[data-selected=false]{opacity:.72}#displayMenu .quick-source strong{font-size:14px;overflow-wrap:anywhere}.leaflet-popup-content details{border:1px solid #ccd9e1;border-radius:6px;padding:6px;margin:6px 0}.leaflet-popup-content summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}.leaflet-popup-content p{overflow-wrap:anywhere}

/* T7: source controls stay inside the existing display menu. */
#trafficControls{border-bottom:1px solid #ccd9e1;padding-bottom:12px;margin-bottom:12px}#trafficControls h2,.route-mode-title{font-size:16px;margin:12px 0}#trafficControls .button-row{display:flex;gap:8px;flex-wrap:wrap}#trafficControls button{min-height:44px;font-size:14px;white-space:normal}#trafficSources{display:grid;gap:8px;margin:10px 0}.traffic-source{border:1px solid #ced9df;border-left:4px solid var(--traffic-color);border-radius:7px;padding:8px}.traffic-source label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;font-size:14px;overflow-wrap:anywhere}.traffic-source input{flex:0 0 22px;width:22px;height:22px}.traffic-source p{font-size:12px;overflow-wrap:anywhere;margin:6px 0}.traffic-source[data-selected=false]{opacity:.75}.traffic-swatch{flex:0 0 12px;width:12px;height:12px;background:var(--traffic-color);transform:rotate(45deg)}.traffic-source-icon{display:flex;align-items:center;justify-content:center}.traffic-source-icon svg{display:block}.leaflet-popup-content h3{font-size:15px;overflow-wrap:anywhere}

#displayMenu .choice-heading{position:sticky;top:-14px;background:#fff;z-index:2;padding:8px 0}.traffic-swatch{flex:0 0 20px;width:20px;height:20px;background:none;transform:none;color:var(--traffic-color)}

.traffic-popup .leaflet-popup-content{max-width:calc(100vw - 64px)}

/* T10: readouts stay within the fullscreen map stage, above attribution. */
.map-readouts{position:absolute;z-index:700;left:12px;bottom:calc(var(--map-attribution-height,36px) + 8px);width:max-content;max-width:calc(100% - 24px);padding:6px 8px;border:1px solid #c2cec6;border-radius:5px;background:#fffffff2;color:#263e38;font:12px/1.5 system-ui;overflow-wrap:anywhere;pointer-events:none}
.coordinate-row{display:flex;flex-wrap:wrap;gap:0 8px;min-width:0}.coordinate-row strong{font-weight:600}.coordinate-row span{font-variant-numeric:tabular-nums;white-space:normal}.coordinate-hint{margin:2px 0 0;max-width:42ch;font-size:11px}.map-readouts .map-mode-label{position:static;max-width:42ch;margin:4px 0 0;padding:0;border:0;background:none;box-shadow:none}
#map .leaflet-bottom.leaflet-left{bottom:calc(var(--map-attribution-height,36px) + var(--map-readouts-height,100px) + 16px)}
.clean-map-only .map-readouts{display:none!important}.clean-map-only #map .leaflet-bottom.leaflet-left{bottom:0}
.debug-footer{max-width:1200px;margin:0 auto;padding:12px 18px 24px}.debug-footer details{margin:0}.debug-footer pre{max-width:100%;font-size:12px}
@media(max-width:480px){.coordinate-row{display:block}.coordinate-row strong{display:block}.coordinate-hint{max-width:38ch}}
