/* Aviso corto de abajo (#toast, js/gestion-helpers.js → showToast). El tono lo pone data-tone, que decide toast-tone.js según el mensaje:
   éxito (verde con check), advertencia (naranja), error (rojo) y neutro (el oscuro de siempre). El icono no depende solo del color. */
.toast[data-tone='success'] { background: var(--as-success-700); }
.toast[data-tone='warning'] { background: var(--as-brand-700); }
.toast[data-tone='error'] { background: var(--as-danger-700); }
.toast[data-tone='success']::before,
.toast[data-tone='warning']::before,
.toast[data-tone='error']::before {
  content: ''; display: inline-block; width: 16px; height: 16px; margin-right: var(--as-space-2); vertical-align: -3px; background: currentColor;
  -webkit-mask: var(--toast-icon) center / contain no-repeat; mask: var(--toast-icon) center / contain no-repeat;
}
.toast[data-tone='success'] {
  --toast-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
.toast[data-tone='warning'],
.toast[data-tone='error'] {
  --toast-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v9M12 19h.01'/%3E%3C/svg%3E");
}
