:root{--paper:#f9f8f3;--ink:#263d30;--green:#234e3c;--muted:#788077;--line:#e1e4d9;--lime:#dce7b5;--serif:Georgia,'Times New Roman',serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #a3b66c;outline-offset:4px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15}h1,h2{font-family:var(--serif);font-weight:400}h1{font-size:clamp(36px,4.5vw,58px);letter-spacing:-1.8px}h2{font-size:32px;letter-spacing:-.7px}h3{font-family:var(--serif);font-weight:400;font-size:25px}p{margin:14px 0;color:#657065}.topbar{max-width:1360px;margin:auto;padding:24px 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;font-family:var(--serif);font-size:25px;font-weight:bold;white-space:nowrap}.brand-icon{font-size:44px;font-weight:400;line-height:1}.brand small{display:block;font:10px system-ui;letter-spacing:1.4px;margin-top:3px;font-weight:400;color:var(--muted)}nav{display:flex;align-items:center;gap:8px}main{max-width:1264px;margin:auto;padding:0 48px;min-height:72vh}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;display:block}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:54px 0 35px}.intro h1{margin-top:12px}.intro h1 span{color:#8a9c55}.intro p{margin-bottom:0;font-size:14px}.primary,.secondary,.quiet,.text-button{border:0;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 20px;min-height:44px;border-radius:6px;line-height:1.4;font-weight:550;font-size:13px;white-space:nowrap}.primary{background:var(--green);color:white}.primary:hover{background:#32634b}.secondary{border:1px solid #ccd2c6;background:transparent;color:var(--ink)}.quiet{background:transparent;color:var(--muted);padding:10px}.quiet:hover{color:var(--ink);background:#e9ecdf}.text-button{padding-left:0;background:none;color:var(--green)}.text-button span{font-size:22px}.role{font-size:10px;border:1px solid var(--line);border-radius:30px;padding:2px 7px}.book-art{width:155px;min-height:203px;background:#304f3d;color:#edf0d8;box-shadow:8px 10px 0 #d0d8c4,14px 20px 24px #203b2522;border-radius:2px 6px 6px 2px;transform:rotate(10deg);margin:0 55px -35px 30px;padding:20px 17px;border-left:7px solid #42614b;display:flex;flex-direction:column;justify-content:space-between}.book-art>span{font:21px/1.05 var(--serif);letter-spacing:1px}.book-art b{font-size:60px;line-height:1;text-align:center;color:#bace8c;font-weight:400}.book-art small{font-size:7px;line-height:1.5;letter-spacing:1px}.collection{margin:40px 0 60px}.collection-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.collection-heading h2{font-size:29px;display:flex;align-items:center;gap:12px}.count{font:12px system-ui;background:#e9ecdf;border-radius:999px;min-width:26px;height:26px;padding:0 9px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}.chip{background:none;color:#697365;border:1px solid var(--line);border-radius:30px;padding:9px 18px;white-space:nowrap;font-size:12px;min-height:40px}.chip.active{color:white;background:var(--green);border-color:var(--green)}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.recipe-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:transform .2s,box-shadow .2s}.recipe-card:hover{transform:translateY(-4px);box-shadow:0 10px 22px #23392510}.card-open{display:block;background:none;border:0;padding:0;text-align:left;color:inherit;width:100%;height:100%}.card-image{position:relative;height:220px;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:cover}.placeholder{height:100%;width:100%;background:#e8e9db;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#9ba37f}.placeholder>span{font-size:72px;line-height:1}.placeholder small{font:italic 16px var(--serif)}.card-body{padding:21px}.card-body h3{font-size:25px}.card-body p{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px;margin:10px 0 18px}.card-meta{border-top:1px solid #eff0e9;padding-top:14px;display:flex;align-items:center;gap:16px;font-size:11px;color:var(--muted)}.arrow{margin-left:auto;color:var(--green);font-size:20px}.empty{grid-column:1/-1;text-align:center;padding:55px 24px 65px;border:1px dashed #cad2bb;border-radius:10px}.empty>span{font-size:52px;color:#a1b279}.empty p{max-width:490px;margin:16px auto 24px}.login{display:grid;grid-template-columns:1fr 420px;gap:80px;align-items:center;padding:80px 0}.login-story h1{margin-top:20px}.login-story p{max-width:420px}.illustration{display:flex;align-items:center;gap:24px;font:110px/1 var(--serif);color:#9baa73;margin-top:40px}.illustration span{font:italic 24px/1.2 var(--serif)}.panel{border:1px solid var(--line);background:#fff;padding:36px;border-radius:12px}.panel h2{margin-top:16px}.panel p{font-size:13px}.panel label{margin-top:18px}.wide{width:100%;justify-content:space-between}label{display:block;font-size:12px;font-weight:550;margin-top:16px}label small{font-weight:400;color:var(--muted);display:block;margin:3px 0 5px}input,textarea,select{display:block;width:100%;padding:11px 12px;margin-top:6px;background:white;border:1px solid #d7dbcf;border-radius:5px;color:var(--ink)}input:focus,textarea:focus,select:focus{outline:2px solid #9cab7c;outline-offset:1px}textarea{resize:vertical;line-height:1.6}input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--green);flex-shrink:0}input[type=file]{font-size:12px}.form-error{color:#ac3e33;font-size:13px;min-height:5px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.inline{display:flex;align-items:center;gap:10px}.danger{color:#a64235}.danger-bg{background:#a64235}.muted{color:var(--muted)}.small{font-size:12px}dialog{border:1px solid var(--line);border-radius:14px;padding:36px;width:640px;max-width:calc(100vw - 24px);max-height:90dvh;color:var(--ink);background:var(--paper);box-shadow:0 20px 100px #12271b33}dialog::backdrop{background:#20392c77;backdrop-filter:blur(4px)}dialog h2{padding-right:25px;margin-top:8px}dialog p{font-size:13px}.close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:28px;color:var(--muted);width:44px;height:44px}#photo-preview img{width:100%;max-height:200px;object-fit:cover;border-radius:8px;margin-top:15px}.detail-nav{display:flex;align-items:center;justify-content:space-between;margin:28px 0;gap:10px}.detail-nav>div{display:flex;gap:8px;flex-wrap:wrap}.recipe-detail{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}.detail-cover{height:360px}.detail-cover img{width:100%;height:100%;object-fit:cover}.large{font-size:150px}.recipe-heading{max-width:850px;padding:36px 40px 0;margin:auto}.recipe-heading h1{margin-top:12px}.facts{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0;margin-top:25px}.facts>div{padding:0 20px;border-right:1px solid var(--line)}.facts>div:first-child{padding-left:0}.facts>div:last-child{border:0}.facts span{display:block;font-size:11px;color:var(--muted)}.facts strong{font-family:var(--serif);font-size:28px;font-weight:400}.facts small{font:12px system-ui}.recipe-content{display:grid;grid-template-columns:1fr 1.8fr;gap:50px;padding:40px}.recipe-content h2{margin:12px 0 24px}.ingredients{background:#f3f5eb;padding:24px;border-radius:8px;align-self:start}.ingredient{display:flex;gap:12px;align-items:center;border-bottom:1px solid #dde2d3;padding:12px 0;margin:0;font-weight:400;break-inside:avoid}.ingredient:has(input:checked) span{text-decoration:line-through;color:var(--muted)}.steps{list-style:none;counter-reset:steps;padding:0;margin:0}.steps li{counter-increment:steps;position:relative;padding:0 0 30px 44px;white-space:pre-wrap;overflow-wrap:anywhere}.steps li::before{content:counter(steps,decimal-leading-zero);position:absolute;left:0;top:0;color:#819560;font:22px var(--serif)}.recipe-credit{padding:20px 40px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.user-list{margin:25px 0}.user-list>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:8px 0;gap:8px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:var(--green);color:white;padding:14px 24px;border-radius:8px;box-shadow:0 4px 24px #0002;max-width:calc(100% - 32px);width:max-content;z-index:10;opacity:0;pointer-events:none;transition:.2s}#toast.visible{opacity:1;transform:translate(-50%,0)}footer{max-width:1168px;margin:40px auto 0;border-top:1px solid var(--line);padding:24px 0;display:flex;justify-content:space-between;font:italic 13px var(--serif);color:var(--muted);gap:20px}footer span{font:10px system-ui}#print-area{display:none}
@media(min-width:1400px){main{padding:0}.topbar{padding-left:96px;padding-right:96px}}@media(max-width:1000px){.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.login{grid-template-columns:1fr 1fr;gap:30px}.intro{align-items:flex-start;flex-direction:column}.book-art{margin-right:15px}.recipe-content{gap:30px;padding:30px}}@media(max-width:640px){.topbar{padding:18px 20px;flex-wrap:wrap;gap:12px}.brand{font-size:23px}.brand small{font-size:9px}.brand-icon{font-size:38px}nav{width:100%;justify-content:flex-end;border-top:1px solid var(--line);padding-top:6px;gap:0}nav .quiet{font-size:11px;padding:8px}.topbar:has(nav>span) nav{display:none}main{padding:0 20px}.intro{padding:32px 0 26px;gap:22px}.intro h1{font-size:40px}.intro p{font-size:13px;max-width:310px}.intro>.primary{width:100%}.eyebrow{font-size:9px;letter-spacing:1.5px}.book-art{position:absolute;right:-42px;bottom:-20px;width:105px;min-height:165px;opacity:.8;padding:15px 9px}.book-art>span{font-size:15px}.book-art b{font-size:45px}.book-art small{font-size:6px}.collection{margin-top:30px}.collection-heading{align-items:stretch;flex-direction:column;gap:16px}.collection-heading h2{font-size:27px}.search{width:100%}.filters{padding-right:20px}.recipe-grid{grid-template-columns:1fr;gap:22px}.card-image{height:235px}.card-body{padding:21px}.card-body h3{font-size:27px}.card-body p{min-height:0}.login{grid-template-columns:1fr;padding:35px 0;gap:25px}.login-story h1{font-size:40px}.login-story p{font-size:14px}.illustration{display:none}.panel{padding:25px}.detail-nav{flex-wrap:wrap;margin:20px 0}.detail-nav>div{width:100%}.detail-nav .secondary,.detail-nav .primary{padding:10px 13px;font-size:12px;flex:1}.detail-cover{height:240px}.recipe-heading{padding:26px 22px 0}.recipe-heading h1{font-size:38px}.facts{padding:18px 0}.facts>div{padding:0 12px}.facts strong{font-size:25px}.facts small{font-size:10px}.facts span{font-size:10px}.recipe-content{grid-template-columns:1fr;padding:24px 22px;gap:35px}.recipe-credit{padding:18px 22px}.ingredients{padding:20px}.recipe-content h2{font-size:29px}dialog{padding:28px 22px}dialog h2{font-size:29px}footer{margin:25px 20px 0;flex-direction:column;gap:8px;padding:20px 0}.small{font-size:11px}}
@page{size:A4;margin:18mm;@bottom-center{content:counter(page);font-family:Georgia,serif;font-size:10pt;color:#788077}}@media print{body{background:white;color:#243a2c;font:11pt/1.6 Georgia,serif;-webkit-print-color-adjust:exact;print-color-adjust:exact}body>header,body>main,body>footer,body>dialog,#toast{display:none!important}#print-area{display:block}h1{font-size:32pt;letter-spacing:-1px;overflow-wrap:anywhere}h2{font-size:20pt}p{color:inherit}.print-cover{min-height:245mm;padding:25mm 10mm;break-after:page;background:#edf0e2;display:flex;flex-direction:column}.print-cover>span{font:8pt system-ui;letter-spacing:2px}.print-cover h1{margin-top:30mm;font-size:48pt;line-height:1.1}.print-flower{font-size:110pt;color:#7b9161;margin:15mm 0;line-height:1}.print-cover p{margin-top:auto}.print-toc{padding:15mm 5mm}.print-toc h1{margin:8mm 0 15mm}.print-toc>div{display:flex;gap:8mm;padding:5mm 0;border-bottom:1px solid #d8dfcb;break-inside:avoid}.print-toc b{font-size:18pt;color:#859c64}.print-toc small{display:block;font:9pt system-ui;color:#6a7662}.print-recipe{break-before:page}.print-recipe:first-child{break-before:auto}.print-recipe>h1{margin:5mm 0}.print-recipe>img{width:100%;height:65mm;object-fit:cover;margin:5mm 0}.print-facts{font:9pt system-ui;border-top:1px solid #d8dfcb;border-bottom:1px solid #d8dfcb;padding:5mm 0;margin:5mm 0 8mm}.print-columns{display:grid;grid-template-columns:1fr 1.9fr;gap:10mm}.print-columns h2{margin-bottom:6mm}.print-columns p{margin:0 0 3mm;white-space:pre-wrap;overflow-wrap:anywhere}.print-columns li{padding-left:2mm;margin-bottom:5mm;break-inside:avoid;overflow-wrap:anywhere}.print-columns ol{padding-left:5mm;margin-top:0}.print-recipe .eyebrow{font-family:system-ui}.print-columns section:first-child{background:#f1f3ea;padding:5mm;align-self:start}.print-columns section:first-child h2{font-size:18pt}}

.detail-tags{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}.detail-tags .chip{min-height:auto;font-size:11px;padding:4px 12px}

.photo-field{margin-top:24px}.photo-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:550;margin-bottom:10px}.photo-dropzone{position:relative;border:1.5px dashed #b9c5a8;border-radius:12px;background:#eef2e5;overflow:hidden;transition:background .2s,border-color .2s}.photo-dropzone:hover,.photo-dropzone.dragging{background:#e3ebd5;border-color:var(--green)}.photo-dropzone:focus-within{outline:3px solid #9cab7c;outline-offset:3px}.photo-input{position:absolute;width:1px;height:1px;padding:0;margin:0;opacity:0;overflow:hidden}.photo-picker{display:block;cursor:pointer;margin:0;position:relative;min-height:150px}.photo-picker #photo-prompt{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:150px;padding:16px;text-align:center;gap:4px}.photo-picker #photo-prompt[hidden]{display:none}.photo-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#dce6cc;color:var(--green);font-size:23px;margin-bottom:4px}.photo-picker strong{font-family:var(--serif);font-size:21px;font-weight:400}.photo-picker #photo-prompt>span:not(.photo-icon){font-size:12px;color:var(--green);text-decoration:underline;text-underline-offset:3px}.photo-picker small{margin:0;color:var(--muted);font-size:11px;font-weight:400}.photo-picker #photo-preview img{display:block;width:100%;height:180px;max-height:none;object-fit:cover;border-radius:0;margin:0}.photo-change{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);border:1px solid #ffffff80;background:#fffffff2;color:var(--green);border-radius:24px;padding:8px 18px;box-shadow:0 2px 12px #0002;white-space:nowrap;font-size:12px}.has-photo{border-style:solid}.photo-info{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.photo-info p{font-size:11px;margin:8px 0;color:var(--muted)}.photo-info button{font-size:11px;padding:8px 0}.photo-info button[hidden]{display:none}.photo-filename{font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin:0}#photo-error:empty{display:none}@media(max-width:640px){.photo-picker,.photo-picker #photo-prompt{min-height:135px}.photo-picker #photo-preview img{height:160px}}

.ingredient-editor{margin:26px 0}.ingredient-editor>h3{font-size:25px}.ingredient-edit-row{display:grid;grid-template-columns:75px 85px minmax(0,1fr) 36px;gap:10px;padding:14px 0;border-top:1px solid var(--line)}.ingredient-edit-row label{margin:0;font-size:10px}.ingredient-edit-row input{padding:10px;min-width:0}.ingredient-note{grid-column:1/4}.ingredient-note input{margin-top:4px}.ingredient-row-remove{border:0;background:none;color:var(--muted);font-size:25px;align-self:start;margin-top:22px;min-height:40px}.ingredient-row-remove:hover{color:#a64235}.ingredient-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.ingredient-heading-row{grid-template-columns:minmax(0,1fr) 36px;background:#eef2e5;padding:12px;border-radius:6px;margin-bottom:8px}.ingredient-heading-row .ingredient-name{grid-column:1}.ingredient-section{font-size:20px;margin-top:24px}.ingredient-detail-note{display:block;font-size:11px;color:var(--muted);margin-top:3px}@media(max-width:640px){.ingredient-edit-row{grid-template-columns:65px 70px minmax(0,1fr) 30px;gap:7px}.ingredient-edit-row input{padding:9px 7px;font-size:13px}.ingredient-heading-row{grid-template-columns:minmax(0,1fr) 30px}}

@media(max-width:640px){.ingredient-heading-row{grid-template-columns:minmax(0,1fr) 30px}}

.ingredient-mode{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.ingredient-mode .chip{font-size:12px}#ingredients-mode-error:empty{display:none}

.glutenfree-badge{display:inline-flex;align-items:center;gap:7px;background:#fffffff5;border:1px solid #e0e5d5;color:var(--green);border-radius:8px;padding:6px 10px;font:600 11px/1.3 system-ui;white-space:nowrap}.glutenfree-badge img{display:block;object-fit:contain;width:28px;height:36px}.card-image>.glutenfree-badge{position:absolute;top:12px;right:12px;box-shadow:0 2px 10px #0001}.recipe-heading-labels{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.glutenfree-badge.compact{padding:4px;border:0;background:transparent}.glutenfree-badge.compact img{width:22px;height:28px}.print-recipe>.glutenfree-badge{float:right;margin:0 0 4mm 5mm;break-inside:avoid}.print-recipe>.glutenfree-badge img{width:7mm;height:9mm}.print-recipe>.glutenfree-badge span{font-size:8pt}

.glutenfree-badge{padding:5px 7px;gap:0}.glutenfree-badge img{width:22px;height:28px}.card-image>.glutenfree-badge{top:10px;right:10px}.glutenfree-badge.compact img{width:18px;height:23px}.print-recipe>.glutenfree-badge img{width:5mm;height:6.5mm}

.preparation-heading{font-family:var(--serif);font-size:24px;font-weight:400;margin:24px 0 18px;color:var(--green);break-after:avoid}.preparation-heading:first-child{margin-top:0}@media print{.print-columns .preparation-heading{font-size:14pt;margin:6mm 0 3mm;break-after:avoid}.print-columns ol{margin-bottom:5mm}}

.category-admin-list{margin:20px 0;max-height:48dvh;overflow:auto}.category-admin-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding:16px 0}.category-admin-row strong{font:21px var(--serif);overflow-wrap:anywhere}.category-admin-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.category-admin-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.category-admin-actions button{font-size:11px;padding:10px 12px}@media(max-width:640px){.category-admin-row{align-items:flex-start;flex-direction:column;gap:8px}.category-admin-actions{justify-content:flex-start}.category-admin-actions button{padding:9px 10px}}

.recipe-category-picker{margin-top:16px;min-width:0}.category-field-label{font-size:12px;font-weight:550;margin-bottom:8px}.category-selected{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.category-selected-badge,.category-option-badge{font:11px/1.4 system-ui;cursor:pointer;min-height:36px;border-radius:20px;max-width:100%;overflow-wrap:anywhere;text-align:left}.category-selected-badge{display:inline-flex;align-items:center;gap:10px;background:var(--green);color:white;border:1px solid var(--green);padding:7px 11px}.category-selected-badge>span:last-child{font-size:17px;line-height:1;flex-shrink:0;opacity:.8}.category-search-row{display:flex;gap:6px;align-items:center}.category-search-row input{min-width:0;margin:0;flex:1;padding:10px;font-size:12px}.category-add{background:#e9eddf;color:var(--green);border:1px solid #d4ddc5;border-radius:6px;width:42px;min-height:42px;font-size:23px;flex-shrink:0}.category-options{display:flex;flex-wrap:wrap;gap:6px;max-height:145px;overflow:auto;margin:9px 0}.category-option-badge{background:#f4f6ee;border:1px solid #dce3d2;padding:7px 11px;color:var(--green)}.category-option-badge:hover,.category-selected-badge:hover{filter:brightness(.94)}.category-create{border-style:dashed;background:white}.category-empty,.category-picker-hint{font-size:10px;color:var(--muted)}.category-picker-hint{display:block;font-weight:400}#recipe-category-error:empty{display:none}@media(max-width:640px){.category-selected-badge,.category-option-badge{min-height:40px;font-size:12px}}

.recipe-number-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:0;align-items:end}.recipe-number-fields label{min-width:0}.recipe-number-fields input{min-width:0;width:100%}.recipe-category-picker{width:100%}@media(max-width:640px){.recipe-number-fields{gap:0}.recipe-number-fields label{font-size:11px}.recipe-number-fields input{padding:10px 8px}}

#ingredients-quick,#recipe-form textarea[name="instructions"]{overflow:hidden;resize:none;min-height:110px;max-height:none}#recipe-form textarea[name="instructions"]{min-height:160px}

#recipe-form textarea[name="description"]{overflow:hidden;resize:none;min-height:72px;max-height:none}

@media(max-width:1000px){.topbar{flex-wrap:wrap}.topbar nav{flex-wrap:wrap;justify-content:flex-end;max-width:100%}}
.is-busy{cursor:progress}.is-busy:disabled{opacity:.85;cursor:progress}.button-spinner{width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;flex:none;animation:button-spin .7s linear infinite}@keyframes button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.button-spinner{animation-duration:2s}}.filters{--fade-l:0px;--fade-r:0px;display:flex;gap:8px;overflow-x:auto;padding:6px 2px 10px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--fade-l),#000 calc(100% - var(--fade-r)),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 var(--fade-l),#000 calc(100% - var(--fade-r)),transparent 100%)}.filters::-webkit-scrollbar{display:none}
.filters .chip{display:inline-flex;align-items:center;gap:8px;flex:none;scroll-snap-align:start;background:#eef1e6;border:1px solid transparent;color:#4b5a4a;border-radius:999px;padding:7px 8px 7px 16px;font-size:13px;font-weight:550;min-height:40px;transition:background .15s,color .15s,box-shadow .15s,transform .15s}.filters .chip:hover{background:#e2e8d4}.filters .chip:active{transform:scale(.97)}.filters .chip.active{background:var(--green);color:#fff;box-shadow:0 6px 16px -6px #234e3c99}
.chip-count{font-size:11px;font-weight:650;line-height:1;color:#6f7d63;background:#fff;border-radius:999px;padding:5px 8px;min-width:24px;text-align:center}.filters .chip.active .chip-count{background:#ffffff2e;color:#fff}
.search{display:flex;align-items:center;gap:10px;width:300px;height:46px;padding:0 6px 0 16px;background:#fff;border:1px solid #dfe4d6;border-radius:999px;color:var(--muted);transition:border-color .15s,box-shadow .15s}.search:focus-within{border-color:#8ea36d;box-shadow:0 0 0 4px #8ea36d26}.search>svg{width:18px;height:18px;flex:none}
.search input{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;background:none;font-size:14px;color:var(--ink);outline:none!important;-webkit-appearance:none;appearance:none}.search input::-webkit-search-cancel-button,.search input::-webkit-search-decoration{-webkit-appearance:none;display:none}.search input::placeholder{color:#9aa293}
.search-clear{flex:none;width:32px;height:32px;border:0;border-radius:50%;background:#eef1e6;color:var(--muted);font-size:18px;line-height:1;padding:0 0 2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.search-clear:hover{background:#e2e8d4;color:var(--ink)}.search-clear[hidden]{display:none}
@media(max-width:640px){.search{width:100%}}
.image-tags{position:absolute;left:14px;right:14px;bottom:14px;display:flex;flex-wrap:wrap-reverse;gap:6px;pointer-events:none}.image-tags>span{background:#fffffff2;border-radius:999px;padding:4px 11px;font-size:10px;font-weight:550;color:var(--ink);box-shadow:0 1px 6px #0000001a;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.promo-card{position:relative;background:linear-gradient(160deg,#2c5a45,#1f4535);color:#edf0d8;border:0;display:flex;min-height:100%;overflow:hidden}.promo-card:hover{transform:translateY(-4px)}.promo-content{position:relative;z-index:1;padding:30px 28px;display:flex;flex-direction:column;align-items:flex-start;max-width:72%}.promo-card .eyebrow{color:#bace8c;font-size:9px;line-height:1.6}.promo-card h3{color:#fff;font-size:30px;line-height:1.12;margin:14px 0 0}.promo-card p{color:#d5dec4;font-size:13px;margin:12px 0 22px}
.promo-action{margin-top:auto;display:inline-flex;align-items:center;gap:10px;border:0;border-radius:999px;background:#edf0d8;color:var(--green);padding:11px 18px;font-size:13px;font-weight:600;min-height:44px;cursor:pointer}.promo-action:hover{background:#fff}
.promo-card .book-art{position:absolute;right:-28px;bottom:-24px;width:120px;min-height:160px;padding:15px 12px;margin:0;transform:rotate(10deg);box-shadow:6px 8px 0 #ffffff1f,10px 16px 24px #0004;background:#3d6a52;border-left-color:#4f7c63}.promo-card .book-art>span{font-size:16px}.promo-card .book-art b{font-size:46px}.promo-card .book-art small{font-size:6px}
@media(max-width:640px){.promo-content{padding:26px 22px;max-width:75%}.promo-card h3{font-size:26px}.promo-card{min-height:330px}}
dialog:has(.book-picker){width:940px;padding-bottom:0}.book-picker>p{margin-bottom:0}.book-picker>label{margin-top:18px}.book-filters{margin:18px 0 4px}.book-bulk{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;margin-bottom:8px}.book-bulk .text-button{padding:6px 0;min-height:36px}
.book-grid{max-height:none;overflow:visible;padding:3px 0 12px}
.book-footer{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -36px;padding:14px 36px calc(14px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -8px 20px -14px #12271b40}#book-count{font-size:13px;color:var(--muted)}
@media(max-width:640px){dialog:has(.book-picker){width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0;padding:24px 16px 0}.book-picker h2{font-size:27px}.book-footer{margin:0 -16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.book-footer .primary{flex:none}}
.detail-actions{display:flex;gap:10px}.icon-button{width:46px;height:46px;border-radius:50%;border:1px solid #ccd2c6;background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;transition:background .15s,transform .15s}.icon-button:hover{background:#f0f3e8}.icon-button:active{transform:scale(.95)}.icon-button svg{width:21px;height:21px}.icon-button.primary-icon{background:var(--green);border-color:var(--green);color:#fff}.icon-button.primary-icon:hover{background:#32634b}
@media(max-width:640px){.detail-nav>div.detail-actions{width:auto}}
.share-recipe{font:20px/1.3 var(--serif);color:var(--ink);margin:6px 0 18px}.share-option{display:flex;gap:14px;align-items:flex-start;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:16px;margin:0 0 12px;color:var(--ink);font:inherit}button.share-option{cursor:pointer;min-height:64px}button.share-option:hover{background:#f6f8f0;border-color:#cfd8bf}.share-option>svg{width:24px;height:24px;flex:none;color:var(--green);margin-top:2px}.share-option>span{flex:1;min-width:0}.share-option strong{display:block;font-size:14px}.share-option small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:3px}
.share-link-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.share-link-actions .quiet{padding:10px 6px}#share-result label{margin-top:14px}#share-result>small{display:block;margin-top:8px;font-size:11px}
button.share-option.is-busy{justify-content:center;align-items:center;gap:10px;color:var(--muted)}
.detail-tags .category-link{display:inline-flex;align-items:center;gap:6px;cursor:pointer;background:#eef1e6;border-color:transparent;color:#4b5a4a;font-weight:550;padding:6px 10px 6px 14px;transition:background .15s,color .15s}.detail-tags .category-link span{font-size:15px;line-height:1;color:#8a9a78;transition:transform .15s}.detail-tags .category-link:hover{background:var(--green);color:#fff}.detail-tags .category-link:hover span{color:#fff;transform:translateX(2px)}.badge-link{border:0;background:none;padding:0;cursor:pointer;border-radius:8px}.badge-link:hover .glutenfree-badge{border-color:var(--green)}

@media(max-width:640px){.collection-heading{margin-bottom:22px}}
.grade-a{--grade:#038141}.grade-b{--grade:#85bb2f}.grade-c{--grade:#e8b800}.grade-d{--grade:#ee8100}.grade-e{--grade:#e63e11}
.health-badge{position:absolute;top:12px;left:12px;z-index:1;width:34px;height:34px;border-radius:50%;background:var(--grade);color:#fff;font:700 15px/34px system-ui;text-align:center;box-shadow:0 2px 10px #0003,0 0 0 2px #fff}
.health-scale{margin:22px 0 4px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}.health-scale-label{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);font-weight:650}.health-grades{display:flex;align-items:center;border-radius:10px;overflow:visible;gap:2px}.health-grades>span{width:34px;height:30px;display:flex;align-items:center;justify-content:center;background:var(--grade);color:#ffffffd9;font:700 14px system-ui;opacity:.45}.health-grades>span:first-child{border-radius:8px 0 0 8px}.health-grades>span:last-child{border-radius:0 8px 8px 0}.health-grades>span.is-current{opacity:1;color:#fff;width:42px;height:42px;font-size:20px;border-radius:10px;box-shadow:0 3px 12px #0003,0 0 0 3px #fff;position:relative;z-index:1}.health-scale p{flex-basis:100%;margin:0;font-size:13px}.health-kcal{order:3;font-size:13px;font-weight:600;color:var(--ink);background:#eef1e6;border-radius:999px;padding:6px 12px}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}.switch-row strong{display:block;font-size:14px}.switch-row small{display:block;color:var(--muted);font-weight:400;margin:2px 0 0}.switch-row input{appearance:none;-webkit-appearance:none;flex:none;width:46px;height:28px;margin:0;padding:0;border:0;border-radius:999px;background:#cfd6c6;position:relative;cursor:pointer;transition:background .2s}.switch-row input::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:transform .2s}.switch-row input:checked{background:var(--green)}.switch-row input:checked::after{transform:translateX(18px)}.switch-row input:focus-visible{outline:2px solid #9cab7c;outline-offset:2px}
.health-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:4px 0 12px}.health-stats>div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;text-align:center}.health-stats strong{display:block;font:28px/1.1 var(--serif);font-weight:400}.health-stats span{font-size:11px;color:var(--muted)}
.health-progress{height:8px;border-radius:999px;background:#e6ebdc;overflow:hidden;margin:8px 0 6px}.health-progress>div{height:100%;background:var(--green);border-radius:999px;transition:width .4s}
.collection-heading{display:grid;grid-template-columns:1fr auto auto;align-items:center;column-gap:10px;row-gap:16px;margin-bottom:24px}
.filter-toggle{display:inline-flex;position:relative;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;border:1px solid #dfe4d6;background:#fff;color:var(--ink);padding:0;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.filter-toggle:hover{border-color:#b9c4aa}.filter-toggle svg{width:20px;height:20px}.filter-toggle.is-open{border-color:#8ea36d;box-shadow:0 0 0 4px #8ea36d26}.filter-toggle.has-filter{background:var(--green);border-color:var(--green);color:#fff}
.filter-count{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#bace8c;color:var(--green);font-size:11px;font-weight:700;line-height:20px;text-align:center;box-shadow:0 0 0 2px var(--paper)}.filter-count[hidden]{display:none}
.filter-panel{grid-column:1/-1;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;box-shadow:0 10px 30px -18px #12271b55;animation:filter-open .18s ease-out}.filter-panel[hidden]{display:none}@keyframes filter-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.filter-panel{animation:none}}
.filter-panel-heading strong{display:block;font:20px var(--serif)}.filter-panel-heading small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.filter-panel-grades-heading,.filter-panel-section{margin-top:6px;padding-top:14px;border-top:1px solid var(--line)}
.filter-panel-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.filter-panel-chips .chip{display:inline-flex;align-items:center;gap:8px;background:#eef1e6;border:1px solid transparent;color:#4b5a4a;border-radius:999px;padding:7px 8px 7px 14px;font-size:13px;font-weight:550;min-height:40px;cursor:pointer}.filter-panel-chips .chip:hover{background:#e2e8d4}.filter-panel-chips .chip.active{background:var(--green);color:#fff}.filter-panel-chips .chip.active .chip-count{background:#ffffff2e;color:#fff}
.filter-panel-grades{display:flex;gap:8px;margin:14px 0}.grade-chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 12px 6px 14px;border-radius:999px;border:2px solid var(--grade);background:#fff;color:var(--grade);font:700 15px system-ui;cursor:pointer;transition:background .15s,color .15s}.grade-chip small{font-size:11px;font-weight:600;opacity:.75}.grade-chip.active{background:var(--grade);color:#fff}.grade-chip:disabled{opacity:.3;cursor:default}
.filter-panel-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:12px}.filter-panel-actions .primary{min-width:200px}.filter-panel-actions .quiet:disabled{opacity:.4;cursor:default}
@media(max-width:640px){.collection-heading{grid-template-columns:minmax(0,1fr) auto}.collection-heading>h2{grid-column:1/-1}.filter-panel{padding:16px}.filter-panel-actions .primary{flex:1;min-width:0;max-width:220px}.filter-panel-grades{gap:6px}.grade-chip{padding:6px 10px}}
@media print{.print-health{display:flex;flex-wrap:wrap;align-items:center;gap:2mm 5mm;margin:-4mm 0 7mm;font:9pt system-ui;break-inside:avoid}.print-health-label{font-size:7pt;letter-spacing:1px;text-transform:uppercase;color:#788077;font-weight:650}.print-health .health-grades>span{width:7mm;height:6mm;font-size:8pt}.print-health .health-grades>span.is-current{width:9mm;height:9mm;font-size:12pt;box-shadow:0 0 0 1mm #fff}.print-health-kcal{font-weight:600;background:#eef1e6;border-radius:99px;padding:1mm 3mm}.print-health-reason{flex-basis:100%;margin:0;font-size:9pt;color:#4e5b4d}}
.health-confirm{margin-top:18px;padding:16px;border:1px solid #e8c9a4;background:#fdf6ec;border-radius:12px}.health-confirm p{margin:0;font-size:13px;color:var(--ink)}.health-confirm .form-actions{margin-top:14px}.health-confirm[hidden],#health-actions[hidden]{display:none}
.filter-panel-sort .chip{padding:7px 14px}
