:root{--ink:#17372f;--muted:#74827d;--line:#e4eae6;--green:#17735d;--pale:#edf5ef;--paper:#fafbf9;--white:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif;color:#263b34;background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);padding:10px 15px;border-radius:7px}button:hover{background:var(--pale)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #31a27c;outline-offset:3px}a{color:var(--green);text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:32px;font-weight:620;letter-spacing:-1px;margin-bottom:12px}h2{font-size:23px;margin-bottom:8px}h3{font-size:13px}.muted{color:var(--muted);font-size:13px;line-height:1.7}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#7b9387;margin-bottom:14px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#115e4d}.text-button{background:transparent;border:0;padding:7px;color:var(--muted);font-size:12px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:16px}.brand-mark{background:var(--green);color:white;width:32px;height:32px;display:grid;place-items:center;border-radius:7px;font-family:Georgia,serif;font-size:24px}.divider{height:18px;width:1px;background:var(--line);margin:0 6px}.topbar{height:72px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--line)}.top-actions{display:flex;gap:15px;align-items:center;font-size:12px}.layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 72px)}.sidebar{padding:35px 20px 24px;background:#f2f5f0;border-right:1px solid var(--line);display:flex;flex-direction:column}.sidebar>.eyebrow{padding-left:13px}nav{display:grid;gap:7px}nav button{border:0;background:transparent;text-align:left;display:flex;gap:13px;align-items:center;padding:13px;font-size:13px;color:#6b7e73}nav button.active{background:white;color:var(--green);box-shadow:0 1px 5px #16332608;font-weight:650}.badge{margin-left:auto;background:#e6eee8;font-size:10px;padding:2px 6px;border-radius:4px}.badge:empty{display:none}.sidebar-bottom{margin-top:auto;padding:80px 12px 0;font-size:12px}.sidebar-bottom p{font-size:11px;color:#819187;line-height:1.9;margin-top:10px}.sidebar-bottom button{padding-left:0}main{padding:46px 48px;max-width:1600px;width:100%;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:29px}.page-heading .muted{margin-bottom:0}.filters{display:flex;gap:9px;flex-wrap:wrap}.filters select{max-width:170px;font-size:12px}.search{display:flex;align-items:center;gap:9px;flex:1;min-width:190px;background:white;border:1px solid var(--line);border-radius:7px;padding-left:13px;font-size:22px;color:#8b9d90}.search input{border:0;min-width:0;outline-offset:-2px}input,textarea,select{padding:11px 12px;border:1px solid #dce5df;background:white;border-radius:6px;color:var(--ink);width:100%}select{width:auto}input::placeholder,textarea::placeholder{color:#a0aaa4}textarea{resize:vertical;min-height:120px}.tags{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:17px 0 28px}.tags button,.tag{font-size:11px;border:0;padding:5px 9px;background:#edf1ed;color:#6f8277;border-radius:4px}.tags button.active{color:white;background:var(--green)}.tags .muted{font-size:11px;margin-right:5px}.list-heading{display:flex;justify-content:space-between;font-size:11px;color:#8b9991;margin-bottom:12px}.document-list{display:grid;gap:11px}.document-card{background:white;border:1px solid var(--line);border-radius:9px;padding:23px;display:grid;grid-template-columns:43px minmax(0,1fr) auto;gap:16px;align-items:start}.format{background:#edf5ef;color:#49816c;width:41px;height:45px;border:1px solid #dbe8df;border-radius:5px;font-size:10px;font-weight:700;display:grid;place-items:center}.format.html{color:#8d7353;background:#f8f3eb;border-color:#eee3d3}.document-title{border:0;padding:0;font-size:16px;font-weight:600;background:transparent;text-align:left;line-height:1.6}.document-title:hover{background:transparent;color:var(--green);text-decoration:underline}.document-card p{font-size:12px;color:#849087;line-height:1.7;margin:6px 0 12px}.document-bottom{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px;color:#7b8d80}.document-bottom .author{color:#4e6958}.status{padding:4px 8px;border-radius:4px;font-size:10px;color:#798c7e;background:#f1f5f1;white-space:nowrap}.status.pending{color:#9b7b35;background:#fcf6e8}.status.approved{color:#268265;background:#eaf5ef}.empty{padding:70px 25px;text-align:center;border:1px dashed #d9e2da;border-radius:10px;color:var(--muted);line-height:1.9}.empty h2{color:var(--ink);font-size:20px}.row-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.row-actions button{font-size:12px;padding:7px 10px}dialog{border:1px solid var(--line);border-radius:12px;padding:24px;max-width:620px;width:calc(100% - 28px);max-height:92vh;box-shadow:0 24px 90px #17372f30}dialog::backdrop{background:#17372f77;backdrop-filter:blur(2px)}dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}dialog label{display:grid;gap:7px;font-size:12px;margin-bottom:15px}dialog select{width:100%}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid .wide{grid-column:1/-1}.reader{max-width:1400px;width:94vw;padding:0;height:92vh;overflow:hidden}.reader-head{padding:22px 28px;margin-bottom:0;border-bottom:1px solid var(--line);align-items:start}.reader-head p{margin-bottom:5px}.reader-grid{display:grid;grid-template-columns:minmax(0,1fr) 295px;height:calc(100% - 125px)}.article{min-height:0}.article iframe{border:0;width:100%;height:100%;background:white}.article-aside{padding:22px;background:#f6f8f5;border-left:1px solid var(--line);overflow:auto}.article-aside h3{margin-top:25px}.article-aside label{font-size:11px}.article-aside .primary{width:100%}.git-entry{font-size:11px;border-left:1px solid #d6e2d8;padding:0 0 14px 12px;line-height:1.8;overflow-wrap:anywhere}.git-entry strong{color:#426451}.git-entry code{font-size:10px;color:#88998d}.credential{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f6f1;padding:16px;font-size:12px;user-select:all}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(130deg,#eff5ee,#fafbf9)}.login[hidden]{display:none}.login-card{max-width:460px;width:calc(100% - 40px);background:white;padding:40px;border:1px solid var(--line);border-radius:15px}.login-card .brand-mark{margin-bottom:30px}.login-card h1{font-size:28px;line-height:1.5}.login-card label{display:grid;font-size:12px;gap:10px;margin:28px 0 16px}.login-card button{width:100%}#loginError{color:#b94b3e;font-size:12px;margin-top:15px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#17372f;color:white;box-shadow:0 8px 30px #17372f30;border-radius:7px;font-size:13px;z-index:100;max-width:90vw}#toast[hidden]{display:none}[hidden]{display:none!important}@media(min-width:1600px){main{padding:55px 70px}}@media(max-width:1050px){main{padding:32px 25px}.layout{grid-template-columns:190px 1fr}.sidebar{padding-left:10px;padding-right:10px}.reader-grid{grid-template-columns:1fr 255px}}@media(max-width:700px){.topbar{padding:0 17px;height:62px}.brand>.muted,.divider{display:none}.layout{display:block}.sidebar{padding:10px;border-right:0;border-bottom:1px solid var(--line)}.sidebar>.eyebrow,.sidebar-bottom{display:none}nav{display:flex;overflow:auto;gap:4px}nav button{white-space:nowrap;font-size:11px;padding:10px;gap:6px}main{padding:27px 18px}.page-heading{align-items:start}h1{font-size:26px}.page-heading button{font-size:11px}.document-card{padding:16px;gap:11px;grid-template-columns:35px 1fr}.format{width:33px;height:38px}.document-card>.status{grid-column:2;justify-self:start}.filters select{flex:1;max-width:none}.search{flex-basis:100%}.reader{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.reader-head{padding:15px}.reader-head h2{font-size:18px}.reader-grid{display:block;overflow:auto;height:calc(100% - 115px)}.article{height:65vh}.article-aside{border-left:0;border-top:1px solid var(--line)}.form-grid{display:block}}
.search input{font-size:13px}.toc{display:grid;gap:3px}.toc button{text-align:left;padding:5px 0;line-height:1.5}.article-aside a{font-size:12px;overflow-wrap:anywhere}
/* Nexus shared visual language: white global navigation, blue actions, slate workspaces. */
:root{--ink:#101828;--muted:#667085;--line:#e4e7ec;--green:#1769d2;--pale:#eaf2fd;--paper:#f7f8fa;color:#17283b;background:#f7f8fa}.topbar{position:sticky;top:0;z-index:8;height:62px;padding:0 22px;border-bottom:1px solid #dce4ec;box-shadow:0 4px 18px #071f390d;gap:22px}.brand{gap:9px;flex-shrink:0}.brand img{width:31px;height:31px;object-fit:contain;transform:scale(1.3)}.brand>span{display:grid;line-height:1.05}.brand strong{font-size:15px;font-weight:850;letter-spacing:0}.brand small{margin-top:4px;color:#718093;font-size:10px;font-weight:750}.global-nav{display:flex;align-items:center;justify-content:center;gap:3px;flex:1}.global-nav a{padding:10px;border-radius:6px;color:#435368;font-size:14px;font-weight:800;white-space:nowrap}.global-nav a:hover,.global-nav a[aria-current]{color:#0b63c7;background:#eaf2fd}.account{display:flex;align-items:center;gap:8px;max-width:210px;height:40px;padding:0 10px;border:1px solid #d4dee8;border-radius:7px;background:white;color:#26384c;font-size:13px;font-weight:850}.avatar,.account img{width:28px;height:28px;flex-shrink:0;border-radius:50%;object-fit:cover}.avatar{display:grid;place-items:center;background:#1677df;color:white;font-size:11px}.layout{min-height:calc(100vh - 62px)}.sidebar{background:white;border-right:1px solid #e4e7ec}.sidebar nav button{font-weight:750;color:#667085}.sidebar nav button.active{color:#1769d2;background:#eaf2fd;box-shadow:none}.sidebar-bottom{color:#344054}.sidebar-bottom p{color:#98a2b3}.eyebrow{color:#1769d2;font-weight:850;letter-spacing:.12em}main{padding:30px 34px}.page-heading{margin-bottom:22px}h1{font-size:30px;font-weight:850;letter-spacing:-.03em}.primary{background:#1769d2;border-color:#1769d2;font-weight:800}.primary:hover{background:#125bb8}.nexus-button{display:inline-block;padding:10px 14px;border-radius:7px;color:white;font-size:12px}.tags button,.tag{background:#eef2f6;color:#667085}.tags button.active{background:#1769d2;color:white}.format{background:#eaf2fd;border-color:#d8e6fa;color:#1769d2}.format.html{background:#fff5e6;border-color:#f4e4ca;color:#ad731d}.document-card{box-shadow:0 4px 16px #10182805;padding:20px;border-radius:8px}.document-title{font-weight:800;color:#17283b}.document-card p{color:#667085}.document-bottom{color:#98a2b3}.document-bottom .author{color:#435368}.status.approved{background:#ecfdf3;color:#16825d}.article-aside{background:#f7f8fa}.git-entry strong{color:#344054}.git-entry{border-color:#dce4ec}.login{background:#f5f8fb}.login-logo{width:48px;height:48px;object-fit:contain;margin-bottom:24px}.login-card{border-radius:8px}.wechat-button{background:#07b75b;color:white;border-color:#07b75b;font-weight:800;margin:12px 0 18px}.wechat-button:hover{background:#069c4e}.login-card details{margin-top:24px;font-size:12px;color:#98a2b3}.login-card .muted{margin-bottom:12px}@media(max-width:1000px){.global-nav a{font-size:12px;padding:9px 7px}.brand small{display:none}.topbar{gap:12px}.top-actions{gap:4px}.account{max-width:145px}main{padding:28px 24px}}@media(max-width:700px){.topbar{height:auto;min-height:62px;flex-wrap:wrap;padding:12px 15px}.global-nav{order:3;flex-basis:100%;justify-content:start;overflow:auto}.global-nav a{padding:8px 12px}.top-actions{margin-left:auto}.layout{min-height:calc(100vh - 112px)}main{padding:25px 18px}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{font-size:11px}.brand small{display:block}}
.share-poster{display:block;width:min(310px,100%);margin:0 auto 20px;border:1px solid #dce5ed;border-radius:7px;box-shadow:0 12px 36px #0a264114}.share-record{padding:15px 0;border-bottom:1px solid var(--line)}
.member-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#eaf2fd;color:#92afd0}.member-avatar img{width:100%;height:100%;object-fit:cover}.member-avatar svg{width:25px;height:25px}.author{display:inline-flex;align-items:center;gap:6px}.author-avatar{display:inline-grid;width:22px;height:22px;place-items:center;border-radius:50%;overflow:hidden;background:#eaf2fd;color:#92afd0}.author-avatar img{width:100%;height:100%;object-fit:cover}.author-avatar svg{width:15px;height:15px}.avatar svg{width:19px;height:19px}.nexus-button{white-space:nowrap;flex-shrink:0}.page-heading>#pageActions{flex-shrink:0}

.repo-guide{background:#fff;border:1px solid var(--line);border-radius:12px;padding:28px;text-align:left}.setup-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:24px 0}.setup-steps b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eaf2fd;color:#1769d2;margin-bottom:12px}.setup-steps h3{font-size:16px}.setup-steps p,.repo-guide details{font-size:14px;line-height:1.8;color:#667085}.repo-guide details{margin-top:24px}.repo-guide summary{cursor:pointer}.tag-choices{display:flex;flex-wrap:wrap;gap:8px;max-height:360px;overflow:auto;margin-top:20px}.ai-prompt{width:100%;min-height:360px}@media(max-width:750px){.setup-steps{grid-template-columns:1fr}.repo-guide{padding:20px}}

.repo-platforms{display:flex;gap:6px;margin:8px 0 12px}.repo-platform{display:inline-block;border-radius:5px;padding:3px 9px;font-size:12px;font-weight:700;background:#eef2f6;color:#475467}.repo-platform.github{background:#24292f;color:white}.repo-platform.cnb{background:#eaf2fd;color:#1769d2}

.repo-toolbar,.repo-breadcrumb{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.repo-breadcrumb{margin:12px 0;color:#667085}.folder-row{display:flex;width:100%;justify-content:space-between;padding:20px;text-align:left}.folder-row span{font-size:12px;color:#667085}.reader.focus-reading{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0}.reader.focus-reading .reader-grid{display:block;height:calc(100dvh - 110px);overflow:auto}.reader.focus-reading .article-aside{display:none}.reader.focus-reading .article{height:100%;padding:0}.reader.focus-reading iframe{height:100%;min-height:100%;width:100%;border:0}.reader-head{gap:12px}.reader-head>div{flex:1}.repo-platforms button{cursor:pointer}
/* Git workspace: source first, optional setup guide, clear access controls. */
.repository-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:20px}.repo-card{grid-template-columns:48px 1fr;align-items:start;margin:0}.repo-card h2{margin:0 0 10px}.repo-stats{padding:14px 0;border-top:1px solid #e7edf5}.repo-stats strong{font-size:24px;color:#163353}.repo-card .row-actions{gap:8px;flex-wrap:wrap}.repo-guide>summary{cursor:pointer;font-size:17px;padding:4px 0}.repo-guide{margin-bottom:18px!important;padding:22px!important}.target-options{max-height:240px;overflow:auto;border:1px solid #dce4ef;border-radius:10px;margin:12px 0;padding:8px}.target-options label,.lock-option{display:flex;align-items:center;gap:10px;padding:10px;cursor:pointer}.target-options input,.lock-option input{width:18px!important;min-height:18px!important;flex:none}.target-options label[hidden]{display:none}.permission-summary{background:#edf4ff;color:#295181;padding:16px;border-radius:10px;font-size:14px;line-height:1.7}.lock-option{border-top:1px solid #e5ebf3;margin-top:20px}#mountForm section>input{width:100%}@media(max-width:720px){.repository-grid{grid-template-columns:1fr}.repo-card{grid-template-columns:1fr}}
.member-row{display:grid;grid-template-columns:44px minmax(120px,1fr) 85px 85px auto;gap:18px;align-items:center;background:white;border:1px solid #e1e8f1;padding:18px;border-radius:12px;margin-bottom:10px}.member-row .member-avatar{width:44px;height:44px}.member-row p{font-size:13px;color:#718198;margin:6px 0 0}.member-row>span{font-size:13px;color:#617187}.member-search{width:100%;margin-bottom:16px;padding:14px;border:1px solid #dce4ef;border-radius:10px}@media(max-width:720px){.member-row{grid-template-columns:36px 1fr auto}.member-row>span{display:none}}
.company-labels{display:flex;flex-wrap:wrap;gap:6px}.company-label{display:inline-flex;align-items:center;padding:4px 9px;background:#eaf3ff;color:#1760b6;border:1px solid #d4e5fc;border-radius:6px;font-size:12px;line-height:1.4;white-space:nowrap}.member-row{grid-template-columns:44px minmax(120px,1fr) minmax(120px,190px) 85px auto}@media(max-width:720px){.member-row{grid-template-columns:36px 1fr auto}.member-row>.company-labels{display:flex;grid-column:2/-1}.member-row>button{grid-column:3;grid-row:1}}
@media(max-width:720px){.member-row>.member-avatar{display:inline-flex}}

.reader-access-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.reader-head .reader-access-actions{flex:0 1 auto}.document-viewer-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #edf0f5}.document-viewer-row small{display:block;color:#667085;margin-top:4px}@media(max-width:700px){.reader-head{flex-wrap:wrap}.reader-head>div{flex-basis:100%}.reader-access-actions{flex:1}.reader-access-actions button{padding:8px 10px;font-size:13px}.reader.focus-reading{display:flex;flex-direction:column}.reader.focus-reading .reader-grid{flex:1;min-height:0;height:auto}}

/* Match the Nexus document reader: author/actions left, viewer avatars right. */
.reader-dock{position:fixed;bottom:16px;left:16px;right:16px;z-index:5;display:flex;justify-content:space-between;align-items:flex-end;gap:12px;pointer-events:none}.reader-attribution,.reader-viewer-badge{pointer-events:auto;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.97);border:1px solid #d7e3ef;border-radius:10px;padding:10px 12px;box-shadow:0 5px 24px #14223512;font-size:12px;color:#30465e}.reader-attribution:empty{display:none}.reader-author-copy strong,.reader-viewer-badge strong{display:block;font-size:13px}.reader-author-copy small,.reader-viewer-badge small{display:block;color:#7a8c9f;font-size:11px;margin-top:3px}.reader-author-avatar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#eaf2ff;color:#1268d6;font-weight:700}.reader-attribution button,.reader-attribution a{font-size:12px;padding:8px 10px;white-space:nowrap}.reader-viewer-avatars{display:flex;padding-left:6px}.reader-viewer-avatars .author-avatar{width:32px;height:32px;margin-left:-6px;border:2px solid white}.reader-viewer-badge{cursor:pointer;text-align:left}.reader-viewer-badge[hidden]{display:none}.reader.focus-reading .reader-grid{height:calc(100dvh - 190px)}
@media(max-width:700px){.reader-dock{position:static;flex-wrap:wrap;padding:8px;gap:8px;background:#f5f8fc;flex-shrink:0}.reader-attribution{flex:1;flex-wrap:wrap;padding:8px;gap:6px}.reader-viewer-badge{padding:8px}.reader-author-copy{flex:1;min-width:140px}.reader.focus-reading .reader-grid{height:auto;flex:1;min-height:0}}

/* 完整全站导航允许换行，窄屏保留全部获准入口。 */
.topbar{height:auto;min-height:62px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
.topbar>.brand,.top-actions{flex-shrink:0}
.global-nav{flex-wrap:wrap;min-width:0}
.global-nav a[hidden]{display:none!important}
@media(max-width:1200px){.global-nav{order:3;flex-basis:100%;justify-content:flex-start}.top-actions{margin-left:auto}}
.refresh-status{font-size:12px;color:#667085;align-self:center}.repo-sync-notice{padding:12px 14px;background:#f4f8fe;border:1px solid #dbe7f5;border-radius:8px;color:#53657b;font-size:13px;line-height:1.7}button[data-refresh-list]:disabled{opacity:.6;cursor:wait}#pageActions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

#readerRestoreChrome{display:none}.reader.chrome-hidden{display:flex;flex-direction:column}.reader.chrome-hidden .reader-head,.reader.chrome-hidden .reader-dock{display:none}.reader.chrome-hidden .reader-grid{height:100dvh;flex:1;min-height:0;margin:0}.reader.chrome-hidden .article{padding:0}.reader.chrome-hidden #readerRestoreChrome{display:block;position:fixed;right:16px;top:12px;z-index:8;padding:8px 12px;border-radius:24px;background:rgba(255,255,255,.9);box-shadow:0 2px 12px #14223515;font-size:12px;opacity:.65}.reader.chrome-hidden #readerRestoreChrome:hover,.reader.chrome-hidden #readerRestoreChrome:focus-visible{opacity:1}.share-poster{display:block;max-width:100%;height:auto;margin:auto}
body.public-document .layout,body.public-document .global-nav,body.public-document #logout{display:none}

/* 成员 Git 使用独立全宽页面，仓库与原文仍复用既有服务。 */
.git-workspace .layout{grid-template-columns:minmax(0,1fr)}
.git-workspace .layout>.sidebar{display:none}
.git-workspace main{min-width:0}
.git-workspace .page-heading{flex-wrap:wrap}
.git-workspace #pageActions{display:flex;flex-wrap:wrap;gap:8px}

/* Shared document controls: main articles, standalone HTML and member repositories.
   Change this file once; do not add page-specific overrides for these controls. */

    .nexus-viewers,.nexus-viewers *{box-sizing:border-box}
    .nexus-viewers{position:fixed;inset:auto 18px 18px auto;z-index:80;display:flex;width:auto;height:auto;min-width:0;max-width:360px;min-height:48px;max-height:none;margin:0;padding:7px 10px;align-items:center;gap:10px;overflow:visible;border:1px solid #d8e2eb;border-radius:8px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(9,35,63,.13);color:#536579;font:700 12px Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;backdrop-filter:blur(14px)}
    .nexus-viewers[hidden]{display:none!important}
    .nexus-viewer-avatars{display:flex;flex:0 0 auto;align-items:center;padding-left:7px}
    .nexus-viewer-avatar{display:grid!important;place-items:center;flex:0 0 31px;width:31px!important;height:31px!important;max-width:31px!important;max-height:31px!important;margin-left:-7px;overflow:hidden;border:2px solid #fff;border-radius:50%;background:#1677df;color:#fff;font-size:9px;font-weight:900}
    .nexus-viewer-avatar img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important}
    .nexus-viewers>span:last-child{min-width:0}.nexus-viewers strong{display:block;color:#26384c;font-size:12px}.nexus-viewers small{display:block;color:#7a8999;font-size:10px;font-weight:650}
    @media(max-width:520px){body.nexus-has-viewers{padding-bottom:calc(64px + env(safe-area-inset-bottom))}.nexus-viewers{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));max-width:none;min-height:42px;padding:5px 9px;border-radius:8px}.nexus-viewer-avatars{padding-left:6px}.nexus-viewer-avatar{flex-basis:25px;width:25px!important;height:25px!important;max-width:25px!important;max-height:25px!important;margin-left:-6px}.nexus-viewers strong{font-size:11px}.nexus-viewers small{display:block;max-width:min(190px,55vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}}
  
.nexus-viewers{z-index:245!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;cursor:pointer;width:max-content!important}.nexus-viewers small{display:none!important}.nexus-viewers:focus-visible{outline:2px solid #1268d6;outline-offset:3px}#nexusReaderHistory{width:min(420px,calc(100vw - 32px));max-height:70dvh;overflow:auto;border:1px solid #d7e3ef;border-radius:14px;padding:20px;color:#142235;background:#fff}#nexusReaderHistory::backdrop{background:#14223550}#nexusReaderHistory header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}#nexusReaderHistory button{padding:8px 12px;border:1px solid #d7e3ef;border-radius:8px;background:#fff;cursor:pointer}.nexus-history-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f5}.nexus-history-row img{width:32px;height:32px;border-radius:50%;object-fit:cover}.nexus-history-row small{display:block;margin-top:4px;color:#6a7b8e}

      body.nexus-compact-reading .nexus-content-attribution,
      body.nexus-compact-reading .nexus-global-read-invite {display:none!important}
      #nexusReadingDot {position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:250;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #d4e2ef;border-radius:50%;background:#1268d6;color:#fff;font:700 14px sans-serif;cursor:pointer;box-shadow:0 3px 12px #14223520}
      body.nexus-compact-reading .nexus-viewers {right:68px;max-width:min(360px,calc(100vw - 82px))}
      body.nexus-compact-reading .nexus-viewers[hidden] {display:none}
      @media(max-width:520px){body.nexus-compact-reading .nexus-viewers{left:10px;right:68px;bottom:calc(10px + env(safe-area-inset-bottom))}}
    
body.nexus-compact-reading .nexus-content-attribution{position:static!important;inset:auto!important;display:flex!important;align-items:center;gap:8px;background:transparent!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important;max-width:100%!important;margin:6px 0 0;padding:0!important;overflow:hidden;grid-column:1/-1;flex-basis:100%}body.nexus-compact-reading .nexus-content-attribution small,body.nexus-compact-reading .nexus-content-attribution a,body.nexus-compact-reading .nexus-content-attribution button{display:none!important}body.nexus-compact-reading .nexus-content-attribution strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.nexus-compact-reading .nexus-content-attribution>span{min-width:0}body.nexus-compact-reading .nexus-content-attribution img,body.nexus-compact-reading .nexus-content-attribution-avatar{width:28px!important;height:28px!important;flex:0 0 28px;object-fit:cover;border-radius:50%}.nexus-author-toolbar{padding:8px 16px;background:#fff;border-bottom:1px solid #e1e8ef}
/* A single compact trigger replaces persistent attribution and viewer overlays. */
#readerInviteDot{position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:12;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #d4e2ef;border-radius:50%;background:#1268d6;color:#fff;font-size:14px;box-shadow:0 3px 12px #14223520;cursor:pointer}.reader #readerDock{display:none}.reader.focus-reading .reader-grid{height:calc(100dvh - 110px)}.reader.chrome-hidden .reader-grid{height:100dvh}.reader.chrome-hidden #readerInviteDot{display:none}@media(max-width:700px){.reader.focus-reading{display:flex;flex-direction:column}.reader.focus-reading .reader-grid{height:auto;flex:1;min-height:0}}

/* Reading history remains visible; the round button opens invitations directly. */
#readerInviteDot[hidden]{display:none}.reader #readerDock{display:flex;position:fixed;left:auto;right:68px;bottom:calc(14px + env(safe-area-inset-bottom));max-width:calc(100vw - 82px);padding:0;pointer-events:none}.reader #readerAccessActions{display:none}.reader #readerViewerBadge{pointer-events:auto;max-width:100%;min-width:0}.reader #readerViewerBadge[hidden]{display:none}.reader.chrome-hidden #readerDock{display:flex}.reader.chrome-hidden #readerInviteDot:not([hidden]){display:grid}@media(max-width:700px){.reader #readerDock{left:10px;right:68px;bottom:calc(10px + env(safe-area-inset-bottom))}.reader #readerViewerBadge{padding:6px 9px;gap:8px}.reader-viewer-badge small{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

.reader #readerViewerBadge{background:transparent;border:0;box-shadow:none;backdrop-filter:none;width:max-content}.reader #readerViewerBadge small{display:none}.reader #readerDock{width:max-content;background:transparent;border:0;box-shadow:none}

.reader #readerAccessActions{display:flex;position:fixed;left:14px;bottom:calc(14px + env(safe-area-inset-bottom));max-width:40vw;background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:4px;pointer-events:auto}.reader #readerAccessActions button,.reader #readerAccessActions a,.reader #readerAccessActions small{display:none}.reader #readerAccessActions strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader #readerAccessActions .reader-author-copy{min-width:0}.reader-author-avatar{width:28px;height:28px;object-fit:cover;border-radius:50%}@media(max-width:700px){.reader #readerAccessActions{left:10px;bottom:calc(58px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}}

/* Author identity belongs to the reader toolbar, never over the document. */
.reader .reader-head #readerAccessActions{position:static;inset:auto;display:flex;align-items:center;gap:8px;max-width:100%;width:auto;margin-top:8px;padding:0;background:transparent;border:0;box-shadow:none;flex-wrap:nowrap}
.reader #readerAccessActions .reader-author-avatar{display:flex;flex:0 0 28px;width:28px;height:28px;min-width:28px;overflow:hidden;border-radius:50%}
.reader #readerAccessActions .reader-author-avatar img,.reader #readerAccessActions .reader-author-avatar svg{display:block;width:28px;height:28px;max-width:28px;max-height:28px;object-fit:cover}
.reader #readerAccessActions .reader-author-avatar [hidden]{display:none}
.reader #readerAccessActions .reader-author-copy{min-width:0;overflow:hidden}.reader #readerAccessActions strong{font-size:12px;line-height:28px}.reader.chrome-hidden .reader-head{display:none}

/* Registered standalone pages also reuse the compact invitation trigger. */
body.nexus-standalone-html:not(.nexus-compact-reading) .nexus-global-read-invite{position:fixed!important;right:14px!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;width:42px!important;height:42px!important;padding:0!important;border-radius:50%!important;font-size:0!important;z-index:250!important}
body.nexus-standalone-html:not(.nexus-compact-reading) .nexus-global-read-invite::after{content:"邀"!important;font-size:14px!important}
body.nexus-standalone-html .nexus-viewers{right:68px!important;max-width:calc(100vw - 82px)!important}

/* Existing discussion component, shared by all reading surfaces. */
.nexus-doc-comment-trigger{position:fixed;right:18px;bottom:18px;z-index:93;min-width:92px;height:42px;padding:0 15px;border:1px solid rgba(255,255,255,.86);border-radius:7px;background:#17283b;color:#fff;font:800 13px Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;box-shadow:0 12px 30px rgba(7,32,58,.22);cursor:pointer}.nexus-doc-comment-trigger[hidden]{display:none}.nexus-has-viewers .nexus-doc-comment-trigger{bottom:82px}
.nexus-doc-comments{position:fixed;right:18px;bottom:72px;z-index:150;display:grid;grid-template-rows:auto minmax(120px,1fr) auto;width:min(410px,calc(100vw - 36px));max-height:min(620px,calc(100vh - 110px));overflow:hidden;border:1px solid #d7e1ea;border-radius:8px;background:#fff;box-shadow:0 28px 80px rgba(7,29,51,.25);color:#213449;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}.nexus-doc-comments[hidden]{display:none}.nexus-has-viewers .nexus-doc-comments{bottom:136px}.nexus-doc-comments-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 17px;border-bottom:1px solid #e3e9ef}.nexus-doc-comments-head div{min-width:0}.nexus-doc-comments-head strong{display:block;font-size:16px}.nexus-doc-comments-head small{display:block;margin-top:3px;overflow:hidden;color:#7a8998;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.nexus-doc-comments-close{width:32px;height:32px;border:1px solid #d7e0e8;border-radius:6px;background:#fff;color:#53667a;font-size:19px;cursor:pointer}.nexus-doc-comments-list{display:grid;align-content:start;gap:13px;overflow:auto;padding:15px 17px}.nexus-doc-comment{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;padding-bottom:13px;border-bottom:1px solid #edf1f4}.nexus-doc-comment img,.nexus-doc-comment-avatar{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:#e8f1fa;color:#1268d6;font-size:10px;font-weight:900;object-fit:cover}.nexus-doc-comment strong,.nexus-doc-comment time{display:block}.nexus-doc-comment strong{font-size:13px}.nexus-doc-comment time{margin-top:2px;color:#8a97a5;font-size:10px}.nexus-doc-comment p{margin:7px 0 0;color:#3d4f62;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.nexus-doc-comment-delete{align-self:start;border:0;background:none;color:#9a6970;font-size:11px;cursor:pointer}.nexus-doc-comments-empty{padding:30px 12px;color:#7c8997;font-size:13px;text-align:center}.nexus-doc-comments-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:13px;border-top:1px solid #e3e9ef;background:#f8fafc}.nexus-doc-comments-form textarea{min-height:68px;max-height:150px;padding:10px 11px;border:1px solid #ccd8e2;border-radius:6px;background:#fff;color:#24384c;font:inherit;font-size:13px;line-height:1.55;resize:vertical}.nexus-doc-comments-form button{align-self:stretch;min-width:76px;border:0;border-radius:6px;background:#0874df;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.nexus-doc-comments-status{grid-column:1/-1;margin:0;color:#8a5a24;font-size:11px}
.nexus-doc-comment-trigger,.nexus-has-viewers .nexus-doc-comment-trigger{bottom:calc(70px + env(safe-area-inset-bottom))!important;right:14px!important;z-index:251!important}
.nexus-doc-comments,.nexus-has-viewers .nexus-doc-comments{bottom:calc(122px + env(safe-area-inset-bottom))!important;z-index:252!important}
#readerComments .git-entry{padding:10px 0;border-bottom:1px solid #edf1f4}#readerComments .git-entry p{white-space:pre-wrap;overflow-wrap:anywhere}#readerComments form[hidden]{display:none}#readerComments textarea{box-sizing:border-box;width:100%}
@media(max-width:520px){.nexus-doc-comments,.nexus-has-viewers .nexus-doc-comments{inset:auto 10px calc(122px + env(safe-area-inset-bottom)) 10px!important;width:auto;max-height:65dvh}.nexus-doc-comments-form{grid-template-columns:1fr}.nexus-doc-comments-form button{min-height:40px}}
/* Discussion controls have explicit sizing and interaction states. */
.nexus-doc-comment-trigger:hover,.nexus-doc-comment-trigger:active,.nexus-doc-comment-trigger:focus{background:#17283b;color:#fff;border-color:rgba(255,255,255,.86)}
.nexus-doc-comments-close{display:grid;place-items:center;flex:0 0 32px;min-width:32px;min-height:32px;width:32px;height:32px;padding:0!important;line-height:1;font-size:20px}
.nexus-doc-comments-close:hover{background:#f3f6fa;color:#24384c}
.nexus-doc-comments-form{display:flex;flex-direction:column;gap:10px;align-items:stretch;padding:14px}
.nexus-doc-comments-form label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:12px;color:#64748b;min-width:0}
.nexus-doc-comments-form textarea{display:block;box-sizing:border-box;width:100%;min-height:88px;max-height:180px;margin:0;resize:vertical;border:1px solid #ccd8e2;border-radius:7px;padding:10px 12px;outline:none;box-shadow:none;font:400 14px/1.6 Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.nexus-doc-comments-form textarea:focus{border-color:#91b5df;outline:none;box-shadow:0 0 0 2px #1268d612}
.nexus-doc-comments-form button[type=submit],.nexus-doc-comments-form>button{align-self:flex-end;flex:none;min-width:88px;min-height:36px;height:36px;padding:0 14px;line-height:36px;font-size:13px;background:#1268d6;color:#fff}
.nexus-doc-comments-form button:hover{background:#1268d6;color:#fff}
.nexus-doc-comments-status:empty{display:none}

/* Markdown 统一阅读页复用共享控件：正文保留唯一标题，顶部仅占一行。 */
body.nexus-document-reader{background:#fff}
body.nexus-document-reader .shell{width:100%;max-width:none;padding:0 0 64px}
body.nexus-document-reader .content-head{position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:16px;min-height:56px;margin:0;padding:10px 24px;border-bottom:1px solid #e1e8ef;background:rgba(255,255,255,.97)}
body.nexus-document-reader .reader-heading{display:none}
body.nexus-document-reader .content-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:8px;width:auto;margin-left:auto;flex:0 0 auto}
body.nexus-document-reader .content-actions a,body.nexus-document-reader .reader-button{flex:none;min-height:34px;padding:0 11px;font-size:12px;font-weight:600}
body.nexus-document-reader #playMode{display:none}
body.nexus-document-reader .zoom-level{min-width:42px;font-size:12px}
body.nexus-document-reader.nexus-compact-reading .content-head .nexus-content-attribution{order:-1;flex:0 1 auto!important;flex-basis:auto!important;grid-column:auto;margin:0;max-width:40%!important;min-width:0}
body.nexus-document-reader .content-head .nexus-content-attribution strong{font-size:12px}
body.nexus-document-reader.reader-toolbar-hidden .content-head{display:none!important}
body.nexus-document-reader #restoreToolbar{position:fixed;top:12px;right:16px;z-index:210;border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 2px 12px #14223515}
body.nexus-document-reader #restoreToolbar[hidden]{display:none!important}
body.nexus-document-reader.reader-error .reader-heading{display:block}
body.nexus-document-reader.reader-error .content-head{position:static;flex-wrap:wrap}
@media(max-width:700px){body.nexus-document-reader .content-head{padding:8px 12px;gap:8px;min-height:52px;flex-wrap:wrap}body.nexus-document-reader .content-actions{gap:5px}body.nexus-document-reader .content-actions a{display:none}body.nexus-document-reader #focusMode{display:none}body.nexus-document-reader.nexus-compact-reading .content-head .nexus-content-attribution{max-width:45%!important}body.nexus-document-reader .reader-button{padding:0 8px}}
@media print{body.nexus-document-reader .content-head,body.nexus-document-reader #restoreToolbar{display:none!important}}

/* 成员 Git 阅读页：作者与操作占一行，文档信息移入来源侧栏。 */
.reader[open]{display:flex;flex-direction:column}
.reader .reader-head{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-height:56px;padding:10px 24px;flex-wrap:nowrap}
.reader .reader-head>.reader-identity{flex:1 1 auto;min-width:0}
.reader .reader-head #readerAccessActions{margin:0;max-width:100%}
.reader .reader-head>button{flex:0 0 auto;min-height:34px;padding:0 11px;font-size:12px;font-weight:600;white-space:nowrap}
.reader .reader-grid{flex:1 1 auto;min-height:0;height:auto!important}
.reader .reader-source-summary{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #e1e8ef;overflow-wrap:anywhere}
.reader .reader-source-summary h2{font-size:16px;line-height:1.5;margin-bottom:8px}
.reader .reader-source-summary .eyebrow{line-height:1.7;letter-spacing:0}
.reader .reader-source-summary p{margin-bottom:8px}
@media(max-width:520px){.reader .reader-head{padding:8px 12px;flex-wrap:wrap}.reader .reader-head>.reader-identity{flex-basis:100%}.reader .reader-head>button{padding:0 9px}}

.reader-viewers-expand{flex:none;white-space:nowrap;color:#1268d6;font-size:12px;padding:4px}
.document-viewer-row>div{min-width:0;overflow-wrap:anywhere}
