:root{
  --bg:#09090b; --s1:#131316; --s2:#1c1c20; --s3:#26262b;
  --line:rgba(255,255,255,.07); --line2:rgba(255,255,255,.12);
  --tx:#fafafa; --mu:#a1a1aa; --dim:#71717a;
  --green:#4ade80; --red:#f87171; --amber:#fbbf24; --white:#fff;
  --obra:#f59e0b; --digital:#a78bfa; --empresa:#38bdf8; --casa:#f472b6; --outros:#a1a1aa; --pendente:#fbbf24;
  --r:16px; --r2:22px;
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{overflow-x:hidden;overscroll-behavior:none;touch-action:pan-y;max-width:100%;background:var(--bg);color:var(--tx);font-family:Inter,system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,select{font:inherit;font-size:16px;color:var(--tx);background:var(--s2);border:1px solid var(--line);border-radius:12px;height:48px;padding:0 14px;width:100%;outline:none}
input:focus,select:focus{border-color:var(--line2)}
.num{font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.wrap{max-width:520px;margin:0 auto;padding:18px 18px calc(110px + var(--safe-b))}
.top{display:flex;align-items:center;justify-content:space-between;margin:4px 0 22px}
.month{display:flex;align-items:center;gap:6px;font-weight:500;font-size:16px}
.month button{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:var(--mu)}
.month button:active{background:var(--s2)}
.icon-btn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--mu);background:var(--s1);border:1px solid var(--line)}
.icon-btn:active{transform:scale(.96)}
svg.i{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.hero{padding:6px 2px 24px}
.label{font-size:13px;color:var(--mu);font-weight:500}
.big{font-size:46px;font-weight:600;line-height:1.05;margin:6px 0 8px}
.sub{font-size:14px;color:var(--mu)}
.pos{color:var(--green)} .neg{color:var(--red)} .warn{color:var(--amber)}
.card{background:var(--s1);border:1px solid var(--line);border-radius:var(--r2);padding:18px}
.card+.card,.gap{margin-top:12px}
.card h3{font-size:14px;font-weight:500;color:var(--mu);margin-bottom:14px;display:flex;justify-content:space-between;align-items:center}
.bar{height:10px;background:var(--s3);border-radius:99px;overflow:hidden}
.bar>i{display:block;height:100%;border-radius:99px;transition:width .5s ease}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.cx{background:var(--s1);border:1px solid var(--line);border-radius:var(--r);padding:16px;text-align:left;width:100%}
.cx:active{transform:scale(.985)}
.cx .t{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--mu);font-weight:500}
.dot{width:8px;height:8px;border-radius:50%;flex:none}
.cx .v{font-size:22px;font-weight:600;margin-top:10px}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.row:first-child{border-top:0;padding-top:2px}
.row .l{min-width:0;display:flex;align-items:center;gap:12px}
.row .n{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .s{font-size:12px;color:var(--dim);margin-top:1px}
.row .v{font-weight:500;white-space:nowrap}
.tile{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:none;background:var(--s2)}
.mini{height:4px;background:var(--s3);border-radius:99px;margin-top:6px;overflow:hidden}
.mini>i{display:block;height:100%;background:var(--tx);opacity:.85;border-radius:99px}
.hist{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;align-items:end;height:130px;margin-top:6px}
.hist .col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px}
.hist .b{width:100%;max-width:46px;border-radius:10px 10px 4px 4px}
.hist .k{font-size:12px;color:var(--dim)}
.hist .x{font-size:11px;font-weight:500}
.seg{display:flex;background:var(--s1);border:1px solid var(--line);border-radius:14px;padding:4px;gap:4px;margin-bottom:18px}
.seg button{flex:1;height:38px;border-radius:10px;font-size:14px;font-weight:500;color:var(--mu)}
.seg button.on{background:var(--s3);color:var(--tx)}
.pill{font-size:12px;font-weight:500;padding:4px 10px;border-radius:99px;white-space:nowrap}
.p-ok{background:rgba(74,222,128,.12);color:var(--green)}
.p-wait{background:rgba(251,191,36,.12);color:var(--amber)}
.p-late{background:rgba(248,113,113,.14);color:var(--red)}
.nav{position:fixed;left:0;right:0;bottom:0;padding:10px 12px calc(10px + var(--safe-b));background:rgba(9,9,11,.82);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid var(--line);z-index:20}
.nav .in{max-width:520px;margin:0 auto;display:flex;justify-content:space-around;align-items:center}
.nav button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;color:var(--dim);padding:4px 10px;position:relative;font-weight:500}
.nav button.on{color:var(--tx)}
.nav button>svg.i{margin:4px 0}
.badge{position:absolute;top:-2px;right:6px;background:var(--amber);color:#1a1300;font-size:10px;font-weight:600;min-width:17px;height:17px;border-radius:99px;display:grid;place-items:center;padding:0 4px}
.nav .fab{color:var(--mu)}
.fab .plus{width:38px;height:28px;border-radius:99px;background:var(--white);color:#09090b;display:grid;place-items:center}
.fab .plus svg.i{width:18px;height:18px;stroke-width:2.4}
.fab:active .plus{transform:scale(.94)}
.sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:40;display:flex;align-items:flex-end;justify-content:center;animation:fade .2s}
.sheet{background:var(--s1);border:1px solid var(--line);border-bottom:0;border-radius:26px 26px 0 0;width:100%;max-width:520px;max-height:92vh;overflow:auto;padding:10px 20px calc(24px + var(--safe-b));animation:up .25s cubic-bezier(.2,.8,.2,1)}
.sheet{position:relative;overflow-x:hidden;min-width:0;touch-action:pan-y;overscroll-behavior:contain}
.sheet-bg{overflow:hidden;touch-action:pan-y}
.wrap,.nav{touch-action:pan-y}
.field{min-width:0;overflow:hidden}
.sheet-x{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;background:var(--s2);color:var(--mu);display:grid;place-items:center}
.sheet-x:active{background:var(--s3)}
.sheet h2{padding-right:44px}
input{min-width:0;max-width:100%;display:block}
input[type=date]{-webkit-appearance:none;appearance:none;text-align:left;line-height:48px}
input[type=date]::-webkit-date-and-time-value{text-align:left}
.grab{width:40px;height:5px;border-radius:99px;background:var(--s3);margin:4px auto 16px}
.sheet h2{font-size:19px;font-weight:600;margin-bottom:16px}
.field{margin-bottom:12px}
.field label{display:block;font-size:13px;color:var(--mu);margin-bottom:6px;font-weight:500}
.amount-in{font-size:34px;font-weight:600;height:64px;text-align:center;background:transparent;border:0;border-bottom:1px solid var(--line2);border-radius:0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{height:36px;padding:0 14px;border-radius:99px;background:var(--s2);border:1px solid var(--line);font-size:14px;color:var(--mu)}
.chip.on{background:var(--white);color:#09090b;border-color:var(--white);font-weight:500}
.cxhead{font-size:12px;color:var(--dim);font-weight:500;margin:14px 0 8px;display:flex;align-items:center;gap:6px;text-transform:uppercase;letter-spacing:.06em}
.btn{height:52px;border-radius:14px;width:100%;font-weight:600;font-size:16px;background:var(--white);color:#09090b}
.btn:active{transform:scale(.99)}
.btn.ghost{background:var(--s2);color:var(--tx);border:1px solid var(--line)}
.btn.danger{background:transparent;color:var(--red);border:1px solid rgba(248,113,113,.3)}
.err{color:var(--red);font-size:13px;min-height:18px;margin:6px 0}
.toggle{display:flex;align-items:center;justify-content:space-between;padding:14px 0;font-size:15px}
.sw{width:46px;height:28px;border-radius:99px;background:var(--s3);position:relative;transition:.2s}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--mu);transition:.2s}
.sw.on{background:var(--green)} .sw.on::after{left:21px;background:#fff}
.dirsw{display:flex;background:var(--s2);border-radius:12px;padding:4px;margin-bottom:14px}
.dirsw button{flex:1;height:38px;border-radius:9px;font-weight:500;color:var(--mu)}
.dirsw button.on{background:var(--s3);color:var(--tx)}
.empty{text-align:center;color:var(--mu);padding:40px 10px}
.empty svg.i{width:40px;height:40px;color:var(--green);margin-bottom:10px}
.login{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:10px}
.dots{display:flex;gap:14px;margin:26px 0 34px}
.dots i{width:14px;height:14px;border-radius:50%;border:1.5px solid var(--dim)}
.dots i.f{background:var(--tx);border-color:var(--tx)}
.pad{display:grid;grid-template-columns:repeat(3,76px);gap:16px}
.pad button{height:76px;border-radius:50%;background:var(--s1);border:1px solid var(--line);font-size:26px;font-weight:500}
.pad button:active{background:var(--s3)}
.logo{width:64px;height:64px;border-radius:20px;background:var(--white);color:#09090b;display:grid;place-items:center}
.logo svg.i{width:32px;height:32px;stroke-width:2}
.toast{position:fixed;left:50%;bottom:calc(100px + var(--safe-b));transform:translateX(-50%);background:var(--white);color:#09090b;padding:12px 18px;border-radius:14px;font-weight:500;font-size:14px;z-index:60;animation:up .25s;max-width:90vw}
.sync{font-size:12px;color:var(--dim);display:flex;align-items:center;gap:6px;justify-content:center;margin-top:22px}
.spin{animation:spin 1s linear infinite}
.skel{background:var(--s1);border-radius:var(--r2);height:120px;margin-top:12px;animation:pulse 1.4s ease-in-out infinite}
@keyframes up{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pulse{50%{opacity:.5}}
@media (min-width:700px){.big{font-size:54px}}
