.round-select{position:relative;min-width:0;width:100%;font:inherit}
.round-select>select{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;max-height:1px!important;padding:0!important;border:0!important;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}
.round-select>.round-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;height:var(--field-h,46px);min-height:44px;padding:0 14px;border:1px solid var(--field-border,#dedfea);border-radius:12px;background:var(--field,#fff);color:inherit;font:inherit;text-align:left;cursor:pointer}
.round-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.round-trigger:focus-visible{outline:2px solid #51decb;outline-offset:2px}
.round-trigger:disabled{cursor:default}
.round-select>.round-options{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:200;max-height:240px;overflow-y:auto;padding:6px;border:1px solid var(--field-border,#dedfea);border-radius:14px;background:var(--field,#fff);box-shadow:0 12px 28px #0002;box-sizing:border-box}
.round-options>button{display:block;width:100%;min-height:40px;padding:9px 12px;text-align:left;border:0;border-radius:9px;font:inherit;background:transparent;color:inherit;cursor:pointer}
.round-options>button[aria-selected=true],.round-options>button:hover,.round-options>button:focus{background:#51decb;color:#071b16;outline:none}
.round-select:has(.round-options:not([hidden])){z-index:220}
.profile-grade-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;grid-column:auto;min-width:0}
.profile-grade-pair>.info{min-width:0;height:100%;box-sizing:border-box}
.staking-edit{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;margin-top:4px}
.staking-edit .round-select{flex:0 1 148px;width:148px;max-width:100%;min-width:0}.staking-edit .round-trigger{min-height:40px;height:40px;font-size:14px;font-weight:400;gap:8px;padding-inline:10px}
.grade-save{flex:none;border:0;box-shadow:none;background:#f0f1f3;color:#353b48;font:inherit;font-size:13px;font-weight:400;padding:8px 12px;min-width:48px;min-height:40px;border-radius:10px;cursor:pointer;white-space:nowrap}
.grade-save:disabled{color:#353b48;cursor:default}
.grade-save:focus-visible{outline:2px solid #51decb;outline-offset:2px;border-radius:5px}
#profile .identity-action{margin-top:16px!important;padding-top:0!important}
#profile #additionalIdentityForm{row-gap:16px!important}
#profile .identity-action>button{margin-top:0!important}
#profile .profile-change-field:has(.round-select),#profile .identity-field:has(.round-select){overflow:visible!important}
body.security-page{overflow:auto!important}body.security-page .content{overflow:auto!important;height:auto!important}#security{display:block!important}#security[hidden]{display:none!important}
.connected-wallet-card{max-width:760px;padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff}
.connected-wallet-card h3{margin:0 0 16px}.connected-wallet-card output{display:block;padding:16px;background:#f7f8fc;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere;font-size:15px;color:#111}
.connected-wallet-card p{font-size:14px;color:#343944;margin:16px 0 0;line-height:1.6}
body.mining-page #pm-refresh,body.paxplay-active #pm-refresh{display:inline-flex!important;background:#f0dfff!important;border:1px solid #880ae1!important;color:#57008e!important;opacity:1!important;transition:none!important}
body.mining-page #pm-refresh[data-mining-refresh-state="pending"],body.paxplay-active #pm-refresh[data-game-refresh-state="pending"]{background:#e5faf4!important;border-color:#61e3ca!important;color:#000!important}
body.mining-page #pm-refresh[data-mining-refresh-state="error"],body.paxplay-active #pm-refresh[data-game-refresh-state="error"]{background:#61e3ca!important;border-color:#61e3ca!important;color:#000!important}

.top .right{gap:8px!important}

@media(max-width:760px){.profile-grade-pair{grid-column:1/-1;gap:10px}.profile-grade-pair .info{padding:14px!important}.staking-edit{flex-wrap:wrap;gap:8px}.staking-edit .round-select{flex-basis:148px}.grade-save{font-size:13px}.top .right{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important}.top{height:auto!important;min-height:64px!important}#profile .identity-action{margin-top:16px!important}#additionalIdentityForm .identity-field:last-of-type{margin-bottom:0!important}}
/* Legacy approval offsets placed the button against the input on mobile. */
#profile #additionalIdentities .identity-layout{grid-template-rows:48px minmax(48px,auto) auto auto!important;row-gap:16px!important}
#profile #additionalIdentities .identity-action{top:auto!important;transform:none!important;margin-top:0!important;align-self:start!important}
@media(max-width:600px){#profile #additionalIdentities .identity-layout{grid-template-rows:48px 48px auto auto auto auto!important;row-gap:16px!important}}
.profile-grade-pair:has(.round-options:not([hidden])),#profile .identity-field:has(.round-options:not([hidden])),#profile .profile-change-field:has(.round-options:not([hidden])){position:relative;z-index:250}

/* Self-contained chevron: no dependency on intro styles. */
.round-trigger>.language-chevron{display:flex;align-items:center;justify-content:center;flex:0 0 12px;width:12px;height:8px;margin:0;padding:0;border:0;transform:none;position:static;color:inherit}
.round-trigger>.language-chevron>svg{display:block;width:12px;height:8px;flex:none}

/* R58.13: open menus must escape the containing panel, not just their field. */
#profile .panel:has(.round-options:not([hidden])){overflow:visible!important;z-index:260}
.staking-edit .round-trigger>span:first-child{text-overflow:clip}
#profile .staking-edit .round-select>.round-trigger,#profile .staking-edit .round-trigger>span:first-child{font-weight:400!important}
