.auth-slot {
    display: flex;
    align-items: center;
}

.auth-shell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(15, 23, 42, 0.64);
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.52rem 0.78rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.auth-google-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.65);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}

.auth-google-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-google-icon {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-weight: 800;
    font-size: 0.72rem;
}

.auth-user {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.28);
    background: rgba(15, 23, 42, 0.74);
    padding: 0.34rem 0.42rem 0.34rem 0.34rem;
    max-width: min(40vw, 280px);
}

.auth-avatar {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(56, 189, 248, 0.4);
    flex-shrink: 0;
}

.auth-avatar-fallback {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(2, 132, 199, 0.35));
    color: #cffafe;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-meta {
    min-width: 0;
}

.auth-name {
    color: #e2e8f0;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-email {
    color: #94a3b8;
    font-size: 0.64rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-logout-btn {
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.2);
    color: #fecaca;
    padding: 0.34rem 0.6rem;
    font-size: 0.66rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.auth-logout-btn:hover {
    border-color: rgba(248, 113, 113, 0.7);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.25);
}

.auth-status {
    color: #fda4af;
    font-size: 0.66rem;
    max-width: 220px;
    line-height: 1.2;
}

.auth-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(6px);
}

.auth-consent-backdrop.open {
    display: flex;
}

.auth-consent-card {
    width: min(92vw, 430px);
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    padding: 1rem;
}

.auth-consent-title {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.38rem;
}

.auth-consent-text {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
}

.auth-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.56rem;
    margin-top: 1rem;
}

.auth-consent-no,
.auth-consent-yes {
    border-radius: 999px;
    padding: 0.45rem 0.88rem;
    font-size: 0.74rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.auth-consent-no {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
}

.auth-consent-no:hover {
    border-color: rgba(148, 163, 184, 0.7);
}

.auth-consent-yes {
    border: 1px solid rgba(34, 211, 238, 0.55);
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.85), rgba(3, 105, 161, 0.85));
    color: #ecfeff;
}

.auth-consent-yes:hover {
    border-color: rgba(34, 211, 238, 0.9);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
}

.light .auth-google-btn,
.light .auth-user {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(14, 116, 255, 0.24);
}

.light .auth-name {
    color: #0f172a;
}

.light .auth-email {
    color: #334155;
}

.light .auth-google-btn {
    color: #0f172a;
}

.light .auth-consent-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 255, 0.95));
    border-color: rgba(14, 116, 255, 0.25);
}

.light .auth-consent-title {
    color: #0f172a;
}

.light .auth-consent-text {
    color: #334155;
}

.light .auth-consent-no {
    background: rgba(241, 245, 249, 0.9);
    color: #334155;
}

@media (max-width: 768px) {
    .auth-name,
    .auth-email {
        display: none;
    }

    .auth-logout-btn {
        padding: 0.34rem 0.5rem;
    }

    .auth-google-label {
        display: none;
    }

    .auth-google-btn {
        min-width: 2.2rem;
        justify-content: center;
        padding: 0.52rem 0.6rem;
    }
}
