/* ezra-parts.css: see v10/CONTRACT.md "Answer parts" (Tabs, Accordion, Compare, Text, StatList, Timeline,
   Checklist, Calc). Tokens and css/ezra-ui.css components only; no raw colours, no new @media widths
   (container queries instead). Both themes come from the tokens. */

/* shared: one-line label that ends in an ellipsis (the full text is in the element's title) */
.ez-part-clip { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ez-part-empty { padding: var(--sp-4); }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.ez-ptabs { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ez-ptabs-bar { align-self: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ez-ptabs-bar::-webkit-scrollbar { display: none; }
.ez-ptabs-bar > button { max-width: 22ch; }
.ez-ptabs-panel { min-width: 0; border-radius: var(--r-sm); }
.ez-ptabs-panel > * { display: block; }

/* ── Accordion ────────────────────────────────────────────────────────────── */
.ez-acc { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); overflow: hidden; }
.ez-acc > .ez-section-head { padding: var(--sp-2) var(--sp-3) 0; }
.ez-acc-item + .ez-acc-item { border-top: 1px solid var(--border); }
.ez-acc-h { margin: 0; font: inherit; }
.ez-acc-item > .ez-acc-h > button {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: var(--ctl-h-lg); padding: 0 var(--sp-3);
  border: 0; background: transparent; color: var(--text); font: 600 var(--fs-13)/var(--lh-snug) var(--sans); text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.ez-acc-item > .ez-acc-h > button:hover { background: var(--bg3); }
.ez-acc-item > .ez-acc-h > button > .ez-part-clip { flex: 1; }
.ez-acc-chev { display: grid; flex: none; color: var(--faint); transition: transform var(--dur) var(--ease); }
.ez-acc-item > .ez-acc-h > button[aria-expanded="true"] .ez-acc-chev { transform: rotate(180deg); }
.ez-acc-panel { padding: 0 var(--sp-3) var(--sp-3); min-width: 0; }

/* ── Compare: columns side by side, stacked under 720px of answer width ──── */
ezra-compare { display: block; container-type: inline-size; }
.ez-cmp { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ez-cmp-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: var(--sp-3); }
.ez-cmp-col { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ez-cmp-col + .ez-cmp-col { border-left: 1px solid var(--border); padding-left: var(--sp-3); }
.ez-cmp-label { min-width: 0; }
@container (max-width: 719.98px) {
  .ez-cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .ez-cmp-col + .ez-cmp-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: var(--sp-3); }
}

/* ── Text ─────────────────────────────────────────────────────────────────── */
ezra-text { display: block; min-width: 0; }
.ez-text-part > :first-child { margin-top: 0; }
.ez-text-part > :last-child { margin-bottom: 0; }

/* ── StatList ─────────────────────────────────────────────────────────────── */
.ez-stat-list { display: flex; flex-direction: column; margin: 0; }
.ez-stat-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-3); row-gap: var(--sp-1);
  padding: var(--sp-2) 0;
}
.ez-stat-row + .ez-stat-row { border-top: 1px solid var(--border); }
.ez-stat-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); color: var(--muted); }
.ez-stat-val { display: flex; align-items: center; gap: var(--sp-2); margin: 0; justify-content: flex-end; min-width: 0; }
.ez-stat-num { font: 600 var(--fs-14)/1.2 var(--mono); color: var(--bright); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ez-stat-num.is-text { font-family: var(--sans); max-width: 24ch; overflow: hidden; text-overflow: ellipsis; }
.ez-stat-delta { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ez-stat-bar { grid-column: 1 / -1; height: 4px; border-radius: var(--r-full); background: var(--bg4); overflow: hidden; }
.ez-stat-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--p); }
.ez-stat-bar[data-tone="bull"] > span { background: var(--bull); }
.ez-stat-bar[data-tone="bear"] > span { background: var(--bear); }

/* ── Timeline ─────────────────────────────────────────────────────────────── */
ezra-timeline .ez-card-body { container-type: inline-size; }
.ez-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ez-tl-item { display: grid; grid-template-columns: 11ch 12px minmax(0, 1fr); column-gap: var(--sp-2); position: relative; padding-bottom: var(--sp-3); }
.ez-tl-item:last-child { padding-bottom: 0; }
/* the rail between dots */
.ez-tl-item:not(:last-child)::after {
  content: ""; position: absolute; top: 14px; bottom: 0; left: calc(11ch + var(--sp-2) + 5px); width: 2px; background: var(--border2);
}
.ez-tl-time { padding-top: 1px; font: 500 var(--fs-12)/1.4 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ez-tl-dot { width: 12px; height: 12px; margin-top: 3px; border-radius: var(--r-full); background: var(--card); border: 2px solid var(--faint); box-sizing: border-box; }
.ez-tl-item[data-tone="bull"] .ez-tl-dot { border-color: var(--bull); background: var(--bull-wash); }
.ez-tl-item[data-tone="bear"] .ez-tl-dot { border-color: var(--bear); background: var(--bear-wash); }
.ez-tl-main { min-width: 0; }
.ez-tl-title { margin: 0; font-size: var(--fs-13); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ez-tl-text { margin: 2px 0 0; font-size: var(--fs-12); color: var(--muted); line-height: var(--lh-snug); }
@container (max-width: 380px) {
  .ez-tl-item { grid-template-columns: 12px minmax(0, 1fr); }
  .ez-tl-time { grid-column: 2; grid-row: 1; }
  .ez-tl-dot { grid-column: 1; grid-row: 1 / span 2; }
  .ez-tl-main { grid-column: 2; }
  .ez-tl-item:not(:last-child)::after { left: 5px; }
}

/* ── Checklist ────────────────────────────────────────────────────────────── */
.ez-chk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.ez-chk-item { display: flex; align-items: flex-start; gap: var(--sp-2); min-width: 0; }
.ez-chk-icon { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: var(--r-full); background: var(--bg3); color: var(--faint); }
.ez-chk-icon > svg { width: 14px; height: 14px; }
.ez-chk-item[data-state="pass"] .ez-chk-icon { background: var(--bull-wash); color: var(--bull-text); }
.ez-chk-item[data-state="fail"] .ez-chk-icon { background: var(--bear-wash); color: var(--bear-text); }
.ez-chk-item[data-state="pending"] .ez-chk-icon { background: var(--amber-wash); color: var(--amber-text); }
.ez-chk-main { min-width: 0; padding-top: 2px; }
.ez-chk-text { margin: 0; font-size: var(--fs-13); color: var(--text); overflow-wrap: anywhere; }
.ez-chk-item[data-state="na"] .ez-chk-text { color: var(--faint); }
.ez-chk-note { margin: 2px 0 0; font-size: var(--fs-12); color: var(--faint); overflow-wrap: anywhere; }

/* ── Calc ─────────────────────────────────────────────────────────────────── */
ezra-calc .ez-card-body { container-type: inline-size; }
.ez-calc { display: flex; flex-direction: column; gap: var(--sp-3); }
.ez-calc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.ez-calc-ins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.ez-calc-in { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.ez-calc-label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-12); color: var(--muted); }
.ez-calc-shown { flex: none; font: 600 var(--fs-12)/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.ez-calc-ctl { display: flex; align-items: center; gap: var(--sp-2); }
.ez-calc-range { flex: 1; min-width: 0; }
.ez-calc-num { flex: none; width: 10ch; height: var(--ctl-h-sm); font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.ez-calc-outs { display: grid; grid-template-columns: repeat(auto-fit, minmax(14ch, 1fr)); gap: var(--sp-2); margin: 0; padding: var(--sp-3); border-radius: var(--r-sm); background: var(--bg3); }
.ez-calc-out { min-width: 0; }
.ez-calc-out > dt { font-size: var(--fs-12); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ez-calc-val { margin: 2px 0 0; font: 700 var(--fs-16)/1.2 var(--mono); color: var(--bright); font-variant-numeric: tabular-nums; }
.ez-calc-note { margin: 0; font-size: var(--fs-12); color: var(--faint); }
@container (max-width: 520px) {
  .ez-calc-ins { grid-template-columns: minmax(0, 1fr); }
}

/* ── Trader parts (CONTRACT.md "Trader parts": FlowMap, LevelGauge, Meter, ScenarioSim) ─────────────
   FlowMap is an ECharts card (chart frame); the gauge and meter are SVG drawn at the card's width;
   ScenarioSim is a chart card with a slider panel. Level colours come from --level-<token> through
   --tone (set inline per level, the same tokens LevelsLadder uses); meter bands from the tone tokens. */

/* LevelGauge */
ezra-level-gauge .ez-card-body { display: flex; flex-direction: column; gap: var(--sp-2); }
.ez-lg-head { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--ctl-h-sm); }
.ez-lg-sum { font-size: var(--fs-12); color: var(--muted); }
.ez-lg-track { position: relative; width: 100%; min-width: 0; }
.ez-lg-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ez-lg-rail { fill: var(--bg4); }
.ez-lg-room { fill: var(--level-spot); opacity: .28; }
.ez-lg-lv { cursor: pointer; outline: none; }
.ez-lg-hit { fill: transparent; stroke: none; }
.ez-lg-lv:hover .ez-lg-hit { fill: var(--bg3); }
.ez-lg-lv:focus-visible .ez-lg-hit { fill: var(--bg3); stroke: var(--ring); stroke-width: 2; }
.ez-lg-tick { stroke: var(--tone, var(--level-custom)); stroke-width: 2.5; stroke-linecap: round; }
.ez-lg-lead { stroke: var(--tone, var(--level-custom)); stroke-width: 1; opacity: .55; }
.ez-lg-text { font: 500 var(--fs-11)/1 var(--sans); fill: var(--text); }
.ez-lg-text.is-clash { opacity: .8; }
.ez-lg-name { fill: var(--muted); }
.ez-lg-price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; fill: var(--bright); }
.ez-lg-spot line { stroke: var(--level-spot); stroke-width: 1.5; }
.ez-lg-spot circle { fill: var(--level-spot); stroke: var(--card); stroke-width: 2; }
.ez-lg-spot-tag { fill: var(--card); stroke: var(--level-spot); stroke-width: 1; }
.ez-lg-spot-text { font: 600 var(--fs-11)/1 var(--mono); font-variant-numeric: tabular-nums; fill: var(--bright); }
.ez-lg-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.ez-lg-chip { justify-content: flex-start; gap: var(--sp-2); min-width: 0; width: 100%; font-size: var(--fs-12); }
.ez-lg-chip > :last-child { margin-left: auto; }
.ez-lg-chip b { color: var(--bright); }
.ez-lg-chip.is-none { color: var(--faint); border-radius: var(--r-sm); }
.ez-lg-chip.is-none > :last-child { margin-left: 0; }
.ez-lg-sw { flex: none; width: 10px; height: 3px; border-radius: 2px; background: var(--tone, var(--level-custom)); }
.ez-lg-dir { flex: none; color: var(--faint); }
.ez-lg-name.ez-part-clip { flex: 0 1 auto; color: var(--muted); }
@container (max-width: 520px) {
  .ez-lg-chips { grid-template-columns: minmax(0, 1fr); }
  .ez-lg-dir { display: none; }
}
ezra-level-gauge .ez-card { container-type: inline-size; }

/* Meter */
.ez-meter { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-1) 0; border-radius: var(--r-sm); cursor: pointer; }
.ez-meter-top { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.ez-meter-label { flex: 0 1 auto; font-size: var(--fs-13); color: var(--muted); }
.ez-meter-value { margin-left: auto; font-size: var(--fs-metric); font-weight: 700; color: var(--bright); line-height: 1.1; }
.ez-meter-bar { width: 100%; min-width: 0; }
.ez-meter-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ez-meter-rail { fill: var(--bg4); }
.ez-meter-seg { opacity: .32; transition: opacity var(--dur) ease; }
.ez-meter-seg.is-on { opacity: 1; }
.ez-meter-seg.is-bull { fill: var(--bull); }
.ez-meter-seg.is-bear { fill: var(--bear); }
.ez-meter-seg.is-amber { fill: var(--amber); }
.ez-meter-seg.is-neutral { fill: var(--faint); }
.ez-meter-seg.is-accent { fill: var(--p); }
.ez-meter-band { font: 500 var(--fs-11)/1 var(--sans); fill: var(--faint); }
.ez-meter-band.is-on { fill: var(--text); font-weight: 600; }
.ez-meter-end { font: 500 var(--fs-11)/1 var(--mono); font-variant-numeric: tabular-nums; fill: var(--faint); }
.ez-meter-needle line { stroke: var(--bright); stroke-width: 2; stroke-linecap: round; }
.ez-meter-needle circle { fill: var(--bright); stroke: var(--card); stroke-width: 2.5; }
.ez-meter-note { margin: 0; font-size: var(--fs-12); color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .ez-meter-seg { transition: none; } }

/* ScenarioSim: sliders + readouts between the chart and the footer */
ezra-scenario-sim .ez-card { container-type: inline-size; }
.ez-sim { display: flex; flex-direction: column; gap: var(--sp-3); padding: 0 14px 12px; }
.ez-sim-ctls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-4); }
.ez-sim-row { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "label out" "range range"; align-items: center; gap: var(--sp-1) var(--sp-2); min-width: 0; }
.ez-sim-row > label { grid-area: label; font-size: var(--fs-12); font-weight: 600; color: var(--muted); white-space: nowrap; }
.ez-sim-val { grid-area: out; justify-self: end; font-size: var(--fs-12); font-weight: 600; color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ez-sim-range { grid-area: range; width: 100%; min-width: 0; height: 24px; margin: 0; }
.ez-sim-range:disabled { opacity: .5; cursor: not-allowed; }
.ez-sim-reads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); margin: 0; padding: var(--sp-3); border-radius: var(--r-sm); background: var(--bg3); }
.ez-sim-read { min-width: 0; }
.ez-sim-read > dt { font-size: var(--fs-12); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ez-sim-read > dd { margin: 2px 0 0; font-size: var(--fs-16); font-weight: 700; line-height: 1.2; color: var(--bright); }
.ez-sim-read > dd.ez-up { color: var(--bull-text); }
.ez-sim-read > dd.ez-down { color: var(--bear-text); }
.ez-sim-end { display: flex; align-items: center; gap: var(--sp-3); }
.ez-sim-note { flex: 1; margin: 0; font-size: var(--fs-12); color: var(--faint); }
.ez-sim-note b { color: var(--amber-text); font-weight: 600; }
@container (max-width: 720px) {
  .ez-sim-ctls { grid-template-columns: minmax(0, 1fr); }
  .ez-sim-reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 400px) {
  .ez-sim { padding: 0 10px 10px; }
  .ez-sim-end { flex-direction: column; align-items: stretch; }
}

/* ── Choices + drawing placeholder (CONTRACT.md "Rich v2") ──────────────────────────────────────────────
 * <ezra-choices>: a radio group of options and one primary "Ask EZRA" button; locked once sent.
 * .ez-drawing: the "Drawing view…" placeholder a waiting inline slot shows on a rich turn (lib/inline-ui.js
 * drawingHtml); the .ez-skel shimmer plus a label, still under reduced motion. */
.ez-choices-q { margin: 0 0 var(--sp-2); font-size: var(--fs-body); font-weight: 600; line-height: var(--lh-snug); color: var(--bright); }
.ez-choices-list { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.ez-choice {
  display: flex; align-items: center; gap: var(--sp-2); min-width: 0; min-height: var(--ctl-h); padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg3);
  font-size: var(--fs-13); line-height: var(--lh-snug); color: var(--text);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.ez-choice[role="radio"] { cursor: pointer; }
.ez-choice[role="radio"]:hover:not([aria-disabled="true"], [aria-checked="true"]) { background: var(--bg4); color: var(--bright); }
.ez-choice[role="radio"]:focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--focus-halo); }
.ez-choice[aria-checked="true"] { background: var(--p1); border-color: var(--p3); color: var(--p-text); }
.ez-choice[aria-disabled="true"] { cursor: default; }
.ez-choice[aria-disabled="true"]:not([aria-checked="true"]) { opacity: .55; }
.ez-choice-label { min-width: 0; overflow-wrap: anywhere; }
.ez-choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ez-choice-label { font-weight: 600; }
.ez-choice-prompt {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: var(--fs-12); line-height: var(--lh-snug); color: var(--muted); overflow-wrap: anywhere;
}
.ez-choice[aria-checked="true"] .ez-choice-prompt { color: inherit; opacity: .8; }
.ez-choice-mark {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: var(--r-full);
  border: 1.5px solid var(--border2); background: var(--card);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.ez-choice[aria-checked="true"] .ez-choice-mark { border-color: var(--p); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 8px var(--p); }
.ez-choices-foot { gap: var(--sp-3); padding-top: var(--sp-1); }
.ez-choices-hint { font-size: var(--fs-12); color: var(--faint); }
.ez-choices-done { margin: 0; font-size: var(--fs-13); font-weight: 600; color: var(--p-text); overflow-wrap: anywhere; }
.ez-choices-done:focus { outline: none; }

.ez-skel.ez-drawing { display: grid; place-items: center; background: color-mix(in srgb, var(--p) 6%, var(--skeleton)); }
.ez-drawing-label {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-full); background: var(--card);
  font-size: var(--fs-12); font-weight: 600; color: var(--muted);
}
.ez-drawing-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--p); animation: ez-drawing-pulse 1.2s var(--ease) infinite; }
@keyframes ez-drawing-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .ez-choice, .ez-choice-mark { transition: none; }
  .ez-drawing-dot { animation: none; }
}

/* ── EChart + Diagram ─────────────────────────────────────────────────────── */
/* EChart draws in the shared chart frame (.ez-plot); nothing of its own here. Diagram: SVG from
   lib/diagram-layout.js, every colour a token so both themes follow. */
.ez-dg { min-width: 0; overflow-x: hidden; padding-block: var(--sp-1); }
.ez-dg.is-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.ez-dg-svg { display: block; margin-inline: auto; max-width: none; overflow: visible; font-family: var(--sans); }
.ez-dg.is-scroll .ez-dg-svg { margin-inline: 0; }
.ez-dg-group rect { fill: color-mix(in srgb, var(--p) 5%, transparent); stroke: var(--border); stroke-width: 1; }
.ez-dg-group text { fill: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: var(--track-caps); }
.ez-dg-edge { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; transition: stroke var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.ez-dg-arrow { fill: var(--faint); }
.ez-dg-arrow.is-on { fill: var(--p); }
.ez-dg-svg.is-hl .ez-dg-edge { opacity: .35; }
.ez-dg-svg.is-hl .ez-dg-edge.is-on { opacity: 1; stroke: var(--p); stroke-width: 2; }
.ez-dg-elabel rect { fill: var(--card); stroke: var(--border2); stroke-width: 1; }
.ez-dg-elabel text { fill: var(--muted); font-size: 11px; }
.ez-dg-node { --tone: var(--faint); outline: none; }
.ez-dg-node.is-bull { --tone: var(--bull); }
.ez-dg-node.is-bear { --tone: var(--bear); }
.ez-dg-node.is-accent { --tone: var(--p); }
.ez-dg-node.is-amber { --tone: var(--amber); }
.ez-dg-node[role="button"] { cursor: pointer; }
.ez-dg-box { fill: var(--card-2); stroke: var(--border2); stroke-width: 1; transition: fill var(--dur-fast) var(--ease), stroke var(--dur-fast) var(--ease); }
.ez-dg-stripe { fill: var(--tone); }
.ez-dg-label { fill: var(--bright); font-size: 13px; font-weight: 600; }
.ez-dg-sub { fill: var(--muted); font-size: 12px; }
.ez-dg-node[role="button"]:hover .ez-dg-box { fill: var(--bg4); stroke: var(--p3); }
.ez-dg-node:focus-visible .ez-dg-box { stroke: var(--ring); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) {
  .ez-dg-edge, .ez-dg-box { transition: none; }
}
