/* Discover's recommendations use a horizontal strip, not the catalog card grid. */
#discover-picks {min-width:0; overflow:hidden; background:linear-gradient(150deg,#fffcf4,#f5ead8)}
#discover-picks > [role=status]:empty {display:none}
.bf-picks-rail {margin-top:.7rem}
.bf-picks-viewport {overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:none; scroll-snap-type:x proximity; direction:ltr}
.bf-picks-viewport::-webkit-scrollbar {display:none}
.bf-picks-track,.bf-picks-set {display:flex; width:max-content}
.bf-picks-set {gap:.55rem; padding:.25rem .55rem .7rem 0}
.bf-picks-rail[hidden],.bf-picks-set[hidden],.bf-picks-controls[hidden] {display:none}
button.bf-picks-cover {display:block; flex:none; width:8rem; padding:0; border:0; border-radius:.28rem .52rem .52rem .28rem; background:transparent; scroll-snap-align:start; box-shadow:0 4px 9px #382c2133; cursor:pointer}
[data-bookflip-view=app] button.bf-picks-cover {width:7rem}
.bf-picks-cover:focus-visible {outline:3px solid #9b3324; outline-offset:-3px; z-index:1}
.bf-picks-cover .book-tile {width:100%; height:auto; aspect-ratio:2/3; background:#e6d4b8}
.bf-picks-cover .book-tile img {object-fit:contain}
.bf-picks-controls {display:flex; justify-content:flex-end; gap:.45rem; margin-top:.15rem}
.bf-picks-controls button,.bf-book-dialog button.bf-book-close {display:grid; place-items:center; min-width:44px; min-height:44px; padding:0; border:1px solid #c9b698; border-radius:100%; background:#fffcf4; color:#23382e; font:700 1.45rem/1 system-ui,sans-serif; cursor:pointer}
.bf-picks-controls button:hover,.bf-book-dialog button.bf-book-close:hover {background:#efdfc8}

.bf-book-dialog {position:fixed; isolation:isolate; width:min(44rem,calc(100% - 1.5rem)); max-width:none; max-height:min(90vh,90dvh); margin:auto; padding:.45rem; overflow:auto; border:1px solid #795340; border-radius:.85rem; color:#34281d; background:#604033; box-shadow:0 1.35rem 4rem #170e0b85}
[data-bookflip-view=app] .bf-book-dialog {width:min(27rem,calc(100% - 1.5rem))}
.bf-book-dialog::backdrop {background:#1e211c9e}
.bf-book-dialog button.bf-book-close {position:absolute; z-index:1; top:.7rem; inset-inline-end:.75rem}
.bf-book-pages {display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); border-radius:.53rem; overflow:hidden; perspective:60rem}
.bf-book-page {min-width:0; min-height:14rem; overflow-wrap:anywhere; padding:clamp(.8rem,3vw,1.65rem)}
.bf-book-left {background:linear-gradient(90deg,#fff8e9 91%,#e8d6bc); border-radius:.5rem 0 0 .5rem}
.bf-book-right {align-content:center; padding-top:3.4rem; background:linear-gradient(90deg,#dfcbb0,#fffaee 15%); border-radius:0 .5rem .5rem 0; transform-origin:left center; animation:bf-open-page 360ms cubic-bezier(.22,.64,.36,1) both}
.bf-book-page h2 {margin:0; font:700 clamp(1.15rem,4vw,1.85rem)/1.15 Georgia,serif}
.bf-book-author {margin:.35rem 0 0; color:#635142; font-size:.9rem}
.bf-book-summary {margin:.7rem 0 0; font-size:clamp(.87rem,2vw,1rem); line-height:1.52}
.bf-book-dialog .actions {display:flex; flex-direction:column; align-items:stretch; gap:.6rem}
.bf-book-dialog .actions button {min-height:44px; padding-inline:.4rem}
.bf-book-dialog .actions button[aria-pressed=true] {background:#dce8d4; color:#23382e}
.bf-book-dialog .book-save-status {margin:0; font-size:.83rem}
.bf-book-dialog .book-save-status:empty {display:none}
@keyframes bf-open-page {from {opacity:0; transform:rotateY(-78deg)} to {opacity:1; transform:rotateY(0)}}
@media (prefers-reduced-motion:reduce) {.bf-book-right {animation:none}}
