/* Mon Suivi Nutrition — styles du module photo IA */
/* ---- Module photo IA ---- */
.meal-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-add.photo { background: #eef0fb; color: #5b64c7; display: flex; align-items: center; justify-content: center; }

.btn-add.photo:hover { background: #5b64c7; color: #fff; }

.btn-add.photo svg { width: 20px; height: 20px; }

.photo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 36px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: #fbfcfb;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin: 10px 0;
  transition: border-color 0.15s, color 0.15s;
}

.photo-drop:hover { border-color: var(--c-accent); color: var(--c-accent-dark); }

.photo-drop svg { width: 40px; height: 40px; }

.photo-preview { margin: 8px 0 4px; }

.photo-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-s);
  display: block;
}

.photo-preview.small img { max-height: 140px; }

.photo-preview.dim img { opacity: 0.55; }

.help-text.center { text-align: center; }

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 0 10px;
  font-weight: 700;
  color: var(--text-2);
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--ring-track);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ai-error {
  background: #fbe9ea;
  color: var(--c-over);
  border-radius: var(--radius-s);
  padding: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 10px 0;
}

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 4px;
}

.conf {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ring-track);
  color: var(--text-2);
  white-space: nowrap;
}

.conf.haute { background: var(--c-accent-soft); color: var(--c-accent-dark); }

.conf.basse { background: #fbe9ea; color: var(--c-over); }

.ai-list { border-top: 1px solid var(--border); margin-top: 8px; }

.ai-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.15s;
}

.ai-row.off { opacity: 0.4; }

.ai-check { width: 18px; height: 18px; accent-color: var(--c-accent); flex-shrink: 0; cursor: pointer; }

.ai-info { flex: 1; min-width: 0; }

.ai-qty { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-2); margin-top: 3px; }

.input.mini { width: 74px; padding: 5px 8px; margin: 0; font-size: 0.85rem; }

.ai-total {
  text-align: right;
  padding: 10px 0 2px;
  font-size: 0.92rem;
}

.ai-total b { color: var(--c-accent-dark); }

.key-status { font-size: 0.8rem; font-weight: 700; color: var(--c-over); margin: 6px 0 2px; }

.key-status.ok { color: var(--c-accent-dark); }
