.notification-root {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.notification-visible {
    opacity: 1;
    transform: translateY(0);
}

.notification-success {
    border-color: color-mix(in srgb, var(--color-success) 35%, white);
    background: color-mix(in srgb, var(--color-success) 8%, white);
}

.notification-error {
    border-color: color-mix(in srgb, var(--color-danger) 35%, white);
    background: color-mix(in srgb, var(--color-danger) 8%, white);
}

.notification-message {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text-primary);
}

.notification-success .notification-message {
    color: color-mix(in srgb, var(--color-success) 75%, var(--color-text-primary));
}

.notification-error .notification-message {
    color: var(--color-danger);
}

.notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.notification-close:hover {
    color: var(--color-text-primary);
    background: color-mix(in srgb, var(--color-border) 60%, transparent);
}

@media (max-width: 640px) {
    .notification-root {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        align-items: stretch;
    }
}
