/* A.A.M Cobranças v21.5.19 — Sistema Visual Refined
   Revisão de UI. Respeita IDs, listeners e a estrutura de dados existentes.
   Carregado por último: permite desativar a camada para diagnosticar conflitos. */
html.aam-refined{
 --bg:#090b0e; --surface:#14171c; --surface2:#1a1e24; --line:#313337;
 --text:#f7f4ed; --muted:#b4b1aa; --accent:#e0b85e; --accent2:#f5d997;
 --gold:#e0b85e; --gold2:#f5d997; --aam-panel:#14171c;
 --aam-line:rgba(229,209,165,.14);
 --aam-shadow:0 18px 55px rgba(0,0,0,.26);
 color-scheme:dark;
}
html.aam-refined,html.aam-refined body{scroll-behavior:smooth}
html.aam-refined body{
 color:#f7f4ed;
 background:radial-gradient(ellipse 73% 45% at 92% -12%,rgba(208,154,68,.115),transparent 76%),
 radial-gradient(ellipse 70% 60% at -38% 50%,rgba(58,76,93,.11),transparent 70%),#090b0e;
 -webkit-font-smoothing:antialiased;
 font-feature-settings:'tnum' 1;
}
html.aam-refined ::selection{background:rgba(225,182,89,.35);color:#fff}
html.aam-refined :where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{
 outline:2px solid #f4d28b!important;outline-offset:3px;
}
html.aam-refined :where(button,input,select,textarea){font-family:inherit}
html.aam-refined :where(button,.btn,a){-webkit-tap-highlight-color:transparent}
html.aam-refined :where(button,.btn):not(:disabled){transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .18s ease,color .18s ease}
html.aam-refined :where(button,.btn):not(:disabled):active{transform:translateY(1px) scale(.99)}
html.aam-refined .muted{color:#aeb0b5}
html.aam-refined .brand img{object-fit:contain;background:rgba(8,9,11,.58);border:1px solid rgba(224,184,94,.17);box-shadow:0 3px 16px rgba(0,0,0,.15)}
html.aam-refined .brand small{letter-spacing:.19em;font-size:.64rem;color:#d5b979}
html.aam-refined .brand strong{letter-spacing:-.015em;font-weight:760}
/* Auth: spatial hierarchy and comfortable, accessible form controls */
html.aam-refined .login{
 position:relative;isolation:isolate;min-height:100dvh;
 display:grid;grid-template-columns:minmax(0,1.05fr) minmax(350px,450px);
 align-items:center;justify-content:center;gap:clamp(28px,6vw,104px);
 padding:clamp(25px,5vw,64px) clamp(18px,6vw,80px);
 width:min(1320px,100%);margin:auto;
}
html.aam-refined .login:before{content:'';position:absolute;z-index:-1;
 width:min(62vw,780px);aspect-ratio:1;left:-22vw;top:-22vh;border-radius:50%;
 background:radial-gradient(circle,rgba(228,177,75,.115),transparent 70%);pointer-events:none}
html.aam-refined .aam-login-story{max-width:610px;padding:14px 0}
html.aam-refined .aam-story-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:.73rem;font-weight:750;
 letter-spacing:.17em;text-transform:uppercase;color:#e9c780;margin-bottom:24px}
html.aam-refined .aam-story-eyebrow:before{content:'';width:7px;height:7px;border-radius:50%;background:#e0b85e;box-shadow:0 0 0 6px rgba(224,184,94,.12)}
html.aam-refined .aam-login-story h2{margin:0;font-size:clamp(2.65rem,4.4vw,4.6rem);line-height:1.04;
 font-weight:790;letter-spacing:-.062em;color:#faf8f2;max-width:630px}
html.aam-refined .aam-login-story h2 span{color:#efcd80}
html.aam-refined .aam-login-story>p{max-width:500px;margin:23px 0 27px;color:#c0bec0;line-height:1.7;font-size:1rem}
html.aam-refined .aam-login-benefits{display:grid;gap:14px;list-style:none;margin:0;padding:0;color:#d7d4ce;font-size:.93rem}
html.aam-refined .aam-login-benefits li{display:flex;align-items:center;gap:11px}
html.aam-refined .aam-login-benefits li::before{content:'✓';display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;
 background:rgba(224,184,94,.115);border:1px solid rgba(224,184,94,.28);border-radius:50%;color:#edcb83;font-weight:700;font-size:.75rem}
html.aam-refined .loginbox{width:100%;max-width:460px;justify-self:center;
 padding:clamp(25px,3.4vw,40px);border:1px solid rgba(240,223,189,.15);
 border-radius:26px;background:linear-gradient(148deg,rgba(29,31,35,.97),rgba(16,18,22,.985));
 box-shadow:0 34px 90px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.035)}
html.aam-refined .loginbox .brand{margin-bottom:26px;gap:13px}
html.aam-refined .loginbox .brand img{width:50px;height:50px;border-radius:15px}
html.aam-refined .loginbox h1{font-size:clamp(1.7rem,4vw,2.25rem);line-height:1.15;letter-spacing:-.04em;margin:2px 0 9px}
html.aam-refined .loginbox>p{font-size:.88rem;line-height:1.6;margin:0 0 21px;color:#bfbcb7}
html.aam-refined .loginbox .stack{gap:11px}
html.aam-refined .aam-field-label{display:block;margin:7px 0 -5px;font-size:.75rem;font-weight:730;color:#e6e0d4;letter-spacing:.02em}
html.aam-refined :where(input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='hidden']),select,textarea){border-radius:13px;background:#101318;border:1px solid #3c4047;
 color:#f8f6f1;min-height:46px;padding:11px 14px;font-size:clamp(.87rem,2.6vw,.95rem)}
html.aam-refined :where(input,textarea)::placeholder{color:#989ca3;opacity:1}
html.aam-refined :where(input,select,textarea):not(:disabled):focus{border-color:#dfb96b;
 box-shadow:0 0 0 3px rgba(225,180,83,.15);outline:none}
html.aam-refined :where(input,select,textarea):disabled{opacity:.55}
html.aam-refined :where(input,select,textarea):is([aria-invalid='true'],:invalid:not(:placeholder-shown)):not(:focus){box-shadow:none}
html.aam-refined .loginbox input{min-height:52px;background:#0e1116;padding:13px 15px}
html.aam-refined .btn{border-radius:12px;border:1px solid #424148;background:#25262b;color:#f1eee7;
 min-height:45px;padding:11px 16px;font-size:.88rem;font-weight:690;letter-spacing:.005em}
html.aam-refined .btn:hover:not(:disabled){background:#303037;border-color:rgba(230,197,132,.37)}
html.aam-refined .btn.primary,html.aam-refined .admin-simple-body .btn.primary{
 border:1px solid #e7c478;background:linear-gradient(115deg,#f5d993,#e2ae51);
 color:#231906;box-shadow:0 6px 21px rgba(225,173,78,.14);font-weight:790;
}
html.aam-refined .btn.primary:hover:not(:disabled){background:linear-gradient(115deg,#ffe4a8,#e9bb64);box-shadow:0 9px 27px rgba(225,173,78,.20)}
html.aam-refined .btn.danger{background:rgba(168,48,64,.11);border-color:rgba(246,118,132,.36);color:#ffc0c5}
html.aam-refined .btn.small{min-height:39px;padding:8px 12px;font-size:.79rem}
html.aam-refined .loginbox .btn{min-height:47px;width:100%}
html.aam-refined .loginbox .btn.primary{margin-top:8px;min-height:52px}
html.aam-refined .loginbox .msg{margin-top:13px;min-height:18px;font-size:.83rem;line-height:1.5}
html.aam-refined .aam-login-footnote{text-align:center;margin:16px 0 0!important;font-size:.72rem!important;color:#9c9b98!important}
/* Global workspace rhythm */
html.aam-refined .topbar{background:rgba(15,17,21,.92);padding:11px clamp(17px,3vw,40px);
 border-color:rgba(232,205,143,.12);box-shadow:0 8px 28px rgba(0,0,0,.15)}
html.aam-refined .topbar .brand img{width:45px;height:45px;border-radius:13px}
html.aam-refined .topbar .brand strong{font-size:1rem}
html.aam-refined .topbar .brand span{font-size:.71rem;color:#a8a7a6}
html.aam-refined .wrap{width:min(1360px,100%);padding:clamp(15px,3vw,36px) clamp(14px,3vw,32px) 125px}
html.aam-refined .title{align-items:center;margin:8px 0 23px;gap:18px}
html.aam-refined :where(.title,.admin-page-title) small{color:#d5b675;font-weight:800;letter-spacing:.16em;font-size:.7rem}
html.aam-refined .title h1,html.aam-refined .admin-page-title h1{margin:6px 0 8px;font-size:clamp(1.75rem,4vw,2.75rem);
 font-weight:790;line-height:1.12;letter-spacing:-.045em;color:#f6f4ef}
html.aam-refined .title p,html.aam-refined .admin-page-title p{color:#adb0b6;line-height:1.55;font-size:.9rem}
html.aam-refined :where(.card,.kpi,.status,.basic-kpi,.operation-kpi,.admin-card,.admin-kpi){
 border-color:rgba(237,218,173,.13);background:linear-gradient(155deg,#1a1d22,#121419);
 box-shadow:0 12px 36px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.025)}
html.aam-refined :where(.card,.kpi,.status,.admin-card){border-radius:20px}
html.aam-refined :where(.card,.admin-card){padding:clamp(17px,2.5vw,23px)}
html.aam-refined :where(.head,.admin-section-head){align-items:center;gap:14px}
html.aam-refined :where(.head h3,.admin-section-head h3){font-weight:740;letter-spacing:-.025em;color:#f7f4ed}
html.aam-refined :where(.head small,.admin-card small){color:#d9bd81;font-size:.7rem;letter-spacing:.14em}
html.aam-refined .basic-dashboard{max-width:1200px}
html.aam-refined .basic-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
html.aam-refined .basic-kpi{position:relative;min-width:0;padding:23px 21px 20px;min-height:177px;border-radius:20px;
 justify-content:flex-start;overflow:hidden}
html.aam-refined .basic-kpi:before{content:'';position:absolute;width:95px;height:95px;right:-33px;top:-38px;border-radius:50%;
 border:1px solid rgba(225,183,96,.13);box-shadow:0 0 0 16px rgba(225,183,96,.022),0 0 0 38px rgba(225,183,96,.018);pointer-events:none}
html.aam-refined .basic-kpi:first-child{border-top:2px solid #d5ad56}
html.aam-refined .basic-kpi:nth-child(2){border-top:2px solid #a58e64}
html.aam-refined .basic-kpi:nth-child(3){border-top:2px solid #628b78}
html.aam-refined .basic-kpi:nth-child(4){border-top:2px solid #62809b}
html.aam-refined .basic-kpi span{font-size:.73rem;letter-spacing:.07em;color:#b6b5b0;font-weight:680}
html.aam-refined .basic-kpi strong{white-space:normal;overflow-wrap:anywhere;line-height:1.12;
 font-size:clamp(1.48rem,2.3vw,2.05rem);letter-spacing:-.04em;margin:23px 0 13px;font-weight:790;color:#fbfaf6}
html.aam-refined .basic-kpi em{margin-top:auto;color:#a7a6a6;font-size:.75rem;line-height:1.5}
html.aam-refined .basic-actions{padding:24px;gap:23px;border-radius:20px;align-items:center;margin-top:18px}
html.aam-refined .basic-actions h3{margin:5px 0 8px;font-size:1.28rem;letter-spacing:-.025em}
html.aam-refined .basic-actions p{font-size:.87rem;line-height:1.55;color:#aba9a6;max-width:500px}
html.aam-refined .basic-actions .actions{margin:0;padding:0;border:none;gap:9px}
html.aam-refined #cloud{font-size:.7rem;letter-spacing:.07em;border:1px solid rgba(225,186,101,.3);background:rgba(223,185,100,.08);
 color:#f0d394;border-radius:999px;padding:10px 13px}
/* Portfolio, lists and readable operational controls */
html.aam-refined .portfolio-filters{gap:11px}
html.aam-refined :where(.portfolio-kpis,.operations-kpis){gap:12px}
html.aam-refined :where(.operation-kpi,.portfolio-kpis>div){border-radius:18px}
html.aam-refined .portfolio-kpis>div{background:#191c21;border:1px solid rgba(237,218,173,.13)}
html.aam-refined :where(.client,.form-request,.finance-item,.payment-option,.row,.finance-plan-item){border-color:rgba(237,218,173,.14)}
html.aam-refined :where(.client,.form-request,.finance-item){background:#17191e;border-radius:15px}
html.aam-refined .client{padding:15px}
html.aam-refined .client h4{font-size:1rem;line-height:1.35;letter-spacing:-.015em}
html.aam-refined .client p{font-size:.78rem;line-height:1.5;color:#adaeb1}
html.aam-refined :where(.portfolio-table-head,.portfolio-list){min-width:0}
html.aam-refined .pill{background:rgba(225,179,85,.1);border-color:rgba(225,179,85,.26);color:#eaca83}
/* Forms, steps, modals */
html.aam-refined dialog.modal{border-color:rgba(235,211,168,.2);background:#15171b;box-shadow:0 24px 80px rgba(0,0,0,.5)}
html.aam-refined dialog.modal::backdrop{background:rgba(4,7,12,.78);backdrop-filter:blur(6px)}
html.aam-refined .premium-head{background:rgba(19,20,24,.96);border-color:rgba(235,211,168,.14);padding:16px clamp(15px,3vw,28px)}
html.aam-refined .premium-head h2{font-size:clamp(1.25rem,3.6vw,1.65rem);font-weight:760;letter-spacing:-.025em}
html.aam-refined :where(.premium-head p,.step-title small){color:#b9b5aa;font-size:.76rem}
html.aam-refined :where(.tabs,.public-tabs){gap:8px;scrollbar-width:none}
html.aam-refined .tabs{background:#15171b;border-color:rgba(236,213,172,.13)}
html.aam-refined :where(.tab,.public-tabs .tab){border:1px solid #3a3b3e;background:#202127;
 color:#bcbab7;border-radius:11px;min-height:42px;padding:10px 14px;font-weight:690}
html.aam-refined .tab.active{background:rgba(224,180,88,.16);color:#f6d896;border-color:rgba(238,196,115,.53)}
html.aam-refined :where(.step-title h3,.public-step h3){font-size:clamp(1.2rem,3vw,1.6rem);letter-spacing:-.02em}
html.aam-refined :where(.field-grid,.form,.admin-form-grid) label{color:#ddd8cb;font-size:.83rem;line-height:1.5}
html.aam-refined :where(.form,.field-grid,.admin-form-grid){gap:13px}
html.aam-refined :where(.row,.settings-row){border-color:rgba(235,211,168,.12)}
/* Navigation: clear active state without crowding thumb targets */
html.aam-refined .nav-shell.basic-nav-shell{width:min(660px,calc(100% - 26px));max-width:660px;
 border:1px solid rgba(229,199,128,.20);background:rgba(19,21,26,.96);border-radius:21px;
 box-shadow:0 20px 50px rgba(0,0,0,.38);padding:7px;backdrop-filter:blur(24px)}
html.aam-refined .basic-nav button{min-height:58px!important;border-radius:15px!important;color:#bdbbc1;
 font-weight:690}
html.aam-refined .basic-nav button.active{background:linear-gradient(135deg,#ebcb83,#d6a24d)!important;
 color:#1d180e!important;box-shadow:0 4px 14px rgba(209,161,68,.16)}
html.aam-refined .basic-nav .nav-label{font-size:.73rem!important;font-weight:700;letter-spacing:.01em}
html.aam-refined .basic-nav .nav-icon{width:21px!important;height:21px!important}
html.aam-refined .basic-nav button.active .nav-icon{color:#1d180e!important}
/* Admin area */
html.aam-refined .admin-simple-body{background:radial-gradient(ellipse 70% 40% at 95% -10%,rgba(216,168,83,.11),transparent 72%),#090b0e}
html.aam-refined .admin-shell{width:min(1380px,100%);padding:17px clamp(14px,3vw,35px) 90px}
html.aam-refined .admin-topbar{background:rgba(16,18,22,.94);border-color:rgba(230,203,149,.12);padding:13px 4px}
html.aam-refined .admin-tabs{background:rgba(25,27,32,.94);border:1px solid rgba(230,204,147,.17);
 border-radius:17px;padding:6px;box-shadow:0 12px 32px rgba(0,0,0,.15)}
html.aam-refined .admin-tab{font-size:.85rem;border-radius:12px;font-weight:690;color:#c6c3bd}
html.aam-refined .admin-tab.active{background:linear-gradient(115deg,#f1d38c,#daa84e);color:#251b0c;box-shadow:0 3px 12px rgba(225,176,74,.14)}
html.aam-refined .admin-kpi-grid{gap:13px}
html.aam-refined .admin-kpi{min-width:0;min-height:151px;border-radius:18px;padding:22px}
html.aam-refined .admin-kpi span{color:#bab9b7;font-size:.72rem}
html.aam-refined .admin-kpi strong{font-size:clamp(1.55rem,3vw,2rem);letter-spacing:-.045em}
html.aam-refined .admin-kpi em{font-size:.77rem;line-height:1.4;color:#aeb0b2}
html.aam-refined .admin-revenue-card{background:linear-gradient(125deg,#28231b,#181a1e 54%,#15171b);border-color:rgba(225,185,97,.32)}
html.aam-refined .admin-revenue-card h2{letter-spacing:-.05em;color:#f5d68e}
html.aam-refined .admin-card{overflow:visible}
html.aam-refined .admin-form-grid input,html.aam-refined .admin-form-grid select,
html.aam-refined .admin-section-head input,html.aam-refined .admin-section-head select{
 background:#111419;border-color:#3d4045;min-height:48px;color:#f8f5ec}
/* Public form: lower anxiety, clearer progress */
html.aam-refined .public-wrap{width:min(880px,100%);padding:clamp(16px,3.5vw,30px) clamp(14px,3vw,24px) 116px}
html.aam-refined .public-hero{background:linear-gradient(145deg,#222229,#15171d);border:1px solid rgba(235,212,166,.19);
 border-radius:23px;padding:clamp(19px,4vw,32px);margin-bottom:16px;box-shadow:var(--aam-shadow)}
html.aam-refined .public-hero h1{font-size:clamp(1.7rem,4.8vw,2.5rem);letter-spacing:-.04em;line-height:1.13;margin:20px 0 10px}
html.aam-refined .public-hero p{font-size:.89rem;line-height:1.66;max-width:650px;color:#c2c0bc}
html.aam-refined .trust-row{gap:8px;margin-top:20px}
html.aam-refined .trust-chip{font-size:.7rem;background:rgba(218,178,91,.10);border-color:rgba(224,187,105,.19);color:#ebd9b5;
 padding:8px 11px;border-radius:999px;font-weight:650}
html.aam-refined .progress-shell{background:#1b1e23;border-color:rgba(235,212,166,.17);border-radius:16px;padding:15px 17px}
html.aam-refined .progress-head{font-size:.79rem;color:#b6b8bb}
html.aam-refined .progress-track{height:7px;background:#3b3833}
html.aam-refined .progress-fill{background:linear-gradient(90deg,#bb873c,#f2d58c)}
html.aam-refined .public-actions{background:rgba(15,17,21,.97);border-color:rgba(238,214,169,.19);padding:12px max(15px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-bottom));box-shadow:0 -8px 36px rgba(0,0,0,.22)}
html.aam-refined .state-card{background:linear-gradient(145deg,#23252a,#15171c);border-color:rgba(238,214,169,.17);border-radius:20px}
html.aam-refined .state-card h2{font-size:1.45rem;letter-spacing:-.03em}
/* Marketing pages, no change to pricing or CTAs */
html.aam-refined.aam-marketing body{background:radial-gradient(ellipse 80% 38% at 72% 0%,rgba(193,144,65,.14),transparent 72%),#090b0e}
html.aam-refined.aam-marketing header{background:rgba(13,15,18,.93);border-bottom:1px solid rgba(242,222,177,.14)}
html.aam-refined.aam-marketing nav{min-height:78px}
html.aam-refined.aam-marketing .brand img{width:59px;height:59px;border-radius:16px}
html.aam-refined.aam-marketing .brand-text b{font-weight:800;letter-spacing:-.04em}
html.aam-refined.aam-marketing .hero{padding-top:clamp(45px,6vw,90px);min-height:620px}
html.aam-refined.aam-marketing h1{font-weight:810;letter-spacing:-.06em;line-height:1.04}
html.aam-refined.aam-marketing .hero p{color:#c3c0b9;line-height:1.75}
html.aam-refined.aam-marketing .tag{background:rgba(230,182,91,.10);border-color:rgba(241,194,104,.32);padding:8px 13px}
html.aam-refined.aam-marketing .mini{border-color:rgba(242,223,182,.17)}
html.aam-refined.aam-marketing .plan,html.aam-refined.aam-marketing .feature,
html.aam-refined.aam-marketing .trust,html.aam-refined.aam-marketing .cta{
 background:linear-gradient(145deg,#1b1e23,#121419);border-color:rgba(235,213,172,.16);border-radius:21px;
 box-shadow:0 16px 45px rgba(0,0,0,.17)}
html.aam-refined.aam-marketing .plan.featured{border-color:rgba(239,197,115,.6);box-shadow:0 20px 55px rgba(0,0,0,.3),0 0 0 1px rgba(228,172,74,.1)}
html.aam-refined.aam-marketing .feature{padding:25px}
html.aam-refined.aam-marketing .feature h3{color:#f1d58f;font-size:1.1rem}
html.aam-refined.aam-marketing .feature p{color:#b9b9b8;font-size:.89rem;line-height:1.65}
html.aam-refined.aam-marketing .section-title h2{letter-spacing:-.042em}
html.aam-refined.aam-marketing .btn{border-radius:12px;font-weight:770;min-height:48px}
html.aam-refined.aam-marketing .btn.gold,html.aam-refined.aam-marketing .btn.whatsapp{
 background:linear-gradient(120deg,#f0d28d,#dba94f);color:#241809;box-shadow:0 9px 25px rgba(210,158,62,.13)}
html.aam-refined.aam-marketing .cta{padding:clamp(25px,4vw,48px);border-color:rgba(228,184,99,.38)}
/* Desktop navigation is an intentional side rail, not a floating mobile tab bar. */
@media(min-width:1160px){
 html.aam-refined .nav-shell.basic-nav-shell{
  position:fixed!important;left:20px!important;right:auto!important;top:116px!important;bottom:auto!important;
  width:92px!important;max-width:92px!important;transform:none!important;border-radius:20px!important;padding:8px!important;
 }
 html.aam-refined .basic-nav{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
 html.aam-refined .basic-nav button{display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:5px!important;min-height:72px!important;min-width:0!important}
 html.aam-refined .basic-nav .nav-icon{width:24px!important;height:24px!important}
 html.aam-refined .basic-nav .nav-label{font-size:.68rem!important;line-height:1.2;white-space:normal;text-align:center}
 html.aam-refined .wrap{width:min(1410px,calc(100% - 116px));margin-left:max(116px,calc((100vw - 1410px)/2));margin-right:0}
}
/* Responsive: retain existing one-column forms and four thumb-friendly tabs */
@media(max-width:1050px){
 html.aam-refined .basic-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.aam-refined .login{grid-template-columns:minmax(0,.85fr) minmax(340px,440px);gap:34px}
 html.aam-refined .aam-login-story h2{font-size:clamp(2.2rem,4.2vw,3.1rem)}
}
@media(max-width:740px){
 html.aam-refined .login{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:20px 16px 32px;min-height:100dvh;justify-content:center}
 html.aam-refined .aam-login-story{padding:7px 4px 22px;max-width:460px;width:100%;margin:auto}
 html.aam-refined .aam-story-eyebrow{margin-bottom:9px;font-size:.63rem}
 html.aam-refined .aam-login-story h2{font-size:clamp(1.7rem,6.7vw,2.4rem);line-height:1.12}
 html.aam-refined .aam-login-story>p{font-size:.82rem;line-height:1.55;margin:11px 0 0}
 html.aam-refined .aam-login-benefits{display:none}
 html.aam-refined .loginbox{max-width:460px;padding:23px 20px;border-radius:22px}
 html.aam-refined .loginbox .brand{margin-bottom:18px}
 html.aam-refined .loginbox h1{font-size:1.55rem}
 html.aam-refined .title{align-items:flex-start;gap:12px;flex-wrap:wrap}
 html.aam-refined .title h1{font-size:clamp(1.62rem,6vw,2.2rem)}
 html.aam-refined .wrap{padding:18px 14px 115px}
 html.aam-refined .topbar{padding:12px 16px}
 html.aam-refined .basic-kpis{gap:11px}
 html.aam-refined .basic-kpi{min-height:145px;padding:18px 15px}
 html.aam-refined .basic-kpi strong{font-size:clamp(1.25rem,4.5vw,1.85rem);margin:19px 0 10px}
 html.aam-refined .basic-kpi span{font-size:.68rem}
 html.aam-refined .basic-kpi em{font-size:.69rem}
 html.aam-refined .basic-actions{align-items:stretch;flex-direction:column;padding:21px 17px}
 html.aam-refined .basic-actions .actions{display:grid;grid-template-columns:1fr;gap:9px}
 html.aam-refined .basic-actions .actions .btn{width:100%}
 html.aam-refined .nav-shell.basic-nav-shell{width:calc(100% - 20px)!important;left:50%!important;right:auto!important;
 transform:translateX(-50%)!important;bottom:max(9px,env(safe-area-inset-bottom));padding:6px}
 html.aam-refined .basic-nav button{min-height:55px!important;padding:6px 2px!important}
 html.aam-refined .basic-nav .nav-label{font-size:.66rem!important}
 html.aam-refined .admin-shell{padding:12px 12px 100px}
 html.aam-refined .admin-tabs{top:65px;display:flex;overflow-x:auto;gap:6px}
 html.aam-refined .admin-tab{flex:0 0 auto;min-width:91px;padding:9px 12px}
 html.aam-refined .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.aam-refined .admin-kpi{padding:16px;min-height:129px}
 html.aam-refined .admin-revenue-card{flex-direction:column;align-items:stretch}
 html.aam-refined .public-wrap{padding:14px 12px 116px}
 html.aam-refined .public-hero{padding:22px 17px}
 html.aam-refined .trust-chip{font-size:.66rem}
 html.aam-refined.aam-marketing .hero{min-height:auto;padding:48px 0 38px}
 html.aam-refined.aam-marketing .brand img{width:49px;height:49px}
}
@media(max-width:450px){
 html.aam-refined .basic-kpis{grid-template-columns:1fr 1fr!important;gap:9px}
 html.aam-refined .basic-kpi{min-height:143px;padding:15px 12px}
 html.aam-refined .basic-kpi strong{font-size:clamp(1.2rem,5vw,1.55rem);overflow-wrap:anywhere}
 html.aam-refined .basic-kpi em{font-size:.68rem}
 html.aam-refined .topbar .brand img{width:41px;height:41px}
 html.aam-refined .topbar .brand strong{font-size:.91rem}
 html.aam-refined .admin-kpi-grid{gap:9px}
 html.aam-refined .admin-kpi strong{font-size:1.48rem}
 html.aam-refined .login{padding:18px 12px 27px}
 html.aam-refined .aam-login-story{padding-left:6px;padding-right:6px}
 html.aam-refined .loginbox{padding:20px 17px}
}
@media(max-width:345px){html.aam-refined .basic-kpis,html.aam-refined .admin-kpi-grid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){
 html.aam-refined *,html.aam-refined *::before,html.aam-refined *::after{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}
}
