.tl-toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
  /* a popover in the top layer: drop the browser's box */
  inset: auto 16px 16px auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  overflow: visible;
}
.tl-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 6px 20px #0004;
  overflow-wrap: anywhere;
  pointer-events: none; /* never covers a button beneath; only Close is clickable */
  animation: tl-toast-in 0.18s ease-out;
}
.tl-toast.bad {
  border-left-color: var(--danger);
}
.tl-toast.bad span {
  color: var(--danger);
}
.tl-toast-close {
  margin-left: auto;
  padding: 0 6px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
@keyframes tl-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width: 720px) {
  .tl-toasts {
    right: 16px;
    left: 16px;
    max-width: none;
  }
}
.tl-mirrored:empty {
  display: none;
}
