/* Fibonacci active-zone card: readable in dark and light dashboard themes. */
.zone-alert-card {
    display: grid;
    gap: 14px;
}

.zone-alert-head,
.zone-alert-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.zone-alert-state {
    font-size: 1.05rem;
    color: #f8fafc;
}

.zone-alert-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.zone-alert-metric {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.zone-alert-metric span {
    display: block;
    color: #52657a;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25;
}

.zone-alert-metric strong {
    display: block;
    margin-top: 5px;
    color: #10243e !important;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-shadow: none !important;
    opacity: 1 !important;
}

.zone-alert-card[data-side="SUPPORT"] {
    border-color: #6ee7b7;
}

.zone-alert-card[data-side="SUPPORT"] .zone-alert-state,
.zone-alert-card[data-side="SUPPORT"] #zoneAlertStrength,
.zone-alert-card[data-side="SUPPORT"] #zoneAlertReady {
    color: #047857 !important;
}

.zone-alert-card[data-side="RESISTANCE"] {
    border-color: #fda4af;
}

.zone-alert-card[data-side="RESISTANCE"] .zone-alert-state,
.zone-alert-card[data-side="RESISTANCE"] #zoneAlertStrength,
.zone-alert-card[data-side="RESISTANCE"] #zoneAlertReady {
    color: #be123c !important;
}

#zoneAlertRank,
#zoneAlertScore,
#zoneAlertRange,
#zoneAlertDistance,
#zoneAlertStrength,
#zoneAlertReady {
    color: #10243e !important;
    -webkit-text-fill-color: currentColor;
}

#zoneAlertStrength {
    text-transform: capitalize;
    white-space: normal;
}

@media (max-width: 900px) {
    .zone-alert-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .zone-alert-head,
    .zone-alert-header {
        display: block;
    }

    .zone-alert-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zone-alert-metric strong {
        font-size: 0.86rem;
    }
}
