:root{--paper:#fcfbf8;--surface:#fff;--canvas:#f4f2ec;--ink:#26323c;--muted:#5e6973;--line:#e4e5dd;--green:#385f4d;--green-dark:#284a39;--green-soft:#eaf1e9;--gold:#b48b47;--danger:#a84537;--radius:10px;--shadow:0 14px 60px #1b332018;font-size:15px;line-height:1.6;font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button,input,textarea,select{outline-offset:3px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--green)}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:10px 12px;color:var(--ink)}textarea{resize:vertical;line-height:1.8}select{font-size:15px;min-height:41px}button{transition:background .15s,border .15s}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-50px;left:20px;z-index:50;background:var(--green);padding:10px;color:white}.skip-link:focus{top:10px}
.app-header{height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);background:var(--paper)}.brand{display:flex;gap:12px;align-items:center}.brand-mark{font-family:"Noto Serif SC","Songti SC",SimSun,serif;font-size:25px;width:42px;height:44px;display:grid;place-items:center;border-radius:11px;background:var(--green);color:#fff7e7}.brand h1{font-size:18px;font-weight:650;letter-spacing:.07em;margin:0 0 5px}.brand div>span{font-size:14px;color:var(--muted);letter-spacing:.08em}.header-actions{display:flex;align-items:center;gap:14px}.connection{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:6px}.connection:before{content:"";height:6px;width:6px;border-radius:50%;background:var(--muted)}.connection.online:before{background:#638464}.connection.offline:before{background:var(--danger)}.tag{font-size:13px;font-weight:550;padding:4px 8px;line-height:1.3;border:1px solid var(--line);border-radius:5px;color:var(--muted);background:#fafaf7;white-space:nowrap}.tag.demo{color:#7b5726;border-color:#e9d4ad;background:#fff7e8}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:9px 13px;min-height:40px;font-size:14px;font-weight:550;color:var(--ink);white-space:nowrap}.button.primary{color:white;background:var(--green);border-color:var(--green)}.button.primary:hover{background:var(--green-dark)}.button.quiet{background:transparent;color:var(--ink)}.button.full{width:100%}.button.danger{color:var(--danger)}.text-button,.icon-button{border:0;background:transparent;color:var(--green);padding:4px;font-size:14px}.icon-button{font-size:20px;line-height:1;width:27px;height:27px;border-radius:5px;display:inline-grid;place-items:center}.icon-button:hover{background:var(--green-soft)}kbd{font-size:13px;font-weight:400;opacity:.5;margin-left:4px}
.workspace{display:grid;grid-template-columns:230px minmax(350px,1fr) 330px;height:calc(100dvh - 84px);min-height:560px;max-width:1840px;margin:auto}.sidebar{background:#f3f4ee;border-right:1px solid var(--line);padding:24px 18px 18px;display:flex;flex-direction:column;min-height:0}.section-eyebrow{color:var(--muted);font-size:13px;font-weight:650;letter-spacing:.12em;text-transform:uppercase;display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.import-button{width:100%;margin-top:10px;font-size:14px;background:transparent;border-style:dashed;font-weight:400;color:var(--muted)}.project-summary{margin-top:15px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.project-summary .text-button{font-size:13px;padding:3px 0}.document-heading{margin-top:25px;margin-bottom:9px}.document-list{flex:1;overflow-y:auto;min-height:70px;margin:0 -8px;padding:0 8px}.document-item{width:100%;border:1px solid transparent;background:transparent;border-radius:7px;padding:11px 10px;margin-bottom:5px;text-align:left;display:flex;gap:10px;align-items:center;color:var(--ink)}.document-item.active{border-color:#dbe4d9;color:var(--green-dark);background:#e5ece2}.doc-icon{font-size:14px;color:var(--muted)}.document-item>span:last-child{min-width:0;flex:1}.document-item strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.document-item small{display:block;font-size:13px;margin-top:4px;color:var(--muted)}.sidebar-empty{font-size:14px;line-height:2;color:var(--muted);margin:15px 7px}.reference-button{display:flex;width:100%;padding:12px 6px;gap:10px;align-items:center;border:0;border-top:1px solid var(--line);background:none;text-align:left;color:var(--ink)}.reference-button>span:nth-child(2){flex:1;font-size:14px}.reference-button small{display:block;font-size:13px;color:var(--muted);margin-top:4px}.sidebar-footer{border-top:1px solid var(--line);padding-top:15px;font-size:13px;color:var(--muted);margin-top:10px;line-height:1.7}.sidebar-footer small{display:block;margin-left:12px;font-size:13px}.footer-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#7e9671;margin-right:5px}
.editor-pane{background:var(--paper);display:flex;flex-direction:column;min-width:0;min-height:0}.editor-toolbar{min-height:66px;padding:14px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.editor-toolbar>div:first-child{display:flex;align-items:center;gap:14px}.eyebrow{font-size:13px;color:var(--muted);letter-spacing:.08em}.save-state{font-size:13px;color:var(--muted)}.save-state.dirty{color:var(--gold)}.save-state.error{color:var(--danger)}.toolbar-actions{display:flex;gap:8px}.toolbar-actions .button{font-size:14px;min-height:32px;padding:6px 10px}.draft-area{flex:1;display:flex;flex-direction:column;min-height:0;padding:28px 7% 0}.draft-title{font-family:"Noto Serif SC","Songti SC",SimSun,serif;background:transparent;font-size:25px;font-weight:600;border:0;border-radius:0;padding:4px 0 20px;margin-bottom:4px;box-shadow:none;letter-spacing:.025em}.draft-title::placeholder{color:var(--muted)}.draft-title:focus-visible{outline-offset:6px}.draft-area textarea{flex:1;border:0;background:transparent;padding:10px 0 22px;resize:none;min-height:220px;font-size:15px;line-height:2.05;letter-spacing:.015em;border-radius:0}.draft-area textarea:focus-visible{outline:none}.draft-area textarea::placeholder{color:var(--muted)}.editor-footer{height:36px;flex-shrink:0;display:flex;align-items:center;gap:15px;padding:0 26px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.editor-footer>span:last-child{margin-left:auto}.empty-editor{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 25px;text-align:center}.empty-editor h2{font-family:"Noto Serif SC","Songti SC",SimSun,serif;font-size:24px;font-weight:500;letter-spacing:.04em;margin:24px 0 10px}.empty-editor p{font-size:14px;color:var(--muted);line-height:2.1;margin:0 0 25px}.empty-editor>div:last-of-type{display:flex;gap:10px}.empty-editor>small{font-size:13px;color:var(--muted);margin-top:20px}.empty-art{height:108px;width:170px;position:relative}.empty-art span{position:absolute;display:grid;place-items:center;width:78px;height:90px;border:1px solid #d9dfd3;border-radius:6px;background:#fdfdf8;color:var(--muted);font-family:serif;font-size:14px;box-shadow:0 5px 15px #203a1507}.empty-art span:first-child{left:0;top:13px;transform:rotate(-12deg)}.empty-art span:nth-child(2){left:48px;top:0;background:#edf1e5;color:var(--ink);transform:rotate(1deg)}.empty-art span:last-child{left:96px;top:15px;transform:rotate(12deg);background:#f9f3e6;color:#7b5726}
.assistant-pane{background:#fff;border-left:1px solid var(--line);padding:23px 22px;overflow-y:auto;min-height:0}.assistant-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.assistant-title h2{font-size:15px;margin:7px 0 0;font-weight:550}.assistant-symbol{color:var(--gold);font-size:28px}.role-tabs{display:grid;grid-template-columns:repeat(4,1fr);background:#f4f5f0;border:1px solid #e8ebe2;border-radius:8px;padding:3px;gap:2px}.role-tabs button{background:none;border:0;border-radius:5px;color:var(--muted);font-size:14px;padding:8px 2px}.role-tabs button.active{background:#fff;box-shadow:0 1px 3px #283e1310;color:var(--green);font-weight:600}.helper{color:var(--muted);font-size:13px;line-height:1.8}.assistant-pane>.helper{min-height:34px;margin:11px 1px 16px}.field-label{display:block;font-size:14px;color:var(--ink);margin-bottom:8px}.provider-help{font-size:13px;color:var(--muted);line-height:1.7;margin:6px 0 20px}.instruction-label{margin-top:18px}.assistant-pane textarea{font-size:14px;background:#fcfcf9}.assistant-actions{display:flex;gap:8px;margin-top:12px}.assistant-actions .primary{flex:1}.assistant-actions .quiet{font-size:14px}.selection-card{border:1px solid #dce6d6;background:#f4f7ef;border-radius:8px;padding:10px 12px;margin:13px 0}.selection-card>div{display:flex;align-items:center;justify-content:space-between}.selection-card strong{font-size:13px;color:var(--green)}.selection-card p{font-size:14px;line-height:1.7;color:var(--ink);max-height:76px;overflow:hidden;margin:6px 0;white-space:pre-wrap}.selection-card small{font-size:13px;color:var(--muted);line-height:1.7;display:block}.run-panel{background:#f5f6f1;border:1px solid #e2e7dd;border-radius:9px;padding:12px;margin-top:20px}.run-heading{display:flex;align-items:center;justify-content:space-between}.run-heading strong{font-size:14px;color:var(--ink)}.run-heading .text-button{font-size:13px}progress{width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;margin:11px 0 3px;accent-color:var(--green)}progress::-webkit-progress-bar{background:#e2e7da}progress::-webkit-progress-value{background:#739468}.run-panel p{font-size:13px;color:var(--muted);margin:5px 0}.run-panel pre{max-height:160px;overflow:auto;white-space:pre-wrap;font:11px/1.8 inherit;color:var(--ink)}.run-panel .muted{margin-top:8px}.right-section-heading{display:flex;align-items:center;justify-content:space-between;margin-top:27px;padding-bottom:10px;border-bottom:1px solid var(--line)}.right-section-heading h3{font-size:14px;font-weight:500;margin:0;color:var(--ink)}.right-section-heading h3 span{font-size:13px;margin-left:6px;background:#f0f2ec;padding:2px 5px;border-radius:4px;color:var(--muted)}.right-section-heading button{font-size:13px}.comment-list{padding-top:9px}.comment-item{border:1px solid #e6e8e0;border-radius:8px;padding:10px;margin-bottom:8px}.comment-item blockquote{margin:0 0 6px;border-left:2px solid #c7d2bc;padding-left:8px;max-height:65px;overflow:hidden;white-space:pre-wrap;font-size:13px;color:var(--muted);line-height:1.6}.comment-item p{margin:6px 0;font-size:14px;line-height:1.7;color:var(--ink)}.comment-item small{font-size:13px;color:var(--muted)}.comment-item button{font-size:13px;display:block;margin-left:auto;margin-top:5px}.run-history{border-top:1px solid var(--line);margin-top:22px;padding-top:13px}.run-history summary{font-size:13px;color:var(--muted);cursor:pointer}.history-run{width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #f0f1eb;padding:10px 0;display:flex;gap:7px;align-items:center;color:var(--muted);font-size:13px}.history-run span:nth-child(2){flex:1}.status-dot{height:5px;width:5px;border-radius:50%;background:#9eaa96}.status-dot.failed{background:#be786a}.status-dot.running,.status-dot.queued{background:#c59d59}.status-dot.succeeded{background:#709060}.muted{font-size:13px;line-height:1.7;color:var(--muted)}
.modal{border:1px solid #dce1d5;border-radius:14px;padding:24px;box-shadow:var(--shadow);color:var(--ink);background:var(--paper);width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto}.modal::backdrop{background:#1f332a66;backdrop-filter:blur(3px)}.modal.wide{width:min(1080px,calc(100vw - 40px))}.modal.compact{width:min(460px,calc(100vw - 32px))}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.modal-heading h2{font-size:17px;font-weight:550;margin:0}.modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}.modal label{font-size:14px;display:block;margin:15px 0 7px;color:var(--ink)}.modal label:first-child{margin-top:0}.modal textarea{font-size:14px}.modal p{font-size:14px;line-height:1.9;color:var(--muted)}.modal .helper{font-size:13px}.notice{padding:10px 12px;border-radius:7px;font-size:14px;line-height:1.8;margin:10px 0}.notice.warning{color:#7b5726;background:#fbf1db;border:1px solid #ebd9ac}.notice.error{color:#9c4033;background:#fcf0eb;border:1px solid #efd9d0}.notice.info{color:var(--ink);background:#edf3e7;border:1px solid #d9e4cf}.notice .text-button{display:block;padding-left:0}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.compare-column{min-width:0}.compare-column h3{font-size:14px;font-weight:550;color:var(--ink);margin:0 0 10px;display:flex;align-items:center;gap:8px}.compare-text{border:1px solid var(--line);background:#fff;border-radius:8px;padding:17px;max-height:52dvh;min-height:180px;overflow:auto;font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.compare-text p{font:inherit;color:inherit;margin:0;min-height:1.9em;white-space:pre-wrap}.compare-text .removed{background:#fcf0e9;border-left:2px solid #d6a489;padding-left:9px;margin-left:-11px}.compare-text .added{background:#edf4e7;border-left:2px solid #9ebd8d;padding-left:9px;margin-left:-11px}.compare-heading{margin:0 0 14px;font-size:14px;color:var(--muted)}.version-item{border:1px solid var(--line);padding:12px;border-radius:8px;margin:8px 0;display:flex;align-items:center;gap:15px;background:#fff}.version-item>div{flex:1;min-width:0}.version-item strong{font-size:14px}.version-item p{font-size:13px;margin:3px 0 0}.version-item small{font-size:13px;color:var(--muted)}.reference-analysis{white-space:pre-wrap;font-size:14px;line-height:1.9;background:#fff;border:1px solid var(--line);border-radius:7px;padding:15px;max-height:45dvh;overflow:auto}.reference-chapter{padding:10px 0;border-bottom:1px solid var(--line)}.reference-chapter summary{font-size:14px;color:var(--ink);cursor:pointer}.reference-chapter pre{white-space:pre-wrap;font-size:14px;line-height:1.9;background:#fff;padding:12px;max-height:300px;overflow:auto}.toast-stack{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:30;display:flex;flex-direction:column;gap:7px;pointer-events:none;max-width:calc(100vw - 40px)}.toast{background:#344d3d;color:#fff;padding:12px 18px;border-radius:9px;box-shadow:0 5px 25px #15322126;font-size:14px;line-height:1.7;pointer-events:auto;animation:appear .2s ease}.toast.error{background:#955744}.toast button{border:0;background:none;color:white;font-size:15px;margin-left:14px;cursor:pointer}.busy{opacity:.6;pointer-events:none}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.role-tabs{grid-template-columns:repeat(5,1fr)}.plan-entry{display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--ink);font-size:14px;padding:11px 3px;text-align:left;margin-top:7px}.plan-entry span:first-child{flex:1;text-align:right;font-size:13px;color:var(--muted)}.plan-entry span:last-child{font-size:15px}.project-progress{padding:13px 24px 12px;border-bottom:1px solid var(--line);background:#f7f8f1;flex-shrink:0}.progress-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;gap:10px}.progress-heading>span{font-size:13px;color:var(--muted)}.progress-heading>button{font-size:13px;font-weight:550}.stage-list{display:flex;align-items:center;gap:7px}.stage-list button{border:0;border-radius:5px;background:none;color:var(--muted);font-size:13px;padding:4px 6px;white-space:nowrap}.stage-list button.done{color:var(--ink);background:#e9efdf}.stage-list button.current{color:var(--ink);background:#f1ecd9}.stage-list .stage-arrow{font-size:14px;color:var(--muted)}.document-goal{border-top:1px solid #e8eade;border-bottom:1px solid #e8eade;padding:10px 0;margin-bottom:10px;flex:none;max-height:180px;overflow:auto}.document-goal summary{font-size:13px;cursor:pointer;color:var(--muted)}.document-goal summary span{font-size:13px;color:var(--muted);margin-left:10px}.document-goal p{font-size:14px;line-height:1.8;white-space:pre-wrap;color:var(--muted);margin:10px 0}.document-goal small{font-size:13px;color:var(--muted);display:block;margin-top:4px}.analysis-scope{background:#f6f7f0;border:1px solid #e5e9dc;border-radius:8px;padding:10px 12px;margin-bottom:15px}.analysis-scope .field-label{font-size:13px}.analysis-scope .helper{font-size:13px;margin:8px 0 0}.range-fields{display:flex;gap:8px;align-items:center}.range-fields input{font-size:14px;padding:7px;width:85px;flex:1;min-width:0}.range-fields span{font-size:13px;color:var(--muted)}.plan-row{border:1px solid var(--line);border-radius:9px;background:#fff;padding:14px;margin:12px 0}.plan-row-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.plan-row-heading strong{font-size:14px;color:var(--muted)}.plan-row-heading small{font-size:13px;color:var(--muted);margin-left:8px}.plan-row label{font-size:13px!important;margin-top:9px!important}.plan-row input,.plan-row textarea{font-size:14px}.plan-row textarea{min-height:85px}.plan-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.coverage-intro{font-size:14px;line-height:1.8;color:var(--muted)}.coverage-list{list-style:none;padding:0;margin:15px 0;max-height:40dvh;overflow:auto}.coverage-list li{border:1px solid var(--line);border-radius:7px;padding:10px 12px;margin:7px 0;background:#fff}.coverage-list strong{display:block;font-size:14px;color:var(--ink)}.coverage-list small{display:block;font-size:13px;color:var(--muted);margin-top:5px}.coverage-list .partial{color:#7b5726}.analysis-section-title{font-size:15px;color:var(--muted);margin:20px 0 10px}.coverage-summary{font-size:13px;color:var(--muted);margin-top:7px}.context-details{margin-top:12px;padding-top:9px;border-top:1px solid #dfe5d7}.context-details summary{font-size:13px;color:var(--muted);cursor:pointer}.context-details p{line-height:1.8}.context-details ul{padding-left:16px;margin:7px 0}.context-details li{margin:5px 0;line-height:1.8}
@media(min-width:1550px){.workspace{grid-template-columns:260px minmax(500px,1fr) 365px}.assistant-pane{padding:26px}.draft-area{padding-left:9%;padding-right:9%}}
@media(max-width:1100px){.workspace{grid-template-columns:190px minmax(280px,1fr) 285px}.sidebar{padding-left:12px;padding-right:12px}.assistant-pane{padding-left:16px;padding-right:16px}.editor-toolbar{padding:14px 18px}.editor-toolbar>div:first-child{flex-direction:column;align-items:flex-start;gap:6px}.draft-area{padding:24px 6% 0}.draft-title{font-size:22px}.header-actions{gap:10px}.app-header{padding:0 20px}.toolbar-actions .button{padding:6px 8px}.toolbar-actions kbd{display:none}}
@media(max-width:850px){.workspace{height:auto;min-height:calc(100dvh - 76px);grid-template-columns:180px minmax(0,1fr);grid-template-rows:minmax(600px,calc(100dvh - 76px)) auto}.app-header{height:76px}.assistant-pane{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;border-top:1px solid var(--line);border-left:0;overflow:visible}.assistant-title,.role-tabs,.assistant-pane>.helper,.instruction-label,#instruction,.assistant-actions,.selection-card,.run-panel,.right-section-heading,.comment-list,.run-history{grid-column:1/-1}.assistant-pane>.helper{margin:0;min-height:0}.assistant-pane>label[for=provider-select]{margin:0;align-self:center}.provider-help{margin:0}.assistant-title{margin-bottom:0}.right-section-heading{margin-top:10px}.instruction-label{margin-top:8px}.editor-toolbar{padding:12px}.sidebar{padding-top:20px}.header-actions .connection{display:none}.draft-area textarea{font-size:14px}.compare-grid{gap:10px}.compare-text{font-size:14px}}
@media(max-width:560px){.app-header{padding:0 14px;height:70px}.brand h1{font-size:16px}.brand div>span{font-size:13px;letter-spacing:0}.brand-mark{width:34px;height:37px;font-size:22px}.header-actions{gap:7px}.header-actions .button{font-size:13px;padding:6px 8px}.header-actions .tag{display:none}.workspace{display:flex;flex-direction:column}.sidebar{padding:14px;flex:none;display:grid;grid-template-columns:1fr auto;gap:10px;border-right:0;border-bottom:1px solid var(--line)}.sidebar>.section-eyebrow{display:none}.sidebar #project-select{grid-column:1}.import-button{margin:0;width:auto;font-size:0;min-width:38px}.import-button span{font-size:18px}.project-summary{margin:0;grid-column:1/-1}.document-list{grid-column:1/-1;display:flex;gap:7px;overflow-x:auto;min-height:0;padding:0;margin:0}.document-item{width:auto;flex:none;margin:0;max-width:190px;padding:8px 10px;background:#f9faf5;border-color:var(--line)}.document-item small{display:none}.document-item strong{font-size:14px}.sidebar #new-document-button{position:absolute;right:15px;top:128px}.project-summary{padding-right:30px}.reference-button{grid-column:1/-1;padding:6px;border:0}.reference-button small{display:inline;margin-left:10px}.sidebar-footer{display:none}.editor-pane{min-height:65dvh;max-height:82dvh}.editor-toolbar{min-height:58px}.draft-area{padding-top:20px}.draft-area textarea{min-height:300px}.empty-editor{padding:30px 15px}.empty-editor h2{font-size:20px}.empty-editor p{font-size:14px}.empty-art{height:90px;transform:scale(.8)}.empty-editor>small{font-size:13px}.editor-footer{padding:0 13px;font-size:13px}.editor-footer>span:last-child{max-width:135px;overflow:hidden;white-space:nowrap}.assistant-pane{padding:22px 18px}.modal{padding:18px;max-height:calc(100dvh - 24px)}.modal.wide{width:calc(100vw - 20px)}.compare-grid{grid-template-columns:1fr}.compare-text{max-height:30dvh;min-height:100px}.modal-actions .button{font-size:14px}.version-item{flex-wrap:wrap;gap:8px}.version-item>div{flex-basis:100%}.toast-stack{bottom:12px;width:calc(100vw - 24px)}.toast{font-size:14px}.toolbar-actions .button{font-size:13px}}
.memory-entry{display:flex;gap:10px;align-items:center;width:100%;border:1px solid #e0e6d8;border-radius:8px;background:#f9faf4;padding:11px 10px;margin-top:8px;text-align:left;color:var(--muted)}.memory-entry>span:nth-child(2){flex:1;font-size:14px}.memory-entry small{display:block;font-size:13px;color:var(--muted);margin-top:4px}.memory-entry>span:last-child{font-size:13px;color:var(--muted)}.memory-selection-button{width:100%;margin-top:9px;font-size:13px;background:#fafbf6}.recovery-banner{display:flex;align-items:center;gap:12px;padding:10px 25px;background:#faf2df;border-bottom:1px solid #e8dcb7;flex:none}.recovery-banner>div{flex:1}.recovery-banner strong{display:block;font-size:13px;color:#7b5726}.recovery-banner small{display:block;font-size:13px;color:#7b5726;margin-top:3px}.recovery-banner button{font-size:13px;color:#7b5726}.memory-filters{display:grid;grid-template-columns:1fr 135px 150px;gap:10px;margin-bottom:14px}.memory-filters input,.memory-filters select{font-size:14px}.memory-list{max-height:54dvh;overflow:auto;padding-right:5px}.memory-item{border:1px solid var(--line);border-radius:9px;background:#fff;padding:15px;margin:10px 0}.memory-item.archived{background:#f7f7f2;opacity:.78}.memory-item-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.memory-item-heading h3{font-size:15px;color:var(--ink);margin:0}.memory-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.memory-badges .tag{font-size:13px}.memory-badges .tag.fact{color:var(--muted);background:#eef6e8;border-color:#d6e5ca}.memory-badges .tag.pending{color:#7b5726;background:#fcf6e8;border-color:#eddfbb}.memory-item>p{font-size:14px;white-space:pre-wrap;margin:12px 0;line-height:1.9;color:var(--muted)}.memory-item .memory-source{font-size:13px;color:var(--muted)}.memory-item .memory-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:9px}.memory-source-box{border:1px solid #e4e9dc;border-radius:8px;padding:12px;background:#f7f9f1;margin-top:14px}.memory-source-box p{font-size:14px;margin:0 0 7px}.memory-source-box label{display:flex;align-items:flex-start;gap:8px;font-size:14px;margin-top:10px!important;line-height:1.7}.memory-source-box input[type=checkbox]{width:15px;height:15px;flex:none;margin-top:3px;accent-color:var(--green)}.recovery-note{font-size:14px;color:#7b5726;line-height:1.9}.cache-error{color:#7b5726!important}.plan-list{max-height:50dvh;overflow:auto;padding-right:5px}.plan-list .plan-row:first-child{margin-top:0}.run-panel .coverage-list{max-height:180px}.run-panel .coverage-intro{font-size:13px}.run-panel .coverage-list li{padding:7px}.run-panel .coverage-list strong{font-size:13px}.run-panel .coverage-list small{font-size:13px}
@media(max-width:850px){.analysis-scope{grid-column:1/-1}.project-progress{padding:12px 17px}.stage-list{gap:4px}.stage-list button{font-size:13px;padding:4px}.stage-list .stage-arrow{font-size:13px}}
@media(max-width:560px){.plan-entry{grid-column:1/-1;padding:3px;margin:0}.project-progress{padding:12px 14px}.stage-list{gap:3px;flex-wrap:wrap}.progress-heading>button{font-size:13px}.document-goal{max-height:140px}.draft-area{padding-top:16px}.plan-row{padding:11px}.plan-row-heading strong{font-size:13px}.plan-row-heading small{font-size:13px}}
@media(max-width:850px){.memory-selection-button{grid-column:1/-1}.memory-filters{grid-template-columns:1fr 120px}.memory-filters input{grid-column:1/-1}.recovery-banner{padding:10px 14px}}
@media(max-width:560px){.memory-entry{grid-column:1/-1;margin:0;padding:8px}.recovery-banner{gap:7px}.recovery-banner strong{font-size:13px}.recovery-banner small{font-size:12px}.recovery-banner button{font-size:13px}.memory-item{padding:12px}.memory-item-heading{align-items:flex-start}.memory-item-heading h3{font-size:14px}.memory-filters{gap:8px}.memory-filters select{min-width:0}#local-draft-status{max-width:90px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}
.workflow-options{border:1px solid #e1e7d9;border-radius:8px;background:#f8faf3;padding:12px;margin-bottom:16px}.workflow-options select{font-size:14px}.workflow-options .field-label{font-size:13px}.workflow-options .helper{font-size:13px;margin:7px 0 0}.workflow-options #workflow-review-options>.field-label{margin-top:12px}.workflow-options textarea{font-size:14px}.workflow-panel{background:#f7faf3;border:1px solid #dce6d3;border-radius:9px;padding:13px;margin-top:18px}.workflow-panel #workflow-heading{line-height:1.8}.workflow-panel #workflow-message{font-size:13px;line-height:1.8;color:var(--muted)}.workflow-stages{list-style:none;margin:14px 0 10px;padding:0}.workflow-stage{background:#fff;border:1px solid #e6eadf;border-radius:7px;margin:8px 0;padding:9px 10px}.workflow-stage.running,.workflow-stage.queued{border-color:#c3d5b5;background:#fcfff8}.workflow-stage.failed,.workflow-stage.interrupted{border-color:#e4c9b9}.workflow-stage-heading{display:flex;justify-content:space-between;align-items:center;gap:6px}.workflow-stage-heading strong{font-size:13px;color:var(--ink)}.workflow-stage-heading span{font-size:13px;color:var(--muted)}.workflow-stage small{display:block;color:var(--muted);font-size:13px;margin-top:5px;line-height:1.7}.workflow-stage-actions{display:flex;gap:10px;margin-top:7px;flex-wrap:wrap}.workflow-stage-actions button{font-size:13px}.workflow-stage-error{font-size:13px;color:#7b5726;line-height:1.8;margin:7px 0 0}.workflow-panel>.button{margin-top:8px}.workflow-confirm-stages{list-style:none;padding:0;margin:14px 0}.workflow-confirm-stages li{padding:12px;border:1px solid var(--line);background:#fff;border-radius:7px;margin:8px 0}.workflow-confirm-stages strong{font-size:14px;display:block;color:var(--ink)}.workflow-confirm-stages small{display:block;font-size:14px;color:var(--muted);margin-top:5px}.workflow-material-note{font-size:14px;line-height:1.9;color:var(--muted)}.activity-notice{font-size:13px;line-height:1.8;color:#7b5726;margin-top:8px}
@media(max-width:850px){.workflow-options,.workflow-panel{grid-column:1/-1}}
@media(max-width:560px){.workflow-confirm-stages li{padding:10px}.workflow-stage-heading{align-items:flex-start}.workflow-options{padding:10px}}
.workflow-options select,.workflow-options textarea{font-size:14px}.workflow-options .field-label,.workflow-options .helper{font-size:14px;line-height:1.8}.workflow-panel #workflow-message{font-size:14px;line-height:1.8}.workflow-panel .run-heading strong{font-size:14px}.workflow-panel .run-heading button{font-size:14px;white-space:nowrap}.workflow-stage-heading strong{font-size:14px}.workflow-stage-heading span,.workflow-stage small,.workflow-stage-actions button,.workflow-stage-error,.workflow-panel>.helper{font-size:14px;line-height:1.8}.workflow-stages{max-height:340px;overflow:auto;padding-right:3px}.workflow-stage{padding:11px 10px}.workflow-stage-heading{align-items:flex-start}.workflow-stage-heading span{white-space:nowrap}.workflow-stage-actions{gap:12px}.workflow-panel>.button{font-size:14px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.role-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.role-tabs button{font-size:14px;min-height:37px;white-space:normal;padding:8px 5px}.role-tools{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0 4px}.role-tools button{border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:14px;padding:5px 7px}.role-tools button.active{background:#eaf1e5;color:var(--ink)}.hook-plan-entry{font-size:14px;margin:6px 0 11px;text-align:left;white-space:normal}.compact-help{font-size:14px!important;line-height:1.8;margin:8px 0}.creative-entry>span:nth-child(2){font-size:14px}.creative-entry small{font-size:13px;line-height:1.6}.creative-modal{width:min(880px,calc(100vw - 40px))}.creative-overview p{font-size:15px;color:var(--ink);margin:8px 0}.creative-overview .helper{font-size:14px;color:var(--muted)}.creative-group-controls{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 12px}.creative-group-controls button{font-size:14px}.creative-group{border:1px solid #dfe6d8;border-radius:9px;background:#fff;margin:12px 0;padding:0 16px}.creative-group>summary{cursor:pointer;padding:15px 0;font-size:15px;color:var(--ink)}.creative-group>summary strong{font-weight:600}.creative-group>summary span{font-size:14px;color:var(--muted);margin-left:12px}.creative-group[open]>summary{border-bottom:1px solid #e8edde;margin-bottom:13px}.creative-field{margin:13px 0 19px}.creative-field>label{font-size:14px!important;line-height:1.7;margin-bottom:7px!important}.creative-field textarea{font-size:15px;min-height:85px}.creative-field-help,.creative-role-scope{display:block;font-size:14px;color:var(--muted);line-height:1.8;margin-top:7px}.creative-role-scope{font-size:13px;color:var(--muted);margin-top:4px}.creative-modal .modal-actions{position:sticky;bottom:-24px;background:var(--paper);padding-bottom:16px;z-index:2}.character-filters{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:12px;margin:16px 0}.character-card-list,.memory-candidate-list{max-height:57dvh;overflow:auto;padding-right:5px}.character-card,.memory-candidate{border:1px solid var(--line);border-radius:9px;background:#fff;padding:18px;margin:12px 0}.character-card.archived,.memory-candidate.handled{background:#f7f8f3}.character-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.character-card-heading h3{font-size:15px;font-weight:600;margin:0;color:var(--ink)}.character-card>.helper{font-size:14px}.character-properties{display:grid;grid-template-columns:110px minmax(0,1fr);gap:9px 14px;font-size:14px;line-height:1.9}.character-properties dt{color:var(--muted)}.character-properties dd{margin:0;white-space:pre-wrap;color:var(--ink);overflow-wrap:anywhere}.character-card .memory-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.agent-guide-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.agent-guide-card{padding:18px;border:1px solid #dfe6d7;border-radius:9px;background:#fff}.agent-guide-card h3{font-size:14px;color:var(--ink);margin:0 0 9px}.agent-guide-card p{font-size:14px}.agent-guide-card .helper{font-size:14px}.agent-guide-card button{margin-top:9px}.candidate-select{display:flex!important;gap:10px;align-items:flex-start;margin:0 0 10px!important;line-height:1.8}.candidate-select input[type=checkbox]{width:17px;height:17px;flex:none;margin:3px 0 0;accent-color:var(--green)}.candidate-select strong{font-size:15px;color:var(--ink)}.memory-candidate .candidate-content{white-space:pre-wrap;color:var(--ink);font-size:15px;margin:12px 0}.candidate-quote{margin:8px 0 0;padding:10px 14px;background:#f7f8f2;border-left:3px solid #d2dec6;color:var(--muted);font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.memory-candidate .helper{font-size:14px}.memory-candidate-list:empty{display:none}
@media(max-width:850px){.role-tools,.hook-plan-entry,.compact-help{grid-column:1/-1}.role-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.creative-group{padding:0 12px}.creative-group>summary span{display:block;margin:5px 0 0 14px}.creative-modal{width:calc(100vw - 20px)}.creative-modal .modal-actions{bottom:-18px;padding-bottom:12px}.character-filters{grid-template-columns:minmax(0,1fr) 125px;gap:8px}.character-properties{grid-template-columns:1fr;gap:2px}.character-properties dd{margin-bottom:10px}.character-card,.memory-candidate{padding:13px}.agent-guide-list{grid-template-columns:1fr}.role-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.creative-meter{font-size:14px!important;color:var(--muted)!important;line-height:1.8}.creative-meter.over-limit{color:var(--danger)!important}.creative-group-controls{position:sticky;top:-24px;background:var(--paper);padding:9px 0;z-index:2}
.agent-settings-group{padding-bottom:14px}.agent-material-scope{border-top:1px solid var(--line);padding:12px 0}.agent-material-scope>summary{font-size:14px;color:var(--green);cursor:pointer;margin-bottom:12px}.agent-price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.usage-metrics{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px;padding:18px;background:white;border:1px solid var(--line);border-radius:9px}.usage-metrics dt{font-size:14px;color:var(--muted)}.usage-metrics dd{margin:0;font-size:15px;font-variant-numeric:tabular-nums}.material-preview-list{list-style:none;padding:0}.material-preview-list li{padding:10px 0;border-bottom:1px solid var(--line)}.material-preview-list strong{font-size:14px;display:block}.material-preview-list small{font-size:14px;color:var(--muted);display:block;margin-top:5px}.character-card .candidate-content{white-space:pre-wrap;font-size:15px;line-height:1.9}.memory-candidate .compare-grid{margin-top:12px}.sidebar>#ai-design-button{font-size:14px;white-space:normal;margin:8px 0}
@media(max-width:560px){.agent-price-fields{grid-template-columns:1fr}.usage-metrics{gap:12px}}

/* Local guidance, bounded jobs and recovery use the existing quiet workbench style. */
.stage-list .creation-step{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:9px 10px;min-height:50px;border:1px solid transparent;border-radius:7px;background:transparent;text-align:left;white-space:normal;flex:1 1 75px}
.stage-list .creation-step strong{font-size:14px;font-weight:550;line-height:1.5}.stage-list .creation-step small{font-size:13px;color:var(--muted)}.stage-list .creation-step.current{background:#eaf1e5;border-color:#d6e2cb}.stage-list .creation-step.done strong{color:var(--green)}.next-step-reason{font-size:14px;line-height:1.8;color:var(--muted);margin:8px 0 0}.stage-list{flex-wrap:wrap;gap:5px}.sidebar{overflow-y:auto}.document-list{flex:1 0 90px;max-height:45dvh}.sidebar .memory-entry{flex-shrink:0}.batch-selection-list{max-height:300px;overflow:auto;border:1px solid var(--line);background:#fff;border-radius:8px;padding:14px;margin:12px 0}.batch-selection-list .candidate-select{padding:5px 0}.batch-preview-items{font-size:14px;color:var(--ink);line-height:2;max-height:35dvh;overflow:auto;padding-left:24px}.batch-job-list,.batch-item-list,.backup-list{max-height:55dvh;overflow:auto;padding-right:5px}.batch-item-list .memory-item-heading,.batch-job-list .memory-item-heading{align-items:flex-start}.batch-item-list .memory-actions{justify-content:flex-start;flex-wrap:wrap;gap:8px}.backup-statistics h3{font-size:14px;color:var(--green);margin:14px 0 7px}.backup-statistics .usage-metrics{padding:12px;gap:8px 20px}.backup-statistics .usage-metrics dd{font-size:15px}.backup-confirmation{display:flex;gap:10px;align-items:flex-start;margin:20px 0;font-size:15px;line-height:1.8;color:#7b5726}.backup-confirmation input{width:18px;height:18px;flex:none;margin-top:3px;accent-color:var(--green)}.backup-item .memory-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:14px}.header-actions{gap:10px}
@media(max-width:850px){.sidebar{overflow:visible}.document-list{max-height:none}.stage-list .creation-step{flex-basis:88px}.header-actions .connection{display:none}}
@media(max-width:560px){.header-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}.header-actions .button{font-size:13px;padding:7px}.header-actions .tag{display:none}.stage-list .creation-step{flex-basis:75px;padding:7px}.backup-statistics .usage-metrics{padding:10px}}

/* Zhuoyan: an editorial surface with neutral ink and measured green accents. */
:root{--paper:#fdfcf8;--surface:#fffefa;--canvas:#edece6;--ink:#26323c;--muted:#5e6973;--line:#e1e3dd;--green:#245550;--green-dark:#173d39;--green-soft:#e7eeea;--gold:#aa8149;--radius:12px;--shadow:0 24px 80px #2036381c;font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif}
body{background:var(--canvas)}
.app-header{height:78px;padding:0 28px;background:#fffefa;box-shadow:0 1px 0 #ffffffc0;position:relative;z-index:2}
.brand{gap:13px}.brand-mark{width:43px;height:45px;border-radius:3px 12px 3px 12px;background:linear-gradient(135deg,#285b56,#173d3b);font-size:27px;box-shadow:0 3px 9px #25453c14}.brand h1{font-size:18px;letter-spacing:.13em;margin-bottom:6px;font-weight:600}.brand div>span{font-size:13px;letter-spacing:.16em;color:var(--muted)}.brand i{font-style:normal;letter-spacing:.08em;margin-left:10px;color:var(--muted)}
.header-actions{gap:10px}.header-actions>.button{border-color:transparent;font-weight:500;padding:8px 10px;color:var(--ink)}.header-actions>.button:hover:not(:disabled){background:#eef2ec;border-color:#e6e9e1}.connection{font-size:14px}.connection:before{box-shadow:0 0 0 3px #71998213}.tag{font-size:13px;border-radius:5px;letter-spacing:.01em;background:#f4f5ef;color:var(--muted);border-color:#e1e5db}
.workspace{grid-template-columns:246px minmax(370px,1fr) 334px;height:calc(100dvh - 78px);max-width:1920px;min-height:600px}
.sidebar{background:#f0f2ec;padding:21px 17px 16px;border-right-color:#dfe4db;gap:1px}.section-eyebrow{font-size:13px;color:var(--muted);letter-spacing:.15em}.section-eyebrow .icon-button{color:var(--ink)}.sidebar select{background:#fdfefb;border-color:#dce3d8;font-size:15px;font-weight:600;padding:10px;box-shadow:0 2px 4px #3e554204}.import-button{border-style:solid;background:#e8ede5;border-color:#dbe3d5;color:var(--ink);font-size:14px;min-height:36px;margin-top:9px}.import-button>span{font-size:17px;font-weight:600}
.project-summary{gap:7px;margin-top:15px;padding-bottom:10px}.project-summary .text-button{font-size:14px;color:var(--ink)}.project-summary #project-settings-button{flex-basis:100%;text-align:left;margin-top:3px}.sidebar-group{border-top:1px solid #dfe5d9;margin-top:9px;padding-top:8px}.sidebar-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:14px;color:var(--ink);font-weight:600;padding:5px 4px 10px}.sidebar-group>summary::-webkit-details-marker{display:none}.sidebar-group>summary span{font-size:12px;color:var(--muted);font-weight:400;letter-spacing:.1em}.sidebar-group:not([open])>summary:after{content:"＋";font-size:15px}.sidebar-group[open]>summary:after{content:"−";font-size:15px}.sidebar-group>summary span{margin-left:auto}.sidebar-group .memory-entry{border:1px solid transparent;border-radius:8px;margin:0 0 3px;padding:9px 7px;color:var(--ink);background:transparent;transition:background .15s}.sidebar-group .memory-entry:hover:not(:disabled){background:#e7ede2;border-color:#dce6d5;filter:none}.sidebar-group .memory-entry>span:first-child{width:21px;font-size:16px;color:var(--muted)}.sidebar-group .memory-entry>span:nth-child(2){font-size:14px;font-weight:500;line-height:1.45}.sidebar-group .memory-entry small{font-size:13px;color:var(--muted);margin-top:3px;line-height:1.5}.sidebar-group .memory-entry>span:last-child{font-size:13px;color:var(--muted);white-space:nowrap}.sidebar-group .plan-entry{font-size:14px;padding:7px 7px;color:var(--ink);margin:1px 0 6px}.sidebar-group .button.full{font-size:13px;min-height:31px;border-color:#dde5d8;color:var(--muted);background:#f5f7ef;margin:4px 0 7px}
.document-heading{margin-top:20px;color:var(--ink)}.document-list{flex:1 0 110px;min-height:85px}.document-item{border-radius:8px;min-height:56px;padding:10px;gap:9px}.document-item strong{font-size:14px}.document-item small{font-size:13px;margin-top:5px;color:var(--muted)}.document-item.active{background:#e2ebe0;border-color:#cddcc8;box-shadow:inset 3px 0 0 #537d62;color:var(--ink)}.document-item.active .doc-icon{color:var(--ink)}.sidebar-footer{font-size:13px;line-height:1.8;color:var(--muted);margin-top:14px;padding-top:13px}.sidebar-footer small{font-size:13px;color:var(--muted)}.reference-button,.sidebar>.memory-entry{color:var(--ink);font-size:14px}.reference-button>span:nth-child(2){font-size:14px}.reference-button small{font-size:13px;line-height:1.7}.sidebar>#reference-library-button{padding:10px 6px}.sidebar>#reference-library-button small{font-size:13px}
.editor-pane{background:var(--paper);box-shadow:0 0 30px #263e2404;position:relative}.project-progress{background:#f8f9f3;padding:18px 24px 12px;border-bottom:1px solid #e5e7df}.progress-heading>span{font-size:14px;font-weight:550;color:var(--muted);letter-spacing:.06em}.progress-heading>button{font-size:14px;color:var(--ink);max-width:58%;text-align:right;line-height:1.6}.stage-list{margin-top:12px;gap:6px;flex-wrap:nowrap}.stage-list .creation-step{position:relative;min-height:48px;padding:7px 6px;border-radius:7px;flex:1 1 0;background:transparent;border:1px solid transparent;align-items:center;text-align:center;gap:4px}.stage-list .creation-step strong{font-size:13px;font-weight:500;white-space:nowrap;color:var(--muted)}.stage-list .creation-step small{font-size:13px;color:var(--muted)}.stage-list .creation-step.current{background:#e9f0e5;border-color:#cedfc5;box-shadow:0 1px 3px #3f604805}.stage-list .creation-step.current strong{font-weight:650;color:var(--ink)}.stage-list .creation-step.done{background:#eff4eb}.stage-list .creation-step.done small{color:var(--muted)}.stage-list .stage-arrow{color:var(--muted);font-size:13px;align-self:center}.next-step-reason{font-size:13px;color:var(--muted);margin:10px 1px 0;line-height:1.75}
.editor-toolbar{min-height:64px;padding:15px 24px;background:#fdfcf8}.editor-toolbar>div:first-child{gap:12px}.eyebrow{font-size:13px;color:var(--muted);letter-spacing:.08em}.save-state{font-size:14px;color:var(--muted)}.save-state:before{content:"";display:inline-block;width:5px;height:5px;background:currentColor;border-radius:50%;margin-right:6px;vertical-align:2px}.save-state.dirty{color:#7b5726}.toolbar-actions{gap:7px}.toolbar-actions .button{font-size:14px;padding:7px 10px;min-height:32px;border-radius:6px;background:transparent;border-color:#e1e6da;color:var(--muted)}.toolbar-actions #save-button:not(:disabled){background:#edf3e7;border-color:#d8e5ca;color:var(--ink)}.draft-area{padding:32px clamp(26px,5.5vw,96px) 0}.draft-title{font-size:28px;line-height:1.5;font-weight:600;color:var(--ink);letter-spacing:.04em;padding-bottom:20px}.draft-title::placeholder{color:var(--muted)}.draft-area #draft{font-family:"Microsoft YaHei", "PingFang SC", system-ui,sans-serif;font-size:16px;line-height:2.15;letter-spacing:.025em;color:var(--ink);padding-top:19px;padding-bottom:30px}.draft-area #draft::placeholder{font-size:14px;line-height:2.2;color:var(--muted)}.draft-area #draft:focus-visible{box-shadow:inset 2px 0 0 #d2dfca;padding-left:12px;margin-left:-12px}.document-goal{background:#f4f7ef;border:1px solid #e5ebdc;border-radius:7px;padding:9px 12px;margin-bottom:3px;font-size:14px}.document-goal summary{font-size:14px;color:var(--muted)}.document-goal p,.document-goal .text-button{font-size:14px}.document-goal small{font-size:13px}.editor-footer{height:38px;font-size:13px;background:#f7f8f1;border-color:#e8ecdf;color:var(--muted);padding:0 24px;gap:14px}.recovery-banner{border-radius:0;font-size:14px;background:#faf5e8;border-color:#eaddc2}
.empty-editor{background:radial-gradient(ellipse at 50% 46%,#f5f7ed80,transparent 65%);padding:48px 24px}.empty-editor h2{font-family:"STSong","Songti SC",SimSun,serif;font-size:29px;font-weight:500;color:var(--ink);letter-spacing:.07em;margin-top:30px}.empty-editor p{font-size:15px;line-height:2.15;color:var(--muted)}.empty-editor>small{font-size:14px;color:var(--muted);line-height:1.8}.empty-art{width:184px;height:130px}.empty-art span{width:86px;height:111px;border-radius:4px 9px 4px 9px;box-shadow:0 8px 22px #3c582a0a;font-family:SimSun,serif;font-size:15px;border-color:#d8e3cd;color:var(--muted);background:#fffdf5;letter-spacing:.2em}.empty-art span:first-child{left:0;top:18px}.empty-art span:nth-child(2){left:49px;top:1px;background:#edf3e2;color:var(--muted)}.empty-art span:last-child{left:99px;top:18px;background:#fcf5e6;color:#7b5726}
.assistant-pane{background:#fffefa;padding:23px 20px;border-left-color:#e2e8db;scrollbar-gutter:stable}.assistant-title{margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #e9ecdf}.assistant-title .eyebrow{font-size:13px;letter-spacing:.14em;color:var(--muted)}.assistant-title h2{font-size:17px;font-weight:550;letter-spacing:.02em;color:var(--ink);margin-top:8px}.assistant-symbol{width:36px;height:36px;display:grid;place-items:center;background:#f6f2e6;border:1px solid #eae0c9;border-radius:12px 3px 12px 3px;font-size:24px;color:#7b5726}.role-tabs{padding:5px;background:#f2f5eb;border-color:#e5ecd9;gap:5px;border-radius:9px}.role-tabs button{min-height:37px;font-size:14px;color:var(--muted);border-radius:6px;padding:8px 4px}.role-tabs button.active{background:#fffefa;box-shadow:0 2px 6px #344c2110;color:var(--ink);border:1px solid #dbe7cd;font-weight:600}.role-tools{gap:5px;margin:9px 0 7px}.role-tools button{font-size:13px;color:var(--muted);padding:5px 6px}.role-tools button.active{background:#eef4e5;color:var(--muted)}.assistant-pane>.helper{font-size:14px;line-height:1.85;color:var(--muted);margin:11px 0 18px}.field-label{font-size:14px;font-weight:500;color:var(--muted);margin-bottom:8px}.provider-help{font-size:13px;line-height:1.85;color:var(--muted);margin:7px 0 19px}.assistant-pane select,.assistant-pane textarea{background:#fffefa;border-color:#e1e8d9;border-radius:7px;font-size:14px;color:var(--ink)}.assistant-pane select{min-height:39px}.assistant-pane textarea{line-height:1.95}.assistant-pane textarea::placeholder{color:var(--muted);font-size:14px}.assistant-pane #instruction{min-height:118px;padding:12px 13px;background:#fcfdf7;box-shadow:inset 0 1px 3px #36502a03}.assistant-actions{gap:7px;margin-top:12px}.assistant-actions .primary{background:#567b49;border-color:#567b49;font-size:14px;min-height:39px;box-shadow:0 3px 7px #547a3810}.assistant-actions .quiet{font-size:14px;min-height:39px;color:var(--muted);border-color:#e1e8d9}.memory-selection-button{font-size:14px;margin-top:10px;min-height:34px;border-color:#e7ecdf;color:var(--muted);background:transparent}.compact-help{font-size:13px!important;line-height:1.9;color:var(--muted)}.workflow-options{background:#f7faf1;border-color:#e1ead7;border-radius:8px;padding:11px;margin-bottom:16px}.workflow-options .helper,.workflow-options .field-label{font-size:13px;color:var(--muted)}.workflow-options select{font-size:14px}.run-history>summary{font-size:14px;color:var(--muted);cursor:pointer;line-height:1.8}.right-section-heading{margin-top:24px;border-color:#e5eadc}.right-section-heading h3{font-size:14px;color:var(--muted)}.comment-list .helper{font-size:13px;color:var(--muted);line-height:1.9}.button{border-radius:7px}.button.primary{background:#345e52;border-color:#345e52}.button.quiet{color:var(--muted)}.text-button{font-size:14px;color:var(--muted)}.helper{font-size:14px;line-height:1.9;color:var(--muted)}
.modal{border-radius:16px;padding:25px;background:#fdfdf9;border-color:#e1e9d8;box-shadow:0 30px 90px #1f37252b}.modal::backdrop{background:#172d263e;backdrop-filter:blur(4px)}.modal-heading{padding-bottom:18px;border-bottom:1px solid #e5ebdc;margin-bottom:18px}.modal-heading h2{font-size:19px;font-weight:550;color:var(--ink);letter-spacing:.02em}.modal-actions{padding-top:20px;border-top:1px solid #e5ebdc;gap:9px}.modal label{font-size:14px;color:var(--muted);font-weight:500;line-height:1.8}.modal input,.modal textarea,.modal select{font-size:15px;border-color:#dce6d2;background:#fff;color:var(--ink)}.notice{font-size:14px;line-height:1.9;border-radius:8px}.notice.info{background:#edf4e7;color:var(--muted);border-color:#dde9d3}.notice.warning{background:#fbf4e5;color:#7b5726;border-color:#ecdfbd}.notice.error{background:#fbefeb;color:#9c4033;border-color:#ecd7cb}.toast{font-size:14px;line-height:1.8;border-radius:10px;box-shadow:0 8px 28px #28412416}.toast-stack{z-index:100}
.account-button{display:flex;align-items:center;gap:8px;border:1px solid #e0e8d8;border-radius:8px;background:#f3f7ed;color:var(--muted);padding:5px 9px 5px 5px;font-size:14px;min-height:35px}.account-button>span:first-child{display:grid;place-items:center;width:26px;height:26px;border-radius:6px;background:#dfead6;color:var(--muted);font-size:14px;font-weight:600}.account-button>span:last-child{font-size:13px;color:var(--muted)}.account-button #account-name{max-width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.account-profile{text-align:center;padding:20px 10px 24px}.account-monogram{display:grid;place-items:center;width:60px;height:60px;margin:0 auto 16px;border-radius:18px 6px 18px 6px;background:#eaf2e0;color:var(--muted);font:25px SimSun,serif}.account-profile h3{font-size:19px;color:var(--muted);font-weight:550;margin:0}.account-profile .helper{margin:8px 0 13px;font-size:14px}
.login-page .header-actions{display:none}.login-page .app-header{border:0;background:#f6f8ef}.auth-shell{min-height:calc(100dvh - 78px);max-width:1280px;margin:auto;display:grid;grid-template-columns:1.1fr 1fr;align-items:stretch;background:#f7f9f0}.auth-intro{padding:75px 72px 45px;position:relative;overflow:hidden;border-right:1px solid #e0e8d5;background:radial-gradient(ellipse at 10% 75%,#e7efdb,transparent 70%)}.auth-kicker{font-size:13px;letter-spacing:.22em;color:var(--muted)}.auth-intro h2{font-family:SimSun,"Songti SC",serif;font-size:48px;font-weight:500;line-height:1.55;letter-spacing:.12em;color:var(--ink);margin:25px 0 16px}.auth-intro>p{font-size:15px;color:var(--muted);line-height:2.1}.auth-process{display:flex;gap:25px;margin-top:31px;font-size:13px;color:var(--muted);letter-spacing:.04em}.auth-paper{margin:57px 5px 0 8px;max-width:350px;padding:29px 30px;background:#fffdf4;border:1px solid #e2e9d6;border-radius:3px 11px 3px 11px;box-shadow:0 10px 30px #5876400a;transform:rotate(-3deg);position:relative}.auth-paper:before{content:"";position:absolute;left:20px;right:20px;top:12px;border-top:1px solid #e7eddc}.auth-paper span{display:block;font-family:SimSun,serif;font-size:17px;color:var(--muted);line-height:2.1;letter-spacing:.09em}.auth-paper i{display:block;font-style:normal;font-size:13px;color:var(--muted);margin-top:9px;letter-spacing:.04em}.auth-form-wrap{display:flex;align-items:center;justify-content:center;background:#fffefa;padding:44px}.auth-form{width:100%;max-width:350px}.auth-form>.eyebrow{font-size:13px;letter-spacing:.12em;color:var(--muted)}.auth-form h2{font-size:29px;font-family:SimSun,serif;font-weight:500;color:var(--muted);letter-spacing:.07em;margin:14px 0 12px}.auth-form .helper{font-size:14px;line-height:1.9;color:var(--muted);margin:0 0 28px}.auth-form label{display:block;font-size:14px;color:var(--muted);margin:20px 0 8px}.auth-form input{height:46px;font-size:15px;border-color:#dfe8d3;background:#fdfef9;box-shadow:inset 0 1px 2px #4e6c2d03}.auth-form input::placeholder{color:var(--muted);font-size:14px}.password-field{position:relative}.password-field input{padding-right:56px}.password-field button{position:absolute;right:11px;top:12px;font-size:14px;color:var(--muted)}.auth-form #login-submit{height:45px;font-size:15px;background:#6f8f53;border-color:#6f8f53;margin-top:27px;justify-content:space-between;padding:0 17px;box-shadow:0 4px 9px #72915112}.auth-form>small{display:block;text-align:center;font-size:13px;color:var(--muted);margin-top:18px;line-height:1.8}.auth-form .notice{margin-top:16px;font-size:14px}
.team-member-list{margin:17px 0}.team-member{display:flex;align-items:center;gap:15px;padding:17px 0;border-bottom:1px solid #e5ecdc;flex-wrap:wrap}.team-member-identity{display:flex;align-items:center;gap:11px;min-width:160px;flex:1}.team-avatar{width:33px;height:35px;border-radius:10px 3px 10px 3px;background:#edf4e3;color:var(--muted);display:grid;place-items:center;font-size:14px;font-weight:550}.team-member-identity strong{display:block;font-size:15px;color:var(--muted);font-weight:550}.team-member-identity small{display:block;font-size:13px;color:var(--muted);margin-top:5px;word-break:break-all}.team-member-access{text-align:right;min-width:98px}.team-member-access small{display:block;font-size:13px;color:var(--muted);margin-top:7px}.team-member .text-button{font-size:14px}.text-button.danger{color:#7b5726}
.admin-modal{width:min(1020px,calc(100vw - 48px))}.admin-tabs{display:flex;gap:5px;border-bottom:1px solid #e5ebdc;padding-bottom:13px;flex-wrap:wrap}.admin-tabs .button{border-color:transparent;font-size:14px;color:var(--muted);padding:8px 14px}.admin-tabs .selected{background:#edf4e4;border-color:#dce9cd;color:var(--muted);font-weight:600}.admin-content{min-height:250px;margin:22px 0 5px}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:29px}.admin-metric{padding:20px;background:#f5f9ee;border:1px solid #e1ebd5;border-radius:9px}.admin-metric>span{font-size:14px;color:var(--muted);display:block}.admin-metric strong{font-size:26px;font-weight:550;color:var(--muted);display:block;margin:14px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.admin-metric small{font-size:13px;color:var(--muted);line-height:1.8}.admin-section-title{font-size:15px;color:var(--muted);font-weight:550;margin:0 0 13px}.admin-provider-list{margin:10px 0 24px}.admin-provider{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border:1px solid #e4ecd9;background:#fff;border-radius:7px;margin:7px 0}.admin-provider strong{font-size:14px;color:var(--muted);font-weight:500}.admin-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.admin-list-toolbar .helper{margin:0}.admin-row{display:flex;align-items:center;gap:20px;border-bottom:1px solid #e5ebdc;padding:19px 3px;flex-wrap:wrap}.admin-row-info{min-width:150px;flex:1}.admin-row-info strong{font-size:15px;font-weight:550;color:var(--muted);display:block;line-height:1.7}.admin-row-info small{font-size:13px;color:var(--muted);margin-top:5px;display:block;overflow-wrap:anywhere}.admin-row-tags,.admin-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.admin-row-tags .tag{font-size:13px}.admin-row-actions .text-button{font-size:13px;padding:5px}.admin-audit-list{list-style:none;padding:0;margin:23px 0;max-height:45dvh;overflow:auto}.admin-audit-list li{display:flex;align-items:center;gap:17px;padding:16px 5px;border-bottom:1px solid #e5ebdc}.audit-dot{width:6px;height:6px;background:#c5d6b0;border-radius:50%;flex:none}.admin-audit-list li>div{flex:1}.admin-audit-list strong{font-size:14px;color:var(--muted);font-weight:500;display:block}.admin-audit-list small{font-size:13px;color:var(--muted);display:block;margin-top:6px}.admin-audit-list time{font-size:13px;color:var(--muted);white-space:nowrap}
@media(min-width:1550px){.workspace{grid-template-columns:266px minmax(500px,1fr) 370px}.assistant-pane{padding:26px}.draft-area{padding-left:8%;padding-right:8%}.sidebar{padding-left:21px;padding-right:21px}}
@media(max-width:1180px){.workspace{grid-template-columns:216px minmax(300px,1fr) 300px}.sidebar{padding:20px 13px}.assistant-pane{padding:21px 15px}.header-actions{gap:5px}.header-actions>.button{font-size:13px;padding:7px}.brand i{display:none}.editor-toolbar{padding:14px 17px}.toolbar-actions .button{padding:6px 8px;font-size:13px}.project-progress{padding:16px 17px 12px}.stage-list{gap:3px}.stage-list .creation-step{padding:6px 3px}.stage-list .creation-step strong{font-size:13px}.stage-list .creation-step small{font-size:12px}.auth-intro{padding:60px 45px 40px}.auth-intro h2{font-size:40px}.auth-form-wrap{padding:35px}}
@media(max-width:900px){.app-header{height:auto;min-height:76px;padding:15px 19px;gap:15px;flex-wrap:wrap}.workspace{grid-template-columns:200px minmax(0,1fr);height:auto;min-height:calc(100dvh - 76px)}.sidebar{grid-column:1;grid-row:1 / span 2;max-height:calc(100dvh - 76px);position:sticky;top:0;overflow:auto}.editor-pane{grid-column:2;min-height:650px}.assistant-pane{grid-column:2;display:grid;grid-template-columns:1fr 1fr;gap:0 17px;border-top:1px solid var(--line);border-left:0;max-height:none;overflow:visible}.assistant-title,.role-tabs,.role-tools,.assistant-pane>.helper,.assistant-actions,.instruction-label,#instruction,.workflow-options,.memory-selection-button,.compact-help,.assistant-pane>.run-panel,.assistant-pane>.workflow-panel,.assistant-pane>.right-section-heading,.comment-list,.run-history{grid-column:1 / -1}.role-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.assistant-title{margin-bottom:15px}.sidebar-group .memory-entry small{font-size:13px}.sidebar-group .memory-entry>span:nth-child(2){font-size:14px}.header-actions .connection{display:none}.header-actions .tag{display:none}.header-actions{margin-left:auto}.auth-shell{min-height:calc(100dvh - 76px)}.auth-intro{padding:55px 30px}.auth-intro h2{font-size:34px}.auth-form-wrap{padding:30px}.auth-paper{padding:23px 20px}.auth-paper span{font-size:14px}.auth-process{gap:14px;font-size:13px}.auth-form h2{font-size:26px}.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.app-header{padding:13px 15px;gap:12px}.brand h1{font-size:15px}.brand-mark{width:36px;height:39px;font-size:24px}.brand div>span{font-size:12px}.header-actions{width:100%;justify-content:flex-end;gap:7px}.header-actions .button{font-size:13px;min-height:29px;padding:5px 8px}.account-button{font-size:13px;min-height:29px}.account-button>span:first-child{width:22px;height:22px}.workspace{display:flex;flex-direction:column;min-height:0}.sidebar{position:static;max-height:none;display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:16px;border-right:0;border-bottom:1px solid #dfe6d7}.section-eyebrow{grid-column:1 / -1;margin-bottom:0}.sidebar>#project-select,.project-summary,.sidebar-group,.document-list,.document-heading,.sidebar-footer,.reference-button,.sidebar>#reference-library-button{grid-column:1 / -1}.import-button{margin-top:0;min-height:36px;font-size:13px}.sidebar-group{margin-top:3px;padding-top:8px}.sidebar-group>summary{padding-bottom:7px}.sidebar-group .memory-entry{padding:8px 6px}.sidebar-group .memory-entry>span:nth-child(2){font-size:14px}.sidebar-group .memory-entry small{font-size:13px}.project-summary{margin:4px 0;padding-bottom:1px}.document-heading{margin-top:6px}.document-list{max-height:200px}.sidebar-footer{margin-top:5px;padding-top:11px}.editor-pane{min-height:610px}.draft-area{padding:23px 24px 0}.draft-title{font-size:24px;padding-bottom:14px}.draft-area #draft{font-size:15px;line-height:2.1}.project-progress{padding:15px 14px 12px}.progress-heading>span{font-size:13px}.progress-heading>button{font-size:13px}.stage-list{flex-wrap:wrap;gap:5px}.stage-list .creation-step{flex:1 1 68px;min-height:43px;padding:6px}.stage-list .creation-step strong{font-size:13px}.stage-list .creation-step small{font-size:13px}.stage-list .stage-arrow{display:none}.editor-toolbar{padding:13px 14px;gap:7px}.editor-toolbar>div:first-child{gap:5px}.toolbar-actions{gap:5px}.toolbar-actions .button{font-size:13px;padding:6px 7px}.editor-footer{padding:0 14px;gap:9px;font-size:13px}.editor-footer>span:last-child{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assistant-pane{display:block;padding:24px 21px}.role-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.assistant-title h2{font-size:17px}.empty-editor h2{font-size:25px}.empty-editor p{font-size:14px}.empty-editor>div:last-of-type{flex-wrap:wrap;justify-content:center}.modal,.admin-modal{width:calc(100vw - 20px);padding:19px;max-height:90dvh;border-radius:12px}.modal-heading h2{font-size:17px}.modal-actions{flex-wrap:wrap;padding-top:16px}.auth-shell{grid-template-columns:1fr;min-height:calc(100dvh - 69px)}.auth-intro{padding:27px 26px 24px;border:0;border-bottom:1px solid #e4ebd9}.auth-intro h2{font-size:28px;line-height:1.5;margin:16px 0 11px}.auth-intro h2 br{display:none}.auth-intro>p{font-size:14px;margin:0;line-height:1.9}.auth-intro>p br{display:none}.auth-process{margin-top:20px;gap:23px}.auth-paper{display:none}.auth-form-wrap{padding:35px 27px}.auth-form h2{font-size:25px}.auth-form .helper{margin-bottom:23px}.login-page .app-header{min-height:69px;padding:14px 22px}.admin-metrics{gap:9px}.admin-metric{padding:15px}.admin-metric strong{font-size:22px;margin:10px 0}.admin-metric small{font-size:13px}.admin-tabs .button{font-size:14px;padding:7px 9px}.admin-row{gap:11px;padding:17px 0}.admin-row-actions{flex-basis:100%;justify-content:flex-end}.team-member{gap:11px}.team-member-access{min-width:84px}.team-member .text-button{font-size:13px}.admin-audit-list li{gap:10px}.admin-audit-list time{font-size:13px}}

/* Reading scale: 17 px manuscript, 15 px forms, 14 px actions, 13 px context. */
.brand-mark{width:44px;height:44px;flex:none;overflow:hidden;background:transparent;box-shadow:none;border-radius:12px}
.brand-mark img{display:block;width:44px;height:44px;object-fit:contain}
.brand h1{font-size:22px;letter-spacing:.12em;color:var(--ink);margin-bottom:1px}
.brand div>span{font-size:11px;letter-spacing:.12em;color:var(--muted)}
.brand i{font-size:12px;color:var(--muted)}
.header-actions{flex-wrap:wrap;gap:8px;justify-content:flex-end;min-width:0}
.header-actions>.button{font-size:14px;min-height:40px;color:var(--ink);padding:8px 11px}
.connection{font-size:13px;color:var(--muted)}
.tag{font-size:12px;line-height:1.5;color:var(--muted)}
button,input,textarea,select{line-height:1.55}
input,textarea,select,.sidebar select,.assistant-pane select,.assistant-pane textarea,.modal input,.modal textarea,.modal select{font-size:15px;color:var(--ink)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
.button,.toolbar-actions .button,.assistant-actions .primary,.assistant-actions .quiet,.memory-selection-button,.sidebar-group .button.full,.sidebar>#ai-design-button{font-size:14px;min-height:40px}
.button.quiet,.text-button,.import-button,.plan-entry,.sidebar-group .plan-entry,.memory-entry,.reference-button{color:var(--ink)}
.text-button,.project-summary .text-button,.role-tools button,.right-section-heading button,.memory-item .memory-actions button,.team-member .text-button,.admin-row-actions .text-button{font-size:14px;line-height:1.65}
.button.primary,.assistant-actions .primary,.auth-form #login-submit{background:var(--green);border-color:var(--green);color:#fff}
.button.primary:hover:not(:disabled),.assistant-actions .primary:hover:not(:disabled),.auth-form #login-submit:hover:not(:disabled){background:var(--green-dark);border-color:var(--green-dark)}
.button.danger,.text-button.danger{color:var(--danger)}
kbd{font-size:11px;color:var(--muted);opacity:1}
.helper,.muted,.provider-help,.assistant-pane>.helper,.workflow-options .helper,.workflow-options .field-label,.comment-list .helper,.compact-help,.modal .helper,.creative-field-help,.creative-role-scope,.creative-meter,.creative-overview .helper,.character-card>.helper,.agent-guide-card .helper,.memory-candidate .helper{font-size:13px!important;line-height:1.85;color:var(--muted)}
.field-label,.modal label,.creative-field>label,.analysis-scope .field-label,.plan-row label{font-size:14px!important;color:var(--ink);line-height:1.7}
.section-eyebrow,.sidebar-group>summary,.document-heading{font-size:14px;color:var(--ink);letter-spacing:.035em}
.sidebar-group>summary span{font-size:11px;letter-spacing:.06em;color:var(--muted)}
.sidebar-group .memory-entry>span:nth-child(2),.memory-entry>span:nth-child(2),.creative-entry>span:nth-child(2),.reference-button>span:nth-child(2),.document-item strong{font-size:14px;line-height:1.6;color:var(--ink)}
.sidebar-group .memory-entry small,.memory-entry small,.reference-button small,.sidebar>#reference-library-button small,.document-item small,.sidebar-footer,.sidebar-footer small{font-size:13px;line-height:1.75;color:var(--muted)}
.document-item.active{color:var(--ink)}
.sidebar-empty{font-size:14px;color:var(--muted)}
.project-progress{padding:16px 22px 12px}
.progress-heading>span,.progress-heading>button,.next-step-reason{font-size:13px;color:var(--muted);line-height:1.8}
.progress-heading>button{color:var(--ink)}
.stage-list{flex-wrap:wrap;gap:5px}
.stage-list .creation-step{flex:1 1 70px;min-width:0;min-height:56px;padding:7px 5px}
.stage-list .creation-step strong{font-size:13px;color:var(--ink);line-height:1.5;white-space:normal}
.stage-list .creation-step small{font-size:12px;color:var(--muted);line-height:1.4}
.stage-list .creation-step.done strong,.stage-list .creation-step.current strong,.stage-list .creation-step.done small{color:var(--ink)}
.stage-list .stage-arrow{display:none}
.editor-toolbar{padding:12px 22px;flex-wrap:wrap;min-height:68px}
.editor-toolbar>div:first-child{min-width:0}
.eyebrow,.assistant-title .eyebrow,.save-state{font-size:13px;color:var(--muted);letter-spacing:.02em}
.save-state.dirty{color:#7b5726}
.toolbar-actions .button{color:var(--ink);padding:8px 10px}
.toolbar-actions #save-button:not(:disabled){color:var(--ink)}
.draft-area{padding:27px clamp(24px,4vw,68px) 0}
.draft-title{color:var(--ink);font-size:28px;letter-spacing:.015em}
.draft-title::placeholder{color:var(--muted)}
.draft-area #draft{font-size:17px;color:var(--ink);line-height:2.05;letter-spacing:.015em}
.draft-area #draft::placeholder{font-size:16px;color:var(--muted);line-height:2.05}
.document-goal summary,.document-goal p,.document-goal .text-button{font-size:14px;color:var(--ink)}
.document-goal summary span,.document-goal small{font-size:13px;color:var(--muted)}
.editor-footer{height:auto;min-height:42px;padding:8px 22px;flex-wrap:wrap;font-size:13px;line-height:1.7;color:var(--muted);gap:5px 14px}
.editor-footer>span:last-child{overflow-wrap:anywhere}
.empty-editor h2,.assistant-title h2,.modal-heading h2,.auth-intro h2,.auth-form h2{color:var(--ink)}
.empty-editor p{font-size:15px;color:var(--muted)}
.empty-editor>small{font-size:13px;color:var(--muted)}
.role-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.role-tabs button{font-size:14px;min-height:42px;color:var(--ink);padding:8px 5px}
.role-tabs button.active{color:var(--ink)}
.role-tools button{font-size:13px;color:var(--muted)}
.role-tools button.active{color:var(--ink)}
.assistant-pane textarea::placeholder{font-size:14px;color:var(--muted)}
.selection-card strong,.selection-card p{font-size:14px;color:var(--ink)}
.selection-card small,.run-panel p,.run-panel .muted,.run-heading .text-button,.right-section-heading h3 span,.comment-item blockquote,.comment-item small,.comment-item button,.run-history summary,.history-run{font-size:13px;color:var(--muted)}
.run-heading strong,.right-section-heading h3,.comment-item p{font-size:14px;color:var(--ink)}
.run-panel pre{font:14px/1.85 "Microsoft YaHei",system-ui,sans-serif;color:var(--ink)}
.workflow-stage-heading strong,.workflow-confirm-stages strong{font-size:14px;color:var(--ink)}
.workflow-stage-heading span,.workflow-stage small,.workflow-stage-actions button,.workflow-stage-error,.workflow-confirm-stages small{font-size:13px;line-height:1.8}
.modal p,.modal textarea,.compare-text,.reference-analysis,.reference-chapter pre,.creative-overview p,.character-properties,.memory-item>p,.memory-candidate .candidate-content,.character-card .candidate-content{font-size:15px;color:var(--ink);line-height:1.9}
.modal-heading h2{font-size:20px;line-height:1.5}
.modal{padding:25px;overflow-wrap:anywhere}
.notice,.toast,.recovery-note,.activity-notice{font-size:14px;line-height:1.85}
.notice.info{color:#294b40}
.notice.warning,.recovery-banner strong,.recovery-banner small,.recovery-banner button{color:#7b5726}
.notice.error{color:#9c4033}
.version-item strong,.compare-column h3,.reference-chapter summary,.memory-item-heading h3,.character-card-heading h3,.creative-group>summary,.agent-guide-card h3,.coverage-list strong,.plan-row-heading strong,.analysis-section-title,.admin-section-title{font-size:15px;color:var(--ink)}
.version-item p,.version-item small,.compare-heading,.reference-chapter small,.coverage-summary,.coverage-list small,.creative-group>summary span,.memory-source,.memory-source-box p,.character-properties dt,.material-preview-list small,.plan-row-heading small{font-size:13px;color:var(--muted)}
.creative-group-controls button,.candidate-select strong,.material-preview-list strong,.backup-statistics h3{font-size:14px;color:var(--ink)}
.creative-group-controls,.creative-modal .modal-actions{background:var(--paper)}
.character-properties dd,.candidate-quote{color:var(--ink)}
.candidate-quote{font-size:14px}
.recovery-banner{flex-wrap:wrap}
.recovery-banner strong,.recovery-banner small,.recovery-banner button{font-size:13px}
.account-button{font-size:14px;color:var(--ink);min-height:40px;padding:5px 10px 5px 5px}
.account-button>span:last-child{font-size:13px;color:var(--muted)}
.account-button>span:first-child{color:var(--ink);width:28px;height:28px;font-size:14px}
.account-profile h3,.team-member-identity strong,.admin-row-info strong,.admin-audit-list strong,.admin-provider strong,.admin-metric strong{color:var(--ink)}
.account-profile .helper,.team-member-identity small,.team-member-access small,.admin-metric>span,.admin-metric small,.admin-row-info small,.admin-audit-list small,.admin-audit-list time{font-size:13px;line-height:1.75;color:var(--muted)}
.team-member-identity strong,.admin-row-info strong,.admin-audit-list strong,.admin-provider strong,.admin-tabs .button{font-size:14px}
.admin-row-tags .tag{font-size:12px}
.admin-tabs .selected{color:var(--ink)}
.admin-audit-list li{align-items:flex-start;flex-wrap:wrap}
.admin-provider,.admin-list-toolbar,.memory-item-heading,.character-card-heading,.plan-row-heading{flex-wrap:wrap}
.admin-provider strong,.admin-row-info,.team-member-identity{min-width:0;overflow-wrap:anywhere}
.auth-kicker{font-size:12px;color:var(--muted)}
.auth-intro>p{font-size:16px;color:var(--muted);line-height:2}
.auth-process{font-size:14px;color:var(--muted);flex-wrap:wrap;gap:15px 25px}
.auth-paper span{color:var(--ink)}
.auth-paper i{font-size:13px;color:var(--muted)}
.auth-form>.eyebrow,.auth-form .helper,.auth-form>small{font-size:14px;line-height:1.85;color:var(--muted)}
.auth-form label{font-size:15px;color:var(--ink)}
.auth-form input{font-size:16px;color:var(--ink);height:48px}
.auth-form input::placeholder{font-size:15px;color:var(--muted)}
.password-field button{font-size:14px;color:var(--ink);top:11px}
.auth-form #login-submit{font-size:16px;height:48px}
.auth-form .notice{font-size:14px}
.login-page .header-actions{display:flex;width:auto;margin-left:auto;align-self:center}
.login-page .header-actions>:not(#guide-button){display:none}
@media(min-width:1550px){.workspace{grid-template-columns:274px minmax(500px,1fr) 376px}}
@media(max-width:1180px){.app-header{height:auto;min-height:88px;padding:14px 20px;gap:18px;flex-wrap:wrap}.workspace{height:calc(100dvh - 88px);grid-template-columns:220px minmax(300px,1fr) 310px}.header-actions{gap:6px}.header-actions>.button{font-size:14px;padding:8px 10px}.toolbar-actions .button{font-size:14px}.draft-area{padding-left:26px;padding-right:26px}.stage-list .creation-step strong{font-size:13px}.stage-list .creation-step small{font-size:12px}}
@media(max-width:900px){.workspace{height:auto;grid-template-columns:200px minmax(0,1fr)}.header-actions{margin-left:0}.role-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.assistant-pane{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.sidebar-group .memory-entry>span:nth-child(2){font-size:14px}.sidebar-group .memory-entry small{font-size:13px}.assistant-pane select,.assistant-pane textarea{min-width:0}.auth-intro>p{font-size:15px}}
@media(max-width:640px){.app-header{padding:14px 16px;gap:12px;align-items:flex-start}.brand-mark,.brand-mark img{width:44px;height:44px}.brand h1{font-size:22px}.brand div>span{font-size:11px}.header-actions{justify-content:flex-start;gap:7px;width:100%}.header-actions>.button{font-size:14px;min-height:40px;padding:8px 10px}.account-button{font-size:14px;min-height:40px}.workspace{display:flex;min-width:0}.sidebar{display:flex;flex-direction:column;gap:8px;width:100%;padding:17px 20px}.sidebar>.section-eyebrow{display:flex}.sidebar #project-select{width:100%}.sidebar #new-document-button{position:static}.sidebar-group .memory-entry{padding:9px 7px}.sidebar-group .memory-entry>span:nth-child(2){font-size:14px}.sidebar-group .memory-entry small{font-size:13px}.import-button{font-size:14px;width:100%;margin:0}.project-summary{padding-right:0}.document-list{display:block;width:100%;overflow-x:hidden;max-height:220px;min-height:65px}.document-item{width:100%;max-width:none;margin-bottom:5px}.document-item strong{font-size:14px}.document-item small{display:block}.sidebar-footer{display:block}.reference-button small{display:block;margin-left:0}.editor-pane{max-height:none;min-height:660px}.draft-area{padding:24px 22px 0}.draft-area #draft{font-size:17px;min-height:350px}.draft-title{font-size:26px}.project-progress{padding:16px 17px 12px}.progress-heading{flex-wrap:wrap;align-items:flex-start}.progress-heading>span,.progress-heading>button{font-size:13px}.progress-heading>button{max-width:100%;text-align:left}.stage-list .creation-step{flex:1 1 82px;min-height:55px}.stage-list .creation-step strong{font-size:13px}.stage-list .creation-step small{font-size:12px}.editor-toolbar{padding:12px 17px;gap:9px}.editor-toolbar>div:first-child{flex-direction:row;flex-wrap:wrap;gap:6px 12px}.toolbar-actions{flex-wrap:wrap;gap:7px}.toolbar-actions .button{font-size:14px;min-height:40px;padding:8px 10px}.editor-footer{padding:9px 17px;font-size:13px;gap:4px 12px}.editor-footer>span:last-child{max-width:none;white-space:normal;margin-left:0}.assistant-pane{display:block;padding:23px 20px}.modal,.admin-modal{width:calc(100vw - 20px);padding:20px;max-height:92dvh}.modal-heading h2{font-size:20px}.modal-actions .button{font-size:14px}.admin-row-actions{justify-content:flex-start}.admin-metric small{font-size:13px}.admin-audit-list time{font-size:13px;white-space:normal}.admin-list-toolbar{align-items:flex-start}.team-member-access{font-size:13px}.team-member .text-button{font-size:14px}.team-member-identity{min-width:0;flex-basis:100%}.auth-intro{padding:30px 26px}.auth-intro>p{font-size:15px}.auth-process{font-size:13px;gap:12px 20px}.auth-form-wrap{padding:34px 26px}.login-page .app-header{padding:15px 23px;min-height:76px}.empty-editor p{font-size:15px}.empty-editor>small{font-size:13px}.compare-text{font-size:15px}.memory-filters,.character-filters{grid-template-columns:minmax(0,1fr) minmax(100px,125px)}}
