/* TågLive desktop layout refresh. Existing mobile sheet and legend remain intact. */
#desktop-panel-toggle{display:none}
@media(min-width:701px){
 #sidebar{width:clamp(280px,22vw,350px);padding:14px 15px 20px;position:relative;scrollbar-gutter:stable}
 #desktop-panel-toggle{display:grid;place-items:center;min-height:32px!important;width:32px;height:32px;padding:0!important;margin:0 0 10px auto;font-size:23px;line-height:1!important;background:#19283b;border-color:#35465d}
 #main-nav{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 14px;padding:0;background:transparent}
 #main-nav button:not(#map-mode){display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:62px;padding:7px 3px;background:#162438;border-color:#2c3d53;color:#c5d3e6;font-size:11px}
 #main-nav button:not(#map-mode)::before{content:'';display:block;width:19px;height:19px;background:currentColor;mask:var(--nav-icon) center/contain no-repeat;-webkit-mask:var(--nav-icon) center/contain no-repeat}
 #main-nav button[aria-pressed=true]:not(#map-mode){color:#86efac;background:#143a2f;border-color:#2cbf73}
 #train-view .eyebrow{margin-top:5px;letter-spacing:1.2px}
 #train-view .count{display:flex;flex-direction:row;align-items:baseline;gap:9px;margin:8px 0 20px;padding:13px 12px;border:1px solid #2c4054;background:#142437;border-radius:12px}
 #train-view .count strong{font-size:33px;line-height:1.15;font-variant-numeric:tabular-nums}
 #train-search-tabs{margin-bottom:16px}
 #map-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:11px;padding-inline:9px}
 #map-tools button::before{content:'';display:block;width:15px;height:15px;background:currentColor;mask:var(--tool-icon) center/contain no-repeat;-webkit-mask:var(--tool-icon) center/contain no-repeat}
 #country-tools{padding:10px;width:210px;background:#111e30f5;backdrop-filter:blur(8px)}
 #country-tools select{border-radius:8px}
 body.desktop-panel-collapsed #sidebar{width:68px;padding:12px 8px;overflow:hidden;scrollbar-gutter:auto}
 body.desktop-panel-collapsed #sidebar>:not(#main-nav):not(.nav-shell):not(#desktop-panel-toggle){display:none!important}
 body.desktop-panel-collapsed #main-nav{grid-template-columns:1fr;gap:7px}
 body.desktop-panel-collapsed #main-nav button:not(#map-mode){min-height:49px;font-size:9px;gap:3px;padding:4px 1px;overflow-wrap:anywhere}
 body.desktop-panel-collapsed #desktop-panel-toggle{margin-inline:auto}
}
#train-mode{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2021l-5-5%20M10%2017a7%207%200%201%201%200-14%207%207%200%200%201%200%2014%22%2F%3E%3C%2Fsvg%3E")}
#station-mode{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021V8l8-5%208%205v13%20M2%2021h20%20M9%2021v-7h6v7%20M8%2010h1m6%200h1%22%2F%3E%3C%2Fsvg%3E")}
#favorite-mode{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%202.8%205.7%206.2.9-4.5%204.4%201.1%206.2-5.6-3-5.6%203%201.1-6.2L3%209.6l6.2-.9z%22%2F%3E%3C%2Fsvg%3E")}
#trip-mode{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%205h10a4%204%200%200%201%200%208H9a3%203%200%200%200%200%206h10m-3-3%203%203-3%203%22%2F%3E%3C%2Fsvg%3E")}
#traffic-mode{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203%202%2021h20z%20M12%209v5m0%203v1%22%2F%3E%3C%2Fsvg%3E")}
#stats-mode{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203v18h17M8%2016v-4m5%204V8m5%208V5%22%2F%3E%3C%2Fsvg%3E")}
#locate-me{--tool-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202v3m0%2014v3M2%2012h3m14%200h3%20M12%2019a7%207%200%201%200%200-14%207%207%200%200%200%200%2014%22%2F%3E%3C%2Fsvg%3E")}
#fit{--tool-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209V3h6m6%200h6v6M3%2015v6h6m6%200h6v-6%22%2F%3E%3C%2Fsvg%3E")}
#traffic-overlay{--tool-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203%202%2021h20z%20M12%209v5m0%203v1%22%2F%3E%3C%2Fsvg%3E")}
#station-overlay{--tool-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021V8l8-5%208%205v13%20M2%2021h20%20M9%2021v-7h6v7%22%2F%3E%3C%2Fsvg%3E")}
#labels{--tool-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208h18M3%2016h18M10%203%207%2021M17%203l-3%2018%22%2F%3E%3C%2Fsvg%3E")}
#railway-overlay{--tool-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%203v18M17%203v18M4%205h16M4%2010h16M4%2015h16M4%2020h16%22%2F%3E%3C%2Fsvg%3E")}
#density-overlay{--tool-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020v-6m5%206V7m5%2013V4m5%2016v-9%22%2F%3E%3C%2Fsvg%3E")}
#theme{--tool-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2015a9%209%200%200%201-11-11%209%209%200%201%200%2011%2011z%22%2F%3E%3C%2Fsvg%3E")}
#fullscreen{--tool-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209V3h6m6%200h6v6M3%2015v6h6m6%200h6v-6%22%2F%3E%3C%2Fsvg%3E")}
