.file-directory{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e6e9ed;border-radius:10px;background:#fff}.file-directory__header{min-height:50px;display:flex;align-items:center;flex-shrink:0;padding:0 16px;border-bottom:1px solid #e9ebee}.file-directory__header h2{margin:0;color:#424a57;font-size:13px;font-weight:600}.file-directory__list{flex:1;min-height:0;overflow-y:auto;padding:8px}.file-directory__list-item{min-width:0}.file-directory__item{width:100%;min-height:58px;display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:9px;padding:9px 10px;text-align:left;border-radius:8px;color:#5d6673}.file-directory__item:hover{background:#f4f7fd;color:#3657ad}.file-directory__item--selected{background:#edf1f8;color:#2e51aa}.file-directory__item--selected:hover{background:#e8eefb}.file-directory__item--editing:not(.file-directory__item--selected){background:#fffaf1}.file-directory__icon{display:grid;place-items:center;padding-top:2px;color:#6b7fbd}.file-directory__copy{min-width:0;display:block}.file-directory__name{display:block;color:inherit;font-size:12px;font-weight:550;line-height:1.35;overflow-wrap:anywhere}.file-directory__states{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;margin-top:4px}.file-directory__state{display:inline-flex;align-items:center;gap:3px;color:#7d8693;font-size:10px;font-weight:450;line-height:1.3;white-space:nowrap}.file-directory__state--selected{color:#496abd}.file-directory__state--editing{color:#a36322}.file-directory__state--updated{color:#496abd}.file-directory__state--readonly{color:#9097a2}@media(min-width:761px)and (max-width:1099px){.file-directory{min-height:72px;max-height:86px;flex-direction:row;border-radius:8px}.file-directory__header{width:72px;min-height:70px;padding:0 14px;border-right:1px solid #e9ebee;border-bottom:0}.file-directory__list{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;padding:7px}.file-directory__list-item{flex:0 0 170px}.file-directory__item{min-height:56px;padding:8px 9px}}@media(max-width:760px),(max-width:1000px)and (max-height:500px){.file-directory{width:100%;border:0;border-radius:0;background:transparent}.file-directory__header{display:none}.file-directory__list{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;padding:10px 14px 12px;scrollbar-width:thin}.file-directory__list-item{flex:1 0 145px;min-width:145px}.file-directory__item{min-height:58px;padding:10px 12px;background:#fff;gap:8px}.file-directory__item--selected{background:#eaf0f8}.file-directory__name{font-size:14px;white-space:nowrap;overflow-wrap:normal}.file-directory__states{flex-wrap:nowrap;gap:5px}.file-directory__state{font-size:10px}.file-directory__state--selected{font-size:0}.file-directory__state--selected svg{width:12px;height:12px}.file-directory__item--editing .file-directory__state:not(.file-directory__state--editing):not(.file-directory__state--selected){display:none}.file-directory__item:has(.file-directory__state--updated) .file-directory__state:not(.file-directory__state--updated):not(.file-directory__state--selected){display:none}}@media(max-width:760px)and (max-height:650px){.file-directory__list{padding-top:6px;padding-bottom:6px}.file-directory__item{min-height:56px;padding-top:8px;padding-bottom:8px}}:root{font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;color:#292c30;background:#f6f7f8;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--muted: #777d85;--line: #e9ebee;--blue: #385fc4}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.4}button,a{transition:background .16s,color .16s}button:focus-visible,a:focus-visible{outline:3px solid #7697e6;outline-offset:3px}button svg{flex-shrink:0;pointer-events:none}a{color:var(--blue);text-underline-offset:3px}p,h1,h2,h3{margin:0}.app{height:100svh;min-height:620px;display:flex;flex-direction:column}.site-header{height:68px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#fff;border-bottom:1px solid var(--line)}.app-name{display:flex;align-items:center;gap:10px;white-space:nowrap}.app-name>svg{color:#496aca}.app-name>span:first-of-type{font-weight:650;font-size:18px}.header-divider{width:1px;height:18px;background:#e1e4e8;margin:0 9px}.app-name h1{font-size:14px;font-weight:450;color:#70767e}.header-actions,.document-actions{display:flex;align-items:center;gap:5px}.icon-button{width:36px;height:36px;display:grid;place-items:center;color:#737b86;border-radius:8px}.icon-button:hover,.icon-button.active{background:#edf1f8;color:var(--blue)}.work-area{flex:1;min-height:0;padding:22px 28px 26px;max-width:1720px;width:100%;margin:0 auto;display:flex;flex-direction:column}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:180px minmax(0,.95fr) minmax(0,1.05fr);gap:16px}.directory-region,.paper-region,.chat-panel{min-width:0;min-height:0}.directory-region .file-directory{height:100%}.paper-panel{height:100%;display:flex;flex-direction:column;border:1px solid #e1e4e8;border-radius:10px;overflow:hidden;background:#eff1f4}.document-heading{background:#fff;display:flex;justify-content:space-between;align-items:center;min-height:55px;padding:8px 14px 8px 18px;gap:8px;border-bottom:1px solid var(--line)}.filename{display:flex;align-items:center;gap:9px;min-width:0;font-size:12px;font-weight:500}.filename>svg{color:#5274c9;flex-shrink:0}.filename span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-toolbar{display:flex;gap:0;align-items:center;min-height:36px;padding:0 20px;background:#fafbfc;border-bottom:1px solid #e4e7eb;color:#6b737e;font-size:11px}.document-toolbar>span{padding:0 13px;border-right:1px solid #e2e5ea;line-height:12px}.document-toolbar>span:first-child{padding-left:0}.document-toolbar>span:last-child{border:0}.document-toolbar .original-label{color:var(--blue);margin-left:auto;padding-right:0}.paper-scroll{flex:1;min-height:0;overflow-y:auto;padding:22px 20px 30px;scrollbar-gutter:stable}.manuscript{max-width:600px;min-height:650px;margin:auto;padding:34px 38px 28px;background:#fff;box-shadow:0 2px 9px #25304c09;color:#333;font-family:var(--serif);font-size:13px;line-height:var(--paper-leading)}.paper-running-head{text-align:center;color:#858585;font-size:9px;letter-spacing:1.5px;margin-bottom:28px}.manuscript h2{font-size:22px;line-height:1.65;text-align:center;font-weight:650;letter-spacing:1.5px}.byline{font-size:9px;color:#828282;text-align:center;margin-top:15px}.paper-rule{height:1px;background:#dedede;margin:25px 0 23px}.manuscript h3{font-size:14px;line-height:1.7;font-weight:650;margin-bottom:16px}.context-paragraph,.target-paragraph{text-align:justify;line-break:strict;overflow-wrap:anywhere;margin:0 0 var(--paragraph-gap, 15px)}.manuscript .indent{text-indent:2em}.font-hei .context-paragraph,.font-hei .target-paragraph{font-family:PingFang SC,Microsoft YaHei,sans-serif}.paper-citation{font-family:var(--serif);font-size:9px;color:#777;line-height:1.65;margin-top:28px}.paper-page{text-align:center;margin-top:32px;color:#999;font:10px/1.5 Georgia,serif}.chat-panel{display:flex;flex-direction:column;position:relative;background:#fff;border:1px solid #e6e9ed;border-radius:10px;overflow:hidden}.chat-body{flex:1;min-height:0;position:relative}.chat-history{height:100%;overflow-y:auto;padding:23px 30px 22px;scrollbar-gutter:stable;scroll-behavior:auto}.time-divider{font-size:11px;color:#a0a5ad;text-align:center;margin-bottom:24px}.attachment-message{margin-left:auto;margin-bottom:28px;background:#f7f8fb;border:1px solid #e8ebf0;border-radius:10px;padding:14px 17px;display:flex;align-items:center;gap:12px;width:fit-content;max-width:100%}.attachment-message>svg{color:#5f7bc4}.attachment-message div{min-width:0}.attachment-message span{font-size:12px;overflow-wrap:anywhere}.attachment-message small{display:block;font-size:10px;color:#9097a2;margin-top:4px}.ai-message{margin-bottom:28px}.ai-label{display:flex;align-items:center;gap:9px;margin-bottom:10px}.ai-label strong{font-size:12px;font-weight:550;color:#727984}.ai-icon{display:grid;place-items:center;color:#5777ca;width:25px;height:25px;border-radius:8px;background:#f0f4fc}.reply-text{font-size:14px;line-height:1.95;overflow-wrap:anywhere}.reply-text p{white-space:pre-wrap;margin-bottom:10px}.reply-text p:last-of-type{margin-bottom:0}.reply-text strong{color:#303a49;font-weight:600}.reply-text:has(.typing-cursor) p:last-of-type{display:inline}.user-message{display:flex;justify-content:flex-end;margin:27px 0}.user-message p{font-size:14px;line-height:1.8;max-width:88%;padding:12px 17px;border-radius:14px 3px 14px 14px;background:#edf1f8;color:#37435c;overflow-wrap:anywhere}.composer{flex-shrink:0;padding:15px 20px 18px;background:#fff;border-top:1px solid #eff0f3}.reply-options{display:grid;gap:8px}.reply-option{width:100%;text-align:left;display:flex;gap:16px;align-items:center;justify-content:space-between;font-size:13px;line-height:1.65;padding:11px 14px;border:1px solid #e5e8ee;border-radius:8px;background:#fff}.reply-option>svg{color:#a4afc1}.reply-option:hover{background:#f4f7fd;border-color:#becceb;color:#2e51aa}.reply-option:hover>svg{color:#5b7ac2}.composer.busy{padding:20px 24px}.generating-line,.thinking{color:#9097a2;font-size:12px}.thinking{display:inline-flex;align-items:center;gap:5px;min-height:22px}.thinking-dots{display:inline-flex;align-items:center;gap:3px;height:12px}.thinking-dots i{display:block;width:3px;height:3px;border-radius:50%;background:currentColor;animation:thinking-dot 1.15s ease-in-out infinite}.thinking-dots i:nth-child(2){animation-delay:.14s}.thinking-dots i:nth-child(3){animation-delay:.28s}@keyframes thinking-dot{0%,60%,to{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}.typing-cursor{display:inline-block;height:14px;width:2px;background:#687ea9;margin-left:3px;vertical-align:-2px;animation:cursor 1s steps(2,end) infinite}@keyframes cursor{50%{opacity:0}}.jump-latest{position:absolute;bottom:12px;left:calc(50% - 17px);width:34px;height:34px;display:grid;place-items:center;background:#fff;border:1px solid #dce3ed;border-radius:50%;color:#5f739c;box-shadow:0 3px 12px #23375014}.finished-actions{display:flex;justify-content:center;gap:12px}.text-button{display:flex;align-items:center;gap:8px;font-size:13px;color:#657797;padding:10px 12px;border-radius:7px}.text-button:hover{background:#f0f4fb}.modal{width:min(460px,calc(100% - 36px));padding:26px 28px;border:1px solid #e1e6ee;border-radius:14px;background:#fff;box-shadow:0 15px 70px #21355329;color:#424a57}.modal::backdrop{background:#24314948;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal h2{font-size:19px;font-weight:600;color:#303a4a}.modal p{font-size:13px;line-height:1.9;margin-bottom:14px}.modal .about-subtitle{font-size:12px;color:#9198a3;margin-top:-9px;margin-bottom:23px}.modal .about-credit{border-top:1px solid #eef0f4;padding-top:15px;margin-bottom:0;color:#858d99;font-size:11px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.primary-button,.secondary-button{font-size:13px;padding:10px 20px;border-radius:7px}.primary-button{background:#4667bb;color:#fff}.primary-button:hover{background:#3657ad}.secondary-button{background:#f0f2f6}.secondary-button:hover{background:#e6eaf1}.toast,.storage-note{position:fixed;left:50%;transform:translate(-50%);background:#303b50;color:#fff;padding:12px 20px;font-size:12px;line-height:1.6;border-radius:8px;z-index:30;box-shadow:0 6px 30px #1b2a4026;max-width:calc(100% - 28px)}.toast{bottom:25px}.storage-note{top:80px}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{border-radius:8px;background:#d6dce5}::-webkit-scrollbar-track{background:transparent}@media(min-width:1500px){.site-header{padding:0 max(32px,calc((100vw - 1440px)/2))}.work-area{padding-top:30px;padding-bottom:34px}.chat-history{padding:26px 40px}.reply-text,.user-message p{font-size:15px}.reply-option{font-size:14px}}@media(min-width:761px)and (max-width:1099px){.work-area{padding:16px}.workspace{gap:16px;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);grid-template-rows:76px minmax(0,1fr)}.directory-region{grid-column:1 / -1}.manuscript{padding:28px 23px}.manuscript h2{font-size:19px}.paper-scroll{padding:16px 12px}.chat-history{padding:20px}.composer{padding:12px 14px 15px}.reply-option{font-size:12px}}.workspace-content{display:contents}.sheet-controls,.paper-expand,.document-mobile-page{display:none}@media(max-width:760px),(max-width:1000px)and (max-height:500px){.app{height:100dvh;min-height:0;overflow:hidden}.site-header{height:56px;padding:0 14px}.app-name{gap:7px;min-width:0}.app-name>span:first-of-type{font-size:18px}.app-name>svg{width:20px;flex-shrink:0}.header-divider{margin:0 3px;height:18px}.app-name h1{font-size:12px;overflow:hidden;text-overflow:ellipsis}.header-actions{gap:0}.header-actions .icon-button{width:40px;height:44px}.work-area{padding:0;background:#f6f7f9}.workspace{display:flex;flex-direction:column;gap:0}.directory-region{flex:0 0 82px;overflow:hidden}.workspace-content{display:block;flex:1;position:relative;min-height:0;isolation:isolate;--sheet-height: 56%}.paper-region{position:absolute;top:0;right:0;bottom:0;left:0;padding:0 14px max(0px,calc(var(--sheet-height) - 18px));transition:padding-bottom .22s ease}.paper-panel{border-radius:9px 9px 0 0;background:#fff;border-color:#e1e4e9}.document-heading{min-height:44px;padding:0 9px 0 16px}.filename{font-size:13px;color:#858d9c;font-weight:450}.filename>svg,.document-full-name,.document-download{display:none}.document-mobile-page{display:inline}.paper-expand{display:grid;width:44px;height:44px}.document-toolbar{display:none}.sheet-paper .document-toolbar{display:flex;min-height:28px;font-size:10px;padding:0 16px}.sheet-paper .document-download{display:block}.sheet-paper .document-download .icon-button{width:44px;height:44px}.paper-scroll{padding:0 16px 26px;scrollbar-gutter:auto;overscroll-behavior:contain;scroll-padding:16px}.manuscript{padding:20px 0 28px;min-height:620px;font-size:14px;box-shadow:none}.manuscript h2{font-size:21px}.manuscript h3{font-size:16px;margin-bottom:18px}.manuscript.continuation{min-height:340px;border-top:1px solid #e5e7eb}.chat-panel{position:absolute;inset:auto 0 0;height:var(--sheet-height);border:0;border-radius:24px 24px 0 0;box-shadow:0 -6px 26px #202d4510;transition:height .22s ease;z-index:2}.sheet-dragging .chat-panel,.sheet-dragging .paper-region{transition:none}.sheet-controls{display:flex;position:relative;flex:0 0 34px}.sheet-handle{display:flex;justify-content:center;align-items:flex-start;padding-top:10px;position:absolute;top:0;right:52px;bottom:-10px;left:0;touch-action:none;-webkit-user-select:none;user-select:none;cursor:ns-resize;border-radius:24px 0 0}.sheet-handle:focus-visible{outline:2px solid #7697e6;outline-offset:-3px}.sheet-grip{width:38px;height:5px;margin-left:52px;border-radius:4px;background:#cdd2db}.sheet-toggle{position:absolute;top:0;right:8px;width:44px;height:44px;z-index:1}.chat-history{padding:3px 20px 14px;scrollbar-gutter:auto;overscroll-behavior:contain}.time-divider,.attachment-message{display:none}.reply-text,.user-message p{font-size:15px;line-height:1.8}.ai-label{margin-bottom:12px}.ai-label strong{font-size:15px;color:#555e6b}.ai-icon{width:26px;height:26px;background:transparent}.ai-icon svg{width:23px;height:23px}.ai-message{margin-bottom:24px}.ai-message:last-child{margin-bottom:0}.user-message{margin:20px 0}.user-message p{padding:10px 14px}.composer{padding:10px 16px max(12px,env(safe-area-inset-bottom))}.reply-options{gap:7px}.reply-option{padding:10px 12px;font-size:14px;line-height:1.5;gap:10px;min-height:46px}.reply-option>svg{color:#7f91b1}.composer.busy{padding:14px 20px max(14px,env(safe-area-inset-bottom))}.resume-chat{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#4c6088}.sheet-paper .composer,.sheet-paper .composer.busy{padding-top:0;padding-bottom:max(8px,env(safe-area-inset-bottom))}.sheet-paper .ai-label,.sheet-paper .user-message{display:none}.sheet-paper .reply-text{font-size:14px}.sheet-paper .chat-history{padding-bottom:4px}.storage-note{top:64px}.toast{bottom:max(20px,env(safe-area-inset-bottom))}}@media(max-width:360px){.site-header{padding:0 10px}.header-divider{margin:0 1px}.app-name h1{font-size:10px}.header-actions .icon-button{width:36px}.chat-history{padding-left:16px;padding-right:16px}.composer{padding-left:12px;padding-right:12px}.reply-option{font-size:13px;padding:9px 10px}.paper-region{padding-left:10px;padding-right:10px}.paper-scroll{padding-left:14px;padding-right:14px}}@media(max-width:760px)and (max-height:650px){.site-header{height:48px}.directory-region{flex-basis:70px}.chat-history{padding-top:0}.sheet-controls{flex-basis:28px}.composer{padding-top:7px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.reply-option{padding-top:8px;padding-bottom:8px}}@media(prefers-reduced-motion:reduce){.thinking-dots i{animation:none;opacity:.65}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:760px)and (max-height:500px){.chat-panel .composer{max-height:58%;overflow-y:auto;overscroll-behavior:contain}.chat-panel .chat-history{padding-top:0;padding-bottom:6px}.sheet-paper .chat-body{min-height:0}}@media(min-width:560px)and (max-width:1000px)and (max-height:500px){.site-header{height:48px}.directory-region{flex-basis:70px}.file-directory{min-height:0;max-height:none;flex-direction:column}.file-directory__list{padding-top:6px;padding-bottom:6px}.workspace-content{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:10px;padding:0 10px 8px}.paper-region{position:static;padding:0}.paper-panel{border-radius:9px}.chat-panel{position:relative;inset:auto;height:100%;border-radius:12px}.sheet-controls,.paper-expand{display:none}.document-download{display:block}.chat-panel .chat-history{padding:10px 14px}.chat-panel .composer{padding:6px 8px}.reply-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.reply-option{align-items:flex-start;flex-direction:column;padding:7px;font-size:12px;gap:4px}.reply-option>svg{align-self:flex-end;width:12px;height:12px}.sheet-paper .ai-label,.sheet-paper .user-message{display:flex}}@media print{.site-header,.directory-region,.chat-panel,.document-heading,.document-toolbar,.toast,.storage-note{display:none!important}.app,.workspace,.work-area,.paper-region,.workspace-content,.paper-panel,.paper-scroll{display:block!important;height:auto;overflow:visible;padding:0;margin:0;border:0;position:static}.manuscript{max-width:none;box-shadow:none}}a.icon-button,a.text-button{text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.paper-annotation{margin:12px 0 20px;padding:10px 12px;background:#fff6df;border-left:2px solid #e6c271;color:#8b6c2c;font:11px/1.8 -apple-system,PingFang SC,sans-serif}.manuscript.continuation{margin-top:22px;min-height:480px}.edit-highlight{position:relative;border-radius:2px;outline:1px solid #e1e8f0;outline-offset:4px;background:#eef3f8;animation:edit-reveal 2.4s ease-out both}.file-created{border-radius:4px;animation:edit-reveal 2.4s ease-out both}.removed-fragment{text-decoration:line-through;opacity:.65}@keyframes edit-reveal{0%,22%{background-color:#eef3f8;outline-color:#e1e8f0}65%{background-color:#f7f9fb;outline-color:#eef2f7}to{background-color:transparent;outline-color:transparent}}@media(prefers-reduced-motion:reduce){.edit-highlight,.file-created{animation:none;background:#eef3f8;outline:1px solid #e1e8f0}}@media print{.manuscript.continuation{break-before:page;margin-top:0}.removed-fragment{display:none}.edit-highlight{animation:none;background:transparent;outline:none;box-shadow:none}}
