/* MakeTag · Sponsors (maketag.app/sponsors/) — the ad shop's dashboard, in the /pr/ look over customtag.css:
   the order form (invite → amount → price / forecast → pay from balance), «My ads», how it works; the admin's settings. */
.sp-main { max-width: 1080px; }
.sp-head { margin-bottom: 28px; }
.sp-head .ct-lead { margin-top: 14px; max-width: 720px; }
.ct-mode[hidden] { display: none !important; }

/* two columns on a computer: the form | my ads (or how it works) */
.sp-grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .sp-grid2 { grid-template-columns: minmax(0, 1fr); } }
.sp-col { min-width: 0; }
.ct-main .sp-card { text-align: left; padding: 18px 18px 16px; margin: 0; }

.sp-kick { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.sp-kick span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft, #a3a3ad); }

.sp-row { margin: 0 0 14px; }
.sp-lbl { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #f2f2f4; }
.sp-lbl-r { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--faint, #797983); font-variant-numeric: tabular-nums; }
.sp-n { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); font-size: 12px; font-weight: 600; color: var(--ink-soft, #a3a3ad); }
.sp-in { display: block; width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); background: rgba(0, 0, 0, .35); color: #f2f2f4; font: inherit; font-size: 16px; outline: 0; }
.sp-in.bad { border-color: #f87171; }
.sp-inv-state { min-height: 18px; margin: 7px 0 0; font-size: 13px; line-height: 1.5; }
.sp-hint { color: var(--faint, #797983); font-size: 13px; }
.sp-bad { color: #f87171; font-size: 13.5px; line-height: 1.5; }
.sp-found { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid rgba(74, 222, 128, .4); border-radius: 12px; background: rgba(74, 222, 128, .05); }
.sp-found div { flex: 1; min-width: 0; }
.sp-found b { display: block; color: #f2f2f4; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-found div span { display: block; color: var(--muted, #a3a3ad); font-size: 12.5px; }
.sp-found i { font-style: normal; color: #4ade80; font-size: 17px; font-weight: 700; }
.sp-srv-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #f2f2f4; font-weight: 700; font-size: 15px; }
.sp-srv-ic img { width: 100%; height: 100%; object-fit: cover; }

/* the amount: a stepper «− 250 joins +» and a segmented row of quick picks under it */
.sp-qty { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 5px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); border-radius: 16px; background: rgba(0, 0, 0, .35); transition: border-color .15s; }
.sp-qty:focus-within { border-color: rgba(255, 255, 255, .4); }
.sp-qty.bad { border-color: #f87171; }
.sp-step { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #f2f2f4; cursor: pointer; transition: background .15s, opacity .15s, transform .1s; }
.sp-step:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.sp-step:active:not(:disabled) { transform: scale(.94); }
.sp-step:disabled { opacity: .3; cursor: default; }
.sp-qty-f { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; height: 100%; cursor: text; }
.sp-qty-f input { flex: 0 1 auto; width: 7ch; min-width: 0; padding: 0; border: 0; background: transparent; color: #f2f2f4; font: inherit; font-size: 22px; font-weight: 400; letter-spacing: -.02em; line-height: 46px; text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.sp-qty-f input::placeholder { color: var(--faint, #797983); }
.sp-qty-f span { flex: 0 1 auto; width: 9ch; font-size: 14px; color: var(--muted, #a3a3ad); white-space: nowrap; }
.sp-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; margin: 8px 0 0; padding: 3px; border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 999px; }
.sp-seg-b { height: 30px; min-width: 0; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft, #a3a3ad); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background .18s, color .18s; }
.sp-seg-b:hover:not(.on) { color: #f2f2f4; background: rgba(255, 255, 255, .05); }
.sp-seg-b.on { background: #f4f4f6; color: #0a0a0c; font-weight: 600; }
.sp-qty-h { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--faint, #797983); }
@media (prefers-reduced-motion: reduce) { .sp-step, .sp-seg-b, .sp-qty { transition: none; } }

/* the summary (2026-10-19, compact): the price large on the left, the forecast / run / start as small facts on the right */
.sp-sum { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 6px 20px; margin: 4px 0 0; padding: 12px 0; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-sum-empty { display: block; padding: 14px 0; font-size: 14px; color: var(--muted, #a3a3ad); }
.sp-sum-price { min-width: 0; padding-right: 20px; border-right: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-sum-price span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint, #797983); }
.sp-sum-price b { display: block; margin: 3px 0 2px; font-size: 30px; font-weight: 300; letter-spacing: -.02em; line-height: 1.05; color: #f2f2f4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-sum-price em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted, #a3a3ad); white-space: nowrap; }
.sp-sum-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.sp-sum-facts li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted, #a3a3ad); }
.sp-sum-facts li svg { flex: none; color: var(--faint, #797983); }
.sp-sum-facts li span { flex: none; }
.sp-sum-facts li b { margin-left: auto; min-width: 0; font-weight: 600; color: #f2f2f4; text-align: right; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the queue line under the figures: a free place (quiet) / all places taken (amber) */
.sp-queue { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 9px 12px; border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 12px; color: var(--ink-soft, #a3a3ad); }
.sp-queue svg { flex: none; margin-top: 2px; color: #7ee2a8; }
.sp-queue p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.sp-queue b { color: #f2f2f4; font-weight: 600; }
.sp-queue.wait { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .05); }
.sp-queue.wait svg { color: #fbbf24; }
.sp-note { margin: 8px 0 0; font-size: 12px; line-height: 1.55; color: var(--faint, #797983); }

/* pay: the balance, «Top up», the main button */
.sp-payrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 0 0; }
.sp-pay-t { margin: 0; flex: 1 1 220px; font-size: 14px; line-height: 1.55; color: var(--ink-soft, #a3a3ad); }
.sp-balrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.sp-bal { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft, #a3a3ad); }
.sp-bal b { color: #f2f2f4; font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-wait { font-style: normal; color: #fbbf24; font-size: 12.5px; }
.sp-link-btn { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: #f2f2f4; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); cursor: pointer; }
.sp-link-btn:hover { text-decoration-color: #f2f2f4; }
.prl .sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; font-size: 14.5px; }
.prl .sp-btn:disabled { opacity: .45; cursor: default; }
.sp-short { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #fbbf24; }
.sp-err { margin: 10px 0 0; }
.sp-off { margin: 0 0 14px; padding: 10px 14px; border: 1px solid rgba(251, 191, 36, .4); border-radius: 12px; background: rgba(251, 191, 36, .06); color: #fcd9a0; font-size: 13.5px; line-height: 1.5; }
.sp-flash { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.sp-flash.ok { border: 1px solid rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .06); color: #a7f3c4; }
.sp-flash.bad { border: 1px solid rgba(248, 113, 113, .4); color: #fca5a5; }

/* sections under / beside the form */
.sp-sec { margin: 0 0 34px; }
.sp-grid2 + .sp-sec, .sp-sec + .sp-sec { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-col > .sp-sec { margin: 0; }
.sp-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.sp-sec-h h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sp-sec-h h3 { margin: 0; font-size: 16px; font-weight: 600; }
.sp-sec-h > span { font-size: 13px; color: var(--faint, #797983); font-variant-numeric: tabular-nums; }
.sp-sub { margin-top: 26px; }
.sp-empty { margin: 0; padding: 18px; border: 1px dashed var(--line-2, rgba(255, 255, 255, .17)); border-radius: 14px; font-size: 14px; line-height: 1.55; color: var(--muted, #a3a3ad); }
.sp-foot-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint, #797983); }

/* an ad: the server, the state, three figures, the progress */
.sp-ads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sp-ads-done { margin-top: 8px; }
.sp-ads-done .sp-ad { opacity: .72; }
.sp-ad { min-width: 0; padding: 12px 14px; border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 16px; background: rgba(10, 10, 12, .72); }
.sp-ad-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sp-ad .sp-srv-ic { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.sp-ad-t { flex: 1; min-width: 0; }
.sp-ad-t > a { display: block; color: #f2f2f4; font-size: 15px; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ad-t > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-ad-t > span { display: block; font-size: 12.5px; color: var(--muted, #a3a3ad); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ad-buyer { display: inline; color: var(--ink-soft, #a3a3ad); text-decoration: none; vertical-align: bottom; }
.sp-ad-buyer img { width: 14px; height: 14px; margin-right: 4px; border-radius: 50%; vertical-align: -2px; }
.sp-ad-buyer:hover { color: #f2f2f4; }
.sp-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; line-height: 1.35; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); color: var(--ink-soft, #a3a3ad); white-space: nowrap; }
.sp-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sp-pill.ok { color: #7ee2a8; border-color: rgba(126, 226, 168, .35); }
.sp-pill.wait { color: #fbbf24; border-color: rgba(251, 191, 36, .35); }
.sp-pill.bad { color: #f87171; border-color: rgba(248, 113, 113, .4); }
.sp-ad-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 10px 0 8px; font-size: 12.5px; color: var(--muted, #a3a3ad); }
.sp-ad-stats > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sp-ad-stats svg { color: var(--faint, #797983); }
.sp-ad-stats b { font-size: 15px; font-weight: 600; color: #f2f2f4; font-variant-numeric: tabular-nums; }
/* the queue of bought ads — an admin's tools on each card (2026-10-19) */
.sp-q { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-q-n { font-size: 12.5px; color: var(--muted, #a3a3ad); }
.sp-q-n b { font-size: 15px; font-weight: 600; color: #f2f2f4; font-variant-numeric: tabular-nums; margin-right: 2px; }
.sp-q-err { font-size: 12.5px; color: #f87171; }
.sp-q-b { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sp-q-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); border-radius: 50%; background: none; color: #f2f2f4; cursor: pointer; }
.sp-q-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.sp-q-btn:disabled { opacity: .3; cursor: default; }
.sp-q-prio { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); border-radius: 999px; background: none; color: var(--ink-soft, #a3a3ad); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.sp-q-prio:hover:not(:disabled) { color: #f2f2f4; border-color: rgba(255, 255, 255, .3); }
.sp-q-prio.on { background: #f2f2f4; border-color: #f2f2f4; color: #0a0a0c; font-weight: 600; }
.sp-q-prio:disabled { opacity: .5; cursor: default; }
.sp-ad-pct { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 600; color: #f2f2f4; font-variant-numeric: tabular-nums; }
/* «Завершённые · N»: the finished ads folded under the running ones */
.sp-fold { display: inline-flex; align-items: center; gap: 7px; margin: 10px 0 0; padding: 7px 12px; border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 999px; background: none; color: var(--ink-soft, #a3a3ad); font: inherit; font-size: 13px; cursor: pointer; }
.sp-fold:hover { color: #f2f2f4; border-color: var(--line-2, rgba(255, 255, 255, .17)); }
.sp-fold span { color: var(--faint, #797983); font-variant-numeric: tabular-nums; }
.sp-fold svg { transition: transform .2s; }
.sp-fold.on svg { transform: rotate(180deg); }
.sp-none { margin: 0; font-size: 14px; color: var(--muted, #a3a3ad); }
.sp-bar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sp-bar i { display: block; height: 100%; border-radius: inherit; background: #f2f2f4; transition: width .4s ease; }
.sp-ad-src { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted, #a3a3ad); }
.sp-ad-note { margin: 9px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted, #a3a3ad); }

/* how it works */
.sp-steps { list-style: none; margin: 0; padding: 0; }
.sp-steps li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-steps li:last-child { border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-steps li > span { flex: none; width: 34px; font-size: 22px; font-weight: 300; color: var(--faint, #797983); font-variant-numeric: tabular-nums; }
.sp-steps b { display: block; font-size: 15px; font-weight: 600; color: #f2f2f4; }
.sp-steps p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft, #a3a3ad); }
.sp-ask { margin: 14px 0 0; font-size: 14px; color: var(--muted, #a3a3ad); }
.sp-ask a { color: #f2f2f4; text-underline-offset: 3px; }
.sp-grid2 .sp-how { margin: 0; }

/* the admin's settings */
.sp-admin .sp-sec-h > span { padding: 3px 10px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 999px; font-size: 12px; }
.sp-aset { border-style: dashed; }
.sp-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; color: #f2f2f4; margin: 0 0 16px; }
.sp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sp-switch i { position: relative; width: 42px; height: 24px; flex: none; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.sp-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #f2f2f4; transition: transform .2s; }
.sp-switch input:checked + i { background: #4ade80; }
.sp-switch input:checked + i::after { transform: translateX(18px); background: #0a0a0c; }
.sp-switch input:focus-visible + i { outline: 2px solid #f2f2f4; outline-offset: 2px; }
/* «Розыгрыш с рекламой» (2026-10-18): the admin's switch + text, and the per-ad launch of a giveaway */
.sp-gwset { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-gwset .sp-switch { margin-bottom: 8px; }
.sp-gw-lead { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted, #a3a3ad); }
.sp-ta { height: auto; min-height: 104px; padding: 12px 14px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.sp-gwset em code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-size: 11.5px; white-space: pre-wrap; word-break: break-word; }
.sp-gwset em b { color: #f2f2f4; font-weight: 600; }
.sp-gw-reset { margin-top: 10px; }
.sp-gw { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line, rgba(255, 255, 255, .12)); }
.sp-gw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sp-gw-last { font-size: 12.5px; line-height: 1.45; color: var(--muted, #a3a3ad); }
p.sp-gw-last { margin: 10px 0 0; }
.sp-gw-run { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #f2f2f4; }
.sp-gw-run i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #f2f2f4; animation: sp-gw-spin .8s linear infinite; }
@keyframes sp-gw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sp-gw-run i { animation: none; } }
.sp-gwf { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-gw-opt { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: #f2f2f4; }
.sp-gw-opt input { width: 18px; height: 18px; margin: 0; accent-color: #b06cff; flex: none; }
.sp-gw-id { height: 42px; max-width: 320px; font-size: 15px; font-variant-numeric: tabular-nums; }
.sp-gwf-b { display: flex; gap: 8px; }
.sp-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.sp-af { display: block; min-width: 0; }
.sp-af > span { display: block; margin: 0 0 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft, #a3a3ad); }
.sp-af .sp-in { height: 42px; font-size: 15px; }
.sp-af em { display: block; margin: 6px 0 0; font-style: normal; font-size: 12px; line-height: 1.4; color: var(--faint, #797983); }
.sp-asave { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-asave > span { flex: 1 1 200px; }
.prl .sp-btn-sm { padding: 9px 16px; font-size: 14px; }
.prl .sp-btn-sm:disabled { opacity: .45; cursor: default; }
.sp-asave [hidden] { display: none; }

/* the top-up dialog */
.sp-tu p { margin: 0 0 14px; }
.sp-tu-f { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; margin: 0 0 14px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); border-radius: 12px; background: rgba(0, 0, 0, .35); }
.sp-tu-f span { color: var(--muted, #a3a3ad); font-size: 18px; }
.sp-tu-f input { flex: 1; min-width: 0; border: 0; background: transparent; color: #f2f2f4; font: inherit; font-size: 20px; outline: none; font-variant-numeric: tabular-nums; }
.sp-tu .sp-bad { margin: -6px 0 12px; }

/* phones */
@media (max-width: 640px) {
  .ct-main .sp-card { padding: 18px 16px; }
  .sp-sum { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sp-sum-price { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1)); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .sp-sum-price b { margin: 0; font-size: 28px; }
  .sp-payrow { flex-direction: column; align-items: stretch; }
  .sp-payrow .sp-btn { width: 100%; }
  .sp-ad-top { flex-wrap: wrap; }
  .sp-ad-top { flex-wrap: nowrap; }
  .sp-ad-top .sp-pill { padding: 3px 8px; font-size: 11.5px; }
}

/* the admin's money on /sponsors/ (2026-10-18): a manual top-up by ID, the sponsors' balances, the history of payments */
.sp-credit h4, .sp-adm-h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #f2f2f4; }
.sp-adm-h4 { margin: 22px 0 10px; }
.sp-cgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: end; }
.sp-cgrid .sp-af { margin: 0; }
.sp-cgo { height: 44px; padding: 0 22px; }
.sp-okline { color: #4ade80; }
.sp-adm-tools { margin: 18px 0 0; }
.sp-adm-tools .sp-in { max-width: 360px; }
.sp-adm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-adm-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(0, 1.4fr) auto; gap: 8px 18px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-adm-h { grid-template-columns: minmax(180px, 1.1fr) minmax(0, 1.8fr) auto; }
.sp-adm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-adm-who img, .sp-adm-who i { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .09); color: #f2f2f4; }
.sp-adm-who > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sp-adm-who b { font-weight: 600; color: #f2f2f4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-adm-who em { font-style: normal; font-size: 12px; color: var(--faint, #797983); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-adm-num { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-adm-num b { font-size: 22px; font-weight: 300; letter-spacing: -.02em; color: #f2f2f4; }
.sp-adm-num span, .sp-adm-what small { font-size: 12.5px; color: var(--muted, #a3a3ad); }
.sp-adm-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sp-adm-what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; color: var(--ink-soft, #c9c9d1); min-width: 0; }
.sp-adm-what b { color: #f2f2f4; }
.sp-adm-what em { font-style: normal; color: var(--muted, #a3a3ad); }
.sp-adm-what small { flex: 0 0 100%; }
.sp-adm-amt { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sp-adm-amt.pos { color: #4ade80; } .sp-adm-amt.neg { color: #f2f2f4; } .sp-adm-amt.dim { opacity: .5; }
.sp-adm-st { font-size: 11.5px; }
.sp-adm-st.ok { color: #4ade80; } .sp-adm-st.wait { color: #fbbf24; } .sp-adm-st.bad { color: #f87171; }
.sp-adm-hh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.sp-adm-hh .sp-adm-h4 { margin-bottom: 0; }
.sp-seg2 { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); border-radius: 999px; }
.sp-seg2 button { background: none; border: 0; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 13px; color: var(--muted, #a3a3ad); cursor: pointer; }
.sp-seg2 button.on { background: #f2f2f4; color: #0a0a0d; font-weight: 600; }
.sp-adm-more { margin-top: 14px; text-align: center; }
@media (max-width: 860px) { .sp-cgrid { grid-template-columns: 1fr 1fr; } .sp-cnote, .sp-cgo { grid-column: 1 / -1; } .sp-cgo { width: 100%; } }
@media (max-width: 640px) { .sp-adm-row, .sp-adm-h { grid-template-columns: minmax(0, 1fr) auto; } .sp-adm-num, .sp-adm-what { grid-column: 1 / -1; order: 3; } .sp-adm-act { grid-column: 1 / -1; order: 4; justify-content: flex-start; } .sp-adm-amt { grid-row: 1; grid-column: 2; } }
/* the admin's «Все купленные рекламы»: Активные / В очереди / Завершённые / Все (2026-10-19) */
.sp-afilt { margin: 0 0 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sp-afilt button span { margin-left: 4px; opacity: .6; font-variant-numeric: tabular-nums; }
.sp-afilt-none { margin: 0 0 12px; }

/* «Приоритет» (2026-10-19): the option in the order form and «Купить приоритет» on an ad waiting in the queue */
.sp-prio { position: relative; display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 14px; background: rgba(255, 255, 255, .02); cursor: pointer; transition: border-color .15s, background .15s; }
.sp-prio:hover { border-color: var(--line-2, rgba(255, 255, 255, .17)); }
.sp-prio input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sp-prio:focus-within { outline: 2px solid rgba(255, 255, 255, .5); outline-offset: 2px; }
.sp-prio.on { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.sp-prio.full { cursor: default; opacity: .6; }
.sp-prio-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(251, 191, 36, .12); color: #fbbf24; }
.sp-prio-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-prio-t b { font-size: 14.5px; font-weight: 600; color: #f2f2f4; }
.sp-prio-t em { font-style: normal; font-size: 13px; color: var(--ink-soft, #c9c9d1); }
.sp-prio-t small { font-size: 12px; color: var(--faint, #797983); }
.sp-prio-p { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.sp-prio-p b { font-size: 15px; font-weight: 600; color: #f2f2f4; font-variant-numeric: tabular-nums; }
.sp-prio-p em { font-style: normal; font-size: 12px; color: var(--muted, #a3a3ad); font-variant-numeric: tabular-nums; }
.sp-prio-ck { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2, rgba(255, 255, 255, .3)); display: grid; place-items: center; }
.sp-prio.on .sp-prio-ck { background: #f2f2f4; border-color: #f2f2f4; }
.sp-prio.on .sp-prio-ck::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #0a0a0c; border-bottom: 2px solid #0a0a0c; transform: translateY(-1px) rotate(-45deg); }
.sp-pill.sp-pill-prio { color: #fbbf24; border-color: rgba(251, 191, 36, .4); }
.sp-pill.sp-pill-prio::before { display: none; }
.sp-pb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-pb > span { font-size: 12.5px; color: var(--muted, #a3a3ad); }
.sp-pb-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border: 1px solid rgba(251, 191, 36, .45); border-radius: 999px; background: rgba(251, 191, 36, .08); color: #fbd36a; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sp-pb-btn:hover:not(:disabled) { background: rgba(251, 191, 36, .16); }
.sp-pb-btn:disabled { opacity: .45; cursor: default; }
.sp-pb.ask { flex-direction: column; align-items: stretch; }
.sp-pb.ask p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft, #c9c9d1); }
.sp-pb-b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sp-pb-err { margin: 6px 0 0; font-size: 12.5px; }
@media (max-width: 520px) {
  .sp-prio { padding: 11px 12px; gap: 10px; }
  .sp-prio-ic { width: 30px; height: 30px; }
  .sp-pb-btn { white-space: normal; height: auto; min-height: 32px; padding: 6px 14px; }
}
/* «Страны показа» picked by buttons (2026-10-21) */
.sp-ct-t { font-size: 14px; font-weight: 600; color: #f2f2f4; }
.sp-ct .sp-seg2 { align-self: flex-start; }
.sp-ct .sp-hint { margin: 0; }
.sp-ct-sel, .sp-ct-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-ct-sugg { max-height: 170px; overflow-y: auto; }
.sp-ct-c, .sp-ct-b { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s, color .15s; }
.sp-ct-c { background: #f2f2f4; color: #0a0a0d; border: 1px solid #f2f2f4; font-weight: 600; }
.sp-ct-c i { font-style: normal; font-weight: 500; color: #55555e; font-variant-numeric: tabular-nums; }
.sp-ct-c b { font-weight: 600; color: #6b6b74; }
.sp-ct-c:hover b { color: #d33; }
.sp-ct-b { background: transparent; color: var(--ink-soft, #a3a3ad); border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); }
.sp-ct-b:hover { color: #f2f2f4; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.sp-ct-b i { font-style: normal; color: #f2f2f4; font-variant-numeric: tabular-nums; }
.sp-ct-none { font-size: 13px; color: var(--faint, #797983); align-self: center; }
.sp-ct-q { height: 40px; max-width: 320px; font-size: 15px; }
@media (max-width: 640px) { .sp-ct-q { max-width: none; font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .sp-ct-c, .sp-ct-b { transition: none; } }
/* «Только с аватаркой» (2026-10-21) */
.sp-av { margin: 10px 0 0; font-size: 13.5px; }
.sp-av em { font-style: normal; color: var(--faint, #797983); }

/* «На главной» (2026-10-21, admins only): where the ad is shown + the badge on its card */
.sp-place { margin: 0 0 16px; }
.sp-place .sp-seg2 { max-width: 100%; }
.sp-place .sp-seg2 button { flex: 1 1 auto; white-space: nowrap; }
.sp-place-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft, #a3a3ad); }
.sp-place-note em { font-style: normal; margin-right: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); font-size: 11.5px; }
.sp-pill.sp-pill-home { color: #a5b4fc; border-color: rgba(165, 180, 252, .4); }
.sp-pill.sp-pill-home::before { display: none; }
@media (max-width: 480px) { .sp-place .sp-seg2 { display: flex; } .sp-place .sp-seg2 button { padding: 7px 8px; font-size: 12.5px; } }

/* the admin's choices of an order being placed (countries, giveaway) */
.sp-adm-o { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.sp-adm-tag { font-style: normal; font-size: 11.5px; font-weight: 600; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line, rgba(255, 255, 255, .15)); color: var(--faint, #9a9aa6); }

/* «Завершить» of a bought ad (an admin, 2026-10-31) */
.sp-btn-danger { color: #f87171; }
.sp-btn-danger:hover { border-color: rgba(248, 113, 113, .5); }
.sp-gw > .sp-bad { margin: 8px 0 0; }

/* «Язык сайта» of a bought ad / the order form (2026-11-01) */
.sp-lang-row { margin-top: 10px; }
.sp-lang { flex-wrap: wrap; }
.sp-lang .sp-lang-n { font-style: normal; opacity: .55; margin-left: 4px; font-size: 12px; }
.sp-lang button.on .sp-lang-n { opacity: .7; }
.sp-lang button:disabled { opacity: .5; cursor: default; }

/* «Дневной лимит заходов» (2026-11-01) */
.sp-dc-row { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-dc-row .sp-hint { flex-basis: 100%; margin: 2px 0 0; }
.sp-dc-in { width: 120px; max-width: 100%; }
.sp-dc-row .sp-dc-in { padding-top: 8px; padding-bottom: 8px; font-size: 14px; }

/* J4J — «join for join» of a bought ad (an admin, 2026-11-20): the partner, our server, the rate, the day's status */
.sp-j4j { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.sp-j4j-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 14px; }
.sp-j4j-sw { font-size: 13.5px; }
.sp-j4j-sw em, .sp-j4j .sp-gw-opt em { font-style: normal; color: var(--faint, #797983); }
.sp-j4j > .sp-gw-opt { font-size: 13.5px; }
.sp-j4j-grid label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-j4j-grid label > span:first-child { font-size: 13px; color: var(--muted, #9a9aa3); }
.sp-j4j-in { width: 100%; box-sizing: border-box; padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.sp-j4j-rate { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; font-size: 14px; white-space: nowrap; }
.sp-j4j-num { width: 72px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; text-align: center; }
.sp-j4j-who { font-style: normal; font-size: 12.5px; color: var(--muted, #9a9aa3); }
.sp-j4j-act { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-j4j-st { margin: 0; color: #4ade80; }
.sp-j4j-st.off { color: #fbbf24; }
.sp-j4j .sp-hint { margin: 0; }

/* THE SHELVES (2026-11-21, the owner: «стало неудобно — разложи по полочкам»): tabs «Новая реклама | Мои рекламы | (admins) Все рекламы |
   Платежи | Настройки», a pill track that sticks to the top while the page scrolls */
.sp-tabs-anchor { display: block; height: 0; }
.sp-tabs { position: sticky; top: 10px; z-index: 6; display: flex; align-items: center; gap: 2px; width: max-content; max-width: 100%; box-sizing: border-box; margin: 0 0 22px; padding: 4px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); border-radius: 999px; background: rgba(8, 8, 11, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft, #a3a3ad); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .18s, color .18s; }
.sp-tab:hover:not(.on) { color: #f2f2f4; background: rgba(255, 255, 255, .05); }
.sp-tab.on { background: #f4f4f6; color: #0a0a0c; font-weight: 600; }
.sp-tab em { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #f2f2f4; font-style: normal; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-tab.on em { background: rgba(0, 0, 0, .1); color: #0a0a0c; }
.sp-tab:focus-visible { outline: 2px solid #f2f2f4; outline-offset: 2px; }
.sp-tabs-sep { flex: none; width: 1px; height: 22px; margin: 0 6px; background: var(--line-2, rgba(255, 255, 255, .17)); }
.sp-pane > .sp-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sp-pay-sec .sp-credit { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .sp-tab { transition: none; } }

/* «Новая реклама»: the steps | «Ваш заказ» (sticky on a computer — the price and «Оплатить» always in sight) */
.sp-buy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: 20px; align-items: start; }
.sp-side { position: sticky; top: 72px; min-width: 0; }
.sp-sumcard { display: flex; flex-direction: column; }
.sp-what-h { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint, #797983); }
.sp-what-srv { display: flex; align-items: center; gap: 11px; min-width: 0; margin: 0 0 12px; }
.sp-what-srv div { min-width: 0; }
.sp-what-srv b { display: block; color: #f2f2f4; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-what-srv span { display: block; font-size: 12.5px; color: var(--muted, #a3a3ad); }
.sp-what-empty { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted, #a3a3ad); }
.sp-side .sp-sum { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sp-side .sp-sum-price { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-side .sp-sum-price b { font-size: 34px; }
.sp-side .sp-payrow { flex-direction: column; align-items: stretch; }
.sp-side .sp-payrow .sp-btn { width: 100%; }
.sp-side .sp-balrow { justify-content: space-between; }
.sp-flash { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.sp-flash p { margin: 0; flex: 1 1 260px; }
.sp-buy + .sp-how { margin-top: 26px; padding: 0; }
@media (max-width: 900px) { .sp-buy { grid-template-columns: minmax(0, 1fr); } .sp-side { position: static; } }

/* the admin's «Настройки показа» in the order form: one line with a summary, unfolds on a press */
.sp-adm-fold { padding: 0; overflow: hidden; }
.sp-more { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 't c' 's c'; align-items: center; gap: 3px 10px; width: 100%; padding: 12px 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sp-more-t { grid-area: t; display: flex; align-items: center; gap: 4px; font-size: 14px; color: #f2f2f4; }
.sp-more-s { grid-area: s; min-width: 0; font-size: 12.5px; color: var(--muted, #a3a3ad); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-more > svg { grid-area: c; color: var(--faint, #797983); transition: transform .2s; }
.sp-more.on > svg { transform: rotate(180deg); }
.sp-more:hover .sp-more-t b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.sp-adm-body { margin: 0; padding: 12px 14px 14px; border: 0; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 0; background: none; }

/* a bought ad: one row of tools always in sight + chips of what is not the default; the settings fold into groups */
.sp-ad-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-ad-act .sp-q { margin: 0; padding: 0; border: 0; }
.sp-ad-act .sp-q-b { margin-left: 4px; }
.sp-ad-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.sp-ad-tog { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); border-radius: 999px; background: transparent; color: var(--ink-soft, #a3a3ad); font: inherit; font-size: 13px; cursor: pointer; }
.sp-ad-tog:hover { color: #f2f2f4; border-color: rgba(255, 255, 255, .3); }
.sp-ad-tog.on { color: #f2f2f4; background: rgba(255, 255, 255, .06); }
.sp-ad-tog svg:last-child { transition: transform .2s; }
.sp-ad-tog.on svg:last-child { transform: rotate(180deg); }
.sp-ctl-err { margin: 6px 0 0; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.sp-chip { padding: 3px 10px; border: 1px solid var(--line, rgba(255, 255, 255, .12)); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--ink-soft, #a3a3ad); font: inherit; font-size: 12px; cursor: pointer; }
.sp-chip:hover { color: #f2f2f4; border-color: var(--line-2, rgba(255, 255, 255, .25)); }
.sp-ad-panel { margin: 10px 0 0; border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.sp-ap-sec { padding: 12px 14px 14px; }
.sp-ap-sec + .sp-ap-sec { border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-ap-sec h4 { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint, #797983); }
.sp-ap-sec > h4 + * { margin-top: 0; }
.sp-ap-sec .sp-gw { margin: 0; padding: 0; border: 0; }
.sp-ct-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (prefers-reduced-motion: reduce) { .sp-more > svg, .sp-ad-tog svg:last-child { transition: none; } }

/* «Все рекламы»: the filter + a search on one row */
.sp-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 12px; }
.sp-tools .sp-afilt { margin: 0; }
.sp-search { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); border-radius: 999px; background: rgba(0, 0, 0, .35); color: var(--faint, #797983); }
.sp-search:focus-within { border-color: rgba(255, 255, 255, .4); }
.sp-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #f2f2f4; font: inherit; font-size: 14px; outline: none; }
.sp-empty-go { margin-top: 14px; }
.sp-how > .sp-fold, .sp-sec-h .sp-fold { margin: 0; }

@media (max-width: 640px) {
  .sp-tabs { top: 6px; width: auto; margin-bottom: 16px; }
  .sp-tab { height: 34px; padding: 0 12px; font-size: 13.5px; }
  .sp-tab svg { display: none; }
  .sp-tabs-sep { margin: 0 3px; }
  .sp-ad-btns { margin-left: 0; width: 100%; }
  .sp-search { flex: 1 1 100%; }
}
.prl .btn.sp-btn-danger { color: #f87171; border-color: rgba(248, 113, 113, .45); }
.prl .btn.sp-btn-danger:hover:not(:disabled) { background: rgba(248, 113, 113, .1); border-color: #f87171; }

/* «J4J» shelf (2026-11-21): the lead under its title and the day's state on each card */
.sp-lead-s { margin: -6px 0 14px; max-width: 860px; font-size: 13.5px; line-height: 1.55; color: var(--muted, #a3a3ad); }
/* «На главной» (admins, 2026-11-22) */
.sp-hm .sp-afilt { margin: 2px 0 12px; }
.sp-hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 14px; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-hm-tiles > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border-left: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-hm-tiles > div:first-child { padding-left: 0; border-left: 0; }
.sp-hm-tiles b { font-size: 22px; font-weight: 650; color: #f2f2f4; font-variant-numeric: tabular-nums; }
.sp-hm-tiles span { font-size: 12.5px; color: var(--muted, #a3a3ad); }
.sp-hm-tiles small { font-size: 11.5px; color: var(--muted, #a3a3ad); opacity: .7; font-variant-numeric: tabular-nums; }
.sp-hm-chart { margin: 0 0 22px; }
.sp-hm-chart svg { display: block; width: 100%; height: 120px; }
.sp-hm-chart rect.v { fill: rgba(255, 255, 255, .13); }
.sp-hm-chart rect.j { fill: #4ade80; }
.sp-hm-chart g:hover rect.v { fill: rgba(255, 255, 255, .26); }
.sp-hm-chart figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--faint, #797983); }
.sp-hm-leg { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; }
.sp-hm-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.sp-hm-leg i.j { background: #4ade80; margin-left: 6px; }
.sp-hm-h3 { margin: 22px 0 10px; font-size: 15px; font-weight: 650; color: #f2f2f4; display: flex; align-items: center; gap: 8px; }
.sp-hm-h3 em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted, #a3a3ad); padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.sp-hm-note { margin: -4px 0 10px; font-size: 12.5px; color: var(--faint, #797983); }
.sp-hm-line { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 0; font-size: 12.5px; color: var(--muted, #a3a3ad); }
.sp-hm-line svg { flex: none; margin-top: 1px; color: #4ade80; }
.sp-hm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-hm-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 12px; }
.sp-hm-row-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sp-hm-row-t a { color: #f2f2f4; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-hm-row-t span { font-size: 12.5px; color: var(--muted, #a3a3ad); }
.sp-hm-wait { height: 160px; }
@media (max-width: 620px) {
  .sp-hm-tiles { grid-template-columns: 1fr 1fr; }
  .sp-hm-tiles > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .sp-hm-tiles > div:nth-child(n+3) { border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
  .sp-hm-tiles b { font-size: 19px; }
}
.sp-j4j-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; margin: 0 0 16px; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-j4j-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 14px; border-left: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.sp-j4j-stat:first-child { padding-left: 0; border-left: 0; }
.sp-j4j-stat-h { font-size: 12px; color: var(--faint, #797983); }
.sp-j4j-stat-r { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted, #a3a3ad); }
.sp-j4j-stat-r b { color: #f2f2f4; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) { .sp-j4j-stat { padding: 8px 8px; } .sp-j4j-stat-r { gap: 4px; font-size: 12px; } }
.sp-j4j-line { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border: 1px solid rgba(74, 222, 128, .3); border-radius: 12px; background: rgba(74, 222, 128, .05); color: #a7f3c4; font-size: 13px; line-height: 1.45; }
.sp-j4j-line svg { flex: none; margin-top: 2px; }
.sp-j4j-line.off { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .05); color: #fcd9a0; }
/* the selling settings' switches one under another; «Показывать «Для бизнеса» всем» carries a hint (2026-11-21) */
.sp-aset > .sp-switch { display: flex; align-items: flex-start; max-width: 760px; }
.sp-aset > .sp-switch i { margin-top: 1px; }
.sp-sw-hint { display: block; font-style: normal; font-size: 12.5px; line-height: 1.45; color: #9a9aa5; margin-top: 3px; }
