:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;color:#171c22;background:#f5f2ec;font-synthesis:none;--paper:#f5f2ec;--surface:#fcfaf6;--green:#11171c;--muted:#68696b;--line:#e2ddd4;--gold:#bd9b54;--font-title:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.5;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #ba9650;outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font:2.7rem/1.15 var(--font-title);font-weight:400;letter-spacing:-.025em}h2{font-size:1.12rem;font-weight:650;line-height:1.3}h3{font-size:1rem;font-weight:600;line-height:1.35}p{line-height:1.6}small{font-size:.8rem;color:var(--muted)}svg{flex-shrink:0}input,select,textarea{width:100%;max-width:100%;min-height:44px;border:1px solid #d8d3ca;border-radius:5px;background:var(--surface);color:#181e23;padding:10px 12px}textarea{resize:vertical}label{display:flex;flex-direction:column;gap:7px;font-size:.875rem;font-weight:550;margin-bottom:17px}label input,label textarea,label select{font-size:1rem;font-weight:400}select{cursor:pointer}fieldset{border:0;border-top:1px solid var(--line);padding:18px 0 3px;margin:22px 0 0}legend{font-size:1.12rem;font-weight:650;padding-right:12px}fieldset:disabled{opacity:.65}.primary,.outline,.danger{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:11px 16px;border-radius:5px;font-size:.875rem;font-weight:500;line-height:1.35}.primary{background:linear-gradient(#171d23,#0b1015);border:1px solid #0b1015;color:#fff}.primary:hover{background:#263039}.outline{border:1px solid #d6d0c7;background:#fbf9f4}.outline:hover{background:#efebe3}.danger{background:#973f2a;color:#fff}.full{width:100%;margin-top:20px}.text-button{display:inline-flex;align-items:center;gap:7px;font-size:.875rem;padding:5px 0;line-height:1.4}.text-button:hover{text-decoration:underline}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;min-width:42px;border-radius:5px}.icon-button:hover{background:#e9e4dc}.eyebrow{font-size:.75rem;letter-spacing:.12em;font-weight:600;color:#665f57}.muted{color:var(--muted)}.late{color:#b43a2c!important}.app{display:flex;min-height:100vh}.sidebar{position:fixed;left:0;top:0;width:216px;height:100dvh;background:linear-gradient(135deg,#15191c,#0c1013 75%);border-right:1px solid #252a2c;display:flex;flex-direction:column;padding:30px 17px 20px;color:#eae6dc;z-index:20}.brand{display:flex;align-items:center;gap:11px;margin:0 6px 37px}.brand>svg{width:30px;height:40px;stroke-width:1.3;color:#d4b465}.brand span{font:1.2rem/1.12 var(--font-title)}.brand strong{display:block;font-weight:400;font-size:1.75rem}.nav-label{font-size:.75rem;letter-spacing:.14em;display:block;color:#a5a39e;margin:0 12px 8px}.sidebar nav{display:flex;flex-direction:column;gap:4px;margin-bottom:28px}.sidebar nav a,.sidebar-bottom>a{display:flex;align-items:center;gap:12px;padding:10px 12px;font-size:.875rem;color:#d8d6d0;border-radius:5px}.sidebar nav a:hover{background:#252a2c}.sidebar nav a.active{background:#303436;color:#fff}.nav-count{margin-left:auto;font-size:.75rem;background:#534935;border-radius:4px;padding:0 5px}.sidebar-bottom{margin-top:auto}.sidebar-bottom>a{font-size:.8rem}.profile{display:flex;align-items:center;gap:9px;border-top:1px solid #323535;padding:20px 7px 0;margin-top:15px}.profile>span{display:grid;place-items:center;width:34px;height:34px;background:#5a5140;border:1px solid #8e7850;border-radius:50%;font:1rem var(--font-title)}.profile b{font-size:.875rem}.profile small{display:block;color:#aeaaa0;font-size:.75rem}.workspace{margin-left:216px;flex:1;min-width:0}.topbar{height:78px;display:flex;align-items:center;gap:13px;padding:16px 32px;background:#fbf9f4;border-bottom:1px solid var(--line)}.search{display:flex;align-items:center;gap:9px;max-width:600px;width:100%;margin-right:auto;border:1px solid #ddd8cf;border-radius:6px;background:#f6f3ee;padding:0 11px;color:#475059}.search input{padding:10px 0;border:0;background:none;font-size:.875rem;min-width:0;outline:none}.add-top{white-space:nowrap}.mobile-brand{display:none}.main{max-width:1600px;margin:auto;padding:31px 32px;min-height:calc(100vh - 145px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading h1{margin:7px 0 10px}.page-heading p{font-size:.875rem;color:var(--muted)}.date{font-size:.8rem;color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-heading h2 span{font-size:.85rem;font-weight:400;color:var(--muted);margin-left:6px}.section-heading>.text-button{font-size:.8rem;white-space:nowrap;color:#314451}.footer{display:flex;align-items:center;gap:7px;max-width:1600px;margin:auto;padding:15px 32px 23px;color:#7e7970;font-size:.75rem}.footer>span:last-child{margin-left:auto}.bottom-nav{display:none}.home-dashboard{margin:-31px -32px -10px}.editorial-banner{min-height:220px;background:linear-gradient(90deg,#080a0c25,#080a0c00 60%,#080a0caa),url(./library-hero-8x1TI-fb.webp) center/cover;display:flex;align-items:stretch;justify-content:space-between;color:#fcf8ee}.banner-quote{padding:44px 45px;display:flex;flex-direction:column;justify-content:center;gap:20px}.banner-quote p{font:1.85rem/1.3 var(--font-title);letter-spacing:-.02em}.banner-quote span{font-size:.75rem;letter-spacing:.16em;color:#dcd4c3}.banner-date{width:28%;min-width:240px;display:flex;flex-direction:column;justify-content:center;padding:28px;background:#0b0d10b3;gap:7px}.banner-date>span{font-size:.8rem;color:#d7d2c6;text-transform:capitalize}.banner-date strong{font-size:1rem;font-weight:450}.banner-date i{width:34px;height:1px;background:var(--gold);margin:11px 0}.banner-date p{font:italic 1.06rem/1.6 var(--font-title)}.dashboard-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) minmax(158px,1.35fr);gap:12px;padding:18px 22px}.dashboard-stats>div{display:flex;align-items:flex-start;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:17px 14px;min-width:0}.dashboard-stats svg{color:#183b55;margin-top:3px;stroke-width:1.7}.dashboard-stats strong{font-size:1.4rem;line-height:1.3;white-space:nowrap;font-weight:500;display:block}.dashboard-stats span{font-size:.75rem;color:#596068;display:block;margin-top:2px}.home-columns{display:grid;grid-template-columns:1.15fr 1fr 1.05fr;gap:15px;padding:0 22px}.home-panel{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:18px;min-width:0}.home-panel .section-heading{margin-bottom:17px;gap:8px}.home-panel h2{font-size:1.05rem}.home-panel .text-button{font-size:.75rem;gap:4px}.current-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.home-reading{min-width:0}.home-reading .cover{max-width:105px;margin:0 auto}.home-reading h3{font-size:.875rem;margin-top:10px;line-height:1.35}.home-reading p{font-size:.75rem;line-height:1.4;color:#656260;margin-top:4px}.home-progress{display:flex;gap:8px;align-items:center;margin-top:12px}.home-progress progress{margin:0;flex:1;min-width:0;height:5px}.home-progress b{font-size:.75rem;font-weight:400}.home-reading-info>small{display:none}.home-reading .primary{width:100%;padding:7px 3px;min-height:34px;font-size:.7rem;margin-top:10px}.home-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;min-height:217px;padding:15px 8px;color:#686762}.home-empty>svg{color:#988765}.home-empty h3{font:1.55rem var(--font-title);color:#292c2b}.home-empty p{font-size:.875rem;max-width:240px}.home-empty small{font-size:.8rem;max-width:210px}.home-empty .primary{font-size:.8rem;min-height:41px}.mobile-loan-summary{display:none}.mini-loan{display:flex;align-items:center;text-align:left;gap:10px;width:100%;padding:10px 0;border-bottom:1px solid var(--line)}.mini-loan:first-child{padding-top:0}.mini-loan:last-child{border-bottom:0}.mini-loan>div:not(.cover){min-width:0;flex:1}.mini-loan b{font-size:.8rem;font-weight:550;display:block;line-height:1.4}.mini-loan small{font-size:.75rem;display:block}.mini-loan span{font-size:.75rem;line-height:1.4;display:block;margin-top:4px}.mini-loan .small.cover{width:35px}.mini-loan .no-cover span{font-size:.5rem}.recent-covers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.mini-book{text-align:left;padding:0;min-width:0;align-self:start}.mini-book h3{font-size:.85rem;line-height:1.35;margin-top:10px}.mini-book small{font-size:.75rem;line-height:1.35;display:block;margin-top:4px}.home-categories{padding:25px 22px 0}.home-categories h2{font-size:1.12rem}.category-tiles{display:flex;gap:12px;overflow:auto;padding:0 0 10px}.category-tile{flex:0 0 145px;border-radius:5px;min-height:83px;text-align:left;padding:15px 18px;color:#fff;display:flex;flex-direction:column;justify-content:center;background:#4f4b31}.category-tile b{font-size:.95rem;font-weight:500}.category-tile span{font-size:.75rem;margin-top:5px;color:#ffffffe0}.color-1{background:#214f68}.color-2{background:#58486a}.color-3{background:#854127}.color-4{background:#123b47}.color-5{background:#815839}.color-6{background:#493d5d}.empty-categories{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;background:#eee9df;border:1px dashed #d5ccbc;border-radius:6px}.empty-categories p{font-size:.875rem;color:#726a5f}.home-bottom{display:flex;align-items:center;justify-content:space-between;padding:24px 23px 10px}.home-bottom>span{font-size:.75rem;letter-spacing:.17em;text-transform:uppercase;color:#978873}.home-bottom .text-button{font-size:.8rem}.mobile-library,.mobile-panel-link,.mobile-new-count{display:none}.cover{aspect-ratio:2/3;width:100%;border-radius:2px;overflow:hidden;flex-shrink:0;background:#e7e0d2;box-shadow:2px 4px 8px #15100a26}.cover img{width:100%;height:100%;object-fit:cover;display:block}.no-cover{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:15px;text-align:center;background:#eae4d7;border:1px solid #d8cfbd;color:#776c55}.no-cover>span{font:1.2rem/1.25 var(--font-title);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;overflow-wrap:anywhere;word-break:break-word}.no-cover small{font-size:.75rem;color:#7e735e}.no-cover>svg{opacity:.65}.cover-button{padding:0;display:block;width:100%;text-align:left}.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:30px 25px}.book-card{padding:0;text-align:left;min-width:0;align-self:start}.book-card .cover{transition:transform .2s}.book-card:hover .cover{transform:translateY(-4px)}.book-card-info{padding-top:12px}.book-card-info>small{font-size:.75rem;letter-spacing:.06em;color:#8a7450;text-transform:uppercase}.book-card h3{font-size:1rem;line-height:1.4;margin:5px 0}.book-card p{font-size:.85rem;color:var(--muted);line-height:1.45}.book-meta,.reading-status{display:block;font-size:.75rem;margin-top:7px;color:var(--muted)}.reading-status{color:#267258}.badge{display:inline-block;padding:3px 8px;border-radius:4px;border:1px solid #dcd7ce;background:#f0ede5;font-size:.75rem;color:#635d51}.badge.warm{color:#a4502f;background:#fff0e5;border-color:#ecd3be}.book-card .badge{margin-top:7px}.small.cover{width:65px}.small .no-cover{padding:6px;gap:0}.small .no-cover>span{font-size:.8rem}.small .no-cover small,.small .no-cover>svg{display:none}progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;background:#d8d6cf;margin:10px 0 18px}progress::-webkit-progress-bar{background:#d8d6cf}progress::-webkit-progress-value{background:#16785d}progress::-moz-progress-bar{background:#16785d}.reading-card{display:grid;grid-template-columns:105px minmax(0,1fr);gap:22px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:6px;align-items:center}.reading-card h3{font-size:1.15rem;margin:7px 0 9px}.reading-card p{font-size:.875rem;color:var(--muted);margin-bottom:20px}.reading-card .primary{font-size:.8rem;min-height:39px;padding:9px 13px}.progress-label{font-size:.8rem;display:flex;justify-content:space-between;gap:10px}.reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.view-switch{display:flex;border:1px solid var(--line);border-radius:5px;overflow:hidden;padding:3px}.view-switch button{display:grid;place-items:center;width:40px;height:36px}.view-switch .selected{background:#161c21;color:#fff;border-radius:3px}.filterbar{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:28px;align-items:flex-start}.filterbar>select{width:auto;max-width:190px;min-height:41px;padding:8px 27px 8px 10px;font-size:.875rem}.extra-filters{position:relative;z-index:8;font-size:.875rem}.extra-filters summary{cursor:pointer;border:1px solid #d8d3ca;padding:9px 12px;border-radius:5px;background:var(--surface);min-height:41px}.extra-filters>div{position:absolute;top:48px;left:0;background:var(--surface);border:1px solid var(--line);padding:20px;width:270px;border-radius:7px;box-shadow:0 8px 25px #0002}.book-list{display:flex;flex-direction:column}.book-list .book-card{display:flex;align-items:center;gap:22px;padding:20px 0;border-bottom:1px solid var(--line)}.book-list .cover{width:70px}.book-list .no-cover{padding:7px;gap:0}.book-list .no-cover svg,.book-list .no-cover small{display:none}.book-list .no-cover span{font-size:.8rem}.book-list .book-card-info{padding:0}.book-list .book-card h3{font-size:1.2rem}.spaced-title{margin:32px 0 20px}.rows{border-top:1px solid var(--line)}.row{display:flex;align-items:center;gap:15px;text-align:left;width:100%;padding:18px 2px;border-bottom:1px solid var(--line);min-width:0}.row>svg{color:#697278}.row>div{flex:1;min-width:0}.row b{font-size:.95rem;font-weight:550;overflow-wrap:anywhere}.row small{display:block;margin-top:4px}.row>svg:last-child{margin-left:auto}.row .badge{margin-top:6px}.records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.note{background:var(--surface);border:1px solid var(--line);padding:22px;border-radius:6px}.note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.count{font-size:.875rem;color:var(--muted);margin-left:10px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:25px;overflow:auto}.tabs button{padding:10px 0 14px;white-space:nowrap;font-size:.875rem;color:var(--muted)}.tabs .selected{color:#12191e;border-bottom:2px solid #12191e;font-weight:600}.loan-row{display:flex;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.loan-row>.cover-button{width:auto}.loan-row>div{flex:1;min-width:0}.title-button{font-size:1.1rem;font-weight:600;padding:0;text-align:left}.loan-row p{font-size:.875rem;margin:5px 0}.loan-row .badge{margin-top:10px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}.panel{padding:26px;background:var(--surface);border:1px solid var(--line);border-radius:6px;min-width:0}.panel>h2{margin-bottom:18px}.panel>p{font-size:.9rem;margin:12px 0 20px;color:#686964}.panel>small{display:block;line-height:1.6}.panel .row:last-child{border-bottom:0}.empty{padding:50px 25px;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;border:1px dashed #d0c8b9;background:#efebe2;border-radius:6px}.empty>svg{color:#9d8e6f;stroke-width:1.2}.empty h3{font:1.85rem var(--font-title)}.empty p{font-size:.9rem;color:var(--muted);max-width:430px}.back{margin-bottom:25px}.book-detail{display:grid;grid-template-columns:205px minmax(0,1fr);gap:37px;align-items:start}.book-detail h1{margin:10px 0 12px}.detail-author{font-size:1.05rem;color:var(--muted);margin-bottom:18px}.metadata{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:24px 0}.metadata dt{font-size:.8rem;color:var(--muted)}.metadata dd{font-size:.875rem;margin:4px 0 0;overflow-wrap:anywhere}.action-row,.pills{display:flex;gap:9px;flex-wrap:wrap}.pills{gap:6px}.detail-columns{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;margin-top:32px}.detail-columns .note{margin-top:18px;background:var(--paper)}.provenance{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin:20px 0;font-size:.8rem;color:var(--muted)}.provenance b{color:var(--green);font-size:.875rem;font-weight:500}.provenance p{margin:9px 0}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}dialog{border:1px solid var(--line);border-radius:10px;width:600px;max-width:calc(100vw - 28px);max-height:90dvh;padding:27px;background:var(--surface);color:var(--green);box-shadow:0 20px 90px #0004}dialog.wide{width:870px}dialog::backdrop{background:#10131699;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.modal-head h2{font:1.8rem/1.2 var(--font-title)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:21px;margin-top:22px}.form-footer>span{font-size:.8rem}.isbn-search{display:flex;align-items:flex-end;gap:10px;margin-bottom:18px}.isbn-search label{flex:1;margin:0;min-width:0}.isbn-search button{height:46px;flex-shrink:0}.checkbox{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-size:.875rem;margin:20px 0 10px;font-weight:400}.checkbox input{width:18px;min-height:18px;height:18px;accent-color:#132433;flex-shrink:0;margin:2px 0}.organization-field{margin-bottom:17px}.organization-field label{margin-bottom:3px}.mini{font-size:.8rem;font-weight:400;display:flex}.inline-create{display:flex;align-items:center;gap:7px;margin-top:10px}.inline-create input{min-width:0}.inline-create button{font-size:.8rem;padding:8px}.multi-checks{border:1px solid var(--line);padding:10px;border-radius:5px;max-height:180px;overflow:auto;font-size:.8rem}.multi-checks .checkbox{margin:5px 0;min-height:30px}.notice{padding:13px 16px;border:1px solid #ded6c4;background:#f4f0e4;border-radius:5px;font-size:.875rem;margin:17px 0;line-height:1.6}.notice .text-button{display:flex;justify-content:flex-start}.error{display:flex;gap:10px;align-items:center;padding:12px 15px;background:#fbeae3;border:1px solid #e7bcad;color:#983e27;border-radius:5px;font-size:.875rem;margin:15px 0;line-height:1.55}.form-book{display:flex;align-items:center;gap:15px;padding:18px;background:#eeeae0;border-radius:6px;margin-bottom:22px}.form-book b{display:block;font-size:1.15rem}.form-book small{display:block;margin-top:6px}.scanner>p{margin-bottom:20px;font-size:.9rem;color:var(--muted)}.scanner video{width:100%;max-height:340px;background:#11181e;border-radius:6px;object-fit:cover;margin-bottom:20px}.hidden{display:none}.scan-start{width:100%;padding:40px;background:#ebe7dd;border:1px dashed #baad94;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;margin-bottom:24px}.scanner>.text-button{display:flex;margin:15px auto 0}.qr-panel{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}.qr-panel img{max-width:100%;height:auto}.qr-panel p{font-size:.9rem}.history{padding:13px 0;border-bottom:1px solid var(--line)}.history summary{cursor:pointer;font-size:.875rem}.history pre{font:12px/1.6 monospace;max-height:300px;overflow:auto;background:#ede9e0;padding:15px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);max-width:calc(100vw - 32px);display:flex;align-items:center;gap:9px;padding:15px 23px;background:#122a23;color:#fff;border-radius:7px;box-shadow:0 10px 40px #0002;font-size:.875rem;z-index:100}.auth{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 20px;background:linear-gradient(#080b0ea8,#080b0edb),url(./library-hero-8x1TI-fb.webp) center/cover}.auth-brand{display:flex;align-items:center;gap:13px;margin-bottom:28px;color:#eee6d6}.auth-brand>svg{width:42px;height:42px;stroke-width:1.3;color:#d3b471}.auth-brand>span{font:1.45rem/1 var(--font-title)}.auth-brand b{font-size:2.3rem;font-weight:400}.auth-card{width:100%;max-width:450px;background:#fcfaf5;border:1px solid #d9d0bf;border-radius:9px;padding:34px;box-shadow:0 15px 55px #0003}.auth-card h1{font-size:2.4rem;margin:12px 0 18px}.auth-card>p{font-size:.9rem;color:var(--muted);margin-bottom:24px}.auth-card label{margin-bottom:8px}.auth-note{display:flex;gap:8px;align-items:center;margin-top:22px;color:#c7bba7}.loading{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:100vh;gap:20px;text-align:center;padding:30px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){.home-panel{padding:22px}.home-columns{gap:20px}.editorial-banner{min-height:250px}.banner-quote p{font-size:2.15rem}.home-reading .cover{max-width:125px}.book-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1200px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.workspace{margin-left:190px}.topbar{padding:16px 25px}.main{padding:28px 25px}.home-dashboard{margin:-28px -25px -10px}.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dashboard-stats>div{padding:12px}.home-columns{grid-template-columns:1fr 1fr}.current-reading{grid-column:1/-1}.current-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-reading{display:flex;align-items:center;gap:15px}.home-reading>.cover-button{width:75px;flex-shrink:0}.home-reading h3{margin-top:0}.home-reading .primary{font-size:.75rem;padding:7px}.home-reading .no-cover>span{font-size:.875rem}.home-reading .no-cover small{display:none}.banner-quote{padding:35px}.banner-quote p{font-size:1.7rem}.banner-date{min-width:220px;padding:25px}.home-empty{min-height:165px}.current-reading .home-empty{min-height:150px}.reading-grid{grid-template-columns:1fr}.metadata{grid-template-columns:repeat(2,minmax(0,1fr))}.book-detail{grid-template-columns:175px minmax(0,1fr);gap:28px}.date{display:none}}@media(max-width:800px){.sidebar{display:none}.workspace{margin:0}.topbar{min-height:123px;height:auto;padding:19px 22px 12px;display:flex;flex-wrap:wrap;gap:14px;border:0}.mobile-brand{display:flex;align-items:center;gap:5px;font:1.35rem var(--font-title);width:calc(100% - 48px);order:0;justify-content:center}.mobile-brand svg{color:#8f7849;width:22px;margin-right:4px}.mobile-brand b{font-weight:400}.scan-top{order:1;min-height:34px;min-width:34px}.add-top{display:none}.search{order:2;max-width:none;background:#eae7e1;border:1px solid #d9d6d0;padding:0 11px}.search input{font-size:1rem}.main{padding:21px 22px 28px}.home-dashboard{margin:0}.editorial-banner,.dashboard-stats{display:none}.home-columns{padding:0;display:grid;grid-template-columns:1fr 1fr;gap:15px}.current-reading{grid-column:1/-1;padding:0;background:transparent;border:0}.current-reading .section-heading{margin-bottom:13px}.current-reading h2{font-size:1.15rem}.current-grid{display:flex;overflow:auto;scroll-snap-type:x mandatory;gap:15px;padding-bottom:5px}.home-reading{display:flex;align-items:center;border:1px solid var(--line);background:var(--surface);padding:17px;gap:20px;border-radius:6px;flex:0 0 100%;scroll-snap-align:start}.home-reading>.cover-button{width:94px}.home-reading-info{flex:1;min-width:0}.home-reading h3{font-size:1.05rem;line-height:1.35;margin:0 0 7px}.home-reading p{font-size:.85rem;line-height:1.45;margin-bottom:12px}.home-reading-info>small{display:block;font-size:.8rem;margin:8px 0 0}.home-reading .primary{font-size:.8rem;margin-top:13px;min-height:38px}.home-progress{margin-top:10px}.home-progress progress{height:7px}.home-progress b{font-size:.8rem}.current-reading .home-empty{border:1px solid var(--line);border-radius:6px;min-height:245px;background:var(--surface);padding:25px}.home-loans,.home-recent{padding:17px 16px}.home-panel .section-heading h2{font-size:.9rem;line-height:1.4}.home-loans .section-heading>.text-button,.home-recent .section-heading>.text-button{display:none}.home-loan-list{display:none}.mobile-loan-summary{display:block}.mobile-loan-summary p{font-size:.85rem;display:flex;gap:9px;align-items:center;margin:9px 0}.status-dot{display:inline-block;width:8px;height:8px;background:#9c9b94;border-radius:50%;margin:0 4px}.late .status-dot{background:#b9322f}.mobile-panel-link{display:inline-flex!important;font-size:.8rem!important;margin-top:16px}.mobile-new-count{display:block;font-size:.8rem;margin:0 0 10px}.recent-covers{gap:7px}.mini-book h3,.mini-book small{display:none}.mini-book .no-cover{padding:5px;gap:0}.mini-book .no-cover svg,.mini-book .no-cover small{display:none}.mini-book .no-cover span{font-size:.65rem}.home-recent .home-empty{min-height:100px;padding:2px 0;gap:10px;align-items:flex-start;text-align:left}.home-recent .home-empty>svg{display:none}.home-recent .home-empty p,.home-recent .home-empty .text-button{font-size:.8rem}.mobile-library{display:block;margin-top:15px;padding:19px}.mobile-library h2{font-size:1rem;margin-bottom:17px}.mobile-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mobile-stat-grid strong{display:block;font-size:1.55rem;font-weight:550}.mobile-stat-grid span{font-size:.8rem;display:block;color:#616365}.mobile-library progress{height:10px;margin:19px 0 10px}.read-counts{display:flex;justify-content:space-between;font-size:.8rem}.mobile-library>.text-button{display:flex;justify-content:flex-end;margin:14px 0 0;font-size:.8rem}.home-categories{padding:27px 0 0}.home-categories .section-heading h2{font-size:1rem}.category-tile{flex-basis:130px;min-height:75px}.empty-categories{padding:18px;flex-direction:column;align-items:flex-start;gap:14px}.home-bottom{padding:25px 0 0;gap:15px}.home-bottom>span{font-size:.75rem;letter-spacing:.07em}.home-bottom>.text-button{display:none}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-around;height:calc(70px + env(safe-area-inset-bottom));padding:9px 5px calc(9px + env(safe-area-inset-bottom));background:#fcfaf6f5;border-top:1px solid #dedad2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:30}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:55px;font-size:.75rem;color:#777a7b}.bottom-nav a.active{color:#12191e}.bottom-nav a svg{width:21px;height:21px;stroke-width:1.7}.add-mobile{display:grid;place-items:center;background:#10171d;color:#fff;border:5px solid var(--paper);border-radius:50%;width:55px;height:55px;margin-top:-12px}.footer{padding:15px 22px calc(96px + env(safe-area-inset-bottom))}.toast{bottom:95px}.page-heading{margin-bottom:25px;align-items:flex-start}.page-heading h1{font-size:2.25rem}.page-heading .primary{font-size:.8rem;padding:10px;min-height:42px}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 20px}.settings-grid{grid-template-columns:1fr}.book-detail{grid-template-columns:150px minmax(0,1fr);gap:25px}.book-detail h1{font-size:2.3rem}.detail-columns{grid-template-columns:1fr}.loan-row{gap:15px;flex-wrap:wrap}.loan-row>.outline{margin-left:80px}.records{gap:15px}.main>.error{margin-top:0}}@media(max-width:520px){.topbar{padding:18px 18px 11px;min-height:117px}.main{padding:16px 18px 25px}.mobile-brand{font-size:1.3rem}.page-heading h1{font-size:2.1rem}.page-heading p{font-size:.8rem}.page-heading{gap:10px}.page-heading>.primary{max-width:130px}.home-columns{gap:12px}.home-panel .section-heading{margin-bottom:12px}.current-reading .section-heading h2{font-size:1.1rem}.home-reading{padding:13px;gap:14px}.home-reading>.cover-button{width:91px}.home-reading h3{font-size:1rem}.home-reading p{font-size:.8rem;margin-bottom:10px}.home-reading .primary{font-size:.8rem;min-height:36px}.home-reading .no-cover{padding:8px;gap:8px}.home-reading .no-cover span{font-size:.85rem}.home-loans,.home-recent{padding:14px 12px}.home-panel .section-heading h2{font-size:.875rem}.mobile-loan-summary p{font-size:.8rem}.mobile-new-count{font-size:.75rem}.mobile-stat-grid{gap:8px}.mobile-stat-grid strong{font-size:1.5rem}.mobile-stat-grid span{font-size:.75rem}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 20px}.filterbar{gap:8px}.filterbar>select{max-width:calc(50% - 4px);font-size:.8rem;flex:1}.extra-filters>div{left:0}.reading-card{grid-template-columns:85px minmax(0,1fr);gap:17px;padding:18px}.reading-card h3{font-size:1rem}.reading-card p{font-size:.8rem}.reading-card .primary{font-size:.75rem;padding:9px}.reading-card .no-cover{padding:8px;gap:8px}.reading-card .no-cover>span{font-size:.85rem}.reading-card .no-cover small{display:none}.records{grid-template-columns:1fr}.book-detail{grid-template-columns:90px minmax(0,1fr);gap:20px}.book-detail>.cover .no-cover{padding:8px;gap:7px}.book-detail>.cover .no-cover span{font-size:.9rem}.book-detail>.cover .no-cover small{display:none}.book-detail h1{font-size:1.85rem}.detail-author{font-size:.85rem}.book-detail .eyebrow{font-size:.75rem;letter-spacing:.02em}.book-detail .metadata,.book-detail .action-row,.book-detail .notice{margin-left:-110px}.metadata{margin-top:32px!important;gap:17px}.action-row{margin-top:23px}.panel{padding:21px}.note{padding:18px}.tabs{gap:19px}.tabs button{font-size:.8rem}.loan-row .small.cover{width:55px}.loan-row>.outline{margin-left:70px}.loan-row small{font-size:.75rem}.form-grid{grid-template-columns:1fr;gap:0}dialog{padding:23px 20px;max-height:94dvh;max-width:calc(100vw - 20px);border-radius:9px}.modal-head{gap:10px;margin-bottom:22px}.modal-head h2{font-size:1.65rem}.form-footer{align-items:stretch;flex-direction:column;gap:12px}.form-footer .primary{width:100%}.isbn-search{gap:8px;flex-wrap:wrap}.isbn-search label{flex-basis:100%}.isbn-search>.primary{flex:1}.isbn-search .outline{width:50px}.inline-create{flex-wrap:wrap}.inline-create input{flex-basis:100%}.auth-card{padding:28px}.auth-card h1{font-size:2.2rem}.empty{padding:38px 20px}.empty h3{font-size:1.7rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media print{.sidebar,.topbar,.bottom-nav,.footer,.action-row{display:none!important}.workspace{margin:0}.main{padding:0}dialog::backdrop{background:#fff}}@media(max-width:800px){.mobile-brand{width:auto;flex:1;min-width:0}.search{flex-basis:100%}.scan-top{padding:4px;flex-shrink:0}}.public-mode [data-edit]{display:none!important}.access-link{order:5;font-size:.8rem;white-space:nowrap;border:1px solid var(--line);padding:9px 12px;border-radius:5px}.auth-card>.text-button{margin-top:17px}.public-mode .bottom-nav a{flex:1}.public-mode .home-empty .primary{display:none}@media(max-width:800px){.access-link{order:1;padding:6px 9px;font-size:.75rem}.mobile-brand{justify-content:flex-start}.personal-mode .access-link{display:none}.public-mode .search{order:2}.public-mode .mobile-brand{font-size:1.15rem}}.capture-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.capture-primary{width:100%;min-height:82px;border:1px solid #14251f}.capture-primary:not(.selected){background:var(--surface);color:#14251f;border-color:var(--line)}.capture-primary:not(.selected) small{color:var(--muted)}.capture-relation-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}.capture-relation-choice>button{display:grid;gap:4px;padding:13px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:6px;color:var(--ink)}.capture-relation-choice>button.selected{border-color:#967b42;background:#f6edd8;box-shadow:inset 0 0 0 1px #967b42}.capture-relation-choice small{color:var(--muted);line-height:1.35}.crop-editor{margin-top:14px}.crop-title{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}.crop-title div{display:grid;gap:3px}.crop-title small{color:var(--muted)}.crop-stage{position:relative;overflow:hidden;width:100%;max-height:58vh;background:#151515;border-radius:7px;touch-action:none;-webkit-user-select:none;user-select:none}.ocr-capture .crop-stage img{display:block;width:100%;height:auto;max-height:none;margin:0}.crop-shade{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.crop-box{position:absolute;border:2px solid #f4c95d;box-shadow:0 0 0 9999px #0009;cursor:move;touch-action:none}.crop-box:before,.crop-box:after{content:"";position:absolute;background:#f4c95d55}.crop-box:before{left:33.33%;right:33.33%;top:0;bottom:0;border-left:1px solid #fff7;border-right:1px solid #fff7;background:transparent}.crop-box:after{top:33.33%;bottom:33.33%;left:0;right:0;border-top:1px solid #fff7;border-bottom:1px solid #fff7;background:transparent}.crop-handle{position:absolute;width:24px;height:24px;background:#f4c95d;border:2px solid #fff;border-radius:50%;z-index:2}.crop-handle.nw{left:-12px;top:-12px;cursor:nwse-resize}.crop-handle.ne{right:-12px;top:-12px;cursor:nesw-resize}.crop-handle.sw{left:-12px;bottom:-12px;cursor:nesw-resize}.crop-handle.se{right:-12px;bottom:-12px;cursor:nwse-resize}.crop-tools,.crop-ready-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.crop-tools .primary{margin-left:auto}.cropped-preview{margin-top:12px;padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:6px}.ocr-capture .cropped-preview img{max-height:230px;margin:0 auto 8px}.success-message{margin:9px 0 0;padding:10px 12px;background:#e8f3ea;border:1px solid #acd0b3;border-radius:5px;color:#285b37;font-weight:600;text-align:center}.work-notebook-capture{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 18px}.work-notebook-capture .outline{padding:7px 10px;min-height:34px}.free-note-label{color:#75694f}.home-journal,.home-recent{min-width:0}@media(min-width:801px){.home-columns{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr)}.current-reading{grid-column:1/-1}.current-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-journal{grid-column:1}.home-recent{grid-column:2}.recent-notes{grid-template-columns:repeat(2,minmax(0,1fr))}.home-recent .recent-covers{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.capture-main-actions,.capture-relation-choice{grid-template-columns:1fr 1fr}.capture-primary{min-height:88px;padding:14px}.capture-primary svg{width:25px;height:25px}.crop-tools{display:grid;grid-template-columns:1fr 1fr}.crop-tools .primary{margin-left:0}.crop-tools .text-button{justify-content:center}.work-notebook-capture{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.work-notebook-capture .outline{flex:0 0 auto}}@media(max-width:420px){.capture-main-actions{grid-template-columns:1fr}.capture-relation-choice{grid-template-columns:1fr 1fr}.capture-relation-choice>button{padding:11px}.crop-handle{width:28px;height:28px}.crop-handle.nw{left:-14px;top:-14px}.crop-handle.ne{right:-14px;top:-14px}.crop-handle.sw{left:-14px;bottom:-14px}.crop-handle.se{right:-14px;bottom:-14px}}.brand-logo{display:block;object-fit:contain;flex:0 0 auto}.brand>.brand-logo{width:48px;height:48px;margin-left:-5px}.mobile-brand>.brand-logo{width:36px;height:36px;margin-right:2px}.auth-brand>.brand-logo{width:78px;height:78px}.footer>.brand-logo{width:23px;height:23px}.banner-quote{flex-direction:row;align-items:center}.banner-logo{width:112px;height:112px;object-fit:contain;flex:0 0 auto;filter:drop-shadow(0 8px 18px #0008)}.banner-quote-copy{display:flex;flex-direction:column;gap:20px}@media(max-width:1100px){.banner-logo{width:88px;height:88px}.banner-quote{padding-left:28px;gap:18px}.banner-quote p{font-size:1.55rem}}@media(max-width:800px){.mobile-brand span{white-space:nowrap}.auth-brand>.brand-logo{width:68px;height:68px}}.home-columns{grid-template-columns:1.15fr 1fr}.loan-notice{display:flex;align-items:center;gap:10px;margin:16px 22px 0;padding:10px 0;font-size:.85rem;color:var(--muted);text-align:left}.loan-notice.has-overdue{padding:14px 18px;background:#fff2e9;border:1px solid #dfb49e;border-radius:6px;color:#913b25}.bibliographic-search{padding:16px 0}.bibliographic-search>p{font-size:.85rem;margin:8px 0 15px}.bibliographic-query{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-bottom:18px}.bibliographic-query label{margin:0}.bibliographic-query button{height:46px}.bibliographic-result{display:flex;align-items:flex-start;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.bibliographic-result>img{width:64px;max-height:105px;object-fit:contain}.bibliographic-result>div{flex:1;min-width:0}.bibliographic-result h3,.bibliographic-result p{overflow-wrap:anywhere}.bibliographic-result small{display:block;margin:5px 0}.bibliographic-result .action-row{margin:10px 0 0;flex-wrap:wrap}.cover-preview{display:block;width:90px;max-height:140px;object-fit:contain;margin-bottom:10px}.cover-field{margin-bottom:15px}.cover-search{width:100%;margin-top:4px}.edition-picker>h3{margin:12px 0}.unknown-edition-fallback{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:18px;padding:13px 15px;border:1px dashed var(--line);border-radius:5px;color:var(--muted);font-size:.85rem}.unknown-edition-fallback .text-button{color:var(--green)}.amazon-price{align-self:start;margin:5px 0 17px}.banner-quote{max-width:70%}@media(max-width:800px){.home-columns{grid-template-columns:1fr}.home-recent{grid-column:1/-1}.loan-notice{margin:14px 0 0}.home-recent .recent-covers{justify-content:flex-start}.bibliographic-result .action-row{margin-left:0}.banner-quote{max-width:100%}.bibliographic-query{grid-template-columns:1fr 1fr}.bibliographic-query button{grid-column:1/-1}}@media(max-width:520px){.bibliographic-query{grid-template-columns:1fr}.bibliographic-query button{grid-column:auto}}.current-grid{align-items:stretch}.home-reading{display:flex;flex-direction:column;height:100%}.home-reading>.cover-button{display:block}.home-reading-info{display:flex;flex:1;min-width:0;flex-direction:column}.home-reading-info>.primary{margin-top:auto}.choice-field{margin-bottom:17px}.choice-field>span{display:block;font-size:.82rem;font-weight:600;margin-bottom:7px}.choice-field .multi-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.organization-row{padding:0}.organization-link{display:flex;align-items:center;gap:15px;flex:1;min-width:0;padding:18px 2px;text-align:left}.organization-link>svg{color:#697278;flex-shrink:0}.organization-link>div{flex:1;min-width:0}.organization-link b,.organization-link small{display:block;overflow-wrap:anywhere}.organization-link small{margin-top:4px}.organization-link>svg:last-child{margin-left:auto}.organization-row>.icon-button{flex-shrink:0;margin-right:2px}@media(max-width:1200px){.home-reading{flex-direction:row;align-items:stretch}.home-reading>.cover-button{align-self:flex-start}}@media(max-width:520px){.choice-field .multi-checks{grid-template-columns:1fr}}.home-journal{grid-column:1/-1}.recent-notes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.recent-notes>button{min-width:0;padding:16px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:5px}.recent-notes .eyebrow{display:flex;align-items:center;gap:5px}.recent-notes p{font:1.05rem/1.45 var(--font-title);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0}.recent-notes small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.home-empty.compact{min-height:130px}.dashboard-stats{margin-top:16px}.journal-heading{align-items:flex-end}.journal-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:24px;padding:14px;background:#eeeae0;border:1px solid var(--line);border-radius:6px}.journal-filters select,.journal-filters input{min-height:40px}.journal-search{display:flex;align-items:center;gap:8px;flex:1;min-width:230px;margin:0;padding:0 10px;background:var(--surface);border:1px solid var(--line);border-radius:5px}.journal-search input{border:0;margin:0;padding:0;background:transparent}.journal-search input:focus{outline:0}.journal-filters .checkbox{margin:0 5px}.journal-filters details{position:relative}.journal-filters summary{cursor:pointer;font-size:.82rem;padding:9px}.journal-period{position:absolute;z-index:3;right:0;top:42px;width:260px;padding:14px;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 30px #0002}.journal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.journal-list{display:grid;gap:14px}.journal-card{display:flex;flex-direction:column;min-width:0;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:6px}.journal-card.is-favorite{border-color:#b89a59;box-shadow:inset 3px 0 #b89a59}.journal-card>header,.journal-card>footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.favorite-mark{display:flex;align-items:center;gap:5px;color:#8b6d2e;font-size:.75rem}.journal-card blockquote{margin:16px 0 11px;padding-left:17px;border-left:2px solid #b89a59;font:1.35rem/1.5 var(--font-title);white-space:pre-wrap}.journal-comment{white-space:pre-wrap;line-height:1.65;margin:12px 0}.journal-context{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:12px 0;color:var(--muted);font-size:.78rem}.journal-context .text-button{font-weight:600;text-align:left}.journal-card .badge{cursor:pointer}.journal-card>footer{margin-top:auto;padding-top:15px}.related{display:flex;align-items:flex-start;gap:9px;margin-top:13px;padding:12px;background:var(--paper);border-radius:4px;font-size:.78rem}.related b,.related span{display:block;margin-bottom:4px}.quick-records{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.quick-records .outline{padding:6px 9px;min-height:31px;font-size:.72rem}.caderno-callout{display:flex;align-items:center;gap:15px;width:100%;margin-top:25px;padding:20px;background:#14251f;color:#f4eee2;border-radius:6px;text-align:left}.caderno-callout>div{display:flex;flex:1;flex-direction:column;gap:4px}.caderno-callout span{font-size:.8rem;color:#c9c2b6}.work-notebook{margin-top:24px}.work-notebook>.section-heading>div h2{margin-top:4px}.record-relations{margin:18px 0;border:1px solid var(--line);border-radius:5px;padding:12px}.record-relations summary{cursor:pointer;font-weight:600}.relation-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;max-height:280px;overflow:auto}.relation-columns>div>b{display:block;margin-bottom:8px}.relation-columns .checkbox{font-size:.78rem;margin:5px 0}.record-form textarea{resize:vertical}@media(max-width:900px){.recent-notes{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-grid,.relation-columns{grid-template-columns:1fr}.journal-filters>*{flex:1 1 calc(50% - 9px)}.journal-filters .journal-favorite{flex-basis:100%}}@media(max-width:520px){.recent-notes{display:flex;overflow:auto}.recent-notes>button{flex:0 0 82%}.journal-filters{margin-left:-18px;margin-right:-18px;border-left:0;border-right:0;border-radius:0;padding:12px 18px}.journal-filters>*{flex-basis:100%}.journal-search{min-width:0}.journal-card{padding:18px}.journal-card blockquote{font-size:1.2rem}.quick-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quick-records .outline:last-child{grid-column:1/-1}.work-notebook{margin-left:-110px}.record-relations{padding:10px}}.reading-cockpit{max-width:1050px;margin:0 auto}.cockpit-hero{display:grid;grid-template-columns:150px minmax(0,1fr);gap:28px;align-items:center;margin-bottom:22px;padding:28px;background:#121a1f;color:#f7f1e5;border-radius:8px}.cockpit-hero .cover{box-shadow:0 14px 35px #0007}.cockpit-hero h1{font-size:2.25rem;margin:7px 0}.cockpit-hero p,.cockpit-hero small{color:#c9c2b6}.cockpit-progress{display:flex;align-items:center;gap:12px;margin-top:20px}.cockpit-progress progress{flex:1}.cockpit-capture{margin-bottom:20px;padding:25px;background:linear-gradient(135deg,#f9f5eb,#eee5d2);border:1px solid #d9ccb1;border-radius:8px}.cockpit-capture h2{margin:5px 0 17px}.cockpit-primary-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.cockpit-primary-actions .primary{justify-content:center}.cockpit-more{margin-top:12px}.cockpit-more summary,.capture-choice details summary,.ocr-capture summary,.optional-context summary{display:flex;align-items:center;gap:7px;cursor:pointer;font-weight:600}.cockpit-more>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.cockpit-update,.cockpit-recent{margin-top:20px}.cockpit-update .section-heading{align-items:flex-start}.cockpit-update .primary svg{width:16px}.capture-choice{display:grid;gap:16px}.capture-primary{display:flex;align-items:center;gap:14px;padding:18px;background:#14251f;color:#fff;border-radius:7px;text-align:left}.capture-primary svg{width:29px;height:29px;color:#d8bd79}.capture-primary div{display:grid;gap:3px}.capture-primary small{color:#d6d4cb}.capture-kinds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.capture-kinds button{justify-content:center}.capture-kinds.secondary{margin-top:10px}.capture-divider{display:flex;align-items:center;gap:8px;color:var(--muted)}.capture-divider:before,.capture-divider:after{content:"";height:1px;background:var(--line);flex:1}.record-top{display:grid;grid-template-columns:1fr auto;gap:15px;align-items:end}.favorite-button{display:flex;align-items:center;gap:6px;min-height:46px;padding:10px;color:#726b60}.favorite-button.selected{color:#8b6d2e;background:#f5ead0}.favorite-button svg{width:19px}.compact-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.field-title{display:block;font-size:.82rem;font-weight:600}.journal-tag-picker{margin:18px 0;padding:15px;background:var(--paper);border:1px solid var(--line);border-radius:6px}.journal-tag-picker .muted{font-size:.78rem;margin:5px 0 11px}.tag-suggestions{display:flex;flex-wrap:wrap;gap:7px}.tag-suggestions .badge{cursor:pointer}.tag-suggestions .badge.selected{background:#18352b;color:#fff;border-color:#18352b}.journal-tag-picker .inline-create{margin-top:12px}.work-tag-suggestions{margin:9px 0}.draft-restored{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;padding:10px 13px;background:#fff4cf;border:1px solid #e6cf85;border-radius:5px;font-size:.8rem}.optional-context,.ocr-capture{margin:13px 0;padding:14px;border:1px solid var(--line);border-radius:6px}.ocr-capture img{display:block;max-width:100%;max-height:300px;margin:13px auto;object-fit:contain}.ocr-capture label{margin-top:12px}.camera-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px;background:#ece7dc;border-radius:5px;cursor:pointer}.record-success{text-align:center;padding:22px 5px}.record-success>svg{width:48px;height:48px;color:#876f38}.record-success h3{font:2rem var(--font-title);margin:12px 0}.record-success .full{margin-top:9px}.record-success>.text-button{margin-top:18px}.question-state{margin:9px 0;padding:12px;background:#fff4cf;border-left:3px solid #c89b35}.question-state.answered{background:#eaf3ed;border-color:#4e7d63}.question-state p{margin:8px 0 0}.continuous-notebook{position:relative;display:grid;gap:18px;margin-top:18px}.continuous-notebook:before{content:"";position:absolute;left:54px;top:0;bottom:0;width:1px;background:#c9b98f}.continuous-entry{display:grid;grid-template-columns:90px minmax(0,1fr);gap:15px;position:relative}.continuous-marker{position:relative;z-index:1;padding-top:15px;text-align:right}.continuous-marker b{display:block;font-size:.76rem}.continuous-marker span{display:inline-grid;place-items:center;width:24px;height:24px;margin-top:7px;background:#14251f;color:#fff;border-radius:50%;font-size:.7rem}.journal-card.compact blockquote{font-size:1.15rem}.notebook-actions{display:flex;align-items:center;gap:9px}.open-questions-home{display:flex;align-items:center;gap:11px;margin:14px 22px 0;padding:12px 16px;background:#f4ecda;border:1px solid #daccae;border-radius:6px;text-align:left}.open-questions-home>div{display:grid;gap:2px;flex:1}.open-questions-home span{font-size:.78rem;color:var(--muted)}.organization-group{border-bottom:1px solid var(--line)}.organization-group .organization-row{border-bottom:0}.organization-group.is-open{background:#f8f5ee}.organization-group.is-open .organization-link>svg:last-child{transform:rotate(90deg)}.organization-inline{display:grid;padding:0 15px 14px 48px}.organization-inline>button{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px;border-top:1px solid var(--line);text-align:left}.organization-inline .cover{width:38px}.organization-inline .cover .no-cover{padding:3px}.organization-inline .cover .no-cover svg,.organization-inline .cover .no-cover span,.organization-inline .cover .no-cover small{display:none}.organization-inline b,.organization-inline span,.organization-inline small{display:block}.organization-inline span,.organization-inline small{margin-top:2px;font-size:.75rem;color:var(--muted)}.toast button{margin-left:8px;color:#f1d489;text-decoration:underline}.sticky-submit{margin-top:12px}@media(max-width:800px){.reading-cockpit{margin:-4px -4px 0}.cockpit-hero{grid-template-columns:95px minmax(0,1fr);gap:17px;padding:18px;margin-bottom:14px}.cockpit-hero h1{font-size:1.55rem}.cockpit-hero p{font-size:.82rem;margin:4px 0}.cockpit-progress{margin-top:12px}.cockpit-capture{padding:18px 14px}.cockpit-capture h2{font-size:1.45rem}.cockpit-primary-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.cockpit-primary-actions .primary{min-height:46px}.cockpit-update{padding:17px}.cockpit-update .section-heading{display:block}.cockpit-update .section-heading .primary{width:100%;margin-top:10px}.cockpit-recent .journal-card{padding:16px}.modal-record,.modal-capture{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:calc(16px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom))}.modal-record .modal-head,.modal-capture .modal-head{position:sticky;top:0;z-index:5;margin:-8px -4px 15px;padding:8px 4px;background:var(--surface)}.modal-record .sticky-submit{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));z-index:4;margin:18px -18px calc(-18px - env(safe-area-inset-bottom));width:calc(100% + 36px);min-height:58px;border-radius:0;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.record-top{grid-template-columns:minmax(0,1fr) auto}.compact-fields{grid-template-columns:1fr 1fr}.relation-columns{max-height:none}.open-questions-home{margin:12px 0 0}.organization-inline{padding-left:12px}.continuous-entry{grid-template-columns:65px minmax(0,1fr);gap:10px}.continuous-notebook:before{left:36px}.continuous-marker b{font-size:.68rem}.home-reading-info>.primary{min-height:43px}.capture-primary{min-height:82px}}@media(max-width:430px){.cockpit-hero{grid-template-columns:82px minmax(0,1fr);padding:15px}.cockpit-hero h1{font-size:1.35rem}.cockpit-hero .eyebrow{font-size:.65rem}.compact-fields,.record-top{grid-template-columns:1fr}.favorite-button{justify-content:center}.continuous-entry{grid-template-columns:55px minmax(0,1fr)}.continuous-notebook:before{left:29px}.continuous-marker b{font-size:.62rem}.organization-inline>button{grid-template-columns:36px minmax(0,1fr) auto;padding-left:4px}.organization-inline .cover{width:34px}}.journal-card-tools{display:flex;align-items:center;gap:8px;min-width:0}.record-menu{position:relative}.record-menu summary{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;cursor:pointer;list-style:none}.record-menu summary::-webkit-details-marker{display:none}.record-menu summary:hover{background:#eee9df}.record-menu>div{position:absolute;z-index:8;right:0;top:38px;width:max-content;max-width:230px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:0 12px 28px #0002}.record-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;color:#973f2a;text-align:left}.record-delete{display:flex;margin:14px auto 0;color:#973f2a}.ocr-review textarea{min-height:260px;line-height:1.55}.ocr-review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ocr-review-actions .primary{margin-left:auto}.book-register-panel{display:none;margin:18px 0}.book-register-panel h2{margin:4px 0}.book-register-panel p{font-size:.82rem;color:var(--muted)}.book-register-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.book-register-actions button{flex:1 1 130px}.register-action{background:linear-gradient(#28463c,#18352b);border-color:#18352b}@media(max-width:800px){html,body,#root,.app,.workspace,.main{width:100%;max-width:100%;min-width:0}.main{overflow-x:clip;padding-bottom:calc(104px + env(safe-area-inset-bottom))}.main>*,form,fieldset,.form-grid,.choice-field,.organization-field,.inline-create,.book-detail,.detail-columns,.panel,.journal-grid,.journal-list,.work-notebook,.continuous-notebook,.continuous-entry,.journal-card,.record-form,.ocr-capture,.crop-editor,.cropped-preview{min-width:0;max-width:100%}dialog,dialog.wide,.modal-book{width:min(100vw,100%);max-width:100vw;margin:0;overflow-x:hidden}form input,form select,form textarea,form button,form a{max-width:100%;min-width:0}.tabs{max-width:100%;overflow-x:auto}.isbn-search{grid-template-columns:minmax(0,1fr) auto auto}.work-notebook{margin-left:0;margin-right:0;width:100%;overflow:hidden}.work-notebook>.section-heading{align-items:flex-start;flex-wrap:wrap}.work-notebook>.section-heading>div{min-width:0}.work-notebook h2,.work-notebook .eyebrow{overflow-wrap:anywhere}.notebook-actions{margin-left:auto;flex-shrink:0}.work-notebook-capture{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:7px;padding-bottom:0}.work-notebook-capture .outline{width:100%;min-width:0}.journal-filters{margin-left:0;margin-right:0;width:100%;padding:12px}.journal-filters>*,.journal-filters select,.journal-filters input{min-width:0;max-width:100%}.journal-period{position:static;width:100%;max-width:100%;box-shadow:none}.continuous-entry{max-width:100%}.continuous-entry>.journal-card{overflow-wrap:anywhere}.book-register-panel{display:block}.action-row{flex-wrap:wrap}.book-detail .action-row>button{flex:1 1 calc(50% - 8px)}.ocr-review-actions{display:grid;grid-template-columns:1fr 1fr}.ocr-review-actions .primary{grid-column:1/-1;margin-left:0}.bottom-nav{padding-bottom:env(safe-area-inset-bottom)}.footer{padding-bottom:calc(92px + env(safe-area-inset-bottom))}}@media(max-width:430px){.isbn-search{grid-template-columns:minmax(0,1fr) auto}.isbn-search .primary{grid-column:1/-1}.work-notebook-capture{grid-template-columns:repeat(2,minmax(0,1fr))}.notebook-actions{width:100%;justify-content:space-between;margin-left:0}.book-register-actions button{flex-basis:calc(50% - 8px)}.journal-card>header,.journal-card>footer{align-items:flex-start;flex-wrap:wrap}.ocr-review-actions{grid-template-columns:1fr}.ocr-review-actions .primary{grid-column:auto}.modal-record,.modal-capture,.modal-book{padding-left:16px;padding-right:16px}}.record-form .sticky-submit{display:flex;width:min(100%,360px);min-height:50px;margin:24px auto 0;justify-content:center;align-items:center}.record-reference{padding:15px 16px 1px;margin:2px 0 18px;background:#f3efe7;border:1px solid var(--line);border-radius:6px}.settings-top{color:#384650}.export-panel{display:flex;flex-direction:column;gap:12px}.export-panel>p{color:var(--muted);font-size:.9rem}.export-actions{display:flex;flex-wrap:wrap;gap:10px;margin:5px 0 2px}.reading-history{margin-top:20px;padding-top:19px;border-top:1px solid var(--line)}.reading-history-title{display:flex;align-items:flex-start;gap:11px;margin-bottom:14px}.reading-history-title svg{color:#8a7040;margin-top:2px}.reading-history-title h3{font:1.08rem var(--font-title)}.reading-history-title p,.reading-history-note{font-size:.78rem;color:var(--muted)}.reading-history-groups{display:grid;gap:9px}.reading-history details{border:1px solid var(--line);border-radius:6px;background:#f8f5ef;overflow:hidden}.reading-history summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 13px;cursor:pointer}.reading-history summary span{font-size:.85rem;font-weight:650}.reading-history ol{list-style:none;margin:0;padding:2px 14px 12px 31px;position:relative}.reading-history ol:before{content:"";position:absolute;left:18px;top:5px;bottom:18px;width:1px;background:#ccb98e}.reading-history li{display:grid;grid-template-columns:86px minmax(0,1fr);gap:13px;position:relative;padding:8px 0}.reading-history li:before{content:"";position:absolute;left:-17px;top:15px;width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 3px #f8f5ef}.reading-history time{font-size:.75rem;color:var(--muted)}.reading-history li b,.reading-history li span{display:block;font-size:.78rem}.reading-history li span{color:var(--muted);margin-top:2px}.reading-history details>.muted{display:flex;gap:7px;align-items:center;padding:4px 13px 13px;font-size:.78rem}.reading-history-note{margin-top:10px}.cockpit-update>.muted{margin-top:8px;font-size:.8rem}@media(max-width:800px){.modal-record .sticky-submit{position:static;bottom:auto;width:min(100%,360px);min-height:50px;margin:22px auto 0;border-radius:5px;padding:11px 16px}.settings-top{display:inline-flex}.export-actions{display:grid;grid-template-columns:1fr}.export-actions>a{width:100%}.reading-history li{grid-template-columns:78px minmax(0,1fr)}.record-reference{padding:13px 13px 1px}}.nowrap{white-space:nowrap}.book-details-disclosure{margin-top:20px;border:1px solid var(--line);border-radius:6px;background:#f8f5ef}.book-details-disclosure>summary{display:flex;align-items:center;min-height:44px;padding:11px 14px;cursor:pointer;font-weight:650}.book-details-disclosure[open]>summary{border-bottom:1px solid var(--line)}.book-details-disclosure .book-sheet-groups{margin:14px}.book-details-disclosure .complete-sheet{margin:0 14px 14px}.journal-filter-shell{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:10px;margin:0 0 22px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:7px}.journal-filter-shell .journal-search{position:relative;display:flex;flex-direction:row;align-items:center;gap:9px;margin:0;padding:0 12px;border:1px solid #d8d3ca;border-radius:5px;background:var(--surface)}.journal-filter-shell .journal-search svg{position:static;flex:0 0 auto}.journal-filter-shell .journal-search input{min-width:0;padding:9px 0;border:0;background:transparent;box-shadow:none}.journal-kind-chips{grid-column:1/-1;display:flex;gap:7px;overflow-x:auto;padding:1px 0 2px}.journal-kind-chips button{flex:0 0 auto;min-height:38px;padding:8px 12px;border:1px solid #d8d3ca;border-radius:999px;background:#fbf9f4;font-size:.8rem}.journal-kind-chips button.selected{background:#17231f;border-color:#17231f;color:#fff}.journal-filter-toggle{grid-column:2;grid-row:1;white-space:nowrap}.journal-filter-drawer{grid-column:1/-1;display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:4px}.journal-filter-drawer.is-open{display:grid}.journal-filter-drawer>select,.journal-filter-drawer>label,.journal-filter-drawer>details{margin:0;min-width:0}.journal-filter-drawer .checkbox{min-height:44px;align-items:center;padding:8px 4px}.journal-filter-drawer .checkbox input{margin:0}.journal-filter-drawer details{padding:9px 11px;border:1px solid var(--line);border-radius:5px}.journal-filter-drawer details>summary{cursor:pointer}.journal-period{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.journal-period label{margin:0}.sheet-handle{display:grid;place-items:center;width:100%;min-height:34px;margin:-12px 0 2px;touch-action:none}.sheet-handle span{display:block;width:44px;height:5px;border-radius:99px;background:#b8b4ad}.capture-choice h2{font:1.8rem/1.2 var(--font-title)}.capture-root{gap:12px}.capture-option{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:82px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fbf9f4;text-align:left}.capture-option.primary-choice{background:#17231f;border-color:#17231f;color:#fff}.capture-option svg{color:#b99449}.capture-option span{display:grid;gap:2px}.capture-option span>b{font-size:1rem}.capture-option small{color:inherit;opacity:.75}.capture-option>svg{width:25px;height:25px}.capture-option>b:last-child{font-size:1.5rem;font-weight:400}.capture-types{gap:10px}.capture-types .capture-back{width:max-content;min-height:44px}.capture-types .capture-kinds{margin-top:6px}.capture-relation-note{display:grid;gap:3px;margin-top:8px;padding:12px 14px;border-left:3px solid #b99449;background:#f3eee2;font-size:.8rem}.capture-relation-note span{color:var(--muted)}.cockpit-status{display:block;margin-bottom:7px;color:#e6d5ae;font-size:.8rem}.cockpit-hero .format-chip{background:#3b352a;border-color:#ae925a;color:#fff}@media(hover:hover){.capture-option:hover,.journal-kind-chips button:hover{transform:translateY(-1px);box-shadow:0 5px 15px #0001}.record-menu summary:hover{background:#eee9df}}@media(hover:none){.primary:hover{background:linear-gradient(#171d23,#0b1015)}.outline:hover{background:#fbf9f4}.icon-button:hover{background:transparent}.text-button:hover{text-decoration:none}}@media(max-width:800px){body:before{content:"";position:fixed;z-index:60;top:0;left:0;right:0;height:env(safe-area-inset-top);background:#fbf9f4}.cockpit-page .topbar{min-height:62px;padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:8px}.cockpit-page .topbar .search{display:none}.cockpit-page .mobile-brand{justify-content:flex-start}.cockpit-page .access-link{display:none}.bottom-nav.no-add{justify-content:space-evenly}.bottom-nav.no-add a{flex:1}.modal-capture{position:fixed;top:auto;bottom:0;width:100%;max-width:100%;height:auto;max-height:min(82dvh,700px);margin:0;padding:18px 18px calc(22px + env(safe-area-inset-bottom));border:0;border-radius:18px 18px 0 0;overflow-y:auto}.modal-capture::backdrop{background:#10131688}.modal-capture .sheet-handle{position:sticky;top:-18px;z-index:2;background:var(--surface)}.journal-heading{align-items:flex-start}.journal-heading>.primary{white-space:nowrap}.journal-filter-shell{grid-template-columns:minmax(0,1fr) auto;margin-bottom:16px;padding:10px}.journal-kind-chips{margin-right:-10px;padding-right:10px}.journal-filter-drawer{grid-template-columns:1fr}.journal-filter-drawer .checkbox{justify-content:flex-start}.journal-filter-drawer details{width:100%}.book-details-disclosure .book-sheet-groups{display:grid;grid-template-columns:1fr;margin:12px}.book-details-disclosure .complete-sheet{margin:0 12px 12px}.book-register-panel{display:none}.work-notebook{margin-top:18px}.work-notebook-capture{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.work-notebook-capture .outline:last-child{grid-column:1/-1}.cockpit-recent .section-heading>.text-button{white-space:nowrap}}@media(max-width:430px){.capture-choice h2{font-size:1.65rem}.capture-option{min-height:76px;padding:14px}.journal-filter-shell{margin-left:0;margin-right:0}.journal-filter-toggle{padding-left:11px;padding-right:11px}.journal-filter-toggle svg{display:none}}.settings-top.active{background:#1b2a25;color:#fff}.settings-export-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.export-card{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:15px}.export-card>svg{width:31px;height:31px;color:#8b713b;stroke-width:1.5}.export-card h2{margin:5px 0 8px}.export-card p{min-height:76px;margin:0 0 18px;color:var(--muted);font-size:.86rem}.export-card a{width:100%;white-space:nowrap}.backup-card{border-color:#b69b62;background:#fbf6e9}.backup-seal{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:4px 8px;border-radius:999px;background:#18352b;color:#fff;font-size:.72rem}.settings-secondary{margin-top:22px}.settings-secondary .panel:first-child{grid-row:span 2}@media(max-width:1100px){.settings-export-grid{grid-template-columns:1fr}.export-card p{min-height:0}}@media(max-width:800px){.settings-export-grid{grid-template-columns:1fr;gap:12px}.export-card{grid-template-columns:34px minmax(0,1fr);padding:19px}.export-card>svg{width:26px;height:26px}.settings-secondary{margin-top:14px}.settings-secondary .panel:first-child{grid-row:auto}}.library-filter-head{display:flex;align-items:center;gap:9px;margin-bottom:12px}.library-filter-head .library-sort{width:auto;max-width:190px}.library-filter-toggle{display:none}.library-filter-shell .filterbar{margin-bottom:28px}.reading-card>div{display:flex;min-width:0;flex-direction:column}.reading-card .quick-records{margin-top:9px}@media(min-width:801px){.editorial-banner{min-height:136px;max-height:136px}.banner-quote{padding:20px 32px;gap:15px}.banner-logo{width:72px;height:72px}.banner-quote-copy{gap:9px}.banner-quote p{font-size:1.45rem}.banner-date{padding:18px 25px}.banner-date i{margin:5px 0}.banner-date p{font-size:.9rem;line-height:1.35}.home-columns{align-items:stretch}.home-journal,.home-recent{height:100%}.home-recent .recent-covers{align-items:start}}@media(max-width:800px){.reading-grid{grid-template-columns:1fr}.reading-card{align-items:start}.reading-card>.cover-button{align-self:start}.reading-card .primary{order:5;width:100%;min-height:44px;margin-top:4px}.reading-card .quick-records{order:6;display:flex;flex-wrap:nowrap;gap:5px;overflow-x:auto;padding:2px 0 4px}.reading-card .quick-records .outline{flex:0 0 auto;min-height:36px;padding:7px 10px}.library-filter-head{align-items:center;margin-bottom:14px}.library-filter-head .library-sort{flex:1;max-width:none}.library-filter-toggle{display:inline-flex;white-space:nowrap}.library-filter-shell .filterbar{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:20px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:6px}.library-filter-shell .filterbar.is-open{display:grid}.library-filter-shell .filterbar>select{width:100%;max-width:100%;margin:0}.library-filter-head>.text-button{min-height:44px}.home-reading{display:grid;grid-template-columns:91px minmax(0,1fr);align-items:start;height:auto}.home-reading>.cover-button{width:91px}.home-reading-info{height:100%}}@media(max-width:520px){.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 11px}.book-card-info{padding-top:8px}.book-card h3{font-size:.82rem;line-height:1.3}.book-card p{font-size:.72rem}.book-meta,.reading-status{font-size:.68rem}.library-filter-shell .filterbar{grid-template-columns:1fr}.library-filter-head{flex-wrap:wrap}.library-filter-head .library-sort{flex:1 1 52%}.library-filter-head>.text-button{padding:8px}.reading-card{grid-template-columns:82px minmax(0,1fr);padding:16px;gap:15px}}.icon-button,.scan-top,.modal-head .icon-button{min-width:44px!important;min-height:44px!important}.back{min-height:44px;padding:10px 4px}.format-chip{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;min-height:30px;padding:5px 9px;border:1px solid #a68b54;border-radius:999px;background:#eee3c9;color:#3e321c;font-size:.8125rem;line-height:1.2}.format-chip b{font-weight:700;letter-spacing:.025em}.form-book small{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:5px;color:#4f5558;font-size:.8125rem}.form-book .format-chip{font-size:.8125rem}.form-section{margin:12px 0;border:1px solid var(--line);border-radius:6px;background:#f8f5ef}.form-section>summary{min-height:44px;padding:11px 14px;cursor:pointer;font-weight:650}.form-section[open]>summary{border-bottom:1px solid var(--line)}.form-section>.form-grid,.form-section>.choice-field,.form-section>label{margin:14px}.book-form-footer{position:sticky;z-index:6;bottom:-1px;margin:24px -4px -4px;padding:12px 4px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#fcfaf600,#fcfaf6 18%,#fcfaf6);align-items:flex-end}.book-form-footer>div{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.record-form textarea{resize:none}.record-location-fields>.optional-context{margin-top:0}.record-form-footer{position:sticky;z-index:7;bottom:var(--keyboard-offset,0px);display:flex;justify-content:center;gap:10px;margin:20px -4px -4px;padding:12px 4px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#fcfaf600,#fcfaf6 18%,#fcfaf6)}.record-form-footer .primary{flex:1;max-width:360px}.record-form-footer .outline{flex:0 0 auto}.record-form-spacer{height:10px}.book-detail-main{min-width:0}.book-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-top:10px}.book-title-row>div:first-child{min-width:0}.title-actions{justify-content:flex-end;max-width:610px;margin-top:0}.title-actions .register-action{background:#fbf9f4;color:#18352b;border-color:#8ca096}.book-sheet-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}.metadata-group{min-width:0;padding:15px;background:#f8f5ef;border:1px solid var(--line);border-radius:6px}.metadata-group h3{margin-bottom:10px}.metadata-group .metadata{grid-template-columns:1fr;margin:0}.complete-sheet{margin-top:12px;padding:10px 13px;border:1px dashed #c9b98f;border-radius:6px}.complete-sheet summary{min-height:32px;cursor:pointer;font-weight:600}.complete-sheet p{margin-top:8px;color:var(--muted);font-size:.85rem}@media(max-width:800px){.book-form-footer{bottom:calc(-18px - env(safe-area-inset-bottom));margin:22px -16px calc(-18px - env(safe-area-inset-bottom));padding:14px 16px calc(14px + env(safe-area-inset-bottom))}.book-form-footer>span{display:none}.book-form-footer>div{display:grid;grid-template-columns:1fr;width:100%}.book-form-footer button{width:100%}.record-form{padding-bottom:84px}.record-form-footer{position:fixed;left:16px;right:16px;bottom:var(--keyboard-offset,0px);margin:0;padding:10px 0 calc(10px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}.record-form-spacer{height:82px}.book-title-row{display:block}.title-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:15px}.title-actions .primary{grid-column:1/-1}.book-sheet-groups{grid-template-columns:1fr}.metadata-group{padding:13px}.format-chip{font-size:.8125rem}}.settings-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.settings-card-actions .text-button{flex-basis:100%;justify-content:flex-start}.catalog-pending{margin-top:22px}.catalog-pending>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.pending-card{display:flex;min-height:62px;flex-direction:column;align-items:flex-start;justify-content:center;padding:11px 13px;border:1px solid var(--line);border-radius:5px;background:var(--paper);text-align:left}.pending-card span{font-size:.78rem;color:var(--muted)}.pending-card b{font-size:1rem;margin-top:3px}.pending-card:hover{border-color:#b79a5d;background:#f7f1e4}.isbn-warning{margin:-8px 0 14px;color:#8b4a22;font-size:.8rem;line-height:1.45}.language-suggestion{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.authorship-choice{align-self:end;min-height:44px;margin:0 0 17px}@media(max-width:800px){.catalog-pending>div{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-card-actions{align-items:stretch}.settings-card-actions .primary,.settings-card-actions .outline{width:100%}}.progress-core-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}.progress-core-fields .chapter-field{grid-column:1/-1}.compact-date input{width:11.5rem;max-width:100%}.status-choice{margin:4px 0 18px;padding-top:14px}.status-choice legend{font-size:.875rem}.status-choice>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.status-choice button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;border:1px solid #d6d0c7;border-radius:5px;background:#fbf9f4;font-size:.8125rem}.status-choice button.selected{border-color:#17231f;background:#17231f;color:#fff}.chapter-completion{margin-top:14px;border:1px solid #d9ccb1;border-radius:7px;background:#f8f2e5}.chapter-completion>summary{display:flex;align-items:center;min-height:48px;padding:12px 14px;cursor:pointer;font-weight:650}.chapter-completion[open]>summary{border-bottom:1px solid #dfd2b9}.chapter-completion-body{padding:16px}.chapter-completion-body>.muted{margin-bottom:15px}.chapter-dates,.chapter-pages{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chapter-completion textarea{resize:none}.copy-chapter{width:100%;margin-top:2px}.chapter-completion-body>small{display:block;margin-top:8px}.reading-origin{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;margin-bottom:10px;padding:11px 13px;border:1px solid #d7c69f;border-radius:6px;background:#f3ead6}.reading-origin>span{font-size:.72rem;font-weight:700;color:#735d2e;text-transform:uppercase}.reading-origin b,.reading-origin time{display:block;font-size:.8rem}.reading-origin time{margin-top:2px;color:var(--muted)}.chapter-history{display:grid;gap:10px;padding:4px 13px 14px}.chapter-history h4{margin:6px 0 0;font-size:.78rem;letter-spacing:.04em;color:#665f57}.chapter-history article{padding:13px;border:1px solid #ded7c9;border-radius:6px;background:#fffdf8}.chapter-history article header{display:flex;justify-content:space-between;gap:12px}.chapter-history article header b,.chapter-history article header span{display:block}.chapter-history article header span{font-size:.74rem;color:var(--muted)}.chapter-history article>p{margin-top:11px;white-space:pre-wrap;font:1rem/1.55 var(--font-title)}.chapter-history article footer{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px}.chapter-history article footer .text-button{font-size:.75rem}.public-mode .reading-cockpit{width:100%;min-width:0}.public-mode .reading-cockpit>*{max-width:100%}@media(max-width:800px){.progress-core-fields{grid-template-columns:1fr 1fr}.progress-core-fields .compact-date{grid-column:1/-1}.progress-core-fields .compact-date input{width:10.75rem}.progress-core-fields .chapter-field{grid-column:1/-1}.chapter-history article header{display:grid}.chapter-history article footer{gap:10px 16px}.book-detail .metadata,.book-detail .action-row,.book-detail .notice{margin-left:0}.public-mode .cockpit-hero{width:100%;grid-template-columns:86px minmax(0,1fr)}.public-mode .cockpit-hero h1{overflow-wrap:anywhere}.public-mode .reading-history{width:100%;overflow:hidden}}@media(max-width:430px){.progress-core-fields{grid-template-columns:1fr}.progress-core-fields .compact-date,.progress-core-fields .chapter-field{grid-column:auto}.status-choice>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.status-choice button{padding:7px 4px;font-size:.72rem}.chapter-dates,.chapter-pages{grid-template-columns:1fr 1fr}.chapter-completion-body{padding:13px}.reading-history summary{align-items:flex-start;flex-direction:column}.reading-history li{grid-template-columns:72px minmax(0,1fr)}.reading-origin{grid-template-columns:58px minmax(0,1fr)}}.ocr-confidence{margin:0 0 12px;padding:10px 12px;border-radius:5px;background:#edf4ef;color:#315b43;font-size:.8rem}.ocr-confidence.is-low{background:#fff1d8;color:#7b5316}.chapter-inferred{display:grid;gap:3px;margin:2px 0 14px;padding:12px 14px;border-left:3px solid #aa8743;background:#f4ead3}.chapter-inferred span{font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;color:#6d665d}.chapter-ending{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chapter-correction{margin:3px 0 18px}.chapter-correction>summary{cursor:pointer;font-size:.8rem;color:#4f5b55}.chapter-questions{display:grid;gap:10px;margin-top:18px}.chapter-questions-title,.chapter-question-head,.chapter-content-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.chapter-questions-title small{display:block;margin-top:3px;color:var(--muted)}.chapter-question-editor{padding:13px;border:1px solid var(--line);border-radius:6px;background:#fffdf8}.chapter-question-editor details{margin-top:8px}.chapter-question-editor details>summary{cursor:pointer;font-size:.8rem;font-weight:600}.chapter-save{display:grid;justify-items:center;gap:6px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.chapter-save .primary{width:min(100%,420px);justify-content:center}.chapter-save small{color:var(--muted);text-align:center}.work-chapter-index{margin-bottom:28px}.chapter-shelves{display:grid;gap:13px}.chapter-shelf{overflow:hidden;border:1px solid #d8cdb8;border-radius:8px;background:#fffdf8}.chapter-shelf>header{padding:16px 17px 12px;background:#f4ecda}.chapter-shelf>header span{font-size:.68rem;font-weight:750;letter-spacing:.14em;color:#765f33}.chapter-shelf>header h4{margin:3px 0;font:1.35rem/1.2 var(--font-title)}.chapter-shelf>header small{color:var(--muted)}.chapter-shelf>nav{display:flex;gap:6px;overflow-x:auto;padding:10px 12px;border-bottom:1px solid var(--line)}.chapter-shelf>nav button{min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;white-space:nowrap;font-size:.75rem}.chapter-shelf>nav button.selected{background:#17231f;color:#fff;border-color:#17231f}.chapter-shelf-content{min-height:100px;padding:16px}.chapter-reading-text h5{margin:0;font-size:.78rem;letter-spacing:.04em;text-transform:uppercase}.chapter-reading-text p{margin-top:10px;white-space:pre-wrap;font:1.05rem/1.6 var(--font-title)}.chapter-linked-list,.chapter-question-list{display:grid;gap:10px}.chapter-linked-list article,.chapter-question-list article{padding:11px 12px;border-left:3px solid #b1914f;background:#f8f4eb}.chapter-linked-list p,.chapter-question-list p{margin:5px 0;white-space:pre-wrap}.chapter-question-list span{font-size:.68rem;font-weight:700;text-transform:uppercase;color:#77663c}.chapter-question-list blockquote{margin:8px 0;padding-left:10px;border-left:2px solid var(--line)}.chapter-shelf>footer{display:flex;flex-wrap:wrap;gap:14px;padding:0 16px 15px}.chapter-shelf>footer .text-button{font-size:.75rem}@media(max-width:430px){.chapter-ending{grid-template-columns:1fr 1fr}.chapter-questions-title{align-items:flex-start}.chapter-questions-title .outline{padding:8px}.chapter-shelf>nav{margin:0}.chapter-shelf-content{padding:14px}}.chapter-inferred{border:1px solid #d7c69f;border-radius:5px}.chapter-linked-list article,.chapter-question-list article{border:1px solid #ded7c9;border-radius:5px}.chapter-question-list blockquote{padding:10px;border-left:0;background:#fff;border-radius:4px}.notebook-index-nav{display:flex;gap:4px;margin:0 0 22px;border-bottom:1px solid var(--line)}.notebook-index-nav button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:10px 14px;border-bottom:2px solid transparent;color:var(--muted);font-weight:650}.notebook-index-nav button.selected{border-bottom-color:#9b7938;color:#17231f}.notebook-books-index,.notebook-types-index,.notebook-work-view,.notebook-kind-view{min-width:0}.notebook-book-search{display:flex;align-items:center;gap:10px;max-width:620px;margin-bottom:18px;padding:0 13px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.notebook-book-search:focus-within{border-color:#9b7938;box-shadow:0 0 0 3px #b9944924}.notebook-book-search input{min-width:0;border:0;background:transparent;box-shadow:none}.notebook-book-list,.notebook-type-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}.notebook-book-list>button,.notebook-type-list>button{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:13px;min-width:0;min-height:92px;padding:14px;border-bottom:1px solid var(--line);background:transparent;text-align:left}.notebook-book-list>button:nth-child(odd),.notebook-type-list>button:nth-child(odd){border-right:1px solid var(--line)}.notebook-book-list>button>div,.notebook-type-list>button>div{display:grid;min-width:0;gap:3px}.notebook-book-list b,.notebook-type-list b{overflow-wrap:anywhere;font:1.03rem/1.25 var(--font-title)}.notebook-book-list span,.notebook-book-list small,.notebook-type-list span{overflow:hidden;color:var(--muted);font-size:.76rem;text-overflow:ellipsis;white-space:nowrap}.notebook-book-list .cover{width:42px;max-height:63px}.notebook-type-list>button{grid-template-columns:32px minmax(0,1fr) auto;min-height:76px}.notebook-type-list>button>svg:first-child{color:#8b713b}.notebook-work-heading{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:16px;margin:12px 0 26px;padding-bottom:20px;border-bottom:1px solid var(--line)}.notebook-work-heading>div{min-width:0}.notebook-work-heading h2{overflow-wrap:anywhere;font:2rem/1.08 var(--font-title)}.notebook-work-heading p{margin:4px 0;color:var(--muted)}.notebook-work-heading .cover{width:64px}.notebook-work-notes{margin-top:28px}.notebook-kind-heading{display:flex;align-items:center;gap:12px;margin:12px 0 22px}.notebook-kind-heading>svg{color:#8b713b}.notebook-kind-heading h2{font:2rem/1 var(--font-title)}.notebook-empty{margin-top:12px}.work-chapter-index .reading-history-title{margin-bottom:12px}.chapter-shelf>nav button{display:inline-flex;align-items:center;gap:6px}.completed-chapter-name{display:block;margin-bottom:13px}.chapter-dialogue-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.chapter-dialogue-actions button{justify-content:center;min-height:44px}.chapter-dialogue-note{display:block;margin-top:7px;color:var(--muted);line-height:1.45}@media(max-width:800px){.notebook-index-nav{position:sticky;z-index:3;top:calc(env(safe-area-inset-top) + 62px);overflow-x:auto;background:var(--paper)}.notebook-index-nav button{flex:1;justify-content:center;white-space:nowrap}.notebook-book-list,.notebook-type-list{grid-template-columns:1fr}.notebook-book-list>button:nth-child(odd),.notebook-type-list>button:nth-child(odd){border-right:0}.notebook-work-heading{grid-template-columns:60px minmax(0,1fr);align-items:start}.notebook-work-heading .cover{width:54px}.notebook-work-heading h2{font-size:1.55rem}.notebook-work-heading>.outline{grid-column:1/-1;width:100%}.notebook-work-notes .journal-grid,.chapter-dialogue-actions{grid-template-columns:1fr}.chapter-shelf>footer{gap:8px}.chapter-shelf>footer .text-button{min-height:44px}}@media(max-width:430px){.notebook-index-nav{margin-left:-4px;margin-right:-4px}.notebook-index-nav button{padding:9px 10px;font-size:.77rem}.notebook-book-list>button{grid-template-columns:46px minmax(0,1fr) auto;padding:12px 4px;gap:10px}.notebook-book-list .cover{width:38px}.notebook-work-heading{grid-template-columns:50px minmax(0,1fr);gap:12px}.notebook-work-heading .cover{width:46px}.chapter-shelf>nav button{min-height:40px}}.brand-logo{border-radius:22%}.chapter-shelf>header{padding:0}.chapter-shelf-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:76px;padding:15px 17px;text-align:left}.chapter-shelf-toggle>div{min-width:0}.chapter-shelf-toggle>svg{color:#806631;transition:transform .2s ease}.chapter-shelf.is-open .chapter-shelf-toggle>svg{transform:rotate(180deg)}.chapter-shelf.is-collapsed .chapter-shelf-toggle:hover{background:#efe4cd}.journal-card blockquote,.journal-card.compact blockquote{font-family:inherit;font-size:1rem;font-weight:400;line-height:1.65}.reading-history li.chapter-start:before{background:#466b8d}.reading-history li.chapter-complete:before{background:#8c6a28;box-shadow:0 0 0 3px #f8f5ef,0 0 0 5px #d8c28f}.reading-history li.chapter-complete b{color:#73571f}.reading-history li.chapter-complete span{color:#5d5a52}@media(max-width:800px){.chapter-shelf-toggle{min-height:72px;padding:14px}.reading-card{min-height:0}.reading-card>div{align-self:stretch}.reading-card .primary{margin-top:12px}}
