.raku-recovery {
  --recovery-primary: #dc1824;
  --recovery-highlight: #ff3b49;
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
  background-color: #10100f;
  background-image:
    radial-gradient(ellipse at 50% 59%, #e4d6b91c, transparent 58%),
    radial-gradient(circle, #e5d6c313 0.65px, transparent 0.9px);
  background-size:
    100% 100%,
    20px 20px;
  color: #f5f5f5;
  font-family: 'Inter Variable', Inter, system-ui, sans-serif;
  color-scheme: dark;
}
.raku-recovery *,
.raku-recovery *::before,
.raku-recovery *::after {
  box-sizing: border-box;
}
.recovery-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.recovery-canvas:focus-visible {
  outline: 2px solid var(--recovery-highlight);
  outline-offset: -5px;
}
.recovery-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 36px;
  pointer-events: none;
}
.recovery-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.7px;
  pointer-events: auto;
}
.recovery-brand img {
  width: 37px;
  height: 37px;
  border-radius: 11px;
}
.recovery-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}
.recovery-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 21px;
  border: 0;
  border-radius: 999px;
  background: var(--recovery-primary);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.recovery-button:hover {
  background: #be1420;
  transform: translateY(-1px);
}
.recovery-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.recovery-button-quiet {
  background: transparent;
  color: #f5f5f5;
  padding-inline: 12px;
}
.recovery-button-quiet:hover {
  background: #dc18241f;
}
.raku-recovery :is(a, button):focus-visible {
  outline: 2px solid var(--recovery-highlight);
  outline-offset: 5px;
}
.recovery-copy {
  position: absolute;
  z-index: 1;
  top: 18.5%;
  left: 24px;
  right: 24px;
  text-align: center;
  pointer-events: none;
}
.recovery-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -2px;
  color: #f5f5f5;
}
.recovery-copy p {
  margin: 0 auto;
  max-width: 540px;
  color: #a3a3a3;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.55;
}
.recovery-sound {
  position: absolute;
  z-index: 1;
  bottom: max(25px, env(safe-area-inset-bottom));
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid #dc18245c;
  border-radius: 999px;
  background: #0d0b0bbf;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.recovery-sound[aria-pressed='true'] {
  border-color: var(--recovery-highlight);
  background: #dc182438;
}
.recovery-sound:disabled {
  opacity: 0.5;
}
.recovery-static-code {
  position: absolute;
  top: 44%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(110px, 22vw, 280px);
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 650;
  color: #f3e9d2;
}
.recovery-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.service-app-content[inert] {
  pointer-events: none;
}
.recovery-copy h1:focus {
  outline: none;
}
/* Let the emergency portal fill the viewport while the existing form stays mounted. */
.modal-content.modal-service-blocked {
  transform: none !important;
  animation: none !important;
  filter: none !important;
  overflow: visible !important;
  z-index: 2147483645 !important;
}
@media (max-width: 600px) {
  .recovery-header {
    padding: 21px 20px;
    align-items: flex-start;
  }
  .recovery-brand {
    font-size: 21px;
  }
  .recovery-actions {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 64%;
  }
  .recovery-button {
    padding: 10px 14px;
    font-size: 12px;
    min-height: 39px;
  }
  .recovery-button-quiet {
    padding-inline: 7px;
  }
  .recovery-copy {
    top: 21%;
    left: 25px;
    right: 25px;
  }
  .recovery-copy h1 {
    letter-spacing: -1px;
    margin-bottom: 13px;
  }
  .recovery-copy p {
    max-width: 330px;
  }
  .recovery-sound {
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
  }
}
@media (max-height: 480px) {
  .recovery-header {
    padding-block: 15px;
  }
  .recovery-copy {
    top: 22%;
  }
  .recovery-copy h1 {
    font-size: 30px;
    margin-bottom: 7px;
  }
  .recovery-copy p {
    font-size: 13px;
  }
  .recovery-sound {
    bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .recovery-button {
    transition: none;
  }
}
