/* CH1. Шапка страницы «Тренеры»: одна строка на телефоне и без сдвигов при запуске кода. Claude Live, 24.11.2026.
   После входа код страницы ставит в шапку колокольчик (первым) и «Выйти» (последним). На касании до 399 px
   ряд значков тогда не помещается, и шапка вырастает с 54 до 85 px: страница сдвигается вниз на 31 px.
   1. Те же приёмы, что в My, Ленте и «Питании» (NH1): одна кнопка темы до 399 px, «Выйти» 44 x 44,
      логотип без подписи LIVE до 359 px. Только касание.
   2. Тот же договор, что в My и «Питании» (NH2): скрипт data-live-account-position ставит признак
      data-feed-opening-account-position, только если в браузере есть сохранённый вход. Пока корень
      открывается (data-live-opening), пустые ::before и ::after держат места колокольчика и «Выйти»
      той же ширины: 40 px до 767 px, 36 px от 768 px, «Выйти» на касании до 399 px 44 px. */
@media (pointer: coarse) and (max-width: 399px) {
  #coaches-root > header.tl-bar .tl-icons > .tl-theme > button[aria-pressed="true"] {
    display: none;
  }
  #coaches-root > header.tl-bar .tl-icons > button[data-coaches-logout] {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (pointer: coarse) and (max-width: 359px) {
  #coaches-root > header.tl-bar > a.tl-brand {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    gap: 0;
    justify-content: center;
  }
  #coaches-root > header.tl-bar > a.tl-brand > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

#coaches-root[data-live-opening] > header.tl-bar .tl-icons[data-feed-opening-account-position]::before,
#coaches-root[data-live-opening] > header.tl-bar .tl-icons[data-feed-opening-account-position]::after {
  content: "";
  width: 40px;
  min-width: 40px;
  height: 1px;
  flex: none;
  pointer-events: none;
}

@media (min-width: 768px) {
  #coaches-root[data-live-opening] > header.tl-bar .tl-icons[data-feed-opening-account-position]::before,
  #coaches-root[data-live-opening] > header.tl-bar .tl-icons[data-feed-opening-account-position]::after {
    width: 36px;
    min-width: 36px;
  }
}

@media (pointer: coarse) and (max-width: 399px) {
  #coaches-root[data-live-opening] > header.tl-bar .tl-icons[data-feed-opening-account-position]::after {
    width: 44px;
    min-width: 44px;
  }
}
