:root {
  --bg: #0B1220;
  --panel: #121B2E;
  --panel-2: #17223A;
  --border: #22304A;
  --text: #F4F6FA;
  --muted: #8B96AB;
  --accent: #FF5722;
  --accent-ink: #1A0800;
  --blue: #2F8FFF;
  --green: #22C55E;
  --red: #FF5C5C;
  --radius-card: 16px;
  --radius-btn: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

body {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; }
[hidden] { display: none !important; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* --- Верхний топбар экрана --- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
}
.topbar .back {
  color: var(--blue); font-size: 15px; background: none; border: none;
  display: flex; align-items: center; gap: 4px; padding: 4px 0; cursor: pointer;
}
.topbar .title { font-weight: 600; font-size: 15px; }

.page { padding: 0 16px 24px; max-width: 560px; margin: 0 auto; }

/* --- Онбординг --- */
.splash { padding: 24px 20px 20px; text-align: left; }
.splash-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.splash-logo .mark {
  width: 44px; height: 44px; border-radius: 12px;
  object-fit: cover; flex: none; display: block;
}
.splash-logo .name { font-size: 24px; font-weight: 800; letter-spacing: 0.5px; }

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 26px;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.live-badge {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 11px;
  padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
}
.live-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.hero-meta { color: var(--muted); font-size: 12.5px; }

.match-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-chip-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
}
.badge.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.team-name-sm { font-size: 12.5px; color: var(--muted); text-align: center; }
.score-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 90px; }
.score-num { font-size: 34px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.score-sub { color: var(--muted); font-size: 12px; }
.hero-foot { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 12px; }

.headline { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.headline .accent { color: var(--accent); }
.lede { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 22px; }

.feature { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.feature .ic {
  width: 40px; height: 40px; border-radius: 10px; background: var(--panel-2);
  border: 1px solid var(--border); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.feature .ft-title { font-weight: 700; font-size: 14.5px; }
.feature .ft-sub { color: var(--muted); font-size: 12.5px; }

.btn {
  display: block; width: 100%; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: var(--radius-btn);
  font-weight: 800; font-size: 15.5px; padding: 15px; cursor: pointer;
}
.btn.secondary { background: var(--blue); color: #fff; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn:disabled { opacity: 0.5; }
.footnote { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 10px; }

/* --- Афиша --- */
.feed-header { padding: 10px 16px 6px; }
.hello { color: var(--muted); font-size: 13px; }
.feed-title-row { display: flex; align-items: center; justify-content: space-between; }
.feed-title { font-size: 26px; font-weight: 800; margin: 2px 0 14px; }
.bell {
  width: 40px; height: 40px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--text); font-size: 16px;
}
.bell .badge-count {
  position: absolute; top: -5px; right: -5px; background: var(--accent);
  color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px;
  min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.search {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.search input {
  background: none; border: none; outline: none; color: var(--text);
  font-size: 14.5px; width: 100%;
}
.search input::placeholder { color: var(--muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border); cursor: pointer;
}
.chip.active { background: #fff; color: #0B1220; border-color: #fff; }

.section-label {
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; margin: 18px 0 10px; display: flex; justify-content: space-between;
}
.section-label a { color: var(--blue); text-transform: none; font-weight: 600; font-size: 13px; }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 14px; margin-bottom: 12px; cursor: pointer;
}
.tag-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--border);
}
.tag.open { background: rgba(47,143,255,0.15); color: var(--blue); border-color: rgba(47,143,255,0.3); }
.tag.live { background: rgba(255,87,34,0.18); color: var(--accent); border-color: rgba(255,87,34,0.35); }
.tag.free { background: rgba(34,197,94,0.15); color: var(--green); border-color: rgba(34,197,94,0.3); }

.club-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.card-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.meta-row { display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; margin-bottom: 10px; flex-wrap: wrap; }
.meta-row span { display: flex; align-items: center; gap: 5px; }

.progress { height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress > div { height: 100%; background: var(--blue); }

.list-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; margin-bottom: 10px; cursor: pointer;
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row .rname { font-weight: 700; font-size: 14.5px; }
.list-row .rsub { color: var(--muted); font-size: 12px; }

/* --- Детали турнира --- */
.detail-title { font-size: 25px; font-weight: 800; margin: 12px 0; line-height: 1.2; }
.org-row {
  display: flex; align-items: center; gap: 10px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 16px;
}
.org-row .grow { flex: 1; }
.org-name { font-weight: 700; font-size: 14.5px; }
.org-sub { color: var(--muted); font-size: 12px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.info-cell { background: var(--panel); padding: 14px; }
.info-label { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.info-value { font-weight: 700; font-size: 15.5px; }
.info-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }

.slots-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; margin-bottom: 16px;
}
.slots-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 8px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.team-pill {
  display: flex; align-items: center; gap: 7px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px 7px 7px; font-weight: 700; font-size: 12.5px;
}

.reward-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.reward-row .ic { font-size: 20px; width: 36px; text-align: center; }
.reward-title { font-weight: 700; font-size: 14.5px; }
.reward-sub { color: var(--muted); font-size: 12.5px; }

.rule-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 13.5px; }
.rule-row .ck { color: var(--blue); flex: none; }

.tabs-row { display: flex; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 4px; margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs-row .t {
  flex: 1 0 auto; text-align: center; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tabs-row .t.active { background: var(--panel-2); color: var(--text); }

.match-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
}
.match-line .side { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.match-line .nm { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-line .sc { font-weight: 800; font-size: 16px; min-width: 54px; text-align: center; }
.match-line .pending { color: var(--muted); font-size: 12px; }

.sticky-cta {
  /* Над нижней панелью вкладок (≈56px), а не под ней */
  position: sticky; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  margin-top: 18px;
}
/* Неактивная кнопка над содержимым не должна просвечивать — гасим цветом текста, а не прозрачностью. */
.sticky-cta .btn:disabled { opacity: 1; color: var(--muted); }

/* --- Рейтинг --- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 18px; align-items: end; }
.podium-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0;
}
.podium-card.first { border-color: var(--accent); padding-top: 22px; }
.podium-top { height: 24px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.podium-rank { color: var(--muted); font-size: 14px; font-weight: 800; }
.podium-name { font-weight: 700; font-size: 13px; line-height: 1.25; margin: 8px 0 4px; min-height: 2.5em; width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.podium-elo { color: var(--accent); font-weight: 800; font-size: 17px; }
.podium-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

.rank-row {
  display: flex; align-items: center; gap: 12px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
}
.rank-row.me { border-color: var(--accent); }
.rank-num { color: var(--muted); font-weight: 700; width: 18px; }
.rank-row .grow { flex: 1; min-width: 0; }
.rank-row .rname { font-weight: 700; font-size: 14.5px; }
.rank-row .rsub { color: var(--muted); font-size: 12px; }
.rank-elo { font-weight: 800; font-size: 15px; }
.rank-row .rname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row.fresh .rank-elo { color: var(--muted); font-weight: 600; }
.delta { font-size: 12.5px; font-weight: 700; }
.delta.up { color: var(--blue); }
.delta.down { color: var(--red); }

/* --- Профиль команды --- */
.profile-hero { text-align: center; padding: 22px 0 6px; }
.profile-hero .badge { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 12px; font-size: 24px; }
.profile-hero .pname { font-size: 22px; font-weight: 800; }
.profile-hero .pelo { color: var(--accent); font-weight: 800; font-size: 16px; margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.stat-box { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.stat-box .v { font-size: 18px; font-weight: 800; }
.stat-box .l { color: var(--muted); font-size: 11px; margin-top: 3px; }

.form-row { display: flex; gap: 6px; margin-bottom: 18px; }
.form-pill {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; border: 1px solid var(--border); color: var(--muted);
}
.form-pill.W { background: rgba(47,143,255,0.2); color: var(--blue); border-color: transparent; }
.form-pill.L { background: rgba(255,92,92,0.15); color: var(--red); border-color: transparent; }
.form-pill.D { background: var(--panel-2); }

.roster-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.roster-row:last-child { border-bottom: none; }
.roster-role { color: var(--muted); font-size: 12px; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 14px; }
.loading { text-align: center; color: var(--muted); padding: 60px 20px; }

.error-banner {
  background: rgba(255,92,92,0.12); border: 1px solid rgba(255,92,92,0.35); color: var(--red);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 13.5px;
}
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; text-align: center; z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* --- Нижняя навигация --- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: var(--panel); border-top: 1px solid var(--border);
  padding: 7px 6px calc(4px + env(safe-area-inset-bottom, 0px));
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 11px; line-height: 13px;
  font-weight: 600; padding: 2px 0; -webkit-tap-highlight-color: transparent;
}
.tab-icon {
  width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tab.active { color: var(--accent); }

@media (min-width: 480px) {
  .tabbar { max-width: 560px; left: 50%; transform: translateX(-50%); border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 16px 16px 0 0; }
}

/* --- Формы и управление --- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; font: inherit; font-size: 15px; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.btn.small { display: inline-block; width: auto; padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: transparent; color: var(--red); border: 1px solid rgba(255, 92, 92, 0.4); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-row .btn { flex: 1; }
.about-text { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; font-weight: 600; }
.notice { background: rgba(47, 143, 255, 0.1); border: 1px solid rgba(47, 143, 255, 0.35); color: var(--text);
  border-radius: 12px; padding: 12px; font-size: 13px; margin-bottom: 14px; line-height: 1.45; }
.notice.warn { background: rgba(255, 87, 34, 0.1); border-color: rgba(255, 87, 34, 0.4); }
.member-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.member-row .grow { flex: 1; min-width: 0; }
.member-row .rname { font-weight: 700; font-size: 14px; }
.member-row .rsub { color: var(--muted); font-size: 12px; margin-top: 2px; }
/* Кнопки капитана — отдельной строкой под игроком, чтобы не закрывали его роль. */
.member-row { flex-wrap: wrap; }
.member-row .member-actions { flex-basis: 100%; justify-content: flex-start; }
.member-row > .badge ~ .member-actions { padding-left: 44px; }
.member-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mini-btn { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  font-size: 12px; font-weight: 700; padding: 6px 9px; cursor: pointer; }
.mini-btn.bad { color: var(--red); }
.mini-btn.good { color: var(--green); }
.slots-bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.slots-bar div { height: 100%; background: var(--accent); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: 14px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 13px; transition: background 0.15s; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 2px; top: 2px;
  background: var(--muted); border-radius: 50%; transition: transform 0.15s, background 0.15s; }
.switch input:checked + span { background: rgba(255, 87, 34, 0.25); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--accent); }

/* --- Логотипы, таблицы, панель организатора --- */
.badge.img { object-fit: cover; background: var(--panel-2); display: block; flex: none; }
.badge.xs { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; flex: none; }
.tag.bad { background: rgba(255,92,92,0.12); color: var(--red); border-color: rgba(255,92,92,0.35); }
.match-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.match-card .match-line { background: none; border: none; padding: 0; margin: 0; border-radius: 0; }
.match-sub { color: var(--muted); font-size: 11.5px; font-weight: 700; margin-bottom: 6px; }
.match-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.match-meta a { color: var(--blue); text-decoration: none; font-weight: 700; }
.match-line .nm.tbd { color: var(--muted); font-weight: 600; font-style: italic; }
.match-line .sc .ff { font-size: 10px; color: var(--muted); font-weight: 700; }
.table-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 8px; overflow-x: auto; }
.st-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; min-width: 320px; cursor: pointer; }
.st-row:last-child { border-bottom: none; }
.st-row > span { width: 38px; text-align: center; flex: none; font-variant-numeric: tabular-nums; }
.st-row > span:first-child { width: 16px; color: var(--muted); }
.st-row .grow { flex: 1; width: auto; text-align: left; min-width: 0; }
.st-row .st-team { display: flex; align-items: center; gap: 8px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-row .pts { font-weight: 800; }
.st-row.st-head { color: var(--muted); font-size: 11px; font-weight: 700; cursor: default; }
.st-row.up { box-shadow: inset 3px 0 0 var(--green); }
.upload-row { display: flex; gap: 14px; align-items: center; margin: 6px 0 18px; }
.upload-row .badge { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; flex: none; }
.upload-row .grow { flex: 1; }
.upload-row .rname { font-weight: 700; }
.upload-row .rsub { color: var(--muted); font-size: 12px; }
.upload-row .btn-row .btn { flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-col > * { min-width: 0; }
.two-col > .field[hidden] { display: none !important; }
.org-match { margin-bottom: 14px; }
.org-match .match-card { margin-bottom: 0; }
.score-form { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.score-form input { width: 64px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; font: inherit; font-size: 16px; text-align: center; }
.score-form .btn { margin-left: auto; }
.ff-box, .sched-form { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-top: 8px; }
.ff-box .rsub { color: var(--muted); font-size: 12.5px; }
.field select:disabled, .field input:disabled { opacity: 0.55; }
@media (max-width: 360px) { .two-col { grid-template-columns: 1fr; } }

/* --- Фильтры, сетка деревом, формы организатора --- */
.chips.small { margin-top: -8px; }
.chips.small .chip { padding: 6px 12px; font-size: 12.5px; }
.tag.share { cursor: pointer; color: var(--blue); border-color: rgba(47,143,255,0.35); margin-left: auto; }
a.btn { text-decoration: none; box-sizing: border-box; }
.bracket { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; }
.br-col { display: flex; flex-direction: column; min-width: 168px; flex: none; }
.br-title { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; min-height: 28px; }
.br-list { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; flex: 1; }
.br-match { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.br-team { display: flex; align-items: center; gap: 7px; padding: 7px 9px; font-size: 12.5px; cursor: pointer; }
.br-team + .br-team { border-top: 1px solid var(--border); }
.br-team .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--muted); }
.br-team.win .nm { color: var(--text); font-weight: 800; }
.br-team .sc { font-weight: 800; font-variant-numeric: tabular-nums; }
.br-team .sc.muted { color: var(--muted); font-weight: 600; font-size: 11px; }
.br-team.tbd { cursor: default; }
.br-when { font-size: 11px; color: var(--muted); padding: 4px 9px 6px; border-top: 1px solid var(--border); }
.inline-form, .staff-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form input, .staff-form input, .staff-form select { flex: 1; min-width: 0; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; }
.staff-form select { flex: none; width: auto; }
.inline-form .btn, .staff-form .btn { flex: none; }
@media (max-width: 380px) { .staff-form { flex-wrap: wrap; } }
.card .rsub { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ticket-text { font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.ticket-answer { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.3); font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.notice b { color: var(--text); }

/* Посев */
.seed-row { gap: 10px; }
.seed-no { width: 22px; text-align: center; font-weight: 700; color: var(--muted); }
.seed-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: inherit; font-size: 12px; cursor: pointer; }
.seed-btn:disabled { opacity: .3; cursor: default; }

/* Выбор карт */
.veto-box { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.veto-head { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.veto-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.veto-chip { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); }
.veto-chip.ban { color: var(--muted); text-decoration: line-through; }
.veto-chip.pick { color: var(--green); border-color: var(--green); }
.veto-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; }
.veto-pick { padding: 10px 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; }
.veto-pick.ban { border-color: var(--red); }
.veto-pick.pick { border-color: var(--green); }
.veto-maps { display: grid; gap: 6px; margin-top: 6px; }
.veto-map { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.veto-map .n { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.veto-map .by { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* Замены */
.lineup-swap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.lineup-swap select { flex: 1 1 110px; min-width: 0; padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); }

/* Графики */
.chart-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px 14px 10px; margin: 12px 0 6px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.chart-svg { display: block; width: 100%; height: 110px; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Формат матчей по этапам */
.stage-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; }
.stage-row select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font-weight: 600; }

/* Регламент */
.rules-sec { margin: 16px 0 6px; }
.rules-h { font-weight: 800; font-size: 15.5px; margin-bottom: 6px; }
.rules-p { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; margin: 5px 0; }
.rules-p .n { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; min-width: 28px; }

/* Рейтинг: переключатель и строки игроков */
.seg { display: flex; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.seg-i { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg-i.active { background: var(--panel-2); color: var(--text); }
.rank-n { width: 26px; text-align: center; font-weight: 800; color: var(--muted); flex: none; }
.list-row.mine { box-shadow: inset 3px 0 0 var(--accent); }
.list-row .pelo { font-size: 16px; }

/* ===================== Дизайн 2.0 ===================== */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: middle; }
.chips { scrollbar-width: none; -ms-overflow-style: none; }
.chips::-webkit-scrollbar { display: none; }
.search .ic { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 18px rgba(255, 87, 34, .25); }

/* Отступы между кнопками и рядами */
.btn-row { gap: 10px; }
.btn-row + .btn-row { margin-top: 10px; }
.btn + .btn:not(.small) { margin-top: 10px; }
.member-actions { gap: 8px; }
.mini-btn { padding: 7px 10px; }
.section-label { margin: 24px 0 10px; }
.btn .ic { width: 18px; height: 18px; margin: -3px 6px 0 0; }

/* Нажатия */
.btn, .mini-btn, .chip, .list-row, .card, .menu-item, .seg-i, .tabs-row .t, .p-edit, .cover-btn, .rank-row, .podium-card {
  transition: transform .14s cubic-bezier(.2,.8,.2,1), background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:active, .mini-btn:active, .chip:active, .list-row:active, .card:active, .menu-item:active, .rank-row:active, .podium-card:active, .p-edit:active, .cover-btn:active { transform: scale(.975); }

/* Появление экранов и элементов */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.page, .feed-header { animation: pageIn .3s cubic-bezier(.2,.8,.2,1) both; }
.page > * { animation: rise .42s cubic-bezier(.2,.8,.2,1) both; }
.page > *:nth-child(2) { animation-delay: .03s; } .page > *:nth-child(3) { animation-delay: .06s; }
.page > *:nth-child(4) { animation-delay: .09s; } .page > *:nth-child(5) { animation-delay: .12s; }
.page > *:nth-child(6) { animation-delay: .15s; } .page > *:nth-child(7) { animation-delay: .18s; }
.page > *:nth-child(8) { animation-delay: .21s; } .page > *:nth-child(n+9) { animation-delay: .24s; }
body.quiet .page, body.quiet .page > *, body.quiet .feed-header { animation: none; }

@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.toast { animation: toastIn .28s cubic-bezier(.2,.8,.2,1) both; }

@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.tab { position: relative; }
.tab.active .tab-icon { animation: pop .35s ease; }
.tab.active::before { content: ""; position: absolute; top: -8px; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 0 0 3px 3px; background: var(--accent); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,87,34,.45); } 70% { box-shadow: 0 0 0 8px rgba(255,87,34,0); } 100% { box-shadow: 0 0 0 0 rgba(255,87,34,0); } }
.tag.live, .live-badge { animation: pulse 2s infinite; }
@keyframes floaty { 50% { transform: translateY(-3px); } }
.podium-crown { color: #FFD166; animation: floaty 2.4s ease-in-out infinite; }
.podium-crown .ic { width: 22px; height: 22px; }
@keyframes twinkle { 50% { opacity: .2; } }
.illus .spark { animation: twinkle 2.4s ease-in-out infinite; }
.illus .s2 { animation-delay: .7s; } .illus .s3 { animation-delay: 1.3s; }

/* Скелетоны загрузки */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk { background: linear-gradient(90deg, #141e33 0%, #1d2a46 50%, #141e33 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
.sk-page { padding-top: 16px; }
.sk-line { height: 12px; margin: 9px 0; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; }
.sk-line.c { margin-left: auto; margin-right: auto; }
.sk-card { height: 190px; border-radius: 20px; margin: 16px 0; }
.sk-row { display: flex; gap: 12px; align-items: center; margin: 14px 0; }
.sk-av { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.sk-col { flex: 1; }
.sk-cover { height: 112px; border-radius: 20px; }
.sk-avatar { width: 88px; height: 88px; border-radius: 26px; margin: -44px auto 12px; border: 4px solid var(--bg); }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.sk-tile { height: 68px; border-radius: 16px; }
.sk-inline { padding: 4px 0; }

/* Обложки по типу игры */
.cover { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, var(--c1), var(--c2)); min-height: 120px; isolation: isolate; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,20,0) 25%, rgba(6,10,20,.55) 100%); z-index: 0; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cover-inner { position: relative; z-index: 1; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; min-height: inherit; box-sizing: border-box; }
.cover .tag-row { margin: 0 0 auto; padding-right: 44px; }
.cover .tag { background: rgba(6,10,20,.38); border-color: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cover .tag.live { background: var(--accent); border-color: var(--accent); color: #fff; }
.cover .tag.open { background: rgba(47,143,255,.85); border-color: transparent; color: #fff; }
.cover-title { font-size: 22px; font-weight: 800; line-height: 1.15; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); margin-top: 14px; }
.cover-sub { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.88); font-size: 13px; margin-top: 5px; }
.cover-sub .ic { width: 15px; height: 15px; }
.cover-btn { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(6,10,20,.38); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; }
.cover-btn .ic { width: 18px; height: 18px; }
.t-hero { min-height: 170px; margin: 2px 0 14px; }
.game-ic { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.game-ic .ic { width: 21px; height: 21px; }
img.game-ic { object-fit: cover; background: var(--panel-2); }
.cover.photo { background-size: cover; background-position: center; }

/* Главная карточка афиши */
.card.feat { padding: 0; overflow: hidden; }
.card.feat .cover { border-radius: 0; min-height: 150px; }
.feat-body { padding: 14px 16px 16px; }
.meta-row .ic { width: 16px; height: 16px; color: var(--muted); }
.feat-foot { display: flex; align-items: flex-end; justify-content: space-between; }
.feat-go { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 700; font-size: 13.5px; }
.feat-go .ic { width: 16px; height: 16px; }
.list-row .chev, .menu-item .chev { color: var(--muted); width: 18px; height: 18px; }

/* Шапка профиля, команды, игрока, клуба */
.p-hero { position: relative; margin: 0 0 6px; }
.p-cover { min-height: 116px; }
.p-avatar { display: flex; justify-content: center; margin-top: -48px; position: relative; z-index: 2; }
.p-avatar .badge { width: 92px; height: 92px; border-radius: 28px; font-size: 30px; border: 4px solid var(--bg); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.p-edit { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 12px; background: rgba(6,10,20,.38); border: 1px solid rgba(255,255,255,.22); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; }
.p-edit .ic { width: 18px; height: 18px; }
.p-name { text-align: center; font-size: 23px; font-weight: 800; margin-top: 10px; }
.p-sub { text-align: center; color: var(--muted); font-size: 13px; margin-top: 3px; }
.p-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fact { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); }
.fact .ic { width: 14px; height: 14px; color: var(--muted); }
.fact.elo { color: var(--accent); border-color: rgba(255,87,34,.35); background: rgba(255,87,34,.1); font-weight: 800; }
.fact.elo .ic { color: var(--accent); }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 4px; }
.p-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 12px 6px; text-align: center; min-width: 0; }
.p-stat .v { font-size: 21px; font-weight: 800; }
.p-stat .v.accent { color: var(--accent); }
.p-stat .l { color: var(--muted); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-notice { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; margin: 14px 0 0; }
.cta-notice .ic { color: var(--blue); }
.hist-medal { width: 40px; height: 40px; border-radius: 12px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; color: var(--muted); }
.app-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin: 28px 0 4px; text-transform: uppercase; }
.app-foot img { width: 20px; height: 20px; border-radius: 6px; opacity: .8; }

/* Личный рейтинг */
.rating-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(255,87,34,.12), rgba(47,143,255,.06)); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.rating-card .grow { flex: 1; min-width: 0; }
.rating-card .rname { font-weight: 700; font-size: 14.5px; }
.rating-card .rsub { color: var(--muted); font-size: 12px; }
.rating-num { text-align: right; }
.rating-num .num { font-size: 22px; font-weight: 800; line-height: 1.1; }
.rank-chip { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 800; color: #FFD166; background: rgba(255,209,102,.12); border-radius: 999px; padding: 2px 8px; }

/* Меню-разделы */
.menu { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; border: 0; background: none; width: 100%; color: var(--text); font: inherit; text-align: left; list-style: none; }
.menu-item::-webkit-details-marker { display: none; }
.menu > * + * { border-top: 1px solid var(--border); }
.menu-ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; background: rgba(255,87,34,.14); color: var(--accent); }
.menu-ic .ic { width: 19px; height: 19px; }
.menu-ic.blue { background: rgba(47,143,255,.14); color: var(--blue); }
.menu-ic.green { background: rgba(34,197,94,.14); color: var(--green); }
.menu-ic.violet { background: rgba(139,92,246,.16); color: #A78BFA; }
.menu-ic.gray { background: var(--panel-2); color: var(--muted); }
.menu-ic.solid { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255,87,34,.3); }
.menu-item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-title { font-weight: 700; font-size: 14.5px; }
.menu-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.menu-fold[open] > summary .chev, .fold[open] > summary .chev { transform: rotate(90deg); }
.menu-fold summary .chev, .fold summary .chev { transition: transform .2s; }
.menu-body { padding: 0 14px 4px 62px; }
.menu-body .toggle-row { cursor: pointer; }
.menu-body .toggle-row:last-child { border-bottom: none; }
.fold { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 0 14px; margin-top: 14px; }
.fold > summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary span { flex: 1; }
.fold > summary > .ic:first-child { color: var(--accent); }
.fold[open] { padding-bottom: 6px; }
.fold .stat-grid { margin-top: 0; }

/* Пустые экраны */
.empty { text-align: center; padding: 26px 16px 18px; }
.illus { width: 160px; height: 120px; display: block; margin: 0 auto 10px; }
.empty-title { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.empty-text { color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 310px; margin: 0 auto; }
.empty .btn { margin-top: 16px; }

/* Прочее */
.notice.lock { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,209,102,.08); border-color: rgba(255,209,102,.3); }
.notice.lock .ic { color: #FFD166; width: 18px; height: 18px; margin-top: 1px; }
.podium { align-items: flex-end; }
.podium-card.first { padding-top: 18px; background: linear-gradient(180deg, rgba(255,87,34,.12), var(--panel)); box-shadow: 0 10px 24px rgba(255,87,34,.12); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.tab.active::before { top: -7px; }
.kv a, .about-text a { color: var(--blue); text-decoration: none; font-weight: 700; }

/* --- Призы и партнёры --- */
.prize-card { cursor: default; padding: 6px 14px; }
.prize-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.prize-row:first-child { border-top: none; }
.prize-place { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; flex: none; background: var(--panel-2); color: var(--text); }
.prize-place .ic { width: 18px; height: 18px; }
.prize-place.gold { background: rgba(245, 196, 81, .16); color: #F5C451; }
.prize-place.silver { background: rgba(201, 209, 220, .14); color: #C9D1DC; }
.prize-place.bronze { background: rgba(208, 139, 87, .16); color: #D08B57; }
.prize-place.special { background: rgba(255, 87, 34, .14); color: var(--accent); }
.prize-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.prize-value { font-size: 15px; font-weight: 800; margin-top: 2px; overflow-wrap: anywhere; }
.prize-meta { color: var(--accent); font-weight: 700; }
.meta-row .prize-meta .ic { color: var(--accent); }

.sponsor-card { cursor: default; }
.sponsor-card.general { border-color: rgba(255, 87, 34, .45); }
.sponsor-top { display: flex; align-items: center; gap: 12px; }
.soc-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.soc-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.soc-btn .ic { width: 16px; height: 16px; color: var(--accent); }
.sponsor-stats { display: flex; align-items: center; gap: 6px; margin: 10px 0 8px; }
.sponsor-stats .ic { width: 15px; height: 15px; }
.sponsor-form { margin-top: 10px; }
.sponsor-form select, .inline-form select { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; font: inherit; }
.inline-form select { width: auto; flex: 1; min-width: 0; }
.award-row .mini-btn { flex: none; }
/* Подпись вне карточек и строк (контекстные правила выше точнее и перекрывают это) */
.rsub { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.assign-form { cursor: default; }
.assign-form .rname { font-weight: 700; }
/* Форма сотрудника: поле ID на всю ширину, роль и кнопка — строкой ниже */
.staff-form { flex-wrap: wrap; }
.staff-form input { flex: 1 1 100%; }
.staff-form select { flex: 1; }

/* Чек-лист перед стартом (организатор, «Обзор») */
.checklist { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px 14px; margin-bottom: 12px; }
.checklist summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; list-style: none; }
.checklist summary::-webkit-details-marker { display: none; }
.checklist .ck-sum { font-size: 12.5px; font-weight: 700; color: var(--green); }
.checklist .ck-sum.todo { color: var(--accent); }
.ck-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; padding: 7px 0; border-top: 1px solid var(--border); }
.checklist summary + .ck-row { margin-top: 10px; }
.ck-ic { width: 20px; height: 20px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.ck-row.ok .ck-ic { background: rgba(34,197,94,.16); color: var(--green); }
.ck-row.warn .ck-ic { background: rgba(255,193,7,.16); color: #FFC107; }
.ck-row.todo .ck-ic { background: rgba(255,92,92,.16); color: var(--red); }

/* Рост: воронка и изменения неделя к неделе */
.funnel-row { padding: 8px 0; }
.funnel-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; }
.funnel-head span:first-child { color: var(--muted); }
.funnel-bar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.delta { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
small.muted { color: var(--muted); font-weight: 500; }
.ad-field { margin-top: 16px; }

/* Игровые аккаунты: FACEIT, Dota 2, Steam */
.acc-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-bottom: 8px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--border); }
.acc-card .grow { flex: 1; min-width: 0; }
.acc-title { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-main { font-size: 15px; margin-top: 2px; }
.acc-sub, .acc-note { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.acc-warn { color: var(--red); font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.acc-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.acc-card .acc-form { margin: 6px 0 0; }
.acc-form .form-pill { width: 24px; height: 24px; font-size: 11px; }
.lvl { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-weight: 800; font-size: 14px; border: 2px solid currentColor; background: var(--panel-2); }
.lvl-0, .lvl-1 { color: #E5E7EB; }
.lvl-2 { color: #22C55E; }
.lvl-4 { color: #F5C542; }
.lvl-8 { color: #FF7A1A; }
.lvl-10 { color: #FF3B30; }
.lvl-dota { color: #E5483B; font-size: 11px; border-radius: 10px; }
.lvl-steam { color: #66C0F4; border-radius: 10px; }
.lvl.xs { width: 20px; height: 20px; font-size: 10.5px; border-width: 1.5px; margin-left: 6px; vertical-align: 1px; }
.acc-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--muted); background: var(--panel-2); vertical-align: 1px; }
.acc-chip.bad { color: var(--red); background: rgba(255, 92, 92, .14); }
.acc-links { display: flex; gap: 6px; margin-top: 10px; }
.acc-links .mini-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.acc-links .mini-btn:last-child { flex: 1; }
.acc-links .mini-btn svg { width: 14px; height: 14px; }
.acc-copy { width: 100%; margin-top: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: 13px; }
