/* =====================================================================
 * VISUAL KIT styles , theme-aware (.vk-* read the active theme's CSS vars).
 * Paired with public/assets/js/visual-kit.js. Self-contained; does not touch
 * any proposal's existing classes.
 * ===================================================================== */
.vk { font-family: var(--font-body); color: var(--text); margin: 16px 0; }
.vk-ico { width: 22px; height: 22px; }
.vk-panel-h { font: 700 0.82rem var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; display: inline-block; margin-bottom: 14px; }
.vk-panel-h.accent { color: #fff; background: var(--grad); border-color: transparent; }

/* 1. stat grid */
.vk-statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vk-stat { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.vk-stat-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--magenta); border: 1px solid var(--line); }
.vk-stat-ico .vk-ico { width: 24px; height: 24px; }
.vk-stat-body { display: flex; flex-direction: column; }
.vk-stat-n { font: 700 1.8rem var(--font-head); color: var(--text); line-height: 1.05; }
.vk-stat-client { font: 600 0.92rem var(--font-head); color: var(--text); margin-top: 3px; }
.vk-stat-l { font-size: 0.82rem; color: var(--text-dim); margin-top: 2px; }

/* 2. hub + ranked rows */
.vk-hubrows { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; }
.vk-hub { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 22px; color: #fff; background: var(--grad); box-shadow: var(--shadow); }
.vk-hub span { font: 700 1.15rem var(--font-head); }
.vk-hr-rows { display: flex; flex-direction: column; gap: 10px; }
.vk-hr-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--magenta); border-radius: 10px; padding: 14px 18px; margin-left: calc(var(--i, 0) * 14px); }
.vk-hr-h { font: 600 1.02rem var(--font-head); display: block; }
.vk-hr-m { font: 700 0.92rem var(--font-head); color: var(--magenta); }
.vk-hr-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); color: var(--magenta); border: 1px solid var(--line); }

/* 3. drivers + bar chart */
.vk-drivers { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.vk-dr { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vk-dr:last-child { border-bottom: 0; }
.vk-dr-ico { width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--grad-soft); color: var(--magenta); border: 1px solid var(--line); }
.vk-dr p { margin: 0; font-size: 0.9rem; color: var(--text-dim); }
.vk-dr-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.vk-barsvg { width: 100%; height: auto; display: block; }
.vk-bar { fill: var(--magenta); }
.vk-axis { stroke: var(--line-strong); stroke-width: 1; }
.vk-bar-val { fill: var(--text); font: 700 12px var(--font-head); }
.vk-bar-lab { fill: var(--text-mute); font: 500 11px var(--font-body); }
.vk-cagr { fill: var(--text-dim); font: 700 12px var(--font-head); }

/* 4. process / decision flow */
.vk-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.vk-node { position: relative; min-width: 92px; text-align: center; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 600 0.9rem var(--font-head); }
.vk-node.vk-start { background: var(--grad); color: #fff; border-color: transparent; border-radius: 999px; }
.vk-node.vk-end { background: var(--surface-2); }
.vk-node.vk-decision { background: var(--grad-soft); border-color: var(--magenta); transform: rotate(0); border-radius: 10px; }
.vk-flow-branch { position: absolute; top: -10px; right: -6px; font: 700 0.6rem var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--magenta); padding: 2px 7px; border-radius: 999px; }
.vk-flow-arr { color: var(--text-mute); font-size: 1.2rem; padding: 0 2px; }

/* 5. four boxes around a hub */
.vk-quad { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.vk-quad-col { display: flex; flex-direction: column; gap: 16px; }
.vk-quad-cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.vk-quad-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vk-quad-n { font: 700 1.1rem var(--font-head); color: var(--magenta); }
.vk-quad-ico { width: 30px; height: 30px; color: var(--text-mute); }
.vk-quad-h { font: 600 1rem var(--font-head); margin-bottom: 4px; }
.vk-quad-cell p { margin: 0; font-size: 0.84rem; color: var(--text-dim); }
.vk-quad-center { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 18px; color: #fff; background: var(--grad); box-shadow: var(--shadow); }
.vk-quad-center span { font: 700 0.98rem var(--font-head); }

/* 6. radial nodes */
.vk-radial svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.vk-rad-line { stroke: var(--line-strong); stroke-width: 1; }
.vk-rad-node { fill: var(--magenta); }
.vk-rad-center-c { fill: var(--grad, var(--surface)); fill: var(--magenta); }
.vk-rad-center-t { fill: #fff; font: 700 14px var(--font-head); }
.vk-rad-lab { fill: var(--text-dim); font: 600 11px var(--font-body); }

/* 7. maturity columns */
.vk-maturity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vk-mat { border-top: 3px solid var(--magenta); padding-top: 14px; }
.vk-mat-level { font: 700 1.4rem var(--font-head); color: var(--text); margin-bottom: 8px; }
.vk-mat p { margin: 0; color: var(--text-dim); }

@media (max-width: 820px) {
  .vk-statgrid, .vk-maturity { grid-template-columns: 1fr; }
  .vk-hubrows, .vk-drivers, .vk-quad { grid-template-columns: 1fr; }
  .vk-hr-row { margin-left: 0; }
}

/* 8. journey (rollout sequence) */
.vk-journey svg { width: 100%; max-width: 700px; height: auto; display: block; margin: 0 auto; }
.vk-jy-line { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 5 5; }
.vk-jy-arrow { fill: var(--line-strong); }
.vk-jy-mark { fill: var(--magenta); }
.vk-jy-label { fill: var(--text); font: 600 13px var(--font-head); }
.vk-jy-note { fill: var(--text-mute); font: 400 11px var(--font-body); }
