:root {
    --ag-ease-saida: cubic-bezier(.4, 0, 1, 1);
    --ag-ease-entrada: cubic-bezier(.22, 1, .36, 1);
    --ag-ease-mola: cubic-bezier(.34, 1.56, .64, 1);
}

#ag-progresso {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 100001;
    pointer-events: none;
    background: linear-gradient(90deg, var(--ag-primary), var(--ag-primary-hover, var(--ag-primary)));
    box-shadow: 0 0 10px var(--ag-primary), 0 0 4px var(--ag-primary);
    opacity: 0;
    transition: width .35s var(--ag-ease-entrada), opacity .3s ease;
}

#ag-progresso.ag-progresso-ativo {
    opacity: 1;
}

.ag-entrar {
    animation: ag-entrar .5s var(--ag-ease-entrada) both;
    animation-delay: var(--ag-atraso, 0ms);
}

@keyframes ag-entrar {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.ag-atualizado {
    animation: ag-atualizado .32s var(--ag-ease-entrada) both;
}

@keyframes ag-atualizado {
    from {
        opacity: .25;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

html.ag-saindo .ag-admin-content,
html.ag-saindo body.ag-site-body > main,
html.ag-saindo .ag-split-form,
html.ag-saindo .ag-split-brand-content {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s var(--ag-ease-saida), transform .18s var(--ag-ease-saida);
}

.ag-admin-content,
body.ag-site-body > main {
    transition: opacity .2s ease, transform .2s ease;
}

.ag-ripple-host {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.ag-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: currentColor;
    opacity: .22;
    pointer-events: none;
    animation: ag-ripple .6s var(--ag-ease-entrada) forwards;
}

@keyframes ag-ripple {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

.ag-pill-btn,
.ag-module-item,
.ag-sidebar-item,
.ag-item-card-link,
.ag-material-item,
.ag-lesson-list-item,
.ag-tab,
.ag-cp-btn,
.ui-button {
    transition: transform .18s var(--ag-ease-mola), background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ag-pill-btn:active,
.ag-cp-btn:active,
.ui-button:active,
.ag-tab:active {
    transform: scale(.96) !important;
}

.ag-module-item:active,
.ag-lesson-list-item:active,
.ag-material-item:active,
.ag-item-card-link:active,
.ag-sidebar-item:active {
    transform: scale(.985) !important;
}

.ag-module-item.active,
.ag-lesson-list-item.active {
    animation: ag-selecionado .35s var(--ag-ease-mola);
}

@keyframes ag-selecionado {
    0% {
        transform: scale(.97);
    }
    100% {
        transform: none;
    }
}

.ui-dialog:not(.ui-confirm-dialog) {
    animation: ag-dialog-entrar .3s var(--ag-ease-entrada);
}

@keyframes ag-dialog-entrar {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.ui-dialog.ag-dialog-saindo {
    animation: ag-dialog-sair .17s var(--ag-ease-saida) forwards;
}

@keyframes ag-dialog-sair {
    to {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }
}

.ui-widget-overlay,
.ui-dialog-mask {
    animation: ag-fade .25s ease;
}

.ag-overlay-saindo {
    animation: ag-fade-sair .17s ease forwards;
}

@keyframes ag-fade {
    from {
        opacity: 0;
    }
}

@keyframes ag-fade-sair {
    to {
        opacity: 0;
    }
}

.ui-messages > div,
.ui-message,
.ui-growl-item-container {
    animation: ag-mensagem .38s var(--ag-ease-mola);
}

@keyframes ag-mensagem {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

[data-ag-tab-panel]:not([hidden]) {
    animation: ag-entrar .35s var(--ag-ease-entrada);
}

.ui-selectonemenu-panel,
.ui-autocomplete-panel,
.ui-datepicker {
    animation: ag-dialog-entrar .22s var(--ag-ease-entrada);
}

.ag-progress-bar-fill {
    transition: width .9s var(--ag-ease-entrada) !important;
}

html.ag-tema-transicao,
html.ag-tema-transicao *,
html.ag-tema-transicao *::before,
html.ag-tema-transicao *::after {
    transition: background-color .4s ease, border-color .4s ease, color .4s ease, fill .4s ease, box-shadow .4s ease !important;
}

details.ag-cp-modulo > *:not(summary) {
    animation: ag-entrar .35s var(--ag-ease-entrada);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
    }

    .ag-ripple {
        display: none;
    }
}