/*************************************************************
CODE STRUCTURE BY BLANCHE
**************************************************************

FONTS / ROOT / LINKS
-------------------------------------------------------------*/
@import url(style_cs.1773487124.css);
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,1,0");
@import url("https://kit-pro.fontawesome.com/releases/v6.6.0/css/pro.min.css");
@import url("https://fonts.googleapis.com/css2?family=PT+Mono&display=swap");

/*-------------------------------------------------------------------------------------- fonts used in design */
@font-face {
  font-family: SF Display;
  font-weight: 300;
  src: url("https://forumstatic.ru/files/001c/ab/5b/36700.woff") format("woff");
}

@font-face {
  font-family: SF Display;
  font-weight: 400;
  src: url("https://forumstatic.ru/files/001c/ab/5b/42274.woff") format("woff");
}

@font-face {
  font-family: SF Display;
  font-weight: 500;
  src: url("https://forumstatic.ru/files/001c/ab/5b/64352.woff") format("woff");
}

@font-face {
  font-family: SF Display;
  font-weight: 600;
  src: url("https://forumstatic.ru/files/001c/ab/5b/44091.woff") format("woff");
}

@font-face {
  font-family: SF Display;
  font-weight: 700;
  src: url("https://forumstatic.ru/files/001c/ab/5b/67338.woff") format("woff");
}

@font-face {
  font-family: SF Text;
  font-weight: 400;
  src: url("https://forumstatic.ru/files/001c/ab/5b/61650.woff") format("woff");
}

@font-face {
  font-family: SF Text;
  font-weight: 400;
  font-style: italic;
  src: url("https://forumstatic.ru/files/001c/ab/5b/26009.woff") format("woff");
}

@font-face {
  font-family: SF Text;
  font-weight: 500;
  src: url("https://forumstatic.ru/files/001c/ab/5b/70994.woff") format("woff");
}

@font-face {
  font-family: SF Text;
  font-weight: 600;
  src: url("https://forumstatic.ru/files/001c/ab/5b/30196.woff") format("woff");
}

@font-face {
  font-family: NeverLetGo;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/50823.ttf") format("woff");
}

@font-face {
  font-family: CaslonNo540D;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/93505.ttf") format("woff");
}

@font-face {
  font-family: TheYoungest;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/25778.ttf") format("woff");
}

@font-face {
  font-family: Sirivennela;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/18780.ttf") format("woff");
}

@font-face {
  font-family: TTMONTERODEMO;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/26416.ttf") format("woff");
}

@font-face {
  font-family: Lazurski;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/38795.ttf") format("woff");
}

@font-face {
  font-family: TRTPachelDemo;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/18568.ttf") format("woff");
}

@font-face {
  font-family: MsMadi;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/70973.ttf") format("woff");
}

@font-face {
  font-family: Partisanpress;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/35658.otf") format("woff");
}

@font-face {
  font-family: Onatur;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/89505.otf") format("woff");
}

@font-face {
  font-family: dehinted;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/90180.ttf") format("woff");
}

@font-face {
  font-family: 23-seconds-to-midnigh;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/42202.ttf") format("woff");
}

@font-face {
  font-family: 23-seconds-to-midnigh;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/42202.ttf") format("woff");
}

@font-face {
  font-family: Amelia;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/16161.ttf") format("woff");
}

@font-face {
  font-family: Kommuna;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/56272.ttf") format("woff");
}

@font-face {
  font-family: Erotica;
  font-weight: 400;
  src: url("http://forumstatic.ru/files/001c/ac/cf/92088.ttf") format("woff");
}
/***************************************/

:root {
  --bg: url(https://forumstatic.ru/files/001c/ab/5b/23814.webp) center fixed
    var(--bg-color);
  --main-w: 1000px;
  --main-p: 12px;

  --title-bg: /*url(https://forumstatic.ru/files/001c/ab/5b/83928.webp)*/
    url(https://forumstatic.ru/files/001c/ab/5b/69578.webp) center / cover;
  --title-h: /*504px*/ 270px;

  --pun-bg: url(https://forumstatic.ru/files/001c/14/5b/69644.webp) top 0px
    left -40px;

  --font: SF Display;
  --font-fav: SF Text;
  --post-text: 400 12px/17px var(--font);

  --pun: var(--color-light1);
  --pun1: var(--color-light2);
  --bg-color: #444444;

  --color-accent1: #e69966;
  --color-accent2: #8797bf;
  --color-accent3: #acbbe1;

  --color-gray1: #727272;
  --color-gray2: #9e9e9e;
  --color-gray3: #e0e0e0;

  --color-dark1: #121212;
  --color-dark2: #2c2c2c;

  --color-light1: #f7f7f7;
  --color-light2: #fdfdfd;
  --color-light3: #eeeeee;

  --notify: var(--color-dark2);
  --link: var(--color-accent2);

  --content-icon: "\2736";
  --border1: 1px solid rgba(var(--color-accent1), 0.3);
  --txt-sh: 1px 1px 2px rgba(0, 0, 0, 0.7);

  --prof-w: 220px;
  --profnav-w: 180px;
  --post-p: 40px;
  --usav: 40px;
  --av-gst: url("https://forumstatic.ru/files/001c/ab/5b/26821.png?v=1")
    top/cover;
  --av-def: var(--av-gst);

  --main-intd-gap: 25px;
  --intd-gap: 25px;
  --main-icon-w: 45px;
  --main-icon-h: 120px;
  --icon-w: 18px;
  --icon-h: 18px;

  --arrows: 40px;
  --arrows-h: 67px;

  --scroll-h: calc(var(--navscroll-h) + 10px);
  --navscroll-h: 52px;

  --ls-w: 1079px;
  --ls-h: 668px;
  --ls-pun: #f0f0f0;
  --icon-color: #aaaaaa;

  --mat: "Material Symbols Outlined";
  --mat1: "Material Symbols Rounded";
  --faw: "Font Awesome 6 Pro";
}

/***************************************/

a {
  text-decoration: none;
  transition:
    color 0.3s,
    background 0.3s,
    border 0.3s,
    padding 0.2s;
  color: var(--link);
}

#pun-admain a,
#MyBookmarks span.scrl {
  color: var(--link) !important;
}

a:hover,
a:focus,
a:active {
  color: var(--color-accent2);
}

:focus {
  outline: none !important;
}

.adlabel,
.adlabel a {
  color: var(--color-dark1) !important;
}

/* ETO BAZA: BODYb, PUNb, TITLEb
--------------------------------------------------------------------------------------------------------------------------*/
html,
body {
  margin: 0;
  padding: 0;
}

html * {
  box-sizing: border-box;
  -webkit-text-size-adjust: none;
  text-transform: lowercase;
}

body,
body.redirect-page {
  background: var(--bg);
}

body:before {
  content: "";
  background: url(https://forumstatic.ru/files/001c/ab/5b/15768.webp) top /
    cover;
  aspect-ratio: 1056 / 292;
  width: 546px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: -1;
}

body:after {
  content: "";
  background: url(https://forumstatic.ru/files/001c/ab/5b/18360.webp) top /
    cover;
  aspect-ratio: 414 / 760;
  width: 212px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

#pun:before {
  content: "";
  top: 0;
  right: 0;
  position: fixed;
  background: url(https://forumstatic.ru/files/001c/ab/5b/66832.webp) top /
    cover;
  aspect-ratio: 718 / 380;
  width: 359px;
  z-index: -1;
}

#pun:after {
  content: "";
  bottom: 0;
  right: 0;
  position: fixed;
  background: url(https://forumstatic.ru/files/001c/ab/5b/23754.webp) top /
    cover;
  aspect-ratio: 770 / 370;
  width: 385px;
  z-index: -1;
}

/***************************************/

#pun {
  position: relative;
  width: var(--main-w);
  font: 400 11px/1 var(--font);
  color: #151515;
  margin: 33px auto 70px auto;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.25);
}

.punbb {
  background: var(--color-dark2);
}
#pun-index {
  background: transparent;
}

#pun-crumbs1,
#pun-crumbs2,
#pun-stats .container,
#pun-main .category .container,
#pun-admain,
.post,
.linkst,
.linksb,
#pun-viewtopic .modmenu,
#post,
#pun-main,
#pun-viewforum #subforums,
#userlist,
.online-list tbody,
#pun-respect .container tbody,
#pun-positive .container tbody {
  background: var(--pun);
  padding: var(--main-p) !important;
  border-radius: 8px;
}

#pun-main .category .container {
  padding: 35px 5px 50px 0 !important;
}

#pun-crumbs1 {
  padding-top: 71px !important;
}

#pun-crumbs2 {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

#pun-crumbs1,
.post:last-of-type,
#pun-viewtopic .modmenu,
#post,
#pun-viewforum .linksb,
#pun-searchposts .linksb,
#pun-userlist .linkst,
#pun-userlist .linksb,
#pun .usertable tbody,
#pun #pun-online .online-list tbody,
#pun-multimove .linksb,
#pun-modviewforum .linksb,
#pun .hasicon,
#pun #pun-respect .container tbody,
#pun #pun-positive .container tbody,
#pun-respect .linksb,
#pun-positive .linksb,
.topic.closed + .linksb {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#pun-main,
#pun-admain {
  border-radius: 0;
  position: relative;
}

.linkst,
.linksb,
#pun-viewtopic .modmenu,
#pun-crumbs2,
#pun-main,
#userlist {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  position: relative;
}

.gid1 .hasicon,
.gid2 .hasicon {
  border-radius: 8px !important;
}

.gid1 #pun-viewforum .linksb {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.linkst,
#pun-viewtopic .modmenu,
#pun-crumbs2,
#pun-admain {
  border-top: 1px solid var(--color-gray3);
}

#pun-index #pun-main,
#pun-viewtopic #pun-main,
#pun-post #pun-main,
#pun-edit #pun-main,
#pun-viewforum #pun-main,
#pun-searchposts #pun-main,
#pun-userlist #pun-main,
#pun-online #pun-main,
#pun-modviewforum #pun-main,
#pun-multimove #pun-main,
#pun-messages .post,
#pun-respect #pun-main,
#pun-positive #pun-main {
  background: transparent;
  border-top: none;
  box-shadow: none;
  padding: 0 !important;
}

#pun-modviewforum thead tr {
  padding-right: 22px !important;
}

/***************************************/
#pun-title,
#pun-announcement {
  width: var(--main-w);
  height: var(--title-h);
}

#pun-title {
  background: var(--title-bg);
  border-radius: 8px;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.25);
  position: relative;
  margin-bottom: 8px;
  z-index: 1;
}

#pun-title:after {
  content: "";
  width: 501px;
  aspect-ratio: 1032 / 156;
  position: absolute;
  background: url(https://forumstatic.ru/files/001c/ab/5b/75098.webp) top /
    cover;
  bottom: -35px;
  left: 388px;
}

#pun-announcement {
  position: absolute;
  top: 0;
}

/* NAVLINKS / ULINKS
--------------------------------------------------------------------------------------------------------------------------*/
#pun-navlinks,
#pun-ulinks {
  position: absolute;
  width: 100%;
}

#pun-navlinks .container,
#pun-ulinks .container {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  font-size: 11px;
}

#pun-navlinks {
  z-index: 2;
  top: 0;
}

#pun-ulinks {
  z-index: 2;
  top: -33px;
}

/*-------------------------------------------------------------------------------------- navlinks */
#pun-navlinks .container {
  gap: 14px;
  background: var(--color-dark1);
  border-radius: 0 0 20px 20px;
  padding: 2px 12px 4px;
  height: 27px;
  font-weight: 500;
}

#navlogout,
#navlogin {
  display: flex;
  gap: inherit;
}

/*-------------------------------------------------------------------------------------- ulinks */
#pun-ulinks .container {
  gap: 10px;
  height: 33px;
  padding: 0 20px;
}

/*-------------------------------------------------------------------------------------- links color and animation */
#pun-ulinks a {
  color: var(--color-light1);
}

#pun-ulinks a,
#pun-navlinks li > a {
  transition: color 0.3s;
}

#pun-ulinks a:hover,
#pun-navlinks li > a:hover {
  color: var(--color-accent1);
}

#pun-navlinks li > a {
  color: var(--color-light1);
  display: flex;
  align-items: center;
  gap: 4px;
}

#pun-navlinks li > a:before {
  content: "";
  background-size: cover;
  width: 12px;
  aspect-ratio: 1 / 1;
  margin-top: -2px;
}

#navindex a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/49192.svg);
}

#navuserlist a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/92079.webp);
}

#navsearch a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/71688.webp);
}

#navprofile a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/49570.webp);
}

#navprofile.profmale a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/93529.webp);
}

#navpm a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/97493.webp);
}

#navadmin a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/16212.webp);
}

#navlogout a:before,
#navlogin a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/47043.webp);
}

#navregister a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/67853.png);
}

#navpr_1 a:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/54511.png);
}

a#nota-ql-navbtn:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/56346.png);
}

/*------------------------------------------------------------------------------------- navscroll */
#navscroll {
  position: fixed;
  top: 0;
  left: calc(50% - var(--main-w) / 2);
  width: var(--main-w);
  z-index: 9999;
  transform: translateY(-100%);
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
  opacity: 0;
  height: var(--navscroll-h);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  background: var(--color-light2);
  border-radius: 0 0 8px 8px;
  padding: 8px 0px 6px;
  justify-content: center;
}

#navscroll.show {
  transform: translateY(0);
  opacity: 1;
}

#navscroll.show > div {
  position: relative;
  top: auto;
}

#navscroll.show a {
  color: #252525;
}

#navscroll.show #pun-navlinks .container {
  background: transparent;
  padding: 0;
  height: 21px;
}

#navscroll.show #pun-ulinks .container {
  height: 13px;
}

/* STATUS
--------------------------------------------------------------------------------------------------------------------------*/
#pun-status .container {
  font-size: 10px;
  margin: 20px 0 0 0;
  width: 290px;
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px 0;
  z-index: 1;
  flex-wrap: wrap;
}

#pun-status .container,
#pun-status .container * {
  font-weight: 400;
  color: var(--color-dark2);
}

#pun-status a:hover,
#pun-status .item3 a,
#pun-status .item4 a {
  color: var(--color-accent2);
}

#pun-status .item3 {
  font-size: 0;
}

#pun-status .item3 a {
  font-size: 10px;
}

#pun-status .status-right + .status-right:before {
  content: "/";
  margin: 0 5px;
}

#pun-status .status-right {
  float: none !important;
}

.status_wrap_one {
    display: flex;
    gap: 3px;
}

/* CATEGORY
--------------------------------------------------------------------------------------------------------------------------*/
.category .container,
.statscon {
  position: relative;
}

.category h2 {
  margin: -15px 0;
  display: flex;
  align-items: flex-end;
  position: relative;
  z-index: -1;
  justify-content: flex-start;
  font-size: 0;
  width: var(--main-w);
  aspect-ratio: 2000 / 140;
  background-size: cover;
}

#pun-stats h2 {
  margin: -28px 0 0 0;
  z-index: 9;
  background: url(https://forumstatic.ru/files/001c/ab/5b/48077.webp) top /
    cover;
  aspect-ratio: 362 / 136;
  width: 166px;
  position: absolute;
  left: 22px;
  font-size: 0;
}

.category-2 h2 {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/14329.webp);
}

.category-3 h2 {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/39445.webp);
}

.category-4 h2 {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/20843.webp);
}

.category-5 h2 {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/19046.webp);
}

.category-6 h2 {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/78428.webp);
}

.category-7 h2 {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/37447.webp);
}

/***************************************/

.category h2 span {
}

/* HASICONb / STRUCTURE EVERYWHERE
--------------------------------------------------------------------------------------------------------------------------*/
table {
  width: 100%;
}

.hasicon,
.usertable tbody,
#messages tbody,
#pun-respect .container tbody,
#pun-positive .container tbody,
#pun-online .container tbody,
.statscon,
#filetable tbody,
#pun-profile .container > fieldset,
#pun-profile .container > form,
#pun-admain table tbody {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin: 0;
  width: auto;
  font-size: 11px;
  border-radius: 8px;
  background: var(--color-light1);
}

#pun-profile .container > fieldset,
#pun-upavatar .container > fieldset,
#pun-profile .container > form,
#punbbsearch > fieldset,
.adcontainer > fieldset,
.adcontainer > form > fieldset,
#pun-admain3,
#profileContainer > fieldset,
#userlist > fieldset,
#pun-messages fieldset#post-new,
#messages fieldset,
.messages-container > .container > fieldset {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  background: var(--color-light2);
  border-radius: 6px;
  padding: 15px;
}

.messages-container {
  min-height: 267px;
}

#pun-index .hasicon {
  background: transparent;
  padding: 0;
  border-radius: 0;
  gap: 20px;
}

.punbb #filetable td {
  width: auto !important;
  text-align: center;
}

.hasicon td {
  padding: 0;
}

.hasicon tr,
thead tr,
.usertable tr,
#messages tr,
#pun-searchtopics .forum tr,
#pun-respect #pun-main > .section tr,
#pun-positive #pun-main > .section tr,
#pun-online .online-list tr,
.profile-awards-container tr,
#filetable tr,
#pun-admain table tr {
  display: grid;
  gap: 20px;
  grid-template-columns: 45% 9% 9% 30%;
  justify-content: space-between;
  position: relative;
  align-items: center;
  font-size: 11px;
  align-content: center;
  padding: 20px;
  color: var(--color-dark2);
}

.hasicon tr + tr,
.usertable tbody tr + tr {
  border-top: 1px solid var(--color-gray3);
}

#pun-index .hasicon tr {
  gap: 5px;
  grid-template-columns: auto repeat(2, 32px) 1fr;
  background: var(--pun1);
  padding: 0px 23px 0 0;
  min-height: 132px;
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  border-radius: 0 6px 6px 0;
  color: var(--color-gray2);
  border: none;
  align-content: normal;
}

#pun-index .hasicon tr:after {
  content: "";
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/88981.webp);
  aspect-ratio: 152 / 160;
  position: absolute;
  right: -48px;
  width: 68px;
  background-size: cover;
}

#filetable tr {
  grid-template-columns: 10% 17% 17% 10% 11% 1fr 5%;
  white-space: nowrap;
  gap: 20px;
  padding-right: 5px;
}

#pun-profile #filetable tr th {
  width: inherit !important;
}

#pun-profile #filetable tr td {
  padding: 0;
}

#pun-modviewforum tr {
  grid-template-columns: 43% 9% 9% 26% 2%;
}

/*-------------------------------------------------------------------------------------- thead */

thead tr {
  padding: 6px 16px 4px 16px !important;
  background: var(--color-dark2);
  border-radius: 12px 12px 0 0;
}

th {
  text-align: center;
  color: var(--color-light1);
  font-size: 12px;
  font-weight: 500;
}

tr#title-logo-tr {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

thead th:first-child {
  text-align: left;
}

thead th:last-child,
thead .tcr,
.usertable tbody td:last-child {
  text-align: left;
}

/***************************************/

#pun-searchtopics .forum tr {
  grid-template-columns: 40% 20% 6% 26%;
}

.usertable tr {
  grid-template-columns: 20% 28% 9% 9% 12% 10%;
}

#pun-messages .hasicon tr,
#messages thead tr {
  grid-template-columns: 1fr 18% 10% 4%;
  align-items: center;
}

#pun-respect #pun-main > .section tr,
#pun-positive #pun-main > .section tr {
  grid-template-columns: 13% 4% 15% 29% 30%;
}

#pun-online .online-list tr {
  grid-template-columns: 40% 40% 15%;
}

#pun-mod .container tr,
.profile-awards-container tr {
  grid-template-columns: 20% 10% 40% 30%;
}

.profile-awards-container tr .tcl {
  width: inherit !important;
}

#messages td,
#pun-online .online-list td,
#pun-online .online-list th {
  width: auto !important;
  display: flex;
  justify-content: center;
}

#pun-online .online-list td:first-of-type,
#pun-online .online-list td:last-of-type,
#pun-online .online-list th:first-of-type,
#pun-online .online-list th:last-of-type {
  justify-content: flex-start;
}

#pun #pun-online .online-list tbody {
  padding: 0 !important;
}

td.tc2.pmtc24 {
  justify-content: flex-end !important;
  padding-right: 3px !important;
}

#pun-online .tcl.action {
  gap: 3px;
}

#pun-viewforum td.tcr,
#pun-searchtopics td.tcr,
#pun-modviewforum td.tcr {
  display: flex;
  align-items: center;
  justify-items: start;
  justify-content: start;
  gap: 5px;
}

#pun-viewforum td.tcr a,
#pun-searchtopics td.tcr a {
  white-space: nowrap;
  color: #7c9aa1;
  grid-column: 1;
  text-align: right;
  order: 2;
}

/*-------------------------------------------------------------------------------------- fieldset */
fieldset {
  margin: 0 !important;
  padding: 0;
  border: none !important;
}

fieldset + fieldset,
fieldset + form,
fieldset + .select-file {
  margin-top: 22px !important;
}

#post fieldset + fieldset {
  margin-top: 0 !important;
}

#messages fieldset {
  padding: 0 !important;
}

/*-------------------------------------------------------------------------------------- fs-box */
.fs-box.inline {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 7px;
  border: none;
}

#pun-login .fs-box.inline {
  margin-top: 10px;
  position: relative;
}

.inline .infofield {
  font-size: 9px;
  text-align: justify;
}

.hasicon td.tc2,
.hasicon td.tc3 {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pun-index .hasicon td.tc2,
#pun-index .hasicon td.tc3 {
  flex-direction: column;
  font-size: 8px;
  line-height: 125%;
  color: var(--color-dark2);
  gap: 0;
}

#pun-index .hasicon td.tc2 {
  grid-column: 2;
}

#pun-index .hasicon td.tc3 {
  grid-column: 3;
}

#pun-index .hasicon td.tc2:before {
  content: "тем";
}

#pun-index .hasicon td.tc3:before {
  content: "соо";
}

#pun-index .hasicon td.tc2:before,
#pun-index .hasicon td.tc3:before {
  font-weight: 500;
}

.forum .tc2 a {
  font-size: 9px;
  color: var(--bg-color);
}

/*-------------------------------------------------------------------------------------- соо */

/*-------------------------------------------------------------------------------------- тем */

/*-------------------------------------------------------------------------------------- subforums */
#pun-index .hasicon .isub .tcl {
  padding-left: 0px !important;
}

#pun-viewforum .isub .tcl h3 {
  margin: 0 0;
}

#pun-viewforum #subforums {
  margin: 24px 0 0 0;
  font-size: 0;
  padding: 20px !important;
  display: flex;
  gap: 10px;
  position: relative;
  width: 100%;
}

#pun-viewforum #subforums:before {
  content: "подразделы";
  font-weight: 500;
  font-size: 12px;
  color: var(--color-light1);
  position: absolute;
  top: -24px;
  height: 24px;
  display: flex;
  align-items: center;
}

#pun-viewforum #subforums a,
#pun-messages #profilenav > ul:first-of-type a {
  font-weight: 500;
  font-size: 12px;
  text-transform: lowercase;
  color: var(--color-dark2);
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  background: var(--color-light2);
  width: inherit;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 6px 10px;
}

/*-------------------------------------------------------------------------------------- left part */

#pun-index .tclcon {
  grid-area: for;
  text-align: justify;
  -webkit-text-size-adjust: none;
  width: 400px;
  display: flex;
  gap: 6px;
  flex-direction: column;
  margin-right: 120px;
  height: 100%;
  padding: 20px 0;
  justify-content: center;
}

#pun-index .tcl h3 {
  margin: 0;
  text-align: left;
  order: 1;
}

#pun-index .tcl h3 a {
  color: var(--color-dark2);
  position: relative;
  z-index: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

podf {
  order: 2;
}
#pun-index .tclcon span {
  order: 3;
  margin-top: 9px;
}

#pun-index .tcl h3 a:hover,
.lastpost-link:hover {
  color: var(--color-accent2);
}

#pun-index .tclcon span,
#pun-index .subforums {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#pun-index .subforums {
  order: 4;
  font-size: 0;
}

#pun-index .subforums:before {
  content: "\f72d";
  font: 500 12px var(--mat);
  transform: scale(1, -1);
}

#pun-index .subforums a {
  font-size: 10px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

#pun-index .tclcon span a {
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--color-dark2);
  font-weight: 500;
  transition:
    background 0.3s,
    box-shadow 0.5s;
  z-index: 1;
  font-size: 11px;
}

/*-------------------------------------------------------------------------------------- right part */
#pun-index .tcr,
#pun-viewforum .isub .tcr {
  display: grid;
  grid-template-columns: var(--usav) 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 2px 8px;
  justify-items: start;
  align-items: center;
  justify-content: start;
  text-align: left;
  overflow: hidden;
  margin-left: 35px;
}

#pun-index .tcr,
#pun-viewforum .isub .tcr,
#pun-index .hasicon td.tc2,
#pun-index .hasicon td.tc3 {
  height: 40px;
  border-radius: 6px;
}

#pun-index .tcr,
#pun-index .hasicon td.tc2,
#pun-index .hasicon td.tc3,
#pun-index .tclcon span a {
  background: var(--pun1);
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
}

.lastpost-link {
  grid-column: 2;
  grid-row: 1;
  color: var(--color-dark2);
  position: relative;
  width: 100%;
  min-width: 0;
  display: block;
  align-self: end;
  text-align: left;
  font-weight: 500;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.lastpost {
  grid-row: 2;
  grid-column: 2;
  align-self: start;
  /* display: flex; */
  /* flex-direction: column; */
  /* gap: 1px; */
  text-align: left;
  /* font-size: 0; */
  align-items: flex-start;
}

.lastpost * {
  font-size: 10px;
}

#pun-viewforum .isub .tcr {
  grid-template-columns: 1fr var(--usav);
  justify-items: end;
  text-align: right;
}

#pun-viewforum .isub .lastpost {
  font-size: 0;
  display: flex;
  gap: 3px;
  flex-direction: row-reverse;
  grid-column: 1;
  align-items: center;
}

#pun-viewforum .isub span.datetime,
#pun-viewforum .isub span.byuser {
  font-size: 9px;
}

/*-------------------------------------------------------------------------------------- user-avatar */
.user-avatar {
  margin: 0 !important;
  width: var(--usav) !important;
  height: var(--usav) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: -1/1;
  box-sizing: content-box;
}

#pun .user-avatar a {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100% !important;
  height: 100% !important;
}

.user-avatar,
.avatar-image,
.user-avatar a {
  border-radius: 0% !important;
}

.avatar-image {
  opacity: 1 !important;
  filter: grayscale(1);
  width: var(--usav) !important;
  height: var(--usav) !important;
}

.isonline {
  background: var(--color-accent3) !important;
  top: calc(50% - 3px) !important;
  right: auto !important;
  width: 6px !important;
  height: 6px !important;
  animation: none !important;
  outline: 2px solid var(--pun1);
  z-index: 1 !important;
  left: 37px;
  border-radius: 2px !important;
}

.usertable .user-avatar a {
  border-radius: 6px !important;
  overflow: hidden;
}

/* ICONb
--------------------------------------------------------------------------------------------------------------------------*/
.intd {
  width: 100%;
  display: grid;
  gap: var(--intd-gap);
  align-items: center;
}

#pun-index .category .intd {
  gap: var(--main-intd-gap);
  grid-template-columns: var(--main-icon-w) 1fr;
  grid-template-areas: "icon for";
  height: 100%;
}

#pun-index tr .tcl {
  height: 100%;
}

#pun-viewforum .category .intd,
.forum .intd,
#profile .intd {
  grid-template-columns: var(--icon-w) 1fr;
}

.intd .icon {
  margin: 0;
  position: relative;
}

#pun-viewforum .category .icon,
.forum .icon,
#profile .intd .icon {
  width: var(--icon-w);
  height: var(--icon-h);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-light3);
}

#pun-index .icon {
  width: var(--main-icon-w);
  /* height: var(--main-icon-h); */
  grid-area: icon;
  height: 100%;
  overflow: hidden;
}

#pun-index .icon:before {
  content: "";
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/92551.webp);
  aspect-ratio: 90 / 320;
  width: 100%;
  height: 100%;
  position: absolute;
  background-size: contain;
  background-position: 0px -20px;
  min-height: 160px;
}

#pun-index .intd .icon.inew {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/98247.jpg);
  background-color: var(--color-dark2);
  background-position: top;
  background-repeat: no-repeat;
  aspect-ratio: 90 / 264;
  background-size: contain;
}

#pun-index .intd .icon.inew:before {
  display: none;
}

#pun-viewforum .category .icon:before,
.forum .icon:before,
#profile .intd .icon:before {
  font: 500 12px var(--mat);
}

.forum .isticky .icon:before {
  content: "\e000";
  color: var(--color-light1);
}

.forum .iclosed .icon:before {
  content: "\e14b";
  color: var(--color-gray2);
}

.forum .isticky .icon,
#pun-viewforum .category .icon.inew,
.forum .icon-new,
#profile .icon-new,
#profile .intd .icon.inew {
  background: var(--color-dark2);
}

/* CRUMBS
--------------------------------------------------------------------------------------------------------------------------*/
.crumbs {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  font-size: 10px;
  position: relative;
  background: var(--color-light2);
  padding: 2px 10px 3px 20px !important;
  height: 17px;
  gap: 10px;
  width: fit-content;
  margin-left: calc(0px - var(--main-p));
}

.crumbs,
.crumbs a {
  color: var(--color-dark2);
}

.crumbs a:hover,
.crumbs a:first-of-type {
  color: var(--color-accent2);
}

/* STATSCON
--------------------------------------------------------------------------------------------------------------------------*/
#pun-stats .container {
  display: grid !important;
  grid-template-columns: 1fr 135px;
  gap: 10px 60px;
  margin: 8px 0 0 0;
  grid-template-rows: repeat(2, auto);
  align-items: start;
  padding: 40px 80px 40px 60px !important;
  overflow: hidden;
  position: relative;
}

.statscon {
  margin: 0 !important;
  background: transparent;
  padding: 0;
}

.statscon .container:before {
  content: "";
  background: url(https://forumstatic.ru/files/001c/ab/5b/84158.webp) top /
    cover;
  aspect-ratio: 460 / 1366;
  position: absolute;
  top: 0;
  right: 0;
  width: 230px;
}

.online_wrap {
  border-radius: 6px;
  padding: 0px 12px 0px 0px;
  height: 30px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  overflow: hidden;
}

.online_wrap,
.stats_wrap {
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  background: var(--pun1);
}

.online_wrap > a {
  font-weight: 600;
}

.onlinelist .online_wrap:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/28976.jpg);
}

.online_wrap:before {
  content: "";
  background-size: cover;
  aspect-ratio: 1 / 1;
  height: 30px;
  margin-right: 6px;
}

.users_24h .online_wrap:before {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/26263.jpg);
}

.stats_wrap {
  grid-row: -1/1;
  grid-column: 2;
  position: relative;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  color: #9e9e9e;
}

.stats_wrap span {
  color: #121212;
  font-weight: 500;
  font-size: 0;
}

.stats_wrap strong {
  font-weight: 500;
}

.stats_wrap li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats_wrap .item1 span:before {
  content: "темы";
}

.stats_wrap .item2 span:before {
  content: "сообщения";
}

.stats_wrap .item3 span:before {
  content: "людей";
}

.stats_wrap .item4 span:before {
  content: "привет, новенький";
}

.stats_wrap span:before {
  font-size: 10px;
}

.stats_wrap:before {
  content: "";
  background: url(https://forumstatic.ru/files/001c/ab/5b/13824.webp) top /
    cover;
  aspect-ratio: 125 / 138;
  position: absolute;
  top: -12px;
  right: -16px;
  z-index: 1;
  width: 63px;
}

#onlinelist > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#onlinelist > div > span,
#onlinelist > div > span a {
  color: #9e9e9e;
}

#onlinelist > div > span a:hover {
  color: var(--color-accent2);
}

#onlinelist > div > span {
  line-height: 110%;
  text-align: justify;
  font-size: 11px;
}

/* FOOTER
--------------------------------------------------------------------------------------------------------------------------*/
#pun-about {
  display: flex;
  justify-content: center;
  position: absolute;
  width: 590px;
  background: var(--color-dark2);
  height: 70px;
  margin-left: 180px;
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/84093.jpg);
  background-size: contain;
  background-repeat: no-repeat;
}

#pun-about .container {
  font-size: 8px;
  position: absolute;
  margin-top: -21px;
  width: 100%;
  text-align: center;
}

#pun-about *,
copy_bottom,
copy_bottom a {
  color: var(--color-gray1);
}

copy_bottom a:hover {
  color: var(--color-accent2);
}

/* PROFILEb
--------------------------------------------------------------------------------------------------------------------------*/
.post-author {
  width: var(--prof-w);
  /*  min-height: 65px;*/
  position: relative;
  height: fit-content;
}
#pun-viewtopic .post-author,
#pun-messages .post-author {
  padding: 17px 0 36px;
}

.post-author ul,
#viewprofile #profile-left,
#pun-post .post-author {
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
  background: var(--color-light1);
  border-radius: 6px !important;
  padding: 15px 20px !important;
  z-index: 1;
}

#pun-viewtopic .post-author ul,
#pun-messages .post-author ul,
#viewprofile #profile-left {
  padding-bottom: calc(var(--plash-h) + var(--profbg-h)) !important;
  --plash-h: 22px;
  --profbg-h: 36px;
}

.post-author ul {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  position: relative;
}

.post-author li {
  width: inherit;
  position: relative;
}

#pun-viewtopic .post-author::before,
#pun-messages .post-author::before {
  content: "";
  background: url(https://forumstatic.ru/files/001c/ab/5b/32219.webp) top /
    cover;
  aspect-ratio: 440 / 198;
  width: 220px;
  position: absolute;
  top: 0px;
  left: 0;
}

#pun-viewtopic .post-author::after,
#pun-messages .post-author::after {
  content: "";
  background: url(https://forumstatic.ru/files/001c/ab/5b/46888.webp) top /
    cover;
  aspect-ratio: 468 / 234;
  width: 106px;
  position: absolute;
  bottom: 0;
  left: 0;
}

/*-------------------------------------------------------------------------------------- author & title */
.pa-author,
li#profile-name > strong {
  margin: 0 !important;
  text-align: center;
}
.pa-author,
.pa-author *,
li#profile-name > strong {
  text-transform: uppercase;
  color: var(--color-dark2);
}

.pa-title + .pa-author,
#profile-name {
  margin-top: 10px !important;
}

.pa-author,
.pa-author *,
li#profile-name > strong {
  font: 600 13px/1 var(--font) !important;
  transition: color 0.3s;
}

.pa-author:hover,
.pa-author a:hover {
  color: var(--color-accent1);
}

.pa-title,
#profile-left #profile-title strong {
  background: url(https://forumstatic.ru/files/001c/ab/5b/63033.jpg) no-repeat
    top right / 40px var(--color-dark2);
  padding: 5px 49px 6px 8px;
  min-height: 24px;
  margin: -15px -20px 0 -20px;
  font-size: 9px;
  font-weight: 400 !important;
  color: var(--color-light1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  width: var(--prof-w) !important;
  line-height: 11px;font-family: var(--font-fav);
}

/*-------------------------------------------------------------------------------------- avatar */
.pa-avatar,
#pa-avatar {
  margin: 10px 0 0 0;
}

.pa-avatar img,
#pa-avatar img {
  max-width: 180px;
  max-height: 180px;
  position: relative;
  z-index: 2;
}

.pa-avatar.item2 img.allow_change:hover {
  outline-color: var(--color-accent1) !important;
}

/*-------------------------------------------------------------------------------------- posts/respect */
.pa-respect,
.pa-posts,
.pa-fld3,
.pa-fld4 {
  width: calc(var(--prof-w) / 4 - 10px) !important;
  z-index: 3;
  margin: 10px 0 15px 0;
  display: flex;
  gap: 3px;
  font-size: 9px;
  justify-content: center;
  align-items: center;
  height: 21px;
  position: static !important;
  flex-direction: column;
}

.pa-respect,
.pa-respect a,
.pa-posts,
.pa-fld3,
.pa-fld3 a,
.pa-fld4 {
  color: var(--color-dark2);
}

.pa-respect .fld-name,
.pa-posts .fld-name,
.pa-fld3 .fld-name,
.pa-fld4 .fld-name {
  position: relative;
  z-index: 9;
  flex: 0 0 auto;
  font-size: 0;
}

.pa-posts .fld-name:before,
.pa-respect .fld-name:before,
.pa-fld3 .fld-name:before,
.pa-fld4 .fld-name:before {
  font: 500 10px/8px var(--mat);
  color: var(--color-gray2);
}

.pa-posts .fld-name:before {
  content: "\e0bf";
}
.pa-respect .fld-name:before {
  content: "\e87d";
}
.pa-fld3 .fld-name:before {
  content: "\f20e";
}
.pa-fld4 .fld-name:before {
  content: "\e3c9";
}

.pa-respect > a {
  position: absolute;
  margin: 0 0 0 20px;
  width: 40px;
  height: 25px;
}

.pa-respect .fld-name a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pa-respect img {
  opacity: 0;
}

/*-------------------------------------------------------------------------------------- FLDb */
.pa-fld1,
#pa-fld1 {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  background: var(--pun);
  border-radius: 4px;
  padding: 2px 10px 3px;
  margin-top: 5px;
  font-weight: 500;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-fld2 {
  margin: 10px 0 5px;
  text-align: justify;
  font-size: 9px;
  color: var(--color-dark2);
}

.pa-fld1 fd,
#pa-fld1 fd {
  color: var(--color-gray2);
}

.pa-fld1 prs,
#pa-fld1 prs {
  color: var(--color-dark2);
}

.pa-fld1 prs:before,
#pa-fld1 prs:before {
  content: ":";
  font-size: 12px;
  line-height: 133%;
  text-transform: lowercase;
  margin: 0 5px;
}

/* иконка */

.pa-fld5,
#pa-fld5 {
  position: absolute !important;
  top: 0;
  right: 0;
  width: fit-content !important;z-index: 1;
}

prof_icon img {
  aspect-ratio: 80 / 48;
  width: 40px;
  border-radius: 6px;
}

prof_icon {
  display: block;
}

#pa-fld5 prof_icon img,
.pa-fld5 prof_icon img {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.post-author:has(.pa-fld5) .pa-title,
#profile-left:has(#pa-fld5) #profile-title strong {
  background-image: none;
}

/* плашка */
#pun-viewtopic .post-author ul:before,
#pun-messages .post-author ul:before,
#profile-left:before,
plash {
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  background: var(--color-dark2);
  padding: 5px 8px 6px;
  color: var(--color-light1);
  font: 400 9px var(--font-fav);
  width: var(--prof-w);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

plash,
prof_bg img {
  border-radius: 6px;
}

#pa-fld6,
.pa-fld6,
#pa-fld7,
.pa-fld7 {
  width: var(--prof-w) !important;
}

#pa-fld6 plash,
.pa-fld6 plash {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#pun-viewtopic .post-author ul:before,
#pun-messages .post-author ul:before,
#profile-left:before {
  content: "здесь могла быть ваша реклама";
  position: absolute;
  bottom: 36px;
  height: var(--plash-h);
  border-radius: 6px 6px 0 0;
}

#pun-viewtopic .post-author ul:has(.pa-fld6),
#pun-messages post-author ul:has(.pa-fld6),
#viewprofile #profile-left:has(#pa-fld6),
.id-9 #profile-left,
.id-2 #profile-left,
#pun-viewtopic .post[data-user-id="2"] .post-author ul,
#pun-viewtopic .post[data-user-id="9"] .post-author ul {
  --plash-h: 0px;
}

.post-author ul:has(.pa-fld7),
#pun-messages post-author ul:has(.pa-fld7),
#viewprofile #profile-left:has(#pa-fld7),
.id-9 #profile-left,
.id-2 #profile-left,
#pun-viewtopic .post[data-user-id="2"] .post-author ul,
#pun-viewtopic .post[data-user-id="9"] .post-author ul {
  --profbg-h: 0px !important;
}

/* фон */
#pun-viewtopic .post-author ul:after,
#pun-messages .post-author ul:after,
#profile-left:after {
  content: "";
  background: url(https://forumstatic.ru/files/001c/ab/5b/63147.webp) top /
    var(--prof-w);
  position: absolute;
  bottom: 0;
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

#pun-viewtopic .post-author ul:after,
#pun-messages .post-author ul:after,
#profile-left:after,
prof_bg img {
  width: var(--prof-w);
  aspect-ratio: 440 / 72;
}

prof_bg {
  display: block;
}

#pa-fld7 prof_bg img,
.pa-fld7 prof_bg img {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

#pun-viewtopic .post[data-group-id="3"] .post-author ul {
  padding-bottom: 20px !important;
}

/*-------------------------------------------------------------------------------------- online */
.pa-active {
  position: absolute !important;
  bottom: -18px;
  height: 13px;
  display: flex;
  left: 0;
  align-items: center;
  font-weight: 500;
  font-size: 9px;
  color: var(--color-dark2);
  padding-left: 13px;
  background-size: 9px;
  background-repeat: no-repeat;
  background-position: left center;
  width: fit-content !important;
}

.pa-active.online {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/94963.svg);
}
.pa-active.online:before {
  content: "всем привет";
}

.pa-active.offline {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/55147.svg);
}
.pa-active.offline:before {
  content: "не беспокоить";
}

/*-------------------------------------------------------------------------------------- ip */
.pa-ip {
  position: absolute;
  bottom: -30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 10px;
  transition: opacity 0.5s;
  opacity: 0;
}

.pa-ip a {
  color: var(--color-dark2);
}

.pa-ip:hover {
  opacity: 1;
}

/* QUOTEb / SPOILERb / TEXTAREA
--------------------------------------------------------------------------------------------------------------------------*/
.quote-box,
.code-box,
/*textarea,
blockquote,
.blockcode,*/
.inner,
.modal-inner,
.editBookmark,
#MyBookmarks,
.hvStickerPackModal,
#post-mentions #mentions-area {
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2) !important;
  background: var(--color-light2) !important;
}

.quote-box,
.code-box {
  display: flex;
  flex-direction: column;
  margin: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.quote-box {
  align-items: flex-start;
}

blockquote,
.blockcode {
  position: relative;
  margin: 0px;
  width: 100%;
  overflow: visible !important;
  line-height: 150%;
  z-index: 2;
  padding: 20px;
  font: var(--post-text);
}

/*-------------------------------------------------------------------------------------- starts from post-content top, margin width elements inside */
p + .quote-box,
p + .code-box,
.quote-box + .quote-box,
.quote-box + .code-box,
.code-box + .code-box,
.code-box + .quote-box,
.code-box + p,
.quote-box + p {
  margin-top: 20px !important;
}

/*.quote-box + .code-box,
.code-box + .code-box {
  margin-top: 30px !important;
}*/

td .spoiler-box {
  margin: 20px 0px;
}

/*-------------------------------------------------------------------------------------- cite */
cite,
.code-box .legend,
.spoiler-box > div {
  display: block;
  position: relative;
  margin: 0;
  z-index: 9;
  font: 500 10px/1 var(--font-fav);
  padding: 5px 5px 5px 25px !important;
  background-color: var(--color-dark2) !important; background-repeat: no-repeat !important; background-size: 20px !important;
}

cite .qc-post-link {
    padding: 5px 5px 5px 25px;
    margin: -5px -5px -5px -25px;
}

cite + blockquote, .legend + .blockcode {padding-top: 10px;}

.code-box .legend {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/40799.jpg) !important;
}

.hide-box cite {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/30227.jpg) !important;
}

cite,
cite *,
.code-box .legend,
.code-box .legend *,
.spoiler-box > div {
  color: var(--color-light1);
}

cite {
background-image: url("https://forumstatic.ru/files/001c/ab/5b/26821.png?v=1");
}

.spoiler-box > div {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/37046.jpg) !important;
}

.spoiler-box > div.visible {
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/50807.jpg) !important;
}

/*-------------------------------------------------------------------------------------- quoiet quote © BLANCHE. free for use only with copy */

[data-forum-id="16"] .quote-box {
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: var(--color-gray1);
    gap: 5px;
}

[data-forum-id="16"] .quote-box + p {margin-top: 10px !important;}

[data-forum-id="16"] blockquote {padding: 0 0 0 10px;border-left: 1px solid var(--color-gray3) !important;}

[data-forum-id="16"] cite, [data-forum-id="16"] cite *, [data-forum-id="16"] cite a:after {
    color: var(--color-gray2);
transition: color .3s
}

[data-forum-id="16"] cite a:hover *, [data-forum-id="16"] cite a:hover:after {
    color: var(--color-accent1);
}

[data-forum-id="16"] cite {
    background: transparent !important;
    padding: 0 !important;
}

[data-forum-id="16"] .pl-quote a {
    font-size: 0;
}

[data-forum-id="16"] .pl-quote:before {
    content: 'цитировать тихо';
}

[data-forum-id="16"] .pl-quote {
    position: relative;
}

[data-forum-id="16"] .pl-quote a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

[data-forum-id="16"] a.qc-post-link:after {
    font: 100 11px var(--mat);
    content: "\e0e6";
    vertical-align: middle;
    display: inline-block;
    margin: -2px 0 0 3px;
}

[data-forum-id="16"] .spoiler-box > div {margin-bottom: 0;}

[data-forum-id="16"] cite .qc-post-link {padding: 0; margin: 0;}

/*-------------------------------------------------------------------------------------- spoiler animation © BLANCHE. free for use only with copy */
.spoiler-box > blockquote {
  transform: translateY(20px) rotateX(90deg);
  transition:
    transform 0.3s,
    height 0.3s,
    opacity 0.3s,
    padding 0.3s;
  display: block !important;
  transform-origin: top;
  height: 0;
  opacity: 0;
  padding-top: 0 !important;
}

.spoiler-box > blockquote.visible {
  transform: none;
  height: auto;
  opacity: 1;
  padding-top: 20px !important;
}

.spoiler-box > div {
  padding-left: 30px !important;
  transition:
    border-radius 0.5s,
    margin-bottom 0.5s,
    background-image 0.5s;
  margin-bottom: -20px;
}

.spoiler-box > div.visible {
  margin-bottom: -1px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/*-------------------------------------------------------------------------------------- other */

.scrollbox {
  overflow: auto;
  max-height: 60px;
  padding-right: 7px;
    height: auto !important;
}

.scrollbox pre {
  margin: 0;
  font: 500 11px/1 Pt Mono;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.code-box .legend button {
  border: none !important;
  padding: 0 !important;
  font: inherit !important;
  color: inherit !important;
}

/*-------------------------------------------------------------------------------------- textareab */
.punbb textarea {
  overflow: auto;
  font: var(--post-text) !important;
  width: 100% !important;
  position: relative;
  z-index: 9;
  text-transform: none;
  border-radius: 6px !important;
  padding: 10px;
  background: var(--color-light3) !important;
  border: 1px solid var(--color-gray3) !important;
}

#profile5 #main-reply,
#pun-messages #main-reply {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

#main-reply {
  height: 200px;
}

/* FORMA OTVETA
--------------------------------------------------------------------------------------------------------------------------*/
/*#pun-viewtopic #post,*/
#pun-messages #post {
  margin-top: 15px;
  padding: 0 !important;
  background: transparent;
}

#pun-viewtopic .post-box #post,
#pun-viewtopic .post-box fieldset {
  margin: 0 !important;
  padding: 0;
}

.post-box {
  height: 100%;
}

#post .areafield {
  margin: 0;
}

#pun-edit #post .areafield > span.input > a {
  display: block;
  margin-bottom: 10px;
}

.fs-box + .hashelp {
  margin-top: 20px;
}

.grippie {
  margin-top: 5px;
}

/* FONT CATEGORY © BLANCHE. free for use only with copy */
#font-area div.latynfont,
#font-area div.cyrfont {
  width: inherit !important;
  box-shadow: none !important;
  text-align: center;
  font-size: 0;
  margin: 7px -10px;
  grid-column: 1 / -1;
  justify-content: center;
  border: var(--border2);
  border-radius: 0;
  border-left: none;
  border-right: none;
  padding: 5px;
  background: var(--pun) !important;
}
#font-area div.latynfont:before,
#font-area div.cyrfont:before {
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
  color: rgba(var(--color-accent1));
}
#font-area div.latynfont:before {
  content: "латинские шрифты";
}
#font-area div.cyrfont:before {
  content: "кириллические шрифты";
}

/* CUSTOM FORM-BUTTONS WITH WRITTEN SYMBOLS © BLANCHE. free for use only with copy */
#form-buttons {
  gap: 15px;
  display: grid;
  grid-template-columns: 1fr 100px;
  align-items: center;
  /* grid-row-start: 1; */
  justify-items: start;
  height: 37px;
  position: absolute;
  top: -49px;
  width: calc(100% + 40px);
  margin: 0 -20px;
}

#pun-profile #form-buttons,
#pun-messages #form-buttons {
  position: relative;
  top: auto;
  background: var(--color-dark2);
  border-radius: 8px 8px 0 0;
  margin: 0;
  padding: 0 10px;
  width: 100%;
}

#form-buttons table {
  width: 100% !important;
  grid-column: 1;
  grid-row: 1;
}

#form-buttons tr {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

#plng,
#form-buttons table td {
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
  padding-top: 2px;
  color: var(--color-light1);
}

#form-buttons td {
  font: 500 17px var(--mat) !important;
  background-image: none !important;
  width: 20px !important;
  cursor: pointer;
  height: 20px !important;
  transition: opacity 0.3s;
}

#form-buttons table td:hover {
  opacity: 0.5;
}

#plng {
  width: 100%;
  grid-column: 2;
  font-size: 8px;
  justify-content: flex-end;
}

#plng b {
  font-weight: 500;
  font-size: 9px;
}

#form-buttons td img {
  z-index: 9;
}

#form-buttons td:before {
  position: absolute;
}

#button-font:before {
  content: "\f4f1";
}

#button-size:before {
  content: "\f488";
  font-size: 21px;
}

#button-bold:before {
  content: "\e238";
}

#button-italic:before {
  content: "\e23f";
}

#button-underline:before {
  content: "\e249";
}

#button-strike:before {
  content: "\e246";
}

#button-transL:before {
  content: "\e8e2";
}

#button-indent:before {
  content: "\e23e";
}

#button-left:before {
  content: "\e236";
}

#button-center:before {
  content: "\e234";
}

#button-right:before {
  content: "\e237";
}

#button-justify:before {
  content: "\e235";
}

#button-link:before {
  content: "\e157";
}

#button-spoiler:before {
  content: "\e8f5";
}

#button-image:before {
  content: "\e43e";
}

#button-imagetwo:before {
  content: "\f317";
}

#button-video:before {
  content: "\e1c4";
}

#button-hide:before {
  content: "\e898";
}

#button-quote:before {
  content: "\e244";
}

#button-code:before {
  content: "\fff8b";
}

#button-html:before {
  content: "\ef54";
}

#button-color:before {
  content: "\e40a";
}

#button-table:before {
  content: "\f191";
}

#button-smile:before {
  content: "\e813";
}

#button-sticker:before {
  content: "\e7f2";
}

#button-keyboard:before {
  content: "\f028";
}

#button-addition:before {
  content: "\e5d3";
}

#button-mask:before {
  content: "\e853";
}

#floatbut:before,
#button-float:before {
  content: "\f864";
}

#button-ChangeСase:before {
  content: "\e262";
}

#keyboard-span input {
  border-radius: 7px !important;
}

/*-------------------------------------------------------------------------------------- tags */
#tags .container,
#float {
  overflow-y: auto;
  padding: 10px !important;
  height: 179px;
  z-index: 99999 !important;
  top: 10px !important;
  margin: 0px 185px 0 10px;
  border-radius: 6px;
  font-size: 10px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  background: var(--color-light2);
}

#pun-edit #tags .container,
#pun-edit #float {
  top: 32px !important;
}

#font-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  align-content: flex-start;
  font-size: 13px !important;
}

#font-area div,
#size-area div,
#addition-area div {
  position: relative;
  padding: 5px;
  border-radius: 5px;
  transition: background 0.3s;
}

#font-area div:hover,
#size-area div:hover,
#addition-area div:hover {
  background: var(--color-light1);
}

#font-area div img,
#size-area div img {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
}

#font-area span,
#size-area span,
#addition-area div {
  height: auto !important;
}

#uploaded-images img {
  object-fit: cover;
}

#image-area,
#color-area,
#video-area,
#spoiler-area {
  height: auto !important;
}

#spoiler-area a,
#image-area a {
  color: inherit;
}

#float {
  left: 43%;
  z-index: 2;
  height: auto;
  position: absolute;
  display: none;
}

/* INPUT / BUTTONS
--------------------------------------------------------------------------------------------------------------------------*/
input[type="text"],
input[type="password"],
input[type="number"],
.punbb #sTheme,
.punbb #isk,
select,
option {
  background-color: var(--color-light3) !important;
  font: 500 11px var(--font) !important;
  color: var(--color-dark2) !important;
  transition: background 0.2s;
  border: 1px solid var(--color-gray3) !important;
  border-radius: 6px;
  padding: 8px 10px !important;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
select:hover,
option:hover,
.punbb #sTheme:hover {
  background-color: var(--color-light2) !important;
}

#s-block {
  gap: 5px;
  order: 2;
}

select {
    appearance: none;
    background-image: url(https://forumstatic.ru/files/001c/ab/5b/24760.svg);
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 17px !important;cursor: poiner;
  padding: 4px 8px !important;
}

#topic-modmenu select {
    padding-right: 5px !important;
}

/*-------------------------------------------------------------------------------------- buttonsb */
.button,
.hvStickerPackModalTab,
input[type="file"] {
  cursor: pointer;
  font: 500 11px/1 var(--font) !important;
  border: none !important;
  transition:
    color 0.5s,
    background 0.5s;
  position: relative;
  z-index: 1;
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  border-radius: 6px !important;
  padding: 4px 8px !important;
  text-transform: lowercase;
  text-align: justify;
}

.hvStickerPackModalTab,
#pa-email-edit a:hover,
#pa-edit a,
.button,
input[type="file"]:hover {
  color: #4b4b4b;
  background-color: var(--color-light2) !important;
}

.hvStickerPackModalTab.active,
.submit {
  background: var(--color-dark2) !important;
  color: #ececea !important;
}

.button:hover,
.edit_email_wrap a:hover,
#pun-index .tclcon span a:hover,
.postlink a:hover,
.subscribelink a:hover,
gb_links a:hover,
.hvStickerPackModalTab:hover {
  background: var(--color-light3) !important;
}

.submit:hover,
.edit_email_wrap #pa-edit a:hover,
.hvStickerPackModalTab.active:hover {
  background: var(--color-accent2) !important;
}

#imageupload-left input[type="button"] {
  width: auto !important;
}

/*-------------------------------------------------------------------------------------- checkbox */
span.checkfield,
p.checkfield {
  margin: 0;
  padding: 5px 0px;
  gap: 5px;
  display: flex;
  align-items: center;
}

span.checkfield,
p.checkfield,
span.checkfield *,
p.checkfield * {
  text-transform: none;
}

input[type="checkbox"] {
  border-radius: 4px;
  appearance: none;
  padding: 0 !important;
  width: 13px;
  height: 13px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--color-gray3);
  background: var(--color-light3);
  margin: 0;
}

input[type="checkbox"]:checked:before {
  content: "\f88b";
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font: 500 16px var(--mat);
  color: var(--color-dark1);
  position: absolute;
}

/* POST-LINKS / LINKST / LINSKB
--------------------------------------------------------------------------------------------------------------------------*/
.post-links {
  width: 100%;
}

.post-links ul {
  text-align: right;
  margin: 0;
  width: 100%;
}

#pun-searchposts .post-links ul {
  text-align: left;
}

#pun-searchposts .post:last-child .post-links {
  margin-bottom: 10px;
}

.post-links li {
  display: inline-block;
}

.pl-email {
  float: left;
}

.pl-reply {
  margin-left: 8px;
}

.post-links li + li {
  margin-left: 6px;
}

.pl-email + .pl-email {
  margin-left: 10px;
}

.pl-email.profile a:before {
  content: "\e7fd";
}

.pl-email a:before {
  font: 400 12px/1 var(--mat);
}

.pl-email.pm a:before {
  content: "\e158";
}

.pl-email.email a:before {
  content: "\e0e6";
}

.pl-email.editpole a:before {
  content: "\f88d";
}

.post-links .pl-email a {
  display: flex;
  align-items: center;
  gap: 5px;
}

#pun-viewtopic h3,
#pun-searchposts h3,
#pun-multimove h3,
#pun-post h3 {
  margin: 0;
}

.post h3 span,
.linkst,
.linksb,
.post-links {
  justify-content: space-between;
  display: flex;
  align-items: center;
}

.linkst,
.linksb {
  padding: 15px 20px 20px 0 !important;
}

.post h3 span {
  margin: -32px 0 20px 0 !important;
}

.post h3 span,
.pagelink,
.postlink,
.subscribelink,
.post-links,
#pun-viewforum .modmenu a,
#pun-modviewforum .modmenu {
  height: 20px;
  display: flex;
  align-items: center;
}

.pagelink,
#pun-viewforum .modmenu a {
  padding: 0 10px 0 20px;
}
.postlink {
  border-radius: 100px 0 0 100px;
}

.post h3 span {
  flex-direction: row-reverse;
  position: relative;
}

#pun-searchposts h3 span {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  gap: 10px;
}

#pun-searchposts h3 strong {
  position: absolute;
  right: 10px;
}

#pun-searchposts h3 span a {
  display: inline-flex;
  align-items: center;
}

.postlink {
  display: flex;
  gap: 10px;
}

#pun-messages .postlink {
  height: auto;
  background: transparent;
}

.pagelink,
.postlink a,
.subscribelink a {
  background: var(--color-light2);
}

.pagelink,
.page-container {
  order: 1;
  display: flex;
  align-items: center;
  gap: 3px;
}

.pagelink a,
.pagelink strong {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pagelink strong,
.pagelink a.next,
.pagelink a.prev {
  color: var(--color-dark2) !important;
  font-weight: 400;
}

.postlink {
  order: 3;
  width: auto !important;
}
.subscribelink {
  order: 3;
  font-size: 0;
}

#pun-viewforum noindex {
  order: 4;
}

.post-links,
.postlink,
.subscribelink a,
#pun-viewforum .modmenu a,
.postlink .button,
.pagelink,
#togglePreview .button,
.post h3 span,
.post h3 span * {
  font-size: 10px !important;
  font-weight: 400 !important;
  text-transform: lowercase !important;
}

.post h3 span,
.post h3 span * {
  font-size: 9px !important;
}

.post h3 a {
  color: var(--color-accent5);
}

.post h3 span,
.post h3 span a,
#pun-viewforum .modmenu a,
#pun-modviewforum .modmenu .button,
#pun-multimove .modmenu p.container {
  color: var(--color-light1) !important;
}

.post h3 span strong:before {
  content: "#";
  margin-right: 5px;
}

.post-links a,
.page-container a,
#togglePreview .button {
  color: var(--color-dark2) !important;
}

.post-links a:hover,
#togglePreview .button:hover,
#pun-viewforum .modmenu a:hover,
#pun-modviewforum .modmenu .button:hover {
  color: var(--color-accent1) !important;
}

.postlink a,
.subscribelink a {
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--color-dark2);
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: block;
}

.pagelink a {
  color: var(--color-accent2);
}
.pagelink a:hover,
a.next:hover:before,
a.prev:hover:before {
  color: var(--color-gray1);
}

.post-links a,
.pagelink,
.postlink,
.post h3 span a,
.post h3 span strong {
  position: relative;
  z-index: 1;
}

.postlink.long .new-topic {
  padding: 0 !important;
}

#pun-viewtopic .linkst {
  margin-bottom: 20px;
}

#pun-viewtopic .linksb .postlink {
  padding-right: 8px;
}
#pun-viewtopic .linksb .subscribelink {
  padding-left: 0;
}

#pun-viewtopic .linksb {
  align-items: center;
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-items: end;
  padding-top: 12px !important;
}

.pagelink a.prev,
.pagelink a.next {
  background: transparent !important;
  width: fit-content;
  font-size: 0 !important;
  display: flex;
}

a.next:before,
a.prev:before {
  content: "\e5e1";
  font: 500 7px/11px var(--mat1);
  height: 100%;
  transition: color 0.3s;
}
.linksb a.next:before,
.linksb a.prev:before {
margin-top: 2px;
}

a.prev:before {
  transform: scale(-1, 1);
}

/* PAGES: VIEWTOPIC / POST / PUN-POST
--------------------------------------------------------------------------------------------------------------------------*/
.post + .post,
.post + div + .post,
#pun-admain form + form,
.adcontainer + h2 + .adcontainer,
.linksb + h2 + .adcontainer {
  margin-top: 20px;
}

.hashelp {
  position: relative;
}

#post {
  margin-top: 37px;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

#post-form {
  margin: 0;
}

#post-preview {
  padding: 0 var(--main-p) var(--main-p) var(--main-p);
  margin-bottom: 20px !important;
}

#pun-main .post {
  display: grid;
  grid-template-rows: auto 1fr;
  scroll-margin-top: var(--scroll-h);
}

.post > .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--post-p);
  position: relative;
  justify-content: center;
  align-items: flex-start;
}

.post-body {
  display: block;
  width: calc(100% - var(--prof-w) - var(--post-p));
  position: relative;
}

/*-------------------------------------------------------------------------------------- rating */

.post-vote .container,
.post-rating .container {
  margin: 20px 0 0 0 !important;
  padding: 0 !important;
}

.post-vote .container {
  margin-right: 3px !important;
}

.post .post-rating a,
.post .post-vote a {
  font: 400 10px var(--font) !important;
  color: var(--color-dark2);
  display: flex;
  gap: 5px;
  align-items: center;
  height: 25px;
  transition: opacity 0.3s;
}

.post .post-vote a {
  font-size: 0 !important;
  width: 27px;
  border-radius: 50%;
  justify-content: center;
  padding-left: 7px;
}

.post-rating a:before,
.post-vote a:before {
  background: no-repeat top / cover #fff;
  width: 25px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.post-rating a:before {
  content: "лайк";
}
.post-vote a:before {
  content: "комм";
}

.post-rating a:hover:before,
.post-vote a:hover:before {
  background-color: var(--color-dark2);
  color: var(--color-light1);
}

.mylike .post-rating a:before {
  content: "";
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/21797.jpg);
}

.my-own-rating a:before {
  content: "";
  background-image: url(https://forumstatic.ru/files/001c/ab/5b/71318.jpg);
}

/*-------------------------------------------------------------------------------------- post */

.post-content {
  width: 100%;
  text-align: justify;
  font: var(--post-text);
  padding-right: 28px;
}

.hideprofile .post-content {
  padding-left: 16px;
}

.post-content img.postimg {
  vertical-align: middle;
}

.post-content table {
  table-layout: fixed;
}

.post-content table td {
  border: none !important;
  vertical-align: top;
}

.post-content p {
  margin: 0;
  text-align: justify;
  text-transform: none;
  word-break: break-word;
  line-height: 150%;
}

.post-content p * {
  text-transform: none;
}

.post-content p + p {
  padding-top: 10px;
}

/*-------------------------------------------------------------------------------------- other */

#pun-viewtopic .modmenu {
  font-size: 10px;
  padding: 20px 20px 0 20px !important;
}
#pun-viewtopic #topic-modmenu {
  z-index: 1;
  box-shadow: none;
  padding-bottom: 0px !important;
}

.modmenu p {
  margin: 0;
}

#pun-viewforum .modmenu a {
  width: fit-content;
}

#topic-modmenu + #topic-users-in {
  border-top: 0 !important;
}

#topic-modmenu select {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#topic-users-in,
#topic-users-in * {
  font-weight: 400 !important;
}

#topic-users-in a:after {
  content: ",";
  margin-right: 2px;
}

#pun-modviewforum .modmenu {
  justify-content: flex-end;
  padding-right: var(--main-p);
}

#pun-modviewforum .modmenu p.container {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  font-size: 0;
}

#pun-modviewforum .modmenu .button,
#pun-multimove .modmenu .button {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  text-transform: lowercase;
  border-radius: 0 !important;
}

.formsubmit {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
  font-size: 10px;
}

#post-form ~ .post {
  margin-top: 40px;
}

#pun-post #post-preview legend span,
#pun-userlist legend span,
#pun-search legend span,
.modal-inner legend span,
#pun-delete legend span {
  display: block !important;
  margin-bottom: 10px;
}

#pun-post .post.toppost,
#pun-searchposts .post:first-of-type,
#pun-multimove .post:first-of-type {
  margin-top: 20px;
}

#pun-login label {
  white-space: nowrap;
}

#pun-messages h3 {
  margin: 0;
}

/*-------------------------------------------------------------------------------------- blacklist */
#panel {
  position: fixed;
  top: 48px;
  left: -250px;
  z-index: 10000;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 10px;
}

#panel-content {
  width: 250px;
  height: auto;
  float: left;
  background: var(--pun-bg);
  border-radius: 12px;
  padding: 10px;
}

#blockUsers > li > strong {
  cursor: pointer;
  font-size: 17px;
  color: red;
  font-weight: bold;
  top: 2px;
  position: relative;
}

.toBlock {
  position: sticky;
  top: 90px;
  height: max-content;
  display: flex;
  margin: 0 0 40px 0;
  flex-direction: column;
  gap: 8px;
}

.blockButton {
  margin-left: 8px;
  font: 500 14px var(--mat);
  color: rgba(var(--color-accent1));
  transition: color 0.3s;
}

.blockButton:hover {
  color: var(--color-accent6);
}

.blockButton:before,
#panel-sticker span:before {
  content: "\f7b3";
}

ul#blockUsers {
  list-style-type: none;
  margin: 0;
  background: var(--pun);
  border-radius: 8px;
  padding: 10px;
}

/*-------------------------------------------------------------------------------------- font size */
#chfont {
  position: absolute;
  top: 40px;
  left: -28px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  z-index: 9;
}

#chfontbut {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-dark1);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  color: var(--color-light1);
  font: 500 11px var(--mat);
  transition: color 0.3s;
}

#chfontbut:before {
  content: "\e262";
}

#chfontsize {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: row;
  gap: 5px;
}

#chfont_container {
  transform: translateX(-15px);
  opacity: 0;
  visibility: hidden;
  display: flex;
  border-radius: 6px;
  padding: 15px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.5s,
    opacity 0.5s,
    visibility 0.5s;
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  background: var(--color-light2);
}

#chfont.active #chfont_container {
  opacity: 1;
  transform: none;
  visibility: visible;
}

#chfont:hover #chfontbut,
#chfont.active #chfontbut {
  color: var(--color-accent1);
}

.fsizeplus,
.fsizeminus {
  font: 500 12px var(--mat);
  color: var(--color-dark1);
}

.fsizeplus:before {
  content: "\eae2";
}

.fsizeminus:before {
  content: "\eadd";
}

.fsize {
  color: var(--color-accent1);
  font-size: 12px;
}

/*-------------------------------------------------------------------------------------- fntslider */
#notify-settings {
  font-size: 11px;
}

#volume-set {
  display: flex;
  align-items: center;
}

#notify-settings,
#notify-settings * {
  text-transform: none;
}

.FNTslider,
#volSlider {
  width: 160px;
  z-index: 1;
  position: relative;
  display: block;
  height: 6px !important;
  border-radius: 0 !important;
  background: var(--color-gray3) !important;
  box-shadow: none !important;
  border: none !important;
}
.FNTslider .before,
#volSlider .before {
  height: 6px !important;
  margin: 0px !important;
  background: var(--color-gray3) !important;
  position: relative;
  border-radius: 0px !important;
}
.FNTslider .thumb,
#volSlider .thumb {
  width: 6px !important;
  height: 6px !important;
  position: relative;
  top: -9px !important;
  cursor: pointer;
  background: var(--color-accent1) !important;
  border-radius: 0px !important;
  margin-left: 0;
  box-shadow: none !important;
}

/*-------------------------------------------------------------------------------------- new theme */
.required label,
.datafield .input,
.selectfield label,
.inputfield label,
.inputfield.required.longinput,
#setmods dt {
  background-color: transparent !important;
  display: inline-block;
  margin-bottom: 7px;
  font-size: 10px;
  color: var(--color-gray1);
}

.inputfield.required.longinput:last-child {
  display: flex;
  align-items: center;
}

/*-------------------------------------------------------------------------------------- checkboxes */
p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
  vertical-align: middle;
  font-size: 10px;
  padding: 2px 0;
  display: inline-block;
}

/* PAGES: VIEWFORUM, SEARCHPOSTS, ETC
--------------------------------------------------------------------------------------------------------------------------*/
.newtext {
  font-size: 0px;
}

.newtext a {
  background: var(--color-accent1);
  border-radius: 3px;
  padding: 1px 5px;
  font-weight: 500;
  font-size: 10px;
  color: var(--color-light2);
}

.pagestext a {
  color: var(--link) !important;
}

#pun-viewforum .category {
  margin-bottom: 10px;
}

#pun-reputation .inner {
  font-size: 10px;
  color: var(--color-dark1);
}

#pun-reputation .inner td.tc2 {
  padding: 7px 0;
}

.forum .tclcon > a,
.forum .tclcon > strong a {
  position: relative;
  font-weight: 600;
  font-size: 12px;
  color: var(--color-dark2);
}

.forum .tclcon .byuser {
  color: var(--color-gray2);
}

#pun-multimove li.pl-select.checkfield,
#pun-multimove .pl-nodelete {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

#pun-multimove .modmenu p.container {
  align-items: center;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 20px 70px 80px;
}

#pun-main #move_posts_form thead tr,
#pun-main #move_posts_form tbody tr {
  grid-template-columns: 1fr 10px;
  display: grid !important;
  width: calc(100% - 25px) !important;
}

#move_posts_form thead,
#move_posts_form tbody {
  display: flex !important;
  flex-direction: column;
  gap: 7px;
}

/* PAGES: VIEWPROFILEb
--------------------------------------------------------------------------------------------------------------------------*/
#viewprofile > .container > ul > table > tbody > tr {
  display: grid;
  grid-template-columns: var(--prof-w) 1fr;
  align-items: start;
  position: relative;
  gap: 30px;
  margin: 0 40px;
}

#profile-signature tr {
  display: block;
  margin: 0px 0 0 0;
  border: none !important;
  background: none !important;
}

#profile-signature ul {
  border: none !important;
  padding: 0px !important;
  width: 100%;
}

/*-------------------------------------------------------------------------------------- left part */
#viewprofile #profile-left {
  width: inherit !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  position: relative;
  margin-bottom: 35px;
}

#profile-left li {
  color: var(--color-dark1);
  width: 100%;
}

#profile-left li > strong {
  display: block;
}

#profile-name > strong {
  width: 100%;
}

#profile-title {
  order: 1;
}

#profile-name {
  order: 2;
}

#pa-avatar {
  order: 3;
}

#pa-fld1 {
  order: 4;
}

#pa-fld6 {
  order: 5;
  margin-top: 20px;
}
#pa-fld7 {
  order: 6;
}

/*-------------------------------------------------------------------------------------- right part */
#profile-right {
    width: 100% !important;
    overflow: visible !important;
    height: 100%;
    gap: 10px 30px;
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: start;
    grid-template-rows: repeat(1, 26px);
    align-content: start;
}

#profile-right li,
#profile-signature {
  gap: 10px;
  display: flex;
  height: 100%;
  align-items: center;
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  background: var(--color-light2);
  border-radius: 6px;
  padding: 7px 10px;
}

#profile-right li > span,
#profile-right li > span * {
  font-weight: 500;
  font-size: 12px;
}

#profile-right li > span,
#profile-right li > span a {
  color: var(--color-dark2) !important;
}

#profile-right li > strong,
#profile-signature p {
  padding: 0 !important;
  font-weight: 400;
  font-size: 12px;
}

#profile-right strong,
#profile-right strong a,
#profile-signature p {
  color: var(--color-dark2) !important;
}

#pa-posts {
  grid-column: 1;
  order: 7;
}

#pa-posts > strong a {
  font-size: 0;
  color: var(--color-accent2) !important;
}

#pa-posts strong a:before {
  font-size: 11px;
  text-transform: none;
}

#pa-posts a#user-posts:before {
  content: "Все сообщения |";
}

#pa-posts a#user-topics:before {
  content: "Все темы";
}

#pa-respect {
  grid-column: 1;
  order: 1;
}

#pa-positive {
  grid-column: 1;
  order: 2;
}

#pa-fld2 {
  order: 1;
}

#pa-fld3 {
  order: 3;
}
#pa-fld4 {
  order: 2;
}

li#pa-posts > strong {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

#pa-posts strong {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

#pa-register-date {
  grid-column: 1;
  order: 3;
}

#pa-time-visit {
  grid-column: 1;
  order: 6;
}

#pa-last-post {
  grid-column: 1;
  order: 4;
}

#pa-last-visit {
  grid-column: 1;
  order: 5;
}

.profile_wrap {
  grid-column: 2;
  grid-row: -1/1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#profile-right #pa-email {
  display: flex;
  justify-content: center;
  grid-column: 1;
  order: 8;
}

.edit_email_wrap {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 6px;
  position: absolute;
  bottom: -35px;
  height: 21px;
}

.edit_email_wrap a {
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.24);
  background: var(--color-light2);
  border-radius: 6px;
  padding: 4px 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: inherit;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #4b4b4b;
}

.edit_email_wrap #pa-edit a {
  background: var(--color-dark2) !important;
  color: #ececea;
}

#profile-signature {
  grid-column: -1/1;
  order: 9;
}
#profile-signature,
#pa-fld2 {
  flex-direction: column;
  padding: 0 !important;
  align-items: flex-start !important;
}

#profile-right #pa-fld2 > span,
#profile-signature:before {
  background: var(--color-dark2);
  width: fit-content;
  color: var(--color-light1) !important;
  display: flex;
  align-items: center;
  border-radius: 8px 0 0 0;
  padding: 3px 5px;
  font: 500 10px var(--font-fav);
}

#profile-signature:before {
  content: "подпись";
}

#profile-right #pa-fld2 > strong,
#profile-signature p {
  padding: 0px 20px 20px 20px !important;
  margin: 0 !important;
}

#profile-signature p {
  text-transform: none;
}

#pa-email-edit {
  position: absolute;
  bottom: -35px;
  height: 23px;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 9px !important;
}

#pa-email-edit a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 500;
}

/*-------------------------------------------------------------------------------------- navigation */
#profilenav,
#pun-adnav {
  display: flex !important;
  justify-content: space-between;
  float: left;
  margin-left: 0 !important;
  position: sticky;
  top: 64px;
  font-size: 11px;
  font-weight: 500;
  flex-direction: column;
  gap: 10px;
}

#profilenav h2,
#pun-adnav h2 {
  margin-bottom: -26px !important;
}

#profilenav > ul,
#adnav-standard > ul {
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-direction: column;
  padding: 30px 15px 15px 15px !important;
  width: var(--profnav-w) !important;
  border-radius: 6px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  background: var(--color-light2);
  gap: 10px;
}

.messages-container #profilenav ul:first-of-type a:hover {
  background: #cecece;
}

#profilenav .isactive a,
#pun-adnav .isactive a,
.messages-container #profilenav ul:first-of-type .isactive a {
  color: var(--color-accent6) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

#pun-adnav ul ul {
  margin: 10px 0;
  border-radius: 10px;
  border: var(--border1);
  padding: 10px !important;
}

#pun-messages #profilenav > ul:first-of-type {
  gap: 10px;
}

#pun-messages #profilenav > ul:first-of-type .isactive a {
  background: var(--color-dark2);
  color: var(--color-light1) !important;
  font-weight: 500 !important;
}

/*-------------------------------------------------------------------------------------- inside */
#profile fieldset,
.adformal,
#profile .container > .formsubmit {
  padding: 20px;
}

.adfs-box .pagelink {
  gap: 5px;
}

#pun-profile .container > fieldset,
#pun-profile .container > form,
#pun-profile .adfs-box,
#pun-profile .select-file,
#profile .container > .formsubmit,
.adformal,
#messages,
.messages-container > .container > fieldset,
#profileContainer {
  margin-left: calc(var(--profnav-w) + 20px) !important;
}

#profile fieldset fieldset,
#pun-admin_paid_services #pun-admain2 {
  margin-left: 0px !important;
  padding: 0px;
}

#pun-profile #profile {
  min-height: 300px;
}

span.files-page-select select {
  padding: 0px 7px;
}

/* PAGES: USERLIST, RESPECT, ONLINE
--------------------------------------------------------------------------------------------------------------------------*/
.usertable td,
.usertable th {
  text-align: center;
}

.usertable tbody .tcl,
#pun-respect tbody .tcl,
#pun-positive tbody .tcl {
  text-align: left;
}

#pun-respect #pun-main > .section td,
#pun-respect #pun-main > .section th,
#pun-positive #pun-main > .section td,
#pun-positive #pun-main > .section th {
  width: auto !important;
  text-align: center;
  overflow: hidden;
}

/*-------------------------------------------------------------------------------------- userlist */
.usertable tbody .username,
td.pmtc22 {
  display: grid;
  grid-template-columns: 36px auto;
  grid-template-areas: "ava user";
  gap: 10px;
  align-items: center;
}

#pun-online th.tcl.action {
  white-space: nowrap;
}

/*td.pmtc22 {
justify-content: end;
}*/

.usersname,
td.pmtc22 a,
#pun-viewforum td.tcr .byuser,
#pun-searchtopics td.tcr .byuser {
  grid-area: user;
  order: 2;
}

#pun-viewforum td.tcr .user-avatar,
#pun-searchtopics td.tcr .user-avatar {
  order: 1;
}

.usersname a {
  color: var(--color-dark1);
}

/* PAGES: MESSAGESb
--------------------------------------------------------------------------------------------------------------------------*/
#pun-messages li.pa-author {
  order: 2;
}

#pun-messages li.pa-avatar.item2 {
  order: 3;
}

#pun-messages li.pa-posts {
  display: none;
}

#pun-messages li.pa-title {
  order: 1;
}

#pun-messages .pa-active,
#pun-messages .pa-online {
  order: 4;
}

#messages .linksb {
  margin-left: 0;
  margin-top: 20px;
}

.postlink.long .new-topic {
  padding: 0 !important;
}

input#OnOff_Notify {
  margin-top: -2px;
}

#volSlider.vol_slider {
  margin-top: 1px;
}

#messages td.tc3.pmtc33 {
  color: var(--color-dark4);
  font-size: 10px !important;
}

#messages td.tc2.pmtc22 a {
  font-weight: 500;
}

/* SCROLLBAR / SELECTION
--------------------------------------------------------------------------------------------------------------------------*/
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

#pun *::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray1);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent1);
}

.scrollbox::-webkit-scrollbar-track {
  background: var(--color-gray1);
}

/*-------------------------------------------------------------------------------------- selection */
::selection,
.highlight-text {
  color: var(--color-light2) !important;
  background: var(--color-dark2) !important;
}

/* HIDDEN ELEMENTS
--------------------------------------------------------------------------------------------------------------------------*/
.acchide,
h1,
#pun-navlinks h2,
#pun-status h2,
#pun-ulinks h2,
.multipage .topic h2,
form#post.container legend span,
.post-sig dt span,
.crumbs strong,
.divider hr,
#pun-userlist .main h2,
#pun .modlist,
.stickytext,
.closedatafield,
#pun-viewforum #pun-main h2,
#pun-announcement h2,
#pun-modviewforum h2,
#pun-break4,
#pun-messages .post-sig,
.tipsy-arrow,
.clearer,
#pun-searchtopics #pun-main h2,
.num_msg:before,
#topic-users-in a:last-child:after,
#topic-modmenu span,
#pun-viewforum .modmenu span,
#post-form h2,
#pun-index thead,
/*#profile thead,*/
#pun-index .tcr br,
/*#pun-index .tc2,
#pun-index .tc3,*/
.lastedit,
.pa-reg,
.pa-gifts,
.pa-replies,
.sharelink,
.pl-share,
.pl-reports,
#viewprofile-next #profilenav,
#pa-invites,
#profile-gifts,
#pun-live-rusff,
.crumbs em,
#pun-searchposts em,
#pun-searchtopics .modmenu,
.bubble:after,
#pun-post .topic h2,
.hide-box .qcn,
#topic-feed,
.modal-inner h2 span,
.catleft,
.catright,
#button-files_rusff,
#button-graffiti_rusff,
#pun-index .subforums em,
.reactions-root,
.pa-ip .fld-name,
.mylike .post-vote,
#button-smile,
#pa-name,
#pa-birthdate,
#pa-location,
.postlink .closed,
.pa-respect img,
.pa-online,
.pa-last-visit,
#messages legend,
sup.new,
label[for="tags"],
span.cooltext,
.cool2,
#post #post-preview legend,
.postlink .closed,
#h-unanswered,
#h-replies,
#pa-sex,
/* new */
#pun-index #pun-crumbs2,
#pun-admain1 > h2,
#pun-admain2 > h2,
.punbb-admin .status-right,
.user-avatar,
#pun-multimove .pa-title,
#pa-fld1 > span,
#pa-email > span,
#pa-email .sendemail,
#pa-online,
#pa-fld5 > span,
#pa-fld6 > span,
#pa-fld7 > span,
.post-author ul:has(.pa-fld6):before,
#pun-messages post-author ul:has(.pa-fld6):before,
#viewprofile #profile-left:has(#pa-fld6):before,
.post-author ul:has(.pa-fld7):after,
#pun-messages post-author ul:has(.pa-fld7):after,
#viewprofile #profile-left:has(#pa-fld7):after,
#pun-viewtopic .post[data-group-id="3"] .post-author ul:before, #pun-viewtopic .post[data-group-id="3"] .post-author ul:after,
#pun-viewtopic .post[data-user-id="9"] .post-author ul:before, #pun-viewtopic .post[data-user-id="9"] .post-author ul:after,
.id-9 #profile-left:before, .id-9 #profile-left:after,
#pun-viewtopic .post[data-user-id="2"] .post-author ul:before, #pun-viewtopic .post[data-user-id="2"] .post-author ul:after,
.id-2 #profile-left:before, .id-2 #profile-left:after {
  display: none !important;
}

.pun-modal.unread-notifications .modal-inner h2 span,
.pun-modal.rating_theme h2 span,
#pun-index .user-avatar,
#pun-userlist .user-avatar {
  display: inline-block !important;
}

/* MOBILE / MOZILLA
--------------------------------------------------------------------------------------------------------------------------*/
@-moz-document url-prefix() {
  * {
    scrollbar-width: thin;
  }
}

/*html{min-width: 1200px!important;}для мобил*/
@media screen and (max-device-width: 480px) {
  /*  a,
  a:hover,
  a:focus,
  a:active,*/
  #pun-status,
  .crumbs,
  #pun-stats ul.container,
  .modmenu .container,
  #pun-index .tcr .lastpost,
  #pun-respect td,
  #pun-respect th,
  #pun-positive td,
  #pun-positive th,
  #pun-viewforum td,
  #pun-searchtopics td,
  .quote-box a,
  .quote-box,
  .code-box a,
  .code-box {
    -webkit-text-size-adjust: none;
  }
  .hashelp center div a button,
  .button,
/*  input,*/
  select {
    appearance: none !important;
    -webkit-appearance: none !important;
  }
  .arrows_wrap,
  body:before,
  body:after,
  #pun:before,
  #pun:after {
    display: none !important;
  }

#theme_switcher {
  left: 50px;
}
#chfont {
    left: 12px;
}
}
