:root{font-family:Microsoft YaHei UI,PingFang SC,Noto Sans SC,system-ui,sans-serif;color:#252a35;background:#f7f7f5;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #252a35;--muted: #aeb3bb;--line: #e7e9ee;--wash: #f4f5f7;--paper: #ffffff;--accent: #ff7658;--accent-soft: #fff1ec;--green: #43c995;--nav-text: #b8bdc6;--shadow-soft: 0 16px 38px rgba(35, 39, 48, .06)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--wash)}button{font:inherit}.n-button,.n-input,.n-input-wrapper,.n-base-selection,.n-input-number,.n-tag{border-radius:6px!important}.n-button{font-weight:800!important}.n-button.n-button--primary-type{--n-color: #252a35 !important;--n-color-hover: #333946 !important;--n-color-pressed: #161a22 !important;--n-color-focus: #252a35 !important;--n-border: 1px solid #252a35 !important;--n-border-hover: 1px solid #333946 !important;--n-border-pressed: 1px solid #161a22 !important;--n-border-focus: 1px solid #252a35 !important}.n-button.n-button--default-type{--n-border: 1px solid #e3e6ec !important;--n-border-hover: 1px solid #cfd4dc !important;--n-text-color-hover: #252a35 !important}.n-input,.n-base-selection{--n-border-hover: 1px solid #cfd4dc !important;--n-border-focus: 1px solid #aeb5c1 !important;--n-box-shadow-focus: 0 0 0 2px rgba(255, 118, 88, .12) !important}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:#eef2f7}.auth-panel{width:min(440px,100%);background:#fff;border:1px solid #e1e6ef;border-radius:8px;padding:28px;box-shadow:0 18px 50px #0f172a14}.auth-panel h1{margin:0 0 8px;font-size:26px}.auth-panel p{margin:0 0 18px;color:#64748b;line-height:1.7}.app-shell{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr);background:var(--paper)}.sidebar-scrim{display:none}.sidebar{position:sticky;top:0;height:100vh;background:#f5f6f8;color:var(--ink);padding:66px 14px 20px;display:flex;flex-direction:column;gap:26px;border-right:1px solid #eff0f3;box-shadow:12px 0 28px #282c3608;overflow:hidden}.brand{display:flex;align-items:center;gap:13px;padding:0 10px 16px;border-bottom:1px solid #eceef2}.brand-avatar{width:78px;height:78px;border-radius:50%;background:radial-gradient(circle at 62% 32%,#f7f8fa 0 24%,transparent 25%),linear-gradient(135deg,#d8dadd,#c8ccd1);color:#f8f9fb;display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:36px;font-weight:900;letter-spacing:0}.brand-copy{min-width:0}.brand-title{font-size:18px;font-weight:800;color:var(--ink)}.brand-subtitle{margin-top:6px;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-list{display:flex;flex-direction:column;gap:10px}.nav-item{border:0;width:100%;height:49px;padding:0 18px;border-radius:6px;color:var(--nav-text);background:transparent;display:flex;align-items:center;gap:14px;text-align:left;font-size:17px;font-weight:700;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}.nav-item:hover,.nav-item.active{color:var(--ink);background:#ebedf1}.nav-item.active{box-shadow:inset 3px 0 0 var(--ink)}.nav-item:hover{transform:translate(2px)}.nav-icon{width:23px;height:23px;color:currentColor;flex:none}.sidebar-logout{margin-top:auto;height:42px;border:1px solid #e2e5eb;border-radius:6px;background:#fff;color:#7f8793;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-weight:700}.main{min-width:0;padding:82px 36px 48px;background:var(--paper)}.topbar{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:34px}.topbar-title-group,.topbar-actions{display:flex;align-items:center;gap:10px;min-width:0}.topbar-title-group>div{min-width:0}.mobile-menu-button{display:none;width:38px;height:38px;flex:none;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:0;font-size:20px;cursor:pointer}.page-title{margin:0;font-size:31px;font-weight:800;line-height:1.2;color:var(--ink)}.page-subtitle{margin-top:9px;color:var(--muted);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-state{color:var(--accent);font-size:16px;font-weight:800;white-space:nowrap}.upload-state.online{color:var(--green)}.user-sidebar{padding:28px 14px 16px;gap:14px}.user-sidebar .brand{flex-direction:column;gap:10px;text-align:center;padding:0 8px 18px}.user-sidebar .brand-avatar{width:62px;height:62px;background:#d9dce1;color:#fff;font-size:27px}.user-sidebar .brand-title{font-size:15px}.user-sidebar .brand-subtitle{max-width:210px;margin-top:4px;font-size:12px}.user-sidebar .nav-list{min-height:0;flex:1;gap:2px;overflow-y:auto;scrollbar-width:none}.user-sidebar .nav-list::-webkit-scrollbar{display:none}.user-sidebar .nav-item{height:38px;padding:0 14px;gap:11px;font-size:14px}.user-sidebar .nav-icon{width:18px;height:18px}.user-shell .main{padding-top:64px}.topbar-more-button{min-height:38px}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px;box-shadow:none}.panel-title{margin:0 0 16px;font-size:18px;font-weight:800;color:var(--ink)}.home-focus{min-height:172px;display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:28px 0 30px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.home-focus>div{min-width:0}.home-date{display:block;margin-bottom:10px;color:#747b87;font-size:13px;font-weight:700}.home-focus h2{margin:0;color:var(--ink);font-size:28px;line-height:1.35}.home-focus p{margin:10px 0 0;color:#747b87;line-height:1.7}.home-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line)}.home-stats>div{min-width:0;padding:22px 20px;border-right:1px solid var(--line)}.home-stats>div:first-child{padding-left:0}.home-stats>div:last-child{border-right:0}.home-stats span,.home-stats strong{display:block}.home-stats span{color:#8b919b;font-size:13px}.home-stats strong{margin-top:8px;color:var(--ink);font-size:22px;line-height:1.25}.home-section{padding:34px 0 0}.home-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.home-section-head h2,.home-section-head p{margin:0}.home-section-head h2{font-size:18px}.home-section-head p{margin-top:6px;color:#8b919b;font-size:13px}.creation-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.creation-mode{min-width:0;min-height:90px;display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease}.creation-mode:hover,.creation-mode:focus-visible{border-color:#bfc4cd;background:#f8f9fa;outline:none}.creation-mode>.n-icon:first-child{width:28px;height:28px;color:var(--accent)}.creation-mode span,.creation-mode strong,.creation-mode small{display:block;min-width:0}.creation-mode strong{font-size:15px}.creation-mode small{margin-top:6px;color:#8b919b;font-size:12px;line-height:1.45}.creation-mode-arrow{color:#a5abb5}.recent-project-list{border-top:1px solid var(--line)}.recent-project-list button{width:100%;min-height:68px;display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:10px 6px;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--ink);text-align:left;cursor:pointer}.recent-project-list button:hover,.recent-project-list button:focus-visible{background:#f8f9fa;outline:none}.recent-project-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:19px}.recent-project-copy,.recent-project-copy strong,.recent-project-copy small{display:block;min-width:0}.recent-project-copy strong,.recent-project-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-project-copy small{margin-top:5px;color:#8b919b;font-size:12px}.account-tabs>.n-tabs-nav{max-width:380px;margin-bottom:24px}.account-tabs .n-tabs-tab__label{display:inline-flex;align-items:center;gap:7px}.account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-usage-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:30px;padding-bottom:22px;border-bottom:1px solid #eff0f3}.library-status-note{display:flex;align-items:baseline;gap:8px;margin:-12px 0 22px;color:var(--muted);font-size:13px}.library-status-note strong{color:var(--ink);font-size:14px;white-space:nowrap}.library-toolbar .n-radio-group{flex:none}.library-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;width:min(520px,100%)}.library-actions .n-input{flex:1;min-width:150px}.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:30px 24px}.book-card{min-width:0}.book-card-clickable{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.book-card-clickable:hover,.book-card-clickable:focus-visible{transform:translateY(-3px);box-shadow:0 14px 32px #252a341f;outline:none}.book-cover{position:relative;aspect-ratio:.72;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;border-radius:6px;padding:18px 16px;color:#fff;box-shadow:0 14px 30px #2428311f;isolation:isolate}.book-cover:before,.book-cover:after{content:"";position:absolute;z-index:-1}.book-cover:before{top:0;right:0;bottom:0;left:0;opacity:.9}.book-cover:after{right:-24%;bottom:-8%;width:78%;aspect-ratio:1;border:18px solid rgba(255,255,255,.22);border-radius:50%}.book-cover-0{background:#242a35}.book-cover-0:before{background:linear-gradient(145deg,transparent 0 48%,#ff7658 49% 64%,transparent 65%)}.book-cover-1{background:#f1eee8;color:#252a35}.book-cover-1:before{background:repeating-linear-gradient(90deg,transparent 0 18px,rgba(37,42,53,.07) 19px 20px)}.book-cover-1:after{border-color:#ff765899}.book-cover-2{background:#3b7f77}.book-cover-2:before{background:linear-gradient(35deg,rgba(255,255,255,.16) 0 24%,transparent 25% 65%,rgba(255,214,137,.28) 66%)}.book-cover-3{background:#c95f4b}.book-cover-3:before{background:linear-gradient(160deg,transparent 0 42%,rgba(255,255,255,.18) 43% 46%,transparent 47%)}.book-cover>span{font-family:Georgia,Times New Roman,serif;font-size:11px;opacity:.72}.book-cover>strong{font-family:Georgia,STSong,SimSun,serif;font-size:25px;line-height:1.35;word-break:break-word}.book-cover>small{max-height:3.6em;overflow:hidden;font-size:11px;line-height:1.8;opacity:.74}.book-card-meta{display:flex;flex-wrap:wrap;align-items:start;gap:8px;padding:13px 2px 0}.book-card-meta>div:first-child{flex:1 1 100%;min-width:0}.book-card-meta h2{margin:0;overflow:hidden;color:var(--ink);font-size:15px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.book-card-meta p{margin:6px 0 0;color:#b7bbc3;font-size:13px}.book-more{margin:8px;color:#8d939d}.library-empty{min-height:430px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.empty-book{width:92px;aspect-ratio:.72;display:grid;place-items:center;border-radius:6px;background:#eef0f3;color:#c4c8cf;font-family:Georgia,STSong,SimSun,serif;font-size:35px;box-shadow:10px 12px #f7f8f9}.library-empty h2{margin:28px 0 8px;font-size:18px}.library-empty p{margin:0 0 20px;color:var(--muted)}.project-create-modal{width:min(560px,calc(100vw - 32px))}.manuscript-import-modal{width:min(820px,calc(100vw - 24px))}.manuscript-file-picker{min-height:88px;display:flex;align-items:center;justify-content:center;gap:14px;border:1px dashed #cfd4dc;border-radius:8px;background:#fafbfc;color:var(--ink);cursor:pointer}.manuscript-file-picker input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.manuscript-file-picker>.n-icon{width:28px;height:28px;color:var(--accent)}.manuscript-file-picker strong,.manuscript-file-picker small{display:block}.manuscript-file-picker small{margin-top:4px;color:#8b919b;font-size:12px}.import-preview-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.import-preview-meta span{min-width:0;padding:14px;border-right:1px solid var(--line);text-align:center}.import-preview-meta span:last-child{border-right:0}.import-preview-meta strong,.import-preview-meta small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-preview-meta small{margin-top:4px;color:#8b919b;font-size:11px}.import-preview-layout{display:grid;grid-template-columns:minmax(190px,.75fr) minmax(280px,1.25fr);gap:18px}.import-chapter-list{min-width:0;border:1px solid var(--line);border-radius:8px;padding:14px}.import-chapter-list h3{margin:0 0 10px;font-size:14px}.import-chapter-list ol{max-height:250px;margin:0;padding-left:24px;overflow:auto;color:#666e7a;font-size:13px;line-height:1.9}.import-actions{margin-top:18px}.recycle-modal{width:min(780px,calc(100vw - 24px))}.recycle-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.recycle-list{border-top:1px solid var(--line)}.recycle-list article{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 4px;border-bottom:1px solid var(--line)}.recycle-item-copy,.recycle-item-actions{display:flex;align-items:center;gap:10px;min-width:0}.recycle-item-copy>span:last-child,.recycle-item-copy strong,.recycle-item-copy small{display:block;min-width:0}.recycle-item-copy strong,.recycle-item-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recycle-item-copy small{margin-top:4px;color:#8b919b;font-size:12px}.history-layout{min-height:calc(100vh - 100px);display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px}.history-list{min-width:0;border-right:1px solid var(--line);padding-right:12px}.history-list>button{width:100%;min-height:62px;display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:8px;padding:9px;border:0;border-radius:6px;background:transparent;color:#666e7a;text-align:left;cursor:pointer}.history-list>button:hover,.history-list>button.active{background:#f1f3f5;color:var(--ink)}.history-list strong,.history-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-list small{margin-top:5px;color:#969ca6;font-size:11px}.history-actions,.history-rename{display:flex;align-items:center;justify-content:flex-end;gap:8px}.history-rename{flex:1}.history-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.history-compare-grid section{min-width:0;border:1px solid var(--line);border-radius:8px;padding:14px}.history-compare-grid section>div{display:flex;justify-content:space-between;gap:10px}.history-compare-grid section>div span{color:#8b919b;font-size:12px}.history-compare-grid h3{margin:14px 0 8px;font-size:15px}.history-compare-grid pre{height:calc(100vh - 250px);min-height:320px;margin:0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#555d68;font-family:inherit;font-size:13px;line-height:1.8}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.muted{color:var(--muted);font-size:13px}.workspace{display:grid;grid-template-columns:280px minmax(420px,1fr) 380px;gap:14px;align-items:start}.desk-status{display:grid;grid-template-columns:repeat(3,minmax(90px,120px)) minmax(220px,1fr);gap:12px;align-items:center;margin-bottom:14px}.desk-stat{display:flex;flex-direction:column;gap:2px}.desk-stat span{color:#6b7280;font-size:12px}.desk-stat strong{font-size:18px}.challenge-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.challenge-mini span{display:block;margin-bottom:4px;font-size:12px;color:#4b5563}.chapter-list{display:flex;flex-direction:column;gap:8px}.work-title{display:flex;align-items:center;justify-content:center;gap:6px;min-height:26px;margin:-4px 0 12px;font-size:14px}.work-type{padding:1px 6px;border-radius:999px;background:#edf3ff;color:#2b6cff;font-size:12px}.chapter-toolbar{display:grid;grid-template-columns:minmax(104px,1fr) 34px 34px 34px 34px;gap:6px;padding-bottom:10px;border-bottom:1px solid #eef1f6}.volume-block{display:flex;flex-direction:column;gap:8px}.volume-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 2px}.volume-toggle{flex:1;border:0;background:transparent;display:flex;align-items:center;gap:6px;min-width:0;text-align:left;cursor:pointer}.volume-icon{color:#f6a500}.volume-chapters{display:flex;flex-direction:column;gap:8px}.ungrouped-title{justify-content:flex-start;color:#6b7280;font-size:13px}.chapter-card{border-left:4px solid transparent;border-bottom:1px solid #edf0f5;padding:10px 8px 10px 10px;background:#fff}.chapter-card.active{border-left-color:#7c4dff;background:#fbfcff}.chapter-main{border:0;width:100%;padding:0;background:transparent;text-align:left;cursor:pointer}.chapter-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#1f2937}.chapter-card-head span{flex:none;color:#6b7280;font-size:12px}.chapter-actions{display:flex;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap}.row-button{border:1px solid #e7eaf1;background:#fff;border-radius:8px;padding:10px;text-align:left;cursor:pointer}.row-button.active{border-color:#2b6cff;background:#edf3ff}.editor{min-height:520px}.pet-thinking-state{padding:8px 10px;border-radius:6px;background:#f5f7fa;color:#687180;font-size:13px}.rich-text-editor{overflow:hidden;border:1px solid #e4e8ef;background:#fff}.rich-text-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:2px;min-height:44px;padding:5px 8px;border-bottom:1px solid #e9edf2;background:#fffffff5;flex-wrap:wrap}.rich-text-toolbar-divider{width:1px;height:22px;margin:0 4px;background:#e1e5eb}.rich-text-content{min-height:520px;padding:28px 34px;color:#252b35;font-family:"Noto Serif SC",Songti SC,SimSun,serif;font-size:17px;line-height:1.95;outline:none}.rich-text-content p{margin:0 0 1em}.rich-text-content h1,.rich-text-content h2,.rich-text-content h3{margin:1.4em 0 .7em;letter-spacing:0}.rich-text-content blockquote{margin:1.2em 0;padding:8px 16px;border-left:3px solid #4f6f52;color:#5d6672;background:#f7f9f7}.rich-text-content img{display:block;max-width:100%;height:auto;margin:18px auto;border-radius:4px}.rich-text-content p.is-editor-empty:first-child:before{height:0;color:#a4aab4;content:attr(data-placeholder);float:left;pointer-events:none}.rich-text-source textarea{font-family:Consolas,Courier New,monospace;line-height:1.6}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.editor-actions,.panel-head,.panel-heading,.result-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.panel-heading .panel-title{margin-bottom:0}.panel-head .panel-title{margin-bottom:4px}.ai-panel{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tool-grid .n-button{width:100%}.related-preview{border:1px dashed #d7deea;border-radius:8px;padding:10px;background:#f9fbff}.related-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.related-list span{max-width:100%;padding:4px 8px;border-radius:999px;background:#edf3ff;color:#2b4f94;font-size:12px;word-break:break-word}.result-actions{justify-content:flex-start;margin:14px 0 8px}.result-box{white-space:pre-wrap;line-height:1.7;background:#f7f9fc;border:1px solid #e7eaf1;border-radius:8px;padding:12px;min-height:120px}.caret{display:inline-block;margin-left:1px;color:#6366f1;animation:caret-blink 1s steps(1) infinite}.streaming-tip{margin-left:6px;font-size:13px}@keyframes caret-blink{50%{opacity:0}}.menu-placeholder{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.material-board,.challenge-board,.plugin-grid,.ranking-grid,.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:14px}.material-card,.challenge-card,.plugin-card,.stat-card{background:#fff;border:1px solid #e7eaf1;border-radius:8px;padding:14px}.material-head,.challenge-title,.plugin-head,.stat-row,.ranking-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.material-card p,.plugin-card p,.pet-hero p,.challenge-note{color:#4b5563;line-height:1.7}.stat-card{position:relative;min-height:146px;background:#fff;color:var(--ink);border:1px solid #eef0f4;border-radius:8px;padding:20px 20px 18px;box-shadow:var(--shadow-soft);overflow:hidden}.story-core-band{margin-bottom:14px}.story-core-heading{margin-bottom:12px}.story-core-heading p{margin:4px 0 0}.relationship-graph-surface{display:grid;gap:12px}.relationship-graph-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.relationship-graph-toolbar>div{display:grid;gap:4px}.relationship-graph-toolbar .muted{font-size:12px}.relationship-graph-chart{width:100%;min-height:420px;border:1px solid #edf0f4;background:#fbfcfd}.relationship-graph-empty{min-height:260px;border:1px dashed #d9dee7}.relationship-graph-error{margin:0}.materials-quick-filter,.materials-quick-list{display:grid;gap:12px}.materials-quick-filter{margin-bottom:18px}.materials-quick-filter-row,.materials-quick-actions,.materials-quick-item-head{display:flex;align-items:center;gap:8px}.materials-quick-filter-row .n-select{min-width:0;flex:1}.materials-quick-item{padding:14px 0;border-bottom:1px solid #edf0f4}.materials-quick-item-head{justify-content:space-between}.materials-quick-item p{margin:8px 0 12px;color:#3d4655;line-height:1.7;white-space:pre-wrap}.story-control-fields{display:grid;gap:10px}.story-control-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.story-control-actions,.ai-context-actions,.continuity-head,.context-budget-row,.context-section-head,.continuity-status-line,.review-summary,.review-counts{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.editor-meta{display:flex;align-items:center;gap:10px;min-width:0}.chapter-sync-status{width:82px;height:30px;display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;border:1px solid #dfe3e8;border-radius:6px;background:#fff;color:#747b87;font-size:12px;font-weight:700;cursor:pointer}.chapter-sync-status:disabled{cursor:default}.chapter-sync-status.is-synced{border-color:#cce9dc;color:#23845f}.chapter-sync-status.is-local_only{border-color:#f1d8a7;color:#9a6818}.chapter-sync-status.is-conflict,.chapter-sync-status.is-failed{border-color:#f2c7c1;color:#b64d3d}.chapter-conflict-modal{width:min(920px,calc(100vw - 24px))}.conflict-intro{margin:0 0 18px;color:#666e7a;line-height:1.7}.chapter-conflict-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.chapter-conflict-grid section{min-width:0;border:1px solid var(--line);border-radius:8px;padding:14px}.conflict-version-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.conflict-version-head span{color:#8b919b;font-size:12px}.chapter-conflict-grid h3{margin:14px 0 8px;font-size:15px}.chapter-conflict-grid pre{height:260px;margin:0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#555d68;font-family:inherit;font-size:13px;line-height:1.7}.conflict-actions{margin-top:18px}.continuity-surface{margin-top:18px;padding-top:16px;border-top:1px solid #edf0f5}.continuity-head h3{margin:0 0 3px;font-size:15px}.continuity-actions{display:flex;gap:8px;flex-wrap:wrap}.continuity-status-line{justify-content:flex-start;margin:12px 0}.continuity-copy{display:grid;gap:4px;padding:12px;background:#f8fafc;border:1px solid #e7eaf1;border-radius:8px}.continuity-copy p,.context-section-row p,.review-summary p{margin:0 0 8px;white-space:pre-wrap;line-height:1.65}.review-score{display:flex;align-items:baseline;gap:8px}.review-score strong{font-size:26px;color:var(--accent)}.review-counts{justify-content:flex-start;color:var(--muted);font-size:12px}.context-preview-content{display:grid;gap:12px}.context-budget-row{justify-content:flex-start}.context-budget-row strong{font-size:22px}.context-budget-row span{color:var(--muted);font-size:12px}.context-section-list{display:grid;gap:10px}.context-section-row{padding:12px;border:1px solid #e7eaf1;border-radius:8px;background:#fff}.context-section-head{align-items:baseline;margin-bottom:6px}.context-section-head span{color:var(--muted);font-size:12px}.stat-card:after{content:"";position:absolute;right:18px;top:18px;width:9px;height:9px;border-radius:50%;background:var(--accent);opacity:.82}.stat-card span{display:block;margin-bottom:22px;color:var(--muted);font-size:14px;font-weight:700}.stat-card strong{display:block;color:var(--ink);font-size:38px;line-height:1;font-weight:900}.stat-card small{display:block;margin-top:14px;color:#c0c4cc;font-size:13px;font-weight:700}.usage-trend-panel{margin-top:14px}.usage-chart{color:#2b6cff;border:1px solid #e7eaf1;border-radius:8px;background:linear-gradient(180deg,#f8fbff,#fff);height:190px;margin-top:12px;padding:10px}.usage-chart svg{width:100%;height:100%;display:block}.usage-chart circle{fill:#172033}.usage-days{display:grid;grid-template-columns:repeat(30,1fr);align-items:end;gap:3px;height:58px;margin-top:10px}.usage-days span{display:block;min-height:4px;border-radius:3px 3px 0 0;background:#94a3b8}.stat-row{padding:10px 0;border-bottom:1px solid #edf0f5}.pet-companion{position:fixed;right:24px;bottom:24px;z-index:10}.pet-bubble{border:1px solid #ffd48a;border-radius:999px;background:#fff8e8;color:#4b2e00;box-shadow:0 12px 30px #ffac2b40;padding:10px 14px;display:flex;align-items:center;gap:8px;cursor:pointer}.cat-face{font-weight:800;color:#f59e0b}.pet-mobile-icon{display:none}.pet-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pet-card{border:1px solid #e7eaf1;border-radius:8px;background:#fff;padding:10px;text-align:left;cursor:pointer}.pet-card.active{border-color:#f59e0b;background:#fff8e8}.pet-card span{display:block;margin-top:4px;color:#6b7280;font-size:12px}.pet-card-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:14px}.pet-memory-grid{margin-top:14px}.pet-profile-card{display:flex;min-height:260px;flex-direction:column;gap:10px;border:1px solid #e7eaf1;border-radius:8px;background:#fff;padding:16px}.pet-profile-card.active{border-color:#f59e0b;background:#fffaf0}.pet-profile-card h3{margin:0;font-size:18px}.pet-profile-card p{margin:0;color:#4b5563}.pet-profile-card .muted{flex:1;line-height:1.7}.pet-profile-head{display:flex;align-items:center;justify-content:space-between}.quick-tools,.tool-list,.pet-types{display:flex;flex-wrap:wrap;gap:8px}.tool-list span,.pet-types span{padding:6px 10px;border-radius:999px;background:#edf3ff;color:#2b4f94;font-size:13px}.pet-dialogue{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow:auto;padding:10px;border:1px solid #eef1f6;border-radius:8px;background:#f8fafc}.pet-message{max-width:88%;padding:8px 10px;border-radius:8px;white-space:pre-wrap;line-height:1.6}.pet-message.user{align-self:flex-end;background:#2b6cff;color:#fff}.pet-message.assistant{align-self:flex-start;background:#fff;border:1px solid #e7eaf1}.ranking-note{margin-bottom:14px;color:#6b7280}.ranking-row{padding:10px 0;border-bottom:1px solid #edf0f5}.ranking-row.me{color:#2b6cff;font-weight:760}.rank-no{width:28px;height:28px;border-radius:50%;background:#edf3ff;color:#2b6cff;display:inline-flex;align-items:center;justify-content:center;flex:none}.admin-login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(90deg,#f4f5f7 0,#f4f5f7 270px,#fff 270px,#fff),#fff;padding:20px}.admin-login-panel{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:8px;padding:34px;box-shadow:var(--shadow-soft)}.admin-login-mark{width:64px;height:64px;margin-bottom:22px;border-radius:8px;background:#eff1f4;color:var(--accent);display:inline-flex;align-items:center;justify-content:center;font-size:30px}.admin-login-panel h1{margin:0 0 8px;font-size:30px;color:var(--ink)}.admin-login-panel p{margin:0 0 26px;color:var(--muted);line-height:1.7}.admin-shell .sidebar{background:#f5f6f8}.admin-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);gap:20px;align-items:start}.admin-grid .panel:nth-child(3){grid-column:1 / -1}.admin-table{display:grid;gap:0;overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:8px;background:#fff}.admin-table-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;align-items:center;min-width:720px;padding:15px 16px;background:#fff;border-top:1px solid #f0f2f5;color:#4c5562;font-size:14px}.admin-table-head{position:sticky;top:0;z-index:1;background:#fafbfc;border-top:0;color:#a9afb9;font-weight:800}.admin-table-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.binding-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.binding-list span{padding:6px 10px;border-radius:6px;background:var(--accent-soft);color:#be513d;font-size:13px;font-weight:700}@media(max-width:1320px){.workspace{grid-template-columns:minmax(220px,280px) minmax(0,1fr)}.workspace>.ai-panel{grid-column:1 / -1;position:static;max-height:none}}@media(max-width:980px){.app-shell{grid-template-columns:230px minmax(0,1fr)}.workspace,.desk-status{grid-template-columns:1fr}.workspace>.ai-panel{grid-column:auto;position:static;max-height:none}.tool-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}}@media(max-width:760px){body{overflow-x:hidden}.app-shell{display:block}.sidebar-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:19;display:block;border:0;background:#0f172a6b;opacity:0;pointer-events:none;transition:opacity .18s ease}.sidebar-scrim.open{opacity:1;pointer-events:auto}.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:20;width:min(300px,82vw);max-width:100vw;padding:calc(16px + env(safe-area-inset-top)) 12px 16px;overflow-y:auto;transform:translate(-100%);transition:transform .2s ease;box-shadow:none}.sidebar.open{transform:translate(0);box-shadow:18px 0 40px #0f172a38}.nav-list{display:flex;grid-template-columns:none;flex-direction:column}.nav-item{min-height:42px;height:auto}.main{width:100%;min-width:0;padding:calc(12px + env(safe-area-inset-top)) 12px calc(84px + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:8;min-height:auto;align-items:flex-start;margin:-12px -12px 12px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:#f6f7fbf5;border-bottom:1px solid #e7eaf1;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.mobile-menu-button{display:inline-flex;align-items:center;justify-content:center}.topbar-title-group{align-items:flex-start;flex:1}.topbar-actions{flex:none;flex-wrap:wrap;justify-content:flex-end;max-width:42%}.topbar-actions .upload-state{display:none}.topbar-more-button{width:38px;padding:0!important}.topbar-more-label{display:none}.page-title{font-size:20px}.page-subtitle{max-width:46vw;font-size:12px}.library-toolbar{align-items:stretch;flex-direction:column;margin-bottom:22px}.home-focus{min-height:0;align-items:flex-start;flex-direction:column;gap:20px;padding:22px 0}.home-focus h2{font-size:23px}.home-focus .n-button{width:100%}.home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.home-stats>div{padding:16px;border-bottom:1px solid var(--line)}.home-stats>div:first-child{padding-left:0}.home-stats>div:nth-child(2){border-right:0}.home-stats>div:nth-child(3){padding-left:0;border-bottom:0}.home-stats>div:nth-child(4){border-bottom:0}.creation-mode-grid,.import-preview-layout,.history-layout{grid-template-columns:minmax(0,1fr)}.history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px;overflow:auto;border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px}.library-actions{width:100%}.panel{padding:12px}.editor{min-height:360px}.rich-text-content{min-height:360px;padding:20px 16px;font-size:16px}.relationship-graph-chart{min-height:300px}.pet-companion{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}.pet-bubble{width:48px;height:48px;justify-content:center;padding:0;border-radius:50%}.pet-bubble .cat-face,.pet-bubble .pet-name{display:none}.pet-mobile-icon{display:block;font-size:22px;color:#f59e0b}}@media(max-width:640px){.grid,.menu-placeholder,.material-board,.challenge-board,.plugin-grid,.ranking-grid,.stat-grid,.pet-card-board,.admin-grid{grid-template-columns:minmax(0,1fr)}.workspace{grid-template-columns:minmax(0,1fr);gap:12px}.account-grid,.account-usage-row,.chapter-conflict-grid{grid-template-columns:minmax(0,1fr)}.chapter-conflict-grid pre{height:180px}.history-compare-grid{grid-template-columns:minmax(0,1fr)}.history-compare-grid pre{height:240px;min-height:240px}.recycle-list article{align-items:flex-start;flex-direction:column}.recycle-item-actions{width:100%;justify-content:flex-end}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.desk-status{grid-template-columns:minmax(0,1fr);gap:10px}.chapter-toolbar{grid-template-columns:minmax(0,1fr) repeat(3,34px)}.chapter-toolbar .n-button:first-child{min-width:0;padding-inline:8px}.chapter-toolbar>*:nth-child(3){display:none}.tool-grid,.story-control-split{grid-template-columns:minmax(0,1fr)}.toolbar,.editor-actions,.panel-head,.panel-heading,.result-actions,.material-head,.challenge-title,.plugin-head,.stat-row,.ranking-row{align-items:flex-start}.admin-table-row{min-width:640px}}@media(max-width:420px){.topbar{flex-wrap:wrap}.topbar-actions{width:100%;max-width:none;justify-content:flex-start;padding-left:46px}.page-subtitle{max-width:calc(100vw - 96px)}.panel-title{font-size:15px}.library-toolbar .n-radio-group{display:flex;width:100%}.library-toolbar .n-radio-button{flex:1;justify-content:center;min-width:0}.library-toolbar .n-radio-group__splitor{flex:0 0 1px}.library-actions{flex-wrap:wrap}.library-actions .n-input{flex-basis:calc(100% - 48px)}.library-actions .n-button:last-child{width:100%}.import-preview-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.import-preview-meta span:nth-child(2){border-right:0}.import-preview-meta span:nth-child(-n+2){border-bottom:1px solid var(--line)}.recycle-toolbar{align-items:flex-start;flex-direction:column}.recycle-toolbar .n-radio-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.history-list{grid-template-columns:minmax(0,1fr)}}
