/* Warm, playful surfaces with readable text and generous touch targets. */
:root{--ink:#35483f;--muted:#626f67;--blue:#436c5b;--line:#e0e5d9;--cream:#fffef9;color:var(--ink);background:#f7f7ef}
body{background:radial-gradient(ellipse at 95% 3%,#f6e5c680,transparent 35%),radial-gradient(ellipse at 0 35%,#dbe8d650,transparent 36%)}
header{padding-top:24px;padding-bottom:18px}.mark{background:#496e5b;box-shadow:4px 4px 0 #d6e1cd}.pill{background:#e5ecdd;color:#455d49}.brand small{color:var(--muted)}
.heading{position:relative;background:#e9efdf;border:1px solid #dae3cf;border-radius:30px;padding:32px 38px;margin-bottom:18px;overflow:hidden;min-height:220px}
.heading h1{font-size:38px;line-height:1.45;margin:10px 0 12px;letter-spacing:.035em}.heading .eyebrow{color:#596f55;letter-spacing:.14em}.subtitle{color:#57695a;max-width:390px}
.hero-buddy{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;width:160px;min-width:160px;height:160px;transform:rotate(7deg);border-radius:42px;background:#fff5d8;border:2px solid #cdbf91;box-shadow:7px 8px 0 #c8d7bd;margin-right:20px}.buddy-face{font-size:57px;color:#617046;letter-spacing:.08em}.buddy-caption{font-size:12px;color:#61694d;margin-top:3px}.buddy-star{position:absolute;font-size:38px;color:#b58046;right:-18px;top:-23px}
.quick-guide{display:flex;gap:10px;margin:0 0 28px}.quick-guide a{display:flex;align-items:center;gap:9px;flex:1;padding:12px 16px;background:#fffef9;border:1px solid var(--line);border-radius:14px;text-decoration:none;color:#50604f;font-size:14px}.quick-guide a:hover{background:#edf2e5}.quick-guide b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e7eedd;font-size:12px}.quick-guide a:nth-child(2) b{background:#f5e7d0}.quick-guide a:nth-child(3) b{background:#e9e3ef}
.card{box-shadow:0 5px 18px #43583d05}.book-bar{border-left:5px solid #92aa7d;padding:20px 24px;gap:12px}.book-bar label{font-weight:700;color:#53654c}.book-bar select{font-weight:650;background:#f6f7ee;min-height:46px}.book-bar .save-note{display:flex;gap:8px;align-items:center;font-size:13px;color:#735f3e;background:#fbf2df;padding:10px 13px;border-radius:10px}.book-bar .save-note span{font-size:20px}.book-bar button{min-height:44px}
.members{padding:24px;margin-bottom:28px}.member-heading p{max-width:450px;line-height:1.7;color:#64725f}.chip{background:#f0f3e9;gap:7px;padding:6px 9px;border:1px solid #e3e8db}.chip .rename-member{font-size:12px;width:auto;min-width:40px;height:40px;padding:4px;color:#4e685b}.chip button{height:40px;width:36px}.avatar{background:#dce8db;color:#436447}.member-add input{width:170px;min-height:44px;background:#fffef9}.member-add .round{font-size:14px;width:auto;min-width:60px;height:44px;border-radius:24px;padding:0 15px;background:#e1ead8;color:#39513f;font-weight:650}
.primary{background:#436c5b;box-shadow:0 3px 0 #2d5142;min-height:44px}.primary:hover{background:#355847}.quiet{background:#eaf0e3;color:#456049;min-height:44px}.text-button{min-height:40px}.ledger-heading p{color:#657361}.expense{box-shadow:0 3px 0 #e8ebdf;border-color:#dfe5d7}.expense-badge{background:#ebeedf;color:#5e704f}.expense:nth-child(3n+2) .expense-badge{background:#f8ead4;color:#92713b}.expense:nth-child(3n) .expense-badge{background:#e9e4ef;color:#786283}.expense-main p,.expense-detail,.footnote{color:#626d62}.expense-total{color:#3d5645}.expense-bottom{border-color:#d7dfce}.delete{color:#98615b}
.receipt{background:#edf1e3;border-color:#d5dfc7;box-shadow:0 8px 24px #465c3610}.receipt:after{background:linear-gradient(135deg,#edf1e3 25%,transparent 25%) -12px 0/24px 24px,linear-gradient(225deg,#edf1e3 25%,transparent 25%) -12px 0/24px 24px}.tiny-tag{background:#dfe8c9;color:#4e6541}.receipt-head h2{font-size:20px}.receipt-head p,.receipt-summary p,.receipt-meta,.receipt-end{color:#637257}.transfer{border-color:#d9e1cf;box-shadow:0 2px 0 #dce4d2}.grand-total{color:#365842}.transfer-amount{color:#3e634e}.settled{color:#4b6546;background:#f9fbf3;border-radius:15px}.empty{border:2px dashed #cddabd;background:#fcfdf6;padding:32px 24px}.empty-spark{font-size:34px;color:#9a8050}.empty h3{color:#4d6446;font-size:19px;margin:9px 0}.empty p{max-width:330px;margin:0 auto 20px;color:#68755e}.empty .primary{font-size:14px}
dialog{border:1px solid #ccd8bf;border-radius:25px}dialog::backdrop{background:#26382c70}.segmented{background:#ecf0e4}.segmented span{color:#586a51}.segmented small{display:block;font-size:11px;margin-top:4px;font-weight:400;color:#66765e}.segmented input:checked+span{box-shadow:0 2px 5px #34483c15;color:#355a43}.split-person{background:#f2f5eb}.split-person:has(input[type=checkbox]:checked){box-shadow:inset 3px 0 #91a67c}.hint{color:#586b50;background:#f2f5e9;padding:12px 14px;border-radius:10px}.error:not(:empty){background:#fbebe5;padding:10px 13px;border-radius:9px;color:#923f38}input:focus,select:focus{border-color:#79916b}input,select{min-height:44px}.split-person input[type=checkbox]{min-height:18px}.notice{background:#365743}.receive{color:#39613f}.owe{color:#885d2d}footer{color:#65715e}h2[id]{scroll-margin-top:20px}
@media(prefers-reduced-motion:no-preference){.expense,.quick-guide a{transition:box-shadow .18s,background .18s}.expense:hover{box-shadow:0 5px 12px #4b604015}.hero-buddy{animation:buddy-in .55s ease-out}@keyframes buddy-in{from{opacity:0;transform:rotate(-5deg) translateY(12px)}to{opacity:1;transform:rotate(7deg)}}}
@media(max-width:850px){.heading{padding:28px}.hero-buddy{margin-right:5px;width:130px;min-width:130px;height:135px}.buddy-face{font-size:48px}.heading h1{font-size:32px}.book-bar>div{flex-basis:50%}}
@media(max-width:680px){.heading{padding:25px 22px;min-height:205px;border-radius:24px;gap:8px;align-items:center}.heading h1{font-size:27px}.heading .eyebrow{font-size:11px;letter-spacing:.06em}.subtitle{font-size:14px;max-width:230px}.hero-buddy{width:85px;min-width:85px;height:100px;border-radius:26px;margin:0 0 0 4px;box-shadow:4px 5px 0 #c8d7bd}.buddy-face{font-size:34px}.buddy-caption{font-size:9px}.buddy-star{font-size:26px;right:-8px;top:-20px}.quick-guide{gap:6px;margin-bottom:20px}.quick-guide a{padding:10px 6px;font-size:12px;gap:5px;justify-content:center}.quick-guide b{width:21px;height:21px;font-size:11px;flex-shrink:0}.book-bar{padding:17px}.book-bar>div{flex-basis:100%}.book-bar button{flex:1;font-size:13px;padding:9px}.members{padding:20px}.member-heading p{font-size:12px}.expense-bottom{flex-wrap:wrap}.expense-actions{margin-left:auto}.expense-detail{flex:1;min-width:130px}.ledger-heading p{max-width:unset}.ledger-heading{align-items:flex-start}.ledger-heading .primary{margin-top:3px}.receipt{margin-top:4px}.member-add{width:100%}.member-add input{flex:1;width:0}}
@media(max-width:380px){.hero-buddy{display:none}.heading h1{font-size:29px}.heading{min-height:unset}.subtitle{max-width:none}.quick-guide a{flex-direction:column;gap:6px}.expense-top{flex-wrap:wrap}.expense-main{min-width:100px}.expense-total{margin-left:auto}.two-col{grid-template-columns:1fr}.pill{display:none}}

.book-bar .save-note{background:#eaf1e2;color:#405d3c}.book-bar .save-error{background:#fff0df;color:#82502a}#retry-save[hidden]{display:none}
