@charset "UTF-8";
/* Светлая тема «Клевер»: ФАЙЛ СГЕНЕРИРОВАН из statica/space/extra.css скриптом _tools/gen_klever.py — вручную не править. Ручные правки — в statica/space/klever.css. */
/*
 * extra.css — дополнения темы «Глубокий космос», начиная с v2.19. Подключается последним (после polish.css).
 * Разделы:
 *   1. Карточка «Подключите Google-аккаунт» (раздел YouTube)
 */

/* ---------- 1. Карточка «Подключите Google-аккаунт» ---------- */
.sp-gconnect { display: flex; align-items: center; gap: 14px; margin: 12px 0 6px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(173, 234, 83, 0.16), rgba(173, 234, 83, 0.12)), var(--sp-glass-2, rgba(238, 244, 234, 0.6));
  border: 1px solid rgba(47, 122, 79, 0.252); box-shadow: 0 10px 30px rgba(32, 59, 42, 0.105), inset 0 1px 0 rgba(255, 255, 255, 0.036); }
.sp-gconnect__ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #101412;
  background: var(--sp-b-primary, linear-gradient(135deg, #adea53 0%, #b5ec62 52%, #adea53 100%)); box-shadow: 0 6px 18px rgba(110, 170, 60, 0.158); }
.sp-gconnect__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-gconnect__txt b { font-size: 15px; color: #101412; }
.sp-gconnect__txt span { font-size: 12.5px; line-height: 1.45; color: #47564e; }
.sp-gconnect__btn { flex: 0 0 auto; }
.sp-gconnect--off { background: var(--sp-glass-2, rgba(238, 244, 234, 0.6)); border-color: rgba(47, 122, 79, 0.144); }
.sp-gconnect--off .sp-gconnect__ico { background: rgba(181, 236, 98, 0.25); box-shadow: none; }
@media (max-width: 560px) {
  .sp-gconnect { flex-wrap: wrap; }
  .sp-gconnect__txt { flex-basis: calc(100% - 60px); }
  .sp-gconnect__btn { width: 100%; }
}

/* ---------- 2. Конкурсы: вкладки видов и таблица баллов ---------- */
.sp-theme .sp-ctabs { margin: 0 auto 6px; width: auto; max-width: 100%; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sp-cpoints { margin: 14px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--sp-glass-2, rgba(238, 244, 234, 0.6));
  border: 1px solid rgba(47, 122, 79, 0.18); text-align: left; }
.sp-cpoints__title { font-weight: 700; font-size: 14px; color: #101412; margin-bottom: 10px; }
.sp-cpoints__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sp-cpoints__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: rgba(25, 61, 45, 0.028); border: 1px solid rgba(47, 122, 79, 0.108); font-size: 13px; color: #2e3833; }
.sp-cpoints__item b { flex: 0 0 auto; min-width: 34px; text-align: center; padding: 2px 8px; border-radius: 999px; color: #101412; font-size: 13px;
  background: var(--sp-b-primary, linear-gradient(135deg, #adea53 0%, #b5ec62 52%, #adea53 100%)); }
.sp-cpoints__note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: #2f7a4f; }
.sp-cpoints > .sp-cpoints__note:first-child { margin-top: 0; }
.sp-cpoints__note b { color: #101412; }

/* ---------- 3. Окно ввода кода из письма (statica/js/code-box.js) ---------- */
.sp-code { position: fixed; inset: 0; z-index: 100500; display: grid; place-items: center; padding: 16px;
  background: rgba(249, 251, 248, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .2s ease; font-family: inherit; }
.sp-code.is-open { opacity: 1; }
.sp-code__box { position: relative; width: 100%; max-width: 430px; padding: 30px 28px 22px; border-radius: 22px; text-align: center; color: #272f2b;
  background: radial-gradient(120% 90% at 50% 0%, rgba(183, 236, 103, 0.28), rgba(238, 244, 234, 0) 62%), linear-gradient(180deg, #e9eff6, #f2f6ee);
  border: 1px solid rgba(47, 122, 79, 0.288);
  box-shadow: 0 30px 80px rgba(32, 59, 42, 0.21), 0 0 60px rgba(110, 170, 60, 0.087), inset 0 1px 0 rgba(255, 255, 255, 0.048);
  transform: translateY(14px) scale(.96); transition: transform .28s cubic-bezier(.2, .9, .3, 1.2); }
.sp-code.is-open .sp-code__box { transform: none; }
.sp-code__x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(25, 61, 45, 0.042); color: #47564e; font-size: 22px; line-height: 1; transition: background .15s, color .15s; }
.sp-code__x:hover { background: rgba(25, 61, 45, 0.098); color: #101412; }
.sp-code__ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; color: #101412;
  background: var(--sp-b-primary, linear-gradient(135deg, #adea53 0%, #b5ec62 52%, #adea53 100%));
  box-shadow: 0 12px 30px rgba(110, 170, 60, 0.175), inset 0 1px 0 rgba(255, 255, 255, 0.18); animation: sp-code-float 3.2s ease-in-out infinite; }
.sp-code__title { font-size: 20px; font-weight: 700; color: #101412; margin-bottom: 8px; }
.sp-code__text { font-size: 14px; line-height: 1.55; color: #47564e; }
.sp-code__text b { color: #101412; font-weight: 600; overflow-wrap: anywhere; }
.sp-code__cells { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 10px; }
.sp-code__dash { width: 10px; height: 2px; border-radius: 2px; background: rgba(212, 244, 164, 0.45); flex: 0 0 auto; }
.sp-code .sp-code__cell { flex: 0 0 auto; width: 50px; height: 60px; padding: 0; box-sizing: border-box; text-align: center;
  font: 700 28px/60px "Segoe UI", Roboto, Arial, sans-serif; color: #101412; caret-color: #2f7a4f;
  background: rgba(246, 249, 244, 0.75); border: 1.5px solid rgba(47, 122, 79, 0.27); border-radius: 14px; outline: 0;
  box-shadow: inset 0 2px 8px rgba(32, 59, 42, 0.105); transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.sp-code .sp-code__cell:focus { border-color: #2f7a4f; background: rgba(236, 242, 231, 0.9);
  box-shadow: 0 0 0 4px rgba(110, 170, 60, 0.077), 0 0 22px rgba(110, 170, 60, 0.158), inset 0 2px 8px rgba(32, 59, 42, 0.09); transform: translateY(-2px); }
.sp-code .sp-code__cell.is-set { border-color: rgba(47, 122, 79, 0.45); animation: sp-code-pop .18s ease; }
.sp-code.is-busy .sp-code__cell { opacity: .6; }
.sp-code.is-ok .sp-code__cell { border-color: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.054), 0 0 22px rgba(52, 211, 153, 0.135); }
.sp-code.is-shake .sp-code__cells { animation: sp-code-shake .42s ease; }
.sp-code__msg { min-height: 22px; font-size: 13.5px; line-height: 1.5; color: #47564e; }
.sp-code__msg.is-err { color: #ba2c3d; }
.sp-code__msg.is-ok { color: #298e66; }
.sp-code__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; }
.sp-code__resend, .sp-code__link { border: 0; background: none; padding: 6px 4px; cursor: pointer; font: inherit; font-size: 13.5px; color: #2f7a4f; }
.sp-code__resend:disabled { color: #556881; cursor: default; }
.sp-code__resend:not(:disabled):hover, .sp-code__link:hover { color: #101412; text-decoration: underline; }
.sp-code__mail { display: flex; gap: 8px; margin-top: 12px; }
.sp-code__mail[hidden] { display: none; }
.sp-code .sp-code__mail input { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: #101412;
  background: rgba(246, 249, 244, 0.75); border: 1px solid rgba(47, 122, 79, 0.27); outline: 0; }
.sp-code .sp-code__mail input:focus { border-color: #2f7a4f; }
.sp-code__hint { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(47, 122, 79, 0.126); font-size: 12px; line-height: 1.5; color: #2f7a4f; }
.sp-code__debug { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(64, 150, 79, 0.14); color: #2f7a4f; letter-spacing: 2px; }
@keyframes sp-code-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes sp-code-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes sp-code-float { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
@media (max-width: 440px) {
  .sp-code__box { padding: 26px 16px 18px; border-radius: 18px; }
  .sp-code__cells { gap: 5px; }
  .sp-code .sp-code__cell { width: 42px; height: 54px; font-size: 24px; line-height: 54px; border-radius: 12px; }
  .sp-code__dash { width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-code, .sp-code__box, .sp-code .sp-code__cell { transition: none; }
  .sp-code__ico, .sp-code .sp-code__cell.is-set, .sp-code.is-shake .sp-code__cells { animation: none; }
}

/* ---------- 4. Пояснение на страницах входа, активации, смены пароля ---------- */
.sp-authnote { max-width: 520px; margin: 12px auto 6px; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; color: #3a4740; text-align: left;
  background: var(--sp-glass-2, rgba(238, 244, 234, 0.6)); border: 1px solid rgba(47, 122, 79, 0.18); }
.sp-authnote b { color: #101412; }
.sp-authnote a { color: #2f7a4f; }

/* ---------- 5. Профиль: уведомления (переключатели) ---------- */
.sp-theme .sp-notify td { vertical-align: middle; }
.sp-notify__lead { font-size: 13px; line-height: 1.5; color: #47564e; text-align: left !important; }
.sp-notify__lead b { color: #101412; }
.sp-notify__sw { width: 70px; text-align: center; }
.sp-notify label[for] { cursor: pointer; }
/* Строка Telegram в блоке уведомлений */
.sp-theme .sp-notify td.sp-notify__cell { padding: 0; }
.sp-theme .sp-notify tr[hidden] { display: none; }
.sp-notify__tg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; text-align: left; font-size: 13px; line-height: 1.5; color: #47564e;
  background: linear-gradient(90deg, rgba(64, 150, 79, 0.12), rgba(64, 150, 79, 0)); }
.sp-notify__tg > i { font-size: 30px; color: #2f7a4f; flex: none; width: 34px; text-align: center; }
.sp-notify__tg.sp-notify__app { background: linear-gradient(90deg, rgba(184, 237, 105, 0.14), rgba(184, 237, 105, 0)); }
.sp-notify__app > i { color: #2f7a4f; font-size: 26px; }
.sp-notify__tg > span:not(.sp-notify__tgbtns) { flex: 1 1 200px; min-width: 0; }
.sp-notify__tg b { color: #101412; }
.sp-notify__tgbtns { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.sp-switch { position: relative; display: inline-block; width: 46px; height: 26px; vertical-align: middle; cursor: pointer; }
.sp-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sp-switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(191, 238, 121, 0.22); border: 1px solid rgba(47, 122, 79, 0.225); transition: background .2s, border-color .2s; }
.sp-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #d7dde5;
  box-shadow: 0 2px 6px rgba(32, 59, 42, 0.12); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background .2s; }
.sp-switch input:checked + span { background: var(--sp-b-primary, linear-gradient(135deg, #adea53 0%, #b5ec62 52%, #adea53 100%)); border-color: transparent; }
.sp-switch input:checked + span::after { transform: translateX(20px); background: #ffffff; }
.sp-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(110, 170, 60, 0.14); }

/* ---------- 6. Кабинет рекламодателя («Управление рекламой») — statica/space/extra.js ---------- */
.sp-theme .sp-kabmenu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 auto 6px; }
/* сводка по объявлениям */
.sp-kab-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 12px 0 14px; }
.sp-kab-sum__i { padding: 10px 8px; border-radius: 14px; text-align: center; background: var(--sp-glass-2, rgba(238, 244, 234, 0.6)); border: 1px solid rgba(47, 122, 79, 0.162); }
.sp-kab-sum__i b { display: block; font-size: 20px; line-height: 1.15; color: #101412; font-variant-numeric: tabular-nums; }
.sp-kab-sum__i span { display: block; margin-top: 2px; font-size: 11.5px; color: #2f7a4f; }
.sp-kab-sum__i.is-run b { color: #298e66; }
.sp-kab-sum__i.is-pause b { color: #2f7a4f; }
.sp-kab-sum__i.is-wait b { color: #2f7a4f; }
.sp-kab-sum__i.is-block b { color: #ba2c2c; }
.sp-kab-sum__i.is-money { border-color: rgba(47, 122, 79, 0.315); }
.sp-kab-sum__i.is-money b { color: #2f7a4f; }
/* показатели плашками */
.sp-kab-chips { display: inline-flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 5px; color: #47564e !important; }
.sp-kab-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 18px; white-space: nowrap;
  background: rgba(25, 61, 45, 0.038); border: 1px solid rgba(47, 122, 79, 0.126); color: #47564e; }
.sp-kab-chip b { color: #101412; }
/* левая полоска состояния карточки */
.sp-theme table.sp-kab-card[data-state="run"] { box-shadow: inset 3px 0 0 rgba(52, 211, 153, 0.3), inset 0 0 0 1px rgba(110, 170, 60, 0.035); }
.sp-theme table.sp-kab-card[data-state="pause"] { box-shadow: inset 3px 0 0 rgba(110, 170, 60, 0.35), inset 0 0 0 1px rgba(110, 170, 60, 0.035); }
.sp-theme table.sp-kab-card[data-state="wait"] { box-shadow: inset 3px 0 0 rgba(110, 170, 60, 0.35), inset 0 0 0 1px rgba(110, 170, 60, 0.035); }
.sp-theme table.sp-kab-card[data-state="block"] { box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.3), inset 0 0 0 1px rgba(110, 170, 60, 0.035); }

@media (max-width: 760px) {
  /* виды рекламы — одна строка с прокруткой */
  .sp-theme .sp-kabmenu { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px; margin: 0 -4px 8px; border-radius: 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #dde2d9 14px, #dde2d9 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #dde2d9 14px, #dde2d9 calc(100% - 22px), transparent 100%); }
  .sp-theme .sp-kabmenu::-webkit-scrollbar { display: none; }
  .sp-theme .sp-kabmenu .menu-task-work__link { flex: 0 0 auto; scroll-snap-align: center; white-space: nowrap; padding: 10px 14px; font-size: 14px; }
  .sp-kab-sum { grid-template-columns: repeat(3, 1fr); }
  .sp-kab-sum__i b { font-size: 18px; }
  .sp-kab-sum__i.is-money { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 8px; }
  .sp-kab-sum__i.is-money span { margin: 0; font-size: 12.5px; }

  /* карточка объявления: блоками сверху вниз — текст, бюджет, кнопки */
  .sp-theme table.sp-kab-card, .sp-theme table.sp-kab-card > tbody { display: block; width: 100%; }
  .sp-theme table.sp-kab-card { margin: 0 0 12px; padding: 12px 12px 10px 14px; border-radius: 16px; }
  .sp-theme table.sp-kab-card > tbody > tr { display: block; }
  .sp-theme table.sp-kab-card > tbody > tr:first-child { display: flex; flex-direction: column; gap: 10px; }
  .sp-theme table.sp-kab-card > tbody > tr > td { display: block; width: auto !important; padding: 0; border: 0; background: none !important; text-align: left; }
  .sp-theme table.sp-kab-card > tbody > tr:first-child > td:nth-child(2) { order: 1; }
  .sp-theme table.sp-kab-card > tbody > tr:first-child > td.budget { order: 2; }
  .sp-theme table.sp-kab-card > tbody > tr:first-child > td:first-child { order: 3; }
  .sp-theme table.sp-kab-card td:nth-child(2) > a:not([class]) { font-size: 15.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
  .sp-theme table.sp-kab-card .serf-text { display: block; margin: 3px 0 2px; font-size: 13px; color: #47564e; overflow-wrap: anywhere; }
  .sp-theme table.sp-kab-card .kab-text { display: block; }
  .sp-kab-chip { font-size: 12.5px; line-height: 20px; padding: 2px 10px; }

  /* кнопки действий: крупные, с подписями, по две в ряд */
  .sp-theme table.sp-kab-card td [class*="scon-"], .sp-theme table.sp-kab-card td [class*="serfcontrol-"],
  .sp-theme table.sp-kab-card td.budget a.add-budget, .sp-theme table.sp-kab-card td.budget .transport-go_moder {
    float: none !important; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px;
    width: calc(50% - 4px); min-height: 42px; height: auto; margin: 6px 6px 0 0; padding: 6px 10px; border-radius: 12px; font-size: 13px; vertical-align: top; }
  .sp-theme table.sp-kab-card td [class*="scon-"]:nth-of-type(even) { margin-right: 0; }
  .sp-theme table.sp-kab-card td [data-label]::after { content: attr(data-label); font: 600 13px/1.2 "Open Sans", "Segoe UI", Roboto, Arial, sans-serif; color: #1b211e; white-space: nowrap; }
  .sp-theme table.sp-kab-card td:nth-child(2) { display: flex; flex-wrap: wrap; align-items: flex-start; }
  .sp-theme table.sp-kab-card td:nth-child(2) > * { flex: 0 0 auto; max-width: 100%; }
  .sp-theme table.sp-kab-card td:nth-child(2) > a:not([class]), .sp-theme table.sp-kab-card td:nth-child(2) > .serf-text,
  .sp-theme table.sp-kab-card td:nth-child(2) > .kab-text, .sp-theme table.sp-kab-card td:nth-child(2) > br,
  .sp-theme table.sp-kab-card td:nth-child(2) > div { flex: 0 0 100%; }
  .sp-theme table.sp-kab-card td:nth-child(2) > br { display: none; }
  .sp-theme table.sp-kab-card td:nth-child(2) > [class*="scon-"] { flex: 1 1 calc(50% - 6px); width: auto; margin: 8px 6px 0 0; }
  .sp-kab-acts { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .sp-theme table.sp-kab-card .sp-kab-acts > [class*="scon-"] { width: auto; margin: 0; }
  .sp-theme table.sp-kab-card .sp-kab-acts > [class*="scon-"]:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* у кнопок VIP значок — картинка: ставим её слева от подписи */
  .sp-theme table.sp-kab-card .sp-kab-acts > .scon-vip, .sp-theme table.sp-kab-card .sp-kab-acts > .scon-vipno { background-position: 14px center, 0 0, 0 0; padding-left: 36px; justify-content: flex-start; }
  .sp-theme table.sp-kab-card td:nth-child(2) > img { margin: 2px 6px 0 0; }
  /* запуск / остановка — главная кнопка во всю ширину */
  .sp-theme table.sp-kab-card td:first-child [class*="serfcontrol-"] { width: 100%; margin: 0; min-height: 46px; background-image: none;
    background: linear-gradient(180deg, rgba(25, 61, 45, 0.063), rgba(25, 61, 45, 0) 60%), rgba(var(--c, 124, 180, 255), .16); box-shadow: inset 0 0 0 1px rgba(var(--c, 124, 180, 255), .5); }
  .sp-theme table.sp-kab-card td:first-child [class*="serfcontrol-"]::after { font-size: 14px; }
  /* бюджет: сумма и «Пополнить» в одну строку */
  .sp-theme table.sp-kab-card td.budget { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.2) !important; }
  .sp-theme table.sp-kab-card td.budget::before { content: "Бюджет"; font-size: 12px; color: #2f7a4f; }
  .sp-theme table.sp-kab-card td.budget > span { font-size: 17px; font-weight: 700; margin-right: auto; }
  .sp-theme table.sp-kab-card td.budget a.add-budget, .sp-theme table.sp-kab-card td.budget .transport-go_moder { order: 3; width: auto; margin: 0; min-height: 38px; padding: 6px 14px; }
  .sp-theme table.sp-kab-card td.budget .transport-go_moder br { display: none; }
  /* скрытые строки (подробности, пополнение) раскрываются под карточкой */
  .sp-theme table.sp-kab-card > tbody > tr + tr > td { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(47, 122, 79, 0.126); }

  /* кнопки над списком («Создать задание», «ЧС исполнителей») — в ряд на всю ширину */
  .sp-theme .sp-kab-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; text-align: center; }
  .sp-theme .sp-kab-top .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; width: auto !important; }
  .sp-theme .sp-kab-top .btn.green { grid-column: 1 / -1; }
  .sp-theme .sp-kab-top br { display: none; }
  .sp-theme .sp-kab-top > *:not(.btn) { grid-column: 1 / -1; }
  /* «Разместить…» — всегда под рукой */
  .sp-theme .sp-kab-add { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 20; margin: 14px 0 6px !important; padding: 8px; border-radius: 16px; text-align: center;
    background: rgba(242, 246, 239, 0.92); border: 1px solid rgba(47, 122, 79, 0.225); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(32, 59, 42, 0.18); }
  .sp-theme .sp-kab-add .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 2px; }
  .sp-theme .sp-kab-add .btn.green { width: 100%; }
}

/* ---------- 7. Награды, достижения, лидеры (templates/rewards.tpl, leaders.tpl) ---------- */
.sp-rw { display: flex; flex-direction: column; gap: 14px; }
.sp-rw__card { padding: 16px; border-radius: 18px; background: var(--sp-glass-2, rgba(238, 244, 234, 0.6)); border: 1px solid rgba(47, 122, 79, 0.162);
  box-shadow: 0 10px 30px rgba(32, 59, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.03); text-align: left; }
.sp-rw__card.is-done { border-color: rgba(52, 211, 153, 0.35); }
.sp-rw__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sp-rw__head h3 { margin: 0 0 4px; font-size: 17px; color: #101412; font-weight: 700; }
.sp-rw__head h3 b { color: #2f7a4f; }
.sp-rw__head p { margin: 0; font-size: 13px; line-height: 1.5; color: #47564e; }
.sp-rw__head p b { color: #101412; }
.sp-rw__ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; color: #101412; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px rgba(32, 59, 42, 0.12); }
.sp-rw__ico--fire { background: linear-gradient(135deg, #40964f, #ef4444); }
.sp-rw__ico--target { background: linear-gradient(135deg, #40964f, #adea53); }
.sp-rw__ico--cup { background: linear-gradient(135deg, #adea53, #40964f); }
.sp-rw__ico--promo { background: linear-gradient(135deg, #baed6d, #adea53); }
/* дни серии */
.sp-rw__days { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sp-rw__dayi { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; border-radius: 13px; text-align: center;
  background: rgba(25, 61, 45, 0.028); border: 1px solid rgba(47, 122, 79, 0.126); color: #2f7a4f; font-size: 11.5px; }
.sp-rw__dayi b { font-size: 14px; color: #1e2522; white-space: nowrap; }
.sp-rw__dayi > i { font-size: 13px; opacity: .7; }
.sp-rw__dayi.is-got { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.4); color: #298e66; }
.sp-rw__dayi.is-got b { color: #298e60; }
.sp-rw__dayi.is-now { background: linear-gradient(180deg, rgba(173, 234, 83, 0.22), rgba(173, 234, 83, 0.06)); border-color: #2f7a4f; color: #2f7a4f;
  box-shadow: 0 0 0 3px rgba(110, 170, 60, 0.049), 0 0 24px rgba(110, 170, 60, 0.087); animation: sp-rw-pulse 2.2s ease-in-out infinite; }
.sp-rw__dayi.is-now b { color: #101412; }
.sp-rw__dayi.is-big b { font-size: 15px; }
.sp-rw__dayi.is-big:not(.is-got):not(.is-now) { border-style: dashed; border-color: rgba(47, 122, 79, 0.405); }
/* полоса прогресса */
.sp-rw__bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); overflow: hidden; box-shadow: inset 0 1px 2px rgba(32, 59, 42, 0.15); }
.sp-rw__bar i { display: block; height: 100%; min-width: 0; border-radius: 999px; background: var(--sp-b-primary, linear-gradient(135deg, #adea53 0%, #b5ec62 52%, #adea53 100%));
  box-shadow: 0 0 10px rgba(110, 170, 60, 0.21); transition: width .8s cubic-bezier(.2, .8, .3, 1); }
.sp-rw__prog { margin-bottom: 12px; }
.sp-rw__progtxt { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12.5px; color: #47564e; }
.sp-rw__progtxt b { color: #101412; }
.sp-rw__foot form { margin: 0; }
.sp-rw__take { display: flex; width: 100%; min-height: 46px; font-size: 15px; }
.sp-rw__note { padding: 10px 12px; border-radius: 12px; font-size: 13px; color: #47564e; background: rgba(255, 255, 255, 0.2); }
.sp-rw__note.is-ok { color: #298e60; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
/* задания дня */
.sp-rw__goals { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-rw__goal { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(25, 61, 45, 0.028); border: 1px solid rgba(47, 122, 79, 0.108); }
.sp-rw__goal.is-got { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.07); }
.sp-rw__gico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #2f7a4f; background: rgba(196, 240, 130, 0.14); }
.sp-rw__goal.is-got .sp-rw__gico { color: #298e66; background: rgba(52, 211, 153, 0.16); }
.sp-rw__gmain { flex: 1 1 auto; min-width: 0; }
.sp-rw__gtxt { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13.5px; color: #1e2522; }
.sp-rw__gtxt b { color: #101412; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-rw__goal.is-got .sp-rw__bar i { background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 10px rgba(52, 211, 153, 0.18); }
.sp-rw__gok { flex: 0 0 auto; font-size: 20px; color: #298e69; }
/* достижения */
.sp-rw__achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sp-ach { --a: 124, 155, 255; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 14px 10px 12px; border-radius: 16px; text-align: center;
  background: rgba(25, 61, 45, 0.025); border: 1px solid rgba(47, 122, 79, 0.108); filter: saturate(.35); opacity: .78; transition: transform .2s, filter .2s, opacity .2s; }
.sp-ach:hover { transform: translateY(-2px); opacity: 1; }
.sp-ach--cyan { --a: 34, 211, 238; } .sp-ach--blue { --a: 96, 165, 250; } .sp-ach--violet { --a: 167, 139, 250; } .sp-ach--green { --a: 52, 211, 153; }
.sp-ach--gold { --a: 251, 191, 36; } .sp-ach--pink { --a: 244, 114, 182; } .sp-ach--orange { --a: 251, 146, 60; }
.sp-ach__ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: rgb(var(--a));
  background: radial-gradient(circle at 50% 30%, rgba(var(--a), .3), rgba(var(--a), .08)); border: 1.5px solid rgba(var(--a), .5); }
.sp-ach b { font-size: 13.5px; color: #1e2522; line-height: 1.25; }
.sp-ach small { font-size: 11.5px; line-height: 1.35; color: #2f7a4f; min-height: 30px; }
.sp-ach em { font-style: normal; font-size: 11.5px; color: #2f7a4f; }
.sp-ach .sp-rw__bar { width: 100%; height: 5px; }
.sp-ach.is-got { filter: none; opacity: 1; border-color: rgba(var(--a), .5); background: linear-gradient(180deg, rgba(var(--a), .14), rgba(var(--a), .03)); box-shadow: 0 8px 22px rgba(32, 59, 42, 0.105), 0 0 22px rgba(var(--a), .14); }
.sp-ach.is-got .sp-ach__ico { color: #101412; background: radial-gradient(circle at 50% 30%, rgba(var(--a), .95), rgba(var(--a), .55)); box-shadow: 0 6px 18px rgba(var(--a), .45), inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.sp-ach.is-got b { color: #101412; }
.sp-ach__when { color: rgb(var(--a)) !important; }
/* промокод */
.sp-rw__promo { display: flex; gap: 8px; margin: 0; }
.sp-theme .sp-rw__promo input[type="text"] { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.sp-rw__link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none !important; color: #1e2522;
  background: linear-gradient(135deg, rgba(173, 234, 83, 0.14), rgba(181, 236, 98, 0.12)), var(--sp-glass-2, rgba(238, 244, 234, 0.6)); border: 1px solid rgba(47, 122, 79, 0.27); transition: transform .2s, border-color .2s; }
.sp-rw__link:hover { transform: translateY(-2px); border-color: rgba(47, 122, 79, 0.45); }
.sp-rw__link > i:first-child { font-size: 22px; color: #2f7a4f; }
.sp-rw__link span { flex: 1 1 auto; font-size: 12.5px; color: #47564e; }
.sp-rw__link span b { display: block; font-size: 15px; color: #101412; }
/* лидеры */
.sp-ld__prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sp-ld__prize { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: rgba(25, 61, 45, 0.028); border: 1px solid rgba(47, 122, 79, 0.126); font-size: 12px; color: #2f7a4f; }
.sp-ld__prize b { font-size: 16px; color: #101412; }
.sp-ld__prize > i { font-size: 18px; }
.sp-ld__prize--1 > i, .sp-ld__m1 { color: #2f7a4f; } .sp-ld__prize--2 > i, .sp-ld__m2 { color: #35413b; } .sp-ld__prize--3 > i, .sp-ld__m3 { color: #2f7a4f; }
.sp-ld__prize--1 { border-color: rgba(47, 122, 79, 0.36); background: rgba(173, 234, 83, 0.08); }
.sp-ld__prize--time > i { color: #2f7a4f; }
.sp-ld__me { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; color: #2e3833; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(47, 122, 79, 0.126); }
.sp-ld__me b { color: #101412; }
.sp-ld__me.is-win { border-color: rgba(47, 122, 79, 0.45); background: rgba(173, 234, 83, 0.1); }
.sp-ld__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.sp-ld__row { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 12px; background: rgba(25, 61, 45, 0.025); border: 1px solid transparent; }
.sp-ld__row.is-me { border-color: rgba(47, 122, 79, 0.45); background: rgba(196, 240, 130, 0.1); }
.sp-ld__n { flex: 0 0 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #2f7a4f; background: rgba(255, 255, 255, 0.25); }
.sp-ld__row.is-top1 .sp-ld__n { color: #19251f; background: linear-gradient(135deg, #cdf295, #40964f); }
.sp-ld__row.is-top2 .sp-ld__n { color: #19251f; background: linear-gradient(135deg, #f1f5f9, #94a4b8); }
.sp-ld__row.is-top3 .sp-ld__n { color: #22593d; background: linear-gradient(135deg, #c3ef82, #c2410c); }
.sp-ld__row img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; background: #286247; }
.sp-ld__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sp-ld__gift { flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; color: #2f7a4f; background: rgba(173, 234, 83, 0.12); border: 1px solid rgba(47, 122, 79, 0.315); white-space: nowrap; }
.sp-ld__score { flex: 0 0 auto; color: #101412; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-ld__past { display: flex; flex-direction: column; gap: 6px; }
.sp-ld__pastrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; border-radius: 12px; background: rgba(25, 61, 45, 0.025); font-size: 13px; }
.sp-ld__pastrow > span { flex: 0 0 96px; color: #2f7a4f; }
.sp-ld__pastrow em { font-style: normal; color: #1e2522; white-space: nowrap; }
.sp-ld__pastrow em b { color: #298e66; }
/* кнопка «Награды» в блоке пользователя */
.sp-rwbtn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px auto 10px; padding: 9px 14px; max-width: 190px; border-radius: 12px; font-weight: 700; font-size: 13.5px;
  color: #2f7a4f !important; text-decoration: none !important; background: linear-gradient(180deg, rgba(173, 234, 83, 0.16), rgba(173, 234, 83, 0.05)); border: 1px solid rgba(47, 122, 79, 0.36);
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.sp-rwbtn:hover { transform: translateY(-1px); border-color: #2f7a4f; box-shadow: 0 8px 22px rgba(110, 170, 60, 0.087); }
.sp-rwbtn__fire { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 12px; color: #101412; background: linear-gradient(135deg, #40964f, #ef4444); }
.sp-rwbtn__dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.075); animation: sp-rw-dot 1.6s ease-out infinite; }
.sp-rwbtn.is-hot { color: #19251f !important; background: linear-gradient(135deg, #cdf295, #40964f); border-color: transparent; box-shadow: 0 8px 22px rgba(110, 170, 60, 0.14); }
@keyframes sp-rw-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(110, 170, 60, 0.049), 0 0 24px rgba(110, 170, 60, 0.087); } 50% { box-shadow: 0 0 0 5px rgba(110, 170, 60, 0.077), 0 0 34px rgba(110, 170, 60, 0.14); } }
@keyframes sp-rw-dot { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.18); } 70%, 100% { box-shadow: 0 0 0 9px rgba(244, 63, 94, 0); } }
@media (max-width: 560px) {
  .sp-rw__days { grid-template-columns: repeat(4, 1fr); }
  .sp-rw__dayi.is-big { grid-column: span 2; }
  .sp-rw__achs { grid-template-columns: repeat(2, 1fr); }
  .sp-rw__promo { flex-direction: column; }
  .sp-ld__gift { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sp-rw__dayi.is-now, .sp-rwbtn__dot { animation: none; } .sp-rw__bar i { transition: none; } }

/* ---------- 8. Лента событий и статистика реферальной ссылки ---------- */
.sp-live { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #34d399; animation: sp-chat-pulse 2.2s ease-out infinite; }
.sp-evt { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-evt__i { --e: 34, 211, 238; display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.4; color: #2e3833; animation: sp-chat-in .3s ease both; }
.sp-evt__i--green { --e: 52, 211, 153; } .sp-evt__i--gold { --e: 251, 191, 36; } .sp-evt__i--violet { --e: 167, 139, 250; }
.sp-evt__ico { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; color: rgb(var(--e)); background: rgba(var(--e), .14); border: 1px solid rgba(var(--e), .3); }
.sp-evt__i b { color: #101412; }
.sp-evt__i em { font-style: normal; font-weight: 700; color: #298e66; white-space: nowrap; }
.sp-evt__i time { display: block; font-size: 11px; color: #2f7a4f; }
.sp-refstat__chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; align-items: end; height: 120px; margin: 4px 0 6px; padding: 8px 8px 0; border-radius: 12px; background: rgba(255, 255, 255, 0.22); }
.sp-refstat__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.sp-refstat__col i { position: relative; display: block; width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #bdee74, #b5ec62); box-shadow: 0 0 10px rgba(110, 170, 60, 0.105); }
.sp-refstat__col i.is-zero { background: rgba(212, 244, 164, 0.18); box-shadow: none; }
.sp-refstat__col i b { position: absolute; left: 50%; top: -19px; transform: translateX(-50%); min-width: 16px; padding: 0 4px; border-radius: 999px; font: 700 10.5px/16px Arial, sans-serif; color: #0b2518; background: #34d399; text-align: center; }
.sp-refstat__col span { font-size: 10.5px; color: #2f7a4f; line-height: 1; padding-bottom: 6px; }
.sp-refstat__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-size: 11.5px; color: #2f7a4f; }
.sp-refstat__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; background: linear-gradient(180deg, #bdee74, #b5ec62); }
.sp-refstat__legend b { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 999px; font: 700 10.5px/16px Arial, sans-serif; color: #0b2518; background: #34d399; text-align: center; }
.sp-rw__note b { color: #101412; }

/* =====================================================================================================
 * 9. Награда: всплывающая сумма и салют (SpExtra.reward, SpExtra.confetti — extra.js)
 * ===================================================================================================== */
.sp-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 10050; pointer-events: none; }
.sp-reward { position: fixed; left: 50%; top: 40%; z-index: 10051; pointer-events: none; white-space: nowrap; padding: 14px 30px; border-radius: 999px;
  font-size: clamp(26px, 6vw, 44px); font-weight: 800; letter-spacing: .5px; color: #101412; text-shadow: 0 2px 12px rgba(32, 59, 42, 0.135);
  background: linear-gradient(135deg, rgba(177, 235, 90, 0.96), rgba(255, 122, 60, 0.96)); box-shadow: 0 10px 44px rgba(110, 170, 60, 0.193), inset 0 1px 0 rgba(255, 255, 255, 0.27);
  transform: translate(-50%, -50%); animation: sp-reward-pop 2.3s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes sp-reward-pop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  24% { transform: translate(-50%, -50%) scale(1); }
  78% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -110%) scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
  .sp-reward { animation: sp-reward-calm 2.3s linear both; }
  @keyframes sp-reward-calm { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
}

/* Плашка «Установить как приложение» (SpExtra.app, extra.js). BUX2 1.1: полоса над шапкой, в потоке страницы — ничего не перекрывает */
.sp-instbar { position: relative; z-index: 5; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: auto; margin: 10px 0 0;
  padding: 10px 12px; border-radius: 16px; font-size: 13px; line-height: 1.35; color: #2d3732; background: rgba(242, 246, 238, 0.96); border: 1px solid rgba(47, 122, 79, 0.36);
  box-shadow: 0 10px 30px rgba(32, 59, 42, 0.105); animation: sp-instbar-in .35s ease-out both; }
.sp-instbar img { border-radius: 10px; flex: none; }
.sp-instbar b { color: #101412; }
.sp-instbar span { min-width: 0; }
.sp-instbar > span:not(.sp-instbar__ico) { flex: 1 1 auto; }
.sp-instbar .btn { flex: none; margin: 0; }
.sp-instbar button { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; font-size: 20px; line-height: 1; color: #47564e; background: rgba(25, 61, 45, 0.056); cursor: pointer; }
.sp-instbar button:hover { color: #101412; background: rgba(25, 61, 45, 0.112); }
@keyframes sp-instbar-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .sp-instbar { animation: none; } }

/* =====================================================================================================
 * 10. Движение (extra.js §4): смена страниц, каскад карточек, изменение баланса, загрузка
 *     Только transform и opacity. При «уменьшении движения» в системе всё это выключено.
 * ===================================================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* смена страницы: старая слегка гаснет, пока грузится новая; блоки новой появляются по очереди */
  html.sp-loading #contentwrapper { opacity: .55; transition: opacity .2s ease-out; }
  #contentwrapper { transition: opacity .18s ease-out; }
  #contentwrapper.sp-page-in > * { animation: sp-rise .44s cubic-bezier(.2, .8, .2, 1) backwards; }
  #contentwrapper.sp-page-in > *:nth-child(2) { animation-delay: .05s; }
  #contentwrapper.sp-page-in > *:nth-child(3) { animation-delay: .1s; }
  #contentwrapper.sp-page-in > *:nth-child(4) { animation-delay: .15s; }
  #contentwrapper.sp-page-in > *:nth-child(5) { animation-delay: .2s; }
  #contentwrapper.sp-page-in > *:nth-child(n+6) { animation-delay: .24s; }
  .sp-rise { animation: sp-rise .42s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--sp-i, 0) * 34ms + 90ms); }
  .sp-fade { animation: sp-fade .36s ease-out backwards; animation-delay: calc(var(--sp-i, 0) * 22ms + 70ms); }
  /* полосы прогресса «наполняются» при показе страницы */
  #contentwrapper.sp-page-in .sp-rw__bar i, #contentwrapper.sp-page-in .sp-progress span { transform-origin: left center; animation: sp-grow .8s cubic-bezier(.2, .8, .2, 1) .25s backwards; }
  /* число, которое только что изменилось */
  .sp-bump { animation: sp-bump .6s ease-out; display: inline-block; }
  /* пункты бокового меню: лёгкий сдвиг при наведении */
  .sp-theme .user_menuline { transition: transform .18s ease-out, color .18s, background-color .18s; }
  .sp-theme .user_menuline:hover { transform: translateX(4px); }
  /* значки разделов меню «оживают» при наведении */
  .sp-theme .usermnutitle-g:hover::before { animation: sp-hop .5s ease-out; }
  /* значки карточек справа и наград — мягкое покачивание при наведении на карточку */
  .sp-fill__card:hover .sp-ic, .sp-rw__card:hover .sp-rw__ico { animation: sp-hop .55s ease-out; }
  .sp-ach.is-got:hover .sp-ach__ico { animation: sp-spin-y .7s ease-out; }
}
@keyframes sp-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes sp-fade { from { opacity: 0; } }
@keyframes sp-grow { from { transform: scaleX(0); } }
@keyframes sp-bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); text-shadow: none; } 100% { transform: scale(1); } }
@keyframes sp-hop { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-4px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } }
@keyframes sp-spin-y { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

/* всплывающее изменение баланса: «+0,05 ₽» */
.sp-delta { position: fixed; z-index: 10040; pointer-events: none; white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #19251f;
  background: linear-gradient(135deg, #6ee7b7, #34d399); box-shadow: 0 6px 18px rgba(52, 211, 153, 0.15); transform: translate(-50%, -100%); animation: sp-delta-up 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.sp-delta.is-minus { color: #101412; background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 6px 18px rgba(225, 29, 72, 0.135); }
@keyframes sp-delta-up {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(.7); }
  15% { opacity: 1; transform: translate(-50%, -130%) scale(1.08); }
  70% { opacity: 1; transform: translate(-50%, -190%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -250%) scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
  .sp-delta { animation: sp-delta-calm 1.6s linear both; transform: translate(-50%, -140%); }
  @keyframes sp-delta-calm { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
}
/* текстовая награда («Новый статус: …») — мельче суммы и может переноситься */
.sp-reward.sp-reward--text { font-size: clamp(16px, 4.4vw, 26px); white-space: normal; text-align: center; max-width: min(90vw, 520px); border-radius: 22px; }

/* заготовка на время загрузки списка (вместо картинки-кружка) */
.sp-skel { display: grid; gap: 10px; margin: 18px 0; }
.sp-skel > i { display: block; height: 54px; border-radius: 12px; background: linear-gradient(100deg, rgba(195, 239, 129, 0.08) 20%, rgba(212, 244, 164, 0.2) 40%, rgba(195, 239, 129, 0.08) 60%); background-size: 220% 100%; }
.sp-skel > i:nth-child(2) { opacity: .8; }
.sp-skel > i:nth-child(3) { opacity: .6; }
.sp-skel > i:nth-child(4) { opacity: .4; }
@media (prefers-reduced-motion: no-preference) { .sp-skel > i { animation: sp-skel 1.2s linear infinite; } }
@keyframes sp-skel { from { background-position: 120% 0; } to { background-position: -100% 0; } }

/* =====================================================================================================
 * 11. Правки 2.19.1 по снимкам с телефона: задание, отчёт, рефералы, профиль
 * ===================================================================================================== */

/* --- заголовок блока: длинный текст переносится на вторую строку, а не вылезает на блок ниже --- */
.sp-theme .tiket { height: auto; min-height: 38px; line-height: 1.35; padding: 9px 12px; box-sizing: border-box; display: flow-root; }
.sp-theme .tiket > span[style*="float"] { margin-right: 0 !important; }
@media (max-width: 600px) {
  .sp-theme .tiket > span[style*="float"] { float: none !important; display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
}

/* --- страница задания --- */
/* сообщения «Отличная работа!», «Спасибо, ваш отчёт принят!»: ширина по экрану, текст переносится */
.block-task-read { width: auto; max-width: 400px; box-sizing: border-box; padding-right: 6px; line-height: 1.45; overflow-wrap: break-word; }
/* «Оплата: 0.5 руб.» не рвётся и не уходит за край */
#contentwrapper td.task-pay { white-space: nowrap; vertical-align: top; }
/* выбор файла со снимком экрана */
.task-scrin-file { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid rgba(47, 122, 79, 0.198); border-radius: 12px; background: rgba(239, 244, 235, 0.5);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: #2a332e; }
.task-scrin-file input[type="file"] { flex: 1 1 200px; min-width: 0; max-width: 100%; }
.task-scrin-file__tel { display: none; }
/* подсказка про Print Screen и Ctrl + V: по ширине формы, высота по тексту */
#load-scrin { width: auto; max-width: 100%; height: auto; min-height: 40px; box-sizing: border-box; }
#load-scrin .text-scrin { position: static; padding: 4px 6px; line-height: 1.4; }
#load-scrin #contenteditable { position: absolute; inset: 0; }
/* на телефоне и планшете вставить снимок из буфера сочетанием клавиш нельзя — остаётся только выбор файла */
@media (hover: none), (max-width: 600px) {
  #load-scrin { display: none; }
  .task-scrin-file__pc { display: none; }
  .task-scrin-file__tel { display: inline; }
  .task-scrin-file { flex-direction: column; align-items: stretch; }
  .task-scrin-file input[type="file"] { flex: none; width: 100%; }
}

/* --- профиль: формы «поле + пароль + кнопка» и блок аватара --- */
.sp-pf { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.sp-pf > input[type="text"], .sp-pf > input[type="email"], .sp-pf > input[type="password"] { flex: 1 1 150px; min-width: 0; max-width: 230px; box-sizing: border-box; }
#contentwrapper .sp-pf > input[type="submit"] { flex: 0 0 auto; width: auto; min-width: 110px; margin: 0; }
.sp-pf > input.sp-pf__set { opacity: .85; }
#contentwrapper td.sp-pf-cell { padding: 6px 12px; }
.sp-ava-form { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; text-align: left; }
.sp-ava-form > img.avatar-akk { grid-row: 1; }
.sp-ava-form__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.sp-ava-form__pick input[type="file"] { flex: 0 1 320px; min-width: 0; max-width: 100%; box-sizing: border-box; }
#contentwrapper .sp-ava-form__pick input[type="submit"] { flex: 0 0 auto; width: auto; min-width: 180px; margin: 0; }
.sp-ava-form__note { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.5; color: #47564e; }
@media (max-width: 600px) {
  .sp-pf { flex-direction: column; align-items: stretch; }
  .sp-pf > input[type="text"], .sp-pf > input[type="email"], .sp-pf > input[type="password"] { flex: none; width: 100%; max-width: none; }
  #contentwrapper .sp-pf > input[type="submit"] { width: 100% !important; }
  #contentwrapper td.sp-pf-cell { padding: 4px 2px; }
  .sp-ava-form { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sp-ava-form__pick { flex-direction: column; align-items: stretch; width: 100%; }
  .sp-ava-form__pick input[type="file"] { flex: none; width: 100%; }
  #contentwrapper .sp-ava-form__pick input[type="submit"] { width: 100% !important; }
}

/* --- список рефералов --- */
#referals-new th .start-page-referals { margin: 0 5px; white-space: nowrap; }
#referals-new .rf-nums > span { display: block; white-space: nowrap; }
#referals-new .rf-ip { display: block; margin-left: -47px; color: #2f7a4f; }
@media (max-width: 600px) {
  /* таблица из восьми столбцов на телефоне не помещается — каждая строка становится карточкой */
  #referals-new, #referals-new > tbody { display: block; width: 100%; box-sizing: border-box; }
  /* шапка: сортировки — ряд кнопок */
  #referals-new > tbody > tr:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 8px; }
  #referals-new > tbody > tr:first-child::before { content: "Сортировать:"; flex: 0 0 100%; font-size: 12px; color: #596d63; text-align: left; }
  #referals-new > tbody > tr:first-child > th { display: contents; }
  #referals-new > tbody > tr:first-child > th br { display: none; }
  #referals-new th .start-page-referals { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 7px 11px; border-radius: 999px; font-size: 12.5px;
    border: 1px solid rgba(47, 122, 79, 0.225); background: rgba(239, 244, 235, 0.55); }
  #referals-new th .start-page-referals.active-ASC, #referals-new th .start-page-referals.active-DESC { border: 1px solid #2f7a4f; background: rgba(186, 237, 110, 0.28); }
  /* карточка реферала */
  #referals-new > tbody > tr[id^="del-ref-"] { display: grid; grid-template-columns: 40px auto 1fr auto auto; gap: 8px 12px; align-items: center;
    margin: 10px 0; padding: 12px; border: 1px solid rgba(47, 122, 79, 0.18); border-radius: 14px; background: rgba(239, 244, 235, 0.45); }
  #referals-new > tbody > tr[id^="del-ref-"] > td { display: block; width: auto !important; min-width: 0; padding: 0; border: 0 !important; background: none; text-align: left; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: start; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(2) { grid-column: 2 / -1; grid-row: 1; line-height: 1.55; overflow-wrap: anywhere; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(3),
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(4) { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid rgba(47, 122, 79, 0.126); }
  #referals-new .rf-ip { margin-left: 0; }
  #referals-new .rf-nums { display: flex; flex-wrap: wrap; gap: 6px; }
  #referals-new .rf-nums > span { padding: 4px 9px; border-radius: 8px; background: rgba(195, 239, 129, 0.1); }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(4) { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(4) br { display: none; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(4) > .kab-text:first-child::before { content: "Регистрация: "; color: #596d63; }
  /* два нижних ряда: «рефералов» и статистика; доход с рефбэком и действия */
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(n+5) { display: flex; align-items: center; gap: 8px; min-height: 40px; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(n+5) > * { flex: 0 0 auto; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(n+3):nth-child(-n+6) { padding-top: 8px; border-top: 1px solid rgba(47, 122, 79, 0.126) !important; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(4) b { margin-right: .3em; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(5) { grid-row: 4; grid-column: 1 / 4; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(5)::before { content: "Рефералов:"; color: #596d63; font-size: 12px; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(6) { grid-row: 4; grid-column: 4 / -1; justify-content: flex-end; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(6)::before { content: "Статистика:"; color: #596d63; font-size: 12px; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(7) { grid-row: 5; grid-column: 1 / 4; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(7)::before { content: "Доход:"; color: #596d63; font-size: 12px; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(7) > center { display: flex; align-items: center; gap: 8px; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(7) br { display: none; }
  #referals-new > tbody > tr[id^="del-ref-"] > td:nth-child(8) { grid-row: 5; grid-column: 4 / -1; justify-content: flex-end; }
  #referals-new .refdel, #referals-new .refdel_no { float: none; }
  /* раскрывающиеся формы «рефбэк» и «на биржу» */
  #referals-new > tbody > tr[id^="id_"] > td, #referals-new > tbody > tr[id^="idd_"] > td { display: block; width: auto !important; box-sizing: border-box; }
  #referals-new > tbody > tr[id^="id_"] form, #referals-new > tbody > tr[id^="idd_"] form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
  #referals-new > tbody > tr.del-all > td { display: block; }
}
@media (max-width: 600px) {
  /* значки действий у реферала: зона нажатия под палец, сама картинка прежнего размера */
  #referals-new .refdel, #referals-new .refdel_no, #referals-new .ref_birj, #referals-new .ref_birj_es, #referals-new .ref_birj_no {
    float: none; box-sizing: content-box; padding: 12px 8px; margin: 0; background-origin: content-box; background-clip: content-box; }
  #referals-new span[id^="ref-up-"] { display: flex; align-items: center; }
}

/* --- приложение и уведомления: пояснение мелким шрифтом в строке профиля, значок в плашке-предложении --- */
.sp-notify__app small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; color: #596d63; }
.sp-instbar__ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #101412;
  background: linear-gradient(135deg, #baed6e, #40964f); }
@media (max-width: 600px) {
  /* плашка-предложение на телефоне: текст на всю ширину, кнопка отдельной строкой, крестик в углу */
  .sp-instbar { flex-wrap: wrap; padding-right: 46px; }
  .sp-instbar > span:not(.sp-instbar__ico) { flex: 1 1 0; min-width: 0; }
  .sp-instbar > span.sp-instbar__ico { flex: 0 0 40px; }
  .sp-instbar .btn { flex: 1 1 100%; text-align: center; box-sizing: border-box; }
  .sp-instbar > button { position: absolute; top: 8px; right: 8px; }
}

/* ==========================================================================
   §12. Закрепление в ТОПе (v2.20): медали в списках, кнопка и подписи в кабинете, окно закрепления (ajax/top.php)
   ========================================================================== */
/* --- медаль места: 1 — золото, 2 — серебро, 3 — бронза, z — места с 4-го (в кружке номер строки) --- */
.sp-top-m, .sp-top-medal { --m1: #ffe9a6; --m2: #f0a92b; --m3: #a8650c; --mt: #4a2c00; box-sizing: border-box; display: inline-grid; place-items: center; border-radius: 50%;
  font-family: var(--sp-font, Arial, sans-serif); font-weight: 800; font-style: normal; color: var(--mt); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.27);
  background: radial-gradient(circle at 32% 28%, var(--m1), var(--m2) 58%, var(--m3) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.228), inset 0 -3px 6px rgba(32, 59, 42, 0.084), 0 0 0 1px rgba(32, 59, 42, 0.105), 0 0 14px -2px var(--m2); }
.sp-top-m { width: 34px; height: 34px; font-size: 16px; line-height: 1; margin: 2px 0; cursor: help; }
.sp-top-m--2, .sp-top-medal--2 { --m1: #ffffff; --m2: #bcc6d3; --m3: #6f7f93; --mt: #2a3646; }
.sp-top-m--3, .sp-top-medal--3 { --m1: #ffd9b8; --m2: #d98a4f; --m3: #8a4a1d; --mt: #3d1c05; }
.sp-top-m--z, .sp-top-medal--z { --m1: #f9e8be; --m2: #e8bf6d; --m3: #c99432; --mt: #fff; text-shadow: 0 1px 2px rgba(32, 59, 42, 0.18); }
.sp-top-m--z { font-size: 14px; }
/* закреплённая строка списка: мягкая подсветка; обычный значок «можно выполнить» уступает место медали */
.sp-theme tr.sp-top-row > td { background-image: linear-gradient(90deg, rgba(198, 240, 134, 0.13), rgba(198, 240, 134, 0.03) 55%, transparent); }
.sp-theme tr.sp-top-row--z > td { background-image: linear-gradient(90deg, rgba(196, 240, 130, 0.13), rgba(196, 240, 130, 0.03) 55%, transparent); }
.sp-theme tr.sp-top-row > td:first-child { text-align: center; box-shadow: inset 3px 0 0 var(--sp-gold, rgba(110, 170, 60, 0.35)); }
.sp-theme tr.sp-top-row--z > td:first-child { box-shadow: inset 3px 0 0 var(--sp-blue, rgba(110, 170, 60, 0.35)); }
tr.sp-top-row > td:first-child > .taskimg, tr.sp-top-row > td:first-child > .taskimg-vip { display: none; }

/* --- кабинет: кнопка с кубком и подпись состояния --- */
.sp-theme .scon-top { --c: 252, 215, 122; box-sizing: border-box; display: inline-flex; float: right; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin: 1px 0 1px 5px; padding: 0; border: 0; border-radius: 8px;
  font: 900 11px/1 "Font Awesome 6 Free"; color: rgb(var(--c)); cursor: pointer;
  background: linear-gradient(180deg, rgba(25, 61, 45, 0.063), rgba(25, 61, 45, 0) 60%), rgba(var(--c), .16);
  box-shadow: inset 0 0 0 1px rgba(var(--c), .55), 0 2px 6px -2px rgba(32, 59, 42, 0.18); transition: box-shadow .18s, transform .18s; }
.sp-theme .scon-top::before { content: "\f091"; }                                                 /* кубок */
.sp-theme .scon-top:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(var(--c), .9), 0 0 12px -2px rgba(var(--c), .8); }
.sp-top-lbls:empty { display: none; }
.sp-top-lbls { display: block; margin: 4px 0 2px; }
.sp-top-lbl { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; line-height: 1.5; white-space: nowrap; color: #2d3732;
  background: rgba(196, 240, 130, 0.12); box-shadow: inset 0 0 0 1px rgba(110, 170, 60, 0.122); }
.sp-top-lbl--on { color: #22593d; font-weight: 700; background: linear-gradient(135deg, #d4f4a4, #adea53); box-shadow: 0 0 10px -2px rgba(110, 170, 60, 0.28); }

/* подсказка над списком объявлений в кабинете */
.sp-top-hint { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; color: #2f7a4f;
  background: linear-gradient(135deg, rgba(198, 240, 134, 0.12), rgba(245, 248, 242, 0.4)); box-shadow: inset 0 0 0 1px rgba(110, 170, 60, 0.119); }
.sp-top-hint > span:nth-child(2) { flex: 1 1 0; min-width: 0; }
.sp-top-hint__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #22593d; background: linear-gradient(135deg, #d4f4a4, #adea53); }
.sp-top-hint > button { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; cursor: pointer; font-size: 17px; color: #2f7a4f; background: transparent; }
.sp-top-hint > button:hover { color: #101412; background: rgba(25, 61, 45, 0.07); }

/* --- окно закрепления --- */
#js-popup.sp-topw-wait { opacity: .55; pointer-events: none; transition: opacity .15s; }
.sp-topw { padding: 12px 14px 14px; font-size: 13px; line-height: 1.5; color: var(--sp-text, #28312d); }
.sp-topw__info, .sp-topw__warn, .sp-topw__queue, .sp-topw__mine { border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; text-align: center; }
.sp-topw__info { background: rgba(189, 238, 116, 0.09); box-shadow: inset 0 0 0 1px rgba(110, 170, 60, 0.098); color: #29322d; }
.sp-topw__warn { background: rgba(255, 122, 133, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 122, 133, 0.09); color: #ba2c39; margin: 12px 0 0; font-size: 12px; }
.sp-topw__info + .sp-topw__warn { margin: 0 0 12px; }
.sp-topw__queue { background: rgba(198, 240, 134, 0.09); box-shadow: inset 0 0 0 1px rgba(110, 170, 60, 0.112); color: #2f7a4f; }
.sp-topw__queue small { display: block; margin-top: 6px; color: #3f4d46; font-size: 12px; }
.sp-topw__mine { display: flex; align-items: center; gap: 12px; text-align: left; background: rgba(196, 240, 130, 0.1); box-shadow: inset 0 0 0 1px rgba(110, 170, 60, 0.112); }
.sp-topw__mine--on { background: rgba(94, 227, 154, 0.1); box-shadow: inset 0 0 0 1px rgba(94, 227, 154, 0.114); }
.sp-topw__mine > i { flex: none; font-size: 18px; color: var(--sp-blue, #2f7a4f); }
.sp-topw__mine--on > i { color: var(--sp-green, #298e57); }
.sp-topw__mine > div { flex: 1 1 0; min-width: 0; }
.sp-topw__mine b { display: block; color: var(--sp-head, #161b18); }
.sp-topw__cancel { flex: none; padding: 7px 12px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 12px; color: #212925;
  background: rgba(255, 122, 133, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 122, 133, 0.135); }
.sp-topw__cancel:hover { background: rgba(255, 122, 133, 0.24); }
.sp-topw__grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-topw__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-topw__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-topw__grid--1 { grid-template-columns: minmax(0, 260px); justify-content: center; }
.sp-topw__card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 12px; border-radius: 14px; text-align: center;
  background: rgba(245, 248, 242, 0.55); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(110, 170, 60, 0.063)); transition: box-shadow .18s, transform .18s; }
.sp-topw__card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--sp-edge-hi, rgba(110, 170, 60, 0.175)), 0 10px 24px -12px rgba(32, 59, 42, 0.27); }
.sp-top-medal { width: 78px; height: 78px; font-size: 38px; line-height: 1; }
.sp-top-medal > b { font-weight: 800; }
.sp-top-medal--z { align-content: center; gap: 2px; }
.sp-top-medal--z > b { font-size: 21px; letter-spacing: .5px; }
.sp-top-medal--z > i { font-size: 13px; font-style: normal; font-weight: 700; opacity: .95; }
.sp-topw__name { font-weight: 700; color: var(--sp-head, #161b18); margin-top: 4px; }
.sp-topw__price { color: #35413b; white-space: nowrap; }
.sp-topw__price b { color: var(--sp-gold, #2f7a4f); font-size: 15px; }
.sp-topw__state { min-height: 38px; display: grid; place-items: center; font-size: 12px; }
.sp-topw__free { color: var(--sp-green, #298e57); font-weight: 700; }
.sp-topw__busy { color: #2f7a4f; }
.sp-topw__btn { width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; cursor: pointer; font: inherit; font-weight: 700; color: #101412;
  background: var(--sp-accent-grad, linear-gradient(135deg, #adea53, #adea53 55%, #40964f)); box-shadow: 0 6px 16px -8px rgba(110, 170, 60, 0.315); transition: filter .18s, transform .18s; }
.sp-topw__btn:hover { filter: brightness(1.14); transform: translateY(-1px); }
.sp-topw__btn:disabled { cursor: not-allowed; filter: grayscale(.9) brightness(.7); transform: none; box-shadow: none; }
.sp-topw__card--mine { box-shadow: inset 0 0 0 1px rgba(94, 227, 154, 0.165), 0 0 18px -8px rgba(94, 227, 154, 0.24); }
.sp-topw__btn small { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; opacity: .85; }
.sp-topw__back { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--sp-link, #2f7a4f); text-decoration: none; }
.sp-topw__head { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 12px; }
.sp-topw__head .sp-top-medal { width: 56px; height: 56px; font-size: 27px; }
.sp-topw__head .sp-top-medal--z > b { font-size: 15px; }
.sp-topw__head .sp-top-medal--z > i { font-size: 10px; }
.sp-topw__head > div > b { display: block; font-size: 16px; color: var(--sp-head, #161b18); }
.sp-topw__head > div > span { color: #35413b; }
.sp-topw__form { max-width: 440px; margin: 0 auto; }
.sp-topw__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(47, 122, 79, 0.144); }
.sp-topw__row input { width: 150px; max-width: 50%; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--sp-edge, rgba(47, 122, 79, 0.27));
  background: var(--sp-field, rgba(249, 251, 247, 0.62)); color: var(--sp-head, #161b18); font: inherit; font-size: 15px; text-align: center; }
.sp-topw__quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid rgba(47, 122, 79, 0.144); }
.sp-topw__quick button { padding: 6px 13px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: #22593d;
  background: linear-gradient(135deg, #d4f4a4, #adea53); }
.sp-topw__quick button:hover { filter: brightness(1.1); }
.sp-topw__sum b { font-size: 16px; color: var(--sp-gold, #2f7a4f); white-space: nowrap; }
.sp-topw__till { min-height: 20px; padding: 8px 0 0; text-align: center; font-size: 12px; color: #3f4d46; }
.sp-topw__pay { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.sp-topw__pay .sp-topw__btn { width: auto; flex: 0 1 240px; }
@media (max-width: 600px) {
  /* заголовок любого окна на телефоне: длинный текст переносится и не заходит под «Закрыть» */
  #popup .title-popup { line-height: 1.3; padding: 12px 84px 12px 12px; }
  .sp-topw__grid, .sp-topw__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-top-medal { width: 64px; height: 64px; font-size: 31px; }
  .sp-topw__mine { flex-wrap: wrap; }
  .sp-topw__cancel { flex: 1 1 100%; }
  .sp-topw__pay { flex-direction: column; }
  .sp-topw__pay .sp-topw__btn { flex: none; width: 100%; }
  .sp-topw__row { flex-wrap: wrap; }
  .sp-topw__row input { width: 100%; max-width: none; }
}

/* ==========================================================================
   §13. Покупка рейтинга (v2.20): значки пакетов в стиле темы (include/rating_icons.php) вместо старых венков
   ========================================================================== */
.sp-theme .rating-purchase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: auto; max-width: 640px; margin: 0 auto; }
.sp-theme .rating-purchase__item.sp-rp { --rp: 124, 180, 255; min-width: 0; margin: 0 !important; padding: 14px 10px 18px; border-radius: 16px; background-image: none;
  background: linear-gradient(180deg, rgba(var(--rp), .1), rgba(245, 248, 242, 0.35) 55%); border: 1px solid rgba(var(--rp), .28);
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.sp-theme .rating-purchase__item.sp-rp:hover { transform: translateY(-3px); border-color: rgba(var(--rp), .7); box-shadow: 0 14px 30px -16px rgba(var(--rp), .9); }
.sp-rp--green { --rp: 94, 227, 154 !important; } .sp-rp--orange { --rp: 249, 115, 22 !important; } .sp-rp--brown { --rp: 252, 215, 122 !important; }
.sp-rp--violet { --rp: 180, 155, 255 !important; } .sp-rp--red { --rp: 255, 122, 133 !important; } .sp-rp--gray { --rp: 203, 213, 225 !important; }
.sp-rp__ico { display: grid; place-items: center; height: 100px; }
.sp-rp__ico svg { width: 96px; height: 96px; transition: transform .35s; }
.sp-rp:hover .sp-rp__ico svg { transform: scale(1.07) rotate(-3deg); }
.sp-rp__points { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: .3px; color: rgb(var(--rp)); text-shadow: none; }
.sp-theme .sp-rp .rating-purchase__item-header-title { margin-top: 2px; font-size: 11px; letter-spacing: 1.4px; font-weight: 600; color: #2f7a4f; }
.sp-theme .sp-rp .rating-purchase__item-price { padding: 10px 0 12px; font-size: 15px; color: var(--sp-head, #161b18); }
@media (max-width: 600px) {
  .sp-theme .rating-purchase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp-rp__points { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .sp-rp, .sp-rp__ico svg { transition: none !important; } }

/* --- список серфинга и переходов на телефоне: строка — карточка, цена и значки отдельной строкой снизу (раньше правая колонка уходила за край) --- */
@media (max-width: 600px) {
  .sp-theme table.work-serf[id^="serf-link-"], .sp-theme table.work-serf[id^="serf-link-"] > tbody { display: block; width: 100%; box-sizing: border-box; }
  .sp-theme table.work-serf[id^="serf-link-"] > tbody > tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
  .sp-theme table.work-serf[id^="serf-link-"] > tbody > tr > td { display: block; width: auto !important; min-width: 0; box-sizing: border-box; }
  .sp-theme table.work-serf[id^="serf-link-"] > tbody > tr > td:nth-child(2) { overflow-wrap: anywhere; }
  .sp-theme table.work-serf[id^="serf-link-"] > tbody > tr > td:nth-child(3) { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px;
    padding-top: 0; text-align: left !important; white-space: normal !important; }
  .sp-theme table.work-serf[id^="serf-link-"] > tbody > tr > td:nth-child(3) > div { margin: 0 0 0 auto !important; display: flex; align-items: center; gap: 8px; }
  /* закреплённая в ТОПе строка: полоска слева на всю высоту карточки */
  .sp-theme table.work-serf tr.sp-top-row { box-shadow: inset 3px 0 0 var(--sp-gold, rgba(110, 170, 60, 0.35)); border-radius: 12px; }
  .sp-theme table.work-serf tr.sp-top-row--z { box-shadow: inset 3px 0 0 var(--sp-blue, rgba(110, 170, 60, 0.35)); }
  .sp-theme table.work-serf tr.sp-top-row > td:first-child { box-shadow: none; }
}

/* ==========================================================================
   §14. Подвал (v2.21): счётчик посещений вместо логотипов платёжных систем, реквизиты продавца (class/footer.php)
   ========================================================================== */
.sp-footer .foot-left.is-empty { display: none; }
.sp-counter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 0; }
.sp-counter img { max-width: 100%; height: auto; border-radius: 6px; }
/* значок скрыт, счётчик работает: блок не display: none (иначе картинка-«пиксель» могла бы не загрузиться), а убран с глаз */
.sp-counter--off { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
/* счётчик скрыт: его место в подвале не занимает ширину (сам блок остаётся на странице) */
.sp-footer .foot-left.is-off { flex: 0 0 0; width: 0; min-width: 0; margin-right: -18px; overflow: visible; }
.sp-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 16px; margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: #5d7267; }
.sp-legal i { font-style: normal; color: #556881; }
/* без видимого счётчика ссылки, статистика и реквизиты встают по центру */
.sp-footer .foot-left.is-empty + .foot-center, .sp-footer .foot-left.is-off + .foot-center { flex: 1 1 100%; text-align: center; }
.sp-footer .foot-left.is-empty + .foot-center .sp-footlinks, .sp-footer .foot-left.is-empty + .foot-center .sp-footstats, .sp-footer .foot-left.is-empty + .foot-center .sp-legal,
.sp-footer .foot-left.is-off + .foot-center .sp-footlinks, .sp-footer .foot-left.is-off + .foot-center .sp-footstats, .sp-footer .foot-left.is-off + .foot-center .sp-legal { justify-content: center; }
@media (max-width: 760px) { .sp-legal { justify-content: center; } }
/* на телефоне последняя строка подвала не прячется под плавающими кнопками «в сети» и «чат» */
@media (max-width: 760px) { .sp-footer .footer__container { padding-bottom: 78px; } }

/* ==========================================================================
   §15. Рекламные кабинеты (v2.22): кнопки оплаты и форма автоподнятия
   ========================================================================== */
/* Кнопки «Оплатить с рекламного счета» / «Оплатить с основного счета» и другие кнопки-поля в раскрытых блоках кабинета:
   раньше у них была жёсткая ширина 220px (общее правило для полей), и длинная надпись обрезалась. */
#contentwrapper td.ext-viptask input[type="submit"], #contentwrapper td.ext-viptask input[type="button"] {
  width: auto; min-width: 220px; max-width: 100%; height: auto; margin: 4px 3px; white-space: normal; line-height: 1.25; text-align: center;
}
@media (max-width: 600px) {
  #contentwrapper td.ext-viptask input[type="submit"], #contentwrapper td.ext-viptask input[type="button"] {
    display: block; width: 100%; min-width: 0; margin: 8px 0 0; padding-left: 8px; padding-right: 8px; font-size: 15px !important;
  }
}
/* Автоподнятие задания: интервал, количество и кнопка — панель в цветах сайта вместо зелёной подложки */
.sp-autoup {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 12px 2px; padding: 14px;
  border-radius: 14px; background: rgba(243, 247, 240, 0.55); border: 1px solid rgba(47, 122, 79, 0.306);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 0 1px rgba(110, 170, 60, 0.035), 0 10px 26px -18px rgba(110, 170, 60, 0.315);
}
#contentwrapper .sp-autoup select, #contentwrapper .sp-autoup input[type="text"] { flex: 1 1 210px; width: auto; min-width: 0; max-width: 260px; margin: 0; }
#contentwrapper .sp-autoup .btn { flex: 0 0 auto; margin: 0; }
.sp-autoup__sale { display: block; margin: 4px 0 0; font-weight: 700; color: #298e4f; }
@media (max-width: 600px) {
  #contentwrapper .sp-autoup select, #contentwrapper .sp-autoup input[type="text"], #contentwrapper .sp-autoup .btn { flex: 1 1 100%; width: 100%; max-width: none; }
}
