*{box-sizing:border-box}body{margin:0;background:#f5f2eb;color:#192e35;font-family:"Microsoft JhengHei","Noto Sans TC",sans-serif;line-height:1.65}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}a{color:#146975}header{background:#143f48;color:#fff;padding:28px 4vw 22px;border-bottom:5px solid #d9ad61}header small{letter-spacing:3px;color:#d9c495;font-size:12px}h1{font-size:32px;margin:6px 0}header p{margin:4px 0;color:#dce7e6}.sub{font-size:12px}nav{padding:14px 4vw;display:flex;gap:8px;overflow:auto;background:#fff;border-bottom:1px solid #ddd}nav button{white-space:nowrap;border:1px solid #d6dcd8;background:white;border-radius:22px;padding:8px 16px;color:#26454d}nav button.active{background:#143f48;color:white;border-color:#143f48}.toolbar{display:flex;gap:12px;align-items:center;padding:12px 4vw;font-size:13px;flex-wrap:wrap}.toolbar span{display:inline-flex;gap:5px;align-items:center}.toolbar a:first-of-type{margin-left:auto}.line{width:28px;border-top:3px solid #127681}.walk{border-top-style:dashed}.fly{border-top:3px dotted #865fa2}.layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(350px,1fr);gap:22px;padding:0 4vw 36px}.map-panel{position:sticky;top:16px;align-self:start;min-width:0}.map-shell{border:1px solid #ccd6d3;border-radius:16px;overflow:hidden;background:#e3ece8;box-shadow:0 4px 20px #143f4810}#map{height:65vh;min-height:430px}.map-note{font-size:12px;background:#fff;padding:10px 15px}.overview,.day-head,.stop-card,.info{background:#fff;border:1px solid #dedfd5;border-radius:14px;padding:20px;margin-bottom:14px}.day-head{border-top:4px solid #bd8f42}.day-head h2{font-size:23px;margin:2px 0 10px}.day-head small{letter-spacing:2px;color:#827245}.stats{display:flex;gap:8px;flex-wrap:wrap}.stat{background:#edf3ef;border-radius:8px;padding:8px 12px;font-size:13px}.notice{background:#fff5df;border-left:3px solid #bd8f42;padding:12px 14px;margin:12px 0;font-size:13px}.stop-card h3{font-size:18px;margin:0 0 6px}.stop-card h3 button,.leaflet-popup-content h3 button{border:0;padding:0;background:none;color:#192e35;text-align:left;font:inherit;font-weight:bold}.meta{color:#146975;font-size:14px;font-weight:bold}.stop-card p{margin:8px 0;font-size:14px}.picture{border:0;background:#f1f1e9;padding:0;width:100%;border-radius:9px;overflow:hidden;display:block;margin-top:13px}.picture img{width:100%;height:200px;object-fit:contain;display:block}.credit{font-size:10px;color:#65777b;margin-top:5px;overflow-wrap:anywhere}.links{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.links a{font-size:12px;padding:6px 10px;border:1px solid #bdd0cc;border-radius:6px;text-decoration:none}.next{border-top:1px dashed #cbd6d1;margin-top:14px;padding-top:10px;font-size:13px;color:#4d666b;white-space:pre-line}.pin{display:flex;align-items:center;justify-content:center;border:2px solid white;border-radius:50%;width:30px;height:30px;font-weight:bold;font-size:11px;color:#fff;box-shadow:0 2px 5px #0005}.refpin{border-style:dashed;opacity:.85}.leaflet-popup-content{margin:14px;max-width:280px}.leaflet-popup-content .picture img{height:150px}.leaflet-popup-content h3{margin:0;font-size:16px}.leaflet-popup-content p{font-size:12px;margin:7px 0}.leaflet-popup-content .credit{font-size:9px}.overview button{background:#edf3ef;border:0;border-radius:8px;width:100%;text-align:left;padding:12px;margin:4px 0;color:#20464e;white-space:pre-line}.overview h2{margin:0 0 12px;font-size:22px}.total{font-size:28px;font-weight:bold;color:#146975}.muted{font-size:12px;color:#60767b}dialog{border:0;border-radius:15px;width:min(920px,94vw);padding:20px;background:#fcfbf5;color:#192e35}dialog::backdrop{background:#061c22d9}dialog img{max-height:70vh;max-width:100%;display:block;margin:12px auto;object-fit:contain}dialog .close{float:right;background:#143f48;color:white;border:0;border-radius:20px;padding:8px 16px}.source-list{font-size:12px;padding-left:20px}.source-list li{margin-bottom:7px}#tile-status{color:#6b6150}footer{padding:18px 4vw;font-size:12px;border-top:1px solid #ddd}.photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photo-pair .picture img{height:130px}@media(max-width:800px){h1{font-size:26px}header{padding:20px}.layout{display:block;padding:0 16px 24px}.map-panel{position:static;margin-bottom:18px}#map{height:46vh;min-height:300px}.toolbar{padding:12px 16px}nav{padding:12px 16px}.toolbar a:first-of-type{margin-left:0}.stop-card{padding:17px}.picture img{height:190px}.map-note{font-size:11px}}

#map{background:#cce3ec}.city-label{background:transparent;border:0;box-shadow:none;font-size:11px;color:#68786f;text-shadow:0 1px 2px white;padding:0}.city-label:before{display:none}.map-note strong{color:#146975} .leaflet-popup-content p{white-space:pre-line}
.timing-view{margin:0 4vw 22px;padding:20px;background:#fff;border:1px solid #dedfd5;border-radius:14px;color:#192e35}.timing-view [hidden]{display:none!important}
.curve-head h2{font-size:22px;margin:0 0 5px}.curve-summary{font-size:13px;margin:0;color:#60767b}
.curve-controls{display:flex;gap:22px;align-items:end;flex-wrap:wrap;margin:16px 0 12px}
.curve-controls label{display:flex;flex-direction:column;gap:5px;font-size:14px;min-width:220px;max-width:100%;flex:1}
.curve-controls label strong{display:inline;font-size:16px}.curve-controls input{width:100%;accent-color:#176b7a}
.curve-controls select{font:inherit;width:100%;padding:8px;border:1px solid #bdd0cc;border-radius:5px;background:#fff;color:#192e35}
.curve-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:#53686a;margin:12px 0}
.curve-legend span{display:inline-flex;align-items:center;gap:6px}.curve-legend i{width:24px;height:0;border-top:3px solid #176b7a}
.curve-legend .model{border-top:2px dashed #7e8e93}.curve-legend .scenario{border-top:2px dotted #b27831}.curve-legend .band{height:10px;border:0;background:#176b7a22}
.curve-plot{width:100%;min-width:0}.curve-plot svg{display:block;max-width:100%;overflow:visible}
.curve-grid{stroke:#dfe5e1;stroke-width:1}.curve-axis{fill:#53686a;font-size:12px;font-family:inherit}
.curve-band{fill:#176b7a1c;stroke:none;pointer-events:none}.curve-series{stroke-width:2;pointer-events:none}
.curve-series.model{stroke:#7e8e93;stroke-dasharray:6 5}.curve-series.planned{stroke:#176b7a;stroke-width:3}
.curve-series.scenario{stroke:#b27831;stroke-dasharray:2 5}.curve-dot{fill:#176b7a;stroke:#fff;stroke-width:1.5;cursor:pointer}
.curve-readout{display:flex;flex-wrap:wrap;gap:18px;align-items:baseline;margin:12px 0}
.curve-readout .curve-selected{flex-basis:100%;font-size:16px}.curve-readout span{min-width:130px}.curve-readout small{display:block;color:#60767b;font-size:12px}
.curve-readout b{font-size:22px;font-variant-numeric:tabular-nums}.curve-note{font-size:12px;color:#60767b;margin:10px 0 0}
@media(max-width:800px){.timing-view{margin:0 16px 18px;padding:14px}.curve-head h2{font-size:19px}.curve-controls{gap:10px}.curve-controls label{min-width:200px}.curve-readout{gap:12px}.curve-readout span{min-width:110px}}

.curve-legend .visit{height:10px;border:0;background:#dfb85230}
.curve-visit-block{fill:#dfb85224;stroke:none;pointer-events:none}
.curve-visits{display:flex;gap:7px 18px;flex-wrap:wrap;font-size:13px;color:#76602f;margin:7px 0 0}
.curve-visits span{max-width:100%;overflow-wrap:anywhere}
.curve-limit{color:#60767b;font-size:12px}

.node-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:14px;margin:14px 0 10px}
.node-control{min-width:0;border-top:2px solid #dce5df;padding-top:10px}
.node-control>label{display:flex;flex-direction:column;gap:6px}.node-control strong{font-size:13px}.node-current{font-size:13px;color:#176b7a}
.node-control input[type=range]{width:100%;accent-color:#176b7a}.node-control input[type=time]{width:100%}
.node-bounds{display:flex;gap:8px;margin:6px 0}.node-bounds label{font-size:11px;flex:1;min-width:0}
.node-bounds input{width:100%;min-width:0}.node-control input,.prob-controls input,.prob-controls select{font:inherit;padding:5px;color:#192e35;border:1px solid #bdd0cc;border-radius:4px;background:#fff}
.node-control input[type=range]{padding:0;border:0}.node-control small{display:block;margin-top:5px}
.segment-title{font-size:16px;margin:16px 0 6px}.curve-reset{background:#edf3ef;color:#26454d;border:1px solid #bdd0cc;border-radius:5px;padding:6px 14px}
.probability-section{margin-top:22px;padding-top:16px;border-top:1px solid #dce5df}
.probability-section h3{font-size:17px;margin:0 0 12px}.prob-controls{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.prob-controls label{font-size:13px;display:flex;flex-direction:column;gap:4px;min-width:100px}.probability-plot svg{display:block;max-width:100%}
.probability-area{fill:#176b7a30;stroke:none;pointer-events:none}.probability-mean{stroke:#b27831;stroke-width:1;stroke-dasharray:4 4}
.prob-readout{font-size:14px}.prob-readout p{margin:5px 0}.timing-view [hidden]{display:none!important}
@media(max-width:500px){.node-controls{grid-template-columns:1fr}.node-control input[type=number]{font-size:16px}.prob-controls input,.prob-controls select{font-size:16px}}

@media(min-width:950px){.node-controls{grid-template-columns:repeat(var(--node-count,5),minmax(0,1fr))}}

.notice{overflow-wrap:anywhere}.next{white-space:pre-line}.stop-card h3 button{max-width:100%;overflow-wrap:anywhere} .photo-pair{min-width:0}@media(max-width:600px){.leaflet-container:has(.leaflet-popup) .leaflet-control-zoom{visibility:hidden}}
