:root{color-scheme:light;--ink:#203d36;--muted:#65736d;--paper:#f3f4ee;--line:#dce2d9;--white:#fff;--gold:#d8b574;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{touch-action:manipulation}button:disabled{cursor:default;opacity:1}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #c88731;outline-offset:4px}[hidden]{display:none!important}
.topbar{max-width:780px;margin:auto;padding:24px 24px 18px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);font-size:16px;font-weight:700;letter-spacing:.08em}.brand img{border-radius:9px}.brand small{display:block;font-size:8px;letter-spacing:.16em;margin-top:4px}.preview{background:#e5e9df;font-size:11px;padding:6px 10px;border-radius:20px;color:#526248}
main{max-width:780px;margin:auto;padding:6px 24px calc(28px + env(safe-area-inset-bottom))}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.025em;line-height:1.45}h2{font-size:18px;letter-spacing:.02em}h3{font-size:13px;font-weight:500}.eyebrow{font-size:10px;letter-spacing:.13em;font-weight:700;color:var(--muted)}.hint{font-size:12px;line-height:1.7;color:var(--muted)}.card{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:20px}.intro{padding:30px 2px}.intro h1{font-size:38px;margin:14px 0}.intro>p:last-child{font-size:14px;color:var(--muted);line-height:1.8}.claim-card h2{margin:10px 0 16px}.window{font-size:13px;line-height:1.7;background:#eef2e9;padding:12px;border-radius:9px;margin-bottom:24px}label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}input{width:100%;height:54px;background:#fafbf8;border:1px solid #b5c2b7;border-radius:9px;padding:12px 14px;font-size:17px;color:var(--ink)}form .hint{margin:10px 0 20px}.primary{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;min-height:52px;border:0;border-radius:10px;background:var(--ink);color:white;font-weight:600}.primary:disabled{background:#64786d}details{margin-top:20px;font-size:12px;line-height:1.8}summary{min-height:44px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600}summary:before{content:'+';font-size:20px}details[open] summary:before{content:'−'}details p{color:var(--muted);margin:8px 0}.demo-note{text-align:center;color:var(--muted);font-size:11px;line-height:1.8;margin:20px 0}.error{font-size:13px;line-height:1.7;color:#92372d;background:#fdf0ec;border-radius:8px;padding:12px;margin-bottom:16px}.notice{font-size:13px;background:#fff2db;color:#69532b;padding:12px 16px;border-radius:10px;margin-bottom:14px;line-height:1.6}.loading{padding:60px 0;text-align:center;font-size:14px;color:var(--muted)}#members-picker label{display:flex;align-items:center;gap:8px;font-weight:400;margin-bottom:8px}#members-picker input[type=checkbox]{width:18px;height:18px;min-height:0;flex:none}
.welcome{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 0}.welcome h1{margin:9px 0 4px;font-size:27px;overflow-wrap:anywhere}.quiet{font-size:12px;border:1px solid #cbd5c9;background:transparent;border-radius:20px;min-height:44px;min-width:82px;color:var(--ink);padding:8px 12px;flex-shrink:0}.weather{display:flex;align-items:flex-start;gap:14px;border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#ecefe5}#weather-warnings p{margin-top:6px;font-weight:600;color:var(--ink)}.weather-symbol{font-size:30px;color:#7c8b6c}.weather strong{font-size:12px}.weather p{color:var(--muted);font-size:11px;line-height:1.6;margin-top:4px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:26px 0 13px;gap:10px}.section-head h2{font-size:16px}.section-head>span{font-size:10px;color:var(--muted)}.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.action{display:flex;flex-direction:column;align-items:flex-start;border:0;border-radius:16px;padding:20px;text-align:left;min-height:200px;color:var(--ink)}.dsoa{background:var(--ink);color:white}.drinks{background:#e3e7d6}.action-icon{font-size:30px;line-height:1;margin-bottom:22px;color:var(--gold)}.drinks .action-icon{color:#77825a}.action-title{font-size:17px;font-weight:650;line-height:1.5}.action-description{font-size:11px;margin-top:5px;line-height:1.7;opacity:.8}.status-pill{font-size:10px;border:1px solid currentColor;border-radius:20px;padding:3px 8px;margin-top:18px;opacity:.7}.balances{display:grid;grid-template-columns:1fr 1fr;gap:12px}.balances .card{padding:18px}.amount{font-size:29px;font-weight:650;line-height:1.7;margin-top:8px}.amount small{font-size:11px;margin-left:9px;font-weight:400;color:var(--muted)}.spending{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.spending .hint{text-align:right}.pending{margin-top:20px}.pending .section-head{margin:0 0 16px}.pending>p{font-size:13px;line-height:1.8}.pending>.hint{font-size:11px;margin-top:5px}.small-dot{width:7px;height:7px;background:#a8b29f;border-radius:50%}.install{padding:8px 18px;background:transparent}footer{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:var(--muted);margin-top:18px}.text-button{color:var(--muted);font-size:11px;border:0;background:none;min-height:44px;padding:0 6px}
@media(min-width:650px){#login{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center;margin-top:35px}.demo-note{grid-column:1/-1}.intro h1{font-size:44px}.action{min-height:210px}.balances{grid-template-columns:1fr 1fr 1.5fr}.spending{grid-column:auto;display:block}.spending .hint{text-align:left}.spending .hint br{display:none}.welcome h1{font-size:34px}}
.product-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:14px 16px;border:1px solid var(--rule,var(--line));background:var(--surface,var(--white))}.product-row.unpriced{opacity:.55}.product-name{font-weight:600;font-size:14px}.product-price{font-size:12px;color:var(--ink2,var(--muted));margin-top:3px}.stepper{display:flex;align-items:center;gap:12px;flex-shrink:0}.stepper button{width:40px;height:40px;border-radius:2px;border:1px solid var(--rule,var(--line));background:var(--surface,var(--white));color:var(--ink);font-size:19px;line-height:1}.stepper button:disabled{opacity:.4}.stepper .qty{min-width:26px;text-align:center;font-size:16px}.category-label{font-size:11px;letter-spacing:.06em;color:var(--ink2,var(--muted));margin:20px 0 4px;font-weight:700}.category-label:first-child{margin-top:4px}
.breakfast-row{flex-wrap:wrap;row-gap:10px}.breakfast-row .person-info{flex:1 1 140px;min-width:120px}.breakfast-row.locked{opacity:.55}.cost-field{display:flex;align-items:center;gap:5px;flex-shrink:0}.cost-field span{font-size:14px;color:var(--ink2,var(--muted))}.cost-input{width:92px;height:40px;min-height:40px;padding:6px 8px;font-size:15px;border-radius:2px}
@media(max-width:360px){main{padding-left:16px;padding-right:16px}.topbar{padding-left:16px;padding-right:16px}.action{padding:16px}.action-title{font-size:15px}.welcome h1{font-size:24px}}

.stock-row{flex-wrap:wrap;row-gap:8px;align-items:flex-start}.stock-row .product-name{display:flex;align-items:center;gap:8px}.stock-flags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.stock-badge{font-size:10px;border:1px solid currentColor;border-radius:20px;padding:2px 8px}.stock-badge.low{color:#92372d;background:#fdf0ec}.stock-badge.unknown{color:var(--ink2,var(--muted));background:var(--soft,#eef2e9)}.stock-badge.negative{color:#92372d;background:#fdf0ec}.stock-meta{font-size:12px;color:var(--ink2,var(--muted));line-height:1.7}.stock-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;width:100%}.stock-actions button{font-size:12px;border:1px solid var(--rule,var(--line));background:var(--surface,var(--white));min-height:36px;padding:6px 12px;border-radius:2px;color:var(--ink)}
.pack-row{display:flex;align-items:center;gap:10px;margin:8px 0;padding:10px 12px;border:1px solid var(--rule,var(--line))}.pack-row input[type=text]:not(.kp-input){width:auto;flex:1 1 auto;min-width:0}.pack-row .pack-units{width:90px;flex:none}.pack-row label{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:400;margin:0;flex:none;white-space:nowrap}.pack-row input[type=checkbox]{width:16px;height:16px;min-height:0}
.count-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;padding:12px 14px;border:1px solid var(--rule,var(--line))}.count-row .product-price{font-size:11px}
.keypad{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--ink);padding:10px max(12px,calc((100vw - 732px)/2)) max(10px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr);gap:8px;box-shadow:0 -4px 14px rgba(0,0,0,.25)}.keypad button{min-height:48px;font-size:19px;border:0;border-radius:2px;background:#33362E;color:var(--ground,#fff)}.keypad button.kp-wide{grid-column:1/-1}.keypad button:active{background:var(--accent,#A83526)}
