@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--green:#173f36;--lime:#dcedbd;--ink:#243d35;--muted:#819089;--line:#e7ece7;--bg:#f6f8f4;--red:#ce7063;--soft:#f0f5ed;--font:'DM Sans',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px var(--font)}button,input,select,textarea{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button{transition:background .15s,transform .15s}button:active{transform:translateY(1px)}a{color:inherit}svg{display:block}button svg{width:18px;height:18px}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:Manrope,var(--font)}h1{font-size:32px;letter-spacing:-1.1px;font-weight:750;line-height:1.35}h2{font-size:19px;letter-spacing:-.5px}h3{font-size:15px;font-weight:700}.sidebar{position:fixed;width:242px;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;text-decoration:none;font-size:29px;font-weight:800;letter-spacing:-1.3px;gap:10px;padding:0 9px}.brand-dot{margin-left:-11px;color:#93b576}.brand-icon{width:34px;height:36px;border-radius:11px;background:var(--green);color:var(--lime);font-family:serif;font-size:28px;text-align:center;line-height:35px}.workspace{display:flex;gap:10px;align-items:center;padding:19px 9px;margin:26px 0 30px;border-block:1px solid var(--line);font-size:12px;font-weight:650}.avatar{width:34px;height:34px;border-radius:50%;background:#f0e8d7;display:grid;place-items:center;color:#7e7152;font-weight:600;flex-shrink:0}.small{width:30px;height:30px}small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:5px}.nav-label{font-size:9px;letter-spacing:1.7px;color:#9ba79f;margin:0 13px 14px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:8px;background:none;padding:13px 14px;margin-bottom:5px;color:#7c8b83;text-align:left;font-weight:500;font-size:13px}.nav-item svg{width:18px;height:18px}.nav-item:hover{background:var(--soft)}.nav-item.active{background:var(--green);color:#fff}.sidebar-bottom{margin-top:auto;padding-top:30px}.tip{background:#f5f7ee;border:1px solid #e8eddc;border-radius:12px;padding:17px;margin-bottom:20px}.tip>span{font-size:25px;color:#78955d}.tip strong{display:block;font-size:13px;line-height:1.6;margin-top:8px}.tip p{font-size:11px;color:#8a9581;line-height:1.65;margin-top:8px}.local-status{font-size:9px;color:#929d94;display:flex;align-items:center;gap:6px;margin:17px 8px 0}.local-status i{width:5px;height:5px;background:#8dac79;border-radius:50%}.app{margin-left:242px}header{height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{font-size:11px;color:#98a49d}.breadcrumb span{margin:0 12px;color:#c0c7c1}.breadcrumb b{color:#52685a;font-weight:500}.header-actions{display:flex;gap:20px;align-items:center}.private-badge{font-size:10px;color:#849388}.icon-button{background:transparent;border:0;color:#75867c;border-radius:7px;padding:6px;display:grid;place-items:center}.icon-button:hover{background:var(--soft)}main{padding:26px 38px 0;max-width:1600px;margin:auto}.demo-banner{display:flex;align-items:center;justify-content:space-between;background:#edf2e7;border:1px solid #e0e8d7;border-radius:8px;padding:11px 16px;color:#718264;font-size:11px;margin-bottom:28px;gap:12px}.demo-banner button{font-size:11px;background:none;border:0;color:var(--green);font-weight:700;white-space:nowrap}.demo-banner button span{margin-left:10px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}.eyebrow{font-size:8px;letter-spacing:1.7px;font-weight:650;color:#8b9a85;margin-bottom:9px}.subtitle{color:#88958b;font-size:12px;margin-top:8px}.primary,.secondary,.danger{border:0;border-radius:7px;padding:12px 17px;font-size:12px;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:8px}.primary{background:var(--green);color:white;box-shadow:0 3px 7px #173f3610;white-space:nowrap}.primary:hover{background:#28564a}.secondary{background:white;border:1px solid var(--line);color:#6d8073}.secondary:hover{background:#f0f5ed}.danger{color:#ab5149;background:#fcf0ed}.toolbar{display:flex;align-items:center;gap:15px;margin-bottom:23px}.period{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;background:white;padding:3px 4px}.period button{border:0;background:none;padding:4px 10px;color:#94a090;font-size:20px}.period input{width:153px;border:0;background:none;color:#52675a;font-size:12px;padding:5px}.period-hint{font-size:10px;color:#99a394}.export{margin-left:auto;padding:9px 14px;font-size:10px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);padding:20px;border-radius:12px;min-width:0}.stat:first-child{background:var(--green);color:white;border-color:var(--green);position:relative;overflow:hidden}.stat:first-child:after{content:'';position:absolute;width:140px;height:140px;border:1px solid #ffffff12;right:-60px;top:-35px;border-radius:50%;box-shadow:0 0 0 23px #ffffff04,0 0 0 46px #ffffff03}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#869587;font-size:11px}.stat:first-child .stat-top{color:#c4d5ca}.stat-icon{border-radius:7px;background:#f2f6ef;padding:7px;color:#839f70}.stat:first-child .stat-icon{background:#ffffff10;color:#d9edb8}.stat-icon svg{width:15px;height:15px}.stat-value{font:700 25px Manrope,var(--font);letter-spacing:-1px;margin:16px 0 12px;white-space:nowrap}.stat:first-child .stat-value{color:#f3f8e7}.stat-foot{font-size:9px;color:#9aa597}.stat:first-child .stat-foot{color:#b5c9b7}.stat-foot b{color:#6b9a5b;font-weight:500}.two-col{display:grid;grid-template-columns:1.6fr 1fr;gap:21px;margin-bottom:23px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:23px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:12px}.panel-head p{font-size:10px;color:#9aa394;margin-top:6px}.text-button{border:0;background:none;color:#66835b;font-size:10px;padding:4px;white-space:nowrap}.legend{display:flex;gap:16px;font-size:9px;color:#929c90}.legend span{display:flex;align-items:center;gap:5px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#72976b}.chart svg{width:100%;height:auto;max-height:200px}.chart-label{fill:#9ba499;font:10px var(--font)}.chart-grid{stroke:#eff2ec;stroke-dasharray:4 4;stroke-width:1}.chart-caption{display:flex;justify-content:space-between;border-top:1px solid #f0f2ec;padding-top:14px;margin-top:13px;font-size:10px;color:#8f9b8c}.chart-caption b{color:#628551;font-weight:500}.donut-wrap{display:flex;gap:24px;align-items:center;margin:5px 0 20px}.donut{width:150px;height:150px;border-radius:50%;position:relative;flex-shrink:0;display:grid;place-items:center}.donut:before{content:'';position:absolute;inset:22px;background:white;border-radius:50%}.donut-center{position:relative;text-align:center}.donut-center small{font-size:9px;margin:0 0 4px}.donut-center b{font:700 16px Manrope,var(--font);letter-spacing:-.5px}.category-list{flex:1;min-width:0}.category-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;margin:13px 0;color:#81907b}.category-line span{display:flex;align-items:center;gap:7px;min-width:0}.category-line b{color:#566b4f;font-weight:500}.insight{border-radius:7px;background:#f6f8f1;padding:10px 12px;font-size:10px;line-height:1.6;color:#87937b}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px}th{font-size:9px;font-weight:500;color:#a0a99c;text-align:left;padding:0 10px 13px;border-bottom:1px solid var(--line)}td{padding:15px 10px;border-bottom:1px solid #f1f3ed;color:#899582}tr:last-child td{border-bottom:0}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{text-align:right;padding-right:0}.tx-name{display:flex;align-items:center;gap:10px;color:#50674d;font-weight:500}.tx-icon{width:32px;height:32px;border-radius:8px;background:#f1f5ec;display:grid;place-items:center;color:#899e77}.tx-icon svg{width:15px;height:15px}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.positive{color:#648b56!important}.negative{color:#bd7a6c!important}.tag{border-radius:5px;background:#f2f5ed;padding:4px 7px;font-size:9px;color:#8a987d;display:inline-block}.tag.pending{color:#b09350;background:#faf5e8}.due-item{display:flex;gap:11px;align-items:center;padding:13px 0;border-bottom:1px solid #f0f3eb}.due-date{background:#f5f6ef;border-radius:7px;text-align:center;width:36px;padding:6px;color:#7b8d6f;font-size:14px}.due-date small{font-size:8px;margin:1px 0 0}.due-info{flex:1;min-width:0}.due-info b{font-size:11px;font-weight:500}.due-info small{font-size:9px}.due-amount{text-align:right;font-size:11px}.due-amount button{display:block;margin-top:5px;margin-left:auto}.mini-summary{padding-top:15px;display:flex;justify-content:space-between;font-size:10px;color:#87967c}.mini-summary b{color:#5d7551}.bottom-note{display:flex;gap:13px;align-items:center;margin:24px 0;background:#edf2e4;border:1px solid #e4ebd9;border-radius:10px;padding:16px 20px}.bottom-note>span{font-size:22px;color:#8fa673}.bottom-note b{font-size:11px;font-weight:600}.bottom-note p{font-size:10px;color:#8e9c81;margin-top:4px}footer{display:flex;align-items:center;gap:0;font-size:14px;font-weight:700;color:#9ba992;padding:23px 0;border-top:1px solid var(--line);margin-top:28px}footer>span:first-child{color:#8ca67a}footer>span:nth-child(2){font-size:9px;font-weight:400;margin-left:13px;color:#a4ad9d}.footer-right{margin-left:auto;font-weight:400;font-size:9px;color:#a4ad9d}.filter-bar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.filter-bar input{flex:1;min-width:160px}input,select,textarea{border:1px solid #dde4da;border-radius:7px;background:#fff;padding:11px;color:#41573b;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #a6bc8c;border-color:#a6bc8c}.filter-bar input,.filter-bar select{padding:9px;font-size:11px}.empty{text-align:center;padding:45px 20px;color:#829176}.empty strong{display:block;font-size:15px;color:#546d47;margin-bottom:9px}.empty p{font-size:12px;line-height:1.7}.empty .primary{margin-top:20px}.grid-three{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.progress{background:#edf1e6;height:7px;border-radius:10px;margin:16px 0 10px;overflow:hidden}.progress>span{display:block;height:100%;background:#94b174;border-radius:10px}.progress.over>span{background:#cd8b6b}.budget-card{padding:22px}.budget-card .amount{font-size:24px;font-family:Manrope,var(--font);font-weight:700;margin-top:23px}.budget-card .caption{display:flex;justify-content:space-between;color:#8c9a82;font-size:10px;gap:8px}.budget-card .actions{display:flex;gap:8px;margin-top:22px}.section-copy{font-size:12px;color:#849476;line-height:1.8;margin-bottom:20px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid p{font-size:12px;line-height:1.8;color:#8a9880;margin:12px 0 20px}.settings-grid .secondary{margin:0 8px 10px 0}.action-row{display:flex;gap:5px;justify-content:flex-end}.action-row button{border:0;background:#f4f6ef;border-radius:5px;padding:5px 8px;font-size:10px;color:#89977e}.action-row button:hover{background:#e9eedf}dialog{border:1px solid var(--line);border-radius:16px;padding:27px;width:min(540px,calc(100% - 28px));max-height:90vh;box-shadow:0 20px 100px #12382030;color:var(--ink)}dialog::backdrop{background:#142b2466;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{font-size:11px;font-weight:500;display:flex;flex-direction:column;gap:7px;color:#76886b}.full{grid-column:1/-1}textarea{resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.form-note{font-size:11px;color:#96a08b;line-height:1.6;margin-top:16px}.check{display:flex;flex-direction:row;align-items:center}.check input{width:16px;height:16px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#173f36;color:#fff;padding:13px 22px;border-radius:9px;opacity:0;pointer-events:none;transition:.2s;z-index:100;font-size:12px;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.hidden{display:none!important}.goal-emoji{font-size:26px}.overview-total{background:#edf2e4;border-radius:8px;padding:15px 18px;margin-bottom:22px;display:flex;justify-content:space-between;font-size:12px;color:#788d66}.mobile-only{display:none}@media(min-width:1600px){main{padding-top:35px}.stat-value{font-size:30px}.panel{padding:26px}.chart svg{max-height:230px}.donut{width:170px;height:170px}.donut:before{inset:25px}}@media(max-width:1200px){.sidebar{width:205px;padding:25px 15px}.app{margin-left:205px}main{padding:25px}header{padding:0 25px}.stat{padding:16px}.stat-value{font-size:21px}.two-col{grid-template-columns:1.35fr 1fr}.donut-wrap{gap:15px;flex-direction:column}.donut{width:135px;height:135px}.category-list{width:100%;display:grid;grid-template-columns:1fr 1fr;column-gap:16px}.category-line{margin:5px 0}.grid-three{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.sidebar{width:78px;padding:25px 12px}.brand{padding:0 9px;font-size:0;gap:0}.brand-dot,.workspace,.nav-label,.nav-item span,.tip,.local-status{display:none}.nav-item{justify-content:center;padding:15px;margin-bottom:8px}.sidebar nav{margin-top:45px}.app{margin-left:78px}.cards{gap:10px}.stat-value{font-size:20px}.stat-top{font-size:10px}.stat-foot{font-size:8px}.stat-icon{padding:5px}.two-col{grid-template-columns:1fr 1fr}.page-heading h1{font-size:27px}.period-hint{display:none}.panel{padding:18px}.legend{gap:8px;font-size:8px}}@media(max-width:650px){.sidebar{inset:auto 0 0 0;width:100%;height:66px;padding:5px 8px;flex-direction:row;background:#fff;box-shadow:0 -3px 18px #173f3608;border-top:1px solid var(--line)}.brand,.sidebar-bottom{display:none}.sidebar nav{margin:0;display:flex;width:100%;justify-content:space-around}.nav-item{margin:0;width:20%;flex-direction:column;gap:5px;padding:7px 3px;border-radius:8px}.nav-item span{display:block;font-size:8px}.nav-item.active{background:#eef3e7;color:var(--green)}.app{margin:0}header{height:57px;padding:0 18px}.header-actions{gap:12px}.private-badge{display:none}main{padding:18px 15px 80px}.demo-banner{padding:10px 12px;margin-bottom:22px;align-items:flex-start;flex-direction:column;font-size:10px;gap:7px}.demo-banner button{padding:0;font-size:10px}.page-heading{align-items:flex-start;margin-bottom:20px;flex-wrap:wrap;gap:15px}h1{font-size:27px!important}.subtitle{font-size:11px;line-height:1.6}.eyebrow{font-size:7px}.page-heading .primary{padding:10px 14px;font-size:11px}.toolbar{margin-bottom:17px;gap:8px}.period input{width:141px;font-size:11px}.export{font-size:9px;padding:10px}.cards{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:17px}.stat{padding:16px}.stat-value{font-size:23px;margin:15px 0 10px}.stat-foot{font-size:9px;line-height:1.5}.two-col{grid-template-columns:1fr;gap:17px;margin-bottom:17px}.panel{padding:19px}.donut-wrap{flex-direction:row;gap:25px}.category-list{display:block}.category-line{margin:13px 0}.panel-head{margin-bottom:20px}.legend{font-size:9px}.grid-three,.settings-grid{grid-template-columns:1fr}.footer-right{display:none}.bottom-note{padding:14px}.bottom-note p{line-height:1.6}td{padding:13px 8px}.form-grid{gap:12px}dialog{padding:22px}.filter-bar select{flex:1}.overview-total{gap:12px;flex-direction:column}.mobile-only{display:inline-flex}#toast{bottom:82px}.budget-card .amount{margin-top:15px}}
/* Clareza cloud: preserve visual identity, expand touch targets and safe areas. */
.loading-screen{position:fixed;inset:0;z-index:500;background:#f6f8f4;display:grid;place-items:center;padding:25px}.login-card{background:white;border:1px solid var(--line);padding:38px;border-radius:20px;width:min(420px,100%);text-align:center;box-shadow:0 16px 70px #173f360b}.login-card .brand-icon{display:inline-block;margin-bottom:24px}.login-card p{margin:15px 0 25px;color:#829079;line-height:1.7}.login-card a{text-decoration:none}.profile-button{border:0;cursor:pointer}.notification-button{position:relative;font-size:23px}.notification-button span{position:absolute;top:0;right:-7px;background:#c68667;color:white;border:2px solid white;border-radius:20px;min-width:17px;height:17px;font-size:9px;display:grid;place-items:center}.sync-banner{background:#fff5dd;border:1px solid #ecdfb8;padding:15px 18px;border-radius:10px;display:flex;justify-content:space-between;gap:15px;margin-bottom:20px;color:#8c7139;font-size:12px;align-items:center}.sync-banner>div{display:flex;gap:8px;flex-shrink:0}.mobile-transactions{display:none}.notice-list{max-height:48vh;overflow:auto}.notice-list .due-info small{line-height:1.6}.notice-list .due-item{align-items:flex-start}.notice-list .due-info{overflow-wrap:anywhere}.settings-grid .primary{margin:0 8px 10px 0}.local-status{line-height:1.5}.workspace>div{overflow:hidden;text-overflow:ellipsis}.mobile-tx{padding:15px 0;border-bottom:1px solid var(--line)}.mobile-tx:last-child{border-bottom:0}.mobile-tx-head{display:flex;gap:10px;justify-content:space-between}.mobile-tx-head .tx-name{min-width:0;align-items:flex-start}.mobile-tx-head .tx-name>div{overflow-wrap:anywhere}.mobile-tx-head .tx-icon{flex-shrink:0}.mobile-tx-head>.money{font-size:12px;flex-shrink:0}.mobile-tx-bottom{display:flex;gap:10px;justify-content:space-between;margin-top:12px}.tx-name>div{max-width:260px;white-space:normal;overflow-wrap:anywhere}.modal-head .icon-button{min-width:40px;min-height:40px}.filter-bar select{max-width:100%}
@media(max-width:650px){.desktop-table{display:none}.mobile-transactions{display:block}.sidebar{height:calc(68px + env(safe-area-inset-bottom));padding-bottom:calc(5px + env(safe-area-inset-bottom))}.app main{padding-bottom:calc(95px + env(safe-area-inset-bottom))}header{padding-top:env(safe-area-inset-top);height:calc(61px + env(safe-area-inset-top))}.header-actions{gap:13px}.icon-button{min-width:40px;min-height:40px}.primary,.secondary,.danger{min-height:44px}.text-button{min-height:40px}.form-grid input,.form-grid select,.form-grid textarea,.filter-bar input,.filter-bar select{font-size:16px;min-height:44px}.form-grid{grid-template-columns:1fr}.period button{min-width:32px;min-height:38px}.period input{font-size:13px;width:143px}.stat-value{font-size:clamp(17px,5.4vw,23px)}.stat-top{gap:4px}.stat{padding:14px}.page-heading .primary{width:100%;min-height:45px}.toolbar{flex-wrap:wrap}.sync-banner{flex-direction:column;align-items:flex-start}.sync-banner>div{flex-wrap:wrap}.action-row button{min-height:38px;padding:8px 11px}.mobile-tx .tx-name{font-size:12px}.mobile-tx .tx-name small{font-size:10px}.donut-wrap{gap:15px}.donut{width:125px;height:125px}.category-line{font-size:10px}.bottom-note{flex-wrap:wrap}.bottom-note>div{flex:1;min-width:190px}.bottom-note .text-button{margin-left:30px!important}dialog{max-height:calc(100dvh - 24px);width:calc(100% - 20px);padding:20px}.notice-list{max-height:55dvh}.notice-list .secondary{padding:8px 10px;font-size:10px}.settings-grid .primary,.settings-grid .secondary,.settings-grid .danger{width:100%;margin:0 0 12px}.notification-button{font-size:24px}#toast{bottom:calc(85px + env(safe-area-inset-bottom))}.breadcrumb{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.login-card .primary,.login-card .secondary{width:100%;margin:0 0 12px;min-height:44px}.login-card small{line-height:1.65;margin:10px 0}.login-card .text-button{display:inline-block;margin:10px 0;text-decoration:none}

.auth-card{text-align:left;max-height:calc(100dvh - 30px);overflow:auto;width:min(460px,100%)}.auth-card h2{font-size:23px}.auth-card .brand-icon{margin-bottom:18px}.auth-card p{margin:12px 0 20px}.auth-tabs{display:flex;gap:5px;background:#f1f5ec;border-radius:9px;padding:4px;margin-bottom:22px}.auth-tabs button{width:50%;border:0;border-radius:6px;background:none;padding:10px;color:#7c9072}.auth-tabs button.selected{background:white;color:#173f36;box-shadow:0 2px 5px #173f3608}.auth-card label{margin-bottom:16px}.auth-card input{width:100%;min-height:45px;font-size:16px}.password-wrap{position:relative}.password-wrap input{padding-right:72px}.password-wrap button{position:absolute;right:8px;top:3px;height:39px;margin:0!important}.auth-card .auth-error{background:#fff0e9;border-radius:7px;padding:10px;color:#a95e48;font-size:12px}.recovery-code{display:block;word-break:break-all;background:#edf3e5;border:1px solid #d9e6cd;border-radius:10px;padding:16px;line-height:1.8;margin:18px 0;user-select:all}.auth-card .check input{width:18px;min-height:18px;flex-shrink:0}.auth-card button:disabled{opacity:.5;cursor:not-allowed}.auth-card .check{line-height:1.6}
.read-only-note{background:#f5efda;border:1px solid #e8ddbc;border-radius:9px;padding:15px 18px;margin-bottom:20px;color:#9a8552;font-size:12px;line-height:1.7}button:disabled{opacity:.5;cursor:not-allowed}

.logout-button{white-space:nowrap;min-height:40px;padding:9px 13px;color:#526e49}.logout-button:hover{background:#eaf1e2}@media(max-width:650px){.header-actions{gap:8px}.logout-button{min-height:42px;padding:8px 10px;font-size:11px}header>.breadcrumb{max-width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}@media(max-width:420px){header>.breadcrumb{display:none}.header-actions{margin-left:auto;width:100%;justify-content:flex-end}.header-actions>.logout-button:first-child{margin-right:auto}}

/* Avoid accidental double-tap zoom; preserve scrolling and pinch-to-zoom. */
html,body,body *{touch-action:manipulation}

/* Dashboard drilldowns and financial reporting. */
.stat-link{text-align:left;font:inherit;width:100%;color:inherit;display:flex;flex-direction:column;gap:0;position:relative}
.stat-link .stat-top{width:100%}.stat-link .stat-value{display:block;margin:16px 0 8px;overflow-wrap:anywhere}.stat-link .stat-foot{display:block;flex:1}
.stat-link .stat-action{display:flex;justify-content:space-between;width:100%;padding-top:14px;margin-top:14px;border-top:1px solid #879c7030;font-size:12px;font-weight:600}
.stat-link:first-child{color:#fff}.stat-link:hover{transform:translateY(-2px);box-shadow:0 8px 24px #173f3612}.stat-link:focus-visible,.chart-data:focus-visible{outline:3px solid #88aa56;outline-offset:4px}
.trend-panel,.spending-panel{min-width:0}.chart-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px;padding:16px 0;border-block:1px solid #e9ece3}.chart-kpis small{display:block;font-size:11px;color:#737b6b;margin-bottom:8px}.chart-kpis b{display:block;font-size:16px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.chart-legend{flex-wrap:wrap;gap:14px;margin-bottom:10px}.chart-legend small{margin-left:auto;color:#737b6b}
.chart-data{overflow-x:auto;margin-top:8px}.chart-data table{width:100%;font-size:11px;border-collapse:collapse}.chart-data caption{text-align:left;font-size:12px;font-weight:600;margin-bottom:10px}.chart-data th,.chart-data td{padding:9px 7px;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.chart-data th:first-child{text-align:left}.chart-data tbody th{font-weight:400}.chart-data thead th{font-size:10px}.chart-data .current-month{background:#f0f4e9}.chart-data .current-month th{font-weight:700}
.spending-overview{display:flex;align-items:center;gap:22px;margin:20px 0 24px}.spending-overview .donut{width:156px;height:156px;flex-shrink:0}.spending-overview .donut-center b{font-size:15px;overflow-wrap:anywhere;max-width:108px}.spending-meta{display:flex;flex-direction:column;gap:5px;font-size:12px}.spending-meta>b{font-size:28px}.spending-meta small{color:#737b6b}.spending-meta small:nth-last-child(2){margin-top:12px}.category-breakdown{display:flex;flex-direction:column;gap:17px}.category-detail>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px}.category-detail strong{white-space:nowrap;font-variant-numeric:tabular-nums}.category-detail small{font-size:10px;color:#737b6b}.category-track{height:6px;background:#eef1e8;border-radius:6px;overflow:hidden;margin:8px 0 5px}.category-track span{height:100%;display:block;border-radius:6px}.trend-panel .insight,.spending-panel .insight{line-height:1.7}.filter-bar{flex-wrap:wrap}
@media(min-width:651px) and (max-width:1100px){.spending-overview{flex-direction:column;align-items:flex-start}.spending-meta{display:grid;grid-template-columns:1fr 1fr;align-items:center}.chart-kpis{gap:7px}.chart-kpis b{font-size:13px}}
@media(max-width:650px){.stat-link .stat-value{font-size:21px}.stat-link .stat-action{font-size:11px}.chart-kpis{gap:8px}.chart-kpis b{font-size:13px}.chart-kpis small{font-size:10px}.spending-overview{gap:16px}.spending-overview .donut{width:140px;height:140px}.chart-data table{font-size:10px}.chart-data th,.chart-data td{padding:9px 6px}.chart-legend{font-size:10px}.category-detail>div:first-child{flex-wrap:wrap;gap:4px}}

/* Mobile transaction descriptions use the entire card width. */
@media(max-width:650px){
 .mobile-tx-head{flex-direction:column;gap:12px}
 .mobile-tx-head .tx-name{width:100%;font-size:15px;line-height:1.55}
 .mobile-tx-head .tx-name>div{max-width:none;min-width:0;flex:1;word-break:normal;overflow-wrap:break-word;hyphens:none}
 .mobile-tx .tx-name small{font-size:12px;line-height:1.6}
 .mobile-tx-head>.money{font-size:16px;align-self:flex-end;white-space:nowrap}
 .mobile-tx-bottom{flex-wrap:wrap;align-items:center}
 .mobile-tx-bottom .action-row{flex-wrap:wrap}
 #tx-table .table-wrap{overflow:visible}
 #tx-table .table-wrap table,#tx-table .table-wrap tbody{display:block;width:100%}
 #tx-table .table-wrap thead{display:none}
 #tx-table .table-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}
 #tx-table .table-wrap td{display:block;min-width:0;padding:0;border:0;white-space:normal;font-size:13px;line-height:1.6}
 #tx-table .table-wrap td:first-child,#tx-table .table-wrap td:last-child{grid-column:1/-1}
 #tx-table .tx-name{width:100%;align-items:flex-start;font-size:15px;line-height:1.55}
 #tx-table .tx-name>div{max-width:none;min-width:0;flex:1;word-break:normal;overflow-wrap:break-word;hyphens:none}
 #tx-table .tx-icon{flex-shrink:0}
 #tx-table .table-wrap td.money{font-size:16px;text-align:right;white-space:nowrap}
 #tx-table .action-row{display:flex;flex-wrap:wrap;justify-content:flex-end}
 .filter-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .filter-bar input[type="search"]{grid-column:1/-1;width:100%;min-width:0}
 .filter-bar select{width:100%;min-width:0}
}

/* Keep every editable field readable without iOS focus zoom, including fields
   outside .form-grid (loan description, clients, profile and admin forms). */
@media (max-width:1024px), (pointer:coarse) {
 body input, body select, body textarea {
  font-size:16px !important;
 }
}
