:root{--ink:#252525;--black:#171717;--graphite:#343434;--muted:#727272;--line:#e7e4df;--paper:#f7f6f3;--white:#fff;--soft:#efede8;--success:#326a48;--warning:#9b6b18;--radius:18px;--shadow:0 8px 30px rgba(0,0,0,.06)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--paper);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:255px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--black);color:white;padding:22px 16px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:4px 6px 25px;border-bottom:1px solid #3b3b3b}.brand img{width:48px;height:48px;object-fit:contain;filter:invert(1);background:#fff;border-radius:10px;padding:4px}.brand div{display:flex;flex-direction:column}.brand strong{font-size:15px}.brand small,.profile small{color:#aaa;font-size:11px;margin-top:3px}nav{display:grid;gap:5px;margin-top:24px}.nav-item{position:relative;border:0;background:transparent;color:#bbb;border-radius:11px;padding:12px 13px;text-align:left;display:flex;gap:12px;align-items:center}.nav-item span{font-size:19px;width:20px;text-align:center}.nav-item:hover,.nav-item.active{background:#303030;color:white}.nav-item.featured{margin-top:9px;border:1px solid #444}.nav-item b{font-size:10px;margin-left:auto;background:white;color:#222;padding:3px 7px;border-radius:20px}.profile{margin-top:auto;border-top:1px solid #3b3b3b;padding:18px 5px 0;display:flex;align-items:center;gap:10px}.profile>div:nth-child(2){display:flex;flex-direction:column}.profile button{margin-left:auto;background:none;color:#aaa;border:0}.avatar{width:34px;height:34px;border-radius:50%;background:#eee;color:#222;display:grid;place-items:center;font-weight:700}main{min-width:0}header{height:83px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;gap:12px;position:sticky;top:0;z-index:5}header h1{font-size:19px;margin:0}header p{font-size:11px;color:var(--muted);margin:4px 0 0}header>div{margin-right:auto}.menu{display:none;border:0;background:none;font-size:22px}.primary,.outline{border-radius:10px;padding:10px 15px;font-weight:650;border:1px solid var(--black)}.primary{background:var(--black);color:white}.primary:hover{background:#343434}.outline{background:white;color:var(--ink);border-color:#d9d6d0}.page{display:none;padding:32px;max-width:1500px;margin:auto}.page.active{display:block}.welcome{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.4px;color:var(--muted)}h2{font-size:27px;margin:8px 0}p{color:var(--muted)}.welcome p{margin:0}.month-switch{display:flex;gap:12px;align-items:center;background:white;border:1px solid var(--line);padding:7px;border-radius:12px}.month-switch button{border:0;background:var(--soft);border-radius:7px;width:28px;height:28px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.cards article,.panel,.summary-strip{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}.cards article{display:flex;flex-direction:column;min-height:145px}.card-head{display:flex;align-items:center;gap:9px}.card-head small{color:var(--muted)}.icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center}.icon.dark{background:var(--black);color:white}.icon.light{background:var(--soft)}.icon.white{background:white;color:var(--black)}.cards strong{font-size:24px;margin:16px 0 7px}.cards em{font-style:normal;color:var(--muted);font-size:11px}.tithe-card{background:var(--graphite)!important;color:white;border-color:var(--graphite)!important}.tithe-card small,.tithe-card em{color:#d1d1d1!important}.grid-two{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.panel-title,.section-title{display:flex;justify-content:space-between;align-items:center}.panel-title h3{margin:0 0 5px;font-size:16px}.panel-title p{font-size:12px;margin:0}.panel-title button{border:0;background:none;text-decoration:underline;font-size:11px}.bar-row{margin-top:21px}.bar-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.bar{height:7px;background:var(--soft);border-radius:10px;overflow:hidden}.bar i{height:100%;display:block;background:var(--black);border-radius:10px}.commitment{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;border-top:1px solid var(--line);padding:15px 0}.commitment:first-child{margin-top:10px}.commitment .date{background:var(--soft);border-radius:8px;text-align:center;font-size:9px;padding:5px}.commitment .date b{display:block;font-size:14px}.commitment p,.commitment strong{margin:0;font-size:12px}.commitment small{color:var(--muted)}.section-title{margin-bottom:23px}.section-title h2{margin:0}.section-title p{margin:5px 0 0;font-size:13px}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:18px}.summary-strip div{display:flex;flex-direction:column;padding:4px 20px;border-right:1px solid var(--line)}.summary-strip div:last-child{border:0}.summary-strip small{color:var(--muted);margin-bottom:8px}.summary-strip strong{font-size:21px}.table-wrap{overflow:auto;padding:4px 20px}table{width:100%;border-collapse:collapse;min-width:700px}th,td{text-align:left;padding:16px 10px;border-bottom:1px solid var(--line);font-size:13px}th{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.7px}td strong{display:block}.tag{display:inline-flex;padding:5px 9px;border-radius:20px;font-size:10px;font-weight:700;background:var(--soft)}.tag.paid{color:var(--success);background:#e7f1ea}.tag.pending{color:var(--warning);background:#f7eedc}.mark-paid{border:1px solid #d9d6d0;background:white;padding:6px 10px;border-radius:8px;font-size:11px}.filter-row{display:flex;gap:8px;margin-bottom:16px;align-items:center}.filter-row select{margin-left:auto;border:1px solid var(--line);background:white;border-radius:9px;padding:9px}.chip{border:1px solid var(--line);background:white;border-radius:20px;padding:7px 13px;font-size:11px}.chip.active{background:var(--black);color:white}.year-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:18px}.month-card{background:white;border:1px solid var(--line);padding:14px;border-radius:13px}.month-card.current{background:var(--black);color:white}.month-card small{color:var(--muted)}.month-card strong{display:block;margin-top:8px}.plan-row{display:grid;grid-template-columns:1fr 130px 2fr;align-items:center;gap:18px;padding:14px 0;border-top:1px solid var(--line)}.plan-row input{border:1px solid var(--line);padding:9px;border-radius:8px;width:100%}.tithe-hero{background:linear-gradient(110deg,#202020,#444);color:white;padding:28px;border-radius:22px;margin-bottom:18px;display:flex;justify-content:space-between;align-items:center}.tithe-hero p{color:#d0d0d0;max-width:680px}.heart{width:62px;height:62px;border-radius:50%;background:white;color:var(--black);display:grid;place-items:center;font-size:32px}.tithe-summary{grid-template-columns:repeat(3,1fr)}.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.report-card{min-height:220px}.donut{width:125px;height:125px;border-radius:50%;background:conic-gradient(#222 0 45%,#777 45% 72%,#ccc 72%);margin:25px auto;position:relative}.donut:after{content:"";position:absolute;inset:25px;background:white;border-radius:50%}.contribute{background:white;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);max-width:680px;margin:15px auto;padding:42px;text-align:center}.heart.big{margin:0 auto 20px;background:var(--black);color:white;width:72px;height:72px}.contribute p{line-height:1.6}.needs{text-align:left;background:var(--paper);border-radius:15px;padding:18px;margin:25px 0}.needs div:first-child{display:flex;justify-content:space-between;font-size:12px}.progress{height:8px;background:#ddd;border-radius:10px;margin:13px 0}.progress i{display:block;height:100%;background:var(--black);border-radius:10px}.amounts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}.amounts button{padding:10px;border:1px solid var(--line);background:white;border-radius:9px}.amounts button.selected{background:var(--black);color:white}.large{width:100%;padding:14px;margin-bottom:14px}dialog{border:0;border-radius:20px;padding:0;box-shadow:0 30px 80px rgba(0,0,0,.25);width:min(500px,calc(100% - 28px))}dialog::backdrop{background:rgba(0,0,0,.5)}form{padding:25px}.modal-head{display:flex;justify-content:space-between}.modal-head h2{font-size:22px}.close{border:0;background:var(--soft);border-radius:50%;width:34px;height:34px;font-size:22px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:650;margin-top:15px}input,select{border:1px solid #d9d6d0;border-radius:9px;padding:11px;background:white}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tithe-preview{display:flex;justify-content:space-between;background:var(--black);color:white;border-radius:11px;padding:14px;margin-top:18px;font-size:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.toast{position:fixed;right:25px;bottom:25px;background:var(--black);color:white;padding:13px 19px;border-radius:10px;transform:translateY(100px);opacity:0;transition:.25s;z-index:30}.toast.show{transform:none;opacity:1}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.year-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;left:-270px;transition:.25s;width:255px}.sidebar.open{left:0;box-shadow:20px 0 50px rgba(0,0,0,.3)}header{padding:0 16px;height:72px}.menu{display:block}header .outline{display:none}header .primary{font-size:0;padding:10px}header .primary:after{content:"+";font-size:20px}.page{padding:21px 15px}.welcome{align-items:start;flex-direction:column;gap:16px}.cards{grid-template-columns:1fr 1fr;gap:9px}.cards article{padding:15px;min-height:135px}.cards strong{font-size:19px}.grid-two,.report-grid{grid-template-columns:1fr}.section-title{align-items:start;gap:12px}.year-grid{grid-template-columns:repeat(3,1fr)}.plan-row{grid-template-columns:1fr 110px}.plan-row .bar{grid-column:1/-1}.tithe-hero{padding:22px}.tithe-hero .heart{display:none}.tithe-summary{grid-template-columns:1fr}.summary-strip{grid-template-columns:1fr}.summary-strip div{border:0;border-bottom:1px solid var(--line);padding:10px}.filter-row{overflow:auto}.contribute{padding:28px 18px}.amounts{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.cards{grid-template-columns:1fr}.year-grid{grid-template-columns:repeat(2,1fr)}h2{font-size:23px}}
.profile{position:relative}.profile-menu{position:absolute;right:8px;bottom:58px;z-index:30;display:none;min-width:150px;padding:7px;background:#fff;border:1px solid #ddd;border-radius:12px;box-shadow:0 12px 35px #0003}.profile-menu.visible{display:block}.profile-menu button{width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#8b2520;text-align:left;font-weight:700;cursor:pointer}.profile-menu button:hover{background:#fff1ef}
.record-toolbar,.record-actions{display:flex;align-items:center;gap:8px}.record-actions button{border:1px solid #dedbd5;background:#fff;border-radius:8px;padding:7px 10px;font-weight:700;cursor:pointer}.record-actions button:hover{background:#f2f0ec}.record-actions .delete-record,.danger-outline{color:#a93226}.record-actions .delete-record:hover,.danger-outline:hover{background:#fff0ee;border-color:#e2aaa4}@media(max-width:700px){.record-toolbar{align-items:stretch;flex-direction:column}.record-actions{min-width:145px}}
.reset-data-panel{grid-column:1/-1;border:1px solid #edc8c3!important;background:#fffafa!important;display:flex;align-items:center;justify-content:space-between;gap:24px}.reset-data-panel>div{display:flex;align-items:flex-start;gap:15px}.reset-data-panel h3{margin:0 0 5px}.reset-data-panel p{margin:0;max-width:720px}.reset-data-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#ffe8e4;color:#a93226;font-size:25px;font-weight:800}.danger-button{border:0;border-radius:10px;background:#a93226;color:#fff;padding:12px 18px;font-weight:800;cursor:pointer}.danger-button:hover{background:#87271f}.danger-button:disabled{opacity:.45;cursor:not-allowed}.reset-warning{padding:15px;border-radius:12px;background:#fff1ef;border:1px solid #efcbc6;margin-bottom:16px}.reset-warning strong{color:#8d2a21}.reset-warning p{margin:6px 0 0}@media(max-width:700px){.reset-data-panel{align-items:stretch;flex-direction:column}}
