.ui-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border-radius: 10px;
}

.ui-msg__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: currentColor;
}

.ui-msg__body {
  min-width: 0;
  flex: 1 1 auto;
}

.ui-msg__text {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.ui-msg__detail {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  opacity: 0.82;
}

.ui-msg--small {
  gap: 8px;
  padding: 0;
  margin-top: 6px;
}

.ui-msg--small .ui-msg__icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.ui-msg--small .ui-msg__text {
  font-size: 12px;
  font-weight: 400;
}

.ui-msg--inline {
  margin-top: 6px;
}

.ui-msg--block {
  padding: 10px 12px;
  margin-top: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.ui-msg--info {
  color: #475467;
}

.ui-msg--success {
  color: #166534;
}

.ui-msg--warn {
  color: #92400e;
}

.ui-msg--error {
  color: #991b1b;
}

.ui-msg--loading {
  color: #1d4ed8;
}

.ui-msg--soft.ui-msg--info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ui-msg--soft.ui-msg--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.ui-msg--block.ui-msg--warn {
  background: #fffbeb;
  border-color: #fcd34d;
}

.ui-msg--block.ui-msg--error {
  background: #fef2f2;
  border-color: #fca5a5;
}

.ui-msg--block.ui-msg--success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.ui-msg--block.ui-msg--loading {
  background: #eff6ff;
  border-color: #93c5fd;
}

/* Inline action feedback surfaces — visible in resting section state */
.ui-msg--inline.ui-msg--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 12px;
}

.ui-msg--inline.ui-msg--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  padding: 10px 12px;
}

.ui-msg--inline.ui-msg--loading {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  padding: 10px 12px;
}

@keyframes ui-msg-spin {
  to { transform: rotate(360deg); }
}

.ui-msg-spin {
  animation: ui-msg-spin 0.9s linear infinite;
  display: inline-block;
}

@media (max-width: 640px) {
  .ui-msg {
    gap: 8px;
    padding: 9px 10px;
  }

  .ui-msg__text {
    font-size: 12.5px;
  }

  .ui-msg__detail {
    font-size: 11.5px;
  }
}
