/* 28.7 · Reading scale outside Inicio. Keep the approved Home geometry intact. */
:root{
  --np-page-title-size:28px;
  --np-section-title-size:20px;
  --np-reading-size:14px;
  --np-support-size:12px;
}
body:not([data-page="painel"]) #view{font-size:var(--np-reading-size);line-height:1.5;min-width:0}
body:not([data-page="painel"]) #view :is(.np-page-intro h2,.np-tax-intro h2,.np-profile-subhead h2,.np-pot-hero-copy h2,.np-sub-page-head h1,.np-salary-empty h2){font:600 var(--np-page-title-size)/1.2 var(--f-display);letter-spacing:-.035em;overflow-wrap:anywhere}
body:not([data-page="painel"]) #view .np-cards-heading h2{font:600 26px/1.25 var(--f-display);letter-spacing:-.035em}
body:not([data-page="painel"]) #view :is(.np-page-intro p,.np-tax-intro p,.np-pot-hero-copy p,.np-sub-page-head p,.np-profile-subhead>p,.np-salary-main>p){font-size:14px;line-height:1.6}
body:not([data-page="painel"]) #view :is(.sec-title h2,.card>.ch h2,.np-tax-block-head h2,.np-tax-section>.sec-title h2,.np-wallet-assets-heading h2,.np-bank-heading h2,.np-salary-section h2,.np-summary-gauge h2,.np-spending-map h2,.np-connection-heading h3,.np-notify-delivery-heading h3){font:600 var(--np-section-title-size)/1.3 var(--f-display);letter-spacing:-.025em;overflow-wrap:anywhere}
body:not([data-page="painel"]) #view :is(.np-salary-page .khead h2,.np-salary-dates h3,.np-proj-adjustments-head h3){font:600 18px/1.35 var(--f-display);letter-spacing:-.02em}
body:not([data-page="painel"]) #view :is(.np-stat-note,.np-stat>small,.np-month-stat>small,.np-bank-balance>span,.np-bank-balance>small,.np-bank-account header p,.np-wallet-footnote,.np-bank-help,.np-salary-estimate,.np-salary-date-row>span:nth-child(2)>small,.np-journal-summary>p,.np-journal-description small,.np-journal-date,.np-journal-results,.np-journal-toolbar label,.np-journal-filters label,.np-journal-table thead th,.np-spending-row-main small){font-size:var(--np-support-size);line-height:1.5}
body:not([data-page="painel"]) #view :is(.np-journal-title,.np-bank-account h3,.np-wallet-group h3,.np-salary-date-row>span:nth-child(2)>b){font-size:14px;line-height:1.45}
body:not([data-page="painel"]) #view :is(.np-stat-label,.np-month-stat>.np-stat-label,.np-journal-summary>div>span){font-size:13px;line-height:1.4}

/* Container-relative numerals follow the space available in each card, not viewport width.
   The value remains complete; unusually long amounts may scroll instead of being truncated. */
body:not([data-page="painel"]) #view :is(.np-stat,.kpis>.stat,.np-month-stat,.np-journal-summary>div,.np-salary-main,.np-wallet-overview,.np-pot-card){container-type:inline-size;min-width:0}
body:not([data-page="painel"]) #view :is(.np-stat-value,.kpis>.stat>.v,.np-month-stat>strong,.np-journal-summary strong,.np-pot-balance){display:block;min-width:0;max-width:100%;font-family:var(--f-display);font-weight:600;font-size:clamp(22px,10cqw,36px);line-height:1.3;letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap;overflow-wrap:normal;word-break:normal;text-overflow:clip;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
body:not([data-page="painel"]) #view :is(.np-salary-main>.np-stat-value,.np-wallet-overview>.np-stat-value){font-size:clamp(26px,10cqw,36px)}
body:not([data-page="painel"]) #view .np-journal-summary strong{font-size:clamp(20px,10cqw,32px)}
body:not([data-page="painel"]) #view .np-pot-summary>span:first-child{min-width:0;max-width:100%;flex-wrap:wrap}
body:not([data-page="painel"]) #view .np-pot-summary b{max-width:100%;font:600 clamp(26px,2.5vw,32px)/1.2 var(--f-display);white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden}
body:not([data-page="painel"]) #view .np-tax-year-grid .irres>div:first-child{min-width:0;max-width:100%;flex:1 1 200px;container-type:inline-size}
body:not([data-page="painel"]) #view .np-tax-year-grid .irres>div:first-child>b{max-width:100%;font-size:clamp(22px,10cqw,36px);line-height:1.3;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden;font-variant-numeric:tabular-nums}
body:not([data-page="painel"]) #view .np-tax-page .meibox>div{container-type:inline-size;min-width:0}
body:not([data-page="painel"]) #view .np-tax-page .meibox b{display:block;max-width:100%;font:600 clamp(18px,9cqw,26px)/1.2 var(--f-display);white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden}

/* Long currency figures keep their own column; nearby names may wrap. */
body:not([data-page="painel"]) #view .np-wallet-page .np-bank-account{grid-template-columns:minmax(0,1fr) minmax(132px,.85fr) auto}
body:not([data-page="painel"]) #view .np-wallet-page .np-bank-balance{min-width:0;container-type:inline-size}
body:not([data-page="painel"]) #view .np-wallet-page .np-bank-balance strong{display:block;max-width:100%;font-size:clamp(16px,10cqw,26px);line-height:1.25;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden;font-variant-numeric:tabular-nums}
body:not([data-page="painel"]) #view .np-wallet-page .np-wallet-group>header{flex-wrap:wrap}
body:not([data-page="painel"]) #view .np-wallet-page .np-wallet-group .np-wallet-total{max-width:100%;margin-left:auto;font-size:22px;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden;font-variant-numeric:tabular-nums}
body:not([data-page="painel"]) #view .np-wallet-page .np-wallet-group>header>.iconbtn{margin-left:0}
body:not([data-page="painel"]) #view .np-salary-page .netbox{container-type:inline-size;min-width:0}
body:not([data-page="painel"]) #view .np-salary-page .netbox>b{max-width:100%;font-size:clamp(22px,9cqw,30px);line-height:1.2;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden;font-variant-numeric:tabular-nums}
body:not([data-page="painel"]) #view .np-salary-date-row>strong{max-width:100%;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden;font-variant-numeric:tabular-nums}
body:not([data-page="painel"]) #view .np-proj-composition .ln{flex-wrap:wrap;gap:8px 16px}
body:not([data-page="painel"]) #view .np-proj-composition .ln .num{margin-left:auto;max-width:100%;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden}

/* Financial readouts inside details/simulation inherit the same bounded scale. */
#drawerSlot :is(.np-pot-detail-balance,.np-simulation-summary,.np-spending-total){container-type:inline-size;min-width:0;width:100%}
#drawerSlot :is(.np-pot-detail-balance>strong,.np-simulation-summary>div>b,.np-spending-total>strong){display:block;max-width:100%;font:600 clamp(24px,9cqw,34px)/1.2 var(--f-display);letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden}
#drawerSlot .np-simulation-month dl>div{min-width:0;flex-wrap:wrap;gap:4px 12px}
#drawerSlot .np-simulation-month dt{flex:1;min-width:110px}
#drawerSlot .np-simulation-month dd{max-width:100%;margin-left:auto;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden;font-variant-numeric:tabular-nums}
#drawerSlot .np-simulation-cash{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
#drawerSlot :is(.np-simulation-cash-head,.np-simulation-cash-row){grid-template-columns:minmax(66px,.6fr) repeat(2,minmax(124px,1fr));min-width:338px;font-size:13px}
#drawerSlot .np-simulation-cash-row>*{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}

/* A separate blurred colour layer survives the old, more-specific solid badge backgrounds.
   Like the Inicio icon assets, the glow is offset towards the lower half of the tile. */
body:not([data-page="painel"]) #view :is(.ib,.np-icon-aura:not(.np-stat-icon),.np-setting-icon,.np-notify-symbol,.np-connection-icon),
#drawerSlot :is(.ib,.np-icon-aura){position:relative;isolation:isolate;overflow:hidden;box-shadow:none;background:color-mix(in srgb,var(--c,var(--peak)) 4%,var(--surface));border-radius:12px}
body:not([data-page="painel"]) #view .np-stat-icon{isolation:isolate;overflow:hidden;box-shadow:none;background:color-mix(in srgb,var(--c,var(--peak)) 4%,var(--surface))}
body:not([data-page="painel"]) #view .ib,
#drawerSlot .ib{--np-aura-size:36px;width:var(--np-aura-size);height:var(--np-aura-size);flex:0 0 var(--np-aura-size);min-width:var(--np-aura-size);display:inline-grid;place-items:center}
body:not([data-page="painel"]) #view .ib.sm,#drawerSlot .ib.sm{--np-aura-size:32px}
body:not([data-page="painel"]) #view .ib.lg,#drawerSlot .ib.lg{--np-aura-size:42px;border-radius:14px}
body:not([data-page="painel"]) #view .np-category-main>.ib{--np-aura-size:32px}
body:not([data-page="painel"]) #view .np-wallet-page .np-bank-account>header>.ib{--np-aura-size:42px}
body:not([data-page="painel"]) #view :is(.np-icon-aura,.np-setting-icon,.np-notify-symbol,.np-connection-icon){flex-shrink:0}
body:not([data-page="painel"]) #view .np-connection-icon{width:42px;height:42px}
body:not([data-page="painel"]) #view :is(.ib,.np-icon-aura,.np-setting-icon,.np-notify-symbol,.np-connection-icon,.np-stat-icon)::before,
#drawerSlot :is(.ib,.np-icon-aura)::before{content:"";position:absolute;inset:32% 8% -16%;z-index:0;border-radius:50%;background:color-mix(in srgb,var(--c,var(--peak)) 38%,transparent);filter:blur(7px);pointer-events:none}
body:not([data-page="painel"]) #view :is(.ib,.np-icon-aura,.np-setting-icon,.np-notify-symbol,.np-connection-icon,.np-stat-icon)>svg,
#drawerSlot :is(.ib,.np-icon-aura)>svg{position:relative;z-index:1;display:block;flex:none}
body:not([data-page="painel"]) #view .ib>svg,#drawerSlot .ib>svg{width:calc(var(--np-aura-size)*.52);height:calc(var(--np-aura-size)*.52)}
/* Small inline account chips retain their compact text rhythm. */
body:not([data-page="painel"]) #view .accchip .ib,#drawerSlot .accchip .ib{--np-aura-size:24px;border-radius:8px}
@media(max-width:1000px) and (min-width:761px){
  body:not([data-page="painel"]) #view .np-wallet-page .np-bank-account{grid-template-columns:minmax(0,1fr) minmax(132px,.85fr)}
  body:not([data-page="painel"]) #view .np-wallet-page .np-bank-row-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:760px){
  :root{--np-page-title-size:22px;--np-section-title-size:18px}
  body:not([data-page="painel"]) #view .np-cards-heading h2{font-size:22px}
  body:not([data-page="painel"]) #view .np-wallet-page .np-bank-account{grid-template-columns:minmax(0,1fr) minmax(124px,.8fr)}
  body:not([data-page="painel"]) #view .np-wallet-page .np-bank-account>header>.ib{--np-aura-size:36px}
  body:not([data-page="painel"]) #view .np-salary-date-row{grid-template-columns:40px minmax(0,1fr);column-gap:12px;row-gap:6px}
  body:not([data-page="painel"]) #view .np-salary-date-row>strong{grid-column:2;text-align:left;font-size:20px}
  body:not([data-page="painel"]) #view .np-salary-page .netbox>b{font-size:clamp(22px,9cqw,30px)}
}
@media(max-width:600px){
  body:not([data-page="painel"]) #view :is(.np-stat-grid,.np-month-summary,.np-journal-summary){grid-template-columns:minmax(0,1fr)}
  body:not([data-page="painel"]) #view .np-journal-summary>div{border-right:0;border-top:1px solid var(--line)}
  body:not([data-page="painel"]) #view .np-journal-summary>div:first-child{border-top:0}
  body:not([data-page="painel"]) #view .np-salary-totals>.np-stat{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
  body:not([data-page="painel"]) #view .np-salary-totals>.np-stat>.np-stat-value{align-self:flex-start}
}
@media(forced-colors:active){
  body:not([data-page="painel"]) #view :is(.ib,.np-icon-aura,.np-setting-icon,.np-notify-symbol,.np-connection-icon,.np-stat-icon)::before,
  #drawerSlot :is(.ib,.np-icon-aura)::before{display:none}
}
