/* A narrow, non-blocking top-right stack. The empty region never captures input. */
.lbm-toasts {
  position: fixed !important;
  inset: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) auto auto !important;
  width: min(400px, calc(100vw - max(16px, env(safe-area-inset-left, 0px)) - max(16px, env(safe-area-inset-right, 0px))));
  max-height: min(60dvh, calc(100dvh - 32px - env(safe-area-inset-top, 0px)));
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #172b4b;
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  z-index: 2147483000;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  box-sizing: border-box;
}
.lbm-toasts::backdrop { background: transparent; pointer-events: none; }
.lbm-toast-list { display: grid; gap: 10px; }
.lbm-toast {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 44px;
  align-items: start;
  gap: 8px;
  padding: 12px 8px 12px 12px;
  border: 1px solid #9dbfe8;
  border-left: 5px solid #315b8b;
  border-radius: 12px;
  background: #e8f2ff !important;
  color: #173f6b !important;
  box-shadow: 0 10px 32px rgba(23, 43, 75, .24);
  pointer-events: auto;
  box-sizing: border-box;
}
.lbm-toast-success { background: #e8f6ec !important; color: #14532d !important; border-color: #a4d1b1; border-left-color: #137348; }
.lbm-toast-error { background: #fff0ed !important; color: #8f231d !important; border-color: #efa89f; border-left-color: #b42318; }
.lbm-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 800;
  background: #e8eff8;
  color: #254e7a;
}
.lbm-toast-success .lbm-toast-icon { color: #14603d; background: #dcfce7; }
.lbm-toast-error .lbm-toast-icon { color: #a11a12; background: #fee2e2; }
.lbm-toast-content { min-width: 0; display: grid; gap: 4px; }
.lbm-toast-title { font-size: 14px; font-weight: 850; color: inherit; }
.lbm-toast-text { font-weight: 600; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; padding-top: 1px; }
.lbm-toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 26px/1 sans-serif;
  cursor: pointer;
}
.lbm-toast-close:hover { background: rgba(23, 43, 75, .09); }
.lbm-toast-close:focus-visible { outline: 3px solid #315b8b; outline-offset: -3px; }
.lbm-toast-pending { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #172b4b; color: #fff; pointer-events: auto; }
.lbm-toast-pending[hidden] { display: none !important; }
/* Set only on status-only elements by the JS adapter; controls are excluded. */
[data-lbm-toast-mirrored="true"] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .lbm-toasts, .lbm-toast { animation: none !important; transition: none !important; } }
@media print { .lbm-toasts { display: none !important; } }
