/* Password fields (paired with password-field.js). Monospace keeps the mirror's dots and letters
   exactly the same width as the native dots, so the caret never drifts while the reveal shows. */
.pwf-wrap { position: relative; display: block; min-width: 0; }
.pwf-wrap input[data-pwf] {
  width: 100%; padding-right: 50px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em;
}
.pwf-wrap input[data-pwf]::placeholder { font-family: inherit; }
.pwf-wrap.is-revealing input[data-pwf] { color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--ink, #141414); }
.pwf-wrap .pwf-mirror {
  position: absolute; left: 0; top: 0; bottom: 0; right: 50px; display: none; align-items: center;
  overflow: hidden; pointer-events: none; white-space: pre; color: var(--ink, #141414);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 400;
}
.pwf-wrap.is-revealing .pwf-mirror { display: flex; }
.pwf-wrap .pwf-mirror-inner { display: block; will-change: transform; }
.pwf-wrap .pwf-mirror b { font-weight: 700; }
.pwf-wrap .pwf-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted, #6b655e); cursor: pointer;
  -webkit-tap-highlight-color: transparent; min-height: 0;
}
.pwf-wrap .pwf-toggle:hover { color: var(--ink, #141414); }
.pwf-wrap .pwf-toggle:focus-visible { outline: 2px solid var(--ink, #141414); outline-offset: 1px; color: var(--ink, #141414); }
.pwf-wrap .pwf-toggle svg { width: 22px; height: 22px; display: block; }
.pwf-wrap .pwf-toggle .pwf-slash { display: none; }
.pwf-wrap .pwf-toggle[aria-pressed="true"] { color: var(--ink, #141414); }
.pwf-wrap .pwf-toggle[aria-pressed="true"] .pwf-slash { display: inline; }
.pwf-caps { font-size: 13px; font-weight: 600; color: #a15c00; }
.pwf-caps[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .pwf-caps { color: #fbbf24; } }
