#trpro-toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}

.trpro-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #1a1a2e;
  font: 500 14px/1.4 system-ui, -apple-system, sans-serif;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.trpro-toast-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.trpro-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.trpro-toast-success .trpro-toast-icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.trpro-toast-error .trpro-toast-icon {
  background: #ffebee;
  color: #c62828;
}

.trpro-toast-info .trpro-toast-icon {
  background: #e3f2fd;
  color: #1565c0;
}

.trpro-toast-msg {
  flex: 1;
}

.trpro-btn-done,
.trdash-btn-done {
  background: #e8f5e9 !important;
  border-color: #66bb6a !important;
  color: #2e7d32 !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.trdash-sidebar-btn.primary.trdash-btn-done {
  background: #2e7d32 !important;
  border-color: #2e7d32 !important;
  color: #fff !important;
}

.trdash-sidebar-btn-copy.trdash-btn-done {
  background: #e8f5e9 !important;
  border-color: #66bb6a !important;
  color: #2e7d32 !important;
}

#transcribe-pro-app .trpro-btn-done,
#transcribe-pro-app .trpro-btn-sm-primary.trpro-btn-done {
  background: #e8f5e9 !important;
  border-color: #66bb6a !important;
  color: #2e7d32 !important;
}

#transcribe-pro-app .trpro-btn-copy.trpro-btn-done {
  background: #2e7d32 !important;
  border-color: #2e7d32 !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  #trpro-toast-root {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: none;
  }
}

.trpro-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.trpro-alert-overlay.trpro-alert-show {
  opacity: 1;
}

.trpro-alert-card {
  width: min(480px, calc(100vw - 40px));
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}

.trpro-alert-show .trpro-alert-card {
  transform: translateY(0) scale(1);
}

.trpro-alert-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #ffebee;
  color: #c62828;
  font: 700 22px/44px system-ui, sans-serif;
}

.trpro-alert-title {
  margin: 0 0 10px;
  font: 600 18px/1.3 system-ui, sans-serif;
  color: #1a1a2e;
}

.trpro-alert-msg {
  margin: 0 0 12px;
  font: 400 14px/1.55 system-ui, sans-serif;
  color: #555;
  word-break: break-word;
}

.trpro-alert-hint {
  margin: 0 0 20px;
  padding: 10px 12px;
  background: #f5f7fa;
  border-radius: 8px;
  font: 400 13px/1.5 system-ui, sans-serif;
  color: #666;
  text-align: left;
}

.trpro-alert-btn {
  min-width: 140px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #1565c0;
  color: #fff;
  font: 600 14px system-ui, sans-serif;
  cursor: pointer;
}

.trpro-alert-btn:hover {
  background: #0d47a1;
}

#trpro-alert-overlay .trpro-alert-btn,
#transcribe-dashboard-app .trpro-alert-btn {
  border: none !important;
  background: #1565c0 !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

#trpro-alert-overlay .trpro-alert-btn:hover,
#transcribe-dashboard-app .trpro-alert-btn:hover {
  background: #0d47a1 !important;
  color: #fff !important;
}
