:root{color-scheme:light;--ink:#182c27;--muted:#7a8b84;--green:#17684c;--deep:#0d513c;--soft:#eaf3ee;--line:#e8eee9;--paper:#fff;--background:#f5f7f5;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}html{min-height:100%;background:var(--background)}body{min-width:320px;margin:0;color:var(--ink);background:var(--background)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #91d7bd;outline-offset:3px}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}
.app-shell{width:100%;max-width:520px;padding:28px 21px 155px;margin:0 auto;min-height:100dvh}.site-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:29px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:48px;height:48px;flex:none;border-radius:15px;background:#e0f0e7;color:var(--green);display:grid;place-items:center}.brand-mark svg{width:28px;height:28px}.brand h1{margin:0;font-size:23px;font-weight:780;letter-spacing:-.85px;line-height:1.3}.brand p{margin:2px 0 0;font-size:12px;letter-spacing:.02px;color:var(--muted)}.icon-button,.month-arrow,.close-button{border:1px solid var(--line);background:#fff;color:#426153;display:grid;place-items:center;flex:none}.icon-button{height:45px;width:45px;border-radius:15px}.icon-button svg{height:21px;width:21px}
.total-card{isolation:isolate;overflow:hidden;position:relative;border-radius:26px;min-height:216px;padding:26px 27px 22px;color:white;background:linear-gradient(125deg,#23775a 0%,#10583f 56%,#08412f 100%);box-shadow:0 16px 34px rgba(23,98,71,.15)}.card-decoration{position:absolute;border:1px solid rgba(255,255,255,.1);border-radius:50%;pointer-events:none;z-index:-1}.card-decoration-one{width:260px;height:260px;top:-120px;right:-110px}.card-decoration-two{width:220px;height:220px;top:-86px;right:-58px}.card-top,.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.4px;color:#c5edda}.card-chart{display:grid;place-items:center;width:32px;height:32px;background:rgba(255,255,255,.12);border-radius:12px}.card-chart svg{width:18px;height:18px}.total-value{font-size:clamp(38px,9vw,53px);font-weight:780;letter-spacing:-1.8px;margin:14px 0 20px;line-height:1.15;white-space:nowrap;font-variant-numeric:tabular-nums}.card-divider{height:1px;background:rgba(255,255,255,.19)}.card-bottom{margin-top:18px;font-size:13px;color:#e3f5ea}.card-bottom span:last-child{border-radius:100px;padding:7px 11px;background:rgba(255,255,255,.13);white-space:nowrap;font-weight:600}
.month-nav{display:flex;align-items:center;justify-content:space-between;margin:30px 0 8px;gap:12px}.month-arrow{height:42px;width:42px;border-radius:13px}.month-arrow svg{height:20px;width:20px}.month-heading{text-align:center}.month-heading-label{font-size:10px;font-weight:780;letter-spacing:1.4px;color:#86968c}.month-heading h2{margin:5px 0 0;font-size:21px;font-weight:760;letter-spacing:-.6px}.return-current{display:block;border:0;background:transparent;color:var(--green);font-size:12px;font-weight:650;padding:7px 12px;margin:0 auto 4px}
.purchases-section{margin-top:31px}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:15px}.section-heading h2{margin:0;font-size:18px;font-weight:740;letter-spacing:-.45px}.count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 8px;border-radius:20px;background:#e6efe9;color:var(--green);font-size:12px;font-weight:800}.purchase-list{border-radius:20px;overflow:hidden;background:var(--paper);border:1px solid #edf0ec}.purchase-item{padding:16px 15px;display:flex;align-items:center;gap:12px;min-height:80px}.purchase-item+.purchase-item{border-top:1px solid #edf0ec}.market-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;flex:none;background:#eaf4ee;color:#317354}.market-icon svg{width:21px;height:21px}.market-icon.alt{background:#f3efe7;color:#88754e}.market-text{min-width:0;flex:1}.market-name{font-size:15px;font-weight:720;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.market-date{margin-top:5px;font-size:12px;color:var(--muted)}.market-amount{font-size:16px;white-space:nowrap;font-weight:760;font-variant-numeric:tabular-nums;letter-spacing:-.25px}.edit-button{width:28px;height:34px;border:0;background:transparent;color:#9aa9a1;display:grid;place-items:center;padding:0;flex:none}.edit-button svg{height:17px;width:17px}.empty-state{padding:40px 20px 44px;text-align:center}.empty-icon{height:74px;width:74px;border-radius:23px;background:#f0f6f1;margin:0 auto 17px;display:grid;place-items:center;color:#7caa91}.empty-icon svg{width:37px;height:37px}.empty-state h3{font-size:17px;letter-spacing:-.4px;margin:0 0 7px}.empty-state p{font-size:13px;max-width:250px;line-height:1.6;margin:0 auto;color:var(--muted)}.privacy-note{margin:30px 0 0;display:flex;align-items:center;justify-content:center;gap:7px;text-align:center;color:#91a099;font-size:11px}.privacy-note svg{width:14px;height:14px;flex:none}
.bottom-action{position:fixed;z-index:5;bottom:0;left:0;right:0;padding:16px 20px calc(16px + env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgba(245,247,245,.64),#f5f7f5 26%);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.bottom-inner{max-width:480px;margin:auto}.primary-button{display:flex;justify-content:center;align-items:center;gap:11px;width:100%;min-height:55px;background:var(--green);border:1px solid var(--green);border-radius:16px;color:white;font-weight:730;font-size:15px;box-shadow:0 9px 18px rgba(24,98,72,.13)}.primary-button svg{width:20px;height:20px}.primary-button:active,.month-arrow:active,.icon-button:active{transform:scale(.98)}
.sheet-dialog{border:0;padding:0;background:#fff;border-radius:25px;width:calc(100% - 30px);max-width:470px;max-height:calc(100dvh - 32px);overflow:auto;color:var(--ink);box-shadow:0 20px 60px rgba(11,45,31,.22)}.sheet-dialog::backdrop{background:rgba(8,35,24,.48);backdrop-filter:blur(2px)}.sheet-dialog form,.sheet-dialog#backupDialog{padding:26px}.sheet-handle{display:none}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:25px}.dialog-kicker{color:var(--green);font-size:10px;font-weight:800;letter-spacing:1.3px;margin:0 0 6px}.dialog-header h2{font-size:25px;letter-spacing:-.8px;margin:0}.close-button{height:36px;width:36px;border-radius:12px}.close-button svg{width:17px;height:17px}.form-fields{display:flex;flex-direction:column;gap:9px}.form-fields>label{font-size:13px;font-weight:710;margin-top:10px}.form-fields>label:first-child{margin-top:0}.form-fields>input,.amount-field{height:52px;width:100%;border:1px solid #dce7df;background:#f9fbf9;border-radius:13px;font-size:16px;color:var(--ink)}.form-fields>input{padding:0 15px;-webkit-appearance:none;appearance:none}.form-fields input::placeholder{color:#a3b0a9}.amount-field{display:flex;align-items:center;gap:9px;padding:0 16px}.amount-field span{font-weight:750;color:var(--green);font-size:21px}.amount-field input{background:transparent;border:none;outline:none!important;min-width:0;flex:1;height:100%;font-size:19px}.form-error{font-size:12px;color:#ae322b;margin:4px 0 0}.form-actions{display:grid;grid-template-columns:.85fr 1.15fr;gap:10px;margin-top:29px}.secondary-button{border:1px solid #e2eae4;border-radius:14px;background:#f1f5f1;color:#335d49;font-weight:700;min-height:52px;padding:0 15px}.form-actions .primary-button{min-height:52px;font-size:14px;box-shadow:none}.delete-button{border:0;background:transparent;color:#b83d39;display:block;margin:21px auto 0;font-size:13px;font-weight:700;padding:8px}.backup-intro{font-size:14px;line-height:1.65;color:#667a6d;margin:-3px 0 20px}.backup-option{width:100%;display:flex;align-items:center;text-align:left;gap:13px;padding:14px 0;border:0;border-bottom:1px solid var(--line);background:transparent}.backup-icon{display:grid;place-items:center;background:#eaf3ec;color:#27724e;width:44px;height:44px;border-radius:14px;flex:none}.backup-icon svg{width:22px;height:22px}.backup-option span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:4px}.backup-option strong{font-size:14px;color:var(--ink)}.backup-option small{font-size:12px;color:var(--muted)}.backup-chevron{height:18px;width:18px;color:#9bab9e}.backup-message{font-size:12px;color:var(--green);line-height:1.6}.backup-done{width:100%;margin-top:24px}.toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:#223a2d;color:white;border-radius:14px;padding:13px 18px;box-shadow:0 9px 24px rgba(0,0,0,.19);z-index:20;font-weight:600;font-size:13px;text-align:center;max-width:calc(100% - 36px);min-width:190px}
@media(max-width:540px){.app-shell{padding-top:calc(26px + env(safe-area-inset-top))}.sheet-dialog{max-width:100%;width:100%;max-height:calc(100dvh - 20px);margin:auto 0 0;border-radius:26px 26px 0 0;position:fixed;bottom:0;top:auto}.sheet-dialog form,.sheet-dialog#backupDialog{padding:9px 23px calc(22px + env(safe-area-inset-bottom))}.sheet-handle{display:block;width:38px;height:5px;border-radius:20px;background:#dfe8e1;margin:0 auto 22px}.sheet-dialog::backdrop{background:rgba(7,35,24,.47)}}
@media(max-width:360px){.app-shell{padding-left:15px;padding-right:15px}.total-card{padding:23px 19px}.brand h1{font-size:21px}.market-name{font-size:14px}.purchase-item{gap:9px;padding:13px 10px}.market-icon{width:38px;height:38px}.market-amount{font-size:14px}}
@media(prefers-reduced-motion:no-preference){.toast{animation:rise .2s ease-out}@keyframes rise{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}}