/* Framework-injected agent handoff modal + fallback trigger (dialup.js) */

#dialup-agent-handoff-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#dialup-agent-handoff-modal .dialup-agent-handoff-dialog {
  width: min(28rem, 100%);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 0.85rem;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

#dialup-agent-handoff-modal .dialup-agent-handoff-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

#dialup-agent-handoff-modal .dialup-agent-handoff-note {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

#dialup-agent-handoff-modal .dialup-agent-handoff-bundle {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #f8fafc;
  font-family: "Fira Code", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}

#dialup-agent-handoff-modal .dialup-agent-handoff-copy {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.45rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

#dialup-agent-handoff-modal .dialup-agent-handoff-copy:hover {
  background: #1e293b;
}

#dialup-agent-handoff-fallback.dialup-handoff-fallback-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 2147483000;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

#dialup-agent-handoff-fallback.dialup-handoff-fallback-btn:hover {
  background: #0f172a;
  color: #fff;
}
