#hl-relational-host{min-width:0;--vx-ink:var(--text);--vx-ink-dim:var(--muted);--vx-ink-faint:var(--subtle);--vx-line:var(--line);--vx-brand:var(--accent);--vx-sterile:var(--green);--vx-crimson:var(--red);--vx-amber:var(--amber);--vx-font-sans:Inter,Arial,sans-serif;--vx-font-mono:Inter,Arial,sans-serif}
#hl-relational-host .vx-rel-panel,#hl-relational-host .vx-rel-shell{background:transparent!important;box-shadow:none!important;border:0;padding:0;min-width:0;margin:24px 0}
#hl-relational-host .vx-rel-panel>h2{font-size:18px;margin-bottom:16px}
#hl-relational-host .vx-rel-canvas{max-width:100%;background:var(--surface);border-radius:6px}
#hl-relational-host .vx-rel-canvas svg{max-width:none}
#hl-relational-host .vx-rel-readable,#hl-relational-host .vx-rel-section{background:transparent;padding:16px 0;border:0;border-block:1px solid var(--line)}
#hl-relational-host .vx-rel-card,#hl-relational-host .vx-rel-step,#hl-relational-host .vx-rel-chip{background:var(--surface);border-color:var(--line);border-radius:6px;color:var(--muted)}
#hl-relational-host .vx-rel-card strong,#hl-relational-host .vx-rel-chip strong,#hl-relational-host .vx-rel-readable strong,#hl-relational-host .vx-rel-row-head strong{color:var(--text)}
#hl-relational-host .vx-rel-card small,#hl-relational-host .vx-rel-line,#hl-relational-host .vx-rel-readable p{color:var(--muted)}
#hl-relational-host .vx-rel-kicker,#hl-relational-host .vx-rel-chip,#hl-relational-host .vx-rel-card span,#hl-relational-host .vx-rel-step b,#hl-relational-host .vx-rel-section-title{letter-spacing:0}
#hl-relational-host .vx-rel-selected{grid-template-columns:repeat(2,minmax(0,1fr))}
#hl-relational-host .vx-pill{display:inline-flex;padding:4px 9px;border:1px solid var(--line);border-radius:4px;font-size:12px;color:var(--muted)}
#hl-relational-host .vx-pill.ok{color:var(--green)}#hl-relational-host .vx-pill.warn{color:var(--amber)}#hl-relational-host .vx-pill.fail{color:var(--red)}
#hl-relational-host .vx-rel-line,#hl-relational-host .vx-rel-subnote{display:none}
#hl-relational-host .section-head{gap:14px;flex-wrap:wrap}#hl-relational-host h2{overflow-wrap:anywhere}
@media(max-width:600px){#hl-relational-host .vx-rel-selected{grid-template-columns:minmax(0,1fr)}#hl-relational-host .vx-rel-canvas{padding:8px}}
.relation-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-block:1px solid var(--line);margin:24px 0}.relation-summary>div{padding:20px 0}.relation-summary span{color:var(--muted);font-size:12px}.relation-summary strong{display:block;font-size:28px;margin-top:8px}
.relation-template{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;padding:48px 0 56px;border-bottom:1px solid var(--line);margin-bottom:28px}.relation-slot{display:flex;align-items:flex-start;flex-direction:column;gap:12px;position:relative;min-width:0}.relation-slot>svg{width:22px;height:22px;color:var(--accent)}.relation-slot>span{font-size:13px;font-weight:600}.relation-slot>strong{font-size:12px;font-weight:400;color:var(--subtle)}.relation-slot+.relation-slot::before{content:"";position:absolute;left:-16px;top:10px;width:12px;border-top:1px dashed var(--line)}
.relation-empty{border-bottom:1px solid var(--line);padding:0 0 28px;margin-bottom:28px}.relation-principles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.relation-principles>div{border:1px solid var(--line);background:var(--surface);border-radius:6px;padding:14px}.relation-principles strong{display:block;margin-bottom:8px}.relation-principles span{display:block;color:var(--muted);font-size:13px;line-height:1.45}
.relation-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,2fr);gap:26px;padding-block:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.relation-sources{display:flex;flex-direction:column;gap:8px}.relation-source{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border-radius:6px;min-width:0}.relation-source>span:nth-child(2){flex:1;min-width:0}.relation-source strong{display:block;font-size:13px;overflow-wrap:anywhere}.relation-source small{display:block;color:var(--muted);margin-top:5px}.relation-source em{font-style:normal;min-width:28px;height:24px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:999px;color:var(--amber);background:rgba(251,191,36,.08);font-size:12px;font-weight:700}.relation-dot{width:10px;height:10px;border-radius:50%;border:2px solid var(--accent);flex:none}.relation-source[aria-pressed=true]{border-color:var(--accent);background:rgba(var(--command-accent-rgb),.08)}.relation-source[aria-pressed=true] .relation-dot{background:var(--accent);animation:command-node-pulse 2.5s ease-in-out infinite}.relation-ledger,.exception-ledger{margin-top:24px}.relation-ledger>h2{margin-bottom:18px}.relation-ledger table{min-width:760px}.exception-ledger table{min-width:1060px}.relation-workspace .button-row{margin-top:0}.relation-workspace .section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.header-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.header-chips span{border:1px solid var(--line);border-radius:999px;padding:5px 9px;font-size:12px;color:var(--muted);background:var(--surface)}
#map-example .vx-rel-node rect{rx:5}#map-example .vx-rel-node rect:first-of-type{fill:var(--raised);stroke:var(--line)}#map-example .vx-rel-node.is-active rect:first-of-type{stroke:var(--accent)}#map-example .vx-rel-node text{fill:var(--text)}#map-example .vx-rel-canvas{border:1px solid var(--line)}#map-example .vx-rel-card{border-radius:6px}#map-example .vx-rel-panel>h2{font-size:17px}
@media(max-width:900px){.relation-summary,.relation-principles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.relation-template{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;padding-block:28px}.relation-slot::before{display:none}.relation-layout{grid-template-columns:1fr}.relation-summary strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){.relation-source[aria-pressed=true] .relation-dot{animation:none}}
