/* Tablet cabinet chrome. Starts from desktop sidebar; rewrite here, not in cabinet-phone.css. */
html:has(.cabinet--tablet),
html:has(.cabinet--tablet) body {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
}

.cabinet--tablet {
  --cabinet-top-size: 3.6rem;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Keyboard open: shell height/offset come from visualViewport (cabinet.js). */
.cabinet--tablet.is-kb-open {
  min-height: 0;
  will-change: transform;
}

.cabinet--tablet .cabinet__menu-btn {
  display: none !important;
}

.cabinet--tablet .cabinet__top {
  padding-left: var(--cabinet-sidebar-width);
}

/* iPad overlay bars sit on cards; hide them. Swipe still scrolls. */
.cabinet--tablet,
.cabinet--tablet * {
  scrollbar-width: none;
}

.cabinet--tablet *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
