.cover-shelf{background:#f5ead1;color:#183a31;border-top:1px solid #d9c9a9}
.shelf-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:24px}
.shelf-heading h2{margin:0 0 9px}.shelf-heading p{margin:0}
.cover-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.cover-card{overflow:hidden;border-radius:13px;background:#fff9ea;border:1px solid #d9c9a9;box-shadow:0 8px 24px #49330d0b}
.cover-image{display:block}.cover-image img,.featured-cover img{display:block;width:100%;height:auto}
.cover-image:focus-visible{outline-offset:-4px}
.cover-caption{min-height:98px;display:flex;justify-content:space-between;align-items:start;gap:10px;padding:14px}
.cover-caption h3{font-size:1.2rem;line-height:1.2;margin:4px 0 0}.cover-caption p{font-size:.82rem;margin:0;color:#50624a}
.cover-save{min-height:44px;padding:5px 9px;border:1px solid #9aac94;border-radius:20px;background:transparent;color:#213c31;font:inherit;font-size:.88rem;cursor:pointer}
.cover-save[aria-pressed=true],#only-saved[aria-pressed=true]{background:#23483b;color:#fff8e8}
.featured-cover{grid-column:span 5;align-self:center;overflow:hidden;margin:0;background:#192a34}
#cover-dialog{border:1px solid #d9c9a9;border-radius:15px;max-width:min(92vw,840px);max-height:92vh;background:#fff9ea;padding:16px}
#cover-dialog::backdrop{background:#102a31e0}
#cover-dialog form{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:10px}
#cover-dialog h2{margin:0;font-size:clamp(1.05rem,3vw,1.65rem)}
#cover-dialog img{display:block;width:100%;max-height:73vh;object-fit:contain;height:auto}
#shelf-status:empty{display:none}
@media(max-width:930px){.cover-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:630px){.featured-cover{grid-column:1/-1}.shelf-heading{display:block}.shelf-tools{margin-top:12px}}
@media(max-width:530px){.cover-grid{grid-template-columns:1fr}}
.book-actions{margin:12px 0}.book-actions .button{margin:0}
.reading-prompt{border-left:3px solid #a8782d;padding-left:12px}
.collection-link{display:inline-flex;align-items:center;min-height:44px;color:var(--forest)}
#book-feedback:empty,#share-status:empty{display:none}
#share-dialog label{display:block;margin-bottom:5px}
#share-url{width:100%;min-height:44px;padding:8px;border:1px solid #899989;border-radius:6px;font:inherit}
