/* 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}
.loading-ad-slot{min-height:140px;margin:20px 0;padding:18px;border:1px dashed #bcab98;border-radius:14px;background:#f5f0e8;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:12px;color:#6b5d50}.loading-ad-slot small{font-size:.68rem;letter-spacing:.12em}.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}html[data-theme=dark] .loading-ad-slot{background:#283c3c;color:#e7d9c6;border-color:#7c8c82}
.analysis-updating .detail-summary-row,.analysis-updating .recipe-insights,.analysis-updating .panel{display:none}.analysis-badge{margin:6px 0;color:#71603f;font-size:.78rem}
