/* A.A.M 3D PREMIUM v21.5.25 — single authoritative visual layer.
   Brand-only three-dimensional illustrations; source of all amounts remains JS application.
   Preserves native accessibility, focus and reduced-motion settings. */
html.aam-refined,html{
 --aam-night:#08051a;--aam-violet:#8538ff;--aam-purple:#5811de;--aam-amber:#ffb743;
 --aam-cream:#ffeab2;--aam-ink:#f8f4ff;--aam-subtle:#c6b9e4;
 --bg:#08051a;--page:#08051a;--surface:#140a39;--surface2:#1d1052;
 --panel:#190c45;--panel2:#1c0c4b;--aam-panel:#160a40;
 --line:rgba(142,80,244,.69);--aam-line:rgba(147,81,255,.69);
 --gold:#ffcd74;--gold2:#ffb33d;--accent:#ffcc6b;--accent2:#af68ff;
 --text:#fbfaff;--muted:#c7bae4;--admin-bg:#08051a;
 --admin-card:#190d44;--admin-border:rgba(156,87,248,.71);--admin-muted:#c7bae4;
 --admin-gold:#ffc267;--admin-gold-soft:#ffe09c;
 color-scheme:dark;
}
html.aam-refined body,html.aam-refined body.admin-simple-body{
 background:radial-gradient(ellipse 80% 45% at 63% -18%,rgba(102,20,229,.34),transparent 90%),
 radial-gradient(ellipse 60% 70% at -24% 65%,rgba(117,18,215,.18),transparent 76%),
 radial-gradient(ellipse 80% 48% at 110% 100%,rgba(149,43,221,.16),transparent 76%),#08051a!important;
 color:var(--aam-ink)!important;overflow-x:hidden!important;-webkit-font-smoothing:antialiased;
}
html.aam-refined body :is(.card,.admin-card,.admin-kpi,.basic-kpi,.operation-kpi,.portfolio-kpis>div,.loginbox,.settings-card,.settings-section,.aam-settings-section,.trust-chip,.modal-card,.public-hero,.finance-item,.payment-option){
 background:radial-gradient(ellipse 62% 93% at 104% 110%,rgba(132,38,229,.12),transparent 83%),
 linear-gradient(143deg,rgba(26,12,66,.98),rgba(11,7,34,.99) 88%)!important;
 border:1px solid rgba(139,75,231,.66)!important;border-radius:21px!important;
 box-shadow:inset 0 1px 0 rgba(232,190,255,.09),0 13px 27px rgba(3,0,24,.35)!important;
}
html.aam-refined body :is(.card,.admin-card,.admin-kpi,.basic-kpi,.operation-kpi,.portfolio-kpis>div){transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease!important}
@media(hover:hover){html.aam-refined body :is(.card,.admin-card,.admin-kpi,.basic-kpi,.operation-kpi):hover{
 border-color:rgba(203,130,255,.95)!important;transform:translateY(-2px);
 box-shadow:inset 0 1px rgba(244,205,255,.13),0 15px 34px rgba(21,3,74,.3),0 0 22px rgba(138,42,244,.15)!important;
}}
html.aam-refined body :is(h1,h2,h3,h4){letter-spacing:-.035em;text-wrap:pretty}
html.aam-refined body :is(.muted,.admin-page-title p,.title p,.card p,.admin-card p,.loginbox p){color:#c8bde6!important}
html.aam-refined body :is(.admin-page-title small,.title small,.head small,.admin-card small){color:#d2a7ff!important;letter-spacing:.17em!important}
html.aam-refined body :is(button,.btn,.admin-tab,.tab,.nav button){-webkit-tap-highlight-color:transparent;touch-action:manipulation;
 transition:transform .2s cubic-bezier(.2,1,.3,1),box-shadow .25s ease,border-color .25s ease,filter .25s ease!important;}
html.aam-refined body :is(.btn,button[type="submit"],.admin-tab,.tab){position:relative;isolation:isolate;overflow:hidden}
html.aam-refined body .btn:not(.danger):not(.primary),html.aam-refined body.admin-simple-body .btn:not(.danger):not(.primary){
 background:linear-gradient(145deg,#311267,#190e44)!important;border:1px solid #8e4fd6!important;
 color:#fff2ff!important;box-shadow:inset 0 1px rgba(255,255,255,.13),0 5px 14px rgba(48,4,151,.22)!important;
}
html.aam-refined body :is(.btn.primary,button.primary,.public-next,.public-submit),html.aam-refined body.admin-simple-body .btn.primary{
 background:linear-gradient(130deg,#ffe9a5 0%,#ffc661 43%,#f6a32d 100%)!important;
 border:1px solid #ffecb1!important;color:#291126!important;font-weight:850!important;
 box-shadow:inset 0 1px 1px rgba(255,255,255,.7),0 6px 16px rgba(200,99,15,.2),0 0 16px rgba(255,169,42,.33)!important;
}
html.aam-refined body :is(button,.btn,.admin-tab,.tab):not(:disabled):active{transform:translateY(1px) scale(.975)!important}
@media(hover:hover){html.aam-refined body :is(button,.btn,.admin-tab,.tab):not(:disabled):hover{
 filter:brightness(1.13);transform:translateY(-2px)!important;box-shadow:0 0 24px rgba(151,51,255,.3)!important;
}}
@media(hover:hover){html.aam-refined body :is(.btn.primary,button.primary):not(:disabled):hover{
 box-shadow:inset 0 1px rgba(255,255,255,.75),0 0 26px rgba(255,180,54,.49)!important;
}}
html.aam-refined body :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid #ffe5a3!important;outline-offset:3px!important}
html.aam-refined body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){
 background:#11082d!important;color:#fbf5ff!important;border:1px solid rgba(131,78,202,.83)!important;
 border-radius:12px!important;min-height:43px;box-shadow:inset 0 1px 3px rgba(0,0,0,.2)!important;
}
html.aam-refined body :is(input,select,textarea):focus{border-color:#c592ff!important;box-shadow:0 0 0 3px rgba(143,58,250,.26)!important}
html.aam-refined body :is(input,textarea)::placeholder{color:#ad9bcf!important;opacity:1}
html.aam-refined body input[type="checkbox"]{accent-color:#944cff}
html.aam-refined body :is(.pill,.tag,.chip,.badge){background:#271453!important;color:#ebd4ff!important;border-color:#8851d3!important}
/* App and admin header with the real identity; keep controls functional. */
html.aam-refined :is(.topbar,body.admin-simple-body .admin-topbar){
 background:linear-gradient(125deg,rgba(29,12,71,.98),rgba(10,6,33,.98) 82%)!important;
 border:1px solid rgba(119,62,216,.84)!important;border-radius:23px!important;
 box-shadow:inset 0 1px rgba(246,218,255,.1),0 13px 26px rgba(4,0,20,.35)!important;
}
html.aam-refined :is(.topbar,body.admin-simple-body .admin-topbar) .brand img{
 border:1px solid rgba(255,196,96,.82)!important;box-shadow:0 0 19px rgba(255,170,44,.3)!important;border-radius:17px;
}
html.aam-refined body .brand small{color:#ddbaef!important;letter-spacing:.2em!important}
html.aam-refined body.admin-simple-body .admin-tabs,
html.aam-refined .nav-shell.basic-nav-shell{
 background:linear-gradient(125deg,rgba(31,13,73,.97),rgba(14,8,44,.98))!important;
 border:1px solid #7536dc!important;box-shadow:inset 0 1px rgba(255,255,255,.1),0 9px 24px rgba(29,1,96,.36)!important;
 backdrop-filter:blur(18px);
}
html.aam-refined body.admin-simple-body .admin-tabs{display:flex!important;overflow:auto!important;gap:5px!important;padding:6px!important;scrollbar-width:thin;scrollbar-color:#7b42ca transparent;border-radius:17px!important}
html.aam-refined body.admin-simple-body .admin-tab{flex:1 0 auto!important;border-radius:12px!important;padding:10px 13px!important;font-size:.81rem!important;font-weight:760!important;color:#d3c0ec!important;min-height:44px!important;white-space:nowrap!important}
html.aam-refined body.admin-simple-body .admin-tab.active,
html.aam-refined .nav-shell.basic-nav-shell .basic-nav button.active{
 background:linear-gradient(145deg,#aa45ff 0%,#7925ec 45%,#4b09c7 100%)!important;
 border:1px solid #d895ff!important;color:#fff!important;
 box-shadow:inset 0 1px rgba(255,255,255,.42),0 0 20px rgba(165,49,255,.7),0 4px 14px rgba(81,3,185,.38)!important;
}
/* The two hero banners share one actual 3D asset, never embedded text or metric values. */
html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title,
html.aam-refined #home .basic-title{
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 display:flex!important;flex-direction:row!important;align-items:center!important;
 min-height:242px!important;padding:26px 42% 25px 27px!important;
 margin-bottom:15px!important;border-radius:26px!important;
 border:1px solid rgba(167,72,253,.86)!important;
 background:radial-gradient(ellipse 50% 78% at 94% 56%,rgba(141,41,240,.33),transparent 83%),
 linear-gradient(125deg,#1d0c4d,#0a0828 91%)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.14),0 12px 35px rgba(27,2,91,.34),0 0 22px rgba(123,30,233,.12)!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title::before,
html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title::after,
html.aam-refined #home .basic-title::before,html.aam-refined #home .basic-title::after{display:none!important;content:none!important}
html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title>div:first-child,
html.aam-refined #home .basic-title>div:first-child{position:relative!important;z-index:2!important;min-width:0!important}
html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title h1,
html.aam-refined #home .basic-title h1{
 color:#fff!important;font-size:clamp(1.7rem,3.7vw,2.75rem)!important;
 line-height:1.07!important;letter-spacing:-.047em!important;margin:10px 0!important;max-width:440px;
}
html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title h1 .aam-highlight,
html.aam-refined #home .aam-heading-gold{
 background:linear-gradient(110deg,#fff2bd,#ffd77d 43%,#ffaf38 90%);
 -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent!important;color:transparent!important;
 filter:drop-shadow(0 1px 9px rgba(255,178,45,.17));
}
html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title p,
html.aam-refined #home .basic-title p{line-height:1.45!important;max-width:460px!important;font-size:.88rem!important;color:#d4c8e9!important}
html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title small,
html.aam-refined #home .basic-title small{font-size:.72rem!important;letter-spacing:.23em!important;color:#d0a5ff!important;font-weight:850}
.aam-3d-hero-art{position:absolute;z-index:1;right:-2%;top:50%;width:min(51%,440px);pointer-events:none;transform:translateY(-50%);filter:drop-shadow(0 9px 14px rgba(83,21,184,.3));animation:aam3dHover 7s ease-in-out infinite}
.aam-3d-hero-art img{display:block;width:100%;height:auto}
@keyframes aam3dHover{0%,100%{transform:translateY(-50%) translateY(0)}50%{transform:translateY(-50%) translateY(-5px)}}
html.aam-refined #home .basic-title #cloud{
 position:relative!important;z-index:2!important;font-size:.7rem!important;padding:7px 11px!important;
 background:rgba(25,22,34,.9)!important;border:1px solid rgba(170,140,222,.47)!important;color:#f2e5ff!important;
 border-radius:999px!important;box-shadow:0 4px 12px rgba(0,0,0,.2)!important;
}
html.aam-refined body.admin-simple-body #aPanel #refreshFinanceDashboard{z-index:3!important;position:relative!important;min-height:38px!important}
/* Strict card layout prevents the overlapping icon/text bug from previous builds. */
html.aam-refined body.admin-simple-body #aPanel .admin-kpi-grid,
html.aam-refined #home .basic-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-bottom:0!important}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 position:relative!important;overflow:hidden!important;padding:17px 16px 15px!important;min-height:161px!important;
 background:linear-gradient(145deg,#201047,#0e0929)!important;border-color:#873fe5!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi:nth-child(even){
 background:linear-gradient(145deg,#271332,#100929)!important;border-color:rgba(245,170,67,.73)!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi::before{
 content:""!important;display:block!important;position:absolute;right:-32px;bottom:-70px;top:auto;left:auto;
 width:119px;height:119px;border-radius:50%;background:radial-gradient(circle,rgba(129,36,254,.25),transparent 76%);pointer-events:none;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi:nth-child(even)::before{background:radial-gradient(circle,rgba(250,151,43,.19),transparent 76%)}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi::after{display:none!important;content:none!important}
html.aam-refined body.admin-simple-body #aPanel .admin-metric-icon{
 position:static!important;inset:auto!important;display:block!important;flex:0 0 auto!important;
 width:42px!important;height:42px!important;padding:9px!important;margin:0 0 11px!important;
 stroke:#dcb1ff!important;fill:none!important;color:#dcb1ff!important;
 border:1px solid #9b52ee!important;border-radius:13px!important;
 background:linear-gradient(150deg,#5a12bf,#280e5e)!important;opacity:1!important;
 box-shadow:inset 0 1px rgba(255,255,255,.2),0 0 13px rgba(122,37,254,.22)!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi:nth-child(even) .admin-metric-icon{
 stroke:#ffcd79!important;color:#ffcd79!important;background:linear-gradient(150deg,#56282f,#261027)!important;
 border-color:rgba(244,172,72,.8)!important;box-shadow:0 0 13px rgba(255,157,44,.14)!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi>span{
 display:block!important;position:static!important;inset:auto!important;width:auto!important;max-width:100%!important;
 margin:0 0 3px!important;padding:0!important;min-height:0!important;
 text-transform:none!important;letter-spacing:0!important;white-space:normal!important;overflow:visible!important;
 font-size:.81rem!important;line-height:1.3!important;font-weight:700!important;color:#f0e7ff!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi:nth-child(even)>span{color:#ffe7bb!important}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi>strong{
 display:block!important;position:static!important;margin:3px 0 4px!important;padding:0!important;
 min-height:0!important;line-height:1.13!important;font-size:clamp(1.48rem,2.9vw,2.4rem)!important;color:#fff!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi>em{display:block!important;font-style:normal!important;position:static!important;line-height:1.3!important;font-size:.7rem!important;color:#bfb2d8!important}
html.aam-refined #home .basic-kpi{
 position:relative!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 padding:17px!important;min-height:155px!important;overflow:hidden!important;
 background:linear-gradient(140deg,#20104e,#0e092b)!important;
}
html.aam-refined #home .basic-kpi::before{
 content:""!important;position:absolute!important;left:auto!important;right:-40px!important;bottom:-65px!important;top:auto!important;
 width:120px!important;height:120px!important;border-radius:50%!important;background:radial-gradient(circle,rgba(136,57,254,.2),transparent 72%)!important;
}
html.aam-refined #home .basic-kpi:nth-child(even){border-color:rgba(233,149,50,.72)!important;background:linear-gradient(145deg,#21113e,#0f092c)!important}
html.aam-refined #home .basic-kpi::after{
 content:"◆"!important;display:grid!important;place-items:center!important;
 position:static!important;transform:none!important;left:auto!important;top:auto!important;width:40px!important;height:40px!important;margin:0 0 10px!important;
 color:#d5a4ff!important;background:linear-gradient(130deg,#6217cf,#2c0e70)!important;border:1px solid #ad64f8!important;border-radius:13px!important;font-size:19px!important;
 box-shadow:0 0 13px rgba(132,37,244,.18)!important;
}
html.aam-refined #home .basic-kpi:nth-child(2n)::after{content:"✦"!important;color:#ffe0a5!important;background:linear-gradient(130deg,#61332c,#270d28)!important;border-color:#ecab53!important}
html.aam-refined #home .basic-kpi>span{display:block!important;padding:0!important;margin:0!important;position:static!important;min-height:0!important;font-size:.77rem!important;line-height:1.25!important;color:#f0e5ff!important}
html.aam-refined #home .basic-kpi>strong{display:block!important;font-size:clamp(1.16rem,2.4vw,1.9rem)!important;line-height:1.14!important;letter-spacing:-.04em!important;margin:8px 0 7px!important;color:#fff!important;overflow-wrap:anywhere}
html.aam-refined #home .basic-kpi>em{font-size:.7rem!important;line-height:1.28!important;color:#bdb2d8!important;margin:0!important}
/* Real MRR remains text, a decorative vector chart sits behind it. */
html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card,
html.aam-refined #home .basic-actions.card{
 background:radial-gradient(ellipse 60% 92% at 102% 68%,rgba(125,41,215,.19),transparent 85%),linear-gradient(132deg,#20104c,#0e082c)!important;
 border:1px solid rgba(177,100,248,.75)!important;border-radius:23px!important;position:relative!important;overflow:hidden!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card::before,
html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card::after{display:none!important;content:none!important}
html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card>div{position:relative!important;z-index:2!important}
html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card h2{
 font-size:clamp(2rem,4vw,3rem)!important;line-height:1.05!important;color:#ffce76!important;
 text-shadow:0 0 23px rgba(255,168,36,.18)!important;letter-spacing:-.05em!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card .aam-lumina-mini-chart{
 display:block!important;position:absolute!important;right:0!important;bottom:-8px!important;top:auto!important;width:39%!important;height:92%!important;z-index:1!important;pointer-events:none!important;opacity:.6!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card .aam-lumina-mini-chart svg{width:100%;height:100%}
html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card .admin-quick-actions{position:relative!important;z-index:3!important}
html.aam-refined #home .basic-actions .actions .btn{border-radius:13px!important;min-height:47px}
html.aam-refined #home #basicQuickPayment{background:linear-gradient(120deg,#a43aff,#5713dd)!important;color:#fff!important;border-color:#ca83ff!important;box-shadow:0 0 16px rgba(148,43,250,.3)!important}
html.aam-refined #home #basicNewClient{background:linear-gradient(120deg,#ffe7a2,#ffb23c)!important;color:#261026!important;border-color:#ffe7ab!important;box-shadow:0 0 15px rgba(246,158,44,.26)!important}
/* Other real modules: same visual grammar, including tables, dialogs, settings, steps. */
html.aam-refined body .page:not(#home)>.title,
html.aam-refined body.admin-simple-body #aPanel .admin-page:not([data-admin-page="dashboard"])>.admin-page-title{
 background:linear-gradient(135deg,#1b0c45,#0c0926)!important;border:1px solid rgba(136,72,231,.74)!important;
 border-radius:19px!important;padding:20px!important;margin-bottom:14px!important;
}
html.aam-refined body :is(.modal,.dialog,.modal-card,dialog[open],.client,.company-card,.finance-company,.finance-plan-item){border-color:rgba(136,71,239,.65)!important}
html.aam-refined body :is(.modal-card,dialog[open],.finance-company,.finance-plan-item){background:linear-gradient(143deg,#211048,#0b0828)!important}
html.aam-refined body :is(.tabs,.public-tabs){background:#1a0d40!important;border:1px solid #6e34c2!important;border-radius:15px!important}
html.aam-refined body :is(.tabs .tab.active,.public-tabs .tab.active){background:linear-gradient(135deg,#a544ff,#4f16d4)!important;border:1px solid #b97aff!important;box-shadow:0 0 16px rgba(146,45,255,.33)!important;color:white!important}
html.aam-refined body :is(.progress-fill,.form-progress i){background:linear-gradient(90deg,#8732ff,#ffbe60)!important}
html.aam-refined body :is(.head,.row,.portfolio-list>*,.finance-plan-list>*){border-color:rgba(144,91,208,.31)!important}
html.aam-refined body :is(.loginbox,.public-hero) a:not(.btn){color:#e6bdff!important}
/* Optional staggered reveal/feedback has no effect on the underlying application events. */
.aam3d-touch-glow{position:absolute!important;pointer-events:none!important;border-radius:50%!important;z-index:4!important;transform:translate(-50%,-50%) scale(0);background:rgba(255,231,163,.34);animation:aam3dRipple .5s ease-out forwards}
@keyframes aam3dRipple{to{transform:translate(-50%,-50%) scale(1);opacity:0}}
@media(min-width:921px){
 html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title,
 html.aam-refined #home .basic-title{min-height:255px!important}
}
@media(max-width:920px){
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi-grid,
 html.aam-refined #home .basic-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card{flex-direction:column!important;align-items:stretch!important}
}
@media(max-width:620px){
 html.aam-refined body.admin-simple-body #aPanel.admin-shell{padding:11px 12px 108px!important}
 html.aam-refined :is(.topbar,body.admin-simple-body .admin-topbar){padding:11px 12px!important;border-radius:18px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-topbar .brand img{width:48px!important;height:48px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-topbar .brand small{font-size:.58rem!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-topbar .brand strong{font-size:1rem!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-tabs{margin:12px 0!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-tab{flex:0 0 auto!important;min-width:96px!important;padding:10px 12px!important;font-size:.78rem!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title,
 html.aam-refined #home .basic-title{padding:17px 40% 16px 15px!important;min-height:185px!important;border-radius:19px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title h1,
 html.aam-refined #home .basic-title h1{font-size:clamp(1.31rem,5.4vw,1.75rem)!important;line-height:1.08!important;margin:8px 0!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title small,
 html.aam-refined #home .basic-title small{font-size:.55rem!important;letter-spacing:.1em!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title p,
 html.aam-refined #home .basic-title p{font-size:.66rem!important;line-height:1.37!important;max-width:200px!important}
 .aam-3d-hero-art{width:52%;right:-6%;top:50%;filter:drop-shadow(0 3px 8px rgba(87,14,181,.32))}
 html.aam-refined body.admin-simple-body #aPanel #refreshFinanceDashboard{min-height:32px!important;padding:6px 10px!important;font-size:.68rem!important;position:relative!important}
 html.aam-refined #home .basic-title #cloud{font-size:.61rem!important;padding:5px 8px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi-grid,
 html.aam-refined #home .basic-kpis{gap:9px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi,
 html.aam-refined #home .basic-kpi{min-height:153px!important;padding:13px 12px!important;border-radius:17px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-metric-icon{width:36px!important;height:36px!important;margin-bottom:7px!important;padding:8px!important;border-radius:11px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi>span{font-size:.76rem!important;line-height:1.25!important;min-height:0!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi>strong{font-size:1.55rem!important;margin:4px 0!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi>em{font-size:.66rem!important;line-height:1.23!important}
 html.aam-refined #home .basic-kpi::after{width:35px!important;height:35px!important;font-size:17px!important;margin-bottom:8px!important}
 html.aam-refined #home .basic-kpi>span{font-size:.73rem!important}
 html.aam-refined #home .basic-kpi>strong{font-size:clamp(1.08rem,4.2vw,1.52rem)!important;margin:7px 0 6px!important}
 html.aam-refined #home .basic-kpi>em{font-size:.64rem!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card{padding:17px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card h2{font-size:2.07rem!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-revenue-card .aam-lumina-mini-chart{width:50%!important;opacity:.27!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-quick-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-quick-actions .btn{min-height:45px!important;padding:9px!important;font-size:.73rem!important;min-width:0!important}
 html.aam-refined #home .basic-actions.card{padding:17px!important}
 html.aam-refined #home .basic-actions .actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html.aam-refined #home .basic-actions .actions .btn{font-size:.72rem!important;min-height:47px!important;padding:9px 6px!important}
 html.aam-refined #home #basicOpenPortfolio{grid-column:1/-1!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-two-columns{grid-template-columns:1fr!important}
 html.aam-refined body .page:not(#home)>.title,
 html.aam-refined body.admin-simple-body #aPanel .admin-page:not([data-admin-page="dashboard"])>.admin-page-title{padding:16px!important}
}
@media(max-width:350px){
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi,
 html.aam-refined #home .basic-kpi{padding:11px 9px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-quick-actions{grid-template-columns:1fr!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title h1,
 html.aam-refined #home .basic-title h1{font-size:1.27rem!important}
}
@media(prefers-reduced-motion:reduce){html.aam-refined *,html.aam-refined *::before,html.aam-refined *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Last-pass mobile refinements from rendered UI review. */
html.aam-refined #home .basic-title h1 .aam-heading-gold{display:block!important}
html.aam-refined #home .basic-kpi::after{order:-1!important}
@media(max-width:620px){
 html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title{
  display:block!important;min-height:232px!important;padding:17px 43% 56px 15px!important;
 }
 html.aam-refined body.admin-simple-body #aPanel #refreshFinanceDashboard{
  position:absolute!important;z-index:5!important;left:15px!important;bottom:14px!important;top:auto!important;right:auto!important;
  width:auto!important;min-width:100px!important;max-width:120px!important;white-space:nowrap!important;
  font-size:.72rem!important;padding:7px 12px!important;
 }
 html.aam-refined body.admin-simple-body #aPanel .admin-page[data-admin-page="dashboard"]>.admin-page-title h1{font-size:1.47rem!important;max-width:175px!important}
 html.aam-refined #home .basic-title h1{max-width:195px!important;font-size:1.42rem!important}
 html.aam-refined #home .basic-kpi::after{order:-1!important;margin:0 0 9px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi-grid{gap:9px!important}
}
/* Compact data-first metric arrangement, matching the approved 3D dashboard proportions. */
html.aam-refined body.admin-simple-body #aPanel .admin-kpi,
html.aam-refined #home .basic-kpi{
 display:grid!important;grid-template-columns:47px minmax(0,1fr)!important;
 grid-template-rows:auto auto auto!important;column-gap:12px!important;
 align-content:center!important;align-items:center!important;min-height:130px!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi .admin-metric-icon{
 grid-column:1!important;grid-row:1/4!important;align-self:center!important;
 width:43px!important;height:43px!important;margin:0!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi>span,
html.aam-refined body.admin-simple-body #aPanel .admin-kpi>strong,
html.aam-refined body.admin-simple-body #aPanel .admin-kpi>em,
html.aam-refined #home .basic-kpi>span,html.aam-refined #home .basic-kpi>strong,html.aam-refined #home .basic-kpi>em{
 grid-column:2!important;align-self:center!important;min-width:0!important;
}
html.aam-refined #home .basic-kpi::after{
 grid-column:1!important;grid-row:1/4!important;align-self:center!important;
 width:43px!important;height:43px!important;margin:0!important;
}
html.aam-refined body.admin-simple-body #aPanel .admin-kpi>strong,
html.aam-refined #home .basic-kpi>strong{margin:3px 0!important}
@media(max-width:620px){
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi,
 html.aam-refined #home .basic-kpi{
  grid-template-columns:38px minmax(0,1fr)!important;column-gap:9px!important;
  min-height:125px!important;padding:11px 9px!important;
 }
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi .admin-metric-icon,
 html.aam-refined #home .basic-kpi::after{width:36px!important;height:36px!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi>span,
 html.aam-refined #home .basic-kpi>span{font-size:.72rem!important;line-height:1.2!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi>strong,
 html.aam-refined #home .basic-kpi>strong{font-size:1.45rem!important}
 html.aam-refined #home .basic-kpi>strong{font-size:clamp(1rem,3.7vw,1.43rem)!important;letter-spacing:-.05em!important}
 html.aam-refined body.admin-simple-body #aPanel .admin-kpi>em,
 html.aam-refined #home .basic-kpi>em{font-size:.62rem!important;line-height:1.2!important}
}
