/* ==========================================================================
   /narrative — Narrative intelligence page (loaded after aei.css, which carries the shared .vx-* UI language)
   Status system: pos (aligned/positive), miss (missing), mix (mixed), old (outdated), bad (inaccurate/risk), opp (opportunity)
   ========================================================================== */
/* Three tones only: the cyan accent (aligned / positive / opportunity), neutral grey (missing, mixed) and one warm tone for anything that needs attention (outdated, inaccurate, risk). Missing is hollow, mixed is dotted. */
.nv { --s-pos: var(--a); --s-miss: #9a9a9a; --s-mix: #b8b8b8; --s-old: #d8a35e; --s-bad: #d8a35e; --s-opp: var(--a); }
.nv-label { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.nv-status, .nv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-style: normal; font-size: 11px; line-height: 1.5; color: var(--fg-2); white-space: nowrap; --c: #777; }
.nv-status::before, .nv-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c); flex: none; }
.nv-status.pos, .nv-chip.pos { --c: var(--s-pos); color: var(--s-pos); border-color: var(--a-line); }
.nv-status.miss, .nv-chip.miss { --c: var(--s-miss); color: var(--fg-2); border-style: dashed; border-color: #4a4a4d; }
.nv-status.miss::before, .nv-chip.miss::before { background: transparent; box-shadow: inset 0 0 0 1px var(--s-miss); }
.nv-status.mix, .nv-chip.mix { --c: var(--s-mix); color: var(--fg-2); border-style: dotted; border-color: #5a5a5d; }
.nv-status.old, .nv-chip.old { --c: var(--s-old); color: var(--s-old); border-color: rgba(216,163,94,.4); }
.nv-status.bad, .nv-chip.bad { --c: var(--s-bad); color: var(--s-bad); border-color: rgba(216,163,94,.4); }
.nv-status.opp, .nv-chip.opp { --c: var(--s-opp); color: var(--s-opp); border-color: var(--a-line); }
.nv-chip { padding: 4px 10px; font-size: 12px; }
.nv-chip.dim { color: var(--fg-3); border-style: dashed; }

/* ---------- 01 Hero ---------- */
.nv-hero { position: relative; overflow: hidden; }
.nv-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.nv-bg-lines path { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1; }
.nv-bg-labels text { fill: rgba(255,255,255,.16); font: 500 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.nv-hero .container { position: relative; }
.nv-hero-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr); align-items: start; }
.nv-hero .vx-hero-copy { padding-top: 56px; }
.nv-facts li b { min-width: 0; }
.nv-sample { display: block; margin-top: 14px; font-size: 11.5px; color: var(--fg-4); }

.nv-demo { font-size: 12.5px; box-shadow: 0 40px 120px rgba(0,0,0,.6); background: #0b0b0c; }
.nv-demo .mock-top b { color: var(--fg); }
.nv-demo .mock-top b span { color: var(--fg-2); }
.nv-demo .mock-top b span:first-child { color: var(--fg); }
.nv-plats { flex: none; margin-left: auto; font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.nv-demo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 690px; }
.nv-demo-left { padding: 14px 14px 12px; border-right: 1px solid var(--line-soft); display: grid; gap: 14px; align-content: start; }
.nv-align { display: grid; gap: 8px; padding: 12px 14px 12px; border: 1px solid var(--a-line); border-radius: 12px; background: linear-gradient(180deg, rgba(1,194,225,.09), rgba(1,194,225,.015)); }
.nv-align-kpi { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l l" "v d"; align-items: baseline; gap: 0 10px; }
.nv-align-kpi small { grid-area: l; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.nv-align-kpi strong { grid-area: v; font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nv-align-kpi em { grid-area: d; font-style: normal; font-size: 12px; color: var(--s-pos); }
.nv-align-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.nv-align-bar i { width: var(--w); height: 100%; background: #333; }
.nv-align-bar i.pos { background: var(--s-pos); } .nv-align-bar i.miss { background: #3a3a3d; } .nv-align-bar i.bad { background: var(--s-bad); }
.nv-align-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--fg-3); }
.nv-align-legend li { display: flex; align-items: center; gap: 6px; }
.nv-align-legend li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #333; }
.nv-align-legend li.pos::before { background: var(--s-pos); } .nv-align-legend li.miss::before { background: #3a3a3d; } .nv-align-legend li.bad::before { background: var(--s-bad); }
.nv-align-legend b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.nv-themes { display: grid; gap: 6px; }
.nv-themes ul { display: grid; gap: 3px; }
.nv-theme { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; text-align: left; color: var(--fg-2); font-size: 12.5px; transition: background .25s, border-color .25s, color .25s; }
.nv-theme::before { content: ""; grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #555); box-shadow: 0 0 8px var(--c, transparent); }
.nv-theme.hollow::before, .nv-q.hollow::before, .nv-node.miss i, .nv-map-card.miss::before, .nv-status-key li.miss b::before { background: transparent !important; box-shadow: inset 0 0 0 1px var(--c, #9a9a9a); }
.nv-theme > span { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-theme > .nv-status { grid-column: 3; grid-row: 1 / span 2; }
.nv-theme > small { grid-column: 2; grid-row: 2; font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nv-theme > small em { font-style: normal; margin-left: 6px; }
.nv-theme > small em.up { color: var(--s-pos); } .nv-theme > small em.down { color: var(--s-bad); }
.nv-theme:hover, .nv-theme:focus-visible { background: rgba(255,255,255,.04); color: var(--fg); outline: none; }
.nv-theme.on { background: #151517; border-color: #2e2e31; color: var(--fg); }
.nv-theme:focus-visible { box-shadow: 0 0 0 2px var(--a-line); }
.nv-why { padding: 14px 16px 14px; min-width: 0; display: flex; flex-direction: column; gap: 10px; animation: axPanel .45s var(--expo); }
.nv-why-head { display: grid; gap: 4px; }
.nv-why-head small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--a); }
.nv-why-head h4 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em; }
.nv-why-row { display: grid; gap: 5px; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.nv-why-row > small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.nv-why-quote { margin: 0; padding: 8px 10px 8px 12px; border-left: 2px solid #3a3a3d; color: var(--fg); font-size: 12.5px; line-height: 1.5; background: var(--surface); border-radius: 0 8px 8px 0; }
.nv-why-src { display: grid; gap: 4px; }
.nv-why-src li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 9px; border: 1px solid var(--line-soft); border-radius: 8px; background: #0f0f10; }
.nv-why-src li b { display: block; font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-why-src li span { display: block; font-size: 11px; color: var(--fg-3); }
.nv-why-mem { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--fg); }
.nv-why-mem::before { content: "✓"; color: var(--s-pos); flex: none; }
.nv-why-acts { display: grid; gap: 3px; }
.nv-why-acts li { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--fg); }
.nv-why-acts li::before { content: counter(a); counter-increment: a; font-size: 10.5px; color: var(--fg-4); font-variant-numeric: tabular-nums; min-width: 12px; }
.nv-why-acts { counter-reset: a; }
.nv-why-cta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.nv-why-cta small { font-size: 11.5px; color: var(--fg-3); }

/* ---------- 02 Sentiment vs Narrative ---------- */
.nv-why-sec { padding: 96px 0 24px; }
.nv-compare { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.nv-compare-copy h2 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; max-width: 460px; }
.nv-compare-copy p { margin-top: 14px; color: var(--fg-2); max-width: 440px; }
.nv-compare-cards { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.nv-cmp { display: grid; gap: 12px; align-content: start; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.nv-cmp > small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.nv-cmp > p { font-size: 12.5px; color: var(--fg-3); margin-top: auto; }
.nv-cmp--sent { color: var(--fg-3); }
.nv-cmp-score { display: grid; gap: 2px; padding: 18px 0 10px; }
.nv-cmp-score strong { font-size: 44px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--fg-2); }
.nv-cmp-score span { font-size: 12.5px; }
.nv-cmp--narr { border-color: var(--a-line); background: linear-gradient(180deg, rgba(1,194,225,.07), rgba(1,194,225,.01)); }
.nv-cmp--narr > small { color: var(--a); }
.nv-cmp--narr > p { color: var(--fg); }
.nv-cmp dl { margin: 0; display: grid; gap: 8px; }
.nv-cmp dl div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: center; }
.nv-cmp dt { font-size: 11px; color: var(--fg-3); }
.nv-cmp dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------- 03 AI answer reader ---------- */
.nv-reader { font-size: 13px; box-shadow: 0 40px 120px rgba(0,0,0,.6); background: #0b0b0c; }
.nv-reader .mock-top b span { color: var(--fg-2); }
.nv .ax-qx-legend i.win, .nv .ax-qx-legend i.comp { background: var(--a); }
.nv .ax-qx-legend i.miss { background: transparent; box-shadow: inset 0 0 0 1px var(--s-miss); }
.nv .ax-qx-legend i.risk { background: var(--s-bad); }
.nv-reader-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.7fr); min-height: 440px; }
.nv-qs { padding: 10px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.nv-q { display: grid; grid-template-columns: 8px minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 10px; align-items: center; width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid transparent; text-align: left; color: var(--fg-2); transition: background .25s, border-color .25s, color .25s, transform .4s var(--expo); }
.nv-q::before { content: ""; grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #555); box-shadow: 0 0 8px var(--c, transparent); }
.nv-q > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-q > small { font-size: 11px; color: var(--c, var(--fg-3)); }
.nv-q:hover, .nv-q:focus-visible { background: rgba(255,255,255,.03); color: var(--fg); outline: none; }
.nv-q.on { background: #151517; border-color: #2e2e31; color: var(--fg); transform: translateX(4px); }
.nv-q:focus-visible { box-shadow: 0 0 0 2px var(--a-line); }
.nv-answer { padding: 18px 22px 20px; min-width: 0; display: flex; flex-direction: column; gap: 14px; animation: axPanel .45s var(--expo); }
.nv-answer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nv-answer-head h4 { margin: 0; font-size: 16px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em; line-height: 1.35; }
.nv-answer-text { position: relative; margin: 0; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); font-size: 14.5px; line-height: 1.7; color: var(--fg); }
.nv-answer-text::before { content: attr(data-plat); position: absolute; top: -8px; left: 12px; padding: 1px 8px; border-radius: 999px; background: #0b0b0c; border: 1px solid var(--line); font-size: 10.5px; color: var(--fg-3); }
.nv-mark { padding: 1px 3px; border-radius: 4px; background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 -1px 0 var(--c); color: var(--fg); transition: background .25s, box-shadow .25s; cursor: default; }
.nv-mark.pos { --c: var(--s-pos); } .nv-mark.miss { --c: var(--s-miss); } .nv-mark.mix { --c: var(--s-mix); } .nv-mark.old { --c: var(--s-old); } .nv-mark.bad { --c: var(--s-bad); }
.nv-mark.hot, .nv-mark:hover { background: color-mix(in srgb, var(--c) 32%, transparent); box-shadow: inset 0 -2px 0 var(--c); }
.nv-answer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nv-answer-col { display: grid; gap: 8px; align-content: start; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.nv-answer-col > small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.nv-answer-col > small::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.nv-answer-col > div { display: flex; flex-wrap: wrap; gap: 5px; }
.nv-answer-col .nv-chip { cursor: default; transition: transform .3s var(--expo), background .25s; }
.nv-answer-col .nv-chip.hot, .nv-answer-col .nv-chip:hover { transform: translateY(-2px); background: rgba(255,255,255,.05); }
.nv-answer-col--miss { border-color: rgba(255,176,32,.3); }
.nv-answer-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--fg-2); }
.nv-answer-act b { font-weight: 500; color: var(--fg); }
.nv-answer-act .btn { margin-left: auto; }

/* ---------- 04 Narrative map ---------- */
.nv-status-key { display: grid; gap: 7px; margin-top: 22px; font-size: 13.5px; }
.nv-status-key li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: baseline; color: var(--fg-3); }
.nv-status-key b { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--fg); }
.nv-status-key b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #777); flex: none; }
.nv-status-key li.pos { --c: var(--s-pos); } .nv-status-key li.miss { --c: var(--s-miss); } .nv-status-key li.mix { --c: var(--s-mix); } .nv-status-key li.old { --c: var(--s-old); } .nv-status-key li.bad { --c: var(--s-bad); }
.nv-map { position: relative; aspect-ratio: 1 / .82; min-height: 360px; }
.nv-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nv-map-lines line { stroke: rgba(255,255,255,.12); stroke-width: 1; transition: stroke .3s; }
.nv-map-lines line.on { stroke: var(--c); }
.nv-map-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; gap: 2px; width: 118px; height: 118px; border-radius: 50%; border: 1px solid var(--a-line); background: radial-gradient(circle at 50% 40%, rgba(1,194,225,.18), rgba(1,194,225,.03) 70%); box-shadow: 0 0 0 10px rgba(1,194,225,.04); text-align: center; }
.nv-map-center b { font-size: 14px; font-weight: 500; }
.nv-map-center small { font-size: 10.5px; color: var(--fg-3); }
.nv-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; padding: 0; width: max-content; }
.nv-node i { display: grid; place-items: center; width: var(--r); height: var(--r); border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 28%, transparent), color-mix(in srgb, var(--c) 6%, transparent) 72%); font-style: normal; font-size: 12px; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; transition: transform .5s var(--expo), box-shadow .4s, border-color .3s; }
.nv-node i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); opacity: 0; transition: opacity .3s; }
.nv-node.miss i { border-style: dashed; background: transparent; }
.nv-node span { font-size: 11.5px; color: var(--fg-2); white-space: nowrap; transition: color .3s; }
.nv-node.pos { --c: var(--s-pos); } .nv-node.miss { --c: var(--s-miss); } .nv-node.mix { --c: var(--s-mix); } .nv-node.old { --c: var(--s-old); } .nv-node.bad { --c: var(--s-bad); }
.nv-node:hover i, .nv-node.on i, .nv-node:focus-visible i { transform: scale(1.08); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 35%, transparent); }
.nv-node:hover i::after, .nv-node.on i::after { opacity: 1; }
.nv-node:hover span, .nv-node.on span { color: var(--fg); }
.nv-node:focus-visible { outline: none; }
.nv-map-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 12px; align-items: center; margin: 0 14px 14px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 12.5px; animation: axPanel .4s var(--expo); }
.nv-map-detail b { display: block; font-weight: 500; color: var(--fg); }
.nv-map-detail p { margin: 2px 0 0; color: var(--fg-3); font-size: 12px; }
.nv-map-detail strong { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nv-map-detail small { display: block; font-size: 10.5px; color: var(--fg-3); }

/* ---------- 05 Missing messages ---------- */
.nv-missing-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; padding: 16px; }
.nv-missing-col { display: grid; gap: 10px; align-content: start; }
.nv-checks { display: grid; gap: 4px; }
.nv-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: #0f0f10; color: var(--fg); font-size: 13px; }
.nv-checks li i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #444; display: grid; place-items: center; font-style: normal; font-size: 10px; }
.nv-checks li.hit i { border-color: var(--s-pos); color: var(--s-pos); }
.nv-checks li.hit i::before { content: "✓"; }
.nv-checks li.gap { border-style: dashed; background: transparent; color: var(--fg-2); }
.nv-checks li.gap i { border-color: var(--s-miss); border-style: dashed; }
.nv-checks li em { font-style: normal; font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.nv-missing-side { padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.nv-cov { display: grid; gap: 2px; }
.nv-cov small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.nv-cov strong { font-size: 30px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nv-cov strong sub { margin-left: 4px; vertical-align: baseline; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--fg-3); }
.nv-cov span { font-size: 12px; color: var(--fg-2); }
.nv-missing-group { display: grid; gap: 6px; }
.nv-missing-group small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.nv-missing-group div { display: flex; flex-wrap: wrap; gap: 5px; }
.nv-missing-side .btn { justify-self: start; margin-top: 4px; }

/* ---------- 06 Source trace + heatmap ---------- */
.nv-trace { font-size: 13px; background: #0b0b0c; }
.nv-trace .mock-top b span { color: var(--fg-2); }
.nv-trace-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 56px; padding: 20px 20px 22px; }
.nv-trace-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nv-trace-lines path { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.2; stroke-linecap: round; transition: stroke .3s, opacity .3s; }
.nv-trace-lines path.on { stroke: var(--a); filter: drop-shadow(0 0 4px rgba(1,194,225,.6)); }
.nv-trace-lines path.dim { opacity: .35; }
.nv-trace-col { position: relative; z-index: 1; display: grid; gap: 8px; align-content: start; }
.nv-trace-col .btn { justify-self: start; margin-top: 6px; }
.nv-trace-sources, .nv-trace-actions { display: grid; gap: 8px; margin: 0; padding: 0; }
.nv-trace-node { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0f0f10; color: var(--fg-2); transition: border-color .3s, background .3s, opacity .3s, transform .4s var(--expo); }
.nv-trace-node b { font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-trace-node span { font-size: 11.5px; color: var(--fg-3); }
.nv-trace-node .nv-status { justify-self: start; margin-top: 3px; }
.nv-trace-origin { border-color: rgba(255,138,61,.45); background: rgba(255,138,61,.06); }
.nv-trace-sources li { cursor: pointer; }
.nv-trace-sources li:hover, .nv-trace-sources li.on, .nv-trace-sources li:focus-visible { border-color: var(--a-line); background: #141416; transform: translateX(3px); outline: none; }
.nv-trace-sources li:focus-visible { box-shadow: 0 0 0 2px var(--a-line); }
.nv-trace-actions li { grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; }
.nv-trace-actions li b { font-size: 11px; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.nv-trace-actions li span { font-size: 12.5px; color: var(--fg); }
.nv-trace-actions li.dim { opacity: .4; }
.nv-trace-actions li.on { border-color: var(--a-line); background: var(--a-soft); }
.nv-heat-wrap { margin-top: 24px; }
.nv-heat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 32px 0 16px; }
.nv-heat-head h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.nv-heat-head p { margin-top: 6px; color: var(--fg-2); font-size: 14px; max-width: 520px; }
.nv-heat { padding: 8px 12px 12px; overflow-x: auto; }
.nv-heat table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
.nv-heat th { padding: 10px 10px; font-weight: 500; color: var(--fg-3); font-size: 11px; letter-spacing: .04em; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.nv-heat th:not(:first-child) { text-align: center; }
.nv-heat td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); color: var(--fg); }
.nv-heat tr:last-child td { border-bottom: 0; }
.nv-heat td:first-child { white-space: nowrap; }
.nv-heat td:first-child small { display: block; font-size: 10.5px; color: var(--fg-4); }
.nv-heat td:not(:first-child) { text-align: center; }
.nv-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.nv-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2a2a2c; }
.nv-dots i.on { background: var(--c, var(--fg-2)); box-shadow: 0 0 6px color-mix(in srgb, var(--c, #999) 50%, transparent); }
.nv-heat tr:hover td { background: rgba(255,255,255,.025); }

/* ---------- 07 Story or fact ---------- */
.nv-fact-tabs { margin: 0 0 14px; }
.nv-fact-tabs button.is-active { background: var(--fg); color: #000; }
.nv-fact { font-size: 13px; }
.nv-fact-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; padding: 16px; animation: axPanel .4s var(--expo); }
.nv-fact-col { display: grid; gap: 10px; align-content: start; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); min-width: 0; }
.nv-fact-col > small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.nv-fact-col > small::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.nv-fact-quote { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; color: var(--fg); }
.nv-fact-meta { font-size: 12px; color: var(--fg-3); }
.nv-fact-facts { display: grid; gap: 6px; }
.nv-fact-facts li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--fg); }
.nv-fact-facts li::before { content: "✓"; color: var(--s-pos); font-size: 12px; }
.nv-fact-diag { display: grid; gap: 4px; }
.nv-fact-diag .nv-status { justify-self: start; font-size: 13px; padding: 5px 12px; }
.nv-fact-diag p { margin: 4px 0 0; font-size: 12.5px; color: var(--fg-2); }
.nv-fact-conf { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-3); }
.nv-fact-conf b { font-weight: 500; color: var(--fg); }
.nv-fact-conf i { display: inline-flex; gap: 3px; }
.nv-fact-conf i::before, .nv-fact-conf i::after, .nv-fact-conf i b { content: ""; display: block; width: 14px; height: 4px; border-radius: 2px; background: #2a2a2c; }
.nv-fact-conf[data-c="High"] i::before, .nv-fact-conf[data-c="High"] i::after, .nv-fact-conf[data-c="High"] i b, .nv-fact-conf[data-c="Medium"] i::before, .nv-fact-conf[data-c="Medium"] i b, .nv-fact-conf[data-c="Low"] i::before { background: var(--a); }
.nv-fact-col--rx { border-color: var(--a-line); background: linear-gradient(180deg, rgba(1,194,225,.07), rgba(1,194,225,.01)); }
.nv-fact-acts { display: grid; gap: 4px; }
.nv-fact-acts li { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--fg); }
.nv-fact-acts li::before { content: "→"; color: var(--fg-4); }
.nv-fact-note { margin-top: 14px; }

/* ---------- 08 Narrative trends ---------- */
.nv-trend-tabs { margin-top: 20px; }
.nv-trend-body { display: grid; gap: 12px; padding: 16px; }
.nv-trend-kpi { display: flex; align-items: center; gap: 12px; }
.nv-trend-kpi strong { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.nv-trend-kpi small { display: block; font-size: 12px; color: var(--fg-2); }
.nv-trend-kpi em { display: block; font-style: normal; font-size: 12px; color: var(--s-pos); }
.nv-trend-kpi em.down, .nv-trend-kpi em.up { color: var(--a); }
.nv-chart-wrap { position: relative; }
.nv-chart { width: 100%; height: auto; display: block; overflow: visible; }
.nv-chart .grid line { stroke: #1f2023; stroke-dasharray: 2 4; }
.nv-chart .axis text { fill: #6b6b6b; font-size: 10px; }
.nv-chart .area { fill: url(#nvFill); opacity: .9; }
.nv-chart .line { fill: none; stroke: var(--a); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(1,194,225,.4)); stroke-dasharray: 1; pathLength: 1; }
.nv-trend.in .nv-chart .line { animation: axDraw 1.4s var(--expo); }
.nv-chart .pt { fill: #0b0b0c; stroke: var(--a); stroke-width: 2; }
.nv-chart .ev line { stroke: rgba(255,255,255,.25); stroke-dasharray: 3 3; transition: stroke .3s; }
.nv-chart .ev circle { fill: #0b0b0c; stroke: var(--fg-2); stroke-width: 1.5; cursor: pointer; transition: stroke .3s, r .3s; }
.nv-chart .ev text { fill: var(--fg-3); font-size: 9.5px; text-anchor: middle; }
.nv-chart .ev.on line { stroke: var(--a); }
.nv-chart .ev.on circle { stroke: var(--a); fill: var(--a); }
.nv-chart .ev.on text { fill: var(--fg); }
.nv-tip { position: absolute; padding: 7px 10px; border-radius: 8px; background: #1c1c1d; border: 1px solid #333; font-size: 11px; color: var(--fg); pointer-events: none; transform: translate(-50%, -100%); white-space: nowrap; }
.nv-tip small { display: block; color: var(--fg-3); }
.nv-events { display: grid; gap: 4px; }
.nv-events li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; color: var(--fg-2); cursor: default; transition: background .25s, color .25s; }
.nv-events li small { font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.nv-events li em { font-style: normal; font-size: 11px; color: var(--fg-3); }
.nv-events li.on, .nv-events li:hover { background: rgba(255,255,255,.04); color: var(--fg); }
.nv-events li.on em { color: var(--a); }

/* ---------- 09 Action ---------- */
.nv-action { font-size: 13px; }
.nv-action .mock-top b span { color: var(--fg-2); }
.nv-action-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; padding: 18px; }
.nv-action-plan { display: grid; gap: 12px; align-content: start; }
.nv-action-plan .btn { justify-self: start; margin-top: 4px; }
.nv-action-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.nv-action-row:first-child { border-top: 0; padding-top: 0; }
.nv-action-row > small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding-top: 3px; }
.nv-action-row p { margin: 0; color: var(--fg); font-size: 14px; line-height: 1.5; }
.nv-action-row p .nv-status { margin-right: 6px; vertical-align: 1px; }
.nv-action-list { display: grid; gap: 5px; }
.nv-action-list li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #0f0f10; font-size: 13px; }
.nv-action-list li b { font-weight: 500; color: var(--a); font-size: 11.5px; }
.nv-action-list li span { color: var(--fg); }
.nv-brief { display: grid; gap: 10px; align-content: start; padding: 14px 16px; border: 1px solid var(--a-line); border-radius: 12px; background: linear-gradient(180deg, rgba(1,194,225,.07), rgba(1,194,225,.01)); }
.nv-brief-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nv-brief-head small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--a); }
.nv-brief dl { margin: 0; display: grid; gap: 8px; }
.nv-brief dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.nv-brief dt { font-size: 11px; color: var(--fg-3); }
.nv-brief dd { margin: 0; font-size: 12.5px; color: var(--fg); line-height: 1.45; }

/* ---------- 10 Loop ---------- */
.nv-loop .lp-node { font-size: 12.5px; padding: 7px 12px; }

/* ---------- 12 Chain ---------- */
.nv-chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-bottom: 96px; }
.nv-chain a { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); transition: border-color .3s, transform .5s var(--expo); }
.nv-chain a:hover { border-color: rgba(1,194,225,.5); transform: translateY(-3px); }
.nv-chain a.on { border-color: var(--a-line); background: linear-gradient(180deg, rgba(1,194,225,.08), rgba(1,194,225,.01)); }
.nv-chain small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.nv-chain a.on small { color: var(--a); }
.nv-chain h3 { font-size: 15px; font-weight: 500; }
.nv-chain p { color: var(--fg-2); font-size: 13px; }
.nv-chain a:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 22px; color: var(--fg-4); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nv-hero-grid { grid-template-columns: 1fr; }
  .nv-compare { grid-template-columns: 1fr; gap: 28px; }
  .nv-chain { grid-template-columns: repeat(3, 1fr); }
  .nv-chain a:not(:last-child)::after { display: none; }
  .nv-trace-body { gap: 28px; }
}
@media (max-width: 860px) {
  .nv-demo-body { grid-template-columns: 1fr; min-height: 0; }
  .nv-hero .vx-hero-copy { padding-top: 0; }
  .nv-demo-left { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .nv-plats { display: none; }
  .nv-reader-body { grid-template-columns: 1fr; }
  .nv-qs { border-right: 0; border-bottom: 1px solid var(--line-soft); flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .nv-q { flex: none; min-width: 210px; max-width: 240px; }
  .nv-q.on { transform: none; }
  .nv-reader .mock-top .ax-qx-legend { display: none; }
  .nv-answer-cols { grid-template-columns: 1fr; }
  .nv-compare-cards { grid-template-columns: 1fr; }
  .nv-map { display: none; }
  .nv-map-detail { display: none; }
  .nv-map-cards { display: grid; gap: 6px; padding: 14px; }
  .nv-map-card { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: #0f0f10; font-size: 13px; color: var(--fg); }
  .nv-map-card::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
  .nv-map-card.pos { --c: var(--s-pos); } .nv-map-card.miss { --c: var(--s-miss); } .nv-map-card.mix { --c: var(--s-mix); } .nv-map-card.old { --c: var(--s-old); } .nv-map-card.bad { --c: var(--s-bad); }
  .nv-map-card small { font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
  .nv-status-key li { grid-template-columns: 1fr; gap: 2px; }
  .nv-missing-body { grid-template-columns: 1fr; }
  .nv-trace-body { grid-template-columns: 1fr; gap: 18px; }
  .nv-trace-lines { display: none; }
  .nv-trace-actions li.dim { opacity: 1; }
  .nv-heat-head { flex-direction: column; align-items: flex-start; }
  .nv-fact-body { grid-template-columns: 1fr; }
  .nv-action-body { grid-template-columns: 1fr; }
  .nv-action-row { grid-template-columns: 1fr; gap: 4px; }
  .nv-chain { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) { .nv-map-cards { display: none; } }
@media (max-width: 600px) {
  .nv-chain { grid-template-columns: 1fr; }
  .nv-events li { grid-template-columns: 52px minmax(0, 1fr); }
  .nv-events li em { display: none; }
  .nv-map-detail { grid-template-columns: 1fr; }
  .nv-brief dl div, .nv-cmp dl div { grid-template-columns: 1fr; gap: 3px; }
  .nv-action-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-trend.in .nv-chart .line { animation: none; }
}
