:root{--paper:#f4f1e9;--paper-deep:#ece7da;--card:#fffdf7;--ink:#1e2621;--ink-soft:#5b645d;--ink-mute:#8d938c;--line:#1e26211a;--line-strong:#1e26212e;--green:#1f5c4a;--green-bright:#2d7a61;--rust:#b4552d;--topbar:#12211c;--font-body:-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--font-serif:"Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", "Noto Serif CJK SC", serif}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:var(--font-body);color:var(--ink);background-color:var(--paper);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;background-image:radial-gradient(1100px 560px at 12% -12%,#1f5c4a13,#0000 62%),radial-gradient(900px 480px at 94% -4%,#b4552d0e,#0000 58%);background-attachment:fixed}body.is-reading{overflow:hidden}::selection{background:#2d7a6138}button{font-family:inherit}button:focus-visible{outline:2px solid var(--green-bright);outline-offset:3px}.shelf-shell{min-height:100vh}.shelf-shell.is-hidden{display:none}.shelf-page{flex-direction:column;min-height:100vh;display:flex}.shelf-topbar{z-index:15;background:color-mix(in srgb, var(--paper) 84%, transparent);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;height:72px;padding:0 clamp(20px,4vw,44px);display:flex;position:sticky;top:0}.brand{align-items:center;gap:11px;min-width:0;display:flex}.brand-mark{background:linear-gradient(145deg, #2a715b, var(--green) 65%);color:#f7f2e2;width:37px;height:37px;font-family:var(--font-serif);border-radius:10px;flex:none;place-items:center;font-size:19px;display:grid;box-shadow:inset 0 1px #ffffff38,0 6px 14px -8px #122d24e6}.brand-name{font-family:var(--font-serif);letter-spacing:.06em;font-size:20px;font-weight:700}.brand-sub{letter-spacing:.16em;text-transform:uppercase;color:var(--ink-mute);border-left:1px solid var(--line-strong);margin-left:2px;padding-left:12px;font-size:10.5px}.topbar-actions{align-items:center;gap:10px;display:flex}.local-chip{color:#2b6a54;white-space:nowrap;background:#2d7a6112;border:1px solid #2d7a6129;border-radius:999px;align-items:center;gap:7px;margin-right:4px;padding:6px 11px;font-size:11.5px;display:inline-flex}.local-chip i{background:#3f9c78;border-radius:50%;width:6px;height:6px;box-shadow:0 0 0 3px #3f9c7829}.button{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:10px 17px;font-size:13px;font-weight:600;line-height:1;transition:transform .16s,background .16s,border-color .16s,box-shadow .16s;display:inline-flex}.button.small{gap:6px;padding:7px 13px;font-size:12px}.button.primary{background:var(--green);border-color:var(--green);color:#f7f2e4;box-shadow:0 8px 18px -10px #143c30e6}.button.primary:hover:not(:disabled){background:#174b3c;transform:translateY(-1px);box-shadow:0 12px 22px -10px #143c30f2}.button.ghost{border-color:var(--line-strong);color:var(--ink);background:0 0}.button.ghost:hover:not(:disabled){background:#fff9;border-color:#1e262147}.button:disabled{opacity:.55;cursor:default}.shelf-main{flex:1;width:100%;max-width:1240px;margin:0 auto;padding:0 clamp(20px,4vw,44px) 64px}.shelf-hero{justify-content:space-between;align-items:flex-end;gap:40px;padding:52px 0 38px;display:flex}.eyebrow{letter-spacing:.3em;color:#4b7f6b;margin:0 0 12px;font-size:10.5px;font-weight:600}.shelf-hero h1{font-family:var(--font-serif);letter-spacing:-.025em;margin:0 0 14px;font-size:clamp(38px,4.4vw,54px);font-weight:600;line-height:1.04}.hero-sub{color:var(--ink-soft);margin:0;font-size:14px;line-height:1.8}.shelf-stats{align-items:flex-start;padding-bottom:4px;display:flex}.stat{text-align:right;padding-left:26px}.stat+.stat{border-left:1px solid var(--line-strong);margin-left:26px}.stat strong{font-family:var(--font-serif);letter-spacing:-.02em;font-size:34px;font-weight:600;line-height:1;display:block}.stat span{letter-spacing:.12em;color:var(--ink-mute);margin-top:8px;font-size:10.5px;display:block}.book-grid{grid-template-columns:repeat(auto-fill,minmax(176px,1fr));align-items:start;gap:36px 24px;display:grid}.book-card{-webkit-user-select:none;user-select:none;flex-direction:column;gap:12px;min-width:0;display:flex;position:relative}.cover-button{cursor:pointer;background:0 0;border:0;border-radius:6px 12px 12px 6px;width:100%;padding:0;display:block}.cover{aspect-ratio:2/3;background:var(--paper-deep);isolation:isolate;border-radius:4px 10px 10px 4px;width:100%;transition:transform .28s cubic-bezier(.22,.68,.32,1),box-shadow .28s;position:relative;overflow:hidden;box-shadow:inset 0 1px #ffffff80,0 16px 28px -18px #1a221da6,0 2px 5px #1a221d1f}.cover:before{content:"";z-index:3;pointer-events:none;background:linear-gradient(90deg,#0a0e0b52,#ffffff17 58%,#0000);width:10px;position:absolute;inset:0 auto 0 0}.cover:after{content:"";z-index:3;opacity:.9;pointer-events:none;background:repeating-linear-gradient(#fbf7ec 0 2px,#dcd5c3 2px 3px);width:4px;position:absolute;inset:0 0 0 auto}.book-card:hover .cover{transform:translateY(-6px)rotate(-.35deg);box-shadow:inset 0 1px #ffffff80,0 28px 40px -22px #1a221d99,0 4px 10px #1a221d24}.cover-image{object-fit:cover;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%;display:block}.cover-fallback{color:var(--cover-ink,#f1ead7);background:radial-gradient(120% 80% at 20% 0%, #ffffff21, transparent 55%), linear-gradient(150deg, var(--cover-a,#2c5a49), var(--cover-b,#14251f) 72%);flex-direction:column;padding:22px 18px 16px 22px;display:flex;position:absolute;inset:0}.cover-frame{pointer-events:none;border:1px solid #ffffff29;border-radius:2px 7px 7px 2px;position:absolute;inset:10px}.cover-fallback-text{font-family:var(--font-serif);letter-spacing:.01em;-webkit-line-clamp:5;text-shadow:0 1px 3px #00000040;-webkit-box-orient:vertical;margin-top:16px;font-size:17px;line-height:1.5;display:-webkit-box;overflow:hidden}.cover-fallback-mark{letter-spacing:.32em;opacity:.5;margin-top:auto;font-size:9px}.cover-top{z-index:5;flex-wrap:wrap;gap:5px;display:flex;position:absolute;top:9px;left:15px;right:12px}.cover-badge{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:999px;align-items:center;gap:4px;padding:3px 7px;font-size:10px;font-weight:600;line-height:1.35;display:inline-flex}.cover-badge.note{color:#97501f;background:#fffaefeb;box-shadow:0 2px 6px #00000024}.cover-badge.warn{color:#ffefe5;background:#963c20e6}.cover-shine{z-index:2;opacity:.65;pointer-events:none;background:linear-gradient(#ffffff29,#0000 85%);height:48%;transition:opacity .3s;position:absolute;top:0;left:10px;right:4px}.book-card:hover .cover-shine{opacity:.95}.cover-hover{z-index:6;color:#f8f3e6;letter-spacing:.02em;opacity:0;background:linear-gradient(#0000,#0a120ed1);padding:38px 15px 20px;font-size:12px;font-weight:600;transition:opacity .22s,transform .22s;position:absolute;bottom:0;left:0;right:0;transform:translateY(7px)}.book-card:hover .cover-hover,.cover-button:focus-visible .cover-hover{opacity:1;transform:translateY(0)}.cover-progress{z-index:7;background:#ffffff4d;border-radius:3px;height:3px;position:absolute;bottom:10px;left:15px;right:13px;overflow:hidden;box-shadow:0 1px 2px #0003}.cover-progress i{background:linear-gradient(90deg,#7fc3a4,#c9e3b8);height:100%;display:block}.cover-pending{z-index:2;justify-content:center;align-items:flex-end;padding-bottom:14px;display:flex;position:absolute;inset:0;overflow:hidden}.shimmer{background:linear-gradient(105deg,#0000 30%,#ffffff38 46%,#0000 62%) 0 0/240% 100%;animation:1.9s linear infinite shimmer;position:absolute;inset:0}.cover-pending-text{z-index:1;color:#ffffffd1;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);white-space:nowrap;background:#0d16128c;border:1px solid #ffffff1f;border-radius:999px;padding:4px 9px;font-size:10.5px;position:relative}@keyframes shimmer{0%{background-position:180% 0}to{background-position:-120% 0}}.card-tools{z-index:20;opacity:0;gap:6px;transition:opacity .16s,transform .16s;display:flex;position:absolute;top:9px;right:11px;transform:scale(.92)}.book-card:hover .card-tools,.card-tools:focus-within{opacity:1;transform:none}.card-tools:has(.card-menu){opacity:1;transform:none}.card-tool{color:#f2ebdb;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0e1713b8;border:1px solid #ffffff29;border-radius:50%;place-items:center;width:29px;height:29px;transition:background .16s,border-color .16s;display:grid}.card-tool:hover,.card-tool.is-active{background:#2d7a61eb;border-color:#ffffff47}.card-delete:hover{background:var(--rust);border-color:var(--rust)}.card-menu{z-index:30;border:1px solid var(--line-strong);background:var(--card);border-radius:11px;flex-direction:column;gap:1px;min-width:176px;max-width:240px;max-height:280px;padding:6px;display:flex;position:absolute;top:36px;right:0;overflow-y:auto;box-shadow:0 22px 44px -20px #1a221d8c,0 3px 10px #1a221d1f}.menu-label{letter-spacing:.12em;text-transform:uppercase;color:var(--ink-mute);padding:5px 9px 4px;font-size:10px}.menu-item{width:100%;color:var(--ink);text-align:left;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:7px;align-items:center;gap:8px;padding:7px 9px;font-size:12.5px;display:flex}.menu-item svg{color:var(--ink-mute);flex:none}.menu-item span{text-overflow:ellipsis;overflow:hidden}.menu-item:hover{background:#2d7a6114}.menu-item.is-current{color:var(--green);font-weight:600}.menu-item.is-current svg{color:var(--green)}.menu-item.danger,.menu-item.danger svg{color:var(--rust)}.menu-item.danger:hover{background:#b4552d14}.menu-check{color:var(--green);margin-left:auto;font-style:normal}.menu-sep{background:var(--line);height:1px;margin:4px 6px}.book-meta{min-width:0;padding:0 2px}.book-title{letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;margin:0 0 3px;font-size:14.5px;font-weight:650;line-height:1.4;overflow:hidden}.book-sub{color:var(--ink-mute);white-space:nowrap;text-overflow:ellipsis;margin:0 0 8px;font-size:11.5px;overflow:hidden}.book-sub .dot{opacity:.7;margin:0 5px}.book-foot{flex-wrap:wrap;align-items:center;gap:6px;font-size:10px;display:flex}.cache-tag,.read-tag,.muted-tag{border-radius:999px;align-items:center;gap:4px;padding:2.5px 7px;line-height:1.3;display:inline-flex}.cache-tag{color:#2b6a54;background:#2d7a6114;border:1px solid #2d7a6126}.cache-tag i{background:#3f9c78;border-radius:50%;width:5px;height:5px}.read-tag{color:#9b5a2c;background:#b4552d12}.muted-tag{color:#9b968a;padding-left:0}.import-tile{aspect-ratio:2/3;color:#53655c;cursor:pointer;background:#fffdf766;border:1.5px dashed #1f5c4a42;border-radius:6px 12px 12px 6px;flex-direction:column;justify-content:center;align-items:center;gap:7px;font-size:13px;font-weight:600;transition:transform .2s,background .2s,border-color .2s;display:flex}.import-tile:hover:not(:disabled){background:#1f5c4a0d;border-color:#1f5c4a80;transform:translateY(-4px)}.import-tile:disabled{opacity:.6;cursor:default}.import-plus{font-family:var(--font-serif);color:var(--green);font-size:30px;font-weight:300;line-height:1}.import-tile small{color:var(--ink-mute);font-size:10.5px;font-weight:400}.shelf-toolbar{justify-content:space-between;align-items:center;gap:16px;margin:2px 0 24px;display:flex}.toolbar-hint{color:var(--ink-mute);letter-spacing:.02em;font-size:11.5px}.shelf-group{border-radius:18px;margin:0 -14px 36px;padding:0 14px 18px;transition:background .18s,box-shadow .18s}.shelf-group.is-drop-target{background:#2d7a6112;box-shadow:inset 0 0 0 1.5px #2d7a6152}.shelf-group.is-ungrouped{margin-top:8px}.group-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;padding:8px 2px 13px;display:flex;position:relative}.group-title{min-width:0;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;margin:-4px 0 -4px -4px;padding:4px 10px 4px 4px;transition:background .15s;display:flex}.group-title:hover{background:#1e26210d}.group-title:focus-visible{outline-offset:2px;outline:2px solid #2d7a6173}.group-chevron{color:var(--ink-mute);flex:none;transition:transform .18s;display:inline-flex}.shelf-group.is-collapsed .group-chevron{transform:rotate(-90deg)}.shelf-group.is-collapsed{margin-bottom:14px;padding-bottom:0}.shelf-group.is-collapsed .group-head{border-bottom-color:#0000;margin-bottom:0}.group-icon{width:28px;height:28px;color:var(--green);background:#1f5c4a17;border-radius:8px;flex:none;place-items:center;display:grid}.is-ungrouped .group-icon{color:var(--ink-soft);background:#1e26210f}.group-name{font-family:var(--font-serif);letter-spacing:.02em;white-space:nowrap;text-overflow:ellipsis;font-size:17px;font-weight:600;overflow:hidden}.group-count{color:var(--ink-mute);white-space:nowrap;background:#1e26210d;border-radius:999px;flex:none;padding:3px 8px;font-size:10.5px}.group-menu-button{width:30px;height:30px;color:var(--ink-mute);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:50%;flex:none;place-items:center;transition:background .15s,color .15s;display:grid}.group-menu-button:hover,.group-menu-button.is-active{color:var(--ink);background:#1e26210f}.group-menu{top:42px;right:0}.group-empty{color:var(--ink-mute);text-align:center;background:#fffdf759;border:1.5px dashed #1f5c4a38;border-radius:12px;padding:30px 20px;font-size:12.5px}.group-backdrop{z-index:60;-webkit-backdrop-filter:blur(4px);background:#0e171373;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.group-dialog{border:1px solid var(--line-strong);background:var(--card);border-radius:16px;flex-direction:column;gap:16px;width:min(410px,100%);padding:22px;display:flex;box-shadow:0 30px 60px -24px #14201a8c}.group-dialog header{align-items:flex-start;gap:12px;display:flex}.group-dialog-icon{width:34px;height:34px;color:var(--green);background:#1f5c4a17;border-radius:9px;flex:none;place-items:center;display:grid}.group-dialog header strong{font-size:15px;display:block}.group-dialog header p{color:var(--ink-mute);margin:4px 0 0;font-size:11.5px;line-height:1.55}.group-dialog input{border:1px solid var(--line-strong);width:100%;color:var(--ink);background:#fffdf8;border-radius:10px;outline:none;padding:11px 13px;font-size:13px;transition:border-color .15s,box-shadow .15s}.group-dialog input:focus{border-color:#1f5c4a80;box-shadow:0 0 0 3px #1f5c4a1a}.group-dialog-actions{justify-content:flex-end;gap:10px;display:flex}.empty-state{text-align:center;background:#fffdf78c;border:1px dashed #1f5c4a38;border-radius:24px;margin:8px 0 24px;padding:clamp(48px,7vw,80px) 24px 56px;box-shadow:inset 0 1px #ffffffb3}.empty-art{justify-content:center;align-items:flex-end;gap:7px;width:196px;height:118px;margin:10px auto 18px;display:flex;position:relative}.empty-icon{color:var(--green);background:var(--paper);border-radius:50%;padding:6px;position:absolute;top:-30px;left:50%;transform:translate(-50%);box-shadow:0 6px 18px -8px #1a221d80}.empty-book{border-radius:3px 6px 6px 3px;width:42px;display:block;box-shadow:inset 1px 0 #ffffff2e,0 10px 18px -10px #1a221d99}.empty-book.b1{background:#2b6a56;height:88px;transform:rotate(-7deg)translateY(2px)}.empty-book.b2{background:linear-gradient(160deg,#c26940,#a24a26);width:46px;height:108px}.empty-book.b3{background:linear-gradient(160deg,#4d6570,#364a53);height:96px}.empty-book.b4{background:linear-gradient(160deg,#cdbb92,#b6a176);height:76px;transform:rotate(6deg)translateY(3px)}.empty-state h2{font-family:var(--font-serif);letter-spacing:-.015em;margin:0 0 10px;font-size:30px;font-weight:600}.empty-state p{color:var(--ink-soft);margin:0;font-size:13.5px;line-height:1.9}.empty-actions{flex-wrap:wrap;justify-content:center;gap:12px;margin-top:26px;display:flex}.empty-hint{color:#9a9486;margin-top:20px;font-size:11.5px;display:block}.shelf-footer{border-top:1px solid var(--line);color:#8d897c;letter-spacing:.01em;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;margin-top:52px;padding-top:18px;font-size:11px;display:flex}.shelf-footer strong{color:#59645d;margin-right:6px;font-weight:600}.drop-veil{z-index:90;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#101f1973;place-items:center;padding:32px;animation:.16s fade-in;display:grid;position:fixed;inset:0}.drop-card{color:#f7f1e2;text-align:center;background:#ffffff0e;border:2px dashed #f7f2e68c;border-radius:26px;flex-direction:column;align-items:center;gap:9px;padding:58px clamp(40px,9vw,96px);display:flex}.drop-card strong{font-family:var(--font-serif);font-size:23px;font-weight:600}.drop-card span{opacity:.72;font-size:12.5px}.viewer-shell{z-index:40;background:#0f1714;position:fixed;inset:0}.viewer-shell.is-parked{width:1200px;height:900px;inset:0 auto auto -14000px}.viewer-host{position:absolute;inset:0}.viewer-shell.is-active .viewer-host{top:56px}.reader-bar{z-index:20;background:var(--topbar);color:#f2eddf;border-bottom:1px solid #ffffff12;align-items:center;gap:16px;height:56px;padding:0 14px 0 10px;display:flex;position:absolute;top:0;left:0;right:0}.reader-back{color:inherit;cursor:pointer;background:#ffffff0e;border:1px solid #ffffff1c;border-radius:999px;flex:none;align-items:center;gap:7px;padding:7px 13px 7px 10px;font-size:12.5px;font-weight:600;transition:background .16s,border-color .16s;display:inline-flex}.reader-back:hover{background:#ffffff1f;border-color:#fff3}.reader-book{flex:1;align-items:center;gap:9px;min-width:0;display:flex}.reader-book-icon{color:#cbe1d6;background:#ffffff13;border-radius:8px;flex:none;place-items:center;width:28px;height:28px;display:grid}.reader-book-text{flex-direction:column;min-width:0;line-height:1.25;display:flex}.reader-book-text strong{letter-spacing:.005em;white-space:nowrap;text-overflow:ellipsis;max-width:42vw;font-size:13.5px;font-weight:600;overflow:hidden}.reader-book-text span{letter-spacing:.05em;color:#f2eddf73;font-size:10px}.reader-meta{flex:none;align-items:center;gap:8px;display:flex}.reader-pill{font-variant-numeric:tabular-nums;color:#f2eddfdb;background:#fff1;border:1px solid #ffffff13;border-radius:999px;align-items:center;gap:5px;padding:4px 9px;font-size:11.5px;display:inline-flex}.reader-pill i{opacity:.35;font-style:normal}.reader-save{color:#f2eddf85;white-space:nowrap;align-items:center;gap:6px;min-width:76px;font-size:11px;display:inline-flex}.reader-save i{background:#6c7b73;border-radius:50%;width:6px;height:6px}.reader-save.saving i{background:#e0a75a;animation:1.1s infinite pulse}.reader-save.saved{color:#a9d7c2}.reader-save.saved i{background:#6fc29a;box-shadow:0 0 0 3px #6fc29a24}.reader-progress{background:#ffffff12;height:2px;position:absolute;bottom:0;left:0;right:0}.reader-progress i{background:linear-gradient(90deg,#4c9a7a,#a8cf9a);height:100%;transition:width .35s;display:block}.reader-loading{z-index:30;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);background:#0d1612db;place-items:center;animation:.2s fade-in;display:grid;position:absolute;inset:56px 0 0}.loading-card{text-align:center;color:#f2eddf;flex-direction:column;align-items:center;gap:10px;padding:24px;display:flex}.loading-card strong{font-family:var(--font-serif);letter-spacing:.01em;font-size:21px;font-weight:600}.loading-card p{color:#f2eddf94;max-width:340px;margin:0;font-size:12.5px;line-height:1.7}.ring{border:2px solid #ffffff24;border-top-color:#8fc9ad;border-radius:50%;width:34px;height:34px;margin-bottom:4px;animation:.9s linear infinite spin}.toast{z-index:100;color:#f5f0e3;text-align:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#12211cf0;border:1px solid #ffffff1a;border-radius:999px;max-width:min(90vw,520px);padding:11px 19px;font-size:12.5px;line-height:1.5;animation:.24s cubic-bezier(.2,.8,.3,1) toast-in;position:fixed;bottom:26px;left:50%;transform:translate(-50%);box-shadow:0 14px 34px #0a140f52}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.35}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%)}}@media (max-width:900px){.shelf-hero{align-items:flex-start;gap:26px}.hero-break{display:none}.book-grid{grid-template-columns:repeat(auto-fill,minmax(152px,1fr));gap:30px 18px}}@media (max-width:760px){.brand-sub,.local-chip{display:none}.shelf-hero{flex-direction:column;padding:38px 0 30px}.shelf-stats{padding-bottom:0}.stat{text-align:left;padding-left:0}.stat+.stat{margin-left:22px;padding-left:22px}.stat strong{font-size:28px}.shelf-footer{flex-direction:column}.reader-save{display:none}}@media (max-width:560px){.shelf-topbar{gap:10px;height:64px}.brand-name{font-size:18px}.brand-mark{width:33px;height:33px;font-size:17px}.button{padding:9px 13px;font-size:12px}.topbar-actions{gap:7px}.topbar-actions .button.ghost{padding:9px 11px}.book-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:26px 14px}.book-title{font-size:13.5px}.reader-back span{display:none}.reader-back{padding:7px 9px}.reader-bar{gap:8px;padding-right:9px}.reader-book-text span{display:none}.reader-book-text strong{max-width:34vw}.reader-pill{padding:4px 7px;font-size:10.5px}}@media (hover:none){.delete-button{opacity:1;background:#0e17138c;transform:none}.cover-hover{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}.local-chip.is-online{color:#24594a;background:#2d7a611a;border-color:#2d7a6138}.book-card.is-remote .cover{filter:saturate(.55)brightness(.98)}.book-card.is-remote .cover-fallback-text{color:#1e26219e}.cover-badge.remote{color:#f0e9d8;background:#18211cd1}.cache-tag.remote{color:var(--rust)}.cache-tag.remote i{background:var(--rust);box-shadow:0 0 0 3px #b4552d24}.sync-backdrop{z-index:90;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0e16126b;justify-content:center;align-items:center;padding:20px;animation:.16s ease-out sync-fade;display:flex;position:fixed;inset:0}@keyframes sync-fade{0%{opacity:0}to{opacity:1}}.sync-dialog{background:var(--card);border:1px solid var(--line-strong);border-radius:18px;width:min(520px,100%);max-height:min(86vh,640px);overflow:auto;box-shadow:0 30px 60px -30px #121c178c,0 2px 6px #121c1714}.sync-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 14px;display:flex}.sync-title{align-items:flex-start;gap:11px;display:flex}.sync-title-icon{color:#f3efe2;background:linear-gradient(150deg, var(--green-bright), var(--green));border-radius:10px;flex:none;place-items:center;width:32px;height:32px;display:grid}.sync-title strong{letter-spacing:.02em;font-size:15px;display:block}.sync-title p{color:var(--ink-mute);margin:3px 0 0;font-size:11.5px;line-height:1.5}.sync-close{color:var(--ink-mute);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:9px;flex:none;place-items:center;width:30px;height:30px;display:grid}.sync-close:hover{background:var(--paper-deep);color:var(--ink)}.sync-body{flex-direction:column;gap:16px;padding:18px 20px 20px;display:flex}.sync-intro p{color:var(--ink-soft);margin:0;font-size:12.5px;line-height:1.7}.sync-create-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.sync-or{color:var(--ink-mute);font-size:11.5px}.sync-join{flex:240px;gap:8px;min-width:0;display:flex}.sync-join input{border:1px solid var(--line-strong);letter-spacing:.12em;min-width:0;color:var(--ink);background:#fffef9;border-radius:999px;outline:none;flex:1;padding:10px 15px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.sync-join input:focus{border-color:#2d7a618c;box-shadow:0 0 0 3px #2d7a611f}.sync-note{color:var(--ink-mute);margin:0;font-size:11px;line-height:1.6}.sync-code-block{background:var(--paper-deep);border:1px dashed #1f5c4a47;border-radius:14px;gap:6px;padding:14px 16px;display:grid}.sync-label{letter-spacing:.16em;text-transform:uppercase;color:var(--ink-mute);font-size:10.5px}.sync-code{text-align:left;cursor:copy;letter-spacing:.16em;color:var(--green);background:0 0;border:0;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:19px;font-weight:600}.sync-hint{color:var(--ink-mute);font-size:11px}.sync-toggle{color:var(--ink);cursor:pointer;align-items:flex-start;gap:10px;font-size:12.5px;display:flex}.sync-toggle input{accent-color:var(--green-bright);margin-top:2px}.sync-toggle em{color:var(--ink-mute);margin-top:3px;font-size:11px;font-style:normal;line-height:1.5;display:block}.sync-status-row{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding-top:4px;display:flex}.sync-status{color:var(--ink-soft);align-items:center;gap:7px;font-size:11.5px;display:inline-flex}.sync-status i{background:var(--ink-mute);border-radius:50%;width:7px;height:7px}.sync-status i.ok{background:#3f9c78;box-shadow:0 0 0 3px #3f9c7829}.sync-status i.bad{background:var(--rust);box-shadow:0 0 0 3px #b4552d29}.sync-status i.off{background:#c3c6c0}.sync-signout{color:var(--ink-mute);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0;font-size:11.5px;text-decoration:underline}.sync-signout:hover{color:var(--rust)}.sync-notice{color:var(--green);background:#2d7a6114;border:1px solid #2d7a6129;border-radius:10px;margin:0;padding:9px 12px;font-size:12px;line-height:1.6}.sync-error{color:#8e3d1d;background:#b4552d14;border:1px solid #b4552d33;border-radius:10px;margin:0;padding:9px 12px;font-size:12px;line-height:1.6}.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}@media (max-width:640px){.sync-dialog{border-radius:16px}.sync-create-row{flex-direction:column;align-items:stretch}.sync-or{text-align:center}.sync-code{letter-spacing:.1em;font-size:16px}.shelf-toolbar{flex-wrap:wrap;gap:10px}.shelf-group{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.group-head{padding-top:4px}.card-menu{min-width:160px}}
