:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#173e52;background:#e9f0ef;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d65d7a;outline-offset:3px}.app{max-width:560px;min-height:100vh;margin:auto;background:#f8faf8;box-shadow:0 0 70px #1e465313;position:relative;padding-bottom:100px}.top{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.brand{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.16em;font-weight:800}.brand img{width:38px;height:32px;object-fit:contain}.brand b{color:#db7e94;margin:0 3px}.avatar{border:3px solid #f8faf8;background:#a8d6cc;color:#173e52;border-radius:50%;width:35px;height:35px;font-size:12px;font-weight:800;box-shadow:20px 0 0 -3px #f1b9c2;margin-right:20px;position:relative}.avatar span{position:absolute;left:36px;top:7px;font-size:11px}.heading{padding:21px 28px 25px;display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;margin:0 0 10px;color:#557580}.eyebrow span{color:#d7758b;margin-left:5px}h1{font-size:clamp(40px,10vw,54px);line-height:.99;letter-spacing:-.055em;margin:0;font-weight:750}h1 em{font-family:Georgia,serif;font-weight:400;color:#d6788c;letter-spacing:-.055em}.intro{font-size:14px;color:#58737d;margin:16px 0 0}.bag{width:108px;transform:rotate(8deg);flex:none}.bag svg{width:100%;filter:drop-shadow(0 8px 0 #e1efeb)}main{padding-bottom:10px}.summary{margin:0 28px;background:#dbeee7;border-radius:19px;padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px}.summary>div{display:flex;align-items:center;gap:11px}.summary-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#fff;color:#da718a;font-size:23px}.summary strong,.summary small{display:block}.summary strong{font-size:14px}.summary small{font-size:12px;color:#54717b;margin-top:3px}.shop{border:0;background:#173e52;color:white;border-radius:12px;padding:12px 13px;font-size:13px;font-weight:700;white-space:nowrap}.shop span{padding-left:5px}.list-title{display:flex;justify-content:space-between;align-items:end;margin:38px 28px 18px}.list-title h2{font-size:23px;letter-spacing:-.035em;margin:0}.list-title h2 span,.done-toggle span:not(.chevron){font-size:12px;background:#e4eeea;padding:5px 8px;border-radius:8px;margin-left:4px;vertical-align:middle}.list-title .eyebrow{margin-bottom:7px}.icon-btn{border:1px solid #dbe7e3;background:white;border-radius:14px;height:46px;width:46px;font-size:23px;color:#173e52}.search{margin:0 28px 20px;display:flex;align-items:center;background:#edf3f1;border-radius:14px;padding:0 7px 0 15px;min-height:51px}.search>span{font-size:25px;color:#53727c}.search input{background:transparent;border:0;outline:0;min-width:0;flex:1;padding:14px 10px;font-size:14px;color:#173e52}.search input::placeholder{color:#66818a}.search button{width:37px;height:37px;border:0;border-radius:11px;background:white;color:#173e52;font-size:23px}.group{padding:0 28px;margin-top:23px}.group h3{color:#69828b;font-size:11px;text-transform:uppercase;letter-spacing:.12em;margin:0 0 8px}.item{display:flex;align-items:center;gap:13px;min-height:72px;border-bottom:1px solid #e5eeeb}.check{width:25px;height:25px;border:1.7px solid #b4c9c3;border-radius:9px;background:transparent;flex:none;color:white}.check.checked{background:#88bfb1;border-color:#88bfb1}.item-art{width:43px;height:43px;border-radius:13px;background:#e9f2e9;display:grid;place-items:center;font-size:23px;flex:none}.item-art.pink{background:#fae8e7}.item-art.yellow{background:#f8f0d7}.item-art.blue{background:#e5f0f2}.item-info{border:0;background:none;padding:8px 0;text-align:left;min-width:0;flex:1;color:inherit}.item-info strong,.item-info small{display:block}.item-info strong{font-size:15px;line-height:1.3}.item-info small{font-size:12px;color:#6a838a;margin-top:4px}.item-info .pending{color:#a15365}.qty{font-size:12px;font-weight:700;color:#416675;white-space:nowrap}.item-chevron{color:#98adae;font-size:21px}.done-toggle{display:flex;align-items:center;gap:8px;width:calc(100% - 56px);margin:28px 28px 0;background:none;border:0;border-top:1px solid #dce8e4;padding:20px 0 0;text-align:left;color:#466874;font-weight:700;font-size:14px}.chevron{margin-left:auto;font-size:20px}.bottom-note{margin:46px 28px 20px;color:#78908e;font-size:12px;text-align:center}.bottom-note span{color:#d67b8c}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,560px);background:#ffffffed;border-top:1px solid #e1eae7;display:flex;justify-content:space-around;padding:8px 20px max(10px,env(safe-area-inset-bottom));z-index:2}.bottom button{border:0;background:none;color:#66828a;font-size:11px;min-width:75px;min-height:51px}.bottom button span{display:block;font-size:23px;line-height:25px;margin-bottom:3px}.bottom .nav-active{color:#173e52;font-weight:800}dialog{border:0;padding:0;border-radius:24px 24px 0 0;max-width:560px;width:100%;max-height:90dvh;margin:auto auto 0;background:#f8faf8;color:#173e52;box-shadow:0 -20px 70px #173e5230}dialog::backdrop{background:#102d3c88}.sheet-inner{padding:12px 24px 30px;overflow:auto;max-height:90dvh}.grabber{height:5px;width:36px;background:#cbd9d5;border-radius:9px;margin:0 auto 18px}.sheet-top{display:grid;grid-template-columns:1fr 2fr 1fr;align-items:center;text-align:center;font-size:15px;font-weight:750;margin-bottom:25px}.text-btn{border:0;background:none;color:#326d7a;text-align:left;padding:8px 0}.sheet-inner h2{font-size:28px;letter-spacing:-.04em;margin:0 0 8px}.muted{font-size:14px;color:#66818a;line-height:1.5}.field{display:block;margin:20px 0 0;font-size:13px;font-weight:700}.field input,.field select{display:block;width:100%;margin-top:8px;border:1px solid #dbe7e3;background:#fff;border-radius:12px;padding:14px;color:#173e52}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.primary,.secondary{width:100%;min-height:51px;border:0;border-radius:13px;font-weight:750;margin-top:18px}.primary{background:#173e52;color:white}.secondary{background:#e5f1ed;color:#173e52}.scan-demo{height:190px;background:#173e52;border-radius:20px;margin:20px 0;display:grid;place-items:center;color:white;text-align:center}.scan-frame{border:2px solid #b7e5d8;border-radius:18px;padding:30px 45px;font-size:35px;letter-spacing:4px}.choice{display:flex;align-items:center;gap:13px;width:100%;border:0;border-bottom:1px solid #e0ebe7;background:none;text-align:left;padding:15px 0;color:#173e52}.choice strong,.choice small{display:block}.choice small{color:#68818a;margin-top:4px}.choice .item-art{font-size:24px}.detail-art{width:80px;height:80px;border-radius:24px;background:#f8eae7;display:grid;place-items:center;font-size:42px;margin-bottom:20px}.tag{display:inline-block;background:#e1f0e9;color:#3c695e;border-radius:30px;padding:7px 10px;font-size:12px;font-weight:700}.notice{background:#f9ebdd;padding:14px;border-radius:13px;color:#78533e;font-size:13px;line-height:1.5;margin:18px 0}#toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#173e52;color:white;padding:12px 18px;border-radius:12px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:5;white-space:nowrap}#toast.show{opacity:1}@media(max-width:360px){.top,.heading{padding-left:20px;padding-right:20px}.summary{margin:0 20px}.group{padding:0 20px}.bag{width:75px}.shop{font-size:12px}.intro{font-size:13px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media(prefers-color-scheme:dark){:root{background:#122631;color:#e9f2ef}.app,dialog{background:#1c3038;color:#e9f2ef}.top .avatar{border-color:#1c3038}.summary,.search{background:#294840}.summary strong,.shop{color:#fff}.summary small,.intro,.eyebrow,.muted,.item-info small{color:#aec6c2}.item{border-color:#395159}.search input{color:#fff}.bottom{background:#1c3038f5;border-color:#395159}.bottom .nav-active{color:#fff}.icon-btn,.search button,.field input,.field select{background:#304c54;color:white;border-color:#49656a}.item-info,.choice{color:#e9f2ef}.done-toggle{color:#c5dcd6}.item-art{color:#173e52}}
/* The site's navigation, adapted to this compact prototype. */
.site-header{position:relative;z-index:3;padding:16px 16px 0}.glass-nav{min-height:64px;padding:9px 10px 9px 12px;display:flex;align-items:center;gap:16px;border:1px solid rgba(255,255,255,.52);border-radius:999px;background:rgba(248,244,235,.88);box-shadow:0 8px 36px rgba(3,37,59,.12)}.site-brand{display:flex;align-items:center;gap:9px;color:#082f4a;text-decoration:none;font-weight:800;font-size:16px}.site-brand img{width:39px;height:39px;object-fit:contain}.site-actions{margin-left:auto;display:flex;gap:7px;align-items:center}.nav-cta{color:white;background:#082f4a;padding:11px 15px;border-radius:999px;text-decoration:none;font-size:13px;font-weight:700}.menu-toggle{position:relative;width:44px;height:44px;border:1px solid #d1dfdc;border-radius:50%;background:#ffffff73;color:#082f4a}.menu-toggle span{position:absolute;left:13px;width:17px;height:2px;background:currentColor}.menu-toggle span:first-child{top:16px}.menu-toggle span:last-child{top:24px}.site-menu{position:absolute;top:88px;left:16px;right:16px;padding:12px 20px;border-radius:20px;background:#f9f6ef;box-shadow:0 12px 40px #082f4a30}.site-menu[hidden],.shop-scan[hidden]{display:none}.site-menu a{display:block;padding:12px 0;color:#082f4a;text-decoration:none;border-bottom:1px solid #dbe7e3}.site-menu a:last-child{border:0}main{padding-top:24px}.list-title{margin-top:30px}.summary-actions{display:flex;gap:7px;align-items:center}.shop-scan{width:44px;height:44px;border:0;border-radius:12px;color:#173e52;background:#fff;font-size:24px}.search{gap:4px}.search button{min-width:44px;width:44px;height:44px}.name-input{display:flex;align-items:center;margin-top:8px;border:1px solid #dbe7e3;border-radius:12px;background:#fff}.name-input input{flex:1;min-width:0;border:0;background:transparent;padding:14px;color:#173e52}.name-input button{border:0;background:#edf3f1;color:#173e52;border-radius:10px;font-size:23px;min-width:44px;height:44px;margin:3px}.stepper{display:flex;align-items:center;border:1px solid #dbe7e3;border-radius:12px;background:#fff;margin-top:8px;overflow:hidden}.stepper button{border:0;background:transparent;color:#173e52;font-size:20px;min-width:44px;height:49px}.field .stepper input{border:0;text-align:center;min-width:0;padding:10px 0;margin:0}.field select{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23173e52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}.scan-demo{height:230px}.sheet-top span:nth-child(2){white-space:nowrap}@media(max-width:360px){.summary{gap:4px}.summary-icon{display:none}.summary-actions{gap:4px}.shop{padding:12px 9px}.glass-nav{gap:5px}.nav-cta{padding:10px}}
@media(prefers-color-scheme:dark){.glass-nav,.site-menu{background:#e9f0ea}.name-input,.stepper{background:#304c54;border-color:#49656a}.name-input input,.stepper button{color:white}.field .stepper input{background:transparent}.name-input button{background:#46635f;color:white}.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}}
/* Compact shopping controls */
.app{padding-bottom:0}.site-header{position:sticky;top:0;padding-bottom:8px;z-index:3;pointer-events:none}.glass-nav,.site-menu{pointer-events:auto}.nav-cta{border:0;min-height:44px;cursor:pointer}.site-menu button{display:block;width:100%;padding:12px 0;border:0;border-bottom:1px solid #dbe7e3;background:none;color:#082f4a;text-align:left;font:inherit;cursor:pointer}.summary-row{display:flex;align-items:stretch;gap:8px;margin:0 28px}.summary{flex:1;min-width:0;margin:0;min-height:74px}.shop-scan{flex:0 0 74px;width:74px;height:74px;border-radius:19px;background:#dbeee7}.search-row{display:flex;gap:8px;align-items:stretch;margin:0 28px 20px;height:51px}.search-row .search{flex:1;min-width:0;height:51px;margin:0;padding-right:10px}.search-row>button{flex:0 0 51px;width:51px;height:51px;border:0;border-radius:14px;background:#edf3f1;color:#173e52;font-size:23px}.search-row>button:hover,.shop-scan:hover{filter:brightness(.96)}@media(max-width:360px){.summary-row,.search-row{margin-left:20px;margin-right:20px}.summary{padding:12px 10px}.shop-scan{flex-basis:68px;width:68px;height:68px}.summary{min-height:68px}.search-row{gap:6px}.search-row>button{flex-basis:48px;width:48px}.nav-cta span{display:none}}@media(prefers-color-scheme:dark){.shop-scan,.search-row>button{background:#294840;color:#fff}}
.empty-results p{margin:0 0 12px}.empty-results button{min-height:44px;border:0;border-radius:12px;background:#e1f0e9;color:#173e52;font-weight:700;padding:10px 14px;text-align:left;overflow-wrap:anywhere}.name-row{display:flex;gap:8px;align-items:stretch;margin-top:8px}.name-row .name-input{flex:1;min-width:0;margin:0}.name-row #formScan{flex:0 0 51px;width:51px;min-height:51px;border:0;border-radius:12px;background:#edf3f1;color:#173e52;font-size:23px}.sheet-top{grid-template-columns:44px minmax(0,1fr) 44px}.sheet-close{width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#e9f0ed;color:#173e52;font-size:26px;line-height:1}.sheet-close span{display:block;line-height:1}@media(prefers-color-scheme:dark){.empty-results button,.name-row #formScan,.sheet-close{background:#35534e;color:#fff}}
.detail-heading{display:flex;align-items:center;gap:16px}.detail-heading .detail-art{flex:none;margin:0}.detail-heading h2{margin:8px 0 0;overflow-wrap:anywhere}.detail-heading>div:last-child{min-width:0}
.sync-status{margin:0 28px 12px;font-size:12px;color:#557580}.camera{display:block;width:100%;min-height:220px;object-fit:cover;background:#173e52;border-radius:20px}
/* Consistent controls and icons across the list and its sheets. */
.barcode-icon{display:inline-block;width:22px;height:22px;vertical-align:middle;flex:none}
#headerScan{display:inline-flex;align-items:center;gap:7px}#headerScan .barcode-icon{width:19px;height:19px}
#shopScan,#scanTop,#formScan{display:grid;place-items:center}#shopScan[hidden]{display:none}
.sheet-inner{position:relative;padding-top:24px}.grabber{margin-bottom:15px}.sheet-top{min-height:44px;margin-bottom:25px}.sheet-close{position:absolute;right:24px;top:24px}.sheet-close svg{width:20px;height:20px}
#editForm .stepper,#editForm .field select,#editForm .field>input,#editForm .name-input{height:51px;min-height:51px}
#editForm .field select{padding-top:0;padding-bottom:0;line-height:normal}#editForm .stepper button{height:49px}
.delete-button{width:100%;min-height:51px;border:0;border-radius:13px;background:transparent;color:#a2364e;font-weight:750;text-align:center;margin-top:18px}
#searchCatalog{display:grid;gap:8px;margin-top:12px}#searchCatalog .choice{padding:12px 14px}
.done-toggle .chevron{width:20px;height:20px;margin-left:auto;flex:none;transition:transform .2s}.done-toggle[aria-expanded="true"] .chevron{transform:rotate(180deg)}
main.signed-out > :not(#syncStatus){display:none}#syncStatus a{color:inherit;text-decoration:underline}
