:root{--wall: #e9efeb;--surface: #ffffff;--surface-2: #f5f8f6;--ink: #15302a;--ink-2: #4a615b;--line: #d3ddd8;--green: #0b7449;--green-ink: #075c39;--green-soft: #dcefe4;--sachet: #ffc62e;--sachet-deep: #f2ae00;--sachet-ink: #2b2000;--red: #b8312a;--red-soft: #f9e2df;--paper: #fffdf4;--rule: #c9dbe8;--margin: #e0898a;--focus: #1d5fd1;--shadow: 0 1px 0 rgba(21, 48, 42, .06), 0 6px 18px -10px rgba(21, 48, 42, .35);--font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;--nav-h: 64px;--bar-h: 72px;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--wall: #0f1a17;--surface: #17241f;--surface-2: #1c2c26;--ink: #e7f0ec;--ink-2: #a3b8b0;--line: #2b3d36;--green: #3fbf83;--green-ink: #6fd8a5;--green-soft: #173a2a;--red: #ff8077;--red-soft: #3a1d1a;--paper: #1d2a25;--rule: #2a3d48;--margin: #8d4446;--focus: #7aa7ff;color-scheme:dark}}:root[data-theme=dark]{--wall: #0f1a17;--surface: #17241f;--surface-2: #1c2c26;--ink: #e7f0ec;--ink-2: #a3b8b0;--line: #2b3d36;--green: #3fbf83;--green-ink: #6fd8a5;--green-soft: #173a2a;--red: #ff8077;--red-soft: #3a1d1a;--paper: #1d2a25;--rule: #2a3d48;--margin: #8d4446;--focus: #7aa7ff;color-scheme:dark}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--wall);color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.45;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit;color:inherit}h1,h2,h3{line-height:1.2;margin:0}p{margin:0}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.icon{flex:none}.muted{color:var(--ink-2)}.small{font-size:.86rem}.center{text-align:center}.pad{padding:4px 16px 14px}[hidden]{display:none!important}.shell,.onboarding{max-width:560px;margin:0 auto}.boot{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 16px;padding-top:max(10px,env(safe-area-inset-top));background:var(--wall)}.brand{display:flex;align-items:center;gap:8px;min-width:0}.brand-name{font-weight:800;font-size:1.15rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}main#main{padding:4px 16px calc(var(--nav-h) + var(--bar-h) + 28px + env(safe-area-inset-bottom))}.screen{display:flex;flex-direction:column;gap:14px}.offline{margin:0 16px 6px;padding:8px 12px;border-radius:10px;background:var(--surface-2);border:1px dashed var(--line);font-size:.9rem}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);max-width:560px;margin:0 auto;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line)}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:none;color:var(--ink-2);font-size:.82rem;font-weight:600;min-height:48px;cursor:pointer}.bottom-nav button.on{color:var(--green)}.bottom-nav button.on .icon{stroke-width:2.6}.record-bar{position:fixed;left:0;right:0;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));z-index:25;max-width:560px;margin:0 auto;padding:10px 16px;background:linear-gradient(to top,var(--wall) 70%,transparent)}.record-btn{width:100%;min-height:56px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:14px;background:var(--sachet);color:var(--sachet-ink);font-size:1.15rem;font-weight:850;letter-spacing:.01em;box-shadow:0 3px 0 var(--sachet-deep),0 10px 24px -12px #78500099;cursor:pointer}.record-btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--sachet-deep)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 16px;border-radius:12px;border:1.5px solid var(--green);background:var(--green);color:#fff;font-weight:700;text-decoration:none;cursor:pointer}.btn.primary{background:var(--green)}.btn.ghost{background:var(--surface);color:var(--green-ink);border-color:var(--line)}.btn.danger{background:var(--red);border-color:var(--red)}.btn.danger-ghost{background:transparent;color:var(--red);border-color:transparent}.btn.small{min-height:44px;padding:6px 12px;font-size:.92rem}.btn.big{min-height:56px;font-size:1.08rem}.btn.block{width:100%}.btn:disabled{opacity:.45;cursor:not-allowed}.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;border:0;background:transparent;color:var(--ink-2);cursor:pointer;flex:none}.icon-btn.small{width:44px;height:44px}.icon-btn:disabled{opacity:.3}.link{border:0;background:none;padding:11px 0;margin:-11px 0;color:var(--green-ink);font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.link.small{font-size:.85rem}.link.owed{color:var(--red)}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-weight:650;font-size:.95rem}.field-hint{font-size:.85rem;color:var(--ink-2)}.field-error{font-size:.88rem;color:var(--red);font-weight:600}.input,.money-input{width:100%;min-height:50px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);padding:10px 12px}.input:focus,.money-input:focus-within{border-color:var(--green);outline:none;box-shadow:0 0 0 3px var(--green-soft)}.field.has-error .input,.field.has-error .money-input{border-color:var(--red)}.money-input{display:flex;align-items:center;gap:6px;padding:0 12px}.money-input span{color:var(--ink-2);font-weight:700}.money-input input{border:0;outline:none;background:none;width:100%;min-height:48px;font-variant-numeric:tabular-nums;font-weight:700}.money-input.big{min-height:68px}.money-input.big span,.money-input.big input{font-size:1.9rem}.check{display:flex;align-items:center;gap:10px;min-height:44px}.check input{width:22px;height:22px;accent-color:var(--green)}.two,.three{display:grid;grid-template-columns:1fr 1fr;gap:10px}.three .field:last-child{grid-column:1 / -1}.row-actions{display:flex;gap:10px;justify-content:flex-end}.row-actions.wrap{flex-wrap:wrap;justify-content:flex-start}.search{display:flex;align-items:center;gap:8px;padding:0 6px 0 12px;min-height:48px;border-radius:12px;background:var(--surface);border:1.5px solid var(--line);color:var(--ink-2)}.search:focus-within{border-color:var(--green)}.search input{border:0;outline:none;background:none;flex:1;min-width:0;min-height:44px;color:var(--ink)}.chips{display:flex;flex-wrap:wrap;gap:8px;padding:2px;margin:-2px}.chips.wrap{flex-wrap:wrap;overflow:visible}.chip{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:6px 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);font-weight:650;font-size:.95rem;cursor:pointer}.chip.on{background:var(--ink);border-color:var(--ink);color:var(--surface)}.chip small.owed{font-size:.85rem;color:var(--red);font-weight:700}.chip.on small.owed{color:#ffb3ad}.tag{display:inline-flex;align-items:center;gap:3px;padding:1px 7px;border-radius:6px;font-size:.82rem;font-weight:750;vertical-align:1px}.tag.sample{background:var(--surface-2);border:1px dashed var(--ink-2);color:var(--ink-2)}.tag.premium{background:var(--sachet);color:var(--sachet-ink)}.banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;padding:10px 14px;border-radius:12px;background:var(--surface);border:1.5px dashed var(--ink-2);font-size:.92rem}.banner.warn{border:0;background:var(--red-soft);color:var(--red);font-weight:650}.today{padding:18px 16px 16px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}.today-date{font-size:1rem;font-weight:800}.today-date span{font-weight:500;color:var(--ink-2);margin-left:6px}.profit-line{display:flex;flex-direction:column;margin:10px 0 14px}.profit-label{color:var(--ink-2);font-weight:650}.profit-figure{font-size:clamp(2.3rem,11vw,3.1rem);font-weight:850;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--green-ink);line-height:1.05}.profit-figure.neg{color:var(--red)}.today-grid,.ledger-sum{margin:0}.today-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:14px;border-top:1px solid var(--line)}.today-grid .wide{grid-column:1 / -1}.today-grid dt{font-size:.88rem;color:var(--ink-2);font-weight:600}.today-grid dd{margin:0;font-size:1.35rem;font-weight:800;font-variant-numeric:tabular-nums}.today-grid .sub{font-size:.82rem;color:var(--ink-2)}.link.owed{font-size:1.35rem;font-weight:800;text-decoration-thickness:2px}.explain{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--green-soft);display:flex;flex-direction:column;gap:6px;font-size:.97rem}.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.panel{background:var(--surface);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}.panel-title{display:flex;align-items:center;gap:8px;font-size:1rem;font-weight:800;padding:14px 16px 8px}.rows{list-style:none;margin:0;padding:0}.rows li+li .row{border-top:1px solid var(--line)}.row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 16px;border:0;background:none;text-align:left;cursor:pointer}div.row{cursor:default;padding-right:6px}.row-main{flex:1;min-width:0;display:flex;flex-direction:column;font-weight:650;overflow-wrap:anywhere}.row-main small{font-weight:450;color:var(--ink-2);font-size:.84rem}.row.voided .row-main,.row.voided .amt{text-decoration:line-through;opacity:.55}.amt{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.amt.in{color:var(--green-ink)}.amt.out{color:var(--ink)}.amt.owed{color:var(--red)}.amt.muted{color:var(--ink-2);font-weight:600}.stock-pill{padding:3px 10px;border-radius:999px;background:var(--surface-2);font-weight:700;font-size:.86rem;white-space:nowrap}.stock-pill.low{background:#fff1c9;color:#6b4b00}.stock-pill.out{background:var(--red-soft);color:var(--red)}.avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--green-soft);color:var(--green-ink);font-weight:800;flex:none}.rank{width:28px;font-weight:800;color:var(--ink-2)}.more{display:block;padding:8px 16px 14px}.list-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.list-meta{color:var(--ink-2);font-weight:600;font-size:.93rem}.owed-total{color:var(--red)}.foot-note{font-size:.86rem}.empty{padding:28px 16px;text-align:center;color:var(--ink-2);display:flex;flex-direction:column;align-items:center;gap:14px}.empty p{max-width:34ch}.layer{position:fixed;inset:0}.scrim{position:absolute;inset:0;background:#0a191573;display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:560px;max-height:94vh;max-height:94dvh;display:flex;flex-direction:column;background:var(--surface);border-radius:22px 22px 0 0;animation:rise .18s ease-out}@keyframes rise{0%{transform:translateY(24px);opacity:.6}}@media(prefers-reduced-motion:reduce){.sheet{animation:none}}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 8px 6px 18px}.sheet-head h2{font-size:1.2rem;font-weight:800}.sheet-body{overflow-y:auto;padding:6px 18px 18px;display:flex;flex-direction:column;gap:14px;overscroll-behavior:contain}.sheet-foot{padding:12px 18px;padding-bottom:max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.section-title{font-size:.98rem;font-weight:800;margin-top:4px}.hint-line{margin-top:-6px;font-size:.9rem;color:var(--green-ink);font-weight:600}.hint-line.neg{color:var(--red)}.inline-form,.restock{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:14px;background:var(--surface-2)}.set-group{display:flex;flex-direction:column;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--line)}.set-group.plan{padding:14px;border:2px solid var(--sachet);border-radius:14px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}.tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:84px;padding:9px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);text-align:left;cursor:pointer}.tile.picked{border-color:var(--green);background:var(--green-soft)}.tile:disabled{opacity:.45}.tile-name{font-weight:700;font-size:.92rem;line-height:1.2;overflow-wrap:anywhere}.tile-price{font-weight:800;font-variant-numeric:tabular-nums;margin-top:auto}.tile-stock{font-size:.85rem;color:var(--ink-2)}.tile-stock.low{color:#8a5d00;font-weight:700}.tile-count{position:absolute;top:-7px;right:-7px;min-width:28px;height:28px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:var(--green);color:#fff;font-weight:800;font-size:.9rem}.tile.custom{border-style:dashed;align-items:center;justify-content:center;text-align:center;color:var(--green-ink)}.cart{list-style:none;margin:0;padding:0;border:1.5px solid var(--line);border-radius:14px}.cart li{display:flex;align-items:center;gap:10px;padding:10px 12px}.cart li+li{border-top:1px solid var(--line)}.cart-name{flex:1;min-width:0;display:flex;flex-direction:column;font-weight:650}.cart-name small{color:var(--ink-2);font-weight:450}.cart-amt{min-width:76px;text-align:right;font-weight:800;font-variant-numeric:tabular-nums}.stepper{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:12px}.stepper button{width:44px;height:44px;border:0;background:none;display:grid;place-items:center;cursor:pointer}.stepper button:disabled{opacity:.3}.stepper output{min-width:28px;text-align:center;font-weight:800}.change-calc{display:flex;flex-direction:column;gap:8px}.change{font-size:1.05rem}.change strong{font-size:1.4rem;color:var(--green-ink)}.change.short{color:var(--red);font-weight:700}.utang-pick{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px;background:var(--red-soft)}.total-line{display:flex;justify-content:space-between;align-items:baseline;font-size:1.1rem;font-weight:700}.total-line strong{font-size:1.6rem}.sheet.sheet-notebook{background:var(--paper)}.balance-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px}.balance-head span{font-weight:650;color:var(--ink-2)}.balance-head strong{font-size:2.2rem;font-weight:850;font-variant-numeric:tabular-nums}.balance-head strong.owed{color:var(--red)}.notebook{list-style:none;margin:0;padding:0 0 0 30px;position:relative}.notebook:before{content:"";position:absolute;top:0;bottom:0;left:18px;border-left:2px solid var(--margin)}.notebook li{min-height:52px;display:grid;grid-template-columns:1fr auto;grid-template-areas:"what amt" "date undo";align-items:center;column-gap:10px;padding:8px 4px;border-bottom:1px solid var(--rule)}.nb-what{grid-area:what;font-weight:650}.nb-date{grid-area:date;font-size:.82rem;color:var(--ink-2)}.nb-amt{grid-area:amt;font-weight:800;font-variant-numeric:tabular-nums}.notebook li .link{grid-area:undo;justify-self:end}.notebook li.charge .nb-amt{color:var(--red)}.notebook li.payment .nb-amt{color:var(--green-ink)}.notebook li.voided>span{text-decoration:line-through;opacity:.5}.period-nav{display:flex;align-items:center;justify-content:space-between;background:var(--surface);border-radius:14px;padding:4px}.period-nav strong{text-align:center}.report-main{padding:16px}.report-main .profit-line{margin-top:0}.ledger-sum{display:flex;flex-direction:column;font-variant-numeric:tabular-nums}.ledger-sum div{display:flex;justify-content:space-between;gap:12px;padding:7px 0}.ledger-sum dt{color:var(--ink-2)}.ledger-sum dd{margin:0;font-weight:700}.ledger-sum .total{border-top:2px solid var(--ink);font-weight:800}.ledger-sum .total dt{color:var(--ink);font-weight:800}.ledger-sum .aside{font-size:.92rem}.ledger-sum .aside:first-of-type{margin-top:6px}.report-main .small{margin-top:10px}.daybars{display:flex;align-items:flex-end;gap:4px;height:150px;padding:8px 16px 24px}.daybar{flex:1;height:100%;position:relative;display:flex;align-items:flex-end}.daybar .bar{width:100%;min-height:2px;border-radius:4px 4px 0 0;background:var(--green)}.daybar .lbl{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);font-size:.85rem;color:var(--ink-2)}.daybars.month{gap:2px}.hbars{list-style:none;margin:0;padding:0 16px 14px;display:flex;flex-direction:column;gap:10px}.hbars li{display:grid;grid-template-columns:7.5em 1fr auto;gap:10px;align-items:center;font-size:.92rem}.hb-track{height:12px;background:var(--surface-2);border-radius:6px;overflow:hidden}.hb-fill{display:block;height:100%;background:var(--green);border-radius:6px}.hb-fill.owed{background:var(--red)}.hb-fill.out{background:var(--ink-2)}.hb-val{font-weight:700;font-variant-numeric:tabular-nums}.export-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 16px 16px}.onboarding{padding:32px 20px 40px;display:flex;flex-direction:column;gap:16px}.onb-sign{align-self:flex-start;display:flex;flex-direction:column;padding:10px 16px;background:var(--sachet);color:var(--sachet-ink);border-radius:8px;font-weight:900;font-size:1.5rem;line-height:1;letter-spacing:.04em;transform:rotate(-2deg);box-shadow:0 3px 0 var(--sachet-deep)}.onboarding h1{font-size:1.7rem;font-weight:850;margin-top:8px}.lead{color:var(--ink-2);max-width:40ch}.toast-wrap{position:fixed;left:0;right:0;top:max(12px,env(safe-area-inset-top));z-index:200;display:flex;justify-content:center;pointer-events:none;padding:0 16px}.toast{display:flex;align-items:center;gap:8px;max-width:520px;padding:12px 16px;border-radius:14px;background:var(--ink);color:var(--surface);font-weight:650;box-shadow:0 10px 30px -10px #00000080;animation:rise .18s ease-out}.toast.ok .icon{color:#7fe0b0}.toast.error{background:var(--red);color:#fff}.fatal{max-width:480px;margin:15vh auto;padding:20px;display:flex;flex-direction:column;gap:12px}@media(min-width:420px){.three{grid-template-columns:1fr 1fr 1fr}.three .field:last-child{grid-column:auto}}.banner.backup{border:2px solid var(--sachet-deep);background:var(--surface)}.banner-actions{display:flex;align-items:center;gap:16px}.foot-stack{display:flex;flex-direction:column;gap:8px}@media(max-width:380px){.cart li{flex-wrap:wrap}.cart-name{flex-basis:100%}.cart-amt{margin-left:auto}}.paste-restore{display:flex;flex-direction:column;gap:10px}.paste-restore summary{min-height:44px;display:flex;align-items:center;font-weight:650;color:var(--green-ink);cursor:pointer}.paste-restore[open]>*+*{margin-top:10px}textarea.input{font-family:ui-monospace,monospace;font-size:.85rem;resize:vertical}
