/* The in-app question card (static/js/ip-insight.js).
   Sits above the content, bottom-corner, and never covers the primary
   action: it is a question, not a modal. */
.ip-prompt {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  /* Clear of the Plani chat launcher, which owns this corner on every
     page. Sitting on top of it would hide a permanent control behind a
     temporary question. */
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.5rem);
  z-index: 60;
  width: min(23rem, calc(100vw - 2rem));
  padding: 1.15rem 1.25rem 1.1rem;
  border: 1px solid var(--glass-border, var(--border));
  border-radius: var(--r-lg, 18px);
  background: var(--bg-elevated, #fff);
  box-shadow: var(--shadow, 0 18px 46px rgba(10, 12, 20, 0.22));
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms var(--ease-out, ease), transform 260ms var(--ease-out, ease);
}
.ip-prompt.is-in { opacity: 1; transform: none; }
.ip-prompt.is-done { opacity: 0.85; }
.ip-prompt-q {
  margin: 0 1.5rem 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.ip-prompt-close {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.ip-prompt-close:hover { background: var(--border); color: var(--text-primary); }
.ip-prompt-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ip-prompt-option {
  flex: 1 1 auto;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.ip-prompt-option:hover { background: var(--accent-soft); border-color: var(--accent); }
.ip-prompt-detail {
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
}
.ip-prompt-send {
  margin-top: 0.6rem;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-contrast, #fff);
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
}
.ip-prompt-note,
.ip-prompt-thanks {
  margin: 0.7rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ip-prompt-thanks { margin: 0; color: var(--text-primary); }
.ip-prompt :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .ip-prompt { transition: none; opacity: 1; transform: none; }
}
