/* Distinct account action colors; handlers and permissions stay unchanged. */
body.newmagic .account-avatar,body.newmagic .detail-hero-avatar{padding:0;overflow:hidden;background:#81469f;border:1px solid #d8b4e5;border-radius:12px}
body.newmagic .account-avatar img,body.newmagic .detail-hero-avatar img{display:block;width:100%;height:100%;object-fit:cover}
body.newmagic .row-actions button{font-weight:700!important;border-width:1px!important;border-style:solid!important;min-height:32px;border-radius:7px!important;box-shadow:none!important}
body.newmagic .row-actions [data-detail]{color:#1856a0!important;background:#e8f2ff!important;border-color:#96bce8!important}
body.newmagic .row-actions [data-edit]{color:#126547!important;background:#e5f6ec!important;border-color:#83c8a5!important}
body.newmagic .row-actions [data-transfer-account]{color:#8a460e!important;background:#fff0df!important;border-color:#e9b572!important}
body.newmagic .row-actions [data-account-limit]{color:#a52a3f!important;background:#ffe9ed!important;border-color:#e5a0ae!important}
body.newmagic .row-actions [data-credit]{color:#734f00!important;background:#fff1af!important;border-color:#d9ad35!important}
body.newmagic .row-actions [data-password]{color:#6540a5!important;background:#eee7ff!important;border-color:#b69add!important}
body.newmagic .row-actions [data-message-user]{color:#086d7b!important;background:#dff5f8!important;border-color:#7ebfc7!important}
body.newmagic .row-actions button:hover{filter:brightness(.95);box-shadow:0 2px 5px #27163822!important}
body.newmagic .row-actions button:focus-visible{outline:2px solid #393154;outline-offset:2px}

body.newmagic .tier-badge{--tier-fg:#67329a;--tier-bg:#f1e9fb;--tier-border:#b58bd8;color:var(--tier-fg)!important;background:var(--tier-bg)!important;border-color:var(--tier-border)!important}
body.newmagic .tier-badge[data-tier="1"]{--tier-fg:#805100;--tier-bg:#fff0b8;--tier-border:#d3a330}
body.newmagic .tier-badge[data-tier="2"]{--tier-fg:#823498;--tier-bg:#f3e2ff;--tier-border:#bd83d3}
body.newmagic .tier-badge[data-tier="3"]{--tier-fg:#17569b;--tier-bg:#e3f0ff;--tier-border:#77a9de}
body.newmagic .tier-badge[data-tier="4"]{--tier-fg:#08716b;--tier-bg:#dcf5f1;--tier-border:#64b8ae}
body.newmagic .tier-badge[data-tier="5"]{--tier-fg:#aa430f;--tier-bg:#ffecd9;--tier-border:#e2a36c}
body.newmagic .tier-badge[data-tier="6"]{--tier-fg:#a12955;--tier-bg:#ffe5ef;--tier-border:#de8aaa}
body.newmagic .tier-badge b,body.newmagic .tier-badge small{color:var(--tier-fg)!important}
body.newmagic .account-identity small.tier-badge{display:inline-block;margin-top:5px;padding:2px 8px;border:1px solid var(--tier-border);border-radius:5px;font-weight:700}
body.newmagic .agency-account-card.tier-badge{padding:8px 10px;border-left-width:4px;border-left-style:solid;border-radius:7px}
body.newmagic .limit-game-details>summary{font-size:15px!important;font-weight:800!important;color:#174f96!important;background:#e8f1ff!important;border:1px solid #a4bee2;border-radius:8px;padding:12px 15px;min-height:44px}

/* Compact hierarchy chips: white surface with a slim level marker. */
body.newmagic .agency-navigation .tier-badge{background:#fff!important;border:1px solid #eeeaf0!important;border-left:3px solid var(--tier-border)!important;border-radius:7px;padding:7px 11px;box-shadow:0 1px 3px #34223c05}
body.newmagic .agency-navigation .tier-badge b{font-size:14px;font-weight:750;letter-spacing:0;color:var(--tier-fg)!important}
body.newmagic .agency-navigation .tier-badge small{color:#263445!important;font-size:13px;font-weight:600}
body.newmagic .agency-account-card.tier-badge{background:#fff!important;border-left:3px solid var(--tier-border)!important;border-radius:5px;padding:6px 10px}
body.newmagic .agency-account-card.tier-badge b{font-size:14px}
body.newmagic .agency-account-card.tier-badge small{color:#64748b!important}
body.newmagic .account-identity small.tier-badge{background:#fff!important;border:1px solid #eeeaf0!important;border-left:3px solid var(--tier-border)!important;padding:2px 7px}

body.newmagic .account-switch-loading{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1200;display:grid;place-items:center;gap:9px;padding:18px 22px;background:#fffffff2;border:1px solid #eadcf1;border-radius:16px;box-shadow:0 5px 24px #371a5026;pointer-events:none}
body.newmagic .account-switch-loading[hidden]{display:none!important}
body.newmagic .account-switch-ring{display:block;width:42px;height:42px;border:4px solid #ebdff2;border-top-color:#9835b7;border-right-color:#e4b33e;border-radius:50%;animation:account-switch-spin .8s linear infinite;box-sizing:border-box}
body.newmagic .account-switch-label{font-size:12px;font-weight:700;color:#71348b}
@keyframes account-switch-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){body.newmagic .account-switch-ring{animation-duration:1.8s}}

body.newmagic .tier-badge[data-tier="2"]{--tier-fg:#ae3c19;--tier-bg:#fff1e9;--tier-border:#ea916d}
body.newmagic .account-identity{align-items:center;text-align:left!important}
body.newmagic .account-identity>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left!important;flex:1}
body.newmagic .account-identity>div>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:4px;text-align:left!important}
body.newmagic .account-identity>div>div{width:100%;text-align:left!important}
body.newmagic .account-identity .account-inspect{margin:0}
body.newmagic .account-downline{display:inline-flex;align-items:center;justify-content:center;min-height:30px;margin:3px 0 0;padding:4px 10px;border:1px solid #d6a62a!important;border-radius:6px;background:linear-gradient(#fff09b,#ffd23e)!important;color:#654100!important;font-size:12px;font-weight:750;line-height:20px;white-space:nowrap}
body.newmagic .account-downline:hover{filter:brightness(.96)}
