#books-catalogue [hidden]{display:none!important}
.catalogue-filter{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:1.25rem;background:#f5f2ed;border-radius:12px;margin-bottom:2rem}
.catalogue-filter label{font-weight:700}.catalogue-filter select{max-width:100%;min-height:46px;padding:.6rem;border:1px solid #999;border-radius:6px;background:white;color:#434b4d;font:inherit}.catalogue-filter p{margin:0}
.catalogue-group{margin:0 0 3rem}.catalogue-group>h2{padding-bottom:.7rem;border-bottom:2px solid #d4be55}
.catalogue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.catalogue-card{min-width:0;display:grid;grid-template-columns:130px minmax(0,1fr);gap:1.25rem;padding:1.5rem;background:#fff;border:1px solid #e3dfd7;border-radius:12px;align-content:start}
.catalogue-cover{width:130px;height:200px;display:flex;align-items:flex-start;justify-content:center}.catalogue-cover img{max-width:100%;width:auto;height:auto;max-height:200px;object-fit:contain;box-shadow:0 5px 12px #0002}
.catalogue-cover-fallback{height:190px;background:#f2eee4;border:1px solid #d1c6ab;flex-direction:column;justify-content:space-between;padding:1rem;box-sizing:border-box;text-align:center;overflow-wrap:anywhere;color:#434b4d;font-family:Georgia,serif}.catalogue-cover-fallback span{font-size:1rem;line-height:1.3}.catalogue-cover-fallback small{font:11px/1.3 system-ui,sans-serif;color:#687174}
.catalogue-copy{min-width:0}.catalogue-copy h3{font-size:1.3rem;line-height:1.3;margin:0 0 .6rem;overflow-wrap:anywhere}.catalogue-copy .book-author{font-size:.95rem;margin:0 0 .7rem}.catalogue-description{font-size:1rem;line-height:1.65}.catalogue-copy .book-isbn{font-size:.82rem}.catalogue-copy .book-actions{display:flex;flex-wrap:wrap;gap:.7rem;font-size:.85rem}.catalogue-copy .book-actions a{overflow-wrap:anywhere}
.catalogue-tags{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;padding:0;margin:.75rem 0}.catalogue-tags li{font-size:.72rem;line-height:1.5;background:#f0eee8;border-radius:4px;padding:.2rem .5rem;color:#555;max-width:100%;overflow-wrap:anywhere}
#catalogue-admin{margin:1rem 0 2rem;border:2px solid #901a1e;border-radius:10px;background:#fff}#catalogue-admin summary{cursor:pointer;font-weight:700;padding:1rem;color:#901a1e}.catalogue-manager{padding:0 1rem 1rem}.catalogue-manager>section{margin-top:2rem}.catalogue-admin-actions,.catalogue-row-controls{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.catalogue-manager button,.catalogue-manager select{font:inherit;min-height:44px;padding:.5rem .7rem;border:1px solid #aaa;border-radius:6px;background:#fff;color:#434b4d;max-width:100%;cursor:pointer}.catalogue-manager button:disabled{opacity:.45;cursor:not-allowed}.catalogue-manager [data-catalogue-save]{background:#901a1e;color:white;border-color:#901a1e}.catalogue-admin-row{padding:1rem 0;border-top:1px solid #ddd}.catalogue-admin-row h4{margin:.3rem 0 .7rem}.catalogue-admin-row fieldset{border:1px solid #ccc;margin:.75rem 0 0;min-width:0;border-radius:6px}.catalogue-category-choices{display:flex;flex-wrap:wrap;gap:.25rem 1rem}.catalogue-category-choices label{display:flex;gap:.5rem;align-items:center;min-height:44px;font-size:.9rem}.catalogue-category-choices input{width:20px;height:20px;flex-shrink:0}
#books-catalogue :focus-visible{outline:3px solid #175c9d;outline-offset:3px}
@media(max-width:1100px){.catalogue-card{grid-template-columns:100px minmax(0,1fr);padding:1rem;gap:1rem}.catalogue-cover{width:100px;height:160px}.catalogue-cover img{max-height:160px}.catalogue-cover-fallback{height:160px;padding:.6rem}.catalogue-cover-fallback span{font-size:.88rem}}
@media(max-width:760px){.catalogue-grid{grid-template-columns:minmax(0,1fr)}.catalogue-filter{gap:.6rem}.catalogue-filter label{width:100%}.catalogue-filter select{width:100%}.catalogue-copy h3{font-size:1.18rem}}
@media(max-width:360px){.catalogue-card{grid-template-columns:minmax(0,1fr)}.catalogue-cover{margin:auto}}
