/* =============================================================================
   Profile modal (profile-modal.js) + the header avatar's "add a photo" badge
   -----------------------------------------------------------------------------
   Scoped under `.profile-modal` / `.header-actions .user-avatar` (CLAUDE.md
   rule 2). The shell, header, footer and the avatar picker are the shared Teams
   modal styles; only the settings rows and the phone sheet are declared here.
   ============================================================================= */

.profile-modal .profile-modal__name {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
}

.profile-modal .profile-modal__rows {
    margin-top: 18px;
    border-top: 1px solid var(--tm-border, #d8d3c8);
}

.profile-modal .profile-modal__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--tm-border, #d8d3c8);
}

.profile-modal .profile-modal__row-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.profile-modal .profile-modal__row-label i {
    width: 18px;
    text-align: center;
    color: var(--tm-text-3, #8a8987);
}

.profile-modal .profile-modal__link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 55%;
    padding: 4px 8px;
    border: 0;
    border-radius: var(--tm-r, 8px);
    background: transparent;
    color: var(--tm-accent, #2d5f84);
    font-size: 13.5px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
}
.profile-modal .profile-modal__link:hover { background: var(--tm-bg-alt, #f0ede6); }
.profile-modal .profile-modal__detail {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--tm-text-3, #8a8987);
    font-size: 12px;
    font-weight: 400;
}

.profile-modal .profile-modal__lang {
    display: inline-flex;
    border: 1px solid var(--tm-border, #d8d3c8);
    border-radius: 999px;
    overflow: hidden;
}
.profile-modal .profile-modal__lang button {
    padding: 5px 14px;
    border: 0;
    background: transparent;
    color: var(--tm-text-2, #6f6e6d);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.profile-modal .profile-modal__lang button.is-active {
    background: var(--tm-accent, #2d5f84);
    color: #fff;
}

/* A phone gets the whole screen, not a card floating over it. */
@media (max-width: 640px) {
    .teams-modal-overlay.profile-modal { padding: 0; align-items: stretch; }
    .teams-modal-overlay.profile-modal .teams-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* ── Header avatar: no photo yet → show how to add one ───────────────────── */

.header-actions .user-avatar .user-avatar__face { position: relative; }

.header-actions .user-avatar .user-avatar__camera {
    position: absolute;
    right: -4px;
    bottom: -3px;
    padding: 3px;
    border-radius: 50%;
    background: var(--tm-accent, #2d5f84);
    color: #fff;
    font-size: 7px;
    line-height: 1;
    pointer-events: none;
}
.header-actions .user-avatar:hover .user-avatar__camera { color: #fff; }
