.password-reset-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted, #52666a);
  cursor: pointer;
  font: inherit;
  padding: .3rem .15rem .7rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.password-reset-dialog {
  border: 0;
  border-radius: 1.25rem;
  color: var(--ink, #102b2f);
  max-width: min(92vw, 30rem);
  padding: 0;
  width: 100%;
}

.password-reset-dialog::backdrop { background: rgb(5 24 27 / 58%); }
.password-reset-dialog form { margin: 0; }
.password-reset-dialog header {
  align-items: center;
  border-bottom: 1px solid var(--line, #c8d6d4);
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 1.35rem;
}
.password-reset-dialog header div { display: grid; gap: .15rem; }
.password-reset-dialog header span { color: var(--muted, #607579); font-size: .85rem; }
.password-reset-dialog header strong { font-size: 1.25rem; }
.password-reset-dialog header button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}
.password-reset-body { display: grid; gap: .9rem; padding: 1.2rem 1.35rem 1.35rem; }
.password-reset-body label { display: grid; font-weight: 700; gap: .4rem; }
.password-reset-body input {
  background: #fff;
  border: 1px solid var(--line, #b9c9c7);
  border-radius: .75rem;
  color: inherit;
  font: inherit;
  padding: .75rem .85rem;
}
.password-reset-code-row,
.auth-email-code-row { align-items: end; display: grid; gap: .65rem; grid-template-columns: minmax(0, 1fr) auto; }
.password-reset-code-row button,
.auth-email-code-row button {
  background: var(--surface-soft, #e7efed);
  border: 1px solid var(--line, #b9c9c7);
  border-radius: .75rem;
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-height: 2.8rem;
  padding: .65rem .9rem;
  white-space: nowrap;
}
.password-reset-status { color: #18745b; font-size: .86rem; margin: -.35rem 0 0; min-height: 1.2em; }
.password-reset-rules {
  color: var(--muted, #607579);
  display: grid;
  font-size: .82rem;
  gap: .25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: -.2rem 0 0;
  padding: 0;
}
.password-reset-rules li::before { content: '○ '; }
.password-reset-rules li.is-valid { color: #18745b; }
.password-reset-rules li.is-valid::before { content: '✓ '; }

@media (max-width: 480px) {
  .password-reset-dialog { border-radius: 1.1rem; max-width: calc(100vw - 2rem); }
  .password-reset-rules { grid-template-columns: 1fr; }
  .password-reset-code-row,
  .auth-email-code-row { grid-template-columns: minmax(0, 1fr) 7.4rem; }
}
