.upload-toaster {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 1200;
  max-width: min(90vw, 22rem);
}

.upload-toast {
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.upload-toast-title {
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-toast-status {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.upload-toast-progress {
  margin-top: 0.45rem;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border-light);
  overflow: hidden;
}

.upload-toast-progress-fill {
  height: 100%;
  width: 0;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.upload-toast-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.4rem;
}

.upload-toast-actions button {
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.upload-toast-actions button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.upload-toast-success .upload-toast-progress-fill {
  background: var(--color-success);
}

.upload-toast-failed .upload-toast-progress-fill {
  background: var(--color-danger);
}

.action-toast {
  border-left: 4px solid var(--color-primary);
}

.action-toast-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.action-toast-close {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
}

.action-toast-close:hover {
  color: var(--color-text-primary);
}

.action-toast-success {
  border-left-color: var(--color-success);
}

.action-toast-error {
  border-left-color: var(--color-danger);
}

.action-toast-info {
  border-left-color: var(--color-primary);
}

@media (max-width: 640px) {
  .upload-toaster {
    right: 0.6rem;
    left: 0.6rem;
    max-width: none;
  }
}
