@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;background:#f5f7f3;color:#172922;--ink:#172922;--muted:#52645b;--line:#dce5da;--forest:#173c32;--lime:#dcf1ad;--white:#fff}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid var(--line)}.bar,main{max-width:1192px;margin:auto;padding-inline:32px}.bar{height:72px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:700;color:var(--ink);text-decoration:none;letter-spacing:-.06em}.mark{display:grid;place-items:center;background:var(--forest);color:var(--lime);border-radius:11px;width:36px;height:36px;font-size:25px}.people{display:flex;align-items:center;font-size:14px;font-weight:700}.avatar{display:grid;place-items:center;width:30px;height:30px;border:2px solid white;border-radius:50%;background:#e1edcf}.robi{background:#e9ddf7;margin-left:-7px;margin-right:8px}.intro,.overview,.ledgerHead,.dialogHead,.dialogActions,.filters{display:flex;align-items:center;justify-content:space-between;gap:16px}.intro{padding:48px 0 35px}.eyebrow{font-size:13px;font-weight:700;letter-spacing:.16em;color:#4b6a54;margin:0 0 9px}h1{font:clamp(39px,6vw,68px)/1 'DM Serif Display',Georgia,serif;letter-spacing:-.045em;margin:0}p{color:var(--muted);line-height:1.5}h2{font-size:23px;margin:0;letter-spacing:-.035em}.intro p:last-child{margin-bottom:0}.overview{margin-bottom:16px}.tabs{display:flex;background:#e9eee6;padding:4px;border-radius:12px;gap:3px}.tabs button{background:transparent;border:0;padding:7px 14px}.tabs button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #18332b19}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.cards article{background:white;border:1px solid var(--line);border-radius:18px;padding:22px;min-width:0}.cards article.balance{background:var(--forest);color:#fff;border-color:var(--forest)}.icon{width:36px;height:36px;border-radius:11px;background:var(--lime);color:#244735;display:grid;place-items:center;font-weight:700;font-size:21px}.icon.peach{background:#f8e6d8}.icon.green{background:#e7f0da}.cards h3{font-size:15px;font-weight:600;margin:16px 0 4px}.cards strong{font-size:clamp(24px,3.2vw,38px);letter-spacing:-.055em;display:block;overflow-wrap:anywhere}.cards small{display:block;color:var(--muted);margin-top:8px;font-size:14px}.balance small{color:#e0efdc}#settle{margin-top:12px;padding:6px 9px;color:var(--forest)}.ledger{background:white;border:1px solid var(--line);border-radius:18px;margin-top:26px;padding:24px}.ledgerHead p{margin:3px 0 0;font-size:14px}.actions{display:flex;gap:8px}.filters{margin:20px 0 12px;justify-content:flex-start}.filters input{width:min(360px,100%)}button,input,select,textarea{font:inherit;color:inherit;border:1px solid #ccd8cb;border-radius:9px;background:white;padding:9px 12px}button{cursor:pointer;font-size:14px;font-weight:700;white-space:nowrap}button:hover{filter:brightness(.95)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #789953;outline-offset:2px}.primary{background:var(--forest);color:white;border-color:var(--forest);padding:11px 16px}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:12px 9px;border-bottom:1px solid #e9eee7;white-space:nowrap;font-size:14px}th{color:var(--muted);font-weight:600}td:first-child{white-space:normal;min-width:140px;font-weight:700}.amount{text-align:right;font-variant-numeric:tabular-nums}.income{color:#236446}.empty{text-align:center;padding:33px 10px;color:var(--muted)}.empty strong{display:block;color:var(--ink);margin-bottom:6px}footer{padding:18px 0 28px;color:var(--muted);font-size:13px}dialog{border:1px solid var(--line);border-radius:18px;padding:23px;width:min(640px,calc(100% - 24px));color:var(--ink);max-height:90dvh}dialog::backdrop{background:#14292388}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.wide{grid-column:1/-1}label{display:grid;gap:5px;font-size:14px;font-weight:600;margin-bottom:6px;min-width:0}label input,label select,textarea{width:100%}.dialogActions{justify-content:flex-end;flex-wrap:wrap;margin-top:16px}.hint{font-size:14px}.error,.danger{color:#9c302b}.danger{margin-right:auto}[hidden]{display:none!important}#review{max-height:280px}#review label{margin:0}#review select{min-width:105px}@media(max-width:700px){.bar,main{padding-inline:16px}.intro{align-items:flex-start;flex-direction:column;padding:34px 0 24px}.cards{gap:8px}.cards article{padding:12px}.cards small{font-size:13px}.ledger{padding:14px}.ledgerHead{align-items:flex-start;flex-wrap:wrap}.filters{flex-wrap:wrap}}@media(max-width:400px){.cards{grid-template-columns:1fr 1fr}.balance{grid-column:1/-1}}
.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.shell aside{display:flex;flex-direction:column;gap:26px;padding:24px 16px;background:white;border-right:1px solid var(--line);position:sticky;top:0;height:100dvh}.shell nav{display:grid;gap:5px}.shell nav a{padding:10px 12px;border-radius:9px;color:var(--ink);text-decoration:none;font-weight:600}.shell nav a[aria-current=page]{background:#e8f0db}.shell aside form{margin-top:auto}.shell header .brand{display:none}.shell header .bar{justify-content:flex-end}.shell .brand{white-space:nowrap;font-size:20px}.shell .mark{flex:none}.shell .intro h1{font-size:clamp(35px,5vw,60px)}#analysis label{margin:12px 0;width:180px}.category-line{display:grid;gap:4px;margin:12px 0}.category-line div{display:flex;justify-content:space-between;gap:8px}.category-line meter{width:100%;height:13px;accent-color:var(--forest)}#recipient-form{align-items:end}#recipient-form label{margin:0}#recipient-list{padding-left:22px}#review{max-height:380px;overflow:auto}#review fieldset{margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:10px}#review .fields{margin-top:5px}#importer{width:min(760px,calc(100% - 24px))}.login{min-height:100dvh;display:grid;place-items:center;padding:20px}.login form{width:min(100%,410px);background:white;padding:28px;border:1px solid var(--line);border-radius:18px}.login h1{font-size:44px;margin-bottom:22px}.login button{margin-top:14px}@media(max-width:720px){.shell{grid-template-columns:1fr}.shell aside{height:auto;position:static;gap:10px;border-right:0;border-bottom:1px solid var(--line);padding:12px 16px;flex-direction:row;align-items:center;flex-wrap:wrap}.shell nav{display:flex;order:3;flex-basis:100%}.shell aside form{margin:0 0 0 auto}.shell header{display:none}}

#key-form{max-width:430px}#key-form .actions{margin-top:12px;flex-wrap:wrap}.shell nav{flex-wrap:wrap}
