/* Skanime — panel admin : notifications mobiles (/admin/notifications) + rappels « Notifier les abonnés ».
   Classes préfixées « adm-push- ». Couleurs = tokens de base.css (les 3 thèmes suivent), sauf les maquettes de
   téléphone qui imitent volontairement Android et iOS. Mobile d'abord, container queries sur .adm-page. */

/* ================================================================ */
/* Statistiques                                                      */
/* ================================================================ */

.adm-push-stats { margin-bottom: 18px; }
.adm-push-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-push-kpis > :first-child, .adm-push-plat { grid-column: 1 / -1; }
@container admpage (min-width: 760px) {
  .adm-push-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); }
  .adm-push-kpis > :first-child, .adm-push-plat { grid-column: auto; }
}
.adm-push-kpis .adm-kpi:nth-child(4) { animation-delay: 150ms; }

.adm-push-plat-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.adm-push-plat-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--text-dim);
  --plat: var(--accent-hot);
}
.adm-push-plat-row.is-android { --plat: var(--success); }
.adm-push-plat-row.is-ios { --plat: var(--ember); }
.adm-push-plat-row.is-desktop { --plat: var(--accent-hot); }
.adm-push-plat-row.is-other { --plat: var(--text-mute); }
.adm-push-plat-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-push-plat-bar { position: relative; height: 7px; overflow: hidden; border-radius: var(--radius-pill); background: var(--surface-3); }
.adm-push-plat-bar > span {
  display: block; height: 100%; min-width: 0; border-radius: inherit;
  background: var(--plat); box-shadow: 0 0 10px -2px var(--plat);
  transition: width 600ms var(--ease-out);
}
.adm-push-plat-n { min-width: 2ch; text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ================================================================ */
/* Carte « Personne n'est encore abonné »                            */
/* ================================================================ */

.adm-push-how { overflow: hidden; padding: 20px 18px 18px; border-color: var(--border-strong); }
.adm-push-how > :not(.adm-push-how-glow) { position: relative; }
.adm-push-how-glow {
  position: absolute; left: -10%; right: -10%; top: -55%; height: 280px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent); opacity: 0.28; pointer-events: none;
}
.adm-push-how-head { display: flex; align-items: flex-start; gap: 14px; }
.adm-push-how-bell {
  display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  color: var(--on-accent);
  background: radial-gradient(circle at 30% 25%, var(--accent-hot), var(--accent) 60%, var(--accent-deep));
  box-shadow: 0 0 0 6px var(--accent-soft), 0 10px 30px -8px var(--accent-glow);
}
.adm-push-how-bell .icon { transform-origin: 50% 10%; animation: adm-push-ring 3.2s var(--ease) infinite; }
@keyframes adm-push-ring {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 86% { transform: rotate(8deg); } 92% { transform: rotate(-4deg); }
}
.adm-push-how-title { font-family: var(--adm-display); font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.adm-push-how-sub { margin-top: 4px; font-size: 13.5px; color: var(--text-dim); }
.adm-push-how-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
@container admpage (min-width: 760px) { .adm-push-how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm-push-how-step {
  display: flex; gap: 12px; min-width: 0; padding: 12px;
  border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
}
.adm-push-how-step strong { display: block; font-size: 14px; line-height: 1.3; }
.adm-push-how-step p { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }
.adm-push-how-ico {
  display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  color: var(--accent-hot); background: var(--accent-soft);
}
.adm-push-how-foot { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--text-mute); }
.adm-push-how-foot .icon { flex-shrink: 0; margin-top: 2px; }

/* ================================================================ */
/* Mise en page : rédaction + aperçu + barre d'envoi                 */
/* ================================================================ */

.adm-push-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "compose" "preview" "send";
  column-gap: 20px; align-items: start;
}
.adm-push-compose { grid-area: compose; }
.adm-push-preview { grid-area: preview; }
.adm-push-sendbar { grid-area: send; }
@container admpage (min-width: 900px) {
  .adm-push-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); grid-template-areas: "compose preview" "send preview"; }
  .adm-push-preview { position: sticky; top: calc(var(--adm-top) + 20px); }
}

/* ---------------- Formulaire ---------------- */

.adm-push-form { display: flex; flex-direction: column; gap: 22px; }
.adm-push-hint-top { margin: -2px 0 4px; }
.adm-push-body-in { min-height: 96px; }
.adm-push-form .adm-counter.is-over { color: var(--danger); font-weight: 700; }
.adm-push-mono-in { font-family: var(--adm-mono); font-size: 14px; }
.adm-push-form .adm-seg { display: flex; width: 100%; }
.adm-push-form .adm-seg-btn { flex: 1 1 0; justify-content: center; min-width: 0; }
@container admpage (max-width: 400px) { .adm-push-form .adm-seg-btn .icon { display: none; } .adm-push-form .adm-seg-btn { padding: 0 8px; } }
.adm-push-sub { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; min-width: 0; }
.adm-push-img-hint { margin-top: 8px; }

/* Recherche + résultats */
.adm-push-picker { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.adm-push-picker .adm-search { flex: 0 0 auto; } /* .adm-search a flex-basis 260px (barres d'outils en ligne) */
.adm-push-results { display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: opacity var(--t); }
.adm-push-results.is-busy { opacity: 0.55; }
.adm-push-results-cap { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.adm-push-results-empty {
  padding: 12px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong);
  font-size: 13px; color: var(--text-mute); text-align: center;
}
.adm-push-results-empty.is-error { color: var(--danger); border-color: rgba(255, 77, 109, 0.35); }
.adm-push-result {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 7px 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
  color: var(--text); text-align: left;
  transition: background var(--t), border-color var(--t), transform var(--t-fast) var(--ease);
}
.adm-push-result:hover, .adm-push-result:focus-visible { border-color: var(--border-strong); background: var(--accent-soft); }
.adm-push-result:hover .adm-push-result-go { color: var(--on-accent); background: var(--accent); }
.adm-push-result:active { transform: scale(0.99); }
.adm-push-result-thumb {
  display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
  width: 34px; height: 50px; border-radius: 6px;
  color: var(--text-mute); background: var(--surface-3);
}
.adm-push-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-push-result-thumb.is-round { width: 36px; height: 36px; border-radius: 50%; background: none; overflow: visible; }
.adm-push-result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-push-result-name { font-size: 14px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-push-result-sub { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--text-mute); }
.adm-push-result-sub .badge { height: 18px; padding: 0 6px; font-size: 10px; flex-shrink: 0; }
.adm-push-result-sub .adm-mono { font-size: 11px; min-width: 0; }
.adm-push-result-go {
  display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  color: var(--text-mute); background: rgba(255, 255, 255, 0.05);
  transition: color var(--t), background var(--t);
}

/* Élément choisi (titre ou membre) */
.adm-push-chosen {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0; padding: 10px 12px;
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: linear-gradient(120deg, var(--accent-soft), transparent 75%);
}
.adm-push-chosen-text { flex: 1 1 0; min-width: 0; }
.adm-push-chosen-name { font-size: 14.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-push-chosen-sub { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 3px; font-size: 12px; color: var(--text-mute); }
.adm-push-chosen-sub .badge { height: 18px; padding: 0 6px; font-size: 10px; flex-shrink: 0; }
.adm-push-chosen-sub .adm-mono { font-size: 11px; min-width: 0; }
.adm-push-warn { flex-basis: 100%; display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12px; line-height: 1.4; color: var(--warning); }
.adm-push-warn .icon { flex-shrink: 0; margin-top: 1px; }

/* Cible */
.adm-push-targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.adm-push-target {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 60px; padding: 10px 26px 10px 10px;
  border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.025);
  color: var(--text); text-align: left;
  transition: background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t-fast) var(--ease);
}
.adm-push-target:hover { border-color: var(--border-strong); }
.adm-push-target:active { transform: scale(0.98); }
.adm-push-target[aria-checked="true"] {
  border-color: var(--accent-hot); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-hot), 0 10px 26px -16px var(--accent-glow);
}
.adm-push-target-ico {
  display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px;
  color: var(--accent-hot); background: var(--accent-soft);
}
.adm-push-target[aria-checked="true"] .adm-push-target-ico { color: var(--on-accent); background: var(--accent); }
.adm-push-target-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-push-target-name { font-size: 13.5px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.adm-push-target-sub { font-size: 11.5px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.adm-push-target-check {
  position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  color: var(--on-accent); background: var(--accent);
  opacity: 0; transform: scale(0.5); transition: opacity var(--t), transform var(--t) var(--ease-out);
}
.adm-push-target[aria-checked="true"] .adm-push-target-check { opacity: 1; transform: none; }
@container admpage (max-width: 380px) { .adm-push-target-ico { display: none; } }
.adm-push-target-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--text-mute); }
.adm-push-target-note .icon { flex-shrink: 0; margin-top: 2px; }

/* ---------------- Barre d'envoi ---------------- */

.adm-push-sendbar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 12px var(--gutter) calc(12px + var(--safe-bottom));
  border-radius: 0; border: 0; border-top: 1px solid var(--accent);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 -14px 34px -14px rgba(0, 0, 0, 0.7), 0 -8px 34px -18px var(--accent-glow);
}
.adm-push-send-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-push-send-text strong { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.adm-push-send-text span { font-size: 12px; line-height: 1.35; color: var(--text-mute); }
.adm-push-send-btn { flex-shrink: 0; min-width: 132px; }
@container admpage (max-width: 400px) { .adm-push-send-btn { min-width: 0; padding: 0 18px; } .adm-push-send-text span { display: none; } }
@container admpage (min-width: 900px) {
  .adm-push-sendbar {
    position: relative; bottom: auto; margin: 0 0 18px; padding: 16px 18px;
    border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
    background: linear-gradient(110deg, var(--accent-soft), transparent 65%), linear-gradient(180deg, var(--surface), var(--bg-elev));
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: var(--shadow-sm), 0 14px 40px -24px var(--accent-glow);
  }
}
body:has(.adm-push-sendbar) #toasts { bottom: calc(110px + var(--safe-bottom)); }
@media (min-width: 1024px) { body:has(.adm-push-sendbar) #toasts { bottom: 24px; } }

/* ================================================================ */
/* Aperçu : maquettes Android et iPhone                              */
/* ================================================================ */

.adm-push-stage {
  display: flex; flex-direction: column; gap: 18px; padding: 18px 14px 20px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
  background:
    radial-gradient(120% 70% at 0% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(100% 70% at 100% 100%, var(--ember-soft), transparent 65%),
    linear-gradient(165deg, var(--accent-deep), var(--bg) 85%);
}
.adm-push-mock-cap {
  display: flex; align-items: center; gap: 6px; margin-bottom: 7px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
}
.adm-push-mock .is-ph { opacity: 0.5; font-style: italic; }
.adm-push-and-body, .adm-push-ios-body { white-space: pre-line; }
.adm-push-mock-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: rgba(255, 255, 255, 0.75); }
.adm-push-mock-note .icon { flex-shrink: 0; }

/* Android (Material You, sombre) */
.adm-push-and {
  padding: 12px 14px 14px; border-radius: 24px;
  font-family: Roboto, 'Google Sans', var(--font-body);
  color: #e6e0e9; background: #2b2930;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.adm-push-and-head { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; color: #cac4d0; }
.adm-push-and-badge { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.adm-push-and-badge img { width: 12px; height: 12px; }
.adm-push-and-app { font-weight: 600; color: #e6e0e9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-push-and-dot { opacity: 0.7; }
.adm-push-and-chev { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; margin-left: auto; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.adm-push-and-main { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; }
.adm-push-and-text { flex: 1; min-width: 0; }
.adm-push-and-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.3; color: #f4eff4; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.adm-push-and-body {
  margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: #cac4d0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
.adm-push-and-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.adm-push-and-img { margin-top: 10px; overflow: hidden; aspect-ratio: 2 / 1; border-radius: 14px; background: #1d1b20; }
.adm-push-and-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-push-and-img.is-broken { display: grid; place-items: center; padding: 12px; text-align: center; font-size: 12px; color: #cac4d0; border: 1px dashed rgba(255, 255, 255, 0.2); }
.adm-push-and-img.is-broken img { display: none; }

/* iPhone (écran verrouillé, verre dépoli) */
.adm-push-ios {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px 12px; border-radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--font-body);
  color: #fff; background: rgba(48, 38, 70, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 10px 28px rgba(0, 0, 0, 0.35);
}
.adm-push-ios-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.adm-push-ios-main { flex: 1; min-width: 0; }
.adm-push-ios-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.adm-push-ios-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-push-ios-time { flex-shrink: 0; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.adm-push-ios-body {
  margin-top: 1px; font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, 0.92); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}

.adm-push-pv-link { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 12px; font-size: 12.5px; color: var(--text-dim); }
.adm-push-pv-link .icon { flex-shrink: 0; color: var(--text-mute); }
.adm-push-pv-link span { flex-shrink: 0; }
.adm-push-pv-link .adm-mono { flex: 1; min-width: 0; color: var(--accent-hot); }
.adm-push-pv-foot { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--text-mute); }

/* ================================================================ */
/* Historique                                                        */
/* ================================================================ */

.adm-push-hist { display: flex; flex-direction: column; gap: 10px; transition: opacity var(--t); }
.adm-push-hist.is-busy { opacity: 0.5; pointer-events: none; }
.adm-push-hrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "date status" "main main" "target target" "res res";
  align-items: center; gap: 8px 12px; min-width: 0; padding: 12px;
  border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.adm-push-hrow.is-sending { border-color: var(--border-strong); box-shadow: inset 3px 0 0 var(--accent-hot); }
.adm-push-hrow.is-cancelled .adm-push-h-main { opacity: 0.65; }
.adm-push-hrow-head { display: none; }
.adm-push-h-date { grid-area: date; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; font-size: 12px; color: var(--text-dim); }
.adm-push-h-by { color: var(--text-mute); font-size: 11.5px; }
.adm-push-h-main { grid-area: main; display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.adm-push-h-thumb { flex-shrink: 0; width: 64px; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 6px; background: var(--surface-3); }
.adm-push-h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-push-h-text { flex: 1; min-width: 0; }
.adm-push-h-title { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-push-h-body {
  margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.adm-push-h-link { display: block; margin-top: 3px; font-size: 11px; color: var(--accent-hot); }
.adm-push-h-link:hover { text-decoration: underline; }
.adm-push-h-target { grid-area: target; min-width: 0; }
.adm-push-h-target .adm-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 20px; }
.adm-push-h-res { grid-area: res; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.adm-push-h-n { display: inline-flex; align-items: center; gap: 3px; }
.adm-push-h-n.is-sent { color: var(--success); }
.adm-push-h-n.is-failed { color: var(--danger); }
.adm-push-h-n.is-removed { color: var(--text-mute); }
.adm-push-h-total { font-size: 11.5px; font-weight: 500; color: var(--text-mute); }
.adm-push-h-status { grid-area: status; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
.adm-push-h-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.adm-push-status {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.adm-push-status.is-done { color: var(--success); background: rgba(61, 220, 132, 0.14); }
.adm-push-status.is-sending { color: var(--accent-hot); background: var(--accent-soft); }
.adm-push-status.is-cancelled { color: var(--text-mute); background: rgba(255, 255, 255, 0.05); }
/* Mobile : un envoi interrompu montre ses boutons sous la carte, pleine largeur. */
@container admpage (max-width: 759px) {
  .adm-push-hrow.is-sending { grid-template-areas: "date status" "main main" "target target" "res res" "acts acts"; }
  .adm-push-hrow.is-sending .adm-push-h-status { display: contents; }
  .adm-push-hrow.is-sending .adm-push-status { grid-area: status; justify-self: end; }
  .adm-push-hrow.is-sending .adm-push-h-actions { grid-area: acts; justify-content: flex-start; }
}

@container admpage (min-width: 760px) {
  .adm-push-hist { gap: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }
  .adm-push-hrow {
    grid-template-columns: 112px minmax(0, 1fr) 150px 150px 118px;
    grid-template-areas: "date main target res status";
    gap: 12px 16px; padding: 12px 16px;
    border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none;
  }
  .adm-push-hrow:hover { background: rgba(255, 255, 255, 0.02); }
  .adm-push-hrow-head {
    display: grid; padding: 11px 16px; border-top: 0;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute);
    background: rgba(255, 255, 255, 0.02);
  }
  .adm-push-hrow-head > * { display: block; font: inherit; color: inherit; }
  .adm-push-h-date { flex-direction: column; align-items: flex-start; }
  .adm-push-h-res { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2px 10px; }
  .adm-push-h-total { grid-column: 1 / -1; }
  .adm-push-h-status { align-items: flex-start; }
  .adm-push-h-actions { justify-content: flex-start; }
}
@container admpage (min-width: 1100px) {
  .adm-push-hrow { grid-template-columns: 124px minmax(0, 1fr) 180px 170px 128px; }
}

/* ================================================================ */
/* Fenêtre d'envoi (modal, hors de .adm)                             */
/* ================================================================ */

.adm-push-run { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adm-push-run-msg {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13px; color: var(--text-dim);
}
.adm-push-run-msg strong { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-push-run-msg span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.adm-push-run-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-push-run-n {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--radius-pill);
  font-size: 12.5px; color: var(--text-dim); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
}
.adm-push-run-n strong { color: var(--text); font-variant-numeric: tabular-nums; }
.adm-push-run-n.is-sent .icon { color: var(--success); }
.adm-push-run-n.is-failed .icon { color: var(--danger); }
.adm-push-run-n.is-removed .icon { color: var(--text-mute); }
.adm-push-modal-help { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--text-mute); }
.adm-push-modal-help .icon { flex-shrink: 0; margin-top: 2px; }
.adm-push-run-err { margin: 0; font-size: 13px; line-height: 1.45; color: var(--warning); }
.adm-push-done { display: flex; align-items: center; gap: 14px; min-width: 0; }
.adm-push-done > div { min-width: 0; }
.adm-push-done-title { font-family: var(--font-brand); font-weight: 800; font-size: 20px; line-height: 1.2; }
.adm-push-done-sub { margin-top: 2px; font-size: 13px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-push-done-help {
  list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px; line-height: 1.45; color: var(--text-mute);
}
.adm-push-done-help strong { color: var(--text-dim); }

/* ================================================================ */
/* Rappel « Notifier les abonnés » (liste des contenus)              */
/* ================================================================ */

.adm-push-nudge {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0;
  margin-bottom: 16px; padding: 12px 14px;
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: linear-gradient(110deg, var(--accent-soft), var(--ember-soft) 95%), var(--surface);
  box-shadow: 0 12px 30px -20px var(--accent-glow);
  animation: adm-in 420ms var(--ease-out) both;
}
.adm-push-nudge-ico {
  display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  color: var(--on-accent); background: radial-gradient(circle at 30% 25%, var(--accent-hot), var(--accent));
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.adm-push-nudge-text { flex: 1 1 180px; min-width: 0; }
.adm-push-nudge-text strong { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.adm-push-nudge-text span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-dim); }
.adm-push-nudge-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ================================================================ */
/* Écrans tactiles                                                   */
/* ================================================================ */

/* admin.css donne 44 px de haut à .adm-mono au toucher (liens) : les chemins affichés ici ne sont que du texte. */
.adm-push-result-sub .adm-mono, .adm-push-chosen-sub .adm-mono, .adm-push-pv-link .adm-mono { display: block; min-height: 0; }
@media (pointer: coarse) {
  /* Le lien de l'historique garde sa zone de toucher de 44 px sans creuser la carte. */
  .adm-push-h-link { display: flex; margin: -9px 0 -13px; }
  .adm-push-result { min-height: 52px; }
}
