:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f6f3fa;background:#0e0d12;font-synthesis:none;font-weight:400;line-height:1.5;font-size:15px;accent-color:#c9b6ff;--surface: #18171e;--raised: #201e28;--border: #34303e;--muted: #b5afc2;--lilac: #c9b6ff;--magenta: #ed97d0;--danger: #ffb5ad}*{box-sizing:border-box}::selection{background:#694776;color:#fff}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;transition:background .15s,border-color .15s}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid var(--lilac);outline-offset:4px}input:focus,select:focus{outline:2px solid var(--lilac);outline-offset:3px}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.6rem,4vw,2.3rem);font-weight:650;line-height:1.2;letter-spacing:-.035em;overflow-wrap:anywhere}h2{font-size:1.14rem;font-weight:620;letter-spacing:-.02em}h3{font-size:1.05rem;font-weight:600}p{color:var(--muted)}.topbar{max-width:1080px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:calc(18px + env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) 18px max(28px,env(safe-area-inset-left));border-bottom:1px solid #28252f}.brand{min-height:44px;display:flex;gap:10px;align-items:center;font-size:1.4rem;font-weight:700;letter-spacing:-.05em;text-decoration:none}.brand-icon{display:inline-flex;align-items:center;justify-content:center;background:#302039;color:#f4a6da;border:1px solid #58344f;border-radius:11px;width:35px;height:35px;font-size:1.55rem;padding-bottom:3px}.quiet,.text-button{border:1px solid transparent;background:transparent;color:var(--lilac);font-weight:550;padding:9px 12px;border-radius:9px}.quiet{font-size:.86rem}.text-button{text-decoration:underline;text-underline-offset:4px}.quiet:hover,.text-button:hover{background:#292330}main{max-width:920px;margin:auto;padding:0 28px}.notice{color:#e4c2f5;font-size:.87rem;margin:16px 0;overflow-wrap:anywhere}.notice:empty{margin:0;height:26px}.eyebrow{font-size:.68rem;letter-spacing:.16em;font-weight:650;color:var(--lilac)}.welcome{position:relative;max-width:650px;margin:36px auto 56px}.welcome h1{margin:16px 0 24px;font-size:clamp(2.8rem,8vw,4.8rem);letter-spacing:-.055em;line-height:1.06}.intro{font-size:1.1rem;max-width:450px;line-height:1.7}.welcome-actions{display:flex;gap:12px;margin:30px 0}.primary,.secondary,.danger{border-radius:11px;padding:12px 18px;font-weight:650;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:18px}.primary{background:#e997d0;color:#271322;border-color:#e997d0}.primary:hover{background:#f7b5e1;border-color:#f7b5e1}.secondary{background:#211e29;border-color:#494052;color:#ede5f9}.secondary:hover{background:#302938;border-color:#786087}.danger{background:#f0aaa2;color:#321915}.danger:hover{background:#ffc5bd}.welcome-note{display:flex;gap:13px;max-width:440px;align-items:flex-start;margin:30px 0}.welcome-note>span{font-size:1.7rem;color:var(--lilac)}.welcome-note p{font-size:.86rem}.illustration{position:relative;background:linear-gradient(120deg,#231c2c,#1c1925);border:1px solid #44324c;border-radius:18px;padding:25px 28px;height:175px;overflow:hidden;margin-top:40px}.illustration>span{font-size:1.3rem;font-weight:550;letter-spacing:-.02em;position:relative;z-index:1}.illustration-sun{display:none}.illustration-bars{display:flex;gap:10px;position:absolute;bottom:0;left:28px;right:28px;height:105px;align-items:end}.illustration-bars i{width:33%;background:#a75e9b;border-radius:8px 8px 0 0;height:35%}.illustration-bars i:nth-child(2){height:65%;background:#ab8bd9}.illustration-bars i:nth-child(3){height:90%;background:#d6b5eb}.project-heading{display:flex;gap:16px;justify-content:space-between;align-items:center;margin:0 0 24px}.project-heading>div{min-width:0}.project-heading h1{margin-top:6px}.project-heading .quiet{flex-shrink:0;border-color:var(--border);background:var(--surface)}.budget-card{background:linear-gradient(115deg,#292033,#1b1923 85%);border:1px solid #4b3654;border-radius:20px;padding:28px 30px 22px}.budget-card>span{color:#d6c8e2;font-size:.85rem}.budget-card>strong{display:block;font-size:clamp(2.25rem,7vw,3.8rem);line-height:1.2;font-weight:650;letter-spacing:-.045em;margin:10px 0 26px}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.money .currency{font-size:.7em;font-weight:500;color:#bcb0cc}.money.long-amount{font-size:.76em}.budget-foot{border-top:1px solid #46374f;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.78rem;color:var(--muted)}.code-row{display:flex;align-items:center;gap:12px;min-width:0}.code-row code{font-size:.85rem;-webkit-user-select:all;user-select:all;overflow-wrap:anywhere;min-width:0;color:#e2d6ec;letter-spacing:.015em}.copy{background:#352a3e;color:#edddf9;border:1px solid #5a4567;border-radius:9px;padding:6px 12px;font-size:.8rem;flex-shrink:0}.copy:hover{background:#493456}.budget-card p{color:#afa2bd;font-size:.76rem;margin-top:8px}.expenses-section{margin:30px 0 0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.section-heading p{font-size:.82rem;margin-top:5px}.add{font-size:.88rem;gap:6px;white-space:nowrap}.empty{background:var(--surface);border:1px dashed #494052;padding:26px 20px;text-align:center;border-radius:16px}.empty>span{display:inline-flex;align-items:center;justify-content:center;font-size:1.8rem;color:var(--lilac);background:#2e253a;border-radius:12px;width:44px;height:44px;margin-bottom:12px}.empty p{font-size:.84rem;margin:7px auto 0;max-width:300px}.expense-list{padding:0;list-style:none;margin:0;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.expense{padding:20px 22px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px}.expense+.expense{border-top:1px solid var(--border)}.expense-title{font-weight:550;overflow-wrap:anywhere;padding-top:2px}.expense-values{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.expense-values strong{font-size:1.18rem;line-height:1.4;font-weight:650;letter-spacing:-.025em}.badge{font-size:.7rem;font-weight:550;border-radius:6px;padding:3px 9px}.badge.alta{background:#44253b;color:#ffc2e7;border:1px solid #744661}.badge.media{background:#302740;color:#dfcbff;border:1px solid #5d4878}.badge.baja{background:#272c3d;color:#c3cde9;border:1px solid #465371}.expense-actions{display:flex;gap:8px;grid-column:1 / -1;margin:0 0 -4px -10px}.expense-actions button{border:1px solid transparent;border-radius:8px;background:transparent;color:#c0b2d4;font-size:.8rem;padding:8px 10px;min-width:64px}.expense-actions button:last-child{color:#e3b0bc}.expense-actions button:hover{background:#302735;border-color:#4e3a51}.totals{margin:20px 0 22px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);border:1px solid var(--border);background:var(--surface);border-radius:16px;padding:22px 24px;gap:24px}.totals>div{display:flex;flex-direction:column;gap:8px;min-width:0;justify-content:center}.totals>div:last-child{text-align:right}.totals>div>span{font-size:.83rem;color:var(--muted)}.totals strong{font-size:clamp(1.4rem,3.8vw,1.9rem);letter-spacing:-.04em;font-weight:600;line-height:1.3}.totals>div:last-child strong{font-size:clamp(1.9rem,4.8vw,2.6rem);color:#e0d0ff}.totals>.over>span,.totals>.over:last-child strong,.over{color:var(--danger)}.over .currency{color:#efaea7}.charts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.chart-card{padding:22px;border:1px solid var(--border);border-radius:16px;min-width:0;background:var(--surface)}.chart-card h2{font-size:1rem}.chart-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.chart-heading>span{font-size:1.5rem;font-weight:650;font-variant-numeric:tabular-nums;color:var(--lilac);overflow-wrap:anywhere;min-width:0}.chart-heading>.over{color:var(--danger)}.chart-card p{font-size:.78rem;margin:8px 0 0}.usage-track,.priority-track{height:12px;background:#302b3a;border-radius:5px;overflow:hidden;display:flex;margin-top:20px}.usage-fill{background:linear-gradient(90deg,#c187de,#ed97d0);height:100%;min-width:0;border-radius:inherit}.usage-fill.exceeded{background:#f0aaa2}.priority-track{height:10px;margin-top:20px;gap:2px}.priority-track .alta,.legend .alta{background:#ed97d0}.priority-track .media,.legend .media{background:#bda1ee}.priority-track .baja,.legend .baja{background:#7e91be}.legend{list-style:none;margin:16px 0 0;padding:0}.legend li{display:grid;grid-template-columns:minmax(52px,1fr) auto 48px;align-items:center;gap:10px;font-size:.8rem;margin:10px 0}.legend li>span:first-child{display:flex;align-items:center;gap:8px;color:#d1c8dc}.legend i{width:8px;height:8px;border-radius:3px;display:inline-block;flex-shrink:0}.legend strong{font-weight:550;letter-spacing:-.02em}.legend li>span:last-child{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}.project-footer{margin:28px 0 36px;text-align:center}.project-footer p{font-size:.78rem;max-width:420px;margin:auto}.project-footer button{margin:12px 0 4px;font-size:.86rem}.project-footer small{display:block;font-size:.74rem;color:#a69caf}.site-footer{max-width:864px;margin:30px auto 0;padding:20px 24px calc(24px + env(safe-area-inset-bottom));border-top:1px solid #28252f;font-size:.83rem;font-weight:650;display:flex;justify-content:space-between;gap:16px}.site-footer span{color:#a69caf;font-weight:400;font-size:.78rem}.install,.alert{background:#251f30;border:1px solid #51415f;border-radius:12px;padding:18px;margin:15px 0;font-size:.88rem}.install p{margin:8px 0}.alert{color:#f4d4a8;background:#30251c;border-color:#6c5037}dialog{color:#f6f3fa;background:#1d1a24;border:1px solid #5b4768;border-radius:18px;padding:24px;max-width:440px;width:calc(100% - 32px);max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;box-shadow:0 24px 80px #0008}dialog::backdrop{background:#07060bcc;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.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:1px solid transparent;border-radius:9px;min-width:44px;font-size:1.7rem;color:#c4b6d3}.close:hover{background:#352a40}dialog p{font-size:.9rem}label{display:block;font-weight:550;font-size:.88rem;margin:18px 0;color:#ded3e9}input,select{width:100%;display:block;min-height:48px;padding:11px 12px;border:1px solid #806a8f;border-radius:10px;background:#121016;color:#f6f3fa;margin-top:8px;font-size:16px}input::placeholder{color:#a69caf;opacity:1}.hint{font-weight:400;color:var(--muted);font-size:.8rem;margin:20px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px;flex-wrap:wrap}.dialog-actions button{font-size:.86rem;padding:11px 15px}.form-error{color:#ffc8c0;background:#3a2229;border:1px solid #865158;padding:12px;border-radius:10px;margin:14px 0;font-size:.85rem}@media(max-width:600px){main{padding:0 max(18px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left))}.topbar{padding:calc(12px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left))}.welcome{margin:24px 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:center;gap:12px;margin-bottom:20px}.project-heading h1{font-size:1.5rem}.project-heading .eyebrow{font-size:.59rem;letter-spacing:.12em}.project-heading .quiet{font-size:.75rem;width:99px;padding:8px;white-space:normal}.budget-card{padding:22px 20px 18px;border-radius:18px}.budget-card>strong{font-size:clamp(2rem,8.6vw,3rem);letter-spacing:-.05em;margin-bottom:22px}.budget-foot{align-items:flex-start;flex-direction:column;gap:8px}.code-row{width:100%;justify-content:space-between;gap:8px}.code-row code{font-size:.79rem}.section-heading{align-items:flex-start;flex-wrap:wrap;gap:14px}.section-heading>div{flex:1;min-width:140px}.section-heading h2{font-size:1.05rem}.add{padding:11px 14px}.expense{padding:18px 16px 12px;gap:10px}.expense-title{font-size:.94rem}.expense-values strong{font-size:1.08rem}.charts{grid-template-columns:minmax(0,1fr);gap:14px}.chart-card{padding:20px}.totals{grid-template-columns:minmax(0,1fr);padding:20px;gap:18px}.totals>div:first-child{flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px}.totals>div:first-child strong{font-size:1.1rem}.totals>div:last-child{text-align:left;border-top:1px solid var(--border);padding-top:18px}.totals>div:last-child strong{font-size:clamp(1.8rem,8vw,2.5rem)}.totals>div:first-child>span{flex-shrink:0}.site-footer{margin-top:20px}.illustration{height:160px;margin-top:32px}.notice{font-size:.8rem}dialog{padding:20px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
