:root{--bg:#0b1120;--surface:#131c31;--surface-2:#1b2540;--border:#263352;--text:#e8edf9;--text-dim:#94a3c4;--accent:#f472b6;--accent-2:#38bdf8;--ok:#34d399;--warn:#fbbf24;--violet:#a78bfa;--radius:14px;--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:var(--bg);color:var(--text);overscroll-behavior-y:none;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}body{min-height:100dvh}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0}img{max-width:100%;display:block}a{color:var(--accent-2)}.app{max-width:780px;padding:0 16px calc(96px + var(--safe-bottom));margin:0 auto}.topbar{z-index:20;background:linear-gradient(var(--bg) 72%, transparent);align-items:center;gap:12px;padding:14px 0 12px;display:flex;position:sticky;top:0}.topbar h1{letter-spacing:-.02em;margin:0;font-size:1.4rem}.topbar .subtitle{color:var(--text-dim);margin:2px 0 0;font-size:.82rem}.icon-btn{background:var(--surface);border:1px solid var(--border);border-radius:50%;flex:none;place-items:center;width:40px;height:40px;display:grid}.icon-btn:active{transform:scale(.94)}.fab{right:max(18px,50vw - 372px);bottom:calc(22px + var(--safe-bottom));z-index:30;background:var(--accent);color:#2a0a1a;border-radius:50%;place-items:center;width:60px;height:60px;transition:transform .15s;display:grid;position:fixed;box-shadow:0 10px 26px #f472b666}.fab:active{transform:scale(.9)}.grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:16px 12px;display:grid}.tile{text-align:left;-webkit-user-select:none;user-select:none;flex-direction:column;gap:7px;transition:transform .16s;display:flex}.tile.pressing{transform:scale(.93)}.cover{aspect-ratio:2/3;background:var(--surface-2);border-radius:10px;position:relative;overflow:hidden;box-shadow:0 4px 14px #00000073}.cover img{object-fit:cover;width:100%;height:100%}.cover.zoomable{cursor:zoom-in}.cover .placeholder{height:100%;color:var(--text-dim);place-items:center;font-size:1.5rem;display:grid}.tile .title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.82rem;font-weight:600;line-height:1.25;display:-webkit-box;overflow:hidden}.tile .meta{color:var(--text-dim);font-size:.72rem}.badge{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:1px solid var(--border);background:#0b1120d9;border-radius:999px;padding:3px 7px;font-size:.68rem;font-weight:700;position:absolute;bottom:6px;right:6px}.badge.complete{color:var(--ok);border-color:#34d39973}.badge.missing{color:var(--warn);border-color:#fbbf2473}.search{background:var(--surface);border:1px solid var(--border);border-radius:999px;align-items:center;gap:10px;padding:11px 14px;display:flex}.search input{min-width:0;color:var(--text);background:0 0;border:0;outline:none;flex:1;font-size:1rem}.search input::placeholder{color:var(--text-dim)}.search input::-webkit-search-cancel-button{display:none}.result{border-radius:var(--radius);text-align:left;align-items:center;gap:12px;width:100%;padding:10px;transition:background .15s;display:flex}.result:active{background:var(--surface)}.result .cover{border-radius:7px;flex:0 0 54px;width:54px}.result .body{flex:1;min-width:0}.result .name{font-weight:600;line-height:1.3}.result .sub{color:var(--text-dim);margin-top:3px;font-size:.78rem}.add-btn{width:38px;height:38px;color:var(--accent);cursor:pointer;background:#f472b61f;border:1px solid #f472b64d;border-radius:50%;flex:0 0 38px;place-items:center;transition:background .15s;display:grid}.add-btn:active{background:#f472b647}.hero{gap:16px;margin-bottom:18px;display:flex}.hero .cover{flex:0 0 118px;width:118px}.hero h2{margin:0 0 6px;font-size:1.22rem;line-height:1.25}.chips{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.chip{background:var(--surface-2);border:1px solid var(--border);color:var(--text-dim);border-radius:999px;padding:3px 9px;font-size:.72rem}.chip.note{color:var(--warn);border-color:#fbbf2459}.chip.status-done{color:var(--violet);background:#a78bfa1f;border-color:#a78bfa66}.chip.status-ongoing{color:var(--accent-2);background:#38bdf81f;border-color:#38bdf866}.progress{background:var(--surface-2);border-radius:3px;height:6px;overflow:hidden}.progress>span{background:linear-gradient(90deg, var(--accent), var(--accent-2));border-radius:3px;height:100%;transition:width .3s;display:block}.summary{color:var(--text-dim);margin:0 0 20px;font-size:.9rem;line-height:1.55;transition:max-height .32s;overflow:hidden}.summary.clamped{max-height:5.58rem;-webkit-mask-image:linear-gradient(#000 55%,#0000);mask-image:linear-gradient(#000 55%,#0000)}.link-btn{color:var(--accent-2);padding:0;font-size:.82rem;font-weight:600}.section-title{justify-content:space-between;align-items:baseline;margin:22px 0 12px;font-size:1rem;font-weight:700;display:flex}.section-title small{color:var(--text-dim);font-size:.78rem;font-weight:500}.volumes{flex-direction:column;gap:8px;display:flex}.volume{border-radius:var(--radius);background:var(--surface);text-align:left;border:1px solid #0000;align-items:center;gap:12px;width:100%;padding:9px;transition:border-color .15s,background .15s;display:flex}.volume.expandable{cursor:pointer}.volume.owned{background:#34d39912;border-color:#34d39966}.volume.upcoming{opacity:.62}.chevron{width:26px;color:var(--text-dim);flex:0 0 26px;place-items:center;transition:transform .22s;display:grid}.chevron.open{transform:rotate(180deg)}.volume .cover{width:46px;box-shadow:none;border-radius:6px;flex:0 0 46px}.volume .body{flex:1;min-width:0}.volume .name{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.9rem;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.volume .sub{color:var(--text-dim);margin-top:3px;font-size:.75rem}.volume .sub .soon{color:var(--warn);font-weight:600}.check{border:2px solid var(--border);color:#0000;border-radius:50%;flex:0 0 30px;place-items:center;width:30px;height:30px;transition:all .15s;display:grid}button.check:active{transform:scale(.88)}.volume.owned .check{background:var(--ok);border-color:var(--ok);color:#06281c}.volume.upcoming .check{border-style:dashed}.add-to-library{color:#3a0d24;background:var(--accent);border-radius:999px;align-items:center;gap:7px;margin-top:12px;padding:9px 15px;font-size:.85rem;font-weight:600;display:inline-flex}.add-to-library:disabled{opacity:.6}.volume-details{opacity:0;grid-template-rows:0fr;transition:grid-template-rows .26s,opacity .2s;display:grid}.volume-details.open{opacity:1;grid-template-rows:1fr}.volume-details>div{overflow:hidden}.volume-details .inner{color:var(--text-dim);padding:10px 14px 14px;font-size:.84rem;line-height:1.55}.volume-details .inner p:first-child{margin:0 0 10px}.reviews{scroll-snap-type:x mandatory;scrollbar-width:none;gap:12px;padding-bottom:6px;display:flex;overflow-x:auto}.reviews::-webkit-scrollbar{display:none}.review{scroll-snap-align:start;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);text-align:left;cursor:pointer;flex:0 0 268px;padding:13px;transition:border-color .15s}.review:active{border-color:var(--accent-2)}.review header{align-items:center;gap:8px;margin-bottom:8px;display:flex}.review img{border-radius:50%;width:26px;height:26px}.review .who{font-size:.8rem;font-weight:600}.review .stars{color:var(--warn);margin-left:auto;font-size:.74rem}.review p{color:var(--text-dim);-webkit-line-clamp:6;-webkit-box-orient:vertical;margin:0;font-size:.83rem;line-height:1.5;display:-webkit-box;overflow:hidden}.overlay{z-index:50;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#040812b8;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.sheet{background:var(--surface-2);border:1px solid var(--border);border-radius:18px;width:min(320px,100%);overflow:hidden;box-shadow:0 24px 60px #0009}.sheet header{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:15px;display:flex}.sheet header .cover{width:40px;box-shadow:none;border-radius:5px;flex:0 0 40px}.sheet header .name{font-size:.92rem;font-weight:600;line-height:1.3}.sheet header .sub{color:var(--text-dim);margin-top:2px;font-size:.75rem}.sheet-action{border-bottom:1px solid var(--border);align-items:center;gap:11px;width:100%;padding:15px;font-size:.94rem;display:flex}.sheet-action:last-child{border-bottom:0}.sheet-action:active{background:#ffffff0d}.sheet-action.danger{color:#fb7185}.review-sheet{flex-direction:column;width:min(420px,100%);max-height:min(78vh,640px);display:flex}.review-sheet .avatar{border-radius:50%;flex:0 0 38px;width:38px;height:38px}.review-sheet header .note{color:var(--warn);white-space:nowrap;flex:none;font-size:.78rem;font-weight:600}.review-sheet .body{border-bottom:1px solid var(--border);padding:16px;overflow-y:auto}.review-sheet .body p{white-space:pre-line;margin:0;font-size:.9rem;line-height:1.6}.lightbox{z-index:60;cursor:zoom-out;background:#040812eb;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.lightbox img{border-radius:8px;width:auto;max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - 32px);box-shadow:0 30px 80px #000000b3}.empty{text-align:center;color:var(--text-dim);padding:64px 20px}.empty .big{margin-bottom:12px;font-size:2.6rem}.empty p{margin:6px 0;font-size:.9rem;line-height:1.5}.spinner{border:3px solid var(--surface-2);border-top-color:var(--accent);border-radius:50%;width:34px;height:34px;margin:0 auto 14px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{background:linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);background-size:220% 100%;border-radius:10px;animation:1.3s linear infinite shimmer}@keyframes shimmer{to{background-position:-220% 0}}.toast{left:50%;bottom:calc(96px + var(--safe-bottom));z-index:60;background:var(--surface-2);border:1px solid var(--border);border-radius:999px;max-width:calc(100% - 32px);padding:11px 17px;font-size:.85rem;position:fixed;transform:translate(-50%);box-shadow:0 8px 24px #00000080}.fade-enter-active,.fade-leave-active{transition:opacity .18s}.fade-enter-from,.fade-leave-to{opacity:0}.pop-enter-active{transition:transform .18s cubic-bezier(.2,1.2,.4,1),opacity .18s}.pop-leave-active{transition:transform .14s,opacity .14s}.pop-enter-from,.pop-leave-to{opacity:0;transform:scale(.92)}@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;animation-duration:.01ms!important}}
