:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:#243448;background:#f4f1ec;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.hidden{display:none!important}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:#18283b;color:#fff;border-bottom:1px solid #2c4054}.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700;letter-spacing:.02em}.brand-mark{width:32px;height:32px;display:grid;place-items:center;background:#c46d5e;border-radius:8px;font-family:serif;font-size:18px}.topbar-right{display:flex;align-items:center;gap:22px}.local-badge{font-size:13px;color:#cbd6df;display:flex;align-items:center;gap:7px}.local-dot{width:7px;height:7px;background:#83c3a4;border-radius:50%}.button{border:1px solid transparent;border-radius:8px;min-height:38px;padding:8px 16px;font-weight:650;font-size:14px;white-space:nowrap;transition:background .18s,border-color .18s,transform .18s}.button:hover:not(:disabled){transform:translateY(-1px)}.button-dark{background:#31465c;color:#fff;border-color:#486078}.button-dark:hover{background:#405873}.button-primary{background:#b65f53;color:#fff}.button-primary:hover{background:#a45046}.button-light{background:#fff;color:#304257;border-color:#d9dfdf}.button-light:hover,.button-outline:hover{background:#f8f4ed}.button-outline{background:transparent;color:#a65148;border-color:#d8a9a0}.icon-button{width:30px;height:30px;border:1px solid #deded8;border-radius:7px;background:#fff;color:#415268;font-size:20px;line-height:1}.icon-button:hover{background:#f3ede6}.app-shell{display:grid;grid-template-columns:216px 248px minmax(0,1fr);height:calc(100vh - 68px);min-height:650px}.projects-pane,.chapters-pane{display:flex;flex-direction:column;min-height:0}.projects-pane{background:#e9e6df;border-right:1px solid #dcd9d2}.chapters-pane{background:#f7f5f0;border-right:1px solid #deded7}.pane-heading{min-height:108px;padding:23px 20px 18px;display:flex;justify-content:space-between;align-items:flex-end}.eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;color:#8b8e91;margin-bottom:7px}.pane-heading h2{font-size:17px;line-height:1.25;margin:0;font-weight:700;color:#293b4e}.project-list,.chapter-list{overflow:auto;padding:0 10px 12px;flex:1}.project-card,.chapter-card{width:100%;border:1px solid transparent;background:transparent;text-align:left;display:flex;gap:10px;align-items:flex-start;padding:13px 10px;border-radius:9px;margin-bottom:4px;color:#304153}.project-card:hover,.chapter-card:hover{background:#ffffff9e}.project-card.active{background:#fff;border-color:#dedbd4;box-shadow:0 2px 8px #2434480b}.chapter-card.active{background:#fff;border-color:#e1dfd8;box-shadow:0 2px 8px #2434480b}.project-initial{display:grid;place-items:center;width:30px;height:30px;flex:none;background:#31465c;color:#fff;border-radius:7px;font-family:serif}.card-content{min-width:0;flex:1}.card-title{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.card-meta{display:block;color:#878e93;font-size:11px;margin-top:5px}.sidebar-note{margin:12px 18px 22px;color:#929396;font-size:11px;line-height:1.7}.chapter-number{font:700 11px Georgia,serif;color:#a95c50;background:#f5e9e5;border-radius:5px;padding:5px 6px;min-width:31px;text-align:center}.chapter-card.active .chapter-number{background:#b65f53;color:white}.text-button{margin:8px 20px 24px;text-align:left;border:0;background:none;color:#ae5a4f;font-size:13px;font-weight:700;padding:8px 0}.text-button:hover{text-decoration:underline}.workspace{min-width:0;overflow:auto;background:#f8f7f4}.empty-state{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.empty-icon{width:62px;height:62px;border-radius:16px;display:grid;place-items:center;background:#eee6dc;color:#b65f53;font:38px Georgia,serif;margin-bottom:18px}.empty-state h1{font-size:23px;margin:0 0 8px}.empty-state p{font-size:14px;color:#7c858b;margin:0 0 24px;line-height:1.7}.review-workspace{height:100%;display:flex;flex-direction:column;min-height:650px}.chapter-header{min-height:102px;padding:18px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border-bottom:1px solid #e9e8e3}.chapter-identity{min-width:0}.chapter-identity h1{display:inline;font-size:21px;line-height:1.2;margin:0 12px 0 0;color:#243448}.chapter-identity .eyebrow{margin-bottom:7px}.status-pill{display:inline-block;vertical-align:middle;color:#a3544a;background:#f7eae6;border-radius:100px;font-size:11px;font-weight:700;padding:4px 8px}.header-actions{display:flex;align-items:center;gap:9px}.save-state{font-size:12px;color:#8b9596;margin-right:7px;white-space:nowrap}.save-state.warning{color:#b4574d}.review-info{min-height:43px;background:#fffaf3;border-bottom:1px solid #eee5d9;padding:12px 27px;font-size:12px;color:#756c5c}.document-grid{display:grid;grid-template-columns:minmax(255px,1fr) minmax(300px,1.08fr) 275px;gap:0;flex:1;min-height:0}.document-pane{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff;border-right:1px solid #e5e4df}.original-pane{background:#fcfbf8}.document-toolbar,.comments-head{min-height:69px;padding:13px 21px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #ecebe7}.document-toolbar>div,.comments-head>div{min-width:0}.document-label{display:block;font-size:13px;font-weight:800;color:#31465c}.document-toolbar small,.comments-head small{display:block;font-size:11px;color:#9aa0a0;margin-top:4px;line-height:1.35}.document-toolbar select{max-width:170px;border:1px solid #e3e2dc;background:white;border-radius:6px;padding:7px 8px;color:#5e6b74;font-size:11px}.paper-text{overflow:auto;padding:27px 31px 70px;font-family:"Songti SC","Noto Serif CJK SC","SimSun",serif;font-size:16px;line-height:2.05;white-space:pre-wrap;overflow-wrap:anywhere;color:#313b42;flex:1}.editing-pane textarea{display:block;width:100%;height:100%;min-height:400px;flex:1;border:0;outline:0;resize:none;padding:27px 31px 70px;font-family:"Songti SC","Noto Serif CJK SC","SimSun",serif;font-size:16px;line-height:2.05;color:#263444;background:#fff;overflow-wrap:anywhere}.editing-pane textarea:focus{background:#fffefc}.word-count{font-size:11px;color:#9aa0a0;white-space:nowrap}.comments-pane{min-width:0;background:#f7f5f0;display:flex;flex-direction:column;min-height:0}.comments-head{padding-left:18px;padding-right:18px}.count-badge{background:#e8e4dc;border-radius:100px;padding:3px 7px;color:#6e7271;font-size:11px}.comment-compose{padding:16px;border-bottom:1px solid #e7e2d9}.selection-preview{padding:9px 10px;background:#fff;border-left:2px solid #c46d5e;border-radius:4px;font-size:11px;line-height:1.5;color:#6f7779;max-height:62px;overflow:hidden;margin-bottom:9px}.comment-compose textarea{width:100%;height:87px;resize:vertical;border:1px solid #deded8;background:#fff;border-radius:7px;padding:10px;font-size:13px;line-height:1.6;color:#2f4053;outline-color:#c46d5e}.comment-compose button{width:100%;margin-top:8px}.comment-list{overflow:auto;padding:15px 15px 40px;flex:1}.comment-card{background:#fff;border:1px solid #e6e2da;border-radius:8px;padding:12px;margin-bottom:10px;box-shadow:0 2px 8px #24344808}.comment-quote{color:#a65d52;font-family:"Songti SC","SimSun",serif;font-size:12px;line-height:1.5;border-left:2px solid #d6a49b;padding-left:8px;margin:0 0 9px;white-space:pre-wrap;overflow-wrap:anywhere}.comment-text{color:#334454;font-size:13px;line-height:1.6;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.comment-foot{margin-top:10px;display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#9a9d9b}.comment-foot button{border:0;background:none;color:#a85d52;padding:0;font-size:10px}.comment-empty{text-align:center;color:#9a9d9b;font-size:12px;line-height:1.7;padding:35px 12px}.mobile-view-toggle{display:none}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#25384b;color:#fff;padding:11px 16px;border-radius:9px;font-size:13px;box-shadow:0 8px 25px #0003;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:10;max-width:min(500px,90vw);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#a65046}.modal{border:1px solid #e7e1d7;border-radius:14px;box-shadow:0 28px 90px #14283d45;width:min(465px,calc(100vw - 30px));max-height:calc(100vh - 45px);padding:25px;color:#26384b}.modal::backdrop{background:#1022369e}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.modal-head h2{font-size:22px;margin:0}.modal label:not(.file-drop){display:block;font-size:13px;font-weight:700;margin:14px 0}.modal input:not([type=file]),.modal textarea{display:block;width:100%;border:1px solid #d8dedf;border-radius:7px;padding:10px 11px;margin-top:8px;outline-color:#bc6a5d;color:#26384b;font-size:14px}.optional{color:#99a0a2;font-weight:400}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:23px}.modal-copy{font-size:13px;line-height:1.6;color:#71808a;margin:-5px 0 18px}.import-modal{width:min(700px,calc(100vw - 30px))}.file-drop{min-height:132px;border:1.5px dashed #d2bbb1;border-radius:9px;background:#fbf8f4;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;color:#425167}.file-drop:hover{background:#fff7f1}.file-drop strong{font-size:14px}.file-drop small{font-size:11px;color:#9b9d9c}.file-icon{font-size:25px;color:#bb695b}.file-drop input{display:none}.import-preview{margin-top:18px;border:1px solid #e3e4df;border-radius:8px;overflow:hidden}.preview-heading{display:flex;justify-content:space-between;gap:15px;padding:11px 13px;background:#f7f6f2;font-size:12px;color:#435468}.preview-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-rows{max-height:270px;overflow:auto}.preview-row{display:grid;grid-template-columns:22px 62px minmax(0,1fr) 54px;gap:8px;align-items:center;padding:8px 12px;border-top:1px solid #ecece8}.preview-row input[type=number],.preview-row input[type=text]{margin:0;font-size:12px;padding:7px}.preview-row span{font-size:11px;color:#939b9b;text-align:right}
@media(max-width:1350px){.app-shell{grid-template-columns:180px 218px minmax(0,1fr)}.document-grid{grid-template-columns:minmax(220px,1fr) minmax(260px,1.08fr) 240px}.paper-text,.editing-pane textarea{padding-left:22px;padding-right:22px}.chapter-header{padding:18px 20px}.document-toolbar{padding:13px 15px}}
@media(max-width:1120px){.app-shell{grid-template-columns:170px 205px minmax(0,1fr)}.document-grid{grid-template-columns:1fr 1fr}.comments-pane{grid-column:1 / -1;min-height:250px;max-height:380px;border-top:1px solid #e7e2d9}.comment-compose{display:grid;grid-template-columns:1fr 1.5fr auto;gap:9px;align-items:center}.comment-compose textarea{height:55px}.comment-compose button{width:auto;margin:0}.comments-head{min-height:52px}.comment-list{display:flex;gap:10px;overflow-x:auto;padding:12px}.comment-card{min-width:220px;max-width:330px;margin:0}.chapter-header{align-items:flex-start;flex-direction:column;gap:11px}.header-actions{width:100%;justify-content:flex-end}}
@media(max-width:1000px){.topbar{height:56px;padding:0 14px}.brand{font-size:15px}.brand-mark{width:27px;height:27px;font-size:15px}.topbar-right{gap:8px}.topbar-right .local-badge{display:none}.button{font-size:12px;padding:7px 10px;min-height:34px}.app-shell{display:block;height:calc(100vh - 56px);min-height:0}.projects-pane{display:block;height:auto;min-height:0;border-right:0;border-bottom:1px solid #dedbd4}.projects-pane .pane-heading{min-height:0;padding:6px 10px 0;justify-content:flex-end}.projects-pane .pane-heading>div{display:none}.projects-pane .pane-heading .icon-button{width:24px;height:24px;font-size:16px}.project-list{display:flex;gap:5px;overflow-x:auto;padding:5px 10px 8px;margin:0}.project-card{flex:0 0 auto;width:auto;min-width:110px;max-width:180px;align-items:center;padding:8px 10px;margin:0}.project-card .card-meta,.sidebar-note{display:none}.project-initial{width:25px;height:25px;font-size:12px}.chapters-pane{display:block;height:auto;min-height:0;border-right:0;border-bottom:1px solid #e1ded7}.chapters-pane .pane-heading{display:none}.chapter-list{display:flex;gap:5px;overflow-x:auto;padding:7px 10px}.chapter-card{flex:0 0 auto;width:auto;max-width:170px;align-items:center;padding:7px 8px;margin:0}.chapter-card .card-meta{display:none}.chapters-pane .text-button{display:none}.workspace{height:calc(100vh - 181px);min-height:400px}.review-workspace{min-height:0}.chapter-header{min-height:88px;padding:10px 14px 8px;gap:7px}.chapter-identity h1{font-size:17px}.chapter-identity .eyebrow{font-size:9px;margin-bottom:3px}.header-actions{gap:5px}.save-state{margin-right:auto;font-size:10px}.review-info{padding:8px 14px;min-height:30px;font-size:11px}.mobile-view-toggle{display:flex;background:#f7f5f0;border-bottom:1px solid #e1ded7;padding:6px 10px;gap:5px}.mobile-view-toggle button{flex:1;border:0;border-radius:6px;background:transparent;padding:7px 5px;font-size:12px;color:#79838a}.mobile-view-toggle button.active{background:#fff;color:#ac594e;font-weight:800;box-shadow:0 1px 4px #0001}.document-grid{display:block;min-height:0;flex:1}.document-pane,.comments-pane{height:100%;min-height:0;max-height:none}.document-grid[data-view=edit] .original-pane,.document-grid[data-view=edit] .comments-pane,.document-grid[data-view=original] .editing-pane,.document-grid[data-view=original] .comments-pane,.document-grid[data-view=comments] .original-pane,.document-grid[data-view=comments] .editing-pane{display:none}.document-toolbar{min-height:51px}.paper-text,.editing-pane textarea{padding:18px 21px 65px;font-size:16px}.comment-compose{display:block}.comment-compose textarea{height:80px}.comment-compose button{width:100%;margin-top:8px}.comment-list{display:block}.comment-card{max-width:none;margin-bottom:9px}}
.history-label{color:#8d9291;font-size:10px;font-weight:800;letter-spacing:.08em;padding:5px 2px 9px}.submitted-comment{background:#fffdf9;border-color:#e9e2d8}
.button-quiet{background:transparent;color:#d4dce3;border-color:#486078}.button-quiet:hover{background:#31465c}.shutdown-screen{position:fixed;inset:0;z-index:30;background:#f4f1ec;display:grid;place-items:center;text-align:center;padding:24px}.shutdown-screen>div{max-width:370px}.shutdown-screen .brand-mark{margin:auto auto 20px}.shutdown-screen h1{font-size:24px;margin:0 0 8px}.shutdown-screen p{font-size:14px;color:#77848e;line-height:1.7;margin:0}
@media(max-width:420px){.topbar-right{gap:4px}.topbar-right .button{padding:6px 7px;font-size:11px}}
.desk-nav{display:grid;gap:4px;padding:18px 12px 3px}.desk-nav button{border:0;background:transparent;text-align:left;border-radius:7px;padding:10px 11px;font-size:12px;color:#647078;font-weight:700}.desk-nav button:hover{background:#ffffff80}.desk-nav button.active{color:#aa584e;background:#f8f4ee}.desk-nav #jobCount:not(:empty){background:#ba6658;color:#fff;border-radius:20px;padding:2px 6px;margin-left:4px;font-size:10px}.projects-pane .pane-heading{min-height:91px}.writing-actions{display:flex;gap:8px;align-items:center;padding:10px 23px;background:#fff;border-bottom:1px solid #e8e4dc;flex-wrap:wrap}.writing-actions>span{font-size:11px;color:#89918f;margin-left:auto}.new-version-notice{display:flex;align-items:center;justify-content:space-between;padding:9px 24px;background:#eff4ec;font-size:12px;color:#54704e;border-bottom:1px solid #dce5d6;gap:12px}.new-version-notice .text-button{margin:0;padding:3px;color:#54704e}.overview-panel{padding:34px;max-width:1180px;margin:auto}.overview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.overview-head h1{font-size:26px;margin:0 0 10px}.overview-head p{font-size:13px;color:#7a858a;line-height:1.8;max-width:740px;margin:0}.overview-list{display:grid;gap:14px}.overview-card{padding:21px;border:1px solid #e1ddd5;border-radius:11px;background:#fff;box-shadow:0 3px 12px #23354b06}.overview-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.overview-card h3{font-size:15px;margin:0;line-height:1.6}.overview-card .card-meta{margin:9px 0 15px}.card-message{font-size:12px;color:#6f7c86;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0}.card-actions{display:flex;gap:8px;flex-wrap:wrap}.overview-empty{border:1px dashed #d8d2c8;border-radius:10px;padding:36px;color:#919593;text-align:center;font-size:13px;line-height:1.8}.task-running{background:#eaf0f6;color:#4f7392}.task-completed{background:#edf3e9;color:#5e7f4e}.task-failed,.task-needs_attention{background:#f8eae5;color:#b05746}.task-cancelled{background:#eee;color:#929597}.auth-screen{position:fixed;inset:0;z-index:25;background:#f2eee7;overflow:auto;display:grid;place-items:center;padding:28px}.auth-card{width:min(420px,100%);padding:34px;background:#fffdf9;border:1px solid #e6dfd4;border-radius:17px;box-shadow:0 20px 70px #24344810}.auth-card .brand-mark{width:40px;height:40px;margin-bottom:24px}.auth-card h1{font-size:27px;margin:0 0 12px}.auth-card>p{font-size:13px;line-height:1.8;color:#788287}.auth-card label{display:block;margin-top:17px;font-size:13px;font-weight:650}.auth-card input{display:block;width:100%;border:1px solid #dcdedb;border-radius:7px;padding:11px;margin-top:8px;outline-color:#ba675a}.auth-card form .button{width:100%;margin-top:25px;min-height:42px}.auth-card .text-button{margin:14px 0 0}.auth-card .auth-note{border-top:1px solid #e8e2d9;padding-top:18px;margin-top:22px;font-size:11px}.account-modal{width:min(700px,calc(100vw - 30px))}.wide-modal{width:min(730px,calc(100vw - 30px))}.account-identity{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #e8e2d9;padding-bottom:19px}.account-identity strong{font-size:14px}.account-section{padding-top:20px}.account-section+.account-section{border-top:1px solid #e8e2d9;margin-top:20px}.account-section h3,.submission-grid h3{font-size:15px;margin:0 0 15px}.connection-steps{padding-left:20px;font-size:12px;line-height:1.9;color:#6d7a84;margin-bottom:20px}.download-worker{display:inline-block;text-decoration:none;margin-bottom:4px}.inline-form{display:flex;gap:10px;margin:17px 0;align-items:center}.modal .inline-form input{margin:0}.modal select{width:100%;padding:10px;border:1px solid #d8dedf;border-radius:7px;color:#344757;background:#fff;margin-top:8px;font-size:14px}.inline-form select{width:auto;flex:1;margin:0}.token-reveal{background:#f6eee2;border:1px solid #dfd0b6;border-radius:8px;padding:14px;margin:14px 0}.token-reveal strong{display:block;font-size:12px;margin-bottom:9px}.token-reveal textarea{font:12px/1.6 ui-monospace,monospace;min-height:64px;resize:none;background:#fffaf1;overflow-wrap:anywhere;margin-bottom:10px}.token-reveal p{font-size:11px;line-height:1.7;color:#837058;margin-bottom:0}.compact-list{display:grid;gap:8px}.compact-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid #eee9e1;font-size:12px}.compact-row small{display:block;margin-top:5px}.muted{color:#8a9297}.connection-status{font-size:12px;line-height:1.7;color:#737f88;background:#f5f6f3;border-radius:6px;padding:10px}.invitation-code{display:block;font:15px ui-monospace,monospace;letter-spacing:.05em;padding:9px 0 14px;color:#805748}.two-fields{display:grid;grid-template-columns:100px 1fr;gap:16px}.submission-modal{width:min(1080px,calc(100vw - 30px))}.submission-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.submission-grid>section{min-width:0}.snapshot-text{height:390px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#faf8f3;padding:17px;border:1px solid #e8e2d8;border-radius:8px;font:15px/1.9 "Songti SC","SimSun",serif}.submission-grid textarea{font-size:14px;line-height:1.8;margin-top:0}.submission-grid #feedbackContent{height:390px;resize:vertical;font-family:"Songti SC","SimSun",serif}.submission-grid textarea[readonly]{background:#faf8f3}.submission-grid .compact-list{margin-top:12px}.submission-grid .text-button{margin:8px 0 0;font-size:11px}.submission-grid .modal-copy{margin:14px 0 0}.modal textarea[readonly]{background:#faf9f5}.modal #jobResultContent{font:15px/1.9 "Songti SC","SimSun",serif}.modal #jobResultNotes{font-size:12px;line-height:1.7}.toast{z-index:70}.topbar-right{gap:10px}
@media(max-width:1350px){.topbar{padding:0 20px}.topbar-right .local-badge{display:none}.writing-actions{padding:10px 18px}.writing-actions>span{display:none}}
@media(max-width:1000px){.desk-nav{display:flex;padding:7px 10px 2px;overflow-x:auto}.desk-nav button{flex:none;padding:7px 9px;font-size:11px}.projects-pane .pane-heading{position:absolute;right:10px;min-height:0;padding:0;top:108px}.project-list{padding-right:44px}.workspace{height:calc(100vh - 219px)}.overview-panel{padding:20px 15px}.overview-head h1{font-size:21px}.overview-head p{font-size:12px}.overview-card{padding:16px}.overview-card-head{flex-direction:column;gap:6px}.writing-actions{padding:7px 12px;gap:5px}.writing-actions .button{font-size:11px;min-height:30px;padding:5px 7px}.topbar-right #exitButton{display:none}.new-version-notice{padding:8px 14px;font-size:11px}.submission-grid{grid-template-columns:1fr}.snapshot-text,.submission-grid #feedbackContent{height:300px}.auth-card{padding:28px}.overview-head{gap:10px}.two-fields{grid-template-columns:80px 1fr}.empty-state .text-button{margin:12px 0 0}}
@media(max-width:550px){.topbar-right #openImport{padding:6px 8px}.topbar-right #accountButton{max-width:145px;overflow:hidden;text-overflow:ellipsis;padding:6px 8px}.topbar .brand{gap:7px;font-size:13px}.topbar .brand-mark{width:24px;height:24px}.inline-form{flex-wrap:wrap}.inline-form input{flex:1;min-width:140px}.inline-form .button{min-width:110px}.account-identity{align-items:flex-start}.overview-panel{padding:18px 12px}.overview-empty{padding:24px}.submission-modal{padding:20px}.modal-head h2{font-size:20px}}

.modal-status{position:sticky;bottom:0;z-index:1;background:#eaf1e6;color:#4e6947;border:1px solid #ccd9c7;border-radius:7px;padding:10px 12px;margin:16px 0 0;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.modal-status.error{background:#fff0eb;color:#a25043;border-color:#e7b7ad}

/* Returned prose keeps its exact text; only presentation marks changed ranges. */
.revision-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;background:#f0f7f1;border-bottom:1px solid #dae8dc;color:#386348;font-size:11px;line-height:1.6;flex:none}.revision-summary button{flex:none;border:1px solid #bcd3c2;border-radius:5px;background:#fff;color:#386348;padding:4px 7px;font-size:11px}.revision-added{color:#195c3e;background:#dff1e3;border-radius:2px}.revision-added.source-annotation-highlight{background:#fff0ad;color:#195c3e;box-shadow:inset 0 -2px #cb993a}.comment-history{margin-top:14px;border-top:1px solid #ded8ce;padding-top:12px}.comment-history summary{cursor:pointer;color:#7e827e;font-size:12px;padding:4px 0 8px}.comment-history .history-hint{color:#91968f;font-size:11px;line-height:1.6;margin:0 0 12px}.comment-history .comment-card{opacity:.85}

.button-learn{background:#246658;color:#fff;border:1px solid #246658;font-weight:700}.button-learn:hover{background:#1d5449}.manual-learning-guide{padding:9px 23px;background:#eef5f1;border-bottom:1px solid #d8e6dd;color:#466659;font-size:12px;line-height:1.65}.learning-guide{padding:14px 18px;border-radius:9px;background:#eef5f1;color:#466659;line-height:1.8;font-size:13px}.learning-details{margin:15px 0 20px}.learning-details summary{font-size:13px;color:#246658;cursor:pointer;font-weight:700}.learning-report{white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;margin-top:12px;background:#faf9f5;border:1px solid #e8e2d9;border-radius:8px;font-size:14px;line-height:1.9}.learning-details h4{font-size:13px;margin:16px 0 6px}.learning-notes{font-size:12px}.learning-card .card-actions{margin-top:12px}@media(max-width:1000px){.manual-learning-guide{padding:8px 12px;font-size:11px}.learning-report{padding:12px;font-size:13px}}
.account-identity-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.accounts-admin-modal{width:min(960px,calc(100vw - 32px));padding:28px}.accounts-admin-modal h3{margin:0;font-size:16px}.account-create-section{padding:20px;background:#f8f5ef;border:1px solid #e5ded2;border-radius:10px}.account-create-form{display:grid;grid-template-columns:minmax(170px,1.15fr) minmax(140px,1fr) 100px;gap:0 16px;align-items:end}.account-create-form label{min-width:0}.account-create-form>button{grid-column:1/-1;justify-self:start;margin-top:4px}.account-create-form input,.account-create-form select{height:42px}.account-list-section{margin-top:26px}.account-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.account-list-heading p{margin:8px 0 0;font-size:12px}.accounts-admin-modal .account-search-label{margin:18px 0 8px}.managed-account-list{display:grid}.managed-account-row{padding:17px 0;border-bottom:1px solid #e7e2da;display:flex;justify-content:space-between;gap:20px;align-items:center}.managed-account-info{display:grid;gap:7px;min-width:0}.managed-account-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.managed-account-heading strong{font-size:14px;overflow-wrap:anywhere}.managed-account-role{font-size:11px;padding:3px 7px;background:#edeae3;color:#666f75;border-radius:5px}.managed-account-login{font-size:12px;color:#53626e;overflow-wrap:anywhere}.managed-account-info small{font-size:11px}.managed-account-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;flex:none}.managed-account-actions small{font-size:11px}.managed-account-actions .button{font-size:12px;padding:6px 10px;min-height:34px}.account-status{font-size:11px;padding:5px 8px;border-radius:20px;white-space:nowrap;background:#ececec;color:#72787c}.account-status-active{background:#eaf1e8;color:#527446}.account-status-pending{background:#faf0da;color:#8b6c2a}.account-status-disabled{background:#f3e7e4;color:#99594e}.accounts-admin-modal .account-distribution{padding:18px}.accounts-admin-modal .account-distribution textarea{min-height:205px;resize:vertical;font-size:13px;line-height:1.8}.accounts-empty{padding:25px 10px;text-align:center;font-size:13px;color:#879096}@media(max-width:640px){.accounts-admin-modal{padding:20px}.account-create-section{padding:16px}.account-create-form{grid-template-columns:1fr}.account-create-form>button{width:100%}.managed-account-row{align-items:flex-start;flex-direction:column;gap:12px}.managed-account-actions{justify-content:flex-start}.account-identity{flex-wrap:wrap}.account-identity-actions{justify-content:flex-start}}

/* Keep the site name readable in both the header and the login card. */
.brand-mark{flex:none}
.auth-card .auth-brand{font-size:14px;letter-spacing:.02em;line-height:1.5;overflow-wrap:anywhere}

/* Administrator author and reviewer views share the same account. */
.submission-views{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}.submission-views .button[aria-pressed="true"]{box-shadow:inset 0 0 0 2px currentColor;font-weight:700}.account-role-note{font-size:12px;line-height:1.8;color:var(--muted,#6d7a84);margin:14px 0 0}

/* Batch submission and author feedback notices. */
.submission-state { margin-left: 7px; background: var(--surface-alt, #f1ede5); }
#feedbackNoticeButton.has-unread { background: #f4d8a3; color: #34291b; font-weight: 700; }
#batchOpen { margin: 8px 14px 14px; }
.batch-dialog { width: min(640px, calc(100vw - 24px)); }
.batch-chapter-list { max-height: min(42vh, 360px); overflow: auto; border: 1px solid var(--line, #dedbd5); border-radius: 10px; }
.batch-chapter { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0; border-bottom: 1px solid var(--line, #dedbd5); cursor: pointer; }
.batch-chapter:last-child { border-bottom: 0; }
.batch-chapter input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
.batch-chapter span { min-width: 0; display: grid; gap: 4px; }
.batch-chapter small { color: var(--muted, #6d716f); font-weight: 400; }
.batch-selection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 12px 0; font-size: 13px; }
.feedback-notice-list { max-height: 55vh; overflow: auto; display: grid; gap: 10px; }
.feedback-notice-card { border: 1px solid var(--line, #dedbd5); border-radius: 10px; padding: 14px; display: grid; gap: 9px; }
.feedback-notice-card small { color: var(--muted, #6d716f); }
@media (max-width: 600px) { .batch-dialog .modal-actions { flex-wrap: wrap; } .submission-state { margin: 6px 0 0; } }

/* Manuscript files share the current theme and remain usable in narrow layouts. */
.export-modal{width:min(720px,calc(100vw - 30px))}.export-options{display:grid;grid-template-columns:1fr 1.5fr;gap:18px}.export-options label{min-width:0}.export-options select{max-width:100%}.export-selection{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:18px 0 12px}.export-selection>div{display:flex;gap:7px;flex-wrap:wrap}.export-selection>span{font-size:12px;color:#647078;white-space:nowrap}.export-chapter-list{max-height:36vh;min-height:64px;overflow:auto;border:1px solid #deded8;border-radius:9px;padding:4px 12px}.export-chapter{display:flex!important;align-items:flex-start;gap:11px;padding:11px 0;margin:0!important;border-bottom:1px solid #e9e5de}.export-chapter:last-child{border-bottom:0}.export-chapter input{width:17px!important;height:17px;flex:none;margin:3px 0 0!important;accent-color:var(--accent,#b65f53)}.export-chapter span{min-width:0}.export-chapter strong{font-size:13px;line-height:1.7;display:block;overflow-wrap:anywhere}.export-chapter small{font-size:11px;font-weight:400;line-height:1.6;display:block;margin-top:2px;color:#7c858b}.export-status{font-size:12px;line-height:1.7;margin:14px 0 0;color:#647078;overflow-wrap:anywhere}.export-status.error{color:#a25043}.chapters-pane #chapterImport{margin-bottom:3px}.chapters-pane #chapterExport{margin-top:0;margin-bottom:12px}
.export-prompt-options{border:1px solid #deded8;border-radius:9px;padding:13px 14px;margin:14px 0}.export-prompt-check{display:flex!important;gap:9px;align-items:flex-start;margin:0!important;line-height:1.7;font-size:13px}.export-prompt-check input{width:17px!important;height:17px;flex:none;margin:3px 0 0!important;accent-color:var(--accent,#b65f53)}.export-prompt-options .modal-copy{margin:8px 0 0}.export-prompt-note{font-size:11px;line-height:1.7;color:#7c858b;margin:7px 0 10px}.export-prompt-actions{display:flex;flex-wrap:wrap;gap:8px}.export-prompt-preview{margin:12px 0 0!important;font-size:12px}.export-prompt-preview textarea{width:100%;min-height:150px;max-height:38vh;resize:vertical;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit}
@media(max-width:600px){.export-options{grid-template-columns:1fr;gap:12px}.export-selection{align-items:flex-start;flex-direction:column}.export-chapter-list{max-height:31vh}.export-modal{padding:20px}.topbar-right #openExport{padding:6px 8px}}
