.bench .studio-folded-panels { display: none; }

body:not([data-application]) #board:not([data-focus-view]) > .bench:has([data-restore-panel]:not([hidden])) {
  --folded-rail-width: 32px;
  padding-inline-start: calc(var(--folded-rail-width) + 10px);
}
#board:not([data-focus-view]) .studio-folded-panels:has([data-restore-panel]:not([hidden])) {
  display: block;
  position: absolute;
  z-index: 3;
  inset-block: 8px;
  inset-inline-start: 0;
  inline-size: var(--folded-rail-width);
  pointer-events: none;
}
.studio-folded-tabs {
  position: sticky;
  top: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.studio-folded-tabs button {
  pointer-events: auto;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 6px;
  border: 1px solid #ffffff30;
  border-radius: 7px;
  padding: 8px 0;
  color: #dedbd4;
  background: linear-gradient(115deg,#353637,#252628);
  box-shadow: inset 0 1px #ffffff12;
  font: 550 12px/1.12 var(--sans);
}
.studio-folded-tabs button[hidden] {display: none;}
.studio-folded-tabs span {writing-mode: vertical-rl;}
.studio-folded-tabs svg, [data-fold-panel] svg {width: 15px; height: 15px;}
.studio-folded-tabs button:is(:hover,:focus-visible), [data-fold-panel]:is(:hover,:focus-visible) {
  color: #fff2d6; background-color: #434445;
}
.studio-folded-tabs button:focus-visible, [data-fold-panel]:focus-visible {
  outline: 2px solid #ead4a7; outline-offset: 1px;
}
#board .bench[data-tools-collapsed] > .tool-drawer {display:none;}
body:not([data-phone]):not([data-application]) #board .bench[data-tools-collapsed] {
  grid-template-columns: var(--source-width) minmax(0,1fr);
  grid-template-areas: "inputs workspace";
}
.apps-panel-head {display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:3px;}
.apps-panel-head .rail-title {margin:0;}
.apps-panel-head button {display:grid;place-items:center; border-radius:6px; width:26px; height:26px; padding:0;}
body[data-phone] #board:not([data-focus-view]) > .bench:has([data-restore-panel]:not([hidden])) {
  --folded-rail-width: 38px;
  padding-inline-start: calc(var(--folded-rail-width) + 6px);
}
body[data-phone] #board .tool-drawer .tool-row .rail-fold {display:grid;place-items:center;min-width:44px;min-height:44px;margin-inline-start:auto;}
body[data-phone] .apps-panel-head {grid-area:1/1; justify-content:space-between;}
body[data-phone] .apps-panel-head button {width:44px;height:44px;}
body[data-phone]:has(.bench[data-tools-collapsed]) #phone-dock [data-act="phone-tools"] {display:none;}
#board[data-hide-viewer] :is(.viewer-unit,.model-port),
body[data-application] [data-fold-panel="viewer"],
body[data-phone]:has(#board[data-hide-viewer]) #phone-dock [data-act="phone-model"],
body[data-phone] #board[data-hide-viewer] .model-zone {display:none;}
body:not([data-phone]) #board[data-hide-viewer] .app-dock {height:clamp(275px,55svh,660px);}
