*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Segoe UI,sans-serif;background:#f5f5f7;color:#1d1d1f;-webkit-font-smoothing:antialiased}.app{max-width:480px;margin:0 auto;min-height:100vh;padding:0 16px 32px}.header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:12px 0 8px;background:#f5f5f7eb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.month-picker{display:flex;gap:8px}.month-picker select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:#fff;border-radius:10px;padding:8px 12px;font-size:15px;font-weight:600;color:#1d1d1f;box-shadow:0 1px 3px #0000000f}.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.person-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 0 8px;-webkit-overflow-scrolling:touch}.person-tab{flex-shrink:0;border:none;background:#fff;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;color:#86868b;box-shadow:0 1px 3px #0000000f;cursor:pointer}.person-tab.active{background:#1d1d1f;color:#fff}.settings-btn{border:none;background:#fff;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:600;color:#1d1d1f;box-shadow:0 1px 3px #0000000f;cursor:pointer}.settings-btn:active{transform:scale(.98)}.push-test-actions{display:flex;flex-direction:column;gap:10px;margin:12px 0 8px}.push-test-actions .btn-primary,.push-test-actions .btn-secondary{width:100%}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:flex-end;justify-content:center;padding:16px;background:#00000059}.modal-panel{width:100%;max-width:480px;max-height:min(85vh,640px);overflow:auto;background:#fff;border-radius:20px 20px 16px 16px;padding:20px 16px 16px;box-shadow:0 8px 32px #00000026}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.modal-header h2{margin:0;font-size:18px;font-weight:700}.modal-close{border:none;background:#f2f2f7;width:32px;height:32px;border-radius:50%;font-size:22px;line-height:1;color:#86868b;cursor:pointer}.modal-desc{margin:0 0 16px;font-size:13px;color:#86868b;line-height:1.5}.budget-table-head,.budget-table-body li{display:grid;grid-template-columns:1fr 96px 52px;gap:8px;align-items:center}.budget-table-head{margin-bottom:8px;font-size:12px;font-weight:600;color:#86868b}.budget-table-body{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.budget-table-body input{width:100%;border:1px solid #e5e5ea;border-radius:10px;padding:10px 12px;font-size:15px;color:#1d1d1f;background:#fff}.budget-table-body input:focus{outline:none;border-color:#007aff}.budget-row-delete{border:none;background:transparent;color:#ff3b30;font-size:13px;font-weight:600;cursor:pointer;padding:8px 0}.budget-add-row{width:100%;margin-top:12px;border:1px dashed #c7c7cc;background:#fafafa;border-radius:12px;padding:12px;font-size:14px;font-weight:600;color:#007aff;cursor:pointer}.modal-error{margin:12px 0 0;font-size:13px;color:#ff3b30}.modal-hint{margin:12px 0 0;font-size:13px;color:#86868b;line-height:1.4}.modal-actions{display:flex;gap:10px;margin-top:16px}.btn-secondary,.btn-primary{flex:1;border:none;border-radius:12px;padding:12px;font-size:15px;font-weight:600;cursor:pointer}.btn-secondary{background:#f2f2f7;color:#1d1d1f}.btn-primary{background:#007aff;color:#fff}.btn-primary:disabled,.btn-secondary:disabled{opacity:.6;cursor:not-allowed}@media (min-width: 481px){.modal-overlay{align-items:center}.modal-panel{border-radius:20px}}.hint{font-size:12px;color:#86868b}.hint.error{color:#ff3b30}.main{display:flex;flex-direction:column;gap:16px}.hero{background:#fff;border-radius:20px;padding:24px 20px;box-shadow:0 2px 12px #0000000a;text-align:center}.hero-label{margin:0;font-size:14px;color:#86868b}.hero-amount{margin:8px 0 16px;font-size:44px;font-weight:700;letter-spacing:-1px;line-height:1.1}.status-pill{display:inline-block;padding:6px 14px;border-radius:999px;font-size:14px;font-weight:600}.status-pill.ok{background:#e8f8ef;color:#1a7f4b}.status-pill.over{background:#ffeceb;color:#d70015}.hero-sub{margin:14px 0 16px;font-size:13px;color:#86868b}.overall-bar{height:8px;background:#e5e5ea;border-radius:999px;overflow:hidden}.overall-bar-fill{height:100%;background:#34c759;border-radius:999px;transition:width .3s ease}.overall-bar-fill.over{background:#ff3b30}.overall-meta{margin:10px 0 0;font-size:12px;color:#86868b}.section{background:#fff;border-radius:20px;padding:16px;box-shadow:0 2px 12px #0000000a}.section h2{margin:0 0 10px;font-size:17px;font-weight:600}.chart-section{padding-bottom:12px}.cat-chart{height:240px;display:flex;flex-direction:column}.cat-chart-body{flex:1;display:flex;flex-direction:column;justify-content:space-between;min-height:0;overflow:visible}.cat-chart-row{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:8px;height:20px}.cat-chart-label{font-size:11px;font-weight:600;color:#1d1d1f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cat-chart-track{position:relative;height:10px;background:#f2f2f7;border-radius:4px;overflow:visible}.cat-chart-track .bar{position:absolute;left:0;top:0;height:100%;border-radius:4px;transition:width .3s ease;z-index:2}.cat-chart-track .bar.spent[data-tone=ok]{background:#34c759}.cat-chart-track .bar.spent[data-tone=near]{background:#ff9500}.cat-chart-track .bar.spent[data-tone=over]{background:#ff3b30}.cat-chart-track .marker.expected{position:absolute;top:-2px;bottom:-2px;width:2px;margin-left:-1px;background:#aeaeb2;border-radius:1px;z-index:3;pointer-events:none}.cat-chart-val{font-size:10px;font-weight:600;text-align:right;color:#1d1d1f;white-space:nowrap;min-width:72px}.cat-chart-val.ok{color:#1a7f4b}.cat-chart-val.near{color:#c93400}.cat-chart-val.over{color:#d70015}.weekly-section{padding-bottom:12px}.weekly-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:2px}.weekly-section-header h2{margin:0}.weekly-range-summary{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:0;text-align:right}.weekly-range-summary strong{font-size:18px;font-weight:700;color:#34c759;line-height:1.2}.weekly-range-summary span{font-size:11px;color:#86868b;white-space:nowrap}.weekly-chart-hint{margin:0 0 8px;font-size:11px;color:#aeaeb2}.weekly-chart-scroll{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x;cursor:grab;margin:0 -4px;padding:0 4px;scrollbar-width:thin;scrollbar-color:#d1d1d6 transparent}.weekly-chart-scroll.is-dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.weekly-chart-scroll::-webkit-scrollbar{height:4px}.weekly-chart-scroll::-webkit-scrollbar-thumb{background:#d1d1d6;border-radius:999px}.weekly-chart-track{min-width:100%}.weekly-day-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #e5e5ea}.weekly-date-picker{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:600;color:#86868b}.weekly-date-picker input{border:none;background:#fff;border-radius:10px;padding:8px 10px;font-size:14px;font-weight:600;color:#1d1d1f;box-shadow:0 1px 3px #0000000f}.weekly-date-picker input:focus{outline:none;box-shadow:0 0 0 2px #34c75959}.weekly-day-summary{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:0}.weekly-day-summary strong{font-size:20px;font-weight:700;color:#1d1d1f}.weekly-day-summary span{font-size:12px;color:#86868b;white-space:nowrap}.weekly-chart-tooltip{background:#fff;border-radius:10px;padding:10px 12px;box-shadow:0 4px 16px #0000001f;font-size:12px;color:#636366}.weekly-chart-tooltip-date{margin:0 0 4px;font-size:11px;color:#86868b}.weekly-chart-tooltip-total{margin:0 0 4px;font-size:16px;font-weight:700;color:#34c759}.weekly-chart-tooltip p{margin:0}.weekly-bar-label{font-size:10px;font-weight:600;fill:#636366}.chart-empty{margin:0;padding:40px 0;text-align:center;font-size:13px;color:#86868b}.toggle-records{width:100%;display:flex;justify-content:space-between;align-items:center;border:none;background:transparent;padding:0;font-size:15px;font-weight:600;color:#1d1d1f;cursor:pointer}.toggle-records span{font-size:13px;font-weight:400;color:#86868b}.record-list{list-style:none;margin:12px 0 0;padding:0;border-top:1px solid #e5e5ea}.record-list li{padding:12px 0;border-bottom:1px solid #f0f0f2}.record-main{display:flex;justify-content:space-between;gap:12px}.record-desc{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-amount{font-size:15px;font-weight:600;flex-shrink:0}.record-sub{margin-top:4px;font-size:12px;color:#86868b}@media (min-width: 481px){body{padding-top:16px}}
