/* Financeiro Nicolas 3.1.1 — tipografia personalizável e mais leve */
:root{
  --font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --weight-body:400;
  --weight-ui:500;
  --weight-strong:600;
  --weight-heading:600;
  --weight-number:600;
  --tracking-body:-.006em;
  --tracking-heading:-.022em;
}
body{font-family:var(--font-ui)!important;font-weight:var(--weight-body);letter-spacing:var(--tracking-body)!important}
body.typeface-system{--font-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
body.typeface-modern{--font-ui:"Instrument Sans","Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.typeface-humanist{--font-ui:"Avenir Next",Avenir,"Segoe UI",Roboto,-apple-system,BlinkMacSystemFont,sans-serif}
body.weight-light{--weight-body:400;--weight-ui:500;--weight-strong:600}
body.weight-balanced{--weight-body:400;--weight-ui:600;--weight-strong:700}
body.weight-strong{--weight-body:500;--weight-ui:650;--weight-strong:750}
body.headings-light{--weight-heading:600}
body.headings-balanced{--weight-heading:700}
body.headings-strong{--weight-heading:800}
body.numbers-regular{--weight-number:500}
body.numbers-medium{--weight-number:600}
body.numbers-strong{--weight-number:700}
body.tracking-compact{--tracking-body:-.016em;--tracking-heading:-.03em}
body.tracking-normal{--tracking-body:-.006em;--tracking-heading:-.022em}
body.tracking-relaxed{--tracking-body:.008em;--tracking-heading:-.006em}

/* Hierarquia tipográfica */
h1,h2,h3,h4,h5,h6,.topbar h1,.panel-head h2,.settings-hero h2,.source-hero h2,.fixed-occ-main h3,.account-card h2,.auth-card h1{
  font-family:var(--font-ui)!important;font-weight:var(--weight-heading)!important;letter-spacing:var(--tracking-heading)!important
}
strong,b,.logo strong,.user strong,.profile-switcher strong,.feature-copy strong,.profile-row strong,.brand-preview strong,.steps strong,.category-list strong,.fixed-rule>summary strong,.fixed-reminder-row strong{
  font-weight:var(--weight-strong)!important
}
.btn,.sidebar nav a,label,.section-summary,summary,.link-button,.settings-tabs a,.tag,.status-chip,.check,.filter-strip,.period-form label{
  font-weight:var(--weight-ui)!important
}
.sidebar nav a{font-weight:var(--weight-ui)!important}
.form-grid label,.form-stack label,.settings-form-grid>label,.brand-settings-grid>label,.inline-edit label{font-weight:var(--weight-ui)!important}
th{font-weight:var(--weight-ui)!important}

/* Valores financeiros podem ficar mais leves que os títulos */
.amount,.kpi strong,.account-card>strong,.account-card strong,.fixed-occ-main>strong,.fixed-summary-amount strong,.source-counts strong,.record-amount,.type-preview-amount,.details dd{
  font-weight:var(--weight-number)!important;font-variant-numeric:tabular-nums
}

/* Pequenos títulos: opção natural ou caixa alta */
body.labels-natural .eyebrow,body.labels-natural .nav-group,body.labels-natural th,body.labels-natural .account-card>span,body.labels-natural .system-info-grid span,body.labels-natural .profile-switcher small{
  text-transform:none!important;letter-spacing:.01em!important
}
body.labels-uppercase .eyebrow,body.labels-uppercase .nav-group,body.labels-uppercase th,body.labels-uppercase .account-card>span,body.labels-uppercase .system-info-grid span,body.labels-uppercase .profile-switcher small{
  text-transform:uppercase!important;letter-spacing:.075em!important
}

/* Ações e navegação deixam de parecer negrito por padrão */
body.weight-light .btn,body.weight-light .sidebar nav a,body.weight-light .settings-tabs a,body.weight-light .link-button{font-weight:500!important}
body.weight-light .panel-head>a,body.weight-light .fixed-payment-info a{font-weight:550!important}
body.weight-light .description summary{font-weight:500!important}

/* Prévia dentro dos ajustes */
.typography-preview{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--line);background:linear-gradient(135deg,var(--surface-2),var(--surface));border-radius:12px;padding:16px 18px;min-height:104px}
.typography-preview>div{min-width:0}.typography-preview h3{margin:5px 0 5px;font-size:18px}.typography-preview p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.type-preview-amount{font-size:21px;white-space:nowrap;color:var(--ink)}
.settings-form-grid>label>small{display:block;margin-top:5px;color:var(--muted);font-weight:400;line-height:1.4}

/* A prévia recebe variáveis locais sem alterar o restante da página antes de salvar */
.typography-preview.preview-family-system{--preview-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.typography-preview.preview-family-modern{--preview-font:"Instrument Sans","Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.typography-preview.preview-family-humanist{--preview-font:"Avenir Next",Avenir,"Segoe UI",Roboto,-apple-system,BlinkMacSystemFont,sans-serif}
.typography-preview{font-family:var(--preview-font,var(--font-ui))!important}
.typography-preview.preview-weight-light{--preview-ui:500;--preview-strong:600}
.typography-preview.preview-weight-balanced{--preview-ui:600;--preview-strong:700}
.typography-preview.preview-weight-strong{--preview-ui:650;--preview-strong:750}
.typography-preview.preview-head-light{--preview-heading:600}.typography-preview.preview-head-balanced{--preview-heading:700}.typography-preview.preview-head-strong{--preview-heading:800}
.typography-preview.preview-number-regular{--preview-number:500}.typography-preview.preview-number-medium{--preview-number:600}.typography-preview.preview-number-strong{--preview-number:700}
.typography-preview.preview-track-compact{--preview-track:-.016em;--preview-head-track:-.03em}.typography-preview.preview-track-normal{--preview-track:-.006em;--preview-head-track:-.022em}.typography-preview.preview-track-relaxed{--preview-track:.008em;--preview-head-track:-.006em}
.typography-preview,.typography-preview p{letter-spacing:var(--preview-track,var(--tracking-body))!important}.typography-preview h3{font-family:inherit!important;font-weight:var(--preview-heading,var(--weight-heading))!important;letter-spacing:var(--preview-head-track,var(--tracking-heading))!important}.typography-preview .type-preview-amount{font-weight:var(--preview-number,var(--weight-number))!important}.typography-preview .type-preview-label{font-weight:var(--preview-ui,var(--weight-ui))!important}
.typography-preview.preview-natural .type-preview-label{text-transform:none!important;letter-spacing:.01em!important}.typography-preview.preview-uppercase .type-preview-label{text-transform:uppercase!important;letter-spacing:.075em!important}

@media(max-width:780px){.typography-preview{align-items:flex-start;flex-direction:column;gap:12px}.type-preview-amount{font-size:19px}}
