.canvas-user{cursor:pointer}
.canvas-user img{object-fit:cover!important;object-position:center!important;display:block!important}
.emeng-profile-menu{position:fixed!important;z-index:10040;width:322px;box-sizing:border-box;padding:14px 12px 9px;overflow:hidden;border:1px solid #302d31;border-radius:14px;background:#151518;color:#eee;box-shadow:0 18px 50px #0009;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif}
.emeng-profile-menu .profile-identity{display:flex;flex-direction:column;margin:0;padding:0 4px 12px;border-radius:8px;cursor:pointer}.emeng-profile-menu .profile-identity:hover{background:#211b1c}.emeng-profile-menu .profile-identity strong{overflow:hidden;color:#eee9e2;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.emeng-profile-menu .profile-identity span{margin-top:4px;color:#817d79;font-size:12px}
.emeng-profile-menu .balance-option{margin-bottom:8px;padding:10px 11px;border:1px solid #343137;border-radius:11px;background:#1b1a1e}.emeng-profile-menu .balance-option>div{display:flex;align-items:center;gap:8px}.emeng-profile-menu .balance-option span{display:flex;align-items:center;gap:6px;margin-right:auto;color:#b9b3af}.emeng-profile-menu .balance-option strong{color:#f4eee8;font-size:20px}.emeng-profile-menu .balance-option button{padding:4px 11px;border:0;border-radius:14px;background:#b02a2a;color:#fff}.emeng-profile-menu .balance-option small{display:block;margin-top:6px;color:#77736f}
.emeng-profile-menu .profile-actions{margin:11px -12px 0;padding:7px 12px;border-top:1px solid #302d31;border-bottom:1px solid #302d31}.emeng-profile-menu .profile-footer{padding-top:6px}.emeng-profile-menu .profile-actions button,.emeng-profile-menu .profile-footer button{display:flex;width:100%;height:38px;align-items:center;gap:9px;padding:0 9px;border:0;border-radius:8px;background:transparent;color:#ddd7d0;text-align:left;cursor:pointer}.emeng-profile-menu .profile-actions button:hover,.emeng-profile-menu .profile-footer button:not(:disabled):hover{background:#211b1c}.emeng-profile-menu svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.emeng-profile-menu .profile-footer button:disabled{color:#77736f;cursor:default}.emeng-profile-menu .profile-footer .logout{color:#e96257}
.emeng-profile-mask{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.72);backdrop-filter:blur(10px)}
.emeng-profile-dialog{position:relative;width:min(460px,calc(100vw - 32px));box-sizing:border-box;padding:30px;border:1px solid rgba(239,68,68,.38);border-radius:24px;background:linear-gradient(145deg,#17171b,#0e0e11);color:#f7f7f8;box-shadow:0 30px 90px rgba(0,0,0,.7),0 0 36px rgba(220,38,38,.1)}
.emeng-profile-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border:1px solid #34343b;border-radius:50%;background:#202027;color:#fff;font-size:26px;line-height:1;cursor:pointer}
.emeng-profile-kicker{color:#ef6868;font-size:12px;font-weight:700;letter-spacing:.2em}.emeng-profile-dialog h2{margin:8px 0 6px;font-size:26px}.emeng-profile-tip{margin:0 0 24px;color:#909099;font-size:14px}
.emeng-profile-avatar-row{display:flex;align-items:center;gap:18px;margin-bottom:22px}.emeng-profile-avatar{width:82px;height:82px;overflow:hidden;border:2px solid #ef4444;border-radius:24px;background:#0a0a0c}.emeng-profile-avatar img{width:100%;height:100%;object-fit:cover}.emeng-profile-upload{padding:9px 15px;border:1px solid #484852;border-radius:10px;background:#24242a;color:#fff;cursor:pointer}.emeng-profile-avatar-row p{margin:7px 0 0;color:#74747e;font-size:12px}
.emeng-profile-field{display:grid;gap:8px}.emeng-profile-field span{font-size:14px;color:#c9c9cf}.emeng-profile-field input{height:46px;box-sizing:border-box;padding:0 14px;border:1px solid #3d3d46;border-radius:12px;outline:0;background:#101014;color:#fff;font:inherit}.emeng-profile-field input:focus{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.13)}
.emeng-profile-error{min-height:20px;margin-top:10px;color:#ff8b8b;font-size:13px}.emeng-profile-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.emeng-profile-actions button{padding:10px 18px;border:1px solid #3d3d46;border-radius:11px;background:#202027;color:#fff;cursor:pointer}.emeng-profile-actions .is-primary{border-color:#ef4444;background:linear-gradient(135deg,#ef4444,#c92742)}.emeng-profile-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:560px){.emeng-profile-dialog{padding:24px 20px}.emeng-profile-avatar-row{align-items:flex-start}.emeng-profile-avatar{flex:0 0 72px;width:72px;height:72px}}

/* 2026-08-29: restore RH-style account dropdown from early profile layout. */
.canvas-user{box-sizing:border-box!important;min-width:170px!important;height:52px!important;padding:0 12px 0 8px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:14px!important;background:#0d0d0f!important;color:#fff!important;gap:10px!important}
.canvas-user img{width:40px!important;height:40px!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important}
.canvas-user span{max-width:118px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:15px!important;font-weight:700!important}
.canvas-user svg{flex:none!important;width:16px!important;height:16px!important;color:#fff!important}

.emeng-profile-menu.rh-profile-menu{width:clamp(220px,28vw,260px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:10px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:thin;border:1px solid #242427!important;border-radius:10px!important;background:#101011!important;color:#f2f2f2!important;box-shadow:0 16px 42px rgba(0,0,0,.65)!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif!important}
.rh-profile-head{display:grid;grid-template-columns:50px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:8px;cursor:pointer}
.rh-profile-avatar{position:relative;display:block;width:46px;height:46px}
.rh-profile-avatar img{display:block;width:46px;height:46px;border-radius:16px;object-fit:cover;object-position:center;background:#0b1734;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 0 18px rgba(0,102,255,.26)}
.rh-profile-avatar em{position:absolute;left:6px;bottom:-1px;padding:0 4px;border-radius:999px;background:#44e6ff;color:#031014;font-size:8px;font-style:normal;font-weight:800}
.rh-profile-meta{min-width:0}
.rh-profile-meta strong{display:block;max-width:180px;margin-bottom:3px;overflow:hidden;color:#fff;font-size:14px;font-weight:800;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.rh-profile-meta small{display:flex;align-items:center;gap:3px;margin-top:2px;color:#7d7d82;font-size:9px;line-height:1.2}
.rh-profile-meta small button{width:12px;height:12px;padding:0;border:0;background:transparent;color:#777;font-size:8px;cursor:pointer}
.rh-create-team{display:flex!important;width:100%!important;height:34px!important;align-items:center!important;justify-content:center!important;gap:6px!important;margin:0 0 8px!important;border:1px solid #2a2a2d!important;border-radius:6px!important;background:#111112!important;color:#c7ff00!important;font-size:11px!important;font-weight:800!important;letter-spacing:.03em!important;cursor:pointer!important}
.rh-create-team svg{width:14px!important;height:14px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
.rh-wallet-rows{display:grid;gap:0;margin-bottom:8px;border-bottom:1px solid #2a2a2d}
.rh-wallet-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;min-height:42px;border-top:1px solid #252528}
.rh-wallet-row span{display:flex;align-items:center;gap:6px;color:#9b9ba0;font-size:11px}
.rh-wallet-row svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
.rh-wallet-row:first-child svg,.rh-wallet-row:first-child strong{color:#c8ff00}
.rh-wallet-row:nth-child(2) svg,.rh-wallet-row:nth-child(2) strong{color:#ff9f0a}
.rh-wallet-row strong{min-width:46px;text-align:right;font-size:17px;font-weight:900}
.rh-wallet-row button{height:26px;padding:0 8px;border:0;border-radius:5px;background:#1c1c1f;color:#c8ff00;font-size:10px;font-weight:800;cursor:pointer}
.rh-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 6px;margin-bottom:8px}
.rh-profile-grid button{display:flex!important;height:30px!important;align-items:center!important;gap:6px!important;padding:0 6px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#8d8d93!important;font-size:11px!important;font-weight:600!important;text-align:left!important;cursor:pointer!important}
.rh-profile-grid button:hover,.rh-profile-grid button.active{background:#19191d!important;color:#c8ff00!important}
.rh-profile-grid svg{width:13px!important;height:13px!important;fill:none!important;stroke:currentColor!important;stroke-linecap:round!important;stroke-linejoin:round!important;stroke-width:1.7!important}
.rh-profile-footer{display:grid;gap:2px;margin:0 -10px -4px;padding:7px 10px 0;border-top:1px solid #2a2a2d}
.rh-profile-footer button{display:flex!important;width:100%!important;height:28px!important;align-items:center!important;gap:7px!important;padding:0 6px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#75757b!important;font-size:11px!important;text-align:left!important}
.rh-profile-footer .logout{color:#ff5d58!important;cursor:pointer!important}
.rh-profile-footer svg{width:14px!important;height:14px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
@media(max-width:1100px){.xy-canvas .canvas-user{min-width:44px!important;width:44px!important;max-width:44px!important;padding:0 3px!important;justify-content:center!important}.xy-canvas .canvas-user span,.xy-canvas .canvas-user>svg{display:none!important}}
@media(max-width:560px){.canvas-user{min-width:0!important;width:44px!important;padding:0 4px!important}.canvas-user span,.canvas-user svg{display:none!important}.emeng-profile-menu.rh-profile-menu{width:min(240px,calc(100vw - 12px))!important;max-height:calc(100dvh - 12px)!important;padding:8px!important}.rh-profile-footer{margin-inline:-8px;padding-inline:8px}}
@media(max-width:360px){.rh-profile-grid{grid-template-columns:1fr}.rh-wallet-row strong{font-size:15px}}
.emeng-profile-back{display:inline-flex;align-items:center;min-height:38px;margin:0 0 14px;padding:0 14px;border:1px solid rgba(125,211,252,.28);border-radius:10px;color:#dff6ff;background:rgba(15,23,42,.72);cursor:pointer;backdrop-filter:blur(14px)}.emeng-profile-back:hover{border-color:rgba(56,189,248,.7);background:rgba(14,116,144,.18)}
.emeng-profile-feature{width:min(620px,calc(100vw - 28px))}.emeng-profile-feature-body{display:grid;gap:14px;margin-top:18px}.emeng-profile-feature-body>button,.emeng-profile-feature-body form>button,.emeng-feature-links a{min-height:42px;padding:0 14px;border:1px solid rgba(125,211,252,.28);border-radius:10px;color:#e8f8ff;background:rgba(14,116,144,.16);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.emeng-feature-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.emeng-feature-stats article,.emeng-feature-records article{padding:14px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.035)}.emeng-feature-stats small,.emeng-feature-records small{display:block;color:#918d91}.emeng-feature-stats b{display:block;margin-top:6px;font-size:20px}.emeng-feature-toggle{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid rgba(255,255,255,.09);border-radius:12px}.emeng-feature-code{display:flex;align-items:center;gap:10px}.emeng-feature-code b{flex:1;padding:14px;border-radius:10px;background:rgba(255,255,255,.05);letter-spacing:.12em}.emeng-feature-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.emeng-feature-records{display:grid;gap:8px;max-height:360px;overflow:auto}.emeng-feature-records article{display:grid;grid-template-columns:1fr auto;gap:4px}.emeng-feature-records small{grid-column:1/-1}@media(max-width:560px){.emeng-feature-stats,.emeng-feature-links{grid-template-columns:1fr}}

/* Keep the existing glass account menu, with readable purposes and full balances. */
html:has(.glass-topbar) .emeng-profile-menu.rh-profile-menu{width:min(360px,calc(133.333vw - 32px))!important;padding:14px!important;transform:scale(.75);transform-origin:top left}
html:has(.glass-topbar) .rh-profile-grid button{height:auto!important;min-height:54px!important;padding:7px!important;align-items:flex-start!important;gap:8px!important}
.rh-action-copy{display:grid;gap:3px;min-width:0;line-height:1.3}.rh-action-copy b{font-size:13px;font-weight:650}.rh-action-copy small{font-size:11px;font-weight:400;color:#537586}
html:has(.glass-topbar) .rh-profile-grid svg{flex:none;margin-top:2px;width:16px!important;height:16px!important}
.rh-wallet-row{grid-template-columns:minmax(0,1fr) auto;gap:4px;min-height:60px;padding:6px 0}.rh-wallet-row strong{grid-column:1;grid-row:2;min-width:0;text-align:left;white-space:nowrap;font-size:22px;font-variant-numeric:tabular-nums}.rh-wallet-row button{grid-column:2;grid-row:1/3;min-height:36px}.rh-wallet-row span{font-size:12px}
.rh-wallet-refresh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px;color:#537586;font-size:11px}.rh-wallet-refresh button{min-height:32px;padding:4px 10px;border:1px solid #a9ccd9;border-radius:7px;color:#245769;background:transparent;cursor:pointer}
.rh-profile-meta small{font-size:10px}.rh-profile-meta small button{width:26px;height:26px;font-size:12px}.rh-profile-head{grid-template-columns:54px minmax(0,1fr)}.rh-profile-avatar em{left:4px;bottom:-3px;font-size:9px}.rh-profile-meta strong{max-width:none;font-size:15px}
.emeng-profile-feature-body :is(button,a){min-height:44px;box-sizing:border-box;padding:8px 12px;border:1px solid #b7d5df;border-radius:9px;background:#f7fbfc;color:#245769;font:inherit;cursor:pointer;text-decoration:none;line-height:1.35}
.emeng-profile-feature-body :is(button,a):focus-visible,.rh-profile-menu :is(button,[role=button]):focus-visible{outline:2px solid #167f9a;outline-offset:2px}
.emeng-profile-feature-body button:disabled{opacity:.6;cursor:default}.emeng-feature-stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}.emeng-feature-stats b{font-size:19px;font-variant-numeric:tabular-nums;white-space:nowrap}.emeng-feature-stats article>span{font-size:12px;color:#537586}
.emeng-account-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;margin:0}.emeng-account-facts dd{margin:0;overflow-wrap:anywhere}.emeng-account-facts dt{color:#537586}
.emeng-record-tools{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.emeng-record-tools label{display:grid;gap:5px;flex:1;min-width:150px;font-size:12px}.emeng-record-tools :is(input,select){width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:9px 10px;border:1px solid #b7d5df;border-radius:9px;background:#fff;color:#173d50;font:inherit}
.emeng-record-meta{font-size:12px;color:#537586}.emeng-record-meta [role=status]{display:block;min-height:18px;color:#167f9a}.emeng-feature-records article{display:flex;flex-direction:column;gap:7px;min-width:0}.emeng-record-heading{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.emeng-record-heading b{overflow-wrap:anywhere}.emeng-record-heading span{flex:none;font-size:12px}.emeng-feature-records small{overflow-wrap:anywhere}.emeng-record-actions,.emeng-record-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.emeng-record-pages{margin-top:12px}.emeng-record-pages span{font-size:12px}.emeng-feature-success{color:#167f9a}.emeng-feature-empty{padding:12px;color:#537586}
.emeng-profile-feature-body details{padding:14px;border:1px solid #c8e0e7;border-radius:12px}.emeng-profile-feature-body summary{cursor:pointer;font-weight:650}.emeng-profile-feature-body details li{margin:8px 0}.emeng-profile-feature-body :is(details,form,[data-reward-info]) button{margin-top:8px}
@media(max-width:560px){.emeng-profile-feature-body [role=tablist]{flex-direction:row!important;flex-wrap:wrap}.emeng-profile-feature-body [role=tab]{flex:1;min-width:90px}.emeng-record-tools label{flex-basis:100%}.emeng-record-heading{flex-direction:column;gap:4px}.emeng-record-tools>button{flex:1}.emeng-feature-stats b{font-size:18px}}
@media(max-width:360px){.rh-profile-grid{grid-template-columns:1fr}.rh-wallet-row strong{font-size:20px}}

/* Enlarge the account menu by 30 percent from its former .75 scale. */
html:has(.glass-topbar) .emeng-profile-menu.rh-profile-menu{transform:scale(.975)!important;width:min(360px,calc(102.564vw - 26px))!important;max-height:calc(102.564dvh - 26px)!important;overflow-y:auto!important;overscroll-behavior:contain}

/* Personal identity editor: spacious glass card, circular avatar and clear form hierarchy. */
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"]{width:min(520px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;padding:32px!important;border-radius:28px!important;background:linear-gradient(145deg,rgba(235,250,255,.88),rgba(187,218,235,.76))!important;border:1px solid #ffffffcc!important;box-shadow:inset 0 1px #fff,0 28px 80px #071c3c40!important;backdrop-filter:blur(28px)!important;color:#173e53!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"],.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] :is(button,input,label,p,span,h2,div){font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif!important;letter-spacing:normal!important;word-spacing:normal!important;text-shadow:none!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-kicker{font-size:11px!important;font-weight:700!important;letter-spacing:.15em!important;color:#51798d!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] h2{font-size:28px!important;line-height:1.35!important;margin:10px 0!important;color:#173e53!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-tip{font-size:14px!important;line-height:1.7!important;color:#517184!important;margin:0!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-avatar-row{display:flex!important;flex-direction:column!important;align-items:center!important;gap:16px!important;margin:0!important;padding:28px 0!important;text-align:center!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-avatar{width:104px!important;height:104px!important;border-radius:50%!important;border:3px solid #ffffffdd!important;background:rgba(233,248,255,.55)!important;box-shadow:0 8px 28px #28597726!important;flex:none!important;overflow:hidden!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-avatar img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-upload{height:40px!important;padding:0 22px!important;border-radius:999px!important;border:1px solid #ffffffdd!important;background:#f5fcff99!important;color:#24566e!important;font-size:14px!important;font-weight:650!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-avatar-row p{margin:10px 0 0!important;font-size:12px!important;color:#567689!important;line-height:1.5!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-field{display:grid!important;gap:10px!important;font-size:14px!important;font-weight:600!important;color:#24566e!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-field input{box-sizing:border-box!important;width:100%!important;height:50px!important;padding:0 18px!important;border-radius:16px!important;border:1px solid #fff!important;background:rgba(247,253,255,.6)!important;color:#173e53!important;font-size:16px!important;font-weight:400!important;outline-offset:3px!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-actions{display:grid!important;grid-template-columns:1fr 1.4fr!important;gap:12px!important;margin-top:24px!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-actions button{height:46px!important;border-radius:999px!important;border:1px solid #ffffffcc!important;background:#f6fcff77!important;color:#24566e!important;font-size:15px!important;font-weight:600!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-actions .is-primary{background:#245e79!important;color:#fff!important;border-color:#245e79!important;box-shadow:0 8px 20px #17466426!important}
.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] .emeng-profile-close{border-radius:50%!important;background:#effaff88!important;color:#24566e!important;border-color:#ffffffcc!important}
@media(max-width:560px){.emeng-profile-dialog[aria-labelledby="emeng-profile-title"]{padding:24px!important}.emeng-profile-dialog[aria-labelledby="emeng-profile-title"] h2{font-size:24px!important}}
