:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172e52;background:white;--green:#24614d;--muted:#68766e;--line:#e7ece8;--dock:calc(64px + env(safe-area-inset-bottom));--head:60px}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:transparent;touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #78a8e0;outline-offset:3px}button{min-height:44px}#app{height:100dvh;height:100svh;display:flex;flex-direction:column}header{height:calc(var(--head) + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0;display:flex;align-items:center;gap:9px;background:white;z-index:5;flex-shrink:0;border-bottom:1px solid var(--line)}header img{width:92px;height:42px;object-fit:contain}.edition{font-size:9px;letter-spacing:1px;color:var(--muted);align-self:center}.search-button{margin-left:auto;background:#f1f5f2;border-radius:22px;padding:0 14px;font-size:22px}.search-button span{font-size:12px;vertical-align:middle}#live{position:relative;flex:1;min-height:0;overflow:hidden}#map-world{position:absolute;inset:0;background:#f1f5f2}canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}#vehicles{cursor:grab}.modes{position:absolute;top:12px;left:12px;display:flex;gap:3px;padding:4px;background:white;border-radius:28px;box-shadow:0 2px 12px #19362a0c}.modes button{padding:0 13px;font-size:12px;border-radius:24px;white-space:nowrap}.modes button[aria-pressed=true]{background:var(--green);color:white;font-weight:650}#focus-chip{position:absolute;top:72px;left:12px;background:white;border:1px solid var(--line);border-radius:14px;max-width:calc(100% - 82px);padding-left:12px;align-items:center;font-size:13px;box-shadow:0 2px 12px #19362a08}#focus-chip:not([hidden]){display:flex}#focus-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#focus-chip button{width:42px;font-size:22px}.controls{position:absolute;right:12px;top:73px;display:flex;flex-direction:column;gap:8px}.controls button{width:44px;height:44px;border-radius:50%;background:white;font-size:25px;box-shadow:0 2px 8px #19362a12}#map-note{position:absolute;left:15px;bottom:120px;max-width:65%;font-size:11px;color:#52655b;pointer-events:none;background:#ffffffcf;padding:5px 7px;border-radius:8px}.legend{position:absolute;bottom:99px;left:18px;display:flex;gap:12px;font-size:10px;color:#65736d;pointer-events:none}.legend i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px}.green{background:#32996a}.amber{background:#d48a2f}.grey{background:#7b8392}#shelf{position:absolute;bottom:0;left:0;right:0;background:white;border-radius:26px 26px 0 0;box-shadow:0 -4px 18px #183e2709;display:flex;flex-direction:column;height:88px;z-index:3;overflow:hidden;transition:height .16s ease}#shelf[data-size=half]{height:46%}#shelf[data-size=full]{height:85%}#shelf-handle{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:23px 20px 14px;flex-shrink:0;min-height:88px;width:100%;touch-action:none}#shelf-handle i{position:absolute;top:10px;left:calc(50% - 18px);width:36px;height:4px;border-radius:4px;background:#cbd7cf}#shelf-heading{font-size:17px;font-weight:700;max-width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#shelf-subtitle{font-size:12px;color:var(--muted);margin-top:4px}#shelf-handle b{position:absolute;right:22px;top:32px;font-size:20px}#shelf-content{overflow:auto;overscroll-behavior:contain;padding:0 20px 22px;flex:1;-webkit-overflow-scrolling:touch}nav{height:var(--dock);padding:4px 8px env(safe-area-inset-bottom);display:flex;background:white;border-top:1px solid var(--line);flex-shrink:0;z-index:5}nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:17px;font-size:11px;color:var(--muted);gap:2px}nav button span{font-size:22px;line-height:25px}nav button[aria-current=page]{background:#edf3ec;color:var(--green);font-weight:650}.section-label{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin:20px 0 8px}.empty{padding:16px 0;color:var(--muted);font-size:14px;line-height:1.5}.departure{display:flex;align-items:center;gap:12px;padding:15px 0;width:100%;text-align:left;border-bottom:1px solid var(--line)}.line-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-size:19px;border:1px solid var(--line);flex-shrink:0}.departure .text{flex:1;min-width:0}.departure strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.departure small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.departure time{font-size:18px;font-weight:750;text-align:right;min-width:50px}.departure time small{font-size:10px;font-weight:500}.primary,.secondary{border-radius:14px;width:100%;padding:12px 15px;font-size:14px;margin-top:12px;text-align:center}.primary{background:var(--green);color:white}.secondary{background:#f0f4f1;color:var(--green)}.inline-actions{display:flex;gap:8px}.inline-actions button{flex:1}.back{font-size:13px;color:var(--muted);padding:0}.service-title{font-size:23px;line-height:1.2;margin:10px 0}.service-meta{font-size:13px;color:var(--muted);line-height:1.5}.position{background:#f0f5f1;padding:12px;border-radius:14px;font-size:13px;margin:16px 0}.timeline{margin:14px 0}.stop{display:flex;position:relative;padding:12px 0 12px 23px;gap:10px;font-size:13px}.stop:before{content:"";position:absolute;left:5px;top:0;bottom:0;width:2px;background:#d6e2da}.stop:after{content:"";position:absolute;left:1px;top:17px;width:10px;height:10px;background:white;border:2px solid var(--green);border-radius:50%}.stop span{flex:1}.stop time{font-variant-numeric:tabular-nums}.stop small{display:block;color:var(--muted);font-size:10px}.filters{display:flex;gap:8px;margin:8px 0 14px}.filters select{min-width:0;flex:1;padding:10px;border:1px solid var(--line);border-radius:12px;background:white;font-size:12px}dialog{border:0;border-radius:24px;padding:20px;width:min(460px,calc(100% - 24px));max-height:80svh;color:inherit;box-shadow:0 15px 70px #102d3328}dialog::backdrop{background:#172e5240}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:20px}.dialog-heading button{width:44px;font-size:26px}input,select{min-height:44px;color:inherit}#station-query{width:100%;padding:13px;border:1px solid var(--line);border-radius:13px;background:#f5f7f5;font-size:16px}.search-result{display:flex;justify-content:space-between;text-align:left;width:100%;padding:14px 2px;border-bottom:1px solid var(--line);gap:10px}.search-result strong{font-size:14px}.search-result small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.search-result span:last-child{color:var(--muted);font-size:11px}#utility{flex:1;overflow:auto;padding:24px 20px 32px;overscroll-behavior:contain}#utility h1{font-size:28px;margin:0 0 8px}.field{display:block;margin:18px 0 6px;font-size:12px;color:var(--muted)}.field-input{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;text-align:left;background:white}.times{display:flex;gap:12px}.times label{flex:1}.times input{width:100%;font-size:16px;border:1px solid var(--line);border-radius:12px;padding:10px}.claim-row{padding:15px 0;border-bottom:1px solid var(--line);font-size:14px}.claim-row strong{display:flex;justify-content:space-between}.claim-row small{display:block;color:var(--muted);margin-top:6px}#toast{position:fixed;bottom:calc(var(--dock) + 14px);left:20px;right:20px;z-index:20;background:#172e52;color:white;padding:13px 18px;border-radius:15px;font-size:13px;pointer-events:none}a{color:var(--green)}[hidden]{display:none!important}.ticket-preview{max-width:100%;max-height:300px;border-radius:16px;margin-top:15px}#shelf-content>p,#utility>p{font-size:14px;color:var(--muted);line-height:1.5}@media(min-width:800px){#shelf{left:auto;width:350px;right:16px;bottom:16px;border-radius:24px;height:160px}#shelf[data-size=half]{height:65%}#shelf[data-size=full]{height:calc(100% - 32px)}#map-note{bottom:42px}.legend{bottom:20px}#utility{width:600px;align-self:center}.search-button{min-width:190px}.modes{top:18px;left:18px}.modes button{padding:0 20px}nav{justify-content:center}nav button{max-width:130px}.controls{right:382px}#focus-chip{top:82px;left:18px}}@media(prefers-reduced-motion:reduce){#shelf{transition:none}}

#connection-status{margin-left:auto;font-size:10px;max-width:130px;padding:7px 9px;border-radius:14px;background:#edf4ee;color:#24614d;white-space:nowrap}#connection-status[data-state=offline],#connection-status[data-state=stale]{background:#fff1dc;color:#86551a}.search-button{margin-left:0}.search-button span{display:none}.saved-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line)}.saved-row>.departure{flex:1;border:0}.remove-saved{width:44px;flex-shrink:0;font-size:22px;color:var(--muted)}#shelf-content>[data-save]{width:auto;min-height:38px;margin:0 0 12px;padding:7px 12px}.ticket-fields input,.ticket-fields select,.ticket-fields textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px;background:white;font:inherit}.ticket-fields textarea{min-height:100px}.ticket-fields .times input{min-width:0}.status-detail{font-size:12px;color:var(--muted)}.saved-row small{white-space:normal}.claim-row button{margin:6px 0 0;min-height:36px;padding:6px 12px;width:auto;font-size:12px}@media(min-width:800px){.search-button span{display:inline}.search-button{min-width:170px}#connection-status{max-width:210px;font-size:12px}}
.conditions-check{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.5;margin:15px 0;color:var(--muted)}.ticket-fields .conditions-check input{width:20px;min-height:20px;flex-shrink:0;margin:0}.ticket-fields .times label{min-width:0}.ticket-fields select{font-size:13px}

.claim-day{font-size:16px;margin:22px 0 8px}.claim-delayed strong>span:last-child{color:#9b6000}.claim-cancelled strong>span:last-child{color:#bf2935}

.claim-day{display:flex;align-items:center;gap:10px;margin:28px 0 0;padding:12px 14px;background:#edf4f0;border:1px solid #d4e3db;border-radius:12px;color:#204e3c;font-size:15px;font-weight:750;line-height:1.3;letter-spacing:.01em}.claim-day::before{content:"";width:4px;height:18px;flex:none;background:#28644d;border-radius:3px}.claim-day+.claim-row{margin-top:8px}.claim-row+.claim-day{margin-top:30px}

.field-input:disabled,.times input:disabled{opacity:.45;cursor:default;background:#f2f4f3}

.loading-spinner{display:inline-block;flex:none;width:24px;height:24px;border:3px solid #dce8e1;border-top-color:#24614d;border-radius:50%;animation:niart-spin .8s linear infinite}.loading-spinner.small{width:16px;height:16px;border-width:2px;vertical-align:middle}.primary .loading-spinner{border-color:#ffffff55;border-top-color:white;margin-right:6px}.history-loading{display:flex;gap:9px;align-items:center}.destination-loading{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:rgba(255,255,255,.78)}.loading-card{display:flex;align-items:center;gap:12px;padding:22px 26px;background:white;border:1px solid #dce8e1;border-radius:18px;box-shadow:0 8px 40px #193a281a;color:#254336;font-weight:600}@keyframes niart-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.loading-spinner{animation-duration:2s}}

html,body,#utility,#sheet,dialog{touch-action:manipulation}

nav{grid-template-columns:repeat(5,1fr)}.route-leg{border-left:4px solid var(--route-colour);padding:12px 14px;margin:14px 0;background:#f7f9f8;border-radius:0 12px 12px 0}.route-leg strong{display:block;margin-top:6px}.route-leg strong span{display:block;font-size:13px;font-weight:400;margin-top:4px}.route-leg p{font-size:13px;margin:9px 0}.route-leg details{font-size:12px;color:#68766e}

/* Utility pages scroll vertically; shrink native date/time inputs inside flex rows. */
html,body,#app{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
#utility{min-width:0;min-height:0;max-width:100%;overflow-x:hidden;overflow-y:auto;touch-action:pan-y pinch-zoom;overscroll-behavior-x:none}
.times{width:100%;min-width:0}.times>label{flex:1 1 0;min-width:0;max-width:100%}
.times input,.times select,.field-input,.ticket-fields textarea{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
input[type=date],input[type=time]{appearance:none;-webkit-appearance:none;min-inline-size:0}
input::-webkit-date-and-time-value{text-align:left;min-width:0}
#utility p,#utility small,.route-leg,.claim-row{overflow-wrap:anywhere}
#admin-panel{width:min(600px,calc(100% - 24px));overflow-x:hidden}.admin-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-card{padding:14px;background:#f0f5f2;border-radius:14px;min-width:0}.admin-card span{font-size:11px;color:#68766e;display:block}.admin-card strong{display:block;font-size:21px;margin-top:8px}.admin-feed{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e7ece8;font-size:13px}.admin-error{color:#b52d36;font-size:13px}#admin-panel h3{font-size:15px;margin:24px 0 6px}

#utility input[type=file]{display:block;width:100%;min-width:0;max-width:100%}

#app{height:100vh;height:100dvh}header{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}#utility{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}nav{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.inline-actions{flex-wrap:wrap}.inline-actions button{min-width:0;flex:1 1 110px}.legal-links{display:flex;gap:24px;margin:32px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:13px}.legal-links a{min-height:44px;display:flex;align-items:center}dialog{overflow-x:hidden}.modes{max-width:calc(100% - 24px)}.controls button{flex-shrink:0}@media(max-width:359px){header{gap:5px;padding-left:10px;padding-right:10px}header img{width:80px}#connection-status{font-size:9px;padding:7px;max-width:125px}.modes button{padding:0 10px}#utility{padding:20px 16px}.times{gap:8px}}@media(max-height:500px) and (max-width:799px){:root{--head:48px;--dock:calc(54px + env(safe-area-inset-bottom))}.controls{top:12px;gap:4px}.modes{top:8px;max-width:calc(100% - 74px)}#focus-chip{top:64px}#shelf[data-size=half]{height:55%}#map-note{max-width:55%}.legend{gap:8px}#connection-status{padding:5px 8px}header img{height:38px}}

/* A visible, non-blocking progress card for slow historical queries. */
.history-progress{margin:18px 0 24px;padding:26px 20px;text-align:center;border:1px solid #bdd7cc;border-radius:22px;background:linear-gradient(145deg,#f0f8f4,#fff);box-shadow:0 8px 24px #193a2809;overflow:hidden}.history-progress h2{margin:16px 0 10px;font-size:23px;color:#173d30}.history-progress p{min-height:3em;max-width:35ch;margin:0 auto 14px;line-height:1.5;color:#385748}.history-progress small{display:block;margin:12px auto 0;max-width:36ch;color:#52685e;line-height:1.5}.history-progress-meta{display:flex;justify-content:center;align-items:center;gap:9px;font-size:13px;color:#496557;font-variant-numeric:tabular-nums}.history-track{height:58px;max-width:230px;position:relative;margin:auto;border-bottom:4px solid #bdd7cc}.history-track span{position:absolute;bottom:5px;left:0;color:#24614d;font-size:48px;line-height:1;animation:history-train 3s ease-in-out infinite alternate}.history-track i{position:absolute;bottom:-7px;width:10px;height:10px;border:2px solid #24614d;border-radius:50%;background:#fff}.history-track i:nth-child(2){left:0}.history-track i:nth-child(3){left:48%}.history-track i:nth-child(4){right:0}@keyframes history-train{to{transform:translateX(175px)}}@media(prefers-reduced-motion:reduce){.history-track span{animation:none;left:40%}.history-progress .loading-spinner{animation:none}}

.timeline .stop.current-stop{background:#e8f5ed;border-radius:10px;box-shadow:inset 4px 0 #24614d;padding-left:14px}.timeline .stop.current-stop>span{font-weight:700}.timeline .stop-state{display:block;color:#24614d;font-size:12px;font-weight:600;margin-top:4px}

/* Journey progress: fill reached stops, darken only confirmed connecting segments. */
.timeline .stop{--journey-rail:#d6e2da}
.timeline .stop:before{background:var(--journey-rail)}
.timeline .stop:first-child:before{top:22px}
.timeline .stop:last-child:before{bottom:calc(100% - 22px)}
.timeline .stop.completed-stop:after{background:#24614d}
.timeline .stop.completed-link:before{background:#24614d}
.timeline .stop.current-stop{padding-left:23px;box-shadow:none}
.timeline .stop.current-stop.completed-stop:before{background:linear-gradient(to bottom,#24614d 22px,#d6e2da 22px)}
.timeline .stop.current-stop:first-child:before{background:#d6e2da}
.timeline .stop.current-stop>span{font-weight:750}
.service-meta>time{font-weight:650;font-variant-numeric:tabular-nums}

.carriage-card{margin:16px 0;padding:14px;border:1px solid #dce7e1;border-radius:16px;max-width:100%;box-sizing:border-box;color:#24614d;background:#f5f9f6}.carriage-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.carriage-heading strong{font-size:16px}.carriage-card small{color:#61766c;font-size:12px}.carriage-strip{display:flex;gap:0;max-width:100%;overflow:visible;margin:8px 0 6px;min-width:0}.carriage-strip svg{display:block;width:32px;max-width:32px;min-width:0;height:auto;aspect-ratio:44/30;flex:0 1 32px}.carriage-stale{color:#75837c;background:#f7f8f7}

/* Four destinations; tickets belong to Claims. */
nav{grid-template-columns:repeat(4,minmax(0,1fr))}#utility{min-width:0}.commute-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.commute-section-title h2{margin:0;font-size:17px}.commute-section-title>span{font-size:12px;color:var(--muted);text-align:right}.text-button{color:var(--green);font-size:13px;padding:8px 4px;flex-shrink:0}.commute-setup .primary{margin-top:24px}.commute-days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.commute-days button{border:1px solid var(--line);border-radius:10px;font-size:12px;min-width:0;padding:2px}.commute-days button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.commute-directions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.commute-directions button{padding:12px;border:1px solid var(--line);border-radius:14px;text-align:left;font-weight:650}.commute-directions button[aria-pressed=true]{border-color:var(--green);background:#eef5f0}.commute-directions small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px}.commute-plan,.commute-active,.commute-custom,.commute-reminders,.commute-claims{padding:18px;border:1px solid var(--line);border-radius:20px;margin:16px 0;max-width:100%;min-width:0}.commute-plan .primary,.commute-active .primary{width:100%;margin:14px 0 6px}.commute-plan>.secondary,.commute-active>.secondary{width:100%}.commute-route-leg{display:flex;align-items:flex-start;gap:10px;margin:14px 0;font-size:14px;min-width:0}.commute-route-leg>div{min-width:0;overflow-wrap:anywhere}.commute-leg-symbol{color:var(--route-colour);border-left:3px solid var(--route-colour);padding:4px 0 4px 8px}.commute-route-leg.walking .commute-leg-symbol{border-left-style:dashed}.commute-route-leg small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:4px}.commute-route-option{border-top:1px solid var(--line);padding:16px 0}.commute-route-option:first-of-type{margin-top:16px}.commute-route-option>.secondary{width:100%;margin-top:6px}.commute-reminders h2,.commute-custom h2{font-size:17px;margin:0 0 12px}.commute-reminders>.secondary{width:100%;margin-top:12px}.commute-toggle{display:flex;gap:10px;align-items:center;font-size:14px;line-height:1.4}.commute-toggle input{width:22px;min-width:22px;accent-color:var(--green)}.commute-active{border-color:#b4cdbd;background:#f6faf7}.commute-active h2{font-size:24px;line-height:1.2;margin:14px 0}.commute-active p{line-height:1.5;font-size:14px}.commute-kicker{text-transform:uppercase;letter-spacing:.06em;font-size:11px;color:var(--green)}.commute-service{width:100%;display:flex;text-align:left;align-items:center;justify-content:space-between;gap:12px;padding:14px 10px;margin:8px 0;background:white;border:1px solid var(--line);border-radius:12px;min-width:0}.commute-service.chosen{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.commute-service>span:first-child{min-width:0}.commute-service strong{font-size:14px;overflow-wrap:anywhere}.commute-service small{display:block;margin-top:5px;font-size:12px;color:var(--muted);line-height:1.4}.commute-service.delayed strong,.commute-claim.delayed b{color:#985d0b}.commute-service.cancelled strong,.commute-claim.cancelled b{color:#b72c36}.commute-next{padding:16px;background:white;border-radius:14px}.commute-next span{display:block;color:var(--muted);font-size:13px;margin-top:8px}.commute-warning{border-left:3px solid #d48a2f;background:#fff8eb;padding:12px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.commute-gps{margin-top:16px;border-top:1px solid var(--line);padding-top:10px}.commute-gps button{color:var(--green);font-size:13px}.commute-gps small{display:block;color:var(--muted);font-size:12px;line-height:1.4}.commute-claim{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.commute-claim span{min-width:0}.commute-claim small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.commute-claim b{white-space:nowrap;font-size:12px}.commute-notice{position:fixed;z-index:15;bottom:calc(var(--dock) + 10px);left:12px;right:12px;max-width:560px;margin:auto;display:flex;background:#172e52;color:white;box-shadow:0 4px 20px #172e5230;border-radius:16px;padding:4px 6px}.commute-notice>button:first-child{flex:1;text-align:left;padding:10px 12px;color:white;min-width:0}.commute-notice strong{display:block;font-size:12px}.commute-notice span{display:block;font-size:13px;line-height:1.4;margin-top:4px}.commute-notice>button:last-child{color:white;min-width:44px;font-size:24px}.claims-ticket{border-top:1px solid var(--line);margin-top:26px;padding-top:16px}.claims-ticket h2{font-size:18px}.claims-ticket .primary{width:100%}.claims-saved{margin:20px 0;color:var(--muted);font-size:13px}.claims-saved .departure{width:100%}.claims-saved small{display:block}.commute-confirm{border:1px solid #c9d7cd;background:white;padding:14px;border-radius:12px;margin:12px 0}.commute-confirm button{margin-right:12px}#utility .legal-links{margin-top:24px}
@media(max-width:360px){.commute-plan,.commute-active,.commute-custom,.commute-reminders,.commute-claims{padding:14px}.commute-section-title{gap:6px}.commute-section-title>span{max-width:100px}.commute-days{gap:2px}.commute-days button{font-size:11px}.commute-service{padding:12px 8px}}

.commute-settings{margin-top:16px}.commute-settings>summary{padding:14px 0;font-size:14px;color:var(--green);cursor:pointer}.commute-eta{font-variant-numeric:tabular-nums}.commute-days button{min-height:44px}nav button[data-journey=true]{color:var(--green);font-weight:650}

/* One journey destination, with saved commutes alongside one-off plans. */
nav{grid-template-columns:repeat(3,1fr)}
.guidance-sections{display:flex;gap:4px;background:#eff3f0;padding:4px;border-radius:16px;margin:0 0 20px}.guidance-sections button{flex:1;border-radius:12px;padding:10px 6px}.guidance-sections [aria-pressed=true]{background:white;color:#24614d;font-weight:650;box-shadow:0 1px 4px #172e5210}
.route-options{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity}.route-options button{flex:1;min-width:145px;max-width:100%;text-align:left;border:1px solid #d7dfd9;border-radius:14px;padding:12px;scroll-snap-align:start}.route-options [aria-pressed=true]{border:2px solid #24614d;background:#edf4ef}.route-options strong,.route-options span{display:block}.route-options strong{font-size:14px}.route-options span{font-size:12px;margin-top:6px;color:#68766e}.route-estimate{font-size:12px;color:#68766e;margin:2px 0 16px}.route-overview{display:block;width:100%;height:230px;border-radius:18px;background:#f1f5f2;margin:16px 0}.route-overview g{cursor:pointer}.route-overview g:focus-visible{outline:2px solid #24614d}

.journey-map{position:relative;height:420px;min-height:300px;border-radius:20px;overflow:hidden;background:#f1f5f2;margin:12px 0;isolation:isolate;contain:layout paint}.journey-map canvas{width:100%;height:100%;display:block;touch-action:none;overscroll-behavior:contain;cursor:grab}.journey-map-tools{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:7px}.journey-map-tools button{width:44px;height:44px;background:#fff;border-radius:50%;box-shadow:0 2px 8px #19362a12;font-size:24px}.journey-map-status{position:absolute;bottom:7px;left:10px;right:10px;font-size:11px;color:#52655b;margin:0;background:#ffffffdd;border-radius:8px;padding:5px 7px;pointer-events:none}.journey-train-panel{position:absolute;bottom:43px;left:8px;right:8px;background:white;border:1px solid #d7e2da;border-radius:16px;padding:12px;box-shadow:0 3px 16px #183e2720;max-height:75%;overflow-y:auto}.journey-train-heading{display:flex;align-items:center;gap:8px;justify-content:space-between}.journey-train-heading strong{font-size:15px}.journey-train-heading button{min-width:44px;font-size:24px}.journey-train-panel>small{font-size:12px;color:#68766e}.journey-train-panel>.secondary{width:100%;margin:6px 0}.journey-stop-list{max-height:140px;overflow-y:auto;overscroll-behavior:contain;margin-top:10px}.journey-services{border-bottom:1px solid #e7ece8;padding:8px 0 14px;margin-bottom:16px}.journey-services summary{font-size:14px;min-height:44px;display:flex;align-items:center;cursor:pointer}.journey-services .departure{width:100%;text-align:left}.journey-services-list{max-height:320px;overflow-y:auto;overscroll-behavior:contain}.journey-services-list .text{min-width:0}.journey-services-list small{display:block;overflow-wrap:anywhere}@media(max-width:359px){.journey-map{height:380px}.journey-train-panel{padding:10px}}@media(min-width:800px){.journey-map{height:480px}}

.location-chip{position:absolute;z-index:2;left:12px;bottom:151px;min-height:36px;padding:6px 10px;border-radius:18px;background:#fff;color:#2479d3;font-size:12px;box-shadow:0 1px 8px #172e5214}.journey-map .location-chip{top:10px;bottom:auto;left:10px}.location-chip[hidden]{display:none}

/* Explicit, optional first-party location contribution controls. */
.location-sharing-setting{margin:16px 0 8px}.location-sharing-setting button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;min-height:44px}.location-sharing-setting small{font-size:12px;font-weight:400;color:#53635d}.location-consent{width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:0;border-radius:22px;padding:22px;color:#19342c;background:#fff;box-sizing:border-box}.location-consent::backdrop{background:#09251c66}.location-consent .dialog-heading h2{font-size:22px;margin:0}.location-consent .dialog-heading button{min-width:44px;min-height:44px}.location-consent p,.location-consent li{font-size:15px;line-height:1.5}.location-consent ul{padding-left:21px}.location-consent li{margin:8px 0}.location-consent a{color:#205c49}.sharing-actions{display:grid;gap:10px;margin:16px 0}.sharing-actions button{min-height:44px;width:100%}.sharing-detail{color:#52665d;font-size:14px!important}.sharing-detail:empty{display:none}
/* Shared service notices, with four equally sized navigation targets. */
nav{grid-template-columns:repeat(4,minmax(0,1fr))}.notice-modes{display:flex;gap:4px;padding:4px;background:#f0f5f1;border-radius:28px;width:fit-content;max-width:100%}.notice-modes button{padding:0 14px;border-radius:24px;font-size:13px;white-space:nowrap}.notice-modes button[aria-pressed=true]{background:var(--green);color:white;font-weight:650}.notice-health{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin:8px 0}.notice-health button{font-size:23px;width:44px}.notice-group{font-size:17px;margin:24px 0 12px}.notice-card{border:1px solid var(--line);border-left:3px solid #d78b25;border-radius:14px;margin:10px 0;overflow:hidden;min-width:0}.notice-card.planned{border-left-color:#4982b9}.notice-card summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px;cursor:pointer;list-style:none}.notice-card summary::-webkit-details-marker{display:none}.notice-card strong{font-size:14px;line-height:1.45;overflow-wrap:anywhere}.notice-card small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.notice-card b{flex-shrink:0}.notice-body{padding:0 15px 15px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.notice-body a{display:block;color:var(--green);margin-top:10px}.notice-stale{color:#936017}.notice-coverage,.notice-source{font-size:12px;line-height:1.5;color:var(--muted);margin-top:20px}.notice-more{width:100%}
/* Service-first notices and predictable drawer affordance. */
.notice-services{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.notice-card strong.notice-service{display:inline-block;padding:5px 9px;border-radius:8px;background:var(--service-colour);color:var(--service-ink);font-size:13px;font-weight:750;line-height:1.35}.notice-summary{display:block;min-width:0}.notice-area{display:block;font-size:13px;font-weight:650;line-height:1.5;color:#344b5c;margin-bottom:6px;overflow-wrap:anywhere}.notice-title{display:block;font-size:14px;font-weight:450;line-height:1.5}.notice-card summary{align-items:flex-start}.notice-card summary>b{margin-top:5px}.notice-card[open] summary>b{transform:rotate(180deg)}.claims-saved{margin:14px 0 20px;padding:12px;border:1px solid var(--line);border-radius:14px}.claims-saved summary{cursor:pointer;min-height:32px;display:flex;align-items:center;font-weight:650;color:var(--green)}#shelf-handle b{font-size:0;width:12px;height:12px;border-top:2px solid currentColor;border-left:2px solid currentColor;transform:rotate(45deg);top:37px}#shelf-handle[aria-expanded=true] b{transform:rotate(225deg);top:31px}.back-to-top{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--dock) + 18px);width:46px;height:46px;border:1px solid #cbd8d0;border-radius:50%;background:white;color:var(--green);box-shadow:0 3px 15px #172e5220;z-index:12;display:grid;place-items:center}.back-to-top svg{width:20px;height:20px}@media(min-width:800px){.back-to-top{right:max(20px,calc((100vw - 600px)/2 - 60px))}}

/* Operator identity and operational status use different labelled elements. */
.notice-service.neutral{border:1px solid #d9e0e5}.notice-status{display:table;border:1px solid transparent;border-radius:6px;padding:3px 7px;margin:2px 0 8px;font-size:11px;font-weight:700;line-height:1.4}.notice-status[data-tone=amber]{background:#fff2da;color:#835000;border-color:#ecd6ad}.notice-status[data-tone=red]{background:#fff0f1;color:#a02434;border-color:#edc6cc}.notice-status[data-tone=blue]{background:#edf4fb;color:#285c86;border-color:#cedfec}.notice-card[data-tone=red]{border-left-color:#b72c36}.notice-card[data-tone=amber]{border-left-color:#d78b25}.notice-card[data-tone=blue]{border-left-color:#4982b9}
.notice-status[data-tone=neutral]{background:#f0f3f5;color:#415260;border-color:#dce2e7}.notice-card[data-tone=neutral]{border-left-color:#cbd5dc}

/* Official operator marks and plain names replace coloured rail badges. */
.notice-operator{display:flex;align-items:center;gap:12px;min-width:0;width:100%;padding:2px 0}.notice-logo-frame{display:flex;align-items:center;justify-content:flex-start;width:96px;height:42px;flex:0 0 96px;background:#fff}.notice-operator-logo{display:block;width:96px;height:42px;object-fit:contain;object-position:left center}.notice-card .notice-operator>strong{background:none;color:#172e52;font-size:13px;font-weight:750;line-height:1.4;min-width:0;overflow-wrap:anywhere}.notice-services:has(.notice-operator){gap:10px}

[data-tube-time].awaiting-time{display:inline-block;max-width:9rem;white-space:normal;line-height:1.3;font-size:12px;font-weight:500;color:var(--muted)}

.tube-line-status{font-size:12px;margin:12px 0;color:var(--muted)}.tube-line-status>span{display:flex;align-items:center;gap:6px}.tube-line-status i{width:8px;height:8px;border-radius:50%;background:var(--status-color)}.tube-line-status details{margin-top:8px}.tube-line-status p{line-height:1.5}.legend-label{font-weight:650}.legend{flex-wrap:wrap;max-width:calc(100% - 24px)}
/* Forms must shrink with their container, including Safari's native date/time controls. */
#utility{width:min(100%,600px);min-width:0;min-height:0;flex:1 1 0}
#shelf-content,.journey-train-panel,.journey-stop-list{min-width:0;min-height:0}
.times>*{min-width:0;flex:1 1 0}
.times input,.times select{min-width:0;max-width:100%}
#utility input:not([type=checkbox]):not([type=radio]),#utility select{min-width:0;max-width:100%;box-sizing:border-box}
#utility .field-input,#shelf-content .field-input{min-width:0;overflow-wrap:anywhere;white-space:normal}
.carriage-heading,.commute-section-title{flex-wrap:wrap}
dialog{max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px)}
/* Landscape phones need a short header and a side drawer, rather than a tall bottom sheet. */
@media(orientation:landscape) and (max-height:500px){
 :root{--head:44px;--dock:calc(48px + env(safe-area-inset-bottom));--landscape-shelf:clamp(260px,36vw,320px)}
 header img{height:34px;width:82px}header{gap:8px}
 .search-button{min-width:44px;min-height:40px}.search-button span{display:none}
 nav{padding-top:0}nav button{min-height:44px;gap:0}nav button span{font-size:19px;line-height:21px}
 #utility{padding-top:14px;padding-bottom:24px}#utility h1{font-size:23px;margin-bottom:6px}
 #utility .field{margin-top:12px}.times{gap:12px}
 #shelf{left:auto;right:max(12px,env(safe-area-inset-right));bottom:12px;width:var(--landscape-shelf);height:64px;border-radius:18px}
 #shelf[data-size=half],#shelf[data-size=full]{height:calc(100% - 24px)}
 #shelf-handle{min-height:64px;padding:14px 16px 8px}#shelf-handle i{top:5px;width:26px;left:calc(50% - 13px)}
 #shelf-heading{font-size:15px}#shelf-subtitle{font-size:11px;margin-top:3px}
 #shelf-handle b{top:29px;right:17px;width:10px;height:10px}#shelf-handle[aria-expanded=true] b{top:23px}
 #shelf-content{padding:0 14px 16px}
 .modes{top:8px;left:max(12px,env(safe-area-inset-left));max-width:calc(100% - var(--landscape-shelf) - 78px)}
 .modes button{padding:0 10px;min-height:40px;font-size:11px}
 .controls{right:calc(var(--landscape-shelf) + max(12px,env(safe-area-inset-right)) + 10px);top:8px;gap:4px}
 .controls button{width:44px;height:44px}
 #focus-chip{top:64px;left:max(12px,env(safe-area-inset-left));max-width:calc(100% - var(--landscape-shelf) - 88px)}
 #map-note{left:max(12px,env(safe-area-inset-left));bottom:36px;max-width:calc(100% - var(--landscape-shelf) - 36px)}
 .legend{left:max(12px,env(safe-area-inset-left));bottom:12px;gap:8px;max-width:calc(100% - var(--landscape-shelf) - 36px)}
 .journey-map{height:clamp(230px,72dvh,360px)}
}
/* iPad windows and Split View use the available width, rather than device-model assumptions. */
@media(min-width:700px) and (min-height:501px){
 #utility{padding-top:24px;padding-bottom:32px}
 .journey-map{height:clamp(380px,52dvh,560px)}
}

.web-advertisement{position:relative;flex:0 0 auto;min-width:0;width:100%;height:76px;padding:14px max(12px,env(safe-area-inset-right)) 2px max(12px,env(safe-area-inset-left));background:#fafcfb;border-top:1px solid var(--line);overflow:hidden}.web-ad-label{position:absolute;top:2px;left:0;right:0;text-align:center;font-size:9px;line-height:11px;color:var(--muted)}.web-advertisement .adsbygoogle{width:100%;height:60px;max-width:970px;margin:0 auto}.web-ad-visible .back-to-top{bottom:calc(var(--dock) + 94px)}.web-ad-visible .commute-notice{bottom:calc(var(--dock) + 86px)}@media(max-height:500px){.web-advertisement{height:64px;padding-top:12px}.web-advertisement .adsbygoogle{height:50px}.web-ad-visible .back-to-top{bottom:calc(var(--dock) + 82px)}.web-ad-visible .commute-notice{bottom:calc(var(--dock) + 74px)}}

.legal-links{flex-wrap:wrap;column-gap:20px;row-gap:4px}

.app-download-banner{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:0;padding:8px max(12px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));background:#edf5ef;border-bottom:1px solid #dbe7df}.app-download-close{flex:0 0 36px;min-width:36px;min-height:44px;font-size:24px;color:#61766c}.app-download-banner>div{flex:1;min-width:0}.app-download-banner strong{display:block;font-size:13px;line-height:1.4}.app-download-banner small{display:block;font-size:10px;line-height:1.4;color:#61766c}.app-download-banner>a{flex-shrink:0;display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:14px;background:#24614d;color:white;text-decoration:none;font-size:12px;font-weight:650}@media(max-height:500px){.app-download-banner{padding-top:2px;padding-bottom:2px}.app-download-banner small{font-size:9px}}
