.security-profiles-workspace {
    width: 100%;
    min-height: min(720px, calc(100vh - 260px));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.security-profiles-workspace security-profiles-table-panel {
    min-height: min(680px, calc(100vh - 300px));
}

.security-profile-editor-shell,
.security-profile-delete-shell {
    color: var(--security-profile-text, #102a2a);
}

.security-profile-editor-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.security-profile-editor-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.security-profile-logo-panel {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.security-profile-logo-panel ui-field {
    min-width: 0;
}

.security-profile-logo-frame {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: transparent;
    display: grid;
    align-items: start;
    justify-items: center;
    overflow: hidden;
}

.security-profile-logo-preview {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: top center;
    background: transparent;
}

.security-profile-logo-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.security-profile-logo-field {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.security-profile-editor-actions,
.security-profile-delete-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.security-profile-delete-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.security-profile-delete-shell p {
    margin: 0;
    color: var(--security-profile-text-muted, #526565);
}

@media (max-width: 720px) {
    .security-profile-logo-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .security-profile-logo-frame {
        width: 64px;
        height: 64px;
    }
}
