/* The workshop's page scroller, shared by Monopolite's other pages. */
html.monopolite-scroll-ready,
html.monopolite-scroll-ready body {
  scrollbar-width: none;
}
html.monopolite-scroll-ready::-webkit-scrollbar,
html.monopolite-scroll-ready body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
html.monopolite-scroll-visible body {
  box-sizing: border-box;
  padding-right: calc(74px + env(safe-area-inset-right));
}
html.monopolite-scroll-visible .shell {
  width: min(1040px, calc(100% - 32px));
}
.monopolite-page-scroll {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 22;
  display: grid;
  gap: 10px;
  width: 46px;
  padding: 10px 6px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 27, 54, .92), rgba(8, 21, 44, .98));
  box-shadow: 0 16px 34px rgba(15, 40, 82, .24);
  justify-items: center;
  box-sizing: border-box;
}
.monopolite-page-scroll[hidden] { display: none !important; }
.monopolite-page-scroll button {
  appearance: none;
  margin: 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 10px 0;
  width: 100%;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font: 700 14px/20px "Space Grotesk", "Segoe UI", sans-serif;
  color: #edf4ff;
  background: linear-gradient(180deg, #72cfff, #173d7a);
  box-shadow: 0 10px 22px rgba(15, 40, 82, .22);
  cursor: pointer;
  box-sizing: border-box;
}
.monopolite-page-scroll button:hover { filter: brightness(1.08); }
.monopolite-page-scroll button:focus-visible {
  outline: 2px solid #c4f2ff;
  outline-offset: 3px;
}
.monopolite-page-scroll-track {
  position: relative;
  width: 100%;
  height: 480px;
  max-height: 58vh;
  max-height: 58dvh;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
  touch-action: none;
}
.monopolite-page-scroll .monopolite-page-scroll-thumb {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(100% - 10px);
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #72cfff, #39a8ec);
  box-shadow: none;
  transform: translateX(-50%);
  touch-action: none;
}
html.monopolite-scroll-dragging { scroll-behavior: auto !important; }
html.monopolite-scroll-dragging body { user-select: none; overscroll-behavior: none; }
.donez-admin-preview .monopolite-page-scroll button {
  pointer-events: auto !important;
  cursor: pointer !important;
}
/* Smaller scroll areas retain the workshop's blue scrollbar colours. */
:is(dialog, .tools-panel, .text-list, .button-panel) {
  scrollbar-width: thin;
  scrollbar-color: #61c8ff rgba(8, 21, 40, .88);
}
:is(dialog, .tools-panel, .text-list, .button-panel)::-webkit-scrollbar { width: 14px; height: 14px; }
:is(dialog, .tools-panel, .text-list, .button-panel)::-webkit-scrollbar-track {
  border: 1px solid rgba(114, 207, 255, .12);
  border-radius: 999px;
  background: rgba(8, 21, 40, .88);
}
:is(dialog, .tools-panel, .text-list, .button-panel)::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 12, 24, .92);
  border-radius: 999px;
  background: linear-gradient(180deg, #a0e8ff, #61c8ff 52%, #328fff);
}
@media (max-height: 400px) {
  .monopolite-page-scroll { gap: 6px; padding-block: 6px; }
  .monopolite-page-scroll-track { max-height: calc(100dvh - 116px); }
}
@media (min-width: 821px) and (max-width: 900px) {
  html.monopolite-scroll-visible .control-grid {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  }
}
