/* Beta visual system: presentation only; native content, calculations and actions stay intact. */
@font-face{font-family:Profit Serif;src:url('/release-assets/fonts/SourceSerif4-Semibold.ttf') format('truetype');font-weight:600;font-display:swap}
html:root body:is(.msp-product,.msp-access,.msp-onboarding){--ux-ink:#171817;--ux-muted:#42483f;--ux-line:#dfe2da;--ux-focus:#71548d;--ux-serif:Profit Serif,Georgia,serif;--msp-muted:#42483f;--nav-paper:#fff;--nav-muted:#42483f;--msp-shell-sidebar:210px;background:#fff!important;color:var(--ux-ink);font-family:var(--msp-font);font-size:15px;line-height:1.5}
html[data-theme=dark]:root body:is(.msp-product,.msp-access,.msp-onboarding){--ux-ink:#f5f5ef;--ux-muted:#d6dbd2;--ux-line:#454c42;--ux-focus:#c9b3df;--msp-muted:#d6dbd2;--nav-paper:#252329;background:#1b201b!important}
html:root body.msp-product.msp-product .main h1,html:root body.msp-access.msp-access h1,html:root body.msp-onboarding.msp-onboarding .intro h1{font-family:var(--ux-serif)!important;font-size:34px!important;font-weight:600!important;line-height:1.16!important;letter-spacing:-.025em!important;color:var(--ux-ink)!important;margin:0 0 10px!important}
html:root body.msp-product.msp-product .main :is(.page-head,.head,.account-hero){gap:16px!important;padding-bottom:16px!important;margin-bottom:18px!important;align-items:flex-start}
html:root body.msp-product.msp-product .main :is(.page-head,.head,.account-hero)>div{min-width:0}
html:root body.msp-product.msp-product :is(.page-head p,.head p,.account-hero p){font:400 15px/1.6 var(--msp-font)!important;color:var(--ux-muted)!important;max-width:80ch;margin-top:0}
html:root body.msp-product.msp-product :is(.section-head h2,.panel-head h2,.sim-title,.result-title-main,.drawer-head h2,.ps-modal-head h3){font-size:22px!important;line-height:1.3!important;color:var(--ux-ink)!important;font-weight:600!important}
html:root body.msp-product.msp-product :is(.section-help,.sim-sub,.result-sub,.drawer-sub,.commercial-card small,.price-control-copy small,.ps-modal-head p,.ps-help,.ps-option small,.shipping-note,.result-meta,.discount-row,.base-row>span:first-child,.form-instructions,.status-note,.kpi-note,.kpi-change,.capacity-line,.small-panel p){font-size:14px!important;line-height:1.55!important;color:var(--ux-muted)!important;font-weight:400!important}
html:root body.msp-product.msp-product :is(.field label,.form label,.ps-form label,.fiscal-box label){font-size:14px!important;line-height:1.5!important;color:var(--ux-ink)!important;font-weight:500!important}
html:root body.msp-product.msp-product :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea){font-family:var(--msp-font)!important;font-size:15px!important;color:var(--ux-ink)!important;min-height:44px;max-width:100%;box-sizing:border-box}
html:root body.msp-product.msp-product :is(.primary,.secondary,.save,.button,.ps-confirm,.ps-cancel,.apply-action){font:500 14px/1.45 var(--msp-font)!important;min-height:44px!important;height:auto!important;border-radius:6px!important;box-shadow:none!important;padding:10px 14px!important}
html:root body.msp-product.msp-product :is(.primary,.save,.ps-confirm,.apply-action):not(:disabled){background:var(--ux-ink)!important;color:#fff!important;border-color:var(--ux-ink)!important}
html:root body.msp-product.msp-product :is(button,a,input,select,summary,textarea):focus-visible{outline:2px solid var(--ux-focus)!important;outline-offset:3px}
html:root body.msp-product.msp-product .sidebar{background:var(--nav-paper)!important;padding:16px 0!important;width:var(--msp-shell-sidebar)!important}
html:root body.msp-product.msp-product .sidebar .nav a{font-size:14px!important;font-weight:600!important;min-height:44px!important;line-height:1.4!important}
html:root body.msp-product.msp-product .sidebar .brand{padding:24px 18px 14px!important}
html:root body.msp-product.msp-product .sidebar .tagline{font-size:13px!important;line-height:1.5!important}
html:root body.msp-product.msp-product .main .kpis{align-items:stretch!important;gap:12px!important}
html:root body.msp-product.msp-product .main .kpis>.kpi{height:100%!important;min-height:0!important;box-sizing:border-box;padding:14px!important}
html:root body.msp-product.msp-product #content>.summary>.card{min-height:0!important;padding:16px!important;gap:8px!important}
html:root body.msp-product.msp-product #content>.summary>.card{position:relative}
html:root body.msp-product.msp-product #content>.summary>.card .compact-plan-link{position:absolute!important;right:16px;bottom:12px;margin:0!important;min-height:36px!important;height:auto!important;padding:4px 0!important}
html:root body.msp-product.msp-product #content>.summary>.card .capacity-line{padding-right:95px}
html:root body.msp-product.msp-product #content>.summary>.card>div{flex:0 0 auto!important}
html:root body.msp-product.msp-product :is(.sim-panel,.result-panel,.section,.small-panel){border-radius:8px!important}
html:root body.msp-product.msp-product .commercial-card{padding:12px!important;gap:12px!important}
html:root body.msp-product.msp-product .commercial-card>.secondary{min-width:150px}
html:root body.msp-product.msp-product .ps-modal-head{padding:16px!important;gap:12px}
html:root body.msp-product.msp-product .ps-modal-body{padding:16px!important}
html:root body.msp-product.msp-product .ps-modal-close{width:44px!important;height:44px!important;flex:0 0 44px!important;font-size:22px!important}
html:root body.msp-product.msp-product .ps-dialog{max-height:calc(100dvh - 32px)!important;overflow-y:auto;overscroll-behavior:contain}
html:root body.msp-product.msp-product .finance-summary{gap:8px!important}
html:root body.msp-product.msp-product .finance-summary .detail{padding:12px!important;min-height:0!important}
html:root body.msp-product.msp-product .finance-summary .detail strong{font-size:20px!important;line-height:1.3!important;font-weight:600!important}
html:root body.msp-product.msp-product .data-table th{font-size:14px!important;line-height:1.4!important}
html:root body.msp-product.msp-product :is(.finance-table,.data-table) :is(th,td){font-variant-numeric:tabular-nums}
html:root body.msp-product.msp-product .first-steps{padding:16px!important}
html:root body.msp-product.msp-product .first-steps-grid{gap:10px!important;margin-top:12px!important;align-items:stretch!important}
html:root body.msp-product.msp-product .first-step-card{min-height:0!important;padding:12px!important;gap:8px!important}
html:root body.msp-product.msp-product .first-steps-title{font-size:20px!important}
html:root body.msp-product.msp-product .ux-anchored-popover{position:fixed!important;inset:auto!important;top:var(--ux-popover-top)!important;left:var(--ux-popover-left)!important;width:var(--ux-popover-width)!important;min-width:0!important;max-width:calc(100vw - 24px)!important;max-height:var(--ux-popover-height)!important;overflow-y:auto!important;overscroll-behavior:contain;z-index:95!important;background:var(--msp-card)!important;border:1px solid var(--ux-line)!important;border-radius:8px!important;box-shadow:0 8px 24px #17181718!important}
html:root body.msp-product.msp-product .ux-anchored-popover:focus-within{scroll-padding:8px}
html:root body.msp-product.msp-product .ux-anchored-popover{overflow-x:hidden!important;box-sizing:border-box}
html:root body.msp-product.msp-product .period-custom .custom-dates{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
html:root body.msp-product.msp-product .period-custom :is(.field,input){width:100%!important;min-width:0!important;max-width:100%!important}
html:root body.msp-product.msp-product .results-head{position:sticky;top:0;z-index:1;background:var(--msp-card)!important;font-size:13px!important;padding:10px 12px}
html:root body.msp-product.msp-product .result-row{padding:12px!important;gap:10px!important}
html:root body.msp-product.msp-product .product-search .clear-search{top:50%!important;transform:translateY(-50%);right:2px!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:6px!important}
html:root body.msp-product.msp-product .product-search input{padding-right:50px!important}
html:root body.msp-product.msp-product .result-title{font-size:14px!important;line-height:1.4!important;color:var(--ux-ink)!important;font-weight:500!important}
html:root body.msp-product.msp-product .period-menu>button{font-size:14px!important;min-height:44px;color:var(--ux-ink)!important}
html:root body.msp-onboarding.msp-onboarding header{min-height:0!important;padding:20px 24px!important}
html:root body.msp-onboarding.msp-onboarding .wrap{padding-top:24px!important}
html:root body.msp-onboarding.msp-onboarding .intro p{margin:12px 0 20px!important;color:var(--ux-muted)!important;font-size:15px!important;line-height:1.6!important}
html:root body.msp-onboarding.msp-onboarding .card{padding:20px!important}
html:root body.msp-access.msp-access :is(.trial,.message,.back,label){color:var(--ux-muted)!important;font-size:14px!important;line-height:1.55!important}
@media(min-width:821px){
 html:root body.msp-product.msp-product.msp-sidebar-collapsed{--msp-shell-sidebar:68px}
 html:root body.msp-product.msp-product :is(.main,#pnlReport){margin-left:var(--msp-shell-sidebar)!important;margin-right:0!important;width:calc(100% - var(--msp-shell-sidebar))!important;max-width:none!important;padding:78px 24px 28px!important;box-sizing:border-box}
 html:root body.msp-product.msp-product .topbar{left:var(--msp-shell-sidebar)!important;margin-left:0!important;width:calc(100% - var(--msp-shell-sidebar))!important;padding-inline:24px!important;box-sizing:border-box}
 html:root body.msp-product.msp-product .summary{align-items:stretch!important}
 html:root body.msp-product.msp-product .summary>.kpi{height:100%!important}
 html:root body.msp-product.msp-product #filters{width:100%!important;max-width:none!important}
 html:root body.msp-product.msp-product .toolbar{display:flex!important;flex-wrap:wrap;gap:10px!important}
 html:root body.msp-product.msp-product .toolbar .filter-control{width:auto!important;flex:0 1 auto!important;min-width:170px!important}
 html:root body.msp-product.msp-product .toolbar .category-picker{width:210px!important;flex:0 1 210px!important}
 html:root body.msp-product.msp-product .toolbar .filter-control:has(.category-picker){min-width:210px!important}
 html:root body.msp-product.msp-product .toolbar :is(select,.category-picker>summary){width:100%!important;font-size:14px!important;min-height:44px!important}
 html:root body.msp-product.msp-product .toolbar .excel{margin-left:auto!important;display:flex!important;gap:8px}
}
html:root body.msp-product.msp-product #pnlReport>:is(.head,#filters,.summary,#pnlListView){max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}
html:root body.msp-product.msp-product #pnlReport #pnlListView .pnl-head{font-size:13px!important;color:var(--ux-muted)!important;line-height:1.45!important}
html:root body.msp-product.msp-product #pnlReport #pnlListView .pnl-row:not(.result):not(.grand-result):not(.group){color:var(--ux-ink)!important}
html:root body.msp-product.msp-product #pnlReport #filters :is(select,.account-name,.period-picker>summary,.category-picker>summary){font-size:14px!important;color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-product :is(.primary,.save,.ps-confirm,.apply-action):not(:disabled){color:#171817!important}
@media(max-width:820px){
 html:root body.msp-product.msp-product :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea){font-size:16px!important}
 html:root body.msp-product.msp-product.msp-publications .main .toolbar select,html:root body.msp-product.msp-product .main #pageSize{font-size:16px!important}
 html:root body.msp-product.msp-product .main .toolbar :is(#statusFilter,#costFilter,#sortFilter){font-size:16px!important}
 html:root body.msp-product.msp-product .main h1,html:root body.msp-access.msp-access h1,html:root body.msp-onboarding.msp-onboarding .intro h1{font-size:28px!important;line-height:1.2!important}
 html:root body.msp-product.msp-product :is(.main,#pnlReport){margin-left:0!important;width:100%!important;max-width:none!important;padding-left:16px!important;padding-right:16px!important;padding-bottom:80px!important;box-sizing:border-box}
 html:root body.msp-product.msp-product .toolbar .filter-control{min-width:0!important}
 html:root body.msp-product.msp-product .finance-summary{grid-template-columns:minmax(0,1fr)!important}
 html:root body.msp-product.msp-product .finance-summary .detail{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;text-align:left!important;padding:12px!important}
 html:root body.msp-product.msp-product .finance-summary .detail label{width:auto!important;text-align:left!important;font-size:14px!important}
 html:root body.msp-product.msp-product .finance-summary .detail strong{width:auto!important;text-align:right!important;font-size:18px!important;white-space:normal!important}
 html:root body.msp-product.msp-product .finance-summary .detail:last-child strong{font-size:16px!important}
 html:root body.msp-product.msp-product .commercial-card>.secondary{min-width:0}
 html:root body.msp-product.msp-product .first-steps-head{gap:10px!important}
 html:root body.msp-product.msp-product .first-steps-head-actions{width:100%;gap:12px!important}
 html:root body.msp-product.msp-product .first-steps{margin-bottom:16px!important}
 html:root body.msp-product.msp-product .main .kpis>.kpi{padding:12px!important}
 html:root body.msp-product.msp-product .result-row{grid-template-columns:40px minmax(0,1fr)!important}
 html:root body.msp-product.msp-product .result-row .select-product{display:none!important}
 html:root body.msp-product.msp-product .result-row :is(.result-price,.result-margin){display:block!important;grid-column:2;text-align:left!important;font-size:14px!important}
 html:root body.msp-product.msp-product .result-row .result-margin{font-size:13px!important}
 html:root body.msp-onboarding.msp-onboarding .wrap{padding-bottom:80px!important}
 html:root body.msp-access.msp-access{padding-bottom:80px!important}
}
/* Keep the existing theme switch legible with the shared visual tokens. */
html[data-theme=dark]:root body.msp-product.msp-product :is(.main,.drawer,.ps-dialog){--msp-card:#252c24;--msp-soft:#30392d;--msp-paper:#1b201b;--account-paper:#252c24;--account-ink:#f5f5ef;--account-muted:#d6dbd2;--ux-ink:#f5f5ef;--ux-muted:#d6dbd2;background:#1b201b!important;color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-product :is(.panel,.card,.section,.commercial-card,.price-control,.ps-option,.compare-card,.first-step-card,.first-steps,.kpi,.detail,.workspace-panel,.table-card,.selected-product){background:#252c24!important;border-color:#454c42!important;color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-product #content :is(.card,.section,.general-item,.account-fiscal-note,.invite-panel){background:#252c24!important;border-color:#454c42!important;color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-product #content :is(.small,.value,.label,.row-title,.badge,.capacity-line,.compact-plan-link){color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-product #content>.summary>.card{background:#252c24!important}
html[data-theme=dark]:root body.msp-product.msp-product :is(.data-table,.finance-table) :is(th,td){background:#252c24!important;border-color:#454c42!important;color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-product #drawerBody .detail{background:#252c24!important;color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-product :is(input,select,textarea){background:#252c24!important;border-color:#596353!important;color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-product .main>.replica-note{background:#30392d!important;color:var(--ux-ink)!important;border-color:#596353!important}
html[data-theme=dark]:root body.msp-product.msp-product :is(.section-head p,.row-title,.product-title,.kpi-label,.kpi-value,.product-id,.finance-plan-name){color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-account #content :is(#general,#connections,#fiscal,#team,#referidos) :is(h2,h3,p,label,.row-title,.small,.account-field-label,.ref-sharing-label){color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-account #content .account-section-nav{background:transparent!important}
html[data-theme=dark]:root body.msp-product.msp-account #content .account-section-nav .tab:not(.active){color:var(--ux-ink)!important}
html[data-theme=dark]:root body.msp-product.msp-account :is(.account-nav-label,.account-hero .eyebrow){color:var(--ux-muted)!important}
html[data-theme=dark]:root body.msp-product.msp-account #content .account-summary-head svg{stroke:var(--ux-muted)!important}
html[data-theme=dark]:root body.msp-product.msp-account #content :is(input,select,textarea){background:#252c24!important;color:var(--ux-ink)!important}
@media(max-width:420px){html:root body.msp-product.msp-product #content>.summary>.card .compact-plan-link{position:static!important;align-self:flex-start}html:root body.msp-product.msp-product #content>.summary>.card .capacity-line{padding-right:0}}
@media(prefers-reduced-motion:reduce){html:root body:is(.msp-product,.msp-access,.msp-onboarding) *{scroll-behavior:auto!important;transition:none!important}}

/* Native production has no review banner: retain a zero-offset application frame. */
@media(min-width:821px){
 html:root body.msp-product.msp-product .sidebar{overflow-x:hidden!important}
 /* Hide raw labels while the native shell replaces the navigation nodes. */
 html:root body.msp-product.msp-product.msp-sidebar-collapsed .sidebar .nav a{font-size:0!important}
 html:root body.msp-product.msp-product.msp-sidebar-collapsed .sidebar .nav .sidebar-link-label{display:none!important}
}
html:root body.msp-product:is(.msp-app,.msp-financial){padding-top:0!important}
html:root body.msp-product.msp-product .topbar{top:0!important}
html:root body.msp-product.msp-product .sidebar{top:0!important;height:100dvh!important}
html:root body.msp-product.msp-product .drawer-backdrop{top:0!important;height:100dvh!important}
html:root body.msp-onboarding.msp-onboarding{padding-top:0!important}
@media(max-width:820px){
 html:root body.msp-product.msp-product .main{padding-top:76px!important}
 html:root body.msp-product.msp-product:has(.topbar>.global-search,.topbar>.search) .main{padding-top:128px!important}
 html:root body.msp-product.msp-product .topbar :is(.notification-panel,.store-menu,.shell-menu,.msp-preview-user-menu){top:60px!important;max-height:calc(100dvh - 76px)!important}
}
