
/* AlgoCrest Global 2026 design system: unified theme and trading portal */
:root{--acg-ink:#142c45;--acg-gold:#a9823d;--acg-line:#e5eaf0;--acg-paper:#fff;--acg-muted:#64748b}
body .acg-wrap{width:min(100% - 32px,1480px);max-width:1480px!important;margin:clamp(28px,4vw,60px) auto!important;color:var(--acg-ink);font-family:Inter,Manrope,"Segoe UI",sans-serif}
body .acg-wrap *{box-sizing:border-box}
body .acg-wrap .acg-top{padding:clamp(16px,2vw,26px) 0;margin-bottom:24px;gap:16px}
body .acg-wrap h2{font-size:clamp(26px,3vw,38px);line-height:1.2;letter-spacing:-.025em}
body .acg-wrap .acg-box{border:1px solid var(--acg-line);border-radius:20px;background:var(--acg-paper);box-shadow:0 12px 38px rgba(24,45,70,.055);margin:0 0 26px;padding:clamp(18px,2.4vw,32px)}
body .acg-wrap .acg-dashboard{padding:clamp(20px,2.5vw,32px)!important;margin:0 0 26px!important;border-radius:20px!important;border-color:var(--acg-line)!important}
body .acg-wrap .acg-dashboard .acg-flex{gap:16px;align-items:center}
body .acg-wrap .acg-dashboard h3{font-size:clamp(18px,2vw,22px);line-height:1.35;letter-spacing:-.02em;margin:0 0 6px!important;color:var(--acg-ink)}
body .acg-wrap .acg-dashboard .acg-muted{font-size:13px;line-height:1.65;margin:0;color:var(--acg-muted)}
body .acg-wrap .acg-overview-panel{background:linear-gradient(125deg,#f9fbff,#f5f8fd)!important}
body .acg-wrap .acg-overview-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px!important;margin:22px 0 0!important}
body .acg-wrap .acg-overview-tile{min-width:0;min-height:114px;display:flex;gap:14px;align-items:center;border-radius:15px!important;padding:20px 16px!important;background:#fff!important;border:1px solid #e6ebf1!important;box-shadow:0 4px 16px rgba(19,44,69,.035)}
body .acg-wrap .acg-overview-value{min-width:0}
body .acg-wrap .acg-overview-value small{margin:0 0 8px!important;line-height:1.45}
body .acg-wrap .acg-overview-value strong{line-height:1.25;overflow-wrap:anywhere}
body .acg-wrap .acg-monthly-section,body .acg-wrap .acg-colored-section{padding:clamp(20px,2.5vw,32px)!important;background:#fff!important;overflow:hidden}
body .acg-wrap .acg-monthly-section>.acg-flex:first-child,body .acg-wrap .acg-colored-section>.acg-flex:first-child{padding:16px 20px!important;margin:0 0 22px!important;border:1px solid #e5ebf3;border-left:4px solid var(--acg-gold);background:linear-gradient(110deg,#f7f9fc,#fff)!important;border-radius:12px!important}
body .acg-wrap .acg-colored-section .acg-dash-cols{margin:0!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px!important;align-items:start}
body .acg-wrap .acg-colored-section .acg-dash-cols>.acg-metrics{padding:14px 18px!important;margin:0!important;border:1px solid #e6edf4;border-radius:14px;background:#fafcff;min-width:0}
body .acg-wrap .acg-colored-section .acg-stat-row{display:flex;align-items:center;justify-content:space-between;gap:22px!important;padding:17px 12px!important;min-height:58px;border-bottom:1px solid #e8edf3}
body .acg-wrap .acg-colored-section .acg-stat-row:last-child{border-bottom:0}
body .acg-wrap .acg-colored-section .acg-stat-row span{line-height:1.5;overflow-wrap:anywhere}
body .acg-wrap .acg-colored-section .acg-stat-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}
body .acg-wrap .acg-table-scroll{margin:18px 0 0!important;max-width:100%;overflow-x:auto;border:1px solid #e4ebf3;border-radius:14px}
body .acg-wrap .acg-table{border-collapse:separate;border-spacing:0;width:100%}
body .acg-wrap .acg-table th{padding:16px 18px!important;font-size:12px;line-height:1.5;white-space:nowrap;background:#eef3f8!important;color:#233e58!important}
body .acg-wrap .acg-table td{padding:16px 18px!important;line-height:1.55;vertical-align:middle;border-bottom:1px solid #edf1f5;font-variant-numeric:tabular-nums}
body .acg-wrap .acg-table tbody tr:last-child td{border-bottom:0}
body .acg-wrap .acg-table tbody tr:hover{background:#f7faff}
body .acg-wrap .acg-pages{display:flex;justify-content:flex-end!important;gap:8px;flex-wrap:wrap;margin-top:22px}
body .acg-wrap .acg-pages a,body .acg-wrap .acg-pages span{padding:9px 13px;border-radius:9px}
body .acg-wrap .acg-pages .acg-current{background:var(--acg-ink);color:#fff}
body .acg-wrap .acg-green,body .acg-wrap .acg-stat-positive strong{color:#07875b!important}
body .acg-wrap .acg-red,body .acg-wrap .acg-stat-negative strong{color:#d13c4e!important}
body .acg-wrap .acg-stat-neutral strong{color:var(--acg-ink)!important}
body .acg-wrap .acg-trade-times{min-width:210px}
body .acg-wrap .acg-trade-times span{display:block;line-height:1.65;white-space:nowrap}
body .acg-wrap .acg-trade-times strong{font-size:11px;letter-spacing:.02em;color:#64748b;margin-right:6px}
body .acg-wrap .acg-trade-section .acg-market-table{min-width:1160px}
body .acg-wrap .acg-trade-section .acg-market-table tbody td{padding:15px 17px!important}
body .acg-wrap .acg-btn{background:var(--acg-gold)!important;border-radius:10px!important}
@media(max-width:1200px){body .acg-wrap .acg-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){body .acg-wrap .acg-colored-section .acg-dash-cols{grid-template-columns:1fr!important}}
@media(max-width:700px){body .acg-wrap{width:calc(100% - 24px)}body .acg-wrap .acg-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .acg-wrap .acg-dashboard{padding:18px!important}body .acg-wrap .acg-monthly-section>.acg-flex:first-child,body .acg-wrap .acg-colored-section>.acg-flex:first-child{padding:14px!important}body .acg-wrap .acg-table th,body .acg-wrap .acg-table td{padding:12px 13px!important}}
@media(max-width:480px){body .acg-wrap .acg-overview-grid{grid-template-columns:1fr}body .acg-wrap .acg-colored-section .acg-dash-cols>.acg-metrics{padding:8px!important}body .acg-wrap .acg-colored-section .acg-stat-row{padding:13px 8px!important;gap:12px!important}}


/* Layout refinements v1.3.0 */
:root{--acg-page-gutter:clamp(20px,3vw,52px)}
.site-header .acg-site-container,.acg-site-container{width:100%!important;max-width:1600px!important;padding-left:var(--acg-page-gutter)!important;padding-right:var(--acg-page-gutter)!important;margin-left:auto!important;margin-right:auto!important}
body .standard-page.acg-page-content{padding-top:112px!important;padding-bottom:32px!important;min-height:0}
body .standard-page.acg-page-content .entry-content{max-width:none;width:100%;margin:0}
body .standard-page.acg-page-content .entry-content>.acg-wrap{width:100%!important;max-width:none!important;margin:0 auto 20px!important}
body .standard-page.acg-page-content .entry-content>.acg-wrap>.acg-top{padding-top:0!important}
body .standard-page.acg-page-content .entry-content>.acg-wrap .acg-box:last-child{margin-bottom:0!important}
.acg-header-login{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:11px 20px!important;text-decoration:none!important;border-radius:10px}
.acg-account-toggle{display:inline-flex;align-items:center;gap:9px;min-height:44px;border:1px solid #b89a5f;background:#a9823d;color:#fff;border-radius:10px;padding:10px 16px;font-size:13px;font-weight:700;cursor:pointer}
.acg-account-toggle:hover,.acg-account-toggle:focus{background:#8f6e32;color:#fff}
.acg-account-menu .dropdown-menu{min-width:210px;padding:9px;border:1px solid #e5eaf0;border-radius:12px;box-shadow:0 18px 38px rgba(19,43,65,.14)}
.acg-account-menu .dropdown-item{padding:11px 12px;border-radius:8px;font-size:13px}
.acg-account-menu .dropdown-item:hover{background:#f5f0e5}
.acg-account-menu .acg-logout-item{color:#bd3444}
body .acg-wrap .acg-top h2{font-size:clamp(25px,2.5vw,34px);line-height:1.2;margin:5px 0 8px;color:#172e45}
body .acg-wrap .acg-top p{margin:0;line-height:1.6;color:#687888}
body .acg-wrap .acg-top .acg-eyebrow{font-size:11px;letter-spacing:.12em;color:#a9823d;font-weight:700}
body .acg-wrap .acg-dashboard h3{margin-bottom:6px!important}
@media(min-width:992px){body .standard-page.acg-page-content{padding-top:112px!important;padding-bottom:28px!important}body .acg-wrap .acg-box{margin-bottom:20px!important}}
@media(max-width:991px){body .standard-page.acg-page-content{padding-top:100px!important;padding-bottom:30px!important}.acg-header-auth{padding-bottom:12px}}


/* v1.3.5 mobile header + account menu: independent of connected strategies */
.site-header,.site-header .navbar,.site-header .acg-header-auth,.site-header .acg-account-menu{overflow:visible!important}
.site-header{z-index:9999!important}
.site-header .acg-account-menu{position:relative!important}
.site-header .acg-account-menu .dropdown-menu{z-index:10010!important;min-width:185px!important;position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 7px)!important;margin:0!important;background:#fff!important;color:#17334d!important;border:1px solid #e4e9ef!important;box-shadow:0 15px 35px #142c4530!important}
.site-header .acg-account-menu .dropdown-menu.show{display:block!important}
.site-header .acg-account-menu .dropdown-item{color:#243b53!important}
.site-header .acg-account-menu .acg-logout-item{color:#b72c42!important}
.site-header .acg-mobile-menu-toggle{width:43px!important;height:43px!important;display:none;align-items:center;justify-content:center;padding:8px!important;border:1px solid #a9823d!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important}
.site-header .acg-menu-bars{display:flex;flex-direction:column;gap:5px;width:22px}
.site-header .acg-menu-bars span{display:block;height:2.5px;width:100%;border-radius:2px;background:#1c344b!important}
.site-header .acg-mobile-menu-toggle:focus-visible{outline:3px solid #a9823d88!important;outline-offset:2px}
@media(max-width:991.98px){
 .site-header .navbar{display:flex!important;flex-wrap:wrap!important;gap:0!important;align-items:center!important}
 .site-header .navbar-brand{order:1!important;flex:1 1 0!important;min-width:0!important;margin-right:8px!important}
 .site-header .acg-header-auth{order:2!important;flex:0 0 auto!important;margin:0 9px 0 0!important;padding:0!important;max-width:min(48vw,180px)!important}
 .site-header .acg-header-login{display:inline-flex!important;min-height:40px!important;padding:9px 11px!important;font-size:11px!important;gap:6px!important;white-space:nowrap!important}
 .site-header .acg-account-toggle{max-width:min(45vw,175px)!important;min-height:40px!important;font-size:11px!important;padding:8px 10px!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important}
 .site-header .acg-mobile-menu-toggle{order:3!important;display:inline-flex!important;flex:0 0 43px!important}
 .site-header .navbar-collapse{order:4!important;flex:0 0 100%!important;width:100%!important;margin-top:12px!important;padding:12px 0!important;background:#fff!important;border-top:1px solid #e5eaf0!important}
 .site-header .navbar-collapse:not(.show):not(.collapsing){display:none!important}
 .site-header .navbar-nav{align-items:stretch!important;gap:2px!important}
 .site-header .navbar-nav .nav-link{padding:10px 12px!important}
}
@media(max-width:390px){.site-header .acg-header-login{font-size:10px!important;padding:8px!important}.site-header .custom-logo{max-width:132px!important;height:auto!important}.site-header .brand-name{font-size:13px!important;letter-spacing:1px!important}.site-header .brand-mark{font-size:28px!important}}

/* v1.3.8: reliable logged-in account menu, desktop + mobile */
.site-header{z-index:10020!important}
.site-header .navbar,.site-header .acg-header-auth,.site-header .acg-account-menu{overflow:visible!important}
.site-header .acg-header-auth{position:relative;z-index:10021}
.site-header .acg-account-menu{position:relative!important;isolation:auto}
.site-header .acg-account-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;max-width:240px;min-height:42px}
.site-header .acg-account-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-header .acg-account-chevron{font-size:12px;transition:transform .18s ease;flex-shrink:0}
.site-header .acg-menu-open .acg-account-chevron{transform:rotate(180deg)}
.site-header .acg-account-dropdown{position:absolute!important;top:calc(100% + 8px)!important;right:0!important;left:auto!important;z-index:10030!important;display:block!important;min-width:195px;max-width:min(92vw,260px);list-style:none;margin:0;padding:7px;background:#fff!important;color:#17334d;border:1px solid #e3e8ee;border-radius:12px;box-shadow:0 16px 38px rgba(12,32,51,.22)}
.site-header .acg-account-dropdown[hidden]{display:none!important}
.site-header .acg-account-link{display:flex;align-items:center;gap:10px;border-radius:8px;padding:11px 12px;text-decoration:none!important;font-size:13px;font-weight:600;color:#1b344e!important;line-height:1.3}
.site-header .acg-account-link:hover,.site-header .acg-account-link:focus{background:#f6f2e9!important;color:#17334d!important}
.site-header .acg-account-link i{font-size:16px;color:#a9823d}
.site-header .acg-account-divider{height:1px;border:0;background:#e6eaf0;margin:5px 7px}
.site-header .acg-account-link.acg-logout-item{color:#b83745!important}
.site-header .acg-account-link.acg-logout-item i{color:#b83745}
@media(max-width:991.98px){
 .site-header .acg-account-toggle{max-width:145px!important;padding:9px 10px!important}
 .site-header .acg-account-dropdown{right:0!important;min-width:185px!important}
}
@media(max-width:420px){.site-header .acg-account-toggle{max-width:110px!important}}
