.bookshelf-api-card{background:#fff;border:1px solid #d7dce3;border-radius:18px;padding:clamp(18px,4vw,30px);box-shadow:0 10px 30px rgba(22,37,61,.06)}
.bookshelf-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.bookshelf-search-field{display:grid;gap:7px}.bookshelf-search-field label{font-weight:700;color:#192c49}
.bookshelf-search-input{width:100%;min-height:48px;border:1px solid #aeb8c6;border-radius:10px;padding:10px 14px;font:inherit;color:#172b48;background:#fff}
.bookshelf-search-input:focus{outline:3px solid rgba(41,105,176,.18);border-color:#2969b0}
.bookshelf-api-hint{margin:12px 0 0;color:#5d6878;font-size:.95rem}
.bookshelf-profile-list,.bookshelf-shelf-list{display:grid;gap:10px;margin-top:18px}
.bookshelf-profile{width:100%;display:flex;align-items:center;gap:14px;text-align:left;border:1px solid #d7dce3;border-radius:14px;background:#fff;padding:12px;cursor:pointer;color:#172b48;font:inherit}
.bookshelf-profile:hover,.bookshelf-profile:focus-visible{border-color:#2969b0;background:#f5f9fd;outline:none}
.bookshelf-avatar,.bookshelf-shelf-image{width:58px;height:58px;border-radius:50%;object-fit:cover;background:#e8edf3;flex:0 0 auto}
.bookshelf-profile strong{font-size:1.08rem}.bookshelf-profile-placeholder{display:grid;place-items:center;font-weight:800;color:#718096}
.bookshelf-selected-profile{display:flex;align-items:center;gap:14px;margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid #e2e6eb}
.bookshelf-selected-profile h2{margin:0}.bookshelf-selected-profile p{margin:3px 0 0;color:#667085}
.bookshelf-shelf-tools{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.bookshelf-text-button{border:0;background:transparent;color:#245f9f;text-decoration:underline;cursor:pointer;font:inherit;padding:4px}
.bookshelf-shelf-option{display:grid;grid-template-columns:auto 52px minmax(0,1fr);gap:12px;align-items:center;padding:12px;border:1px solid #d7dce3;border-radius:13px;cursor:pointer}
.bookshelf-all-books-option{grid-template-columns:auto minmax(0,1fr)}
.bookshelf-shelf-option:not(.bookshelf-all-books-option){margin-left:clamp(24px,4vw,42px)}
.bookshelf-shelf-option:has(input:checked){border-color:#2969b0;background:#f4f8fd}
.bookshelf-shelf-option input{width:21px;height:21px;accent-color:#2969b0}
.bookshelf-shelf-image{width:52px;height:52px}.bookshelf-shelf-copy{display:grid;gap:2px}.bookshelf-shelf-copy strong{color:#172b48}.bookshelf-shelf-copy span{color:#687386;font-size:.92rem}
.bookshelf-api-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.bookshelf-profile-empty{padding:20px;text-align:center;color:#667085;background:#f7f8fa;border-radius:12px}
.bookshelf-api-error-detail{color:#7a2430}.bookshelf-source-profile{font-weight:700;color:#172b48}
.bookshelf-refresh-status{margin:10px 0 16px;color:#5d6878;font-size:.95rem;line-height:1.5}
.bookshelf-refresh-notice{margin:0 0 16px;padding:12px 14px;border:1px solid #b9d3c4;border-radius:12px;background:#f3faf5;color:#214f39}
.bookshelf-refresh-notice.bookshelf-api-error-detail{border-color:#e2b8bd;background:#fff5f6;color:#7a2430}
@media(max-width:620px){.bookshelf-search-form{grid-template-columns:1fr}.bookshelf-search-form .button{width:100%}.bookshelf-api-actions .button{width:100%}.bookshelf-shelf-option:not(.bookshelf-all-books-option){margin-left:18px}}
