/* Signed-in user chip (homepage + Smart Lens header) */
.mc-header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mc-header-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    border: 2px solid rgba(0, 200, 5, 0.55);
    background: rgba(0, 200, 5, 0.18);
    color: #ffffff;
    text-decoration: none;
    max-width: min(220px, 42vw);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mc-header-user-btn:hover {
    border-color: #00c805;
    background: rgba(0, 200, 5, 0.28);
    box-shadow: 0 4px 16px rgba(0, 200, 5, 0.25);
    color: #ffffff;
}

.mc-header-user-avatar {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d506, #00b005);
    color: #000000;
    font-size: 0.85rem;
    font-weight: 800;
}

.mc-header-user-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-header-sign-out {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #d1d5db;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mc-header-sign-out:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.mc-header-user-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.mc-header-user-mobile-label {
    color: #b8bcc4;
    font-size: 0.95rem;
}

.mc-header-user-mobile-label strong {
    color: #00c805;
}

.mc-header-sign-out-mobile {
    border: 1px solid #333 !important;
    background: transparent !important;
    border-radius: 12px !important;
    cursor: pointer;
    font: inherit;
    width: calc(100% - 2rem);
    color: #fff !important;
}

.mc-sl-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0;
}

body.mc-smart-lens-page--authed .mc-smart-lens-header .container {
    max-width: 1200px;
}

@media (max-width: 640px) {
    .mc-header-user-name {
        max-width: 88px;
        font-size: 0.82rem;
    }

    .mc-sl-header-actions {
        gap: 8px;
    }

    .mc-sl-back span.mc-sl-back-text {
        display: none;
    }
}
