/* v268 correction: contain the historical explorer without touching the main board or header. */
section.r247-opening-shell.tool-panel,
#r247OpeningExplorer,
#r247OpeningExplorerOptions,
#r247OpeningExplorerOptions .r247-opening-choices {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100% !important;
}
#r247OpeningExplorer { width: 100%; }
#r247OpeningExplorer #r247OpeningCurrent,
#r247OpeningExplorer #r247OpeningExplorerStatus { white-space: normal; overflow-wrap: anywhere; }
#r247OpeningExplorer #r247OpeningExplorerOptions .r247-opening-choices {
  display: grid !important;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px;
}
/* More specific than global toolbar, analysis and compact-button rules. */
#r247OpeningExplorer #r247OpeningExplorerOptions button.r247-opening-choice {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  align-items: start !important;
  justify-items: stretch !important;
  justify-content: start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 44px !important;
  max-height: none !important;
  padding: 7px 9px !important;
  margin: 0 !important;
  gap: 2px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  border-radius: 8px !important;
  line-height: 1.35 !important;
  cursor: pointer;
}
#r247OpeningExplorer #r247OpeningExplorerOptions button.r247-opening-choice > strong,
#r247OpeningExplorer #r247OpeningExplorerOptions button.r247-opening-choice > span {
  box-sizing: border-box !important;
  position: static !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: left !important;
  visibility: visible !important;
  opacity: 1 !important;
  -webkit-line-clamp: unset !important;
}
#r247OpeningExplorer #r247OpeningExplorerOptions button.r247-opening-choice > strong { font-size: 14px !important; font-weight: 700 !important; }
#r247OpeningExplorer #r247OpeningExplorerOptions button.r247-opening-choice > span { font-size: 12px !important; font-weight: 500 !important; }
#r247OpeningExplorer #r247OpeningExplorerOptions button.r247-opening-choice[aria-pressed="true"],
#r247OpeningExplorer #r247OpeningExplorerOptions button.r247-opening-choice:focus-visible { outline: 2px solid #8abddd !important; outline-offset: -2px; }
#r247OpeningExplorer #r247OpeningPreview { width: 100%; max-width: 288px; min-width: 0; box-sizing: border-box; }
#r247OpeningExplorer .r247-opening-miniboard { box-sizing: border-box; max-width: 100%; }
