:root{--ink:#293831;--muted:#788078;--paper:#f2efe8;--accent:#ad593c;--accent-dark:#8f422a;--green:#476e5d;--line:rgba(68,76,64,.13);--surface:rgba(255,255,255,.58);--shadow:0 12px 40px rgba(68,57,44,.045);--body:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--serif:"Songti SC","Noto Serif SC","STSong",serif;--mono:ui-monospace,"SFMono-Regular",Consolas,monospace;--reader-size:19px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.65 var(--body);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent)}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin:0}h1{font-size:36px;line-height:1.35;letter-spacing:-.045em;font-weight:600}h2{font-size:25px;line-height:1.5;font-weight:600;letter-spacing:-.025em}h3{font-size:17px;font-weight:600}input,select,textarea{border:1px solid var(--line);border-radius:12px;background:#ffffffb3;padding:11px 13px;min-height:44px;max-width:100%}input,textarea{min-width:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#989d94}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}[hidden]{display:none!important}::selection{background:#e8c692;color:#28382f}svg.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.ambient{position:fixed;inset:0;pointer-events:none;z-index:-1;overflow:hidden}.ambient i{position:absolute;width:65vw;height:65vw;max-width:1000px;max-height:1000px;border-radius:50%;filter:blur(100px);opacity:.38}.ambient i:nth-child(1){background:#eac5a4;top:-40vw;left:12vw}.ambient i:nth-child(2){background:#cac7df;left:-43vw;top:25vh;opacity:.28}.ambient i:nth-child(3){background:#b6d1bc;right:-38vw;bottom:-34vw;opacity:.45}.glass{background:var(--surface);border:1px solid rgba(255,255,255,.92);box-shadow:var(--shadow);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.app-shell{display:grid;grid-template-columns:210px minmax(0,1fr);gap:36px;max-width:1600px;padding:26px 34px 0 24px;margin:auto}.rail{position:sticky;top:26px;height:calc(100dvh - 52px);border-radius:28px;padding:27px 16px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;padding:2px 10px 39px}.brand img{border-radius:13px}.brand b{font-size:21px;letter-spacing:-.03em;display:block}.brand small{font-size:10px;letter-spacing:.08em;color:var(--muted);display:block;margin-top:2px}.rail nav{display:flex;flex-direction:column;gap:8px}.nav{display:flex;align-items:center;gap:12px;border:0;background:none;border-radius:14px;padding:15px 12px;min-height:52px;position:relative;text-align:left;width:100%;font-size:14px;white-space:nowrap}.nav-num{font:10px var(--mono);color:#949b94}.nav-arrow{margin-left:auto;opacity:0;font-size:16px;font-weight:400}.nav.active{background:#ffffffe6;box-shadow:0 4px 14px #39453706;font-weight:600}.nav.active .nav-num{color:var(--accent)}.nav.active .nav-arrow{opacity:1}.nav:hover:not(.active){background:#ffffff52}.rail-bottom{margin-top:auto;padding:20px 10px 0}.rail-bottom p{font-family:var(--serif);font-size:16px;line-height:1.9;color:#7d857b;margin-bottom:25px}.rail-flower{font:37px/1 var(--serif);color:#afa891;margin-bottom:17px}.settings-nav{padding:10px 0;font-size:12px}.settings-nav:hover .nav-arrow{opacity:1}.settings-gear{font-size:16px;color:#777f75}.local-label{font-size:10px;color:#90978e;display:flex;gap:6px;align-items:center;margin-top:8px}.local-label i,.connection-chip i{width:5px;height:5px;border-radius:50%;background:#a9ad9f;display:block}.connection-chip.connected i{background:var(--green)}main{min-width:0;padding-top:5px}.topbar{height:39px;display:flex;align-items:center;justify-content:space-between;margin-bottom:27px;gap:12px}.eyebrow{font:10px/1.7 var(--mono);letter-spacing:.15em;color:var(--muted);display:block}.connection-chip{display:flex;gap:7px;align-items:center;background:#ffffff32;border:1px solid var(--line);border-radius:30px;padding:6px 11px;font-size:10px;color:var(--muted);white-space:nowrap}.connection-chip span{margin-left:5px}.mobile-brand{display:none}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.section-head p{color:var(--muted);font-size:13px;margin-top:9px}.btn,.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border:1px solid var(--line);border-radius:12px;background:#fff9;padding:10px 16px;font-size:12px;white-space:nowrap;transition:background .18s,transform .18s,border-color .18s}.btn:hover,.icon-btn:hover{background:#fff}.btn:active,.icon-btn:active{transform:translateY(1px)}.btn.primary{background:var(--accent);color:#fff8ee;border-color:var(--accent);box-shadow:0 4px 15px #ad593c14}.btn.primary:hover{background:var(--accent-dark)}.btn.primary>span{margin-left:16px}.btn.quiet{background:transparent;border-color:transparent;box-shadow:none}.btn.small{min-height:34px;font-size:11px;padding:6px 10px;border-radius:9px}.icon-btn{width:40px;min-height:40px;padding:8px;font-size:22px;line-height:1;flex-shrink:0}.muted{color:var(--muted)}.micro{font-size:11px;line-height:1.8;color:var(--muted)}.tag{display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:4px 8px;border-radius:6px;background:#526d4e0d;color:var(--green)}.tag.clay{background:#ad593c0c;color:var(--accent)}.row{display:flex;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.spacer{flex:1}.hero-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(250px,1fr);gap:22px}.continue-card{position:relative;border-radius:25px;padding:32px 32px 27px;display:flex;min-height:316px;overflow:hidden;background:linear-gradient(120deg,#ffffffe6,#f9f7ef82)}.continue-copy{position:relative;z-index:1;flex:1;min-width:0}.continue-copy h2{font-family:var(--serif);font-size:31px;line-height:1.55;letter-spacing:-.035em;font-weight:600;margin:14px 0 16px}.continue-copy .book-line{font-size:12px;color:var(--muted);margin-bottom:21px}.continue-copy .book-line b{font-weight:500;color:#59695b}.continue-copy .progress-caption{margin-top:16px;font-size:10px;color:#949b91;display:flex;align-items:center;gap:7px}.progress-caption i{width:30px;height:2px;background:#b3c0ac}.hero-book-space{flex:0 0 190px;display:flex;align-items:center;justify-content:center;margin:-4px -7px 0 12px;perspective:700px;position:relative}.hero-book-space:before{content:"";position:absolute;width:230px;height:230px;background:#d8ddc54a;border-radius:50%;bottom:5px}.book-cover{height:238px;width:166px;position:relative;display:flex;flex-direction:column;padding:23px 20px;color:#f3f0db;background:#657667;border-radius:3px 9px 9px 3px;box-shadow:9px 15px 24px #43533c24,inset 5px 0 5px #182e2126,inset -3px 0 1px #ffffff26;overflow:hidden;flex-shrink:0}.book-cover:before{content:"";position:absolute;left:9px;top:0;bottom:0;width:1px;background:#ffffff24}.book-cover .cover-top{font:6px/1.7 var(--mono);letter-spacing:.16em;opacity:.7}.book-cover .cover-title{font-family:var(--serif);font-size:28px;font-weight:600;line-height:1.45;margin-top:19px;letter-spacing:.08em;z-index:1}.book-cover .cover-author{font-size:8px;letter-spacing:.05em;margin-top:9px;opacity:.75}.book-cover .cover-bottom{font:6px var(--mono);letter-spacing:.1em;margin-top:auto;opacity:.6;z-index:1}.book-cover .cover-art{position:absolute;width:110px;height:110px;border:1px solid #e3e5c957;border-radius:50%;right:-24px;bottom:22px}.book-cover .cover-art:before,.book-cover .cover-art:after{content:"";position:absolute;inset:13px;border:1px solid #e3e5c957;border-radius:50%}.book-cover .cover-art:after{inset:26px}.book-cover.clay{background:#ac7d66}.hero-book-space .book-cover{transform:rotate(7deg) rotateY(-12deg)}.comic-teaser{padding:27px 25px 20px;border-radius:25px;position:relative;overflow:hidden;background:#edf0e875}.comic-teaser .teaser-top{display:flex;align-items:center;justify-content:space-between}.comic-teaser h3{font-family:var(--serif);font-size:23px;line-height:1.6;margin:10px 0 8px;font-weight:600}.comic-teaser .teaser-images{position:absolute;width:170px;height:170px;right:-10px;top:104px;transform:rotate(-8deg);opacity:.93;mask-image:linear-gradient(#000 80%,transparent)}.teaser-images img{width:123px;height:160px;object-fit:cover;object-position:top;border:4px solid #fffdfa;border-radius:6px;box-shadow:0 5px 20px #30392d20;position:absolute;right:32px;top:8px}.teaser-images img+img{transform:rotate(15deg);right:-24px;top:28px}.comic-teaser .teaser-bottom{position:absolute;left:25px;bottom:24px;right:22px;display:flex;align-items:center;gap:10px}.teaser-bottom .micro{max-width:100px;font-size:10px}.teaser-bottom .round-arrow{margin-left:auto;background:#fafbf5b8}.round-arrow{height:35px;width:35px;border:1px solid #7d917a2b;border-radius:50%;display:grid;place-items:center;font-size:16px}.mode-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:19px 0 34px}.mode-option{display:flex;align-items:center;gap:12px;border:1px solid #ffffffb3;border-radius:16px;background:#ffffff3d;padding:16px;text-align:left;transition:.18s}.mode-option:hover{background:#ffffffab;transform:translateY(-2px)}.mode-symbol{background:#e1e7d965;color:#6f8465;border:1px solid #7b917812;width:36px;height:39px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}.mode-option:nth-child(2) .mode-symbol{color:var(--accent);background:#e5cbb326}.mode-option:nth-child(3) .mode-symbol{color:#85809a;background:#cfc9df2c}.mode-option b{display:block;font-size:12px;font-weight:550}.mode-option small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.mode-option .mode-arrow{margin-left:auto;color:#929b8e}.shelf-heading{display:flex;align-items:center;gap:14px;margin:0 0 17px}.shelf-heading h2{font-size:21px}.count{font:11px var(--mono);color:#949b92}.search-wrap{display:flex;gap:8px;align-items:center;background:#ffffff52;border:1px solid var(--line);border-radius:10px;padding:0 11px;margin-left:auto;width:220px;color:var(--muted)}.search-wrap input{padding:8px 0;background:none;border:0;min-height:36px;width:100%;font-size:11px;outline:none}.filter-row{display:flex;gap:18px;align-items:center;margin-bottom:19px}.filter{background:none;border:0;padding:4px 0;color:#8a9087;font-size:11px;border-bottom:1px solid transparent}.filter.active{color:var(--ink);border-bottom-color:var(--ink)}.book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.book-card{display:flex;border-radius:20px;padding:22px;gap:22px;position:relative;transition:transform .2s}.book-card:hover{transform:translateY(-2px)}.book-card .book-cover{width:112px;height:162px;padding:16px 15px;box-shadow:5px 8px 12px #43533c17}.book-card .cover-title{font-size:21px;margin-top:12px}.book-card .cover-top{font-size:5px}.book-card .cover-author{font-size:6px;margin-top:6px}.book-card .cover-bottom{font-size:5px}.book-card .cover-art{width:75px;height:75px;bottom:15px}.book-card-body{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:4px 0}.book-card-body h3{font-size:16px;margin-bottom:4px}.book-card-body .author{font-size:11px;color:#8c9489}.book-card-body .row{gap:6px;margin-top:12px}.book-card-body .book-meta{font-size:10px;color:#8b9487;margin:10px 0 15px}.book-card-body .btn{margin-top:auto}.favorite{position:absolute;right:13px;top:12px;border:0;background:none;color:#abae9c;padding:5px;font-size:17px}.favorite.active{color:var(--accent)}.import-card{border:1px dashed #9aa58f59;border-radius:20px;background:#ffffff14;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:204px;padding:24px;gap:9px}.import-card:hover{background:#ffffff50;border-color:#889577}.import-card .plus{font-size:29px;font-weight:200;color:#a0a995;width:42px;height:42px;background:#fff4;border-radius:50%;display:grid;place-items:center}.import-card b{font-size:12px;font-weight:500}.import-card small{font-size:10px;color:#8d9687}.page-footer{display:flex;justify-content:space-between;gap:20px;color:#a0a597;font-size:10px;margin:29px 0 24px}.page-footer button{font-size:10px;color:#8c9786;background:none;border:0;padding:0}.empty-state{text-align:center;padding:65px 25px;border-radius:24px}.empty-state .empty-icon{font-size:35px;color:#b4bda9;margin-bottom:13px}.empty-state h3{margin-bottom:8px}.empty-state p{color:var(--muted);font-size:12px;margin-bottom:20px}.loading-state{display:flex;min-height:60vh;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.loading-dot{width:10px;height:10px;background:var(--accent);border-radius:50%;animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.25}}body.is-reader .app-shell{grid-template-columns:80px minmax(0,1fr);gap:24px;max-width:1800px;padding-right:25px}body.is-reader .rail{padding:20px 10px}body.is-reader .brand{padding:8px 6px 30px}body.is-reader .brand span,body.is-reader .nav-label,body.is-reader .nav-arrow,body.is-reader .rail-bottom p,body.is-reader .local-label,body.is-reader .rail-flower{display:none}body.is-reader .nav{justify-content:center;padding:15px 8px}body.is-reader .nav-num{font-size:12px}body.is-reader .rail-bottom{padding:0}body.is-reader .settings-nav{justify-content:center}body.is-reader .topbar{margin-bottom:14px}body.is-reader .settings-gear{font-size:20px}.reader-head{display:flex;gap:16px;align-items:center;margin-bottom:18px}.reader-title{min-width:0}.reader-title h1{font-size:21px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-title p{font-size:11px;color:var(--muted)}.mode-tabs{display:flex;gap:4px;background:#e1dfd63d;padding:4px;border:1px solid #d7dcd045;border-radius:12px;margin-left:auto}.mode-tab{background:none;border:0;border-radius:8px;padding:8px 14px;font-size:11px;white-space:nowrap;color:var(--muted)}.mode-tab.active{background:#fffaf2;box-shadow:0 2px 7px #303b2d0a;color:var(--accent)}.reader-toolbar{display:flex;align-items:center;gap:9px;padding:10px 14px;border-radius:15px;margin-bottom:14px}.reader-toolbar select{border:0;background:none;padding:4px 25px 4px 8px;min-height:34px;font-size:12px;max-width:260px}.reader-toolbar .btn{min-height:33px;padding:5px 10px;font-size:11px}.font-tools{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;height:33px}.font-tools button{border:0;background:none;padding:5px 10px;font:13px var(--serif)}.font-tools span{font:10px var(--mono);color:var(--muted)}.reader-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;height:calc(100dvh - 230px);min-height:420px;position:relative}.reader-grid.mode-split{grid-template-columns:minmax(0,1fr) minmax(340px,.85fr)}.reader-grid.mode-comic{grid-template-columns:minmax(0,1fr)}.reading-pane{border-radius:22px;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#c5ccbc transparent;background:#fffdf7b5;position:relative}.book-article{max-width:750px;padding:38px 48px 70px;margin:0 auto}.article-header{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:28px}.article-header h2{font-family:var(--serif);font-weight:600;font-size:30px;margin:7px 0 9px}.article-header p{font-size:11px;color:#92998f}.reading-section{margin:34px 0 44px;scroll-margin-top:25px}.reading-section:first-of-type{margin-top:0}.section-label{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:17px}.section-label h3{font-family:var(--serif);font-size:21px;margin-right:auto;font-weight:600}.comic-links{display:flex;align-items:center;gap:4px;color:var(--accent);flex-wrap:wrap}.comic-links .icon{width:14px;height:14px}.comic-link{border:1px solid #ad593c1c;background:#ad593c08;border-radius:5px;padding:1px 5px;font:10px/1.7 var(--mono);color:var(--accent);min-width:22px}.comic-link:hover{background:#ad593c20}.paragraph{position:relative;margin:0 0 19px;scroll-margin-top:22px;line-height:1.95;font-family:var(--serif);font-size:var(--reader-size);color:#3e483e;overflow-wrap:anywhere}.paragraph.source-heading{font-size:12px;color:var(--muted);margin-bottom:11px;font-family:var(--body)}.paragraph.source-heading .para-text{opacity:.65}.paragraph.flash{animation:flash 2.2s ease-out}.paragraph.current-linked{border-left:2px solid #b67b5355;padding-left:12px;margin-left:-14px}mark.saved-highlight{background:#ead69c70;box-shadow:0 1px #c8a65d70;color:inherit;padding:1px 0;border-radius:2px;cursor:pointer}mark.search-highlight{background:#ecc39190;color:inherit}.article-end{border-top:1px solid var(--line);padding-top:26px;display:flex;align-items:center;justify-content:space-between;gap:15px}.article-end span{font-size:11px;color:var(--muted)}.reading-bottom{display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);padding:10px 5px}.reading-bottom .progress-line{height:3px;background:#80927518;width:130px;border-radius:3px;overflow:hidden}.progress-line i{display:block;height:100%;background:#8eaa7b;border-radius:3px}.reading-bottom .row{gap:9px}.source-info{font-size:10px;border:0;background:none;color:var(--muted);padding:0}.comic-pane{border-radius:22px;background:#e9ece3b8;display:flex;flex-direction:column;overflow:hidden;min-height:0;border:1px solid #ffffffc9;position:relative}.comic-head{padding:13px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #89948117;font-size:11px;gap:8px}.comic-head .eyebrow{font-size:9px}.sync-control{display:flex;align-items:center;gap:6px;font-size:10px;border:0;background:none;color:var(--muted);padding:5px}.switch{height:15px;width:25px;background:#b5beb0;border-radius:15px;padding:2px;display:block;transition:background .2s}.switch:after{content:"";display:block;width:11px;height:11px;border-radius:50%;background:#fff;transition:transform .2s}.sync-control[aria-pressed=true]{color:var(--green)}.sync-control[aria-pressed=true] .switch{background:#77926b}.sync-control[aria-pressed=true] .switch:after{transform:translate(10px)}.comic-scroll{overflow:auto;flex:1;min-height:0;scrollbar-width:thin;padding:16px;overscroll-behavior:contain;text-align:center}.comic-image-button{background:none;border:0;padding:0;display:block;max-width:100%;margin:auto;cursor:zoom-in}.comic-image{width:100%;max-width:610px;height:auto;display:block;border-radius:5px;box-shadow:0 4px 18px #25392b12}.comic-caption{font-size:11px;color:#69795f;margin:11px 0 1px}.comic-controls{padding:12px 16px;border-top:1px solid #89948117;background:#f6f7f0b3}.comic-pagination{display:flex;gap:10px;align-items:center;justify-content:space-between}.comic-pagination select{font-size:11px;border:0;background:none;min-height:32px;padding:3px 4px;max-width:calc(100% - 90px)}.comic-pagination .icon-btn{width:32px;min-height:32px;font-size:17px;border-radius:9px;background:#fffaf27a}.source-jump{display:flex;align-items:center;gap:7px;background:none;border:0;border-top:1px solid #85957819;width:100%;padding:9px 0 0;margin-top:9px;color:var(--green);font-size:10px;text-align:left}.source-jump span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.source-jump .icon{width:14px;height:14px}.mode-comic .comic-pane{max-width:100%;background:#e7eadd80}.mode-comic .comic-scroll{padding:24px 40px}.mode-comic .comic-image{max-width:650px}.mode-comic .comic-controls{display:flex;align-items:center;gap:25px;justify-content:center}.mode-comic .comic-pagination{min-width:300px}.mode-comic .source-jump{border:0;margin:0;padding:0;width:auto;max-width:300px}.comic-strip{display:flex;gap:8px;overflow:auto;padding:10px 16px;border-top:1px solid var(--line);background:#f3f5ec}.comic-thumb{border:2px solid transparent;background:none;border-radius:4px;padding:0;position:relative;flex-shrink:0;width:43px;height:64px;overflow:hidden}.comic-thumb img{width:100%;height:100%;object-fit:cover}.comic-thumb span{position:absolute;bottom:0;left:0;right:0;color:#fff;background:#2d382d99;font:8px var(--mono)}.comic-thumb.active{border-color:var(--accent)}.no-comic{padding:45px 25px;text-align:center;margin:auto;max-width:320px}.no-comic p{margin:10px 0 18px;color:var(--muted);font-size:12px}.ai-pane{border-radius:22px;display:flex;flex-direction:column;overflow:hidden;min-height:0;background:#fffefa80;border:1px solid #ffffffcf}.ai-head{display:flex;align-items:center;gap:10px;padding:17px 18px;border-bottom:1px solid var(--line)}.ai-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:11px;background:#e5d6bd4d;color:var(--accent);font-size:24px;line-height:1}.ai-head b{font-size:12px;font-weight:550}.ai-head small{display:block;font-size:9px;color:var(--muted)}.ai-head button{margin-left:auto;border:0;background:none;font-size:11px;color:var(--muted);padding:5px}.chat-messages{flex:1;overflow:auto;padding:21px 18px;min-height:0;scrollbar-width:thin}.chat-welcome{padding:15px 2px}.chat-welcome .welcome-symbol{font-family:var(--serif);font-size:38px;color:#b9b79a;margin-bottom:16px}.chat-welcome h3{font-family:var(--serif);font-size:21px;line-height:1.65;margin-bottom:13px}.chat-welcome p{font-size:12px;color:var(--muted);line-height:1.9}.suggestions{display:flex;flex-direction:column;gap:8px;margin-top:23px}.suggestion{text-align:left;border:1px solid #7c8a6e20;border-radius:10px;background:#fff5;padding:10px 12px;font-size:11px;color:#6b7a60;display:flex;align-items:center;justify-content:space-between;gap:5px}.suggestion:hover{background:#fff}.chat-message{margin-bottom:19px;overflow-wrap:anywhere;font-size:12px;line-height:1.95}.chat-message .speaker{font-size:9px;color:#949c8d;margin-bottom:6px;display:flex;align-items:center;gap:5px}.chat-message.user .message-body{background:#e6e9dd9e;border-radius:12px 12px 3px;padding:11px 13px}.chat-message.assistant .message-body{padding:0 1px}.chat-message .message-quote{font-size:10px;border-left:2px solid #b5bea0;padding:6px 9px;margin-bottom:9px;color:#829075;background:#f5f6ef;max-height:90px;overflow:auto}.chat-message.error .message-body{color:#a45639}.chat-message .message-body p+p{margin-top:10px}.chat-message .message-body strong{font-weight:600;color:#31482f}.chat-message.pending .message-body:after{content:"▍";color:var(--accent);animation:pulse 1s infinite}.message-actions{display:flex;gap:6px;margin-top:8px}.message-actions button{border:0;background:none;color:#8b967f;font-size:10px;padding:2px 4px}.ai-composer{margin:0 13px 13px;padding:11px;border:1px solid #8f9c7f32;border-radius:13px;background:#fffefaab}.ai-composer textarea{border:0;background:none;resize:none;width:100%;min-height:57px;max-height:150px;padding:0;font-size:12px;line-height:1.8;outline:none;display:block}.composer-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}.composer-row small{font-size:9px;color:#a0a795}.send-btn{background:#647b57;color:#fff;width:30px;min-height:30px;border-radius:9px;border:0;font-size:18px;line-height:1}.send-btn:hover{background:#48633b}.selected-quote{font-size:10px;color:#7d896e;background:#edf0e4;border-radius:8px;padding:8px 9px;margin-bottom:9px;display:flex;align-items:flex-start;gap:6px}.selected-quote span{max-height:65px;overflow:auto;flex:1;white-space:pre-wrap}.selected-quote button{border:0;background:none;color:var(--muted);font-size:15px;line-height:1.2;padding:0}.ai-config-notice{font-size:10px;background:#f3eadba8;color:#a07b57;border:0;width:100%;text-align:left;padding:10px 18px}.chat-drawer-wrap{position:fixed;inset:0;background:#2c352b17;z-index:20;display:flex;justify-content:flex-end;padding:18px;backdrop-filter:blur(2px)}.chat-drawer-wrap .ai-pane{width:390px;max-width:100%;background:#f6f6eefa;box-shadow:0 15px 80px #1f2d271c}.selection-toolbar{position:fixed;z-index:30;display:flex;align-items:center;gap:0;padding:5px;background:#304437;color:#fff7e9;border:1px solid #4d644b;border-radius:12px;box-shadow:0 6px 20px #283b3429;max-width:calc(100vw - 20px)}.selection-toolbar button{border:0;background:none;color:inherit;padding:7px 10px;font-size:11px;white-space:nowrap;border-radius:6px;min-height:32px}.selection-toolbar button:hover{background:#ffffff16}.selection-toolbar button:first-child{color:#f0cc9f}.selection-toolbar>span{height:14px;width:1px;background:#fff2}.comic-collection{border-radius:24px;padding:25px;margin-bottom:24px}.collection-heading{display:flex;align-items:center;gap:15px;margin-bottom:22px}.collection-heading .tag{margin-left:auto}.chapter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.chapter-card{display:block;text-align:left;border:0;background:#fffdf769;border-radius:13px;overflow:hidden;padding:0;transition:transform .2s}.chapter-card:hover{transform:translateY(-3px)}.chapter-preview{height:160px;overflow:hidden;position:relative;background:#e4e7d8}.chapter-preview img{width:100%;height:auto;display:block}.chapter-preview:after{content:"";position:absolute;inset:70% 0 0;background:linear-gradient(transparent,#fffdf7)}.chapter-info{padding:12px 13px 16px}.chapter-info .eyebrow{font-size:9px}.chapter-info h3{font-size:12px;margin:4px 0 5px;line-height:1.6}.chapter-info small{font-size:10px;color:var(--muted)}.notes-toolbar{margin:15px 0 23px;display:flex;gap:15px;align-items:center}.note-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.note-card{padding:24px;border-radius:20px;display:flex;flex-direction:column}.note-card .note-meta{font-size:10px;color:#8e9882;display:flex;justify-content:space-between;gap:10px}.note-card blockquote{font-family:var(--serif);font-size:17px;line-height:1.95;margin:17px 0;padding-left:13px;border-left:2px solid #c5b892;max-height:220px;overflow:auto;white-space:pre-wrap}.note-card .note-content{font-size:12px;color:#69745f;white-space:pre-wrap;padding:12px 14px;background:#e8ebdf5c;border-radius:9px;margin-bottom:15px}.note-card .note-actions{display:flex;gap:12px;margin-top:auto;padding-top:10px;flex-wrap:wrap}.note-actions button{font-size:10px;color:var(--green);background:none;border:0;padding:0}.note-actions button:last-child{margin-left:auto;color:#a69d8b}.notes-count{font:12px var(--mono);color:#9ba28f}.modal{padding:29px;border:1px solid #fffef8;border-radius:25px;background:#f5f3ec;width:500px;max-width:calc(100vw - 30px);max-height:calc(100dvh - 40px);box-shadow:0 25px 100px #29383125;color:var(--ink);overflow:auto}.modal::backdrop,.image-dialog::backdrop{background:#25362a45;backdrop-filter:blur(7px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:14px}.modal-head .icon-btn{background:none;border:0;min-height:28px;width:28px;padding:0;font-size:23px}.modal-head .eyebrow{font-size:9px;margin-bottom:6px}.modal-head h2{font-size:24px;font-family:var(--serif)}.modal-intro{font-size:12px;margin-bottom:23px}.modal label{margin-bottom:16px}.modal label input,.modal label select,.modal label textarea{color:var(--ink);width:100%;font-size:13px}.password-row{display:flex;gap:6px}.password-row input{flex:1}.password-row button{background:none;font-size:17px}.modal .checkbox-label{flex-direction:row;align-items:center;gap:8px;margin:8px 0 10px}.checkbox-label input{width:15px!important;min-height:15px;accent-color:var(--accent)}.modal-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--line);padding-top:19px;margin-top:23px}.modal-footer .micro{max-width:200px;font-size:10px}.form-result{border-radius:8px;padding:10px 12px;font-size:11px;background:#dae7dba6;color:var(--green);margin-top:16px;white-space:pre-wrap}.form-result.error{background:#f3ded3;color:#a5573b}.drop-zone{position:relative;display:flex;align-items:center;justify-content:center;border:1px dashed #9eae8f;border-radius:17px;background:#e8eddc66;min-height:210px;cursor:pointer;gap:10px;text-align:center;padding:20px}.drop-zone:hover,.drop-zone.dragging{background:#e0e8d3}.drop-zone input{position:absolute;inset:0;opacity:0;cursor:pointer;min-height:100%}.drop-zone b{font-size:13px;color:#657958;font-weight:500}.drop-zone span{font-size:10px}.drop-zone .drop-symbol{font:35px var(--body);color:#96a786;margin-bottom:5px}.import-note{text-align:center;font-size:10px}.import-result{padding:9px 0;border-bottom:1px solid var(--line);font-size:11px;color:var(--green)}.import-result.error{color:var(--accent)}#note-quote{font:16px/1.9 var(--serif);border-left:2px solid #bcb38c;padding:10px 13px;margin:20px 0;max-height:170px;overflow:auto;color:#6d775f;white-space:pre-wrap}.toc-modal{width:560px}#book-search{width:100%;font-size:12px;margin:5px 0 15px}.toc-chapter{border-bottom:1px solid var(--line)}.toc-chapter>button{border:0;background:none;width:100%;padding:13px 5px;text-align:left;display:flex;align-items:center;gap:10px;font-size:13px}.toc-chapter>button.active{color:var(--accent)}.toc-chapter .toc-number{font:10px var(--mono);color:#a0a58e;min-width:20px}.toc-sections{padding:0 0 12px 35px;display:flex;flex-direction:column;gap:4px}.toc-sections button{border:0;background:none;color:var(--muted);text-align:left;padding:4px 0;font-size:11px}.search-result{border:0;border-bottom:1px solid var(--line);background:none;width:100%;text-align:left;padding:15px 5px;font-size:12px;line-height:1.9}.search-result small{display:block;color:var(--accent);font-size:10px;margin-bottom:4px}.search-result mark{background:#e6cf9f;color:inherit}.search-result-count{font-size:11px;color:var(--muted);padding:8px 0}.image-dialog{background:#f5f3ec;border:0;border-radius:12px;padding:15px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);width:850px;overflow:auto}.image-dialog img{width:100%;height:auto;display:block}.image-close{position:sticky;top:0;margin:0 0 -40px auto;z-index:1;background:#fffffff0;box-shadow:0 4px 20px #28382a30;border-radius:50%}.help-list p{margin:19px 0;font-size:13px;line-height:1.9;color:var(--muted)}.help-list b{color:var(--ink);font-weight:550}.help-list .micro{font-size:11px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%);z-index:100;background:#344735;color:#fcf7e9;padding:11px 21px;border-radius:12px;font-size:12px;max-width:calc(100vw - 30px);box-shadow:0 10px 30px #253b2920;text-align:center}.toast.error{background:#9e583d}@keyframes flash{0%,35%{background:#e9d6a94d}to{background:transparent}}@media(min-width:1600px){.hero-book-space{flex-basis:220px}.continue-card{padding:35px 40px}.continue-copy h2{font-size:34px}.hero-book-space .book-cover{width:175px;height:255px}.hero-grid{grid-template-columns:2fr 1fr}}@media(max-width:1150px){.app-shell{grid-template-columns:180px minmax(0,1fr);gap:24px;padding-right:24px;padding-left:20px}.rail{padding:23px 12px}.brand{padding-left:4px;padding-right:4px;gap:9px}.brand b{font-size:19px}.hero-grid{grid-template-columns:minmax(0,1.8fr) minmax(215px,1fr);gap:15px}.continue-card{padding:27px 25px}.continue-copy h2{font-size:27px}.hero-book-space{flex-basis:136px;margin-right:-15px;margin-left:4px}.hero-book-space .book-cover{width:133px;height:204px;padding:21px 17px}.hero-book-space .cover-title{font-size:24px}.comic-teaser{padding:24px 20px}.comic-teaser .teaser-bottom{left:20px;right:18px}.mode-option{padding:13px 10px;gap:9px}.mode-option small{font-size:9px}.book-card{padding:19px;gap:16px}.book-card .book-cover{width:93px;height:143px}.book-card .cover-title{font-size:18px}.book-card-body h3{font-size:14px}.book-card-body .row{gap:3px;flex-wrap:wrap}.book-article{padding:30px 32px 60px}.reader-grid{grid-template-columns:minmax(0,1fr) 300px}.reader-grid.mode-split{grid-template-columns:minmax(0,1fr) minmax(290px,.85fr)}.reader-toolbar select{max-width:220px}.chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:950px){.app-shell{grid-template-columns:76px minmax(0,1fr);gap:22px;padding-left:18px}.rail{padding:20px 10px}.brand{padding:7px 5px 30px}.brand span,.nav-label,.nav-arrow,.rail-bottom p,.local-label,.rail-flower{display:none}.nav{justify-content:center;padding:15px 8px}.nav-num{font-size:12px}.rail-bottom{padding:0}.settings-nav{justify-content:center}.settings-gear{font-size:20px}.hero-grid{grid-template-columns:minmax(0,1.7fr) minmax(210px,1fr)}.book-card .book-cover{width:98px;height:150px}.mode-tabs .mode-tab{padding:7px 10px}.reader-head{gap:10px}.reader-title h1{font-size:19px}.reader-title p{font-size:10px}.reader-toolbar .toc-button span{display:none}.reader-grid{grid-template-columns:minmax(0,1fr) 275px}.reader-grid.mode-split{grid-template-columns:minmax(0,1fr) minmax(270px,.85fr)}.book-article{padding:26px 25px 60px}.article-header h2{font-size:26px}.paragraph{font-size:calc(var(--reader-size) - 1px)}.reader-toolbar select{max-width:200px}.reader-toolbar{gap:5px}.reader-toolbar .font-tools{margin-left:auto}.reader-toolbar .spacer{display:none}}@media(max-width:760px){.app-shell,body.is-reader .app-shell{grid-template-columns:1fr;padding:19px 22px 0;gap:0}.rail{position:static;height:auto;border-radius:17px;padding:6px;margin:0 0 20px;order:1;display:none}.mobile-brand{display:flex;gap:8px;align-items:center;font-size:15px;font-weight:600}.topbar{margin-bottom:22px}.topbar>.eyebrow{display:none}.hero-grid{grid-template-columns:minmax(0,1.7fr) minmax(200px,1fr)}.continue-card{padding:25px}.continue-copy h2{font-size:26px}.continue-copy .book-line{font-size:11px}.hero-book-space{flex-basis:120px}.hero-book-space .book-cover{width:120px;height:187px;padding:18px 16px}.hero-book-space .cover-title{font-size:21px}.book-grid{gap:13px}.book-card{padding:17px;gap:13px}.book-card .book-cover{width:88px;height:135px;padding:14px 13px}.book-card .cover-title{font-size:17px}.book-card-body .book-meta{font-size:9px}.book-card-body .tag{font-size:9px;padding:2px 5px}.reader-head,.reader-toolbar{margin-bottom:12px}.reader-grid{height:calc(100dvh - 212px);min-height:420px;grid-template-columns:minmax(0,1fr) 270px;gap:12px}.reader-grid.mode-split{grid-template-columns:minmax(0,1fr) minmax(250px,.82fr)}.book-article{padding:24px 22px 50px}.article-header h2{font-size:25px}.reader-title p{display:none}.reader-head>.icon-btn{width:34px;min-height:34px}.reader-toolbar select{max-width:210px}.reader-toolbar .font-tools{margin-left:0}.source-info{display:none}.note-list{gap:13px}.note-card{padding:19px}.chapter-grid{gap:12px}}@media(max-width:600px){h1{font-size:28px}.app-shell,body.is-reader .app-shell{padding:14px 16px 0}.section-head{margin-bottom:19px}.section-head p{font-size:11px;margin-top:7px}.section-head .btn{min-height:37px;padding:8px 12px;font-size:11px}.hero-grid{grid-template-columns:1fr;gap:13px}.continue-card{min-height:289px;padding:27px 25px}.continue-copy h2{font-size:28px;line-height:1.5}.hero-book-space{flex-basis:120px;margin-right:-7px;margin-left:5px}.hero-book-space .book-cover{height:195px;width:128px}.comic-teaser{min-height:130px;padding:21px 22px}.comic-teaser h3{font-size:20px;line-height:1.3;margin:10px 0}.comic-teaser h3 br{display:none}.comic-teaser .teaser-images{height:140px;right:20px;top:-11px;width:143px;mask-image:linear-gradient(#000 80%,transparent)}.teaser-images img{width:96px;height:136px;right:23px}.teaser-images img+img{right:-20px;top:23px}.comic-teaser .teaser-bottom{left:auto;right:14px;bottom:13px}.teaser-bottom .micro,.comic-teaser .teaser-top .tag{display:none}.mode-strip{gap:7px;margin:13px 0 27px}.mode-option{padding:13px 7px;gap:6px;justify-content:center}.mode-symbol{width:28px;height:32px;border-radius:8px}.mode-symbol .icon{width:16px;height:16px}.mode-option b{font-size:11px}.mode-option small,.mode-arrow{display:none}.shelf-heading{gap:8px;flex-wrap:wrap;margin-bottom:13px}.shelf-heading h2{font-size:20px}.search-wrap{width:156px;font-size:11px}.filter-row{margin-bottom:15px;gap:20px}.book-grid{grid-template-columns:1fr}.book-card{padding:23px;gap:24px;min-height:202px}.book-card .book-cover{width:108px;height:158px;padding:17px}.book-card .cover-title{font-size:21px}.book-card-body h3{font-size:16px}.book-card-body .book-meta{font-size:10px}.book-card-body .tag{font-size:10px;padding:3px 7px}.import-card{min-height:140px}.import-card .plus{width:33px;height:33px;font-size:25px}.page-footer{margin-top:22px;font-size:9px}.page-footer .footer-quote{max-width:220px}.reader-head{flex-wrap:wrap;gap:9px}.reader-title{flex:1}.reader-title h1{font-size:18px}.mode-tabs{margin-left:0;gap:0;padding:3px}.mode-tab{font-size:10px;padding:7px 8px!important}.reader-head>.icon-btn{width:30px;min-height:30px;border:0;background:transparent}.reader-toolbar{flex-wrap:wrap;padding:8px;gap:5px;border-radius:12px}.reader-toolbar select{flex:1;max-width:calc(100% - 40px);font-size:11px;min-height:31px}.reader-toolbar .font-tools{margin-left:auto}.reader-toolbar .btn{font-size:10px;padding:4px 7px;min-height:30px}.reader-toolbar .font-tools{height:30px}.reader-toolbar .font-tools button{padding:4px 9px}.reader-grid{height:auto;min-height:0;grid-template-columns:1fr!important;gap:14px}.reading-pane{height:calc(100dvh - 245px);min-height:390px;border-radius:17px}.book-article{padding:27px 25px 45px}.paragraph{font-size:var(--reader-size)}.article-header h2{font-size:28px}.reader-grid .ai-pane{min-height:400px;max-height:650px;border-radius:17px}.chat-welcome{padding:9px 3px}.chat-welcome h3 br{display:none}.suggestions{margin-top:14px}.reader-grid.mode-reading .ai-pane{display:none}.mobile-ask{display:inline-flex!important}.reader-grid.mode-split .reading-pane{height:48dvh;min-height:290px}.reader-grid.mode-split .comic-pane{height:66dvh;min-height:410px}.reader-grid.mode-comic .comic-pane{height:calc(100dvh - 245px);min-height:450px}.mode-comic .comic-scroll{padding:16px}.mode-comic .comic-controls{display:block;padding:10px 15px}.mode-comic .comic-pagination{min-width:0}.mode-comic .source-jump{width:100%;max-width:none;border-top:1px solid var(--line);margin-top:8px;padding-top:8px}.reading-bottom{font-size:9px}.reading-bottom .progress-line{width:65px}.reading-bottom .row{gap:6px}.chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.comic-collection{padding:18px;border-radius:19px}.collection-heading h2{font-size:18px}.collection-heading .tag{font-size:9px;white-space:nowrap}.chapter-preview{height:155px}.note-list{grid-template-columns:1fr}.notes-toolbar{flex-wrap:wrap;margin-top:5px}.notes-toolbar .search-wrap{width:100%;order:1}.note-card{padding:23px}.note-card blockquote{font-size:17px}.modal{padding:25px 23px;border-radius:21px}.modal-head h2{font-size:22px}.modal-footer .micro{max-width:180px}.chat-drawer-wrap{padding:8px}.chat-drawer-wrap .ai-pane{width:100%;max-height:calc(100dvh - 16px);border-radius:20px}.selection-toolbar button{padding:6px 9px;font-size:10px}.toast{bottom:17px;font-size:11px;padding:10px 15px}.topbar{height:34px}.reader-toolbar .chat-open{display:inline-flex}.mobile-bottom-nav{display:flex!important}}.mobile-ask,.mobile-bottom-nav{display:none}.mobile-bottom-nav{position:sticky;bottom:12px;border-radius:16px;padding:6px;gap:4px;margin:25px 0 16px;z-index:5;background:#faf9f1ed;box-shadow:0 4px 22px #35412b12}.mobile-bottom-nav a,.mobile-bottom-nav button{flex:1;background:none;border:0;text-align:center;font-size:11px;padding:9px 4px;border-radius:10px;color:var(--muted)}.mobile-bottom-nav .active{background:#e9e8dc;color:var(--ink)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}.search-wrap{flex-direction:row}@media(min-width:761px){.reader-grid{height:calc(100dvh - 264px)}}@media(min-width:601px)and (max-width:760px){.reader-grid{height:calc(100dvh - 244px)}}@media(min-width:601px)and (max-width:900px){body.is-reader .rail{display:none}body.is-reader .app-shell{grid-template-columns:1fr;padding:20px 22px 0;gap:0}body.is-reader .mobile-brand{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600}body.is-reader .topbar>.eyebrow{display:none}}@media(max-width:600px){.comic-teaser h3{max-width:170px;font-size:19px;line-height:1.5}.comic-teaser h3 br{display:block}.comic-teaser .teaser-images{right:7px;width:130px}.reading-pane{height:calc(100dvh - 255px)}}.settings-modal{width:560px}.settings-modal .modal-intro{margin-bottom:18px}.provider-info{padding:11px 14px;background:#e3e8db66;border:1px solid #8494711c;border-radius:12px;margin:-5px 0 17px;color:var(--muted);font-size:11px;line-height:1.7}.provider-info p{margin:0 0 4px}.provider-info a{color:var(--green);font-size:10px}.model-choices{margin-bottom:14px}.model-choices>label{margin-bottom:6px}.model-picker-row{display:flex;gap:8px;align-items:center}.model-picker-row select{flex:1;min-width:0;font-size:11px;min-height:39px}.model-picker-row .btn{flex-shrink:0;min-height:39px;white-space:nowrap}.model-choices .micro{margin-top:7px;line-height:1.65}.form-result{white-space:pre-wrap;overflow-wrap:anywhere}.form-result.success{color:#436442;background:#e2ebd8a8;border-color:#8da67740}#model-name{font-family:var(--mono);font-size:12px}.settings-modal .modal-footer{position:sticky;bottom:-29px;background:#f5f3ec;padding:15px 0 5px;margin-top:10px}.settings-modal .modal-footer .btn{min-height:40px}@media(max-width:600px){.settings-modal{padding:22px}.settings-modal .modal-footer{bottom:-22px;padding-bottom:4px}.model-picker-row select{font-size:12px}.provider-info{font-size:11px}}.settings-modal label{margin-bottom:12px}.settings-modal .modal-head{margin-bottom:10px}.settings-modal .modal-intro{margin-bottom:14px}.settings-modal .model-choices>label{margin-bottom:6px}.shared-model-card{display:flex;align-items:center;gap:15px;padding:22px 18px;border:1px solid #b2c19f45;border-radius:17px;background:#e6ebdc88;margin:24px 0}.shared-model-card>div{display:flex;flex-direction:column;gap:5px;min-width:0}.shared-model-card b{font-family:var(--serif);font-size:21px;font-weight:500}.shared-model-card span:not(.ai-avatar):not(.tag){font-size:11px;color:var(--muted)}.shared-model-card code{font-size:10px;color:#88927c;overflow-wrap:anywhere}.shared-model-card>.tag{margin-left:auto;flex-shrink:0}.shared-privacy{line-height:1.9;margin-bottom:20px}.personal-ai-link{display:block;margin:18px auto 0;border:0;background:none;font-size:11px;color:var(--muted)}.shared-return{width:100%;margin-bottom:18px;font-size:12px}@media(max-width:600px){.shared-model-card{gap:10px;padding:18px 12px}.shared-model-card b{font-size:18px}.shared-model-card>.tag{display:none}}@font-face{font-family:Carrot Reader Kai;src:url(/assets/fonts/carrot-reader-kai-v1.530.woff2) format("woff2");font-style:normal;font-weight:400;font-display:swap}:root{--reader-font: var(--serif)}:root[data-reader-font=sans]{--reader-font: var(--body)}:root[data-reader-font=wenkai]{--reader-font: "Carrot Reader Kai", "Kaiti SC", KaiTi, var(--serif)}.book-article .paragraph,.book-article .article-header h2,.book-article .section-label h3{font-family:var(--reader-font)}.reading-options-button b{font:16px/1 var(--serif)}.reading-options{width:440px}.font-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:0;padding:0;margin:24px 0}.font-choices legend{margin-bottom:12px;font-size:12px;color:var(--muted)}.reading-options .font-option{display:flex;flex-direction:column;gap:10px;align-items:center;min-width:0;margin:0;padding:14px 6px;border:1px solid var(--line);border-radius:13px;background:#fffdf780;cursor:pointer}.font-option.selected{border-color:var(--accent);background:#ad593c09;color:var(--accent-dark)}.font-option:focus-within{outline:2px solid var(--accent);outline-offset:3px}.font-option-name{display:flex;align-items:center;gap:5px;font-size:12px}.reading-options .font-option input{width:14px;height:14px;min-height:0;margin:0;accent-color:var(--accent)}.font-option .font-sample{font-size:23px;line-height:1.5;color:var(--ink);white-space:nowrap}.font-option small{font-size:10px;color:var(--muted)}.font-option[data-font=serif] .font-sample{font-family:var(--serif)}.font-option[data-font=sans] .font-sample{font-family:var(--body)}.font-option[data-font=wenkai] .font-sample{font-family:"Carrot Reader Kai",KaiTi,var(--serif)}.reading-size-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;font-size:12px;color:var(--muted)}.reading-size-row .font-tools{height:44px;background:#fffdf780}.reading-size-row .font-tools button{min-width:48px;min-height:42px;font-size:17px}.reading-size-row output{min-width:32px;text-align:center;font:12px var(--mono)}.reading-font-preview{font:var(--reader-size)/1.9 var(--reader-font);padding:20px;border:1px solid var(--line);border-radius:13px;background:#fffdf7;overflow-wrap:anywhere}.reading-options-hint{margin:14px 0 20px}.reading-options-done{width:100%}.loading-page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;padding:40px 24px;margin:24px auto;border-radius:24px;min-height:260px}.loading-page h2{font:22px var(--serif);color:var(--ink);margin:18px 0 8px}.loading-page p{color:var(--muted);margin:0 0 24px;font-size:13px}.comic-image-button{position:relative}.comic-load-message{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:90%;padding:12px 18px;border-radius:14px;background:#fffdf7ee;color:var(--muted);font:13px/1.6 var(--body);box-shadow:var(--shadow);pointer-events:none}.comic-load-message[hidden]{display:none}body.is-comic{height:100dvh;overflow:hidden}body.is-comic .app-shell{height:100dvh;min-height:0;padding-bottom:max(8px,env(safe-area-inset-bottom))}body.is-comic main{display:flex;flex-direction:column;min-height:0}body.is-comic #view{display:flex;flex-direction:column;flex:1;min-height:0}body.is-comic .topbar,body.is-comic .reader-head,body.is-comic .reader-toolbar,body.is-comic .reading-bottom{flex-shrink:0}body.is-comic .reader-grid.mode-comic{flex:1;height:auto;min-height:0;grid-template-rows:minmax(0,1fr)}.reader-grid.mode-comic .comic-pane{height:100%;min-height:0}.mode-comic .comic-head,.mode-comic .comic-caption{display:none}.mode-comic .comic-scroll{display:flex;flex:1;min-height:0;overflow:hidden;padding:12px}.mode-comic .comic-image-button{display:flex;flex:1;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}.mode-comic .comic-image{display:block;width:100%;height:100%;max-width:none;min-height:0;object-fit:contain;box-shadow:none}.comic-controls,.comic-strip{flex-shrink:0}@media(max-width:600px),(max-width:950px)and (max-height:500px){body.is-reader .reader-toolbar{flex-wrap:nowrap;gap:4px;padding:4px}body.is-reader .reader-toolbar .spacer{display:none}body.is-reader .reader-toolbar>.btn{width:36px;min-width:36px;min-height:40px;padding:5px}body.is-reader .reader-toolbar>.btn span{display:none}body.is-reader .reader-toolbar #chapter-select{width:0;min-width:0;max-width:none;flex:1;min-height:40px;font-size:11px;padding-left:4px;padding-right:16px}body.is-comic .app-shell{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}body.is-comic main{padding:0}body.is-comic .topbar,body.is-comic .reading-bottom{display:none}body.is-comic .reader-head{flex-wrap:nowrap;gap:5px;margin-bottom:8px;min-height:40px}body.is-comic .reader-title{flex:1;min-width:0}body.is-comic .reader-title h1{font-size:15px}body.is-comic .reader-title p{display:none}body.is-comic .reader-head>.icon-btn{width:32px;min-height:40px;padding:6px}body.is-comic .mode-tabs{margin-left:auto;gap:0;padding:3px;flex-shrink:0}body.is-comic .mode-tab{min-height:32px;padding:5px 7px!important;font-size:10px}body.is-comic .reader-toolbar{margin-bottom:8px}.reader-grid.mode-comic .comic-pane{border-radius:14px}.mode-comic .comic-scroll{padding:4px}.mode-comic .comic-controls{display:block;padding:6px 10px}.mode-comic .comic-pagination{min-width:0;gap:6px}.mode-comic .comic-pagination .icon-btn{width:40px;min-height:40px}.mode-comic .comic-pagination select{flex:1;min-width:0;min-height:40px}.mode-comic .source-jump{width:100%;max-width:none;min-height:32px;margin-top:4px;padding-top:6px;border-top:1px solid var(--line)}.mode-comic .comic-strip{padding:8px 10px}.reading-options{padding:22px 18px}.font-choices{gap:7px}}
