.brxe-form .message {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: var(--space-xs);
  row-gap: var(--space-3xs);
  margin: 0 0 var(--space-s);
  padding: var(--space-xs) var(--space-s);
  border: 1px solid var(--color-border-10);
  border-radius: var(--radius-md);
  background: var(--color-bg-lv-1);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-s);
  line-height: 1.5;
  text-align: left;
  animation: sl-message-in var(--dur-base) var(--ease-out) both;
}

.brxe-form .message::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background-color: var(--color-text-30);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%229%22/%3E%3Cpath%20d=%22M12%2011v5.2M12%207.8h.01%22/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%229%22/%3E%3Cpath%20d=%22M12%2011v5.2M12%207.8h.01%22/%3E%3C/svg%3E");
}

.brxe-form .message .text {
  grid-column: 2;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.brxe-form .message .text + .text {
  margin-top: var(--space-3xs);
}

.brxe-form .message a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: 600;
}

.brxe-form .message.error {
  background: var(--color-dan-bg-10);
  border-color: var(--color-dan-border-10);
  color: var(--color-dan-text-10);
}

.brxe-form .message.error::before {
  background-color: var(--color-dan-fill-10);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%229%22/%3E%3Cpath%20d=%22M12%207.5v5.2M12%2016.2h.01%22/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%229%22/%3E%3Cpath%20d=%22M12%207.5v5.2M12%2016.2h.01%22/%3E%3C/svg%3E");
}

.brxe-form .message.success {
  background: var(--color-suc-bg-10);
  border-color: var(--color-suc-border-10);
  color: var(--color-suc-text-10);
}

.brxe-form .message.success::before {
  background-color: var(--color-suc-fill-10);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%229%22/%3E%3Cpath%20d=%22M8.2%2012.3l2.6%202.6%205-5.4%22/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%229%22/%3E%3Cpath%20d=%22M8.2%2012.3l2.6%202.6%205-5.4%22/%3E%3C/svg%3E");
}

.brxe-form .message.warning {
  background: var(--color-warn-bg-10);
  border-color: var(--color-warn-border-10);
  color: var(--color-warn-text-10);
}

.brxe-form .message.warning::before {
  background-color: var(--color-warn-fill-10);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M12%204.8%203.6%2019.2h16.8L12%204.8Z%22/%3E%3Cpath%20d=%22M12%2010v4M12%2016.8h.01%22/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M12%204.8%203.6%2019.2h16.8L12%204.8Z%22/%3E%3Cpath%20d=%22M12%2010v4M12%2016.8h.01%22/%3E%3C/svg%3E");
}

.brxe-form .message.info {
  background: var(--color-prim-bg-10);
  border-color: var(--color-prim-border-10);
  color: var(--color-prim-text-10);
}

.brxe-form .message.info::before {
  background-color: var(--color-prim-fill-10);
}

@keyframes sl-message-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brxe-form .message {
    animation: none;
  }
}