/* Темы: строка вкладок над лентой, кнопка темы у сообщения, карточка «Создана тема». */
.topic-tabs { position: sticky; top: 62px; z-index: 19; display: flex; gap: 4px; width: calc(100% - 16px); max-width: 744px; height: 44px; margin: 6px auto 0; padding: 4px; overflow-x: auto; border-radius: 22px; background: var(--header-glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 5px -1px rgba(0,0,0,.21); scrollbar-width: none; }
.topic-tabs::-webkit-scrollbar { display: none; }
.topic-tab { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: transparent; color: var(--text); font-size: 15px; white-space: nowrap; cursor: pointer; }
.topic-tab[aria-current="page"] { background: var(--reaction); color: var(--accent); font-weight: 600; }
.topic-tab .comments-unread-badge { min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; line-height: 20px; }
.topic-tab-add { width: 36px; padding: 0; justify-content: center; color: var(--accent); font-size: 20px; }
/* Под строкой вкладок: закреплённое и дата дня прилипают ниже. */
.comments-page[data-screen-name="room"][data-topic-tabs="1"] .pin-bar { top: 112px; }
.comments-page[data-screen-name="room"][data-topic-tabs="1"] .day-sep { top: 114px; }
html.swiping .topic-tabs { transform: translateX(var(--swipe-x, 0)); }
html.swipe-settle .topic-tabs { transition: transform .22s ease-out; }
.topic-chip { display: inline-block; max-width: 100%; margin: 2px 0 4px; padding: 2px 10px; border: 0; border-radius: 12px; background: var(--reaction); color: var(--accent); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.topic-created { flex-direction: column; align-items: center; gap: 6px; }
.topic-open { padding: 6px 14px; border: 0; border-radius: 16px; background: var(--panel); color: var(--accent); font-size: 14px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
