.summary-bookshelf-web {
    --shelf-ink: #231f27;
    --shelf-accent: #652f68;
    --shelf-surface: #f7f2f7;
    --shelf-line: #ded5df;
    color: var(--shelf-ink);
}

.summary-bookshelf-web [data-bookshelf-status]:empty {
    margin: 0;
}

.summary-bookshelf-web .summary-bookshelf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.summary-bookshelf-web .summary-bookshelf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45em;
    min-height: 44px;
    padding: .55em 1em;
    border: 1px solid var(--shelf-accent);
    border-radius: 999px;
    background: #fff;
    color: var(--shelf-accent);
    font: inherit;
    font-weight: 650;
    line-height: 1.25;
    cursor: pointer;
}

.summary-bookshelf-web .summary-bookshelf-button--favorite::before { content: "♡" / ""; }
.summary-bookshelf-web .summary-bookshelf-button--favorite[aria-pressed="true"]::before { content: "♥" / ""; }
.summary-bookshelf-web .summary-bookshelf-button--read_later::before { content: "＋" / ""; }
.summary-bookshelf-web .summary-bookshelf-button--read_later[aria-pressed="true"]::before { content: "✓" / ""; }

.summary-bookshelf-web .summary-bookshelf-button:hover { background: var(--shelf-surface); }
.summary-bookshelf-web .summary-bookshelf-button[aria-pressed="true"] {
    background: var(--shelf-accent);
    color: #fff;
}
.summary-bookshelf-web .summary-bookshelf-button:disabled {
    opacity: .65;
    cursor: wait;
}

.summary-bookshelf-web .summary-bookshelf-button:focus-visible,
.summary-bookshelf-web .summary-bookshelf-book:focus-visible {
    outline: 2px solid var(--shelf-accent);
    outline-offset: 3px;
}

.summary-bookshelf-web .summary-bookshelf-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
    align-items: start;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-bookshelf-web .summary-bookshelf-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
    margin: 0;
    padding: .875rem;
    border: 1px solid var(--shelf-line);
    border-radius: .875rem;
    background: #fff;
}

.summary-bookshelf-web .summary-bookshelf-book {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.summary-bookshelf-web .summary-bookshelf-cover {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: .375rem;
    background: var(--shelf-surface);
}

.summary-bookshelf-web .summary-bookshelf-cover:empty {
    min-height: 5rem;
}

.summary-bookshelf-web .summary-bookshelf-cover:empty::after {
    content: "書影なし";
    font-size: .8rem;
    color: #604c61;
}

.summary-bookshelf-web .summary-bookshelf-cover img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.summary-bookshelf-web .summary-bookshelf-button--remove {
    margin-top: auto;
    border-color: var(--shelf-line);
    font-size: .875em;
}
