:root{--ground:#101114;--surface:#1a1c21;--surface-2:#22252b;--text:#edeef2;--muted:#9ba0ac;--border:#292c33;--accent:#b6ff2e;--on-accent:#101114;--dim:#8a8f96;--income:#6fe39b;--pending:#f5b942;--r-sm:14px;--r-md:18px;--r-lg:28px;--r-pill:999px;--gutter:20px;--display:"Bricolage Grotesque", system-ui, sans-serif;--body:Archivo, system-ui, sans-serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none}::-webkit-scrollbar{width:0;height:0;display:none}html,body{background:var(--ground);height:100%;color:var(--text);font-family:var(--body);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none;margin:0}#root{height:100%}button{font:inherit;color:inherit;cursor:pointer}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.screen{max-width:480px;height:100%;padding:calc(env(safe-area-inset-top) + 20px) var(--gutter) calc(env(safe-area-inset-bottom) + 20px);flex-direction:column;gap:16px;margin:0 auto;display:flex;overflow-y:auto}.field-row{flex-shrink:0;align-items:flex-end;gap:10px;display:flex}.topbar{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;display:flex}.date-label{color:var(--muted);font-size:13px}h1.month{font-family:var(--display);flex-shrink:0;margin:0;font-size:30px;font-weight:800;line-height:1}h2.section{font-family:var(--display);margin:0;font-size:17px;font-weight:800}.chip{border-radius:var(--r-pill);white-space:nowrap;background:var(--surface);color:var(--muted);border:1px solid #0000;align-items:center;gap:7px;padding:8px 12px;font-size:12px;font-weight:500;display:inline-flex}.chip[data-state=pending],.chip[data-state=offline]{color:var(--pending);background:#2a2510}.chip[data-state=synced]{color:var(--accent);background:#1d2a12}.chip[data-state=failed]{color:#ff8f6b;background:#2e1a16}.chip .dot{background:currentColor;border-radius:50%;flex-shrink:0;width:8px;height:8px}button.chip{border-color:var(--border)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);flex-shrink:0;padding:22px}.hero-label{color:var(--muted);margin-bottom:4px;font-size:13px}.hero-amount{font-family:var(--display);letter-spacing:-.03em;font-variant-numeric:tabular-nums;font-size:40px;font-weight:800;line-height:1}.hero-amount .cents{color:var(--muted);font-size:22px}.hero-sub{color:var(--muted);margin-top:8px;font-size:13px}.envelopes{flex-direction:column;gap:13px;margin-top:18px;display:flex}.envelope-head{align-items:center;gap:8px;margin-bottom:6px;font-size:14px;display:flex}.envelope-head .name{flex-grow:1;font-weight:500}.envelope-head .note{color:var(--muted);font-variant-numeric:tabular-nums;font-size:13px}.bar{background:var(--surface-2);border-radius:var(--r-pill);height:8px;overflow:hidden}.bar>span{border-radius:var(--r-pill);height:100%;display:block}.list{flex-direction:column;flex-shrink:0;gap:9px;padding-bottom:4px;display:flex}.row{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);flex-shrink:0;align-items:center;gap:13px;padding:13px 16px;display:flex}.row[data-pending=true]{border-color:#4a3d16}.row .dot{border-radius:50%;flex-shrink:0;width:9px;height:9px}.row .body{flex-grow:1;min-width:0}.row .name{text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:500;overflow:hidden}.row .meta{color:var(--muted);font-size:12px}.row .amount{font-family:var(--display);font-variant-numeric:tabular-nums;font-size:17px;font-weight:800}.empty{border:1px dashed var(--border);border-radius:var(--r-md);text-align:center;color:var(--muted);padding:28px 20px;font-size:14px;line-height:1.5}.primary{background:var(--accent);width:100%;color:var(--on-accent);border-radius:var(--r-pill);font-family:var(--display);border:0;flex-shrink:0;justify-content:center;align-items:center;gap:10px;padding:20px;font-size:16px;font-weight:800;text-decoration:none;display:flex}.primary:disabled{background:var(--surface-2);color:var(--muted);cursor:not-allowed}.primary[data-sticky=true]{box-shadow:0 -18px 24px -8px var(--ground);margin-top:auto;position:sticky;bottom:0}.drill{border-top:1px solid var(--border);margin-top:16px;padding-top:14px}.drill>summary{cursor:pointer;color:var(--muted);align-items:center;gap:8px;min-height:24px;font-size:13px;list-style:none;display:flex}.drill>summary::-webkit-details-marker{display:none}.drill>summary:after{content:"";border-bottom:1.5px solid;border-right:1.5px solid;width:7px;height:7px;transition:transform .14s cubic-bezier(.32,.72,0,1);transform:rotate(45deg)translate(-1px,-1px)}.drill[open]>summary:after{transform:rotate(-135deg)translate(-2px,-2px)}@media (prefers-reduced-motion:reduce){.drill>summary:after{transition:none}}.icon-btn{border:1px solid var(--border);background:var(--surface);border-radius:var(--r-pill);flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.segmented{background:var(--surface);border-radius:var(--r-pill);flex-shrink:0;gap:4px;padding:4px;display:flex}.segmented button{border-radius:var(--r-pill);color:var(--muted);font-family:var(--display);background:0 0;border:0;flex-grow:1;padding:13px;font-size:14px;font-weight:800}.segmented button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}.amount-display{flex-shrink:0;padding:12px 0 4px}.amount-display .figure{font-family:var(--display);letter-spacing:-.045em;font-variant-numeric:tabular-nums;align-items:baseline;gap:5px;font-weight:800;line-height:.9;display:flex}.amount-display .sign{font-family:var(--body);letter-spacing:0;color:var(--muted);font-size:28px;font-weight:400}.amount-display .whole{font-size:68px}.amount-display .cents{color:var(--dim);font-size:36px}.field label,.field .label{color:var(--muted);margin-bottom:7px;font-size:13px;display:block}.field input{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-sm);width:100%;min-height:48px;font-family:var(--body);color:var(--text);padding:13px 16px;font-size:15px}.field input::placeholder{color:var(--dim)}.chips{flex-wrap:wrap;flex-shrink:0;gap:8px;display:flex}.chips button{border:1px solid var(--border);color:var(--muted);border-radius:var(--r-pill);background:0 0;min-height:44px;padding:11px 16px;font-size:13px;font-weight:500}.chips button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.keypad{flex-grow:1;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(56px,1fr);gap:8px;min-height:0;display:grid}.keypad button{background:var(--surface);color:var(--text);border-radius:var(--r-md);font-family:var(--display);border:0;justify-content:center;align-items:center;min-height:56px;font-size:24px;font-weight:800;display:flex}.keypad button:active{background:var(--surface-2)}.error{color:#ff8f6b;border-radius:var(--r-sm);background:#2e1a16;flex-shrink:0;padding:12px 14px;font-size:13px}.notice{background:var(--surface);border:1px solid var(--border);color:var(--muted);border-radius:var(--r-sm);flex-shrink:0;padding:12px 14px;font-size:13px;line-height:1.5}.notice strong{color:var(--text)}.balances{flex-shrink:0;gap:8px;padding-bottom:2px;display:flex;overflow-x:auto}.balances>*{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);text-align:left;flex:none;min-width:118px;padding:12px 14px}.balances .kind{color:var(--muted);align-items:center;gap:6px;font-size:11px;display:flex}.balances .kind:before{content:"";background:var(--tint,var(--muted));border-radius:50%;width:7px;height:7px}.balances .who{margin:4px 0 2px;font-size:13px;font-weight:500}.balances .bal{font-family:var(--display);font-variant-numeric:tabular-nums;font-size:17px;font-weight:800}.balances .bal[data-negative=true]{color:#ff8f6b}.group-head{align-items:baseline;gap:8px;margin:16px 0 10px;font-size:13px;display:flex}.group-head:first-child{margin-top:0}.group-head .title{font-family:var(--display);color:var(--text);font-size:14px;font-weight:800}.group-head .target{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums;flex-grow:1}.group-head .target b{color:var(--text);font-weight:500}.stack{flex-direction:column;flex-shrink:0;gap:14px;display:flex}.field select,.field textarea{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-sm);width:100%;min-height:48px;font-family:var(--body);color:var(--text);padding:13px 16px;font-size:15px}.field .hint{color:var(--muted);margin-top:6px;font-size:12px;line-height:1.45}.ghost{border:1px solid var(--border);width:100%;color:var(--text);border-radius:var(--r-pill);background:0 0;min-height:48px;padding:15px;font-size:14px;font-weight:500}.ghost[data-danger=true]{color:#ff8f6b;border-color:#4a2a22}.linkish{color:var(--accent);text-underline-offset:3px;background:0 0;border:0;min-height:44px;padding:0;font-size:13px;text-decoration:underline}.tabs{flex-shrink:0;gap:6px;padding-bottom:2px;display:flex;overflow-x:auto}.tabs button{border:1px solid var(--border);color:var(--muted);border-radius:var(--r-pill);background:0 0;flex:none;min-height:44px;padding:10px 15px;font-size:13px;font-weight:500}.tabs button[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.panel{flex-direction:column;flex-grow:1;gap:12px;min-height:0;padding-bottom:8px;display:flex;overflow-y:auto}.edit-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:10px;padding:12px 14px;display:flex}.edit-row .grow{flex:100%;min-width:0}.edit-row:not(:has(select)) .grow{flex:auto}.edit-row select{flex:auto;min-width:0}.edit-row .name{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;overflow:hidden}.edit-row .sub{color:var(--muted);font-size:12px}.edit-row input[type=number],.edit-row input[type=text]{background:var(--ground);border:1px solid var(--border);border-radius:var(--r-sm);width:104px;min-height:44px;font-family:var(--body);color:var(--text);text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;padding:10px 12px;font-size:14px}.edit-row select{background:var(--ground);border:1px solid var(--border);border-radius:var(--r-sm);min-height:44px;font-family:var(--body);color:var(--text);flex-shrink:0;padding:10px 12px;font-size:13px}.icon-ghost{border:1px solid var(--border);border-radius:var(--r-pill);width:44px;height:44px;color:var(--muted);background:0 0;flex-shrink:0;font-size:18px;line-height:1}.guide{color:var(--muted);font-size:14px;line-height:1.6}.guide h3{font-family:var(--display);color:var(--text);margin:20px 0 8px;font-size:16px;font-weight:800}.guide h3:first-child{margin-top:0}.guide p{margin:0 0 10px}.guide ol,.guide ul{margin:0 0 10px;padding-left:20px}.guide li{margin-bottom:6px}.guide code{background:var(--surface);border:1px solid var(--border);color:var(--text);word-break:break-all;border-radius:6px;padding:1px 5px;font-size:12.5px}.guide table{border-collapse:collapse;width:100%;margin-bottom:10px;font-size:13px}.guide th,.guide td{text-align:left;border-bottom:1px solid var(--border);padding:8px 0}.guide th{color:var(--text);font-weight:500}.guide td:last-child,.guide th:last-child{text-align:right;font-variant-numeric:tabular-nums}.script-block{border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);flex-shrink:0;overflow:hidden}.script-head{border-bottom:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding:10px 10px 10px 16px;font-size:13px;font-weight:500;display:flex}.script-block pre{max-height:240px;color:var(--text);white-space:pre;-webkit-overflow-scrolling:touch;margin:0;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;line-height:1.55;overflow:auto}.auth{justify-content:center;gap:22px}.auth .brand{flex-shrink:0;align-items:center;gap:12px;display:flex}.auth .brand img{border-radius:12px;width:46px;height:46px}.auth h1{font-family:var(--display);margin:0;font-size:30px;font-weight:800;line-height:1.05}.auth .lede{color:var(--muted);margin:0;font-size:14px;line-height:1.55}.auth .switcher{text-align:center;color:var(--muted);font-size:13px}
