/* ============ Компоненты ============ */

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__logo { width: 46px; height: 46px; transition: transform 0.4s ease; }
.brand:hover .brand__logo { transform: rotate(-12deg); }
.brand__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* «Рваные» края, как у тёмных полос на странице (зубцы по 5px сверху и снизу) */
:root {
  --rip: polygon(
    0 5px, 4% 1px, 8% 6px, 13% 0, 18% 4px, 24% 1px, 29% 6px, 35% 2px, 41% 5px, 47% 0, 53% 4px, 59% 1px,
    65% 6px, 71% 2px, 77% 5px, 83% 0, 89% 4px, 95% 1px, 100% 5px, 99% 50%,
    100% calc(100% - 5px), 95% calc(100% - 1px), 89% calc(100% - 6px), 83% 100%, 77% calc(100% - 4px),
    71% calc(100% - 1px), 65% calc(100% - 5px), 59% 100%, 53% calc(100% - 4px), 47% calc(100% - 1px),
    41% calc(100% - 6px), 35% calc(100% - 2px), 29% calc(100% - 5px), 24% 100%, 18% calc(100% - 4px),
    13% calc(100% - 1px), 8% calc(100% - 5px), 4% 100%, 0 calc(100% - 4px), 1% 50%);
  /* мелкие зубцы для пунктов меню */
  --rip-sm: polygon(
    0 3px, 10% 0, 22% 4px, 35% 1px, 48% 4px, 60% 0, 73% 3px, 86% 1px, 100% 4px, 98% 50%,
    100% calc(100% - 3px), 88% 100%, 76% calc(100% - 4px), 63% calc(100% - 1px), 50% calc(100% - 4px),
    37% 100%, 24% calc(100% - 3px), 12% calc(100% - 1px), 0 calc(100% - 4px), 2% 50%);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 11px 14px;
  background: var(--ink);
  clip-path: var(--rip);
}
.nav-pill a {
  position: relative;
  z-index: 0;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  transition: color 0.2s ease;
}
.nav-pill a::before {
  /* рваный «лоскут» под пунктом при наведении и у активного */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--rip-sm);
  background: transparent;
  transition: background 0.2s ease;
}
.nav-pill a:hover::before { background: var(--ink-3); }
.nav-pill a.is-active::before { background: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 9px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: var(--rip);
  transition: background 0.2s ease;
}
.user-chip:hover { background: var(--ink-3); }
.user-chip__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14px;
}
.user-chip__name { font-weight: 700; font-size: 14px; line-height: 1.1; }
.user-chip__caret { opacity: 0.7; transition: transform 0.2s ease; }
.user-menu { position: relative; }
.user-menu.is-open .user-chip__caret { transform: rotate(180deg); }
.user-menu__drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  background: var(--ink);
  clip-path: var(--rip);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}
.user-menu.is-open .user-menu__drop { opacity: 1; transform: none; pointer-events: auto; }
.user-menu__drop a, .user-menu__drop button {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  color: #fff;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.user-menu__drop a::before, .user-menu__drop button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--rip-sm);
  background: transparent;
  transition: background 0.2s ease;
}
.user-menu__drop a:hover::before, .user-menu__drop button:hover::before { background: var(--ink-3); }
.user-menu__drop .user-menu__out { color: var(--orange); border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 4px; }
.user-menu__drop .user-menu__out:hover::before { background: var(--orange); }
.user-menu__drop .user-menu__out:hover { color: #fff; }
.nav-pill a.nav-logout { color: var(--orange); }
.user-chip__no { font-family: var(--f-mono); font-size: 11px; color: var(--muted-light); }
.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  border-radius: 8px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 13px;
  background: #fff;
}

.burger {
  display: none;
  width: 50px;
  height: 46px;
  border: 0;
  clip-path: var(--rip);
  background: var(--ink);
  cursor: pointer;
  place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.2s ease;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-pill a { white-space: nowrap; }
@media (max-width: 1200px) {
  .nav-pill a { padding: 8px 12px; }
  .brand__name { display: none; }
}
.nav-mobile-only { display: none; }
@media (max-width: 1060px) {
  .burger { display: grid; }
  .nav-mobile-only { display: block; }
  .nav-pill .nav-mobile-only { border-top: 1px solid var(--line-light); border-radius: 0; }
  .nav-pill .nav-mobile-only + .nav-mobile-only { border-top: 0; }
  .header-actions .header-admin { display: none; }
  .nav-pill {
    position: fixed;
    top: calc(var(--header-h) + 4px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 10px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-card);
  }
  .nav-pill a { padding: 14px 18px; font-size: 16px; }
  .menu-open .nav-pill { opacity: 1; transform: none; pointer-events: auto; }
  .brand__name { display: none; }
  .user-chip__text { display: none; }
  .user-chip { padding: 8px 10px; }
  .points-badge { display: none; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 106, 0, 0.8); }
.btn--orange:hover { background: var(--orange-hot); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* Главная кнопка: одна цельная капсула, внутри текст и белый кружок со стрелкой */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 58px;
  padding: 6px 6px 6px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(255, 106, 0, 0.85);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-arrow:hover { background: var(--orange-hot); box-shadow: 0 16px 30px -12px rgba(255, 106, 0, 0.9); }
.btn-arrow:active { transform: translateY(1px); }
.btn-arrow__label {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}
.btn-arrow__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  transition: transform 0.25s ease;
}
.btn-arrow__icon svg { width: 20px; height: 20px; }
.btn-arrow:hover .btn-arrow__icon { transform: rotate(45deg); }

/* ---------- Заголовок секции ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
  position: relative;
  padding-left: 22px;
}
.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -18px;
  height: 70px;
  width: 1.5px;
  background: var(--ink);
}
.section-head__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.section-head__lead { margin-top: 10px; max-width: 620px; color: var(--ink-3); }
.section-path {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.section-path b {
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 2px 8px;
}
.on-dark .section-head::before { background: #fff; }
.on-dark .section-head__lead { color: var(--muted-light); }
.on-dark .section-path { color: var(--muted-light); }
.on-dark .section-path b { color: #fff; border-color: #fff; }
@media (max-width: 700px) {
  .section-head { flex-direction: column; }
}

/* ---------- Плашки-статистика (из 3-го референса) ---------- */
.stat {
  display: inline-grid;
  grid-template-columns: auto;
  position: relative;
  color: #fff;
}
.stat__num {
  justify-self: start;
  background: var(--ink);
  border-radius: 20px 20px 0 20px;
  padding: 10px 20px 4px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 46px;
  line-height: 1;
  position: relative;
}
.stat__num::after {
  /* вогнутый уголок, соединяющий две части */
  content: "";
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 100% 0, transparent 19.5px, var(--ink) 20px);
}
.stat__label {
  margin-left: 36px;
  background: var(--ink);
  border-radius: 0 20px 20px 20px;
  padding: 8px 18px 12px;
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
  min-width: 110px;
}
.stat--orange .stat__num,
.stat--orange .stat__label { background: var(--orange); }
.stat--orange .stat__num::after { background: radial-gradient(circle at 100% 0, transparent 19.5px, var(--orange) 20px); }

/* ---------- Место под арт ---------- */
.art {
  position: relative;
  margin: 0;
}
.art img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.art__placeholder { display: none; }
.art--empty .art__placeholder {
  display: flex;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
  border-radius: 28px;
  border: 2px dashed rgba(28, 29, 33, 0.28);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 106, 0, 0.22), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(28,29,33,0.035) 0 12px, transparent 12px 24px);
  text-align: center;
  overflow: hidden;
}
.art__placeholder::before {
  /* силуэт-монограмма клуба */
  content: "";
  position: absolute;
  inset: 8% 14% 22%;
  background: url("../assets/logo-mark.png") center / contain no-repeat;
  opacity: 0.08;
}
.art__placeholder strong {
  font-family: var(--f-display);
  font-size: 15px;
  text-transform: uppercase;
  position: relative;
}
.art__placeholder span {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  position: relative;
}
.art--dark.art--empty .art__placeholder { border-color: rgba(255,255,255,0.3); background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 106, 0, 0.3), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px); }
.art--dark .art__placeholder::before { filter: brightness(0) invert(1); opacity: 0.08; }
.art--dark .art__placeholder span { color: var(--muted-light); }
.art--dark .art__placeholder strong { color: #fff; }

/* ---------- Наклонные вкладки (из 2-го референса) ---------- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 3px solid var(--ink);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 12px 34px 10px 24px;
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  z-index: 0;
}
.tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 10px 0 0 0;
  transform: skewX(-0deg);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 100%, 0 100%);
  background: transparent;
  transition: background 0.2s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: #fff; }
.tab.is-active::before { background: var(--ink); }
.tabs-sub {
  display: flex;
  justify-content: flex-end;
  padding: 6px 14px;
  background: var(--paper-3);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Строки-таблицы (лидерборд, прайс) ---------- */
.rows { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.row {
  display: grid;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 10px 20px 10px 14px;
  background: #fff;
  border-radius: 4px 4px 10px 10px;
  box-shadow: var(--shadow-row);
  position: relative;
}
.row--me {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-hot) 70%, #ffb27a 100%);
  color: #fff;
}
.rank {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  font-size: 12px;
}
.rank--1 { background: var(--orange); }
.rank--2 { background: var(--ink-3); }
.rank--3 { background: #8a5a35; }
.row--me .rank { background: #fff; color: var(--orange); }
.row__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row__sub { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.row--me .row__sub { color: rgba(255,255,255,0.85); }
.row__value { font-family: var(--f-mono); font-weight: 700; font-size: 14px; text-align: right; white-space: nowrap; }

/* ---------- Карточки ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 0 0 1px var(--line);
  position: relative;
}
.card--dark { background: var(--ink-2); color: #fff; box-shadow: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--paper-2);
  color: var(--ink);
}
.chip--orange { background: var(--orange); color: #fff; }
.chip--dark { background: var(--ink); color: #fff; }
.chip--ok { background: rgba(47, 191, 113, 0.14); color: #1d8a4f; }
.chip--muted { background: var(--paper-3); color: var(--muted); }

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.15); }
textarea.input { min-height: 120px; resize: vertical; }
.input--dark { background: var(--ink-2); border-color: var(--line-light); color: #fff; }
.input--dark::placeholder { color: var(--muted-light); }
.field-error { font-size: 13px; color: var(--danger); min-height: 0; }
.form-grid { display: grid; gap: 14px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(28, 29, 33, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__box {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--paper-2);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.modal__title { font-size: 24px; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.modal__lead { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.modal-switch { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.modal-switch button, .modal-switch a { border: 0; background: none; color: var(--orange); font-weight: 700; cursor: pointer; padding: 0; font: inherit; font-weight: 700; text-decoration: none; }
.modal-switch button:disabled { color: var(--muted); cursor: default; font-weight: 500; }

/* Шаги регистрации и восстановления */
.auth-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.auth-steps span {
  flex: 1;
  padding: 7px 10px 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--paper-2);
  clip-path: var(--rip-sm);
}
.auth-steps span.is-on { background: var(--orange); color: #fff; }
.auth-steps span.is-done { background: var(--ink); color: #fff; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--orange); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.link-btn:hover, .modal-switch button:not(:disabled):hover, .modal-switch a:hover { text-decoration: underline; }
.field-hint { font-size: 13px; color: var(--muted); margin: -4px 0 0; }
.input--code { font-family: var(--f-mono); font-size: 26px; font-weight: 700; letter-spacing: 0.35em; text-align: center; }
.input--code::placeholder { letter-spacing: 0.35em; color: var(--line); }
.demo-code { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fff4e8; border: 1px dashed var(--orange); font-size: 13px; }
.demo-code b { font-family: var(--f-mono); font-size: 15px; letter-spacing: 0.12em; color: var(--orange); }

.reg-success { text-align: center; }
.reg-success__no {
  display: inline-block;
  margin: 14px 0 18px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.reg-success__no span { color: var(--orange); }

/* ---------- Уведомления ---------- */
.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 32px);
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
  border-left: 4px solid var(--orange);
  animation: toast-in 0.25s ease;
  max-width: 380px;
}
.toast--error { border-left-color: var(--danger); }
.toast--ok { border-left-color: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Плашка демо-режима ---------- */
.demo-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
  font-family: var(--f-mono);
  font-size: 12px;
}
.demo-bar b { color: var(--orange); }
.demo-bar button {
  border: 0;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px;
}
@media (max-width: 560px) { .demo-bar { left: 8px; bottom: 8px; } .demo-bar span { display: none; } }

/* ---------- Пусто / загрузка ---------- */
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
}
.skeleton {
  background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%);
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
  border-radius: 8px;
  min-height: 58px;
}
@keyframes sk { to { background-position: -200% 0; } }
