/* Records account surfaces, scoped to Setups' shared sign-in menu. */
.account-button {
  min-height:44px; padding:7px 12px; gap:9px; border:1px solid #4c3b61;
  border-radius:6px; background:#121a2c; color:#f6f8ff; font:700 14px/1.4 Arial,sans-serif;
}
.account-button:hover { border-color:var(--violet); background:#211c36; }
.account-button img { width:28px; height:28px; padding:2px; border:1px solid #514061; }
.account-button span { display:block; }
.account-popover,.account-popover.is-signed-in {
  width:min(360px,calc(100vw - 32px)); padding:16px; border:1px solid #786099;
  border-radius:8px; color:#f6f8ff; background:linear-gradient(180deg,#181426f5,#0e1623f7);
  box-shadow:0 24px 80px #0009; backdrop-filter:blur(14px); font:14px/1.4 Arial,sans-serif;
  overflow:visible;
}
.account-popover::before {
  content:''; position:absolute; top:-8px; right:var(--account-arrow-right,32px);
  width:14px; height:14px; border-left:1px solid #786099; border-top:1px solid #786099;
  background:#181426; transform:rotate(45deg);
}
.account-popover-head,.account-popover.is-signed-in .account-popover-head {
  align-items:flex-start; gap:12px; margin-bottom:12px;
}
.account-popover h2,.account-popover.is-signed-in h2 { margin:0 0 10px; font:700 18px/1.25 Arial,sans-serif; }
.account-popover #account-popover-subtitle { margin:0; font-size:12px; line-height:1.5; color:#cbb9e4; }
.account-close { flex:none; padding:8px 12px; min-height:38px; border-color:#4c3b61; background:#171526; color:#f6f8ff; }
.account-close:hover { background:#2b2041; border-color:var(--violet); }
.account-popover:not([hidden]) { display:flex; flex-direction:column; }
.account-popover .account-popover-head,.account-popover #account-status { flex:none; }
#account-menu-body { min-height:0; overflow:auto; }
.account-popover p { color:#cbb9e4; }
.account-linked-status,.account-popover.is-signed-in #account-status {
  padding:10px; border-left:3px solid #a47ce8; border-radius:8px; background:#251d38; color:#e4d8f6;
}
.account-linked-status strong { display:block; font-size:13px; overflow-wrap:anywhere; }
.account-linked-status>span { display:block; color:#cbb9e4; font-size:12px; line-height:1.5; }
.account-popover nav.account-signed-actions { margin-top:12px; gap:8px; }
.account-popover nav.account-signed-actions .button,
.account-popover nav.account-signed-actions #account-logout {
  min-height:38px; padding:8px 12px; border:1px solid #4c3b61; background:#171526;
  border-radius:6px; color:#f6f8ff; font:16px/1.25 Arial,sans-serif; text-decoration:none; transform:none; margin-left:0;
}
.account-popover nav .button.button-primary {
  background:var(--accent); border-color:var(--accent); color:#ffffff; font-weight:400;
}
.account-popover nav .button.button-primary:hover { background:#ad78f2; border-color:#ad78f2; }
.account-popover nav.account-signed-actions #account-logout { margin-left:0; }
.account-popover nav.account-signed-actions a:hover,.account-popover nav.account-signed-actions #account-logout:hover { border-color:var(--accent); }
.account-popover.is-signed-in #account-status { font-size:12px; margin:0; }
.account-popover #account-status:empty { display:none; }
.account-popover nav a:not(.button) { color:#e4d8f6; }
.account-popover .account-remember { color:#e4d8f6; font-size:13px; }
.account-popover .account-remember input { accent-color:var(--accent); }
.account-popover .account-local-notice { background:#211c36; color:#e4d8f6; }
.account-popover :focus-visible,.account-button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.account-popover #account-login-form { display:grid; gap:8px; margin-top:6px; }
.account-popover #account-login-form>label:not(.account-remember) { color:#d9cce9; font-size:12px; font-weight:700; text-transform:uppercase; margin-top:8px; }
.account-popover #account-login-form input:not([type=checkbox]) { width:100%; min-width:0; min-height:40px; padding:10px; border:1px solid #685080; border-radius:4px; background:#141321; color:#f6f8ff; font:16px/1.2 Arial,sans-serif; }
.account-password-field { display:flex; align-items:center; position:relative; }
.account-popover #account-login-form .account-password-field input { padding-right:64px; }
.account-password-field button { position:absolute; right:6px; padding:6px 10px; border:1px solid #4c3b61; border-radius:4px; background:#211c30; color:#f6f8ff; font:12px Arial,sans-serif; cursor:pointer; }
.account-popover #account-login-form .account-remember { margin:14px 0 2px; font-weight:700; text-transform:uppercase; }
.account-popover nav.account-login-actions { display:flex; flex-wrap:wrap; gap:8px; margin:0; }
.account-popover nav.account-login-actions .button,.account-popover nav.account-login-actions a:not(.button) { display:inline-flex; align-items:center; justify-content:center; width:auto; min-height:38px; padding:8px 12px; border:1px solid #4c3b61; border-radius:6px; background:#171526; color:#f6f8ff; font:15px/1.2 Arial,sans-serif; text-decoration:none; transform:none; }
.account-popover nav.account-login-actions .button-primary { background:var(--accent); border-color:var(--accent); }
.account-popover nav.account-login-actions a:hover { border-color:var(--violet); }
.account-popover nav.account-login-actions .button:disabled { opacity:.6; cursor:wait; }
.account-discord { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:44px; margin-top:4px; padding:10px; border-radius:6px; background:linear-gradient(135deg,#5865f2,#454ab8); color:white; font-weight:700; text-decoration:none; }
.account-discord:hover { background:#5865f2; }
.account-discord svg { width:20px; height:20px; flex:none; }
.account-popover .account-shared-copy { font-size:11px; line-height:1.5; margin:12px 0 4px; }
.account-sso { color:#d3b6f5; font-size:12px; }
.account-popover:not(.is-signed-in) #account-status:not(:empty) { margin:12px 0 0; font-size:12px; color:#e4d8f6; }
@media(max-width:480px) {
  .account-button { max-width:135px; }
  .account-popover nav.account-signed-actions .button,.account-popover nav.account-signed-actions #account-logout { min-height:44px; }
  .account-popover nav.account-login-actions a:not(.button),.account-popover nav.account-login-actions .button { min-height:44px; font-size:14px; padding:8px 10px; }
}
