/*************************************************************
A - SETUPthead
**************************************************************/

/* A1 Import the colour scheme
-------------------------------------------------------------*/

/* A1.1 */
  @import url(style_cs.1793123584.css);
  @import url('https://foFnts.googleapis.com/css2?family=PT+Mono&family=Roboto&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
 @import url('https://fonts.googleapis.com/css2?family=Tektur:wght@400;600;800&family=IBM+Plex+Sans:wght@400;500&family=PT+Mono:wght@400;500&display=swap');

/* A2 Deal with browser defaults and wonkiness
-------------------------------------------------------------*/


    :root {
      --color-bg:            #2b3232;
      --color-bg-alt:        #393e3e;
      --color-bg-dark:       #1e2125;
      --color-bg-darker:     #23272b;
      --color-block-bg:      #2f3434;
      --color-text:          #cdb89c;
      --color-heading:       #eae0c7;
      --color-secondary:     #95c3a3;
      --color-border:        #424646;
      --gradient-bg:         linear-gradient(to right, #393e3e, #2b3232);
      --color-button-bg:     #2f3434;
      --color-button-text:   #cdb89c;
      --color-button-hover:  #393e3e;
      --color-highlight-bg:  rgba(255,255,255,0.1);
      --shadow-inner:        inset 0 0 5px #1e2222;
      --shadow-outer:        0 2px 8px rgba(0,0,0,0.5);
      
       --transition:.25s ease;
       --cut: 25px;
       
        --corn:7px;   /* длина штриха */
        --stroke:0px;  /* толщина */
        
          --corn1:5px;   /* длина штриха */
        --stroke1:0px;  /* толщина */
    }

/* A2.1 */
html {margin: 0; padding: 0}

html, body {
    
  margin: 0;
  padding: 0;
  overflow-x: auto;
  width: 100%;
  min-width: 1200px;
}

/* A2.2 */
.punbb * {
  margin: 0;

  }

/* 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 */

#pun {
  width: 1080px;
  margin: 0 auto;
  background-color: var(--color-bg-dark);
  background-image: url(https://forumstatic.ru/files/001c/7c/69/93307.jpg);
  background-repeat: repeat;
  background-position: top center;
  border: 1px solid var(--color-border);
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-image: url('https://forumstatic.ru/files/001b/a2/9c/72483.png');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #2b3232;
  color: #cdb89c;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

/* A3.2 */
.punbb {
  font: normal 80% 'IBM Plex Sans', verdana, arial, helvetica, sans-serif;
  }

/* 3.3 */
.punbb textarea, .punbb input, .punbb select, .punbb optgroup {
  font: 1em 'IBM Plex Sans', 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: 1.1em/140% 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: underline*/
  color: var(--color-secondary);
  }

/* 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.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.0;
  position:absolute;
  left: -9999px;
  overflow: hidden
  }


/* A5 Basic page layout and borders
-------------------------------------------------------------*/

/* A5.1 */


/* A5.2 */
.punbb {
  float: left;
  width: 100%;
  height: auto;
  }

/* A5.3 */
#pun-redirect, #pun-maint {
  margin: 50px 20% 12px 20%;
  width: auto;
  float: none;
  }
  
    #pun-redirect{
      border: 0 none !important;
    background-image: url(https://forumstatic.ru/files/001c/7c/69/91946.jpg);
    background-position-x: center;
    background-position-y: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: rgb(43, 50, 50);
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    text-align: center;
  
}
#pun-redirect *{
  border:0 none;
}
#pun-redirect .main-title {
  display:none;
}
#pun-redirect.punbb .info .container{
    text-align: center;
    display: inline-block;
    font-weight: 700;
    font: 500 1.2rem / 1 'Tektur', sans-serif;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 7% auto;
    width: 600px;
    padding: 100px 140px !important;
    height: 420px;
    background: url(https://forumstatic.ru/files/001c/7c/69/95824.png) no-repeat top center !important;
}


#pun-redirect.punbb .info .container .backlink 
{
    width: 400px;
    padding: 100px 100px;
    /* margin-top: 50px; */
    font-family: 'PT Mono';
    font-size: 14px;
}

#pun-redirect.punbb .info .container a{
     font-weight: 400;
    text-decoration: none;
}
  

/* A5.4 */
.punbb .section, .punbb .main {
  margin-bottom: 1em;
  }

/* A5.5 */
.punbb .category {
  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-width: 1px 1px 1px 1px;
  }

/* A5.9 */
.punbb .container {
  border-style: solid;
  border-width: 1px;
  }

/* A5.10 */
.punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 {
  padding: 0.5em 1em;
  border-style: none solid solid none;
  border-width: 0 1px 1px 0;
  }


/*************************************************************
B - MAIN CONTENT - GENERAL
**************************************************************/

/* B1 Parsed Content, Signatures and Scroll Boxes
-------------------------------------------------------------*/

/* B1.1 */
.punbb .post-content {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
  }

/* B1.2 */
.punbb .post-sig dt {
    display: block;
    width: 250px;
    height: 1px;
    margin-bottom: 0.8em;
    position: relative;
    background: linear-gradient(to right, var(--color-border), var(--color-secondary), var(--color-border));
  }

/* B1.3 */
.punbb .post-content p {
  margin: 0;
  padding: 0 0 1em 0;
  line-height: 150%;
  font-size: 14px;
  text-align: justify;
  }

/* 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 .code-box {
    background: var(--color-bg-darker);
    color: var(--color-secondary);
    margin: 0.6em 1.8em 1.6em;
    padding: 1em 1.2em;
    font-family: Consolas, "JetBrains Mono", "Courier New", monospace;
    font-size: 0.95em;
    line-height: 1.45;
    border: var(--stroke) solid var(--color-border);
    border-left: 3px solid var(--color-secondary);
    box-shadow: var(--shadow-inner), var(--shadow-outer);
    clip-path: polygon(0 0, calc(100% - var(--corn1)) 0, 100% var(--corn1), 100% 100%, var(--corn1) 100%, 0 calc(100% - var(--corn1)));
    overflow-x: auto;
    white-space: pre;
  }
  
  .punbb .post-content .quote-box
  {
  margin: 0.6em 1.8em 1.6em;
    padding: 1.1em 1.2em 1.1em 1.6em;
    color: var(--color-text);
    box-shadow: var(--shadow-inner), var(--shadow-outer);
    clip-path: polygon(0 0, calc(100% - var(--corn)) 0, 100% var(--corn), 100% 100%, var(--corn) 100%, 0 calc(100% - var(--corn)));
    background-color: #23272b4d;
  }



/* B1.9 */
.punbb .quote-box cite, .punbb .code-box strong.legend {
    display: inline-block;
    margin-bottom: 0.6em;
    padding: 0.15em 0.6em;
    font-size: 1em;
    font-weight: 600;
    color: var(--color-bg-darker);
    background: var(--color-secondary);
    border: var(--stroke1) solid var(--color-border);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  }

/* 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;
  }

/* 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;
}

#post-form.formal .container {
    padding: 0 0 1.1em 0;
}

/* C1.2 */
.punbb .formsubmit {
  padding: 0 0 0 1.7em;
  margin: 1em 0 0 0;
  }
  
  #post-form.formsubmit {
  padding: 0 0 0 1.7em;
  }

/* C1.3 */
.punbb .formsubmit input, .punbb .formsubmit a, .punbb .formsubmit span {
  margin: 0 0.6em 0 0
  }

/* C1.4 */
.punbb fieldset {
  border-style: solid;
  border-width: 1px;
  padding: 0 18px 0 18px;
  }

/* C1.5 */

#post-form.formal legend {
    display: none;
    
}
.punbb fieldset legend {
  
   padding: 0;
    margin: 0 0 0 11px;
    font: 600 1.1rem / 1 'Tektur', sans-serif;
}
  }

/* 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: 64%;
  margin: 0;
  }

/* 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: left;
  width: 70%;

  }

/* C2.2 */
.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod {
  text-align: center;
  width: 10%;
  }

/* C2.3 */
.punbb .main .tcr {
  overflow: hidden;
  width: 30%;
  background-color: var(--gradient-bg);
  }

/* 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: 90%;
  white-space: normal;
  }

/* C2.8 */
#pun-index .tcl h3 {
  font-size: 1.2em;
  /*font-weight: bold;*/
  }

/* C2.9 */
.punbb td span.youposted {
  font-weight: bold;
  margin-left: -1em;
  position: absolute;
  }

/* C2.10 */
.punbb td .modlist {
  display: block;
  padding-top: 0.3em
  }

/* C2.11 */
.punbb .main td {
  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
  }

/* C2.14
.punbb tbody.hasicon td.tcl {
  padding-left: 3.2em
  }
 */

/* C2.16 */

 /* C3 Topics
-------------------------------------------------------------*/

/* C3.1 */
.punbb .post .container {
  border-style: none solid solid solid;
  border-width: 1px;
  margin-top: -1px;
  padding-bottom: 1px;
  }

/* C3.2 */
.punbb .post h3 {
  border-style: solid solid none solid;
  border-width: 1px;
  }

/* C3.3 */
.punbb .post h3 span {
  padding: 0.35em 1em;
  display: block;
  margin-left: 245px;
  color: var(--color-button-text);
}

/* C3.4 */
.punbb .post h3 strong {
  float: right;
  width: 5em;
  text-align: right;
  font-weight: normal;
  }

/* C3.5 */
.punbb .post .post-author {
    position: relative;
    display: block;
    float: left;
    width: 266px;
    margin-top: -29px;
    margin-left: -22px;
    border: 1px solid var(--color-border);
    border-radius: 0 20px 20px 0;
    background: url(https://forumstatic.ru/files/001c/7c/69/72992.jpg) no-repeat;
    z-index: 15;
    background-color: var(--color-bg-dark);
    box-shadow: 5px 5px 10px #1e2222;
    
  }

/* C3.6 */
.punbb .post .post-author ul, .punbb .post .post-author p {
  padding: 0 1em 1em 1em;
  line-height: 140%;
  }

/* C3.7 */
.pa-author {
    margin-top: 10px;
    font: 500 25px / 1 'Tektur', sans-serif;
    text-align: center;

  }

/* C3.8 */
.pa-author a {
  text-decoration: none
  }

/* C3.9 */
li.pa-title {
    padding-bottom: 0.4em;
    font-size: 14px;
    font-family: "IBM Plex Sans";
    text-align: center;
  }
  
li.pa-avatar.item2 {
    display: flex;
    justify-content: center;
    align-items: center;
}



.pa-avatar {
  position: relative;
  display: inline-block;
}

/* Ваш стиль для кружка статуса */
.pa-avatar::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 9px solid var(--color-bg-dark);
  z-index: 2;
  transition: all 0.3s ease;
}

/* Зеленый для онлайн */
.pa-avatar.online::after {
  background-color: #4CAF50;
}

/* Серый для офлайн */
.pa-avatar.offline::after {
  background-color: #595959;
}


/* Контейнер для подсказки */
.status-tooltip {
  position: absolute;
  bottom: 28px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 100;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
  min-width: 120px;
  text-align: center;
}

/* Стрелка подсказки */
.status-tooltip::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: 14px;
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
}

/* Показ подсказки при наведении */
.pa-avatar:hover .status-tooltip {
  opacity: 1;
  visibility: visible;
}


li.pa-online {
  display: none;
  }
  
.pa-fld2 {
    text-align: center;
    font-family: 'PT Mono';
    font-size: 16px;
    margin-top: 5px;
}

.pa-fld2 a
 {
    text-decoration: none;
    color: var(--color-heading);
}

.pa-fld1 {
    width: 230px;
    background-color: var(--color-bg-darker);
    border-radius: 12px;
    font-size: 13px;
    border: 5px solid var(--color-bg-darker);
    margin: 10px auto 0 auto;
    padding: 15px;
    box-sizing: border-box;
    text-align: justify;
    word-break: break-word;
    color: var(--color-text);
    box-shadow: 0 0 0 5px var(--color-bg-darker);
    hyphens: auto;
    line-height: 1.45;
}


/* Делаем элементы списка строчными */
.pa-posts, 
.pa-respect, li.pa-positive {
    display: inline-block;
    vertical-align: middle;
    margin-left: 18px;
    margin-top: 15px;
    font-family: 'IBM Plex Sans';
    font-size: 13px;
    color: var(--color-text);
}

li.pa-respect {
    color: var(--color-bg-dark);
}

li.pa-respect span
 {
    color: var(--color-text);
}


/* Стили для замены текста на изображения (ваш предыдущий код) */
.pa-posts .fld-name,
.pa-respect .fld-name,
li.pa-positive .fld-name{

    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    overflow: hidden;

}

.pa-posts .fld-name::after,
.pa-respect .fld-name::after,
li.pa-positive .fld-name::after{
    content: "";  /* Важно! Без этого ::after не появится */
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;  /* Или inline-block */
}

.pa-posts .fld-name::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232f3434"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></svg>');
}

.pa-respect .fld-name::after {
    
    background-image: url(https://forumstatic.ru/files/001c/7c/69/67184.png);
}

li.pa-positive .fld-name::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232f3434"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    
}

/* Показываем текст при наведении через псевдоэлемент */
.pa-posts:hover::after, 
li.pa-respect:hover::after,
li.pa-positive:hover::after
{
    position: absolute;
    display: flex;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 100;
    white-space: nowrap;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    text-align: center;
}

.pa-posts:hover::after
{
  content: "Сообщений";
}

li.pa-respect:hover::after {
  content: "Уважение";
}

li.pa-positive:hover::after {
  content: "Позитив";
}

.pa-posts .fld-name a,
.pa-respect .fld-name a,
li.pa-positive .fld-name a{
    display: none;
}

.pa-posts .fld-name,
.pa-respect .fld-name,
li.pa-positive .fld-name{
    color: transparent;
    font-size: 0;
}

/* Скрываем лишние элементы */
.pa-respect a[rel="nofollow"] {
  display: none !important;
}

.mini_awards_label
 {
    display: none;
}


/* C3.11 */
.punbb .post-body {
    margin-left: 250px;
    padding: 1px 1px 1px 1px;
  }

/* C3.12 */
.punbb .post-box {
  padding: 1em;
  }

/*C3.13 */
.punbb fieldset .post-box {
  margin-bottom: 0.8em
  }

/* C3.14 */
.punbb .post-links {
  margin-left: 19em;
  }

/* C3.15 */
.punbb .post-links ul {
  padding: 0 1em 0 1em;
  height: 2em;
  line-height: 2em;
  margin-left: -19em;
  background: transparent;
  text-align: right;
  background: var(--color-bg);
  }

/* C3.16 */
.punbb .post-links li {
    display: inline;
    padding: 2px 10px;
    font: 500 .75rem / 1 'PT Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--gradient-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px;
    box-shadow: inset 0 0 5px #1e2222;
    transition: background var(--transition), border var(--transition);
  }
  .post-links li.pl-share {
    display: none !important;
}
  
.punbb .post-links li a {
    text-decoration: none;
}

/* C3.17 */
.pl-email, .pl-website {
  float: left;
  }

/* C3.18 */
.punbb .clearer {
  clear: both;
  height: 0;
  font-size: 0;
  }


/* 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.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 ul, #profilenav ul {
  border-style: solid;
  border-width: 1px;
  padding: 1.5em 18px 0.8em 18px;
  margin: 0 0 1em 0;
  }

/* C6.5 */
#viewprofile h2, #profilenav h2 {
  background: transparent;
  border: none;
  padding: 0 0 0 0;
  margin: 0 14px -0.6em 14px;
  }

/* 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: 0.2em;
  }

/* C6.8 */
#viewprofile li span {
  float: left;
  width: 14em;
  margin-left: -16em;
  padding: 0.5em 1em;
  font-weight: bold;
  }

/*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: solid;
  border-width: 1px;
  }


/*************************************************************
D - PUNBB SECTIONS OTHER THAN MAIN CONTENT
**************************************************************/

/* D1 Logo and description
-------------------------------------------------------------*/

/* D1.1 */
#pun-title {
  display: none !important;
  }



/* 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: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: linear-gradient(to right, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 9px 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: visible;
  }
  #pun-navlinks ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    border-style: none;
  }
  #pun-navlinks li {
    margin: 0;
  }
  #pun-navlinks a {
    color: var(--color-text);
    text-decoration: none;
    font-family: 'PT Mono', monospace;
    font-size: 16px;
    padding: 4px 8px;
    transition: color 0.2s, background 0.2s;
    border-radius: 4px;
  }
  #pun-navlinks li.isactive > a {
    background: rgba(255,255,255,0.05);
  }
  #pun-navlinks a:hover {
    background: rgba(255,255,255,0.1);
  }

/* D4 User links
-------------------------------------------------------------*/

/* D4.1 */

#pun-ulinks {
    margin: -510px 0 510px -21px;/* Центрируем блок на странице */
    position: relative;
    padding: 0 10px; /* Отступы по бокам для фона вкладок */
    
    box-sizing: border-box; /* Важно, чтобы padding не увеличивал общую ширину 1020px */
    overflow: hidden; 
}


/* D4.2 */


/* D4.3 */

#pun-ulinks .container {
    padding: 0;
    margin: 0;
    display: block;
    position: relative;
    top: 1px; /* Смещаем ul немного вниз, чтобы вкладки "наезжали" на border-bottom родителя */
    border-width: 0 0 2px 0;
}

#pun-ulinks .container ul {
    /* Эти свойства устанавливает JavaScript: */
    /* display: flex; */
    /* flex-wrap: nowrap; */
    /* margin: 0 -10px;  - ЭТОТ ОТСТУП ОСТАЕТСЯ, ОН КОМПЕНСИРУЕТ PADDING РОДИТЕЛЯ */
    /* width: auto; */

    padding: 0;
    margin: 0 -10px; /* Возвращаем этот margin, чтобы ul растягивался на всю ширину родителя */
    list-style: none;
    box-sizing: border-box;
    position: relative; /* Для правильного z-index контекста */
}

#pun-ulinks .container li {
    /* Эти свойства устанавливает JavaScript: */
    /* flex: 1 0 auto; */
    /* box-sizing: border-box; */
    /* min-width: 100px; */

    list-style: none;
    margin: 0; /* Убедимся, что нет лишних отступов на li */
    padding: 0;
    position: relative;
    z-index: 1; /* Базовый z-index для всех вкладок. ЭТО ВАЖНО, чтобы z-index работал */
    /* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: УДАЛИЛИ overflow: hidden; отсюда, чтобы не обрезалось содержимое */
    /* overflow: hidden; */ 
}

/* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: z-index для нахлеста - Правая вкладка теперь выше левой */
/* Чем правее вкладка, тем выше ее z-index */
#pun-ulinks .container li:nth-child(1) { z-index: 1; } /* Самая левая - самый низкий z-index */
#pun-ulinks .container li:nth-child(2) { z-index: 2; }
#pun-ulinks .container li:nth-child(3) { z-index: 3; }
#pun-ulinks .container li:nth-child(4) { z-index: 4; }
#pun-ulinks .container li:nth-child(5) { z-index: 5; }
#pun-ulinks .container li:nth-child(6) { z-index: 6; }
#pun-ulinks .container li:nth-child(7) { z-index: 7; }
#pun-ulinks .container li:nth-child(8) { z-index: 8; }
#pun-ulinks .container li:nth-child(9) { z-index: 9; }/* Самая правая - самый высокий z-index */
/* Добавьте больше, если у вас больше вкладок, продолжая последовательность (z-index: 6, 7 и т.д.) */

/* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: Возвращаем нахлест с помощью margin-left на A, а не на LI */
#pun-ulinks .container li:not(:first-child) a {
    margin-left: -15px; /* Отрицательный отступ для эффекта нахлеста. Регулируйте значение! */
}

/* Удаленный стиль:
#pun-ulinks .container li:not(:last-child) {
    margin-right: -15px;
}
*/

/* НОВОЕ ПРАВИЛО: Гарантируем, что первая кнопка не обрезается */
#pun-ulinks .container li:first-child a {
    margin-left: 0 !important; /* Убедимся, что у первой ссылки нет отрицательного левого отступа */
    /* Padding-left уже установлен в 15px общим правилом ниже, этого должно быть достаточно */
}


/* Стилизация самой ссылки-вкладки для ретро-эффекта и закругленных краев */
#pun-ulinks .container li a {
    display: flex; /* Используем flex для выравнивания текста внутри a */
    align-items: center; /* Выравнивание текста по вертикали (по центру) */
    justify-content: flex-start; /* Выравнивание текста по левому краю */
    position: relative; /* Для позиционирования псевдоэлементов и z-index */
    padding: 8px 10px 8px 10px; /* Увеличил правый padding, чтобы текст не прижимался к краю. Левый 15px по умолчанию */
    font-family: 'PT Mono', sans-serif;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap; /* Предотвращает перенос текста */
    box-sizing: border-box;
    cursor: pointer;
    height: 100%; /* Важно, чтобы ссылка заполняла всю высоту li */

    background-color: transparent; /* Фон будет у псевдоэлемента */
    color: var(--color-text); /* Цвет текста */

    border: none; /* Все границы и тени будут на псевдоэлементе */
    box-shadow: none;
}

/* Создаем форму с закругленными краями и объем с помощью псевдоэлемента ::before */
#pun-ulinks .container li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* ИЗМЕНЕНИЕ ЗДЕСЬ: Закругляем только верхний правый угол (top-left top-right bottom-right bottom-left) */
    border-radius: 6px 6px 0 0; 
    
    background-color: var(--color-bg-dark); /* Основной цвет вкладки */
    
    /* Обводка, имитирующая объем - на псевдоэлементе */
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: none; /* Нижняя граница не нужна */

    /* Внутренняя тень для объема - на псевдоэлементе */
    box-shadow: inset 1px 1px 0px 0px rgba(255, 255, 255, 0.15), /* Светлая тень сверху-слева */
                inset -1px -1px 0px 0px rgba(0, 0, 0, 0.3); /* Темная тень снизу-справа */
    
    transition: background-color 0.1s ease-out, box-shadow 0.1s ease-out;
    z-index: -1; /* Помещаем псевдоэлемент под текст ссылки */
}

/* Стиль при наведении (hover) */
#pun-ulinks .container li a:hover::before {
    background-color: var(--color-bg-alt); /* Чуть темнее при наведении */
    /* Инвертируем тени для эффекта "нажатия" или "активности" */
    box-shadow: inset 1px 1px 0px 0px rgba(0, 0, 0, 0.3), /* Темная тень сверху-слева */
                inset -1px -1px 0px 0px rgba(255, 255, 255, 0.15); /* Светлая тень снизу-справа */
}

#pun-ulinks .container li a.active {
    z-index: 99; /* Активная вкладка должна быть выше всех остальных */
}

#pun-ulinks .container li a.active::before {
    background-color: var(--color-bg); /* Цвет активной вкладки - как фон основного содержимого */
    border-bottom: 1px solid var(--color-bg); /* Граница снизу, совпадающая с фоном, чтобы выглядело как часть блока */
    /* Инвертируем тени, чтобы выглядело "вдавленным" */
    box-shadow: inset 1px 1px 0px 0px rgba(0, 0, 0, 0.3), /* Темная тень сверху-слева */
                inset -1px -1px 0px 0px rgba(255, 255, 255, 0.15); /* Светлая тень снизу-справа */
    
    /* ИЗМЕНЕНИЕ ЗДЕСЬ: Для активной кнопки также закругляем только верхний правый угол */
    border-radius: 6px 0 0 0; /* top-left, top-right, bottom-right, bottom-left */
}

/* D5 Welcome box and Top Breadcrumbs
-------------------------------------------------------------*/

/* D5.1 */
 /* Статус пользователя с адаптированным стилем */
  #pun-status.section {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    margin: 5px 0;
    padding: 6px 15px;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
  }

  }
  #pun-status h2 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--color-heading);
    flex-shrink: 0;
  }
  #pun-status .container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    border-style: none;
    
  }
  
  #pun-status .status-right {
    margin-left: auto;
  }

  /* Разделитель */
  #pun-break1.divider hr {
    width: 100%;
    margin: 12px 0;
    border: none;
    border-top: 1px solid var(--color-border);
  }

  /* Хлебные крошки (предыдущий стиль) */
  #pun-crumbs1.section .container.crumbs, #pun-crumbs2.section .container.crumbs {
    width: 100%;
    margin: 0 4px;
    display: flex;
    align-items: center;
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    color: var(--color-text);
    gap: 5px;
    border-style: none;
  }
  #pun-crumbs1.section .container.crumbs strong,  #pun-crumbs2.section .container.crumbs strong {
    color: var(--color-heading);
  }

/* 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
  }

/* D7.2 */
#pun-stats li.item1, #pun-stats li.item2 {
  float: left;
  clear: both;
  line-height: 150%;
  }

/* D7.3 */
#pun-stats li.item3, #pun-stats li.item4 {
  text-align: right;
  line-height: 150%;
  }

/* D7.4 */
li#onlinelist {
  margin-top: 1em;
  border-top-style: solid;
  border-top-width: 1px;
  float: left;
  width: 100%;
  line-height: 130%;
  }

/* D7.5 */
li#onlinelist div {
  border-top-style: solid;
  border-top-width: 1px;
  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: none;
  text-align: right;
  line-height: 150%;
  padding: 0.8em 1em;
  }

/* D8.5 */
#pun-about p span {
    display: block;
    text-align: center;
    overflow-y: auto;
  }

/* D8.6 */
#pun-crumbs2 {
  font-weight: bold;
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: none;
  }

/* D8.7 */
#pun-crumbs2 .container {
  border-bottom: none;
  padding: 0.8em 1em;
  font-size: 1.1em;
  }

/* D8.8 */
#pun-break4 {
  margin: -2px 1em;
  /*border-style: solid none;
  border-width: 1px 0;*/
  position: relative;
  height: 0;
  z-index: 1;
  }

/* D8.9 */
div.punbb-admin #pun-about .container {
  border-top-style: solid;
  border-top-width: 1px;
  }


/* 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;
  }
  
  
  /*Шапка*/
  
   /* --- Кнопки --- */
  button {
    font-family: 'PT Mono', monospace;
    padding: 2px 10px;
    font: 500 .75rem / 1 'PT Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--gradient-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px;
    box-shadow: inset 0 0 5px #1e2222;
    transition: background var(--transition), border var(--transition);
    margin: 5px;
  }

  button:hover {
    background:var(--color-bg-alt);
    border-color:var(--color-secondary);
  }

  button:active {
    transform: scale(0.95);
    box-shadow: inset 0 0 12px #7a7f7f;
  }

  /* --- Блоки --- */
  .banner {
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    text-align: center;
    font-size: 18px;
    color: var(--color-heading);
    border: 1px dashed var(--color-border);
    border-radius: 6px 2px 6px 2px;
  }

/* Стили для выпадающих списков */
.dropdown-pun_index {
  position: relative; /* Важно для позиционирования выпадающего меню */
  display: inline-block; /* Чтобы кнопки располагались в ряд */
}

.dropdown-menu {
 position: absolute;
  top: 100%; /* Располагаем под кнопкой */
  left: 0;
  background-color: var(--color-bg); /* Цвет фона меню */
  border: 1px solid var(--color-border);
  border-radius: 4px;
  min-width: 160px; /* Минимальная ширина меню */
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  z-index: 100; /* Чтобы меню было поверх других элементов */
  
  /* НОВОЕ для анимации: */
  max-height: 0; /* Изначально 0, чтобы скрыть содержимое */
  overflow: hidden; /* Скрываем содержимое, которое выходит за max-height */
  opacity: 0; /* Изначально прозрачное */
  transform-origin: top center; /* Точка трансформации для эффекта "раскручивания" */
  transform: scaleY(0.8); /* Начинаем чуть уменьшенным по Y */
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out; /* Плавные переходы */
  
  flex-direction: column; /* Элементы списка идут в столбик */
  padding: 0px 0; /* ИЗМЕНЕНО: padding 0, чтобы не влиял на max-height в скрытом состоянии */
  /* padding 5px 0 будет добавлен при активном состоянии */
}

.dropdown-menu.active {
  /* НОВОЕ для анимации: */
  max-height: 200px; /* Достаточно большое значение, чтобы показать весь контент */
  opacity: 1; /* Делаем видимым */
  transform: scaleY(1); /* Возвращаем к нормальному размеру */
  padding: 5px 0; /* Возвращаем padding при открытии */
}

.dropdown-menu a {
  color: var(--color-text); /* Цвет текста ссылок */
  padding: 8px 15px;
  text-decoration: none;
  display: block; /* Ссылки занимают всю ширину */
  white-space: nowrap; /* Не переносить текст ссылок */
}

.dropdown-menu a:hover {
 
  background: linear-gradient(to right, var(--color-bg-alt), var(--color-bg));
  color: var(--color-heading);
}

/* Коррекция для .quick-links, чтобы они не переносились из-за dropdown-pun_index */
.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* ИЗМЕНЕНО: на wrap, чтобы allow wrapping if needed, but not force it */
    justify-content: center;
    margin-bottom: 20px;
    overflow-x: visible; /* ИЗМЕНЕНО: на visible, чтобы выпадающие списки не обрезались */
    width: 100%;
}
  

  .main-content {
    display: flex;
    gap: 20px;
  }

  .left-panel, .right-panel {
    width: 200px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    background: var(--color-bg-darker);
    padding: 15px;
    box-shadow: inset 0 0 5px #1f2424;
  }
  
  .left-panel  { position: relative;  }
  
  
  /*Лефт панель*/
  
 /* === БЛОК АДМИНИСТРАТОРОВ === */

.admins-block {
    font-family: monospace;
    color: var(--color-text-main);
}

/* заголовок */
.admins-title {
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}

/* контейнер аватарок */
.admins-avatars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* аватарка */
.admin-avatar {
    width: 36px;
    height: 36px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.admin-avatar img, .search-avatar img {
     width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;

     clip-path: polygon(
        15% 0%, 
        100% 0%, 
        100% 85%, 
        85% 100%, 
        0% 100%, 
        0% 15%    /* верхний левый возвращается */
    );
    border-radius: 0; /* убираем стандартные радиусы */
}

.admin-avatar:hover img, .search-avatar:hover img {
    transform: scale(1.15);
    clip-path: polygon(
        25% 0%, 
        100% 0%, 
        100% 75%, 
        75% 100%, 
        0% 100%, 
        0% 25%
    );
}




/* сереют все, когда мышь над блоком */
.admins-avatars:hover .admin-avatar,  .search-avatars:hover .search-avatar{
    filter: grayscale(100%) brightness(0.6);
}

/* активная — снова цветная */
.admins-avatars .admin-avatar:hover, .search-avatars .search-avatar:hover {
    filter: none;
    transform: scale(1.15);
    z-index: 2;
}

/* активная аватарка */
.admin-avatar:hover,  .search-avatar:hover,{
    transform: scale(1.15);
    filter: none;
}

/* лёгкий разъезд */
.admin-avatar:hover ~ .admin-avatar, .search-avatar:hover ~ .search-avatar, {
    transform: translateX(4px);
}

.admin-avatar:has(~ .admin-avatar:hover), .search-avatar:has(~ .search-avatar:hover) {
    transform: translateX(-4px);
}

/* === ИНФОРМАЦИЯ === */

.admins-info {
    position: relative;
    font-size: 12px;
    line-height: 1.4;
}

/* дефолт */
.info-default {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    position: relative; 
}

/* карточки админов */
.info-admin {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease;
}

/* имя */
.info-name {
    font-weight: bold;
    margin-bottom: 4px;
}

/* описание */
.info-desc {
    margin-top: 6px;
    opacity: 0.85;
}

/* скрываем дефолт */
.admin-avatar:hover ~ .admins-info .info-default,
.admins-avatars:hover + .admins-info .info-default {
    opacity: 0;
}

/* показываем нужного админа */
.admin-avatar[data-admin="architect"]:hover ~ .admins-info .info-admin[data-admin="architect"],
.admin-avatar[data-admin="erna"]:hover ~ .admins-info .info-admin[data-admin="erna"],
.admin-avatar[data-admin="devil"]:hover ~ .admins-info .info-admin[data-admin="devil"] {
    opacity: 1;
}


/* скрываем дефолт при наведении на ЛЮБОЙ аватар */
.admins-block:has(.admin-avatar:hover) .info-default, .admins-block:has(.admin-avatar:hover) .search-block {
    opacity: 0;
}

/* показываем конкретного администратора */
.admins-block:has(.admin-avatar[data-admin="architect"]:hover)
.info-admin[data-admin="architect"] {
    opacity: 1;
}

.admins-block:has(.admin-avatar[data-admin="erna"]:hover)
.info-admin[data-admin="erna"] {
    opacity: 1;
}

.admins-block:has(.admin-avatar[data-admin="devil"]:hover)
.info-admin[data-admin="devil"] {
    opacity: 1;
}
  

/* === БЛОК "ИЩЕМ В ИГРУ" === */

.search-block {
    position: absolute;
    bottom: 15px; /* отступ от низа */
    left: 15px;
    right: 15px;
}

/* заголовок */
.search-title {
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}

/* контейнер аватарок */
.search-avatars {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* каждая аватарка-ссылка */
.search-avatar {
    width: 36px;
    height: 36px;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}



  .forum-body {
    flex: 1;
    background: rgba(255,255,255,0.02);
    padding: 15px 10px 15px 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    display: flex;
    flex-direction: column;
    
     height: 275px;
  }
  
 

  /* заголовок */
.forum-body h2 {
    margin: 0 0 10px;
    font-size: 0.85em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-heading);
}

/* контейнер новостей с прокруткой */
.news-feed {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;  
   
}


/* отдельная новость */
.news-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* изображение */
.news-item img {
    max-width: 100%;
    display: block;

    /* лёгкая техно-форма */
    clip-path: polygon(
        4% 0%, 100% 0%, 100% 96%, 96% 100%, 0% 100%, 0% 4%
    );

    box-shadow: var(--shadow-outer);
}

/* текст новости */
.news-item p {
    text-align: justify;
  text-justify: inter-word;

  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;

    line-height: 1.5;
    color: var(--color-text);
}

.news-line {
  width: 100%;
  height: 1px;
  margin: 18px 0;

  background: linear-gradient(
    to right,
    transparent,
    var(--color-border),
    transparent
  );
}


  /* --- Иконки line art --- */
  .icon {
    width: 20px;
    height: 20px;
    stroke: #ccc;
    fill: none;
    stroke-width: 2;
    opacity: 0.6;
    vertical-align: middle;
    margin-right: 6px;
    transition: stroke 0.3s;
  }

  .container div:hover .icon,
  button:hover .icon {
    stroke: var(--color-heading);
    opacity: 1;
  }

  /* --- Плеер --- */
  .player {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    padding: 15px;
    box-shadow: inset 0 0 8px #1f2424;
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    user-select: none;
  }

  .player .title {
    font-weight: bold;
    margin-bottom: 8px;
  }

  .player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .player-button {
    width: 32px;
    height: 32px;
    background: var(--color-block-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    box-shadow: inset 0 0 5px #1e2222;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .player-button:hover {
    box-shadow: 0 0 10px 2px #aeb5b7;
    background-color: var(--color-button-hover);
  }

  .player-button:active {
    transform: scale(0.9);
    box-shadow: inset 0 0 12px #7a7f7f;
  }

  .timeline {
    flex: 1;
    height: 6px;
    background: var(--color-button-hover);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 0 5px #1e2222;
  }

  .timeline-filled {
    height: 100%;
    background: var(--color-text);
    border-radius: 3px 0 0 3px;
    width: 40%; /* пример заполнения */
    transition: width 0.3s ease;
  }

  /* --- Плейлист кнопка --- */
  .playlist-button {
    font-family: 'PT Mono', monospace;
    background: var(--color-block-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    padding: 6px 12px;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: inset 0 0 5px #1e2222;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
  }

  .playlist-button:hover {
    box-shadow: 0 0 10px 2px #aeb5b7;
    background-color: var(--color-button-hover);
  }

  .playlist-button:active {
    transform: scale(0.95);
    box-shadow: inset 0 0 12px #7a7f7f;
  }


  /* --- Виджет состояния системы --- */
  .system-status {
    margin-top: 15px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    padding: 12px 15px;
    box-shadow: inset 0 0 8px #1f2424;
    color: var(--color-secondary);
    font-family: 'PT Mono', monospace;
    font-size: 13px;
    user-select: none;
  }

  .system-status .status-title {
    font-weight: bold;
    margin-bottom: 6px;
  }

  .status-item {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
  }
  
  .header-image {
    width: 1080px;
    height: auto;
    position: relative;
    z-index: 1;
	margin-left: -21px;
  }
  
  .background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	 background-color: var(--color-bg);
     background-size: 1080px auto;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
  }
  
  /* Стрелка для раскрытия */
	.nav-collapse-trigger {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0;
    z-index: 1001;
    transition: opacity 0.3s;
    pointer-events: none;
    font-size: 35px;
    color: var(--color-heading);
    text-shadow: 0 0 8px rgba(176, 183, 185, 0.8);
}

.nav-collapse-trigger.active {
    opacity: 1;
    pointer-events: all;
    animation: bounce 1.5s infinite;

}



.scroll-btnTop {
    position: fixed;
   right: 20px;
    bottom: 70px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0; /* Изначально скрыта */
    pointer-events: none; /* Не кликабельна, когда скрыта */
    transition: opacity 0.3s ease, transform 0.1s ease; /* ИЗМЕНЕНО: добавлено 'transform 0.1s ease' */
    font-size: 35px;
    line-height: 1;
    color: var(--color-heading);
    text-shadow: 0 0 8px rgba(176, 183, 185, 0.8);
    padding-bottom: 0px;
    display: flex; /* Для центрирования символа */
    justify-content: center; /* Добавлено для центрирования */
    align-items: center; /* Добавлено для центрирования */
}

.scroll-btnTop.active { /* Теперь JS будет добавлять этот класс для анимации */
    opacity: 1;
    pointer-events: all;
    animation: bounce-y 1.5s infinite; /* ИЗМЕНЕНО: теперь используется 'bounce-y' */
}


/*Кнопка вниз*/
.scroll-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0; /* Изначально скрыта */
    pointer-events: none; /* Не кликабельна, когда скрыта */
    transition: opacity 0.3s ease, transform 0.1s ease; /* ИЗМЕНЕНО: добавлено 'transform 0.1s ease' */
    font-size: 35px;
    line-height: 1;
    color: var(--color-heading);
    text-shadow: 0 0 8px rgba(176, 183, 185, 0.8);
    padding-bottom: 0px;
    display: flex; /* Для центрирования символа */
    justify-content: center; /* Добавлено для центрирования */
    align-items: center; /* Добавлено для центрирования */
}

.scroll-btn.active { /* Теперь JS будет добавлять этот класс для анимации */
    opacity: 1;
    pointer-events: all;
    animation: bounce-y 1.5s infinite; /* ИЗМЕНЕНО: теперь используется 'bounce-y' */
}


@keyframes bounce {
    0%, 100% { transform: translate(-50%, -5px); }
    50% { transform: translate(-50%, 5px); }
}


@keyframes bounce-y {
    0%, 100% { transform: translateY(-5px); }
    50% { transform: translateY(5px); }
}

.sticky-pun_index {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gradient-bg), var(--gradient-bg);
}


/* Стили для анимации приветствия*/
.banner {
    position: relative;
    height: 25px;
    margin: 20px 0;
    text-align: center;
    overflow: visible;
}

.banner-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    width: 100%;
    font-size: 18px;
}

.typing-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 100%;
}

.typing-effect {
    display: inline-block;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(40, end) forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}



  /* --- Анимация fade-in --- */
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }

    .player-container {
        width: 100%; /* Занимает всю ширину правой панели */
        max-width: 200px; /* Максимальная ширина */
        padding: 10px;
        background: var(--gradient-bg);
        border: 1px solid var(--color-border);
        border-radius: 6px 2px 6px 2px;
        position: relative;
        box-sizing: border-box;
    }

     .track-artwork {
        width: 100%;
        padding-top: 100%; /* Создаем квадратный контейнер */
        position: relative;
        margin-bottom: 10px;
    }

    .artwork-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: 1px solid var(--color-border);
    }

    .track-title {
        color: var(--color-heading);
        font-size: 12px;
        margin: 8px 0;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .time-display {
        display: flex;
        justify-content: space-between;
        color: var(--color-text);
        font-size: 11px;
        margin: 8px 0;
    }

     .player-controls {
        position: relative; /* Добавляем для правильного позиционирования */
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .icon-btn {
        background: none;
        border: none;
        color: var(--color-text);
        font-size: 14px;
        cursor: pointer;
        padding: 2px;
        line-height: 1;
    }

    .progress-container {
        flex: 1;
        height: 2px;
        background: var(--color-border);
        cursor: pointer;
        position: relative;
    }


    .progress-bar {
        height: 100%;
        background: var(--color-text);
        width: 0%;
        transition: width 0.1s linear;
    }

    .tracks-list {
        display: none;
        position: absolute;
        top: calc(100% + 5px);
        right: 0;
        width: 100%; /* Теперь ширина как у плеера */
        max-height: 200px;
        overflow-y: auto;
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        list-style: none;
        padding: 5px;
        margin: 0;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        box-sizing: border-box; /* Важно для правильного расчёта ширины */
    }

     .tracks-list.visible {
        display: block;
    }

    .track-item {
        padding: 8px !important;
        font-size: 12px;
        color: var(--color-text);
        cursor: pointer;
        transition: background 0.2s;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .track-item:hover {
        background: linear-gradient(to right, var(--color-bg-alt), var(--color-bg));
    }
    
    
      
/* Основной контейнер форума */
#pun-main {
      
    font-family: 'IBM Plex Sans', sans-serif; /* Примерный шрифт, можно изменить */
   
}

/* Заголовок "Форум" */
#pun-main h1 {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    margin: 20px 0;
    padding: 6px 15px;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    justify-content: center;
}

#pun-main h1 span {
    font-size: 1.5em;
   /* font-weight: bold;*/
    color: var(--color-heading); /* Золотистый акцентный цвет */
    padding-bottom: 5px;
    display: inline-block; /* Чтобы граница была только под текстом */
}

/* ---------- категория ---------- */
.category{
    position:relative;          /* нужно для ::after */
    width:100%;
    margin-bottom:30px;
    background:var(--color-block-bg);
    border-radius:2px;
    /*box-shadow:0 4px 15px rgba(0,0,0,.5);*/
   overflow:visible;
    font-family:'IBM Plex Sans',sans-serif;
    
  clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut));
    
}

.category::after{
  content:"";
  position:absolute; 
  inset:0;
  box-shadow:0 4px 15px rgba(0,0,0,.5);
    z-index:-1;
  pointer-events:none;        /* чтобы не мешать кликам */
}

/* ---------- заголовок ---------- */
.category h2{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    padding:10px 18px;
    font: 500 1.2rem / 1 'Tektur', sans-serif;
    text-transform:uppercase;
    letter-spacing:.05em;
    color:var(--color-heading);
    background:var(--gradient-bg);
    box-shadow:inset 0 0 5px #1e2222;
    position:relative;overflow:hidden;
    
}
    
/*.category h2 span{flex: 0 0 auto;
    font-family: 'PT Mono', monospace;
    
}
*/
.category h2 span::after{
    content:attr(data-text);
    position:absolute;
    width:100%;
    height:100%;
    overflow:hidden;}
/*.category h2 span::before{left:19px;text-shadow:-2px 0 var(--color-secondary);clip-path:polygon(0 0,100% 0,100% 45%,0 45%);} */
.category h2 span::after{left:19px;text-shadow:2px 0 #ff5d5d;clip-path:polygon(0 55%,100% 55%,100% 100%,0 100%);} 
@keyframes glitch{0%{clip-path:polygon(0 2%,100% 2%,100% 8%,0 8%);}20%{clip-path:polygon(0 15%,100% 15%,100% 25%,0 25%);}40%{clip-path:polygon(0 30%,100% 30%,100% 38%,0 38%);}60%{clip-path:polygon(0 55%,100% 55%,100% 65%,0 65%);}80%{clip-path:polygon(0 72%,100% 72%,100% 80%,0 80%);}100%{clip-path:polygon(0 88%,100% 88%,100% 95%,0 95%);}}
.category h2 span::before{animation:glitch 3s infinite steps(6)}
.category h2 span::after{animation:glitch 2.5s infinite steps(6)}

.catleft,.catright{flex:1;height:2px;background:var(--color-secondary);box-shadow:0 0 6px var(--color-secondary);position:relative;}
.catleft::after,.catright::after{content:"";position:absolute;top:0;width:14px;height:100%;background:inherit;}
.catleft::after{right:-14px;transform:skewX(-3deg);} .catright::after{left:-14px;transform:skewX(-3deg);} 

.category h2::after{content:"STATUS: [ONLINE]";margin-left:auto;padding:3px 6px;font:600 .55rem/1 'PT Mono',monospace;color:var(--color-secondary);border:1px solid rgba(149,195,163,.3);animation:blink 2s infinite alternate;} 
@keyframes blink{0%{opacity:1;text-shadow:0 0 5px rgba(149,195,163,.8);}100%{opacity:.4;text-shadow:none;}}

/* ---------- таблица ---------- */
.category table{
    width:100%;
    border-collapse:collapse;
    font-family:'IBM Plex Sans',sans-serif;
    
} 
.category thead
{
    font-size: 0.8em;
    color: #a0a0a0;
    
}
.category .tc2,.category .tc3{
    display:none;
    
}
.category tbody tr{
    position:relative;transition:background .12s;
    
} 

/*
.category tbody tr:hover{background:rgba(66,70,70,.08);} */

.category tbody tr:hover{background:var(--color-bg-darker);}
tbody.hasicon tr:hover { background: var(--color-bg-darker);}

.category tbody tr::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    /*height:1px;*/
    background:rgba(66,70,70,.25);} 
    
.category tbody tr:last-child::after{display:none;}
.category tbody td{padding:10px 20px;color:var(--color-text);vertical-align:top;} .category tbody td.tcl{background:rgba(52,57,57,.08);} 

.category tbody td.tcl {
padding-left: 3.2em;
    
}

.category tbody td.tcl .intd{display:flex;gap:12px;align-items:flex-start;}
.category tbody td.tcl .tclcon h3{margin:0 0 4px;font:600 1rem/1 'Tektur',sans-serif;color:var(--color-heading);} .category tbody td.tcl .tclcon h3 a{color:inherit;text-decoration:none;} .category tbody td.tcl .tclcon h3 a:hover{color:var(--color-secondary);} 

.btn-frm{margin-top:6px;display:flex;flex-wrap:wrap;gap:5px;} .sik{padding:2px 10px;font:500 .75rem/1 'PT Mono',monospace;text-transform:uppercase;letter-spacing:.04em;background:var(--gradient-bg);color:var(--color-text);border:1px solid var(--color-border);border-radius:6px 2px;box-shadow:inset 0 0 5px #1e2222;transition:background var(--transition),border var(--transition);} .sik:hover{background:var(--color-bg-alt);border-color:var(--color-secondary);} 
a.sik {text-decoration: none;}

.tcr{text-align:right;color:var(--color-heading);line-height:1.4;} 
.user-avatar{display:inline-block;width:18px;height:18px;margin-right:5px;overflow:hidden;opacity:.8;transition:opacity .2s;vertical-align:bottom;} 
.user-avatar:hover{opacity:1;} 
.avatar-image{width:100%;height:100%;background-size:cover;background-position:center;} .isonline{position:absolute;right:0;bottom:0;width:4px;height:4px;background:var(--color-secondary);box-shadow:0 0 2px rgba(149,195,163,.6);} .lastpost-link{color:var(--color-text);text-decoration:none;} .lastpost-link:hover{color:var(--color-secondary);} .lastpost{display:block;font-size:.75rem;color:#a0a0a0;} .datetime{color:#b0b0b0;}

.category tbody td.tcl .tclcon
{
    padding: 0 0 0 15px;
}

.category tbody td,
.category thead th, .punbb tbody.hasicon td, .punbb tbody.hasicon th   /* thead скрыт, но оставил на будущее */
{
  position: relative;        /* база для псевдо-элемента */
}

/* собственно уголки */
.category tbody td::before,
.category thead th::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(var(--color-secondary) 0 0) top   left,
    linear-gradient(var(--color-secondary) 0 0) top   left,
    linear-gradient(var(--color-secondary) 0 0) top   right,
    linear-gradient(var(--color-secondary) 0 0) top   right,
    linear-gradient(var(--color-secondary) 0 0) bottom right,
    linear-gradient(var(--color-secondary) 0 0) bottom right,
    linear-gradient(var(--color-secondary) 0 0) bottom left,
    linear-gradient(var(--color-secondary) 0 0) bottom left;

  /* размеры восьми штрихов: горизонталь &#9656; вертикаль */
  background-size:
    var(--corn) var(--stroke), var(--stroke) var(--corn),
    var(--corn) var(--stroke), var(--stroke) var(--corn),
    var(--corn) var(--stroke), var(--stroke) var(--corn),
    var(--corn) var(--stroke), var(--stroke) var(--corn);

  background-repeat: no-repeat;
}

.punbb tbody.hasicon td::before, .punbb tbody.hasicon th::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(var(--color-secondary) 0 0) top   left,
    linear-gradient(var(--color-secondary) 0 0) top   left,
    linear-gradient(var(--color-secondary) 0 0) top   right,
    linear-gradient(var(--color-secondary) 0 0) top   right,
    linear-gradient(var(--color-secondary) 0 0) bottom right,
    linear-gradient(var(--color-secondary) 0 0) bottom right,
    linear-gradient(var(--color-secondary) 0 0) bottom left,
    linear-gradient(var(--color-secondary) 0 0) bottom left;

  /* размеры восьми штрихов: горизонталь &#9656; вертикаль */
  background-size:
    var(--corn1) var(--stroke1), var(--stroke1) var(--corn1),
    var(--corn1) var(--stroke1), var(--stroke1) var(--corn1),
    var(--corn1) var(--stroke1), var(--stroke1) var(--corn1),
    var(--corn1) var(--stroke1), var(--stroke1) var(--corn1);

  background-repeat: no-repeat;
}



@media(max-width:768px)
{.category tbody tr::after{display:none;} 
.category tbody td{display:block;width:100%!important;text-align:left!important;} 
.category .tcr{margin-top:6px;}}

/* icons unchanged */
#pun-index div.icon,#pun-index tr.inew div.icon
{position:absolute;float:left;height:30px;width:30px;margin:-4px 0 0 -35px;opacity:.7;background-size:contain;background-repeat:no-repeat;} 
#pun-index div.icon {
    background-image:url(https://forumstatic.ru/files/001c/7c/69/85445.png);
    
} 

#pun-index tr.inew div.icon {
    background-image:url(https://forumstatic.ru/files/001c/a4/37/52601.png);
    
}

@keyframes glow1{
  0%,100%{filter:drop-shadow(0 0 1px #eae0c7);}
  50%    {filter:drop-shadow(0 0 4px #eae0c7);}
}

@keyframes glow2{
  0%,100%{filter:drop-shadow(0 0 1px #d75f5f);}
  50%    {filter:drop-shadow(0 0 4px #d75f5f);}
}

#pun-index tr.inew div.icon {
    animation:glow1 1.6s infinite;
    
}

a.lastpost-link, .byuser {
    font-family: 'PT Mono';
}
.byuser {
    COLOR: VAR(--color-secondary);
}


.bubble
 {
    background: red;
    border: 0 none;
    border-radius: 3px;
    color: white;
    display: inline-block;
    font: bolder 8px / 1.6 Tahoma;
    margin: 4px 0 0 -40px !important;
    min-width: 14px;
    padding: 0 1px;
    position: absolute;
    right: 16px !important;
    text-align: center;
    top: -6px !important;
    z-index: 9999;
}


.wrapper {
  position: relative;
  z-index: 1;
  background-color: #1e2125;
}


.nav-support {
    
    position: fixed;
    top: -43%;
    width: 500px;
    height: 90%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1001;
}

.nav-left {
  left: calc(50% - 1000px); /* 510 = 1020/2; 60 — ширина изображения */
  background-image: url("https://forumstatic.ru/files/001c/7c/69/49642.png");
}

.nav-right {
  right: calc(50% - 1000px);
  background-image: url("https://forumstatic.ru/files/001c/7c/69/20564.png");
}


canvas {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      z-index: -100;
    }

    
    .modmenu p.container
 {
    align-items: center;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 0px 0px 6px 2px;
 
    padding: 6px 15px;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;

}

.forum .container {
    align-items: center;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 0px 0px;
 
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

#pun-stats.section {
    display: flex;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    margin: 5px 0;
    padding: 6px 15px;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

#pun-stats h2 {
    display: flex;
   /* align-content: flex-start;*/
    border: none;
    padding: 5px 10px 0px 0px;
    color: var(--color-secondary);
}

#pun-stats .container {
    padding: 0.8em 1em;
    border-left-width: 1px;
    border-top: none;
    border-bottom: none;
    border-right: none;
}

#profile .container 
 {
    padding-left: 18.6em;
}

#viewprofile .container, #profile10, #profile .container {
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    margin: 5px 0;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}



.footer {
    height: 33px;
    text-align: center;
    overflow: hidden;
}

#banners {
    line-height: 33px;
    animation: banners-pingpong 10s linear infinite alternate;
}

#banners a {
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
}

#banners a img {
    vertical-align: middle;
    opacity: 0.3;
}

#banners a:hover img {
    opacity: 1;
}

/* При наведении прокрутка останавливается */
.footer:hover #banners {
    animation-play-state: paused;
}

/* До конца списка и обратно */
@keyframes banners-pingpong {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(min(0px, calc(33px - 100%)));
    }
}

#html-footer .container {
    border: none;
}


.stickytext, .closedatafield {
    display: none;
}

.punbb tbody.hasicon td.tcl div.icon{background:url('https://forumstatic.ru/files/001c/7c/69/98622.svg') center/contain no-repeat;} 
.punbb tbody.hasicon td.tcl div.icon.icon-new {background:url('https://forumstatic.ru/files/001c/7c/69/53432.svg') center/contain no-repeat; color:#ff5d5d;}


#pun-viewforum tr.iclosed div.icon, #pun-messages tr.iclosed div.icon, #pun-searchtopics tr.iclosed div.icon {
    background:url('https://forumstatic.ru/files/001c/a4/37/61755.svg') center/contain no-repeat;
}

#pun-viewforum tr.isticky div.icon, #pun-messages tr.isticky div.icon, #pun-searchtopics tr.isticky div.icon {
    background:url('https://forumstatic.ru/files/001c/a4/37/81782.svg') center/contain no-repeat;
}






@keyframes glow{
  0%,100%{filter:drop-shadow(0 0 1px #95c3a3);}
  50%    {filter:drop-shadow(0 0 4px #95c3a3);}
}
.punbb tbody.hasicon td.tcl div.icon.icon-new {animation:glow 1.6s infinite;}

.punbb tbody.hasicon td.tcl .intd .tclcon{
  flex:1 1 0;               /* занимает оставшееся, можно сжимать */
  min-width:0;              /* &#11013; ключевая строчка */
}

.punbb tbody.hasicon td.tcl .intd{
  display:flex;
  gap:12px;
  align-items:flex-start;   /* или center, как нравится */
}

thead {
    font-size: 0.8em;
}

#pun-viewtopic .post h3 {
 
    position: relative;
    width: 100%;
    height: 30px;
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 2px 2px 6px 2px;
    box-shadow: 0 5px 10px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

a.sharelink {
    text-indent: -9999px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(https://forumstatic.ru/files/001c/7c/69/48089.png);
    background-repeat: no-repeat;
    background-size: contain;
    color: transparent !important;
    background-position: center center;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none !important;
    border-bottom: none !important;
    padding: 0 0 0 5px;
}

a.sharelink:hover {
  opacity: 0.8;
  transition: transform 0.4s ease;
  border: 4px soild var(--color-button-text);
    
}





/* Extra additions
-------------------------------------------------------------*/

#poll-special table.poll1 {width:auto}
#poll-special td {border:0}
.punbb .post-content img.postimg {max-width:100%; margin:0.4em 0}
#poll-special td {text-align:left !important; cursor:default !important}
#poll-special td.tac {text-align:center !important}
#poll-special td.tar {text-align:right !important}
div.pa-respect span {font-size:0.9em; vertical-align:top}
div.post-rating p {float:right !important; border:0 !important; padding:3px !important}
div.post-vote p {float:right !important; border:0 !important; padding:3px 13px !important; margin-right:5px !important}
div.post-vote p .negative {margin-left:13px;}
div.post-rating a {cursor:pointer !important}
div.post-rating a, div.post-vote a {font-size:130% !important; text-decoration:none !important}
#pun-status .status-right {float:right;}
.post-content table {/* border-collapse:collapse; */margin:0 0 0.8em}
.post-content td {/* border-width:1px !important; *//* border-style:solid !important; */padding:0.4em 0.5em !important;overflow:hidden}
.post-content td p:last-child {padding-bottom:0}
.post-content .highlight-text {background-color:#ff0; color:#000}
.post-content .spoiler-box > div {background:url('/img/plus.png') no-repeat left center; cursor:pointer; padding-left:18px}
.post-content .spoiler-box > div.visible {background-image:url('/img/minus.png')}
.post-content .spoiler-box > blockquote {padding-top:1.4em; display:none}
.post-content .spoiler-box > blockquote.visible {display:block; overflow:auto}
.post-content hr {
    border: none;
    height: 1px;
    margin-bottom: 0.8em;
    position: relative;

    background: linear-gradient(
        to right,
        var(--color-border),
        var(--color-secondary),
        var(--color-border)
    );
}

.post-content abbr {cursor:help}
.post-content ul {padding:0 0 1em 2.3em}
.post-content ul li {list-style:inherit; margin-bottom:0.3em}
.post-content ul li ul {padding-bottom:0}
.post-content ul li > p {padding-bottom:0.3em}
.post-content ul li > p:last-of-type {padding-bottom:0}
#form-buttons table, .punbb .formal textarea {width:99%}
#form-buttons td {padding:0 !important; line-height:0; background-position:center; background-repeat:no-repeat; border:0; cursor:pointer;}
#form-buttons td img {height:26px; width:100%}
#form-buttons tr {text-align: center;}

td#button-font {background:url('/i/form_buttons.3.png') no-repeat 50% 5px}
td#button-size {background:url('/i/form_buttons.3.png') no-repeat 50% -21px}
td#button-bold {background:url('/i/form_buttons.3.png') no-repeat 50% -47px}
td#button-italic {background:url('/i/form_buttons.3.png') no-repeat 50% -73px}
td#button-underline {background:url('/i/form_buttons.3.png') no-repeat 50% -99px}
td#button-strike {background:url('/i/form_buttons.3.png') no-repeat 50% -125px}
td#button-left {background:url('/i/form_buttons.3.png') no-repeat 50% -151px}
td#button-center {background:url('/i/form_buttons.3.png') no-repeat 50% -177px}
td#button-right {background:url('/i/form_buttons.3.png') no-repeat 50% -203px}
td#button-link {background:url('/i/form_buttons.3.png') no-repeat 50% -229px}
td#button-spoiler {background:url('/i/form_buttons.3.png') no-repeat 50% -255px}
td#button-image {background:url('/i/form_buttons.3.png') no-repeat 50% -281px}
td#button-video {background:url('/i/form_buttons.3.png') no-repeat 50% -307px}
td#button-hide {background:url('/i/form_buttons.3.png') no-repeat 50% -333px}
td#button-quote {background:url('/i/form_buttons.3.png') no-repeat 50% -359px}
td#button-code {background:url('/i/form_buttons.3.png') no-repeat 50% -385px}
td#button-color {background:url('/i/form_buttons.3.png') no-repeat 50% -411px}
td#button-smile {background:url('/i/form_buttons.3.png') no-repeat 50% -437px}
td#button-keyboard {background:url('/i/form_buttons.3.png') no-repeat 50% -463px}
td#button-table {background:url('/i/form_buttons.3.png') no-repeat 50% -489px}
td#button-addition {background:url('/i/form_buttons.3.png') no-repeat 50% -515px}

.punbb .formal fieldset {min-width:0;}
#post-form.formal fieldset {min-width:0; border: 0;}
.punbb .formal span.input {padding-right:0 !important}
#formkey, #formetc {display:none}
#color-area, #table-area, #keyboard-area {width:auto}
#keyboard-area {text-align:center; padding-bottom:4px}
#imageup-area {width:170px}
#imageattach-area {width:770px; height:200px; padding:0px !important}
#smilies-area, #video-area, #spoiler-area {width:450px}
#image-area {width:550px}
#color-area * {border:0}
#color-area table {width:320px; height:20px; padding:0; margin:0}
#table-area table {width:auto !important; padding:0; margin:0; border-collapse:collapse}
#table-area div {margin-top:1em; text-align:center}
#table-layout {margin-right:0.5em}
#table-area td {background-color:#fff; width:20px; height:20px; border-width:1px !important; border-style:solid !important; border-color:#dadada !important}
#table-area td.selected {background-color:#c8c8ff}
#color-area td, #table-area td {margin:0; padding:0; line-height:0}
#color-area td img, #table-area td img {width:20px; height:20px; cursor:pointer !important}
#tags .container {position: absolute; right: 6px; top: 43px; padding: 1em; z-index: 2;}
#font-area, #size-area {right: unset !important; padding: 1em 1em 1.1em 1em !important;}
#font-area div, #size-area div, #color-area div, #table-area div, #addition-area div, #smilies-area div a, #smilies-area img {cursor:pointer !important}
#font-area span, #font-area img, #size-area span, #size-area img {display:block; position:relative; top:0; left:0}
#font-area span, #font-area img {height:15px}
#size-area span, #size-area img {height:24px}
#font-area span, #size-area span {padding:1px 0}
#addition-area div {height:24px; vertical-align:middle}
#font-area img {width:100%; margin-top:-15px}
#size-area img {width:100%; margin-top:-24px}
#keyboard-span {text-align:center; padding-bottom:10px; width:auto}
#keyboard-span input {font-family:Arial, Helvetica, sans-serif; font-weight:300; font-size:13px; color:#666; background-color:#fff; margin:1px 1px 0 0; border:1px solid #ddd; cursor:pointer; height:25px; min-width:30px}
#imageup-area input {font-size:0.8em}
#imageup-area p {padding:0; margin:0}
#imageup-title {margin-bottom:10px !important}
#imageup-submit {margin-top:10px !important}
#main-reply {width:100%; background: var(--color-button-text);}
#pun-messages #post-form div.container {padding-left:2.3em}
#similar-topics {margin-top:1em}
#similar-topics div.container {padding-top:1.1em}
#similar-topics td {border:0; padding:0}
#similar-topics td.st-tcl {width:60%}
#similar-topics td.st-tc2 {width:25%; padding-right:1em; text-align:right}
#similar-topics td.st-tcr {width:15%; padding-right:1em; text-align:right}
.postlink.long {width:30em}
.postlink.long .new-topic {padding-right:12px}
li.pa-ua {margin-top: 0.7em; display: flex; justify-content: center;}
#pun-online .tcl.action {width:25%}
.punbb .post.new-ajax > * {border-width: 3px;}
.punbb .post.new-ajax {display: none;}

#pun-index .isub .tcl {padding-left: 3em !important;}
#pun-main #subforums {padding: 1em 0 1em 1em; margin-bottom: 5px;}

.notify-parent {position: relative;}
.notify-bubble {
    background: lightblue;
    border-radius: 3px;
    color: black;
    font: bolder 12px/1.2 Tahoma;
    margin: 0;
    min-width: 14px;
    padding: 0 1px;
    position: absolute;
    text-align: center;
}

.notify-bubble:after {
    border-color: lightblue transparent;
    border-style: solid;
    border-width: 3px 3px 0;
    content: "";
    display: block;
    left: 5px;
    position: absolute;
    width: 0;
}

/* Statistic */
#pun-statistic .tc3 {width:15%;}
#pun-statistic .tc-username {width:unset;text-align:left;}
#pun-statistic .tc-title {width:25%;text-align:left;}
#pun-statistic .tc-registered {width:20%;}
#pun-statistic .tc-topic {width:50%;}


/* New profile style
-------------------------------------------------------------*/
#viewprofile td {border:0; padding:0; overflow:hidden}
#profile-name strong {font-size:1.2em}
#profile-left strong {font-weight:bold !important}
#profile-left {width:30%; padding-top:0 !important}
#profile-left li,
#profile-left li * {padding-left:0; margin-left:0}
#profile-right {width:70%}
#profile-right li strong {padding-left:2em}
#profile-signature {padding:1.5em 1.5em 1em 1.5em}
#profile-signature ul {border-style:dashed; border-width:1px 0 0 0; margin:0; padding:1em 1em 0 1em}

/** Video-Button
---------------------------------------------------------------*/
#video-host-list {margin-top:.3em; line-height:1.8em}
#video-area-tinp, #image-area-tinp {margin:.5em 0; padding:.3em; border:#66a solid 1px; height:70px}
#video-area-msg, #image-source-list, #image-area-actions, #spoiler-sels {line-height:2em}

p[class="checkfield"] img, div[class="checkfield"] img, fieldset[class="radiofield"] img {height:auto; max-height:50px}
.pa-fld1 img, .pa-fld2 img, .pa-fld3 img, .pa-fld4 img, .pa-fld5 img, .pa-fld6 img, .pa-fld7 img, .pa-fld8 img, .pa-fld9 img, .pa-fld10 img, .pa-fld11 img, .pa-fld12 img, .pa-fld13 img, .pa-fld14 img, .pa-fld15 img, .pa-fld16 img, .pa-fld17 img, .pa-fld18 img, .pa-fld19 img, .pa-fld20 img {vertical-align:text-top}

/** Image-Button
---------------------------------------------------------------*/
#image-area-tcon-computer {margin:0 0 1em}
#image-area-tcon-computer td {border:none !important; padding:0}
#imageupload-left {width:140px}
#imageupload-right {padding-left:9px !important; background:transparent !important; max-width:380px}
#image-area-actions {text-align:right}
* html #imageQueue {height:expression( this.scrollHeight > 65 ? "66px" :"auto" )} /* sets max-height for IE */
* html #uploaded-images {height:expression( this.scrollHeight > 143 ? "144px" :"auto" )}
#imageQueue {max-height:72px; overflow-y:auto; margin-bottom:10px}
#uploaded-images {max-height:144px; overflow-y:auto}
#uploaded-images img {width:88px; height:66px; border:1px solid; margin-right:4px; cursor:pointer}
#upload-button-container, #image-width, #image-thumb-width, #image-insert-format, #insert-all-images-container {margin-top:10px}
#image-source-list a, #image-area-actions a, #spoiler-sels a {margin-right:15px; cursor:pointer}
#insert-image-tip {margin-top:10px}
#upload-button-container img {cursor:pointer; width:120px; height:30px}
#image_upload_input {position:absolute; z-index:-1; left:-9999px}
#selected-image-width, #selected-thumb-width {width:6em}
#imageupload-left input[type=button] {width:11em; text-align:center}
#upload-button-container input[type=button] {font-weight:bold}
#image-width, #image-thumb-width, #image-insert-format strong {font-size:.9em}
.uploadQueueItem {padding:.8em 1em; border:solid 1px #ddd; border-radius:5px; margin-bottom:.5em; background:rgba(238,238,238,0.22)}
.uploadQueueItem.error {border-color:rgba(255,0,0,0.25); background-color:rgba(255,0,0,0.08)}
.uploadQueueItem .cancel {font-size:20px; font-weight:700; font-family:Arial; float:right; margin:-.25em 0 0}
.uploadQueueItem .cancel a {text-decoration:none; color:#333!important}
.uploadProgress {display:block; width:98%; height:3px; margin:2px 0 0; background:#ddd; position:relative}
.uploadProgressBar {position:relative; background:#00adff; height:3px; width:.1%; transition:width .1s linear}

/** jQuery plugins
---------------------------------------------------------------*/
.tipsy {padding:5px; font-size:11px; font-family:tahoma,helvetica,verdana,arial; position:absolute; z-index:100000;}
.tipsy-inner {padding:5px 8px 4px; margin:-0.2px; background-color:black; color:white; max-width:200px; text-align:center; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px}
.tipsy-arrow {position:absolute; width:0; height:0; border:solid 5px; border-color:transparent transparent black transparent}
.tipsy-n .tipsy-arrow {top:0; left:50%; margin-left:-5px; border-top:0}
.tipsy-nw .tipsy-arrow {top:0; left:11px !important; border-top:0}
.tipsy-ne .tipsy-arrow {top:0; left:auto !important; right:11px; border-top:0}
.tipsy-s .tipsy-arrow {bottom:0; left:50%; margin-left:-5px; border-color:black transparent transparent transparent; border-bottom:0}
.tipsy-sw .tipsy-arrow {bottom:0; left:11px !important; border-color:black transparent transparent transparent; border-bottom:0}
.tipsy-se .tipsy-arrow {bottom:0; left:auto !important; right:11px; border-color:black transparent transparent transparent; border-bottom:0}
.tipsy-e .tipsy-arrow {top:50%; margin-top:-5px; left:auto !important;right:0; border-color:transparent transparent transparent black; border-right:0}
.tipsy-w .tipsy-arrow {top:50%; margin-top:-5px; left:0 !important; border-color:transparent black transparent transparent; border-left:0}
.jGrowl {z-index:9999; color:#fff; font-size:12px; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; position:fixed}
.jGrowl.top-left {left:0; top:0}
.jGrowl.top-right {right:0; top:0}
.jGrowl.bottom-left {left:0; bottom:0}
.jGrowl.bottom-right {right:0; bottom:0}
.jGrowl.center {top:0; width:50%; left:25%}
.jGrowl.center .jGrowl-closer,.jGrowl.center .jGrowl-notification {margin-left:auto; margin-right:auto}
.jGrowl-notification {background-color:#000; opacity:.9; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.9*100)); -ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.9*100)); zoom:1; width:250px; padding:10px; margin:10px; text-align:left; display:none; border-radius:5px; min-height:40px}
.jGrowl-notification .ui-state-highlight,.jGrowl-notification .ui-widget-content .ui-state-highlight,.jGrowl-notification .ui-widget-header .ui-state-highlight {border:1px solid #000; background:#000; color:#fff}
.jGrowl-notification .jGrowl-header {font-weight:700; font-size:.85em}
.jGrowl-notification .jGrowl-close {background-color:transparent; color:inherit; border:none; z-index:99; float:right; font-weight:700; font-size:1em; cursor:pointer}
.jGrowl-closer {background-color:#000; opacity:.9; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.9*100)); -ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.9*100)); zoom:1; width:250px; padding:10px; margin:10px; display:none; border-radius:5px; padding-top:4px; padding-bottom:4px; cursor:pointer; font-size:.9em; font-weight:700; text-align:center}
.jGrowl-closer .ui-state-highlight,.jGrowl-closer .ui-widget-content .ui-state-highlight,.jGrowl-closer .ui-widget-header .ui-state-highlight {border:1px solid #000; background:#000; color:#fff}
@media print {.jGrowl {display:none}}
.pun-modal {position:fixed; width:100%; height:100%; top:0; left:0; bottom:0; z-index:100000}
.pun-modal .modal-bg {position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.5); cursor:pointer; z-index:110000}
.pun-modal .modal-inner {width:700px; max-width:94%; height:auto; max-height:44em; max-height:62vh; margin:12% auto 0; margin-top:20vh; box-shadow:0 0 14px rgba(0,0,0,.3); position:relative; z-index:120000; overflow:hidden}
.pun-modal h2,.pun-modal h1 {max-width:700px; margin:0!important}
.pun-modal .container {padding:.6em 1em; max-height:40em; max-height:54vh; overflow:auto}
.pun-modal .container .container {max-height:unset}
.pun-modal .closer {position:absolute; font-size:1.5em!important; line-height:.8em; right:.4em; padding:.3em!important; margin:-.3em!important; cursor:pointer; background:none 0 transparent!important}
.noscroll {overflow:hidden!important}

/** Social icons
---------------------------------------------------------------*/
.social {background-image:url('/i/social.1.png'); background-repeat:no-repeat; float:left; display:block; margin:3px 5px; width:16px; height:16px}
.social-facebook {background-position:0 0}
.social-google {background-position:-26px 0}
.social-mailru {background-position:-52px 0}
.social-odnoklassniki {background-position:-78px 0}
.social-twitter {background-position:-104px 0}
.social-vkontakte {background-position:-130px 0}
.social-yandex {background-position:-156px 0}
.social-youtube {background-position:-182px 0}
.social-instagram {background-position:-312px 0}
.social-linkedin {background-position:-338px 0}
.social-reddit {background-position:-442px 0}
.social-share {background-position:-468px 0}
.social-tumblr {background-position:-546px 0}

.topic a.sharelink, .topic a.translatelink {float:right; margin-left:1em}
.topic a.translatelink.translation-busy {cursor: not-allowed; animation:blinkColor .7s linear infinite}
.post-share-tip {width:164px; height:124px}
.post-share-legend {background:rgba(255,255,255,0.2); text-align:center}
.post-share-tip span {font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; color:#fff; font-size:13px; line-height:27px}
.post-share-icons {padding:10px}
.post-share-tip a {margin: 5px 10px}

/** Avatars
---------------------------------------------------------------*/
.punbb .user-avatar {float:left; position:relative; height:36px; width:36px; margin:1px 9px 2px 0px}
#pun-index .user-avatar {height:40px; vertical-align:middle}
.punbb .user-avatar a {padding:0!important; background:none transparent!important}
.punbb .user-avatar a::after {content:none!important}
.punbb .user-avatar .avatar-image {border-radius:50%; height:36px; width:36px; opacity:0.85; background-position:center center; background-size:cover; background-repeat:no-repeat; float:left}
.punbb .user-avatar .avatar-image:hover {opacity:1}
.punbb .user-avatar .isonline {width:8px; height:8px; border-radius:50%; display:block; position:absolute; top:2px; right:0px; animation:blinkColor .9s linear infinite; -moz-animation:blinkColor .9s linear infinite; -webkit-animation:blinkColor .9s linear infinite; background:#8ac176; z-index:100}
@keyframes blinkColor {0% {opacity:1.0} 50% {opacity:.3} 100% {opacity:1.0}}
@-moz-keyframes blinkColor {0% {opacity:1.0} 50% {opacity:.3} 100% {opacity:1.0}}
@-webkit-keyframes blinkColor {0% {opacity:1.0} 50% {opacity:.3} 100% {opacity:1.0}}

/** Flags
---------------------------------------------------------------*/
.punbb .flag-i {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  position: relative;
  display: inline-block;
  width: 1.33333333em;
  line-height: 1em;
  margin-right: 1em;
}
.punbb .pa-author .flag-i {
  margin-right: 0.5em;
}
.punbb .flag-i:before {
  content: '\00a0';
}

/** Font icons
---------------------------------------------------------------*/
@font-face {
  font-family: 'mybb';
  src: url('./res/font/icons.woff2?3') format('woff2'),
       url('./res/font/icons.woff?3') format('woff'),
       url('./res/font/icons.ttf') format('truetype'),
       url('./res/font/icons.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}
i[class^="icons-"]:before, i[class*=" icons-"]:before, .i[class*=" icons-"]:before, .i[class^="icons-"] {
  font-family: "mybb";
  font-style: normal;
  font-weight: normal;
  speak: never;

  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icons-search:before { content: '\e095'; } /* 'о‚•' */
.icons-font:before { content: '\e800'; } /* 'о Ђ' */
.icons-size:before { content: '\e801'; } /* 'о Ѓ' */
.icons-video:before { content: '\e802'; } /* 'о ‚' */
.icons-image:before { content: '\e803'; } /* 'о ѓ' */
.icons-plus:before { content: '\e804'; } /* 'о „' */
.icons-cancel:before { content: '\e805'; } /* 'о …' */
.icons-minus:before { content: '\e806'; } /* 'о †' */
.icons-star:before { content: '\e807'; } /* 'о ‡' */
.icons-cog:before { content: '\e808'; } /* 'о €' */
.icons-play:before { content: '\e809'; } /* 'о ‰' */
.icons-pause:before { content: '\e80a'; } /* 'о Љ' */
.icons-fast-fw:before { content: '\e80b'; } /* 'о ‹' */
.icons-fast-bw:before { content: '\e80c'; } /* 'о Њ' */
.icons-code:before { content: '\e80d'; } /* 'о Ќ' */
.icons-table:before { content: '\e80e'; } /* 'о Ћ' */
.icons-spoiler:before { content: '\e80f'; } /* 'о Џ' */
.icons-calendar:before { content: '\e810'; } /* 'о ђ' */
.icons-pencil:before { content: '\e811'; } /* 'о ‘' */
.icons-hide:before { content: '\e812'; } /* 'о ’' */
.icons-list:before { content: '\e813'; } /* 'о “' */
.icons-indent-left:before { content: '\e814'; } /* 'о ”' */
.icons-indent-right:before { content: '\e815'; } /* 'о •' */
.icons-trash-empty:before { content: '\e816'; } /* 'о –' */
.icons-off:before { content: '\e817'; } /* 'о —' */
.icons-heart:before { content: '\e818'; } /* 'о �' */
.icons-user:before { content: '\e819'; } /* 'о ™' */
.icons-left:before { content: '\e81a'; } /* 'о љ' */
.icons-center:before { content: '\e81b'; } /* 'о ›' */
.icons-right:before { content: '\e81c'; } /* 'о њ' */
.icons-italic:before { content: '\e81d'; } /* 'о ќ' */
.icons-bold:before { content: '\e81e'; } /* 'о ћ' */
.icons-comment:before { content: '\e81f'; } /* 'о џ' */
.icons-resize-full:before { content: '\e820'; } /* 'о  ' */
.icons-resize-small:before { content: '\e821'; } /* 'о Ў' */
.icons-quote:before { content: '\e822'; } /* 'о ў' */
.icons-share:before { content: '\e823'; } /* 'о Ј' */
.icons-smile:before { content: '\e824'; } /* 'о ¤' */
.icons-youtube:before { content: '\e825'; } /* 'о Ґ' */
.icons-link:before { content: '\e826'; } /* 'о ¦' */
.icons-volume-off:before { content: '\e827'; } /* 'о §' */
.icons-volume-down:before { content: '\e828'; } /* 'о Ё' */
.icons-volume:before { content: '\e829'; } /* 'о ©' */
.icons-volume-up:before { content: '\e82a'; } /* 'о Є' */
.icons-addition:before { content: '\e82b'; } /* 'о «' */
.icons-infinity:before { content: '\e82c'; } /* 'о ¬' */
.icons-facebook:before { content: '\f09a'; } /* 'п‚љ' */
.icons-strike:before { content: '\f0cc'; } /* 'пѓЊ' */
.icons-underline:before { content: '\f0cd'; } /* 'пѓЌ' */
.icons-mail:before { content: '\f0e0'; } /* 'пѓ ' */
.icons-keyboard:before { content: '\f11c'; } /* 'п„њ' */
.icons-help:before { content: '\f128'; } /* 'п„Ё' */
.icons-vkontakte:before { content: '\f189'; } /* 'п†‰' */
.icons-color:before { content: '\f1fb'; } /* 'п‡»' */
.icons-odnoklassniki:before { content: '\f263'; } /* 'п‰Ј' */
.icons-vimeo:before { content: '\f27d'; } /* 'п‰Ѕ' */

.icons-cancel-outline:before { content: '\e82d'; } /* 'о ­' */
.icons-ok-outline:before { content: '\e82e'; } /* 'о ®' */




*{
    scrollbar-width: thin;               /* auto | thin | none */
    scrollbar-color: var(--color-secondary) var(--color-bg-darker);
}

::-webkit-scrollbar {
    width: 8px;
}

/* дорожка (фон) */
::-webkit-scrollbar-track {
    background: var(--color-bg-darker);
}

/* бегунок */
::-webkit-scrollbar-thumb {
    background: var(--color-text);
    border-radius: 4px;
}

/* бегунок при наведении */
::-webkit-scrollbar-thumb:hover {
    background: var(--color-heading);
}

*{
    scrollbar-width: thin;               /* auto | thin | none */
    scrollbar-color: var(--color-text) var(--color-bg-darker);
}



form#post {
    align-items: center;
    width: 100%;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 0px 0px 6px 2px;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

div#post-form {
    align-items: center;
    width: 100%;
    color: var(--color-text);
    box-shadow: rgb(30, 34, 34) 0px 0px 5px inset;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px;
    transition: box-shadow 0.2s, transform 0.1s;
}

/* ____________ Регулировка размера шрифта в постах © Alex_63 ____ */

.FNTslider {
  border-radius: 4px;
  position:relative;
  z-index:1000;
  background: var(--color-heading);
  width: 110px;
  height: 5px;
  margin: 5px;
  float: right;
  margin-right: 7%;
}
.FNTslider .before {
  height: 5px;
  border: solid 1px transparent;
  border-right: none 0;
  border-radius: 4px 0 0 4px;
  position: absolute;
  background: var(--color-secondary);
  margin-top: -1px;
}
.FNTslider .thumb {
  width: 8px;
  height: 13px;
  border-radius: 3px;
  position: relative;
  top: -4px;
  background: var(--color-bg-alt);
  cursor: pointer;
}

.statscon
{
    width: 100%;
}

.podforlink {
    position: relative;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    -webkit-text-size-adjust: 100%;
}

.podforlink a {

    flex: auto;
}


.custom_tag_hname,  .custom_tag_hnamea{ 
    font-family: 'Tektur', sans-serif; 
    font-size: 1.3em; 
    letter-spacing: 0.1em; 
    text-transform: uppercase; 
    color: var(--color-secondary); 
   
    padding: 0.4em 0.6em; 
    background: linear-gradient(90deg, #1e2125, rgba(120, 90, 200, 0)); 
    border-left: 4px solid var(--color-secondary); 
    position: relative;
}

.custom_tag_hname
{margin: 1.5em 0 0.8em; }

.custom_tag_hname:hover, .custom_tag_hnamea:hover {
    letter-spacing: 0.14em;
    color: var(--color-heading);
    background-position: 100% 0;
    background: linear-gradient(90deg, var(--color-bg-darker), rgba(120, 90, 200, 0));
}

.custom_tag_hname::after, .custom_tag_hnamea::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0.6em;
    width: 40%;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--color-secondary),
        transparent
    );
    margin: 0 -12px;
}
input {
  background: var(--color-button-text);  
}


.custom_tag_detailbox {
    background: var(--color-bg-darker);
    border: 1px solid var(--color-border);
    grid-column: span 2;
    margin: 10px 0;
}

.custom_tag_boxheader {    
    background: var(--color-secondary);
    color: var(--color-bg-dark);
    padding: 5px 10px;
    font-size: 0.9rem;
}
    
.custom_tag_boxbody {
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
        
    }


.hvStickerPackModal
{
        padding: 16px 16px 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: solid 1px var(--color-bg-dark);
    border-radius: 4px;
    background-color: var(--color-bg);
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    position: absolute;
    display: none;
    bottom: 0;
    left: 0;
    z-index: 100;
}

#mask_dialog .inner {
    cursor: default;
    margin: 0;
    width: 760px;
    max-width: 99%;
    max-height: 90%;
    overflow-x: auto;
    z-index: 100;
    box-shadow: 0 0 40px #222;
    padding: 8px;
    background-color: var(--color-bg);   
}

textarea#mask_signature, textarea#mask_pafld1, textarea#mask_pafld2
{
background-color: var(--color-text);   
}

input.button, button.button, button.sticker, button.size {
    display: inline;
    padding: 2px 20px;
    font: 500 .75rem / 2 'PT Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--gradient-bg);
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    border-radius: 10px 2px;
    box-shadow: inset 0 0 5px #1e2222;
    transition: background var(--transition), border var(--transition);
}

input.button:hover, button.button:hover, button.sticker:hover, button.size:hover {color: var(--color-text); cursor: pointer;}

#video-area-hsel, #spoiler-type-list, #image-source-list, #color-area, #table-area, #smilies-block, #keyboard-span, #addition-area {
    padding: 1em 1em 0em 1em !important;
}

.reactions-root {
    display: none !important;
}

.matrix-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    margin-top: 50px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    font: 14px / 1.2 "PT Mono", monospace;
    color: rgba(205, 184, 156, 0.95);
    padding: 8px 10px;
    border-radius: 10px;
  }

  .matrix-toggle input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .matrix-toggle .track{
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(205, 184, 156, 0.25);
    border: 1px solid rgba(205, 184, 156, 0.35);
    position: relative;
    flex: 0 0 auto;
    cursor: pointer;
  }

  .matrix-toggle .track::after{
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(205, 184, 156, 0.95);
    transition: transform 160ms ease, background 160ms ease;
  }

  .matrix-toggle input:checked + .track{
    background: rgba(205, 184, 156, 0.35);
  }

  .matrix-toggle input:checked + .track::after{
    transform: translateX(20px);
  }

  .matrix-toggle .label{
    cursor: pointer;
  }
  
.lastedit {
    display: none;
}

li.pa-gifts {
    display: none;
}


/*-----------------------*/



/* СТРАНИЦЫ НАГРАД */

/* Таблица */
#pun-mod.mod-awards #pun-main table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #23272b;
}

/* Возвращаем скрытые столбцы */
#pun-mod.mod-awards #pun-main table th,
#pun-mod.mod-awards #pun-main table td {
    display: table-cell !important;
    box-sizing: border-box;
    padding: 14px;
    height: auto;
    max-height: none;

    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    overflow: visible;
    text-overflow: clip;

    vertical-align: middle;
    text-align: left;
    border: 1px solid #424646;
}

/* Убираем ширину ячеек, заданную общими стилями форума */
#pun-mod.mod-awards #pun-main table td {
    width: auto !important;
}

/* Заголовки столбцов */
#pun-mod.mod-awards #pun-main table th {
    background: #393e3e;
    color: #eae0c7;
    font: 13px/1.5 'PT Mono', monospace;
}

/* Текст */
#pun-mod.mod-awards #pun-main table td {
    background: #23272b;
    color: #cdb89c;
    font: 14px/1.6 'Roboto', sans-serif;
}

/* Название награды */
#pun-mod.mod-awards #pun-main table td:first-child {
    color: #eae0c7;
    font-family: 'PT Mono', monospace;
}

/* Столбец с иконкой */
#pun-mod.mod-awards #pun-main table th:nth-child(2),
#pun-mod.mod-awards #pun-main table td:nth-child(2) {
    text-align: center;
}

/* Иконки сохраняют пропорции */
#pun-mod.mod-awards #pun-main table td img {
    display: inline-block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100px !important;
    vertical-align: middle;
}

/* Ссылки на владельцев */
#pun-mod.mod-awards #pun-main table td a {
    color: #95c3a3;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-decoration: none;
}

#pun-mod.mod-awards #pun-main table td a:hover {
    color: #eae0c7;
    text-decoration: underline;
}





/* Награды в мини-профиле участника */
#pun .post-author .pa-awards {
    display: block !important;
    box-sizing: border-box;
    margin: 14px 0 0;
    padding: 10px;

    background: #23272b;
    border: 1px solid #424646;
    border-radius: 6px;
}

/* Убираем заголовок и лишние переносы */
#pun .post-author .pa-awards .mini_awards_label,
#pun .post-author .pa-awards > br {
    display: none !important;
}

/* Иконки располагаются рядами */
#pun .post-author .pa-awards .mini_awards {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#pun .post-author .mini_awards a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Размер иконок с сохранением пропорций */
#pun .post-author .mini_awards img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 40px !important;
    max-height: 40px !important;
    margin: 0;
    border: none;
}


/*Раскрытие*/
/* Скрываем исходное поле: награды будут под стрелкой */
#pun .post-author .pa-awards.q-awards-source {
    display: none !important;
}

/* Раскрытие внизу мини-профиля */
#pun .post-author .q-awards-fold {
    clear: both;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Кнопка без надписи и отдельного фона */
#pun .post-author .q-awards-arrow {
    appearance: none;
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 52px;
    height: 32px;
    min-height: 0;
    margin: 0 auto !important;
    padding: 0 !important;

    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;

    color: #cdb89c;
    cursor: pointer;
    transition: color .2s, transform .2s;
}

/* Две направленные вниз стрелочки */
#pun .post-author .q-awards-arrow::before,
#pun .post-author .q-awards-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    margin-left: -5px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

#pun .post-author .q-awards-arrow::before {
    top: 5px;
}

#pun .post-author .q-awards-arrow::after {
    top: 12px;
}

#pun .post-author .q-awards-arrow:hover {
    color: #95c3a3;
}

/* При раскрытии стрелочки смотрят вверх */
#pun .post-author .q-awards-arrow[aria-expanded="true"] {
    transform: rotate(180deg);
    color: #95c3a3;
}

#pun .post-author .q-awards-arrow:focus-visible {
    outline: 1px solid #95c3a3;
    outline-offset: -2px;
}

/* Раскрытая область наград */
#pun .post-author .q-awards-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 10px 16px;

    border-top: 1px solid #424646;
    color: #cdb89c;
    font: 13px/1.5 'Roboto', sans-serif;
    text-align: center;
}

#pun .post-author .q-awards-panel[hidden] {
    display: none !important;
}

#pun .post-author .q-awards-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #95c3a3;
}

#pun .post-author .q-awards-panel img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 40px !important;
    max-height: 40px !important;
    margin: 0;
    border: none;
}

/* Убираем разделитель и отдельную заливку */
#pun .post-author .q-awards-panel {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;

    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;

    scrollbar-width: thin;
    scrollbar-color: #95c3a3 #23272b;
}

/* Обёртка для плавного раскрытия */
#pun .post-author .q-awards-motion {
    display: block;
    height: 0;
    overflow: hidden;
    opacity: 0;

    transition:
        height .35s ease,
        opacity .25s ease;
}

#pun .post-author .q-awards-motion.is-open {
    opacity: 1;
}

/* Сворачиваем высоту обёртки вместо display: none */
#pun .post-author .q-awards-motion .q-awards-panel[hidden] {
    display: flex !important;
}

/* Полоса прокрутки */
#pun .post-author .q-awards-panel::-webkit-scrollbar {
    width: 5px;
}

#pun .post-author .q-awards-panel::-webkit-scrollbar-track {
    background: #23272b;
}

#pun .post-author .q-awards-panel::-webkit-scrollbar-thumb {
    background: #95c3a3;
    border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
    #pun .post-author .q-awards-motion {
        transition: none;
    }
}

/*ЛС*/

/* ==============================
   ЛИЧНЫЕ СООБЩЕНИЯ
   ============================== */

/* Общая панель */
#pun-messages #profile.messages-container > .container {
    background: #23272b;
    border: 1px solid #424646;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

/* Заголовки меню слева */
#pun-messages #profilenav h2 {
    margin-bottom: 8px;
    padding: 0 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #cdb89c;
    font: 12px/1.5 'PT Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#pun-messages #profilenav h2 span {
    font-size: inherit;
}

/* Группы «Папки» и «Действия» */
#pun-messages #profilenav ul {
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 6px;
    background: #1e2125;
    border: 1px solid #424646;
    border-radius: 8px;
}

#pun-messages #profilenav li {
    margin: 2px 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* Пункты меню */
#pun-messages #profilenav li a {
    display: block;
    box-sizing: border-box;
    padding: 9px 10px;
    background: transparent;
    border-left: 3px solid transparent;
    border-radius: 5px;

    color: #cdb89c;
    font: 14px/1.4 'Roboto', sans-serif;
    text-decoration: none;

    transition:
        background-color .2s,
        color .2s,
        border-color .2s;
}

#pun-messages #profilenav li a:hover {
    background: #2b3232;
    color: #eae0c7;
}

/* Открытая папка */
#pun-messages #profilenav li.isactive a {
    background: rgba(149, 195, 163, .09);
    border-left-color: #95c3a3;
    color: #95c3a3;
    font-weight: 500;
}

/* Новое сообщение */
#pun-messages #profilenav a[href*="action=new"] {
    color: #95c3a3;
}

/* Область списка сообщений */
#pun-messages #messages fieldset {
    background: transparent;
    border: 1px solid #424646;
    border-radius: 8px;
}

#pun-messages #messages legend {
    padding: 0 10px;
}

#pun-messages #messages legend span {
    color: #eae0c7;
    font: 600 18px/1.4 'Tektur', sans-serif;
}

/* Рамка таблицы */
#pun-messages #messages .fs-box > .container {
    overflow: hidden;
    background: #1e2125;
    border: 1px solid #424646;
    border-radius: 7px;
    box-shadow: none;
}

/* Таблица сохраняет существующие столбцы */
#pun-messages #messages table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

/* Шапка таблицы */
#pun-messages #messages thead th {
    padding: 11px 12px;
    background: linear-gradient(to right, #343939, #2b3232);
    border: none;
    border-bottom: 1px solid #424646;

    color: #cdb89c;
    font: 12px/1.4 'PT Mono', monospace;
}

/* Строки сообщений */
#pun-messages #messages tbody td {
    padding: 15px 12px;
    background: #1e2125;
    border: none;
    border-bottom: 1px solid #343939;

    color: #cdb89c;
    font: 14px/1.5 'Roboto', sans-serif;
    vertical-align: middle;
    transition: background-color .2s;
}

#pun-messages #messages tbody tr:last-child td {
    border-bottom: none;
}

#pun-messages #messages tbody tr:hover td {
    background: #2b3232;
}

/* Тема сообщения и индикатор */
#pun-messages #messages .intd {
    display: flex;
    align-items: center;
    gap: 10px;
}

#pun-messages #messages .intd > .icon {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin: 0;
    background: #566060 !important;
    border: none;
    border-radius: 50%;
    box-shadow: none;
}

#pun-messages #messages .intd > .icon.inew {
    background: #95c3a3 !important;
    box-shadow: 0 0 8px rgba(149, 195, 163, .25);
}

#pun-messages #messages .tclcon {
    min-width: 0;
    padding: 0 !important;
    overflow-wrap: anywhere;
}

/* Ссылки */
#pun-messages #messages td a {
    color: #eae0c7;
    text-decoration: none;
    transition: color .2s;
}

#pun-messages #messages td a:hover {
    color: #95c3a3;
}

#pun-messages #messages tr.inew .tclcon a {
    color: #95c3a3;
    font-weight: 600;
}

/* Дата */
#pun-messages #messages tbody td.pmtc33 {
    color: #a99c88;
    font-size: 13px;
}

/* Аватар отправителя */
#pun-messages #messages .avatar-image {
    border-radius: 50%;
    box-shadow: 0 0 0 1px #424646;
}

/* Столбец выбора сообщений */
#pun-messages #messages th.pmtc24,
#pun-messages #messages td.pmtc24 {
    padding: 10px 4px;
    text-align: center;
}

#pun-messages #messages input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #95c3a3;
    cursor: pointer;
}

/* Строка под таблицей */
#pun-messages #messages .linksb {
    padding-top: 12px;
    color: #cdb89c;
    font: 13px/1.5 'Roboto', sans-serif;
}

#pun-messages #messages .pagelink strong {
    color: #eae0c7;
}

/* Кнопка удаления остаётся на прежнем месте */
#pun-messages #messages input.button {
    appearance: none;
    padding: 9px 16px;
    background: #2b3232;
    border: 1px solid #424646;
    border-radius: 6px;
    box-shadow: none;

    color: #cdb89c;
    font: 12px/1.3 'PT Mono', monospace;
    letter-spacing: .5px;
    cursor: pointer;

    transition:
        background-color .2s,
        border-color .2s,
        color .2s;
}

#pun-messages #messages input.button:hover {
    background: #343939;
    border-color: #95c3a3;
    color: #eae0c7;
}

/* Выделение при управлении с клавиатуры */
#pun-messages #profile a:focus-visible,
#pun-messages #messages input:focus-visible {
    outline: 2px solid #95c3a3;
    outline-offset: 3px;
}


/* Общая панель — как в профиле */
#pun-messages #profile.messages-container > .container {
    background: #2f3434;
    border: 1px solid #424646;
    border-radius: 6px 2px;
    box-shadow: inset 0 0 5px #1e2222;
}

/* Форма углов внутренних блоков */
#pun-messages #profilenav ul,
#pun-messages #messages fieldset,
#pun-messages #messages .fs-box > .container {
    border-color: #424646;
    border-radius: 6px 2px;
}

/* Убираем добавленные тёмные заливки */
#pun-messages #profilenav ul,
#pun-messages #messages fieldset,
#pun-messages #messages .fs-box > .container,
#pun-messages #messages table,
#pun-messages #messages thead th,
#pun-messages #messages tbody td {
    background: transparent;
}

/* Пункты меню */
#pun-messages #profilenav li a {
    border-radius: 6px 2px;
}

#pun-messages #profilenav li a:hover {
    background: #393e3e;
}

/* Активная папка */
#pun-messages #profilenav li.isactive a {
    background: rgba(149, 195, 163, .08);
    border-left-color: #95c3a3;
    color: #95c3a3;
}

/* Наведение на сообщение */
#pun-messages #messages tbody tr:hover td {
    background: #393e3e;
}

/* Кнопка в той же палитре */
#pun-messages #messages input.button {
    background: #2f3434;
    border-color: #424646;
    border-radius: 6px 2px;
    box-shadow: inset 0 0 5px #1e2222;
}

#pun-messages #messages input.button:hover {
    background: #393e3e;
    border-color: #95c3a3;
}

#pun-messages #profile,
#pun-messages #profile * {
    font-family: 'IBM Plex Sans', verdana, arial, helvetica, sans-serif !important;
}

#pun-messages #messages legend,
#pun-messages #messages legend span {
    font-family: 'Tektur', sans-serif !important;
}


/*лс*/

/* ==================================
   ОТКРЫТОЕ ЛИЧНОЕ СООБЩЕНИЕ
   ================================== */

/* Заголовок сообщения */
#pun-messages #profile > .container > fieldset > legend span {
    font-family: 'Tektur', sans-serif !important;
    font-size: 18px;
    color: #eae0c7;
}

/* Сбрасываем оформление обычного форумного поста */
#pun-messages #profile .post {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#pun-messages #profile .post > .container {
    display: flow-root !important;
    box-sizing: border-box;
    width: 100%;
    margin: 0 !important;
    padding: 12px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Дата — небольшая строка над сообщением */
#pun-messages #profile .post > h3 {
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #a99c88;
    font-size: 12px;
    text-align: right;
}

#pun-messages #profile .post > h3 > span {
    display: block;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}



/* Компактный блок отправителя */
#pun-messages #profile .post .post-author {
    position: static !important;
    float: none !important;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
}

#pun-messages #profile .post .post-author > ul {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
}

/* Оставляем только аватарку и ник */
#pun-messages #profile .post-author > ul > li:not(.pa-avatar):not(.pa-author) {
    display: none !important;
}

/* Круглая аватарка */
#pun-messages #profile .post-author .pa-avatar {
    position: relative !important;
    display: block !important;
    order: 0;
    flex: 0 0 48px;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

#pun-messages #profile .post-author .pa-avatar img {
    position: static !important;
    display: block;
    box-sizing: border-box;
    width: 48px !important;
    height: 48px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    border: 1px solid #424646;
    border-radius: 50% !important;
    box-shadow: none !important;
    clip-path: none !important;
}

#pun-messages #profile .post-author .pa-avatar::before,
#pun-messages #profile .post-author .pa-avatar::after,
#pun-messages #profile .post-author .status-tooltip {
    display: none !important;
}

/* Ник справа от аватарки */
#pun-messages #profile .post-author .pa-author {
    position: static !important;
    display: block !important;
    order: 1;
    min-width: 0;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: left;
    text-transform: none;
}

#pun-messages #profile .post-author .pa-author a {
    color: #eae0c7;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* Текст под отправителем */
#pun-messages #profile .post .post-body,
#pun-messages #profile .post .post-box {
    display: flow-root !important;
    float: none !important;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#pun-messages #profile .post .post-content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 0;
    color: #cdb89c;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

#pun-messages #profile .post .post-content img,
#pun-messages #profile .post .post-content iframe {
    max-width: 100%;
}

#pun-messages #profile .post .post-content img {
    height: auto;
}

/* Действия под текстом */
#pun-messages #profile .post .post-links {
    float: none !important;
    width: auto !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    background: transparent;
}

#pun-messages #profile .post .post-links ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#pun-messages #profile .post .post-links li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#pun-messages #profile .post .pl-email {
    display: none !important;
}

#pun-messages #profile .post .post-links a {
    display: inline-block;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid #424646;
    border-radius: 6px 2px;
    color: #cdb89c;
    font-size: 13px;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

#pun-messages #profile .post .pl-reply a {
    color: #95c3a3;
}

#pun-messages #profile .post .post-links a:hover {
    background: #393e3e;
    border-color: #95c3a3;
}


/* ==================================
   ФОРМА ОТВЕТА
   ================================== */

/* Ширина включает рамки и внутренние отступы */
#pun-messages #post,
#pun-messages #post * {
    box-sizing: border-box;
}

#pun-messages #post {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    background: transparent;
    border: none;
}

#pun-messages #post-form,
#pun-messages #post .fs-box,
#pun-messages #post fieldset {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

#pun-messages #post-form {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    border: none;
    box-shadow: none;
}

#pun-messages #post-form > .fs-box {
    margin: 0 !important;
    padding: 0 !important;
}

/* Панель инструментов переносится внутри формы */
#pun-messages #post #form-buttons {
    width: 100%;
    margin-bottom: 10px;
}

#pun-messages #post #form-buttons table,
#pun-messages #post #form-buttons tbody {
    display: block;
    width: 100% !important;
    min-width: 0;
}

#pun-messages #post #form-buttons tr {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
}

#pun-messages #post #form-buttons td {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;

    background: #2f3434;
    border: 1px solid #424646;
    border-radius: 6px 2px;
    clip-path: none;
    cursor: pointer;
}

#pun-messages #post #form-buttons td:hover {
    background: #393e3e;
    border-color: #95c3a3;
}

/* Сохраняем штатную кликабельность кнопок */
#pun-messages #post #form-buttons td > img {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
}

/* Иконочный шрифт — только для значков редактора */
#pun-messages #post #form-buttons .material-icons {
    position: static;
    display: block;
    padding: 0;
    font-family: 'Material Icons' !important;
    font-size: 18px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    font-feature-settings: 'liga';
    color: #eae0c7;
    pointer-events: none;
}

/* Убираем повторные значки, добавленные скриптами */
#pun-messages #post #form-buttons .material-icons ~ .material-icons {
    display: none !important;
}

/* Поле ввода */
#pun-messages #post #main-reply {
    display: block;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 180px;
    height: 220px;
    margin: 0 !important;
    padding: 12px !important;

    background: #2f3434;
    border: 1px solid #424646;
    border-radius: 6px 2px;
    box-shadow: inset 0 0 5px #1e2222;

    color: #eae0c7;
    font-size: 14px;
    line-height: 1.65;
    resize: vertical;
}

#pun-messages #post #main-reply:focus {
    outline: none;
    border-color: #95c3a3;
}

/* Кнопки и «Сохранить» не расползаются */
#pun-messages #post-form > p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 12px 0 0 !important;
    padding: 0 !important;
}

#pun-messages #post-form > p > span {
    float: none !important;
}

#pun-messages #post-form > p > span:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#pun-messages #post-form .checkfield {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    color: #cdb89c;
    font-size: 13px;
}

#pun-messages #post input.button {
    padding: 9px 14px;
    background: #2f3434;
    border: 1px solid #424646;
    border-radius: 6px 2px;
    box-shadow: none;
    color: #eae0c7;
    font-size: 13px;
    cursor: pointer;
}

#pun-messages #post input.button:hover {
    background: #393e3e;
    border-color: #95c3a3;
}

#pun-messages #post input.submit {
    color: #95c3a3;
}

/* Предварительный просмотр тоже остаётся внутри формы */
#pun-messages #post-preview {
    margin: 0 0 14px !important;
    padding: 12px !important;
    border: 1px solid #424646;
    border-radius: 6px 2px;
}

#pun-messages #post-preview .post-box {
    width: 100%;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ==================================
   КОМПАКТНОЕ МЕНЮ И ШИРОКАЯ ОБЛАСТЬ
   ================================== */

#pun-messages #profile.messages-container > .container {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
    align-items: start;
    position: relative;
    box-sizing: border-box;
    padding: 20px !important;
}

#pun-messages #profile.messages-container > .container::after {
    display: none !important;
    content: none !important;
}

/* Правая область */
#pun-messages #profile > .container > fieldset,
#pun-messages #profile > .container > #messages {
    grid-column: 2;
    float: none !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Узкая колонка меню */
#pun-messages #profilenav {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: start;
    position: relative !important;
    z-index: 30;
    float: none !important;
    box-sizing: border-box;
    width: 56px !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    overflow: hidden;

    background: #2f3434;
    border: 1px solid #424646;
    border-radius: 6px 2px;
    transition: width .25s ease, box-shadow .25s ease;
}

#pun-messages #profilenav:hover,
#pun-messages #profilenav:focus-within {
    width: 210px !important;
    box-shadow: 6px 0 18px rgba(0, 0, 0, .25);
}

/* Заголовки сохраняют место, но видны только при раскрытии */
#pun-messages #profilenav h2 {
    box-sizing: border-box;
    width: auto !important;
    height: 20px;
    margin: 8px 0 4px !important;
    padding: 0 12px !important;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px !important;
    line-height: 20px;
    letter-spacing: .5px;
    opacity: 0;
    transition: opacity .2s;
}

#pun-messages #profilenav:hover h2,
#pun-messages #profilenav:focus-within h2 {
    opacity: 1;
}

#pun-messages #profilenav ul {
    margin: 0 0 8px !important;
    padding: 0 !important;
    background: transparent;
    border: none;
    box-shadow: none;
}

#pun-messages #profilenav li {
    margin: 2px 0 !important;
    padding: 0 !important;
}

/* Надписи скрыты, значки остаются */
#pun-messages #profilenav li a {
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    padding: 10px 0 !important;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0 !important;
    line-height: 22px;
}

#pun-messages #profilenav:hover li a,
#pun-messages #profilenav:focus-within li a {
    font-size: 14px !important;
}

/* Значки используют уже подключённый Material Icons */
#pun-messages #profilenav li a::before {
    content: "mail_outline";
    display: block;
    flex: 0 0 50px;
    width: 50px;
    height: 22px;

    font-family: 'Material Icons' !important;
    font-size: 22px !important;
    font-weight: normal;
    font-style: normal;
    line-height: 22px;
    letter-spacing: normal;
    text-transform: none;
    font-feature-settings: 'liga';
    text-align: center;
}

#pun-messages #profilenav a[href*="box=0"]::before {
    content: "inbox";
}

#pun-messages #profilenav a[href*="box=1"]::before {
    content: "send";
}

#pun-messages #profilenav a[href*="action=new"]::before {
    content: "edit";
}

#pun-messages #profilenav a[href*="box=2"]::before {
    content: "schedule";
}

#pun-messages #profilenav a[href*="markread"]::before {
    content: "done_all";
}

#pun-messages #profilenav a[href*="clean"]::before {
    content: "delete_outline";
}


/* ==================================
   АВАТАР, НИК И ДАТА В ОДНОЙ СТРОКЕ
   ================================== */

#pun-messages #profile .post {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    position: relative;
}

/* Общий фон строки отправителя */
#pun-messages #profile .post::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: stretch;
    background: var(--color-bg-darker, #23272b);
    border: 1px solid #424646;
    border-radius: 6px 2px;
    pointer-events: none;
}

/* Позволяем внутренним блокам участвовать в общей сетке */
#pun-messages #profile .post > .container {
    display: contents !important;
}

#pun-messages #profile .post > .container::after {
    display: none !important;
    content: none !important;
}

/* Аватар и ник слева */
#pun-messages #profile .post .post-author {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    position: relative !important;
    z-index: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 12px 16px !important;
}

/* Дата справа, на той же высоте */
#pun-messages #profile .post > h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    position: relative;
    z-index: 1;
    width: auto !important;
    margin: 0 !important;
    padding: 12px 16px 12px 0 !important;

    background: transparent !important;
    border: none !important;
    color: #a99c88;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    text-align: right;
}

#pun-messages #profile .post > h3 > span {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Отдельная область текста */
#pun-messages #profile .post .post-body {
    grid-column: 1 / -1;
    grid-row: 2;
    box-sizing: border-box;
    min-width: 0;
    margin: 10px 0 0 !important;
    padding: 18px !important;

    background: var(--color-bg, #2b3232) !important;
    border: 1px solid #424646 !important;
    border-radius: 6px 2px;
}

#pun-messages #profile .post .post-box {
    background: transparent !important;
}

/* Действия под сообщением */
#pun-messages #profile .post .post-links {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 12px 0 0 !important;
    padding: 4px 0 8px !important;
}


/* ==================================
   ОТСТУПЫ РАСКРЫТОЙ ФОРМЫ
   ================================== */

#pun-messages #post {
    margin: 18px 0 0 !important;
    padding: 0 0 8px !important;
}

/* Прежний цвет формы */
#pun-messages #post-form {
    box-sizing: border-box;
    padding: 14px !important;
    background: #2f3434 !important;
    border: 1px solid #424646;
    border-radius: 6px 2px;
}

#pun-messages #post-form > .fs-box {
    padding: 0 !important;
}

/* Воздух вокруг инструментов */
#pun-messages #post #form-buttons {
    margin: 0 !important;
    padding: 4px 0 12px !important;
}

/* Воздух вокруг кнопок отправки */
#pun-messages #post-form > p {
    gap: 12px;
    margin: 16px 0 0 !important;
    padding: 4px 0 2px !important;
}

/* Цвет поля ответа сохраняется */
#pun-messages #post #main-reply {
    background: #2f3434;
}


/* На устройствах без наведения показываем подписи сразу */
@media (hover: none) {
    #pun-messages #profile.messages-container > .container {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    #pun-messages #profilenav {
        width: 210px !important;
    }

    #pun-messages #profilenav h2 {
        opacity: 1;
    }

    #pun-messages #profilenav li a {
        font-size: 14px !important;
    }
}

/* DQ_PM_EDITOR_20261026: flat controls and warm reply field */


#pun-messages #profile input.button,
#pun-messages #profile button.button,
#pun-messages #post #form-buttons,
#pun-messages #post #form-buttons table,
#pun-messages #post #form-buttons tbody,
#pun-messages #post #form-buttons tr,
#pun-messages #post #form-buttons td {
    background-image: none !important;
}

#pun-messages #post #main-reply,
#pun-messages #post #main-reply:focus {
    background: #cdb89c !important;
    color: #23272b !important;
    -webkit-text-fill-color: #23272b;
    caret-color: #23272b;
    box-shadow: inset 0 1px 3px rgba(35, 39, 43, .12);
}

#pun-messages #post #main-reply::placeholder {
    color: #566050;
    opacity: 1;
}

#pun-messages #post #main-reply::selection {
    background: #95c3a3;
    color: #23272b;
}


/* DQ_PM_ACTIONS_20261026: flat action buttons and restored font slider */
#pun-messages #profile .post .post-links,
#pun-messages #profile .post .post-links ul,
#pun-messages #profile .post .post-links li {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

#pun-messages #profile .post .post-links ul {
    height: auto !important;
    line-height: normal;
}

#pun-messages #profile .post .post-links ul::after {
    content: none !important;
    display: none !important;
}

#pun-messages #profile .post .post-links li {
    border: none !important;
}

#pun-messages #profile .post .post-links a {
    background: #2f3434 !important;
    background-image: none !important;
    box-shadow: none !important;
}

#pun-messages #profile .post .post-links a:hover,
#pun-messages #profile .post .post-links a:focus-visible {
    background: #393e3e !important;
}

#pun-messages #profile .post > h3 > span {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

#pun-messages #profile .post .FNTslider {
    display: block !important;
    visibility: visible;
    float: none;
    flex: 0 0 110px;
    width: 110px;
    margin: 0 4px 0 0 !important;
    z-index: 2;
}


/* DQ_PM_SCHEME_20261026: topic-style buttons, unread pulse, message outline */
#pun-messages #post input.button,
#pun-messages #messages input.button,
#pun-messages #profile .post .post-links a {
    display: inline-block;
    box-sizing: border-box;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 2px 20px;
    font: 500 .75rem / 2 'PT Mono', monospace !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    background: var(--gradient-bg) !important;
    background-image: var(--gradient-bg) !important;
    color: var(--color-heading) !important;
    border: 1px solid var(--color-border);
    border-radius: 10px 2px;
    box-shadow: inset 0 0 5px #1e2222 !important;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
    cursor: pointer;
}

#pun-messages #post input.button:hover,
#pun-messages #messages input.button:hover,
#pun-messages #profile .post .post-links a:hover,
#pun-messages #profile .post .post-links a:focus-visible {
    background: var(--gradient-bg) !important;
    background-image: var(--gradient-bg) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border);
}

/* Bright unread messages: pulse the glow without dimming the text. */
@keyframes dq-pm-unread-pulse {
    0%, 100% { filter: brightness(1); text-shadow: 0 0 5px rgba(149,195,163,.45); }
    50% { filter: brightness(1.3); text-shadow: 0 0 10px rgba(149,195,163,.9); }
}
#pun-messages #messages tbody tr:is(.inew, :has(.icon.inew)) .tclcon a {
    color: var(--color-secondary) !important;
    opacity: 1 !important;
    font-weight: 700;
    animation: dq-pm-unread-pulse 1.6s ease-in-out infinite;
}
#pun-messages #messages tbody tr:is(.inew, :has(.icon.inew)) .intd > .icon {
    background: var(--color-secondary) !important;
    opacity: 1 !important;
    box-shadow: 0 0 9px var(--color-secondary) !important;
    animation: dq-pm-unread-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    #pun-messages #messages tbody tr:is(.inew, :has(.icon.inew)) .tclcon a,
    #pun-messages #messages tbody tr:is(.inew, :has(.icon.inew)) .intd > .icon { animation: none; }
}

/* One outline around the message, as in the supplied sketch. */
#pun-messages #profile > .container > fieldset {
    border: none !important;
    padding: 0 !important;
    background: transparent;
}

#pun-messages #profile > .container > fieldset > legend {
    margin: 0 0 8px;
    padding: 0;
}

#pun-messages #profile > .container > fieldset > legend strong,
#pun-messages #profile > .container > fieldset > legend span {
    font-family: 'Tektur', sans-serif !important;
    font-size: 18px;
    color: var(--color-heading);
}

#pun-messages #profile > .container > fieldset > .fs-box {
    padding: 8px 0 0 !important;
}

#pun-messages #profile .post {
    grid-template-columns: max-content minmax(0,1fr);
    column-gap: 0;
    margin: 28px 0 0 !important;
    padding: 0 !important;
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 6px 2px;
    overflow: visible;
}

#pun-messages #profile .post::before {
    content: none;
    display: none;
}

/* Sender capsule overlaps the top-left edge of the outline. */
#pun-messages #profile .post .post-author {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    width: max-content !important;
    min-width: 210px !important;
    max-width: 300px !important;
    margin: -25px 0 0 -1px !important;
    padding: 8px 18px !important;
    background: var(--color-bg-darker) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 999px !important;
}

#pun-messages #profile .post .post-author > ul {
    min-width: 0;
}

/* Date follows the capsule; the native font slider stays on the right. */
#pun-messages #profile .post > h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 41px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 8px 14px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    text-align: left;
}

#pun-messages #profile .post > h3 > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100% !important;
    min-width: 0;
}

#pun-messages #profile .post .post-body {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 140px !important;
    margin: 0 !important;
    padding: 24px 32px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
}

#pun-messages #profile .post .post-links {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0 !important;
    padding: 0 18px 18px !important;
}


/* DQ_PM_CENTERED_STRIP_20261026: capsule centered on the date strip. */
#pun-messages #profile .post {
    isolation: isolate;
    border: none !important;
    grid-template-rows: auto auto auto;
}
/* The outer sides start at the capsule's middle, below its rounded tip. */
#pun-messages #profile .post::before {
    content: '';
    display: block;
    position: absolute;
    inset: 20.5px 0 0;
    background: transparent !important;
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 6px 2px;
    pointer-events: none;
    z-index: -1;
}
#pun-messages #profile .post .post-author {
    margin: -12.5px 0 0 0 !important;
    z-index: 3;
}
#pun-messages #profile .post > h3 {
    align-self: start;
    height: 41px;
    min-height: 41px;
    margin: 0 0 0 -24px !important;
    padding: 8px 14px 8px 38px !important;
    background: var(--gradient-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-left: none !important;
    border-radius: 0 2px 0 0;
    z-index: 1;
}


/* DQ_DARK_MODE_HALLOWEEN_START */
#pun-index #forum_f20 {
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,.11) 0 1px, transparent 1px 4px),
        radial-gradient(ellipse at 88% 40%, rgba(184,112,52,.16), transparent 52%),
        linear-gradient(105deg, #151c20 0%, #202526 58%, #24221f 100%) !important;
}
#pun-index #forum_f20 > td {
    background: transparent !important;
    border-top: 1px solid #65513c !important;
    border-bottom: 1px solid #65513c !important;
}
#pun-index #forum_f20 > td.tcl {
    padding: 25px 24px 25px 28px !important;
    box-shadow: inset 3px 0 #c49661;
    overflow: hidden;
}
#pun-index #forum_f20 .intd { align-items: center; }
#pun-index #forum_f20 .icon { display: none !important; }
#pun-index #forum_f20 .tclcon {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0 !important;
    color: #a8b2a7;
    font: 12px/1.7 'IBM Plex Sans', verdana, arial, helvetica, sans-serif;
    overflow-wrap: anywhere;
}
#pun-index #forum_f20 h3 {
    margin: 0 0 12px !important;
    padding: 0 !important;
}
#pun-index #forum_f20 h3 > a {
    display: inline-block;
    color: #edc791 !important;
    font: 600 clamp(21px, 2.25vw, 29px)/1.2 'Tektur', sans-serif !important;
    letter-spacing: 1px;
    text-decoration: none;
    text-shadow: 0 0 18px rgba(212,153,87,.22);
    animation: dq-dark-mode-signal 9s linear infinite;
    transition: color .2s ease;
}
#pun-index #forum_f20 h3 > a:hover,
#pun-index #forum_f20 h3 > a:focus-visible {
    color: #b4d9bb !important;
}
#pun-index #forum_f20 h3 > a:focus-visible {
    outline: 1px solid #95c3a3;
    outline-offset: 5px;
}
#pun-index #forum_f20 > td.tcr {
    position: relative;
    min-height: 160px;
    padding: 22px 22px 42px !important;
    vertical-align: middle;
}
#pun-index #forum_f20 > td.tcr::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20180%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23cc9a64%22%20stroke-width%3D%221%22%3E%3Cpath%20opacity%3D%22.22%22%20d%3D%22M10%2028h41l14%2014h40M239%20144h33l14-14h14M232%2020h38M251%2013v14M21%20135h29M35%20128v14%22%2F%3E%3Ccircle%20cx%3D%22209%22%20cy%3D%2269%22%20r%3D%2247%22%20opacity%3D%22.22%22%20stroke-dasharray%3D%223%208%22%2F%3E%3Cpath%20opacity%3D%22.5%22%20d%3D%22M185%2029a45%2045%200%200%201%2065%2041M167%2080a45%2045%200%200%200%2037%2033%22%2F%3E%3Cpath%20d%3D%22M128%20136V77c0-29%2018-46%2043-46s43%2017%2043%2046v59l-14-10-14%2010-15-10-15%2010-14-10-14%2010Z%22%20fill%3D%22%23171d21%22%20stroke%3D%22%23d1a36f%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22m144%2070%2017%205-3%2011-14-3V70Zm36%205%2018-5v13l-15%203-3-11Z%22%20fill%3D%22%23e6b879%22%20stroke%3D%22none%22%2F%3E%3Cpath%20d%3D%22m159%2099%2012%206%2013-6%22%20stroke%3D%22%2395c3a3%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M116%2093h38M194%20105h31M138%20116h19M176%2048h40%22%20stroke%3D%22%2395c3a3%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M125%2092h26M194%20104h22M178%2047h26%22%20stroke%3D%22%23171d21%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22m65%2060%209-9%208%205%208-12%202%2017%2011-2-8%2010-14-4-9%205-7-10Zm169%2058%207-8%207%205%209-9-1%2014%209%201-8%206-11-6-8%204-4-7Z%22%20fill%3D%22%23a97f56%22%20stroke%3D%22none%22%2F%3E%3Cg%20opacity%3D%22.5%22%20fill%3D%22%2395c3a3%22%20stroke%3D%22none%22%3E%3Cpath%20d%3D%22M89%20101h4v4h-4zM228%2043h5v5h-5zM111%20148h4v4h-4zM244%2087h3v3h-3z%22%2F%3E%3C%2Fg%3E%3Cpath%20opacity%3D%22.3%22%20d%3D%22M113%20158h112M133%20164h72%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') center / auto 170px no-repeat;
    pointer-events: none;
    opacity: .9;
}
#pun-index #forum_f20 > td.tcr::after {
    content: '\2592  NIGHT PROTOCOL  \2591';
    position: absolute;
    right: 22px;
    bottom: 12px;
    left: 22px;
    color: #b69268;
    font: 10px/1.4 'PT Mono', monospace;
    text-align: center;
    letter-spacing: 1.4px;
    pointer-events: none;
}
#pun-index #forum_f20 > td.tcr > * { position: relative; z-index: 1; }
#pun-index #forum_f20 > td.tcr:has(a)::before { opacity: .24; }
@keyframes dq-dark-mode-signal {
    0%, 94%, 98%, 100% { text-shadow: 0 0 18px rgba(212,153,87,.22); }
    95% { text-shadow: 2px 0 #95c3a3, -2px 0 #955a50; }
    96% { text-shadow: -1px 0 #95c3a3, 1px 0 #b47751; }
    97% { text-shadow: 1px 0 #95c3a3, -1px 0 #955a50; }
}
@media (max-width: 700px) {
    #pun-index #forum_f20 > td.tcl { padding: 20px 16px !important; }
    #pun-index #forum_f20 > td.tcr::before { background-size: auto 135px; opacity: .55; }
    #pun-index #forum_f20 > td.tcr::after { right: 8px; left: 8px; letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) {
    #pun-index #forum_f20 h3 > a { animation: none; }
}
/* DQ_DARK_MODE_HALLOWEEN_END */


/* DQ_EVENT_BBCODE_START — reusable Halloween task formatting. */
#pun .post-content .dm-card {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 16px auto 24px;
    padding: clamp(20px, 3vw, 34px);
    background: radial-gradient(ellipse at 100% 0, rgba(167,111,55,.10), transparent 42%), #1c2326;
    border: 1px solid #574d3e;
    border-left: 3px solid #bb905e;
    border-radius: 12px 2px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    color: #cdbfa9;
    font: 15px/1.75 'IBM Plex Sans', verdana, arial, helvetica, sans-serif !important;
    text-align: left;
    overflow-wrap: anywhere;
}
#pun .post-content .dm-card::before {
    content: '';
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: -1;
    width: 190px;
    height: 140px;
    background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20180%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23cc9a64%22%20stroke-width%3D%221%22%3E%3Cpath%20opacity%3D%22.22%22%20d%3D%22M10%2028h41l14%2014h40M239%20144h33l14-14h14M232%2020h38M251%2013v14M21%20135h29M35%20128v14%22%2F%3E%3Ccircle%20cx%3D%22209%22%20cy%3D%2269%22%20r%3D%2247%22%20opacity%3D%22.22%22%20stroke-dasharray%3D%223%208%22%2F%3E%3Cpath%20opacity%3D%22.5%22%20d%3D%22M185%2029a45%2045%200%200%201%2065%2041M167%2080a45%2045%200%200%200%2037%2033%22%2F%3E%3Cpath%20d%3D%22M128%20136V77c0-29%2018-46%2043-46s43%2017%2043%2046v59l-14-10-14%2010-15-10-15%2010-14-10-14%2010Z%22%20fill%3D%22%23171d21%22%20stroke%3D%22%23d1a36f%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22m144%2070%2017%205-3%2011-14-3V70Zm36%205%2018-5v13l-15%203-3-11Z%22%20fill%3D%22%23e6b879%22%20stroke%3D%22none%22%2F%3E%3Cpath%20d%3D%22m159%2099%2012%206%2013-6%22%20stroke%3D%22%2395c3a3%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M116%2093h38M194%20105h31M138%20116h19M176%2048h40%22%20stroke%3D%22%2395c3a3%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M125%2092h26M194%20104h22M178%2047h26%22%20stroke%3D%22%23171d21%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22m65%2060%209-9%208%205%208-12%202%2017%2011-2-8%2010-14-4-9%205-7-10Zm169%2058%207-8%207%205%209-9-1%2014%209%201-8%206-11-6-8%204-4-7Z%22%20fill%3D%22%23a97f56%22%20stroke%3D%22none%22%2F%3E%3Cg%20opacity%3D%22.5%22%20fill%3D%22%2395c3a3%22%20stroke%3D%22none%22%3E%3Cpath%20d%3D%22M89%20101h4v4h-4zM228%2043h5v5h-5zM111%20148h4v4h-4zM244%2087h3v3h-3z%22%2F%3E%3C%2Fg%3E%3Cpath%20opacity%3D%22.3%22%20d%3D%22M113%20158h112M133%20164h72%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') center / contain no-repeat;
    opacity: .20;
    pointer-events: none;
}
#pun .post-content .dm-card * {
    box-sizing: border-box;
    font-family: 'IBM Plex Sans', verdana, arial, helvetica, sans-serif !important;
}
#pun .post-content .dm-card p {
    margin: 0 0 13px !important;
    padding: 0 !important;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
}
#pun .post-content .dm-card p:last-child { margin-bottom: 0 !important; }
#pun .post-content .dm-card > p:empty { display: none; }
#pun .post-content .dm-card .dm-stamp,
#pun .post-content .dm-card .dm-stamp * {
    color: #c49a6b;
    font: 500 11px/1.5 'Tektur', sans-serif !important;
    letter-spacing: 1.8px;
}
#pun .post-content .dm-card .dm-stamp {
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid #4c4438;
}
#pun .post-content .dm-card .dm-title,
#pun .post-content .dm-card .dm-title * {
    color: #edc791;
    font: 600 clamp(23px, 2.2vw, 29px)/1.25 'Tektur', sans-serif !important;
    letter-spacing: .3px;
    text-shadow: 0 0 20px rgba(199,144,80,.14);
}
#pun .post-content .dm-card .dm-title { margin: 0 0 10px; }
#pun .post-content .dm-card .dm-sub,
#pun .post-content .dm-card .dm-sub * {
    color: #99b59f;
    font-size: 13px;
    line-height: 1.6;
}
#pun .post-content .dm-card .dm-sub { margin: 0 0 24px; }
#pun .post-content .dm-card .dm-section {
    margin: 24px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid #394342;
}
#pun .post-content .dm-card .dm-heading,
#pun .post-content .dm-card .dm-heading * {
    color: #dfb987;
    font: 500 18px/1.4 'Tektur', sans-serif !important;
}
#pun .post-content .dm-card .dm-heading {
    margin: 0 0 16px;
    padding: 0 0 0 13px;
    border-left: 2px solid #a97848;
}
#pun .post-content .dm-card .dm-heading:not(:first-child) { margin-top: 24px; }
#pun .post-content .dm-card .dm-heading p { margin: 0 !important; }
#pun .post-content .dm-card b,
#pun .post-content .dm-card strong { color: #e3d1b3; font-weight: 600; }
#pun .post-content .dm-card ul,
#pun .post-content .dm-card ol {
    margin: 10px 0 0 !important;
    padding: 0 0 0 21px !important;
}
#pun .post-content .dm-card li { margin: 0 0 10px; padding: 0 0 0 3px; }
#pun .post-content .dm-card li:last-child { margin-bottom: 0; }
#pun .post-content .dm-card li::marker { color: #c49a6b; }
#pun .post-content .dm-card .dm-note {
    margin: 14px 0;
    padding: 16px 18px;
    background: #26312d;
    border: 1px solid #46574b;
    border-left: 2px solid #95c3a3;
    border-radius: 6px 2px;
    color: #c4d0bf;
}
#pun .post-content .dm-card .dm-note b { color: #a9cfaf; }
@media (max-width: 650px) {
    #pun .post-content .dm-card { padding: 19px 17px; font-size: 14px !important; }
    #pun .post-content .dm-card::before { width: 140px; opacity: .12; }
    #pun .post-content .dm-card .dm-section { margin-top: 20px; padding-top: 18px; }
}
/* DQ_EVENT_BBCODE_END */


/* DQ_EVENT_LOCK_START */
#pun .post-content .dm-card .dm-lock {
    position: relative;
    margin: 24px 0 4px;
    padding: 83px 22px 25px;
    overflow: hidden;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 4px), #20292a;
    border: 1px dashed #756044;
    border-radius: 6px 2px;
    text-align: center;
}
#pun .post-content .dm-card .dm-lock::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translateX(-50%);
    background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20d%3D%22M15%2022V12h4V8h10v4h4v10%22%20stroke%3D%22%23cba06b%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M10%2022h28v21H10z%22%20fill%3D%22%232b302c%22%20stroke%3D%22%23cba06b%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M22%2029h4v5h-1v4h-2v-4h-1z%22%20fill%3D%22%2395c3a3%22%2F%3E%3Cpath%20d%3D%22M3%2023h3v3H3zM40%2014h3v3h-3zM39%2039h4v2h-4z%22%20fill%3D%22%2395c3a3%22%20opacity%3D%22.5%22%2F%3E%3C%2Fsvg%3E') center / contain no-repeat;
    image-rendering: pixelated;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(203,160,107,.14));
}
#pun .post-content .dm-card .dm-lock .dm-heading {
    margin: 0 0 17px;
    padding: 0;
    border: none;
    text-align: center;
}
#pun .post-content .dm-card .dm-lock p { text-align: center; }
#pun .post-content .dm-card .dm-lock b { color: #a9cfaf; }
#pun .post-content .dm-card:has(.dm-lock) .dm-title {
    letter-spacing: 2px;
    animation: dq-dark-mode-signal 9s steps(1,end) infinite;
}
@media (prefers-reduced-motion: reduce) {
    #pun .post-content .dm-card:has(.dm-lock) .dm-title { animation: none; }
}
/* DQ_EVENT_LOCK_END */

/* DQ_PLAYER_VOLUME_START */
#html-header .player-container .dq-player-volume {
    display: flex; align-items: center; gap: 8px; width: 100%;
    margin-top: 9px; min-height: 20px; color: var(--color-text);
    font: 11px/1.4 'IBM Plex Sans', verdana, arial, helvetica, sans-serif;
}
#html-header .dq-player-volume label { display: flex; align-items: center; flex: 0 0 15px; margin: 0; padding: 0; cursor: pointer; }
#html-header .dq-player-volume output { flex: 0 0 30px; text-align: right; color: var(--color-secondary); font: inherit; font-variant-numeric: tabular-nums; }
#html-header #dqPlayerVolume {
    appearance: none; -webkit-appearance: none; display: block;
    flex: 1 1 0; min-width: 0; width: 0; max-width: 100%; height: 5px;
    padding: 0; margin: 0; border: 0; border-radius: 2px; box-shadow: none;
    background: linear-gradient(to right, var(--color-secondary) 0 var(--dq-volume, 100%), var(--color-border) var(--dq-volume, 100%) 100%);
    accent-color: var(--color-secondary); cursor: pointer;
}
#html-header #dqPlayerVolume::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 11px; height: 11px;
    border: 1px solid var(--color-bg-darker); border-radius: 50%; background: var(--color-secondary); box-shadow: none;
}
#html-header #dqPlayerVolume::-moz-range-thumb {
    width: 10px; height: 10px; border: 1px solid var(--color-bg-darker);
    border-radius: 50%; background: var(--color-secondary); box-shadow: none;
}
#html-header #dqPlayerVolume:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 5px; }
#html-header .dq-player-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* DQ_PLAYER_VOLUME_END */

/* DQ_HEADER_EQUAL_HEIGHT_START */
#html-header .main-content { align-items: stretch; }
#html-header .main-content > .forum-body {
    position: relative; height: auto; min-height: 0; min-width: 0;
}
#html-header .main-content > .forum-body > .news-feed {
    position: absolute; top: 15px; right: 10px; bottom: 15px; left: 15px;
    height: auto; min-height: 0; width: auto; overflow-y: auto;
}
/* DQ_HEADER_EQUAL_HEIGHT_END */

/* DQ_HEADER_TERMINAL_START */
#html-header .header-image { display: block; }
#html-header .block_news { display: flow-root; padding-top: 18px; }
#html-header .dq-header-tools {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 20px; margin: 0 0 18px;
}
#html-header .dq-header-tools .quick-links {
    width: auto; margin: 0; justify-content: flex-end; flex-wrap: nowrap; gap: 10px;
}
#html-header .dq-header-tools .banner.dq-terminal {
    position: relative; display: flex; align-items: center; gap: 9px;
    box-sizing: border-box; width: 100%; min-width: 0; height: 26px;
    margin: 0; padding: 0 10px; overflow: hidden; text-align: left;
    border: 1px solid var(--color-border); border-left: 2px solid var(--color-secondary);
    border-radius: 6px 2px; background: var(--color-bg-darker);
    color: var(--color-text); box-shadow: inset 0 0 5px rgba(0,0,0,.15);
    font: 400 12px/24px 'PT Mono', monospace;
}
#html-header .dq-terminal-prompt { flex: 0 0 auto; color: var(--color-secondary); font: inherit; }
#html-header .dq-terminal-text {
    display: block; flex: 0 1 auto; min-width: 0; max-width: calc(100% - 32px);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit;
}
#html-header .dq-terminal-text::after {
    content: '_'; color: var(--color-secondary); animation: dq-terminal-cursor 1s steps(2, end) infinite;
}
#html-header .dq-terminal-announcement {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
#html-header .dq-header-tools .dropdown-pun_index:last-child .dropdown-menu { left: auto; right: 0; }
#pun #pun-ulinks:not(.dq-ulinks-pinned) { z-index: 2; }
@keyframes dq-terminal-cursor { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    #html-header .dq-terminal-text::after { animation: none; }
}
/* DQ_HEADER_TERMINAL_END */
