:root{--bg: #f3f3ef;--card: #ffffff;--ink: #111111;--mute: #5c5c57;--soft: #8a8a84;--line: #e2e2dc;--line2: #efefea;--blue: #2f5bff;--blue-bg: #e8edff;--blue-light: #8fa8ff;--orange: #e8590c;--orange-t: #c2410c;--orange-bg: #fdeee5;--orange-light: #ffb38a;--dark2: #1e1e1c;--dark3: #2a2a28;--dark-mute: #b5b5ae;--dark-text: #dadad4;--radius: 18px;--title: "Space Grotesk", system-ui, sans-serif}*{box-sizing:border-box;min-width:0}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 Inter,system-ui,-apple-system,sans-serif;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--blue);outline-offset:2px}[hidden]{display:none!important}.app{max-width:560px;margin:0 auto;min-height:100vh;padding:0 0 calc(96px + env(safe-area-inset-bottom))}.screen{padding:calc(20px + env(safe-area-inset-top)) 20px 20px;display:flex;flex-direction:column;gap:14px}.top{display:flex;justify-content:space-between;align-items:center;gap:12px}.top .kicker{display:block;font-size:13px;color:var(--mute)}.brand-logo{display:block;height:30px;width:auto;margin-bottom:4px}.top h1{margin:0;font-family:var(--title);font-size:24px;font-weight:700;line-height:1.15}.icon-btn{width:44px;height:44px;flex:none;border-radius:14px;border:1px solid var(--line);background:var(--card);display:grid;place-items:center;padding:0}.pill-btn{height:40px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-size:13px;font-weight:600;flex:none}.back{width:40px;height:40px;border-radius:12px;background:var(--card);border:1px solid var(--line);display:grid;place-items:center;padding:0;flex:none}.hero{background:var(--ink);color:#fff;border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:12px}.hero .label{font-size:13px;color:var(--dark-mute)}.hero .big{font-family:var(--title);font-size:clamp(36px,11vw,44px);font-weight:700;letter-spacing:-1px;line-height:1;white-space:nowrap}.hero .row{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.hero .tag{font-size:12px;background:var(--dark3);padding:4px 10px;border-radius:20px;color:var(--dark-text);white-space:nowrap}.hero .sub{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--dark-text)}.hero .split{border-top:1px solid var(--dark3);padding-top:8px}.chips-dark{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px}.chip-dark{background:var(--dark2);border:0;color:#fff;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;text-align:left}.chip-dark span{font-size:12px;color:var(--dark-mute)}.chip-dark b{font-size:16px;font-weight:600;white-space:nowrap}.chip-dark[aria-pressed=true]{outline:2px solid var(--blue-light)}.chip-dark .due{color:var(--orange-light)}.bar{display:flex;height:8px;border-radius:4px;overflow:hidden;gap:2px;background:var(--dark2)}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tile{background:var(--card);border-radius:var(--radius);padding:12px 14px;display:flex;flex-direction:column;gap:2px}.tile span{font-size:12px;color:var(--mute)}.tile b{font-size:18px;font-weight:700;white-space:nowrap}.tile.dark{background:var(--ink);color:#fff}.tile.dark span{color:var(--dark-mute)}.tile.small b{font-family:var(--title);font-size:18px}.c-blue{color:var(--blue)}.c-orange{color:var(--orange-t)}.c-mute{color:var(--mute)}.strip{background:var(--card);border-radius:14px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;flex-wrap:wrap}.action{height:76px;border-radius:var(--radius);border:0;font-size:14px;font-weight:600;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.action.in{background:var(--blue);color:#fff}.action.out{background:var(--orange);color:#fff}.action.neutral{background:var(--card);border:1px solid var(--line)}.cta{height:56px;width:100%;border-radius:16px;border:0;background:var(--blue);color:#fff;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px}.btn{height:48px;border-radius:14px;border:0;background:var(--ink);color:#fff;font-size:15px;font-weight:600;padding:0 16px}.btn.blue{background:var(--blue)}.btn.orange{background:var(--orange)}.btn.ghost{background:transparent;color:var(--mute)}.btn.outline{background:var(--card);color:var(--ink);border:1px solid var(--line)}.btn.danger{background:transparent;color:var(--orange-t);border:1px solid var(--line)}.btn.dashed{background:transparent;color:var(--ink);border:1px dashed #a9a9a2}.btn:disabled{opacity:.5;cursor:default}.row-btns{display:flex;gap:10px}.row-btns>*{flex:1}.section-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.section-title h2{margin:0;font-family:var(--title);font-size:17px;font-weight:700}.section-title span{font-size:13px;color:var(--mute);font-weight:600}.list{background:var(--card);border-radius:var(--radius);padding:4px 14px;display:flex;flex-direction:column}.item{display:flex;align-items:center;gap:12px;padding:10px 0;border:0;border-bottom:1px solid var(--line2);background:none;width:100%;text-align:left}.item:last-child{border-bottom:0}.item .ico{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;flex:none}.ico.in{background:var(--blue-bg)}.ico.out{background:var(--orange-bg)}.ico.vir{background:#f1f1ec}.item .txt{flex:1;display:flex;flex-direction:column;min-width:0}.item .txt b{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item .txt span{font-size:12px;color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item .amt{font-size:15px;font-weight:700;white-space:nowrap}.month{display:flex;justify-content:space-between;font-size:13px;color:var(--mute);font-weight:600;padding:6px 4px 0}.card-btn{background:var(--card);border:0;border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:8px;width:100%;text-align:left}.card-btn .line1,.card-btn .line2{display:flex;justify-content:space-between;align-items:center;gap:10px}.card-btn .line1 b{font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-btn .line1 strong{font-size:16px;font-weight:700;white-space:nowrap}.card-btn .line2 span{font-size:12px;color:var(--mute)}.badge{font-size:11px;font-weight:700;padding:3px 9px;border-radius:10px;white-space:nowrap;flex:none}.badge.due{color:var(--orange-t);background:var(--orange-bg)}.badge.paid{color:var(--blue);background:var(--blue-bg)}.tag{font-size:11px;font-weight:700;padding:3px 8px;border-radius:8px;color:#3f3f3b;background:#f1f1ec;flex:none}.tag.blue{color:var(--blue);background:var(--blue-bg)}.tag.orange{color:var(--orange-t);background:var(--orange-bg)}.empty{text-align:center;color:var(--mute);padding:36px 16px;background:var(--card);border-radius:var(--radius)}.search{display:flex;align-items:center;gap:8px;height:44px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:0 14px;flex:1}.search input{border:0;outline:none;flex:1;font-size:15px;background:transparent;min-height:40px}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--line);background:var(--card);font-size:13px;font-weight:600}.chip[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}.field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--mute);font-weight:600}.field input,.field select,.field textarea{height:46px;border:1px solid var(--line);border-radius:12px;padding:0 12px;font-size:16px;font-weight:400;background:var(--card);color:var(--ink);width:100%}.field textarea{height:auto;min-height:70px;padding:10px 12px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--ink)}.field.big input{height:64px;font-family:var(--title);font-size:30px;font-weight:700}.box{background:var(--card);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:10px}.box.flat{border:1px solid var(--line)}.box-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.box-head b{font-size:14px;font-weight:600}.x-btn{min-height:36px;padding:0 10px;border-radius:10px;border:1px solid var(--line);background:transparent;color:var(--orange-t);font-size:13px;font-weight:600;flex:none}.x-btn:disabled{opacity:.4;cursor:default}.hint{font-size:12px;color:var(--mute);margin:0;font-weight:400}.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px}.check input{width:22px;height:22px;accent-color:var(--ink);margin:0;flex:none}.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:3px;gap:3px}.seg button{height:40px;border:0;border-radius:9px;background:transparent;color:var(--mute);font-size:14px;font-weight:600;white-space:nowrap;padding:0 6px}.seg button[aria-pressed=true]{background:var(--ink);color:#fff}.seg button.in[aria-pressed=true]{background:var(--blue)}.seg button.out[aria-pressed=true]{background:var(--orange)}.note{background:var(--blue-bg);border-radius:14px;padding:10px 12px;font-size:13px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:space-between}.calc{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--mute)}.calc b{color:var(--ink);font-size:15px;white-space:nowrap}.pieces{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.piece{position:relative;width:64px;height:64px;border-radius:12px;overflow:hidden;background:var(--orange-bg)}.piece a{display:grid;place-items:center;width:100%;height:100%;text-decoration:none;color:var(--orange-t);font-size:12px;font-weight:700}.piece img{width:100%;height:100%;object-fit:cover;display:block}.piece button{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;border:0;background:#000000a6;color:#fff;font-size:11px;padding:0}.piece-add{position:relative;width:64px;height:64px;border-radius:12px;border:1px dashed #a9a9a2;display:grid;place-items:center;cursor:pointer}.piece-add:focus-within{outline:3px solid var(--blue);outline-offset:2px}.piece-add input{position:absolute;inset:0;opacity:0;cursor:pointer}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:10;background:var(--card);border-top:1px solid var(--line)}.tabbar nav{max-width:560px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 12px calc(10px + env(safe-area-inset-bottom))}.tabbar a{display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;color:var(--soft);font-size:12px;font-weight:600;padding:6px 0;min-height:44px}.tabbar a[aria-current=page]{color:var(--ink);font-weight:700}.veil{position:fixed;inset:0;background:#1116;z-index:20;animation:fade .15s ease}.sheet{position:fixed;left:0;right:0;bottom:0;margin:0 auto;max-width:560px;max-height:92vh;overflow:auto;background:var(--bg);border-radius:24px 24px 0 0;padding:18px 20px calc(20px + env(safe-area-inset-bottom));z-index:21;display:flex;flex-direction:column;gap:12px;animation:up .2s ease}.sheet h2{margin:0;font-family:var(--title);font-size:21px}@keyframes up{0%{transform:translateY(40px);opacity:0}}@keyframes fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){.sheet,.veil{animation:none}}.toast{position:fixed;left:50%;bottom:calc(100px + env(safe-area-inset-bottom));transform:translate(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;z-index:30;max-width:92vw;font-size:14px;box-shadow:0 8px 24px #00000026}.login{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:24px;text-align:center}.login .logo-full{width:min(280px,75vw);height:auto;margin-bottom:8px}.login h1{margin:0;font-family:var(--title);font-size:28px}.login p{margin:0;color:var(--mute);max-width:32ch}.google{height:52px;padding:0 22px;border-radius:14px;border:1px solid var(--line);background:var(--card);font-weight:600;font-size:15px;display:flex;align-items:center;gap:10px}.alert{background:var(--orange-bg);color:var(--orange-t);border-radius:14px;padding:12px 14px;font-size:14px}.detail-head{display:flex;flex-direction:column;gap:4px}.detail-head .sub{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--mute)}.detail-amount{font-family:var(--title);font-size:40px;font-weight:700;letter-spacing:-1px;line-height:1.05;white-space:nowrap}.dl{background:var(--card);border-radius:var(--radius);padding:2px 14px;display:flex;flex-direction:column}.dl-row{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:10px 0;border-bottom:1px solid var(--line2);font-size:14px}.dl-row:last-child{border-bottom:0}.dl-row>span{color:var(--mute);flex:none}.dl-row>b{font-weight:600;text-align:right;overflow-wrap:anywhere}.dl-row.total>b,.dl-row.total>span{color:var(--ink);font-weight:700;font-size:15px}.dl-title{font-size:12px;font-weight:600;color:var(--mute);margin:2px 0 -4px}.preview{display:flex;flex-direction:column;gap:8px}.preview img{width:100%;max-height:360px;object-fit:contain;background:var(--card);border-radius:14px;display:block}.preview .pdf{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--card);border-radius:14px;padding:12px 14px;text-decoration:none;color:var(--ink);font-size:14px;font-weight:600}.preview .pdf span:first-child{color:var(--orange-t);font-weight:700}.actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.actions .btn{width:100%}.mini-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;gap:2px;background:var(--line2)}.cols,.col-side,.col-main{display:contents}.side-actions{display:flex;flex-direction:column;gap:10px}.side-logo,.side-user,.desk-only{display:none}@media(min-width:1024px){body{font-size:15px}.app{max-width:none;margin:0;padding:0 0 0 248px}.screen{max-width:1180px;margin:0 auto;padding:40px 48px 64px;gap:18px}.brand-logo{display:none}.top h1{font-size:32px;letter-spacing:-.5px}.mobile-only{display:none}.desk-only{display:flex}p.desk-only{display:block}.cols{display:grid;grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:32px;align-items:start}.cols.right{grid-template-columns:minmax(0,1fr) minmax(320px,380px)}.col-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:40px}.col-main{display:flex;flex-direction:column;gap:14px}.col-side .chips-dark{grid-template-columns:1fr;gap:6px}.col-side .chip-dark{flex-direction:row;justify-content:space-between;align-items:center;padding:10px 14px}.col-side .chip-dark span{font-size:13px}.tiles3{grid-template-columns:1fr}.tiles3 .tile{flex-direction:row;justify-content:space-between;align-items:baseline;padding:14px 16px}.tiles3 .tile b{font-size:20px}.tabbar{top:0;bottom:0;right:auto;width:248px;border-top:0;border-right:1px solid var(--line)}.tabbar nav{max-width:none;height:100%;display:flex;flex-direction:column;gap:4px;padding:28px 16px 20px}.side-logo{display:block;width:150px;height:auto;margin:0 8px 28px}.tabbar a{flex-direction:row;justify-content:flex-start;gap:12px;font-size:15px;padding:10px 12px;border-radius:12px}.tabbar a:hover{background:var(--bg);color:var(--ink)}.tabbar a[aria-current=page]{background:var(--ink);color:#fff}.side-user{display:flex;flex-direction:column;gap:8px;margin-top:auto;padding:14px 8px 0;border-top:1px solid var(--line2);font-size:12px;color:var(--mute);overflow-wrap:anywhere}.side-user .pill-btn{align-self:flex-start}.item:hover,.card-btn:hover{background:#fafaf8}.card-btn{border:1px solid transparent}.card-btn:hover{border-color:var(--line)}.empty{padding:56px 24px}.sheet{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(560px,92vw);max-height:88vh;border-radius:24px;padding:24px 28px;animation:fade .15s ease;box-shadow:0 24px 64px #0000002e}.toast{bottom:32px;left:calc(50% + 124px)}}
