/* Offer Ready: tree traversal visualizer styles. Reuses .va-read and .va-kv from app.css. */
.tt-tree { position: relative; width: 100%; max-width: 34rem; margin: 0 auto; }
.tt-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tt-edges line { stroke: var(--line-strong, var(--ink-3)); stroke-width: 1.5; }
.tt-n {
  position: absolute; width: 34px; height: 34px; margin-left: -17px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  font: 500 var(--text-sm)/1 var(--font-mono); font-stretch: var(--stretch-mono);
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.tt-n.in { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-soft-ink); }
.tt-n.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.tt-n.cur { outline: 2px solid var(--accent); outline-offset: 1px; }
.tt-nil {
  position: absolute; width: 16px; margin-left: -8px; text-align: center; font: var(--text-xs)/1 var(--font-mono); color: var(--hard);
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
.tt-nil.on { opacity: 1; }
.tt-modes { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tt-modes .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-soft-ink); }
.tt .va-read dt.tt-lbl { white-space: nowrap; }
@media (max-width: 480px) { .tt-n { width: 30px; height: 30px; margin-left: -15px; } }
