.neo-toast-wrap {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 260;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(400px, calc(100vw - 32px));
    pointer-events: none;
}

.neo-toast-item {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--neo-line);
    box-shadow: var(--neo-shadow);
    background: var(--neo-surface);
    color: var(--neo-text);
    animation: neo-toast-in 0.22s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.neo-toast-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 33%;
    background: color-mix(in srgb, var(--neo-toast-accent, var(--neo-accent)) 16%, transparent);
    pointer-events: none;
}

.neo-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--neo-toast-accent, var(--neo-accent)) 14%, var(--neo-surface2));
    color: var(--neo-toast-accent, var(--neo-accent));
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.neo-toast-icon svg,
.neo-toast-close svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.neo-toast-body {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.neo-toast-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.neo-toast-msg {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--neo-muted);
}

.neo-toast-close {
    border: 0;
    background: transparent;
    color: var(--neo-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.neo-toast-close:hover {
    background: var(--neo-accent-soft);
    color: var(--neo-text);
}

.neo-toast-item[data-type="developer"] {
    --neo-toast-accent: #64748b;
    background: #f1f5f9;
    color: #0f172a;
    border-color: rgba(100, 116, 139, 0.25);
}

.neo-toast-item[data-type="success"] {
    --neo-toast-accent: #0f766e;
    background: #0f3d38;
    color: #ecfdf5;
    border-color: rgba(45, 212, 191, 0.35);
}

.neo-toast-item[data-type="success"] .neo-toast-msg,
.neo-toast-item[data-type="success"] .neo-toast-close {
    color: rgba(236, 253, 245, 0.82);
}

.neo-toast-item[data-type="info"] {
    --neo-toast-accent: #0284c7;
    background: #e0f2fe;
    color: #0c4a6e;
    border-color: rgba(2, 132, 199, 0.25);
}

.neo-toast-item[data-type="info"] .neo-toast-msg {
    color: #0369a1;
}

.neo-toast-item[data-type="caution"] {
    --neo-toast-accent: #ea580c;
    background: #ffedd5;
    color: #7c2d12;
    border-color: rgba(234, 88, 12, 0.25);
}

.neo-toast-item[data-type="warning"] {
    --neo-toast-accent: #dc2626;
    background: #fee2e2;
    color: #7f1d1d;
    border-color: rgba(220, 38, 38, 0.25);
}

.neo-toast-item[data-type="warning"] .neo-toast-msg {
    color: #991b1b;
}

.neo-toast-item[data-type="offer"] {
    --neo-toast-accent: #059669;
    background: #d1fae5;
    color: #064e3b;
    border-color: rgba(5, 150, 105, 0.25);
}

.neo-toast-item[data-type="achievement"] {
    --neo-toast-accent: #ca8a04;
    background: #fef9c3;
    color: #713f12;
    border-color: rgba(202, 138, 4, 0.28);
}

@keyframes neo-toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .neo-toast-wrap {
        top: auto;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 24px);
    }
}
