/* Data views (js/viz.js): lineage, object graph, pipeline, column mapping and feed health, on night */

.v { border-radius: 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--ln), var(--shadow-device); overflow: hidden; }
.v-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 18px 12px; border-bottom: 1px solid var(--ln); font-size: 13px; }
.v-head b { font-weight: 600; }
.v-sub { color: var(--tx2); margin-right: 4px; }
.v-chip { font-size: 11.5px; font-weight: 500; color: var(--tx2); background: var(--p2); border-radius: 4px; padding: 2px 9px; }
.v-chip.warn { color: var(--tp); background: var(--tpw); }
.v-head__r { margin-left: auto; font-size: 11.5px; color: var(--tx3); }
.v-body { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.v-body svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.v-body--wide svg { min-width: 860px; padding: 10px 6px 4px; }
.v-body--graph svg, .v-body--pipe svg, .v-body--map svg, .v-body--health svg { min-width: 560px; padding: 8px 4px 2px; }
.v-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 11px 18px 13px; border-top: 1px solid var(--ln); font-size: 12px; color: var(--tx2); }
.v-foot span { display: inline-flex; align-items: center; gap: 7px; }
.v-foot__r { margin-left: auto; color: var(--tx3); }
.v-dot-k { width: 7px; height: 7px; border-radius: 50%; background: var(--gn); }
.v-dot-k.warn { background: var(--tp); }
.v-band-k { width: 14px; height: 8px; border-radius: 2px; background: var(--gnw); box-shadow: inset 0 0 0 1px rgba(108, 192, 142, 0.35); }
.v-line-k { width: 14px; height: 2px; border-radius: 1px; background: var(--tx); }

/* SVG parts */
.v .v-box { fill: var(--p1); stroke: var(--ln); stroke-width: 1; }
.v .v-box--obj { fill: #2d302b; stroke: rgba(108, 192, 142, 0.35); }
.v .v-icb { fill: var(--p2); }
.v .v-icc { fill: var(--p2); }
.v .v-ic { fill: none; stroke: var(--tx2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.v .v-n--cube .v-ic, .v .v-gn .v-ic { stroke: var(--gn); }
.v .v-n--app .v-ic { stroke: var(--tx); }
.v .v-n--gate .v-ic { stroke: var(--tp); }
.v .v-t { fill: var(--tx); font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.v .v-t--sm { font-size: 12px; }
.v .v-s { fill: var(--tx2); font-size: 11px; }
.v .v-s--warn { fill: var(--tp); font-weight: 600; }
.v .v-col { fill: var(--tx3); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.v .v-mono { fill: var(--tx); font: 12px "SF Mono", Menlo, Consolas, monospace; }
.v .v-mono--d { fill: var(--gn); }
.v .v-ln { fill: none; stroke: rgba(238, 235, 228, 0.22); stroke-width: 1.3; }
.v .v-ln--der { fill: none; stroke: var(--gn); stroke-width: 1.3; stroke-dasharray: 3 4; }
.v .v-pk { fill: var(--tx); opacity: 0.9; }
.v .v-dot { fill: var(--gn); }
.v .v-dot.warn { fill: var(--tp); }
.v .v-dot.off { fill: none; stroke: var(--tx3); stroke-width: 1.2; }
.v .v-lb { fill: var(--bg); stroke: var(--ln); }
.v .v-lb--warn { fill: var(--tpw); stroke: rgba(255, 106, 77, 0.4); }
.v .v-rings circle { fill: none; stroke: rgba(238, 235, 228, 0.07); stroke-dasharray: 2 6; }
.v .v-grid { stroke: rgba(238, 235, 228, 0.08); }
.v .v-band { fill: var(--gnw); stroke: rgba(108, 192, 142, 0.3); stroke-width: 1; }
.v .v-tl { fill: none; stroke: var(--tx); stroke-width: 1.8; stroke-linejoin: round; }
.v .v-bar { fill: rgba(238, 235, 228, 0.28); }
.v .v-bar.warn { fill: var(--tp); }
.v .v-gn--c .v-box { fill: #33302c; stroke: var(--tp); stroke-width: 1.4; }
.v .v-gn--fail .v-box { stroke: rgba(255, 106, 77, 0.5); }
.v .v-pn--gate .v-box { stroke: rgba(255, 106, 77, 0.45); }

/* Tracing on the lineage graph */
.v .v-n { cursor: pointer; outline: none; }
.v .v-n .v-box { transition: stroke 0.2s, fill 0.2s; }
.v .v-n:hover .v-box, .v .v-n:focus-visible .v-box { stroke: var(--tx2); }
.v svg .v-n, .v svg .v-e { transition: opacity 0.25s; }
.v svg.is-tracing .v-n:not(.on), .v svg.is-tracing .v-e:not(.on) { opacity: 0.18; }
.v svg.is-tracing .v-e.on .v-ln { stroke: var(--tx); stroke-width: 1.6; }
.v svg.is-tracing .v-n.on .v-box { stroke: var(--tx2); }

/* Entrance: edges draw, nodes rise, the series traces */
.js .v .v-gl .v-ln, .js .v .v-ln--map, .js .v .v-tl { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--out) calc(var(--i, 0) * 70ms + 200ms); }
.js .v.is-on .v-gl .v-ln, .js .v.is-on .v-ln--map, .js .v.is-on .v-tl { stroke-dashoffset: 0; }
.js .v .v-tl { transition-duration: 2.2s; }
.js .v .v-gn, .js .v .v-pn { opacity: 0; transition: opacity 0.6s var(--out) calc(var(--i, 0) * 60ms); }
.js .v.is-on .v-gn, .js .v.is-on .v-pn { opacity: 1; }
.v .v-pulse { display: none; }
.static .v *, .v.is-on.v-static * { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .v * { animation: none !important; transition: none !important; } }

/* Layouts that hold the views */
.vz { display: grid; gap: 20px; margin-top: 48px; }
.vz--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.vz__cap { margin: 14px 2px 0; font-size: 14.5px; color: var(--soft); max-width: 60ch; }
.vz__cap b { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .vz--2 { grid-template-columns: minmax(0, 1fr); } }
.vz > * { min-width: 0; }
@media (max-width: 600px) { .v-head { padding: 12px 14px 10px; } .v-head__r { display: none; } .v-foot { padding: 10px 14px 12px; } .v-foot__r { display: none; } }
