:root{--pink: #ee3c6e;--pink-strong: #d6245a;--pink-text: #b3164a;--pink-soft: #fde6ee;--pink-bg: #fdf6f8;--line: #f0d9e1;--ink: #2b1d24;--ink-2: #4a3740;--muted: #6b5560;--r-card: 12px;--r-ctrl: 8px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;background:var(--pink-bg);color:var(--ink);font-family:Poppins,system-ui,-apple-system,sans-serif;overscroll-behavior:none}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}input,textarea{-webkit-user-select:text;user-select:text}#app{height:100%}button{font-family:inherit;color:inherit;cursor:pointer}h1,h2,h3,p{margin:0}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.shell{height:100%;display:flex;flex-direction:column}.screen{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:calc(24px + var(--safe-top)) 32px 28px;display:flex;flex-direction:column;gap:24px}.tabbar{flex-shrink:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 24px calc(8px + var(--safe-bottom))}.tab{border:none;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0;font-size:12px;font-weight:500;color:var(--muted);min-height:56px;justify-content:center}.tab.on{color:var(--pink-text);font-weight:600}.brand{display:flex;align-items:center;gap:12px}.logo{width:40px;height:40px;border-radius:var(--r-ctrl);background:var(--pink);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.brand-name{display:flex;flex-direction:column;line-height:1.15;flex:1}.brand-name b{font-size:18px}.brand-name small{font-size:11px;color:var(--muted)}.title{font-size:28px;font-weight:700}.subtitle{font-size:14px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 18px;border-radius:var(--r-ctrl);border:1px solid transparent;font-size:14px;font-weight:600;white-space:nowrap}.btn-primary{background:var(--pink-strong);color:#fff}.btn-soft{background:var(--pink-soft);color:var(--pink-text)}.btn-ghost{background:#fff;color:var(--ink-2);border-color:#ecd3dc}.btn-dark{background:var(--ink);color:#fff}.btn:disabled{opacity:.5}.icon-btn{width:44px;height:44px;border-radius:var(--r-ctrl);border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--ink-2);flex-shrink:0}.icon-btn.on{background:var(--pink-strong);color:#fff}.icon-btn:disabled{opacity:.35}.chip{height:38px;padding:0 14px;border-radius:var(--r-ctrl);border:1px solid #ecd3dc;background:#fff;color:var(--ink-2);font-size:13px;font-weight:600}.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}.row{display:flex;align-items:center;gap:10px}.grow{flex:1;min-width:0}.card{background:#fff;border:1px solid var(--line);border-radius:var(--r-card)}.cover{border-radius:2px 6px 6px 2px;border:1px solid rgba(43,29,36,.1);display:flex;align-items:flex-end;padding:12px;position:relative;overflow:hidden}.cover:before{content:"";position:absolute;left:0;top:0;bottom:0;width:8px;background:#0000001a}.cover span{position:relative;font-weight:700;font-size:13px;line-height:1.2}.cover span.pill{background:#ffffffe0;padding:3px 7px;border-radius:4px}.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:22px 20px}.book{display:flex;flex-direction:column;gap:10px;border:none;background:none;padding:0;text-align:left;position:relative}.book .cover{aspect-ratio:3 / 4;width:100%}.book-title{font-size:13px;font-weight:600;line-height:1.3}.book-meta{font-size:12px;color:var(--muted)}.book-new{aspect-ratio:3 / 4;width:100%;border:2px dashed #eaa9bd;border-radius:2px 6px 6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--pink-text);background:#fffafc;font-size:13px;font-weight:600}.book-menu{position:absolute;top:6px;right:6px;width:36px;height:36px;border-radius:var(--r-ctrl);background:#ffffffeb;border:none;display:flex;align-items:center;justify-content:center;color:var(--ink)}.continue{display:flex;gap:20px;align-items:center;padding:18px 20px;border:1px solid var(--line);border-radius:var(--r-card);background:#fff;text-align:left;width:100%}.continue .cover{width:92px;height:122px;flex-shrink:0}.eyebrow{font-size:12px;font-weight:600;color:var(--pink-text);letter-spacing:.06em;text-transform:uppercase}.empty{padding:28px;text-align:center;color:var(--muted);font-size:14px;border:1px dashed #ecd3dc;border-radius:var(--r-card);background:#fff}.field{display:flex;flex-direction:column;gap:8px}.label{font-size:13px;font-weight:600;color:var(--ink-2)}.input{height:48px;border:1px solid #ecd3dc;border-radius:var(--r-ctrl);padding:0 14px;font-family:inherit;font-size:16px;color:var(--ink);background:#fff;outline-color:var(--pink-strong)}.swatch{width:52px;height:68px;border-radius:2px 4px 4px 2px;border:1px solid #ecd3dc;padding:0}.swatch.on{outline:3px solid var(--ink);outline-offset:2px}.paper-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.paper{display:flex;flex-direction:column;gap:8px;align-items:center;padding:8px;border-radius:var(--r-ctrl);border:1px solid #ecd3dc;background:#fff;font-size:12px;font-weight:600}.paper.on{border:2px solid var(--pink-strong);background:var(--pink-soft)}.paper canvas{width:100%;aspect-ratio:3/4;border-radius:4px;border:1px solid #eadde2;display:block}.seg{display:inline-flex;gap:4px;background:#fbf1f4;border-radius:var(--r-ctrl);padding:4px;flex-wrap:wrap}.seg button{height:40px;padding:0 14px;border-radius:6px;border:none;background:transparent;font-size:13px;font-weight:600;color:var(--ink-2)}.seg button.on{background:#fff;color:var(--pink-text);border:1px solid #ecd3dc}.backdrop{position:fixed;inset:0;background:#2b1d2459;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{background:#fff;width:100%;max-width:900px;border-radius:16px 16px 0 0;padding:12px 24px calc(20px + var(--safe-bottom));display:flex;flex-direction:column;gap:14px;max-height:80vh;overflow-y:auto}.sheet-handle{width:48px;height:4px;border-radius:2px;background:#e6d3da;align-self:center}.dialog{background:#fff;border-radius:var(--r-card);padding:22px;width:min(420px,92vw);display:flex;flex-direction:column;gap:14px;margin:auto}.backdrop.center{align-items:center}.toast{position:fixed;left:50%;bottom:calc(110px + var(--safe-bottom));transform:translate(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:var(--r-ctrl);font-size:14px;z-index:80;max-width:90vw}.editor{position:fixed;inset:0;display:flex;flex-direction:column;background:#efe5e9}.ed-top{flex-shrink:0;background:#fff;border-bottom:1px solid var(--line);padding:calc(8px + var(--safe-top)) 12px 8px;display:flex;align-items:center;gap:6px}.ed-title{display:flex;flex-direction:column;line-height:1.2;min-width:0}.ed-title b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ed-title small{font-size:12px;color:var(--muted)}.toolbar{position:absolute;top:10px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:2px;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:5px 8px;z-index:10;max-width:calc(100% - 20px);overflow-x:auto}.tb-sep{width:1px;height:26px;background:var(--line);margin:0 5px;flex-shrink:0}.color-dot{width:30px;height:30px;border-radius:50%;margin:0 3px;flex-shrink:0;border:3px solid #fff;padding:0}.color-dot.on{box-shadow:0 0 0 2px var(--ink)}.size-btn{width:34px;height:34px;border-radius:6px;border:none;background:transparent;display:flex;align-items:center;justify-content:center;flex-shrink:0}.size-btn.on{background:var(--pink-soft)}.pages{flex:1;overflow:hidden;position:relative;touch-action:none}.pages-inner{position:absolute;left:0;right:0;top:0;will-change:transform;display:flex;flex-direction:column;align-items:center;gap:18px;padding:76px 0 60vh}.editor.reading .pages-inner{padding-top:24px}.page{position:relative;background:#fff;border:1px solid #e3d2d9;flex-shrink:0}.page canvas{position:absolute;left:0;top:0;width:100%;height:100%}.page .items{position:absolute;inset:0}.page .item{position:absolute;touch-action:none}.page .item img{width:100%;height:100%;display:block;pointer-events:none;-webkit-user-drag:none}.page .item.sel{outline:2px dashed var(--pink-strong);outline-offset:2px}.page .item .del{position:absolute;top:-18px;right:-18px;width:36px;height:36px;border-radius:var(--r-ctrl);border:none;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center}.page .item .rs{position:absolute;right:-14px;bottom:-14px;width:28px;height:28px;border-radius:6px;background:var(--pink-strong);border:2px solid #fff}.page .link{position:absolute}.editor.reading .page .link{cursor:pointer}.page-num{position:absolute;bottom:-18px;right:0;font-size:11px;color:var(--muted)}.ed-bottom{position:absolute;left:50%;bottom:calc(14px + var(--safe-bottom));transform:translate(-50%);display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:6px 12px;font-size:13px;z-index:10}.editor.reading{background:#231c1f}.editor.reading .ed-top{background:#231c1f;border-color:#3a2f33;color:#f6eef1}.editor.reading .ed-title small{color:#c9b6bd}.editor.reading .icon-btn{color:#f6eef1}.editor.reading .page{border-color:#231c1f}.editor.reading .ed-bottom{background:#2f2629;border-color:#3a2f33;color:#f6eef1}.sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}.sticker{height:84px;border-radius:var(--r-ctrl);border:1px solid #f3e1e7;background:#fffafc;display:flex;align-items:center;justify-content:center;padding:10px}.sticker img{max-width:100%;max-height:100%}.page-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px}.page-thumbs button{height:60px;border-radius:var(--r-ctrl);border:1px solid #ecd3dc;background:#fff;font-weight:600;font-size:14px}.page-thumbs button.on{background:var(--pink-soft);border-color:var(--pink-strong);color:var(--pink-text)}@media (max-width: 700px){.screen{padding-left:18px;padding-right:18px}.paper-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.title{font-size:24px}}
