/* 스마트 관계망: 기준기업 → 업종 허브 → 연계기업, 연계유형 배지, EW 색상 */
.smart-network{background:#fff}
.smart-network .smart-trunk{stroke:#8f99a3;stroke-width:2.2}
.smart-network .smart-hub circle{fill:#7d858d;stroke:#fff;stroke-width:2}
.smart-network .smart-hub text{font-size:13px;fill:#4a535d;font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.smart-network .smart-line{stroke:#8a939c;stroke-width:1.8}
.smart-network .smart-edge.selected .smart-line,.smart-network .smart-edge:focus .smart-line{stroke:#b5862f;stroke-width:3.6}
.smart-network .smart-edge:focus{outline:none}
.smart-network .smart-badge.code{fill:#6d7378}
.smart-network .smart-edge.selected .smart-badge{stroke:#b5862f;stroke-width:2}
.smart-network .smart-badge-text{font-size:11.5px;font-weight:700;fill:#fff;pointer-events:none}
.smart-network .smart-dot{stroke:#fff;stroke-width:3;filter:drop-shadow(0 3px 4px #22334433)}
.smart-network .smart-dot.ungraded{stroke:#8e9aa6;stroke-width:1.5;stroke-dasharray:3 3}
.smart-network .smart-select{fill:none;stroke:transparent;stroke-width:3}
.smart-network .smart-node.selected .smart-select,.smart-network .smart-node:focus .smart-select{stroke:#b5862f}
.smart-network .smart-node:focus{outline:none}
.smart-network .smart-root-halo{fill:#fff8e6;stroke:#d8bd7f;stroke-width:1.5}
.smart-network .smart-name{font-size:13px;fill:#2b3a49;font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.smart-network .smart-node.root .smart-name{font-size:13px;font-weight:700}
.smart-network .smart-meta{font-size:10px;fill:#8a6a2c;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:3px}
.smart-network .smart-node .expand-mark{font-size:14px;fill:#785622;font-weight:bold;paint-order:stroke;stroke:#fff;stroke-width:4px}
.smart-legend h4{margin:14px 0 6px;font-size:13px;color:#24364a}
.smart-legend h4:first-child{margin-top:0}
.smart-code,.smart-ew{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.9;color:#2d3c4b}
.smart-code b{display:inline-block;min-width:24px;padding:0 4px;text-align:center;background:#6d7378;color:#fff;border-radius:3px;font-size:11px;line-height:17px}
.smart-code b.pub{background:#8b6a2e}
.smart-ew i{width:13px;height:13px;border-radius:50%;display:inline-block;box-shadow:inset 0 0 0 1px #0002}
.smart-code.muted,.smart-ew.muted{opacity:.42}
.smart-lines{display:flex;flex-direction:column;gap:4px;margin-top:12px;font-size:11.5px;color:#4a5561}
.smart-lines span{display:flex;align-items:center;gap:8px}
.relation-sources{padding:18px 28px;border-bottom:1px solid #d7dee8;background:#fbfaf6}
.relation-sources-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}
.relation-sources-head h3{margin:4px 0 0;font-size:18px}
.relation-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.relation-source{border:1px solid #dfe3e8;border-radius:12px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:8px;min-width:0}
.relation-source.ked{border-color:#d9c08a;background:#fffdf6}
.relation-source h4{margin:0;font-size:14px;line-height:1.5}
.relation-source h4 span{display:block;font-size:11.5px;font-weight:500;color:#8a6a2c}
.relation-source p{margin:0;font-size:12.5px;line-height:1.6}
.relation-source small{font-size:11.5px;color:#66727f}
.relation-source small.ok{color:#2c7a43;font-weight:600}
.dart-relation-form{display:flex;flex-direction:column;gap:8px}
.dart-relation-form label{display:flex;flex-direction:column;font-size:12px;gap:3px}
.dart-relation-buttons{display:grid;grid-template-columns:1fr;gap:4px}
.dart-relation-buttons button{font-size:12px}
.smart-tables{padding:22px 28px;border-top:1px solid #d7dee8}
.smart-table{margin:18px 0 26px}
.smart-table-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;border-bottom:2px solid #33404d;padding-bottom:6px}
.smart-table-head h4{margin:0;font-size:17px}
.smart-table-head h4 span{color:#1f4f8f;margin-left:4px}
.smart-table-head small{font-size:11.5px;color:#6b7683}
.smart-table table{width:100%;border-collapse:collapse;font-size:12.5px}
.smart-table th{background:#f2f4f7;font-weight:600;color:#33404d;padding:8px 6px;border-bottom:1px solid #dfe3e8;text-align:center;white-space:nowrap}
.smart-table td{padding:8px 6px;border-bottom:1px solid #eceff3;text-align:center;vertical-align:middle}
.smart-table td small{display:block;color:#7a8592;font-size:11px}
.smart-dist th{white-space:normal;line-height:1.35}
.ew-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px;vertical-align:-1px}
.smart-note{margin:8px 0 0;padding:9px 12px;background:#f5f6f8;border-radius:8px;font-size:12px;color:#5d6875}
.smart-note::before{content:'ⓘ ';color:#33404d}
@media (max-width:980px){.relation-source-grid{grid-template-columns:1fr}.relation-sources,.smart-tables{padding:16px}}
@media print{.relation-sources{display:none}.smart-tables{padding:0}}
.relation-source-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.relation-source.nts{border-color:#c9d3dd}
.status-chip{display:inline-block;padding:1px 8px;border-radius:10px;background:#eef2f6;font-size:11.5px;color:#2d3c4b}
/* 3D 회사 모델 관계망 */
.network-workbench .graph-canvas:has(.net3d){height:680px}
.net3d{position:relative;width:100%;height:100%;min-height:520px}
.net3d-svg{width:100%;height:100%;display:block;touch-action:none;cursor:grab;user-select:none}
.net3d-svg:active{cursor:grabbing}
.net3d-ground{fill:none;stroke:#cfd8e1;stroke-width:1.2;stroke-dasharray:3 7}
.net3d-trunk{stroke:#9aa4ae;stroke-width:2.4}
.net3d-edge{fill:none;stroke:#8f99a3;stroke-width:1.6;opacity:.85}
.net3d-edge.hot{stroke:#2f6db5;stroke-width:2.6;opacity:1}
.net3d-edge.sel{stroke:#b5862f;stroke-width:3.4;opacity:1}
.b3-shadow{fill:#1d2b3a;opacity:.13}
.b3-face{stroke:#0000002b;stroke-width:.6}
.b3-roof{stroke:#ffffff99;stroke-width:.8}
.b3-window{stroke:#ffffffb0;stroke-width:1.1;stroke-linecap:round}
.b3-crown{stroke:#fff3c9;stroke-width:1.6}
.net3d-node{cursor:pointer}
.net3d-node.hot .b3-face,.net3d-node:focus .b3-face{stroke:#2f6db5;stroke-width:1.4}
.net3d-node.sel .b3-face,.net3d-node.sel .b3-roof{stroke:#b5862f;stroke-width:2.2}
.net3d-node:focus{outline:none}
.net3d-tag{fill:#ffffffe8;stroke:#c9d3dd;stroke-width:.8}
.net3d-node.sel .net3d-tag{fill:#fff6df;stroke:#b5862f}
.net3d-node.root .net3d-tag{fill:#13263a;stroke:#13263a}
.net3d-name{fill:#1f3346;font-weight:700}
.net3d-node.root .net3d-name{fill:#f3d89b}
.net3d-plus{fill:#785622;font-weight:800;font-size:13px}
.net3d-hub-label{font-size:11.5px;fill:#4a535d;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.net3d-badge{cursor:pointer}
.net3d-badge rect{fill:#5f666c;stroke:#fff;stroke-width:1}
.net3d-badge text{fill:#fff;font-size:10.5px;font-weight:700;pointer-events:none}
.net3d-badge.sel rect{fill:#b5862f}.net3d-badge.hot rect{fill:#2f6db5}
.net3d-tools{position:absolute;top:10px;right:10px;display:flex;gap:4px;flex-wrap:wrap}
.net3d-tools button{background:#ffffffe6;border:1px solid #c9d3dd;border-radius:8px;padding:6px 10px;font-size:12px;color:#24364a;cursor:pointer}
.net3d-tools button[aria-pressed="true"]{background:#13263a;color:#fff}
.net3d-hint{position:absolute;left:10px;bottom:8px;font-size:11.5px;color:#5d6875;background:#ffffffd9;padding:3px 8px;border-radius:6px}
.explore-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 28px;background:#13263a;color:#eef3f8;font-size:12.5px}
.explore-bar strong{margin-right:6px;color:#f3d89b}
.explore-chip{padding:3px 9px;border-radius:12px;background:#ffffff1f}
.explore-chip.ok{background:#2c7a4380}.explore-chip.run{background:#2f6db580}.explore-chip.warn{background:#a8643080}
.explore-relay{margin-left:auto;padding:3px 9px;border-radius:12px;background:#ffffff1f}
.explore-relay.ok{background:#2c7a4380}.explore-relay.warn{background:#a8643080}
.explore-bar .quiet{color:#fff;border-color:#ffffff55;background:transparent;font-size:12px}
.explore-auto{display:flex;align-items:center;gap:4px}
.link-mini{background:none;border:0;padding:0;color:#2f6db5;text-decoration:underline;font-size:11px;cursor:pointer}
@media (max-width:760px){.network-workbench .graph-canvas:has(.net3d){height:520px}.explore-bar{padding:10px 14px}.explore-relay{margin-left:0}}
/* v52 3D 관계망 정리: 포커스 강조, 흐림, 허브 접기, 이름표 레이어 */
.net3d-edge.dim{opacity:.18}
.net3d-node.dim{opacity:.38}
.net3d-node.hot .b3-face{stroke:#2f6db5;stroke-width:1.6}
.net3d-label{cursor:pointer}
.net3d-label.sel .net3d-tag{fill:#fff6df;stroke:#b5862f}
.net3d-label.hot .net3d-tag{fill:#eaf2fc;stroke:#2f6db5}
.net3d-label.root .net3d-tag{fill:#13263a;stroke:#13263a}
.net3d-label.root .net3d-name{fill:#f3d89b}
.net3d-hub{cursor:pointer}
.net3d-hub:hover .net3d-hub-label,.net3d-hub:focus .net3d-hub-label{fill:#13263a;text-decoration:underline}
.net3d-hub.folded .net3d-hub-label{fill:#13263a}
.net3d-hub:focus{outline:none}
.net3d-focus{position:absolute;top:10px;left:10px;max-width:min(460px,60%);display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;background:#ffffffeb;border:1px solid #d5dde5;border-radius:10px;padding:7px 10px;font-size:12px;color:#33475b;pointer-events:none}
.net3d-focus strong{font-size:13.5px;color:#13263a}
.net3d-chip{background:#5f666c;color:#fff;border-radius:4px;padding:1px 6px;font-weight:700;font-size:11px}
.net3d-sub{flex-basis:100%;color:#6b7785;font-size:11px}
@media (max-width:760px){.net3d-focus{max-width:calc(100% - 20px);top:auto;bottom:34px}.net3d-tools{max-width:60%;justify-content:flex-end}}

.explore-note{flex-basis:100%;font-size:12px;color:#5a4a1f;background:#fff6df;border:1px solid #e8d7a8;border-radius:8px;padding:6px 10px;line-height:1.6}
.explore-note p{margin:6px 0}.explore-note a{display:block;margin-top:8px;overflow-wrap:anywhere}
.explore-note button{white-space:normal;max-width:100%}
.explore-diagnostics{flex-basis:100%;min-width:0;padding:10px;border:1px solid #d8e0e8;border-radius:8px;background:#fff;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.explore-diagnostics summary{cursor:pointer;font-weight:700}.explore-diagnostics ul{margin:8px 0;padding-left:20px}.explore-diagnostics li{margin:5px 0}
.explore-bar .explore-note strong{color:#493c1d}.explore-bar .explore-diagnostics{color:#25394a}

.web-candidates{margin-top:8px;max-height:220px;overflow:auto;font-size:12px}.web-candidates p{margin:4px 0;line-height:1.5}.relation-source.web h4 span{color:#5a6b7c}
