/* approval.css — Detail overlay, Tinder overlay, Approval card desktop/mobile */

/* ── Detail Overlay — Strategic Command ────────────────────────── */
#detail-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(8,9,13,0.95); backdrop-filter: blur(12px);
  flex-direction: column; color: var(--text); font-family: var(--font-body);
}
#detail-overlay.open { display: flex; }
.tele-panel {
  background: linear-gradient(180deg, rgba(29,31,41,0.4) 0%, rgba(17,19,28,0.8) 100%);
  border: 1px solid rgba(143,145,148,0.1); border-radius: 4px;
  position: relative; padding: 20px;
}
.tele-panel::before {
  content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px;
  border-top: 2px solid var(--primary); border-left: 2px solid var(--primary);
}
.tele-panel-title {
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase;
  margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px;
}
@keyframes identity-pulse {
  0%,100% { box-shadow: 0 0 4px 1px rgba(0,228,117,0.35); opacity:1; }
  50%      { box-shadow: 0 0 10px 3px rgba(0,228,117,0.7); opacity:0.7; }
}
.identity-dot {
  display:inline-block; width:7px; height:7px; border-radius:50%;
  background:var(--primary); margin-right:8px; flex-shrink:0;
  animation: identity-pulse 2.4s ease-in-out infinite;
}
.identity-row {
  display:flex; align-items:flex-start; gap:10px;
  font-size:11px; font-family:monospace; color:var(--muted); line-height:1.7;
}
.identity-row + .identity-row { margin-top:6px; }
.identity-label {
  color:rgba(143,145,148,0.6); min-width:72px; flex-shrink:0; font-size:10px; padding-top:1px;
}
.identity-value { color:var(--text); word-break:break-word; }
.identity-badge {
  display:inline-block; padding:2px 8px; border-radius:3px;
  font-size:10px; font-weight:700; letter-spacing:0.08em;
  border:1px solid; margin-bottom:10px;
}
.identity-badge.apod    { border-color:#f5a623; color:#f5a623; }
.identity-badge.astropix{ border-color:#81cfff; color:#81cfff; }
.identity-badge.unknown { border-color:var(--muted); color:var(--muted); }
.detail-header {
  padding: 16px 32px; display: flex; justify-content: space-between;
  align-items: center; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.detail-body {
  flex: 1; display: flex; padding: 32px; gap: 32px; overflow: hidden; min-height: 0;
}
.detail-col-left { flex: 4; display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.detail-col-right {
  flex: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  overflow-y: auto; align-content: start;
}
.detail-col-right::-webkit-scrollbar { width: 4px; }
.detail-col-right::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.detail-footer {
  height: 80px; padding: 0 32px; background: var(--surface);
  border-top: 1px solid rgba(0,228,117,0.15);
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}

/* ── Tinder Mode Button (approval header) ─────────────────────── */
.tinder-launch-btn {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(0,228,117,0.08); border: 1px solid rgba(0,228,117,0.25);
  color: var(--primary); font-family: var(--font-head); font-size: 10px;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all var(--transition);
}
.tinder-launch-btn:hover { background: rgba(0,228,117,0.15); }

/* ── Tinder Overlay ────────────────────────────────────────────── */
#tinder-overlay {
  position: fixed; inset: 0; z-index: 1000; background: #11131c;
  display: none; flex-direction: column;
  touch-action: none; overscroll-behavior: none;
}
#tinder-overlay.active { display: flex; }
#tinder-ov-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
#tinder-ov-title {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--primary); letter-spacing: -0.02em;
}
#tinder-ov-counter { font-size: 11px; color: var(--muted); font-family: monospace; }
#tinder-ov-close {
  background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px;
}
#tinder-ov-img-wrap {
  flex: 1; position: relative; overflow: hidden; min-height: 0;
}
#tinder-ov-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: #000;
}
#tinder-ov-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; background: var(--surface);
  color: var(--muted); font-size: 48px;
}
.tinder-ov-gradient-top {
  position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, rgba(17,19,28,0.85) 0%, transparent 100%);
  pointer-events: none;
}
.tinder-ov-gradient-bot {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 16px 14px;
  background: linear-gradient(to top, rgba(17,19,28,0.95) 0%, rgba(17,19,28,0.7) 50%, transparent 100%);
}
#tinder-ov-label {
  display: inline-block; font-size: 11px; font-family: var(--font-head);
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 6px; padding: 3px 8px; margin-bottom: 6px;
  background: var(--surface); color: var(--primary);
}
#tinder-ov-object {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  letter-spacing: -0.02em; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
#tinder-ov-actions {
  display: flex; background: rgba(17,19,28,0.97);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.tinder-ov-btn {
  flex: 1; padding: 18px 10px; border: none; background: transparent;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 6px; transition: all 0.15s;
}
.tinder-ov-btn:active { transform: scale(0.93); }
.tov-icon {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: box-shadow 0.2s;
}
.tov-skip   .tov-icon { border: 2px solid rgba(215,59,0,0.4); color: #d73b00; }
.tov-regen  .tov-icon { border: 2px solid rgba(255,255,255,0.15); color: var(--muted); }
.tov-ok     .tov-icon {
  background: linear-gradient(135deg, #00e475 0%, #009248 100%);
  box-shadow: 0 0 18px rgba(0,228,117,0.35); color: #003918;
}
.tov-skip:active  .tov-icon { box-shadow: 0 0 28px rgba(215,59,0,0.4); }
.tov-ok:active    .tov-icon { box-shadow: 0 0 28px rgba(0,228,117,0.55); }
.tov-lbl {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; font-family: var(--font-head);
}
.tov-skip  .tov-lbl { color: rgba(215,59,0,0.8); }
.tov-regen .tov-lbl { color: var(--muted); }
.tov-ok    .tov-lbl { color: var(--primary); }
#tinder-ov-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 48px 24px; display: none;
}

/* ── APPROBATION — DESKTOP "Horizontal Control" (≥ 768px) ────────── */
.approval-card {
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .approval-card { flex-direction: row; min-height: 420px; }
}

/* Image zone */
.approval-card .ac-img-zone {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0c0e17;
}
@media (min-width: 768px) {
  .approval-card .ac-img-zone {
    width: 33.333%;
    min-width: 260px;
    aspect-ratio: auto;
  }
}
.approval-card .ac-img-zone img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter 0.5s;
  filter: grayscale(20%);
}
.approval-card:hover .ac-img-zone img { filter: grayscale(0); }
.ac-img-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(0,228,117,0.9); color: #003918;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ac-img-id {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(12,14,23,0.8); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-head); font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Content zone */
.ac-content {
  flex: 1; padding: 24px; display: flex; flex-direction: column;
  justify-content: space-between; min-width: 0;
}
.ac-title {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); margin-bottom: 12px;
  line-height: 1.2;
}
.ac-caption-block {
  background: #0c0e17; padding: 16px; border-radius: 8px;
  border-left: 3px solid rgba(0,228,117,0.4);
  font-size: 13px; line-height: 1.6; color: #c5c6ca;
  margin-bottom: 16px; max-height: 180px; overflow-y: auto;
}
.ac-caption-block::-webkit-scrollbar { width: 4px; }
.ac-caption-block::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.ac-hashtags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.ac-hashtags span {
  padding: 3px 10px; border-radius: 20px;
  background: var(--surface); border: 1px solid rgba(0,228,117,0.1);
  font-size: 11px; color: var(--primary); cursor: default;
  transition: background var(--transition);
}
.ac-hashtags span:hover { background: var(--primary-dim); }
.ac-meta-row {
  display: flex; gap: 20px; font-size: 10px; color: rgba(143,145,148,0.6);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
}
.ac-meta-row .material-symbols-outlined { font-size: 14px; margin-right: 4px; }

/* Action sidebar — desktop */
.ac-sidebar {
  display: none;
}
@media (min-width: 768px) {
  .ac-sidebar {
    display: flex; flex-direction: column; gap: 8px;
    width: 200px; padding: 20px;
    background: var(--surface-hi);
    border-left: 1px solid var(--border);
  }
}
.ac-sidebar .sidebar-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 4px;
}
.ac-sidebar-btn {
  width: 100%; padding: 10px 0; border: none; border-radius: 4px;
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: filter var(--transition), background var(--transition);
}
.ac-sidebar-btn:hover { filter: brightness(1.15); }
.ac-sidebar-btn.approve-btn {
  background: linear-gradient(135deg, #00e475 0%, #009248 100%);
  color: #003918;
}
.ac-sidebar-btn.regen-btn   { background: #32343e; color: var(--text); }
.ac-sidebar-btn.skip-btn    { background: #32343e; color: var(--text); }
.ac-sidebar-btn.delete-btn  {
  background: transparent; border: 1px solid rgba(215,59,0,0.2);
  color: #ffb4ab; margin-top: auto;
}
.ac-sidebar-btn.delete-btn:hover { background: rgba(215,59,0,0.1); }

/* Pagination desktop */
.ac-pagination {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 16px; margin-top: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(143,145,148,0.4);
}
.ac-pagination .ac-pag-cur { color: var(--text); }
.ac-pagination .ac-pag-btn {
  color: var(--text); cursor: pointer; background: none; border: none;
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: color var(--transition);
}
.ac-pagination .ac-pag-btn:hover { color: var(--primary); }
.ac-pag-divider { width: 40px; height: 1px; background: rgba(68,71,74,0.25); }

/* ── APPROBATION — MOBILE "Orbital Swipe" (< 768px) ──────────────── */
#approval-mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  flex-direction: column;
}

/* Mobile top bar */
.mob-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(17,19,28,0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.mob-topbar-title {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  color: var(--primary); letter-spacing: 0.04em;
}
.mob-topbar-counter {
  font-family: var(--font-head); font-size: 11px;
  color: var(--muted); letter-spacing: 0.1em;
}
.mob-close-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 4px;
}

/* Mobile card area */
.mob-card-area {
  flex: 1; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.mob-img-wrap {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
}
.mob-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.mob-img-wrap .mob-overlay-badges {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; pointer-events: none;
}
.mob-img-wrap .mob-badge-glass {
  padding: 4px 10px; border-radius: 8px;
  background: rgba(50,52,62,0.6); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 10px; font-weight: 600; color: var(--text);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.mob-img-wrap .mob-badge-glass.primary { color: var(--primary); }

/* Mobile caption drawer */
.mob-caption-drawer {
  background: var(--surface-low);
  border-top: 1px solid var(--border);
  padding: 16px; max-height: 40%; overflow-y: auto;
}
.mob-caption-drawer h4 {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.mob-caption-drawer p {
  font-size: 13px; color: #c5c6ca; line-height: 1.5; margin-bottom: 10px;
}
.mob-caption-drawer .mob-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.mob-caption-drawer .mob-tags span {
  padding: 2px 8px; border-radius: 20px;
  background: var(--surface); font-size: 11px; color: var(--primary);
  border: 1px solid rgba(0,228,117,0.1);
}

/* Mobile action bar */
.mob-action-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; padding: 16px 0 24px;
  background: rgba(17,19,28,0.8);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
}
.mob-action-circle {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; background: none; border: none; cursor: pointer;
  color: var(--muted); transition: transform 0.15s;
}
.mob-action-circle:active { transform: scale(0.9); }
.mob-action-circle .circle-inner {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); transition: border-color 0.2s, background 0.2s;
}
.mob-action-circle .circle-inner .material-symbols-outlined { font-size: 24px; }
.mob-action-circle .circle-lbl {
  font-family: var(--font-body); font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.mob-action-circle.reject .circle-inner { border-color: rgba(215,59,0,0.4); }
.mob-action-circle.reject:hover .circle-inner { border-color: #d73b00; background: rgba(215,59,0,0.1); }
.mob-action-circle.reject .circle-inner .material-symbols-outlined { color: #ffb5a0; }

.mob-action-circle.info-btn .circle-inner { border-color: var(--border); }
.mob-action-circle.info-btn:hover .circle-inner { border-color: #81cfff; }

.mob-action-circle.approve-action {
  color: var(--primary);
}
.mob-action-circle.approve-action .circle-inner {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #00e475 0%, #009248 100%);
  border: none;
  box-shadow: 0 0 20px rgba(0,228,117,0.35);
}
.mob-action-circle.approve-action .circle-inner .material-symbols-outlined {
  color: #003918; font-size: 28px;
  font-variation-settings: 'FILL' 1;
}

/* Mobile empty queue */
.mob-empty-queue {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; color: var(--muted); padding: 32px;
}
.mob-empty-queue .material-symbols-outlined { font-size: 48px; opacity: 0.3; }
.mob-empty-queue p {
  font-family: var(--font-head); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════════
   ORBITAL LAYOUT — Approbation Desktop Redesign
   ══════════════════════════════════════════════════════════════════ */

/* Animations */
@keyframes rotate-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes nebula-float {
  0%,100% { opacity: 0.4; transform: scale(1) translateY(0); }
  50%      { opacity: 0.7; transform: scale(1.06) translateY(-8px); }
}
@keyframes star-twinkle {
  0%,100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes corner-pulse {
  0%,100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* Galaxy background — fills the ENTIRE viewport behind the glass card */
#tab-approbation { position: relative; }
.galaxy-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% 20%, rgba(0,228,117,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 80%, rgba(129,207,255,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(160,80,255,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #05060a 0%, #0a0b14 50%, #05060a 100%);
}
/* Two star layers (static + drifting) */
.galaxy-bg::before, .galaxy-bg::after {
  content: ''; position: absolute; inset: -50%;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(129,207,255,0.9), transparent),
    radial-gradient(1px 1px at 80% 90%, #fff, transparent),
    radial-gradient(1px 1px at 10% 50%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 90% 40%, rgba(0,228,117,0.6), transparent),
    radial-gradient(1px 1px at 33% 85%, #fff, transparent),
    radial-gradient(1px 1px at 75% 15%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 50% 60%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 25% 10%, rgba(160,80,255,0.7), transparent),
    radial-gradient(1px 1px at 65% 55%, #fff, transparent),
    radial-gradient(1px 1px at 5% 75%, rgba(255,255,255,0.6), transparent);
  background-size: 400px 400px;
  background-repeat: repeat;
  opacity: 0.7;
}
.galaxy-bg::after {
  background-size: 250px 250px;
  background-position: 50px 50px;
  opacity: 0.45;
  animation: star-drift 120s linear infinite;
}
@keyframes star-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-100px, -60px); }
}
.nebula {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; opacity: 0.55;
  animation: nebula-float 18s ease-in-out infinite;
}
.nebula-green  { width: 500px; height: 500px; top: -10%; left: -10%;
                 background: radial-gradient(circle, rgba(0,228,117,0.35), transparent 70%); }
.nebula-blue   { width: 600px; height: 600px; bottom: -20%; right: -15%;
                 background: radial-gradient(circle, rgba(129,207,255,0.30), transparent 70%);
                 animation-delay: -6s; }
.nebula-violet { width: 400px; height: 400px; top: 40%; left: 45%;
                 background: radial-gradient(circle, rgba(160,80,255,0.25), transparent 70%);
                 animation-delay: -12s; }
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(143,145,148,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,145,148,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}

/* BLOC_approval_card_widen_rectangular (2026-04-28) :
   Élargir #main à 1700px quand l'onglet Approbation est actif (image plus
   dominante, format rectangle horizontal). Les autres onglets gardent
   max-width: 1280px du design-system. Utilise :has() — supporté par tous
   les navigateurs modernes (Chrome/Edge/Firefox/Safari récents). */
body:has(#tab-approbation.active) #main {
  max-width: 1700px;
}

/* Card — glassmorphism over the galaxy — flex column for footer anchoring */
.approval-card.orb-card {
  background: rgba(17,19,28,0.45);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px;
  overflow: visible;
  display: flex; flex-direction: column;
  height: calc(100vh - 160px);
  position: relative; z-index: 1;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 20px rgba(0,228,117,0.06);
}

/* Floating navigation arrows — always visible on card edges */
.orb-nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(12,14,23,0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text); font-size: 20px; cursor: pointer;
  z-index: 20; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
  font-family: var(--font-head);
}
.orb-nav-arrow:hover {
  background: rgba(0,228,117,0.18);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 22px rgba(0,228,117,0.35);
  transform: translateY(-50%) scale(1.05);
}
.orb-nav-arrow.left  { left: -22px; }
.orb-nav-arrow.right { right: -22px; }
/* Dynamic corner accents */
.orb-corner {
  position: absolute; width: 18px; height: 18px; z-index: 3;
  animation: corner-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
.orb-corner.tl { top: -1px;  left: -1px;  border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); border-top-left-radius: 14px; }
.orb-corner.tr { top: -1px;  right: -1px; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); border-top-right-radius: 14px; }
.orb-corner.bl { bottom: -1px; left: -1px;  border-bottom: 2px solid var(--primary); border-left: 2px solid var(--primary); border-bottom-left-radius: 14px; }
.orb-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary); border-bottom-right-radius: 14px; }

/* 2-column grid — takes available height, leaving room for card footer */
.orb-layout {
  display: grid;
  /* BLOC_approval_card_widen_rectangular (2026-04-28) : 60/40 (was 58/42) — image dominante */
  grid-template-columns: 60fr 40fr;
  gap: 22px;
  flex: 1 1 auto;
  position: relative; z-index: 1;
  min-height: 0;
}

/* ── Left column: image ─────────────────────────────────────────── */
.orb-col-left {
  display: flex; flex-direction: column; position: relative;
  min-height: 0;
}
.orb-float-badges {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.orb-frame {
  flex: 1; position: relative; border-radius: 12px;
  background: radial-gradient(ellipse at center, #0c0f18 0%, #05060a 100%);
  overflow: hidden; min-height: 0;
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.orb-frame::before {
  content: ''; position: absolute; inset: -2px; z-index: 0;
  border-radius: 14px;
  background: conic-gradient(from 180deg,
    transparent 0deg, rgba(0,228,117,0.55) 90deg,
    transparent 180deg, rgba(129,207,255,0.38) 270deg,
    transparent 360deg);
  animation: rotate-orbit 20s linear infinite;
  opacity: 0.7;
}
.orb-frame::after {
  content: ''; position: absolute; inset: 2px; z-index: 0;
  border-radius: 11px;
  background: #05060a;
}
.orb-frame img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block; border-radius: 8px;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.45));
  cursor: zoom-in;
  transition: filter 0.2s ease;
}
.orb-frame img:hover {
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.45)) brightness(1.05);
}
.orb-img-fallback {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); border-radius: 10px;
}
.orb-img-bar {
  padding: 12px 14px 4px;
  position: relative; z-index: 2;
  flex-shrink: 0;
  border-top: 1px solid rgba(0,228,117,0.1);
  margin-top: 10px;
}
.orb-obj-name {
  font-family: var(--font-head); font-size: 24px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); line-height: 1.15;
}
.orb-obj-sub-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; flex-wrap: wrap;
}
.orb-obj-sub {
  font-family: var(--font-head); font-size: 10px; color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ── Right column: approve + caption + hashtags + telemetry + actions ── */
.orb-col-right {
  display: flex; flex-direction: column; gap: 16px; min-height: 0;
  padding-top: 24px;
}
.orb-glass-panel {
  background: rgba(17,19,28,0.72); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 14px; display: flex; flex-direction: column;
  backdrop-filter: blur(8px); min-height: 0;
}
/* Caption: takes available space, shrinks gracefully if caption is long
   to keep footer + actions always visible */
/* BLOC_fix_global_galaxy_zindex_visibility (2026-04-28) :
   Caption ne grandit plus à l'infini — flex 0 1 auto + max-height 30vh
   pour laisser place à hashtags+télémétrie+actions+pagination en dessous. */
.orb-glass-panel.orb-caption-panel { flex: 0 1 auto; min-height: 90px; max-height: 30vh; overflow: hidden; }
.orb-glass-panel.orb-caption-panel .ac-caption-block {
  flex: 1 1 auto; max-height: none; overflow-y: auto;
  background: transparent; padding: 0 4px 0 0; border-left: none;
  font-size: 12.5px; line-height: 1.55; color: #d6d7dc; margin: 0;
}
.orb-glass-panel.orb-caption-panel .ac-caption-block::-webkit-scrollbar { width: 3px; }
.orb-glass-panel.orb-caption-panel .ac-caption-block::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08); border-radius: 2px;
}
.orb-glass-panel.orb-tags-panel    { flex: 0 0 auto; }
.orb-panel-label {
  font-family: var(--font-head); font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em; color: rgba(143,145,148,0.55); text-transform: uppercase;
  margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 6px; flex-shrink: 0;
}

.orb-subtle-panel {
  background: rgba(12,14,23,0.55); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 12px 14px; flex-shrink: 0;
}
.orb-telem-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 0 12px;
  font-family: var(--font-head); font-size: 10px; line-height: 1.9;
}
.orb-telem-key { color: rgba(143,145,148,0.55); white-space: nowrap; letter-spacing: 0.05em; }
.orb-telem-val { color: var(--text); word-break: break-word; }
.orb-telem-val.primary { color: var(--primary); font-weight: 600; }

/* Approve CTA (top of right col) — compact */
.orb-btn-approve {
  width: 100%; padding: 9px 14px; border-radius: 8px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #00e475 0%, #009248 100%);
  color: #003918; font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0 16px rgba(0,228,117,0.25); transition: all 0.2s;
  flex-shrink: 0;
}
.orb-btn-approve:hover { box-shadow: 0 0 28px rgba(0,228,117,0.4); transform: translateY(-1px); }

/* Secondary actions row (regen + danger side-by-side) */
.orb-actions-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  flex-shrink: 0;
}
.orb-btn-ghost {
  padding: 9px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); font-family: var(--font-head); font-size: 10px;
  font-weight: 600; letter-spacing: 0.08em; transition: all 0.2s;
  text-transform: uppercase;
}
.orb-btn-ghost:hover { border-color: rgba(255,255,255,0.28); color: var(--text); }
.orb-btn-danger {
  padding: 9px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid rgba(215,59,0,0.3);
  color: rgba(215,59,0,0.75); font-family: var(--font-head); font-size: 10px;
  font-weight: 600; letter-spacing: 0.08em; transition: all 0.2s;
  text-transform: uppercase;
}
.orb-btn-danger:hover { border-color: rgba(215,59,0,0.75); color: #ff5a2b; background: rgba(215,59,0,0.05); }

/* Pagination counter — card-level footer, always visible regardless of content */
.orb-pag-bar {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.orb-pag-pos {
  font-family: var(--font-head); font-size: 11px; color: var(--muted);
  letter-spacing: 0.16em; text-align: center;
}

/* Mobile: hide desktop orbital artefacts, keep overlay clean */
@media (max-width: 767px) {
  .galaxy-bg { display: none; }
  .orb-layout { display: none; }
  .orb-corner { display: none; }
  .orb-nav-arrow { display: none; }
  .approval-card.orb-card { padding: 0; border: none; background: transparent; box-shadow: none; backdrop-filter: none; }
}

/* ── Zoom overlay — click image to expand, click anywhere to close ── */
#orb-zoom-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,6,10,0.92);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: orb-zoom-fade 0.25s ease;
}
#orb-zoom-overlay.active { display: flex; }
#orb-zoom-overlay img {
  max-width: 94vw; max-height: 92vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow:
    0 0 80px rgba(0,228,117,0.18),
    0 24px 64px rgba(0,0,0,0.7);
  animation: orb-zoom-in 0.28s cubic-bezier(0.22,0.9,0.36,1);
}
.orb-zoom-close {
  position: absolute; top: 20px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(12,14,23,0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  font-family: var(--font-head);
}
.orb-zoom-close:hover {
  background: rgba(215,59,0,0.15);
  border-color: rgba(215,59,0,0.5);
  color: #ff5a2b;
}
@keyframes orb-zoom-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes orb-zoom-in   { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ════════════════════════════════════════════════════════════════════════
   BLOC_v3_dashboard_show_enrichment_sources — panneau audit traçabilité
   Appended : 2026-04-29
   ════════════════════════════════════════════════════════════════════════ */

.orb-enrichment-panel {
    margin-top: 12px;
    padding: 0;
    background: rgba(17, 19, 28, 0.72);
    border: 1px solid rgba(0, 228, 117, 0.18);
    border-radius: 10px;
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    overflow: hidden;
    transition: border-color 0.15s ease;
}
.orb-enrichment-panel[open] { border-color: rgba(0, 228, 117, 0.42); }
.orb-enrichment-panel > summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 14px;
    font-family: var(--font-head, "Inter"), sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary, #00e475);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.orb-enrichment-panel > summary::-webkit-details-marker { display: none; }
.orb-enrichment-panel > summary::after {
    content: "▸";
    font-size: 10px;
    color: var(--muted, #6b7280);
    transition: transform 0.15s;
}
.orb-enrichment-panel[open] > summary::after { transform: rotate(90deg); }
.orb-enrichment-panel .panel-meta {
    font-size: 10px; font-weight: 500;
    color: var(--muted, #94a3b8);
    margin-left: 8px; text-transform: none; letter-spacing: 0.02em;
}
.enrich-grid {
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) minmax(150px, 1.4fr) auto;
    gap: 6px 14px;
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono, "JetBrains Mono", monospace);
    font-size: 11px;
}
.enrich-grid .field-label {
    color: var(--muted, #94a3b8);
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
    align-self: center;
}
.enrich-grid .field-value { color: #e2e8f0; word-break: break-word; align-self: center; font-size: 11px; }
.enrich-grid .field-value.empty { color: rgba(148, 163, 184, 0.4); font-style: italic; }
.enrich-grid .field-empty-row {
    grid-column: 1 / -1;
    color: rgba(148, 163, 184, 0.55);
    font-style: italic; text-align: center; padding: 8px 0;
}
.source-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 999px;
    font-size: 9.5px; font-weight: 600;
    text-transform: lowercase; letter-spacing: 0.02em;
    color: #fff; white-space: nowrap; align-self: center;
    background: rgba(100, 116, 139, 0.55);
}
.source-badge.scraper-eso        { background: rgba(37, 99, 235, 0.78); }
.source-badge.scraper-esahubble  { background: rgba(147, 51, 234, 0.78); }
.source-badge.scraper-noirlab    { background: rgba(234, 88, 12, 0.78); }
.source-badge.scraper-astropix   { background: rgba(22, 163, 74, 0.78); }
.source-badge.scraper-wikipedia  { background: rgba(100, 116, 139, 0.78); }
.source-badge.scraper-local      { background: rgba(120, 113, 108, 0.65); }
.source-badge.stale {
    border: 1px dashed rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}
.source-badge .stale-marker { margin-left: 4px; font-size: 8px; color: #fef3c7; }

/* ════════════════════════════════════════════════════════════════════════
   BLOC_v3_enrichment_modal — masquage panneau inline + modale dédiée
   ════════════════════════════════════════════════════════════════════════ */

/* Cache le panneau inline injecté dans la card (mode hover via télémétrie) */
.orb-enrichment-panel {
    display: none !important;
}

/* Hint visuel sur la télémétrie : indique qu'elle est cliquable */
[data-enrichment-trigger] {
    cursor: pointer;
    transition: filter 0.15s ease, border-color 0.15s ease;
    position: relative;
}
[data-enrichment-trigger]:hover {
    filter: brightness(1.18);
}
[data-enrichment-trigger]:hover::after {
    content: "📊 Voir enrichissement";
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 228, 117, 0.95);
    color: #000;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Modale Enrichissement ───────────────────────────────────────── */
.enrich-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2200;
    background: rgba(5, 6, 10, 0.78);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    align-items: center;
    justify-content: center;
    animation: enrichModalFadeIn 0.18s ease;
}
.enrich-modal-overlay.active {
    display: flex;
}
@keyframes enrichModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.enrich-modal-panel {
    background: rgba(17, 19, 28, 0.96);
    border: 1px solid rgba(0, 228, 117, 0.35);
    border-radius: 14px;
    padding: 0;
    width: min(560px, 92vw);
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.7), 0 0 48px rgba(0, 228, 117, 0.18);
    display: flex;
    flex-direction: column;
}
.enrich-modal-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.enrich-modal-title {
    font-family: var(--font-head, "Inter"), sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #00e475);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.enrich-modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--muted, #94a3b8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.15s, color 0.15s;
}
.enrich-modal-close:hover {
    border-color: rgba(255, 80, 80, 0.6);
    color: #ff6464;
}
.enrich-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 16px;
}
.enrich-modal-body .enrich-grid {
    border-top: none;
    padding-top: 14px;
}
.enrich-modal-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.enrich-modal-footer .footer-meta {
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    color: var(--muted, #94a3b8);
}
.btn-retry-enrichment {
    background: linear-gradient(135deg, rgba(0, 228, 117, 0.2), rgba(0, 200, 100, 0.15));
    border: 1px solid rgba(0, 228, 117, 0.5);
    color: var(--primary, #00e475);
    padding: 7px 14px;
    border-radius: 6px;
    font-family: var(--font-head, "Inter"), sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.15s, transform 0.05s;
}
.btn-retry-enrichment:hover:not(:disabled) {
    filter: brightness(1.2);
}
.btn-retry-enrichment:active:not(:disabled) {
    transform: scale(0.97);
}
.btn-retry-enrichment:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ════════════════════════════════════════════════════════════════════════
   BLOC_v3_caption_validator_semi_auto — modale audit caption
   ════════════════════════════════════════════════════════════════════════ */

.cap-validator-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2300;
    background: rgba(5, 6, 10, 0.78);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    align-items: center;
    justify-content: center;
}
.cap-validator-overlay.active { display: flex; }

.cap-validator-panel {
    background: rgba(17, 19, 28, 0.96);
    border: 1px solid rgba(0, 228, 117, 0.35);
    border-radius: 14px;
    padding: 0;
    width: min(640px, 94vw);
    max-height: 88vh;
    overflow: hidden;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.7), 0 0 48px rgba(0, 228, 117, 0.18);
    display: flex;
    flex-direction: column;
}
.cap-validator-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cap-validator-title {
    font-family: var(--font-head, "Inter"), sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #00e475);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cap-validator-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--muted, #94a3b8);
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}
.cap-validator-close:hover { border-color: rgba(255, 80, 80, 0.6); color: #ff6464; }

.cap-validator-body {
    flex: 1; overflow-y: auto; padding: 14px 20px;
    display: flex; flex-direction: column; gap: 16px;
}
.cap-preview {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    color: #cbd5e1;
    max-height: 140px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.5;
}

.cap-audit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.cap-audit-card {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
}
.cap-audit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: var(--font-head, "Inter"), sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #94a3b8);
}
.cap-score-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(100, 116, 139, 0.4);
}
.cap-score-pill.score-high   { background: rgba(34, 197, 94, 0.25); color: #4ade80; }
.cap-score-pill.score-mid    { background: rgba(251, 146, 60, 0.25); color: #fdba74; }
.cap-score-pill.score-low    { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.cap-score-pill.score-pending{ background: rgba(100, 116, 139, 0.35); color: var(--muted, #94a3b8); }

.cap-warning-list {
    margin: 0; padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cap-warning-list li {
    background: rgba(251, 146, 60, 0.12);
    border-left: 3px solid rgba(251, 146, 60, 0.6);
    padding: 6px 10px;
    font-size: 11px;
    color: #fed7aa;
    border-radius: 4px;
    line-height: 1.4;
}
.cap-warning-list li.severe {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: rgba(239, 68, 68, 0.7);
    color: #fecaca;
}
.cap-warning-list li.empty {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: rgba(34, 197, 94, 0.5);
    color: #86efac;
    font-style: italic;
}

.cap-validator-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.cap-validator-footer .left-actions, .cap-validator-footer .right-actions {
    display: flex; gap: 8px;
}
.btn-cap-audit {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    padding: 7px 14px;
    border-radius: 6px;
    font-family: var(--font-head, "Inter"), sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
}
.btn-cap-audit:hover:not(:disabled) { filter: brightness(1.2); }
.btn-cap-audit:disabled { opacity: 0.5; cursor: wait; }
.btn-cap-audit.primary {
    background: rgba(0, 228, 117, 0.2);
    border-color: rgba(0, 228, 117, 0.55);
    color: var(--primary, #00e475);
}
.btn-cap-audit.danger {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.btn-verify-caption {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(79, 70, 229, 0.16));
    border: 1px solid rgba(99, 102, 241, 0.55);
    color: #a5b4fc;
}
.btn-verify-caption:hover { filter: brightness(1.18); }

/* ════════════════════════════════════════════════════════════════════════
   BLOC_v3_audit_panels_layout — agrandir CAPTION_AUDIT + ENRICHMENT_DATA
   ════════════════════════════════════════════════════════════════════════ */

/* Panneaux audit prennent plus d'espace dans la colonne droite */
#det-cap-audit-panel,
#det-enrichment-panel {
    padding: 14px 16px !important;
    margin-top: 8px;
}

/* CAPTION_AUDIT — agrandi */
#det-cap-audit-panel .tele-panel-title {
    font-size: 12px !important;
    margin-bottom: 10px;
}
#det-cap-audit-panel #det-cap-warnings {
    font-size: 12px !important;
    line-height: 1.85 !important;
    min-height: 60px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 6px;
    border-left: 2px solid rgba(0, 228, 117, 0.25);
}
#det-cap-audit-panel #det-cap-prompt-btn {
    font-size: 11px !important;
    padding: 9px 12px !important;
    margin-top: 10px;
}
#det-cap-audit-panel #det-cap-prompt-text {
    min-height: 160px !important;
    font-size: 11px !important;
}
#det-cap-audit-panel #det-cap-score {
    font-size: 11px !important;
    padding: 4px 12px !important;
    font-weight: 800;
}

/* ENRICHMENT_DATA — agrandi, layout 3-col plus aéré */
#det-enrichment-panel .tele-panel-title {
    font-size: 12px !important;
    margin-bottom: 12px;
}
#det-enrichment-panel #det-enrich-grid {
    font-size: 12px !important;
    line-height: 1.9 !important;
    gap: 8px 14px !important;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 6px;
    border-left: 2px solid rgba(99, 102, 241, 0.4);
    min-height: 220px;
}
#det-enrichment-panel #det-enrich-grid > div {
    padding: 2px 0;
}
#det-enrichment-panel #det-enrich-grid > div:nth-child(3n+1) {
    /* labels */
    font-size: 10.5px !important;
    color: rgba(148, 163, 184, 0.85) !important;
    font-weight: 600;
}
#det-enrichment-panel #det-enrich-grid > div:nth-child(3n+2) {
    /* valeurs */
    font-size: 12px !important;
    color: #e2e8f0 !important;
    word-break: break-word;
}
#det-enrichment-panel #det-enrich-grid > div:nth-child(3n+3) {
    /* badge */
    align-self: center;
}
#det-enrichment-panel #det-enrich-retry {
    font-size: 11px !important;
    padding: 9px 12px !important;
    margin-top: 12px;
}
#det-enrichment-panel #det-enrich-meta {
    font-size: 10px !important;
}
#det-enrichment-panel #det-enrich-status {
    font-size: 10.5px !important;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.18);
}

/* Source-badge plus visible dans le panneau inline */
#det-enrichment-panel .source-badge {
    font-size: 9.5px !important;
    padding: 3px 9px !important;
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════════
   BLOC_v3_extend_audit_prompt_data_check — fix close buttons cliquables
   Filet de sécurité : tous les boutons close des modales doivent être
   clairement cliquables, hit-target adéquat, z-index au-dessus.
   ════════════════════════════════════════════════════════════════════════ */
.cap-prompt-modal .close-btn,
.cap-validator-close,
.enrich-modal-close,
.cap-prompt-overlay .cap-validator-close,
.cap-validator-overlay .cap-validator-close {
    position: relative;
    z-index: 100 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    padding: 6px 10px !important;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Augmente la zone de clic du bouton X dans le textarea panneau */
#det-cap-audit-panel button,
#det-enrichment-panel button {
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}
