/*
 * The block at the top of the user menu: who is signed in, and as what.
 *
 * Plain CSS, like the rest of this project's panel styling: there is no
 * compiled Tailwind here, so utility classes written in a Blade view do
 * not exist at runtime. Registered through FilamentAsset in
 * AppServiceProvider.
 *
 * Which role someone holds is worth showing rather than leaving them to
 * infer it from what the menu happens to contain - a picker sees one page
 * and an admin seventeen, and neither is told why.
 */

.um-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.dark .um-profile {
    border-bottom-color: var(--gray-700);
}

.um-profile-avatar {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
}

.um-profile-body {
    min-width: 0;
}

.um-profile-name {
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-950);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .um-profile-name {
    color: #fff;
}

.um-profile-email {
    overflow: hidden;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .um-profile-email {
    color: var(--gray-400);
}

.um-profile-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.um-profile-role {
    padding: 0.0625rem 0.4rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-600);
    background: color-mix(in oklab, var(--primary-500) 14%, transparent);
    border-radius: 9999px;
}

.dark .um-profile-role {
    color: var(--primary-400, var(--primary-500));
}
