@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@700;800&display=swap');

:root { --ink:#15333a; --muted:#668087; --paper:#f5f7f4; --white:#fff; --brand:#0f766e; --brand-dark:#155e75; --line:#dce5e2; --income:#15803d; --expense:#c2410c; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:'DM Sans',sans-serif; }
button,input,select { font:inherit; }
button { cursor:pointer; }
.topbar { height:72px; padding:0 max(24px,calc((100vw - 1180px)/2)); display:flex; align-items:center; justify-content:space-between; background:var(--white); border-bottom:1px solid var(--line); }
.brand { color:var(--ink); text-decoration:none; font:800 24px 'Manrope',sans-serif; letter-spacing:-1px; }
.brand span { color:var(--brand); }
main { width:min(1180px,calc(100% - 40px)); margin:auto; padding:48px 0 72px; }
.hero { display:flex; justify-content:space-between; align-items:end; margin-bottom:28px; }
.hero h1 { margin:4px 0 6px; font:800 clamp(30px,5vw,46px) 'Manrope',sans-serif; letter-spacing:-2px; }
.hero p { margin:0; color:var(--muted); }
.eyebrow { color:var(--brand); font-size:12px; font-weight:700; letter-spacing:1.4px; margin:0 0 6px; }
.month-picker { display:grid; gap:6px; color:var(--muted); font-size:12px; font-weight:700; }
input,select { min-height:44px; border:1px solid var(--line); border-radius:10px; padding:0 12px; color:var(--ink); background:#fff; }
.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:18px; }
.card,.panel { padding:24px; background:var(--white); border:1px solid var(--line); border-radius:18px; box-shadow:0 8px 30px rgba(25,54,59,.04); }
.card { display:grid; gap:10px; }
.card span { color:var(--muted); font-size:14px; }
.card strong { font:700 28px 'Manrope',sans-serif; }
.card.accent { color:#fff; background:linear-gradient(135deg,var(--brand-dark),var(--brand)); border:0; }
.card.accent span { color:#d6f3ee; }
.grid { display:grid; grid-template-columns:1.65fr 1fr; gap:18px; align-items:start; }
.panel-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; }
h2 { font:700 19px 'Manrope',sans-serif; margin:0; }
.primary,.ghost { border:0; border-radius:10px; min-height:42px; padding:0 16px; font-weight:700; }
.primary { color:#fff; background:var(--brand); }
.primary:hover { background:#0b625c; }
.ghost { color:var(--brand); background:#eaf5f2; }
.transaction-list { margin-top:18px; }
.transaction,.obligation { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 0; border-top:1px solid var(--line); }
.transaction:first-child { border-top:0; }
.transaction-info { display:grid; gap:3px; }
.transaction-info span,.muted { color:var(--muted); font-size:13px; }
.amount { font-weight:700; white-space:nowrap; }
.amount.income { color:var(--income); }
.amount.expense { color:var(--expense); }
.empty { text-align:center; color:var(--muted); padding:40px 10px; }
.progress { height:10px; margin:24px 0 10px; background:#e8eeec; border-radius:20px; overflow:hidden; }
.progress div { height:100%; width:0; background:var(--brand); border-radius:20px; transition:width .3s; }
.limit-copy { margin:0 0 5px; }
hr { border:0; border-top:1px solid var(--line); margin:24px 0; }
.badge { border-radius:20px; padding:5px 9px; color:#9a6700; background:#fff2cc; font-size:11px; font-weight:700; }
dialog { width:min(480px,calc(100% - 30px)); border:0; border-radius:20px; padding:0; box-shadow:0 24px 80px rgba(0,0,0,.24); }
dialog::backdrop { background:rgba(12,37,42,.58); backdrop-filter:blur(3px); }
form { display:grid; gap:15px; padding:26px; }
form label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:600; }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; }
.close { border:0; background:transparent; color:var(--muted); font-size:28px; }
.full { width:100%; margin-top:6px; }
#toast { position:fixed; right:24px; bottom:24px; padding:14px 18px; border-radius:10px; color:#fff; background:var(--ink); opacity:0; transform:translateY(10px); pointer-events:none; transition:.2s; }
#toast.show { opacity:1; transform:none; }
@media (max-width:800px) { .hero { align-items:start; gap:22px; flex-direction:column; } .cards,.grid { grid-template-columns:1fr; } main { width:min(100% - 24px,1180px); padding-top:30px; } .panel-heading { align-items:start; } }
@media (max-width:480px) { .cards { grid-template-columns:1fr 1fr; } .card { padding:18px; } .card.accent { grid-column:1/-1; } .card strong { font-size:21px; } .panel { padding:18px; } .panel-heading { flex-direction:column; } .panel-heading .primary { width:100%; } }

