:root{color-scheme:light;--bg:#f6f8fa;--surface:#fff;--soft:#f1f5f3;--ink:#172f29;--muted:#72817b;--line:#e4ebe7;--green:#16745b;--green-soft:#e7f3ed;--red:#c55150;--red-soft:#faeeee;--gold:#be8c36;--shadow:0 16px 48px #142d2510;--side:244px}
:root[data-theme=dark]{color-scheme:dark;--bg:#101916;--surface:#17231e;--soft:#1f3028;--ink:#e1eee7;--muted:#9caf9f;--line:#2c3b31;--green:#65c69c;--green-soft:#223d30;--red:#ee9690;--red-soft:#3b2927;--gold:#e0b264;--shadow:0 16px 48px #0003}
*{box-sizing:border-box}body{margin:0;font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:0;white-space:nowrap}button:disabled{opacity:.55;cursor:wait}a{color:var(--green);text-decoration:none}button.primary{background:var(--green);color:var(--surface);border:1px solid var(--green);border-radius:9px;padding:11px 17px;font-weight:650}:root[data-theme=dark] button.primary{color:#10291e}.secondary{background:var(--surface);border:1px solid var(--line);padding:9px 14px;border-radius:8px;font-weight:600}.icon{background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:8px;min-height:36px;min-width:36px;font-size:20px}.text-button{color:var(--green);background:transparent;padding:5px 7px;font-size:12px;font-weight:650}.danger{color:var(--red)}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-1px;margin-bottom:5px;font-weight:700}h2{font-size:17px;letter-spacing:-.25px;margin-bottom:2px}h3{font-size:14px}p{color:var(--muted)}small{font-size:11px;color:var(--muted)}#sidebar{position:fixed;inset:0 auto 0 0;width:var(--side);padding:27px 16px 16px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:40}.brand{display:flex;align-items:center;gap:10px;padding:0 12px 27px;color:var(--ink);font-size:23px;font-weight:750;letter-spacing:-.8px}.brand small{display:block;font-size:8px;letter-spacing:2.2px;margin-top:-3px}.brandmark{width:36px;height:38px;background:var(--green);color:var(--surface);border-radius:11px;font-size:34px;line-height:33px;text-align:center;font-weight:600;position:relative}.brandmark span{font-size:15px;position:absolute;top:-2px;right:1px}.workspace{font-size:9px;color:var(--muted);letter-spacing:1.4px;padding:8px 12px 12px}#navigation{overflow-y:auto;flex:1}#navigation a{display:flex;align-items:center;gap:12px;color:var(--muted);padding:10px 13px;border-radius:8px;margin:3px 0;font-size:12px;font-weight:550}#navigation a.active{background:var(--green-soft);color:var(--green)}#navigation a:hover{background:var(--soft)}.nav-icon{font-size:17px;width:20px;text-align:center}.sidebar-foot{margin:18px 10px 0;padding-top:20px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.sidebar-foot small{display:block;padding-left:14px;margin-top:4px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:6px}.shell{margin-left:var(--side)}header{height:73px;border-bottom:1px solid var(--line);padding:0 35px;display:flex;align-items:center;justify-content:space-between;background:var(--surface)}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb span{padding:0 14px;color:#b0bdb4}.breadcrumb strong{font-weight:600;color:var(--ink)}.header-actions{display:flex;align-items:center;gap:10px}.avatar{background:var(--green-soft);color:var(--green);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:11px;font-weight:700}main{padding:30px 35px;max-width:1720px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.eyebrow{color:var(--green);font-size:9px;letter-spacing:1.6px;font-weight:700;margin-bottom:7px}.page-heading p{margin:0;font-size:12px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:15px 0 22px}.global-filters{padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:10px}label{font-size:11px;font-weight:600;color:var(--muted);display:flex;flex-direction:column;gap:6px}input,select,textarea{background:var(--surface);border:1px solid var(--line);border-radius:7px;min-height:36px;padding:7px 10px;max-width:100%;color:var(--ink)}input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:var(--green)}textarea{min-height:82px;resize:vertical}label.check{flex-direction:row;align-items:center;gap:9px;color:var(--ink)}.hero{background:#163e31;color:#f4fff7;border-radius:14px;padding:25px 27px;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden;gap:25px;margin-bottom:18px}.hero::after{content:'';position:absolute;width:260px;height:260px;border:45px solid #c3e8ab0b;border-radius:50%;right:-80px;top:-130px;pointer-events:none}.hero p{color:#b3cdbf;font-size:11px;margin-bottom:6px}.hero .value{font-size:35px;letter-spacing:-1.2px;font-weight:650;line-height:1.25}.hero .sub{color:#9fc9b2;font-size:10px;margin-top:12px}.hero-side{border-left:1px solid #b0cbb830;padding-left:30px;min-width:185px;z-index:1}.hero-side strong{font-size:21px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.card{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:18px;min-width:0}.card-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:9px}.badge{font-size:10px;padding:3px 7px;border-radius:6px;display:inline-block;font-weight:600;background:var(--green-soft);color:var(--green)}.badge.red{color:var(--red);background:var(--red-soft)}.badge.gray{background:var(--soft);color:var(--muted)}.value{overflow-wrap:anywhere;font-size:24px;font-weight:650;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.card small{display:block;margin-top:6px;font-size:10px}.positive{color:var(--green)}.negative{color:var(--red)}.grid2{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;margin-bottom:18px}.equal{grid-template-columns:1fr 1fr}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:21px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.panel-head p{font-size:10px;margin:4px 0 0}.chart{height:240px;position:relative}.chart.small{height:205px}.legend-note{font-size:10px;color:var(--muted);margin:12px 0 0}.chart-empty{display:grid;place-items:center;height:100%;font-size:12px;color:var(--muted);text-align:center}.progress{height:6px;background:var(--soft);border-radius:20px;overflow:hidden;margin:10px 0}.progress span{display:block;height:100%;background:var(--green);border-radius:20px}.progress span.warn{background:var(--gold)}.progress span.over{background:var(--red)}.row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.row p{font-size:11px;margin:3px 0 0}.row strong{font-size:12px}.row .amount{text-align:right;font-weight:650;font-variant-numeric:tabular-nums}.row .amount small{display:block;font-size:9px}.insight{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px}.insight:last-child{border:0}.insight span{font-size:17px;color:var(--green)}.insight p{margin:0;color:var(--ink)}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}th{text-align:left;background:var(--soft);font-weight:550;color:var(--muted);font-size:10px;padding:11px}td{padding:13px 11px;border-bottom:1px solid var(--line);max-width:320px;overflow:hidden;text-overflow:ellipsis}td.wrap{white-space:normal;min-width:170px}td.money,th.money{text-align:right;font-variant-numeric:tabular-nums}td small{display:block;font-size:9px}td .text-button{padding:3px 4px}.table-actions{display:flex;gap:5px}.section-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.section-toolbar h2{margin:0}.empty{text-align:center;padding:42px 20px;color:var(--muted)}.empty h2{margin:12px 0 4px;color:var(--ink)}.empty p{font-size:12px;margin:4px 0}.empty button{margin-top:14px}.pagination{display:flex;gap:12px;align-items:center;justify-content:flex-end;padding:17px 0 0;font-size:11px;color:var(--muted)}.hint{font-size:11px;line-height:1.7;color:var(--muted)}.note{padding:13px 16px;background:var(--green-soft);border-radius:9px;color:var(--green);font-size:11px;margin:14px 0}.note.warning{background:var(--red-soft);color:var(--red)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-grid .panel{height:fit-content}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .wide{grid-column:1/-1}.form-grid label{font-size:11px}.form-grid input,.form-grid select,.form-grid textarea{width:100%}.form-grid .check input{width:17px}.form-actions{margin-top:20px;display:flex;gap:10px;flex-wrap:wrap}footer{display:flex;justify-content:center;gap:10px;color:var(--muted);font-size:9px;padding:30px 0 0}dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:15px;width:min(640px,calc(100% - 28px));max-height:90vh;padding:24px;box-shadow:var(--shadow)}dialog::backdrop{background:#10291d88;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.modal-head h2{font-size:21px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.error{color:var(--red);font-size:12px;white-space:pre-wrap}.error:empty{display:none}#connectionError{padding:14px;background:var(--red-soft);color:var(--red);margin:12px 0;border-radius:8px;font-size:12px}#toast{position:fixed;bottom:27px;left:calc(var(--side) + 30px);background:var(--ink);color:var(--surface);border-radius:10px;padding:13px 22px;box-shadow:var(--shadow);z-index:100;max-width:calc(100vw - 40px);font-size:12px}#busy{position:fixed;top:85px;right:25px;background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:9px;padding:10px 15px;z-index:100;font-size:11px;display:flex;align-items:center;gap:10px}#busy[hidden]{display:none}.spinner{display:inline-block;border:2px solid var(--line);border-top-color:var(--green);width:20px;height:20px;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#bottomNav,#mobileMenu,#backdrop{display:none}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}.calendar>div{min-height:75px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px;font-size:10px}.calendar .cal-day{min-height:30px;background:var(--soft);color:var(--muted)}.cal-bill{display:block;font-size:9px;white-space:normal;background:var(--green-soft);border-radius:4px;padding:3px;margin-top:4px;color:var(--green)}details{font-size:11px;color:var(--muted);margin-top:12px}summary{cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;max-height:300px;overflow:auto}.audit td{max-width:250px}#confirmation{width:min(450px,calc(100% - 28px))}#confirmMessage{white-space:pre-wrap;font-size:13px}.subtitle{font-size:10px;color:var(--muted)}
@media(min-width:1400px){.chart{height:265px}}@media(max-width:1150px){:root{--side:214px}main{padding:24px}header{padding:0 24px}.cards{gap:10px}.card{padding:15px}.value{font-size:21px}.hero .value{font-size:31px}.global-filters label{flex:1;min-width:130px}.grid2{grid-template-columns:1fr 1fr}}@media(max-width:850px){:root{--side:0px}#sidebar{width:245px;transform:translateX(-100%);transition:transform .2s}body.menu-open #sidebar{transform:translateX(0)}body.menu-open #backdrop{display:block;position:fixed;inset:0;background:#10291d80;z-index:35}header{height:58px;padding:0 18px}.shell{margin-left:0}#mobileMenu{display:block}main{padding:22px 18px 100px}#bottomNav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);height:66px;z-index:30;justify-content:space-around;padding-bottom:env(safe-area-inset-bottom)}#bottomNav a,#bottomNav button{background:transparent;font-size:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:var(--muted);width:20%}#bottomNav a.active{color:var(--green)}#bottomNav span{font-size:19px}#toast{left:18px;bottom:80px}.page-heading h1{font-size:26px}.settings-grid{grid-template-columns:1fr}.hero-side{padding-left:20px}footer{flex-wrap:wrap}#busy{top:65px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.grid2,.grid2.equal{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading .primary{font-size:0;padding:9px 13px}.page-heading .primary::after{content:'＋';font-size:22px}.eyebrow{font-size:8px}.hero{padding:22px;display:block}.hero-side{border-left:0;border-top:1px solid #b0cbb830;padding:13px 0 0;margin-top:15px;display:flex;align-items:center;justify-content:space-between}.hero-side p{margin:0}.hero-side .hint{display:none}.hero .value{font-size:32px}.global-filters{gap:9px}.global-filters label{min-width:calc(50% - 8px);flex:1}.global-filters button{width:100%}.card{padding:14px}.card-label{font-size:10px}.value{font-size:20px}.panel{padding:17px}.chart{height:220px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}dialog{padding:20px}.breadcrumb{font-size:10px}.header-actions{gap:6px}.avatar{display:none}.calendar>div{padding:4px;min-height:66px}.cal-bill{font-size:8px}.toolbar label{flex:1;min-width:125px}.pagination{justify-content:center}.toolbar input{min-width:0;width:100%}.hero .sub{font-size:9px}.table-actions{gap:0}.section-toolbar .primary{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media print{#sidebar,header,#bottomNav,.page-heading button,.global-filters,.toolbar,.section-toolbar button,footer,#toast,#busy,.table-actions{display:none!important}.shell{margin:0}main{padding:0}.panel,.card{break-inside:avoid;border:1px solid #ddd;box-shadow:none}body{background:#fff;color:#111}table{white-space:normal;font-size:9px}td{max-width:none}#content{display:block}.grid2{display:block}.chart{max-height:200px}a{color:#111}.hero{background:#eee;color:#111}.hero p{color:#555}.table-scroll{overflow:visible}}

.auth-shell{min-height:100vh;display:grid;place-items:center;padding:28px}.auth-card{max-width:600px;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:35px;box-shadow:var(--shadow)}.auth-card h1{font-size:32px;margin-bottom:12px}.auth-card p{font-size:13px;line-height:1.8}.auth-brand{display:inline-grid;place-items:center;width:45px;height:45px;border-radius:13px;background:var(--green);color:var(--surface);font-weight:800;font-size:26px;margin-bottom:18px}#accessSetup pre{white-space:pre-wrap;max-height:260px;background:var(--soft);padding:14px;border-radius:8px;font-size:10px;overflow:auto}#appSurface[hidden],#authScreen[hidden],#accessSetup[hidden],#signedUser[hidden]{display:none!important}#authMessage{white-space:pre-wrap}#logoutButton{font-size:11px}#signedUser{font-size:11px;color:var(--muted);overflow-wrap:anywhere}#bootNotice{font-size:11px;color:var(--muted)}

/* EvilFinance 2 — calm white surfaces, emerald balance card, clear hierarchy. */
:root{--bg:#f6f7f8;--soft:#f5f6f7;--ink:#1a2024;--muted:#6b7479;--line:#e8ebed;--green:#087f54;--green-soft:#e7f4ed;--side:252px;--shadow:0 12px 40px #172e2510}
:root[data-theme=dark]{--bg:#101715;--soft:#20302a;--ink:#edf5f0;--muted:#a5b7ad;--line:#304038;--green:#70d5a6;--green-soft:#203b2e}
body{font-size:14px;letter-spacing:-.12px}h1{font-size:30px;letter-spacing:-1.1px}h2{font-size:17px;font-weight:650}button,a,input,select,textarea{transition:background .16s,border-color .16s,box-shadow .16s}button.primary{border-radius:10px;box-shadow:0 3px 6px #087f5412}button.primary:hover{filter:brightness(.94)}.secondary{border-radius:10px}.secondary:hover{background:var(--soft)}input:focus,select:focus,textarea:focus{outline:2px solid var(--green);outline-offset:1px;border-color:var(--green)}input[type=number],input[data-rupiah]{font-variant-numeric:tabular-nums}input::placeholder{color:#9ca5a1}
#sidebar{padding:29px 17px 20px}.brand{padding:0 8px 30px;font-size:25px;gap:11px}.brandmark{width:40px;height:42px;background:linear-gradient(140deg,#15956b,#056a47);color:white;box-shadow:0 4px 10px #087f5424}.brand small{font-size:8px;letter-spacing:2px;margin-top:0}.workspace{font-size:10px;letter-spacing:1.2px;padding:5px 12px 11px}#navigation a{padding:11px 12px;font-size:12px;font-weight:500;margin:4px 0;color:var(--ink);gap:12px}#navigation a.active{background:linear-gradient(110deg,#171b1a,#303431);color:#fff;box-shadow:0 4px 9px #16231c16}#navigation a:hover:not(.active){background:var(--soft)}.nav-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0}.sidebar-foot{line-height:1.8}.sidebar-foot small{font-size:10px}header{height:78px;padding:0 32px}.breadcrumb{font-size:12px}.account-label{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600}.avatar{background:#edeafb;color:#65518a;width:36px;height:36px}.header-actions .icon{width:37px;height:37px;background:var(--surface)}main{padding:30px 32px}.page-heading{margin-bottom:22px}.page-heading .eyebrow{font-size:9px;color:var(--muted);letter-spacing:1.5px}.page-heading p{font-size:13px}
.filter-panel{margin:0 0 22px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.filter-panel>summary{padding:12px 16px;display:flex;align-items:center;gap:15px;list-style:none;font-size:12px}.filter-panel>summary::-webkit-details-marker{display:none}.filter-panel>summary>span:first-child{font-weight:600;color:var(--ink)}#filterSummary{margin-left:auto;font-size:11px}.filter-chevron{font-size:18px;color:var(--ink)}.global-filters{border:0;border-top:1px solid var(--line);border-radius:0 0 12px 12px;margin:0;padding:17px;gap:12px}.global-filters label{flex:1;min-width:125px}
.overview-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:18px;margin-bottom:18px}.overview-grid>article{min-width:0;overflow:hidden;border-radius:18px;border:1px solid var(--line)}.balance-card{background:radial-gradient(ellipse at 90% 20%,#159d6744,transparent 60%),linear-gradient(130deg,#046b49,#0b8758);color:white;position:relative}.balance-top{padding:23px 23px 0;display:flex;gap:12px;align-items:center}.balance-top h2{font-size:16px}.balance-top p{color:#d0eadc;font-size:11px;margin:3px 0 0}.tile-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f5fff8;color:#086e4d;flex-shrink:0}.tile-icon svg{width:23px;height:23px}.balance-value{padding:23px 23px 0;font-size:clamp(23px,2.35vw,37px);font-weight:550;letter-spacing:-1.1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.balance-note{color:#d0eadc;font-size:10px;padding:0 23px;margin:6px 0 22px}.balance-link{color:var(--ink);background:var(--surface);display:flex;justify-content:space-between;align-items:center;padding:13px 23px;font-size:11px;border-top:1px solid #ffffff33}.balance-link span,.summary-card a span{font-size:20px}.summary-card{background:var(--surface);padding:23px 23px 0;display:flex;flex-direction:column}.summary-card .tile-icon{width:35px;height:35px;margin-bottom:11px}.lavender{background:#eee9fc;color:#66508e}.mint{background:#e7f4eb;color:#177f54}.summary-card h2{font-size:15px}.summary-card>p{font-size:11px;margin:4px 0 13px}.summary-card .value{font-size:clamp(22px,2.1vw,31px);font-weight:550;margin-bottom:17px}.summary-card a{margin:auto -23px 0;padding:13px 23px;border-top:1px solid var(--line);font-size:10px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);gap:10px}.summary-card a:hover,.balance-link:hover{background:var(--soft)}
.cards{gap:16px}.card{padding:19px 20px;border-radius:15px}.card-label{font-size:12px;margin-bottom:13px;color:var(--muted)}.card .value{font-weight:550;font-size:23px}.card small{font-size:10px;line-height:1.6}.badge{border-radius:6px}.primary-metrics{margin-bottom:23px}.panel{padding:24px;border-radius:18px}.panel-head{margin-bottom:23px}.panel-head p{font-size:11px;line-height:1.6}.grid2{gap:22px;margin-bottom:22px}.dashboard-main{grid-template-columns:1fr 1.35fr}.wallet-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wallet-tile{display:flex;flex-direction:column;gap:7px;padding:16px;background:var(--soft);border:1px solid transparent;border-radius:13px;color:var(--ink);min-width:0}.wallet-tile:hover{border-color:var(--green)}.wallet-type{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px}.wallet-type svg{width:17px;height:17px}.wallet-tile strong{font-weight:550;font-size:12px;overflow-wrap:anywhere}.wallet-value{font-size:20px;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.wallet-tile small{font-size:10px;color:var(--green)}.row{padding:15px 0}.row strong{font-size:12px;font-weight:550}.row p{font-size:11px}.row .amount{font-size:13px}.row>div:first-child{min-width:0;overflow-wrap:anywhere}.row .amount{flex-shrink:0}.goal-item{margin-bottom:18px}.goal-item .row{padding:0;border:0}.goal-item .progress{height:7px}.insights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.insight{line-height:1.8}.dashboard-details{margin-top:22px}.dashboard-details>summary{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);padding:18px 22px;border-radius:14px;color:var(--ink);font-size:13px;font-weight:600;list-style:none}.dashboard-details>summary small{font-weight:400;margin-left:auto}.dashboard-details>summary>span:last-child{font-size:19px}.details-body{padding-top:20px}.empty{padding:30px 16px}.empty h2{font-size:14px}.empty p{font-size:11px;line-height:1.7}.chart{height:260px}table{font-size:12px}th{font-size:11px}td{padding:15px 11px}label,.form-grid label{font-size:12px}input,select,textarea{min-height:41px;border-radius:9px}.form-grid{gap:18px}dialog{padding:28px;border-radius:20px}.modal-head h2{font-size:23px}footer{font-size:10px;padding-top:30px}
.auth-shell{background:var(--bg);display:grid;grid-template-columns:1fr 1fr;gap:60px;max-width:1260px;margin:auto;padding:70px 60px}.auth-intro{position:relative;overflow:hidden;border-radius:26px;background:linear-gradient(145deg,#034d36,#0d8e5f);color:white;padding:48px 38px;min-height:560px;display:flex;flex-direction:column;justify-content:center}.auth-kicker{font-size:10px;letter-spacing:2px;color:#b2ddc9}.auth-intro h2{font-size:48px;line-height:1.12;letter-spacing:-2.5px;font-weight:550;margin:35px 0 20px;z-index:1}.auth-intro h2 em{font-style:normal;color:#b6edbe}.auth-intro>p{color:#c6e7d7;line-height:1.9;font-size:13px;max-width:300px;z-index:1}.auth-benefits{display:grid;gap:13px;margin-top:35px;font-size:11px;color:#ddf2e6;z-index:1}.auth-orbit{position:absolute;right:-30px;bottom:-110px;font-size:400px;color:#d7ffde0a;line-height:1;pointer-events:none}.auth-card{background:transparent;border:0;box-shadow:none;padding:20px 0}.auth-card h1{font-size:32px;letter-spacing:-1px}.auth-card>p{font-size:13px;max-width:380px}.auth-brand{background:var(--green);margin-bottom:28px;color:white}.auth-card .primary{margin:15px 0 10px;width:100%;max-width:380px;padding:14px 20px}.auth-card .eyebrow{margin-bottom:10px}.auth-card #bootNotice{border-top:1px solid var(--line);padding-top:20px;margin-top:30px;font-size:11px}.auth-card #authMessage{font-size:12px}#accessSetup{background:var(--green-soft);border-radius:12px;padding:15px;margin-top:15px}#accessSetup p{margin:0}
@media(min-width:1500px){main{padding:36px 40px}.overview-grid{gap:22px}.balance-value{font-size:38px}}
@media(max-width:1150px){:root{--side:226px}main{padding:25px 22px}header{padding:0 22px}.brand{font-size:22px}#navigation a{font-size:11px}.overview-grid{gap:12px}.balance-top{padding:20px 17px 0;gap:8px}.balance-top h2{font-size:14px}.balance-top p{font-size:10px}.balance-value{padding:22px 17px 0}.balance-note{padding:0 17px}.balance-link{padding:13px 17px}.summary-card{padding:20px 17px 0}.summary-card a{margin-left:-17px;margin-right:-17px;padding:13px 17px;font-size:9px}.card{padding:16px}.card .value{font-size:21px}.dashboard-main{grid-template-columns:1fr 1.15fr}.wallet-grid{gap:8px}.wallet-tile{padding:13px}.wallet-value{font-size:18px}.account-label{max-width:110px}.auth-shell{gap:35px;padding:40px}.auth-intro{padding:35px 25px}.auth-intro h2{font-size:40px}}
@media(max-width:850px){:root{--side:0px}#sidebar{width:252px}main{padding:24px 20px 100px}header{height:64px}.overview-grid{grid-template-columns:1.2fr 1fr 1fr}.account-label{max-width:145px}.auth-shell{padding:30px;gap:28px}.auth-intro h2{font-size:35px}.auth-intro{min-height:500px}.auth-benefits{font-size:10px}.dashboard-main{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.overview-grid{grid-template-columns:1fr 1fr}.balance-card{grid-column:1/-1}.balance-top{padding:22px 22px 0}.balance-value{padding:19px 22px 0;font-size:36px}.balance-note{padding:0 22px}.balance-link{padding:12px 22px}.summary-card .value{font-size:24px}.summary-card a{font-size:10px}.summary-card{padding-top:18px}.dashboard-main{grid-template-columns:1fr}.insights-grid{grid-template-columns:1fr}.account-label{display:none}.auth-shell{display:block;padding:35px 24px;min-height:100vh;max-width:480px}.auth-intro{display:none}.auth-card{padding:35px 0}.auth-card>p{max-width:none}.auth-card .primary{max-width:none}.auth-card h1{font-size:34px}.dashboard-details>summary small{display:none}.dashboard-details>summary>span:last-child{margin-left:auto}}
@media(max-width:420px){main{padding:22px 14px 94px}header{padding:0 14px}.breadcrumb{font-size:10px}.breadcrumb span{padding:0 6px}.header-actions{gap:5px}.header-actions .icon{min-width:32px;width:32px;height:32px}.panel{padding:18px}.cards{gap:10px}.card{padding:14px}.card .value{font-size:20px}.card-label{font-size:11px}.summary-card .value{font-size:21px}.summary-card h2{font-size:14px}.wallet-value{font-size:19px}#filterSummary{font-size:10px}.filter-panel>summary{gap:8px;padding:12px}.row .amount{font-size:12px}}
@media print{.filter-panel,.dashboard-details>summary{display:none!important}.dashboard-details .details-body{display:block!important}.overview-grid{break-inside:avoid}.balance-card{background:#eee;color:#111}.balance-card p{color:#555}.summary-card{break-inside:avoid}}

input:disabled{background:var(--soft);color:var(--muted);cursor:not-allowed;opacity:1}

/* Brand assets 2.1.0, based on the supplied EvilFinance asset pack. */
:root{--brand-finance:#07865f}
:root[data-theme=dark]{--brand-finance:#43dfab}
.brand{gap:11px;align-items:center}
.brand-logo{width:44px;height:44px;display:block;flex-shrink:0;filter:drop-shadow(0 3px 6px #004d3612)}
.brand-copy{min-width:0;display:flex;flex-direction:column;gap:7px}
#brandName{display:flex;align-items:baseline;font-size:22px;line-height:1;font-weight:800;letter-spacing:-.9px;white-space:nowrap}
.brand-evil{color:var(--ink)}
.brand-finance{color:var(--brand-finance)}
.brand .brand-copy small{font-size:7.3px;font-weight:600;letter-spacing:2.05px;line-height:1;color:var(--muted);margin:0;white-space:nowrap}
.auth-brand{display:flex;align-items:center;gap:14px;width:auto;height:auto;margin:0 0 29px;padding:0;background:transparent;border-radius:0;box-shadow:none;font-size:inherit}
.auth-logo{width:64px;height:64px;display:block;flex-shrink:0}
.auth-brand-copy{display:flex;flex-direction:column;gap:10px}
.auth-wordmark{font-size:31px;font-weight:800;line-height:1;letter-spacing:-1.15px;white-space:nowrap}
.auth-brand-copy small{font-size:8.5px;font-weight:600;line-height:1;letter-spacing:2.65px;color:var(--muted)}
@media(max-width:1150px) and (min-width:851px){.brand{gap:9px;padding-left:4px;padding-right:4px}.brand-logo{width:40px;height:40px}#brandName{font-size:20px;letter-spacing:-.85px}.brand .brand-copy small{font-size:6.8px;letter-spacing:1.7px}}
@media(max-width:420px){.auth-logo{width:57px;height:57px}.auth-brand{gap:12px}.auth-wordmark{font-size:28px}.auth-brand-copy small{font-size:7.5px;letter-spacing:2.4px}}

/* Mobile navigation, comfortable safe-area spacing and restrained interaction motion. */
.remember-login{display:flex;align-items:center;gap:9px;margin:13px 0 4px;font-size:12px;font-weight:500;color:var(--ink)}
.remember-login input{flex-shrink:0}
#loginPersistenceHint{font-size:10px;margin:3px 0 15px;line-height:1.6;max-width:380px}
button,.wallet-tile{touch-action:manipulation}
button:active:not(:disabled){transform:scale(.975)}
#toast:not([hidden]){animation:ef-toast-in .22s ease-out}
dialog[open]{animation:ef-dialog-in .23s cubic-bezier(.2,.75,.25,1)}
#navigation a{transition:background .18s ease,color .18s ease,transform .18s ease}
.progress span{transition:width .45s cubic-bezier(.2,.75,.25,1)}
@keyframes ef-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes ef-dialog-in{from{opacity:0;transform:translateY(9px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(hover:hover) and (pointer:fine){
 .card,.summary-card,.wallet-tile{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
 .card:hover,.summary-card:hover{transform:translateY(-3px);box-shadow:0 10px 27px #1236240a}
 .wallet-tile:hover{transform:translateY(-2px);box-shadow:0 6px 18px #1236240b}
 #navigation a:hover{transform:translateX(2px)}
}
@media(max-width:850px){
 #bottomNav{height:calc(68px + env(safe-area-inset-bottom,0px));padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));gap:3px;align-items:stretch;box-shadow:0 -6px 22px #132d2106}
 #bottomNav a,#bottomNav button{position:relative;min-height:44px;gap:4px;border-radius:12px;transition:background .18s ease,color .18s ease}
 #bottomNav .bottom-nav-icon{display:grid;place-items:center;width:42px;height:27px;border-radius:10px;font-size:initial;transition:background .18s ease,transform .18s ease}
 #bottomNav .bottom-nav-icon svg{width:22px;height:22px;display:block;stroke-width:1.7}
 #bottomNav .bottom-nav-label{font-size:10px;line-height:1.2;letter-spacing:0;font-weight:500}
 #bottomNav a.active .bottom-nav-icon{background:var(--green-soft);color:var(--green)}
 #bottomNav a.active .bottom-nav-label{font-weight:650}
 #bottomNav a:active .bottom-nav-icon,#bottomNav button:active .bottom-nav-icon{transform:scale(.92)}
 main{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
 #toast{bottom:calc(85px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 button:active:not(:disabled),.card:hover,.summary-card:hover,.wallet-tile:hover,#navigation a:hover,#bottomNav a:active .bottom-nav-icon,#bottomNav button:active .bottom-nav-icon{transform:none!important}
}
/* Compact public quotes; uses existing light/dark tokens. */
#cryptoMarketPanel{margin-bottom:22px}
.crypto-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.crypto-quote{min-width:0;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.crypto-quote>span{font-weight:700;display:block}
.crypto-quote strong{display:block;margin:10px 0 6px;font-size:clamp(13px,1.25vw,18px);overflow-wrap:anywhere}
.crypto-quote small{font-size:11px;color:var(--muted);line-height:1.5}
.investment-info small{display:block}
@media(max-width:1000px){.crypto-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.crypto-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crypto-quote{padding:12px}.crypto-quote strong{font-size:14px}#cryptoMarketPanel .panel-head{align-items:flex-start;flex-wrap:wrap;gap:10px}}
/* 3.0 — readable controls and compact mobile flow. */
:root{--muted:#566b62}
:root[data-theme=dark]{--muted:#b1c3b8}
small,.card small,.panel-head p,.row .amount small,td small,.hint{font-size:12px;line-height:1.6}
label,.form-grid label{font-size:13px}.card-label{font-size:13px}
button.icon,.header-actions .icon{min-width:44px;min-height:44px;width:44px;height:44px}
.text-button{min-height:40px;font-size:13px}
.avatar{width:40px;height:40px;overflow:hidden;flex:none;font-size:14px}.avatar img{width:100%;height:100%;object-fit:cover}
.nav-group{margin-bottom:18px}.nav-group h2{font-size:11px;color:var(--muted);letter-spacing:1.3px;padding:8px 13px;margin:0;font-weight:700}
#navigation a,#drawerNavigation a{font-size:13px;min-height:44px}
#navigation a.active,#drawerNavigation a.active{border-left:3px solid var(--green);padding-left:10px;background:var(--green-soft);color:var(--green);font-weight:700}
#drawerNavigation,.drawer-close{display:none}
.sidebar-foot,.sidebar-foot small{font-size:12px;overflow-wrap:anywhere;line-height:1.65}
.transaction-tabs{display:flex;gap:6px;background:var(--soft);padding:5px;border-radius:12px;margin-bottom:20px;overflow:auto}
.transaction-tabs a{min-height:44px;display:grid;place-items:center;padding:10px 20px;flex:1;color:var(--muted);font-weight:650;border-radius:9px}
.transaction-tabs a[aria-current=page]{background:var(--surface);color:var(--green);box-shadow:0 2px 8px #10291d0b}
.transaction-extra{padding:12px 0}.transaction-extra summary{min-height:44px;cursor:pointer;font-weight:650;color:var(--green)}
.transaction-extra .form-grid{margin-top:12px}
.dashboard-priority{margin-top:20px}.dashboard-expense,.comparison-grid{margin-bottom:20px}
/* Readable cash-flow periods and category comparisons. */
.dashboard-main{align-items:start}.flow-chart{height:220px}.flow-note,.expense-chart-note{font-size:12px;line-height:1.65;color:var(--muted);margin:12px 0 0}.flow-data{margin-top:12px}.flow-data>summary,.expense-categories-more>summary{font-size:13px;min-height:44px;display:flex;align-items:center;color:var(--green);font-weight:600}.flow-data table{margin-top:8px}
.expense-category-bars{max-width:960px}.expense-chart-total{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;color:var(--muted);font-size:13px}.expense-chart-total strong{font-size:18px;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.expense-bar-list{list-style:none;padding:0;margin:0;display:grid;gap:20px}.expense-bar-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:8px}.expense-bar-name{font-size:14px;line-height:1.55;color:var(--ink);min-width:0;overflow-wrap:anywhere}.expense-bar-numbers{flex:none;display:flex;align-items:baseline;justify-content:end;gap:14px;font-variant-numeric:tabular-nums}.expense-bar-numbers strong{font-size:14px;font-weight:650;color:var(--ink)}.expense-bar-numbers small{font-size:13px;min-width:52px;text-align:right;color:var(--muted)}.expense-bar-track{height:10px;border-radius:20px;background:var(--soft);overflow:hidden}.expense-bar-track>span{display:block;height:100%;border-radius:inherit}.expense-categories-more{margin-top:14px}.expense-categories-more[open]>.expense-bar-list{margin:8px 0 20px}.expense-chart-note{margin-top:22px}
@media(max-width:650px){.flow-chart{height:210px}.expense-bar-heading{gap:12px}.expense-bar-numbers{display:grid;gap:2px;justify-items:end}.expense-bar-numbers strong{font-size:13px}.expense-bar-numbers small{font-size:12px}.expense-bar-list{gap:18px}.expense-chart-total{font-size:12px;align-items:start}.expense-chart-total strong{font-size:16px}.expense-bar-name{font-size:13px}}
.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}.comparison-grid strong{display:block;font-size:24px;margin:8px 0}.comparison-grid small{display:block}
.crypto-disclosure{margin:20px 0;border:1px solid var(--line);background:var(--surface);border-radius:14px;overflow:hidden}
.crypto-disclosure>summary{list-style:none;display:flex;align-items:center;gap:15px;padding:18px 20px;min-height:56px;cursor:pointer;font-weight:700}
.crypto-disclosure>summary::-webkit-details-marker{display:none}.crypto-disclosure>summary>span:last-child{margin-left:auto}
.crypto-disclosure #cryptoMarketPanel{margin:0}.crypto-disclosure .panel{border:0;border-radius:0}
.balance-note{font-size:12px!important;line-height:1.7;color:#e1f4e9!important;overflow-wrap:anywhere}
.network-status{padding:12px 16px;background:var(--green-soft);color:var(--green);border:1px solid var(--line);border-radius:10px;margin:12px 0;font-size:13px}
.legal-links{font-size:12px!important;line-height:1.8!important;margin-top:20px}.legal-links a{display:inline-block;padding:4px}
.bottom-add>span:first-child{background:var(--green);color:var(--surface);height:42px;width:46px;border-radius:14px;font-size:29px;display:grid;place-items:center;line-height:1}
.auth-card .legal-links a{color:var(--green)}
@media(max-width:850px){
 header{height:60px;padding:6px 16px;justify-content:space-between}
 .breadcrumb{display:none}.header-actions{margin-left:auto;gap:6px}.header-actions .icon{min-width:44px;min-height:44px;width:44px;height:44px}
 .page-heading{margin-bottom:12px}.page-heading .eyebrow,.page-heading #pageDescription{display:none}.page-heading h1{font-size:24px;margin:0}
 #quickAdd{display:none}main{padding:18px 16px calc(100px + env(safe-area-inset-bottom,0px))}
 .filter-panel{margin-bottom:14px}.filter-panel>summary{padding:10px 12px;min-height:44px}
 #navigation{display:none}#drawerNavigation{display:block;overflow-y:auto;flex:1;margin-top:6px}#drawerNavigation a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:9px;color:var(--muted)}
 #drawerNavigation a.active{color:var(--green)}.drawer-title{font-size:20px;padding:12px;margin-bottom:10px}
 .drawer-close{display:block;position:absolute;right:12px;top:12px}#sidebar .brand{padding-top:40px;padding-bottom:12px}
 #bottomNav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(76px + env(safe-area-inset-bottom,0px));padding:5px 6px calc(5px + env(safe-area-inset-bottom,0px))}
 #bottomNav>a,#bottomNav>button{width:100%;min-height:60px;min-width:0;margin:0;padding:0 2px;justify-self:stretch;align-items:center;justify-content:center;text-align:center;gap:4px}.bottom-nav-label{font-size:10px}
 .dashboard-priority{grid-template-columns:1fr}.overview-grid{gap:10px}.summary-card .value{font-size:22px}.panel-head p{font-size:12px}
 .form-grid input,.form-grid select,.form-grid textarea{min-height:46px;font-size:16px}.form-grid input[type=checkbox]{min-height:0}
 .form-grid [data-field=amount] input{min-height:64px;font-size:28px;font-weight:700;color:var(--green)}
 .comparison-grid{grid-template-columns:1fr;gap:16px}.comparison-grid>div+div{border-top:1px solid var(--line);padding-top:16px}
 .crypto-disclosure>summary small{display:none}.crypto-disclosure>summary{font-size:14px;padding:15px}
 .balance-note{font-size:12px!important}.avatar{width:36px;height:36px}
 footer{flex-wrap:wrap;font-size:11px}#toast{bottom:calc(90px + env(safe-area-inset-bottom,0px))}
}

.wallet-type,.wallet-tile small,.summary-card p,.summary-card a,.balance-top p,.auth-benefits{font-size:12px;line-height:1.65}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--green);outline-offset:3px}
#sidebar[aria-modal=true]{box-shadow:0 0 0 1px var(--line),12px 0 45px #10291d33}

#balanceToggle{display:inline-grid;place-items:center;padding:9px}#balanceToggle svg{display:block;width:24px;height:24px;fill:currentColor}
.mobile-page-brand{display:none}
.balance-meta{display:flex;align-items:center;gap:4px;padding:0 22px 12px}
.balance-meta .balance-note{margin:0;padding:0;flex:1}
.value-info-button{display:inline-grid;place-items:center;flex:none;min-width:40px;min-height:40px;padding:4px;background:transparent;color:inherit;font-size:20px;border-radius:50%}
.value-info-button .info-icon{display:block;width:22px;height:22px;flex:none}
.balance-meta .value-info-button{color:#e1f4e9}
.sidebar-sync{display:flex;align-items:center;gap:3px}.sidebar-sync #syncTime{padding-left:0;margin:0;flex:1}
#valueInfoDialog{width:min(480px,calc(100% - 28px))}#valueInfoText{white-space:pre-line;font-size:14px;line-height:1.75}
.summary-card .cash-comparison{font-size:12px;line-height:1.45;margin:6px 0 12px;min-height:0}
.cash-comparison.positive{color:var(--green)}.cash-comparison.negative{color:var(--red)}
@media(max-width:850px){
 .mobile-page-brand{display:flex;align-items:center;gap:8px;min-width:0;color:var(--ink);flex:1;margin-right:10px}
 .mobile-page-brand img{width:26px;height:26px;flex:none}
 #mobilePageTitle{font-size:15px;line-height:1.2;letter-spacing:0;font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .header-actions{margin-left:0;flex:none}.page-heading{display:none}
 .overview-grid .summary-card{padding:15px 14px 0;display:flex;flex-direction:column}
 .summary-card .tile-icon{width:32px;height:32px;margin-bottom:10px}
 .summary-card h2{font-size:14px;margin:0 0 4px;line-height:1.3}
 .summary-card>p:not(.cash-comparison){font-size:12px;margin:0 0 8px;min-height:0;line-height:1.4}
 .summary-card .value{font-size:clamp(18px,5.5vw,22px);margin:0;line-height:1.25}
 .summary-card .cash-comparison{font-size:11px;line-height:1.4;margin:5px 0 9px}
 .overview-grid .summary-card>a{margin:auto -14px 0;padding:10px 14px;min-height:38px;font-size:11px;line-height:1.4}
 .overview-grid .summary-card>a>span{display:none}
 .balance-meta{padding:0 22px 10px}
 #bottomNav>a,#bottomNav>button{display:grid;grid-template-rows:42px 14px;align-content:center;justify-items:center;row-gap:4px}
 #bottomNav .bottom-nav-icon{height:42px;width:46px}
 #bottomNav .bottom-nav-label{display:block;line-height:14px;align-self:start}
}
/* 3.2.3: card footers and sidebar containment. */
.overview-grid .balance-card{display:flex;flex-direction:column;min-width:0}
.balance-card>.balance-link{margin-top:auto;flex-shrink:0}
#sidebar{overflow-x:hidden}
#navigation,#drawerNavigation{min-width:0;min-height:0;max-width:100%;overflow-x:hidden;overflow-y:auto}
#navigation .nav-group,#drawerNavigation .nav-group{min-width:0;max-width:100%}
#navigation a,#drawerNavigation a{min-width:0;max-width:100%;overflow-wrap:anywhere}
.nav-icon{flex-shrink:0}
.summary-card .liquid-context{font-size:12px;line-height:1.45;margin:7px 0 12px;color:var(--muted)}
.loan-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}
.loan-list{display:grid;gap:18px}.loan-detail{display:flex;justify-content:space-between;gap:18px;align-items:center}
.loan-detail small{display:block;margin-top:7px}.loan-list details{margin-top:18px}.loan-list details>summary{padding:10px 0;min-height:44px;font-size:13px}
@media(max-width:650px){.loan-summary{grid-template-columns:1fr}.loan-detail{align-items:flex-start}.loan-list .form-actions{gap:7px}}

/* Asset composition uses SVG so it remains available without the chart CDN. */
.asset-composition-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:32px;align-items:center}
.asset-donut{position:relative;width:224px;max-width:100%;aspect-ratio:1;margin:auto;display:grid;place-items:center}
.asset-donut svg{position:absolute;inset:0;width:100%;height:100%}
.asset-donut-center{position:relative;max-width:74%;text-align:center;display:grid;gap:8px;overflow-wrap:anywhere}
.asset-donut-center span{font-size:13px;color:var(--muted)}
.asset-donut-center strong{font-size:19px;line-height:1.3;font-variant-numeric:tabular-nums}
.asset-composition-legend{list-style:none;margin:0;padding:0}
.asset-composition-legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px 0;border-bottom:1px solid var(--line)}
.asset-swatch{width:10px;height:10px;border-radius:50%;margin-top:5px}
.asset-part-label,.asset-part-value{display:grid;gap:5px;min-width:0}
.asset-part-label strong{font-size:14px;overflow-wrap:anywhere}
.asset-part-label small,.asset-part-value small{color:var(--muted);font-size:12px;line-height:1.5}
.asset-part-value{text-align:right;font-variant-numeric:tabular-nums}
.asset-part-value strong{font-size:15px;overflow-wrap:anywhere}
.asset-composition-note{color:var(--muted);font-size:13px;line-height:1.6;margin:16px 0 0}
@media(max-width:650px){.asset-composition-layout{grid-template-columns:minmax(0,1fr);gap:8px}.asset-donut{width:208px}.asset-composition-legend li{grid-template-columns:10px minmax(0,1fr) minmax(0,45%);gap:9px}.asset-part-value strong{font-size:14px}}

.daily-cash-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.daily-cash-cards .card{min-width:0;background:var(--soft)}
.daily-cash-cards .value{font-size:24px;overflow-wrap:anywhere}
.daily-selected-label{font-size:14px;color:var(--muted);margin:0 0 14px}
.daily-date-label{font-size:13px;color:var(--muted);display:grid;gap:5px;max-width:100%;flex-shrink:0}
.daily-date-label input{font-size:16px;min-height:44px;max-width:100%;min-width:0}
.daily-cash-table{max-height:360px;overflow:auto;border-radius:8px}
.daily-cash-table table{margin:0}.daily-cash-table thead{position:sticky;top:0;background:var(--surface)}
@media(max-width:650px){.daily-cash-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.daily-cash-cards .card:last-child{grid-column:1/-1}.daily-cash-cards .value{font-size:20px}.panel-head:has(.daily-date-label){flex-wrap:wrap;gap:12px}}

.account-identity{display:flex;align-items:center;gap:12px;min-width:0}
.account-identity-copy{display:grid;gap:4px;min-width:0}
.account-identity h2{margin:0;min-width:0;overflow-wrap:anywhere}
.account-logo{position:relative;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:11px;background:var(--green-soft);color:var(--green);overflow:hidden}
.account-logo>svg{width:23px;height:23px}
.account-logo-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;padding:4px;background:#fff}
.account-logo--dana .account-logo-image{background:#108ee9;padding:5px}
.account-logo--blu .account-logo-image{padding:5px}
.account-logo--brimo .account-logo-image{padding:0}
.wallet-tile .account-identity{gap:10px}.wallet-tile .account-identity-copy>strong{line-height:1.5}.wallet-tile .wallet-type{line-height:1.4}
@media(max-width:650px){.account-identity{gap:10px}.wallet-tile .account-logo{flex-basis:34px;width:34px;height:34px;border-radius:9px}.wallet-tile .account-identity{align-items:flex-start}}

.history-steps{padding-left:1.4rem;line-height:1.65;color:var(--muted)}
.history-steps li+li{margin-top:.35rem}
#historyWorkspace{margin-top:1.3rem}
#historyWorkspace h3{font-size:1rem;margin:1.2rem 0 .6rem}
.history-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}
.history-check{display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:14px;min-width:0}
.history-check small{color:var(--muted);line-height:1.5}
.history-check label{display:grid;gap:5px;font-size:.9rem}
.history-check input{width:100%;min-width:0}
.history-preview{margin-top:16px;padding:16px;border:1px solid var(--green);border-radius:14px;overflow-x:auto}
.history-preview p{line-height:1.55}

/* 3.2.3 — perlu perhatian, daftar transaksi ringkas, status kosong statis */
.empty-icon{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--green-soft);color:var(--green)}
.dashboard-attention{margin-bottom:20px}
.dashboard-attention .panel{margin:0}
.attention-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.attention-item{display:grid;grid-template-columns:10px 1fr auto;align-items:start;gap:12px;padding:11px 14px;border-radius:10px;background:var(--soft)}
.attention-item p{margin:0;font-size:12.5px;line-height:1.55;color:var(--ink)}
.attention-item .text-button{white-space:nowrap;padding:0 2px;font-size:12px;min-height:0;line-height:1.55}
.attention-dot{width:8px;height:8px;border-radius:50%;margin-top:6px;background:var(--muted)}
.attention-item.danger{background:var(--red-soft)}
.attention-item.danger .attention-dot{background:var(--red)}
.attention-item.warn{background:color-mix(in srgb,var(--gold) 13%,var(--surface))}
.attention-item.warn .attention-dot{background:var(--gold)}
.attention-item.info .attention-dot{background:var(--green)}
.attention-ok{margin:0;font-size:12.5px;color:var(--green)}
.budget-daily{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:12px;padding:12px 14px;border-radius:10px;background:var(--green-soft)}
.budget-daily span{font-size:12px;color:var(--muted)}
.budget-daily strong{font-size:20px;font-variant-numeric:tabular-nums;color:var(--green)}
.budget-daily strong.negative{color:var(--red)}
.budget-daily small{font-size:11px;color:var(--muted);margin-left:auto}
.tx-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:4px 0 16px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--line)}
.tx-summary>div{background:var(--surface);padding:11px 14px;display:grid;gap:3px}
.tx-summary span{font-size:11px;color:var(--muted)}
.tx-summary strong{font-size:15px;font-variant-numeric:tabular-nums}
.tx-list{display:grid;gap:14px}
.tx-day-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 12px;border-radius:8px;background:var(--soft);font-size:12px}
.tx-day-head span{font-variant-numeric:tabular-nums;color:var(--muted)}
.tx-day ul{list-style:none;margin:0;padding:0}
.tx-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(110px,auto) auto;align-items:center;gap:14px;padding:10px 12px;border-bottom:1px solid var(--line)}
.tx-row:last-child{border-bottom:0}
.tx-row.muted{opacity:.62}
.tx-main{min-width:0}
.tx-main strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tx-main small{display:block;margin-top:2px;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tx-tags{display:flex;gap:5px}
.tx-amount{text-align:right;font-weight:650;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.tx-amount small{display:block;font-weight:400;font-size:10px;color:var(--muted)}
.tx-actions .table-actions{gap:2px;flex-wrap:nowrap}
.tx-actions .text-button{font-size:11.5px;padding:4px 6px}
.tx-actions .subtitle{font-size:11px}
@media (hover:hover) and (pointer:fine){
 .tx-row .tx-actions{opacity:.35;transition:opacity .15s}
 .tx-row:hover .tx-actions,.tx-row:focus-within .tx-actions{opacity:1}
}
.side-income-total{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:650px){
 .tx-summary{grid-template-columns:1fr 1fr}
 .tx-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:11px 4px}
 .tx-tags{grid-column:1;grid-row:2}
 .tx-tags:empty{display:none}
 .tx-actions{grid-column:1/-1}
 .tx-actions .table-actions{justify-content:flex-start}
 .attention-item{grid-template-columns:10px 1fr}
 .attention-item .text-button{grid-column:2;justify-self:start}
 .side-income-total{grid-template-columns:1fr}
 .budget-daily small{margin-left:0;width:100%}
}
@media print{.tx-actions{display:none}}

.note.neutral{background:var(--soft);color:var(--ink);line-height:1.6}

.calendar-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}.calendar-controls button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;height:44px;line-height:1}.calendar-controls button.icon{width:44px;flex:0 0 44px;padding:0;font-size:inherit}.calendar-controls .calendar-arrow{display:block;width:20px;height:20px;flex:none;margin:0;pointer-events:none}.bill-calendar-swipe{touch-action:pan-y;user-select:none}.bill-calendar-swipe .cal-bill{overflow-wrap:anywhere;white-space:normal}.bill-calendar-swipe .cal-bill small{display:block;font-size:10px}.calendar .cal-today{background:var(--green-soft);box-shadow:inset 0 0 0 1px var(--green)}.calendar-empty{margin:14px 0 0;font-size:13px}#billCalendarRegion .panel-head{flex-wrap:wrap;gap:12px}@media(max-width:650px){#billCalendarRegion .panel{padding:14px}.calendar-controls{justify-content:flex-end;width:100%}.bill-calendar-swipe>div{min-width:0}.bill-calendar-swipe .cal-bill{font-size:10px;line-height:1.4;padding:3px}.bill-calendar-swipe .cal-bill small{font-size:9px}}
