/* V1.8.39 — show every Keyword without an inner scrollbar and keep the
   dedicated Tag-Team room deck visible instead of mounting the Normal editor. */

.keywords-filter-subsection #abilityFilterList,
.keywords-filter-subsection #abilityFilterList.dense-chip-list {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scrollbar-gutter: auto !important;
  padding-right: 0 !important;
}

/* The Normal deck editor must never be mounted or visible while a room is open. */
body.tag-team-route #deckPage,
body.tag-team-route #deckPage .deck-editor,
body.tag-team-route .tag-team-original-deck-editor {
  display: none !important;
}

body.tag-team-route #tagTeamPage:not([hidden]) {
  display: block !important;
}

body.tag-team-route[data-pfcg-tag-team-deck-view="own"] #tagTeamOwnDeckView {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}

body.tag-team-route[data-pfcg-tag-team-deck-view="own"] #tagTeamPartnerDeckView {
  display: none !important;
}

body.tag-team-route[data-pfcg-tag-team-room] #tagTeamRoomEmpty {
  display: none !important;
}

body.tag-team-route[data-pfcg-tag-team-room] #tagTeamRoomActive {
  display: block !important;
}

/* Fully undo the old parity renderer's 1×1 clipped layout. Setting only
   display:grid was not enough because position/size/clip remained active. */
body.tag-team-route #tagTeamOwnDeckView > .tag-team-builder-grid {
  display: grid !important;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.tag-team-route #tagTeamOwnDeckView > .tag-team-builder-grid > * {
  visibility: visible !important;
  opacity: 1 !important;
}
