/* shadcn Base UI Toast: stacked cards expand upward on hover or keyboard focus. */
.upload-toast-list {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}
.upload-toast-list [role='listitem'] {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.upload-toast-list strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.upload-toast-list span {
  font-size: 12px;
}
html body .base-toast-viewport {
  position: fixed;
  inset: auto 16px 16px auto;
  width: min(384px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
  z-index: 12000;
  outline: 0;
}
.base-toast {
  --gap: 12px;
  --height: var(--toast-frontmost-height, var(--toast-height));
  --offset-y: calc(
    var(--toast-offset-y) * -1 + var(--toast-index) * var(--gap) * -1 +
      var(--toast-swipe-movement-y)
  );
  --peek: 12px;
  --scale: calc(max(0, 1 - (var(--toast-index) * 0.1)));
  --shrink: calc(1 - var(--scale));
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: var(--height);
  z-index: calc(1000 - var(--toast-index));
  transform-origin: bottom;
  transform: translateX(var(--toast-swipe-movement-x))
    translateY(
      calc(
        var(--toast-swipe-movement-y) - var(--toast-index) * var(--peek) - var(--shrink) *
          var(--height)
      )
    )
    scale(var(--scale));
  transition:
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 500ms,
    height 150ms;
  pointer-events: auto;
  user-select: none;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 8px 28px #0003;
  outline: 0;
}
.base-toast:after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: calc(var(--gap) + 1px);
}
.base-toast[data-expanded] {
  height: var(--toast-height);
  transform: translateX(var(--toast-swipe-movement-x)) translateY(var(--offset-y));
}
.base-toast[data-limited] {
  opacity: 0;
}
.base-toast[data-starting-style],
.base-toast[data-ending-style]:not([data-limited]):not([data-swipe-direction]) {
  transform: translateY(150%);
}
.base-toast[data-ending-style][data-swipe-direction='right'] {
  transform: translateX(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--offset-y));
}
.base-toast[data-ending-style][data-swipe-direction='down'] {
  transform: translateY(calc(var(--toast-swipe-movement-y) + 150%));
}
.base-toast:focus-visible {
  outline: 2px solid var(--app-blue);
  outline-offset: 2px;
}
.base-toast-content {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
  transition: opacity 250ms;
}
.base-toast-content[data-behind] {
  opacity: 0;
}
.base-toast-content[data-expanded] {
  opacity: 1;
}
.base-toast-icon {
  display: flex;
  align-items: center;
  flex: none;
}
.base-toast-icon > svg {
  width: 19px;
  height: 19px;
}
.base-toast-icon.toast-error {
  color: var(--app-red);
}
.base-toast-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
html body button.base-toast-open {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.base-toast-title {
  font-size: calc(13px * var(--ui-font-scale, 1));
  font-weight: 600;
  overflow-wrap: anywhere;
}
.base-toast-description {
  font-size: calc(12px * var(--ui-font-scale, 1));
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}
.base-toast-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
html body .base-toast-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
}
.base-toast-progress {
  margin-top: 4px;
  font-size: calc(11px * var(--ui-font-scale, 1));
}
.base-toast-progress > span {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.base-toast-progress progress {
  width: 100%;
  height: 5px;
  accent-color: var(--app-blue);
}
html body .base-toast-actions .call-answer,
html body .base-toast-actions .call-decline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
  padding: 6px;
  border: 0;
  color: white;
}
html body .base-toast-actions .call-answer {
  background: #23865b;
}
html body .base-toast-actions .call-decline {
  background: var(--app-red);
}
@media (prefers-reduced-motion: reduce) {
  .base-toast,
  .base-toast-content {
    transition: none;
  }
}

.base-toast-title,
.base-toast-description {
  margin: 0;
  line-height: 1.45;
}

.auth-body .base-toast{--card:#fff;--foreground:#25313a;--panel-border:#dbe1e6;--muted-foreground:#657682}html[data-theme="dark"] .auth-body .base-toast{--card:#182126;--foreground:#eef2f5;--panel-border:#29343c;--muted-foreground:#93a3ae}