:root{color:#22231e;font-synthesis:none;--bg:#f7f3ef;--olive:#9eaf68;--dark:#536332;--pale:#eceedb;--muted:#686a60;--line:#e8e2da;background:#f7f3ef;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;font-weight:400}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:15px;min-height:48px;font-weight:600}button:disabled{cursor:default;opacity:.42}button:not(:disabled):active{transform:translateY(1px)}button:focus-visible,a:focus-visible{outline-offset:3px;outline:3px solid #536332}a{color:inherit;text-decoration:none}input,select,textarea{background:#fff;border:1px solid #dcded1;border-radius:13px;outline:none;width:100%;min-width:0;min-height:48px;padding:13px 14px;font-size:16px}input:focus,select:focus,textarea:focus{border-color:var(--dark);box-shadow:0 0 0 2px #9eaf6830}h1,h2,h3,p{margin:0}h1{letter-spacing:-1.1px;font-size:30px;line-height:1.2}h2{letter-spacing:-.7px;font-size:23px}h3{letter-spacing:-.4px;font-size:20px}small,.small{color:var(--muted);font-size:13px;line-height:1.5}svg{stroke-width:1.8px;flex-shrink:0}hr{border:0;border-top:1px solid var(--line);margin:27px 0}.app{max-width:620px;min-height:100dvh;padding:0 22px calc(108px + env(safe-area-inset-bottom));margin:0 auto}.topbar{justify-content:space-between;align-items:center;padding:25px 0 15px;display:flex}.brand{letter-spacing:-1px;align-items:center;gap:8px;font-size:25px;font-weight:750;display:flex}.brand-mark{background:var(--pale);color:var(--dark);border-radius:13px;justify-content:center;align-items:center;width:37px;height:37px;display:inline-flex;transform:rotate(-8deg)}.brand-mark svg{transform:rotate(8deg)}.icon{justify-content:center;align-items:center;width:48px;min-width:48px;padding:0;display:inline-flex}.topbar>.icon{background:#fff9;border-radius:50%}.daybar{justify-content:space-between;align-items:center;gap:10px;padding:12px 0 22px;display:flex}.day-picker{background:#fff;border-radius:24px;align-items:center;max-width:100%;height:45px;display:flex}.day-picker .icon{width:36px;min-width:36px}.date-label{white-space:nowrap;text-align:center;min-width:87px;font-size:14px;font-weight:600;position:relative}.date-label input{opacity:0;cursor:pointer;position:absolute;inset:0}.sync-status{color:var(--muted);text-align:left;align-items:center;gap:4px;max-width:110px;min-height:36px;padding:0;font-size:10px;font-weight:400;line-height:1.3;display:flex}.balance{padding:8px 0 17px}.eyebrow{letter-spacing:1.3px;text-transform:uppercase;color:var(--muted);font-size:12px;font-weight:600}.balance-row{justify-content:space-between;align-items:center;gap:14px;padding:10px 0 19px;display:flex}.balance h1{letter-spacing:-3px;font-variant-numeric:tabular-nums;font-size:clamp(43px,12vw,64px);font-weight:650}.expense-button{background:var(--pale);white-space:nowrap;border-radius:25px;justify-content:center;align-items:center;gap:8px;min-height:49px;padding:0 15px;font-size:13px;display:flex}.balance-stats{color:var(--muted);flex-wrap:wrap;gap:17px;font-size:13px;line-height:1.6;display:flex}.balance-stats span{align-items:center;gap:5px;display:flex}.balance-stats strong{color:#404337;font-weight:550}.dot{background:var(--olive);border-radius:50%;width:6px;height:6px;margin-right:1px;display:inline-block}.reset{color:#87897e;align-items:center;gap:5px;margin-top:12px;font-size:12px;display:flex}.section-title{justify-content:space-between;align-items:center;gap:12px;margin:17px 0 14px;display:flex}.section-title>.icon{color:var(--dark);background:#eeeddf;border-radius:50%;width:35px;min-width:35px;min-height:35px}.cards{flex-direction:column;gap:14px;display:flex}.activity-card{box-shadow:0 3px 12px #5c4c321;background:#fff;border-radius:24px;padding:17px 16px 16px;overflow:hidden}.activity-overview{align-items:center;gap:14px;margin-bottom:15px;display:flex}.art{object-fit:contain;display:block}.activity-overview>.art{background:#fbf6ee;border-radius:19px;width:87px;height:87px}.activity-copy{flex:1;min-width:0}.activity-copy h3{overflow-wrap:anywhere;margin-bottom:6px;font-size:18px;line-height:1.2}.activity-copy>p{color:var(--muted);font-size:13px}.activity-totals{justify-content:space-between;align-items:center;gap:5px;margin-top:11px;font-size:12px;display:flex}.activity-totals b{background:var(--pale);color:var(--dark);white-space:nowrap;border-radius:15px;padding:4px 8px;font-weight:650}.quantity-label{color:var(--muted);margin-bottom:7px;font-size:12px;display:block}.quantity-label span{opacity:.8}.quantity-controls{grid-template-columns:minmax(50px,.9fr) minmax(48px,1fr) minmax(48px,1fr) minmax(75px,1.4fr);gap:7px;display:grid}.quantity-controls input{text-align:center;border-color:#bfc5ac;padding:9px 3px;font-size:18px;font-weight:500}.quantity-controls .increment{background:var(--pale);color:var(--dark);letter-spacing:-.6px;padding:0 2px;font-size:17px}.primary{background:var(--olive);color:#202714;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:0 19px;line-height:1.2;display:inline-flex}.quantity-controls .primary{padding:0 6px;font-size:12px}.primary:disabled{color:#838777;opacity:1;background:#e5e7d7}.secondary{background:var(--pale);color:var(--dark);justify-content:center;align-items:center;gap:9px;padding:0 18px;display:inline-flex}.full{width:100%;margin-top:12px}.compact{padding:0 14px;font-size:14px}.add-activity{color:var(--dark);border:1px dashed #cbd0b8;justify-content:center;align-items:center;gap:8px;width:100%;min-height:49px;margin-top:17px;font-size:13px;display:flex}.bottom-nav{width:min(100%,620px);padding:10px 18px calc(12px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);z-index:5;background:#f7f3eff2;border-top:1px solid #e8e2da90;justify-content:space-around;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav button{color:var(--muted);flex-direction:column;flex:1;align-items:center;gap:6px;font-size:11px;font-weight:500;display:flex}.bottom-nav button.active{color:var(--dark);font-weight:650}.bottom-nav button.active svg{stroke-width:2.2px}.bottom-nav button.active:before{content:"";background:var(--olive);border-radius:2px;width:25px;height:2px;position:absolute;top:0}.empty{text-align:center;background:#fff;border-radius:25px;padding:20px 20px 28px}.empty>.art{width:160px;height:160px;margin:auto}.empty h2{margin:10px 0;font-size:22px}.empty p{color:var(--muted);max-width:330px;margin:0 auto 22px;font-size:14px;line-height:1.6}.count{background:var(--pale);color:var(--dark);border-radius:50%;padding:8px 12px;font-size:14px}.journal-summary{background:var(--pale);border-radius:22px;grid-template-columns:1fr 1fr;margin:23px 0;padding:23px 21px;display:grid}.journal-summary>div{flex-direction:column;gap:8px;display:flex}.journal-summary>div+div{border-left:1px solid #cfd4b9;padding-left:20px}.journal-summary strong{letter-spacing:-.7px;font-size:23px;font-weight:600}.segmented{background:#eae7e1;border-radius:16px;gap:3px;margin:17px 0;padding:4px;display:flex}.segmented button{min-height:40px;color:var(--muted);border-radius:12px;flex:1;font-size:13px}.segmented .selected{color:#22231e;background:#fff;box-shadow:0 1px 5px #00000005}.filter-chips{gap:5px;margin-bottom:13px;display:flex}.filter-chips button{min-height:35px;color:var(--muted);padding:0 12px;font-size:11px}.filter-chips .selected{background:var(--pale);color:var(--dark)}.journal-list{background:#fff;border-radius:24px;overflow:hidden}.journal-row{text-align:left;border-bottom:1px solid #f1eee9;border-radius:0;align-items:center;gap:10px;width:100%;min-height:84px;padding:20px 14px;display:flex}.journal-row:last-child{border:0}.journal-icon{background:var(--pale);width:38px;height:38px;color:var(--dark);border-radius:13px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.spent-icon{color:#987450;background:#f7eee6}.journal-copy{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.journal-copy strong{overflow-wrap:anywhere;font-size:14px;font-weight:550}.journal-copy small{font-size:11px}.journal-row>b{white-space:nowrap;font-size:14px;font-weight:600}.earned-text{color:var(--dark)}.journal-row>svg{color:#a4a49a}.journal-empty{color:var(--muted);background:0 0;padding-top:50px}.journal-empty>svg{margin:0 auto 10px}.manage-card{text-align:left;background:#fff;border-radius:23px;align-items:center;gap:16px;width:100%;padding:14px;display:flex}.manage-card>.art{background:#fbf6ee;border-radius:17px;width:70px;height:70px}.manage-card>span{flex-direction:column;flex:1;gap:7px;display:flex}.manage-card strong{font-size:17px}.manage-card small{font-size:12px}.muted{opacity:.6}.modal-open{overflow:hidden}dialog{background:var(--bg);width:min(100%,570px);max-width:100%;max-height:91dvh;color:inherit;border:0;border-radius:30px 30px 0 0;margin:0 auto;padding:0;position:fixed;inset:auto 0 0;box-shadow:0 -10px 80px #22231e12}dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#292c225c}.sheet{padding:13px 24px calc(30px + env(safe-area-inset-bottom));overflow:auto}.sheet:before{content:"";background:#d7d6cd;border-radius:4px;width:34px;height:4px;margin:0 auto 6px;display:block}.sheet-header{justify-content:space-between;align-items:center;gap:12px;margin:8px 0 21px;display:flex}.sheet-header h2{font-size:23px;line-height:1.2}.sheet-header .icon{background:#fff;border-radius:50%;width:38px;min-width:38px;min-height:38px}.sheet h3{align-items:center;gap:8px;margin:14px 0;font-size:18px;display:flex}.form{flex-direction:column;gap:19px;display:flex}.form>label,.form-row>label{color:var(--muted);flex-direction:column;gap:8px;font-size:13px;display:flex}.form input,.form select{color:#22231e}.form-row{grid-template-columns:1fr 1fr;gap:13px;display:grid}.form-row input{padding-left:10px;padding-right:8px}.money-input{align-items:center;gap:8px;display:flex}.money-input>span{overflow-wrap:anywhere;max-width:40%}.money-input>input{flex:1;min-width:0}.expense-amount{letter-spacing:-2px;border-bottom:1px solid var(--line);align-items:center;padding-bottom:5px;font-size:48px;display:flex}.expense-amount input{letter-spacing:-2px;min-width:0;box-shadow:none;background:0 0;border:0;padding-left:7px;font-size:48px;font-weight:550}.expense-amount>span{color:#9a9c8c;overflow-wrap:anywhere;max-width:40%}.expense-amount>.currency-text{letter-spacing:0;font-size:18px}.toggle-row{background:#fff;border-radius:18px;align-items:center;padding:16px;position:relative;flex-direction:row!important;gap:15px!important}.toggle-row>span:first-child{flex:1}.toggle-row strong{color:#22231e;margin-bottom:5px;font-size:15px;font-weight:550;display:block}.toggle-row small{font-size:12px;display:block}.toggle-row>input{opacity:0;z-index:1;cursor:pointer;width:48px;height:30px;position:absolute;right:16px}.toggle{background:#d7d9cd;border-radius:20px;flex-shrink:0;width:46px;height:28px;padding:3px}.toggle:after{content:"";background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .15s;display:block}.toggle-row>input:checked+.toggle{background:var(--olive)}.toggle-row>input:checked+.toggle:after{transform:translate(18px)}.toggle-row>input:focus-visible+.toggle{outline:3px solid var(--dark);outline-offset:3px}.projected{background:var(--pale);border-radius:17px;justify-content:space-between;align-items:center;gap:12px;padding:18px;font-size:13px;display:flex}.projected strong{font-size:24px;font-weight:550}.text-button{color:var(--dark);text-align:center;width:100%;font-size:13px;display:block}.danger-text{color:#8a5945;justify-content:center;align-items:center;gap:8px;font-size:14px;display:flex}.search{color:var(--muted);background:#fff;border-radius:15px;align-items:center;gap:10px;padding:0 13px;display:flex}.search input{background:0 0;border:0;padding-left:0}.custom-button{background:var(--pale);color:var(--dark);align-items:center;gap:11px;width:100%;margin:16px 0 20px;padding:15px;display:flex}.custom-button>svg:last-child{margin-left:auto}.catalog-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.template-card{text-align:left;background:#fff;border-radius:20px;flex-direction:column;align-items:flex-start;min-width:0;padding:12px;display:flex;position:relative}.template-card>.art{background:#fbf7f0;border-radius:14px;width:100%;height:115px;margin-bottom:12px}.template-card strong{max-width:100%;margin-bottom:5px;font-size:14px}.template-card small{font-size:11px}.template-plus{background:var(--pale);width:23px;height:23px;color:var(--dark);border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;bottom:12px;right:10px}.image-choice{text-align:left;background:#fff;border-radius:20px;align-items:center;gap:18px;padding:12px;display:flex}.image-choice>.art{background:#fbf7f0;border-radius:15px;width:95px;height:95px}.image-choice>span{color:var(--dark);align-items:center;gap:4px;font-size:13px;display:flex}.illustration-grid{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.illustration-grid>button{background:#fff;border:2px solid #0000;border-radius:18px;padding:5px;position:relative}.illustration-grid .art{aspect-ratio:1;width:100%}.illustration-grid .selected{border-color:var(--olive);background:var(--pale)}.illustration-grid svg{background:var(--olive);border-radius:50%;padding:2px;position:absolute;bottom:4px;right:4px}.preview-controls{text-align:center;grid-template-columns:1fr 1fr 1fr 1.4fr;gap:7px;font-size:12px;display:grid}.preview-controls>span,.preview-controls>b{background:var(--pale);color:var(--dark);border-radius:12px;padding:14px 3px}.preview-controls>b{background:var(--olive)}.error{color:#804e36;background:#f4e7dc;border-radius:13px;justify-content:space-between;gap:8px;padding:12px;font-size:13px;line-height:1.5;display:flex}.error>.icon{width:25px;min-width:25px;min-height:25px}.notice{background:var(--pale);color:var(--dark);text-align:left;border-radius:15px;justify-content:space-between;align-items:center;gap:12px;width:100%;margin:10px 0;padding:14px;font-size:13px;line-height:1.5;display:flex}.config-notice{overflow-wrap:anywhere;display:block}.toast{z-index:10;bottom:calc(95px + env(safe-area-inset-bottom));color:#fff;white-space:nowrap;background:#293021;border-radius:16px;align-items:center;gap:10px;min-height:48px;padding:6px 15px;font-size:13px;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 6px 26px #0002}.toast button{color:#d4e3aa;margin-left:10px;padding:0 3px;font-size:13px}.key-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:9px 0;font-size:14px;display:flex}.key-row small{margin-top:4px;font-size:12px;display:block}.recovery-codes{margin:16px 0}.recovery-codes textarea{white-space:pre;font-family:monospace;font-size:11px;overflow:auto}.conflict{border-bottom:1px solid var(--line);padding:12px 0}.conflict p{margin:10px 0;font-size:13px}.conflict pre{background:#fff;border-radius:10px;padding:10px;font-size:11px;overflow:auto}.conflict button{margin:7px 7px 0 0;font-size:12px}.welcome{max-width:440px;min-height:100dvh;margin:auto;padding:30px 27px}.welcome .brand{font-size:26px}.welcome-art{background:#eceedb;border-radius:140px 140px 40px 40px;width:260px;height:270px;margin:40px auto 20px;position:relative}.welcome-art>.art{width:100%;height:100%}.float-reward{color:var(--dark);background:#fff;border-radius:20px;padding:12px 19px;font-weight:650;position:absolute;bottom:38px;right:-15px;transform:rotate(-8deg);box-shadow:0 9px 30px #58623b0d}.welcome h1{letter-spacing:-1.8px;margin:15px 0;font-size:39px;line-height:1.1}.intro{color:var(--muted);margin:16px 0 25px;font-size:15px;line-height:1.65}.welcome .primary{min-height:54px;font-size:14px}.welcome .secondary{font-size:14px}.welcome .center{margin-top:15px}.center{text-align:center}.loading{height:100dvh;color:var(--dark);justify-content:center;align-items:center;gap:10px;font-size:24px;font-weight:600;display:flex}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width>=700px){body{background:#e9e7de}.app,.welcome{background:var(--bg);min-height:100dvh;box-shadow:0 0 80px #22231e05}.app{padding-left:35px;padding-right:35px}.balance h1{font-size:76px}.activity-overview>.art{width:100px;height:100px}.activity-copy h3{font-size:23px}.activity-copy>p,.quantity-controls .primary{font-size:15px}.quantity-controls .increment{font-size:19px}.quantity-label{font-size:13px}.activity-totals{font-size:14px}dialog{border-radius:30px;max-height:90dvh;bottom:5vh}.sheet{padding-bottom:28px}}@media (width<=360px){.app{padding-left:14px;padding-right:14px}.brand{font-size:23px}.expense-button{gap:5px;padding:0 11px;font-size:11px}.balance-row{gap:7px}.balance h1{font-size:45px}.activity-card{padding:14px 12px}.activity-overview{gap:10px}.activity-overview>.art{width:72px;height:72px}.activity-copy h3{font-size:16px}.activity-totals{font-size:11px}.activity-totals b{padding:4px 6px}.quantity-controls{gap:5px}.quantity-controls .increment{font-size:15px}.quantity-controls .primary{font-size:11px}.sheet{padding-left:17px;padding-right:17px}.form-row{gap:9px}.sync-status{max-width:95px;font-size:9px}.day-picker .icon{width:30px;min-width:30px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.period-zone{font-size:9px;font-weight:400;line-height:1.2;display:block}.balance h1{overflow-wrap:anywhere;min-width:0}.balance-row:has(h1.long-amount){flex-wrap:wrap}.other-balances{flex-wrap:wrap;gap:8px;margin:8px 0;display:flex}.other-balances:empty{display:none}.secondary-balance{max-width:100%;min-height:44px;color:inherit;background:#ffffff70;border:1px solid #d9dfce;border-radius:14px;align-items:center;gap:10px;padding:8px 12px;display:flex}.other-balances strong{overflow-wrap:anywhere;font-size:18px}.other-balances small{font-size:11px}.currency-setting{border-bottom:1px solid #e9e7e1;justify-content:space-between;align-items:center;gap:12px;display:flex}.currency-setting span{overflow-wrap:anywhere}.currency-setting .text-button{width:auto;min-height:44px;margin:0}.app-update{background:#edf1e5;border:1px solid #d5dfc6;border-radius:20px;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;padding:16px;display:flex}.app-update strong{font-size:14px}.app-update p{margin:4px 0 0;font-size:12px;line-height:1.45}.app-update button{flex-shrink:0;min-height:44px}
