:root{--bg: #F3F5F4;--card: #fff;--ink: #10201B;--muted: #5B6B65;--line: #EEF1F0;--border: #D5DCD9;--green: #0B6B4F;--green-dark: #08513C;--green-soft: #E3F3EB;--green-light: #CFE8DD;--orange: #B4410A;--orange-soft: #FCEBDD;--chip: #E3E8E6;--safe-b: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,sans-serif}body{overscroll-behavior-y:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,.display{font-family:Space Grotesk,Inter,sans-serif;margin:0}.app{max-width:480px;margin:0 auto;min-height:100dvh;position:relative}.screen{padding:24px 20px calc(110px + var(--safe-b));display:flex;flex-direction:column;gap:16px}.screen.plain{padding-bottom:calc(28px + var(--safe-b));min-height:100dvh}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.col{display:flex;flex-direction:column;gap:2px;min-width:0}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:12px}.title{font-family:Space Grotesk,sans-serif;font-size:22px;font-weight:700}.section{font-family:Space Grotesk,sans-serif;font-size:17px;font-weight:600}.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-btn{width:44px;height:44px;border-radius:14px;background:var(--card);border:0;display:grid;place-items:center;flex:none}.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.avatar{width:42px;height:42px;border-radius:21px;display:grid;place-items:center;font-weight:700;font-size:14px;flex:none}.av-green{background:var(--green-soft);color:var(--green)}.av-orange{background:var(--orange-soft);color:var(--orange)}.av-ink{background:var(--line);color:var(--ink)}.c-green{color:var(--green)}.c-orange{color:var(--orange)}.c-ink{color:var(--ink)}.hero{background:var(--green);color:#fff;border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:14px}.hero .label{font-size:13px;color:var(--green-light)}.hero .big{font-family:Space Grotesk,sans-serif;font-size:36px;font-weight:700;letter-spacing:-.5px}.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:8px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.stat{background:#fff;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px;color:var(--ink);text-align:left;border:0}.stat .k{font-size:12px;font-weight:600}.stat .v{font-size:18px;font-weight:700}.stat.soft-green{background:var(--green-soft)}.stat.soft-orange{background:var(--orange-soft)}.quick{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;font-weight:500;background:none;border:0;padding:0}.quick span{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#fff}.quick .g{background:var(--green-soft);color:var(--green)}.quick .o{background:var(--orange-soft);color:var(--orange)}.card{background:var(--card);border-radius:18px;padding:2px 14px;display:flex;flex-direction:column}.item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);background:none;border-left:0;border-right:0;border-top:0;width:100%;text-align:left}.item:last-child{border-bottom:0}.amt{font-size:15px;font-weight:700;white-space:nowrap}.empty{text-align:center;padding:28px 12px;color:var(--muted);font-size:14px;line-height:1.5}.btn{height:54px;border-radius:16px;border:0;background:var(--green);color:#fff;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.btn:active{background:var(--green-dark)}.btn:disabled{opacity:.55}.btn.light{background:#fff;color:var(--ink)}.btn.dark{background:var(--ink)}.btn.danger{background:#fff;color:#b42318}.btn.sm{height:46px;font-size:13px;border-radius:14px;gap:6px}.seg{display:grid;background:var(--chip);border-radius:14px;padding:4px;gap:4px}.seg button{height:44px;border:0;border-radius:11px;background:transparent;font-weight:600;font-size:13px;color:var(--muted)}.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px #10201b14}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--border);background:#fff;font-size:13px;font-weight:500}.chip.on{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:600}.chip.on-green{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;position:relative}.input{height:50px;border:1px solid var(--border);border-radius:14px;padding:0 14px;background:#fff;font-size:15px;font-weight:400;width:100%;min-width:0}.input:focus{outline:2px solid var(--green);outline-offset:-1px;border-color:transparent}.amount-box{background:#fff;border-radius:20px;padding:16px;display:flex;flex-direction:column;align-items:center;gap:6px}.amount-input{border:0;outline:0;text-align:center;font-family:Space Grotesk,sans-serif;font-size:40px;font-weight:700;width:100%;background:transparent}.pill{font-size:12px;font-weight:600;padding:4px 10px;border-radius:20px}.suggest{position:absolute;top:76px;left:0;right:0;background:#fff;border-radius:14px;box-shadow:0 10px 30px #10201b26;z-index:20;overflow:hidden}.suggest button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;background:#fff;text-align:left;font-weight:500}.suggest button+button{border-top:1px solid var(--line)}.nav{position:fixed;left:50%;transform:translate(-50%);bottom:0;width:100%;max-width:480px;height:calc(74px + var(--safe-b));padding-bottom:var(--safe-b);background:#fff;border-top:1px solid #E3E8E6;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;z-index:30}.nav a{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:500;color:var(--muted)}.nav a.on{color:var(--green)}.nav .fab{justify-self:center;width:56px;height:56px;border-radius:28px;background:var(--green);color:#fff;display:grid;place-items:center;margin-top:-26px;box-shadow:0 6px 16px #0b6b4f59}.err{background:#feeceb;color:#b42318;border-radius:12px;padding:10px 12px;font-size:13px}.note{background:#fff;border-radius:16px;padding:14px;display:flex;gap:10px;font-size:13px;color:var(--muted);line-height:1.45}.banner{background:#fff6db;color:#6b4e00;font-size:12px;padding:8px 12px;border-radius:12px;line-height:1.4}.table-head,.table-row{display:grid;grid-template-columns:1fr 82px 82px;gap:6px;align-items:center}.table-head{padding:10px 0;border-bottom:1px solid var(--line);font-size:11px;font-weight:600;color:var(--muted)}.table-row{padding:11px 0;border-bottom:1px solid var(--line);background:none;border-left:0;border-right:0;border-top:0;text-align:left;width:100%}.right{text-align:right}.sheet-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#10201b66;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--bg);width:100%;max-width:480px;border-radius:22px 22px 0 0;padding:20px 20px calc(24px + var(--safe-b));display:flex;flex-direction:column;gap:12px}.radio{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;border:1.5px solid var(--border);background:#fff;text-align:left;width:100%}.radio.on{border-color:var(--green)}.radio .dot{width:20px;height:20px;border-radius:10px;border:2px solid var(--border);display:grid;place-items:center;flex:none}.radio.on .dot{border-color:var(--green)}.radio.on .dot:after{content:"";width:10px;height:10px;border-radius:5px;background:var(--green)}.loading{min-height:100dvh;display:grid;place-items:center;color:var(--muted)}.toast{position:fixed;left:50%;transform:translate(-50%);bottom:calc(96px + var(--safe-b));background:var(--ink);color:#fff;padding:10px 16px;border-radius:12px;font-size:14px;z-index:60}.person-actions{position:fixed;left:50%;transform:translate(-50%);bottom:0;width:100%;max-width:480px;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 16px calc(12px + var(--safe-b));background:#fff;border-top:1px solid #E3E8E6;z-index:30}.month-bar{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:14px;padding:4px}
