/* Volunteering Dashboard – Modern Redesign */

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

   .vol-row-group {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
  }
  
  /* Two-column layouts */
  .vol-row-kpi,
  .vol-row-two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Full-width layouts */
  .vol-row-wide {
    grid-template-columns: 1fr;
  }
  
  /* Settlement layout: smaller + larger card */
  .vol-row-settlement {
    grid-template-columns: 1fr 1.8fr;
    align-items: stretch;
  }
  
  /* Combined card styling */
  .dashboard-card--combined {
    padding: 0 !important;
  }
  
  .card-combined-inner {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    height: 100%;
  }
  
  .card-combined-section {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
  }
  
  .card-combined-divider {
    background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.08) 50%, transparent 90%);
  }
  
  /* Card variants */
  .dashboard-card--kpi .chart-container {
    min-height: 140px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
  }

  /* Center the donut chart (Dedicated Volunteer Manager) */
  #vol_managerBars.chart-container {
    justify-content: center;
    align-items: center;
  }
  
  .dashboard-card--wide .chart-container {
    min-height: 100px;
  }
  
  .dashboard-card--capacity .chart-container {
    min-height: 200px;
  }
  
  .vol-row-two-col .chart-container {
    min-height: 240px;
  }
  
  /* ==========================================================================
     TOOLTIP
     ========================================================================== */
  
  .vol-chart-tooltip {
    position: fixed;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(12px);
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
    max-width: 280px;
    line-height: 1.5;
  }
  
  .vol-chart-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .vol-chart-tooltip .tooltip-label {
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .vol-chart-tooltip .tooltip-pct {
    color: #a78bfa;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  
  /* ==========================================================================
     COLOUR PALETTE
     ========================================================================== */
  
  :root {
    --vol-color-0: #6366f1;
    --vol-color-1: #10b981;
    --vol-color-2: #f59e0b;
    --vol-color-3: #ef4444;
    --vol-color-4: #8b5cf6;
    --vol-color-5: #06b6d4;
    --vol-color-6: #ec4899;
    --vol-color-7: #14b8a6;
    --vol-color-8: #f97316;
    --vol-color-9: #64748b;
  }
  
  .vol-bar-0 { background: linear-gradient(90deg, #6366f1, #4f46e5); }
  .vol-bar-1 { background: linear-gradient(90deg, #10b981, #059669); }
  .vol-bar-2 { background: linear-gradient(90deg, #f59e0b, #d97706); }
  .vol-bar-3 { background: linear-gradient(90deg, #ef4444, #dc2626); }
  .vol-bar-4 { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
  .vol-bar-5 { background: linear-gradient(90deg, #06b6d4, #0891b2); }
  .vol-bar-6 { background: linear-gradient(90deg, #ec4899, #db2777); }
  .vol-bar-7 { background: linear-gradient(90deg, #14b8a6, #0d9488); }
  .vol-bar-8 { background: linear-gradient(90deg, #f97316, #ea580c); }
  .vol-bar-9 { background: linear-gradient(90deg, #64748b, #475569); }
  
  /* ==========================================================================
     HORIZONTAL BAR LIST (Workforce-style: Change in Paid Staff)
     Enough Volunteers, Change in Volunteer Time, Volunteering & Settlement Policy
     ========================================================================== */
  
  .vol-horizontal-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 16px);
    width: 100%;
  }
  
  .vol-horizontal-item {
    display: flex;
    align-items: center;
    gap: var(--space-4, 16px);
    padding: 4px 0;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 6px;
  }
  
  .vol-horizontal-item:hover {
    background: rgba(99, 102, 241, 0.06);
  }
  
  .vol-horizontal-label {
    font-size: var(--text-sm, 14px);
    font-weight: 600;
    color: var(--text-primary, #334155);
    min-width: 200px;
    width: 200px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .vol-horizontal-container {
    flex: 1;
    height: 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
  }
  
  .vol-horizontal-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
  }
  
  .vol-horizontal-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: vol-shimmer 2s infinite;
  }
  
  .vol-horizontal-pct {
    font-size: var(--text-sm, 14px);
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    min-width: 40px;
    text-align: left;
    font-variant-numeric: tabular-nums;
  }
  
  @keyframes vol-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  
  /* ==========================================================================
     DONUT CHART (Dedicated Volunteer Manager) – larger, refined
     ========================================================================== */
  
  .vol-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
  }
  
  .vol-donut-chart {
    position: relative;
    width: 220px;
    height: 220px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  }
  
  .vol-donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
  }
  
  .vol-donut-segment {
    transition: stroke-width 0.2s, filter 0.2s;
    cursor: pointer;
  }
  
  .vol-donut-segment:hover {
    stroke-width: 36;
    filter: brightness(1.12);
  }
  
  .vol-donut-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    width: 80%;
    max-width: 140px;
  }
  
  .vol-donut-center-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary, #1e293b);
    line-height: 1.1;
    letter-spacing: -0.02em;
    /* Mild 3D: light top-left highlight, soft bottom-right shadow */
    text-shadow:
      1px 1px 0 rgba(255, 255, 255, 0.8),
      -1px -1px 0 rgba(0, 0, 0, 0.06),
      0 2px 4px rgba(0, 0, 0, 0.08);
  }
  
  .vol-donut-center-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    margin-top: 4px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .vol-donut-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }
  
  .vol-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .vol-donut-legend-item:hover {
    background: rgba(99, 102, 241, 0.08);
  }
  
  .vol-donut-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
  }
  
  .vol-donut-legend-label {
    font-weight: 500;
  }
  
  .vol-donut-legend-pct {
    font-weight: 700;
    color: var(--text-primary, #334155);
  }
  
  /* ==========================================================================
     LOLLIPOP CHART (Recruitment & Retention – same as looking-ahead page)
     ========================================================================== */
  
  .vertical-lollipop-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 300px;
    padding: var(--space-4, 16px) 0;
    gap: var(--space-2, 8px);
    position: relative;
  }
  
  .vertical-lollipop-chart .lollipop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
    cursor: pointer;
    min-width: 0;
    justify-content: flex-end;
  }
  
  .vertical-lollipop-chart .lollipop-stick-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    justify-content: flex-end;
  }
  
  .vertical-lollipop-chart .lollipop-line {
    width: 4px;
    min-height: 0;
    border-radius: var(--radius-full, 9999px);
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 0;
    position: relative;
    overflow: hidden;
  }
  
  .vertical-lollipop-chart .lollipop-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0);
    margin-top: -2px;
    flex-shrink: 0;
  }
  
  .vertical-lollipop-chart .lollipop-percentage {
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-bold, 700);
    color: var(--text-primary, #334155);
    margin-top: var(--space-2, 8px);
    opacity: 0;
    transition: opacity 0.5s ease;
    flex-shrink: 0;
  }
  
  .vertical-lollipop-chart .lollipop-label {
    font-size: var(--text-xs, 12px);
    font-weight: var(--font-medium, 500);
    color: var(--text-secondary, #64748b);
    text-align: center;
    line-height: var(--leading-tight, 1.25);
    max-width: 80px;
    margin-top: var(--space-1, 4px);
    flex-shrink: 0;
  }
  
  /* Volunteering lollipop colours (vol-bar-0..9) */
  .vertical-lollipop-chart .lollipop-item.vol-bar-0 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-0 .lollipop-dot {
    background: linear-gradient(to top, #4f46e5, #6366f1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  }
  .vertical-lollipop-chart .lollipop-item.vol-bar-1 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-1 .lollipop-dot {
    background: linear-gradient(to top, #059669, #10b981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }
  .vertical-lollipop-chart .lollipop-item.vol-bar-2 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-2 .lollipop-dot {
    background: linear-gradient(to top, #d97706, #f59e0b);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  }
  .vertical-lollipop-chart .lollipop-item.vol-bar-3 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-3 .lollipop-dot {
    background: linear-gradient(to top, #dc2626, #ef4444);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  }
  .vertical-lollipop-chart .lollipop-item.vol-bar-4 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-4 .lollipop-dot {
    background: linear-gradient(to top, #7c3aed, #8b5cf6);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  }
  .vertical-lollipop-chart .lollipop-item.vol-bar-5 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-5 .lollipop-dot {
    background: linear-gradient(to top, #0891b2, #06b6d4);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  }
  .vertical-lollipop-chart .lollipop-item.vol-bar-6 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-6 .lollipop-dot {
    background: linear-gradient(to top, #db2777, #ec4899);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
  }
  .vertical-lollipop-chart .lollipop-item.vol-bar-7 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-7 .lollipop-dot {
    background: linear-gradient(to top, #0d9488, #14b8a6);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
  }
  .vertical-lollipop-chart .lollipop-item.vol-bar-8 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-8 .lollipop-dot {
    background: linear-gradient(to top, #ea580c, #f97316);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  }
  .vertical-lollipop-chart .lollipop-item.vol-bar-9 .lollipop-line,
  .vertical-lollipop-chart .lollipop-item.vol-bar-9 .lollipop-dot {
    background: linear-gradient(to top, #475569, #64748b);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
  }
  
  /* ==========================================================================
     PILL STAT (Binary/KPI questions)
     Large percentage + pill breakdown
     ========================================================================== */
  
  .vol-pill-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
  }
  
  .vol-pill-hero {
    text-align: center;
  }
  
  .vol-pill-hero-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .vol-pill-hero-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  
  .vol-pill-bar-wrapper {
    width: 100%;
    max-width: 280px;
  }
  
  .vol-pill-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(0,0,0,0.06);
  }
  
  .vol-pill-segment {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 3px;
  }
  
  .vol-pill-segment:hover {
    filter: brightness(1.15);
    transform: scaleY(1.3);
  }
  
  .vol-pill-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
  }
  
  .vol-pill-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
  }
  
  .vol-pill-legend-item:hover {
    background: rgba(99, 102, 241, 0.08);
  }
  
  .vol-pill-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .vol-pill-legend-pct {
    font-weight: 700;
    color: var(--text-primary, #334155);
  }
  
  /* ==========================================================================
     GAUGE CHART (Likert/Difficulty scales)
     Semi-circle gauge with pointer
     ========================================================================== */
  
  .vol-gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
  }
  
  .vol-gauge-wrapper {
    position: relative;
    width: 180px;
    height: 100px;
  }
  
  .vol-gauge-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  
  .vol-gauge-track {
    fill: none;
    stroke: rgba(0,0,0,0.06);
    stroke-width: 16;
    stroke-linecap: round;
  }
  
  .vol-gauge-segment {
    fill: none;
    stroke-width: 16;
    stroke-linecap: round;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .vol-gauge-segment:hover {
    stroke-width: 20;
    filter: brightness(1.1);
  }
  
  .vol-gauge-center-text {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
  
  .vol-gauge-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary, #1e293b);
    line-height: 1;
  }
  
  .vol-gauge-label {
    font-size: 11px;
    color: var(--text-secondary, #64748b);
    margin-top: 2px;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .vol-gauge-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 12px;
    max-width: 320px;
  }
  
  .vol-gauge-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary, #64748b);
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .vol-gauge-legend-item:hover {
    background: rgba(99, 102, 241, 0.08);
  }
  
  .vol-gauge-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
  }
  
  .vol-gauge-legend-pct {
    font-weight: 700;
    color: var(--text-primary, #334155);
  }
  
  /* ==========================================================================
     DIVERGING BAR (Change/Increase-Decrease questions)
     Centered bars going left/right from center
     ========================================================================== */
  
  .vol-diverging-container {
    padding: 8px 0;
  }
  
  .vol-diverging-bars {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    height: 56px;
    max-width: 100%;
  }
  
  .vol-diverging-side {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 45%;
  }
  
  .vol-diverging-side--left {
    justify-content: flex-end;
  }
  
  .vol-diverging-side--right {
    justify-content: flex-start;
  }
  
  .vol-diverging-bar {
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    min-width: 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
  }
  
  .vol-diverging-bar:hover {
    transform: scaleY(1.1);
    filter: brightness(1.1);
  }
  
  .vol-diverging-bar--negative {
    background: linear-gradient(90deg, #ef4444, #f87171);
    border-radius: 6px 0 0 6px;
  }
  
  .vol-diverging-bar--neutral {
    background: linear-gradient(180deg, #94a3b8, #64748b);
    border-radius: 4px;
    min-width: 60px;
  }
  
  .vol-diverging-bar--positive {
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 0 6px 6px 0;
  }
  
  .vol-diverging-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
  }
  
  .vol-diverging-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
  }
  
  .vol-diverging-legend-item:hover {
    background: rgba(0,0,0,0.04);
  }
  
  .vol-diverging-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
  }
  
  .vol-diverging-legend-dot--negative { background: #ef4444; }
  .vol-diverging-legend-dot--neutral { background: #64748b; }
  .vol-diverging-legend-dot--positive { background: #22c55e; }
  
  .vol-diverging-legend-label {
    font-weight: 500;
  }
  
  .vol-diverging-legend-pct {
    font-weight: 700;
    color: var(--text-primary, #334155);
  }
  
  /* ==========================================================================
     RANKED BARS (Multi-select with many options)
     Clean horizontal bars with rank indicators
     ========================================================================== */
  
  .vol-ranked-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .vol-ranked-item {
    display: grid;
    grid-template-columns: 24px 1fr 50px;
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    animation: rankSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  
  .vol-ranked-item:hover {
    background: rgba(99, 102, 241, 0.06);
  }
  
  @keyframes rankSlideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .vol-ranked-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary, #94a3b8);
    text-align: center;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0,0,0,0.04);
  }
  
  .vol-ranked-item:nth-child(1) .vol-ranked-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
  }
  
  .vol-ranked-item:nth-child(2) .vol-ranked-rank {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
  }
  
  .vol-ranked-item:nth-child(3) .vol-ranked-rank {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
  }
  
  .vol-ranked-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  
  .vol-ranked-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #334155);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .vol-ranked-track {
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    overflow: hidden;
  }
  
  .vol-ranked-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .vol-ranked-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  /* ==========================================================================
     TOP 3 KPI CARDS (for ranked multi-select charts)
     ========================================================================== */
  
  .vol-ranked-kpi-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .vol-ranked-kpi-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .vol-ranked-kpi-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
  }
  
  .vol-ranked-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
  }
  
  .vol-ranked-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
  }
  
  .vol-ranked-kpi-card:nth-child(1)::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
  }
  
  .vol-ranked-kpi-card:nth-child(2)::before {
    background: linear-gradient(90deg, #94a3b8, #64748b);
  }
  
  .vol-ranked-kpi-card:nth-child(3)::before {
    background: linear-gradient(90deg, #d97706, #b45309);
  }
  
  .vol-ranked-kpi-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .vol-ranked-kpi-card:nth-child(1) .vol-ranked-kpi-rank {
    color: #f59e0b;
  }
  
  .vol-ranked-kpi-card:nth-child(2) .vol-ranked-kpi-rank {
    color: #64748b;
  }
  
  .vol-ranked-kpi-card:nth-child(3) .vol-ranked-kpi-rank {
    color: #b45309;
  }
  
  .vol-ranked-kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary, #1e293b);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  
  .vol-ranked-kpi-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .vol-ranked-rest-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  .vol-ranked-rest-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  /* ==========================================================================
     STACKED BAR (Fallback for 2-6 options)
     ========================================================================== */
  
  .vol-stacked-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .vol-stacked-bar {
    display: flex;
    height: 36px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0,0,0,0.05);
  }
  
  .vol-stacked-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 4px;
    position: relative;
  }
  
  .vol-stacked-segment::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
  }
  
  .vol-stacked-segment:hover {
    transform: scaleY(1.15);
    filter: brightness(1.1);
    z-index: 2;
  }
  
  .vol-stacked-segment-pct {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
  }
  
  .vol-stacked-segment[data-show-label="true"] .vol-stacked-segment-pct {
    opacity: 1;
  }
  
  .vol-stacked-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  
  .vol-stacked-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .vol-stacked-legend-item:hover {
    background: rgba(99, 102, 241, 0.08);
  }
  
  .vol-stacked-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
  }
  
  .vol-stacked-legend-label {
    color: var(--text-primary, #374151);
    font-weight: 500;
  }
  
  .vol-stacked-legend-pct {
    font-weight: 700;
    color: var(--text-secondary, #64748b);
    margin-left: 2px;
  }
  
  /* ==========================================================================
     EMPTY STATE
     ========================================================================== */
  
  .empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: var(--text-secondary, #64748b);
    font-size: 13px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    border: 1px dashed rgba(0,0,0,0.1);
  }
  
  /* ==========================================================================
     RESPONSIVE
     ========================================================================== */
  
  @media (max-width: 1024px) {
    .vol-row-settlement {
      grid-template-columns: 1fr;
    }
    
    .vol-ranked-kpi-cards {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    .vol-row-kpi,
    .vol-row-two-col {
      grid-template-columns: 1fr;
    }
    
    .card-combined-inner {
      grid-template-columns: 1fr;
    }
    
    .card-combined-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent 10%, rgba(0,0,0,0.08) 50%, transparent 90%);
    }
    
    .vol-pill-hero-value {
      font-size: 40px;
    }
    
    .vol-diverging-bars {
      flex-direction: column;
      height: auto;
      gap: 8px;
    }
    
    .vol-diverging-side {
      max-width: 100%;
      justify-content: center !important;
    }
    
    .vol-diverging-bar {
      border-radius: 6px !important;
    }
    
    .vol-ranked-item {
      grid-template-columns: 20px 1fr 44px;
    }
    
    .vol-horizontal-bars .vol-horizontal-label {
      min-width: 150px;
      width: 150px;
      font-size: var(--text-xs, 12px);
    }
    
    .vol-horizontal-bars .vol-horizontal-container {
      height: 20px;
    }
    
    .vol-donut-chart {
      width: 200px;
      height: 200px;
    }
    
    .vol-ranked-kpi-cards {
      grid-template-columns: 1fr;
    }
    
    .vol-ranked-kpi-value {
      font-size: 24px;
    }
  }
  
  @media (max-width: 480px) {
    .vol-row-group {
      gap: 16px;
      margin-bottom: 16px;
    }
    
    .vol-pill-hero-value {
      font-size: 36px;
    }
    
    .vol-gauge-wrapper {
      width: 140px;
      height: 80px;
    }
    
    .vol-gauge-value {
      font-size: 22px;
    }
  }
  
  /* ==========================================================================
     ACCESSIBILITY
     ========================================================================== */
  
  .vol-pill-segment:focus-visible,
  .vol-gauge-segment:focus-visible,
  .vol-diverging-bar:focus-visible,
  .vol-ranked-item:focus-visible,
  .vol-stacked-segment:focus-visible,
  .vol-horizontal-item:focus-visible,
  .vertical-lollipop-chart .lollipop-item:focus-visible,
  .vol-donut-segment:focus-visible,
  .vol-ranked-kpi-card:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .vol-pill-segment,
    .vol-gauge-segment,
    .vol-diverging-bar,
    .vol-ranked-fill,
    .vol-stacked-segment {
      transition: none;
    }
    
    .vol-ranked-item {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
