#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.toastz {
    --toastz-color: #2f3a4a;
    --toastz-soft: #f3f6fb;
    --toastz-border: #e3e9f2;
    display: grid;
    grid-template-columns: 34px 1fr 28px;
    width: 100%;
    padding: 14px 12px;
    align-items: flex-start;
    gap: 12px;
    color: #243142;
    background: #fff;
    border: 1px solid var(--toastz-border);
    border-left: 5px solid var(--toastz-color);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    opacity: 0;
    pointer-events: auto;
    transform: translateX(18px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}

.toastz.show { opacity: 1; transform: translateX(0) scale(1); }
.toastz.hide { opacity: 0; transform: translateX(18px) scale(.98); }

.toastz-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin-top: 1px;
    align-items: center;
    justify-content: center;
    color: var(--toastz-color);
    background: var(--toastz-soft);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
}

.toastz-content { display: grid; min-width: 0; gap: 3px; }
.toastz-content strong { color: #162231; font-size: 14px; font-weight: 900; line-height: 1.2; }
.toastz-content span { color: #5d6b7d; font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }

.toastz-close {
    display: inline-flex;
    width: 28px;
    height: 28px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #8390a2;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.toastz-close:hover { color: #1f2937; background: #f1f5f9; }
.toastz-success { --toastz-color: #159a73; --toastz-soft: #e7f8f2; --toastz-border: #cceee3; }
.toastz-warning { --toastz-color: #d97706; --toastz-soft: #fff4df; --toastz-border: #ffe1aa; }
.toastz-error { --toastz-color: #ef3748; --toastz-soft: #fff0f2; --toastz-border: #ffd1d7; }
.toastz-info { --toastz-color: #2563eb; --toastz-soft: #eef4ff; --toastz-border: #d7e4ff; }

@media (max-width: 640px) {
    #toast-container { top: 14px; right: 14px; left: 14px; width: auto; }
    .toastz { grid-template-columns: 32px 1fr 28px; border-radius: 14px; }
}
