.web-protection-panel.has-protection {
    grid-template-columns: minmax(210px, auto) minmax(420px, 720px) !important;
    justify-content: space-between !important;
    gap: 14px !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
}

.web-protection-summary {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.web-protection-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.web-protection-status .web-protection-heading {
    margin-bottom: 0;
}

.web-protection-status .web-protection-edit {
    min-width: 0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
}

.web-protection-panel.has-protection > .web-protection-content {
    width: 100%;
    justify-self: end;
}

.web-protection-metrics {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
}

.web-protection-metric {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 1px !important;
    min-width: 0 !important;
    padding: 5px 9px !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    white-space: nowrap !important;
}

.web-protection-metric small {
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
}

.web-protection-metric b {
    overflow: hidden !important;
    max-width: 100% !important;
    color: #172033 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
}

.web-protection-panel.protected .web-protection-metric-emphasis {
    border-color: #a7f3d0 !important;
    background: #ecfdf5 !important;
}

.web-protection-panel.protected .web-protection-metric-emphasis b {
    color: #047857 !important;
}

.web-protection-panel.at-risk .web-protection-metric-emphasis {
    border-color: #fed7aa !important;
    background: #fff7ed !important;
}

.web-protection-panel.at-risk .web-protection-metric-emphasis b {
    color: #b45309 !important;
}

html.dark .web-protection-metric {
    border-color: #475569 !important;
    background: rgba(15, 23, 42, 0.78) !important;
}

html.dark .web-protection-metric b {
    color: #f8fafc !important;
}

html.dark .web-protection-panel.protected .web-protection-metric-emphasis {
    border-color: #166534 !important;
    background: rgba(6, 78, 59, 0.42) !important;
}

html.dark .web-protection-panel.protected .web-protection-metric-emphasis b {
    color: #6ee7b7 !important;
}

html.dark .web-protection-panel.at-risk .web-protection-metric-emphasis {
    border-color: #92400e !important;
    background: rgba(120, 53, 15, 0.38) !important;
}

html.dark .web-protection-panel.at-risk .web-protection-metric-emphasis b {
    color: #fdba74 !important;
}

@media (max-width: 640px) {
    .web-protection-panel.has-protection {
        grid-template-columns: 1fr !important;
    }

    .web-protection-panel.has-protection > .web-protection-content {
        justify-self: stretch;
    }

    .web-protection-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 641px) and (max-width: 1050px) {
    .web-protection-panel.has-protection {
        grid-template-columns: minmax(190px, auto) minmax(360px, 1fr) !important;
    }
}
