.rs-rein-face {
  display: inline-block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background: transparent url('/assets/rs-rein-faces-v2.png') 100% 100% / 300% 200% no-repeat;
}
.rs-rein-face[data-state="pending"] { background-position: 0 0; }
.rs-rein-face[data-state="processing"] { background-position: 50% 0; }
.rs-rein-face[data-state="completed"] { background-position: 100% 0; }
.rs-rein-face[data-state="cancelled"] { background-position: 0 100%; }
.rs-rein-face[data-state="failed"] { background-position: 50% 100%; }
.rs-rein-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rs-rein-status .rs-history-badge { max-width: none; }
.rs-rein-tracker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  background: linear-gradient(130deg, #252239, #171e2a);
  color: #f3ecfa;
  border: 1px solid #55446c;
  border-radius: 14px;
}
.rs-rein-tracker > div { flex: 1 1 140px; min-width: 0; }
.rs-rein-tracker strong, .rs-rein-tracker small { display: block; }
.rs-rein-tracker small { color: #c8bed7; }
.rs-rein-tracker p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rs-rein-tracker button { color: #f3ecfa; border: 1px solid #78678c; padding: 8px 12px; border-radius: 8px; min-height: 38px; }
.rs-rein-tracker button:disabled { opacity: .65; }
@media (max-width: 520px) {
  .rs-history-card .rs-history-card-top:has(.rs-rein-status) { flex-wrap: wrap; }
}
