/* Product design system — project overview, focused tasks and editorial workspace. */
:root{--ink:#24324a;--muted:#7b899d;--line:#e9edf4;--green:#5369d8;--mint:#f2f4ff;--bg:#f7f8fc}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:#f7f8fc;color:#24324a;letter-spacing:0}
aside>*{flex-shrink:0}.task-navigation{overflow:visible}body:not([data-current-view=materials]) .intro,body:not([data-current-view=materials]) .overview-heading,body:not([data-current-view=materials]) #workflow-summary,body[data-current-view=materials]:not([data-material-focus=overview]) .intro,body[data-current-view=materials]:not([data-material-focus=overview]) .overview-heading,body[data-current-view=materials]:not([data-material-focus=overview]) #workflow-summary{display:none}body:not([data-current-view=materials]) #workspace,body[data-current-view=materials]:not([data-material-focus=overview]) #workspace{padding-top:24px}
.shell{grid-template-columns:236px minmax(0,1fr)}
aside{width:236px;position:fixed;background:#fff;color:#34445d;border-right:1px solid #edf0f5;box-shadow:none;padding:27px 17px;overflow-y:auto}
.brand{color:#1e2d45;font-size:16px;font-weight:750;gap:12px;letter-spacing:.03em;padding:0 9px}.brand-icon-image{width:42px;height:42px;border-radius:13px;box-shadow:0 6px 14px #5965b420}.brand small{color:#9aa6b6;font-size:10px;letter-spacing:.15em;margin-top:3px}
.settings-button{order:9;margin:14px 0 0;background:#f7f8fb;border:1px solid #edf0f5;color:#65748b;padding:11px 13px}.new-project{background:#f4f5ff;color:#5965c5;border:1px solid #e7e9fd;font-weight:650;margin-bottom:12px}.aside-label{color:#a5afbf;font-size:10px;letter-spacing:.13em;margin:19px 11px 9px}.aside-footer{order:10;color:#91a0b1;font-size:10px;padding:22px 10px 0}.aside-footer small{color:#adb7c4}
.task-navigation{margin:31px 0 5px}.task-nav-title{display:none}.task-nav-group{margin:19px 0 0}.task-nav-heading{color:#a2adbc;font-size:10px;margin-bottom:8px;padding-left:12px;letter-spacing:.08em}.task-nav-link,.overview-nav{min-height:39px;width:100%;display:flex;align-items:center;gap:11px;padding:9px 12px;border:0;border-radius:9px;color:#748298;background:transparent;text-align:left;font-size:13px;font-weight:550;margin:3px 0;white-space:nowrap}.task-nav-link:hover,.overview-nav:hover{background:#f6f7fd;color:#5265bf}.task-nav-link.is-current,.overview-nav.is-current{background:#f0f2ff;color:#5061ce;box-shadow:none;font-weight:700}.task-nav-dot{display:grid;place-items:center;width:19px;height:19px;color:#94a1b4;font-size:0}.task-nav-dot::before{content:'◇';font-size:17px;line-height:1}.task-nav-link.is-current .task-nav-dot{color:#6572d8}.overview-nav{color:#586bc6}.overview-nav:before{content:none}#projects{max-height:150px}#projects button{font-size:12px;color:#8592a5;border-radius:8px}#projects button.active{background:#f4f5fb;color:#4d5f85}#projects button:before{color:#a5b1c4}
main{max-width:none;width:100%;padding:0 clamp(28px,4vw,64px)}header{height:68px;border-bottom:1px solid #eaedf4}.breadcrumb{color:#9ba8ba;font-size:12px}.breadcrumb::before{content:'◈';color:#7486d9;margin-right:10px}.header-tags .tag{background:#fff;border:1px solid #e8ebf2;border-radius:9px;color:#748399;font-size:11px;padding:8px 12px}
.intro{position:relative;display:flex;min-height:225px;margin:26px 0 29px;padding:34px 40px;overflow:hidden;border:0;border-radius:18px;background:linear-gradient(115deg,#242e66 0%,#3b4b97 55%,#6675c2 100%)!important;box-shadow:0 16px 34px #35477b20;color:white}.hero-copy{position:relative;z-index:2;max-width:70%}.intro .eyebrow{color:#bfc9f1;font-size:10px;letter-spacing:.15em}.intro h1{font-size:clamp(24px,2.2vw,32px);color:#fff;margin:11px 0 5px;font-weight:700;line-height:1.35}.intro p{font-size:13px;color:#cbd4f2}.hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}.hero-actions button{border-radius:8px;font-size:12px;padding:10px 15px}.hero-primary{background:#fff;color:#34447d;box-shadow:0 5px 18px #19254a20}.hero-secondary{background:#ffffff14;color:#f0f4ff;border:1px solid #ffffff49}.hero-visual{position:absolute;right:5.5%;top:0;width:300px;height:100%;pointer-events:none}.hero-orbit{position:absolute;border:1px solid #ffffff18;border-radius:50%}.orbit-one{width:280px;height:280px;right:0;top:-24px}.orbit-two{width:206px;height:206px;right:37px;top:13px}.hero-document{position:absolute;right:53px;top:31px;width:136px;height:164px;background:#fff;border-radius:10px;transform:rotate(7deg);box-shadow:0 18px 35px #18255438;padding:18px;color:#6273b2}.document-stamp,.document-footer{display:block;font-size:7px;font-weight:800;letter-spacing:.08em}.hero-document i{display:block;height:4px;border-radius:3px;background:#e5e9f3;margin-top:9px}.hero-document i:nth-of-type(1){width:75%;background:#aebbe0}.hero-document i:nth-of-type(2){width:100%}.hero-document i:nth-of-type(3){width:84%}.document-chart{display:flex;align-items:end;gap:5px;height:44px;margin:10px 0}.document-chart b{flex:1;background:#a4b0e9;border-radius:3px 3px 0 0;height:40%}.document-chart b:nth-child(2){height:64%;background:#8c9ce3}.document-chart b:nth-child(3){height:50%}.document-chart b:nth-child(4){height:84%;background:#687dd2}.document-chart b:nth-child(5){height:65%}.document-chart b:nth-child(6){height:95%;background:#536dc7}.document-chart b:nth-child(7){height:76%}.document-footer{color:#b4bed2}.hero-float{position:absolute;right:126px;bottom:25px;display:flex;align-items:center;gap:10px;background:#ffffffed;color:#34446a;border-radius:10px;padding:10px 13px;box-shadow:0 10px 25px #1d29502b;white-space:nowrap}.hero-float>span{font-size:18px;color:#7282da}.hero-float strong,.hero-float small{display:block}.hero-float strong{font-size:10px}.hero-float small{font-size:9px;color:#9ba9bc}
.overview-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 15px}.overline{font-size:9px;color:#9aa9c1;font-weight:750;letter-spacing:.13em}.overview-heading h2{font-size:17px;margin:2px 0;color:#263751}.overview-heading p{font-size:12px;color:#a0acbb;margin:2px 0}.overview-hint{font-size:11px;color:#a0adbd}.overview-hint b{color:#6e80d8;margin-left:5px}
.workflow-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 30px}.workflow-step{position:relative;align-items:flex-start;min-height:95px;padding:20px;border:1px solid #edf0f6;border-radius:13px;background:#fff;box-shadow:0 6px 18px #243a6106}.workflow-step:hover:not(:disabled){transform:translateY(-2px);border-color:#cbd3fa;box-shadow:0 8px 20px #4d5e9a10}.workflow-step::after{content:'↗';position:absolute;right:17px;top:17px;color:#c4ccda;font-size:15px}.workflow-step .step-index{width:39px;height:39px;flex-basis:39px;border-radius:12px;color:#6477cf;background:#f0f2ff;font-family:monospace;font-weight:700}.workflow-step:nth-child(2) .step-index{color:#659f93;background:#edf8f4}.workflow-step:nth-child(3) .step-index{color:#b3845e;background:#fff5eb}.workflow-step strong{font-size:13px;color:#34425a;margin:1px 0 5px}.workflow-step small{font-size:11px;color:#9aa7b8}
.workspace-tabs{display:none}.card{border:1px solid #ebeff5;border-radius:15px;background:#fff;box-shadow:0 8px 25px #293b5d08;padding:26px 28px;margin-bottom:18px}.card:hover{border-color:#e3e8f1;box-shadow:0 9px 27px #293b5d0c}.card h2{font-size:16px;font-weight:700;color:#2b3c56}.section-number{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#f0f2ff;color:#7382cf;font-size:11px;font-weight:700}.card-heading{margin-bottom:19px}.section-description{color:#95a2b3;line-height:1.8;font-size:12px}.muted{color:#97a4b5;font-size:12px}.primary{background:#6575d8;color:white;border:0;border-radius:9px;box-shadow:0 5px 14px #6575d824;font-size:12px;padding:11px 16px}.primary:hover:not(:disabled){background:#5367ce;box-shadow:0 7px 17px #6575d82c}.secondary{border:1px solid #e6eaf2;background:#fff;color:#687b93;border-radius:9px;font-size:12px;padding:10px 13px}.secondary:hover:not(:disabled){background:#f6f7ff;border-color:#dce1f5}.inline-notice{border:1px solid #f0e8d5;background:#fffbf4;color:#a48658;border-radius:9px}.dropzone{background:#fafbff;border:1px dashed #cbd4ec;border-radius:12px;min-height:160px;justify-content:center}.upload-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#eef1ff;color:#6a7ed3;font-size:22px}.dropzone strong{font-size:13px;color:#536783}.dropzone>span:not(.upload-icon),.dropzone small{color:#a6b2c2}.file-row{border-color:#f0f2f7}.figure-guide{border-color:#e6eafa;background:#f7f8ff;color:#6474a7}
#view-materials[data-focus=overview],#view-materials[data-focus=upload]{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}#view-materials[data-focus=overview]>.card,#view-materials[data-focus=upload]>.card{margin-bottom:0}.material-focused-hidden{display:none!important}
#report-type-notice{margin-bottom:18px}.generation-disclosure{padding:16px 20px}.generation-disclosure>summary{color:#7182cc;font-size:13px}.chapter-workspace{grid-template-columns:minmax(155px,190px) minmax(280px,1fr) minmax(205px,250px);gap:16px}.chapter-navigation,.chapter-assistant{background:#f8f9fc;border-color:#eef1f7}.chapter-paper{border-color:#e9edf4;box-shadow:0 10px 30px #25364c08}.chapter-navigation-item.active{background:#eef0ff;color:#586bc9}.paper-kicker{color:#a2aec0}.chapter-assistant .workspace-column-title{color:#5668bd}.qa-icon{background:#eff1ff;color:#6979d5}#qa-result:not(:empty){background:#f9faff;border-color:#edf0fb}
input[type=text],input[type=password],input:not([type]),textarea,select{border:1px solid #e2e8f1;border-radius:8px;color:#40516b;background:#fff}input:focus,textarea:focus,select:focus{border-color:#9caaf0!important;outline:2px solid #b8c3ff80}input[type=checkbox],input[type=radio]{accent-color:#6476d8}footer{color:#abb6c5}
@media(max-width:1250px){.shell{grid-template-columns:205px minmax(0,1fr)}aside{width:205px;padding:24px 13px}main{padding:0 28px}.hero-visual{right:0;transform:scale(.9);transform-origin:right center}#view-materials[data-focus=overview]{grid-template-columns:1fr}}
@media(max-width:900px){.workflow-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.workflow-step{padding:13px;min-height:82px}.workflow-step .step-index{width:32px;height:32px;flex-basis:32px}.workflow-step::after{display:none}.hero-visual{opacity:.5}.chapter-workspace{grid-template-columns:150px minmax(0,1fr)}.chapter-assistant{grid-column:2}}
@media(max-width:760px){.shell{display:block}aside{position:relative;width:auto;max-height:none;padding:18px}.task-navigation{margin:14px 0}.task-nav-group{display:flex;align-items:center;overflow:auto;gap:5px;margin:7px 0}.task-nav-heading{min-width:60px}.task-nav-link{width:auto;white-space:nowrap}.overview-nav{width:auto}.task-nav-dot{display:none}.aside-footer{display:none}main{padding:0 17px}header{height:58px}.intro{padding:27px;min-height:190px;margin:18px 0 23px}.hero-copy{max-width:100%}.hero-visual{display:none}.hero-actions{margin-top:18px}.overview-hint{display:none}.workflow-summary{grid-template-columns:1fr}.workflow-step{min-height:65px}.chapter-workspace{display:block}.chapter-navigation,.chapter-paper,.chapter-assistant{margin-bottom:12px}#view-materials[data-focus=overview]{display:block}.card{padding:20px}#view-materials[data-focus=overview]>.card{margin-bottom:16px}}

/* Calm, document-first workspace inspired by open-source dashboard patterns. */
:root{--ink:#172033;--muted:#64748b;--line:#e5e8ee;--green:#202a45;--mint:#f3f5f9;--bg:#fff}
body{background:#fff;color:#172033;font-size:14px}
.shell{grid-template-columns:240px minmax(0,1fr)}aside{width:240px;background:#f9fafb;border-color:#e9edf2;padding:22px 16px}
.brand{font-size:15px;gap:10px;padding:0 8px}.brand-icon-image{width:38px;height:38px;border-radius:10px;box-shadow:none}.brand small{font-size:10px;letter-spacing:.05em;color:#8995a6}
.task-navigation{margin-top:24px}.task-nav-group{margin-top:18px}.task-nav-heading{font-size:11px;letter-spacing:0;color:#8390a1;font-weight:600}.task-nav-link,.overview-nav{font-size:13px;font-weight:500;color:#566276;min-height:36px;border-radius:7px;padding:8px 10px;gap:10px}.task-nav-link:hover,.overview-nav:hover{background:#edf1f6;color:#1b2638}.task-nav-link.is-current,.overview-nav.is-current{background:#e9edf4;color:#182237;font-weight:650}.task-nav-dot{width:17px;height:17px;display:flex;align-items:center;justify-content:center}.task-nav-dot::before{content:none}.task-nav-dot svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.overview-nav svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.6}.settings-button,.new-project{border-radius:7px}.new-project{background:white;border:1px solid #dfe4eb;color:#344258}.settings-button{background:transparent;color:#667589}
main{padding:0 clamp(24px,3vw,44px);max-width:1740px}header{height:60px;border-bottom-color:#eef0f3}.breadcrumb{font-size:13px;color:#728093}.breadcrumb::before{content:none}.header-tags .tag{font-size:12px;border-color:#e4e8ee;color:#526176;border-radius:7px;box-shadow:0 1px 2px #10182808}
.intro{min-height:0;padding:27px 0 20px;margin:0;background:transparent!important;box-shadow:none;color:#192438;border-radius:0;overflow:visible;border:0}.hero-copy{max-width:100%;width:100%}.intro .eyebrow{color:#748298;font-size:11px;letter-spacing:.02em}.intro h1{font-size:25px;letter-spacing:-.025em;color:#121c2d;margin:5px 0}.intro p{color:#728097;font-size:13px}.hero-visual{display:none}.hero-actions{position:absolute;right:0;top:42px;margin:0;gap:8px}.hero-actions button{border-radius:7px;padding:9px 14px;font-size:12px}.hero-primary{background:#172036;color:#fff}.hero-secondary{background:#fff;color:#44536b;border:1px solid #e2e7ed}
.overview-heading{margin:12px 0 12px}.overline{display:none}.overview-heading h2{font-size:15px;font-weight:650}.overview-heading p{font-size:12px;color:#8290a2}.overview-hint{font-size:11px}.workflow-summary{gap:12px;margin-bottom:22px}.workflow-step{min-height:82px;padding:17px;background:#fff;border:1px solid #e5e9ef;border-radius:9px;box-shadow:0 1px 2px #10182809}.workflow-step:hover:not(:disabled){transform:none;border-color:#bdc9d9;box-shadow:0 2px 7px #10182810}.workflow-step .step-index{border-radius:8px;width:36px;height:36px;flex-basis:36px;background:#f1f4f8!important;color:#56677e!important}.workflow-step strong{font-size:13px;margin:0 0 4px;color:#263348}.workflow-step small{font-size:12px;color:#8390a0}.workflow-step::after{color:#9ba7b7}
.card{border:1px solid #e4e8ed;border-radius:10px;padding:23px;box-shadow:0 1px 3px #10182809}.card:hover{border-color:#e0e5ec;box-shadow:0 1px 3px #1018280e}.card h2{font-size:15px}.section-number{width:29px;height:29px;border-radius:7px;background:#f1f4f8;color:#64748b}.section-description{font-size:12px;color:#728096}.primary{background:#172036;color:white;box-shadow:none;border-radius:7px}.primary:hover:not(:disabled){background:#273650;box-shadow:none}.secondary{background:#fff;border-color:#dfe5ec;color:#41536a;border-radius:7px}.secondary:hover:not(:disabled){background:#f6f8fa;border-color:#cbd4df}.inline-notice{background:#f8fafc;border-color:#e5eaf1;color:#66768c}.dropzone{background:#fafbfc;border:1px dashed #c6d0dd;border-radius:9px}.upload-icon{background:#edf1f6;color:#63758a;border-radius:9px}.figure-guide{background:#f8fafc;border-color:#e5eaf1;color:#52647c}
.chapter-navigation,.chapter-assistant{background:#fafbfc;border-color:#e9edf2;border-radius:8px}.chapter-navigation-item.active{background:#e9eef5;color:#253a56}.chapter-assistant .workspace-column-title{color:#374962}.chapter-paper{border:1px solid #e5e9ee;border-radius:4px;box-shadow:0 2px 8px #1018280a}.chapter-paper .paragraph-block textarea{background:#fff}.generation-disclosure>summary{color:#465b74}.qa-icon{background:#eef2f7;color:#53677f}#qa-result:not(:empty){background:#fafbfc;border-color:#e5eaf0}.qa-answer-label{color:#364b67}.qa-kicker{color:#728197}input:focus,textarea:focus,select:focus{border-color:#8d9bb0!important;outline:2px solid #b8c5d855}input[type=checkbox],input[type=radio]{accent-color:#334761}
@media(max-width:760px){.shell{display:block}aside{width:auto}.intro{padding:24px 0 18px}.hero-actions{position:static;margin-top:17px}.workflow-summary{grid-template-columns:1fr}.chapter-workspace{display:block}}

.project-list-row{display:flex;align-items:center;gap:2px}.project-list-row>button:first-child{min-width:0;flex:1}.project-trash-button{width:30px;min-width:30px;height:30px;flex:0 0 30px;color:#8793a3;font-size:10px;padding:6px;opacity:.75}.project-trash-button:before{content:none!important}.project-trash-button:hover{color:#a83b3b!important;background:#fff0ee!important;opacity:1}.recycle-button{width:100%;text-align:left;background:transparent;color:#78879b;font-size:12px;padding:8px 10px}.trash-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #e8edf3}.trash-row strong,.trash-row small{display:block}.trash-row small{color:#8491a2;margin-top:4px}.trash-row button{flex:none}

.test-record-panel{margin:25px 0}.test-record-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}.test-record-heading h2{margin:4px 0 12px}#test-record-content{color:#34445c;font-size:13px;line-height:1.8}#test-record-content h3{font-size:16px;margin:24px 0 12px;color:#202c40}#test-record-content p{margin:10px 0}.test-table-wrap{overflow-x:auto;margin:16px 0}.test-record-table{border-collapse:collapse;width:100%;min-width:680px;text-align:left}.test-record-table td,.test-record-table th{border:1px solid #e5e9ef;padding:10px 12px;vertical-align:top}.test-record-table th{background:#f5f7fa;color:#35435a}.task-nav-link>svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}

.notice-dismiss{margin-left:12px;vertical-align:middle;white-space:normal}

/* Editorial workspace: restrained navigation, a legible page and contextual tools. */
body{background:#f6f7f9}main{max-width:none}body[data-current-view=draft] .intro,body[data-current-view=knowledge] .intro{padding:20px 0 12px}body[data-current-view=draft] .overview-heading,body[data-current-view=draft] #workflow-summary,body[data-current-view=knowledge] .overview-heading,body[data-current-view=knowledge] #workflow-summary{display:none}
.knowledge-tabs{display:flex;gap:5px;padding:5px;background:#e9edf2;border-radius:11px;width:fit-content;margin:0 0 24px}.knowledge-tab{background:transparent;color:#64748b;padding:10px 22px;border-radius:7px}.knowledge-tab.active{background:white;color:#19283e;box-shadow:0 1px 4px #15254015}
#knowledge-qa{max-width:960px;margin:0 auto;border:1px solid #e2e6ed;border-radius:16px;padding:36px 42px;background:white}.qa-heading h2{font-size:25px}.qa-heading p{font-size:14px;color:#69788c}.qa-examples{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 16px}.qa-example{font-size:12px;background:#f4f6f9;border:1px solid #e6eaf0;color:#52647a;border-radius:20px;padding:8px 12px}#qa-question{border-radius:12px;padding:16px;font-size:15px;line-height:1.8;background:#fbfcfe}#qa-result:not(:empty){background:white;border:0;border-top:1px solid #e5e9f0;border-radius:0;margin-top:30px;padding:28px 0 0}.qa-answer-paragraph{font-size:15px;line-height:2;color:#28384d;max-width:76ch}.qa-user-question{font-size:17px;font-weight:600;color:#17283e;border-left:3px solid #6379ad;padding-left:14px}#qa-result details{border:1px solid #e6eaf0;border-radius:9px;padding:12px 16px;margin-top:14px;background:#fafbfd}#qa-result details summary{cursor:pointer;color:#586a82;font-size:12px}.answer-actions{display:flex;justify-content:flex-end;margin-top:16px}
#editor-card{padding:20px;background:transparent;border:0;box-shadow:none}.chapter-workspace{display:grid;grid-template-columns:170px minmax(300px,1fr) 245px;gap:20px;align-items:start}.chapter-navigation,.chapter-assistant{padding:16px;border:1px solid #e1e6ed;background:#fff;border-radius:12px;position:sticky;top:18px;max-height:calc(100vh - 40px);overflow:auto}.chapter-navigation-item{line-height:1.6;padding:12px 10px;border-radius:8px;margin:4px 0;font-size:12px}.chapter-navigation-item.active{background:#eef2fa;color:#345487;border-left:3px solid #607ba9}.chapter-paper{background:white;border:1px solid #e0e4eb;border-radius:8px;box-shadow:0 5px 24px #14273e08;padding:28px clamp(20px,3vw,52px);min-height:680px;min-width:0}.paper-kicker{font-size:10px;letter-spacing:.12em;margin-top:24px;color:#93a0b1}#chapter-paper-title{font-size:23px;line-height:1.5;margin:16px 0;color:#162b42}.paper-mode-bar{display:flex;gap:4px;border-bottom:1px solid #e8ecf2;padding-bottom:14px}.paper-mode{background:transparent;color:#758397;font-size:12px;border-radius:6px;padding:8px 12px}.paper-mode.active{background:#edf1f7;color:#2e486a}.focus-toggle{margin-left:auto;background:transparent;font-size:12px;color:#64748b}.reading-meta{font-size:11px;color:#8a97a8;padding-bottom:22px;border-bottom:1px solid #edf0f4;margin-bottom:26px}.reading-content{font-family:'Songti SC','SimSun',serif;color:#253245;font-size:16px;line-height:2.05;overflow-wrap:anywhere}.reading-content p{text-align:justify;white-space:pre-wrap;margin:0 0 20px;text-indent:2em}.reading-content h4{font-family:system-ui,sans-serif;font-size:17px;margin:26px 0 14px}.reading-table-wrap{overflow:auto}.reading-content table{border-collapse:collapse;width:100%;font-family:system-ui,sans-serif;font-size:12px;line-height:1.7;margin-bottom:24px}.reading-content th,.reading-content td{padding:10px;border:1px solid #dce2e9;text-align:left;white-space:pre-wrap}.reading-content th{background:#f2f5f9}.chapter-paper[data-mode=read] #paragraph-editor,.chapter-paper[data-mode=read] #table-editor,.chapter-paper[data-mode=edit] #reading-content{display:none}.writing-presets{display:flex;gap:6px;flex-wrap:wrap;margin:20px 0 16px}.preset-label{width:100%;font-size:11px;color:#8996a7;margin-bottom:3px}.writing-preset{background:#f1f4f9;color:#526881;border-radius:6px;font-size:11px;padding:7px 9px}.chapter-assistant textarea{font-size:13px;line-height:1.8;min-height:150px}.chapter-assistant .assistant-actions{display:grid;gap:8px}.editorial-focus .chapter-navigation,.editorial-focus .chapter-assistant,.editorial-focus .generation-disclosure{display:none}.editorial-focus .chapter-workspace{display:block;max-width:900px;margin:auto}body[data-current-view=draft] .hero-actions,body[data-current-view=knowledge] .hero-actions{display:none}
@media(max-width:1200px){.chapter-workspace{grid-template-columns:minmax(0,1fr) 230px}.chapter-navigation{grid-column:1/-1;position:static;max-height:160px}.chapter-assistant{grid-column:2}.chapter-paper{grid-column:1;grid-row:2}}
@media(max-width:800px){.chapter-workspace{display:block}.chapter-navigation,.chapter-assistant{position:static;max-height:none;margin:14px 0}.chapter-paper{padding:22px;min-height:400px}#knowledge-qa{padding:24px 18px}.knowledge-tab{padding:10px 13px}.reading-content{font-size:15px}.paper-mode-bar{flex-wrap:wrap}}
.knowledge-tabs .knowledge-tab{width:auto;flex:none;margin:0;overflow:visible;text-overflow:clip;white-space:nowrap}.knowledge-tabs .knowledge-tab::before{content:none}.knowledge-tabs{max-width:100%;overflow:auto}#editor-card:has(.chapter-assistant) .editor-toolbar #rewrite-current,#editor-card:has(.chapter-assistant) .editor-toolbar #ask-materials{display:none}

.node-progress-help{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#f5f8fc;border:1px solid #e3ebf4;color:#51647d;padding:13px 16px;border-radius:10px;margin:0 0 12px;font-size:12px;line-height:1.7}.node-progress-help button{white-space:nowrap;font-size:12px;flex:none}@media(max-width:760px){.node-progress-help{align-items:flex-start;flex-direction:column}}

/* New workspace styles. Original damaged file retained in a verified byte-for-byte backup. */
.file-bulk-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}
.file-bulk-toolbar input[type=checkbox],.file-row input[type=checkbox]{width:18px;height:18px;flex:none;pointer-events:auto;position:relative;z-index:2}
.file-row:has(input[type=checkbox]:checked){outline:2px solid #8099c0;background:#f3f6fc}
.template-body-card{border:1px solid #e2e7ef;border-radius:12px;padding:20px;margin:16px 0;background:#fff}
.template-body-card textarea,.template-body-card select,.template-body-card input{margin:7px 0 12px;max-width:100%}
.chapter-workflow-controls{border:1px solid #e2e7ef;border-radius:10px;padding:14px;margin:16px 0;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.chapter-workflow-controls p,.chapter-workflow-controls small{width:100%;margin:0}
.workspace-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.workspace-tabs button{background:#f1f4f8;color:#586a83}.workspace-tabs button.active{background:#e4ecfa;color:#2c4e80;box-shadow:inset 0 0 0 1px #a8bbd8}
.professional-tab-hidden{display:none!important}#professional-workspace>.card{border:0;box-shadow:none;padding:16px 0;margin:0}
.workspace-record-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e9edf3}
.professional-link-form{display:grid;gap:12px;margin:18px 0}.outline-edit-row{display:flex;gap:8px;align-items:center;margin:10px 0}.outline-edit-row input{flex:1;min-width:0}.outline-edit-row button{flex:none}
#persistent-outline-editor>input,#persistent-outline-editor>select{margin:12px 0}
#structured-data-panel>select{display:block;width:100%;margin:14px 0}#structured-data-panel>button{margin:0 10px 12px 0}#structured-records{margin-top:18px}
@media(max-width:700px){.outline-edit-row{flex-wrap:wrap}.outline-edit-row input{flex-basis:100%}.workspace-record-row{align-items:flex-start;flex-direction:column}}

.subsection-rewrite-panel{border-top:1px solid #e4e9f0;padding-top:16px;margin:18px 0}.subsection-rewrite-panel h3{font-size:14px}.subsection-choice-list{max-height:240px;overflow:auto;margin:12px 0}.subsection-choice{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.7;margin:9px 0}.subsection-choice input[type=checkbox]{width:16px;height:16px;flex:none;margin-top:3px}.subsection-rewrite-panel>button{width:100%}

.structured-bulk-panel{background:#f7f9fc;border:1px solid #e0e7f0;border-radius:12px;padding:20px;margin:20px 0}.structured-bulk-panel>input,.structured-bulk-panel>textarea,.structured-bulk-panel>select{display:block;width:100%;margin:12px 0}.structured-bulk-panel>button{margin:0 8px 10px 0}.structured-bulk-panel>strong{display:block;margin:8px 0}.record-pick{display:flex;align-items:center;gap:8px;margin-bottom:14px}.record-pick input[type=checkbox],.report-source-confirmation input[type=checkbox]{width:18px;height:18px;flex:none}.report-source-confirmation{display:flex;gap:10px;align-items:flex-start;grid-column:1/-1;font-size:12px;line-height:1.8;padding:12px;background:#f0f5fb;color:#334c74;border-radius:8px}
.file-batch{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}
.file-batch+.managed-files{margin-top:4px}
.file-batch.hidden+.managed-files{margin-top:16px}
.file-batch .delete-selected-files:not(:disabled){color:#a12d35;border-color:#e9bfc2}
.file-batch .delete-selected-files:hover:not(:disabled){background:#fff1f2}
#files .file-row{grid-template-columns:20px minmax(0,1fr) minmax(115px,165px) max-content}
#files .file-selection-box{width:16px;height:16px;margin:0;accent-color:#6575d8}
#files .file-row>details{grid-column:2/-1;grid-row:2}
#files .file-row>button{grid-column:4;grid-row:1;justify-self:end;white-space:nowrap}
#files .file-row:has(.file-selection-box:checked){background:#f6f7ff}
@media(max-width:760px){
  #files .file-row{grid-template-columns:20px minmax(0,1fr) auto}
  #files .file-selection-box{grid-column:1;grid-row:1}
  #files .file-row>div{grid-column:2;grid-row:1}
  #files .file-row>select{grid-column:2;grid-row:2}
  #files .file-row>details{grid-column:2/-1;grid-row:3}
  #files .file-row>button{grid-column:3;grid-row:1}
}

:root{--workbench-topbar-height:60px}
.workbench-topbar{position:sticky;top:0;z-index:8;height:var(--workbench-topbar-height);padding:0 clamp(24px,3vw,44px);background:#f6f7f9}
.header-navigation{display:flex;align-items:center;gap:12px;min-width:0}
#sidebar-toggle{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:1px solid #dfe5ec;border-radius:7px;background:#fff;color:#41536a;font-size:19px;line-height:1}
#sidebar-toggle:hover{background:#edf1f6}
.shell{min-height:calc(100vh - var(--workbench-topbar-height))}
#workbench-sidebar{top:var(--workbench-topbar-height)}
.shell.sidebar-collapsed #workbench-sidebar{display:none}
.shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
.shell.sidebar-collapsed main{grid-column:1}
@media(min-width:761px){
  .sidebar-collapsed main>*{zoom:1.1}
}
@media(max-width:760px){
  :root{--workbench-topbar-height:58px}
  .workbench-topbar{padding-inline:16px}
  #workbench-sidebar{top:auto}
}
@media(max-width:430px){
  .workbench-topbar .breadcrumb{display:none}
}

/* Whole source subsections, compact review controls. */
.structured-content-block{padding:18px 20px;margin:12px 0;border:1px solid var(--border,#dde3eb);border-radius:12px;background:var(--surface,#fff)}
.structured-block-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.structured-block-heading .record-pick{display:flex;align-items:center;gap:10px;margin:0;min-width:0}.structured-status{font-size:12px;white-space:nowrap;color:#52657b;background:#f0f4fa;border-radius:20px;padding:3px 9px}
.structured-content-block .structured-source{font-size:12px;color:#6b7789;margin:6px 0 12px}.structured-content-block>label{display:block;font-size:12px;color:#536276}.structured-content-block textarea{width:100%;margin-top:4px;line-height:1.75;resize:vertical;box-sizing:border-box}.structured-metadata,.structured-original{margin:8px 0;font-size:13px}.structured-metadata>label{display:block;margin:10px 0}.structured-original p{max-height:320px;overflow:auto}.structured-content-block>button{margin-top:4px;padding:6px 12px;font-size:12px}

.original-appendix-control{grid-column:1/-1;background:#f6f8fb;padding:10px 12px;border-radius:8px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.original-appendix-control label{display:flex;align-items:center;gap:10px;margin:0}.original-appendix-control select{min-width:250px}.original-appendix-control small{flex-basis:100%;color:#6b7789}

.original-appendix-control{display:block}.original-appendix-control summary{cursor:pointer;font-size:13px}.original-appendix-control[open]>label{margin:10px 0}.original-appendix-control small{display:block;margin-top:8px}

.source-table-panel{margin:16px 0;padding:14px;border:1px solid #dce4ef;border-radius:10px;background:#f8faff}.source-table-panel>select{margin:10px 0;max-width:100%}.source-table-scroll{overflow:auto;max-height:540px}.source-table-preview{border-collapse:collapse;width:100%;font-size:13px;background:white}.source-table-preview td,.source-table-preview th{border:1px solid #c9d2df;padding:9px;white-space:pre-wrap;vertical-align:middle}.source-table-preview th{background:#eff4fa}.source-table-preview textarea{width:100%;min-width:75px;box-sizing:border-box}

#source-table-dialog{width:min(1280px,94vw);max-height:90vh;border:1px solid #dce4ef;border-radius:12px;padding:22px}#source-table-dialog .source-table-scroll{max-height:75vh}#source-table-dialog .source-table-preview{min-width:800px}

.working-copy-status{padding:12px 16px;background:#edf4ff;color:#334c74;border-radius:8px}.subsection-edit-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0;padding:12px;border:1px solid #dbe4f0;border-radius:10px}.subsection-edit-toolbar select{flex:1;min-width:220px;max-width:100%}

.paragraph-block[hidden],.editor-table[hidden]{display:none!important}

.document-image-library{padding:14px;margin:16px 0;border:1px solid #dce4ef;border-radius:10px;background:#f8faff}.document-image-library>select,.document-image-library>input{margin:7px 0;width:100%;box-sizing:border-box}.document-image-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.document-image-card{padding:10px;background:#fff;border:1px solid #dce4ef;border-radius:8px;display:flex;flex-direction:column;gap:7px}.document-image-card.selected{outline:2px solid #466caa}.document-image-card>img{width:100%;height:130px;object-fit:contain;background:#f3f5f8}.document-image-card>small{font-size:11px}.document-image-card>button{font-size:12px;padding:5px 8px}.inserted-document-image{display:flex;gap:12px;align-items:center;margin:10px 0;padding:10px;border:1px solid #e0e7f0;border-radius:8px}.inserted-document-image>img{width:90px;height:70px;object-fit:contain}.inserted-document-image>div{flex:1}.inserted-document-image small{display:block;color:#6c7789}.report-document-figure{margin:20px 0;text-align:center}.report-document-figure img{max-width:100%;max-height:650px;object-fit:contain}.report-document-figure figcaption{font-size:13px;margin-top:8px}

.document-image-grid{max-height:430px;overflow-y:auto;padding:3px}.inserted-document-image{flex-wrap:wrap}

/* Same ordered content is available while editing without moving source form controls. */
.chapter-paper[data-mode="read"] #editing-layout-preview{display:none}
#editing-layout-preview{margin:16px 0;border:1px solid var(--border,#dbe2ea);border-radius:10px;padding:14px;background:white}
#editing-layout-preview summary{cursor:pointer;font-weight:600}
.editing-layout-content{margin-top:18px;line-height:1.9}
.editing-layout-content img{max-width:100%;height:auto}
.editing-layout-content table{width:100%;border-collapse:collapse}
.editing-layout-content td,.editing-layout-content th{border:1px solid #dbe2ea;padding:8px}

.reading-delete-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin-bottom:20px;background:#f5f7fa;border:1px solid #e2e7ef;border-radius:8px;font:12px system-ui,sans-serif}
.reading-paragraph-actions{display:flex;align-items:center;gap:8px;margin-bottom:6px;font:11px system-ui,sans-serif;color:#7b8798}
.reading-paragraph-actions label{display:flex;align-items:center;gap:5px;margin-right:auto}
.reading-paragraph-actions input[type=checkbox]{width:15px;height:15px}
.reading-paragraph-actions button{padding:4px 8px;font-size:11px}
@media print{.reading-delete-toolbar,.reading-paragraph-actions{display:none}}

.attachment-originals{border-top:1px solid #dce2e9;margin-top:24px;padding-top:12px;font-family:system-ui,sans-serif}
.attachment-original-card{border:1px solid #dce2e9;border-radius:8px;padding:12px;margin:10px 0;font-size:13px}
.attachment-original-card summary{font-weight:600;cursor:pointer;line-height:1.7}
.attachment-original-card small{display:block;line-height:1.7;color:#738196;margin:8px 0}
.attachment-original-card select{max-width:65%;margin:8px 12px 8px 0}
.attachment-original-body{overflow:auto}
.attachment-original-body img{display:block;max-width:100%;height:auto;margin:12px auto}
.reading-content .attachment-originals p{text-indent:0;font-size:13px}

#assembly-panel{width:min(820px,calc(100vw - 48px));max-height:85vh;overflow:auto;border:1px solid #dce2e9;border-radius:14px;padding:24px;box-shadow:0 20px 80px #172b4d33;color:#253245}
#assembly-panel::backdrop{background:#172b4d66}
#assembly-panel>button:first-of-type{float:right}
#assembly-panel [role=status]{background:#edf2fa;padding:14px;border-radius:8px;clear:both;line-height:1.7}
#assembly-panel li{line-height:1.8;margin:6px 0}
#assembly-panel details{padding:12px 0;border-top:1px solid #e5e9ef}
.assembly-downloads{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}

#paragraph-source-dialog{width:min(850px,calc(100vw - 48px));max-height:85vh;overflow:auto;padding:24px;border:1px solid #dce2e9;border-radius:12px;color:#253245}
#paragraph-source-dialog::backdrop{background:#172b4d66}
#paragraph-source-dialog blockquote{padding:12px;background:#f2f5f9;margin:14px 0;white-space:pre-wrap}
.paragraph-source-card{border-top:1px solid #dce2e9;padding:16px 0}
.paragraph-source-card small{display:block;color:#758397;margin:8px 0}
.paragraph-source-text{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}

/* Official reference discovery */
.research-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.research-topics{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px;margin:18px 0}
.research-topic{display:grid;grid-template-columns:20px 1fr;gap:6px 10px;padding:14px;border:1px solid var(--border,#d9e2ee);border-radius:12px;align-items:start;cursor:pointer}
.research-topic input{width:18px;height:18px;margin:2px 0;grid-row:span 2;accent-color:#315bea}
.research-topic span{font-size:13px;line-height:1.6}
.research-result{padding:18px 0;border-top:1px solid var(--border,#d9e2ee)}
.research-result>a{font-weight:650;line-height:1.6}
.research-source{display:block;overflow-wrap:anywhere;color:#64748b}
#research-status{line-height:1.7}

.research-result a.research-source{font-size:13px;font-weight:400;color:#315bea;text-decoration:underline;text-underline-offset:3px;margin:8px 0}
.research-result a.research-source:hover{color:#193db2}
