/*************************************************************
A - SETUP
**************************************************************/

/* A1 Import the colour scheme
-------------------------------------------------------------*/

/* A1.1 */
@import url(style_cs.1796145840.css);
@import url("https://kit-pro.fontawesome.com/releases/v6.6.0/css/pro.min.css");
@import url("https://forumstatic.ru/files/001c/db/ce/81639.css?v=2");

:root,
.light {
  --bg1: rgb(189, 201, 211); /* тело форума */
  --bg2: rgb(214, 221, 227); /* тело поста */
  --bg3: rgba(189, 201, 211, 0.7); /* шапка */
  --button1: rgb(63 121 147); /* кнопка */
  --button2: rgb(30 85 118); /* кнопка активная */
  --link1: rgb(63 121 147); /* ссылка */
  --link2: rgb(30 85 118); /* ссылка активная */
  --text1: rgb(38 53 63); /* тёмный текст */
  --text2: rgb(214, 221, 227); /* светлый текст */

  --bg-img: url(https://forumstatic.ru/files/001c/d6/c0/48056.webp);
  --head: url(https://forumstatic.ru/files/001c/d6/c0/68428.webp);
  --footer: url(https://forumstatic.ru/files/001c/d6/c0/73927.webp);
  --cat1: url(https://forumstatic.ru/files/001c/d6/c0/20972.webp);
  --cat2: url(https://forumstatic.ru/files/001c/d6/c0/17349.webp);
  --cat3: url(https://forumstatic.ru/files/001c/d6/c0/81890.webp);
  --cat4: url(https://forumstatic.ru/files/001c/d6/c0/33678.webp);
  --cat5: url(https://forumstatic.ru/files/001c/d6/c0/14989.webp);
  --cat6: url(https://forumstatic.ru/files/001c/d6/c0/51729.webp);
  --cat7: url(https://forumstatic.ru/files/001c/d6/c0/93675.webp);
  --statcat: url(https://forumstatic.ru/files/001c/d6/c0/57954.webp);
  --thdawn: url(https://forumstatic.ru/files/001c/d6/c0/67103.webp);
  --icon: url();
  --up: url();
  --down: url();
  --guest-ava: url();
  --org-ava: url();
  --org-fon: url();
  --org-pl: url();

}

.dark {
   --bg1: rgb(38, 37, 40); /* тело форума*/
  --bg2: rgb(33, 32, 35); /* тело поста */
  --bg3: rgba(38, 37, 40, 0.7); /* шапка */
  --button1: rgb(145, 87, 87); /* кнопка */
  --button2: rgb(110 64 64); /* кнопка активная */
  --link1: rgb(145, 87, 87); /* ссылка */
  --link2: rgb(110 64 64); /* ссылка активная */
  --text1: rgb(155 152 152); /* светлый текст */
  --text2: rgb(33, 32, 35); /* тёмный текст */


  --bg-img: url(https://forumstatic.ru/files/001c/d6/c0/35400.webp);
  --head: url(https://forumstatic.ru/files/001c/d6/c0/41443.webp);
  --footer: url(https://forumstatic.ru/files/001c/d6/c0/83287.webp);
  --cat1: url(https://forumstatic.ru/files/001c/d6/c0/56450.webp);
  --cat2: url(https://forumstatic.ru/files/001c/d6/c0/84985.webp);
  --cat3: url(https://forumstatic.ru/files/001c/d6/c0/76207.webp);
  --cat4: url(https://forumstatic.ru/files/001c/d6/c0/66899.webp);
  --cat5: url(https://forumstatic.ru/files/001c/d6/c0/82853.webp);
  --cat6: url(https://forumstatic.ru/files/001c/d6/c0/54621.webp);
  --cat7: url(https://forumstatic.ru/files/001c/d6/c0/77716.webp);
  --statcat: url(https://forumstatic.ru/files/001c/d6/c0/11024.webp);
  --thdawn: url(https://forumstatic.ru/files/001c/d6/c0/25547.webp);
  --icon: url();
  --guest-ava: url();
  --org-ava: url();
  --org-fon: url();
  --org-pl: url();
}

/* A2 Deal with browser defaults and wonkiness
-------------------------------------------------------------*/

html,
body {
  margin: 0;
  padding: 0;
}

/* фон */
html {
  background: var(--bg-img);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top center;
  background-color: var(--bg2);
  background-size: cover;
}

/* A2.2 */
.punbb * {
  margin: 0;
}

.topic + .modmenu .container > span {
  display: none;
}

/* A2.3 */
.punbb ul,
.punbb dl,
.punbb li,
.punbb dd,
.punbb dt {
  padding: 0;
  list-style: none;
}

/* A2.4 */
.punbb img {
  border: none;
}

/* A2.5 */
.punbb .main table {
  table-layout: fixed;
  width: 100%;
}

/* A2.6 */
.checkfield input[type="checkbox"],
.radiofield input[type="radio"] {
  margin: 0 0.3em;
}

/* A2.7 */
p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
  height: 1.8em;
  vertical-align: middle;
}

/* A3 Text setup
-------------------------------------------------------------*/

/* A3.1 */
body {
  font-size: 100%;
}

/* A3.2 */
.punbb {
  font:
    normal 70% verdana,
    arial,
    helvetica,
    sans-serif;
}

/* 3.3 */
.punbb textarea,
.punbb input,
.punbb select,
.punbb optgroup {
  font:
    1em verdana,
    arial,
    helvetica,
    sans-serif;
}

/* A3.4 */
.punbb h1,
.punbb h2,
.punbb h3,
.punbb h4,
.punbb table,
.punbb th {
  font-size: 1em;
  font-weight: normal;
}

/* A3.5 */
.punbb h1 span,
.punbb h2 span,
.punbb legend span {
  font-size: 1.1em;
}

/* A3.6 */
.punbb pre {
  font:
    0.9em/170% monaco,
    "bitstream vera sans mono",
    "courier new",
    courier,
    monospace;
}

/* A3.7 */
.punbb address,
.punbb em {
  font-style: normal;
}

/* A3.8 */
.punbb .post-content em {
  font-style: italic;
}

/* A3.9 */
.punbb .post-content em.bbuline {
  font-style: normal;
  text-decoration: underline;
}

/* A3.10 */
.punbb a {
  text-decoration: none;
  color: var(--link1);
}

.punbb a:hover {
  text-decoration: none;
  color: var(--link2);
}

/* A3.11 */
.punbb optgroup {
  font-weight: bold;
}

/* A4 Float clearing and hidden items
-------------------------------------------------------------*/

/* A4.1 */
#pun:after,
.punbb .container:after,
.punbb .post-links ul:after,
.punbb .main div.inline:after,
.punbb .post-box:after,
.punbb .linksb:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

/* A4.2 */
.acchide,
#pun-index #pun-main h1,
#pun-navlinks h2,
#pun-pagelinks h2,
#pun-status h2,
#pun-ulinks h2,
.punbb .forum h2,
.punbb .multipage .topic h2,
.punbb dl.post-sig dt span,
.punbb p.crumbs strong,
.punbb .divider hr,
.punbb .required label em,
.punbb .formsubmit label,
.punbb .submitfield label,
.punbb .modmenu label,
#pun-userlist .main h2 {
  font-size: 0;
  height: 0;
  width: 0;
  line-height: 0;
  position: absolute;
  left: -9999px;
  overflow: hidden;
}

/* A5 Basic page layout and borders
-------------------------------------------------------------*/

/* A5.1 */
#pun {
  background-color: var(--bg1);
  border: none !important;
  width: 1100px;
  margin: auto;
  position: relative;
  color: var(--text1);
}

/* A5.2 */
.punbb {
  margin: 0 auto;
  width: 1060px;
  height: auto;
}

/* A5.3 */
#pun-redirect,
#pun-maint {
  background-color: var(--bg2);
  margin: 50px 20%;
  width: auto;
  float: none;
}

/* A5.4 */
.punbb .section,
.punbb .main {
  margin-bottom: 1em;
}

/* A5.5 */
.punbb .category,
.punbb .post {
  margin-top: 0.4em;
}

/* A5.6 */
.punbb #pun-category1,
.punbb .toppost,
.punbb .topicpost {
  margin-top: 0;
}

/* 5.7 */
#pun-post .topic {
  margin-top: 1em;
}

/* A5.8 */
.punbb .section,
.punbb .forum,
.punbb .formal,
.punbb .modmenu,
.punbb .info,
.punbb .category,
.punbb .post {
  border: none;
}

#pun-main .post {
  background: var(--bg2);
  padding: 16px;
  margin: 12px 0 0 10px;
  max-width: 95%;
  border-radius: 8px;
}

.punbb .formal {
  max-width: 1060px;
  margin-left: 0;
  background: var(--bg2);
  border-radius: 10px;
}

/* A5.9 */
.punbb .container {
  border: none;
}

#pun-report .inner,
#pun-reputation .inner,
#pun-admin-award-form .inner {
  background-color: var(--bg2) !important;
  box-shadow: none !important;
  text-transform: lowercase;
}

/* A5.10 */
#pun-index .category h2 span {
  display: none;
}

.punbb .section h2,
#pun-main h2,
#pun-stats h2,
#pun-debug h2 {
  width: 1060px;
  height: 45px;
  margin-bottom: 5px;
  border-style: none;
  text-align: center;
  /* padding-top: 13px; */
  /* font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; */
  /* font-size: 14px; */
  /* color: var(--text1); */
  /* text-transform: lowercase; */
}

#pun-main h1 {
  width: 1060px;
  height: 50px;
  border-style: none;
  text-align: center;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: var(--text1);
}

#pun-category1.category h2,
#pun-category2.category h2,
#pun-category3.category h2,
#pun-category4.category h2,
#pun-category5.category h2,
#pun-category6.category h2,
#pun-category7.category h2,
#pun-stats h2,
#post-form h2 {
  /* height: 45px; */
  /* width: 1060px; */
  /* margin-bottom: -5px; */
  border-radius: 10px;
  color: transparent;
}

#pun-category1.category h2 {
  background: var(--cat1) no-repeat;
}
#pun-category2.category h2 {
  background: var(--cat2) no-repeat;
}
#pun-category3.category h2 {
  background: var(--cat3) no-repeat;
}
#pun-category4.category h2 {
  background: var(--cat4) no-repeat;
}
#pun-category5.category h2 {
  background: var(--cat5) no-repeat;
}
#pun-category6.category h2 {
  background: var(--cat6) no-repeat;
}
#pun-category7.category h2 {
  background: var(--cat7) no-repeat;
}
#pun-stats h2 {
  background: var(--statcat) no-repeat;
}
#post-form h2 {
  background: var(--thdawn) no-repeat;
}

#post-form h2 span {
  display: none;
}

#pun-index #pun-main .category .container {
  background-color: var(--bg2);
  border-radius: 10px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  justify-content: center;
  padding: 10px;
  margin: 10px 0;
}

#pun-stats .statscon {
  background-color: var(--bg2);
  border-radius: 10px;
  min-height: 130px;
  display: flex;
  align-content: flex-start;
  justify-content: center;
  padding: 10px;
}

#pun .highlight-text {
  background: var(--text2);
  padding: 1px 5px;
  border-radius: 10px;
}

/*************************************************************
B - MAIN CONTENT - GENERAL
**************************************************************/

/* B1 Parsed Content, Signatures and Scroll Boxes
-------------------------------------------------------------*/

/* B1.1 */
.punbb .post-content {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
  text-align: justify;
}

/* B1.2 */
.punbb .post-sig dt {
  display: block;
  border-top: 1px solid var(--bg1);
  width: 250px;
  margin: 5px 0;
}

/* B1.3 */
.punbb .post-content p {
  margin: 0;
  padding: 0.5em 0 1em 0;
  line-height: 150%;
}

/* B1.4 */
.punbb .post-content img {
  vertical-align: text-bottom;
}

/* B1.5 */
.punbb .post-content img.postimg {
  vertical-align: middle;
}

/* B1.6 */
.punbb .post-content .blockcode,
.punbb .post-content blockquote {
  width: 100%;
  overflow: hidden;
}

/* B1.7 */
.punbb .post-content .scrollbox {
  width: 100%;
  overflow: auto;
}

/* B1.8 */
.punbb .post-content .quote-box,
.punbb .post-content .code-box {
  margin: 0.5em 1.8em;
  padding: 10px 20px;
  background: var(--bg3);
  border-radius: 20px;
  border-top: 3px solid var(--text1);
  border-bottom: 3px solid var(--text1);
}

.post-content .spoiler-box > div {
  background: none !important;
}

.post-content .spoiler-box > div:before {
  content: "\f005";
  font-family: "Font Awesome 6 Pro";
  color: var(--text1);
  margin-right: 6px;
  font-size: 10px;
  margin-left: -12px;
  font-weight: bold;
  opacity: 0.5;
}

.post-content td {
  vertical-align: top;
}

/* B1.9 */
.punbb .quote-box cite,
.punbb .code-box strong.legend {
  display: block;
  font-size: 12px;
 font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: bold;
  font-style: normal;
  margin-bottom: 10px;
  background: var(--text1);
  padding: 2px 10px 4px 10px;
  border-radius: 8px;
  text-transform: lowercase;
  color: var(--text2);
}

#tags .container {
  background: var(--bg1);
  border-radius: 8px;
}

#font-area {
  height: 200px;
  overflow-y: scroll;
}

.lastedit {
  display: none;
}

/* B2 Information boxes
-------------------------------------------------------------*/

/* B2.1 */
.punbb .info-box {
  padding: 1.1em 1.7em 1em 1.7em;
  border-style: solid;
  border-width: 1px;
  margin: 0 0 1.1em 0;
}

/* B2.2 */
.punbb .info-box * {
  padding: 0 0 0.7em 0;
}

/* B2.3 */
.punbb #pun-main .info-box .legend {
  font-size: 1.1em;
  font-weight: bold;
}

/* B3 Pagination and posting links
-------------------------------------------------------------*/

/* B3.1 */
.punbb .linkst {
  float: left;
  position: relative;
  width: 100%;
  font-size: 1.1em;
  height: 0;
}

#pun-live-rusff, .pun-live-rusff {
    display: none !important;
}

/* B3.2 */
.multipage {
  margin-top: 3em;
}

/* B3.3 */
.linkst .pagelink {
  position: absolute;
  top: -4em;
  left: 1em;
  width: 24em;
}

/* B3.4 */
.linkst .postlink {
  position: absolute;
  top: -4em;
  right: 1em;
  width: 16em;
  text-align: right;
  font-weight: bold;
}

/* B3.5 */
.punbb .linksb {
  text-align: right;
  padding: 0.4em 1em 0.5em 1em;
  font-size: 1.1em;
}

/* B3.6 */
.linksb .pagelink {
  float: left;
  width: 24em;
  text-align: left;
}

/* B3.7 */
.linksb .postlink {
  float: right;
  width: 16em;
  font-weight: bold;
}

/* B3.8 */
.subscribelink {
  clear: both;
  padding-top: 0.3em;
  padding-bottom: 0.5em;
}

/*************************************************************
C - MAIN CONTENT - SPECIFIC
**************************************************************/

/* C1 Form layout
-------------------------------------------------------------*/

/* C1.1 */
.punbb .formal .container {
  padding: 1.7em 2.3em 1.1em 2.3em;
}

/* C1.2 */
.punbb .formsubmit {
  text-align: center;
  text-transform: lowercase;
  margin-top: -10px !important;
  margin-left: 8px;
}

/* C1.3 */
.punbb .formsubmit input,
.punbb .formsubmit a,
.punbb .formsubmit span {
  margin-left: 5px;
}

.button,
#pa-edit a {
  background: var(--bg1);
  padding: 6px;
  color: var(--text1);
  text-transform: lowercase;
  border: none;
  margin-bottom: 3px !important;
  width: auto;
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
 
}

.button:hover,
#pa-edit a:hover {
  background: var(--bg1) !important;
  cursor: pointer;
  color: var(--text1);
  transform: scale(1.1);
  outline: none;
}
/* C1.4 */
.punbb fieldset {
  border-style: none;
  border-width: 1px;
  padding: 0 20px;
  margin: 0 0 1em 0;
}

/* C1.5 */
.punbb fieldset legend {
  padding: 0;
  margin: 0 0 0 11px;
  font-size: 1.1em;
}

/* C1.6 */
.punbb fieldset legend span {
  padding: 0 5px;
  margin: 0 0 0 -15px;
}

/* C1.7 */
.punbb fieldset fieldset {
  border-style: none;
  margin: 0;
  padding: 0 0 8px 0;
}

/* C1.8 */
.punbb .fs-box {
  padding: 1em 0 0.8em 0;
}

/* C1.9 */
.punbb .fs-box p,
.punbb .fs-box fieldset {
  padding: 0 0 0.8em 0;
}

/* C1.10 */
.punbb .inline .inputfield,
.punbb .inline .selectfield,
.punbb .inline .passfield {
  float: left;
  margin-right: 1em;
}

/* C1.11 */
.punbb .inline .infofield {
  clear: both;
}

/* C1.12 */
.punbb .datafield br {
  display: none;
}

/* C1.13 */
.punbb .required label,
.punbb .datafield span.input {
  font-weight: bold;
}

/* C1.14 */
.punbb .datafield span.input a {
  font-weight: normal;
}

/* C1.15 */
.punbb .areafield span.input,
.punbb p.longinput span.input {
  display: block;
  padding: 0 12em 0 0;
  height: 100%;
  /* For IE */
}

/* C1.16 */
/* Поля ввода и предпросмотр */
.punbb textarea, .punbb .longinput input { 
    width: 100%; 
    margin-top: 10px; 
    margin-bottom: 10px; 
} 

.punbb textarea { 
    background-color: var(--bg1); 
    color: var(--text1); 
    border: none; 
    border-radius: 10px; 
    outline: none; 
} 

#togglePreview { 
    margin-bottom: 10px !important; 
}

/* Панель кнопок на Font Awesome 6 Pro */
#form-buttons table {
    width: 100% !important;
}

#form-buttons table tr {
    display: flex;
    justify-content: space-between; /* выравнивание кнопок в ряду */
    gap: 4px;
    margin-bottom: 4px;
}

#form-buttons td {
    position: relative;
    background: none !important;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; /* ширина кнопки */
    height: 24px; /* высота кнопки */
    border-radius: 4px;
    transition: 0.5s;
}

/* Кликабельная область поверх иконки */
#form-buttons td img {
    position: absolute;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* скрывает стандартную картинку, оставляя клик */
}

#form-buttons td::before {
    font-family: 'Font Awesome 6 Pro';
    font-size: 16px; /* размер иконки */
    font-weight: 400; /* стиль иконки */
    color: var(--text1); /* ваш основной цвет текста */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    transition: 0.5s;
}

#form-buttons td:hover {
    background: var(--bg1) !important; /* ваш фон при наведении */
}

#form-buttons td:hover::before {
    color: var(--text1);
    opacity: 0.5; 
}

/* Иконки Font Awesome */
#button-font::before { content: '\f031'; }
#button-size::before { content: '\f894'; }
#button-bold::before { content: '\f032'; }
#button-italic::before { content: '\f033'; }
#button-underline::before { content: '\f0cd'; }
#button-strike::before { content: '\f0cc'; }
#button-left::before { content: '\f036'; }
#button-right::before { content: '\f038'; }
#button-center::before { content: '\f037'; }
#button-link::before { content: '\f0c1'; }
#button-spoiler::before { content: '\f518'; }
#button-image::before { content: '\f302'; }
#button-video::before { content: '\f144'; }
#button-hide::before { content: '\f30d'; }
#button-quote::before { content: '\f27a'; }
#button-code::before { content: '\f121'; }
#button-color::before { content: '\f53f'; }
#button-table::before { content: '\f009'; }
#button-smile::before { content: '\f118'; }
#button-keyboard::before { content: '\f11c'; }
#button-addition::before { content: '\f0d7'; }  
#button-indent::before { content: '\f878'; }    
#button-transL::before { content: '\f1ab'; }
#button-justify::before { content: '\f039'; }

#form-buttons #button-image ~ #button-image::before { content: '\f03e' !important; }
#floatbut::before { content: '\f03c'; }
#button-mask::before { content: '\f630'; }

#pun-profile #form-buttons td::before,
#pun-messages #form-buttons td::before {
    font-size: 14px;
}

/* C1.17 */
.punbb .hashelp {
  position: relative;
}

/* C1.18 */
.punbb .helplinks {
  display: block;
  position: absolute;
  top: 1em;
  right: 0;
  font-weight: normal;
  width: 36%;
}

/* c1.19 */
.punbb #profile .helplinks {
  top: 1.5em;
}

/* C1.20 */
.punbb .helplinks span {
  display: block;
  padding-bottom: 0.2em;
}

/* C1.21 */
#pun-post .formal .info-box li {
  padding-left: 4px;
  list-style-type: square;
  list-style-position: inside;
  line-height: 1.5;
  margin: 0;
}

/* C2 Table layout
-------------------------------------------------------------*/

/* C2.1 */
.punbb .main .tcl {
  overflow: hidden;
  text-align: justify;
  width: 50%;
}

span.stickytext {
  top: 0;
  padding: 2px 8px;
  background: var(--bg1);
  color: var(--text1);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-transform: lowercase;
  font-size: 10px;
}

/* C2.2 */
.punbb .main .tc2,
.punbb .main .tc3,
.punbb .main .tcmod {
  text-align: center;
  width: 10%;
}

#pun-index .main .tc2,
#pun-index .main .tc3 {
  display: none;
}

/* C2.3 */
.punbb .main .tcr {
  overflow: hidden;
  text-align: left;
  text-transform: lowercase;
  width: 30%;
}

.category .container thead {
  display: none;
}

#pun-main .container thead {
  display: none;
}

/* C2.4 */
#pun-userlist .main .tcl,
#pun-searchtopics .main .tcl,
#pun-modviewforum .main .tcl {
  width: 40%;
}

/* C2.5 */
#pun-userlist .main .tc2,
#pun-searchtopics .main .tc2 {
  text-align: left;
  width: 20%;
}

/* C2.6 */
#pun-debug table .tcl {
  width: 15%;
  white-space: normal;
}

/* C2.7 */
#pun-debug .tcr {
  width: 85%;
  white-space: normal;
}

/* C2.8 */
#pun-index .tcl h3 {
  font-family: "Font Awesome 6 Pro" !important;
  font-size: 18px !important;
  text-transform: uppercase;
  font-weight: 700 !important;
}

/* C2.9 */
.punbb td span.youposted {
  font-weight: bold;
  margin-left: -1em;
  position: absolute;
}

/* C2.10 */
.punbb td .modlist {
  display: none;
}

/* C2.11 */
.punbb .main td {
  border-style: none !important;
  border-width: 0;
  padding: 0.8em 1em;
}

/* C2.12 */
.punbb .main th {
  border-style: none none none solid;
  border-width: 0 0 0 1px;
  padding: 0.4em 1em 0.4em 1em;
}

/* C2.13 */
.punbb .main .tcl {
  border-left-style: none;
  border-left-width: 0;
}

.podf {
  text-align: justify;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-transform: lowercase;
  font-size: 8px;
  letter-spacing: 0.5px;
  width: 400px;
  padding-bottom: 5px;
}

/* C2.14 */
.punbb tbody.hasicon td.tcl {
  padding-left: 10em;
}

/* C2.15 */
.punbb div.icon {
  border-style: solid;
  border-width: 0.6em;
  height: 0;
  line-height: 0;
  margin-top: 0.1em;
  width: 0;
}

/* C2.16 */
/* иконки */

.punbb table div.icon {
  display: block;
  position: absolute;
  width: 89px;
  height: 48px;
  border: none;
  margin-left: -100px !important;
  background: none;
  margin-top: 5px !important;
}

TR.inew Div.icon {
  background: var(--icon) no-repeat;
}

#pun-viewforum TR.inew Div.icon,
#pun-messages TR.inew Div.icon,
#pun-searchtopics TR.inew Div.icon,
#pun-modviewforum TR.inew Div.icon {
  float: left;
  height: 30px;
  position: relative;
  width: 30px;
  top: -5px;
  margin-left: -70px !important;
  background: none;
}

#pun-viewforum TR.inew Div.icon::before,
#pun-messages TR.inew Div.icon::before,
#pun-searchtopics TR.inew Div.icon::before,
#pun-modviewforum TR.inew Div.icon::before {
  content: "\f005";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  font-size: 22px;
  color: var(--text1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* C3 Topics
-------------------------------------------------------------*/

/* C3.1 */
.punbb .post .container {
  margin-top: -1px;
  padding-bottom: 1px;
  position: relative;
}

/* C3.2 */
.punbb .post h3 {
  border-style: none;
  border-width: 0px;
}

/* C3.3 */
.punbb .post h3 span {
  padding: 0.5em 1em;
  display: block;
  margin-left: 20em;
  border-left-style: none;
  border-left-width: 0px;
  background-color: var(--bg1);
  color: var(--text1);
  border-radius: 10px;
}

/* C3.4 */
.punbb .post h3 strong {
  float: right;
  width: 5em;
  text-align: right;
  font-weight: normal;
}

.punbb .post h3 strong::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  transition: 0.2s cubic-bezier(0.4, 0, 1, 1);
  margin-right: 6px;
}

/* C3.5 */
.punbb .post .post-author {
  position: relative;
  float: left;
  margin-top: -15px;
  margin-bottom: 10px;
  border-left: none;
  width: 210px;
  background: var(--bg1) no-repeat scroll center top;
  border-radius: 10px;
  overflow: hidden;
  z-index: 1 !important;
}

.punbb .post .post-author::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 70px;
  top: 60px;
  background: linear-gradient(to top, var(--bg1), transparent);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}

/* Скрываем градиент родителя, если нет картинки обложки */
.punbb .post .post-author:not(:has(li.pa-fld3 img))::before {
  display: none !important;
}

/* C3.6 */
.punbb .post .post-author ul,
.punbb .post .post-author p {
  position: relative;
  text-align: center;
  width: 210px;
  line-height: 1em;
  padding: 20px 0px 0px 0px;
}

.punbb .post .post-author ul {
  position: relative;
  text-align: center;
  margin-top: 10px !important; /* обычное положение без шапки */
  margin-left: 10px;
  background: var(--bg1);
  width: 190px;
  border-radius: 10px;
  padding-top: 15px;
}

/* Возвращаем отступ под шапку, когда картинка загружена */
.punbb .post .post-author ul:has(li.pa-fld3 img) {
  margin-top: 40px !important;
}

.blockButton {
  position: absolute !important;
  left: 30px !important;
  top: -2px !important;
}

.blockButton:before {
  background: var(--bg1) !important;
  border-radius: 50% !important;
  color: var(--link1) !important;
  padding-left: 6px !important;
  padding-bottom: 3px;
  padding-top: 1px;
}

.infoprof {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  padding: 0px 20px;
  margin-top: 5px;
  margin-bottom: 10px;
  box-sizing: border-box;
  font-size: 10px;
  text-align: center;
}

.pa-posts .fld-name,
.pa-fld2 .fld-name,
.pa-fld1 .fld-name,
.pa-respect .fld-name {
  display: none;
}

.pa-posts,
.pa-respect,
.pa-fld1 {
  display: inline-block;
  text-align: center;
  text-transform: lowercase;
  color: var(--text1);
  cursor: default;
}

.pa-respect1,
.pa-respect img {
  width: 7px;
  filter: grayscale(1);
}

.pa-posts,
.pa-respect1,
.pa-respect,
li.pa-respect a:link,
li.pa-respect a:visited,
li.pa-respect a:active,
li.pa-respect a:hover,
.pa-ip,
.pa-ip a:link {
  color: var(--text1);
}

.pa-posts::before,
.pa-respect::before,
.pa-fld1::before {
  display: inline-block;
  text-align: center;
  margin: 0 3px 0 0 !important;
  font-size: 10px;
  font-family: "Font Awesome 6 Pro";
  color: var(--text1);
  font-weight: bold;
}

.pa-posts::before {content: "\f075";}
.pa-respect::before {content: "\f004";}
.pa-fld1::before {content: "\f555";}

/* Стили самой обложки */
li.pa-fld3 {
  position: absolute;
  margin-top: -70px;
  margin-left: -10px;
  z-index: -1 !important;
}

li.pa-fld3::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 70px;
  top: 60px;
  background: linear-gradient(to top, var(--bg1), transparent);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}

li.pa-fld3 img {
  border-radius: 10px 10px 0 0;
}

.pa-fld3 .twin {
  position: absolute;
  right: 8px;
  top: 8px;
  background: var(--bg1);
  padding: 4px 3px;
  border-radius: 50%;
}

/* Полностью скрываем блок обложки, если внутри нет картинки */
li.pa-fld3:not(:has(img)) {
  display: none !important;
}


li.pa-fld4 {
  margin-left: -10px;
  margin-top: 12px;
}

/* личное звание */
.pa-fld2 {
  position: relative;
}

.pa-fld2 .fd {
  padding: 2px 4px 2px 4px !important;
  text-align: center;
  width: 180px;
  background: var(--bg2);
  margin-top: 5px;
  border-radius: 10px;
  font-size: 8px;
}

.lz {
  padding: 5px 4px 5px 4px !important;
  margin-top: 5px;
  /* margin-left: 10px; */
  text-align: center;
  width: 180px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 9px;
  color: var(--text1) !important;
}

.lz a {
  color: var(--link1) !important;
}

.lz a:hover {
  color: var(--link2) !important;
}

.lz a.ank {
  display: block;
  margin-bottom: -5px;
  text-align: center;
  text-transform: lowercase;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  color: var(--link1) !important;
  font-weight: 900 !important;
}

.lz a.ank:hover {
  color: var(--link2) !important;
}

/* C3.7 */
.pa-author {
  font-size: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-transform: lowercase;
  font-weight: bold;
  margin-bottom: 7px;
  margin-top: -7px;
  letter-spacing: -0.5px;
}

/* C3.8 */
.pa-author a {
  text-decoration: none;
}

/* C3.9 */
li.pa-title {
  padding-bottom: 7px;
  font-size: 8px;
}

li.pa-avatar img {
  border-radius: 10px;
  max-width: 180px;
  max-height: 180px;
}

/* Индикатор онлайна */
.punbb .post,
.punbb .post .post-body,
.punbb .post .post-author,
.punbb .post .post-author ul {
  overflow: visible !important;
}

.punbb .post .post-author ul {
  position: relative !important;
}

.punbb .post .post-author ul li.pa-online {
  position: absolute;
  right: 10px; 
  top: 10px; 
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  background: transparent !important;
  border-radius: 0;
  animation: none !important;
  overflow: visible !important;
  opacity: 0.8;
  z-index: 100;
}

.punbb .post .post-author ul li.pa-online::before {
  content: "\f005";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900; /* Solid (сплошная) */
  font-size: 12px;
  display: block;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--bg2);
  opacity: 1;
}

.punbb .post .post-author ul li.pa-online::after {
  display: none;
}

.punbb .post.online .post-author ul li.pa-online::before,
.punbb .post .post-author.online ul li.pa-online::before {
  color: var(--text1);
  opacity: 0.3;
}

.punbb .post.not-online .post-author ul li.pa-online::before,
.punbb .post:not(.online) .post-author:not(.online) ul li.pa-online::before,
.punbb .post.not-online .post-author ul li.pa-online:hover::before,
.punbb .post:not(.online) .post-author:not(.online) ul li.pa-online:hover::before {
  color: var(--bg3);
  opacity: 1;
}

.punbb .post .post-author ul li.pa-online:hover::before {
  transform: scale(1.1);
}

.punbb .post.online .post-author ul li.pa-online:hover::before,
.punbb .post .post-author.online ul li.pa-online:hover::before {
  color: var(--text1);
  opacity: 0.7;
}

/* Всплывающая подсказка */
.punbb .post .post-author ul li.pa-online:hover strong {
  opacity: 1;
  visibility: visible;
}

.post-author .pa-online strong {
  position: absolute;
  display: inline-block !important;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  right: auto !important;
  top: auto !important;
  padding: 0 8px !important;
  min-height: 24px;
  line-height: 24px;
  background: var(--bg3);
  font-weight: 400;
  white-space: nowrap;
  color: var(--text1);
  font-size: 90%;
  text-shadow: var(--text1) 0 -1px 0;
  text-align: center;
  z-index: 9999 !important;
  border-radius: 10px;
  transition: all 0.2s ease;
  opacity: 0;
  visibility: hidden;
  cursor: text;
  pointer-events: none;
}

/* Треугольник-указатель у подсказки */
.post-author .pa-online strong:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  top: auto !important;
  border-width: 6px 6px;
  border-style: solid;
  border-color: var(--bg3) transparent transparent transparent;
}

/* C3.11 */
.punbb .post-body {
  margin-left: 20em;
  border-left-style: none;
  border-left-width: 1px;
  padding: 0 0 1px 0;
}

/* C3.12 */
.punbb .post-box {
  padding: 1em;
}

/*C3.13 */
.punbb fieldset .post-box {
  margin-bottom: 0.8em;
}

/* C3.14 */
.punbb .post-links {
  margin-left: 17.6em;
  border-left-style: none;
  border-left-width: 0px;
}

/* C3.15 */
.punbb .post-links ul {
  padding: 0 1em 0 0;
  height: 2em;
  line-height: 2em;
  margin-left: -19em;
  border-top-style: none;
  border-top-width: 0px;
  background: transparent;
  text-align: right;
}

/* C3.16 */
.punbb .post-links li {
  display: inline;
  padding-left: 1em;
  text-transform: lowercase;
}

.punbb .post-links li a {
  background: var(--bg1);
  padding: 2px 8px;
  border-radius: 8px;
}

.punbb .post-links li a:hover {
  background: var(--bg1);
}

/* C3.17 */
.pl-email,
.pl-website {
  float: left;
}

.pa-gifts {
  display: none;
}

.punbb .post h3 a.permalink {
  text-transform: lowercase;
}

.punbb .post h3 a.sharelink::before,
.punbb .post li.pl-email.profile a::before,
.punbb .post li.pl-email.pm a::before,
.punbb .post li.pl-email.email a::before,
.punbb .post li.pl-delete a::before,
.punbb .post li.pl-edit.edit-ajax a::before,
.punbb .post li.pl-edit a::before,
.punbb .post li.pl-quote a::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  color: var(--bg2) !important;
  transition: 0.2s cubic-bezier(0.4, 0, 1, 1);
  margin-right: 6px;
}

.punbb .post h3 a.permalink::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  color: var(--link1) !important;
  transition: 0.2s cubic-bezier(0.4, 0, 1, 1);
  margin-right: 6px;
}

.punbb .post h3 strong::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  color: var(--link1);
  transition: 0.2s cubic-bezier(0.4, 0, 1, 1);
  margin-right: 6px;
}

.punbb .post h3 a.permalink:hover::before,
.punbb .post h3 a.sharelink:hover::before,
.punbb .post li.pl-email.profile a:hover::before,
.punbb .post li.pl-email.pm a:hover::before,
.punbb .post li.pl-email.email a:hover::before,
.punbb .post li.pl-delete a:hover::before,
.punbb .post li.pl-edit.edit-ajax a:hover::before,
.punbb .post li.pl-edit a:hover::before,
.punbb .post li.pl-quote a:hover::before {
  color: var(--link2) !important;
}

del {
  text-decoration: none;
  filter: blur(1.5px);
}

del:hover {
  filter: none;
}

/* C3.18 */
.punbb .clearer {
  clear: both;
  height: 0;
  font-size: 0;
}

.sharelink {
  display: none !important;
}

/* C4 Moderator menu
-------------------------------------------------------------*/

/* C4.1 */
.punbb .modmenu .container {
  padding: 0.5em 1em;
  text-align: right;
}

/* C4.2 */
.punbb .modmenu strong,
.punbb .modmenu a {
  height: 1.8em;
  line-height: 1.8em;
}

/* C4.3 */
.punbb .modmenu .container strong {
  float: left;
}

/* C4.4 */
.punbb .modmenu input {
  margin-left: 1em;
}

/* C5 Message boxes
-------------------------------------------------------------*/

/* C5.1 */
.punbb .info .container {
  padding: 0.8em 1em;
}

/* C5.2 */
.punbb .info .container .backlink {
  padding-top: 0.8em;
}

/* C6 Profile
-------------------------------------------------------------*/

/* C6.1 */
#profile .container {
  padding-left: 18.6em;
}

/* C6.2 */
#profilenav {
  float: left;
  width: 14em;
  margin-left: -16.3em;
  display: inline;
}

/* C6.3 */
#profilenav li {
  padding-bottom: 0.8em;
  font-weight: bold;
}

/* C6.4 */
#viewprofile .container {
  min-height: 350px;
}

#viewprofile ul {
  padding: 1.5em 18px 0.8em 18px;
  margin: 0 0 1em 0;
  text-transform: lowercase;
}

#profilenav ul {
  padding: 1em 10px;
  margin: 0 0 1em 0;
  text-transform: lowercase;
  background: var(--bg1);
  border-radius: 10px;
}

td#profile-left {
  background: var(--bg1);
  display: block;
  position: absolute;
  width: 210px !important;
  text-align: center;
  padding: 10px 0 !important;
  border-radius: 10px;
}

li#profile-title strong {
  margin-top: -2px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 8px;
  text-transform: lowercase;
  color: var(--text1);
  font-weight: normal !important;
}

li#pa-edit strong a {
  padding-left: 10px !important;
}

/* C6.5 */
#viewprofile h2 {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 14px;
}

#profilenav h2 {
  width: 150px;
  text-align: center;
}

/* C6.6 */
#viewprofile h2 span,
#profilenav h2 span {
  padding: 0 5px;
  position: relative;
}

/* C6.7 */
#viewprofile li,
#setmods dl {
  padding: 0 0 0 16em;
  margin-bottom: 0em;
}

/* C6.8 */
#viewprofile li span {
  float: left;
  width: 14em;
  margin-left: -16em;
  padding: 0.5em 1em;
  font-weight: bold;
}

#profile-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  width: auto !important;
  flex: 1;
  padding-left: 230px !important;
  margin-top: -5px;
}

#profile-right li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: auto;
  text-align: center;
  padding: 10px !important;
  font-size: 10px;
  background: var(--bg1);
  border-radius: 10px;
  align-self: stretch;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  gap: 5px;
}

#profile-right li strong {
  font-weight: normal;
  padding: 0 !important;
  margin: 0 !important;
}

#pun #profile-right li span {
  float: none;
  margin: 0;
  width: auto;
  font-weight: 700;
  padding: 0;
  font-size: 10px;
}

#pa-invites,
#pa-gifts,
#pa-awards {
  display: none !important;
}

/*C6.9 */
#setmods dt {
  float: left;
  width: 14em;
  margin-left: -16em;
  padding: 0.8em 1em;
  font-weight: bold;
  display: inline;
}

/* C6.10 */
#viewprofile li strong,
#viewprofile li div,
#setmods dd {
  display: block;
  padding: 0.5em 1em;
  font-weight: normal;
}

/* C6.11 */
.punbb img.avatardemo {
  float: right;
  margin: 0 0 0.8em 1.8em;
}

/* C7 User list
-------------------------------------------------------------*/

/* C7.1 */
#pun-userlist .formal,
#pun-userlist .formal .container {
  border-bottom: none;
  margin-bottom: 0;
}

/* C7.2 */
#pun-userlist .usertable .container {
  padding: 0 2.3em 2.3em 2.3em;
  border-top: none;
}

/* C7.3 */
#pun-userlist .usertable table {
  border-style: none;
  border-width: 0px;
}

/*************************************************************
D - PUNBB SECTIONS OTHER THAN MAIN CONTENT
**************************************************************/

/* D1 Logo and description
-------------------------------------------------------------*/

/* D1.1 */
#pun-title {
  margin: 0;
  border: none;
  background: transparent;
}

/* D1.2 */
#pun-title h1 {
  display: block;
  height: 40px;
  padding: 2em 1em 0 1em;
}

/* D1.3 */
#pun-title .container {
  border: none;
}

/* D1.4 */
#pun-title h1 span {
  font-size: 1.5em;
}

/* шапка */

#pun-title table {
  background: var(--head) no-repeat top center;
  height: 350px;
  width: 1100px;
  margin-top: 0px !important;
  margin-left: -20px;
  border: none;
}

#pun-title td.title-logo-tdl {
  display: none;
}

#pun-title td.title-logo-tdr {
  border: none;
  width: 100%;
}

/* D2 Page navigation
-------------------------------------------------------------*/

/* D2.1 */
#pun-pagelinks {
  position: absolute;
  top: -15px;
  left: 0;
  margin: 0;
  border: none;
  padding: 0;
  width: 100%;
}

/* D2.2 */
#pun-pagelinks .container {
  background: transparent;
  border: none;
  padding: 0;
}

/* D2.3 */
#pun-pagelinks .container li {
  display: inline;
}

/* D2.4 */
#pun-pagelinks li a,
#pun-pagelinks a:link,
#pun-pagelinks a:hover {
  height: 2em;
  line-height: 2em;
  padding: 0;
  font-size: 1.2em;
  margin-left: -9999px;
  display: block;
  float: left;
  width: 100%;
}

/* D2.5 */
#pun-pagelinks a:active,
#pun-pagelinks a:focus {
  position: relative;
  margin: 0;
}

#pun-pagelinks li a span {
  display: block;
  margin: 0 1em;
}

/* D3 Forum navigation
-------------------------------------------------------------*/

/* D3.1 */

#pun-navlinks {
  position: absolute;
  border: none;
  text-align: center;
  width: 1100px;
  margin-top: -350px;
  margin-left: -20px;
  font-size: 16px;
  background: var(--bg3);
  font-weight: 900;
  text-transform: uppercase;
}


#pun-navlinks a {
  color: var(--button1);
  transition: transform 0.4s ease;
  padding: 1px;
}

#pun-navlinks a:hover {
  color: var(--button2);
  transition: transform 0.4s ease;
  transform: scale(1.1);
}

#pun-navlinks li#navlogout a {
  margin-right: 10px;
}

/* D3.2 */
#pun-navlinks .container {
  padding: 0.7em 1em;
  background: transparent;
}

#navawards {
  display: none !important;
}

#navadmin span {
  font-size: 0;
}

#navadmin a:before {content: "амс";}

/* D.3 */
#pun-navlinks li {
  display: inline;
  padding-right: 0.5em;
}

/* D3.4 */
#pun-navlinks li a {
  font-size: 1.1em;
  display: inline-block;
  text-decoration: none;
}

span.num_msg {
  margin-top: -6px !important;
  margin-left: 1px !important;
  background: var(--text2) !important;
  border-radius: 20px !important;
}

span.num_msg:before {
  display: none !important;
}

/* D4 User links
-------------------------------------------------------------*/

/* D4.1 */
#pun-ulinks {
  position: absolute;
  text-align: right;
  width: 1060px;
  z-index: 2;
}

/* D4.2 */
#pun-ulinks .container {
  border: none;
  background: var(--bg3);
  width: 1090px;
  margin-left: -20px;
  padding: 5px 5px;
  text-align: center;
  margin-top: -23px;
}

/* D4.3 */
#pun-ulinks li,
#pun-ulinks li a {
  display: inline;
  white-space: nowrap;
  text-transform: lowercase;
  font-size: 10px;
  color: var(--text1);
  text-decoration: none;
}

#pun-ulinks li a:hover {
  color: var(--text1);
}

/* D4.4 */
#pun-ulinks li a {
  padding: 0 0.3em 0 0.6em;
}

/* D4.5 */
#pun-ulinks li.item1,
#pun-ulinks li.item1 a {
  border: none;
  padding-left: 0;
}

/* D5 Welcome box and Top Breadcrumbs
-------------------------------------------------------------*/

/* D5.1 */
#pun-status,
#pun-status .container {
  border-bottom: none;
  margin-bottom: 0;
}

/* D5.2 */
#pun-status .container {
  padding: 3em 1em 1em 1em;
}

/* D5.3 */
#pun-status span {
  white-space: nowrap;
  margin-right: 0.5em;
}

/* D5.4 */
#pun-crumbs1 {
  font-weight: bold;
  overflow: hidden;
  margin-top: 0;
}

/* D5.5 */
#pun-crumbs1 p.container {
  border-top: none;
  padding: 1em 1em 0.8em 1em;
  font-size: 1.1em;
}

/* D5.6 */
#pun-break1 {
  border-style: none;
  border-width: 1px 0;
  height: 0;
  margin: -2px 1em;
  position: relative;
  z-index: 1;
}

/* D6 Announcement
-------------------------------------------------------------*/

/* D6.1 */
#pun-announcement h2 {
  padding: 0;
  margin: 0 1em -3.5em 1em;
  border-style: none none solid none;
  border-width: 0 0 1px 0;
  position: relative;
  font-weight: bold;
}

/* D6.2 */
#pun-announcement h2 span {
  display: block;
  padding: 1em 0 0.8em 0;
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

/* D6.3 */
#pun-announcement .container {
  padding: 4.3em 1em 1em 1em;
}

/* D7 Statistics
-------------------------------------------------------------*/

/* D7.1 */
#pun-stats .container {
  padding: 0.8em 1em;
  text-align: justify;
  
}

/* D7.2, D7.3 */
#pun-stats li.item1,
#pun-stats li.item2,
#pun-stats li.item3,
#pun-stats li.item4 {
  float: left;
  background: var(--bg1);
  margin: 0px 2px;
  padding: 4px 10px;
  gap: 4px;
  display: flex;
  justify-content: center;
  color: var(--text1) !important;
  font-size: 8px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 15px;
  text-transform: lowercase;
  border-radius: 10px;
}

#pun-stats li.item1 {
  width: 15%;
}
#pun-stats li.item2 {
  width: 15%;
}
#pun-stats li.item3 {
  width: 25%;
}
#pun-stats li.item4 {
  width: 35%;
}

#pun-stats li.item4 a {
  color: var(--link1) !important;
}

#pun-stats li.item4 a:hover {
  color: var(--link2) !important;
}

/* D7.4 */
li#onlinelist {
  margin-top: 1em;
  border-top-style: none;
  border-top-width: 0px;
  float: left;
  width: 100%;
  line-height: 130%;
  text-transform: lowercase;
}

/* D7.5 */
li#onlinelist div {
  border-top-style: none;
  border-top-width: 0px;
  padding: 0.7em 0 0 0;
}

/* D8 Quick Jump - About - Bottom Breadcrumbs
-------------------------------------------------------------*/

/* D8.1 */
#pun-qjump {
  margin: 0;
  border: none;
  width: 50%;
  position: relative;
  float: left;
}

/* D8.2 */
#pun-qjump .container {
  border: none;
  background: transparent;
  padding: 0.8em 1em;
}

/* D8.3 */
#pun-about {
  margin-top: 0;
}

/* D8.4 */
#pun-about .container {
  border-top-style: none;
  text-align: right;
  line-height: 150%;
  padding: 0.8em 1em;
}

/* D8.5 */
#pun-about p span {
  display: none;
}

/* D8.6 */
#pun-crumbs2 {
  font-weight: bold;
  overflow: hidden;
  margin-bottom: 5px;
  border-bottom: none;
}

/* D8.7 */
#pun-crumbs2 .container {
  border-bottom: none;
  margin-top: -10px;
  padding: 1em;
  font-size: 1.1em;
}

/* D8.8 */
#pun-break4 {
  margin: -2px 1em;
  border-style: none;
  border-width: 1px 0;
  position: relative;
  height: 0;
  z-index: 1;
}

/* D8.9 */
div.punbb-admin #pun-about .container {
  border-top-style: none;
  border-top-width: 1px;
}

/* Sticky elements
-------------------------------------------------------------*/

#pun-adnav {
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
}

#pun-adnav sup {
  display: none;
}

#pun-adnav li {
  list-style: none !important;
}

#adnav-standard > ul > li {
  padding: 2px;
}

#pun-adnav ul.adsubnav li {
  padding-left: 2px !important;
}

#adnav-standard > ul > li > a {
  display: block;
  padding: 2px;
  box-sizing: border-box;
  position: relative;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--link1);
}

#pun-adnav li.isactive > a {
  background: var(--bg1);
  color: var(--text2);
  border-radius: 5px;
}

#pun-adnav li.item3:not(.isactive) > a,
#pun-adnav li.item-forms:not(.isactive) > a,
#pun-adnav li.item15:not(.isactive) > a,
#pun-adnav li.item16:not(.isactive) > a,
#pun-adnav li.item20:not(.isactive) > a,
#pun-adnav li.item11:not(.isactive) > a,
#pun-adnav li.item22:not(.isactive) > a {
  background-color: var(--text1);
  border-radius: 5px;
}

#pun-adnav li.item3 > a:after,
#pun-adnav li.item-forms > a:after,
#pun-adnav li.item15 > a:after,
#pun-adnav li.item16 > a:after,
#pun-adnav li.item20 > a:after,
#pun-adnav li.item11 > a:after,
#pun-adnav li.item22 > a:after {
  content: "\f005";
  font: 700 12px "Font Awesome 6 Pro";
  margin-top: 1px;
  margin-left: 2px;
  float: right;
}

#adnav-standard > ul > li > a:hover {
  background: var(--link2) !important;
  color: var(--bg1);
  border-radius: 5px;
}

#pun-adnav .adsubnav {
  padding-left: 2px;
}

#pun-admain .submittop {
  position: -webkit-sticky;
  position: sticky;
  top: 56px;
  background: var(--bg1);
  padding: 8px 16px;
  margin-bottom: 16px;
  z-index: 7;
}

/* D9 Help file
-------------------------------------------------------------*/

/* D9.1 */
#pun-help .formal .info-box h3.legend {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  padding-bottom: 0;
  margin-bottom: 0.8em;
}

/* D9.2 */
#pun-help .formal .info-box h3.legend span {
  padding-bottom: 0.6em;
  display: block;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  font-size: 1.1em;
}

/* D9.3 */
#pun-help .formal p,
#pun-help .formal dd {
  margin-bottom: 1em;
}

/* D9.4 */
#pun-help .formal ul,
#pun-help .formal dl {
  padding: 0 0 0 1em;
}

/* D9.5 */
#pun-help .formal li {
  padding: 0;
  line-height: 130%;
}

/* D9.6 */
#pun-help .formal li * {
  vertical-align: text-top;
}

/* D9.7 */
#pun-help .formal dt span {
  font:
    1.4em/120% monaco,
    "bitstream vera sans mono",
    "courier new",
    courier,
    monospace;
}

/* D9.8 */
#pun-help .formal .parsedmsg,
#pun-help .formal .parsedmsg .incode {
  padding-bottom: 0;
}

/* Футер
 -------------------------------------------------------------*/

#pun-about p.container {
   background: var(--footer) no-repeat;
  width: 1100px;
  height: 88px;
  margin-left: -20px;
  margin-top: 0;
  margin-bottom: -80px;
  font-size: 8px !important;
  text-align: center;
}

.banners {
  width: 750px;
  height: 70px;
  margin-top: -21px;
  margin-left: 154px;
  position: absolute;
  display: block;
  overflow-y: auto;
  z-index: 1;
  padding: 8px;
  border-radius: 10px;
}

.banners img {
  mix-blend-mode: luminosity;
  opacity: 0.7;
  transition: all 0.5s ease-in-out 0s;
}

.banners img:hover {
  mix-blend-mode: normal;
  opacity: 1;
}

/* Скроллбар
-------------------------------------------------*/

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text1);
  border-radius: 5px;
}

/* смена стиля 
------------------------------------------------*/

#theme_switcher input {
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: 0.5; 
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat; 
}

#theme_switcher input#light{
    background-image: url(https://forumstatic.ru/files/001c/d6/c0/94655.png);
    cursor: pointer;
}

#theme_switcher input#dark {
     background-image: url(https://forumstatic.ru/files/001c/d6/c0/91217.png);
    cursor: pointer;
}

#theme_switcher #light{
    position: absolute;
    left: 390px;
    top: 235px;
}

#theme_switcher #dark{
    position: absolute;
    left: 440px;
    top: 235px;
}

#theme_switcher label {
  display: none;
}

/* БыстроПлюсы для Топика 
-----------------------------------------*/

.noNull:before {
  content: "+";
  font-size: 9px;
  display: inline-block;
  margin-left: -6px;
  margin-top: 0px;
  position: absolute;
}

div .post-rating p > a {
  text-align: center;
  outline: 1px solid transparent;
  font-weight: 700;
  background: url(https://forumstatic.ru/files/001b/a6/d4/26514.svg) no-repeat center;
  background-size: 38px auto;
  position: relative;
  padding-left: 1px;
  z-index: 100;
  width: 38px;
  height: 38px;
  font-size: 12px !important;
  display: inline-block;
  vertical-align: middle;
  line-height: 34px;
  letter-spacing: -1px;
  color: #c9c9c9;
}

div.dark-style .post-rating p > a {
  color: #c9c9c9 !important;
}

div.post-vote {
  margin-bottom: 65px;
}

div.post-vote p > a {
  font-size: 0 !important;
  position: absolute;
  cursor: pointer;
  z-index: 200;
  width: 23px;
  height: 23px;
  background: url(https://forumstatic.ru/files/0012/d8/04/75043.png) no-repeat;
  display: block;
  background-size: 100%;
  margin-left: 29px;
  margin-top: 42px;
}

.post.dark-style div.post-vote p > a {
  background: url(https://forumstatic.ru/files/0012/d8/04/38128.png) no-repeat;
  background-size: 100%;
}
 
/* фикс */

.rusff-mention,
.rusff-mention-picker,
.rusff-mention-picker[hidden],
.rusff-mention-picker button[aria-selected="true"],
.rusff-mention-picker button,
.rusff-mention-status {
  display: none !important;
}

/* Оформление тихой цитаты [block="quiet-quote"] */
.punbb .post-content .quiet-quote {  
  margin: 0.5em 1.8em;
  padding: 20px;
  background: var(--bg3);
  border-radius: 20px;
  border-left: 3px solid var(--button1);
  font-size: 0.95em;
  color: var(--text1);
  display: flex;
  align-items: center;
}

/* Разделяем строки таблицы и задаем расстояние 10px между форумами */
#pun-index .category table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
}