.bookshelf-page{--surface:var(--bg-elev);--border:var(--bg-elev-2);--muted:var(--text-muted);max-width:1120px;margin:0 auto;padding:28px 24px 110px;color:var(--text)}
.shelf-heading,.shelf-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.shelf-actions{justify-content:flex-start;margin-top:12px}
.shelf-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:22px;margin:18px 0;min-width:0}
.bookshelf-page h1,.bookshelf-page h2,.bookshelf-page p{margin:0 0 12px}.bookshelf-page h2{font-size:1.2rem}.bookshelf-page a{color:var(--accent)}
.shelf-hint,.shelf-meta{color:var(--muted);font-size:.9rem;line-height:1.5}.bookshelf-page button{min-height:44px;padding:10px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2,var(--bg));color:var(--text);cursor:pointer}.bookshelf-page button.primary-btn{background:var(--accent);color:var(--on-accent,#102a2d)}.bookshelf-page button:disabled{opacity:.5;cursor:default}
.shelf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.shelf-fields label{display:flex;flex-direction:column;gap:6px;font-size:.9rem}.shelf-fields .shelf-wide{grid-column:1/-1}
.bookshelf-page input:not([type=checkbox]),.bookshelf-page textarea{width:100%;box-sizing:border-box;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);font:inherit}.bookshelf-page input[type=checkbox]{accent-color:var(--accent);width:20px;height:20px;vertical-align:middle;margin-right:8px}.shelf-check{display:block;margin:14px 0}
.shelf-book,.shelf-draft{overflow-wrap:anywhere}.shelf-book p{margin-bottom:6px}
.shelf-batch-label{display:block;margin:16px 0 6px}.bookshelf-page #shelf-batch-location{margin-bottom:6px;max-width:520px}
.shelf-table-scroll{max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:12px;isolation:isolate;overscroll-behavior-x:contain;max-height:65vh}
.shelf-table{border-collapse:separate;border-spacing:0;width:100%;font-size:.9rem;text-align:left;table-layout:fixed;min-width:1100px}
#shelf-drafts .shelf-table{min-width:1950px}.shelf-table th,.shelf-table td{width:190px;padding:10px;vertical-align:top;border-bottom:1px solid var(--border);background:var(--surface)}
.shelf-table th{position:sticky;top:0;z-index:2;font-size:.8rem;color:var(--muted)}.shelf-table th:first-child,.shelf-table td:first-child{position:sticky;left:0;z-index:1;border-right:1px solid var(--border);width:190px}.shelf-table th:first-child{z-index:3}
.shelf-table td:first-child{background:var(--bg)}.shelf-table th:nth-child(2),.shelf-table td:nth-child(2){width:170px}.shelf-table th:nth-child(3),.shelf-table td:nth-child(3){width:145px}
#shelf-drafts .shelf-table th:nth-child(5),#shelf-drafts .shelf-table td:nth-child(5){width:290px}
.shelf-table textarea{resize:vertical;min-height:66px}.shelf-table .shelf-check{margin:8px 0}.shelf-table details{margin-top:6px}.shelf-table summary{cursor:pointer;color:var(--accent);padding:6px 0}.shelf-table label{display:block}.shelf-table button{padding:8px 10px;margin:3px 3px 3px 0}
.shelf-age-pair{display:flex;align-items:center;gap:4px}.shelf-age-pair input{width:68px!important;padding:8px!important}.shelf-catalog{margin-top:10px}.shelf-catalog:empty{display:none}.shelf-edition-option{padding:8px 0;border-top:1px solid var(--border);display:grid;gap:6px}
.shelf-review-footer{position:sticky;bottom:0;z-index:4;background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 0 0}.shelf-form-message:empty{display:none}
.shelf-table :is(button,input,textarea,summary){scroll-margin:90px 12px}.shelf-table-scroll{scroll-padding-inline-start:210px}
.shelf-review-help{margin-bottom:12px}.shelf-review-help summary{color:var(--accent);cursor:pointer;padding:6px 0}.shelf-table textarea[name=description]:focus{min-height:210px}
.shelf-review-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:12px 0}.shelf-review-tools>label{display:grid;gap:4px;min-width:160px}.shelf-review-tools .shelf-actions{margin:0;flex:1}.shelf-match-badge{display:inline-block;font-size:.78rem;font-weight:700;line-height:1.35;padding:4px 7px;border:1px solid var(--border);border-radius:6px;margin-top:6px;color:var(--text)}.shelf-match-badge[data-confident=true]{color:var(--accent);border-color:var(--accent)}.shelf-match-help .shelf-hint,.shelf-match-message{font-size:.8rem}.shelf-draft[hidden]{display:none}#shelf-review-action-status:empty{display:none}#shelf-review-action-status{margin:8px 0;overflow-wrap:anywhere}
#shelf-review,#shelf-editor{scroll-margin-top:80px}
.shelf-draft td:first-child>.shelf-check{display:flex;align-items:center;min-height:44px;margin:0}.shelf-draft td:first-child>.shelf-match-help{margin:0}.shelf-match-help>summary{font-size:.8rem;line-height:1.3;min-height:44px;box-sizing:border-box;padding:8px 0}
.shelf-match-help>summary .shelf-match-badge{margin:0;border:0;padding:0}
.shelf-previews{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0;max-height:260px;overflow:auto}.shelf-previews figure{margin:0;display:grid;gap:6px}.shelf-previews img{width:100px;height:80px;object-fit:contain;border-radius:8px;background:var(--bg)}
.shelf-form-actions{position:sticky;bottom:0;background:var(--surface);padding:12px 0;display:flex;gap:10px;border-top:1px solid var(--border);margin-top:14px}.shelf-error{color:var(--danger,#e78e85)}.shelf-mobile{display:none}.bookshelf-page [hidden]{display:none!important}.shelf-form-message{margin-top:10px!important}
.bookshelf-page button{font:inherit;font-size:.9rem}.bookshelf-page :is(button,input,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:3px}.shelf-discovery-tools button[aria-pressed=true]{background:var(--accent);color:var(--bg)}
.shelf-owned-badge{display:inline-block;border:1px solid var(--accent);border-radius:8px;padding:3px 8px;color:var(--accent);font-size:.85rem;margin:6px 0}.shelf-discovery-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 0 16px}.shelf-discovery-tools a{color:var(--accent)}
@media(max-width:768px){.bookshelf-page{padding:16px 14px 110px}.shelf-card{padding:16px}.shelf-fields{grid-template-columns:1fr}.shelf-mobile{display:inline-block}.shelf-actions button{flex:1 1 auto}.shelf-form-actions{bottom:0}.shelf-heading h1{font-size:1.6rem}}
@media(max-width:768px){.shelf-table th:first-child,.shelf-table td:first-child{width:150px}.shelf-table td,.shelf-table th{padding:8px}.shelf-table-scroll{max-height:60vh}.shelf-review-footer{bottom:72px}.shelf-table input,.shelf-table textarea{font-size:16px!important}}
@media(max-width:600px){.shelf-table td:first-child{position:static}.shelf-table th:first-child{left:auto}.shelf-table-scroll{scroll-padding-inline-start:0}}

/* One theme-aware control system for collection, capture and private details. */
.bookshelf-page select,.shelf-dialog :is(input,select,textarea){width:100%;min-width:0;min-height:44px;border:1px solid var(--bg-elev-2);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;padding:9px 12px;box-sizing:border-box}
.shelf-library-tools{margin-block:16px}.shelf-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.shelf-filter-grid label,.shelf-dialog label{display:grid;gap:6px;font-size:.9rem}.shelf-filter-grid select{margin-top:4px}.shelf-lookup-label{flex:1;max-width:520px;display:grid;gap:6px}
.shelf-inventory{display:grid;gap:8px}.shelf-inventory-book{display:grid;grid-template-columns:24px 48px minmax(0,1fr);gap:12px;align-items:start;padding:12px;border:1px solid var(--border);border-radius:12px;overflow-wrap:anywhere}.shelf-inventory-book h3{font-size:1rem;margin:0 0 4px}.shelf-meta{display:block;margin-top:4px}.shelf-row-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.bookshelf-page .shelf-row-actions button{padding:6px 10px;font-size:.85rem}.shelf-cover{width:48px;height:68px;object-fit:contain;border-radius:4px}.shelf-cover-empty{display:grid;place-items:center;font-size:2rem;color:var(--muted);background:var(--bg)}
.shelf-cover-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shelf-cover-grid .shelf-inventory-book{grid-template-columns:24px minmax(0,1fr)}.shelf-cover-grid .shelf-cover{width:100%;height:145px}.shelf-cover-grid .shelf-inventory-book>div{grid-column:1/-1}
.shelf-dialog,#shelf-capture{box-sizing:border-box;width:min(700px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:24px;background:var(--bg-elev);color:var(--text);border:1px solid var(--bg-elev-2);border-radius:18px}.shelf-dialog::backdrop,#shelf-capture::backdrop{background:rgb(0 0 0/.65)}.shelf-dialog h2,#shelf-capture h2{font-size:1.25rem;margin:0 0 16px;overflow-wrap:anywhere}.shelf-dialog button,#shelf-capture button{font:inherit;min-height:44px;padding:8px 14px;border:1px solid var(--accent);border-radius:10px;background:var(--bg);color:var(--text);cursor:pointer}.shelf-dialog button:disabled{opacity:.5}.shelf-dialog :is(button,input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:3px}.shelf-dialog form{display:grid;gap:12px}.shelf-dialog summary{cursor:pointer;padding-block:14px}.shelf-dialog h3{margin-top:24px}.shelf-dialog .shelf-copy{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--bg-elev-2)}.shelf-copy strong,.shelf-copy span{flex-basis:100%}.shelf-import-rows{max-height:48dvh;overflow:auto;overflow-wrap:anywhere}.shelf-dialog p{line-height:1.5}.shelf-dialog [hidden],#shelf-capture [hidden]{display:none!important}#shelf-video{width:100%;max-height:50dvh;object-fit:contain;background:#000;border-radius:10px}#shelf-capture-status{line-height:1.5}#shelf-capture .shelf-actions{position:sticky;bottom:0;background:var(--bg-elev);padding-block:10px}
@media(max-width:768px){.shelf-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shelf-cover-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shelf-dialog,#shelf-capture{padding:16px}.shelf-dialog :is(input,select,textarea){font-size:16px}.shelf-inventory-book{gap:8px;padding:10px}.shelf-inventory-book input[type=checkbox]{margin:0}.shelf-row-actions button{flex:1}.bookshelf-page .shelf-actions{gap:8px}.shelf-library-tools .shelf-actions button{flex:1 1 40%}.shelf-dialog form button{width:100%}}
@media(prefers-reduced-motion:reduce){.bookshelf-page *{scroll-behavior:auto!important}}
.shelf-dialog,#shelf-capture{position:fixed;inset:0;margin:auto;max-width:calc(100vw - 24px)}
#shelf-import-preview{overflow-wrap:anywhere}
.shelf-dialog>.shelf-heading{position:sticky;top:-24px;background:var(--bg-elev);padding-block:12px;z-index:5;border-bottom:1px solid var(--bg-elev-2);flex-wrap:nowrap}.shelf-dialog>.shelf-heading h2{margin:0;flex:1}.shelf-dialog>.shelf-heading button{flex-shrink:0}
@media(max-width:768px){.shelf-dialog>.shelf-heading{top:-16px}}

/* Browse books beside a persistent desktop inspector; phones keep a modal. */
body:has(.bookshelf-page){overflow-x:clip}
#shelf-workspace{display:block;min-width:0}.shelf-list-column{min-width:0}
.shelf-inventory-book>.shelf-row-actions{grid-column:3;margin-top:0}.shelf-cover-grid .shelf-row-actions{grid-column:1/-1}
.shelf-book-summary{min-width:0}.bookshelf-page .shelf-book-title{display:block;min-height:0;border:0;background:transparent;border-radius:4px;padding:0;margin:0;color:var(--text);font-size:1rem;font-weight:700;text-align:left;line-height:1.3}.shelf-book.is-open{outline:2px solid var(--accent);outline-offset:-2px}.shelf-inventory-book{cursor:pointer}.shelf-book-title:hover{text-decoration:underline}
#shelf-manage{touch-action:pan-y;overscroll-behavior:contain}#shelf-manage .shelf-panel-header{position:sticky;top:-24px;z-index:6;background:var(--bg-elev);border-bottom:1px solid var(--bg-elev-2);padding:12px 0;margin-bottom:16px}#shelf-manage .shelf-panel-header .shelf-heading{flex-wrap:nowrap;align-items:start}#shelf-manage .shelf-panel-header h2{margin:0;flex:1;min-width:0;font-size:1.1rem}#shelf-manage .shelf-panel-header p{color:var(--text-muted);font-size:.9rem;margin:4px 0 10px}#shelf-manage .shelf-panel-header [data-close]{flex:none}#shelf-manage .shelf-panel-nav{display:flex;align-items:center;gap:6px}#shelf-manage [data-book-position]{flex:1;font-size:.8rem;text-align:center;color:var(--text-muted)}#shelf-manage .shelf-panel-nav button{padding:6px 10px;min-width:44px}
.shelf-panel-book-meta{display:flex;align-items:start;gap:12px;margin-bottom:12px}.shelf-panel-book-meta p{font-size:.85rem;margin:0 0 6px;overflow-wrap:anywhere}.shelf-panel-book-meta .shelf-cover{flex:none;width:62px;height:90px}#shelf-manage #shelf-editor{padding:0;border:0;margin:0;background:transparent}#shelf-manage .shelf-fields{grid-template-columns:minmax(0,1fr)}#shelf-manage #shelf-editor-title{display:none}#shelf-manage .shelf-form-actions{z-index:5}#shelf-manage .shelf-form-actions button{width:auto}
@media(min-width:1100px){
 .bookshelf-page{max-width:1560px}.shelf-library-section{padding:18px}
 #shelf-workspace.has-book-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,360px);align-items:start;gap:18px}
 #shelf-manage[data-mode=side][open]{position:sticky;inset:auto;top:88px;display:block;width:100%;max-width:none;max-height:calc(100dvh - 108px);margin:0;padding:18px;border-radius:14px;box-shadow:none;grid-column:2;grid-row:1}
 #shelf-manage[data-mode=side] .shelf-panel-header{top:-18px}
 .shelf-inventory:not(.shelf-cover-grid) .shelf-inventory-book{grid-template-columns:20px 64px minmax(0,1fr) 126px;gap:10px;padding:8px;align-items:start}
 .shelf-inventory:not(.shelf-cover-grid) .shelf-cover{width:64px;height:102px}
 .shelf-inventory:not(.shelf-cover-grid) .shelf-row-actions{grid-column:4;display:grid;gap:3px;margin:0}
 .bookshelf-page .shelf-inventory:not(.shelf-cover-grid) .shelf-row-actions button{box-sizing:border-box;min-height:32px;line-height:1.15;padding:6px;font-size:.72rem;margin:0;white-space:nowrap}
 .shelf-inventory:not(.shelf-cover-grid) .shelf-book-summary{font-size:.85rem;line-height:1.3;max-height:102px;overflow:hidden}
 .shelf-inventory:not(.shelf-cover-grid) .shelf-book-title{font-size:.94rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .shelf-inventory:not(.shelf-cover-grid) .shelf-meta{font-size:.78rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .has-book-panel .shelf-cover-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:768px){#shelf-manage .shelf-panel-header{top:-16px}.shelf-inventory-book>.shelf-row-actions{grid-column:2/-1}}
@media(min-width:1100px) and (pointer:coarse){.bookshelf-page .shelf-inventory:not(.shelf-cover-grid) .shelf-row-actions button{min-height:44px}.shelf-inventory:not(.shelf-cover-grid) .shelf-cover{height:138px}.shelf-inventory:not(.shelf-cover-grid) .shelf-book-summary{max-height:138px}}

/* Bookshelf polish: predictable hierarchy and quieter supporting detail. */
.bookshelf-page{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.45}
.shelf-page-heading{align-items:center}.shelf-page-heading h1{font-size:clamp(1.65rem,3vw,2rem);letter-spacing:-.035em;line-height:1.2;margin-bottom:4px}.shelf-page-heading p{color:var(--muted);font-size:.9rem;margin:0}.shelf-page-heading>a{font-size:.85rem;min-height:44px;display:inline-flex;align-items:center}
.shelf-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.shelf-shortcuts a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 15px;border:1px solid var(--border);border-radius:12px;background:var(--bg-elev);text-decoration:none;color:var(--text);font-size:.88rem;font-weight:600;box-sizing:border-box}.shelf-shortcuts a:hover{border-color:var(--accent)}
.shelf-shortcuts button{font-size:.88rem;font-weight:600;background:var(--bg-elev);box-sizing:border-box}.shelf-shortcuts [aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent,var(--bg))}.shelf-shortcuts :is(a,button):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:768px){.shelf-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.shelf-shortcuts :is(a,button){font-size:.82rem;padding-inline:9px}}
#shelf-add,#shelf-library,#shelf-review{scroll-margin-top:88px}.shelf-help{margin:8px 0 14px}.shelf-help summary{cursor:pointer;color:var(--accent);font-size:.85rem;min-height:44px;display:flex;align-items:center;gap:8px}.shelf-help summary::before{content:'+';font-size:1.1rem}.shelf-help[open] summary::before{content:'−'}.shelf-help p{margin:4px 0}.shelf-recovery{border-top:1px solid var(--border);padding-top:12px;margin-top:16px}.shelf-recovery .shelf-check{margin:0 0 6px}.shelf-recovery .shelf-help{margin:0}
#shelf-status:empty,#shelf-scan-status:empty,#shelf-device-status:empty{display:none}#shelf-status:not(:empty){position:sticky;top:76px;z-index:8;padding:10px 14px;border:1px solid var(--border);background:var(--bg-elev);border-radius:12px;box-shadow:0 4px 16px #0002;font-size:.88rem;max-height:120px;overflow:auto}
.shelf-scan-actions{position:sticky;bottom:0;background:var(--bg-elev);padding:10px 0;z-index:4}.shelf-scan-actions .shelf-actions{margin:0}#shelf-scan-progress{display:block;width:100%;height:8px;margin-bottom:12px;accent-color:var(--accent);border:0;border-radius:6px;overflow:hidden}#shelf-scan-progress::-webkit-progress-bar{background:var(--bg)}#shelf-scan-progress::-webkit-progress-value{background:var(--accent)}
.bookshelf-page :is(label,input,textarea,select,button){font-family:inherit}.shelf-main-filters{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px}.shelf-filter-disclosure{border-bottom:1px solid var(--border);padding-bottom:6px}.shelf-filter-disclosure>summary{font-weight:650}.shelf-filter-disclosure .shelf-filter-grid{margin:6px 0 10px}.shelf-library-tools>.shelf-help{margin:0}.shelf-library-tools>.shelf-actions{margin-top:6px}.shelf-library-tools>.shelf-actions button{font-size:.8rem;padding:6px 10px}.shelf-pagination{justify-content:center;border-top:1px solid var(--border);padding-top:12px}.shelf-pagination span{font-size:.82rem}.shelf-library-tools #shelf-result-count{font-size:.82rem;color:var(--muted);margin:10px 0}.shelf-review-footer{border-top:1px solid var(--border);padding:12px 0}.shelf-review-footer>span{font-size:.85rem}
@media(max-width:768px){.bookshelf-page{padding-inline:12px}.shelf-card{padding:14px}.shelf-shortcuts{gap:6px}.shelf-shortcuts a{flex:1;font-size:.82rem;padding-inline:9px}.shelf-scan-actions{bottom:72px}#shelf-status:not(:empty){top:52px}#shelf-add,#shelf-library,#shelf-review{scroll-margin-top:64px}}
/* Leave room for intake controls when a short viewport cannot fit a pinned scan bar. */
@media(max-height:600px){.shelf-scan-actions{position:static}}

/* Clearer editing groups and feedback in the inspector itself. */
.shelf-fields .shelf-field-heading{font-size:.9rem;margin:12px 0 0;padding-top:14px;border-top:1px solid var(--bg-elev-2);font-weight:650}.shelf-fields .shelf-field-heading:first-child{margin:0;padding:0;border:0}.shelf-fields label.shelf-check{display:flex;flex-direction:row;align-items:center;margin:0;min-height:44px}.shelf-fields .shelf-check input{flex:none}
#shelf-manage-message:empty{display:none}#shelf-manage-message:not(:empty){padding:8px 10px;margin-top:10px;border:1px solid var(--bg-elev-2);border-radius:8px;font-size:.8rem;line-height:1.4;max-height:100px;overflow:auto}
#shelf-reading-form{grid-template-columns:repeat(2,minmax(0,1fr))}#shelf-reading-form label:has(textarea),#shelf-reading-form button{grid-column:1/-1}#shelf-reading-form select{padding-inline:8px}#shelf-copy-form{padding:14px;border:1px solid var(--accent);border-radius:12px;margin-block:10px}#shelf-copy-form h3{margin:0;font-size:1rem}#shelf-copy-form [data-copy-cancel]{border-color:var(--bg-elev-2)}
/* Compact library toolbar: search and controls first, count/selection below. */
.shelf-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.shelf-library-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 12px}.shelf-library-search{flex:1 1 240px;min-width:0}.shelf-library-search input{margin:0}
.shelf-library-tools .shelf-main-filters{flex:0 1 310px;max-width:none;gap:8px}.shelf-main-filters>label{display:flex;align-items:center;gap:6px;min-width:0;font-size:.8rem;color:var(--muted)}.shelf-main-filters select{margin:0;flex:1;font-size:.85rem;padding-inline:8px;color:var(--text)}
.shelf-library-tools>.shelf-help{flex:0 0 auto;padding:0;border:0;margin:0}.shelf-library-tools>.shelf-help>summary{padding:0;font-size:.8rem;white-space:nowrap}.shelf-library-tools>.shelf-help[open]{flex:1 1 100%;order:2;border-block:1px solid var(--border);padding-block:8px}.shelf-library-hint{margin:8px 0 0!important;font-size:.8rem}
.shelf-library-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;flex:1 1 100%;order:3}.shelf-library-info{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:.8rem;color:var(--muted)}.shelf-library-tools #shelf-result-count{margin:0;font-size:inherit}.shelf-library-tools #shelf-result-count:empty{display:none}
.shelf-library-footer>.shelf-actions{margin:0;gap:6px}.bookshelf-page .shelf-library-footer button{font-size:.78rem;min-height:44px;padding:8px 10px}.bookshelf-page .shelf-library-footer .shelf-actions button{flex:0 1 auto}
.shelf-detail-review{margin-top:16px;min-width:0}.shelf-detail-review fieldset{min-width:0;border:1px solid var(--border);border-radius:12px;padding:14px;margin:12px 0}.shelf-detail-review .shelf-detail-value{white-space:pre-wrap;overflow-wrap:anywhere}.shelf-detail-review label.shelf-check{display:block}
.shelf-page-heading{align-items:flex-start}.shelf-page-heading>div:first-child{flex:1 1 280px}
.shelf-account-controls.lp-ui{--lp-bg:var(--bg-elev);--lp-card:var(--bg-elev);--lp-fg:var(--text);--lp-muted:var(--text-muted);--lp-line:var(--bg-elev-2);--lp-accent:var(--accent);--lp-on-accent:var(--on-accent,#102a2d);--lp-focus:var(--accent);background:transparent;color-scheme:inherit;max-width:100%}
.shelf-account-controls .lp-account-panel{display:grid;gap:8px;max-height:60dvh;overflow:auto;z-index:10}.shelf-account-controls .lp-account-panel a{justify-content:flex-start;min-height:44px}
@media(max-width:768px),(max-height:600px){.shelf-account-controls{width:100%}.shelf-account-controls .lp-account-panel{position:static;margin-top:8px;width:100%;max-height:50dvh}}
@media(max-width:768px){.shelf-library-tools{gap:6px 10px}.shelf-library-search,.shelf-library-tools .shelf-main-filters{flex-basis:100%}.shelf-library-footer{gap:6px}.shelf-library-tools>.shelf-help>summary{font-size:.76rem}.shelf-library-tools .shelf-main-filters select{font-size:16px}.shelf-library-footer>.shelf-actions{flex-wrap:wrap}}
