[data-profile-panel][hidden],
[data-profile-save][hidden] {
    display: none !important;
}

[data-profile-tabs] {
    max-width: 100%;
    overflow-x: auto;
}

[data-profile-tabs] .settings-tab {
    flex-shrink: 0;
    text-decoration: none;
}

.profile-notifications-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-notification-form {
    display: grid;
    min-width: 0;
}

.profile-notifications-group {
    display: grid;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 18px;
    gap: 10px;
    border: 1px solid var(--ui-color-border, #d8e3f0);
    border-radius: var(--ui-radius-lg, 16px);
    background: var(--ui-color-surface-subtle, #f8fbff);
}

.profile-notifications-group legend {
    padding: 0 8px;
    color: var(--ui-color-text, #031a38);
    font-size: 16px;
    font-weight: 600;
}

.profile-notifications-group p,
.profile-notifications .profile-card-copy p {
    overflow-wrap: anywhere;
}

.profile-notifications-group > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.profile-notifications-option {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(216, 227, 240, 0.9);
    border-radius: var(--ui-radius-sm, 8px);
    background: var(--ui-color-surface, #fff);
    color: var(--ui-color-text, #031a38);
    cursor: pointer;
}

.profile-notifications-option > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-notifications-group .profile-card-footer {
    margin-top: auto;
}

.profile-delivery-section {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(205, 219, 236, 0.86);
}

.profile-delivery-section h3 {
    margin: 0;
    color: #031a38;
    font-size: 18px;
}

.profile-delivery-list {
    display: grid;
    gap: 8px;
}

.profile-delivery-item {
    margin: 0;
    padding: 11px 12px;
    border: 1px solid rgba(216, 227, 240, 0.9);
    border-radius: var(--ui-radius-sm, 8px);
    background: #f8fbff;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .profile-notifications-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .profile-notifications-group {
        padding: 14px;
    }
}
