/* =========================================================
   PATCH 2026-08-13 19:26 | RESEARCH SYNTHESIS ACTIVATION UI

   Isolates the Mistral activation confirmation styling into
   its own responsive Research City stylesheet.
========================================================= */

.zar-research-synthesis-consent {
  width: min(34rem, calc(100vw - 2rem));
  max-width: 34rem;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.5rem;
  overflow: auto;
  border: 1px solid rgba(91, 112, 179, 0.24);
  border-radius: 1rem;
  color: #172033;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.zar-research-synthesis-consent::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.zar-research-synthesis-consent form {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.zar-research-synthesis-consent h2,
.zar-research-synthesis-consent p {
  margin: 0;
}

.zar-research-synthesis-consent h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
}

.zar-research-synthesis-consent p {
  font-size: 1rem;
  line-height: 1.55;
}

.zar-research-synthesis-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.zar-research-synthesis-consent__actions button {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(91, 112, 179, 0.34);
  border-radius: 0.65rem;
  background: #fff;
  color: #172033;
  font: inherit;
  cursor: pointer;
}

.zar-research-synthesis-consent__actions button[value="activate"] {
  border-color: #334875;
  background: #334875;
  color: #fff;
  font-weight: 700;
}

.zar-research-synthesis-consent__actions button:focus-visible {
  outline: 3px solid rgba(84, 180, 151, 0.5);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .zar-research-synthesis-consent {
    width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 5.5rem);
    padding: 1.1rem;
  }

  .zar-research-synthesis-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .zar-research-synthesis-consent__actions button {
    width: 100%;
  }
}
