.knowledge-section,.knowledge-editor,.knowledge-confirm{--km-ink:#173b32;--km-muted:#657a71;--km-line:#dce7df;--km-accent:#216c51;--km-soft:#f1f7f2;color:var(--km-ink);font-family:inherit}.knowledge-section{border:1px solid var(--km-line);background:#fff;border-radius:24px;padding:28px;scroll-margin-top:24px;box-shadow:0 8px 32px #214b3610}.knowledge-heading{align-items:center;gap:16px;margin-bottom:24px;display:flex}.knowledge-icon{width:48px;height:48px;color:var(--km-accent);background:#eaf3ec;border-radius:15px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.knowledge-heading>div{flex:1}.knowledge-heading h2{letter-spacing:-.6px;margin:3px 0 5px;font-size:24px;font-weight:650}.knowledge-heading p,.knowledge-control p{color:var(--km-muted);margin:0;font-size:14px;line-height:1.6}.knowledge-eyebrow{letter-spacing:1.4px;font-weight:700;color:var(--km-accent)!important;font-size:10px!important}.knowledge-section button,.knowledge-editor button,.knowledge-confirm button{border:1px solid var(--km-line);min-height:40px;color:var(--km-ink);cursor:pointer;background:#fff;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:9px 13px;font-size:13px;font-weight:600;display:inline-flex}.knowledge-section button:hover,.knowledge-editor button:hover{background:var(--km-soft)}.knowledge-section .knowledge-primary,.knowledge-editor .knowledge-primary{background:var(--km-accent);border-color:var(--km-accent);color:#fff}.knowledge-primary:hover{filter:brightness(1.08)}.knowledge-section button:disabled,.knowledge-editor button:disabled,.knowledge-confirm button:disabled{opacity:.5;cursor:not-allowed}.knowledge-control{background:linear-gradient(110deg,#f0f7f1,#f9fbf8);border:1px solid #d9e8dd;border-radius:16px;align-items:center;gap:20px;margin-bottom:22px;padding:20px 22px;display:flex}.knowledge-control>div{flex:1}.knowledge-control h3{margin:0 0 4px;font-size:15px;font-weight:650}.knowledge-toggle{cursor:pointer;flex-shrink:0;width:44px;height:26px;display:block;position:relative}.knowledge-toggle input{opacity:0;width:100%;height:100%;margin:0;position:absolute}.knowledge-toggle span{pointer-events:none;background:#b3c2ba;border-radius:20px;width:44px;height:26px;transition:background .15s;display:block}.knowledge-toggle span:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .15s;display:block;position:absolute;top:3px;left:3px;box-shadow:0 1px 4px #173b3230}.knowledge-toggle input:checked+span{background:var(--km-accent)}.knowledge-toggle input:checked+span:after{transform:translate(18px)}.knowledge-toggle input:focus-visible+span{outline-offset:3px;outline:3px solid #76b99b}.knowledge-toolbar{align-items:center;gap:10px;margin-bottom:18px;display:flex}.knowledge-search{border:1px solid var(--km-line);color:var(--km-muted);border-radius:10px;flex:1;align-items:center;gap:8px;padding:0 12px;display:flex}.knowledge-search input{outline:none;width:100%;min-width:0;height:42px;background:0 0!important;border:0!important;padding:0!important}.knowledge-toolbar select,.knowledge-editor select,.knowledge-editor input:not([type=checkbox]),.knowledge-editor textarea{border:1px solid var(--km-line);color:var(--km-ink);font:inherit;background:#fff;border-radius:9px;min-width:0;min-height:42px;padding:10px 12px;font-size:14px}.knowledge-toolbar select{max-width:190px;font-size:13px}.knowledge-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.knowledge-note{border:1px solid var(--km-line);border-radius:16px;flex-direction:column;gap:12px;min-width:0;padding:20px;display:flex}.knowledge-note-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.knowledge-kind{letter-spacing:.2px;color:var(--km-muted);font-size:11px;font-weight:650}.knowledge-status{text-transform:capitalize;color:#69766f;background:#f0f2ef;border-radius:20px;padding:4px 8px;font-size:10px;font-weight:600}.knowledge-status.active{color:#216c51;background:#e8f4ea}.knowledge-status.scheduled{color:#496192;background:#eef2fe}.knowledge-status.expired{color:#936434;background:#fff1e6}.knowledge-note-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:15px;font-weight:500;line-height:1.7}.knowledge-note-meta{color:var(--km-muted);flex-wrap:wrap;gap:8px 14px;font-size:11px;display:flex}.knowledge-note-meta span,.knowledge-dates{align-items:center;gap:5px;display:flex}.knowledge-dates{color:var(--km-muted);align-items:flex-start;font-size:11px;line-height:1.6}.knowledge-dates svg{flex-shrink:0;margin-top:2px}.knowledge-note-bottom{border-top:1px solid #edf1ec;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:12px;display:flex}.knowledge-note-bottom small{color:var(--km-muted);font-size:10px;line-height:1.7}.knowledge-note-bottom>div{gap:6px;display:flex}.knowledge-note-bottom button{min-height:36px;padding:7px 9px;font-size:11px}.knowledge-section .knowledge-delete{color:#aa4941}.knowledge-source{color:var(--km-accent);align-items:center;gap:4px;font-size:11px;display:inline-flex}.knowledge-empty{text-align:center;background:#fafcf9;border:1px dashed #d5e2d7;border-radius:16px;grid-column:1/-1;padding:40px 24px 44px}.knowledge-empty h3{letter-spacing:-.3px;margin:18px 0 8px;font-size:18px}.knowledge-empty p{max-width:440px;color:var(--km-muted);margin:0 auto 20px;font-size:14px;line-height:1.7}.knowledge-retention{color:var(--km-muted);margin:18px 0 0;font-size:11px;line-height:1.8}.knowledge-error{color:#913b2b;background:#fff1ed;border:1px solid #efd3c8;border-radius:10px;margin:12px 0;padding:12px;font-size:13px;line-height:1.6}.knowledge-error p{margin:4px 0}.knowledge-error button{margin:8px 0 0}.knowledge-notice{color:#216c51;background:#edf7ed;border-radius:10px;align-items:center;gap:8px;padding:12px;font-size:13px;display:flex}.knowledge-loading{color:var(--km-muted);padding:24px}.knowledge-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1500;background:#132e285c;position:fixed;inset:0}.knowledge-editor,.knowledge-confirm{z-index:1501;background:#fff;border:1px solid #dce7df;border-radius:22px;width:min(600px,100vw - 32px);max-height:calc(100dvh - 32px);padding:26px;position:fixed;top:50%;left:50%;overflow:auto;transform:translate(-50%,-50%);box-shadow:0 24px 100px #0a281e33}.knowledge-editor header{align-items:center;gap:12px;display:flex}.knowledge-editor header>div{flex:1}.knowledge-editor h2{letter-spacing:-.5px;margin:3px 0;font-size:22px;font-weight:650}.knowledge-editor .knowledge-close{border:0;min-height:36px;padding:8px}.knowledge-description{color:var(--km-muted);margin:16px 0 22px;font-size:13px;line-height:1.7}.knowledge-editor fieldset{border:0;min-width:0;margin:0;padding:0}.knowledge-editor label{margin:15px 0 7px;font-size:12px;font-weight:650;display:block}.knowledge-editor input:not([type=checkbox]),.knowledge-editor select,.knowledge-editor textarea{box-sizing:border-box;width:100%}.knowledge-editor textarea{resize:vertical;min-height:105px;line-height:1.6}.knowledge-counter{color:var(--km-muted);text-align:right;margin-top:5px;font-size:10px;display:block}.knowledge-optional{color:var(--km-muted);margin-left:3px;font-size:10px;font-weight:400}.knowledge-form-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.knowledge-hint{color:var(--km-muted);margin:6px 0 0;font-size:11px;line-height:1.7}.knowledge-editor .knowledge-checkbox{background:#f2f7f1;border-radius:10px;align-items:flex-start;gap:9px;padding:12px;font-size:12px;font-weight:400;line-height:1.7;display:flex}.knowledge-checkbox input{accent-color:#216c51;flex-shrink:0;width:16px;height:16px;margin-top:3px}.knowledge-advice{color:#50644f;background:#f4f7f1;border:1px solid #e2e9dc;border-radius:10px;align-items:flex-start;gap:10px;margin-top:16px;padding:13px 15px;font-size:12px;line-height:1.7;display:flex}.knowledge-advice svg{flex-shrink:0;margin-top:3px}.knowledge-advice p{margin:0}.knowledge-editor footer{border-top:1px solid var(--km-line);justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;display:flex}.knowledge-confirm{width:min(420px,100vw - 32px)}.knowledge-confirm h2{margin:0 0 12px;font-size:20px;font-weight:650}.knowledge-confirm p{color:var(--km-muted);font-size:13px;line-height:1.7}.knowledge-confirm .knowledge-delete-preview{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--km-ink);background:#f5f7f3;border-radius:10px;padding:12px}.knowledge-confirm>div{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.knowledge-confirm .knowledge-danger{color:#fff;background:#ac493e;border-color:#ac493e}.knowledge-remember{color:#64776c;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0;font-size:11px;display:flex}.knowledge-remember>button{color:#39745b;cursor:pointer;font:inherit;background:0 0;border:0;align-items:center;gap:5px;padding:5px 0;display:inline-flex}.knowledge-provenance{color:#53694f;background:#f2f7f0;border:1px solid #dce8d8;border-radius:10px;margin-top:14px;padding:12px 14px;font-size:11px}.knowledge-provenance summary{cursor:pointer;font-weight:600}.knowledge-provenance p{margin:8px 0;line-height:1.7}.knowledge-provenance a{color:#246b4c;font-weight:600}:is(.knowledge-section :focus-visible,.knowledge-editor :focus-visible,.knowledge-confirm :focus-visible){outline-offset:2px;outline:3px solid #83bda0}@media (max-width:800px){.knowledge-list{grid-template-columns:1fr}.knowledge-heading{flex-wrap:wrap}.knowledge-heading>div{min-width:180px}.knowledge-heading>.knowledge-primary{margin-left:64px}.knowledge-toolbar{flex-wrap:wrap}.knowledge-search{flex-basis:100%}.knowledge-toolbar select{flex:1;max-width:none}}@media (max-width:480px){.knowledge-section{border-radius:18px;padding:18px}.knowledge-heading h2{font-size:20px}.knowledge-heading>.knowledge-primary{width:100%;margin-left:0}.knowledge-control{padding:15px}.knowledge-editor{border-radius:18px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:20px}.knowledge-form-grid{gap:10px}.knowledge-note{padding:16px}.knowledge-editor h2{font-size:20px}.knowledge-editor footer button{flex:1}.knowledge-note-bottom button{min-height:40px}}@media (prefers-reduced-motion:reduce){.knowledge-toggle span,.knowledge-toggle span:after{transition:none}}@media (max-width:480px){.knowledge-editor input:not([type=checkbox]),.knowledge-editor textarea,.knowledge-editor select,.knowledge-search input{font-size:16px}}
