:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#263958;background:#f0f4fb;--blue:#3564e8;--line:#e1e8f4;--muted:#8899b2}*{box-sizing:border-box}body{margin:0;font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #a2bdff;outline-offset:2px}input,textarea,select{outline-color:#9bb8f8}a{color:var(--blue)}h1,h2,h3,p{margin-top:0}p{line-height:1.8}h2{font-size:20px}h3{font-size:15px}.app-shell{height:100dvh;display:grid;grid-template-rows:66px minmax(0,1fr) 26px;overflow:hidden}.topbar{display:flex;align-items:center;gap:16px;padding:0 24px;background:white;border-bottom:1px solid var(--line);z-index:12}.brand{display:flex;align-items:center;gap:10px;min-width:194px}.brand img{width:32px;height:32px}.brand b{font-size:22px;letter-spacing:4px;color:#254578}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#96a7c3;margin-top:2px}.top-divider{height:24px;width:1px;background:var(--line)}.top-title{font-weight:600;font-size:14px}.top-subtitle{font-size:11px;color:#8d9bb0}.top-actions{margin-left:auto;display:flex;gap:9px;align-items:center}.avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#eaf0ff;color:#537bd0;font-size:11px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border-radius:7px;font-weight:500;white-space:nowrap;background:white;border:1px solid var(--line);color:#566d90}.btn:hover{background:#f2f6ff;border-color:#b9cdf4}.btn.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 3px 9px #3564e822}.btn.text{background:transparent;border-color:transparent;padding:6px;color:var(--blue)}.btn.small{padding:6px 9px;font-size:12px}.icon-button{height:30px;min-width:30px;background:transparent;color:#7b8fab;border-radius:5px}.icon-button:hover{background:#edf2fc}.workbench{display:grid;grid-template-columns:232px minmax(340px,1fr) 348px;min-height:0}.files-panel{background:#f9fbff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.panel-label{display:flex;justify-content:space-between;padding:20px 18px 10px;font-size:10px;letter-spacing:1.7px;color:#8c9bb5}.project-select{margin:0 14px 12px;width:calc(100% - 28px);padding:11px 9px;border:1px solid var(--line);border-radius:8px;background:white;color:#2f4770;font-weight:600}.import-actions{display:flex;gap:6px;padding:0 14px 12px}.import-actions .btn{flex:1;font-size:11px;padding:8px}.tree-search{margin:0 14px 12px;width:calc(100% - 28px);padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:#f0f4fa;font-size:12px}.tree-scroll{overflow:auto;padding:0 8px 20px;flex:1}.tree-group{padding:13px 10px 7px;color:#8596b1;font-size:11px;display:flex;gap:8px}.tree-group span{margin-left:auto;color:#a2adc0}.file-row{display:flex;align-items:center;gap:9px;width:100%;padding:10px;color:#607492;background:transparent;border-radius:7px;text-align:left;font-size:12px;min-width:0;margin:2px 0}.file-row:hover{background:#edf2fc}.file-row.active{background:#e6eeff;color:#315de0;font-weight:600;box-shadow:inset 3px 0 #5680f0}.file-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.file-kind{font-size:9px;color:#95a4bd}.file-icon{font-size:14px;color:#7a99d8;width:16px;flex-shrink:0}.tree-folder{margin:5px 0 3px;padding:4px 12px;font-size:10px;color:#8c9ab1;overflow-wrap:anywhere}.file-empty{padding:7px 14px;color:#a3aec0;font-size:11px;line-height:1.8}.sidebar-card{margin:8px 14px 14px;flex-shrink:0;border:1px solid #dfe8fb;border-radius:11px;background:white;overflow:hidden}.sidebar-card img{display:block;width:100%;height:98px;object-fit:cover;object-position:center 55%}.sidebar-card div{padding:10px 12px;font-size:11px;color:#8798b2;line-height:1.8}.sidebar-card b{color:#476998;display:block;font-size:12px}.center-panel{display:flex;flex-direction:column;min-height:0;min-width:0;background:#edf1f8}.document-tabs{height:44px;flex-shrink:0;display:flex;align-items:stretch;background:#f8faff;border-bottom:1px solid var(--line);padding:0 12px;overflow-x:auto}.doc-tab{display:flex;align-items:center;gap:9px;padding:0 17px;border-bottom:2px solid transparent;background:transparent;color:#889ab3;white-space:nowrap;font-size:12px}.doc-tab.active{color:#315fd4;border-bottom-color:#4271ed;background:white}.doc-head{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:13px 20px;background:white;border-bottom:1px solid var(--line);min-height:63px}.doc-title{font-weight:600;font-size:14px;margin-bottom:5px}.doc-caption{font-size:10px;color:#8b98ac}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.toolbar{display:flex;gap:4px;align-items:center;padding:7px 18px;background:white;border-bottom:1px solid var(--line);flex-shrink:0;min-height:40px}.toolbar select{background:white;border:1px solid var(--line);border-radius:4px;font-size:11px;padding:4px;color:#607795}.toolbar button{height:26px;min-width:27px;border-radius:4px;background:none;color:#536581}.toolbar button:hover{background:#edf2ff}.toolbar-sep{height:17px;width:1px;background:var(--line);margin:0 6px}.toolbar-note{margin-left:auto;font-size:10px;color:#96a2b6}.editor-scroll{overflow:auto;flex:1;min-height:0;padding:22px 26px 48px}.ruler{height:17px;max-width:794px;margin:0 auto 8px;border-bottom:1px solid #d5dce9;background:repeating-linear-gradient(90deg,transparent 0,transparent 15px,#cdd6e6 15px,#cdd6e6 16px);background-size:100% 5px;background-position:bottom;background-repeat:repeat-x;display:flex;justify-content:space-between;color:#9cabc0;font-size:8px;padding:0 35px}.paper{max-width:794px;min-height:850px;background:white;box-shadow:0 3px 20px #29447809;border:1px solid #dfe5ef;margin:auto;padding:48px 54px 65px}.paper-mark{font-size:9px;letter-spacing:2px;color:#adbad0;border-bottom:1px solid #e8edf5;padding-bottom:14px;margin-bottom:24px;display:flex;justify-content:space-between}.rich-editor{outline:none;line-height:1.95;font-size:14px;min-height:540px;overflow-wrap:anywhere;color:#34425b}.rich-editor h1{font-size:23px;line-height:1.55;color:#203c71;margin:0 0 26px}.rich-editor h2{font-size:17px;margin:27px 0 12px;color:#30456d}.rich-editor h3{font-size:15px;margin:23px 0 10px}.rich-editor p{margin:0 0 13px;line-height:1.95;min-height:1em}.rich-editor ul,.rich-editor ol{padding-left:24px}.rich-editor[contenteditable=true]:focus{caret-color:var(--blue)}.rich-editor[contenteditable=true]:empty:before{content:attr(data-placeholder);color:#a1adc1}.rich-editor::selection,.rich-editor *::selection{background:#d9e6ff}.paper-footer{margin-top:42px;padding-top:12px;border-top:1px solid #e8edf5;color:#a4b0c4;font-size:9px;display:flex;justify-content:space-between}.editor-bottom{padding:8px 20px;border-top:1px solid var(--line);background:#f8faff;color:#8795ac;display:flex;justify-content:space-between;font-size:10px;flex-shrink:0}.workflow-strip{display:flex;gap:5px;align-items:center;padding:8px 16px;background:#f8fbff;border-bottom:1px solid var(--line);font-size:10px;color:#8998b0;flex-shrink:0}.workflow-strip span{padding:4px 7px;border-radius:4px}.workflow-strip .done{color:#268571}.workflow-strip .current{color:#3264df;background:#eaf0ff}.workflow-strip i{font-style:normal;color:#c0cada}.assistant-panel{background:white;border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0;min-width:0}.assistant-head{display:flex;align-items:center;gap:10px;padding:15px 17px;border-bottom:1px solid var(--line);height:65px;flex-shrink:0}.assistant-head img{width:37px;height:37px;object-fit:cover;border-radius:11px;border:1px solid #dce6ff}.assistant-head strong{font-size:14px}.assistant-head small{display:block;font-size:10px;color:#899ab4;margin-top:4px}.online-dot{width:6px;height:6px;border-radius:50%;background:#59ac8d;display:inline-block;margin-right:4px}.context-pill{margin:12px 15px 0;padding:9px 11px;border-radius:7px;background:#f3f6fc;color:#7789a5;font-size:11px;display:flex;gap:7px}.context-pill strong{color:#4b658e;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-scroll{overflow:auto;flex:1;padding:17px 16px;min-height:0}.assistant-welcome{margin-bottom:18px;border:1px solid #e2e9fa;border-radius:12px;overflow:hidden;background:linear-gradient(145deg,#f4f7ff,white)}.welcome-art{height:105px;overflow:hidden;background:#edf3ff}.welcome-art img{width:100%;height:100%;object-fit:cover;object-position:center 42%}.welcome-copy{padding:14px}.welcome-copy h3{font-size:14px;color:#2d4c85;margin-bottom:7px}.welcome-copy p{font-size:12px;color:#7d8da7;line-height:1.8;margin:0}.next-step{padding:13px;border:1px solid #e2e9fa;border-radius:10px;margin-bottom:18px;background:#fbfcff}.next-step .eyebrow{color:#8b9cba;font-size:9px;letter-spacing:1.5px;margin-bottom:7px}.next-step strong{font-size:12px}.next-step p{font-size:11px;color:#8796ad;margin:6px 0 10px}.next-step .btn{width:100%;font-size:12px}.message{margin-bottom:19px}.message-label{display:flex;justify-content:space-between;color:#98a6bb;font-size:9px;margin-bottom:7px}.message-label b{color:#60779b;font-size:11px;font-weight:500}.message-body{font-size:12px;line-height:1.85;overflow-wrap:anywhere;color:#4b5b75;background:#f4f7fc;padding:12px 13px;border-radius:0 10px 10px 10px}.message.user .message-body{background:#eaf1ff;border-radius:10px 0 10px 10px;color:#315d9c}.message-body p{font-size:12px;margin:0 0 9px}.message-body p:last-child{margin:0}.message-body h1,.message-body h2,.message-body h3{font-size:13px;margin:10px 0 6px}.message blockquote{margin:0 0 8px;padding:7px 10px;border-left:2px solid #a2b8ed;color:#7d8daa;font-size:11px;max-height:100px;overflow:auto}.proposal{margin-top:10px;padding:11px;border:1px solid #dce8f5;background:white;border-radius:7px}.proposal del{display:block;background:#fff2f2;color:#a36468;font-size:11px;padding:6px;max-height:100px;overflow:auto}.proposal ins{display:block;background:#eef8f1;color:#40755a;text-decoration:none;font-size:11px;padding:6px;max-height:150px;overflow:auto}.proposal p{font-size:11px;color:#7b8aa3;margin:8px 0}.chat-composer{border-top:1px solid var(--line);padding:12px 14px;background:white;flex-shrink:0}.chat-composer textarea{width:100%;height:86px;resize:vertical;max-height:180px;border:1px solid #dce5f5;border-radius:9px;padding:12px;color:#3b4d6b;background:#fafcff;font-size:12px;line-height:1.7}.composer-foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.composer-foot small{color:#9aa8bc;font-size:9px}.selection-chip{background:#edf3ff;padding:8px 10px;border-radius:6px;color:#5979ae;font-size:11px;margin-bottom:8px;display:flex;justify-content:space-between;gap:10px}.selection-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.statusbar{background:#f9fbff;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 17px;font-size:9px;color:#95a3ba}.tag{display:inline-block;font-size:10px;padding:4px 7px;border-radius:4px;background:#eef3ff;color:#637eb0;white-space:nowrap}.tag.green{background:#edf7f2;color:#3c8a6f}.tag.amber{background:#fff6e6;color:#aa8344}.section-card{background:white;border:1px solid var(--line);border-radius:10px;padding:22px;margin:0 auto 17px;max-width:850px}.section-card h2{font-size:18px;margin-bottom:12px}.section-card p{color:#7a89a2;font-size:12px}.notice{padding:12px 14px;background:#f0f5ff;color:#607da9;font-size:12px;line-height:1.8;border-radius:7px;margin:0 auto 16px;max-width:850px;border:1px solid #dae6fc}.notice.error{background:#fff4f1;color:#a45f50;border-color:#f1d9d1}.field-label{font-size:12px;font-weight:600;display:block;margin:15px 0 7px;color:#536782}input[type=text],input[type=password],input[type=date],textarea.field,select.field{width:100%;border:1px solid #dce4f1;border-radius:7px;padding:10px 11px;font-size:13px;color:#405475;background:white}.field{line-height:1.8}textarea.field{min-height:100px;resize:vertical}.question{padding:15px 0;border-bottom:1px solid #edf1f7}.question h3{margin:10px 0 7px;line-height:1.7}.question p{font-size:11px}.question textarea{min-height:85px}.fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fact{background:#f8faff;padding:13px;border:1px solid #e5ecf9;border-radius:7px}.fact h3{font-size:12px;margin:9px 0 5px}.fact p{font-size:11px;margin:0 0 5px}.fact small{font-size:10px;color:#9aa8bc}.card-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:18px;flex-wrap:wrap}.version-card{padding:17px;border:1px solid var(--line);border-radius:8px;margin-bottom:12px}.version-card p{margin:8px 0}.version-card .row{justify-content:space-between}.review-item{border-bottom:1px solid var(--line);padding:17px 0}.review-item p{font-size:12px}.diff-box{font:11px/1.8 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9fd;padding:13px;color:#607596}.diff-pair{display:grid;grid-template-columns:1fr 1fr;font-size:12px;line-height:1.8;gap:8px}.diff-pair>div{padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;background:#fef4f3;color:#996761}.diff-pair>div+div{background:#f0f8f2;color:#517d5e}.empty-state{text-align:center;padding:50px 20px;background:white;border-radius:12px;border:1px solid var(--line)}.empty-state img{width:190px;height:145px;object-fit:cover;border-radius:16px;margin-bottom:20px}.empty-state h2{font-size:20px}.empty-state p{color:#8a9ab3;font-size:13px;max-width:440px;margin:0 auto 20px}.job-status{border:1px solid #d8e4ff;background:#f0f5ff;padding:12px;border-radius:8px;font-size:11px;color:#5576ae;margin-bottom:14px;line-height:1.8}.job-status.error{background:#fff5f1;border-color:#f0dfd7;color:#a36c55}.job-status code{font-size:10px;overflow-wrap:anywhere}.spinner{width:12px;height:12px;border:2px solid #a8bfef;border-right-color:#426add;border-radius:50%;display:inline-block;animation:spin .9s linear infinite;vertical-align:middle;margin-right:5px}@keyframes spin{to{transform:rotate(360deg)}}dialog{width:min(560px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #d7e2f5;border-radius:15px;padding:25px;color:#344b70;box-shadow:0 20px 90px #11285235}dialog::backdrop{background:#15264460;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-heading h2{font-size:19px;margin:0}.checkline{display:flex;gap:9px;align-items:flex-start;margin-top:16px;font-size:12px;line-height:1.8}.checkline input{margin-top:5px}dialog p{color:#8594aa;font-size:12px}.boot{display:grid;place-items:center;height:100vh;color:#6481b8}#toast{position:fixed;bottom:45px;left:50%;transform:translateX(-50%);background:#253d68;color:white;border-radius:9px;padding:13px 20px;box-shadow:0 4px 20px #192b5a20;z-index:100;max-width:85vw;font-size:12px;display:none}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.2fr 1fr;background:#f4f7fd}.login-art{background:url('/assets/login-scene.png') 28% center/cover;position:relative}.login-art div{position:absolute;left:8%;top:9%;font-size:25px;color:#2f5289;line-height:1.8}.login-card{align-self:center;justify-self:center;width:min(410px,85%);background:white;border:1px solid var(--line);border-radius:16px;padding:35px}.login-card .brand{margin-bottom:34px}.login-card h2{font-size:21px}.mobile-only{display:none}.save-label.dirty{color:#bc923f}.task-log{color:#8799b7;font-size:11px;line-height:1.9;padding:10px 2px}.task-log time{font-size:9px;color:#aab6c8}.history-banner{display:flex;justify-content:space-between;align-items:center}.chat-suggestions{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0 0}.chat-suggestions button{background:white;border:1px solid #e2e9f6;border-radius:14px;color:#778fac;font-size:10px;padding:6px 9px}
@media(min-width:1600px){.workbench{grid-template-columns:260px minmax(340px,1fr) 390px}.paper{padding:55px 66px}.chat-scroll{padding:20px}.sidebar-card img{height:120px}}
@media(max-width:1190px){.workbench{grid-template-columns:208px minmax(310px,1fr) 306px}.paper{padding:33px 30px;min-height:760px}.editor-scroll{padding:17px 17px 35px}.topbar{padding:0 15px}.brand{min-width:175px}.top-subtitle,.toolbar-note{display:none}.doc-head{padding:12px}.doc-title,.top-title{font-size:12px}}
@media(max-width:980px){.workbench{grid-template-columns:205px minmax(0,1fr)}.assistant-panel{display:none}.assistant-panel.open{display:flex;position:fixed;right:0;top:66px;bottom:26px;width:min(360px,94vw);z-index:20;box-shadow:-12px 0 45px #233c6320}.mobile-only{display:inline-flex}.top-title,.top-divider{display:none}.fact-grid{grid-template-columns:1fr}.assistant-head .close-ai{margin-left:auto}}
@media(max-width:650px){.app-shell{grid-template-rows:58px minmax(0,1fr) 25px}.topbar{padding:0 12px;gap:7px}.brand{min-width:0}.brand b{font-size:19px}.brand small{font-size:8px}.top-actions{gap:5px}.top-actions .btn{font-size:11px;padding:7px}.top-actions .avatar{display:none}.workbench{grid-template-columns:minmax(0,1fr)}.files-panel{display:none}.files-panel.open{display:flex;position:fixed;left:0;top:58px;bottom:25px;width:250px;z-index:21;box-shadow:12px 0 35px #233c6325}.assistant-panel.open{top:58px;bottom:25px}.editor-scroll{padding:13px 10px 30px}.paper{padding:25px 23px;min-height:700px}.paper-mark{font-size:8px}.rich-editor{font-size:13px}.rich-editor h1{font-size:21px}.doc-head{flex-wrap:wrap;gap:9px}.document-tabs{height:39px;padding:0}.doc-tab{padding:0 12px;font-size:11px}.toolbar{padding:6px 12px}.workflow-strip{padding:7px;font-size:9px;gap:2px}.workflow-strip span{padding:4px}.statusbar span:last-child{display:none}.diff-pair{grid-template-columns:1fr}.section-card{padding:17px}.login-shell{grid-template-columns:1fr}.login-art{display:none}.login-card{margin:25px}.top-actions .model-label{max-width:82px;overflow:hidden;text-overflow:ellipsis}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

/* Quiet document-first workspace. */
:root{--blue:#4265dc;--line:#e8ebf1;--muted:#929aa8;color:#303b4d;background:#f7f8fa}
body{font-size:14px}.app-shell{grid-template-rows:62px minmax(0,1fr) 24px}.topbar{padding:0 22px;gap:18px}.brand{min-width:176px;gap:9px}.brand b{font-size:21px;letter-spacing:2px}.brand small{letter-spacing:0;font-size:10px;margin-top:1px;color:#9aa1ae}.brand img{width:30px;height:30px}.top-title{font-size:13px;font-weight:500;color:#5d6676;max-width:340px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-subtitle{font-size:10px;background:#f3f5f9;padding:3px 7px;border-radius:4px;color:#929aaa}.top-actions{gap:6px}.top-actions .btn{border-color:transparent;font-size:12px;padding:7px 10px;color:#737c8d}.top-actions .btn:hover{background:#f5f6fa}.btn{border-radius:6px;padding:8px 12px;box-shadow:none!important}.btn.primary{background:var(--blue);border-color:var(--blue)}
.workbench{grid-template-columns:226px minmax(340px,1fr) 330px}.files-panel{background:#fafbfc}.panel-label{padding:23px 18px 12px;font-size:12px;letter-spacing:0;color:#525f74;font-weight:600}.project-select{font-size:12px;padding:9px;border-color:#e6eaf0;background:white}.import-actions{gap:5px;padding-bottom:10px}.import-actions .btn{font-size:11px;color:#727e91;padding:7px}.tree-search{background:white;border:1px solid #e9edf2;padding:8px;font-size:11px}.tree-scroll{padding:4px 9px 15px}.file-group{margin-bottom:15px}.file-group>summary{font-size:11px;color:#8a93a4;list-style:none;cursor:pointer;padding:8px 9px;display:flex;gap:6px;align-items:center}.file-group>summary:before{content:'›';font-size:13px}.file-group[open]>summary:before{content:'⌄'}.file-group>summary span{margin-left:auto;font-size:10px;color:#a8aebb}.file-row{font-size:11px;padding:10px 9px;color:#617086;gap:7px;margin:1px 0}.file-row.active{box-shadow:none;background:#edf1fc;color:#4665c9;font-weight:500}.file-row:hover{background:#f0f2f7}.file-icon{font-size:12px;color:#93a2bd}.tree-folder{font-size:10px;margin-left:8px;padding:5px 10px;color:#9ba4b4}.workspace-foot{display:flex;align-items:center;gap:10px;margin:15px 18px;padding:13px 0 0;border-top:1px solid var(--line);color:#8a94a6;font-size:11px;line-height:1.6}.workspace-foot img{width:42px;height:42px;object-fit:cover;border-radius:50%;opacity:.9}.workspace-foot small{font-size:10px;color:#a4adba}
.center-panel{background:#f2f3f6}.document-tabs{height:43px;background:white;padding:0 14px;overflow:visible;align-items:center}.doc-tab{font-size:12px;height:100%;padding:0 14px;color:#919aaa}.doc-tab.active{background:none;border-color:#5875d7;color:#4566c9}.tab-spacer{flex:1}.workflow-menu,.doc-menu{position:relative}.workflow-menu>summary,.doc-menu>summary{list-style:none;font-size:11px;padding:8px;color:#8691a2;cursor:pointer;white-space:nowrap}.workflow-menu>div,.doc-menu>div{position:absolute;right:0;top:100%;z-index:25;min-width:176px;background:white;border:1px solid var(--line);box-shadow:0 7px 25px #25355012;border-radius:7px;padding:5px}.workflow-menu button,.doc-menu button{display:block;width:100%;padding:10px;font-size:12px;border:0;text-align:left;color:#68768e;background:white;justify-content:flex-start}.workflow-menu button:hover,.doc-menu button:hover{background:#f3f5fa}.doc-head{padding:14px 23px;min-height:69px}.doc-title{font-size:14px;color:#37475f;margin-bottom:4px;font-weight:600}.doc-caption{font-size:10px;color:#9aa3b2}.workflow-strip{padding:8px 23px;gap:12px;background:#fcfcfd;color:#737f94;font-size:11px;min-height:43px}.workflow-strip>span:first-child{padding:0;font-weight:500}.workflow-hint{padding:0!important;font-size:10px;color:#a1a9b7;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workflow-strip>.btn{margin-left:auto;font-size:10px;padding:5px 8px;background:white;border-color:#e7ebf3;color:#6477a8}.toolbar{padding:7px 20px;background:white}.toolbar-note{font-size:10px;color:#a7afbc}.editor-scroll{padding:24px 28px 40px}.ruler{display:none}.paper{border:1px solid #e5e8ef;box-shadow:0 2px 10px #24344505;padding:54px 62px;max-width:780px;min-height:900px}.paper-mark,.paper-footer{display:none}.rich-editor{font-size:14px;line-height:1.9;color:#374152}.rich-editor h1{font-size:22px;margin-bottom:22px;color:#27364a}.rich-editor h2{color:#374558;font-size:16px;margin:22px 0 10px}.rich-editor h3{color:#46536b}.rich-editor p{line-height:1.85;margin-bottom:10px}.rich-editor p:has(>br:only-child){min-height:7px;line-height:.5;margin-bottom:8px}.editor-bottom{background:#fcfcfd;padding:7px 23px;font-size:10px;color:#a4adba}.statusbar{background:white;font-size:9px;color:#a4adba;padding:0 20px}
.assistant-head{height:62px;padding:14px 19px;gap:9px;border-bottom:0}.assistant-head img{width:31px;height:31px;border-radius:50%;border:0}.assistant-head strong{font-size:13px;font-weight:600;color:#44506a}.assistant-tabs{display:flex;margin:0 18px;border-bottom:1px solid var(--line);gap:21px}.assistant-tabs button{background:none;padding:8px 0 10px;color:#a0a8b5;font-size:12px;border-bottom:2px solid transparent}.assistant-tabs button.active{color:#4964a9;border-color:#7e94d4}.assistant-tabs span{font-size:9px;background:#f4eee5;color:#a68a68;border-radius:4px;padding:1px 4px}.context-pill{background:none;border-bottom:1px solid #f0f2f6;padding:11px 2px;margin:0 20px;border-radius:0;font-size:10px;color:#9ca6b5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-pill:before{content:'当前文档 · ';color:#b0b7c3}.chat-scroll{padding:19px 20px}.chat-empty{text-align:center;margin:47px 0 35px}.chat-empty img{width:76px;height:76px;border-radius:50%;object-fit:cover;margin-bottom:17px}.chat-empty h3{font-size:14px;color:#64718a;font-weight:500;margin-bottom:9px}.chat-empty p{font-size:11px;line-height:1.9;color:#a2abba;margin-bottom:16px}.chat-suggestions{justify-content:center;gap:8px}.chat-suggestions button{font-size:10px;border-radius:5px;padding:7px;color:#7f8da7;background:#fafbfe;border-color:#ebeff6}.message{margin-bottom:25px}.message-label{font-size:10px;margin-bottom:8px}.message-label b{font-size:10px;color:#9ca8ba}.message-body{font-size:12px;padding:0;background:none;border-radius:0;color:#546178;line-height:1.9}.message-body p{line-height:1.9}.message.user .message-label{text-align:right;display:block}.message.user .message-body{background:#f1f4fa;color:#566887;border-radius:8px;padding:11px 12px}.chat-composer{padding:13px 17px;border-top:1px solid #edf0f6}.chat-composer textarea{background:white;border:1px solid #e4e9f1;font-size:12px;border-radius:8px;padding:11px;height:80px;resize:none}.composer-foot small{font-size:9px;color:#a9b1be}.composer-foot .btn{font-size:11px;padding:6px 11px}.selection-chip{font-size:10px;padding:7px;background:#f5f7fc;color:#8b98b3}.job-status{font-size:11px;background:#f7f9fd;border-color:#e9eef7;box-shadow:none;margin-top:15px;color:#7b8dac}.job-status.error{background:#fcf8f5;border-color:#efe6df;color:#a48370}.job-status summary{cursor:pointer}.review-summary h3{font-size:13px;color:#66758e}.review-summary>p{font-size:11px;color:#a0aabc}.review-check{border-bottom:1px solid #edf0f5;padding:13px 0;font-size:11px;line-height:1.8;color:#7c8ca3}.review-check summary{cursor:pointer;color:#687790}.review-check p{font-size:11px;margin:10px 0}.review-blockers{font-size:11px;background:#fbf8f4;border:1px solid #f1e9de;padding:12px;border-radius:7px;color:#a1876b;margin:17px 0}.review-blockers p{font-size:11px;line-height:1.8;margin:8px 0 0}.proposal{border-color:#e4e9f0;padding:12px}.proposal>strong{font-size:11px;color:#687a95;font-weight:500}.proposal details{margin-top:9px;font-size:10px;color:#9aa6b8;cursor:pointer}.proposal del,.proposal ins{margin-top:8px}.notice{border-color:#e6ebf4;background:#f8faff;font-size:11px;color:#8493ad;padding:10px 13px}.notice.error{background:#fcf7f4;border-color:#f0e3dc;color:#aa8674}.section-card{border-color:#e7ebf2;box-shadow:none;border-radius:8px;padding:25px}.section-card h2{font-size:17px;color:#49576e}.fact{background:#fafbfd;border-color:#e9edf5}.empty-state{background:white;border-color:#e8ecf3;border-radius:8px;padding:50px 25px}.empty-state img{width:104px;height:104px;border-radius:50%;margin-bottom:23px}.empty-state h2{font-size:18px;color:#65738b;font-weight:500}.empty-state p{font-size:12px;color:#9aa5b7}.focus-mode .files-panel,.focus-mode .assistant-panel{display:none}.focus-mode .workbench{grid-template-columns:minmax(0,1fr)}.focus-mode .paper{max-width:830px}.focus-mode .top-title{max-width:none}
@media(min-width:1600px){.workbench{grid-template-columns:236px minmax(340px,1fr) 350px}.paper{padding:60px 70px}.chat-scroll{padding:22px}.workspace-foot img{width:44px;height:44px}}
@media(max-width:1190px){.workbench{grid-template-columns:202px minmax(310px,1fr) 300px}.brand{min-width:157px}.paper{padding:37px 36px}.editor-scroll{padding:20px 18px}.doc-head{padding:12px 16px}.workflow-strip{padding:8px 16px}.workflow-hint{display:none}}
@media(max-width:980px){.workbench{grid-template-columns:202px minmax(0,1fr)}.assistant-panel.open{top:62px;bottom:24px}.assistant-head .close-ai{margin-left:auto}.doc-menu>summary{font-size:13px}.top-actions .btn[data-action=focus]{display:none}}
@media(max-width:650px){.app-shell{grid-template-rows:58px minmax(0,1fr) 24px}.workbench{grid-template-columns:minmax(0,1fr)}.brand{min-width:0}.brand small,.top-subtitle{display:none}.topbar{padding:0 12px}.top-actions .btn{font-size:10px;padding:6px}.top-actions{gap:1px}.top-title{display:none}.document-tabs{padding:0 5px;height:42px}.doc-tab{font-size:10px;padding:0 8px}.workflow-menu>summary{font-size:10px;padding:5px}.doc-head{padding:12px;flex-wrap:nowrap;min-height:65px}.doc-title{font-size:12px}.doc-head .btn{font-size:11px;padding:7px}.doc-head .row{gap:4px;flex-wrap:nowrap}.workflow-strip{padding:8px 12px;font-size:10px}.workflow-hint{display:none}.editor-scroll{padding:16px 10px}.paper{padding:30px 24px}.rich-editor h1{font-size:20px}.files-panel.open,.assistant-panel.open{top:58px;bottom:24px}.workspace-foot{margin:12px}.workflow-menu>div{min-width:152px}.focus-mode .files-panel.open,.focus-mode .assistant-panel.open{display:flex}}

/* Visible process, with one contextual next action. */
.workflow-rail{display:flex;align-items:center;gap:0;padding:13px 19px 11px;background:#fff;border-bottom:1px solid var(--line);flex-shrink:0;overflow-x:auto;scrollbar-width:thin}
.flow-step{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;flex-shrink:0;white-space:nowrap;background:none;color:#a1a9b6;font-size:11px;padding:5px 3px;position:relative;border-radius:5px;min-width:89px}
.flow-step+.flow-step:before{content:'›';color:#cbd0dc;position:absolute;left:-2px;font-size:13px;font-weight:400}
.step-number{display:grid;place-items:center;width:20px;height:20px;flex-shrink:0;border:1px solid #e7eaf0;border-radius:50%;font-size:10px;color:#a7afbc}
.flow-step.current{color:#4265dc;font-weight:600}.flow-step.current .step-number{background:#4265dc;border-color:#4265dc;color:white}.flow-step.done{color:#758599}.flow-step.done .step-number{color:#6680bd;background:#f1f4fc;border-color:#edf0f9}.flow-step:hover:not(:disabled){background:#f5f7fc}.flow-step:disabled{opacity:1;cursor:default}
.workflow-guide{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:89px;padding:13px 23px;background:#fcfcfe;border-bottom:1px solid var(--line);flex-shrink:0}
.flow-copy{min-width:0}.flow-eyebrow{font-size:10px;color:#929cb0;margin-bottom:4px}.flow-copy strong{font-weight:500;font-size:12px;color:#536782;display:block}.flow-copy p{font-size:10px;line-height:1.6;margin:5px 0 0;color:#929caf}.flow-actions{display:flex;align-items:center;flex-shrink:0;gap:5px}.flow-actions .btn{font-size:11px;padding:8px 10px}
.review-route{display:flex;align-items:center;gap:5px;margin-top:6px;flex-wrap:wrap;font-size:10px;color:#ccd1dc}.review-route button{background:none;color:#939eb0;font-size:10px;padding:2px 0}.review-route button.viewing{color:#4265dc}.review-route button.done{color:#63807f}
@media(max-width:1190px){.workflow-rail{padding:10px 10px}.flow-step{font-size:10px;min-width:78px;gap:4px}.step-number{width:18px;height:18px}.workflow-guide{padding:12px 16px;gap:8px}.flow-copy p{max-width:300px}.flow-actions .btn{font-size:10px;padding:7px 8px}}
@media(max-width:650px){.workflow-rail{padding:8px 9px;gap:6px}.flow-step{min-width:87px;flex:0 0 auto}.workflow-guide{align-items:flex-start;flex-direction:column;padding:12px 14px;gap:8px;min-height:107px}.flow-copy strong{font-size:12px}.flow-copy p{max-width:none}.flow-actions{align-self:flex-end}.review-route{gap:6px}.flow-eyebrow{font-size:9px}}
.workflow-rail{position:relative}
