/* Compact, centered account recovery; same graphite background as the login panel. */
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #1f1f1f;
  color: #f7f7f8;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.honey { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.recovery-shell {
  width: min(100%, 640px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 26px 26px max(24px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}
.recovery-back {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  width: 38px;
  height: 38px;
  color: #aab0b9;
  border-radius: 50%;
  text-decoration: none;
}
.recovery-back:hover { color: #fff; background: #34343a; }
.recovery-back:focus-visible,
.recovery-footer a:focus-visible,
.recovery-content input:focus-visible,
.recovery-primary:focus-visible { outline: 2px solid #70b2ff; outline-offset: 3px; }
.recovery-content {
  width: min(100%, 520px);
  margin: auto;
  padding: 24px 0;
  align-self: center;
  min-width: 0;
}
.recovery-content h1 {
  margin: 0 0 10px;
  font-size: clamp(27px, 3.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -.028em;
  font-weight: 710;
}
.recovery-intro {
  margin: 0 0 20px;
  color: #e4e4e8;
  font-size: 16px;
  line-height: 1.45;
}
.recovery-content form { display: grid; gap: 12px; }
.recovery-content input {
  width: 100%;
  min-height: 52px;
  padding: 0 17px;
  font: inherit;
  font-size: 16px;
  border: 1px solid #55555b;
  border-radius: 16px;
  color: #f6f6f8;
  background: #1f1f1f;
}
.recovery-content input::placeholder { color: #b4b4ba; font-weight: 520; }
.recovery-content input:focus { border-color: #9da0aa; outline: none; box-shadow: 0 0 0 1px #515158; }
.recovery-hint {
  margin: 2px 0 8px;
  color: #c5c5ca;
  font-size: 14px;
  line-height: 1.5;
}
.recovery-primary {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  background: #0064e0;
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 660;
  transition: background-color .15s ease;
}
.recovery-primary:hover { background: #0879ef; }
.recovery-primary:disabled { opacity: .62; cursor: wait; }
.recovery-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #515158;
  border-radius: 14px;
  background: #29292c;
  color: #eee;
  font-size: 14px;
  line-height: 1.5;
}
.recovery-feedback.error { border-color: #b96972; color: #ffe2e4; }
.recovery-feedback a { color: #72b3ff; }
.recovery-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  padding: 0;
  margin: 0;
}
.recovery-footer a { text-decoration: none; color: #b4b4ba; font-size: 13px; }
.recovery-footer a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 620px) {
  .recovery-shell { padding: 16px 20px max(18px, env(safe-area-inset-bottom)); }
  .recovery-content { padding: 22px 0; }
  .recovery-content h1 { font-size: 27px; }
  .recovery-intro { margin-bottom: 16px; font-size: 15px; }
  .recovery-content input { min-height: 51px; font-size: 16px; }
  .recovery-hint { font-size: 13px; }
  .recovery-primary { min-height: 47px; font-size: 16px; }
  .recovery-footer { gap: 9px 13px; }
  .recovery-footer a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .recovery-primary { transition: none; } }
