/* Mi cuenta: scoped layout, independent of public landing-page defaults. */
.account-portal,.account-company-setup,.account-edit,.account-client-terms{box-sizing:border-box;color:var(--nuvile-ink);border-radius:9px;resize:both;box-shadow:0 16px 55px #092c3c38}
:is(.account-portal,.account-company-setup,.account-edit,.account-client-terms) *{box-sizing:border-box}
.account-portal{width:min(1180px,calc(100vw - 32px));height:min(780px,calc(100dvh - 88px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 72px);overflow:hidden;min-width:320px;min-height:320px}
:is(.account-portal,.account-company-setup,.account-edit,.account-client-terms)>.dialog-head,:is(.account-client-terms)>header{height:46px;min-height:46px;flex:none;padding:6px 14px;gap:10px;font-size:16px;border-bottom:0;flex-wrap:nowrap}
:is(.account-portal,.account-company-setup,.account-edit,.account-client-terms)>.dialog-head strong{font-size:16px;letter-spacing:0;line-height:1.25;min-width:0}
:is(.account-portal,.account-company-setup,.account-edit,.account-client-terms) button,:is(.account-portal,.account-company-setup,.account-edit,.account-client-terms) a:is(.primary,.outline){width:auto;min-height:32px;height:auto;margin:0;max-width:100%;padding:6px 12px;font-size:13px;line-height:1.3;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:4px;text-align:center;white-space:normal}
:is(.account-portal,.account-company-setup,.account-edit,.account-client-terms) button:focus-visible{outline:2px solid var(--nuvile-focus);outline-offset:2px}
:is(.account-portal,.account-company-setup,.account-edit,.account-client-terms) button:disabled{opacity:.55;cursor:default}
:is(.account-portal,.account-company-setup,.account-edit,.account-client-terms)>.dialog-head button,:is(.account-client-terms)>header button{width:auto;min-width:30px;height:30px;min-height:30px;padding:3px 8px;flex:none;color:white;background:transparent;border-color:#ffffff55}
.account-portal .account-shell{grid-template-columns:220px minmax(0,1fr);overflow:hidden;min-height:0}
.account-portal .account-shell>aside{display:flex;width:auto;min-width:0;min-height:0;padding:14px 12px;gap:8px;color:var(--nuvile-ink);overflow:auto}
.account-portal .account-shell>aside>small{font-size:11px;margin:0;color:var(--nuvile-muted)}
.account-portal .account-shell>aside select{height:32px;min-height:32px;padding:5px 8px;font-size:13px;margin:0}
.account-portal .account-shell nav{display:flex;flex-direction:column;gap:5px;margin:8px 0 0}
.account-portal .account-shell nav button{width:100%;justify-content:flex-start;text-align:left;min-height:36px;margin:0;padding:8px 10px;gap:9px;border:1px solid transparent;color:var(--nuvile-primary);font-size:13px;flex:none}
.account-portal .account-shell nav button.selected{background:var(--nuvile-accent-soft);border-color:var(--nuvile-border);font-weight:600}
.account-portal .account-shell nav button:hover{background:var(--nuvile-soft);color:var(--nuvile-primary-hover)}
.account-portal .account-shell>main{display:block;flex:1;width:100%;max-width:none;margin:0;padding:16px;min-height:0;min-width:0;overflow:auto;background:var(--nuvile-paper)}
.account-portal h2,.account-portal h3{letter-spacing:0;color:var(--nuvile-ink);line-height:1.3}
.account-portal h2{font-size:23px;margin:5px 0 10px}
.account-portal h3{font-size:16px;margin:0 0 10px}
.account-portal p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.account-portal small{color:var(--nuvile-muted);overflow-wrap:anywhere}
.account-portal .account-card{padding:14px;margin:12px 0;border-radius:5px;background:var(--nuvile-surface);min-width:0}
.account-portal .account-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;margin:12px 0;min-width:0}
.account-portal .account-grid>.account-card{margin:0}
.account-portal .account-form{width:100%;max-width:none;margin:0;gap:12px;min-width:0}
:is(.account-portal,.account-company-setup,.account-edit) label{min-width:0;margin:0;color:var(--nuvile-ink);font-size:12px;gap:4px;letter-spacing:0}
:is(.account-portal,.account-company-setup,.account-edit) input:not([type=checkbox]),:is(.account-portal,.account-company-setup,.account-edit) select{width:100%;height:32px;min-height:32px;margin:0;padding:5px 9px;font-size:13px;background:var(--nuvile-surface);color:var(--nuvile-ink);border:1px solid var(--nuvile-border);border-radius:4px;min-width:0}
.account-portal .account-form>button{justify-self:end}
.account-portal .account-form>footer,.account-portal .account-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:10px 0 0;padding:10px 0 0;border-top:1px solid var(--nuvile-border)}
.account-portal>.account-portal-footer{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:9px 14px;border-top:1px solid var(--nuvile-border);background:var(--nuvile-surface);min-height:52px}
.account-portal-footer .account-identity{margin:0 auto 0 0;min-width:0;font-size:12px;overflow-wrap:anywhere}
.account-portal-footer .account-identity small{font-size:11px;display:block}
.account-portal-footer button{flex:0 0 auto;min-width:100px}
.account-portal .company-heading{gap:12px;align-items:center;flex-direction:row;flex-wrap:wrap}
.account-portal .company-heading h2{font-size:23px}
.account-portal .company-layout{margin-top:14px}
.account-portal .company-layout .account-grid{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));margin:0}
.account-portal .company-layout .account-card{padding:16px}
.account-portal .company-layout .account-actions{justify-content:flex-start;align-items:center;flex-direction:row}
.account-portal .company-guide-entry{margin-top:12px;padding-top:10px}
.account-portal .company-tabs-note{margin-top:12px;padding:10px 12px}
.account-portal .account-notice{position:static;display:flex;flex-direction:row;width:auto;max-width:100%;min-width:0;padding:12px;gap:10px;color:var(--nuvile-ink);border-radius:5px;background:var(--nuvile-soft)}
.account-portal .account-notice p{min-width:0;flex:1 1 180px}
.account-portal .account-plan-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));margin:12px 0;gap:12px}
.account-portal .account-plan button{align-self:flex-end}
.account-portal .account-price{font-size:26px;margin-top:0}
.account-portal .account-badge{padding:5px 9px;border-radius:5px;font-size:12px}
.account-portal .account-receipts{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.account-portal .account-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.account-portal .account-profile-grid>.account-card{margin:0}
.account-portal .account-profile-grid>.account-card:last-child{grid-column:1/-1}
.account-portal .nv-package-layout{grid-template-columns:minmax(0,1fr) minmax(220px,.9fr);gap:16px}
.account-portal .account-activity-empty{padding:14px;border:1px solid var(--nuvile-border);border-radius:5px;background:var(--nuvile-surface)}
/* Compact child editors, with a visible action footer and internal scrolling. */
.account-company-setup{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 40px)}
.account-company-setup[open],.account-edit[open]{display:flex;flex-direction:column;overflow:hidden}
.account-company-setup>form{width:100%;max-width:none;margin:0;flex:1;min-height:0;max-height:calc(100dvh - 88px)}
.account-company-setup main{width:100%;max-width:none;margin:0;padding:16px;flex:1;min-height:0;overflow:auto}
.account-company-setup h2{font-size:23px;letter-spacing:0;margin:5px 0 10px}
.account-company-setup h3{font-size:16px;letter-spacing:0}
.account-company-setup p{font-size:13px;line-height:1.5}
.account-company-setup .account-setup-grid{gap:12px;margin:16px 0}
.account-company-setup .account-exercise{padding:12px;margin:14px 0;border-radius:5px}
.account-company-setup .account-notice{padding:12px;border-radius:5px}
.account-company-setup footer,.account-edit footer{flex:none;gap:8px;align-items:center;justify-content:flex-end;background:var(--nuvile-surface);padding:9px 14px;border-top:1px solid var(--nuvile-border)}
.account-company-setup footer .primary{min-width:145px}
.account-edit>form{width:100%;max-width:none;margin:0;min-height:0;overflow:auto;padding:14px;display:grid;gap:12px}
.account-edit footer{position:sticky;bottom:-14px;margin:0 -14px -14px}
.account-client-terms>form{width:100%;max-width:none;margin:0}
.account-client-terms main{padding:14px}
.account-client-terms footer{padding:9px 14px}
body:has(#login-view) :is(.account-portal,.account-company-setup,.account-client-terms) footer>#nv-support-launch{position:static;display:inline-flex;width:auto;max-width:100%;margin:0 auto 0 0;min-width:0;min-height:32px;height:32px;padding:5px 9px;font:400 12px/1.3 'Segoe UI',sans-serif;border-radius:4px;box-shadow:none;order:-1;flex:0 0 auto}
.account-portal-footer:has(#nv-support-launch) .account-identity{margin-right:auto}
@media(max-width:800px){.account-portal .account-shell{grid-template-columns:190px minmax(0,1fr)}.account-portal .account-profile-grid,.account-portal .nv-package-layout{grid-template-columns:1fr}}
@media(max-width:700px){
 .account-portal{width:calc(100vw - 16px);height:calc(100dvh - 24px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);min-width:0}
 .account-portal .account-shell{display:flex;flex-direction:column;overflow:hidden}
 .account-portal .account-shell>aside{flex:none;display:flex;width:100%;padding:8px 10px;gap:6px;overflow:hidden;border-right:0;border-bottom:1px solid var(--nuvile-border)}
 .account-portal .account-shell>aside>small{display:none}
 .account-portal .account-shell>aside select{max-width:100%}
 .account-portal .account-shell nav{display:flex;flex-direction:row;overflow-x:auto;gap:5px;margin:0;padding-bottom:3px;max-width:100%;scrollbar-width:thin}
 .account-portal .account-shell nav button{width:auto;min-height:34px;padding:6px 9px;white-space:nowrap}
 .account-portal .account-shell>main{padding:12px}
 .account-portal>.dialog-head{padding:6px 10px;font-size:14px}
 .account-portal>.dialog-head strong{font-size:14px}
 .account-portal>.account-portal-footer{padding:8px 10px;gap:6px}
 .account-portal-footer .account-identity{font-size:11px}
 .account-portal-footer .account-identity small{display:none}
 .account-portal-footer button{min-width:0;padding:6px 8px;font-size:12px}
 .account-portal .company-heading{align-items:flex-start;gap:8px}
 .account-portal h2,.account-portal .company-heading h2{font-size:21px}
 .account-portal .account-card{padding:12px}
 .account-portal .account-grid,.account-portal .company-layout .account-grid{grid-template-columns:1fr}
 .account-portal .account-section-title{gap:8px}
 .account-portal .account-section-title .account-badge{margin-left:0}
 .account-company-setup .account-setup-grid{grid-template-columns:1fr}
 :is(.account-company-setup,.account-edit,.account-client-terms){max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px)}
 .account-client-terms .account-grid{grid-template-columns:1fr}
 .account-client-terms footer button{min-width:0;flex:0 1 auto}
 .account-portal-footer:has(#nv-support-launch) .account-identity{display:none}
 :is(.account-company-setup,.account-client-terms) footer:has(#nv-support-launch){flex-wrap:wrap}
 :is(.account-company-setup,.account-client-terms) footer>#nv-support-launch{margin-right:auto}
}
@media(max-width:420px){
 :is(.account-company-setup,.account-client-terms) footer:has(#nv-support-launch){display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,auto)}
 :is(.account-company-setup,.account-client-terms) footer>#nv-support-launch{grid-column:1/-1;justify-self:start}
 :is(.account-company-setup,.account-client-terms) footer>:is([data-close],[data-back]){grid-column:2}
 :is(.account-company-setup,.account-client-terms) footer>.primary{grid-column:3;min-width:0}
}

.account-portal-footer .nv-package-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-right:auto;min-width:0}
.account-portal-footer .nv-package-footer [role=status]{font-size:12px;max-width:260px;overflow-wrap:anywhere}
.account-portal>.account-portal-footer:has([data-billing-save-footer]){flex-wrap:wrap}
