.preview-bar {
    display: flex;
    align-items: stretch;
}

.preview-bar__ticker {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: #d9e9f7;
}

.preview-bar__hit-area {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.preview-bar__hit-area:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .72);
    outline-offset: -3px;
}

.preview-bar__account {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 5px 14px;
    border-left: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.preview-bar__account:hover,
.preview-bar__account:focus-visible {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    outline: 2px solid rgba(255, 255, 255, .72);
    outline-offset: -3px;
}

.preview-bar__account-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #8b9bb0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .1);
}

.preview-bar__account.is-authenticated .preview-bar__account-dot {
    background: #62d39a;
}

.preview-bar__account-copy {
    display: grid;
    gap: 0;
    line-height: 1.05;
}

.preview-bar__account-copy strong {
    color: #fff;
    font-size: .78rem;
    font-weight: 760;
}

.preview-bar__account-copy small {
    color: #bcd0e3;
    font-size: .66rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-login-toast {
    position: fixed;
    top: calc(var(--header-height) + 48px);
    right: 18px;
    z-index: 220;
    display: grid;
    gap: 2px;
    width: min(360px, calc(100vw - 36px));
    padding: 14px 17px;
    border: 1px solid rgba(20, 115, 75, .22);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
}

.auth-login-toast strong {
    color: var(--success);
    font-size: .95rem;
}

.auth-login-toast span {
    color: var(--muted);
    font-size: .82rem;
}

@media (max-width: 700px) {
    .preview-bar__account {
        padding-inline: 10px;
    }

    .preview-bar__account-copy strong {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .preview-bar__account-copy small {
        display: none;
    }

    .auth-login-toast {
        top: calc(var(--header-height) + 42px);
        right: 14px;
    }
}
