:root{--route:#fc4c02;--brand:#002058;--display:"Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;--num:Oswald, "Arial Narrow", sans-serif;--water:#0284c7;--hover:#1d4ed8;--segment:#7c3aed;--bg:#f6f6f4;--panel:#fff;--text:#1c1c1e;--muted:#6b6b70;--line:#e4e4e0;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0}.status{color:var(--muted);padding:48px}.app{flex-direction:column;height:100dvh;display:flex}.races{background:var(--panel);gap:4px;padding:8px 20px 0;display:flex;overflow-x:auto}.races a{color:var(--muted);white-space:nowrap;border-radius:8px 8px 0 0;padding:6px 12px;font-size:13px;text-decoration:none}.races a.on{color:var(--text);box-shadow:inset 0 -2px 0 var(--brand);font-weight:600}.hint a{color:inherit}header{background:var(--panel);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:12px 32px;padding:12px 20px;display:flex}h1{font-family:var(--display);letter-spacing:.02em;color:var(--brand);margin:0;font-size:22px;font-weight:700}.guide-link{letter-spacing:0;color:var(--brand);white-space:nowrap;text-underline-offset:3px;vertical-align:2px;margin-left:14px;font-family:system-ui,-apple-system,Segoe UI,PingFang TC,sans-serif;font-size:13px;font-weight:600}.sub{color:var(--muted);margin:2px 0 0;font-size:13px}.stats{gap:24px;margin:0;display:flex}.stats dt{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:11px}.stats dd{font-family:var(--num);color:var(--brand);font-variant-numeric:tabular-nums;margin:0;font-size:20px;font-weight:400}.controls{align-items:center;gap:16px;margin-left:auto;display:flex}.seg{border:1px solid var(--line);border-radius:8px;display:inline-flex;overflow:hidden}.seg button{font:inherit;cursor:pointer;background:0 0;border:0;padding:6px 14px;font-size:13px}.seg button.on,.seg .seg-item.on{background:var(--brand);color:#fff}.seg .seg-item{color:inherit;align-items:center;gap:6px;padding:6px 12px;font-size:13px;text-decoration:none;display:inline-flex}.seg-label{color:var(--muted);align-items:center;padding:0 4px 0 10px;font-size:12px;display:inline-flex}.swatch{border-radius:50%;width:10px;height:10px;box-shadow:0 0 0 1px #fffc}kbd{font:inherit;opacity:.6;border:1px solid;border-radius:3px;margin-left:4px;padding:0 4px;font-size:10px}.map-wrap{flex:1;min-height:300px;display:flex;position:relative}.map{flex:1}.toggle{white-space:nowrap;border:1px solid var(--line);font:inherit;cursor:pointer;background:0 0;border-radius:8px;padding:6px 12px;font-size:13px}.toggle.on{background:var(--brand);border-color:var(--brand);color:#fff}.toggle:disabled{opacity:.4;cursor:not-allowed}.sv-panel{z-index:1100;background:#222;border-radius:10px;flex-direction:column;width:min(420px,100% - 24px);height:min(280px,100% - 44px);display:flex;position:absolute;bottom:32px;left:12px;overflow:hidden;box-shadow:0 4px 16px #0000004d}.sv-panel.expanded{width:min(900px,100% - 24px);height:calc(100% - 44px)}.sv-pano{flex:1}.sv-message{text-align:center;color:#ddd;background:#0000008c;justify-content:center;align-items:center;padding:16px;font-size:13px;display:flex;position:absolute;inset:0 0 32px}.sv-bar{font-variant-numeric:tabular-nums;background:#fff;align-items:center;gap:4px;height:32px;padding:0 6px 0 10px;font-size:12px;display:flex}.sv-bar span{flex:1}.sv-bar button{cursor:pointer;background:0 0;border:0;border-radius:6px;width:26px;height:26px}.sv-bar button:hover{background:var(--bg)}.dist-marker{border:2px solid var(--route);color:var(--text);background:#fff;border-radius:50%;justify-content:center;align-items:center;font-size:10px;font-weight:700;display:flex}.poi-marker{filter:drop-shadow(0 1px 1px #00000059);justify-content:center;align-items:center;font-size:18px;line-height:1;display:flex}.map-message{text-align:center;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;padding:24px;display:flex}.map-message h2{color:var(--text);margin:0 0 8px;font-size:17px}.g-maptype{background:var(--panel);margin:10px;box-shadow:0 1px 4px #00000040}.seg.g-maptype button{padding:4px 10px;font-size:12px}.g-centered{width:20px;height:20px;position:relative;transform:translateY(50%)}.g-poi{width:26px;height:26px}.g-hover{pointer-events:none;width:14px;height:14px;position:relative;transform:translateY(50%)}.g-dot{background:var(--hover);border:3px solid #fff;border-radius:50%;width:14px;height:14px;box-shadow:0 1px 3px #0006}.g-tip{color:var(--text);white-space:nowrap;pointer-events:none;filter:none;background:#fff;border-radius:6px;padding:6px 8px;font-size:12px;line-height:1.45;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);box-shadow:0 2px 8px #0003}.g-poi-tip{display:none}.sv-cone{pointer-events:none;background:conic-gradient(from -30deg,#1d4ed873 0deg 60deg,#0000 60deg);border-radius:50%;width:72px;height:72px;-webkit-mask-image:radial-gradient(circle,#000 25%,#0000 70%);mask-image:radial-gradient(circle,#000 25%,#0000 70%)}.sv-cone-icon .sv-cone{width:100%;height:100%}.g-hover .sv-cone{position:absolute;top:50%;left:50%}.g-hover.off-track .g-dot{background:#f59e0b}.off-track-note{color:#b45309;font-weight:600}.poi-hovered .g-hover .g-tip,.poi-hovered .hover-tip{display:none}.g-poi:hover .g-poi-tip{display:block}.leaflet-tooltip,.chart-tip{font-variant-numeric:tabular-nums;font-size:12px;line-height:1.45}.muted{color:var(--muted)}.chart-panel{background:var(--panel);border-top:1px solid var(--line);padding:4px 0 6px}.chart{width:100%;position:relative}.chart svg{-webkit-user-select:none;user-select:none;display:block}.tick text{fill:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.tick line{stroke:var(--muted)}.tick .grid{stroke:var(--line)}.axis-label{fill:var(--muted);font-size:11px}.ele-line{fill:none;stroke:var(--route);stroke-width:2px;stroke-linejoin:round}.chart-poi line{stroke:var(--water);stroke-opacity:.35;stroke-dasharray:2 3}.chart-poi-start line,.chart-poi-finish line{stroke:var(--text)}.chart-poi-cutoff line{stroke:#b91c1c}.chart-poi text{cursor:default;font-size:13px}.crosshair line{stroke:var(--hover);stroke-width:1px}.crosshair circle{fill:var(--hover);stroke:#fff;stroke-width:2px}.crosshair.off-track line{stroke:#f59e0b;stroke-dasharray:3 3}.crosshair.off-track circle{fill:#f59e0b}.crosshair .other-pass{fill:#fff;stroke:var(--hover)}.hit{fill:#0000;cursor:crosshair}.chart svg{touch-action:none}.chart-tip{pointer-events:none;border:1px solid var(--line);white-space:nowrap;background:#fff;border-radius:6px;padding:6px 8px;position:absolute;box-shadow:0 2px 8px #0000001f}.footer-row{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 16px;padding:0 20px;display:flex}.hint{color:var(--muted);margin:0;font-size:12px}.about-toggle{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px}.about{color:var(--muted);padding:2px 20px 0;font-size:12px}.about p{margin:4px 0}.about a{color:inherit}.settings-inline,.setting{display:contents}.setting-label,.gear,.drawer-backdrop,.phone-only,.title-date{display:none}@media (hover:none){.follow-toggle,kbd{display:none}}@media (width<=720px){.title-date{color:var(--muted);white-space:nowrap;margin-left:8px;font-size:14px;font-weight:400;display:inline}.sub,.wide-only,.hint,.settings-inline,.seg-label,.drawer .street-view-toggle{display:none}.phone-only{display:contents}.gear{border:1px solid var(--line);width:34px;height:32px;color:var(--text);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;margin-left:auto;font-size:18px;display:inline-flex}.drawer-backdrop{z-index:2000;pointer-events:none;background:0 0;transition:background .25s;display:block;position:fixed;inset:0}.drawer-backdrop.open{pointer-events:auto;background:#0000004d}.drawer{background:var(--panel);flex-direction:column;width:min(280px,85vw);transition:transform .25s;display:flex;position:absolute;top:0;bottom:0;right:0;transform:translate(100%);box-shadow:-4px 0 16px #0003}.drawer-backdrop.open .drawer{transform:none}.drawer-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:12px 12px 12px 16px;font-weight:600;display:flex}.drawer-head button{cursor:pointer;background:0 0;border:0;width:32px;height:32px;font-size:16px}.drawer-body{flex-direction:column;gap:18px;padding:16px;display:flex}.drawer-body>.toggle{align-self:flex-start}.drawer .setting{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.drawer .setting-label{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:11px;display:block}.footer-row{justify-content:flex-end}header{gap:6px 16px;padding:8px 16px 6px}h1{font-size:17px}.sub{margin-top:0;font-size:12px}.stats{gap:16px;width:100%}.stats dt{font-size:10px}.stats dd{font-size:16px}.controls{scrollbar-width:none;gap:8px;width:100%;margin-left:0;overflow-x:auto}.controls>*{flex-shrink:0}.seg button,.seg .seg-item,.toggle{padding:6px 10px}.map-wrap{flex-direction:column;min-height:240px}.sv-panel,.sv-panel.expanded{width:auto;height:auto;box-shadow:none;border-top:1px solid var(--line);border-radius:0;flex:0 0 45%;position:relative;bottom:auto;left:auto}.sv-panel.expanded{flex-basis:75%}.footer-row,.about{padding-left:16px;padding-right:16px}.hint,.about,.about-toggle{font-size:11px}}.stat-button{font:inherit;color:inherit;cursor:pointer;-webkit-text-decoration:underline dotted var(--muted);text-decoration:underline dotted var(--muted);text-underline-offset:3px;background:0 0;border:0;padding:0}.stat-caret{color:var(--muted);font-size:.7em}.station-list{z-index:1000;border:1px solid var(--line);background:var(--panel);border-radius:8px;flex-direction:column;width:320px;max-height:calc(100% - 24px);display:flex;position:absolute;top:12px;right:12px;box-shadow:0 4px 16px #0000002e}.station-list-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:6px 6px 6px 12px;font-size:13px;font-weight:600;display:flex}.station-list-head button{width:28px;height:28px;color:var(--text);cursor:pointer;background:0 0;border:0;font-size:14px}.station-list ol{margin:0;padding:4px 0;list-style:none;overflow-y:auto}.station-list li button{width:100%;font:inherit;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;gap:8px;padding:6px 12px;display:flex}.station-list li button:hover{background:#0000000a}.station-list li button.on{background:#1d4ed81a}.station-icon{font-size:14px;line-height:18px}.station-main{flex-direction:column;flex:1;min-width:0;display:flex}.station-top{justify-content:space-between;gap:8px;font-size:13px;display:flex}.station-dist{font-variant-numeric:tabular-nums;white-space:nowrap}.station-note{color:var(--muted);font-size:11px}@media (width<=720px){.station-list{border-width:0 0 1px;border-radius:0;width:auto;max-height:70%;top:0;left:0;right:0}}.seg-cell rect{fill:var(--line);transition:fill .1s}.seg-cell text{fill:var(--muted);pointer-events:none;font-size:11px;font-weight:600}.seg-cell:hover rect,.seg-cell.on rect{fill:var(--segment)}.seg-cell:hover text,.seg-cell.on text{fill:#fff}.seg-highlight .seg-shade{fill:var(--segment);fill-opacity:.06}.seg-highlight .seg-area{fill:var(--segment);fill-opacity:.25}.seg-highlight .seg-line{fill:none;stroke:var(--segment);stroke-width:2.5px;stroke-linejoin:round}.seg-tip{pointer-events:none;background:var(--panel);border:1px solid var(--line);white-space:nowrap;z-index:5;border-radius:6px;flex-direction:column;padding:4px 8px;font-size:12px;display:flex;position:absolute;transform:translate(-50%,-100%);box-shadow:0 2px 8px #00000026}.seg-tip span{color:var(--muted)}
