
:root{--bg:#fbf8f3;--ink:#243a35;--muted:#6e7b74;--accent:#d45f77;--accentDark:#b8415b;--lightpink:#fff0f1;--green:#24584b;--line:#e9e7e0;--card:#fff;--shadow:0 8px 28px rgba(35,54,45,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #ca6081;outline-offset:3px}
a{color:var(--green)}.container{max-width:960px;margin:auto;padding:0 18px}.app-header{position:sticky;top:0;z-index:30;background:rgba(251,248,243,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}
.header-row{display:flex;align-items:center;justify-content:space-between;height:67px;gap:10px}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:16px;letter-spacing:-.4px}.brand-mark{width:36px;height:36px;border-radius:12px;background:#f7d7d8;color:#ae3b54;display:grid;place-items:center;font-size:21px}.header-small{font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.05em;text-transform:uppercase}.nav-desktop{display:flex;gap:5px}.nav-btn{padding:9px 15px;border:0;border-radius:13px;color:#53645d;background:transparent;font-weight:750}.nav-btn.active{background:#f4e8e5;color:#9b4055}.counter{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;border-radius:12px;padding:0 5px;background:#e7a1ae;color:#fff;font-size:11px;margin-left:4px}
.hero{border-radius:25px;margin:24px 0 22px;padding:27px 29px;background:linear-gradient(117deg,#ffe7e5,#f8ebe2 58%,#e8f1e7);position:relative;overflow:hidden}.hero:after{content:"";position:absolute;right:-50px;top:-65px;width:240px;height:240px;border-radius:50%;border:32px solid rgba(255,255,255,.4);pointer-events:none}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:850;text-transform:uppercase;color:#a44c64}.hero h1{max-width:570px;font:800 clamp(27px,4.5vw,43px)/1.09 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-1.65px;margin:10px 0}.hero p{color:#59655d;max-width:535px;font-size:14px;line-height:1.6;margin:0}.mini-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.mini-stats span{display:inline-flex;align-items:center;gap:6px;background:#ffffffbf;border-radius:99px;padding:7px 11px;font-weight:760;font-size:12px;color:#596b5f}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:20px 0 14px}.section-head h2{font-size:22px;letter-spacing:-.6px;margin:0}.section-head p{color:var(--muted);font-size:13px;margin:3px 0 0}.filterbar{display:flex;gap:8px;overflow-x:auto;padding:2px 0 14px;scrollbar-width:none}.filterbar::-webkit-scrollbar{display:none}.pill{flex:none;border:1px solid #e2e2d8;background:#fff;color:#61736a;border-radius:99px;padding:8px 13px;font-weight:730;font-size:13px}.pill.active{background:var(--green);color:white;border-color:var(--green)}
.recipe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;padding-bottom:110px}.recipe-card{position:relative;background:var(--card);border:1px solid #efece7;border-radius:19px;overflow:hidden;box-shadow:0 3px 12px rgba(0,0,0,.035);transition:transform .15s,box-shadow .15s}.recipe-card:active{transform:scale(.985)}.recipe-photo{display:block;width:100%;height:178px;object-fit:cover;background:#efe9dc;cursor:pointer}.recipe-info{padding:13px 13px 15px;min-height:131px;cursor:pointer}.recipe-category{color:#a65c6c;text-transform:uppercase;letter-spacing:.09em;font-size:10px;font-weight:800}.recipe-info h3{margin:5px 0 7px;font-size:15px;line-height:1.29;letter-spacing:-.25px;min-height:39px}.recipe-meta{display:flex;gap:9px;align-items:center;color:#728077;font-size:12px}.heart-btn{position:absolute;top:10px;right:10px;width:38px;height:38px;border:0;border-radius:50%;background:#fffdf4ed;color:#9d9d9d;box-shadow:0 2px 10px #0002;font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center}.heart-btn.selected{background:#fff1f2;color:var(--accent)}.heart-btn:active{transform:scale(.91)}
.empty{background:#fff;border:1px dashed #d9dad0;border-radius:19px;padding:30px 19px;text-align:center;margin:20px 0;color:var(--muted)}.empty .big{font-size:34px;margin-bottom:7px}.empty h3{color:var(--ink);margin:0 0 6px}.empty p{margin:0 auto 14px;max-width:370px;font-size:13px}.primary,.secondary{border:0;border-radius:12px;padding:11px 15px;font-weight:800;font-size:13px}.primary{background:var(--green);color:white}.secondary{background:#f4e9e7;color:#9e435a}.subtle{color:var(--muted);font-size:12px}.hidden{display:none!important}
.shopping-head{margin:25px 0 14px}.shopping-head h1{margin:0;font-size:29px;letter-spacing:-1.2px}.shopping-head p{color:var(--muted);margin:7px 0 0;font-size:14px}.controls-panel{border:1px solid #eae7dd;background:#fff;border-radius:20px;padding:17px;margin-bottom:14px}.control-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:13px}.control-line+.control-line{padding-top:13px;border-top:1px solid #f1f1e8}.control-line:last-child{padding-bottom:0}.control-line label{font-weight:770;color:#52645c;font-size:13px}.segmented{display:flex;background:#f3f4ef;padding:4px;border-radius:12px;gap:4px}.segmented button{border:0;background:transparent;border-radius:9px;padding:8px 11px;font-weight:740;color:#688076;min-width:47px;font-size:13px}.segmented button.active{background:#fff;box-shadow:0 2px 8px #0001;color:#304d42}
.progress-wrap{display:flex;gap:8px;align-items:center;margin:13px 0 11px}.progress-track{height:8px;background:#ebece4;border-radius:99px;flex:1;overflow:hidden}.progress-value{height:100%;border-radius:99px;background:#4c9a77;transition:width .2s}.progress-label{font-size:12px;font-weight:790;color:#587063;white-space:nowrap}
.store-section{margin:15px 0 20px;border:1px solid #ece9e2;background:#fff;border-radius:21px;overflow:hidden;box-shadow:0 3px 18px #00000007}.store-header{display:flex;gap:12px;align-items:center;padding:16px 18px;border-bottom:1px solid #f0efeb}.store-logo{font-size:12px;letter-spacing:.01em;font-weight:950;border-radius:9px;padding:9px 12px;min-width:73px;text-align:center}.store-logo.lidl{background:#ffe266;color:#15529c}.store-logo.edeka{background:#17599d;color:#ffe466}.store-header h3{margin:0;font-size:17px}.store-header p{margin:0;font-size:11px;color:var(--muted)}.store-count{margin-left:auto;font-size:12px;font-weight:760;color:#708077}.aisle-title{background:#fbfaf7;color:#66746b;border-bottom:1px solid #efede6;border-top:1px solid #efede6;padding:9px 17px;text-transform:uppercase;letter-spacing:.08em;font-weight:840;font-size:10px}.shop-item{display:flex;align-items:center;gap:11px;padding:12px 16px;border-bottom:1px solid #f0eee9;min-height:65px}.shop-item:last-child{border-bottom:0}.check-square{flex:none;width:26px;height:26px;border:2px solid #d2d8d0;border-radius:8px;background:#fff;color:white;font-size:17px;font-weight:900}.shop-item.checked .check-square{background:#509c77;border-color:#509c77}.shop-item.checked .item-name{text-decoration:line-through;color:#95a39a}.shop-item-main{min-width:0;flex:1}.item-name{font-size:13px;line-height:1.25;font-weight:780}.item-quantity{margin-top:3px;font-size:12px;color:var(--muted)}.store-move{font-size:12px;color:#6e7c73;border:1px solid #dedfd5;border-radius:9px;padding:7px 3px;background:#fff;max-width:85px}.shop-actions{display:flex;gap:9px;margin:13px 0 6px;flex-wrap:wrap}.shop-actions button{flex:1;min-width:120px}.small-notice{font-size:11px;color:#7b867c;line-height:1.55;margin:11px 1px 90px}.store-empty{padding:20px;text-align:center;color:#859186;font-size:12px}
.bottom-nav{display:none}.footer{border-top:1px solid var(--line);padding:23px 0 35px;color:var(--muted);font-size:12px}.footer a{font-weight:700}.footer p{margin:4px 0}
dialog.recipe-dialog{position:fixed;inset:auto 0 0;max-width:700px;width:min(100%,700px);max-height:min(94dvh,900px);margin:auto auto 0;border:0;border-radius:26px 26px 0 0;padding:0;background:#fff;box-shadow:0 20px 80px #0004;overflow-y:auto;color:var(--ink)}dialog.recipe-dialog::backdrop{background:#142b259e;backdrop-filter:blur(3px)}.sheet-photo{width:100%;height:250px;object-fit:cover}.sheet-inner{padding:24px 24px 35px}.sheet-inner h2{font-size:27px;line-height:1.19;letter-spacing:-.8px;margin:7px 0 6px}.sheet-inner .subtitle{color:var(--muted);font-size:13px;margin:0 0 17px}.sheet-inner h3{font-size:14px;text-transform:uppercase;letter-spacing:.075em;color:#a84d65;margin:20px 0 9px}.sheet-inner ul{margin:0;padding-left:19px}.sheet-inner li{margin:7px 0;font-size:14px}.sheet-inner ol{margin:0;padding-left:22px}.sheet-inner ol li{padding-left:3px;line-height:1.58}.sheet-bottom{display:flex;gap:10px;position:sticky;bottom:0;background:#fff;padding-top:12px;padding-bottom:5px}.sheet-bottom button{flex:1}.sheet-close{position:absolute;right:14px;top:14px;width:40px;height:40px;border:0;border-radius:50%;background:#fffffff2;color:#394f47;font-size:25px;box-shadow:0 2px 12px #0002}.sheet-tag{display:inline-block;background:#eaf2e8;padding:4px 9px;border-radius:8px;color:#35664e;font-size:11px;font-weight:750;margin-right:5px}.tip-box{background:#f6f7ef;border-radius:12px;padding:12px;font-size:13px;color:#466453;margin-top:15px}.about-pane{max-width:670px;margin:30px auto 85px;background:#fff;border-radius:20px;padding:24px;border:1px solid var(--line)}.about-pane h2{font-size:24px;margin:0 0 10px}.about-pane p,.about-pane li{font-size:14px;line-height:1.65;color:#55685e}.about-pane ul{padding-left:21px}.about-pane a{font-weight:750}
@media(max-width:850px){.recipe-grid{grid-template-columns:repeat(3,1fr)}.recipe-photo{height:185px}}
@media(max-width:570px){.container{padding:0 15px}.header-row{height:59px}.brand{font-size:15px}.brand-mark{width:33px;height:33px}.nav-desktop{display:none}.hero{margin:14px 0 21px;padding:23px 21px;border-radius:20px}.hero h1{font-size:29px;max-width:310px}.hero p{font-size:13px}.hero:after{right:-105px;top:-75px}.section-head h2{font-size:19px}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:125px}.recipe-photo{height:158px}.recipe-info{padding:11px 11px 13px;min-height:124px}.recipe-info h3{font-size:13px;line-height:1.25;min-height:34px}.heart-btn{width:37px;height:37px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:25;justify-content:space-evenly;gap:3px;background:#fffffff2;backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:9px 11px max(10px,env(safe-area-inset-bottom))}.bottom-nav button{min-width:90px;flex:1;border:0;border-radius:13px;background:transparent;padding:6px 7px 5px;color:#69766d;font-size:11px;font-weight:800}.bottom-nav button.active{background:#fbebef;color:#a93f5a}.bottom-nav .nav-icon{display:block;font-size:19px;line-height:1.45}.bottom-nav .counter{min-width:18px;height:18px;font-size:10px}.footer{padding-bottom:100px}.sheet-photo{height:224px}.sheet-inner{padding:20px 20px 30px}.sheet-inner h2{font-size:24px}.shop-item{padding:12px}.store-move{font-size:11px}.shopping-head h1{font-size:26px}.controls-panel{padding:13px}.control-line label{font-size:12px}.segmented button{padding:8px 8px}.about-pane{margin-top:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.app-header,.bottom-nav,.nav-desktop,.shop-actions,.control-line,.footer,.hero,.recipe-grid,.filterbar,.sheet-bottom,.sheet-close{display:none!important}.container{max-width:100%;padding:0}.shop-item{break-inside:avoid}.store-section{break-inside:avoid}.small-notice{margin-bottom:10px}}

/* v2: dual dietary collections and import management */
.header-small{display:block}.nav-desktop{flex-wrap:wrap}.hero h1{max-width:620px}.filter-label{color:#637870;font-size:11px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;margin:2px 0 7px}.filterbar{padding-bottom:13px}.pill{white-space:nowrap}.recipe-card{min-width:0}.recipe-photo-placeholder{height:178px;background:linear-gradient(120deg,#f6e4df,#e6eee5);display:grid;place-items:center;font-size:64px;color:#a75b70;cursor:pointer}.recipe-collections{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.collection-chip{background:#f7eaeb;border-radius:99px;color:#a14e64;padding:3px 7px;font-size:10px;font-weight:800}.collection-chip.high-protein{background:#e6f1eb;color:#35684f}.recipe-info{min-height:158px}.recipe-info h3{min-height:unset}.recipe-category{display:block}.import-layout{display:grid;grid-template-columns:repeat(2,1fr);gap:17px;margin:19px 0}.import-panel{background:#fff;border:1px solid #ece8df;border-radius:21px;padding:24px;box-shadow:0 4px 20px #00000008}.import-panel h2{font-size:21px;letter-spacing:-.5px;margin:9px 0 8px}.import-panel p{font-size:13px;line-height:1.65;color:var(--muted)}.step-chip{display:inline-block;padding:5px 10px;border-radius:99px;background:#f7e3e7;color:#a3425f;font-size:11px;font-weight:800}.file-chooser{display:flex;align-items:center;justify-content:center;background:#f5f7f1;border:2px dashed #b8cebb;min-height:84px;text-align:center;padding:14px;margin:18px 0 11px;border-radius:15px;color:#24584b;font-weight:800;cursor:pointer}.file-chooser input{display:block;width:100%;margin:9px auto 0;max-width:250px;font-size:12px}.file-chooser{flex-direction:column}.file-chooser span{font-size:14px}.toggle-label{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:#65766d;padding:8px 0 14px}.toggle-label input{margin-top:3px;accent-color:var(--green)}.full{display:block;width:100%}.notice{border-radius:12px;background:#eff6ef;color:#315746;font-size:12px;padding:10px 13px;margin-top:12px}.notice.error{background:#fff0f0;color:#8d263d}.notice.success{background:#eaf4ed;color:#226648}.download-rows{display:flex;gap:9px;flex-wrap:wrap}.link-button{text-decoration:none;display:inline-block}.import-library{margin-bottom:110px}.library-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f0eee9}.library-item:last-child{border:0}.library-item-content{flex:1;min-width:0}.library-item-content strong{display:block;font-size:13px}.library-item-content span{display:block;font-size:11px;color:#76877e}.library-item button{font-size:12px;padding:8px 12px}.small-action{font-size:12px;padding:8px 12px}.store-action-row{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px;background:#fcfbf9}.store-action-row button,.store-action-row a{font-size:12px}.store-action-row a{text-decoration:none}.store-action-row button{flex:1}.store-action-row a{flex:1;text-align:center}.store-action-row .retailer-disclaimer{width:100%;font-size:11px;color:#7d8c81}.shopping-notice{font-size:12px;color:#5d6a64;margin:10px 0;padding:12px;border-radius:12px;background:#f4f6ed}.view-empty{grid-column:1/-1}.sheet-tag.high-protein{background:#e6f1eb}.recipe-badge-line{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}.about-pane h3{font-size:16px;margin:23px 0 7px}.about-pane p{margin:10px 0 15px}.primary:disabled,.secondary:disabled{opacity:.45;cursor:not-allowed}.notice:empty{display:none}.split-note{margin-top:15px;font-size:11px;color:#78867e}.import-panel .section-head{margin:0 0 10px}.import-panel .section-head h2{margin:0}.store-header{min-height:76px}.shopping-actions{margin-top:16px}.list-header-meta{font-size:13px;color:var(--muted)}
@media(max-width:680px){.import-layout{grid-template-columns:1fr}.import-panel{padding:18px}.import-library{padding:18px}.brand{font-size:14px}.hero{padding:24px 20px}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-photo,.recipe-photo-placeholder{height:155px}.recipe-info{min-height:150px}.recipe-info h3{font-size:13px}.recipe-collections{gap:3px}.collection-chip{font-size:9px}.store-action-row{gap:7px}.store-action-row button,.store-action-row a{min-width:120px}}
@media(max-width:390px){.recipe-grid{gap:10px}.recipe-photo,.recipe-photo-placeholder{height:129px}.recipe-info{padding:10px}.recipe-info h3{font-size:12px}.recipe-meta{font-size:10px}.recipe-card{border-radius:14px}.store-header{padding:13px 11px}.shop-item{padding:10px 11px}}
