/*
 * ===== PROFILE BOX (mobile-first: centered column) =====
 * Design decision: mobile uses a centered vertical profile layout to prioritize identity details
 * and leave clear room for bottom action buttons.
 */
.profile-box {
    display: none;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    contain: layout style;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 120px;
    background: lightgray 50% / cover no-repeat;
    display: none;
}

.profile-details {
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: var(--spacing-md, 12px) var(--spacing-lg, 16px);
}

.profile-name {
    color: var(--color-text, #000);
    font-size: var(--font-size-base, 16px);
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    align-self: center;
}

.profile-id {
    color: var(--color-text-muted, rgba(0, 0, 0, 0.6));
    font-size: var(--font-size-xs, 12px);
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    align-self: center;
}

/* Primary mobile auth action anchored above bottom navigation safe zone. */
.signOut {
    position: absolute;
    bottom: 74px;
    width: calc(100vw - 32px);
    display: none;
    padding: 7px 16px 8px 16px;
    margin: var(--spacing-sm, 8px);
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-md, 8px);
    background: var(--color-hover, rgba(0, 0, 0, 0.10));
    color: var(--color-text, #000);
    text-align: center;
    font-size: var(--font-size-sm, 14px);
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    min-height: var(--touch-target, 44px);
    touch-action: manipulation;
}

.tab-logout {
    padding: 7px 16px 8px 16px;
    margin: var(--spacing-sm, 8px);
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-md, 8px);
    background: var(--color-hover, rgba(0, 0, 0, 0.10));
    color: var(--color-text, #000);
    text-align: center;
    font-size: var(--font-size-sm, 14px);
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    width: 150px;
    display: none;
    height: fit-content;
    align-self: center;
    min-height: var(--touch-target, 44px);
    touch-action: manipulation;
}

/* ===== TABLET (min-width: 768px) ===== */
@media (min-width: 768px) {
    .profile-box {
        justify-content: start;
        flex-direction: row;
    }

    .profile-picture {
        width: 72px;
        height: 72px;
        border-radius: 72px;
    }

    .profile-details {
        align-items: flex-start;
    }

    .profile-name {
        font-size: var(--font-size-lg, 20px);
        align-self: stretch;
    }

    .profile-id {
        align-self: stretch;
    }

    .signOut {
        display: none;
    }
}

/* ===== TABLET ONLY (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .tab-logout {
        display: flex;
    }
}
