/*  phpBB3 Style Sheet
    --------------------------------------------------------------
	Style name:			prosilver (the default phpBB 3.3.x style)
	Based on style:
	Original author:	Tom Beddard ( http://www.subblue.com/ )
	Modified by:		phpBB Limited ( https://www.phpbb.com/ )
    --------------------------------------------------------------
*/

@import url("normalize.css?hash=48eb3f89");
@import url("base.css?hash=7c5543be");
@import url("utilities.css?hash=d8f72c42");
@import url("common.css?hash=a9741ba1");
@import url("links.css?hash=18286e16");
@import url("content.css?hash=be57a41d");
@import url("buttons.css?hash=56f0d25f");
@import url("cp.css?hash=50d868ab");
@import url("forms.css?hash=b64464fb");
@import url("icons.css?hash=64da33ce");
@import url("colours.css?hash=fcb2f289");
@import url("responsive.css?hash=87b53e08");


.emoji {
    display: inline-block;
    width: 10px; /* Установите нужный размер */
    height: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.emoji[data-code] {
    --emoji-url: url('/forum/styles/prosilver/theme/images/emoji/' attr(data-code) '.png');
}

/* Politburo custom style */

html, body {
    background: radial-gradient(circle at top, #1e3a8a 0, #0f172a 45%, #020617 100%) !important;
    color: #f8fafc;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.wrap {
    max-width: 1180px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#wrap {
    background: transparent;
}

.headerbar {
    background: linear-gradient(145deg, rgba(22, 34, 58, 0.96), rgba(15, 23, 42, 0.96)) !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
    color: #f8fafc;
}

.site-description h1,
.site-description h1 a {
    color: #f8fafc !important;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.site-description p {
    color: #cbd5e1;
}

.navbar {
    background: rgba(22, 34, 58, 0.92) !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    color: #f8fafc;
}

.navbar a,
.linklist a,
.breadcrumbs a {
    color: #cbd5e1 !important;
}

.navbar a:hover,
.linklist a:hover,
.breadcrumbs a:hover {
    color: #facc15 !important;
}

.forabg,
.forumbg,
.panel,
.post,
.bg1,
.bg2,
.bg3,
.stat-block {
    background: rgba(22, 34, 58, 0.92) !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #f8fafc;
    box-shadow: 0 18px 50px rgba(0,0,0,0.16);
}

.forabg .inner,
.forumbg .inner,
.panel .inner {
    background: transparent !important;
}

ul.topiclist li.header {
    background: rgba(250, 204, 21, 0.18) !important;
    color: #f8fafc;
    border-radius: 16px 16px 0 0;
}

ul.topiclist li.header a,
ul.topiclist li.header dt,
ul.topiclist li.header dd {
    color: #f8fafc !important;
}

ul.topiclist forums,
ul.topiclist topics {
    background: transparent !important;
}

li.row {
    background: rgba(15, 23, 42, 0.68) !important;
    border-top: 1px solid rgba(255,255,255,0.10);
    color: #f8fafc;
}

li.row:hover {
    background: rgba(30, 45, 74, 0.95) !important;
}

li.row strong,
li.row dt,
li.row dd,
li.row p,
.content,
.postbody,
.postprofile,
dl.details dt,
dl.details dd {
    color: #f8fafc;
}

a,
a.forumtitle,
a.topictitle,
.username-coloured {
    color: #facc15 !important;
}

a:hover,
a.forumtitle:hover,
a.topictitle:hover {
    color: #fde68a !important;
}

dd.posts,
dd.topics,
dd.views,
dd.lastpost {
    color: #cbd5e1;
}

input.inputbox,
textarea.inputbox,
select {
    background: rgba(2, 6, 23, 0.45) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 12px;
}

input.inputbox::placeholder {
    color: #94a3b8;
}

.button,
.button1,
.button2,
input.button1,
input.button2,

a.button {
    background: #facc15 !important;
    color: #111827 !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 800;
    box-shadow: none !important;
}

.button:hover,
.button1:hover,
.button2:hover,
input.button1:hover,
input.button2:hover,
a.button:hover {
    background: #eab308 !important;
    color: #111827 !important;
}

.search-box {
    background: transparent !important;
}

.search-box .inputbox {
    border-radius: 12px;
}

.dropdown,
.dropdown-contents {
    background: #16223a !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #f8fafc;
}

.dropdown-contents a {
    color: #cbd5e1 !important;
}

.dropdown-contents a:hover {
    color: #facc15 !important;
    background: rgba(255,255,255,0.08) !important;
}

.copyright,
.page-footer,
.time,
.rules,
.rules .inner {
    color: #cbd5e1 !important;
}

.rules {
    background: rgba(250, 204, 21, 0.12) !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
}

hr {
    border-color: rgba(255,255,255,0.14);
}

@media (max-width: 700px) {
    .headerbar,
    .navbar,
    .forabg,
    .forumbg,
    .panel,
    .post,
    .stat-block {
        border-radius: 14px;
    }

    .site-description h1 {
        font-size: 24px;
    }
}

/* Politburo post readability */

.post {
    background: #14213a !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 18px !important;
}

.postbody {
    color: #e5eefc !important;
    font-size: 16px;
    line-height: 1.65;
}

.postbody .content {
    color: #e5eefc !important;
    max-width: 920px;
}

.postbody .content p {
    margin-bottom: 14px;
}

.postbody strong,
.postbody b {
    color: #ffffff !important;
}

.postbody h2,
.postbody h3,
.postbody h4 {
    color: #facc15 !important;
    margin-top: 18px;
    margin-bottom: 10px;
}

.postlink {
    color: #facc15 !important;
    border-bottom-color: rgba(250,204,21,0.5) !important;
}

.postlink:hover {
    color: #fde68a !important;
    border-bottom-color: #fde68a !important;
}

blockquote {
    background: #f8fafc !important;
    color: #111827 !important;
    border-left: 5px solid #facc15 !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    margin: 18px 0 !important;
}

blockquote,
blockquote div,
blockquote p,
blockquote cite {
    color: #111827 !important;
}

blockquote cite {
    font-weight: 700;
}

blockquote:before {
    color: rgba(17,24,39,0.18) !important;
}

.codebox {
    background: #f8fafc !important;
    color: #111827 !important;
    border: 1px solid rgba(17,24,39,0.16) !important;
    border-radius: 12px !important;
}

.codebox code {
    color: #111827 !important;
}

.signature {
    color: #cbd5e1 !important;
    border-top-color: rgba(255,255,255,0.14) !important;
}

/* Politburo post text size fix */

.postbody {
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
}

.postbody .content {
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    max-width: 920px;
}

.postbody .content p,
.postbody .content li {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.postbody strong,
.postbody b {
    font-weight: 700 !important;
}

.postbody h2,
.postbody h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
}

.postbody h4 {
    font-size: 16px !important;
    line-height: 1.35 !important;
}

.content {
    font-size: 14px !important;
}

@media (max-width: 700px) {
    .postbody,
    .postbody .content,
    .postbody .content p,
    .postbody .content li {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
}

/* Politburo top site menu */

.pb-site-header {
    margin: 18px auto 14px;
    max-width: 1180px;
    padding: 0 12px;
}

.pb-site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 50px rgba(0,0,0,0.20);
}

.pb-site-logo {
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    color: #f8fafc !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.pb-site-logo span {
    color: #facc15;
}

.pb-site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.pb-site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 11px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    transition: 0.18s ease;
}

.pb-site-nav a:hover {
    color: #111827 !important;
    background: #facc15;
}

@media (max-width: 760px) {
    .pb-site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .pb-site-nav {
        justify-content: flex-start;
    }

    .pb-site-nav a {
        font-size: 13px;
    }
}

.site-description h1 {
    display: none !important;
}


/* Politburo restore fixes */

/* 1. Верхнее меню по ширине как остальные блоки форума */
.pb-site-header {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 18px 0 14px !important;
}

.pb-site-header-inner {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Читаемый текст в спойлерах */
details,
.spoiler,
.spoiler-body,
.spoiler-content,
div[class*="spoiler"] {
    color: #111827 !important;
}

details {
    background: #f8fafc !important;
    border: 1px solid rgba(17, 24, 39, 0.18) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

details summary,
.spoiler-header,
.spoiler-title {
    background: #e5e7eb !important;
    color: #111827 !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
}

details > div,
details p,
details li,
details span,
.spoiler-body,
.spoiler-content,
.spoiler-body p,
.spoiler-content p,
.spoiler-body li,
.spoiler-content li,
.postbody details *,
.postbody .spoiler *,
.postbody [class*="spoiler"] * {
    color: #111827 !important;
}

details a,
.spoiler a,
.spoiler-body a,
.spoiler-content a {
    color: #b45309 !important;
    font-weight: 700 !important;
}

/* 3. Видимая кнопка/иконка спойлера */
.spoiler-status,
details summary .spoiler-status,
.postbody .spoiler-status {
    background: #facc15 !important;
    color: #111827 !important;
    border-radius: 8px !important;
}

.spoiler-status .icon,
.spoiler-status i,
.postbody .spoiler-status .icon,
.postbody .spoiler-status i {
    color: #111827 !important;
    opacity: 1 !important;
}

.spoiler-status:hover {
    background: #eab308 !important;
    color: #111827 !important;
}

/* 4. Внутренний бордер и нормальная шапка у блоков статистики */
.stat-block {
    background: #14213a !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 18px !important;
    padding: 16px 18px !important;
    margin: 14px 0 !important;
    box-shadow: 0 14px 35px rgba(0,0,0,0.18) !important;
    overflow: hidden !important;
}

.stat-block h3 {
    margin: -16px -18px 12px !important;
    padding: 10px 18px !important;
    background: rgba(2, 6, 23, 0.35) !important;
    border-bottom: 1px solid rgba(255,255,255,0.16) !important;
    color: #facc15 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    text-transform: uppercase;
}

.stat-block h3 a {
    color: #facc15 !important;
    text-decoration: none !important;
}

.stat-block h3 a:hover {
    color: #fde68a !important;
}

.stat-block p {
    color: #e5eefc !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Politburo login form text visibility fix */

fieldset.quick-login,
.headerspace,
.panel fieldset {
    color: #e5eefc !important;
}

fieldset.quick-login label,
fieldset.quick-login label span,
.headerspace label,
.headerspace label span {
    color: #e5eefc !important;
}

fieldset.quick-login a,
.headerspace a {
    color: #facc15 !important;
    font-weight: 700 !important;
}

fieldset.quick-login a:hover,
.headerspace a:hover {
    color: #fde68a !important;
}

fieldset.quick-login input[type="checkbox"] {
    accent-color: #facc15;
}

fieldset.quick-login input[type="text"],
fieldset.quick-login input[type="password"] {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 12px !important;
}

fieldset.quick-login input[type="submit"],
fieldset.quick-login .button1,
fieldset.quick-login .button2 {
    background: #facc15 !important;
    color: #111827 !important;
    border-radius: 12px !important;
    border: 0 !important;
    font-weight: 900 !important;
}

/* Politburo posting options visibility fix */

.panel .fields1,
.panel .fields1 *,
.panel .fields2,
.panel .fields2 *,
#options-panel,
#options-panel *,
#attach-panel,
#attach-panel *,
#poll-panel,
#poll-panel *,
#postingbox,
#postingbox *,
fieldset.submit-buttons,
fieldset.submit-buttons *,
fieldset.fields1,
fieldset.fields1 *,
fieldset.fields2,
fieldset.fields2 * {
    color: #e5eefc !important;
}

.panel label,
.panel dd,
.panel dt,
.panel legend,
.panel p,
.panel span,
fieldset label,
fieldset dd,
fieldset dt,
fieldset legend,
fieldset p,
fieldset span {
    color: #e5eefc !important;
}

.panel label:hover,
fieldset label:hover {
    color: #f8fafc !important;
}

.panel a,
fieldset a {
    color: #facc15 !important;
}

.panel a:hover,
fieldset a:hover {
    color: #fde68a !important;
}

.tabs .tab > a,
.tabs a,
.tab > a {
    color: #111827 !important;
    background: #facc15 !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 800 !important;
}

.tabs .activetab > a,
.tabs .activetab > a:hover,
.activetab > a {
    color: #111827 !important;
    background: #f8fafc !important;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #facc15;
}

input.inputbox,
textarea.inputbox,
select {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
}

input.inputbox::placeholder,
textarea.inputbox::placeholder {
    color: #94a3b8 !important;
}

/* Politburo editor buttons visibility fix */

.format-buttons .button,
.format-buttons input.button2,
.format-buttons button,
#format-buttons .button,
#format-buttons input.button2,
#format-buttons button,
fieldset.submit-buttons .button,
fieldset.submit-buttons input.button1,
fieldset.submit-buttons input.button2,
fieldset.submit-buttons button,
.submit-buttons .button,
.submit-buttons input.button1,
.submit-buttons input.button2,
.submit-buttons button {
    background: #facc15 !important;
    color: #111827 !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.format-buttons .button:hover,
.format-buttons input.button2:hover,
.format-buttons button:hover,
#format-buttons .button:hover,
#format-buttons input.button2:hover,
#format-buttons button:hover,
fieldset.submit-buttons .button:hover,
fieldset.submit-buttons input.button1:hover,
fieldset.submit-buttons input.button2:hover,
fieldset.submit-buttons button:hover,
.submit-buttons .button:hover,
.submit-buttons input.button1:hover,
.submit-buttons input.button2:hover,
.submit-buttons button:hover {
    background: #eab308 !important;
    color: #111827 !important;
}

.format-buttons .button i,
.format-buttons button i,
#format-buttons .button i,
#format-buttons button i,
.submit-buttons .button i,
.submit-buttons button i {
    color: #111827 !important;
    opacity: 1 !important;
}

.format-buttons .icon,
#format-buttons .icon,
.submit-buttons .icon {
    color: #111827 !important;
    opacity: 1 !important;
}

.format-buttons select,
#format-buttons select {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 10px !important;
}

/* Politburo unified header with forum search */

.pb-site-header {
    width: 100% !important;
    max-width: none !important;
    margin: 18px 0 14px !important;
    padding: 0 !important;
}

.pb-site-header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 28px !important;
    width: 100% !important;
    min-height: 86px !important;
    padding: 18px 24px !important;
    box-sizing: border-box !important;
    border-radius: 24px !important;
    background: rgba(2, 6, 23, 0.72) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.20) !important;
}

.pb-site-logo {
    flex: 0 0 auto !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #f8fafc !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
}

.pb-site-logo span {
    color: #facc15 !important;
}

.pb-site-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.pb-site-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.pb-site-nav a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: 7px 12px !important;
    border-radius: 12px !important;
    color: #e5eefc !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    transition: 0.18s ease !important;
}

.pb-site-nav a:hover {
    color: #111827 !important;
    background: #facc15 !important;
}

.pb-site-search {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 360px !important;
    max-width: 100% !important;
    padding: 6px !important;
    border-radius: 16px !important;
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18) !important;
}

.pb-site-search input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    background: #f8fafc !important;
    color: #111827 !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.pb-site-search input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.pb-site-search input:focus {
    border-color: #facc15 !important;
    box-shadow: 0 0 0 3px rgba(250,204,21,0.20) !important;
}

.pb-site-search button,
.pb-site-search-more {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 38px !important;
    padding: 0 13px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #facc15 !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.pb-site-search button:hover,
.pb-site-search-more:hover {
    background: #eab308 !important;
    color: #111827 !important;
}

/* Скрываем старый верхний поиск phpBB, чтобы не было дубля */
#search-box.search-header {
    display: none !important;
}

/* Оставляем старый блок быстрого перехода по теме/посту в шапке форума */
.headerbar .pb-header-tools {
    margin-left: auto !important;
}

/* Делаем старую headerbar спокойнее, чтобы она не спорила с новой шапкой */
.headerbar {
    margin-top: 14px !important;
}

@media (max-width: 860px) {
    .pb-site-header-inner {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 18px !important;
    }

    .pb-site-right {
        width: 100% !important;
        align-items: flex-start !important;
    }

    .pb-site-nav {
        justify-content: flex-start !important;
    }

    .pb-site-search {
        width: 100% !important;
    }
}

@media (max-width: 520px) {
    .pb-site-nav a {
        font-size: 13px !important;
        padding: 7px 10px !important;
    }

    .pb-site-search {
        flex-wrap: wrap !important;
    }

    .pb-site-search input {
        flex-basis: 100% !important;
    }

    .pb-site-search button,
    .pb-site-search-more {
        flex: 1 1 auto !important;
    }
}

/* Politburo hide old header content but keep topic/post search */

.headerbar #site-description,
.headerbar #search-box.search-header {
    display: none !important;
}

.headerbar {
    min-height: 0 !important;
    margin-top: 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.headerbar .inner {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.pb-header-tools {
    width: 100% !important;
    max-width: 520px !important;
    margin-left: auto !important;
    padding: 18px !important;
    border-radius: 22px !important;
    background: rgba(22, 34, 58, 0.92) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18) !important;
}

.pb-header-tools::before {
    content: "Швидкий перехід";
    display: block;
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.pb-id-searches {
    display: grid !important;
    gap: 10px !important;
}

.pb-id-search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 82px !important;
    gap: 10px !important;
    align-items: center !important;
    margin: 0 !important;
}

.pb-id-search-form input {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 10px 13px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    background: #f8fafc !important;
    color: #111827 !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.pb-id-search-form input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.pb-id-search-form input:focus {
    border-color: #facc15 !important;
    box-shadow: 0 0 0 3px rgba(250,204,21,0.20) !important;
}

.pb-id-search-form button {
    height: 42px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #facc15 !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.pb-id-search-form button:hover {
    background: #eab308 !important;
    color: #111827 !important;
}

@media (max-width: 760px) {
    .headerbar .inner {
        justify-content: stretch !important;
    }

    .pb-header-tools {
        max-width: none !important;
        margin-left: 0 !important;
        padding: 16px !important;
    }

    .pb-id-search-form {
        grid-template-columns: 1fr !important;
    }

    .pb-id-search-form button {
        width: 100% !important;
    }
}

/* Politburo unified header searches */

.pb-site-header-inner {
    align-items: stretch !important;
}

.pb-site-left {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    max-width: 520px !important;
    min-width: 260px !important;
}

.pb-site-description {
    margin: 14px 0 0 !important;
    max-width: 500px !important;
    color: #cbd5e1 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.pb-site-searches {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: 430px !important;
    max-width: 100% !important;
    padding: 12px !important;
    border-radius: 20px !important;
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}

.pb-site-search {
    width: 100% !important;
    margin: 0 !important;
}

.pb-id-search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 82px !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
}

.pb-id-search-form input {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    background: #f8fafc !important;
    color: #111827 !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.pb-id-search-form input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.pb-id-search-form input:focus {
    border-color: #facc15 !important;
    box-shadow: 0 0 0 3px rgba(250,204,21,0.20) !important;
}

.pb-id-search-form button {
    height: 38px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #facc15 !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.pb-id-search-form button:hover {
    background: #eab308 !important;
    color: #111827 !important;
}

/* Скрываем старую нижнюю карточку быстрого перехода */
.headerbar .pb-header-tools {
    display: none !important;
}

/* Убираем пустой старый headerbar, если в нем уже ничего не осталось */
.headerbar {
    display: none !important;
}

@media (max-width: 980px) {
    .pb-site-header-inner {
        flex-direction: column !important;
    }

    .pb-site-left {
        max-width: none !important;
    }

    .pb-site-right {
        width: 100% !important;
        align-items: flex-start !important;
    }

    .pb-site-searches {
        width: 100% !important;
    }
}

@media (max-width: 520px) {
    .pb-id-search-form {
        grid-template-columns: 1fr !important;
    }

    .pb-id-search-form button {
        width: 100% !important;
    }
}

/* Politburo mobile header overflow fix */

@media (max-width: 520px) {
    .pb-site-header {
        width: 100% !important;
        padding: 0 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .pb-site-header-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .pb-site-left,
    .pb-site-right,
    .pb-site-searches,
    .pb-site-search,
    .pb-id-search-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .pb-site-searches {
        padding: 10px !important;
        margin: 0 !important;
    }

    .pb-site-search {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .pb-site-search input,
    .pb-id-search-form input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .pb-site-search button,
    .pb-site-search-more,
    .pb-id-search-form button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Politburo mobile nav fix */

@media (max-width: 520px) {
    .pb-site-nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 14px !important;
    }

    .pb-site-nav a {
        width: 100% !important;
        min-height: 40px !important;
        justify-content: center !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,0.06) !important;
        border: 1px solid rgba(255,255,255,0.10) !important;
        color: #f8fafc !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        box-sizing: border-box !important;
    }

    .pb-site-nav a:hover {
        background: #facc15 !important;
        color: #111827 !important;
    }

    .pb-site-nav a:last-child {
        grid-column: 1 / -1 !important;
    }
}

/* liveSearch only visibility fix */

/* Кнопка "Быстрый поиск" */
#livesearch_btn,
.livesearch-btn {
    background: #facc15 !important;
    color: #111827 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* Текст внутри окна быстрого поиска */
#livesearch,
.livesearch,
#livesearch label,
.livesearch label {
    color: #f8fafc !important;
    opacity: 1 !important;
}

/* Поля быстрого поиска */
#livesearch input,
.livesearch input {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
}

#livesearch input::placeholder,
.livesearch input::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

/* Выпадающие подсказки autocomplete */
.acResults,
.acResults ul,
.acResults li,
.ac_results,
.ac_results ul,
.ac_results li {
    background: #14213a !important;
    color: #f8fafc !important;
    opacity: 1 !important;
}

/* Весь текст внутри подсказок */
.acResults *,
.ac_results * {
    color: #f8fafc !important;
    opacity: 1 !important;
}

/* Активная/выбранная подсказка */
.acResults li:hover,
.acResults .acSelect,
.ac_results li:hover,
.ac_results .ac_over {
    background: #facc15 !important;
    color: #111827 !important;
}

.acResults li:hover *,
.acResults .acSelect *,
.ac_results li:hover *,
.ac_results .ac_over * {
    color: #111827 !important;
}

/* liveSearch eye button symbol only */

#_eye_ls_eye,
.eye_btn {
    background-color: #facc15 !important;
    background-image: none !important;
    border-radius: 8px !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

#_eye_ls_eye::before,
.eye_btn::before {
    content: "●" !important;
    color: #111827 !important;
    font-size: 16px !important;
    line-height: 14px !important;
    display: block !important;
    text-align: center !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 900 !important;
}

#_eye_ls_eye.eye_btn_close::before,
.eye_btn.eye_btn_close::before {
    content: "×" !important;
    font-size: 16px !important;
}

/* Social login and register buttons visibility fix */

.panel .button,
.panel .button1,
.panel .button2,
.panel input.button1,
.panel input.button2,
.panel a.button,
.panel a.button1,
.panel a.button2 {
    background: #facc15 !important;
    color: #111827 !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.panel .button *,
.panel .button1 *,
.panel .button2 *,
.panel a.button *,
.panel a.button1 *,
.panel a.button2 * {
    color: #111827 !important;
    opacity: 1 !important;
}

.panel .button:hover,
.panel .button1:hover,
.panel .button2:hover,
.panel input.button1:hover,
.panel input.button2:hover,
.panel a.button:hover,
.panel a.button1:hover,
.panel a.button2:hover {
    background: #eab308 !important;
    color: #111827 !important;
}

/* Search page title visibility fix */

.searchresults-title,
h2.searchresults-title,
.search .searchresults-title,
#search h2,
.panel h2,
.panel h2 a {
    color: #f8fafc !important;
    opacity: 1 !important;
}

.searchresults-title a,
h2.searchresults-title a {
    color: #facc15 !important;
}

.searchresults-title strong,
h2.searchresults-title strong {
    color: #facc15 !important;
}

.searchresults {
    color: #e5eefc !important;
}

.searchresults a {
    color: #facc15 !important;
}


/* Post profile text visibility fix */

.postprofile,
.postprofile dd,
.postprofile dt,
.postprofile strong,
.postprofile span,
.postprofile .profile-rank,
.postprofile .profile-posts,
.postprofile .profile-joined,
.postprofile .profile-contact {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.postprofile strong {
    color: #e5eefc !important;
    font-weight: 700 !important;
}

.postprofile a {
    color: #facc15 !important;
    opacity: 1 !important;
}

.postprofile a:hover {
    color: #fde68a !important;
}

.postprofile .username-coloured {
    color: #facc15 !important;
    font-weight: 900 !important;
}

.postprofile .profile-contact .dropdown-trigger {
    background: #facc15 !important;
    color: #111827 !important;
    border-radius: 8px !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.postprofile .profile-contact .dropdown-trigger i,
.postprofile .profile-contact .dropdown-trigger .icon {
    color: #111827 !important;
    opacity: 1 !important;
}

/* Spoiler design for dark Politburo theme */

details,
.spoiler,
.spoiler-body,
.spoiler-content,
div[class*="spoiler"] {
    color: #e5eefc !important;
}

details {
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin: 14px 0 !important;
}

details summary,
.spoiler-header,
.spoiler-title {
    background: rgba(250, 204, 21, 0.12) !important;
    color: #facc15 !important;
    font-weight: 900 !important;
    padding: 11px 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}

details > div,
details p,
details li,
details span,
.spoiler-body,
.spoiler-content,
.spoiler-body p,
.spoiler-content p,
.spoiler-body li,
.spoiler-content li,
.postbody details *,
.postbody .spoiler *,
.postbody [class*="spoiler"] * {
    color: #e5eefc !important;
    background: transparent !important;
}

details a,
.spoiler a,
.spoiler-body a,
.spoiler-content a {
    color: #facc15 !important;
    font-weight: 700 !important;
}

.spoiler-status,
details summary .spoiler-status,
.postbody .spoiler-status {
    background: #facc15 !important;
    color: #111827 !important;
    border-radius: 8px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.spoiler-status .icon,
.spoiler-status i,
.postbody .spoiler-status .icon,
.postbody .spoiler-status i {
    color: #111827 !important;
    opacity: 1 !important;
}