/* Mandatory setup uses a compact form; native controls keep their accessible hit areas. */
.account-setup {
  width: calc(100% - 32px); max-width: 380px; min-width: 0;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  box-sizing: border-box; padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius-sheet); background: var(--surface); color: var(--text); overflow: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--type-body); line-height: 1.4; text-align: left;
}
.account-setup *, .account-setup *::before, .account-setup *::after { box-sizing: border-box; }
.account-setup::backdrop { background: var(--scrim-strong); }
.account-setup:not([open]), .account-setup [hidden] { display: none; }
.account-setup[open] { display: block; }
.account-setup h2 { margin: 0; font-size: var(--type-title); line-height: 1.25; font-weight: 600; letter-spacing: -.4px; }
.account-setup h2:focus { outline: none; }
.account-setup h3 { margin: 20px 0 12px; font-size: var(--type-nav); line-height: 1.35; font-weight: 600; }
.account-setup #setup-step { margin: 6px 0 0; font-size: var(--type-caption); color: var(--text-3); }
.account-setup #setup-step:empty { display: none; }
.account-setup .setup-language-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.account-setup .setup-language-row label { margin: 0; color: var(--text-3); font-size: var(--type-secondary); }
.account-setup select { min-width: 0; max-width: 65%; min-height: 44px; padding: 8px 4px 8px 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--link); font: inherit; font-size: var(--type-action); color-scheme: inherit; }
.account-setup .setup-field-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: var(--type-body); font-weight: 500; }
.account-setup .setup-field-label .i { width: 18px; height: 18px; color: var(--text-3); }
.account-setup .setup-date-field { position: relative; width: 100%; min-width: 0; }
.account-setup input[type=date] { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px;
  margin: 0; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--surface-2); color: inherit;
  font: inherit; font-size: var(--type-action); line-height: 24px; color-scheme: inherit; -webkit-appearance: none; appearance: none; }
.account-setup input[type=date]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.account-setup input[type=date]::-webkit-datetime-edit { padding: 0; }
.account-setup input[type=date]:invalid::-webkit-datetime-edit { opacity: 0; }
.account-setup input[type=date]:invalid::-webkit-date-and-time-value { opacity: 0; }
.account-setup .setup-date-placeholder { position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
  pointer-events: none; color: var(--text-3); font-size: var(--type-action); }
.account-setup input[type=date]:valid + .setup-date-placeholder { display: none; }
.account-setup .setup-note { margin: 10px 2px 0; font-size: var(--type-caption); line-height: 1.45; color: var(--text-3); }
.account-setup .setup-document { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--type-secondary); line-height: 1.6; color: var(--text-2); }
.account-setup #setup-legal label { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: var(--type-secondary); }
.account-setup input[type=checkbox] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.account-setup #setup-error, .account-setup #setup-unsupported { margin: 14px 0; font-size: var(--type-caption); line-height: 1.45; overflow-wrap: anywhere; }
.account-setup .setup-actions { margin-top: 16px; }
.account-setup .setup-actions .btn { width: 100%; min-height: 46px; padding: 11px 16px; border-radius: 12px; font-size: var(--type-action); font-weight: 600; }
.account-setup .setup-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin-top: 8px; }
.account-setup .setup-secondary { display: contents; }
.account-setup .setup-secondary .btn, .account-setup .setup-support { min-height: 44px; padding: 12px 4px;
  border: 0; background: none; box-shadow: none; font-size: var(--type-caption); font-weight: 400; line-height: 20px; color: var(--text-3); text-decoration: none; }
.account-setup .setup-support { display: block; width: fit-content; margin: 0; }
.account-setup :focus-visible { outline: 2px solid #b9d4ff; outline-offset: 3px; }
.setup-shade { position: fixed; inset: 0; z-index: 2147483000; background: var(--scrim-strong); }
.account-setup.setup-fallback { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 2147483001; }

.account-setup #setup-country { width: 100%; max-width: 100%; background: var(--surface-2); padding: 12px; border-radius: 12px; }
.account-setup #setup-market { margin-top: 18px; }
