/* Atlas: a single continuous canvas with its controls attached to the journey. */
:root {--paper:#e7efe9;--ink:#122f26;--muted:#3c5e52;--accent:#065e46;--soft:#d3e2d4;--line:#9bb5a6;--white:#fffef5;--sea:#b8d5d1;--land-a:#fcf5dc;--land-b:#a3c49b;--terrain:#416b54;--panel:rgba(255,254,248,.96);--shadow:0 28px 90px #163a2228;--map-grid:#426d651a;--grain:rgba(255,255,240,.1)}
:root[data-background="sand"]{--paper:#eee7d7;--sea:#c9bea5;--land-a:#fff2d4;--land-b:#bdbe83}
:root[data-background="ice"]{--paper:#dfebef;--sea:#abcbdc;--land-a:#f3f7e1;--land-b:#aac7ae}
:root[data-background="rose"]{--paper:#f0e2db;--sea:#d9c4bf;--land-a:#fff2df;--land-b:#b3c9a2}
:root[data-theme="dark"]{color-scheme:dark;--paper:#0d211d;--ink:#f2f4dd;--muted:#b8ccbe;--accent:#9febba;--soft:#294b3b;--line:#64866f;--white:#172f26;--sea:#081f29;--land-a:#315c45;--land-b:#173d31;--terrain:#8cb28a;--panel:rgba(18,42,33,.96);--shadow:0 28px 90px #0005;--map-grid:#a2cbb01a;--grain:rgba(255,255,240,.02)}
:root[data-theme="dark"][data-background="sand"]{--sea:#252318;--land-a:#58603b;--land-b:#303e29}
:root[data-theme="dark"][data-background="ice"]{--sea:#081f30;--land-a:#345b58;--land-b:#173c3b}
:root[data-theme="dark"][data-background="rose"]{--sea:#2b1823;--land-a:#514c42;--land-b:#2c3b30}
html,body{width:100%;height:100%;overflow:hidden}body{background:var(--paper);transition:background .6s,color .6s}
button:focus-visible,a:focus-visible,input:focus-visible,[role="button"]:focus-visible,#map-canvas:focus-visible{outline-color:var(--accent)}
.map-space{position:fixed;inset:0;background:var(--sea);isolation:isolate;overflow:hidden;transition:background .8s}
.map-atmosphere{position:absolute;inset:-20%;background:radial-gradient(ellipse at 30% 30%,var(--grain),transparent 55%);pointer-events:none;animation:atmosphere-drift 16s ease-in-out infinite alternate;z-index:2}
#map-canvas{position:absolute;inset:0 445px 0 0;width:calc(100% - 445px);height:100%;outline-offset:-4px;touch-action:none;cursor:grab}
.is-dragging #map-canvas{cursor:grabbing}
.map-grid{opacity:.45;stroke:var(--map-grid);stroke-width:.55;vector-effect:non-scaling-stroke}
.land-stop-a{stop-color:var(--land-a)}.land-stop-b{stop-color:var(--land-b)}
.coastal-shelf{fill:none;stroke:var(--land-a);vector-effect:non-scaling-stroke;pointer-events:none}
.outer-shelf{stroke-width:30;opacity:.12}.inner-shelf{stroke-width:11;opacity:.35}
.land-shadow{fill:var(--terrain);opacity:.15;filter:url(#land-shadow-filter)}
.land-mass{fill:url(#land-fill);transition:fill .7s}
.coast-ink{fill:none;stroke:var(--terrain);stroke-width:1;vector-effect:non-scaling-stroke;opacity:.75}
.terrain-detail{transition:opacity .65s;pointer-events:none}
.terrain-relief{opacity:.38}
.terrain-lines{fill:none;stroke:var(--terrain);stroke-width:.5;opacity:.22;pointer-events:none}
.terrain-lines path{vector-effect:non-scaling-stroke}
:root[data-theme="dark"] .terrain-relief{opacity:.3}
:root[data-terrain="false"] .terrain-detail{opacity:0}
.region-labels{fill:var(--muted);font-size:15px;letter-spacing:.22em;opacity:.9;font-weight:500}
.region-labels .country-label{font-size:125px;letter-spacing:.25em;font-weight:500;opacity:.75;paint-order:stroke;stroke:var(--land-a);stroke-width:12;stroke-opacity:.4}
.region-labels .ocean-name{font-size:65px;letter-spacing:.22em;opacity:.55;display:none}
.map-places{display:none;font-size:12px;letter-spacing:.08em;opacity:1;pointer-events:none}
.atlas-place circle{fill:var(--muted);stroke:var(--land-a);stroke-width:1.5}
.atlas-place path{fill:none;stroke:var(--muted);stroke-width:.7;opacity:.6}
.atlas-place text{fill:var(--ink);paint-order:stroke;stroke:var(--land-a);stroke-width:4;stroke-linejoin:round}
.atlas-place.place-hidden{display:none}
.map-compass{pointer-events:none;color:var(--muted);opacity:.7}
.map-compass circle{fill:none;stroke:currentColor;stroke-width:.7;stroke-dasharray:1 5}
.map-compass path{fill:var(--ink)}.map-compass .compass-south{fill:var(--land-a);stroke:currentColor;stroke-width:.5}
.map-compass text{fill:var(--ink);font-size:11px;font-weight:600;letter-spacing:.1em}
.region-labels .sea-label{font-size:15px;letter-spacing:.65em;opacity:.65}.region-labels .river-label{font-size:10px;letter-spacing:.18em}
.map-route{opacity:.28;transition:opacity .7s}.map-route.active{opacity:1}
.map-route:not(.active){transition-duration:.24s}
.route-rail{stroke:var(--accent);stroke-width:3.2;vector-effect:non-scaling-stroke;stroke-linecap:round;filter:url(#route-ink-shadow)}
.route-glow{stroke:var(--accent);stroke-width:15;vector-effect:non-scaling-stroke;opacity:0;filter:url(#route-bloom);transition:opacity .7s}
.active .route-glow{opacity:.25;animation:route-breathe 4s ease-in-out infinite alternate}
.map-route:not(.active) .route-glow{transition-duration:.24s}
.route-flow{stroke:var(--accent);stroke-width:5;stroke-dasharray:2 28;stroke-linecap:round;vector-effect:non-scaling-stroke;animation:route-flow 10s linear infinite;opacity:0}.active .route-flow{opacity:.7}
.route-hit{stroke:transparent;stroke-width:24;vector-effect:non-scaling-stroke;cursor:pointer}
.map-station{cursor:pointer;outline:none}.station-aura{fill:var(--accent);opacity:.1;stroke:var(--accent);stroke-width:1;stroke-opacity:.3;transition:opacity .3s}
.station-ring{fill:var(--white);stroke:var(--accent);stroke-width:2}.station-core{fill:var(--accent)}
.station-leader{fill:none;stroke:var(--accent);opacity:.45;stroke-width:1}
.station-title{font-size:17px;font-weight:650;fill:var(--ink);paint-order:stroke;stroke:var(--land-a);stroke-width:5;stroke-linejoin:round}
.station-subtitle{font-size:11px;fill:var(--muted);paint-order:stroke;stroke:var(--land-a);stroke-width:4}
.map-station:hover .station-aura,.map-station:focus-visible .station-aura{opacity:.35}.map-station:focus-visible .station-ring{stroke-width:4}
.minor-hidden{display:none}
.floating-board .trip-label,.floating-board .trip-stem{display:none}
.atlas-caption{position:absolute;top:174px;left:36px;z-index:3;pointer-events:none}
.atlas-kicker{font-size:10px;letter-spacing:.2em;color:var(--muted)}
.atlas-caption h2{font-size:clamp(30px,3.1vw,48px);line-height:1.15;letter-spacing:.04em;font-weight:500;margin:12px 0;color:var(--ink)}
.atlas-caption h2 span{display:block;margin-top:14px;font-size:12px;font-weight:400;color:var(--muted);letter-spacing:.08em}
.map-tools{position:absolute;bottom:66px;left:32px;display:flex;align-items:center;gap:6px;z-index:4;padding:5px;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:0 6px 25px #122c1c08;backdrop-filter:blur(20px)}
.map-tools button{min-width:44px;min-height:44px;border-radius:14px;padding:10px 15px;font-size:12px;white-space:nowrap}.map-tools button:hover{background:var(--soft)}.map-tools button span{margin-left:8px;color:var(--accent)}
.zoom-tools{display:flex;border-left:1px solid var(--line);padding-left:4px}.zoom-tools button{font-size:20px;padding:6px}
.map-footnote{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:36px;right:480px;display:flex;justify-content:space-between;font-size:10px;gap:12px;color:var(--muted);pointer-events:none}
.workspace{position:fixed;inset:0;min-height:0;max-width:none;padding:0 32px;pointer-events:none;display:block}
.topbar{height:92px;border:0;pointer-events:auto;gap:20px;background:linear-gradient(var(--paper),transparent);position:relative;z-index:6}
.brand strong{font-size:23px}.brand-school{font-size:10px}.clock{margin-left:auto}.profile-button{min-height:46px;display:flex;align-items:center;gap:9px;border-radius:30px;padding:9px 16px;background:var(--panel);border:1px solid var(--line);font-size:13px;box-shadow:0 2px 10px #112a1905}
.profile-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
main{display:block}.controls{position:absolute;top:104px;left:32px;right:480px;padding:0;pointer-events:auto;z-index:5}
.line-picker{width:400px;max-width:100%;border:1px solid var(--line);background:var(--panel);box-shadow:0 5px 25px #18352108;backdrop-filter:blur(18px);border-radius:22px}
.line-picker button{font-size:13px;min-height:46px;border-radius:17px}.line-indicator{border-radius:17px;background:var(--soft);box-shadow:none}
.floating-board{position:absolute;pointer-events:auto;top:112px;right:28px;bottom:28px;width:405px;padding:24px 25px 16px;border:1px solid var(--line);border-radius:30px;background:var(--panel);box-shadow:var(--shadow);backdrop-filter:blur(26px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;overscroll-behavior:contain}
.sheet-grip{display:none}.board-controls{display:flex;flex-direction:column;gap:13px}
.directions{width:100%;background:var(--soft);gap:4px}.directions button{font-size:13px;min-height:44px;padding:8px 12px}.directions button span{padding:0 9px}.direction-indicator{background:var(--white);box-shadow:0 2px 5px #182e2010}
.date-control{justify-content:space-between;gap:8px}.date-label input{max-width:190px;min-height:42px;padding:7px 11px;font-size:14px;border:0;background:var(--soft);border-radius:12px}
#today{font-size:12px;min-height:44px}.board-space{display:block}.departure{display:block;padding:18px 0 15px}.eyebrow{font-size:11px;gap:10px}.service-tag{font-size:10px;padding:0;min-height:0;opacity:.7}.service-tag:after{display:none}
h1{font-size:29px;gap:12px;margin:12px 0 9px;line-height:1.2;white-space:normal;flex-wrap:wrap}.route-arrow{font-size:22px}.pickup{font-size:11px;line-height:1.8}.route-detail{font-size:10px;margin-left:6px}.gps-link{font-size:11px;min-height:36px;padding:7px 0;gap:5px}.gps-link small{font-size:9px}
.departure-face{display:grid;grid-template-columns:1fr auto;grid-template-areas:"label label" "time wait";align-items:end;column-gap:12px;margin-top:13px}.small-label{grid-area:label;font-size:10px;text-align:left;margin:0 0 5px}.hero-time{grid-area:time;font-size:64px;line-height:1.05;letter-spacing:-.055em;white-space:nowrap}.hero-time span{font-size:inherit}.hero-time .time-colon{padding:0}.hero-time.is-text{font-size:29px;line-height:1.4}.wait-line{grid-area:wait;white-space:normal;font-size:11px;text-align:right;margin:0 0 6px;line-height:1.5}.wait-line strong{font-size:22px}
.timeline-panel{margin:0;padding:14px 0 0;border-top:1px solid var(--line)}.section-heading{margin-bottom:0;gap:10px}.section-heading h2,.route-heading h2{font-size:12px;font-weight:600}.section-heading .quiet-button{font-size:10px;padding:7px 0;min-height:44px}.section-heading #trip-count{display:none}.timeline-figure{margin:0}#timeline{height:164px}.timeline-figure figcaption{font-size:9px;margin-top:-5px;line-height:1.6;gap:7px}.chart-legend{gap:8px}.axis-label{font-size:10px}.next-tag-label{font-size:12px}.now-label{font-size:11px}
.upcoming{padding:16px 0 14px;border-bottom:1px solid var(--line)}#schedule-status{font-size:9px}.trip-grid{gap:10px;margin-top:12px}.trip-grid li{padding-left:10px}.trip-grid li:first-child{padding-left:0}.trip-grid button{min-height:62px}.trip-grid time{font-size:25px}.trip-note{font-size:9px;line-height:1.5}.route-strip{padding:15px 0 5px}.route-heading .quiet-button{font-size:10px;padding:0;min-height:44px}.route-stops{margin:9px 0 10px}.route-stops strong{font-size:10px}.route-stops button span{font-size:9px}.route-stops li:before{width:7px;height:7px}.route-stops button{min-height:44px}.route-strip .route-heading{gap:10px}
footer{padding:15px 0 0;gap:10px;font-size:9px;border-top:1px solid var(--line);margin-top:4px;line-height:1.6}.service-message{margin:2px 0 14px;font-size:11px;border-color:var(--line);color:var(--muted);background:var(--soft)}
dialog{background:var(--white);color:var(--ink);border-color:var(--line);box-shadow:var(--shadow)}dialog::backdrop{background:#10251c55;backdrop-filter:blur(7px)}.dialog-link.primary{background:var(--accent);color:var(--white)}.all-trips li,.stop-detail li{border-color:var(--line)}.all-trips li.is-next,.stop-detail .selected,.photo-status{background:var(--soft)}.stop-picture{background:var(--soft)}
.preferences-dialog{inset:12px 12px 12px auto;margin:0;width:400px;max-width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:none;padding:28px;border:1px solid var(--line);border-radius:28px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.profile-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.profile-heading h2{font-size:24px;margin:9px 0 0;letter-spacing:-.03em}.profile-heading .eyebrow{font-size:9px;letter-spacing:.18em}.close-button{background:var(--soft);border-radius:50%;min-width:44px;min-height:44px}
.profile-identity{display:flex;gap:14px;align-items:center;padding:24px 0;border-bottom:1px solid var(--line);margin-bottom:25px}.profile-avatar{width:46px;height:46px;border-radius:17px;display:grid;place-items:center;background:var(--accent);color:var(--white);font-size:22px;font-weight:500}.profile-identity strong{display:block;font-size:14px}.profile-identity small{display:block;font-size:10px;margin-top:7px;color:var(--muted)}
fieldset{margin:0 0 25px;padding:0;border:0;min-width:0}legend{font-size:11px;font-weight:650;margin:0 0 12px;color:var(--muted);letter-spacing:.04em}.choice-row{display:flex;gap:7px;flex-wrap:wrap}.choice-row button{flex:1;min-width:0;border:1px solid var(--line);border-radius:13px;min-height:46px;padding:10px 7px;font-size:12px}.choice-row button[aria-pressed="true"]{border-color:var(--accent);background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent)}.choice-row button:hover{background:var(--soft)}
.theme-choices button{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 5px;font-size:11px}.theme-preview{display:block;width:52px;height:30px;border:1px solid #82938366;border-radius:6px;background:linear-gradient(90deg,#f3f5ed 64%,#dce5d8 64%)}.theme-preview.dark{background:linear-gradient(90deg,#20332d 64%,#446652 64%)}.theme-preview.system{background:linear-gradient(90deg,#f3f5ed 50%,#20332d 50%)}.color-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}.color-dot.forest{background:#317451}.color-dot.mono{background:linear-gradient(90deg,#1b1e1b 50%,#f3f5ee 50%);outline:1px solid #8886}
.swatch-row{display:flex;gap:14px;padding:2px}.swatch{width:44px;height:44px;min-height:44px;border:4px solid var(--white);border-radius:50%;outline:1px solid var(--line)}.swatch[aria-pressed="true"]{outline:2px solid var(--accent);outline-offset:3px}.swatch.mist{background:#bacec0}.swatch.sand{background:#deceb0}.swatch.ice{background:#bad4df}.swatch.rose{background:#dec1bb}
.setting-row{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:47px;font-size:13px}.setting-row input{appearance:none;position:relative;width:38px;height:24px;border-radius:20px;background:var(--line);flex-shrink:0;margin:10px 3px;cursor:pointer;transition:background .3s;outline-offset:4px}.setting-row input:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:var(--white);box-shadow:0 1px 3px #0002;transition:transform .35s cubic-bezier(.2,.8,.2,1.15)}.setting-row input:checked{background:var(--accent)}.setting-row input:checked:before{transform:translateX(14px)}.setting-row label{flex:1;cursor:pointer;padding:10px 0}.mode-choices{flex-direction:column}.mode-choices button{text-align:left;padding-left:14px;flex:none}.profile-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:12px}.profile-footer button{font-size:11px}.profile-status{font-size:11px;color:var(--muted);line-height:1.7}
:root[data-glow="false"] .route-glow{display:none}:root[data-flow="false"] .route-flow{display:none}:root[data-terrain="false"] .terrain-lines{opacity:0}:root[data-ambient="false"] .map-atmosphere{display:none}:root[data-labels="false"] .region-labels{display:none}
@keyframes route-flow{to{stroke-dashoffset:-180}}@keyframes route-breathe{to{opacity:.45}}@keyframes atmosphere-drift{to{transform:translate(8%,5%) scale(1.1)}}
@media(max-width:1100px) and (min-width:761px){.floating-board{width:365px;right:20px;padding:20px}.controls{right:410px;left:24px}.workspace{padding:0 24px}#map-canvas{right:385px;width:calc(100% - 385px)}.map-footnote{right:415px}.atlas-caption{left:26px}.map-tools{left:22px;gap:0}.map-tools button{padding:9px 11px}.drag-hint{display:none}}
@media(max-width:760px){.workspace{padding:0 18px}.topbar{height:73px;gap:10px}.brand strong{font-size:21px}.brand-school{font-size:9px}.brand{gap:8px}.clock{gap:6px;font-size:10px}.clock>span:last-child{display:none}.clock time{font-size:12px}.profile-button{min-width:44px;width:44px;height:44px;padding:0;justify-content:center}.profile-button span{display:none}.controls{left:18px;right:18px;top:81px}.line-picker{width:100%;border-radius:20px}.line-picker button{min-height:44px;font-size:12px}.atlas-caption{top:160px;left:22px}.atlas-kicker{font-size:8px}.atlas-caption h2{font-size:31px;margin:9px 0}.atlas-caption h2 span{font-size:10px;margin-top:9px;max-width:130px;line-height:1.7}#map-canvas{inset:82px 0 180px;width:100%;height:calc(100% - 262px)}.map-tools{left:auto;right:17px;bottom:auto;top:153px;display:grid;grid-template-columns:auto auto;border-radius:17px;padding:3px;gap:0;background:var(--panel)}.map-tools>button{font-size:10px;padding:6px 9px;min-height:38px}.zoom-tools{grid-column:1/-1;justify-content:center;border:0;border-top:1px solid var(--line);padding:0}.zoom-tools button{flex:1;min-height:38px;font-size:20px}.map-footnote{left:20px;right:20px;bottom:calc(258px + env(safe-area-inset-bottom));font-size:8px}.drag-hint{display:none}.floating-board{top:auto;bottom:10px;left:10px;right:10px;width:auto;border-radius:27px;padding:0 20px 18px;max-height:calc(100dvh - 150px);overscroll-behavior:contain;transition:max-height .65s cubic-bezier(.2,.8,.2,1)}.sheet-grip{display:flex;position:sticky;top:0;z-index:3;align-items:center;justify-content:center;gap:10px;width:100%;height:40px;min-height:40px;background:var(--panel);border-radius:15px}.sheet-grip span{width:32px;height:3px;border-radius:10px;background:var(--line)}.sheet-grip small{font-size:10px;color:var(--muted)}.sheet-grip i{font-style:normal;font-size:14px;color:var(--muted)}.board-controls{gap:9px}.date-control{display:none}.directions button{font-size:12px;min-height:44px;padding:8px}.departure{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;padding:18px 0 2px}.departure h1{font-size:23px;gap:7px;margin:8px 0}.departure .route-arrow{font-size:18px}.eyebrow{font-size:9px;gap:6px}.service-tag{font-size:8px}.departure .pickup,.departure .gps-link{display:none}.departure-face{margin:0;display:flex;flex-direction:column;align-items:flex-end;gap:5px}.departure-face .small-label{font-size:8px;margin:0}.hero-time{font-size:45px;line-height:1;letter-spacing:-.05em}.hero-time.is-text{font-size:22px}.wait-line{font-size:9px;margin:0}.wait-line strong{font-size:15px}.floating-board:not(.expanded) .timeline-panel,.floating-board:not(.expanded) .upcoming,.floating-board:not(.expanded) .route-strip,.floating-board:not(.expanded) footer{display:none}.floating-board:not(.expanded) .service-message{margin:12px 0 0;font-size:10px;padding:6px 9px}.floating-board.expanded{max-height:calc(100dvh - 150px)}.floating-board.expanded .date-control{display:flex}.floating-board.expanded .departure{display:block;padding:15px 0}.floating-board.expanded .departure-face{margin-top:12px;display:grid;grid-template-columns:1fr auto;grid-template-areas:"label label" "time wait";align-items:end;gap:0 10px}.floating-board.expanded .small-label{font-size:9px}.floating-board.expanded .hero-time{font-size:57px}.floating-board.expanded .wait-line{font-size:11px}.floating-board.expanded .pickup,.floating-board.expanded .gps-link{display:flex}.floating-board.expanded .route-summary{display:block}.preferences-dialog{padding:24px 22px}.map-space:has(+.workspace .floating-board.expanded) .map-footnote{display:none}.map-space .station-title{font-size:19px}.map-space .station-subtitle{font-size:12px}}
@media(max-width:350px){.brand-school{display:none}.workspace{padding:0 14px}.controls{left:14px;right:14px}.line-picker button{font-size:11px}.atlas-caption{left:18px}.atlas-caption h2{font-size:27px}.map-tools{right:13px}.floating-board{padding-left:16px;padding-right:16px}.hero-time{font-size:39px}.departure h1{font-size:21px}.preferences-dialog{padding:22px 18px}.profile-heading h2{font-size:22px}.choice-row button{font-size:11px}}
@media(max-height:600px) and (min-width:761px){.topbar{height:73px}.controls{top:80px}.floating-board{top:80px;bottom:14px}.atlas-caption{top:150px}.map-tools{bottom:42px}.map-footnote{bottom:17px}}

.setting-row input{width:44px;height:44px;margin:0;outline-offset:1px;background:transparent}.setting-row input:before{left:3px;top:10px;width:38px;height:24px;background:var(--line);box-shadow:none;transform:none!important}.setting-row input:after{content:"";position:absolute;left:6px;top:13px;width:18px;height:18px;border-radius:50%;background:var(--white);box-shadow:0 1px 3px #0002;transition:transform .35s cubic-bezier(.2,.8,.2,1.15)}.setting-row input:checked{background:transparent}.setting-row input:checked:before{background:var(--accent)}.setting-row input:checked:after{transform:translateX(14px)}
@media(max-width:760px){.map-tools>button,.zoom-tools button,.sheet-grip{min-height:44px}.sheet-grip{height:44px}}

.map-hub{cursor:pointer;opacity:.8;outline:none}.hub-dot{fill:var(--accent);stroke:var(--white);stroke-width:1.5}.hub-label{font-size:12px;fill:var(--muted);paint-order:stroke;stroke:var(--land-a);stroke-width:4}.map-hub:hover,.map-hub:focus-visible{opacity:1}.hub-hidden{display:none}
.overview-beacon{display:none;cursor:pointer;outline:none}.beacon-aura{fill:var(--accent);opacity:.2;animation:beacon-breathe 5s ease-in-out infinite alternate}.beacon-label{font-size:13px;font-weight:650;fill:var(--ink)}.beacon-label-bg{fill:var(--white);stroke:var(--line);stroke-width:1}.overview-beacon:focus-visible .station-ring{stroke-width:4}.overview-beacon:is(:hover,:focus-visible) .beacon-label-bg{stroke:var(--accent)}
@keyframes beacon-breathe{to{opacity:.09;transform:scale(1.3)}}
:root[data-ambient="false"] .beacon-aura{animation:none}
.is-island-overview #map-stations,.is-island-overview #map-hubs{visibility:hidden;pointer-events:none}.is-island-overview .overview-beacon{display:block}.is-island-overview .country-label{opacity:1}
.is-island-overview .map-places{display:block}.is-island-overview .regional-name{display:none}.is-island-overview .ocean-name{display:block}
@media(min-width:761px) and (max-width:1100px){.is-island-overview .atlas-caption{display:none}}
@media(max-width:760px){.atlas-caption h2{max-width:150px}:lang(en) .atlas-caption h2{font-size:26px;line-height:1.13}:lang(en) .line-picker button{font-size:11px;white-space:normal;line-height:1.2}:lang(en) .departure h1{font-size:18px;gap:5px}.map-space .station-subtitle{font-size:10px}}

@media(max-width:760px){.atlas-caption h2 span{display:none}}

.axis-base,.axis-tick{stroke:var(--line)}.axis-past{stroke:var(--line)}.trip-dot.past{fill:var(--line);stroke:var(--line)}.next-tag-label{fill:var(--white)}.chart-legend .past-key{background:var(--line)}.stop-number{background:var(--soft);color:var(--accent)}
@media(max-width:760px){.date-label input{font-size:16px}}

:root[data-palette="mono"]{--paper:#e7e7e7;--ink:#171717;--muted:#464646;--accent:#222222;--soft:#dadada;--line:#969696;--white:#fdfdfd;--sea:#c3c3c3;--land-a:#f8f8f8;--land-b:#b7b7b7;--terrain:#5b5b5b;--panel:rgba(251,251,251,.96);--shadow:0 28px 90px #0002;--grain:rgba(255,255,255,.1)}
:root[data-palette="mono"][data-theme="dark"]{--paper:#161616;--ink:#f3f3f3;--muted:#c8c8c8;--accent:#f2f2f2;--soft:#3b3b3b;--line:#7d7d7d;--white:#222222;--sea:#101010;--land-a:#484848;--land-b:#2a2a2a;--terrain:#9e9e9e;--panel:rgba(34,34,34,.96);--grain:rgba(255,255,255,.02)}
:root[data-palette="mono"][data-background="sand"]{--sea:#b6b6b6}:root[data-palette="mono"][data-background="ice"]{--sea:#cfcfcf}:root[data-palette="mono"][data-background="rose"]{--sea:#b2b2b2}
:root[data-palette="mono"][data-theme="dark"][data-background="sand"]{--sea:#1a1a1a}:root[data-palette="mono"][data-theme="dark"][data-background="ice"]{--sea:#0e0e0e}:root[data-palette="mono"][data-theme="dark"][data-background="rose"]{--sea:#191919}
.date-label input{min-height:44px}.preferences-dialog[open]{animation:profile-arrive .5s cubic-bezier(.16,1,.3,1)}.profile-heading{position:sticky;top:-28px;z-index:4;background:var(--white);padding:12px 0;margin-top:-12px}@keyframes profile-arrive{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}

:lang(en) .line-picker{width:460px}:lang(en) .line-picker button{white-space:normal;line-height:1.25}
@media(max-width:760px){:lang(en) .line-picker{width:100%}:lang(en) .directions button{font-size:11px;padding:8px 4px}:lang(en) .directions button span{padding:0 4px}}

.brand{min-height:44px}.gps-link{min-height:44px}

.map-space{overflow:clip}
#map-canvas{bottom:100px;height:calc(100% - 100px)}
.map-station[data-minor="true"] .station-label{opacity:0;pointer-events:none}
.map-station[data-minor="true"]:is(:hover,:focus-visible) .station-label{opacity:1}

/* Phones keep the map between its tools and the collapsed timetable. */
.mobile-summary{display:none}
.sheet-content{display:contents}
.trip-viewport{overflow:hidden;padding:4px;margin:8px -4px 0}
.trip-viewport .trip-grid{display:flex;gap:10px;width:100%;margin:0;touch-action:pan-y pinch-zoom}
.trip-viewport .trip-grid>li{flex:0 0 calc((100% - 20px)/3);min-width:0}
.trip-grid.is-tracking{will-change:transform}
@media(max-width:760px){
  :root{--mobile-map-top:134px;--mobile-summary-height:80px;--mobile-board-bottom:max(10px,env(safe-area-inset-bottom));--mobile-map-bottom:calc(var(--mobile-summary-height) + var(--mobile-board-bottom) + 12px)}
  .topbar{height:60px}
  .controls{top:68px}
  .line-picker{height:54px}
  .line-picker button{padding-top:6px;padding-bottom:6px}
  .atlas-caption{display:none}
  .map-tools{top:calc(var(--mobile-map-top) + 8px);left:auto;right:10px;width:64px;display:flex;flex-direction:column;border-radius:18px;padding:3px;gap:2px}
  .map-tools>button{flex:none;width:56px;min-width:44px;padding:6px 2px;font-size:10px;white-space:normal;line-height:1.3}
  .map-tools button span{display:none}
  .zoom-tools{display:flex;flex-direction:column;border-top:1px solid var(--line);border-left:0;padding:2px 0 0}
  .zoom-tools button{flex:none;width:56px}
  #map-canvas{top:var(--mobile-map-top);right:0;bottom:var(--mobile-map-bottom);width:100%;height:calc(100% - var(--mobile-map-top) - var(--mobile-map-bottom))}
  .map-footnote{display:none}
  .floating-board{bottom:var(--mobile-board-bottom)}
  .floating-board:not(.expanded){height:var(--mobile-summary-height);max-height:var(--mobile-summary-height);padding:0 10px;overflow:hidden;border-radius:24px}
  .floating-board:not(.expanded)>:not(.mobile-summary){display:none}
  .floating-board:not(.expanded) .mobile-summary{display:flex;align-items:center;gap:6px;height:100%}
  .summary-open{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:64px;padding:8px 0;text-align:left;touch-action:none;cursor:ns-resize}
  .summary-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px}
  .summary-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
  .summary-copy>span{font-size:10px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
  .summary-departure{display:flex;flex:none;flex-direction:column;align-items:flex-end;gap:3px;max-width:105px}
  .summary-departure small{font-size:8px;color:var(--muted);line-height:1.2;text-align:right}
  .summary-departure strong{font-size:30px;line-height:1.05;font-weight:500;letter-spacing:-.05em;font-variant-numeric:tabular-nums;white-space:nowrap}
  .summary-departure strong.is-text{font-size:15px;letter-spacing:0;white-space:normal;text-align:right}
  .summary-expand{display:flex;flex:none;flex-direction:column;align-items:center;font-size:9px;line-height:1.2;color:var(--muted)}
  .summary-expand i{font-size:20px;font-style:normal;line-height:1}
  .summary-reverse{flex:none;width:44px;height:44px;border-radius:50%;background:var(--soft);font-size:22px}
  :lang(en) .summary-copy strong{font-size:12px;line-height:1.25;white-space:normal}
  #floating-board.sheet-ready{height:var(--sheet-height);max-height:none;padding:0;overflow:hidden;transition:none;display:flex;flex-direction:column}
  #floating-board.sheet-ready .mobile-summary{display:flex;align-items:center;gap:6px;flex:0 0 80px;height:80px;padding:0 10px}
  #floating-board.sheet-ready .sheet-content{display:block;flex:none;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px 18px;touch-action:pan-y pinch-zoom}
  #floating-board.sheet-ready .sheet-grip{display:none}
  #floating-board.sheet-ready .summary-open{min-height:64px}
  #floating-board.sheet-ready.sheet-moving{will-change:transform}
}
@media(max-width:760px) and (max-height:650px){
  .map-space .station-title{font-size:14px}
  .map-space .station-subtitle{display:none}
}

@media(max-width:760px) and (max-height:650px){.map-compass{display:none}}
@media(max-width:760px) and (max-height:460px){
  .map-tools{width:auto;flex-direction:row}
  .map-tools>button,.zoom-tools button{width:48px}
  .zoom-tools{flex-direction:row;border-top:0;border-left:1px solid var(--line);padding:0 0 0 2px}
}

/* Geographic anchors never move to make room for labels. */
.hub-crowded{display:none}
.map-station[data-minor="true"][data-label-visible="true"] .station-label{opacity:1}
.route-rail,.route-flow{stroke-linejoin:round}
.stop-coordinate{display:block;font-size:12px;line-height:1.7;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}.stop-coordinate a{color:var(--accent);min-height:44px;display:inline-flex;align-items:center;gap:7px}.station-travel-note{font-size:12px;color:var(--muted);line-height:1.7;margin:6px 0 0}

.atlas-caption{transition:opacity .5s,visibility .5s}.is-route-focus .atlas-caption{opacity:0;visibility:hidden}.is-route-focus .map-route:not(.active){opacity:0;pointer-events:none}.is-close-map .terrain-detail{opacity:0}
