:root{--bg:#f6f7f2;--paper:#fff;--ink:#23392d;--muted:#77877b;--line:#e7ebe3;--accent:#dbeaac;--accent-strong:#bede77;--ink2:#42574a;--soft:#edf3e8;--red:#b35746;--pink:#f9e7e2;--shadow:0 18px 60px rgba(29,51,35,.06);--radius:21px;font-family:ui-rounded,"Avenir Next",Avenir,"Trebuchet MS",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.44}input,textarea,select{color:var(--ink)}a{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9bbb6e;outline-offset:2px}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
#app{min-height:100vh}.splash{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:12px;font-size:40px;font-weight:850;letter-spacing:-2.6px}.splash-symbol{display:grid;place-items:center;background:var(--accent);border-radius:17px;width:54px;height:54px;font-size:40px}.brand-period{color:#7caa3f}
.layout{max-width:1350px;margin:0 auto;min-height:100vh;display:grid;grid-template-columns:222px minmax(0,1fr)}.sidebar{padding:36px 21px 24px 28px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:31px;letter-spacing:-1.9px;font-weight:900;line-height:1}.brand-mark{width:39px;height:39px;display:grid;place-items:center;background:var(--accent);border-radius:13px;color:#2b5139;font-size:28px;font-weight:900;transform:rotate(-6deg)}.brand-dot{color:#87aa5d}.sidebar-caption{margin:22px 12px 15px;font-size:10px;color:#93a098;font-weight:900;letter-spacing:2px}.desktop-nav{display:grid;gap:6px}.nav-link{height:51px;border:0;background:transparent;color:#75877b;padding:0 16px;border-radius:13px;text-align:left;display:flex;align-items:center;gap:12px;font-size:14px;font-weight:750}.nav-link svg{width:20px;height:20px;stroke-width:1.9}.nav-link.active{background:#e8f0d9;color:#274633}.nav-link:hover{background:#eef3e9;color:#2a4834}.side-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:21px}.side-bottom .nav-link{width:100%}.side-message{margin:16px 10px 0;font-size:11px;color:#8c9b90;line-height:1.6}.main{min-width:0;padding:29px clamp(22px,5vw,74px) 90px;max-width:1125px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{color:#778b77;font-weight:850;text-transform:uppercase;letter-spacing:2.1px;font-size:10px}.topbar-left{display:flex;flex-direction:column;gap:5px}.topbar-right{display:flex;align-items:center;gap:9px}.version{font-weight:800;font-size:10px;letter-spacing:1.1px;color:#9cad9c}.icon-btn{width:41px;height:41px;border:1px solid var(--line);background:var(--paper);border-radius:13px;display:inline-grid;place-items:center;color:#526755}.icon-btn svg{width:19px;height:19px}.icon-btn:hover{background:#eef3e8}.mobile-header{display:none}.bottomnav{display:none}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:8px 0 21px}.page-head h1{font-size:clamp(30px,4.2vw,43px);font-weight:900;letter-spacing:-2.05px;line-height:1.12;margin:5px 0 6px}.subhead{color:#84928a;font-size:13px;line-height:1.5}.pill{display:inline-flex;gap:7px;align-items:center;border-radius:999px;padding:8px 12px;border:1px solid var(--line);background:white;font-size:11px;font-weight:750;color:#526856;white-space:nowrap}.pill strong{font-size:12px;color:var(--ink)}.pill svg{width:14px;height:14px}.btn{border:none;border-radius:13px;background:var(--ink);color:white;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;padding:0 16px;font-size:12px;font-weight:850;white-space:nowrap}.btn svg{width:17px;height:17px}.btn:hover{background:#365844}.btn.light{background:#eaf1e1;color:#365543}.btn.light:hover{background:#dcebbf}.btn.white{background:white;color:#34503b;border:1px solid var(--line)}.btn.white:hover{background:#f8faf4}.btn.ghost{background:transparent;color:#6b7d70}.btn.danger{background:#ae5647;color:#fff}.btn.full{width:100%}.btn.tiny{min-height:31px;padding:0 12px;font-size:11px;border-radius:10px}.btn.large{min-height:49px;padding:0 20px;font-size:14px}.btn:focus-visible{outline-offset:3px}.hide{display:none!important}
.panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius)}.hero{background:#e7f0d9;border-radius:25px;padding:20px 25px;display:flex;align-items:center;justify-content:space-between;gap:15px;position:relative;overflow:hidden;margin:0 0 18px}.hero::after{content:'✳';position:absolute;right:22px;top:-48px;color:rgba(76,111,64,.09);font-size:214px;transform:rotate(24deg);pointer-events:none}.hero-content{position:relative;z-index:1}.hero-title{font-size:21px;font-weight:900;letter-spacing:-.65px;margin-bottom:5px}.hero-detail{font-size:12px;color:#69836f}.hero-stats{display:flex;gap:18px;position:relative;z-index:1}.hero-stat{text-align:center}.hero-num{font-size:26px;letter-spacing:-1px;font-weight:900;line-height:1.15}.hero-stat span:last-child{display:block;font-size:10px;color:#738c75;font-weight:800}.hero-divider{height:39px;width:1px;background:rgba(64,105,62,.15)}
.shop-top{display:flex;gap:10px;align-items:center;margin:0 0 12px}.list-selector{height:43px;display:flex;gap:8px;align-items:center;padding:0 12px;background:#fff;border:1px solid var(--line);border-radius:13px;min-width:0}.list-selector select{border:0;background:transparent;outline:0;max-width:215px;min-width:0;font-size:12px;font-weight:850;padding:8px 2px;cursor:pointer}.list-selector svg{width:16px;height:16px;color:#799178}.shop-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.add-bar{position:relative;background:white;border:1.5px solid #bdd99c;border-radius:18px;padding:6px;display:flex;gap:7px;align-items:center;box-shadow:0 8px 27px rgba(42,82,51,.035);z-index:10}.add-icon{display:grid;place-items:center;width:36px;height:36px;color:#69906c}.add-icon svg{width:21px;height:21px}.add-bar input{width:100%;min-width:0;flex:1;border:0;background:transparent;outline:none;font-size:15px;padding:10px 0}.add-bar input::placeholder{color:#a2aea4}.add-bar .add-submit{min-height:41px;min-width:76px;border-radius:12px}.quick-hint{font-size:11px;color:#a1aaa0;padding:9px 3px 13px;display:flex;align-items:center;gap:7px;justify-content:space-between}.kbd{font-size:10px;border:1px solid var(--line);border-radius:6px;padding:1px 5px;background:#fff}.autocomplete{position:absolute;left:-1px;right:-1px;top:calc(100% + 5px);background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 18px 50px rgba(23,48,29,.13);padding:7px;max-height:302px;overflow:auto;z-index:20}.suggest-row{display:flex;align-items:center;gap:11px;border:0;background:white;padding:10px 11px;text-align:left;width:100%;border-radius:11px}.suggest-row:hover,.suggest-row.selected{background:#f0f5e9}.suggest-icon{width:35px;height:35px;display:grid;place-items:center;background-color:#eff3e9;border-radius:11px;font-size:20px;flex:none}.suggest-main{min-width:0;flex:1}.suggest-name{font-weight:850;font-size:13px}.suggest-meta{font-size:10px;color:#99a59c;margin-top:3px}.suggest-add{color:#65934e;font-size:21px;margin-left:auto}.small-caps{font-size:10px;font-weight:950;letter-spacing:1.55px;color:#9aab9b;text-transform:uppercase}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 11px}.section-head h2{font-size:15px;font-weight:900;letter-spacing:-.4px;margin:0}.section-head p{font-size:11px;color:#8d9b8e;margin:0}.text-button{border:0;background:transparent;color:#6e9760;font-size:12px;font-weight:900;padding:7px}.text-button:hover{text-decoration:underline}.chip-row{display:flex;gap:7px;align-items:center;overflow-x:auto;padding:2px 0 11px;scrollbar-width:none}.chip-row::-webkit-scrollbar{display:none}.chip{border:1px solid var(--line);background:white;border-radius:999px;min-height:35px;padding:0 12px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800;white-space:nowrap;color:#6f8075}.chip.active{color:#294534;background:var(--accent);border-color:var(--accent)}.chip .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--dot,#8aa078)}.chip-num{font-size:10px;color:#9eaa9f}.chip.active .chip-num{color:#54754a}.switch-line{display:flex;gap:10px;justify-content:space-between;align-items:center;margin:0 0 5px;font-size:11px;color:#98a49a}.switch-line button{border:0;background:none;color:#839682;font-size:11px;font-weight:800;padding:7px}
.list-stack{display:grid;gap:12px}.dept-card{background:white;border:1px solid var(--line);border-radius:19px;padding:3px 6px 5px}.dept-title{display:flex;align-items:center;gap:8px;padding:13px 14px 7px;font-size:11px;font-weight:950;letter-spacing:1.2px;color:#8d9f90;text-transform:uppercase}.dept-title .dept-emoji{font-size:16px}.dept-count{margin-left:auto;border-radius:50px;background:#f0f5eb;font-size:10px;min-width:22px;padding:3px 6px;text-align:center;color:#7a957e;letter-spacing:0}.grocery-row{display:flex;align-items:center;gap:11px;padding:10px 10px;border-radius:12px;min-height:59px}.grocery-row:hover{background:#f8faf6}.grocery-row.done{opacity:.59}.check-btn{display:grid;place-items:center;width:31px;height:31px;flex:none;padding:0;border:2px solid #dce6d7;background:white;border-radius:11px;color:#fff}.check-btn.checked{background:#6a9362;border-color:#6a9362}.check-btn svg{width:17px;height:17px}.grocery-row .item-emoji{font-size:22px;width:30px;text-align:center;flex:none}.item-info{min-width:0;flex:1}.item-name{color:#2c4534;font-weight:850;font-size:14px;line-height:1.2;overflow-wrap:anywhere}.done .item-name{text-decoration:line-through;color:#8a988e}.item-sub{display:flex;flex-wrap:wrap;gap:5px 8px;margin-top:5px;color:#95a39a;font-size:10px;align-items:center}.store-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:var(--dot,#c0cfc0)}.item-quantity{font-size:12px;font-weight:850;color:#6e846e;white-space:nowrap;max-width:68px;text-overflow:ellipsis;overflow:hidden}.row-more{padding:0;border:0;background:none;color:#9ba99d;width:31px;height:33px;display:grid;place-items:center;border-radius:9px;flex:none}.row-more svg{width:17px;height:17px}.row-more:hover{background:#eaf1e7;color:#426549}.empty{padding:42px 19px;text-align:center;background:white;border:1px dashed #d8e5d5;border-radius:20px;color:#8b9b8e}.empty-illustration{font-size:47px;margin-bottom:9px}.empty h3{font-size:17px;color:#455e4a;margin:8px 0}.empty p{max-width:360px;margin:0 auto 16px;font-size:12px;line-height:1.65}.empty .btn{margin:0 auto}.insight-card{border:1px solid #e0e9d6;background:#f1f6e7;padding:13px 15px;border-radius:17px;margin:13px 0}.insight-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;gap:8px}.insight-heading span{font-size:12px;font-weight:900;color:#3f6048}.insight-heading small{color:#8da381;font-size:10px}.insight-items{display:flex;gap:8px;flex-wrap:wrap}.insight-item{border:1px solid #d5e6c6;background:white;border-radius:12px;display:flex;align-items:center;gap:8px;padding:8px 9px;min-height:40px;font-size:12px;font-weight:850;min-width:0}.insight-item em{display:block;font-style:normal;font-size:10px;font-weight:500;color:#8da08d;margin-top:2px}.insight-item .remind-emoji{font-size:18px}.insight-item .mini-add{margin-left:8px;color:#6c9d59;font-size:18px}.insight-dismiss{border:0;background:none;color:#9aad99;font-size:17px;padding:4px}
.library-tools,.history-tools{display:flex;align-items:center;gap:10px;margin:12px 0 15px}.search-field{background:white;border:1px solid var(--line);border-radius:13px;padding:0 12px;display:flex;gap:10px;align-items:center;height:46px;min-width:0;flex:1}.search-field svg{width:18px;height:18px;color:#93a398;flex:none}.search-field input{border:0;background:transparent;outline:0;font-size:13px;min-width:0;width:100%}.search-field input::placeholder{color:#a7b4a8}.filter-select{height:46px;border:1px solid var(--line);border-radius:13px;background:white;padding:0 10px;font-size:12px;font-weight:800;color:#718474;max-width:150px}.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-tile{border:1px solid var(--line);background:white;border-radius:17px;display:flex;gap:12px;align-items:center;min-width:0;padding:12px}.tile-emoji{height:45px;width:45px;border-radius:13px;display:grid;place-items:center;background-color:#f0f4ea;font-size:24px;flex:none}.tile-info{flex:1;min-width:0}.tile-name{font-size:13px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile-detail{color:#93a199;font-size:10px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile-actions{display:flex;align-items:center;gap:4px;flex:none}.tile-button{width:31px;height:31px;background:transparent;border:0;border-radius:9px;display:grid;place-items:center;color:#99ac9b}.tile-button svg{width:17px;height:17px}.tile-button:hover{background:#eef5e8}.tile-button.starred{color:#d0a044}.tile-button.tile-add{background:#e5f0d2;color:#3d673b}.tile-button.tile-add:hover{background:#d6e7ba}.library-subnav{display:flex;gap:7px;overflow:auto;margin-bottom:13px;scrollbar-width:none}.mini-tab{border:0;background:transparent;padding:9px 13px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap;color:#92a096}.mini-tab.active{background:#e4efd7;color:#436249}.group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:18px}.group-card{background:white;border:1px solid var(--line);border-radius:20px;padding:19px;min-height:184px;display:flex;flex-direction:column;gap:12px}.group-card .group-emoji{width:45px;height:45px;border-radius:13px;background-color:#f0f4e7;display:grid;place-items:center;font-size:24px}.group-title{font-size:16px;font-weight:900;letter-spacing:-.35px}.group-description{color:#8f9d93;font-size:11px;line-height:1.4;min-height:14px}.group-items{font-size:11px;color:#6f8a75;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%}.group-actions{display:flex;gap:7px;align-items:center;margin-top:auto}.group-count{font-size:10px;color:#9ead9d;margin-left:auto}.history-list{display:grid;gap:11px}.history-card{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}.history-main{display:flex;align-items:center;gap:14px;padding:16px 18px}.history-icon{border-radius:13px;background:#eff4e9;height:44px;width:44px;display:grid;place-items:center;color:#69876c;flex:none}.history-icon svg{width:22px;height:22px}.history-info{flex:1;min-width:0}.history-title{font-weight:900;font-size:14px;margin-bottom:5px}.history-meta{font-size:11px;color:#91a093;line-height:1.5}.history-actions{display:flex;gap:7px}.history-detail{padding:0 18px 17px 76px}.history-item{padding:6px 0;display:flex;justify-content:space-between;color:#718776;font-size:12px;border-bottom:1px solid #f4f6f2}.history-item:last-child{border:0}.history-item.not-bought{opacity:.55}.history-item .name{display:flex;gap:8px;align-items:center}.history-item .name span{font-size:11px}.history-date{display:block;letter-spacing:1px;text-transform:uppercase;color:#92a496;font-weight:900;font-size:10px;margin-bottom:3px}
.settings-stack{display:grid;gap:13px;max-width:770px}.settings-panel{background:white;border:1px solid var(--line);border-radius:19px;padding:20px}.settings-panel h3{font-size:15px;letter-spacing:-.2px;margin:0 0 5px}.settings-panel p{font-size:12px;color:#8b9b90;line-height:1.65;margin:0 0 17px}.settings-controls{display:flex;gap:9px;flex-wrap:wrap}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 0;border-top:1px solid var(--line)}.setting-row:first-child{border-top:0}.setting-row-title{font-size:12px;font-weight:850}.setting-row-sub{font-size:10px;color:#9aa79d;margin-top:5px}.settings-input{background:#f7f9f5;border:1px solid #dde6d9;border-radius:11px;padding:9px 10px;font-size:12px;max-width:165px;width:100%}.warning{background:#fff6e9;color:#94682d;border-radius:12px;padding:11px 13px;font-size:12px;line-height:1.5;margin-bottom:14px}.safe{background:#eef6e9;color:#5b805e;border-radius:12px;padding:11px 13px;font-size:11px;line-height:1.5;margin-bottom:14px}.badge-inline{display:inline-flex;border-radius:7px;background:#e8f1dc;padding:3px 7px;font-size:10px;color:#67836b;font-weight:900}.microcopy{font-size:11px;color:#9ca89e;line-height:1.6}.small-divider{height:1px;background:var(--line);margin:13px 0}
#modal-root:empty{display:none}.modal-backdrop{position:fixed;inset:0;z-index:40;background:rgba(29,51,35,.38);display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:#fff;width:min(100%,500px);max-height:min(90vh,800px);border-radius:25px;overflow:auto;box-shadow:0 24px 90px #1c382e40;overscroll-behavior:contain}.modal-head{padding:22px 24px 12px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.modal-head h2{font-size:21px;line-height:1.15;letter-spacing:-.75px;margin:0}.modal-head p{color:#97a69a;font-size:12px;line-height:1.45;margin:8px 0 0}.modal-x{border:0;background:#f0f4ec;border-radius:11px;min-width:31px;height:31px;font-size:20px;color:#849987}.modal-body{padding:5px 24px 17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px;min-width:0}.field.span2{grid-column:span 2}.field label{color:#6e846f;font-size:11px;font-weight:900}.field input,.field select,.field textarea{border:1px solid #dde7dc;border-radius:11px;background:#fafbf8;width:100%;padding:11px 12px;font-size:13px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#9ab981}.field textarea{resize:vertical;min-height:64px}.modal-footer{padding:15px 24px 23px;display:flex;justify-content:flex-end;align-items:center;gap:9px;border-top:1px solid var(--line)}.modal-footer .left{margin-right:auto}.edit-list-items{display:grid;gap:5px;margin:8px 0 16px;max-height:170px;overflow:auto}.edit-list-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#f7faf4;border-radius:10px;font-size:12px}.edit-list-item button{border:0;background:transparent;color:#b4695c;font-size:17px}.modal-search{position:relative}.modal-search-results{display:grid;gap:5px;margin-top:7px;max-height:210px;overflow:auto}.modal-search-result{display:flex;gap:8px;align-items:center;width:100%;border:0;background:#f5f8f1;border-radius:11px;padding:8px 10px;text-align:left;font-size:12px;font-weight:800;color:#3c5942}.modal-search-result span:last-child{margin-left:auto;font-weight:900;color:#729b60}#toast{position:fixed;z-index:80;bottom:27px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;color:white;background:#234b35;border-radius:13px;padding:11px 17px;font-size:12px;font-weight:800;box-shadow:0 10px 30px #1e392b30;transition:opacity .19s,transform .19s;max-width:calc(100vw - 40px);text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.footer-note{font-size:10px;color:#9aa69c;margin:18px 5px;text-align:center}
@media(max-width:900px){.layout{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:30px 11px 18px 14px}.brand{font-size:26px}.main{padding:24px 25px 80px}.library-grid{grid-template-columns:1fr}.group-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){:root{--radius:17px}.layout{display:block}.sidebar{display:none}.main{padding:0 15px calc(98px + env(safe-area-inset-bottom));max-width:650px}.mobile-header{display:flex;align-items:center;justify-content:space-between;padding:18px 2px 10px}.mobile-header .brand{font-size:27px}.mobile-header .brand-mark{height:35px;width:35px;border-radius:11px;font-size:24px}.topbar{margin:3px 0 15px}.topbar-right{display:none}.page-head{margin:2px 0 17px;gap:9px;align-items:flex-end}.page-head h1{font-size:32px;letter-spacing:-1.5px}.subhead{font-size:12px}.hero{margin-bottom:14px;border-radius:19px;padding:17px}.hero-title{font-size:17px}.hero-detail{font-size:11px}.hero-num{font-size:23px}.hero-stats{gap:11px}.hero-divider{height:32px}.shop-top{gap:7px}.shop-actions{gap:6px}.shop-actions .btn{padding:0 10px;min-height:40px}.list-selector{padding:0 8px;flex:1}.list-selector select{width:100%;max-width:185px}.add-bar{border-radius:15px;padding:5px}.add-bar input{font-size:15px}.quick-hint{padding:8px 2px 10px;font-size:10px}.section-head{margin:17px 0 10px}.dept-card{border-radius:17px}.grocery-row{padding:11px 7px;min-height:59px;gap:9px}.item-name{font-size:13px}.item-sub{font-size:10px}.bottomnav{display:flex;position:fixed;bottom:0;left:0;right:0;background:rgba(254,255,252,.97);border-top:1px solid #e8ece5;z-index:30;padding:8px 9px calc(8px + env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -8px 30px #1d33220b;backdrop-filter:blur(16px)}.bottomnav button{border:0;background:transparent;color:#9aaa9d;min-width:62px;min-height:48px;border-radius:13px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:10px;font-weight:850}.bottomnav button svg{width:22px;height:22px;stroke-width:1.9}.bottomnav button.active{color:#365940;background:#edf4e4}.modal-backdrop{align-items:flex-end;padding:0}.modal{border-radius:22px 22px 0 0;max-height:92dvh;width:100%;padding-bottom:env(safe-area-inset-bottom)}.history-main{padding:14px 12px;gap:10px}.history-icon{width:36px;height:36px}.history-detail{padding-left:58px}.history-actions .btn{padding:0 9px}.history-actions .btn:not(.tiny){font-size:11px}.group-grid{grid-template-columns:1fr}.group-card{min-height:0}.library-tools,.history-tools{gap:6px}.filter-select{max-width:124px}.library-grid{gap:8px}.product-tile{padding:10px;gap:9px}.tile-emoji{width:40px;height:40px;font-size:21px}.tile-actions{gap:1px}#toast{bottom:calc(86px + env(safe-area-inset-bottom));white-space:normal}}@media(max-width:385px){.hero{padding:14px}.hero-stats{gap:8px}.hero-title{font-size:15px}.hero-num{font-size:20px}.page-head h1{font-size:29px}.page-head .pill{padding:7px 9px}.shop-actions .btn{font-size:11px}.list-selector{max-width:58%}.tile-button{width:28px;height:28px}.settings-panel{padding:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.group-item-details{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.group-item-details>span{font-size:12px;font-weight:800}.group-mini-fields{display:flex;align-items:center;gap:6px}.group-mini-fields input,.group-mini-fields select{height:31px;border:1px solid #e0e7da;background:white;border-radius:8px;padding:0 8px;font-size:11px;color:#70836f;min-width:0}.group-mini-fields input{width:58px}.group-mini-fields select{width:142px;max-width:70%}.edit-list-item>button{align-self:center}
/* v0.2 contrast and theme system. Token-based overrides preserve v0.1 layout. */
:root{--bg:#f8f5f2;--paper:#fffdfb;--ink:#151719;--muted:#50565a;--line:#d9dad6;--accent:#dfeccc;--accent-strong:#c5dbad;--ink2:#24312a;--soft:#eff4e8;--red:#a52839;--pink:#f8e7e7;--shadow:0 15px 45px rgba(21,23,25,.065)}
html{color-scheme:light}
.brand-dot,.brand-period,.eyebrow{color:#9b2034}
.eyebrow,.version,.sidebar-caption,.small-caps,.dept-title,.history-date{color:#6b2731}
.subhead,.side-message,.group-description,.tile-detail,.history-meta,.item-sub,.setting-row-sub,.microcopy,.settings-panel p,.group-count,.group-items,.footer-note{color:#515a55}
.btn{background:var(--red);color:#fff}
.btn:hover{background:#811e2c}
.btn.white{color:#202627;background:var(--paper);border-color:var(--line)}
.btn.light{background:#dcebcf;color:#1d422e}
.btn.ghost{color:#303837}
.nav-link{color:#3f4845}
.nav-link.active{background:#1a1d1f;color:#fff}
.nav-link:hover{background:#e9ece6;color:#1a1d1f}
.nav-link.active:hover{background:#36383a;color:#fff}
.brand-mark{background:#deebd0;color:#1d432d}
.brand-mark,.group-card .group-emoji{border:1px solid #cad9c0}
.hero{background:#dce9cd;color:#17211b}
.hero-detail,.hero-stat span:last-child{color:#3d5c47}
.add-bar{border-color:#a52839}
.add-bar:focus-within{box-shadow:0 0 0 3px rgba(165,40,57,.12)}
.add-icon,.suggest-add{color:#a52839}
.add-bar input::placeholder,.search-field input::placeholder{color:#68736c}
.list-selector select,.filter-select{color:var(--ink)}
.autocomplete,.suggest-row{background:var(--paper);color:var(--ink)}
.suggest-name{color:var(--ink)}
.suggest-meta{color:#4b5e50}
.suggest-row:hover,.suggest-row.selected{background:#f7e7e9;color:var(--ink)}
.suggest-icon,.tile-emoji,.history-icon{background-color:#e9f1df;color:#25513a}
.check-btn{border-color:#9ca8a0}
.check-btn.checked{background:#22603f;border-color:#22603f;color:white}
.item-name,.empty h3{color:var(--ink)}
.item-sub,.item-quantity,.dept-count{color:#455a4b}
.chip,.pill,.mini-tab,.group-actions .group-count{color:#3a4940}
.chip.active,.mini-tab.active{background:#dceacb;color:#1f4c2c}
.chip-num{color:#49574d}
.text-button{color:#8b2135}
.field label{color:#303b33}
.field input,.field select,.field textarea,.filter-select,.settings-input{color:var(--ink);background:var(--paper);border-color:var(--line)}
.field input::placeholder,.field textarea::placeholder{color:#707b73}
select,select option,select optgroup{color:#151719!important;background:#fffdfb!important}
select{appearance:auto}
.suggest-row:focus-visible,.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid #b13648;outline-offset:2px}
.group-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.group-move{display:flex;gap:6px;margin-left:auto}
.icon-btn.mini{width:30px;height:30px;border-radius:9px;font-size:17px;font-weight:900}
.group-actions{flex-wrap:wrap}
.group-actions .group-count{margin-left:auto}
.group-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 16px}
.group-grid{margin-top:4px}
.is-snoozed{border-style:dashed;opacity:.83}
.snooze-info{display:flex;align-items:center;gap:7px;font-size:11px;color:#813343;font-weight:800;background:#f8e9e9;padding:8px 10px;border-radius:9px}
.snooze-info svg{width:15px;height:15px}
.snooze-presets{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 17px}
.notice-due{display:flex;align-items:center;gap:9px;border:1px solid #d9b8c0;border-radius:12px;background:#f9e9ed;color:#7d1e31;padding:11px 13px;font-size:12px;font-weight:850;margin-bottom:14px}
.notice-due svg{width:17px;height:17px}
.notice-due.compact{font-size:10px;margin:0;padding:7px 10px}
.reminder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:14px}
.reminder-card{background:var(--paper);border:1px solid var(--line);padding:18px;border-radius:18px;display:flex;flex-direction:column;gap:9px;min-width:0}
.reminder-card h2{font-size:16px;line-height:1.25;letter-spacing:-.3px;margin:0}
.reminder-card p{font-size:12px;color:#515a55;margin:0;min-height:28px}
.reminder-top{display:flex;align-items:center;gap:8px;justify-content:space-between}
.reminder-store{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:#912539;font-weight:950}
.reminder-meta{font-size:11px;color:#4b5d50;display:flex;align-items:center;gap:6px;flex-wrap:wrap;line-height:1.6}
.reminder-meta svg{width:15px;height:15px}
.due-chip,.muted-chip{font-size:9px;font-weight:950;border-radius:999px;padding:5px 8px;background:#fde6e6;color:#8c1b2b}
.muted-chip{background:#efefed;color:#5b6260}
.reminder-card.is-inactive{opacity:.7}
.reminder-card .group-actions{margin-top:auto}
.reminder-explain{margin:5px 0 18px;max-width:760px}
.appearance-choice{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.appearance-choice label{font-size:12px;font-weight:800}
.appearance-choice select{width:min(100%,230px);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:13px;background:var(--paper);color:var(--ink)}
#toast{background:#1a1c1d;color:white}
@media(max-width:900px){.reminder-grid{grid-template-columns:1fr}}
@media(max-width:700px){.bottomnav{background:rgba(254,253,250,.97)}.bottomnav button{color:#515e53;min-width:0;flex:1;padding:4px 2px;font-size:9px}.bottomnav button.active{background:#1a1d1f;color:#fff}.group-grid{margin-top:8px}}
/* Dark UI: maintain true dark surfaces and legible select menus everywhere. */
html[data-theme="dark"]{color-scheme:dark;--bg:#131516;--paper:#202425;--ink:#f5f5f0;--muted:#c5ccc6;--line:#3e4645;--accent:#354b37;--accent-strong:#49694d;--ink2:#d0dfcf;--soft:#263329;--red:#d44b5d;--pink:#50313a;--shadow:0 15px 45px rgba(0,0,0,.3)}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] :is(.panel,.pill,.list-selector,.add-bar,.autocomplete,.suggest-row,.chip,.dept-card,.empty,.insight-item,.search-field,.product-tile,.group-card,.history-card,.settings-panel,.modal,.edit-list-item,.reminder-card,.kbd){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.suggest-row,.suggest-name,.item-name,.empty h3,.field label,.tile-name,.group-title,.history-title,.settings-panel h3,.reminder-card h2){color:var(--ink)}
html[data-theme="dark"] :is(.subhead,.side-message,.group-description,.tile-detail,.history-meta,.item-sub,.setting-row-sub,.microcopy,.settings-panel p,.group-count,.group-items,.footer-note,.reminder-card p,.reminder-meta,.snooze-info){color:#c0cdc2}
html[data-theme="dark"] :is(.sidebar-caption,.version,.small-caps,.dept-title,.history-date,.eyebrow,.reminder-store){color:#e4a7ae}
html[data-theme="dark"] :is(.nav-link,.chip,.mini-tab,.icon-btn,.tile-button,.row-more,.text-button,.group-count){color:#cbd6ce}
html[data-theme="dark"] :is(.btn.white,.btn.light,.btn.ghost,.modal-x,.icon-btn,.tile-button.tile-add){background:#303b34;color:#f1f8ed;border-color:#485b4b}
html[data-theme="dark"] :is(.btn,.btn.danger){background:#ac3142;color:#fff}
html[data-theme="dark"] :is(.btn:hover,.btn.danger:hover){background:#8e2533}
html[data-theme="dark"] .btn.white:hover{background:#415345}
html[data-theme="dark"] :is(.brand-mark,.hero,.splash-symbol,.suggest-icon,.tile-emoji,.history-icon,.group-card .group-emoji,.insight-card){background-color:#283c2e;color:#ecf7e5;border-color:#425f48}
html[data-theme="dark"] .brand-mark{color:#e5f6dd}
html[data-theme="dark"] :is(.hero-detail,.hero-stat span:last-child,.item-quantity,.dept-count,.chip-num){color:#d4e2d0}
html[data-theme="dark"] .nav-link.active,html[data-theme="dark"] .bottomnav button.active{background:#b63b4d;color:#fff}
html[data-theme="dark"] .nav-link:hover{background:#303a33;color:#fff}
html[data-theme="dark"] :is(.suggest-row:hover,.suggest-row.selected,.grocery-row:hover,.tile-button:hover){background:#3f3034}
html[data-theme="dark"] :is(.chip.active,.mini-tab.active){background:#324d39;color:#f0f8ed}
html[data-theme="dark"] :is(.check-btn,.field input,.field select,.field textarea,.settings-input,.filter-select,.search-field input,.add-bar input,.list-selector select,.group-mini-fields input,.group-mini-fields select,.appearance-choice select){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] select,html[data-theme="dark"] select option,html[data-theme="dark"] select optgroup{color:#f3f5f0!important;background:#202425!important}
html[data-theme="dark"] :is(input::placeholder,textarea::placeholder){color:#a9b7aa}
html[data-theme="dark"] .check-btn.checked{background:#43885b;border-color:#43885b;color:white}
html[data-theme="dark"] :is(.insight-card,.safe){background:#223428;color:#d4edcf;border-color:#37553e}
html[data-theme="dark"] :is(.snooze-info,.notice-due,.due-chip){background:#442b34;color:#f3bcc4;border-color:#73404a}
html[data-theme="dark"] :is(.modal-search-result,.edit-list-item,.modal-x){background:#29322d;color:#f0f4ed;border-color:var(--line)}
html[data-theme="dark"] :is(.warning){background:#3b3129;color:#f8dbb9}
html[data-theme="dark"] :is(.safe,.badge-inline){background:#293f30;color:#bce6b9}
html[data-theme="dark"] :is(.bottomnav){background:rgba(25,28,27,.97);border-color:var(--line)}
html[data-theme="dark"] #toast{background:#ecece5;color:#171b19}
/* Due count stays visible until the group is snoozed or reset. */
.nav-count{background:#9b253a;color:#fff;border-radius:999px;padding:3px 6px;min-width:18px;line-height:1;display:inline-flex;justify-content:center;align-items:center;font-size:10px;font-weight:950;margin-left:auto}
.bottomnav .nav-count{position:absolute;top:1px;right:2px;margin-left:0;font-size:9px}
.bottomnav button{position:relative}
html[data-theme="dark"] .nav-count{background:#e3a2ad;color:#301a20}
html[data-theme="dark"] .bottomnav button{color:#c6d3cb}
html[data-theme="dark"] .bottomnav button.active{color:#fff}

/* Gather v0.3 — restored green-first palette; coral = deliberate accent, never dominant. */
:root{
 --bg:#f6f8f3;--paper:#ffffff;--ink:#213b2e;--ink2:#385b43;
 --muted:#52685b;--line:#dbe5d8;--accent:#dcecae;--accent-strong:#c3dd91;
 --soft:#edf4e6;--red:#c6534c;--pink:#fff0e9;
 --shadow:0 12px 38px rgba(32,71,43,.055);
}
body{background:var(--bg);color:var(--ink)}
.brand{color:var(--ink)}
.brand-dot,.brand-period{color:var(--red)}
.brand-mark,.splash-symbol{background:var(--accent);color:#244b34;border-color:#c6d9ab}
.eyebrow,.sidebar-caption,.small-caps,.dept-title{color:#5d8166}
.version{color:#6c8774}
.subhead,.side-message,.group-description,.tile-detail,.history-meta,.item-sub,.setting-row-sub,.microcopy,.settings-panel p,.group-count,.group-items,.footer-note{color:#52685b}
.nav-link{color:#52675b}
.nav-link.active,.nav-link.active:hover{color:#244a35;background:#e1efcf}
.nav-link:hover{color:#244a35;background:#ecf4e4}
.nav-link.active:before{content:'';width:4px;height:20px;background:var(--red);border-radius:4px;margin-left:-8px}
.btn{background:#244735;color:white}
.btn:hover{background:#345f46}
.btn.danger{background:#b84044;color:white}
.btn.danger:hover{background:#922d37}
.btn.white{background:var(--paper);color:var(--ink);border-color:var(--line)}
.btn.white:hover{background:#f4f8f0}
.btn.light{background:#e0edcf;color:#244735}
.btn.light:hover{background:#cfdfb7}
.btn.ghost{color:#355c45}
.icon-btn,.tile-button{color:#345f46}
.icon-btn:hover{background:#e9f3e2}
.hero{background:linear-gradient(113deg,#e2efca 0%,#e9f2dc 68%,#f1f5e8 100%);color:#203d2d}
.hero::after{color:rgba(56,99,58,.095)}
.hero-detail,.hero-stat span:last-child{color:#49694e}
.panel,.dept-card,.product-tile,.group-card,.reminder-card{border-color:var(--line)}
.add-bar{background:#fff;border:1.5px solid #90b980;box-shadow:0 8px 27px rgba(32,73,42,.045)}
.add-bar:focus-within{border-color:#4e8860;box-shadow:0 0 0 3px rgba(86,151,92,.17)}
.add-icon{color:#5b986d}
.add-bar input::placeholder,.search-field input::placeholder{color:#718575}
.suggest-row,.autocomplete{background:var(--paper);color:var(--ink)}
.suggest-row:hover,.suggest-row.selected{background:#eaf3e1;color:var(--ink)}
.suggest-add{color:#3d8655}
.suggest-meta{color:#536d5b}
.suggest-icon,.tile-emoji,.history-icon{background-color:#e9f3e0;color:#245236}
.check-btn.checked{background:#4f9462;border-color:#4f9462;color:white}
.chip.active,.mini-tab.active{background:#dceabf;color:#254931;border-color:#c4dea5}
.chip-num{color:#5d7261}
.text-button{color:#397748}
.text-button:hover{color:#244b34}
.item-name{color:#264331}
.field label{color:#2f4b38}
.field input,.field select,.field textarea,.filter-select,.settings-input{background:var(--paper);color:var(--ink);border-color:var(--line)}
select,select option,select optgroup{color:#213b2e!important;background:#fff!important}
.suggest-row:focus-visible,.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid #cd685a;outline-offset:2px}
.snooze-info{color:#874337;background:#fff0e8}
.notice-due{background:#fff1ea;border-color:#e8c7b8;color:#873e35}
.reminder-store,.history-date{color:#b64b45}
.due-chip{background:#fff0e8;color:#924234}
#toast{background:#244735;color:white}
.category-chips{padding-bottom:8px}
.category-chips .chip{font-size:11px}
@media(max-width:700px){
 .bottomnav{background:rgba(254,255,251,.97);border-color:var(--line)}
 .bottomnav button{color:#667a6a}
 .bottomnav button.active{background:#e2efce;color:#234931}
 .bottomnav button.active svg{color:#245238}
 .brand-dot,.brand-period{color:var(--red)}
}
/* Dark should still feel recognizably Gather: forest cards, sage highlights, soft coral notices. */
html[data-theme="dark"]{
 color-scheme:dark;--bg:#151e18;--paper:#202d24;--ink:#f0f6ed;
 --muted:#c6d4c7;--line:#3b5141;--accent:#35523b;--accent-strong:#578063;
 --ink2:#d1e3d0;--soft:#263e2e;--red:#ef9881;--pink:#49342f;
 --shadow:0 12px 38px rgba(0,0,0,.20)
}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .brand{color:var(--ink)}
html[data-theme="dark"] .brand-dot,html[data-theme="dark"] .brand-period{color:#f29b81}
html[data-theme="dark"] :is(.eyebrow,.sidebar-caption,.small-caps,.dept-title,.version){color:#aec7a6}
html[data-theme="dark"] .history-date,html[data-theme="dark"] .reminder-store{color:#f4aa94}
html[data-theme="dark"] :is(.nav-link,.chip,.mini-tab,.icon-btn,.tile-button,.row-more,.text-button,.group-count){color:#d3e1d2}
html[data-theme="dark"] .nav-link.active,html[data-theme="dark"] .nav-link.active:hover{background:#344e38;color:#f5fbf0}
html[data-theme="dark"] .nav-link.active:before{background:#ec9d87}
html[data-theme="dark"] .nav-link:hover{background:#2c4534;color:#f0f8ee}
html[data-theme="dark"] .btn,html[data-theme="dark"] .btn:hover{background:#82b979;color:#122b1c}
html[data-theme="dark"] .btn:hover{background:#a2ce94}
html[data-theme="dark"] .btn.danger,html[data-theme="dark"] .btn.danger:hover{background:#c95e58;color:#fff}
html[data-theme="dark"] .btn.white,html[data-theme="dark"] .btn.light,html[data-theme="dark"] .btn.ghost{background:#314737;color:#f1f7ee;border-color:#45644d}
html[data-theme="dark"] .btn.white:hover,html[data-theme="dark"] .btn.light:hover{background:#3b5942}
html[data-theme="dark"] :is(.brand-mark,.splash-symbol,.hero,.suggest-icon,.tile-emoji,.history-icon,.group-card .group-emoji){background-color:#304a36;color:#eef8e9;border-color:#45664b}
html[data-theme="dark"] .hero{background:linear-gradient(115deg,#304c37,#314637 78%,#344634)}
html[data-theme="dark"] .hero-detail,html[data-theme="dark"] .hero-stat span:last-child{color:#d2e2cc}
html[data-theme="dark"] .add-bar{border-color:#729e6e;background:var(--paper)}
html[data-theme="dark"] .add-bar:focus-within{border-color:#9bc98c;box-shadow:0 0 0 3px rgba(129,189,124,.17)}
html[data-theme="dark"] .add-icon,html[data-theme="dark"] .suggest-add{color:#a4d194}
html[data-theme="dark"] :is(.suggest-row:hover,.suggest-row.selected,.grocery-row:hover,.tile-button:hover){background:#304c37;color:#f1f9ed}
html[data-theme="dark"] :is(.chip.active,.mini-tab.active){background:#45663e;color:#fafef5;border-color:#68885d}
html[data-theme="dark"] select,html[data-theme="dark"] select option,html[data-theme="dark"] select optgroup{color:#f0f6ed!important;background:#202d24!important}
html[data-theme="dark"] :is(.notice-due,.snooze-info,.due-chip){background:#48342f;color:#f5baaa;border-color:#665046}
html[data-theme="dark"] .check-btn.checked{background:#64a574;border-color:#64a574;color:#102218}
html[data-theme="dark"] .bottomnav{background:rgba(24,37,27,.98);border-color:var(--line)}
html[data-theme="dark"] .bottomnav button.active{background:#38563b;color:#f3fbf0}
html[data-theme="dark"] .bottomnav button.active svg{color:#f3fbf0}
html[data-theme="dark"] .bottomnav button{color:#c6d9c9}
html[data-theme="dark"] #toast{background:#d7edd2;color:#173420}

/* v0.3.1 icon sprites — 10 compressed sprite sheets for 200 illustrations. */
.grocery-art{flex:none;display:inline-block;background-image:var(--sprite);background-size:500% 400%;background-position:var(--x) var(--y);background-repeat:no-repeat;overflow:hidden;font-size:0!important;line-height:0!important;color:transparent!important;background-color:transparent!important;vertical-align:middle}
.tile-emoji.grocery-art{height:44px;width:44px;border-radius:8px;background-color:transparent!important}
.item-emoji.grocery-art{width:38px;height:38px;min-width:38px;border-radius:8px;background-color:transparent!important}
.suggest-icon.grocery-art{width:37px;height:37px;min-width:37px;border-radius:7px;background-color:transparent!important}
.remind-emoji.grocery-art{width:36px;height:36px;min-width:36px;border-radius:7px;background-color:transparent!important}
.group-item-art.grocery-art{width:27px;height:27px;min-width:27px;border-radius:6px}
.group-product-label{display:flex;align-items:center;gap:7px;min-width:0}
.modal-search-result .group-item-art{flex:none}
@media(max-width:700px){.tile-emoji.grocery-art{width:40px;height:40px}.item-emoji.grocery-art{width:34px;height:34px;min-width:34px}}


.icon-picker{position:fixed;right:22px;bottom:22px;z-index:95;width:min(360px,calc(100vw - 28px));max-height:75vh;overflow:auto;background:var(--paper,#fff);color:var(--ink,#294b35);border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:0 12px 50px #0003}.icon-picker-head{display:flex;align-items:start;justify-content:space-between;gap:8px}.icon-picker-head strong{font-size:14px}.icon-picker-head p{font-size:12px;margin:5px 0 12px}.icon-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}.icon-choice{min-width:0;min-height:76px;background:transparent;border:1px solid var(--line);border-radius:10px;padding:7px 3px;cursor:pointer;color:inherit;display:flex;flex-direction:column;align-items:center;gap:5px}.icon-choice.chosen{border:2px solid #71985e}.icon-choice span:last-child{font:10px system-ui;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%}.picker-art.grocery-art{width:38px;height:38px}.icon-choice:hover,.icon-choice:focus-visible{outline:2px solid #d97968;outline-offset:1px}@media(max-width:700px){.icon-picker{right:14px;bottom:84px;max-height:60vh}}

.quantity-control{display:flex;align-items:center;gap:4px;flex:none}.quantity-control .item-quantity{border:0;background:transparent;color:var(--ink);padding:7px 3px;cursor:pointer;min-width:25px;max-width:84px;white-space:normal;overflow-wrap:anywhere}.quantity-add{border:1px solid var(--line);border-radius:9px;min-width:32px;min-height:34px;font:600 20px system-ui;background:var(--soft);color:var(--ink);cursor:pointer}.quantity-add:hover{border-color:var(--red)}.quantity-add:focus-visible,.item-quantity:focus-visible{outline:2px solid var(--red);outline-offset:2px}
html[data-theme="dark"] :is(.dept-count,.chip-num){background:#314b38;color:#edf7e8}html[data-theme="dark"] .chip.active .chip-num{background:#213b2b;color:#f5fff0}html[data-theme="dark"] :is(.item-quantity,.quantity-add,.hero-num){color:#f0f6ed}html[data-theme="dark"] .quantity-add{background:#314b38;border-color:#648168}

@media(max-width:700px){.bottomnav{align-items:center;overflow:visible;padding-top:8px}.bottomnav button[data-tab="shop"]{flex:0 0 64px;height:64px;border-radius:23px;background:#477a52;color:#fff;transform:translateY(-12px);box-shadow:0 5px 16px #26483240;border:4px solid var(--paper);gap:3px;font-weight:850}.bottomnav button[data-tab="shop"] svg{width:27px;height:27px;color:#fff}.bottomnav button[data-tab="shop"].active{background:#356641;box-shadow:0 0 0 2px #dc8a73,0 5px 16px #26483240}html[data-theme="dark"] .bottomnav button[data-tab="shop"]{background:#85bc79;color:#162b1b;border-color:#202d24}html[data-theme="dark"] .bottomnav button[data-tab="shop"] svg{color:#162b1b}html[data-theme="dark"] .bottomnav button[data-tab="shop"].active{background:#9dce8f;color:#162b1b;box-shadow:0 0 0 2px #ef9881,0 5px 16px #0004}}

.quantity-add:disabled{opacity:.4;cursor:default}.quantity-control{gap:2px}.quantity-control .item-quantity{min-width:22px}@media(max-width:400px){.quantity-add{min-width:28px;min-height:34px}.quantity-control .item-quantity{max-width:52px}.grocery-row{gap:6px}}

.swipe-shell{position:relative;overflow:hidden;border-radius:12px;isolation:isolate}.swipe-underlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#dedbd2;transition:background .12s;pointer-events:none}.swipe-hint{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:850;opacity:0;transition:opacity .12s}.swipe-favorite{color:#705000}.swipe-favorite b{font-size:24px;color:#ae7a00}.swipe-remove{color:#a82c2c}.swipe-remove svg{width:21px;height:21px}.swiping-right .swipe-favorite,.swiping-left .swipe-remove{opacity:1}.swiping-left .swipe-underlay{background:#ead2cd}.swipe-ready .swipe-hint{font-weight:950}.swipe-shell .grocery-row{position:relative;background:var(--paper);touch-action:pan-y pinch-zoom;transition:transform .18s ease}.swipe-shell .grocery-row.done{opacity:1}.swipe-shell .grocery-row.done>*{opacity:.65}.swipe-shell .grocery-row.swipe-dragging{transition:none;user-select:none;cursor:grabbing}.favorite-mark{color:#ac7900;margin-left:6px;font-size:13px}#toast.undo-toast.show{pointer-events:auto}#toast button{border:1px solid currentColor;background:transparent;color:inherit;border-radius:7px;padding:6px 12px;font:800 12px system-ui;cursor:pointer;margin-left:10px}html[data-theme="dark"] .swipe-underlay{background:#415246}html[data-theme="dark"] .swiping-left .swipe-underlay{background:#563e3a}html[data-theme="dark"] .swipe-favorite{color:#ffe8a0}html[data-theme="dark"] :is(.swipe-favorite b,.favorite-mark){color:#ffda62}html[data-theme="dark"] .swipe-remove{color:#ffaaa0}@media(prefers-reduced-motion:reduce){.swipe-shell .grocery-row,.swipe-hint,.swipe-underlay{transition:none}}

.grocery-row{-webkit-user-select:none;user-select:none}.quantity-pop{position:fixed;z-index:100;pointer-events:none;font:950 52px/1 system-ui;letter-spacing:-3px;color:#356441;background:rgba(220,237,196,.8);padding:9px 15px 13px;border-radius:50%;opacity:0;box-shadow:0 5px 22px #29452e1a;animation:quantity-float 1s ease-out forwards}html[data-theme="dark"] .quantity-pop{color:#e2f4d2;background:rgba(89,131,81,.8)}@keyframes quantity-float{0%{opacity:0;transform:translate(-50%,-20%) scale(.65) rotate(-7deg)}18%{opacity:.85;transform:translate(-50%,-55%) scale(1.08) rotate(-7deg)}65%{opacity:.7}100%{opacity:0;transform:translate(-50%,-155%) scale(1.15) rotate(2deg)}}@media(prefers-reduced-motion:reduce){.quantity-pop{animation:quantity-fade .65s ease-out forwards;transform:translate(-50%,-50%)}}@keyframes quantity-fade{0%{opacity:.8}100%{opacity:0}}

/* Shared header rhythm keeps Shop, Settings and the other screens aligned. */
.main>.topbar{min-height:40px;margin:0 0 18px;padding:0;align-items:center}.main>.page-head{margin:0 0 24px;padding:0}.page-head>div:first-child>.eyebrow{display:block;line-height:1.4;margin:0 0 8px}.page-head h1{margin:0 0 10px;line-height:1.12}.page-head .subhead{margin:0;line-height:1.55}.topbar>.eyebrow,.topbar-left>.eyebrow{display:block;line-height:1.4}.brand{cursor:default}@media(max-width:700px){.mobile-header{padding:18px 2px 14px}.main>.topbar{min-height:32px;margin:0 0 14px}.main>.page-head{margin:0 0 20px}.page-head>div:first-child>.eyebrow{margin-bottom:7px}.page-head h1{margin-bottom:9px}}

@media(max-width:700px){.bottomnav button[data-tab="library"]{margin-right:8px}.bottomnav button[data-tab="reminders"]{margin-left:8px}}

.library-subnav:not(.saved-tabs){display:flex;flex-wrap:wrap;gap:8px;overflow:visible;white-space:normal;max-width:100%}.library-subnav:not(.saved-tabs) .mini-tab{flex:0 0 auto;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:9px 13px;min-height:38px;margin:0}.library-subnav:not(.saved-tabs) .mini-tab.active{border-color:var(--accent-strong)}

.saved-tabs{margin:0 0 20px}.recipe-title{border:0;background:transparent;text-align:left;padding:0;font:850 20px system-ui;color:var(--ink);cursor:pointer}.recipe-ingredient-row{display:grid;grid-template-columns:minmax(0,1fr) 65px 75px 34px;align-items:center;gap:6px;margin:8px 0}.recipe-ingredient-row input,.recipe-new-ingredient input{width:100%;min-width:0;border:1px solid var(--line);padding:10px 8px;border-radius:8px;background:var(--paper);color:var(--ink);font:inherit}.recipe-new-ingredient{display:grid;grid-template-columns:minmax(0,1fr) 65px 75px;gap:7px;margin:16px 0}.recipe-new-ingredient button{grid-column:1/-1;justify-self:start}.recipe-directions{white-space:pre-wrap;line-height:1.65;color:var(--ink);overflow-wrap:anywhere}.recipe-detail-items>div{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.recipe-detail-items>div span:not(.grocery-art){flex:1}.recipe-detail-items strong{font-size:13px}.recipe-card .small-caps{color:var(--muted)}@media(max-width:450px){.recipe-ingredient-row{grid-template-columns:minmax(0,1fr) 52px 58px 32px}.recipe-new-ingredient{grid-template-columns:minmax(0,1fr) 52px 58px}}


.collection-title-row{display:flex;justify-content:space-between;align-items:start;gap:10px}.collection-title-row>div{min-width:0}.section-remove{border:0;border-radius:8px;background:transparent;color:var(--red);font:600 24px/1 system-ui;min-width:32px;min-height:32px;cursor:pointer;flex:none;letter-spacing:0;padding:2px}.section-remove:hover{background:var(--pink)}.dept-title .section-remove{margin-left:4px}.dept-title .dept-count{white-space:nowrap}

.icon-choice-grid.default-icon-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.default-icon-choices .icon-choice{min-height:96px}.icon-picker-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

.library-subnav:not(.saved-tabs){display:flex;flex-wrap:wrap;gap:8px;overflow:visible;white-space:normal;max-width:100%}.library-subnav:not(.saved-tabs) .mini-tab{flex:0 0 auto;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:9px 13px;min-height:38px;margin:0}.library-subnav:not(.saved-tabs) .mini-tab.active{border-color:var(--accent-strong)}

.icon-choice-grid:not(.default-icon-choices){grid-template-rows:repeat(4,minmax(76px,auto))}.icon-choice-generic{grid-column:4;grid-row:4}

.clear-field{position:relative;display:flex;align-items:center;min-width:0;flex:1}.clear-field input{width:100%;min-width:0;padding-right:34px!important}.clear-field .clear-input{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:30px;height:30px;padding:0;border:0;background:transparent;color:var(--muted);font:22px system-ui;cursor:pointer;display:grid;place-items:center}.clear-field:has(input:placeholder-shown) .clear-input{display:none}.clear-field input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.recipe-new-ingredient .clear-field .clear-input{grid-column:auto;justify-self:auto}.chip-row[aria-label]{align-items:center}

.export-status{padding:12px 0;color:var(--muted);font-size:13px}.modal-footer:has([data-action="export-share"]){display:flex;flex-wrap:wrap;gap:8px}.modal-footer button:disabled{opacity:.5;cursor:wait}.shop-actions{flex-wrap:wrap}

.collection-card-controls{display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin-left:auto}.collection-card-controls .section-remove{margin:0}.collection-card-controls .group-move{display:flex;gap:4px}.group-top{align-items:flex-start}
