.navbar-guest-google .nav-guest-access {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.nav-actions-guest .btn { min-height: 44px; font-size: 14px; line-height: 20px; }

.nav-guest-access .google-auth-form {
    position: relative;
    margin: 0;
}

.nav-guest-access .google-auth-button,
.nav-guest-access .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    white-space: nowrap;
    font-size: 14px;
    line-height: 20px;
    border-radius: 12px;
}

.nav-guest-access .nav-guest-free { white-space: pre; }
.nav-guest-access .nav-guest-label-short { display: none; }
.nav-guest-access .nav-guest-label-mobile { display: none; }

.mobile-auth-sheet:not([open]) { display: none; }

.nav-guest-access [data-google-auth-error] {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    max-width: calc(100vw - 24px);
    padding: 12px;
    border: 1px solid #dfb8be;
    border-radius: 12px;
    background: #fff;
    color: #842029 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    overflow-wrap: anywhere;
}

.nav-guest-access .google-auth-button:focus-visible,
.nav-guest-access .btn:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 1px var(--cc-berry);
}

@media (forced-colors: active) {
    .nav-guest-access .google-auth-button:focus-visible,
    .nav-guest-access .btn:focus-visible { outline-color: Highlight !important; }
}

@media (min-width: 1200px) {
    .navbar-guest-google .navbar-brand { margin-right: 1.5rem; }
    .navbar-guest-google .nav-links { gap: 0.75rem; }
    .navbar-guest-google .navbar-collapse { margin-right: 1rem; }
}

@media (max-width: 1199.98px) {
    .navbar-guest-google > .container { flex-wrap: wrap; row-gap: 10px; }
    .navbar-guest-google .nav-guest-access {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        padding-bottom: 4px;
    }
    .navbar-guest-google .navbar-collapse { order: 3; }
    .navbar-guest-google .nav-links {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 0 !important;
        padding: 8px 0;
        gap: 4px;
    }
    .navbar-guest-google .nav-link { display: flex; align-items: center; min-height: 44px; }
    .nav-guest-access [data-google-auth-error] { left: auto; right: 0; }
}

@media (max-width: 575.98px) {
    .navbar-guest-google .nav-guest-access { gap: 8px; }
    .nav-guest-access .google-auth-button { width: 44px; padding: 11px; }
    .nav-guest-access .google-auth-button span,
    .nav-guest-access .nav-guest-free { display: none; }
    .nav-guest-access .nav-guest-login { flex: 1; }
    .nav-guest-access .nav-guest-register { flex: 2; }
    .nav-guest-access [data-google-auth-error] { left: 0; right: auto; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .navbar-guest-google .nav-guest-access { order: 1; width: auto; padding-bottom: 0; margin-left: auto; }
    .navbar-guest-google .nav-header-tools { order: 2; margin-left: 16px !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .nav-guest-access .google-auth-button { width: 44px; padding: 11px; }
    .nav-guest-access .google-auth-button span { display: none; }
}

@media (max-width: 359.98px) {
    .nav-guest-access .nav-guest-label-full { display: none; }
    .nav-guest-access .nav-guest-label-short { display: inline; }
    .nav-guest-access .nav-guest-register { flex: 1; }
}

@media (max-width: 767.98px) {
    .navbar-guest-google { padding-block: 10px; }
    .navbar-guest-google > .container { gap: 0 8px; }
    .navbar-guest-google .navbar-brand {
        flex: 1 1 0;
        max-width: none;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        padding: 0;
    }
    .navbar-guest-google .brand-title { font-size: 18px; line-height: 1; white-space: nowrap; }
    .navbar-guest-google .brand-subtitle { display: none; }
    .navbar-guest-google .logo-glass { padding: 0; border: 0; box-shadow: none; background: none; }
    .navbar-guest-google .logo-glass.me-3 { margin-inline-end: 7px !important; }
    .navbar-guest-google .logo-img { width: 36px; height: 36px; }
    .navbar-guest-google .nav-header-tools { order: 2; margin-left: 0 !important; }
    .navbar-guest-google .navbar-toggler { width: 44px; height: 44px; padding: 0; border: 0; }
    .navbar-guest-google .nav-guest-access {
        order: 1;
        width: auto;
        padding: 0;
        gap: 8px;
    }
    .navbar-guest-google .nav-guest-access > .google-auth-form { display: none; }
    .navbar-guest-google .nav-guest-access .btn { flex: none; min-width: 44px; height: 44px; }
    .navbar-guest-google .nav-guest-login { padding: 0 4px; border: 0; background: none; color: #fff; }
    .navbar-guest-google .nav-guest-register { padding: 0 12px; box-shadow: none; }
    .navbar-guest-google .nav-guest-register .nav-guest-label-full,
    .navbar-guest-google .nav-guest-label-short { display: none; }
    .navbar-guest-google .nav-guest-login .nav-guest-label-full,
    .navbar-guest-google .nav-guest-label-mobile { display: inline; }
    .navbar-guest-google .navbar-collapse { width: 100%; }
    .mobile-auth-sheet {
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 24px 24px 0 0;
        background: #fff;
        color: var(--cc-ink, #161a27);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .mobile-auth-sheet::backdrop { background: rgb(18 21 34 / 50%); }
    .mobile-auth-sheet__body { padding: 20px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
    .mobile-auth-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .mobile-auth-sheet h2 { margin: 0; font: 600 24px/1.2 'Gabarito', sans-serif; letter-spacing: -0.02em; }
    .mobile-auth-sheet__close {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f1f2f5;
        color: var(--cc-ink, #161a27);
        font-size: 18px;
    }
    #mobileAuthCopy { margin: 12px 0 20px; color: #5f6470; font-size: 15px; line-height: 1.5; }
    .mobile-auth-sheet .google-auth-form { margin: 0 0 12px; }
    .mobile-auth-sheet [data-google-auth-error] { margin-top: 12px; overflow-wrap: anywhere; }
    .mobile-auth-sheet__email {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 12px 16px;
        border: 1px solid var(--cc-action-green, #22843c);
        border-radius: 12px;
        background: var(--cc-action-green, #22843c);
        color: #fff;
        font-size: 14px;
        line-height: 20px;
        font-weight: 600;
        text-decoration: none;
    }
    .mobile-auth-sheet__email:hover { color: #fff; }
    .mobile-auth-sheet__switch {
        display: block;
        min-height: 48px;
        width: 100%;
        margin: 4px 0 0;
        padding: 8px 0;
        border: 0;
        background: none;
        color: #5f6470;
        font-size: 14px;
        line-height: 20px;
    }
    .mobile-auth-sheet__switch strong { color: #244e32; }
    .mobile-auth-sheet :is(button, a):focus-visible { outline: 3px solid var(--cc-forest, #269846); outline-offset: 3px; }
    html.mobile-auth-open { overflow: hidden; }
    .mobile-auth-open body { position: fixed; top: var(--mobile-auth-scroll-top, 0px); width: 100%; overflow: hidden; }
}

@media (max-width: 389.98px) {
    .navbar-guest-google .logo-glass { display: none; }
    .navbar-guest-google .brand-title { font-size: 17px; }
}

@media (max-width: 359.98px) {
    .navbar-guest-google > .container {
        gap: 0 4px;
        padding-left: max(10px, var(--cc-safe-left));
        padding-right: max(10px, var(--cc-safe-right));
    }
    .navbar-guest-google .nav-guest-register { padding-inline: 10px; }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
    .mobile-auth-sheet[open]:not(.mobile-auth-sheet--keyboard) { animation: mobile-auth-enter 220ms cubic-bezier(0.32, 0.72, 0, 1); }
    @keyframes mobile-auth-enter { from { transform: translateY(100%); } to { transform: translateY(0); } }
}

@media (forced-colors: active) {
    .mobile-auth-sheet :is(button, a):focus-visible { outline-color: Highlight; }
    .mobile-auth-sheet__email { border-color: ButtonText; }
}
