:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f4f8fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px}*{box-sizing:border-box}body{background:#f4f8fb;min-width:320px;margin:0}button,input,select{font:inherit}img{max-width:100%}.app-shell{--outline:#1620331c;--soft-accent:#2481cc1a;--surface-shadow:0 1px 2px #192c480f, 0 12px 30px #192c4814, 0 26px 52px #192c480d;background:var(--tg-app-bg);min-height:100svh;color:var(--tg-text);padding:calc(14px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));overflow:hidden}.app-shell-dark{--outline:#ffffff1f;--soft-accent:#52a5ee24;--surface-shadow:0 1px 2px #00000052, 0 18px 42px #00000047, 0 32px 64px #00000026;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.app-header,.route-workspace,.favorites-section,.next-train-section,.departures-section,.source-footer{width:min(100%,720px);margin-inline:auto}.app-header{justify-content:space-between;align-items:center;gap:16px;min-height:48px;margin-bottom:18px;animation:.34s both reveal-up;display:flex}.app-identity,.app-identity>div:last-child,.language-tabs,.station-field>span,.service-day-title,.section-heading,.section-heading>div,.favorite-chip,.departure-details,.train-label,.trip-label,.status-badge,.source-footer,.source-footer a{align-items:center;display:flex}.app-identity{gap:10px;min-width:0}.brand-mark{border:1px solid var(--tg-accent);background:var(--tg-accent);width:42px;height:42px;color:var(--tg-accent-text);border-radius:8px;flex:none;place-items:center;display:grid;box-shadow:0 3px 7px #2481cc38,0 12px 24px #2481cc33,inset 0 1px #ffffff47}.app-identity>div:last-child{flex-direction:column;align-items:flex-start;gap:1px;min-width:0}.app-identity h1,.app-identity span{text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.app-identity h1{color:var(--tg-text);font-size:18px;font-weight:850;line-height:1.1}.app-identity span{max-width:190px;color:var(--tg-muted);font-size:11px;font-weight:720}.language-tabs{border:1px solid var(--outline);background:var(--tg-surface);border-radius:8px;flex:none;gap:2px;padding:3px;box-shadow:0 1px 2px #192c480a,0 7px 18px #192c4812}.language-tabs button,.swap-action,.day-type-tabs button,.favorite-toggle,.favorite-chip,.favorite-remove,.share-action{font:inherit;cursor:pointer;border:0}.language-tabs button{width:30px;height:28px;color:var(--tg-muted);background:0 0;border-radius:6px;place-items:center;font-size:10px;font-weight:850;display:grid}.language-tabs button.is-active{background:var(--tg-accent);color:var(--tg-accent-text)}.route-workspace{border:1px solid var(--outline);background:var(--tg-surface);box-shadow:var(--surface-shadow);isolation:isolate;border-radius:8px;animation:.42s 40ms both reveal-up}.station-picker{grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:8px;padding:14px 12px 12px;display:grid}.station-field,.date-field{gap:6px;min-width:0;display:grid}.station-field>span,.date-field>span{color:var(--tg-muted);gap:5px;font-size:11px;font-weight:800}.station-field select,.date-field input{border:1px solid var(--outline);background:var(--tg-surface-elevated);width:100%;min-width:0;height:46px;color:var(--tg-text);font:inherit;border-radius:8px;outline:none;padding:0 10px;font-size:15px;font-weight:760;box-shadow:inset 0 1px 1px #192c4806,0 2px 5px #192c4806}.swap-action,.favorite-toggle,.share-action{border:1px solid var(--outline);background:var(--tg-surface-elevated);color:var(--tg-accent);border-radius:8px;place-items:center;display:grid}.swap-action{border-color:var(--tg-accent);background:var(--tg-accent);width:44px;height:46px;color:var(--tg-accent-text);align-self:end;transition:transform .18s,box-shadow .18s;box-shadow:0 3px 7px #2481cc33,0 11px 22px #2481cc33,inset 0 1px #ffffff40}.swap-action.is-animating svg{animation:.36s cubic-bezier(.22,.8,.3,1) swap-turn}.date-row,.service-day{border-top:1px solid var(--outline);gap:8px;padding:12px;display:grid}.service-day-title{color:var(--tg-muted);justify-content:space-between;gap:10px;font-size:11px;font-weight:800}.service-day-title small{color:var(--tg-accent);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800;overflow:hidden}.day-type-tabs{scrollbar-width:none;gap:6px;padding-bottom:2px;display:flex;overflow-x:auto}.day-type-tabs::-webkit-scrollbar{display:none}.favorite-list::-webkit-scrollbar{display:none}.day-type-tabs button{border:1px solid var(--outline);background:var(--tg-surface-elevated);min-width:max-content;min-height:36px;color:var(--tg-muted);border-radius:999px;flex:none;padding:0 12px;font-size:11px;font-weight:800;transition:border-color .18s,background-color .18s,color .18s,transform .18s}.day-type-tabs button.is-selected{border-color:var(--tg-accent);background:var(--tg-accent);color:var(--tg-accent-text)}.favorites-section,.next-train-section,.departures-section{margin-top:22px;animation:.42s 90ms both reveal-up}.next-train-section{animation-delay:.14s}.departures-section{animation-delay:.19s}.section-heading{min-height:26px;color:var(--tg-text);justify-content:space-between;gap:12px;margin-bottom:9px;font-size:14px;font-weight:850}.section-heading>div{gap:7px;min-width:0}.section-context{color:var(--tg-muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:720;overflow:hidden}.favorite-toggle{flex:none;width:30px;height:30px}.favorite-toggle.is-active{border-color:var(--tg-accent);background:var(--soft-accent)}.favorite-toggle:disabled{cursor:default;opacity:.72}.favorite-list{scrollbar-width:none;gap:8px;padding:1px 1px 4px;display:flex;overflow-x:auto}.favorites-empty{color:var(--tg-muted);margin:2px 0;font-size:12px;font-weight:680}.favorite-item{border:1px solid var(--outline);background:var(--tg-surface);border-radius:8px;min-width:max-content;transition:border-color .18s,background-color .18s,transform .18s;display:flex;overflow:hidden;box-shadow:0 2px 7px #192c480a}.favorite-item.is-active{border-color:var(--tg-accent);background:var(--soft-accent);animation:.26s ease-out both saved-pop}.favorite-chip{min-height:36px;color:var(--tg-text);background:0 0;gap:5px;padding:0 9px;font-size:11px;font-weight:780}.favorite-remove{border-left:1px solid var(--outline);width:30px;min-height:36px;color:var(--tg-muted);background:0 0;place-items:center;display:grid}.next-train-section .section-heading{margin-bottom:9px}.live-dot{background:#22c55e;border-radius:999px;width:7px;height:7px;animation:1.8s ease-out infinite live-pulse;box-shadow:0 0 0 4px #22c55e24}.count-chip{background:var(--soft-accent);min-width:26px;height:26px;color:var(--tg-accent);border-radius:999px;flex:none;place-items:center;font-size:11px;font-weight:850;display:inline-grid}.departure-list{gap:8px;display:grid}.departure-filter-tabs{border:1px solid var(--outline);background:var(--tg-surface-elevated);border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:9px;padding:3px;display:grid;box-shadow:inset 0 1px 2px #192c480a,0 4px 12px #192c4808}.departure-filter-tabs button{min-width:0;min-height:38px;color:var(--tg-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;gap:7px;font-size:12px;font-weight:820;transition:background-color .18s,color .18s,transform .18s;display:flex}.departure-filter-tabs button span{background:var(--outline);min-width:19px;height:19px;color:var(--tg-muted);border-radius:999px;place-items:center;font-size:10px;display:inline-grid}.departure-filter-tabs button.is-selected{background:var(--tg-surface);color:var(--tg-text);box-shadow:0 2px 6px #192c4814,0 6px 14px #192c480d}.departure-filter-tabs button.is-selected span{background:var(--soft-accent);color:var(--tg-accent)}.departure-card{border:1px solid var(--outline);background:var(--tg-surface);animation:card-enter .36s var(--entry-delay,0s) both;border-radius:8px;transition:border-color .18s,box-shadow .18s,transform .18s;overflow:hidden;box-shadow:0 1px 2px #192c480d,0 7px 18px #192c4811,0 16px 32px #192c4809}.departure-card.is-featured{border-color:var(--tg-accent);background:var(--tg-accent);color:var(--tg-accent-text);box-shadow:0 3px 8px #2481cc38,0 15px 30px #2481cc3b,0 30px 52px #2481cc1f,inset 0 1px #ffffff40}.departure-card.is-passed{border-color:var(--outline);background:var(--tg-surface-elevated);filter:grayscale(.45);opacity:.72;box-shadow:0 1px 2px #192c4806,0 5px 12px #192c4806}.departure-times{grid-template-columns:minmax(82px,1fr) 54px minmax(82px,1fr);align-items:center;gap:8px;padding:14px 13px 10px;display:grid}.departure-times>div:not(.route-connector){min-width:0}.departure-times>div:last-child{text-align:right}.departure-times time{color:var(--tg-text);font-size:25px;font-weight:880;line-height:1;display:block}.departure-times span{color:var(--tg-muted);text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:11px;font-weight:720;display:block;overflow:hidden}.is-featured .departure-times time,.is-featured .departure-times span,.is-featured .departure-details,.is-featured .departure-details button{color:var(--tg-accent-text)}.is-featured .departure-times span,.is-featured .trip-label,.is-featured .train-label{opacity:.82}.route-connector{height:24px;color:var(--tg-accent);place-items:center;display:grid;position:relative}.route-connector:before{background:var(--outline);content:"";height:1px;position:absolute;left:0;right:0}.route-connector span{border:2px solid var(--tg-accent);background:var(--tg-surface);border-radius:999px;width:7px;height:7px;margin:0;position:absolute;left:0}.route-connector svg{z-index:1;background:var(--tg-surface);padding-left:3px;position:relative}.is-featured .route-connector{color:var(--tg-accent-text)}.is-featured .route-connector:before{background:#ffffff6b}.is-featured .route-connector span,.is-featured .route-connector svg{border-color:var(--tg-accent-text);background:var(--tg-accent)}.departure-details{border-top:1px solid var(--outline);color:var(--tg-muted);flex-wrap:wrap;gap:7px 10px;padding:9px 12px;font-size:11px;font-weight:760}.is-featured .departure-details{border-top-color:#ffffff3d}.status-badge,.train-label,.trip-label{gap:4px}.status-badge{background:var(--soft-accent);min-height:24px;color:var(--tg-accent);border-radius:999px;padding:0 8px}.status-badge.is-next{color:#168546;background:#22c55e26}.is-featured .status-badge,.is-featured .status-badge.is-next{color:var(--tg-accent-text);opacity:1;background:#ffffff2e}.share-action{width:30px;height:30px;color:var(--tg-accent);background:0 0;margin-left:auto;transition:background-color .16s,transform .16s}.share-action:disabled{cursor:wait;opacity:.72}.share-spinner{animation:.8s linear infinite spin}.is-featured .share-action{border-color:#ffffff4d}.empty-state{border:1px dashed var(--outline);min-height:152px;color:var(--tg-muted);text-align:center;border-radius:8px;place-items:center;display:grid}.empty-state p{margin:0;padding:0 20px;font-size:13px;font-weight:700}.source-footer{color:var(--tg-muted);justify-content:space-between;gap:12px;margin-top:24px;font-size:11px;font-weight:680}.source-footer a{color:var(--tg-accent);flex:none;gap:5px;font-weight:820;text-decoration:none}.station-field select:focus-visible,.date-field input:focus-visible,.language-tabs button:focus-visible,.swap-action:focus-visible,.day-type-tabs button:focus-visible,.departure-filter-tabs button:focus-visible,.favorite-toggle:focus-visible,.favorite-chip:focus-visible,.favorite-remove:focus-visible,.share-action:focus-visible{outline:3px solid var(--tg-accent);outline-offset:2px}@media (width>=760px){.app-shell{padding-top:26px}.departure-times{grid-template-columns:minmax(120px,1fr) 96px minmax(120px,1fr);padding-inline:16px}}@media (width<=370px){.app-shell{padding-left:12px;padding-right:12px}.app-identity span{max-width:145px}.station-picker{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);gap:6px;padding-inline:10px}.swap-action{width:42px}.departure-times{grid-template-columns:minmax(72px,1fr) 42px minmax(72px,1fr);gap:5px}.departure-times time{font-size:23px}}@keyframes reveal-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes card-enter{0%{opacity:0;transform:translateY(10px)scale(.99)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes swap-turn{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes saved-pop{0%{transform:scale(.96)}to{transform:scale(1)}}@keyframes live-pulse{0%{box-shadow:0 0 #22c55e52}70%{box-shadow:0 0 0 7px #22c55e00}to{box-shadow:0 0 #22c55e00}}@media (hover:hover){.day-type-tabs button:hover,.departure-filter-tabs button:hover,.favorite-item:hover,.share-action:hover,.favorite-toggle:not(:disabled):hover{transform:translateY(-1px)}.swap-action:hover{transform:translateY(-1px)scale(1.03);box-shadow:0 10px 20px #2481cc42}.departure-card:not(.is-featured):hover{border-color:var(--tg-accent);transform:translateY(-1px);box-shadow:0 10px 20px #192c4817}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
