/* 지식 베이스 · 세컨드 브레인 × 온톨로지 */
.kb{min-height:100%}
.kb-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:10px;padding:8px 18px;background:#f4f7fbe8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid #e1e8f1}
.kb-back{width:28px;height:28px;color:#7d8ea8}
.kb-back .ico{width:16px}
.kb-tabs{display:flex;gap:2px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.kb-tabs::-webkit-scrollbar{display:none}
.kb-tabs button{display:flex;align-items:center;gap:6px;padding:7px 11px;border-radius:8px;font-size:10px;color:#71839c;white-space:nowrap}
.kb-tabs button .ico{width:14px;height:14px}
.kb-tabs button:hover{background:#ffffffc0}
.kb-tabs button.active{background:#fff;color:#4c73a6;font-weight:600;box-shadow:0 1px 4px #5d72901c}
.kb-tabs i{font-style:normal;font-size:8px;background:#db8e82;color:#fff;border-radius:8px;padding:1px 5px;font-weight:600}
.kb-sync{font-size:8px;color:#97a5b8;white-space:nowrap}
.kb-sync i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#78ac9b;margin-right:4px;vertical-align:1px;animation:kb-pulse 2.4s ease-in-out infinite}
.kb-page{padding:20px 22px 30px}
.kb-page>.app-heading{margin-bottom:16px}
.kb-muted{font-size:9px;color:#a1adbf;line-height:1.8}
.kb-stack{display:flex;flex-direction:column;gap:12px;min-width:0}
.kb-card{border:1px solid #e0e7f0;border-radius:13px;background:#fff9;padding:14px 15px}
.kb-card-head{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:#5b6f8d;margin-bottom:10px}
.kb-card-head .ico{width:15px;color:#8aa0bb}
.kb-card-head .badge,.kb-card-head .text-button{margin-left:auto}
.kb-card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.kb-dot{width:8px;height:8px;border-radius:50%;background:var(--c);flex-shrink:0;margin-top:4px}

/* 공통 칩 · 링크 */
.kb-chip{display:inline-flex;align-items:center;gap:3px;font-size:9px;font-weight:600;padding:1px 6px 1px 4px;margin:0 1px;border-radius:6px;color:var(--c);background:color-mix(in srgb,var(--c) 11%,#fff);border:1px solid color-mix(in srgb,var(--c) 28%,#fff);line-height:1.7;vertical-align:1px}
.kb-chip .ico{width:11px;height:11px}
.kb-chip:hover{background:color-mix(in srgb,var(--c) 20%,#fff)}
.kb-wikilink{color:#4c76ad;border-bottom:1px dashed #9db6d6;padding:0;font-size:inherit;line-height:inherit;font-weight:500}
.kb-wikilink:hover{background:#e7eef9}
.kb-wikilink.missing{color:#a6b2c4;border-color:#d4dbe6}
.kb-mini{display:inline-flex;align-items:center;gap:4px;font-size:8px;padding:4px 8px;border-radius:6px;border:1px solid #d9e2ee;background:#fff;color:#62799a;white-space:nowrap}
.kb-mini .ico{width:11px;height:11px}
.kb-mini:hover{background:#eef4fb}
.kb-type-dot{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;flex-shrink:0;color:var(--c);background:color-mix(in srgb,var(--c) 13%,#fff);border:1px solid color-mix(in srgb,var(--c) 24%,#fff)}
.kb-type-dot .ico{width:16px;height:16px}
.kb-type-dot.sm{width:24px;height:24px;border-radius:7px}
.kb-type-dot.sm .ico{width:13px;height:13px}
.kb-type-dot.xs{width:18px;height:18px;border-radius:5px}
.kb-type-dot.xs .ico{width:11px;height:11px}
.kb-type-dot.lg{width:40px;height:40px;border-radius:12px}
.kb-type-dot.lg .ico{width:21px;height:21px}
.kb-para-badge{display:inline-flex;align-items:center;gap:4px;font-size:8px;font-weight:600;padding:3px 7px;border-radius:5px;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff)}
.kb-para-badge .ico{width:11px;height:11px}
.kb-link-row,.kb-obj-row{display:flex;align-items:flex-start;gap:8px;width:100%;text-align:left;padding:7px 6px;border-radius:8px}
.kb-link-row:hover,.kb-obj-row:hover{background:#eef3fa}
.kb-link-row strong,.kb-obj-row strong{display:block;font-size:10px;font-weight:500;color:#566c8b}
.kb-link-row small,.kb-obj-row small{display:block;font-size:8px;color:#9eabbe;margin-top:3px;line-height:1.5}
.kb-obj-row{align-items:center}

/* 홈 */
.kb-hero{display:flex;align-items:center;gap:18px;padding:22px 24px;border-radius:16px;border:1px solid #e0e7f1;background:linear-gradient(120deg,#e8eef9 0%,#eef5f3 55%,#f2edf9 100%);overflow:hidden}
.kb-hero-text{flex:1;min-width:0}
.kb-hero .eyebrow{color:#7d90ad;font-size:8px;letter-spacing:1.6px}
.kb-hero h2{font-size:21px;font-weight:600;letter-spacing:-.8px;margin:9px 0 7px;color:#33496b}
.kb-hero p{font-size:10px;line-height:1.85;color:#7d8ca3}
.kb-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:15px}
.kb-stat{background:#ffffffa8;border:1px solid #fff;border-radius:10px;padding:9px 11px}
.kb-stat span{font-size:8px;color:#8c9ab0}
.kb-stat strong{display:block;font-size:18px;font-weight:500;letter-spacing:-.6px;margin-top:3px;color:#40567a}
.kb-stat small{font-size:9px;color:#93a1b6;margin-left:2px;font-weight:400}
.kb-hero-art{width:168px;flex-shrink:0}
.kb-hero-art line{stroke:#c3cfe0;stroke-width:1.2}
.kb-hero-art circle{stroke:#fff;stroke-width:2;animation:kb-breathe 3.4s ease-in-out infinite}
.kb-ask{margin-top:14px;padding:14px;border-radius:14px;border:1px solid #dfe6ef;background:#fffb}
.kb-ask form{display:flex;align-items:center;gap:8px;border:1px solid #d9e3ee;border-radius:11px;background:#fff;padding:5px 5px 5px 11px}
.kb-ask-icon{color:#9b8ab9;display:flex}
.kb-ask-icon .ico{width:17px}
.kb-ask input{flex:1;min-width:0;border:0;outline:none;background:none;font-size:11px;color:#4f6584;height:30px}
.kb-ask input::placeholder{color:#a8b2c3}
.kb-ask .primary{padding:8px 16px}
.kb-suggest{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}
.kb-suggest>span{font-size:8px;color:#a3afc1;margin-right:2px}
.kb-suggest button{font-size:9px;padding:5px 10px;border-radius:20px;border:1px solid #dbe3ee;background:#fff;color:#6d82a0}
.kb-suggest button:hover{border-color:#b9cbe2;color:#4c73a6}
.kb-qa{margin-top:13px;border-top:1px solid #e6ecf4;padding-top:13px}
.kb-q{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:500;color:#4d6385}
.kb-q .ico{width:14px;color:#94a4bb}
.kb-trace{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
.kb-trace span{display:inline-flex;align-items:center;gap:3px;font-size:8px;padding:4px 8px;border-radius:6px;background:#eef2f8;color:#9aa7ba}
.kb-trace span .ico{width:10px;height:10px}
.kb-trace span.done{background:#e6f1ec;color:#5f9580}
.kb-trace span.run{background:#eeeaf8;color:#8571bd;animation:kb-pulse 1s ease-in-out infinite}
.kb-a{margin-top:12px;font-size:11px;line-height:1.95;color:#5a6e8c;animation:kb-rise .35s ease-out}
.kb-a strong{color:#3f5577;font-weight:600}
.kb-cite{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:4px;background:#e5edf9;color:#4c76ad;font-size:8px;font-weight:700;vertical-align:2px;margin:0 2px;padding:0}
.kb-cite:hover{background:#cfdcf2}
.kb-sources{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:9px}
.kb-sources>span{font-size:8px;color:#a3afc1;width:26px}
.kb-source{display:inline-flex;align-items:center;gap:5px;font-size:9px;padding:4px 9px 4px 4px;border-radius:7px;border:1px solid #dfe6ef;background:#fff;color:#5d7392}
.kb-source b{display:grid;place-items:center;width:15px;height:15px;border-radius:4px;background:#e5edf9;color:#4c76ad;font-size:8px}
.kb-source:hover{border-color:#b9cbe2}
.kb-section-title{display:flex;align-items:baseline;gap:10px;margin:22px 0 10px}
.kb-section-title h3{font-size:12px;font-weight:600;color:#4d6182}
.kb-section-title span{font-size:8px;letter-spacing:.6px;color:#9eabbe}
.kb-code{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.kb-code button{position:relative;text-align:left;padding:14px;border-radius:12px;border:1px solid #e0e7f0;background:#fff9}
.kb-code button:hover{background:#fff;border-color:#c5d4e7;transform:translateY(-2px)}
.kb-code button:not(:last-child):after{content:'';position:absolute;right:-9px;top:50%;width:6px;height:6px;border-top:1.5px solid #b7c4d6;border-right:1.5px solid #b7c4d6;transform:translateY(-50%) rotate(45deg)}
.kb-code b{font-size:8px;letter-spacing:.8px;color:#9fadc1;font-weight:600}
.kb-code strong{display:block;font-size:13px;font-weight:600;margin:7px 0 5px;color:#435979}
.kb-code p{font-size:9px;color:#8e9cb1;line-height:1.7;min-height:31px}
.kb-code small{display:flex;align-items:center;gap:4px;font-size:8px;color:#5f86b6;margin-top:9px}
.kb-code small .ico{width:11px}
.kb-home-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;margin-top:16px;align-items:start}
.kb-resurface{background:linear-gradient(130deg,#f3f0fb,#f6f9fd)}
.kb-resurface>p{font-size:10px;line-height:1.9;color:#66799a}
.kb-resurface blockquote,.kb-body blockquote{margin:10px 0 0;padding:9px 13px;border-left:3px solid #c3b7e0;background:#ffffffa0;border-radius:0 8px 8px 0;font-size:10px;line-height:1.8;color:#6f7f99}

/* 노트 본문 */
.kb-note-layout{display:grid;grid-template-columns:minmax(0,1fr) 236px;gap:22px;align-items:start}
.kb-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:9px;color:#93a1b6}
.kb-crumb .badge .ico{width:10px;height:10px;vertical-align:-1px}
.kb-note h1{font-size:23px;letter-spacing:-.9px;font-weight:600;margin:11px 0 8px;color:#33496b}
.kb-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:9px;color:#93a1b6}
.kb-meta .ico{width:11px;height:11px;vertical-align:-1px;margin-right:2px}
.kb-tag{color:#6f8fb3}
.kb-layer{display:flex;align-items:center;gap:10px;margin:16px 0 4px;padding:8px 0;border-top:1px solid #e6ecf4;border-bottom:1px solid #e6ecf4}
.kb-layer>span{font-size:8px;letter-spacing:.5px;color:#9eabbe}
.kb-body{font-size:11.5px;line-height:2;color:#566a86;margin-top:10px}
.kb-body h3{font-size:12px;margin:18px 0 4px;color:#3f5170}
.kb-body h3:first-child{margin-top:4px}
.kb-body p{margin:6px 0}
.kb-body ul{padding-left:18px;margin:4px 0}
.kb-body mark{background:linear-gradient(transparent 55%,#f5e3ac 55%);color:inherit;padding:0 1px}
.kb-body.compact{font-size:10px;line-height:1.85;margin-top:0}
.kb-body.compact h3{font-size:10px;margin:10px 0 2px}
.kb-todos{list-style:none;padding-left:0!important;margin-top:8px!important}
.kb-todos li{display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:9px;background:#f3f6fb;margin:5px 0;line-height:1.6}
.kb-todos li>span:nth-child(2){flex:1}
.kb-todos li.sent>span:nth-child(2){color:#9aa8bb}
.kb-box{width:14px;height:14px;border:1.5px solid #b9c7da;border-radius:4px;display:grid;place-items:center;flex-shrink:0;color:#fff}
.kb-todos li.sent .kb-box{background:#88b2a4;border-color:#88b2a4}
.kb-box .ico{width:10px;height:10px}
.kb-highlights{margin:6px 0;padding-left:20px}
.kb-highlights li{padding:7px 0;border-bottom:1px dashed #e3e9f1}
.kb-highlights li::marker{color:#c0a560;font-weight:600}
.kb-summary{display:flex;gap:12px;padding:15px;border-radius:12px;background:linear-gradient(120deg,#eeedf8,#f1f5fa);border:1px solid #e4e4f2;animation:kb-rise .3s ease-out}
.kb-summary>.ico{width:18px;color:#9585b8;flex-shrink:0;margin-top:3px}
.kb-summary strong{font-size:10px;color:#8c81a9}
.kb-summary p{font-size:12px;line-height:1.9;color:#4f6383;margin:4px 0!important}
.kb-summary small{font-size:8px;color:#a3abc0}
.kb-express{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:22px;padding-top:14px;border-top:1px solid #e6ecf4}
.kb-express>span{display:flex;align-items:center;gap:4px;font-size:9px;color:#8f9db2;margin-right:3px}
.kb-express>span .ico{width:13px;color:#c0a560}
.kb-rail{display:flex;flex-direction:column;gap:10px;position:sticky;top:62px}
.kb-rail section{border:1px solid #e0e7f0;border-radius:12px;background:#fff9;padding:11px 10px}
.kb-rail h4{display:flex;align-items:center;gap:5px;font-size:9px;font-weight:600;color:#7d8ca3;margin:0 0 6px 4px}
.kb-rail h4 span{margin-left:auto;font-weight:400;color:#a1adbf}
.kb-rail h4 .ico{width:12px;color:#9585b8}
.kb-rail .kb-muted{padding:0 4px 4px}
.kb-sug{background:linear-gradient(140deg,#f4f1fb,#fbfcfe)!important;border-style:dashed!important;border-color:#d6cdea!important}
.kb-sug-row{padding:6px 4px;border-top:1px solid #ebe6f4}
.kb-sug-row:first-of-type{border-top:0}
.kb-sug-row .kb-wikilink{font-size:10px}
.kb-sug-row small{display:block;font-size:8px;color:#9d97b4;margin:4px 0 6px}
.kb-local{width:100%;display:block}
.kb-local line{stroke:#cfd9e6;stroke-width:1}
.kb-local line.obj{stroke-dasharray:3 3;stroke:#d8cfe7}
.kb-local .center{fill:var(--c);stroke:#fff;stroke-width:2.5}
.kb-lnode{cursor:pointer}
.kb-lnode circle{fill:var(--c);stroke:#fff;stroke-width:1.5}
.kb-lnode rect{fill:#fff;stroke:var(--c);stroke-width:1.5}
.kb-lnode text{font-size:8px;fill:#6d7f99;text-anchor:middle}
.kb-lnode:hover text{fill:#3e5a88;font-weight:600}

/* 캡처 */
.kb-capture{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start}
.kb-capture-form{border:1px solid #d9e3ee;border-radius:14px;background:#fff;padding:12px}
.kb-capture textarea{width:100%;min-height:96px;resize:vertical;border:0;outline:none;font-size:12px;line-height:1.85;color:#4f6584;background:none;font-family:inherit}
.kb-capture textarea::placeholder{color:#a8b2c3}
.kb-capture-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;border-top:1px solid #edf1f6;padding-top:10px}
.kb-capture-bar .kb-suggest{margin-top:0}
.kb-capture-bar .primary{display:flex;align-items:center;gap:6px;white-space:nowrap}
.kb-pipeline{margin-top:12px;border:1px solid #e0e7f0;border-radius:13px;background:#fff9;padding:4px 14px}
.kb-pstep{display:flex;gap:11px;padding:10px 0;border-bottom:1px solid #edf1f6;transition:opacity .2s}
.kb-pstep:last-of-type{border-bottom:0}
.kb-pstep .dot{width:19px;height:19px;border-radius:50%;border:1.5px solid #cfd9e6;display:grid;place-items:center;flex-shrink:0;color:#fff;margin-top:1px}
.kb-pstep .dot .ico{width:11px;height:11px}
.kb-pstep.done .dot{background:#88b2a4;border-color:#88b2a4}
.kb-pstep.run .dot{border-color:#8571bd;border-top-color:transparent;animation:kb-spin .8s linear infinite}
.kb-pstep.wait{opacity:.45}
.kb-pstep strong{display:block;font-size:10px;font-weight:600;color:#4f6383}
.kb-pstep small{display:block;font-size:9px;color:#8e9cb1;margin-top:4px;line-height:1.8}
.kb-pstep.done small{color:#5d7392;animation:kb-rise .3s ease-out}
.kb-result{display:flex;align-items:center;gap:10px;margin:4px -6px 8px;padding:12px;border-radius:11px;background:#e2efeaa0;border:1px solid #d3e5de;animation:kb-rise .35s ease-out}
.kb-result>.ico{width:18px;color:#5f9580}
.kb-result>div{flex:1;min-width:0}
.kb-result strong{display:block;font-size:11px;color:#4d7f6b}
.kb-result small{display:block;font-size:9px;color:#6f9a87;margin-top:3px}
.kb-empty{margin-top:12px;border:1px dashed #d6dfeb;border-radius:13px;padding:24px;text-align:center;color:#a3afc1}
.kb-empty .ico{width:20px;color:#b5a8cf}
.kb-empty p{font-size:9px;margin-top:6px}
.kb-inbox-item{padding:9px 0;border-top:1px solid #edf1f6}
.kb-inbox-item:first-of-type{border-top:0;padding-top:0}
.kb-inbox-item p{font-size:10px;line-height:1.7;color:#5d7090}
.kb-inbox-item>div{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.kb-inbox-item small{font-size:8px;color:#a3afc1}

/* 라이브러리 */
.kb-para-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.kb-para-card{position:relative;text-align:left;padding:13px;border-radius:12px;border:1px solid #e0e7f0;background:#fff9}
.kb-para-card:hover{background:#fff;border-color:color-mix(in srgb,var(--c) 35%,#fff)}
.kb-para-card.active{background:color-mix(in srgb,var(--c) 8%,#fff);border-color:var(--c)}
.kb-para-card strong{display:block;font-size:12px;font-weight:600;margin:10px 0 4px;color:#435979}
.kb-para-card strong small{font-size:8px;font-weight:400;color:#9eabbe;margin-left:3px}
.kb-para-card p{font-size:9px;color:#8e9cb1}
.kb-para-card b{position:absolute;right:13px;top:12px;font-size:20px;font-weight:500;color:var(--c)}
.kb-lib-bar{display:flex;align-items:center;gap:12px;margin:16px 0 8px}
.kb-lib-bar>span{font-size:10px;font-weight:600;color:#5b6f8d;white-space:nowrap}
.kb-lib-bar .text-button{font-size:9px;white-space:nowrap;color:#5f86b6}
.kb-lib-bar .search-field{max-width:320px;margin-left:auto;padding:9px 12px}
.kb-list{display:flex;flex-direction:column;gap:6px}
.kb-group-title{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;color:#566c8b;margin:12px 0 2px}
.kb-group-title:first-child{margin-top:0}
.kb-group-title i{width:7px;height:7px;border-radius:2px;background:var(--c)}
.kb-group-title small{font-size:8px;font-weight:400;color:#a1adbf}
.kb-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 13px;border:1px solid #e3e9f1;border-radius:11px;background:#fff9}
.kb-row:hover{background:#fff;border-color:#c5d4e7}
.kb-row-main{flex:1;min-width:0}
.kb-row-main strong{display:block;font-size:11px;font-weight:500;color:#465c7d}
.kb-row-main strong .badge{font-weight:400;vertical-align:1px;margin-left:3px}
.kb-row-main strong .badge .ico{width:9px;height:9px;vertical-align:-1px}
.kb-row-main small{display:block;font-size:9px;color:#93a1b6;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-row-meta{display:flex;gap:10px;font-size:8px;color:#a1adbf;white-space:nowrap;flex-shrink:0}
.kb-row-meta .ico{width:10px;height:10px;vertical-align:-1px}

/* 그래프 공통 */
.kb-graph-wrap{position:relative;border:1px solid #dfe6ef;border-radius:14px;background:radial-gradient(ellipse at 50% 40%,#ffffff,#eef3f9);overflow:hidden}
.kb-graph-wrap svg{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none}
.kb-graph-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-top:1px solid #e6ecf4;background:#ffffff8c}
.kb-graph-legend{display:flex;flex-wrap:wrap;gap:4px 11px;font-size:8px;color:#8495ad}
.kb-graph-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px;vertical-align:-.5px}
.kb-graph-legend i.sq{border-radius:2px;background:#fff;border:1.5px solid #9780b6}
.kb-graph-stat{font-size:8px;color:#9eabbe;white-space:nowrap}
.kb-graph-note{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:12px;font-size:9px;color:#8e9cb1;line-height:1.8}
.kb-graph-note>.ico{width:14px;color:#c0a560}
.secondary.on{background:#eef3fb;border-color:#bfd0e6;color:#4c73a6}

/* 노트 그래프 */
.kb-graph{touch-action:none}
.kb-gedge{stroke:#c8d3e1;stroke-width:1.2;transition:opacity .2s}
.kb-gedge.obj{stroke:#d8cfe7;stroke-dasharray:3 3}
.kb-gnode{cursor:grab;transition:opacity .2s}
.kb-graph.dragging .kb-gnode{cursor:grabbing}
.kb-gnode circle{fill:var(--c);stroke:#fff;stroke-width:2.2;transition:stroke-width .15s}
.kb-gnode rect{fill:#fff;stroke:var(--c);stroke-width:1.8}
.kb-gnode text{font-size:9.5px;fill:#5d6f8a;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#f7f9fc;stroke-width:3.5px;stroke-linejoin:round}
.kb-gnode.obj text{font-size:8.5px;fill:#8a7cb0;font-weight:600}
.kb-gnode:hover circle{stroke-width:3.5}
.kb-gnode:focus-visible{outline:none}
.kb-gnode:focus-visible circle,.kb-gnode:focus-visible rect{stroke:#447eea;stroke-width:3}
.kb-graph.hovering .kb-gnode:not(.near){opacity:.2}
.kb-graph.hovering .kb-gedge:not(.near){opacity:.1}
.kb-graph.hovering .kb-gedge.near{stroke:#7f9cc4;stroke-width:1.8}
.kb-graph.hovering .kb-gnode.near text{fill:#34507d;font-weight:600}

/* 온톨로지 */
.kb-onto{display:grid;grid-template-columns:minmax(0,1fr) 236px;gap:14px;align-items:start}
.kb-onto-main{min-width:0}
.kb-queries{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px}
.kb-queries>span{font-size:8px;letter-spacing:.5px;color:#9eabbe;margin-right:2px}
.kb-queries button{font-size:9px;padding:5px 10px;border-radius:20px;border:1px solid #dbe3ee;background:#fff;color:#6d82a0}
.kb-queries button:hover{border-color:#b9cbe2}
.kb-queries button.active{background:#5d7fb1;border-color:#5d7fb1;color:#fff}
.kb-onode{cursor:pointer;transition:opacity .25s}
.kb-onode .halo{fill:var(--c);opacity:0;transition:opacity .2s;transform-box:fill-box;transform-origin:center}
.kb-onode:hover .halo{opacity:.1}
.kb-onode.sel .halo{opacity:.16;animation:kb-halo 1.8s ease-in-out infinite}
.kb-onode .ring{fill:#fff;stroke:var(--c);stroke-width:1.6;transition:stroke-width .2s}
.kb-onode.hot .ring,.kb-onode.sel .ring{fill:color-mix(in srgb,var(--c) 13%,#fff);stroke-width:2.4}
.kb-onode.pending .ring{stroke-dasharray:4 3;fill:#fbfcfe}
.kb-onode .glyph{fill:none;stroke:var(--c);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kb-onode text{text-anchor:middle;paint-order:stroke;stroke:#f7f9fc;stroke-width:4px;stroke-linejoin:round}
.kb-onode .l{font-size:11px;font-weight:600;fill:#465a79}
.kb-onode .s{font-size:9px;fill:#93a1b6}
.kb-onode .pend{fill:#b49358;font-weight:600}
.kb-onode:focus-visible{outline:none}
.kb-onode:focus-visible .ring{stroke:#447eea;stroke-width:3}
.kb-step circle{fill:#5d7fb1;stroke:#fff;stroke-width:1.5}
.kb-step text{fill:#fff;font-size:9px;font-weight:700;stroke:none}
.kb-oedge line{stroke:#c8d3e2;stroke-width:1.3;transition:opacity .25s}
.kb-oedge text{font-size:9px;fill:#5f7da6;font-weight:500;text-anchor:middle;opacity:0;paint-order:stroke;stroke:#f7f9fc;stroke-width:4px;stroke-linejoin:round;transition:opacity .25s}
.kb-oedge.hot line{stroke:#7096c6;stroke-width:2.2;stroke-dasharray:7 5;animation:kb-flow .8s linear infinite}
.kb-oedge.hot text{opacity:1}
.kb-onto-svg.focus .kb-onode:not(.hot):not(.sel){opacity:.25}
.kb-onto-svg.focus .kb-oedge:not(.hot){opacity:.18}
.kb-onto-svg.intro .kb-onode{animation:kb-fade .45s ease-out backwards}
.kb-onto-svg.intro .kb-oedge{animation:kb-fade .7s .35s ease-out backwards}
.kb-onto-panel{border:1px solid #dfe6ef;border-radius:14px;background:#fffc;padding:15px;font-size:10px;color:#6d7f99}
.kb-onto-panel .eyebrow{font-size:7px;letter-spacing:1.4px;color:#9eabbe}
.kb-panel-title{font-size:15px;font-weight:600;letter-spacing:-.4px;margin:6px 0 10px;color:#3f5577}
.kb-panel-p{font-size:10px;line-height:1.85;color:#75869f}
.kb-panel-actions{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.kb-panel-actions button{width:100%;display:flex;align-items:center;justify-content:center;gap:5px}
.kb-panel-actions .ai-success{display:flex;align-items:center;gap:6px}
.kb-panel-actions .ai-success .ico{width:14px}
.kb-why{list-style:none;padding:0;margin:12px 0}
.kb-why li{display:flex;gap:8px;padding:8px 0;border-top:1px solid #edf1f6;font-size:9px;line-height:1.7;color:#6a7d98}
.kb-why .ico{width:14px;color:#8aa0bb;flex-shrink:0;margin-top:1px}
.kb-path{list-style:none;padding:0;margin:0 0 12px;counter-reset:step}
.kb-path li{position:relative;padding-left:22px;counter-increment:step}
.kb-path li:before{content:counter(step);position:absolute;left:0;top:11px;width:15px;height:15px;border-radius:50%;background:#5d7fb1;color:#fff;font-size:8px;font-weight:700;display:grid;place-items:center}
.kb-path li:not(:last-child):after{content:'';position:absolute;left:7px;top:27px;bottom:-9px;border-left:1.5px dashed #b8c8de}
.kb-path.set li:before{content:'';width:7px;height:7px;left:4px;top:15px;background:#9db3d0}
.kb-path.set li:after{display:none}
.kb-path button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:5px 6px;border-radius:8px}
.kb-path button:hover{background:#eef3fa}
.kb-path strong{display:block;font-size:10px;font-weight:600;color:#4f6585}
.kb-path small{display:block;font-size:8px;color:#9eabbe;margin-top:2px}
.kb-obj-head{display:flex;gap:11px;align-items:flex-start}
.kb-obj-head h3{font-size:16px;font-weight:600;letter-spacing:-.4px;color:#3f5577;margin:6px 0 3px}
.kb-obj-head p{font-size:10px;line-height:1.7;color:#7d8ca3}
.kb-type-pill{display:inline-block;font-size:8px;font-weight:600;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff);padding:2px 7px;border-radius:5px}
.kb-onto-panel .detail-fields{margin:14px 0;grid-template-columns:62px 1fr}
.kb-sub{font-size:9px;font-weight:600;color:#7d8ca3;margin:14px 0 6px}
.kb-rels{display:flex;flex-direction:column;gap:2px}
.kb-rels button{display:flex;align-items:center;gap:6px;width:100%;text-align:left;padding:5px 6px;border-radius:7px;font-size:10px;color:#566c8b}
.kb-rels button:hover{background:#eef3fa}
.kb-rel-label{font-size:8px;color:#8f9db2;min-width:70px}
.kb-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kb-type-card{border:1px solid #e0e7f0;border-radius:12px;background:#fff9;padding:13px;border-top:3px solid var(--c)}
.kb-type-top{display:flex;align-items:center;gap:9px}
.kb-type-top strong{display:block;font-size:11px;font-weight:600;color:#435979}
.kb-type-top small{font-size:8px;color:#9eabbe}
.kb-type-top b{margin-left:auto;font-size:15px;font-weight:500;color:var(--c)}
.kb-type-card dl{display:grid;grid-template-columns:30px 1fr;gap:5px 6px;margin:12px 0 0;font-size:8.5px}
.kb-type-card dt{color:#a1adbf}
.kb-type-card dd{margin:0;color:#64788f;line-height:1.5}
.data-table .kb-mini{margin-top:6px}
.kb-jump{display:inline-flex;align-items:center;gap:6px;margin-top:14px}

@keyframes kb-pulse{50%{opacity:.45}}
@keyframes kb-breathe{50%{opacity:.5}}
@keyframes kb-spin{to{transform:rotate(360deg)}}
@keyframes kb-rise{from{opacity:0;transform:translateY(4px)}}
@keyframes kb-fade{from{opacity:0}}
@keyframes kb-flow{to{stroke-dashoffset:-12}}
@keyframes kb-halo{50%{transform:scale(1.18);opacity:.06}}

/* 화면 크기가 아니라 앱 창 폭에 맞춰 배치 */
.app-window{container:appwin/inline-size}
@container appwin (max-width:1000px){.kb-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.kb-sync{display:none}
}
@container appwin (max-width:900px){.kb-onto{grid-template-columns:1fr}
.kb-code{grid-template-columns:repeat(2,minmax(0,1fr))}
.kb-code button:after{display:none}
}
@container appwin (max-width:780px){.kb-note-layout{grid-template-columns:1fr}
.kb-rail{position:static}
.kb-home-grid,.kb-capture{grid-template-columns:1fr}
.kb-para-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container appwin (max-width:560px){.kb-top{padding:7px 10px}
.kb-page{padding:16px 14px 24px}
.kb-hero{padding:18px}
.kb-hero-art{display:none}
.kb-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.kb-type-grid{grid-template-columns:1fr}
.kb-capture-bar{flex-direction:column;align-items:stretch}
.kb-onto .kb-graph-wrap{overflow-x:auto}
.kb-onto-svg{min-width:620px}
.kb-graph-foot{flex-direction:column;align-items:flex-start}
.kb-row-meta{display:none}
.kb-lib-bar{flex-wrap:wrap}
.kb-lib-bar .search-field{max-width:none}
}
