.library-filters{flex-wrap:wrap;align-items:flex-start;gap:10px;min-width:0;display:flex}.library-filters .search-box{flex:360px;width:auto;min-width:0}.library-filters .search-box input{width:100%;min-width:0}.tag-multi-select{z-index:2;flex:0 210px;min-width:180px;position:relative}.tag-multi-select-trigger{color:#5f6059;cursor:pointer;background:#fff;border:1px solid #e5e3dc;border-radius:12px;justify-content:space-between;align-items:center;gap:8px;width:100%;height:45px;padding:0 13px;font-size:12px;display:flex}.tag-multi-select-popover{background:#fff;border:1px solid #e5e3dc;border-radius:12px;width:min(310px,100vw - 48px);padding:11px;position:absolute;top:calc(100% + 7px);right:0;box-shadow:0 12px 30px #23261f26}.tag-multi-select-search input{color:#30312c;width:100%;min-height:36px;font:inherit;background:#fff;border:1px solid #e5e3dc;border-radius:8px;outline:none;padding:7px 9px;font-size:12px}.tag-filter-hint{color:#85857c;margin:8px 1px;font-size:10px;line-height:1.4}.tag-multi-select-options{gap:2px;max-height:220px;display:grid;overflow:auto}.tag-multi-select-option{color:#41423b;cursor:pointer;border-radius:7px;align-items:center;gap:8px;min-height:34px;padding:4px 6px;font-size:12px;display:flex}.tag-multi-select-option:hover{background:#f5f5f0}.tag-multi-select-option input{accent-color:#68816b;margin:0}.tag-multi-select-option span{flex:1}.tag-multi-select-option small{color:#929289;font-size:10px}.tag-multi-select-empty{color:#85857c;margin:8px 4px;font-size:11px}.tag-multi-select-create{color:#526b57;text-align:left;cursor:pointer;background:0 0;border:0;border-top:1px solid #e9e7e0;align-items:center;gap:7px;width:100%;min-height:34px;margin-top:7px;padding:0 7px;font-size:11px;display:flex}.tag-multi-select-create:disabled{opacity:.55;cursor:wait}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.book-card-tags{flex-wrap:wrap;gap:4px;margin-top:3px;display:flex}.book-card-tag{color:#56644f;background:#f1f2ec;border-radius:99px;padding:3px 7px;font-size:10px;font-weight:600}.tag-filter-tools{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tag-filter-tools>input,.tag-filter-tools>select,.tag-create-form input,.book-tag-assign-row select{color:#30312c;min-height:36px;font:inherit;background:#fff;border:1px solid #e5e3dc;border-radius:8px;padding:7px 10px;font-size:12px}.tag-filter-tools>input{flex:140px}.tag-filter-tools>select{flex:150px}.tag-create-form{flex:210px;gap:5px;display:flex}.tag-create-form input{flex:1;min-width:100px}.tag-create-form button,.book-tag-assign-row button{color:#465b45;min-height:36px;font:inherit;cursor:pointer;background:#f3f6f1;border:1px solid #d8ddd5;border-radius:8px;padding:0 11px;font-size:11px;font-weight:650}.tag-create-form button:disabled,.book-tag-assign-row button:disabled{opacity:.5;cursor:not-allowed}.tag-status,.tag-error{margin:2px 0;font-size:11px}.tag-status{color:#66675f}.tag-error{color:#a43e36}.book-tag-editor{color:#55564f;border-top:1px solid #e8e6e0;width:100%;padding:5px 10px;font-size:11px}.book-tag-editor summary{cursor:pointer;-webkit-user-select:none;user-select:none;width:fit-content}.book-tag-editor-content{gap:7px;padding-top:8px;display:grid}.book-tag-list{flex-wrap:wrap;gap:5px;margin:0;padding:0;list-style:none;display:flex}.book-tag-list li{color:#4e5c48;background:#f1f2ec;border-radius:999px;align-items:center;gap:4px;padding:3px 6px;display:inline-flex}.book-tag-list button{width:18px;height:18px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:inline-grid}.book-tag-assign-row{gap:6px;display:flex}.book-tag-assign-row select{flex:1;min-width:0}.tag-management-page{color:#30312c;background:#f6f5f0;min-height:100vh;padding:0 clamp(14px,5vw,56px) 48px}.tag-management-header{z-index:2;background:#f6f5f0f7;border-bottom:1px solid #e4e2db;align-items:center;gap:18px;min-height:64px;display:flex;position:sticky;top:0}.tag-management-header h1{margin:0;font-size:17px}.tag-management-content{grid-template-columns:minmax(0,1fr);gap:18px;width:min(920px,100%);margin:28px auto;display:grid}.tag-management-section{background:#fff;border:1px solid #e7e5de;border-radius:14px;min-width:0;padding:20px;box-shadow:0 8px 22px #2a291f09}.tag-management-section h2{margin:0 0 15px;font-size:14px}.tag-management-create{margin-bottom:12px}.tag-management-search{color:#77776f;border:1px solid #e5e3dc;border-radius:8px;align-items:center;gap:8px;min-height:38px;padding:0 10px;display:flex}.tag-management-search input{min-width:0;font:inherit;background:0 0;border:0;outline:0;flex:1;font-size:12px}.tag-management-list{gap:7px;max-height:45vh;margin:12px 0 0;padding:0;list-style:none;display:grid;overflow:auto}.tag-management-list li{background:#f6f6f1;border-radius:8px;justify-content:space-between;gap:10px;padding:9px 10px;font-size:12px;display:flex}.tag-management-list span{color:#77776f;font-size:11px}.tag-book-selector{color:#30312c;width:100%;min-height:38px;font:inherit;background:#fff;border:1px solid #e5e3dc;border-radius:8px;padding:7px 10px;font-size:12px}.tag-management-section .book-tag-editor{border-top:0;margin-top:14px;padding:10px 0}.tag-book-search{color:#77776f;border:1px solid #e5e3dc;border-radius:8px;align-items:center;gap:8px;min-height:38px;padding:0 10px;display:flex}.tag-book-search input{width:100%;min-width:0;color:inherit;font:inherit;background:0 0;border:0;outline:0;font-size:12px}.tag-book-selection-heading{color:#77776f;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 7px;font-size:11px;display:flex}.tag-book-select-all,.tag-book-multiselect label{cursor:pointer;align-items:center;gap:9px;min-width:0;display:flex}.tag-book-multiselect{border:1px solid #e5e3dc;border-radius:9px;gap:2px;max-height:250px;margin:0;padding:5px;list-style:none;display:grid;overflow:auto}.tag-book-multiselect li{border-radius:6px;min-width:0;padding:7px 6px;font-size:12px}.tag-book-multiselect li:hover{background:#f6f6f1}.tag-book-multiselect input,.tag-book-select-all input{accent-color:#58735d;flex:none}.tag-book-multiselect label span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tag-assignment-form{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:14px;display:grid}.tag-combobox{gap:5px;min-width:0;display:grid;position:relative}.tag-combobox>label{color:#77776f;font-size:11px}.tag-combobox>input{color:#30312c;width:100%;min-height:38px;font:inherit;background:#fff;border:1px solid #e5e3dc;border-radius:8px;padding:8px 10px;font-size:12px}.tag-combobox-options{z-index:3;background:#fff;border:1px solid #deddd5;border-radius:9px;max-height:220px;margin:3px 0 0;padding:4px;list-style:none;display:grid;position:absolute;top:100%;left:0;right:0;overflow:auto;box-shadow:0 8px 22px #1e211b24}.tag-combobox-options button{color:#30312c;text-align:left;width:100%;min-height:34px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:7px 9px;font-size:12px}.tag-combobox-options button:hover,.tag-combobox-options button:focus-visible{background:#f1f4ef;outline:0}.tag-combobox-options .tag-combobox-create{color:#465b45;font-weight:650}.tag-combobox-empty{color:#77776f;padding:8px 9px;font-size:11px}.tag-bulk-assign-button{color:#465b45;min-height:38px;font:inherit;cursor:pointer;background:#f3f6f1;border:1px solid #d8ddd5;border-radius:8px;padding:0 12px;font-size:11px;font-weight:650}.tag-bulk-assign-button:disabled{opacity:.5;cursor:not-allowed}.tag-bulk-actions{gap:6px;display:grid}.tag-bulk-remove-button{color:#8b4b43;min-height:34px;font:inherit;cursor:pointer;background:#fff8f6;border:1px solid #e5d6d2;border-radius:8px;padding:0 10px;font-size:10px}.tag-bulk-remove-button:disabled{opacity:.5;cursor:not-allowed}@media (width<=520px){.library-filters .search-box,.tag-multi-select{flex-basis:100%;width:100%}.tag-multi-select-popover{width:100%;left:0;right:auto}.tag-filter-tools>input,.tag-filter-tools>select,.tag-create-form{flex-basis:100%}.book-tag-editor{padding-inline:7px}.tag-management-content{grid-template-columns:1fr;margin-top:16px}.tag-management-section{padding:15px}.tag-assignment-form{grid-template-columns:1fr}.tag-bulk-assign-button{width:100%}}html[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#e7e9e3;background:#111613}html[data-theme=dark] body,html[data-theme=dark] .app-shell,html[data-theme=dark] .auth-page,html[data-theme=dark] .auth-loading,html[data-theme=dark] .settings-page-shell,html[data-theme=dark] .pdf-viewer-shell,html[data-theme=dark] .pdf-page-stage,html[data-theme=dark] .tag-management-page{color:#e7e9e3;background:#111613}html[data-theme=dark] .topbar,html[data-theme=dark] .viewer-topbar,html[data-theme=dark] .viewer-controls,html[data-theme=dark] .reading-settings,html[data-theme=dark] .settings-option-card,html[data-theme=dark] .auth-card,html[data-theme=dark] .book-card-shell,html[data-theme=dark] .book-card,html[data-theme=dark] .tag-multi-select-trigger,html[data-theme=dark] .tag-multi-select-popover,html[data-theme=dark] .tag-multi-select-search input,html[data-theme=dark] .tag-management-section,html[data-theme=dark] .book-tag-editor-content,html[data-theme=dark] .search-box,html[data-theme=dark] .tag-filter-tools,html[data-theme=dark] .filter-button,html[data-theme=dark] .logout-button,html[data-theme=dark] .icon-button,html[data-theme=dark] .viewer-control-button,html[data-theme=dark] .viewer-menu-button,html[data-theme=dark] .theme-toggle-button,html[data-theme=dark] .tag-create-form input,html[data-theme=dark] .tag-filter-tools input,html[data-theme=dark] .tag-filter-tools select,html[data-theme=dark] .tag-management-search,html[data-theme=dark] .tag-management-search input,html[data-theme=dark] .tag-book-selector,html[data-theme=dark] .site-theme-select,html[data-theme=dark] .book-tag-assign-row select,html[data-theme=dark] .login-form input{color:#e7e9e3;background-color:#1b221e;border-color:#39433d}html[data-theme=dark] .topbar,html[data-theme=dark] .viewer-chrome .viewer-topbar,html[data-theme=dark] .viewer-chrome .viewer-controls{background-color:#19201cf2}html[data-theme=dark] .book-card-shell,html[data-theme=dark] .settings-option-card,html[data-theme=dark] .auth-card{box-shadow:0 10px 30px #0003}html[data-theme=dark] .tag-multi-select-trigger,html[data-theme=dark] .tag-multi-select-popover,html[data-theme=dark] .tag-multi-select-search input{color:#e7e9e3;background-color:#1b221e;border-color:#39433d}html[data-theme=dark] .tag-multi-select-option{color:#dce7de}html[data-theme=dark] .tag-multi-select-option:hover{background:#26352b}html[data-theme=dark] .tag-filter-hint,html[data-theme=dark] .tag-multi-select-empty,html[data-theme=dark] .tag-multi-select-option small{color:#9da89f}html[data-theme=dark] .tag-multi-select-create{color:#b8d0bd;border-color:#39433d}html[data-theme=dark] .book-card-tag{color:#dceadd;background:#2a392f}html[data-theme=dark] .brand-mark,html[data-theme=dark] .primary-button{color:#101712;background:#78927e}html[data-theme=dark] .primary-button:hover:not(:disabled){background:#91aa97}html[data-theme=dark] .book-cover{color:#b8d0bd;background:linear-gradient(145deg,#34443a,#26362d)}html[data-theme=dark] .auth-icon{color:#b8d0bd;background:#26362d}html[data-theme=dark] .status-dot{box-shadow:0 0 0 3px #26352b}html[data-theme=dark] .private-badge,html[data-theme=dark] .controls-note,html[data-theme=dark] .eyebrow,html[data-theme=dark] .subtitle,html[data-theme=dark] .book-card-details,html[data-theme=dark] .book-date,html[data-theme=dark] .page-counter,html[data-theme=dark] .crop-help,html[data-theme=dark] .current-parity-note,html[data-theme=dark] .settings-option-copy p,html[data-theme=dark] .settings-option-note,html[data-theme=dark] .site-theme-select-label,html[data-theme=dark] .auth-description,html[data-theme=dark] .privacy-note,html[data-theme=dark] .footer,html[data-theme=dark] .book-count,html[data-theme=dark] .empty-state p,html[data-theme=dark] .settings-page-content>h2{color:#a7b0a9}html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] .book-count strong,html[data-theme=dark] .book-card-title,html[data-theme=dark] .settings-page-title,html[data-theme=dark] .tag-management-header h1,html[data-theme=dark] .tag-management-section h2,html[data-theme=dark] .tag-management-list strong{color:#eef1eb}html[data-theme=dark] .footer,html[data-theme=dark] .viewer-topbar,html[data-theme=dark] .viewer-controls,html[data-theme=dark] .reading-settings,html[data-theme=dark] .settings-option-card,html[data-theme=dark] .auth-card,html[data-theme=dark] .book-card-shell,html[data-theme=dark] .book-card,html[data-theme=dark] .search-box,html[data-theme=dark] .settings-back-button,html[data-theme=dark] .book-tag-editor,html[data-theme=dark] .tag-management-header,html[data-theme=dark] .tag-management-section,html[data-theme=dark] .tag-management-search,html[data-theme=dark] .tag-filter-tools,html[data-theme=dark] .tag-create-form,html[data-theme=dark] .book-tag-list li{border-color:#39433d}html[data-theme=dark] .book-card:hover:not(:disabled),html[data-theme=dark] .book-card:focus-visible{border-color:#718778}html[data-theme=dark] .book-tag-editor summary,html[data-theme=dark] .book-tag-list li,html[data-theme=dark] .book-tag-assign-row button,html[data-theme=dark] .tag-create-form button,html[data-theme=dark] .tag-filter-tools select,html[data-theme=dark] .tag-management-list button,html[data-theme=dark] .tag-management-list span,html[data-theme=dark] .tag-management-search{color:#dce5dc}html[data-theme=dark] .tag-management-header{background:#111613f7}html[data-theme=dark] .tag-management-section{box-shadow:0 8px 22px #0003}html[data-theme=dark] .tag-management-list li{background:#202923}html[data-theme=dark] .tag-book-search,html[data-theme=dark] .tag-book-multiselect,html[data-theme=dark] .tag-combobox>input{color:#e7e9e3;background:#1b221e;border-color:#39433d}html[data-theme=dark] .tag-book-selection-heading,html[data-theme=dark] .tag-combobox>label{color:#a7b0a9}html[data-theme=dark] .tag-book-multiselect li:hover,html[data-theme=dark] .tag-combobox-options button:hover,html[data-theme=dark] .tag-combobox-options button:focus-visible{background:#26352b}html[data-theme=dark] .tag-combobox-options{background:#1b221e;border-color:#39433d;box-shadow:0 8px 22px #0006}html[data-theme=dark] .tag-combobox-options button,html[data-theme=dark] .tag-combobox-options .tag-combobox-create{color:#dce5dc}html[data-theme=dark] .tag-combobox-empty{color:#a7b0a9}html[data-theme=dark] .tag-bulk-assign-button{color:#dce5dc;background:#26352b;border-color:#39433d}html[data-theme=dark] .tag-bulk-remove-button{color:#f0b4a9;background:#302321;border-color:#5b3b37}html[data-theme=dark] .login-form label{color:#c4cdc5}html[data-theme=dark] .priority-toggle{color:#b8c8ba;background:#202923;border-top-color:#39433d}html[data-theme=dark] .priority-toggle:hover,html[data-theme=dark] .priority-toggle:focus-visible{color:#e0ede1;background:#2a382e}html[data-theme=dark] .rescan-button{color:#c4cdc5;background:#1b221e;border-color:#39433d}html[data-theme=dark] .rescan-button:hover:not(:disabled),html[data-theme=dark] .rescan-button:focus-visible{color:#e0ede1;background:#2a382e}html[data-theme=dark] .rescan-button:disabled{color:#818b83;background:#202923}html[data-theme=dark] .tag-create-form button,html[data-theme=dark] .book-tag-assign-row button{color:#dceadd;background:#2a392f;border-color:#526557}html[data-theme=dark] .tag-create-form button:hover:not(:disabled),html[data-theme=dark] .book-tag-assign-row button:hover:not(:disabled){background:#35483a}html[data-theme=dark] .book-tag-list li{color:#dceadd;background:#2a392f}html[data-theme=dark] .viewer-control-button:disabled{color:#737d75;background:#222a25}html[data-theme=dark] .parity-selector{background:#202923;border-color:#39433d}html[data-theme=dark] .parity-selector button[aria-pressed=true]{color:#edf3ed;background:#344139}html[data-theme=dark] input::placeholder{color:#818b83}html[data-theme=dark] kbd{color:#9ca69e;border-color:#39433d}html[data-theme=dark] .empty-icon{color:#b8d0bd;background:#1b221e;border-color:#39433d}html[data-theme=dark] .setup-note{color:#a7b0a9;background:#202923}html[data-theme=dark] .missing-badge{color:#e3a99e;background:#412d2a}html[data-theme=dark] .scan-notice,html[data-theme=dark] .progress-save-state,html[data-theme=dark] .settings-save-state,html[data-theme=dark] .tag-status{color:#a6c5ac}html[data-theme=dark] .form-error,html[data-theme=dark] .progress-error,html[data-theme=dark] .settings-error,html[data-theme=dark] .tag-error{color:#f0a79d}html[data-theme=dark] .viewer-chrome .progress-save-state{background:#202923f0}html[data-theme=dark] .viewer-chrome .progress-error{background:#2d211ff5}html[data-theme=dark] .canvas-loading{color:#dce7de;background:#202923f5;box-shadow:0 2px 10px #00000052}html[data-theme=dark] .virtual-page-placeholder{color:#a7b0a9;background:#1b221e}html[data-theme=dark] .virtual-page-error{color:#f0a79d;background:#2d211f}html[data-theme=dark] .spread-page-loading{color:#a7b0a9;background:#1b221e}html[data-theme=dark] .spread-page-error{color:#f0a79d;background:#2d211f}.settings-page-shell{min-height:100vh}.settings-page-title{font-size:18px}.settings-header-spacer{width:52px}.settings-page-content{width:min(100% - 44px,720px);margin:0 auto;padding:58px 0}.settings-page-content h2{margin:0 0 22px;font-size:25px}.settings-option-card{background:#ffffffd1;border:1px solid #e9e7e0;border-radius:16px;grid-template-columns:1fr auto;gap:13px 24px;padding:22px;display:grid}.settings-option-copy h3{margin:0;font-size:15px}.settings-option-copy p,.settings-option-note{color:#85857c;margin:7px 0 0;font-size:12px;line-height:1.55}.settings-option-note{grid-column:1/-1}.site-theme-select-label{color:#64645e;align-self:center;font-size:12px}.site-theme-select{color:#33352e;min-width:190px;min-height:40px;font:inherit;background:#fff;border:1px solid #e5e3dc;border-radius:9px;padding:0 11px;font-size:12px}.settings-option-note{align-items:center;gap:7px;display:flex}.theme-toggle-button{color:#55564f;cursor:pointer;background:#fff;border:1px solid #e5e3dc;border-radius:10px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 13px;font-size:12px;display:inline-flex}.settings-back-button{cursor:pointer}@media (width<=560px){.settings-page-content{padding-top:38px}.settings-option-card{grid-template-columns:1fr}.settings-option-note{grid-column:auto}.site-theme-select{width:100%}.theme-toggle-button{width:fit-content}}:root{color:#22221f;font-synthesis:none;text-rendering:optimizelegibility;background:#f7f6f2;font-family:Inter,Apple SD Gothic Neo,Malgun Gothic,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}.app-shell{flex-direction:column;min-height:100vh;display:flex}.topbar{background:#ffffffb3;border-bottom:1px solid #e9e7e0;justify-content:space-between;align-items:center;gap:16px;height:72px;padding:0 clamp(22px,5vw,76px);display:flex}.brand{color:inherit;letter-spacing:-.04em;align-items:center;gap:11px;font-size:17px;font-weight:700;text-decoration:none;display:inline-flex}.brand-mark{color:#f3f0df;background:#243a32;border-radius:11px;place-items:center;width:34px;height:34px;display:grid}.topbar .auth-brand{margin:0}.topbar-right{align-items:center;gap:19px;display:flex}.topbar-right>.icon-button,.topbar-right>.logout-button{box-sizing:border-box;justify-content:center;align-items:center;height:36px;min-height:36px;line-height:1;display:inline-flex}.private-badge{color:#77776f;align-items:center;gap:8px;font-size:12px;display:flex}.status-dot{background:#6f9276;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #e8eee6}.icon-button,.filter-button{color:#64645e;cursor:pointer;background:#fff;border:1px solid #e5e3dc;justify-content:center;align-items:center;display:inline-flex}.icon-button{border-radius:11px;width:36px;height:36px}.icon-button:disabled,.filter-button:disabled,.search-box input:disabled{color:#aaa99f;cursor:not-allowed}.icon-button:disabled,.filter-button:disabled{background:#f5f4f0;border-color:#ebe9e2}.search-box:has(input:disabled){background:#f8f7f4}.controls-note{color:#9a998f;margin:10px 0 0;font-size:11px}.library-content{flex:1;width:min(100% - 44px,930px);margin:0 auto;padding:76px 0 40px}.intro-row{justify-content:space-between;align-items:end;margin-bottom:34px;display:flex}.eyebrow{color:#8b8b80;letter-spacing:.2em;margin:0 0 11px;font-size:10px;font-weight:700}h1{letter-spacing:-.065em;margin:0;font-size:clamp(30px,4vw,39px);line-height:1.18}.subtitle{color:#85857c;margin:11px 0 0;font-size:14px}.book-count{color:#a4a39b;align-items:baseline;gap:5px;display:flex}.book-count strong{color:#41423b;letter-spacing:-.05em;font-size:27px;font-weight:500}.book-count span{font-size:12px}.toolbar{border-bottom:1px solid #e5e3dc;gap:10px;padding-bottom:18px;display:flex}.search-box{color:#96968d;background:#fff;border:1px solid #e5e3dc;border-radius:12px;flex:1;align-items:center;gap:11px;min-width:0;height:45px;padding:0 13px;display:flex}.search-box input{color:#333;background:0 0;border:0;outline:0;width:100%;min-width:0;font-size:13px}.search-box input::placeholder{color:#aaa99f}kbd{white-space:nowrap;color:#aaa99f;border:1px solid #eae9e3;border-radius:5px;padding:3px 6px;font:10px Inter,sans-serif}.filter-button{border-radius:12px;gap:8px;height:45px;padding:0 15px;font-size:12px}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:360px;display:flex}.empty-icon{color:#75877a;background:#fff;border:1px solid #e4e2d9;border-radius:19px;place-items:center;width:58px;height:58px;display:grid;box-shadow:0 6px 18px #3235280a}.empty-state h2{letter-spacing:-.04em;margin:22px 0 0;font-size:17px}.empty-state p{color:#898980;margin:9px 0 0;font-size:13px}.setup-note{color:#88887d;background:#eeeee7;border-radius:99px;margin-top:20px;padding:7px 10px;font-size:10px}.footer{color:#a4a39a;letter-spacing:.02em;border-top:1px solid #e9e7e0;justify-content:space-between;padding:19px clamp(22px,5vw,76px);font-size:10px;display:flex}.auth-page{background:radial-gradient(at 50% 38%,#fff 0,#f7f6f2 58%);place-items:center;min-height:100vh;padding:28px 20px;display:grid}.auth-loading{color:#77776f;place-items:center;min-height:100vh;font-size:14px;display:grid}.auth-card{background:#ffffffe0;border:1px solid #e9e7e0;border-radius:22px;width:min(100%,420px);padding:34px clamp(24px,7vw,48px) 30px;box-shadow:0 18px 55px #2a2e230f}.auth-brand{width:fit-content;margin:0 auto 32px}.auth-icon{color:#526b57;background:#edf1eb;border-radius:16px;place-items:center;width:48px;height:48px;margin:0 auto 20px;display:grid}.auth-eyebrow{text-align:center;margin-bottom:8px}.auth-card h1{text-align:center;font-size:28px}.auth-description{color:#85857c;text-align:center;margin:10px 0 26px;font-size:13px;line-height:1.65}.login-form{flex-direction:column;gap:9px;display:flex}.login-form label{color:#55564f;font-size:12px;font-weight:600}.login-form input{color:#292a25;background:#fff;border:1px solid #e1dfd7;border-radius:11px;outline:0;height:46px;padding:0 13px;font-size:15px}.login-form input:focus{border-color:#849787;box-shadow:0 0 0 3px #6f927621}.primary-button{color:#fff;cursor:pointer;background:#243a32;border:0;border-radius:11px;min-height:46px;margin-top:7px;font-size:13px;font-weight:600;transition:background .15s}.primary-button:hover:not(:disabled){background:#304c41}.primary-button:disabled{opacity:.55;cursor:wait}.form-error{color:#a43e36;margin:2px 0 0;font-size:12px;line-height:1.5}.privacy-note{color:#8b8b80;justify-content:center;align-items:center;gap:9px;margin:24px 0 0;font-size:10px;display:flex}.logout-button{color:#64645e;cursor:pointer;background:#fff;border:1px solid #e5e3dc;border-radius:10px;min-height:36px;padding:0 12px;font-size:11px}.logout-button:disabled{opacity:.55;cursor:wait}.library-error{margin-top:16px}@media (width<=560px){.library-content{padding-top:52px}.subtitle{max-width:250px;line-height:1.6}.toolbar{gap:8px}.filter-button{padding:0 12px}kbd{display:none}.empty-state{min-height:300px}.topbar{padding:0 18px}.private-badge{display:none}.topbar-right{flex:none;gap:10px}}@media (width<=420px){.auth-card{padding:28px 22px 24px}.topbar{gap:10px;padding:0 14px}.brand{gap:8px;font-size:15px}.brand-mark{width:32px;height:32px}.topbar-right{gap:7px}.topbar-right>.icon-button{width:34px}.topbar-right>.icon-button,.topbar-right>.logout-button{height:34px;min-height:34px}.logout-button{padding:0 9px}}.scan-button{padding:0 18px}.scan-notice{color:#526b57;margin:15px 0 0;font-size:12px;line-height:1.5}.book-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,265px),1fr));gap:14px;margin-top:22px;display:grid}.book-card{width:100%;min-width:0;color:inherit;font:inherit;text-align:left;cursor:pointer;background:#ffffffd1;border:1px solid #e9e7e0;border-radius:15px;gap:15px;padding:16px;transition:border-color .15s,transform .15s;display:flex}.book-card:hover:not(:disabled),.book-card:focus-visible{border-color:#a9b6a8;outline:none;transform:translateY(-2px)}.book-card:disabled{cursor:not-allowed;opacity:.7}.book-card-shell{background:#ffffffd1;border:1px solid #e9e7e0;border-radius:15px;min-width:0;overflow:hidden}.book-card-shell .book-card{background:0 0;border:0;border-radius:0}.book-card-shell.is-prioritized{border-color:#9cab98;box-shadow:0 0 0 2px #526b5714}.book-progress{color:#758176;font-variant-numeric:tabular-nums;flex-direction:column;gap:4px;width:min(100%,190px);margin-top:4px;font-size:10px;display:flex}.book-progress-track{background:#e7e9e2;border-radius:9px;width:100%;height:4px;display:block;overflow:hidden}.book-progress-track>span{border-radius:inherit;background:#68816b;height:100%;display:block}.priority-toggle{color:#6b786b;cursor:pointer;text-align:right;background:#fafaf7;border:0;border-top:1px solid #eeede7;width:100%;min-height:34px;padding:0 12px;font-size:10px;display:block}.priority-toggle:hover,.priority-toggle:focus-visible{color:#38513e;background:#f0f3ee}.book-cover{color:#506b59;background:linear-gradient(145deg,#e8eadd,#d3ddcf);border-radius:8px 11px 11px 8px;place-items:center;width:62px;min-width:62px;height:82px;display:grid;box-shadow:inset 4px 0 #30473914}.book-card-copy{flex-direction:column;align-items:flex-start;gap:6px;min-width:0;display:flex}.book-card-title{color:#33352e;letter-spacing:-.035em;overflow-wrap:anywhere;margin:2px 0 0;font-size:14px;font-weight:700;line-height:1.45}.book-card-details{color:#77776f;overflow-wrap:anywhere;font-size:11px;line-height:1.5}.book-date{color:#96958c;font-size:10px}.missing-badge{color:#9b5549;background:#f6ece8;border-radius:99px;margin-top:2px;padding:4px 7px;font-size:10px}.rescan-button{color:#66675f;cursor:pointer;background:#fff;border:1px solid #e1dfd7;border-radius:10px;margin:24px auto 0;padding:9px 13px;font-size:11px;display:block}.rescan-button:disabled{opacity:.6;cursor:wait}.pdf-viewer-shell{background:#efeee9;flex-direction:column;min-height:100vh;display:flex}.viewer-lazy-loading{color:#77776f;place-items:center;min-height:100vh;font-size:13px;display:grid}.viewer-topbar{z-index:2;background:#fffffff0;position:relative}.viewer-topbar .viewer-title{text-overflow:ellipsis;white-space:nowrap;text-align:center;width:min(50vw,560px);font-size:15px;position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.viewer-back-button{color:#526b57;cursor:pointer;background:0 0;border:0;align-items:center;gap:7px;padding:8px 0;font-size:12px;font-weight:600;display:inline-flex}.viewer-controls{z-index:1;background:#fffffff2;border-bottom:1px solid #e2e0d9;justify-content:center;align-items:center;gap:9px;min-height:54px;display:flex;position:sticky;top:0}.viewer-control-button{color:#55564f;cursor:pointer;background:#fff;border:1px solid #e5e3dc;border-radius:9px;place-items:center;width:34px;height:34px;display:inline-grid}.viewer-control-button:disabled{color:#b5b4ac;cursor:not-allowed;background:#f7f6f2}.page-counter{color:#696a62;text-align:center;font-variant-numeric:tabular-nums;min-width:56px;font-size:11px}.progress-save-state,.progress-error{text-align:center;margin:5px 12px;font-size:10px}.progress-save-state{color:#526b57}.progress-error{color:#a43e36}.reading-settings{z-index:1;background:#fffffff7;border-bottom:1px solid #e2e0d9;padding:10px clamp(14px,4vw,40px) 12px;position:sticky;top:54px}.reading-settings-row{align-items:center;gap:14px;min-height:34px;display:flex}.parity-selector{background:#f5f4f0;border:1px solid #e5e3dc;border-radius:9px;padding:3px;display:inline-flex}.parity-selector button{color:#717168;cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:6px;min-height:30px;padding:0 10px;font-size:11px}.parity-selector button[aria-pressed=true]{color:#31473a;background:#fff;font-weight:600;box-shadow:0 1px 3px #1e231b1f}.current-parity-note{color:#84847b;flex:1;font-size:11px}.crop-help{color:#8b8b80;margin:8px 0;font-size:10px;line-height:1.5}.crop-sliders{grid-template-columns:repeat(4,minmax(115px,1fr));gap:10px 18px;display:grid}.crop-slider{color:#64645e;flex-direction:column;gap:4px;min-width:0;font-size:10px;display:flex}.crop-slider span{justify-content:space-between;align-items:center;gap:6px;display:flex}.crop-slider strong{color:#3f5849;font-variant-numeric:tabular-nums;font-size:10px}.crop-slider input{accent-color:#526b57;touch-action:pan-y;width:100%;min-height:25px;margin:0}.crop-slider input:disabled{opacity:.5}.settings-save-state,.settings-error{margin:5px 0 0;font-size:10px}.settings-save-state{color:#526b57}.settings-error{color:#a43e36}.pdf-page-stage{flex:1;justify-content:center;align-items:flex-start;min-height:250px;padding:20px 16px 60px;display:flex;overflow:auto}.pdf-crop-frame{background:#fff;border:1px solid #e0ded7;border-radius:4px;flex:none;position:relative;overflow:hidden;box-shadow:0 12px 35px #282a231f}.has-dark-pages .pdf-crop-frame{background:#111613}.pdf-crop-frame canvas{filter:none;max-width:none;display:block;position:absolute}.has-dark-pages .pdf-crop-frame canvas{filter:invert()hue-rotate(180deg)}.viewer-loading{color:#77776f;align-self:center;font-size:13px}.canvas-loading{z-index:1;background:#fffffff0;border-radius:9px;width:max-content;padding:8px 12px;position:absolute;top:18px;left:50%;transform:translate(-50%);box-shadow:0 2px 10px #00000014}.viewer-error{color:#a43e36;text-align:center;align-self:center;font-size:13px}@media (width<=700px){.reading-settings{padding:8px 12px 10px}.reading-settings-row{flex-wrap:wrap;gap:8px}.current-parity-note{min-width:130px}.crop-sliders{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}}@media (width<=560px){.viewer-topbar .viewer-title{width:38vw;font-size:12px}.viewer-topbar .logout-button{padding:0 8px}.viewer-controls{gap:5px}.pdf-page-stage{padding:14px 8px 36px}.crop-help{max-width:80%}}html:has(.pdf-viewer-shell){width:100%;height:100dvh;min-height:0;overflow:hidden}body:has(.pdf-viewer-shell){width:100%;height:100dvh;min-height:0;overflow:hidden}#root:has(.pdf-viewer-shell){width:100%;height:100dvh;min-height:0;overflow:hidden}.app-shell:has(.pdf-viewer-shell){width:100%;height:100dvh;min-height:0;overflow:hidden}.pdf-viewer-shell{z-index:20;overscroll-behavior:none;touch-action:manipulation;width:100vw;height:100dvh;min-height:0;position:fixed;inset:0;overflow:hidden}.viewer-chrome{z-index:4;opacity:0;visibility:hidden;pointer-events:none;flex-direction:column;transition:opacity .16s,transform .16s,visibility .16s;display:flex;position:fixed;inset:0 0 auto;transform:translateY(-8px)}.viewer-chrome.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}.viewer-chrome .viewer-topbar{background:#ffffffeb;border:0;height:58px;min-height:58px;padding:0 16px}.viewer-header-actions{align-items:center;gap:8px;display:inline-flex}.viewer-menu-button{color:#55564f;cursor:pointer;background:#ffffffe6;border:1px solid #e5e3dc;border-radius:10px;place-items:center;width:36px;height:36px;display:inline-grid}.viewer-chrome .viewer-controls{background:#ffffffd6;border:0;min-height:44px;position:static}.viewer-chrome .progress-save-state,.viewer-chrome .progress-error{background:#ffffffe6;border-radius:8px;width:max-content;max-width:calc(100vw - 28px);padding:6px 10px;position:absolute;top:100px;left:50%;transform:translate(-50%);box-shadow:0 2px 12px #0000001a}.pdf-page-stage{z-index:1;touch-action:manipulation;overscroll-behavior:none;justify-content:center;align-items:center;width:100vw;height:100dvh;min-height:0;padding:0;display:flex;position:fixed;inset:0;overflow:hidden}.pdf-page-stage.is-scroll-mode{touch-action:pan-y;overscroll-behavior-y:contain;scrollbar-width:none;padding:24px 16px;display:block;overflow:hidden auto}.pdf-spread-stage{touch-action:pan-y;overscroll-behavior-y:contain;scrollbar-width:none;padding:12px 18px;display:block;overflow:hidden auto}.pdf-spread{grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;align-items:center;gap:12px;width:100%;min-width:0;height:max-content;min-height:100%;display:grid;overflow:visible}.spread-page-slot,.spread-page-blank{align-items:center;width:100%;min-width:0;display:flex;position:relative;overflow:visible}.spread-page-slot-left,.spread-page-blank-left{justify-content:flex-end}.spread-page-slot-right,.spread-page-blank-right{justify-content:flex-start}.spread-page-frame{flex:0 auto;max-width:100%;position:relative;overflow:hidden}.spread-page-frame canvas{max-width:100%;display:block;position:absolute}.spread-page-loading,.spread-page-error{place-items:center;margin:0;font-size:12px;display:grid;position:absolute;inset:0}.spread-page-loading{color:#77776f;background:#f7f6f2}.spread-page-error{color:#a43e36;background:#f7f6f2}.virtual-pages-spacer{width:100%;position:relative}.virtual-page-position{position:absolute;left:0;right:0;overflow:visible}.virtual-page-slot{justify-content:center;align-items:flex-start;display:flex;overflow:hidden}.virtual-page-frame{flex:none}.virtual-page-placeholder{color:#77776f;background:#f7f6f2;place-items:center;font-size:12px;display:grid;position:absolute;inset:0}.virtual-page-error{color:#a43e36;background:#f7f6f2;place-items:center;margin:0;font-size:12px;display:grid;position:absolute;inset:0}.reading-mode-row{color:#64645e;justify-content:space-between;align-items:center;gap:12px;margin-bottom:7px;font-size:11px;display:flex}.pdf-crop-frame{box-shadow:none;border:0;border-radius:0}.reading-settings{z-index:6;scrollbar-width:none;overscroll-behavior:contain;border:1px solid #e2e0d9;border-radius:14px;width:min(680px,100vw - 24px);max-height:calc(100dvh - 124px);position:fixed;top:108px;left:50%;overflow:hidden auto;transform:translate(-50%);box-shadow:0 12px 38px #0003}.reading-settings::-webkit-scrollbar{width:0;height:0;display:none}.pdf-viewer-shell::-webkit-scrollbar{width:0;height:0;display:none}.pdf-page-stage::-webkit-scrollbar{width:0;height:0;display:none}.reading-settings{-ms-overflow-style:none}
