:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203c31;background:#f5f7f2;font-synthesis:none;--green:#265e48;--muted:#65756c;--line:#dfe6de;--red:#af3548}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--green)}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d19639;outline-offset:3px}input,select,textarea{max-width:100%;border:1px solid #ced9cf;border-radius:8px;background:#fff;padding:11px;color:#203c31;min-height:44px}input:invalid{border-color:var(--red)}textarea{width:100%;resize:vertical}input[type=number]{font-variant-numeric:tabular-nums}h1,h2,p{margin-top:0}h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(2rem,4vw,2.75rem);letter-spacing:-1px;margin-bottom:10px}h2{font-size:1.15rem;font-weight:650;margin-bottom:9px}p{line-height:1.6}small{font-size:.8rem}.muted{color:var(--muted);font-size:.9rem;margin-bottom:0}.eyebrow{font-size:.67rem;font-weight:750;letter-spacing:1.7px;margin-bottom:9px;color:var(--green)}
.app-header{position:sticky;top:0;z-index:30;height:86px;display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100vw - 1200px)/2));border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:11px;font-size:1.35rem;font-weight:750;text-decoration:none;white-space:nowrap}.brand-light{font-weight:400}.header-right{display:flex;gap:14px;align-items:center;font-size:.8rem}#save-status{color:var(--muted)}#save-status::before{content:'●';color:#7b9e63;margin-right:6px}.error,#save-status.error{color:var(--red)}#main{max-width:1200px;margin:0 auto;padding:34px 24px 60px;min-height:calc(100vh - 190px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.pill{border:1px solid var(--line);background:#fff;border-radius:40px;padding:10px 16px;font-size:.78rem;white-space:nowrap}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:12px 20px;border-radius:9px;border:1px solid transparent;font-size:.9rem;font-weight:600;text-decoration:none}.primary{background:var(--green);color:#fff}.primary:hover{background:#1a4836}.secondary{background:#fff;border-color:#cad7cd;color:var(--green)}.small{padding:8px 13px;font-size:.8rem}.text-button{border:0;background:transparent;color:var(--green);padding:10px 0;text-decoration:underline;text-underline-offset:3px;min-height:44px}.icon-button{border:0;color:#94766c;background:transparent;font-size:1.4rem;min-width:44px;min-height:44px}.icon-button:hover{background:#f9ebe7;border-radius:7px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:26px;margin-bottom:22px;box-shadow:0 2px 4px #23412b03}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{border:1px solid var(--line);border-radius:13px;background:#fff;padding:23px 20px}.stat p{font-size:.8rem;color:var(--muted);margin-bottom:13px}.stat strong{display:block;font-size:clamp(1.15rem,2vw,1.65rem);font-weight:650;font-variant-numeric:tabular-nums}.stat span{display:block;font-size:.7rem;color:var(--muted);margin-top:12px;line-height:1.5}.stat.accent{background:#eaf2e4;border-color:#d4e1ca}.positive{color:#267353}.negative{color:var(--red)}.frequency{display:flex;gap:3px;padding:4px;border-radius:10px;background:#f0f4ed}.frequency button{padding:9px 15px;min-height:44px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:.83rem}.frequency button[aria-pressed=true]{background:#fff;color:var(--green);box-shadow:0 1px 5px #20453018;font-weight:650}.income-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin-bottom:28px}.field{display:flex;flex-direction:column;gap:8px;font-size:.8rem;font-weight:550}.input-money{display:flex;border:1px solid #ced9cf;border-radius:8px;background:#fff;align-items:center}.input-money>span{color:var(--muted);padding-left:13px;font-size:.8rem}.input-money input{border:0;min-width:0;width:100%;background:transparent}.income-value{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:.8rem;color:var(--muted)}.income-value strong{color:#203c31;font-size:1.05rem}.deduction{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.4fr 44px;align-items:end;gap:14px;border-top:1px solid #edf0e9;padding:18px 0}.deduction input,.deduction select{width:100%;min-width:0}.deduction-total{font-size:.7rem;color:var(--muted);display:flex;flex-direction:column;gap:8px;align-self:center}.deduction-total strong{color:#203c31;font-size:.9rem}.deduction-total small{display:block;font-size:.7rem;font-weight:400;margin-top:5px}.paychecks{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.paychecks:has(> :only-child){grid-template-columns:1fr}.paycheck{display:flex;align-items:center;justify-content:space-between;border-left:4px solid #b0c59c}.paycheck>div:last-child{text-align:right}.paycheck span{font-size:.75rem;color:var(--muted);display:block;margin-bottom:9px}.paycheck strong{font-size:1.3rem}.table-scroll{overflow-x:auto}.expenses,.year-table{border-collapse:collapse;width:100%;font-size:.85rem}.expenses{min-width:720px}.expenses th,.year-table th{font-size:.68rem;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);text-align:left;background:#f7f9f5;padding:14px 10px}.expenses td,.year-table td{padding:9px 8px;border-bottom:1px solid #edf0e9}.expenses input{width:100%;font-size:.82rem;border:1px solid transparent;background:transparent;padding:9px 5px;min-width:80px}.expenses input:hover{border-color:var(--line)}.expenses input:focus{border-color:#82a68c;background:white}.expenses td:nth-child(2){width:23%}.expenses td:first-child{width:21%}.expenses td:nth-child(3),.expenses td:nth-child(4){width:16%}.number{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}tfoot{font-weight:700}tfoot td,tfoot th{padding:18px 10px!important;border-top:2px solid var(--line)}.empty-row{text-align:center;color:var(--muted);padding:32px!important}.notes-label{font-size:1.1rem;font-weight:650;display:block;margin-bottom:8px}#notes{margin-top:16px;background:#fbfcfa}.navigation{max-width:1200px;margin:auto;padding:18px 24px 0;display:flex;justify-content:space-between;gap:16px;align-items:center}.nav-tabs{display:flex;gap:20px}.nav-tabs button{border:0;background:none;padding:13px 0;color:var(--muted);border-bottom:2px solid transparent;min-height:44px}.nav-tabs button[aria-current=page]{color:var(--green);border-color:var(--green);font-weight:650}.month-selector{display:flex;gap:10px;align-items:center}.month-selector select{min-width:115px;font-size:.85rem}.month-selector input{width:100px;font-size:.85rem}.chart{width:100%;max-height:300px;font-size:11px;fill:var(--muted)}.year-table{min-width:600px}.year-table caption{text-align:left;font-weight:650;padding:0 0 20px;font-size:1.05rem}.settings-card{max-width:760px}.settings-card h2:not(:first-child){margin-top:32px}.notice{background:#f6f4e9;border-left:3px solid #c6b26c;padding:14px 16px;margin:18px 0;font-size:.85rem;color:#605c41}.app-message{max-width:1152px;margin:18px auto 0;padding:14px 18px;background:#f7ece6;border:1px solid #e5cfc3;border-radius:10px;font-size:.85rem}.auth-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:9%;align-items:center;min-height:65vh;padding:30px 4%}.welcome h1{font-size:clamp(2.7rem,5vw,4.4rem);line-height:1.12;margin:25px 0}.welcome p:not(.eyebrow){font-size:1rem;color:var(--muted)}.welcome-tag{display:inline-block;margin-top:30px;font-size:.8rem;color:var(--green);padding-left:14px;border-left:3px solid #b8c79e}.auth-card{padding:34px}.auth-card .field{margin:18px 0}.auth-card .button{width:100%;margin:8px 0}.auth-card h2{font-family:Georgia,serif;font-size:1.8rem;font-weight:500}.divider{text-align:center;font-size:.75rem;color:var(--muted);margin:18px 0}.auth-card .text-button{font-size:.8rem}.setup-code{font-family:monospace;font-size:.8rem;min-height:180px}.empty-month{text-align:center;max-width:650px;margin:70px auto;padding:45px}.empty-month img{margin:0 auto 20px;opacity:.8}.empty-month p{margin-bottom:24px}.sr-only{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;left:-999px}.skip-link:focus{left:15px;top:12px;background:#fff;z-index:10;padding:10px}footer{max-width:1152px;margin:auto;border-top:1px solid var(--line);padding:24px 0;display:flex;justify-content:space-between;color:var(--muted);font-size:.75rem}[hidden]{display:none!important}
@media(max-width:900px){.summary-grid{grid-template-columns:repeat(2,1fr)}.deduction{grid-template-columns:1.4fr 1fr 1fr 44px}.deduction-total{grid-column:1/4;grid-row:2}.deduction>.icon-button{grid-column:4;grid-row:1}.auth-layout{gap:5%;padding:20px 0}.paychecks{grid-template-columns:1fr}.auth-card{padding:25px}}
@media(max-width:600px){.app-header{height:72px;padding:0 16px}.brand{font-size:1.12rem;gap:7px}.brand img{width:33px;height:33px}.header-right{gap:8px;font-size:.68rem}.header-right .small{padding:7px;font-size:.7rem}#main{padding:26px 16px 40px}.navigation{padding:12px 16px 0;align-items:stretch;flex-direction:column;gap:8px}.nav-tabs{justify-content:space-between;gap:12px}.nav-tabs button{font-size:.85rem}.month-selector select{flex:1}.month-selector input{width:100px}.page-heading{align-items:flex-start;gap:10px;flex-direction:column;margin-bottom:22px}.page-heading h1{font-size:2.25rem}.pill{font-size:.7rem;padding:8px 12px}.summary-grid{gap:10px}.stat{padding:18px 14px}.stat p{font-size:.7rem}.stat strong{font-size:1.13rem}.stat span{font-size:.65rem}.card{padding:21px 16px;border-radius:12px}.section-heading{align-items:flex-start;flex-direction:column;gap:14px}.expense-card{padding:20px 0}.expense-card .section-heading{padding:0 16px;flex-direction:row}.expense-card .section-heading h2{font-size:1rem}.expense-card .section-heading .muted{font-size:.75rem}.income-grid{gap:18px 12px}.income-value strong{font-size:.9rem}.frequency{width:100%}.frequency button{flex:1}.deduction{grid-template-columns:1fr 1fr 40px;gap:10px}.deduction .field:first-child{grid-column:1/3}.deduction .field:nth-child(2){grid-column:1}.deduction .field:nth-child(3){grid-column:2}.deduction>.icon-button{grid-column:3;grid-row:1}.deduction-total{grid-column:1/4;grid-row:3}.paycheck{gap:15px}.paycheck strong{font-size:1.1rem}.paycheck p.muted{font-size:.72rem}.auth-layout{display:flex;flex-direction:column;align-items:stretch;gap:28px;min-height:unset;padding:10px 0}.welcome h1{font-size:2.8rem;margin:18px 0}.welcome-tag{margin-top:5px}.welcome .eyebrow{font-size:.6rem}.auth-card{padding:25px}.auth-card h2{font-size:1.6rem}footer{margin:0 16px;gap:14px;line-height:1.6}.app-message{margin:16px 16px 0}.year-table{font-size:.8rem}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}}
.table-title{width:100%;min-width:0;font-weight:650;font-size:1.15rem;padding:7px 9px;border-color:var(--line);background:#fbfcfa}.expense-card .section-heading>div{min-width:0;flex:1}.expense-card .section-heading>button{flex-shrink:0}.paycheck-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:#f0f5eb;border-radius:10px;padding:20px;margin-top:22px}.paycheck-summary span{display:block;color:var(--muted);font-size:.72rem;margin-bottom:9px}.paycheck-summary strong{font-size:1.12rem;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.category-chart{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.category-chart h3{font-size:1rem;margin:0 0 8px}#toggle-deductions{margin-bottom:12px}.copy-controls{display:flex;align-items:end;gap:16px;margin-top:20px;flex-wrap:wrap}
@media(max-width:600px){.table-title{font-size:1rem}.expense-card .section-heading{flex-wrap:wrap}.expense-card .section-heading>div{flex-basis:100%}.expense-card .paycheck-summary,.expense-card .category-chart{margin:18px 16px 0}.paycheck-summary{gap:10px;padding:15px 10px}.paycheck-summary strong{font-size:.9rem}.copy-controls>*{width:100%}}
.title-display{display:flex;align-items:center;gap:7px;margin-bottom:9px}.title-display h2{margin:0;overflow-wrap:anywhere}.edit-title{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:0;background:transparent;color:var(--muted);width:32px;min-height:32px;padding:7px;border-radius:6px}.edit-title:hover{background:#edf3e9;color:var(--green)}.title-editor{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.title-editor .table-title{width:auto;flex:1;min-width:140px}.title-editor .text-button{font-size:.8rem}
@media(pointer:coarse){.edit-title{width:44px;min-height:44px}}

.pie-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:20px 0}.category-pie{margin:0;text-align:center;min-width:0}.category-pie figcaption{font-size:.9rem;font-weight:650;margin-bottom:10px}.category-pie svg{display:block;width:100%;max-width:200px;margin:0 auto 10px}.category-pie strong{font-size:.9rem;overflow-wrap:anywhere}.category-pie .muted{font-size:.75rem;margin-top:8px}.category-legend{width:100%;border-collapse:collapse;font-size:.8rem}.category-legend th,.category-legend td{padding:10px 6px;border-bottom:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums}.category-legend th:first-child{text-align:left;overflow-wrap:anywhere;font-weight:500}.category-legend td{white-space:nowrap}.category-swatch{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:7px}.category-legend thead th{font-size:.7rem;color:var(--muted)}
@media(max-width:600px){.pie-comparison{gap:12px}.category-legend{font-size:.7rem}.category-legend th,.category-legend td{padding:9px 4px}}
.appearance-controls{display:flex;align-items:center;gap:3px}.appearance-controls select{font-size:.72rem;padding:5px;min-height:36px;border-color:transparent;background:transparent;width:48px}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--muted);width:36px;min-height:36px;font-size:1.2rem;border-radius:8px}.theme-toggle:hover{background:#eaf0e6}
:root[data-theme=dark]{color-scheme:dark;--green:#a4d4b6;--muted:#abbcaf;--line:#374b40;--red:#ff9aab;--surface:#1c2922;color:#e4eee7;background:#111a15}
[data-theme=dark] .app-header,[data-theme=dark] .card,[data-theme=dark] .stat,[data-theme=dark] .pill,[data-theme=dark] .secondary{background:#1c2922;border-color:var(--line);color:#e4eee7}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] .input-money,[data-theme=dark] #notes,[data-theme=dark] .table-title{background:#142018;color:#e4eee7;border-color:#4a6354}
[data-theme=dark] .expenses input{background:transparent}[data-theme=dark] .expenses input:focus,[data-theme=dark] .frequency button[aria-pressed=true]{background:#283c2f;color:#e4eee7}
[data-theme=dark] .stat.accent,[data-theme=dark] .paycheck-summary,[data-theme=dark] .frequency,[data-theme=dark] .expenses th,[data-theme=dark] .year-table th{background:#24392a}
[data-theme=dark] .income-value strong,[data-theme=dark] .deduction-total strong{color:#e4eee7}[data-theme=dark] .expenses td,[data-theme=dark] .year-table td,[data-theme=dark] .deduction{border-color:var(--line)}
[data-theme=dark] .positive{color:#9bdbb5}[data-theme=dark] .negative{color:var(--red)}[data-theme=dark] .primary{background:#a4d4b6;color:#142018}[data-theme=dark] .primary:hover{background:#bde7cd}
[data-theme=dark] .notice{background:#3a3320;color:#eee0b1}[data-theme=dark] .app-message{background:#3b2825;border-color:#75584b;color:#ffe1cf}[data-theme=dark] .icon-button{color:#e2aca1}[data-theme=dark] .edit-title:hover,[data-theme=dark] .theme-toggle:hover{background:#304335}[data-theme=dark] .category-pie path{stroke:var(--surface)}[data-theme=dark] .category-pie circle[fill="#edf1e9"]{fill:#314536}
@media(max-width:600px){.app-header{height:auto;min-height:80px;gap:8px}.header-right{flex-wrap:wrap;justify-content:flex-end;max-width:63%;gap:5px}.appearance-controls select{width:43px}.header-right #save-status{font-size:.6rem}.theme-toggle{width:32px}.brand{font-size:1rem}}
.account-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.account-actions .button{white-space:nowrap}.appearance-controls select{width:52px}[data-theme=dark] .expenses input{border-color:transparent}[data-theme=dark] .expenses input:hover,[data-theme=dark] .expenses input:focus{border-color:#4a6354}
.header-support-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:5px 8px;border-radius:9px;text-decoration:none;white-space:nowrap;font-weight:600;color:var(--green)}.header-support-link:hover{background:#eaf0e6}.header-support-link:focus-visible{outline:2px solid var(--green);outline-offset:2px}[data-theme=dark] .header-support-link:hover{background:#304538}
@media(max-width:600px){.brand-light{display:none}.header-support-link{padding:5px;gap:5px}.header-right{max-width:calc(100% - 90px)}.account-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:600px){.header-right #save-status{font-size:.68rem}.account-actions{gap:5px}.appearance-controls select{width:50px}}
.month-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}#print-report{display:none}
@media print {
  @page{size:A4 portrait;margin:12mm}
  html,body{background:#fff!important;color:#203c31!important}
  body[data-print-report]>:not(#print-report){display:none!important}
  #print-report{display:block!important;color:#203c31;background:#fff;--green:#265e48;--muted:#52665a;--line:#cdd8cf;--red:#af3548;font-size:10pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  #print-report .report-brand{font-size:9pt;color:#52665a;margin:0 0 10pt}
  #print-report .page-heading{display:flex;flex-direction:row;align-items:center;margin-bottom:14pt;break-inside:avoid}
  #print-report h1{font-size:23pt}#print-report h2{font-size:12pt}#print-report h3{font-size:11pt}
  #print-report .pill{background:#fff;color:#203c31;border-color:#cdd8cf;font-size:8pt}
  #print-report .card,#print-report .stat{background:#fff;color:#203c31;border-color:#cdd8cf;box-shadow:none;border-radius:7pt;padding:10pt;margin-bottom:12pt}
  #print-report .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7pt;margin-bottom:12pt;break-inside:avoid}
  #print-report .summary-grid .stat{padding:8pt;margin:0}#print-report .stat strong{font-size:12pt}#print-report .stat p{font-size:8pt}
  #print-report .positive{color:#267353}#print-report .negative{color:#af3548}
  #print-report .section-heading{display:block;margin-bottom:9pt;padding:0;break-after:avoid}
  #print-report .income-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10pt;margin-bottom:12pt;break-inside:avoid}
  #print-report .income-value strong,#print-report .deduction-total strong{color:#203c31}
  #print-report .input-money{background:#fff;border:0;padding:0;gap:5pt}#print-report .input-money>span{padding-left:0}
  #print-report .deduction{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:8pt;padding:9pt 0;border-color:#cdd8cf;break-inside:avoid}
  #print-report .deduction>*{grid-column:auto!important;grid-row:auto!important}
  #print-report .table-scroll{overflow:visible}#print-report .expenses{min-width:0;width:100%;table-layout:fixed;font-size:8pt}
  #print-report .expenses th,#print-report .expenses td{padding:7pt 4pt;border-color:#cdd8cf;vertical-align:top}
  #print-report .expenses th,#print-report .category-legend thead th{background:#f0f5ed;color:#52665a;font-size:7pt;letter-spacing:0}
  #print-report .expenses td:first-child{width:19%}#print-report .expenses td:nth-child(2){width:27%}
  #print-report thead{display:table-header-group}#print-report tfoot{display:table-row-group}
  #print-report tr{break-inside:avoid}#print-report .report-value{display:block;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}
  #print-report .expenses td:nth-child(n+3){text-align:right}#print-report .expenses .number{white-space:normal}
  #print-report .paycheck-summary{background:#f0f5ed;grid-template-columns:repeat(3,minmax(0,1fr));margin:12pt 0 0;padding:10pt;break-inside:avoid}
  #print-report .paycheck-summary strong{font-size:11pt}
  #print-report .category-chart{margin:12pt 0 0;padding-top:10pt;break-inside:auto}#print-report .category-chart h3{break-after:avoid}
  #print-report .pie-comparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:14pt;margin:10pt 0;break-inside:avoid}
  #print-report .category-pie svg{max-width:120pt}#print-report .category-pie path{stroke:#fff}
  #print-report .category-legend{font-size:8pt}#print-report .category-legend td,#print-report .category-legend th{padding:6pt 4pt;border-color:#cdd8cf}
  #print-report .report-notes{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:9pt}
}
@media print{#print-report .category-pie circle[fill="#edf1e9"]{fill:#edf1e9}}
@media print{:root{color-scheme:light!important;background:#fff!important}}
.category-cell{display:flex;align-items:center;gap:6px;min-width:0}.category-cell input{min-width:0;flex:1}.category-indicator{display:inline-block;width:12px;height:12px;flex-shrink:0;border:1px solid #ffffff80;border-radius:3px}.chart-tooltip{padding:10px 12px;margin-top:12px;border:1px solid var(--line);border-radius:8px;background:#f0f5eb;font-size:.8rem;overflow-wrap:anywhere}.category-muted{opacity:.22}.category-highlighted[data-pie-slice]{stroke:var(--green);stroke-width:3}.category-highlighted[data-category-legend]{background:#edf4e9}.category-highlighted[data-category-indicator]{outline:2px solid var(--green);outline-offset:2px}[data-pie-slice],[data-category-legend],[data-category-indicator]{cursor:pointer}[data-theme=dark] .chart-tooltip,[data-theme=dark] .category-highlighted[data-category-legend]{background:#24392a}
@media print{#print-report .category-cell{align-items:flex-start}#print-report .category-cell .report-value{min-width:0}#print-report .category-indicator{margin-top:2pt}#print-report .category-muted{opacity:1}#print-report .category-highlighted{outline:none}#print-report [data-pie-slice]{stroke:#fff;stroke-width:1}}
.category-chart{position:relative}.chart-tooltip{position:absolute;z-index:2;top:38px;left:0;right:0;margin-top:0;pointer-events:none;box-shadow:0 3px 12px #0002}
.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}

.receipt-dialog{width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:15px;padding:24px;background:#fff;color:#203c31}.receipt-dialog::backdrop{background:#10281ed9}.receipt-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.receipt-heading h2{margin:0}.receipt-dialog .field{margin:16px 0}.receipt-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 0}.receipt-check{display:flex;align-items:center;gap:12px;font-size:.85rem;line-height:1.5;margin:18px 0}.receipt-check input{flex-shrink:0;width:22px;min-height:22px;height:22px}.receipt-preview{display:block;max-width:100%;max-height:240px;margin:16px auto;object-fit:contain}.receipt-dialog [hidden]{display:none!important}.receipt-dialog [data-status]{margin-top:16px}.receipt-dialog select,.receipt-dialog input{min-width:0;width:100%}.receipt-dialog .receipt-check input{width:22px}.receipt-dialog option{overflow-wrap:anywhere}.table-actions{flex-wrap:wrap}
:root[data-theme=dark] .receipt-dialog{background:#1b2b24;color:#e1ece4}
@media(max-width:600px){.receipt-dialog{padding:18px}.receipt-actions .button{flex:1}.expense-card .table-actions{padding:0 16px}}

.additional-income-row{display:grid;grid-template-columns:1.4fr 1fr 1fr 44px;gap:14px;align-items:end;border-top:1px solid var(--line);padding:18px 0}.additional-income-row input,.additional-income-row select{width:100%;min-width:0}.occasional-income .section-heading>.income-value{flex-shrink:0}.occasional-income #add-income{margin-top:14px}@media(max-width:600px){.additional-income-row{grid-template-columns:minmax(0,1fr) 44px;gap:12px}.additional-income-row>.field{grid-column:1}.additional-income-row>.icon-button{grid-column:2;grid-row:1}.occasional-income .section-heading{align-items:stretch}}@media print{#print-report .additional-income-row{grid-template-columns:1.4fr 1fr 1fr;break-inside:avoid}#print-report .additional-income-row>.field{grid-column:auto}}

.footer-links{display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:flex-end}.footer-links a{font-size:inherit;text-underline-offset:3px}.support-card{scroll-margin-top:110px}.support-card>p{max-width:62ch}.support-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.support-sinpe{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.support-sinpe summary{cursor:pointer;color:var(--green);font-size:.9rem;font-weight:600;padding:10px 0;min-height:44px}.support-sinpe dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 18px;font-size:.85rem;margin:14px 0 18px}.support-sinpe dt{color:var(--muted)}.support-sinpe dd{margin:0;overflow-wrap:anywhere}.support-phone{font-variant-numeric:tabular-nums;user-select:all}.support-sinpe [data-copy-status]:not(:empty){margin-top:12px}.support-pending{margin-top:18px}.support-dialog{width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:15px;padding:24px;background:var(--surface,#fff);color:inherit}.support-dialog::backdrop{background:#10281ed9}.support-dialog .support-card{padding:0;margin:0;border:0;box-shadow:none;background:transparent;color:inherit}.support-close{display:block;margin:0 0 12px auto}.support-dialog .support-card h2{margin-top:0}@media(max-width:600px){footer{flex-wrap:wrap}.footer-links{gap:16px}.support-actions .button{width:100%}.support-sinpe dl{grid-template-columns:1fr;gap:7px}.support-sinpe dd{margin-bottom:10px}.support-dialog{padding:20px}}

.support-method-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:36px;flex-shrink:0;border-radius:5px;background:#fff}.support-method-icon img{width:22px;height:auto}.support-method-logo{display:inline-block;vertical-align:middle;width:80px;height:auto;margin-right:10px;border-radius:4px}.support-sinpe summary>span{vertical-align:middle}

.income-grid input[name="grossSalary"]{font-size:1.05rem;font-weight:700}@media(max-width:600px){.income-grid input[name="grossSalary"]{font-size:.9rem}}

.help-button{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:31;display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:10px 18px;border:1px solid #fff3;border-radius:30px;background:#265e48;color:#fff;box-shadow:0 4px 18px #10281e30;font-weight:650;font-size:.9rem}.help-button:hover{background:#1a4836}.help-icon{display:grid;place-items:center;width:23px;height:23px;border:1.5px solid currentColor;border-radius:50%;font-weight:750}.help-dialog{width:min(560px,calc(100% - 32px));max-width:560px;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface,#fff);color:inherit;box-shadow:0 24px 80px #10281e40;overflow:hidden}.help-dialog[open]{display:flex;flex-direction:column}.help-dialog::backdrop{background:#10281e99}.help-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 24px 18px;border-bottom:1px solid var(--line);flex-shrink:0}.help-heading h2{font-family:Georgia,serif;font-weight:500;font-size:1.65rem;margin:0;letter-spacing:-.4px}.help-heading .eyebrow{margin-bottom:8px}.help-heading .icon-button{color:var(--muted);margin:-8px -10px 0 0}.help-content{padding:22px 24px;overflow-y:auto;overscroll-behavior:contain}.help-steps{list-style:none;counter-reset:help-step;padding:0;margin:0;display:grid;gap:18px}.help-steps li{counter-increment:help-step;position:relative;padding-left:43px}.help-steps li::before{content:counter(help-step);position:absolute;top:0;left:0;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#eaf2e4;color:var(--green);font-size:.82rem;font-weight:700}.help-steps h3{font-size:.92rem;margin:0 0 5px}.help-steps p,.help-tools{font-size:.85rem;line-height:1.55;margin:0}.help-tools{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.help-saving{font-size:.78rem;margin-top:12px}.help-actions{display:flex;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--line);flex-shrink:0}footer{padding-bottom:calc(88px + env(safe-area-inset-bottom))}[data-theme=dark] .help-button{background:#a4d4b6;color:#12261b;border-color:#a4d4b6}[data-theme=dark] .help-button:hover{background:#bce5cb}[data-theme=dark] .help-steps li::before{background:#2c4033}
@media(max-width:600px){.help-button{right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));padding:10px 15px}.help-heading{padding:20px 20px 16px}.help-heading h2{font-size:1.4rem}.help-content{padding:20px}.help-actions{padding:14px 20px}}
.help-heading h2:focus{outline:none}
@media print{.help-button,.help-dialog{display:none!important}}
