:root{--bg: #eceae4;--paper: #f7f5ef;--card: #ffffff;--panel: #ffffff;--line: #d9d3c6;--text: #2e2923;--muted: #7a7265;--sub: #6b5a48;--brand: #b9712f;--brand2: #995a1f;--accent: #c9783d;--accent-soft: #f2e3d2;--danger: #b94f3b;--shadow: 0 6px 18px rgba(46, 33, 15, .06);--reader-font: 17px;--reader-width: 1120px}*{box-sizing:border-box}[hidden]{display:none!important}.mobile-only{display:none}body{margin:0;color:var(--text);background:radial-gradient(circle at 16% 8%,#faf6ef 0%,var(--bg) 42%,#e8e5de 100%);font-family:SF Pro Display,PingFang SC,Hiragino Sans GB,Noto Sans SC,sans-serif;height:100vh;display:flex;flex-direction:column}body.theme-dark{--bg: #1f2328;--paper: #232a31;--card: #2a333d;--panel: #2a333d;--line: #38424f;--text: #e8e3dc;--muted: #a7acb2;--sub: #a7acb2;--brand: #d08c52;--brand2: #b9712f;--accent: #d08c52;--accent-soft: #3c2f26;--danger: #dc7667;--shadow: 0 10px 28px rgba(0, 0, 0, .36);background:radial-gradient(circle at 20% 8%,#2b3138,#1f2328 45%,#181c21)}.topbar{position:sticky;top:0;z-index:48;height:64px;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid var(--line);background:#f8f5eee6;backdrop-filter:blur(10px)}.brand-wrap{display:flex;align-items:center;min-width:210px}.brand-home-link{display:inline-flex;align-items:center;text-decoration:none;border-radius:10px}.brand-home-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.brand-dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(145deg,#e3af72,#cb7f43)}.brand{font-weight:700;letter-spacing:.3px;font-size:15px}.brand-logo{height:46px;width:auto;display:block;object-fit:contain;filter:drop-shadow(0 4px 12px rgba(75,33,0,.16))}.brand-tagline{font-size:11px;color:var(--sub);letter-spacing:.3px;margin-left:10px;white-space:nowrap;opacity:.8}.status-wrap{position:relative;margin-left:auto}.status-toggle-btn{min-width:62px}.status{position:absolute;top:calc(100% + 8px);right:0;z-index:66;min-width:360px;max-width:min(860px,calc(100vw - 30px));color:#6d5f4f;font-size:12px;line-height:1.45;text-align:left;background:#fff8ee;border:1px solid #e3ccb3;border-radius:12px;box-shadow:0 14px 28px #51381c2e;padding:10px 12px;white-space:normal}.top-icon-btn{height:34px;min-width:42px;padding:0 10px;border-radius:9px}.agent-pulse{position:fixed;top:76px;right:14px;z-index:80;border:1px solid #e2c6a6;background:#fff7eb;color:#7f4d25;border-radius:999px;box-shadow:0 10px 24px #744a222e;padding:7px 12px;display:inline-flex;align-items:center;gap:8px;max-width:min(520px,calc(100vw - 32px))}body.theme-dark .agent-pulse{background:#3a2f26;color:#f8d7b6;border-color:#88654a}body.theme-dark .status{color:#d4dbe2;background:#2a323d;border-color:#47586f;box-shadow:0 18px 32px #00000059}.agent-pulse-dot{width:9px;height:9px;border-radius:50%;background:#cc7d3f;animation:pulse-dot 1s ease-in-out infinite}.agent-pulse-text{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layout{--left-col: 292px;--middle-col: 360px;display:grid;grid-template-columns:var(--left-col) var(--middle-col) minmax(0,1fr);gap:1px;background:var(--line);flex:1;min-height:0;position:relative}.layout.layout-two-col{--left-col: 0px;grid-template-columns:var(--middle-col) minmax(0,1fr)}.layout.layout-two-col .panel-left,.layout.layout-two-col .panel-resizer-left,.layout.layout-two-col .panel-splitter-left{display:none!important}.layout.layout-two-col .panel-resizer-middle,.layout.layout-two-col .panel-splitter-middle{left:var(--middle-col)}body.collapse-left .layout{--left-col: 0px}body.collapse-middle .layout{--middle-col: 0px}body.collapse-left .panel-left,body.collapse-middle .panel-middle{opacity:0;pointer-events:none;visibility:hidden}body.focus-mode .layout{grid-template-columns:minmax(0,1fr)}body.focus-mode .panel-left,body.focus-mode .panel-middle{display:none}body.focus-mode .panel-right{grid-column:1 / -1}body.focus-mode .panel-resizer{display:none}body.focus-mode .reader,body.focus-mode .doc-pane{max-width:min(1440px,calc(100vw - 28px))}.mobile-drawer-backdrop{position:fixed;inset:0;border:0;background:#1c161073;z-index:58}.panel{background:var(--paper);min-height:0;min-width:0;display:flex;flex-direction:column;transition:opacity .18s ease}.panel-resizer{position:absolute;top:78px;width:12px;height:28px;padding:0;border:1px solid #d9ccb9;border-radius:8px;background:#f8f1e8f2;color:#7b5637;box-shadow:0 8px 14px #72512d24;cursor:pointer;z-index:26;display:inline-flex;align-items:center;justify-content:center;transform:translate(-50%);transition:.18s ease}.panel-resizer:hover{background:#fdf3e7;border-color:#d9ad84}.panel-resizer:disabled{opacity:.4;cursor:not-allowed}.panel-resizer-left{left:var(--left-col)}.panel-resizer-middle{left:calc(var(--left-col) + var(--middle-col))}.panel-splitter{position:absolute;top:64px;bottom:0;width:6px;transform:translate(-50%);z-index:24;cursor:col-resize;background:transparent;border-radius:8px}.panel-splitter:before{content:"";position:absolute;inset:0 2px;border-radius:999px;background:#91724e29;opacity:0;transition:opacity .15s ease}.panel-splitter:hover:before,.panel-splitter.dragging:before{opacity:1}.panel-splitter-left{left:var(--left-col)}.panel-splitter-middle{left:calc(var(--left-col) + var(--middle-col))}body.collapse-left .panel-resizer-left{left:8px;transform:none}body.collapse-middle:not(.collapse-left) .panel-resizer-middle{left:calc(var(--left-col) + 22px);transform:none}body.collapse-left.collapse-middle .panel-resizer-left{left:8px}body.collapse-left.collapse-middle .panel-resizer-middle{left:30px;transform:none}body.theme-dark .panel-resizer{background:#363d46f2;border-color:#566171;color:#d6ba9c;box-shadow:0 12px 24px #00000047}body.focus-mode .panel-splitter,body.collapse-left .panel-splitter-left,body.collapse-middle .panel-splitter-middle{display:none}.panel-head{height:56px;display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 16px}.panel-head.split{justify-content:space-between}.head-title{font-size:14px;font-weight:600}.head-sub{margin-top:2px;font-size:11px;color:var(--muted)}.toolbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);flex-wrap:wrap}#read-toolbar{position:sticky;top:64px;z-index:12;background:#f7f5efe6;backdrop-filter:blur(8px)}body.theme-dark #read-toolbar{background:#232a31eb}.toolbar.compact{gap:7px;padding:8px 10px}.tts-audio{height:32px;max-width:280px}.auto-full-progress{border-bottom:1px solid var(--line);padding:7px 12px 9px;background:#f9f4ec}.auto-full-line{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#6a5948;margin-bottom:6px}.auto-full-track{height:8px;border-radius:999px;background:#e8dccf;overflow:hidden}.auto-full-fill{height:100%;width:0%;background:linear-gradient(90deg,#cc7d3f,#dca671);transition:width .28s ease}.toolbar-menu{position:relative;margin-left:auto;z-index:28}.menu-backdrop{position:fixed;inset:0;border:0;background:transparent;z-index:24}#project-actions-toggle-btn{position:relative;z-index:30}.menu-popover{position:absolute;top:calc(100% + 8px);right:0;min-width:190px;background:#fffdf8;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 32px #2f211129;padding:8px;display:flex;flex-direction:column;gap:5px;z-index:32}.menu-title{font-size:11px;color:#8e7f6e;padding:2px 6px 6px}.menu-item{border:1px solid var(--line);background:#f6f1e9;color:#5b4d3b;border-radius:8px;min-height:32px;padding:0 10px;text-align:left;font-size:13px;cursor:pointer}.menu-item:hover{background:#f9f4ed}.menu-item:disabled{opacity:.45;cursor:not-allowed}.menu-item.danger{color:#9f4333;border-color:#dfb8a8;background:#fbeeea}.menu-divider{height:1px;background:#e7ded2;margin:3px 2px}.list{overflow:auto;padding:10px 10px 14px;display:flex;flex-direction:column;gap:8px}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 11px;box-shadow:none;cursor:pointer;transition:.18s ease}.card:hover{border-color:#d2c6b3;box-shadow:var(--shadow);transform:translateY(-1px)}.card.active{border-color:#d8b28f;background:linear-gradient(180deg,#fffefb,#fff8ee);box-shadow:0 10px 22px #93582221}.card.loading{border-color:#e0b88e;box-shadow:0 10px 20px #b7783a1f}.card h4{margin:0;font-size:14px;line-height:1.35}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:6px}.card-head-actions{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.gen-badge{display:inline-flex;align-items:center;gap:6px;margin-left:6px;font-size:11px;color:#824c21;border:1px solid #e4c29e;background:#fbf0e3;border-radius:999px;padding:2px 7px}.gen-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#cc7d3f;animation:pulse-dot 1s ease-in-out infinite}.card p{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}.clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.meta{margin-top:7px;color:#8c8172;font-size:11px}.chapter-push-btn{border:1px solid #e3cfba;background:#faf3e8;color:#6c4628;border-radius:999px;font-size:11px;line-height:1;padding:4px 8px;cursor:pointer}.card-actions-inline{margin-top:8px;display:flex;justify-content:flex-end}.state-pill{display:inline-flex;align-items:center;border-radius:999px;font-size:11px;line-height:1;padding:4px 8px;border:1px solid #d6cec0;background:#f4efe6;color:#5d5040;white-space:nowrap}.state-pill.state-active{border-color:#cddfce;color:#2f6b3f;background:#ecf7ef}.state-pill.state-paused{border-color:#dfd4c4;color:#7a684d;background:#f6f0e8}.state-pill.state-completed{border-color:#d0d8e8;color:#325782;background:#edf3fc}.state-pill.state-starred{border-color:#e7d2ab;color:#8b5b19;background:#faf2e2}.meta-chips{margin-top:7px;display:flex;flex-wrap:wrap;gap:6px}.meta-chip{display:inline-flex;align-items:center;border-radius:999px;border:1px solid #e1d6c7;background:#f8f4ec;color:#756959;font-size:11px;line-height:1;padding:4px 8px}.meta-chip.accent{border-color:#e2c3a1;background:#fdf2e5;color:#7f4d25}.progress-row{margin-top:8px;display:flex;justify-content:space-between;align-items:center;gap:10px}.progress-text{color:#7c7163;font-size:11px}.progress-track{margin-top:4px;height:6px;background:#ece2d5;border-radius:999px;overflow:hidden}.progress-track>span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#cc7d3f,#dfab74)}body.theme-dark .state-pill{border-color:#4a5563;background:#313a45;color:#cdd3da}body.theme-dark .state-pill.state-active{border-color:#51725b;background:#2f3d35;color:#b9dcc2}body.theme-dark .state-pill.state-paused{border-color:#5b5b56;background:#3b3a34;color:#d4cab5}body.theme-dark .state-pill.state-completed{border-color:#4b5e7a;background:#2f3e53;color:#c2d6ef}body.theme-dark .state-pill.state-starred{border-color:#746142;background:#3d3425;color:#f0d6a8}body.theme-dark .meta-chip{border-color:#445161;background:#2e3743;color:#b8c0ca}body.theme-dark .meta-chip.accent{border-color:#6f563f;background:#3c2f25;color:#f0ccaa}body.theme-dark .progress-text{color:#a6afb9}body.theme-dark .progress-track{background:#2f3945}.chapter-push-btn:disabled{opacity:.5;cursor:not-allowed}.tags{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:10px;color:#805d41;background:#f7eee4;border:1px solid #e9d4bd;border-radius:999px;padding:2px 6px}.btn{border:0;height:34px;border-radius:10px;padding:0 12px;cursor:pointer;background:var(--accent);color:#fff;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1;text-decoration:none;box-sizing:border-box;vertical-align:middle;white-space:nowrap}.btn.secondary{background:#dfd8cc;color:#473f33}.btn.ghost{background:#f4efe6;color:#5a4c3b;border:1px solid var(--line)}.btn.ghost.active{border-color:#d6ad86;background:#faeddc;color:#6a3f21}.btn.ghost.danger{color:var(--danger);border-color:#ddbaa8;background:#fcf2ef}.btn:disabled{opacity:.45;cursor:not-allowed}.search{height:34px;border-radius:9px;border:1px solid var(--line);background:#fff;color:var(--text);padding:0 10px;font:inherit;font-size:13px;min-width:190px}.chip{border:1px solid var(--line);background:#f6f2eb;color:#5d5143;height:30px;border-radius:999px;padding:0 11px;cursor:pointer;font-size:12px}.chip.active{background:var(--accent-soft);border-color:#d8b18c;color:#623a1e}.checkline{display:inline-flex;gap:6px;align-items:center;color:var(--muted);font-size:12px}.tabs{display:flex;gap:6px}.tab{border:1px solid var(--line);background:#f4f0e9;color:#5f5447;padding:5px 10px;border-radius:999px;font-size:12px;cursor:pointer}.tab.active{background:var(--accent-soft);border-color:#d8b08a;color:#623a1e}.reader,.doc-pane{padding:12px 16px 24px;overflow:auto;white-space:pre-wrap;line-height:1.66;font-size:var(--reader-font)}.reader{max-width:var(--reader-width);width:100%;margin:4px auto 0}.reader.empty,.doc-pane.empty{color:var(--muted)}.reader h2{margin:0 0 6px;font-size:24px;line-height:1.28;text-align:center}.reader .summary{font-size:13px;color:#564c3f;background:var(--accent-soft);border-left:4px solid #d3a985;padding:9px 11px;border-radius:9px;margin-bottom:14px;display:flex;flex-direction:column;gap:4px}.reader .summary>strong{font-size:11px;letter-spacing:.3px;text-transform:uppercase;color:#835b3c}.reader .content{font-size:var(--reader-font);line-height:1.72}.reader .content.prose{white-space:normal}.reader .content.prose p{margin:0 0 .92em;text-indent:2em}.reader .content.prose p:last-child{margin-bottom:0}.reader .content.prose p.empty-para{text-indent:0;color:var(--muted)}.chapter-top{margin-bottom:8px;color:#948676;font-size:12px;text-align:center}.chapter-runtime{margin:0 auto 8px;color:#7a5738;font-size:12px;display:flex;width:fit-content;align-items:center;gap:8px;border:1px solid #ebd3b8;background:#fbf3e8;border-radius:999px;padding:4px 10px}.loader-dot{width:8px;height:8px;border-radius:50%;background:#cc7d3f;animation:pulse-dot 1s ease-in-out infinite}.reader-loading{margin-top:8px;display:flex;flex-direction:column;gap:10px;border:1px solid #ead8c2;border-radius:10px;background:#fffcf7;padding:14px}.skeleton-line{height:14px;border-radius:999px;background:linear-gradient(90deg,#f3e7d8 25%,#fbf4ea,#f3e7d8 75%);background-size:200% 100%;animation:skeleton-shimmer 1.25s linear infinite}.skeleton-line.w58{width:58%}.skeleton-line.w92{width:92%}.skeleton-line.w74{width:74%}.skeleton-line.w86{width:86%}.quality-line{margin-bottom:8px;display:flex;gap:6px;flex-wrap:wrap}.quality-pill{font-size:11px;padding:2px 7px;border-radius:999px;border:1px solid #e6ceb4;background:#faefe2;color:#6b4427}.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.review-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px}.review-card h4{margin:0 0 8px;font-size:13px}.review-card p{margin:0;font-size:12px;line-height:1.6;color:#5c5246;white-space:pre-wrap}.task-row{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:10px}.task-pane-actions{display:flex;justify-content:flex-end;margin-bottom:10px}.task-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}.task-type{font-size:12px;font-weight:600;color:#5d4a37}.task-status{font-size:11px;color:#6b4427;background:#f8eddf;border:1px solid #e8d3ba;border-radius:999px;padding:1px 8px}.task-status.status-failed{color:#9a2d2d;background:#faecea;border-color:#e2b1ac}.task-status.status-running{color:#2f5e92;background:#edf5ff;border-color:#bcd4ef}.task-status.status-queued{color:#8b5b19;background:#f9f1e2;border-color:#e7d1ab}.task-project{font-size:11px;color:#8b7e6f}.task-phase{font-size:11px;border-radius:999px;padding:1px 8px;border:1px solid #e6d9c9;background:#f5efe6;color:#645543}.task-phase-awaken{color:#705335;border-color:#e5cfb5;background:#f8efdf}.task-phase-express{color:#2f5e92;border-color:#bcd4ef;background:#edf5ff}.task-phase-confirm{color:#2f6b3f;border-color:#bddcc4;background:#ecf7ef}.task-phase-feedback{color:#9a2d2d;border-color:#e2b1ac;background:#faecea}.task-meta{font-size:11px;color:#857867;margin-bottom:4px}.task-stage{font-size:12px;color:#4f463d;line-height:1.5}.task-error{margin-top:4px;font-size:11px;color:#9e3e35;line-height:1.5}.task-actions{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}.task-timeline{margin-top:8px;border:1px dashed #dfd3c4;border-radius:8px;background:#fffdf9;padding:8px;display:flex;flex-direction:column;gap:6px}.task-timeline-row{display:grid;grid-template-columns:155px 56px 1fr;align-items:center;gap:8px}.task-timeline-time{font-size:11px;color:#8b7c6d}.task-timeline-phase{font-size:10px;text-align:center;border-radius:999px;padding:1px 6px;border:1px solid #e6d9c9;background:#f5efe6}.task-timeline-stage{font-size:12px;color:#5a5044;line-height:1.4}.task-timeline-empty{font-size:12px;color:#8b7b6a;display:inline-flex;align-items:center;gap:8px}.risk-high{color:#9a2d2d;border-color:#e2b1ac;background:#faecea}.risk-mid{color:#8b5b19;border-color:#e7d1ab;background:#f9f1e2}.risk-low{color:#2f6b3f;border-color:#bddcc4;background:#ecf7ef}.reader-editor{display:flex;flex-direction:column;gap:10px}.reader-editor input,.reader-editor textarea,.dialog-form input,.dialog-form textarea,.dialog-form select{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:8px 10px;font:inherit;font-size:14px}.reader-editor textarea,.dialog-form textarea{min-height:96px;resize:vertical}.reader-editor textarea.large{min-height:430px;line-height:1.8}.range-label{color:var(--muted);font-size:12px;display:inline-flex;gap:6px;align-items:center}.range-label input{width:92px}.star{color:#d2954d;font-size:13px;margin-left:6px}dialog{border:0;border-radius:14px;width:min(860px,calc(100vw - 32px));padding:0;box-shadow:0 22px 50px #271b0d47}#fanqie-dialog{width:min(700px,calc(100vw - 32px))}dialog::backdrop{background:#26190d59}.dialog-form{padding:18px}.dialog-form.dialog-form-narrow{width:min(680px,calc(100vw - 32px))}.command-form{display:flex;flex-direction:column;gap:10px}.command-list{border:1px solid var(--line);border-radius:10px;background:#fffdf9;max-height:340px;overflow:auto;display:flex;flex-direction:column}body.theme-dark .command-list{background:#1f252c}.command-item{border:0;border-bottom:1px solid #eee2d3;background:transparent;text-align:left;padding:10px 12px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--text);font-size:13px}.command-item:last-child{border-bottom:0}.command-item:hover,.command-item.active{background:#f6eee4}body.theme-dark .command-item{border-bottom-color:#343e49}body.theme-dark .command-item:hover,body.theme-dark .command-item.active{background:#2f3741}body.theme-dark .topbar{background:#1c222aeb;border-bottom-color:#404c5c}body.theme-dark .panel{background:#232c36}body.theme-dark .panel-head,body.theme-dark .toolbar{background:#202730b8}body.theme-dark .auto-full-progress{background:#2a333f}body.theme-dark .auto-full-line{color:#c0c9d4}body.theme-dark .auto-full-track{background:#3a4654}body.theme-dark .menu-popover{background:#252f3a;border-color:#44546a;box-shadow:0 18px 34px #00000057}body.theme-dark .menu-title{color:#a8b5c4}body.theme-dark .menu-item{background:#2f3a47;border-color:#475972;color:#dce6f0}body.theme-dark .menu-item:hover{background:#344254}body.theme-dark .menu-item.danger{color:#f1b1a6;border-color:#7b4a49;background:#472e31}body.theme-dark .menu-divider{background:#3e4c61}body.theme-dark .btn{color:#1f1913}body.theme-dark .btn.secondary{background:#374353;color:#e2e9f2}body.theme-dark .btn.ghost{background:#2c3744;color:#d7e0ea;border-color:#4a5a70}body.theme-dark .btn.ghost.active{border-color:#7d613f;background:#3d3228;color:#f0d3b1}body.theme-dark .btn.ghost.danger{background:#432c30;border-color:#7a4b50;color:#f0b2a9}body.theme-dark .search{background:#1f2933;border-color:#4a5b72;color:#e6edf4}body.theme-dark .search::placeholder{color:#92a0b1}body.theme-dark .chip{background:#2d3744;border-color:#4a5b71;color:#d4deea}body.theme-dark .chip.active{background:#3b3026;border-color:#74583f;color:#f0d2af}body.theme-dark .tab{background:#2e3947;border-color:#4a5c72;color:#d4deea}body.theme-dark .tab.active{background:#3b3026;border-color:#74583f;color:#f0d2af}body.theme-dark .card{background:#27313d;border-color:#435469;box-shadow:none}body.theme-dark .card:hover{border-color:#5d7088;box-shadow:0 10px 22px #0000003d}body.theme-dark .card.active{border-color:#8a6a4f;background:linear-gradient(180deg,#2d3642,#312e2a);box-shadow:0 10px 24px #00000047}body.theme-dark .card p{color:#b8c2ce}body.theme-dark .meta{color:#9ca8b5}body.theme-dark .tag{color:#cfb69a;background:#382f27;border-color:#6a5644}body.theme-dark .chapter-push-btn{background:#3b3025;border-color:#73573f;color:#efd4b3}body.theme-dark .chapter-push-btn:disabled{opacity:.42}body.theme-dark .reader .summary{color:#ddcbba;background:linear-gradient(90deg,#3d2f24,#2f2620);border-left-color:#9c6f49}body.theme-dark .reader .summary>strong{color:#f0ceab}body.theme-dark .chapter-top{color:#a0aab8}body.theme-dark .chapter-runtime{color:#f1d4b4;border-color:#6f553d;background:#3b2f24}body.theme-dark .reader-loading{border-color:#425366;background:#222c37}body.theme-dark .skeleton-line{background:linear-gradient(90deg,#303c4b 25%,#3a4858,#303c4b 75%);background-size:200% 100%}body.theme-dark .quality-pill{border-color:#6e5842;background:#3b3025;color:#efd1af}body.theme-dark .review-card{background:#27313d;border-color:#435469}body.theme-dark .review-card h4{color:#e4ebf3}body.theme-dark .review-card p{color:#c6d0dc}body.theme-dark .task-row{background:#27313d;border-color:#435469}body.theme-dark .task-type,body.theme-dark .task-stage,body.theme-dark .task-timeline-stage{color:#d8e1eb}body.theme-dark .task-status{color:#f1d0ad;background:#3a3025;border-color:#6d573f}body.theme-dark .task-project,body.theme-dark .task-meta,body.theme-dark .task-timeline-time{color:#a6b2bf}body.theme-dark .task-timeline{border-color:#495a70;background:#242f3a}body.theme-dark .task-timeline-empty{color:#afbbc7}body.theme-dark .reader-editor input,body.theme-dark .reader-editor textarea,body.theme-dark .dialog-form input,body.theme-dark .dialog-form textarea,body.theme-dark .dialog-form select{background:#1f2833;border-color:#4a5b72;color:#e8eef5}body.theme-dark .dialog-form input::placeholder,body.theme-dark .dialog-form textarea::placeholder{color:#8f9caf}body.theme-dark dialog{background:#202a34;border:1px solid #44556a;color:var(--text);box-shadow:0 24px 54px #00000070}body.theme-dark dialog::backdrop{background:#05090da6}body.theme-dark .dialog-form h3{color:#e6edf5}body.theme-dark .fanqie-preview{background:#202933;border-color:#43556c;color:#c4ceda}body.theme-dark .fanqie-preview-row{border-bottom-color:#45566d}body.theme-dark .empty-note{background:#25303b;border-color:#43546a;color:#b7c2ce}.command-key{font-size:11px;color:#8e7c67}.command-empty{padding:12px;font-size:12px;color:var(--muted)}.dialog-form h3{margin:0 0 14px}.create-mode-switch{display:inline-flex;gap:8px;margin:0 0 12px}.project-import-grid{margin-top:2px}.project-import-actions{display:flex;gap:8px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid.fanqie-grid{grid-template-columns:1fr}.fanqie-preview{border:1px solid var(--line);background:#fffdf9;border-radius:10px;padding:8px 10px;min-height:120px;max-height:260px;overflow:auto;color:#6a5b4a;font-size:12px}.fanqie-preview-row{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #eadfce}.fanqie-preview-row:last-child{border-bottom:0}label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px}label.full,.full{grid-column:1 / -1}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.empty-note{padding:12px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:13px;background:#faf8f4}body.home-page{height:auto;min-height:100vh}.home-topbar{gap:10px}.home-search{max-width:440px;flex:1}.home-top-stats{margin-left:auto;display:inline-grid;grid-template-columns:repeat(3,minmax(74px,1fr));gap:6px;align-items:stretch}.home-top-stat{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:5px 8px;min-width:0}.home-top-stat-action{cursor:pointer;text-align:left;color:inherit}.home-top-stat-action.active{border-color:#d8b08a;background:var(--accent-soft)}.home-top-stat .label{font-size:11px;color:var(--muted);line-height:1.2}.home-top-stat .value{margin-top:2px;font-size:18px;line-height:1.1;font-weight:700}.home-shell{width:min(1220px,calc(100% - 28px));margin:18px auto 24px;display:grid;gap:14px}.home-panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:14px}.home-intro{display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,420px);gap:12px;align-items:center}.home-intro h1{margin:0;font-size:28px}.home-intro p{margin:8px 0 0;color:var(--muted)}.home-hero-section{background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 8%,var(--surface)) 0%,var(--surface) 100%);border-radius:16px;padding:28px 24px!important;border:1px solid color-mix(in srgb,var(--brand) 20%,var(--line))}.home-hero-features{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.home-hero-features span{font-size:13px;color:var(--muted);background:color-mix(in srgb,var(--brand) 10%,var(--bg));padding:3px 10px;border-radius:20px;border:1px solid color-mix(in srgb,var(--brand) 15%,var(--line))}.home-hero-stats-panel{display:flex;gap:20px;justify-content:center;flex-wrap:wrap}.home-hero-stat{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:80px}.home-hero-stat span{font-size:28px;font-weight:700;color:var(--brand);line-height:1;font-variant-numeric:tabular-nums}.home-hero-stat label{font-size:12px;color:var(--muted);white-space:nowrap}.home-hero-actions{margin-top:14px;display:flex;gap:8px;flex-wrap:wrap}.home-capabilities-head{margin-bottom:10px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}.home-capabilities-head h2{margin:0;font-size:18px}.home-capabilities-head span{color:var(--muted);font-size:12px}.home-capability-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.home-capability-card{text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);padding:12px;cursor:pointer;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}.home-capability-card:hover{border-color:#d9ad84;transform:translateY(-1px);box-shadow:0 10px 20px #734d221f}.home-capability-card strong{display:block;font-size:15px}.home-capability-card p{margin:6px 0 0;color:var(--muted);font-size:12px}.ui-toast{position:fixed;right:14px;bottom:16px;z-index:120;min-width:220px;max-width:min(460px,calc(100vw - 20px));border-radius:10px;border:1px solid #e0cab1;background:#fff8ee;color:#6b4427;box-shadow:0 12px 26px #4c2f1133;padding:10px 12px;font-size:13px;line-height:1.45}.ui-toast.error{border-color:#e2b1ac;background:#fff1ef;color:#9a2d2d}.home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-stat{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:10px 12px}.home-stat .label{font-size:12px;color:var(--muted)}.home-stat .value{margin-top:4px;font-size:26px;font-weight:700}.home-filter-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.home-filter-toolbar{padding:0;border:0}.home-hint{font-size:12px;color:var(--muted)}.home-book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.book-card{border:1px solid var(--line);background:var(--card);border-radius:14px;padding:12px;display:grid;gap:9px;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.book-card:hover{transform:translateY(-1px);border-color:#d9ad84;box-shadow:0 10px 22px #734d221f}.book-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.book-card-head h3{margin:0;font-size:18px}.book-desc{margin:0;color:var(--muted);font-size:13px;line-height:1.5;min-height:58px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.book-actions{display:flex;justify-content:flex-end}.home-advanced{border:1px solid var(--line);border-radius:10px;background:#faf8f4;padding:6px 8px}.home-advanced summary{cursor:pointer;color:var(--muted);font-size:12px;margin-bottom:8px}body.theme-dark .home-advanced{background:#2b333c}.genre-picker-field{grid-column:1 / -1;display:flex;flex-direction:column;gap:6px}.genre-picker-label{font-size:12px;color:var(--muted);font-weight:500}.genre-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.genre-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 4px;border:1.5px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-size:12px;cursor:pointer;transition:border-color .15s,background .15s,color .15s;line-height:1.4;text-align:center}.genre-card:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}.genre-card.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);font-weight:600}body.theme-dark .genre-card{background:#1f2833;border-color:#3a4a5c}body.theme-dark .genre-card:hover,body.theme-dark .genre-card.active{background:color-mix(in srgb,var(--accent) 18%,#1f2833);border-color:var(--accent)}.desc-ai-label{display:flex;flex-direction:column;gap:4px}.desc-label-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);font-weight:500}.desc-ai-btn{font-size:11px;padding:2px 10px;height:auto;border-radius:20px}.creation-progress-overlay{position:fixed;inset:0;background:#00000085;display:flex;align-items:center;justify-content:center;z-index:9000;backdrop-filter:blur(3px)}.creation-progress-overlay[hidden]{display:none}.creation-progress-card{background:var(--bg);border-radius:16px;padding:32px 36px;width:min(400px,calc(100vw - 40px));box-shadow:0 20px 60px #0000004d;display:flex;flex-direction:column;gap:16px}.creation-progress-title{font-size:17px;font-weight:600;color:var(--text);text-align:center}.creation-progress-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;min-height:80px}.creation-step{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:8px;opacity:1;transform:translateY(0);transition:opacity .3s,transform .3s}.creation-step:before{content:"\2713";font-size:13px;color:var(--accent);flex-shrink:0}.creation-step.entering{opacity:0;transform:translateY(8px)}.creation-step-done{color:var(--accent);font-weight:600}.creation-progress-bar-wrap{height:4px;background:var(--line);border-radius:4px;overflow:hidden}.creation-progress-bar{height:100%;background:var(--accent);border-radius:4px;width:0%;transition:width .6s ease}body.theme-dark .creation-progress-card{background:#1e252d;box-shadow:0 20px 60px #00000080}body.theme-dark .ui-toast{border-color:#566171;background:#303842;color:#e9d7c3;box-shadow:0 14px 30px #00000057}@keyframes pulse-dot{0%{opacity:.45;transform:scale(.88)}50%{opacity:1;transform:scale(1)}to{opacity:.45;transform:scale(.88)}}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media(max-width:1250px){.home-book-grid,.home-capability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{--left-col: 260px;--middle-col: 320px;grid-template-columns:var(--left-col) var(--middle-col) minmax(460px,1fr)}.agent-pulse{top:70px;right:10px}}@media(max-width:980px){body{min-height:100dvh}body.home-page .topbar{flex-wrap:wrap;row-gap:8px}.home-search{width:100%;max-width:none;min-width:0;order:10}.home-top-stats{order:6;margin-left:0;grid-template-columns:repeat(3,minmax(64px,1fr));gap:5px}.home-top-stat{padding:4px 7px}.home-top-stat .value{font-size:16px}.home-panel{padding:12px;border-radius:14px}.home-shell{width:calc(100% - 14px);margin-top:8px;margin-bottom:calc(18px + env(safe-area-inset-bottom,0px));gap:10px}.home-book-grid,.home-capability-grid{grid-template-columns:1fr}.home-filter-row{flex-direction:column;align-items:flex-start;margin-bottom:8px}.home-filter-toolbar{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.layout{grid-template-columns:1fr;grid-template-rows:1fr}.panel-resizer,.panel-splitter{display:none!important}.topbar{height:auto;padding:max(8px,env(safe-area-inset-top,0px)) 10px 8px;flex-wrap:nowrap}.brand-wrap{min-width:auto}.mobile-only{display:inline-flex}.mobile-reader-actions .btn{min-width:60px}.mobile-reader-actions{margin-left:auto;gap:6px;align-items:center}#project-search,#command-open-btn,#theme-toggle-btn,#status-wrap,#new-project-btn{display:none}.panel-left,.panel-middle{display:none;position:fixed;top:0;bottom:0;left:0;width:min(88vw,360px);z-index:60;border-right:1px solid var(--line);box-shadow:0 20px 40px #0000003d;height:100dvh;max-height:100dvh;overflow:hidden}body.mobile-drawer-projects .panel-left,body.mobile-drawer-chapters .panel-middle{display:flex}body.mobile-drawer-projects .mobile-drawer-backdrop,body.mobile-drawer-chapters .mobile-drawer-backdrop{display:block!important}.panel-right{min-height:0}.panel-head{min-height:52px;height:auto;padding:8px 12px}.toolbar{gap:7px;padding:8px 10px}.toolbar.compact{gap:6px;padding:7px 10px}.btn{height:36px;padding:0 11px}.chip{height:32px;padding:0 10px}.search{min-width:0;width:100%}.panel-middle>.toolbar:first-of-type{display:none}.panel-middle #auto-full-progress,#star-btn,#tts-btn,#fanqie-push-current-btn,#rewrite-btn,#review-btn,#edit-chapter-btn,#focus-mode-btn,#save-chapter-btn,#cancel-edit-btn,#line-width-wrap,#tts-audio,#line-width{display:none!important}#read-toolbar{top:0;padding:8px 10px;gap:6px}#read-toolbar .btn{height:34px}#font-size{width:102px}.reader h2{font-size:22px;margin-bottom:8px}.reader,.doc-pane{padding:14px 14px calc(20px + env(safe-area-inset-bottom,0px));max-width:100%}.reader .content,.doc-pane{line-height:1.78}dialog{width:min(860px,calc(100vw - 16px));border-radius:12px;max-height:calc(100dvh - 16px)}.dialog-form{padding:14px;max-height:calc(100dvh - 20px);overflow:auto}.dialog-actions{position:sticky;bottom:0;background:linear-gradient(to top,var(--paper),rgba(247,245,239,.92));padding-top:8px;margin-top:12px}body.theme-dark .dialog-actions{background:linear-gradient(to top,#232a31,#232a31eb)}.ui-toast{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));max-width:none;min-width:0}.agent-pulse{right:10px;top:calc(62px + env(safe-area-inset-top,0px));max-width:calc(100vw - 20px)}}@media(max-width:640px){.topbar{gap:6px;padding-left:8px;padding-right:8px}.brand-logo{height:40px}.top-icon-btn{min-width:38px;height:32px;padding:0 8px}.home-top-stats{width:100%;order:11;grid-template-columns:repeat(3,minmax(0,1fr));margin-left:0}.home-top-stat{padding:4px 6px}.home-top-stat .label{font-size:10px}.home-top-stat .value{font-size:14px}.home-panel{padding:11px}.home-hint{font-size:11px}.book-card{padding:10px;gap:7px}.book-card-head h3{font-size:16px}.book-desc{font-size:12px;min-height:0}.panel-left,.panel-middle{width:min(92vw,340px)}.panel-head{padding:8px 10px}.toolbar,.toolbar.compact{padding-left:8px;padding-right:8px}.btn{height:35px;font-size:13px}.chip{height:31px;font-size:12px}.reader,.doc-pane{padding:12px 12px calc(18px + env(safe-area-inset-bottom,0px))}.reader h2{font-size:20px}.reader .summary{padding:8px 9px;margin-bottom:12px}.reader .content{font-size:16px;line-height:1.8}dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:10px}.dialog-form{padding:12px}.grid{grid-template-columns:1fr}}.home-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}@media(max-width:1250px){.home-book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.home-book-grid{grid-template-columns:1fr}}.book-card{display:flex;flex-direction:row;align-items:flex-start;gap:14px;padding:16px;border-radius:14px;cursor:pointer}.book-cover{flex-shrink:0;width:76px;height:102px;border-radius:8px;display:flex;align-items:flex-end;justify-content:flex-start;padding:6px 8px;font-size:11px;font-weight:600;color:#ffffffd9;letter-spacing:.02em;overflow:hidden;user-select:none;position:relative}.book-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 40%,rgba(0,0,0,.35) 100%);border-radius:8px}.book-cover-char{position:absolute;top:50%;left:50%;transform:translate(-50%,-60%);font-size:32px;font-weight:700;color:#ffffffbf;z-index:1;line-height:1}.book-cover-genre{position:relative;z-index:2;font-size:10px;line-height:1.2}.book-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}.book-title-row{display:flex;align-items:center;gap:8px}.book-title-row h3{margin:0;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.book-desc{margin:0;color:var(--muted);font-size:12px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:0}.book-latest{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-latest a{color:var(--accent);text-decoration:none}.book-latest a:hover{text-decoration:underline}.book-stats-row{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);flex-wrap:wrap}.book-stat-dot{display:inline-block;width:3px;height:3px;border-radius:50%;background:var(--muted);opacity:.4;vertical-align:middle}.book-actions{display:flex;gap:6px;align-items:center;margin-top:2px;justify-content:flex-start}.book-read-btn{flex:1;height:30px;font-size:12px;padding:0 10px;border-radius:8px;border:1px solid transparent;background:var(--accent);color:#fff;cursor:pointer;transition:background .14s;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.book-read-btn:hover{background:var(--accent-soft)}body.theme-dark .book-read-btn:hover{background:color-mix(in srgb,var(--accent) 80%,#000)}.book-studio-btn{height:30px;font-size:12px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer;transition:background .14s;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.book-studio-btn:hover{background:var(--line)}.book-progress-bar{height:3px;background:var(--line);border-radius:2px;overflow:hidden}.book-progress-fill{height:100%;background:var(--accent);border-radius:2px;transition:width .3s ease}.state-pill{flex-shrink:0;display:inline-block;font-size:10px;padding:2px 7px;border-radius:20px;font-weight:500;line-height:1.6}.state-pill.active{background:#dcf0e5;color:#1e7a42}.state-pill.paused{background:#f0e5d0;color:#8b6020}.state-pill.completed{background:#e2e8f0;color:#475569}body.theme-dark .state-pill.active{background:#1a3d2a;color:#61d689}body.theme-dark .state-pill.paused{background:#3d2e1a;color:#e6a45b}body.theme-dark .state-pill.completed{background:#2a3040;color:#94a3b8}@media(max-width:480px){.genre-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-card{gap:10px;padding:12px}.book-cover{width:60px;height:80px}.book-cover-char{font-size:24px}.book-title-row h3{font-size:14px}.book-stats-row{display:none}.book-desc{-webkit-line-clamp:1;font-size:11px}.book-latest{font-size:11px}.book-read-btn,.book-studio-btn{height:44px;font-size:13px}.home-apikey-btn,.home-monthly-btn,.brand-tagline{display:none}.home-topbar{flex-wrap:wrap;height:auto;padding:8px;gap:6px}.home-search{order:10;width:100%;flex-basis:100%}}@media(max-width:640px){dialog{overflow:hidden}.dialog-form{max-height:calc(100dvh - 60px);overflow-y:auto;overscroll-behavior:contain}}.platform-stats-bar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 12px;padding:10px 20px;background:color-mix(in srgb,var(--brand) 8%,var(--bg));border-bottom:1px solid color-mix(in srgb,var(--brand) 15%,transparent);font-size:13px;color:var(--sub)}.platform-stats-bar strong{color:var(--brand);font-variant-numeric:tabular-nums}.stats-dot{color:var(--line)}@keyframes ui-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.ui-skeleton{background:linear-gradient(90deg,var(--line) 25%,color-mix(in srgb,var(--line) 55%,var(--paper)) 50%,var(--line) 75%);background-size:200% 100%;animation:ui-shimmer 1.5s ease infinite;border-radius:6px;color:transparent!important;user-select:none;pointer-events:none}@keyframes ui-btn-shimmer{0%{left:-100%}to{left:150%}}@keyframes ui-bounce-in{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.12)}80%{transform:scale(.96)}to{transform:scale(1);opacity:1}}@keyframes ui-fade-up{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.book-card{transition:transform .22s cubic-bezier(.34,1.56,.64,1),box-shadow .22s ease;position:relative;overflow:hidden}.book-card:before{content:"";position:absolute;inset:0;border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 70%,transparent),transparent 50%,color-mix(in srgb,var(--accent) 40%,transparent));opacity:0;transition:opacity .25s ease;pointer-events:none;z-index:0;mix-blend-mode:overlay}.book-card>*{position:relative;z-index:1}.book-card:hover{transform:translateY(-4px) scale(1.005);box-shadow:0 14px 36px color-mix(in srgb,var(--accent) 22%,transparent),0 4px 10px #00000012}.book-card:hover:before{opacity:1}.book-card:active{transform:translateY(-1px) scale(1.002)}body.theme-dark .book-card:hover{box-shadow:0 14px 40px color-mix(in srgb,var(--accent) 28%,transparent),0 4px 14px #00000059}.book-cover{transition:transform .28s cubic-bezier(.34,1.56,.64,1);will-change:transform}.book-card:hover .book-cover{transform:scale(1.05)}.home-create-card{display:flex;align-items:center;justify-content:center;cursor:pointer;border:2px dashed var(--brand, #b9712f);background:transparent;min-height:120px;border-radius:12px;transition:background .18s,border-color .18s}.home-create-card:hover{background:color-mix(in srgb,var(--brand, #b9712f) 8%,transparent);border-color:var(--brand, #b9712f)}.home-create-card-inner{display:flex;flex-direction:column;align-items:center;gap:6px;user-select:none}.home-create-icon{font-size:32px;line-height:1;color:var(--brand, #b9712f)}.home-create-label{font-size:14px;font-weight:600;color:var(--brand, #b9712f)}.book-card-heat{font-size:11px;color:var(--sub);margin-top:6px;display:flex;flex-wrap:wrap;gap:6px;opacity:.85}.book-read-btn{position:relative;overflow:hidden;transition:background .18s,box-shadow .2s,transform .12s cubic-bezier(.34,1.56,.64,1)}.book-read-btn:after{content:"";position:absolute;top:0;left:-120%;width:70%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);transform:skew(-18deg);pointer-events:none}.book-read-btn:hover:after{animation:ui-btn-shimmer .55s ease}.book-read-btn:hover{box-shadow:0 4px 16px color-mix(in srgb,var(--accent) 55%,transparent);transform:translateY(-1px)}.book-read-btn:active{transform:scale(.96);box-shadow:none}.book-progress-fill{box-shadow:1px 0 6px color-mix(in srgb,var(--accent) 55%,transparent)}.ui-act-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 20px;border-radius:10px;font-size:13px;font-weight:500;cursor:pointer;position:relative;overflow:hidden;transition:background .18s,border-color .18s,box-shadow .2s,transform .14s cubic-bezier(.34,1.56,.64,1);white-space:nowrap}.ui-act-btn:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;background:#ffffff40;border-radius:50%;transform:translate(-50%,-50%);transition:width .45s ease,height .45s ease,opacity .45s ease;opacity:0;pointer-events:none}.ui-act-btn:active:after{width:200px;height:200px;opacity:0;transition:0s}.ui-act-btn-primary{background:color-mix(in srgb,var(--brand) 12%,transparent);border:1.5px solid var(--brand);color:var(--brand)}.ui-act-btn-primary:hover{background:color-mix(in srgb,var(--brand) 20%,transparent);box-shadow:0 4px 16px color-mix(in srgb,var(--brand) 35%,transparent);transform:translateY(-2px)}.ui-act-btn-primary:active{transform:scale(.95)}.ui-act-btn-ghost{background:transparent;border:1.5px solid var(--line);color:var(--text)}.ui-act-btn-ghost:hover{border-color:var(--brand);color:var(--brand);background:color-mix(in srgb,var(--brand) 6%,transparent);transform:translateY(-2px)}.ui-act-btn-ghost:active{transform:scale(.95)}.poll-opt{position:relative;margin-bottom:10px;padding:14px 16px;border-radius:12px;border:1.5px solid var(--line);cursor:pointer;background:var(--panel);overflow:hidden;transition:border-color .2s,background .2s,transform .15s cubic-bezier(.34,1.56,.64,1),box-shadow .2s;animation:ui-fade-up .3s ease both}.poll-opt:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 6px 18px color-mix(in srgb,var(--accent) 18%,transparent)}.poll-opt:active{transform:scale(.98)}.poll-opt.voted{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--panel))}.poll-opt.voted:before{content:"\2713";position:absolute;top:12px;right:14px;width:20px;height:20px;border-radius:50%;background:var(--accent);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;animation:ui-bounce-in .35s ease both}.poll-opt-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.poll-opt-label{font-weight:600;font-size:14px;padding-right:28px}.poll-opt-count{font-size:12px;color:var(--muted);white-space:nowrap}.poll-opt-desc{font-size:12px;color:var(--muted);margin-bottom:8px;line-height:1.5}.poll-opt-bar{height:4px;border-radius:2px;background:var(--line);overflow:hidden}.poll-opt-fill{height:100%;border-radius:2px;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 70%,#ffc));transition:width .7s cubic-bezier(.4,0,.2,1);box-shadow:1px 0 6px color-mix(in srgb,var(--accent) 50%,transparent)}.poll-opted-note{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--accent);margin-top:10px;animation:ui-fade-up .25s ease}.poll-opt:nth-child(1){animation-delay:0s}.poll-opt:nth-child(2){animation-delay:.06s}.poll-opt:nth-child(3){animation-delay:.12s}.poll-opt:nth-child(4){animation-delay:.18s}#chat-char-list button{transition:border-color .18s,background .18s,transform .14s cubic-bezier(.34,1.56,.64,1),box-shadow .18s}#chat-char-list button:hover{border-color:var(--brand)!important;transform:translateY(-2px);box-shadow:0 4px 12px color-mix(in srgb,var(--brand) 25%,transparent)}#chat-char-list button:active{transform:scale(.95)}.share-backdrop{position:fixed;inset:0;background:#00000073;z-index:1200;opacity:0;transition:opacity .2s}.share-backdrop.visible{opacity:1}.share-sheet{position:fixed;bottom:0;left:0;right:0;z-index:1201;background:var(--panel);border-radius:18px 18px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .25s cubic-bezier(.32,1,.23,1);max-width:540px;margin:0 auto}.share-sheet.visible{transform:translateY(0)}.share-sheet-title{text-align:center;font-size:13px;color:var(--sub);margin-bottom:20px;font-weight:500}.share-sheet-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:16px}.share-item{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:none;cursor:pointer;padding:8px 4px;border-radius:12px;transition:background .15s}.share-item:active{background:var(--hover)}.share-item-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;background:var(--bg);border:1px solid var(--line)}.share-item span{font-size:11px;color:var(--sub);white-space:nowrap}.share-sheet-cancel{width:100%;padding:13px;border:none;border-radius:12px;background:var(--bg);color:var(--text);font-size:15px;cursor:pointer;font-weight:500}.share-sheet-cancel:active{opacity:.7}.wechat-guide-dialog{max-width:320px;border-radius:18px;border:none;padding:28px 24px;text-align:center;background:var(--panel);color:var(--text)}.wechat-guide-dialog::backdrop{background:#00000080}.wechat-guide-qr{width:140px;height:140px;margin:16px auto;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--sub)}
