:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#24382f;background:#f7f7ef;font-synthesis:none;font-weight:400;line-height:1.5;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;transition:background .15s}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #bc710b;outline-offset:3px}input:focus,select:focus{outline:2px solid #225b48;outline-offset:2px}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,6vw,3.2rem);font-weight:650;line-height:1.1;letter-spacing:-.04em;overflow-wrap:anywhere}h2{font-size:1.13rem;letter-spacing:-.025em;font-weight:650}h3{font-size:1.05rem}p{color:#65736b}.topbar{max-width:1040px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:calc(22px + env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 20px max(24px,env(safe-area-inset-left));border-bottom:1px solid #dde3d6}.brand{display:flex;gap:10px;align-items:center;font-size:1.6rem;font-weight:700;letter-spacing:-.06em;text-decoration:none}.brand-icon{display:inline-flex;align-items:center;justify-content:center;background:#225b48;color:#e5eea9;border-radius:12px;width:37px;height:37px;font-size:1.6rem;padding-bottom:3px}.quiet,.text-button{border:0;background:transparent;color:#225b48;font-weight:600;text-decoration:underline;text-underline-offset:4px;padding:8px}.quiet{font-size:.86rem;text-decoration:none}.quiet:hover,.text-button:hover{background:#e9edde;border-radius:8px}main{max-width:840px;margin:auto;padding:0 24px}.notice{color:#225b48;font-size:.9rem;margin:16px 0;overflow-wrap:anywhere}.notice:empty{margin:0;height:28px}.eyebrow{font-size:.7rem;letter-spacing:.16em;font-weight:700;color:#647460}.welcome{position:relative;max-width:650px;margin:45px auto 60px}.welcome h1{margin:18px 0 24px;font-size:clamp(2.8rem,8vw,4.8rem)}.intro{font-size:1.12rem;max-width:430px}.welcome-actions{display:flex;gap:12px;margin:32px 0}.primary,.secondary,.danger{border-radius:10px;padding:12px 18px;font-weight:600;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:20px}.primary{background:#225b48;color:#fff}.primary:hover{background:#174736}.secondary{background:transparent;border-color:#ccd4c5;color:#294b3b}.secondary:hover{background:#edf0e4}.danger{background:#a43e31;color:#fff}.welcome-note{display:flex;gap:13px;max-width:430px;align-items:flex-start;margin:36px 0}.welcome-note>span{font-size:1.7rem;color:#6b824b}.welcome-note p{font-size:.86rem}.illustration{position:relative;background:#e7edcf;border-radius:18px;padding:25px 28px;height:190px;overflow:hidden;margin-top:50px}.illustration>span{font-size:1.5rem;font-weight:550;letter-spacing:-.03em;position:relative;z-index:1}.illustration-sun{position:absolute;font-size:130px;right:20px;top:-42px;color:#a0b765}.illustration-bars{display:flex;gap:10px;position:absolute;bottom:0;left:28px;right:28px;height:110px;align-items:end}.illustration-bars i{width:33%;background:#225b48;border-radius:9px 9px 0 0;height:45%}.illustration-bars i:nth-child(2){height:75%;background:#a3b86f}.illustration-bars i:nth-child(3){height:100%;background:#c6d69d}.project-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:10px 0 25px}.project-heading h1{margin-top:8px}.project-heading .quiet{flex-shrink:0}.budget-card{background:#225b48;color:#f5f9eb;border-radius:18px;padding:27px 30px;box-shadow:0 7px 20px #24412c09}.budget-card>span{color:#c7d8b5;font-size:.86rem}.budget-card>strong{display:block;font-size:clamp(1.8rem,7vw,3rem);letter-spacing:-.04em;margin:3px 0 24px;overflow-wrap:anywhere}.budget-foot{border-top:1px solid #ffffff25;padding-top:17px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.78rem;color:#d2dfc4}.code-row{display:flex;align-items:center;gap:10px;min-width:0}.code-row code{font-size:.85rem;-webkit-user-select:all;user-select:all;overflow-wrap:anywhere;min-width:0;color:#fff}.copy{background:#ffffff15;color:#fff;border:1px solid #ffffff30;border-radius:7px;padding:4px 10px;font-size:.78rem;flex-shrink:0}.budget-card p{color:#c7d8b5;font-size:.75rem;margin-top:7px}.expenses-section{margin:38px 0 0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.section-heading p{font-size:.8rem;margin-top:4px}.add{font-size:.85rem;gap:6px;white-space:nowrap}.empty{background:#eeefe4;border:1px dashed #cad2bf;padding:30px 20px;text-align:center;border-radius:14px}.empty>span{font-size:2rem;color:#879771;line-height:1.6}.empty p{font-size:.84rem;margin-top:6px}.expense-list{padding:0;list-style:none;margin:0;border-top:1px solid #dce1d4}.expense{padding:20px 0 15px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;border-bottom:1px solid #dce1d4}.expense-title{font-weight:550;overflow-wrap:anywhere}.expense-values{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.expense-values strong{font-size:1rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.badge{font-size:.65rem;border-radius:5px;padding:2px 8px}.alta{background:#d69571;color:#59311e}.media{background:#c3ce92;color:#3a4b20}.baja{background:#c9d8ce;color:#395648}.expense-actions{display:flex;gap:10px;grid-column:1/-1;margin:-10px 0 -7px}.expense-actions button{border:0;background:transparent;color:#637462;font-size:.75rem;padding:8px 8px 8px 0}.expense-actions button:hover{text-decoration:underline}.totals{margin:25px 0 30px;display:flex;gap:20px;justify-content:space-between;background:#e9eddd;border-radius:12px;padding:22px}.totals>div{display:flex;flex-direction:column;gap:6px;min-width:0}.totals>div:last-child{text-align:right}.totals span{font-size:.78rem}.totals strong{font-size:1.3rem;letter-spacing:-.035em;overflow-wrap:anywhere}.over{color:#a13b29}.charts{display:grid;grid-template-columns:1fr 1fr;gap:18px}.chart-card{padding:24px;border:1px solid #dce1d4;border-radius:14px;min-width:0;background:#fafbf5}.chart-card h2{font-size:1rem}.chart-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.chart-heading>span{font-size:1.25rem;font-weight:650;overflow-wrap:anywhere}.chart-card p{font-size:.76rem;margin:8px 0 0}.usage-track,.priority-track{height:14px;background:#e7eadc;border-radius:4px;overflow:hidden;display:flex;margin-top:24px}.usage-fill{background:#55845b;height:100%;min-width:0}.usage-fill.exceeded{background:#b45f44}.priority-track{height:12px;margin-top:20px}.legend{list-style:none;margin:18px 0 0;padding:0}.legend li{display:grid;grid-template-columns:1fr auto 48px;align-items:center;gap:10px;font-size:.75rem;margin:9px 0}.legend li>span:first-child{display:flex;align-items:center;gap:8px}.legend i{width:8px;height:8px;border-radius:2px;display:inline-block;flex-shrink:0}.legend strong{font-weight:550;overflow-wrap:anywhere}.legend li>span:last-child{text-align:right;color:#667361}.project-footer{margin:32px 0 40px;text-align:center}.project-footer p{font-size:.77rem}.project-footer button{margin:14px 0 4px;font-size:.85rem}.project-footer small{display:block;font-size:.71rem;color:#71806f}.site-footer{max-width:792px;margin:30px auto 0;padding:20px 24px calc(24px + env(safe-area-inset-bottom));border-top:1px solid #dce1d4;font-size:.83rem;font-weight:650;display:flex;justify-content:space-between}.site-footer span{color:#7d8974;font-weight:400;font-size:.76rem}.install,.alert{background:#edeedb;border-radius:10px;padding:18px;margin:15px 0;font-size:.88rem}.install p{margin:8px 0}.alert{color:#765322;background:#fbebd1}dialog{color:#24382f;background:#fafbf5;border:1px solid #d7dfce;border-radius:18px;padding:25px;max-width:440px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow-y:auto}dialog::backdrop{background:#102e20a6;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.dialog-heading h2{font-size:1.3rem}.close{background:transparent;border:0;min-width:44px;font-size:1.7rem;color:#5d705c}.dialog-heading+.hint,dialog p{font-size:.9rem}label{display:block;font-weight:550;font-size:.87rem;margin:18px 0}input,select{width:100%;display:block;min-height:48px;padding:10px 12px;border:1px solid #c8d3c1;border-radius:8px;background:#fff;color:#24382f;margin-top:7px;font-size:16px}.hint{font-weight:400;color:#687961;font-size:.8rem;margin:20px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;flex-wrap:wrap}.dialog-actions button{font-size:.86rem;padding:11px 15px}.form-error{color:#9b3327;background:#fae8dd;padding:12px;border-radius:8px;margin:14px 0;font-size:.85rem}@media(max-width:600px){main{padding:0 max(18px,env(safe-area-inset-left)) 0 max(18px,env(safe-area-inset-right))}.topbar{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}.welcome{margin:28px 0 40px}.welcome-actions{flex-direction:column}.welcome-actions button{width:100%;justify-content:space-between}.welcome-actions .secondary{justify-content:center}.project-heading{align-items:flex-start}.project-heading h1{font-size:2rem}.project-heading .quiet{font-size:.73rem;max-width:94px;white-space:normal}.budget-card{padding:23px 20px}.budget-foot{align-items:flex-start;flex-direction:column;gap:5px}.code-row{width:100%;justify-content:space-between}.code-row code{font-size:.8rem}.section-heading{align-items:flex-start;flex-wrap:wrap}.section-heading>div{flex:1;min-width:140px}.section-heading h2{font-size:1.05rem}.add{padding:10px 12px}.charts{grid-template-columns:1fr}.chart-card{padding:22px}.totals{padding:18px 14px;gap:12px}.totals strong{font-size:clamp(1rem,4.7vw,1.3rem)}.expense{gap:8px 10px}.expense-title,.expense-values strong{font-size:.94rem}.site-footer{margin-top:20px}.illustration{height:170px;margin-top:35px}.legend li,.notice{font-size:.8rem}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
