:root{--bg:#f6f8fb;--teal:#007d85;--muted:#526477}body{font-size:15px;line-height:1.55}aside{width:228px;padding:32px 20px;background:#fff}.brand{width:184px}.workspace{margin-top:22px;padding:20px 10px;border-radius:14px;background:#f6f8fb;border:0}.workspace strong{font-size:17px}nav{gap:7px}nav button{border-radius:12px;font-size:14px}.sidefoot{font-size:11px}main{margin-left:228px;padding:34px clamp(22px,3.4vw,56px);max-width:1800px}h1{font-size:30px;margin:4px 0 18px}.eyebrow{letter-spacing:1.4px;font-size:10px}button{min-height:44px;border-radius:11px}header{margin-bottom:5px}.notice{background:#fffaf0;border-color:#f0e4c7;font-size:12px;color:#71531c}.toolbar{padding:0;gap:12px;margin:24px 0 28px;flex-wrap:wrap}.toolbar label{color:var(--muted);font-size:11px}.toolbar input{font-size:13px}.range-wrap{min-width:194px}select,input{border-color:#dce3eb;border-radius:10px;min-height:44px}.welcome{padding:0;background:none;color:var(--navy);margin-bottom:24px}.welcome span{color:#007d85;letter-spacing:1.7px}.welcome h2{font-size:clamp(25px,2.6vw,36px);letter-spacing:-1.2px;margin:8px 0}.welcome p{color:var(--muted);font-size:14px}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:26px}.quick-action{display:flex;align-items:center;gap:12px;text-align:left;padding:15px 18px;border-color:#e2e8f0;font-size:13px;font-weight:650;box-shadow:0 2px 5px #0b234103}.quick-icon{font-size:22px;border-radius:10px;background:#edf4f7;display:grid;place-items:center;width:38px;height:38px;flex-shrink:0}.quick-icon.income{background:#e4f5ef;color:#167252}.quick-icon.receipt{background:#e7f2f5;color:#007d85}.stats{gap:16px;margin-bottom:22px}.stats article{border:1px solid #e4eaf0;border-radius:17px;padding:23px 24px;box-shadow:0 3px 10px #0b234103;gap:7px}.stats strong{font-size:clamp(25px,2.6vw,37px);letter-spacing:-1.1px;font-variant-numeric:tabular-nums}.stats span{font-size:13px;font-weight:550}.stats small{font-size:11px}.stats .balance{background:var(--navy);border-color:var(--navy);color:white}.stats .balance span,.stats .balance small{color:#cfdee8}.stats .comparison{border-top:1px solid #edf1f4;padding-top:12px;margin-top:8px;font-size:10px}.stats .balance .comparison{border-color:#ffffff22}.panel{border-color:#e4eaf0;border-radius:17px;padding:25px;box-shadow:0 3px 10px #0b234103}.insights-grid{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(220px,1fr);gap:20px;margin-bottom:22px}.chart-heading{display:flex;align-items:start;justify-content:space-between;gap:14px}.chart-heading h2{font-size:17px;margin-bottom:4px}.chart-heading p{margin:0;font-size:11px}.legend{display:flex;gap:15px;font-size:11px;white-space:nowrap;padding-top:3px}.legend span:before{content:'';display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:3px;background:#008c95}.legend .expense:before{background:#8497b0}#cashFlowPlot{margin-top:24px}#cashFlowPlot svg{width:100%;display:block}.chart-empty{min-height:170px;display:grid;place-items:center;color:var(--muted)}.chart-details{font-size:11px;color:var(--muted)}.chart-details summary{cursor:pointer}.review-panel{display:flex;flex-direction:column;align-items:start;background:#f0f7f8}.review-panel h2{font-size:17px;margin-bottom:10px}.review-count{font-size:52px;line-height:1.2;letter-spacing:-2px}.review-panel p{margin:8px 0 2px;font-weight:550;font-size:14px}.review-panel .hint{font-weight:400;font-size:12px;color:var(--muted);margin-bottom:20px}.review-button{margin-top:auto;width:100%;text-align:center;font-size:12px;border-color:#d1e3e7;background:#fff}.columns{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px}.activity .desc{overflow-wrap:anywhere}.activity>.positive,.activity>.negative{white-space:nowrap}.section-title h2{font-size:17px}#clearReceiptFilter{margin-top:12px;background:#e5f2f3;font-size:12px}.flow{flex-shrink:0}footer{font-size:11px}#entry h2{font-size:19px}.head-actions button{font-size:13px}.primary{background:#007d85}#toast{max-width:calc(100% - 24px);width:max-content;font-size:13px}#receiptPreview img{border:1px solid var(--line);border-radius:10px}
@media(max-width:1100px){aside{width:196px;padding:24px 14px}.brand{width:167px}main{margin-left:196px;padding:28px 24px}.insights-grid{grid-template-columns:minmax(0,1.7fr) minmax(180px,1fr)}.quick-action{padding:13px 12px;gap:9px;font-size:12px}.stats article{padding:20px 17px}.legend{flex-direction:column;gap:4px}}
@media(max-width:800px){.insights-grid{grid-template-columns:1fr}.review-panel{display:grid;grid-template-columns:auto 1fr;column-gap:18px;align-items:center}.review-panel h2{grid-column:1/-1}.review-count{grid-row:2/4}.review-panel p{margin:0}.review-button{grid-column:1/-1;margin-top:17px}.columns{grid-template-columns:1fr}.quick-icon{width:30px;height:30px}.quick-action{flex-direction:column;align-items:start}.stats article{padding:18px 14px}.stats strong{font-size:24px}}
@media(max-width:650px){aside{width:100%;padding:16px 18px 0;border:0;position:static;height:auto}.brand{width:174px}nav{padding:9px 0;margin-top:13px;border-top:1px solid #edf1f4;border-bottom:1px solid #edf1f4;gap:5px}nav button{min-height:44px;font-size:13px;padding:10px}main{margin-left:0;padding:22px 16px}header{align-items:center}h1{font-size:27px;margin-bottom:12px}.head-actions #new{display:none}.head-actions #lang{min-width:46px;font-size:13px}.notice{font-size:11px;padding:10px 12px}.toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 25px}.toolbar>.range-wrap{grid-column:1/-1;min-width:0}.toolbar select,.toolbar input{width:100%;max-width:100%}.toolbar button{font-size:12px}.welcome h2{font-size:28px}.welcome p{font-size:13px}.welcome span{font-size:9px}.welcome{margin-bottom:20px}.quick-actions{gap:8px;margin-bottom:18px}.quick-action{padding:13px 10px;gap:10px;font-size:12px;line-height:1.4;border-radius:13px;min-height:109px}.quick-icon{width:32px;height:32px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.stats article{padding:18px 16px;gap:5px}.stats strong{font-size:27px}.stats span{font-size:12px}.stats small{font-size:10px}.stats .balance{grid-column:1/-1;grid-template-columns:1fr auto;align-items:center}.stats .balance strong{grid-column:2;grid-row:1/3;font-size:31px}.stats .balance .comparison{grid-column:1/-1}.panel{padding:20px 17px;border-radius:15px}.insights-grid{gap:16px;margin-bottom:18px}.chart-heading{flex-direction:column;gap:14px}.legend{flex-direction:row}.columns{gap:16px}.chart-details table{font-size:11px}.chart-details td{padding:10px 6px}.activity{gap:10px}.activity strong{font-size:12px}.activity small{font-size:10px}.activity .flow{width:31px;height:33px}.form-grid{gap:15px}dialog{max-height:90dvh}input,select{font-size:16px}.form-actions button{width:100%;font-size:13px}.review-count{font-size:44px}footer{line-height:1.7;padding-bottom:20px}}
.church-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.church-stats article{display:flex;flex-direction:column;gap:7px;background:white;border:1px solid #e4eaf0;border-radius:17px;padding:20px 24px}.church-stats span{font-size:13px;font-weight:550}.church-stats strong{font-size:29px;color:#007d85;font-variant-numeric:tabular-nums}.church-stats small{font-size:11px;color:var(--muted)}.income-mix{margin-bottom:22px}.income-mix h2{font-size:17px;margin-bottom:4px}.income-mix>.hint{margin:0 0 22px;font-size:12px}.mix-row{margin-top:17px}.mix-label{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:8px}.mix-label strong{font-size:12px;white-space:nowrap}.mix-track{background:#edf1f5;border-radius:8px;height:10px;overflow:hidden}.mix-bar{height:100%;border-radius:8px}.legend .expense:before{background:#c07920}
@media(max-width:650px){.church-stats{grid-template-columns:1fr;gap:10px;margin-bottom:18px}.church-stats article{padding:16px 18px;display:grid;grid-template-columns:1fr auto}.church-stats strong{grid-column:2;grid-row:1/3;font-size:27px}.church-stats small{grid-column:1;max-width:220px}.mix-label{font-size:12px;flex-wrap:wrap}.mix-label strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{.quick-actions,.insights-grid,#clearReceiptFilter{display:none!important}}
