/* FU-123 — in-place MEK re-prompt modal (ADR-0007).
 *
 * Self-contained `.reprompt-*` namespace (NOT `.modal`) so it is styled on EVERY
 * page (loaded globally from base.html) without clashing with the page-scoped
 * `.modal` rules in dashboard.css. Design tokens only; no hex; no inline style.
 * CSP-safe: animation is pure CSS keyframes (no JS-driven style).
 *
 * Tone: this appears at a stressful moment — a deploy interrupted an active
 * session. It must read as a calm, secure re-lock, never an error. Gold lock
 * cue + refined navy/paper palette = trustworthy, not alarming.
 */

/* Shell now comes from modal.css (--sm --blocking, D49): fixed overlay,
   heavy scrim, gold top seam, +100 z. Kept here: the reprompt-specific
   panel feel (roomier padding, deeper shadow, entry motion) + content parts. */
.reprompt-modal .modal__backdrop { animation: reprompt-fade 180ms ease-out; }
.reprompt-modal .modal__panel {
  border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-7) var(--sp-6);
  box-shadow: 0 24px 60px rgba(var(--navy-900-rgb), 0.38);
  gap: var(--sp-4);
  animation: reprompt-rise 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reprompt-modal__lock {
  width: 34px;
  height: 34px;
  color: var(--accent-strong);
}

.reprompt-modal__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.reprompt-modal__body {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--fg-2);
}

.reprompt-modal__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.reprompt-modal__field label {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.reprompt-modal__field input {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  padding: var(--sp-3);
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
}

.reprompt-modal__field input:focus-visible {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--sh-focus);
}

.reprompt-modal__error {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--danger);
}

.reprompt-modal__error[hidden] { display: none; }

.reprompt-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
}

@keyframes reprompt-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes reprompt-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reprompt-modal .modal__backdrop,
  .reprompt-modal .modal__panel { animation: none; }
}
