/* Humaan full-page rescue — bootstrap failures, 500, and 503 */
.cp-rescue-body {
  margin: 0;
  min-height: 100dvh;
  background: #ffffff;
  color: #1a1a2e;
  font-family: 'Inter', 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#cp-rescue,
.cp-rescue {
  box-sizing: border-box;
  padding:
    calc(24px + env(safe-area-inset-top, 0px))
    calc(24px + env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px))
    calc(24px + env(safe-area-inset-left, 0px));
  background: #ffffff;
  color: #1a1a2e;
  text-align: center;
}

#cp-rescue {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483646;
}

#cp-rescue.cp-rescue--visible,
.cp-rescue.cp-rescue--standalone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.cp-rescue__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 16.5rem);
}

.cp-rescue h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000000;
}

.cp-rescue p {
  margin: 0 0 6px;
  max-width: 22rem;
  line-height: 1.5;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(26, 26, 46, 0.65);
}

.cp-rescue__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.cp-rescue button {
  width: 100%;
  border: none;
  border-radius: 9999px;
  padding: 12px 24px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.cp-rescue__primary {
  color: #ffffff;
  background: linear-gradient(to right, #ff6b6b 0%, #ff8e53 50%, #9b5de5 100%);
}

.cp-rescue__secondary {
  color: #1a1a2e;
  font-weight: 700;
  background: rgba(26, 26, 46, 0.08);
}
