/* CL-DC1, Claude Live, 20.11.2026. Компактные навигаторы даты, месяца и периода в Live: одна система правил.
   Вид: стрелка, компактная дата по центру, стрелка. Стрелки монохромные, без рамки, область нажатия 44 x 44.
   Поле даты или месяца нативное, с тонкой рамкой, ширина по самой длинной строке (на iPhone «сентябрь 2026 г.»
   и «28 февр. 2026 г.»: 16 знаков моноширинного шрифта), не на всю строку. Между стрелкой и полем зазор,
   поле и стрелки не заходят друг на друга ни рамкой, ни областью нажатия.
   Причина наложения на iPhone: поле стоит во всю колонку сетки (width: 100% из mobile-layout.506f4da3746f.css),
   а WebKit на iPhone для нативного поля даты и месяца со своим оформлением (appearance: auto) и шириной не в px
   считает ширину без полей и рамки (content-box): поле шире колонки ровно на поля и рамку (на снимках 18 и 26 px)
   и заходит под правую стрелку. Прежняя правка ширины 1px для даты «Питания» в CSS Live перебита тем же
   mobile-layout (выше специфичность, файл позже). Здесь у поля appearance: none, ширина задана явно (на iPhone
   в px), колонка поля по его ширине (minmax(0, max-content)), поля по бокам малые.
   Разметка, тексты, подписи для диктора и скрипты не меняются; шрифт приложения не уменьшается, край страницы
   не скрывается. Только :root[data-live-ui="v2"]. */

:root[data-live-ui="v2"] {
  --dc1-gap: 4px;
  --dc1-field-w: calc(16ch + 44px);
  --dc1-prev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 6-6 6 6 6'/%3E%3C/svg%3E");
  --dc1-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E");
}

/* 1. Ряд навигатора: стрелка, середина по своей ширине, стрелка; группа по центру своей строки. */
:root[data-live-ui="v2"] :is(
  #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month,
  .lc191-picker .lw-history-month,
  .vp-calendar-toolbar > .vp-calendar-month,
  #workout .tr-records nav.tr-records-range,
  main#app.me .st-nav
):not([hidden]) {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(0, max-content) 44px;
  grid-auto-rows: auto;
  justify-content: center;
  align-items: center;
  column-gap: var(--dc1-gap);
  row-gap: 6px;
  min-width: 0;
  max-width: 100%;
}
:root[data-live-ui="v2"] #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month:not([hidden]) { width: auto; }

/* «Питание»: стрелка, дата, стрелка и отдельно «Открыть день». Подпись «Дата» остаётся подписью поля для диктора
   и нажатия, но не видна: у даты своя понятная строка, как у месяца в «Моих тренировках». */
:root[data-live-ui="v2"] #nutrition-root:not(.te-feed-page) form.nutrition-date > div:not([hidden]) {
  box-sizing: border-box;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 44px minmax(0, max-content) 44px 52px;
  justify-content: start;
  align-items: center;
  column-gap: var(--dc1-gap);
  min-width: 0;
  max-width: 100%;
}
:root[data-live-ui="v2"] :is(#nutrition-root:not(.te-feed-page) form.nutrition-date > label[for="ration-date"], .lc191-picker .lw-history-month > label > span) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Середина: каждый элемент в своей колонке; «Текущий месяц» отдельной строкой под датой. */
:root[data-live-ui="v2"] #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > .lw-history-arrow:first-child,
:root[data-live-ui="v2"] .lc191-picker .lw-history-month > .lw-history-arrow:first-child { grid-column: 1; grid-row: 1; }
:root[data-live-ui="v2"] #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > .lw-history-month-input,
:root[data-live-ui="v2"] .lc191-picker .lw-history-month > label { grid-column: 2; grid-row: 1; }
:root[data-live-ui="v2"] #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > .lw-history-month-input + .lw-history-arrow,
:root[data-live-ui="v2"] .lc191-picker .lw-history-month > label + .lw-history-arrow { grid-column: 3; grid-row: 1; }
:root[data-live-ui="v2"] :is(#workout .lw-library-history .lw-calendar-toolbar-2933, .lc191-picker) .lw-history-month > .lw-history-current:not([hidden]) {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}
:root[data-live-ui="v2"] .lc191-picker .lw-history-month:not([hidden]) { align-items: center; margin: 16px 0; }
:root[data-live-ui="v2"] .lc191-picker .lw-history-month > label { display: block; position: relative; min-width: 0; max-width: 100%; justify-self: center; }
:root[data-live-ui="v2"] .vp-calendar-toolbar > .vp-calendar-month:not([hidden]) { flex: 1 1 auto; }
:root[data-live-ui="v2"] #nutrition-root:not(.te-feed-page) form.nutrition-date > div > button[type="submit"] {
  justify-self: end;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}

/* 2. Стрелки: без рамки и заливки, монохромный знак по центру, область 44 x 44. Текстовый знак кнопки скрыт
   размером 0 (имя для диктора из aria-label не меняется). */
:root[data-live-ui="v2"] :is(
  #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > .lw-history-arrow,
  .lc191-picker .lw-history-month > .lw-history-arrow,
  #nutrition-root:not(.te-feed-page) form.nutrition-date > div > button[data-day],
  .vp-calendar-toolbar > .vp-calendar-month > button[data-vpc-action],
  #workout .tr-records nav.tr-records-range > button,
  main#app.me .st-nav > button.st-step
) {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--tl-r2, 6px);
  background: transparent;
  box-shadow: none;
  color: var(--tl-ink);
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  cursor: pointer;
}
:root[data-live-ui="v2"] main#app.me .st-nav > button.st-step > * { display: none; }
:root[data-live-ui="v2"] :is(
  #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > .lw-history-arrow,
  .lc191-picker .lw-history-month > .lw-history-arrow,
  #nutrition-root:not(.te-feed-page) form.nutrition-date > div > button[data-day],
  .vp-calendar-toolbar > .vp-calendar-month > button[data-vpc-action],
  #workout .tr-records nav.tr-records-range > button,
  main#app.me .st-nav > button.st-step
)::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  background: currentColor;
  transform: none;
  -webkit-mask: var(--dc1-prev) center / contain no-repeat;
  mask: var(--dc1-prev) center / contain no-repeat;
}
:root[data-live-ui="v2"] :is(
  #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > .lw-history-month-input + .lw-history-arrow,
  .lc191-picker .lw-history-month > label + .lw-history-arrow,
  #nutrition-root:not(.te-feed-page) form.nutrition-date > div > button[data-day="1"],
  .vp-calendar-toolbar > .vp-calendar-month > button[data-vpc-action="next"],
  #workout .tr-records nav.tr-records-range > button:is([data-record-next], [data-performance-next]),
  main#app.me .st-nav > button.st-step[data-dir="next"]
)::before {
  -webkit-mask-image: var(--dc1-next);
  mask-image: var(--dc1-next);
}
:root[data-live-ui="v2"] :is(
  #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > .lw-history-arrow,
  .lc191-picker .lw-history-month > .lw-history-arrow,
  #nutrition-root:not(.te-feed-page) form.nutrition-date > div > button[data-day],
  .vp-calendar-toolbar > .vp-calendar-month > button[data-vpc-action],
  #workout .tr-records nav.tr-records-range > button,
  main#app.me .st-nav > button.st-step
):disabled { opacity: .35; cursor: default; }
@media (hover: hover) {
  :root[data-live-ui="v2"] :is(
    #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > .lw-history-arrow,
    .lc191-picker .lw-history-month > .lw-history-arrow,
    #nutrition-root:not(.te-feed-page) form.nutrition-date > div > button[data-day],
    .vp-calendar-toolbar > .vp-calendar-month > button[data-vpc-action],
    #workout .tr-records nav.tr-records-range > button,
    main#app.me .st-nav > button.st-step
  ):not(:disabled):hover { background: var(--tl-line); color: var(--tl-ink); }
}

/* 3. Поле даты или месяца: компактное, по центру своей колонки, тонкая рамка, текст по центру.
   appearance: none, чтобы WebKit на iPhone не пересчитывал ширину поля без полей и рамки. */
:root[data-live-ui="v2"] :is(
  #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > input.lw-history-month-input,
  .lc191-picker .lw-history-month > label > input[type="month"],
  #nutrition-root:not(.te-feed-page) form.nutrition-date > div > input#ration-date,
  .vp-calendar-toolbar > .vp-calendar-month > input[data-vpc-month]
) {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  flex: none;
  justify-self: center;
  inline-size: var(--dc1-field-w);
  width: var(--dc1-field-w);
  min-inline-size: 0;
  min-width: 0;
  max-inline-size: 100%;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 4px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r2, 6px);
  background: transparent;
  box-shadow: none;
  color: var(--tl-ink);
  font-family: var(--tl-font);
  font-size: 14px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}
@media (pointer: coarse) {
  :root[data-live-ui="v2"] :is(
    #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > input.lw-history-month-input,
    .lc191-picker .lw-history-month > label > input[type="month"],
    #nutrition-root:not(.te-feed-page) form.nutrition-date > div > input#ration-date,
    .vp-calendar-toolbar > .vp-calendar-month > input[data-vpc-month]
  ) { font-size: 16px; }
}
:root[data-live-ui="v2"][data-theme="trs"] :is(
  #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > input.lw-history-month-input,
  .lc191-picker .lw-history-month > label > input[type="month"],
  #nutrition-root:not(.te-feed-page) form.nutrition-date > div > input#ration-date,
  .vp-calendar-toolbar > .vp-calendar-month > input[data-vpc-month]
) { font-weight: 400; }
:root[data-live-ui="v2"] :is(
  #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > input.lw-history-month-input,
  .lc191-picker .lw-history-month > label > input[type="month"],
  #nutrition-root:not(.te-feed-page) form.nutrition-date > div > input#ration-date,
  .vp-calendar-toolbar > .vp-calendar-month > input[data-vpc-month]
)::-webkit-date-and-time-value {
  min-width: 0;
  margin: 0;
  text-align: center;
}

/* iPhone (WebKit с касаниями, шрифт поля 16 px): ширина в px (16 знаков по 9,6 px и 44 px), значение по центру поля
   по вертикали и по горизонтали, без полей по бокам. Ширина в px отключает подстройку WebKit iPhone так же, как прежняя
   правка ширины 1px в CSS Live (IMG_8703); даже если поле посчитается без полей и рамки, оно станет шире только на рамку
   2 px, это меньше зазора 4 px до стрелки. */
@supports (-webkit-touch-callout: none) {
  :root[data-live-ui="v2"] :is(
    #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > input.lw-history-month-input,
    .lc191-picker .lw-history-month > label > input[type="month"],
    #nutrition-root:not(.te-feed-page) form.nutrition-date > div > input#ration-date,
    .vp-calendar-toolbar > .vp-calendar-month > input[data-vpc-month]
  ) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 198px;
    width: 198px;
    padding-inline: 0;
  }
}

/* Фокус с клавиатуры виден внутри своей области и не заходит на соседа. */
:root[data-live-ui="v2"] :is(
  #workout .lw-library-history .lw-calendar-toolbar-2933 > .lw-history-month > :is(.lw-history-arrow, input),
  .lc191-picker .lw-history-month > .lw-history-arrow,
  .lc191-picker .lw-history-month > label > input,
  #nutrition-root:not(.te-feed-page) form.nutrition-date > div > :is(button[data-day], input#ration-date),
  .vp-calendar-toolbar > .vp-calendar-month > :is(button[data-vpc-action], input[data-vpc-month]),
  #workout .tr-records nav.tr-records-range > button,
  main#app.me .st-nav > button.st-step
):focus-visible { outline: 2px solid var(--tl-mint); outline-offset: -2px; }

/* 4. Подпись периода без поля («Рекорды», «Динамика», «Статистика»): компактно по центру между стрелками. */
:root[data-live-ui="v2"] :is(
  #workout .tr-records nav.tr-records-range > :is([data-record-range-label], [data-performance-range]),
  main#app.me .st-nav > .st-nav-title
) {
  grid-column: 2;
  grid-row: 1;
  flex: none;
  min-width: 0;
  max-width: 100%;
  justify-self: center;
  color: var(--tl-ink);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
