/* 📨 "Check your email" (verify-gate.js): the one screen someone sees until their email is confirmed. A Marmot kit
   file, the same in every Boy app. Its colours are the app's own (--bg, --surface, --text, --accent, ... which every
   app sets for light and dark), with neutral ones (light and dark) where an app has none; its buttons take the app's
   own classes too (MarmotVerify.show's buttons). Phone first: a card of at most 440 px with 16 px gutters, and every
   button and field at least 44 px tall. */
body.mv-on > :not(.mv-screen):not(.mv-sr) { display: none !important; }
/* The app's own scroll locks (a popup's modal-open, help-open, the plan's mb-open on html...) give way while it's up,
   or a phone with the keyboard up couldn't reach ↪ Log out. */
html:has(> body.mv-on) { overflow: auto !important; }
body.mv-on { overflow: visible !important; position: static !important; height: auto !important; }
.mv-screen {
  --mv-bg: var(--bg, #f4f6fa); --mv-card: var(--surface, #ffffff); --mv-ink: var(--text, #1d2433);
  --mv-sub: var(--text-2, var(--muted, #5b6475)); --mv-line: var(--border-strong, var(--border, #d0d5dd));
  --mv-accent: var(--accent, #2f7d4f); --mv-accent-ink: var(--accent-contrast, #ffffff); --mv-bad: var(--bad, #b4441c);
  box-sizing: border-box; min-height: 100vh; min-height: 100dvh; width: 100%; display: flex; align-items: flex-start; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: var(--mv-bg); color: var(--mv-ink); font: 16px/1.5 var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}
@media (prefers-color-scheme: dark) {
  .mv-screen {
    --mv-bg: var(--bg, #11151d); --mv-card: var(--surface, #1b2130); --mv-ink: var(--text, #eef1f7);
    --mv-sub: var(--text-2, var(--muted, #a7b0c2)); --mv-line: var(--border-strong, var(--border, #3a4356));
    --mv-accent: var(--accent, #5cc08a); --mv-accent-ink: var(--accent-contrast, #0d1a12); --mv-bad: var(--bad, #ff9a73);
  }
}
.mv-screen *, .mv-screen *::before, .mv-screen *::after { box-sizing: border-box; }
.mv-card {
  width: 100%; max-width: 440px; margin: 8vh auto 0; padding: 24px; border-radius: 16px;
  background: var(--mv-card); border: 1px solid var(--mv-line); box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
}
.mv-title { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.25; outline: none; }
.mv-title:focus-visible { outline: 2px solid var(--mv-accent); outline-offset: 4px; border-radius: 4px; }
.mv-lead { margin: 0 0 8px; overflow-wrap: anywhere; }
.mv-email { font-weight: 700; }
.mv-hint, .mv-sub { margin: 0 0 16px; color: var(--mv-sub); font-size: .92em; }
.mv-sub { margin: 4px 0 8px; }
.mv-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.mv-screen .mv-btn { min-height: 44px; min-width: 44px; font-size: 1rem; cursor: pointer; }
.mv-row .mv-btn { flex: 1 1 auto; }
.mv-primary, .mv-ghost {
  border-radius: 10px; padding: .55rem 1rem; font: inherit; font-weight: 600; border: 1px solid var(--mv-line);
  background: var(--mv-card); color: var(--mv-ink);
}
.mv-primary { background: var(--mv-accent); border-color: var(--mv-accent); color: var(--mv-accent-ink); }
.mv-ghost { background: transparent; }
.mv-screen .mv-link { display: block; width: 100%; margin: 4px 0 8px; text-align: left; }
.mv-screen .mv-btn:focus-visible, .mv-input:focus-visible { outline: 2px solid var(--mv-accent); outline-offset: 2px; }
.mv-screen .mv-btn:disabled { opacity: .6; cursor: progress; }
.mv-change { margin: 4px 0 12px; padding: 12px; border: 1px solid var(--mv-line); border-radius: 12px; }
.mv-change[hidden] { display: none; }
.mv-label { display: block; margin: 8px 0 4px; font-weight: 600; }
.mv-input {
  display: block; width: 100%; min-height: 44px; padding: .5rem .75rem; border-radius: 10px; border: 1px solid var(--mv-line);
  background: var(--mv-bg); color: var(--mv-ink); font: inherit; font-size: 16px;
}
.mv-input[aria-invalid="true"] { border-color: var(--mv-bad); }
.mv-err { margin: 4px 0 0; color: var(--mv-bad); font-size: .92em; }
.mv-err[hidden] { display: none; }
.mv-status { min-height: 1.5em; margin: 8px 0; }
.mv-status.mv-bad { color: var(--mv-bad); }
.mv-foot { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--mv-line); display: flex; justify-content: flex-end; }
.mv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 420px) {
  .mv-card { margin-top: 0; padding: 20px 16px; }
  .mv-title { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-screen, .mv-screen * { transition: none !important; animation: none !important; }
}
