/* Data model tab: ERD look. Colours come from the page's own variables, so light and dark both work. */
.erd svg { min-width: 980px; }
.erd .box { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.erd .tbl .head { fill: var(--code); }
.erd .tbl.core .head { fill: var(--teal-soft); }
.erd .tbl.act .head { fill: var(--brass-soft); }
.erd .tbl.core .box { stroke: var(--teal); }
.erd .tbl.act .box { stroke: var(--brass-rule); }
.erd .tname { fill: var(--ink); font: 700 14px var(--sans); }
.erd .trows { fill: var(--muted); font: 11px var(--mono); }
.erd .cname { fill: var(--ink); font: 12px var(--mono); }
.erd .ctype { fill: var(--muted); font: 11px var(--mono); }
.erd .rowpk { fill: var(--teal-soft); opacity: .75; }
.erd .rowfk { fill: var(--brass-soft); opacity: .75; }
.erd .key { fill: var(--teal); font: 800 9.5px var(--sans); letter-spacing: .04em; }
.erd .fkey { fill: var(--brass); font: 800 9.5px var(--sans); letter-spacing: .04em; }
.erd .edge { fill: none; stroke: var(--muted); stroke-width: 1.4; opacity: .85; transition: opacity .12s, stroke .12s; }
.erd .mark { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; opacity: .95; transition: opacity .12s, stroke .12s; }
.erd .edge.dim, .erd .mark.dim { opacity: .12; }
.erd .edge.hl, .erd .mark.hl { stroke: var(--teal); stroke-width: 2.2; opacity: 1; }
.erd-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; font-size: .85rem; color: var(--muted); align-items: center; }
.erd-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.erd-legend .lg-ref { background: var(--code); }
.erd-legend .lg-core { background: var(--teal-soft); border-color: var(--teal); }
.erd-legend .lg-act { background: var(--brass-soft); border-color: var(--brass-rule); }
