/* FOL-156 / FOL-179: editor chrome only; no customer canvas selectors. */
body[data-foldoo-view] .ui-toggle input[type="checkbox"],
body[data-foldoo-view] #insp[data-fi-mode] .ui-toggle input[type="checkbox"] {
  box-sizing: border-box;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex: 0 0 30px;
  padding: 0 !important;
  border: 0;
}
body[data-foldoo-view] .ui-toggle input[type="checkbox"]::after {
  width: 14px;
  height: 14px;
  top: 2px;
  left: 2px;
}
body[data-foldoo-view] .ui-toggle input[type="checkbox"]:checked::after {
  transform: translateX(12px);
}
@media (pointer: coarse) {
  body[data-foldoo-view] .ui-toggle {
    min-height: 44px;
    min-width: 44px;
    box-sizing: border-box;
  }
}
/* The opener records its final viewport-relative top after positioning.
   Expansion can then scroll without making the last actions unreachable. */
#fileActionsMenu {
  max-height: calc(100vh - var(--foldoo-file-menu-top, 80px) - 12px);
  max-height: calc(100dvh - var(--foldoo-file-menu-top, 80px) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 6px;
}
