.app-shell #knowledgeMain {height:auto;min-height:100dvh;display:block;min-width:0}
.knowledge-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:24px}
.knowledge-heading h2 {margin:0}
.knowledge-search {display:flex;gap:8px;max-width:100%;min-width:0}
.knowledge-search input {width:260px;max-width:100%;min-width:0}
.knowledge-content {max-width:960px;overflow-wrap:anywhere;padding:16px 0 40px}
.knowledge-content h1 {font-size:clamp(24px,3vw,34px);line-height:1.3;margin:12px 0 18px}
.knowledge-content h2,.knowledge-content h3 {margin:26px 0 12px}
.knowledge-content p,.knowledge-content li {line-height:1.7}
.knowledge-content li {margin:10px 0}
.knowledge-content a {color:var(--brand-dark);text-decoration:underline}
.knowledge-content figure {margin:20px 0}
.knowledge-content img {display:block;max-width:100%;height:auto;border-radius:var(--ui-radius-control)}
.knowledge-result,.knowledge-tree-link {display:block;width:100%;text-align:left;background:transparent;color:var(--text);border:0;box-shadow:none;padding:10px 8px;font:inherit;white-space:normal;overflow-wrap:anywhere;border-radius:var(--ui-radius-control);cursor:pointer}
.knowledge-result:hover,.knowledge-tree-link:hover {color:var(--brand-dark);background:var(--brand-soft);box-shadow:none!important}
.knowledge-tree-link[aria-current=page] {background:var(--brand-soft);color:var(--brand-dark)}
.knowledge-tree {max-height:clamp(100px,calc(100dvh - 580px - var(--test-banner-height,0px)),340px);overflow:auto;overscroll-behavior:contain;margin:0 0 4px 16px;padding-right:4px;scrollbar-gutter:stable}
.knowledge-tree-title {padding:8px 0;color:var(--subtext);font-size:12px}
.knowledge-tree details {padding:2px 0}
.knowledge-tree[hidden] {display:none!important}
.knowledge-tree details details {margin-left:12px}
.knowledge-tree summary {padding:8px 0;cursor:pointer;overflow-wrap:anywhere}
.knowledge-tree-link {font-size:13px;padding-left:12px;min-height:40px}
.knowledge-open-tree {display:none}
.sidebar-collapsed .knowledge-tree {display:none}
.sidebar-collapsed .knowledge-open-tree {display:inline-flex}
.knowledge-drawer {margin:0;height:100dvh;max-height:100dvh;width:min(340px,90vw);max-width:90vw;border-radius:0;overflow:hidden;padding:16px;background:var(--surface-2);color:var(--text)}
.knowledge-drawer[open] {display:flex;flex-direction:column}
.knowledge-drawer-head {display:flex;justify-content:space-between;align-items:center;gap:10px;flex:none}
.knowledge-drawer-head h2 {font-size:18px;margin:0}
.knowledge-drawer-list {overflow:auto;min-height:0;padding:12px 0;overscroll-behavior:contain}
.knowledge-drawer-list button {min-height:44px}
@media(max-width:700px){.knowledge-open-tree {display:inline-flex}.knowledge-heading {padding-right:46px}.knowledge-search {width:100%}.knowledge-search input {width:100%}.knowledge-content {padding-bottom:90px}.knowledge-content h1 {font-size:26px}}
@media(max-height:650px) and (min-width:701px){.knowledge-tree {display:none}.knowledge-open-tree {display:inline-flex}}
.knowledge-tiles {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:20px;margin:26px 0}
.knowledge-tile {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;min-height:150px;max-width:420px;padding:26px;text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:var(--ui-radius-panel);background:var(--glass);color:var(--text);box-shadow:var(--ui-shadow-panel);font:inherit;cursor:pointer}
.knowledge-tile strong {font-size:20px;color:var(--brand-dark)}
.knowledge-tile .help {margin:0}
.knowledge-breadcrumbs {display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 18px}
.knowledge-text-button {padding:4px 0;background:transparent;border:0;box-shadow:none;color:var(--brand-dark);font:inherit;cursor:pointer;text-align:left}
.knowledge-editor {display:grid;gap:18px;min-width:0}
.knowledge-editor label {display:grid;gap:8px;min-width:0;margin:0}
.knowledge-editor input,.knowledge-editor textarea {width:100%;min-width:0;font:inherit}
.knowledge-editor textarea {font-weight:400;line-height:1.6;resize:vertical;min-height:240px}
.knowledge-editor-actions {display:flex;flex-wrap:wrap;gap:12px}
.knowledge-preview[hidden],.knowledge-editor [hidden] {display:none!important}
.knowledge-history {margin-top:28px}
.knowledge-history summary {cursor:pointer;padding:8px 0}
.knowledge-history-row {display:flex;justify-content:space-between;align-items:center;gap:16px;margin:14px 0;flex-wrap:wrap}
@media(max-width:700px){.knowledge-tiles {gap:14px}.knowledge-tile {max-width:none;min-height:130px;padding:22px}.knowledge-editor-actions button {flex:1 1 150px}}

#knowledgeMain .knowledge-text-button:hover,#knowledgeMain .knowledge-text-button:active {background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;text-decoration:underline}
#knowledgeMain .knowledge-text-button:focus:not(:focus-visible) {outline:none!important}
#knowledgeMain .knowledge-text-button:focus-visible {outline:2px solid var(--brand);outline-offset:3px}
