:root{color-scheme:light;--green:#2e7d32;--green-dark:#235f28;--green-soft:#e8f5e9;--ink:#1f2a24;--muted:#68766e;--line:#e2e9e4;--paper:#f6f8f6;--purple:#5e35b1;--purple-soft:#f1ecfa;--amber:#fff5dc;--red:#a82f28}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5}
button,input,textarea{font:inherit}
.topbar{background:linear-gradient(120deg,var(--green),#43a047);color:white;min-height:78px;padding:14px max(18px,calc((100vw - 980px)/2));display:flex;align-items:center;gap:18px;justify-content:space-between}
.back{color:white;font-weight:700;text-decoration:none;white-space:nowrap}.back:hover{text-decoration:underline}
.brand{display:flex;align-items:center;gap:10px;margin-right:auto}.mark{width:38px;height:38px;border-radius:12px;background:#ffffff29;display:grid;place-items:center;font-size:20px;font-weight:800}.brand p,.brand h1{margin:0}.brand p{font-size:11px;text-transform:uppercase;letter-spacing:.12em;opacity:.82}.brand h1{font-size:17px;line-height:1.2}
.status-pill{border:1px solid #ffffff66;background:#ffffff19;border-radius:99px;padding:6px 10px;font-size:12px;font-weight:700;white-space:nowrap}.status-pill.ready{background:#e8f5e9;color:#23633d;border-color:#d8eddc}.status-pill.offline{background:#fff4dc;color:#76530b;border-color:#f4dda5}
.page{max-width:820px;margin:0 auto;padding:36px 18px 64px}.intro{max-width:680px;margin-bottom:20px}.eyebrow{margin:0 0 6px;color:var(--green);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.intro h2{font-size:clamp(25px,4vw,36px);line-height:1.12;margin:0 0 10px;letter-spacing:-.025em}.intro>p:last-child{margin:0;color:var(--muted);font-size:15px;max-width:600px}
.status-card,.ask-card,.result-card,.setup{background:white;border:1px solid var(--line);border-radius:17px;box-shadow:0 3px 14px #1d39240a}.status-card{display:flex;gap:13px;align-items:flex-start;padding:15px 17px;margin:0 0 15px}.status-icon{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;background:var(--green-soft);color:var(--green);border-radius:11px;font-size:23px;font-weight:700}.status-card strong{font-size:14px}.status-card p{margin:2px 0 0;color:var(--muted);font-size:13px}.status-card p.status-models{margin-top:5px;font-size:12px}
.ask-card{padding:20px}.ask-card>label,.setup label{display:block;font-size:13px;font-weight:800;margin:0 0 6px}.ask-card textarea,.setup input{width:100%;padding:12px 13px;border:1px solid #cfdad1;border-radius:11px;background:#fff;color:var(--ink);outline:none}.ask-card textarea{min-height:96px;resize:vertical}.ask-card textarea:focus,.setup input:focus{border-color:var(--green);box-shadow:0 0 0 3px #2e7d3218}.examples{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.examples button{border:1px solid var(--line);border-radius:99px;padding:6px 10px;background:#fff;color:#3d5747;font-size:12px;cursor:pointer}.examples button:hover{background:var(--green-soft);border-color:#c5dfc8}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.primary,.secondary{border:0;border-radius:10px;padding:10px 15px;font-size:13px;font-weight:800;cursor:pointer}.primary{background:var(--green);color:white}.primary:hover{background:var(--green-dark)}.secondary{background:var(--purple-soft);color:var(--purple)}button:disabled{opacity:.5;cursor:not-allowed}.fineprint{font-size:11.5px;color:var(--muted);margin:11px 0 0}.result{margin-top:15px}.result-card{padding:18px;margin-bottom:12px}.answer-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.answer-head h3{font-size:15px;margin:0}.mode-tag{border-radius:99px;padding:4px 8px;background:var(--green-soft);color:var(--green);font-size:10px;font-weight:800;white-space:nowrap}.mode-tag.llm{background:var(--purple-soft);color:var(--purple)}.answer{white-space:normal;margin:0;font-size:14px;line-height:1.65}.model-note{font-size:11px;color:var(--muted);margin:9px 0 0}.sources-title{font-size:12px;font-weight:800;margin:16px 0 7px}.sources{display:grid;gap:8px}.source{border:1px solid var(--line);border-radius:11px;padding:11px 12px;background:#fbfcfb}.origin-badge{display:inline-flex;align-items:center;border-radius:99px;padding:2px 7px;margin-left:8px;background:#fff4dc;color:#76530b;font-size:10px;font-weight:700}.source a{color:var(--green-dark);font-weight:800;text-decoration:none}.source a:hover{text-decoration:underline}.source-title{font-size:13px}.source-meta{color:var(--muted);font-size:11px;margin-left:5px}.source p{font-size:12.5px;color:#4d5b52;margin:5px 0 0;white-space:pre-wrap}.empty-sources{font-size:12px;color:var(--muted)}.warnings{margin:0 0 12px;padding:11px 14px;border:1px solid #efdfa8;border-radius:11px;background:var(--amber);color:#6e5310;font-size:13px}.warnings ul{margin:5px 0 0;padding-left:20px}.error{border:1px solid #f2cfcb;background:#fff0ee;color:var(--red);border-radius:12px;padding:12px 14px;font-size:13px}.loading{color:var(--muted);padding:12px;font-size:13px}.setup{margin-top:19px;padding:0 16px}.setup summary{font-weight:800;font-size:13px;padding:15px 0;cursor:pointer}.setup-body{border-top:1px solid var(--line);padding:13px 0 16px}.setup-body>p{margin:0 0 13px;color:var(--muted);font-size:12.5px}.setup form{display:grid;grid-template-columns:1fr;gap:7px}.setup form button{justify-self:start;margin-top:4px}.setup code{font-size:11px;color:var(--purple);background:var(--purple-soft);padding:2px 5px;border-radius:4px}.service-help{margin:18px 0 0;padding:12px 14px;border-radius:12px;background:var(--amber);color:#6e5310;font-size:13px}
@media(max-width:600px){.topbar{padding:13px 14px;gap:10px;flex-wrap:wrap}.brand{margin-right:0;flex:1}.brand h1{font-size:15px}.status-pill{order:3;margin-left:48px}.page{padding:26px 13px 44px}.ask-card{padding:16px}.actions>*{flex:1}.answer-head{flex-direction:column;gap:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Keep long recipe excerpts inside the mobile viewport. */
.results-intro{margin:12px 0 18px;color:#46544a}.answer-citation{color:var(--green-dark);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.result,.result-card,.sources,.source{min-width:0;max-width:100%}.sources{grid-template-columns:minmax(0,1fr)}.source-title,.source p,.answer,.warnings li{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.recipe-results{min-width:0}.results-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:4px 0 14px}.results-heading h2{margin:0;font-size:20px;line-height:1.2}.results-heading p{margin:4px 0 0;color:var(--muted);font-size:12px}.recipe-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;min-width:0}.recipe-card{min-width:0;padding:16px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 3px 14px #1d39240a}.recipe-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}.recipe-heading h3{margin:0;font-size:17px;line-height:1.25;overflow-wrap:anywhere}.recipe-categories{margin:0 0 5px;color:var(--green);font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;overflow-wrap:anywhere}.recipe-description{margin:12px 0 0;color:#46544a;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.recipe-description>span{display:block;margin-bottom:3px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.recipe-meta{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0;color:var(--muted);font-size:11px}.recipe-meta span{padding:4px 8px;background:#f2f6f2;border-radius:7px}.recipe-meta b{color:var(--ink)}.variant-picker{display:flex;align-items:center;gap:8px;margin:10px 0 4px;font-size:12px;font-weight:700}.variant-picker select{min-width:0;max-width:100%;padding:8px 10px;border:1px solid #cfdad1;border-radius:9px;background:white;color:var(--ink)}.ingredients-section{margin-top:13px;min-width:0}.ingredients-section h4{margin:0 0 5px;font-size:12px}.ingredient-preview,.ingredient-list{margin:0;padding:0;list-style:none;min-width:0}.ingredient-preview li,.ingredient-list li{display:grid;grid-template-columns:minmax(48px,auto) minmax(0,1fr);gap:8px;padding:5px 0;border-bottom:1px solid #eef2ee;font-size:12px;overflow-wrap:anywhere}.ingredient-preview li.ingredient-group,.ingredient-list li.ingredient-group{display:block;padding:8px 0 3px;border-bottom:0;color:var(--green);font-size:10px;font-weight:800;text-transform:uppercase}.ingredient-quantity{color:#526458;font-variant-numeric:tabular-nums;font-weight:700}.ingredients-details{margin-top:8px}.ingredients-details summary,.technical-sources summary{color:var(--green-dark);font-size:12px;font-weight:800;cursor:pointer}.ingredients-details[open] summary,.technical-sources[open] summary{margin-bottom:8px}.ingredient-list{max-height:330px;overflow:auto;padding-right:4px}.ingredients-empty{color:var(--muted);font-size:12px}.recipe-actions{display:flex;justify-content:flex-start;margin-top:14px}.open-recipe{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:9px;background:var(--green);color:#fff;text-decoration:none;font-size:12px;font-weight:800}.open-recipe:hover{background:var(--green-dark)}.open-recipe.unavailable{background:#eef2ef;color:var(--muted)}.technical-sources{margin-top:16px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#fff}.technical-sources .sources{margin-top:9px}.validation-note{margin:10px 2px;color:var(--muted);font-size:11px}.origin-badge{flex:0 0 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.results-heading{flex-direction:column;gap:7px}.recipe-grid{grid-template-columns:minmax(0,1fr)}.recipe-card{padding:14px}.recipe-heading{flex-wrap:wrap}.variant-picker{align-items:flex-start;flex-direction:column;gap:4px}.variant-picker select{width:100%}.recipe-description{font-size:12.5px}.source-title,.source p,.answer,.recipe-description,.ingredient-preview li,.ingredient-list li{overflow-wrap:anywhere;word-break:break-word}}
.page{max-width:1000px}
.recipe-categories{font-size:12px}
.ingredient-preview li,.ingredient-list li{grid-template-columns:minmax(64px,auto) minmax(0,1fr);font-size:14px}
.ingredient-quantity{font-size:13px}
.recipe-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:48%}.recipe-badges .origin-badge{margin:0}.preparation-badge{display:inline-flex;align-items:center;max-width:100%;padding:3px 8px;border-radius:99px;background:#e5f2e7;color:#23633d;font-size:10px;font-weight:800;white-space:normal;overflow-wrap:anywhere}
