
.account-page{min-height:100vh;background:var(--bg)}
.account-shell{width:min(1100px,calc(100% - 32px));margin:auto;padding:clamp(32px,6vw,88px) 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.88fr);gap:clamp(24px,5vw,70px);align-items:start}
.account-intro h1{font-size:clamp(2.4rem,5.5vw,4.7rem);line-height:1.06;letter-spacing:-.04em;max-width:12ch}
.account-kicker,.account-session-label,.account-card__heading p{color:var(--brand-aqua);font-size:.85rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.account-lead{color:var(--text-subtle);font-size:clamp(1rem,1.8vw,1.2rem);max-width:620px}
.account-benefits{display:grid;gap:12px;padding:0;margin:30px 0;list-style:none;color:var(--text-subtle)}
.account-benefits li{display:flex;gap:12px}.account-benefits li::before{content:"✓";color:var(--brand-aqua);font-weight:900}
.account-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(22px,4vw,36px);box-shadow:var(--shadow-soft)}
.account-card__heading{display:flex;align-items:center;gap:14px;margin-bottom:25px}
.account-card__heading h2{margin:0;font-size:1.4rem}
.account-card__heading span:last-child{color:var(--text-subtle)}
.account-mark{width:48px;height:48px;display:block;flex:none;object-fit:contain;padding:7px;box-sizing:border-box;border-radius:14px;background:var(--surface-soft);border:1px solid var(--line)}
.account-intro-note,.account-fineprint,.account-status{color:var(--text-subtle);line-height:1.6}
.account-fineprint{font-size:.85rem;margin-top:14px}
.account-form{display:grid;gap:16px}.account-form label{display:grid;gap:7px;color:var(--text-subtle);font-size:.9rem;font-weight:750}
.account-form input,.account-form select{box-sizing:border-box;width:100%;min-height:48px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface2);color:var(--text);padding:10px 12px;font:inherit}
.account-form input[readonly]{opacity:.72}
.account-primary,.account-secondary{min-height:48px;border-radius:12px;padding:10px 16px;font:inherit;font-weight:800;cursor:pointer}
.account-primary{border:0;background:var(--brand-aqua);color:var(--neutral-ink)}
.account-secondary{border:1px solid var(--line-strong);background:var(--surface2);color:var(--text)}
.account-primary:disabled,.account-secondary:disabled{opacity:.6;cursor:wait}
.account-status{margin:18px 0 0;min-height:1.4em;font-size:.91rem}.account-status[data-kind=error]{color:var(--brand-coral)}.account-status[data-kind=success]{color:var(--brand-aqua)}
.account-note{grid-column:1/-1;display:flex;align-items:baseline;gap:14px;color:var(--text-subtle);font-size:.9rem}.account-note p{margin:0}
[hidden]{display:none!important}
@media(max-width:820px){.account-shell{grid-template-columns:1fr;width:min(680px,calc(100% - 28px))}.account-note{display:block}.account-note p{margin-top:6px}}
@media(max-width:480px){.account-shell{width:calc(100% - 24px);padding-top:25px}.account-card{padding:20px;border-radius:18px}}

/* Account confirmation is a persistent, explicit signed-in state, not a transient toast. */
.account-welcome{min-width:0;display:grid;align-content:start;justify-items:start;gap:13px}
.account-welcome h1{font-size:clamp(2.45rem,5.2vw,4.6rem);line-height:1.07;letter-spacing:-.04em;margin:0;max-width:13ch}
.account-welcome .account-lead{margin:0;line-height:1.65}
.account-welcome__check{width:70px;height:70px;border-radius:22px;background:var(--brand-violet);color:var(--neutral-paper);display:grid;place-items:center;font-size:2.2rem;font-weight:800;box-shadow:var(--shadow-soft);margin-bottom:12px}
.account-welcome__steps{width:100%;display:grid;gap:10px;margin-top:10px}
.account-welcome__step{display:flex;gap:13px;align-items:flex-start;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.account-welcome__step-mark{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;background:var(--brand-aqua);color:var(--neutral-ink);font-weight:900;font-size:1.1rem}
.account-welcome__step-mark--local{background:var(--brand-yellow)}
.account-welcome__step strong{color:var(--text);font-weight:850}
.account-welcome__step p{margin:4px 0 0;color:var(--text-subtle);line-height:1.5;font-size:.9rem}
.account-welcome__links{display:flex;flex-wrap:wrap;gap:10px;margin-top:9px}
.account-welcome__links a{display:inline-flex;gap:10px;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface2);color:var(--text);font-weight:800;text-decoration:none}
.account-welcome__links a:first-child{background:var(--brand-aqua);color:var(--neutral-ink);border-color:transparent}
.account-welcome__links a:hover{border-color:var(--brand-violet)}
.account-welcome__links a:focus-visible,.account-card :is(button,input,select):focus-visible{outline:3px solid var(--brand-violet);outline-offset:3px}
.account-status:not(:empty){border:1px solid var(--line);border-radius:11px;padding:12px 14px;background:var(--surface2)}
@media(max-width:480px){.account-welcome__links{display:grid;width:100%}.account-welcome__links a{justify-content:space-between}.account-welcome__check{width:60px;height:60px;border-radius:18px}}

/* Google's official branded button is isolated from Blupoli button styling. */
.account-google-identity{display:flex;justify-content:center;max-width:100%;min-height:44px}
.account-google-identity[hidden]{display:none}
.account-google-identity iframe{max-width:100%}

/* Avatar editor uses the same responsive and accessible controls as the account. */
.account-avatar{min-width:0;border:1px solid var(--line);border-radius:16px;padding:14px;display:grid;gap:14px}
.account-avatar legend{padding:0 7px;color:var(--text);font-weight:800}
.account-avatar-current{display:flex;align-items:center;gap:16px}
.account-avatar-current p{font-size:.85rem;line-height:1.5;margin:0;color:var(--text-subtle)}
.account-avatar-preview{display:grid;place-items:center;width:84px;height:84px;flex:none;overflow:hidden;border:3px solid var(--line-strong);border-radius:23px;font-size:2.75rem;background:var(--surface2);color:var(--neutral-ink)}
.account-avatar-preview img{display:block;width:100%;height:100%;object-fit:cover}
.account-avatar-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.account-avatar-choice{display:grid;place-items:center;aspect-ratio:1;min-width:0;min-height:42px;border:2px solid transparent;border-radius:14px;font-size:clamp(1.3rem,2.4vw,2rem);cursor:pointer;transition:transform .12s ease}
.account-avatar-choice:hover{transform:translateY(-2px)}
.account-avatar-choice[aria-pressed=true]{border-color:var(--text);box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--brand-violet)}
.account-avatar-tone--violet{background:var(--brand-violet);color:var(--neutral-paper)}
.account-avatar-tone--aqua{background:var(--brand-aqua)}
.account-avatar-tone--yellow{background:var(--brand-yellow)}
.account-avatar-tone--coral{background:var(--brand-coral)}
.account-avatar-upload{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.account-avatar-upload .account-secondary{min-height:44px}
.account-avatar-file-hint{font-size:.8rem;color:var(--text-subtle)}
.account-avatar-upload input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.account-avatar-feedback{font-size:.85rem;color:var(--text-subtle);margin:0}
.account-avatar :is(button,input):focus-visible{outline:3px solid var(--brand-violet);outline-offset:3px}
@media(max-width:460px){.account-avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.account-avatar-current{align-items:flex-start}.account-avatar-preview{width:70px;height:70px;border-radius:18px}}
@media(prefers-reduced-motion:reduce){.account-avatar-choice{transition:none}}

.account-avatar-privacy{font-size:.8rem;color:var(--text-subtle);line-height:1.5;margin:0}

/* Show the recovery action below the official Google iframe without crowding it. */
.account-page [data-google-retry]{display:block;max-width:100%;margin:12px auto 0}

.account-emails{margin-top:28px;padding-top:24px;border-top:1px solid var(--line);min-width:0}
.account-emails h3{margin:0;font-size:1.2rem}
.account-email-options{min-width:0;border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:14px}
.account-email-options legend{padding:0 6px;color:var(--text);font-weight:750}
.account-email-options label{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
.account-email-options input[type=checkbox]{width:22px;min-height:22px;height:22px;flex:none;margin:0;accent-color:var(--brand-violet)}
.account-email-options:disabled label{opacity:.65;cursor:default}
.account-email-result{margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);overflow-wrap:anywhere}
.account-email-result h4{margin:0 0 12px;font-size:1.05rem}
.account-email-result p{margin:0;white-space:pre-line;line-height:1.6;color:var(--text-subtle)}
