/* ══════════════════════════════════════════════════════════════
   X FEED — styles v6 — couleurs harmonisées avec l'app
══════════════════════════════════════════════════════════════ */

/* ── TOOLBAR ─────────────────────────────────────────────────── */
.xfeed-toolbar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.xfeed-search {
  flex: 1; min-width: 200px; padding: 0.5rem 0.875rem;
  background: var(--surface-off); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.875rem; font-family: inherit; transition: border-color 0.2s;
}
.xfeed-search:focus { outline: none; border-color: var(--primary); }
.xfeed-search::placeholder { color: var(--text-faint); }

.xfeed-tags-filter { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.xfeed-tag-btn {
  padding: 0.3rem 0.75rem; border-radius: 9999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 0.72rem; font-family: inherit;
  cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.xfeed-tag-btn:hover  { border-color: var(--primary); color: var(--primary); }
.xfeed-tag-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 8px color-mix(in oklch, var(--primary) 35%, transparent);
}

.xfeed-sort-select {
  padding: 0.45rem 0.75rem; background: var(--surface-off);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted); font-size: 0.8rem; font-family: inherit; cursor: pointer;
}
.xfeed-btn-add {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius); font-size: 0.875rem;
  font-weight: 600; font-family: inherit; cursor: pointer; transition: opacity 0.18s; white-space: nowrap;
  box-shadow: 0 2px 8px color-mix(in oklch, var(--primary) 35%, transparent);
}
.xfeed-btn-add:hover { opacity: 0.85; }

/* ── STATS ───────────────────────────────────────────────────── */
.xfeed-stats {
  display: flex; gap: 1.5rem; padding: 0.55rem 1.5rem;
  border-bottom: 1px solid var(--border); font-size: 0.72rem;
  color: var(--text-muted); flex-wrap: wrap; background: var(--surface);
}
.xfeed-stats span strong { color: var(--text); font-weight: 700; }

/* ── GRID ────────────────────────────────────────────────────── */
.xfeed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1rem; padding: 1.25rem 1.5rem;
}

/* ── CARD ────────────────────────────────────────────────────── */
.xfeed-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; display: flex; flex-direction: column;
  overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.xfeed-card:hover {
  border-color: color-mix(in oklch, var(--primary) 50%, transparent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.xfeed-card.unread  { border-left: 3px solid var(--primary); }
.xfeed-card.starred { border-left: 3px solid #f59e0b; }

/* ── AUTEUR ──────────────────────────────────────────────────── */
.xfeed-card-author {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.875rem 1rem 0.5rem;
}
.xfeed-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #22d3ee);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: #fff; flex-shrink: 0;
  text-transform: uppercase;
}
.xfeed-author-info     { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.xfeed-author-name     { font-size: 0.875rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xfeed-author-handle   { font-size: 0.72rem; color: var(--text-muted); }
.xfeed-card-date       { margin-left: auto; font-size: 0.7rem; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }

/* ── CONTENU ─────────────────────────────────────────────────── */
./* ── CONTENU ─────────────────────────────────────────────────── */
.xfeed-card-content {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  word-break: break-word;
  white-space: pre-wrap;
}
.xfeed-card-content.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.xfeed-expand-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 1rem 0.4rem;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.18s;
  width: fit-content;
}
.xfeed-expand-btn:hover { opacity: 0.7; }

/* ── RESUME IA ───────────────────────────────────────────────── */
.xfeed-summary {
  display: none;
  margin: 0 1rem 0.75rem;
  padding: 0.75rem 0.875rem;
  background: color-mix(in oklch, var(--primary) 8%, transparent);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.xfeed-summary.visible {
  display: block;
  animation: xfSummaryIn 0.2s ease;
}
@keyframes xfSummaryIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.xfeed-summary-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.xfeed-summary-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.xfeed-summary-key {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.xfeed-summary-key::before {
  content: '🔑';
  font-size: 0.65rem;
}

/* ── TAGS ────────────────────────────────────────────────────── */
.xfeed-card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 1rem 0.5rem; }
.xfeed-chip {
  padding: 0.2rem 0.65rem; border-radius: 9999px;
  background: color-mix(in oklch, var(--primary) 12%, transparent);
  color: var(--primary); font-size: 0.68rem; font-weight: 600;
  border: 1px solid color-mix(in oklch, var(--primary) 25%, transparent);
}

/* ── ACTIONS ─────────────────────────────────────────────────── */
.xfeed-card-actions {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.75rem; border-top: 1px solid var(--border);
  flex-wrap: wrap; background: var(--surface-off); margin-top: auto;
}
.xfeed-action-btn {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.28rem 0.6rem; border-radius: 6px; border: none;
  background: transparent; color: var(--text-muted);
  font-size: 0.72rem; font-family: inherit; cursor: pointer;
  transition: all 0.18s; text-decoration: none;
}
.xfeed-action-btn:hover           { background: var(--surface); color: var(--text); }
.xfeed-action-btn.star:hover      { color: #f59e0b; }
.xfeed-action-btn.star.active     { color: #f59e0b; }
.xfeed-action-btn.read.active     { color: #4ade80; }
.xfeed-action-btn.delete:hover    { color: #ef4444; }
.xfeed-action-btn.open-x:hover    { color: #22d3ee; }
.xfeed-action-btn.summarize {
  color: var(--primary);
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  background: color-mix(in oklch, var(--primary) 8%, transparent);
}
.xfeed-action-btn.summarize:hover {
  background: color-mix(in oklch, var(--primary) 15%, transparent);
}
.xfeed-action-btn.loading         { opacity: 0.5; pointer-events: none; }
.xfeed-action-sep                 { margin-left: auto; }

/* ── MODAL DETAIL ────────────────────────────────────────────── */
.xfeed-detail-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.xfeed-detail-overlay.open { display: flex; animation: xfFadeIn 0.2s ease; }
@keyframes xfFadeIn { from { opacity:0; } to { opacity:1; } }

.xfeed-detail-modal {
  width: 100%; max-width: 680px; max-height: 90vh;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; display: flex; flex-direction: column;
  overflow: hidden; animation: xfScaleIn 0.22s ease;
}
@keyframes xfScaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.xfeed-detail-modal-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  background: var(--surface); flex-shrink: 0;
}
.xfeed-detail-modal-body {
  flex: 1; overflow-y: auto; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.xfeed-detail-text {
  font-size: 0.9rem; line-height: 1.75; color: var(--text-muted);
  white-space: pre-wrap; word-break: break-word; margin: 0;
}
.xfeed-detail-photo { border-radius: 10px; overflow: hidden; }
.xfeed-detail-photo img { width: 100%; height: auto; display: block; border-radius: 10px; }

.xfeed-detail-summary-section {
  background: var(--surface-off); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.xfeed-detail-summary-title {
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.xfeed-summary-textarea {
  width: 100%; min-height: 90px; padding: 0.6rem 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.85rem;
  font-family: inherit; line-height: 1.6; resize: vertical; transition: border-color 0.2s;
}
.xfeed-summary-textarea:focus       { outline: none; border-color: var(--primary); }
.xfeed-summary-textarea::placeholder { color: var(--text-faint); }
.xfeed-btn-save-summary {
  padding: 0.35rem 0.875rem; border-radius: 6px; border: none;
  background: var(--primary); color: #fff; font-size: 0.78rem;
  font-weight: 600; font-family: inherit; cursor: pointer; transition: opacity 0.18s;
}
.xfeed-btn-save-summary:hover { opacity: 0.85; }
.xfeed-summary-saved-label { font-size: 0.75rem; color: #4ade80; font-weight: 600; }

/* ── MODAL FORMULAIRE ────────────────────────────────────────── */
.xfeed-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.xfeed-modal-overlay.open { display: flex; animation: xfFadeIn 0.18s ease; }
.xfeed-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; width: 100%; max-width: 540px;
  display: flex; flex-direction: column; gap: 1rem; max-height: 90vh; overflow-y: auto;
}
.xfeed-modal-header   { display: flex; align-items: center; justify-content: space-between; }
.xfeed-modal-title    { font-size: 1rem; font-weight: 700; color: var(--text); }
.xfeed-modal-close {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1rem; transition: background 0.18s;
}
.xfeed-modal-close:hover { background: var(--surface-off); color: var(--text); }

.xfeed-form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.xfeed-form-group label {
  font-size: 0.72rem; font-weight: 700; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.xfeed-form-input, .xfeed-form-textarea {
  padding: 0.55rem 0.875rem; background: var(--surface-off);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 0.875rem; font-family: inherit;
  transition: border-color 0.2s; width: 100%;
}
.xfeed-form-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.xfeed-form-input:focus, .xfeed-form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 15%, transparent);
}
.xfeed-form-input::placeholder, .xfeed-form-textarea::placeholder { color: var(--text-faint); }
.xfeed-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Tags input */
.xfeed-tags-input-wrap {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.45rem 0.6rem; background: var(--surface-off);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: text; min-height: 40px; align-items: center; transition: border-color 0.2s;
}
.xfeed-tags-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 15%, transparent);
}
.xfeed-tag-badge {
  display: flex; align-items: center; gap: 0.2rem; padding: 0.18rem 0.5rem;
  background: color-mix(in oklch, var(--primary) 15%, transparent);
  border-radius: 9999px; font-size: 0.7rem; color: var(--primary);
  border: 1px solid color-mix(in oklch, var(--primary) 25%, transparent);
}
.xfeed-tag-badge button {
  background: none; border: none; color: inherit; cursor: pointer;
  font-size: 0.85rem; line-height: 1; padding: 0; opacity: 0.6; font-family: inherit;
}
.xfeed-tag-badge button:hover { opacity: 1; }
.xfeed-tags-real-input {
  flex: 1; min-width: 80px; background: transparent; border: none;
  color: var(--text); font-size: 0.8rem; font-family: inherit; outline: none;
}

.xfeed-modal-footer { display: flex; justify-content: flex-end; gap: 0.6rem; padding-top: 0.25rem; }
.xfeed-btn-cancel {
  padding: 0.5rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 0.875rem; font-family: inherit; cursor: pointer; transition: all 0.18s;
}
.xfeed-btn-cancel:hover { background: var(--surface-off); color: var(--text); }
.xfeed-btn-save {
  padding: 0.5rem 1.25rem; border-radius: var(--radius); border: none;
  background: var(--primary); color: #fff; font-size: 0.875rem;
  font-weight: 600; font-family: inherit; cursor: pointer; transition: opacity 0.18s;
  box-shadow: 0 2px 8px color-mix(in oklch, var(--primary) 35%, transparent);
}
.xfeed-btn-save:hover { opacity: 0.85; }

/* ── EMPTY ───────────────────────────────────────────────────── */
.xfeed-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 4rem 2rem; text-align: center;
  color: var(--text-muted); gap: 0.75rem; grid-column: 1 / -1;
}
.xfeed-empty-icon { font-size: 2.5rem; opacity: 0.3; }
.xfeed-empty h3 { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin: 0; }
.xfeed-empty p  { font-size: 0.85rem; max-width: 28ch; line-height: 1.55; }

/* ── VIDEO ───────────────────────────────────────────────────── */
.xfeed-detail-video         { border-radius: 10px; overflow: hidden; background: #000; }
.xfeed-detail-video video   { width: 100%; max-height: 400px; display: block; border-radius: 10px; }
.xfeed-video-preview        { background: #111; }
.xfeed-video-preview video  { width: 100%; height: 100%; object-fit: cover; }
.xfeed-card-thumb-video {
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--primary) 12%, transparent);
  color: var(--primary); font-size: 1.4rem;
}
.xfeed-card-media-icons     { display: flex; gap: 0.4rem; padding: 0 1rem 0.4rem; flex-wrap: wrap; }
.xfeed-media-badge {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.18rem 0.55rem; border-radius: 9999px;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary); font-size: 0.68rem; font-weight: 600;
}
.xfeed-media-badge.video {
  background: rgba(239,68,68,0.1); color: #ef4444;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .xfeed-toolbar  { flex-direction: column; align-items: stretch; }
  .xfeed-btn-add  { justify-content: center; }
  .xfeed-form-row { grid-template-columns: 1fr; }
  .xfeed-grid     { padding: 0.75rem; gap: 0.75rem; }
  .xfeed-detail-modal { max-height: 95vh; border-radius: 12px; }
}
/* ══════════════════════════════════════════════════════════════
   X FEED — Résumé, Traduction, Médias
══════════════════════════════════════════════════════════════ */

/* ── RÉSUMÉ (visible en entier) ─────────────────────────────── */
.xfeed-summary {
  display: none;
  margin: 0 1rem 0.75rem;
  padding: 0.75rem 0.875rem;
  background: color-mix(in oklch, var(--primary) 8%, transparent);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--text-muted);
  white-space: pre-wrap;
}
.xfeed-summary.visible    { display: block; animation: xfFadeIn 0.2s ease; }
.xfeed-summary-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.65rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 0.5rem;
}
.xfeed-summary-key {
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
  font-size: 0.72rem; color: var(--primary); font-weight: 700;
}
.xfeed-summary-date {
  font-size: 0.65rem; color: var(--text-faint);
  text-align: right; margin-top: 6px;
}

/* ── TRADUCTION (2 lignes + flèche) ─────────────────────────── */
.xfeed-translation-box {
  margin: 0 1rem 0.75rem;
  padding: 0.75rem 0.875rem;
  background: color-mix(in oklch, #22d3ee 8%, transparent);
  border-left: 3px solid #22d3ee;
  border-radius: 0 8px 8px 0;
  font-size: 0.83rem;
}
.xfeed-translation-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.65rem; font-weight: 700;
  color: #22d3ee; text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 0.5rem;
}
.xfeed-translation-preview {
  font-size: 0.83rem; line-height: 1.6;
  color: var(--text-muted);
  /* ✅ Limite à 2 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.xfeed-translation-expand {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; padding: 0;
  background: none; border: none;
  color: #22d3ee; font-size: 0.75rem;
  font-family: inherit; cursor: pointer;
  transition: opacity 0.18s;
}
.xfeed-translation-expand:hover { opacity: 0.7; }

/* ── OVERLAY TRADUCTION COMPLÈTE ────────────────────────────── */
.xfeed-transl-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.xfeed-transl-overlay.open {
  display: flex;
  animation: xfFadeIn 0.2s ease;
}
.xfeed-transl-modal {
  width: 100%; max-width: 720px; max-height: 88vh;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; display: flex; flex-direction: column;
  overflow: hidden; animation: xfScaleIn 0.22s ease;
}
.xfeed-transl-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: color-mix(in oklch, #22d3ee 6%, transparent);
}
.xfeed-transl-modal-body {
  flex: 1; overflow-y: auto; padding: 1.5rem;
}
.xfeed-transl-meta {
  font-size: 0.72rem; color: var(--text-faint);
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.xfeed-transl-text {
  font-size: 0.9rem; line-height: 1.8;
  color: var(--text-muted); white-space: pre-wrap;
}
.xfeed-transl-text p { margin: 0; }
.xfeed-transl-media-block {
  margin: 1rem 0; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--border);
}
.xfeed-transl-media-caption {
  padding: 6px 10px; font-size: 0.72rem;
  color: var(--text-faint); background: var(--surface-off);
}

/* ── MÉDIAS — STRIP SUR LA CARD ─────────────────────────────── */
.xfeed-media-strip {
  display: flex; gap: 0.5rem; padding: 0 1rem 0.5rem;
  flex-wrap: wrap;
}
.xfeed-media-thumb {
  position: relative; width: 72px; height: 52px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); cursor: zoom-in;
  flex-shrink: 0; transition: border-color 0.18s;
}
.xfeed-media-thumb:hover   { border-color: var(--primary); }
.xfeed-media-thumb img     { width: 100%; height: 100%; object-fit: cover; display: block; }
.xfeed-media-thumb-video   { cursor: pointer; }
.xfeed-media-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 0.6rem; text-align: center; padding: 2px 0;
}
.xfeed-media-play-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* ── MÉDIAS — BOUTON ACTIONS ────────────────────────────────── */
.xfeed-action-btn.media-btn {
  color: var(--text-muted);
  border: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
}
.xfeed-action-btn.media-btn:hover {
  color: var(--primary);
  background: color-mix(in oklch, var(--primary) 8%, transparent);
}
.xfeed-action-btn.translate {
  color: #22d3ee;
  border: 1px solid rgba(34,211,238,0.25);
  background: rgba(34,211,238,0.06);
}
.xfeed-action-btn.translate:hover { background: rgba(34,211,238,0.12); }
.xfeed-action-sep-left { margin-right: auto; }

/* ── MÉDIAS — ZONE UPLOAD ───────────────────────────────────── */
.xfeed-media-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all 0.18s; margin-bottom: 0.75rem;
  background: var(--surface-off);
}
.xfeed-media-upload-zone:hover,
.xfeed-media-upload-zone.dragover {
  border-color: var(--primary);
  background: color-mix(in oklch, var(--primary) 6%, transparent);
}
.xfeed-media-upload-zone-sm {
  padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-direction: row;
}

/* ── MÉDIAS — GRILLE ÉDITION ────────────────────────────────── */
.xfeed-media-edit-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.5rem; min-height: 40px;
}
.xfeed-media-edit-item {
  position: relative; width: 80px; height: 80px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); flex-shrink: 0;
}
.xfeed-media-edit-item img   { width: 100%; height: 100%; object-fit: cover; display: block; }
.xfeed-media-edit-item-video { background: #111; }
.xfeed-media-edit-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.6rem; text-align: center; padding: 2px 0;
}
.xfeed-media-edit-del {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(239,68,68,0.85); color: #fff;
  border: none; font-size: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}
.xfeed-media-edit-del:hover { background: #ef4444; }

/* ── BALISES ────────────────────────────────────────────────── */
.xfeed-balises-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.xfeed-balise-chip {
  padding: 0.25rem 0.7rem; border-radius: 99px;
  background: color-mix(in oklch, var(--primary) 15%, transparent);
  color: var(--primary); font-size: 0.72rem; font-weight: 700;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  cursor: pointer; transition: all 0.18s; font-family: 'JetBrains Mono', monospace;
}
.xfeed-balise-chip:hover      { background: color-mix(in oklch, var(--primary) 25%, transparent); }
.xfeed-balise-chip-video {
  background: rgba(239,68,68,0.1); color: #ef4444;
  border-color: rgba(239,68,68,0.25);
}
.xfeed-balise-chip-video:hover { background: rgba(239,68,68,0.2); }

/* ── SECTION DIVIDER DANS MODAL ─────────────────────────────── */
.xfeed-section-divider {
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-faint); text-transform: uppercase;
  letter-spacing: 0.07em; padding: 0.5rem 0 0.25rem;
  border-top: 1px solid var(--border); margin-top: 0.5rem;
}

/* ── BLOCS MODAL RÉSUMÉ / TRADUCTION ────────────────────────── */
.xfeed-modal-block {
  border-radius: var(--radius); padding: 0.875rem;
  margin-bottom: 0.75rem;
}
.xfeed-modal-block-summary {
  background: color-mix(in oklch, var(--primary) 6%, transparent);
  border: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
}
.xfeed-modal-block-transl {
  background: rgba(34,211,238,0.05);
  border: 1px solid rgba(34,211,238,0.2);
}
.xfeed-modal-block-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 0.6rem; color: var(--text-faint);
}
.xfeed-modal-block-summary .xfeed-modal-block-label { color: var(--primary); }
.xfeed-modal-block-transl  .xfeed-modal-block-label { color: #22d3ee; }

/* ── BOUTONS GROQ ───────────────────────────────────────────── */
.xfeed-groq-btn-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.6rem; flex-wrap: wrap;
}
.xfeed-groq-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 0.35rem 0.875rem; border-radius: 99px;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary); font-size: 0.75rem;
  font-weight: 600; font-family: inherit; cursor: pointer;
  transition: all 0.18s;
}
.xfeed-groq-btn:hover:not(:disabled) {
  background: color-mix(in oklch, var(--primary) 20%, transparent);
}
.xfeed-groq-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.xfeed-groq-btn-both {
  background: linear-gradient(135deg, color-mix(in oklch, var(--primary) 15%, transparent), rgba(34,211,238,0.1));
  border-color: color-mix(in oklch, var(--primary) 25%, transparent);
  color: var(--text);
}
.xfeed-groq-status { font-size: 0.72rem; font-weight: 600; }