.nh-train {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px));
  z-index: 80;
  direction: rtl;
  text-align: right;
  background: #1a0b0b;
  color: #fff6f2;
  border: 2px solid #ff4d4d;
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.nh-train[hidden] { display: none; }
.nh-train.flash { animation: nhAlarmFlash .8s steps(2, end) infinite; }
@keyframes nhAlarmFlash {
  50% { border-color: #ffd0d0; box-shadow: 0 0 0 4px rgba(255, 60, 60, .35); }
}
.nh-train .nh-kicker {
  font-size: 12px;
  letter-spacing: .04em;
  color: #ffb4b4;
  margin: 0 0 4px;
}
.nh-train h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
}
.nh-train p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; }
.nh-train .nh-state { color: #ffe08a; font-size: 15px; }
.nh-train .nh-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nh-train button {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  color: #1a0b0b;
}
.nh-train button.nh-res { background: #ffd84d; }
.nh-train button:disabled { opacity: .45; cursor: default; }
