:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,SF Pro Display,sans-serif;color:#172033;background:#f7f8fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#f7f8fa}button,input,select{font:inherit}button{cursor:pointer}input,select{width:100%;border:1px solid #dbe2ea;border-radius:12px;min-height:46px;padding:0 12px;background:#fff;color:#172033}.app{max-width:560px;margin:auto;min-height:100vh;background:#fff;padding:env(safe-area-inset-top) 18px calc(92px + env(safe-area-inset-bottom));box-shadow:0 0 40px #0000000a}main{padding-top:18px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}h1{font-size:28px;margin:2px 0 0}h2{font-size:17px;margin:22px 0 12px}.eyebrow,small{color:#718096;font-size:12px}.brand{font-size:26px;margin-bottom:32px}.login{max-width:440px;margin:12vh auto;padding:28px}.login h1{font-size:36px;line-height:1.05}.login p{color:#64748b;line-height:1.5}.login input{margin:14px 0}.center{height:100vh;display:grid;place-items:center;color:#64748b}.spinner{width:24px;height:24px;border:3px solid #dce3ec;border-top-color:#2563eb;border-radius:50%;animation:s 1s linear infinite}@keyframes s{to{transform:rotate(360deg)}}.primary{border:0;background:#2563eb;color:#fff;border-radius:13px;min-height:48px;padding:0 18px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px}.primary:disabled{opacity:.55}.secondary{border:1px solid #d9e1ea;background:#fff;border-radius:11px;min-height:40px;padding:0 14px;font-weight:650;color:#334155}.link{border:0;background:none;color:#2563eb;font-weight:700}.icon{width:44px;height:44px;border:0;background:#f2f5f8;border-radius:50%;display:grid;place-items:center}.add{width:100%;margin:12px 0}.card{border:1px solid #edf0f4;background:#fff;border-radius:18px;padding:16px;margin:12px 0;box-shadow:0 4px 18px #1f293708}.inner{background:#f8fafc;box-shadow:none}.chips{display:flex;gap:8px;overflow:auto;padding-bottom:3px}.chips span{background:#eef4ff;border:1px solid #dbe8ff;padding:9px 12px;border-radius:999px;white-space:nowrap;font-size:13px;font-weight:650}.metricGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:12px}.metricGrid>div{background:#f8fafc;padding:12px;border-radius:12px}.metricGrid b{display:block;font-size:18px;margin-top:4px}.balance{background:#eefbf5;border-color:#d8f5e7}.balanceRow{display:flex;justify-content:space-between;gap:10px;margin-top:8px}.balanceRow strong{color:#087f5b}.row,.rule{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #eef2f6}.list .row:last-child,.rule:last-child{border:0}.bubble{width:40px;height:40px;border-radius:12px;background:#f0f4ff;display:grid;place-items:center}.grow{flex:1;min-width:0}.grow b,.grow small,.right b,.right small{display:block}.right{text-align:right}.row small{margin-top:3px}.filters{display:grid;grid-template-columns:1fr auto;gap:8px}.barrow{display:grid;grid-template-columns:80px 1fr 90px;gap:8px;align-items:center;margin:12px 0;font-size:13px}.bar{height:8px;background:#edf2f7;border-radius:999px;overflow:hidden}.bar i{display:block;height:100%;background:#2563eb;border-radius:999px}.barrow b{text-align:right}.invite,.inputRow{display:grid;grid-template-columns:1fr auto;gap:8px;margin:12px 0}.smallInput{width:76px}.overlay{position:fixed;inset:0;background:#0f172a66;display:flex;align-items:flex-end;justify-content:center;z-index:20}.modal{background:#fff;width:min(560px,100%);max-height:92dvh;overflow:auto;border-radius:24px 24px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -18px 48px #0f172a1f}.modal header{margin-bottom:12px}.modal header h2{font-size:24px;margin:0}.modal label{display:block;color:#64748b;font-size:13px;font-weight:700;margin:0}.modal label input,.modal label select{display:block;color:#172033;font-weight:500}.expenseForm{display:flex;flex-direction:column;gap:14px}.cleanField{margin:0}.descriptionInput{height:60px!important;min-height:60px!important;margin-top:7px!important;border-radius:14px!important;font-size:17px!important;font-weight:600!important;padding:0 14px!important}.autoHint{display:inline-flex;margin-top:7px;padding:5px 8px;border-radius:999px;background:#eef6ff;color:#2563eb;font-size:11px;font-weight:700}.amountCard{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;align-items:center;height:72px;padding:8px 10px;background:#f8fafc;border:1px solid #e8edf3;border-radius:16px}.amountCard select{height:52px!important;min-height:52px!important;margin:0!important;background:#fff;font-size:16px!important;font-weight:750!important;border-radius:13px!important}.amountInput{height:52px!important;min-height:52px!important;margin:0!important;border:0!important;background:transparent!important;font-size:34px!important;font-weight:750!important;text-align:right;padding:0 6px!important}.amountInput:focus{outline:none}.formSection{border-top:1px solid #eef2f6;padding-top:12px}.sectionTitle{font-size:14px;font-weight:800;color:#334155;margin-bottom:9px}.twoCol{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.twoCol>label{min-width:0}.formSection label{margin:0!important}.formSection label input,.formSection label select{display:block;width:100%!important;min-width:0!important;max-width:100%!important;height:56px!important;min-height:56px!important;max-height:56px!important;margin-top:6px!important;border-radius:14px!important;font-size:16px!important;padding-left:12px!important;padding-right:12px!important;line-height:normal!important}.detailsRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.detailsRow .dateField{-webkit-appearance:auto!important;appearance:auto!important;text-align:left!important;overflow:hidden!important}.detailsRow .payerField{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.categoryGroupSection{padding-bottom:0}.groupRow{display:block;margin-top:10px!important}.groupRow select{height:56px!important;min-height:56px!important;max-height:56px!important}.splitSummary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.splitSummary span{min-height:54px;display:flex;justify-content:space-between;align-items:center;background:#f8fafc;padding:10px 12px;border-radius:14px;font-size:14px}.rangeInput{width:100%;height:32px;min-height:32px;margin-top:8px}.saveExpense{width:100%;height:56px;min-height:56px;border-radius:15px;margin-top:0;position:sticky;bottom:0;box-shadow:0 -8px 18px #fffd}nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:min(560px,100%);height:76px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);background:#fffe;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-top:1px solid #e8edf3}nav button{border:0;background:none;color:#8492a6;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px}nav button.active{color:#2563eb}@media(max-width:430px){.modal{padding:16px 16px calc(16px + env(safe-area-inset-bottom));max-height:94dvh}.modal header{margin-bottom:10px}.expenseForm{gap:12px}.twoCol{gap:9px}.formSection label input,.formSection label select{font-size:15px!important;padding-left:10px!important;padding-right:10px!important}}@media(max-width:390px){.modal{padding-left:14px;padding-right:14px}.twoCol{gap:8px}.formSection label input,.formSection label select{font-size:14px!important}}@media(min-width:760px){body{background:#f1f4f8}.app{margin:28px auto;border-radius:24px;min-height:calc(100vh - 56px)}nav{bottom:28px;border-radius:0 0 24px 24px}}.expenseClickable{cursor:pointer;border-radius:12px}.expenseClickable:active{background:#f8fafc}.modal{max-height:94dvh}.expenseForm{gap:12px}.descriptionInput,.formSection label input,.formSection label select,.groupRow select{height:56px!important;min-height:56px!important;max-height:56px!important;border-radius:14px!important}.amountCard{height:64px;padding:6px 8px}.amountCard select,.amountInput{height:50px!important;min-height:50px!important;max-height:50px!important}.amountCard select{border-radius:12px!important}.sectionTitle{margin-bottom:8px}.formSection{padding-top:11px}.formSection label input,.formSection label select{margin-top:6px!important}.twoCol{align-items:start}.saveExpense{height:56px;min-height:56px}.dateControl{position:relative;display:flex;align-items:center;width:100%;height:56px;min-height:56px;max-height:56px;margin-top:6px;padding:0 12px;border:1px solid #dbe2ea;border-radius:14px;background:#fff;color:#172033;font-size:16px;font-weight:500;overflow:hidden}.dateControl span{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.dateNative{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;cursor:pointer}.deleteExpense{width:100%;height:48px;border:1px solid #fecaca;background:#fff;color:#b91c1c;border-radius:14px;font-weight:700}.deleteExpense:disabled{opacity:.5}.settingsTitleRow{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.settingsTitleRow h2{margin:0 0 4px}.compactAction{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.groupList{margin-top:10px}.groupSettingsRow{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #eef2f6}.groupSettingsRow:last-child{border-bottom:0}.groupIcon{width:42px;height:42px;border-radius:12px;background:#f4f7fb;display:grid;place-items:center;font-size:20px;flex:0 0 auto}.groupActions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}.groupActions .link{font-size:12px;padding:6px}.dangerLink{color:#b91c1c!important}.archivedGroups{margin-top:10px;border-top:1px solid #eef2f6;padding-top:10px}.archivedGroups summary{color:#64748b;font-size:13px;font-weight:700;cursor:pointer}.settingsCopy{margin:4px 0 12px;color:#64748b;font-size:13px;line-height:1.45}.exportButtons,.exportBar{display:flex;gap:8px;flex-wrap:wrap}.exportButtons .secondary,.exportBar .secondary{display:inline-flex;align-items:center;gap:6px}.exportBar{margin:10px 0 4px}.groupForm{display:flex;flex-direction:column;gap:14px}.groupForm label{display:block;color:#64748b;font-size:13px;font-weight:700;margin:0}.groupForm label input,.groupForm label select{margin-top:6px;height:56px;border-radius:14px}.groupSplit{border-top:1px solid #eef2f6;padding-top:12px}.groupForm .primary{width:100%;min-height:54px}.formError{padding:10px 12px;border-radius:12px;background:#fff1f2;color:#be123c;font-size:13px;font-weight:650}@media(max-width:430px){.settingsTitleRow{align-items:center}.compactAction{padding:0 10px}.groupSettingsRow{align-items:flex-start}.groupActions{max-width:138px}}.syncStatus{position:sticky;top:calc(env(safe-area-inset-top) + 6px);z-index:12;width:max-content;max-width:calc(100% - 24px);margin:6px auto -6px;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:750;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 2px 10px #0f172a12}.syncStatus.synced{background:#ecfdf5;color:#047857}.syncStatus.offline{background:#fff7ed;color:#c2410c}.syncStatus.pending{background:#eff6ff;color:#1d4ed8;cursor:pointer}.modeToolbar{position:sticky;top:calc(env(safe-area-inset-top) + 4px);z-index:13;display:flex;justify-content:flex-end;align-items:center;gap:8px;min-height:38px;padding-top:6px;pointer-events:none}.offlineModeToggle,.modeToolbar .syncStatus{pointer-events:auto}.offlineModeToggle{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 10px;border:1px solid #dbe2ea;border-radius:999px;background:#fffe;color:#475569;font-size:11px;font-weight:750;box-shadow:0 2px 10px #0f172a0d;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.offlineModeToggle b{font-size:10px;color:#94a3b8}.offlineModeToggle .modeDot{width:8px;height:8px;border-radius:50%;background:#cbd5e1;flex:0 0 auto}.offlineModeToggle.active{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.offlineModeToggle.active b{color:#1d4ed8}.offlineModeToggle.active .modeDot{background:#2563eb}.offlineModeToggle:disabled{opacity:.6}.modeToolbar .syncStatus{position:static;top:auto;margin:0;box-shadow:none}@media(max-width:430px){.modeToolbar{gap:6px}.offlineModeToggle{padding:0 9px}}.insightsPage header{margin-bottom:12px}.insightFilters{display:grid;grid-template-columns:1.25fr .8fr 1fr;gap:10px;padding:12px}.insightFilters label{font-size:11px;font-weight:750;color:#64748b}.insightFilters select,.insightFilters input{height:44px;min-height:44px;margin-top:5px;border-radius:11px;font-size:14px}.customDates{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.insightMetrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.insightMetric{min-height:112px;padding:14px;border:1px solid #edf0f4;border-radius:16px;background:#fff;box-shadow:0 4px 18px #1f293708;display:flex;flex-direction:column}.insightMetric small{font-size:11px;color:#718096}.insightMetric b{font-size:21px;margin-top:6px;letter-spacing:-.02em;line-height:1.1}.insightMetric span{margin-top:auto;padding-top:8px;color:#64748b;font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insightSectionHead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:10px}.insightSectionHead h2{margin:0 0 3px;font-size:17px}.insightSectionHead small{display:block;line-height:1.35}.insightBarRow{display:grid;grid-template-columns:minmax(90px,1fr) minmax(80px,1.25fr) auto;gap:10px;align-items:center;padding:8px 0}.insightBarLabel{font-size:13px;font-weight:650;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insightBarRow b{font-size:12px;text-align:right}.insightBarRow .bar{height:7px}.memberInsight{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #eef2f6}.memberInsight:last-child{border-bottom:0}.memberInsight b,.memberInsight small{display:block}.memberInsight small{margin-top:3px}.trendBars{display:flex;gap:7px;align-items:flex-end;min-height:164px;overflow-x:auto;padding-top:6px}.trendItem{flex:1 0 46px;min-width:46px;display:grid;grid-template-rows:24px 108px 18px;gap:5px;align-items:end;text-align:center}.trendValue{font-size:9px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trendTrack{width:100%;height:108px;border-radius:8px;background:#f4f6f9;display:flex;align-items:flex-end;overflow:hidden}.trendTrack i{width:100%;display:block;background:#2563eb;border-radius:8px 8px 0 0;min-height:4px}.trendItem span{font-size:9px;color:#64748b}.emptyInsight{padding:18px 0;text-align:center;color:#94a3b8;font-size:13px}@media(max-width:430px){.insightFilters{grid-template-columns:1.25fr .75fr}.insightFilters label:nth-child(3){grid-column:1/-1}.insightMetrics{gap:8px}.insightMetric{min-height:106px;padding:12px}.insightMetric b{font-size:19px}.insightBarRow{grid-template-columns:minmax(92px,1fr) minmax(72px,.9fr) auto;gap:8px}}.categoryDrillCard{overflow:hidden}.drillBack{border:0;background:none;padding:0;margin:0 0 4px;color:#2563eb;font-size:12px;font-weight:750}.drillRow{width:100%;border:0;background:none;text-align:left;margin:0;font:inherit;color:inherit;cursor:pointer}.drillRow:active{background:#f8fafc}.drillChevron{margin-left:5px;color:#94a3b8;font-size:18px;vertical-align:-1px}.merchantInsight,.movementRow,.unusualRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #eef2f6}.merchantInsight:last-child,.movementRow:last-child,.unusualRow:last-child{border-bottom:0}.merchantInsight b,.merchantInsight small,.movementRow b,.movementRow small,.unusualRow b,.unusualRow small{display:block}.merchantInsight strong,.movementRow strong,.unusualRow strong{font-size:13px}.merchantInsight small,.movementRow small,.unusualRow small{margin-top:3px}.movementRow>strong{min-width:92px;text-align:right}.movementRow>strong small{font-size:10px;font-weight:700}.movementRow>strong.up{color:#b45309}.movementRow>strong.down{color:#047857}.monthTrend{height:150px;display:flex;align-items:flex-end;gap:6px;padding-top:8px;overflow:hidden}.monthTrendItem{flex:1;min-width:0;display:grid;grid-template-rows:116px 20px;gap:5px;align-items:end;text-align:center}.monthTrendBar{height:116px;background:#f4f6f9;border-radius:7px;display:flex;align-items:flex-end;overflow:hidden}.monthTrendBar i{width:100%;display:block;background:#2563eb;border-radius:7px 7px 0 0;min-height:3px}.monthTrendItem span{font-size:9px;color:#64748b;white-space:nowrap}@media(max-width:430px){.merchantInsight,.movementRow,.unusualRow{gap:8px}.merchantInsight .grow,.movementRow .grow,.unusualRow .grow{min-width:0}.merchantInsight b,.movementRow b,.unusualRow b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monthTrend{gap:4px}}.searchPage header{margin-bottom:12px}.searchBoxRow{display:flex;gap:8px;align-items:center}.searchQuery{height:48px}.clearFilters{flex:0 0 auto;border:0;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:0 11px;height:36px;font-size:12px;font-weight:750}.searchFilters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.searchFilters label,.bulkGrid label{min-width:0;font-size:11px;font-weight:750;color:#64748b}.searchFilters select,.searchFilters input,.bulkGrid select{width:100%;height:44px;min-height:44px;margin-top:5px;border-radius:11px;font-size:14px}.searchCustomDates{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.searchActions{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.selectionActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#64748b}.searchSelectToggle.active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.bulkEditor,.inlineBulkEditor{background:#f8fafc;border-color:#dbeafe}.bulkHeader b,.bulkHeader small{display:block}.bulkHeader small{margin-top:3px}.bulkGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.bulkApply{width:100%;margin-top:10px;min-height:48px}.searchResultList,.insightTransactionList{margin-top:10px}.searchExpenseRow{display:flex;align-items:center;gap:10px;padding:12px 2px;border-bottom:1px solid #eef2f6;border-radius:10px}.searchExpenseRow.selected{background:#eff6ff}.searchCheck{width:26px;height:26px;min-width:26px;border-radius:8px;border:1.5px solid #cbd5e1;background:#fff;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:800;padding:0}.searchCheck.checked{background:#2563eb;border-color:#2563eb}.searchExpenseTop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.searchExpenseTop b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.searchExpenseTop strong{font-size:13px;white-space:nowrap}.searchExpenseMeta{display:flex;align-items:center;gap:5px;margin-top:4px;min-width:0;overflow:hidden;color:#64748b;font-size:11px;white-space:nowrap}.searchExpenseMeta button{border:0;background:none;color:#2563eb;padding:0;font:inherit;font-weight:650;white-space:nowrap}.searchExpenseMeta span{white-space:nowrap}.emptySearch{padding:28px 0;text-align:center;color:#94a3b8}.loadMore{display:block;margin:14px auto 0}.metricButton,.metricGridButton,.trendButton,.monthTrendButton,.insightClickable{appearance:none;-webkit-appearance:none;border:0;color:inherit;font:inherit;text-align:inherit}.metricButton{cursor:pointer}.metricButton:active,.metricGridButton:active,.trendButton:active,.monthTrendButton:active,.insightClickable:active{transform:scale(.995)}.metricGridButton{background:#f8fafc;padding:12px;border-radius:12px;cursor:pointer}.metricGridButton small,.metricGridButton b{display:block}.metricGridButton b{font-size:18px;margin-top:4px}.trendButton,.monthTrendButton{background:none;padding:0;cursor:pointer}.insightClickable{width:100%;background:none;cursor:pointer}.insightTransactions{border-color:#bfdbfe;box-shadow:0 8px 24px #2563eb12}.insightTransactionHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.insightTransactionHead h2{margin:2px 0 3px}.smallClose{width:34px;height:34px;min-width:34px;font-size:22px}.inlineBulkEditor{margin:10px 0;padding:10px;border:1px solid #dbeafe;border-radius:14px}.insightTransactionList .searchExpenseRow .grow,.drillRow.clickable{cursor:pointer}@media(max-width:430px){.bulkGrid{grid-template-columns:1fr 1fr}.bulkGrid label:last-child{grid-column:1/-1}.searchFilters{gap:8px}.searchExpenseTop b{max-width:60%}}.searchFilterToggleRow{display:flex;align-items:center;gap:8px;margin:10px 0 0}.filterToggle{flex:1;display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:0 12px;border-radius:12px}.filterToggle.active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.filterToggleChevron{font-size:16px;line-height:1;color:#64748b}.searchFilterToggleRow .clearFilters{height:42px;border-radius:12px}.historyLoading{display:flex;align-items:center;gap:12px;min-height:82px;color:#64748b}.historyLoading .spinner{flex:0 0 auto}.historyLoading b,.historyLoading small{display:block}.historyLoading b{color:#172033}.historyLoading small{margin-top:4px}.sortControl{display:flex;align-items:center;gap:7px;margin-left:auto;color:#64748b;font-size:12px;font-weight:650}.sortControl span{white-space:nowrap}.sortControl select{min-height:38px;width:auto;max-width:190px;padding:0 30px 0 10px;border:1px solid #dbe2ea;border-radius:11px;background:#fff;color:#172033;font:inherit;font-weight:650}.transactionToolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;flex-wrap:wrap}@media(max-width:430px){.searchActions .sortControl{width:100%;margin-left:0;justify-content:space-between}.searchActions .sortControl select{flex:1;max-width:none}.transactionToolbar .sortControl{width:100%;margin-left:0;justify-content:space-between}.transactionToolbar .sortControl select{flex:1;max-width:none}}
