/*
 * «Повторы» in «Бумага» (app/views/repeats): one sheet — the title and «+ Повтор», then three groups of
 * templates (active, paused, turned off). Rows share «Обзор»'s .row / .row__* (overview.css), without a
 * check; a paused or turned-off one carries a chip by its title. A row's actions are the «⋯» menu, as on
 * «Обзор». Turned off templates sit at the bottom, set apart as an archive.
 */
.repeats { max-width: 920px; margin: 0 auto; padding: 32px; }
.repeats__sheet { padding: 40px 48px 32px; container: repeats / inline-size; }
.repeats__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.repeats__title { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1.15; }
.repeats__intro { margin-top: 8px; max-width: 38em; font-size: 16px; color: var(--text-2); }

.repeats__group { margin-top: 32px; }
.repeats__group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.repeats__group-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.25; }
.repeats__count { font-size: 18px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.repeats__note, .repeats__empty { margin: 4px 0 8px; font-size: 16px; color: var(--text-2); }
.repeats__group--off { margin-top: 40px; padding-top: 28px; border-top: 2px dashed var(--line-strong); }
.repeats__group--off .row__title { color: var(--text-2); }

.tpl { align-items: center; padding: 12px 6px; }
.tpl .row__body { padding-top: 0; }
.tpl + .tpl::before { left: 6px; }

.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 14px;
  background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.3;
}
.chip--off { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); }

@media (max-width: 767px) {
  .repeats { padding: 16px; }
  .repeats__sheet { padding: 24px 16px; }
  .repeats__title { font-size: 30px; }
  .repeats__head .button { width: 100%; }
  .tpl { gap: 6px; padding: 10px 0; }
  .tpl + .tpl::before { left: 0; }
}
