/* Inherit the site's palette and typography; one full-width shelf per status. */
.jem-library{color:inherit;font-family:inherit;width:100%;max-width:none;margin:1.5rem 0;box-sizing:border-box}
.jem-library-row{width:100%;max-width:none;margin:0 0 2rem;color:inherit;box-sizing:border-box}
.jem-library-row>h2{font-family:inherit;font-size:1.3rem;line-height:1.4;margin:0 0 .7rem;color:inherit}
.jem-library-shelves{display:flex;gap:0;width:100%;max-width:100%;min-height:150px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;box-sizing:border-box;padding:16px 8px 14px;background:transparent;color:inherit;border:0;border-bottom:20px solid var(--jem-shelf-color,#b58a55);border-radius:0;box-shadow:0 7px 8px -7px #0005}
.jem-library-book{flex:0 0 180px;min-width:0;box-sizing:border-box;scroll-snap-align:start;text-align:center;padding:0 12px;margin:0!important;display:flex;flex-direction:column;align-items:center;color:inherit;background:transparent;border:0;box-shadow:none}
.jem-library-cover{display:flex;align-items:flex-end;justify-content:center;width:100%;height:220px;padding:10px 5px 12px;box-sizing:border-box}
.jem-library-cover img{max-height:198px!important;width:auto!important;max-width:100%!important;object-fit:contain;box-shadow:4px 7px 10px #0004;border-radius:2px}
.jem-library-placeholder{display:flex;align-items:center;justify-content:center;background:transparent;color:inherit;border:1px solid currentColor;width:135px;height:190px;padding:12px;box-sizing:border-box;box-shadow:4px 7px 10px #0004}
.jem-library-status{font-size:.8rem;line-height:1.3;border-radius:1rem;border:1px solid currentColor;background:transparent;color:inherit;padding:.15rem .55rem;margin:.4rem 0}
.jem-library-open{display:block;font-size:.85rem;line-height:1.4;margin:.3rem 0}
.jem-library-book form{width:100%;margin: auto 0 0;padding-top:.6rem;color:inherit}
.jem-library-book label{display:block;font-size:.8rem;line-height:1.4;color:inherit;margin:0 0 .2rem}
.jem-library .jem-library-book select{width:100%;max-width:100%;min-height:0;height:auto;font-family:inherit;font-size:.8rem;line-height:1.4;padding:.25rem .4rem;border:1px solid currentColor;border-radius:4px;color:inherit;background:transparent;box-sizing:border-box}
.jem-library-book select option{color:CanvasText;background:Canvas}
/* Theme classes provide button colors; only compact dimensions are imposed. */
.jem-library .jem-library-book button{display:inline-block;width:auto!important;max-width:100%;min-width:0;min-height:0;height:auto;margin:.35rem 0 0!important;font-family:inherit;font-size:.8rem!important;line-height:1.4!important;padding:.25rem .65rem!important;cursor:pointer;box-sizing:border-box}
.jem-library-empty{align-self:center;padding:1rem;margin:0;color:inherit;font-size:.9rem}
.jem-library a:focus-visible,.jem-library button:focus-visible,.jem-library select:focus-visible,.jem-library-shelves:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:480px){.jem-library-book{flex-basis:155px;padding-left:8px;padding-right:8px}.jem-library-shelves{padding:12px 4px}.jem-library-cover{height:180px}.jem-library-cover img{max-height:158px!important}.jem-library-placeholder{height:150px;width:110px}}

.jem-reader-devices { margin-block: 1rem 1.5rem; }
.jem-reader-devices li + li { margin-block-start: .75rem; }
.jem-reader-devices li form { display: inline-block; margin-inline-start: .5rem; }

.jem-device-content {
    box-sizing: border-box;
    max-width: var(--wp--style--global--content-size, 48rem);
    margin-inline: auto;
    padding: clamp(1rem, 4vw, 2rem);
}
.jem-device-action {
    display: inline-block;
    vertical-align: middle;
}
.jem-device-action > .wp-block-button__link {
    box-sizing: border-box;
    min-block-size: 2.25rem;
    padding: .3rem .9rem;
    border-radius: 999px;
    font-size: .875rem;
    line-height: 1.25;
    cursor: pointer;
}
.jem-device-action .jem-device-theme-accent {
    background-color: var(--jem-device-accent);
    color: var(--jem-device-accent-text);
}
.jem-device-action > .wp-block-button__link:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
}

.jem-reader-devices > .jem-device-action + .jem-device-action { margin-inline-start: .5rem; }
