:root{--green:#244c36;--ink:#172d21;--muted:#657369;--line:#d6dfd7;--paper:#fff;--bg:#f2f5f0;--amber:#805111}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",sans-serif;color:var(--ink);font-size:18px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select{cursor:pointer}button{min-height:52px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;padding:10px 18px;font-weight:700}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #cf922d;outline-offset:3px}button.primary{background:var(--green);color:white;border-color:var(--green)}[hidden]{display:none!important}header{background:var(--green);color:#fff;display:flex;justify-content:space-between;align-items:center;padding:20px max(20px,calc((100vw - 1500px)/2));gap:16px}h1{margin:3px 0 0;font-size:32px}header p{font-size:13px;margin:6px 0 0;opacity:.8}.eyebrow{font-size:14px;letter-spacing:.08em}.header-actions{display:flex;gap:10px}.header-actions button{background:#ffffff14;color:#fff;border-color:#ffffff55}.menu-panel{padding:15px;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;background:#e4ebe3}.menu-panel a{padding:14px;color:var(--green)}main{max-width:1500px;margin:auto;padding:20px 20px 50px}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}.summary>div{padding:18px 22px;background:#fff;border:1px solid var(--line);border-radius:16px}.summary span,.summary small{display:block;color:var(--muted);font-size:14px}.summary strong{display:block;font-size:32px;margin:5px 0}.summary .needs-check{background:#fcf6e9}.controls{display:flex;flex-direction:column;gap:14px}.tabs{display:flex;gap:8px}.tabs button{flex:1;max-width:200px}.tabs .active{background:var(--green);color:#fff;border-color:var(--green)}.filters{display:flex;gap:10px}.filters label:first-child{flex:1}.filters input,.filters select{width:100%;min-height:54px;padding:12px;border:1px solid #acbcae;border-radius:10px;background:#fff;color:var(--ink);min-width:0}.list-heading{display:flex;justify-content:space-between;align-items:center;margin-top:22px}.list-heading h2{font-size:19px}.list-heading span{color:var(--muted);font-size:14px}.customers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.customer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 16px;text-align:left;padding:20px;min-height:120px;box-shadow:0 2px 2px #18322105}.customer .name{font-size:24px;overflow-wrap:anywhere}.customer .amount{font-size:27px;font-variant-numeric:tabular-nums}.customer .meta{font-size:14px;color:var(--muted);line-height:1.6}.badge{font-size:14px;border-radius:6px;padding:5px 10px;justify-self:end;white-space:nowrap}.badge.unpaid{background:#edf1ec}.badge.paid{background:#dbeee1;color:#185630}.badge.unknown{background:#fff0ce;color:var(--amber)}.conflict{grid-column:1/-1;color:#a22720;font-size:14px}.customer.paid{background:#f7faf6}.empty{grid-column:1/-1;background:#fff;border:1px dashed #b5c3b7;border-radius:14px;padding:36px;text-align:center;line-height:1.8}.empty button{display:block;margin:18px auto 0}.history{margin-top:30px}.history summary{padding:16px;cursor:pointer}.history p{background:white;margin:7px 0;padding:14px;border-radius:10px;font-size:15px;line-height:1.6}.footnote{color:var(--muted);font-size:13px;line-height:1.7;margin-top:25px}#message:not(:empty){padding:14px 18px;background:#e0efe2;border:1px solid #92b39a;border-radius:10px;margin-bottom:16px;line-height:1.6}#message.error{background:#fff0e9;color:#943623;border-color:#d9a592}dialog{border:0;border-radius:20px;padding:32px;width:min(530px,calc(100% - 28px));max-height:90dvh;color:var(--ink);box-shadow:0 18px 70px #0004}dialog::backdrop{background:#13251bd0}dialog h2{margin:12px 0;font-size:28px;overflow-wrap:anywhere}.close{float:right;font-size:25px;min-width:52px;border:0;background:#f0f3ed}.payment-amount{font-size:42px;font-weight:800;margin:10px 0}dialog p{line-height:1.7}dialog select,dialog input{display:block;width:100%;min-height:60px;padding:13px;margin:10px 0;border-radius:10px;border:1px solid #8c9f91;background:white;color:var(--ink);font-size:20px}dialog button.primary,dialog button.secondary{width:100%;margin-top:12px}#payment-error,#login-error{color:#a52e20;line-height:1.6}.muted{font-size:14px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.demo-banner{font-weight:700}body.busy #customers{opacity:.6;pointer-events:none}@media(min-width:1600px){body{font-size:23px}main{max-width:1800px}.customer{min-height:150px;padding:25px}.customer .name{font-size:30px}.customer .amount{font-size:34px}button{min-height:65px}.customer .meta,.badge{font-size:18px}.list-heading h2{font-size:26px}}@media(max-width:700px){body{font-size:16px}header{padding:15px;gap:8px}h1{font-size:24px}.header-actions{gap:6px}.header-actions button{padding:8px 11px;font-size:14px}main{padding:14px 12px 35px}.summary{gap:7px;margin-bottom:16px}.summary>div{padding:12px 9px;border-radius:12px}.summary span,.summary small{font-size:11px}.summary strong{font-size:23px}.tabs{gap:6px}.tabs button{padding:10px 8px}.filters{flex-wrap:wrap;gap:8px}.filters label:first-child{flex-basis:100%}.filters label:not(:first-child){flex:1}.customers{grid-template-columns:1fr;gap:9px}.customer{padding:15px;min-height:108px}.customer .name{font-size:21px}.customer .amount{font-size:24px}.customer .meta,.badge{font-size:12px}.list-heading h2{font-size:16px}.payment-amount{font-size:36px}dialog{padding:22px}.menu-panel{justify-content:flex-start}.menu-panel button{font-size:14px}}
:root{--row-height:52px}
/* Compact collection list: names, amounts and status only. */
header{padding:10px max(12px,calc((100vw - 1500px)/2))}h1{font-size:24px}header .eyebrow{font-size:12px}header p{margin:3px 0 0;font-size:11px}main{padding:12px 12px 28px}.controls{gap:8px}.filters{flex-wrap:nowrap;gap:8px}.filters label:first-child{flex:0 0 170px}.filters label:last-child{flex:1}.filters input,.filters select{min-height:44px;padding:8px}.tabs button{max-width:none;min-height:46px;padding:8px}.memo{border:1px solid var(--line);background:#fffdf5;border-radius:8px;padding:8px 12px;margin:10px 0;font-size:13px;display:flex;gap:12px;align-items:baseline}.memo>b{font-size:12px}.memo small{display:block;color:var(--muted);margin:3px 0}.memo button{min-height:36px;font-size:14px;margin:3px 4px 3px 0;padding:4px 8px}.customers{display:grid;grid-template-columns:1fr;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:white}.customer{grid-template-columns:minmax(0,1fr) auto 72px;gap:8px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;min-height:var(--row-height);padding:8px 12px}.customer:last-child{border-bottom:0}.customer .name{font-size:18px;font-weight:600}.customer .amount{font-size:19px;font-weight:600}.customer .badge{font-size:12px;padding:4px 7px}.history{margin-top:12px}.footnote{font-size:11px;margin-top:10px}#message:empty{display:none}.conflict{font-size:12px}.header-actions button{min-height:44px;padding:8px 10px}
@media(min-width:1100px){.customers{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}.customer{min-height:58px}.customer .name{font-size:22px}.customer .amount{font-size:23px}.customer .badge{font-size:14px}.memo{font-size:15px}}
@media(max-width:700px){.filters label:first-child{flex:0 0 155px}.filters label:last-child{min-width:0;flex:1}.customer{min-height:50px;padding:7px 9px;grid-template-columns:minmax(0,1fr) auto 60px;gap:6px}.customer .name{font-size:16px}.customer .amount{font-size:17px}.customer .badge{font-size:11px;padding:4px 5px}.memo{padding:7px 9px;gap:8px;font-size:12px}.filters input,.filters select{font-size:15px}main{padding:10px 8px 24px}}
