/* Saldo. Papel quente, tinta escura, numeros em mono tabular.
   Azul = o que entrou, laranja = o que saiu (par validado para daltonismo). */

:root {
  --bg: #f4f2ed;
  --surface: #fcfcfb;
  --surface-2: #efece5;
  --ink: #17191c;
  --ink-2: #3d4047;
  --muted: #6f727a;
  --line: #e2ded5;
  --line-strong: #cfcac0;
  --in: #2c6db3;
  --out: #d27328;
  --in-soft: 44 109 179;
  --out-soft: 210 115 40;
  --neg: #a8431f;
  --focus: #2c6db3;
  --shadow: 0 1px 0 rgba(23, 25, 28, .04), 0 8px 24px -16px rgba(23, 25, 28, .18);
  --radius: 10px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #17181b;
    --surface-2: #1e2024;
    --ink: #ecebe7;
    --ink-2: #c4c3be;
    --muted: #8c8e94;
    --line: #2a2c31;
    --line-strong: #3a3d43;
    --in: #5b95d6;
    --out: #c9722e;
    --in-soft: 91 149 214;
    --out-soft: 201 114 46;
    --neg: #e48a63;
    --focus: #5b95d6;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 24px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.num, dd, .day, .r-val, .ledger-total strong, .tick, .end-label, .tip, .hm span { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 500; }
.neg { color: var(--neg); }
.grow { flex: 1; }

/* marcadores de serie */
.k-in, .k-out { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.k-in { background: var(--in); }
.k-out { background: var(--out); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i + * , .legend i { margin-left: 6px; }
.legend > i:first-child { margin-left: 0; }

/* ---------------------------------------------------------------- topo */

.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 54px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.mark { width: 20px; height: 20px; }
.mark .m-in { fill: var(--in); }
.mark .m-out { fill: var(--out); }
.mark .m-ink { fill: var(--ink); }
.tabs { display: flex; gap: 2px; height: 100%; }
.tabs a {
  display: flex; align-items: center; padding: 0 12px; text-decoration: none; color: var(--muted);
  font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.who { margin-left: auto; color: var(--muted); font-size: 13px; }

.page { max-width: 1180px; margin: 0 auto; padding: 22px 24px 80px; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- botoes e campos */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 500 13.5px var(--sans); text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .88; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.wide { width: 100%; height: 40px; }
.btn.danger-text { color: var(--neg); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); flex: none;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn svg { width: 14px; height: 14px; }
.link-small { font-size: 12.5px; color: var(--muted); }

input, select {
  font: 14px var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; height: 36px; padding: 0 10px; width: 100%; min-width: 0;
}
input[inputmode=decimal] { font-family: var(--mono); text-align: right; }
input:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(var(--in-soft) / .18); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span, .entry label > span { font-size: 12px; font-weight: 500; color: var(--muted); }
.form-error { color: var(--neg); font-size: 13px; min-height: 0; margin: 0 0 10px; }
.form-error:empty { display: none; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 4px 0 12px; }
.check input { width: 16px; height: 16px; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 5px 12px; border-radius: 6px; font-weight: 500; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }

/* ---------------------------------------------------------------- entrada */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; margin-bottom: 26px; }
.auth-card h1 { font-size: 22px; }
.auth-card .sub { color: var(--muted); margin: 6px 0 20px; font-size: 13.5px; }

/* ---------------------------------------------------------------- regua */

.ruler { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 10px; margin-bottom: 26px; }
.ruler-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ruler-head .icon-btn { width: 24px; height: 24px; border: 0; background: none; }
.ruler-year { font-family: var(--mono); font-weight: 500; text-decoration: none; }
.ruler-year:hover { text-decoration: underline; }
.ruler-head .legend { margin-left: auto; }
.ruler-cells { display: grid; grid-template-columns: repeat(12, minmax(46px, 1fr)); gap: 4px; overflow-x: auto; scrollbar-width: thin; position: relative; }
.r-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 5px;
  border-radius: 7px; text-decoration: none; color: var(--ink-2); border: 1px solid transparent;
}
.r-cell:hover { background: var(--surface-2); }
.r-cell.on { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.r-cell.future { opacity: .45; }
.r-name { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.r-bars { height: 44px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line-strong); }
.r-bars i { display: block; width: 7px; border-radius: 3px 3px 0 0; min-height: 0; }
.r-bars .b-in { background: var(--in); }
.r-bars .b-out { background: var(--out); }
.r-val { font-size: 11.5px; }
.r-val.neg { color: var(--neg); }

/* ---------------------------------------------------------------- cabecalho do mes/ano */

.head { margin-bottom: 20px; }
.head-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.head-title h1 { min-width: 0; }
.lede { max-width: 640px; color: var(--ink-2); margin: -6px 0 18px; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--ink); }
.figures.three { grid-template-columns: repeat(3, 1fr); }
.figures > div { padding: 12px 16px 4px 0; border-right: 1px solid var(--line); margin-right: 16px; min-width: 0; }
.figures > div:last-child { border-right: 0; margin-right: 0; }
.figures dt { font-size: 12px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.figures dd { margin: 4px 0 2px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figures .fig-main dd { font-size: 26px; }
.figures small { color: var(--muted); font-size: 12px; }
.status-pill { font-size: 12px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 99px; padding: 2px 10px; }
.years { display: flex; gap: 2px; flex-wrap: wrap; }
.years a { font-family: var(--mono); font-size: 12.5px; padding: 3px 8px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.years a.on { background: var(--ink); color: var(--bg); }
.years a:not(.on):hover { color: var(--ink); background: var(--surface-2); }

/* ---------------------------------------------------------------- barra de lancamento */

.entry {
  display: grid; align-items: end; gap: 10px;
  grid-template-columns: auto 140px 120px 150px minmax(120px, 1fr) auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.entry:has(.f-gross:not([hidden])) { grid-template-columns: auto 140px 120px 120px 150px minmax(120px, 1fr) auto; }
.entry label { display: flex; flex-direction: column; gap: 4px; }
.entry label[hidden] { display: none; }
.entry .seg { align-self: end; height: 36px; }
.entry .btn { height: 36px; }

.notice {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 10px 12px 10px 14px; margin-bottom: 18px; border-radius: var(--radius);
  border: 1px dashed var(--line-strong); background: var(--surface-2); font-size: 13.5px;
}

/* ---------------------------------------------------------------- grelhas */

.month-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.col-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.year-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 18px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.panel + .panel, .year-grid + .panel { margin-top: 0; }
.page > .panel { margin-bottom: 18px; }
.panel h2 { margin-bottom: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }

/* ---------------------------------------------------------------- livro */

.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.ledger-total { font-size: 12.5px; color: var(--muted); }
.ledger-total strong { color: var(--ink); font-weight: 500; font-size: 14px; }
.ledger-empty { margin: 0; padding: 4px 16px 18px; color: var(--muted); font-size: 13.5px; max-width: 560px; }

table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 500; }
.rows th, .months thead th, .matrix thead th, .cats thead th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500;
  padding: 8px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.rows td { padding: 9px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rows tbody tr:last-child td { border-bottom: 0; }
.rows tbody tr { cursor: pointer; }
.rows tbody tr:hover { background: var(--surface-2); }
.rows .day { width: 72px; color: var(--muted); font-size: 12.5px; padding-top: 10px; white-space: nowrap; }
.rows .desc { min-width: 0; word-break: break-word; }
.rows td.num { font-size: 13.5px; }
.rows .state { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rows tr.inactive td { opacity: .5; }
.tag { display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; vertical-align: 1px; }
.cat-s { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 9px; vertical-align: 1px; }

/* categorias do mes */
.cats th, .cats td { padding: 7px 0; }
.cats thead th { padding: 6px 0; background: none; border-top: 0; }
.cats td { border-bottom: 1px solid var(--line); font-size: 13px; }
.cats tbody tr:last-child td { border-bottom: 0; }
.cats td.num { padding-left: 10px; }
.cat-name { display: block; }
.cat-bar { display: block; height: 4px; margin-top: 5px; background: var(--surface-2); border-radius: 2px; }
.cat-bar i { display: block; height: 100%; background: var(--out); border-radius: 2px; }

.fixed-list { list-style: none; margin: 0; padding: 0; }
.fixed-list li { display: grid; grid-template-columns: auto 1fr auto; column-gap: 9px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fixed-list li:last-child { border-bottom: 0; }
.fixed-list .dot { margin: 0; }
.fixed-list small { display: block; color: var(--muted); font-size: 11.5px; }
.fixed-list .fx-state { grid-column: 2 / 4; font-size: 11.5px; color: var(--muted); }
.fixed-list li:not(.done) .fx-state { color: var(--out); font-weight: 500; }
.fixed-list li.done .fx-desc, .fixed-list li.done .num { color: var(--muted); }

/* ---------------------------------------------------------------- ano */

.months td, .months tbody th, .months tfoot th { padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.months tbody th a { text-decoration: none; }
.months tbody th a:hover { text-decoration: underline; }
.months .empty-row td, .months .empty-row th { color: var(--muted); }
.months tfoot th, .months tfoot td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 600; }
.months tfoot td { font-family: var(--mono); padding: 10px 16px; }

.matrix th[scope=row] { padding: 6px 12px 6px 0; font-size: 13px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.matrix thead th { padding: 6px 4px; background: none; border-top: 0; }
.matrix thead th:first-child { padding-left: 0; }
.matrix .hm-h { text-align: center; }
.matrix td.num { padding: 6px 0 6px 12px; font-size: 13px; border-bottom: 1px solid var(--line); }
.hm { padding: 2px; min-width: 44px; border-bottom: 1px solid var(--line); }
.hm span { display: block; text-align: center; font-size: 11px; line-height: 26px; height: 26px; border-radius: 5px; color: var(--ink); }
.hm.expense span { background: rgb(var(--out-soft) / calc(var(--t) * .75)); }
.hm.income span { background: rgb(var(--in-soft) / calc(var(--t) * .75)); }

.chart-box { position: relative; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--line-strong); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 10.5px; }
.chart .b-in { fill: var(--in); }
.chart .b-out { fill: var(--out); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--ink); opacity: .06; }
.chart .pt { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.chart .end-label { fill: var(--ink); font-size: 12px; font-weight: 500; }
.chart .hit { fill: var(--ink); opacity: 0; cursor: crosshair; }
.chart .hit.on { opacity: .05; }
.tip {
  position: absolute; top: 0; transform: translate(-50%, -104%); pointer-events: none; z-index: 5;
  background: var(--ink); color: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.55;
  display: flex; flex-direction: column; min-width: 140px; box-shadow: var(--shadow);
}
.tip[hidden] { display: none; }
.tip b { font-family: var(--sans); font-weight: 600; margin-bottom: 2px; }
.tip span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

.extremes { display: flex; gap: 24px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.extremes div { display: flex; flex-direction: column; font-size: 13px; }
.extremes a { font-weight: 500; text-decoration: none; }
.extremes .muted { font-size: 11.5px; }

/* ---------------------------------------------------------------- definicoes */

.cat-edit { list-style: none; margin: 0 0 12px; padding: 0; }
.cat-edit li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cat-edit li.archived .grow { color: var(--muted); }
.inline-add { display: flex; gap: 8px; }
.stack { max-width: 360px; }

/* ---------------------------------------------------------------- vazio, dialogo, aviso */

.empty { padding: 48px 16px; text-align: center; }
.empty.big { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty p { margin: 0 0 6px; }
.empty .btn { margin-top: 14px; }

.dlg {
  border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: min(440px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
}
.dlg::backdrop { background: rgba(17, 18, 20, .45); }
.dlg h2 { font-size: 17px; text-transform: none; letter-spacing: -.01em; color: var(--ink); margin-bottom: 16px; }
.dlg .seg { margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg-actions { display: flex; gap: 8px; margin-top: 8px; }

#toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 9px; font-size: 13.5px;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}
#toast.err { background: var(--neg); color: #fff; }

/* ---------------------------------------------------------------- ecras estreitos */

@media (max-width: 1000px) {
  .month-grid, .year-grid { grid-template-columns: minmax(0, 1fr); }
  .entry, .entry:has(.f-gross:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry .seg { grid-column: 1 / -1; justify-self: start; }
  .entry .f-desc { grid-column: 1 / -1; }
  .entry:not(:has(.f-gross:not([hidden]))) .f-cat { grid-column: 1 / -1; }
  .entry .btn { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .top-in { padding: 0 16px; gap: 14px; }
  .who { display: none; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding: 0 9px; }
  .brand span { display: none; }
  .page { padding: 16px 16px 72px; }
  h1 { font-size: 21px; }
  .figures, .figures.three { grid-template-columns: 1fr 1fr; }
  .figures > div { margin-right: 0; padding-right: 12px; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .figures > div:nth-child(odd) { padding-right: 12px; }
  .figures > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .figures dd { font-size: 18px; }
  .figures .fig-main dd { font-size: 20px; }
  .ruler { padding: 10px 8px 8px; }
  .ruler-head .legend .muted { display: none; }
  .hide-s { display: none; }
  .cat-s { display: block; font-size: 11.5px; color: var(--muted); }
  .rows th, .rows td { padding-left: 12px; padding-right: 12px; }
  .rows .day { width: 58px; }
  .notice { flex-direction: column; align-items: stretch; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .head-title .grow { display: none; }
  .years { width: 100%; }
}

/* ---------------------------------------------------------------- versao simples */

.ytd { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }
.ytd strong { font-family: var(--mono); font-weight: 500; }
.figures dd { font-size: 26px; }
.figures .fig-main dd { font-size: 30px; }
.head-title h1 { font-size: 30px; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bars li:last-child { border-bottom: 0; }
.bars .cat-bar { grid-column: 1 / -1; height: 6px; margin-top: 7px; border-radius: 3px; }
.bars .cat-bar i { border-radius: 3px; }
.btn.export { margin-top: 16px; width: 100%; }
.chart-panel { margin-bottom: 18px; }
.year-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.ruler { margin: 18px 0 0; }
.entry { grid-template-columns: auto 150px 140px 190px minmax(140px, 1fr) auto; }
.rows td { padding-top: 11px; padding-bottom: 11px; font-size: 14px; }
@media (max-width: 1000px) {
  .entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry .f-cat { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .figures.three { grid-template-columns: 1fr 1fr; }
  .figures.three .fig-main { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .figures dd { font-size: 20px; }
  .figures .fig-main dd { font-size: 26px; }
  .head-title h1 { font-size: 23px; }
}

/* salario mensal */
.salary-bar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--in); border-radius: var(--radius);
}
.salary-bar > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.salary-bar strong { font-weight: 600; font-size: 14.5px; }
.salary-bar span { color: var(--muted); font-size: 13px; }
.salary-bar > .k-in { display: none; }
.salary-bar.empty { border-style: dashed; border-left: 3px solid var(--in); }
.dlg-lede { margin: -8px 0 14px; }
@media (max-width: 720px) {
  .salary-bar.empty { flex-direction: column; align-items: stretch; }
}
