/* Presentation only; the original MalGuard account flow owns all state. */
html body.auth-required #entry-gate {
  --gate-bg: var(--site-canvas);
  --gate-card: var(--site-surface);
  --gate-text: var(--site-text);
  --gate-muted: var(--site-muted);
  --gate-line: var(--site-border);
  background: radial-gradient(ellipse at 50% 12%,var(--site-glow),transparent 58%),var(--gate-bg);
  padding: clamp(18px,4vw,48px);
  overflow: auto;
}
html.theme-dark body.auth-required #entry-gate,html[data-theme=dark] body.auth-required #entry-gate{
  --gate-bg:var(--site-canvas);--gate-card:var(--site-surface);--gate-text:var(--site-text);--gate-muted:var(--site-muted);--gate-line:var(--site-border);
  background:radial-gradient(ellipse at 50% 12%,var(--site-glow),transparent 58%),var(--gate-bg);
}
html body.auth-required #entry-gate .entry-content{
  box-sizing:border-box;width:min(100%,520px);padding:clamp(20px,5vw,44px);
  background:var(--gate-card);border:1px solid var(--gate-line);border-radius:28px;color:var(--gate-text);
  box-shadow:var(--site-shadow);
}
html body.auth-required #entry-gate :is(h1,.entry-brand,.entry-capability strong){color:var(--gate-text)}
html body.auth-required #entry-gate :is(.entry-description,.entry-capability span,.entry-content>a){color:var(--gate-muted)}
html body.auth-required #entry-gate .entry-capability{background:transparent;border-color:var(--gate-line)}
html body.auth-required #entry-gate #entry-signin{background:var(--site-action);color:var(--site-action-ink);border:1px solid var(--site-action)}
html body.auth-required #entry-gate #entry-signup{background:transparent;color:var(--gate-text);border:1px solid var(--gate-line)}
html:root body.auth-required dialog.ai-account[aria-labelledby] {
  --mg-account-bg:var(--site-surface);--mg-account-field:var(--site-canvas);--mg-account-text:var(--site-text);
  --mg-account-muted:var(--site-muted);--mg-account-line:var(--site-border);--mg-account-primary:var(--site-action);--mg-account-primary-ink:var(--site-action-ink);
}
html.theme-light:root body.auth-required dialog.ai-account[aria-labelledby],
html[data-theme=light]:root body.auth-required dialog.ai-account[aria-labelledby] {
  --mg-account-bg:var(--site-surface);--mg-account-field:var(--site-canvas);--mg-account-text:var(--site-text);
  --mg-account-muted:var(--site-muted);--mg-account-line:var(--site-border);--mg-account-primary:var(--site-action);--mg-account-primary-ink:var(--site-action-ink);
}
html:root body.auth-required dialog.ai-account[aria-labelledby]{box-shadow:var(--site-shadow)!important}
html:root body.auth-required dialog.ai-account[aria-labelledby] :focus-visible{outline-color:var(--site-accent)!important}

/* The account sheet loads after the legacy desktop and compact rules. */
html:root body dialog.ai-account:has(#account-title) form label{
 font-size:14px!important;font-weight:550;line-height:1.4;
}
html:root body dialog.ai-account:has(#account-title) .account-note{font-size:14px!important;line-height:1.6!important}
html:root body dialog.ai-account:has(#account-title) form{gap:clamp(12px,1.8vw,17px)}
html:root body dialog.ai-account[dir=rtl]:has(#account-title) :is(h2,p,label,button){letter-spacing:normal!important}
html:root body dialog.ai-account[dir=rtl]:has(#account-title) h2{line-height:1.38!important}
