.kg-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.kg-tabs a{padding:11px 16px;border:1px solid var(--line);border-radius:9px;font-size:12px;display:inline-flex;align-items:center;gap:8px;background:#fff}.kg-tabs a.active{background:var(--ink);color:white;border-color:var(--ink)}.kg-tabs svg{width:15px;height:15px}.kg-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:24px;align-items:start}.kg-tree{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;position:sticky;top:18px;max-height:calc(100dvh - 40px);overflow:auto;min-width:0}.kg-tree-head{display:flex;flex-direction:column;gap:5px;padding:4px 0 12px}.kg-tree-head b{font-size:13px}.kg-tree-head small{font-size:10px;color:var(--muted)}.kg-search{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:0 10px}.kg-search svg{width:15px;flex:none}.kg-search input{border:0;background:transparent;min-width:0;width:100%;font:inherit;font-size:12px;padding:11px 0}.kg-tree-tools{display:flex;gap:3px;flex-wrap:wrap;padding:8px 0 12px}.kg-tree-tools .btn{padding:5px;font-size:10px;min-height:27px}.kg-tree section{border-top:1px solid #eef1ea}.kg-tree-group{display:flex;align-items:center;gap:7px;width:100%;padding:13px 3px;font:inherit;font-size:11px;font-weight:650;text-align:left;border:0;background:transparent;color:var(--ink);cursor:pointer}.kg-tree-group>svg{width:12px;height:12px;flex:none;transition:transform .15s}.kg-tree-group[aria-expanded=true]>svg{transform:rotate(90deg)}.kg-tree-group span{flex:1;min-width:0;overflow-wrap:anywhere}.kg-tree-group small{font-size:10px;font-weight:400;color:var(--muted)}.kg-tree-article{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.5;padding:8px 8px 8px 18px;border-radius:7px;color:#66745f}.kg-tree-article.active{background:#ecf5df;color:#233c20;font-weight:650}.kg-tree-article:hover{background:#f4f7f0;color:var(--ink)}.kg-tree-article>span:last-child{min-width:0;overflow-wrap:anywhere}.kg-status-dot{margin-top:5px;width:6px;height:6px;flex:none;border:1px solid #a5afa0;border-radius:50%}.kg-status-dot.published{background:#6e983d;border-color:#6e983d}.kg-tree-legend{font-size:9px;color:var(--muted);margin:16px 0 0;line-height:1.5}.kg-tree-legend i{display:inline-block;background:#6e983d;border-radius:50%;width:6px;height:6px}.kg-tree [hidden]{display:none}.kg-content{min-width:0}.kg-intro{padding:28px;background:#edf4e4;border:1px solid #d7e4c9;border-radius:14px}.kg-intro h2{font-size:26px;line-height:1.3;margin:10px 0}.kg-intro p{font-size:13px;line-height:1.7;color:#67745e;max-width:780px}.kg-stats{display:flex;gap:26px;flex-wrap:wrap;margin-top:20px}.kg-stats span{font-size:11px;color:#637257}.kg-stats b{font-size:23px;display:block;margin-bottom:4px;color:var(--ink)}.kg-feature{padding:25px;background:#fff;border:1px solid var(--line);border-radius:14px;display:flex;gap:18px;margin:18px 0 25px}.kg-feature>span{background:#edf4e4;color:#6b884e;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;flex:none}.kg-feature svg{width:22px;height:22px}.kg-feature small{font-size:9px;letter-spacing:.06em;color:#678343}.kg-feature h2{font-size:20px;line-height:1.4;margin:7px 0}.kg-feature p{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:16px}.kg-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.kg-section-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:21px;min-width:0}.kg-section-card header{display:flex;gap:10px;align-items:flex-start}.kg-section-card header>span{color:#78905e;flex:none}.kg-section-card header svg{width:18px;height:18px}.kg-section-card h2{font-size:16px;line-height:1.4}.kg-section-card header p{font-size:11px;line-height:1.5;color:var(--muted);margin-top:6px}.kg-section-card ol{padding:0 0 0 17px;margin:16px 0 0}.kg-section-card li{padding:8px 0;border-top:1px solid #eef1ea;font-size:12px;line-height:1.5}.kg-section-card li small{display:block;font-size:9px;color:#849079;margin-top:3px}.kg-section-card a:hover{text-decoration:underline}.kg-breadcrumb{font-size:11px;color:var(--muted);margin:18px 0 10px}.kg-article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:30px;min-width:0}.kg-article h1{font-size:29px;line-height:1.35;overflow-wrap:anywhere}.kg-article-meta{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0 22px}.kg-article-meta span{font-size:10px;color:#718160;background:#f0f4ea;padding:6px 8px;border-radius:6px}.kg-article p,.kg-article li{font-size:13px;line-height:1.85;color:#56634f}.kg-article p{margin:12px 0}.kg-article .kg-lead{font-size:15px;color:#405139}.kg-article ul,.kg-article ol{padding-left:22px;margin:14px 0}.kg-article li{margin:8px 0}.kg-article strong{color:#243d22}.kg-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.kg-quick-actions .btn{white-space:normal;text-align:left;line-height:1.5}.kg-toc{padding:20px;background:#f6f9f2;border-radius:10px;border:1px solid #e5eddd;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 20px;margin:25px 0}.kg-toc b{grid-column:1/-1;font-size:13px;margin-bottom:5px}.kg-toc a{font-size:12px;color:#607750;line-height:1.5}.kg-toc a:hover{text-decoration:underline}.kg-article-section{border-top:1px solid var(--line);padding-top:25px;margin-top:28px;scroll-margin-top:25px}.kg-article-section h2{font-size:21px;line-height:1.5;margin-bottom:12px}.kg-article-section h3{font-size:16px;margin-top:20px;line-height:1.5}.kg-note{padding:16px 18px;background:#f0f6e7;border-left:3px solid #96b75f;border-radius:6px;font-size:12px;line-height:1.7;color:#526845;margin:18px 0}.kg-flow{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:17px;background:#f7f9f3;border:1px solid #e6eddf;border-radius:10px;margin:18px 0}.kg-flow span{font-size:11px;line-height:1.5;flex:1;min-width:90px}.kg-flow b{color:#93ab75;font-size:16px}.kg-table-wrap{overflow:auto;max-width:100%;margin:20px 0;border:1px solid var(--line);border-radius:9px}.kg-table-wrap table{width:100%;border-collapse:collapse;min-width:520px}.kg-table-wrap th,.kg-table-wrap td{padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);font-size:11px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}.kg-table-wrap th{background:#f2f6ed;color:#4d6340}.kg-table-wrap tr:last-child td{border-bottom:0}.kg-figure{margin:23px 0}.kg-figure img{display:block;width:100%;height:auto;border:1px solid #dde5d6;border-radius:10px;background:#f1f4ee}.kg-figure figcaption{font-size:10px;line-height:1.6;color:var(--muted);margin-top:9px}.kg-advanced{background:#f7f9f4;border:1px solid var(--line);border-radius:9px;padding:15px;margin:20px 0}.kg-advanced summary{cursor:pointer;font-size:12px;font-weight:650}.kg-advanced code{white-space:normal;font-size:10px;overflow-wrap:anywhere}.kg-next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kg-next-grid a{white-space:normal;justify-content:flex-start;line-height:1.5}.kg-planned{padding:24px;background:#f7f9f3;border:1px solid var(--line);border-radius:10px;margin:20px 0}.kg-planned h2{font-size:18px;margin-top:14px}.kg-planned>.btn{margin:8px 8px 0 0;white-space:normal}.kg-defaults{margin:0 0 24px;border:1px solid #d5e2c8;border-radius:12px;background:#f9fcf5;min-width:0}.kg-defaults>summary{padding:17px 20px;display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none}.kg-defaults>summary::-webkit-details-marker{display:none}.kg-defaults>summary>svg{width:19px;height:19px;flex:none;color:#739454}.kg-defaults>summary>span{flex:1;min-width:0}.kg-defaults b{font-size:13px}.kg-defaults small{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:4px}.kg-defaults[open]>summary>svg:last-child{transform:rotate(180deg)}.kg-defaults-body{border-top:1px solid #e2ead9;padding:20px;min-width:0}.kg-defaults-body>p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:17px}.kg-default-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.kg-default-grid>article{background:#fff;border:1px solid var(--line);border-radius:10px;padding:17px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.kg-default-grid>article.selected{border-color:#86a95b;box-shadow:0 0 0 2px #e3efda}.kg-default-grid h3{font-size:14px;line-height:1.5}.kg-default-grid p{font-size:11px;line-height:1.6;color:var(--muted);flex:1}.kg-default-grid .btn{white-space:normal;text-align:left}.kg-doc-meta{font-size:10px;color:var(--muted);line-height:1.6;margin-bottom:14px}.kg-doc-preview{border:1px solid var(--line);border-radius:8px;padding:25px;background:#fff;margin:20px 0;overflow:auto;max-height:55dvh;font-size:12px;line-height:1.7}.kg-doc-preview h1{font-size:23px}.kg-doc-preview h2{font-size:16px;margin:20px 0 10px}.kg-doc-preview table{min-width:360px;width:100%}.kg-doc-preview td{font-size:11px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}.kg-doc-actions{display:flex;gap:8px;flex-wrap:wrap}.kg-doc-actions .btn{white-space:normal}.kg-optional summary{font-size:11px;color:var(--muted);cursor:pointer}.kg-optional p{font-size:11px;color:var(--muted);line-height:1.7}.kg-settings-help{display:flex;gap:14px;align-items:center;border:1px solid var(--line);padding:20px;border-radius:10px;margin-top:22px;background:white}.kg-settings-help>svg{flex:none;width:22px;height:22px;color:#7b955a}.kg-settings-help>div{flex:1;min-width:0}.kg-settings-help b{font-size:13px}.kg-settings-help p{font-size:11px;line-height:1.6;color:var(--muted);margin-top:5px}
@media(max-width:1200px){.kg-layout{grid-template-columns:240px minmax(0,1fr);gap:16px}.kg-section-grid{grid-template-columns:minmax(0,1fr)}.kg-article{padding:24px}.kg-default-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kg-toc{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.kg-layout{grid-template-columns:minmax(0,1fr)}.kg-tree{position:static;max-height:320px;padding:14px}.kg-article{padding:18px}.kg-article h1{font-size:24px}.kg-article-section h2{font-size:19px}.kg-intro{padding:20px}.kg-intro h2{font-size:23px}.kg-feature{padding:18px;gap:12px}.kg-feature h2{font-size:18px}.kg-feature>span{width:32px;height:32px}.kg-stats{gap:20px}.kg-default-grid{grid-template-columns:minmax(0,1fr)}.kg-defaults-body{padding:15px}.kg-defaults>summary{padding:16px}.kg-next-grid{grid-template-columns:minmax(0,1fr)}.kg-doc-preview{padding:14px}.kg-settings-help{flex-wrap:wrap}.kg-settings-help .btn{width:100%;justify-content:center}}

.modal.kg-doc-modal{width:1000px;max-width:calc(100vw - 28px);max-height:92dvh;display:flex;flex-direction:column;overflow:hidden}.kg-doc-modal .modal-head{flex:none}.kg-doc-modal .modal-body{min-height:0;overflow:auto}.kg-doc-modal .kg-doc-preview{max-height:48dvh}

.ak-knowledge-page>.kg-tabs{margin:0}.ak-knowledge-page>.page-head{margin-bottom:0}
