@charset "UTF-8";
/* StrikeArena.ru — собрано из assets/css/sa/*.css */

/* === BASE === */
/* StrikeArena.ru — воссоздание vBulletin 3.x / портал ~2012, Tahoma 11px */

html {
    overflow-y: scroll;
}

body.sa-body {
    margin: 0;
    padding: 0;
    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #000;
    background: #EAEAEA;
    line-height: 1.4;
}

.sa-skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    color: #000;
    padding: 4px 8px;
    z-index: 99999;
}

.sa-skip:focus {
    left: 4px;
    top: 4px;
}

a {
    color: #555555;
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: none;
}

a:visited {
    color: #666666;
    font-weight: 400;
}


/* === LAYOUT === */
/* Боковые колонки: тёмно-серый текст и ссылки, как на портале vB ~2012 */
.sa-col-left,
.sa-col-right {
    font-size: 12pt;
    color: #333333;
}

.sa-col-left a,
.sa-col-right a {
    color: #333333;
}

.sa-col-left a:hover,
.sa-col-right a:hover {
    color: #0000CC;
}

/* Ссылки серверов / Mix — синие, как в мониторинге оригинала */
.sa-col-right a.sa-mon-srv {
    color: #0000CC;
    font-weight: bold;
}

.sa-col-right a.sa-mon-srv:hover {
    color: #0000CC;
}

/* «Кто онлайн»: цвета групп в обоих сайдбарах */
.sa-col-left .sa-usercloud a.sa-g-user,
.sa-col-left .sa-usercloud a.sa-g-srv,
.sa-col-left .sa-usercloud a.sa-g-mansrv,
.sa-col-left .sa-usercloud a.sa-g-adminportal,
.sa-col-left .sa-usercloud a.sa-g-mod,
.sa-col-left .sa-usercloud a.sa-g-banned,
.sa-col-right .sa-usercloud a.sa-g-user,
.sa-col-right .sa-usercloud a.sa-g-srv,
.sa-col-right .sa-usercloud a.sa-g-mansrv,
.sa-col-right .sa-usercloud a.sa-g-adminportal,
.sa-col-right .sa-usercloud a.sa-g-mod,
.sa-col-right .sa-usercloud a.sa-g-banned {
    font-weight: inherit;
}

.sa-col-left .sa-usercloud a.sa-g-user,
.sa-col-right .sa-usercloud a.sa-g-user {
    color: #000000;
}

.sa-col-left .sa-usercloud a.sa-g-srv,
.sa-col-right .sa-usercloud a.sa-g-srv {
    color: #0632a6;
}

.sa-col-left .sa-usercloud a.sa-g-mansrv,
.sa-col-right .sa-usercloud a.sa-g-mansrv {
    color: #008000;
    font-weight: bold;
}

.sa-col-left .sa-usercloud a.sa-g-adminportal,
.sa-col-right .sa-usercloud a.sa-g-adminportal {
    color: #660066;
    font-weight: bold;
}

.sa-col-left .sa-usercloud a.sa-g-mod,
.sa-col-right .sa-usercloud a.sa-g-mod {
    color: #ff4500;
    font-weight: bold;
}

.sa-col-left .sa-usercloud a.sa-g-banned,
.sa-col-right .sa-usercloud a.sa-g-banned {
    color: #888888;
    text-decoration: line-through;
    font-weight: normal;
}

.sa-online-block .sa-usercloud a {
    font-size: 15px;
}

.sa-page-bg {
    background: #EAEAEA;
    min-height: 100vh;
    padding-bottom: 16px;
}

/* Широкий портал почти на весь экран (как раньше); сайдбары по-прежнему фикс. 188px */
.sa-fixed {
    width: calc(100vw - 24px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

/* Шапка совпадает по ширине с .sa-container */
.sa-headerimg {
    position: relative;
    width: calc(100vw - 24px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    box-sizing: border-box;
    border-bottom: 1px solid #061018;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.sa-headerimg__img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

.sa-headerimg__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #0f2f5c;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.sa-headerimg--has-outer {
    height: auto;
    min-height: 0;
}

.sa-headerimg__sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(120, 190, 255, 0.22), transparent 52%),
        radial-gradient(ellipse 70% 50% at 20% 100%, rgba(30, 80, 140, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 100%, rgba(20, 60, 120, 0.3), transparent 55%),
        linear-gradient(180deg, #2a5a9a 0%, #1a4480 18%, #0f2f5c 45%, #0a1f3d 72%, #050f1f 100%);
}

.sa-headerimg__sky::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(1px 1px at 10% 20%, #fff, transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 72% 40%, #fff, transparent),
        radial-gradient(1px 1px at 88% 15%, rgba(255, 255, 255, 0.7), transparent);
    background-size: 100% 100%;
}

.sa-headerimg__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 12px 24px;
}

.sa-headerimg__logolink {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.sa-headerimg__logolink:hover {
    text-decoration: none;
    opacity: 0.92;
}

.sa-headerimg__logo {
    display: block;
    max-width: 100%;
    width: min(100%, 720px);
    height: auto;
    max-height: 240px;
    margin: 0 auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.sa-logometal {
    display: inline-block;
    text-decoration: none;
    line-height: 1.05;
}

.sa-logometal:hover {
    text-decoration: none;
}

.sa-logometal__t {
    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: 3px;
    color: #fff;
    text-shadow:
        0 0 28px rgba(140, 200, 255, 0.45),
        0 2px 0 rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.sa-logometal__ru {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: bold;
    color: #d4eaff;
    text-shadow: 0 0 18px rgba(120, 180, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sa-headerimg__slogan {
    margin: 12px 0 0;
    font-size: 12px;
    color: #e8f0fa;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sa-headerimg__games {
    margin: 10px 0 0;
    font-size: 11px;
    color: #b8cce8;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Белый контейнер под шапкой */
.sa-container {
    background: #fff;
    border: 1px solid #B7B7B7;
    padding: 0;
    margin-top: 0;
}

/* Строка: описание портала + мини-логин */
.sa-layout-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sa-col-left {
    width: 188px;
    min-width: 188px;
    max-width: 188px;
    vertical-align: top;
    padding: 6px 7px 12px 8px;
    border-right: 1px solid #d0d0d0;
    background: #f0f1f3;
}

.sa-col-main {
    width: auto;
    vertical-align: top;
    padding: 8px 10px 14px;
    background: #ffffff;
}

.sa-col-right {
    width: 188px;
    min-width: 188px;
    max-width: 188px;
    vertical-align: top;
    padding: 6px 8px 12px 7px;
    border-left: 1px solid #d0d0d0;
    background: #f0f1f3;
}

.sa-footer-pay {
    margin-top: 8px;
}

.sa-footer-pay__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 8px;
    background: #ddd;
    border: 1px solid #bbb;
    font-size: 10px;
}

.sa-footer-note {
    text-align: center;
    font-size: 10px;
    color: #666;
    margin: 8px 0 0;
}

.sa-footer-theme-row {
    margin-top: 6px;
}

.sa-footer-theme {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    margin: 0;
    padding: 6px 8px;
    font-size: 11px;
    color: #444;
}

.sa-footer-theme__label {
    color: #555;
}

.sa-footer-theme__opt {
    font: inherit;
    font-weight: 700;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: #1a4d8c;
    cursor: pointer;
    text-decoration: underline;
}

.sa-footer-theme__opt:hover {
    color: #0d3a6b;
}

.sa-footer-theme__opt.is-on {
    text-decoration: none;
    color: #222;
    cursor: default;
    font-weight: 700;
}

.sa-footer-theme__sep {
    color: #888;
    user-select: none;
}

/* ========== ТЕМА (showthread) ========== */
/* ===== 2026 layout refresh ===== */
.sa-toolbar__portal { font-size: 15px; font-weight: normal; }
.sa-toolbar-login { gap: 10px 11px; }
.sa-toolbar-login__label { font-size: 15px; }
.sa-toolbar-login__input { font-size: 15px; line-height: 1.2; height: 32px; padding: 5px 8px; width: 144px; }
.sa-toolbar-login__remember { font-size: 15px; }
.sa-toolbar-login__btn { font-size: 15px; height: 32px; line-height: 32px; padding: 0 12px; box-sizing: border-box; }
.sa-col-left, .sa-col-right { width: 206px; min-width: 206px; max-width: 206px; font-size: 13pt; }
.sa-input-vb { font-size: 14pt; padding: 4px; }
.sa-btn-vb { font-size: 15px; padding: 6px 18px; min-height: 36px; box-sizing: border-box; }
.sa-mainmenu { margin: 0; padding: 0 0 0 10px; list-style: none; }
.sa-mainmenu .leaf {
  position: relative;
  padding-left: 16px;
  margin: 2px 0;
  /* vb/navi.css тоже рисует «пулю» через background для li.leaf — убираем, иначе будет двойная иконка */
  background: none !important;
  list-style: none !important;
}
.sa-mainmenu .leaf::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 30% 20%, #fff8d0 0, #f2c04a 40%, #b37a16 100%); box-shadow: 0 0 4px rgba(0, 0, 0, 0.4); }
.sa-mainmenu__label { color: #222; font-weight: 700; }
.sa-mainmenu .leaf--sub { margin-left: 12px; }
.sa-mainmenu .leaf--sub::before { background: radial-gradient(circle at 30% 20%, #e9e9e9 0, #a5a5a5 45%, #707070 100%); }
.sa-mainmenu .leaf--social::before {
  width: 11px;
  height: 11px;
  border-radius: 0;
  background: center/11px 11px no-repeat;
  box-shadow: none;
}
.sa-mainmenu .leaf--tg::before { background-image: url('../img/icons/menu-social-tg.svg'); }
.sa-mainmenu .leaf--max::before { background-image: url('../img/icons/menu-social-max.svg'); }
.sa-mainmenu .leaf--vk::before { background-image: url('../img/icons/menu-social-vk.svg'); }
.sa-mainmenu .leaf--discord::before { background-image: url('../img/icons/menu-social-discord.svg'); }
.sa-mainmenu .leaf--steam::before { background-image: url('../img/icons/menu-social-steam.svg'); }
.sa-login-side { display: flex; flex-direction: column; gap: 6px; }
.sa-login-side__row { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.sa-login-side__row span { width: 72px; margin-bottom: 0; font-size: 12px; }
.sa-th--topic { width: 40%; }
.sa-th--auth { width: 12%; }
.sa-th--dt { width: 20%; }
.sa-th--forum { width: 16%; }
.sa-td-ico img { display: inline-block; vertical-align: middle; }
.sa-mixbox__icon { width: 24px; height: 24px; background: var(--sa-mix-icon) center/20px 20px no-repeat; border: 0; }
.sa-footer-menu { font-size: 10px; text-align: center; }
.sa-footer-menu a { color: #555; }
.sa-col-left .sa-tcat,
.sa-col-right .sa-tcat { font-size: 15px; }
.sa-col-left .sa-navblock,
.sa-col-right .sa-alt1 { font-size: 15px; }
.sa-col-left .sa-online-stats,
.sa-col-left .sa-usercloud,
.sa-col-right .sa-mon-row,
.sa-col-right .sa-mon-meta { font-size: 15px; }
.sa-col-right .sa-mon-h { font-size: 15px; }
.sa-tcat { font-size: 15px; }

/* Сайдбары: принудительно крупнее, чтобы не перебивалось .sa-small */
#sidebar-left .sa-small,
#sidebar-right .sa-small,
#sidebar-left .sa-login-side,
#sidebar-right .sa-monitor-vb,
#sidebar-left .sa-login-side__chk,
#sidebar-left .sa-login-side__row span,
#sidebar-left .sa-navblock a,
#sidebar-right .sa-mon-srv,
#sidebar-right .sa-mon-meta,
#sidebar-right .sa-mon-row {
    font-size: 15px !important;
}

#sidebar-left .sa-input-vb,
#sidebar-right .sa-input-vb {
    font-size: 15px !important;
    height: 34px;
    padding: 5px 8px;
}

#sidebar-left .sa-btn-vb,
#sidebar-right .sa-btn-vb {
    font-size: 15px !important;
    min-height: 34px;
}

.sa-block-gap {
    height: 10px;
}

.sa-mobile-only {
    display: none;
}

/* Десктоп: короткий сайдбар — sticky top; длинный — sticky bottom (классы выставляет sa.js) */
@media (min-width: 1021px) {
    .sa-sidebar-sticky.sa-sidebar-sticky--mode-top {
        position: sticky;
        top: 12px;
        bottom: auto;
    }
    .sa-sidebar-sticky.sa-sidebar-sticky--mode-bottom {
        position: sticky;
        top: auto;
        bottom: 12px;
    }
    .sa-sidebar-sticky:not(.sa-sidebar-sticky--mode-top):not(.sa-sidebar-sticky--mode-bottom) {
        position: sticky;
        bottom: 12px;
    }
}


/* === NAV === */
.sa-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid #C6C6C6;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
}

.sa-toolbar__portal {
    font-size: 15px;
    color: #333;
}

.sa-toolbar-login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0;
}

.sa-toolbar-login__label {
    font-size: 15px;
    color: #444;
}

.sa-toolbar-login__nick {
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
}

.sa-toolbar-login__nick:hover {
    text-decoration: underline;
}

.sa-toolbar-login__sep {
    color: #888;
    user-select: none;
    margin: 0 2px;
}

.sa-toolbar-login__btn--logout {
    margin-left: 10px;
}

.sa-toolbar-login__input {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    padding: 5px 8px;
    border: 1px solid #999;
    width: 144px;
    height: 32px;
    box-sizing: border-box;
}

.sa-toolbar-login__remember {
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}

.sa-toolbar-login__btn {
    font-family: Tahoma, sans-serif;
    font-size: 15px;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Logout button in toolbar should match .sa-btn-vb (sidebar/buttons) */
.sa-toolbar-login__btn.sa-btn-vb,
.sa-toolbar-login__btn--logout {
    height: auto;
    line-height: normal;
    padding: 6px 18px;
    min-height: 36px;
}

@media (max-width: 760px) {
    .sa-toolbar-login__btn--logout {
        margin-left: 0;
    }
}

.sa-topnav-wide {
    border-top: 1px solid #b7b7b7;
    border-bottom: 1px solid #b7b7b7;
    background: #ececec;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
}

.sa-topnav-wide a {
    color: #0000cc;
    text-decoration: none;
}

.sa-topnav-wide a:hover {
    text-decoration: underline;
}

.sa-topnav-fullwrap {
    width: calc(100vw - 24px);
    max-width: 100%;
    margin: 0 auto 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.sa-topnav-fullwrap .sa-topnav-wide.sa-topnav-wide--full {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.sa-topnav-wide.sa-topnav-wide--full {
    background: #111111;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.sa-topnav-wide.sa-topnav-wide--full a,
.sa-topnav-wide.sa-topnav-wide--full a:visited {
    color: #f0f0f0;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.25;
    padding: 9px 6px;
    border-right: 1px solid #2e2e2e;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
}

.sa-topnav-wide.sa-topnav-wide--full a:last-child {
    border-right: none;
}

.sa-topnav-wide.sa-topnav-wide--full a:hover {
    color: #ffffff;
    background: #2b2b2b;
    text-decoration: none;
}

/* Три колонки: узкие сайдбары ~188px, центр белый */

/* === SIDEBAR === */
    margin: 0 0 8px;
}

.sa-usercloud {
    line-height: 1.55;
    font-size: 11px;
}

.sa-comma {
    color: #333333;
}

.sa-usercloud__more {
    color: #666;
}

/* Desktop: after login, hide left sidebar "Профиль" block (keep mobile behavior) */
@media (min-width: 761px) {
    body.sa-auth #sidebar-left .sa-side-profile-block {
        display: none;
    }
}

.sa-sidebar-poll__option {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin: 4px 0;
    cursor: pointer;
}

.sa-sidebar-poll__num {
    flex: 0 0 auto;
    margin-right: 10px;
}

.sa-sidebar-poll__label {
    flex: 1 1 auto;
    min-width: 0;
}

.sa-sidebar-poll__pct {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
}

/* Группы пользователей (форумные) */
.sa-g-user {
    color: #000 !important;
    font-weight: normal;
}

.sa-g-srv {
    color: #0632a6 !important;
    font-weight: normal;
}

.sa-g-mansrv {
    color: #008000 !important;
    font-weight: bold;
}

.sa-g-adminportal {
    color: #660066 !important;
    font-weight: bold;
}

.sa-g-mod {
    color: #FF4500 !important;
    font-weight: bold;
}

.sa-g-banned {
    color: #888 !important;
    text-decoration: line-through;
    font-weight: normal;
}

/* Центр: промо MIX */
.sa-promo {
    background: #000;
    border: 1px solid #333;
    margin-bottom: 10px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(ellipse at 30% 50%, rgba(180, 0, 0, 0.35), transparent 55%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.08), transparent 45%),
        linear-gradient(180deg, #1a0505 0%, #000 100%);
}

.sa-promo__inner {
    text-align: center;
    padding: 12px;
}

.sa-promo__logo {
    display: block;
    font-family: Impact, Arial Black, sans-serif;
    font-size: 26px;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.5), 2px 2px 0 #000;
}

.sa-promo__mix {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #ff4444;
    margin-top: 4px;
    letter-spacing: 3px;
}

/* Таблица тем — vB3: первая строка tcat, вторая thead (светлая + чёрный текст) */
.sa-mixbox {
    padding: 8px;
    margin-bottom: 10px;
}

.sa-mixbox__title {
    font-size: 12px;
}

.sa-mixbox__line {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.sa-mixbox__icon {
    width: 32px;
    height: 32px;
    background: #369;
    border: 1px solid #246;
    flex-shrink: 0;
}

.sa-monitor-vb {
    padding: 6px 8px 8px;
    margin-bottom: 10px;
}

.sa-mon-h {
    font-weight: bold;
    font-size: 11px;
    color: #2a2a2a;
    margin: 8px 0 4px;
    border-bottom: 1px solid #c8c8c8;
    padding-bottom: 2px;
}

.sa-mon-h:first-child {
    margin-top: 0;
}

.sa-mon-row {
    font-size: 11px;
    color: #333333;
    padding: 3px 0 3px 2px;
    display: grid;
    grid-template-columns: 10px 1fr;
    grid-template-areas:
        "dot name"
        ". meta";
    align-items: start;
    column-gap: 6px;
    line-height: 1.35;
}

.sa-mon-row .sa-dot {
    grid-area: dot;
    margin-top: 3px;
}

.sa-mon-row .sa-mon-srv {
    grid-area: name;
    font-size: 12px !important;
}

.sa-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.st-ok {
    background: #3a3;
}

.st-warn {
    background: #c90;
}

.st-off {
    background: #999;
}

.sa-mon-meta {
    grid-area: meta;
    margin-left: 0;
    margin-top: 1px;
    color: #444444;
    font-size: 10px !important;
    text-align: left;
    white-space: normal;
}

.sa-monitor-foot {
    margin: 8px 0 0;
}

/* Карточка сервера: квадрат, фон без blur, лёгкая подложка 25% */
.sa-srv-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: 10px 10px 12px;
    margin: 0 0 10px;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    background-color: #e8e8e8;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sa-srv-card:last-child {
    margin-bottom: 2px;
}

.sa-srv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    z-index: 0;
    pointer-events: none;
}

.sa-srv-card > * {
    position: relative;
    z-index: 1;
}

/* Скрыто: старый заголовок/теги/карта (разметка сохранена); сверху показывается .sa-srv-card__caption */
.sa-srv-card .sa-srv-title,
.sa-srv-card .sa-srv-clouds {
    display: none !important;
}

.sa-srv-card__caption {
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 0 0 6px;
    max-width: 100%;
}

.sa-srv-card__caption-text {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sa-srv-card__foot {
    margin-top: auto;
    width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.sa-srv-card--csgo {
    background-image: url('../img/monitoring/CSGO.webp');
}

.sa-srv-card--cs2 {
    background-image: url('../img/monitoring/CS2.webp');
}

.sa-srv-card--mc {
    background-image: url('../img/monitoring/MINECRAFT.webp');
}

.sa-srv-card--cs16 {
    background-image: url('../img/monitoring/CS16.webp');
}

.sa-srv-card--tf2 {
    background-image: url('../img/monitoring/CSGO.webp');
}

.sa-srv-card--css {
    background-image: url('../img/monitoring/CS2.webp');
}

.sa-srv-card--generic {
    background-image: linear-gradient(145deg, #2a2a35 0%, #1a1a22 45%, #3a3a48 100%);
}

.sa-srv-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 0 0 8px;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* Полноразмерная кнопка (модалка и др. вне карточки) */
.sa-srv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    border: 1px solid #6f6f6f;
    padding: 4px 12px;
    min-height: 34px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    text-shadow: none;
    box-shadow: none;
}

.sa-srv-card .sa-srv-actions .sa-srv-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 0;
    min-height: 44px;
    border-radius: 4px;
    font-size: 0;
    line-height: 0;
    box-sizing: border-box;
}

.sa-srv-btn__icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.sa-srv-btn--download {
    background: #0a0a0a;
    color: #fff !important;
    border-color: #4f4f4f;
}

.sa-srv-card .sa-srv-actions .sa-srv-btn--download {
    background: rgba(10, 10, 10, 0.55);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35);
}

.sa-srv-card .sa-srv-actions .sa-srv-btn--download .sa-srv-btn__icon {
    color: #ffffff;
}

.sa-srv-btn--play {
    background: #1f9b2f;
    color: #fff !important;
    border-color: #2b7d33;
}

.sa-srv-card .sa-srv-actions .sa-srv-btn--play {
    background: rgba(20, 85, 38, 0.78);
    color: #e8ffe8 !important;
    border-color: rgba(120, 255, 160, 0.55);
}

.sa-srv-card .sa-srv-actions .sa-srv-btn--play .sa-srv-btn__icon {
    color: #b8ffc8;
    opacity: 1;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 6px rgba(100, 255, 140, 0.35));
}

.sa-srv-btn__play {
    margin-right: 6px;
    font-size: 11px;
}

.sa-srv-fillbar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 0;
}

.sa-srv-fillbar__track {
    flex: 1 1 auto;
    min-width: 0;
    height: 3px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.sa-srv-fillbar__fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #5cb85c, #9fdf9f);
    min-width: 0;
    transition: width 0.35s ease;
}

.sa-srv-fillbar__count {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.sa-srv-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px !important;
}

.sa-srv-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.js-copy-ip {
    cursor: pointer;
}

.sa-srv-clouds {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}

.sa-srv-cloud {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ececec;
    border: 1px solid #cdcdcd;
    color: #333;
    font-size: 11px;
    line-height: 1.2;
}

#sidebar-left .sa-login-side .sa-btn-vb {
    width: 100%;
}


/* === FORUM === */
/* Заголовки блоков vB (tcat) */
.sa-tcat {
    background: #3b3b3b;
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #2a2a2a;
}

.sa-tcat a {
    color: #fff;
    text-decoration: none;
}

.sa-tcat a:hover {
    text-decoration: underline;
}

.sa-alt1,
.sa-alt2 {
    border: 1px solid #cccccc;
    border-top: none;
}

.sa-alt1 {
    background: #ffffff;
}

.sa-alt2 {
    background: #f3f3f5;
}

.sa-navblock {
    padding: 9px 8px 10px;
    margin-bottom: 10px;
}

.sa-list-plain {
    margin: 0;
    padding-left: 18px;
}

.sa-small {
    font-size: 11px;
}

.sa-muted {
    color: #555555;
}

.sa-login-side__row {
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.sa-login-side__row span {
    width: 52px;
    flex-shrink: 0;
    color: #333333;
    display: block;
    margin-bottom: 5px;
    font-size: 12pt;
}

.sa-input-vb {
    font-size: 12pt;
    padding: 2px;
    border: 1px solid #999;
    width: 100%;
    box-sizing: border-box;
}

.sa-flash {
    margin: 6px 8px 0;
    padding: 6px 8px;
    background: #f8f3d6;
    border: 1px solid #d6cc92;
    color: #473c0d;
    font-size: 11px;
}

.sa-login-side__chk {
    display: block;
    margin: 6px 0;
    font-size: 11px;
    color: #333333;
}

.sa-btn-vb {
    font-size: 15px;
    padding: 6px 18px;
    min-height: 36px;
    margin-top: 4px;
    box-sizing: border-box;
}

.sa-outer-t {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #c0c0c0;
}

.sa-outer-t > tbody > tr:first-child > .sa-tcat {
    border: 1px solid #2a2a2a;
    border-bottom: 1px solid #a8a8a8;
}

.sa-thead-row .sa-th {
    background: #e4e4e4;
    color: #000000;
    font-weight: bold;
    font-size: 15px;
    padding: 4px 6px;
    border: 1px solid #c0c0c0;
    border-top: none;
    vertical-align: middle;
}

.sa-th--ico {
    width: 28px;
    text-align: center;
}

.sa-th--topic {
    width: auto;
}

.sa-th--auth {
    width: 86px;
}

.sa-th--dt {
    width: 128px;
}

.sa-th--n {
    width: 40px;
    text-align: center;
}

.sa-th--forum {
    width: 104px;
}

.sa-outer-t .sa-alt1,
.sa-outer-t .sa-alt2 {
    border: 1px solid #d5d5d5;
    border-top: none;
    font-size: 13px;
    color: #333333;
    padding: 5px 6px;
    vertical-align: top;
}

.sa-outer-t .sa-alt1 {
    background: #ffffff;
}

.sa-outer-t .sa-alt2 {
    background: #f3f3f5;
}

.sa-td-ico {
    text-align: center;
    vertical-align: middle;
    width: 28px;
    color: #888;
}

.sa-td-ico svg {
    display: inline-block;
    vertical-align: middle;
}

.sa-ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #c8c8c8;
    border: 0;
    vertical-align: middle;
}

.sa-ico--new {
    background: #6ca76c;
}

.sa-ico--old {
    background: #c8c8c8;
}

.sa-ico-sticky {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    color: #6d5a48;
}

.sa-ico-sticky__svg {
    display: block;
}

html[data-sa-theme="dark"] .sa-ico-sticky {
    color: #d4b896;
}

.sa-td-topic a {
    font-weight: normal;
}

.sa-td-num {
    text-align: right;
    font-size: 13px;
    padding: 5px 6px;
    color: #333333;
}

.sa-outer-t .sa-small {
    font-size: 12px;
    line-height: 1.4;
    color: #444444;
}

.sa-time {
    color: #666666;
}


/* === NEWS === */
.sa-news-pad {
    padding: 10px 12px;
}

.sa-news-pad--home {
    position: relative;
    padding-right: 126px;
}

.sa-news-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: bold;
}

.sa-news-title a {
    color: #000000;
}

.sa-news-meta {
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 8px;
}

.sa-news-body {
    font-size: 15px;
    line-height: 1.5;
}

.sa-news-head-edit {
    float: right;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: normal;
}

.sa-news-head-edit:hover {
    text-decoration: underline;
}

.sa-news-media-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 4px;
}

.sa-news-media-video {
    display: block;
    width: min(100%, 360px);
    max-width: 360px;
    margin: 8px 0;
    border-radius: 4px;
    background: #000;
}

.sa-news-editor-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

#sidebar-right .sa-navblock > p.sa-small:first-child {
    margin-top: 0;
}

.sa-news-like-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 10px;
}

.sa-news-like-form {
    margin: 0;
}

.sa-news-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #c8c8c8;
    border-radius: 999px;
    background: #ffffff;
    color: #bdbdbd;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
}

.sa-news-like-btn.is-liked {
    color: #e23939;
    border-color: #e23939;
}

.sa-news-like-count {
    font-size: 13px;
    font-weight: 400;
    color: #444;
}

button.sa-news-like-count--btn {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: right;
}

button.sa-news-like-count--btn:hover {
    text-decoration: underline;
}

.sa-news-like-corner {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sa-news-pad .sa-bbcode-align {
    margin: 8px 0;
}

.sa-news-pad .sa-bbcode-align--left {
    text-align: left;
}

.sa-news-pad .sa-bbcode-align--center {
    text-align: center;
}

.sa-news-pad .sa-bbcode-align--right {
    text-align: right;
}

/* Правая колонка mix + мониторинг */

/* === POST === */
.sa-thread-topic-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: bold;
    color: #111;
}

.sa-thread-topic-flags {
    margin: 4px 0 0;
    font-size: 12px;
}

.sa-thread-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #c6c6c6;
}

.sa-thread-header__main {
    flex: 1 1 220px;
    min-width: 0;
}

.sa-thread-header__toolbar {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    /* Вровень с правой границей белой колонки (убираем отступ .sa-col-main справа) */
    margin-right: -10px;
}

.sa-thread-toolbar-form {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

.sa-raffle-block {
    margin: 0 0 14px;
    border: 2px solid #b56824;
    background: linear-gradient(180deg, #fff7ea 0%, #ffeccf 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.sa-raffle-block__header {
    padding: 8px 12px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
    color: #4a2b0f;
    background: #ffd18a;
    border-bottom: 1px solid #c27f34;
}

.sa-raffle-block__body {
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.45;
    color: #1c1c1c;
}

.sa-raffle-block__body .sa-small {
    font-size: 15px;
}

.sa-raffle-block__invite {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    color: #2a2a2a;
}

/* Форумные кнопки: внутри <img class="sa-forum-imgbtn__pic" width="200"> — высота по файлу */
.sa-forum-imgbtn,
.sa-forum-imgbtn--btn {
    display: inline-block;
    box-sizing: border-box;
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    background-color: transparent;
    line-height: 0;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.sa-forum-imgbtn__pic {
    display: block;
    width: 125px;
    max-width: 100%;
    height: auto;
}

.sa-forum-imgbtn--btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sa-forum-imgbtn--static {
    cursor: default;
    pointer-events: none;
}

.sa-forum-imgbtn--dim {
    opacity: 0.5;
    filter: grayscale(0.2);
}

.sa-quick-reply-actions {
    text-align: right;
    margin: 8px 0 0;
}

.sa-post-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    border: 1px solid #C6C6C6;
}

.sa-post-table td {
    vertical-align: top;
}

.sa-post-usercell {
    width: 10%;
    min-width: 140px;
    max-width: 240px;
    background: #eaeaea;
    border-right: 1px solid #c6c6c6;
    padding: 8px;
    box-sizing: border-box;
}

.sa-post-avatar {
    width: 200px;
    max-width: 100%;
    height: auto;
    border: 1px solid #c7c7c7;
    background: #f4f4f4;
    margin: 20px auto;
    box-sizing: border-box;
}

.sa-post-avatar img {
    width: 200px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.sa-profile-box {
    border: 1px solid #d5d5d5;
    background: #fff;
    margin-top: 8px;
}

.sa-profile-row {
    font-size: 12px;
    padding: 5px 6px;
    border-top: 1px dotted #ccc;
    color: #333;
}

.sa-profile-row:first-child {
    border-top: none;
}

.sa-profile-row span {
    color: #555;
}

.sa-post-maincell {
    width: 90%;
    background: #F5F5F5;
    padding: 0;
    box-sizing: border-box;
}

.sa-post-head {
    background: #D9D9D9;
    border-bottom: 1px solid #C6C6C6;
    padding: 4px 8px;
    font-size: 10px;
    color: #333;
}

.sa-post-head a {
    font-weight: bold;
}

.sa-post-body {
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.45;
    min-height: 80px;
}

.sa-post-body a.sa-bbcode-mention {
    font-weight: 600;
    text-decoration: none;
}

.sa-post-body a.sa-bbcode-mention:hover {
    text-decoration: underline;
}

.sa-post-body .sa-bbcode-quote {
    margin: 8px 0 10px;
    padding: 8px 10px 10px;
    border: 1px solid #C6C6C6;
    background: #F5F5F5;
    border-left: 3px solid #999;
}

.sa-post-body .sa-quote-head {
    font-size: 10px;
    color: #555;
    margin-bottom: 6px;
    font-weight: bold;
}

.sa-post-body .sa-quote-body {
    font-size: 15px;
    color: #000;
}

.sa-post-body .sa-bbcode-photo {
    margin: 10px 0;
}

.sa-post-body .sa-bbcode-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sa-post-body .sa-bbcode-video {
    margin: 12px 0;
    max-width: 100%;
}

.sa-post-body .sa-bbcode-video-frame {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    display: block;
}

.sa-post-body .sa-bbcode-video-el {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
}

/* Вертикальное видео (файл): не растягивать на всю ширину поста — оверлей Play совпадает с кадром */
.sa-post-body .sa-bbcode-video--file {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    line-height: 0;
}

.sa-post-body .sa-bbcode-video--file .sa-bbcode-video-el {
    width: auto;
    max-width: 100%;
    max-height: min(90vh, 920px);
    height: auto;
}

.sa-post-body .sa-bbcode-video--file .sa-video-wrap {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    vertical-align: top;
}

/* Play overlay centered on video */
.sa-video-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    line-height: 0;
}

.sa-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sa-video-overlay__icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    pointer-events: auto; /* click */
    user-select: none;
}

.sa-post-body .sa-bbcode-align {
    margin: 8px 0;
}

.sa-post-body .sa-bbcode-align--left {
    text-align: left;
}

.sa-post-body .sa-bbcode-align--center {
    text-align: center;
}

.sa-post-body .sa-bbcode-align--right {
    text-align: right;
}

.sa-post-body .sa-bbcode-quote .sa-bbcode-quote {
    margin-top: 8px;
    background: #EDEDED;
}

.sa-move-topic {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sa-post-sig {
    border-top: 1px dashed #ccc;
    margin: 12px 0 0;
    padding: 20px;
    font-size: 12px;
    color: #666;
}

.sa-post-thanks {
    padding: 20px;
    font-size: 14px;
    line-height: 1.45;
    box-sizing: border-box;
}

.sa-post-foot {
    background: #ffffff;
    border-top: 1px solid #C6C6C6;
    padding: 8px 10px;
    font-size: 10px;
    text-align: right;
}

.sa-post-foot__edited {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-size: 10px;
    color: #555;
}

.sa-post-foot__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sa-post-foot__form {
    display: inline-block;
    margin: 0;
}

.sa-post-foot__muted {
    width: 200px;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.sa-username {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: center;
}

.sa-username a {
    display: inline-block;
}

.sa-usertitle {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.sa-user-stat {
    font-size: 10px;
    margin: 2px 0;
    color: #333;
}

.sa-user-stat strong {
    color: #000;
}

/* Репутация: зелёный + / серый 0 / красный − */
.sa-repbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.sa-rep-inline {
    font-weight: bold;
}

.sa-rep-inline.sa-rep--zero {
    color: #000;
}

.sa-rep-inline.sa-rep--neg {
    color: #b30000;
}

.sa-rep-inline.sa-rep--pos {
    color: #1f5f1f;
}

button.sa-rep-inline--btn {
    font: inherit;
    font-weight: bold;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: underline dotted transparent;
}

button.sa-rep-inline--btn:hover {
    text-decoration-color: currentColor;
    text-decoration-style: dotted;
}

.sa-rep {
    display: inline-block;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 11px;
    border: 1px solid;
    border-radius: 2px;
}

.sa-rep--pos {
    color: #e8ffe8;
    border-color: #0d300d;
}

.sa-rep--zero {
    color: #000;
    border-color: #999;
}

.sa-rep--neg {
    color: #b30000;
    border-color: #b30000;
}

.sa-rep-ctrl {
    display: inline-flex;
    gap: 2px;
    margin-left: 4px;
}

.sa-rep-btn {
    font-family: Tahoma, sans-serif;
    font-size: 10px;
    padding: 0 5px;
    cursor: pointer;
    border: 1px solid #666;
    background: #ddd;
    line-height: 1.4;
}

.sa-rep-btn:hover {
    background: #eee;
}

.sa-rep-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sa-offline,
.sa-online {
    font-size: 10px;
    margin-top: 6px;
}

.sa-online {
    color: #060;
    font-weight: bold;
}

.sa-offline {
    color: #666;
}

.sa-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
}

/* Пагинация в теме: над формой ответа, вправо, крупнее шрифт */
.sa-thread-pagination {
    justify-content: flex-end;
    font-size: 16px;
    margin-top: 14px;
    margin-bottom: 2px;
}

.sa-pagination__gap {
    color: #666;
    user-select: none;
    padding: 0 2px;
}

/* ЛС: тот же каркас, что у поста; дата под текстом, без шапки #N */
.sa-pm-message {
    margin-bottom: 0;
}

.sa-pm-message .sa-post-avatar {
    margin-top: 10px;
    margin-bottom: 10px;
}

.sa-pm-meta {
    margin-top: 6px;
    color: #555;
}

.sa-pm-post-date {
    border-top: 1px solid #c6c6c6;
    background: #e8e8e8;
    padding: 4px 8px;
    font-size: 10px;
    color: #444;
}

/* Список диалогов ЛС: партнёр слева, превью по центру, дата справа */
.sa-pm-inbox-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

a.sa-pm-inbox-row:hover {
    background: #f0f0f0;
}

.sa-pm-inbox-row__partner {
    flex: 0 0 200px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.sa-pm-inbox-row__name {
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.sa-pm-inbox-row__status {
    font-size: 10px;
    color: #555;
    line-height: 1.2;
    max-width: 100%;
}

.sa-pm-inbox-row__avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #c8c8c8;
    display: block;
}

.sa-pm-inbox-row__preview {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #222;
    padding-top: 4px;
}

.sa-pm-inbox-row__date {
    flex: 0 0 auto;
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    padding-top: 4px;
    align-self: flex-start;
}

.sa-pm-inbox-row--unread .sa-pm-inbox-row__preview {
    font-weight: 700;
}

.sa-pm-compose-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 6em;
}

@media (max-width: 640px) {
    .sa-pm-inbox-row {
        flex-wrap: wrap;
    }

    .sa-pm-inbox-row__partner {
        flex: 1 1 100%;
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        gap: 10px;
    }

    .sa-pm-inbox-row__date {
        width: 100%;
        padding-top: 0;
    }
}


/* === USER === */
/* Награды под постом */
.sa-awards {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #ccc;
}

.sa-awards--side {
    margin-top: 10px;
    padding: 6px;
    border: 1px solid #ccc;
    background: #fff;
}

.sa-awards__count {
    margin-top: 6px;
    font-size: 11px;
}

.sa-status-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("../img/icons/user-offline.svg") center/12px 12px no-repeat;
    vertical-align: middle;
}

.sa-status-icon--on {
    background-image: url("../img/icons/user-online.svg");
}

.sa-edited-mark {
    margin-left: 8px;
    font-size: 10px;
    color: #666;
}

.sa-thread-actions-top {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 6px;
}


/* === COMPONENTS === */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 4200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.sa-csgo-modal[hidden] {
    display: none !important;
}

.sa-csgo-modal__box {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #a9a9a9;
    border-radius: 8px;
    padding: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sa-csgo-modal__close {
    position: absolute;
    right: 8px;
    top: 6px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.sa-launch-quote {
    margin: 0;
    padding: 10px;
    border: 1px dashed #9a9a9a;
    background: #f8f8f8;
}

.sa-launch-quote code {
    font-weight: 400;
    font-size: 22px;
    display: block;
    cursor: pointer;
    text-align: center;
}

.sa-copied-toast {
    position: fixed;
    right: 18px;
    bottom: 72px;
    z-index: 4300;
    background: #1ea83a;
    color: #fff;
    padding: 8px 11px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}

.sa-copied-toast[hidden] {
    display: none !important;
}

.sa-copied-toast__check {
    font-size: 13px;
    line-height: 1;
}

.sa-copy-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 4000;
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    max-width: 320px;
    font-size: 12px;
}

/* Футер оплаты */
.sa-bbcode-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-bottom: 8px;
}

.sa-bbcode-tb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #b8b8b8;
    background: linear-gradient(180deg, #fafafa 0%, #e4e4e4 100%);
    border-radius: 3px;
    cursor: pointer;
    color: #222;
    vertical-align: middle;
}

.sa-smiley-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #b8b8b8;
    background: linear-gradient(180deg, #fafafa 0%, #e4e4e4 100%);
    border-radius: 3px;
    cursor: pointer;
    color: #222;
    vertical-align: middle;
    font-size: 18px;
    line-height: 1;
}

.sa-bbcode-tb:hover {
    background: linear-gradient(180deg, #fff 0%, #ececec 100%);
}

.sa-smiley-toggle:hover {
    background: linear-gradient(180deg, #fff 0%, #ececec 100%);
}

/* Та же причина, что у палитры/размера: любой author display:… на списке перебьёт [hidden]. */
.sa-smiley-list[hidden] {
    display: none !important;
}

.sa-bbcode-tb svg {
    display: block;
}

.sa-bbcode-spoiler {
    margin: 10px 0;
    border: 1px solid #888;
    background: #bdbdbd;
}

.sa-bbcode-spoiler__title {
    padding: 10px 12px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    font-weight: 700;
}

.sa-bbcode-spoiler__body {
    padding: 20px;
    border-top: 1px dashed #7f7f7f;
}

.sa-bbcode-hide {
    margin: 10px 0;
    border: 1px solid #888;
    border-radius: 3px;
    background: #e8e8e8;
}

.sa-bbcode-hide--locked {
    padding: 10px 12px;
}

.sa-bbcode-hide__lead {
    font-weight: 700;
    margin-bottom: 6px;
}

.sa-bbcode-hide__req {
    margin: 0;
    padding-left: 1.25em;
}

.sa-bbcode-hide__req--inline {
    font-size: 11px;
    line-height: 1.35;
    color: #555;
    padding: 3px 0 0 3px;
    list-style: disc;
}

.sa-bbcode-hide--open .sa-bbcode-hide__body {
    padding: 10px 12px 12px;
    border-top: 1px dashed #999;
    background: #f5f5f5;
}

.sa-bbcode-color--red { color: #8b1538; }
.sa-bbcode-color--orange { color: #b85a00; }
.sa-bbcode-color--yellow { color: #8a6d00; }
.sa-bbcode-color--green { color: #1b5e20; }
.sa-bbcode-color--cyan { color: #006064; }
.sa-bbcode-color--blue { color: #0d47a1; }
.sa-bbcode-color--violet { color: #4a148c; }
.sa-bbcode-color--gray { color: #424242; }
.sa-bbcode-color--default { color: #111111; }

.sa-bbcode-size {
    display: inline;
}

.sa-bbcode-size--plus3 { font-size: calc(1em + 3px); }
.sa-bbcode-size--plus2 { font-size: calc(1em + 2px); }
.sa-bbcode-size--plus1 { font-size: calc(1em + 1px); }
.sa-bbcode-size--zero { font-size: 1em; }
.sa-bbcode-size--minus1 { font-size: calc(1em - 1px); }
.sa-bbcode-size--minus2 { font-size: calc(1em - 2px); }
.sa-bbcode-size--minus3 { font-size: calc(1em - 3px); }

.sa-bbcolor-picker {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.sa-bbcolor-list {
    position: absolute;
    z-index: 50;
    left: 0;
    top: 100%;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    max-width: 200px;
}

/* [hidden] иначе не скрывает: display:flex выше перебивает UA-стиль [hidden] (одинаковая специфичность). */
.sa-bbcolor-list[hidden] {
    display: none !important;
}

.sa-bbcolor-swatch {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    font-size: 0;
    color: transparent;
}

.sa-bbcolor-swatch.sa-bbcode-color--red { background: #c62828; }
.sa-bbcolor-swatch.sa-bbcode-color--orange { background: #ef6c00; }
.sa-bbcolor-swatch.sa-bbcode-color--yellow { background: #f9a825; }
.sa-bbcolor-swatch.sa-bbcode-color--green { background: #2e7d32; }
.sa-bbcolor-swatch.sa-bbcode-color--cyan { background: #00838f; }
.sa-bbcolor-swatch.sa-bbcode-color--blue { background: #1565c0; }
.sa-bbcolor-swatch.sa-bbcode-color--violet { background: #6a1b9a; }
.sa-bbcolor-swatch.sa-bbcode-color--gray { background: #757575; }
.sa-bbcolor-swatch.sa-bbcode-color--default {
    background: linear-gradient(135deg, #333 50%, #eee 50%);
}

.sa-bbcolor-swatch:hover {
    outline: 2px solid #333;
}

.sa-bbsize-picker {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.sa-bbsize-list {
    position: absolute;
    z-index: 50;
    left: 0;
    top: 100%;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px;
    min-width: 76px;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sa-bbsize-list[hidden] {
    display: none !important;
}

.sa-bbsize-opt {
    margin: 0;
    padding: 5px 8px;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    background: linear-gradient(180deg, #fafafa 0%, #e8e8e8 100%);
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    color: #222;
}

.sa-bbsize-opt:hover {
    background: linear-gradient(180deg, #fff 0%, #ececec 100%);
}

.sa-news-editor-bar.sa-bbcode-toolbar {
    align-items: center;
}

.sa-rep-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10025;
}

.sa-rep-modal[hidden] {
    display: none !important;
}

.sa-rep-modal__box {
    width: min(440px, calc(100vw - 24px));
    margin: 12vh auto 0;
    background: #fff;
    border: 1px solid #aaa;
    padding: 14px 14px 12px;
    position: relative;
    box-sizing: border-box;
}

.sa-rep-modal__title {
    margin: 0 28px 8px 0;
    font-size: 15px;
}

.sa-rep-modal__hint {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #777;
}

.sa-rep-modal__label {
    margin: 0 0 6px;
    font-size: 13px;
}

.sa-rep-modal__input {
    width: 100%;
    box-sizing: border-box;
}

.sa-rep-modal__comment {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 4.5em;
}

.sa-rep-history-modal__box {
    width: min(440px, calc(100vw - 24px));
}

.sa-rep-history-modal__body {
    max-height: 55vh;
    overflow-y: auto;
    text-align: left;
}

.sa-rep-history__row {
    border-bottom: 1px dotted #ccc;
    padding: 8px 0;
}

.sa-rep-history__row:last-child {
    border-bottom: none;
}

.sa-rep-history__delta--pos {
    color: #1f5f1f;
    font-weight: bold;
}

.sa-rep-history__delta--neg {
    color: #b30000;
    font-weight: bold;
}

.sa-rep-history__comment {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
}

.sa-rep-brackets {
    margin-left: 4px;
    font-weight: bold;
    white-space: nowrap;
}

.sa-rep-bracket-btn {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: bold;
    color: #1a4d8c;
    cursor: pointer;
    text-decoration: underline;
}

.sa-rep-bracket-btn:hover {
    color: #0d3a6b;
}

.sa-report-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10020;
}

.sa-report-modal[hidden] {
    display: none !important;
}

.sa-report-modal__box {
    width: min(420px, calc(100vw - 24px));
    margin: 10vh auto 0;
    background: #fff;
    border: 1px solid #aaa;
    padding: 12px;
    position: relative;
}

.sa-report-close {
    position: absolute;
    right: 8px;
    top: 6px;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.sa-action-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    border: 1px solid #bbb;
    background-color: #efefef;
    text-decoration: none;
    font-size: 11px;
    color: #333;
}

.sa-action-img span {
    line-height: 1;
}

.sa-news-edit-btn {
    width: 264px;
    height: 72px;
}

.sa-action-img--btn {
    cursor: pointer;
    padding: 0;
    background-color: transparent;
}

.sa-awards__title {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.sa-awards__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sa-award {
    position: relative;
    display: inline-block;
}

.sa-award img {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    border: 1px solid #999;
    background: #fff;
}

.sa-award__cap {
    font-size: 9px;
    color: #444;
    max-width: 80px;
    line-height: 1.2;
}

/* Адаптив: узкие экраны */
.sa-cookie-consent {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 16px;
    z-index: 10001;
    background: #f3f3f3;
    border: 1px solid #999;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.sa-cookie-consent[hidden] {
    display: none !important;
}

/* Опрос в теме: строка результата — клик открывает список голосовавших */
.sa-poll-result-row {
    margin: 4px 0;
    padding: 4px 6px;
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    color: inherit;
    background: transparent;
}

.sa-poll-result-row:hover,
.sa-poll-result-row:focus {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.sa-poll-result-row:focus-visible {
    border-color: #7a9dc9;
}

.sa-poll-result-row__inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa-poll-result-row__label {
    min-width: 120px;
    max-width: 42%;
    flex-shrink: 0;
}

.sa-poll-result-row__bar-wrap {
    flex: 1;
    min-width: 40px;
    background: #ddd;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
}

.sa-poll-result-row__bar-fill {
    height: 12px;
    border-radius: 2px;
    background: #7a9dc9;
    min-width: 0;
}

.sa-poll-result-row__pct {
    flex-shrink: 0;
    min-width: 4.5em;
    text-align: right;
}

.sa-poll-voters-modal {
    position: fixed;
    inset: 0;
    z-index: 10021;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 12px 24px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.sa-poll-voters-modal[hidden] {
    display: none !important;
}

.sa-poll-voters-modal__box {
    position: relative;
    width: min(440px, 100%);
    background: #fff;
    border: 1px solid #aaa;
    padding: 12px 14px 14px;
    box-sizing: border-box;
}

.sa-poll-voters-modal__close {
    position: absolute;
    right: 8px;
    top: 6px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.sa-poll-voters-modal__title {
    margin: 0 28px 10px 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
}

.sa-poll-voters-modal__loading {
    margin: 0;
}

.sa-poll-voters-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(52vh, 420px);
    overflow-y: auto;
}

.sa-poll-voters-modal__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 12px;
}

.sa-poll-voters-modal__item:last-child {
    border-bottom: none;
}

.sa-poll-voters-modal__item a {
    font-weight: bold;
    text-decoration: none;
}

.sa-poll-voters-modal__item a:hover {
    text-decoration: underline;
}

.sa-poll-voters-modal__date {
    flex-shrink: 0;
    color: #666;
    font-size: 11px;
    white-space: nowrap;
}

.sa-poll-voters-modal__empty {
    margin: 8px 0 0;
}

/* Модальное окно «Соцсети» */
.sa-social-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.sa-social-modal[hidden] {
    display: none !important;
}

.sa-social-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.sa-social-modal__box {
    position: relative;
    z-index: 1;
    min-width: 260px;
    max-width: 420px;
    width: 100%;
    background: #fff;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.sa-social-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #d0d0d0;
    background: #f2f2f2;
}

.sa-social-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.sa-social-modal__close {
    font: inherit;
    font-size: 22px;
    line-height: 1;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #444;
}

.sa-social-modal__list {
    margin: 0;
    padding: 12px 14px 14px;
    list-style: none;
}

.sa-social-modal__list li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.sa-social-modal__list li:last-child {
    border-bottom: none;
}

.sa-social-modal__list a {
    display: block;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #1a4d8c;
}

.sa-social-modal__list a:hover {
    text-decoration: underline;
}


/* === FORMS === */
/* register.php: одна ячейка colspan=3 без сайдбаров (на мобильном иначе сверху — вход, опрос, мониторинг) */
.sa-layout-table .sa-col-main.sa-col-main--register-solo {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    vertical-align: top;
}

.sa-form-error-general {
    color: #a40000;
    background: #ffecec;
    border: 1px solid #e0a8a8;
    padding: 8px 10px;
    margin-bottom: 12px;
    font-weight: bold;
}

/* register.php: заметное предупреждение о новой базе */
.sa-register-notice {
    margin: 0 0 14px;
    padding: 12px 14px 14px;
    border: 2px solid #c73200;
    border-radius: 4px;
    background: linear-gradient(180deg, #fff8e8 0%, #fff2d6 100%);
    box-shadow: 0 2px 8px rgba(199, 50, 0, 0.12);
}

.sa-register-notice__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: bold;
    color: #8b2500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sa-register-notice__p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #1a1a1a;
}

.sa-register-notice__p:last-child {
    margin-bottom: 0;
}

.sa-reg-field {
    margin-bottom: 2px;
}

.sa-reg-field .sa-field-error {
    color: #a40000;
    display: block;
    margin-top: 4px;
    font-weight: bold;
}

.sa-reg-field .sa-field-error[hidden] {
    display: none;
}

.sa-reg-antibot-title {
    display: inline-block;
    margin: 12px 0 6px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.25;
    color: #1a1a1a;
}

.sa-reg-field__hint {
    display: block;
    margin: 4px 0 6px;
    line-height: 1.45;
}

.sa-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Переключатель «как в iOS»: серый трек, зелёный при включении, круг слева→направо */
.sa-toggle-wrap {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
    vertical-align: middle;
}

.sa-toggle-wrap input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 2;
    cursor: pointer;
}

.sa-toggle-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #c7c7cc;
    border-radius: 31px;
    transition: background 0.22s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.sa-toggle-slider::before {
    content: "";
    position: absolute;
    width: 27px;
    height: 27px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.22s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.08);
}

.sa-toggle-wrap input:checked + .sa-toggle-slider {
    background: #34c759;
}

.sa-toggle-wrap input:checked + .sa-toggle-slider::before {
    transform: translateX(20px);
}

.sa-toggle-wrap input:focus-visible + .sa-toggle-slider {
    outline: 2px solid #5a8fc7;
    outline-offset: 2px;
}

.sa-toggle-wrap input:disabled + .sa-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.sa-toggle-status-label {
    font-size: 15px;
    line-height: 1.3;
    color: #222;
}

.sa-app-role-hint {
    margin: -4px 0 8px;
    font-size: 11px;
    line-height: 1.35;
    color: #000;
}

/* === PROFILE === */
.sa-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}

.sa-social-icons__a {
    display: inline-flex;
    color: #2a4a6b;
    opacity: 0.85;
}

.sa-social-icons__a:hover {
    opacity: 1;
}

.sa-social-icons__img {
    display: block;
}

.sa-profile-tabs {
    margin: 0 0 12px 0;
    font-size: 13px;
}

.sa-profile-tabs a {
    text-decoration: none;
}

.sa-profile-tabs__on {
    font-weight: bold;
    text-decoration: underline !important;
}

.sa-giveaway-log {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}

.sa-giveaway-log th,
.sa-giveaway-log td {
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

.sa-giveaway-log__head {
    background: #e8e8e8;
}

.sa-giveaway-log__gain {
    color: #0d5c0d;
    font-weight: bold;
}

.sa-giveaway-log__loss {
    color: #b00020;
    font-weight: bold;
}

/* Flex на внутреннем блоке: на td с colspan display:flex ломает ширину ячейки в многоколоночной таблице */
.sa-tg-chat-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    width: 100%;
    box-sizing: border-box;
}

.sa-tg-chat-head-title {
    flex: 0 1 auto;
}

.sa-tg-chat-head-meta {
    flex: 1 1 auto;
    margin: 0;
    margin-left: auto;
    min-width: 0;
    text-align: right;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.sa-tg-chat {
    max-height: 250px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.45;
}

.sa-tg-chat__msg {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.sa-tg-chat__msg:last-child {
    border-bottom: none;
}

.sa-tg-chat__head {
    margin-bottom: 4px;
}

.sa-tg-chat__text {
    white-space: pre-wrap;
    word-break: break-word;
}

.sa-tg-chat__text code {
    font-family: Consolas, monospace;
    background: #f4f4f4;
    padding: 0 3px;
}

.sa-tg-chat__media img {
    max-width: 280px;
    height: auto;
    margin-top: 6px;
    border-radius: 4px;
}

.sa-tg-chat__cta-wrap {
    margin: 12px 0 0;
}

.sa-tg-chat__cta {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid #2b95d6;
    background: linear-gradient(180deg, #40b4f2 0%, #2c9fe0 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.sa-tg-chat__cta:hover {
    background: linear-gradient(180deg, #56bef5 0%, #35aae9 100%);
    text-decoration: none;
}

.sa-tg-chat__cta-ico {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.sa-tg-spoiler {
    background: #bbb;
    color: transparent;
    border-radius: 2px;
    padding: 0 2px;
    cursor: pointer;
}

.sa-tg-spoiler:hover {
    color: inherit;
    background: #e0e0e0;
}

/* Страница правил портала */
.sa-rules-page .rules-strikearena {
    max-width: 920px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.55;
    color: #222;
}

.sa-rules-page .rules-strikearena h1 {
    font-size: 22px;
    margin: 0 0 12px;
    line-height: 1.25;
}

.sa-rules-page .rules-strikearena h2 {
    font-size: 17px;
    margin: 22px 0 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}

.sa-rules-page .rules-strikearena h3 {
    font-size: 15px;
    margin: 16px 0 8px;
}

.sa-rules-page .rules-strikearena p {
    margin: 8px 0;
}

.sa-rules-page .rules-strikearena ul,
.sa-rules-page .rules-strikearena ol {
    margin: 8px 0 8px 1.4em;
    padding: 0;
}

.sa-rules-page .rules-strikearena li {
    margin: 4px 0;
}

.sa-rules-page .rules-strikearena small {
    font-size: 12px;
    color: #555;
}

.sa-rules-page .rules-strikearena .rules-strikearena-revision {
    text-align: right;
    font-size: 12px;
    font-weight: 300;
    color: #555;
    margin-top: 2em;
}

/* Шапка страницы: заголовок слева, «Профиль · Настройки · Розыгрыш» справа в той же полосе .sa-tcat */
.sa-profile-headbar {
    padding: 6px 10px;
}

.sa-profile-headbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: wrap;
}

.sa-profile-headbar__title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.35;
}

.sa-profile-headbar__tabs {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    font-size: 15px;
    font-weight: normal;
}

.sa-profile-headbar__tab {
    color: #fff;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 2px;
}

.sa-profile-headbar__tab:hover {
    text-decoration: underline;
    color: #fff;
}

.sa-profile-headbar__tab--on {
    font-weight: bold;
    text-decoration: underline;
}

.sa-profile-headbar__sep {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 6px;
    user-select: none;
}

/* Карточки статистики: значение сверху (тонко, капс), подпись снизу; ряд на всю ширину */
.sa-profile-stats-grid {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
    margin: 0 0 14px;
    box-sizing: border-box;
}

.sa-profile-stat {
    flex: 1 1 0;
    min-width: 0;
    background: #f3f3f5;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    padding: 10px 6px;
    text-align: center;
    box-sizing: border-box;
}

.sa-profile-stat__value {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #111;
    word-break: break-word;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sa-profile-stat__label {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.35;
    color: #555;
}

.sa-profile-compose {
    margin-top: 16px;
    border-top: 1px solid #ccc;
    padding-top: 12px;
}

.sa-profile-compose--edit {
    margin-top: 8px;
    padding-top: 10px;
}

.sa-profile-compose__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.35;
}

.sa-profile-compose textarea.sa-input-vb,
.sa-profile-comment-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 7.5em;
    box-sizing: border-box;
}

.sa-profile-layout__main .sa-profile-compose .sa-bbcode-toolbar[data-for='sa-pc-body'],
.sa-profile-layout__main .sa-profile-compose .sa-bbcode-toolbar[data-for='sa-pc-edit-body'] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Сетка профиля: левая колонка (ник, статус, аватар, гости), справа — статистика, вкладки, контент */
.sa-profile-layout {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    gap: 20px 24px;
    align-items: start;
    margin-bottom: 16px;
}

.sa-profile-layout__side {
    width: 100%;
    max-width: 256px;
}

@media (max-width: 720px) {
    .sa-profile-layout {
        grid-template-columns: 1fr;
    }

    .sa-profile-layout__side {
        max-width: 100%;
    }

    .sa-profile-stats-grid {
        flex-wrap: wrap;
    }

    .sa-profile-stat {
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
    }

    .sa-profile-content-tabs {
        flex-wrap: wrap;
    }

    .sa-profile-ctab {
        flex: 1 1 auto;
        min-width: calc(33.33% - 4px);
    }
}

.sa-profile-layout__nick {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
}

.sa-profile-layout__status {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
}

.sa-profile-layout__avatar {
    display: block;
    width: 256px;
    height: 256px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.sa-profile-layout__main {
    min-width: 0;
}

/* Минимум 14px для «мелкого» текста в основной колонке профиля */
.sa-profile-layout__main .sa-small {
    font-size: 14px !important;
    line-height: 1.45;
}

/* Текст поста на вкладке «Посты»: полный BBCode (цитаты, спойлеры, @mention и т.д.) */
.sa-profile-post-body.sa-post-body {
    font-size: 15px;
    line-height: 1.45;
    color: #111;
    word-break: break-word;
}

.sa-profile-comment__author {
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.sa-profile-layout__stats {
    margin: 0 0 12px;
}

.sa-profile-layout__stats .sa-small {
    margin: 2px 0;
}

.sa-profile-layout__pm .sa-btn-vb {
    margin-top: 0;
}

.sa-profile-guests {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #ccc;
}

.sa-profile-guests__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: bold;
}

.sa-profile-guests__row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 8px;
    min-height: 64px;
}

.sa-profile-guests__row:last-child {
    margin-bottom: 0;
}

.sa-profile-guests__av {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.sa-profile-guests__meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 64px;
    overflow: hidden;
}

.sa-profile-guests__name {
    font-size: 13px;
    line-height: 1.2;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-profile-guests__name a {
    text-decoration: none;
}

.sa-profile-guests__date {
    font-size: 14px;
    line-height: 1.2;
    color: #666;
}

.sa-profile-guests .sa-small {
    font-size: 14px !important;
    line-height: 1.45;
}

.sa-profile-content-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    border-bottom: 2px solid #b7b7b7;
    margin: 0 0 12px;
    box-sizing: border-box;
}

.sa-profile-ctab {
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid #c8c8c8;
    border-bottom: none;
    cursor: pointer;
    padding: 8px 6px;
    font-size: 15px;
    font-weight: bold;
    background: #e8e8e8;
    border-radius: 4px 4px 0 0;
    margin: 0 4px 0 0;
    font-family: inherit;
    color: #333;
    opacity: 0.85;
    text-align: center;
    box-sizing: border-box;
}

.sa-profile-ctab:last-child {
    margin-right: 0;
}

.sa-profile-ctab:hover {
    opacity: 1;
    background: #f0f0f0;
}

.sa-profile-ctab-panel {
    display: none;
    padding-top: 12px;
}

.sa-profile-ctab-panel.sa-ctab-active {
    display: block;
}

.sa-profile-ctab.sa-ctab-btn-active {
    opacity: 1;
    background: #fff;
    border-color: #b7b7b7;
    border-bottom: 2px solid #fff;
    margin-bottom: -2px;
    padding-bottom: 10px;
    color: #111;
}

.sa-profile-tab-rl {
    background: #3a2020;
    border: 1px solid #a44;
    padding: 8px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.sa-profile-rep-comment {
    font-size: 14px;
    line-height: 1.45;
}

/* Ошибки форм (регистрация и др.) */

.sa-giveaway-page {
    text-align: center;
}

.sa-giveaway-page__hero {
    width: 400px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.sa-giveaway-page__guest-note,
.sa-giveaway-page__doc {
    font-size: 15px;
    margin: 10px 0;
}

.sa-giveaway-page__doc a {
    font-size: 18px;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
}

.sa-giveaway-conditions {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.sa-giveaway-cond {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f2f2f2;
    border: 1px solid #c7c7c7;
    padding: 10px 12px;
    text-align: left;
}

.sa-giveaway-cond__mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.sa-giveaway-cond.is-done .sa-giveaway-cond__mark {
    background: #2f8f3a;
    border-color: #2f8f3a;
    color: #fff;
}

.sa-giveaway-cond__text {
    font-size: 15px;
}

.sa-giveaway-tickets-wrap {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sa-giveaway-tickets {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
}

.sa-giveaway-tickets__hint {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #444;
    text-align: center;
    max-width: 36em;
}

.sa-giveaway-tickets__icon {
    width: 96px;
    height: auto;
    display: block;
    flex: 0 0 auto;
}

.sa-giveaway-tickets__value {
    font-size: 52px;
    font-weight: 300;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    align-self: center;
    color: #222;
}

.sa-giveaway-instruction {
    text-align: left;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px dashed #b4b4b4;
    background: #f6f6f6;
    font-size: 15px;
}

.sa-giveaway-ref-table {
    margin-top: 12px;
    border-collapse: collapse;
}

.sa-giveaway-instruction > .sa-giveaway-ref-table {
    margin-top: 8px;
}

.sa-giveaway-ref-table th,
.sa-giveaway-ref-table td {
    border: 1px solid #c8c8c8;
    text-align: left;
}

/* Настройки профиля (member.php tab=settings): колонки подпись + поле без перекрытий */
.sa-login-side--profile-fields .sa-login-side__row {
    display: flex !important;
    flex-flow: row nowrap;
    align-items: center !important;
    gap: 10px;
    margin-bottom: 8px !important;
}

.sa-login-side--profile-fields .sa-login-side__row > span:first-of-type {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    box-sizing: border-box;
    margin-bottom: 0 !important;
    display: block;
    white-space: nowrap;
    flex-shrink: 0;
}

.sa-login-side--profile-fields .sa-login-side__row > .sa-input-vb {
    flex: 0 0 365px;
    width: 365px !important;
    max-width: 365px;
    min-width: 0;
    box-sizing: border-box;
    font-size: 12pt;
    line-height: 1.35;
    min-height: 48px;
    padding: 10px 10px;
}

.sa-login-side--profile-fields .sa-login-side__row > input[type="file"].sa-input-vb {
    flex: 0 0 auto;
    width: 365px !important;
    max-width: 365px;
    min-width: 0;
    font-size: 12pt;
    line-height: 1.35;
    min-height: 48px;
    padding: 10px 10px;
    box-sizing: border-box;
}

.sa-login-side--profile-fields .sa-login-side__row > input[readonly].sa-input-vb {
    overflow-x: auto;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 12pt;
}

/* Подпись: та же правая граница, что у полей в .sa-login-side__row (200 + 10 + 365 = 575px) */
.sa-login-side--profile-fields .sa-bbcode-toolbar[data-for="sa-sig-body"] {
    width: calc(200px + 10px + 365px);
    max-width: calc(200px + 10px + 365px);
    box-sizing: border-box;
}

.sa-login-side--profile-fields textarea.sa-input-vb#sa-sig-body {
    width: calc(200px + 10px + 365px);
    max-width: calc(200px + 10px + 365px);
    font-size: 12pt;
    line-height: 1.35;
    padding: 10px 10px;
    box-sizing: border-box;
    min-height: 6.75em;
}

@media (max-width: 520px) {
    .sa-login-side--profile-fields .sa-login-side__row {
        flex-wrap: wrap;
        align-items: flex-start !important;
    }

    .sa-login-side--profile-fields .sa-login-side__row > span:first-of-type {
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .sa-login-side--profile-fields .sa-login-side__row > .sa-input-vb {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: 100%;
    }

    .sa-login-side--profile-fields textarea.sa-input-vb#sa-sig-body,
    .sa-login-side--profile-fields .sa-bbcode-toolbar[data-for="sa-sig-body"],
    .sa-profile-compose textarea.sa-input-vb {
        width: 100%;
        max-width: 100%;
    }
}

/* === CROSSPOST === */
.sa-crosspost-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 16px;
}

.sa-crosspost-tab {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #c6c6c6;
    text-decoration: none;
    color: #222;
    background: #fafafa;
}

.sa-crosspost-tab:hover {
    background: #f0f0f0;
}

.sa-crosspost-tab--active {
    font-weight: 700;
    border-color: #5a8fc7;
    background: #eef4fb;
}

.sa-crosspost-plat {
    margin-bottom: 14px;
}

.sa-crosspost-ch-row {
    margin: 10px 0;
}

.sa-crosspost-ch-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sa-crosspost-toggle--error .sa-toggle-slider {
    box-shadow: 0 0 0 2px #c62828, inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sa-crosspost-ch-errors {
    margin: 4px 0 0 62px;
    padding-left: 18px;
    color: #a32020;
    font-size: 12px;
    line-height: 1.35;
    max-width: 640px;
}

html[data-sa-theme="dark"] .sa-crosspost-tab {
    border-color: #4a5568;
    color: #e2e8f0;
    background: #1e2430;
}

html[data-sa-theme="dark"] .sa-crosspost-tab:hover {
    background: #2d3340;
}

html[data-sa-theme="dark"] .sa-crosspost-tab--active {
    border-color: #5a8fc7;
    background: #243044;
}

html[data-sa-theme="dark"] .sa-crosspost-ch-errors {
    color: #f48fb1;
}

.sa-crosspost-setup__h {
    margin: 20px 0 0;
    font-size: 14px;
}

.sa-crosspost-cred-block,
.sa-crosspost-plat-block {
    padding: 12px 14px;
    margin-bottom: 4px;
}

.sa-crosspost-form-table {
    width: 100%;
    max-width: 920px;
    border-collapse: collapse;
    margin-top: 8px;
}

.sa-crosspost-form-table .sa-th {
    font-size: 11px;
    text-align: left;
}

.sa-crosspost-form-table td {
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.sa-crosspost-docs {
    margin: 16px 0;
    max-width: 920px;
}

.sa-crosspost-docs__lead {
    margin: 0 0 12px;
    line-height: 1.45;
}

.sa-crosspost-doc {
    margin-bottom: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fafafa;
}

.sa-crosspost-doc__summary {
    cursor: pointer;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 13px;
    list-style: none;
}

.sa-crosspost-doc__summary::-webkit-details-marker {
    display: none;
}

.sa-crosspost-doc__body {
    padding: 0 14px 12px 28px;
    line-height: 1.5;
}

.sa-crosspost-doc__body ol {
    margin: 8px 0 0;
    padding-left: 1.1em;
}

.sa-crosspost-doc__body code {
    font-size: 11px;
    word-break: break-all;
}

html[data-sa-theme="dark"] .sa-crosspost-doc {
    border-color: #4a5568;
    background: #1a1f28;
}

html[data-sa-theme="dark"] .sa-crosspost-form-table td {
    border-bottom-color: #3a4150;
}

/* === ADMINISTRATION === */
/* Публичная страница «Администрация» (команда портала) */

.sa-admin-page {
  --sa-admin-gold: #b8860b;
  --sa-admin-green: #1b870f;
  --sa-admin-purple: #670f87;
  --sa-admin-mod: #841414;
}

.sa-admin-page__intro {
  margin: 0 0 14px;
  line-height: 1.45;
  color: #444;
  font-size: 12px;
}

.sa-admin-page__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.sa-admin-page__col {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 100%;
  padding: 0 4px 16px 0;
  box-sizing: border-box;
}

.sa-admin-page__col h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: bold;
  color: #222;
  border-bottom: 2px solid #e03800;
  padding-bottom: 6px;
}

.sa-admin-page__col h2 abbr {
  text-decoration: none;
  border-bottom: 0;
  cursor: help;
}

.sa-admin-page__card {
  margin: 0 0 18px;
  padding: 0;
  overflow: hidden;
}

.sa-admin-page__card::after {
  content: "";
  display: table;
  clear: both;
}

.sa-admin-page__avatar {
  float: left;
  margin: 0 14px 8px 0;
  width: 75px;
  height: 75px;
  border-radius: 4px;
  overflow: hidden;
  background: #e8e8e8;
  flex-shrink: 0;
}

.sa-admin-page__avatar img {
  display: block;
  width: 75px;
  height: 75px;
  object-fit: cover;
}

.sa-admin-page__body {
  font-family: "Roboto Condensed", Tahoma, Verdana, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.sa-admin-page__nick {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.sa-admin-page__nick:hover {
  color: #c73200;
  text-decoration: underline;
}

.sa-admin-page__role {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: bold;
}

.sa-admin-page__role--admin {
  color: var(--sa-admin-gold);
}

.sa-admin-page__role--curator {
  color: var(--sa-admin-green);
}

.sa-admin-page__role--dayz {
  color: var(--sa-admin-purple);
}

.sa-admin-page__role--mod {
  color: var(--sa-admin-mod);
}

.sa-admin-page__social {
  display: block;
  margin-top: 8px;
  clear: both;
}

.sa-admin-page__empty {
  margin: 0;
  color: #777;
  font-size: 12px;
}

html[data-sa-theme="dark"] .sa-admin-page__intro {
  color: #b8b8c4;
}

html[data-sa-theme="dark"] .sa-admin-page__col h2 {
  color: #e8e8ee;
}

html[data-sa-theme="dark"] .sa-admin-page__nick {
  color: #e8e8ee;
}

html[data-sa-theme="dark"] .sa-admin-page__empty {
  color: #9a9aa8;
}

@media (max-width: 720px) {
  .sa-admin-page__cols {
    flex-direction: column;
  }

  .sa-admin-page__col {
    flex-basis: auto;
    max-width: none;
  }
}

/* === RESPONSIVE === */
@media (max-width: 1020px) {
    .sa-fixed {
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .sa-headerimg {
        width: 100%;
    }

    .sa-layout-table,
    .sa-layout-table tbody,
    .sa-layout-table tr,
    .sa-layout-table td {
        display: block;
        width: 100% !important;
        border-right: none !important;
        border-left: none !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .sa-layout-table tr {
        display: flex;
        flex-direction: column;
    }

    .sa-post-table,
    .sa-post-table tbody,
    .sa-post-table tr,
    .sa-post-table td {
        display: block;
        width: 100% !important;
    }

    .sa-post-usercell {
        border-right: none;
        border-bottom: 1px solid #C6C6C6;
    }

    .sa-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sa-toolbar-login {
        justify-content: flex-start;
    }

    .sa-headerimg {
        min-height: 0;
    }

    .sa-headerimg--has-outer {
        min-height: 0;
    }

    .sa-headerimg__logo {
        max-height: 120px;
    }

    .sa-col-left,
    .sa-col-right,
    .sa-col-main {
        padding: 8px !important;
    }

    .sa-thread-header__toolbar {
        margin-right: -8px;
    }

    .sa-outer-t {
        table-layout: fixed;
        width: 100%;
    }

    .sa-outer-t td,
    .sa-outer-t th {
        word-break: break-word;
    }
}

@media (max-width: 760px) {
    .sa-headerimg,
    .sa-headerimg--has-outer {
        height: auto;
        min-height: 0;
    }
    .sa-headerimg__img {
        max-width: 100%;
        object-fit: cover;
    }
    .sa-toolbar__portal { font-size: 15px; line-height: 1.35; }
    .sa-toolbar-login__label { font-size: 15px; }
    .sa-toolbar-login__input { width: 120px; font-size: 15px; height: 32px; }
}

@media (max-width: 760px) {
    body.sa-body {
        font-size: 15px;
        line-height: 1.45;
    }

    .sa-page-bg {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    /* Верхняя полоса ссылок скрыта — навигация в нижнем доке */
    .sa-topnav-fullwrap,
    .sa-container > .sa-topnav-wide {
        display: none !important;
    }

    .sa-toolbar__left {
        display: none;
    }

    /* register.php: тулбар пустой (крошки скрыты) + форма входа не нужна — убираем полосу целиком */
    body.sa-page-register:not(.sa-auth) .sa-toolbar {
        display: none !important;
    }

    .sa-toolbar {
        padding: 12px 8px 14px;
        margin-bottom: 20px;
    }

    #sidebar-left {
        display: none !important;
    }

    .sa-mobile-online {
        display: table !important;
    }

    .sa-thead-row {
        display: none;
    }

    .sa-outer-t tr {
        display: block;
    }

    /* Одна ячейка в первой строке (шапка с colspan): при display:block у tr ячейка иначе сжимается по содержимому */
    .sa-outer-t > tbody > tr:first-child {
        width: 100%;
    }

    .sa-outer-t > tbody > tr:first-child > td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .sa-outer-t .sa-td-ico,
    .sa-outer-t .sa-td-num,
    .sa-outer-t .sa-th--ico,
    .sa-outer-t .sa-th--auth,
    .sa-outer-t .sa-th--dt,
    .sa-outer-t .sa-th--n,
    .sa-outer-t .sa-th--forum,
    .sa-outer-t td:nth-child(3),
    .sa-outer-t td:nth-child(4),
    .sa-outer-t td:nth-child(5),
    .sa-outer-t td:nth-child(6),
    .sa-outer-t td:nth-child(7) {
        display: none !important;
    }

    .sa-outer-t .sa-td-topic {
        display: block !important;
        width: 100% !important;
        padding: 10px 10px 8px !important;
        border-top: 1px solid #d4d4d4;
    }

    .sa-td-topic a {
        display: block;
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 6px;
    }

    .sa-topic-mobile-meta {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        font-size: 14px;
        color: #444;
    }

    .sa-footer-pay {
        display: none;
    }

    .sa-footer-note {
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sa-mobile-dock {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-top: 1px solid #333;
        background: #0a0a0a;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }

    .sa-mobile-dock::-webkit-scrollbar {
        display: none;
    }

    .sa-mobile-dock a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-width: 52px;
        max-width: none;
        min-height: 50px;
        padding: 5px 6px 6px;
        gap: 2px;
        font-size: 9px;
        line-height: 1.1;
        color: #fff;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .sa-mobile-dock a:active {
        background: #1a1a1a;
    }

    .sa-mobile-dock__icon {
        display: block;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        color: #fff;
    }

    .sa-mobile-dock__label {
        display: block;
        width: 100%;
        max-width: 100%;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: rgba(255, 255, 255, 0.92);
    }

    .sa-cookie-consent {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }
}

.sa-topic-mobile-meta,
.sa-mobile-online {
    display: none;
}

/* Док только на узком экране; иначе глобальное display:none ниже перебивало бы flex внутри @media (max-width:760px) */
@media (min-width: 761px) {
    .sa-mobile-dock {
        display: none;
    }
}

@media (max-width: 760px) {
    .sa-toolbar-login {
        display: block;
        width: 100%;
    }

    .sa-toolbar-login__label {
        display: none !important;
    }

    .sa-toolbar-login__input {
        display: block;
        width: 100% !important;
        height: 40px !important;
        margin: 0 0 10px 0;
        box-sizing: border-box;
    }

    .sa-toolbar-login .h-captcha {
        margin: 8px 0 4px;
    }

    .sa-toolbar-login__remember {
        display: inline-flex;
        align-items: center;
        margin-right: 8px;
    }

    /* Кнопка «Вход»: стиль как у .sa-btn-vb, текст по центру по вертикали */
    .sa-toolbar-login__btn:not(.sa-toolbar-login__btn--logout) {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        min-height: 44px !important;
        height: auto !important;
        margin-top: 10px;
        margin-bottom: 0;
        line-height: 1.2 !important;
        box-sizing: border-box;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .sa-toolbar-login__forgot {
        display: block;
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.4;
    }

    .sa-toolbar,
    .sa-toolbar form {
        box-sizing: border-box;
    }

    .sa-container {
        overflow-x: hidden;
    }

    .sa-topic-mobile-meta {
        display: flex !important;
    }

    .sa-mobile-only {
        display: block;
    }

    .sa-outer-t td,
    .sa-news-pad,
    .sa-mon-row,
    .sa-mon-meta,
    .sa-usercloud,
    .sa-online-stats,
    .sa-small,
    .sa-muted {
        font-size: 15px !important;
        line-height: 1.45;
    }

    .sa-cookie-consent {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        font-size: 12px;
    }
}

