
#panelCharacterSheet {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: absolute;
}

/* One sticky character-sheet header authority. */
#panelCharacterSheet #csPlayHeader {
  position: sticky !important;
  top: 0 !important;
  z-index: 150200 !important;
  margin-top: 0 !important;
}

/* Navigation belongs to the header and must never establish a second sticky layer. */
#panelCharacterSheet #csPlayHeader .cs-page-switcher,
#panelCharacterSheet .cs-page-switcher {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

/* SPELLS 74 — Character-sheet anchor repair.
   The standard panel header (Back, title, collapse, close) and the character identity/status header are one fixed-height sticky stack (SHEETS 288: the header replaced the Back row).
   Page 1–10 content may reflow beneath them without moving the controls. */
#panelCharacterSheet > .tool-panel-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 150300 !important;
  box-sizing: border-box !important;
  min-height: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 2px 0 5px !important;
  background: rgba(9,13,22,.99) !important;
}
#panelCharacterSheet #csPlayHeader {
  position: sticky !important;
  top: 52px !important;
  z-index: 150250 !important;
  box-sizing: border-box !important;
  min-height: 176px !important;
  height: 176px !important;
  margin: 0 0 7px !important;
  overflow: visible !important;
  background: rgba(9,13,22,.99) !important;
}
#panelCharacterSheet #csPlayHeader .cs-play-identity-row {
  min-height: 50px !important;
}
#panelCharacterSheet #csPlayHeader .cs-play-stats {
  min-height: 31px !important;
}
#panelCharacterSheet #csPlayHeader .cs-page-switcher {
  min-height: 64px !important;
}
