:root{color:#17211f;font-synthesis:none;text-rendering:optimizelegibility;--ink:#17211f;--muted:#5d6b66;--surface:#fff;--surface-soft:#edf2ef;--line:#d7dfda;--brand:#176b55;--brand-dark:#0f4e3e;--accent:#d6f264;--danger:#a33a35;--warning:#8a5a00;--shadow:0 16px 45px #1b342c14;background:#f4f6f3;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#f4f6f3;min-width:320px}body{min-width:320px;min-height:100vh;margin:0;overflow-x:hidden}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}:focus-visible{outline-offset:3px;outline:3px solid #9fb935}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell{min-height:100vh}.sidebar{color:#f7fbf9;background:#153d34;flex-direction:column;gap:2rem;width:16.5rem;padding:1.5rem;display:flex;position:fixed;inset:0 auto 0 0}.brand{align-items:center;gap:.75rem;display:flex}.brand-mark{color:#153d34;background:var(--accent);border-radius:.8rem;place-items:center;width:2.5rem;height:2.5rem;font-weight:900;display:inline-grid}.brand strong,.brand small{display:block}.brand small{color:#c8d9d3;margin-top:.15rem;font-size:.75rem}.sidebar-nav{gap:.3rem;display:grid}.sidebar-nav a{color:#d8e4e0;border-radius:.65rem;padding:.72rem .85rem;font-weight:650;text-decoration:none}.sidebar-nav a:hover,.sidebar-nav a.active{color:#153d34;background:var(--accent)}.sidebar-period{background:#1c493f;border:1px solid #3b6258;border-radius:.8rem;margin-top:auto;padding:1rem}.sidebar-period span,.sidebar-period strong{display:block}.sidebar-period span{color:#b9cec7;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.35rem;font-size:.75rem}.sidebar-period strong{font-size:.85rem;line-height:1.4}.app-column{min-height:100vh;margin-left:16.5rem}.content{width:min(100%,76rem);margin:0 auto;padding:2.2rem clamp(1.25rem,3vw,3.5rem) 4rem}.mobile-header,.bottom-nav{display:none}.page-header{justify-content:space-between;align-items:flex-end;gap:1.5rem;margin-bottom:1.6rem;display:flex}.page-header h1{letter-spacing:-.035em;max-width:16ch;margin:.15rem 0 .45rem;font-family:Georgia,Times New Roman,serif;font-size:clamp(2rem,5vw,3.6rem);font-weight:500;line-height:.98}.page-header p{max-width:42rem;color:var(--muted);margin:0;line-height:1.55}.eyebrow{letter-spacing:.12em;text-transform:uppercase;font-size:.76rem;font-weight:800;color:var(--brand)!important}.page-actions{flex-wrap:wrap;gap:.65rem;display:flex}.panel,.state-card,.card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:1rem}.panel{padding:clamp(1rem,3vw,1.5rem)}.state-card{text-align:center;justify-content:center;align-items:center;gap:.75rem;min-height:12rem;padding:2rem;display:flex}.empty-state,.error-state{flex-direction:column}.empty-state h2,.error-state h2{margin:.2rem 0 0}.empty-state p,.error-state p{max-width:34rem;color:var(--muted);margin:0 0 .5rem;line-height:1.5}.state-icon{width:3rem;height:3rem;color:var(--brand-dark);background:var(--accent);border-radius:50%;place-items:center;font-size:1.8rem;display:grid}.spinner{border:2px solid var(--line);border-top-color:var(--brand);border-radius:50%;width:1.25rem;height:1.25rem;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.button{border:1px solid var(--brand);color:#fff;background:var(--brand);cursor:pointer;border-radius:.7rem;justify-content:center;align-items:center;gap:.45rem;min-height:2.75rem;padding:.65rem 1rem;font-weight:750;text-decoration:none;display:inline-flex}.button:hover{background:var(--brand-dark)}.button:disabled{cursor:not-allowed;opacity:.58}.button.secondary{color:var(--brand-dark);background:#e5f0eb}.button.ghost{border-color:var(--line);color:var(--ink);background:0 0}.button.danger{border-color:var(--danger);background:var(--danger)}.form-field{gap:.38rem;display:grid}.form-field label{font-size:.88rem;font-weight:750}.form-field input,.form-field select,.form-field textarea{width:100%;min-height:2.8rem;color:var(--ink);background:#fff;border:1px solid #aebbb6;border-radius:.6rem;padding:.62rem .72rem}.form-field textarea{resize:vertical;min-height:5rem}.form-field small{color:var(--muted)}.field-error{font-weight:650;color:var(--danger)!important}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.form-actions{flex-wrap:wrap;justify-content:flex-end;gap:.65rem;margin-top:1rem;display:flex}.notice{color:#124d3d;background:#e1f3eb;border:1px solid #9bc9b6;border-radius:.7rem;margin:0 0 1rem;padding:.8rem 1rem;font-weight:650}.notice.error{color:#762a27;background:#fae9e8;border-color:#d7aaa7}.notice.warning{color:#5f4709;background:#fff6d9;border-color:#d8bd78}.notice.warning p{margin:0}.receipt-flow{gap:1rem;display:grid}.receipt-privacy{border-left:.25rem solid var(--brand);color:var(--muted);background:#f4f8f6;margin:0;padding:.8rem 1rem;line-height:1.5}.receipt-source{gap:1.25rem;display:grid}.receipt-source h2,.receipt-preview h2,.receipt-error h2,.receipt-expense-form h2{margin:.2rem 0 .45rem;font-family:Georgia,Times New Roman,serif;font-weight:500}.receipt-source p,.receipt-error p,.receipt-expense-form>p{color:var(--muted);line-height:1.5}.receipt-source-actions,.receipt-preview-actions{flex-wrap:wrap;gap:.65rem;display:flex}.receipt-workspace{grid-template-columns:minmax(17rem,.8fr) minmax(20rem,1.2fr);align-items:start;gap:1.25rem;display:grid}.receipt-preview{gap:1rem;min-width:0;display:grid}.receipt-image-frame{border:1px solid var(--line);background:#eef3f0;border-radius:.8rem;place-items:center;max-height:34rem;display:grid;overflow:hidden}.receipt-image-frame img{object-fit:contain;width:100%;max-width:100%;max-height:34rem;display:block}.receipt-image-meta{color:var(--muted);margin:0;font-size:.82rem}.receipt-recognition-status,.receipt-inline-status{align-items:center;gap:.75rem;margin:0;display:flex}.receipt-recognition-status{background:#eef6f2;border-radius:.75rem;padding:.85rem}.receipt-recognition-status div{gap:.15rem;display:grid}.receipt-recognition-status span:last-child{color:var(--muted);font-size:.85rem}.receipt-expense-form{min-width:0}.receipt-review-check{align-items:flex-start;gap:.6rem;margin-top:.7rem;font-weight:650;display:flex}.receipt-review-check input{flex:none;width:1.1rem;height:1.1rem;margin-top:.1rem}.receipt-currency-field{border:1px solid var(--line);background:#f8faf9;border-radius:.65rem;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem;display:flex}.receipt-currency-field span{font-weight:750}.split-layout{grid-template-columns:minmax(17rem,.78fr) minmax(20rem,1.22fr);align-items:start;gap:2rem;display:grid}.split-layout h2{margin-top:0;font-family:Georgia,Times New Roman,serif;font-weight:500}.record-list{gap:.7rem;display:grid}.record-card{border:1px solid var(--line);background:#fbfcfb;border-radius:.8rem;justify-content:space-between;align-items:center;gap:1rem;min-width:0;padding:1rem;display:flex}.record-card h3{margin:.55rem 0 0;font-size:1rem}.record-main{align-items:center;gap:.8rem;min-width:0;display:flex}.record-main h3,.record-main p{margin:0}.record-main p{color:var(--muted);font-size:.9rem}.category-swatch{border-radius:999px;flex:none;width:1rem;height:2.5rem}.record-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.danger-text{color:var(--danger)}.button.ghost.danger-text{border-color:var(--danger);color:var(--danger);background:0 0}.button.ghost.danger-text:hover{color:#fff;background:var(--danger)}.stack-form{gap:1rem;display:grid}.summary-pill{border:1px solid var(--line);background:var(--surface);border-radius:.8rem;gap:.2rem;min-width:9rem;padding:.7rem 1rem;display:grid}.summary-pill span:first-child{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-size:.75rem;font-weight:800}.summary-pill span:last-child{font-size:1.2rem;font-weight:850}.record-date{color:var(--muted);margin:0;font-size:.82rem}.record-amount{margin-top:.35rem;font-size:1.05rem;font-weight:850;display:inline-block}.positive{color:var(--brand-dark)}.budget-list{gap:.8rem;display:grid}.budget-row{border:1px solid var(--line);border-radius:.8rem;grid-template-columns:minmax(12rem,1fr) minmax(20rem,1.4fr);align-items:end;gap:1rem;padding:1rem;display:grid}.budget-form{grid-template-columns:minmax(8rem,1fr) auto auto;align-items:end;gap:.6rem;display:grid}.budget-row>.notice{grid-column:1/-1;margin:0}.recurring-occurrences{margin-top:2rem}.status-paid{color:#174b3d;background:#dcefe7}.status-skipped{color:#5c6260;background:#eceeed}.status-pending{color:#684d00;background:#fff0bd}.simulation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-bottom:1rem;display:grid}.simulation-grid div{background:#f2f6f4;border-radius:.75rem;gap:.3rem;padding:1rem;display:grid}.simulation-grid div>span:first-child{color:var(--muted);text-transform:uppercase;font-size:.78rem;font-weight:800}.simulation-grid div>span:last-child,.simulation-grid strong{font-size:1.15rem}.simulation-message{background:#e3f2eb;border-radius:.7rem;padding:.8rem 1rem;font-weight:750}.negative-result{border-color:#c87973}.negative-result .simulation-message{color:#762a27;background:#fae9e8}.conversion-panel{margin-top:2rem}.full-row{grid-column:1/-1}.financial-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.2rem;display:grid}.financial-card{border:1px solid var(--line);background:var(--surface);min-width:0;box-shadow:var(--shadow);border-radius:1rem;gap:.65rem;padding:1.15rem;display:grid}.financial-card>span:first-child{min-height:2.2em;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-size:.78rem;font-weight:850}.financial-card>span:nth-child(2){overflow-wrap:anywhere;font-family:Georgia,Times New Roman,serif;font-size:clamp(1.45rem,3vw,2.15rem)}.financial-card p{color:var(--muted);margin:0;font-size:.85rem;line-height:1.45}.negative-value{border-color:#c87973}.negative-value>span:nth-child(2){color:var(--danger)}.pace-card{justify-content:space-between;align-items:center;gap:2rem;display:flex}.pace-card h2{margin:.2rem 0;font-family:Georgia,Times New Roman,serif;font-size:2rem;font-weight:500}.pace-card p{max-width:36rem;color:var(--muted);margin-bottom:0}.pace-high{border-color:#c87973}.pace-metrics{grid-template-columns:repeat(2,minmax(8rem,1fr));gap:.7rem;display:grid}.pace-metrics div{background:#f2f6f4;border-radius:.7rem;gap:.25rem;padding:.9rem;display:grid}.pace-metrics span{color:var(--muted);font-size:.75rem}.pace-metrics strong{font-size:1.25rem}.active-record{background:#edf7f2;border-color:#73a996}.badge{color:#37534a;text-transform:uppercase;letter-spacing:.05em;background:#e3eae7;border-radius:99px;align-items:center;margin-right:.35rem;padding:.22rem .48rem;font-size:.7rem;font-weight:800;display:inline-flex}.badge.accent{color:#324000;background:var(--accent)}.dialog-backdrop{z-index:100;background:#081713a3;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.dialog{background:#fff;border-radius:1rem;width:min(100%,30rem);padding:1.5rem;box-shadow:0 30px 80px #00000047}.dialog h2{margin-top:0}.dialog p{color:var(--muted);line-height:1.5}.dialog-actions{justify-content:flex-end;gap:.65rem;margin-top:1.4rem;display:flex}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.settings-card{flex-direction:column;align-items:flex-start;gap:.75rem;min-height:18rem;display:flex}.settings-card h2{margin:.15rem 0 0;font-family:Georgia,Times New Roman,serif;font-size:1.65rem;font-weight:500}.settings-card>p{color:var(--muted);line-height:1.55}.settings-card .button{margin-top:auto}.danger-zone{border-color:color-mix(in srgb, var(--danger) 38%, white)}.file-button{cursor:pointer}.security-note{color:#5c4300;background:#fff8df;border:1px solid #d4c48f;border-radius:.8rem;flex-direction:column;gap:.4rem;margin-top:1rem;padding:1rem;display:flex}.backup-summary{background:var(--surface-soft);border-radius:.7rem;padding:.8rem}.backup-summary>p{margin:0 0 .45rem}.backup-summary dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem .8rem;margin:.8rem 0 0;display:grid}.backup-summary dl div{justify-content:space-between;gap:.5rem;display:flex}.backup-summary dt{color:var(--muted)}.backup-summary dd{margin:0;font-weight:800}.offline-indicator{z-index:90;color:#fff;max-width:min(30rem,100vw - 2rem);box-shadow:var(--shadow);text-align:center;background:#6f4b00;border-radius:.7rem;padding:.55rem 1rem;font-size:.85rem;font-weight:750;position:fixed;top:.75rem;right:.75rem}.sync-status{z-index:90;max-width:min(36rem,100vw - 2rem);color:var(--ink);box-shadow:var(--shadow);background:#f5faf8;border:1px solid #b8cec6;border-radius:.7rem;align-items:center;gap:.55rem;padding:.55rem .75rem;font-size:.85rem;font-weight:750;display:flex;position:fixed;top:.75rem;right:.75rem}.sync-status--offline,.sync-status--error{background:#fff7df;border-color:#d3b163}.sync-status__mark{background:#318368;border-radius:50%;flex:none;width:.55rem;height:.55rem}.sync-status--offline .sync-status__mark,.sync-status--error .sync-status__mark{background:#8a5d00}.sync-status--syncing .sync-status__mark{animation:1s ease-in-out infinite alternate sync-pulse}.sync-status__action{color:var(--brand-dark);cursor:pointer;font:inherit;background:#fff;border:1px solid;border-radius:.45rem;padding:.35rem .55rem}.sync-status__action:focus-visible{outline:3px solid var(--accent);outline-offset:2px}@keyframes sync-pulse{to{opacity:.35;transform:scale(.75)}}.pwa-prompt{z-index:120;border:1px solid var(--line);background:#fff;border-radius:.9rem;align-items:center;gap:1rem;max-width:min(34rem,100vw - 2rem);padding:1rem;display:flex;position:fixed;bottom:1rem;right:1rem;box-shadow:0 20px 60px #0817133d}.pwa-prompt>span{flex:1;font-weight:750}.pwa-prompt>div{gap:.5rem;display:flex}.account-controls{color:#d8e4e0;overflow-wrap:anywhere;border:1px solid #3b6258;border-radius:.7rem;gap:.35rem;padding:.8rem;font-size:.78rem;display:grid}.account-controls span{color:#b9cec7;text-transform:uppercase;letter-spacing:.06em}.account-controls a,.account-link{width:fit-content;color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0;font-weight:750;text-decoration:underline}.guest-controls{grid-template-columns:1fr}.decision-actions{gap:.6rem;display:grid}.field-hint,.auth-help{color:var(--muted);font-size:.86rem;line-height:1.5}.auth-shell{background:linear-gradient(145deg,#e6eee9,#f8faf8);place-items:center;min-height:100vh;padding:1rem;display:grid}.auth-card{border:1px solid var(--line);width:min(100%,30rem);box-shadow:var(--shadow);background:#fff;border-radius:1.2rem;gap:1.4rem;padding:clamp(1.3rem,5vw,2.3rem);display:grid}.auth-brand{align-items:center;gap:.7rem;width:fit-content;text-decoration:none;display:flex}.auth-card header h1{margin:.15rem 0 .55rem;font-family:Georgia,Times New Roman,serif;font-size:clamp(2rem,8vw,3rem);font-weight:500;line-height:1}.auth-card header>p:last-child{color:var(--muted);margin:0;line-height:1.55}.auth-card footer{border-top:1px solid var(--line);text-align:center;padding-top:1rem}.auth-card footer a,.auth-links a{color:var(--brand-dark);font-weight:750}.auth-links{flex-wrap:wrap;justify-content:space-between;gap:.8rem;font-size:.9rem;display:flex}.ai-suggestion,.ai-section,.ai-insights-section,.insight-card{min-width:0}.ai-suggestion{background:#eef7f3;border:1px solid #9ac3b5;border-radius:.85rem;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;display:flex}.ai-suggestion strong,.ai-suggestion p{margin:.2rem 0 0;display:block}.ai-label{color:var(--brand-dark);letter-spacing:.06em;text-transform:uppercase;font-size:.76rem;font-weight:800}.ai-actions,.ai-section-header{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.ai-inline-status,.ai-disclaimer{color:var(--muted);margin:0;font-size:.9rem;line-height:1.5}.ai-inline-error,.ai-error{color:#7f1d1d}.ai-section,.ai-insights-section{gap:1rem;margin-top:1.25rem;display:grid}.ai-section-header h2,.ai-section-header p,.ai-generated-content p,.ai-error p{margin:0}.ai-loading,.ai-error,.ai-generated-content,.ai-explanation{background:#f5f7f5;border-radius:.75rem;padding:.9rem 1rem}.ai-loading{color:var(--muted)}.ai-generated-content,.ai-explanation{overflow-wrap:anywhere}.ai-generated-content ul{margin-bottom:0;padding-left:1.2rem}.compact-field{min-width:min(20rem,100%);color:var(--muted);gap:.35rem;font-size:.82rem;font-weight:750;display:grid}.compact-field select{width:100%}.insights-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.insight-card{border:1px solid var(--line);background:#fff;border-radius:.9rem;padding:1.1rem}.insight-card h3{margin-top:0}.insight-card dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:0 0 1rem;display:grid}.insight-card dl div{gap:.2rem;display:grid}.insight-card dt{color:var(--muted);font-size:.78rem}.insight-card dd{margin:0;font-weight:800}.ai-explanation p{margin:.35rem 0 0;line-height:1.55}@media (width<=820px){.sidebar{display:none}.app-column{margin-left:0;padding-bottom:4.4rem}.mobile-header{z-index:50;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff5;justify-content:space-between;align-items:center;min-height:4.2rem;padding:.65rem 1rem;display:flex;position:sticky;top:0}.mobile-header .brand-mark{width:2.15rem;height:2.15rem}.mobile-menu{position:relative}.mobile-menu summary{border:1px solid var(--line);cursor:pointer;border-radius:.65rem;min-height:2.65rem;padding:.65rem .8rem;font-weight:700;list-style:none}.mobile-menu-panel{border:1px solid var(--line);width:min(18rem,100vw - 2rem);box-shadow:var(--shadow);background:#fff;border-radius:.8rem;padding:.5rem;display:grid;position:absolute;top:3.2rem;right:0}.mobile-menu-links{display:grid}.mobile-menu-links a{border-radius:.5rem;padding:.7rem;text-decoration:none}.mobile-menu-links a.active{color:#fff;background:var(--brand)}.mobile-menu-panel .account-controls{border-color:var(--line);color:var(--ink);margin-top:.5rem}.mobile-menu-panel .account-controls span{color:var(--muted)}.content{padding:1.35rem 1rem 2rem}.bottom-nav{z-index:45;border-top:1px solid var(--line);background:#fff;grid-template-columns:repeat(4,1fr);min-height:4rem;display:grid;position:fixed;bottom:0;left:0;right:0}.offline-indicator{max-width:none;top:auto;bottom:4.75rem;left:.75rem}.sync-status{flex-wrap:wrap;max-width:none;inset:auto .75rem 4.75rem}.bottom-nav a{color:var(--muted);place-items:center;padding:.55rem .2rem;font-size:.76rem;font-weight:700;text-decoration:none;display:grid}.bottom-nav a.active{color:var(--brand-dark);background:#e8f1ed}.split-layout,.receipt-workspace{grid-template-columns:1fr}.financial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid,.insights-grid{grid-template-columns:1fr}.pace-card{flex-direction:column;align-items:stretch}}@media (width<=560px){.page-header{flex-direction:column;align-items:stretch}.page-header h1{font-size:2.35rem}.page-actions,.page-actions .button{width:100%}.ai-suggestion,.ai-section-header,.ai-actions{flex-direction:column;align-items:stretch}.ai-actions .button,.ai-section-header .button{width:100%}.insight-card dl{grid-template-columns:1fr}.receipt-source-actions,.receipt-preview-actions{flex-direction:column}.receipt-source-actions .button,.receipt-preview-actions .button{width:100%}.form-grid{grid-template-columns:1fr}.dialog-actions{flex-direction:column-reverse}.dialog-actions .button{width:100%}.record-card{flex-direction:column;align-items:stretch}.budget-row,.budget-form,.simulation-grid,.financial-grid,.pace-metrics,.backup-summary dl{grid-template-columns:1fr}.pwa-prompt{flex-direction:column;align-items:stretch;bottom:4.75rem;left:.75rem;right:.75rem}.pwa-prompt>div,.pwa-prompt .button{width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
