:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f3f6f5;
  --ink: #172d29;
  --muted: #566963;
  --line: #dce4dc;
  --green: #007b56;
  --dark: #082c23;
  --mint: #d9f2e4;
  --red: #a23b36;
  --surface: #ffffff;
  --surface-alt: #f7faf8;
  --radius: 20px;
  --bright: #26dd9c;
  --purple: #7c5dfa;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1014;
  --ink: #f3f4f6;
  --muted: #9ca3af;
  --line: #272a34;
  --green: #10b981;
  --dark: #14161c;
  --mint: #064e3b;
  --red: #f87171;
  --surface: #181a20;
  --surface-alt: #20232b;
  --purple: #8b5cf6;
}
:root[data-font="medium"] { font-size: 112%; }
:root[data-font="large"] { font-size: 124%; }
body { margin: 0; background: var(--bg); color: var(--ink); }
* { box-sizing: border-box; }
[hidden], .symbols { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #448963; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.65rem); letter-spacing: -.055em; line-height: 1.1; }
h2 { font-size: 1.13rem; letter-spacing: -.025em; }
small { font-size: .82rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow, .nav-caption { color: var(--green); font-size: .69rem; font-weight: 750; letter-spacing: .14em; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; font-weight: 650; }
.button { padding: .62rem .95rem; text-align: center; white-space: nowrap; }
.icon-button { width: 44px; flex: none; }
.primary { color: white; background: var(--green); }
.primary:hover { background: #065e45; }
.secondary { border-color: var(--line); background: var(--surface); }
.secondary:hover, .icon-button:hover { background: #eaf2ec; }
.danger { color: var(--red); }
.brand { display: flex; align-items: center; gap: .65rem; white-space: nowrap; }
.brand strong, .brand small { display: block; }
.brand small { opacity: .8; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: #aee4c7; color: var(--dark); flex: none; }
  .sidebar { background: var(--dark); color: #eff8f0; padding: calc(.85rem + env(safe-area-inset-top, 0px)) 1rem .85rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55rem; }
.sidebar-controls { display: none; }
.nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .2rem; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem; padding: .35rem .1rem; min-height: 46px; color: #d5e6dc; background: transparent; border: 0; border-radius: 9px; font-size: .64rem; line-height: 1.1; font-weight: 650; }
.nav button:hover, .nav button[aria-current="page"] { color: #effff5; background: #17523e; }
.nav button[aria-current="page"] .icon { color: #65ecb8; }
.nav .icon { width: 16px; height: 16px; }
.profile { display: flex; align-items: center; gap: .5rem; }
.profile-actions { display: flex; gap: .3rem; align-items: center; }
.avatar, .profile-name { display: none; }
.profile .icon-button { color: inherit; }
.profile .icon-button:hover { background: #294943; }
.content { width: min(100%, 1420px); padding: 1.3rem 1rem 2.5rem; margin-inline: auto; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: .35rem 0; }
.page-head .muted { font-size: .93rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: 1rem; }
.period { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.period .month-button { min-width: 0; padding-inline: .35rem; }
.month-button .icon { width: 17px; height: 17px; color: var(--green); }
.month-button:hover { background: #eaf2ec; }
.owner-filter select { max-width: min(100%, 18rem); }
input, select, textarea { color: var(--ink); background: var(--surface); border: 1px solid #c7d4ca; border-radius: 9px; padding: .62rem .7rem; min-height: 44px; max-width: 100%; }
.metrics { display: grid; gap: .65rem; margin-bottom: 1rem; }
.metric, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric { padding: 1rem; min-width: 0; }
.metric.highlight { background: var(--dark); border-color: var(--dark); color: #f5fff9; }
.metric-head { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 650; }
.metric-head .icon { width: 17px; height: 17px; }
.metric.highlight .metric-head, .metric.highlight small { color: #c4e2d2; }
.metric-value { display: block; margin: .28rem 0; font-size: clamp(1.25rem, 3vw, 1.85rem); font-weight: 750; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric small { color: var(--muted); }
.income { color: var(--green); }
.expense { color: var(--red); }
.transfer { color: var(--muted); }
.panel { padding: 1rem; margin-bottom: 1rem; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: .8rem; }
.panel-head h2 { line-height: 1.2; }
.panel-head .button { min-height: 38px; padding: .42rem .75rem; font-size: .84rem; white-space: nowrap; }
.panel-head p { font-size: .86rem; margin-top: .2rem; }
.ai-button { background: var(--purple); color: #fff; border-color: transparent; box-shadow: 0 4px 12px #7c5dfa33; }
.ai-button:hover { background: #6b4ce6; }
.empty { display: grid; justify-items: center; gap: .45rem; padding: 1.65rem .7rem; text-align: center; color: var(--muted); }
.empty .brand-mark { margin-bottom: .25rem; }
.empty strong { color: var(--ink); }
.entry-row, .config-row { display: grid; align-items: center; gap: .45rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.entry-row { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
.entry-row strong, .entry-row small { display: block; overflow-wrap: anywhere; }
.entry-row small { color: var(--muted); margin-top: .25rem; }
.entry-amount { text-align: right; max-width: 38vw; font-variant-numeric: tabular-nums; }
.entry-row .button { grid-column: 2; justify-self: end; }
.search-bar { position: relative; display: flex; align-items: center; margin-bottom: .9rem; }
.search-icon { position: absolute; inset-inline-start: .8rem; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-bar input { width: 100%; padding-inline-start: 2.5rem; background: var(--surface-alt); color: var(--ink); border-color: var(--line); border-radius: 12px; }
.search-bar input:focus { background: var(--surface); }
.date-group + .date-group { margin-top: 1rem; }
.date-group-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .45rem; }
.date-group-items { display: grid; gap: .45rem; }
.entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .75rem .85rem;
  text-align: start;
  color: var(--ink);
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: background .15s ease, border-color .15s ease;
}
.entry-card:hover { background: #eef6f1; border-color: #b7cec1; }
.entry-card strong, .entry-card small { display: block; overflow-wrap: anywhere; }
.entry-card small { color: var(--muted); margin-top: .18rem; font-size: .79rem; }
.entry-meta { text-align: right; }
.entry-meta .entry-amount { font-size: .96rem; }
.category-mark.has-badge { position: relative; }
.owner-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: .63rem;
  font-weight: 800;
  border: 2px solid var(--surface);
}
.config-row { grid-template-columns: minmax(0, 1fr) auto; }
.config-row strong { overflow-wrap: anywhere; }
.config-row small { display: block; }
.config-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .25rem; }
.config-actions .button { font-size: .8rem; }
.config-actions .add-subcategory { color: var(--green); }
.subcategory-row { margin-inline-start: .7rem; padding-inline-start: .6rem; border-inline-start: 2px solid var(--line); }
@media (max-width: 539px) {
  .config-row { grid-template-columns: minmax(0, 1fr); }
  .config-actions { justify-content: start; padding-inline-start: 2.8rem; }
}
.config-grid { display: grid; gap: .85rem; }
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(5.2rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  padding: .75rem 1.15rem;
  border-radius: 12px;
  background: var(--dark);
  color: #f5fff9;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 12px 28px #00000038;
  border: 1px solid #ffffff1a;
  pointer-events: none;
}
@media (min-width: 800px) {
  .toast { bottom: 1.5rem; }
}
.error { color: var(--red); font-size: .9rem; }
.auth-layout { min-height: 100dvh; display: grid; }
.auth-intro { background: var(--dark); color: #f5fff9; padding: 2rem 1.5rem; display: grid; align-content: center; justify-items: center; text-align: center; gap: 1.5rem; }
.auth-intro .brand { justify-content: center; }
.auth-intro h1 { margin: .5rem auto; max-width: 15ch; }
.auth-intro p { margin: 0 auto; color: #c4e2d2; max-width: 35ch; line-height: 1.55; }
.auth-form-area { display: grid; align-items: center; justify-items: center; padding: 1.25rem; }
.auth-form { width: min(100%, 420px); display: grid; gap: .8rem; }
.auth-form h2 { font-size: 1.5rem; }
.auth-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.auth-links button { color: var(--green); }
.fields { display: grid; gap: .75rem; }
.field { display: grid; gap: .3rem; min-width: 0; font-size: .88rem; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; font-size: 1rem; font-weight: 400; }
.password-row { position: relative; }
.password-row input { padding-inline-end: 3.25rem; }
.password-row input::-ms-reveal { display: none; }
.password-toggle { position: absolute; inset-inline-end: 1px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.password-toggle:hover { color: var(--green); background: transparent; }
.password-toggle:focus-visible { outline-offset: -4px; }
dialog { width: min(550px, calc(100% - 1.25rem)); max-height: calc(100dvh - 1.25rem); padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: #112824aa; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .45rem; margin-top: .85rem; }
.dialog-body { display: grid; gap: .8rem; }
.code { font-family: ui-monospace, monospace; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; background: #eef5ef; overflow-wrap: anywhere; user-select: all; }
.loading { padding: 2rem; text-align: center; }
.button { text-decoration: none; }
.primary { box-shadow: 0 4px 10px #007b5621; }
.page-actions, .report-filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.report-filters { min-width: 0; }
.report-filters label { min-width: 0; }
.active-filters { margin: -.45rem 0 1rem; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric.highlight {
  grid-column: 1 / -1;
  background: radial-gradient(ellipse at 100% 0%, #0e805a 0%, transparent 65%), linear-gradient(135deg, #072b22, #0a4633);
  border-color: transparent;
  box-shadow: 0 12px 25px #083f301c;
}
.metric.highlight .metric-value { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.metric-head .icon { box-sizing: content-box; background: #e8f4ee; padding: .42rem; border-radius: 10px; }
.metric.highlight .icon { background: #27e2a32b; color: #97f8d0; }
.metric.expense .icon { background: #f8eeef; }
.chart-grid, .card-workspace { display: grid; gap: .85rem; }
.chart-grid > *, .card-workspace > * { min-width: 0; }
.chart-panel { box-shadow: 0 9px 24px #19352908; }
.chart-heading { display: grid; gap: .27rem; margin-bottom: .75rem; }
.chart-heading h2 { font-size: 1.18rem; }
.chart-heading .muted, .chart-note { font-size: .82rem; }
.chart-key { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .79rem; color: var(--muted); }
.chart-key span::before { content: ''; display: inline-block; width: .58rem; height: .58rem; border-radius: 3px; margin-inline-end: .35rem; background: #008d67; }
.chart-key span + span::before { background: var(--purple); }
.monthly-chart { display: flex; align-items: stretch; gap: .18rem; margin: .55rem 0; }
.chart-month {
  flex: 1 1 0;
  min-width: 0;
  padding: .22rem .14rem;
  display: grid;
  gap: .25rem;
  justify-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 650;
}
.chart-month:hover, .chart-month[aria-pressed="true"] { color: #005d41; background: #e7f7ef; }
.chart-month svg {
  width: 100%;
  height: clamp(112px, 24vw, 170px);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), #e9efed calc(25% - 1px) 25%);
}
.bar-income { fill: #008d67; }
.bar-expense { fill: var(--purple); }
.chart-note { color: var(--muted); border-top: 1px solid var(--line); padding-top: .65rem; overflow-wrap: anywhere; }
.donut-layout { display: grid; justify-items: center; gap: .6rem; }
.donut { width: min(100%, 166px); height: auto; }
.donut text { fill: var(--ink); font-size: 24px; font-weight: 750; }
.donut .donut-caption { fill: var(--muted); font-size: 11px; font-weight: 500; }
.donut [data-chart-category] { cursor: pointer; }
.donut [data-chart-category]:hover { stroke-width: 25; }
.breakdown { width: 100%; min-width: 0; }
.breakdown-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  width: 100%;
  align-items: center;
  gap: .4rem;
  padding: .3rem .25rem;
  min-height: 44px;
  text-align: start;
  font-size: .83rem;
  color: var(--ink);
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.breakdown-row:hover { background: #eef7f2; }
.breakdown-row > span, .breakdown-row strong { overflow-wrap: anywhere; }
.legend-dot { width: 10px; height: 10px; }
.category-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; color: #006d4d; background: #e4f6ed; border-radius: 11px; flex: none; }
.category-mark .icon { width: 18px; height: 18px; }
.entry-ident { display: flex; gap: .65rem; align-items: center; min-width: 0; }
.entry-ident > div { min-width: 0; }
.entry-ident strong, .entry-ident small { display: block; }
.entry-ident strong { line-height: 1.25; }
.icon-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .4rem; }
.icon-picker { min-width: 0; display: flex; flex-wrap: wrap; gap: .35rem; border: 1px solid var(--line); border-radius: 12px; padding: .55rem; }
.icon-picker legend { padding-inline: .25rem; font-size: .88rem; font-weight: 650; }
.icon-choice { position: relative; display: inline-grid; }
.icon-choice input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.icon-choice > span { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); color: var(--green); cursor: pointer; }
.icon-choice input:checked + span { color: white; background: var(--green); }
.icon-choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.quick-summary { border-radius: 12px; background: #e4f6ed; color: #006448; padding: .75rem; font-weight: 650; }
.credit-card {
  display: grid;
  gap: .4rem;
  align-content: start;
  color: #f3fff9;
  background: radial-gradient(ellipse at 100% 0%, #19a674 0%, transparent 68%), linear-gradient(145deg, #062a22, #07563d);
  border-radius: var(--radius);
  padding: .85rem 1.05rem;
  margin-bottom: 0;
  box-shadow: 0 12px 25px #083f301c;
  overflow-wrap: anywhere;
}
.credit-card .panel-head { margin: 0; }
.credit-card h2 { font-size: clamp(1.1rem, 2.1vw, 1.35rem); line-height: 1.2; }
.credit-card p, .credit-card small { color: inherit; opacity: .88; }
.card-chip { display: grid; place-items: center; width: 34px; height: 32px; color: inherit; background: #ffffff26; border-radius: 9px; }
.card-limits, .invoice-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: .2rem 0; }
.card-limits strong, .invoice-summary strong { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card-cycle { font-size: .8rem; margin: 0; }
.invoice-summary > div { background: #edf7f2; border-radius: 12px; padding: .6rem; min-width: 0; }
.invoice-summary > div:first-child { grid-column: 1 / -1; }
.invoice-summary small, .invoice-row small { color: var(--muted); }
.invoice-panel select, #card-select { max-width: min(65vw, 255px); }
.invoice-status { margin: .65rem 0; font-size: .85rem; }
.status-pill { display: inline-block; background: #d9f5e9; color: #075439; border-radius: 999px; padding: .25rem .55rem; font-weight: 700; }
.invoice-actions { margin: .65rem 0; }
.section-label { font-size: .91rem; margin: .95rem 0 .45rem; }
.invoice-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.invoice-row strong, .invoice-row small { display: block; overflow-wrap: anywhere; }
.invoice-date-col { display: grid; place-items: center; min-width: 52px; padding: .35rem .45rem; border-radius: 10px; background: var(--surface-alt); border: 1px solid var(--line); text-align: center; line-height: 1.15; }
.invoice-date-col strong { font-size: .86rem; color: var(--green); }
.invoice-date-col small { font-size: .7rem; color: var(--muted); }
.invoice-right { display: flex; align-items: center; gap: .6rem; justify-self: end; }
.invoice-right strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 539px) {
  .invoice-right { flex-direction: column; align-items: flex-end; gap: .25rem; }
  .invoice-right .button { min-height: 32px; padding: .25rem .6rem; font-size: .78rem; }
}
.future-invoices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); gap: .45rem; }
.future-invoices button { display: grid; text-align: start; justify-content: start; font-size: .82rem; }
@media (min-width: 540px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric.highlight, .invoice-summary > div:first-child { grid-column: auto; }
  .invoice-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .donut-layout { grid-template-columns: minmax(100px, 145px) minmax(0, 1fr); align-items: center; }
  .fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields .wide { grid-column: 1 / -1; }
  .entry-row { grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto; gap: .8rem; }
  .entry-row .button { grid-column: auto; }
}
@media (max-width: 639px) {
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 90dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
  }
}
@media (max-width: 799px) {
  .nav { position: fixed; z-index: 2; inset: auto 0 0; background: var(--dark); padding: .35rem .7rem calc(.35rem + env(safe-area-inset-bottom)); }
  .nav button { flex-direction: column; gap: .2rem; min-height: 52px; padding: .35rem .1rem; }
  .nav .icon { width: 19px; height: 19px; }
  .content { padding-bottom: calc(9.5rem + env(safe-area-inset-bottom)); }
  .page-head > .page-actions {
    position: fixed;
    z-index: 2;
    inset: auto 1rem calc(4.5rem + env(safe-area-inset-bottom)) auto;
    flex-direction: column;
    align-items: flex-end;
    gap: .55rem;
  }
  #quick-entry, #new-entry {
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    gap: 0;
    box-shadow: 0 8px 22px #082c2338;
  }
  #quick-entry {
    background: var(--purple);
    border-color: transparent;
    color: #fff;
  }
  #quick-entry:hover { background: #5e4ec2; }
  #new-entry { width: 56px; height: 56px; min-height: 56px; }
  #quick-entry .icon, #new-entry .icon { width: 23px; height: 23px; }
}
@media (min-width: 800px) {
  .shell { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 100dvh; }
  .shell.sidebar-collapsed { grid-template-columns: 68px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 1rem .95rem .85rem; display: flex; flex-direction: column; align-items: stretch; }
  .sidebar-controls { display: flex; justify-content: space-between; align-items: center; gap: .25rem; margin-top: .55rem; }
  .sidebar .nav-caption { color: #acc8bb; margin-inline-start: .55rem; }
  #toggle-sidebar { color: #d5e6dc; }
  #toggle-sidebar:hover { color: #effff5; background: #17523e; }
  .sidebar-collapsed .sidebar { padding-inline: 12px; }
  .sidebar-collapsed .brand { justify-content: center; }
  .sidebar-collapsed .brand > div,
  .sidebar-collapsed .nav-caption,
  .sidebar-collapsed .profile-name,
  .sidebar-collapsed .avatar { display: none; }
  .sidebar-collapsed .nav button { justify-content: center; }
  .sidebar-collapsed .nav button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: 1fr; }
  .nav button { flex-direction: row; gap: .55rem; justify-content: start; min-height: 40px; padding: .42rem .7rem; font-size: .89rem; }
  .nav .icon { width: 20px; height: 20px; }
  .profile {
    margin-top: auto;
    border-top: 1px solid #3c5750;
    padding-top: .75rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .5rem .6rem;
    align-items: center;
  }
  .profile-name { display: grid; gap: .12rem; min-width: 0; }
  .profile-name strong, .profile-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 50%; background: #aee4c7; color: var(--dark); font-weight: 700; }
  .profile-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; width: 100%; }
  .profile-actions .icon-button { width: 100%; min-width: 0; min-height: 36px; height: 36px; border-radius: 9px; background: #ffffff14; justify-content: center; }
  .profile-actions .icon-button:hover { background: #ffffff24; }
  .sidebar-collapsed .profile { grid-template-columns: 1fr; justify-items: center; }
  .sidebar-collapsed .profile-actions { grid-template-columns: 1fr; width: 100%; justify-items: center; }
  .sidebar-collapsed .profile-actions .icon-button { width: 40px; height: 40px; }
  .profile-name small { color: #c4e2d2; }
  .content { padding: 2rem clamp(1.4rem, 4vw, 4rem) 5.5rem; }
  .page-head > .page-actions, .v-floating-actions {
    position: fixed;
    z-index: 25;
    inset: auto 1.75rem 1.5rem auto;
    display: flex;
    gap: .6rem;
    align-items: center;
  }
  .page-head > .page-actions .button, .v-floating-actions .button {
    border-radius: 999px;
    padding: .68rem 1.15rem;
    box-shadow: 0 10px 26px #082c2330;
  }
  .page-head > .page-actions .ai-button { background: var(--purple); color: #fff; border-color: transparent; }
  .page-head > .page-actions .ai-button:hover { background: #5e4ec2; }
  .panel, .metric { padding: 1.2rem; }
  .auth-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .auth-intro { padding: clamp(2rem, 6vw, 6rem); padding-bottom: clamp(5rem, 22vh, 14rem); }
  .auth-intro h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
}
@media (min-width: 1100px) {
  .config-grid { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .card-workspace { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; }
}
.overview-extras { display: grid; gap: .85rem; margin-top: .85rem; }
@media (min-width: 900px) { .overview-extras { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.budget-list, .recurrence-list, .couple-list { display: grid; gap: .75rem; }
.budget-item { display: grid; gap: .35rem; }
.budget-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .88rem; }
.budget-bar { height: 9px; border-radius: 999px; background: #e8efeb; overflow: hidden; }
.budget-fill { height: 100%; border-radius: 999px; background: var(--green); transition: width .25s ease; }
.budget-fill.warn { background: #d48042; }
.budget-fill.over { background: var(--red); }
.tag-pill { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px; background: #e8f4ee; color: var(--green); }
.tag-pill .icon { width: 12px; height: 12px; }
.couple-row { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .65rem .8rem; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--line); }
.couple-row > div { min-width: 0; }
.couple-row > div strong, .couple-row > div small { display: block; overflow-wrap: anywhere; }
.entry-card { background: var(--surface-alt); }
.search-bar input { background: var(--surface-alt); }
.chat-bubble.model { background: var(--surface-alt); }
.icon-picker { min-width: 0; display: grid; gap: .75rem; border: 1px solid var(--line); border-radius: 12px; padding: .75rem; max-height: 260px; overflow-y: auto; }
.icon-group { display: grid; gap: .4rem; }
.icon-group-label { font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.icon-group-grid { display: flex; flex-wrap: wrap; gap: .35rem; }
.entry-hero { border-radius: 16px; padding: .9rem 1rem 1.05rem; color: #fff; display: grid; gap: .75rem; }
.entry-hero.is-expense { background: linear-gradient(135deg, #8b1e1a, #b42823); }
.entry-hero.is-income { background: linear-gradient(135deg, #065e45, #008d67); }
.entry-hero.is-transfer { background: linear-gradient(135deg, #374151, #4b5563); }
.entry-type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; background: #0000002e; padding: .25rem; border-radius: 10px; }
.chat-card-top .entry-ident strong, .chat-card-top .entry-ident small { display: block; overflow-wrap: anywhere; }
.chat-card-top .entry-ident strong { margin-bottom: .18rem; }
.color-picker { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.color-swatch { position: relative; display: inline-block; width: 32px; height: 32px; }
.color-swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.color-swatch span { display: block; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform .12s ease; }
.color-swatch input:checked + span { border-color: var(--ink); transform: scale(1.15); box-shadow: 0 0 0 2px var(--surface) inset; }
.bank-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-weight: 800; font-size: .82rem; letter-spacing: -.03em; flex: none; }
.bank-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem; }
.bank-choice { position: relative; display: flex; align-items: center; gap: .45rem; padding: .4rem .5rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-alt); cursor: pointer; font-size: .8rem; font-weight: 600; }
.bank-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.bank-choice:has(input:checked) { border-color: var(--purple); background: #7c5dfa1a; }
.account-card { display: grid; gap: .7rem; padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-alt); }
.account-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.account-card-head .button { min-height: 36px; padding: .35rem .75rem; font-size: .82rem; flex: none; }
.account-card-balance { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.seg-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: .3rem; background: var(--surface-alt); border: 1px solid var(--line); padding: .25rem; border-radius: 12px; margin-bottom: .75rem; }
.seg-tab { border: 0; border-radius: 9px; min-height: 36px; background: transparent; color: var(--muted); font-weight: 650; font-size: .85rem; }
.seg-tab.active { background: var(--purple); color: #fff; }
.report-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; background: var(--surface-alt); border: 1px solid var(--line); padding: .25rem; border-radius: 14px; margin-bottom: 1rem; }
.report-tab { border: 0; border-radius: 10px; min-height: 40px; background: transparent; color: var(--muted); font-weight: 650; }
.report-tab.active { background: var(--purple); color: #fff; }
.donut-lg { width: min(100%, 220px); height: auto; }
.report-cat-list { display: grid; gap: .45rem; width: 100%; }
.report-cat-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  text-align: start;
}
.report-cat-row strong, .report-cat-row small { display: block; }
.report-cat-right { text-align: right; font-variant-numeric: tabular-nums; }
.settings-stack { display: grid; gap: 1.25rem; }
.settings-eyebrow { margin: 0 0 .5rem .25rem; }
.settings-menu { display: grid; gap: 1.15rem; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-top: .5rem; }
.member-card { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-alt); }
.member-avatar { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 800; flex: none; }
.member-info { min-width: 0; flex: 1; }
.member-info strong, .member-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .85rem; }
.settings-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  padding: .85rem 1rem;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: start;
}
.settings-item:first-child { border-top: 0; }
.settings-item:hover { background: var(--surface-alt); }
.settings-item-left { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.settings-item-left strong, .settings-item-left small { display: block; }
.settings-item-left small { color: var(--muted); }
.settings-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-alt); color: var(--ink); flex: none; }
.tag-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-alt); font-size: .8rem; cursor: pointer; }
.tag-chip input { min-height: 0; width: 14px; height: 14px; margin: 0; }
.date-picker-wrap { position: relative; }
.date-picker-display {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.date-picker-display strong { font-weight: 700; }
.date-picker-display small { margin-left: auto; font-size: .82rem; }
.date-picker-wrap input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.picker-trigger {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  min-height: 44px;
  padding: .42rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-align: start;
}
.picker-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.picker-label.is-placeholder { color: var(--muted); font-weight: 500; }
.picker-chevron { color: var(--muted); transform: rotate(90deg); display: grid; place-items: center; }
.cat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0b241d80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.cat-modal-sheet {
  width: min(100%, 440px);
  max-height: 82dvh;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: .75rem;
  box-shadow: 0 20px 50px #0000003d;
}
.cat-modal-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cat-modal-list { overflow-y: auto; display: grid; gap: .35rem; max-height: 55dvh; padding-right: .2rem; }
.cat-picker-group { display: grid; gap: .25rem; }
.cat-picker-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .5rem .65rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--ink);
  text-align: start;
}
.cat-picker-item.sub { margin-left: 1.2rem; width: calc(100% - 1.2rem); }
.cat-picker-item.selected { border-color: var(--purple); background: #7c5dfa1a; }
.cat-picker-item strong, .cat-picker-item small { display: block; }
.cards-deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: .85rem; margin-bottom: 1rem; }
.credit-card.is-selected { outline: 3px solid var(--purple); outline-offset: 2px; }
.card-actions-row { display: flex; gap: .5rem; margin-top: .15rem; }
.card-btn-primary { flex: 1; background: #ffffffeb; color: #102a22; min-height: 34px; padding: .35rem .7rem; font-size: .84rem; }
.card-btn-ghost { background: #ffffff24; color: inherit; border-color: #ffffff3d; min-height: 34px; padding: .35rem .7rem; font-size: .84rem; }
.filter-link-btn {
  display: inline-flex;
  align-items: center;
  margin-left: .45rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 650;
}
.brand-logo { height: 42px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.brand-logo-compact { display: none; width: 42px; height: 42px; border-radius: 10px; object-fit: contain; }
.brand-text small { color: #c4e2d2; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.cat-section-title {
  margin: 1rem 0 .35rem;
  font-size: .82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
}
@media (min-width: 800px) {
  .sidebar .brand { flex-direction: column; align-items: center; text-align: center; gap: .25rem; }
  .brand-logo { height: clamp(68px, 11vh, 100px); max-width: 180px; }
  .brand-text small { font-size: .8rem; }
  .sidebar-collapsed .brand-logo,
  .sidebar-collapsed .brand-text { display: none; }
  .sidebar-collapsed .brand-logo-compact { display: block; }
  .auth-form-logo { display: none; }
}
.auth-logo-img { height: clamp(145px, 22vw, 240px); width: auto; max-width: 100%; object-fit: contain; }
.remember-check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .92rem; font-weight: 500; color: var(--ink); width: fit-content; }
.remember-check input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--green); cursor: pointer; }
.calc-toggle-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  border: 1px solid #ffffff3d;
  background: #ffffff22;
  color: #fff;
}
.calc-toggle-btn:hover { background: #ffffff38; }
.mini-calc {
  display: grid;
  gap: .55rem;
  padding: .75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.mini-calc-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.mini-calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.mini-calc-grid button {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}
.mini-calc-grid button.op { background: #7c5dfa1a; color: var(--purple); }
.mini-calc-foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: .45rem; }
.entry-type-tab { border: 0; border-radius: 8px; min-height: 36px; background: transparent; color: #ffffffcc; font-weight: 650; font-size: .88rem; }
.entry-type-tab.active { background: #ffffff2b; color: #fff; }
.entry-amount-hero { display: flex; align-items: baseline; gap: .45rem; font-size: 1.5rem; font-weight: 750; }
.entry-amount-hero input {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  font-weight: 800;
  padding: 0;
  min-height: 44px;
  outline: none;
}
.entry-amount-hero input::placeholder { color: #ffffff88; }
@media (max-width: 639px) {
  dialog.dialog-full {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
    padding: calc(1.1rem + env(safe-area-inset-top, 16px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }
  dialog.dialog-full .dialog-head {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--surface);
    padding-bottom: .45rem;
  }
  dialog.dialog-full .ai-dialog { height: calc(100dvh - 5.5rem - env(safe-area-inset-top, 16px) - env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 799px) {
  .v-floating-actions {
    position: fixed;
    z-index: 25;
    inset: auto 1rem calc(4.5rem + env(safe-area-inset-bottom, 0px)) auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
  }
  .v-floating-actions .button {
    border-radius: 999px;
    padding: .55rem .95rem;
    box-shadow: 0 8px 22px #082c2338;
  }
}
.v-fuel-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: .55rem;
  margin-bottom: .75rem;
}
.v-fuel-summary-strip > div {
  display: grid;
  gap: .12rem;
  padding: .65rem .75rem;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}
.v-fuel-summary-strip small { color: var(--muted); font-size: .76rem; }
.v-fuel-summary-strip strong { font-size: 1.12rem; color: var(--green); }
.v-fuel-summary-strip span { font-size: .75rem; color: var(--muted); }
.ai-dialog { display: grid; grid-template-rows: auto 1fr auto; gap: .75rem; height: min(76dvh, 620px); }
.ai-badge { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: #efeafd; color: var(--purple); }
.chat-messages { display: flex; flex-direction: column; gap: .75rem; overflow-y: auto; padding: .25rem .15rem; }
.chat-bubble { max-width: 88%; padding: .75rem .9rem; border-radius: 16px; font-size: .93rem; line-height: 1.45; }
.chat-bubble.user { align-self: flex-end; background: var(--dark); color: #f5fff9; border-bottom-right-radius: 4px; }
.chat-bubble.model { align-self: flex-start; background: var(--surface-alt); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-card { margin-top: .65rem; padding: .75rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: .6rem; }
.chat-card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.chat-card-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.chat-card-actions .button { min-height: 38px; padding: .4rem .75rem; font-size: .84rem; }
.chat-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .45rem; align-items: center; padding-top: .35rem; border-top: 1px solid var(--line); }
.chat-composer input { border-radius: 22px; padding-inline: 1rem; }
.mic-btn.recording { background: var(--red); color: #fff; border-color: var(--red); animation: pulse-mic 1.1s infinite; }
@keyframes pulse-mic { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* === Módulo de Controle Veicular === */
#vehicle { display: grid; gap: .95rem; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 599px) { .fields.three { grid-template-columns: 1fr; } }
.v-btn-sm { min-height: 36px; padding: .35rem .7rem; font-size: .83rem; }
.v-inline-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.v-topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .85rem; }
.v-topbar-left, .v-topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.v-vehicle-select-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.v-vehicle-select-wrap .icon { width: 26px; height: 26px; color: var(--green); }
.v-vehicle-select-wrap strong { display: block; font-size: 1.05rem; }
.v-odometer-pill { display: flex; align-items: center; gap: .65rem; padding: .4rem .75rem; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--line); }
.v-odometer-pill small { display: block; color: var(--muted); font-size: .74rem; }
.v-odometer-pill strong { font-variant-numeric: tabular-nums; font-size: .98rem; }
.v-btn-fuel { background: #1d4ed8; color: #fff; }
.v-btn-fuel:hover { background: #1e40af; }
.v-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.v-tab { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .45rem .9rem; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; font-size: .9rem; }
.v-tab.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.v-tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .74rem; }
.v-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.v-health-card { text-align: left; display: grid; gap: .2rem; border-left: 5px solid var(--green); cursor: pointer; }
.v-health-card.is-overdue { border-left-color: #dc2626; }
.v-health-card.is-soon { border-left-color: #d97706; }
.v-health-card.is-ok { border-left-color: #16a34a; }
.v-health-card strong { font-size: 1.65rem; line-height: 1.1; }
.v-health-card small { color: var(--muted); font-weight: 650; }
.v-health-card span { font-size: .8rem; color: var(--muted); }
.v-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .75rem; }
.v-dash-two { display: grid; grid-template-columns: 1fr; gap: .85rem; }
@media (min-width: 960px) { .v-dash-two { grid-template-columns: 1.15fr .85fr; } }
@media (max-width: 599px) { .v-health-grid { grid-template-columns: 1fr; } }
.v-alert-list { display: grid; gap: .55rem; }
.v-alert-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem; padding: .65rem .75rem; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--line); }
.v-alert-info { display: grid; gap: .18rem; min-width: 0; }
.v-alert-title { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.v-status-badge { display: inline-block; padding: .16rem .52rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.v-status-overdue { background: #fee2e2; color: #991b1b; }
.v-status-soon { background: #fef3c7; color: #92400e; }
.v-status-ok { background: #dcfce7; color: #166534; }
.v-status-inspect { background: #e0f2fe; color: #075985; }
.v-status-replaced { background: #e5e7eb; color: #374151; }
:root[data-theme="dark"] .v-status-overdue { background: #7f1d1d; color: #fecaca; }
:root[data-theme="dark"] .v-status-soon { background: #78350f; color: #fde68a; }
:root[data-theme="dark"] .v-status-ok { background: #14532d; color: #bbf7d0; }
:root[data-theme="dark"] .v-status-inspect { background: #0c4a6e; color: #bae6fd; }
:root[data-theme="dark"] .v-status-replaced { background: #374151; color: #d1d5db; }
.v-text-danger { color: var(--red); font-weight: 650; }
.v-text-warn { color: #b45309; font-weight: 650; }
:root[data-theme="dark"] .v-text-warn { color: #fbbf24; }
.v-fuel-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: .6rem; }
.v-fuel-stat-card { display: grid; gap: .22rem; padding: .75rem; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--line); }
.v-fuel-badge { display: inline-block; width: fit-content; padding: .18rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.v-fuel-common { background: #fef3c7; color: #92400e; }
.v-fuel-additive { background: #dbeafe; color: #1e40af; }
.v-fuel-ethanol { background: #dcfce7; color: #166534; }
.v-fuel-diesel { background: #e5e7eb; color: #1f2937; }
.v-fuel-gnv { background: #ede9fe; color: #5b21b6; }
:root[data-theme="dark"] .v-fuel-common { background: #78350f; color: #fde68a; }
:root[data-theme="dark"] .v-fuel-additive { background: #1e3a8a; color: #bfdbfe; }
:root[data-theme="dark"] .v-fuel-ethanol { background: #14532d; color: #bbf7d0; }
.v-eth-tip { display: grid; gap: .18rem; padding: .65rem .8rem; border-radius: 12px; margin-bottom: .75rem; font-size: .86rem; background: var(--surface-alt); border: 1px solid var(--line); }
.v-chart { display: flex; align-items: end; gap: .75rem; height: 155px; padding-top: .75rem; overflow-x: auto; }
.v-chart-col { display: grid; justify-items: center; gap: .3rem; min-width: 44px; }
.v-chart-bars { display: flex; align-items: end; gap: 4px; height: 120px; }
.v-bar-fuel { width: 14px; border-radius: 5px 5px 0 0; background: #2563eb; min-height: 2px; }
.v-bar-maint { width: 14px; border-radius: 5px 5px 0 0; background: var(--green); min-height: 2px; }
.v-chart-legend { display: flex; gap: 1rem; margin-top: .65rem; font-size: .82rem; color: var(--muted); }
.v-chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.v-dot-fuel, .v-dot-maint { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.v-dot-fuel { background: #2563eb; }
.v-dot-maint { background: var(--green); }
.v-mode-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.v-pill { min-height: 36px; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-alt); color: var(--ink); font-size: .84rem; font-weight: 650; }
.v-pill.is-active { background: var(--green); color: #fff; border-color: var(--green); }
.v-filters-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; margin-bottom: .85rem; }
@media (max-width: 599px) { .v-filters-row { grid-template-columns: 1fr; } }
.v-table-wrap { display: none; overflow-x: auto; }
.v-mobile-list { display: grid; gap: .6rem; }
@media (min-width: 800px) {
  .v-table-wrap { display: block; }
  .v-mobile-list { display: none; }
}
.v-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.v-table th { text-align: left; padding: .55rem .5rem; border-bottom: 2px solid var(--line); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.v-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.v-cell-note { display: block; font-size: .76rem; margin-top: .12rem; }
.v-table-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.v-mobile-card, .v-fuel-row { display: grid; gap: .4rem; padding: .8rem; border-radius: 14px; background: var(--surface-alt); border: 1px solid var(--line); }
.v-mobile-head, .v-mobile-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.v-mobile-meta { display: grid; gap: .15rem; font-size: .82rem; color: var(--muted); }
.v-fuel-list, .v-orders-list { display: grid; gap: .65rem; }
.v-fuel-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.v-fuel-main, .v-fuel-right { display: grid; gap: .2rem; }
.v-fuel-right { justify-items: end; text-align: right; }
.v-fuel-title { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.v-order-card { display: grid; gap: .65rem; background: var(--surface-alt); }
.v-order-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.v-order-summary > div { padding: .55rem .7rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.v-order-summary small { display: block; color: var(--muted); font-size: .75rem; }
.v-order-items { display: grid; gap: .35rem; border-top: 1px solid var(--line); padding-top: .55rem; }
.v-order-line { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .87rem; }
.v-access-options { display: grid; gap: .55rem; margin-top: .4rem; }
.v-access-card { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-alt); cursor: pointer; }
.v-access-card input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--green); }
.v-access-card strong { display: block; }
.v-items-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .2rem; }
.v-entry-row { display: grid; gap: .5rem; padding: .7rem; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--line); margin-bottom: .5rem; }
.v-row-foot { display: flex; gap: .45rem; align-items: center; }
.v-row-foot input { flex: 1; }
.v-live-total { padding: .6rem .75rem; border-radius: 10px; background: var(--mint); color: var(--ink); font-size: .9rem; text-align: right; }
.v-tank-pill { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; margin-top: .15rem; padding: .22rem .55rem; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: .79rem; }
.v-can-svg { width: 20px; height: 20px; flex: none; }
.v-tank-hint { font-size: .82rem; font-weight: 600; color: var(--green); }

/* === Correções completas de contraste no Tema Escuro === */
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] .secondary:hover,
:root[data-theme="dark"] .icon-button:hover,
:root[data-theme="dark"] .month-button:hover { background: #272b36; }
:root[data-theme="dark"] .entry-card { background: var(--surface-alt); }
:root[data-theme="dark"] .entry-card:hover { background: #262b38; border-color: #3b4254; }
:root[data-theme="dark"] .breakdown-row:hover { background: #262b38; }
:root[data-theme="dark"] .metric-head .icon { background: #143328; }
:root[data-theme="dark"] .metric.expense .icon { background: #3b1e22; }
:root[data-theme="dark"] .category-mark { background: #143328; color: #34d399; }
:root[data-theme="dark"] .chart-month:hover,
:root[data-theme="dark"] .chart-month[aria-pressed="true"] { background: #16362b; color: #6ee7b7; }
:root[data-theme="dark"] .invoice-summary > div,
:root[data-theme="dark"] .quick-summary,
:root[data-theme="dark"] .code { background: var(--surface-alt); color: var(--ink); }
:root[data-theme="dark"] .status-pill { background: #064e3b; color: #a7f3d0; }
:root[data-theme="dark"] .budget-bar { background: #272a34; }
:root[data-theme="dark"] .ai-badge { background: #31235c; color: #ddd6fe; }
:root[data-theme="dark"] .chat-bubble.user { background: var(--green); color: #fff; }

/* === Melhorias de gráficos, assinaturas, modais e responsividade de fonte === */
.chart-month.is-future { opacity: .82; }
.chart-month.is-future span { font-style: italic; }
.chart-month.is-future rect { opacity: .72; }
.row-actions-inline { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: flex-end; }
.row-actions-inline .button { min-height: 36px; padding: .35rem .65rem; font-size: .8rem; }
.modal-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: .55rem; }
.modal-summary-box { padding: .65rem .75rem; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--line); display: grid; gap: .18rem; }
.modal-summary-box small { color: var(--muted); font-size: .78rem; }
.modal-summary-box strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.modal-entries-scroll { display: grid; gap: .45rem; max-height: min(46dvh, 340px); overflow-y: auto; padding-right: .15rem; }
@media (max-width: 539px) {
  .couple-row { flex-wrap: wrap; }
  .couple-row .row-actions-inline { width: 100%; justify-content: flex-end; }
}

/* === Saldos na Visão Geral, Repetir Lançamento, Parcelamentos e IA === */
.overview-accounts { margin-top: .85rem; }
.account-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: .65rem;
}
.account-balance-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .7rem .85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  text-align: left;
  width: 100%;
}
.account-balance-pill:hover { border-color: var(--green); }
.account-balance-pill strong { display: block; font-size: .94rem; }
.account-balance-pill small { display: block; color: var(--muted); font-size: .76rem; }
.account-balance-val { font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-balance-total { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.entry-edit-hint { color: var(--muted); opacity: .65; display: inline-flex; align-items: center; }
.entry-card:hover .entry-edit-hint { opacity: 1; color: var(--green); }
.repeat-section {
  display: grid;
  gap: .6rem;
  padding: .85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.repeat-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.repeat-head span { font-size: .88rem; font-weight: 650; }
.repeat-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.repeat-chip {
  min-height: 36px;
  padding: .35rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 650;
}
.repeat-chip.active {
  border-color: var(--purple);
  background: #7c5dfa22;
  color: var(--purple);
}
:root[data-theme="dark"] .repeat-chip.active { color: #c4b5fd; }
.repeat-detail { display: grid; gap: .55rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.repeat-installment-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
}
.repeat-preview { font-weight: 750; color: var(--purple); font-size: .95rem; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .repeat-preview { color: #c4b5fd; }
.installment-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.installment-stepper button {
  min-height: 36px;
  min-width: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  font-size: 1rem;
}
.installment-stepper input {
  width: 52px;
  min-height: 36px;
  border: 0;
  text-align: center;
  font-weight: 700;
  background: transparent;
  padding: 0;
}
.repeat-clear-btn {
  min-height: 34px;
  min-width: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.repeat-clear-btn:hover { background: var(--line); color: var(--ink); }
.installment-card {
  display: grid;
  gap: .45rem;
  padding: .8rem .9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.installment-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.installment-card-head strong { display: block; }
.installment-card-head small { display: block; color: var(--muted); font-size: .79rem; }
.installment-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem .75rem;
  font-size: .82rem;
  color: var(--muted);
}
.recording-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem .75rem;
  border-radius: 12px;
  background: #fee2e2;
  color: #991b1b;
  font-size: .85rem;
  font-weight: 650;
}
:root[data-theme="dark"] .recording-bar { background: #7f1d1d; color: #fecaca; }
