/* Estilos do app. Gerado a partir do app.html da versão do Claude: não edite aqui. */
/* Layout: celular primeiro, uma coluna com barra de abas embaixo e botão de adicionar; no desktop, barra lateral fixa e cartões em grade. Tema escuro único, tinta azulada. */
:root {
  color-scheme: dark;
  --bg: #0C0F13;
  --bg-2: #10141A;
  --panel: #151A21;
  --panel-2: #1B212A;
  --panel-3: #232A35;
  --line: #232A34;
  --line-2: #313A46;
  --fg: #E7EBF0;
  --fg-2: #BAC3CE;
  --muted: #8B94A2;
  --faint: #5E6775;
  --accent: #AAB8FF;
  --accent-soft: #252C4A;
  --on-accent: #0C0F13;
  --in: #5BD1A5;
  --in-soft: #16302A;
  --out: #FF8C75;
  --out-soft: #3A2220;
  --warn: #F1BF62;
  --warn-soft: #3A3020;
  --bad: #FF6B6B;
  --bad-soft: #3D1F22;
  --f-ui: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-num: "Newsreader", "Iowan Old Style", Georgia, serif;
  --r: 14px;
  --r-sm: 10px;
  --tab-h: 62px;
}
html, body { background: var(--bg); color: var(--fg); }
body { font-family: var(--f-ui); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.in { color: var(--in); }
.out { color: var(--out); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.cap { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.small { font-size: 13.5px; }
.strong { font-weight: 600; }
.row-flex { display: flex; align-items: center; gap: 8px; min-width: 0; }
.spacer { flex: 1; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.stack { display: grid; gap: 12px; min-width: 0; }
.stack-sm { display: grid; gap: 6px; min-width: 0; }

/* ---------- casca ---------- */
.app { min-height: 100%; }
.side { display: none; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: rgba(12, 15, 19, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); min-height: calc(58px + env(safe-area-inset-top, 0px)); }
.top h1 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.top-actions { display: none; gap: 8px; }
.main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 14px 16px calc(var(--tab-h) + 96px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; min-width: 0; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--bg-2); border-top: 1px solid var(--line); }
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font-size: 10.5px; letter-spacing: 0.01em; padding: 6px 0; min-width: 0; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--fg); }
.tab[aria-current="page"] svg { color: var(--accent); }
.fab { position: fixed; right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 31; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
.fab svg { width: 26px; height: 26px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.brand-mark svg { width: 18px; height: 18px; }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 18px 14px; background: var(--bg-2); border-right: 1px solid var(--line); }
  .side .brand { padding: 4px 8px 18px; }
  .navi { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: var(--fg-2); padding: 10px 12px; border-radius: 10px; font-size: 14.5px; text-align: left; }
  .navi svg { width: 20px; height: 20px; color: var(--muted); }
  .navi:hover { background: var(--panel); }
  .navi[aria-current="page"] { background: var(--panel-2); color: var(--fg); }
  .navi[aria-current="page"] svg { color: var(--accent); }
  .side-foot { margin-top: auto; display: grid; gap: 4px; }
  .tabbar, .fab { display: none; }
  .top { top: 0; padding: 14px 32px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .top h1 { font-size: 22px; }
  .top-actions { display: flex; }
  .top .gear-mobile { display: none; }
  .main { padding: 22px 32px 56px; gap: 16px; }
}

/* ---------- componentes ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.card-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.card-head .spacer { flex: 1; }
.hero-num { font-family: var(--f-num); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.big-num { font-family: var(--f-num); font-weight: 400; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mid-num { font-family: var(--f-num); font-weight: 400; font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.label { font-size: 12.5px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg); font-size: 14px; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--panel-3); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn.small { min-height: 32px; padding: 5px 10px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.ib { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; border: 1px solid transparent; background: none; color: var(--fg-2); flex: none; }
.ib:hover { background: var(--panel-2); }
.ib svg { width: 20px; height: 20px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-size: 13.5px; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .x { opacity: 0.7; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--panel-3); color: var(--fg-2); }
.pill.ok { background: var(--in-soft); color: var(--in); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.acc { background: var(--accent-soft); color: var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.sw { width: 12px; height: 12px; border-radius: 4px; flex: none; display: inline-block; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--fg); }
.seg.full { display: flex; }
.seg.full button { flex: 1; }

.monthsw { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.monthsw .ib { width: 34px; height: 34px; }
.monthsw .mlabel { border: 1px solid var(--line-2); background: var(--panel); border-radius: 10px; padding: 6px 10px; font-size: 13.5px; font-weight: 500; min-width: 0; white-space: nowrap; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; color: var(--muted); }
.inp, select.inp, textarea.inp { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font-size: 16px; }
textarea.inp { min-height: 76px; resize: vertical; }
.inp:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(170, 184, 255, 0.18); }
.inp.money { font-family: var(--f-num); font-size: 26px; min-height: 56px; font-variant-numeric: tabular-nums; }
.inp.sugerido { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(170, 184, 255, 0.18); transition: box-shadow 0.3s, border-color 0.3s; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg-2); }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.search { position: relative; flex: 1; min-width: 0; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search .inp { padding-left: 38px; }

/* ---------- barras e listas ---------- */
.bars { display: grid; gap: 4px; }
.bar-row { display: grid; gap: 6px; width: 100%; text-align: left; padding: 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; background: none; border-radius: 10px; color: inherit; }
button.bar-row:hover { background: var(--panel-2); }
.bar-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 14px; }
.bar-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.bar-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-share { color: var(--muted); font-size: 12px; margin-left: 4px; }
.track { display: flex; height: 8px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.fill { height: 100%; border-radius: 999px; }
.track.stacked .fill { border-radius: 0; }
.track.thin { height: 6px; }
.track.thick { height: 12px; }
.subs { display: grid; gap: 2px; padding: 4px 0 6px 12px; margin-left: 4px; border-left: 2px solid var(--line-2); }
.subs .bar-row { padding: 6px 8px; }
.subs .bar-top { font-size: 13px; }

.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
button.li { width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; background: none; color: inherit; padding-left: 0; padding-right: 0; }
button.li:hover .li-title { color: var(--accent); }
.li > svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.tx-ico svg { width: 18px; height: 18px; color: var(--fg-2); }
.li-main { min-width: 0; flex: 1; display: grid; gap: 2px; }
.li-title { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-sub { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 0; }
.li-end { text-align: right; display: grid; gap: 2px; justify-items: end; flex: none; }
.li-val { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.datebadge { width: 44px; flex: none; text-align: center; border-radius: 10px; background: var(--panel-2); padding: 4px 0; line-height: 1.1; }
.datebadge b { display: block; font-size: 16px; font-weight: 600; }
.datebadge span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- transações ---------- */
.tx-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.tx-tools .search { grid-column: 1 / -1; }
.tx-tools .btn { min-height: 38px; padding: 6px 8px; font-size: 13.5px; gap: 6px; }
.tx-tools .btn svg { width: 17px; height: 17px; }
@media (min-width: 760px) { .tx-tools { display: flex; } .tx-tools .search { flex: 1; } .tx-tools .btn { padding: 8px 14px; font-size: 14px; } }
@media (min-width: 1024px) { .tx-tools .imp-mobile { display: none; } }
.txsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.txsum div { display: grid; gap: 2px; min-width: 0; }
.txsum b { font-weight: 500; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-day { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; justify-content: space-between; gap: 8px; padding: 8px 2px 6px; background: var(--bg); font-size: 12.5px; color: var(--muted); }
@media (min-width: 1024px) { .tx-day { top: calc(70px + env(safe-area-inset-top, 0px)); } }
.tx-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; background: none; color: inherit; min-width: 0; }
.tx:last-child { border-bottom: 0; }
.tx-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--panel-3); }
.tx-ico .dot { width: 10px; height: 10px; }
.tx .cb { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.selbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 32; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); flex-wrap: wrap; }
@media (min-width: 1024px) { .selbar { left: calc(236px + 32px); right: 32px; bottom: 20px; } }

/* ---------- painel ---------- */
.dash { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.dcol { display: contents; }
#balanco { order: 1; } #proximos { order: 2; } #mensal { order: 3; } #categorias { order: 4; } #cartoes { order: 5; } #fontes { order: 6; } #metas-mini { order: 7; } #fixos { order: 8; }
@media (min-width: 760px) {
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .dcol { display: grid; gap: 14px; align-content: start; min-width: 0; }
  .dash > section, .dcol > section { order: 0 !important; }
  .span2 { grid-column: 1 / -1; }
}
.delta { font-size: 11.5px; font-weight: 500; white-space: nowrap; margin-left: 2px; }
.fixgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px 20px; }
.plano-row { display: grid; gap: 4px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); color: inherit; }
.plano-row:hover { border-color: var(--line-2); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; gap: 4px; min-width: 0; align-content: start; }
.kpi .big-num { font-size: 22px; }
@media (min-width: 560px) { .kpi .big-num { font-size: 28px; } }
@media (max-width: 380px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis .kpi:last-child { grid-column: span 2; } }
.meter { display: grid; gap: 6px; }
.chart { width: 100%; min-height: 190px; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--f-ui); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.tip { position: absolute; z-index: 4; pointer-events: none; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); min-width: 150px; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.tip b { font-weight: 600; }
.creditcard { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); text-align: left; width: 100%; color: inherit; }
button.creditcard:hover { border-color: var(--line-2); }
.cc-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-chip { width: 30px; height: 20px; border-radius: 5px; flex: none; }
.cc-due { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--panel-3); }
.minibars { display: flex; align-items: flex-end; gap: 6px; height: 44px; }
.minibar { flex: 1; display: grid; gap: 4px; justify-items: center; align-content: end; min-width: 0; }
.minibar i { display: block; width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: var(--line-2); }
.minibar span { font-size: 10.5px; color: var(--muted); }
.mbstack { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 100%; gap: 2px; }
.mbstack i { display: block; width: 100%; max-width: 26px; border-radius: 4px; }
.mini-list { display: grid; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.mini-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-row:nth-child(odd) { background: var(--panel-2); }
.empty { display: grid; gap: 10px; justify-items: start; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--fg-2); }
.empty h3 { margin: 0; font-size: 16px; }
.empty p { margin: 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.note { padding: 10px 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.note.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.prog { height: 10px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 999px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--panel-2); min-width: 0; }
.rank { width: 26px; height: 26px; border-radius: 8px; background: var(--panel-3); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.rank.first { background: var(--bad-soft); color: var(--bad); }
.cards-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.skel { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- folha (modal) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(5, 7, 10, 0.66); }
.sheet { position: relative; width: 100%; max-height: calc(100% - 20px - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: rise 0.2s ease-out; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 600; flex: 1; min-width: 0; }
.sheet-body { overflow-y: auto; padding: 16px; display: grid; gap: 14px; align-content: start; min-height: 0; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.sheet-foot .btn { flex: 1; }
@media (min-width: 760px) {
  .sheet-wrap { align-items: center; }
  .sheet { width: min(560px, calc(100% - 48px)); max-height: calc(100% - 64px); border-radius: 20px; border-bottom: 1px solid var(--line-2); }
  .sheet.wide { width: min(940px, calc(100% - 48px)); }
  .sheet-foot .btn { flex: none; }
}
.palette { display: flex; flex-wrap: wrap; gap: 8px; }
.palette button { width: 30px; height: 30px; border-radius: 9px; border: 2px solid transparent; }
.palette button[aria-pressed="true"] { border-color: var(--fg); }
.drop { display: grid; justify-items: center; gap: 8px; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r); text-align: center; color: var(--fg-2); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { width: 28px; height: 28px; color: var(--accent); }
.prev { display: grid; }
.prev-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prev-row:last-child { border-bottom: 0; }
.prev-row select { min-height: 36px; padding: 6px 8px; font-size: 13.5px; border-radius: 9px; max-width: 100%; }
.prev-row.off { opacity: 0.5; }
/* conciliação: pares banco x lançamento manual */
.conc { display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line-2); min-width: 0; }
.conc-head { display: grid; gap: 4px; min-width: 0; }
.conc-card { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.conc-card.pend { border-color: var(--warn); }
.conc-card.sim { border-color: var(--accent); }
.conc-card.nao .conc-line { opacity: 0.6; }
.conc-line { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; }
.conc-line .li-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conc-line .li-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.conc-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.tbl th, .tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 500; }

.toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; max-width: 520px; bottom: calc(var(--tab-h) + 86px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.toast.bad { background: var(--bad); color: #1A0B0B; }
.toast button { border: 0; background: none; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
@media (min-width: 1024px) { .toast { bottom: 28px; } }
.blank { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.blank .empty { justify-items: center; max-width: 440px; }
