.lms-toast-region {
  position: fixed;
  z-index: 10000;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}

.lms-toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid #d7dee7;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  background: #fff;
  color: #17212f;
  box-shadow: 0 12px 32px rgb(20 32 48 / 18%);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  pointer-events: auto;
  animation: lms-toast-in 180ms ease-out both;
}

.lms-toast-success { border-left-color: #16845b; }
.lms-toast-error { border-left-color: #c43b42; }
.lms-toast-warning { border-left-color: #c47a12; }
.lms-toast-info { border-left-color: #3478b8; }

.lms-toast-message { flex: 1; overflow-wrap: anywhere; }

.lms-toast-close {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: -3px -3px 0 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #596579;
  cursor: pointer;
  font: 400 22px/1 Arial, sans-serif;
}

.lms-toast-close:hover { background: #edf1f5; }

@keyframes lms-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .lms-toast-region { top: 12px; right: 12px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .lms-toast { animation: none; }
}