/* Account controls share the existing Simple Chat theme tokens. */
.account-security { color:var(--ink,#1b2940); background:var(--surface,#fff); border:1px solid var(--line,#dce3ef); border-radius:18px; padding:24px; width:min(640px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:auto; box-shadow:0 20px 80px #0a142833; }
.account-security::backdrop { background:var(--overlay,#0a14285c); }
.account-security[hidden] { display:none; }
.account-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.account-heading h2 { font-size:1.4rem; margin:0; }
.account-close { width:42px; min-height:42px; border:0; border-radius:10px; background:var(--subtle,#f8faff); color:var(--ink,#1b2940); font-size:26px; }
.account-status { margin:14px 0; color:var(--muted,#64728a); line-height:1.5; overflow-wrap:anywhere; }
.account-status:empty { display:none; }
.account-status.is-error { color:var(--error,#a83440); }
.account-identity { overflow-wrap:anywhere; line-height:1.5; }
.account-section { border-top:1px solid var(--line,#dce3ef); margin-top:16px; padding-top:16px; }
.account-section summary { cursor:pointer; font-weight:650; min-height:40px; padding:8px 0; }
.account-section form { margin:12px 0 0; }
.account-field { margin:14px 0; }
.account-field label,.account-portal-login label { display:block; margin-bottom:7px; font-weight:600; font-size:.9rem; }
.account-security input,.account-portal-login input { display:block; width:100%; min-height:46px; border:1px solid var(--line,#dce3ef); border-radius:10px; padding:10px 12px; color:var(--ink,#1b2940); background:var(--field,#f8faff); font:inherit; }
.account-security button:focus-visible,.account-security input:focus-visible,.account-security a:focus-visible,.account-page a:focus-visible,.account-page select:focus-visible,.account-security summary:focus-visible { outline:3px solid var(--focus,#8c9df3); outline-offset:3px; }
.account-help { color:var(--muted,#64728a); font-size:.9rem; line-height:1.6; }
.account-submit { display:block; width:100%; border:0; border-radius:10px; min-height:46px; margin:14px 0 4px; padding:11px 16px; background:var(--button,#4059dc); color:var(--on-accent,#fff); font:inherit; font-weight:650; cursor:pointer; }
.account-submit:hover { background:var(--button-hover,#3047c8); }
.account-submit.account-danger { background:#a52b3c; color:#fff; }
.account-security button:disabled { opacity:.55; cursor:default; }
.account-warning { padding:14px; border-radius:10px; background:var(--warning-bg,#fff9ed); color:var(--warning,#795e20); line-height:1.6; }
.account-success { padding:18px; border:1px solid var(--line,#dce3ef); border-radius:12px; color:var(--success,#287558); line-height:1.6; }
.account-links { display:flex; flex-wrap:wrap; gap:18px; border-top:1px solid var(--line,#dce3ef); margin-top:20px; padding-top:16px; }
.account-security a,.account-page a,.account-forgot { color:var(--accent,#4059dc); text-underline-offset:3px; }
.account-forgot { display:block; margin:14px auto 4px; min-height:38px; }
.chat-options .account-menu-link { display:block; padding:10px 12px; min-height:40px; color:var(--ink,#1b2940); text-decoration:none; font-size:14px; }
body[data-account-page] { min-height:100%; height:auto; overflow:auto; padding:24px max(16px,env(safe-area-inset-left)) 40px; }
.account-page { width:min(860px,100%); margin:0 auto; }
.account-page-header { display:flex; justify-content:space-between; gap:20px; align-items:center; margin:0 0 26px; }
.account-page-header a { font-weight:750; font-size:20px; text-decoration:none; }
.account-page-language { display:flex; align-items:center; gap:10px; }
.account-page-language select { font:inherit; padding:10px; border-radius:9px; border:1px solid var(--line); background:var(--surface); color:var(--ink); }
.account-page h1 { font-size:clamp(1.7rem,4vw,2.4rem); letter-spacing:-.04em; }
.account-page-intro { color:var(--muted); line-height:1.65; max-width:72ch; }
.account-page-card { padding:clamp(18px,4vw,32px); border:1px solid var(--line); border-radius:18px; background:var(--surface); margin-top:20px; }
.account-page .account-security { width:100%; max-height:none; padding:0; border:0; border-radius:0; box-shadow:none; overflow:visible; }
.account-portal-login { max-width:460px; }
.account-portal-login input { margin-bottom:18px; }
.account-text-button { background:none; border:0; padding:12px 0; color:var(--accent); font:inherit; text-decoration:underline; cursor:pointer; }
.account-page-footer { display:flex; gap:20px; flex-wrap:wrap; margin-top:28px; font-size:.9rem; }
.policy-section { margin:28px 0; }
.policy-section h2 { font-size:1.2rem; }
.policy-section p { line-height:1.75; overflow-wrap:anywhere; }
.account-retention { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,1fr); border-top:1px solid var(--line); }
.account-retention dt,.account-retention dd { padding:12px 0; margin:0; border-bottom:1px solid var(--line); }
.account-retention dd { padding-left:16px; }
@media(max-width:480px){.account-security{padding:18px}.account-page-header{align-items:flex-start;flex-direction:column}.account-page-card{padding:18px}.account-heading h2{font-size:1.2rem}}
