:root{color-scheme:light;--page: #f6f6f3;--surface: #fcfcfb;--surface-2: #f0efec;--text: #0b0b0b;--text-2: #52514e;--muted: #74726c;--border: rgba(11, 11, 11, .1);--grid: #e1e0d9;--axis: #c3c2b7;--hover-wash: rgba(11, 11, 11, .04);--accent: #1c5cab;--accent-ink: #ffffff;--accent-soft: #e3eefc;--series-1: #2a78d6;--series-2: #eb6834;--series-3: #1baf7a;--series-4: #eda100;--series-5: #e87ba4;--good: #0ca30c;--good-ink: #006300;--warning: #fab219;--warning-ink: #7a5200;--critical: #d03b3b;--critical-ink: #a42525;--radius: 14px;--shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45;-webkit-font-smoothing:antialiased}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--page: #0d0d0d;--surface: #1a1a19;--surface-2: #262624;--text: #ffffff;--text-2: #c3c2b7;--muted: #9a988f;--border: rgba(255, 255, 255, .1);--grid: #2c2c2a;--axis: #383835;--hover-wash: rgba(255, 255, 255, .05);--accent: #3987e5;--accent-ink: #ffffff;--accent-soft: #16263b;--series-1: #3987e5;--series-2: #d95926;--series-3: #199e70;--series-4: #c98500;--series-5: #d55181;--good-ink: #0ca30c;--warning-ink: #fab219;--critical-ink: #e66767;--shadow: none}}*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--text)}button,input,select{font:inherit;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:1.5rem;font-weight:700}h2{font-size:1rem;font-weight:650;display:flex;align-items:center;gap:6px}.muted{color:var(--text-2)}.small{font-size:.8125rem}.neg{color:var(--critical-ink)}.app{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:20px;padding:20px 16px;border-right:1px solid var(--border);background:var(--surface)}.brand{display:flex;align-items:center;gap:10px;font-weight:700;padding:0 8px}.sidebar nav{display:flex;flex-direction:column;gap:2px;flex:1}.sidebar nav button{display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;border-radius:10px;background:none;text-align:left;cursor:pointer;color:var(--text-2)}.sidebar nav button:hover{background:var(--hover-wash)}.sidebar nav button.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav-icon{width:20px;text-align:center;font-size:1.05rem}main{padding:24px 32px 48px;max-width:1040px;width:100%}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.page{display:flex;flex-direction:column;gap:16px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.callout{flex-direction:row;align-items:center;justify-content:space-between;background:var(--accent-soft);border-color:transparent}.callout p{color:var(--text-2);font-size:.875rem;margin-top:2px}.splash{min-height:100vh;display:flex;align-items:center;justify-content:center;color:var(--text-2)}.banner.danger{background:transparent;border:1px solid var(--critical-ink);color:var(--critical-ink)}.banner{background:var(--accent-soft);color:var(--text);border-radius:var(--radius);padding:12px 16px;margin-bottom:16px;font-size:.9rem}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:4px;box-shadow:var(--shadow);min-width:0}.stat span{color:var(--text-2);font-size:.8125rem}.stat strong{font-size:1.2rem;overflow-wrap:anywhere}.score{color:var(--text-2)}.score b{font-size:1.5rem;color:var(--text)}.health{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.health-item{display:flex;flex-direction:column;gap:4px;align-items:flex-start;padding:12px;border-radius:10px;background:var(--surface-2)}.health-item strong{font-size:1.15rem}.badge{display:inline-flex;align-items:center;gap:4px;font-size:.75rem;font-weight:600;padding:2px 8px;border-radius:999px;white-space:nowrap;border:1px solid currentColor}.badge-good{color:var(--good-ink)}.badge-warning{color:var(--warning-ink)}.badge-critical{color:var(--critical-ink)}.badge-empty{color:var(--muted)}.badge-btn{border:0;background:none;padding:0;cursor:pointer}.dot{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}.pos-list,.bars{display:flex;flex-direction:column;gap:12px;list-style:none;margin:0;padding:0}.pos-row-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px}.pos-row-head>span:first-child{display:flex;align-items:center;gap:6px}.meter{height:8px;border-radius:4px;background:var(--surface-2);overflow:hidden}.meter-fill{height:100%;border-radius:4px;transition:width .3s ease}.sub-list{list-style:none;margin:0;padding:10px 0 0;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:6px;font-size:.875rem}.sub-list li{display:flex;justify-content:space-between;color:var(--text-2)}.list{list-style:none;margin:0;padding:0}.list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--border)}.list li:first-child{border-top:0;padding-top:0}.list li:last-child{padding-bottom:0}.list li>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}.list .right{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}.row-actions{display:flex;gap:6px;align-items:center}.clickable{cursor:pointer}.tx-day{gap:8px}.amount{white-space:nowrap}.amount.masuk{color:var(--good-ink)}.amount.transfer{color:var(--text-2)}.empty{color:var(--text-2);font-size:.9rem;padding:8px 0}.hint{color:var(--text-2);font-size:.8125rem}.hint.warn{color:var(--warning-ink)}.steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:.9rem}.guide-link{flex-direction:row;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;font:inherit;color:inherit}.guide-link>span:first-child{display:flex;flex-direction:column;gap:2px}.guide{display:flex;flex-direction:column}.guide-section{border-top:1px solid var(--border)}.guide-section summary{cursor:pointer;padding:12px 0;font-weight:600;list-style:none;display:flex;justify-content:space-between;align-items:center}.guide-section summary::-webkit-details-marker{display:none}.guide-section summary:after{content:"+";color:var(--text-2);font-size:1.2rem;font-weight:400}.guide-section[open] summary:after{content:"−"}.guide-body{display:flex;flex-direction:column;gap:8px;padding-bottom:14px;font-size:.9rem;color:var(--text-2)}.guide-body b{color:var(--text)}.guide-body ol,.guide-body ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px}.auth-card{width:min(420px,100%);background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:18px;box-shadow:var(--shadow)}.auth-brand{display:flex;gap:14px;align-items:center}.auth-brand h1{font-size:1.25rem}.auth-error{color:var(--critical-ink);font-size:.875rem}.topbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sync-chip{border:0;background:none;padding:0;cursor:pointer}.invite{display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:10px;background:var(--surface-2)}.invite-code{font-size:1.6rem;letter-spacing:.15em;font-variant-numeric:tabular-nums}.btn{border:1px solid transparent;border-radius:10px;padding:9px 14px;cursor:pointer;font-weight:600;background:var(--surface-2);white-space:nowrap}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:var(--accent);color:var(--accent-ink)}.btn.ghost{background:transparent;border-color:var(--border)}.btn.danger-ghost{background:transparent;color:var(--critical-ink);border-color:var(--border)}.btn.small{padding:5px 10px;font-size:.8125rem}.btn.block{width:100%}.link{border:0;background:none;color:var(--accent);cursor:pointer;font-weight:600;padding:0}.icon-btn{border:0;background:none;width:32px;height:32px;border-radius:8px;cursor:pointer;font-size:1.25rem;line-height:1}.icon-btn:hover{background:var(--hover-wash)}.month-picker{display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:2px}.month-picker span{min-width:128px;text-align:center;font-weight:600}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.toolbar.end{justify-content:flex-end}.toolbar.spread{justify-content:space-between}.toolbar input[type=search]{flex:1;min-width:160px}.segmented{display:flex;background:var(--surface-2);border-radius:10px;padding:3px;gap:2px}.segmented button{flex:1;border:0;background:none;padding:7px 10px;border-radius:8px;cursor:pointer;color:var(--text-2);white-space:nowrap}.segmented button.active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 2px #00000014}.segmented.small button{padding:5px 10px;font-size:.875rem}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:6px 14px;cursor:pointer}.chip.active{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.chip.static{cursor:default;display:inline-flex;align-items:center;gap:4px;padding:4px 10px;font-size:.875rem}.chip.static button{border:0;background:none;cursor:pointer;color:var(--text-2);padding:0 2px}.cat-group{display:flex;flex-direction:column;gap:6px}input,select{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:9px 12px;min-width:0}input:focus,select:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.form{display:flex;flex-direction:column;gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field>span:first-child{font-size:.8125rem;color:var(--text-2);font-weight:500}.row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inline-row{display:flex;gap:8px;align-items:center}.inline-row input{flex:1}.inline-row.wrap{flex-wrap:wrap}.inline-row.wrap input{min-width:160px}.grow{flex:1;display:flex;align-items:center;gap:6px}.pct-input{display:flex;align-items:center;gap:4px}.pct-input input{width:72px;text-align:right}.amount-input{display:flex;align-items:center;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding-left:12px}.amount-input:focus-within{outline:2px solid var(--accent);outline-offset:1px}.amount-input span{color:var(--text-2);font-weight:600}.amount-input input{border:0;flex:1;outline:none;font-size:1.05rem;font-weight:600;font-variant-numeric:tabular-nums}.check,.notice{display:flex;gap:10px;align-items:flex-start;font-size:.9rem}.notice{background:var(--accent-soft);padding:12px;border-radius:10px}.check input,.notice input{margin-top:3px}.form-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.form-actions.start{justify-content:flex-start}.modal-backdrop,.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.modal{background:var(--surface);border-radius:18px;width:min(480px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:20px;display:flex;flex-direction:column;gap:16px}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:1.125rem}.sheet-backdrop{align-items:flex-end;padding:0}.sheet{background:var(--surface);width:100%;border-radius:18px 18px 0 0;padding:12px 12px calc(76px + env(safe-area-inset-bottom));display:flex;flex-direction:column}.sheet button{display:flex;align-items:center;gap:12px;border:0;background:none;padding:14px 12px;border-radius:10px;text-align:left;cursor:pointer;font-size:1rem}.sheet button:hover{background:var(--hover-wash)}.chart{display:flex;flex-direction:column;gap:8px}.legend{display:flex;gap:16px;font-size:.8125rem;color:var(--text-2)}.legend span,.tooltip span{display:inline-flex;align-items:center;gap:6px}.legend i,.tooltip i{width:10px;height:10px;border-radius:3px;display:inline-block}.chart-box{position:relative}.chart-box svg{width:100%;height:auto;display:block;overflow:visible}.tick{font-size:11px;fill:var(--muted);font-variant-numeric:tabular-nums}.tooltip{position:absolute;top:0;transform:translate(-50%);background:var(--surface);border:1px solid var(--border);box-shadow:0 6px 24px #0000001f;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;font-size:.8125rem;pointer-events:none;white-space:nowrap;z-index:5}.tooltip b{margin-left:auto;padding-left:12px;font-variant-numeric:tabular-nums}.fab,.bottom-nav,.mobile-only{display:none}@media (max-width: 860px){.app{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}main{padding:16px 16px calc(96px + env(safe-area-inset-bottom))}.mobile-only{display:block}.stats,.health{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}.bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--border);padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:60}.bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;font-size:.6875rem;color:var(--text-2);padding:4px 0;cursor:pointer}.bottom-nav button.active{color:var(--accent);font-weight:600}.fab{display:flex;align-items:center;justify-content:center;position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom));width:56px;height:56px;border-radius:50%;border:0;background:var(--accent);color:var(--accent-ink);font-size:1.75rem;box-shadow:0 6px 20px #1c5cab59;cursor:pointer;z-index:40}.modal-backdrop{align-items:flex-end;padding:0}.modal{border-radius:18px 18px 0 0;max-height:92vh;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.callout{flex-direction:column;align-items:stretch}.month-picker span{min-width:110px}}@media (max-width: 420px){.row-2{grid-template-columns:1fr}.stat strong{font-size:1.05rem}}
