.mfa-update-popover,.mfa-relink-card{box-sizing:border-box;color:var(--text,#eef3f9);background:#171a1f;border:1px solid var(--line,rgba(255,255,255,.2));border-radius:22px;box-shadow:0 22px 65px rgba(0,0,0,.32);font:14px/1.5 Arial,Helvetica,sans-serif;}
.mfa-update-popover{position:fixed;right:18px;bottom:18px;z-index:100080;width:min(430px,calc(100vw - 36px));max-height:calc(100dvh - 36px);overflow:auto;padding:20px;}
.mfa-notice-kicker{color:var(--muted,#c1c6ce);font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;margin:0 0 8px;}
.mfa-update-popover h2,.mfa-relink-card h2{font-size:21px;line-height:1.25;margin:0 35px 12px 0;color:var(--text,#eef3f9);}
.mfa-update-popover p,.mfa-relink-copy{margin:0 0 12px;color:var(--muted,#c1c6ce);}
.mfa-update-popover ul{margin:0 0 16px;padding-left:19px;color:var(--text,#eef3f9);}
.mfa-update-popover li+li{margin-top:8px;}
.mfa-notice-close{position:absolute;right:14px;top:14px;width:34px;min-height:34px;padding:0!important;}
.mfa-notice-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:18px;}
.mfa-update-popover button,.mfa-relink-card button{font:700 13px/1.3 Arial,Helvetica,sans-serif;min-height:40px;border:1px solid var(--line,rgba(255,255,255,.2));border-radius:12px;padding:10px 14px;background:var(--mfe-input-bg,#262b32);color:var(--text,#eef3f9);cursor:pointer;}
.mfa-update-popover button:focus-visible,.mfa-relink-card button:focus-visible{outline:3px solid var(--mfe-ui-line,var(--accent,#d1d5db));outline-offset:3px;}
.mfa-relink-overlay{position:fixed;inset:0;z-index:100090;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.7);}
.mfa-relink-card{position:relative;display:flex;flex-direction:column;width:min(570px,100%);max-height:calc(100dvh - 32px);overflow:hidden;padding:22px;}
.mfa-relink-list{list-style:none;margin:0;padding:0;overflow:auto;min-height:0;}
.mfa-relink-list li{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line,rgba(255,255,255,.2));}
.mfa-relink-list span{min-width:0;overflow-wrap:anywhere;}
.mfa-relink-list button{flex:0 0 auto;}
.mfa-relink-card .mfa-notice-actions{flex:0 0 auto;}
@media(max-width:520px){.mfa-update-popover{right:12px;bottom:12px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px;}.mfa-notice-actions button{flex:1 1 auto;}.mfa-relink-card{padding:18px;}}

/* R79: opaque notice panels keep the editor behind the dialog. */
html[data-mfe-theme="light"] :is(.mfa-update-popover,.mfa-relink-card){background:#fff;}
html[data-mfe-theme="gray"] :is(.mfa-update-popover,.mfa-relink-card){background:var(--mfe-ui-panel,#171a1f);}

/* R80: accent headings with the theme contrast adjustment. */
@layer mfe-dark-ui {html[data-mfe-theme] body .mfa-update-popover #mfaUpdateTitle{color:var(--mfe-ui-accent-text,var(--mfe-accent-text,var(--accent,#eef3f9)))!important;-webkit-text-fill-color:currentColor!important;}}

/* Enter from the right; keep dismissal preferences and notice timing unchanged. */
.mfa-update-popover{animation:mfa-notice-enter .32s cubic-bezier(.2,.7,.2,1) both;}
@keyframes mfa-notice-enter{from{transform:translateX(calc(100% + 36px));opacity:0;}to{transform:translateX(0);opacity:1;}}
@media(prefers-reduced-motion:reduce){.mfa-update-popover{animation:none;}}

/* R81: the Dica / Hint label always uses the selected theme accent. */
@layer mfe-dark-ui {html[data-mfe-theme] body .mfa-update-popover .mfa-notice-kicker{color:var(--accent,#22c55e)!important;-webkit-text-fill-color:currentColor!important;}}

/* R84: all hint titles use the full content width; actions are below. */
.mfa-update-popover h2{margin-right:0;}
@media(max-width:520px){.mfa-update-popover h2{font-size:18px;}}
