/* =========================================================
   SIGNED-IN ACCOUNT UI
   ========================================================= */

.app-account-wrap {
    position: relative;
    flex: 0 0 auto;
}

.app-account-trigger {
    min-height: 44px;
    max-width: 280px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--line, #ded8cd);
    border-radius: 999px;
    background: #fff;
    color: #313632;
    text-align: left;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.app-account-trigger:hover,
.app-account-trigger.active {
    border-color: #c9c0b5;
    background: #fbf9f5;
    box-shadow: 0 5px 16px rgba(29,35,31,.05);
}

.app-account-avatar,
.app-account-menu-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--navy, #1f6b57);
    color: #fff;
    font-weight: 800;
}

.app-account-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.app-account-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-account-copy small {
    margin-bottom: 1px;
    color: #858a85;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.app-account-copy strong {
    max-width: 175px;
    overflow: hidden;
    color: #343936;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-account-chevron {
    margin-left: 1px;
    color: #7b817c;
    font-size: 11px;
    transition: transform .16s ease;
}

.app-account-trigger.active .app-account-chevron {
    transform: rotate(180deg);
}

.app-account-trigger.active {
    position: relative;
    z-index: 1080;
}

.app-account-menu-dismiss {
    position: fixed;
    z-index: 1060;
    inset: 0;
}

.app-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1070;
    width: 290px;
    padding: 8px;
    border: 1px solid #ddd6cc;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(24,31,27,.14);
}

.app-account-menu-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
}

.app-account-menu-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
}

.app-account-menu-head > div {
    min-width: 0;
}

.app-account-menu-head small,
.app-account-menu-head strong {
    display: block;
}

.app-account-menu-head small {
    color: #898e89;
    font-size: 10px;
    font-weight: 700;
}

.app-account-menu-head strong {
    overflow: hidden;
    color: #303532;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-account-menu-divider {
    height: 1px;
    margin: 5px 4px;
    background: #ece7df;
}

.app-account-menu-item {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #414642;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.app-account-menu-item i {
    width: 18px;
    color: #737a74;
    font-size: 15px;
    text-align: center;
}

.app-account-menu-item:hover {
    background: #f5f1ea;
    color: var(--navy, #1f6b57);
}

.app-account-logout {
    color: #8c4944;
}

.app-account-logout i {
    color: #a05a54;
}

.app-account-logout:hover {
    background: #fbefed;
    color: #7f403b;
}

.app-signin-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 800;
}

.public-signed-in-user {
    max-width: 220px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .65rem;
    border: 1px solid #e3e6e8;
    border-radius: 999px;
    background: #f8f9fa;
    color: #596168;
    font-size: .78rem;
    font-weight: 700;
}

.public-signed-in-user span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media(max-width:900px) {
    .app-account-trigger {
        max-width: 240px;
    }

    .app-account-copy strong {
        max-width: 135px;
    }
}

@media(max-width:560px) {
    .app-top-actions {
        flex-wrap: wrap;
    }

    .app-account-wrap {
        margin-left: auto;
    }

    .app-account-copy {
        display: none;
    }

    .app-account-trigger {
        width: 44px;
        min-width: 44px;
        padding: 5px;
        justify-content: center;
    }

    .app-account-chevron {
        display: none;
    }

    .app-account-menu {
        width: min(290px, calc(100vw - 28px));
    }
}
