/*  ===================== СОДЕРЖАНИЕ ===================== 

I. РАЗНЫЕ ВАЖНЫЕ ИМПОРТЫ
II. ПЕРЕМЕННЫЕ
    II.a ОБЩЕЕ НА ДЕНЬ И НОЧЬ
    II.b СВЕТЛАЯ ТЕМА (ДЕНЬ)
    II.c ТЕМНАЯ ТЕМА (НОЧЬ)
III. МОБИЛЬНАЯ ВЕРСИЯ
*/

/* I. РАЗНЫЕ ВАЖНЫЕ ИМПОРТЫ
-----------------------------------------*/

/* style_cs.1772363530.css - здесь у нас десктопный стиль*/
@import url(style_cs.1772363530.css);

/* шрифт с иконками - нужны всегда */

@font-face {
  font-display: block;
  font-family: "bootstrap-icons";
  src:
    url("/files/001b/ef/4a/38279.woff2") format("woff2"),
    url("/files/001b/ef/4a/37401.woff") format("woff");
}

/* шрифты для дизайна */

/* Montserrat тут только для админки */

@font-face {
  font-family: "Montserrat";
  src: url("/files/001b/ef/4a/59400.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Glockenspiel";
  src: url("/files/001b/ef/4a/46706.ttf") format("truetype");
}

@font-face {
  font-family: "Eugusto";
  src: url("/files/001b/ef/4a/80740.otf") format("opentype");
}

/* II. ПЕРЕМЕННЫЕ
-----------------------------------------*/

/* II.a ОБЩЕЕ НА ДЕНЬ И НОЧЬ */

:root {
  /* отступ от контента */
  --general-padding: 35px;
  --hover-transition: all 200ms cubic-bezier(0.2, 0.2, 0.2, 1) 200ms;

  /* шрифты  */
  --icon-font: "bootstrap-icons";
  --regular-font: "Montserrat";
  --big-titles-font: "Glockenspiel";
  --small-titles-font: "Eugusto";

  --mem-font-v7: "Raleway";

  /* картиночки */
  --foot: url(https://forumstatic.ru/files/001b/ef/4a/25859.png);
  --def-avatar-bg: url(https://forumstatic.ru/files/001b/ef/4a/33160.png);
}

/* II.b СВЕТЛАЯ ТЕМА (ДЕНЬ) */

:root {
  /* ФОН И ТЕЛО ФОРУМА */

  --header: url(/files/001b/ef/4a/80359.png);
  --header-mobile: url(/files/001b/ef/4a/78229.png);
  --body: #88817d url(/files/001b/ef/4a/34715.jpg);
  --body-mobile:
    url(/files/001b/ef/4a/34715.jpg) top center,
    url(/files/001b/ef/4a/34715.jpg) bottom center, #88817d;
  --nav: url(/files/001b/ef/4a/34715.jpg) no-repeat center bottom;
  --guest: url(/files/001b/ef/4a/34715.jpg) no-repeat center bottom/cover;

  --pun-bg: #ffffff30;
  --pun-border: none;
  --pun-outline: #ffffff60 2px solid;
  --pun-box-shadow: 0 0 20px 2px inset #ffbaab6b;

  --punbb-bg: #f4f3f0;
  --punbb-index-bg: #e7e3e0;
  --punbb-border: none;
  --punbb-outline: 1px solid transparent;
  --punbb-box-shadow:
    0 0 0 7px #e7e3e0, 0 0 0 8px #d8d4d1, 0 0 0 1px inset #d8d4d1;
  --punbb-tr-border: 1px solid #80707014;

  /* ТЕКСТ */
  /* основной */
  --text-color: #5e5755;
  /*  */
  --colored-text: #afa09a;
  --light-text: #ffffff;
  --contrast-text: inherit;

  /* ссылки */
  --links-color: #ab776a;
  --links-hover: #717171;
  --ulinks-color: #a99b97;
  --ulinks-hover: #d89680;

  /* надписи с фоном: ссылки в подфоре, стата, тайтлы */
  --text-badge-bg: linear-gradient(90deg, #d5a797, #d5beb7), #d5a797;
  --text-badge-color: #f9f9f9;
  /* фон ссылок при наведении */
  --text-badge-hover-bg: linear-gradient(90deg, #827372, #d4cdc3);

  /* КАТЕГОРИИ И ПОДФОРУМЫ */
  --category-title: #d6cfcc;
  --category-title-shadow: #bf9b9075;
  --category-title-stroke: #e7e1e1;
  --category-bg: #efede8;
  --category-box-shadow: 0 0 11px inset #fff;

  --forum-bg: transparent;
  --forum-box-shadow: none;
  --forum-text: #9d8a87;
  --forum-border: 1px solid #e7e3e0;

  --topic-title: inherit;

  /* иконочное */
  --icon-bg: #d4cfcf;
  --icon-new-bg: #ea978e;
  --icon-box-shadow: #67658945;

  /* ПРОФИЛЬ */
  --profile-bg: #f3f2f1;
  --profile-border: #dbd0ce;
  --profile-color: #98908b;
  --profile-login: #897e7e;
  --profile-box-shadow: none;
  --profile-av-border: #ebebeb;
  --profile-av-shadow: 0 0 5px 0 #cbc2bd;
  --profile-av-bg: #e1ded8;
  --profile-after-box-shadow:
    0 0 5px 1px #c9c7db, 0 0 0 6px #efedf5, 0 0 0 7px #e1deeb;
  --profile-sub: #e1ded8;
  --profile-sub-bord: 1px solid #e8cbc8;

  /* иконка и анкета */
  --profile-anketa: #978d8c;
  --profile-anketa-bg: #e5dedd;
  --profile-anketa-border: 1px solid #d5c7c6;
  --profile-anketa-box-shadow: 0 0 4px inset white;
  --profile-icon-bg: #efedf5;
  --profile-links: #a8a4bf;

  /* ТЕМЫ, ШАБЛОНЫ, ЦИТАТЫ И ДР. КОНТЕЙНЕРЫ */

  /* всякие большие контейнеры текста, например цитаты, код, всякие модалки и тд */
  --container-bg: #efede8;
  --container-border: 1px solid #fffcfb;
  /* тут окантовка, сделанная на box-shadow - для тем */
  --container-stroke: 0 0 0 1px #efede8, 0 0 2px #dfd6d3 inset;
  /* а здесь просто тень для модальных окошек */
  --container-shadow: 0 0 8px 0px #c4ada5;
  --container-text: #665249;
  --container-headline: #d5a99a;

  /* какие-нибудь мини-элементы внутри контейнера */
  --container-element-bg: #fdf8f6;
  --container-element-color: #392d28;
  --container-element-box-shadow: 0 0 0px 1px #ddd4d0, inset 0 0 7px #e0d6d2;

  /* полупрозрачные */
  --container-transparent: #4b3d3045;
  --container-transparent-text: #f3f2fa;
  --container-transparent-box-shadow: #fff;

  /* ЭЛЕМЕНТЫ УПРАВЛЕНИЯ */

  /* поля ввода, форма ответа */
  --input-bg: #f2eeed;
  --input-border: 1px solid #ccc0bb;
  --input-text: #90847f;

  /* кнопки */

  --button-bg: #afa09a;
  --button-hover: #e69989;
  --button-border: #cbc8c6;
  --button-text: white;

  /* кнопки, стрелки и т.п. */
  --controls-1: #cbc8c6;
  --controls-2: #ffffff;
  --controls-3: #e1ded8;
  --controls-contrast: #897878;
  --controls-colorful: #efc9c1;

  /* прокрутка */
  --scrollbar-bg: #dbd9d1;
  --scrollbar-color: #a0928c;
  --scrollbar-border: 0.5px solid #98918f;

  /* ОСОБОЕ */

  /* большая обводка для гостевой и принятия и т.п. */
  --big-box-shadow:
    inset 0 0 12px 2px #afa09a, 0 0 0px 2px #dfd6d3, 0 0 9px 3px #f4f3f0,
    0 0 0px 12px #afa09a;

  /* табличное */
  --table-container: #6a43432e;
  --table-container-text: #faf2f2;
  --table-container-highlight: #fbcfc3;
  --table-container-border: #ffeee800;
  --table-container-box-shadow: #e6dcdc;

  --table-popup: #95766b90;
  --table-popup-text: #fff;

  --table-links-bg: linear-gradient(90deg, #d5a797, #d5beb7);
  --table-links-hover: #d5a797;
  --table-links-color: #ffffff;
  --table-links-border: #e7e3e09c;

  /* цвет ошибок вприложениях */
  --apps-error: #a11515;
}

/* II.c ТЕМНАЯ ТЕМА (НОЧЬ) */

:root .night {
  /* ФОН И ТЕЛО ФОРУМА */

  --header: url(/files/001b/ef/4a/14130.png);
  --header-mobile: url(/files/001b/ef/4a/39664.png);
  --body: #4a4442 url(/files/001b/ef/4a/49035.jpg);
  --body-mobile:
    url(/files/001b/ef/4a/49035.jpg) top center,
    url(/files/001b/ef/4a/49035.jpg) bottom center, #4a4442;
  --nav: url(/files/001b/ef/4a/49035.jpg) no-repeat center bottom;
  --guest: url(/files/001b/ef/4a/49035.jpg) no-repeat center bottom/cover;

  --pun-bg: #ffffff10;
  --pun-border: none;
  --pun-outline: #ffffff30 2px solid;
  --pun-box-shadow: 0 0 20px 2px inset #ff7b6050;

  --punbb-bg: #696261;
  --punbb-index-bg: #696261;
  --punbb-border: none;
  --punbb-outline: 1px solid #827573;
  --punbb-box-shadow:
    0 0 6px 5px #615d5c, 0 0 0 7px #756d6b, 0 0 0 8px #8a7d7a,
    0 0 8px 3px inset #6d696960;
  --punbb-tr-border: 1px solid #ffc4c412;

  /* ТЕКСТ */

  /* основной */
  --text-color: #dcd6d5;

  /*  */
  --colored-text: #ada5a3;
  --light-text: #fff;
  --contrast-text: inherit;

  /* ссылки */
  --links-color: #cea79d;
  --links-hover: #c4b6b2;
  --ulinks-color: #c4b6b2;
  --ulinks-hover: #c39f96;

  /* надписи с фоном: ссылки в подфоре, стата, тайтлы */
  --text-badge-bg: linear-gradient(90deg, #c17a70, #cea69b), #c17a70;
  --text-badge-color: #fff;
  /* фон ссылок при наведении */
  --text-badge-hover-bg: linear-gradient(90deg, #837c76, #aea79a);

  /* КАТЕГОРИИ И ПОДФОРУМЫ */

  --category-title: #554c4bd1;
  --category-title-shadow: #837a77;
  --category-title-stroke: #564949;
  --category-bg: #746c6c;
  --category-box-shadow: 0 0 11px inset #897d7d;

  --forum-bg: transparent;
  --forum-box-shadow: none;
  --forum-text: #dcd6d5;
  --forum-border: 1px solid #867a77;

  --topic-title: inherit;

  /* иконочное */
  --icon-bg: #968686;
  --icon-new-bg: #ea978e;
  --icon-box-shadow: #24213980;

  /* ПРОФИЛЬ */

  --profile-bg: #5e5957;
  --profile-border: #6c6361;
  --profile-color: #d6cfce;
  --profile-box-shadow: none;
  --profile-av-border: #827d7b;
  --profile-av-shadow: 0 0 5px #5a5250;
  --profile-av-bg: #686361;
  --profile-after-box-shadow:
    0 0 5px 1px #7570a8, 0 0 0 6px #9993b3, 0 0 0 7px #8a83b0;
  --profile-sub: #4d4343;
  --profile-sub-bord: 1px solid #8f7c79;

  /* иконка и анкета */
  --profile-anketa: #c9bdbc;
  --profile-anketa-bg: #595453;
  --profile-anketa-border: 1px solid #595453;
  --profile-anketa-box-shadow: 0 0 4px inset #8a817d;
  --profile-icon-bg: #908aab;
  --profile-links: #b0a7d8;
  --profile-login: #ebebeb;

  /* ТЕМЫ, ШАБЛОНЫ, ЦИТАТЫ И ДР. КОНТЕЙНЕРЫ */

  /* всякие большие контейнеры текста, например цитаты, код, всякие модалки и тд */
  --container-bg: #5a5453;
  --container-border: 1px solid #786a61d9;
  /* тут окантовка, сделанная на box-shadow - для тем */
  --container-stroke: 0 0 0 1px #797674, 0 0 2px #dda597 inset;
  /* а здесь просто тень для модальных окошек */
  --container-shadow: 0 0 8px 0px #3f3733ba;
  --container-text: #eddad5;
  --container-headline: #cda398;

  /* какие-нибудь мини-элементы внутри контейнера */
  --container-element-bg: #696261;
  --container-element-box-shadow: 0 0 0px 1px #91807d, inset 0 0 7px #94786f;
  --container-element-color: #c9bebd;

  /* полупрозрачные */
  --container-transparent: #2f292821;
  --container-transparent-text: #d7c6c3;
  --container-transparent-box-shadow: #9a8582;

  /* ЭЛЕМЕНТЫ УПРАВЛЕНИЯ */

  /* поля ввода, форма ответа */
  --input-bg: #575252;
  --input-border: 1px solid #7a706e;
  --input-text: #c1b6b4;

  /* кнопки */

  --button-bg: #5d5554;
  --button-hover: #624d4a;
  --button-border: #786a68;
  --button-text: #cdc2c0;

  /* кнопки, стрелки и т.п. */
  --controls-1: #928584;
  --controls-2: #cdc2c0;
  --controls-3: #5d5554;
  --controls-contrast: #cdc2c0;
  --controls-colorful: #aa7873;

  /* прокрутка */
  --scrollbar-bg: #8a6a5f;
  --scrollbar-color: #524743;
  --scrollbar-border: 1px solid #8a6a5f;

  /* ОСОБОЕ */

  /* большая обводка для гостевой и принятия и т.п. */
  --big-box-shadow:
    inset 0 0 12px 2px #494341, 0 0 0px 2px #a1847c, 0 0 9px 3px #817777,
    0 0 0px 12px #393434;

  /* табличное */
  --table-container: #f8c5b529;
  --table-container-text: #faf2f2;
  --table-container-highlight: #fbcfc3;
  --table-container-border: #f8c5b540;
  --table-container-box-shadow: #ffffff40;

  --table-popup: #3e302c90;
  --table-popup-text: #faf2f2;

  --table-links-bg: linear-gradient(90deg, #c49889, #d9c2ba);
  --table-links-hover: linear-gradient(90deg, #524743, #aea09b);
  --table-links-color: #fff;
  --table-links-border: #ffdcd16b;

  /* цвет ошибок вприложениях */
  --apps-error: #ff8181;
}

/* III. МОБИЛЬНАЯ ВЕРСИЯ
-----------------------------------------*/

@media screen and (max-width: 540px) {
  body {
    background: var(--body-mobile);
    background-size: auto;
  }

  #pun {
    width: 100%;
    padding: 25px 0;
    margin-bottom: 226px;
  }

  #pun_wrap {
    padding: 0 8px;
  }

  #pun-index #pun-main {
    padding: 0 5px;
  }

  #pun-main {
    padding: 0 15px;
  }

  /* шапка */

  #pun-title table {
    width: calc(100% + 16px) !important;
    margin: 0 0 0 -8px;
    border-radius: 0;
    background-size: cover;
    z-index: -1;
    background: var(--header-mobile) no-repeat top center;
  }

  #pun-title table::after {
    right: -75px;
    top: -16px;
    transform: scale(0.5);
  }

  .mem-title {
    top: -157px;
    left: 159px;
    transform: scale(0.5);
  }

  /* подфорумы на главной */

  .category:first-of-type {
    margin-top: 0;
  }

  #pun-index .category h2 span,
  #pun-stats h2::after {
    font-size: 20px;
  }

  #pun-index .hasicon tr {
    margin: 20px 0;
    display: grid;
    grid-template-areas:
      "tcl tcl tcl tcl"
      "tc2 tc3 tcr tcr";
    grid-template-columns: 10% 10% 40% 40%;
    align-items: start;
    padding: 0;
    justify-content: space-between;
  }

  #pun-index .tcl {
    width: unset;
    grid-area: tcl;
  }

  .podf3 {
    max-height: 55px;
    overflow: auto;
  }

  .podf3::-webkit-scrollbar {
    width: 1px;
  }

  #pun-index .main .tcr {
    width: unset;
    grid-area: tcr;
    grid-template-areas:
      "topic icon"
      "author icon";
    grid-template-columns: auto 38px;
    justify-items: end;
  }

  #pun-index .tcr a.lastpost-link {
    width: calc(100% - 25px);
    font-size: 7px;
    margin: 0;
    text-align: right;
  }

  #pun-index .tcr .user-avatar .avatar-image,
  #pun-index .user-avatar {
    height: 25px;
    width: 25px;
  }

  #pun-index .main .tc2 {
    grid-area: tc2;
    width: unset;
    justify-self: start;
    transform: scale(0.8);
  }

  #pun-index .main .tc3 {
    grid-area: tc3;
    width: unset;
    justify-self: start;
    transform: scale(0.8);
  }

  #pun-index table Div.icon {
    margin-left: -43px;
  }

  #pun-index table Div.icon::before,
  #pun-index TR.inew Div.icon::before {
    margin: 0;
  }

  #pun-index .tcr .lastpost {
    font-size: 0.8cqh;
    margin: 0;
    text-align: right;
  }

  #pun-index .hasicon tr#forum_f19 {
    margin-bottom: unset;
  }

  #pun-index .hasicon tr#forum_f19 .tcl {
    height: 105px;
  }

  .banermem {
    width: 100%;
    right: initial;
    bottom: -185px;
  }

  #pun-about {
    width: 100%;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 36% top;
  }

  #pun-about:before {
    left: 43%;
  }

  #memors {
    display: none;
  }

  /* .js-random-block, */
  #randPost {
    left: 3%;
    right: 3%;
    bottom: -125px;
    width: auto;
  }

  .texpostm {
    width: auto;
  }

  .tams {
    display: none;
  }

  .location,
  .lokk,
  .telegram,
  .table_mem,
  #pun #BookmCntToggle.default-style {
    display: none;
  }

  .tblplaski_wrapper {
    top: -50px;
    max-width: unset;
    width: 100%;
    height: 53px;
    left: 0;
    box-sizing: border-box;
    border-radius: 0;
    bottom: 0;
    padding: 5px 0 5px 4px;
  }

  .tblplaski {
    height: 100%;
    box-shadow: unset;
    width: auto;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: nowrap;
    padding-right: 3px;
    justify-content: center;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
  }

  .ob {
    box-shadow: unset;
    background: #00000030;
    font-size: 1.2cqh;
    line-height: 1.2cqh;
    padding: 0.4cqh 1cqh;
    width: unset;
    white-space: nowrap;
    margin: unset;
  }

  .table-news-link {
    font-size: 6px;
    background-clip: padding-box;
  }

  .table-news_wrapper {
    top: -208px;
    left: 0;
    width: 153px;
  }

  .table-news {
    height: 106px;
    gap: 2px;
  }

  /* приветствие */

  #pun-status {
    top: -234px;
    left: 0;
    right: 0;
    box-shadow: none;
    background: none;
    width: 100%;
    text-align: center;
  }

  #pun-status .status_userava {
    display: none;
  }

  #pun-status span.item2 {
    display: none;
  }

  /* навигация */

  #pun-navlinks .container {
    width: 100%;
    right: 0;
    left: 0;
    justify-content: space-evenly;
    gap: 0;
  }

  #navadmin {
    position: relative;
    top: unset;
    left: unset;
  }

  #pun-ulinks .container {
    width: 90%;
    margin: 0 auto 0;
    font-size: 0.55em;
  }

  #pun-ulinks li {
    white-space: nowrap;
    line-height: 2em;
    display: inline-flex;
    align-items: center;
  }

  #pun-navlinks li {
    margin: 0;
  }

  #pun-navlinks li a {
    font-size: 0;
    padding: 0;
  }

  #pun-navlinks li a:before {
    font-family: var(--icon-font);
    font-size: 19px;
    width: auto;
    padding-left: 0px;
    text-align: center;
  }

  #pun-navlinks li#navindex a:before {
    content: "\F424";
  }

  #pun-navlinks li#navuserlist a:before {
    content: "\F4CF";
  }

  #pun-navlinks li#navsearch a:before {
    content: "\F52A";
  }

  #pun-navlinks li#navprofile a:before {
    content: "\F4DA";
  }

  #pun-navlinks li#navpm a:before {
    content: "\F32C";
  }

  #pun-navlinks li#navlogout a:before {
    content: "\F1C3";
  }

  #pun-navlinks li#navlogin a:before {
    content: "\F1BE";
  }

  #pun-navlinks li#navregister a:before {
    content: "\F4F9";
  }

  #pun-navlinks li#navpiar a:before {
    content: "\F189";
  }

  #pun-navlinks li#navsettings a:before {
    content: "\F789";
  }

  #navlogout {
    position: relative;
    right: 0;
    top: 0;
  }

  #nav-mobile-menu {
    display: block;
  }

  #pun-stats li.item1,
  #pun-stats li.item2,
  #pun-stats li.item3,
  #pun-stats li.item4 {
    width: 100%;
    max-width: 100%;
    margin: 5px;
  }

  #loginPopup {
    left: unset;
    right: 0;
  }

  .tblnav1 {
    top: -225px;
    position: absolute;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30%;
    left: 17%;
    padding: 5px;
    display: none;
    z-index: 100;
    border-radius: 5px;
  }

  .tblnav1 a {
    display: block;
    width: 100%;
    text-align: left;
    z-index: 2;
    padding: 2px 6px;
    position: relative;
    border-radius: 10px;
    margin: 5px 0;
    box-sizing: border-box;
    opacity: 1;
  }

  .tblnav1 a:after {
    display: none;
  }

  .tblnav1:hover a {
    display: block;
  }

  #pun-navlinks li.nav-mobile-menu {
    margin-top: -7px;
    text-align: center;
  }

  #pun-navlinks li.nav-mobile-menu a {
    display: block;
    font-size: 20px;
    width: 28px;
  }

  #pun-navlinks li.nav-mobile-menu:hover .tblnav1,
  .tblnav1:hover {
    display: flex;
  }

  .nav-mobile-menu a i::before {
    font-family: var(--icon-font);
    content: "\F479";
    font-style: normal;
  }

  /* подфорум внутри */

  #pun-main .forum {
    width: calc(100% + 32px);
    margin-left: -16px;
  }

  #pun-main .forum thead {
    display: none;
  }

  #pun-main .forum .container tr {
    display: grid;
    grid-template-areas:
      "tcl tcl"
      "tcr tcr"
      "tc2 tc3";
    padding: 15px 20px;
  }

  #pun-main .forum td {
    padding: 0 !important;
  }

  #pun-main .forum td.tcl {
    grid-area: tcl;
    width: 100%;
  }

  #pun-main .forum td.tcr {
    grid-area: tcr;
    width: 100%;
    grid-template-columns: 22px 3fr 1fr;
    grid-template-rows: unset;
    gap: 0.5em;
    align-items: center;
    margin: 15px 0 10px;
  }

  #pun-main .forum td.tc2 {
    grid-area: tc2;
    text-align: left;
    width: auto;
  }

  #pun-main .forum td.tc3 {
    grid-area: tc3;
    width: 100%;
    text-align: right;
  }

  #pun-main .forum .tclcon {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "topic topic"
      "first second ";
  }

  #pun-main .forum .tclcon strong {
    display: grid;
  }

  #pun-main .forum .tclcon::before {
    width: 10px;
    height: 10px;
    margin-top: 3px;
  }

  #pun-main .forum .tclcon .byuser {
    bottom: -7px;
  }

  #pun-viewforum .tcr .user-avatar,
  #pun-searchtopics .tcr .user-avatar,
  #pun-viewforum .tcr .user-avatar .avatar-image,
  #pun-searchtopics .tcr .user-avatar .avatar-image {
    width: 20px;
    height: 20px;
  }

  #pun-userlist .usertable .isonline {
    margin: 0 -1px 0 30px;
  }

  #pun-messages .user-avatar .isonline {
    margin: 3px 0 0 -4px;
  }

  #pun-main .forum .byuser {
    width: unset;
    display: flex;
    align-items: center;
  }

  #pun-main .forum .tcr .user-avatar {
    grid-column: 1;
    margin: 0;
  }

  #pun-main .forum td.tcr > a {
    grid-column: 3;
    text-align: right;
    grid-row: 1;
  }

  #pun-main .forum .tcr .byuser {
    grid-column: 2;
  }

  /*банк*/
  .tembank tem1 {
    margin-left: -4.5% !important;
  }

  bank1 pl,
  bank2 mn {
    width: 72%;
  }

  bank2 mn sm,
  bank1 pl sm {
    width: 49%;
    margin: -13px 0 0 78%;
    height: 30px;
    padding-right: 10px;
  }

  .bank-right {
    margin: 0 auto;
  }

  /* пост в теме */

  .post > .container {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .post .container .post-links {
    grid-column: unset;
    grid-row: unset;
  }

  .post .post-box .bookmark {
    right: -16px;
  }

  /*профиль*/
  .post .post-author {
    width: 100%;
    margin: 30px auto 20px;
  }

  .post .post-author ul {
    display: grid;
    gap: 5px;
    padding: 15px 10px;
    grid-template-columns: 1fr 2fr 2fr 2fr 2fr 1fr;
    width: 100%;
    box-sizing: border-box;
  }

  .post .pa-author {
    grid-column: 1 / 7;
    grid-row: 1;
    padding-bottom: 0;
    margin-top: 0;
  }

  .pa-author #tuser,
  .blockButton:before {
    font-size: 7px !important;
    width: 7px !important;
    height: 7px !important;
    line-height: 7px !important;
  }

  .pa-author #tuser {
    left: 0;
    top: -23px;
  }

  .blockButton {
    left: 26px;
    top: 8px !important;
  }

  .post .post-author:not(:has(.pa-fld5)) {
    margin-top: 20px;
  }

  .post .toBlock:not(:has(.pa-fld5)) .blockButton {
    top: 3px !important;
  }

  .post .post-author ul:not(:has(.pa-fld5)) #tuser {
    top: -18px !important;
  }

  /* профиль гостя */
  .post[data-group-id="2"] .post-author.no-avatar ul {
    grid-template-columns: auto;
  }

  .post[data-group-id="2"] .post-author.no-avatar ul li {
    grid-column: unset !important;
  }

  .post .pa-title {
    background: unset;
    border: none;
    width: 90%;
    padding: 0;
    grid-column: 1 / 7;
    grid-row: 2;
    margin: 5px auto;
  }

  .post .pa-avatar {
    max-width: 90px;
    max-height: 90px;
    padding: 3px;
    grid-row: 3 / 5;
    grid-column: 1 / 3;
    width: auto;
    border-radius: 5px;
    margin: 0 auto;
  }

  .pa-respect,
  .pa-posts,
  .pa-fld2,
  .pa-fld3 {
    margin-top: 10px;
  }

  .post .pa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .post .pa-fld5 {
    margin-left: -17px;
    background-size: cover;
  }

  .post .pa-fld5:has(.fon_icon) a {
    margin: -18px 0 0 -15px;
  }

  .post .pa-fld4,
  .post .pa-fld4 .plashka {
    width: 100%;
  }

  .pa-fld5,
  .fon_icon img,
  .fon_test img {
    object-fit: cover;
  }

  /* заполненный профиль */

  .post .pa-fld1 {
    grid-row: 3 / 5;
    grid-column: 3 / 7;
    margin: 0 -10px 0 10px;
  }

  .post .pa-fld1 .lz {
    margin: 0;
  }

  .post .post-author li:nth-of-type(6).pa-posts {
    grid-column: 2;
    grid-row: 5;
  }

  .post .post-author li:nth-of-type(7).pa-respect {
    grid-column: 3;
    grid-row: 5;
  }

  .post .post-author li:nth-of-type(8).pa-fld3 {
    grid-column: 4;
    grid-row: 5;
  }

  .post .post-author li:nth-of-type(9).pa-fld2 {
    grid-column: 5;
    grid-row: 5;
  }

  /* смена - без лз, но с иконками */

  .post .post-author li:nth-of-type(5).pa-posts {
    grid-column: 4;
    grid-row: 3;
  }

  .post .post-author li:nth-of-type(6).pa-respect {
    grid-column: 5;
    grid-row: 3;
  }

  .post .post-author li:nth-of-type(7).pa-fld3 {
    grid-column: 4;
    grid-row: 4;
  }

  .post .post-author li:nth-of-type(8).pa-fld2 {
    grid-column: 5;
    grid-row: 4;
  }

  /* для профиля без лз но с постами и звездами - сменщики */
  .post .post-author:not(:has(.pa-fld1)):has(.pa-fld3) .pa-avatar {
    grid-column: 1 / 4;
  }

  /* вообще пустой профиль */

  .post .post-author:not(:has(.pa-fld1)):not(:has(.pa-fld3)) .pa-posts {
    grid-column: 4;
    grid-row: 3 / 5;
  }

  .post .post-author:not(:has(.pa-fld1)):not(:has(.pa-fld3)) .pa-respect {
    grid-column: 5;
    grid-row: 3 / 5;
  }

  .post .post-author:not(:has(.pa-fld1)):not(:has(.pa-fld3)) .pa-avatar {
    grid-column: 2 / 4;
  }

  .pa-ip {
    bottom: -18px;
    left: 40%;
  }

  /* в поиске */

  #pun-searchposts .post-body {
    margin: 0;
  }

  #pun-searchposts .post-author {
    margin-bottom: 0;
  }

  #pun-searchposts #pun-main .topic .post .post-author ul {
    margin-top: 6px;
    min-height: unset;
  }

  .indOnline,
  .indOffline {
    left: auto !important;
    right: 10px !important;
  }

  /*биржа*/
  .proff_tabs > label {
    width: 38%;
  }

  #proff1,
  #proff2,
  #proff3,
  #proff4,
  #proff5,
  #proff6,
  #proff7,
  #proff8 {
    margin: -394px 0 0 44%;
    width: 44%;
  }

  /*биржа*/

  /*гостевая*/
  .gost {
    max-height: none;
    aspect-ratio: auto;
    grid-template:
      "welcome" auto
      "title" auto
      "descr" auto
      "right" auto
      "prid" auto
      "face1" auto
      "cost" auto
      "face2" auto
      "gost_claim" auto
      "nav" auto;
    padding-bottom: 15px;
  }

  .gost_welcome {
    margin-top: -23px;
    white-space: nowrap;
    width: auto;
    overflow: hidden;
    font-size: 0.8em;
  }

  .gost_title {
    grid-area: title;
    margin: 0 auto;
    text-align: center;
  }

  .gost_type {
    margin: 5px auto;
    text-align: center;
  }

  .gost_descr {
    text-align: center;
    width: 100%;
  }

  .gost_prid,
  .gost_cost {
    margin: 0;
  }

  .gost face1,
  .gost face2 {
    margin: 0;
    width: 100%;
  }

  .gost_title #first {
    font-size: clamp(30px, 8vw, 50px);
  }

  .gost_title #second {
    font-size: clamp(25px, 7vw, 41px);
    margin-top: -20px;
  }

  .gost_claim {
    text-align: center;
  }

  #appearance-input {
    width: 100%;
    font-size: 16px;
    margin-top: 5px;
  }

  /*гостевая конец*/

  /*аллея звезд*/

  .stat {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 20px;
  }

  .stat stat1 {
    grid-column: 1 / 3;
    font-size: 1.2rem;
    padding: 5px;
    width: calc(100% + 40px);
    box-sizing: border-box;
    margin: -10px 0 0 -20px;
  }

  .stat stat4,
  .stat stat5 {
    grid-column: 1 / 3;
    justify-content: center;
  }

  .stat stat4 {
    grid-row: 2;
  }

  .stat stat5 {
    grid-row: 3;
  }

  .stat stat4 a,
  .stat stat5 a {
    width: 40px;
    height: 40px;
  }

  .stat stat7 {
    grid-column: 1;
    grid-row: 4;
  }

  .stat stat6 {
    grid-column: 2;
    grid-row: 4;
    display: unset;
    margin-top: 24px;
  }

  .stat stat8 {
    grid-column: 1;
    grid-row: 5;
    align-items: end;
  }

  .stat stat8 a {
    text-align: right;
  }

  .stat stat10 {
    grid-column: 2;
    grid-row: 5;
    align-items: end;
  }

  .stat stat9 {
    grid-column: 1;
    grid-row: 6;
    height: 40px;
  }

  .stat stat11 {
    grid-column: 2;
    grid-row: 6;
    height: 40px;
  }

  .stat stat3 {
    grid-column: 1 / 3;
    grid-row: 7;
    padding: 0px;
    padding-bottom: 10px;
    margin: 5px 0 -9px -19px;
    border-radius: 0 0 28px 28px;
    width: calc(100% + 38px);
    height: unset;
  }

  .stat stat3:before {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1;
  }

  .stat stat3:after {
    font-size: 32px;
    order: 1;
    line-height: 1;
    margin-top: -17px;
  }

  .stat stat6:before,
  .stat stat4:before,
  .stat stat5:before,
  .stat stat8:after,
  .stat stat7:before,
  .stat stat10:before,
  .stat stat6:after {
    font-size: 8px;
    padding: 2px 4px;
  }

  .stat stat6:before {
    height: 10px;
    margin-top: -28px;
  }

  .stat stat10 a::after,
  .stat stat8 a:before {
    line-height: 1;
    font-size: 8px;
  }

  .stat stat6,
  .stat stat7 a:after {
    height: 27px;
  }

  .stat stat6,
  .stat stat7:after,
  .stat stat9,
  .stat stat11 {
    font-size: clamp(8px, 3vw, 9px);
    padding: 4px 5px;
  }

  /*аллея звезд конец */

  #form-buttons tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .button.hotkeys_help {
    display: none;
    justify-content: center;
  }

  #symbol-counter {
    border-bottom: 1px solid #00000020 !important;
    width: 100% !important;
    height: unset !important;
    margin-bottom: 5px;
  }

  #pun-messages #form-buttons td:not(#symbol-counter) {
    margin-top: -5px !important;
  }

  #symbol-counter span {
    display: unset;
    font-size: unset;
  }

  #pun-messages #form-buttons table {
    width: 100%;
    padding: 0;
  }

  #tags .container {
    top: 30% !important;
  }

  #tags .container#spoiler-area {
    right: 0;
    left: 0;
    width: unset;
  }

  #tags .container#video-area,
  #tags .container#image-area {
    left: 0;
    right: 0;
    width: unset;
  }

  #keyboard-span br {
    display: none;
  }

  .hvStickerPackModalContainer {
    top: 110px;
  }

  p.formsubmit {
    text-align: center;
  }

  .memneed {
    grid-template-columns: 1fr 1fr;
  }

  .memneed memnd2 {
    z-index: 1;
    font-size: 12px;
  }

  .memneed memnd1 {
    width: 100%;
    text-align: right;
  }

  .memneed memnd4::before {
    content: "внешность";
    left: 0px;
  }

  .memneed memnd5::before {
    left: 0px;
  }

  .memneed memnd6::before {
    left: 0px;
  }

  .memneed memnd4 {
    width: 100%;
  }

  .memneed memnd5 {
    margin-bottom: 5px;
  }

  .memneed memnd6 {
    margin-bottom: 5px;
  }

  .prin prin3 a {
    text-transform: lowercase;
  }

  .prin::after {
    left: 5%;
    right: 5%;
  }

  a.memory_button {
    padding: 3px;
  }

  .shop_tabs > div {
    width: 90%;
  }

  .shop_tabs > label {
    transform: translateX(0%);
    min-width: max-content;
  }

  .memlane_shop .plashka {
    width: 60%;
  }

  .shop_stock td {
    width: 100%;
    display: block;
  }

  .shop_stock .plashka {
    width: 100%;
  }

  .shop_stock .plashka plone,
  .shop_stock .plashka pltwo {
    font-size: 9px;
  }

  .graf_stores {
    grid-template-columns: 1fr;
  }

  #pun-index .tclcon {
    grid-template-columns: auto minmax(min-content, 110px);
    margin-bottom: 15px;
    justify-content: space-between;
  }

  .shop-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .shop-actions .memory_button {
    font-size: 11px;
  }

  .shop-actions .memory_button:nth-child(5) {
    grid-column: 1 / -1;
  }

  /* внутри профиля */

  #viewprofile tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  #viewprofile td#profile-left {
    margin: 0 auto;
  }

  #profile-right {
    width: 100% !important;
  }

  #viewprofile #profile-right li:not(#pa-fld4) {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  #viewprofile #profile-right li span {
    width: 50%;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
    padding-right: 10px;
  }

  #viewprofile #profile-right li#pa-fld1 span,
  #viewprofile #profile-right li#pa-fld4 span {
    display: none;
  }

  #profile-right li strong {
    display: block;
    width: 50%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 !important;
  }

  #profile-right li#pa-fld4 strong {
    width: 250px;
    margin: 0 auto;
  }

  #profile-right li#pa-fld1 strong .lz {
    margin-top: 6px;
  }

  #profile-right li#pa-fld5 strong {
    left: 47%;
    top: -12px;
    overflow: hidden;
  }

  #profilenav,
  #pun-adnav {
    float: none;
    margin-bottom: 10px;
    width: auto;
    margin-left: 0;
  }

  #profilenav ul,
  #pun-adnav ul {
    text-align: center;
    margin-bottom: 10px;
  }

  #profilenav li,
  #pun-adnav li {
    display: inline-block;
  }

  #profilenav li.isactive {
    margin: 0;
  }

  #profilenav li.isactive a::before {
    transform: rotate(90deg);
    transform-origin: center;
  }

  #profilenav li a:hover::before {
    transform: scaleX(0);
  }

  #profilenav li a:hover {
    padding-left: unset;
  }

  .punbb-admin #pun-adnav {
    float: none;
    width: 100%;
    margin-left: 0;
    display: block;
  }

  .punbb-admin .adminmain {
    padding: 0;
    margin: 0;
  }

  #pun-viewforum .modmenu a {
    font-size: 0.5rem;
  }

  /*для челленджа*/
  .tembank tbody {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .tembank tr {
    display: contents;
  }

  /*для челленджа*/

  /*кнопки внизу постов*/
  #pun-viewtopic .post-links {
    /*padding-bottom: 10px;*/
    top: 10px;
  }

  #pun-viewtopic .post-links a {
    font-size: 0;
    padding: 0 2px;
  }

  #pun-viewtopic .post-links a::before {
    font-family: var(--icon-font);
    font-size: 13px;
    color: var(--controls-contrast);
    font-weight: normal;
    transition: var(--hover-transition);
  }

  #pun-viewtopic .post-links .pl-email.profile a::before {
    content: "\F4E1";
  }

  #pun-viewtopic .post-links .pl-email.pm a::before {
    content: "\F6C0";
  }

  #pun-viewtopic .post-links .pl-email a::before {
    content: "\F3E5";
  }

  #pun-viewtopic .post-links .pl-advlink a::before {
    content: "\F484";
  }

  #pun-viewtopic .post-links .pl-delete a::before {
    content: "\F78B";
  }

  #pun-viewtopic .post-links .pl-edit a::before {
    content: "\F4CA";
  }

  #pun-viewtopic .post-links .pl-quote a::before {
    content: "\F255";
  }

  #pun-viewtopic .post-links .pl-quote2 a::before {
    content: "\F25A";
  }

  .linkst,
  .linksb {
    flex-wrap: wrap;
    justify-content: end;
    gap: 20px 5px;
    align-items: center;
  }

  /*анкета*/

  .anketa {
    grid-template-columns: 125px 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 10px;
  }

  .anketa anketa1 {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .anketa anketa8 {
    grid-column: 1;
    grid-row: 2 / 5;
    margin-top: 0 !important;
    justify-self: center;
    margin-left: 15px;
  }

  anketa anketa4 {
    grid-column: 2;
    grid-row: 2;
  }

  .anketa anketa3 {
    grid-column: 2;
    grid-row: 3;
  }

  .anketa anketa5 {
    grid-column: 2;
    grid-row: 4;
  }

  .anketa anketa3,
  .anketa anketa4,
  .anketa anketa5 {
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    justify-self: stretch;
    max-height: none;
    box-sizing: border-box;
    text-align: center;
  }

  .anketa anketa2 {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100% !important;
  }

  .anketa anketa10 {
    grid-column: 1 / -1;
    grid-row: 6;
    width: 100% !important;
  }

  .anketa anketa9 {
    grid-column: 1 / -1;
    grid-row: 7;
    height: auto;
    max-height: 365px;
  }

  .anketa anketa2,
  .anketa anketa10 {
    height: auto !important;
    min-height: 15px;
    box-sizing: border-box;
  }

  .anketa::before {
    grid-column: 1 / -1;
    grid-row: 1 / 5;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
  }

  .anketa anketa3::before,
  .anketa anketa4::before,
  .anketa anketa5::before {
    font-size: 8px;
  }

  /*анкета*/

  /*хронология и отношения*/
  mrelat {
    grid-template-columns: auto;
  }

  /* инпуты и всякие поля */

  fieldset .fs-box.inline {
    display: grid;
  }

  /* #punbbsearch fieldset:nth-child(2) .fs-box.inline .selectfield,
  fieldset .fs-box.inline .infofield {
    grid-column: 1 / -1;
  } */

  .FNTslider {
    margin-right: 100px;
    margin-top: 6px;
  }

  Div.icon:before {
    display: block;
    margin-top: 15px;
  }

  .toBlock {
    position: relative;
  }

  .post-sig dd span[style*="display: block"] {
    display: block !important;
    text-align: center;
  }

  .sigimage {
    max-width: 45%;
    max-height: 120px;
    margin: 5px;
  }

  .sigimage + .sigimage {
    margin-left: 5px;
  }

  /* участники */

  #pun-userlist .usertable .container thead {
    display: none;
  }

  #pun-userlist #pun-main .usertable .container tr {
    display: grid !important;
    align-items: center;
    grid-template-areas:
      "username user_title"
      "relation num_posts"
      "registered last_visit";
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    width: 100%;
    box-sizing: border-box;
  }

  #pun-userlist .usertable .container tr .tcl.username {
    grid-area: username;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row-reverse;
    width: unset;
  }

  #pun-userlist .usertable .tcl {
    text-align: right;
  }

  #pun-userlist .usertable .container tr .user_title {
    grid-area: user_title;
    text-align: left;
    font-size: 1.15cqh;
    line-height: 1;
    width: unset;
  }

  #pun-userlist .usertable .container tr .relation {
    grid-area: relation;
    text-align: right;
    width: unset;
  }

  #pun-userlist .usertable .container tr .relation::before {
    content: "уважение: ";
    text-align: left;
  }

  #pun-userlist .usertable .container tr .num_posts {
    grid-area: num_posts;
    text-align: left;
    width: unset;
  }

  #pun-userlist .usertable .container tr .relation,
  #pun-userlist .usertable .container tr .num_posts {
    padding: 5px 0;
  }

  #pun-userlist .usertable .container tr .num_posts::before {
    content: "сообщений: ";
  }

  #pun-userlist .usertable .container tr .registered {
    grid-area: registered;
    text-align: right;
    width: unset;
  }

  #pun-userlist .usertable .container tr .registered::before {
    content: "зарегистрирован: ";
    display: block;
  }

  #pun-userlist .usertable .container tr .last_visit {
    grid-area: last_visit;
    text-align: left;
    width: unset;
  }

  #pun-userlist .usertable .container tr .last_visit::before {
    content: "был: ";
  }

  /* убираем зум на айфонах, нужновое */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select,
  #main-reply,
  .punbb textarea,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus,
#main-reply:focus,
.punbb textarea:focus {
    font-size: 16px !important;
    width: 100%;
-webkit-text-size-adjust: 100%;
  }

  #pun-viewtopic .linksb {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  #pun-viewtopic .pagelink {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  /*найти на странице*/
  #s-block {
    grid-row: 2;
    grid-column: 2;
    justify-self: start;
  }

  #sTheme {
    width: 100% !important;
    text-overflow: ellipsis;
  }

  #isk::before {
    margin-left: 3px !important;
  }

  .subscribelink {
    grid-column: 1;
    grid-row: 2;
    justify-self: unset;
  }

  #pun-admain .postlink {
    float: left;
    margin-left: 2px;
    margin-top: 10px;
  }

  /* для чс */

  #panel-sticker {
    display: none;
  }

  .panel-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
  }

  /* уведы */

  .bubble {
    position: relative !important;
    width: 14px;
    height: 14px;
    top: unset !important;
    right: unset !important;
    line-height: 14px !important;
    margin: 0 0 0 5px !important;
    border-radius: 50% !important;
    padding: 0 !important;
  }

  .bubble:after {
    display: none !important;
  }

  #pun-report .inner,
  #pun-reputation .inner,
  #pun-admin-award-form .inner {
    box-sizing: border-box;
  }

  .go-up:before,
  .go-down:before {
    display: none;
  }

  .go-up,
  .go-down {
    transform: scale(0.6);
    right: -13px;
    top: unset;
    z-index: 100;
  }

  .go-up {
    top: 50%;
  }

  .go-down {
    top: calc(50% + 30px);
  }

  #pun-index .hasicon tr .tclcon::before {
    width: 20px;
    height: 20px;
    left: -30px;
  }

  .menu,
  .memlane_shop,
  .tem,
  .epizod,
  .tembank,
  .guide,
  .vn,
  .proff,
  .stat,
  .memneed,
  #bank-app,
  .graf {
    width: 100%;
    box-sizing: border-box;
  }

  .vn-M-first,
  .vn-M-second,
  .vn-W-first,
  .vn-W-second {
    margin: 0;
  }

  .nickname-claim {
    grid-template-columns: unset;
  }

  .punbb .post-content p,
  .punbb .post-content .scrollbox {
    margin: 6px 0;
  }

  /* цвета */

  #pun-userlist #pun-main .usertable .container tr {
    background: var(--container-bg);
    border: var(--container-border);
  }

  #pun-userlist .usertable .container tr .relation,
  #pun-userlist .usertable .container tr .num_posts {
    border-block: var(--container-border);
  }

  .tblnav1 {
    background: var(--container-bg);
    border: var(--container-border);
    white-space: normal;
  }

  .tblnav1 span {
    background: unset;
    box-shadow: unset;
    border: unset;
    padding: unset;
    margin: unset;
  }

  .tblnav1 a {
    background: var(--text-badge-bg);
    color: var(--text-badge-color);
    white-space: normal;
  }

  /* страница личных соо */

  #profile .container:not(.container[id$="-area"]) {
    padding-left: 0 !important;
  }

  #pun-messages #messages > fieldset > legend {
    margin: 10px auto;
  }

  #pun-messages #messages thead {
    display: none;
  }

  #pun-messages .hasicon tr {
    display: grid !important;
    align-items: start !important;
    grid-template-areas:
      "user . date check"
      "user topic topic topic";
    grid-template-columns: 40px 1fr 1fr auto;
    position: relative;
    padding: 10px;
    width: calc(100% + 10px);
    margin-left: -15px;
    gap: 5px;
  }

  #pun-messages #messages td.tc2.pmtc22 {
    grid-area: user;
    position: relative;
    width: 100% !important;
    overflow: visible !important;
  }

  #pun-messages .user-avatar .avatar-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
  }

  #pun-messages .user-avatar::before {
    border-radius: 50%;
  }

  #pun-messages #messages td.tc2.pmtc22 > a {
    position: absolute;
    top: 3px;
    left: 47px;
    font-weight: 600;
  }

  #pun-messages table tr div.icon.inew {
    left: 0;
    top: -15px;
  }

  #pun-messages #messages .inew td.tc2.pmtc22 > a {
    left: 60px;
  }

  #pun-messages #messages td {
    padding: 0;
  }

  #pun-messages #messages td.tc3.pmtc33 {
    grid-area: date;
    width: 100% !important;
    justify-content: flex-end;
  }

  #pun-messages #messages td.tcl.pmtcl1 {
    grid-area: topic;
    width: 100% !important;
    font-size: 0.8em;
    display: unset;
  }

  #pun-messages #messages td.tcl.pmtcl1 .tclcon > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  #pun-messages #messages td.tcl.pmtcl1 .tclcon {
    margin-top: -8px;
  }

  #pun-messages #messages td.tcl.pmtcl1 .tclcon:before {
    width: 8px;
    height: 8px;
    position: absolute;
    top: 19px;
    display: none;
  }

  #pun-messages #messages .inew td.tcl.pmtcl1 .tclcon:before {
    display: initial;
  }

  #pun-messages #messages td.tc2.pmtc24 {
    grid-area: check;
    width: 100% !important;
  }

  div#pun-navlinks li#navpm span.num_msg {
    transform: scale(0.7);
    margin-top: -22px !important;
    margin-left: -17px !important;
    font-size: 10px !important;
  }

  span.num_msg:before {
    margin-left: 3px !important;
  }

  p.formsubmit,
  p.selectfield,
  p.inputfield {
    margin: 2px 0;
  }

  #pun-messages .pmtc22 a,
  #pun-messages .pmtc33 {
    white-space: nowrap;
  }

  .permalink {
    margin-left: 0 !important;
  }

  .punbb img.avatardemo {
    margin: 10px auto;
    float: unset !important;
  }

  .collection_section {
    word-break: break-word;
  }

  .menu {
    border: 10px solid transparent;
    box-shadow: none;
    padding: 10px;
  }

  .sns_ochka {
    width: 287px !important;
    background-size: contain !important;
  }

  #addition-area span.hotkey {
    display: none;
  }

  #pun-online #pun-main thead {
    display: none;
  }

  #pun-online #pun-main .container tr {
    display: grid;
    gap: 5px 10px;
    justify-content: space-between;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 10px;
  }

  #pun-online #pun-main .container td.tcl.username {
    width: unset !important;
    grid-row: 1 / 3;
    grid-column: 1;
    padding: 0;
  }

  #pun-online #pun-main .container td.tcl.action {
    width: unset !important;
    grid-row: 1;
    grid-column: 2;
    padding: 0;
    text-align: right;
  }

  #pun-online #pun-main .container td.tc3 {
    width: unset !important;
    grid-row: 2;
    grid-column: 2;
    padding: 0;
    text-align: right;
  }
}
