/* ============================================================
   GOOD Growth · КОМПОНЕНТЫ БЛОКОВ (шаг 1)

   Кубики для перестройки мастерской в блоки. Пока НЕ ИСПОЛЬЗУЮТСЯ
   ни на одной странице — подключены, но не влияют ни на один пиксель.

   Правила:
   · только префикс gg- , чтобы не столкнуться со style-c.css
   · цвета берём из style-c.css через var(--pg-*, запасной)
   · ноль правил для существующих классов

   Слои:  токены (style-c.css) -> ЭТИ КУБИКИ -> блоки -> экран
   ============================================================ */

:root {
  /* если style-c.css не дал — берём свои */
  --gg-bg:      var(--pg-bg, #08090A);
  --gg-surface: var(--pg-surface, #0E0F12);
  --gg-surface2:var(--pg-surface2, #111216);
  --gg-line:    var(--pg-line, rgba(255,255,255,.06));
  --gg-line2:   var(--pg-line2, rgba(255,255,255,.10));
  --gg-fg:      var(--pg-fg, #F4F4F5);
  --gg-fg2:     var(--pg-fg2, #A1A1AA);
  --gg-fg3:     var(--pg-fg3, #8B8B95);
  --gg-faint:   var(--pg-faint, #8A8E98);
  --gg-copper:  var(--pg-copper, #E8A54F);
  --gg-copper-l:var(--pg-copper-lt, #F3C583);
  --gg-copper-d:var(--pg-copper-dp, #C97B3C);
  --gg-rec:     #E88A6F;

  --gg-grad: linear-gradient(180deg, #F0BC72, #E8A54F 55%, #DF9A48);
  --gg-r:    12px;
  --gg-r-sm: 9px;
  --gg-r-lg: 16px;
  --gg-rail: 236px;
}

/* ============================================================
   ⚠️ ДЕМОНСТРАЦИОННЫЙ КАРКАС УДАЛЁН (25.10)

   Здесь были .gg-layout / .gg-main / .gg-canvas и — ОПАСНОЕ —
   .gg-rail { position: sticky } с .gg-rail-brand / -new / -nav /
   -sec / -foot / -org.

   Настоящая панель живёт в rail.css (.gg-rail { position: fixed }).
   blocks.css подключается ПОСЛЕ rail.css и перебивал её: панель
   становилась sticky, съезжала вправо на свою ширину, а контент
   уезжал под неё. Дефект жил на проде с e742ace.

   ПРАВИЛО: блоки не имеют права объявлять классы панели.
   Если нужен каркас для демо — делай его в отдельном файле
   с собственными именами (.demo-rail), а не .gg-rail.
   ============================================================ */

/* ---------------- блок ---------------- */
.gg-blk {
  padding: 14px 17px 16px;
  background: var(--gg-surface);
  border-radius: var(--gg-r-lg);
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px var(--gg-line);
  overflow: hidden;
}
.gg-blk-h {
  display: flex; align-items: baseline; gap: 9px;
  padding: 14px 17px 0;
}
.gg-blk-h h2 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; margin: 0;
}
.gg-blk-q {
  font: italic 400 12px/1 Georgia, serif;
  color: var(--gg-faint);
}
.gg-blk-h .gg-more {
  margin-left: auto; font-size: 12px; color: var(--gg-copper);
  text-decoration: none; font-weight: 600;
}
.gg-blk-b { padding: 7px 0 0; }
.gg-blk-b.is-flush { padding: 0; }
.gg-blk > .gg-blk-b:only-child { padding-top: 0; }

/* ---------------- плитки чисел ---------------- */
.gg-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.gg-tile {
  padding: 12px 13px; border-radius: var(--gg-r);
  background: var(--gg-surface2); box-shadow: inset 0 0 0 1px var(--gg-line);
}
.gg-tile .gg-n {
  font-size: 22px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1;
}
.gg-tile .gg-l { margin-top: 3px; font-size: 11px; color: var(--gg-fg2); }
.gg-tile.is-a .gg-n { color: var(--gg-copper-l); }
.gg-tile.is-b .gg-n { color: var(--gg-copper); }
.gg-tile.is-c .gg-n { color: var(--gg-fg3); }
.gg-tile.is-d .gg-n { color: var(--gg-fg); }

/* ---------------- цель в одну строку ---------------- */
.gg-goal { display: flex; gap: 8px; }
.gg-goal input {
  flex: 1; min-width: 0; padding: 12px 15px;
  border: 0; border-radius: 999px;
  background: var(--gg-surface2);
  box-shadow: inset 0 0 0 1px var(--gg-line2);
  font: 400 13.5px/1.3 inherit; color: var(--gg-fg);
}
.gg-goal input::placeholder { color: var(--gg-faint); }
.gg-goal input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(232,165,79,.6);
}
.gg-goal button {
  border: 0; cursor: pointer; padding: 0 20px; border-radius: 999px;
  background: var(--gg-grad); color: #1B1206;
  font: 700 13px/1 inherit;
}
.gg-switch { display: flex; gap: 6px; margin-top: 11px; font-size: 12px; color: var(--gg-fg3); }
.gg-switch a { color: var(--gg-copper); text-decoration: none; }
.gg-switch b { color: var(--gg-fg); }

/* ---------------- пустое состояние ---------------- */
.gg-empty {
  display: grid; justify-items: center; gap: 7px;
  padding: 26px 16px 28px; text-align: center;
}
.gg-empty .gg-ic {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--gg-surface2);
  box-shadow: inset 0 0 0 1px var(--gg-line);
  color: var(--gg-fg3);
}
.gg-empty b { font-size: 12.5px; font-weight: 600; }
.gg-empty span { font-size: 12px; color: var(--gg-faint); max-width: 34ch; }

/* ---------------- строка журнала ---------------- */
.gg-jrow {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0; border-bottom: 1px solid var(--gg-line);
  font-size: 12.5px;
}
.gg-jrow:last-child { border-bottom: 0; }
.gg-jrow .gg-d {
  width: 82px; flex: none; color: var(--gg-faint); font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.gg-jrow .gg-id { width: 34px; flex: none; color: var(--gg-faint); font-weight: 700; font-size: 11px; }
.gg-jrow .gg-g { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-jrow .gg-c { flex: none; color: var(--gg-fg2); font-size: 11px; }
.gg-jrow .gg-go { flex: none; color: var(--gg-copper); font-size: 11px; font-weight: 600; text-decoration: none; }

/* ---------------- видимая строка статуса ---------------- */
/* сейчас #warmStatus и #statusLine пустые и выглядят как сломанные плашки —
   этот кубик показывает их только когда в них есть текст */
.gg-status {
  margin-top: 12px; padding: 10px 13px; border-radius: var(--gg-r-sm);
  background: rgba(232,165,79,.07);
  box-shadow: inset 0 0 0 1px rgba(232,165,79,.22);
  font-size: 12px; color: var(--gg-copper-l);
}
.gg-status:empty { display: none; }

/* ---------------- кнопки ---------------- */
.gg-btn-gold {
  cursor: pointer; border: 0; padding: 9px 16px; border-radius: 999px;
  background: var(--gg-grad); color: #1B1206;
  font: 700 12.5px/1 inherit;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,.55);
}
.gg-btn-ghost {
  cursor: pointer; padding: 8px 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--gg-copper);
  font: 600 12px/1 inherit;
  box-shadow: inset 0 0 0 1px rgba(232,165,79,.35);
}

/* ---------------- узкий экран: только наши плитки ----------------
   ⚠️ Строки про .gg-layout и .gg-rail отсюда УДАЛЕНЫ.
   Они прятали настоящую панель ниже 900px — rail.css делает это
   сам и на 768px. blocks.css грузится позже и перебивал его. */
@media (max-width: 900px) {
  .gg-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ВОЛНА 2 — компоненты для врезки блоков в живые страницы
   (приказ №78, одобрено Капитаном: блоки как у Buffer, наш стиль)

   Взяты ПРИНЦИПЫ Buffer: голый заголовок, вкладки со счётчиками,
   расписание «день → время → слот», воздух 28px.
   НЕ взято: светлая тема, зелёная кнопка, стыд-бар, 12 платформ.

   Пока НИ ОДНА страница эти классы не использует —
   подключение даёт ровно ноль изменений.
   ============================================================ */

/* ---- верхняя строка: голый h1 + вид + действие ---- */
.gg-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.gg-topbar h1 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.gg-topbar .gg-grow { flex: 1; }

/* ---- сегментированный переключатель ---- */
.gg-seg {
  display: flex; padding: 2px; border-radius: 999px;
  background: var(--surface-2, #111216);
  box-shadow: inset 0 0 0 1px var(--line, rgba(255,255,255,.06));
}
.gg-seg button {
  border: 0; background: transparent; cursor: pointer; padding: 6px 13px;
  border-radius: 999px; font: 600 12px/1 inherit; color: var(--fg-3, #8B8B95);
}
.gg-seg button.is-on { background: #16181D; color: var(--fg, #F4F4F5); }

/* ---- вкладки со счётчиками ---- */
.gg-tabs {
  display: flex; align-items: center; gap: 22px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line, rgba(255,255,255,.06)); margin-bottom: 24px;
}
.gg-tabs a {
  text-decoration: none; color: var(--fg-3, #8B8B95); font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 7px; padding-bottom: 12px; margin-bottom: -13px;
}
.gg-tabs a.is-on { color: var(--fg, #F4F4F5); box-shadow: inset 0 -2px 0 var(--copper, #E8A54F); }
.gg-tabs .gg-n {
  font-size: 11px; font-weight: 700; color: var(--fg-3, #8B8B95);
  background: var(--surface-2, #111216); border-radius: 999px; padding: 2px 7px;
}
.gg-tabs .gg-filters { margin-left: auto; display: flex; gap: 16px; font-size: 12.5px; color: var(--fg-3, #8B8B95); }

/* ---- статус-чип ---- */
.gg-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  color: var(--copper-lt, #F3C583); background: rgba(232,165,79,.10);
}
.gg-chip.is-quiet { color: var(--fg-3, #8B8B95); background: var(--surface-2, #111216); }

/* ---- расписание: день → время → слот ---- */
.gg-day { margin-bottom: 22px; }
.gg-day h3 { font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.gg-day h3 small { font-weight: 400; color: var(--faint, #8A8E98); margin-left: 6px; }
.gg-slot { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.gg-slot .gg-t { width: 76px; flex: none; font-size: 12px; color: var(--faint, #8A8E98); font-variant-numeric: tabular-nums; }
.gg-slot .gg-box {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  border-radius: var(--gg-r-sm, 8px); background: transparent;
  border: 1px dashed var(--line-2, rgba(255,255,255,.10));
  color: var(--fg-3, #8B8B95); font-size: 12.5px; cursor: pointer;
}
.gg-slot .gg-box:hover { border-color: var(--copper, #E8A54F); color: var(--copper, #E8A54F); }
.gg-slot .gg-box.is-filled {
  border: 1px solid var(--line, rgba(255,255,255,.06));
  background: var(--surface-2, #111216); color: var(--fg, #F4F4F5);
}

/* ---- карточки брендов ---- */
.gg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gg-bcard {
  padding: 18px; border-radius: var(--gg-r, 12px);
  background: var(--surface-2, #111216);
  box-shadow: inset 0 0 0 1px var(--line, rgba(255,255,255,.06));
}
.gg-bcard .gg-av {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, #F0BC72, #E8A54F 55%, #DF9A48);
  color: #1B1206; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; margin-bottom: 11px;
}
.gg-bcard b { display: block; font-size: 13.5px; }
.gg-bcard span { display: block; font-size: 11px; color: var(--faint, #8A8E98); margin-top: 1px; }
.gg-bcard .gg-foot { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 11px; color: var(--fg-3, #8B8B95); }
.gg-bcard .gg-foot a { margin-left: auto; color: var(--copper, #E8A54F); text-decoration: none; font-weight: 600; }

@media (max-width: 1100px) { .gg-cards { grid-template-columns: repeat(2, 1fr); } }

/* ---- светлая тема для новых компонентов ---- */
html[data-theme="light"] .gg-seg button.is-on { background: #F3EFE6; color: #14201A; }
html[data-theme="light"] .gg-chip { color: #7E400E; background: rgba(154,85,24,.10); }
html[data-theme="light"] .gg-chip.is-quiet { color: #6F7A72; background: #F3EFE6; }
html[data-theme="light"] .gg-tabs a.is-on { color: #14201A; box-shadow: inset 0 -2px 0 #9A5518; }
html[data-theme="light"] .gg-tabs .gg-n { color: #6F7A72; background: #F3EFE6; }
html[data-theme="light"] .gg-slot .gg-box.is-filled { background: #FAF8F3; }
html[data-theme="light"] .gg-slot .gg-box:hover { border-color: #9A5518; color: #9A5518; }
html[data-theme="light"] .gg-bcard { background: #FAF8F3; }
html[data-theme="light"] .gg-bcard .gg-foot a { color: #9A5518; }

/* ═══ ПАНЕЛЬ РИТМА (сетка слотов) ═══════════════════════════════
   Три состояния одной панели: спросить → показать сетку → свернуть.
   Свёрнутая строка липнет к верху на телефоне, чтобы не уезжала. */
.rt-lead { color: var(--faint); font-size: 12.5px; margin: 0 0 14px; max-width: 60ch; }
.rt-opts { display: grid; gap: 8px; max-width: 560px; }
.rt-opt { display: grid; grid-template-columns: 44px 1fr 18px; gap: 14px; align-items: center;
  border: 1px solid var(--hair); border-radius: 12px; padding: 11px 14px;
  background: var(--surface-2); cursor: pointer; }
.rt-opt .x { font-family: var(--font-display, Georgia, serif); font-size: 17px; color: var(--faint); text-align: center; }
.rt-opt b { display: block; font-size: 13.5px; font-weight: 600; }
.rt-opt p { margin: 2px 0 0; color: var(--faint); font-size: 12px; }
.rt-opt .r { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--hair); }
.rt-opt:hover { border-color: rgba(232,165,79,.45); }
.rt-opt.on { border-color: rgba(232,165,79,.55); background: rgba(232,165,79,.10); }
.rt-opt.on .x { color: var(--copper); }
.rt-opt.on .r { border-color: var(--copper); border-width: 5px; }

.rt-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 6px 0 18px; }
.rt-day { border: 1px dashed var(--hair); border-radius: 14px; background: transparent;
  padding: 12px 11px 9px; min-height: 122px; display: flex; flex-direction: column; }
.rt-day .d { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.rt-day.on { border-style: solid; border-color: rgba(232,165,79,.42);
  background: linear-gradient(180deg, rgba(232,165,79,.08), rgba(232,165,79,.01)); }
.rt-day.on .d { color: var(--copper); }
.rt-time { display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .02em;
  color: var(--ink, #F3F1EA); background: rgba(255,255,255,.04);
  border: 1px solid var(--hair); border-radius: 8px; padding: 5px 7px; margin-bottom: 5px; }
.rt-time button { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 11px; line-height: 1; padding: 0 1px; }
.rt-time button:hover { color: #E88A6F; }
.rt-add { margin-top: auto; border: 0; background: none; color: var(--faint); cursor: pointer;
  font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .04em;
  padding: 6px 0 0; text-align: left; }
.rt-day.on .rt-add { color: var(--copper); }
.rt-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--hair); }
.rt-sum { color: var(--muted); font-size: 13px; flex: 1; min-width: 220px; }
.rt-sum b { color: var(--ink, #F3F1EA); font-size: 16px; }

/* свёрнутая строка */
.rt-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.rt-line .rt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); flex: none; }
.rt-line b { font-weight: 600; }
.rt-line .rt-times { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--faint); }
.rt-line .rt-edit { margin-left: auto; color: var(--copper); font-size: 12px; font-weight: 600;
  text-decoration: none; cursor: pointer; }
@media (max-width: 768px) {
  .rt-week { grid-template-columns: repeat(2, 1fr); }
  .rt-line { position: sticky; top: 0; z-index: 25; background: var(--surface);
    margin: -22px -24px 0; padding: 11px 24px; border-bottom: 1px solid var(--hair); }
}
/* ── правый блок топбара: режим · языки · тема (как в дизайне) ── */
.gg-sys { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.gg-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--hair);
  border-radius: 999px; padding: 6px 12px; background: var(--surface);
  font: 500 10.5px/1 var(--font-mono, monospace); letter-spacing: .08em; color: var(--muted); }
.gg-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.gg-lang { display: inline-flex; border: 1px solid var(--hair); border-radius: 999px;
  overflow: hidden; background: var(--surface); }
.gg-lang button { border: 0; background: none; padding: 6px 10px; cursor: pointer;
  font: 500 10.5px/1 var(--font-mono, monospace); letter-spacing: .08em; color: var(--muted); }
.gg-lang button[aria-pressed="true"] { background: var(--copper); color: #1B1206; font-weight: 700; }
.gg-lang button:not([aria-pressed="true"]):hover { color: var(--ink, #F3F1EA); }
.gg-icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair);
  background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center;
  font-size: 14px; line-height: 1; }
.gg-icon:hover { border-color: rgba(232,165,79,.45); color: var(--copper); }
@media (max-width: 768px) {
  .gg-sys { margin-left: auto; gap: 6px; }
  .gg-chip { display: none; }
  .gg-lang button { padding: 6px 8px; }
}


/* ── общая шапка (topline) ─────────────────────────────────────
   Одна на всех страницах: слева «← О сервисе», справа режим,
   языки и тема. Полоса во всю ширину, липнет к верху. */
.gg-band {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px var(--pad-x, clamp(18px, 2.4vw, 44px));
  /* цвет прямой: переменная --hair на части страниц пустая, и линия пропадала */
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: color-mix(in oklch, var(--bg, #08090A) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 60;
}
.gg-band .gg-crumb {
  font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: .04em;
  color: var(--faint); text-decoration: none;
}
.gg-band .gg-crumb:hover { color: var(--ink, #F3F1EA); }
.gg-band .gg-sys { margin-left: auto; }
@media (max-width: 768px) {
  .gg-band { padding: 10px 16px; }
  .gg-band .gg-chip { display: none; }
}

html[data-theme="light"] .gg-band {
  border-bottom-color: rgba(20, 32, 26, .14);
  background: rgba(244, 241, 234, .92);
}

/* ── одна мера ширины на всех страницах ───────────────────────
   До этого: 1120 на большинстве, 1000 на профиле и аналитике.
   Теперь везде 1120 и одинаковые поля. */
.wrap {
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}
@media (max-width: 768px) {
  .wrap { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ── одинаковые поля у body ───────────────────────────────────
   На профиле было padding: 24px 24px 60px 232px — из-за этого
   шапка и контент были уже, чем на других страницах. */
body.gg-with-rail {
  padding: 0 0 40px var(--rail-w, 232px) !important;
}

/* ── ТЕЛЕФОН: панель уезжает, значит и левый отступ убираем ────
   Моё правило выше (body.gg-with-rail) перебивало мобильное
   правило rail.css, и контент сжимался до 158px на экране 390. */
@media (max-width: 768px) {
  body.gg-with-rail { padding: 0 0 32px 0 !important; }
}

/* ── знак в шапке для телефона ───────────────────────────────
   На узком экране панель уезжает, и логотип исчезал вместе с ней.
   Показываем знак прямо в шапке. */
.gg-band-brand { display: none; align-items: center; gap: 9px; text-decoration: none; }
.gg-band-brand b { font-size: 14px; font-weight: 600; color: var(--ink, #F3F1EA); letter-spacing: -.01em; }
.gg-band-brand .gg-mark { width: 20px; height: 27px; display: block; }
@media (max-width: 768px) {
  .gg-band-brand { display: flex; }
  .gg-band .gg-crumb { display: none; }
}

/* ── одна шапка на телефоне ─────────────────────────────────
   Старая шапка (#gg-header) дублировала новую: два логотипа и
   два «GOOD Growth». Убираем её совсем, меню — в нашей полосе. */
#gg-header { display: none !important; }

.gg-burger { display: none; width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--ink, #F3F1EA); font-size: 16px; line-height: 1; }
.gg-mobmenu[hidden] { display: none !important; }
.gg-mobmenu { position: fixed; left: 0; right: 0; top: 56px; z-index: 90;
  background: #0C0D10; border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 10px 14px 16px; display: grid; gap: 2px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.gg-mobmenu a { display: block; padding: 11px 10px; border-radius: 10px; text-decoration: none;
  color: #A09C92; font-size: 15px; }
.gg-mobmenu a:hover { background: rgba(255,255,255,.05); color: #F3F1EA; }
.gg-mobmenu-out { color: #E8694F !important; }
@media (max-width: 768px) {
  .gg-burger { display: block; }
  .gg-band { justify-content: space-between; }
}

/* ── таблицы на телефоне: свой скролл, страница не едет ───────
   Таблица сравнения на «Партнёрам» была 484px при экране 390
   и растягивала всю страницу. */
@media (max-width: 768px) {
  .wrap table, table.compare {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── перенос кнопок в топбаре на телефоне ────────────────────
   Кнопка «Добавить» на «Брендах» уезжала за экран на 40px. */
@media (max-width: 768px) {
  .gg-topbar { flex-wrap: wrap; row-gap: 10px; }
  .gg-topbar .gg-grow { flex-basis: 100%; height: 0; }
  .gg-topbar > button, .gg-topbar > .gg-btn-gold { margin-left: 0; }
}

/* ── ОДИН РАЗМЕР У КНОПОК ШАПКИ ──────────────────────────────
   Бургер, языки и тема были разной высоты и ширины (38×34, 90×25,
   38×30) — от этого «криво». Теперь всё 34 в высоту. */
@media (max-width: 768px) {
  .gg-band #ggBurger, .gg-band .gg-burger {
    width: 34px !important; height: 34px !important; padding: 0 !important;
    display: inline-grid; place-items: center; border-radius: 9px;
  }
  .gg-band #ggThemeBtn, .gg-band .gg-icon {
    width: 34px !important; height: 34px !important; padding: 0 !important;
    display: inline-grid; place-items: center;
  }
  .gg-band .gg-lang { height: 34px !important; align-items: stretch; }
  .gg-band .gg-lang button { height: 32px !important; padding: 0 11px !important; }
}

/* ── кнопка-ссылка без подчёркивания ──────────────────────────
   «+ Новый пост» — это <a class="gg-btn-gold">, а у ссылки
   по умолчанию подчёркивание. */
.gg-btn-gold, .gg-btn-ghost, a.gg-btn-gold, a.gg-btn-ghost {
  text-decoration: none !important;
}
.gg-btn-gold:hover, .gg-btn-ghost:hover,
a.gg-btn-gold:hover, a.gg-btn-ghost:hover { text-decoration: none !important; }

/* текущая страница в мобильном меню — как в панели */
.gg-mobmenu a.is-on {
  background: rgba(232,165,79,.12);
  color: #F3C583;
  font-weight: 600;
}

/* «Выйти» — кнопка, «Войти» — ссылка */
.gg-mobmenu .gg-mobmenu-out {
  display: block; width: 100%; text-align: left; padding: 11px 10px; border: 0;
  border-radius: 10px; background: none; cursor: pointer; color: #E8694F;
  font: 400 15px var(--font-body, inherit); font-family: inherit;
}
.gg-mobmenu .gg-mobmenu-out:hover { background: rgba(232,105,79,.08); }
.gg-mobmenu .gg-mobmenu-in {
  display: block; padding: 11px 10px; border-radius: 10px; text-decoration: none;
  color: #E8A54F; font-size: 15px; font-weight: 600;
}
.gg-mobmenu .gg-mobmenu-in:hover { background: rgba(232,165,79,.10); }

/* ══ ПУТЬ: тропа и телефонная полоса ═══════════════════════════
   Эти правила нужны и здесь: страницы панели грузят blocks.css,
   а не za.css (где живёт лента Стола). */

.gg-trail { margin: 18px 10px 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.09); }
.gg-trail-h { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint, #8A857C); padding: 0 6px 8px; }
.gg-trail a { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 8px;
  text-decoration: none; font-size: 12px; color: var(--faint, #8A857C); }
.gg-trail a:hover { background: rgba(255,255,255,.04); color: var(--muted, #A09C92); }
.gg-trail i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--step, #7C786F); flex: none; }
.gg-trail a.done i { background: var(--step, #4CB853); border-color: var(--step, #4CB853); }
.gg-trail a.now i { background: var(--step, #F8961D); border-color: var(--step, #F8961D);
  box-shadow: inset 0 0 0 1px rgba(248,150,29,.55); }
.gg-trail a.done { color: var(--muted, #A09C92); }
.gg-trail a.now { color: var(--step, #FFC98A); font-weight: 600; }
.gg-trail a.loading { opacity: .45; }
.gg-trail a.note { color: var(--copper, #E8A54F); font-size: 12px; }

.gg-mtrail { display: none; }
@media (max-width: 960px) {
  .gg-mtrail {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.09);
    background: #0B0C0F;
  }
  .gg-mtrail .lbl {
    font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--faint, #8A857C); margin-right: 2px;
  }
  .gg-mtrail a { display: block; text-decoration: none; }
  .gg-mtrail i { display: block; width: 10px; height: 10px; border-radius: 50%;
    border: 1px solid var(--step); background: transparent; }
  .gg-mtrail a.done i { background: var(--step); }
  .gg-mtrail a.now i { background: var(--step); box-shadow: inset 0 0 0 1px rgba(248,150,29,.6); }
  .gg-mtrail a.loading i { opacity: .35; }
  .gg-mtrail .now-name { margin-left: auto; font-size: 12px; color: #FFC98A; font-weight: 600; }
  .gg-mtrail a[href="/login"], .gg-mtrail a[data-path-retry] { font-size: 12px; color: var(--copper, #E8A54F); }
}

/* ══ СВЕТЛАЯ ТЕМА: путь должен быть виден ═════════════════════
   На белом серая дорога исчезала, а подписи «сделано» были
   почти прозрачными. Даём тёмные оттенки той же гаммы. */
[data-theme="light"] .ggpath {
  background: #FFFDF8;
  border-color: rgba(28,24,18,.10);
}
[data-theme="light"] #ggRoad { stroke: rgba(28,24,18,.16); }
[data-theme="light"] .ggpath-q { color: #8C877C; }
[data-theme="light"] .ggpath-cnt { color: #177A68; }

[data-theme="light"] .ggpath-lg .n { opacity: .9; }
[data-theme="light"] .ggpath-lg .nm { color: #55514A; }
[data-theme="light"] .ggpath-lg .ex { color: #7A756B; }
[data-theme="light"] .ggpath-lg.done .nm { color: #2F5A38; }
[data-theme="light"] .ggpath-lg.later .nm { color: #4E4A43; }

[data-theme="light"] .ggpath-lg.next {
  background: rgba(248,150,29,.10);
  border-color: rgba(196,116,12,.38);
}
[data-theme="light"] .ggpath-lg.next .nm,
[data-theme="light"] .ggpath-lg.next .n { color: #8A4A00; }
[data-theme="light"] .ggpath-lg.next .ex { color: #7A5A2E; }
[data-theme="light"] .ggpath-go {
  color: #7A3F00; border-color: rgba(196,116,12,.45);
  background: rgba(248,150,29,.18);
}
[data-theme="light"] .ggpath-go:hover { background: rgba(248,150,29,.28); }
[data-theme="light"] .ggpath-act { color: #7A3F00; border-color: rgba(196,116,12,.42); }
[data-theme="light"] .ggpath-msg { color: #4E4A43; }
[data-theme="light"] .ggpath-skel { color: #8C877C; }

/* тропа в панели на светлой */
[data-theme="light"] .gg-trail { border-top-color: rgba(28,24,18,.10); }
[data-theme="light"] .gg-trail-h { color: #8C877C; }
[data-theme="light"] .gg-trail a { color: #5C5850; }
[data-theme="light"] .gg-trail a:hover { background: rgba(28,24,18,.05); color: #2E2B26; }
[data-theme="light"] .gg-trail a.done { color: #2F5A38; }
[data-theme="light"] .gg-trail a.note { color: #8A4A00; }

/* телефонная полоса на светлой */
[data-theme="light"] .gg-mtrail { background: #FFFDF8; border-bottom-color: rgba(28,24,18,.10); }
[data-theme="light"] .gg-mtrail .lbl { color: #8C877C; }
[data-theme="light"] .gg-mtrail .now-name { color: #8A4A00; }

/* ── языки и тема всегда справа ──────────────────────────────
   Их держала крошка своим отступом. На «Столе» крошки нет —
   и блок уезжал влево. Теперь он прижат к правому краю сам. */
.gg-band > .gg-sys,
.topline > .gg-sys,
.gg-band .gg-sys,
.topline .status-chips { margin-left: auto !important; }
.gg-band > .gg-crumb,
.gg-band > .crumb { margin-right: auto; }

/* ══ КАНАЛЫ: полный список сетей ═════════════════════════════ */
.chan-note {
  margin: 18px 0 22px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(232,165,79,.28); background: rgba(232,165,79,.07);
  color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 760px;
}
.chan-note b { color: var(--ink); }

.chan-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.chan-card {
  display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--hair, rgba(255,255,255,.09)); background: var(--surface, #121317);
}
.chan-card.ok { border-color: rgba(76,184,83,.35); background: rgba(76,184,83,.06); }
.chan-ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid rgba(255,255,255,.08);
}
.chan-card.ok .chan-ic { background: rgba(76,184,83,.16); color: #8FD9A0; border-color: rgba(76,184,83,.4); }
.chan-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chan-tx b { font-size: 14px; color: var(--ink); }
.chan-tx em { font-style: normal; font-size: 12px; color: var(--faint); line-height: 1.35; }
.chan-st {
  font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--faint); border: 1px solid rgba(255,255,255,.10);
}
.chan-card.ok .chan-st { color: #8FD9A0; border-color: rgba(76,184,83,.45); background: rgba(76,184,83,.12); }

.chan-tg {
  margin-top: 26px; padding: 20px 22px; border-radius: 16px;
  border: 1px solid var(--hair, rgba(255,255,255,.09)); background: var(--surface, #121317);
}
.chan-tg h2 { font-family: var(--font-display, serif); font-size: 20px; margin: 0 0 2px; }
.chan-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chan-row input {
  flex: 1 1 260px; padding: 11px 14px; border-radius: 10px; font: inherit; font-size: 14px;
  border: 1px solid var(--hair, rgba(255,255,255,.10)); background: var(--bg-soft, #0E0F13); color: var(--ink);
}
.chan-row input:focus { outline: none; border-color: rgba(232,165,79,.5); }
.chan-go {
  padding: 11px 18px; border-radius: 999px; cursor: pointer; border: 0;
  background: var(--amber, #E8A54F); color: #1B1206; font: 700 13px inherit; font-weight: 700;
}
.chan-go:hover { background: #F3C583; }
.chan-hint { margin: 10px 0 0; font-size: 12px; color: var(--faint); }

@media (max-width: 640px) {
  .chan-grid { grid-template-columns: 1fr; }
  .chan-card { grid-template-columns: 32px 1fr; }
  .chan-st { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* ══ ТАРИФЫ ══════════════════════════════════════════════════ */
.pl-grid { display: grid; gap: 14px; margin: 22px 0 26px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.pl-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 18px;
  border: 1px solid var(--hair, rgba(255,255,255,.09)); border-radius: 16px;
  background: var(--surface, #121317);
}
.pl-card.is-cur { border-color: rgba(232,165,79,.45); background: rgba(232,165,79,.06); }
.pl-card h2 { margin: 0; font-family: var(--font-display, serif); font-size: 20px; font-weight: 500; }
.pl-price { margin: 0; display: flex; align-items: baseline; gap: 7px; }
.pl-price b { font-size: 26px; font-family: var(--font-display, serif); color: var(--ink); }
.pl-price span { font-size: 11px; color: var(--faint); }
.pl-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); min-height: 36px; }
.pl-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; color: var(--muted); }
.pl-list li::before { content: "· "; color: var(--amber); }
.pl-cur { margin: 0; font-family: var(--font-mono, monospace); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.pl-go { margin-top: auto; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; }
.pl-go:hover { background: rgba(255,255,255,.05); }
.pl-card.is-cur .pl-go { border-color: transparent; background: rgba(232,165,79,.18); color: #C8A87E; cursor: default; }

.pl-free { padding: 16px 20px; border-radius: 14px; font-size: 13px; line-height: 1.6;
  border: 1px solid rgba(232,165,79,.26); background: rgba(232,165,79,.05); color: var(--muted); max-width: 760px; }
.pl-free b { color: var(--ink); }
.pl-hint { display: block; margin-top: 6px; color: var(--faint); font-size: 12px; }

.pl-q { margin-top: 34px; max-width: 720px; }
.pl-q h2 { font-family: var(--font-display, serif); font-size: 22px; font-weight: 500; margin: 0 0 12px; }
.pl-q details { padding: 12px 0; border-top: 1px solid var(--hair, rgba(255,255,255,.08)); }
.pl-q summary { cursor: pointer; font-size: 14px; color: var(--ink); }
.pl-q details p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

[data-theme="light"] .pl-card { background: #FFFDF8; }
[data-theme="light"] .pl-card.is-cur { background: #FFF6E4; }

/* пять тарифов в один ряд на широком экране */
@media (min-width: 1360px) {
  .pl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* переключатель месяц / год */
.pl-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 16px 0 6px;
  border-radius: 999px; border: 1px solid var(--hair, rgba(255,255,255,.10));
  background: rgba(255,255,255,.02); }
.pl-sw { padding: 8px 18px; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: 13px; border: 0; background: transparent; color: var(--faint); }
.pl-sw.on { background: var(--amber, #E8A54F); color: #1B1206; font-weight: 700; }
.pl-sw-badge { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 999px; background: rgba(76,184,83,.18); color: #8FD9A0; margin-left: 4px; }
.pl-sw.on .pl-sw-badge { background: rgba(0,0,0,.18); color: #1B1206; }
.pl-year { margin: -4px 0 0; font-size: 11px; color: var(--faint); }
[data-theme="light"] .pl-switch { background: rgba(28,24,18,.03); }

/* цена не должна рваться по слогам */
.pl-price b, .pl-price span { white-space: nowrap; }
.pl-price { flex-wrap: wrap; }
@media (min-width: 1360px) {
  .pl-price b { font-size: 23px; }
  .pl-price span { font-size: 11px; }
}

/* ══ СРАВНЕНИЕ И ПОДБОР ТАРИФА ═══════════════════════════════ */
.pl-rec { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 999px; vertical-align: middle;
  background: rgba(232,165,79,.18); color: #C8A87E; }
.pl-card.is-fit { outline: 2px solid rgba(232,165,79,.45); outline-offset: 2px; }

.pl-calc { margin: 26px 0 10px; padding: 20px 22px; border-radius: 16px; max-width: 760px;
  border: 1px solid var(--hair, rgba(255,255,255,.09)); background: var(--surface, #121317); }
.pl-calc h2 { margin: 0 0 4px; font-family: var(--font-display, serif); font-size: 21px; font-weight: 500; }
.pl-calc-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pl-calc label { display: flex; flex-direction: column; gap: 6px; font-size: 11px;
  font-family: var(--font-mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pl-calc input { width: 96px; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 15px;
  border: 1px solid var(--hair, rgba(255,255,255,.12)); background: var(--bg-soft, #0E0F13); color: var(--ink); }
.pl-calc input:focus { outline: none; border-color: rgba(232,165,79,.5); }
.pl-calc-out { padding-bottom: 10px; font-size: 13.5px; color: var(--amber); }

.pl-compare { margin: 26px 0 0; max-width: 900px; }
.pl-compare summary { cursor: pointer; font-size: 14px; color: var(--ink);
  padding: 14px 0; border-top: 1px solid var(--hair, rgba(255,255,255,.08)); }
.pl-table-wrap { overflow-x: auto; margin-top: 10px; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 640px; }
.pl-table th, .pl-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--hair, rgba(255,255,255,.07)); }
.pl-table th { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); font-weight: 400; }
.pl-table td:first-child { color: var(--muted); }
.pl-table td { color: var(--ink); }
.pl-table tbody tr:hover { background: rgba(255,255,255,.02); }
.pl-soon { color: var(--faint) !important; font-style: normal; }
[data-theme="light"] .pl-calc { background: #FFFDF8; }
[data-theme="light"] .pl-calc input { background: #fff; }

/* ══ ОПЛАТА ══════════════════════════════════════════════════ */
.bill-grid { display: grid; gap: 14px; margin: 20px 0 26px; max-width: 760px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bill-card { padding: 20px 22px; border-radius: 16px;
  border: 1px solid var(--hair, rgba(255,255,255,.09)); background: var(--surface, #121317); }
.bill-card.is-new { border-color: rgba(232,165,79,.4); background: rgba(232,165,79,.05); }
.bill-lbl { margin: 0 0 6px; font-family: var(--font-mono, monospace); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.bill-card h2 { margin: 0 0 8px; font-family: var(--font-display, serif); font-size: 22px; font-weight: 500; }
.bill-price { margin: 0 0 12px; display: flex; align-items: baseline; gap: 7px; }
.bill-price b { font-size: 24px; font-family: var(--font-display, serif); color: var(--ink); }
.bill-price span { font-size: 11px; color: var(--faint); }
.bill-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; color: var(--muted); }
.bill-list li::before { content: "· "; color: var(--amber); }
.bill-load { margin: 0; color: var(--faint); font-size: 13px; }

.bill-ask { max-width: 760px; padding: 20px 22px; border-radius: 16px;
  border: 1px solid var(--hair, rgba(255,255,255,.09)); background: var(--surface, #121317); }
.bill-ask h2 { margin: 0 0 4px; font-family: var(--font-display, serif); font-size: 20px; font-weight: 500; }
.bill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.bill-row input { flex: 1 1 260px; padding: 11px 14px; border-radius: 10px; font: inherit; font-size: 14px;
  border: 1px solid var(--hair, rgba(255,255,255,.12)); background: var(--bg-soft, #0E0F13); color: var(--ink); }
.bill-row input:focus { outline: none; border-color: rgba(232,165,79,.5); }
.bill-hint { margin: 10px 0 0; font-size: 12px; color: var(--amber); min-height: 16px; }
.bill-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
[data-theme="light"] .bill-card, [data-theme="light"] .bill-ask { background: #FFFDF8; }
[data-theme="light"] .bill-card.is-new { background: #FFF6E4; }
[data-theme="light"] .bill-row input { background: #fff; }

/* ссылки-кнопки под заявкой */
.bill-links .step-go {
  display: inline-block; text-decoration: none; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--hair, rgba(255,255,255,.14)); color: var(--ink);
  font-size: 12.5px; background: transparent;
}
.bill-links .step-go:hover { background: rgba(255,255,255,.05); }

/* ══ ОПЛАТА КАРТОЙ ════════════════════════════════════════════ */
.bill-pay { max-width: 760px; margin: 26px 0 0; padding: 22px 24px; border-radius: 16px;
  border: 1px solid var(--hair, rgba(255,255,255,.09)); background: var(--surface, #121317); }
.bill-pay h2 { margin: 0 0 4px; font-family: var(--font-display, serif); font-size: 21px; font-weight: 500; }
.bill-method { margin: 0 0 18px; font-size: 12.5px; color: var(--faint); }
.bill-fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bill-fld span { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); }
.bill-fld input { padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 15px;
  letter-spacing: .04em; border: 1px solid var(--hair, rgba(255,255,255,.12));
  background: var(--bg-soft, #0E0F13); color: var(--ink); }
.bill-fld input:focus { outline: none; border-color: rgba(232,165,79,.5); }
.bill-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bill-pay-btn { width: 100%; margin-top: 6px; padding: 13px 18px; border-radius: 12px; cursor: pointer;
  border: 0; background: var(--amber, #E8A54F); color: #1B1206; font: inherit; font-size: 14.5px; font-weight: 700; }
.bill-pay-btn:hover { background: #F3C583; }
.bill-pay-btn:disabled { opacity: .7; cursor: default; }
.bill-fine { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--faint); }
@media (max-width: 520px) { .bill-2 { grid-template-columns: 1fr; } }
[data-theme="light"] .bill-pay { background: #FFFDF8; }
[data-theme="light"] .bill-fld input { background: #fff; }

/* ══ СПОСОБЫ ОПЛАТЫ ПО РЕГИОНАМ ══════════════════════════════ */
.pay-regions { margin: 0 0 20px; display: flex; flex-direction: column; gap: 14px; }
.pay-load { margin: 0; font-size: 12px; color: var(--faint); }
.pay-reg-nm { margin: 0 0 6px; font-family: var(--font-mono, monospace); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pay-prov { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline;
  gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.pay-prov-nm { font-size: 13px; color: var(--ink); }
.pay-st { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); color: var(--faint); }
.pay-st.ok { color: #8FD9A0; border-color: rgba(76,184,83,.45); background: rgba(76,184,83,.1); }
.pay-ms { font-size: 12px; color: var(--muted); line-height: 1.45; }
[data-theme="light"] .pay-prov { border-bottom-color: rgba(28,24,18,.08); }

/* пульт: период и валюта рядом */
.pl-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pl-curswitch { display: inline-flex; gap: 2px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--hair, rgba(255,255,255,.10)); background: rgba(255,255,255,.02); }
.pl-cur { min-width: 34px; padding: 7px 10px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--faint); }
.pl-cur.on { background: rgba(255,255,255,.08); color: var(--ink); }
.pl-hint-cur { font-size: 11px; color: var(--faint); }
[data-theme="light"] .pl-curswitch { background: rgba(28,24,18,.03); }
[data-theme="light"] .pl-cur.on { background: #FFF6E4; color: #2E2B26; }

/* ══ ПАРТНЁРСКАЯ ПРОГРАММА ══════════════════════════════════ */
.pr-grid { display: grid; gap: 14px; margin: 22px 0 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pr-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px;
  border-radius: 16px; border: 1px solid var(--hair, rgba(255,255,255,.09));
  background: var(--surface, #121317); }
.pr-card.is-main { border-color: rgba(232,165,79,.38); background: rgba(232,165,79,.05); }
.pr-lbl { margin: 0; font-family: var(--font-mono, monospace); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pr-card h2 { margin: 0; font-family: var(--font-display, serif); font-size: 22px; font-weight: 500; }
.pr-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pr-price b { font-family: var(--font-display, serif); font-size: 26px; color: var(--ink); }
.pr-price span { font-size: 12px; color: var(--faint); }
.pr-tx { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.pr-link-demo { margin: 2px 0 0; padding: 8px 12px; border-radius: 9px; font-family: var(--font-mono, monospace);
  font-size: 12px; color: var(--muted); background: rgba(255,255,255,.04); }
.pr-link-demo b { color: var(--amber); }
.pr-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; color: var(--muted); }
.pr-list li::before { content: "· "; color: var(--amber); }
.pr-list code, .pr-steps code { font-family: var(--font-mono, monospace); font-size: 12px;
  padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.06); color: var(--ink); }
.pr-go { margin-top: auto; display: inline-block; text-align: center; text-decoration: none;
  padding: 11px 18px; border-radius: 999px; background: var(--amber, #E8A54F); color: #1B1206;
  font-size: 13px; font-weight: 700; }
.pr-go:hover { background: #F3C583; }
.pr-h2 { margin: 34px 0 12px; font-family: var(--font-display, serif); font-size: 22px; font-weight: 500; }
.pr-steps { margin: 0 0 26px; padding-left: 20px; display: flex; flex-direction: column; gap: 9px;
  font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.pr-steps b { color: var(--ink); }
.pr-honest { max-width: 760px; padding: 16px 20px; border-radius: 14px; font-size: 13px; line-height: 1.6;
  border: 1px solid rgba(232,165,79,.28); background: rgba(232,165,79,.06); color: var(--muted); }
.pr-honest b { color: var(--ink); }
.pr-q { max-width: 760px; }
.pr-q details { padding: 12px 0; border-top: 1px solid var(--hair, rgba(255,255,255,.08)); }
.pr-q summary { cursor: pointer; font-size: 14px; color: var(--ink); }
.pr-q details p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.pr-cta { margin-top: 34px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pr-cta p { margin: 0; font-size: 13px; color: var(--muted); }
[data-theme="light"] .pr-card { background: #FFFDF8; }
[data-theme="light"] .pr-card.is-main { background: #FFF6E4; }
[data-theme="light"] .pr-link-demo { background: rgba(28,24,18,.04); }
[data-theme="light"] .pr-list code { background: rgba(28,24,18,.06); color: #2E2B26; }


/* ══ ЕДИНЫЙ ЯЗЫК ═════════════════════════════════════════════
   «Контент» и «Цель» больше не должны выглядеть как другой сайт:
   те же шрифты, тот же масштаб, та же ширина полотна. */
:root, html[data-theme="light"], html[data-theme-src="system"] {
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

body {
  font-family: var(--font-body) !important;
  font-size: 15.5px;
  line-height: 1.6;
}

.wrap h1, h1, .gg-topbar h1 {
  font-family: var(--font-display) !important;
  font-size: 34px !important;
  font-weight: 500 !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}
.wrap h2, h2 {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.22 !important;
}
.wrap h3, h3 {
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.wrap p, .wrap li, .wrap label, .wrap input, .wrap textarea, .wrap select, .wrap button {
  font-family: var(--font-body);
}
.wrap {
  /* полотно по центру свободного места */
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 40px 32px 88px !important;
}
.wrap .sub { font-size: 14px !important; color: var(--muted); line-height: 1.55; }
.wrap .gg-blk-q { font-family: var(--font-mono) !important; }

/* воздух как на «Цели»: больше места между блоками */
.wrap .gg-blk { margin-bottom: 26px; }

/* ══ ПАРТНЁРСКИЙ КАБИНЕТ ═════════════════════════════════════ */
.pc-load { color: var(--faint); font-size: 13px; }
.pc-link { padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(232,165,79,.28);
  background: rgba(232,165,79,.05); max-width: 760px; }
.pc-link-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pc-link-row input { flex: 1 1 320px; padding: 11px 14px; border-radius: 10px; font: inherit;
  font-family: var(--font-mono); font-size: 12.5px; border: 1px solid rgba(255,255,255,.12);
  background: var(--bg-soft, #0E0F13); color: var(--ink); }
.pc-hint { margin: 10px 0 0; font-size: 12px; color: var(--faint); }

.pc-stats { display: grid; gap: 12px; margin: 22px 0; max-width: 760px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pc-stat { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--hair, rgba(255,255,255,.09));
  background: var(--surface, #121317); display: flex; flex-direction: column; gap: 4px; }
.pc-stat b { font-family: var(--font-display, serif); font-size: 24px; color: var(--ink); }
.pc-stat span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); }

.pc-empty { max-width: 640px; padding: 24px; border-radius: 16px;
  border: 1px solid var(--hair, rgba(255,255,255,.09)); background: var(--surface, #121317); }
.pc-empty h2 { margin: 0 0 8px; font-family: var(--font-display, serif); font-size: 22px; font-weight: 500; }
.pc-empty p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.pc-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
[data-theme="light"] .pc-link { background: #FFF6E4; }
[data-theme="light"] .pc-stat, [data-theme="light"] .pc-empty { background: #FFFDF8; }
[data-theme="light"] .pc-link-row input { background: #fff; }

/* кнопка раскладки постов по ритму */
.gg-blk-h .spread-btn {
  margin-left: auto; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(232,165,79,.45); background: rgba(232,165,79,.10);
  color: var(--amber, #E8A54F); font: inherit; font-size: 12.5px; font-weight: 600;
}
.gg-blk-h .spread-btn:hover { background: rgba(232,165,79,.18); }
.gg-blk-h .spread-btn:disabled { opacity: .6; cursor: default; }
[data-theme="light"] .gg-blk-h .spread-btn { color: #8A4A00; border-color: rgba(178,106,18,.4); background: #FFF3DF; }

/* ══ ЧАСЫ ПУБЛИКАЦИЙ ═════════════════════════════════════════
   Тёмный циферблат с насечками, золотая дуга до следующего поста. */
.gg-clocks {
  display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap; margin: 26px 0 6px;
}
.gg-clock {
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
  flex: 1 1 480px; max-width: 620px;
  margin: 26px 0 6px; padding: 26px 30px; border-radius: 22px;
  border: 1px solid rgba(224,192,144,.16);
  background:
    radial-gradient(120% 90% at 18% 20%, rgba(224,192,144,.07), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
}

/* циферблат */
.clk-dial { position: relative; width: 232px; height: 232px; flex: 0 0 auto; }
.clk-svg { width: 100%; height: 100%; overflow: visible; }
.clk-track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1.4; }
.clk-arc {
  fill: none; stroke: #E8B567; stroke-width: 2.2; stroke-linecap: round;
  transition: stroke-dashoffset .9s cubic-bezier(.25,.7,.25,1);
}
.clk-tick { stroke: rgba(255,255,255,.16); stroke-width: 1; }
.clk-tick.is-major { stroke: rgba(255,255,255,.32); stroke-width: 1.3; }
.clk-dot { fill: #E8B567; opacity: .85; }

.clk-face {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; pointer-events: none;
}
.clk-face b {
  font-family: var(--font-sans, 'Golos Text', system-ui), sans-serif;
  font-weight: 300; font-size: 46px; line-height: 1; letter-spacing: .02em;
  color: #F3E9D6; font-variant-numeric: tabular-nums;
}
.clk-face span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(243,233,214,.5);
}

/* подписи справа */
.clk-side { flex: 1 1 220px; min-width: 200px; }
.clk-lab {
  margin: 0 0 6px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}
.clk-when {
  margin: 0; font-family: var(--font-display, 'Playfair Display'), serif;
  font-size: 26px; font-weight: 500; line-height: 1.15; color: var(--ink);
}
.clk-left { margin: 8px 0 0; font-size: 14.5px; color: var(--amber, #E8B567); }
.clk-now {
  margin: 14px 0 0; font-size: 12px; color: var(--faint);
  font-family: var(--font-mono); letter-spacing: .04em;
}
.clk-now b { color: var(--muted); font-weight: 500; }

[data-theme="light"] .gg-clock {
  border-color: rgba(138,74,0,.16);
  background: radial-gradient(120% 90% at 18% 20%, rgba(200,140,60,.10), transparent 62%), #FFFDF8;
}
[data-theme="light"] .clk-face b { color: #2A2621; }
[data-theme="light"] .clk-face span { color: rgba(42,38,33,.5); }
[data-theme="light"] .clk-tick { stroke: rgba(42,38,33,.18); }
[data-theme="light"] .clk-tick.is-major { stroke: rgba(42,38,33,.34); }
[data-theme="light"] .clk-track { stroke: rgba(42,38,33,.08); }
[data-theme="light"] .clk-left { color: #8A4A00; }

@media (max-width: 720px) {
  .gg-clock { padding: 20px; gap: 18px; justify-content: center; }
  .clk-dial { width: 190px; height: 190px; }
  .clk-face b { font-size: 38px; }
  .clk-side { flex-basis: 100%; text-align: center; }
  .clk-when { font-size: 22px; }
}

/* вторая карточка: часы «сейчас» */
.gg-clock.is-now { max-width: 520px; gap: 24px; padding: 24px 26px; flex-basis: 420px; }
.gg-clock.is-now .clk-dial { width: 176px; height: 176px; }
.clk-hand { stroke: #F3E9D6; stroke-linecap: round; }
.clk-hand.is-hour { stroke-width: 3.4; opacity: .92; }
.clk-hand.is-min { stroke-width: 2.2; opacity: .92; }
.clk-hand.is-sec { stroke: #E8B567; stroke-width: 1.1; opacity: .95; }
.clk-pin { fill: #E8B567; }
.clk-big {
  margin: 0; font-family: var(--font-sans, 'Golos Text', system-ui), sans-serif;
  font-weight: 300; font-size: 40px; line-height: 1.05; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.clk-date { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ══ ПОЛОСА РИТМА ═══════════════════════════════════════════
   «Ритм — 5 раз в неделю» и семь дней с часами. */
.rt-line { display: block; }
.rt-line[hidden] { display: none; }
.rt-weekline {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 10px 0 2px; padding: 14px 20px; border-radius: 16px;
  border: 1px solid rgba(224,192,144,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.006));
}
.rt-line .rt-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #E8B567;
  flex: 0 0 auto;
}
.rt-wl-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rt-wl-head b {
  font-family: var(--font-display, 'Playfair Display'), serif; font-weight: 500;
  font-size: 16px; color: var(--ink); white-space: nowrap;
}
.rt-wl-month {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); white-space: nowrap;
}
.rt-wl-days { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.rt-dcell {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 46px; padding: 6px 8px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02);
}
.rt-dcell i {
  font-style: normal; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.rt-dcell em { font-style: normal; font-size: 12px; color: var(--faint); }
.rt-dcell.is-on {
  border-color: rgba(232,181,103,.4); background: rgba(232,181,103,.09);
}
.rt-dcell.is-on i { color: #E8B567; }
.rt-dcell.is-on em { color: var(--ink); font-variant-numeric: tabular-nums; }
.rt-edit {
  cursor: pointer; font-size: 12px; color: var(--faint);
  border-bottom: 1px dashed rgba(255,255,255,.18); padding-bottom: 1px;
}
.rt-edit:hover { color: var(--ink); }

[data-theme="light"] .gg-clock.is-now .clk-hand { stroke: #2A2621; }
[data-theme="light"] .rt-weekline { background: #FFFDF8; border-color: rgba(138,74,0,.14); }
[data-theme="light"] .rt-dcell { border-color: rgba(42,38,33,.10); background: #FFFDF8; }
[data-theme="light"] .rt-dcell.is-on { border-color: rgba(178,106,18,.45); background: #FFF3DF; }
[data-theme="light"] .rt-dcell.is-on i, [data-theme="light"] .rt-wl-head b { color: #8A4A00; }
[data-theme="light"] .rt-edit { border-color: rgba(42,38,33,.2); }
[data-theme="light"] .clk-hand.is-sec { stroke: #B2690F; }
[data-theme="light"] .rt-line .rt-dot { background: #B2690F; }

@media (max-width: 720px) {
  .gg-clocks { gap: 12px; }
  .gg-clock.is-now { gap: 18px; }
  .rt-wl-days { margin-left: 0; }
  .rt-dcell { min-width: 40px; }
}

@media (max-width: 768px) {
  .rt-line { position: static; margin: 0; padding: 0; border: 0; background: none; }
}

/* ══ АДМИН-ПАНЕЛЬ ═══════════════════════════════════════════ */
.ad-deny { max-width: 560px; padding: 26px; border-radius: 16px; border: 1px solid var(--hair); background: var(--surface); }
.ad-deny h2 { margin: 0 0 8px; font-family: var(--font-display, serif); font-size: 22px; font-weight: 500; }
.ad-deny p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.ad-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 22px 0 26px; }
.ad-card { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(224,192,144,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); display: flex; flex-direction: column; gap: 4px; }
.ad-card span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.ad-card b { font-family: var(--font-display, serif); font-size: 26px; font-weight: 500; color: var(--ink); }
.ad-card em { font-style: normal; font-size: 12px; color: var(--faint); }

.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th { text-align: left; padding: 8px 10px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--hair); white-space: nowrap; }
.ad-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.ad-table tr:hover td { background: rgba(255,255,255,.02); }
.ad-id { color: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.ad-mail { font-size: 12px; color: var(--faint); margin-top: 2px; }
.ad-plan { padding: 5px 8px; border-radius: 8px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--hair); font: inherit; font-size: 12px; }
.ad-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px;
  border: 1px solid rgba(76,184,83,.4); color: #4CB853; }
.ad-badge.is-bad { border-color: rgba(224,87,75,.5); color: #E0574B; }
.ad-acts { white-space: nowrap; }
.ad-acts button { margin-right: 6px; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--hair); color: var(--muted); font: inherit; font-size: 12px; }
.ad-acts button:hover { color: var(--ink); border-color: rgba(232,165,79,.45); }
.ad-acts button.del:hover { color: #E0574B; border-color: rgba(224,87,75,.5); }
.ad-empty { color: var(--faint); text-align: center; padding: 18px; }

[data-theme="light"] .ad-card { background: #FFFDF8; }
[data-theme="light"] .ad-plan { background: #fff; }
[data-theme="light"] .ad-badge { color: #2E7D32; }
[data-theme="light"] .ad-badge.is-bad { color: #C62828; }

/* карточка человека в админке */
.ad-name { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
  font: inherit; font-weight: 600; text-align: left; border-bottom: 1px dashed rgba(255,255,255,.18); }
.ad-name:hover { color: var(--amber, #E8B567); }
.ad-ip { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.ad-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(470px, 94vw); z-index: 1200;
  background: var(--surface, #121317); border-left: 1px solid rgba(224,192,144,.22);
  box-shadow: -30px 0 60px rgba(0,0,0,.5); display: flex; flex-direction: column;
  overflow-y: auto; padding: 22px 24px 30px; }
.ad-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ad-drawer-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint); }
.ad-drawer h3 { margin: 4px 0 2px; font-family: var(--font-display, serif); font-size: 22px; font-weight: 500; }
.ad-close { background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1;
  cursor: pointer; padding: 2px 6px; border-radius: 8px; position: relative; z-index: 3; }
.ad-close:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.ad-close:hover { color: var(--ink); }
.ad-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.ad-facts div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--hair); }
.ad-facts span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.ad-facts b { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.ad-h4 { margin: 18px 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ad-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ad-steps li { font-size: 13px; color: var(--faint); }
.ad-steps li.is-done { color: #4CB853; }
.ad-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ad-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.05); }
.ad-list b { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.ad-list em { font-style: normal; font-size: 11px; color: var(--faint); }
.ad-ips { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-ipchip { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(224,87,75,.4);
  color: #E0574B; font-family: var(--font-mono); font-size: 11px; }

[data-theme="light"] .ad-drawer { background: #FFFDF8; }
[data-theme="light"] .ad-name { border-bottom-color: rgba(42,38,33,.2); }

/* забота: черновик письма в карточке */
.ad-help { margin: 14px 0 6px; }
.ad-help-btn { width: 100%; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(232,181,103,.5); background: rgba(232,181,103,.12);
  color: var(--amber, #E8B567); font: inherit; font-size: 13.5px; font-weight: 600; }
.ad-help-btn:hover { background: rgba(232,181,103,.2); }
.ad-help-box { margin-top: 12px; padding: 14px; border-radius: 12px;
  border: 1px solid var(--hair); background: rgba(255,255,255,.02); }
.ad-help-box label { display: block; margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ad-help-box input, .ad-help-box textarea { width: 100%; box-sizing: border-box; margin-bottom: 10px;
  padding: 9px 11px; border-radius: 9px; background: var(--bg-soft, #0E0F13); color: var(--ink);
  border: 1px solid rgba(255,255,255,.12); font: inherit; font-size: 12.5px; line-height: 1.55; resize: vertical; }
.ad-help-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad-send { padding: 9px 16px; border-radius: 999px; cursor: pointer; border: 0;
  background: #E8B567; color: #1a1710; font: inherit; font-size: 12.5px; font-weight: 700; }
.ad-copy { padding: 9px 14px; border-radius: 999px; cursor: pointer; background: transparent;
  border: 1px solid var(--hair); color: var(--muted); font: inherit; font-size: 12.5px; }
.ad-help-note { font-size: 11px; color: var(--faint); }
.ad-help-hist { display: flex; flex-direction: column; gap: 6px; }
.ad-hist-row { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--faint); }
.ad-hist-row b { color: var(--muted); font-weight: 600; }
.ad-hist-row em { font-style: normal; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

[data-theme="light"] .ad-help-box { background: #FFFDF8; }
[data-theme="light"] .ad-help-box input, [data-theme="light"] .ad-help-box textarea { background: #fff; }


/* ══ ЧИТАЕМОСТЬ (Impeccable) ══════════════════════════════════
   Контраст приглушённого текста ≥4.5:1 на фоне темы.
   Тёмная: #8A8E98 на #0E0F12 = 5.8:1
   Светлая: #5F5B52 на #F6F4EE = 6.2:1 */
[data-theme="light"] { --gg-faint: #5F5B52; }
[data-theme="light"] [class*="gg-"] { --gg-faint: #5F5B52; }



/* ══ ДВИЖКИ КАРТИНОК (админка) ════════════════════════════════ */
.ad-eng-list { display: grid; gap: 10px; }
.ad-eng {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 13px 15px; border: 1px solid var(--gg-line); border-radius: 12px;
  background: var(--gg-surface2, #111216);
}
.ad-eng-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.ad-eng-t { font-weight: 600; }
.ad-eng-meta { color: var(--gg-faint); font-size: 12px; }
.ad-eng-right { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 12px; color: var(--gg-fg2); }
.ad-eng.is-off { opacity: .85; }
.ad-eng-foot { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.ad-eng-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--gg-faint); }
.ad-eng-field select, .ad-eng-field input {
  background: var(--gg-bg); color: var(--gg-fg); border: 1px solid var(--gg-line2);
  border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 13px; min-width: 150px;
}
.ad-eng-last { font-size: 12px; color: var(--gg-faint); margin-left: auto; max-width: 46%; }


/* ящик карточки закрыт всегда, пока его не откроют (hidden важнее display) */
.ad-drawer[hidden], .ad-drawer.is-closed { display: none !important; }
body.ad-drawer-open .ad-drawer:not([hidden]) { display: flex; }
