/* Shared notifications, above modals without blocking the rest of the page. */
.tms-toast-region {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 10000;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.tms-toast {
  --toast-accent: #1769aa;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dce3ed;
  border-left: 4px solid var(--toast-accent);
  border-radius: 10px;
  background: #fff;
  color: #172033;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .18);
  pointer-events: auto;
  font-size: 14px;
  line-height: 1.5;
}
.tms-toast-success { --toast-accent: #167347; }
.tms-toast-error { --toast-accent: #bd2536; }
.tms-toast-warning { --toast-accent: #946000; }
.tms-toast > div { flex: 1; min-width: 0; }
.tms-toast strong { color: var(--toast-accent); }
.tms-toast p { margin: 4px 0 0; font-size: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.tms-toast .tms-toast-close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: -3px -5px 0 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #546477;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.tms-toast-close:hover { background: #edf2f7; }
.tms-toast-close:focus-visible { outline: 2px solid #1769aa; outline-offset: 2px; }
@media (max-width: 575px) {
  .tms-toast-region { top: 74px; right: 12px; width: calc(100vw - 24px); max-height: calc(100dvh - 90px); }
}
@media print { .tms-toast-region { display: none !important; } }
