*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#25324b;font-family:Arial,Helvetica,sans-serif;font-size:calc(16px * var(--text-scale, 1))}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus,select:focus{outline:3px solid #d6a64c;outline-offset:3px}button:disabled{opacity:.55;cursor:wait}button svg,svg.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6}svg use{stroke:inherit}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.sidebar{width:218px;background:#17233f;color:#f4f7ff;position:fixed;left:0;top:0;bottom:0;padding:39px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-size:calc(23px * var(--text-scale, 1));letter-spacing:-1px;font-weight:bold}.brand-mark{border:1px solid #8890a3;width:38px;height:42px;border-radius:12px;font-size:calc(28px * var(--text-scale, 1));text-align:center;font-weight:normal;line-height:37px}.brand-mark span{color:#d9b35f;font-size:calc(15px * var(--text-scale, 1))}.brand small{display:block;font-size:calc(7px * var(--text-scale, 1));letter-spacing:1.5px;font-weight:normal;margin-top:7px;color:#babfcb}.nav-caption{margin:65px 10px 18px;font-size:calc(9px * var(--text-scale, 1));letter-spacing:1.6px;color:#8f98ae}.nav{width:100%;border:0;background:transparent;color:#c1c6d0;text-align:left;border-radius:10px;padding:17px 13px;margin-bottom:10px;display:flex;align-items:center;gap:13px;font-size:calc(15px * var(--text-scale, 1));position:relative}.nav svg{flex-shrink:0}.nav.active{background:#e8eeff;color:#17233f;font-weight:bold}.nav-dot{display:none;width:5px;height:5px;border-radius:50%;background:#35415c;margin-left:auto}.nav.active .nav-dot{display:block}.sidebar-bottom{margin-top:auto;padding:25px 10px 0}.home-label{display:flex;align-items:center;gap:12px;font-size:calc(16px * var(--text-scale, 1))}.home-label svg{width:23px;height:26px;fill:none;stroke:#b6bcc9;stroke-width:1.5}.home-label small{display:block;font-size:calc(11px * var(--text-scale, 1));color:#a5acbc;margin-top:6px}.sidebar-rule{height:1px;background:#3a4358;margin:25px 0}.prototype{font-size:calc(8px * var(--text-scale, 1));letter-spacing:1.6px;color:#9199ad}main{margin-left:218px;padding:32px 38px 22px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d5d8df;padding-bottom:23px}.eyebrow{font-size:calc(10px * var(--text-scale, 1));letter-spacing:2px;font-weight:bold}.date{margin-top:9px;font-size:calc(15px * var(--text-scale, 1));color:#717680}.clock{font-size:calc(36px * var(--text-scale, 1));letter-spacing:-1.5px;font-weight:normal;font-variant-numeric:tabular-nums}.clock small{font-size:calc(12px * var(--text-scale, 1));letter-spacing:1px;margin-left:7px;color:#747883}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:32px 0 26px;gap:20px}h1{font-size:calc(39px * var(--text-scale, 1));font-weight:normal;letter-spacing:-1.6px;margin:0 0 10px}p{line-height:1.6}.page-heading p{margin:0;color:#777a82;font-size:calc(14px * var(--text-scale, 1))}.outline{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:transparent;border:1px solid #bfc4ce;border-radius:7px;color:#3d4351;padding:13px 17px;font-size:calc(12px * var(--text-scale, 1));min-height:46px;white-space:nowrap}.outline svg{width:18px;height:18px}.bus-layout{display:flex;gap:22px;align-items:stretch}.arrivals-card{flex:1;min-width:0;background:#ffffff;border:1px solid #d5d9e2;border-radius:13px;overflow:hidden;display:flex;flex-direction:column}.stop-header{display:flex;align-items:center;gap:13px;padding:23px 22px;border-bottom:1px solid #dfe2ea}.stop-icon{width:44px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#e5e8f0;color:#2e3b58;flex-shrink:0}.stop-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5}h2{font-size:calc(21px * var(--text-scale, 1));letter-spacing:-.5px;font-weight:normal;margin:0}.stop-title{flex:1;min-width:0}.stop-title h2{font-size:calc(20px * var(--text-scale, 1))}.stop-title p{font-size:calc(11px * var(--text-scale, 1));margin:6px 0 0;color:#777b85}.badge{display:inline-block;border:1px solid #c9ced9;background:#e9ecf3;color:#4e5870;border-radius:20px;font-size:calc(9px * var(--text-scale, 1));letter-spacing:1px;padding:7px 9px;white-space:nowrap}.badge.amber{color:#8a682a;background:#fff3d6;border-color:#eddbb2}.badge.error{color:#944e3c;background:#fae8de;border-color:#eacaba}.table-head,.bus-row{display:flex;align-items:center}.table-head{padding:19px 23px 10px;font-size:calc(9px * var(--text-scale, 1));letter-spacing:1.4px;color:#848891}.table-head>span,.bus-row>div{width:25%;text-align:center}.table-head>span:first-child,.bus-row>div:first-child{text-align:left;width:28%}.table-head>span:nth-child(2),.bus-row>div:nth-child(2){width:22%}.bus-row{margin:0 22px;padding:17px 0;border-bottom:1px solid #e4e7ee;min-height:79px}.bus-row:last-child{border:0}.service-number{font-size:calc(28px * var(--text-scale, 1));font-weight:bold;letter-spacing:-1px}.operator{display:block;color:#848892;font-size:calc(9px * var(--text-scale, 1));letter-spacing:.5px;margin-top:4px}.arrival-time{font-size:calc(25px * var(--text-scale, 1));font-variant-numeric:tabular-nums;letter-spacing:-.6px;color:#515661}.arrival-time.next{color:#23304e;font-size:calc(31px * var(--text-scale, 1))}.arrival-time small{font-size:calc(10px * var(--text-scale, 1));letter-spacing:0;margin-left:3px;color:#7f8491}.arrival-time .arriving{font-size:calc(18px * var(--text-scale, 1));letter-spacing:0}.load{display:block;width:5px;height:5px;border-radius:50%;background:#7985a0;margin:7px auto 0}.load.standing{background:#d5a849}.load.full{background:#c27858}.arrivals-footer{margin-top:auto;border-top:1px solid #dfe2ea;padding:13px 22px;display:flex;align-items:center;justify-content:space-between;color:#868a93;font-size:calc(10px * var(--text-scale, 1));gap:10px}.text-button{border:0;background:none;padding:9px 0;color:#3c4966;font-size:calc(11px * var(--text-scale, 1));text-align:left;min-height:35px}.right-column{width:245px;flex-shrink:0;display:flex;flex-direction:column;gap:16px}.weather-mini{display:block;text-align:left;padding:22px;width:100%;border:1px solid #cdd3e1;border-radius:13px;background:#dde2ed;color:#30394d}.weather-mini .eyebrow{font-size:calc(9px * var(--text-scale, 1));letter-spacing:1.4px;display:flex;justify-content:space-between}.weather-art{width:160px;height:100px;display:block;margin:5px auto 10px}.weather-mini h2{font-size:calc(24px * var(--text-scale, 1));line-height:1.2}.weather-mini p{font-size:calc(11px * var(--text-scale, 1));margin:8px 0 17px;color:#757a87}.weather-mini-bottom{border-top:1px solid #c7cddb;padding-top:15px;display:flex;justify-content:space-between;font-size:calc(11px * var(--text-scale, 1))}.note-card{padding:21px 22px;border:1px solid #d1d5df;border-radius:13px;flex:1}.little-line{display:block;width:26px;height:3px;background:#cca967;margin-bottom:15px}.note-card h3{font-size:calc(15px * var(--text-scale, 1));font-weight:normal;margin:0}.note-card p{font-size:calc(12px * var(--text-scale, 1));color:#828690;margin:10px 0 5px}.bottom-note{display:flex;gap:8px;align-items:center;margin:18px 0 0;color:#888d98;font-size:calc(10px * var(--text-scale, 1))}.status-dot{width:5px;height:5px;border-radius:50%;background:#c9a668}footer{display:flex;justify-content:space-between;border-top:1px solid #d5d8df;margin-top:27px;padding-top:17px;color:#8c919c;font-size:calc(8px * var(--text-scale, 1));letter-spacing:1.6px}footer>span{letter-spacing:.5px}.footer-dot{margin:0 9px}.weather-main{background:#dee3ed;border:1px solid #cad0df;border-radius:16px;padding:45px;display:flex;align-items:center;min-height:365px}.weather-copy{flex:1}.weather-copy h2{font-size:calc(48px * var(--text-scale, 1));margin:25px 0 15px;line-height:1.1}.weather-copy p{color:#707787;max-width:400px;font-size:calc(15px * var(--text-scale, 1))}.big-weather-art{width:40%;max-width:330px;flex-shrink:0}.weather-valid{margin:25px 0}.weather-valid span{display:block;font-size:calc(9px * var(--text-scale, 1));letter-spacing:1.5px;color:#757b89}.weather-valid strong{display:block;font-size:calc(17px * var(--text-scale, 1));font-weight:normal;margin-top:9px}.weather-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;font-size:calc(11px * var(--text-scale, 1));color:#838791}.settings-grid{display:flex;gap:20px}.settings-grid>div{flex:1;min-width:0}.settings-card{background:#ffffff;padding:24px;border:1px solid #d3d7df;border-radius:12px}.settings-card h2{margin:12px 0 8px}.step{font-size:calc(9px * var(--text-scale, 1));letter-spacing:1.5px;color:#858b9a}.help{color:#808592;font-size:calc(12px * var(--text-scale, 1));line-height:1.5;margin:10px 0}.settings-card label{display:block;font-size:calc(12px * var(--text-scale, 1));margin:20px 0 9px;color:#4b5261}.settings-card label span{color:#8e939e}.settings-card input,.settings-card select{width:100%;padding:13px 12px;min-height:46px;background:#f1f3f8;border:1px solid #ced3de;border-radius:6px;color:#3c4455;font-size:calc(13px * var(--text-scale, 1))}.settings-card select{padding-right:25px}.stop-results{max-height:160px;overflow:auto;margin-top:9px}.stop-option{display:block;width:100%;border:1px solid transparent;border-radius:6px;background:transparent;padding:11px;text-align:left;color:#3c4455;font-size:calc(13px * var(--text-scale, 1));min-height:48px}.stop-option small{display:block;color:#808693;font-size:calc(10px * var(--text-scale, 1));margin-top:5px}.stop-option.selected{background:#dfe4f0;border-color:#bac3d9}.input-row{display:flex;gap:9px}.input-row input{min-width:0}.solid{background:#25314e;border:1px solid #25314e;color:#fff;border-radius:6px;padding:13px 18px;min-height:47px;font-size:calc(12px * var(--text-scale, 1));white-space:nowrap}.mode-card{margin-top:20px}.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px}.settings-actions span{font-size:calc(12px * var(--text-scale, 1));color:#59637b}.empty{padding:45px 25px;text-align:center;color:#717888;font-size:calc(14px * var(--text-scale, 1));line-height:1.7}.empty strong{display:block;color:#41495c;margin-bottom:10px}.busy{opacity:.6}
.header-right{display:flex;align-items:center;gap:18px}.fullscreen{border:1px solid #ced3de;border-radius:7px;background:transparent;color:#6c7280;width:44px;height:44px;font-size:calc(25px * var(--text-scale, 1))}.fullscreen:hover{background:#dde2ed}
.dense .bus-row{padding:7px 0;min-height:54px}.dense .service-number{font-size:calc(24px * var(--text-scale, 1))}.dense .arrival-time,.dense .arrival-time.next{font-size:calc(24px * var(--text-scale, 1))}.dense .load{margin-top:3px}.dense .operator{font-size:calc(8px * var(--text-scale, 1));margin-top:2px}
@media(min-width:1000px) and (max-height:850px){main{padding-top:24px;padding-bottom:15px}header{padding-bottom:16px}.page-heading{margin:24px 0 20px}h1{font-size:calc(36px * var(--text-scale, 1))}.stop-header{padding:18px 22px}.bus-row{padding:11px 0;min-height:70px}.arrival-time.next{font-size:calc(29px * var(--text-scale, 1))}.table-head{padding-top:15px}.bottom-note{margin-top:12px}footer{margin-top:18px;padding-top:13px}.note-card{padding-top:17px;padding-bottom:17px}.weather-mini{padding-top:18px;padding-bottom:18px}}
@media(min-width:1450px){main{padding:45px 65px}.right-column{width:300px}.bus-row{min-height:95px}.weather-art{height:125px}.page-heading{margin:40px 0}.sidebar{width:240px}main{margin-left:240px}}
@media(max-width:1100px){.sidebar{width:175px;padding:30px 12px}.brand{font-size:calc(19px * var(--text-scale, 1))}.brand small{font-size:calc(6px * var(--text-scale, 1))}.nav{font-size:calc(13px * var(--text-scale, 1));padding:15px 10px}.nav-caption{font-size:calc(8px * var(--text-scale, 1));letter-spacing:1px}main{margin-left:175px;padding:25px}.right-column{width:205px}.stop-header{padding:18px 14px}.bus-row{margin:0 15px}.table-head{padding-left:15px;padding-right:15px}.weather-mini{padding:18px}.page-heading h1{font-size:calc(34px * var(--text-scale, 1))}.weather-copy h2{font-size:calc(38px * var(--text-scale, 1))}}
@media(max-width:800px){.sidebar{width:76px;padding:25px 10px}.brand>span:last-child,.nav-caption,.nav-dot,.sidebar-bottom,.nav:not(.active) .nav-dot{display:none}.brand{justify-content:center}.nav{font-size:0;padding:17px;justify-content:center;margin-top:10px;gap:0}.nav svg{width:24px;height:24px}nav{margin-top:50px}main{margin-left:76px;padding:20px}.right-column{width:190px}.page-heading{align-items:flex-start}.page-heading h1{font-size:calc(30px * var(--text-scale, 1))}.stop-title h2{font-size:calc(17px * var(--text-scale, 1))}.stop-icon{display:none}.settings-grid{display:block}.settings-grid>div{margin-bottom:15px}.big-weather-art{width:32%}.weather-main{padding:25px}.weather-copy h2{font-size:calc(34px * var(--text-scale, 1))}}
@media(max-width:600px){.bus-layout{display:block}.right-column{width:100%;margin-top:18px}.note-card{display:none}.weather-mini{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.weather-art{width:85px;height:60px;margin:0}.weather-mini .eyebrow,.weather-mini-bottom{width:100%}.weather-mini p{margin:0}.page-heading{display:block}.page-heading .outline{margin-top:15px}h1{font-size:calc(29px * var(--text-scale, 1))}.clock{font-size:calc(26px * var(--text-scale, 1))}.date{font-size:calc(11px * var(--text-scale, 1))}.eyebrow{font-size:calc(8px * var(--text-scale, 1));letter-spacing:1px}main{padding:15px}.weather-main{display:block}.big-weather-art{display:none}.weather-footer{display:block}.weather-footer button{margin-top:15px}footer{line-height:1.8;gap:20px;font-size:calc(7px * var(--text-scale, 1))}.table-head{font-size:calc(8px * var(--text-scale, 1));letter-spacing:.5px}.arrival-time.next{font-size:calc(25px * var(--text-scale, 1))}.arrival-time{font-size:calc(21px * var(--text-scale, 1))}}

/* Readable date and per-device appearance. */
header .date{margin:0;font-size:calc(30px * var(--text-scale, 1));line-height:1.25;font-weight:500;letter-spacing:-.7px;color:#25324b}
.theme-toggle{min-height:44px;padding:10px 15px;background:transparent;border:1px solid #bfc4ce;border-radius:7px;color:#3d4351;font-size:calc(13px * var(--text-scale, 1));white-space:nowrap}
.theme-toggle:hover{background:#dde2ed}
[data-theme="dark"]{color-scheme:dark}
[data-theme="dark"] body{background:#111827;color:#e3e6ec}
[data-theme="dark"] .sidebar{background:#0c0f17}
[data-theme="dark"] .nav.active{background:#313b51;color:#e9edf6}
[data-theme="dark"] header .date,[data-theme="dark"] .clock{color:#e3e6ec}
[data-theme="dark"] .arrivals-card,[data-theme="dark"] .settings-card,[data-theme="dark"] .note-card{background:#1b1f29;border-color:#353a46}
[data-theme="dark"] .weather-mini,[data-theme="dark"] .weather-main{background:#262b37;border-color:#3e4554;color:#dbe0ed}
[data-theme="dark"] header,[data-theme="dark"] footer,[data-theme="dark"] .stop-header,[data-theme="dark"] .bus-row,[data-theme="dark"] .arrivals-footer,[data-theme="dark"] .weather-mini-bottom{border-color:#353a46}
[data-theme="dark"] .stop-icon,[data-theme="dark"] .stop-option.selected{background:#333a4b;color:#dbe0ed;border-color:#525d77}
[data-theme="dark"] .arrival-time{color:#b9bfcd}
[data-theme="dark"] .arrival-time.next,[data-theme="dark"] .text-button,[data-theme="dark"] .stop-option,[data-theme="dark"] .settings-card label,[data-theme="dark"] .empty strong{color:#b4c2e1}
[data-theme="dark"] .outline,[data-theme="dark"] .theme-toggle,[data-theme="dark"] .fullscreen{color:#cfd5e2;border-color:#4e5463}
[data-theme="dark"] .theme-toggle:hover,[data-theme="dark"] .fullscreen:hover{background:#333a4b}
[data-theme="dark"] .settings-card input,[data-theme="dark"] .settings-card select{background:#141820;border-color:#495060;color:#dbe0ed}
[data-theme="dark"] .solid{background:#9caac9;color:#161b25;border-color:#9caac9}
[data-theme="dark"] .badge{background:#2e3648;color:#b4c2e1;border-color:#4a5369}
[data-theme="dark"] .badge.amber{background:#483b20;color:#f1d18d;border-color:#786139}
[data-theme="dark"] .badge.error{background:#4b2c26;color:#f0b7a5;border-color:#805046}
[data-theme="dark"] .page-heading p,[data-theme="dark"] .stop-title p,[data-theme="dark"] .table-head,[data-theme="dark"] .operator,[data-theme="dark"] .arrival-time small,[data-theme="dark"] .arrivals-footer,[data-theme="dark"] .weather-mini p,[data-theme="dark"] .note-card p,[data-theme="dark"] .help,[data-theme="dark"] .step,[data-theme="dark"] .bottom-note,[data-theme="dark"] footer,[data-theme="dark"] .weather-footer,[data-theme="dark"] .weather-copy p,[data-theme="dark"] .weather-valid span,[data-theme="dark"] .stop-option small,[data-theme="dark"] .empty,[data-theme="dark"] .clock small,[data-theme="dark"] .settings-actions span{color:#a3aab9}
[data-theme="dark"] input::placeholder{color:#969dae}
[data-theme="dark"] .weather-art>path,[data-theme="dark"] .big-weather-art>path:first-of-type{fill:#424752;stroke:#8e96a7}
@media(max-width:1100px){header .date{font-size:calc(25px * var(--text-scale, 1))}.header-right{gap:10px}}
@media(max-width:600px){header{flex-wrap:wrap;gap:15px}header .date{font-size:calc(23px * var(--text-scale, 1))}.header-right{width:100%;justify-content:space-between}}

/* Home modules and seven-day weather */
.home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.home-card{display:block;text-align:left;background:#ffffff;border:1px solid #d3d7e0;border-radius:13px;padding:23px;color:#25324b;min-height:250px}
.home-card>.eyebrow{display:flex;justify-content:space-between;gap:10px;margin-bottom:24px;font-size:calc(10px * var(--text-scale, 1))}
.home-card:hover{border-color:#717d98}.home-card h3{font-size:calc(21px * var(--text-scale, 1));line-height:1.4;font-weight:normal;margin:20px 0 12px}.home-card p{font-size:calc(14px * var(--text-scale, 1));line-height:1.5}.home-card small{display:block;font-size:calc(11px * var(--text-scale, 1));line-height:1.6;color:#737988}.home-card .home-stop{font-size:calc(12px * var(--text-scale, 1));color:#737988;margin:0 0 12px}.home-departure{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #d8dce6}.home-departure strong{font-size:calc(23px * var(--text-scale, 1))}.home-departure span{font-size:calc(19px * var(--text-scale, 1))}.home-departure:last-of-type{margin-bottom:15px}.home-weather{display:flex;align-items:center;gap:20px;margin:20px 0}.home-weather>strong{font-size:calc(58px * var(--text-scale, 1));font-weight:normal;letter-spacing:-2px}.home-today{background:#dde2ed}.home-tomorrow{background:#f0edde}.home-calendar,.home-fourD,.home-toto{min-height:220px}.home-card .badge{margin-top:3px}.integration-panel{padding:35px;background:#ffffff;border:1px solid #d3d7e0;border-radius:13px}.integration-panel h2{font-size:calc(26px * var(--text-scale, 1));margin:20px 0}.integration-panel p{max-width:650px}.integration-panel a,.forecast-section a{color:#445170}.integration-icon{font-size:calc(50px * var(--text-scale, 1));color:#717d98}.results-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.forecast-title{display:flex;justify-content:space-between;align-items:center;font-size:calc(12px * var(--text-scale, 1));margin-bottom:10px;color:#6d7484}.forecast-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.forecast-day{padding:18px 10px;text-align:center;background:#ffffff;border:1px solid #d3d7e0;border-radius:10px}.forecast-day.today{background:#dde2ed;border-color:#a5b0c9}.forecast-day h3{font-size:calc(13px * var(--text-scale, 1));margin:0 0 7px;font-weight:normal}.forecast-day small{display:block;font-size:calc(10px * var(--text-scale, 1));line-height:1.6;color:#737988}.forecast-icon{font-family:Arial,sans-serif;font-size:calc(44px * var(--text-scale, 1));line-height:1;color:#b89545;display:block;margin:16px 0}.forecast-day p{font-size:calc(11px * var(--text-scale, 1));line-height:1.5;min-height:33px;margin:12px 0}.forecast-day>strong{display:block;font-size:calc(23px * var(--text-scale, 1));font-weight:normal;margin:10px 0}.forecast-day>strong span{font-size:calc(15px * var(--text-scale, 1));color:#787f90}.forecast-empty{grid-column:1/-1;padding:40px;border:1px solid #d3d7e0;border-radius:10px}.short-forecast{padding:20px 25px;min-height:0;margin-top:18px}.short-forecast .weather-copy h2{font-size:calc(26px * var(--text-scale, 1));margin:10px 0}.short-forecast .weather-copy p{font-size:calc(12px * var(--text-scale, 1));margin:6px 0}.short-forecast .weather-valid{margin:12px 0}.short-forecast .weather-valid strong{font-size:calc(14px * var(--text-scale, 1))}.short-forecast .big-weather-art{width:130px;height:130px}.short-forecast .weather-copy{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.short-forecast .weather-copy>.eyebrow{grid-column:1/-1}.short-forecast .weather-copy .badge{justify-self:start}.card-picker{position:fixed;inset:0;background:rgba(9,20,14,.65);z-index:20;display:flex;align-items:center;justify-content:center;padding:24px}.picker-panel{background:#f5f7fb;border:1px solid #bfc4ce;border-radius:16px;width:650px;max-width:100%;max-height:92vh;overflow:auto;padding:28px}.picker-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}.card-option{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 5px;border-bottom:1px solid #d3d7e0;cursor:pointer}.card-option strong{font-size:calc(15px * var(--text-scale, 1));font-weight:normal}.card-option small{display:block;font-size:calc(11px * var(--text-scale, 1));color:#737988;margin-top:7px}.card-option input{width:24px;height:24px;accent-color:#4b5772;flex-shrink:0}.sidebar .nav-caption{margin-top:40px}.sidebar .nav{padding-top:14px;padding-bottom:14px;margin-bottom:7px}
[data-theme="dark"] .home-card,[data-theme="dark"] .integration-panel,[data-theme="dark"] .forecast-day,[data-theme="dark"] .picker-panel{background:#1b1f29;border-color:#353a46;color:#e3e6ec}
[data-theme="dark"] .home-today,[data-theme="dark"] .forecast-day.today{background:#292f3d;border-color:#495369}[data-theme="dark"] .home-tomorrow{background:#272c37}
[data-theme="dark"] .home-card small,[data-theme="dark"] .home-card .home-stop,[data-theme="dark"] .forecast-day small,[data-theme="dark"] .forecast-day>strong span,[data-theme="dark"] .forecast-title,[data-theme="dark"] .card-option small{color:#a3aab9}
[data-theme="dark"] .home-departure,[data-theme="dark"] .card-option,[data-theme="dark"] .forecast-empty{border-color:#353a46}[data-theme="dark"] .integration-panel a,[data-theme="dark"] .forecast-section a{color:#b4c2e1}
@media(max-width:1000px){.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.forecast-days{grid-template-columns:repeat(4,minmax(0,1fr))}.results-grid{grid-template-columns:1fr}.short-forecast .weather-copy{display:block}.sidebar .nav-caption{margin-top:25px}}
@media(max-width:600px){.home-grid{grid-template-columns:1fr}.forecast-days{grid-template-columns:repeat(2,minmax(0,1fr))}.home-card{min-height:210px}.picker-panel{padding:18px}.picker-heading{align-items:flex-start}.short-forecast .big-weather-art{display:none}}
.short-forecast .weather-copy .badge{align-self:start}
.pools-panel{padding:25px;background:#ffffff;border:1px solid #d3d7e0;border-radius:13px}.pools-panel h2{font-size:calc(23px * var(--text-scale, 1));margin:18px 0 7px}.draw-number{font-size:calc(12px * var(--text-scale, 1));color:#737988;margin:0 0 20px}.pools-panel h3{font-weight:normal;font-size:calc(12px * var(--text-scale, 1));margin:20px 0 10px;color:#737988}.prize-top{display:flex;justify-content:space-between;gap:12px}.prize-top small{display:block;font-size:calc(11px * var(--text-scale, 1));color:#737988;margin-bottom:8px}.prize-top strong{font-size:calc(30px * var(--text-scale, 1));font-weight:normal;letter-spacing:2px}.prize-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.prize-grid span{font-size:calc(17px * var(--text-scale, 1));letter-spacing:1px;background:#e5e9f1;border-radius:6px;padding:10px 5px;text-align:center}.winning-balls{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 30px}.winning-balls span{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#dbe0ed;font-size:calc(23px * var(--text-scale, 1));color:#384051}.additional-ball span{background:#f0e0ae;color:#705524}.result-source{font-size:calc(10px * var(--text-scale, 1));color:#737988;border-top:1px solid #d3d7e0;padding-top:16px;margin:20px 0 0}.home-prizes{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.home-prizes strong{font-size:calc(24px * var(--text-scale, 1));font-weight:normal;letter-spacing:1px}[data-theme="dark"] .pools-panel{background:#1b1f29;border-color:#353a46}[data-theme="dark"] .prize-grid span,[data-theme="dark"] .winning-balls span{background:#333a4b;color:#dbe0ed}[data-theme="dark"] .additional-ball span{background:#594a29;color:#f0d99b}[data-theme="dark"] .result-source{border-color:#353a46}[data-theme="dark"] .result-source,[data-theme="dark"] .draw-number,[data-theme="dark"] .pools-panel h3,[data-theme="dark"] .prize-top small{color:#a3aab9}
@media(max-width:600px){.prize-top strong{font-size:calc(24px * var(--text-scale, 1))}.prize-grid{grid-template-columns:repeat(3,1fr)}}

/* Calendar: touch-friendly week planner with a month navigator. */
.calendar-heading{margin-bottom:20px}.calendar-actions{display:flex;gap:10px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,1fr);gap:18px}.week-panel,.month-panel{background:#ffffff;border:1px solid #d3d7e0;border-radius:13px;overflow:hidden}.calendar-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px}.calendar-panel-heading .eyebrow{font-size:calc(8px * var(--text-scale, 1));color:#808796}.calendar-panel-heading h2{font-size:calc(17px * var(--text-scale, 1));margin-top:8px;letter-spacing:-.3px}.calendar-arrows{display:flex;gap:5px}.calendar-arrows button{width:36px;height:38px;background:transparent;border:1px solid #d3d7e0;border-radius:7px;color:inherit;font-size:calc(25px * var(--text-scale, 1))}.week-days{display:grid;grid-template-columns:48px repeat(7,minmax(0,1fr));border-bottom:1px solid #d3d7e0;padding-bottom:9px;align-items:center}.week-zone{font-size:calc(8px * var(--text-scale, 1));text-align:center;color:#808796}.week-day{border:0;background:transparent;color:inherit;padding:5px 0;text-align:center}.week-day small{display:block;font-size:calc(9px * var(--text-scale, 1));color:#808796;margin-bottom:6px}.week-day strong{display:inline-flex;justify-content:center;align-items:center;width:30px;height:30px;border-radius:50%;font-size:calc(18px * var(--text-scale, 1));font-weight:normal}.week-day.is-today strong,.month-day.is-today span{background:#527bba;color:#fff}.week-day.selected:not(.is-today) strong{background:#dfe8f4;color:#315580}.week-scroll{max-height:360px;overflow-y:auto}.week-timeline{height:442px;display:flex}.calendar-hours{width:48px;flex-shrink:0}.calendar-hours span{display:block;height:34px;font-size:calc(8px * var(--text-scale, 1));color:#7e8595;text-align:center;padding-top:4px}.week-columns{flex:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0}.week-column{position:relative;border-left:1px solid #dee1e8;background:repeating-linear-gradient(to bottom,transparent 0,transparent 33px,#dee1e8 33px,#dee1e8 34px)}.week-column.selected{background-color:#f3f6fb}.calendar-event{position:absolute;left:2px;right:2px;overflow:hidden;border:0;border-left:3px solid #7da0d8;border-radius:5px;padding:5px 4px;text-align:left;color:#244a7b;background:#dfe9f8;min-height:31px}.calendar-event strong{display:block;font-size:calc(9px * var(--text-scale, 1));line-height:1.3;font-weight:normal}.calendar-event small{display:block;font-size:calc(8px * var(--text-scale, 1));margin-top:4px}.calendar-event.sage{background:#d9dfec;color:#354466;border-color:#8191b5}.calendar-event.purple{background:#eee3f7;color:#785292;border-color:#b799cb}.calendar-event.amber{background:#f4e9cc;color:#876922;border-color:#d0af64}.calendar-note{padding:12px 15px;border-top:1px solid #d3d7e0;font-size:calc(9px * var(--text-scale, 1));line-height:1.5;color:#7e8595}.month-weekdays,.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:0 16px}.month-weekdays{font-size:calc(10px * var(--text-scale, 1));text-align:center;color:#7e8595;padding-bottom:10px}.month-day{position:relative;height:38px;border:0;background:transparent;color:inherit;padding:2px;display:flex;align-items:center;justify-content:center}.month-day span{display:inline-flex;width:29px;height:29px;border-radius:50%;align-items:center;justify-content:center;font-size:calc(12px * var(--text-scale, 1))}.month-day.outside{color:#a1a6b2}.month-day.selected:not(.is-today) span{background:#dfe8f4;color:#315580}.month-day i{position:absolute;bottom:1px;width:3px;height:3px;border-radius:50%;background:#7da0d8}.selected-agenda{margin:18px 20px;padding-top:18px;border-top:1px solid #d3d7e0}.selected-agenda .eyebrow{font-size:calc(9px * var(--text-scale, 1))}.agenda-event{display:flex;gap:10px;align-items:flex-start;margin-top:18px}.agenda-event strong{display:block;font-weight:normal;font-size:calc(13px * var(--text-scale, 1))}.agenda-event small{display:block;font-size:calc(10px * var(--text-scale, 1));color:#7e8595;margin-top:7px}.agenda-dot{width:8px;height:8px;border-radius:50%;background:#7da0d8;margin-top:4px;flex-shrink:0}.agenda-dot.sage{background:#8191b5}.agenda-dot.purple{background:#b799cb}.agenda-dot.amber{background:#d0af64}.calendar-connection{display:flex;gap:8px;align-items:center;font-size:calc(10px * var(--text-scale, 1));color:#7e8595;margin:16px 0 0}.calendar-settings{display:flex;flex-wrap:wrap;gap:22px;padding:17px 20px;background:#dde2ed;border-radius:10px;margin-bottom:16px}.calendar-settings label{display:flex;align-items:center;gap:8px;font-size:calc(12px * var(--text-scale, 1))}.calendar-settings input{width:20px;height:20px;accent-color:#527bba}.calendar-settings span{font-size:calc(11px * var(--text-scale, 1))}.calendar-arrows button:hover,.month-day:hover span{background:#dde2ed}
[data-theme="dark"] .week-panel,[data-theme="dark"] .month-panel{background:#1b1f29;border-color:#353a46}[data-theme="dark"] .calendar-panel-heading .eyebrow,[data-theme="dark"] .week-day small,[data-theme="dark"] .week-zone,[data-theme="dark"] .calendar-hours span,[data-theme="dark"] .calendar-note,[data-theme="dark"] .month-weekdays,[data-theme="dark"] .agenda-event small,[data-theme="dark"] .calendar-connection{color:#a3aab9}[data-theme="dark"] .week-days,[data-theme="dark"] .calendar-note,[data-theme="dark"] .selected-agenda,[data-theme="dark"] .calendar-arrows button,[data-theme="dark"] .week-column{border-color:#353a46}[data-theme="dark"] .week-column{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 33px,#353a46 33px,#353a46 34px)}[data-theme="dark"] .week-column.selected{background-color:#232833}[data-theme="dark"] .calendar-event{background:#2c4862;color:#d9e9ff;border-color:#7da0d8}[data-theme="dark"] .calendar-event.sage{background:#353e53;color:#d6def0}[data-theme="dark"] .calendar-event.purple{background:#4b3a5b;color:#f1e0ff}[data-theme="dark"] .calendar-event.amber{background:#544929;color:#f5e6b9}[data-theme="dark"] .calendar-settings{background:#292f3d}[data-theme="dark"] .month-day.outside{color:#626978}[data-theme="dark"] .calendar-arrows button:hover,[data-theme="dark"] .month-day:hover span{background:#3c4251}
@media(max-width:1100px){.calendar-layout{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}.calendar-panel-heading{padding:15px}.calendar-panel-heading h2{font-size:calc(15px * var(--text-scale, 1))}}
@media(max-width:850px){.calendar-layout{grid-template-columns:1fr}.week-scroll{max-height:340px}.calendar-heading{display:block}.calendar-actions{margin-top:15px}.month-day{height:44px}}

/* Compact navigation and calendar workspace, with generous touch targets. */
@media(min-width:801px){
.sidebar{width:160px;padding:28px 6px}.brand{font-size:calc(20px * var(--text-scale, 1));gap:6px}.brand-mark{flex-shrink:0;width:34px;height:38px;line-height:33px}.sidebar nav{margin-top:24px}.sidebar .nav{min-height:54px;padding:12px 6px;gap:6px;font-size:calc(18px * var(--text-scale, 1));line-height:1.25;margin-bottom:5px}.sidebar .nav svg{width:28px;height:28px}.sidebar .nav-dot{display:none}.sidebar-bottom{padding-left:6px;padding-right:6px}.prototype{letter-spacing:.8px}
main{margin-left:160px;padding-left:24px;padding-right:24px}
}
.calendar-open header{gap:16px}.calendar-open .header-right{gap:10px}.calendar-open header .date{font-size:calc(26px * var(--text-scale, 1))}.calendar-actions{gap:8px}.calendar-actions .outline{min-height:44px;padding:10px 13px;white-space:nowrap}
#calendar{padding-top:18px}.week-scroll{max-height:442px}.calendar-arrows button{width:44px;height:44px}
@media(max-width:1100px){.calendar-open header{flex-wrap:wrap}.calendar-open header .date{font-size:calc(25px * var(--text-scale, 1))}.calendar-open .header-right{flex-wrap:wrap}.calendar-open .clock{font-size:calc(28px * var(--text-scale, 1))}}
@media(max-width:850px){.week-scroll{max-height:442px}.calendar-actions{margin-top:0}}

/* Causeway: paired live checkpoint views. */
.causeway-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}.causeway-heading h1{font-size:calc(26px * var(--text-scale, 1));margin:0 0 5px}.causeway-heading>div>span{font-size:calc(12px * var(--text-scale, 1));color:#6d7484}.causeway-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.checkpoint-card{padding:18px;background:#ffffff;border:1px solid #d3d7e0;border-radius:13px;min-width:0}.checkpoint-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.checkpoint-title h2{font-size:calc(21px * var(--text-scale, 1));margin:0}.checkpoint-times{display:grid;grid-template-columns:1fr 1fr;gap:14px}.checkpoint-times .eyebrow{font-size:calc(9px * var(--text-scale, 1));letter-spacing:1px}.checkpoint-times strong{display:block;font-size:calc(34px * var(--text-scale, 1));font-weight:normal;margin:6px 0}.checkpoint-times strong small{font-size:calc(15px * var(--text-scale, 1))}.checkpoint-times p{font-size:calc(12px * var(--text-scale, 1));line-height:1.4;margin:5px 0}.checkpoint-times small{display:block;font-size:calc(10px * var(--text-scale, 1));line-height:1.4;color:#6d7484}.checkpoint-times strong small{display:inline}.crossing-estimate{border-left:1px solid #d3d7e0;padding-left:14px}.queue-note{font-size:calc(11px * var(--text-scale, 1));line-height:1.5;color:#6d7484;margin:12px 0}.camera-preview{display:block;width:100%;position:relative;border:0;padding:0;background:#111;border-radius:7px;overflow:hidden;color:#fff;aspect-ratio:16/9}.camera-preview img{display:block;width:100%;height:auto}.camera-preview>span:not(.camera-empty){position:absolute;right:8px;bottom:8px;padding:5px 8px;border-radius:5px;background:rgba(0,0,0,.7);font-size:calc(10px * var(--text-scale, 1))}.camera-empty{display:flex;align-items:center;justify-content:center;min-height:220px;font-size:calc(13px * var(--text-scale, 1))}.camera-caption{display:flex;justify-content:space-between;gap:8px;margin:11px 0;align-items:center}.camera-caption strong{font-size:calc(12px * var(--text-scale, 1));font-weight:normal}.camera-caption small{font-size:calc(10px * var(--text-scale, 1));color:#6d7484}.camera-switches{display:flex;gap:8px}.camera-switches button{flex:1;min-height:44px;border:1px solid #bfc4ce;background:transparent;color:inherit;border-radius:7px;font-size:calc(12px * var(--text-scale, 1))}.camera-switches button[aria-pressed="true"]{background:#dde2ed;border-color:#717d98}.causeway-footnote{font-size:calc(10px * var(--text-scale, 1));line-height:1.6;color:#6d7484}.camera-dialog{max-width:100%;width:1000px;max-height:95vh;overflow:auto;padding:18px;background:#f5f7fb;border-radius:12px}.camera-dialog h2{font-size:calc(19px * var(--text-scale, 1));margin:0}.camera-dialog img{display:block;width:100%;max-height:70vh;object-fit:contain;background:#111}.camera-dialog p{font-size:calc(12px * var(--text-scale, 1));margin-bottom:0}.google-attribution{display:block;color:#5e5e5e;font-size:calc(12px * var(--text-scale, 1));font-weight:400;letter-spacing:normal;white-space:nowrap;margin-top:8px}#causeway-settings input{width:100px;min-height:44px}#causeway-settings select{min-height:44px;max-width:230px}.estimate-button{min-height:44px;font-size:calc(12px * var(--text-scale, 1))}
[data-theme="dark"] .checkpoint-card,[data-theme="dark"] .camera-dialog{background:#1b1f29;border-color:#353a46}[data-theme="dark"] .crossing-estimate{border-color:#353a46}[data-theme="dark"] .camera-switches button{border-color:#4e5463}[data-theme="dark"] .camera-switches button[aria-pressed="true"]{background:#313b51}[data-theme="dark"] .causeway-heading>div>span,[data-theme="dark"] .checkpoint-times small,[data-theme="dark"] .queue-note,[data-theme="dark"] .camera-caption small,[data-theme="dark"] .causeway-footnote{color:#a3aab9}[data-theme="dark"] .google-attribution{color:#fff}
@media(max-width:900px){.causeway-grid{grid-template-columns:1fr}.causeway-heading{flex-wrap:wrap}.camera-caption{flex-wrap:wrap}}

@media(min-width:901px) and (max-height:850px){.camera-preview{height:230px;aspect-ratio:auto}.camera-preview img{height:100%;object-fit:contain}.checkpoint-card{padding:15px}.causeway-heading{margin:14px 0}}

/* Driving workspace: user-selected corridors, live LTA reports, public Google map. */
.drive-profiles{display:flex;gap:12px;margin-bottom:14px}.drive-profiles button{flex:1;text-align:left;padding:14px 17px;min-height:66px;border:1px solid #bfc4ce;border-radius:9px;background:transparent;color:inherit}.drive-profiles button[aria-pressed="true"]{background:#dde2ed;border-color:#717d98}.drive-profiles strong,.drive-profiles span{display:block}.drive-profiles strong{font-size:calc(15px * var(--text-scale, 1))}.drive-profiles span{font-size:calc(12px * var(--text-scale, 1));margin-top:6px}.drive-toolbar{display:flex;gap:10px;align-items:center;margin:14px 0}.drive-toolbar .camera-switches{flex:1}.drive-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;font-size:calc(12px * var(--text-scale, 1));padding:11px 14px;white-space:nowrap}.driving-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:16px}.drive-map-panel{border-radius:12px;border:1px solid #bfc4ce;overflow:hidden;background:#dde2ed}.drive-map-panel iframe{display:block;width:100%;height:360px;border:0}.drive-map-note{font-size:calc(11px * var(--text-scale, 1));line-height:1.5;color:#6d7484;margin:10px 0}.drive-alert-panel{padding:18px;border-radius:12px;border:1px solid #d3d7e0;background:#ffffff}.drive-alert-panel h2{font-size:calc(19px * var(--text-scale, 1));margin:0}.drive-alerts{max-height:285px;overflow:auto}.drive-alert{border-top:1px solid #d3d7e0;padding:13px 0}.drive-alert>span{font-size:calc(10px * var(--text-scale, 1));letter-spacing:.8px;color:#a3762b}.drive-alert p{font-size:calc(13px * var(--text-scale, 1));line-height:1.6;margin:6px 0}.drive-camera-panel{margin-top:12px;padding:14px 18px;border:1px solid #bfc4ce;border-radius:10px}.drive-camera-panel summary{cursor:pointer;min-height:30px;padding:6px 0}.drive-camera-panel select{display:block;min-height:44px;width:100%;max-width:550px;margin:10px 0}.drive-camera-panel img{display:block;width:100%;max-height:460px;object-fit:contain;background:#111;border-radius:8px}.drive-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.drive-fields input,.drive-fields select{width:100%}#drive-editor{margin-bottom:14px}.sidebar nav{overflow-y:auto;flex-shrink:1}.sidebar-bottom{flex-shrink:0}
[data-theme="dark"] .drive-profiles button,[data-theme="dark"] .drive-camera-panel,[data-theme="dark"] .drive-map-panel{border-color:#4e5463}[data-theme="dark"] .drive-profiles button[aria-pressed="true"]{background:#313b51}[data-theme="dark"] .drive-alert-panel{background:#1b1f29;border-color:#353a46}[data-theme="dark"] .drive-alert{border-color:#353a46}[data-theme="dark"] .drive-alert>span{color:#e3c277}[data-theme="dark"] .drive-map-note{color:#a3aab9}
@media(max-width:1000px){.drive-toolbar{flex-wrap:wrap}.driving-layout{grid-template-columns:1fr}.drive-fields{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.drive-fields{grid-template-columns:1fr}.drive-profiles{flex-wrap:wrap}.drive-profiles button{min-width:100%}}

#drive-map-expand{margin-top:10px;min-height:44px}.drive-map-expanded .drive-map-panel{position:fixed;inset:76px 18px 18px;z-index:51;background:#fff}.drive-map-expanded .drive-map-panel iframe{height:100%;width:100%}.drive-map-expanded #drive-map-expand{position:fixed;top:12px;right:20px;z-index:52;background:#f5f7fb;color:#25324b;margin:0}.drive-map-expanded:before{content:"";position:fixed;inset:0;background:#111827;z-index:50}

/* Shared top toolbar: page actions stay in one predictable, touchable row. */
.page>.page-heading,.page>.causeway-heading{display:none}.page{padding-top:18px}
.page-toolbar{display:flex;align-items:center;gap:8px}.page-toolbar button,.calendar-actions button{min-height:44px;white-space:nowrap;padding:10px 12px;font-size:calc(12px * var(--text-scale, 1))}.page-toolbar .text-button{border:1px solid #bfc4ce;border-radius:7px;background:transparent}
header{gap:12px}.header-right{gap:10px}header .date{font-size:calc(26px * var(--text-scale, 1));white-space:nowrap}.page-toolbar #drive-map-expand{margin:0}.page-toolbar #change-stop svg{display:none}
.driving-map-overlay #drive-map-expand{position:fixed;top:12px;right:20px;z-index:52;background:#f5f7fb;color:#25324b;margin:0}
[data-theme="dark"] #drive-map{filter:invert(.9) hue-rotate(180deg) brightness(.9) contrast(.95)}
[data-theme="light"] #drive-map{filter:none}
@media(max-width:1100px){header{flex-wrap:wrap}.header-right{flex-wrap:wrap}header .date{font-size:calc(25px * var(--text-scale, 1))}}
@media(max-width:600px){.page-toolbar{flex-wrap:wrap}.header-right{justify-content:flex-start}.page-toolbar button{min-height:44px}}

.causeway-route-maps iframe{display:block;width:100%;height:330px;border:0;border-radius:8px;background:#dfe2e8}.causeway-route-maps .checkpoint-title h2{font-size:calc(18px * var(--text-scale, 1))}.causeway-route-maps button{min-height:44px}.causeway-map-expanded{position:fixed;inset:12px;z-index:60;display:flex;flex-direction:column}.causeway-map-expanded iframe{flex:1;height:auto;min-height:0}[data-theme="dark"] .causeway-route-maps iframe{filter:invert(.9) hue-rotate(180deg) brightness(.9) contrast(.95)}

.causeway-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.causeway-stage .causeway-grid{display:block}.causeway-selector{margin:0 0 14px;align-items:center}.causeway-selector button{flex:0 1 200px}.causeway-selector span{margin-left:auto;font-size:calc(12px * var(--text-scale, 1));color:#6d7484}.causeway-stage #causeway-cards .checkpoint-card{display:flex;flex-direction:column}.causeway-stage .camera-preview{order:1;height:290px}.causeway-stage .camera-caption{order:2}.causeway-stage .camera-switches{order:3}.causeway-stage .checkpoint-times{order:4;margin-top:14px}.causeway-stage .queue-note{order:5;margin-bottom:0}.causeway-stage .checkpoint-times strong{font-size:calc(24px * var(--text-scale, 1))}.causeway-stage .causeway-route-maps iframe{height:470px}.causeway-stage .causeway-map-expanded iframe{height:auto}.causeway-stage .camera-preview img{height:100%;object-fit:contain}[data-theme="dark"] .causeway-selector span{color:#a3aab9}@media(max-width:900px){.causeway-stage{grid-template-columns:1fr}.causeway-selector{flex-wrap:wrap}.causeway-selector span{margin-left:0}}
/* Home: prioritise readable departures and practical weather details. */
#home .home-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#home .home-card{min-width:0;min-height:320px;padding:22px;display:flex;flex-direction:column;align-items:stretch}
#home .home-card>.eyebrow{margin-bottom:18px;letter-spacing:1.2px}
#home .home-card .badge{align-self:flex-start;margin:0 0 14px}
#home .home-stop{line-height:1.5;margin-bottom:14px}
#home .home-bus-labels,#home .home-departure{display:grid;grid-template-columns:.8fr 1fr 1fr;gap:8px;align-items:center;text-align:right}
#home .home-bus-labels{font-size:calc(10px * var(--text-scale, 1));color:#5e6473;padding:5px 0;text-transform:uppercase;letter-spacing:.7px}
#home .home-bus-labels> :first-child,#home .home-departure> :first-child{text-align:left}
#home .home-departure{padding:12px 0}
#home .home-departure strong{font-size:calc(25px * var(--text-scale, 1))}
#home .home-departure span{font-size:calc(18px * var(--text-scale, 1));font-variant-numeric:tabular-nums}
#home .home-departure span:last-child{font-size:calc(15px * var(--text-scale, 1));color:#5e6473}
#home .home-weather{margin:6px 0 10px;gap:16px}
#home .home-unit{font-size:calc(23px * var(--text-scale, 1));letter-spacing:0;margin-left:3px}
#home .home-condition{margin:0 0 20px;font-size:calc(18px * var(--text-scale, 1))}
#home .home-weather-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid #c1c7d5;padding:16px 0 20px}
#home .home-weather-facts strong{display:block;font-size:calc(21px * var(--text-scale, 1));font-weight:normal;margin-top:5px}
#home .home-card-source{margin-top:auto;padding-top:14px}
[data-theme="dark"] #home .home-bus-labels,[data-theme="dark"] #home .home-departure span:last-child{color:#a3aab9}
[data-theme="dark"] #home .home-weather-facts{border-color:#495061}
@media(min-width:1400px){#home .home-grid{grid-template-columns:1.25fr 1fr 1fr}}
@media(max-width:1100px) and (min-width:601px){#home .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#home .home-bus{grid-column:1/-1}}
@media(max-width:600px){#home .home-grid{grid-template-columns:1fr}#home .home-card{min-height:0;padding:20px}#home .home-weather>strong{font-size:calc(50px * var(--text-scale, 1))}}
#home .home-summary-row{padding:13px 0;border-bottom:1px solid #d3d7e0;overflow-wrap:anywhere}
#home .home-summary-row strong{display:block;font-size:calc(18px * var(--text-scale, 1));font-weight:normal;margin-bottom:5px}
#home .home-summary-row:last-of-type{margin-bottom:14px}
.task-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #d3d7e0;padding:12px 0}
.settings-card .task-row label{display:flex;align-items:center;gap:12px;margin:0;font-size:calc(16px * var(--text-scale, 1));overflow-wrap:anywhere}
.settings-card .task-row input{width:20px;min-height:20px;flex-shrink:0}
.task-done{text-decoration:line-through;opacity:.6}
[data-theme="dark"] #home .home-summary-row,[data-theme="dark"] .task-row{border-color:#353a46}
/* Put travel first; keep weather a compact secondary summary. */
#home .home-grid{align-items:start;grid-template-columns:repeat(3,minmax(0,1fr))}
#home .home-card{min-height:0;padding:18px}
#home .home-driving,#home .home-causeway{background:#dee3ed;border-color:#9da6ba}
#home .home-traffic-route{padding:12px 0;border-bottom:1px solid #c1c7d5;overflow-wrap:anywhere}
#home .home-travel-time{display:block;font-size:calc(38px * var(--text-scale, 1));line-height:1.2;margin:8px 0;font-variant-numeric:tabular-nums}
#home .home-travel-time span{font-size:calc(16px * var(--text-scale, 1));font-weight:normal}
#home .home-today,#home .home-tomorrow{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;padding:14px}
#home .home-today>.eyebrow,#home .home-tomorrow>.eyebrow{grid-column:1/-1;margin:0 0 4px}
#home .home-today .home-weather,#home .home-tomorrow .home-weather{margin:0;gap:6px}
#home .home-today .home-weather>strong,#home .home-tomorrow .home-weather>strong{font-size:calc(30px * var(--text-scale, 1));letter-spacing:-1px}
#home .home-today .forecast-icon,#home .home-tomorrow .forecast-icon{font-size:calc(26px * var(--text-scale, 1));margin:0}
#home .home-today .home-condition,#home .home-tomorrow .home-condition{font-size:calc(12px * var(--text-scale, 1));margin:0;align-self:center}
#home .home-today .home-weather-facts,#home .home-tomorrow .home-weather-facts{grid-column:1/-1;padding:6px 0;gap:8px}
#home .home-today .home-weather-facts strong,#home .home-tomorrow .home-weather-facts strong{font-size:calc(15px * var(--text-scale, 1));margin-top:0}
#home .home-today .home-card-source,#home .home-tomorrow .home-card-source{grid-column:1/-1;padding:0;font-size:calc(10px * var(--text-scale, 1))}
[data-theme="dark"] #home .home-driving,[data-theme="dark"] #home .home-causeway{background:#252a37;border-color:#495369}
[data-theme="dark"] #home .home-traffic-route{border-color:#495369}
@media(max-width:1100px) and (min-width:601px){#home .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#home .home-bus{grid-column:auto}}
@media(max-width:600px){#home .home-grid{grid-template-columns:1fr}}

/* Driving camera previews and full-screen viewer. */
.drive-camera-panel h2{margin:0;font-size:calc(19px * var(--text-scale, 1))}.drive-camera-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin:14px 0}.drive-camera-card{min-width:0}.drive-camera-preview{display:block;width:100%;padding:0;border:0;border-radius:8px;overflow:hidden;background:#181b23;color:#fff;cursor:pointer;min-height:120px}.drive-camera-panel .drive-camera-preview img{width:100%;height:140px;object-fit:cover;border-radius:0}.drive-camera-card strong{display:block;margin-top:10px;font-size:calc(13px * var(--text-scale, 1))}.drive-camera-card .outline{min-height:44px}.drive-camera-card .help{font-size:calc(11px * var(--text-scale, 1))}.drive-camera-preview:focus-visible{outline:3px solid #576b9b;outline-offset:3px}
#drive-camera-dialog{box-sizing:border-box;position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:20px;background:#111827;color:#fff;border:0}#drive-camera-dialog[open]{display:flex;flex-direction:column;gap:12px}#drive-camera-dialog::backdrop{background:#111827}.drive-camera-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.drive-camera-dialog-heading h2{font-size:calc(20px * var(--text-scale, 1));margin:0}.drive-camera-dialog-heading button{flex-shrink:0;min-height:44px;background:#f5f7fb;color:#25324b}#drive-camera-image{flex:1;min-height:0;width:100%;object-fit:contain}#drive-camera-caption{color:#c4cad7;margin:0}@media(max-width:600px){.drive-camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.drive-camera-dialog-heading h2{font-size:calc(16px * var(--text-scale, 1))}#drive-camera-dialog{padding:12px}}
#home .home-traffic-alerts{padding-top:14px;margin-top:12px;border-top:1px solid #c1c7d5}
#home .home-traffic-alerts>strong{font-size:calc(14px * var(--text-scale, 1))}
#home .home-traffic-alerts p{font-size:calc(12px * var(--text-scale, 1));line-height:1.5;margin:8px 0;overflow-wrap:anywhere}
[data-theme="dark"] #home .home-traffic-alerts{border-color:#495369}
/* Combined information cards keep related details together. */
#home .home-weather{background:#dde2ed}
#home .home-paired-weather{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#home .home-paired-weather>div+div{border-left:1px solid #c1c7d5;padding-left:14px}
#home .home-paired-weather>div>strong{font-size:calc(14px * var(--text-scale, 1))}
#home .home-weather-reading{display:flex;align-items:center;gap:8px;margin:10px 0 0}
#home .home-weather-reading strong{font-size:calc(32px * var(--text-scale, 1));line-height:1.1;font-weight:normal}
#home .home-weather-reading>span{font-size:calc(26px * var(--text-scale, 1))}
#home .home-paired-weather p{font-size:calc(13px * var(--text-scale, 1));margin:8px 0;line-height:1.4}
#home .home-paired-weather small{font-size:calc(11px * var(--text-scale, 1))}
#home .home-result-block+.home-result-block{border-top:1px solid #d3d7e0;margin-top:16px;padding-top:16px}
#home .home-result-block>strong{font-size:calc(17px * var(--text-scale, 1));display:block;margin-bottom:4px}
#home .home-prize-ranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
#home .home-prize-ranks b{font-size:calc(23px * var(--text-scale, 1));letter-spacing:1px;font-variant-numeric:tabular-nums}
#home .home-result-balls{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
#home .home-result-balls b{display:grid;place-items:center;min-width:32px;height:32px;border-radius:50%;background:#dbe0ed;font-size:calc(16px * var(--text-scale, 1))}
#home .home-calendar .home-summary-row:first-of-type{border-left:3px solid #6a7693;padding-left:12px}
#home .home-calendar .home-summary-row strong,#home .home-tasks .home-summary-row strong{font-size:calc(16px * var(--text-scale, 1))}
#home .home-summary-row{padding:10px 0}
[data-theme="dark"] #home .home-weather{background:#292f3d}
[data-theme="dark"] #home .home-result-balls b{background:#333a4b;color:#dbe0ed}
[data-theme="dark"] #home .home-result-block+.home-result-block,[data-theme="dark"] #home .home-paired-weather>div+div{border-color:#495061}
.news-strip{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #d5d8df;min-width:0}
.news-brand{color:#b5252b;text-decoration:none;font-size:calc(20px * var(--text-scale, 1));font-weight:bold;flex-shrink:0}.news-brand span{display:block;font-size:calc(8px * var(--text-scale, 1));letter-spacing:1px;margin-top:3px}
.news-copy{flex:1;min-width:0}.news-copy>a{color:inherit;text-decoration:none;font-size:calc(14px * var(--text-scale, 1));line-height:1.5;display:block;overflow-wrap:anywhere}.news-copy>a:hover{text-decoration:underline}.news-copy small{display:block;font-size:calc(10px * var(--text-scale, 1));color:#717680;margin-top:3px}#news-message{font-size:calc(13px * var(--text-scale, 1));color:#717680}
.news-controls{display:flex;gap:4px}.news-controls button{min-width:36px;min-height:44px;padding:6px;border:1px solid #bfc4ce;border-radius:6px;background:transparent;color:inherit;font-size:calc(12px * var(--text-scale, 1))}
[data-theme="dark"] .news-strip{border-color:#353a46}[data-theme="dark"] .news-brand{color:#ff8588}[data-theme="dark"] .news-copy small,[data-theme="dark"] #news-message{color:#a3aab9}[data-theme="dark"] .news-controls button{border-color:#495061}
@media(max-width:600px){.news-strip{gap:10px;flex-wrap:wrap}.news-copy{flex-basis:calc(100% - 65px)}.news-controls{margin-left:auto}.news-copy>a{font-size:calc(13px * var(--text-scale, 1))}}
.home-news-panel{background:#ffffff;border:1px solid #d3d7e0;border-radius:12px;padding:16px 20px;margin:18px 0}
.news-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.news-list-heading h2{font-size:calc(18px * var(--text-scale, 1));color:#b5252b;font-weight:bold}.news-list-heading h2 span{font-size:calc(13px * var(--text-scale, 1));font-weight:normal;color:#5e6473;margin-left:10px}
.news-headline-list{max-height:250px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 6px 0 0}.news-headline-list ol{margin:0;padding-left:30px}.news-headline-list li{padding:12px 8px;border-bottom:1px solid #d9dce4;font-size:calc(14px * var(--text-scale, 1));line-height:1.5}.news-headline-list a{color:inherit;text-decoration:none;display:block}.news-headline-list a:hover{text-decoration:underline}.news-headline-list time{display:block;font-size:calc(11px * var(--text-scale, 1));color:#717680;margin-top:4px}.news-full-list{max-height:65vh;background:#ffffff;border:1px solid #d3d7e0;border-radius:12px;padding:12px 20px}.news-full-list li{font-size:calc(17px * var(--text-scale, 1));padding:16px 8px}
[data-theme="dark"] .home-news-panel,[data-theme="dark"] .news-full-list{background:#1b1f29;border-color:#353a46}[data-theme="dark"] .news-headline-list li{border-color:#353a46}[data-theme="dark"] .news-headline-list time,[data-theme="dark"] .news-list-heading h2 span{color:#a3aab9}[data-theme="dark"] .news-list-heading h2{color:#ff8588}
@media(max-width:600px){.home-news-panel{padding:14px}.news-list-heading h2 span{display:block;margin:4px 0 0}.news-full-list{padding:8px 12px}}
@media(min-width:601px) and (max-height:850px){.sidebar{padding-top:18px;padding-bottom:14px}.sidebar nav{margin-top:14px;min-height:0}.sidebar .nav{min-height:44px;padding-top:8px;padding-bottom:8px;margin-bottom:3px;font-size:calc(16px * var(--text-scale, 1))}.sidebar-bottom{padding-top:12px}.sidebar-rule{margin:12px 0}}
.news-scroll-controls{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}.news-scroll-controls .outline{min-height:36px;padding:6px 12px}
/* Compact Home feed, with a larger readable article preview on demand. */
.home-news-panel{padding:10px 16px;margin:12px 0;position:relative}
.home-news-panel .news-list-heading{margin-bottom:4px}.home-news-panel .news-list-heading .outline{min-height:36px;padding:6px 12px}
#home-news-list{max-height:116px}.home-news-panel .news-headline-list li{padding:7px 6px;font-size:calc(13px * var(--text-scale, 1))}.home-news-panel .news-headline-list time{font-size:calc(10px * var(--text-scale, 1));margin-top:1px}
.home-news-panel .news-scroll-controls{margin-top:4px}.home-news-panel #home-news-status{display:block;font-size:calc(10px * var(--text-scale, 1));margin:4px 0 0}
.news-preview{position:fixed;inset:0;z-index:1000;background:rgba(10,20,15,.72);display:flex;align-items:center;justify-content:center;padding:20px}
.news-preview-panel{width:100%;max-width:720px;max-height:90vh;overflow-y:auto;background:#ffffff;color:#25324b;border:1px solid #bfc4ce;border-radius:14px;padding:24px}
.news-preview-panel h2{font-size:calc(25px * var(--text-scale, 1));line-height:1.35;margin:20px 0 8px}.news-preview-source{color:#b5252b}.news-preview-panel #news-preview-summary{font-size:calc(17px * var(--text-scale, 1));line-height:1.7;margin:20px 0 26px}.news-preview-panel a.solid{display:inline-block;text-decoration:none}.news-preview-open{overflow:hidden}
[data-theme="dark"] .news-preview-panel{background:#1b1f29;color:#e3e6ec;border-color:#495061}[data-theme="dark"] .news-preview-source{color:#ff8588}
@media(max-width:600px){.news-preview{padding:12px}.news-preview-panel{padding:18px}.news-preview-panel h2{font-size:calc(21px * var(--text-scale, 1))}}
/* News belongs in the same grid as Calendar and Bus arrivals. */
#home-news-slot{min-width:0}
#home-news-slot .home-news-panel{margin:0;padding:18px;width:100%;border-radius:13px}
#home-news-slot .news-list-heading{align-items:flex-start;margin-bottom:12px}
#home-news-slot .news-list-heading h2{font-size:calc(17px * var(--text-scale, 1));margin:0}
#home-news-slot .news-list-heading h2 span{display:block;margin:5px 0 0;font-size:calc(11px * var(--text-scale, 1))}
#home-news-slot #home-news-list{max-height:220px}
#home-news-slot .news-headline-list li{font-size:calc(13px * var(--text-scale, 1));padding:10px 4px}
#home-news-slot .news-scroll-controls{margin-top:10px}
#home-news-slot #home-news-status{line-height:1.5;margin-top:10px}
/* Read-only photo headlines: no article links or preview pop-ups. */
#home-news-slot #home-news-list{max-height:305px}
.news-headline-list ol{list-style:none;padding-left:0}
.news-headline-list .news-photo-story{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:start;padding:12px 0}
.news-photo-story img,.news-photo-missing{width:110px;height:78px;object-fit:cover;border-radius:6px;background:#dadee8}
.news-photo-missing{display:flex;align-items:center;justify-content:center;color:#a6262c;font-weight:bold;letter-spacing:1px}
.news-story-copy h3{font-size:calc(15px * var(--text-scale, 1));font-weight:500;line-height:1.45;margin:0 0 6px;color:inherit}
#home-news-slot .news-photo-story{padding:12px 0}#home-news-slot .news-story-copy h3{font-size:calc(15px * var(--text-scale, 1))}
.news-full-list .news-photo-story{grid-template-columns:200px minmax(0,1fr);gap:20px}.news-full-list .news-photo-story img,.news-full-list .news-photo-missing{width:200px;height:125px}.news-full-list .news-story-copy h3{font-size:calc(20px * var(--text-scale, 1))}
[data-theme="dark"] .news-photo-missing{background:#333a4b;color:#ff8588}
@media(max-width:600px){.news-full-list .news-photo-story{grid-template-columns:110px minmax(0,1fr);gap:12px}.news-full-list .news-photo-story img,.news-full-list .news-photo-missing{width:110px;height:78px}.news-full-list .news-story-copy h3{font-size:calc(16px * var(--text-scale, 1))}}

/* Our Day View: house roof and M monogram for the frame branding. */
.sidebar .mhome-brand{gap:9px;letter-spacing:-.6px;font-size:calc(21px * var(--text-scale, 1));white-space:nowrap}.mhome-mark{display:block;width:40px;height:40px;flex-shrink:0}.mhome-wordmark{font-weight:600}@media(max-width:800px){.sidebar .mhome-brand{justify-content:center}.mhome-mark{width:38px;height:38px}}

/* Language controls and room for translated labels. */
.language-card{margin-bottom:20px}.language-card h2{margin-top:0}.language-card select{max-width:520px}.language-card label{margin-top:12px}html:not([lang="en"]):not([lang="en-SG"]) .sidebar .nav{overflow-wrap:anywhere;font-size:calc(16px * var(--text-scale, 1));line-height:1.5}html[lang="ta-SG"] .sidebar .nav{font-size:calc(14px * var(--text-scale, 1))}html:not([lang="en"]):not([lang="en-SG"]) header{flex-wrap:wrap}html:not([lang="en"]):not([lang="en-SG"]) header .date{white-space:normal;font-size:calc(23px * var(--text-scale, 1))}html:not([lang="en"]):not([lang="en-SG"]) .header-right{flex-wrap:wrap}html:not([lang="en"]):not([lang="en-SG"]) .page-toolbar{flex-wrap:wrap}.language-card select option{font-size:calc(16px * var(--text-scale, 1))}
@media(min-width:801px){html[lang="ta-SG"] .sidebar{width:210px}html[lang="ta-SG"] main{margin-left:210px}html[lang="ta-SG"] .sidebar .nav{overflow-wrap:normal;font-size:calc(14px * var(--text-scale, 1))}}
html[lang="ta-SG"] .settings-card h2{font-size:calc(20px * var(--text-scale, 1));line-height:1.5;overflow-wrap:anywhere}
/* Compact, labelled icon control for the Home card picker. */
.outline.cards-icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:8px;flex-shrink:0}
.outline.cards-icon-button svg{width:24px;height:24px}

/* Saved, touch-friendly masonry layout. Each column fills independently. */
#home .home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;position:relative;min-height:120px}
#home .home-tile{position:relative;min-width:0;outline-offset:3px}
#home .home-grid.has-masonry-layout{display:block}
#home .has-masonry-layout .home-tile{position:absolute}
#home .home-tile[data-open]{cursor:pointer}
#home .home-tile-body{overflow:auto;border-radius:13px}
#home .home-tile-body>.home-card{width:100%;margin:0;min-height:0}
#home .home-tile-body>.home-bus{min-height:180px}
#home .home-tile[data-sized] .home-card{min-height:100%}
.home-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.home-card-header>.eyebrow{font-size:calc(10px * var(--text-scale, 1));line-height:1.5;letter-spacing:1px}
.home-header-meta{font-size:calc(10px * var(--text-scale, 1));line-height:1.5;text-align:right;max-width:55%;color:#687081;letter-spacing:0;text-transform:none}
.home-header-meta small{font-size:calc(11px * var(--text-scale, 1))!important}
[data-theme="dark"] .home-header-meta{color:#a3aab9}
.home-edit-tools,.home-resize-handle{display:none}
.is-arranging .home-edit-tools{display:flex;gap:4px;align-items:center;flex-wrap:wrap;padding:6px;background:#d9dee9;border-radius:10px 10px 0 0}
.home-edit-tools button,.home-resize-handle{border:1px solid #8d96ac;border-radius:6px;background:#f1f3f8;color:#26314c;min-height:38px;padding:6px 9px;font-size:calc(12px * var(--text-scale, 1))}
.is-arranging .home-resize-handle{display:block;width:100%;touch-action:none;cursor:ns-resize}
.home-drag-handle{touch-action:none;cursor:grab;flex:1}
.is-arranging .home-tile{cursor:default!important}
.home-tile.is-dragging{z-index:10;opacity:.85;box-shadow:0 10px 30px #0004}
.home-tile.drop-target{outline:3px dashed #b5a35b}
.home-arrange-bar{display:flex;align-items:center;gap:16px;padding:12px 16px;margin-bottom:16px;border:1px solid #9ca4b8;border-radius:10px;background:#d9dee9;color:#26314c;font-size:calc(14px * var(--text-scale, 1))}
.home-arrange-bar[hidden]{display:none}
.home-arrange-bar>span:first-child{flex:1}
#home-layout-status{font-size:calc(12px * var(--text-scale, 1))}
#home-news-slot .home-news-panel{box-sizing:border-box}
.home-tile[data-sized] #home-news-slot,.home-tile[data-sized] #home-news-slot .home-news-panel{height:100%}
.home-tile[data-sized] #home-news-slot .home-news-panel{display:flex;flex-direction:column}
.home-tile[data-sized] #home-news-slot #home-news-list{flex:1;min-height:0;max-height:none;overflow:auto}
[data-theme="dark"] .home-arrange-bar,[data-theme="dark"] .home-edit-tools{background:#303542;color:#e3e6ec}
@media(max-width:600px){.home-arrange-bar{flex-wrap:wrap}.home-arrange-bar>span:first-child{flex-basis:100%}}

/* Keep Settings accessible independently of the scrolling navigation. */
.sidebar-bottom{display:block;flex-shrink:0;margin-top:auto;padding-top:10px;background:inherit}
.sidebar-bottom .nav{margin:0}.sidebar-bottom .sidebar-rule{margin:10px 0}
.sidebar-bottom .prototype{display:block;font-size:calc(10px * var(--text-scale, 1));line-height:1.7;letter-spacing:0}
@media(max-width:800px){.sidebar-bottom{padding:6px 0}.sidebar-bottom .prototype,.sidebar-bottom .sidebar-rule{display:none}}

.release-notes-button{display:block;min-height:44px;width:100%;padding:8px 0;text-align:left;border:0;background:transparent;color:#d2d9e9;font-size:calc(13px * var(--text-scale, 1));text-decoration:underline;text-underline-offset:4px}
.release-notes-overlay{position:fixed;inset:0;z-index:100;background:rgba(5,15,10,.72);display:flex;align-items:center;justify-content:center;padding:24px}
.release-notes-panel{width:760px;max-width:100%;max-height:90vh;background:#f5f7fb;color:#25324b;border:1px solid #bfc4ce;border-radius:18px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 80px #0005}
.release-notes-heading{padding:24px;gap:20px;flex-shrink:0;align-items:flex-start}.release-notes-heading h2{font-size:calc(27px * var(--text-scale, 1));margin:10px 0}.release-notes-heading p{font-size:calc(12px * var(--text-scale, 1));margin:0;color:#646974}.release-notes-heading button{font-size:calc(15px * var(--text-scale, 1));min-width:100px}
.release-notes-content{overflow:auto;padding:0 28px 24px;overscroll-behavior:contain}.release-notes-content article{padding:24px 0;border-bottom:1px solid #cfd3dd}.release-notes-content article:last-child{border:0;padding-bottom:0}.release-notes-content h3{font-size:calc(20px * var(--text-scale, 1));font-weight:500;margin:12px 0}.release-notes-content ul{padding-left:22px;margin-bottom:0}.release-notes-content li{font-size:calc(16px * var(--text-scale, 1));line-height:1.6;margin:10px 0}.release-notes-limitation{padding:14px;border-radius:8px;background:#dee3ed;font-size:calc(14px * var(--text-scale, 1))}
[data-theme="dark"] .release-notes-panel{background:#191e2b;color:#e3e6ec;border-color:#454d60}[data-theme="dark"] .release-notes-heading p{color:#b1b7c5}[data-theme="dark"] .release-notes-limitation{background:#303542}[data-theme="dark"] .release-notes-content article{border-color:#454d60}
@media(max-width:800px){.release-notes-button{font-size:calc(11px * var(--text-scale, 1));text-align:center}.release-notes-heading{padding:18px}.release-notes-heading h2{font-size:calc(22px * var(--text-scale, 1))}.release-notes-overlay{padding:12px}}

.sidebar-bottom .release-build-button{display:block;width:100%;min-height:44px;padding:3px 0;border:0;background:transparent;color:#9199ad;text-align:left;cursor:pointer}.release-build-button:hover #build-label{text-decoration:underline}
.routine-settings{margin-bottom:24px}.routine-settings fieldset{border:1px solid #a0a4ad;border-radius:8px;padding:16px;margin:16px 0;display:flex;flex-wrap:wrap;gap:12px;align-items:end}.routine-settings fieldset label{margin:0;flex:1;min-width:100px}.routine-days{display:flex;flex-wrap:wrap;gap:10px;width:100%}.routine-settings .routine-days label{display:flex;align-items:center;gap:5px;min-width:65px;flex:0}.routine-settings input[type=checkbox]{width:20px;min-height:20px}.routine-settings button{min-height:44px;padding:10px 14px;border:1px solid #a0a4ad;border-radius:6px;cursor:pointer}.routine-settings input[type=color]{padding:4px;max-width:160px}#scheduled-sleep{position:fixed;inset:0;width:100%;height:100%;background:#000;border:0;z-index:2147483647;cursor:default}#scheduled-sleep[hidden]{display:none}

/* Keep the date, clock and page controls outside the page's scrolling area. */
html,body{height:100%;overflow:hidden}
main{height:100vh;display:flex;flex-direction:column;overflow:hidden}
main>header{flex:0 0 auto;position:relative;z-index:2}
main>.page{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-bottom:24px;-webkit-overflow-scrolling:touch}
main>footer{flex:0 0 auto;margin-top:0}
.device-settings-card{margin-bottom:24px}.device-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.device-actions a,.release-update a,.device-settings-card>a{text-decoration:none}
.device-settings-card details{margin-top:24px}.device-settings-card summary{cursor:pointer;min-height:44px;padding:12px 0}
.release-update{flex:0 0 auto;padding:16px 28px;border-bottom:1px solid #bfc4ce}.release-update h3{margin:0}.release-update p{margin:8px 0 12px;font-size:16px}.release-notes-content{min-height:0}

.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;background:transparent;border:0;color:inherit;border-radius:8px}.notification-bell svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notification-dot{position:absolute;top:5px;right:5px;width:10px;height:10px;border-radius:50%;background:#d44e36;border:2px solid #f5f7fb}.notification-panel{width:620px}.notification-content{padding:4px 28px 24px;overflow:auto;min-height:0}.notification-content h3{font-size:22px}.notification-content .solid{display:inline-flex;text-decoration:none}.notification-content article{padding-bottom:12px;border-bottom:1px solid #bfc4ce}[data-theme="dark"] .notification-dot{border-color:#181c25}
/* Two independently refreshed bus locations and route detail. */
#theme-toggle,.weather-toolbar{width:44px;min-width:44px;padding:6px;font-size:24px;line-height:1}
.bus-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.bus-layout .arrivals-card{min-width:0}.bus-layout .stop-header{flex-wrap:wrap;gap:10px}.bus-layout .stop-title{min-width:110px}.bus-layout .stop-title h2{font-size:22px}.bus-layout .bus-row{grid-template-columns:1fr 1fr 1fr 1fr}.bus-layout .arrival-time,.bus-layout .arrival-time.next{font-size:21px;letter-spacing:-.5px}.bus-layout .table-head{font-size:8px;letter-spacing:.4px}.bus-service{border:0;background:none;color:inherit;text-align:left;padding:0;cursor:pointer}.bus-service:focus-visible{outline:2px solid #40568a;outline-offset:4px}.bus-changed>span:first-child{color:#168047}.bus-dialog{width:min(850px,90vw);max-height:85vh;overflow:auto;border:1px solid #979ca8;border-radius:16px;padding:24px;background:#ffffff;color:#25314e}.bus-dialog::backdrop{background:#0008}.bus-dialog>form[method=dialog]{text-align:right}.bus-dialog label{display:block;margin:16px 0}.bus-dialog input,.bus-dialog select{display:block;padding:12px;margin-top:8px;max-width:100%;border:1px solid #979ca8;border-radius:6px}.bus-route-dialog #bus-map svg{width:100%;max-height:380px;background:#dfe3ed}.bus-route-dialog #bus-map a{font-size:11px}.bus-route-dialog ol{columns:2;font-size:13px;line-height:1.8}.selected-stop{font-weight:bold;color:#bb4c16}[data-theme=dark] .bus-dialog{background:#1c202a;color:#d8dde9}[data-theme=dark] .bus-changed>span:first-child{color:#64dc95}@media(max-width:700px){.bus-layout{grid-template-columns:1fr}.bus-route-dialog ol{columns:1}}
.bus-layout .bus-row{display:grid;grid-template-columns:28% 24% 24% 24%;gap:0}.bus-layout .bus-row>div,.bus-layout .bus-row>div:nth-child(2){width:auto;min-width:0;text-align:center}.bus-layout .arrival-time{font-size:clamp(14px,1.5vw,21px)}.bus-layout .arrival-time.next{font-size:clamp(14px,1.5vw,21px)}.bus-layout .bus-service{min-height:44px}.bus-layout .arrivals-footer{min-height:45px}
/* Fluid workspace sizing follows the available display area. */
main{max-width:none;height:100dvh;padding:clamp(16px,2.5vh,32px) clamp(16px,2.2vw,40px)}
.sidebar{overflow-y:auto}
@media(min-width:801px){.sidebar{width:clamp(160px,14vw,208px)}main{margin-left:clamp(160px,14vw,208px)}}
@media(max-width:600px){main{padding:12px}main>header{flex-wrap:wrap;gap:12px}.header-right{flex-wrap:wrap;max-width:100%}}
.bus-map-controls,.bus-picker-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}.bus-map-controls button{min-width:44px;min-height:44px}.bus-map-canvas{touch-action:none;overflow:hidden;background:#dfe3ed;border:1px solid #9ca8bb;border-radius:8px;user-select:none}.bus-map-canvas svg{display:block;width:100%;height:auto;max-height:none!important}.bus-map-canvas [data-marker]{cursor:pointer}.bus-map-canvas [data-marker]:focus{outline:none;filter:drop-shadow(0 0 3px #000)}.bus-stop-picker{width:min(900px,94vw)}.map-stop-confirm{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:0;background:#fff;padding:12px 0;border-top:1px solid #9ca8bb}.stop-result{display:block;width:100%;text-align:left;background:none;color:inherit;border:0;border-bottom:1px solid #ccd1dc;padding:14px;min-height:44px}.bus-live-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.bus-live-card{padding:12px;border:1px solid #b4bfce;border-radius:10px}.bus-live-card strong,.bus-live-card span{display:block;margin-bottom:6px}.bus-live-card small{font-size:12px}.bus-live-card button{margin-top:8px}.bus-route-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.bus-map-canvas~a{display:block;font-size:11px;padding:5px 0}[data-theme=dark] .map-stop-confirm{background:#1c202a}@media(max-width:600px){.bus-live-cards{grid-template-columns:1fr}.bus-dialog{padding:14px}.map-stop-confirm{flex-wrap:wrap}}

#theme-toggle{border:0;border-radius:50%;box-shadow:none}

/* Header icons retain generous touch targets without boxed outlines. */
#weather-shortcut,#add-cards,#theme-toggle{border:0;box-shadow:none;background:transparent}
#weather-shortcut{display:inline-flex;align-items:center;gap:8px;width:auto;flex-shrink:0}
#header-temperature{font-size:20px;font-weight:400;line-height:1;white-space:nowrap}

/* Reclaim the footer strip for page content. */
main>footer{display:none}


/* Use the screen for readings and headlines, with compact panel spacing. */
main{padding:12px}
main>header{padding-bottom:12px}
main>.page{padding-bottom:0}
#home .home-card,#home-news-slot .home-news-panel{padding:12px}
#home .home-card-header{margin-bottom:10px}
#home .home-weather{gap:8px}
#home .home-stop{margin-bottom:8px}
#home .home-card-source{padding-top:8px}
#home .home-departure{padding:9px 0}
#home-news-slot .news-list-heading{margin-bottom:8px}
#home-news-slot .news-photo-story{grid-template-columns:84px minmax(0,1fr);gap:10px;padding:9px 0}
#home-news-slot .news-photo-story img,#home-news-slot .news-photo-missing{width:84px;height:62px}

/* Compact two-day Home weather summary; attribution and details remain on Weather. */
#home .home-weather{gap:0;align-self:start}
#home .home-weather .home-card-header{margin-bottom:8px;align-items:center}
#home .home-weather .home-header-meta{font-size:calc(11px * var(--text-scale, 1));font-weight:normal}
#home .home-weather .home-paired-weather{gap:12px}
#home .home-weather .home-paired-weather>div+div{padding-left:12px}
#home .home-weather-day-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
#home .home-weather-day-heading>strong{font-size:calc(13px * var(--text-scale, 1));padding-top:3px}
#home .home-weather-symbol{width:36px;height:36px;flex-shrink:0;margin-top:-2px}
#home .home-weather .home-weather-reading{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:2px 0 6px}
#home .home-weather .home-weather-reading>strong{font-size:calc(34px * var(--text-scale, 1));line-height:1;font-weight:normal;white-space:nowrap}
#home .home-weather .home-weather-condition{font-size:calc(11px * var(--text-scale, 1));line-height:1.3;overflow-wrap:normal}
#home .home-weather-rain{font-size:calc(11px * var(--text-scale, 1));line-height:1.4}
#home .home-weather-warning{margin-top:8px;color:#87541b}
[data-theme="dark"] #home .home-weather-warning{color:#f5ca85}

/* Large, glanceable two-day weather without secondary headings. */
#home .home-weather{padding:16px}
#home .home-weather-day-heading{align-items:center;flex-wrap:wrap}
#home .home-weather-day-heading>strong{font-size:calc(20px * var(--text-scale, 1));padding:0}
#home .home-weather-symbol{width:44px;height:44px;margin:0}
#home .home-weather-symbol.weather-sun{color:#d18a00;fill:#ffe086}
#home .home-weather-symbol.weather-rain{color:#008bb5;fill:#e4f9ff}
#home .home-weather-symbol.weather-storm{color:#8662ce;fill:#eee4ff}
#home .home-weather .home-weather-reading{display:block;margin:10px 0}
#home .home-weather .home-weather-reading>strong{display:block;font-size:calc(48px * var(--text-scale, 1));margin-bottom:10px}
#home .home-weather .home-weather-condition{display:block;font-size:calc(18px * var(--text-scale, 1));line-height:1.35}
#home .home-weather .home-paired-weather .home-weather-rain{font-size:calc(16px * var(--text-scale, 1));line-height:1.4}

/* Match every weather row across Today and Tomorrow. */
#home .home-weather-day-heading{display:flex;flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:8px}
#home .home-weather-day-heading>strong{line-height:1.25;white-space:nowrap}
#home .home-weather-symbol{height:44px;width:44px;flex:0 0 44px}
#home .home-weather .home-weather-reading{margin:10px 0}
#home .home-weather-day{display:flex;flex-direction:column}
#home .home-weather .home-weather-reading{flex:1;margin:6px 0 8px}
#home .home-weather .home-weather-condition{min-height:0}
#home .home-weather .home-weather-reading>strong{margin-bottom:6px}

#home .home-departure .home-bus-updated{color:#137b42;font-weight:600}
[data-theme="dark"] #home .home-departure .home-bus-updated{color:#64dc95}
#home-bus-refresh{display:block;margin-top:5px;font-size:12px}

/* Calendar includes early, late and all-day appointments. */
#calendar .week-timeline{height:816px}
#add-cards{white-space:nowrap;min-height:44px}

#home-bus-scroll{max-height:calc(200px * var(--text-scale, 1));overflow-y:auto;overscroll-behavior:contain;cursor:auto}
.home-bus-tools{display:flex;align-items:center;gap:8px}
#home-bus-view,#home-bus-focus{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font-size:21px;line-height:1;cursor:pointer}
#home-bus-view[aria-pressed="true"]{background:#f5c65b;color:#231b09;border-color:#f5c65b}

#home-bus-focus-dialog {
  box-sizing:border-box;
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  background:#112345;
  color:#f4f8ff;
}
#home-bus-focus-dialog[open] {display:flex;flex-direction:column;overflow:hidden}
.bus-focus-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px 24px;
  padding:clamp(14px,3vw,32px) clamp(16px,5vw,64px);
  background:#075acb;
}
.bus-focus-header h2 {margin:0;font-size:clamp(26px,4vw,52px)}
.bus-focus-header p {margin:4px 0 0;font-size:clamp(14px,2vw,22px)}
.bus-focus-actions {display:flex;align-items:center;gap:12px}
#bus-focus-timer {font-variant-numeric:tabular-nums}
#bus-focus-exit {
  min-height:44px;
  padding:0 14px;
  border:1px solid currentColor;
  border-radius:8px;
  background:#174689;
  color:inherit;
  cursor:pointer;
}
#bus-focus-content {flex:1;overflow:auto;padding:8px clamp(16px,5vw,64px);overscroll-behavior:contain}
.bus-focus-row {
  display:grid;
  grid-template-columns:minmax(0,.7fr) repeat(2,minmax(0,1fr));
  align-items:center;
  gap:12px;
  padding:clamp(12px,2vw,24px) 0;
  border-bottom:1px solid #395581;
}
.bus-focus-row strong,.bus-focus-arrival span {
  font-size:clamp(18px,5vw,64px);
  line-height:1.1;
  overflow-wrap:anywhere;
}
.bus-focus-arrival {display:grid;gap:4px;color:#d2e6ff}
.bus-focus-arrival small,.bus-focus-labels,.bus-focus-source {font-size:clamp(12px,1.65vw,20px);color:#bfd5f7}
