#bookLibrary { border-top: 1px solid #39444b; padding-top: 14px; font: 13px/1.45 'Share Tech Mono', monospace; }
#bookLibrary summary { cursor: pointer; color: var(--neon-blue, #00f3ff); }
#bookLibrary #bookPanel > summary { font-size: 16px; }
#bookLibrary #bookCount { color: #a1acb7; font-size: 12px; margin-left: 6px; }
#bookLibrary .book-intro { color: #adb7c0; margin: 10px 0; }
#bookLibrary form { display: grid; gap: 8px; margin: 12px 0; }
#bookLibrary label { display: grid; gap: 4px; color: #c9d2db; }
#bookLibrary input:not([type=checkbox]), #bookLibrary select {
    display: block; min-width: 0; width: 100%; padding: 8px; border: 1px solid #3c4a56;
    border-radius: 5px; background: #0b1016; color: #e6edf4; font: inherit;
}
#bookLibrary input[type=file] { display: block !important; font-size: 11px; padding: 5px; }
#bookLibrary input[type=file]::file-selector-button { background: #1b3037; color: #d8fbff; border: 0; padding: 6px; border-radius: 3px; }
#bookLibrary button { font: inherit; border: 1px solid #365c66; border-radius: 5px; background: #11272d; color: #d9fbff; cursor: pointer; padding: 7px 9px; }
#bookLibrary button:hover { border-color: var(--neon-blue, #00f3ff); }
#bookLibrary button:disabled { opacity: .55; cursor: wait; }
#bookLibrary :focus-visible { outline: 2px solid var(--neon-blue, #00f3ff); outline-offset: 2px; }
#bookLibrary #bookSubmit { font-weight: bold; padding: 10px; }
#bookLibrary #bookStatus { margin: 8px 0; color: #bdebdc; overflow-wrap: anywhere; }
#bookLibrary .book-error { color: #ffb2b7 !important; }
#bookLibrary #bookShelf { max-height: 520px; overflow-y: auto; }
#bookLibrary .book-card { padding: 12px 10px; border: 1px solid #303e4b; border-radius: 7px; background: #0a1018; margin: 8px 0; overflow-wrap: anywhere; }
#bookLibrary .book-card strong { color: #edf5fa; display: block; font-size: 14px; }
#bookLibrary small { color: #a8b5c0; display: block; margin-top: 4px; font-size: 11px; }
#bookLibrary .book-state { color: #91e4cf; margin: 9px 0; }
#bookLibrary progress { width: 100%; height: 6px; accent-color: #74d8cc; margin-bottom: 8px; }
#bookLibrary .book-switches { display: grid; gap: 6px; margin: 10px 0; }
#bookLibrary .book-switch { display: flex; align-items: center; gap: 7px; cursor: pointer; }
#bookLibrary input[type=checkbox] { appearance: auto; display: inline-block; width: 15px; height: 15px; accent-color: #00cabb; }
#bookLibrary .book-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#bookLibrary .book-actions button { font-size: 11px; padding: 4px 6px; background: transparent; }
#bookLibrary a { color: #92dcea; text-decoration: underline; }
#bookLibrary .book-remove { color: #eeb2b9; border-color: #68414b; }
#bookLibrary .book-card ul { padding-left: 16px; max-height: 160px; overflow-y: auto; font-size: 11px; }
#bookLibrary #bookSearchForm { border-top: 1px solid #303e4b; padding-top: 12px; }
#bookLibrary #bookResults { max-height: 420px; overflow-y: auto; }
#bookLibrary .book-result { border-left: 2px solid #537581; padding: 8px; margin-top: 6px; overflow-wrap: anywhere; }
#bookLibrary .book-result p { white-space: pre-wrap; margin-top: 6px; color: #c0ccd6; }
#bookLibrary .book-empty { color: #9dabb7; margin: 10px 0; }
#bookLibrary .book-legacy { margin-top: 12px; font-size: 11px; }
