* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-stack); }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.account-nav { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--text); text-decoration: none; font-family: var(--font-brand); font-size: 24px; letter-spacing: 3px; }
.quiet-link { color: var(--muted); text-decoration: none; font-weight: 650; }
.account-shell { min-height: calc(100vh - 84px); display: grid; place-items: start center; padding: 48px 20px 90px; }
.account-card { width: min(560px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: 0 30px 90px #0007; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(29px, 6vw, 40px); line-height: 1.16; letter-spacing: -.025em; }
.intro, .account-email { color: var(--muted); margin: 18px 0 28px; font-size: 16px; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 20px; border-radius: 13px; background: #090b0c; }
.mode-tabs button { min-height: 48px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 750; }
.mode-tabs button.active { background: #202521; color: var(--text); box-shadow: inset 0 0 0 1px #3b4338; }
.google-button, .primary-action, .text-action { width: 100%; min-height: 52px; border-radius: 11px; cursor: pointer; font-weight: 750; }
.google-button { display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #4a504c; background: #fff; color: #202124; }
.google-button svg { width: 22px; height: 22px; }
.google-button:disabled { opacity: .48; cursor: not-allowed; }
.provider-note { min-height: 20px; margin: 8px 0; color: var(--muted); font-size: 13px; text-align: center; }
.separator { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: 13px; }
.separator::before, .separator::after { content: ''; height: 1px; flex: 1; background: var(--line); }
form, .register-fields { display: grid; gap: 17px; }
label { display: grid; gap: 8px; color: #dfe4dd; font-weight: 680; }
input, select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #3d433f; border-radius: 10px; background: #090b0c; color: var(--text); }
input::placeholder { color: #707872; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 13px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.consent-row input { width: 20px; min-height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--accent); }
.consent-row a { color: var(--text); }
.primary-action { display: flex; align-items: center; justify-content: center; border: 0; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.primary-action:disabled { opacity: .5; cursor: wait; }
.text-action { border: 1px solid var(--line); background: transparent; color: var(--text); }
.account-action-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
output { display: block; min-height: 24px; margin-top: 10px; color: #ffd37a; }
.service-rules { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.service-rules summary { color: var(--text); cursor: pointer; font-weight: 700; }
.service-rules p { margin-bottom: 0; }
.identity-list { display: grid; gap: 10px; margin: 22px 0; }
.identity-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: #0a0c0d; }
.identity-item strong, .identity-item span { display: block; }
.identity-item span { color: var(--muted); font-size: 14px; margin-top: 3px; }
.identity-ok { color: var(--accent); font-size: 12px; font-weight: 800; }
.identity-action { flex: 0 0 auto; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.identity-action:hover { color: var(--text); border-color: #606962; }
.account-actions { display: grid; gap: 10px; margin-top: 20px; }
[hidden] { display: none !important; }
@media (max-width: 620px) {
  .account-nav { width: calc(100% - 32px); padding: 18px 0; }
  .account-shell { padding: 22px 14px 60px; }
  .account-card { padding: 28px 20px; border-radius: 17px; }
  .identity-item { align-items: flex-start; }
}
