/* Партнёрская программа: свои мелочи поверх products/ui-kit (сам пакет — public/ui/, руками не править). */
.hub-doc h2 { font-size: 17px; margin: 20px 0 6px; }
.hub-doc h2:first-child { margin-top: 0; }
.hub-doc p { margin: 8px 0; line-height: 1.6; }
.hub-platform { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 8px; }
.hub-terms { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.hub-choose { display: grid; gap: 10px; }
.hub-plus { color: var(--ui-ok); font-weight: 700; }
.hub-minus { color: var(--ui-err); font-weight: 700; }
.hub-join { width: 100%; max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
/* Без прокруток вбок: фильтры переносятся на новую строку, таблицы помещаются (широкие — карточками до 1023 px). */
.ui-segmented { flex-wrap: wrap; overflow: visible; }
.ui-table-wrap { overflow-x: visible; }
.ui-table td { overflow-wrap: anywhere; }
.hub-tabs { margin-bottom: 4px; }
.hub-codes { display: grid; gap: 12px; }
.hub-code { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-surface-2); }
.hub-code__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.hub-code__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 700; }
.hub-big { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.hub-hero { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hub-hero .ui-stat__value { font-size: 30px; }
/* Ссылка с кнопкой «Скопировать» переносится, а не прокручивается и не раздвигает страницу на телефоне. */
.ui-copyline code { white-space: normal; overflow-wrap: anywhere; overflow-x: visible; }
.hub-codes, .hub-code, .hub-code__top, .hub-code__name, .ui-card, .ui-main { min-width: 0; }
.ui-main { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .hub-code__top .ui-inline-form { width: 100%; }
  .hub-code__top .ui-inline-form .ui-btn { width: 100%; }
  .ui-copyline { flex-wrap: wrap; padding: 8px 8px 8px 12px; }
  .ui-copyline .ui-copy { width: 100%; justify-content: center; }
}
/* Отчёты: период (кнопки и даты) и полоски сравнения по месяцам (<progress> — без стилей в разметке, CSP). */
.hub-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-period__f { display: flex; align-items: center; gap: 6px; color: var(--ui-muted); font-size: 14px; }
.hub-period__f .ui-input { width: auto; min-width: 0; }
.hub-bar { display: block; width: 100%; max-width: 220px; height: 6px; margin-top: 6px; border: 0; border-radius: 3px; background: var(--ui-surface-3); overflow: hidden; -webkit-appearance: none; appearance: none; }
.hub-bar::-webkit-progress-bar { background: var(--ui-surface-3); border-radius: 3px; }
.hub-bar::-webkit-progress-value { background: var(--ui-accent); border-radius: 3px; }
.hub-bar::-moz-progress-bar { background: var(--ui-accent); border-radius: 3px; }
/* Верхнее меню не прокручивается вбок: на компьютере и планшете пункты переносятся на вторую строку (на телефоне — «Меню»). */
@media (min-width: 768px) {
  .ui-topnav__menu { flex-wrap: wrap; overflow-x: visible; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .ui-topnav__item { padding: 0 8px; }
}
/* Шапка без входа: «Войти в кабинет» → «Войти» на узком экране, чтобы название магазина не переносилось */
@media (max-width: 400px) {
  .hub-nav-tail { display: none; }
}
