/* U123-B: strictly same-site cached real covers, with readable fallback. */
.sk123-bookshelf .sk123-cover-real{display:flex;padding:0;background:#e5eaf4;border:1px solid var(--sk123-line,#8295b0);justify-content:center;align-items:stretch;flex-direction:column}
.sk123-bookshelf .sk123-cover-real:before{display:none}
.sk123-bookshelf .sk123-cover-real>img{display:block;width:100%;height:100%;min-height:145px;object-fit:contain;flex:1;background:#e5eaf4}
.sk123-bookshelf .sk123-cover-real>small{display:block;background:#172a45;color:#f7faff!important;text-align:center;padding:5px 3px;font-size:9px;letter-spacing:0}
.sk123-bookshelf .sk123-meta{font-size:11px;line-height:1.5;color:var(--sk123-muted,#55677b);margin:2px 0 8px;overflow-wrap:anywhere}
.sk121-book-scan .sk123b-lookup-cover:not([hidden]){display:block;object-fit:contain;width:95px;height:140px;max-width:100%;margin:10px 0;background:#f8f9ff;border:1px solid #91a4bd;border-radius:8px}
.sk121-book-scan .sk123b-lookup-cover[hidden]{display:none!important}

.sk123b-camera-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.sk121-book-scan video[data-sk123b-camera]:not([hidden]){display:block;width:min(100%,380px);height:auto;max-height:250px;object-fit:cover;background:#14243b;border:2px solid #b0bde2;border-radius:15px;margin:10px 0}
.sk121-book-scan video[data-sk123b-camera][hidden]{display:none!important}
.sk123b-camera-actions button[hidden]{display:none!important}
.sk123b-camera-actions button:focus-visible{outline:3px solid #325fc8;outline-offset:3px}
/* Keep state badge clear of the local-source caption on narrow book cards. */
.sk123-book-upper .sk123-cover-real + .sk123-pill{bottom:23px}
