.docs-page,.docs-viewer-page{padding:28px 34px 42px;max-width:1500px;margin:0 auto}.docs-head,.docs-viewer-head{display:flex;gap:24px;justify-content:space-between;align-items:flex-start;border-bottom:1px solid rgba(126,145,190,.18);padding-bottom:20px}.docs-head h2,.docs-viewer-head h2{margin:5px 0 7px;color:#eef2ff;font-size:25px}.docs-head p,.docs-viewer-head p{margin:0;color:#8791ad;max-width:800px;line-height:1.55}.docs-primary,.docs-card-actions button,.docs-viewer-actions button,.docs-viewer-actions a,.docs-back{border:1px solid rgba(226,190,53,.38);background:rgba(226,190,53,.07);color:#e7ce68;border-radius:7px;padding:10px 14px;font:600 12px inherit;cursor:pointer;text-decoration:none;transition:.15s}.docs-primary:hover,.doc-card-actions button:hover,.docs-viewer-actions button:hover,.docs-viewer-actions a:hover,.docs-back:hover{background:rgba(226,190,53,.13);border-color:rgba(238,207,80,.65)}.docs-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 240px auto;gap:12px;align-items:center;margin:22px 0}.docs-search{display:flex;align-items:center;gap:9px;border:1px solid rgba(116,134,178,.24);background:rgba(9,13,28,.72);border-radius:8px;padding:0 13px}.docs-search span{font-size:21px;color:#7783a3}.docs-search input,.docs-toolbar select{height:43px;border:0;outline:0;background:transparent;color:#d8deef;width:100%;font:500 13px inherit}.docs-toolbar select{border:1px solid rgba(116,134,178,.24);background:#0b0f20;border-radius:8px;padding:0 12px}.docs-count{font-size:11px;color:#66718f;letter-spacing:.08em}.docs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}.doc-card{min-height:230px;display:flex;flex-direction:column;padding:18px;border:1px solid rgba(102,121,165,.22);border-radius:9px;background:linear-gradient(145deg,rgba(14,19,37,.92),rgba(8,11,24,.88));box-shadow:0 9px 26px rgba(0,0,0,.14);cursor:pointer;transition:.16s}.doc-card:hover{transform:translateY(-2px);border-color:rgba(219,187,61,.38);box-shadow:0 12px 30px rgba(0,0,0,.22),0 0 18px rgba(219,187,61,.04)}.doc-card-top{display:flex;align-items:center;gap:9px;color:#707b99;font-size:10px;text-transform:uppercase;letter-spacing:.12em}.doc-file-mark{font-weight:800;color:#e2c955;border:1px solid rgba(226,201,85,.35);border-radius:4px;padding:4px 6px}.doc-card h3{color:#e8ecf7;font-size:16px;margin:17px 0 9px;line-height:1.35}.doc-card p{color:#8d96b0;font-size:12px;line-height:1.55;margin:0 0 18px}.doc-meta{display:flex;gap:14px;margin-top:auto;padding-top:12px;border-top:1px solid rgba(104,120,158,.14);color:#626e8d;font-size:10px}.doc-card-actions{display:flex;gap:8px;margin-top:12px}.doc-card-actions button{padding:7px 10px;font-size:10px}.docs-empty,.docs-error{grid-column:1/-1;border:1px dashed rgba(111,127,167,.26);padding:45px;text-align:center;color:#7f89a4;border-radius:9px}.docs-empty b,.docs-empty span{display:block}.docs-empty span{margin-top:7px;font-size:12px}.docs-viewer-page{max-width:none;height:calc(100vh - 80px);display:flex;flex-direction:column;padding-bottom:20px}.docs-viewer-head{align-items:center;flex:0 0 auto}.docs-back{border-color:rgba(117,134,175,.28);color:#aab3ca;background:rgba(15,20,37,.7);white-space:nowrap}.docs-viewer-title{flex:1}.docs-viewer-actions{display:flex;gap:8px;align-items:center}.docs-viewer-actions .danger{color:#e89a9a;border-color:rgba(210,76,76,.35);background:rgba(150,38,38,.08)}.docs-frame-wrap{flex:1;min-height:500px;margin-top:16px;border:1px solid rgba(105,123,166,.25);border-radius:8px;overflow:hidden;background:#161923}.docs-frame-wrap iframe{display:block;width:100%;height:100%;border:0;background:#202124}.docs-modal-overlay{position:fixed;inset:0;z-index:12000;background:rgba(2,4,12,.82);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px}.docs-modal{width:min(620px,96vw);background:#0b0f1d;border:1px solid rgba(121,140,184,.3);box-shadow:0 25px 70px rgba(0,0,0,.55);border-radius:10px;padding:24px}.docs-modal h3{color:#edf1fb;margin:7px 0 20px;font-size:21px}.docs-modal label{display:block;color:#8f99b4;font-size:11px;letter-spacing:.05em;margin:13px 0}.docs-modal input,.docs-modal textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;background:#080c18;border:1px solid rgba(111,129,171,.28);border-radius:6px;color:#e1e6f3;padding:11px 12px;font:500 13px inherit;outline:none}.docs-modal input:focus,.docs-modal textarea:focus{border-color:rgba(226,194,65,.55);box-shadow:0 0 0 2px rgba(226,194,65,.06)}.docs-modal small{display:block;margin-top:6px;color:#626e8b}.docs-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.docs-modal-actions>button{border:1px solid rgba(113,130,169,.28);background:#101527;color:#aab3ca;border-radius:6px;padding:10px 14px;cursor:pointer}.docs-upload-status{min-height:18px;color:#d7c463;font-size:11px;margin-top:9px}.sidebar-group-docs{margin-top:6px;padding-top:15px;border-top:1px solid rgba(101,117,154,.12)}@media(max-width:900px){.docs-page,.docs-viewer-page{padding:20px 16px}.docs-toolbar{grid-template-columns:1fr}.docs-head,.docs-viewer-head{flex-direction:column}.docs-viewer-page{height:auto}.docs-frame-wrap{height:72vh;flex:none}.docs-viewer-actions{flex-wrap:wrap}}
/* v6.2 — native archive reader */
.docs-reader{height:calc(100vh - 62px);display:flex;flex-direction:column;padding:18px 22px 20px;box-sizing:border-box}.reader-top{display:flex;align-items:center;gap:20px;flex:0 0 auto;padding:0 0 16px;border-bottom:1px solid rgba(119,137,180,.18)}.reader-doc-title{min-width:0;flex:1}.reader-doc-title h2{margin:4px 0 5px;color:#f0f3fc;font-size:22px}.reader-doc-title p{margin:0;color:#818ca8;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-shell{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;min-height:0;flex:1;padding-top:16px}.reader-nav{min-height:0;display:flex;flex-direction:column;border:1px solid rgba(103,122,167,.2);background:linear-gradient(180deg,rgba(11,15,29,.95),rgba(7,10,21,.94));border-radius:9px;overflow:hidden}.reader-nav-head{display:flex;justify-content:space-between;align-items:center;padding:15px 16px 11px;color:#687491;font-size:9px;letter-spacing:.16em}.reader-nav-head b{font-weight:600;color:#8b96b2;letter-spacing:.04em}.reader-search{margin:0 12px 12px;display:flex;align-items:center;gap:8px;border:1px solid rgba(110,129,174,.25);background:#080c19;border-radius:6px;padding:0 10px}.reader-search span{color:#6d7897;font-size:18px}.reader-search input{width:100%;height:38px;border:0;outline:0;background:transparent;color:#dce2f2;font:500 11px inherit}.reader-pages,.reader-results{min-height:0;overflow:auto;padding:0 8px 10px;scrollbar-width:thin;scrollbar-color:#28324e transparent}.reader-pages button,.reader-results button{width:100%;display:grid;grid-template-columns:34px 1fr;gap:9px;align-items:center;text-align:left;border:0;border-left:2px solid transparent;background:transparent;color:#8994b0;padding:9px 9px;border-radius:4px;cursor:pointer;font:500 10px inherit}.reader-pages button:hover,.reader-results button:hover{background:rgba(78,94,139,.12);color:#c6cee0}.reader-pages button.active{border-left-color:#e1c43d;background:linear-gradient(90deg,rgba(225,196,61,.12),rgba(225,196,61,.025));color:#f0d865}.reader-pages button b{font-size:9px;color:#5f6b89;letter-spacing:.08em}.reader-pages button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-results-title{padding:5px 10px 9px;color:#737f9e;font-size:9px;text-transform:uppercase;letter-spacing:.12em}.reader-results button{display:block;border-left-color:rgba(115,132,174,.2);margin-bottom:4px}.reader-results button b{display:block;color:#d5bd54;margin-bottom:4px;font-size:9px}.reader-results button span{display:block;line-height:1.45;color:#828da9}.reader-nohits{padding:20px 10px;color:#68738f;font-size:11px;text-align:center}.reader-main{min-width:0;min-height:0;overflow:auto;padding:0 12px 8px}.reader-paper{width:min(920px,100%);min-height:calc(100% - 58px);margin:0 auto;background:linear-gradient(145deg,rgba(16,21,39,.97),rgba(10,14,28,.98));border:1px solid rgba(112,132,179,.24);border-radius:8px;box-shadow:0 18px 55px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.015);position:relative;overflow:hidden}.reader-paper:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 0 6%,rgba(104,123,169,.035) 6% 6.1%,transparent 6.1% 94%,rgba(104,123,169,.035) 94% 94.1%,transparent 94.1%)}.reader-paper-head,.reader-paper-foot{position:relative;z-index:1;display:flex;justify-content:space-between;padding:17px 28px;color:#5f6b89;font-size:8px;letter-spacing:.16em}.reader-paper-head{border-bottom:1px solid rgba(104,122,165,.12)}.reader-paper-foot{border-top:1px solid rgba(104,122,165,.12);margin-top:28px}.reader-content{position:relative;z-index:1;padding:30px clamp(28px,6vw,72px) 20px;color:#b7c0d6;font-size:13px;line-height:1.78}.reader-content h3{color:#edf1fb;font-size:17px;line-height:1.35;margin:27px 0 13px;padding-left:12px;border-left:2px solid rgba(225,195,58,.72)}.reader-content h3:first-child{margin-top:0}.reader-content p{margin:0 0 14px}.reader-line{padding:3px 0 3px 13px;position:relative}.reader-line:before{content:"";position:absolute;left:1px;top:13px;width:4px;height:4px;border-radius:50%;background:#687596}.reader-content mark,.reader-results mark{background:rgba(235,200,55,.25);color:#ffe477;border-radius:2px;padding:0 2px}.reader-empty-page{color:#69748f;text-align:center;padding:70px 0}.reader-controls{width:min(920px,100%);margin:12px auto 0;display:flex;align-items:center;justify-content:space-between}.reader-controls button{border:1px solid rgba(104,122,165,.25);background:rgba(11,16,31,.9);color:#9aa5c0;border-radius:6px;padding:9px 13px;cursor:pointer;font:600 10px inherit}.reader-controls button:hover:not(:disabled){color:#e9d361;border-color:rgba(225,195,58,.4)}.reader-controls button:disabled{opacity:.3;cursor:default}.reader-controls>div{display:flex;align-items:center;gap:7px;color:#6e7a98;font-size:10px}.reader-controls input{width:52px;text-align:center;background:#090d1b;border:1px solid rgba(104,122,165,.24);border-radius:5px;color:#dce2f1;padding:8px 5px;outline:none}.reader-loading,.reader-unavailable{min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#7e89a6;text-align:center}.reader-loading span{width:30px;height:30px;border:2px solid rgba(112,131,176,.2);border-top-color:#dfc33e;border-radius:50%;animation:readerSpin .8s linear infinite;margin-bottom:14px}.reader-loading b{font-size:11px;letter-spacing:.08em}.reader-unavailable{margin:22px;border:1px dashed rgba(113,132,176,.25);border-radius:9px}.reader-unavailable .reader-seal{font-size:9px;letter-spacing:.25em;color:#d0b944;border:1px solid rgba(208,185,68,.3);padding:6px 9px;border-radius:4px}.reader-unavailable h3{color:#e4e9f5;margin:16px 0 6px}.reader-unavailable p{max-width:540px;font-size:12px}.reader-unavailable a{margin-top:14px;color:#dec65a;text-decoration:none;border:1px solid rgba(222,198,90,.32);padding:9px 12px;border-radius:5px}@keyframes readerSpin{to{transform:rotate(360deg)}}
@media(max-width:1050px){.reader-shell{grid-template-columns:235px 1fr}.reader-content{padding-left:30px;padding-right:30px}}@media(max-width:780px){.docs-reader{height:auto;padding:14px}.reader-top{align-items:flex-start;flex-wrap:wrap}.reader-doc-title{order:-1;flex-basis:100%}.reader-doc-title p{white-space:normal}.reader-shell{display:block}.reader-nav{max-height:280px;margin-bottom:12px}.reader-main{overflow:visible;padding:0}.reader-paper{min-height:500px}.reader-content{padding:24px 20px}.reader-controls{position:sticky;bottom:8px;background:rgba(5,8,17,.88);backdrop-filter:blur(8px);padding:7px;border-radius:7px;box-sizing:border-box}}
/* v6.3 — semantic chapter navigation */
.reader-toc{min-height:0;overflow:auto;padding:0 8px 12px;scrollbar-width:thin;scrollbar-color:#28324e transparent}.toc-node{position:relative}.toc-children{margin-left:13px;border-left:1px solid rgba(105,124,169,.17);padding-left:4px}.toc-row{width:100%;display:grid;grid-template-columns:8px minmax(0,1fr) 18px;gap:7px;align-items:center;text-align:left;border:0;background:transparent;color:#8e99b5;padding:8px 7px;border-radius:5px;cursor:pointer;font:500 10px inherit}.toc-row:hover{background:rgba(75,91,135,.12);color:#cbd3e5}.toc-row.active{background:linear-gradient(90deg,rgba(226,195,58,.14),rgba(226,195,58,.025));color:#efd762}.toc-mark{width:4px;height:4px;border-radius:50%;background:#4d5a78}.toc-row.active .toc-mark{background:#e1c43d;box-shadow:0 0 7px rgba(225,196,61,.45)}.toc-row>span:nth-child(2){white-space:normal;line-height:1.35}.toc-row i{font-style:normal;text-align:center;color:#65718f;font-size:13px}.depth-1>.toc-row{font-size:9.5px}.depth-2>.toc-row{font-size:9px;color:#78849f}.reader-content.structured{padding-top:34px;min-height:520px}.reader-content.structured h1{margin:0 0 25px;color:#f1f4fc;font-size:27px;line-height:1.2;font-weight:760;letter-spacing:-.015em}.reader-breadcrumb{color:#d7bd48;font-size:8px;letter-spacing:.2em;font-weight:800;margin-bottom:8px}.reader-subsections{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-top:28px;padding-top:18px;border-top:1px solid rgba(105,123,166,.14)}.reader-subsections button{display:flex;justify-content:space-between;gap:10px;align-items:center;text-align:left;border:1px solid rgba(104,123,167,.2);background:rgba(8,12,24,.52);color:#aeb8d0;border-radius:6px;padding:11px 12px;cursor:pointer;font:600 10px inherit}.reader-subsections button:hover{border-color:rgba(225,195,58,.36);color:#ead363;background:rgba(225,195,58,.05)}.reader-subsections i{font-style:normal;color:#66728e}.reader-results button b{white-space:normal}
/* v7.0 — protected archive reader */
.docs-reader .reader-content,.docs-reader .reader-paper,.docs-reader .reader-paper *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.docs-reader img{-webkit-user-drag:none;user-drag:none}.protected-copy{isolation:isolate}.protected-copy .reader-paper-head,.protected-copy .reader-content,.protected-copy .reader-paper-foot{z-index:3}.docs-reader .reader-search input,.docs-reader .reader-controls input{-webkit-user-select:text;user-select:text}.docs-reader .reader-results{-webkit-user-select:none;user-select:none}

/* v7.0.2 — restore GM document structure editor layout */
.structure-editor-overlay{position:fixed;inset:0;z-index:10000;background:rgba(3,5,12,.88);backdrop-filter:blur(8px);padding:24px;box-sizing:border-box}.structure-editor-card{height:100%;max-width:1500px;margin:auto;display:flex;flex-direction:column;background:linear-gradient(145deg,#0d1222,#080c18);border:1px solid rgba(111,132,181,.3);border-radius:10px;box-shadow:0 30px 90px rgba(0,0,0,.6);overflow:hidden}.structure-editor-card>header{display:flex;gap:20px;align-items:flex-start;padding:20px 24px 16px;border-bottom:1px solid rgba(107,126,170,.18)}.structure-editor-card>header>div{flex:1}.structure-editor-card h2{margin:4px 0;color:#eef2fb;font-size:22px}.structure-editor-card header p{margin:4px 0 0;color:#7f8ba8;font-size:11px}.structure-close{border:0;background:transparent;color:#7d89a6;font-size:27px;cursor:pointer}.structure-close:hover{color:#efd660}.structure-toolbar{display:flex;align-items:center;gap:12px;padding:11px 18px;border-bottom:1px solid rgba(107,126,170,.14);background:rgba(5,8,17,.45)}.structure-toolbar span{flex:1;color:#687590;font-size:10px}.structure-toolbar button{border:1px solid rgba(106,126,171,.25);background:#10162a;color:#aab5ce;border-radius:5px;padding:8px 11px;cursor:pointer}.structure-work{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(390px,.7fr);min-height:0;flex:1}.structure-source,.structure-outline{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#2c3653 transparent}.structure-source{padding:14px 16px 50px;border-right:1px solid rgba(105,125,169,.17)}.structure-outline{padding:14px 16px 50px;background:rgba(5,8,16,.3)}.structure-pane-title{position:sticky;top:-14px;z-index:3;margin:-14px -16px 10px;padding:12px 16px;background:rgba(9,13,25,.96);color:#d7bd4d;font-size:8px;letter-spacing:.18em;border-bottom:1px solid rgba(105,125,169,.12)}.structure-help{color:#697590;font-size:10px;line-height:1.55;margin:0 0 13px}.structure-block{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) 58px;gap:10px;align-items:start;padding:8px 9px;border-radius:5px;color:#aeb8cf;cursor:pointer;border:1px solid transparent}.structure-block:hover{background:rgba(70,88,132,.12);border-color:rgba(111,132,180,.13)}.structure-block>b{font-size:8px;color:#4f5d7b;padding-top:3px}.structure-block>span{font-size:11px;line-height:1.5}.structure-block>i{font-style:normal;font-size:8px;color:#56637f;opacity:0}.structure-block:hover>i{opacity:1;color:#d9c04e}.structure-anchor{grid-column:1/-1;margin:-8px -9px 6px;padding:6px 10px;border-left:2px solid #d8bc43;background:linear-gradient(90deg,rgba(216,188,67,.12),transparent);color:#e8d267;font-size:9px;font-weight:700;letter-spacing:.03em}.structure-anchor.level-2{margin-left:14px;border-left-color:#8290b3;color:#b7c2da}.structure-anchor.level-3{margin-left:28px;border-left-color:#5f6c8d;color:#8f9bb8}.structure-marker{display:grid;grid-template-columns:25px minmax(0,1fr) 25px;gap:8px;padding:9px;margin-bottom:7px;border:1px solid rgba(105,125,170,.18);border-left:2px solid #d9bd45;border-radius:6px;background:rgba(13,18,34,.72)}.structure-marker.level-2{margin-left:18px;border-left-color:#8290b3}.structure-marker.level-3{margin-left:36px;border-left-color:#5f6c8d}.structure-marker-num{color:#5f6d8c;font-size:9px;padding-top:7px}.structure-marker-fields>input{width:100%;box-sizing:border-box;background:#080c18;border:1px solid rgba(105,125,170,.2);color:#e0e5f1;border-radius:4px;padding:7px 8px;font:600 10px inherit;outline:none}.structure-marker-fields>div{display:flex;gap:7px;margin-top:6px}.structure-marker-fields select,.structure-marker-fields label input{background:#080c18;border:1px solid rgba(105,125,170,.2);color:#8996b3;border-radius:4px;padding:5px 7px;font:500 9px inherit}.structure-marker-fields label{color:#606d8a;font-size:8px;display:flex;align-items:center;gap:5px}.structure-marker-fields label input{width:62px}.structure-marker>button{border:0;background:transparent;color:#65718d;cursor:pointer;font-size:17px}.structure-marker>button:hover{color:#d76d6d}.structure-empty{padding:30px;text-align:center;color:#65718d;font-size:11px;border:1px dashed rgba(105,125,170,.18);border-radius:6px}@media(max-width:900px){.structure-editor-overlay{padding:8px}.structure-work{grid-template-columns:1fr}.structure-source{max-height:45vh;border-right:0;border-bottom:1px solid rgba(105,125,169,.17)}.structure-outline{max-height:40vh}}
