:root{--bg: #f4f6fb;--card: #fff;--ink: #0f172a;--muted: #64748b;--line: #e2e8f0;--brand: #2563eb;--brand-ink: #fff;--warn: #b45309;--warn-bg: #fef3c7;--alert: #b91c1c;--alert-bg: #fee2e2;--ok: #15803d;--chip: #e8eefc;--radius: 14px;--tap: 48px}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #0b1220;--card: #141c2f;--ink: #e6ebf5;--muted: #8b98b3;--line: #243049;--chip: #1e2a47;--warn-bg: #3a2a08;--alert-bg: #3b1212;--warn: #fbbf24;--alert: #fca5a5}}:root[data-theme=dark]{--bg: #0b1220;--card: #141c2f;--ink: #e6ebf5;--muted: #8b98b3;--line: #243049;--chip: #1e2a47;--warn-bg: #3a2a08;--alert-bg: #3b1212;--warn: #fbbf24;--alert: #fca5a5}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--ink);font:16px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overscroll-behavior-y:contain}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}h1{font-size:1.5rem;margin:0 0 .5rem}h2{font-size:1.1rem;margin:1.2rem 0 .5rem}h3{font-size:1rem;margin:0 0 .4rem}.muted{color:var(--muted)}.small{font-size:.85rem}.grow{flex:1}.right{margin-left:auto}.app{display:flex;flex-direction:column;height:100%}.app.household{flex-direction:row}.main{flex:1;overflow-y:auto;padding:12px 16px calc(80px + env(safe-area-inset-bottom));max-width:900px;width:100%;margin:0 auto}.household .main{max-width:none;padding-bottom:24px;padding-left:20px;padding-right:20px}.topbar{display:flex;align-items:center;gap:8px;padding:8px 16px;padding-top:calc(8px + env(safe-area-inset-top))}.tabs{position:fixed;bottom:0;left:0;right:0;display:flex;background:var(--card);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:10}.tabs a{flex:1;text-align:center;padding:8px 2px;color:var(--muted);text-decoration:none;font-size:.75rem;min-height:var(--tap);display:flex;flex-direction:column;align-items:center;gap:2px}.tabs a .ic{font-size:1.3rem;line-height:1}.tabs a.on{color:var(--brand);font-weight:600}.side{width:112px;background:var(--card);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:8px;gap:6px;overflow-y:auto}.side a{text-decoration:none;color:var(--ink);background:var(--chip);border-radius:var(--radius);padding:14px 6px;text-align:center;font-weight:600;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.side a .ic{font-size:1.8rem}.side a.on{background:var(--brand);color:var(--brand-ink)}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;margin-bottom:12px}.row{display:flex;align-items:center;gap:10px;min-height:var(--tap)}.row+.row{border-top:1px solid var(--line)}.stack{display:flex;flex-direction:column;gap:8px}.wrap{display:flex;flex-wrap:wrap;gap:8px}.btn{background:var(--brand);color:var(--brand-ink);border:0;border-radius:12px;padding:0 16px;min-height:var(--tap);font-weight:600}.btn.sec{background:var(--chip);color:var(--ink)}.btn.danger{background:var(--alert-bg);color:var(--alert)}.btn.sm{min-height:36px;padding:0 12px;font-size:.9rem}.btn[disabled]{opacity:.5}.chip{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:0 14px;min-height:40px;display:inline-flex;align-items:center;gap:6px}.chip.on{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}input[type=text],input[type=date],input[type=time],input[type=search],input[type=datetime-local],select,textarea,input:not([type]){width:100%;min-height:var(--tap);border:1px solid var(--line);border-radius:12px;padding:8px 12px;background:var(--card)}textarea{min-height:90px}label.f{display:block;font-size:.85rem;color:var(--muted);margin:8px 0 4px}.check{width:32px;height:32px;border-radius:10px;border:2px solid var(--muted);background:transparent;flex:none;display:grid;place-items:center;font-size:1.1rem;color:transparent}.check.on{background:var(--ok);border-color:var(--ok);color:#fff}.done{text-decoration:line-through;color:var(--muted)}.avatar{width:30px;height:30px;border-radius:50%;display:inline-grid;place-items:center;color:#fff;font-weight:700;font-size:.85rem;flex:none}.warn,.alert{border-radius:12px;padding:10px 12px;margin-bottom:8px;font-weight:600}.warn{background:var(--warn-bg);color:var(--warn)}.alert{background:var(--alert-bg);color:var(--alert)}.banner{background:#334155;color:#fff;text-align:center;padding:6px 12px;font-size:.85rem}.pending{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--warn);margin-left:6px}.sheet-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--card);width:100%;max-width:640px;max-height:92vh;overflow-y:auto;border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}.household .sheet-bg{align-items:center}.household .sheet{border-radius:20px}.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;align-items:start}.board{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:14px;align-items:start}@media(max-width:1000px){.board{grid-template-columns:1fr}}.board .card{font-size:1.05rem}.board .check{width:40px;height:40px}.bigbtn{min-height:64px;font-size:1.2rem;flex:1}.notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.note{border-radius:6px;padding:10px;min-height:120px;color:#1f2937;box-shadow:0 2px 6px #00000026;white-space:pre-wrap;word-break:break-word;cursor:pointer}.shopmode{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--bg);z-index:40;display:flex;flex-direction:column}.shopmode .items{flex:1;overflow-y:auto;padding:8px 12px 40px}.shopmode .it{display:flex;align-items:center;gap:14px;min-height:68px;font-size:1.35rem;border-bottom:1px solid var(--line);width:100%;background:none;border-left:0;border-right:0;border-top:0;text-align:left}.shopmode .check{width:40px;height:40px}.grid-meals{display:grid;grid-template-columns:70px repeat(2,1fr);gap:6px}.mcell{background:var(--chip);border-radius:10px;padding:6px 8px;min-height:44px;text-align:left;border:0}.mcell.empty{color:var(--muted);background:transparent;border:1px dashed var(--line)}.dim{filter:brightness(.35)}.dimmer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0000}.sticky-head{position:sticky;top:0;background:var(--bg);padding:6px 0;z-index:2}.seg{display:flex;background:var(--chip);border-radius:12px;padding:3px;gap:3px}.seg button{flex:1;border:0;background:transparent;min-height:40px;border-radius:10px}.seg button.on{background:var(--card);font-weight:600;box-shadow:0 1px 3px #00000026}.login{max-width:420px;margin:10vh auto;padding:16px}.dow{display:grid;grid-template-columns:56px 1fr;gap:8px;align-items:start;padding:10px 0;border-top:1px solid var(--line)}
