/* Scanner IA follows the existing À la carte cards and recipe sheet. */
.private-ai-sheet{font-family:Georgia,'Times New Roman',serif}.private-ai-sheet h1,.private-ai-sheet h2,.private-ai-sheet .brand{font-family:Georgia,'Times New Roman',serif;font-style:italic}.private-ai-scanner label.btn:has(+input:focus-visible){outline:2px solid #a54e2b;outline-offset:3px}
.private-ai-scanner{max-width:900px;margin-inline:auto}.private-ai-scanner label:not(.btn){display:block;margin:18px 0 7px;font-weight:600}.private-ai-scanner input:not([type=file]),.private-ai-scanner textarea,.private-ai-fiche-header select{box-sizing:border-box;width:100%;padding:12px;border:1px solid #c3d2d7;border-radius:14px;background:#fffdf9;color:#203442;font:inherit}.private-ai-scanner textarea{resize:vertical;min-height:130px}.private-ai-scanner input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.private-ai-scanner input[type=file]:focus-visible+label{outline:2px solid #a54e2b}.private-ai-upload{padding:20px;background:#e5edf0;border:1px solid #c3d2d7;border-radius:24px;margin:20px 0}.private-ai-buttons{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.private-ai-scanner .btn{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:44px}.private-ai-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.private-ai-photo-grid figure{margin:0;min-width:0}.private-ai-photo-grid img{width:100%;height:200px;object-fit:contain;background:#fff;border-radius:16px}.private-ai-photo-grid figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.private-ai-dish-preview{width:180px;height:140px;max-width:100%;margin:12px 0}.private-ai-dish-preview img{width:100%;height:100%;object-fit:contain;border-radius:18px;background:#fffdf9}.private-ai-sheet{max-width:1100px;margin:auto}.private-ai-fiche-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0}.private-ai-fiche-header h2{font-size:20px;margin:0}.private-ai-fiche-header label{max-width:60%}.private-ai-assumptions{margin:22px 0;padding:18px;background:var(--soft);border:1px solid var(--edge);border-radius:16px;color:var(--ink)}.private-ai-assumptions summary{cursor:pointer}.private-ai-sheet .nutrition-table-classic thead{background:#e5edf0}.private-ai-sheet .nutrition-table-classic td{font-weight:700}.private-ai-sheet .recipe-variant-note ul{padding-left:22px;margin-bottom:0}.private-ai-sheet .detail-media img[src$="app-logo.svg"]{object-fit:contain;background:#fffdf9;padding:22px;box-sizing:border-box}.private-ai-sheet .nutrition-card{overflow-x:auto}.private-ai-sheet .detail{margin-top:16px}@media(max-width:600px){.private-ai-upload{padding:16px}.private-ai-buttons .btn{flex:1 1 180px}.private-ai-photo-grid img{height:160px}.private-ai-fiche-header{align-items:flex-start}.private-ai-sheet .detail-media{min-width:0}.private-ai-sheet .nutrition-table-classic{font-size:16px}.private-ai-sheet .nutrition-table-classic th,.private-ai-sheet .nutrition-table-classic td{padding:12px 8px}}
.personal-ai-add{display:block;width:100%;text-align:left;padding:20px 24px;margin:28px 0;border-radius:24px;font-family:Georgia,'Times New Roman',serif;font-size:clamp(20px,4vw,26px);font-weight:700;background:var(--panel,#fffdf9);color:var(--text,#203442)}

html[data-page="detail"] .detail-media>img[src$="app-logo.svg"]{object-fit:contain;background:var(--surface)}

.ai-method-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:26px 0}.ai-method-card{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:26px;text-align:left;border:1px solid var(--edge);border-radius:24px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;line-height:1.5}.ai-method-card:hover,.ai-method-card:focus-visible{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:3px}.ai-method-card strong{font:italic 700 24px Georgia,serif}.ai-method-symbol{font-size:32px;color:var(--accent)}.ai-method-action{margin-top:auto;padding:12px 18px;border-radius:14px;background:var(--accent);color:var(--accent-text);font-weight:700}.ai-method-heading h1{margin-top:22px}@media(max-width:650px){.ai-method-choices{grid-template-columns:1fr}.ai-method-card{padding:22px}.ai-method-card strong{font-size:22px}}

.ai-method-title{display:flex;align-items:center;gap:12px;width:100%}.ai-method-title .ai-method-symbol{flex:0 0 auto;line-height:1}.ai-method-title strong{min-width:0}
.private-ai-report{margin:24px 0;padding:20px;border:1px solid #c3d2d7;border-radius:24px;background:#e5edf0}.private-ai-report form{margin-top:18px}.private-ai-report label{display:block;margin:14px 0 6px}.private-ai-report textarea,.private-ai-report select{width:100%;padding:12px;border:1px solid #c3d2d7;border-radius:14px;background:#fffdf9;color:#203442;font:inherit}.private-ai-report textarea{resize:vertical}.private-ai-report h2{font-size:1.3rem}.private-ai-report .btn{white-space:normal}
.recipe-sheet-edit input,.recipe-sheet-edit textarea,.recipe-sheet-edit select{font:inherit;color:inherit;background:transparent;border:1px solid var(--edge,#cbd7db);border-radius:6px;width:100%;min-width:0;padding:5px 7px;box-sizing:border-box}
.recipe-sheet-edit textarea{resize:vertical;line-height:1.5;display:block}.recipe-sheet-edit h1 input{font:inherit;font-weight:inherit}.recipe-sheet-edit .detail-stats label{display:grid;gap:4px;min-width:0;text-align:center}.recipe-sheet-edit .detail-stats input{text-align:center}.recipe-sheet-edit .recipe-edit-photo{grid-column:1/-1;text-align:center}.recipe-sheet-edit .nutrition-card input{max-width:120px;text-align:right}.recipe-sheet-edit .detail-facts-inline label{max-width:140px}.recipe-sheet-edit .detail-facts-inline small{display:block}
.recipe-sheet-edit fieldset{border:0;margin:0;padding:0;min-width:0}.recipe-sheet-edit .detail{margin-bottom:20px}.recipe-sheet-edit .detail-facts-inline{flex-wrap:wrap}.recipe-sheet-edit .nutrition-card{overflow-x:auto}.recipe-sheet-edit .nutrition-card input{width:100px;max-width:100%}

.personal-share-actions [data-shared-open]{white-space:nowrap;min-width:0;font-size:clamp(.78rem,1.1vw,.95rem)}
.personal-share-grid{overflow-anchor:none}
.feature-loading,.recipe-analysis-progress{max-width:760px;margin:16px auto}.recipe-analysis-progress .btn{margin:8px 8px 0 0}.analysis-updating .nutrition-card,.analysis-updating .insight-health,.analysis-updating .detail-facts-inline,.analysis-updating .detail-stats{display:none}.recipe-list-next{grid-column:1/-1;text-align:center;padding:18px}.catalog-grid img{content-visibility:auto}
.analysis-updating .detail-summary-row,.analysis-updating .recipe-insights,.analysis-updating .panel{display:none}.analysis-badge{margin:6px 0;color:#71603f;font-size:.78rem}

.recipe-writing{margin:16px 0;display:grid;grid-template-columns:minmax(0,1fr) 220px;column-gap:20px}.recipe-writing>label,.recipe-writing>.meta{grid-column:1/-1}.recipe-writing textarea{grid-column:1;grid-row:1}.recipe-writing-guide{grid-column:2;grid-row:1;align-self:start;padding:18px;border-radius:16px;background:var(--soft);font-size:.9rem;line-height:1.6}.recipe-writing-guide ul{padding-left:18px;margin-bottom:0}@media(max-width:640px){.recipe-writing{display:block}.recipe-writing-guide{margin:12px 0}}

.private-ai-scanner .recipe-writing-actions{display:flex;flex-wrap:nowrap;gap:10px;align-items:stretch;margin-top:18px}.private-ai-scanner .recipe-writing-actions .btn{width:auto!important;min-width:0;flex:0 0 auto;padding:10px 12px}.private-ai-scanner .recipe-writing-actions .primary{flex:1 1 auto;margin-left:auto;white-space:normal}

.recipe-category-picker,.recipe-sheet-edit fieldset.recipe-category-picker{min-width:0;border:1px solid var(--line,#c3d1d8);border-radius:18px;padding:16px;margin:22px 0;background:var(--surface,#fffdf9);color:var(--ink,#203442)}.recipe-category-picker legend{font-weight:700;padding:0 6px}.recipe-category-picker legend span{font-size:.8em;font-weight:400}.recipe-category-picker>.meta{margin:0 0 14px}.recipe-category-choices{display:flex;flex-wrap:wrap;gap:9px}.private-ai-scanner .recipe-category-choices label,.recipe-category-choices label{position:relative;display:block!important;margin:0!important;font-weight:400;cursor:pointer}.recipe-category-choices input[type=checkbox]{position:absolute;width:1px!important;height:1px;margin:0;opacity:0}.recipe-category-choices span{display:flex;gap:7px;align-items:center;min-height:44px;padding:9px 14px;border:1px solid var(--line,#c3d1d8);border-radius:999px;background:var(--soft,#e5edf0);box-sizing:border-box}.recipe-category-choices span:before{content:"+";font-family:system-ui;font-weight:700}.recipe-category-choices input:checked+span{background:var(--accent,#a54e2b);color:#fff;border-color:var(--accent,#a54e2b)}.recipe-category-choices input:checked+span:before{content:"✓"}.recipe-category-choices input:focus-visible+span{outline:3px solid var(--accent,#a54e2b);outline-offset:3px}.recipe-category-picker.has-error{border-color:#a83232}.recipe-category-error{color:#a83232;margin-bottom:0}.recipe-category-error[hidden]{display:none}.recipe-category-picker:disabled label{cursor:wait;opacity:.65}
