/* v2.01: stable navigation and iPad-safe dashboard; no simulation logic changes */
.topbar{position:relative;z-index:45;min-width:0}
.toolbar{position:sticky;top:0;z-index:44;min-width:0;align-items:center}
.toolbar .tabs{min-width:0;flex:1 1 420px;scrollbar-width:thin;overscroll-behavior-x:contain}
.toolbar .tabs .tab{flex-shrink:0;min-height:40px}
#leitstelle{min-width:0}
#leitstelle .ls20-toolbar{position:relative;z-index:6;flex-wrap:wrap}
#leitstelle .ls20-toolbar button{min-height:44px;touch-action:manipulation}
#leitstelle .layout{min-width:0;isolation:isolate}
#leitstelle .layout .maparea,#leitstelle .layout .leftpanel,#leitstelle .layout .rightpanel{min-height:0;min-width:0}
#leitstelle .layout .panelbody{min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}
#leitstelle .maparea{isolation:isolate}
#leitstelle .mapoverlay{z-index:12;min-width:0;gap:8px}
#leitstelle .map-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;min-width:0}
#leitstelle .map-actions button{min-height:42px;touch-action:manipulation}
#leitstelle #mapLayerPanel{position:absolute!important;z-index:30!important;top:65px;right:10px;left:auto;display:flex;flex-direction:column;width:min(320px,calc(100% - 20px));max-height:min(62dvh,490px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;box-sizing:border-box}
#leitstelle #mapLayerPanel[hidden]{display:none!important}
#leitstelle #mapLayerPanel label{flex-shrink:0;min-height:42px;cursor:pointer}
#leitstelle #mapLayerPanel button{min-height:42px}
#leitstelle .mapviewport{min-height:0}
@media(max-width:1024px){.toolbar{gap:6px}.toolbar .simcontrols{flex-wrap:wrap}#leitstelle .ls20-tip{flex-basis:100%}#leitstelle .layout{height:calc(100dvh - 240px);min-height:450px}}
@media(max-width:760px){#leitstelle .layout{height:calc(100dvh - 245px);min-height:480px}#leitstelle .mapoverlay{left:7px;right:7px;top:7px}#leitstelle .map-actions{justify-content:flex-start}#leitstelle #mapLayerPanel{top:100px;left:8px;right:8px;width:auto;max-height:50dvh}}
@media(prefers-reduced-motion:reduce){#leitstelle .layout,#leitstelle .maparea{scroll-behavior:auto}}
