:root{--bg: #FBF8F1;--card: #fff;--ink: #334036;--muted: #6b756e;--line: #e6e0da;--brand: #2F6B3A;--brand-dark: #1C2B20;--brand-soft: #EEF4EA;--rose: #d98ca0;--rose-soft: #F4C9D2;--red: #c0392b;--green: #2e7d4f;--amber: #b26a00;--radius: 16px;--nav-h: 64px;--yellow: #FFD84A;font-family:-apple-system,BlinkMacSystemFont,Inter,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--bg);font-size:16px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;background:var(--bg);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}h2,h3{margin:0}h2{font-size:20px}h3{font-size:17px}a{color:var(--brand)}.muted{color:var(--muted)}.small{font-size:16px}.tiny{font-size:16px;color:var(--muted)}.grow{flex:1;min-width:0}.row{display:flex;align-items:center;gap:10px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.shell{max-width:560px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:10px 14px;padding-top:calc(10px + env(safe-area-inset-top));background:var(--bg);border-bottom:1px solid var(--line)}.brand img{width:32px;height:32px;border-radius:50%}.brand{font-weight:700;color:var(--brand);display:flex;align-items:center;gap:6px;font-size:18px}.store-chip{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:99px;border:1px solid var(--rose);background:var(--rose-soft);color:#1c2b20;font-weight:600;cursor:pointer;max-width:55%}.store-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main{flex:1;padding:14px 14px calc(var(--nav-h) + 112px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}.nav{position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;padding-bottom:env(safe-area-inset-bottom)}.nav-in{display:flex;width:100%;max-width:560px}.nav a{flex:1 1 0;min-width:0;padding:0 2px;line-height:1.15;white-space:nowrap;min-height:var(--nav-h);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:var(--muted);font-size:14px;font-weight:600;position:relative}@media (max-width: 400px){.nav-in{padding:0 6px}.nav a{font-size:13px}}.nav a.on{color:var(--brand);box-shadow:inset 0 3px 0 var(--yellow)}.nav a svg{stroke-width:2.2}.nav .badge{position:absolute;top:6px;left:calc(50% + 8px);min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:var(--rose);color:#fff;font-size:14px;display:grid;place-items:center}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:0 16px;font-weight:600;cursor:pointer;white-space:nowrap;text-decoration:none;color:var(--ink)}.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}.btn.danger{color:var(--red);border-color:#efc7c2}.btn.block{width:100%}.btn:disabled{opacity:.55;cursor:default}.small-btn{min-height:44px}.icon-btn{border:0;background:none;min-width:44px;min-height:44px;border-radius:10px;cursor:pointer;color:var(--muted);display:grid;place-items:center}label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#3a453e;font-size:16px}input[type=text],input[type=search],input[type=password],input[type=tel],input[type=email],input[type=datetime-local],select,textarea{min-height:48px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;font-weight:400;font-size:16px;outline:none;width:100%}textarea{resize:vertical;min-height:80px}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #2f6b3a26}.chips{display:flex;flex-wrap:wrap;gap:8px}.chips.scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.chips-wrap{position:relative;min-width:0}.chips-wrap:after{content:"";position:absolute;top:0;right:0;bottom:2px;width:36px;pointer-events:none;background:linear-gradient(to right,transparent,var(--bg));opacity:0;transition:opacity .15s}.chips-wrap.more:after{opacity:1}.card .chips-wrap:after{background:linear-gradient(to right,transparent,var(--card))}.chip{min-height:44px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:#fff;font-weight:600;cursor:pointer;white-space:nowrap}.chip.on{background:var(--brand);border-color:var(--brand);color:#fff}.chip.soft{background:var(--brand-soft);border-color:transparent;color:var(--brand-dark);font-weight:500}.alert{border-radius:12px;padding:12px 14px;display:flex;gap:10px;align-items:center;justify-content:space-between}.alert.error{background:#fdf0ee;color:#a3281b;border:1px solid #f3c6c0}.alert.warn{background:#fff6e5;color:#8a5300;border:1px solid #f1d9a6}.picker-results{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;margin-top:8px}.pick{min-height:56px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;gap:2px;padding:8px 14px;background:#fff;border:0;border-bottom:1px solid var(--line);cursor:pointer;width:100%}.pick:last-child{border-bottom:0}.pick.create{color:var(--rose);font-weight:700;background:var(--rose-soft)}.pick b{font-weight:600}.selected{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 12px;border-radius:12px;background:var(--brand-soft);border:1px solid #c9dccd}.price-row{display:flex;gap:10px;align-items:stretch}.price-row input{flex:1;min-width:0;font-size:22px;font-weight:700}.seg{display:flex;border:1px solid var(--line);border-radius:12px;overflow:hidden;flex:none}.seg button{min-height:48px;padding:0 12px;border:0;background:#fff;font-weight:600;cursor:pointer}.seg button+button{border-left:1px solid var(--line)}.seg button.on.paid{background:var(--green);color:#fff}.seg button.on.due{background:var(--amber);color:#fff}details.more>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600;color:var(--brand);list-style:none}details.more>summary::-webkit-details-marker{display:none}details.more[open] .more-body{display:flex;flex-direction:column;gap:12px;padding-top:6px}.savebar{position:fixed;left:0;right:0;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));z-index:25;padding:10px 14px;background:linear-gradient(to top,var(--bg) 70%,transparent);display:flex;justify-content:center}.savebar .btn{max-width:532px;min-height:56px;font-size:18px;border-radius:14px}.toast{position:fixed;left:14px;right:14px;bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));max-width:532px;margin:0 auto;z-index:40;display:flex;align-items:center;gap:12px;background:#1c2b20;color:#fff;border-radius:14px;padding:6px 8px 6px 16px;min-height:52px;box-shadow:0 6px 24px #0003}body:has(.savebar) .toast{bottom:calc(var(--nav-h) + 84px + env(safe-area-inset-bottom))}.toast-undo{min-height:44px;padding:0 16px;border-radius:10px;border:0;background:#fff2;color:#fff;font-weight:700;cursor:pointer}.sheet-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--bg);width:100%;max-width:560px;max-height:92dvh;border-radius:20px 20px 0 0;display:flex;flex-direction:column}.sheet-head{display:flex;align-items:center;padding:8px 8px 8px 16px;border-bottom:1px solid var(--line)}.sheet-body{overflow-y:auto;padding:14px 14px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}.day{display:flex;justify-content:space-between;align-items:baseline;padding:6px 4px 0;font-weight:700;text-transform:capitalize}.day .tot{color:var(--brand)}.list{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.item{min-height:64px;display:flex;align-items:center;gap:12px;padding:10px 14px;background:#fff;border:0;border-bottom:1px solid var(--line);width:100%;text-align:left;cursor:pointer;text-decoration:none;color:inherit}.item:last-child{border-bottom:0}.item .l{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.item .l b,.item .l span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item .r{font-weight:700;white-space:nowrap;text-align:right}.tag{display:inline-block;padding:1px 8px;border-radius:99px;font-size:14px;font-weight:600}.tag.paid{background:#e3f3ea;color:var(--green)}.tag.due{background:#fff0d9;color:var(--amber)}.tag.unlinked{background:var(--rose-soft);color:#1c2b20}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:2px}.stat b{font-size:22px;color:var(--brand)}.stat span{color:var(--muted)}.login{max-width:400px;margin:0 auto;padding:48px 20px;display:flex;flex-direction:column;gap:16px;min-height:100dvh;justify-content:center}.login .logo img{width:96px;height:96px;border-radius:50%}.login .logo{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--brand)}.empty{text-align:center;color:var(--muted);padding:28px 10px}.sentinel{height:1px}
