:root {
  --bg: #F7F5FC;
  --card: #FFFFFF;
  --ink: #2E2A80;
  --muted: #8985B5;
  --line: #E7E3F6;
  --accent: #F0479C;
  --accent-soft: #FDE2F0;
  --violet: #DEDDF5;
  --danger: #D64545;
  --ok: #2E9E6B;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(46, 42, 128, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .cal-header h2, .modal-head h3, .mm-head, .login-card h1 {
  font-family: 'Grandstander', 'Inter', sans-serif;
}

.pficon { width: 13px; height: 13px; flex-shrink: 0; vertical-align: -2px; }
.pficon.brand-ig { color: #E4405F; }
.pficon.brand-fb { color: #1877F2; }
.pfgroup { display: inline-flex; align-items: center; gap: 3px; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  font-weight: 700;
}

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 5px; }

/* ── Login ───────────────────────────── */
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-card .logo { width: 84px; height: 84px; object-fit: contain; }
.login-card h1 { font-size: 24px; margin: 8px 0 2px; }
.login-card .sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.login-card form { display: grid; gap: 12px; text-align: left; }
.login-error { color: var(--danger); font-size: 13px; font-weight: 700; margin: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

/* ── Layout ──────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
}

.brand { font-weight: 700; font-size: 17px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand small { color: var(--muted); font-weight: 500; font-family: 'Inter', sans-serif; }

.tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 3px; }
.tabs button {
  background: transparent;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
}
.tabs button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

.topbar .spacer { flex: 1; }
.userchip { font-size: 13px; color: var(--muted); font-weight: 700; }
.btn-ghost { background: transparent; color: var(--muted); padding: 7px 10px; font-size: 13px; }
.btn-ghost:hover { color: var(--ink); }
.lab-link { display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  border-radius: 8px; font-weight: 700; }
.lab-link:hover { color: var(--ink); background: var(--bg); }

.main { padding: 16px 22px; max-width: 1500px; margin: 0 auto; }

/* ── À traiter ───────────────────────── */
.triage {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.triage-label {
  font-family: 'Grandstander', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.triage-pill {
  background: var(--tp-bg);
  color: var(--tp-fg);
  border: 1.5px solid var(--tp);
  border-left: 5px solid var(--tp);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
}
.triage-pill b { font-size: 14px; }
.triage-pill:hover, .triage-pill.on { outline: 2px solid var(--tp); outline-offset: 1px; }

/* ── Légende ─────────────────────────── */
.legend {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: -6px 0 12px;
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.legend-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend-title { font-weight: 800; color: var(--muted); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.04em; min-width: 105px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.legend-bar { width: 4px; height: 14px; border-radius: 2px; }
.legend-swatch { width: 13px; height: 13px; border-radius: 4px; }

/* ── Filtres ─────────────────────────── */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}
.filters select { width: auto; padding: 7px 28px 7px 10px; font-size: 13px; font-weight: 700; }
.filters .count { font-size: 13px; color: var(--muted); font-weight: 700; margin-left: auto; }

/* ── Calendrier ──────────────────────── */
.cal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cal-header h2 { font-size: 19px; margin: 0; text-transform: capitalize; flex: 1; }
.cal-nav { background: var(--card); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.btn-today { background: var(--card); border: 1px solid var(--line); padding: 7px 12px; font-size: 13px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  padding: 4px 0;
}

.cal-day {
  background: var(--card);
  border-radius: var(--radius);
  min-height: 108px;
  min-width: 0; /* sans ça, les titres nowrap des chips élargissent les colonnes et la grille déborde */
  padding: 6px;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-grid.week .cal-day { min-height: 300px; }
.cal-grid.week .cal-day.other { background: var(--card); border: 1.5px solid transparent; opacity: 1; }

.day-view { display: grid; gap: 12px; justify-items: start; }
.day-view .list { width: 100%; }

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.mini-month {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 12px;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.mini-month:hover { border-color: var(--accent); }
.mm-head { font-weight: 800; font-size: 13px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.mm-count { background: var(--accent-soft); border-radius: 10px; padding: 0 8px; font-size: 11px; }
.mm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mm-day {
  font-size: 9px;
  text-align: center;
  border-radius: 4px;
  padding: 2px 0;
  color: var(--muted);
}
.mm-day.out { opacity: 0.25; }
.mm-day.today { outline: 1.5px solid var(--accent); color: var(--ink); font-weight: 800; }
.cal-day.other { background: transparent; border: 1.5px dashed var(--line); opacity: 0.6; }
.cal-day.today { border-color: var(--accent); }
.cal-day.dragover { border-color: var(--accent); background: var(--accent-soft); }

.cal-day .dnum {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cal-day.today .dnum { color: var(--ink); }

.add-post {
  background: transparent;
  color: var(--line);
  font-size: 14px;
  padding: 0 4px;
  line-height: 1;
}
.cal-day:hover .add-post { color: var(--muted); }

.chip {
  border-radius: 7px;
  padding: 4px 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.25;
  min-width: 0;
}
.chip .tm { font-size: 10px; opacity: 0.75; flex-shrink: 0; }
.chip .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.chip .pf { opacity: 0.65; }
.chip .pf .pficon { width: 11px; height: 11px; }
.chip.dim { opacity: 0.6; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Carte de survol ─────────────────── */
.hovercard {
  position: fixed;
  z-index: 60;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(43, 38, 34, 0.18);
  border: 1px solid var(--line);
  overflow: hidden;
  pointer-events: none;
  animation: hc-in 0.12s ease-out;
}
@keyframes hc-in {
  from { opacity: 0; }
}
.hovercard img, .hovercard video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hc-body { padding: 10px 12px; display: grid; gap: 5px; }
.hc-title { font-weight: 800; font-size: 13.5px; line-height: 1.3; }
.hc-meta { font-size: 12px; color: var(--muted); font-weight: 700; }
.hc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.hc-caption { font-size: 12px; line-height: 1.45; color: var(--ink); opacity: 0.85; white-space: pre-line; }
.hc-redo { font-size: 12px; color: var(--danger); font-weight: 700; }
@media (hover: none) { .hovercard { display: none; } }

/* ── Badges statut ───────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Liste ───────────────────────────── */
.list { display: grid; gap: 8px; }
.row {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.row:hover { outline: 1.5px solid var(--accent); }
.row .thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}
.row .info { flex: 1; min-width: 0; }
.row .title { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topic-pill { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-weight: 700; }

/* ── Modal ───────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 34, 0.45);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 14px;
  overflow-y: auto;
}

.modal {
  background: var(--card);
  border-radius: 18px;
  width: 100%;
  max-width: 880px;
  max-height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-close { background: var(--bg); width: 30px; height: 30px; border-radius: 50%; font-size: 14px; }

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}
@media (max-width: 760px) {
  .modal-body { grid-template-columns: 1fr; }
}

.fields { display: grid; gap: 12px; }
.fields .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.review-banner {
  background: #FCE9E9;
  border: 1.5px solid var(--danger);
  color: #8C2626;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}
.review-banner span { display: block; font-weight: 400; margin-top: 3px; }

/* Aperçu Insta */
.preview { display: flex; flex-direction: column; gap: 8px; }
.ig-frame { position: relative; }
.ig-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  box-shadow: var(--shadow);
}
.ig-nav.prev { left: 8px; }
.ig-nav.next { right: 8px; }
.ig-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 4px;
}
.ig-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.ig-dots span.on { background: #fff; }

.thumb-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.thumb-item { width: 56px; }
.thumb-item img, .thumb-item video {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  display: block;
}
.thumb-item.on img, .thumb-item.on video { border-color: var(--accent); }
.thumb-tools { display: flex; justify-content: space-between; margin-top: 2px; }
.thumb-tools button {
  background: var(--bg);
  font-size: 10px;
  width: 17px; height: 16px;
  border-radius: 5px;
  padding: 0;
  color: var(--muted);
}
.thumb-tools button:hover { color: var(--ink); }
.thumb-tools button:disabled { opacity: 0.3; }

/* Alerte trous planning : jaune doux de la palette du site */
.gap-banner {
  background: #FCF3CF;
  border: 1.5px solid #F3DD7C;
  color: #7A6200;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.ig-card { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ig-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; font-weight: 800; }
.ig-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.ig-avatar img { width: 18px; height: 18px; object-fit: contain; }
/* Formats Insta 2026 : feed 3:4 (1080×1440), Reels 9:16 */
.ig-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg); display: block; }
video.ig-img { aspect-ratio: 9 / 16; }
.ig-img-empty {
  width: 100%; aspect-ratio: 3 / 4;
  display: grid; place-items: center;
  color: var(--muted); font-size: 12px; font-weight: 700;
  background: repeating-linear-gradient(45deg, #F3F0FA, #F3F0FA 12px, #EAE6F6 12px, #EAE6F6 24px);
}
.ig-caption { padding: 8px 10px 10px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.ig-caption .tags { color: #3B6FD4; }

.upload-row { display: flex; gap: 8px; }
.upload-row button { flex: 1; background: var(--bg); border: 1.5px dashed var(--line); padding: 9px; font-size: 13px; color: var(--muted); }
.upload-row button:hover { border-color: var(--accent); color: var(--ink); }

.modal-foot {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.modal-foot .left { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }

.btn-validate { background: var(--ok); color: #fff; padding: 11px 18px; font-size: 14px; }
.btn-redo { background: var(--danger); color: #fff; padding: 11px 18px; font-size: 14px; }
.btn-submit { background: var(--ink); color: #fff; padding: 11px 18px; font-size: 14px; }
.btn-save { background: var(--accent); color: #fff; padding: 11px 18px; font-size: 14px; }
.btn-delete { background: transparent; color: var(--danger); padding: 11px 10px; font-size: 13px; }

.activity { font-size: 12px; color: var(--muted); display: grid; gap: 4px; margin-top: 4px; }
.activity b { color: var(--ink); }

/* ── Réglages ────────────────────────── */
.settings { max-width: 540px; display: grid; gap: 10px; }
.topic-row {
  background: var(--card);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow);
}
.topic-row input[type="color"] { width: 36px; height: 32px; padding: 2px; flex-shrink: 0; }
.topic-row input[type="text"] { flex: 1; }
.topic-row .btn-ghost { flex-shrink: 0; }

/* ── Mobile ──────────────────────────── */
@media (max-width: 700px) {
  .main { padding: 10px; }
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 76px; padding: 4px; border-radius: 9px; }
  .chip { padding: 3px 4px; font-size: 10px; }
  .chip .pf { display: none; }
  .topbar { padding: 10px 12px; gap: 8px; }
  .userchip { display: none; }
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  z-index: 100;
  box-shadow: var(--shadow);
}

/* ===== Vue Reels (phase 3) ===== */
.reels-page { padding: 4px 0 40px; }
.reels-h { font-family: Grandstander, sans-serif; font-weight: 800; font-size: 20px; margin: 18px 0 12px; }
.reels-h small { font-weight: 600; font-size: 13px; color: #7a76a8; }
.reels-empty { color: #7a76a8; padding: 8px 0; }
.reels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.reel-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(46,42,128,.08);
  padding: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.reel-cover { width: 86px; height: 153px; border-radius: 10px; object-fit: cover; cursor: pointer;
  background: #221f63; flex-shrink: 0; }
.reel-cover-ph { display: grid; place-items: center; color: #fff; font-size: 26px; }
.reel-meta { min-width: 0; flex: 1 1 0; }
.reel-dir { font-size: 11px; font-weight: 600; color: #7a76a8; letter-spacing: .4px; }
.reel-meta h3 { font-family: Grandstander, sans-serif; font-weight: 700; font-size: 15px;
  line-height: 1.3; margin: 3px 0 6px; }
.reel-type { font-size: 11.5px; color: #55518a; display: block; margin-bottom: 6px; }
.reel-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-mini { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: #F7F5FC; color: #2E2A80; }
.chip-cal { background: #d9f2e3; color: #1d7a4b; }
.reel-src { font-size: 11px; color: #7a76a8; margin-top: 7px; }
.sujets-list { display: flex; flex-direction: column; gap: 7px; max-width: 980px; }
.sujet-row { background: #fff; border-radius: 12px; padding: 10px 14px; display: flex;
  align-items: center; gap: 12px; box-shadow: 0 2px 10px rgba(46,42,128,.06);
  border-left: 4px solid var(--force, #2E2A80); }
.sujet-row.sujet-off { opacity: .58; }
.sujet-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sujet-titre { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.sujet-src { font-size: 11.5px; color: #7a76a8; }
.sujet-row select { font: 600 12px Inter, sans-serif; color: #2E2A80; border: 1.5px solid #d9d5ee;
  border-radius: 8px; padding: 5px 7px; background: #fff;
  width: auto; flex: 0 0 auto; } /* contre le select { width: 100% } global */
.sujet-row .chip-mini { flex-shrink: 0; }
.reel-player { position: fixed; inset: 0; background: rgba(20,18,58,.85); z-index: 60;
  display: grid; place-items: center; }
.reel-player video { height: min(84vh, 940px); aspect-ratio: 9/16; border-radius: 14px; background: #000; }
.reel-player p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  color: #cfcce8; font-size: 13px; }
.reel-player-x { position: absolute; top: 14px; right: 20px; font-size: 26px; color: #fff;
  background: none; border: none; cursor: pointer; }
@media (max-width: 640px) {
  .reels-grid { grid-template-columns: 1fr; }
  .sujet-row { flex-wrap: wrap; }
}

/* ===== Section Veille (onglet Reels) ===== */
.veille-day { background: #fff; border-radius: 14px; box-shadow: 0 3px 12px rgba(46,42,128,.06);
  padding: 12px 16px; margin-bottom: 8px; max-width: 980px; }
.veille-day summary { font-family: Grandstander, sans-serif; font-weight: 700; font-size: 14.5px;
  cursor: pointer; text-transform: capitalize; }
.veille-n { font: 600 11.5px Inter, sans-serif; color: #7a76a8; margin-left: 8px; text-transform: none; }
.veille-recos { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.veille-reco { background: #FCF3CF; border-radius: 10px; padding: 8px 12px; font-size: 13px;
  font-weight: 600; line-height: 1.4; display: flex; align-items: center; gap: 10px; }
.veille-reco span { flex: 1; min-width: 0; }
.reco-add { background: #F0479C; color: #fff; border: none; border-radius: 8px; padding: 5px 10px;
  font: 700 11.5px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.veille-articles { margin: 10px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.veille-articles li { font-size: 13px; line-height: 1.4; }
.veille-articles a { color: #2E2A80; }
.veille-articles small { color: #7a76a8; }

/* select de format dans les recos de veille */
.veille-reco select { font: 600 12px Inter, sans-serif; color: #2E2A80; border: 1.5px solid #e8d9a0;
  border-radius: 8px; padding: 4px 6px; background: #fff; width: auto; flex: 0 0 auto; }
.reco-add[disabled] { opacity: .5; }

/* formulaire "créer le post" sur une carte Reel */
.reel-actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.reel-mkpost { background: #F0479C; color: #fff; border: none; border-radius: 9px;
  padding: 8px 14px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.reel-del { margin-left: auto; background: #fff; color: #c0392b; border: 1.5px solid #f0d0cc;
  border-radius: 9px; padding: 7px 11px; font-size: 14px; line-height: 1; cursor: pointer; }
.reel-del:hover { background: #fdecea; border-color: #e0a39c; }
.reel-postform { width: 100%; padding: 4px 2px 2px; display: flex; flex-direction: column; gap: 8px; }
.reel-postform .rpf-row { display: flex; gap: 8px; }
.reel-postform input, .reel-postform select, .reel-postform textarea {
  font: 500 13px Inter, sans-serif; color: #2E2A80; border: 1.5px solid #d9d5ee;
  border-radius: 9px; padding: 8px 10px; width: auto; flex: 1; min-width: 0; background: #fff; }
.reel-postform textarea { width: 100%; resize: vertical; }
.reel-postform input[placeholder="#hashtags"] { width: 100%; }
.rpf-go { background: #2E2A80; color: #fff; border: none; border-radius: 9px; padding: 10px;
  font: 700 13.5px Inter, sans-serif; cursor: pointer; }
.rpf-go[disabled] { opacity: .5; }

/* badge carrousel (nombre de slides) */
.thumbwrap { position: relative; display: inline-block; }
.thumb-n { position: absolute; bottom: 4px; right: 4px; background: rgba(34,31,99,.85); color: #fff;
  font: 700 10.5px Inter, sans-serif; padding: 2px 6px; border-radius: 7px; }

/* onglet Carrousels */
.carr-cover { position: relative; overflow: hidden; display: block; }
.carr-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carr-viewer { position: fixed; inset: 0; background: rgba(20,18,58,.85); z-index: 60;
  display: grid; place-items: center; grid-auto-flow: column; gap: 14px; }
.carr-viewer img { height: min(84vh, 940px); aspect-ratio: 4/5; object-fit: contain;
  border-radius: 14px; background: #000; }
.carr-viewer p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  color: #cfcce8; font-size: 13px; }
.carr-nav { background: rgba(247,245,252,.14); color: #fff; border: none; border-radius: 50%;
  width: 52px; height: 52px; font-size: 30px; cursor: pointer; }
.carr-nav:hover { background: rgba(247,245,252,.28); }
