.official-brand-logo {
    display: inline-block;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 8px;
    vertical-align: middle;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.preview-brand .official-brand-logo {
    width: 26px;
    height: 26px;
}

.legal-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Account navigation and workspace identity */

.header-actions,
.mobile-menu-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-login-link {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 8px;
}

.account-login-link:hover {
    background: #242424;
    color: #ffffff;
}

.workspace-account {
    position: relative;
    flex-shrink: 0;
    padding: 12px;
    border-top: 1px solid #292929;
    background: #101010;
}

.account-dropdown {
    position: relative;
    color: #f5f5f5;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    border-radius: 10px;
    padding: 7px;
}

.account-trigger::-webkit-details-marker {
    display: none;
}

.account-trigger:hover {
    background: #242424;
}

.account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #373737;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.account-copy strong,
.account-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-copy strong {
    font-size: 13px;
}

.account-copy small {
    color: #a3a3a3;
    font-size: 11px;
}

.account-chevron {
    color: #a3a3a3;
    font-size: 20px;
}

.account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 250px;
    max-width: calc(100vw - 32px);
    z-index: 1000;
    padding: 7px;
    border: 1px solid #353535;
    border-radius: 13px;
    background: #1b1b1b;
    box-shadow: 0 12px 40px #00000066;
}

.workspace-account .account-menu {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
    right: auto;
}

.account-menu-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid #353535;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.account-menu-profile strong {
    font-size: 14px;
}

.account-menu-profile small {
    font-size: 11px;
    color: #a3a3a3;
}

.account-menu a,
.account-signout {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 7px;
    padding: 11px 12px;
    color: #e5e5e5;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.account-menu a:hover,
.account-signout:hover {
    background: #303030;
}

.account-signout {
    margin-top: 5px;
    border-top: 1px solid #353535;
}


.navbar-account-name {
    color: #f5f5f5;
    font-size: 13px;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-account-arrow {
    color: #a3a3a3;
    font-size: 16px;
}

.header-actions .account-trigger {
    border: 1px solid #303030;
    padding: 6px 10px;
    border-radius: 10px;
}


.navbar-account-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #a3a3a3;
    border-bottom: 1.5px solid #a3a3a3;
    transform: rotate(45deg);
    margin: 0 4px 4px 3px;
    transition: transform .2s ease;
}

.account-dropdown[open] .navbar-account-arrow {
    transform: rotate(225deg);
    margin-bottom: 0;
}


.navbar-account-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #a3a3a3;
    border-bottom: 1.5px solid #a3a3a3;
    transform: rotate(45deg);
    margin: 0 4px 4px 3px;
    transition: transform .2s ease;
}

.account-dropdown[open] .navbar-account-arrow {
    transform: rotate(225deg);
    margin-bottom: 0;
}
