.dashboard-shell {
    --ww-bg: #121218;
    --ww-surface: #1e1e2a;
    --ww-surface-2: #252536;
    --ww-border: #2e2e3e;
    --ww-text: #e8e8ec;
    --ww-text-soft: #9a9aae;
    --ww-text-faint: #6a6a80;
    --ww-primary: #7c6cff;
    --ww-primary-soft: rgba(124,108,255,0.15);
    --ww-success: #4caf50;
    --ww-success-soft: rgba(76,175,80,0.15);
    --ww-warning: #ffb74d;
    --ww-warning-soft: rgba(255,183,77,0.15);
    --ww-danger: #ef5350;
    --ww-danger-soft: rgba(239,83,80,0.15);
    --ww-shadow: 0 10px 30px rgba(0,0,0,0.3);
    --ww-radius-xl: 24px;
    --ww-radius-lg: 18px;
    --ww-radius-md: 14px;
    --ww-stat-positive: #4caf50;
    --ww-stat-warning: #ffb74d;
    --ww-stat-danger: #ef5350;
    --ww-stat-info: #7c6cff;
}

.dashboard-shell.dark {
    --ww-bg: #121218;
    --ww-surface: #1e1e2a;
    --ww-surface-2: #252536;
    --ww-border: #2e2e3e;
    --ww-text: #e8e8ec;
    --ww-text-soft: #9a9aae;
    --ww-text-faint: #6a6a80;
    --ww-primary: #7c6cff;
    --ww-primary-soft: rgba(124,108,255,0.15);
    --ww-success: #4caf50;
    --ww-success-soft: rgba(76,175,80,0.15);
    --ww-warning: #ffb74d;
    --ww-warning-soft: rgba(255,183,77,0.15);
    --ww-danger: #ef5350;
    --ww-danger-soft: rgba(239,83,80,0.15);
    --ww-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.dashboard-shell {
    background: linear-gradient(180deg, #121218 0%, #16161f 100%);
    min-height: 100vh;
}

.section-spacing {
    margin-top: 28px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 8px;
}

.dashboard-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(124,108,255,0.15), rgba(76,175,80,0.15));
    box-shadow: inset 0 0 0 1px rgba(124,108,255,0.15);
}

.dashboard-greeting {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ww-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dashboard-date {
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--ww-text-soft);
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.utility-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--ww-primary-soft);
    border: 1px solid rgba(124,108,255,0.3);
    color: var(--ww-primary);
    font-weight: 700;
    box-shadow: var(--ww-shadow);
}

.utility-badge-icon {
    font-size: 1rem;
}

.live-clock {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--ww-surface-2);
    color: var(--ww-text);
    font-weight: 700;
    min-width: 88px;
    text-align: center;
    letter-spacing: 0.02em;
}

.refresh-button {
    border-radius: 14px !important;
    background: var(--ww-surface) !important;
    border: 1px solid var(--ww-border);
    box-shadow: var(--ww-shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.section-header.with-link {
    margin-bottom: 20px;
}

.section-title {
    font-weight: 800 !important;
    color: var(--ww-text);
    letter-spacing: -0.02em;
}

.section-subtitle {
    margin-top: 4px;
    color: var(--ww-text-soft);
    font-size: 0.96rem;
}

.section-tertiary {
    margin-top: 2px;
    color: var(--ww-text-faint);
    font-size: 0.88rem;
}

.section-link {
    color: var(--ww-primary) !important;
    font-weight: 700;
    white-space: nowrap;
}

.focus-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.focus-card {
    padding: 22px;
    border-radius: var(--ww-radius-xl);
    background: var(--ww-surface);
    border: 1px solid var(--ww-border);
    box-shadow: var(--ww-shadow);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.focus-card.severity-critical {
    background: linear-gradient(180deg, rgba(239,83,80,0.08) 0%, var(--ww-surface) 100%);
    border-color: rgba(239,83,80,0.3);
}

.focus-card.severity-warning {
    background: linear-gradient(180deg, rgba(255,183,77,0.08) 0%, var(--ww-surface) 100%);
    border-color: rgba(255,183,77,0.3);
}

.focus-card.severity-info {
    background: linear-gradient(180deg, rgba(124,108,255,0.08) 0%, var(--ww-surface) 100%);
}

.focus-card.severity-success {
    background: linear-gradient(180deg, rgba(76,175,80,0.08) 0%, var(--ww-surface) 100%);
    border-color: rgba(76,175,80,0.3);
}

.focus-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.focus-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ww-surface-2);
    font-size: 1.15rem;
}

.focus-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ww-text-soft);
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 6px 10px;
}

.focus-title {
    color: var(--ww-text);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

.focus-value {
    margin-top: 10px;
    color: var(--ww-text);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.focus-support,
.focus-secondary {
    margin-top: 8px;
    color: var(--ww-text-soft);
    font-size: 0.92rem;
    line-height: 1.4;
}

.focus-action {
    margin-top: auto;
    align-self: flex-start;
    border-radius: 12px !important;
    padding-inline: 16px !important;
}

.stat-card,
.dashboard-card {
    background: var(--ww-surface);
    border: 1px solid var(--ww-border);
    box-shadow: var(--ww-shadow);
}

.stat-card {
    border-radius: 22px;
    padding: 22px;
    min-height: 166px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(18, 38, 63, 0.11);
    border-color: #cdd9e7;
}

.stat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ww-surface-2);
    font-size: 1.15rem;
}

.trend-pill {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.trend-positive {
    color: var(--ww-success);
    background: var(--ww-success-soft);
}

.trend-warning {
    color: var(--ww-warning);
    background: var(--ww-warning-soft);
}

.stat-label {
    color: var(--ww-text-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.stat-value {
    margin-top: 10px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--ww-text);
    letter-spacing: -0.03em;
}

.stat-support {
    margin-top: 10px;
    color: var(--ww-text-soft);
    line-height: 1.45;
}

.left-column-stack,
.right-column-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-card {
    border-radius: 24px;
    padding: 24px;
}

.cycle-status-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--ww-primary-soft);
    color: var(--ww-primary);
    margin-bottom: 22px;
    font-weight: 700;
    flex-wrap: wrap;
}

.cycle-status-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cycle-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ww-primary);
}

.pipeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 26px;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
}

.pipeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(50% + 24px);
    width: calc(100% - 16px);
    height: 2px;
    background: var(--ww-border);
    z-index: 0;
}

.pipeline-node {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ww-border);
    background: var(--ww-surface);
    color: var(--ww-text-soft);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.pipeline-label {
    font-size: 0.9rem;
    color: var(--ww-text-soft);
    font-weight: 700;
}

.pipeline-step.complete .pipeline-node {
    background: var(--ww-success);
    border-color: var(--ww-success);
    color: #fff;
}

.pipeline-step.complete .pipeline-label {
    color: var(--ww-text);
}

.pipeline-step.active .pipeline-node {
    background: var(--ww-primary);
    border-color: var(--ww-primary);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(124,108,255,0.2);
}

.pipeline-step.active .pipeline-label {
    color: var(--ww-primary);
}

.cycle-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.metric-block {
    padding: 16px;
    border-radius: 16px;
    background: var(--ww-surface-2);
    border: 1px solid var(--ww-border);
}

.metric-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--ww-text);
}

.metric-warning {
    color: var(--ww-warning);
}

.metric-caption {
    margin-top: 4px;
    color: var(--ww-text-soft);
    font-size: 0.9rem;
}

.progress-panel {
    padding: 18px;
    border-radius: 18px;
    background: var(--ww-surface-2);
    border: 1px solid var(--ww-border);
}

.progress-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.progress-title {
    font-weight: 800;
    color: var(--ww-text);
}

.progress-subtitle {
    margin-top: 4px;
    color: var(--ww-text-soft);
    font-size: 0.9rem;
}

.reading-progress {
    height: 14px !important;
    border-radius: 999px !important;
}

.cycle-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.chart-legend {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    color: var(--ww-text-soft);
    font-weight: 700;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.legend-swatch.billed {
    background: #c9dafc;
}

.legend-swatch.collected {
    background: var(--ww-primary);
}

.revenue-chart {
    height: 260px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-items: end;
    padding-top: 12px;
}

.chart-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.chart-bars {
    height: 210px;
    display: flex;
    align-items: end;
    gap: 8px;
}

.chart-bar {
    width: 22px;
    border-radius: 10px 10px 6px 6px;
    transition: transform 0.18s ease;
}

.chart-bar:hover {
    transform: translateY(-3px);
}

.chart-bar.billed {
    background: linear-gradient(180deg, rgba(124,108,255,0.3) 0%, rgba(124,108,255,0.15) 100%);
}

.chart-bar.collected {
    background: linear-gradient(180deg, #7c6cff 0%, #5b4dd4 100%);
}

.chart-label {
    color: var(--ww-text-soft);
    font-weight: 700;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--ww-surface-2);
    border: 1px solid var(--ww-border);
}

.health-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.health-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.status-healthy {
    background: var(--ww-success);
    box-shadow: 0 0 0 4px rgba(21, 159, 107, 0.12);
}

.health-name,
.health-status {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ww-text);
}

.gauge-wrap {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.gauge-shell {
    position: relative;
    width: 200px;
    height: 200px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

::deep .gauge-track,
::deep .gauge-value {
    fill: none;
    stroke-width: 12;
}

.gauge-track {
    stroke: #3a3a4e;
}

.gauge-value {
    stroke: #7c6cff;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s ease;
}

.gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 8px;
}

.gauge-percent {
    font-size: 2rem;
    font-weight: 900;
    color: var(--ww-text);
    line-height: 1;
}

.gauge-label {
    margin-top: 6px;
    color: var(--ww-text-soft);
    font-weight: 700;
}

.collection-summary {
    text-align: center;
    margin: 12px 0 20px;
}

.summary-primary {
    font-weight: 800;
    color: var(--ww-text);
}

.summary-secondary {
    margin-top: 6px;
    color: var(--ww-text-soft);
}

.summary-positive {
    margin-top: 6px;
    color: var(--ww-success);
    font-weight: 800;
}

.overdue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overdue-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--ww-border);
    background: var(--ww-surface);
}

.overdue-item.severity-critical {
    border-left: 5px solid var(--ww-danger);
    background: var(--ww-danger-soft);
}

.overdue-item.severity-warning {
    border-left: 5px solid var(--ww-warning);
    background: var(--ww-warning-soft);
}

.overdue-name {
    font-weight: 800;
    color: var(--ww-text);
}

.overdue-meta {
    margin-top: 4px;
    color: var(--ww-text-soft);
    font-size: 0.88rem;
    line-height: 1.35;
}

.overdue-amount {
    white-space: nowrap;
    font-weight: 900;
    color: var(--ww-text);
}

.bottom-link {
    display: inline-block;
    margin-top: 14px;
}

.activity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.activity-filter {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--ww-surface-2);
    color: var(--ww-text-soft);
    font-size: 0.84rem;
    font-weight: 800;
}

.activity-filter.active {
    background: var(--ww-primary-soft);
    color: var(--ww-primary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ww-border);
}

.activity-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1rem;
}

.activity-icon.type-payment {
    background: rgba(76,175,80,0.12);
}

.activity-icon.type-alert {
    background: rgba(255,183,77,0.12);
}

.activity-icon.type-field {
    background: rgba(124,108,255,0.12);
}

.activity-icon.type-system {
    background: rgba(38,198,218,0.12);
}

.activity-content {
    min-width: 0;
}

.activity-text {
    color: var(--ww-text);
    font-weight: 700;
    line-height: 1.4;
}

.activity-time {
    margin-top: 4px;
    color: var(--ww-text-soft);
    font-size: 0.88rem;
}

.quick-actions-title {
    margin-bottom: 16px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-button {
    justify-content: flex-start !important;
    border-radius: 16px !important;
    border: 1px solid var(--ww-border) !important;
    background: #fbfdff !important;
    color: var(--ww-text) !important;
    min-height: 58px;
    font-weight: 800 !important;
    text-transform: none !important;
    padding-inline: 16px !important;
}

.quick-action-icon {
    margin-right: 10px;
    font-size: 1rem;
}

@media (max-width: 1400px) {
    .cycle-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header-right {
        justify-content: flex-start;
    }

    .pipeline {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 18px;
    }

    .pipeline-step:nth-child(3n)::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .health-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-shell {
        padding: 18px !important;
    }

    .dashboard-greeting {
        font-size: 1.55rem;
    }

    .pipeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .pipeline-step:nth-child(2n)::after {
        display: none;
    }

    .cycle-metrics {
        grid-template-columns: 1fr;
    }

    .progress-panel-header,
    .section-header,
    .cycle-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .revenue-chart {
        gap: 10px;
    }

    .chart-bars {
        gap: 5px;
    }

    .chart-bar {
        width: 16px;
    }
}

/* ── Dark mode overrides ── */
/* removed invalid nested selector */

.dashboard-shell.dark .focus-card {
    background: var(--ww-surface);
    border-color: var(--ww-border);
}

.dashboard-shell.dark .focus-card.severity-critical {
    background: linear-gradient(180deg, rgba(239,83,80,0.08) 0%, var(--ww-surface) 100%);
    border-color: rgba(239,83,80,0.3);
}

.dashboard-shell.dark .focus-card.severity-warning {
    background: linear-gradient(180deg, rgba(255,183,77,0.08) 0%, var(--ww-surface) 100%);
    border-color: rgba(255,183,77,0.3);
}

.dashboard-shell.dark .focus-card.severity-info {
    background: linear-gradient(180deg, rgba(124,108,255,0.08) 0%, var(--ww-surface) 100%);
    border-color: var(--ww-border);
}

.dashboard-shell.dark .focus-card.severity-success {
    background: linear-gradient(180deg, rgba(76,175,80,0.08) 0%, var(--ww-surface) 100%);
    border-color: rgba(76,175,80,0.3);
}

.dashboard-shell.dark .stat-card {
    background: var(--ww-surface);
    border-color: var(--ww-border);
}

.dashboard-shell.dark .dashboard-card {
    background: var(--ww-surface);
    border-color: var(--ww-border);
}

.dashboard-shell.dark .metric-block {
    background: var(--ww-surface-2);
    border-color: var(--ww-border);
}

.dashboard-shell.dark .health-item {
    background: var(--ww-surface-2);
    border-color: var(--ww-border);
}

.dashboard-shell.dark .overdue-item {
    background: var(--ww-surface-2);
    border-color: var(--ww-border);
}

.dashboard-shell.dark .overdue-item.severity-critical {
    border-left-color: var(--ww-danger);
    background: var(--ww-danger-soft);
}

.dashboard-shell.dark .overdue-item.severity-warning {
    border-left-color: var(--ww-warning);
    background: var(--ww-warning-soft);
}

.dashboard-shell.dark .progress-panel {
    background: var(--ww-surface-2);
    border-color: var(--ww-border);
}

.dashboard-shell.dark .cycle-status-banner {
    background: var(--ww-primary-soft);
    color: var(--ww-primary);
}

.dashboard-shell.dark .utility-badge {
    /* badge colors */
    background: var(--ww-surface);
    border-color: var(--ww-border);
    color: var(--ww-text);
}

.dashboard-shell.dark .chart-bar.billed {
    background: linear-gradient(180deg, rgba(124,108,255,0.3) 0%, rgba(124,108,255,0.15) 100%);
}

.dashboard-shell.dark .chart-bar.collected {
    background: linear-gradient(180deg, #7c6cff 0%, #5b4dd4 100%);
}

.dashboard-shell.dark .activity-filter {
    background: var(--ww-surface-2);
    color: var(--ww-text-soft);
}

.dashboard-shell.dark .activity-filter.active {
    background: var(--ww-primary-soft);
    color: var(--ww-primary);
}

.dashboard-shell.dark .quick-action-button {
    border-color: var(--ww-border) !important;
    background: var(--ww-surface) !important;
    color: var(--ww-text) !important;
}

.dashboard-shell.dark ::deep .gauge-track {
    stroke: var(--ww-border);
}

.dashboard-shell.dark ::deep .gauge-value {
    stroke: var(--ww-primary);
}

.dashboard-shell.dark .activity-item {
    border-bottom-color: var(--ww-border);
}

.dashboard-shell.dark .stat-icon,
.dashboard-shell.dark .focus-icon {
    background: var(--ww-surface-2);
}

.dashboard-shell.dark .legend-swatch.billed {
    background: rgba(124,108,255,0.4);
}

.dashboard-shell.dark .legend-swatch.collected {
    background: var(--ww-primary);
}

.dashboard-shell.dark .pipeline-node {
    background: var(--ww-surface);
    border-color: var(--ww-border);
    color: var(--ww-text-soft);
}

.dashboard-shell.dark .pipeline-step.complete .pipeline-node {
    background: var(--ww-success);
    border-color: var(--ww-success);
    color: #fff;
}

.dashboard-shell.dark .pipeline-step.active .pipeline-node {
    background: var(--ww-primary);
    border-color: var(--ww-primary);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(124,108,255,0.2);
}

.dashboard-shell.dark .pipeline-step.complete .pipeline-label {
    color: var(--ww-text) !important;
}

.dashboard-shell.dark .pipeline-step.active .pipeline-label {
    color: var(--ww-primary) !important;
}

.dashboard-shell.dark .pipeline-step:not(:last-child)::after {
    background: var(--ww-border);
}

/* ── Force text colors inside dashboard ── */
.dashboard-shell .stat-value,
.dashboard-shell .focus-value,
.dashboard-shell .overdue-amount,
.dashboard-shell .overdue-name,
.dashboard-shell .activity-text,
.dashboard-shell .health-name,
.dashboard-shell .health-status,
.dashboard-shell .summary-primary {
    color: var(--ww-text) !important;
}

.dashboard-shell .stat-label,
.dashboard-shell .stat-support,
.dashboard-shell .focus-support,
.dashboard-shell .focus-secondary,
.dashboard-shell .section-subtitle,
.dashboard-shell .section-tertiary,
.dashboard-shell .summary-secondary,
.dashboard-shell .overdue-meta,
.dashboard-shell .activity-time,
.dashboard-shell .gauge-label,
.dashboard-shell .metric-caption,
.dashboard-shell .progress-subtitle,
.dashboard-shell .chart-label,
.dashboard-shell .pipeline-label {
    color: var(--ww-text-soft) !important;
}

.dashboard-shell .section-title,
.dashboard-shell .focus-title,
.dashboard-shell .dashboard-greeting,
.dashboard-shell .progress-title {
    color: var(--ww-text) !important;
}

.dashboard-shell .section-link {
    color: var(--ww-primary) !important;
}

.dashboard-shell .summary-positive {
    color: var(--ww-success) !important;
}

.dashboard-shell .trend-positive {
    color: var(--ww-success) !important;
    background: var(--ww-success-soft) !important;
}

.dashboard-shell .trend-warning {
    color: var(--ww-warning) !important;
    background: var(--ww-warning-soft) !important;
}

.dashboard-shell .cycle-status-banner {
    color: var(--ww-primary) !important;
}

.dashboard-shell .cycle-status-right {
    color: var(--ww-warning) !important;
}

/* ── Stat card value colors ── */
.stat-color-positive {
    color: var(--ww-success) !important;
}

.stat-color-warning {
    color: var(--ww-warning) !important;
}

.stat-color-danger {
    color: var(--ww-danger) !important;
}

.stat-color-info {
    color: var(--ww-primary) !important;
}

/* ── Stat card icon backgrounds + colors ── */
.stat-icon-positive {
    background: var(--ww-success-soft) !important;
    color: var(--ww-success) !important;
}

.stat-icon-warning {
    background: var(--ww-warning-soft) !important;
    color: var(--ww-warning) !important;
}

.stat-icon-danger {
    background: var(--ww-danger-soft) !important;
    color: var(--ww-danger) !important;
}

.stat-icon-info {
    background: var(--ww-primary-soft) !important;
    color: var(--ww-primary) !important;
}
