/* iOS-inspired browser adaptation of ContentView/CommuteHomeView/ConnectionRow.
   Static demo data only; no native controls or actual timetable requests. */
:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;background:#f2f2f7;color:#111}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{font-size:14px}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #007aff;outline-offset:2px}
[hidden]{display:none!important}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ios-app{height:100%;display:flex;flex-direction:column;background:#f2f2f7;position:relative;overflow:hidden}
.ios-status{display:flex;justify-content:space-between;align-items:center;height:35px;flex:0 0 auto;padding:8px 19px 0;font-size:13px;font-weight:700;color:#161616;font-variant-numeric:tabular-nums}
.ios-status-icons{font-size:10px;letter-spacing:1px}
.ios-toolbar{display:flex;justify-content:space-between;align-items:center;padding:8px 15px 6px 17px;min-height:62px;flex:0 0 auto}
.ios-toolbar h1{font-size:27px;line-height:1.15;letter-spacing:-.9px;margin:0;font-weight:750}
.ios-actions{display:flex;gap:7px;align-items:center}
.ios-icon-button{width:34px;height:34px;border-radius:50%;border:0;color:#007aff;background:#e4e4ea;font-weight:700;font-size:25px;display:grid;place-items:center;line-height:1}
.ios-icon-button:first-child{font-size:28px}
.ios-menu{position:absolute;z-index:6;top:84px;right:11px;width:224px;background:rgba(255,255,255,.98);border:1px solid #dedee3;border-radius:13px;box-shadow:0 12px 40px #0003;overflow:hidden}
.ios-menu button{display:flex;justify-content:space-between;gap:8px;text-align:left;width:100%;border:0;border-bottom:1px solid #e8e8ed;background:transparent;padding:12px 11px;color:#161616;font-size:12px}
.ios-menu button:last-child{border-bottom:0}.ios-menu button:hover{background:#f2f2f7}
.ios-menu span{color:#007aff}
.ios-commute{padding:10px 13px 12px;background:#fff;box-shadow:0 1px 0 #dcdce1;flex:0 0 auto}
.ios-route{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:13px}
.ios-route-names{display:flex;flex-direction:column;gap:3px;line-height:1.25;min-width:0}
.ios-route-names strong{font-size:14px;font-weight:690}
.ios-route-names span{font-size:12px}
.ios-route-names small{color:#777780;font-size:10px;margin-top:2px}
.ios-swap{flex:0 0 auto;min-width:42px;min-height:42px;border:1px solid #dedee5;background:#f4f4f7;border-radius:10px;color:#007aff;font-size:27px;line-height:1}
.ios-segments{display:flex;gap:2px;border:0;margin:0;padding:3px;border-radius:9px;background:#e6e6e9;width:100%}
.ios-segments button{background:transparent;border:0;border-radius:7px;color:#222;font-size:11px;font-weight:550;flex:1;padding:7px 1px;min-height:30px;white-space:nowrap}
.ios-segments button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #0002;font-weight:700}
.ios-sort{margin-top:7px}
.ios-demo-banner{display:flex;align-items:center;gap:5px;background:#fff4d4;color:#63500d;padding:8px 12px;border-bottom:1px solid #eedfa7;font-size:10px;min-height:33px;flex:0 0 auto}
.ios-demo-dot{width:6px;height:6px;border-radius:50%;background:#bc8518;flex:0 0 auto}
.ios-demo-banner strong{font-size:10px;letter-spacing:.03em}.ios-demo-banner span:last-child{margin-left:auto}
.ios-connections{flex:1;overflow-y:auto;overflow-x:hidden;background:#fff;overscroll-behavior:contain;min-height:0}
.ios-connection{position:relative;width:100%;min-height:119px;display:flex;align-items:stretch;flex-direction:column;text-align:left;padding:14px 20px 13px 14px;border:0;border-bottom:1px solid #e7e7ec;background:#fff;color:#17171b}
.ios-connection:hover,.ios-connection:focus-visible{background:#f4f7fc}
.ios-times{display:flex;align-items:center;justify-content:space-between;gap:5px}
.ios-time{display:flex;flex-direction:column;min-width:49px;gap:2px}
.ios-time strong{font-size:22px;letter-spacing:-.9px;line-height:1.1;font-variant-numeric:tabular-nums;font-weight:675}
.ios-time small{font-size:9px;color:#777780;font-variant-numeric:tabular-nums}
.ios-chevron{color:#8e8e93;font-size:17px}
.ios-line{font-size:12px;min-width:40px;max-width:57px;text-align:right;white-space:normal;overflow-wrap:anywhere;line-height:1.15}
.ios-connection-meta{font-size:11px;margin-top:12px;color:#2e2e31;white-space:normal}
.ios-connection-meta[data-status=delayed]{color:#a15b00}
.ios-connection-meta[data-status=cancelled],.ios-connection-meta[data-status=destinationStopCancelled]{color:#b42318}
.ios-platform{color:#4c4c51}
.ios-freshness{display:block;color:#75757b;font-size:10px;margin-top:5px}
.ios-disclosure{position:absolute;right:7px;top:47px;color:#c6c6cb;font-size:23px}
.ios-footer{flex:0 0 auto;background:#f2f2f7;color:#606068;text-align:center;font-size:10px;padding:7px 5px 10px}
.ios-home-indicator{width:104px;height:4px;border-radius:5px;background:#171717;margin:10px auto 0}
.ios-empty{padding:18px;color:#686872}
.ios-sheet{position:absolute;inset:32px 0 0;z-index:8;background:#f2f2f7;border-radius:17px 17px 0 0;box-shadow:0 -5px 24px #0004;overflow-y:auto;color:#181818}
.ios-sheet-header{display:flex;align-items:center;justify-content:space-between;padding:15px 15px 10px;border-bottom:1px solid #dedee3}
.ios-sheet-header h2{font-size:15px;font-weight:750;margin:0}
.ios-sheet-header button{border:0;background:transparent;color:#007aff;font-size:13px;font-weight:650;padding:6px}
.ios-sheet h3{padding:18px 15px 0;margin:0;font-size:20px}
.ios-sheet p{font-size:12px;padding:0 15px;color:#5f5f64;line-height:1.4}
.ios-sheet .ios-detail-status{color:#222;font-weight:700}
.ios-sheet .ios-detail-status[data-status=cancelled],.ios-sheet .ios-detail-status[data-status=destinationStopCancelled]{color:#b42318}
.ios-sheet dl{display:grid;grid-template-columns:1fr 1fr;padding:8px 15px;gap:0;margin:0;background:#fff}
.ios-sheet dt,.ios-sheet dd{padding:11px 0;margin:0;border-bottom:1px solid #efeff2;font-size:12px}
.ios-sheet dt{color:#75757d}.ios-sheet dd{text-align:right;font-weight:600}
.ios-sheet .ios-detail-disclaimer{font-size:11px;padding-top:15px}
.ios-noscript{position:absolute;bottom:32px;background:#fff4d4;padding:8px;font-size:10px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
