:root{--canal: #1F6F6B;--canal-deep: #164F4C;--canal-soft: #E3EFEE;--ipe: #F2B705;--ipe-soft: #FDF3D3;--ink: #1D2B36;--muted: #5E6B78;--line: #DCE1E6;--paper: #F6F7F9;--card: #FFFFFF;--red: #C2412D;--green: #2F7D4A;--display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;--text: "Public Sans", system-ui, -apple-system, sans-serif;--tab-h: 64px;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 var(--text);-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:2.5px solid var(--canal);outline-offset:2px;border-radius:6px}.num{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.neg{color:var(--red)!important}.pos{color:var(--green)}.muted{color:var(--muted)}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}small{color:var(--muted);font-size:12px}.splash{display:grid;place-items:center;height:100vh;color:var(--muted)}.shell{max-width:760px;margin:0 auto;min-height:100vh}.main{padding:0 0 calc(var(--tab-h) + 96px + env(safe-area-inset-bottom))}.band{background:var(--ipe);padding:calc(10px + env(safe-area-inset-top)) 16px 16px;border-radius:0 0 22px 22px;touch-action:pan-y}.band-nav{display:grid;grid-template-columns:44px 1fr 44px;align-items:center}.band-nav button{width:44px;height:44px;border:0;background:transparent;font-size:30px;line-height:1;color:var(--ink);border-radius:12px}.band-nav button:active{background:#1d2b3614}.band-title{text-align:center}.band-title h1{font:700 22px/1.1 var(--display);margin:0;letter-spacing:-.01em}.band-title span{font-size:13px;color:#1d2b36b3}.band-saldo{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-top:14px}.band-saldo.skeleton{height:58px;background:#1d2b360f;border-radius:12px}.band-label{display:block;font-size:13px;color:#1d2b36bf}.band-saldo strong{font:700 40px/1 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.02em}.band-side{display:flex;flex-direction:column;align-items:flex-end;font-size:13px;color:#1d2b36cc;text-align:right}.summary{margin:16px 12px 8px;background:var(--card);border-radius:16px;padding:6px 14px;border:1px solid var(--line)}.summary-head,.summary-row{display:grid;grid-template-columns:1fr 108px 108px;gap:8px;align-items:center}.summary-head{font-size:12px;color:var(--muted);padding:6px 0 2px}.summary-head span{text-align:right}.summary-row{padding:9px 0;border-top:1px solid var(--line)}.summary-row>span:first-child{display:flex;align-items:center;gap:8px}.summary-row>span:first-child:before{content:"";width:8px;height:8px;border-radius:2px;background:var(--dot, var(--muted))}.summary-row.total>span:first-child:before{display:none}.summary-row.total{font-weight:600;border-top:2px solid var(--ink)}.strong{font-weight:600}.t-entrada{--dot: var(--green)}.t-poupanca{--dot: var(--ipe)}.t-fixo{--dot: var(--canal-deep)}.t-variavel{--dot: var(--canal)}.ledger{margin:12px;background:var(--card);border-radius:14px;border:1px solid var(--line);overflow:hidden}.ledger-head{display:grid;grid-template-columns:1fr auto 20px;align-items:center;gap:10px;width:100%;padding:14px;border:0;background:transparent;text-align:left}.ledger-head.static{grid-template-columns:1fr auto}.ledger-head h2{font:600 17px/1.2 var(--display);margin:0;display:flex;align-items:center;gap:8px}.ledger.t-entrada h2:before,.ledger.t-poupanca h2:before,.ledger.t-fixo h2:before,.ledger.t-variavel h2:before{content:"";width:10px;height:10px;border-radius:3px;background:var(--dot)}.ledger-head small{margin-left:4px}.chev{transition:transform .15s;color:var(--muted);font-size:18px}.chev.up{transform:rotate(180deg)}.ledger-empty{padding:0 14px 14px;color:var(--muted);margin:0}.ledger table{width:100%;border-collapse:collapse}.ledger th{font-weight:500;font-size:12px;color:var(--muted);text-align:right;padding:4px 14px 6px 4px}.ledger th:first-child{text-align:left;padding-left:14px}.ledger td{padding:9px 14px 9px 4px;border-top:1px solid var(--line);vertical-align:top;font-size:14px}.ledger td:first-child{padding-left:14px;width:40%}.ledger tbody tr{cursor:pointer}.ledger tbody tr:active{background:var(--canal-soft)}.item{display:block}.bar{display:block;height:4px;background:var(--line);border-radius:2px;margin-top:6px;max-width:140px}.bar i{display:block;height:100%;background:var(--dot, var(--canal));border-radius:2px}.bar.over i{background:var(--red)}.pad{padding:0 14px 14px}.center{text-align:center}.toolbar{display:flex;gap:8px;align-items:center;padding:14px 12px 4px;flex-wrap:wrap}.toolbar input[type=search]{flex:1;min-width:200px}input,select{border:1px solid var(--line);background:var(--card);border-radius:10px;padding:10px 12px;min-height:44px;width:100%}.toolbar input,.toolbar select{width:auto}.chip{border:0;background:var(--canal);color:#fff;border-radius:999px;padding:8px 14px;min-height:36px}.list-meta{color:var(--muted);font-size:13px;padding:0 14px;margin:6px 0}.txgroup h3{font:500 13px/1 var(--text);color:var(--muted);margin:18px 14px 6px;text-transform:capitalize}.txgroup{background:transparent}.tx{display:flex;justify-content:space-between;align-items:center;gap:12px;width:calc(100% - 24px);margin:0 12px;padding:11px 14px;border:1px solid var(--line);border-top-width:0;background:var(--card);text-align:left}.txgroup h3+.tx{border-top-width:1px;border-radius:12px 12px 0 0}.tx:last-child{border-radius:0 0 12px 12px}.txgroup h3+.tx:last-child{border-radius:12px}.tx:active{background:var(--canal-soft)}.tx-main{display:flex;flex-direction:column;min-width:0}.tx-merchant{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-sub{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-amt{font-weight:600}.skeleton.list{height:280px;margin:16px 12px;border-radius:14px;background:linear-gradient(90deg,#eceff2,#f4f6f8,#eceff2);background-size:200% 100%;animation:shimmer 1.4s infinite}@keyframes shimmer{to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.skeleton.list{animation:none}.chev{transition:none}}.empty{text-align:center;padding:40px 24px;color:var(--muted)}.notice{margin:12px;padding:12px 14px;background:var(--ipe-soft);border-radius:12px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.notice p{margin:0}.notice-inline{margin:8px 14px;padding:10px 12px;background:var(--canal-soft);border-radius:10px;font-size:14px}.btn{border:0;background:var(--canal);color:#fff;padding:11px 18px;border-radius:12px;font-weight:600;min-height:44px}.btn:active{background:var(--canal-deep)}.btn:disabled{opacity:.55}.btn.ghost{background:transparent;color:var(--canal-deep);border:1px solid var(--line)}.btn.danger{color:var(--red)}.btn.small{padding:8px 14px;min-height:38px;font-size:14px}.btn.tiny{padding:4px 10px;min-height:32px;font-size:13px}.btn.wide{width:100%}.row-gap{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:12px}.field{display:flex;flex-direction:column;gap:4px}.field>span{font-size:13px;color:var(--muted)}.hint{font-size:13px;color:var(--muted);margin:-4px 0 0}.error{color:var(--red);margin:0}.ok{color:var(--green);margin:0}.check{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted)}.check input{width:18px;min-height:18px;height:18px}.seg{display:inline-flex;background:#e8ebef;border-radius:12px;padding:3px;gap:2px}.seg button{border:0;background:transparent;padding:8px 12px;border-radius:9px;font-size:14px;color:var(--muted);min-height:38px}.seg button.on{background:var(--card);color:var(--ink);font-weight:600;box-shadow:0 1px 2px #1d2b361f}.seg.small button{padding:6px 10px;min-height:34px;font-size:13px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.inline-form{display:flex;gap:8px}.inline-form input{flex:1}.inline-form select{width:auto}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1d2b3661;display:flex;align-items:flex-end;justify-content:center;z-index:30}.sheet{background:var(--paper);width:100%;max-width:560px;border-radius:22px 22px 0 0;padding:8px 16px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;max-height:92vh;overflow:auto;animation:rise .18s ease-out}@keyframes rise{0%{transform:translateY(24px);opacity:.6}}@media (prefers-reduced-motion: reduce){.sheet{animation:none}}@media (min-width: 700px){.sheet-backdrop{align-items:center}.sheet{border-radius:22px}}.sheet-grip{width:40px;height:4px;border-radius:2px;background:var(--line);margin:4px auto 0}.sheet h2{font:600 19px/1.2 var(--display);margin:0}.amount-row{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.amount{display:flex;align-items:baseline;gap:6px;width:100%;border-bottom:2px solid var(--canal);padding-bottom:2px}.amount span{font:600 26px var(--display);color:var(--muted)}.amount input{border:0;background:transparent;font:700 40px/1.1 var(--display);padding:0;min-height:0;font-variant-numeric:tabular-nums}.amount input:focus-visible{outline:none}.sheet-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:4px}.sheet-actions .danger{margin-right:auto}.budget-list{list-style:none;margin:0;padding:0}.budget-list li{display:grid;grid-template-columns:1fr 130px;align-items:center;gap:10px;padding:6px 14px;border-top:1px solid var(--line)}.budget-list input{text-align:right;font-variant-numeric:tabular-nums;min-height:40px;padding:8px 10px}.savebar{position:fixed;left:0;right:0;bottom:calc(var(--tab-h) + env(safe-area-inset-bottom));display:flex;gap:8px;align-items:center;justify-content:flex-end;padding:10px 16px;background:var(--ink);color:#fff;z-index:25}.savebar span{margin-right:auto;font-size:14px}.savebar .ghost{color:#fff;border-color:#ffffff4d}.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:calc(16px + env(safe-area-inset-top)) 14px 4px;flex-wrap:wrap}.display{font:700 28px/1.1 var(--display);margin:0;letter-spacing:-.015em}.center-page{max-width:420px;margin:0 auto;padding:calc(48px + env(safe-area-inset-top)) 22px 40px;display:flex;flex-direction:column;gap:14px}.login-mark{margin-bottom:4px}.login .seg{align-self:flex-start}.plain{list-style:none;margin:0;padding:0}.plain li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 14px;border-top:1px solid var(--line)}.cat-group h3{font:500 13px var(--text);color:var(--muted);margin:12px 14px 4px}.cat-actions{display:flex;gap:6px;align-items:center}.cat-actions select{width:auto;min-height:32px;padding:4px 8px;font-size:13px}.linklike{border:0;background:none;padding:4px 0;text-align:left}.progress{height:8px;background:var(--line);border-radius:4px;overflow:hidden}.progress i{display:block;height:100%;background:var(--canal);transition:width .2s}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px}.stats div{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px}.stats span{display:block;font-size:12px;color:var(--muted)}.stats strong{font:700 19px/1.2 var(--display);font-variant-numeric:tabular-nums}.chart{margin:8px 12px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px}.ledger .chart{margin:12px 0 0;border:0;padding:0}.chart svg{width:100%;height:auto;display:block}.chart .grid{stroke:var(--line);stroke-dasharray:3 4}.chart .axis{font:11px var(--text);fill:var(--muted)}.chart .b-in{fill:var(--canal)}.chart .b-out{fill:#9db7c4}.chart .b-over{fill:var(--red)}.chart .l-save{stroke:var(--ipe);stroke-width:3;stroke-linejoin:round}.chart .l-plan{stroke:var(--ink);stroke-width:2}.chart figcaption{display:flex;gap:14px;font-size:12px;color:var(--muted);margin-top:6px;flex-wrap:wrap}.key:before{content:"";display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}.key.in:before{background:var(--canal)}.key.out:before{background:#9db7c4}.key.save:before{background:var(--ipe);height:3px;vertical-align:3px}.table-wrap{margin:12px;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:auto}.hist{width:100%;border-collapse:collapse;font-size:14px}.hist th{font-weight:500;font-size:12px;color:var(--muted);padding:8px 12px;text-align:right;position:sticky;top:0;background:var(--card)}.hist th:first-child,.hist td:first-child{text-align:left}.hist td{padding:8px 12px;border-top:1px solid var(--line)}.hist tbody tr{cursor:pointer}.tabbar{position:fixed;left:0;right:0;bottom:0;height:calc(var(--tab-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fffffff5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line);display:flex;justify-content:center;z-index:20}.tabbar button{flex:1;max-width:140px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--muted)}.tabbar button.on{color:var(--canal-deep);font-weight:600}.tabbar button.on svg{stroke-width:2.3}.fab{position:fixed;right:max(18px,calc(50% - 362px));bottom:calc(var(--tab-h) + 18px + env(safe-area-inset-bottom));width:60px;height:60px;border-radius:20px;border:0;background:var(--canal);color:#fff;box-shadow:0 6px 16px #164f4c59;z-index:21;display:grid;place-items:center}.fab:active{background:var(--canal-deep)}@media (min-width: 700px){.band{border-radius:0 0 26px 26px;padding-left:24px;padding-right:24px}.summary-head,.summary-row{grid-template-columns:1fr 150px 150px}}@media (max-width: 380px){.summary-head,.summary-row{grid-template-columns:1fr 92px 92px;font-size:14px}.ledger td,.ledger th{font-size:13px;padding-right:8px}.band-saldo strong{font-size:34px}}.txgroup h3{text-transform:none}.txgroup h3:first-letter{text-transform:uppercase}.summary-row>span:first-child{white-space:nowrap}.ledger table{table-layout:fixed}.ledger th:not(:first-child),.ledger td:not(:first-child){width:20%}.ledger td:first-child{width:auto}.item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hist th,.hist td{white-space:nowrap;padding:8px 10px}.plain li>.linklike,.plain li{min-width:0}.linklike{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 480px){.ledger td,.ledger th{font-size:13px;padding-right:8px}.ledger th:not(:first-child),.ledger td:not(:first-child){width:19%}.ledger th:last-child,.ledger td:last-child{width:17%}.summary-head,.summary-row{grid-template-columns:1fr 100px 104px}.hist{font-size:13px}.hist th,.hist td{padding:8px 7px}}
