.library-shell > .account-header {
    width: min(1320px, calc(100% - 3rem));
    margin-inline: auto;
}

.library-shell .account-kicker {
    letter-spacing: normal;
}

.library-shell .book-card {
    display: flex;
    flex-direction: column;
}

.library-shell .book-cover {
    flex: none;
    display: grid;
    place-items: center;
}

.library-shell .book-card .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    filter: none;
}

.book-cover__placeholder {
    color: #c6a15b;
    font: 800 1.2rem/1 Arial, sans-serif;
    letter-spacing: .12em;
}

.book-publication-status {
    margin-top: .85rem;
    color: #ff8757;
    font-size: .9rem;
    line-height: 1.7;
}

.library-shell .book-card.is-coming-soon .book-cover {
    opacity: .5;
}

.library-shell .book-card.is-coming-soon .book-cover img {
    filter: grayscale(1);
}

.book-card.is-coming-soon .book-publication-status {
    color: #b7b1aa;
}

.library-shell .book-card > .book-writing-note {
    min-height: 0;
    margin: .75rem 0 1rem;
    color: #c6c0b9;
}

.library-shell .book-card footer {
    margin-top: auto;
    flex-wrap: wrap;
}

.library-shell .book-card footer button {
    min-height: 44px;
    line-height: 1.6;
}

.library-shell .book-card footer button:disabled {
    color: #aaa49d;
    border-color: #ffffff29;
    background: transparent;
    cursor: not-allowed;
}

.library-shell button:focus-visible,
.library-shell a:focus-visible,
.account-book-record button:focus-visible {
    outline: 2px solid #ff8757;
    outline-offset: 4px;
}

.library-shell .book-card > .library-action-status,
.account-book-record .library-action-status {
    min-height: 0;
    margin: .75rem 0 0;
    color: #f5efe8;
    font-size: .9rem;
    line-height: 1.8;
}

.library-shell .book-card > .library-action-status:empty,
.account-book-record .library-action-status:empty {
    margin: 0;
}

.library-empty {
    padding: 2rem;
    color: #b7b1aa;
}

.account-book-record .book-download-hint,
.account-book-record .library-action-status,
.account-book-record .book-request-link {
    grid-column: 1 / -1;
}

.account-book-record .book-download-hint {
    margin: .6rem 0;
    color: #b7b1aa;
    font-size: .9rem;
    line-height: 1.9;
}

.account-book-record .book-request-link {
    justify-self: start;
    min-height: 44px;
    padding: .7rem .9rem;
    border: 1px solid #ff5a1f;
    color: #f5efe8;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: .9rem;
    text-align: start;
    cursor: pointer;
}

.account-book-record .book-request-link:hover:not(:disabled) {
    background: #ff5a1f;
    color: #050505;
}

.account-book-record .book-request-link:disabled {
    opacity: .65;
    cursor: wait;
}

html[lang="en"] .library-intro h1 {
    font: 700 clamp(2rem, 5vw, 4rem)/1.15 "IBM Plex Sans", Arial, sans-serif;
}

@media (max-width: 800px) {
    .library-shell .account-header__actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .75rem;
    }

    .library-shell .account-header__actions > a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 600px) {
    .library-shell > .account-header {
        width: calc(100% - 1.5rem);
        gap: 1rem;
    }

    .library-shell .account-header__actions {
        gap: .4rem .7rem;
    }

    .library-intro {
        margin-top: 4rem;
    }

    .account-book-record {
        grid-template-columns: minmax(0, 1fr);
    }
}
