#knowledge-page{max-width:1500px;margin:0 auto;padding:28px;color:var(--ink)}.knowledge-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 24px}.knowledge-eyebrow{font-size:11px;letter-spacing:.14em;color:var(--muted);margin:0 0 10px}.knowledge-heading h1{font-size:30px;margin:0 0 10px;letter-spacing:-.025em}.knowledge-heading p:last-child{color:var(--muted);font-size:14px;line-height:1.6;margin-bottom:0}.knowledge-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.knowledge-workspace button,.knowledge-dialog button{font:inherit;font-size:13px;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);cursor:pointer}.knowledge-workspace button:hover,.knowledge-dialog button:hover{border-color:var(--muted);background:var(--surface-soft)}.knowledge-workspace button:disabled,.knowledge-dialog button:disabled{opacity:.45;cursor:default}.knowledge-primary{background:var(--solid)!important;color:var(--on-solid)!important;border-color:var(--solid)!important}.knowledge-categories{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.knowledge-categories button{border:0;background:var(--surface-muted);padding:11px 16px}.knowledge-categories button[aria-current=true]{background:var(--solid);color:var(--on-solid)}.knowledge-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.knowledge-tools input{flex:1;min-width:220px}.knowledge-tools select{max-width:240px}.knowledge-tools input,.knowledge-tools select,.knowledge-form input,.knowledge-form select,.knowledge-form textarea{padding:11px 13px;border:1px solid var(--line);border-radius:9px;font:inherit;font-size:14px;background:var(--surface);color:var(--ink);min-height:42px}.knowledge-notice{min-height:18px;font-size:13px;color:var(--muted);margin:13px 0}.knowledge-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.knowledge-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;min-width:0}.knowledge-card-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.knowledge-status{font-size:11px;padding:4px 8px;border-radius:6px;background:var(--surface-muted);color:var(--muted)}.knowledge-status-published{background:var(--success-soft);color:var(--success)}.knowledge-status-draft{background:var(--info-soft);color:var(--info)}.knowledge-card button.knowledge-card-title{display:block;padding:0;border:0;background:transparent;text-align:left;font-size:19px;font-weight:650;line-height:1.5;margin:14px 0 8px;overflow-wrap:anywhere}.knowledge-card>p{font-size:14px;line-height:1.7;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:47px}.knowledge-card>small{display:block;margin-top:13px;color:var(--muted);font-size:12px}.knowledge-footer{display:flex;justify-content:space-between;align-items:center;margin-top:24px;color:var(--muted);font-size:12px;gap:15px}.knowledge-footer>div{display:flex;align-items:center;gap:12px}.knowledge-empty{grid-column:1/-1;min-height:240px;border:1px dashed var(--line-strong);border-radius:14px;padding:40px 24px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;text-align:center;background:var(--surface-soft);color:var(--muted)}.knowledge-empty strong{font-weight:500;font-size:15px}.knowledge-empty p{font-size:12px;max-width:620px}.knowledge-dialog{width:min(980px,calc(100vw - 40px));max-height:92dvh;border:1px solid var(--line);border-radius:16px;padding:0;background:var(--surface);color:var(--ink);overflow:auto}.knowledge-dialog::backdrop{background:#0006;backdrop-filter:blur(3px)}.knowledge-dialog>header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 28px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:1}.knowledge-dialog h2{font-size:20px;margin:0;line-height:1.5;overflow-wrap:anywhere}.knowledge-dialog-body{padding:28px}.knowledge-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.knowledge-form>label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted);min-width:0}.knowledge-form input,.knowledge-form select,.knowledge-form textarea{width:100%;box-sizing:border-box}.knowledge-wide{grid-column:1/-1}.knowledge-form textarea{resize:vertical;line-height:1.65}.knowledge-form>label.knowledge-checkbox{flex-direction:row;align-items:center}.knowledge-checkbox input{width:17px;min-height:17px}.knowledge-form [role=alert]{color:var(--danger);margin:0;font-size:13px}.knowledge-article-summary{font-size:16px;color:var(--muted);line-height:1.7;margin:20px 0}.knowledge-article-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9;margin:24px 0 32px}.knowledge-dialog-body>.knowledge-actions{border-top:1px solid var(--line);padding-top:22px;margin-top:26px}.knowledge-dialog-body>a{color:var(--info);text-decoration:underline}.knowledge-version{border-bottom:1px solid var(--line);padding:16px 0}.knowledge-version>summary{cursor:pointer;font-size:14px}.knowledge-version .knowledge-article-content{font-size:14px}.knowledge-workspace :focus-visible,.knowledge-dialog :focus-visible{outline:2px solid var(--info);outline-offset:3px}[data-nav-group=knowledge] .nav-label{white-space:normal;line-height:1.5}
@media(max-width:1000px){.knowledge-list{grid-template-columns:1fr}.knowledge-heading{align-items:flex-start;flex-direction:column}}@media(max-width:650px){#knowledge-page{padding:18px 14px}.knowledge-heading h1{font-size:25px}.knowledge-tools input{width:100%;flex-basis:100%}.knowledge-tools select{flex:1;max-width:none;min-width:0}.knowledge-card{padding:19px}.knowledge-dialog{width:calc(100vw - 16px);max-height:96dvh}.knowledge-dialog>header,.knowledge-dialog-body{padding:18px}.knowledge-form{grid-template-columns:1fr}.knowledge-footer{align-items:flex-start;flex-direction:column}.knowledge-categories{gap:6px}.knowledge-categories button{padding:8px 10px;font-size:12px}}

.knowledge-audit-identity{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;margin:18px 0;color:var(--muted);font-size:13px}.knowledge-audit-identity code{font-size:11px;overflow-wrap:anywhere}.knowledge-audit-identity small{width:100%}.knowledge-audit-change{margin:16px 0}.knowledge-audit-change h4{margin:0 0 8px;font-size:13px}.knowledge-audit-diff{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.knowledge-audit-diff>div{padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);min-width:0}.knowledge-audit-diff small{color:var(--muted);font-size:11px}.knowledge-audit-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.7;max-height:320px;overflow:auto;margin:8px 0 0}.knowledge-audit-snapshot{margin:20px 0;color:var(--muted);font-size:13px}.knowledge-audit-snapshot>summary{cursor:pointer}.knowledge-audit-snapshot .knowledge-article-content{color:var(--ink)}@media(max-width:650px){.knowledge-audit-diff{grid-template-columns:1fr}}

.knowledge-simple-form{grid-template-columns:1fr}.knowledge-files{margin-top:28px;border-top:1px solid var(--line);padding-top:20px}.knowledge-files>header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.knowledge-files h3{font-size:17px;margin:0}.knowledge-file{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.knowledge-file>div:first-child{min-width:0}.knowledge-file a{color:var(--ink);font-size:14px;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}.knowledge-file .knowledge-card-meta{margin:8px 0}.knowledge-file small{color:var(--muted);font-size:12px}.knowledge-file .knowledge-actions{flex-shrink:0}.knowledge-upload-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:13px;overflow-wrap:anywhere}.knowledge-upload-row button{flex-shrink:0}.knowledge-file [role=alert]{color:var(--danger);font-size:12px}@media(max-width:650px){.knowledge-file{align-items:flex-start;flex-direction:column}.knowledge-files>header{align-items:flex-start;flex-direction:column}.knowledge-upload-row{align-items:flex-start;flex-direction:column}}

.knowledge-file-pages{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;font-size:13px;color:var(--muted)}

.knowledge-file-main{display:flex;align-items:center;gap:18px;min-width:0}.knowledge-file-info{min-width:0}.knowledge-thumbnail{flex:0 0 104px;width:104px;text-align:center}.knowledge-thumbnail button.knowledge-thumbnail-open{display:flex;align-items:center;justify-content:center;width:104px;min-height:88px;padding:0;overflow:hidden;border-radius:9px;background:var(--surface-soft)}.knowledge-thumbnail img{display:block;width:102px;height:88px;object-fit:contain}.knowledge-image-status{display:block;padding:12px;font-size:12px;line-height:1.6;color:var(--muted)}.knowledge-thumbnail button.knowledge-image-retry{margin-top:6px;padding:6px 8px;font-size:12px;width:100%}.knowledge-image-dialog{width:min(1120px,calc(100vw - 32px))}.knowledge-image-dialog>header button{flex-shrink:0;white-space:nowrap}.knowledge-image-stage{text-align:center;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--surface-soft);border-radius:10px;overflow:hidden}.knowledge-image-stage>div{width:100%;min-width:0}.knowledge-image-stage img{display:block;max-width:100%;max-height:70dvh;width:auto;height:auto;object-fit:contain;margin:auto}.knowledge-image-stage.knowledge-image-failed{padding:24px}.knowledge-image-dialog .knowledge-actions a{color:var(--ink);text-decoration:underline;font-size:14px}.knowledge-thumbnail [hidden],.knowledge-image-stage [hidden],.knowledge-document-stage [hidden]{display:none!important}.knowledge-document-stage{min-height:240px;text-align:center;background:var(--surface-soft);border-radius:10px;overflow:hidden}.knowledge-document-stage>p{padding:32px 20px 12px;color:var(--muted);font-size:14px}.knowledge-document-stage>button{margin:0 20px 24px}.knowledge-document-stage iframe{display:block;width:100%;height:70dvh;border:0;background:var(--surface)}@media(max-width:650px){.knowledge-file-main{align-items:flex-start;gap:12px;width:100%}.knowledge-thumbnail{flex-basis:88px;width:88px}.knowledge-thumbnail button.knowledge-thumbnail-open{width:88px;min-height:78px}.knowledge-thumbnail img{width:86px;height:78px}.knowledge-image-dialog{width:calc(100vw - 16px)}.knowledge-image-stage img{max-height:65dvh}.knowledge-document-stage iframe{height:65dvh}}
.knowledge-image-dialog::backdrop{backdrop-filter:none}
.knowledge-document-stage{display:flex;flex-direction:column;align-items:center;gap:12px;padding:0 0 18px}.knowledge-document-stage canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 3px 18px #0002}.knowledge-document-stage canvas[hidden],.knowledge-document-pages[hidden]{display:none!important}.knowledge-document-pages{display:flex;align-items:center;justify-content:center;gap:14px;font-size:13px;color:var(--muted)}.knowledge-document-pages button{padding:7px 12px}
.knowledge-workspace button.knowledge-card{display:block;width:100%;padding:24px;text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink)}.knowledge-workspace button.knowledge-card:hover{border-color:var(--info);background:var(--surface-soft)}.knowledge-card .knowledge-card-title{display:block;font-size:19px;font-weight:650;line-height:1.5;margin:14px 0 8px;overflow-wrap:anywhere}@media(max-width:650px){.knowledge-workspace button.knowledge-card{padding:19px}}
.knowledge-card-shell{position:relative;min-width:0}.knowledge-card-shell .knowledge-card{min-height:118px;padding-right:108px!important}.knowledge-workspace button.knowledge-card-delete{position:absolute;top:18px;right:18px;padding:6px 10px;font-size:12px;color:var(--danger);border-color:transparent;background:var(--surface)}.knowledge-workspace button.knowledge-card-delete:hover,.knowledge-dialog button.knowledge-danger:hover{color:var(--danger);border-color:var(--danger);background:var(--surface-soft)}.knowledge-dialog button.knowledge-danger{color:var(--danger)}@media(max-width:650px){.knowledge-card-shell .knowledge-card{padding-right:85px!important}.knowledge-workspace button.knowledge-card-delete{top:15px;right:12px}}
