.toasts-sistema {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1090;
    display: grid;
    width: min(390px, calc(100vw - 28px));
    gap: 10px;
    pointer-events: none;
}

.toast-sistema {
    --toast-cor: #2f6e49;
    --toast-fundo: #f7fbf8;
    --toast-borda: #cce1d3;
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 76px;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: start;
    gap: 11px;
    padding: 14px 12px 14px 14px;
    border: 1px solid var(--toast-borda);
    border-radius: 13px;
    outline: 0;
    color: #27312a;
    background: var(--toast-fundo);
    box-shadow: 0 16px 42px rgba(28, 39, 31, .16);
    pointer-events: auto;
    animation: toast-entrada .24s ease both;
}

.toast-sistema.toast-erro { --toast-cor: #a34f49; --toast-fundo: #fff9f8; --toast-borda: #ead0cd; }
.toast-sistema.toast-aviso { --toast-cor: #9a6a27; --toast-fundo: #fffbf4; --toast-borda: #eadcbc; }
.toast-sistema.saindo { animation: toast-saida .18s ease both; }
.toast-sistema:focus-visible { box-shadow: 0 0 0 3px rgba(31, 112, 71, .14), 0 16px 42px rgba(28, 39, 31, .16); }

.toast-sistema-icone {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--toast-cor);
    font-size: 14px;
    font-weight: 800;
}

.toast-sistema-conteudo { display: flex; min-width: 0; flex-direction: column; padding-top: 1px; }
.toast-sistema-conteudo strong { color: #283229; font-size: 12px; font-weight: 800; }
.toast-sistema-conteudo small { margin-top: 4px; color: #667068; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.toast-sistema > button { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #7a827b; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; }
.toast-sistema > button:hover { color: #29312b; background: rgba(39, 49, 42, .06); }
.toast-sistema-tempo { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--toast-cor); transform-origin: left; animation: toast-tempo var(--toast-duracao, 5200ms) linear forwards; }
.toast-sistema.pausado .toast-sistema-tempo { animation-play-state: paused; }

@keyframes toast-entrada { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes toast-saida { to { opacity: 0; transform: translateX(18px) scale(.98); } }
@keyframes toast-tempo { to { transform: scaleX(0); } }

@media (max-width: 560px) {
    .toasts-sistema { top: 12px; right: 12px; left: 12px; width: auto; }
    .toast-sistema { min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    .toast-sistema, .toast-sistema.saindo, .toast-sistema-tempo { animation-duration: .01ms !important; }
    .toast-sistema-tempo { animation-duration: var(--toast-duracao, 5200ms) !important; }
}
