@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');
:root{--forest:#123b2a;--green:#236344;--mint:#e8f4ec;--gold:#efbd58;--cream:#fbf8ef;--ink:#1c2b22;--muted:#718077;--line:#e7ebe4;--red:#a34e43;--shadow:0 18px 50px #123b2a12}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{height:76px;padding:0 max(20px,calc((100% - 980px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--forest);text-decoration:none}.brand-mark{width:42px;height:42px;border-radius:14px;background:var(--forest);color:var(--gold);display:grid;place-items:center;font-size:22px;font-weight:700}.brand strong,.brand small{display:block}.brand strong{font-size:16px}.brand small{font-size:11px;color:var(--muted);margin-top:2px}.install-button,.outline-button{border:1px solid #cdd8cf;color:var(--forest);background:#fff;border-radius:11px;padding:10px 14px;font-weight:700;font-size:12px}.install-button[hidden]{display:none}main{width:min(100% - 32px,760px);margin:0 auto}.welcome{padding:38px 8px 25px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.14em;color:#67816f;margin:0 0 9px}.welcome h1{font:700 clamp(35px,8vw,52px)/1.08 'Playfair Display',Georgia,serif;color:var(--forest);letter-spacing:-.035em;margin:0}.welcome h1 em{color:#b5842d;font-style:normal}.welcome>p:last-child{max-width:500px;color:#657269;font-size:14px;line-height:1.7;margin:14px 0 0}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.summary-card{position:relative;padding:17px 18px 16px;border-radius:18px;box-shadow:var(--shadow);background:white;border:1px solid #edf0e9}.summary-card.gave{background:linear-gradient(135deg,#e9f5eb,#fff)}.summary-card.owe{background:linear-gradient(135deg,#fff4df,#fff)}.summary-card.income{background:linear-gradient(135deg,#edf3ff,#fff)}.summary-card.expense{background:linear-gradient(135deg,#fff0ed,#fff)}.summary-icon{position:absolute;right:15px;top:13px;width:30px;height:30px;border-radius:10px;background:#fff9;color:var(--green);display:grid;place-items:center;font-size:18px}.owe .summary-icon{color:#a87528}.summary-label,.summary-card strong,.summary-card small{display:block}.summary-label{font-size:11px;color:#637469}.summary-card strong{font-size:25px;color:var(--forest);margin:10px 0 2px}.summary-card small{font-size:10px;color:#839087}.entry-card{margin-top:17px;padding:22px;background:#fff;border:1px solid #edf0e9;border-radius:20px;box-shadow:var(--shadow)}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-title h2{font:700 23px 'Playfair Display',Georgia,serif;color:var(--forest);margin:0}.mic-badge{font-size:19px;width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#fff3db}.voice-panel{background:#f8faf6;border:1px solid #e8ede5;padding:15px;border-radius:15px;margin-bottom:17px}.speak-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:64px;background:var(--forest);color:white;border:0;border-radius:14px;font-weight:700;font-size:15px;box-shadow:0 8px 20px #123b2a20}.speak-button span:first-child{font-size:22px}.speak-button.listening{background:#a44e43;animation:pulse 1.3s infinite}.voice-language{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;font-weight:600;color:#5d6e62;margin:12px 0 0}.voice-language select{border:1px solid var(--line);background:white;border-radius:8px;padding:7px;color:var(--ink)}.voice-status{font-size:11px;color:#748078;margin:9px 0 12px;line-height:1.5}.transcript-label{display:block;font-size:11px;font-weight:700;margin:0 0 6px}.transcript-label span,.optional{font-weight:400;color:#879189}.voice-panel textarea,.form-grid input,.form-grid select,.full-label input,.search-box input{width:100%;border:1px solid #dfe5dc;background:#fff;border-radius:10px;padding:12px;color:var(--ink);outline:none}.voice-panel textarea:focus,.form-grid input:focus,.form-grid select:focus,.full-label input:focus,.search-box:focus-within{border-color:#74a483;box-shadow:0 0 0 3px #74a48320}.voice-panel textarea{resize:vertical;min-height:62px;font-size:13px}.text-button{border:0;background:transparent;color:var(--green);font-size:11px;font-weight:700;padding:9px 0 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid label,.full-label{display:block;color:#48574d;font-size:11px;font-weight:700}.form-grid input,.form-grid select,.full-label input{margin-top:7px;font-size:13px}.full-label{margin-top:13px}.review-hint{font-size:10px;color:#7a867e;margin:13px 0}.save-button{width:100%;display:flex;align-items:center;justify-content:space-between;border:0;border-radius:12px;padding:15px 17px;background:var(--gold);color:#392a0c;font-weight:700}.save-button span{font-size:18px}.records-section{margin-top:32px}.records-heading{margin-bottom:13px}.records-heading .outline-button{font-size:10px;padding:9px 11px}.search-box{height:45px;display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);border-radius:12px;padding:0 12px;color:#8b968e}.search-box span{font-size:22px}.search-box input{border:0;background:transparent;box-shadow:none!important;padding:8px 0;font-size:12px}.filter-row{display:flex;gap:7px;overflow:auto;padding:13px 0}.filter{white-space:nowrap;border:1px solid #e1e7df;background:white;color:#637168;border-radius:30px;padding:8px 12px;font-size:10px;font-weight:600}.filter.active{background:var(--forest);color:#fff;border-color:var(--forest)}.people-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:1px 0 12px}.person-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:11px 12px;display:flex;justify-content:space-between;align-items:center}.person-card strong{font-size:12px}.person-card small{display:block;color:#89948c;font-size:9px;margin-top:3px}.person-card b{font-size:12px;color:var(--green)}.person-card.due b{color:#9a6720}.entry-list{display:grid;gap:9px}.entry-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 14px}.entry-main{display:flex;justify-content:space-between;gap:12px}.entry-person{font-weight:700;font-size:13px;color:var(--forest)}.entry-date{font-size:9px;color:#879189;margin-top:4px}.entry-amount{font-size:14px;font-weight:700;white-space:nowrap}.entry-detail{font-size:10px;color:#78847b;margin-top:8px;line-height:1.5}.entry-type{display:inline-block;border-radius:30px;padding:4px 8px;font-size:9px;font-weight:700;margin:8px 5px 0 0;background:#eaf5ec;color:#36704a}.entry-type.received,.entry-type.repaid{background:#edf1f4;color:#5f6b77}.entry-type.borrowed{background:#fff1d9;color:#976b25}.entry-type.expense{background:#fff0ed;color:#994f43}.entry-type.income{background:#edf3ff;color:#45699d}.entry-type.category-tag{background:#f5f0e4;color:#846927}.entry-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:8px}.entry-actions button{border:0;background:#f5f7f3;color:#68766c;border-radius:8px;padding:6px 9px;font-size:9px}.entry-actions button.delete{color:#994f43}.empty-state{text-align:center;color:#8b958d;background:#fff;border:1px dashed #dbe3da;padding:24px 16px;border-radius:14px;font-size:12px;line-height:1.6}.privacy-note{display:flex;gap:9px;margin:22px 2px 16px;padding:13px;border-radius:12px;background:#eef3ed;color:#647168;font-size:10px;line-height:1.5}.privacy-note span{font-size:15px}footer{text-align:center;font-size:9px;color:#909a92;padding:5px 0 28px}.toast{position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#153c2a;color:white;border-radius:30px;padding:11px 17px;font-size:12px;box-shadow:var(--shadow);transition:.2s;z-index:5;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}@keyframes pulse{50%{box-shadow:0 0 0 7px #a44e4322}}
@media(min-width:700px){.welcome{padding-top:48px}.summary-grid{gap:16px}.summary-card{padding:21px 22px}.summary-card strong{font-size:30px}.entry-card{padding:27px}.voice-panel{padding:18px}.speak-button{width:auto;min-width:240px}.voice-panel{display:grid;grid-template-columns:1fr auto;column-gap:16px}.voice-language{grid-column:2;grid-row:1}.voice-status,.transcript-label,.voice-panel textarea,.text-button{grid-column:1/-1}.voice-status{margin:9px 0}.records-section{margin-top:40px}}
@media(max-width:420px){.entry-card{padding:17px}.summary-card{padding:15px 13px}.summary-card strong{font-size:22px}.form-grid{gap:10px}.form-grid input,.form-grid select{padding:11px 9px;font-size:12px}.people-list{grid-template-columns:1fr}.records-heading .outline-button{font-size:9px;padding:8px}.section-title h2{font-size:21px}}
