:root{font-size:17.6px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1b2e39;background:#f8f7f3;font-synthesis:none;--ink:#1b2e39;--muted:#89929a;--paper:#f8f7f3;--red:#ff3546}*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #2588da;outline-offset:4px}button:disabled{opacity:.4;cursor:default}svg{width:24px;height:24px;flex:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#app{height:100dvh;min-height:500px;overflow:hidden;position:relative}#map{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}#map.dragging{cursor:grabbing}.topbar{position:absolute;top:24px;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.brand{display:flex;gap:14px;align-items:center;color:var(--ink);text-decoration:none;pointer-events:auto}.brand-icon{width:52px;height:58px;border-radius:16px;background:var(--red);color:white;display:grid;place-items:center}.brand-icon svg{width:31px;height:35px}.brand strong{display:block;letter-spacing:-1.7px;font-size:38.5px;line-height:1.2;font-weight:750}.brand small{display:block;font-size:9.9px;font-weight:650;letter-spacing:2.5px;color:var(--muted);margin-top:5px}.top-actions{display:flex;align-items:center;gap:10px;pointer-events:auto}.pill,.language{background:rgba(255,255,255,.92);border:1px solid #e8e9e6;border-radius:24px;box-shadow:0 2px 12px #1b2e3906}.pill{padding:11px 18px;font-size:14.3px;font-weight:600}.language select{appearance:none;background:none;border:0;color:var(--ink);font-size:13.2px;font-weight:650;padding:12px 14px;cursor:pointer}.map-controls{position:absolute;right:24px;bottom:48px;display:flex;flex-direction:column;padding:6px;background:#fffffff0;border:1px solid #e8e9e6;border-radius:20px;box-shadow:0 8px 36px #27373d09}.map-controls button{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;font-size:31.9px;font-weight:350}.map-controls button:hover{background:#f0f2ee}.map-controls span{height:1px;background:#e8e9e6;margin:5px 10px}.map-controls svg{width:23px;height:23px}.route-card{position:absolute;bottom:24px;left:24px;width:350px;max-height:calc(100dvh - 136px);overflow-y:auto;background:#fff;border:1px solid #e9eae6;border-radius:27px;box-shadow:0 12px 60px #223f4810;padding:23px}.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.card-heading h1{font-size:26.4px;font-weight:720;letter-spacing:-.8px;margin:0}.card-heading>div{display:flex;gap:4px}.icon-button{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:27.5px;line-height:1}.icon-button:hover{background:#f0f2ee}.icon-button svg{width:21px;height:21px}.endpoint-box{position:relative;background:#f5f6f4;border-radius:17px;padding:4px 43px 4px 0}.endpoint{display:flex;align-items:center;gap:13px;min-height:54px;padding:9px 15px;width:100%;text-align:left;font-size:17.6px;line-height:1.35}.endpoint>span:last-child{min-width:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placeholder{color:#929ba1}.endpoint-dot{width:16px;height:16px;border:1.8px solid var(--ink);border-radius:50%;flex:none}.destination-dot{border-color:var(--red);background:var(--red);width:15px;height:15px;box-shadow:inset 0 0 0 4px #f5f6f4}.field-divider{height:1px;background:#e1e4e0;margin-left:43px}.swap{position:absolute;right:7px;top:36px;width:35px;height:43px;font-size:30.8px;line-height:1;border-radius:10px}.swap:hover{background:#e8ebe5}.preference{display:flex;gap:3px;background:#f3f5f1;border-radius:12px;padding:4px;margin-top:16px}.preference button{flex:1;font-size:12.1px;min-height:32px;font-weight:550;border-radius:9px;padding:6px 7px;white-space:nowrap}.preference .active{background:#fff;box-shadow:0 1px 5px #1b2e3910}.suggestion{margin-top:12px}.suggestion:empty{margin:0}.suggestion button{display:flex;align-items:center;gap:8px;text-align:left;font-size:13.2px;color:#426275;min-height:30px}.status{font-size:12.1px;line-height:1.5;margin:8px 0 0}.status:empty{display:none}.muted{color:#89929a}.card-footer{border-top:1px solid #f0f1ed;display:flex;align-items:center;gap:6px;margin-top:18px;padding-top:13px;font-size:11px;color:#89929a}.card-footer button{margin-left:auto;font-size:11px;text-decoration:underline;text-underline-offset:3px}.offline-dot{width:5px;height:5px;border-radius:50%;background:#67a174;flex:none}.map-hint{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);font-size:11px;color:#8d9699;pointer-events:none;white-space:nowrap}.mobile-handle{display:none}.loading{position:absolute;top:46%;left:50%;transform:translate(-50%,-50%);background:#fff;padding:18px 28px;border-radius:18px;color:var(--muted);font-size:16.5px}.line-panel{position:absolute;top:98px;right:24px;width:270px;padding:19px;background:#fff;border:1px solid #e8e9e6;border-radius:23px;box-shadow:0 12px 60px #223f4810}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.panel-title h2{font-size:18.7px;margin:0}.line-panel #line-list{display:flex;flex-wrap:wrap;gap:9px}.line-chip{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:24px;padding:0 6px;border-radius:7px;background:var(--line);color:white;font-size:11px;font-weight:700;flex:none;text-shadow:0 1px 3px #0003}.line-chip.small{min-width:21px;height:20px;font-size:9.9px;padding:0 4px;border-radius:5px}.line-panel .line-chip{min-width:35px;height:31px;font-size:13.2px}.line-panel .line-chip:not(.active){opacity:.35}.text-button{font-size:13.2px;color:#426275;margin-top:16px;padding:5px 0}.station-card{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);width:min(390px,calc(100vw - 48px));padding:20px;background:#fff;border:1px solid #e8e9e6;border-radius:23px;box-shadow:0 8px 40px #223f4814}.station-title{display:flex;align-items:center;gap:10px}.station-title h2{font-size:20.9px;margin:0;letter-spacing:-.4px}.station-title .icon-button:first-child{margin-left:auto}.station-lines{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.station-actions{display:flex;gap:8px;margin-top:17px}.station-actions button{flex:1;padding:12px;border-radius:12px;background:#edf1ed;font-size:14.3px;font-weight:600}.station-actions button:first-child{background:var(--ink);color:#fff}.station-zones{font-size:13.2px;color:var(--muted);margin-top:12px}.favorite-active{color:#ce9147}#journey{border-top:1px solid #eceee8;padding-top:17px;margin-top:17px}.journey-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.journey-head strong{font-size:33px;font-weight:720;letter-spacing:-1px}.journey-meta{font-size:13.2px;color:#859198;line-height:1.65;text-align:right}.route-line-badges{display:flex;gap:6px;align-items:center;margin:14px 0 8px}.route-line-badges .arrow{font-size:13.2px;color:#96a0a5}.route-actions{display:flex;gap:8px;margin-top:14px}.route-actions button{border-radius:12px;background:#f1f4ef;min-height:36px;flex:1;font-size:13.2px;font-weight:550}.journey-note{font-size:11px;line-height:1.6;color:#909b9d;margin:12px 0 0}.steps{padding:0;margin:18px 0 0;list-style:none}.step{display:grid;grid-template-columns:28px 1fr;column-gap:10px;position:relative;padding-bottom:17px}.step:last-child{padding-bottom:0}.step .line-chip{position:relative;z-index:1}.step:before{content:"";position:absolute;top:24px;left:12px;width:3px;bottom:0;background:var(--line,#dfe5df)}.step:last-child:before{display:none}.step strong{font-size:14.3px;line-height:1.5;display:block}.step small{font-size:12.1px;color:#8a969b;line-height:1.5}.step button{text-align:left;padding:0}.step.transfer:before{background:#e1e5e1}.step.transfer .step-icon{font-size:19.8px;color:#89989c;text-align:center}.zone-pill{display:inline-block;background:#edf2eb;color:#71846f;font-size:11px;padding:3px 6px;border-radius:5px;margin-left:3px}dialog{border:1px solid #e7eae5;border-radius:26px;padding:0;width:min(480px,calc(100vw - 32px));max-height:min(700px,calc(100dvh - 50px));box-shadow:0 30px 120px #16333a20;color:var(--ink);background:#fff}dialog::backdrop{background:#1b2e3926;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:22px 23px 16px}.dialog-header h2{font-size:23.1px;margin:0;letter-spacing:-.5px}.picker-list{max-height:calc(100dvh - 240px);height:440px;overflow-y:auto;padding:0 10px 10px}.picker-row{display:flex;align-items:center;border-radius:13px;gap:8px}.picker-row:hover{background:#f5f7f2}.picker-row>button:first-child{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:12px;text-align:left;min-height:58px}.picker-row strong{font-size:15.4px;font-weight:580;line-height:1.45}.picker-row small{display:block;color:#8b979c;font-size:12.1px;margin-top:3px}.picker-row .badges{display:flex;gap:3px;flex-wrap:wrap;max-width:100px;flex:none}.picker-row .icon-button{margin-right:9px;font-size:25.3px}.list-label{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:1px;color:#9aa4a7;padding:17px 12px 7px}.search-box{border-top:1px solid #eceee8;display:flex;align-items:center;gap:12px;padding:18px 23px}.search-box svg{color:#8a969c;width:20px;height:20px}.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:16.5px;color:var(--ink)}.search-box kbd{font-size:11px;color:#9aa3a7;background:#f3f5f1;border:1px solid #e5e9e1;padding:3px 5px;border-radius:4px}.empty{padding:30px;text-align:center;color:#8b979c;font-size:15.4px;line-height:1.7}.about-content{padding:0 22px 25px;line-height:1.7;font-size:14.3px}.about-content a{color:#34647a}.about-content .muted{font-size:12.1px}.history-row{min-height:70px}.history-row button:first-child{display:block}.toast{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);z-index:20;max-width:calc(100vw - 40px);padding:12px 20px;border-radius:13px;background:var(--ink);color:#fff;box-shadow:0 10px 30px #18313a20;font-size:13.2px;line-height:1.5}.badge-group{display:inline-flex;gap:4px;vertical-align:middle;margin-right:7px}[hidden]{display:none!important}
@media(max-width:760px){.topbar{top:max(18px,env(safe-area-inset-top));left:20px;right:20px}.brand-icon{width:42px;height:49px;border-radius:14px}.brand-icon svg{width:27px;height:31px}.brand{gap:10px}.brand strong{font-size:31.9px;letter-spacing:-1.4px}.brand small{font-size:7.7px;letter-spacing:2px;margin-top:4px}.top-actions{gap:6px}.pill{font-size:12.1px;padding:10px 12px}.language select{padding:11px 10px;font-size:11px}.route-card{bottom:0;left:0;width:100%;border-radius:28px 28px 0 0;padding:12px 23px max(16px,env(safe-area-inset-bottom));max-height:58dvh;box-shadow:0 -8px 40px #223f4807;border-width:1px 0 0}.mobile-handle{display:block;width:35px;height:4px;border-radius:4px;background:#dce1da;margin:0 auto 16px}.card-heading{margin-bottom:16px}.card-heading h1{font-size:27.5px}.endpoint-box{padding-right:43px}.endpoint{min-height:50px}.preference{margin-top:12px}.preference button{font-size:11px;min-height:28px}.card-footer{padding-top:10px;margin-top:13px;font-size:9.9px}.card-footer button{font-size:9.9px}.map-controls{right:17px;bottom:calc(var(--card-height,285px) + 20px);border-radius:18px;padding:4px}.map-controls button{width:39px;height:39px;font-size:29.7px}.map-controls svg{width:20px;height:20px}.map-controls span{margin:3px 9px}.map-hint{display:none}.station-card{bottom:calc(var(--card-height,285px) + 15px);left:16px;right:16px;transform:none;width:auto;padding:16px;border-radius:20px}.station-title h2{font-size:18.7px}.station-actions{margin-top:13px}.line-panel{top:85px;right:17px;width:245px}.line-panel .line-chip{height:28px;min-width:31px;font-size:12.1px}dialog{position:fixed;inset:auto 0 0;margin:0;border-radius:27px 27px 0 0;width:100%;max-width:none;max-height:85dvh;min-height:60dvh}.picker-list{height:calc(75dvh - 150px);max-height:none}.dialog-header{padding:24px 22px 17px}.search-box{padding-bottom:max(18px,env(safe-area-inset-bottom))}.search-box kbd{display:none}.journey-head strong{font-size:30.8px}.toast{bottom:calc(var(--card-height,285px) + 16px);width:max-content}.loading{top:30%;white-space:nowrap}.status{margin-top:5px}.suggestion{margin-top:8px}.route-card:has(#journey:not([hidden])) .suggestion{display:none}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s,transform .15s}dialog[open]{animation:appear .18s ease-out}.station-card:not([hidden]){animation:appear .16s ease-out}@keyframes appear{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}}
/* Shared night palette with the iPhone application. */
:root{color-scheme:dark;--ink:#e8effa;--muted:#98a5b5;--paper:#0b1017;--red:#ff3546;background:var(--paper);color:var(--ink)}
.pill,.language,.map-controls,.route-card,.station-card,.line-panel,dialog,.loading{background:#171f2a;border-color:#ffffff12;color:var(--ink)}
.endpoint-box,.search-box input,.preference{background:#222c3a;color:var(--ink)}
.preference .active{background:#49576b;color:var(--ink)}
.field-divider,.map-controls span{background:#ffffff16}.card-footer,#journey{border-color:#ffffff12}.placeholder,.muted,.card-footer,.status,.journey-meta,.list-label,.picker-row small,.step small{color:#98a5b5}
.icon-button:hover,.map-controls button:hover,.swap:hover,.picker-row:hover{background:#ffffff0a}.station-actions button{background:#273448;color:var(--ink)}.station-actions button:first-child{background:#66adff;color:#09111b}
.suggestion button,.text-button,.ride-direction{color:#66adff}.destination-dot{box-shadow:inset 0 0 0 4px #222c3a}.search-box{background:#171f2a;border-color:#ffffff12}.search-box input{border:1px solid #ffffff12}.picker-row{border-color:#ffffff0b}.zone-pill{background:#273448;color:#e8effa}.brand-icon{background:none;width:52px;height:52px;border-radius:12px;overflow:hidden}.brand-icon img{width:100%;height:100%;object-fit:cover}.badge-group{display:inline-flex;vertical-align:middle;align-items:center;gap:0;border-radius:6px;overflow:hidden;flex:none;margin-right:7px}.badge-group .line-chip{border-radius:0;margin:0}.zone-cell{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 5px;font-size:11px;font-weight:700;color:#fff}.badge-group .line-chip.small~.zone-cell{height:20px;min-width:20px;font-size:9.9px}.joined-transfer{display:inline-flex;gap:0;align-items:center;border-radius:6px;overflow:hidden;flex:none;white-space:nowrap}.joined-transfer>span{display:inline-grid;place-items:center;width:28px;height:24px;font-size:12.1px;font-weight:700}.joined-transfer .transfer-arrow{width:24px;font-size:18.7px;color:#fff;font-weight:500}.route-line-badges{gap:0}.route-line-badges>.arrow{padding:0 5px}.station-card{max-height:65dvh;overflow:auto}.nearby-sights{margin-top:18px;padding-top:14px;border-top:1px solid #ffffff12}.nearby-sights h3{font-size:12.1px;color:#98a5b5;margin:0 0 12px;font-weight:600}.sight-row{display:flex;gap:12px;align-items:center;margin-top:10px}.sight-symbol{display:grid;place-items:center;width:36px;height:36px;background:#273448;border-radius:10px;color:#66adff;font-size:25.3px;flex:none}.sight-row strong{display:block;font-size:14.3px}.sight-row small{display:block;color:#98a5b5;font-size:12.1px;margin-top:4px}.airport-hint{font-size:13.2px;line-height:1.5;color:#98a5b5;margin:4px 18px 10px}.mobile-handle{background:#526074}dialog::backdrop{background:#050a126e}.step{border-color:#ffffff12}.journey-note,.map-hint{color:#98a5b5}.route-actions button{background:#273448;color:var(--ink)}
@media(max-width:760px){.station-card{max-height:40dvh}.brand-icon{width:43px;height:43px}.route-card{background:#171f2af7}.map-controls{background:#171f2af2}}
@media(max-width:760px){.route-card:has(#journey:not([hidden])) .journey-note,.route-card:has(#journey:not([hidden])) .card-footer{display:none}.route-card:has(#journey:not([hidden])) .card-heading{margin-bottom:10px}.route-card:has(#journey:not([hidden])) #journey{margin-top:12px;padding-top:12px}.route-card:has(#journey:not([hidden])) .mobile-handle{margin-bottom:10px}.route-card:has(#journey:not([hidden])) .route-actions{margin-top:10px}.route-card:has(#journey:not([hidden])) .card-heading h1{font-size:25.3px}}
.sight-symbol svg{width:24px;height:24px}
.quick-destinations{display:flex;gap:10px;overflow-x:auto;padding:4px 18px 12px;scroll-snap-type:x proximity;scrollbar-width:thin;overscroll-behavior-x:contain}.quick-destination{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;min-width:106px;height:104px;padding:16px;border-radius:16px;background:#222c3a;scroll-snap-align:start;text-align:left;flex:none}.quick-destination:hover{background:#2a394d}.quick-destination strong{font-size:14.3px;white-space:nowrap}.quick-symbol{font-size:25.3px;color:#66adff}
@media(min-width:761px){dialog{width:min(640px,calc(100vw - 48px))}}

/* Selected station title stays on one row beside its actions. */
.station-title h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
