:root{--bg:#f3f5f8;--panel:#ffffff;--panel-2:#f8fafc;--panel-3:#edf1f6;--ink:#172033;--text:var(--ink);--muted:#667085;--line:#dce2eb;--brand:#3157d5;--brand-2:#e26b5d;--on-brand:#ffffff;--soft:#eef2ff;--warn:#fff5e8;--bad:#fff0ef;--good:#eaf8f0;--warn-line:#f1d49f;--bad-line:#efb5b2;--good-line:#b6dec5;--warn-ink:#955d13;--bad-ink:#b33b32;--topbar-bg:rgba(255,255,255,.94);--overlay:rgba(15,23,42,.42);--shadow:0 8px 24px rgba(24,39,75,.08);--shadow-lg:0 18px 44px rgba(24,39,75,.16);--editor-gutter:#f5f7fa;--selection:#dfe6ff;--selection-ink:#172033}:root[data-theme=codex-dark]{color-scheme:dark;--bg:#08090a;--panel:#111315;--panel-2:#16191c;--panel-3:#1b1f22;--ink:#eceff2;--muted:#9aa3ad;--line:#2a3035;--brand:#74d399;--brand-2:#f4a261;--on-brand:#07110b;--soft:#17251d;--warn:#2a2314;--bad:#2b1717;--good:#16251c;--warn-line:#5f4a1e;--bad-line:#683331;--good-line:#315d42;--warn-ink:#f0bf63;--bad-ink:#ff8f83;--topbar-bg:rgba(17,19,21,.88);--overlay:rgba(0,0,0,.58);--shadow:0 12px 28px rgba(0,0,0,.34);--shadow-lg:0 18px 42px rgba(0,0,0,.45);--editor-gutter:#0d0f11;--selection:#31404f;--selection-ink:#f4f7fa}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.button,button{display:inline-flex;align-items:center;gap:6px;min-height:34px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);padding:7px 10px;cursor:pointer}.button.primary,button.primary{border-color:var(--brand);background:var(--brand);color:var(--on-brand)}.button.secondary,button.secondary{background:var(--panel);color:var(--muted)}.toolbar-button{min-height:40px;border-color:var(--line);background:var(--panel-2);color:var(--ink);font-weight:700}.compile-button-wrap{position:relative;display:inline-flex}.compile-package-notice{position:absolute;z-index:30;top:calc(100% + 6px);right:0;width:max-content;max-width:min(320px,calc(100vw - 24px));padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:var(--shadow);color:var(--ink);font-size:12px;font-weight:600;line-height:1.45}.reference-search-module{position:relative;min-width:0}.reference-popover{position:absolute;top:calc(100% + 8px);right:0;display:grid;gap:10px;width:min(720px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 80px));overflow:auto;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow);z-index:20}.reference-popover-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.reference-refresh{justify-self:start}.reference-actions{display:flex;flex-wrap:wrap;gap:8px}.button:active,.toolbar-button:active,button:active{transform:translateY(1px);background:var(--soft)}button.danger{border-color:var(--bad-line);background:var(--bad)}button:disabled{opacity:.55;cursor:not-allowed}.spinner{width:14px;height:14px;border:2px solid;border-right:2px solid transparent;border-radius:999px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:var(--panel);padding:9px 10px;color:var(--ink)}textarea{resize:vertical;min-height:96px}label{display:grid;gap:6px;color:var(--muted);font-size:12px}.topbar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--line);background:var(--topbar-bg);position:fixed;top:0;left:0;right:0;z-index:10}.brand{display:flex;gap:10px}.brand,.ppt-badge{align-items:center;font-weight:800;letter-spacing:0}.ppt-badge{display:inline-flex;justify-content:center;min-width:28px;height:18px;border-radius:4px;background:var(--panel-3);color:var(--brand-2);font-size:11px}.ppt-main-button{min-width:72px;justify-content:center}.ppt-main-button.done{border-color:var(--brand);background:var(--soft)}.ppt-main-button .spinner{width:12px;height:12px}.modal-backdrop{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:18px;background:var(--overlay)}.ppt-dialog{width:min(520px,100%)}.download-dialog,.ppt-dialog{padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow-lg)}.download-dialog{width:min(360px,100%)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-head strong{display:inline-flex;align-items:center;gap:7px}.ppt-skill-note{display:inline-flex;align-self:flex-start;padding:4px 8px;border:1px solid var(--warn-line);border-radius:6px;background:var(--warn);color:var(--warn-ink);font-size:12px;font-weight:700}.icon-button{width:32px;height:32px;min-height:32px;justify-content:center;padding:0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.form-error{margin:0;padding:8px 10px;border:1px solid var(--bad-line);border-radius:7px;background:var(--bad);color:var(--bad-ink);font-size:12px}.ppt-progress-panel{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.ppt-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ppt-progress-head span{color:var(--brand);font-weight:800}.ppt-progress-track{height:8px;overflow:hidden;border-radius:999px;background:var(--panel-3)}.ppt-progress-track span{display:block;height:100%;border-radius:inherit;background:var(--brand);transition:width .25s ease}.ppt-progress-panel p{margin:0;color:var(--muted);font-size:12px}.mark{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;color:var(--on-brand);background:var(--brand)}.topnav{gap:14px}.header-actions,.topnav{display:flex;align-items:center}.header-actions{position:relative;min-width:0;flex:1 1 auto;justify-content:flex-end;align-self:stretch}.header-actions>summary{display:none;align-items:center;justify-content:center;width:36px;min-height:36px;padding:0;list-style:none;cursor:pointer}.header-actions>summary::-webkit-details-marker{display:none}.header-actions-content{display:flex;align-items:center;justify-content:flex-end;gap:14px}.header-actions:not([open])>.header-actions-content{display:flex;position:absolute;top:50%;right:0;width:max-content;transform:translateY(-50%)}.project-identity{display:flex;align-items:center;gap:10px;min-width:0}.project-identity .brand{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.project-actions .global-model-select{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--muted);font-size:12px;white-space:nowrap}.project-actions .global-model-select select{width:220px;min-width:0;padding:4px 24px 4px 0;border:0;background:transparent;color:var(--ink);font-size:12px;font-weight:700}.project-actions .global-model-select select:focus{outline:none}.project-actions .toolbar-button{background:var(--panel-2)!important}.download-menu{position:relative}.download-menu>button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.download-menu-content{position:absolute;top:calc(100% + 8px);right:0;z-index:40;display:grid;min-width:150px;gap:6px;padding:8px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel-2);box-shadow:var(--shadow-lg)}.download-menu-content .toolbar-button{width:100%;justify-content:flex-start;white-space:nowrap}.download-menu-content .ppt-main-button{justify-content:flex-start}.topnav a{color:var(--muted);font-weight:700}.topnav a:hover{color:var(--brand)}.theme-toggle{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--muted)}.theme-toggle span{color:var(--ink)}.page{max-width:1180px;margin:0 auto;padding:78px 22px 22px}.stack{display:grid;gap:14px;min-width:0}.feedback-mode{gap:10px}.pdf-annotation-import{padding-top:10px;border-top:1px solid var(--line)}.feedback-source-panel{gap:10px}.source-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:3px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.source-tabs.has-full{grid-template-columns:repeat(4,minmax(0,1fr))}.source-tabs button{min-height:30px;padding:5px 4px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:11px;justify-content:center;gap:4px;white-space:nowrap}.source-tabs button.active{background:var(--soft);color:var(--brand);font-weight:700}.annotation-preview-details,.annotation-preview-list{display:grid;gap:8px}.annotation-preview-details summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;color:var(--text)}.annotation-preview-details summary span{color:var(--muted);font-size:12px}.annotation-preview-items{display:grid;gap:8px;margin-top:8px}.annotation-preview-item{display:grid;gap:6px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.annotation-preview-item.needs-review{border-color:var(--warn-line);background:var(--warn)}.annotation-preview-item textarea{min-height:72px}.annotation-preview-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px}.annotation-remove{color:var(--bad-ink)}.annotation-preview-item p{display:flex;gap:4px;margin:0}.annotation-quote{display:grid;gap:4px;width:100%;padding:7px 8px;border:0;border-left:3px solid var(--line);border-radius:6px;background:var(--panel-2);color:var(--muted);font:inherit;text-align:left;cursor:pointer}.annotation-quote:hover{background:var(--soft);border-left-color:var(--brand)}.annotation-marked{background:var(--warn);border-left-color:var(--warn-ink);color:var(--text)}.annotation-quote strong{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-size:12px}.annotation-preview-item .annotation-quote p{display:block}.annotation-check{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}.annotation-check input{width:auto}.mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.mode-tabs button{justify-content:center;min-height:30px;padding:5px 8px;border-radius:6px;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:700;gap:4px}.mode-tabs button.active{background:var(--panel);color:var(--brand);box-shadow:inset 0 0 0 1px var(--line)}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.split{display:grid;grid-template-columns:1.05fr .95fr;gap:16px;align-items:start}.card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:16px}.card h2,.card h3,.card p{margin-top:0}.muted{color:var(--muted)}.small{font-size:12px}.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.project{display:grid;gap:8px;min-height:138px}.pill{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:2px 8px;background:var(--soft);color:var(--brand);font-size:12px}.hero-panel{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:26px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.auth-copy h1,.hero-panel h1{max-width:760px;margin:4px 0 8px;font-size:clamp(28px,4vw,44px);line-height:1.08}.auth-copy p,.hero-panel p{max-width:680px;font-size:16px}.eyebrow{margin:0;color:var(--brand);font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.auth-page{min-height:100vh;display:grid;align-items:center}.auth-brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.auth-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:28px;align-items:center}.auth-card{min-height:420px}.auth-form{align-content:start}.auth-form h2{margin:0}.auth-form h2+p{margin:4px 0 0}.auth-links,.auth-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}.auth-switch button{min-height:auto;padding:0;border:0;background:transparent;color:var(--brand);font:inherit;font-weight:700}.auth-copy{padding:20px 0}.site-icp-footer{grid-column:1/-1;margin:-8px 0 0;text-align:center}.site-icp-footer a{color:var(--muted)}.model-status>div,.model-summary,.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-head h2{margin:0}.model-status{display:grid;gap:10px}.model-summary{cursor:pointer;list-style:none}.model-summary::-webkit-details-marker{display:none}.workbench{display:grid;position:fixed;top:90px;right:0;bottom:0;left:0;overflow:hidden;min-height:0}.workbench-pane-slot{display:contents}.workbench-pane-slot.is-kept-alive{display:block;position:absolute;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none}.pane-resizer{width:8px;cursor:col-resize;touch-action:none;-webkit-user-select:none;user-select:none;background:linear-gradient(to right,transparent 3px,var(--line) 3px,var(--line) 5px,transparent 5px)}.pane-resizer:hover{background:linear-gradient(to right,transparent 2px,var(--brand) 2px,var(--brand) 6px,transparent 6px)}.pane-drag-preview{position:absolute;top:0;bottom:0;left:0;z-index:20;display:none;width:2px;pointer-events:none;background:var(--brand);box-shadow:0 0 0 1px color-mix(in srgb,var(--brand) 18%,transparent),0 0 14px color-mix(in srgb,var(--brand) 35%,transparent)}.workbench.is-dragging .pane{visibility:hidden}.workbench.is-dragging .pane-drag-preview{display:block}.view-toggle{display:flex;gap:12px;align-items:center;min-height:34px;padding:6px 12px;border-bottom:1px solid var(--line);background:var(--panel);position:fixed;top:56px;left:0;right:0;z-index:2}.view-toggle-item{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:2px 4px;border:0;background:transparent;color:var(--muted);font-size:12px}.view-toggle-item[aria-pressed=true]{color:var(--ink)}.view-toggle-item input{width:auto;pointer-events:none}.pane{min-width:0;min-height:0;overflow:auto;border-right:1px solid var(--line);background:var(--panel-2)}.pane:last-child{border-right:0}.editor-pane,.scroll-pane{display:flex;flex-direction:column;overflow:hidden}.editor-pane .pane-head,.scroll-pane>.pane-head{flex:0 0 auto;position:relative;z-index:3}.scroll-pane>.pane-body{flex:1 1;min-height:0;overflow:auto}.pane-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:10px 12px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1}.pane-title-button{min-height:28px;padding:0;border:0;background:transparent;color:var(--ink);font-weight:700}.pane-title-button,.pane-title-label{display:inline-flex;align-items:center;gap:6px}.literature-current-title{min-width:0;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-title-button:hover{color:var(--brand)}.inline-head{min-height:0;padding:0;border:0;background:transparent;position:static}.pane-body{padding:12px}.ai-chat-pane{display:flex;flex-direction:column;overflow:hidden;background:var(--panel)}.ai-chat-head strong{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-width:max-content;white-space:nowrap}.ai-chat-font-controls button,.ai-chat-font-controls span,.ai-chat-head strong svg{flex:0 0 auto}.ai-chat-font-controls,.ai-chat-head-tools{display:inline-flex;align-items:center;gap:5px;min-width:0}.ai-chat-head-tools{flex:1 1 auto;justify-content:flex-end;overflow:hidden}.ai-chat-head-tools>.small{flex:1 1;min-width:0;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-chat-font-controls{flex:0 0 auto;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:var(--panel-2)}.ai-chat-font-controls button{min-width:26px;min-height:26px;padding:2px 5px;border:0;border-radius:0;background:transparent;color:var(--ink);font-size:12px;font-weight:700}.ai-chat-font-controls button:hover:not(:disabled){background:var(--soft);color:var(--brand)}.ai-chat-font-controls span{min-width:30px;color:var(--muted);font-size:11px;text-align:center}.ai-chat-body{display:flex;flex:1 1;min-height:0;flex-direction:column}.ai-chat-context{display:flex;flex-wrap:nowrap;gap:6px;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--panel-2)}.ai-chat-context,.ai-context-chip{align-items:center;min-width:0;overflow:hidden}.ai-context-chip{display:inline-flex;gap:4px;flex:0 1 auto;max-width:160px;min-height:24px;padding:3px 7px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.ai-context-chip.ok{border-color:var(--good-line);background:var(--good);color:var(--brand)}.ai-context-chip.agent{border-color:var(--brand);color:var(--brand)}.ai-context-chip.chat{border-color:var(--ok-line);background:var(--ok);color:var(--ink)}.ai-context-chip.plan{border-color:var(--warn-line);background:var(--warn);color:var(--ink)}.ai-conversation-tools{display:inline-flex;align-items:center;gap:5px;flex:1 1 230px;min-width:0;margin-left:auto}.ai-conversation-tools select{flex:1 1 auto;min-width:0;max-width:none;height:26px;padding:2px 6px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-conversation-tools .selected-text-jump{flex:0 0 auto;white-space:nowrap}.ai-empty-conversation{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}.ai-delete-conversation,.ai-delete-conversation:hover{color:var(--danger,#b42318)}.ai-chat-messages{flex:1 1;min-height:0;overflow:auto;padding:12px}.ai-message{display:grid;gap:8px;margin-bottom:10px;padding:0;border:0;border-radius:0;background:var(--panel)}.ai-message-user{justify-items:end}.ai-message-text{max-width:100%;white-space:pre-wrap;word-break:break-word;font-size:13px}.ai-route-note{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.ai-message-user .ai-message-text{width:fit-content;max-width:92%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.ai-message-assistant .ai-message-text{padding:2px 2px 0;color:var(--ink)}.ai-message-text p{margin:0 0 8px}.ai-message-text p:last-child{margin-bottom:0}.ai-message-text ol,.ai-message-text ul,.ai-result-block ol,.ai-result-block ul{margin:0 0 8px 18px;padding:0}.ai-message-text li,.ai-result-block li{margin:3px 0}.ai-message-text code,.ai-result-block code{padding:1px 4px;border:1px solid var(--line);border-radius:4px;background:var(--panel-2);font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-word}.ai-message-text pre code,.ai-result-block pre code{padding:0;border:0;background:transparent}.ai-rich-heading{margin:10px 0 6px;font-weight:600}.ai-message-text blockquote,.ai-result-block blockquote{margin:0 0 8px;padding:4px 10px;border-left:3px solid var(--line);color:var(--muted)}.ai-message-timing{margin:4px 0 0}.ai-empty-state{display:grid;gap:10px;margin:2px 0 12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.ai-empty-state strong{font-size:13px}.ai-empty-prompts{display:flex;flex-wrap:wrap;gap:6px}.ai-empty-prompts span{padding:4px 7px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font-size:12px}.ai-message-text pre,.ai-result-block pre{max-height:260px;overflow:auto;margin:0;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word}.ai-ref-row{display:flex;flex-wrap:wrap;gap:6px}.ai-ref-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:24px;padding:3px 7px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font-size:12px}.ai-ref-chip.active,button.ai-ref-chip.active{border-color:var(--brand);background:var(--soft);color:var(--ink)}.ai-suggestion{display:grid;gap:8px}.ai-suggestion textarea{min-height:130px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.ai-result-block{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.ai-result-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-result-head button{justify-content:center;width:28px;min-height:26px;padding:3px}.ai-result-block p{margin:0 0 8px;font-size:13px}.ai-result-block ul{margin:0 0 8px 18px;padding:0;font-size:13px}.ai-plan-block textarea{min-height:260px;resize:vertical;font:inherit;line-height:1.55}.ai-plan-block .row{justify-content:space-between}.ai-task-controls{display:flex;flex-wrap:wrap;gap:6px}.ai-review-block{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.ai-review-item{display:grid;gap:5px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);content-visibility:auto;contain-intrinsic-size:auto 260px}.ai-review-item.informational{border-color:var(--good-line);background:var(--good)}.ai-review-item-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-review-item p{margin:0;color:var(--ink);font-size:13px}.ai-review-original-title{text-decoration:line-through;opacity:.72}.ai-review-source-location{overflow-wrap:anywhere}.ai-review-source-excerpt{display:grid;gap:4px}.ai-review-source-excerpt pre{max-height:180px;margin:0;padding:8px;overflow:auto;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);color:var(--ink);font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word}.ai-review-item button{justify-self:start;min-height:26px;padding:3px 7px}.ai-agent-status{display:grid;gap:8px;margin:4px 0 12px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);color:var(--muted);font-size:12px}.ai-agent-status-head{display:flex;align-items:center;gap:8px;color:var(--ink)}.ai-agent-step,.ai-agent-steps{display:grid;gap:5px}.ai-agent-step{grid-template-columns:14px max-content minmax(0,1fr);align-items:center}.ai-agent-step>span{color:var(--muted);text-align:center}.ai-agent-step.active>span,.ai-agent-step.complete>span{color:var(--brand)}.ai-agent-step.active>span{animation:ai-agent-progress-pulse 1.2s ease-in-out infinite}.ai-agent-step.error>span{color:var(--danger,#b54708)}.ai-agent-step small{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}@keyframes ai-agent-progress-pulse{0%,to{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}.ai-agent-trace{display:grid;gap:6px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);color:var(--muted);font-size:12px}.ai-agent-trace summary{display:inline-flex;align-items:center;gap:5px;cursor:pointer}.ai-agent-trace>div{display:grid;gap:5px}.ai-agent-trace p{display:grid;gap:2px;margin:0;padding-top:5px;border-top:1px solid var(--line)}.ai-agent-trace span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-change-card{display:grid;gap:8px;padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.ai-change-card.applied{border-color:var(--good-line);background:var(--good)}.ai-change-card.blocked{border-color:var(--warn-line);background:var(--warn)}.ai-change-card.delete-preview-source{border-color:rgba(190,57,57,.45);box-shadow:inset 3px 0 0 rgba(190,57,57,.85)}.ai-change-set{display:grid;gap:10px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.ai-change-file-head,.ai-change-set-actions,.ai-change-set-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-change-set-head strong{display:inline-flex;align-items:center;gap:5px}.ai-change-set-actions{justify-content:flex-end}.ai-change-file{display:grid;gap:8px}.ai-change-file-head{padding-top:6px;border-top:1px solid var(--line)}.ai-change-file-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.ai-change-file-head button,.ai-change-set-actions button{min-height:26px;padding:3px 7px}.ai-change-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-card-revision-loading{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:12px}.ai-card-revision-loading .spinner{width:12px;height:12px;border-width:2px}.ai-change-card label{display:grid;gap:4px;font-size:12px;color:var(--muted)}.ai-change-card pre,.ai-change-card textarea{margin:0;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word}.ai-change-card textarea{min-height:112px;resize:vertical}.word-requirement-list{display:grid;gap:7px;padding-top:8px;border-top:1px solid var(--line)}.word-operation-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-height:34px;margin-top:8px;padding:10px 0 0;border-top:1px solid var(--line)}.word-requirement-list>p{margin:0}.word-requirement-list label{gap:5px;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.word-requirement-title{color:var(--ink);font-weight:650}.word-requirement-list .pill{width:fit-content}.word-requirement-list pre{line-height:1.55}.ai-chat-input{display:grid;gap:8px;padding:10px 12px;border-top:1px solid var(--line)}.ai-agent-queue{display:grid;gap:5px;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);font-size:12px}.ai-agent-queue button{display:block;min-height:26px;overflow:hidden;padding:3px 7px;background:var(--panel);color:var(--muted);text-align:left;text-overflow:ellipsis;white-space:nowrap}.ai-input-tools,.ai-send-row{display:flex;align-items:center;gap:6px}.ai-input-tools{justify-content:space-between;flex-wrap:wrap}.ai-send-row{justify-content:flex-end}.ai-auto-toggle.active{border-color:var(--brand);background:var(--soft);color:var(--ink)}.ai-chat-input textarea{min-height:88px;resize:vertical}.ai-chat-pane .ai-empty-state strong,.ai-chat-pane .ai-message-text,.ai-chat-pane .ai-result-block p,.ai-chat-pane .ai-result-block ul,.ai-chat-pane .ai-review-item p{font-size:var(--ai-chat-font-size,13px)}.ai-chat-pane .ai-agent-queue,.ai-chat-pane .ai-agent-status,.ai-chat-pane .ai-agent-trace,.ai-chat-pane .ai-change-card label,.ai-chat-pane .ai-change-card pre,.ai-chat-pane .ai-change-card textarea,.ai-chat-pane .ai-change-file-head strong,.ai-chat-pane .ai-empty-prompts span,.ai-chat-pane .ai-message-text pre,.ai-chat-pane .ai-ref-chip,.ai-chat-pane .ai-result-block pre,.ai-chat-pane .ai-route-note,.ai-chat-pane .ai-suggestion textarea{font-size:var(--ai-chat-meta-font-size,12px)}.ai-chat-pane .ai-chat-input textarea{font-size:var(--ai-chat-font-size,13px)}.ai-comment-picker{position:relative}.ai-comment-picker summary{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:4px 8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);list-style:none;cursor:pointer}.ai-comment-picker summary::-webkit-details-marker{display:none}.ai-comment-menu{position:absolute;z-index:20;bottom:34px;left:0;display:grid;gap:6px;width:min(320px,calc(100vw - 24px));max-height:320px;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow-lg)}.ai-comment-menu button{display:grid;gap:3px;justify-items:start;min-height:0;padding:7px;border:1px solid var(--line);background:var(--panel);text-align:left}.ai-comment-menu button.active{border-color:var(--brand);background:var(--soft)}.ai-comment-menu small{color:var(--muted);overflow-wrap:anywhere}.file-panel{position:relative;height:min(360px,46vh);max-height:70vh;min-height:48px;overflow:hidden;overscroll-behavior:contain;resize:vertical;border-bottom:1px solid var(--line)}.file-panel[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}.file-panel:not([open]){display:block;height:48px;resize:none;overflow:hidden}.file-panel-head{cursor:pointer;-webkit-user-select:none;user-select:none}.file-panel-head::-webkit-details-marker{display:none}.file-panel-head::marker{content:""}.file-panel-head strong{display:inline-flex;align-items:center;gap:4px}.file-panel:not([open]) .file-panel-head svg{transform:rotate(-90deg)}.file-panel-body{box-sizing:border-box;min-height:0;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:var(--panel)}.directory-pane .file-panel,.directory-pane .word-outline-panel{height:auto;max-height:none;resize:none;overflow:visible}.directory-pane .file-panel[open]{display:block}.directory-pane .file-panel-body{height:auto;max-height:none;overflow:visible}.directory-split{display:grid;min-height:0;height:100%}.directory-split-pane{min-height:0;overflow:auto;overscroll-behavior:contain;background:var(--panel)}.directory-split-resizer{z-index:2;cursor:row-resize;touch-action:none;-webkit-user-select:none;user-select:none;background:linear-gradient(to bottom,transparent 3px,var(--line) 3px,var(--line) 5px,transparent 5px)}.directory-split-resizer:hover{background:linear-gradient(to bottom,transparent 2px,var(--brand) 2px,var(--brand) 6px,transparent 6px)}.latex-outline-panel .word-outline-list button.latex-outline-item{display:flex;align-items:center;width:100%;min-height:28px;padding:4px 6px calc(4px) calc(6px + var(--outline-level) * 14px);border:0;border-radius:5px;background:transparent;color:var(--ink);font-weight:400}.latex-outline-panel .word-outline-list button.latex-outline-item.active,.latex-outline-panel .word-outline-list button.latex-outline-item:hover{border-left:0;background:var(--soft)}.latex-outline-label{display:inline-flex;align-items:center;min-width:0;gap:6px;font-weight:400}.latex-outline-label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.latex-outline-panel .word-outline-list button.latex-outline-item small{margin-left:auto;padding-left:8px}.word-outline-panel{height:min(420px,52vh)}.word-outline-list{display:grid;align-content:start;gap:3px;padding:8px}.word-outline-warning{padding:8px 12px;border-bottom:1px solid var(--border);color:var(--muted);font-size:11px;line-height:1.45}.word-outline-filters{display:flex;gap:5px;margin-top:7px}.word-outline-filters button{padding:3px 6px;border:1px solid var(--border);border-radius:4px;background:var(--panel);color:var(--muted);font-size:11px}.word-outline-filters button.active{border-color:var(--brand);color:var(--brand);background:var(--soft)}.word-outline-list button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-height:34px;padding:6px 8px 6px calc(8px + var(--outline-level) * 14px);border:0;border-left:2px solid transparent;border-radius:5px;background:transparent;color:var(--ink);text-align:left}.word-outline-list button.active,.word-outline-list button:hover{border-left-color:var(--brand);background:var(--soft)}.word-outline-list button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600}.latex-outline-panel .word-outline-list button.latex-outline-item .latex-outline-label,.latex-outline-panel .word-outline-list button.latex-outline-item .latex-outline-label>span{font-weight:400}.word-outline-list button small{color:var(--muted);font-size:10px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.word-outline-empty{display:grid;justify-items:center;gap:8px;padding:32px 16px;color:var(--muted);text-align:center;font-size:12px}.file-list,.queue{display:grid;gap:6px;min-width:0}.file-tree.stack{display:grid;gap:14px;min-height:0;overflow:visible}.file-tree .file-list{min-height:0;overflow:visible;padding-right:4px}.file-actions{position:absolute;top:10px;right:58px;z-index:3;display:flex;gap:4px}.file-actions summary{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;overflow:hidden;cursor:pointer;color:var(--brand);font-weight:700;font-size:0;list-style:none;border-radius:6px}.file-actions summary:hover{background:var(--soft)}.file-actions summary svg{flex:0 0 auto}.file-actions summary::-webkit-details-marker{display:none}.file-actions details{position:relative}.file-actions .mini-form{position:absolute;top:34px;right:0;z-index:10;min-width:230px;padding:10px;background:var(--panel);border:1px solid var(--line);border-radius:7px;box-shadow:var(--shadow)}.create-path-form{gap:8px}.create-path-form p{margin:0}.create-path-form .row{justify-content:flex-end}.file-row{min-height:28px}.file-list.drop-target-root{outline:1px dashed var(--brand);outline-offset:2px;border-radius:6px}.tree-item{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 6px;border-radius:5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.tree-item{width:auto;border:0;background:transparent;font:inherit;text-align:left}.tree-spacer{width:14px;height:14px}.tree-item.active,.tree-item:hover{background:var(--soft)}.tree-item.active{color:var(--brand);font-weight:700}.tree-item.drop-target{background:var(--soft);color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.file-folder.drop-target{background:var(--brand);color:var(--on-brand)}.file-folder.selected-folder{background:var(--soft);color:var(--brand);box-shadow:inset 3px 0 0 var(--brand),inset 0 0 0 1px var(--good-line)}.file-folder{color:var(--muted)}button.icon{min-width:28px;min-height:28px;padding:4px}.context-menu{position:fixed;z-index:20;display:grid;gap:4px;min-width:180px;padding:6px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:var(--shadow)}.context-menu button{justify-content:flex-start;width:100%}.context-rename,.mini-form{display:grid;gap:6px}.mini-form{min-width:180px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.batch-list{gap:10px}.batch,.batch-list{display:grid;min-width:0}.batch{border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}.batch[open]{border-color:var(--good-line)}.batch-head{display:grid;grid-template-columns:18px minmax(0,1fr);min-width:0;gap:6px 8px;padding:10px;font-weight:700;cursor:pointer;list-style:none}.batch-head::-webkit-details-marker{display:none}.batch-open,.batch[open] .batch-closed{display:none}.batch[open] .batch-open{display:block}.batch-head span{display:grid;gap:3px;min-width:0}.batch-head small{color:var(--muted);font-weight:500}.batch-title{color:var(--brand);line-height:1.25;overflow-wrap:anywhere}.batch-summary{display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical}.batch-progress{grid-column:2}.batch-body{gap:8px;min-width:0;padding:0 10px 10px}.comment-row{position:relative;display:grid;container:comment-card/inline-size;min-width:0;max-width:100%;gap:8px;padding:11px;border:1px solid transparent;border-radius:7px;background:var(--panel-2)}.comment-card{overflow:hidden}.comment-row.active{border-color:var(--brand);background:var(--good)}.comment-card.accepted{grid-template-columns:minmax(0,1fr) max-content;align-items:start;border-color:var(--line);background:var(--panel-3);opacity:.82}.comment-card.accepted .comment-main{grid-column:1}.comment-card.accepted .comment-actions{grid-column:2;grid-row:1;justify-self:end}.comment-card.accepted .status-dot{background:var(--good);color:var(--brand)}.comment-main{display:grid;grid-template-columns:auto minmax(0,1fr);min-width:0;max-width:100%;padding-right:76px}.comment-main,.comment-main span,.comment-row p,.comment-row small,.queue-item,.queue-item span{overflow-wrap:anywhere;word-break:break-word}.comment-actions{display:grid;grid-template-columns:repeat(3,max-content);gap:6px;align-items:start;padding-left:0;width:100%}.comment-delete{right:10px}.comment-delete,.comment-lock{position:absolute;top:10px;z-index:1}.comment-lock{left:10px}.comment-card:has(.comment-lock) .status-dot{display:none}.comment-card:has(.comment-lock) .comment-main{padding-left:38px}.comment-card:has(.comment-lock):not(:has(.comment-card-prompt)) .comment-main{padding-right:0}@container comment-card (max-width: 220px){.comment-main{padding-right:44px}.comment-lock{top:8px;right:8px}.comment-lock .comment-collapse-button{min-width:28px;width:28px;min-height:28px;height:28px;padding:4px}}.comment-card-prompt{position:absolute;top:10px;right:48px;z-index:2}.comment-card-prompt .revision-edit-button{position:static;background:var(--panel)}.comment-card.collapsed .comment-actions,.comment-card.collapsed .comment-delete{display:none}.comment-actions.single-action{grid-template-columns:max-content}.comment-collapse-button{min-width:34px;width:34px;padding:4px}.comment-row form{display:flex}.comment-edit summary,.comment-row button{min-width:28px;min-height:28px;padding:4px 6px}.change,.change-body,.change-text,.changes,.comment-row .notice,.comment-row textarea,.revision-method,.revision-method p{min-width:0;max-width:100%;overflow-wrap:anywhere}.comment-actions .subtle-action,.comment-edit summary.subtle-action{background:var(--panel);color:var(--muted);border-color:var(--line);font-size:12px;font-weight:700;min-width:74px;min-height:30px;justify-content:center}.comment-delete .icon-only{min-width:30px;width:30px;padding:4px;background:var(--panel)}.comment-actions .subtle-action:hover,.comment-edit summary.subtle-action:hover{color:var(--brand);border-color:var(--brand)}.comment-actions .action-ai{border-color:var(--good-line);color:var(--brand)}.comment-actions .subtle-action.danger:hover{color:var(--bad-ink);border-color:var(--bad-line)}.inline-revision{margin-top:4px}.revision-title{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}.revision-title small{color:var(--muted);font-weight:500}.revision-actions{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:2px}.revision-card{position:relative}.revision-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.revision-meta p{margin:0}.revision-edit-button{min-width:34px;width:34px;padding:4px}.revision-method{position:relative;padding:10px;border:1px solid var(--warn-line);border-radius:7px;background:var(--warn)}.revision-method p{margin:0}.revision-method strong{display:block;margin-bottom:6px;color:var(--brand)}.comment-row form.revision-instruction-editor{display:grid;gap:6px}.revision-method textarea{width:100%;min-height:150px;padding:0;border:0;background:transparent;resize:vertical;font:inherit}.revision-method textarea:focus{outline:0}.revision-prompt-editor{display:grid}.revision-prompt-editor .revision-edit-button{position:absolute;top:8px;right:8px;background:var(--panel)}.revision-prompt-box{margin-top:2px;border-color:var(--good-line);background:var(--good)}.revision-prompt-actions{display:flex;flex-wrap:wrap;gap:8px}.comment-edit{position:static}.comment-edit summary{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border:1px solid var(--line);border-radius:7px;background:var(--panel);cursor:pointer;list-style:none}.comment-edit summary::-webkit-details-marker{display:none}.comment-edit[open] .add-comment-form{position:static;display:grid;width:100%;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:none}.comment-edit-form{gap:8px;grid-column:1/-1}.comment-edit-form label{gap:4px;color:var(--muted)}.comment-edit-form input,.comment-edit-form textarea{font-size:13px}.comment-edit-form textarea{min-height:88px}.comment-edit-form button{justify-content:center}.comment-edit[open]{grid-column:1/-1;width:100%}.queue-item{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-height:auto;padding:0;border:0;background:transparent}.queue-item span:last-child{display:grid;gap:2px;min-width:0;max-width:100%}.queue-item small{color:var(--muted);font-weight:400}.comment-preview{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}.comment-card.active:not(.collapsed) .comment-preview{display:block;overflow:visible;-webkit-line-clamp:unset}.comment-preview-editor{width:100%;min-height:96px;resize:vertical;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);font:inherit}.status-dot{font-weight:700}.add-comment summary{display:inline-flex;align-items:center;gap:6px;min-height:34px;cursor:pointer;color:var(--brand);font-weight:700;list-style:none}.add-comment summary::-webkit-details-marker{display:none}.add-comment-form{display:grid;gap:6px;padding-top:8px;border-top:1px solid var(--line)}.add-comment-form textarea{min-height:70px}.file-item,.queue-item{width:100%;text-align:left;justify-content:flex-start;border-radius:6px}.file-item.active,.queue-item.active{border-color:var(--brand);background:var(--soft)}.editor-wrap{display:grid;grid-template-columns:minmax(0,1fr);flex:1 1;min-height:0;padding-right:8px;overflow:hidden;background:var(--panel);position:relative}.editor-tools,.pdf-tools{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid var(--line);background:var(--panel)}.editor-tools{flex-direction:column;align-items:stretch}.editor-tool-main{min-height:32px;flex-wrap:nowrap}.editor-tool-main,.toolbar-overflow{display:flex;align-items:center;gap:6px;min-width:0}.toolbar-overflow{position:relative;width:100%}.toolbar-overflow-row{display:flex;align-items:center;flex:1 1 auto;min-width:0;overflow:hidden}.toolbar-overflow-row>.editor-tool-main,.toolbar-overflow-row>.editor-tool-main>.word-format-toolbar{flex:0 0 auto;width:max-content;min-width:max-content;max-width:none}.toolbar-overflow-row .word-format-scroll{flex:0 0 auto;width:max-content;max-width:none;overflow:visible}.toolbar-overflow-row .editor-tool-file-name{flex:0 0 auto;max-width:360px}.toolbar-overflow-menu{position:relative;z-index:80;flex:0 0 auto}.toolbar-overflow-menu>summary{display:grid;place-items:center;width:30px;min-width:30px;height:30px;min-height:30px;padding:0 0 7px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);cursor:pointer;font-size:19px;font-weight:700;line-height:1;list-style:none}.toolbar-overflow-menu>summary::-webkit-details-marker{display:none}.toolbar-overflow-menu[open]>summary{border-color:var(--brand);background:var(--soft);color:var(--brand)}.toolbar-overflow-popover{position:absolute;top:calc(100% + 6px);right:0;z-index:90;display:grid;width:min(520px,calc(100vw - 24px));max-height:min(260px,calc(100vh - 88px));overflow:auto;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--panel);box-shadow:var(--shadow-lg)}.toolbar-overflow-popover>.editor-tool-main{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;width:auto;min-width:0;max-width:none}.toolbar-overflow-popover>.editor-tool-main>.word-format-toolbar{flex:1 1 100%;flex-wrap:wrap;width:auto;min-width:0;max-width:none}.toolbar-overflow-popover .word-format-scroll{flex-wrap:wrap;width:auto;min-width:0;max-width:none;overflow:visible}.editor-tool-file-name{flex:0 1 auto;min-width:0;max-width:min(360px,42%);margin-left:auto;overflow:hidden;color:var(--muted);font-size:12px;font-weight:600;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.word-format-toolbar{flex:1 1 auto;flex-wrap:nowrap;padding:1px 2px}.word-format-scroll,.word-format-toolbar{display:flex;align-items:center;gap:4px;min-width:0}.word-format-scroll{flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.word-format-toolbar select{flex:0 0 auto;min-height:30px;padding:3px 26px 3px 7px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink);font:12px/1.2 inherit}.word-style-select{width:88px}.word-font-select{width:104px}.word-size-select{width:72px}.word-align-select{width:84px}.word-tool-divider{flex:0 0 1px;width:1px;height:20px;margin:0 2px;background:var(--line)}.word-format-toggle{width:32px;min-width:32px;padding-inline:0}.word-format-toggle.active{border-color:var(--brand);background:var(--soft);color:var(--brand)}.word-image-action-label,.word-image-input{display:none}.word-toolbar-action{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;white-space:nowrap}.word-image-status{padding-left:50px;color:var(--muted);font-size:11px}.word-format-status{grid-column:1/-1;padding-top:2px;color:var(--muted);font-size:11px;white-space:nowrap}.word-paragraph-menu{position:relative;flex:0 0 auto}.word-paragraph-menu>summary{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:62px;min-height:30px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink);cursor:pointer;font-size:12px;font-weight:650;list-style:none}.word-paragraph-menu>summary::-webkit-details-marker{display:none}.word-paragraph-menu[open]>summary{border-color:var(--brand);background:var(--soft);color:var(--brand)}.word-paragraph-popover{position:absolute;top:100%;left:0;right:auto;z-index:20;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(320px,calc(100vw - 24px));margin-top:6px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:var(--shadow-lg)}.word-paragraph-heading{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:2px}.word-paragraph-heading strong{font-size:13px}.word-paragraph-heading span{color:var(--muted);font-size:10px}.editor-tools .word-paragraph-popover label{display:grid;align-items:stretch;gap:5px;min-width:0}.editor-tools .word-paragraph-popover label>span{color:var(--muted);font-size:11px;font-weight:650;white-space:nowrap}.word-paragraph-popover select{width:100%;min-width:0}.search-toggle.active{color:var(--brand);background:var(--soft);border-color:var(--brand)}.edit-actions,.search-panel{display:inline-flex;align-items:center;gap:6px}.search-panel{width:100%;padding-top:2px;flex-wrap:wrap}.search-panel input{flex:1 1 160px;min-width:140px}.search-result-status{min-width:110px;color:var(--brand);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.replace-menu{position:relative}.replace-menu summary{display:inline-flex;align-items:center;min-height:30px;padding:4px 8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);list-style:none}.replace-menu summary::-webkit-details-marker{display:none}.replace-popover{position:absolute;z-index:8;top:36px;left:0;display:grid;gap:6px;width:220px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:var(--shadow)}.editor-tools label{display:inline-flex;align-items:center;gap:4px}.editor-tools input,.search-panel input{width:120px;min-height:30px;padding:4px 8px}.editor-tools button,.pdf-tools button{min-height:30px;padding:4px 8px}.editor{font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;tab-size:2;z-index:2;height:100%;border:0;outline:none;background:var(--panel)}.editor,.editor-code-wrap{position:relative;min-height:0}.editor-code-wrap{min-width:0;overflow:hidden}.editor-initial-preview{position:absolute;inset:0;z-index:2;overflow:hidden;margin:0;padding:12px 10px 12px 62px;background:linear-gradient(to right,var(--editor-gutter) 0 51px,var(--line) 51px 52px,var(--panel) 52px);color:var(--ink);font:inherit;line-height:var(--editor-line-height,20px);pointer-events:none;white-space:pre-wrap}.editor-codemirror{width:100%;height:100%}.editor-codemirror .cm-editor{width:100%;height:100%;color:var(--ink);background:var(--panel);outline:none;font:inherit}.editor-codemirror .cm-scroller{height:100%;overflow:auto;font:inherit;line-height:var(--editor-line-height,20px);scrollbar-gutter:stable}.editor-codemirror .cm-content{min-height:100%;padding:12px 10px;caret-color:var(--ink)}.editor-codemirror .cm-line{padding:0}.word-editor .cm-content{font-family:宋体,SimSun,serif}.word-image-widget{width:100%;margin:10px 0 14px;padding:10px;border:1px solid var(--line);border-radius:8px;background:color-mix(in srgb,var(--panel) 92%,var(--soft));box-sizing:border-box}.word-image-widget img{display:block;max-width:100%;height:auto;border-radius:3px;object-fit:contain}.word-image-widget.center img{margin-inline:auto}.word-image-widget.right img{margin-left:auto}.word-image-widget figcaption{margin-top:6px;overflow:hidden;color:var(--muted);font:11px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;text-align:center;text-overflow:ellipsis;white-space:nowrap}.editor-codemirror .cm-gutters{border-right:1px solid var(--line);background:var(--editor-gutter);color:var(--muted)}.editor-codemirror .cm-lineNumbers .cm-gutterElement{min-width:36px;padding:0 8px}.editor-codemirror .latex-command{color:#8b5cf6;font-weight:600}.editor-codemirror .cm-editor .cm-selectionBackground{background:color-mix(in srgb,var(--selection) 65%,var(--panel))!important}.editor-selection-overlay{position:absolute;z-index:3;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;will-change:transform}.editor-agent-selection-box{position:absolute;border-radius:2px;background:rgba(78,141,245,.22)}.editor-agent-selection-label{position:absolute;z-index:2;width:max-content!important;height:auto!important;transform:none;padding:2px 7px;border-radius:5px;background:#245ea8;color:#fff;font-size:11px;line-height:18px;box-shadow:0 2px 8px rgba(20,48,82,.2)}.editor-delete-preview-box{position:absolute;border-radius:3px;background:rgba(255,210,210,.38)}.editor-delete-preview-box:after{content:"";position:absolute;right:0;left:0;top:50%;border-top:2px solid rgba(190,57,57,.85)}.editor-codemirror .editor-delete-preview-inline{background:rgba(255,210,210,.38);color:color-mix(in srgb,currentColor 78%,#8f2323);text-decoration-line:line-through;text-decoration-color:rgba(190,57,57,.9);text-decoration-thickness:2px;text-decoration-skip-ink:none}.editor-delete-preview-text{width:min(560px,calc(100% - 24px))!important;max-width:min(560px,calc(100% - 24px));max-height:160px;overflow:auto;padding:5px 8px;border:1px solid rgba(190,57,57,.45);border-radius:4px;background:rgba(255,246,246,.96);font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;text-decoration:line-through;transform:translateY(2px)}.editor-delete-preview-label,.editor-delete-preview-text{position:absolute;z-index:2;height:auto!important;color:#8f2323;pointer-events:none}.editor-delete-preview-label{width:max-content!important;transform:translateY(-100%);max-width:320px;padding:2px 6px;border:1px solid rgba(190,57,57,.28);border-radius:4px;background:#fff6f6;font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.latex-completion{position:fixed;z-index:40;display:grid;width:min(280px,calc(100% - 70px));max-height:244px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:var(--shadow-lg)}.latex-completion button{display:block;min-height:30px;padding:5px 7px;border:0;border-radius:5px;background:transparent;color:var(--ink);font:13px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-align:left}.latex-completion button.active,.latex-completion button:hover{background:var(--soft)}.latex-completion span{color:var(--brand);font-weight:800}.latex-completion small,.latex-completion span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.latex-completion small{margin-top:2px;color:var(--muted);font:12px/1 system-ui,sans-serif}.editor-context-menu{position:fixed;z-index:60;display:grid;min-width:180px;padding:6px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow-lg)}.editor-context-menu button{justify-content:flex-start;min-height:30px;border:0;background:transparent}.editor-context-menu button:hover:not(:disabled){background:var(--soft)}.ai-rewrite-popover{position:fixed;z-index:50;display:grid;gap:8px;width:min(320px,calc(100vw - 24px));padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow-lg)}.ai-rewrite-popover strong{display:flex;align-items:center;gap:6px;cursor:move;-webkit-user-select:none;user-select:none}.selected-text-jump{justify-content:flex-start;min-height:0;padding:0;border:0;background:transparent;color:var(--muted);font-size:13px;text-align:left}.selected-text-jump:hover{color:var(--brand);text-decoration:underline}.ai-rewrite-popover textarea{min-height:82px;resize:vertical}.ai-rewrite-popover pre{max-height:90px;overflow:auto;margin:0;padding:8px;border-radius:6px;background:var(--panel-3);white-space:pre-wrap}.ai-rewrite-popover .ai-review-result{min-height:120px;background:var(--panel-2)}.ai-review-actions{display:flex;gap:8px}.ai-review-actions button{min-height:34px;padding:7px 10px;border-radius:7px}.ai-review-actions-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ai-review-actions-primary:empty{display:none}.ai-review-actions-primary button:only-child{grid-column:1/-1}.ai-review-actions .primary-action{border-color:var(--brand);background:var(--brand);color:var(--on-brand)}.ai-review-actions-secondary{justify-content:flex-end;flex-wrap:wrap}.log,pre.diff{white-space:pre-wrap;word-break:break-word;background:#101815;color:#d8eee2;border-radius:7px;padding:12px;max-height:260px;overflow:auto}pre.diff{background:var(--panel-3);color:var(--ink);border:1px solid var(--line)}.revision-textarea{min-height:180px;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.action-pending .revision-card{opacity:.45;filter:grayscale(1);pointer-events:none}.notification-menu{position:relative;display:inline-block}.notification-trigger{position:relative;display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--panel);color:var(--ink);line-height:1}.notification-trigger::-webkit-details-marker{display:none}.notification-trigger:hover{background:var(--panel-2)}.notification-count{position:absolute;top:-6px;right:-7px;min-width:17px;height:17px;padding:0 4px;border:2px solid var(--topbar-bg,var(--panel));border-radius:99px;background:var(--danger,#b33);color:white;font-size:10px;font-weight:800;line-height:13px;text-align:center;white-space:nowrap}.notification-popover{position:absolute;z-index:30;top:calc(100% + 8px);right:0;width:min(360px,calc(100vw - 24px));max-height:min(600px,calc(100vh - 90px));overflow:auto;padding:12px;background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 36px rgba(0,0,0,.16)}.member-invite,.notification-head,.notification-item-head,.version-drawer-head,.version-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.notification-head{padding-bottom:8px;border-bottom:1px solid var(--border)}.notification-head a,.notification-project-link{color:var(--accent);font-size:12px}.notification-item{position:relative;padding:12px 0;border-bottom:1px solid var(--border)}.notification-item:last-child{border-bottom:0}.notification-item.is-read{opacity:.68}.notification-item-title{display:flex;align-items:center;gap:6px;font-size:13px}.notification-item-title i{width:6px;height:6px;border-radius:50%;background:var(--accent)}.notification-item p{margin:5px 0;font-size:12px;line-height:1.5}.notification-item-meta{display:flex;gap:8px;color:var(--muted);font-size:11px}.notification-actions{display:flex;gap:6px;margin-top:8px}.notification-actions form{margin:0}.notification-project-link,.notification-read{display:inline-flex;align-items:center;gap:4px;margin-top:8px;padding:0;border:0;background:transparent}.notification-page .notification-list{padding:8px 20px}.notification-page .notification-item{padding:16px 0}.member-invites{padding:8px;border:1px dashed var(--border);border-radius:8px}.member-invite{width:100%}.file-save-trigger,.version-history-trigger{margin-left:auto}.version-backdrop{position:fixed;z-index:100;inset:0;display:flex;align-items:flex-start;justify-content:flex-end;padding:calc(var(--app-topbar-height) + var(--app-view-toggle-height) + 16px) 16px 16px;background:rgba(0,0,0,.22)}.version-drawer{width:min(440px,100vw);height:min(720px,calc(100vh - var(--app-topbar-height) - var(--app-view-toggle-height) - 32px));overflow:auto;padding:18px;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:-12px 0 36px rgba(0,0,0,.14)}.version-drawer-head{padding-bottom:14px;border-bottom:1px solid var(--border)}.version-drawer-head>div{display:grid;gap:3px}.version-list{display:grid;gap:10px;padding-top:14px}.version-item{display:grid;gap:8px;padding:12px;border:1px solid var(--border);border-radius:10px;background:color-mix(in srgb,var(--panel) 86%,var(--text) 14%)}.version-item.is-latest{border-color:var(--accent)}.version-item-head span{color:var(--muted);font-size:11px}.version-item details summary{cursor:pointer;color:var(--accent);font-size:12px}.version-preview{max-height:180px;overflow:auto;margin:8px 0 0;padding:8px;white-space:pre-wrap;font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--background,#fff);border:1px solid var(--border);border-radius:6px}@media (max-width:700px){.notification-popover{position:fixed;top:58px;right:12px}.version-backdrop{padding:calc(var(--app-topbar-height) + var(--app-view-toggle-height) + 10px) 10px 10px}.version-drawer{width:100vw;height:min(680px,calc(100vh - var(--app-topbar-height) - var(--app-view-toggle-height) - 20px))}}.changes{position:relative;display:grid;gap:6px;border-radius:7px;padding:8px}.changes-head{display:flex;justify-content:space-between;gap:8px;min-height:28px;padding-right:36px;align-items:center}.changes-delete{background:var(--bad);border:1px solid var(--bad-line)}.changes-insert{background:var(--good);border:1px solid var(--good-line)}.changes-replace{background:var(--panel-3);border:1px solid var(--line)}details summary{cursor:pointer;color:var(--brand);font-weight:700}.change{position:relative;display:grid;gap:4px;width:100%;text-align:left;border:1px solid var(--line);border-radius:7px;padding:8px;background:var(--panel)}.change:hover{border-color:var(--brand)}.change.active{border-color:#d78b00;box-shadow:inset 0 0 0 2px #ffd98a}.change-body{display:grid;gap:4px;width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.change-row-head{justify-content:space-between;gap:8px}.change-row-head,.change-tools{display:flex;align-items:center}.change-tools{gap:4px;flex:0 0 auto}.change-tools button{min-height:24px;padding:2px 6px;font-size:11px}.change-lang{position:relative;display:inline-grid;place-items:center;width:18px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}.change-lang:hover{color:var(--brand);background:var(--soft)}.change-lang span{pointer-events:none;font-size:14px;line-height:1;transform:translateY(-1px)}.change-lang select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;text-align:center}.change-lang select option{color:var(--ink);text-align:center}.change-pop{margin:0 0 4px;padding:7px 8px;border:1px solid var(--warn-line);border-radius:6px;background:var(--warn);color:var(--warn-ink);font-size:12px;line-height:1.45}.change-text{white-space:pre-wrap;word-break:break-word;font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:block;height:132px;resize:vertical;overflow:auto;overscroll-behavior:contain;padding:8px;border-radius:6px;background:var(--panel-3)}.change-insert,.change-replace{background:var(--panel)}.status-pending{color:var(--warn-ink)}.status-accepted,.status-running{color:var(--brand)}.status-skipped{color:var(--muted)}.priority-high,.status-failed{color:var(--bad-ink)}.priority-high{background:var(--bad)}.priority-normal{color:var(--brand);background:var(--soft)}.priority-low{color:var(--muted);background:var(--panel-3)}.compile-ok{margin:0;color:var(--muted);font-size:12px}.compile-error{display:grid;gap:14px;border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:14px}.compile-error-full{flex:1 1;align-content:start;overflow:auto}.compile-error-hero{display:flex;gap:12px;align-items:flex-start;color:var(--bad-ink)}.compile-error-hero p{margin:4px 0 0;color:var(--ink);line-height:1.45}.compile-error-actions{display:flex;flex-wrap:wrap;gap:8px}.compile-error-actions .button{display:inline-flex;align-items:center;gap:6px}.compile-log-details summary{cursor:pointer;color:var(--brand);font-weight:700}.compile-log-details .log{margin-top:10px;max-height:min(52vh,520px)}.warning-menu{position:relative;margin-left:auto}.warning-menu summary{list-style:none;cursor:pointer;color:var(--warn-ink);background:var(--warn);border:1px solid var(--warn-line);border-radius:999px;padding:3px 8px;font-size:12px}.warning-menu summary::-webkit-details-marker{display:none}.warning-menu pre{position:absolute;right:0;top:28px;z-index:20;width:min(420px,70vw);max-height:260px;overflow:auto;margin:0;white-space:pre-wrap;font-size:12px}.notice,.warning-menu pre{padding:10px;border:1px solid var(--warn-line);border-radius:7px;background:var(--warn)}.toast.error{background:var(--bad);border:1px solid var(--bad-line);color:var(--bad-ink)}iframe{width:100%;height:420px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.pdf-sync{display:grid;justify-items:center;gap:8px;overflow-y:auto;overflow-x:hidden}.pdf-pane{position:relative;container-type:inline-size}.pdf-pane>.pane-head{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main status" "controls controls";align-items:center;justify-content:normal;column-gap:8px;row-gap:6px;padding:6px 8px}.pdf-head-status{grid-area:status;margin-left:0;display:inline-flex;align-items:center;gap:10px;min-width:0;flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-end}.pdf-head-view-controls{grid-area:controls;display:flex;width:100%;min-width:0}.pdf-zoom.pdf-head-zoom{position:static;top:auto;right:auto;z-index:auto;flex:0 0 auto;background:transparent}.pdf-head-status .version-history-trigger{margin-left:0}.pdf-head-version{display:inline-flex;flex:0 0 auto;align-items:center;margin-left:2px;padding-left:10px;border-left:1px solid var(--line)}.pdf-head-main{grid-area:main;display:flex;align-items:center;gap:8px;min-width:0}.pdf-head-main .toolbar-button{min-height:32px;padding:4px 9px}.pdf-head-main .warning-menu{margin-left:0}.pdf-head-view-controls .pdf-zoom.pdf-head-zoom{width:100%;justify-content:space-between;gap:4px}@container (max-width: 300px){.pdf-pane>.pane-head{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "status" "controls"}.pdf-head-main,.pdf-head-status,.pdf-head-view-controls{width:100%}.pdf-head-main{justify-content:space-between}.pdf-head-status{justify-content:flex-start}.pdf-head-version{margin-left:auto}}.pdf-tools{justify-content:flex-start;padding:0;border-bottom:0}.pdf-zoom{position:absolute;top:9px;right:90px;z-index:4;display:flex;align-items:center;gap:6px;background:var(--panel)}.pdf-sync-zoom{position:static;justify-self:end;margin:0}.pdf-zoom button{min-height:30px;padding:4px 8px}.reader-toolbar-inline{display:inline-flex;align-items:center;gap:6px;margin-left:auto}.reader-toolbar-inline button{min-height:30px;padding:4px 8px}.pdf-page-count{min-width:54px;padding:4px 8px;text-align:center;font-size:12px;color:var(--ink)}.pdf-page,.pdf-page-count{border:1px solid var(--line);border-radius:7px}.pdf-page{height:auto;display:block;pointer-events:none}.pdf-page,.pdf-page-shell{width:100%;background:#fff;cursor:text}.pdf-page-shell{position:relative;content-visibility:auto;contain-intrinsic-size:auto 420px;color:#111;isolation:isolate}.pdf-page-shell.is-loading{display:grid;min-height:260px;aspect-ratio:1/1.414;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:linear-gradient(110deg,var(--panel-2) 30%,var(--panel) 46%,var(--panel-2) 62%)}.pdf-page-placeholder{color:var(--muted);font-size:13px}.pdf-page-shell.is-loading .pdf-page{position:absolute;inset:0;opacity:0}.pdf-text-layer{inset:0;z-index:2}.pdf-text-layer,.pdf-text-layer span{position:absolute;overflow:hidden;-webkit-user-select:text;user-select:text}.pdf-text-layer span{color:transparent;white-space:pre;line-height:1;transform-origin:left top;cursor:text}.pdf-note-highlight{position:absolute;z-index:1;border-radius:1px;mix-blend-mode:multiply;opacity:.98;pointer-events:none}.pdf-highlight-menu{position:absolute;z-index:4;transform:translate(-50%,5px);pointer-events:auto}.pdf-highlight-menu button{min-height:28px;padding:4px 8px;border-color:rgba(120,90,0,.28);background:#fffbea;color:#514200;box-shadow:0 4px 12px rgba(0,0,0,.16);font-size:11px}.pdf-note-pin{position:absolute;z-index:2;pointer-events:auto}.pdf-note-icon{display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0;border:1px solid rgba(180,145,0,.45);border-radius:4px;background:#ffe45c;color:#3b3100;box-shadow:0 2px 7px rgba(0,0,0,.16);cursor:pointer}.pdf-note-popover{position:absolute;left:34px;top:0;z-index:3;width:min(260px,45vw);padding:8px 10px;border:1px solid rgba(180,145,0,.45);border-radius:6px;background:#fffbea;color:#2f2a12;font-size:11px;line-height:1.35;box-shadow:0 4px 12px rgba(0,0,0,.12)}.pdf-note-popover p{margin:4px 0;white-space:pre-wrap}.pdf-note-popover-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.pdf-note-popover-head .icon{width:22px;height:22px;min-height:22px}.pdf-text-layer ::selection{background:rgba(64,135,225,.38);color:transparent}.page.literature-page{width:100%;max-width:none;margin:0;padding:90px 32px 40px}.literature-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:start;gap:28px}.literature-content{min-width:0}.literature-sidebar{position:sticky;top:76px;display:grid;gap:18px;padding:4px 12px 4px 0;border-right:1px solid var(--line)}.literature-folder-list,.literature-nav{display:grid;gap:4px}.literature-folder-list{gap:2px}.literature-folder-list>p{margin:0 0 4px;padding:0 10px}.literature-folder-link,.literature-nav-item{width:100%;min-height:34px;justify-content:flex-start;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--ink);text-align:left}.literature-folder-link:hover,.literature-nav-item:hover{background:var(--panel-2)}.literature-folder-link.active,.literature-nav-item.active{background:var(--soft);color:var(--brand);font-weight:700}.literature-nav-item span{margin-left:auto;color:var(--muted);font-size:12px;font-weight:500}.literature-folder-link{gap:7px;padding-left:10px;color:var(--muted)}.literature-folder-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.literature-folder-link small{margin-left:auto;color:var(--muted)}.literature-context-layer{position:fixed;z-index:30;inset:0}.literature-folder-context-menu{position:absolute;display:grid;width:164px;padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:var(--shadow-lg)}.literature-folder-context-menu button{justify-content:flex-start;min-height:32px;padding:6px 8px;border:0;border-radius:5px;box-shadow:none}.literature-folder-context-menu button:hover{background:var(--panel-2)}.literature-folder-context-menu button.danger{color:var(--bad-ink);background:transparent}.literature-folder-context-menu button.danger:hover{background:var(--bad)}.literature-upload-button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding-inline:14px;white-space:nowrap;box-shadow:0 4px 12px color-mix(in srgb,var(--brand) 18%,transparent)}.literature-topbar-controls{display:flex;min-width:0;flex:1 1 auto;align-items:center;justify-content:flex-end;gap:7px}.literature-topbar-controls>form{display:flex;min-width:150px;max-width:360px;flex:1 1 250px;flex-wrap:nowrap;gap:6px}.literature-topbar-controls>form input{width:auto;min-width:0;flex:1 1 auto;padding-block:7px}.literature-topbar-controls>form button{flex:0 0 auto;min-width:64px;justify-content:center;padding-inline:9px}.literature-topbar-controls .literature-new-folder-button,.literature-topbar-controls .literature-upload-button{min-height:34px;padding:6px 9px;box-shadow:none}.literature-topbar{gap:10px}.literature-topbar .header-actions{flex:0 0 auto}.literature-topbar .header-actions:not([open])>.header-actions-content,.literature-topbar .header-actions>.header-actions-content{position:static;width:auto;transform:none}.literature-topbar .notification-menu[open]{z-index:40}.literature-upload-dialog{width:min(560px,100%);padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:var(--shadow-lg)}.literature-view-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--panel-2)}.view-tab{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);text-decoration:none;font-size:13px}.view-tab.active{border-color:var(--brand);background:var(--panel);color:var(--brand);box-shadow:0 1px 4px color-mix(in srgb,var(--ink) 9%,transparent)}.literature-head{padding:2px 0 10px;border-bottom:1px solid var(--line)}.literature-head-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.literature-grid{grid-template-columns:repeat(auto-fill,280px);justify-content:start;align-items:start}.upload-submit{display:grid;gap:8px}.upload-submit button:disabled{cursor:wait;opacity:.8}.upload-progress{position:relative;height:6px;overflow:hidden;border-radius:999px;background:var(--soft)}.upload-progress:before{content:"";position:absolute;inset:0 auto 0 0;width:42%;border-radius:inherit;background:var(--brand);animation:upload-progress 1s ease-in-out infinite}@keyframes upload-progress{0%{transform:translateX(-110%)}to{transform:translateX(260%)}}.toast{position:sticky;top:68px;z-index:8}.literature-card{position:relative;display:grid;gap:10px;align-content:start;width:280px;min-height:220px;border-radius:8px}.literature-card-link{display:grid;gap:7px;padding-top:22px;color:inherit;text-decoration:none}.literature-card-link strong,.literature-row-main strong{line-height:1.35}.literature-cover{display:grid;place-items:center;width:52px;height:66px;border:1px solid var(--line);border-radius:6px;background:linear-gradient(180deg,var(--panel-3),var(--panel));color:var(--brand)}.literature-tags{display:flex;flex-wrap:wrap;gap:5px}.literature-actions{position:absolute;top:10px;right:10px;display:flex;gap:6px}.literature-actions.compact{position:static;display:flex;align-items:center;justify-content:flex-end;min-width:72px}.literature-actions .icon-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:0;border:1px solid var(--line);border-radius:7px;background:color-mix(in srgb,var(--panel) 92%,transparent);color:var(--ink);text-decoration:none}.literature-actions .icon-button.danger{border-color:var(--bad-line);background:var(--bad)}.literature-check{position:absolute;top:12px;left:12px;z-index:2}.literature-check.inline{position:static}.literature-check input{width:auto}.literature-meta-inline{border-top:1px solid var(--line);padding-top:8px}.literature-actions.compact .literature-meta-inline{border-top:0;padding-top:0}.literature-meta-inline summary{cursor:pointer;color:var(--brand);font-size:13px}.literature-meta-inline textarea{min-height:90px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.literature-list{display:grid;gap:8px}.literature-row{display:grid;grid-template-columns:auto minmax(260px,1fr) minmax(88px,132px) auto;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.literature-row-main{display:grid;gap:4px;color:inherit;text-decoration:none;min-width:0}.literature-card code,.literature-row code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.literature-row-category{width:100%;min-width:0;padding-inline:8px 26px;color:var(--muted);background:var(--panel-2)}.literature-bib-dialog{width:min(660px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:var(--shadow-lg)}.literature-bib-dialog textarea{min-height:180px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.literature-bib-lookup{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.literature-bib-lookup a{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-size:13px}.literature-bib-lookup .muted:last-child{flex-basis:100%}.literature-bib-actions{justify-content:flex-end}.literature-tag-group{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.literature-tag-group h3{margin:0}.literature-assignment-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 12px;border:1px solid var(--good-line);border-radius:8px;background:var(--good)}.literature-assignment-bar select{width:min(260px,100%)}.literature-create-folder-dialog{width:min(430px,100%);padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:var(--shadow-lg)}.literature-folder-head{align-items:start}.literature-folder-manage{position:relative}.literature-folder-manage summary{display:inline-flex;align-items:center;gap:3px;cursor:pointer;color:var(--brand);font-size:13px}.literature-folder-manage[open]{display:grid;gap:8px;min-width:240px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow)}.literature-folder-manage form{margin:0}.reader-page{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:12px;height:calc(100vh - var(--app-topbar-height));margin-top:var(--app-topbar-height);padding:0 12px 12px;overflow:hidden;background:var(--panel-2)}.reader-page-single{grid-template-columns:minmax(0,1fr)}.reader-meta{display:grid;align-content:start;gap:12px;min-height:0;overflow:auto}.reader-meta textarea{min-height:110px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.reader-shell{display:grid;position:relative;grid-template-columns:minmax(0,1fr) 8px minmax(280px,var(--reader-side-width,360px));gap:0;min-width:0;min-height:0}.reader-shell.read-only{grid-template-columns:minmax(0,1fr)}.reader-resizer{cursor:col-resize;touch-action:none;background:linear-gradient(to right,transparent 3px,var(--line) 3px,var(--line) 5px,transparent 5px)}.reader-resizer:hover{background:linear-gradient(to right,transparent 2px,var(--brand) 2px,var(--brand) 6px,transparent 6px)}.reader-drag-preview{position:absolute;top:0;bottom:0;z-index:20;display:none;width:2px;pointer-events:none;background:var(--brand);box-shadow:0 0 0 1px color-mix(in srgb,var(--brand) 18%,transparent),0 0 14px color-mix(in srgb,var(--brand) 35%,transparent)}.reader-shell.is-dragging .reader-main,.reader-shell.is-dragging .reader-side{visibility:hidden}.reader-shell.is-dragging .reader-drag-preview{display:block}.reader-main{position:relative;min-height:0;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.reader-actionbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-12px -12px 0;padding:8px 12px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--panel) 94%,transparent)}.reader-actionbar button{min-height:30px;padding:4px 9px}.reader-markup-tools{display:contents}.reader-toolbar-reopen{position:sticky;top:8px;z-index:6;display:flex;height:0;justify-content:flex-end;pointer-events:none}.reader-toolbar-reopen button{min-height:30px;padding:4px 8px;pointer-events:auto;box-shadow:0 3px 10px rgba(0,0,0,.14)}.reader-color-swatches{display:inline-flex;flex:0 0 auto;align-items:center;gap:9px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2)}.reader-color-swatches button{position:relative;width:20px;height:20px;min-height:20px;padding:0;border:1px solid rgba(0,0,0,.18);border-radius:50%}.reader-color-swatches button.active{z-index:1;outline:2px solid var(--brand);outline-offset:2px}.reader-note-inline{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:start;gap:6px;flex:1 1 280px}.reader-note-inline textarea{min-height:34px;max-height:72px;resize:vertical}.inline-field{display:inline-flex;align-items:center;gap:5px;margin:0;color:var(--muted);font-size:12px}.inline-field input{width:76px;min-height:30px}.inline-field input[type=checkbox]{width:auto;min-height:0}.reader-chain-toggle{justify-content:flex-start;padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);color:var(--ink)}.reader-side{display:grid;align-content:start;gap:10px;min-width:0;min-height:0;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.reader-side-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.reader-side-head strong{display:inline-flex;align-items:center;gap:6px}.reader-side textarea{min-height:90px;resize:vertical}.selection-box{min-height:72px;max-height:150px;overflow:auto;font-size:13px;line-height:1.5;resize:vertical}.selection-box,.translation-box{padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);color:var(--ink);white-space:pre-wrap}.translation-box{min-height:120px;margin:0}.reader-zoom{right:20px}.reader-actionbar .reader-actionbar-zoom{position:static;z-index:auto;flex:0 0 auto;margin-left:auto;background:transparent}.reader-shell.compact{grid-template-columns:minmax(0,1fr)}.reader-shell.compact .reader-main{padding:8px}.literature-pane-reader .reader-shell.compact .reader-main{border:0;border-radius:0;padding:0}.reader-shell.compact .pdf-sync{gap:6px}.reader-shell.compact .pdf-page-shell{max-width:none}.literature-pane .card h3{margin:0}.literature-pane-body{display:grid;grid-template-rows:minmax(0,1fr);gap:10px;min-height:0;padding:10px}.literature-pane-body.library{display:block;overflow:auto}.literature-pane-body.reader{overflow:hidden}.literature-pane-list{display:grid;gap:10px;align-content:start;min-height:0}.literature-pane-list .file-list{display:grid;gap:6px;align-content:start;max-height:150px;overflow:auto}.literature-pane-list.expanded .file-list{max-height:none}.literature-pane-list .file-item{display:grid;gap:2px;min-height:44px;padding:8px 10px;align-content:center}.literature-directory-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;border:1px solid transparent;border-radius:8px}.literature-directory-item.active{border-color:var(--brand-line);background:var(--brand-soft)}.literature-directory-item .file-item{border:0;background:transparent;min-width:0}.literature-edit-button{width:30px;height:30px;margin-right:6px}.literature-meta-editor{align-content:start;overflow:auto;padding-right:2px}.literature-meta-editor-head{display:flex;align-items:start;justify-content:space-between;gap:8px}.literature-meta-editor-head p{margin:3px 0 0}.literature-meta-editor textarea{min-height:150px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.literature-meta-actions{flex-wrap:wrap}.literature-pane-reader{min-height:0;overflow:hidden}.literature-pane-reader .reader-main,.literature-pane-reader .reader-shell{height:100%}.search-lite{display:inline-flex;align-items:center;gap:5px;flex:1 1;margin:0}.search-lite input{min-height:32px;padding:4px 8px}.reference-pane-search{display:flex;gap:8px;align-items:center}.reference-results{min-height:0}.reference-group{display:grid;gap:8px;padding:10px 0;border-top:1px solid var(--line)}.reference-group summary{display:flex;align-items:center;gap:7px;margin:0;font-size:14px;font-weight:700;cursor:pointer;list-style:none}.reference-group summary::-webkit-details-marker{display:none}.reference-group summary:after{content:"收起";margin-left:auto;color:var(--muted);font-size:12px;font-weight:400}.reference-group:not([open]) summary:after{content:"展开"}.reference-group:not([open]) .reference-list{display:none}.reference-list{display:grid;gap:8px}.reference-item{display:grid;gap:6px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.reference-title{display:block;width:100%;min-width:0;justify-content:flex-start;min-height:0;padding:0;border:0;background:transparent;color:var(--ink);font-weight:700;text-align:left}.reference-title:hover{color:var(--brand)}.reference-title-row{display:flex;width:100%;min-width:0;gap:7px;align-items:start}.reference-title-row .reference-title{flex:1 1}.reference-title-row input[type=checkbox]{flex:0 0 14px;width:14px;min-width:14px;margin-top:2px}.reference-summary{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2)}.reference-summary h3{margin:0;font-size:15px}.reference-summary.inline{padding:8px;background:var(--panel)}.reference-summary.inline p{margin:0}.reference-summary pre{max-height:180px;overflow:auto;white-space:pre-wrap;font-size:12px}.asset-preview{flex:1 1;width:100%;min-height:0;border:0;background:var(--panel)}.image-preview{display:grid;place-items:center;overflow:auto;padding:16px}.image-preview img{max-width:100%;max-height:100%;object-fit:contain}.empty-preview{display:grid;place-items:center;color:var(--muted)}@media (max-width:980px){.split{grid-template-columns:1fr;height:auto}.workbench{grid-template-columns:1fr!important;grid-auto-rows:max-content;align-content:start;overflow-x:hidden;overflow-y:auto}.workbench>.pane-resizer{display:none}.workbench>.workbench-pane-slot>.pane{order:1;min-width:0;min-height:clamp(220px,42vh,360px)}.workbench>.workbench-pane-slot>.editor-pane{order:-1;min-height:clamp(320px,60vh,520px)}.reader-page,.reader-shell{grid-template-columns:1fr;height:auto;overflow:visible}.reader-resizer{display:none}.reader-main,.reader-meta,.reader-side{overflow:visible}.literature-head{align-items:flex-start}.literature-head-actions{justify-content:flex-start}.literature-row{grid-template-columns:auto minmax(0,1fr) auto;gap:4px 10px;padding:12px}.literature-row-main{grid-column:2}.literature-row-category{grid-column:2;grid-row:2;width:min(160px,100%)}.literature-row code{grid-column:2;grid-row:3}.literature-actions.compact{grid-column:3;grid-row:1/span 2;align-self:center}.literature-assignment-bar{align-items:stretch;flex-wrap:wrap;justify-content:flex-start}.literature-actions.compact{justify-content:flex-start}.literature-workspace{grid-template-columns:1fr;gap:16px}.literature-sidebar{position:static;grid-template-columns:auto minmax(0,1fr);gap:14px;padding:0 0 12px;border-right:0;border-bottom:1px solid var(--line)}.literature-nav{grid-template-columns:repeat(3,max-content)}.literature-folder-list{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.literature-folder-list>p{width:100%;padding:0}.literature-folder-link{width:auto;min-height:30px;padding:4px 8px}.pane{border-right:0;border-bottom:1px solid var(--line)}.editor{min-height:420px}.auth-shell{grid-template-columns:1fr}.hero-panel{display:grid}.topnav{gap:8px}}@media (max-width:900px){.page.literature-page{padding-inline:16px}}:root[data-theme=modern]{color-scheme:light;--bg:#f3f5f8;--panel:#fff;--panel-2:#f8fafc;--panel-3:#edf1f6;--ink:#172033;--text:#172033;--muted:#667085;--line:#dce2eb;--brand:#3157d5;--brand-2:#e26b5d;--on-brand:#fff;--soft:#eef2ff;--warn:#fff5e8;--bad:#fff0ef;--good:#eaf8f0;--warn-line:#f1d49f;--bad-line:#efb5b2;--good-line:#b6dec5;--warn-ink:#955d13;--bad-ink:#b33b32;--topbar-bg:rgba(255,255,255,.94);--overlay:rgba(15,23,42,.42);--shadow:0 8px 24px rgba(24,39,75,.08);--shadow-lg:0 18px 44px rgba(24,39,75,.16);--editor-gutter:#f5f7fa;--selection:#dfe6ff;--selection-ink:#172033;--radius-sm:8px;--radius-md:12px}:root[data-theme=academic]{color-scheme:light;--bg:#f6f1e9;--panel:#fffdf8;--panel-2:#fbf7f0;--panel-3:#f0e8dd;--ink:#243449;--text:#243449;--muted:#7a746c;--line:#e3d8ca;--brand:#a34f35;--brand-2:#263d5a;--on-brand:#fffaf2;--soft:#f5e9de;--warn:#fff2da;--bad:#fbe7e1;--good:#e9f2e8;--warn-line:#e8c98c;--bad-line:#e1b4a5;--good-line:#b8d0b8;--warn-ink:#88601e;--bad-ink:#9b3c2c;--topbar-bg:rgba(255,253,248,.94);--overlay:rgba(38,46,58,.4);--shadow:0 8px 24px rgba(83,65,45,.08);--shadow-lg:0 18px 44px rgba(83,65,45,.16);--editor-gutter:#f4eee6;--selection:#f0ddcf;--selection-ink:#243449;--radius-sm:6px;--radius-md:10px}:root[data-theme=forest]{color-scheme:light;--bg:#f6f7f4;--panel:#fff;--panel-2:#fbfcfa;--panel-3:#f4f6f2;--ink:#17211b;--text:#17211b;--muted:#66736b;--line:#dbe2dc;--brand:#176b52;--brand-2:#d46335;--on-brand:#fff;--soft:#eef4ef;--warn:#fff4df;--bad:#ffe8e4;--good:#eef8f1;--warn-line:#ead6a4;--bad-line:#e1b4aa;--good-line:#b7d8c1;--warn-ink:#7a5520;--bad-ink:#9b2f1f;--topbar-bg:rgba(255,255,255,.88);--overlay:rgba(23,33,27,.34);--shadow:0 12px 26px rgba(23,33,27,.12);--shadow-lg:0 16px 38px rgba(23,33,27,.18);--editor-gutter:#f1f4f0;--selection:#d7dce0;--selection-ink:#111;--radius-sm:8px;--radius-md:12px}:root[data-theme=terminal]{color-scheme:dark;--bg:#0c1219;--panel:#121c26;--panel-2:#16232e;--panel-3:#1b2a36;--ink:#e7f0f5;--text:#e7f0f5;--muted:#8ea2b1;--line:#2a3b49;--brand:#49c6e5;--brand-2:#f4b35f;--on-brand:#07151c;--soft:#15303a;--warn:#302616;--bad:#351b20;--good:#153025;--warn-line:#6d552d;--bad-line:#75404a;--good-line:#2f6650;--warn-ink:#f4c36c;--bad-ink:#ff9a9a;--topbar-bg:rgba(18,28,38,.96);--overlay:rgba(0,0,0,.62);--shadow:0 8px 24px rgba(0,0,0,.24);--shadow-lg:0 18px 44px rgba(0,0,0,.4);--editor-gutter:#0e1820;--selection:#1b4656;--selection-ink:#f5fbff;--radius-sm:6px;--radius-md:9px}body{letter-spacing:-.01em;transition:background-color .18s ease,color .18s ease}.button,button,input,select,textarea{border-radius:var(--radius-sm);transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}.button:hover,button:hover{border-color:color-mix(in srgb,var(--brand) 42%,var(--line))}.button:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 24%,transparent);outline-offset:1px}:root{--app-topbar-height:clamp(54px,6vh,64px);--app-view-toggle-height:0px;--workbench-pane-head-height:clamp(40px,4.8vh,48px);--workbench-section-head-height:clamp(36px,4.2vh,44px);--workbench-toolbar-height:clamp(40px,4.8vh,48px)}.topbar{height:var(--app-topbar-height);padding:0 24px;border-bottom-color:var(--line);box-shadow:0 1px 0 rgba(0,0,0,.02)}.brand{gap:11px;font-size:15px;letter-spacing:-.02em}.mark{width:32px;height:32px;border-radius:10px;box-shadow:0 4px 10px color-mix(in srgb,var(--brand) 20%,transparent)}.topnav{gap:18px}.topnav a{font-size:13px}.theme-toggle{flex:0 0 auto;min-width:76px;min-height:36px;padding:0 10px;border-radius:999px;background:var(--panel-2);font-size:12px;font-weight:700;white-space:nowrap}.page{max-width:1280px;padding:90px 28px 32px}.stack{gap:18px}.split{gap:20px}.card{padding:20px;border-radius:var(--radius-md);box-shadow:var(--shadow)}.card h2,.card h3{letter-spacing:-.025em}.pill{min-height:26px;padding:3px 9px;font-weight:700}.hero-panel{padding:34px;border-radius:16px;box-shadow:var(--shadow)}.auth-copy h1,.hero-panel h1{letter-spacing:-.05em;font-weight:800}.eyebrow{letter-spacing:.08em}.project-workbench-toolbar{justify-content:flex-start;gap:12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.project-workbench-toolbar:has(.reference-popover){overflow:visible}.project-workbench-toolbar:has(.download-menu.open){overflow:visible}.project-workbench-toolbar:has(.notification-menu[open]){overflow:visible}.project-workbench-toolbar>.project-identity{order:1;flex:0 0 auto;max-width:min(230px,28vw)}.project-workbench-toolbar>.view-toggle{position:static;order:2;flex:0 0 auto;inset:auto;z-index:auto;height:auto;min-height:0;padding:0;border:0;background:transparent;overflow:visible}.project-workbench-toolbar>.header-actions{order:3;flex:1 0 auto;margin-left:auto;justify-content:flex-end;overflow:visible}.project-workbench-toolbar>.header-actions:not([open])>.header-actions-content,.project-workbench-toolbar>.header-actions>.header-actions-content{position:static;display:flex;width:max-content;min-width:0;transform:none;gap:8px}.project-workbench-toolbar>.word-format-toolbar-toggle{order:2;flex:0 0 auto;display:grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);line-height:1}.project-workbench-toolbar>.word-format-toolbar-toggle:hover{background:var(--panel-2)}.workbench{top:calc(var(--app-topbar-height) + var(--app-view-toggle-height));background:var(--bg)}.pane{border-right-color:var(--line)}.pane,.pane-head{background:var(--panel)}.pane-head{min-height:var(--workbench-pane-head-height);padding:0 16px;border-bottom-color:var(--line)}.pane-body{padding:14px}.pane-resizer{width:10px;background:var(--line);opacity:.65}.pane-resizer:hover{background:var(--brand);opacity:1}.ai-change-card,.batch,.comment-card,.file-panel,.mode-panel{border-color:var(--line);border-radius:var(--radius-sm)}.batch[open],.file-panel[open]{box-shadow:0 2px 0 color-mix(in srgb,var(--brand) 10%,transparent)}.batch-head,.file-panel-head{min-height:var(--workbench-section-head-height)}.comment-row,.file-item{border-radius:var(--radius-sm)}.comment-row.active,.file-item.active{box-shadow:inset 3px 0 0 var(--brand)}.mode-tabs,.source-tabs{padding:4px;border-radius:999px;background:var(--panel-3)}.mode-tabs button,.source-tabs button{border-radius:999px}.mode-tabs button.active,.source-tabs button.active{box-shadow:var(--shadow)}.editor-wrap,.pdf-pane{background:var(--panel)}.editor-tools,.pdf-tools{min-height:var(--workbench-toolbar-height);padding:clamp(4px,.8vh,7px) clamp(8px,1vw,12px);background:var(--panel-2);border-bottom-color:var(--line)}.editor-tool-main{gap:8px}.editor-wrap .cm-content,pre{font-feature-settings:"calt";font-variant-ligatures:contextual}.editor-gutter{background:var(--editor-gutter);color:var(--muted)}.editor-status,.pdf-status{background:var(--panel-2);border-top-color:var(--line)}.ai-chat-pane{background:var(--panel-2)}.ai-chat-head{padding:clamp(6px,1.2vh,14px) clamp(10px,1.25vw,16px);background:var(--panel);border-bottom-color:var(--line)}.ai-chat-messages{padding:16px}.ai-change-card,.ai-message{border-radius:var(--radius-md);box-shadow:var(--shadow)}.ai-message-user{background:transparent;box-shadow:none}.ai-chat-input,.ai-message-assistant{background:var(--panel)}.ai-chat-input{padding:12px;border-top-color:var(--line)}.ai-chat-input textarea{min-height:82px}.batch,.comment-card{background:var(--panel-2)}.comment-card.active{background:var(--panel)}.comment-card.accepted{opacity:.78}.change-tools button,.comment-actions button{min-height:30px}.pdf-page{border-radius:4px;box-shadow:0 8px 28px rgba(0,0,0,.13)}.pdf-page:hover{border-color:var(--brand)}.pdf-note-popover{border-radius:var(--radius-md);box-shadow:var(--shadow-lg)}html[data-theme=academic] .brand,html[data-theme=academic] .pdf-page,html[data-theme=academic] h1,html[data-theme=academic] h2,html[data-theme=academic] h3{font-family:Georgia,Times New Roman,serif}html[data-theme=academic] .editor-wrap,html[data-theme=academic] .pdf-pane{background:#fffdf8}html[data-theme=academic] .hero-panel{border-top:3px solid var(--brand)}html[data-theme=terminal] .editor-wrap .cm-content,html[data-theme=terminal] code,html[data-theme=terminal] pre{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}html[data-theme=terminal] .editor-tools,html[data-theme=terminal] .pane-head,html[data-theme=terminal] .pdf-tools,html[data-theme=terminal] .topbar{background:var(--panel-2)}html[data-theme=terminal] .mark{box-shadow:0 0 0 1px color-mix(in srgb,var(--brand) 50%,transparent),0 0 18px color-mix(in srgb,var(--brand) 22%,transparent)}html[data-theme=terminal] .editor-wrap{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand) 10%,transparent)}@media (max-width:900px){.topbar{padding:0 14px}.page{padding-inline:16px}.hero-panel{padding:24px}}@media (max-width:1100px){.topbar{gap:12px}.brand{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.header-actions{min-width:0;overflow-x:auto}.header-actions:not([open])>.header-actions-content,.header-actions>.header-actions-content{position:static;display:flex;width:max-content;min-width:100%;transform:none;gap:8px}.view-toggle{gap:6px;overflow-x:auto;scrollbar-width:thin}.view-toggle-item{flex:0 0 auto}.project-workbench-toolbar>.project-identity{max-width:190px}.project-workbench-toolbar>.header-actions,.project-workbench-toolbar>.view-toggle{overflow:visible}.project-actions .global-model-select select{width:180px}}@media (max-width:600px){.project-identity .theme-toggle{min-width:36px;padding-inline:9px}.project-identity .theme-toggle span{display:none}.project-workbench-toolbar>.word-format-toolbar-toggle{width:36px;min-width:36px;padding:0}}.home-page{max-width:1180px;gap:22px}.home-page .hero-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;min-height:224px;padding:38px 42px;background:var(--panel)}.home-page .hero-panel h1{max-width:760px;font-size:clamp(32px,4.4vw,52px)}.home-page .hero-panel:after{content:"从意见到可核验的修改";align-self:end;padding:10px 14px;border-left:2px solid var(--brand);color:var(--muted);font-size:12px;font-weight:700;white-space:nowrap}.home-page>.split{display:block}.home-project-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.home-page .home-create-card{align-content:start;min-height:300px;padding:26px;border:1px solid color-mix(in srgb,var(--brand) 22%,var(--line));box-shadow:0 12px 32px color-mix(in srgb,var(--brand) 8%,transparent)}.home-page .home-create-card h2{font-size:21px}.home-page .home-create-card .primary{min-height:44px;justify-content:center;font-weight:800}.create-project-options{display:flex;flex-wrap:wrap;gap:12px 18px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm)}.create-project-options legend{padding:0 4px;color:var(--muted);font-size:12px}.create-project-options .create-project-option{display:inline-flex;align-items:center;gap:6px;margin:0;color:var(--ink);cursor:pointer}.create-project-options .create-project-option input[type=radio]{flex:0 0 auto;width:16px;height:16px;margin:0;padding:0;appearance:auto;-webkit-appearance:radio;accent-color:var(--brand)}.home-page .home-literature-card{display:flex;min-height:92px;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding:20px 26px;background:transparent}.home-page .home-literature-card h2{margin-bottom:4px;font-size:17px}.home-page .home-literature-card p{margin-bottom:0}.home-projects-section{gap:14px}.home-projects-section>.section-head{padding:0 4px}.home-projects-section>.section-head h2{font-size:22px;letter-spacing:-.035em}.home-projects-section .grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.home-projects-section .project{min-height:132px;padding:18px;background:var(--panel);box-shadow:none}.home-projects-section .project:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.project-manager-head{align-items:end}.project-card-actions,.project-filter-tabs,.project-manager-controls,.project-rename-form{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.project-filter-tabs button{min-height:30px;padding:5px 9px;color:var(--muted)}.project-filter-tabs button.active{border-color:var(--brand);background:var(--soft);color:var(--brand)}.project-view-toggle{display:inline-flex;padding:2px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.project-view-toggle button{display:grid;width:30px;height:28px;padding:0;place-items:center;border:0;border-radius:5px;color:var(--muted);background:transparent}.project-view-toggle button.active{color:var(--brand);background:var(--soft)}.project-manager-list{display:grid;gap:8px}.project-manager-list .project{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;gap:3px;padding:10px 14px;column-gap:14px}.project-manager-list .project-card-head,.project-manager-list .project>.small{grid-column:1}.project-manager-list .project-card-actions{grid-column:2;grid-row:1/span 2;align-self:center;justify-content:flex-end;margin:0;padding:0}.project-manager-list .project-card-actions button{min-height:28px;padding:4px 7px}.project-manager-list .project-rename-form{grid-column:1/-1}.project-manager-card{align-content:start}.project-card-head{justify-content:flex-start}.project-open-link{display:inline-flex;align-items:center;gap:6px;min-width:0}.project-open-link strong,.project-open-link.muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-workspace-grid .grid .project-card-head{align-items:flex-start}.home-workspace-grid .grid .project-open-link{flex:1 1;align-items:flex-start}.home-workspace-grid .grid .project-open-link strong{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}.project-card-actions{margin-top:auto;padding-top:4px}.project-card-actions form{margin:0}.project-card-actions button{min-height:30px;padding:5px 8px;font-size:12px}.project-rename-form input{flex:1 1 160px;min-width:0}.project-rename-form button{min-height:34px}.project-rename-dialog{width:min(380px,100%);padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow-lg)}.project-rename-dialog label{font-size:13px}@media (max-width:720px){.home-page .hero-panel,.home-project-entry-grid{grid-template-columns:1fr}.home-page .hero-panel{min-height:0;padding:28px 24px}.home-page .hero-panel h1{max-width:100%;font-size:clamp(30px,8.2vw,36px);line-height:1.12}.home-page .hero-panel .eyebrow{max-width:100%;font-size:11px;letter-spacing:.06em;overflow-wrap:anywhere}.home-page .hero-panel:after{display:none}.home-page .home-literature-card{align-items:flex-start;flex-direction:column;gap:12px}.project-manager-head{align-items:flex-start}.project-manager-list .project{grid-template-columns:1fr}.project-manager-list .project-card-actions{grid-column:1;grid-row:auto;justify-content:flex-start;margin-top:6px}}.home-page{max-width:1400px;gap:28px}.home-page .home-hero-workspace{position:relative;grid-template-columns:minmax(0,1.08fr) minmax(360px,.72fr);align-items:stretch;min-height:500px;padding:0;overflow:hidden;border:1px solid var(--line);background:var(--panel) url(/home-hero-paper.png) center /cover no-repeat;box-shadow:var(--shadow-lg)}.hero-customize-button{position:absolute;top:18px;left:18px;z-index:2;border-color:var(--line);background:color-mix(in srgb,var(--panel) 90%,transparent)}.home-hero-customize-dialog{width:min(520px,100%);max-height:min(760px,calc(100vh - 36px));overflow:auto;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow-lg)}.home-hero-customize-dialog textarea{min-height:92px}.home-hero-image-field{display:flex;align-items:center;gap:6px}.home-hero-reset{display:flex;align-items:center;gap:7px;color:var(--ink);font-size:13px}.home-hero-reset input{width:auto}.home-page .home-hero-workspace:after{display:none}.home-hero-copy{display:grid;align-content:center;justify-items:start;gap:18px;padding:66px 60px}.home-page .home-hero-copy .eyebrow{margin:0;color:var(--brand);font-size:12px;font-weight:800}.home-page .home-hero-copy h1{max-width:520px;margin:0;color:var(--ink);font-family:Georgia,Songti SC,STSong,serif;font-size:clamp(48px,5.4vw,76px);line-height:1.1;letter-spacing:-.075em}.home-page .home-hero-copy>.muted{max-width:450px;margin:0;color:var(--muted);font-size:16px;line-height:1.75}.home-hero-links{display:grid;gap:12px;margin-top:10px}.home-hero-links button{min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--brand);font-size:16px;font-weight:800}.home-hero-links button.active,.home-hero-links button:hover{border-color:transparent;background:transparent;color:var(--brand);transform:translateX(2px)}.home-page .home-quick-create{align-content:start;align-self:stretch;margin:18px;min-height:0;padding:28px;border-color:var(--line);background:var(--panel);box-shadow:var(--shadow)}.home-quick-create-head{display:grid;gap:4px}.home-quick-create-head h2{display:flex;align-items:center;gap:7px;margin:0;font-size:23px}.home-page .home-quick-create .primary{margin-top:4px}.home-workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.42fr);align-items:start;gap:24px}.home-project-column{display:grid;gap:24px;min-width:0}.home-page .home-upload-card{display:grid;gap:14px;min-height:0;padding:22px 24px;border-color:var(--line);box-shadow:none}.home-page .home-upload-card h2{margin:0;font-size:19px}.home-page .home-upload-card .primary{width:max-content;min-height:40px;justify-self:start;padding-inline:20px;font-weight:800}.home-page .home-literature-card{min-height:0;flex-direction:column;align-items:stretch;padding:26px;border-color:var(--line);background:var(--panel);box-shadow:none}.home-page .home-literature-card .section-head{align-items:center}.home-page .home-literature-card p{color:var(--muted);line-height:1.7}.home-literature-features{display:grid;gap:10px;margin:4px 0 0;padding:0;list-style:none;color:var(--ink);font-size:13px}.home-literature-features li{display:flex;align-items:center;gap:8px}.home-literature-features li:before{content:"";width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 4px var(--soft)}.home-project-error{grid-column:1/-1}.home-workspace-grid .home-projects-section{gap:16px}.home-workspace-grid .home-projects-section>.section-head{padding:0}.home-workspace-grid .project-manager-controls{gap:7px}.home-workspace-grid .grid,.home-workspace-grid .project-manager-list{border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}.home-workspace-grid .project-manager-list{gap:0}.home-workspace-grid .project-manager-list .project{border:0;border-bottom:1px solid var(--line);border-radius:0}.home-workspace-grid .project-manager-list .project:last-child{border-bottom:0}.home-workspace-grid .grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:0}.home-workspace-grid .grid .project{min-height:150px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0}html[data-theme=terminal] .home-page .home-hero-workspace{background:var(--panel)}@media (max-width:980px){.home-page .home-hero-workspace{grid-template-columns:1fr}.home-hero-copy{padding:52px 40px}.home-page .home-quick-create{margin:0 40px 40px}.home-workspace-grid{grid-template-columns:1fr}}@media (max-width:620px){.home-page .home-hero-workspace{min-height:0;background-position:65%}.home-hero-copy{padding:44px 24px}.home-page .home-hero-copy h1{font-size:clamp(44px,15vw,58px)}.home-page .home-quick-create{margin:0 18px 18px;padding:22px}.home-page .home-upload-card{padding:20px}}.admin-shell{min-height:100vh;display:grid;grid-template-columns:196px minmax(0,1fr);background:#fff;color:#14213d}.admin-sidebar{border-right:1px solid #e2e7ef;display:flex;flex-direction:column;background:#fff}.admin-brand{display:flex;gap:10px;align-items:center;padding:20px 18px 24px;font-size:16px;letter-spacing:-.02em}.admin-brand small,.admin-brand strong{display:block}.admin-brand small{color:#667085;font-size:11px;margin-top:4px;font-weight:500}.admin-brand-mark{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:#10264d;color:#fff;font-size:18px;font-weight:800}.admin-nav{display:grid;gap:5px;padding:0 10px}.admin-nav button{border:0;background:transparent;color:#384860;display:flex;align-items:center;gap:11px;text-align:left;padding:10px 12px;border-radius:8px;font:600 13px/1.2 inherit;cursor:pointer}.admin-nav button:hover{background:#f4f7fb}.admin-nav button.active{color:#fff;background:#10264d;box-shadow:0 4px 10px rgba(16,38,77,.16)}.admin-sidebar-foot{margin-top:auto;border-top:1px solid #e2e7ef;padding:16px 18px;display:grid;gap:8px;font-size:12px}.admin-sidebar-foot a{color:#244d92;font-weight:700;text-decoration:none}.admin-sidebar-foot span{color:#8b95a7}.admin-main{min-width:0;background:#fff}.admin-topbar{min-height:90px;border-bottom:1px solid #e2e7ef;display:flex;justify-content:space-between;align-items:center;padding:20px 30px}.admin-topbar h1{margin:0;font-size:23px;letter-spacing:-.04em}.admin-topbar p{margin:7px 0 0;color:#667085;font-size:13px}.admin-account{display:flex;align-items:center;gap:9px}.admin-account small,.admin-account strong{display:block}.admin-account strong{font-size:13px}.admin-account small{color:#8b95a7;font-size:11px;margin-top:3px}.admin-avatar,.user-dot{width:31px;height:31px;border-radius:50%;display:inline-grid;place-items:center;background:#e9eef7;color:#10264d;font-weight:800;font-size:12px}.admin-content{padding:20px 30px 32px;display:grid;gap:16px}.admin-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.admin-kpi{min-width:0;border:1px solid #e2e7ef;border-radius:8px;padding:16px 14px;display:flex;gap:11px;align-items:flex-start;background:#fff}.admin-kpi-icon{width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;border-radius:50%;color:#19376c;background:#eff3f9}.admin-kpi.pending .admin-kpi-icon{color:#c76a12;background:#fff6e9}.admin-kpi>div{min-width:0}.admin-kpi small,.admin-kpi span{display:block;color:#667085;font-size:12px}.admin-kpi strong{display:block;color:#10264d;font-size:22px;letter-spacing:-.04em;margin:7px 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-kpi small{color:#139d93;font-size:11px}.admin-kpi.pending small{color:#c76a12}.admin-panel{border:1px solid #e2e7ef;border-radius:8px;background:#fff;min-width:0}.admin-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px 13px;border-bottom:1px solid #e2e7ef}.admin-panel-head h2,.admin-section-head h2{margin:0;font-size:15px;letter-spacing:-.02em}.admin-panel-head span,.admin-section-head p{color:#8b95a7;font-size:12px}.admin-panel-head select{border:1px solid #d8dee8;border-radius:6px;padding:7px 10px;color:#384860;background:#fff;font:12px inherit}.link-button{border:0;background:transparent;color:#2661b5;font:600 12px inherit;cursor:pointer}.chart-wrap{height:215px;padding:15px 16px 10px}.chart-wrap svg{width:100%;height:175px;overflow:visible}.chart-grid{fill:none;stroke:#edf0f4;stroke-width:.6;stroke-dasharray:1.5 1.5}.chart-line{fill:none;stroke:#159d96;stroke-width:1.8;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}.chart-labels{display:flex;justify-content:space-between;color:#9aa3b1;font-size:10px}.empty-state,.settings-placeholder{color:#8b95a7;font-size:13px;text-align:center;padding:50px 20px}.admin-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-table-wrap{overflow-x:auto}.admin-table-wrap table{width:100%;border-collapse:collapse;font-size:12px}.admin-table-wrap th{text-align:left;color:#697586;font-weight:600;background:#fbfcfe;white-space:nowrap}.admin-table-wrap td,.admin-table-wrap th{border-bottom:1px solid #edf0f4;padding:11px 14px;white-space:nowrap}.admin-table-wrap tr:last-child td{border-bottom:0}.admin-table-wrap td{color:#344054}.admin-table-wrap td strong,.table-sub{display:block}.table-sub{color:#8b95a7;font-size:11px;margin-top:3px}.table-empty{text-align:center;color:#9aa3b1!important;padding:28px!important}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:#667085!important}.user-dot{width:23px;height:23px;margin-right:7px;vertical-align:middle;font-size:11px;background:#e8f4f4;color:#128d88}.status{display:inline-block;border-radius:5px;padding:4px 7px;font-size:11px;color:#667085;background:#f2f4f7}.status.active,.status.paid,.status.unlimited{color:#087f78;background:#e8f7f4}.status.pending{color:#b96816;background:#fff4e5}.status.failed{color:#b42318;background:#fff0ee}.admin-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.admin-section-head p{margin:6px 0 0}.bulk-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid #e2e7ef;color:#667085;font-size:12px}.bulk-toolbar select,.inline-form input{border:1px solid #d8dee8;border-radius:5px;padding:7px 9px;background:#fff;color:#344054;font:12px inherit}.bulk-toolbar form,.inline-form{display:inline-flex;gap:7px;align-items:center}.bulk-toolbar .primary:disabled{opacity:.45;cursor:not-allowed}.provider-note{padding:0 2px}.inline-form input{width:78px}.button,.icon-button,.primary,.small-button{cursor:pointer}.admin-drawer .primary,.admin-section-head .primary{border:0;background:#10264d;color:#fff;border-radius:6px;padding:9px 13px;font:700 12px inherit}.button,.small-button{border:1px solid #d6dde8;background:#fff;border-radius:5px;color:#244d92;padding:6px 9px;font:600 11px inherit}.admin-kpis.compact{grid-template-columns:repeat(2,minmax(0,220px))}.admin-kpis.compact .admin-kpi{display:block}.admin-kpis.compact .admin-kpi strong{margin-bottom:0}.admin-kpis.usage-summary{grid-template-columns:repeat(6,minmax(0,1fr))}.pricing-fields{border:1px solid #e2e7ef;border-radius:8px;padding:12px}.pricing-fields legend{color:#19376c;font-size:13px;font-weight:700;padding:0 5px}.pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pricing-bulk-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:14px;border-bottom:1px solid #e2e7ef;background:#f8fafc}.pricing-bulk-toolbar label{display:grid;gap:5px;color:#667085;font-size:12px}.pricing-bulk-toolbar input{width:115px}.pricing-bulk-toolbar>span{margin-left:auto;color:#667085;font-size:12px}.price-summary{line-height:1.8;color:#667085;white-space:nowrap}.billing-usage-card{margin-top:16px;padding:22px;border:1px solid #dce5ef;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(25,55,108,.05)}.billing-usage-card .billing-section-head{margin:0}.billing-usage-card .billing-section-head>strong{color:#17366b;font-size:26px}.billing-progress{height:12px;margin-top:20px;overflow:hidden;border-radius:999px;background:#edf1f6}.billing-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2db3a7,#1f6fbd);transition:width .25s ease}.billing-progress-meta{display:flex;justify-content:space-between;gap:12px;margin-top:10px;color:#667085;font-size:12px}.unlimited-banner{display:flex;align-items:center;gap:12px;margin-top:18px;padding:16px 18px;border-radius:10px;color:#126e67;background:#e9faf7;font-weight:700}.unlimited-banner:first-letter{font-size:30px}.admin-toast{position:fixed;right:28px;top:22px;z-index:5;padding:10px 14px;color:#fff;background:#10264d;border-radius:6px;font-size:12px;box-shadow:0 10px 24px rgba(16,38,77,.18)}.admin-drawer-backdrop{position:fixed;inset:0;z-index:4;background:rgba(15,29,53,.22);display:flex;justify-content:flex-end}.admin-drawer{width:min(390px,100%);height:100%;overflow:auto;background:#fff;padding:22px;box-shadow:-12px 0 30px rgba(16,38,77,.15)}.admin-drawer .admin-panel-head{padding:0 0 16px;border-bottom:1px solid #e2e7ef}.admin-drawer .admin-panel-head span{display:block;margin-top:5px}.icon-button{border:0;background:transparent;color:#667085;font-size:25px}.drawer-balance{padding:18px 0;display:grid;gap:5px;color:#667085;font-size:12px}.drawer-balance strong{color:#10264d;font-size:28px;letter-spacing:-.04em}.admin-drawer label{display:grid;gap:6px;color:#344054;font-size:12px;font-weight:600}.admin-drawer input,.admin-drawer textarea{width:100%;border:1px solid #d8dee8;border-radius:6px;padding:9px;font:13px inherit;box-sizing:border-box}.admin-drawer hr{border:0;border-top:1px solid #e2e7ef;margin:22px 0}.admin-detail-drawer{width:min(560px,100%)}.detail-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0}.detail-summary>div{padding:12px;border:1px solid #e2e7ef;border-radius:7px;background:#fbfcfe}.detail-summary span,.detail-summary strong{display:block}.detail-section h4,.detail-summary span{color:#667085;font-size:11px}.detail-summary strong{color:#10264d;margin-top:5px;font-size:18px}.detail-section{padding:14px 0;border-top:1px solid #e2e7ef}.detail-section h3{margin:0 0 10px;color:#344054;font-size:13px}.detail-section h4{margin:15px 0 6px;font-weight:600}.detail-row,.storage-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf0f4;font-size:12px}.detail-row:last-child,.storage-line:last-child{border-bottom:0}.detail-row small,.detail-row strong{display:block}.detail-row small{color:#8b95a7;margin-top:3px;font-size:11px}.detail-row>span{color:#10264d;text-align:right}.storage-bar{margin:10px 0 14px}.storage-bar>div:first-child{display:flex;justify-content:space-between;color:#667085;font-size:11px}.storage-bar strong{color:#344054}.storage-track{height:7px;margin-top:6px;border-radius:99px;background:#edf0f4;overflow:hidden}.error-log-pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;padding:12px;border-radius:10px;background:#f7f8fa;color:#344054;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.admin-login-kicker{display:inline-flex;align-items:center;gap:7px;color:#159d96;font-size:13px;font-weight:700}.storage-track i{display:block;height:100%;border-radius:inherit;background:#159d96}.provider-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.provider-inline-row td{padding:0!important;white-space:normal;background:#f8fafc}.provider-inline-editor{padding:18px;border-block:1px solid #dce5ef}.provider-inline-editor .admin-panel-head{padding-bottom:14px;border-bottom:1px solid #e2e7ef}.provider-inline-editor .admin-panel-head span{display:block;margin-top:4px;color:#667085;font-size:12px}.provider-inline-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}.provider-inline-form label{display:grid;gap:6px;color:#344054;font-size:12px;font-weight:600}.provider-inline-form input{width:100%;box-sizing:border-box;border:1px solid #d8dee8;border-radius:6px;padding:9px;font:13px inherit}.provider-inline-form .pricing-fields{grid-column:1/-1}.provider-inline-form .primary{width:max-content;border:0;background:#10264d;color:#fff;border-radius:6px;padding:9px 13px;font:700 12px inherit}.provider-status-switch{display:inline-flex}.provider-status-switch label{display:inline-flex;cursor:pointer}.provider-status-switch input{position:absolute;opacity:0}.provider-status-switch span{width:34px;height:20px;border-radius:999px;background:#cbd5e1;transition:background .16s ease}.provider-status-switch span:after{content:"";display:block;width:16px;height:16px;margin:2px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.25);transition:transform .16s ease}.provider-status-switch input:checked+span{background:#159d96}.provider-status-switch input:checked+span:after{transform:translateX(14px)}.provider-status-switch input:focus-visible+span{outline:2px solid #244d92;outline-offset:2px}.danger-button{color:#b42318}.provider-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid #e2e7ef;color:#667085;font-size:12px}.provider-toolbar input{min-width:230px;border:1px solid #d8dee8;border-radius:5px;padding:8px 10px;font:12px inherit}.provider-toolbar form{display:inline-flex}.provider-toolbar button:disabled{opacity:.45;cursor:not-allowed}.confirm-backdrop{position:fixed;inset:0;z-index:8;display:grid;place-items:center;padding:20px;background:rgba(15,29,53,.3)}.confirm-dialog{width:min(420px,100%);padding:22px;border:1px solid #e2e7ef;border-radius:10px;background:#fff;box-shadow:0 18px 42px rgba(16,38,77,.2)}.confirm-dialog h2{margin:0;color:#10264d;font-size:17px}.confirm-dialog p{margin:10px 0 20px;color:#667085;font-size:13px;line-height:1.6}.confirm-actions{display:flex;justify-content:flex-end;gap:8px}.danger-primary{border:0;border-radius:6px;padding:9px 13px;background:#b42318;color:#fff;font:700 12px inherit;cursor:pointer}.checkbox-label{display:flex!important;grid-template-columns:none;align-items:center;gap:8px!important}.checkbox-label input{width:auto}.server-health{padding:18px}.server-health h3{margin:0 0 6px;font-size:14px}.server-health p{margin:0;color:#667085;font-size:12px}.server-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}.server-grid div{padding:12px;border:1px solid #e2e7ef;border-radius:7px}.server-grid span,.server-grid strong{display:block}.server-grid span{color:#667085;font-size:11px}.server-grid strong{margin-top:6px;color:#10264d;font-size:15px}.settings-placeholder h3{color:#344054;margin:12px 0 4px}.settings-placeholder p{margin:0}@media (max-width:1000px){.admin-kpis,.admin-kpis.usage-summary{grid-template-columns:repeat(3,1fr)}.admin-grid-two{grid-template-columns:1fr}}@media (max-width:680px){.admin-shell{display:block}.admin-sidebar{border-right:0;border-bottom:1px solid #e2e7ef}.admin-brand{padding:13px 16px}.admin-nav{display:flex;overflow-x:auto;padding:0 10px 10px}.admin-nav button{flex:0 0 auto}.admin-sidebar-foot{display:none}.admin-topbar{padding:18px 16px}.admin-topbar p{line-height:1.5}.admin-content{padding:16px}.admin-kpis,.admin-kpis.compact,.admin-kpis.usage-summary{grid-template-columns:repeat(2,1fr)}.pricing-grid,.provider-inline-form{grid-template-columns:1fr}.pricing-bulk-toolbar>span{margin-left:0;width:100%}.admin-kpi{padding:12px 10px}.admin-kpi-icon{display:none}.admin-kpi strong{font-size:18px}.billing-usage-card{padding:16px}.billing-progress-meta{flex-wrap:wrap}.server-grid{grid-template-columns:repeat(2,1fr)}.detail-summary{grid-template-columns:1fr}.admin-detail-drawer{padding:16px}}.billing-topbar{gap:24px}.billing-nav{display:flex;align-items:center;gap:5px;margin-right:auto}.billing-nav a{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;color:var(--muted);text-decoration:none;border-radius:6px;font-size:13px}.billing-nav a.active,.billing-nav a:hover{color:var(--brand);background:var(--panel)}.billing-page{max-width:1180px;gap:20px}.billing-heading,.billing-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.billing-heading h1{margin:0 0 6px;font-size:30px;letter-spacing:-.05em}.billing-heading p,.billing-section-head p{margin:0}.billing-heading .button{display:inline-flex;align-items:center;gap:6px}.billing-current{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:24px;padding:23px 24px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:var(--shadow)}.billing-current>div+div{border-left:1px solid var(--line);padding-left:24px}.billing-label{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}.billing-current h2{margin:0 0 8px;font-size:22px;letter-spacing:-.035em}.billing-current h2 .status{vertical-align:middle;margin-left:7px;font-size:11px;font-weight:600}.billing-number{display:block;color:var(--brand);font-size:25px;letter-spacing:-.045em;margin-bottom:3px}.billing-current small{display:block;font-size:11px}.billing-section{display:grid;gap:12px}.billing-section h2{margin:0;font-size:20px;letter-spacing:-.035em}.billing-plan-list,.billing-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px}.billing-plan-row{min-width:760px;display:grid;grid-template-columns:1.6fr 1fr 1fr .8fr 100px;align-items:center;gap:16px;padding:15px 18px;border-bottom:1px solid var(--line);font-size:13px}.billing-plan-row:last-child{border-bottom:0}.billing-plan-row.current{background:color-mix(in srgb,var(--brand) 4%,var(--panel))}.billing-plan-row small,.billing-plan-row strong{display:block}.billing-plan-row small{color:var(--muted);margin-top:5px;font-size:11px}.billing-plan-row .teal{color:var(--brand)}.plan-price{font-weight:700;color:var(--ink)}.plan-price small{display:inline}.billing-table-wrap table{width:100%;min-width:760px;border-collapse:collapse;font-size:12px}.billing-table-wrap td,.billing-table-wrap th{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);white-space:nowrap}.billing-table-wrap th{background:var(--panel);color:var(--muted);font-weight:600}.billing-table-wrap tr:last-child td{border-bottom:0}@media (max-width:720px){.billing-topbar{flex-wrap:wrap;gap:10px}.billing-nav{order:3;width:100%;overflow-x:auto;margin:0}.billing-page{padding-top:24px}.billing-heading{align-items:flex-start;flex-direction:column}.billing-current{grid-template-columns:1fr 1fr;gap:18px}.billing-current>div:first-child{grid-column:1/-1}.billing-current>div+div{border-left:0;padding-left:0}}.word-editor-tools{position:relative;z-index:20;container-type:inline-size;gap:4px;min-height:42px;padding:5px 8px;background:#fbfbfc}.word-editor-tools.word-tools-collapsed{min-height:0;height:0;padding:0;border-bottom-color:transparent;overflow:hidden}.word-editor-tools.word-tools-collapsed>*{display:none}.word-editor-tools .editor-tool-main{min-width:0;gap:6px;flex-wrap:nowrap}.word-editor-tools .edit-actions{display:inline-flex;align-items:center;gap:3px;padding:2px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2)}.word-editor-tools .edit-actions .icon,.word-editor-tools .editor-tool-main>.icon{width:30px;min-width:30px;height:30px;min-height:30px;justify-content:center;padding:0}.word-editor-tools .editor-tool-main>.word-format-toolbar{flex:1 1 auto;order:0;width:auto;max-width:none;min-height:30px;padding:0;overflow:visible}.word-editor-tools .word-format-toolbar{gap:5px;padding:0}.word-editor-tools .word-format-scroll{gap:5px;padding-right:5px;scrollbar-width:none}.word-editor-tools .word-format-scroll::-webkit-scrollbar{display:none}.word-editor-tools .word-format-toolbar select,.word-editor-tools .word-paragraph-menu>summary,.word-editor-tools button{min-height:28px;height:28px;border-radius:5px}.word-editor-tools .word-tool-divider{height:22px;margin-inline:4px}.word-editor-tools .word-image-action{width:30px;min-width:30px;justify-content:center;padding-inline:0}.word-editor-tools .word-style-select{width:96px}.word-editor-tools .word-paragraph-popover{z-index:60;width:min(320px,calc(100cqw - 16px))}.word-editor-tools .word-image-status{position:absolute;z-index:30;top:calc(100% + 6px);right:10px;max-width:min(320px,calc(100% - 20px));padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--panel);box-shadow:var(--shadow);color:var(--ink);font-size:11px;pointer-events:none}.word-editor-wrap{padding-right:0}.word-editor-code-wrap,.word-editor-wrap{background:#e8ebef}.word-editor .cm-editor{background:transparent;color:#202938;font-family:宋体,SimSun,Songti SC,serif}.word-editor .cm-scroller{padding:24px 16px 56px;background:#e8ebef;line-height:1.72}.word-editor .cm-gutters{display:none}html .word-editor-wrap .word-editor .cm-content{box-sizing:border-box;flex:0 0 auto;width:min(794px,calc(100% - 32px));min-width:480px;min-height:max(100%,1123px);margin:0 auto;padding:72px clamp(40px,9%,76px) 92px;background:#fff;color:#202938;box-shadow:0 5px 22px rgba(15,23,42,.14);caret-color:#172033;font-family:宋体,SimSun,Songti SC,serif;font-size:16px;line-height:1.72}.word-editor .cm-line{max-width:100%}.word-editor .cm-activeLine{background:transparent}.word-editor-initial-preview{display:none}.onlyoffice-editor-wrap{position:relative;flex:1 1;min-height:0;background:var(--panel-3);transition:background-color .18s ease,color .18s ease}.onlyoffice-editor-host{width:100%;height:100%;min-height:0}.onlyoffice-editor-wrap>iframe{display:block;width:100%;height:100%;border:0;border-radius:0}.onlyoffice-editor-state{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:color-mix(in srgb,var(--panel-3) 88%,transparent);color:var(--muted);font-size:13px;pointer-events:none}.onlyoffice-editor-state.is-error{color:#a33a33;pointer-events:auto}.onlyoffice-editor-status{position:absolute;right:12px;bottom:10px;z-index:2;padding:4px 8px;border:1px solid var(--line,#d9d9d9);border-radius:6px;background:color-mix(in srgb,var(--panel,#fff) 90%,transparent);color:var(--muted,#6b7280);font-size:12px;pointer-events:none}.word-editor .cm-content::selection,.word-editor .cm-line ::selection,.word-editor .cm-line::selection{background:#b9d5ff!important;color:#172033!important}.word-editor .word-image-widget{display:inline-block;width:auto;margin:10px 4px;padding:0;border:0;border-radius:0;background:transparent;outline:none;font-family:Inter,ui-sans-serif,system-ui,sans-serif;vertical-align:bottom}.word-editor .word-image-frame,.word-editor .word-image-widget{position:relative;box-sizing:border-box;max-width:100%}.word-editor .word-image-widget.center .word-image-frame{margin-inline:auto}.word-editor .word-image-widget.right .word-image-frame{margin-left:auto}.word-editor .word-image-widget.left .word-image-frame{margin-right:auto}.word-editor .word-image-frame img{display:block;width:100%;max-width:100%;height:auto;border:0;border-radius:0;object-fit:contain;-webkit-user-select:none;user-select:none}.word-editor .word-image-widget.is-selected .word-image-frame{outline:2px solid #2563eb;outline-offset:3px}.word-image-toolbar{position:absolute;z-index:8;top:9px;left:50%;display:flex;align-items:center;gap:2px;max-width:calc(100% - 18px);padding:4px;overflow-x:auto;border:1px solid #d6dae1;border-radius:6px;background:rgba(255,255,255,.97);box-shadow:0 5px 16px rgba(15,23,42,.16);opacity:0;pointer-events:none;transform:translate(-50%,-4px);transition:opacity .12s ease,transform .12s ease;white-space:nowrap}.word-image-toolbar[hidden]{display:none}.word-image-widget.is-selected .word-image-toolbar{opacity:1;pointer-events:auto;transform:translate(-50%)}.word-image-toolbar button{min-width:28px;min-height:28px;padding:4px 7px;border:0;border-radius:4px;background:transparent;color:#273244;font:600 11px/1 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}.word-image-toolbar button:hover,.word-image-toolbar button[aria-pressed=true]{background:#e8f0ff;color:#174ea6}.word-image-toolbar button.danger{color:#b42318}.word-image-toolbar button.danger:hover{background:#feeceb}.word-image-toolbar button:disabled{opacity:.45;cursor:default}.word-image-resize-handle{position:absolute;z-index:9;display:none;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:#2563eb;box-shadow:0 0 0 1px #2563eb}.word-image-widget.is-selected .word-image-resize-handle{display:block}.word-image-resize-handle{width:18px;min-width:18px;height:18px;min-height:18px;padding:0;appearance:none;touch-action:none}.word-image-resize-handle.nw{top:-10px;left:-10px;cursor:nwse-resize}.word-image-resize-handle.ne{top:-10px;right:-10px;cursor:nesw-resize}.word-image-resize-handle.sw{bottom:-10px;left:-10px;cursor:nesw-resize}.word-image-resize-handle.se{right:-10px;bottom:-10px;cursor:nwse-resize}.word-image-widget figcaption{display:none}@container (max-width: 650px){.word-editor-tools .word-toolbar-action{width:28px;padding-inline:0;justify-content:center}.word-editor-tools .word-toolbar-action span{display:none}.word-editor-tools .word-font-select{width:88px}.word-editor-tools .word-style-select{width:76px}.word-editor-tools .word-size-select{width:64px}}@media (max-width:620px){html .word-editor-wrap .word-editor .cm-content{min-width:420px;padding:52px 36px 72px}.word-editor .cm-scroller{padding-inline:10px}}.toolbar-overflow-row>.pdf-zoom.pdf-head-zoom{flex:0 0 auto;width:max-content;min-width:max-content;max-width:none}.toolbar-overflow-popover>.pdf-zoom.pdf-head-zoom{flex-wrap:wrap;width:auto;min-width:0;max-width:none;justify-content:flex-start}.word-editor-tools .toolbar-overflow-row .word-format-scroll,.word-editor-tools .toolbar-overflow-row>.editor-tool-main>.word-format-toolbar{flex:0 0 auto;width:max-content;min-width:max-content;max-width:none}.word-editor-tools .toolbar-overflow-row .word-format-scroll{overflow:visible}.word-editor-tools .toolbar-overflow-popover>.editor-tool-main{flex-wrap:wrap}.word-editor-tools .toolbar-overflow-popover>.editor-tool-main>.word-format-toolbar{flex:1 1 100%;flex-wrap:wrap;width:auto;min-width:0;max-width:none}.word-editor-tools .toolbar-overflow-popover .word-format-scroll{flex-wrap:wrap;width:auto;min-width:0;max-width:none;overflow:visible}.pdf-pane>.pane-head{grid-template-columns:minmax(0,1fr);grid-template-areas:"summary" "controls"}.pdf-head-summary-overflow{grid-area:summary}.pdf-head-summary{display:flex;align-items:center;gap:8px}.pdf-head-summary,.toolbar-overflow-row>.pdf-head-summary{flex:0 0 auto;width:max-content;min-width:max-content;max-width:none}.pdf-head-summary .pdf-head-main,.pdf-head-summary .pdf-head-status{min-width:max-content;flex:0 0 auto}.pdf-head-summary .pdf-head-main{grid-area:auto}.pdf-head-summary .pdf-head-status{grid-area:auto;justify-content:flex-start}.toolbar-overflow-popover>.pdf-head-summary{flex-wrap:wrap;width:auto;min-width:0;max-width:100%}.toolbar-overflow-popover .pdf-head-summary .pdf-head-status{flex-wrap:wrap}