.popup-style-entry .cover-art{aspect-ratio:1/1}.popup-style-entry .cover-art img{width:100%;height:100%;object-fit:contain}.popup-style-entry .popup-entry-warm .cover-art{background:#efdfbe;padding:12px}.popup-style-entry .cover-title{font-size:22px}.popup-style-entry .cover-dialog-footer{gap:12px}.popup-style-entry{color:#24384b}#popup-book-reader[data-reading-theme="warm"]{background:#fff4de}#popup-book-reader[data-reading-theme="warm"] .pp-reading-copy{background:#fff4de}
.popup-style-entry button{height:auto;min-height:40px;max-height:44px;flex:0 0 auto;border-radius:4px;padding:9px 14px;font:14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;box-shadow:none}.popup-style-entry button.quiet{background:transparent;color:#64758b;border:1px solid #dce4ed}.popup-style-entry button.primary{background:#356fbc;color:white;border:1px solid #356fbc}.popup-style-entry .cover-heading{align-items:flex-start}.popup-style-entry .cover-heading>button{align-self:flex-start;width:36px;min-width:36px;min-height:36px;padding:4px;font-size:24px;border:0;background:transparent;color:#7f8da0}.popup-style-entry .cover-options{margin:30px auto 24px;max-width:554px;gap:32px}.popup-style-entry .cover-heading p{line-height:1.8;margin:8px 0 0}.popup-style-entry .cover-dialog-footer{align-items:center}.popup-style-entry .cover-dialog-footer>div{flex:1}.popup-style-entry .cover-dialog-footer>button{align-self:center}
@media(max-width:600px){.popup-style-entry .cover-options{gap:14px}.popup-style-entry .cover-dialog-footer{flex-wrap:wrap}.popup-style-entry .cover-dialog-footer>div{flex-basis:100%}}

/* One real style stays centered; a longer catalog forms a native swipe rail. */
.popup-style-entry .cover-options{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 24px)/2);gap:24px;max-width:600px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:8px;scroll-padding:8px;margin:18px auto 14px;box-sizing:border-box}
.popup-style-entry .cover-option{scroll-snap-align:start;min-width:0}
.popup-style-entry .cover-options.popup-style-single{grid-auto-columns:100%;max-width:276px}
.popup-style-entry .popup-style-navigation{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 18px;color:#718198;font-size:12px}
.popup-style-entry .popup-style-navigation[hidden]{display:none}
.popup-style-entry .popup-style-navigation button{min-width:40px;padding:6px 10px}
.popup-style-entry .popup-style-navigation button:disabled{opacity:.4;cursor:default}
.popup-style-entry .popup-style-single .cover-check{display:none}
.popup-style-entry .popup-style-single .cover-art{border-color:transparent;box-shadow:0 3px 13px #1d30411a}
@media(max-width:600px){.popup-style-entry .cover-options{grid-auto-columns:85%;gap:16px;max-width:100%}.popup-style-entry .cover-options.popup-style-single{grid-auto-columns:100%;max-width:240px}.popup-style-entry .cover-heading h2{font-size:24px}}
.popup-style-entry{overflow-x:hidden}
.popup-style-entry .cover-options{width:100%;min-inline-size:0}
.popup-style-entry .cover-heading>div{min-width:0;flex:1}
.popup-style-entry .popup-style-single .cover-option .cover-check{display:none}
.popup-style-entry .popup-style-single .cover-option .cover-art{border-color:transparent;box-shadow:0 3px 13px #1d30411a}
.popup-style-entry .popup-style-navigation span{white-space:nowrap;flex-shrink:0}
.popup-style-entry .cover-heading{height:auto;min-height:0;padding:0;border:0;background:transparent;box-shadow:none}
.popup-style-entry .popup-style-navigation button{width:40px;max-width:40px;flex:0 0 40px}
