/* ALYRON Fôlego — identidade visual do protótipo */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --grafite: #17191D;
  --grafite-2: #2A2D33;
  --gelo: #F4F2EC;
  --gelo-2: #ECE9E1;
  --branco: #FFFFFF;
  --prata: #A9ABAF;
  --prata-2: #C9C8C3;
  --linha: #DDD9CF;
  --texto-2: #5B5E64;   /* 5.9:1 sobre gelo */
  --texto-3: #65686D;   /* 5,0:1 sobre gelo · 4,6:1 sobre gelo-2 · 5,6:1 sobre branco */
  --falta: #A63D26;     /* insuficiência — 5.6:1 sobre gelo */
  --falta-bg: #F6E7E1;
  --atencao: #7A5A0E;   /* atenção — 6.1:1 sobre gelo */
  --atencao-bg: #F3ECD8;
  --entrada: #2E5B45;   /* entradas — 7:1 sobre gelo */
  --falta-tx: #5E2213; --atencao-tx: #4A370A;
  --ok: #2E5B45; --ok-bg: #E3ECE5;
  --nav-bg: rgba(244, 242, 236, .94);
  --sombra: rgba(23, 25, 29, .08);
  --seg-on: #FFFFFF;
  color-scheme: light;

  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Inter Display", "Inter", system-ui, sans-serif;

  --r-s: 10px; --r-m: 14px; --r-l: 22px;
  --pad: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-ui); color: var(--grafite); background: var(--gelo);
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[data-focus]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--grafite); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv11"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- moldura: celular no centro; em telas largas, aparelho com legenda ao lado ---------- */
.stage { min-height: 100dvh; display: flex; justify-content: center; }
.aside { display: none; }
.device { width: 100%; max-width: 440px; min-height: 100dvh; background: var(--gelo); position: relative; display: flex; flex-direction: column; }
.screen { flex: 1; padding: 0 var(--pad) calc(var(--nav-h) + 28px); outline: none; }
.screen.no-nav { padding-bottom: 32px; }
.enter { animation: enter .32s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  body { background: var(--gelo-2); }
  .stage { align-items: center; gap: 72px; padding: 40px; }
  .aside { display: block; width: 300px; }
  .aside .mk { margin-bottom: 26px; }
  .aside h2 { font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
  .aside p { color: var(--texto-2); margin-top: 12px; font-size: 15px; }
  .aside ol { list-style: none; margin-top: 28px; border-top: 1px solid var(--linha); }
  .aside li a { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--linha); color: var(--grafite); text-decoration: none; font-size: 15px; }
  .aside li a span { color: var(--texto-3); width: 18px; font-variant-numeric: tabular-nums; }
  .aside li a[aria-current="page"] { font-weight: 600; }
  .aside small { display: block; margin-top: 22px; color: var(--texto-3); font-size: 12.5px; }
  .device { min-height: 0; height: min(880px, calc(100dvh - 80px)); border-radius: 44px; overflow: hidden;
    box-shadow: 0 0 0 10px var(--grafite), 0 30px 60px -20px rgba(23, 25, 29, .35); }
  .device .scroll { overflow-y: auto; height: 100%; scrollbar-width: none; }
  .device .scroll::-webkit-scrollbar { display: none; }
}
.scroll { display: flex; flex-direction: column; flex: 1; }

/* ---------- marca ---------- */
.mk { display: inline-flex; align-items: center; gap: 10px; }
.mk-glyph { width: 34px; height: 34px; border-radius: 10px; background: var(--grafite); color: var(--branco); display: grid; place-items: center; }
.mk-glyph svg { width: 18px; height: 18px; }
.mk-word { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.mk-sub { font-size: 10.5px; letter-spacing: .22em; color: var(--texto-2); font-weight: 600; display: block; line-height: 1; margin-bottom: 3px; }

/* ---------- cabeçalhos ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 18px; position: sticky; top: 0; background: var(--gelo); z-index: 5; }
.eyebrow { font-size: 13px; color: var(--texto-2); }
.h1 { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grafite); color: var(--branco); font-size: 13px; font-weight: 600; letter-spacing: .02em; display: grid; place-items: center; flex: none; }
.back svg { width: 18px; height: 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--texto-2); padding: 6px 0; }

/* ---------- controles ---------- */
.seg { display: flex; background: var(--gelo-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; padding: 9px 8px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--texto-2); transition: background .2s var(--ease), color .2s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--branco); color: var(--grafite); box-shadow: 0 1px 2px rgba(23, 25, 29, .08), 0 0 0 1px rgba(23, 25, 29, .04); font-weight: 600; }
.seg.dark { background: var(--grafite-2); }
.seg.dark button { color: var(--prata-2); }
.seg.dark button[aria-pressed="true"] { background: var(--branco); color: var(--grafite); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 15.5px; transition: transform .12s, background .2s, opacity .2s; }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--grafite); color: var(--branco); }
.btn.secondary { background: var(--branco); color: var(--grafite); box-shadow: inset 0 0 0 1px var(--linha); }
.btn.light { background: var(--branco); color: var(--grafite); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.link { color: var(--grafite); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--texto-2); margin-bottom: 7px; }
.input { width: 100%; height: 50px; border-radius: 12px; background: var(--branco); border: 1px solid var(--linha); padding: 0 14px; font-size: 16px; transition: border-color .2s; }
.input:focus { outline: none; border-color: var(--grafite); }
.input.money { font-family: var(--f-display); font-size: 26px; font-weight: 600; height: 60px; letter-spacing: -.01em; }
.input[aria-invalid="true"] { border-color: var(--falta); }
.err { color: var(--falta); font-size: 13px; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.hint { color: var(--texto-3); font-size: 13px; margin-top: 6px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2317191D' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; min-width: 50px; padding: 0 14px; border-radius: 19px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); font-size: 14.5px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--grafite); color: var(--branco); box-shadow: none; }

/* ---------- boas-vindas ---------- */
.welcome { min-height: 100%; display: flex; flex-direction: column; padding: 34px 4px 8px; }
.welcome .promise { font-family: var(--f-display); font-weight: 600; font-size: 40px; line-height: 1.02; letter-spacing: -.035em; margin-top: 56px; }
.welcome .promise em { font-style: normal; color: var(--texto-3); }
.welcome .lede { margin-top: 18px; color: var(--texto-2); font-size: 16.5px; max-width: 34ch; }
.preview { margin-top: 34px; border-top: 1px solid var(--grafite); padding-top: 14px; }
.preview .l { font-size: 13px; color: var(--texto-2); }
.preview .v { font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -.03em; margin-top: 2px; }
.preview .rule { margin-top: 12px; }
.steps { list-style: none; margin-top: 30px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; padding: 12px 0; border-top: 1px solid var(--linha); font-size: 15px; }
.steps li b { font-weight: 600; }
.steps li span:first-child { color: var(--texto-3); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 2px; }
.welcome .cta { margin-top: auto; padding-top: 30px; }
.welcome .foot { text-align: center; color: var(--texto-3); font-size: 12.5px; margin-top: 14px; }

/* ---------- herói "quanto posso gastar" ---------- */
.hero { padding: 26px 0 8px; }
.hero .label { font-size: 14.5px; color: var(--texto-2); }
.big { font-family: var(--f-display); font-weight: 600; font-size: 54px; letter-spacing: -.045em; line-height: 1; margin-top: 8px; display: flex; align-items: baseline; }
.big .cur { font-size: 24px; letter-spacing: -.01em; margin-right: 6px; color: var(--texto-2); font-weight: 500; }
.big .cents { font-size: 30px; color: var(--texto-2); letter-spacing: -.02em; }
.hero .sub { margin-top: 10px; font-size: 14px; color: var(--texto-2); }
.hero .sub b { color: var(--grafite); font-weight: 600; }
.hero.zero .big { color: var(--texto-3); }

/* régua: o saldo informado dividido em comprometido / margem / disponível */
.rule { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 22px; background: var(--gelo-2); gap: 2px; }
.rule i { display: block; height: 100%; transition: flex-basis .5s var(--ease); }
.rule .c { background: var(--grafite); }
.rule .m { background: repeating-linear-gradient(135deg, var(--prata) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--prata-2); border-radius: 2px; }
.rule .d { background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--grafite); border-radius: 0 6px 6px 0; }
.rule .x { background: repeating-linear-gradient(135deg, var(--falta) 0 2px, transparent 2px 6px); }
.legend { display: grid; grid-template-columns: 1fr auto; row-gap: 9px; margin-top: 16px; font-size: 14px; }
.legend dt { display: flex; align-items: center; gap: 9px; color: var(--texto-2); }
.legend dd { text-align: right; font-variant-numeric: tabular-nums; }
.legend .tot { border-top: 1px solid var(--linha); padding-top: 9px; font-weight: 600; color: var(--grafite); }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sw.c { background: var(--grafite); }
.sw.m { background: repeating-linear-gradient(135deg, var(--prata) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--prata-2); }
.sw.d { background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--grafite); }
.sw.x { background: repeating-linear-gradient(135deg, var(--falta) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--falta); }

.how { margin-top: 18px; border-top: 1px solid var(--linha); }
.how summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 14.5px; font-weight: 600; }
.how summary::-webkit-details-marker { display: none; }
.how summary svg { transition: transform .25s var(--ease); width: 14px; }
.how[open] summary svg { transform: rotate(180deg); }
.how ol { list-style: none; counter-reset: s; padding-bottom: 6px; }
.how li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr auto; padding: 8px 0; font-size: 14px; gap: 4px; }
.how li::before { content: counter(s); color: var(--texto-3); font-size: 12.5px; padding-top: 1px; }
.how li span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.how li.res { border-top: 1px solid var(--grafite); font-weight: 600; margin-top: 4px; padding-top: 10px; }
.how li.res::before { content: "="; }
.how p { font-size: 13.5px; color: var(--texto-2); padding: 6px 0 14px; }

/* ---------- avisos ---------- */
.notice { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px 16px; border-radius: var(--r-m); font-size: 14.5px; margin-top: 18px; }
.notice svg { width: 18px; height: 18px; margin-top: 1px; }
.notice b { font-weight: 600; }
.notice p + p { margin-top: 4px; }
.notice .link { font-size: 14px; margin-top: 8px; display: inline-block; }
.notice.falta { background: var(--falta-bg); color: var(--falta-tx); }
.notice.falta svg { color: var(--falta); }
.notice.atencao { background: var(--atencao-bg); color: var(--atencao-tx); }
.notice.atencao svg { color: var(--atencao); }
.notice.neutro { background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); color: var(--texto-2); }
.notice.neutro svg { color: var(--texto-2); }

/* ---------- ações rápidas ---------- */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.quick .btn { padding: 0 12px; white-space: nowrap; gap: 6px; }

/* ---------- listas ---------- */
.sec { margin-top: 32px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.rows { list-style: none; }
.row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linha); }
.row:last-child { border-bottom: 0; }
.row .d { text-align: center; line-height: 1; }
.row .d b { display: block; font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.row .d small { font-size: 11.5px; color: var(--texto-2); text-transform: uppercase; letter-spacing: .05em; }
.row .t { min-width: 0; }
.row .t p { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { font-size: 13px; color: var(--texto-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row .v { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; text-align: right; }
.row .v.in { color: var(--entrada); }
.row .v small { display: block; font-size: 12px; color: var(--texto-3); font-weight: 400; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; background: var(--gelo-2); color: var(--texto-2); }
.tag.pj { background: var(--grafite); color: var(--branco); }
.tag.est { background: transparent; box-shadow: inset 0 0 0 1px var(--prata-2); color: var(--texto-3); font-weight: 500; }
.tag.pro { background: var(--grafite); color: var(--branco); letter-spacing: .08em; font-size: 10.5px; }

/* ---------- navegação inferior ---------- */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; height: var(--nav-h);
  background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--linha);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); z-index: 20; }
@media (min-width: 960px) { .nav { position: absolute; left: 0; transform: none; } }
.nav[hidden] { display: none; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--texto-3); font-size: 11.5px; font-weight: 500; padding-top: 4px; }
.nav a svg { width: 23px; height: 23px; }
.nav a[aria-current="page"] { color: var(--grafite); font-weight: 600; }
.nav a.plus .pc { width: 46px; height: 46px; border-radius: 15px; background: var(--grafite); color: var(--branco); display: grid; place-items: center; margin-top: -17px; }
.nav a.plus .pc svg { width: 22px; height: 22px; }
.nav a.plus[aria-current="page"] .pc { box-shadow: 0 0 0 3px var(--gelo), 0 0 0 4.5px var(--grafite); }

/* ---------- registrar ---------- */
.voice { margin-top: 22px; text-align: center; padding: 26px 16px 22px; background: var(--branco); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--linha); }
.mic { width: 76px; height: 76px; border-radius: 50%; background: var(--grafite); color: var(--branco); display: inline-grid; place-items: center; position: relative; transition: transform .2s var(--ease); }
.mic svg { width: 28px; height: 28px; }
.mic.on::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid var(--grafite); animation: ring 1.6s var(--ease) infinite; }
@keyframes ring { from { opacity: .6; transform: scale(.92); } to { opacity: 0; transform: scale(1.22); } }
.voice .vt { margin-top: 14px; font-weight: 600; font-size: 15.5px; }
.voice .vs { color: var(--texto-2); font-size: 13.5px; margin-top: 4px; min-height: 20px; }
.bars { display: flex; justify-content: center; align-items: center; gap: 4px; height: 28px; margin-top: 12px; }
.bars i { width: 3px; border-radius: 2px; background: var(--grafite); height: 6px; }
.bars.on i { animation: bar 1s ease-in-out infinite; }
.bars.on i:nth-child(2n) { animation-delay: -.3s; } .bars.on i:nth-child(3n) { animation-delay: -.6s; } .bars.on i:nth-child(5n) { animation-delay: -.15s; }
@keyframes bar { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.quote { margin-top: 14px; font-size: 15px; font-style: italic; color: var(--grafite); }
.or { display: flex; align-items: center; gap: 12px; color: var(--texto-3); font-size: 13px; margin: 22px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.textline { display: flex; gap: 8px; margin-top: 12px; }
.textline .input { flex: 1; }
.textline .btn { height: 50px; padding: 0 16px; }
.parsed { animation: flash 1.2s var(--ease); }
@keyframes flash { from { background: var(--gelo-2); } to { background: transparent; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-foot { margin-top: 26px; }

/* ---------- folha de confirmação / modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(23, 25, 29, .42); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
@media (min-width: 960px) { .scrim { position: absolute; } }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 440px; background: var(--gelo); border-radius: 26px 26px 0 0; padding: 10px var(--pad) calc(24px + env(safe-area-inset-bottom)); animation: up .32s var(--ease) both; max-height: 92%; overflow-y: auto; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.grab { width: 38px; height: 4px; border-radius: 2px; background: var(--prata-2); margin: 0 auto 18px; }
.sheet .h1 { font-size: 22px; }
.sheet .lead { color: var(--texto-2); font-size: 14.5px; margin-top: 6px; }
.kv { margin-top: 18px; border-top: 1px solid var(--linha); }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--linha); font-size: 15px; }
.kv dt { color: var(--texto-2); }
.kv dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.impact { margin-top: 16px; padding: 14px 16px; background: var(--branco); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--linha); font-size: 14.5px; }
.impact .ar { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.impact .ar s { color: var(--texto-3); font-size: 16px; font-weight: 500; text-decoration-thickness: 1px; }
.sheet .actions { display: grid; gap: 10px; margin-top: 20px; }
.sheet ul.ben { list-style: none; margin-top: 16px; }
.sheet ul.ben li { display: flex; gap: 10px; padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--linha); }
.sheet ul.ben svg { width: 18px; flex: none; margin-top: 2px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 14px); transform: translateX(-50%); background: var(--grafite); color: var(--branco); padding: 12px 18px; border-radius: 12px; font-size: 14.5px; z-index: 50; display: flex; gap: 10px; align-items: center; animation: toast .35s var(--ease) both; white-space: nowrap; }
.toast svg { width: 16px; }
@media (min-width: 960px) { .toast { position: absolute; } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- planejamento ---------- */
.monthbar { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.monthbar .h1 { font-size: 21px; }
.monthbar button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--linha); background: var(--branco); }
.monthbar button[disabled] { opacity: .35; cursor: not-allowed; }
.monthbar svg { width: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.cal .wd { text-align: center; font-size: 11.5px; color: var(--texto-3); font-weight: 600; letter-spacing: .04em; padding-bottom: 4px; }
.day { aspect-ratio: 1 / 1.08; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 15px; font-variant-numeric: tabular-nums; position: relative; background: transparent; }
.day.past { color: var(--texto-3); font-weight: 400; }
.day.has { background: var(--branco); }
.day.today { box-shadow: inset 0 0 0 1.5px var(--grafite); font-weight: 600; }
.day[aria-pressed="true"] { background: var(--grafite); color: var(--branco); }
.day .dots { display: flex; gap: 3px; height: 4px; }
.day .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--grafite); }
.day .dots i.in { background: transparent; box-shadow: inset 0 0 0 1px var(--entrada); }
.day[aria-pressed="true"] .dots i { background: var(--branco); }
.day[aria-pressed="true"] .dots i.in { background: transparent; box-shadow: inset 0 0 0 1px var(--branco); }
.day.r1::after, .day.r2::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 4px; height: 3px; border-radius: 2px; }
.day.r1::after { background: var(--atencao); }
.day.r2::after { background: var(--falta); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--texto-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.daypanel { margin-top: 18px; background: var(--branco); border-radius: var(--r-l); padding: 6px 16px 12px; box-shadow: inset 0 0 0 1px var(--linha); }
.daypanel .dh { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; }
.daypanel .dh b { font-size: 15.5px; }
.daypanel .row { grid-template-columns: 1fr auto; }
.daypanel .bal { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--texto-2); padding-top: 10px; border-top: 1px solid var(--grafite); margin-top: 2px; }
.daypanel .bal b { color: var(--grafite); font-variant-numeric: tabular-nums; }
.daypanel .bal b.neg { color: var(--falta); }
.weeks { list-style: none; margin-top: 8px; }
.week { display: grid; grid-template-columns: 1fr auto; padding: 13px 0; border-bottom: 1px solid var(--linha); gap: 2px 12px; }
.week .p { font-size: 15px; font-weight: 500; }
.week .s { font-size: 13px; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.week .f { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }
.week .f.neg { color: var(--falta); }
.week .st { text-align: right; font-size: 12.5px; }
.st-ok { color: var(--texto-3); } .st-at { color: var(--atencao); font-weight: 600; } .st-in { color: var(--falta); font-weight: 600; }

/* ---------- simulador ---------- */
.verdict { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--grafite); }
.verdict .vl { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.verdict .vl i { width: 8px; height: 8px; border-radius: 50%; }
.verdict .vh { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.025em; line-height: 1.15; margin-top: 8px; }
.verdict .vp { color: var(--texto-2); font-size: 14.5px; margin-top: 8px; }
.vl.ok { color: var(--grafite); } .vl.ok i { background: var(--grafite); }
.vl.at { color: var(--atencao); } .vl.at i { background: var(--atencao); }
.vl.in { color: var(--falta); } .vl.in i { background: var(--falta); }
.paysum { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.paysum div { font-size: 13px; color: var(--texto-2); }
.paysum b { display: block; font-size: 17px; color: var(--grafite); font-variant-numeric: tabular-nums; font-weight: 600; }
table.months { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; font-variant-numeric: tabular-nums; }
.months th { font-size: 12px; font-weight: 600; color: var(--texto-2); text-align: right; padding: 0 0 8px; border-bottom: 1px solid var(--grafite); letter-spacing: .02em; }
.months th:first-child, .months td:first-child { text-align: left; }
.months td { padding: 11px 0; border-bottom: 1px solid var(--linha); text-align: right; }
.months td.mes { font-weight: 500; }
.months td.dep { font-weight: 600; }
.months td.neg { color: var(--falta); }
.months .bar { display: block; height: 4px; border-radius: 2px; margin-top: 6px; background: var(--gelo-2); overflow: hidden; }
.months .bar i { display: block; height: 100%; background: var(--grafite); }
.months tr.in .bar i { background: var(--falta); }
.months tr.at .bar i { background: var(--atencao); }
.months .stc { width: 18px; }
.premissas { margin-top: 26px; }
.premissas ol { list-style: none; counter-reset: p; margin-top: 8px; }
.premissas li { counter-increment: p; display: grid; grid-template-columns: 24px 1fr; padding: 8px 0; font-size: 13.5px; color: var(--texto-2); border-bottom: 1px solid var(--linha); }
.premissas li::before { content: counter(p); color: var(--texto-3); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 1px; }

/* ---------- planilha ---------- */
.sheetwrap { margin-top: 16px; background: var(--branco); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--linha); overflow: hidden; }
.sheetscroll { overflow-x: auto; }
table.xl { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 100%; }
.xl th, .xl td { border-right: 1px solid var(--gelo-2); border-bottom: 1px solid var(--gelo-2); padding: 7px 9px; white-space: nowrap; text-align: left; }
.xl thead th { background: var(--gelo); color: var(--texto-3); font-weight: 500; font-size: 11.5px; text-align: center; padding: 4px 9px; }
.xl .rn { background: var(--gelo); color: var(--texto-3); font-size: 11.5px; text-align: center; width: 30px; padding: 7px 4px; }
.xl tr.hd td:not(.rn) { background: var(--grafite); color: var(--branco); font-weight: 600; font-size: 12px; }
.xl td.r { text-align: right; }
.xl td.neg { color: var(--falta); }
.xl td.pos { color: var(--entrada); }
.xl tr.tot td:not(.rn) { font-weight: 600; border-top: 1.5px solid var(--grafite); }
.xl td.muted { color: var(--texto-3); }
.tabs-xl { display: flex; border-top: 1px solid var(--linha); background: var(--gelo); }
.tabs-xl button { padding: 9px 14px; font-size: 12.5px; color: var(--texto-2); border-right: 1px solid var(--linha); }
.tabs-xl button[aria-selected="true"] { background: var(--branco); color: var(--grafite); font-weight: 600; box-shadow: inset 0 2px 0 var(--grafite); }
.sumgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 18px; border-top: 1px solid var(--grafite); }
.sumgrid div { padding: 12px 0 0; }
.sumgrid small { font-size: 12.5px; color: var(--texto-2); display: block; }
.sumgrid b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sumgrid b.in { color: var(--entrada); }
.sumgrid b.neg { color: var(--falta); }
.exportbox { margin-top: 26px; padding: 18px; border-radius: var(--r-l); background: var(--grafite); color: var(--branco); }
.exportbox .eh { display: flex; justify-content: space-between; align-items: center; }
.exportbox .eh b { font-size: 16px; }
.exportbox p { color: var(--prata-2); font-size: 13.5px; margin-top: 6px; }
.exportbox .tag.pro { background: var(--branco); color: var(--grafite); }
.exportbox .btn { margin-top: 16px; }
.file { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--grafite-2); }
.file .ic { width: 38px; height: 44px; border-radius: 6px; background: var(--branco); color: var(--grafite); display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .04em; flex: none; }
.file b { display: block; font-size: 14.5px; }
.file small { color: var(--prata-2); font-size: 12.5px; }
.file a { margin-left: auto; color: var(--branco); }

/* ---------- perfil ---------- */
.prof { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.prof .avatar { width: 56px; height: 56px; font-size: 18px; }
.prof b { font-size: 18px; font-weight: 600; display: block; }
.prof small { color: var(--texto-2); font-size: 14px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.plan { border-radius: var(--r-l); padding: 16px 14px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); display: flex; flex-direction: column; }
.plan.pro { background: var(--grafite); color: var(--branco); box-shadow: none; }
.plan .pn { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.plan .pp { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; margin-top: 8px; }
.plan .pp small { font-family: var(--f-ui); font-size: 12.5px; font-weight: 400; color: var(--texto-2); display: block; letter-spacing: 0; }
.plan.pro .pp small { color: var(--prata-2); }
.plan ul { list-style: none; margin-top: 12px; font-size: 13px; flex: 1; }
.plan li { padding: 6px 0; border-top: 1px solid var(--linha); }
.plan.pro li { border-color: var(--grafite-2); color: var(--gelo-2); }
.plan .cur { font-size: 12px; color: var(--texto-2); margin-top: 10px; font-weight: 600; }
.plan.pro .cur { color: var(--prata-2); }
.illus { font-size: 12.5px; color: var(--texto-3); margin-top: 10px; }
.settings { list-style: none; margin-top: 8px; }
.set { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.set p { font-size: 15px; font-weight: 500; }
.set small { display: block; font-size: 13px; color: var(--texto-2); font-weight: 400; }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--branco); border-radius: 11px; box-shadow: inset 0 0 0 1px var(--linha); flex: none; }
.stepper button { width: 36px; height: 36px; font-size: 18px; color: var(--grafite); }
.stepper span { min-width: 66px; text-align: center; font-size: 14.5px; font-variant-numeric: tabular-nums; font-weight: 600; }
.switch { width: 48px; height: 28px; border-radius: 14px; background: var(--prata-2); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--branco); transition: transform .22s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.switch[aria-checked="true"] { background: var(--grafite); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.balin { width: 120px; height: 40px; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.colophon { margin-top: 30px; font-size: 12.5px; color: var(--texto-3); line-height: 1.6; }

/* ---------- estados ---------- */
.skel { background: var(--gelo-2); border-radius: 8px; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: sh 1.3s infinite; }
@keyframes sh { to { transform: translateX(100%); } }
.empty { text-align: center; padding: 48px 12px 24px; }
.empty .ei { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto; display: grid; place-items: center; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.empty .ei svg { width: 24px; }
.empty h2 { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; margin-top: 16px; }
.empty p { color: var(--texto-2); font-size: 14.5px; margin: 8px auto 0; max-width: 30ch; }
.empty .btn { margin-top: 20px; }
.demo-banner { margin: 0 calc(var(--pad) * -1); padding: 8px var(--pad); background: var(--grafite); color: var(--branco); font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; }
.demo-banner button { color: var(--branco); text-decoration: underline; font-size: 12.5px; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (max-width: 360px) { .big { font-size: 46px; } .welcome .promise { font-size: 34px; } .quick { grid-template-columns: 1fr; } }

/* ---------- v0.3: edição, conferência, dados ---------- */
.row.tap { cursor: pointer; border-radius: 10px; transition: background .15s; }
.row.tap:hover { background: rgba(23, 25, 29, .035); }
.cellbtn { text-align: left; text-decoration: underline; text-decoration-color: var(--prata-2); text-underline-offset: 3px; padding: 2px 0; font-size: inherit; }
.btn.danger { color: var(--falta); background: transparent; box-shadow: inset 0 0 0 1px var(--falta-bg); }
.btn.danger-solid { background: var(--falta); color: var(--branco); }
.demo-banner.save { background: var(--falta); }
.set.conf { flex-wrap: wrap; }
.confrow { display: flex; gap: 8px; align-items: center; }
.confrow .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.toast .undo { color: var(--branco); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; font-size: 14.5px; }
.toast { white-space: normal; width: max-content; max-width: calc(100% - 32px); }
dd.neg-t { color: var(--falta); }
code { font-size: 12.5px; background: var(--gelo-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- v0.4: onboarding, modelo, alvos de toque ---------- */
.obtop { display: flex; align-items: center; gap: 16px; padding: 20px 0 6px; }
.obprog { flex: 1; height: 4px; border-radius: 2px; background: var(--gelo-2); overflow: hidden; }
.obprog i { display: block; height: 100%; background: var(--grafite); transition: width .3s var(--ease); }
.obh { font-size: 28px; margin-top: 20px; letter-spacing: -.025em; }
.lead2 { color: var(--texto-2); font-size: 15px; margin-top: 8px; }
.optlist { display: grid; gap: 10px; }
.optlist button { text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); min-height: 56px; }
.optlist button b { display: block; font-size: 16px; }
.optlist button small { color: var(--texto-2); font-size: 13.5px; }
.optlist button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--grafite); }
.oblist { list-style: none; margin-top: 14px; border-top: 1px solid var(--linha); }
.obrow { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--linha); align-items: start; }
.obchk { width: 44px; height: 44px; display: grid; place-items: center; }
.obchk span { width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--prata); display: grid; place-items: center; background: var(--branco); }
.obchk[aria-checked="true"] span { background: var(--grafite); box-shadow: none; color: var(--branco); }
.obchk svg { width: 16px; height: 16px; }
.obmain { min-width: 0; padding-top: 10px; }
.obrow.on .obmain { padding-top: 10px; }
.obt { font-size: 15.5px; font-weight: 500; }
.obvals { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.obvals label:first-child { flex: 1; min-width: 130px; }
.input.sm { height: 44px; font-size: 15.5px; border-radius: 10px; }
.obvals .dia { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texto-2); }
.obvals .dia .input { width: 64px; text-align: center; }
.seg.mini { margin-top: 8px; }
.seg.mini button { padding: 7px 6px; font-size: 13px; }
.obfoot { position: sticky; bottom: 0; padding: 16px 0 calc(12px + env(safe-area-inset-bottom)); margin-top: 24px; background: linear-gradient(to bottom, transparent, var(--gelo) 30%); }
.plist { list-style: none; margin-top: 8px; }
.plist li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--linha); font-size: 14.5px; color: var(--texto-2); position: relative; }
.plist li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--grafite); }
.plist b { color: var(--grafite); font-weight: 600; }
.welcome .steps li span:first-child svg { width: 16px; height: 16px; color: var(--texto-2); }
/* alvos de toque: mínimo 44×44 nos controles principais */
.chip { height: 44px; border-radius: 22px; }
.stepper button { width: 44px; height: 44px; }
.monthbar button { width: 44px; height: 44px; }
.confrow .btn { height: 44px; }
.link { display: inline-block; padding: 6px 0; min-height: 32px; }
.cellbtn { min-height: 28px; }
.seg button { min-height: 40px; }

/* ---------- v0.5: app instalado ---------- */
.howto { margin: 6px 0 0 20px; font-size: 14.5px; color: var(--texto-2); }
.howto li { padding: 5px 0; }
.howto b, .hint b { color: var(--grafite); }
.notice.install .link { font-size: 14px; }
@media (display-mode: standalone) {
  .top { padding-top: calc(16px + env(safe-area-inset-top)); }
  .obtop { padding-top: calc(14px + env(safe-area-inset-top)); }
  .welcome { padding-top: calc(28px + env(safe-area-inset-top)); }
  .demo-banner { padding-top: calc(8px + env(safe-area-inset-top)); }
  .screen { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
  body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
  input, select, textarea, .kv, .xl, .sheet p { -webkit-user-select: text; user-select: text; }
  .aside { display: none !important; }
}


/* =================== v1.0 =================== */
/* ---------- tema escuro (automático pelo aparelho ou escolhido em Mais → App) ---------- */
:root[data-tema="escuro"] {
  --grafite: #EDEBE5; --grafite-2: #CFCCC4; --gelo: #121417; --gelo-2: #1F2227; --branco: #1A1D21;
  --prata: #6E7177; --prata-2: #4A4D53; --linha: #2C2F35; --texto-2: #B4B6BA; --texto-3: #A0A3A8;
  --falta: #F08C72; --falta-bg: #3A2019; --falta-tx: #F6C9BC; --atencao: #E2B54E; --atencao-bg: #33290F; --atencao-tx: #F1DDA8;
  --entrada: #7CC79E; --ok: #7CC79E; --ok-bg: #18301F; --nav-bg: rgba(18, 20, 23, .94); --sombra: rgba(0, 0, 0, .4); --seg-on: #363A42;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --grafite: #EDEBE5; --grafite-2: #CFCCC4; --gelo: #121417; --gelo-2: #1F2227; --branco: #1A1D21;
    --prata: #6E7177; --prata-2: #4A4D53; --linha: #2C2F35; --texto-2: #B4B6BA; --texto-3: #A0A3A8;
    --falta: #F08C72; --falta-bg: #3A2019; --falta-tx: #F6C9BC; --atencao: #E2B54E; --atencao-bg: #33290F; --atencao-tx: #F1DDA8;
    --entrada: #7CC79E; --ok: #7CC79E; --ok-bg: #18301F; --nav-bg: rgba(18, 20, 23, .94); --sombra: rgba(0, 0, 0, .4); --seg-on: #363A42;
    color-scheme: dark;
  }
}
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--seg-on); box-shadow: 0 1px 2px var(--sombra), 0 0 0 1px var(--linha); }
.row.tap:hover { background: var(--gelo-2); }

/* ---------- topo de subpágina ---------- */
.subtop { display: flex; align-items: center; gap: 10px; padding: 16px 0 6px; position: sticky; top: 0; background: var(--gelo); z-index: 5; }
.subtop .back { min-height: 44px; }
.subh { margin-top: 6px; }
.subh + .lead2 { margin-top: 6px; }

/* ---------- herói da Início ---------- */
.hero2 { margin-top: 14px; padding: 20px 18px 16px; border-radius: var(--r-l); background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.hero2 .label { display: flex; align-items: center; gap: 4px; font-size: 14.5px; color: var(--texto-2); font-weight: 500; }
.hero2 .big { margin-top: 6px; }
.hero2.zero .big { color: var(--texto-3); }
.hero2 .sub { margin-top: 8px; font-size: 14px; color: var(--texto-2); }
.hero2 .sub b { color: var(--grafite); font-weight: 600; }
.status { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.status i { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 6px; }
.status.ok { background: var(--ok-bg); color: var(--grafite); } .status.ok i { background: var(--ok); }
.status.at { background: var(--atencao-bg); color: var(--atencao-tx); } .status.at i { background: var(--atencao); }
.status.in { background: var(--falta-bg); color: var(--falta-tx); } .status.in i { background: var(--falta); }
.status .link { font-size: 13.5px; padding: 0; min-height: 0; display: inline; color: inherit; }
.hero2 .more { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 10px; }
.hero2 .more .link { white-space: nowrap; }
.hero2 .more .link { font-size: 14px; }
.hero2 .guard { font-size: 13px; color: var(--texto-3); }
.qmark { width: 30px; height: 30px; margin: -6px 0; border-radius: 50%; display: inline-grid; place-items: center; color: var(--texto-3); flex: none; }
.qmark span { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.3px currentColor; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* ---------- ações rápidas (4 botões) ---------- */
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.qa button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px 10px; border-radius: 16px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); font-size: 12.5px; font-weight: 600; color: var(--grafite); min-height: 76px; line-height: 1.15; text-align: center; }
.qa .qi { width: 36px; height: 36px; border-radius: 12px; background: var(--gelo-2); display: grid; place-items: center; }
.qa .qi svg { width: 19px; height: 19px; }
.qa button.pri .qi { background: var(--grafite); color: var(--branco); }

/* ---------- cartões e linhas com ação ---------- */
.card { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-l); background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.card .rows .row:last-child { border-bottom: 0; }
.row.act { grid-template-columns: 1fr auto; gap: 10px; }
.rowmain { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; width: 100%; min-width: 0; padding: 2px 0; border-radius: 10px; }
.rowmain:hover { background: var(--gelo-2); }
.row.atr .rowmain .d b, .row.atr .rowmain .d small { color: var(--falta); }
.payb { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--linha); background: var(--gelo); color: var(--grafite); white-space: nowrap; min-width: 44px; }
.payb:active { transform: scale(.97); }
.row.atr .d b, .row.atr .d small { color: var(--falta); }
.tag.atr { background: var(--falta-bg); color: var(--falta-tx); }
.tag.rec { background: transparent; box-shadow: inset 0 0 0 1px var(--prata-2); color: var(--texto-2); font-weight: 500; }
.grp { font-size: 13px; font-weight: 600; color: var(--texto-2); margin: 22px 0 2px; display: flex; justify-content: space-between; }
.grp span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }
.month-line { font-size: 14.5px; color: var(--texto-2); margin-top: 2px; }
.month-line b { color: var(--grafite); }
.sec-h .h2 { line-height: 1.3; }

/* ---------- progresso ---------- */
.prog { height: 8px; border-radius: 4px; background: var(--gelo-2); overflow: hidden; margin-top: 10px; }
.prog i { display: block; height: 100%; border-radius: 4px; background: var(--grafite); }
.prog.at i { background: var(--atencao); } .prog.in i { background: var(--falta); } .prog.ok i { background: var(--ok); }

/* ---------- caixinhas ---------- */
.pots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pot { text-align: left; padding: 14px; border-radius: var(--r-l); background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); min-height: 112px; display: flex; flex-direction: column; }
.pot b { font-size: 14.5px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pot .pv { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin-top: auto; padding-top: 8px; font-variant-numeric: tabular-nums; }
.pot small { font-size: 12.5px; color: var(--texto-2); }
.pot.add { align-items: center; justify-content: center; gap: 6px; color: var(--texto-2); font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--linha); background: transparent; border: 0; }
.pot.add svg { width: 20px; }
.potlist { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.potlist button { width: 100%; text-align: left; padding: 16px; border-radius: var(--r-l); background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.potlist .ph { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.potlist .ph b { font-size: 16px; font-weight: 600; }
.potlist .pa { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 16px; white-space: nowrap; }
.potlist .pm { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--texto-2); margin-top: 8px; }
.bigv { font-family: var(--f-display); font-weight: 600; font-size: 36px; letter-spacing: -.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.bigv small { font-family: var(--f-ui); font-size: 15px; font-weight: 500; color: var(--texto-2); letter-spacing: 0; }
.potact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* ---------- relatórios ---------- */
.cats { list-style: none; margin-top: 6px; }
.cats li > button, .cats li > div { width: 100%; text-align: left; display: block; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.cats li:last-child > * { border-bottom: 0; }
.cats .ch { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.cats .ch span:first-child { font-weight: 500; }
.cats .ch span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.cats .cs { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--texto-2); margin-top: 5px; }
.cats .prog { height: 6px; margin-top: 7px; }
.cats .cs .at { color: var(--atencao); font-weight: 600; } .cats .cs .in { color: var(--falta); font-weight: 600; }
.evo { display: flex; align-items: flex-end; justify-content: center; gap: 18px; height: 150px; margin-top: 16px; padding-bottom: 22px; position: relative; }
.evo .col { flex: 1; max-width: 76px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.evo .pair { display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.evo .pair i { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; }
.evo .pair .e { background: var(--entrada); }
.evo .pair .s { background: var(--grafite); }
.evo .col small { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: var(--texto-2); }
.evo .col.cur small { color: var(--grafite); font-weight: 600; }
.legend2 { display: flex; gap: 16px; font-size: 12.5px; color: var(--texto-2); margin-top: 10px; }
.legend2 span { display: inline-flex; align-items: center; gap: 6px; }
.legend2 i { width: 10px; height: 10px; border-radius: 3px; }
.cmp { font-size: 14.5px; margin-top: 12px; color: var(--texto-2); }
.cmp b { color: var(--grafite); }

/* ---------- histórico ---------- */
.search { position: relative; margin-top: 12px; }
.search svg { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; color: var(--texto-3); }
.search .input { padding-left: 44px; }
.filters { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.filters select.input { height: 44px; width: auto; flex: 1; min-width: 130px; font-size: 14.5px; }
.chips.sm .chip { height: 40px; font-size: 14px; }
.histsum { font-size: 13px; color: var(--texto-2); margin-top: 12px; }

/* ---------- menu (Mais) ---------- */
.menu { list-style: none; margin-top: 8px; background: var(--branco); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--linha); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--linha); }
.menu a, .menu button { display: grid; grid-template-columns: 36px 1fr 16px; gap: 12px; align-items: center; width: 100%; padding: 13px 14px; text-align: left; text-decoration: none; color: var(--grafite); min-height: 60px; }
.menu .mi { width: 36px; height: 36px; border-radius: 11px; background: var(--gelo-2); display: grid; place-items: center; }
.menu .mi svg { width: 19px; height: 19px; }
.menu b { display: block; font-size: 15px; font-weight: 500; }
.menu small { display: block; font-size: 13px; color: var(--texto-2); margin-top: 1px; }
.menu .chev { width: 16px; color: var(--texto-3); }
.menu-h { margin-top: 26px; }

/* ---------- folha "+" ---------- */
.newgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.newgrid button { text-align: left; padding: 16px 14px; border-radius: var(--r-l); background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); min-height: 104px; display: flex; flex-direction: column; gap: 8px; }
.newgrid .qi { width: 38px; height: 38px; border-radius: 12px; background: var(--gelo-2); display: grid; place-items: center; }
.newgrid .qi svg { width: 20px; }
.newgrid b { font-size: 15px; font-weight: 600; }
.newgrid small { font-size: 12.5px; color: var(--texto-2); line-height: 1.3; }
.newgrid button.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }

/* ---------- novo registro ---------- */
.catchips { display: flex; flex-wrap: wrap; gap: 8px; }
.catchips .chip { height: 40px; font-size: 14px; padding: 0 13px; }
.phrase { margin-top: 16px; border-radius: var(--r-m); background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); }
.phrase summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 12px 14px; font-size: 14.5px; font-weight: 600; min-height: 48px; }
.phrase summary::-webkit-details-marker { display: none; }
.phrase summary svg { width: 18px; }
.phrase summary .chev2 { margin-left: auto; transition: transform .25s var(--ease); width: 14px; }
.phrase[open] summary .chev2 { transform: rotate(180deg); }
.phrase .pin { padding: 0 14px 14px; }
.phrase .textline { margin-top: 0; }
.mic.sm { width: 50px; height: 50px; flex: none; }
.mic.sm svg { width: 20px; height: 20px; }
.mic.sm.on::after { inset: -5px; }
.vozline { font-size: 13.5px; color: var(--texto-2); margin-top: 10px; }
.impact2 { margin-top: 18px; font-size: 14px; color: var(--texto-2); padding: 12px 14px; border-radius: 12px; background: var(--gelo-2); }
.impact2 b { color: var(--grafite); font-variant-numeric: tabular-nums; }
.save-bar { margin-top: 22px; }
.save-bar .btn { box-shadow: 0 6px 20px -8px var(--sombra); }

/* ---------- ajuda ---------- */
.gl { list-style: none; margin-top: 10px; }
.gl li { padding: 14px 0; border-bottom: 1px solid var(--linha); }
.gl b { font-size: 15.5px; font-weight: 600; }
.gl p { font-size: 14.5px; color: var(--texto-2); margin-top: 4px; }

/* ---------- navegação com 5 itens (sem texto truncado em 320 px) ---------- */
.nav button.plus { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--texto-3); font-size: 11.5px; font-weight: 500; padding-top: 4px; }
.nav button.plus .pc { width: 46px; height: 46px; border-radius: 15px; background: var(--grafite); color: var(--branco); display: grid; place-items: center; margin-top: -17px; }
.nav button.plus .pc svg { width: 22px; height: 22px; }
@media (max-width: 360px) { .qa button { font-size: 11.5px; } .pots { grid-template-columns: 1fr; } .newgrid { grid-template-columns: 1fr; } }

/* ===== v1: fôlego que respira, fiado e cupom ===== */
.hero2.folego { padding-top: 18px; }
.lung-wrap { position: relative; width: min(100%, 280px); aspect-ratio: 1; margin: 4px auto 0; max-width: 100%; }
.lung { position: absolute; inset: 0; width: 100%; height: 100%; }
.dias { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--branco); pointer-events: none; }
.dias b { font-family: var(--f-display); font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.dias > span { margin-top: 4px; font-size: 14px; font-weight: 500; opacity: .92; }
.hero2 .sub.center { text-align: center; margin-top: 4px; }
.hero2 .livre { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linha); }
.hero2 .livre > span { display: flex; align-items: center; gap: 4px; font-size: 14.5px; color: var(--texto-2); font-weight: 500; }
.hero2 .livre b { font-size: 22px; font-weight: 700; color: var(--grafite); }
.hero2.zero .livre b { color: var(--falta); }

.caderneta { margin-top: 16px; border-radius: var(--r-l); background: #FBF8EF; box-shadow: inset 0 0 0 1px var(--linha);
  background-image: repeating-linear-gradient(to bottom, transparent 0 51px, #E4DCC6 51px 52px); padding: 4px 16px 10px; position: relative; overflow: hidden; }
.caderneta::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 1px; background: #E2B7A9; }
.cad-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0 12px 26px; }
.cad-tot small { display: block; font-size: 12.5px; color: var(--texto-3); text-transform: uppercase; letter-spacing: .06em; }
.cad-tot b { font-size: 20px; color: var(--grafite); }
.cad-lista { list-style: none; margin: 0; padding: 0; }
.cad-lista li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0 10px 26px; min-height: 52px; }
.cad-n { font-size: 16px; font-weight: 600; color: var(--grafite); min-width: 0; overflow-wrap: anywhere; }
.cad-n small { display: block; font-size: 12.5px; font-weight: 400; color: var(--texto-3); }
.cad-v { font-weight: 700; font-size: 16px; }
.cad-v.me-deve { color: var(--entrada); } .cad-v.eu-devo { color: var(--falta); }
.cad-acoes { grid-column: 1 / -1; display: flex; gap: 16px; }
.cad-acoes .link { font-size: 13.5px; }
.cad-lista li.pago .cad-n, .cad-lista li.pago .cad-v { opacity: .45; text-decoration: line-through; }
.carimbo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%) rotate(-12deg); border: 2px solid var(--falta); color: var(--falta);
  font-weight: 800; letter-spacing: .14em; font-size: 13px; padding: 2px 8px; border-radius: 4px; opacity: .85; pointer-events: none; }
.cad-vazio { padding: 16px 0 16px 26px !important; color: var(--texto-3); font-size: 14.5px; display: block !important; }
.form-fiado .seg { margin-bottom: 12px; }
.form-fiado .btn { margin-top: 14px; }

.cupom-wrap { margin-top: 18px; padding: 18px 0 6px; display: flex; justify-content: center; }
.cupom { width: min(100%, 340px); background: #FBFAF6; color: #17191D; padding: 22px 18px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
  box-shadow: 0 10px 28px var(--sombra), 0 0 0 1px var(--linha); transform: rotate(-.6deg);
  -webkit-mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 14px 51% repeat-x, radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 100% / 14px 51% repeat-x;
          mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 14px 51% repeat-x, radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 100% / 14px 51% repeat-x; }
.cupom p { margin: 0; line-height: 1.75; }
.cp-c { text-align: center; }
.cp-l { display: flex; justify-content: space-between; gap: 10px; }
.cp-l span:first-child { white-space: pre; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cp-s { font-size: 12px; color: #4b4e54; }
.cp-big { text-align: center; font-size: 30px; font-weight: 700; line-height: 1.3 !important; }
.cp-hr { border: 0; border-top: 2px dashed #9a9a93; margin: 8px 0; }
.cp-bc { height: 42px; margin: 10px auto 0; width: 70%; background: repeating-linear-gradient(90deg, #17191D 0 3px, transparent 3px 5px, #17191D 5px 6px, transparent 6px 9px, #17191D 9px 13px, transparent 13px 15px); }
.cp-btn { margin-top: 18px; }
.hint.center { text-align: center; }
@media (prefers-reduced-motion: reduce) { .cupom { transform: none; } }

/* ===== v1: acento "limão fôlego" — cor de marca do app ===== */
:root { --acc: #C8F03C; --acc-2: #B4DC28; --on-acc: #0E0F11; --acc-tx: #3F5A00; --lung-tx: #FFFFFF; }
:root[data-tema="escuro"] {
  --gelo: #000000; --gelo-2: #161616; --branco: #0F0F0F; --linha: #262626; --nav-bg: rgba(0, 0, 0, .94); --seg-on: #262626; --prata: #6E6E6E; --prata-2: #474747; --texto-2: #BDBDBD; --texto-3: #A3A3A3; --sombra: rgba(0, 0, 0, .6); --grafite: #F5F5F5;
  --falta: #FF7A5C; --falta-bg: #3A1A12; --acc-tx: #C8F03C; --lung-tx: #0E0F11; --lung-ok: #C8F03C,#9DC325,#5F7A14,#2B3709; --lung-atencao: #F2B93B,#C98F1E,#7E5A12,#3A2A0A; --lung-falta: #FF7A5C,#D9553A,#8A3322,#3E170F;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --gelo: #000000; --gelo-2: #161616; --branco: #0F0F0F; --linha: #262626; --nav-bg: rgba(0, 0, 0, .94); --seg-on: #262626; --prata: #6E6E6E; --prata-2: #474747; --texto-2: #BDBDBD; --texto-3: #A3A3A3; --sombra: rgba(0, 0, 0, .6); --grafite: #F5F5F5;
    --falta: #FF7A5C; --falta-bg: #3A1A12; --acc-tx: #C8F03C; --lung-tx: #0E0F11; --lung-ok: #C8F03C,#9DC325,#5F7A14,#2B3709; --lung-atencao: #F2B93B,#C98F1E,#7E5A12,#3A2A0A; --lung-falta: #FF7A5C,#D9553A,#8A3322,#3E170F;
  }
}
/* botão principal: grafite no claro, limão no escuro */
:root[data-tema="escuro"] .btn.primary { background: var(--acc); color: var(--on-acc); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .btn.primary { background: var(--acc); color: var(--on-acc); } }
.btn.primary:active { filter: brightness(.94); }
/* marcações e progresso em limão nos dois temas */
.obprog i, .prog i { background: var(--acc); }
.obchk[aria-checked="true"] span, .obrow.on .obchk span { background: var(--acc) !important; color: var(--on-acc) !important; border-color: var(--acc) !important; box-shadow: none !important; }
.optlist button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--acc); }
.input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 30%, transparent); }
.nav a.plus .pc, .nav button.plus .pc { background: var(--acc); color: var(--on-acc); box-shadow: 0 6px 18px color-mix(in srgb, var(--acc) 35%, transparent); }
.nav a[aria-current="page"] svg { color: var(--acc-tx); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--acc), 0 1px 2px var(--sombra), 0 0 0 1px var(--linha); }
.dias { color: var(--lung-tx); }
.hero2.folego.atencao .dias, .hero2.folego.falta .dias { color: #FFFFFF; }
:root[data-tema="escuro"] .hero2.folego.atencao .dias { color: #1A1204; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .hero2.folego.atencao .dias { color: #1A1204; } }

/* ===== v1: fundo branco no tema claro (padrão) ===== */
:root { --gelo: #FFFFFF; --gelo-2: #F1F2EF; --branco: #FFFFFF; --linha: #E3E5E0; --nav-bg: rgba(255, 255, 255, .94); --seg-on: #FFFFFF; }
:root:not([data-tema="escuro"]) .hero2, :root:not([data-tema="escuro"]) .card { box-shadow: inset 0 0 0 1px var(--linha), 0 1px 3px rgba(23, 25, 29, .04); }

/* ===== v1: botão preto/branco no topo ===== */
.top-acoes { display: flex; align-items: center; gap: 10px; flex: none; }
.tema-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gelo-2); color: var(--grafite); box-shadow: inset 0 0 0 1px var(--linha); }
.tema-btn svg { width: 20px; height: 20px; }
.tema-btn:active { transform: scale(.94); }

/* ===== v1: painel de bordo (estrada de paradas + tanque) ===== */
.road { position: relative; height: 74px; margin: 10px 4px 4px; }
.road-line { position: absolute; left: 0; right: 0; top: 32px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--grafite) 0 14px, transparent 14px 22px); opacity: .85; }
.road-hoje, .road-fim { position: absolute; top: 46px; font-size: 11.5px; color: var(--texto-3); }
.road-hoje { left: 0; } .road-fim { right: 0; }
.stop { position: absolute; top: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.stop i { width: 16px; height: 16px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--gelo), 0 0 0 4.5px var(--grafite); }
.stop small { position: absolute; bottom: 22px; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--grafite); }
.stop.dn small { bottom: auto; top: 24px; }
.flag { position: absolute; top: 0; transform: translateX(-1px); height: 38px; border-left: 2px solid var(--falta); }
.flag b { position: absolute; left: 0; top: 0; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; background: var(--falta); color: #fff; padding: 2px 6px; border-radius: 0 4px 4px 0; }
.flag.atencao { border-color: var(--atencao); } .flag.atencao b { background: var(--atencao); }
.tank { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--linha); }
.tank svg { width: 120px; flex: none; }
.tank .tk-bg { fill: none; stroke: var(--gelo-2); stroke-width: 10; stroke-linecap: round; }
.tank .tk-res { fill: none; stroke: var(--falta); stroke-width: 10; stroke-linecap: round; opacity: .55; }
.tank .tk-ag { stroke: var(--grafite); stroke-width: 3.5; stroke-linecap: round; }
.tank .tk-c { fill: var(--grafite); }
.tank text { font-size: 10px; font-weight: 700; fill: var(--texto-3); }
.tank small { display: block; font-size: 12.5px; color: var(--texto-3); text-transform: uppercase; letter-spacing: .06em; }
.tank b { font-size: 26px; font-weight: 700; color: var(--grafite); display: block; line-height: 1.15; }
.tank.atencao b { color: var(--atencao); } .tank.falta b { color: var(--falta); }
.tank span { font-size: 13.5px; color: var(--texto-2); }
.cad-mini { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: 100%; margin-top: 14px; padding: 13px 16px; border-radius: var(--r-m); text-align: left;
  background: #FBF8EF; box-shadow: inset 0 0 0 1px #E4DCC6; color: #17191D; font-size: 14px; }
.cad-mini-t { font-weight: 700; margin-right: auto; }
.cad-mini b { font-weight: 700; }
:root[data-tema="escuro"] .cad-mini { background: #1A1814; box-shadow: inset 0 0 0 1px #3A342A; color: #F1EBDD; }
.stop i { display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: var(--on-acc); width: 18px; height: 18px; }

/* ===== v1: marca Sopro ===== */
.mk-glyph { width: 40px; height: 40px; border-radius: 0; background: none; }
.mk-glyph svg { width: 40px; height: 40px; }
.mk-word { font-weight: 600; font-size: 24px; letter-spacing: -.04em; line-height: 1; display: block; }
.mk .mk-sub { margin: 4px 0 0; font-size: 9.5px; letter-spacing: .24em; }
/* abertura: a marca respira uma vez e some */
#abertura { position: fixed; inset: 0; z-index: 999; background: #000; display: grid; place-items: center; animation: ab-sai .45s ease 1.15s forwards; }
#abertura .ab-in { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; }
#abertura svg { width: 96px; height: 96px; animation: ab-resp 1.1s cubic-bezier(.4, 0, .2, 1) both; }
#abertura .ab-w { font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -.04em; animation: ab-txt .6s ease .25s both; }
#abertura .ab-by { position: fixed; bottom: calc(34px + env(safe-area-inset-bottom, 0px)); font-size: 10px; letter-spacing: .3em; font-weight: 600; opacity: .45; }
@keyframes ab-resp { 0% { transform: scale(.55); opacity: 0; } 55% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ab-txt { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ab-sai { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { #abertura { animation: ab-sai .2s ease .5s forwards; } #abertura svg, #abertura .ab-w { animation: none; } }

/* ===== marca Bolsin (Fenda) ===== */
.mk-glyph svg { width: 40px; height: 40px; display: block; }
.mk-glyph .gb { fill: var(--grafite); } .mk-glyph .gs { fill: var(--gelo); } .mk-glyph .gd { stroke: var(--grafite); }
.mk-word .ii, .ab-w .ii { position: relative; display: inline-block; }
.mk-word .dot, .ab-w .dot { position: absolute; left: 50%; top: .17em; width: .22em; height: .22em; margin-left: -.11em; border-radius: 50%; background: var(--acc, #C8F03C); }
.mk-word { font-weight: 600; letter-spacing: -.05em; }
#abertura .ab-w { font-weight: 600; letter-spacing: -.05em; font-size: 38px; }
#abertura svg { width: 104px; height: 104px; }
#abertura .coin { animation: ab-moeda .7s cubic-bezier(.3, 1.4, .5, 1) .15s both; }
@keyframes ab-moeda { from { transform: translateY(-34px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #abertura .coin { animation: none; } }

/* ===== v2: gráfico do mês ===== */
:root { --c1: #17191D; --c2: #9BC22A; --c3: #2E5B45; --c4: #C98F1E; --c5: #D9553A; --c6: #A9ABAF; }
:root[data-tema="escuro"] { --c1: #C8F03C; --c2: #F5F5F5; --c3: #6FB58E; --c4: #F2B93B; --c5: #FF7A5C; --c6: #6E6E6E; }
@media (prefers-color-scheme: dark) { :root[data-tema="sistema"], :root:not([data-tema]) { --c1: #C8F03C; --c2: #F5F5F5; --c3: #6FB58E; --c4: #F2B93B; --c5: #FF7A5C; --c6: #6E6E6E; } }
.gm { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { position: relative; width: 150px; height: 150px; flex: none; margin: 0 auto; }
.donut svg { width: 100%; height: 100%; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c small { font-size: 12px; color: var(--texto-3); }
.donut-c b { font-size: 17px; font-weight: 700; color: var(--grafite); }
.gm-leg { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 160px; display: grid; gap: 8px; }
.gm-leg li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 14.5px; }
.gm-leg i { width: 12px; height: 12px; border-radius: 4px; }
.gm-leg b { font-weight: 600; color: var(--grafite); }
.wk-t { font-size: 14px; font-weight: 600; color: var(--grafite); margin: 0 0 12px; }
.wk-t span { font-weight: 400; color: var(--texto-3); }
.wk-bars { display: flex; gap: 8px; height: 150px; align-items: stretch; }
.wk-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.wk-v { font-size: 11px; color: var(--texto-2); height: 16px; white-space: nowrap; }
.wk-pair { flex: 1; width: 100%; display: flex; gap: 3px; align-items: flex-end; justify-content: center; }
.wk-pair i { width: 42%; max-width: 22px; border-radius: 5px 5px 2px 2px; min-height: 2px; }
.wk-pair .cur { background: var(--grafite); }
.wk-pair .ant { background: var(--gelo-2); box-shadow: inset 0 0 0 1px var(--linha); }
.wk-col.fut .wk-pair .cur { background: transparent; }
.wk-col small { font-size: 11px; color: var(--texto-3); margin-top: 6px; }
:root[data-tema="escuro"] .wk-pair .cur { background: var(--acc); }

/* ===== v2: importar extrato ===== */
.imp-drop { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border-radius: var(--r-l); border: 2px dashed var(--linha); background: var(--branco); text-align: center; cursor: pointer; }
.imp-drop:focus-within { border-color: var(--acc); }
.imp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.imp-drop .imp-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; }
.imp-drop .imp-ic svg { width: 22px; height: 22px; }
.imp-drop b { font-size: 16px; color: var(--grafite); } .imp-drop small { font-size: 13px; color: var(--texto-3); }
.h3s { font-weight: 600; font-size: 15px; color: var(--grafite); margin: 0 0 8px; }
.imp-dicas { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--texto-2); }
.imp-lista { list-style: none; margin: 8px 0 0; padding: 0; }
.imp-lista li { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.imp-lista li.off { opacity: .5; }
.imp-ck { width: 40px; height: 40px; display: grid; place-items: center; }
.imp-ck span { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--prata); display: grid; place-items: center; }
.imp-ck[aria-checked="true"] span { background: var(--acc); color: var(--on-acc); box-shadow: none; }
.imp-ck svg { width: 15px; height: 15px; }
.imp-t { min-width: 0; } .imp-t b { display: block; font-size: 14.5px; font-weight: 600; color: var(--grafite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-t small { font-size: 12.5px; color: var(--texto-3); }
.imp-v { font-weight: 600; font-size: 14.5px; white-space: nowrap; } .imp-v.entrada { color: var(--entrada); }
.donut-c { padding: 0 22%; }
.donut-c b { font-size: 16px; line-height: 1.15; white-space: nowrap; }
.donut-c b.longo { font-size: 13.5px; }

/* ===== revisão geral ===== */
.confrow .balin { flex: 1; width: auto; min-width: 0; text-align: left; }
.caderneta, .caderneta .cad-n, .caderneta .cad-tot b { color: #17191D; }
.caderneta .cad-tot small, .caderneta .cad-n small, .caderneta .cad-vazio { color: #6B6D68; }
.caderneta .cad-v.me-deve { color: #2E5B45; } .caderneta .cad-v.eu-devo { color: #A63D26; }
.caderneta .link { color: #17191D; }
:root[data-tema="escuro"] .tank .tk-bg { stroke: #2A2A2A; }
:root[data-tema="escuro"] .wk-pair .ant { background: #2E2E2E; box-shadow: none; }
:root[data-tema="escuro"] .tank .tk-res { opacity: .9; }

/* ===== orçamento e metas ===== */
.orc-lista { list-style: none; margin: 0; padding: 4px 16px; }
.orc-lista .orc { padding: 12px 0; border-bottom: 1px solid var(--linha); } .orc-lista .orc:last-child { border-bottom: 0; }
.orc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.orc-h b { font-size: 15.5px; font-weight: 600; color: var(--grafite); }
.orc-h span { font-weight: 600; font-size: 15px; color: var(--grafite); white-space: nowrap; } .orc-h small { font-weight: 400; color: var(--texto-3); font-size: 13px; }
.orc-bar { position: relative; height: 10px; border-radius: 6px; background: var(--gelo-2); margin: 8px 0 6px; overflow: hidden; display: flex; }
.orc-bar i { display: block; height: 100%; }
.orc-bar .g { background: var(--grafite); }
.orc-bar .p { background: repeating-linear-gradient(135deg, var(--prata) 0 4px, transparent 4px 7px); opacity: .7; }
.orc.atencao .orc-bar .g { background: var(--atencao); } .orc.estourou .orc-bar .g { background: var(--falta); }
:root[data-tema="escuro"] .orc.ok .orc-bar .g { background: var(--acc); }
.orc-t { margin: 0; font-size: 13.5px; color: var(--texto-2); } .orc-t span { color: var(--texto-3); }
.orc.atencao .orc-t { color: var(--atencao); } .orc.estourou .orc-t { color: var(--falta); font-weight: 600; }
.orc-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px; }
.orc-sum small { display: block; font-size: 12px; color: var(--texto-3); } .orc-sum b { font-size: 16px; font-weight: 700; color: var(--grafite); }
.orc-sum b.neg { color: var(--falta); } .orc-sum b.pos { color: var(--entrada); }
:root[data-tema="escuro"] .orc-sum b.pos { color: var(--acc); }
.meta-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meta-lista button { width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r-l); background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); display: grid; gap: 6px; }
.meta-lista .ph { display: flex; justify-content: space-between; gap: 10px; align-items: center; } .meta-lista .ph b { font-size: 15.5px; color: var(--grafite); }
.meta-lista .ph2 span { font-size: 18px; font-weight: 700; color: var(--grafite); } .meta-lista .ph2 small { font-size: 13px; font-weight: 400; color: var(--texto-3); }
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--gelo-2); color: var(--texto-2); white-space: nowrap; }
.tag.ok { background: color-mix(in srgb, var(--acc) 35%, transparent); color: var(--grafite); }
.tag.atencao { background: color-mix(in srgb, var(--atencao) 18%, transparent); color: var(--atencao); }
.tag.falta { background: color-mix(in srgb, var(--falta) 15%, transparent); color: var(--falta); }
.notice:not(:has(> svg)) { display: block; }

/* ===== cartões de crédito ===== */
.cart-lista { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.cart-lista button { width: 100%; text-align: left; padding: 16px; border-radius: var(--r-l); background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); display: grid; gap: 8px; }
.cart-top { display: flex; align-items: center; gap: 10px; } .cart-top b { font-size: 16px; color: var(--grafite); }
.cart-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--grafite); color: var(--gelo); display: grid; place-items: center; } .cart-ic svg { width: 19px; height: 19px; }
.cart-fat { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.cart-fat small { display: block; font-size: 12.5px; color: var(--texto-3); } .cart-fat b { font-size: 20px; font-weight: 700; color: var(--grafite); } .cart-fat .r { text-align: right; } .cart-fat .r b { font-size: 15px; }
.fat-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0 12px; padding-bottom: 4px; scrollbar-width: none; }
.fat-tabs button { flex: none; min-width: 64px; padding: 8px 12px; border-radius: 12px; background: var(--gelo-2); text-align: center; display: grid; gap: 2px; }
.fat-tabs button span { font-weight: 700; font-size: 14.5px; color: var(--grafite); text-transform: capitalize; } .fat-tabs button small { font-size: 11px; color: var(--texto-3); }
.fat-tabs button[aria-selected="true"] { background: var(--grafite); } .fat-tabs button[aria-selected="true"] span, .fat-tabs button[aria-selected="true"] small { color: var(--gelo); }
.fat-tabs button.atrasada small { color: var(--falta); } .fat-tabs button[aria-selected="true"].atrasada small { color: #FFB4A3; }
.fat-hero .bigv { margin: 4px 0; } .fat-hero.atrasada .bigv { color: var(--falta); }
.chip svg { width: 15px; height: 15px; margin-right: 5px; vertical-align: -3px; }

/* ===== v2.4.2: dias no azul em azul; estrada sem datas por cima de "Hoje"/"30 dias" ===== */
:root { --lung-ok: #0B3D91,#1456C8,#5B8FE6,#C9DCF8; }
:root[data-tema="escuro"] { --lung-ok: #5B95FF,#2F6BE0,#1B428C,#0A1A3A; --lung-tx: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) { --lung-ok: #5B95FF,#2F6BE0,#1B428C,#0A1A3A; --lung-tx: #FFFFFF; } }
.road { height: 92px; }
.road-line { top: 50px; }
.stop { top: 44px; }
.road-hoje, .road-fim { top: 64px; }
.stop small { left: 50%; transform: translateX(-50%); bottom: 22px; top: auto; }
.stop.up small { bottom: 38px; }
.stop.l small { left: -6px; transform: none; }
.stop.r small { left: auto; right: -6px; transform: none; }
.flag { top: 50px; height: 34px; border-left-width: 2px; }
.flag b { top: auto; bottom: 0; }

/* ===== v2.4.2: Contas mais limpa ===== */
.sum2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sum2 div { background: var(--gelo-2, var(--gelo)); border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--linha); }
.sum2 small { display: block; font-size: 12.5px; color: var(--texto-2); }
.sum2 b { display: block; margin-top: 2px; font-size: 19px; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.sum2 b.in { color: var(--entrada); }
.payb.chk { width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.payb.chk svg { width: 19px; height: 19px; }
.payb.chk:active { background: var(--acc); color: var(--on-acc); box-shadow: none; }

/* ===== v2.5: aba Painel (Mais) com gráficos ===== */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.kpis div { background: var(--branco); border-radius: 14px; padding: 11px 12px; box-shadow: inset 0 0 0 1px var(--linha); min-width: 0; }
.kpis small { display: block; font-size: 11.5px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis b { display: block; margin-top: 2px; font-size: 15.5px; font-weight: 650; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis b.neg, .dash-h b.neg, .dash-leg b.neg { color: var(--falta); }
.dash { display: grid; gap: 10px; margin-top: 12px; }
.dash > .sec { margin-top: 0; }
.dash-c { padding: 14px; }
.dash-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 10px; }
.dash-h p { width: 100%; font-size: 13.5px; font-weight: 600; color: var(--texto-2); margin: 0; }
.dash-h b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.dash-h small { font-size: 12px; color: var(--texto-3); }
.dash-line { width: 100%; height: 120px; display: block; overflow: visible; }
.dash-line .ar { fill: color-mix(in srgb, #2F6BE0 16%, transparent); }
.dash-line .ln { fill: none; stroke: #2F6BE0; stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dash-line .res { stroke: var(--falta); stroke-width: 1.4; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.dash-line .pt { fill: #2F6BE0; }
.dash-line.baixo .ln { stroke: var(--atencao, #C98F1E); } .dash-line.baixo .pt { fill: var(--atencao, #C98F1E); }
.dash-line.baixo .ar { fill: color-mix(in srgb, #C98F1E 16%, transparent); }
.dash-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--texto-2); }
.dash-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dash-leg i.l1 { background: #2F6BE0; } .dash-leg i.l2 { background: transparent; border-top: 2px dashed var(--falta); height: 0; border-radius: 0; vertical-align: 3px; }
.dash-leg i.e, .mb-pair i.e { background: var(--entrada); } .dash-leg i.s, .mb-pair i.s { background: var(--grafite); }
.dash-leg .mn { margin-left: auto; } .dash-leg .mn b { color: var(--grafite); }
.mb { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; height: 130px; align-items: end; }
.mb-col { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.mb-pair { flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 3px; }
.mb-pair i { width: 38%; max-width: 14px; border-radius: 4px 4px 1px 1px; min-height: 2px; }
.mb-col small { margin-top: 6px; font-size: 11.5px; color: var(--texto-3); }
.dash .gm { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.dash .gm .donut { width: 170px; height: 170px; }
.dash .gm-leg { min-width: 0; width: 100%; }
.cx-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cx-bars div { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.cx-bars i { display: block; height: 8px; border-radius: 4px; background: var(--linha); margin-top: 6px; overflow: hidden; }
.cx-bars em { display: block; height: 100%; background: var(--acc); border-radius: 4px; }
.cx-bars small { font-size: 12px; color: var(--texto-3); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 14px; background: var(--branco); box-shadow: inset 0 0 0 1px var(--linha); color: var(--grafite); text-decoration: none; min-width: 0; min-height: 84px; }
.tile .mi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--gelo); }
.tile .mi svg { width: 18px; height: 18px; }
.tile b { font-size: 13px; font-weight: 600; line-height: 1.25; }
.tile:active { transform: scale(.98); }

/* cores do gráfico de categorias: simples e fáceis de distinguir (mesmas nos dois temas) */
:root, :root[data-tema="escuro"] { --c1: #2563EB; --c2: #16A34A; --c3: #F97316; --c4: #DC2626; --c5: #EAB308; --c6: #9CA3AF; }
@media (prefers-color-scheme: dark) { :root[data-tema="sistema"], :root:not([data-tema]) { --c1: #3B82F6; --c2: #22C55E; --c3: #FB923C; --c4: #EF4444; --c5: #FACC15; --c6: #9CA3AF; } }
:root[data-tema="escuro"] { --c1: #3B82F6; --c2: #22C55E; --c3: #FB923C; --c4: #EF4444; --c5: #FACC15; --c6: #9CA3AF; }
