.admin-exclusions {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    --admin-exclusions-divider: var(--p-surface-100);
    --admin-exclusions-field-error: #b91c1c;
}

:host-context(.p-dark) .admin-exclusions {
    --admin-exclusions-divider: var(--p-surface-800);
    --admin-exclusions-field-error: var(--p-red-300);
}

.admin-exclusions__current-ip {
    border-block: 1px solid var(--admin-exclusions-divider);
    padding: 0.85rem 0;
}

.admin-exclusions__current-ip-copy {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.admin-exclusions__eyebrow {
    color: var(--p-text-muted-color);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.admin-exclusions__current-ip code {
    color: var(--p-text-color);
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.admin-exclusions__form {
    padding: 0.1rem 0 0;
}

.admin-exclusions__composer {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(12rem, 0.9fr) minmax(14rem, 1fr);
    align-items: end;
}

.admin-exclusions__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-exclusions__field label {
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-exclusions__field small {
    color: var(--admin-exclusions-field-error);
    font-size: 0.75rem;
}

.admin-exclusions__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.admin-exclusions__empty {
    align-items: center;
    border: 1px dashed var(--p-content-border-color);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    min-height: 8rem;
    padding: 1rem;
    text-align: center;
}

.admin-exclusions__state {
    color: var(--p-text-muted-color);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 720px) {
    .admin-exclusions__composer {
        grid-template-columns: 1fr;
    }

    .admin-exclusions__current-ip-copy,
    .admin-exclusions__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-exclusions__actions :where(p-button, .p-button) {
        width: 100%;
    }
}
