:root{color:#192940;background:var(--canvas);font-synthesis:none;--canvas:#f2f5fa;--muted:#4f5f75;--line:#d8e1ef;--shadow:0 2px 6px #20345008;--accent:#324c78;--pale:#dee8f8;--card:#fff;font-family:Inter,system-ui,sans-serif}*,:before,:after{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,summary{-webkit-tap-highlight-color:transparent;cursor:pointer}button{min-height:44px;color:var(--accent);background:var(--pale);border:0;border-radius:12px;padding:0 14px;font-weight:650}button:disabled{cursor:default;opacity:.55}button:focus-visible,summary:focus-visible,input:focus-visible{outline-offset:3px;outline:2px solid #4265a0}input{border:1px solid var(--line);background:var(--card);width:100%;min-width:0;min-height:48px;color:inherit;border-radius:12px;padding:0 14px;font-size:1rem}input::placeholder{color:var(--muted)}summary{list-style:none}summary::-webkit-details-marker{display:none}h1,h2,p,ul{margin:0}h1{letter-spacing:-.045em;font-size:clamp(1.55rem,6vw,2.3rem);line-height:1.12}h2{letter-spacing:-.02em;font-size:1.1rem}.shell{max-width:640px;min-height:100dvh;padding:max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(34px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));margin:auto}.topbar{justify-content:space-between;align-items:center;min-height:58px;margin-bottom:14px;display:flex}.brand{letter-spacing:-.04em;align-items:center;gap:9px;font-size:1.28rem;font-weight:780;display:flex}.brand span{color:#edf3ff;background:var(--accent);border-radius:12px;place-items:center;width:36px;height:36px;display:grid}.center>p{color:var(--muted);margin-top:8px}.primary{background:var(--accent);color:#fff}.list-topbar{justify-content:flex-start;gap:5px}.list-title{flex:1;min-width:0}.list-title button{max-width:100%;color:inherit;text-align:left;background:0 0;align-items:center;gap:8px;padding:0;display:flex}.list-title span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.list-title svg{color:var(--accent);flex:none}.topbar-action{border:1px solid var(--line);background:var(--card)}.list-progress{color:var(--muted);margin-bottom:16px;font-size:.9rem}.composer{z-index:2;right:0;bottom:var(--viewport-bottom,0px);width:min(100%,640px);padding:10px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));border-top:1px solid var(--line);background:var(--card);margin-inline:auto;position:fixed;left:0;box-shadow:0 -4px 18px #1929400e}.composer-space{height:72px}.quick-add{grid-template-columns:minmax(0,1fr) 48px;gap:8px;display:grid}.quick-add input{background:var(--canvas)}.quick-add button{place-items:center;padding:0;display:grid}.composer .notice{margin:0 0 8px}section{margin-bottom:24px}.section-heading,.archive summary{justify-content:space-between;align-items:center;gap:8px;display:flex}.section-heading button{font-size:.84rem}.secondary h2{color:var(--muted)}.secondary h2 span,.archive small{background:var(--pale);color:var(--accent);font-variant-numeric:tabular-nums;border-radius:999px;padding:2px 7px;font-size:.78rem}.item-list{gap:5px;margin-top:8px;padding:0;list-style:none;display:grid}.item{border:1px solid var(--line);background:var(--card);min-height:60px;box-shadow:var(--shadow);border-radius:14px;align-items:center;padding:4px;display:flex}.secondary .item{box-shadow:none;background:#e9eff9}.item-title{overflow-wrap:anywhere;flex:1;gap:3px;min-width:0;padding:3px 4px;display:grid}.item-title span,.empty{color:var(--muted);font-size:.9rem}.purchased .item-title strong{color:var(--muted);text-decoration:line-through}.icon-button{background:0 0;flex:none;place-items:center;width:44px;height:44px;padding:0;display:grid}.icon-button:hover,.check-button:hover{background:var(--pale)}.check-button{text-align:left;min-width:0;color:inherit;background:0 0;flex:1;align-self:stretch;align-items:center;gap:6px;padding:0 4px 0 10px;display:flex}.check-button .item-title{font-weight:400}.check-mark{border:1px solid #697f9f;border-radius:8px;flex:none;place-items:center;width:24px;height:24px;display:grid}.check-button[aria-checked=true] .check-mark{color:#fff;border-color:var(--accent);background:var(--accent)}.check-mark svg{width:17px;height:17px}.empty{background:#e8eef7;border-radius:12px;margin-top:8px;padding:12px}.archive{border-top:1px solid var(--line);color:var(--muted)}.archive summary{min-height:52px;font-weight:650}.archive summary span{align-items:center;gap:7px;display:flex}.archive[open] summary>svg{transform:rotate(180deg)}.account{position:relative}.account summary{border:1px solid var(--line);background:var(--card);border-radius:14px}.account-panel{z-index:3;overflow-wrap:anywhere;background:var(--card);border:1px solid var(--line);border-radius:14px;gap:10px;width:max-content;max-width:80vw;padding:14px;display:grid;position:absolute;top:51px;right:0;box-shadow:0 8px 28px #19294016}.center{background:var(--card);border:1px solid var(--line);border-radius:20px;max-width:420px;margin:min(10vh,88px) auto 0;padding:clamp(18px,5vw,32px)}.login{gap:14px;margin-top:22px;display:grid}.edit{gap:10px;width:100%;padding:10px;display:grid}label{gap:5px;font-weight:600;display:grid}.fields{grid-template-columns:1fr 1.5fr;gap:8px;display:grid}.actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:8px;display:flex}.notice{background:var(--pale);color:var(--accent);border-radius:12px;margin:8px 0 14px;padding:12px}.notice.error{color:#862a27;background:#fbece8}.update{bottom:max(8px, env(safe-area-inset-bottom));border:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;display:flex;position:sticky}.fixed-notice{bottom:max(8px, env(safe-area-inset-bottom));position:sticky}.undo-archive{border:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;padding:6px 8px 6px 12px;display:flex}:is(.shell:has(.composer) .update,.shell:has(.composer) .fixed-notice){z-index:3;bottom:calc(var(--viewport-bottom,0px) + var(--composer-height,72px) + 8px)}.list-sheet{inset:auto 0 var(--viewport-bottom,0px);width:min(100%,520px);max-width:100%;max-height:calc(var(--viewport-height,100dvh) - 16px);background:var(--card);color:inherit;overscroll-behavior:contain;border:0;border-radius:22px 22px 0 0;margin:0 auto;padding:0;position:fixed}.list-sheet::backdrop{background:#13233cb0}html:has(.list-sheet[open]){overflow:hidden}.sheet-body{padding:12px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left))}.sheet-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.sheet-lists,.sheet-options{gap:4px;padding:0;list-style:none;display:grid}.sheet-lists button,.sheet-options button,.sheet-create{text-align:left;align-items:center;gap:10px;width:100%;min-height:48px;display:flex}.sheet-lists button{background:var(--canvas);justify-content:space-between}.sheet-lists button[aria-current=true]{background:var(--pale)}.sheet-lists span{overflow-wrap:anywhere;min-width:0}.sheet-lists svg{flex:none}.sheet-create{margin-top:8px}.sheet-options button{background:var(--canvas)}.sheet-options .delete-list{color:#862a27}.list-form p{overflow-wrap:anywhere}.danger{color:#fff;background:#862a27}.shopping-list{margin:0}
