.digi-toast-stack {
    position: fixed;
    inset: var(--toast-top, 16px) 16px auto auto;
    z-index: 60;
    width: min(370px, calc(100% - 32px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.digi-toast {
    --toast-accent: #14785f;
    --toast-tint: #e5f7ef;
    position: relative;
    padding-bottom: 3px;
    border: 1px solid #b7c6d3;
    border-left: 3px solid var(--toast-accent);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgb(16 47 80 / 8%), 0 8px 24px rgb(16 47 80 / 11%);
    pointer-events: auto;
    animation: digi-toast-in .2s ease-out both;
}
.digi-toast[data-type="info"] { --toast-accent: #1d61a7; --toast-tint: #e8f2ff; }
.digi-toast[data-type="warning"] { --toast-accent: #936000; --toast-tint: #fff3db; }
.digi-toast[data-type="error"] { --toast-accent: #ac342f; --toast-tint: #fdebec; }
.digi-toast.is-exiting { animation: digi-toast-out .18s ease-in both; pointer-events: none; }

.digi-toast-header {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 2px 7px 2px 14px;
    background: var(--toast-tint);
}
.digi-toast-icon { width: 24px; height: 24px; color: var(--toast-accent); }
.digi-toast-title { color: #133451; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.digi-toast-message { margin: 0; padding: 7px 14px 9px; color: #42576a; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.digi-toast-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #42576a;
    cursor: pointer;
}
.digi-toast-close svg { width: 16px; height: 16px; }
.digi-toast-close:hover { background: rgb(16 47 80 / 7%); }
.digi-toast-close:focus-visible { outline: 2px solid #526b82; outline-offset: -2px; }
.digi-toast-track { position: absolute; inset: auto 0 0; height: 3px; background: #e8eff3; }
.digi-toast-progress { display: block; height: 100%; background: var(--toast-accent); transform-origin: left; }

@keyframes digi-toast-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes digi-toast-out { to { opacity: 0; transform: translateX(8px); } }
@media (any-pointer: coarse) {
    .digi-toast-close { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .digi-toast, .digi-toast.is-exiting { animation: none; }
    .digi-toast-track { background: var(--toast-accent); }
    .digi-toast-progress { visibility: hidden; }
}
