

.fx-app.ao-sup{
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1070;
    display: flex;
    flex-direction: column;
    width: 380px;
    height: min(580px, calc(100vh - 100px));
    overflow: hidden;
    border: 1px solid var(--fx-outline);
    border-radius: 18px;
    background: var(--fx-cartao);
    color: var(--fx-text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    font-family: FxNunitoSans, sans-serif;
}

.fx-app.ao-sup[hidden],
.fx-app.ao-sup-bolha[hidden]{
    display: none;
}

.fx-app.ao-sup.ao-arrastando{
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
    user-select: none;
}

.fx-app .ao-sup-topo{
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 10px 14px;
    background: var(--fx-appbar);
    color: var(--fx-on-appbar);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.fx-app.ao-arrastando .ao-sup-topo{
    cursor: grabbing;
}

.fx-app .ao-av{
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 0.74rem;
    font-weight: 900;
}

.fx-app .ao-av .bi{
    font-size: 1rem;
}

.fx-app .ao-quem{
    flex: 1;
    min-width: 0;
}

.fx-app .ao-quem b{
    display: block;
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-app .ao-quem small{
    display: block;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.85;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-app .ao-sup-topo button{
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
}

.fx-app .ao-sup-topo button:hover{
    background: rgba(255, 255, 255, 0.26);
}

.fx-app .ao-sup-topo button:focus-visible{
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 1px;
}

.fx-app .ao-sup-topo button.ao-sup-txt{
    width: auto;
    padding: 0 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.fx-app .ao-novas{
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--fx-error);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 20px;
    text-align: center;
}

.fx-app .ao-novas[hidden]{
    display: none;
}

.fx-app.ao-sup .ao-msgs{
    flex: 1;
}

.fx-app.ao-sup #ao-sup-lista,
.fx-app.ao-sup #ao-sup-fim{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fx-app .ao-sup-carregando{
    display: grid;
    place-items: center;
    padding: 40px 0;
}

.fx-app .ao-sup-erro{
    background: color-mix(in srgb, var(--fx-error) 12%, var(--fx-cartao));
    color: var(--fx-error);
}

.fx-app.ao-sup .ao-compor[hidden]{
    display: none;
}


.fx-app.ao-sup.ao-min{
    width: 300px;
    height: auto;
}

.fx-app.ao-sup.ao-min .ao-msgs,
.fx-app.ao-sup.ao-min .ao-compor{
    display: none;
}

.fx-app.ao-sup.ao-min .ao-sup-topo{
    cursor: pointer;
}

.fx-app.ao-sup.ao-min #ao-sup-encerrar,
.fx-app.ao-sup.ao-min #ao-sup-nova{
    display: none;
}


.fx-app.ao-sup-bolha{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1070;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--fx-outline);
    border-radius: 50%;
    background: var(--fx-appbar);
    color: var(--fx-on-appbar);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    font-size: 1.4rem;
}

.fx-app.ao-sup-bolha .ao-novas{
    position: absolute;
    top: -2px;
    right: -2px;
}


@media (max-width: 575.98px){
    .fx-app.ao-sup{
        inset: 0;
        width: auto;
        height: auto;
        border: 0;
        border-radius: 0;
    }

    .fx-app .ao-sup-topo{
        padding-top: max(10px, env(safe-area-inset-top));
        cursor: default;
    }

    .fx-app.ao-sup .ao-compor{
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .fx-app.ao-sup .ao-bal{
        max-width: 88%;
    }
}


.fx-app.ao-vivo-tarja{
    position: fixed;
    top: 10px;
    left: 50%;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 8px;
    transform: translateX(-50%);
    border: 1px solid var(--fx-outline);
    border-radius: 999px;
    background: var(--fx-cartao);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-family: FxNunitoSans, sans-serif;
}

.fx-app.ao-vivo-tarja .ao-bt{
    min-height: 32px;
    border-radius: 999px;
}

.ao-vivo-sobre{
    position: fixed;
    inset: 0;
    z-index: 1075;
    pointer-events: none;
}

.ao-vivo-sobre canvas{
    width: 100%;
    height: 100%;
}

.ao-vivo-sobre .ao-cursor{
    position: absolute;
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
    color: #E53935;
    font-size: 1.3rem;
    transition: left 0.08s linear, top 0.08s linear;
}

.ao-vivo-sobre .ao-cursor b{
    margin-top: 14px;
    padding: 1px 6px;
    border-radius: 6px;
    background: #E53935;
    color: #fff;
    font-family: FxNunitoSans, sans-serif;
    font-size: 0.72rem;
}

.ao-vivo-sobre .ao-cursor[hidden]{
    display: none;
}

@media print{
    .fx-app.ao-sup,
    .fx-app.ao-sup-bolha,
    .fx-app.ao-vivo-tarja,
    .ao-vivo-sobre{
        display: none !important;
    }
}


html.ao-vivo-ligado #ao-sup,
html.ao-vivo-ligado #ao-sup-bolha{
    display: none !important;
}
