
:root{--bg:#fafbf8;--paper:#fff;--ink:#20372e;--muted:#78837b;--green:#356a51;--soft:#edf3e9;--line:#e2e8df;--lime:#d4e6b7;--danger:#a3473d;font-family:"Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.65;padding-bottom:90px}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0;background:none;color:inherit}a{color:var(--green);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #82a991;outline-offset:3px}button:disabled{opacity:.5;cursor:default}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600;letter-spacing:-.6px}h1{font-size:34px;line-height:1.4}h2{font-size:22px}h3{font-size:17px}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.muted{color:var(--muted)}.tiny{font-size:12px}.mono,code,pre{font-family:"Cascadia Code","Consolas",monospace}.row{display:flex;align-items:center;gap:12px}.spread{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:16px}.eyebrow{font-size:11px;letter-spacing:2.5px;color:var(--green);font-weight:600}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 15px;border:1px solid var(--line);border-radius:7px;background:white;white-space:nowrap;min-height:40px}.btn:hover{background:var(--soft)}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#285540}.quiet{border-color:transparent;background:transparent}.danger{color:var(--danger)}.tag{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:3px 9px;background:var(--soft);color:var(--green);border-radius:5px;white-space:nowrap}.tag.warn{background:#faf0dc;color:#976b2d}.dot{width:5px;height:5px;border-radius:50%;background:#779455;display:inline-block}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:19px;font-weight:700;letter-spacing:-.5px}.brand span{font-weight:400;color:#698172}.brand-mark{height:31px;width:31px;background:var(--green);color:#fff;display:grid;place-items:center;border-radius:8px}.brand-mark svg{height:19px;width:19px}.site-header{height:78px;border-bottom:1px solid var(--line);background:#fffffff5;display:flex;align-items:center;justify-content:space-between;padding:0 54px;gap:25px}.site-header nav{display:flex;align-items:center;gap:28px;margin-right:auto;margin-left:40px;color:var(--muted);font-size:13px}.site-header nav button{padding:10px 0}.site-header nav button.current{color:var(--ink);font-weight:600}.header-right{display:flex;gap:20px;align-items:center}.public-note{font-size:12px;color:var(--muted)}.search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:white;padding:11px 14px;border-radius:8px;color:var(--muted)}.search input{border:0;outline:0;background:none;min-width:0;flex:1;color:var(--ink);width:100%}.keycap{font-size:11px;border:1px solid var(--line);padding:0 5px;border-radius:3px;color:#90988d}.wrap{max-width:1300px;margin:0 auto;padding:0 54px}.hero{padding:62px 0 43px;display:flex;align-items:flex-end;justify-content:space-between;gap:55px;border-bottom:1px solid var(--line)}.hero h1{font-size:43px;letter-spacing:-1.8px;margin:13px 0 15px}.hero p{color:var(--muted);font-size:14px;max-width:540px;line-height:1.9}.hero-search{min-width:345px;padding-bottom:4px}.hero-search .search{padding:16px;background:white}.hero-search p{font-size:11px;margin-top:10px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:33px 0 20px}.section-title h2{font-size:20px}.section-title .count{color:#94a08d;font-size:13px;margin-left:10px;font-weight:400}.filters{display:flex;gap:5px}.filters button{font-size:12px;padding:6px 12px;border-radius:6px;color:var(--muted)}.filters button.active{background:var(--soft);color:var(--green)}.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:38px}.projects-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.project-card{background:white;border:1px solid var(--line);border-radius:11px;padding:23px;display:flex;flex-direction:column;gap:17px;text-align:left;min-height:230px}.project-card:hover{border-color:#a9baa0;box-shadow:0 6px 20px #233b2c06}.project-symbol{width:39px;height:39px;border:1px solid #dfe9d9;background:#f1f5eb;display:grid;place-items:center;border-radius:9px;color:var(--green);font:15px Consolas,monospace}.project-card p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:7px;min-height:46px}.project-card footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:15px;border-top:1px solid #edf0e9;color:var(--muted);font-size:11px}.popular{padding-top:35px}.popular h2{font-size:17px}.popular-head{margin-bottom:9px}.rank{display:flex;gap:13px;width:100%;padding:20px 0;border-bottom:1px solid var(--line);text-align:left}.rank-num{font:13px Consolas,monospace;color:#a5ad9e;padding-top:2px}.rank-title{font-size:13px;font-weight:550}.rank-sub{font-size:11px;color:var(--muted);margin-top:5px}.rank svg{margin-left:auto;width:15px;color:#8b9982}.reading-note{border-radius:9px;padding:20px;background:#edf2e8;margin-top:26px}.reading-note p{font-size:12px;color:#718269;margin-top:9px;line-height:1.9}.site-footer{margin-top:45px;padding:24px 0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:11px;color:#8e998a}.recent-line{margin-top:27px;padding:17px 0;border-top:1px dashed var(--line);font-size:12px;color:var(--muted)}.crumb{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.crumb svg{width:12px}.crumb b{font-weight:500;color:var(--ink)}
.reader-layout{display:grid;grid-template-columns:242px minmax(0,1fr) 200px;max-width:1440px;margin:auto;min-height:calc(100vh - 78px)}.reader-nav{padding:30px 20px 35px 29px;border-right:1px solid var(--line);background:#f7f9f4;position:sticky;top:0;align-self:start;min-height:850px}.project-picker{width:100%;border:1px solid var(--line);border-radius:8px;background:white;padding:11px;margin-bottom:24px;font-size:13px}.reader-nav .search{font-size:11px;padding:9px;margin-bottom:25px}.nav-caption{font-size:10px;font-weight:600;letter-spacing:1.4px;color:#99a18f;margin:24px 12px 10px}.tree button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;font-size:12px;min-height:37px;padding:8px 12px;border-radius:5px;color:#6e7c6e}.tree .sub{padding-left:30px}.tree button.selected{background:#e5eddc;color:#356444;font-weight:600}.tree button:hover{background:#eaf0e4}.tree svg{width:14px;height:14px}.tree details summary{list-style:none;cursor:pointer;display:flex;gap:9px;padding:8px 12px;font-size:12px;color:#5b6f5d}.tree summary::-webkit-details-marker{display:none}.nav-bottom{margin:35px 10px 0;border-top:1px solid var(--line);padding-top:17px;font-size:11px;color:var(--muted)}.article{padding:31px 48px 40px;min-width:0;max-width:870px;margin:auto;width:100%}.article .crumb{margin-bottom:34px}.article h1{font-size:36px;margin:13px 0 10px}.article .lead{font-size:15px;color:#7a8678;line-height:1.9}.article-meta{display:flex;align-items:center;justify-content:space-between;margin:19px 0 29px;padding-bottom:24px;border-bottom:1px solid var(--line);font-size:11px;color:#8c9686;gap:12px}.article-meta button{font-size:11px;padding:6px 10px;min-height:30px}.article h2{font-size:23px;margin:31px 0 12px;scroll-margin-top:20px}.article h3{font-size:17px;margin:24px 0 10px}.article p,.article li{font-size:14px;line-height:1.95;color:#536555}.article p+p{margin-top:10px}.article ul{padding-left:21px}.callout{background:#f0f5e9;border:1px solid #dbe7d1;border-radius:8px;padding:16px 18px;display:flex;gap:11px;align-items:flex-start;margin:25px 0}.callout svg{margin-top:4px;color:var(--green)}.callout p{font-size:12px;color:#5b7450}.callout b{display:block;margin-bottom:3px;font-size:12px;color:#3f633c}.codebox{background:#1c3028;border-radius:9px;color:#d5e2cc;margin:18px 0;overflow:hidden}.code-head{display:flex;justify-content:space-between;align-items:center;padding:9px 16px;border-bottom:1px solid #35483b;font:11px Consolas,monospace;color:#a0b297}.code-head button{color:#a8bda0;font-size:11px;display:flex;gap:6px;align-items:center}.code-head svg{width:13px;height:13px}pre{font-size:12px;line-height:1.9;padding:18px;margin:0;overflow-x:auto;tab-size:2}.article code:not(pre code){background:#ecf0e8;color:#486241;padding:2px 5px;font-size:12px;border-radius:3px}.doc-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:15px;text-align:left}.doc-table td,.doc-table th{border-bottom:1px solid var(--line);padding:11px 13px}.doc-table th{background:#f3f6ef;font-weight:500;color:#65745e}.doc-table td{color:#6f7d68}.prev-next{display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid var(--line);padding-top:28px;margin-top:35px}.next-card{border:1px solid var(--line);border-radius:9px;padding:15px 18px;text-align:left;display:flex;flex-direction:column;gap:6px;font-size:13px;background:white}.next-card small{font-size:10px;color:var(--muted)}.next-card:last-child{text-align:right}.related{margin-top:25px;font-size:12px}.related-links{display:flex;flex-wrap:wrap;gap:18px;margin-top:9px}.toc{padding:75px 25px 20px 8px;align-self:start;position:sticky;top:0;font-size:11px}.toc strong{display:block;font-weight:500;margin-bottom:13px}.toc button{display:block;font-size:11px;color:#8d9886;border-left:1px solid var(--line);text-align:left;padding:8px 12px;width:100%}.toc button.active{color:var(--green);border-left:2px solid var(--green)}.toc .sub{padding-left:22px}.toc-note{border-top:1px solid var(--line);margin-top:26px;padding-top:17px;color:#9aa38f;font-size:10px;line-height:1.9}.mobile-reader-bar,.mobile-toc{display:none}
.manage{max-width:1320px;padding:33px 54px 30px;margin:auto}.manage-heading{display:flex;justify-content:space-between;align-items:center;margin:28px 0}.manage-heading h1{font-size:29px}.manage-heading p{font-size:12px;color:var(--muted);margin-top:6px}.admin-badge{font-size:11px;display:flex;align-items:center;gap:8px;color:var(--green)}.avatar{width:28px;height:28px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-weight:600}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:26px;padding:21px 0}.summary-strip>div{padding:0 26px;border-right:1px solid var(--line)}.summary-strip>div:last-child{border:0}.summary-strip small{font-size:11px;color:var(--muted)}.summary-strip b{display:block;font-size:25px;font-weight:500;margin-top:5px}.summary-strip b span{font-size:11px;color:var(--muted);font-weight:400;margin-left:8px}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-head{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.panel-head h2{font-size:16px}.panel-head .search{padding:7px 11px;width:240px;font-size:12px}.table-scroll{overflow:auto}.manage-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}.manage-table th{font-weight:400;color:var(--muted);background:#fbfcf9;padding:12px 22px;border-bottom:1px solid var(--line);font-size:11px}.manage-table td{padding:19px 22px;border-bottom:1px solid #edf0e9}.manage-table tr:last-child td{border:0}.manage-table strong{font-size:13px;font-weight:500}.manage-table .slug{font-size:10px;color:#929d8c;margin-top:4px}.manage-table .project-symbol{width:33px;height:33px;font-size:12px}.link-btn{color:var(--green);font-size:12px}.manage-foot{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;margin-top:18px}.workspace{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:495px}.structure-tree{padding:20px 15px;border-right:1px solid var(--line);background:#f9fbf6}.structure-tree .tree button{font-size:11px}.file-toolbar{padding:15px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.file-toolbar .btn{font-size:11px;min-height:32px;padding:6px 11px}.file-item-name{display:flex;align-items:center;gap:9px}.file-item-name svg{color:#899c7c;width:16px}.file-actions{display:flex;gap:8px}.file-actions button{color:#809274;padding:4px}.file-actions svg{width:15px}.workspace-note{font-size:11px;color:var(--muted);padding:16px 22px;border-top:1px solid var(--line)}
dialog{border:1px solid var(--line);border-radius:14px;padding:0;background:var(--paper);color:var(--ink);width:calc(100% - 32px);max-width:680px;box-shadow:0 30px 100px #152e2833}dialog::backdrop{background:#20372e66;backdrop-filter:blur(3px)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:23px 27px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:21px}.modal-header p{font-size:11px;color:var(--muted);margin-top:5px}.modal-body{padding:24px 27px;max-height:65vh;overflow:auto}.modal-footer{padding:18px 27px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;align-items:center;background:#fafcf7}.modal-footer .tiny{color:var(--muted)}.upload-zone{border:1px dashed #a4b497;background:#f7faf2;border-radius:10px;padding:25px;text-align:center}.upload-zone>svg{width:28px;height:28px;color:var(--green);margin-bottom:8px}.upload-zone h3{font-size:14px}.upload-zone p{font-size:11px;color:var(--muted);margin:6px 0 14px}.upload-list{margin-top:21px}.upload-line{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.upload-line .filedesc{flex:1;min-width:0;overflow-wrap:anywhere}.upload-line small{display:block;font-size:10px;color:var(--muted)}.upload-line select{border:1px solid var(--line);background:white;color:#7c6445;border-radius:5px;font-size:11px;padding:5px;max-width:115px}.warning{background:#fcf5e8;border:1px solid #eee1c9;padding:12px;border-radius:7px;font-size:11px;color:#8a734b;margin-top:17px}.form-field{margin-bottom:18px}.form-field label{display:block;font-size:12px;margin-bottom:7px}.form-field input,.form-field select{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink)}.form-field p{font-size:11px;color:var(--muted);margin-top:6px}.raw-preview{white-space:pre-wrap;background:#f4f7ef;color:#526447;border:1px solid var(--line);border-radius:7px;line-height:1.9;font-size:12px;max-height:370px}.empty{padding:40px;text-align:center;color:var(--muted);grid-column:1/-1}.preview-dock{position:fixed;z-index:30;bottom:16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;background:#20372ef5;color:#bed0bc;padding:7px;border-radius:12px;box-shadow:0 8px 28px #22392830;max-width:calc(100% - 24px);overflow-x:auto;white-space:nowrap}.preview-dock span{font-size:10px;padding:0 11px;color:#aec09f;letter-spacing:.5px}.preview-dock button{padding:8px 13px;color:#c4d3bd;font-size:11px;border-radius:7px}.preview-dock button.active{background:#d6e8bd;color:#284432}.preview-dock button:hover{background:#3d5441;color:white}.preview-dock i{width:1px;height:20px;background:#516448;flex-shrink:0}.toast{position:fixed;z-index:60;left:50%;bottom:86px;transform:translateX(-50%);background:#20372e;color:white;padding:12px 20px;border-radius:8px;font-size:12px;box-shadow:0 4px 20px #243a2433;max-width:90vw}.toast:empty{display:none}.prototype-label{display:none}.mobile-mode{background:#e8ece5}.mobile-mode #canvas{width:390px;max-width:100%;margin:28px auto;background:var(--bg);border:1px solid #d3ddcd;border-radius:22px;overflow:hidden;box-shadow:0 15px 50px #23392818}.mobile-mode .site-header{padding:0 20px;height:65px}.mobile-mode .site-header nav,.mobile-mode .public-note,.mobile-mode .header-right>.btn{display:none}.mobile-mode .reader-layout{display:block}.mobile-mode .reader-nav,.mobile-mode .toc{display:none}.mobile-mode .article{padding:24px}.mobile-mode .article h1{font-size:29px}.mobile-mode .article .crumb{font-size:10px;margin-bottom:23px}.mobile-mode .article .lead{font-size:13px}.mobile-mode .article h2{font-size:21px}.mobile-mode .article p,.mobile-mode .article li{font-size:13px}.mobile-mode .mobile-reader-bar{display:flex}.mobile-mode .mobile-toc{display:block}.mobile-reader-bar{justify-content:space-between;padding:11px 21px;border-bottom:1px solid var(--line);background:#f3f7ec;font-size:11px}.mobile-reader-bar button{display:flex;align-items:center;gap:7px;font-size:11px}.mobile-toc{margin:20px 0;padding:11px 14px;background:#f1f5ec;border-radius:7px;font-size:12px}.mobile-toc summary{cursor:pointer}.mobile-toc button{display:block;padding:7px 0;color:var(--green)}.mobile-mode .prev-next{gap:9px}.mobile-mode .next-card{padding:12px;font-size:11px}.mobile-mode .article-meta{flex-wrap:wrap}.mobile-mode pre{font-size:11px}.mobile-mode .doc-table{font-size:10px}.mobile-mode .doc-table td,.mobile-mode .doc-table th{padding:9px}.mobile-mode .article .site-footer{font-size:9px;gap:15px}.mobile-mode .brand{font-size:17px}
@media(max-width:1000px){.site-header{padding:0 25px}.site-header nav{margin-left:10px;gap:17px}.wrap{padding:0 28px}.hero{gap:25px}.hero h1{font-size:34px}.hero-search{min-width:270px}.home-grid{grid-template-columns:minmax(0,1fr) 235px;gap:25px}.reader-layout{grid-template-columns:215px minmax(0,1fr)}.toc{display:none}.article{padding:28px 33px}.manage{padding:28px}.header-right{gap:10px}}
@media(max-width:700px){body{font-size:13px}.site-header{height:64px;padding:0 20px}.site-header nav{display:none}.public-note{display:none}.header-right .btn{min-height:32px;padding:6px 10px;font-size:11px}.brand{font-size:17px}.wrap{padding:0 22px}.hero{display:block;padding:35px 0 25px}.hero h1{font-size:31px;letter-spacing:-1px}.hero p{font-size:12px}.hero-search{margin-top:25px}.home-grid{display:block}.projects-grid{gap:12px;grid-template-columns:1fr}.project-card{min-height:200px;padding:20px}.popular{padding-top:30px}.filters button{padding:6px 9px;font-size:11px}.section-title h2{font-size:18px}.reader-layout{display:block}.reader-nav,.toc{display:none}.article{padding:23px}.article h1{font-size:30px}.mobile-reader-bar{display:flex}.mobile-toc{display:block}.article .crumb{font-size:10px;margin-bottom:24px}.article .lead{font-size:13px}.article-meta{flex-wrap:wrap}.article p,.article li{font-size:13px}.article h2{font-size:22px}.prev-next{gap:10px}.next-card{padding:12px;font-size:11px}.manage{padding:24px 20px}.manage-heading{align-items:flex-start;gap:15px}.manage-heading h1{font-size:25px}.manage-heading .row{flex-wrap:wrap;justify-content:flex-end}.manage-heading .btn{font-size:11px;padding:8px 10px}.summary-strip>div{padding:0 14px}.summary-strip b{font-size:22px}.summary-strip b span{display:none}.workspace{grid-template-columns:1fr}.structure-tree{display:none}.panel-head .search{width:180px}.panel-head{padding:15px}.manage-foot{gap:10px;font-size:10px}.modal-body{padding:20px}.modal-footer{padding:16px 20px;flex-wrap:wrap}.modal-footer .tiny{font-size:10px}.modal-header{padding:20px}.preview-dock{bottom:10px}.preview-dock span{display:none}.preview-dock button{padding:8px 10px;font-size:10px}.site-footer{gap:15px;font-size:10px}.mobile-mode #canvas{margin:12px auto}.file-toolbar{padding:14px}.file-toolbar .row{gap:4px}}
@media(prefers-reduced-motion:no-preference){.btn,.project-card{transition:background .15s,border-color .15s,box-shadow .15s}}
.brand .brand-mark{color:#fff}.heading-link{font-size:16px;color:#8aa07d;margin-left:9px;opacity:0}.article h2:hover .heading-link,.heading-link:focus-visible{opacity:1}@media(hover:none){.heading-link{opacity:1}}

.article img{max-width:100%;height:auto}.article pre{white-space:pre;overflow:auto}.article pre code{font-size:12px}.article>h1:not(:first-child){font-size:28px}.sidebar-tree a{display:block;padding:7px 10px;font-size:12px;border-radius:5px}.sidebar-tree a.selected{background:var(--soft);font-weight:600}.sidebar-tree details{margin-left:10px}.sidebar-tree summary{font-size:12px;cursor:pointer;padding:7px 0;color:var(--muted)}.sidebar-tree{overflow-wrap:anywhere}.git-panel{padding:22px;border-bottom:1px solid var(--line);background:#f5f8f0}.git-panel p{font-size:12px;color:var(--muted);margin-top:8px}.article ul,.article ol{padding-left:22px}.article blockquote{border-left:3px solid var(--green);margin-left:0;padding-left:18px;color:var(--muted)}.article table{display:block;overflow-x:auto;border-collapse:collapse;width:100%}.article td,.article th{padding:10px;border:1px solid var(--line)}.mobile-reader-bar a{font-size:11px}.error-box{margin:24px;padding:18px;border:1px solid #eed7d2;background:#fff6f2;border-radius:8px;color:var(--danger)}textarea{font:inherit;width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;min-height:90px}.form-error{color:var(--danger);margin:12px 0;font-size:12px}body{padding-bottom:0}.toast{bottom:24px}

.toc-link{display:block;padding:8px 12px;border-left:1px solid var(--line);font-size:12px;color:var(--muted)}.toc-link:hover{color:var(--green);border-color:var(--green)}.mobile-toc .toc-link{border:0;padding:8px 0}.file-actions{flex-wrap:wrap}.git-panel strong{overflow-wrap:anywhere}.file-toolbar{gap:12px}

/* Document index: titles and paths remain left aligned at every width. */
.doc-index-list{margin-top:18px}.doc-search{margin-top:16px}.doc-index-item{display:flex;align-items:flex-start;gap:14px;padding:19px 0;border-bottom:1px solid var(--line);width:100%;color:var(--ink)}.doc-item-icon{padding-top:3px;color:#819277;flex-shrink:0}.doc-item-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.doc-item-content strong{font-size:14px;font-weight:500;line-height:1.7}.doc-item-path{font:11px/1.6 Consolas,monospace;color:var(--muted);overflow-wrap:anywhere}.doc-item-meta{font-size:10px;color:#8c9787}.doc-item-arrow{padding-top:3px;color:#9aa88f}.project-index-meta{font-size:12px;color:var(--muted);margin:13px 0 24px}.project-index .section-title{margin-top:25px}.project-index .lead{margin-top:9px}.project-index h1{overflow-wrap:anywhere}
/* Explorer details and a consistent action rail. */
.btn.small{min-height:32px;padding:6px 10px;font-size:12px}.explorer-main{min-width:0;transition:background .15s}.file-breadcrumb{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}.file-breadcrumb button{display:flex;align-items:center;gap:6px;font-size:12px;padding:5px 0;color:var(--green)}.explorer-controls{display:flex;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line)}.explorer-controls .search{flex:1;min-width:100px;padding:8px 12px;font-size:12px}.explorer-controls select{padding:7px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--muted);font-size:12px;max-width:130px}.drop-hint{padding:9px 20px;background:#f8faf4;color:#909d84;font-size:11px}.explorer-table th,.explorer-table td{padding:15px 14px}.explorer-table td{vertical-align:middle}.explorer-table th:last-child{text-align:right}.explorer-table .file-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:6px;white-space:nowrap}.explorer-table .file-actions .btn{min-width:48px}.explorer-table .file-actions [data-action=file-more]{min-width:32px;font-weight:700}.explorer-table .file-name{display:flex;gap:11px;align-items:center;min-width:0}.file-name>svg{color:#839875;flex-shrink:0}.file-name>div{min-width:0}.file-name .slug{white-space:normal;overflow-wrap:anywhere;max-width:340px}.file-name strong{white-space:normal;overflow-wrap:anywhere;line-height:1.6}.file-mobile-meta{display:none}.row-actions{width:180px}.file-detail{font-size:11px;color:var(--muted)}.file-name button{padding:0;text-align:left;color:var(--green)}.action-list{display:flex;flex-direction:column;gap:8px}.action-list .btn{justify-content:flex-start;min-height:44px}.is-dragover{outline:2px solid #6b9b58;outline-offset:-3px;background:#eef6e3!important}.upload-zone.is-dragover{border-style:solid}.upload-line .btn{flex-shrink:0}.upload-line .filedesc{font-size:12px}.upload-summary{font-size:12px;color:var(--muted);margin-top:17px}.upload-progress{margin:20px 0}.upload-progress progress{width:100%;height:8px;accent-color:var(--green)}.upload-progress p{font-size:12px;color:var(--muted);margin-top:7px}.hidden{display:none!important}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.replacement-info{padding:14px;margin-top:16px;background:var(--soft);font-size:12px;border-radius:8px;overflow-wrap:anywhere}.version-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.version-row p,.version-row small{font-size:11px;color:var(--muted);margin-top:4px}.version-content{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8f0;border-radius:8px;padding:18px;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
/* A focused editor with split preview on desktop and explicit tabs on phones. */
dialog.editor-dialog{max-width:1180px;width:calc(100% - 32px);height:min(90dvh,920px);overflow:hidden}.editor-dialog .modal-header{padding:16px 22px}.editor-dialog .modal-body{padding:0;max-height:none;height:calc(100% - 89px)}#editor-form{display:flex;flex-direction:column;height:100%;min-height:0}.editor-top{display:flex;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.editor-path{flex:1;min-width:190px;font-size:11px;color:var(--muted)}.editor-path input{display:block;width:100%;padding:7px;border:1px solid var(--line);border-radius:5px;font:12px Consolas,monospace;margin-top:4px;color:var(--ink)}#editor-state{font-size:11px;color:var(--green)}.editor-buttons{display:flex;gap:7px}.editor-buttons .btn{font-size:12px;min-height:34px;padding:7px 10px}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 20px;background:#f8faf4;border-bottom:1px solid var(--line)}.editor-toolbar .row{gap:6px}.editor-tabs{display:none}.editor-layout{display:grid;grid-template-columns:1fr 1fr;flex:1;min-height:0}.editor-source{min-width:0;min-height:0;border-right:1px solid var(--line)}#editor-content{resize:none;width:100%;height:100%;min-height:0;padding:22px;border:0;border-radius:0;background:#fbfcf9;color:var(--ink);font:13px/1.9 Consolas,"Microsoft YaHei",monospace;outline:none;tab-size:2}.editor-render.article{max-width:none;height:100%;overflow:auto;padding:22px;margin:0}.editor-render h1{font-size:26px;margin:0 0 18px}.editor-render h2{font-size:20px}.editor-render pre{background:#20372e;color:#d8e7cd;border-radius:7px;padding:14px}.editor-render img{max-width:100%}.editor-render a{overflow-wrap:anywhere}.editor-bottom{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted);padding:9px 20px;border-top:1px solid var(--line)}.editor-dialog .form-error{margin:10px 20px;padding:10px;background:#fff4ef;border-radius:6px}.nav-drawer{margin:0 auto 0 0;width:min(350px,88vw);max-width:350px;height:100dvh;max-height:100dvh;border-radius:0;border:0}.nav-drawer .modal-body{max-height:calc(100dvh - 94px);overflow:auto}.nav-drawer .sidebar-tree a{min-height:42px;display:flex;align-items:center}.nav-drawer .sidebar-tree summary{padding:12px 0}
@media(max-width:1050px){.explorer .workspace{grid-template-columns:185px minmax(0,1fr)}.explorer-table th,.explorer-table td{padding:13px 10px}.explorer-table .file-name .slug{max-width:240px}.explorer-table .file-detail:nth-child(2){display:none}}
@media(max-width:700px){.site-header{position:sticky;top:0;z-index:20;background:white}.mobile-reader-bar{position:sticky;top:64px;z-index:15;height:45px;padding:0 17px;align-items:center}.mobile-reader-bar>.btn{font-size:12px;padding:7px 0;min-height:40px}.mobile-reader-bar>span{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#627259}.article.project-index{padding:22px 21px}.project-index .crumb{margin-bottom:15px;overflow-wrap:anywhere;flex-wrap:wrap}.project-index h1{font-size:27px;margin-top:8px}.project-index-meta{font-size:11px;margin-bottom:22px}.project-index .section-title{margin:21px 0 12px}.project-index .section-title h2{font-size:18px}.doc-index-item{padding:17px 0;gap:10px}.doc-item-content strong{font-size:14px}.doc-item-path{font-size:11px}.doc-item-meta{font-size:10px}.project-index .site-footer{margin-top:32px}.reader-layout{min-height:0}.article .crumb{overflow-wrap:anywhere;flex-wrap:wrap;gap:6px}.article h1{overflow-wrap:anywhere}.explorer .workspace{display:block;min-height:0}.explorer-controls{flex-wrap:wrap;padding:13px 14px;gap:8px}.explorer-controls .search{flex-basis:100%}.explorer-controls select{flex:1;max-width:none}.file-toolbar{padding:13px 14px;flex-wrap:wrap}.file-breadcrumb{flex-basis:100%;gap:8px}.drop-hint{padding:9px 14px;font-size:10px}.explorer-table{white-space:normal;min-width:0}.explorer-table thead{display:none}.explorer-table tbody{display:block}.explorer-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;border-bottom:1px solid var(--line);padding:15px 14px;gap:8px}.explorer-table td{display:block;padding:0;border:0!important}.explorer-table td.file-detail{display:none}.explorer-table .file-name{align-items:flex-start;gap:10px}.explorer-table .file-name>svg{margin-top:3px}.explorer-table .file-name .slug{max-width:none;font-size:11px}.file-mobile-meta{display:block;font-size:10px;line-height:1.8;color:var(--muted);margin-top:6px}.explorer-table td.row-actions{width:auto}.explorer-table .file-actions>*:not([data-action=file-more]){display:none}.explorer-table .file-actions [data-action=file-more]{width:36px;min-width:36px;min-height:36px;background:#f2f6ec}.manage-heading{flex-direction:column;align-items:stretch;gap:17px}.manage-heading>.row{justify-content:flex-start;flex-wrap:wrap;gap:8px}.manage-heading>.row .btn{min-height:38px}.manage-heading h1{font-size:26px}.explorer-table .empty{padding:20px;grid-column:1/-1}.actions-sheet{margin:auto 0 0;width:100%;max-width:none;border-radius:15px 15px 0 0;max-height:90dvh}.actions-sheet .modal-body{max-height:65dvh}.version-row{align-items:flex-start;flex-direction:column;gap:10px}.version-row .row{align-self:flex-end}.upload-line{flex-wrap:wrap;gap:8px}.upload-line .filedesc{min-width:60%;flex:1}.form-actions{position:sticky;bottom:0;background:white;padding:12px 0;margin-top:12px}.editor-dialog{margin:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;border:0}.editor-dialog .modal-header{padding:13px 16px;height:70px}.editor-dialog .modal-header h2{font-size:18px}.editor-dialog .modal-header p{font-size:10px}.editor-dialog .modal-body{height:calc(100% - 70px)}.editor-top{padding:10px 14px;gap:8px}.editor-path{flex-basis:100%}.editor-buttons{margin-left:auto}.editor-buttons .btn{font-size:11px;padding:7px 9px}.editor-toolbar{padding:9px 14px;flex-wrap:wrap;gap:8px}.editor-toolbar .btn{padding:5px 8px;min-height:29px;font-size:11px}.editor-tabs{display:flex;gap:4px}.editor-tabs .active{background:var(--green);color:white;border-color:var(--green)}.editor-layout{display:block}.editor-layout[data-tab=edit] .editor-render{display:none}.editor-layout[data-tab=preview] .editor-source{display:none}.editor-source{height:100%;border:0}#editor-content{padding:16px;font-size:13px}.editor-render.article{padding:18px}.editor-bottom{font-size:9px;padding:7px 14px}.editor-bottom span:last-child{max-width:66%;text-align:right}.editor-dialog .form-error{margin:8px 14px}.project-index .doc-search{padding:10px 12px}.project-index .footer{margin-top:28px}}

.project-index .section-title h2{margin:0}.manage-heading>div>.row{justify-content:flex-start}@media(max-width:700px){.project-index-meta{margin-bottom:18px}.project-index .section-title{margin-top:20px}}
