/* Shared flash toasts (issue #114 mockup): KTUI light alerts in a fixed bottom-right stack. */
.flash-toasts,
.flash-toasts[popover] {
  position: fixed;
  inset: 0;
  z-index: 10001;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: inherit;
  pointer-events: none;
}
.flash-toasts-stack {
  position: absolute;
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: max(env(safe-area-inset-left, 0px), calc(100% - 400px - env(safe-area-inset-right, 0px)));
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
}
.flash-toast {
  position: relative;
  flex: none;
  overflow: hidden;
  border-radius: var(--radius-lg, 8px);
  background: var(--background);
  box-shadow: 0 10px 24px -6px rgb(0 0 0 / .14), 0 2px 6px -2px rgb(0 0 0 / .08);
  pointer-events: auto;
}
.flash-toast .kt-alert {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 17px;
  border-width: 1px;
  border-style: solid;
  border-radius: var(--radius-lg, 8px);
  font-size: 14px;
  line-height: 20px;
  color: var(--foreground);
}
.flash-toast-message {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.flash-toast-message i { flex: none; font-size: 14px; }
.flash-toast-success .flash-toast-message i { color: var(--color-green-500); }
.flash-toast-info .flash-toast-message i { color: var(--color-violet-500); }
.flash-toast-warning .flash-toast-message i { color: var(--color-yellow-500); }
.flash-toast-destructive .flash-toast-message i { color: var(--destructive); }
.flash-toast-close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md, 6px);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}
.flash-toast-close i { font-size: 12px; color: inherit; }
.flash-toast-close:hover {
  background: color-mix(in oklab, var(--foreground) 6%, transparent);
  color: var(--foreground);
}
.flash-toast-close:focus-visible {
  outline: 2px solid var(--ring, var(--primary));
  outline-offset: 1px;
  color: var(--foreground);
}
.flash-toast-timer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  transform-origin: left;
}
.flash-toast-success .flash-toast-timer { background: var(--color-green-500); }
.flash-toast-info .flash-toast-timer { background: var(--color-violet-500); }
.flash-toast-warning .flash-toast-timer { background: var(--color-yellow-500); }
.flash-toast-destructive .flash-toast-timer { background: var(--destructive); }
.flash-toasts-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
