:root{--ink: #14202b;--ink2: #1e2e3c;--paper: #f3efe6;--mute: #6b7a88;--hi: #ffd23f;--bg: #ffffff;--soft: #f2f4f7;--rule: #e4e8ec;--text: #14202b;--go: #0a8a3a}*,*:before,*:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{height:100%;margin:0;background:#dfe6ea;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overscroll-behavior:none}#app{position:relative;width:100%;height:100%;overflow:hidden}#map{position:absolute;inset:0;background:#dfe6ea}button{font-family:inherit;cursor:pointer}[hidden]{display:none!important}#sheet{position:absolute;left:0;right:0;bottom:0;z-index:1000;display:flex;flex-direction:column;max-height:62%;background:var(--bg);border-radius:18px 18px 0 0;padding:0 14px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 20px #14202b2e;transition:transform .25s ease}#sheet.min{transform:translateY(calc(100% - 104px))}#grip{flex:0 0 18px;display:flex;justify-content:center;align-items:center}#grip i{width:38px;height:4px;border-radius:2px;background:#cfd6dc}#head{display:flex;align-items:center;justify-content:space-between;height:34px}#head h1{margin:0;font-size:19px;font-weight:800;letter-spacing:.02em}#head h1 b{color:#e2a800}#cfg{width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--mute)}#tabs{display:flex;gap:4px;padding:4px;margin:4px 0 8px;border-radius:12px;background:var(--soft)}#tabs button{flex:1;height:36px;border:0;border-radius:9px;background:transparent;color:var(--mute);font-size:15px;font-weight:700}#tabs button.act{background:var(--bg);color:var(--text);box-shadow:0 1px 3px #14202b26}#body{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}.bar{display:flex;align-items:center;gap:12px;margin:2px 0 6px}.bar .count{flex:1;color:var(--mute);font-size:13.5px}.link{border:0;background:none;color:#1a6fd1;font-size:14px;font-weight:600;padding:6px 0}.badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:30px;height:26px;padding:0 5px;border-radius:6px;background:var(--c);color:#fff;font-style:normal;font-weight:800;font-size:14px;letter-spacing:.02em}.badge.lt{color:var(--text)}.badge.s{min-width:24px;height:20px;font-size:12px;border-radius:5px}.badge.l{min-width:40px;height:36px;font-size:19px;border-radius:8px}.near{list-style:none;margin:0;padding:0}.near li{padding:10px 2px;border-top:1px solid var(--rule);cursor:pointer}.nhead{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.nhead b{font-size:15.5px}.nhead small{color:var(--mute);white-space:nowrap;font-size:12.5px}.nlive{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:6px}.nb{display:inline-flex;align-items:center;gap:5px;font-size:14px}.now{color:var(--go)}.lines{list-style:none;margin:0;padding:0}.lines li{display:flex;align-items:center;border-top:1px solid var(--rule)}.lines li.group{display:flex;justify-content:space-between;border-top:0;padding:18px 2px 6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}.lines li.group .link{padding:0;font-size:13px;letter-spacing:0;text-transform:none}.lines li.group:first-child{padding-top:4px}.lines .open{flex:1;display:flex;align-items:center;gap:10px;min-height:52px;border:0;background:none;text-align:left;color:var(--text);font-size:14.5px;padding:4px 0}.sw{flex:0 0 52px;height:44px;border:0;background:none;display:flex;align-items:center;justify-content:flex-end}.sw i{position:relative;width:40px;height:24px;border-radius:12px;background:#cfd6dc;transition:background .15s}.sw i:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0000004d;transition:transform .15s}.lines li.on .sw i{background:var(--go)}.lines li.on .sw i:after{transform:translate(16px)}.dhead{display:flex;align-items:center;gap:10px;margin:2px 0 8px}.dhead h2{margin:0;font-size:17px;line-height:1.2}.dhead small{color:var(--mute);font-size:12.5px}.back{flex:0 0 36px;height:36px;border:0;border-radius:50%;background:var(--soft);color:var(--text);font-size:24px;line-height:1}.badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.chip-line{border:0;background:none;padding:0}.arrivals{list-style:none;margin:0;padding:0}.arrivals li{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--rule)}.arrivals .dest{flex:1;font-size:15px}.arrivals .occ{display:block;color:var(--mute);font-size:12px}.arrivals .when{text-align:right;white-space:nowrap}.arrivals .when b{font-size:17px}.arrivals .when small{display:block;color:var(--mute);font-size:12px}.arrivals .when.now b{color:var(--go)}.muted{color:var(--mute);font-size:14px}.actions{display:flex;gap:8px;margin-top:10px}.actions button{flex:1;height:44px;border:0;border-radius:10px;background:var(--soft);color:var(--text);font-size:14.5px;font-weight:700}.warn{background:#fff6db;border-radius:10px;padding:2px 10px;margin-bottom:8px;font-size:13px}.warn p{margin:6px 0}.senses{display:flex;gap:6px;margin-bottom:8px}.senses button{flex:1;min-height:40px;border:1px solid var(--rule);border-radius:10px;background:var(--bg);color:var(--mute);font-size:13px;font-weight:700;padding:4px 6px}.senses button.act{border-color:var(--text);color:var(--text)}.variants{display:flex;flex-wrap:wrap;gap:6px;margin:-2px 0 10px}.variants button{border:1px solid var(--rule);border-radius:999px;background:var(--bg);color:var(--mute);font-size:12px;font-weight:600;padding:6px 10px}.variants button.act{border-color:var(--text);background:var(--text);color:var(--bg)}.diagram{list-style:none;margin:0;padding:0}.diagram li{position:relative;display:flex;align-items:center;gap:10px;min-height:42px;padding-left:34px}.diagram li:before{content:"";position:absolute;left:11px;top:0;bottom:0;width:6px;background:var(--c)}.diagram li.st:first-child:before{top:50%}.diagram li.st:last-child:before{bottom:50%}.diagram .dot{position:absolute;left:6px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;background:#fff;border:3px solid var(--c)}.diagram li.end .dot{border-width:5px}.diagram li.st{cursor:pointer;border-bottom:1px solid var(--rule)}.diagram li.st span{flex:1;font-size:14.5px}.diagram li.st small{margin-left:6px;color:var(--mute);font-size:11.5px}.diagram .eta{font-size:14px;white-space:nowrap}.diagram .eta.now{color:var(--go)}.diagram li.bus{min-height:30px;color:var(--mute);font-size:12.5px}.diagram li.bus .badge{position:absolute;left:2px;box-shadow:0 0 0 2px #fff}#loc{position:absolute;right:12px;top:calc(12px + env(safe-area-inset-top,0px));z-index:900;width:46px;height:46px;border-radius:50%;border:0;background:var(--bg);color:var(--text);box-shadow:0 2px 8px #14202b4d;display:flex;align-items:center;justify-content:center}#loc.on{color:#1a73e8}#msg{position:absolute;left:12px;right:70px;top:calc(14px + env(safe-area-inset-top,0px));z-index:1100;background:var(--ink);color:#fff;padding:9px 12px;border-radius:10px;font-size:14px;display:none}#msg.show{display:block}.me{width:18px;height:18px;border-radius:50%;background:#1a73e8;border:3px solid #fff;box-shadow:0 0 0 6px #1a73e82e,0 1px 4px #0006}.pin{width:30px;height:30px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:3px solid #fff;box-shadow:0 1px 6px #00000073;font-weight:800;font-size:13px;line-height:24px;text-align:center;color:var(--text)}.pin.o{background:var(--hi)}.pin.d{background:#fff}.route-dot{width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--text)}.stop{width:12px;height:12px;border-radius:50%;background:#fff;border:3px solid var(--text)}.arrow-marker svg{display:block;filter:drop-shadow(0 0 1px #fff)}.maplibregl-ctrl-bottom-right{bottom:100px}.od{display:flex;gap:6px;margin-bottom:6px;align-items:center}.od em{flex:0 0 26px;height:26px;border-radius:50%;font-weight:800;font-size:14px;line-height:26px;text-align:center;font-style:normal;color:var(--text);background:var(--hi)}.od em.d{background:var(--soft);border:2px solid var(--text);line-height:22px}.od input{flex:1;min-width:0;height:44px;border-radius:10px;border:1px solid var(--rule);background:var(--soft);color:var(--text);padding:0 10px;font-size:15px;font-family:inherit}.od button{flex:0 0 44px;height:44px;border-radius:10px;border:0;background:var(--soft);color:var(--text);font-size:17px}.od button.arm{background:var(--hi)}#res{margin-top:8px;font-size:15px}#res .tot{display:flex;align-items:baseline;gap:10px;margin:4px 0 8px}#res .tot b{font-size:28px;font-weight:800}#res .tot span{color:var(--mute)}.leg{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--rule)}.leg i{flex:0 0 38px;height:26px;border-radius:6px;background:var(--c, #6b7a88);color:#fff;font-weight:800;font-size:14px;line-height:26px;text-align:center;font-style:normal}.leg div{flex:1}.leg small{color:var(--mute);display:block}.leg u{text-decoration:none;color:var(--mute);white-space:nowrap}.alt{margin-top:8px;width:100%;height:44px;border:1px dashed #b9c3cc;border-radius:10px;background:transparent;color:var(--text);font-size:14px;font-weight:600}.note{color:var(--mute);font-size:12.5px;margin-top:8px;line-height:1.35}#dlg{position:absolute;inset:0;z-index:2000;background:#0a1016b3;display:none;align-items:center;justify-content:center;padding:20px}#dlg.show{display:flex}#dlg>div{background:var(--ink);color:var(--paper);border-radius:16px;padding:18px;max-width:420px;width:100%}#dlg h2{margin:0 0 8px;font-size:20px;text-transform:uppercase;letter-spacing:.04em}#dlg p{font-size:14px;color:#c4ced6;line-height:1.4;margin:0 0 10px}#dlg input{width:100%;height:44px;border-radius:9px;border:0;background:var(--ink2);color:var(--paper);padding:0 10px;font:500 14px monospace}#dlg .row{display:flex;gap:8px;margin-top:12px}#dlg .row button{flex:1;height:44px;border:0;border-radius:9px;font:700 15px inherit;font-family:inherit;background:var(--ink2);color:var(--paper)}#dlg .row button.ok{background:var(--hi);color:var(--ink)}#about-overlay{position:absolute;inset:0;z-index:2100;background:#0a1016c7;display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto}.about-box{background:var(--ink);color:var(--paper);border-radius:16px;padding:20px;max-width:480px;width:100%;max-height:90vh;overflow-y:auto;line-height:1.45}.about-box h2{margin:0 0 6px;font-size:22px;color:var(--hi);text-transform:uppercase;letter-spacing:.04em}.about-box h3{margin:14px 0 4px;font-size:15px;color:var(--paper);text-transform:uppercase;letter-spacing:.06em}.about-box p,.about-box .about-lead{margin:0 0 8px;font-size:14px;color:#c4ced6}.about-box a{color:var(--hi);text-decoration:none}.about-box a:hover,.about-box a:focus{text-decoration:underline}.about-box button{margin-top:18px;width:100%;height:44px;border-radius:9px;border:0;background:var(--hi);color:var(--ink);font:700 15px inherit;font-family:inherit}.maplibregl-ctrl-attrib{font-size:10px!important;background:#ffffffd9}.maplibregl-ctrl-bottom-right{bottom:58px!important}.bus-wrap{background:none;border:0}.bus-marker{position:relative;min-width:30px;height:22px;padding:0 6px;border-radius:11px;background:var(--c);color:#fff;border:2px solid #fff;box-shadow:0 1px 5px #00000073;font:800 12px/18px system-ui,sans-serif;text-align:center;cursor:pointer;box-sizing:border-box}.bus-marker.lt{color:var(--ink)}.bus-marker span{position:relative}.bus-dir{position:absolute;left:50%;top:50%;width:34px;height:34px;margin:-17px 0 0 -17px;pointer-events:none}.bus-dir:before{content:"";position:absolute;left:50%;top:-3px;margin-left:-5px;border:5px solid transparent;border-bottom:7px solid var(--c);border-top:0;filter:drop-shadow(0 -1px 0 #fff)}.bus-marker.uncertain{opacity:.65}.bus-marker.at-stop{transform:scale(1.15);animation:bus-at-stop 1.2s ease-out infinite}@keyframes bus-at-stop{0%{box-shadow:0 1px 5px #00000073,0 0 0 0 var(--c)}70%{box-shadow:0 1px 5px #00000073,0 0 0 12px transparent}to{box-shadow:0 1px 5px #00000073,0 0 0 0 transparent}}@media (prefers-reduced-motion: reduce){.bus-marker.at-stop{animation:none;box-shadow:0 0 0 4px var(--c)}}.stop-eta{padding:0 3px;border-radius:4px;background:#fffbe6;color:#14202b;border:1px solid #c9a227;border-left:3px solid var(--c);box-shadow:0 1px 3px #0000004d;font:700 8px/11px system-ui,sans-serif;white-space:nowrap;pointer-events:none}.stop-eta.far{background:#2e9d4a;border-color:#1f6e33;color:#fff}.stop-eta.soon{background:#ffd21f;border-color:#b8920a}.stop-eta.now{background:#e0322b;border-color:#9c1f1a;color:#fff}.stop-eta.gm{margin-bottom:7px}.stop-eta.lf{position:absolute;bottom:7px;left:0;transform:translate(-50%)}
