/* ============================================================
   DIGITAL GROWTHSCALE — PREMIUM NODE-DIAGRAM VISUAL SYSTEM
   Shared by the "who it's for / included / outcomes / KPI" widgets
   across solution detail pages. Glass panels, glowing connector
   lines, small node cards in brand teal / navy / amber — replaces
   flat dashboard mockups.

   Theme-aware: default is a dark navy panel (for use on dark
   sections). Add [data-theme="light"] on .dgs-pv-panel when it
   sits on a light/white section, and it flips to a slate panel.

   Load order: after dgs-common.css.
   ============================================================ */

.dgs-pv-panel {
  --pv-panel-bg: radial-gradient(120% 100% at 15% 0%, #16283D 0%, #0F1D2E 45%, #0A1420 100%);
  --pv-panel-border: rgba(0, 179, 159, 0.2);
  --pv-panel-shadow: 0 30px 60px -25px rgba(4, 10, 18, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --pv-glow-a: #00B39F;
  --pv-glow-b: #F5A623;
  --pv-texture-dot: rgba(255, 255, 255, 0.06);
  --pv-head-border: rgba(255, 255, 255, 0.08);
  --pv-head-label: rgba(255, 255, 255, 0.6);
  --pv-badge-bg: rgba(0, 179, 159, 0.14);
  --pv-badge-border: rgba(0, 179, 159, 0.32);
  --pv-badge-text: #5EEAD4;
  --pv-track-bg: rgba(255, 255, 255, 0.08);
  --pv-hub-bg: linear-gradient(135deg, #00B39F 0%, #00695C 100%);
  --pv-hub-text: #ffffff;
  --pv-hub-shadow: 0 0 0 5px rgba(0, 179, 159, 0.14), 0 10px 25px -8px rgba(0, 179, 159, 0.55);
  --pv-node-bg: rgba(255, 255, 255, 0.045);
  --pv-node-border: rgba(255, 255, 255, 0.09);
  --pv-node-border-hover: rgba(0, 179, 159, 0.45);
  --pv-node-bg-hover: rgba(255, 255, 255, 0.07);
  --pv-node-title: #F1F5F9;
  --pv-node-sub: rgba(255, 255, 255, 0.45);
  --pv-node-tick: rgba(0, 179, 159, 0.55);
  --pv-foot-border: rgba(255, 255, 255, 0.07);
  --pv-foot-text: rgba(255, 255, 255, 0.4);
  --pv-stat-text: #ffffff;
  --pv-stat-label: rgba(255, 255, 255, 0.5);
  --pv-icon-teal-bg: rgba(0, 179, 159, 0.18); --pv-icon-teal-fg: #5EEAD4;
  --pv-icon-blue-bg: rgba(45, 127, 249, 0.18); --pv-icon-blue-fg: #93C5FD;
  --pv-icon-amber-bg: rgba(245, 166, 35, 0.18); --pv-icon-amber-fg: #FCD34D;
  --pv-icon-green-bg: rgba(16, 185, 129, 0.18); --pv-icon-green-fg: #6EE7B7;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  background: var(--pv-panel-bg);
  border: 1px solid var(--pv-panel-border);
  box-shadow: var(--pv-panel-shadow);
  padding: 2.25rem !important;
  margin-top: 1.5rem !important;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  /* Layout-affecting properties (padding/margin/max-height/border-width)
     are intentionally NOT here and NOT toggled by .is-visible below: the
     panel keeps its full box size at all times so it never collapses and
     shifts the page when it scrolls out of view or the entrance replays.
     Only opacity/transform animate — both are compositor-only and never
     reflow surrounding sections. */
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dgs-pv-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Desktop padding (2.25rem) eats a big share of a phone's width before any
   node/card content starts. Variant panels with their own mobile padding
   (people-panel, kpi-panel) chain extra specificity to beat this, so this
   stays the shared floor for every other .dgs-pv-panel variant. Not gated
   on .is-visible: padding must hold constant regardless of reveal state. */
@media (max-width: 600px) {
  .dgs-pv-panel {
    padding: 1.5rem !important;
  }
}
/* ≤420px padding is set once, further down, alongside the rest of that
   breakpoint's element resizing (search "@media (max-width: 420px)"). */

/* ─── Light theme (panel on a white/slate section) ─── */
.dgs-pv-panel[data-theme="light"] {
  --pv-panel-bg: linear-gradient(160deg, #F8FAFC 0%, #F1F5F9 100%);
  --pv-panel-border: rgba(10, 31, 51, 0.09);
  --pv-panel-shadow: 0 24px 48px -28px rgba(10, 31, 51, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --pv-texture-dot: rgba(10, 31, 51, 0.05);
  --pv-head-border: rgba(10, 31, 51, 0.08);
  --pv-head-label: #475569;
  --pv-badge-bg: rgba(0, 179, 159, 0.1);
  --pv-badge-border: rgba(0, 179, 159, 0.28);
  --pv-badge-text: #00897B;
  --pv-track-bg: rgba(10, 31, 51, 0.08);
  --pv-hub-text: #ffffff;
  --pv-node-bg: #ffffff;
  --pv-node-border: rgba(10, 31, 51, 0.08);
  --pv-node-border-hover: rgba(0, 179, 159, 0.4);
  --pv-node-bg-hover: #ffffff;
  --pv-node-title: #0F172A;
  --pv-node-sub: #64748B;
  --pv-node-tick: rgba(0, 179, 159, 0.4);
  --pv-foot-border: rgba(10, 31, 51, 0.08);
  --pv-foot-text: #64748B;
  --pv-stat-text: #0F172A;
  --pv-stat-label: #64748B;
  --pv-icon-teal-bg: rgba(0, 179, 159, 0.1); --pv-icon-teal-fg: #00897B;
  --pv-icon-blue-bg: rgba(45, 127, 249, 0.1); --pv-icon-blue-fg: #2D7FF9;
  --pv-icon-amber-bg: rgba(245, 166, 35, 0.12); --pv-icon-amber-fg: #B45309;
  --pv-icon-green-bg: rgba(16, 185, 129, 0.1); --pv-icon-green-fg: #059669;
}

.dgs-pv-glow {
  display: none;
}

.dgs-pv-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(var(--pv-texture-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}

.dgs-pv-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--pv-head-border);
}

.dgs-pv-head-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pv-head-label) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dgs-pv-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  animation: dgs-pv-pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes dgs-pv-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.65; }
}

.dgs-pv-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  border: 1px solid var(--pv-badge-border) !important;
  background: var(--pv-badge-bg) !important;
  color: var(--pv-badge-text) !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── "Updating" state — a pulsing ring on the border, not just text,
   for whichever node/badge represents something currently in progress.
   Only animates while the panel is in view. ─── */
.dgs-pv-node--live {
  border-color: var(--action-teal, #00B39F) !important;
}
.dgs-pv-badge--live {
  border-color: var(--action-teal, #00B39F) !important;
}
.dgs-pv-panel.is-visible .dgs-pv-node--live {
  animation: dgs-pv-live-ring 2.1s ease-in-out infinite;
}
.dgs-pv-panel.is-visible .dgs-pv-badge--live {
  animation: dgs-pv-live-ring-tight 2.1s ease-in-out infinite;
}
@keyframes dgs-pv-live-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 179, 159, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 179, 159, 0); }
}
@keyframes dgs-pv-live-ring-tight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 179, 159, 0.45); }
  50%      { box-shadow: 0 0 0 4px rgba(0, 179, 159, 0); }
}

/* ─── Node graph ─── */
.dgs-pv-graph {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
}

.dgs-pv-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.dgs-pv-line {
  fill: none;
  stroke: url(#dgsPvLineGrad);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  opacity: 0.55;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-panel.is-visible .dgs-pv-line {
  stroke-dashoffset: 0;
}

.dgs-pv-pulse-dot {
  r: 2.6;
  fill: #5EEAD4;
  filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.9));
  opacity: 0;
  transition: opacity 0.4s ease 0.9s;
}
.dgs-pv-panel.is-visible .dgs-pv-pulse-dot {
  opacity: 1;
}

.dgs-pv-hub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 100px;
  background: var(--pv-hub-bg) !important;
  color: var(--pv-hub-text) !important;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  box-shadow: var(--pv-hub-shadow);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dgs-pv-panel.is-visible .dgs-pv-hub {
  opacity: 1;
  transform: scale(1);
}

.dgs-pv-node {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--pv-node-bg);
  border: 1px solid var(--pv-node-border);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease, background 0.3s ease;
}
.dgs-pv-panel.is-visible .dgs-pv-node {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dgs-pv-node:hover {
  border-color: var(--pv-node-border-hover);
  background: var(--pv-node-bg-hover);
}

.dgs-pv-node-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--pv-icon-teal-bg) !important;
  color: var(--pv-icon-teal-fg) !important;
}
.dgs-pv-node[data-tone="blue"] .dgs-pv-node-icon { background: var(--pv-icon-blue-bg) !important; color: var(--pv-icon-blue-fg) !important; }
.dgs-pv-node[data-tone="green"] .dgs-pv-node-icon { background: var(--pv-icon-green-bg) !important; color: var(--pv-icon-green-fg) !important; }
.dgs-pv-node[data-tone="amber"] .dgs-pv-node-icon { background: var(--pv-icon-amber-bg) !important; color: var(--pv-icon-amber-fg) !important; }

.dgs-pv-node-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pv-node-title) !important;
  line-height: 1.3;
}
.dgs-pv-node-sub {
  font-size: 0.7rem;
  color: var(--pv-node-sub) !important;
  margin-top: 0.1rem;
}

.dgs-pv-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
  flex: 1;
}

.dgs-pv-foot {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pv-foot-border);
  font-size: 0.76rem;
  color: var(--pv-foot-text) !important;
  text-align: center;
}

/* ─── Stat variant (Outcomes / KPI widgets) ─── */
.dgs-pv-stat-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 560px) {
  .dgs-pv-stat-grid { grid-template-columns: 1fr; }
}

.dgs-pv-stat {
  background: var(--pv-node-bg);
  border: 1px solid var(--pv-node-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(18px) scale(0.88);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}
.dgs-pv-panel.is-visible .dgs-pv-stat {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dgs-pv-stat:hover {
  border-color: var(--pv-node-border-hover);
}

.dgs-pv-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pv-stat-label) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dgs-pv-stat-figure {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff !important;
  font-family: var(--font-heading, 'Sora', sans-serif);
  line-height: 1;
}
.dgs-pv-stat-figure span.dgs-pv-count,
.dgs-pv-count {
  color: #ffffff !important;
}
.dgs-pv-sym {
  color: var(--action-teal, #00B39F) !important;
}

/* Light Theme overrides for stats/numbers/symbols */
.dgs-pv-panel[data-theme="light"] .dgs-pv-stat-figure,
.dgs-pv-panel[data-theme="light"] .dgs-pv-tile-val,
.dgs-pv-panel[data-theme="light"] .dgs-pv-count {
  color: #0F172A !important;
}
.dgs-pv-panel[data-theme="light"] .dgs-pv-sym {
  color: var(--action-teal, #00B39F) !important;
}

.dgs-pv-spark {
  height: 32px;
  width: 100%;
}
.dgs-pv-spark path {
  stroke: url(#dgsPvLineGrad);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-panel.is-visible .dgs-pv-spark path {
  stroke-dashoffset: 0;
}

.dgs-pv-tiles {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (max-width: 640px) {
  .dgs-pv-tiles { grid-template-columns: 1fr; }
}
.dgs-pv-tile {
  background: var(--pv-node-bg);
  border: 1px solid var(--pv-node-border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.dgs-pv-tile-lbl {
  font-size: 0.66rem;
  color: var(--pv-stat-label) !important;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.dgs-pv-tile-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff !important;
}

/* ─── Hub + bus-line node grid (safer alternative to per-node bezier paths) ─── */
.dgs-pv-hub-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.dgs-pv-hub-stem {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 1px;
  height: 1.5rem;
  background: linear-gradient(to bottom, var(--pv-node-tick), transparent);
}

.dgs-pv-bus {
  position: relative;
  z-index: 2;
  height: 2px;
  width: 100%;
  background: var(--pv-track-bg);
  margin-bottom: 1.5rem;
  border-radius: 2px;
  overflow: hidden;
}
.dgs-pv-bus-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00B39F 0%, #00695C 100%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-panel.is-visible .dgs-pv-bus-fill {
  width: 100%;
}

.dgs-pv-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) {
  .dgs-pv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .dgs-pv-grid { grid-template-columns: 1fr; }
}

.dgs-pv-grid .dgs-pv-node {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.dgs-pv-grid .dgs-pv-node::before {
  content: '';
  position: absolute;
  top: -0.9rem;
  left: 1.4rem;
  width: 1px;
  height: 0.9rem;
  background: linear-gradient(to bottom, transparent, var(--pv-node-tick));
}

/* ─── Automatic staggered cascade (no per-item inline delay needed) ─── */
.dgs-pv-grid .dgs-pv-node:nth-child(1), .dgs-pv-col .dgs-pv-node:nth-child(1),
.dgs-pv-stat-grid .dgs-pv-stat:nth-child(1), .dgs-pv-timeline .dgs-pv-step:nth-child(1),
.dgs-pv-tiles .dgs-pv-node:nth-child(1) { transition-delay: 0.06s; }
.dgs-pv-grid .dgs-pv-node:nth-child(2), .dgs-pv-col .dgs-pv-node:nth-child(2),
.dgs-pv-stat-grid .dgs-pv-stat:nth-child(2), .dgs-pv-timeline .dgs-pv-step:nth-child(2),
.dgs-pv-tiles .dgs-pv-node:nth-child(2) { transition-delay: 0.16s; }
.dgs-pv-grid .dgs-pv-node:nth-child(3), .dgs-pv-col .dgs-pv-node:nth-child(3),
.dgs-pv-stat-grid .dgs-pv-stat:nth-child(3), .dgs-pv-timeline .dgs-pv-step:nth-child(3),
.dgs-pv-tiles .dgs-pv-node:nth-child(3) { transition-delay: 0.26s; }
.dgs-pv-grid .dgs-pv-node:nth-child(4), .dgs-pv-col .dgs-pv-node:nth-child(4),
.dgs-pv-stat-grid .dgs-pv-stat:nth-child(4), .dgs-pv-timeline .dgs-pv-step:nth-child(4) { transition-delay: 0.36s; }
.dgs-pv-grid .dgs-pv-node:nth-child(5), .dgs-pv-col .dgs-pv-node:nth-child(5) { transition-delay: 0.46s; }
.dgs-pv-grid .dgs-pv-node:nth-child(6) { transition-delay: 0.56s; }

.dgs-pv-hub { transition-delay: 0s; }
.dgs-pv-bus-fill { transition-delay: 0.15s; }
.dgs-pv-stat-grid .dgs-pv-spark path,
.dgs-pv-panel .dgs-pv-line,
.dgs-pv-panel .dgs-pv-pulse-dot { transition-delay: 0.5s; }

/* Timeline / roadmap variant */
.dgs-pv-timeline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) {
  .dgs-pv-timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dgs-pv-timeline { grid-template-columns: 1fr; }
}

.dgs-pv-step {
  background: var(--pv-node-bg);
  border: 1px solid var(--pv-node-border);
  border-radius: 14px;
  padding: 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(20px) scale(0.88);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}
.dgs-pv-panel.is-visible .dgs-pv-step {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dgs-pv-step:hover {
  border-color: var(--pv-node-border-hover);
}

.dgs-pv-step-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pv-icon-teal-bg) !important;
  border: 1.5px solid var(--action-teal, #00B39F);
  color: var(--pv-icon-teal-fg) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
}

.dgs-pv-step-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pv-node-title) !important;
  margin: 0;
  letter-spacing: 0.01em;
}

.dgs-pv-step-desc {
  font-size: 0.8rem;
  color: var(--pv-node-sub) !important;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   TALENT INTELLIGENCE & RECRUITMENT WORKSPACE EXTENSIONS
   ============================================================ */

/* ─── Role Definition & Capability Tags ─── */
.dgs-pv-role-card {
  background: var(--pv-node-bg);
  border: 1px solid var(--pv-node-border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.dgs-pv-panel.is-visible .dgs-pv-role-card {
  opacity: 1;
  transform: translateY(0);
}
.dgs-pv-role-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dgs-pv-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dgs-pv-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  background: var(--pv-icon-teal-bg) !important;
  color: var(--pv-icon-teal-fg) !important;
  border: 1px solid rgba(0, 179, 159, 0.25);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ─── Search Funnel Pipeline (Who It Is For) ─── */
.dgs-pv-search-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 540px) {
  .dgs-pv-search-stages { grid-template-columns: 1fr; }
}
.dgs-pv-stage-card {
  background: var(--pv-node-bg);
  border: 1px solid var(--pv-node-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-panel.is-visible .dgs-pv-stage-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dgs-pv-stage-card:nth-child(1) { transition-delay: 0.1s; }
.dgs-pv-stage-card:nth-child(2) { transition-delay: 0.22s; }
.dgs-pv-stage-card:nth-child(3) { transition-delay: 0.34s; }

.dgs-pv-stage-card[data-active="true"] {
  border-color: var(--action-teal, #00B39F);
  box-shadow: 0 0 16px -4px rgba(0, 179, 159, 0.3);
}

.dgs-pv-stat-unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--action-teal, #00B39F) !important;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.dgs-pv-bar-track {
  height: 5px;
  width: 100%;
  border-radius: 10px;
  background: var(--pv-track-bg);
  overflow: hidden;
  margin-top: 0.35rem;
}
.dgs-pv-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, #00B39F 0%, #34D399 100%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-panel.is-visible .dgs-pv-bar-fill {
  width: var(--pv-fill-pct, 100%);
}

/* ─── CSR Candidate Pipeline Tracker ─── */
.dgs-pv-pipeline-flow {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.dgs-pv-flow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--pv-node-border);
  border-radius: 10px;
}
.dgs-pv-panel[data-theme="light"] .dgs-pv-flow-steps {
  background: #ffffff;
}

.dgs-pv-flow-step-node {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pv-head-label) !important;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.dgs-pv-flow-step-node[data-active="true"] {
  color: var(--action-teal, #00B39F) !important;
}

.dgs-pv-cand-hero-card {
  background: var(--pv-node-bg);
  border: 1px solid var(--action-teal, #00B39F);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 0 18px -5px rgba(0, 179, 159, 0.35);
}
.dgs-pv-cand-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dgs-pv-cand-chip-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (max-width: 560px) {
  .dgs-pv-cand-chip-list { grid-template-columns: 1fr; }
}

.dgs-pv-cand-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pv-node-border);
  color: var(--pv-node-title) !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s ease;
}
.dgs-pv-panel[data-theme="light"] .dgs-pv-cand-chip {
  background: #ffffff;
}
.dgs-pv-panel.is-visible .dgs-pv-cand-chip {
  opacity: 1;
  transform: translateX(0);
}
.dgs-pv-cand-chip[data-top="true"] {
  border-color: var(--action-teal, #00B39F);
  background: var(--pv-icon-teal-bg) !important;
  color: var(--pv-icon-teal-fg) !important;
}

/* ─── Talent Intelligence Modules (Included) ─── */
.dgs-pv-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.dgs-pv-module-box {
  background: var(--pv-node-bg);
  border: 1px solid var(--pv-node-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dgs-pv-score-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.dgs-pv-score-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pv-node-title) !important;
}

/* ─── Fit Matrix / Hiring Decision Workspace ─── */
.dgs-pv-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  font-size: 0.8rem;
}
.dgs-pv-matrix-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pv-head-label) !important;
  padding: 0.4rem 0.75rem;
}
.dgs-pv-matrix-row {
  background: var(--pv-node-bg);
  border: 1px solid var(--pv-node-border);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.dgs-pv-panel.is-visible .dgs-pv-matrix-row {
  opacity: 1;
  transform: translateY(0);
}
.dgs-pv-matrix-row td {
  padding: 0.75rem;
  color: var(--pv-node-title) !important;
  font-weight: 600;
}
.dgs-pv-matrix-row td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.dgs-pv-matrix-row td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.dgs-pv-matrix-row[data-highlight="true"] {
  outline: 1.5px solid var(--action-teal, #00B39F);
  box-shadow: 0 4px 20px -5px rgba(0, 179, 159, 0.35);
}

/* ─── Client Success Mini Visualizations ─── */
.dgs-pv-mini-wrap {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(10, 20, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.dgs-pv-mini-timeline-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 0.4rem;
}
.dgs-pv-mini-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  flex: 1;
}
.dgs-pv-mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.dgs-pv-mini-node[data-active="true"] .dgs-pv-mini-dot {
  background: var(--action-teal, #00B39F);
  border-color: #5EEAD4;
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.8);
}
.dgs-pv-mini-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}
.dgs-pv-mini-day {
  font-size: 0.6rem;
  color: var(--action-teal, #00B39F);
  font-weight: 700;
}

/* ============================================================
   PEOPLE / IN-PRACTICE PANEL ("Who it's for" widget)
   A role/persona switcher (avatar row + tab row) paired with a
   contextual "in practice" product card that cross-fades per
   role. Auto-cycles via .dgs-pv-people-panel controller in
   main.js; a manual click always wins and resets the timer.
   ============================================================ */

.dgs-pv-people-panel {
  /* No glow override here — inherits the base .dgs-pv-panel navy radial
     (three stops, #16283D -> #0F1D2E -> #0A1420), which already has
     enough depth on its own without a teal accent layered on top. */
  --pv-card-bg: rgba(255, 255, 255, 0.055);
  --pv-card-border: rgba(255, 255, 255, 0.1);
  --pv-card-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1.6rem 1.7rem;
  margin-top: 0;
  align-self: start;
}
.dgs-pv-people-panel[data-theme="light"] {
  --pv-card-bg: #ffffff;
  --pv-card-border: rgba(10, 31, 51, 0.08);
  --pv-card-shadow: 0 22px 44px -26px rgba(10, 31, 51, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dgs-pv-people-eyebrow,
.dgs-pv-practice-eyebrow {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--pv-head-label) !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.9rem;
}

/* ─── Role row: photo + label as one aligned unit ─── */
.dgs-pv-role-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 0.7rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--pv-head-border);
}

.dgs-pv-role {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 62px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-panel.is-visible .dgs-pv-role {
  opacity: 1;
  transform: translateY(0);
}

.dgs-pv-role-photo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--pv-node-bg);
  background-size: cover;
  background-position: center;
  border: 1.5px solid var(--pv-node-border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.dgs-pv-role:hover .dgs-pv-role-photo {
  border-color: var(--pv-node-border-hover);
}
.dgs-pv-role.is-active .dgs-pv-role-photo {
  border-color: var(--action-teal, #00B39F);
  box-shadow: 0 0 0 3px rgba(0, 179, 159, 0.16);
  transform: translateY(-2px);
}

.dgs-pv-role-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.dgs-pv-role-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
}
.dgs-pv-role:hover .dgs-pv-role-icon {
  border-color: rgba(0, 179, 159, 0.6);
  background-color: rgba(0, 179, 159, 0.12);
  color: #00B39F;
  transform: translateY(-2px);
}
.dgs-pv-role.is-active .dgs-pv-role-icon {
  border-color: var(--action-teal, #00B39F);
  background-color: rgba(0, 179, 159, 0.22);
  box-shadow: 0 0 0 3px rgba(0, 179, 159, 0.25), 0 4px 16px rgba(0, 179, 159, 0.25);
  transform: translateY(-2px);
  color: #00B39F;
}

/* ─── Numbers / Metrics top grid (non-interactive high-impact scorecard) ─── */
.dgs-pv-stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--pv-head-border, rgba(255, 255, 255, 0.12));
}

@media (max-width: 560px) {
  .dgs-pv-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

.dgs-pv-stats-grid .dgs-pv-stat-item,
.dgs-pv-stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.9rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  will-change: opacity, transform;
}

.dgs-pv-panel.is-visible .dgs-pv-stats-grid .dgs-pv-stat-item,
.dgs-pv-panel.is-visible .dgs-pv-stat-item {
  opacity: 1 !important;
  transform: translateY(0) scale(1);
}

.dgs-pv-panel.is-visible .dgs-pv-stats-grid .dgs-pv-stat-item:nth-child(1) { transition-delay: 0.06s; }
.dgs-pv-panel.is-visible .dgs-pv-stats-grid .dgs-pv-stat-item:nth-child(2) { transition-delay: 0.14s; }
.dgs-pv-panel.is-visible .dgs-pv-stats-grid .dgs-pv-stat-item:nth-child(3) { transition-delay: 0.22s; }
.dgs-pv-panel.is-visible .dgs-pv-stats-grid .dgs-pv-stat-item:nth-child(4) { transition-delay: 0.30s; }

.dgs-pv-stats-grid .dgs-pv-stat-item:hover,
.dgs-pv-stat-item:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--action-teal, #00B39F) !important;
  box-shadow: 0 6px 20px rgba(0, 179, 159, 0.22) !important;
  transform: translateY(-3px) scale(1.02) !important;
}

.dgs-pv-stats-grid .dgs-pv-stat-num,
.dgs-pv-stat-num {
  font-family: var(--font-heading, "Outfit", "Sora", sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  opacity: 1 !important;
  -webkit-text-fill-color: initial !important;
}

.dgs-pv-stats-grid .dgs-pv-stat-num .dgs-pv-count,
.dgs-pv-stat-num .dgs-pv-count {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: #FFFFFF !important;
}

.dgs-pv-stats-grid .dgs-pv-stat-num small,
.dgs-pv-stat-num small {
  font-size: 0.7em;
  font-weight: 700;
  color: var(--action-teal, #00B39F) !important;
  letter-spacing: -0.01em;
}

.dgs-pv-stats-grid .dgs-pv-stat-lbl,
.dgs-pv-stat-lbl {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: #E2E8F0 !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-align: center;
  opacity: 1 !important;
}

.dgs-pv-role-label {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94A3B8 !important;
  text-align: center;
  line-height: 1.25;
  padding-bottom: 0.4rem;
  transition: color 0.25s ease, font-weight 0.25s ease;
}
.dgs-pv-role-label::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--action-teal, #00B39F);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-role.is-active .dgs-pv-role-label {
  color: #FFFFFF !important;
  font-weight: 700;
}
.dgs-pv-role.is-active .dgs-pv-role-label::after {
  width: 100%;
}

/* Staggered entrance for the role row (up to 6 items) */
.dgs-pv-role-row .dgs-pv-role:nth-child(1) { transition-delay: 0.04s; }
.dgs-pv-role-row .dgs-pv-role:nth-child(2) { transition-delay: 0.1s; }
.dgs-pv-role-row .dgs-pv-role:nth-child(3) { transition-delay: 0.16s; }
.dgs-pv-role-row .dgs-pv-role:nth-child(4) { transition-delay: 0.22s; }
.dgs-pv-role-row .dgs-pv-role:nth-child(5) { transition-delay: 0.28s; }
.dgs-pv-role-row .dgs-pv-role:nth-child(6) { transition-delay: 0.34s; }

.dgs-pv-practice-stage {
  position: relative;
  z-index: 2;
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Inactive cards are pulled out of flow (absolute, overlaid, no bottom
   constraint so they keep their natural content height instead of being
   stretched) so the stage's JS-driven height always hugs whichever card is
   currently active instead of locking to the tallest card in the set — no
   dead space under shorter variants, and a real height to animate to/from. */
.dgs-pv-practice-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--pv-card-bg);
  border: 1px solid var(--pv-card-border);
  border-radius: 16px;
  box-shadow: var(--pv-card-shadow);
  padding: 1.35rem 1.5rem 1.3rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-panel.is-visible .dgs-pv-practice-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.dgs-pv-practice-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--pv-card-border);
}
.dgs-pv-practice-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pv-node-title) !important;
  margin: 0;
  font-family: var(--font-heading, 'Sora', sans-serif);
  letter-spacing: -0.01em;
}
.dgs-pv-panel[data-theme="light"] .dgs-pv-practice-title {
  color: var(--dgs-navy, #0A1F33) !important;
}
.dgs-pv-practice-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--action-teal, #00B39F) !important;
}

.dgs-pv-practice-chat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.dgs-pv-practice-chat > p:not(.dgs-pv-chat-reply) {
  margin: 0;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 2px solid var(--action-teal, #00B39F);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--pv-node-title) !important;
  min-height: 1.6em;
  align-self: flex-start;
  max-width: 92%;
}
.dgs-pv-practice-chat p.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  background: var(--action-teal, #00B39F);
  vertical-align: -0.15em;
  animation: dgs-pv-caret-blink 0.9s steps(1) infinite;
}

/* User's reply: a teal chat bubble, right-aligned like a real conversation.
   Revealed by JS once the incoming message finishes typing. */
.dgs-pv-chat-reply {
  align-self: flex-end;
  max-width: 78%;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 14px 14px 4px 14px;
  background: var(--action-teal, #00B39F);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-chat-reply.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@keyframes dgs-pv-caret-blink {
  50% { opacity: 0; }
}

.dgs-pv-practice-stats {
  display: flex;
  flex-direction: column;
}
.dgs-pv-practice-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--pv-card-border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.dgs-pv-practice-stat-row:first-child {
  border-top: none;
  padding-top: 0;
}
.dgs-pv-practice-card.is-active .dgs-pv-practice-stat-row {
  opacity: 1;
  transform: translateY(0);
}
.dgs-pv-practice-card.is-active .dgs-pv-practice-stat-row:nth-child(1) { transition-delay: 0.1s; }
.dgs-pv-practice-card.is-active .dgs-pv-practice-stat-row:nth-child(2) { transition-delay: 0.16s; }
.dgs-pv-practice-card.is-active .dgs-pv-practice-stat-row:nth-child(3) { transition-delay: 0.22s; }
.dgs-pv-practice-card.is-active .dgs-pv-practice-stat-row:nth-child(4) { transition-delay: 0.28s; }
.dgs-pv-practice-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pv-stat-label) !important;
}
.dgs-pv-practice-stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pv-node-title) !important;
  text-align: right;
}
.dgs-pv-practice-stat-value.tone-teal { color: var(--action-teal, #00B39F) !important; }
.dgs-pv-practice-stat-value.tone-blue { color: var(--pv-icon-blue-fg) !important; }

.dgs-pv-practice-foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--pv-card-border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--pv-node-title) !important;
}

/* NOTE: `.dgs-pv-panel` (base rule, top of file) sets `padding: 2.25rem
   !important` at every viewport, unconditionally (not gated on
   .is-visible — padding must hold constant across the reveal so the
   panel never collapses/reflows), which is equal-or-higher specificity
   than a bare `.dgs-pv-people-panel` rule — so a plain override here
   would silently lose and this panel would stay full-size on phones.
   Chaining `.dgs-pv-panel.dgs-pv-people-panel` + `!important` is what
   actually wins. Not gated on .is-visible for the same reason as the
   base rule: this padding must never change after mount. */
@media (max-width: 600px) {
  .dgs-pv-panel.dgs-pv-people-panel { padding: 1.3rem 1.2rem 1.5rem !important; }
  .dgs-pv-role { width: 54px; }
  .dgs-pv-role-photo { width: 40px; height: 40px; }
  .dgs-pv-role-row { gap: 0.7rem 0.5rem; }
}

@media (max-width: 420px) {
  .dgs-pv-panel.dgs-pv-people-panel { padding: 1.1rem 1rem 1.3rem !important; }
  .dgs-pv-role { width: 48px; }
  .dgs-pv-role-photo { width: 36px; height: 36px; }
  .dgs-pv-practice-card { padding: 1.1rem 1.15rem 1.05rem !important; }
  .dgs-pv-practice-title { font-size: 0.92rem; }
}

/* ─── FLOW variant: GHL-style automation chain (trigger → action → action → done) ─── */
.dgs-pv-practice-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.dgs-pv-flow-node {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--pv-node-bg);
  border: 1px solid var(--pv-node-border);
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.dgs-pv-practice-card.is-active .dgs-pv-flow-node {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dgs-pv-practice-card.is-active .dgs-pv-flow-node:nth-child(1) { transition-delay: 0.08s; }
.dgs-pv-practice-card.is-active .dgs-pv-flow-node:nth-child(3) { transition-delay: 0.2s; }
.dgs-pv-practice-card.is-active .dgs-pv-flow-node:nth-child(5) { transition-delay: 0.32s; }
.dgs-pv-practice-card.is-active .dgs-pv-flow-node:nth-child(7) { transition-delay: 0.44s; }
.dgs-pv-flow-node-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pv-icon-teal-bg) !important;
  color: var(--pv-icon-teal-fg) !important;
  flex-shrink: 0;
}
.dgs-pv-flow-node[data-tone="blue"] .dgs-pv-flow-node-icon { background: var(--pv-icon-blue-bg) !important; color: var(--pv-icon-blue-fg) !important; }
.dgs-pv-flow-node[data-tone="amber"] .dgs-pv-flow-node-icon { background: var(--pv-icon-amber-bg) !important; color: var(--pv-icon-amber-fg) !important; }
.dgs-pv-flow-node[data-tone="green"] .dgs-pv-flow-node-icon { background: var(--pv-icon-green-bg) !important; color: var(--pv-icon-green-fg) !important; }
.dgs-pv-flow-node-icon svg {
  width: 11px;
  height: 11px;
}
.dgs-pv-flow-node-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pv-node-title) !important;
  white-space: nowrap;
}
.dgs-pv-flow-arrow {
  display: flex;
  color: var(--pv-node-sub);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.dgs-pv-practice-card.is-active .dgs-pv-flow-arrow {
  opacity: 0.5;
}
.dgs-pv-practice-card.is-active .dgs-pv-flow-arrow svg {
  animation: dgs-pv-flow-blink 1.8s ease-in-out infinite;
}
.dgs-pv-practice-card.is-active .dgs-pv-flow-arrow:nth-child(2) svg { animation-delay: 0s; }
.dgs-pv-practice-card.is-active .dgs-pv-flow-arrow:nth-child(4) svg { animation-delay: 0.3s; }
.dgs-pv-practice-card.is-active .dgs-pv-flow-arrow:nth-child(6) svg { animation-delay: 0.6s; }
@keyframes dgs-pv-flow-blink {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(2px); }
}

/* ─── PIPELINE variant: stage columns with counts, current stage highlighted ─── */
.dgs-pv-practice-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
@media (max-width: 420px) {
  .dgs-pv-practice-pipeline { flex-wrap: wrap; }
  .dgs-pv-pipe-stage { min-width: calc(50% - 0.25rem); }
}
.dgs-pv-pipe-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--pv-card-border);
  background: var(--pv-node-bg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}
.dgs-pv-practice-card.is-active .dgs-pv-pipe-stage {
  opacity: 1;
  transform: translateY(0);
}
.dgs-pv-practice-card.is-active .dgs-pv-pipe-stage:nth-child(1) { transition-delay: 0.08s; }
.dgs-pv-practice-card.is-active .dgs-pv-pipe-stage:nth-child(2) { transition-delay: 0.16s; }
.dgs-pv-practice-card.is-active .dgs-pv-pipe-stage:nth-child(3) { transition-delay: 0.24s; }
.dgs-pv-practice-card.is-active .dgs-pv-pipe-stage:nth-child(4) { transition-delay: 0.32s; }
.dgs-pv-pipe-stage[data-active="true"] {
  border-color: var(--dgs-blue, #2D7FF9);
  background: var(--pv-icon-blue-bg) !important;
  box-shadow: 0 0 0 1px rgba(45, 127, 249, 0.18);
}
.dgs-pv-pipe-count {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pv-node-title) !important;
  font-family: var(--font-heading, 'Sora', sans-serif);
}
.dgs-pv-pipe-stage[data-active="true"] .dgs-pv-pipe-count {
  color: var(--dgs-blue, #2D7FF9) !important;
}
.dgs-pv-pipe-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pv-stat-label) !important;
  text-align: center;
}

/* ─── CHECKLIST variant: rows with drawn-in checkmarks ─── */
.dgs-pv-practice-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dgs-pv-check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.dgs-pv-practice-card.is-active .dgs-pv-check-row {
  opacity: 1;
  transform: translateY(0);
}
.dgs-pv-practice-card.is-active .dgs-pv-check-row:nth-child(1) { transition-delay: 0.08s; }
.dgs-pv-practice-card.is-active .dgs-pv-check-row:nth-child(2) { transition-delay: 0.16s; }
.dgs-pv-practice-card.is-active .dgs-pv-check-row:nth-child(3) { transition-delay: 0.24s; }
.dgs-pv-practice-card.is-active .dgs-pv-check-row:nth-child(4) { transition-delay: 0.32s; }
.dgs-pv-check-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--pv-node-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.dgs-pv-check-mark svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.4s ease 0.15s;
}
.dgs-pv-check-row[data-done="true"] .dgs-pv-check-mark {
  border-color: var(--dgs-blue, #2D7FF9);
  background: var(--dgs-blue, #2D7FF9);
}
.dgs-pv-practice-card.is-active .dgs-pv-check-row[data-done="true"] .dgs-pv-check-mark svg {
  stroke-dashoffset: 0;
}
.dgs-pv-check-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pv-node-sub) !important;
}
.dgs-pv-check-row[data-done="true"] .dgs-pv-check-text {
  color: var(--pv-node-title) !important;
}

/* ─── CHART variant: headline stat + mini bar chart ─── */
.dgs-pv-practice-chart {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.dgs-pv-chart-headline {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.dgs-pv-chart-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dgs-blue, #2D7FF9) !important;
  font-family: var(--font-heading, 'Sora', sans-serif);
  letter-spacing: -0.01em;
}
.dgs-pv-chart-caption {
  font-size: 0.74rem;
  color: var(--pv-stat-label) !important;
  font-weight: 600;
}
.dgs-pv-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 56px;
}
.dgs-pv-chart-bar {
  flex: 1;
  height: 0;
  border-radius: 4px 4px 2px 2px;
  background: var(--pv-node-border);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-practice-card.is-active .dgs-pv-chart-bar {
  height: var(--h, 40%);
}
.dgs-pv-practice-card.is-active .dgs-pv-chart-bar:nth-child(1) { transition-delay: 0s; }
.dgs-pv-practice-card.is-active .dgs-pv-chart-bar:nth-child(2) { transition-delay: 0.05s; }
.dgs-pv-practice-card.is-active .dgs-pv-chart-bar:nth-child(3) { transition-delay: 0.1s; }
.dgs-pv-practice-card.is-active .dgs-pv-chart-bar:nth-child(4) { transition-delay: 0.15s; }
.dgs-pv-practice-card.is-active .dgs-pv-chart-bar:nth-child(5) { transition-delay: 0.2s; }
.dgs-pv-practice-card.is-active .dgs-pv-chart-bar:nth-child(6) { transition-delay: 0.25s; }
.dgs-pv-chart-bar[data-current="true"] {
  background: var(--dgs-blue, #2D7FF9);
}

/* ─── Sync highlight: "Who it's for" checklist item that matches the
   currently active People role, toggled by the panel's JS controller. ─── */
.dgs-sol-split .dgs-check-item-icon {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.dgs-sol-split .dgs-check-item p {
  transition: color 0.3s ease;
}
.dgs-sol-split .dgs-check-item.is-active .dgs-check-item-icon {
  background: var(--action-teal, #00B39F) !important;
  border-color: var(--action-teal, #00B39F) !important;
  color: #ffffff !important;
  transform: scale(1.08);
}
.dgs-sol-split .dgs-check-item.is-active p {
  color: var(--dgs-navy, #0A1F33) !important;
  font-weight: 600;
}

/* ============================================================
   PREMIUM KPI NUMBERS & SLEEK VECTOR CHART DASHBOARD
   Dark navy glassmorphism panel with 3 clean KPI cards
   and minimal SVG area/spline trend line.
   ============================================================ */

.dgs-pv-kpi-panel {
  margin-top: 0 !important;
  padding: 1.75rem 1.85rem 1.6rem !important;
}

/* ─── 3-Card Clean KPI Grid ─── */
.dgs-pv-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 820px) {
  .dgs-pv-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

.dgs-pv-kpi-grid .dgs-pv-stat {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.dgs-pv-kpi-grid .dgs-pv-stat:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--action-teal, #00B39F) !important;
  transform: translateY(-2px);
}

.dgs-pv-kpi-panel .dgs-pv-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dgs-pv-kpi-panel .dgs-pv-stat-figure {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff !important;
  font-family: var(--font-heading, 'Sora', sans-serif);
  line-height: 1.1;
  margin: 0.15rem 0;
}
.dgs-pv-kpi-panel .dgs-pv-stat-figure span.dgs-pv-count {
  color: #ffffff !important;
}
.dgs-pv-kpi-panel .dgs-pv-stat-figure span.dgs-pv-sym {
  color: var(--action-teal, #00B39F) !important;
}

.dgs-pv-stat-sub {
  font-size: 0.75rem;
  color: #64748B !important;
  font-weight: 500;
  line-height: 1.3;
}

/* ─── Clean Vector Chart Card ─── */
.dgs-pv-chart-card {
  position: relative;
  z-index: 2;
  background: rgba(8, 18, 30, 0.72) !important;
  border: 1px solid rgba(0, 179, 159, 0.25) !important;
  border-radius: 16px;
  padding: 1.35rem 1.45rem 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px -16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dgs-pv-chart-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.dgs-pv-chart-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dgs-pv-chart-meta {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--action-teal, #00B39F) !important;
}

.dgs-pv-chart-h {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  font-family: var(--font-heading, 'Sora', sans-serif) !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.dgs-pv-chart-canvas-wrap {
  position: relative;
  width: 100%;
}

.dgs-pv-vector-chart {
  width: 100%;
  height: 155px;
  display: block;
  overflow: visible;
}
@media (max-width: 560px) {
  .dgs-pv-vector-chart {
    height: 130px;
  }
}

.dgs-pv-chart-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dgs-pv-panel.is-visible .dgs-pv-chart-line {
  stroke-dashoffset: 0;
}

.dgs-pv-chart-area {
  opacity: 0;
  transition: opacity 1.2s ease 0.4s;
}
.dgs-pv-panel.is-visible .dgs-pv-chart-area {
  opacity: 1;
}

.dgs-pv-chart-benchmark {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.4s ease 0.2s;
}
.dgs-pv-panel.is-visible .dgs-pv-chart-benchmark {
  stroke-dashoffset: 0;
}

/* ============================================================
   MOBILE RESPONSIVENESS FOR PREMIUM VIZ PANELS
   Scales down all interactive elements for viewports <= 640px.
   Desktop remains visually unchanged.
   ============================================================ */
@media (max-width: 640px) {
  /* Base panel: reduce padding so content starts closer to edges */
  .dgs-pv-panel {
    padding: 1.25rem !important;
  }

  /* Head row */
  .dgs-pv-head {
    padding-bottom: 0.85rem;
    margin-bottom: 1.1rem;
    gap: 0.6rem;
  }
  .dgs-pv-head-label {
    font-size: 0.68rem;
    gap: 0.4rem;
  }
  .dgs-pv-badge {
    font-size: 0.6rem;
    padding: 0.22rem 0.5rem;
  }

  /* Hub + bus line */
  .dgs-pv-hub {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }
  .dgs-pv-hub-stem {
    height: 1rem;
  }
  .dgs-pv-bus {
    margin-bottom: 1rem;
  }

  /* Node graph: stack vertically on narrow screens */
  .dgs-pv-graph {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .dgs-pv-col {
    gap: 0.65rem;
  }
  .dgs-pv-node {
    padding: 0.65rem 0.75rem;
    gap: 0.55rem;
    border-radius: 10px;
  }
  .dgs-pv-node-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .dgs-pv-node-icon svg {
    width: 18px;
    height: 18px;
  }
  .dgs-pv-node-title {
    font-size: 0.76rem;
  }
  .dgs-pv-node-sub {
    font-size: 0.66rem;
  }

  /* Stat grid */
  .dgs-pv-stat-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .dgs-pv-stat {
    padding: 0.9rem 1rem;
    border-radius: 12px;
  }
  .dgs-pv-stat-label {
    font-size: 0.66rem;
  }
  .dgs-pv-stat-figure {
    font-size: 1.4rem;
  }
  .dgs-pv-spark {
    height: 24px;
  }

  /* Tiles */
  .dgs-pv-tiles {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1rem;
  }
  .dgs-pv-tile {
    padding: 0.65rem 0.75rem;
  }
  .dgs-pv-tile-lbl {
    font-size: 0.62rem;
  }
  .dgs-pv-tile-val {
    font-size: 0.95rem;
  }

  /* Node grid */
  .dgs-pv-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .dgs-pv-grid .dgs-pv-node {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  .dgs-pv-grid .dgs-pv-node::before {
    display: none;
  }

  /* Timeline */
  .dgs-pv-timeline {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .dgs-pv-step {
    padding: 1rem 0.9rem;
    border-radius: 12px;
  }
  .dgs-pv-step-badge {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }
  .dgs-pv-step-title {
    font-size: 0.88rem;
  }
  .dgs-pv-step-desc {
    font-size: 0.74rem;
  }

  /* Role switcher */
  .dgs-pv-role-row {
    gap: 0.6rem 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
  }
  .dgs-pv-role {
    width: 52px;
  }
  .dgs-pv-role-photo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .dgs-pv-role-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .dgs-pv-role-icon svg {
    width: 18px;
    height: 18px;
  }
  .dgs-pv-role-label {
    font-size: 0.66rem;
  }

  /* Practice cards */
  .dgs-pv-practice-card {
    padding: 1.1rem 1.15rem 1.05rem !important;
  }
  .dgs-pv-practice-title {
    font-size: 0.92rem;
  }
  .dgs-pv-practice-tag {
    font-size: 0.68rem;
  }
  .dgs-pv-practice-chat > p:not(.dgs-pv-chat-reply) {
    font-size: 0.78rem;
  }
  .dgs-pv-chat-reply {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }
  .dgs-pv-practice-stat-label {
    font-size: 0.62rem;
  }
  .dgs-pv-practice-stat-value {
    font-size: 0.78rem;
  }
  .dgs-pv-practice-foot {
    font-size: 0.7rem;
    margin-top: 0.85rem;
    padding-top: 0.7rem;
  }

  /* Flow nodes */
  .dgs-pv-practice-flow {
    gap: 0.25rem;
  }
  .dgs-pv-flow-node {
    padding: 0.38rem 0.55rem;
  }
  .dgs-pv-flow-node-icon {
    width: 16px;
    height: 16px;
  }
  .dgs-pv-flow-node-icon svg {
    width: 9px;
    height: 9px;
  }
  .dgs-pv-flow-node-label {
    font-size: 0.66rem;
  }
  .dgs-pv-flow-arrow svg {
    width: 14px;
    height: 14px;
  }

  /* Pipeline */
  .dgs-pv-practice-pipeline {
    gap: 0.4rem;
  }
  .dgs-pv-pipe-stage {
    padding: 0.65rem 0.3rem;
    border-radius: 10px;
  }
  .dgs-pv-pipe-count {
    font-size: 1rem;
  }
  .dgs-pv-pipe-label {
    font-size: 0.55rem;
  }

  /* Checklist */
  .dgs-pv-check-row {
    gap: 0.5rem;
  }
  .dgs-pv-check-mark {
    width: 16px;
    height: 16px;
  }
  .dgs-pv-check-mark svg {
    width: 9px;
    height: 9px;
  }
  .dgs-pv-check-text {
    font-size: 0.74rem;
  }

  /* Chart */
  .dgs-pv-chart-value {
    font-size: 1.25rem;
  }
  .dgs-pv-chart-caption {
    font-size: 0.68rem;
  }
  .dgs-pv-chart-bars {
    height: 44px;
    gap: 0.3rem;
  }

  /* Role card / tags */
  .dgs-pv-role-card {
    padding: 0.85rem 0.9rem;
    margin-bottom: 0.85rem;
  }
  .dgs-pv-tag {
    font-size: 0.62rem;
    padding: 0.18rem 0.5rem;
  }

  /* Search stages */
  .dgs-pv-search-stages {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .dgs-pv-stage-card {
    padding: 0.75rem 0.85rem;
  }

  /* Candidate chips */
  .dgs-pv-cand-chip-list {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .dgs-pv-cand-chip {
    font-size: 0.72rem;
    padding: 0.55rem 0.65rem;
  }

  /* Modules */
  .dgs-pv-modules-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .dgs-pv-module-box {
    padding: 0.9rem 1rem;
  }
  .dgs-pv-score-meta {
    font-size: 0.7rem;
  }

  /* Matrix table */
  .dgs-pv-matrix-table {
    font-size: 0.74rem;
  }
  .dgs-pv-matrix-table th {
    font-size: 0.62rem;
    padding: 0.35rem 0.5rem;
  }
  .dgs-pv-matrix-row td {
    padding: 0.65rem 0.5rem;
  }

  /* Mini timeline */
  .dgs-pv-mini-lbl {
    font-size: 0.6rem;
  }
  .dgs-pv-mini-day {
    font-size: 0.55rem;
  }

  /* Stats grid (people panel) */
  .dgs-pv-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.1rem;
  }
  .dgs-pv-stats-grid .dgs-pv-stat-item,
  .dgs-pv-stat-item {
    padding: 0.75rem 0.4rem;
    border-radius: 10px;
  }
  .dgs-pv-stats-grid .dgs-pv-stat-num,
  .dgs-pv-stat-num {
    font-size: 1.15rem;
  }
  .dgs-pv-stats-grid .dgs-pv-stat-lbl,
  .dgs-pv-stat-lbl {
    font-size: 0.66rem;
  }

  /* KPI panel */
  .dgs-pv-kpi-panel {
    padding: 1.35rem 1.2rem 1.25rem !important;
  }
  .dgs-pv-kpi-grid {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .dgs-pv-kpi-grid .dgs-pv-stat {
    padding: 0.9rem 1rem;
    border-radius: 12px;
  }
  .dgs-pv-kpi-panel .dgs-pv-stat-label {
    font-size: 0.66rem;
  }
  .dgs-pv-kpi-panel .dgs-pv-stat-figure {
    font-size: 1.6rem;
  }
  .dgs-pv-stat-sub {
    font-size: 0.7rem;
  }

  /* Chart card */
  .dgs-pv-chart-card {
    padding: 1.1rem 1.15rem 1.05rem;
    border-radius: 14px;
  }
  .dgs-pv-chart-h {
    font-size: 0.95rem !important;
  }
  .dgs-pv-chart-meta {
    font-size: 0.62rem;
  }
  .dgs-pv-vector-chart {
    height: 120px;
  }

  /* Foot */
  .dgs-pv-foot {
    margin-top: 1.1rem;
    padding-top: 0.85rem;
    font-size: 0.7rem;
  }

  /* Pulse dot */
  .dgs-pv-live-dot {
    width: 6px;
    height: 6px;
  }
  .dgs-pv-pulse-dot {
    r: 2px;
  }

  /* SVG lines */
  .dgs-pv-line {
    stroke-width: 1.2px;
  }
  .dgs-pv-spark path {
    stroke-width: 1.8px;
  }
}

@media (max-width: 420px) {
  .dgs-pv-panel {
    padding: 1rem !important;
  }
  .dgs-pv-hub {
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
  }
  .dgs-pv-node {
    padding: 0.55rem 0.65rem;
  }
  .dgs-pv-node-icon {
    width: 22px;
    height: 22px;
  }
  .dgs-pv-node-title {
    font-size: 0.72rem;
  }
  .dgs-pv-node-sub {
    font-size: 0.62rem;
  }
  .dgs-pv-stat-figure {
    font-size: 1.25rem;
  }
  .dgs-pv-kpi-panel .dgs-pv-stat-figure {
    font-size: 1.4rem;
  }
  .dgs-pv-chart-value {
    font-size: 1.1rem;
  }
  .dgs-pv-vector-chart {
    height: 100px;
  }
}



