.analytics-section {
    margin-top: 14px;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: #1b1f27;
    border-bottom: 1px solid #1b1f27;
}

.analytics-stat {
    min-height: 105px;
    padding: 16px;
    background: #111318;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.analytics-stat-label {
    color: #747b86;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .7px;
}

.analytics-stat-value {
    margin-top: 12px;
    color: #f4f5f7;
    font-size: 23px;
    font-weight: 900;
}

.analytics-stat-sub {
    margin-top: 4px;
    color: #626873;
    font-size: 9px;
}

.analytics-stat.good .analytics-stat-value {
    color: #2fd27c;
}

.analytics-stat.warning .analytics-stat-value {
    color: #f3b63f;
}

.analytics-stat.bad .analytics-stat-value {
    color: #ff3138;
}

.analytics-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #1b1f27;
}

.analytics-chart {
    min-width: 0;
    padding: 18px;
    background: #0f1116;
}

.analytics-chart-head {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.analytics-chart-head strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.analytics-chart-head small {
    color: #707783;
    font-size: 9px;
}

.analytics-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.analytics-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777e89;
    font-size: 9px;
}

.analytics-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dot-red {
    background: #ff3138;
}

.dot-green {
    background: #2fd27c;
}

.dot-yellow {
    background: #f3b63f;
}

.analytics-chart-box {
    height: 255px;
    overflow: hidden;
    border: 1px solid #20242d;
    border-radius: 10px;
    background:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        #0a0c10;

    background-size:
        100% 25%,
        12.5% 100%;
}

.analytics-chart-box svg {
    width: 100%;
    height: 100%;
    display: block;
}

.analytics-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #666d77;
    font-size: 10px;
    text-align: center;
}

.analytics-grid-line {
    stroke: #242832;
    stroke-width: 1;
}

.analytics-axis {
    fill: #656b75;
    font-size: 9px;
    font-family: Arial, sans-serif;
}

.analytics-latency-line {
    fill: none;
    stroke: #ff3138;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analytics-network-line {
    fill: none;
    stroke: #2fd27c;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analytics-mail-line {
    fill: none;
    stroke: #f3b63f;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analytics-latency-point {
    fill: #ff3138;
}

.analytics-network-point {
    fill: #2fd27c;
}

.analytics-mail-point {
    fill: #f3b63f;
}

.analytics-trend {
    padding: 16px 18px;
    border-top: 1px solid #1b1f27;
    background: #0d0f13;
}

.analytics-trend strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
}

.analytics-trend p {
    color: #737984;
    font-size: 9px;
    line-height: 1.5;
}

@media (max-width: 1050px) {
    .analytics-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .analytics-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
