:root{--bg: #121A24;--bg-2: #0F1620;--panel: #182230;--line: #22303F;--line-2: #1B2633;--fg: #E8EEF5;--muted: #8FA3B8;--accent: #3D8BFF;--ok: #3DDC97;--ok-bg: #15302A;--act: #F5B544;--act-bg: #2A1F14;--bad: #FF6B6B;--display: "Space Grotesk", Inter, system-ui, sans-serif;--body: Inter, system-ui, -apple-system, sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.4 var(--body);-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.num{font-variant-numeric:tabular-nums}.display{font-family:var(--display)}.app{min-height:100%;display:flex;flex-direction:column;max-width:560px;margin:0 auto}.screen{flex:1;padding:calc(env(safe-area-inset-top,0px) + 20px) max(20px,env(safe-area-inset-right,0px)) 24px max(20px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:16px}.eyebrow{font-family:var(--display);font-weight:600;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.muted{color:var(--muted)}.small{font-size:11px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:flex;flex-direction:column;gap:4px}.sync{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.sync:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ok)}.sync.stale:before{background:var(--act)}.hero{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hero .cell{display:flex;flex-direction:column;gap:2px;min-width:0}.hero .cell+.cell{border-left:1px solid var(--line);padding-left:12px}.big{font-family:var(--display);font-weight:700;font-size:clamp(26px,8vw,34px);letter-spacing:-.02em;line-height:1.05}.big .cents{font-size:.5em;color:var(--muted)}.big.accent{color:var(--accent)}.big.bad{color:var(--bad)}.strip{display:grid;gap:3px;align-items:end;height:54px}.strip>div{border-radius:3px 3px 0 0;min-height:3px;background:var(--line-2)}.strip>div.out{background:var(--accent)}.strip>div.today{outline:1px solid var(--muted)}.axis{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.list{display:flex;flex-direction:column}.item{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line-2);min-height:64px}.item .date{display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:var(--panel)}.item .date.act{background:var(--act-bg);color:var(--act)}.item .date .mon{font-size:9px;letter-spacing:.08em;text-transform:uppercase;line-height:1}.item .date .day{font-family:var(--display);font-weight:700;font-size:18px;line-height:1.1}.item .what{display:flex;flex-direction:column;gap:2px;min-width:0}.item .what .name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item .what .from{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item .amt{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.item .amt .v{font-family:var(--display);font-weight:600;font-size:15px}.pill{font-size:10px;padding:2px 7px;border-radius:999px;background:var(--line-2);color:var(--muted);letter-spacing:.02em;white-space:nowrap}.pill.ok{background:var(--ok-bg);color:var(--ok)}.pill.act{background:var(--act-bg);color:var(--act)}.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{flex:0 0 auto;display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:10px;background:var(--panel);border:1px solid var(--line);min-width:96px}.chip .k{font-size:10px;color:var(--muted);white-space:nowrap}.chip .v{font-family:var(--display);font-weight:600;font-size:14px;white-space:nowrap}.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px}.empty{border:1px dashed var(--line);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:8px;color:var(--muted)}.empty strong{color:var(--fg)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--fg);font-weight:500}.btn.primary{background:var(--accent);border-color:var(--accent);color:#07111f}.btn.ghost{background:transparent}.btn[disabled]{opacity:.5;cursor:default}.btn.icon{width:44px;padding:0}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;color:var(--muted)}.field input,.field select{min-height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg-2);color:var(--fg);width:100%}.field input[type=file]{padding:10px 12px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.check{display:flex;align-items:center;gap:10px;min-height:44px}.check input{width:20px;height:20px;accent-color:var(--accent)}.msg{font-size:12px;padding:10px 12px;border-radius:10px;background:var(--panel);border:1px solid var(--line)}.msg.ok{border-color:var(--ok-bg);color:var(--ok)}.msg.bad{border-color:#3a1f22;color:var(--bad)}.acct{display:grid;grid-template-columns:8px 1fr auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line-2);min-height:56px}.acct .dot{width:8px;height:8px;border-radius:2px;background:var(--muted)}.acct .dot.cash{background:var(--ok)}.acct .dot.credit,.acct .dot.loan{background:var(--act)}.acct .dot.brokerage,.acct .dot.retirement{background:var(--accent)}.acct .v{font-family:var(--display);font-weight:600;font-size:15px;text-align:right}.acct .v.owe{color:var(--act)}.bar{height:6px;background:var(--panel);border-radius:3px;overflow:hidden}.bar>div{height:100%;background:var(--accent)}.catrow{display:grid;grid-template-columns:110px 1fr 64px;gap:10px;align-items:center;min-height:28px}.catrow .n{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catrow .v{font-size:12px;text-align:right}.tabs{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--line);background:var(--bg-2);padding:8px max(8px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 8px) max(8px,env(safe-area-inset-left,0px))}.tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:44px;font-size:10px;color:var(--muted);border-radius:8px}.tabs a[aria-current=page]{color:var(--accent);font-weight:600}.tabs svg{width:20px;height:20px}.login{flex:1;display:flex;flex-direction:column;justify-content:center;gap:20px}.login h1{margin:0;font-family:var(--display);font-size:36px;letter-spacing:-.02em}@media(prefers-reduced-motion:no-preference){.strip>div{transition:height .3s ease}}.chart{width:100%;min-width:0}.axis-t{font-size:10px;fill:var(--muted);font-family:var(--body);font-variant-numeric:tabular-nums}.node-t{font-size:11px;fill:var(--fg);font-family:var(--body)}.node-v{font-size:10px;fill:var(--muted);font-family:var(--body)}.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;font-size:11px;color:var(--muted)}.legend span,.tip-row{display:inline-flex;align-items:center;gap:6px}.legend i,.tip-row i{width:10px;height:10px;border-radius:2px;display:inline-block}.tip{pointer-events:none;z-index:2;background:var(--bg-2);border:1px solid var(--line);border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;font-size:11px;color:var(--muted);min-width:120px;box-shadow:0 8px 24px #00000059}.tip strong{font-family:var(--display);font-size:15px;color:var(--fg)}.tip-row{color:var(--fg);justify-content:space-between;width:100%}.tip-row b{font-weight:500}.meters{display:flex;flex-direction:column;gap:10px}.meter{display:grid;grid-template-columns:minmax(96px,36%) 1fr 72px;gap:10px;align-items:center;min-height:24px}.meter .m-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meter .m-bar{height:8px;background:var(--panel);border-radius:4px;overflow:hidden;display:block}.meter .m-bar i{display:block;height:100%;border-radius:4px}.meter .m-val{font-size:12px;text-align:right}.sankey .ribbon{transition:stroke-opacity .2s}.sankey .node-t,.sankey .node-v{paint-order:stroke;stroke:var(--bg);stroke-width:3px;stroke-linejoin:round}.sankey g:hover .ribbon{stroke-opacity:.7}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.kpi{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;min-width:0}.kpi .k{font-size:11px;color:var(--muted)}.kpi .v{font-family:var(--display);font-weight:700;font-size:22px;letter-spacing:-.02em}.kpi .d{font-size:11px;color:var(--muted)}.kpi .d.up{color:var(--ok)}.kpi .d.down{color:var(--bad)}.section-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.section-h h2{margin:0;font-family:var(--display);font-size:15px;font-weight:600}@media(prefers-reduced-motion:no-preference){@keyframes grow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes draw{0%{stroke-dasharray:2000;stroke-dashoffset:2000}to{stroke-dasharray:2000;stroke-dashoffset:0}}@keyframes rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.grow{animation:grow .5s cubic-bezier(.2,.7,.2,1) both}.draw{animation:draw 1.2s ease-out both}.screen>*{animation:rise .35s ease-out both}.screen>*:nth-child(2){animation-delay:.04s}.screen>*:nth-child(3){animation-delay:.08s}.screen>*:nth-child(4){animation-delay:.12s}.screen>*:nth-child(5){animation-delay:.16s}}.rail{display:none}@media(min-width:1024px){.app{max-width:none;display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100%}.rail{display:flex;flex-direction:column;gap:4px;padding:28px 16px;border-right:1px solid var(--line);background:var(--bg-2);position:sticky;top:0;height:100vh;box-sizing:border-box}.rail .brand{font-family:var(--display);font-weight:700;font-size:18px;letter-spacing:-.01em;padding:0 10px 18px;display:flex;align-items:center;gap:10px}.rail .brand i{width:10px;height:10px;border-radius:50%;background:var(--accent);display:inline-block}.rail a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:var(--muted);font-size:14px;min-height:44px}.rail a svg{width:18px;height:18px}.rail a:hover{background:var(--panel);color:var(--fg)}.rail a[aria-current=page]{background:var(--panel);color:var(--fg);box-shadow:inset 3px 0 0 var(--accent)}.rail .foot{margin-top:auto;font-size:11px;color:var(--muted);padding:0 12px}.tabs{display:none}.screen{padding:32px 40px 40px;max-width:1280px;width:100%;margin:0;gap:20px}.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;align-items:start}.col-7{grid-column:span 7;min-width:0}.col-5{grid-column:span 5;min-width:0}.col-6{grid-column:span 6;min-width:0}.col-12{grid-column:span 12;min-width:0}.col-8{grid-column:span 8;min-width:0}.col-4{grid-column:span 4;min-width:0}.big{font-size:40px}.hero{gap:24px}.chips{flex-wrap:wrap;overflow:visible}}@media(max-width:1023px){.grid{display:flex;flex-direction:column;gap:16px}}
