.user-profile-popup {
    max-width: 680px;
    margin: 0 auto;
}

.user-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #c8dce8;
    color: #2f5670;
    font-size: 1.15em;
    font-weight: bold;
}

.user-profile-logout {
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.user-profile-alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #b7e2c3;
    background: #d4edda;
    color: #155724;
}

.user-profile-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #e5b9c0;
}

.user-profile-panel {
    margin-bottom: 12px;
    background-color: rgb(220, 235, 240);
    border: 2px outset rgb(210, 235, 245);
}

.user-profile-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    row-gap: 6px;
    column-gap: 10px;
}

.user-profile-key {
    font-weight: bold;
    color: #466477;
}

.user-profile-section-title {
    font-weight: bold;
    color: #31546a;
    margin-bottom: 8px;
}

.user-profile-pref {
    display: block;
    margin: 4px 0;
}

.user-profile-note {
    font-size: 0.86em;
    color: #4b6a7d;
    margin-top: 10px;
}

.user-profile-action {
    cursor: pointer;
    border: 1px solid #8db2c7;
    padding: 5px 10px;
    border-radius: 5px;
    background: #f7fbff;
}

.user-profile-password-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.user-profile-password-row label {
    width: 170px;
    font-weight: bold;
    color: #466477;
    margin: 0;
}

.user-profile-password-row input {
    flex: 1;
    min-width: 0;
    padding: 6px;
    border: 1px solid #9fb5c8;
    border-radius: 4px;
}
