/* Navigation, management-page cards and color swatches keep their own design. */
.subbookCompactButtons button:not(.pageNavigationButton,.highlighterColor,:where(#grid button)) {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  min-height: 0;
  padding: 8px;
  font-size: 13.3333px;
  line-height: 16px;
  border: 1px solid #bec9cb;
  border-radius: 4px;
  background: #fff;
  color: #3c5055;
  -webkit-text-fill-color: currentColor;
  box-shadow: 0 1px 2px #243d4510;
  white-space: nowrap;
  cursor: pointer;
}
.subbookCompactButtons button.lmStudyAccent { color: var(--lm-study-accent-color,#007aff); }
.subbookCompactButtons button.danger { color: #b00020; }
.subbookCompactButtons button:not(.pageNavigationButton,.highlighterColor,:where(#grid button)):enabled:hover { border-color: #99afb4; }
.subbookCompactButtons button:not(.pageNavigationButton,.highlighterColor,:where(#grid button)):focus-visible { outline: 2px solid #7698a2; outline-offset: 2px; }
.subbookCompactButtons button:not(.pageNavigationButton,.highlighterColor,:where(#grid button)):disabled {
  color: #a8b2b5;
  border-color: #dbe1e3;
  background: #fafbfc;
  box-shadow: none;
  opacity: 1;
  cursor: default;
}
.subbookCompactButtons button[hidden] { display: none !important; }
.subbookCompactButtons .subbookStudyTools [data-tool="pen"][aria-pressed="true"] {
  background: var(--highlighter-color,#E5FF59);
  background: color-mix(in srgb,var(--highlighter-color,#E5FF59) 35%,white);
  border-color: #a8b873;
  box-shadow: inset 0 1px 2px #243d4515;
}
@media (max-width:600px), (pointer:coarse) {
  .subbookCompactButtons button:not(.pageNavigationButton,.highlighterColor,:where(#grid button)) { min-height: 44px; }
}
