/* Карточка «Ритм смены» на пульте под «Сейчас»: лента выдач, «Сейчас необычно», последняя остановка. Только токены tokens.css. */
.rhythm { gap: var(--space-3); }
.rhythm__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.rhythm__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.rhythm__key { font-size: 13px; line-height: 18px; color: var(--ink-3); }

/* Лента: столбик на выдачу, новые справа. Высота — интервал от предыдущей выдачи; пунктир — обычный такт */
.rhythm__bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 96px; font-size: 13px; padding-top: 2px; border-bottom: 1px solid var(--line-strong); }
.rhythm__bar { flex: 1 1 0; min-width: 4px; border-radius: 2px 2px 0 0; background: var(--ink-3); }
.rhythm__bar[data-kind="slow"] { background: var(--warn); }
.rhythm__pause { flex: none; align-self: stretch; display: flex; align-items: center; justify-content: center; width: 22px;
  border-left: 1px dashed var(--line-strong); border-right: 1px dashed var(--line-strong); color: var(--ink-2); }
.rhythm__pause span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: inherit; line-height: 18px; font-weight: 600; }
/* Подпись паузы стоит вертикально и должна помещаться в высоту ленты: «пауза 9 мин» — от 6 em, «9 мин» — от 2,9 em, ниже — только отметка-разрыв
   (время паузы тогда в плитке «Паузы» и во всплывающей подсказке отметки). Шрифт подписи наследуется от ленты, поэтому пороги в em растут вместе со шкалой
   пульта; высоту ленты задаёт сетка, так что подгоняем по ней, а не по высоте окна. Размер — внутренняя область ленты (без поля сверху и линии снизу). */
.rhythm__bars { container: rbars / size; }
@container rbars (max-height: 5.99em) { .rhythm__pause-word { display: none; } }
@container rbars (max-height: 2.89em) { .rhythm__pause span { display: none; } }
.rhythm__median { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--ink); opacity: .55; pointer-events: none; }
.rhythm__pace { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rhythm__empty { margin: 0; font-size: 16px; line-height: 22px; color: var(--ink-2); }

.rhythm__cols { display: grid; gap: var(--space-3); }
.rhythm__col { display: grid; align-content: start; gap: var(--space-3); min-width: 0; }
.rhythm__col:empty { display: none; }
@media (min-width: 1024px) {
  .rhythm__cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-5); }
}
.rhythm__sec { display: grid; gap: var(--space-1); }
.rhythm__sub { margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.rhythm__odd { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-1); }
.rhythm__odd li { position: relative; padding-left: var(--space-4); font-size: 15px; line-height: 21px; color: var(--ink); }
.rhythm__odd li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--warn); }
.rhythm__calm { margin: 0; font-size: 15px; line-height: 21px; color: var(--ink-2); }

/* Последняя остановка: вся строка — кнопка, открывает разбор остановки (карточка «Что показали сигналы») */
.rhythm__stop { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--target-min); padding: var(--space-2) var(--space-3);
  text-align: left; font: inherit; font-size: 15px; line-height: 21px; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; }
.rhythm__stop:hover { background: var(--surface-3); }
.rhythm__stop:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rhythm__stop-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.rhythm__stop .ps-ico { flex: none; width: 20px; height: 20px; color: var(--ink-3); }
@media (max-width: 599px) {
  .rhythm__bars { height: 80px; }
}
