@media screen {
 body:has(> .pos-nav) {
  grid-template-columns:clamp(76px, 7.7vw, 112px) minmax(0, 1fr);
 }

 body:has(> .pos-nav) > :is(header, .pinned-lanes, #tunnel-strip, #wash-layer) {
  grid-column:1 / -1;
 }

 body:has(> .pos-nav) > main {
  grid-column:2;
  min-width:0;
 }

 .pos-nav {
  grid-area:3 / 1;
  display:flex;
  flex-direction:column;
  justify-content:safe center;
  gap:6px;
  min-height:0;
  padding:8px 6px;
  overflow:auto;
  background:#eef2f4;
  border-right:1px solid #d6e0e5;
 }

 .pos-nav button {
  flex:0 0 auto;
  min-height:46px;
  padding:6px 3px;
  border:1px solid #c9d5dc;
  border-radius:6px;
  background:#fff;
  color:#21343e;
  font-size:clamp(10px, 1.2vw, 13px);
  font-weight:700;
  line-height:1.2;
  overflow-wrap:anywhere;
 }

 .pos-nav button:hover {background:#e9f3fb}
 .pos-nav button[aria-pressed=true] {
  background:#21343e;
  border-color:#21343e;
  box-shadow:inset 3px 0 #f8de08;
  color:#fff;
 }
 .pos-nav button:focus-visible {outline-offset:-3px}
}
