/* Entity counts and concrete instances share relationship tracing, not a tiled grid. */
.cx-relgraph{min-width:0;position:relative;--cx-rel-human:#5e849c;--cx-rel-business:#6e9a7d;--cx-rel-technical:#538e85;--cx-rel-governance:#a18d61}
.cx-rel-graph-heading{display:flex;align-items:baseline;justify-content:space-between;gap:9px;color:#5e7d71;font-size:10px;padding:0 1px 7px;line-height:1.3}
.cx-rel-graph-heading>small{color:#899a92;font-size:9px;text-align:right}
.cx-rel-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;outline-offset:3px}
.cx-rel-canvas{position:relative;min-width:720px;height:max(310px,var(--cx-rel-overflow-height,0px));background:#fff}
.cx-rel-columns{position:absolute;inset:8px 0 auto;height:20px;color:#7d9187;font-size:10px;font-weight:600;letter-spacing:.035em}
.cx-rel-columns>span{position:absolute;transform:translateX(-50%);text-align:center;white-space:nowrap}
.cx-rel-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.cx-rel-edge{opacity:.28;transition:opacity .15s ease}
.cx-rel-edge>path{fill:none;stroke:#a6bfb4;vector-effect:non-scaling-stroke}
.cx-rel-edge>.cx-rel-label-leader{stroke:#c0d0c5;stroke-width:1;stroke-dasharray:2 2}
.cx-rel-edge-label{opacity:0;fill:#386c5a;font-size:15px;font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round;transition:opacity .15s ease}
.cx-rel-caption{position:absolute;transform:translate(-50%,-100%);pointer-events:none;white-space:nowrap;z-index:2}
.cx-rel-caption .cx-rel-edge-label{display:block;color:#386c5a;background:#fff;border-radius:3px;padding:1px 3px;font-size:11px;line-height:1.2;text-align:center}
.cx-rel-caption .cx-rel-edge-label>span{display:block}
.cx-rel-caption .cx-rel-edge-count{position:absolute;bottom:0;left:50%;transform:translateX(-50%);color:#758e82;font-size:12px;line-height:1.2;text-shadow:0 1px 2px #fff,0 -1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff}
.cx-relgraph-compact .cx-rel-caption .cx-rel-edge-label,.cx-relgraph-compact .cx-rel-caption .cx-rel-edge-count{font-size:10px}
.cx-relgraph-compact .cx-rel-inspector-attributes,.cx-relgraph-compact .cx-rel-inspector-relations{display:none}
.cx-client .cx-rel-node,.ad-drawer .cx-rel-node{position:absolute;transform:translate(-50%,-50%);height:62px;min-height:62px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;padding:6px 8px 6px 11px;border:1px solid #d6e1da;border-radius:5px;background:#fff;color:#345f4c;text-align:left;cursor:pointer;z-index:1;box-shadow:0 1px 3px #25422f05;transition:opacity .15s ease,border-color .15s ease}
.cx-rel-node:before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 2px 2px 0;background:var(--cx-rel-business)}
.cx-rel-node.cx-rel-human:before{background:var(--cx-rel-human)}.cx-rel-node.cx-rel-technical:before{background:var(--cx-rel-technical)}.cx-rel-node.cx-rel-governance:before{background:var(--cx-rel-governance)}
.cx-rel-node.cx-rel-unknown{border-style:dashed}.cx-rel-node.cx-rel-concern{border-color:#d9b9b0}.cx-rel-node.cx-rel-concern:before{background:#c18b7c}
.cx-rel-node-label{font-size:9px;line-height:1.1;font-weight:500;color:#809389;max-width:100%}
.cx-rel-node>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;font-weight:600;line-height:1.15;max-width:100%;overflow-wrap:normal}
.cx-rel-node-attributes{display:flex;align-items:center;gap:4px;min-width:0;width:100%;overflow:hidden}
.cx-rel-node-attributes>small{font-size:8px;line-height:1.1;color:#85998d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}
.cx-rel-node-attributes>small+small:before{content:'· ';color:#a5b2aa}.cx-rel-attribute-unknown{color:#aa925e!important}.cx-rel-attribute-failed,.cx-rel-attribute-missing{color:#b27b6c!important}
.cx-client .cx-rel-count-node,.ad-drawer .cx-rel-count-node{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 7px;align-content:center;align-items:center}
.cx-rel-count-node>.cx-rel-node-label{font-size:11px;color:#53705f;line-height:1.2}.cx-rel-count-node>strong{display:block;font-size:19px;line-height:1.1;letter-spacing:-.035em;padding-left:4px}
.cx-rel-count-node>.cx-rel-node-attributes{grid-column:1/-1}.cx-rel-count-node>.cx-rel-gap{grid-column:1/-1;font-size:8px;color:#a08b64;line-height:1.1}
.cx-rel-node:hover,.cx-rel-node[aria-pressed="true"]{border-color:#8cbaa1;box-shadow:0 0 0 1px #a9cbb43b}.cx-rel-node:focus-visible{outline:2px solid #399782;outline-offset:3px}
.cx-rel-inspectors{border-top:1px solid #e3eae4;margin-top:3px;padding-top:7px;min-height:24px}
.cx-rel-hint{display:block;color:#8c9d91;font-size:10px;line-height:1.4}
.cx-rel-inspector{display:none;font-size:10px;color:#6d8875;line-height:1.35}
.cx-rel-inspector-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.cx-rel-inspector-heading>strong{font-size:11px;font-weight:600;color:#426851;max-width:85%;overflow-wrap:anywhere}.cx-rel-inspector-heading>strong>span{font-size:10px;color:#8c9e8d;margin-left:5px}
.cx-client .cx-rel-detail,.ad-drawer .cx-rel-detail{padding:0;font-size:10px;color:#218268;white-space:nowrap;background:none;border:0;cursor:pointer;flex:0 0 auto}
.cx-rel-inspector-attributes{display:flex;flex-wrap:wrap;gap:3px 10px;color:#809382;font-size:9px;margin-top:3px;line-height:1.3}.cx-rel-inspector-attributes>span{max-width:100%}
.cx-rel-inspector-relations{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:8px}.cx-rel-relation{display:inline-grid;grid-template-columns:auto auto;align-items:center;gap:2px 7px;font-size:10px;line-height:1.3;color:#7b9380;max-width:100%}.cx-rel-relation>b{font-weight:600;color:#497b60}.cx-rel-relation>span{white-space:nowrap}.cx-rel-relation>small{grid-column:1/-1;font-size:9px;color:#829587}.cx-rel-no-links{color:#9a927c;font-size:9px}
.cx-rel-mobile-hint{display:none;font-size:9px;color:#8a9d90;margin:6px 0 0;text-align:right}
.cx-relgraph-compact .cx-rel-canvas{min-width:620px;height:max(330px,var(--cx-rel-overflow-height,0px))}.cx-relgraph-compact .cx-rel-columns{font-size:10px;top:5px}
.cx-client .cx-relgraph-compact .cx-rel-node{padding:3px 4px 3px 7px;border-radius:4px;height:62px;min-height:62px;gap:2px}
.cx-relgraph-compact .cx-rel-node:before{width:2px;top:6px;bottom:6px}.cx-relgraph-compact .cx-rel-node-label{font-size:9px;line-height:1.05}.cx-relgraph-compact .cx-rel-node>strong{font-size:12px;line-height:1.12}.cx-relgraph-compact .cx-rel-node-attributes{display:none}.cx-relgraph-compact .cx-rel-count-node>.cx-rel-node-label{font-size:9px}.cx-relgraph-compact .cx-rel-count-node>strong{font-size:15px;padding-left:0}.cx-relgraph-compact .cx-rel-count-node{column-gap:3px}.cx-relgraph-compact .cx-rel-edge-label{font-size:25px;stroke-width:8px}.cx-relgraph-compact .cx-rel-inspector-heading>strong{font-size:10px}.cx-relgraph-compact .cx-rel-inspector-relations{gap:4px}.cx-relgraph-compact .cx-rel-relation{font-size:8px;padding:3px 4px;gap:4px}.cx-relgraph-compact .cx-rel-relation>span{max-width:90px}.cx-relgraph-compact .cx-rel-graph-heading{font-size:9px}.cx-relgraph-compact .cx-rel-graph-heading>small{font-size:8px}
.cx-usage-body{grid-template-columns:minmax(280px,.8fr) minmax(0,1.7fr)}.cx-ontology .cx-ontology-tools{display:flex;align-items:end;gap:14px;margin-bottom:12px;flex-wrap:nowrap}.cx-ontology .cx-ontology-tools label{flex:1;min-width:0;gap:5px;color:#789080;font-size:10px}.cx-ontology .cx-ontology-tools select{font-size:11px;padding:7px 9px;width:100%}.cx-ontology-scope{font-size:10px;color:#789080;flex:0 0 auto;padding-bottom:8px}.cx-ontology .cx-ontology-graph{padding:14px 16px 11px}.cx-ontology-graph .cx-section-head{align-items:center;margin-bottom:7px}.cx-ontology-graph .cx-section-head h2{font-size:15px}.cx-ontology-graph .cx-section-head p{font-size:10px;margin-top:3px}
.cx-rel-reviewed{border:1px solid #e0ebe4;background:#f7fbf8;padding:13px 15px;border-radius:7px;margin:12px 0}.ad-drawer .cx-rel-reviewed h3{font-size:12px;margin:0 0 7px;color:#728e7d}.cx-rel-reviewed p{font-size:13px;line-height:1.6;margin:6px 0 0!important;color:#45644f}.cx-rel-original{border-left:3px solid #c5dacd;padding:8px 13px;margin:10px 0;background:#fbfdfb}.cx-rel-original blockquote{font-size:13px;line-height:1.65;margin:9px 0 0;color:#425a4a}.cx-rel-original .cx-open{font-size:11px}
.ad-drawer .cx-relgraph .cx-rel-canvas{height:350px;min-width:720px}
@media(min-width:1000px) and (max-height:740px){.cx-relgraph-compact .cx-rel-canvas{height:max(310px,var(--cx-rel-overflow-height,0px))}.cx-relgraph-ontology .cx-rel-canvas{height:max(310px,var(--cx-rel-overflow-height,0px))}.cx-rel-graph-heading{padding-bottom:5px}.cx-ontology .cx-ontology-tools{margin-bottom:9px}}
@media(max-width:850px){.cx-ontology .cx-ontology-tools{flex-wrap:wrap;gap:10px}.cx-ontology .cx-ontology-tools label{flex:1 1 30%}.cx-ontology-scope{flex:1 1 100%;padding:0}.cx-usage-body{grid-template-columns:1fr}}
@media(max-width:650px){.cx-ontology .cx-ontology-tools label{flex:1 1 40%;min-width:0;width:auto}.cx-ontology .cx-ontology-graph{padding:11px 10px}.cx-rel-mobile-hint{display:block}.cx-rel-canvas{min-width:720px;height:310px}.cx-relgraph-compact .cx-rel-canvas{min-width:620px;height:max(330px,var(--cx-rel-overflow-height,0px))}.cx-rel-inspector-heading>strong{max-width:78%}.cx-rel-relation{flex-wrap:wrap}.cx-rel-relation>span{max-width:120px}.cx-rel-graph-heading>small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.cx-rel-edge,.cx-rel-node,.cx-rel-edge-label{transition:none!important}}

/* Named work graphs have room for meaningful labels and component-specific topology. */
.cx-relgraph-compact .cx-rel-caption .cx-rel-edge-label{font-size:10px;font-weight:500}
.cx-relgraph-compact .cx-rel-node>strong{display:block;overflow:visible;line-height:1.2;font-size:12px}
.cx-relgraph-compact .cx-rel-node-label{font-size:9px;line-height:1.2}
.cx-relgraph-compact .cx-rel-count-node>strong{font-size:20px}
.cx-relgraph-compact .cx-rel-count-node>.cx-rel-node-label{font-size:10px}
.cx-rel-edge:has(>path){opacity:.44}
.cx-relgraph .cx-rel-inspector-heading>strong{font-size:12px}
.cx-relgraph-ontology .cx-rel-node-label{font-size:12px}
.cx-relgraph-ontology .cx-rel-count-node>strong{font-size:22px}
@media(max-width:850px){.cx-usage-body{grid-template-columns:1fr}}

.cx-client .cx-implementation-choice{display:block;width:100%;text-align:left;padding:10px 9px;border-bottom:1px solid #e5ede7;background:#fff;border-left:2px solid transparent}
.cx-client .cx-implementation-choice.cx-selected{background:#eff7f2;border-left-color:#4e9b7b}
.cx-implementation-choice>strong{display:block;font-size:12px;line-height:1.35;font-weight:600}
.cx-implementation-choice>small{display:block;font-size:10px;color:#7d9286;margin-top:4px}
.cx-implementation-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:7px;font-size:10px}
.cx-client .cx-provenance-bar button{white-space:normal;min-width:0}
.cx-client .cx-use-graph .cx-section-head p{max-width:none;white-space:normal;overflow:visible}
@media(min-width:900px) and (max-width:1200px){.cx-relgraph-compact .cx-rel-canvas{min-width:520px}}

/* Company Ontology: semantic lanes, instance totals and restrained tracing. */
.cx-relgraph-company .cx-rel-edge-count{opacity:.55;font-variant-numeric:tabular-nums}
.cx-relgraph-company .cx-rel-node{background:#fbfdfc;border-color:#d5e3dc;border-radius:5px;box-shadow:0 1px 2px #102e2010}
.cx-relgraph-company .cx-rel-node:hover,.cx-relgraph-company .cx-rel-node[aria-pressed="true"]{background:#f0f7f3;border-color:#80b49b;box-shadow:0 0 0 2px #3b936116}
.cx-relgraph-company .cx-rel-count-node>strong{font-variant-numeric:tabular-nums;font-weight:600}
.cx-ontology-members{border-bottom:1px solid #e1eae4;padding:10px 0}
.cx-ontology-members summary{display:flex;gap:12px;justify-content:space-between;cursor:pointer;font-weight:600;color:#355e4a;list-style:revert}
.cx-ontology-member{padding:5px 0;border-bottom:1px solid #edf2ef}.cx-ontology-member>small{display:block;font-size:11px;color:#668476;margin:0 0 6px 2px}
.cx-ontology-member .cx-open{margin:0!important}
.ad-drawer .cx-ontology-basis{color:#7a8b81;font-size:11px;margin:5px 0 12px}
.cx-relgraph-company .cx-rel-caption{opacity:.65}
.cx-relgraph-company .cx-rel-edge-count{opacity:1}
/* Pair counts appear on the traced relationships, keeping the full map legible. */
.cx-relgraph-company .cx-rel-caption{opacity:0}
@media(min-width:900px) and (max-width:1200px){.cx-relgraph-company .cx-rel-node-label{font-size:11px}.cx-relgraph-company .cx-rel-count-node>strong{font-size:20px}}

/* The company map is an exploration surface; the surrounding client UI stays light. */
.cx-ontology .cx-ontology-graph{background:#101c22;border:1px solid #293b43;border-radius:10px;padding:18px 20px 14px;box-shadow:0 8px 28px #122b2412}
.cx-ontology-graph .cx-section-head{border-bottom:1px solid #2a3c43;padding-bottom:13px;margin-bottom:4px}
.cx-ontology-graph .cx-section-head h2{font-size:16px;color:#ecf5f2;letter-spacing:-.02em}
.cx-ontology-map-meta{font:10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;color:#8aaba8;letter-spacing:.02em}
.cx-relgraph-company{--cx-rel-human:#81b6df;--cx-rel-business:#84cfac;--cx-rel-technical:#66c9c5;--cx-rel-governance:#d8bc7b}
.cx-relgraph-company .cx-rel-canvas{height:400px;min-width:760px;background:linear-gradient(90deg,#81b6df04 0 23.5%,transparent 23.5% 24%,#84cfac04 24% 48.5%,transparent 48.5% 49%,#66c9c504 49% 74%,transparent 74% 75%,#d8bc7b04 75% 100%),radial-gradient(#5b83862b .7px,transparent .7px);background-size:auto,20px 20px;border-bottom:1px solid #293b43}
.cx-relgraph-company .cx-rel-columns{top:16px;font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#9bb2b8}
.cx-relgraph-company .cx-rel-columns>span{padding-bottom:8px}
.cx-relgraph-company .cx-rel-columns>span:after{content:'';display:block;width:22px;height:2px;margin:7px auto 0;background:#7d9aa2}
.cx-relgraph-company [data-cx-graph-column="human"]:after{background:var(--cx-rel-human)}
.cx-relgraph-company [data-cx-graph-column="business"]:after{background:var(--cx-rel-business)}
.cx-relgraph-company [data-cx-graph-column="technical"]:after{background:var(--cx-rel-technical)}
.cx-relgraph-company [data-cx-graph-column="governance"]:after{background:var(--cx-rel-governance)}
.cx-client .cx-relgraph-company .cx-rel-node{height:76px;min-height:76px;padding:9px 12px;border:1px solid #3b515a;border-radius:4px;background:linear-gradient(135deg,#21343b,#18292f);box-shadow:0 3px 9px #0003;grid-template-columns:auto minmax(0,1fr);gap:4px 9px;color:#ebf5f2}
.cx-relgraph-company .cx-rel-node:before{left:0;right:0;top:-1px;bottom:auto;width:auto;height:3px;border-radius:3px 3px 0 0}
.cx-relgraph-company .cx-rel-count-node>.cx-rel-node-label{grid-column:1/-1;color:#bdcfd0;font-size:12px;font-weight:500;line-height:1.25}
.cx-relgraph-company .cx-rel-count-node>strong{grid-column:1;color:#f3faf7;font:600 27px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:-.05em;padding-left:0}
.cx-relgraph-company .cx-rel-count-node>.cx-rel-node-attributes{grid-column:2;grid-row:2}
.cx-relgraph-company .cx-rel-node:hover,.cx-relgraph-company .cx-rel-node[aria-pressed="true"]{background:linear-gradient(135deg,#294a48,#1b3338);border-color:#79cfb9;box-shadow:0 0 0 1px #7cd6c03b,0 4px 18px #0004}
.cx-relgraph-company .cx-rel-node:focus-visible{outline-color:#a5e7d4}
.cx-relgraph-company .cx-rel-node.cx-rel-concern:before{background:#dc9b89}
.cx-relgraph-company .cx-rel-node-attributes>small{font:9px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;color:#cfb1a7;white-space:normal;overflow:visible}
.cx-relgraph-company .cx-rel-edge>path{stroke:#648c92}
.cx-relgraph-company .cx-rel-edge:has(>path){opacity:.65}
.cx-relgraph-company .cx-rel-lines marker>path{fill:#78d8c3}
.cx-relgraph-company .cx-rel-caption .cx-rel-edge-label{background:#14252b;color:#b4e9dc;font:11px/1.25 ui-monospace,SFMono-Regular,Consolas,monospace;border:1px solid #3b6264;padding:2px 5px;text-shadow:none}
.cx-relgraph-company .cx-rel-inspectors{margin-top:0;border:0;padding:13px 1px 0;min-height:84px}
.cx-relgraph-company .cx-rel-hint{font-size:11px;color:#92aaa9;padding:3px 0}
.cx-relgraph-company .cx-rel-inspector-heading>strong{color:#eef7f3;font-size:14px}
.cx-relgraph-company .cx-rel-inspector-heading>strong>span{color:#84cfac;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}
.cx-client .cx-relgraph-company .cx-rel-detail{color:#88dcc5;font-size:11px;padding:3px 0}
.cx-rel-definition{font-size:11px;color:#9eb6b6;margin:6px 0 0;line-height:1.5;max-width:85%}
.cx-relgraph-company .cx-rel-inspector-relations{gap:7px 12px;margin-top:9px}
.cx-relgraph-company .cx-rel-relation{padding:5px 9px;background:#1c3036;border:1px solid #344e54;border-radius:3px;color:#bad0d0;font-size:11px;grid-template-columns:auto auto;gap:2px 9px}
.cx-relgraph-company .cx-rel-relation>b{color:#86dcc2;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}
.cx-relgraph-company .cx-rel-relation>small{color:#8daaa9;font-size:10px}
.cx-relgraph-company .cx-rel-no-links,.cx-relgraph-company .cx-rel-mobile-hint{color:#a0b5b5}
@media(max-width:850px){.cx-ontology .cx-ontology-graph{padding:14px 12px}.cx-ontology-map-meta{font-size:9px}.cx-relgraph-company .cx-rel-canvas{height:400px}.cx-rel-definition{max-width:100%}}
@media(min-width:851px) and (max-width:1200px){.cx-relgraph-company .cx-rel-count-node>.cx-rel-node-label{font-size:11px}.cx-relgraph-company .cx-rel-count-node>strong{font-size:25px}}
@media(max-width:650px){.cx-ontology-graph .cx-section-head{flex-wrap:wrap;gap:4px}.cx-ontology-map-meta{display:block}.cx-relgraph-company .cx-rel-inspectors{min-height:70px}}
