:root{--bg: #f6f7f4;--surface: #ffffff;--text: #1c2420;--muted: #66716b;--line: #e1e5df;--accent: #2f7d4f;--accent-text: #ffffff;--danger: #b3261e;--radius: 14px;--tap: 56px;color-scheme:light dark}@media(prefers-color-scheme:dark){:root{--bg: #101412;--surface: #1a201d;--text: #eef2ef;--muted: #9aa6a0;--line: #2a322e;--accent: #4fb277;--accent-text: #08150d;--danger: #ff8a80}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font:17px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1,h2{margin:0;line-height:1.2}h1{font-size:1.5rem}h2{font-size:1.05rem}.muted{color:var(--muted)}.splash{height:100%}button,input{font:inherit;color:inherit}input{min-height:48px;padding:0 14px;background:var(--surface);border:1.5px solid var(--line);border-radius:12px;width:100%}input:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:1px}button{min-height:48px;padding:0 18px;background:var(--surface);border:1.5px solid var(--line);border-radius:12px;cursor:pointer;font-weight:600}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}button.danger{color:var(--danger)}button.wide{width:100%}button.link{background:none;border:0;color:var(--accent);min-height:44px;margin-top:8px}.error{color:var(--danger);margin:8px 0;font-weight:500}.shell{height:100%;display:flex;flex-direction:column;max-width:640px;margin:0 auto}.topbar{display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top) + 14px) 20px 10px}.live{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;color:var(--muted)}.live .dot{width:9px;height:9px;border-radius:50%;background:var(--muted)}.live.on .dot{background:var(--accent)}.content{flex:1;overflow-y:auto;padding:4px 16px 24px;-webkit-overflow-scrolling:touch}.tabbar{display:grid;grid-template-columns:repeat(3,1fr);background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.tab{border:0;border-radius:0;background:none;min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.8rem;color:var(--muted)}.tab.active{color:var(--accent)}.tab-icon{position:relative;font-size:1.4rem;line-height:1}.badge{position:absolute;top:-6px;right:-14px;min-width:20px;padding:1px 6px;border-radius:10px;background:var(--accent);color:var(--accent-text);font-size:.72rem;font-weight:700;line-height:1.3}.list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.row{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.row-main{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;width:100%;min-height:var(--tap);padding:10px 16px;background:none;border:0;text-align:left;font-weight:400}.row .name{font-weight:600}.row .meta{flex-basis:100%;font-size:.8rem;color:var(--muted)}.gone{text-decoration:line-through}.row.is-done .name{text-decoration:line-through;color:var(--muted)}.qty-tag{font-size:.85rem;padding:1px 9px;border-radius:999px;background:var(--bg);border:1px solid var(--line);color:var(--muted);font-weight:600}.empty{text-align:center;color:var(--muted);margin:56px 0}.empty.big{font-size:1.5rem;color:var(--text)}.addbar{display:flex;gap:8px;margin-top:8px}.addbar .qty,.edit-fields .qty{width:76px;flex:none}.grow{flex:1;min-width:0}.row.editing{padding:12px}.edit-fields{display:flex;gap:8px}.edit-actions{display:flex;gap:8px;margin-top:10px;align-items:center}.spacer{flex:1}.shop-row{display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:10px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);text-align:left;font-size:1.2rem}.shop-text{flex:1;min-width:0;display:flex;flex-direction:column}.shop-text .name{font-weight:600;overflow-wrap:anywhere}.shop-text .meta{font-size:.8rem;font-weight:400;color:var(--muted)}.shop-row:active{transform:scale(.99)}.check{flex:none;width:32px;height:32px;border-radius:50%;border:2.5px solid var(--muted);display:grid;place-items:center;font-size:1.1rem;font-weight:800}.check.checked{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.shop-row.done{background:transparent}.shop-row.done .name{text-decoration:line-through;color:var(--muted);font-weight:500}.section-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 0}.section-head h2{color:var(--muted)}.section-head button{min-height:40px;padding:0 14px}.card-stack{display:flex;flex-direction:column;gap:14px;margin-top:12px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.card h2{margin-bottom:6px}.card p{margin:4px 0 12px}.big-text{font-size:1.3rem;font-weight:700;margin-bottom:0!important}.small{font-size:.85rem}.subhead{margin:22px 0 8px;font-size:.95rem;color:var(--muted)}.invites{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.invites li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;background:var(--bg);border-radius:12px}.invite-info{flex:1 1 140px;display:flex;flex-direction:column;min-width:0}.invite-code{font:700 1.25rem/1.3 ui-monospace,Menlo,monospace;letter-spacing:.12em}.invites button{min-height:40px;padding:0 12px}.auth{min-height:100%;display:grid;place-items:center;padding:24px 16px}.auth-card{width:100%;max-width:380px;text-align:center}.auth-card h1{margin-top:12px}.auth-card form{display:flex;flex-direction:column;gap:14px;text-align:left;margin-top:20px}.auth-card label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.95rem}.auth-card label .muted{font-weight:400;font-size:.85rem}.auth-card .primary{min-height:52px;margin-top:4px}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin-top:10px;background:var(--bg);border:1px solid var(--line);border-radius:12px}.segmented button{border:0;background:none;min-height:44px;font-weight:600;color:var(--muted)}.segmented button[aria-pressed=true]{background:var(--accent);color:var(--accent-text)}.lang-corner{position:absolute;top:calc(env(safe-area-inset-top) + 8px);right:8px;min-height:44px;padding:0 14px;background:none;border:0;color:var(--muted);font-weight:600}.auth{position:relative}.members{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.members li{display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--bg);border-radius:12px}.member-info{flex:1;min-width:0;display:flex;flex-direction:column}.member-name{font-weight:700;overflow-wrap:anywhere}.pill{display:inline-block;margin-left:6px;padding:0 8px;border-radius:999px;font-size:.72rem;font-weight:700;vertical-align:2px;background:var(--surface);border:1px solid var(--line);color:var(--muted)}.pill.owner{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.members button{min-height:40px;padding:0 12px}.notice{margin:14px 0 0;font-size:.9rem}.section-title{margin:18px 4px 0;color:var(--muted)}.family-name{margin:0;font-size:1.1rem;overflow-wrap:anywhere}.inline-form{display:flex;gap:8px;margin:12px 0 4px}.inline-form input{flex:1;min-width:0}.row-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}.notice-ok{margin:0;padding:10px 14px;background:var(--surface);border:1px solid var(--accent);border-radius:12px;color:var(--accent);font-weight:600;overflow-wrap:anywhere}.delete-start{margin-top:14px}.delete-box{margin-top:14px;padding:12px;border:1.5px solid var(--danger);border-radius:12px}.delete-box p{margin:0 0 8px}.members li{flex-wrap:wrap}.back{align-self:flex-start;min-height:44px;background:none;border:0;padding:0 4px;color:var(--accent);font-weight:600}.new-list{margin-top:8px}.list-row{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);text-align:left}.list-row:active{transform:scale(.99)}.list-text{flex:1;min-width:0;display:flex;flex-direction:column}.list-name{font-size:1.15rem;font-weight:700;overflow-wrap:anywhere}.chevron{color:var(--muted);font-size:1.6rem;line-height:1}.list-row.finished{opacity:.55;background:transparent}.list-head{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.link-btn{min-height:44px;background:none;border:0;padding:0 4px;color:var(--accent);font-weight:600}.name-form{display:flex;flex-direction:column;gap:4px;margin-top:8px}.delete-list{margin-top:28px}
