/* Shared by the reader selector and the account workspace. */
.mley-compendium-card .mley-compendium-icon { grid-area: 1 / 1; }
.mley-compendium-card > [aria-hidden="true"]:last-child { grid-area: 1 / 2; }
.mley-compendium-card .mley-compendium-name,
.mley-compendium-card .mley-library-count { grid-column: 1 / -1; overflow-wrap: anywhere; }
.mley-compendium-name { font-weight: var(--weight-semibold); }
.mley-compendium-icon {
  flex: none;
  color: var(--compendium-color, var(--accent-color));
  stroke: var(--border-strong);
  stroke-width: .65;
}
.mley-compendium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: .55rem;
}
.mley-compendium-grid > div { display: flex; min-width: 0; }
.mley-compendium-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: .45rem;
  width: 100%;
  min-height: 78px;
  padding: .65rem;
  border: 1px solid var(--border-color);
  border-radius: .55rem;
  background: var(--surface-muted);
  cursor: pointer;
}
.mley-compendium-option:hover, .mley-compendium-option:has(input:checked) {
  border-color: var(--accent-color);
}
.mley-compendium-option:has(input:checked) { background: var(--surface-accent); }
.mley-compendium-option:has(input:focus-visible) {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
.mley-compendium-option input[type="checkbox"] {
  appearance: auto;
  grid-area: 1 / 2;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}
.mley-compendium-option .mley-compendium-icon { grid-area: 1 / 1; }
.mley-compendium-option span { grid-column: 1 / -1; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .mley-compendium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mley-compendium-icon svg { width:22px; height:22px; fill:currentColor; }
