:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17211b;background:#f4f7f1;line-height:1.35}*{box-sizing:border-box}body{margin:0}.shell{max-width:1120px;margin:0 auto;padding:34px 22px 60px}.topbar,.monthbar,.section-title,.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between}.topbar h1{font-size:32px;letter-spacing:-.05em;margin:2px 0}.eyebrow{font-size:11px;letter-spacing:.14em;color:#879287;font-weight:700;margin:0}.monthbar{margin:42px 0 20px;justify-content:flex-start;gap:18px}.monthbar h2{font-size:25px;margin:0;text-transform:capitalize}.monthbar p{color:#849085;margin:4px 0 0}.icon{border:0;background:transparent;font-size:32px;color:#6d786e;cursor:pointer;padding:2px 12px}.primary{border:0;border-radius:14px;background:#183c29;color:#fff;padding:12px 18px;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 8px 18px #183c2925}.ghost{border:0;background:transparent;color:#5f6f63;font-weight:700;cursor:pointer}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.metric,.split-card{background:#fff;border:1px solid #e6ece4;border-radius:22px;padding:22px 24px;box-shadow:0 10px 35px #31463008}.metric span,.split-card span{color:#778379;font-size:13px}.metric strong{display:block;font-size:30px;letter-spacing:-.05em;margin:13px 0 5px}.metric small{color:#a0aaa2}.metric.accent{background:#dceee0;border-color:#dceee0}.metric.accent strong{color:#175f36}.split{display:flex;gap:14px;margin:14px 0 40px}.split-card{flex:1;padding:16px 20px;display:flex;justify-content:space-between;align-items:center}.split-card strong{font-size:17px}.periods{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.period{background:#fff;border-radius:22px;padding:22px;border:1px solid #e6ece4}.period-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.period h3{margin:4px 0 0;font-size:18px}.period .income{font-size:20px;font-weight:800;color:#315c40}.period .remaining{text-align:right}.period .remaining strong{display:block;font-size:20px}.positive{color:#2a8650}.negative{color:#b44c39}.progress{height:7px;border-radius:10px;background:#edf1ed;overflow:hidden;margin:14px 0 20px}.progress i{display:block;height:100%;background:#78b88d;border-radius:inherit}.period .rows{display:grid;gap:7px}.period .row{display:flex;justify-content:space-between;font-size:13px}.payments-section{margin-top:42px}.section-title h2{font-size:26px;margin:4px 0 18px}.payment-list{display:grid;gap:9px}.payment{display:grid;grid-template-columns:44px 1fr auto auto;align-items:center;gap:14px;background:#fff;border:1px solid #e7ece7;border-radius:17px;padding:14px 16px}.date{color:#7d8b80;font-size:13px;text-align:center}.date b{display:block;color:#1f3527;font-size:17px}.payment h3{font-size:15px;margin:0 0 3px}.payment p{font-size:12px;color:#849085;margin:0}.payment .amount{font-weight:800}.tag{font-size:11px;padding:5px 8px;border-radius:999px;background:#f0f3ee;color:#6c786e}.tag.auto{background:#e8f1f7;color:#4d6f84}.check{border:0;background:#f0f5ee;color:#416b4c;border-radius:50%;width:28px;height:28px;cursor:pointer;font-size:16px}.check.done{background:#3b8d59;color:#fff}.empty{color:#8b968e;padding:22px;background:#fff;border-radius:16px}footer{display:flex;justify-content:space-between;color:#a0aaa2;font-size:12px;margin-top:45px}.dialog-head h2{margin:0}.dialog-head{margin-bottom:20px}.dialog-head .icon{font-size:25px}dialog{border:0;border-radius:22px;padding:25px;width:min(430px,calc(100% - 30px));box-shadow:0 24px 80px #183c2933}dialog::backdrop{background:#17332255}label{display:block;font-size:13px;color:#667368;margin:13px 0}input,select{display:block;width:100%;font:inherit;margin-top:7px;padding:12px;border-radius:11px;border:1px solid #dce4dc;background:#fbfcfb;color:#1d2b21}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dialog-actions{margin-top:24px;justify-content:flex-end;gap:15px}@media(max-width:720px){.shell{padding:24px 15px 45px}.metrics{grid-template-columns:1fr}.metrics .metric{padding:18px}.periods{grid-template-columns:1fr}.payment{grid-template-columns:36px 1fr auto}.payment .tag{display:none}.payment .amount{grid-column:2}.payment .check{grid-column:3;grid-row:1 / span 2}footer{display:block}footer span{display:block;margin-top:8px}}

.payment{grid-template-columns:44px minmax(0,1fr) auto auto auto;transition:opacity .2s,border-color .2s}
.payment.is-paid{opacity:.62}
.date span{font-size:10px}
.payment .amount{white-space:nowrap}
.postponed{color:#a46728;font-weight:700}
.payment-actions{display:flex;align-items:center;gap:5px}
.payment-actions button{border:0;background:#f1f4f0;color:#647168;border-radius:9px;width:30px;height:30px;cursor:pointer;font-size:15px}
.payment-actions button:hover{background:#e4ebe2}
.payment-actions .check{border-radius:50%;background:#edf5eb;color:#416b4c}
.payment-actions .check.done{background:#3b8d59;color:#fff}
.dialog-copy{font-size:13px;color:#7c887e;margin:-7px 0 18px}
.top-actions{display:flex;align-items:center;gap:12px}
.auth-page{min-height:100vh;display:grid;place-items:center;background:#f4f7f1}.auth-shell{width:min(420px,calc(100% - 32px));padding:32px}.auth-shell h1{font-size:42px;letter-spacing:-.06em;margin:6px 0}.auth-lead{color:#7c887e;margin:0 0 24px}.auth-card{background:#fff;border:1px solid #e6ece4;border-radius:22px;padding:24px;box-shadow:0 20px 60px #31463012}.auth-card .primary{width:100%;margin-top:10px}.auth-error{color:#b44c39;font-size:13px;margin:12px 0 0}
.income-section{margin:0 0 24px}
.income-section .section-title h2{margin-bottom:12px}
.income-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.income-rule{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;background:#fff;border:1px solid #e7ece7;border-radius:17px;padding:14px 16px}
.income-rule h3{font-size:15px;margin:0 0 3px}.income-rule p{font-size:12px;color:#849085;margin:0}.income-rule strong{white-space:nowrap}
.rule-actions{display:flex;gap:5px}.rule-actions button{border:0;background:#f1f4f0;color:#647168;border-radius:9px;width:30px;height:30px;cursor:pointer}
.period-empty{grid-column:1/-1}.empty-row{color:#9aa49c;font-size:13px}
.brand{display:flex;align-items:center;gap:12px}.brand-avatar{width:42px;height:42px;border-radius:13px;object-fit:cover;box-shadow:0 7px 16px #183c2925}.free-money{display:block;color:#879287;font-size:11px;margin-top:3px}.auth-brand{margin-bottom:12px}.auth-brand .brand-avatar{width:54px;height:54px;border-radius:16px}.auth-brand h1{margin:0}
@media(max-width:720px){
  .topbar{align-items:flex-start}.top-actions{display:grid;gap:5px}.top-actions .ghost{order:2}
  .income-list{grid-template-columns:1fr}
  .payment{grid-template-columns:36px minmax(0,1fr) auto}
  .payment-actions{grid-column:3;grid-row:1 / span 2;display:grid;grid-template-columns:repeat(2,30px)}
}
