/* FONTS */

@import url(https://forumstatic.ru/files/001c/bd/d1/43828.css);
@import url('https://fonts.googleapis.com/css2?family=Brygada+1918:ital,wght@0,400..700;1,400..700&family=Cormorant+Infant:ital,wght@0,300..700;1,300..700&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Jura:wght@300..700&display=swap');
@import url('https://forumstatic.ru/files/001c/bd/d1/84900.css?v=3');

@import url(style_cs.1796561582.css);


/* THEME */
:root {
    --bookmark-default: url("https://forumstatic.ru/files/001c/dd/01/81892.png");

    --breadcrumb-font: "DxNeuegrid-Medium";
    --character-name-font: "Brygada 1918", serif;
    --forum-body-font: "Inter", sans-serif;
    --forum-h3-font: "DxNeuegrid-ExtraBold";
    --forum-last-post-column-font: "DxNeuegrid-ExtraBold";
    --forum-last-post-details-font: "DxNeuegrid-Light";
    --forum-nav-font: "DxNeuegrid-ExtraBold";
    --header-featured-user-font: "DxNeuegrid-SemiBold";
    --header-meta-font: "DxNeuegrid-SemiBold";
    --news-button-font: "DxNeuegrid-SemiBold";
    --page-title-font: "DxNeuegrid-ExtraBold";
    --post-author-name-font: "DxNeuegrid-ExtraBold";
    --post-form-heading-font: "DxNeuegrid-SemiBold";
    --post-h3-emphasis-font: "DxNeuegrid-ExtraBold";
    --post-h3-font: "DxNeuegrid-Medium";
    --post-rating-font: "DxNeuegrid-ExtraBold";
    --profile-details-font: "Inter", sans-serif;
    --profile-edit-link-font: "Inter", sans-serif;
    --profile-field-label-font: "Jost", sans-serif;
    --profile-fld6-font: "Jost", sans-serif;
    --profile-nav-font: "DxNeuegrid-ExtraBold";
    --quote-code-label-font: "DxNeuegrid-Medium";
    --reply-and-input-font: "Inter", sans-serif;
    --select-font: "Inter", sans-serif;
    --subforum-link-font: "Inter", sans-serif;
    --submit-input-font: "Inter", sans-serif;
    --tooltip-font: "Inter", sans-serif;
    --topic-divider-font: "DxNeuegrid-ExtraBold";
    --user-nav-font: "DxNeuegrid-Medium";
    --newsf: "NewBaskervilleOD";
}



/*************************************************************
A - SETUP
**************************************************************/

/* A2 Deal with browser defaults and wonkiness
-------------------------------------------------------------*/

/* BASE */
html, body {
    margin: 0; 
    padding: 0
}

* {
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
}

.punbb * {
    margin: 0
}

.punbb {
    font: normal 12px var(--forum-body-font), arial, helvetica, sans-serif;
}

.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {
    list-style: none;
}

.punbb img {
    border: none
}

.punbb .main table {
    table-layout: fixed;
    width: 100%;
}

#tooltip {
    position: absolute;
    z-index: 99999;
    max-width: 200px;
    -moz-border-radius: 4px;
    -khtml-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    text-align: center;
    padding: 4px 8px;
    text-transform: lowercase;
    font-family: var(--tooltip-font);
    font-size: 10px;
}

/* 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
  }


/* A4 Float clearing
-------------------------------------------------------------*/

/* 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;
  }



/* PAGE LAYOUT */

body {
    background: url(https://forumstatic.ru/files/001c/dd/01/67771.png) center top / cover no-repeat fixed;
    font-size: 100%;
}

#pun {
    width: 960px;
    padding: 0 20px;
    margin: 60px auto auto auto;
    border-radius: 0 0 40px 40px;
}

.punbb {
    float: left;
    width: 100%;
    height: auto;
}

#pun-title {
    width: 1000px;
    height: 450px;
    background: url(https://forumstatic.ru/files/001c/dd/01/44061.png);
    margin: -20px 0 0 -20px;
}

/* NAVIGATION */
#pun-navlinks, #pun-navlinks .container,
#pun-ulinks, #pun-ulinks .container {
    font-size: 14px;
    position: absolute;
    display: inline-flex;
    width: 960px;
    justify-content: center;
    margin: -220px 0 0 0;
    text-transform: uppercase;
    gap: 8px;
    font-family: var(--forum-nav-font);
}

#pun-ulinks, #pun-ulinks .container  {
    margin: -210px 0 0 0;
    font-size: 10px;
    text-transform: lowercase;
    font-family: var(--user-nav-font);
}

/* PUN STATUS — WELCOME LINE */
#pun-status, #pun-status .container {
    padding: 10px 0;
    text-transform: lowercase;
}

#pun-crumbs1 .crumbs, #pun-crumbs2 .crumbs {
    text-align: center;
    font-family: var(--breadcrumb-font);
    font-size: 14px;
    text-transform: lowercase;
}

#pun-crumbs2 .crumbs {
    padding: 20px 0;
}

/* PUN-STATS — STATISTIC & BANNERS*/
#pun-stats .container {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: start;
  gap: 14px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#pun-stats .container > .item5 {
    grid-column: 1 / -1;
    width: 960px;
    text-align: justify;
}

.banners {
    position: absolute;
    margin: 14px 0 0 30px;
    width: 900px;
    display: flex;
    gap: 8px;
    overflow: auto;
}

.banners a {
    opacity: 0.6;
    filter: grayscale(1);
}

.banners a:hover {
    opacity: 1;
    filter: none;
}

/* POST AUTHOR */
.post-author {
    float: left;
    width: 200px;
    font-size: 10px;
    margin: 0 0 50px 33px;
    font-family: verdana;
    position: relative;
    border-radius: 10px;
    text-align: center;
    z-index: 1;
}

.post-author ul::before {
    z-index: 5;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    inset: 0;
    border-radius: 8px;
}

.post-author ul {
    z-index: 10;
    position: relative;
    border-radius: 8px;
}

.post-author ul li:is(:not(.pa-fld4)):not(.pa-fld6) {
    position: relative;
    z-index: 10;
}

.pa-author {
    position: absolute !important;
    top: -12px;
    left: 30px;
    display: flex;
    align-items: center;
    text-transform: lowercase;
    justify-content: flex-start;
    text-align: left;
    font-family: var(--post-author-name-font);
    font-size: 16px;
    z-index: 0!important;
}

.pa-title {
    text-transform: lowercase;
    margin-top: 7px;
    padding: 8px!important;
    font-size: 10px;
    border-radius: 8px 8px 0 0;
}

.pstats {
    display: flex;
    gap: 2px;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    font: 400 9px "Jost";
    text-transform: lowercase;
    flex-wrap: nowrap;
    white-space: nowrap;
    word-spacing: -2px;
}

:is(.pa-fld1, :where(#viewprofile #pa-fld1)) {
    line-height: 110%;
    margin-top: 7px;
    text-transform: lowercase;
}

.char-name, .char-race {
    display: flex;
    padding: 0 16px 6px;
}

.char-name {
    text-transform: lowercase;
    font-family: var(--character-name-font);
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
    float: left;
}

.char-race {
    text-transform: lowercase;
    float: right;
    font-size: 8px;
    margin: 2px 0 0;
}

.char-divider {
    width: 180px;
    height: 1px;
    background: url(https://upforme.ru/uploads/001c/be/8c/2/684010.png);
    margin: 0 auto 6px auto;
    clear: both;
}

.char-desc {
    padding: 0px 10px 6px;
    text-align: justify;
    text-transform: lowercase;
    font-size: 8px;
}

:is(.pa-fld1, :where(#viewprofile #pa-fld1)) a {
    font-weight: 600;
}

:is(.pa-fld3, :where(#viewprofile #pa-fld3)) {
    width: max-content;
    border-radius: 10px;
    padding: 4px 10px 4px 7px;
    margin: 0 auto;
    font-size: 8px;
    font-weight: bold;
}

:is(.pa-fld3, :where(#viewprofile #pa-fld3))::before {
    content: "\f3c5";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 4px;
}

.post-author.bookmark-failed::before,
#viewprofile #profile-left:not(:has(#pa-fld4))::after {
    content: '';
    position: absolute;
    left: -28px;
    top: -12px;
    width: 65px;
    height: calc(100% + 50px);
    z-index: -1;
    border-radius: 8px;
    background-image: var(--bookmark-default);
    background-size: cover;
    background-position: center;
}

.post-author:not(:has(.pa-fld4)) > ul::after {
    content: "";
    pointer-events: none;
}

.post-author:not(:has(.pa-fld4)) > ul::after,
:is(.pa-fld4, :where(#viewprofile #pa-fld4)) {
    position: absolute;
    left: -28px;
    top: -20px;
    width: 65px;
    height: calc(100% + 58px);
    z-index: 0;
    border-radius: 8px;
    background-image: var(--bookmark-default);
    background-size: cover;
    background-position: center;
}


.post-author:not(:has(.pa-fld4)) > ul::after {
    left: -38px;
    height: calc(100% + var(--bookmark-extension, 40px));
}

:is(.pa-fld4, :where(#viewprofile #pa-fld4)) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

:is(.pa-fld4, :where(#viewprofile #pa-fld4)) .perspage1 {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

:is(.pa-fld4, :where(#viewprofile #pa-fld4)) .perspage1 a.modal-link {
    display: block;
    width: 100%;
    height: 100%;
}

:is(.pa-fld6, :where(#viewprofile #pa-fld6)) {
    align-content: center;
    position: absolute;
    left: 16px;
    bottom: -45px;
    height: 53px;
    width: 184px;
    box-sizing: border-box;
    padding: 11px 7px 5px 23px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 8px 8px;
    text-transform: lowercase;
    font: 500 11px / 11px var(--profile-fld6-font);
    text-align: center;
    z-index: -2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pa-posts, .pa-respect, :is(.pa-fld2, :where(#viewprofile #pa-fld2)), :is(.pa-fld5, :where(#viewprofile #pa-fld5)) {
    display: inline-flex;
    font-size: 10px;
    padding: 0 10px;
    margin: 10px 0 10px;
    width: auto;
    height: auto;
    line-height: 13px;
    text-transform: lowercase;
    flex-direction: column;
    align-items: center;
}

.pa-posts .fld-name, 
.pa-respect .fld-name, 
:is(.pa-fld2, :where(#viewprofile #pa-fld2)) .fld-name, 
:is(.pa-fld5, :where(#viewprofile #pa-fld5)) .fld-name,
#viewprofile #pa-fld2 > span:first-child,
#viewprofile #pa-fld5 > span:first-child {
    height: 16px;
}

.pa-posts .fld-name:before,
.pa-respect .fld-name a:before,
.gid3 .pa-respect .fld-name:before,
:is(.pa-fld2, :where(#viewprofile #pa-fld2)) .fld-name:before, 
:is(.pa-fld5, :where(#viewprofile #pa-fld5)) .fld-name:before,
#viewprofile #pa-fld2 > span:first-child:before,
#viewprofile #pa-fld5 > span:first-child:before {
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    display: block;
    width: 10px;
    height: 10px;
    font-size: 10px;
    text-align: center;
}

.pa-posts .fld-name:before {
    content: "\f7cc";
}


:is(.pa-fld5, :where(#viewprofile #pa-fld5)) .fld-name:before,
#viewprofile #pa-fld5 > span:first-child:before {
    content: "\f786";
}

.pa-respect .fld-name:not(:has(a))::before, 
.pa-respect .fld-name a::before, 
.post-author.gid3 .pa-respect .fld-name::before, 
.gid3 .pa-respect .fld-name:before {
    content: "\f7aa";
}

:is(.pa-fld2, :where(#viewprofile #pa-fld2)) .fld-name:before,
#viewprofile #pa-fld2 > span:first-child:before {
    content: "\f06b";
}

.status-offline::after,
.status-online::after {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 900 !important;
    font-size: 12px;
}

.status-offline::after,
.status-online::after {
    content: '\f79f';
}

.status-container,
.status-online,
.status-offline {
    position: absolute !important;
    top: -2px;
    left: 192px;
    width: 10px;
    height: 10px;
    z-index: 100;
    cursor: pointer;
}

/* POST RATING */
.post-body div.post-rating p {
    padding: 10px 0!important;
}

.post-rating p a, div.post-vote p>a {
    display: flex;
    gap: 6px;
    font-family: var(--post-rating-font);
    border-radius: 5px;
    padding: 4px 8px;
    height: 12px;
    align-items: baseline;
}

.post-rating p a::before, div.post-vote p>a::before {
    content: "\f79c";
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease-out;
    font-family: "Font Awesome 6 Pro";
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

div.post-vote p>a::before {
    content: "\f27a";
}

.post-rating p:hover a::before, div.post-vote p>a:hover::before {
    animation: swing 0.7s ease-in-out infinite;
}

@keyframes swing {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

div.post-vote {
    margin-bottom: 65px;
}

div.post-vote p>a {
    position: absolute;
    z-index: 200;
    width: 15px;
    display: block;
    background: var(--post-rating-bg);
    margin: 7px 0 0 -20px;
}


/* CATEGORIES */

#pun-index :is(
    #pun-category1, 
    #pun-category2, 
    #pun-category3,
    #pun-category4,
    #pun-category5,
    #pun-category6
) > .container {
    width: calc(100% - 250px) !important;
    margin: 0 0 0 250px !important;
}

#pun-index .category {
    position: relative;
    margin: 20px 0;
}

#pun-index .category::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    background: var(--category-picture) center / cover no-repeat;
    pointer-events: none;
    left: 0 !important;
    right: auto !important;
    width: 250px;
}

#pun-index #pun-category1 {
    --category-picture: url("https://forumstatic.ru/files/001c/dd/01/37344.png");
}

#pun-index #pun-category2 {
    --category-picture: url("https://forumstatic.ru/files/001c/dd/01/95255.png");
}

#pun-index #pun-category3 {
    --category-picture: url("https://forumstatic.ru/files/001c/dd/01/91697.png");
}

#pun-index #pun-category4 {
    --category-picture: url("https://forumstatic.ru/files/001c/dd/01/35428.png");
}

#pun-index #pun-category5 {
    --category-picture: url("https://forumstatic.ru/files/001c/dd/01/74418.png");
}

#pun-index #pun-category6 {
    --category-picture: url("https://forumstatic.ru/files/001c/dd/01/32705.png");
}

#pun-index .category tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:         "details"        "lastpost";
    align-items: center;
    min-height: 96px;
    padding: 15px 23px;
    background: transparent;
    height: auto !important;
    row-gap: 6px;
}

#pun-index .category .tcr {
    display: flex;
    font-size: 12px;
    gap: 4px;
    text-transform: uppercase;
    font-family: var(--forum-last-post-column-font);
    padding: 6px 0px;
    align-items: center;
}

#pun-index .user-avatar {
    filter: grayscale(1);
}

#pun-index .category .tcr .lastpost {
    font-family: var(--forum-last-post-details-font)
}

#pun-index .category .awrt-section-links {
    grid-area: links;
    width: auto;
    min-width: 0;
    padding: 0;
    padding-right: 10px;
    align-self: start;
}

#pun-index .category .podlink-container {
    padding: 8px 0;
}

#pun-index .category .podlink-container .podlink {
    padding: 2px 12px;
    border-radius: 5px;
    font-family: var(--subforum-link-font);
    letter-spacing: 0;
    text-transform: lowercase;
    font-size: 11px;
}

#pun-index .tcl h3 {
    font-size: 20px;
    font-family: var(--forum-h3-font);
    text-transform: uppercase;
}

#pun-index .tcr .lastpost-link::after {
    content: '#';
    padding: 0 0 0 6px;
}


#pun-index .category .tclcon {
    text-transform: none;
    font-size: 10px;
}

.punbb div.icon {
    position: absolute;
    height: 107px;
    margin: 0px 0 0 -24px;
    width: 12px;
}

div.inew {
    background: url(https://forumstatic.ru/files/001c/dd/01/56615.png);
}

/* PUN-PROFILE */
#pun-profile #profilenav ul {
    display: flex;
    gap: 10px;
    width: 960px;
    justify-content: center;
    flex-wrap: balance;
}

#pun-profile #profile {
    text-transform: lowercase;
}

#pun-profile #profile4 p {
    padding: 4px 0;
}


#pun-profile #profile fieldset:not(fieldset fieldset) {
    border: 1px dashed var(--character-name-link-hover);
    padding: 10px;
    border-radius: 5px;
    margin: 0 0 20px 0;
}

#pun-profile #profile form:not(#profile4) fieldset .fs-box{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#pun-profile #profile8 legend {
    background: var(--quote-code-box-bg);
    padding: 0 10px;
    border-radius: 5px;
    font-weight: bold;
}

#viewprofile table {
    width: 100%;
    border-collapse: collapse;
}

#viewprofile tbody {
    display: block;
    width: 100%;
}

#viewprofile tr {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

#viewprofile td {
    display: block;
    padding: 0;
    vertical-align: top;
}

#viewprofile #profile-right {
display: flex !important;
    flex-wrap: wrap;
    flex: 1;
    gap: 12px;
    width: auto !important;
    padding: 20px !important;
    box-sizing: border-box;
    justify-content: center;
    text-transform: lowercase;
    font: 11px var(--profile-details-font);
}

#viewprofile #profile-left {
    position: relative;
    anchor-name: --viewprofile-card;
    isolation: isolate;
    overflow: visible;
    display: flex;
    flex: 0 0 200px;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 50px 33px;
    box-sizing: border-box;
    text-align: center;
    text-transform: lowercase;
}

#viewprofile #profile-left::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 8px;
    pointer-events: none;
display: block !important
}

#viewprofile #profile-left #pa-fld4,
#viewprofile #profile-left:not(:has(#pa-fld4))::after {
    z-index: -2;
}

#viewprofile #profile-name {
    position: absolute;
    top: -12px;
    left: 44px;
    font: 16px var(--post-author-name-font);
}

#viewprofile #profile-name strong,
#viewprofile #profile-title strong {
    font-weight: inherit;
}

#viewprofile #profile-title {
    margin-top: 7px;
    padding: 8px;
    font-size: 10px;
}

#viewprofile #profile-left #pa-fld1 {
    width: 100%;
}

#viewprofile #profile-left #pa-fld1 > strong {
    display: block;
    font-weight: normal!important;
}

#viewprofile #profile-left .char-name,
#viewprofile #profile-left .char-race {
    padding-left: 16px;
}

#viewprofile #profile-left .char-desc {
    padding-left: 10px;
}

#viewprofile #profile-left #pa-fld3 {
    padding-left: 7px;
    margin: 0 auto;
}

#viewprofile .profile-stats {
    display: flex;
    justify-content: center;
}

#viewprofile .profile-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    margin: 10px 0;
    line-height: 13px;
}

#viewprofile .profile-stats > div > span {
    height: 16px;
}

#viewprofile .profile-stats > div > b {
    font-weight: inherit;
}

#viewprofile .profile-stats > div[aria-label^="Уважение:"]:not([aria-label^="Уважение: -"]) > b::before {
    content: "+";
}

#viewprofile .profile-stats > div > span::before {
    display: block;
    font: 900 10px / 1 "Font Awesome 6 Pro";
}

#viewprofile .profile-stats > div[aria-label^="Сообщения:"] > span::before {
    content: "\f7cc";
}

#viewprofile .profile-stats > div[aria-label^="посты:"] > span::before {
    content: "\f786";
}

#viewprofile .profile-stats > div[aria-label^="Уважение:"] {
    order: 1;
}

#viewprofile .profile-stats > div[aria-label^="Уважение:"] > span::before {
    content: "\f7aa";
}

#viewprofile .profile-stats > div[aria-label^="валюта:"] {
    order: 2;
}

#viewprofile .profile-stats > div[aria-label^="валюта:"] > span::before {
    content: "\f06b";
}

/* Аватар */
#viewprofile #pa-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

#viewprofile #pa-avatar img {
    display: block;
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    border-radius: 5px;
}

#viewprofile #profile-left .status-container {
    right: -2px;
    left: auto;
}

#profile8 .fs-box {
    display: flex;
    flex-direction: column;
}

#profile8 .infofield {
    order: -1;
    margin-bottom: -4px; 
    font: 500 14px 'Jost';
}


/* Все остальные блоки слева */
#viewprofile #profile-left > div:not(:where(#pa-fld1, #pa-fld2, #pa-fld3, #pa-fld4, #pa-fld5, #pa-fld6)),
#viewprofile #profile-left > dl:not(:where(#pa-fld1, #pa-fld2, #pa-fld3, #pa-fld4, #pa-fld5, #pa-fld6)),
#viewprofile #profile-left > ul:not(:where(#pa-fld1, #pa-fld2, #pa-fld3, #pa-fld4, #pa-fld5, #pa-fld6)),
#viewprofile #profile-left > p:not(:where(#pa-fld1, #pa-fld2, #pa-fld3, #pa-fld4, #pa-fld5, #pa-fld6)) {
    width: 100%;
    text-align: center;
}

/* Витрина в просмотре профиля */
#viewprofile tr:has(#pa-fld6, .pa-fld6) {
    isolation: isolate;
    position: relative;
    margin-bottom: 45px;
}

#viewprofile :where(#pa-fld1, #pa-fld2, #pa-fld3, #pa-fld4, #pa-fld5, #pa-fld6) > strong {
    font: inherit;
}

@supports (top: anchor(bottom)) {
    #viewprofile #profile-right :is(#pa-fld6, .pa-fld6) {
        position-anchor: --viewprofile-card;
        top: calc(anchor(bottom) - 8px);
        bottom: auto;
        left: calc(anchor(left) + 16px);
    }
}


/* Правая колонка */
#viewprofile #profile-right > li:not(:where(#pa-fld1, #pa-fld2, #pa-fld3, #pa-fld4, #pa-fld5, #pa-fld6, .pa-fld6)) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 180px;
    position: relative;
    padding: 10px !important;
    gap: 4px;
    background: var(--quote-code-box-bg);
    text-align: center;
}

#viewprofile #profile-right li:not(:where(#pa-fld1, #pa-fld2, #pa-fld3, #pa-fld4, #pa-fld5, #pa-fld6, .pa-fld6)) > span {
    font: 500 12px var(--profile-field-label-font);
    text-transform: lowercase;
    border-bottom: 1px dashed var(--character-name-link-hover);
}

#profile-right li:not(:where(#pa-fld1, #pa-fld2, #pa-fld3, #pa-fld4, #pa-fld5, #pa-fld6, .pa-fld6)) strong {
    padding: 10px 0 0 0 !important;
    font-weight: normal;
    font-size: 10px;
}

/* Перенос кнопки редактировать */
#viewprofile #profile-right #profile-edit-wrap {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

#viewprofile #profile-right #profile-edit-wrap a {
    display: inline-block;
    padding: 4px 10px 6px 10px;
    font: 600 11px / 1 var(--profile-edit-link-font);
    text-transform: lowercase;
    border-radius: 4px;
    transition: all .2s ease;
}

/* PUN-MESSAGES */
#pun-messages .fs-box {
    padding: 10px 0;
}

#profilenav {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: lowercase;
    padding: 20px 0;
    font-family: var(--profile-nav-font);
    gap: 10px;
}

#profilenav ul {
    display: flex;
    gap: 20px;
}

#profilenav li {
    padding: 4px 10px;
    border-radius: 5px;
}

#pun-messages p.areafield.required {
    padding: 10px 20px 10px 0;
}


/* VIEWFORUM */
:is(#pun-viewforum, #pun-searchtopics, #pun-modviewforum, #profile.messages-container) tbody tr:not(#form-buttons tr, .tr-divider),
:is(#pun-userlist) tbody tr {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 36px;
}

:is(#pun-viewforum, #pun-searchtopics, #pun-modviewforum,
    #profile.messages-container) tbody td {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

:is(#pun-viewforum, #pun-userlist, #pun-searchtopics, #pun-modviewforum, 
    #profile.messages-container) tbody td.tcl {
    flex: 1 1 auto;
}

:is(#pun-viewforum, #pun-userlist, #pun-searchtopics, #pun-modviewforum,
    #profile.messages-container) tbody td.tcl .intd {
    display: flex;
    gap: 8px;
    text-transform: lowercase;
}

:is(#profile.messages-container) tbody td.tcl .intd {
    align-items: center;
}

:is(#pun-viewforum, #pun-userlist, #pun-searchtopics, #pun-modviewforum,
    #profile.messages-container) tbody td.tcl .tclcon {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

:is(#pun-viewforum, #pun-searchtopics, #pun-modviewforum) tbody :is(.tc2, .tc3, .tcmod) {
    width: 60px;
    justify-content: center;
}

:is(#pun-viewforum, #pun-userlist, #pun-searchtopics, #pun-modviewforum, #profile.messages-container) tbody .tcr {
    flex-wrap: wrap;
    width: 230px;
    max-width: 240px;
    justify-content: flex-end;
    row-gap: 5px;
    text-transform: lowercase;
    text-align: right;
}

:is(#pun-viewforum, #pun-searchtopics, #pun-modviewforum, #profile.messages-container) tbody .tcr .byuser,
:is(#pun-viewforum, #pun-searchtopics, #pun-modviewforum,
    #profile.messages-container) tbody td.tcl .tclcon .byuser {
    flex: 1 1 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#pun-viewforum, #pun-searchtopics, #pun-modviewforum, #profile.messages-container) tbody .tcr .byuser::before,
:is(#pun-viewforum, #pun-searchtopics, #pun-modviewforum, #profile.messages-container) tbody td.tcl .tclcon .byuser::before {
    content: "автор:";
}

/* USERLIST, SEARCH */
.usertable {
    padding: 20px 0;
}

.inputfield > label ~ .input,
.selectfield > label ~ .input, 
.selectfield > label ~ select {
    display: block;
    margin-block-start: 6px;
}

.inputfield label,
.selectfield label {
    text-transform: lowercase;
    font-weight: 700;
}

.infofield {
    text-transform: lowercase;
}

.punbb .formal fieldset {
    padding: 0;
}

.fs-box.inline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
     padding: 10px 0;
}

.fs-box.inline > p {
    margin: 0;
    width: auto;
    min-width: 0;
}

.fs-box.inline > :is(.inputfield, .infofield) {
    grid-column: 1 / -1;
}

.fs-box.inline :is(input, select) {
    width: 100%;
    box-sizing: border-box;
}

#pun-userlist tbody td {
    padding: 8px 0;
}

#pun-userlist .main .tcl,
#pun-searchtopics .main .tcl,
#pun-modviewforum .main .tcl {
    width: 40%
  }

#pun-userlist .main .tc2,
#pun-searchtopics .main .tc2 {
    width: 20%;
}

/* SEARCHPOSTS */
#pun-searchposts.punbb .post h3 span {
    display: flex;
}

/* ICONS INSIDE FORUM */
#pun-viewforum table div.icon, #pun-messages table div.icon, #pun-searchtopics table div.icon, #pun-viewforum tr.inew div.icon, #pun-messages tr.inew div.icon, #pun-searchtopics tr.inew div.icon, #pun-viewforum tr.isticky div.icon, #pun-messages tr.isticky div.icon, #pun-searchtopics tr.isticky div.icon, #pun-viewforum tr.iclosed div.icon, #pun-messages tr.iclosed div.icon, #pun-searchtopics tr.iclosed div.icon {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    flex: 0 0 auto;
    background: none;
    box-shadow: none;
    border: none;
}

#pun-viewforum table div.icon::before, #pun-messages table div.icon::before, #pun-searchtopics table div.icon::before, #pun-viewforum tr.inew div.icon::before, #pun-messages tr.inew div.icon::before, #pun-searchtopics tr.inew div.icon::before, #pun-viewforum tr.isticky div.icon::before, #pun-messages tr.isticky div.icon::before, #pun-searchtopics tr.isticky div.icon::before, #pun-viewforum tr.iclosed div.icon::before, #pun-messages tr.iclosed div.icon::before, #pun-searchtopics tr.iclosed div.icon::before {
    content: "\f111";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 8px;
    line-height: 1;
    position: static;
    margin: 0;
}

/* A5.8 */
.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info,
.punbb .category, .punbb .post, .punbb .container {
  border-style: none;
  }


/*************************************************************
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;
  margin: 5px 0;
  }


/* 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;
  }


/* 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;
  }


/*************************************************************
C - MAIN CONTENT - SPECIFIC
**************************************************************/

/* C1 Form layout
-------------------------------------------------------------*/

/* 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.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.2 */
.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod {
  text-align: center;
  width: 10%;
  }


/* C2.6 */
#pun-debug table .tcl {
  width: 15%;
  white-space:normal;
  }

/* C2.7 */
#pun-debug .tcr {
  width: 90%;
  white-space: normal;
  }

/* 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.12 */
.punbb .main th {
  border-style: none none none none;
  border-width: 0 0 0 1px;
  padding: 0.4em 1em 0.4em 1em;
  }


 /* TOPICS */
.punbb .post-body {
    margin-left: 240px;
}

.punbb .post-content p {
    line-height: 150%;
    padding: 10px 0;
}

.punbb .post-links {
    margin-left: 18em;
    text-transform: lowercase;
}

.punbb .post-links ul {
    margin-left: -19em;
    text-align: right;
}

.punbb .post-links li {
    display: inline;
    padding-left: 1em;
}

.punbb .post-links a {
    padding: 2px 4px;
    border-radius: 5px;
}

.punbb .post h3 span {
    padding: 6px 10px 4px;
    margin: 24px 0 0 240px;
    display: inline-grid;
    grid-template-areas: "permalink controls number";
    grid-template-columns: max-content max-content 1fr;
    align-items: center;
    gap: 16px;
    width: 696px;
    font-family: var(--post-h3-font);
    text-transform: uppercase;
    font-weight: normal;
    border-radius: 5px;
}

.punbb .post h3 span .permalink {
    grid-area: permalink;
}

.punbb .post h3 span .size-controls {
  grid-area: controls;
    display: flex;
    gap: 4px;
}

.punbb .post h3 span strong {
    grid-area: number;
    text-align: right;
    font-family: var(--post-h3-emphasis-font);
    font-size: 16px;
    margin-top: -24px;
}

#pun-main h1 {
    text-align: center;
    font-size: 16px;
    font-family: var(--page-title-font);
    height: 20px;
    align-content: center;
    text-transform: lowercase;
    padding: 10px 0;
}

.punbb .linkst {
    position: relative;
    display: flex;
    width: 100%;
    text-transform: lowercase;
    justify-content: space-between;
    height: 20px;
    align-items: center;
    margin: -20px 0 0;
    text-align: right;
}

#pun-viewforum .linkst {
    margin: -30px 0 0;
    padding: 0 0 40px;
}

.multipage {
    margin-top: 3em;
}

.punbb .linksb {
    text-align: right;
    text-transform: lowercase;
}

.linksb .pagelink {
    float: left;
    width: 24em;
    text-align: left;
}

.linksb .postlink {
    float: right;
    width: 16em;
}

.subscribelink {
    clear: both;
    padding: 4px 0;
}

/* QUOTES CODES ETC */
.punbb .quote-box, .punbb .code-box {
    border-radius: 10px;
    padding: 10px 20px;
    margin: 0 0 10px 0;
}

.punbb .quote-box cite, .punbb .code-box strong.legend {
    display: block;
    font-style: normal;
    font-family: var(--quote-code-label-font);
    font-size: 14px;
    padding: 0 0 10px;
    text-transform: lowercase;
}

.punbb .post-content .scrollbox {
    width: 100%;
    overflow: auto;
    height: auto!important;
}

pre {
    font-family: Courier New;
    padding: 10px 0;
}

/* ANSWER FORM */
.punbb fieldset {
    padding: 0 20px 0 0;
    border: none;
}

.punbb .required label, .punbb .datafield span.input {
    font-weight: bold;
    text-transform: lowercase;
}

#post-preview {
    padding: 0;
}

#post-form h2 {
    text-align: center;
    text-transform: lowercase;
    font-family: var(--post-form-heading-font);
    font-size: 14px;
}

.rf-cc-wrap {
    position: relative;
    display: block;
}

#main-reply {
    width: calc(100% - 20px)!important;
}

#main-reply, input, #pun-profile #profile textarea {
    border-radius: 5px;
    border: none;
    padding: 10px;
    font-family: var(--reply-and-input-font);
}

input.button {
    text-transform: lowercase;
}

#main-reply:focus-visible, input:focus-visible, select:focus-visible {
    outline-offset: 2px;
    outline-style: dashed;
}

.punbb .longinput input {
    width: 100%;
    margin: 10px 0;
}

.rf-cc-badge {
    position: absolute;
    right: 8px;
    bottom: 4px;
    pointer-events: none;
    user-select: none;
    opacity: 0.45;
    z-index: 5;
}

#pun_wrap #post .container[id$="-area"], 
#video-area-tinp, 
#image-area-tinp, .pun-modal .modal-inner, 
.inner, #post-sig .container[id$="-area"] {
    max-height: 195px;
    overflow: auto;
    border-radius: 5px;
    padding: 8px;
}

#post-form .lucky-compose-tools {
    float: right;
}

#post-form .lucky-preview-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

#post-form .lucky-preview-toggle:before {
    content: "\f06e";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
}

#post-form .lucky-preview-toggle[aria-pressed="true"]::before {
    content: "\f070";
}

.formsubmit input {
    border: none;
    font-family: var(--submit-input-font);
    font-size: 10px;
    padding: 4px 10px;
    text-transform: lowercase;
    border-radius: 5px;
}


/* C3.12 */
.punbb .post-box {
  padding: 1em;
  }

/*C3.13 */
.punbb fieldset .post-box {
  margin-bottom: 0.8em
  }


/* C3.17 */
.pl-email, .pl-website {
  float: left;
  }

/* C3.18 */
.punbb .clearer {
  clear: both;
  height: 0;
  font-size: 0;
  }


/* MODMENU */
.punbb .modmenu .container {
    padding: 10px 0;
    text-transform: lowercase;
}

#topic-modmenu .container span:last-of-type {
    padding: 0 10px;
}

select {
    border-radius: 5px;
    border: none;
    font-size: 10px;
    text-transform: lowercase;
    padding: 4px;
    font-family: var(--select-font);
}

.punbb .modmenu strong, .punbb .modmenu a {
    height: 1.8em;
    line-height: 1.8em;
}

.punbb .modmenu .container strong {
  float: left;
}

/* C5 Message boxes
-------------------------------------------------------------*/

/* C5.1 */
.punbb .info .container {
  padding: 0.8em 1em
  }

/* C5.2 */
.punbb .info .container .backlink {
  padding-top: 0.8em;
  }


/* HIDDEN CONTENT */
#pun-title h1,
#pun-index .category > h2,
#pun-index .category tr :is(.tc2,.tc3),
.punbb thead,
.punbb th,
#pun-stats h2,
#pun-status .item4,
.sharelink,
:is(.pa-fld1, :where(#viewprofile #pa-fld1)) .fld-name,
:is(.pa-fld3, :where(#viewprofile #pa-fld3)) .fld-name,
:is(.pa-fld4, :where(#viewprofile #pa-fld4)) .fld-name,
.punbb fieldset legend:not(#profile8 *),
.inputfield.required.longinput .size-controls,
:is(#pun-viewforum, #pun-searchtopics, #pun-modviewforum, #profile.messages-container) thead,
:is(#pun-viewforum, #pun-searchtopics, #pun-userlist, #pun-modviewforum, #profile.messages-container) .user-avatar,
#profilenav h2,
#p1 > div > div.post-author.group1.no-avatar > ul > li.pa-reg,
#tooltip,
.pa-online, .pa-last-visit,
#viewprofile #pa-online,
#viewprofile #pa-last-visit,
#viewprofile :is(#pa-fld6, .pa-fld6) > :is(span, .fld-name),
#viewprofile :where(#pa-fld1, #pa-fld3, #pa-fld4) > span:first-child,
.punbb .datafield br {
    display: none;
}

#viewprofile li#pa-invites {
    display: none !important;
}

/* VISUALLY HIDDEN CONTENT */
#viewprofile .profile-stats > div > span {
    font-size: 0;
}

.acchide,
#pun-index #pun-main h1,
#pun-navlinks 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;
}

#pun-about, #html-footer {
    height: 0;
    width: 0;
}

.pa-posts .fld-name,
.pa-respect .fld-name,
:is(.pa-fld2, :where(#viewprofile #pa-fld2)) .fld-name,
:is(.pa-fld5, :where(#viewprofile #pa-fld5)) .fld-name,
#viewprofile #pa-fld2 > span:first-child,
#viewprofile #pa-fld5 > span:first-child {
    font-size: 0;
}

div.post-vote p>a {
    font-size: 0 !important;
}
