/* Shelves stay quiet and useful beside the existing cover carousel. */
.bookshelf-bar{display:flex;align-items:center;gap:16px;margin:6px 0 15px;padding:17px 0 15px;border-top:1px solid var(--line);min-width:0}
.bookshelf-bar-label{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:1px;white-space:nowrap;color:var(--muted)}
.bookshelf-bar-label svg{width:18px;height:18px}
.bookshelf-tabs{display:flex;align-items:center;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;min-width:0;flex:1;padding:5px 2px 7px;scroll-padding:4px}
.bookshelf-chip{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;border:1px solid transparent;border-radius:4px;min-height:39px;padding:9px 13px;font-size:12px;white-space:nowrap;background:transparent;color:var(--muted);transition:background .18s,color .18s,border-color .18s}
.bookshelf-chip small{font:10px var(--sans);opacity:.75}
.bookshelf-chip:hover{background:var(--soft);color:var(--ink)}
.bookshelf-chip.is-active{border-color:#d5ddce;background:#e9ede2;color:var(--ink)}
.bookshelf-chip.bookshelf-all.is-active{background:var(--ink);border-color:var(--ink);color:#fff}
.bookshelf-manage{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;font-size:11px;white-space:nowrap;min-height:42px;padding:8px 2px 8px 10px}
.bookshelf-manage svg{width:17px;height:17px}
.bookshelf-intro{margin-bottom:22px!important;line-height:1.9!important}
.bookshelf-create{margin:0 0 22px}
.bookshelf-create>label{display:block;font-size:11px;color:var(--ink);margin:0 0 8px;letter-spacing:.5px}
.bookshelf-create>div{display:flex;gap:8px;align-items:center}
.bookshelf-create .field{margin:0;min-width:0;flex:1}
.bookshelf-create .secondary{flex:0 0 auto;min-height:44px;padding:10px 16px}
.bookshelf-manager-list{border-top:1px solid var(--line)}
.bookshelf-edit-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:14px 0}
.bookshelf-row-icon{width:35px;height:45px;border:1px solid #d5dbce;border-radius:3px;display:grid;place-items:center;color:#7b8b70;background:#edf0e7;flex:0 0 auto}
.bookshelf-row-icon svg{width:19px;height:19px}
.bookshelf-name-wrap{flex:1;min-width:0}
.bookshelf-name-wrap .field{margin:0 0 5px;padding:7px 9px;background:transparent;font-size:13px}
.bookshelf-name-wrap small{font-size:10px;color:var(--muted);margin-left:9px}
.bookshelf-remove{min-height:44px;min-width:44px;padding:8px 0;color:#966350;font-size:11px;flex-shrink:0}
.bookshelf-note{margin-top:19px!important;font-size:11px!important}
.bookshelf-feedback{min-height:20px;font-size:11px!important;margin-top:12px!important;color:#84623c!important}
.bookshelf-manager-empty{padding:25px 8px!important;text-align:center;line-height:2;color:var(--muted);font-size:12px}
.bookshelf-picker-list{border-top:1px solid var(--line);margin-bottom:24px}
.bookshelf-choice{display:flex;align-items:center;gap:12px;min-height:57px;padding:13px 4px;border-bottom:1px solid var(--line);cursor:pointer;touch-action:manipulation}
.bookshelf-choice input{width:18px;height:18px;accent-color:var(--ink);margin:0;flex:0 0 auto}
.bookshelf-choice span{flex:1;overflow-wrap:anywhere;font-size:13px}
.bookshelf-choice small{font-size:10px;color:var(--muted);white-space:nowrap}
.bookshelf-picker-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:15px}
.bookshelf-picker-footer .text-btn{min-height:44px}
.bookshelf-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){.bookshelf-bar{gap:8px;flex-wrap:wrap;padding:13px 0 11px;margin-bottom:5px}.bookshelf-bar-label{font-size:10px}.bookshelf-tabs{flex-basis:calc(100% - 90px);order:3}.bookshelf-manage{margin-left:auto;min-height:32px;font-size:10px;padding:3px 0}.bookshelf-chip{padding:8px 11px;font-size:11px;min-height:37px}.bookshelf-create .secondary{padding:10px 14px}.bookshelf-edit-row{gap:9px}}
@media(prefers-reduced-motion:reduce){.bookshelf-chip{transition:none}}
.reorder-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:16px 0 24px}.reorder-heading p{font-size:11px;color:var(--muted);margin:0!important;line-height:1.8}.reorder-heading .secondary{flex-shrink:0}.book-sort-dialog .modal{width:min(1000px,94vw);max-width:1000px}.book-sort-dialog .grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:28px 22px;margin-top:25px}.book-sort-dialog .grid-book strong{font-size:15px}

.bulk-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.bulk-heading p{color:var(--muted);font-size:13px}
.bulk-grid{gap:28px 20px}.bulk-book{display:block;position:relative;cursor:pointer;min-width:0}.bulk-cover{display:block;position:relative;border-radius:3px;outline:2px solid transparent;outline-offset:6px;transition:outline-color .15s}.bulk-cover img{display:block;width:100%;aspect-ratio:2/3;object-fit:contain;box-shadow:3px 8px 14px #263b3020}.bulk-book>input{position:absolute;opacity:0;width:100%;height:100%;inset:0;cursor:pointer}.bulk-tick{position:absolute;top:8px;right:8px;width:26px;height:26px;display:grid;place-items:center;background:var(--paper,#f7f6f2);color:transparent;border:1px solid #737a6d;border-radius:50%;pointer-events:none}.bulk-book input:checked+.bulk-cover{outline-color:var(--ink)}.bulk-book input:checked+.bulk-cover .bulk-tick{background:var(--ink);color:white}.bulk-book input:focus-visible+.bulk-cover{outline:3px solid #b59057}.bulk-book strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:400;line-height:1.6;margin-top:12px}.bulk-footer{margin-top:28px;border-top:1px solid var(--line);padding-top:22px;display:grid;gap:16px}.bulk-footer select{margin-top:8px}.bulk-footer .bookshelf-create{margin:0}.bulk-move{font-size:13px;display:flex;align-items:center;gap:8px}.bulk-footer input[type=checkbox]{width:18px;height:18px;accent-color:var(--ink)}.bulk-footer>button{justify-self:end}.bulk-heading button{white-space:nowrap}.tools .bulk-trigger{font-size:12px;padding:8px 10px;white-space:nowrap;min-height:40px}@media(max-width:600px){.tools{flex-wrap:wrap}.bulk-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px 16px}.bulk-heading{align-items:flex-start}.bulk-book strong{font-size:11px}}

.bulk-tick{min-width:28px;width:auto;padding:0 5px;font:600 13px var(--sans);font-variant-numeric:tabular-nums;box-shadow:0 2px 8px #0002}

.bulk-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.bulk-actions .danger{color:#9b4237;border-color:#c9a69d}.delete-book-list{max-height:35dvh;overflow:auto;padding-left:28px;font-size:14px;line-height:2}.delete-book-list li{overflow-wrap:anywhere}.bulk-book>input{z-index:2}.bulk-cover,.bulk-book strong{pointer-events:none}.bulk-tick{font-size:15px;min-width:30px;min-height:30px}
