:root{color:#1f2328;--accent:#b4532a;--accent-dark:#8f3f1e;--border:#d8d2c8;--danger:#b42318;background:#faf7f2;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*{box-sizing:border-box}body{margin:0}.app{margin:0 auto;padding:1rem}.app-header{color:var(--accent);padding:.5rem 0 1rem;font-size:1.1rem;font-weight:700}.card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:1.25rem}h1{margin:0 0 1rem;font-size:1.5rem}.field{margin-bottom:1rem}label{margin-bottom:.25rem;font-weight:600;display:block}input{width:100%;font:inherit;border:1px solid var(--border);border-radius:8px;padding:.65rem .75rem}input[aria-invalid=true]{border-color:var(--danger)}.field-error,.form-error{color:var(--danger);margin:.25rem 0 0;font-size:.9rem}button{font:inherit;background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:8px;width:100%;padding:.75rem;font-weight:600}button:hover:not(:disabled){background:var(--accent-dark)}button:disabled{opacity:.6;cursor:default}button.secondary{color:var(--accent);border:1px solid var(--accent);background:0 0}.muted{color:#59636e}a{color:var(--accent)}.app{max-width:48rem}.app-header{justify-content:space-between;align-items:center;display:flex}.app-header .brand{color:var(--accent);text-decoration:none}.app-header button.link{width:auto}h2{margin:0 0 .5rem;font-size:1.25rem}h3{margin:1.25rem 0 .5rem;font-size:1.05rem}h4{color:#59636e;margin:.75rem 0 .25rem;font-size:.95rem}.page-title{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.page-title h1{margin:0}a.button,.button{background:var(--accent);color:#fff;border:1px solid var(--accent);text-align:center;border-radius:8px;padding:.65rem 1rem;font-weight:600;text-decoration:none;display:inline-block}a.button.secondary{color:var(--accent);background:0 0}button.small{width:auto;padding:.4rem .75rem;font-size:.9rem}button.link{color:var(--accent);background:0 0;border:0;width:auto;padding:0;font-weight:500;text-decoration:underline}button.link:hover:not(:disabled){color:var(--accent-dark);background:0 0}button.link.danger{color:var(--danger)}button.icon{color:#59636e;border:1px solid var(--border);background:0 0;width:2rem;height:2rem;padding:0}button.icon:hover:not(:disabled){background:#f1ede6}.toolbar{align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.checkbox{white-space:nowrap;align-items:center;gap:.35rem;margin:0;font-weight:500;display:flex}.checkbox input{width:auto}.recipe-list{gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.recipe-card{color:inherit;flex-direction:column;gap:.25rem;text-decoration:none;display:flex}.recipe-card:hover{border-color:var(--accent)}.badge{color:var(--accent-dark);vertical-align:middle;background:#fbe9df;border-radius:999px;margin-left:.5rem;padding:.1rem .55rem;font-size:.8rem;font-weight:600;display:inline-block}.recipe-card .badge{align-self:flex-start;margin-left:0}.muted-badge{color:#59636e;background:#ececec}.empty{text-align:center}.notice{background:#fff6db;border:1px solid #f0d78c;border-radius:8px;padding:.5rem .75rem}.version{margin:1rem 0}.change-note{border-left:3px solid var(--accent);background:#f6f2ec;margin:.5rem 0 0;padding:.4rem .75rem}.ingredients{margin:0;padding-left:1.1rem}.ingredients .amount{font-weight:600}.steps li{margin-bottom:.5rem}.actions{flex-wrap:wrap;gap:.5rem;margin-top:1.25rem;display:flex}.actions button{width:auto;padding:.65rem 1rem}.history ul{gap:.5rem;margin:0;padding:0;list-style:none;display:grid}.history-item{text-align:left;color:inherit;border:1px solid var(--border);background:#fff;flex-direction:column;align-items:flex-start;gap:.15rem;font-weight:400;display:flex}.history-item:hover:not(:disabled){border-color:var(--accent);background:#fff}.history li.current .history-item{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}.small{font-size:.875rem}fieldset{border:1px solid var(--border);background:#fff;border-radius:12px;margin:0 0 1rem;padding:1rem}legend{padding:0 .25rem;font-weight:700}textarea,select{width:100%;font:inherit;border:1px solid var(--border);background:#fff;border-radius:8px;padding:.6rem .75rem}.row{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}.row.three{grid-template-columns:repeat(3,1fr);align-items:end}.ingredient-row{grid-template-columns:5rem 7.5rem 1fr auto;align-items:center;gap:.4rem;margin-bottom:.5rem;display:grid}.step-row{grid-template-columns:1.5rem 1fr auto;align-items:start;gap:.4rem;margin-bottom:.5rem;display:grid}.step-number{padding-top:.6rem;font-weight:600}.step-side{flex-direction:column;gap:.3rem;display:flex}.step-side .timer{width:6.5rem}.row-actions{gap:.2rem;display:flex}.form-error p{margin:.25rem 0}.version-form>button[type=submit]{margin-top:.5rem}button.secondary:hover:not(:disabled),a.button.secondary:hover{color:var(--accent-dark);background:#fbe9df}@media (width<=560px){.row{grid-template-columns:1fr}.row.three label{font-size:.85rem}.ingredient-row{border-bottom:1px dashed var(--border);grid-template-columns:4.5rem 1fr auto;padding-bottom:.5rem}.ingredient-row .name{grid-column:1/3}}.main-nav{gap:1rem;margin-left:auto;margin-right:1rem;display:flex}.main-nav a{font-weight:600;text-decoration:none}.button-inline{width:auto;padding:.65rem 1rem}.product-picker{position:relative}.product-link{color:#2f6f3e;margin-top:.15rem;font-size:.8rem;display:block}.product-link button.link{font-size:.8rem}.product-options{z-index:10;border:1px solid var(--border);background:#fff;border-radius:8px;max-height:16rem;margin:.15rem 0 0;padding:.25rem 0;list-style:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 6px 18px #0000001f}.product-options li{cursor:pointer;padding:.45rem .75rem}.product-options li.active,.product-options li:hover{background:#fbe9df}.ingredient-row{grid-template-columns:5rem 7.5rem 1fr 4.5rem auto;align-items:start}.nutrition-panel{margin:1rem 0}table.nutrition{border-collapse:collapse;width:100%;max-width:28rem}table.nutrition caption{text-align:left;padding-bottom:.5rem;font-size:1.05rem;font-weight:600}table.nutrition caption .muted{margin-left:.5rem;font-size:.9rem;font-weight:400}table.nutrition th,table.nutrition td{padding:.4rem 0;font-weight:400}table.nutrition th{text-align:left}table.nutrition td{text-align:right;color:#59636e}.warning{color:#8a5300;font-size:.9rem}.nutrition-problems{color:#59636e;padding-left:1.1rem;font-size:.9rem}.product-card{justify-content:space-between;align-items:center;gap:1rem;display:flex}.product-card .row-actions{gap:.75rem}.label-grid{grid-template-columns:repeat(2,1fr)}.product-form h2{margin-bottom:1rem}@media (width<=560px){.app-header{flex-wrap:wrap}.main-nav{order:3;width:100%;margin:.5rem 0 0}.ingredient-row{grid-template-columns:4.5rem 1fr 6.6rem;grid-template-areas:"qty unit grams""name name actions"}.ingredient-row .qty{grid-area:qty}.ingredient-row .unit{grid-area:unit}.ingredient-row .grams{grid-area:grams}.ingredient-row .name{grid-area:name}.ingredient-row .row-actions{grid-area:actions;padding-top:.25rem}.label-grid{grid-template-columns:1fr 1fr}}.cook-button{background:#2f6f3e}.cook-button:hover:not(:disabled){background:#245630}.active-cooking{color:inherit;margin-bottom:1rem;font-weight:600;text-decoration:none;display:block}.cook h1 .muted{font-size:1rem;font-weight:400}.cook-ingredients summary{cursor:pointer;font-weight:600}.cook-ingredients ul{margin-top:.5rem}.progress{margin:1rem 0 .5rem;font-weight:600}.cook-steps{gap:.75rem;margin:0 0 1.5rem;padding:0;list-style:none;display:grid}.cook-steps li{border:1px solid var(--border);background:#fff;border-radius:12px;padding:1rem}.cook-steps li.done{background:#f1f6f2;border-color:#b8d5bf}.cook-steps li.done .cook-step-text{color:#59636e;text-decoration:line-through}.cook-step{cursor:pointer;grid-template-columns:2rem 1.75rem 1fr;align-items:start;gap:.5rem;margin:0;font-size:1.2rem;font-weight:400;line-height:1.45;display:grid}.cook-step input{accent-color:#2f6f3e;width:1.6rem;height:1.6rem;margin-top:.1rem}.cook-step-number{color:var(--accent);font-weight:700}.step-timer{align-items:center;gap:.75rem;margin:.75rem 0 0 3.75rem;display:flex}.step-timer .time{font-variant-numeric:tabular-nums;font-size:1.4rem;font-weight:700}.step-timer.finished .time{color:#2f6f3e}.stars{gap:.25rem;margin-bottom:1rem;display:flex}.stars button{color:#d0c8bc;background:0 0;width:auto;padding:0 .1rem;font-size:2.2rem;line-height:1}.stars button.on{color:#e3a008}.stars button:hover:not(:disabled){color:#e3a008;background:0 0}.finish .field{margin-top:.5rem}.compare-form{flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:1rem;display:flex}.compare-form select{width:auto}table.compare{border-collapse:collapse;border:1px solid var(--border);background:#fff;border-radius:12px;width:100%;margin-bottom:1rem;overflow:hidden}table.compare th,table.compare td{text-align:left;vertical-align:top;border-bottom:1px solid #efe9e0;padding:.5rem .75rem}table.compare thead th{background:#f6f2ec}table.compare tbody th{font-weight:500}.diff-label{background:#ececec;border-radius:999px;margin-left:.4rem;padding:0 .45rem;font-size:.75rem;font-weight:600;display:inline-block}tr.diff-changed,li.diff-changed{background:#fff8e1}tr.diff-added,li.diff-added{background:#eaf6ec}tr.diff-removed,li.diff-removed{background:#fdecea}.compare-steps{padding-left:1.4rem}.compare-steps li{border-radius:6px;margin-bottom:.25rem;padding:.35rem .5rem}del{color:#b42318}ins{color:#1e6b33;text-decoration:none}.diff-up{color:#b42318}.diff-down{color:#1e6b33}.shopping-lists,.recipe-picker,.shopping-items{margin:0 0 1rem;padding:0;list-style:none}.shopping-lists li{margin-bottom:.5rem}.recipe-picker li{border:1px solid var(--border);background:#fff;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.4rem;padding:.6rem .75rem;display:flex}.recipe-picker li.picked{border-color:var(--accent)}.recipe-picker .servings input{width:4.5rem}.sync-status{color:#2f6b3a;font-size:.9rem}.sync-status.offline{color:#8a5a00;background:#fff4d6;border:1px solid #f0d58a;border-radius:6px;padding:.4rem .6rem}.shopping-item{border-bottom:1px solid var(--border);align-items:center;gap:.5rem;display:flex}.shopping-item label{cursor:pointer;flex:1;align-items:flex-start;gap:.75rem;padding:.75rem .25rem;display:flex}.shopping-item input[type=checkbox]{width:1.4rem;height:1.4rem;accent-color:var(--accent);flex-shrink:0;margin-top:.1rem}.item-text{flex-wrap:wrap;column-gap:.4rem;font-size:1.05rem;display:flex}.item-amount{font-weight:600}.item-sources{color:#6b6459;flex-basis:100%;font-size:.8rem}.shopping-item.done .item-text{color:#9a9389;text-decoration:line-through}.shopping-item .remove{color:#9a9389;padding:.5rem}.add-item{gap:.5rem;margin:1rem 0;display:flex}.add-item input{flex:1}.shopping-item label,.recipe-picker label{margin:0;font-weight:400}.recipe-picker input[type=checkbox]{width:auto}.add-item input{min-width:0}.add-item button{flex:none;width:auto}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.visibility{border:0;gap:.5rem;margin:0 0 1rem;padding:0;display:grid}.visibility label{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:8px;align-items:flex-start;gap:.6rem;padding:.6rem .75rem;font-weight:400;display:flex}.visibility label.chosen{border-color:var(--accent)}.visibility input{width:auto;accent-color:var(--accent);margin-top:.3rem}.visibility label span{flex-direction:column;display:flex}.share-link{gap:.5rem;margin-bottom:.5rem;display:flex}.share-link input{flex:1;min-width:0;font-size:.9rem}.share-link button{flex:none;width:auto}.account-links{align-items:center;gap:.75rem;display:flex}.verify-banner{max-width:960px;margin:0 auto 1rem}button.danger:not(.link){background:var(--danger);border-color:var(--danger)}.danger-zone{border-color:#f1c4bf}.turnstile{margin:.5rem 0 1rem}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:.5rem;margin:0 0 .75rem;padding:0;list-style:none;display:grid}.photo-grid li{position:relative}.photo-thumb{aspect-ratio:1;background:0 0;border:0;border-radius:8px;width:100%;padding:0;display:block;overflow:hidden}.photo-thumb img,.cover-thumb{object-fit:cover;width:100%;height:100%;display:block}.photo-remove{color:#fff;background:#0000008c;border:0;border-radius:50%;width:1.8rem;height:1.8rem;padding:0;position:absolute;top:4px;right:4px}.cover-thumb{border-radius:8px;height:160px;margin-bottom:.5rem}.lightbox{z-index:50;background:#000000d9;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.lightbox img{border-radius:6px;max-width:100%;max-height:100%}.lightbox-close{background:#ffffff26;border:0;width:auto;position:absolute;top:.75rem;right:.75rem}
