/* Scoped pixels: the landing page uses 1rem as a reference canvas pixel. */
.vx-account-dialog {
  --vx-unit: 1px;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 40px;
  border: 1px solid var(--vx-hairline, rgba(255,255,255,.14));
  border-radius: 6px;
  background: var(--vx-surface, #0a0e11);
  color: var(--vx-text, #fff);
  font: 400 16px/1.5 var(--vx-font-sans, 'Inter', system-ui, sans-serif);
  letter-spacing: -.01em;
  color-scheme: dark;
}
.vx-account-dialog::backdrop { background: rgba(3,5,6,.86); }
.vx-account-dialog *, .vx-account-dialog *::before, .vx-account-dialog *::after { box-sizing: border-box; }
.vx-account-dialog h2 { margin: 0; font-size: 28px; line-height: 1.21; letter-spacing: .011em; font-weight: 500; }
.vx-account-brand { margin: 0 0 28px; color: var(--vx-lime, #d7fa5f); font-size: 14px; font-weight: 600; }
.vx-account-brand img { display: block; width: 154px; max-width: 65%; height: auto; object-fit: contain; }
/* The lockup's wordmark is near-white: keep it on ink in the dashboard's light theme, like the sidebar logo. */
html[data-dashboard-theme=light] .vx-account-brand img { box-sizing: content-box; padding: 4px; background: var(--vx-ink, #0b0f05); border-radius: var(--vx-radius-card, 6px); }
.vx-account-intro { margin: 12px 0 28px; color: var(--vx-text-muted, #b4babf); font-size: 14px; line-height: 1.5; }
.vx-account-dialog form { display: grid; gap: 20px; }
.vx-account-remember { display:flex; align-items:center; gap:8px; font-size:14px; cursor:pointer; }
.vx-account-remember input { flex:none; width:18px; height:18px; margin:0; accent-color:var(--vx-lime); }
.vx-account-field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.vx-account-field input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--vx-hairline-strong, rgba(255,255,255,.28)); border-radius: 9999px; background: var(--vx-surface-sunken, #070c10); color: var(--vx-text, #fff); font: 400 16px/1.5 var(--vx-font-sans, 'Inter', system-ui, sans-serif); }
.vx-account-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--vx-hairline-strong, rgba(255,255,255,.28)); border-radius: 9999px; background: transparent; color: var(--vx-text, #fff); font: 500 14px/1.5 var(--vx-font-sans, 'Inter', system-ui, sans-serif); text-decoration: none; cursor: pointer; }
.vx-account-primary { background: var(--vx-lime, #d7fa5f); color: var(--vx-ink, #0b0f05); border-color: transparent; }
.vx-account-button:hover { background: var(--vx-whisper, rgba(255,255,255,.06)); }
.vx-account-primary:hover { background: var(--vx-lime-hover, #e6ff80); }
.vx-account-dialog :focus-visible { outline: 2px solid var(--vx-lime, #d7fa5f); outline-offset: 3px; }
.vx-account-dialog h2:focus { outline: none; }
/* Errors use the design system's coral alert (not lime, which means "normal"). */
.vx-account-dialog .vx-account-feedback[role=alert]:not(:empty) { padding: 12px; border: 1px solid var(--vx-error-line); border-radius: 4px; background: var(--vx-error-deep); color: var(--vx-text); font: 400 13px/1.5 var(--vx-font-sans); overflow-wrap: anywhere; }
.vx-account-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: none; border-radius: 9999px; background: transparent; color: var(--vx-text-muted, #b4babf); font: 400 28px/1 system-ui, sans-serif; cursor: pointer; }
.vx-account-close:hover { background: var(--vx-whisper, rgba(255,255,255,.06)); color: var(--vx-text, #fff); }
@media (max-width: 540px) { .vx-account-dialog { padding: 32px 24px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); } }

/* Password-change receipt: one clear result and one dismiss action. */
.vx-account-dialog.vx-password-success { width:min(360px,calc(100vw - 24px)); padding:40px 28px 28px; border-radius:16px; }
.vx-password-success .vx-account-content { display:grid; justify-items:center; gap:24px; text-align:center; min-width:0; }
.vx-password-success-icon { display:grid; place-items:center; width:56px; height:56px; border:1px solid var(--vx-lime-line); border-radius:50%; background:var(--vx-lime-deep); color:var(--vx-lime); }
.vx-password-success-icon::after { content:""; width:22px; height:12px; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-3px) rotate(-45deg); }
.vx-account-dialog.vx-password-success h2 { max-width:100%; font:500 24px/1.3 var(--vx-font-sans); letter-spacing:-.02em; overflow-wrap:anywhere; }
.vx-password-success .vx-account-primary { width:100%; min-height:44px; }
html[dir=rtl] .vx-password-success .vx-account-close { right:auto; left:8px; }
html[data-dashboard-theme=light] .vx-password-success-icon { color:var(--vx-light-accent, var(--vx-lime)); }

/* Verification continues the signup card, not its fixed form-height canvas.
   Explicit pixels also keep native dialogs and ultrawide layouts readable. */
.vx-account-verification { --vx-unit: 1px; }
.vx-account-verification .vx-verification-top { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:28px; }
.vx-account-verification .vx-verification-logo { display:block; width:154px; max-width:65%; height:auto; object-fit:contain; }
.vx-account-verification .vx-verification-symbol { display:grid; place-items:center; flex:none; width:52px; height:52px; border:1px solid var(--vx-lime-line); border-radius:12px; background:var(--vx-lime-deep); color:var(--vx-lime); }
.vx-account-verification .vx-verification-symbol svg { display:block; width:27px; height:27px; }
.vx-account-verification #vx-account-title { margin:0; font:500 28px/1.21 var(--vx-font-sans); letter-spacing:-.02em; }
.vx-account-verification .vx-verification-email { display:grid; gap:5px; min-width:0; margin:24px 0 20px; padding:14px 16px; border:1px solid var(--vx-hairline); border-radius:8px; background:var(--vx-whisper); }
.vx-account-verification .vx-verification-email span { font:400 12px/1.5 var(--vx-font-sans); color:var(--vx-text-muted); }
.vx-account-verification .vx-verification-email bdi { min-width:0; overflow-wrap:anywhere; font:500 14px/1.5 var(--vx-font-sans); color:var(--vx-text); }
.vx-account-verification .vx-account-copy { margin:20px 0 0; font:400 14px/1.65 var(--vx-font-sans); color:var(--vx-text-muted); }
.vx-account-verification .vx-account-feedback:empty { display:none; }
.vx-account-verification .vx-account-feedback:not(:empty) { margin:16px 0 0; padding:12px; border:1px solid var(--vx-hairline); border-radius:6px; background:var(--vx-surface-sunken); font:400 13px/1.5 var(--vx-font-sans); overflow-wrap:anywhere; }
.vx-account-verification .vx-account-feedback[role=alert]:not(:empty) { border-color:var(--vx-error-line); background:var(--vx-error-deep); color:var(--vx-text); }
.vx-account-verification .vx-verification-actions { display:grid; gap:12px; margin-top:28px; }
.vx-account-verification .vx-account-button { width:100%; min-height:46px; height:auto; margin:0; padding:12px 16px; border-radius:8px; white-space:normal; font:500 14px/1.5 var(--vx-font-sans); }
.vx-account-verification .vx-account-button.vx-account-primary { color:var(--vx-ink); background:var(--vx-lime); border-color:transparent; }
.vx-account-verification .vx-account-primary:hover:not(:disabled) { background:var(--vx-lime-hover); }
.vx-account-verification .vx-account-button:disabled { opacity:.65; cursor:not-allowed; }
.vx-account-verification .vx-account-button:focus-visible { outline:2px solid var(--vx-lime); outline-offset:3px; }
.vx-account-dialog.vx-account-verification { padding:60px 32px 32px; border-radius:14px; }
@media(max-width:540px) {
 .vx-account-dialog.vx-account-verification { padding:60px 20px 28px; }
 .vx-account-verification #vx-account-title { font-size:24px; }
}
/* "Check your email" (password recovery): the masked address the link was requested for. */
.vx-recovery-email { display:grid; gap:4px; min-width:0; margin:20px 0 0; padding:12px 14px; border:1px solid var(--vx-lime-line, rgba(215,250,95,.3)); border-radius:8px; background:var(--vx-lime-deep, rgba(215,250,95,.06)); }
.vx-recovery-email span { font:400 12px/1.5 var(--vx-font-sans); color:var(--vx-text-muted, #b4babf); }
.vx-recovery-email bdi { display:block; min-width:0; overflow-wrap:anywhere; font:600 15px/1.45 var(--vx-font-sans); color:var(--vx-text, #fff); }
html[dir=rtl] .vx-recovery-email bdi { text-align:right; }
/* Phones keep the authored type sizes in landscape (iOS otherwise inflates text). */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Google hand-off in the account dialog ("Link Google", account.js data-google-pending):
   a spinner inside the clicked button; the wait text is for screen readers only, so the
   dialog neither grows nor moves while Google loads. The sign-in/up cards: auth-pages.css. */
.vx-account-dialog[data-google-pending] .vx-account-feedback[role=status] { position:absolute; width:1px; height:1px; margin:0; padding:0; border:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.vx-account-dialog[data-google-pending], .vx-account-dialog[data-google-pending] * { cursor:progress !important; }
.vx-account-dialog[data-google-pending] :is(input,button):disabled { opacity:1; }
.vx-account-dialog[data-google-pending] [data-action=google-link] { position:relative; border-color:var(--vx-lime, #d7fa5f); color:transparent !important; }
.vx-account-dialog[data-google-pending] [data-action=google-link]::after { content:""; position:absolute; inset:0; margin:auto; width:18px; height:18px; box-sizing:border-box; border:2px solid rgba(255,255,255,.22); border-top-color:var(--vx-lime, #d7fa5f); border-radius:50%; animation:vx-google-spin .7s linear infinite; }
@keyframes vx-google-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .vx-account-dialog[data-google-pending] [data-action=google-link]::after { animation-duration:1.8s; } }

/* Change password only. Cinematic auth/verification surfaces keep their exceptions.
   Pixel dimensions deliberately preserve the DS scale under the landing canvas rem. */
.vx-account-dialog[data-view=password] {
  width: min(448px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 24px;
  border-radius: 6px;
  box-shadow: none;
  font-family: var(--vx-font-sans);
  font-feature-settings: var(--vx-font-features);
}
.vx-account-dialog[data-view=password] .vx-account-content { display: grid; gap: 16px; min-width: 0; }
.vx-account-dialog[data-view=password] h2 { padding-inline-end: 32px; font: 500 22px/1.26 var(--vx-font-sans); letter-spacing: var(--vx-track-text); overflow-wrap: anywhere; }
.vx-account-dialog[data-view=password] .vx-account-close { inset: 12px 12px auto auto; }
html[dir=rtl] .vx-account-dialog[data-view=password] .vx-account-close { inset: 12px auto auto 12px; }
.vx-password-intro { margin: 0; color: var(--vx-text-muted); font: 400 14px/1.5 var(--vx-font-sans); }
.vx-account-dialog[data-view=password] form { gap: 16px; min-width: 0; }
.vx-password-field { display: grid; gap: 8px; min-width: 0; }
.vx-password-field label { font: 500 14px/1.4 var(--vx-font-sans); }
.vx-password-control { position: relative; min-width: 0; }
.vx-password-control input { display: block; width: 100%; min-width: 0; height: 48px; padding: 10px 52px 10px 16px; border: 1px solid var(--vx-hairline-strong); border-radius: 9999px; background: var(--vx-bg); color: var(--vx-text); font: 400 16px/1.5 var(--vx-font-sans); }
/* Input direction follows its content; the eye follows the page, not that input. */
html[dir=rtl] .vx-password-control input { padding: 10px 16px 10px 52px; }
.vx-password-control input:focus { border-color: var(--vx-lime); }
.vx-password-control input[aria-invalid=true] { border-color: var(--vx-error); }
.vx-password-toggle { position: absolute; inset-block-start: 2px; inset-inline-end: 2px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9999px; background: transparent; color: var(--vx-text-muted); cursor: pointer; }
.vx-password-toggle:hover:not(:disabled), .vx-password-toggle[aria-pressed=true] { color: var(--vx-lime); background: var(--vx-whisper); }
.vx-password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.vx-password-field-error { margin: 0; color: var(--vx-error); font: 400 13px/1.5 var(--vx-font-sans); overflow-wrap: anywhere; }
.vx-password-field-error:empty { display: none; }
.vx-password-requirements { display: grid; gap: 4px; margin: 0; padding-inline-start: 20px; color: var(--vx-text-muted); font: 400 13px/1.5 var(--vx-font-sans); }
.vx-password-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-block-start: 8px; }
.vx-account-dialog[data-view=password] .vx-account-button { min-height: 44px; padding: 10px 16px; font: 500 14px/1.4 var(--vx-font-sans); white-space: normal; }
.vx-account-dialog[data-view=password] .vx-account-feedback { margin: 0; font: 400 13px/1.5 var(--vx-font-sans); overflow-wrap: anywhere; }
.vx-account-dialog[data-view=password] .vx-account-feedback:empty { display: none; }
.vx-account-dialog[data-view=password]:not([data-google-pending]) .vx-account-feedback[role=status]:not(:empty) { padding: 12px; border: 1px solid var(--vx-hairline); border-radius: 4px; background: var(--vx-surface-sunken); color: var(--vx-text-secondary); }
.vx-account-dialog[data-view=password] :is(input,button):disabled { opacity: .6; cursor: not-allowed; }
.vx-account-dialog[data-view=password] [aria-busy=true] { cursor: progress; }
@media (max-width: 400px) {
  .vx-account-dialog[data-view=password] { padding: 24px 16px; }
  .vx-password-actions { flex-direction: column-reverse; }
  .vx-password-actions .vx-account-button { width: 100%; }
}
