/* FM DS 7-112 lityum-iyon karar akışı (js/viz/ds7112-flow.js) */
.d7f { position: relative; }
.d7f-path { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 0; }
.d7f-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.d7f-flow { fill: none; stroke: oklch(1 0 0 / 0.95); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 14; opacity: 0.55; animation: d7f-run 1.1s linear infinite; }
@keyframes d7f-run { to { stroke-dashoffset: -16; } }
.d7f-cols { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.8fr 1fr; gap: 34px; align-items: start; }
.d7f-ct { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle-foreground); margin-bottom: 8px; }
.d7f-ct span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1px solid oklch(0.80 0.15 62 / 0.3); background: var(--accent-soft); color: var(--accent); font-weight: 500; letter-spacing: 0; }
.d7f-list { display: grid; gap: 6px; }
.d7f-node {
  font: inherit; font-size: 0.84rem; line-height: 1.3; text-align: left; cursor: pointer; padding: 8px 11px; border-radius: 9px;
  color: var(--muted-foreground); background: #121316; border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.d7f-node small { color: var(--subtle-foreground); font-size: 0.74rem; }
.d7f-node:hover { color: var(--foreground); border-color: oklch(0.80 0.15 62 / 0.5); }
.d7f-node.sel { color: var(--foreground); border-color: oklch(0.80 0.15 62 / 0.7); background: linear-gradient(oklch(0.80 0.15 62 / 0.14), oklch(0.80 0.15 62 / 0.14)), #121316; box-shadow: 0 0 0 1px oklch(0.80 0.15 62 / 0.7) inset, 0 0 18px -6px oklch(0.80 0.15 62 / 0.5); }
.d7f-node.skip { cursor: default; font-style: italic; color: var(--subtle-foreground); background: #121316; border-style: dashed; box-shadow: none; border-color: var(--border-strong); }
.d7f-res { position: relative; z-index: 1; margin-top: 34px; padding: 14px 16px; border-radius: 10px; background: oklch(0.16 0.005 270); border: 1px solid var(--border); border-left: 3px solid var(--c-ok); font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.d7f-res.t-warn { border-left-color: var(--accent); }
.d7f-res.t-bad { border-left-color: var(--c-bad); }
.d7f-rh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.d7f-rh b { color: var(--foreground); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.d7f-badge { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; border: 1px solid oklch(0.86 0.13 165 / 0.35); background: oklch(0.86 0.13 165 / 0.12); color: var(--c-ok); }
.d7f-res.t-warn .d7f-badge { border-color: oklch(0.80 0.15 62 / 0.35); background: var(--accent-soft); color: var(--accent); }
.d7f-res.t-bad .d7f-badge { border-color: oklch(0.72 0.17 25 / 0.4); background: oklch(0.72 0.17 25 / 0.14); color: var(--c-bad); }
.d7f-res ul { margin: 0; padding-left: 18px; }
.d7f-res li { margin: 3px 0; }
.d7f-cl { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 5px; color: var(--subtle-foreground); border: 1px solid var(--border-strong); white-space: nowrap; }
.d7f-seg { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.d7f-gl { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle-foreground); }
.d7f-soc, .d7f-src { margin: 8px 0 0; font-size: 12.5px; color: var(--subtle-foreground); }
@media (max-width: 640px) {
  .d7f-cols { grid-template-columns: 1fr; gap: 16px; padding-left: 14px; }
  .d7f-res { margin-top: 22px; }
  .d7f-node { font-size: 0.82rem; }
}
.cviz-stage.is-still .d7f-flow { display: none; }
@media (max-width: 640px) { .d7f-line { stroke-width: 3; } }
