.plat-dash {
    width: 100%;
    padding-bottom: 32px;
}

.plat-dash__kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.plat-dash__kpi {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 132px;
    padding: 20px 18px;
    border-radius: 24px;
    border: 1px solid rgba(0, 162, 158, 0.1);
    background: linear-gradient(0deg, rgba(0, 162, 158, 0.04), rgba(0, 162, 158, 0.04)), var(--ui-bg, #fff);
}

.plat-dash__kpi--pink {
    border-color: rgba(236, 72, 153, 0.1);
    background: linear-gradient(0deg, rgba(236, 72, 153, 0.04), rgba(236, 72, 153, 0.04)), var(--ui-bg, #fff);
}

.plat-dash__kpi--blue {
    border-color: rgba(59, 130, 246, 0.1);
    background: linear-gradient(0deg, rgba(59, 130, 246, 0.04), rgba(59, 130, 246, 0.04)), var(--ui-bg, #fff);
}

.plat-dash__kpi--gold {
    border-color: rgba(255, 162, 54, 0.1);
    background: linear-gradient(0deg, rgba(255, 162, 54, 0.05), rgba(255, 162, 54, 0.05)), var(--ui-bg, #fff);
}

.plat-dash__kpi--violet {
    border-color: rgba(139, 92, 246, 0.12);
    background: linear-gradient(0deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.05)), var(--ui-bg, #fff);
}

.plat-dash__kpi-glow {
    position: absolute;
    width: 66px;
    height: 108px;
    left: -10px;
    top: 12px;
    pointer-events: none;
    z-index: 0;
}

.plat-dash__kpi-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(0, 162, 158, 0.1);
}

.plat-dash__kpi--pink .plat-dash__kpi-icon { background: rgba(236, 72, 153, 0.1); }
.plat-dash__kpi--blue .plat-dash__kpi-icon { background: rgba(59, 130, 246, 0.1); }
.plat-dash__kpi--gold .plat-dash__kpi-icon { background: rgba(255, 162, 54, 0.12); }
.plat-dash__kpi--violet .plat-dash__kpi-icon { background: rgba(139, 92, 246, 0.12); }

.plat-dash__kpi-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0.5px solid #d0fffe;
    background: linear-gradient(181deg, #d0fffe -2.36%, #00a29e 110.86%);
    color: #fff;
}

.plat-dash__kpi--pink .plat-dash__kpi-icon-inner {
    border-color: #ffc4e1;
    background: linear-gradient(181deg, rgba(236, 72, 153, 0.18) -2.36%, #ec4899 110.86%);
}

.plat-dash__kpi--blue .plat-dash__kpi-icon-inner {
    border-color: #ddeaff;
    background: linear-gradient(181deg, #b3d0ff -2.36%, #3b82f6 110.86%);
}

.plat-dash__kpi--gold .plat-dash__kpi-icon-inner {
    border-color: #ffe0b8;
    background: linear-gradient(181deg, #ffe0b8 -2.36%, #ffa236 110.86%);
}

.plat-dash__kpi--violet .plat-dash__kpi-icon-inner {
    border-color: #ddd6fe;
    background: linear-gradient(181deg, #ddd6fe -2.36%, #8b5cf6 110.86%);
}

.plat-dash__kpi-body {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plat-dash__kpi-delta {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    width: fit-content;
}

.plat-dash__kpi-delta--down {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
}

.plat-dash__kpi-delta--flat {
    background: rgba(113, 113, 122, 0.1);
    color: #71717a;
}

.plat-dash__spark {
    width: 72px;
    height: 28px;
    flex-shrink: 0;
}

.plat-dash__columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.plat-dash__columns--triple {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plat-dash__panel {
    border-radius: 24px;
    padding: 20px;
    min-height: 280px;
}

.plat-dash__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.plat-dash__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.plat-dash__legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--ui-border-accented, #e4e4e7);
    border-radius: 12px;
    background: #fff;
}

.plat-dash__legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.plat-dash__donut-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.plat-dash__donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    flex: 1;
}

.plat-dash__bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plat-dash__bar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plat-dash__bar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.plat-dash__bar-progress {
    height: 8px;
    border-radius: 999px;
}

.plat-dash__feed {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plat-dash__feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
}

.plat-dash__feed-item:hover {
    background: rgba(0, 162, 158, 0.04);
}

.plat-dash__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 24px;
    text-align: center;
}

.plat-dash__subtitle {
    margin-top: -8px;
    margin-bottom: 8px;
}

@media (max-width: 1280px) {
    .plat-dash__kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plat-dash__columns,
    .plat-dash__columns--triple {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .plat-dash__kpi-grid {
        grid-template-columns: 1fr;
    }
}
