.explain-box {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--red);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.explain-box strong {
    display: block;
    margin-bottom: 5px;
}

.explain-box p,
.panel-subtitle {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

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

.card,
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.panel {
    padding: 22px;
}

.panel h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.kpi {
    padding: 18px;
    min-height: 146px;
}

.kpi .label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.kpi .value {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 7px;
}

.kpi .hint {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
    margin-bottom: 8px;
}

.kpi .note {
    font-size: 12px;
    color: var(--green);
    font-weight: 700;
}

.note.warning { color: var(--yellow); }
.note.danger { color: var(--red); }

.mini-line,
.progress {
    background: #e5e7eb;
    overflow: hidden;
}

.mini-line {
    height: 4px;
    border-radius: 20px;
    margin-top: 12px;
}

.progress {
    height: 10px;
    border-radius: 99px;
}

.mini-line span,
.progress span {
    display: block;
    height: 100%;
    background: var(--red);
    border-radius: inherit;
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 14px;
}

.badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge.good { background: #dcfce7; color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.bad { background: #ffe4e6; color: #9f1239; }
.badge.info { background: #dbeafe; color: #1e40af; }

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 8px;
    background: var(--green);
}

.dot.yellow { background: var(--yellow); }
.dot.red { background: var(--red); }
.dot.blue { background: var(--blue); }

@media (max-width: 1500px) {
    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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