/* Account chooser visual fixes, scoped to Home. Applied after the V14/V8 styles. */
#main.ao-home-accounts-active .ao-account-section{width:min(1400px,calc(100% - 32px))!important;max-width:1400px!important;margin-inline:auto!important;min-width:0}
#main.ao-home-accounts-active .ao-account-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:clamp(14px,1.5vw,24px)!important;margin-top:18px!important}
#main.ao-home-accounts-active .ao-account-card{box-sizing:border-box!important;height:auto!important;min-height:324px!important;min-width:0!important;padding:clamp(17px,1.8vw,26px)!important;border:1px solid #bc8a40!important;border-radius:13px!important;background:linear-gradient(125deg,#090b11,#04070c 62%,#10101b)!important;box-shadow:0 2px 16px #dfa94731,inset 0 1px #ffedba16!important;overflow:hidden!important}
#main.ao-home-accounts-active .ao-account-standard{border-color:#987950!important;background:linear-gradient(125deg,#0b0e17,#05080e 66%,#0b1320)!important}
#main.ao-home-accounts-active .ao-account-card :is(h2,h3,h4){max-width:100%;line-height:1.13!important;margin-bottom:9px!important;overflow-wrap:break-word}
#main.ao-home-accounts-active .ao-account-card :is(p,li,small){font-size:clamp(12px,.83vw,14px)!important;line-height:1.48!important;color:#e5e8ef!important}
#main.ao-home-accounts-active .ao-account-card :is(ul,ol){display:grid;gap:9px;margin-bottom:17px}
#main.ao-home-accounts-active .ao-account-card img{object-fit:contain!important;object-position:right bottom!important;max-width:100%;height:auto}
#main.ao-home-accounts-active .ao-account-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:44px!important;padding:10px 16px!important;border-radius:8px!important;font-size:clamp(13px,.9vw,16px)!important;line-height:1.2!important;white-space:normal!important;text-align:center!important;box-shadow:0 3px 14px #d8a33a35!important}
#main.ao-home-accounts-active .ao-account-action:focus-visible{outline:2px solid #e9c17f!important;outline-offset:3px!important}
#main.ao-home-accounts-active .ao-accounts-risk{display:block!important;margin:16px 0 21px!important;padding:12px 16px!important;border:1px solid #735e3c!important;border-radius:9px!important;background:linear-gradient(115deg,#0d111a,#10101a)!important;color:#cfd3db!important;font:500 12px/1.65 Inter,Arial,sans-serif!important;letter-spacing:0!important;opacity:1!important;max-width:none!important}
#main.ao-home-accounts-active .ao-home-code{max-width:100%;padding:13px 14px!important;background:linear-gradient(140deg,#0a0c14,#140e1b)!important;border:1px solid #695334!important;box-shadow:none!important;border-radius:10px!important}
#main.ao-home-accounts-active .ao-home-code .pu-referral-value{font-size:clamp(17px,1.2vw,20px)!important;color:#ffda87!important}
#main.ao-home-accounts-active .ao-home-code .pu-referral-help{color:#c8bfd0!important;font-size:12px!important}
/* Home navigation: keep all existing links and click behavior; make dense layouts readable. */
body:has(.home-scene) .header .nav{min-width:0!important;gap:2px!important}
body:has(.home-scene) .header .nav a{font-size:clamp(12px,.84vw,14px)!important;line-height:1.2!important;padding-inline:clamp(5px,.5vw,9px)!important;white-space:nowrap}
body:has(.home-scene) .header-inner{gap:clamp(7px,.8vw,13px)!important}
@media(max-width:1150px){
 #main.ao-home-accounts-active .ao-account-section{width:calc(100% - 24px)!important}
 #main.ao-home-accounts-active .ao-account-card{min-height:0!important;padding:16px!important}
 #main.ao-home-accounts-active .ao-account-card :is(p,li,small){font-size:12px!important}
}
@media(max-width:760px){
 #main.ao-home-accounts-active .ao-account-grid{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
 #main.ao-home-accounts-active .ao-account-card{min-height:0!important;padding:16px!important}
 #main.ao-home-accounts-active .ao-account-card :is(h2,h3,h4){font-size:clamp(23px,6.3vw,30px)!important}
 #main.ao-home-accounts-active .ao-account-card :is(ul,ol){gap:7px}
 #main.ao-home-accounts-active .ao-account-card img{max-height:220px}
 #main.ao-home-accounts-active .ao-account-action{min-height:48px!important;max-width:100%!important}
 #main.ao-home-accounts-active .ao-accounts-risk{font-size:12px!important;padding:12px!important;line-height:1.6!important}
 #main.ao-home-accounts-active .ao-home-code{padding:12px!important}
}
@media(max-width:390px){
 #main.ao-home-accounts-active .ao-account-card{padding:13px!important}
 #main.ao-home-accounts-active .ao-account-card img{max-height:165px}
 #main.ao-home-accounts-active .ao-account-card :is(p,li,small){font-size:11.5px!important}
}
@media(prefers-reduced-motion:reduce){#main.ao-home-accounts-active .ao-account-action{transition:none!important}}
