/* «Состояние сервиса» (#/health): колонка карточек, как «Доступ»; работает и на телефоне. */
.cl-hl {
  min-height: 100%;
  padding: 20px 0 40px;
  background: var(--background-page);
}
.cl-hl__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.cl-hl__head { justify-content: space-between; gap: 12px; height: auto; min-height: 54px; padding: 10px 12px 10px 20px; }
.cl-hl__title { font-size: 16px; font-weight: var(--font-weight-medium); line-height: 22px; color: var(--text-primary); }
.cl-hl__caption { font-size: 13px; line-height: 18px; color: var(--text-caption); text-align: right; }
.cl-hl__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; }
.cl-hl__muted { font-size: 13px; line-height: 18px; color: var(--text-caption); }
.cl-hl__ok { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--success-text); }
.cl-hl__ok .cl-icon { flex: none; }
.cl-hl__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* --- Сводка сверху --- */
.cl-hl__hero { display: flex; flex-direction: column; }
.cl-hl__verdict { display: flex; align-items: center; gap: 16px; padding: 18px 12px 18px 20px; }
.cl-hl__verdict-text { flex: 1; min-width: 0; }
.cl-hl__verdict-title { font-size: 20px; font-weight: var(--font-weight-medium); line-height: 26px; color: var(--text-primary); }
.cl-hl__verdict-count { font-size: 16px; font-weight: var(--font-weight-regular); color: var(--text-secondary); }
.cl-hl__verdict-sub { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--text-caption); }
.cl-hl__beat {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.cl-hl__beat::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  animation: cl-hl-beat 2.4s ease-out infinite;
}
.is-ok .cl-hl__beat { color: var(--success-text); background: var(--success-background); }
.is-warn .cl-hl__beat { color: var(--warning-text); background: var(--warning-background); }
.is-error .cl-hl__beat { color: var(--danger-text); background: var(--danger-background); }
.is-warn .cl-hl__beat::after { animation-duration: 1.6s; }
.is-error .cl-hl__beat::after { animation-duration: 1s; }
@keyframes cl-hl-beat {
  0% { transform: scale(1); opacity: var(--hl-beat-opacity); }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .cl-hl__beat::after { animation: none; } }

.cl-hl__problems { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-primary-default); }
.cl-hl__problem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}
.cl-hl__problem + .cl-hl__problem { border-top: 1px solid var(--border-primary-default); }
.cl-hl__problem .cl-icon { flex: none; margin-top: 1px; }
.cl-hl__problem.is-error .cl-icon { color: var(--danger-text); }
.cl-hl__problem.is-warn .cl-icon { color: var(--warning-text); }
.cl-hl__problem-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cl-hl__problem-link { flex: none; font-size: 14px; }

/* --- Пульс --- */
.cl-hl__stats { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.cl-hl__stat { display: flex; flex-direction: column; }
.cl-hl__stat-value { font-size: 24px; font-weight: var(--font-weight-medium); line-height: 30px; color: var(--text-primary); }
.cl-hl__stat-value.is-in { color: var(--hl-bar-in); }
.cl-hl__stat-value.is-out { color: var(--hl-bar-out-text); }
.cl-hl__stat-label { font-size: 13px; line-height: 18px; color: var(--text-caption); }
.cl-hl__chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px;
  height: 140px;
  padding-top: 4px;
}
.cl-hl__bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 0; height: 100%; }
.cl-hl__bar-stack {
  display: flex;
  flex-direction: column;
  min-height: 2px;
  overflow: hidden;
  border-radius: var(--radius-4) var(--radius-4) 0 0;
  background: var(--grey-100);
  transition: height .4s ease;
}
.cl-hl__bar-out { flex-basis: 0; background: var(--hl-bar-out); }
.cl-hl__bar-in { flex-basis: 0; background: var(--hl-bar-in); }
.cl-hl__bar.is-now .cl-hl__bar-stack { opacity: .65; }
.cl-hl__bar:hover .cl-hl__bar-stack { outline: 2px solid var(--brand-300); }
.cl-hl__bar-hour { height: 14px; font-size: 11px; line-height: 14px; text-align: center; color: var(--text-caption); }
.cl-hl__people { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-hl__chip {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-secondary);
  background: var(--brand-90);
}

/* --- Строки каналов и рассылок --- */
.cl-hl__row { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
.cl-hl__row-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cl-hl__project { font-size: 13px; font-weight: var(--font-weight-regular); line-height: 18px; color: var(--text-caption); }
.cl-hl__row-error { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--danger-text); overflow-wrap: anywhere; }
.cl-hl__row-note { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--warning-text); }
.cl-hl__progress { margin-top: 6px; max-width: 320px; }
.cl-hl__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-8);
  color: var(--icon-brand);
  background: var(--brand-100);
}
.cl-hl__subhead {
  padding: 10px 20px 6px;
  border-top: 1px solid var(--border-primary-default);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 18px;
  color: var(--text-caption);
}

/* --- Очередь, сервер, копии --- */
.cl-hl__line { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.cl-hl__line-main { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cl-hl__meter { display: flex; flex-direction: column; gap: 6px; }
.cl-hl__meter-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; line-height: 20px; color: var(--text-primary); }
.cl-hl__facts { display: flex; flex-direction: column; gap: 6px; }
.cl-hl__fact { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; color: var(--text-primary); }
.cl-hl__fact > :last-child { text-align: right; overflow-wrap: anywhere; }
.cl-hl__threads { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- Оповещения в Telegram --- */
.cl-hl__text { font-size: 14px; line-height: 21px; color: var(--text-secondary); overflow-wrap: anywhere; }
.cl-hl__steps { margin: 0; padding-left: 20px; list-style: decimal; font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.cl-hl__steps li + li { margin-top: 4px; }
.cl-hl__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-hl__body > .cl-field { max-width: 480px; }

/* --- Журнал --- */
.cl-hl__log {
  display: grid;
  grid-template-columns: 132px minmax(0, 120px) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 20px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
}
.cl-hl__log + .cl-hl__log { border-top: 1px solid var(--border-primary-default); }
.cl-hl__log-at { color: var(--text-caption); }
.cl-hl__log-text { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .cl-hl__pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cl-hl__column { gap: 12px; padding: 0 12px; }
  .cl-hl__body { padding: 14px 16px; }
  .cl-hl__verdict { padding: 14px 8px 14px 16px; gap: 12px; }
  .cl-hl__verdict-title { font-size: 17px; line-height: 22px; }
  .cl-hl__problem { padding: 10px 16px; }
  .cl-hl__chart { gap: 2px; height: 110px; }
  .cl-hl__log { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 16px; }
}
