
:root{--ink:#222924;--muted:#858b85;--bg:#f7f6f3;--card:#fff;--line:#ecece8;--green:#23483b;--lime:#d7edbd;--amber:#a76c31}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN',sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:active{opacity:.75}.app{max-width:600px;margin:auto;min-height:100dvh;padding:0 20px calc(104px + env(safe-area-inset-bottom))}.top{display:flex;align-items:center;justify-content:space-between;padding:28px 0 16px}.brand{font-size:30px;letter-spacing:-1.8px;font-weight:800}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:700;color:var(--muted);text-transform:uppercase}.icon-btn{width:42px;height:42px;border:1px solid var(--line);background:white;border-radius:50%;font-size:20px}.view{display:none}.view.active{display:block}.page-title{font-size:26px;letter-spacing:-.8px;margin:6px 0 18px}.card{background:var(--card);border-radius:21px;padding:20px;margin:12px 0;border:1px solid #efefec}.dark{background:#263b32;color:white;border:0}.dark .eyebrow{color:#b9c9bd}.number{font-size:38px;font-weight:760;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;margin:12px 0 6px;line-height:1.2}.caption{font-size:12px;color:var(--muted);line-height:1.65}.dark .caption{color:#c6d4c8}.progress{height:7px;background:#54665c;border-radius:10px;overflow:hidden;margin:18px 0 12px}.progress>div{height:100%;background:var(--lime);width:0;transition:width .3s}.pill{border-radius:30px;padding:6px 10px;font-size:11px;font-weight:700;background:#edf3e9;color:#365f3c;display:inline-block}.pill.warn{background:#fff1df;color:#9b6429}.pill.bad{background:#fce9e6;color:#a83f36}.dark .pill{background:#42584a;color:#e0efdf}.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric{background:white;border:1px solid var(--line);border-radius:17px;padding:16px;min-width:0}.metric .value{font-size:21px;font-weight:750;letter-spacing:-.6px;margin:9px 0 4px;overflow-wrap:anywhere}.section-head{display:flex;align-items:center;justify-content:space-between;margin:25px 0 12px}.section-head h2{font-size:17px;letter-spacing:-.3px;margin:0}.link-btn{border:0;background:none;color:#54705b;font-size:12px;font-weight:700;padding:7px}.item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.item:last-child{border:0}.item .name{font-weight:650;overflow-wrap:anywhere}.item .sub{color:var(--muted);font-size:11px;margin-top:5px}.item .amt{font-weight:730;font-variant-numeric:tabular-nums;white-space:nowrap}.positive{color:#287752}.negative{color:#bc5548}.chip{border-radius:8px;padding:6px 9px;background:#f0f2ed;font-size:11px}.field{display:block;font-size:12px;color:#657066;font-weight:650;margin:13px 0}.field input,.field select{display:block;width:100%;border:1px solid #e2e5df;border-radius:12px;padding:13px;background:#fbfcf9;margin-top:7px;color:var(--ink);min-width:0;font-size:16px}.field input[type=file]{font-size:12px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.primary{background:var(--green);color:white;border:0;border-radius:13px;padding:14px 18px;font-weight:700;width:100%;margin:8px 0}.secondary{background:#f0f3ed;color:#315442;border:0;border-radius:13px;padding:13px;font-weight:700}.wide{width:100%}.status{font-size:12px;color:#56735d;line-height:1.6}.tabs{position:fixed;bottom:0;left:0;right:0;z-index:10;background:rgba(255,255,255,.97);border-top:1px solid #e7e9e4;display:flex;justify-content:space-around;padding:12px max(12px,calc((100vw - 600px)/2)) calc(9px + env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.tab{border:0;background:none;color:#949b95;min-width:68px;display:flex;align-items:center;flex-direction:column;gap:5px;font-size:10px;font-weight:700}.tab .sym{font-size:21px;line-height:1.2}.tab.active{color:#254f3d}.subtabs{display:flex;gap:8px;overflow:auto;margin:8px 0 16px}.subtab{background:#ebeee9;border:0;border-radius:24px;padding:10px 16px;color:#727a72;white-space:nowrap;font-size:12px;font-weight:700}.subtab.active{background:#263b32;color:white}.hidden{display:none!important}.empty{text-align:center;padding:30px 12px;color:#90958d;font-size:13px;line-height:1.8}.transaction select{max-width:118px;width:100%;background:#f3f4f0;border:0;border-radius:9px;padding:9px 6px;margin-top:8px;font-size:12px}.transaction .left{min-width:0;flex:1}.transaction .right{text-align:right;min-width:115px}.list-card{padding:5px 18px}.note{background:#f0f1eb;border-radius:14px;padding:14px;font-size:12px;color:#6b746b;line-height:1.8}.spark{height:95px;width:100%;display:block}.setting-block{border-top:1px solid var(--line);margin-top:20px;padding-top:14px}.mini{font-size:11px;color:var(--muted)}.section-lead{line-height:1.7;color:#7e857e;font-size:13px}.filter{border:0;background:#ecf0e9;border-radius:12px;padding:10px;max-width:140px}.summarybox{background:#f0f4ed;padding:15px;border-radius:14px;line-height:1.8}.error{color:#b54d40}.asset-tag{background:#edf0e8;border-radius:9px;padding:9px 11px;font-size:12px}.footer-note{text-align:center;color:#a3a9a0;font-size:10px;padding:22px 0}
.edit-switch{display:flex;justify-content:flex-end;margin:12px 0}.edit-switch button{border:0;background:#e9eee8;border-radius:14px;padding:12px 16px;font-weight:700;color:#244333}.edit-switch button.active{background:#244333;color:white}.choice-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}.choice-row button{border:1px solid #dfe4dc;background:#f4f6f2;border-radius:11px;padding:12px 2px;font-size:13px;font-weight:650;color:#3c4940}.choice-row button.selected{background:#294d3a;border-color:#294d3a;color:#fff}.choice-row button.saved{opacity:.6}.edit-transaction{display:block!important;padding:17px 0!important}.edit-transaction .topline{display:flex;justify-content:space-between;gap:8px}.edit-transaction .sub{margin-top:5px}.save-dock{position:sticky;bottom:calc(75px + env(safe-area-inset-bottom));background:white;border:1px solid #dfe4dc;border-radius:17px;padding:12px;margin:12px 0;box-shadow:0 6px 22px #0002;z-index:8}.save-dock button{background:#294d3a;color:#fff;border:0;border-radius:11px;padding:14px;width:100%;font-weight:700}.save-dock button:disabled{opacity:.4} 
/* v0.15: app-first flow and non-numeric home health */
:root{--health-bg:#354b42;--health-glow:#b9d8ae}
.top-actions{display:flex;align-items:center;gap:10px}.top-actions .icon-btn:first-child{background:#294b3b;color:#fff;font-size:28px;line-height:1;border:0}.dot{color:#84ad7f}.app{padding-bottom:calc(108px + env(safe-area-inset-bottom))}.homepage-note{margin:18px 4px}.tight{margin:4px 8px 18px}.mini-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mini-summary strong{font-size:24px;display:block;margin-top:6px}.health-card{height:230px;overflow:hidden;position:relative;background:var(--health-bg);color:#e8f2e8;border:none;transition:background-color .5s;margin-top:6px}.health-card .eyebrow{position:relative;z-index:1;color:#e6e9dd;letter-spacing:.14em}.health-card.tone-neutral{--health-bg:#4b5652;--health-glow:#a6b5b2}.health-card.tone-safe{--health-bg:#2b5846;--health-glow:#bbd99e}.health-card.tone-caution{--health-bg:#856c43;--health-glow:#f0d18b}.health-card.tone-risk{--health-bg:#905b53;--health-glow:#f3b89f}.health-art{position:absolute;inset:0;overflow:hidden;pointer-events:none}.orbit{position:absolute;border:1px solid color-mix(in srgb,var(--health-glow) 42%,transparent);border-radius:50%;transition:border-color .5s}.orbit1{width:260px;height:260px;top:-68px;right:-54px}.orbit2{width:196px;height:196px;top:-34px;right:-20px}.orbit3{width:116px;height:116px;top:7px;right:20px}.center-light{width:64px;height:64px;position:absolute;top:39px;right:45px;border-radius:50%;background:radial-gradient(circle at 40% 40%,var(--health-glow),transparent 72%);opacity:.8;filter:blur(2px)}.health-footer{position:absolute;left:20px;right:20px;bottom:19px;display:flex;justify-content:space-between;align-items:center;gap:14px}.health-bars{height:38px;display:flex;gap:5px;align-items:end}.health-bars span{width:8px;border-radius:4px;background:color-mix(in srgb,var(--health-glow) 84%,white);height:28px}.health-bars span:nth-child(3n){height:18px}.health-bars span:nth-child(4n){height:35px}.health-bars span:nth-child(5n){height:12px}.health-date{color:#e6e9dd;font-size:11px;opacity:.85}.quick-row,.action-row{display:flex;gap:10px}.quick-row .quick{flex:1;background:#e7ede3;border:none;border-radius:15px;padding:14px 4px;color:#2b5543;font-size:12px;font-weight:700}.quick-row .quick span{font-size:17px;margin-right:4px}.action-row{margin:14px 0}.action-row button{flex:1;font-size:12px}.event-date{font-size:10px;color:var(--muted);margin:6px 0}.event-name{font-weight:650}.event-amount{font-weight:730;white-space:nowrap}.event-line{cursor:pointer}.event-line .sub{font-size:11px;color:var(--muted);margin-top:4px}.upcoming-unknown{color:#929d95;font-size:12px;font-weight:600}.muted-tag{display:inline-block;font-size:10px;color:#78867c;background:#f0f2ef;border-radius:7px;padding:3px 6px;margin-left:4px}.warn-chip{color:#9f6228;background:#fff0db}.summary-note{font-size:11px;color:#7b807b}.asset-section{padding:13px 0}.asset-name{font-weight:700}.asset-date{font-size:11px;color:#8b918c;margin-top:4px}.asset-balance{font-weight:760;font-size:17px}.account-missing{color:#999;font-size:13px}.asset-mode{font-size:10px;color:#8b918c}.flow-details{font-size:10px;color:#9a9e9a}.transaction{cursor:pointer}.transaction .name{line-height:1.45}.transaction .right select{pointer-events:auto}.transaction .right{min-width:115px}.edit-transaction .choice-row{grid-template-columns:repeat(2,minmax(0,1fr))}.edit-transaction .choice-row button{font-size:12px}.choice-row button[data-choice="card_prepay"]{grid-column:span 2}.save-dock{bottom:calc(80px + env(safe-area-inset-bottom))}.big-note{font-size:24px;line-height:1.35;font-weight:770;margin:18px 0;letter-spacing:-.5px}.status{min-height:18px}.modal{position:fixed;z-index:30;inset:0;background:rgba(22,32,26,.46);display:flex;justify-content:center;align-items:flex-end}.modal.hidden{display:none!important}.modal-sheet{background:#fbfcfa;width:100%;max-width:600px;border-radius:24px 24px 0 0;max-height:94dvh;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -5px 32px #0002}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px 4px}.modal-head h2{font-size:20px;margin:0}.modal-close{width:39px;height:39px;border:0;border-radius:50%;background:#eaece8;font-size:25px;color:#4e5952}.modal-scroll{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 20px 20px;overscroll-behavior:contain}.editor-form .field{margin:12px 0}.editor-form .note{margin-top:15px}.editor-form .primary{margin-top:14px}.editor-form input,.editor-form select{font-size:16px}.danger-btn{background:none;color:#a54d43;border:0;width:100%;padding:14px;margin-top:9px}.toast{position:fixed;bottom:calc(86px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:35;background:#263b32;color:#fff;padding:12px 18px;border-radius:20px;box-shadow:0 4px 12px #0003;font-size:12px;max-width:86%;text-align:center}.inline-button{border:0;background:#edf0eb;border-radius:9px;padding:9px 12px;font-size:11px;color:#3d5a49;font-weight:750}.money-positive{color:#35805e}.money-negative{color:#a85a49}.edit-transaction .name{font-weight:750}.edit-transaction .amt{white-space:nowrap}.choice-row button.selected{background:#294d3a;color:white}.empty{padding:18px 10px}.note{margin:12px 0}.section-head h2{font-size:16px}.modal input:focus,.modal select:focus{outline:2px solid #a0bfa1;outline-offset:1px}
@media(min-width:720px){.modal{align-items:center}.modal-sheet{border-radius:22px;max-height:85vh}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
.history-head{font-size:11px;font-weight:700;color:#88928a;border-top:1px solid var(--line);padding:15px 0 6px;margin-top:5px}
