#library .intro { padding-bottom: 8px; }
.shelves {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 18px; padding: 8px 0 12px; border-bottom: 1px solid #c8bda5;
}
.shelves button {
  min-height: 44px; min-width: 44px; padding: 6px 14px;
  background: #faf8f0; border: 1px solid #c8c2b2; border-radius: 6px;
  color: #344d44; font-size: .95rem;
}
.shelves button[aria-pressed="true"] {
  background: #294e43; border-color: #294e43; color: #fffdf5; font-weight: 700;
}
.shelves button:focus-visible { outline: 3px solid #957135; outline-offset: 2px; }
#empty { padding: 28px 16px; color: #465449; background: #eeeadd; text-align: center; }
@media (max-width: 480px) {
  .shelves { gap: 4px; margin-bottom: 12px; padding-top: 3px; }
  .shelves button { padding-inline: 9px; font-size: .88rem; }
}
.shelves .shelf-size { margin-inline-start: .35em; font-size: .8em; font-variant-numeric: tabular-nums; opacity: .85; }
