/* Раздел "Взвод/Клан/Турниры" — визуальный язык нового сайта (см. style.css):
   стеклянные панели поверх тёмного фона, янтарный градиент как главный акцент,
   мягкие тени/подсветки вместо жёстких сдвигов. Всё под #botui / .sub-tabs-row /
   .login-gate, чтобы не задеть остальные страницы. */
#botui {
  --ok: #8fd13f;
  --danger: #ff7d6b;
  --fire: #ff9d3b;
}

/* --- компактный hero: страница-инструмент, а не витрина --- */
.page-hero-compact .page-hero-inner { padding: 34px 24px 26px; }

/* --- под-меню (Взвод / Клан / Турниры) — сегмент-пилюли под hero --- */
.sub-tabs-row {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 16, 13, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.sub-tabs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.sub-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.sub-tab.active {
  color: var(--accent);
  background: rgba(255, 201, 77, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 201, 77, 0.22);
  font-weight: 700;
}
.sub-tab-ico { font-size: 15px; line-height: 1; }
.sub-tab-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #ff7d6b; box-shadow: 0 0 8px rgba(255, 125, 107, 0.8);
}
.sub-tabs-bot-link {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 201, 77, 0.35);
  background: rgba(255, 201, 77, 0.06);
  color: var(--accent);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.sub-tabs-bot-link:hover { background: var(--accent-grad); border-color: transparent; color: var(--accent-ink); transform: translateY(-1px); }
.sub-tabs-bot-link svg { flex-shrink: 0; }

/* --- широкая раскладка под десктоп для этого раздела --- */
.layout-wide { max-width: 1280px; }

/* --- вкладки контента --- */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelIn 0.22s ease; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel.active { animation: none; }
}

/* --- гейт входа --- */
.login-gate {
  max-width: 460px;
  margin: 40px auto;
  padding: 40px 32px;
  text-align: center;
  border-radius: 14px;
  background: var(--surface);
  background-image: var(--glass);
  border: 1px solid var(--line-soft);
}
.login-gate-icon { font-size: 44px; margin-bottom: 14px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.login-gate-title { margin: 0 0 10px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.login-gate-text { margin: 0 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.login-gate .player-account-link { display: inline-flex; }

/* --- карточка-панель (формы, инфо) --- */
#botui .card {
  background: var(--surface);
  background-image: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
}
#botui .card-tight { padding: 14px 16px; }

#botui label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
#botui label:last-child { margin-bottom: 0; }
#botui select,
#botui input:not([type=checkbox]) {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#botui select:focus, #botui input:focus {
  outline: none;
  border-color: rgba(255, 201, 77, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.12);
}
#botui select { cursor: pointer; }
#botui input::placeholder { color: var(--text-faint); font-weight: 400; }
#botui input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

/* ряд фильтров — на широком экране в один ряд, на узком переносится */
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.search-filters > label { flex: 1 1 160px; margin-bottom: 0; min-width: 150px; }

#botui .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
#botui .field-row > label { margin-bottom: 0; }

.search-hint {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  line-height: 1.6;
}
.search-hint b { color: var(--text); }
.search-mode-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- кнопки --- */
#botui button {
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
#botui button:disabled { opacity: 0.45; cursor: default; }
#botui .btn-primary {
  padding: 11px 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: var(--accent-ink);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
#botui .btn-primary:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 26px rgba(255, 201, 77, 0.35); }
#botui .btn-primary:active:not(:disabled) { transform: none; filter: brightness(0.92); box-shadow: none; }
#botui .btn-ghost {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}
#botui .btn-ghost:hover:not(:disabled) { border-color: rgba(255, 201, 77, 0.5); color: var(--accent); background: rgba(255, 201, 77, 0.06); }
#botui .btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-pill); }
#botui button.btn-sm:not(.btn-primary):not(.btn-ghost) {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
#botui button.btn-sm:not(.btn-primary):not(.btn-ghost):hover:not(:disabled) { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.08); }
#botui .btn-block { display: block; width: 100%; margin-top: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* --- заголовки секций --- */
.section-header-split { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.section-header-split .section-header-title { margin-right: auto; }

#botui .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0 0 0 15px;
  margin: 26px 0 14px;
  position: relative;
}
#botui .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: var(--accent-grad);
  box-shadow: 0 0 14px rgba(255, 201, 77, 0.4);
}
.section-title-note { font-weight: 500; color: var(--muted); font-size: 13px; letter-spacing: 0; }
summary.section-title { cursor: pointer; list-style: none; user-select: none; }
summary.section-title::-webkit-details-marker { display: none; }
summary.section-title::after {
  content: "▾"; margin-left: auto; color: var(--muted);
  font-size: 13px; transition: transform 0.15s ease;
  transform: rotate(-90deg);
}
details[open] > summary.section-title::after { transform: none; }

.section-sub { font-size: 14.5px; color: var(--muted); margin: -10px 0 18px; line-height: 1.5; }
.empty-state {
  text-align: center;
  padding: 42px 16px;
  color: var(--muted);
  font-size: 14.5px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}
.empty-hint { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.55; text-transform: none; letter-spacing: 0; }

/* --- чипы-фильтры (статусы турниров, уровни) --- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active {
  color: var(--accent);
  background: rgba(255, 201, 77, 0.1);
  border-color: rgba(255, 201, 77, 0.4);
  font-weight: 700;
}
.chip .chip-count { font-size: 11.5px; opacity: 0.75; }

/* --- сетка карточек (кандидаты/команды/наборы) --- */
#platoonMatches, #platoonIncoming, #clanAutoListings, #clanSearchListings, #myClanListings, .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}
#platoonMatches .empty-state, #platoonIncoming .empty-state,
#clanAutoListings .empty-state, #clanSearchListings .empty-state,
.card-grid .empty-state { grid-column: 1 / -1; }

/* --- карточка кандидата/команды/набора --- */
.match-card, .my-request {
  background: var(--surface);
  background-image: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 201, 77, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.match-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.match-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; min-width: 0; letter-spacing: -0.01em; }
.match-name .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--muted);
  object-fit: cover;
}
.badge-col { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.badge-time { font-size: 11.5px; color: var(--text-faint); }
.candidate-meta { font-size: 13.5px; color: var(--muted); font-weight: 500; margin: 8px 0; }
.candidate-meta b { color: var(--text); font-weight: 600; }

/* статистика в карточке — мини-плитки вместо строки текста */
.match-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.match-stats span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line-soft);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
}
.match-stats b { color: var(--text); font-size: 14.5px; font-weight: 700; letter-spacing: 0; }

.platoon-note {
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  background: rgba(0, 0, 0, 0.2); border-left: 2px solid rgba(255, 201, 77, 0.35);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px 12px; margin: 10px 0;
}
.platoon-note.premium-note { border-left-color: var(--accent); color: var(--text); }
.match-status-accepted { color: var(--ok); font-weight: 700; font-size: 14.5px; padding: 6px 0 2px; }
.copy-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.copy-chip { cursor: pointer; border-bottom: 1px dashed var(--muted); }
.copy-chip:hover { color: var(--accent); border-bottom-color: var(--accent); }
.clan-tag { color: var(--accent); }

.premium-avatar-wrap { position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; }
.premium-avatar-wrap::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #fbe3a3, var(--accent));
}
.premium-avatar-wrap .mini-avatar { position: relative; width: 100%; height: 100%; }

.style-gold, .style-purple, .style-blue, .style-emerald { border-color: rgba(255, 201, 77, 0.45); }

/* --- заявка "мой поиск" --- */
.my-request { margin-bottom: 12px; }
.mr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mr-mode { font-size: 15px; font-weight: 700; }
.mr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mr-chip {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
}
.mr-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.mr-time { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* --- теги/бейджи --- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3.5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  white-space: nowrap;
}
.tag-primary { border-color: rgba(143, 209, 63, 0.45); color: var(--ok); background: rgba(143, 209, 63, 0.08); }
.tag-secondary { border-color: rgba(255, 201, 77, 0.4); color: var(--accent); background: rgba(255, 201, 77, 0.07); }
.tag-muted { color: var(--muted); }
.tag-date { color: var(--text); }
.tag-fire { border-color: rgba(255, 157, 59, 0.5); color: var(--fire); background: rgba(255, 157, 59, 0.08); }
.fire-dot { display: inline-block; animation: firePulse 1.4s ease-in-out infinite; }
@keyframes firePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.invite-type-tag { opacity: 0.9; }

/* wr-* — цвет процента побед в статах */
.wr-white { color: var(--text) !important; }
.wr-green { color: var(--ok) !important; }
.wr-blue { color: #5db7ff !important; }
.wr-purple { color: #c08aff !important; }

/* --- строки списков (заявки в клан, состав команды) --- */
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.stat-row:last-child { border-bottom: none; }
.stat-row b { color: var(--text); font-weight: 600; }
.sent-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.sent-item:last-child { border-bottom: none; }
.sent-item b { color: var(--text); }

.clan-apps-details { margin-top: 14px; }
.clan-apps-details summary {
  cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; list-style: none; display: flex; align-items: center; gap: 6px;
}
.clan-apps-details summary::-webkit-details-marker { display: none; }
.clan-apps-details summary::before { content: "▸"; transition: transform 0.15s ease; }
.clan-apps-details[open] summary::before { transform: rotate(90deg); }

/* ============================================================
   Турниры: выбор турнира, действия, команды, LFG
   ============================================================ */

/* --- экран деталей: бар "← Все турниры / Обновить" --- */
.tour-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

/* --- карточка-выбор турнира: базовый вид из tournaments.css (.tourn-card),
       тут только счётчики команд/LFG и отступ сетки --- */
#tournamentPickerList { margin-bottom: 22px; }
#tournamentPickerList .empty-state { grid-column: 1 / -1; }
.tourn-card-row.tour-count-hot,
.tourn-card-row.tour-count-hot b { color: var(--accent); }

/* --- шапка экрана турнира: логотип + название + статус --- */
.tour-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.tour-detail-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.tour-detail-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.tour-detail-titlebox { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tour-detail-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tourn-status--inline { position: static; }

/* --- панель действий "Участвовать" --- */
.tour-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tour-actions-grid.single { grid-template-columns: 1fr; }
.action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.action-tile:hover { transform: translateY(-2px); border-color: rgba(255, 201, 77, 0.45); background: rgba(255, 201, 77, 0.05); }
.action-tile.open { border-color: rgba(255, 201, 77, 0.55); background: rgba(255, 201, 77, 0.08); }
.action-tile-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.action-tile-sub { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.tour-form-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* чипы-уровни (LFG: мультивыбор, создание команды: одиночный) */
.lvl-chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 16px; }
.lvl-chip { position: relative; }
.lvl-chip input {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer;
  width: 100% !important; height: 100% !important;
}
.lvl-chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; padding: 7px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px; font-weight: 700;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.lvl-chip:hover span { border-color: var(--border-strong); color: var(--text); }
.lvl-chip input:checked + span {
  color: var(--accent-ink);
  background: var(--accent-grad);
  border-color: transparent;
}

/* --- тулбар списка команд (поиск/фильтры) --- */
.tour-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--surface);
  background-image: var(--glass);
  border: 1px solid var(--line-soft);
}
.tour-toolbar .toolbar-search { flex: 1 1 200px; position: relative; }
.tour-toolbar .toolbar-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tour-toolbar .toolbar-search input:focus { outline: none; border-color: rgba(255, 201, 77, 0.55); box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.12); }
.tour-toolbar .toolbar-search input::placeholder { color: var(--text-faint); }
.tour-toolbar .toolbar-search::before {
  content: '🔍';
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 12.5px;
  opacity: 0.55;
  pointer-events: none;
}
.tour-toolbar select {
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  cursor: pointer;
}
.tour-toolbar select:focus { outline: none; border-color: rgba(255, 201, 77, 0.55); }
.toolbar-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; user-select: none;
  white-space: nowrap;
}
.toolbar-toggle input { accent-color: var(--accent); cursor: pointer; }
.toolbar-count { font-size: 12.5px; color: var(--text-faint); margin-left: auto; white-space: nowrap; }

/* --- индикатор мест в команде --- */
.team-slots { display: flex; align-items: center; gap: 4px; margin: 10px 0 2px; }
.team-slots .slot {
  flex: 1 1 0;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.team-slots .slot.filled { background: var(--accent-grad); box-shadow: 0 0 6px rgba(255, 201, 77, 0.35); }
.team-slots-label { font-size: 11.5px; color: var(--text-faint); margin-bottom: 8px; }
.team-slots-label b { color: var(--text); }

/* состав команды в карточке */
.team-members-details { margin-top: 10px; }
.team-members-details summary {
  cursor: pointer; list-style: none; user-select: none;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.team-members-details summary::-webkit-details-marker { display: none; }
.team-members-details summary::before { content: "▸"; transition: transform 0.15s ease; }
.team-members-details[open] summary::before { transform: rotate(90deg); }
.team-members-details > div { margin-top: 6px; }

/* --- тост --- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(21, 27, 23, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 201, 77, 0.35);
  border-radius: var(--radius-pill);
  color: var(--text); font-size: 14px; font-weight: 600;
  padding: 12px 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: toastIn 0.2s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%); }
}

/* --- адаптив --- */
@media (max-width: 700px) {
  .sub-tabs { padding: 8px 16px; }
  .sub-tabs-bot-link span { display: none; }
  .tour-actions-grid { grid-template-columns: 1fr; }
  #botui .field-row { grid-template-columns: 1fr; }
  .toolbar-count { display: none; }
}
