.toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 10000;
    display: grid;
    gap: 12px;
    width: min(400px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    --toast-accent: #27689a;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px;
    border: 1px solid #e0e8e3;
    border-left: 4px solid var(--toast-accent);
    border-radius: 12px;
    background: #fff;
    color: #243e34;
    box-shadow: 0 12px 36px rgba(12, 37, 28, 0.18);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    pointer-events: auto;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.toast-success {
    --toast-accent: #15804c;
}

.toast-error {
    --toast-accent: #b23b36;
}

.toast-warning {
    --toast-accent: #ad7518;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.toast-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--toast-accent);
    font-weight: 700;
}

.toast-message {
    overflow-wrap: anywhere;
}

.toast-close {
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #6d7d74;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 4px;
}

.toast-close:focus-visible {
    outline: 2px solid var(--toast-accent);
    outline-offset: 3px;
}

.toast-hide {
    opacity: 0;
    transform: translateX(15px);
}

@media (max-width: 540px) {
    .toast-container {
        top: 16px;
        right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: none;
    }
}
