/* NFPA 13 emtia karar ağacı (js/viz/commodity.js) — yalnız bu görsel, .cmt- önekli */
.cmt-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle-foreground); font-weight: 500; margin: 0 0 8px; }
.cmt-tree { margin-bottom: 16px; }
.cmt-tree svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font-sans, 'Geist', system-ui, sans-serif); }
.cmt-e { fill: none; stroke: oklch(1 0 0 / 0.24); stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke 0.35s, stroke-width 0.35s; }
.cmt-e.on { stroke: var(--accent); stroke-width: 2.6; filter: drop-shadow(0 0 5px oklch(0.80 0.15 62 / 0.45)); }
.cmt-n { cursor: pointer; outline: none; }
.cmt-n rect { fill: oklch(1 0 0 / 0.035); stroke: oklch(1 0 0 / 0.22); stroke-width: 1.2; transition: fill 0.3s, stroke 0.3s; }
.cmt-n.is-leaf rect { fill: oklch(1 0 0 / 0.06); }
.cmt-n .cmt-t { fill: var(--foreground); font-size: 13px; font-weight: 600; }
.cmt-n .cmt-s { fill: var(--subtle-foreground); font-size: 11px; font-style: italic; }
.cmt-n:hover rect, .cmt-n:focus-visible rect { stroke: oklch(0.80 0.15 62 / 0.7); }
.cmt-n.path rect { stroke: oklch(0.80 0.15 62 / 0.6); }
.cmt-n.on rect { fill: oklch(0.80 0.15 62 / 0.16); stroke: var(--accent); stroke-width: 2; }
.cmt-n.on .cmt-s { fill: oklch(0.86 0.11 66); }
.cmt-anim .cmt-n { animation: cmtIn 0.45s ease backwards; animation-delay: var(--d, 0ms); }
.cmt-anim .cmt-e { animation: cmtDraw 0.9s ease backwards; animation-delay: 0.25s; }
@keyframes cmtIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes cmtDraw { from { stroke-dashoffset: 100; } }
.cmt-lad { display: grid; grid-template-columns: repeat(4, minmax(0, 0.85fr)) repeat(4, minmax(0, 1.15fr)); gap: 6px; align-items: end; }
.cmt-rung { font: inherit; cursor: pointer; display: grid; gap: 3px; align-content: end; text-align: left; padding: 6px 7px; border-radius: 8px; min-width: 0;
  color: var(--muted-foreground); background: oklch(1 0 0 / 0.03); border: 1px solid var(--border); font-size: 0.74rem; line-height: 1.25;
  transition: background 0.3s, border-color 0.3s, color 0.3s; }
.cmt-rung b { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; color: var(--subtle-foreground); }
.cmt-rung span { overflow-wrap: break-word; hyphens: auto; }
.cmt-rung:nth-child(1) { min-height: 44px; } .cmt-rung:nth-child(2) { min-height: 50px; } .cmt-rung:nth-child(3) { min-height: 56px; } .cmt-rung:nth-child(4) { min-height: 62px; }
.cmt-rung:nth-child(5) { min-height: 68px; } .cmt-rung:nth-child(6) { min-height: 74px; } .cmt-rung:nth-child(7) { min-height: 80px; } .cmt-rung:nth-child(8) { min-height: 86px; }
.cmt-rung.on { color: var(--foreground); background: var(--accent-soft); border-color: oklch(0.80 0.15 62 / 0.6); box-shadow: 0 0 0 3px oklch(0.80 0.15 62 / 0.08); }
.cmt-rung.on b { color: var(--accent); }
.cmt-rung:focus-visible { outline: 2px solid var(--ring, var(--accent)); outline-offset: 2px; }
.cmt-out { min-height: 4.8em; }
@media (max-width: 620px) {
  .cmt-lad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cmt-rung { min-height: 0 !important; }
  .cmt-rung:nth-child(n+5) { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { .cmt-anim .cmt-n, .cmt-anim .cmt-e { animation: none; } }
