.topbar{background:var(--accent);color:#fff;padding:12px 16px;position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between}.topbar h1{margin:0;font-size:1.15rem;font-weight:600}.topbar-right{display:flex;align-items:center;gap:8px}.topbar-action{margin-right:-8px}.refresh-bar{position:absolute;left:0;right:0;bottom:0;height:3px;overflow:hidden;background:#ffffff2e}.refresh-bar-fill{height:100%;background:#ffffffd9;transform-origin:left center;animation:refresh-shrink linear forwards}@keyframes refresh-shrink{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.update-status{font-size:.78rem;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap;margin-top:2px}.update-status.phase-downloading,.update-status.phase-processing{color:var(--accent)}.tabbar{position:fixed;left:0;right:0;bottom:0;height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--border);display:flex;z-index:20}.tabbar button{flex:1;background:none;border:none;border-right:1px solid var(--border);font-size:.85rem;color:var(--muted);cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;gap:5px}.tabbar button:last-child{border-right:none}.tabbar button.active{color:var(--accent);font-weight:600}.stop-card{background:var(--card);border-radius:12px;padding:12px 14px;margin-bottom:12px;box-shadow:0 1px 2px #0000000a}.stop-card h2{margin:0 0 8px;font-size:1.05rem}.stop-card-head{display:flex;flex-direction:column;gap:0;margin-bottom:6px}.stop-card-head h2{margin:0;font-size:1.05rem}.fav-head-line{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.fav-name-block{display:flex;flex-direction:column;min-width:0}.fav-name-block .fav-dist{margin-top:1px}.fav-dist{white-space:nowrap;font-variant-numeric:tabular-nums}.fav-dir{font-size:.9rem;line-height:1.3;margin-left:auto;text-align:right;background:none;border:none;padding:2px 0;color:var(--muted);cursor:pointer;font-family:inherit}.fav-dir:hover{color:var(--accent)}.header-line-chips{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end;flex:1}.pin-btn{flex:0 0 auto;background:none;border:none;cursor:pointer;font-size:1.25rem;line-height:1;padding:4px;color:var(--muted);align-self:flex-start}.pin-btn.pinned{color:#f59e0b}.stop-card-head .pin-btn{align-self:flex-end;margin-top:-8px}.nearby-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px}.nearby-bar .segmented{flex:1}.nearby-status{white-space:nowrap}.nearby-note{margin:0 0 12px}.segmented{display:flex;background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:2px;gap:2px}.segmented button{flex:1;background:none;border:none;border-radius:6px;padding:8px 12px;font:inherit;font-size:.9rem;color:var(--muted);cursor:pointer;min-height:36px}.segmented button.active{background:#fff;color:var(--text);font-weight:600;box-shadow:0 1px 2px #0000000f}.flip-card{perspective:1200px}.flip-card .flip-inner{position:relative;transition:transform .55s cubic-bezier(.2,.7,.2,1),min-height .55s cubic-bezier(.2,.7,.2,1);transform-style:preserve-3d}.flip-card.flipped .flip-inner{transform:rotateY(180deg);min-height:560px}.flip-face{backface-visibility:hidden;-webkit-backface-visibility:hidden}.flip-front{display:block}.flip-back{position:absolute;top:0;right:0;bottom:0;left:0;transform:rotateY(180deg);display:flex;flex-direction:column;gap:6px;align-items:center}.flip-back-btn{flex:0 0 auto;align-self:flex-start;background:none;border:none;text-align:left;font:inherit;font-size:.85rem;font-weight:600;color:var(--accent);cursor:pointer;padding:2px 0}.flip-timetable{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:50px}.flip-timetable-header{display:flex;flex-direction:column;align-items:center;gap:2px}.flip-timetable-time{font-size:1.4rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:1}.flip-timetable-station{font-size:.8rem;color:var(--muted)}.departures{list-style:none;margin:0;padding:0}.departures li{padding:5px 0;border-top:1px solid var(--border)}.departures li:first-child{border-top:none}.departures li.skipped{opacity:.55}.departures li.clickable{cursor:pointer;border-radius:4px;margin:0 -4px;padding-left:4px;padding-right:4px}.departures li.clickable:hover{background:#0066cc0f}.dep-row{display:flex;align-items:center;gap:8px}.dep-main{flex:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:28px}.dep-main.has-chip{grid-template-columns:auto auto minmax(0,1fr) auto}.dep-sched{font-variant-numeric:tabular-nums;font-size:.85rem;font-weight:600;display:flex;align-items:baseline;gap:4px}.sched-theo{text-decoration:line-through;color:var(--muted);font-weight:400;font-size:.78rem}.dep-direction{font-size:.72rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.7}.dep-rt{display:flex;align-items:center;gap:3px;font-size:.78rem}.dep-eta{font-size:.85rem;font-weight:600;text-align:right;flex-shrink:0;min-width:52px;font-variant-numeric:tabular-nums}.dep-eta.late{color:var(--late)}.dep-eta.early{color:var(--early)}.dep-terminus{font-size:.72rem;font-weight:600;color:var(--late);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dep-bus{display:flex;font-size:.72rem;color:var(--muted);margin-top:1px}.dep-bus-spacer{flex:1;display:flex;align-items:center;gap:10px}.dep-bus span:last-child{white-space:nowrap}.dep-bus-map-btn{background:none;border:none;cursor:pointer;padding:0 2px;line-height:1;color:var(--muted);display:flex;align-items:center}.dep-bus-map-btn:hover{color:var(--text)}.skipped-tag{color:var(--error);font-weight:600}.dep-locations{display:flex;flex-wrap:wrap;gap:4px;padding:3px 0 2px}.dep-near-location{display:inline-flex;align-items:center;gap:3px;font-size:.51rem;font-weight:600;white-space:nowrap;padding:1px 4px;border-radius:20px;background:#f0fdf4;border:1px solid #86efac;color:#16a34a;line-height:1.5}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecK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/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF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29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.stop-map{flex:1 1 auto;width:100%;min-height:200px;border-radius:8px;overflow:hidden;background:#e8eaed}.map-caption{flex:0 0 auto;margin:0}.bus-marker{background:none;border:none}.bus-arrow{width:18px;height:18px;background:#ff1a1a;clip-path:polygon(50% 0%,100% 100%,50% 78%,0% 100%);filter:drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 1px 2px rgba(0,0,0,.5))}.trip-timeline{list-style:none;margin:4px 0 0;padding:0}.trip-tl-row{display:grid;grid-template-columns:44px 18px 1fr;align-items:center;gap:6px;min-height:28px;position:relative}.trip-tl-time{font-variant-numeric:tabular-nums;font-size:.82rem;text-align:right;color:var(--muted)}.trip-tl-marker{position:relative;align-self:stretch}.trip-tl-marker:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:2px;background:var(--line-color, var(--accent));transform:translate(-50%)}.trip-tl-row:first-child .trip-tl-marker:before{top:50%}.trip-tl-row:last-child .trip-tl-marker:before{bottom:50%}.trip-tl-marker:after{content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid var(--line-color, var(--accent));transform:translate(-50%,-50%)}.trip-tl-row.terminus .trip-tl-marker:after{background:var(--line-color, var(--accent));width:14px;height:14px}.trip-tl-stop{font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trip-tl-row.terminus .trip-tl-stop{font-weight:700}.trip-tl-fav{color:#f59e0b;margin-left:4px;font-size:.85em}.trip-tl-location{display:inline-flex;align-items:center;margin-left:5px;font-size:.49em;font-weight:600;padding:1px 4px;border-radius:20px;background:#f0fdf4;border:1px solid #86efac;color:#16a34a;line-height:1.5;vertical-align:middle}.timetable{display:flex;flex-direction:column;gap:12px}.filters label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:var(--muted)}.filters input[type=search]{font:inherit;font-size:1rem;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);width:100%;outline:none}.filters input[type=search]:focus{border-color:var(--accent)}.recent-searches{font-size:.82rem;color:var(--muted);margin-top:4px}.recent-link{background:none;border:none;padding:0;color:var(--accent);cursor:pointer;font:inherit;font-size:inherit}.recent-link:hover{text-decoration:underline}.stop-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.stop-card-row{background:var(--card);border-radius:12px;padding:12px 14px;box-shadow:0 1px 2px #0000000a;position:relative}.selected-stop{border-left:3px solid var(--accent)}.stop-result-main{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}.stop-name{font-size:1rem}.stop-id{flex-shrink:0}.quay-lines{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.line-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 8px 4px 6px;border-radius:6px;border:1px solid transparent;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:.82rem;font-weight:600;transition:filter .15s}.line-chip:hover{filter:brightness(.9)}.line-chip.active{outline:2px solid var(--text);outline-offset:1px}.line-num{font-weight:700}.line-dir{font-weight:400;font-size:.78rem}.line-star{background:none;border:none;cursor:pointer;padding:0 0 0 2px;font-size:.9rem;line-height:1;color:inherit;opacity:.6}.line-star.pinned,.line-star:hover{opacity:1}.day-tt-nav{display:flex;align-items:center;gap:8px;margin-bottom:8px}.day-tt-nav-btn{background:none;border:1px solid var(--border);border-radius:6px;padding:4px 10px;font:inherit;font-size:1rem;cursor:pointer;color:var(--text);flex-shrink:0}.day-tt-nav-btn:hover{background:var(--bg)}.day-tt-date{flex:1;text-align:center;display:flex;flex-direction:column;gap:1px}.day-tt-date-main{font-size:.9rem;font-weight:600}.day-tt-date-rel{font-size:.75rem}.day-tt-empty{margin:8px 0}.day-timetable{display:flex;flex-direction:column;gap:4px}.day-tt-row{display:flex;align-items:flex-start;gap:8px;min-height:28px}.day-tt-hour{flex:0 0 28px;text-align:center;font-size:.8rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:28px;border-radius:4px}.day-tt-mins{flex:1;display:flex;flex-wrap:wrap;gap:4px;padding-top:4px}.day-tt-min{background:none;border:1px solid var(--border);border-radius:4px;padding:2px 6px;font:inherit;font-size:.82rem;font-variant-numeric:tabular-nums;cursor:pointer;color:var(--text)}.day-tt-min:hover{background:var(--bg);border-color:var(--accent)}.day-tt-min.past{opacity:.4}.tt-flip-card{perspective:1000px}.tt-flip-inner{position:relative;transition:transform .45s cubic-bezier(.2,.7,.2,1);transform-style:preserve-3d;min-height:120px}.tt-flip-card.flipped .tt-flip-inner{transform:rotateY(180deg)}.tt-flip-face{backface-visibility:hidden;-webkit-backface-visibility:hidden}.tt-flip-front{display:block}.tt-flip-back{position:absolute;top:0;right:0;bottom:0;left:0;transform:rotateY(180deg);overflow-y:auto}.tt-flip-back-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.tt-flip-back-info{font-size:.88rem;color:var(--muted)}.alerts{margin-bottom:12px}.alert{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;padding:10px 12px;border-radius:8px;margin-bottom:8px}.alert p{margin:4px 0 0;font-size:.9rem}.loc-picker-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:1000;display:flex;align-items:flex-end;justify-content:center}.loc-picker-modal{background:var(--card);border-radius:16px 16px 0 0;width:100%;max-width:600px;display:flex;flex-direction:column;max-height:90vh;overflow:hidden}.loc-picker-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px;flex-shrink:0}.loc-picker-title{font-weight:600;font-size:1rem}.loc-picker-close{background:none;border:none;cursor:pointer;font-size:1rem;color:var(--muted);padding:4px 6px;line-height:1}.loc-picker-close:hover{color:var(--text)}.loc-picker-hint{padding:0 16px 8px;flex-shrink:0}.loc-picker-map{flex:1;min-height:340px}.loc-picker-footer{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;padding-bottom:calc(10px + env(safe-area-inset-bottom));flex-shrink:0;gap:12px;border-top:1px solid var(--border)}.loc-picker-coords{flex:1;font-variant-numeric:tabular-nums}.loc-picker-apply{min-height:38px;padding:7px 20px;font-size:.95rem}.loc-picker-apply:disabled{opacity:.4;cursor:default}.favorites-list{display:flex;flex-direction:column;gap:4px}.fav-station-group{background:var(--card);border-radius:12px;padding:10px 14px;margin-bottom:8px;box-shadow:0 1px 2px #0000000a}.fav-station-name{margin:0 0 8px;font-size:1rem;font-weight:600}.fav-entry{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--border)}.fav-entry:first-of-type{border-top:none}.fav-entry-headsign{flex:1;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unstar-btn{background:none;border:none;cursor:pointer;font-size:1.1rem;color:#f59e0b;padding:4px;line-height:1;flex-shrink:0}.unstar-btn:hover{color:var(--muted)}.locations-list{display:flex;flex-direction:column;gap:8px}.loc-row{background:var(--card);border-radius:10px;padding:10px 12px;box-shadow:0 1px 2px #0000000a;display:flex;align-items:center;gap:10px}.loc-info{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.loc-name{font-size:.95rem;font-weight:600}.loc-coords-text{font-variant-numeric:tabular-nums}.loc-actions{display:flex;gap:6px;flex-shrink:0}.loc-edit-btn,.loc-delete-btn{background:none;border:none;cursor:pointer;font-size:1rem;padding:4px 6px;border-radius:6px;line-height:1;color:var(--muted)}.loc-edit-btn:hover{color:var(--accent)}.loc-delete-btn:hover{color:var(--error)}.loc-form{background:var(--card);border-radius:10px;padding:12px;box-shadow:0 1px 2px #0000000a;display:flex;flex-direction:column;gap:8px;width:100%}.loc-input{font:inherit;font-size:.95rem;padding:8px 10px;border:1px solid var(--border);border-radius:7px;background:var(--bg);color:var(--text);width:100%;outline:none}.loc-input:focus{border-color:var(--accent)}.loc-coords{display:flex;gap:8px;align-items:center}.loc-coords .loc-input{flex:1}.loc-map-pick-btn{flex-shrink:0;background:none;border:1px solid var(--border);border-radius:7px;padding:7px 8px;cursor:pointer;color:var(--muted);display:flex;align-items:center;justify-content:center;line-height:1}.loc-map-pick-btn:hover{color:var(--accent);border-color:var(--accent)}.loc-form-actions{display:flex;align-items:center;gap:10px}.loc-save-btn{padding:7px 16px;font-size:.9rem;min-height:36px}.loc-cancel-btn{background:none;border:none;cursor:pointer;font:inherit;font-size:.9rem;color:var(--muted);padding:7px 0}.loc-cancel-btn:hover{color:var(--text)}.loc-add-btn{background:none;border:1px dashed var(--border);border-radius:10px;padding:10px;font:inherit;font-size:.9rem;color:var(--accent);cursor:pointer;width:100%;text-align:center}.loc-add-btn:hover{background:var(--card)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:flex-end;justify-content:center;z-index:100;animation:fade-in .15s ease-out}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.modal{background:#fff;width:100%;max-width:600px;border-radius:16px 16px 0 0;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom));max-height:80vh;overflow-y:auto;animation:slide-up .2s ease-out}@keyframes slide-up{0%{transform:translateY(20px)}to{transform:translateY(0)}}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.modal-header h2{margin:0;font-size:1.1rem}.modal-header .icon-btn{color:var(--text)}.modal-header .icon-btn:hover{background:var(--border)}.settings-list{list-style:none;margin:0;padding:0}.settings-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--border)}.settings-list li:first-child{border-top:none}.setting-label{display:flex;flex-direction:column;gap:2px}.setting-number{display:flex;align-items:center;gap:4px;flex:0 0 auto}.setting-number input{width:72px;font-size:1rem;padding:8px;border:1px solid var(--border);border-radius:8px;text-align:right;font-family:inherit}.setting-input{flex:0 0 auto;width:140px;font-size:.95rem;padding:8px;border:1px solid var(--border);border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.setting-radio-group{display:flex;flex-direction:column;gap:6px;flex-shrink:0}.setting-radio{display:flex;align-items:center;gap:6px;font-size:.9rem;cursor:pointer}.setting-radio input[type=radio]{accent-color:var(--accent)}.diag{background:var(--bg);padding:8px;border-radius:6px;font-size:.72rem;white-space:pre-wrap;margin-top:6px;color:var(--text)}.purge-log{margin-top:12px;background:var(--bg);padding:10px;border-radius:8px;font-size:.8rem;white-space:pre-wrap;max-height:200px;overflow-y:auto}:root{--bg: #f5f6f8;--card: #ffffff;--text: #1a1a1a;--muted: #6b7280;--accent: #0066cc;--border: #e5e7eb;--late: #d97706;--early: #2563eb;--error: #dc2626;--tabbar-h: 48px}*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px;-webkit-font-smoothing:antialiased}#app{min-height:100vh}.app{display:flex;flex-direction:column;min-height:100vh}.content{flex:1;padding:12px;padding-bottom:calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));max-width:600px;width:100%;margin:0 auto}.icon-btn{background:none;border:none;color:inherit;cursor:pointer;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:0;font-size:1.1rem}.icon-btn:hover,.icon-btn:focus-visible{background:#ffffff26;outline:none}.primary-btn{background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:8px;padding:8px 14px;font-size:.95rem;cursor:pointer;min-height:40px}.primary-btn:disabled{opacity:.5;cursor:wait}.danger-btn{background:#fff;color:var(--error);border:1px solid var(--error);border-radius:8px;padding:8px 14px;font-size:.95rem;cursor:pointer;min-height:40px}.danger-btn:disabled{opacity:.5;cursor:wait}.status{padding:12px;color:var(--muted)}.status.error{color:var(--error)}.status.small{padding:6px 0;font-size:.85rem}.muted{color:var(--muted)}.small{font-size:.8rem}.empty-hint{padding:24px 12px;text-align:center;line-height:1.5}.card-spinner{position:absolute;top:8px;right:8px;width:14px;height:14px;border:2px solid #c7dbff;border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#16a34a;margin-right:4px;vertical-align:middle;animation:live-pulse 1.6s ease-in-out infinite}@keyframes live-pulse{0%,to{opacity:1}50%{opacity:.35}}.rt-delay{font-size:.82rem;font-weight:600;white-space:nowrap}.rt-delay.late{color:var(--late)}.rt-delay.early{color:var(--early)}.rt-delay.ontime{color:#16a34a}.line-chip-inline{font-size:.68rem;font-weight:700;padding:2px 5px;border-radius:4px;white-space:nowrap;line-height:1.4}
