:root{color:#132c42;background:#eef4f8;font-family:system-ui,-apple-system,Noto Sans TC,PingFang TC,Hiragino Sans,sans-serif;font-size:100%;--navy:#123c68;--accent:#087f75;--accent2:#176fc1;--bg:#eef4f8;--surface:#fff;--surface2:#f5f9fc;--ink:#132c42;--muted:#597086;--border:#526a7e;--thin:#c4d2dd;--amber:#bd7000;--amber-bg:#fff2d8;--green:#06745a;--danger:#b53c47}*{box-sizing:border-box}html{overflow-x:clip}body{margin:0}button,input{font:inherit}button{min-height:3rem;font-size:1.125rem;line-height:1.35;touch-action:manipulation}.app{max-width:28rem;margin:0 auto;min-height:100vh;background:var(--bg);color:var(--ink);padding-bottom:calc(11.5rem + env(safe-area-inset-bottom))}.top{background:#141414;color:#f4f0e6;padding:calc(1rem + env(safe-area-inset-top)) 1rem .9rem}.note,.status p,.top p{margin:.4rem 0 0}.kicker{font-size:1rem;color:#f5c518}.kicker,h1{font-weight:700}h1{font-size:1.85rem;margin:.15rem 0 0;line-height:1.25}.confirm-meta,.field,.note,.result small,.stations,.status,.top p{line-height:1.45;font-size:1rem}.top p{color:#d9d3c7}.confirm-meta,.note,.result small,.status span{color:#5c564c}.confirm,.note,.panel,.results{padding:.85rem 1rem 0}.field{display:flex;flex-direction:column;gap:.4rem;font-size:1rem;font-weight:700;color:#1a1a1a}.field input{border:1px solid #1a1a1a;background:#fffdf8;min-height:3.25rem;padding:.75rem .9rem;border-radius:2px;font-size:1.125rem;font-weight:400;width:100%;touch-action:manipulation}.results{display:flex;flex-direction:column;gap:.6rem;padding-bottom:.4rem}.action,.result,.secondary,.stop{display:block;width:100%;text-align:left;border:1px solid #1a1a1a;background:#fffdf8;padding:.8rem .9rem;border-radius:2px;color:#1a1a1a}.action,.secondary,.stop{border-radius:.9rem}.result{min-height:3.5rem;font-size:1.25rem;font-weight:700}.confirm-meta,.result small{display:block;margin-top:.15rem;font-size:1rem;font-weight:400}.result.active{background:#141414;color:#f4f0e6}.result.active small{color:#f5c518}.action:disabled,.result:disabled,.secondary:disabled{opacity:.45}.action.primary:disabled{opacity:.85}.action.live:disabled{opacity:1;outline:3px solid #141414}.actions{display:flex;flex-direction:column;gap:.6rem;padding:.75rem 0 0}.actions.tight{padding:.5rem 0 0}.photo-label{font-weight:700;margin:0;font-size:1.05rem;color:#1a1a1a}.note.tight{padding:.35rem 0 0}.action,.secondary,.stop{justify-content:center;text-align:center;font-weight:900;border-radius:13px;min-height:48px}.action{border-color:var(--accent);background:linear-gradient(135deg,#087f75,#0ca68f);color:#fff;box-shadow:0 4px 13px #087f7540}.action.primary{min-height:3.5rem;font-size:1.05rem}.stop{border-color:#a83f49;background:var(--danger);color:#fff}.secondary{background:var(--surface2);border-color:var(--border);color:var(--ink)}.confirm-name{margin:.2rem 0 0;font-size:1.7rem;font-weight:700;line-height:1.25;color:#1a1a1a}.ride{padding:calc(1rem + env(safe-area-inset-top)) .75rem .4rem;background:var(--bg)}.ride-kicker{margin:0;font-size:.85rem;font-weight:800;color:var(--accent)}.ride-next{margin:.15rem 0 0;font-size:1.7rem;font-weight:900;line-height:1.15;color:var(--navy)}.ride-remain{margin:.35rem 0 0;font-size:1rem;font-weight:800;line-height:1.3;color:var(--muted)}.ride-minutes{color:var(--navy);font-weight:900}.ride-source{margin:.45rem 0 0;color:var(--navy)}.ride-alert,.ride-source{font-size:1rem;font-weight:800;line-height:1.4}.ride-alert{margin:.7rem 0 0;padding:.7rem .8rem;background:var(--amber-bg);color:var(--ink);border-left:1px solid var(--amber);border:1px solid var(--amber);border-left-width:4px;border-radius:12px}.ride-alert.warn{background:#fff1f2;color:var(--ink);border-color:var(--danger)}.manual-note{margin:0 0 .7rem;padding:.7rem .85rem;background:var(--amber-bg);color:var(--navy);border-radius:12px;font-size:1rem;font-weight:800;line-height:1.4}.manual-stops{display:flex;flex-direction:column;gap:.5rem;margin-top:.8rem}.cover{margin-top:.8rem;padding:.85rem .9rem;background:#fff;border:1px solid var(--border);border-radius:19px}.cover-kicker{margin:0;color:var(--danger);font-size:1rem;font-weight:900}.cover-held{margin:.15rem 0 0;color:var(--navy);font-size:2.2rem;font-weight:900;line-height:1.15}.cover-list{list-style:none;margin:.7rem 0 0;padding:0}.cover-list li{display:grid;grid-template-columns:1fr auto;grid-gap:.2rem .8rem;gap:.2rem .8rem;align-items:baseline;padding:.45rem 0;border-top:1px solid var(--thin);color:var(--ink);font-size:1.15rem;font-weight:800}.cover-list b{font-size:1.8rem;font-weight:900;color:var(--accent2);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.cover-list small{grid-column:1/-1;color:var(--amber);font-size:.9rem;font-weight:800}.cover-note{margin:.7rem 0 0;color:var(--muted);font-size:1rem;font-weight:800;line-height:1.4}.line-map{margin:.8rem 0 0}.line-map svg{display:block;width:100%;height:auto;border:1px solid var(--border);border-radius:19px;background:linear-gradient(160deg,var(--surface),var(--surface2))}.line-map-paper{fill:#f5f9fc}.line-map-north{font-size:16px;font-weight:800;fill:var(--navy)}.line-map-under{fill:none;stroke:#fff;stroke-width:12;stroke-linejoin:round;stroke-linecap:round}.line-map-track{fill:none;stroke:var(--accent2);stroke-width:7;stroke-linejoin:round;stroke-linecap:round}.line-map-visited{fill:none;stroke:var(--accent);stroke-width:7;stroke-linejoin:round;stroke-linecap:round}.line-map-stop{fill:#fff;stroke:var(--border);stroke-width:1.5}.line-map-passed{fill:var(--accent);stroke:#fff;stroke-width:2.5}.line-map-dest{fill:var(--green);stroke:#fff;stroke-width:3}.line-map-next{fill:var(--amber);stroke:#fff;stroke-width:2.5}.line-map-here{fill:var(--accent2);stroke:#fff;stroke-width:4}.line-map figcaption{color:var(--muted);display:flex;flex-wrap:wrap;gap:.35rem .8rem;margin-top:.45rem;font-size:1rem;font-weight:700;line-height:1.3}.mtr-progress{display:flex;align-items:flex-start;overflow-x:auto;margin-top:.7rem;padding:10px 6px 12px;min-height:5.8rem;background:linear-gradient(145deg,var(--surface),var(--surface2));border:1px solid var(--border);border-radius:19px}.mtr-stop-wrap{display:contents}.mtr-stop{flex:0 0 auto;width:4.75rem;text-align:center;color:var(--muted);font-weight:800}.mtr-node{height:28px;display:flex;align-items:center;justify-content:center}.mtr-node:before{content:"";width:15px;height:15px;border:2px solid var(--thin);border-radius:50%;background:var(--surface);box-shadow:0 0 0 3px var(--surface2)}.mtr-stop.passed .mtr-node:before{border-color:var(--accent);background:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,var(--surface2))}.mtr-stop.here .mtr-node:before{border-color:var(--accent2);background:var(--accent2);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent2) 18%,var(--surface2)),0 0 0 6px color-mix(in srgb,var(--accent2) 22%,transparent)}.mtr-stop.next .mtr-node:before{border-style:solid;border-color:var(--amber);background:var(--amber);box-shadow:0 0 0 3px color-mix(in srgb,var(--amber) 16%,var(--surface2))}.mtr-stop.dest .mtr-node:before{border-style:solid;border-color:var(--green);background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 16%,var(--surface2))}.mtr-stop.future .mtr-node:before{border-style:dashed;background:transparent}.mtr-stop b{display:block;color:var(--ink);font-size:1rem;line-height:1.25;font-weight:800}.mtr-stop small{display:block;margin-top:2px;color:var(--muted);font-size:.75rem;font-weight:700}.mtr-stop.here small{color:var(--accent2)}.mtr-stop.next small{color:var(--amber)}.mtr-stop.dest small{color:var(--green)}.mtr-link{flex:0 0 21px;height:28px;position:relative}.mtr-link:before{content:"";position:absolute;left:0;right:0;top:13px;border-top:3px solid var(--thin);border-radius:99px}.mtr-link.complete:before{border-top-color:var(--accent)}.mtr-link.between:after{content:"";position:absolute;left:calc(var(--you, .5) * 100%);top:7px;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--accent2);border:2px solid #fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent2) 22%,transparent)}.flow ol{list-style:none;margin:0;padding:0}.flow li{display:grid;grid-template-columns:2.2rem 1fr auto;align-items:center;grid-gap:.55rem;gap:.55rem;min-height:3.25rem;position:relative}.flow li:before{content:"";position:absolute;left:.95rem;top:0;bottom:0;width:.35rem;background:#1a1a1a}.flow li:first-child:before{top:50%}.flow li:last-child:before{bottom:50%}.flow-dot{width:1.35rem;height:1.35rem;border:3px solid #1a1a1a;border-radius:50%;background:#fffdf8;justify-self:center;z-index:1}.flow li.passed .flow-dot{background:#1a1a1a}.flow li.here .flow-dot{width:1.7rem;height:1.7rem;background:#f5c518}.flow li.next .flow-dot{background:#141414;box-shadow:0 0 0 4px #f5c518}.flow li.dest .flow-dot{border-radius:2px;background:#8f2d2d}.flow-name{font-size:1.25rem;font-weight:700;color:#141414}.flow li.passed .flow-name{color:#5c564c}.flow-tag{font-size:1rem;font-weight:700;color:#141414}.flow-you{position:absolute;left:.55rem;width:1.15rem;height:1.15rem;border-radius:50%;background:#f5c518;border:3px solid #141414;z-index:2}.dock{position:fixed;left:0;right:0;bottom:0;width:100%;max-width:28rem;margin-inline:auto;box-sizing:border-box;z-index:5;background:var(--bg);border-top:1px solid var(--thin);padding:.65rem 1rem calc(.7rem + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:.5rem}.dock-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:.5rem;gap:.5rem}.banner{margin:.9rem 1rem 0;padding:.9rem 1rem;background:var(--amber-bg);color:var(--ink);border-left:1px solid var(--amber);border:1px solid var(--amber);border-left-width:4px;font-weight:800;font-size:1.125rem;line-height:1.4;border-radius:12px;scroll-margin-bottom:12rem}.banner.warn{background:#fff1f2;color:var(--ink);border-color:var(--danger)}.banner p{margin:0;font-size:1.125rem}.ask{display:flex;flex-direction:column;gap:.6rem;margin-top:.8rem}.ask .stop{background:var(--surface);color:var(--ink);border-color:var(--border);box-shadow:none}.ack{display:flex;gap:.75rem;align-items:center;margin-top:.8rem;min-height:3rem;font-weight:700;font-size:1.05rem}.ack input{width:1.75rem;height:1.75rem;min-width:1.75rem;margin:0;accent-color:#f5c518}.panel{padding-bottom:1.2rem}.status{display:grid;grid-template-columns:5rem 1fr;grid-gap:.45rem .7rem;gap:.45rem .7rem;font-size:1.05rem}.status span{font-size:1rem}.status strong{font-size:1.15rem}.stations{list-style:none;padding:0;margin:.8rem 0 0}.stations li{display:flex;justify-content:space-between;gap:.75rem;padding:.7rem 0;border-bottom:1px solid #e4ddd0;font-size:1.05rem}.stations li.now{font-weight:700}.stations li.now:before{content:"▶ "}.ack:focus-within,button:focus-visible,input:focus-visible{outline:3px solid #141414;outline-offset:2px}