#securityProfileSelectionDialog.security-profile-selection-dialog .modal-dialog {
    max-width: min(760px, calc(100vw - 32px));
}

#securityProfileSelectionDialog.security-profile-selection-dialog .modal-content {
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #102a2a;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

#securityProfileSelectionDialog.security-profile-selection-dialog .modal-header,
#securityProfileSelectionDialog.security-profile-selection-dialog .modal-footer {
    border-color: rgba(15, 118, 110, 0.18);
    background: rgba(248, 252, 251, 0.86);
}

#securityProfileSelectionDialog.security-profile-selection-dialog .modal-title {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #115e59;
}

#securityProfileSelectionDialog.security-profile-selection-dialog .modal-body {
    padding: 16px;
}

#securityProfileSelectionDialog.security-profile-selection-dialog .modal-footer {
    gap: 10px;
}

#securityProfileSelectionDialog.security-profile-selection-dialog .selectButton {
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
}

#securityProfileSelectionDialog.security-profile-selection-dialog .selectButton:hover:not(:disabled) {
    background: #115e59;
}

#securityProfileSelectionDialog.security-profile-selection-dialog .selectButton:disabled,
#securityProfileSelectionDialog.security-profile-selection-dialog .selectButton.disabled {
    border-color: rgba(82, 101, 101, 0.22);
    background: rgba(82, 101, 101, 0.12);
    color: rgba(82, 101, 101, 0.72);
}

#securityProfileSelectionDialog.security-profile-selection-dialog .assetButtonGroup {
    display: none !important;
}

.security-profile-selection-shell {
    display: grid;
    gap: 12px;
}

:where(.security-profile-selection-shell) .security-profile-selection-status {
    padding: 12px 14px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    background: rgba(248, 252, 251, 0.8);
    color: #526565;
}

:where(.security-profile-selection-shell) .security-profile-selection-status.is-error {
    border-color: rgba(185, 28, 28, 0.28);
    background: rgba(254, 242, 242, 0.9);
    color: #991b1b;
}

.security-profile-selection-list {
    display: grid;
    gap: 8px;
    max-height: min(56vh, 520px);
    overflow: auto;
    padding: 2px;
}

.security-profile-selection-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 12px;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #102a2a;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.security-profile-selection-option:hover {
    border-color: rgba(13, 148, 136, 0.42);
    background: rgba(240, 253, 250, 0.9);
}

.security-profile-selection-option.is-selected {
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.security-profile-selection-radio {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 2px solid rgba(82, 101, 101, 0.5);
    border-radius: 999px;
    background: #ffffff;
}

.security-profile-selection-option.is-selected .security-profile-selection-radio {
    border: 5px solid #0f766e;
}

:where(.security-profile-selection-option) .security-profile-selection-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.security-profile-selection-name {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(.security-profile-selection-option) .security-profile-selection-summary {
    overflow: hidden;
    color: #526565;
    font-size: 0.9rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (prefers-reduced-transparency: reduce) {
    #securityProfileSelectionDialog.security-profile-selection-dialog .modal-content {
        background: #ffffff;
        backdrop-filter: none;
    }
}
