:root{--bg:#f6f4ee;--surface:#fff;--surface-2:#f0ede4;--text:#1d2420;--muted:#6b726d;--line:#e4e0d5;--accent:#1f7a4d;--accent-ink:#fff;--accent-soft:#e2f1e8;--warm:#f4c542;--danger:#c2412d;--radius:16px;--shadow:0 1px 2px #1e281e0f, 0 4px 16px #1e281e0f;--tabbar-h:64px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#121614;--surface:#1b211e;--surface-2:#242b27;--text:#e9ede9;--muted:#94a099;--line:#2d3530;--accent:#3fb27a;--accent-ink:#0d1a13;--accent-soft:#1d3428;--danger:#ff7a63;--shadow:0 1px 2px #0000004d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:var(--bg);color:var(--text);margin:0}body{overscroll-behavior-y:contain;font-family:Rubik,Segoe UI,system-ui,-apple-system,Arial,sans-serif;font-size:16px;line-height:1.4}body.no-scroll{overflow:hidden}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0;padding:0}button:disabled{cursor:default}h1,h2,h3{margin:0}.muted{color:var(--muted)}.small{font-size:.82rem}.app{min-height:100dvh}.main{max-width:640px;margin:0 auto}.page{padding:calc(16px + env(safe-area-inset-top)) 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom))}.list-page{padding-bottom:calc(110px + env(safe-area-inset-bottom))}.page-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.page-head h1{letter-spacing:-.01em;font-size:1.75rem;font-weight:700}.splash{min-height:100dvh;color:var(--accent);place-items:center;display:grid}.offline-bar{z-index:30;background:var(--warm);color:#3a2f00;text-align:center;padding:6px;font-size:.85rem;position:sticky;top:0}.btn{white-space:nowrap;border-radius:12px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:0 16px;font-weight:600;transition:transform 80ms,opacity .15s;display:inline-flex}.btn:active:not(:disabled){transform:scale(.97)}.btn:disabled{opacity:.5}.btn.primary{background:var(--accent);color:var(--accent-ink)}.btn.soft{background:var(--accent-soft);color:var(--accent)}.btn.ghost{color:var(--muted)}.btn.danger{background:var(--danger);color:#fff}.btn.block{width:100%;min-height:52px;font-size:1.05rem}.danger-text{color:var(--danger)!important}.grow{flex:1}.icon-btn{width:44px;height:44px;color:var(--text);border-radius:12px;place-items:center;display:grid}.icon-btn:active{background:var(--surface-2)}.icon-btn.small{width:28px;height:28px;color:var(--muted)}.link-btn{color:var(--muted);margin:32px auto 0;font-size:.9rem;text-decoration:underline;display:block}.round-btn{background:var(--surface-2);width:36px;height:36px;color:var(--text);border-radius:50%;place-items:center;transition:transform 80ms;display:grid}.round-btn:active:not(:disabled){transform:scale(.9)}.round-btn.add{background:var(--accent);color:var(--accent-ink);width:40px;height:40px}.qty{background:var(--accent-soft);border-radius:22px;align-items:center;gap:4px;padding:3px;display:flex}.qty .round-btn{background:var(--surface)}.qty-val{text-align:center;min-width:34px;color:var(--accent);font-variant-numeric:tabular-nums;font-weight:700}.qty-static{color:var(--muted);font-weight:600}.tabbar{bottom:0;z-index:20;background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:6px 16px calc(6px + env(safe-area-inset-bottom));justify-content:center;gap:8px;display:flex;position:fixed;inset-inline:0}.tabbar button{max-width:200px;height:52px;color:var(--muted);border-radius:14px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.78rem;font-weight:600;display:flex}.tabbar button.active{color:var(--accent);background:var(--accent-soft)}.sticky-search{z-index:10;background:var(--bg);margin-top:-8px;padding:8px 0 10px;position:sticky;top:0}.search{background:var(--surface);border:1px solid var(--line);height:48px;color:var(--muted);border-radius:14px;align-items:center;gap:8px;padding:0 14px;display:flex}.search:focus-within{border-color:var(--accent)}.search input{color:var(--text);background:0 0;border:0;outline:0;flex:1;min-width:0}.search input::-webkit-search-cancel-button{display:none}.stat-card{text-align:start;background:var(--accent);width:100%;color:var(--accent-ink);border-radius:var(--radius);box-shadow:var(--shadow);justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:8px;padding:16px 18px;display:flex}.stat-card .muted{color:inherit;opacity:.8}.stat-value{font-variant-numeric:tabular-nums;font-size:1.9rem;font-weight:700}.months{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:8px;padding:8px 16px}.month-row{border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:8px 0;display:flex}.month-row:last-of-type{border-bottom:0}.month-row span:first-child{flex:1}.months p{margin:6px 0 4px}.cards{flex-direction:column;gap:10px;margin-top:16px;display:flex}.list-card{text-align:start;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border-inline-start:4px solid var(--accent);flex-direction:column;gap:4px;padding:14px 16px;display:flex}.list-card.closed{border-inline-start-color:var(--line)}.list-card:active{transform:scale(.99)}.list-card-top{justify-content:space-between;align-items:center;gap:8px;font-size:1.08rem;display:flex}.list-card-meta{color:var(--muted);flex-wrap:wrap;gap:6px;font-size:.85rem;display:flex}.list-card-total{margin-top:4px}.chip{white-space:nowrap;border-radius:20px;padding:3px 10px;font-size:.75rem;font-weight:600}.chip.open{background:var(--accent-soft);color:var(--accent)}.chip.closed{background:var(--surface-2);color:var(--muted)}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:12px;padding:40px 20px;display:flex}.empty p{max-width:320px;margin:0}.empty-icon{font-size:3rem}.list-head{align-items:center;gap:4px;margin:0 -8px 12px;display:flex}.list-title{text-align:start;flex:1;align-items:center;gap:8px;min-width:0;display:flex}.list-title h1{text-overflow:ellipsis;white-space:nowrap;font-size:1.35rem;font-weight:700;overflow:hidden}.menu-wrap{position:relative}.menu-backdrop{z-index:40;position:fixed;inset:0}.menu{inset-inline-end:0;z-index:41;background:var(--surface);border:1px solid var(--line);min-width:200px;box-shadow:var(--shadow);border-radius:14px;padding:6px;position:absolute;top:46px}.menu button{text-align:start;border-radius:10px;width:100%;padding:12px;display:block}.menu button:active{background:var(--surface-2)}.menu button.danger{color:var(--danger)}.summary{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);justify-content:space-between;align-items:flex-end;gap:12px;padding:14px 18px;display:flex}.summary-total{color:var(--accent);font-variant-numeric:tabular-nums;font-size:1.7rem;font-weight:700}.summary-side{text-align:end}.hint{color:var(--muted);padding:6px 4px 0;font-size:.82rem}.segment{background:var(--surface-2);border-radius:14px;gap:4px;margin:14px 0 6px;padding:4px;display:flex}.segment button{height:40px;color:var(--muted);border-radius:10px;flex:1;justify-content:center;align-items:center;gap:4px;font-weight:600;display:flex}.segment button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.groups{flex-direction:column;gap:14px;margin-top:10px;display:flex}.group h3{color:var(--muted);padding:0 4px 6px;font-size:.85rem;font-weight:600}.group{background:0 0}.row{text-align:start;background:var(--surface);border-bottom:1px solid var(--line);align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 12px;display:flex}.group>.row:first-of-type{border-radius:var(--radius) var(--radius) 0 0}.group>.row:last-of-type{border-radius:0 0 var(--radius) var(--radius);border-bottom:0}.group>.row:only-of-type{border-radius:var(--radius)}.row.in-list{background:color-mix(in srgb, var(--accent-soft) 55%, var(--surface))}.row-main{text-align:start;flex-direction:column;flex:1;min-width:0;display:flex}.row-name{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.row-sub,.row-note{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;overflow:hidden}.row-note{color:var(--accent)}.row-end{flex-direction:column;align-items:flex-end;gap:2px;display:flex}.line-total{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.78rem}.chev{color:var(--muted);font-size:1.4rem}.thumb{background:var(--surface-2);object-fit:cover;border-radius:12px;flex:none;place-items:center;line-height:1;display:grid;overflow:hidden}.thumb-letter{color:var(--muted);font-size:.75em;font-weight:700}.check{border:2px solid var(--line);color:#fff;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;transition:background .15s,border-color .15s;display:grid}.check.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.row.item.checked .row-name{color:var(--muted);text-decoration:line-through}.row.item.checked .thumb{opacity:.5}.done-group h3{color:var(--accent)}.create-row{background:var(--accent-soft);width:100%;color:var(--accent);border-radius:var(--radius);border:1.5px dashed var(--accent);align-items:center;gap:8px;margin-bottom:6px;padding:14px 16px;display:flex}.bottom-action{bottom:0;z-index:20;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(to top, var(--bg) 70%, transparent);position:fixed;inset-inline:0}.bottom-action .btn{max-width:608px;margin:0 auto;display:flex}.sheet-backdrop{z-index:50;background:#0a0f0c73;justify-content:center;align-items:flex-end;animation:.15s fade;display:flex;position:fixed;inset:0}.sheet-backdrop.center{align-items:center;padding:20px}.sheet{background:var(--surface);border-radius:22px 22px 0 0;flex-direction:column;width:100%;max-width:560px;max-height:92dvh;animation:.2s up;display:flex}@media (width>=700px){.sheet-backdrop{align-items:center}.sheet{border-radius:22px}}.sheet-head{justify-content:space-between;align-items:center;padding:14px 16px 6px 8px;display:flex}.sheet-head h2{padding-inline-start:8px;font-size:1.2rem}.sheet-body{flex-direction:column;gap:14px;padding:8px 16px 16px;display:flex;overflow-y:auto}.sheet-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.foot-row{gap:8px;display:flex}.dialog{background:var(--surface);border-radius:20px;flex-direction:column;gap:14px;width:100%;max-width:380px;padding:20px;animation:.15s pop;display:flex}.dialog h2{font-size:1.15rem}.dialog p{color:var(--muted);margin:0}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}@keyframes fade{0%{opacity:0}}@keyframes up{0%{opacity:0;transform:translateY(40px)}}@keyframes pop{0%{opacity:0;transform:scale(.95)}}.field{flex-direction:column;gap:6px;display:flex}.field>span{color:var(--muted);font-size:.85rem;font-weight:600}.field input,.field select,.login input{border:1px solid var(--line);background:var(--bg);border-radius:12px;outline:none;width:100%;height:48px;padding:0 14px;font-size:16px}.field input:focus,.field select:focus,.login input:focus{border-color:var(--accent)}.input-prefix{position:relative}.input-prefix span{color:var(--muted);pointer-events:none;position:absolute;top:50%;right:14px;transform:translateY(-50%)}.field .input-prefix input{text-align:right;direction:ltr;padding-left:14px;padding-right:34px}.product-hero{align-items:flex-end;gap:12px;display:flex}.hero-thumb{background:var(--surface-2);border-radius:18px;flex:none;place-items:center;width:76px;height:76px;font-size:2.6rem;display:grid;overflow:hidden}.hero-thumb img{object-fit:cover;width:100%;height:100%}.image-actions{flex-wrap:wrap;gap:6px;display:flex}.image-actions .btn{min-height:38px;padding:0 12px;font-size:.9rem}.emoji-grid{background:var(--bg);border-radius:14px;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:4px;max-height:200px;padding:8px;display:grid;overflow-y:auto}.emoji{border-radius:10px;height:44px;font-size:1.6rem}.emoji.on{background:var(--accent-soft);outline:2px solid var(--accent)}.price-row{align-items:flex-end;gap:10px;display:flex}.toggle{background:var(--surface-2);border-radius:12px;height:48px;padding:3px;display:flex}.toggle button{color:var(--muted);border-radius:9px;padding:0 14px;font-weight:600}.toggle button.on{background:var(--surface);color:var(--accent);box-shadow:var(--shadow)}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip-btn{background:var(--surface-2);border-radius:20px;align-items:center;gap:4px;padding:7px 12px;font-size:.88rem;display:inline-flex}.chip-btn.on{background:var(--accent);color:var(--accent-ink)}.chip-btn.dashed{border:1.5px dashed var(--line);color:var(--muted);background:0 0}.history{background:var(--bg);border-radius:12px;padding:4px 12px}.history-row{border-bottom:1px solid var(--line);justify-content:space-between;padding:8px 0;font-size:.9rem;display:flex}.history-row:last-child{border-bottom:0}.login{place-items:center;min-height:100dvh;padding:20px;display:grid}.login-card{background:var(--surface);text-align:center;width:100%;max-width:360px;box-shadow:var(--shadow);border-radius:24px;flex-direction:column;gap:12px;padding:28px 22px;display:flex}.login-logo{background:var(--accent);color:#fff;border-radius:20px;place-items:center;width:72px;height:72px;margin:0 auto 4px;display:grid}.login h1{font-size:1.4rem}.login p{margin:0 0 6px}.error{color:var(--danger);font-size:.9rem}.toast{bottom:calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom));z-index:60;background:var(--text);color:var(--bg);box-shadow:var(--shadow);border-radius:24px;max-width:90vw;padding:10px 18px;font-size:.92rem;animation:.2s fade;position:fixed;left:50%;transform:translate(-50%)}
