/*************************************************************
  SACRAMENTO — основной файл стилей

  Цвета, шрифты-переменные и всё, что зависит от темы,
  лежат в style_cs.1794837315.css — он подключается первым.

  0.  Подключения и шрифты
  1.  База: сброс, текст, ссылки, скрытое
  2.  Каркас страницы
  3.  Шапка
  4.  Объявления
  5.  Главная и списки тем
  6.  Служебные страницы и таблицы
  7.  Тема: посты, профиль автора, ссылки поста
  8.  Содержимое постов
  9.  Формы, кнопки, редактор
  10. Всплывающие окна и переадресация
  11. Профиль пользователя
  12. Низ страницы: крошки, статистика, футер, баннеры
  13. Плагины
  14. Старые шаблоны постов
  15. Мобильная версия

  ВАЖНО: форум превращает символы вроде стрелок и звёздочек
  в &#...; при сохранении. В content: пишите их через \код
  (звезда — \2605, точка — \2022, тире — \2014).
**************************************************************/


/*************************************************************
  0. ПОДКЛЮЧЕНИЯ И ШРИФТЫ
**************************************************************/

@import url(style_cs.1794837315.css);
@import "https://forumstatic.ru/files/0010/a8/ca/42983.css";

/* коллекции живут в отдельном файле, добавлять новые там */
@import "https://forumstatic.ru/files/0010/a8/ca/97557.css?v=8";

/* гугловые шрифты добавляйте только через html-верх ПОЖАЛУЙСТА */

@font-face {
    font-family: Franklin Gothic Heavy;
    src: local("Franklin Gothic Heavy"), url(https://forumstatic.ru/files/0010/a8/ca/92110.ttf);
}

@font-face {
    font-family: 'Intro';
    font-style: normal;
    font-weight: normal;
    src: local('Intro'), url('https://forumstatic.ru/files/0019/34/94/34318.woff') format('woff');
}

@font-face {
    font-family: icon;
    src: local("icon"), url(https://forumstatic.ru/files/0017/c0/20/82953.ttf);
}

@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v74/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1n-q_4MrImHCIJIZrDCvHOej.woff2) format("woff2");
}

@font-face {
    font-family: Segoe Ui;
    src: local("Segoe Ui"), url(https://forumstatic.ru/files/0017/c0/20/61080.ttf);
}

@font-face {
    font-family: 'Icons';
    font-weight: light;
    font-style: normal;
    src: local('Icons'), url('https://forumstatic.ru/files/001b/67/90/67409.woff') format('woff');
}

@font-face {
    font-family: 'PortRegular';
    font-style: normal;
    font-weight: light;
    src: local('Port Regular'), url('https://forumstatic.ru/files/0015/44/02/83343.woff') format('woff');
}

@font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 300;
    src: local('Cormorant Garamond'), url('https://forumstatic.ru/files/0019/34/94/60615.ttf') format('truetype');
}

@font-face {
    font-family: 'Cormorant';
    font-style: italic;
    font-weight: 300;
    src: local('Cormorant Garamond'), url('https://forumstatic.ru/files/0019/34/94/92949.ttf') format('truetype');
}

@font-face {
    font-family: 'Source Serif Pro';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(https://forumstatic.ru/files/0019/34/94/84846.woff2) format('woff2');
}


/*************************************************************
  1. БАЗА
**************************************************************/

/* 1.1 Сброс
-------------------------------------------------------------*/

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-size: 100.01%;
    overflow-x: hidden;
}

.punbb {
    float: none;
    height: auto;
    margin: 0 auto;
    font: normal 68.75% var(--f-sans);
}

#pun-main {
    margin: 0;
}

.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {
    list-style: none;
}

dd, blockquote {
    margin: 0;
}

.punbb img {
    border: none;
}

/* 1.2 Текст
-------------------------------------------------------------*/

.punbb h1, .punbb h2, .punbb h3, .punbb h4 {
    font-size: 10px;
    font-weight: normal;
}

.punbb table, .punbb th {
    font-weight: normal;
    margin: auto;
}

.punbb pre {
    font: 1.1em/140% monaco, "bitstream vera sans mono", "courier new", courier, monospace;
}

.punbb address, .punbb em {
    font-style: normal;
}

.punbb optgroup {
    font-weight: bold;
}

.punbb label {
    line-height: 20px;
    color: var(--ink);
}

.punbb .section .container, .punbb .post-body, .punbb .post-links, .punbb td.tc2, .punbb td.tc3,
.punbb .formal fieldset .post-box, #viewprofile li strong, #viewprofile li div, #setmods dd,
.punbb .info-box, .punbb #pun-main .info-box .legend, .punbb .main .container, .punbb .post .container,
.punbb .post h3, .punbb-admin #pun-admain .adcontainer, #pun-stats h2, .punbb .main h2, #pun-title,
#pun-title .container, .punbb .modmenu .container, .punbb legend span, #viewprofile h2 span,
#profilenav h2 span, .punbb-admin #pun-admain legend span, .punbb .post h3 span, .punbb th,
#viewprofile li, #setmods dl {
    color: var(--ink);
    font-style: normal;
}

/* 1.3 Заголовки разделов
-------------------------------------------------------------*/

.punbb .main h1, #pun-debug h2, .punbb-admin #pun-admain h2 {
    text-align: center;
    padding: 6px;
    font-size: 12px;
    font-style: normal;
}

.main h1 span {
    font-family: var(--f-sans);
    font-size: 14px;
    letter-spacing: 0.7px;
}

.main.pages h1 {
    height: 16px !important;
}

.main h2 span {
    margin-left: 5%;
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--ink);
}

#pun th, #pun-main h2 {
    text-align: center !important;
    letter-spacing: 1px;
}

/* 1.4 Ссылки
-------------------------------------------------------------*/

.punbb a, .punbb a:link, .punbb a:visited,
.punbb-admin #pun-admain a,
.punbb li.isactive a, .punbb li.isactive a:link, .punbb li.isactive a:visited {
    color: inherit;
    text-decoration: none;
}

.punbb a:hover {
    color: var(--red);
}

.punbb a:focus {
    color: var(--red);
    filter: none !important;
}

.punbb a:active, .punbb-admin #pun-admain .nodefault {
    color: var(--red) !important;
}

/* 1.5 Служебное: обтекание и скрытое
-------------------------------------------------------------*/

#pun:after,
.punbb .container:after,
.punbb .post-links ul:after,
.punbb .main div.inline:after,
.punbb .post-box:after,
.punbb .linksb:after {
    content: ".";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.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 {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

#pun-live-rusff,
#title-logo-table,
#pun-navlinks #navawards,
#pun-announcement h2,
#pun-index #pun-crumbs1,
#pun-index #pun-crumbs2,
#pun-messages .pa-reg,
.modmenu .container span,
.modlist,
.lastedit,
.pa-gifts,
.stickytext,
.closedatafield,
.admin-advert-block {
    display: none;
}

.sharelink {
    display: none !important;
}

#pun-stats h2 span {
    visibility: hidden;
}


/*************************************************************
  2. КАРКАС СТРАНИЦЫ
**************************************************************/

#pun_wrap {
    min-width: 1100px;
}

#pun {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 24px auto 40px;
    padding: 6px 0 30px;
    background-color: var(--paper);
    background-image: var(--tex-paper, none);
    background-blend-mode: multiply;
    border: 1px solid var(--red);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}

#pun:not(:has(.v-top)) {
    padding-top: 30px;
}

#pun .punbb {
    width: 1040px;
    margin: auto;
}

#pun-main {
    padding-bottom: 18px;
}

.punbb .section, .punbb .main {
    margin-bottom: 1em;
}

.punbb .category, .punbb .post {
    margin: 0;
}

.punbb #pun-category1, .punbb .toppost, .punbb .topicpost {
    margin-top: 0;
}

#pun-post .topic {
    margin-top: 1em;
}

.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info,
.punbb .category, .punbb .post {
    border-style: none;
    border-width: 0;
}

.punbb .container {
    border-style: none;
    border-width: 0;
}

#pun-admain .adformal, #pun-admain .adcontainer {
    border: none;
}

.punbb .formal {
    padding-top: 20px;
}

.punbb .container, .punbb .post-body, .post h3,
.punbb .main h1, #pun-debug h2, .punbb-admin #pun-admain h2,
.punbb td, .punbb th, .punbb fieldset,
#viewprofile ul, #profilenav ul,
.punbb .post .post-body, .punbb .post h3 span,
.post-links ul, .post-links, .usertable table,
#pun-ulinks li, #pun-ulinks li a,
li#onlinelist, li#onlinelist div,
#pun-help .formal .info-box h3.legend, #pun-help .formal .info-box h3.legend span,
.punbb .divider {
    border-color: transparent;
}


/*************************************************************
  3. ШАПКА
**************************************************************/

/* 3.1 Контейнер и ссылки-пропуски
-------------------------------------------------------------*/

#pun-title {
    display: none;
}

#pun-pagelinks {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

#pun-pagelinks .container {
    padding: 0;
    border: none;
    background: transparent;
}

#pun-pagelinks .container li {
    display: inline;
}

#pun-pagelinks li a, #pun-pagelinks a:link, #pun-pagelinks a:hover {
    display: block;
    float: left;
    width: 100%;
    height: 2em;
    margin-left: -9999px;
    padding: 0;
    line-height: 2em;
    font-size: 1.2em;
}

#pun-pagelinks a:active, #pun-pagelinks a:focus {
    position: relative;
    margin: 0;
}

#pun-pagelinks li a span {
    display: block;
    margin: 0 1em;
}

/* 3.2 Строка приветствия
-------------------------------------------------------------*/

#pun-status .container {
    position: absolute;
    top: 4px;
    z-index: 2;
    width: 1100px;
    height: 10px;
    text-align: center;
    font-family: var(--f-sans);
    font-size: 9px;
    font-weight: 400;
    text-transform: lowercase;
    color: var(--ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#pun-status .status-right {
    float: unset !important;
}

#pun-status span {
    margin-right: 0.5em;
}

#html-header {
    width: 1100px;
    margin-left: -30px;
}

/* 3.2б Строка над фото
-------------------------------------------------------------*/

.v-greet {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 26px;
    padding: 0 30px;
}

.v-greet #theme-switcher {
    position: static;
    flex-shrink: 0;
}

#v-status-slot {
    flex: 1 1 auto;
    min-width: 0;
}

#v-status-slot #pun-status {
    margin: 0;
    padding: 0;
    border: 0;
}

#v-status-slot #pun-status .container {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 4px 0;
    font-family: var(--f-sans);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink);
}

#v-status-slot #pun-status strong {
    font-weight: 700;
}

#v-status-slot #pun-status a {
    color: var(--red);
}

.v-greet {
    position: relative;
    z-index: 25;
}

.v-dim {
    position: relative;
    flex-shrink: 0;
}

.v-dim-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color .15s, background-color .15s;
}

.v-dim-btn svg {
    display: block;
    width: 14px;
    height: 14px;
}

.v-dim-btn:hover,
.v-dim-btn[aria-expanded="true"] {
    background: var(--fill);
    color: var(--ink);
}

.v-dim-btn.on {
    color: var(--red);
}

.v-dim-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: 210px;
    padding: 10px 12px 12px;
    border: 1px solid var(--card-line, rgba(var(--ink-rgb), .18));
    border-radius: var(--radius);
    background: var(--card, var(--plate));
    box-shadow: 0 6px 18px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}

.v-dim-pop.open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.v-dim-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--f-sans);
}

.v-dim-head span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.v-dim-head b {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
}

.v-dim-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-dim-ico {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--muted);
    cursor: pointer;
    transition: color .15s;
}

.v-dim-ico:hover {
    color: var(--red);
}

.v-dim-pop input[type="range"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 16px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.v-dim-pop input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--red) var(--dim-fill, 0%), rgba(var(--ink-rgb), .15) var(--dim-fill, 0%));
}

.v-dim-pop input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border: 2px solid var(--red);
    border-radius: 50%;
    background: var(--plate);
    transition: transform .15s;
}

.v-dim-pop input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.15);
}

.v-dim-pop input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .15);
}

.v-dim-pop input[type="range"]::-moz-range-progress {
    height: 4px;
    border-radius: 4px;
    background: var(--red);
}

.v-dim-pop input[type="range"]::-moz-range-thumb {
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border: 2px solid var(--red);
    border-radius: 50%;
    background: var(--plate);
}

.font-btn {
    height: 16px;
    padding: 0 4px;
    border-radius: 3px;
    background: none;
    border: none;
    color: var(--muted);
    font: 600 10px/1 Verdana, Geneva, sans-serif;
    cursor: pointer;
}

.font-btn.active {
    border-color: var(--red);
    color: var(--red);
}

/* 3.3 Фото, название
-------------------------------------------------------------*/

.v-top,
#v-nav-slot {
    width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.v-top {
    position: relative;
    z-index: 20;
    margin-top: 6px;
}

.v-hero {
    position: relative;
    height: 330px;
    overflow: hidden;
}

.v-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-hero, none);
    background-position: var(--bg-hero-pos, center);
    background-size: cover;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 110px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 110px);
}

.v-hero-title {
    position: absolute;
    top: -13px;
    left: 50%;
    z-index: 0;
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
}

.v-hero-title img {
    display: block;
    width: 560px;
    height: auto;
}

/* 3.4 Лучшие в окне
-------------------------------------------------------------*/

.v-notes .v-stars {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.v-stars .v-star {
    position: absolute;
    display: block;
    pointer-events: auto;
    transition: box-shadow .25s;
    border-radius: var(--radius);
}

.v-star:has(img[src=""]) {
    display: none;
}

.v-star > span {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: grayscale(1) sepia(.25) brightness(.78) contrast(.85);
    transition: filter .25s;
    border-radius: inherit;
}

.v-star img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.v-star:hover {
    z-index: 4;
    box-shadow: 0 0 0 2px var(--red), 0 4px 12px rgba(0, 0, 0, .35);
}

.v-star:hover > span {
    filter: none;
}

.v-plate {
    position: absolute;
    z-index: 3;
    display: inline-block;
    padding: .12em .45em .16em;
    background: var(--plate);
    color: var(--red);
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), .55), 1px 2px 0 var(--shadow);
    transform: rotate(var(--r, -3deg));
    pointer-events: none;
    user-select: none;
}

.v-stars .v-plate {
    top: 100px;
    left: 886px;
    --r: 4deg;
}

.v-stars #best-ep           { left: 804px; top: 124px; width: 125px; height: 45px; }
.v-stars #best-duo          { left: 804px; top: 173px; width: 125px; height: 45px; }
.v-stars #best-player       { left: 804px; top: 236px; width: 59px;  height: 59px; }
.v-stars #best-photo        { left: 867px; top: 236px; width: 29px;  height: 29px; }
.v-stars #best-breakthrough { left: 900px; top: 236px; width: 29px;  height: 29px; }
.v-stars #best-winner       { left: 900px; top: 269px; width: 29px;  height: 29px; }

/* 3.5 Надписи на фото: актив, пост недели, плашки, погода
-------------------------------------------------------------*/

.v-notes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 330px;
    pointer-events: none;
}

.v-notes > * {
    pointer-events: auto;
}

.v-act {
    position: absolute;
    top: 61px;
    left: 12px;
    width: 183px;
}

.v-act .v-plate { top: -31px; left: 42px; }

.v-act #best-writers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 3px;
}

.v-act #best-writers a {
    display: block;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--on-photo);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
    overflow-wrap: break-word;
}

.v-act #best-writers a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--red);
}

.v-act [data-tip]::after {
    top: calc(100% + 4px);
    bottom: auto;
}

.v-clip {
    position: absolute;
    top: 134px;
    left: 200px;
    width: 178px;
    height: 127px;
    rotate: 2deg;
}

.v-clip #best-post {
    padding: 21px 14px 24px;
    color: var(--on-photo);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}

#best-post-name a {
    display: block;
    font-family: var(--f-sans);
    font-size: 13px;
    font-style: italic;
    font-weight:700;
    line-height: 1.15;
    text-transform: lowercase;
    color: var(--card);
    overflow-wrap: anywhere;
    height: 2.3em;
}

#best-post-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 5px;
    font-family: var(--f-sans);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.45;
}

#best-post-link {
    margin-top: 5px;
    margin-left: 74px;
}

#best-post-link a {
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 700;
    color: var(--fill);
}

#best-post-name a:hover,
#best-post-link a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--red);
}

.v-clip .v-plate {left: 28px;bottom: -13px;}

.v-pops {
    position: absolute;
    top: 150px;
    left: 30px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.v-pops .dropdown-toggle {
    display: inline-block;
    margin: 0;
    padding: .12em .5em .16em;
    border: 0;
    border-radius: 0;
    background: var(--plate);
    color: var(--red);
    font-family: var(--f-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), .55), 1px 2px 0 var(--shadow);
    transform: rotate(6deg);
    z-index: 100;
}

#adm-links .dropdown-toggle {
    margin-top: 12px;
    transform: rotate(-4deg);
}

button.dropdown-toggle * {
    pointer-events: none;
}

.v-pops .dropdown-toggle:hover,
.dropdown:has(.dropdown-menu.show) .dropdown-toggle {
    background: var(--red);
    color: var(--plate);
}

.v-weather {
    position: absolute;
    right: 46px;
    bottom: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.v-weather .v-wx {
    font-family: var(--f-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--on-photo);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}

#top-button {
    line-height: 0;
    opacity: 0.7;
}

#top-button:hover {
    opacity: 1;
}
/* 3.6 Списки «ссылки» и «амс»
-------------------------------------------------------------*/

.dropdown {
    position: relative;
    display: inline-block;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 101;
    width: 330px;
    filter: drop-shadow(0 6px 9px rgba(0, 0, 0, .2)) drop-shadow(0 0 1px rgba(0, 0, 0, .4));
}

.dropdown-menu.show {
    display: block;
    z-index: 100;
}

.v-paper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    padding: 14px 20px 16px;
    background: var(--plate);
    color: var(--ink);
    border-radius: var(--radius);
}

.v-paper a {
    display: block;
    padding: 5px 0 4px;
    border-bottom: 1px solid var(--line);
    font-family: var(--f-sans);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
}

.v-paper a:hover {
    color: var(--red);
}

#links-menu {
    width: 470px;
}

#links-menu .v-paper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
}

.v-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.v-col b {
    margin-bottom: 4px;
    font-family: var(--f-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--red);
}

#clubs .new a::after {
    content: "new";
    display: inline-block;
    margin-left: 5px;
    padding: 1px 4px 2px;
    background: var(--red);
    color: var(--plate);
    font-family: var(--f-sans);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .12em;
    text-transform: uppercase;
    vertical-align: 2px;
    transform: rotate(-6deg);
}

#ams-list {
    width: 390px;
}

#ams-list .v-paper {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#ams-list .tooltip {
    display: block;
    padding: 5px 0 4px;
    border-bottom: 1px solid var(--line);
}

#ams-list .tooltip > a {
    display: block;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
}

#ams-list .tooltip em {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius);
    background: var(--plate);
    color: var(--ink);
    box-shadow: 0 4px 12px var(--shadow);
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    visibility: hidden;
    opacity: 0;
    transition: opacity .12s;
    pointer-events: none;
}

#ams-list .tooltip em img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: calc(var(--radius) - 1px);
    object-fit: cover;
    filter: grayscale(1);
}

#ams-list .tooltip:hover em,
#ams-list .tooltip:focus-within em {
    visibility: visible;
    opacity: 1;
}

#ams-list .tooltip:hover > a {
    color: var(--red);
}

#ams-list .avaktg {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* 3.7 Меню форума
-------------------------------------------------------------*/

#v-nav-slot {
    margin-bottom: 14px;
    position: relative;
}

#v-nav-slot #pun-navlinks,
#v-nav-slot #pun-ulinks {
    position: static;
    width: auto;
    margin: 0;
}

#pun-navlinks .container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--fill);
    overflow: hidden;
}

#pun-navlinks li {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#pun-navlinks li a {
    display: block;
    padding: 10px 12px 9px;
    text-align: center;
    white-space: nowrap;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
}

#pun-navlinks li.isactive a,
#pun-navlinks li a:hover {
    background: var(--fill-2);
    color: var(--red);
}

#pun-ulinks .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 0;
    margin: 0;
    padding: 5px 0 6px;
    border: 0;
}

#pun-ulinks li {
    position: relative;
    margin: 0;
    padding: 0;
}

#pun-ulinks li + li::before {
    content: "\00B7";
    margin: 0 7px;
    color: var(--sage);
}

#pun-ulinks li a {
    display: inline;
    padding: 0;
    white-space: nowrap;
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--ink);
}

#pun-ulinks li a:hover {
    background: none;
    color: var(--red);
}

.bubble {
    top: 17px !important;
    right: -1px !important;
    min-width: 80px !important;
    min-height: 10px !important;
    vertical-align: middle;
    background: var(--red) !important;
    border: 0 none !important;
    border-radius: 0 !important;
    font: 8px/1.6 Verdana !important;
    line-height: 10px !important;
}

.bubble:after {
    border-color: transparent !important;
    border-width: 0 !important;
}

.num_msg {
    position: absolute;
    top: -8px;
    right: 6px;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    margin: 15px 0 0 !important;
    padding: 0 5px 2px !important;
    border: 0 !important;
    border-radius: 9px;
    background-color: var(--red) !important;
    color: var(--plate) !important;
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0;
    text-align: center;
    box-shadow: 0 0 0 2px var(--paper);
}

span.num_msg:before {
    width: 0 !important;
    height: 0 !important;
    transform: none !important;
    background: transparent;
}

/* 3.8 Подсказки data-tip
-------------------------------------------------------------*/

[data-tip] {
    position: relative;
}

[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    z-index: 30;
    transform: translateX(-50%);
    padding: 4px 9px 5px;
    background: var(--ink);
    color: var(--on-ink);
    white-space: nowrap;
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}

[data-tip]:hover::after {
    opacity: 1;
}

.tooltipsy {
    z-index: 10000 !important;
    padding: 5px 9px 6px !important;
    border-radius: var(--radius) !important;
    background-color: var(--ink) !important;
    font-family: var(--f-sans);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--on-ink);
}

body > div:has(> .tooltipsy) {
    z-index: 10000 !important;
}

/* 3.9 Приглушённый свет
-------------------------------------------------------------*/

.dim-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity .3s, background-color .2s;
    pointer-events: none;
}

.dim-overlay.active {
    opacity: 1;
}

/* 3.10 Кнопки вверх-вниз
-------------------------------------------------------------*/

#ToTop,
#OnBottom {
    position: fixed;
    left: calc(50% + 562px);
    z-index: 9999;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--card-line);
    border-radius: 50%;
    background: var(--fill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    color: var(--muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s, color .15s, transform .2s;
    -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] #ToTop,
#OnBottom {
    border: 1px solid var(--red);
}

#ToTop    { top: 20%; }
#OnBottom { bottom: 20%; }

#ToTop::before,
#OnBottom::before {
    content: "";
    width: 12px;
    height: 12px;
    background: currentColor;
    -webkit-mask: var(--i-chevron) center / contain no-repeat;
    mask: var(--i-chevron) center / contain no-repeat;
}

#ToTop::before    { transform: rotate(-90deg); }
#OnBottom::before { transform: rotate(90deg); }

#ToTop:hover,
#OnBottom:hover {
    color: var(--red);
    transform: scale(1.08);
}

.semi-transparent {
    opacity: 1 !important;
}

.invisible {
    opacity: 0 !important;
    pointer-events: none;
}

/*************************************************************
  4. ОБЪЯВЛЕНИЯ
**************************************************************/

#pun-announcement .container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
    width: auto;
    min-height: 20px;
    margin: 20px 0 0px;
    padding: 0 16px 0px;
    border: 0;
    background: transparent;
    text-align: center;
    line-height: 2;
    font-family: var(--f-sans);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
}

.sacobl {
    display: inline-block;
    margin: 0 8px;
    line-height: 1.5;
}

.sacobl:before {
    content: "\00B7";
    display: inline-block;
    margin-right: 6px;
    font-weight: 700;
    color: var(--red);
}

.sacobl:hover,
.sacobl:focus-visible {
    border-bottom-color: var(--red);
    color: var(--red) !important;
}

.sacobl_imp {
    display: inline-block;
    margin: 2px 8px;
    padding: .1em .5em .15em;
    border: 0;
    background: var(--plate);
    font-weight: 700;
    line-height: 1.4;
    color: var(--red) !important;
    box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), .55), 1px 2px 0 var(--shadow);
    transform: rotate(-2deg);
}

.sacobl_imp:nth-of-type(2n) {
    transform: rotate(1.5deg);
}

.sacobl_imp:hover,
.sacobl_imp:focus-visible {
    background: var(--red);
    color: var(--plate) !important;
}

.sacobl-divider {
    width: 100%;
    margin: 10px 0;
    border-bottom: 1px solid var(--line);
}


/*************************************************************
  5. ГЛАВНАЯ И СПИСКИ ТЕМ
**************************************************************/

/* 5.1 Категории
-------------------------------------------------------------*/

#pun-index {
    counter-reset: category;
}

#pun-main .category h2 {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 34px 0 0;
    padding: 0 0 9px;
    border-bottom: 1px solid var(--line);
}

#pun-main .category:first-child h2 {
    margin-top: 6px;
}

#pun-index .category h2 {
    height: auto;
    min-height: 40px;
    counter-increment: category;
}

#pun-main .category h2 span {
    position: relative;
    display: inline-block;
    width: auto;
    margin: 0;
    padding: .08em .45em .14em;
    border: 0;
    background: var(--plate);
    text-align: left;
    font-family: var(--f-sans);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--red);
    box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), .55), 1px 2px 0 var(--shadow);
    transform: rotate(-2deg);
}

#pun-main .category:nth-child(2n) h2 span {
    background: var(--sage-soft);
    color: var(--sage);
    box-shadow: none;
    transform: rotate(1.5deg);
}

#pun-main.main.mod-page .category h2 span {
    display: none !important;
}

#pun-main .category h2 .catleft,
#pun-main .category h2 .catright,
#pun-main .category:nth-child(2n) h2 .catleft,
#pun-main .category:nth-child(2n) h2 .catright {
    flex-shrink: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
    font-family: var(--f-sans);
    text-transform: none;
}

#pun-main .category h2 .catleft {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}

#pun-main .category h2 .catleft::after {
    content: "";
}

#pun-main .category h2 .catright {
    margin-left: auto;
    margin-right: 0;
    border: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    display: none;
}


#pun-index .category h2.has-img {
    min-height: 96px;
}

#pun-index .category h2.has-img::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    width: 420px;
    height: 92px;
    background-image: var(--cat-img);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(1) contrast(1.05);
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%);
    mask-image: linear-gradient(to right, transparent 0, #000 45%);
    pointer-events: none;
}

#pun-index .category h2.has-img span {
    z-index: 1;
}

#pun-index tbody.hasicon {
    position: relative;
    display: block;
    padding: 0 0 20px;
    border-top: 0;
}

#pun-index .category table thead {
    display: none;
}

#pun-index :is(#forum_f55, #forum_f56, #forum_f26, #forum_f37, #forum_f81, #forum_f80, #forum_f79, #forum_f82, #forum_f57, #forum_f64, #forum_f59, #forum_f29, #forum_f45, #forum_f84, #forum_f16, #forum_f34, #forum_f38, #forum_f31, #forum_f66, #forum_f68, #forum_f93, #forum_f97, #forum_f98, #forum_f58, #forum_f89, #forum_f116, #forum_f132, #forum_f133, #forum_f134, #forum_f27, #forum_f143, #forum_f147, #forum_f148, #forum_f154, #forum_f156, #forum_f171, #forum_f176, #forum_f177, #forum_f180, #forum_f185, #forum_f216, #forum_f217) {
    display: none;
}

#pun:not(.gid3) #pun-index :is(#forum_f21, #forum_f65) {
    display: none;
}

/* 5.2 Таблицы форумов и тем
-------------------------------------------------------------*/

.punbb .main .category table, .punbb .main .forum table, .punbb .main .section table {
    table-layout: fixed;
    width: 100%;
    margin: 0;
    background: transparent;
}

.category table {
    border: 0;
}

.punbb .main .forum table thead {
    background-color: transparent;
}

.punbb .main .forum table th {
    padding: 8px 6px 10px;
    border-bottom: 0;
    font-family: var(--f-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted) !important;
}

.punbb .main td {
    padding: 1em 0;
    border-style: solid none none none;
    border-width: 1px 0 0 0;
}

.punbb .main tbody tr:first-child td {
    border-top-color: transparent;
}

/* главная */

#pun-index .main .tcl {
    width: 70%;
    text-align: left !important;
}

#pun-index .main .tc2, #pun-index .main .tc3 {
    display: none;
}

.punbb .main .category .tcr {
    text-align: left;
}

#pun-index .main .tcr {
    width: 30%;
    overflow: hidden;
    padding-right: 10px;
    text-align: left !important;
    background-color: transparent;
    font-family: var(--f-sans);
    font-size: 10px;
    text-transform: lowercase;
}

#pun-index .tcl h3 {
    margin-bottom: 4px;
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: lowercase;
}

#pun-index .tcl h3 a {
    color: inherit;
    text-decoration: none;
}

#pun-index .tcl h3 a:hover {
    color: var(--red);
}

#pun-index td div.tclcon {
    padding-top: 2px;
    padding-right: 60px;
    font-family: var(--f-sans);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
}

.tclcon .Add {
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.punbb .category div.intd {
    position: relative;
    height: 100%;
    box-shadow: none;
}

.punbb td span.youposted {
    position: absolute;
    margin-left: -1em;
    font-weight: bold;
    color: var(--red);
}

.tcr .lastpost-link {
    display: inline-block;
    margin-bottom: 3px;
    border-bottom: 1px solid var(--red);
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink) !important;
}

.tcr .lastpost-link:hover {
    color: var(--red) !important;
}

.category td.tcr {
    font-size: 0 !important;
}

.category td.tcr .datetime {
    display: block;
    margin-top: 2px;
    font-family: var(--f-sans);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

#pun .category td.tcr .byuser {
    font-family: var(--f-sans);
    font-size: 11px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.8em;
    color: var(--red);
}

/* аватарки и ники */

.punbb .user-avatar {
    float: left !important;
    margin: 1px 14px 2px 0 !important;
}

.punbb .user-avatar .avatar-image {
    width: 32px !important;
    height: 32px !important;
    border-radius: 0 !important;
    outline: 0;
    box-shadow: 0 0 0 2px var(--plate), 1px 2px 3px rgba(0, 0, 0, .3);
}

.punbb .user-avatar a:hover {
    filter: none;
}

.punbb .user-avatar .isonline {
    top: -4px !important;
    right: -3px !important;
    background: none !important;
    animation: none !important;
    -webkit-animation: none !important;
}

.punbb .usersname {
    padding: 20px !important;
    font-size: 12px;
    line-height: 36px;
}

.punbb .byuser {
    line-height: 15px;
}

.lastpost .byuser {
    line-height: 10px;
}

/* список тем */

.punbb .main .forum td {
    padding-top: 13px;
    padding-bottom: 13px;
    border: 0 !important;
    vertical-align: middle;
}

div#pun-main.main.multipage .forum table .tcl {
    border: 0 !important;
}

#pun-viewforum .tc2,
#pun-viewforum .tc3 {
    width: 9%;
    text-align: center;
    background-color: transparent;
}

#pun-viewforum td.tc2,
#pun-viewforum td.tc3 {
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    color: rgba(var(--ink-rgb), .7);
}

.punbb .forum td.tcl .byuser,
.punbb .forum td.tcl .pagestext,
.punbb .forum td.tcl .newtext {
    margin-left: 6px;
    font-family: var(--f-sans);
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.punbb .forum td.tcl .newtext a {
    font-weight: 600;
    color: var(--red);
}

/* список тем: последнее сообщение */

.punbb .main .forum td.tcr .user-avatar {
    display: block;
    float: left !important;
    margin: 0 12px 0 0 !important;
    line-height: 0;
}

.punbb .main .forum td.tcr > a,
.punbb .main .forum td.tcr > .byuser {
    display: block;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 16px;
}

.punbb .main .forum table .tcr a {
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    text-decoration: none;
}

.punbb .main .forum table .tcr a:hover {
    color: var(--red);
    text-decoration: underline;
}

.punbb .main .forum table .tcr .byuser {
    font-family: var(--f-sans);
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    color: var(--muted);
    text-indent: -.28em;
}

.punbb .main .forum td.tcr,
.punbb .main .forum th.tcr {
    padding-left: 28px;
}

#pun-viewforum .forum th.tcr,
.punbb .main .forum th.tcr {
    text-align: left !important;
}

/* список тем: «важные темы» и «темы форума» */

#pun-viewforum .forum tbody tr.isticky:first-child td,
#pun-viewforum .forum tbody tr.isticky + tr:not(.isticky) td {
    padding-top: 48px;
}

#pun-viewforum .forum tbody tr.isticky:first-child td.tcl,
#pun-viewforum .forum tbody tr.isticky + tr:not(.isticky) td.tcl {
    position: relative;
}

#pun-viewforum .forum tbody tr.isticky:first-child td.tcl::before,
#pun-viewforum .forum tbody tr.isticky + tr:not(.isticky) td.tcl::before {
    position: absolute;
    top: 16px;
    left: 4px;
    font-family: var(--f-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}

#pun-viewforum .forum tbody tr.isticky:first-child td.tcl::before {
    content: "важные темы";
}

#pun-viewforum .forum tbody tr.isticky + tr:not(.isticky) td.tcl::before {
    content: "темы форума";
}

/* 5.3 Значки статуса
-------------------------------------------------------------*/

:root {
    --ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 1.5h5l-.7 4.2 2.7 2.6V10h-9V8.3l2.7-2.6zM8 10v4.5' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
    --ico-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7.5' rx='1.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* список тем: раскладка */

.punbb .forum td.tcl .intd,
#pun-messages td.tcl .intd {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.punbb .forum td.tcl .tclcon,
#pun-messages td.tcl .tclcon {
    flex: 1 1 auto;
    min-width: 0;
}

/* список тем: названия */

.punbb .forum td.tcl .tclcon > div > a,
.punbb .forum td.tcl .tclcon > a,
#pun-messages td.tcl .tclcon > div > a,
#pun-messages td.tcl .tclcon > a {
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-rgb);
}

.punbb .forum tr.inew td.tcl .tclcon > div > a,
.punbb .forum tr.inew td.tcl .tclcon > a,
#pun-messages tr.inew td.tcl .tclcon > div > a,
#pun-messages tr.inew td.tcl .tclcon > a {
    font-weight: 700;
    color: var(--ink);
}

.punbb .forum td.tcl .tclcon a:hover,
#pun-messages td.tcl .tclcon a:hover {
    color: var(--red)!important;
}

/* список тем: значок */

.punbb .forum td.tcl .intd > .icon,
#pun-messages td.tcl .intd > .icon {
    position: relative;
    display: block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    min-height: 0 !important;
    margin-top: 1px;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
    font-size: 0;
    color: rgba(var(--ink-rgb), .3);
}

.punbb .forum td.tcl .intd > .icon::after,
#pun-messages td.tcl .intd > .icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: 8px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* есть новое */

.punbb .forum tr.inew td.tcl .intd > .icon,
.punbb .forum td.tcl .intd > .icon.icon-new,
#pun-messages tr.inew td.tcl .intd > .icon {
    color: var(--red);
}

.punbb .forum tr.inew td.tcl .intd > .icon::after,
.punbb .forum td.tcl .intd > .icon.icon-new::after,
#pun-messages tr.inew td.tcl .intd > .icon::after {
    width: 9px;
    height: 9px;
    border: 0;
    background: currentColor;
}

/* закреплённая */

.punbb .forum tr.isticky td.tcl .intd > .icon,
#pun-messages tr.isticky td.tcl .intd > .icon {
    color: var(--muted);
}

.punbb .forum tr.isticky.inew td.tcl .intd > .icon,
#pun-messages tr.isticky.inew td.tcl .intd > .icon {
    color: var(--red);
}

.punbb .forum tr.isticky td.tcl .intd > .icon::after,
#pun-messages tr.isticky td.tcl .intd > .icon::after {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 0;
    background: currentColor;
    box-shadow: none;
    -webkit-mask: var(--ico-pin) center / contain no-repeat;
    mask: var(--ico-pin) center / contain no-repeat;
}

/* закрытая */

.punbb .forum tr.iclosed td.tcl .intd > .icon,
#pun-messages tr.iclosed td.tcl .intd > .icon {
    color: rgba(var(--ink-rgb), .35);
}

.punbb .forum tr.iclosed td.tcl .intd > .icon::after,
#pun-messages tr.iclosed td.tcl .intd > .icon::after {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 0;
    background: currentColor;
    box-shadow: none;
    -webkit-mask: var(--ico-lock) center / contain no-repeat;
    mask: var(--ico-lock) center / contain no-repeat;
}

/* 5.4 Карточки форумов на главной
-------------------------------------------------------------*/

#pun-index .category table,
#pun-index .category tbody {
    display: block;
    width: 100%;
}

#pun-index .category tbody.hasicon {
    padding: 14px 0 8px;
}

#pun-index .category tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px 174px;
    grid-template-rows: auto 1fr;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 1px 3px var(--shadow);
}

#pun-index .category tr > td {
    display: block;
    width: auto !important;
    margin: 0;
    border: 0;
}

/* левая часть: название, описание, ссылки */

#pun-index .category tr > td.tcl {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 13px 20px 13px 18px;
}

#pun-index .category .intd {
    display: block;
}

#pun-index .category .intd > .icon,
#pun-index .category .tclcon > br,
#pun-index .category .tclcon > .Add {
    display: none;
}

#pun-index .category .tclcon {
    display: flex;
    flex-direction: column;
    padding: 0;
}

#pun-index .category .tclcon h3 {
    order: 0;
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.2;
}

#pun-index .category .tclcon h3 a {
    color: var(--ink);
}

#pun-index .category .tclcon h3 a:hover {
    color: var(--red);
}

#pun-index .category tr.inew .tclcon h3::after {
    content: "new";
    display: inline-block;
    margin-left: 8px;
    padding: 1px 4px 2px;
    background: var(--red);
    font-family: var(--f-sans);
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--plate);
    vertical-align: 3px;
    transform: rotate(-6deg);
}

#pun-index .category .sacraforum1 {
    order: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.55;
    text-transform: none;
    color: var(--muted);
}

#pun-index .category .sacraforum2 {
    order: 2;
    gap: 5px;
    margin: 10px 0 0;
}

#pun-index .category .sacraforum2 br {
    display: none;
}

#pun-index .category .sacraforum2 .sacralink {
    padding: 2px 8px 3px;
    border: 0;
    border-radius: var(--radius);
    background: var(--fill);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

#pun-index .category .sacraforum2 .sacralink:hover {
    background: var(--red-soft);
    color: var(--red);
}

/* правая колонка: счётчики и последний пост */

#pun-index .category tr > td.tc2,
#pun-index .category tr > td.tc3 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0 4px;
    background: var(--paper);
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: var(--muted);
}

#pun-index .category tr > td.tc2 {
    grid-column: 2;
    grid-row: 1;
    padding-left: 16px;
    border-left: 1px solid var(--line);
    --count-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 1.5h7l3 3v10H3z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M5.5 8h5M5.5 11h5' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}

#pun-index .category tr > td.tc3 {
    grid-column: 3;
    grid-row: 1;
    --count-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2.5h12v8.5H7l-3.5 3v-3H2z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#pun-index .category tr > td.tc2::before,
#pun-index .category tr > td.tc3::before {
    content: "";
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    background: currentColor;
    opacity: .8;
    -webkit-mask: var(--count-ico) center / contain no-repeat;
    mask: var(--count-ico) center / contain no-repeat;
}

#pun-index .category tr > td.tcr {
    grid-column: 2 / 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
    align-content: start;
    align-items: center;
    padding: 10px 16px 12px;
    overflow: hidden;
    border-left: 1px solid var(--line);
    background: var(--paper);
}

#pun-index .category td.tcr > br {
    display: none;
}

#pun-index .category td.tcr .user-avatar {
    grid-column: 1;
    grid-row: 1 / 3;
    float: none !important;
    margin: 0 !important;
}

#pun-index .category td.tcr .lastpost-link {
    grid-column: 2;
    display: block;
    margin: 0;
    overflow: hidden;
    border: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.35;
}

#pun-index .category td.tcr .lastpost {
    grid-column: 2;
    display: block;
    min-width: 0;
    font-size: 0;
    line-height: 1.5;
}

#pun-index .category td.tcr .datetime {
    display: block;
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

#pun-index .category td.tcr .byuser {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10.5px;
    line-height: 1.5;
}

#pun-index .category tr {
    position: relative;
}

#pun-index .category tr::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    border-left: 1px solid var(--line);
    background-color: var(--paper);
    background-image: var(--bckg-img);
    background-blend-mode: color-burn;
    background-position: unset;
    background-size: cover;
    pointer-events: none;
}

[data-theme="dark"] #pun-index .category tr::before {
    background-blend-mode: normal;
    opacity: .3;
}

#pun-index .category tr > td.tc2,
#pun-index .category tr > td.tc3,
#pun-index .category tr > td.tcr {
    position: relative;
    z-index: 1;
    border-left: 0;
    background: transparent;
}

/* категория: фото сверху и снизу */

#pun-index #pun-main .category {
    position: relative;
    margin: 0 0 28px;
    padding: 0 30px 26px;
    overflow: hidden;
    border-radius: var(--radius);
}

#pun-index #pun-main .category::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--cat-noise-color);
    background-image: var(--cat-noise, none);
    background-size: var(--cat-noise-size, 300px);
    background-repeat: repeat;
    pointer-events: none;
}

#pun-index #pun-main .category::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--cat-bg, var(--stats-img, var(--bckg-img, none))) center top / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 50px, transparent 170px, transparent calc(100% - 130px), #000 calc(100% - 20px));
    mask-image: linear-gradient(to bottom, #000 0, #000 50px, transparent 170px, transparent calc(100% - 130px), #000 calc(100% - 20px));
    pointer-events: none;
}

#pun-index #pun-main .category > * {
    position: relative;
    z-index: 1;
}

#pun-index #pun-main .category h2 {
    min-height: 0;
    margin: 0;
    padding: 22px 0 16px;
    border-bottom: 0;
}

#pun-index #pun-main .category tbody.hasicon {
    padding: 0;
}

/* 5.5 Списки тем
-------------------------------------------------------------*/

:is(#pun-searchtopics #pun-main .forum, #pun-online #pun-main .online-list) {
    position: relative;
    overflow: hidden;
    padding: 10px;
    border-radius: var(--radius);
}

:is(#pun-searchtopics #pun-main .forum, #pun-online #pun-main .online-list)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--cat-noise-color);
    background-image: var(--cat-noise, none);
    background-size: var(--cat-noise-size, 300px);
    background-repeat: repeat;
    pointer-events: none;
}

:is(#pun-searchtopics #pun-main .forum, #pun-online #pun-main .online-list)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--cat-bg, var(--stats-img, var(--bckg-img, none))) center top / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 50px, transparent 170px, transparent calc(100% - 130px), #000 calc(100% - 20px));
    mask-image: linear-gradient(to bottom, #000 0, #000 50px, transparent 170px, transparent calc(100% - 130px), #000 calc(100% - 20px));
    pointer-events: none;
}

:is(#pun-searchtopics #pun-main .forum, #pun-online #pun-main .online-list) > :is(h2, .container) {
    position: relative;
    z-index: 1;
}

:is(#pun-searchtopics #pun-main .forum, #pun-online #pun-main .online-list) > .container {
    border-radius: calc(var(--radius) - 2px);
    background: var(--card);
}

/*************************************************************
  6. СЛУЖЕБНЫЕ СТРАНИЦЫ И ТАБЛИЦЫ
**************************************************************/

/* 6.1 Пользователи
-------------------------------------------------------------*/

#pun-userlist .main .tcl,
#pun-modviewforum .main .tcl {
    width: 30%;
    background-color: transparent;
}

#pun-userlist .formal, #pun-userlist .formal .container {
    margin-bottom: 0;
    border-bottom: none;
}

#pun-userlist .usertable .container {
    padding: 0 1.5em 2.3em 1.5em;
    border-top: none;
}

#pun-userlist .usertable table {
    border-style: solid;
    border-width: 1px;
}

#pun-userlist .main th.tc2.title, #pun-userlist .main th.tc3.relation, #pun-userlist .main th.tc3.posts,
#pun-userlist .main th.tc3.registered, #pun-userlist .main th.tc3.last_visit {
    padding-left: 2px !important;
    text-align: left !important;
}

#pun-main.main.multipage div.usertable table .tcl.username, #pun-main.main.multipage div.usertable table .tc2.title,
#pun-main.main.multipage div.usertable table .tc3.relation, #pun-main.main.multipage div.usertable table .tc3.posts,
#pun-main.main.multipage div.usertable table .tc3.registered, #pun-main.main.multipage div.usertable table .tc3.last_visit {
    padding-left: 0 !important;
    text-align: center !important;
}

#pun-main.main.multipage div.usertable table .tcl.username, #pun-main.main.multipage div.usertable table .tc2.title {
    width: 30% !important;
}

#pun-main.main.multipage div.usertable table .tc3.posts, #pun-main.main.multipage div.usertable table .tc3.registered {
    width: 15% !important;
}

#pun-main.main.multipage div.usertable table .tcl.username span.usersname {
    font-size: 11px !important;
    line-height: 10px !important;
}

.usertable .tc3.last_visit  { width: 8% !important; }
.usertable .tc3.registered  { width: 15% !important; }
.usertable .tc2.title       { width: 15% !important; }
.usertable .tc3.posts       { width: 10% !important; }

.usertable .usersname {
    padding: 10px !important;
}

/* 6.2 Сейчас на форуме
-------------------------------------------------------------*/

.section.online-list .tcl.action, .section.online-list .tcl.username, .section.online-list .tc3 {
    padding-left: 20px;
}

.section.online-list .tcl.username { width: 40%; }
.section.online-list .tcl.action   { width: 50%; }
.section.online-list .tc3          { width: 10% !important; }

.section.online-list th {
    padding-left: 20px !important;
    text-align: left !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.section.online-list .tc3.time {
    text-align: center !important;
}

/* 6.3 Активные темы, новые сообщения, поиск, репутация
-------------------------------------------------------------*/

.main.multipage.show_recent, .main.multipage.show_unanswered, .main.multipage.show_replies, .main.multipage.show_subscriptions {
    width: 100%;
}

.main.multipage.show_recent .tcr, .main.multipage.show_unanswered .tcr, .main.multipage.show_replies .tcr, .main.multipage.show_subscriptions .tcr {
    width: 40% !important;
}

.main.multipage.show_new .tc3, .main.multipage.show_recent .tc3, .main.multipage.show_replies .tc3,
.main.multipage.show_unanswered .tc3, .main.multipage.show_subscriptions tc3 {
    padding-left: 12px;
    text-align: center;
}

.main.multipage .tcr {
    width: 15% !important;
}

.main.multipage .forum .tcr {
    width: 22% !important;
}

div#pun-main.main.multipage table .tcl {
    padding-left: 10px;
    border: none !important;
    text-align: left;
}

div#pun-main .forum table .tcl {
    width: 42%;
}

div#pun-main.main.multipage table .tc2 {
    text-align: center;
}

div .modal-inner .tc2 {
    width: 5% !important;
}

div#pun-main.main.multipage table .tc3 {
    width: 20% !important;
    text-align: center;
}

/* 6.4 Статистика форума (рекорды, топы)
-------------------------------------------------------------*/

#administration.section, #most_active.section, #most_connected.section, #most_invitations.sections,
#most_viewed_topics.section, #most_replied_topics.section {
    margin-left: 1%;
}

#administration th.tc2.tc-title, #administration th.tcl.tc-username, #most_active th.tcl.tc-username,
#most_active th.tcl.tc-title, #most_connected th.tcl.tc-username, #most_connected th.tcl.tc-title,
#most_viewed_topics th.tcl.tc-topic, #most_replied_topics th.tcl.tc-topic {
    padding-left: 0 !important;
    letter-spacing: 1px;
}

#most_viewed_topics td.tcl.tc-topic, #most_replied_topics td.tcl.tc-topic {
    padding-right: 5px;
}

#administration th.tc3.tc-registered, #administration th.tc3.tc-posts, #administration th.tc3.tc-lastvisit,
#most_active th.tc3.tc-registered, #most_active th.tc3.tc-posts, #most_active th.tc3.tc-percent,
#most_connected th.tc3.tc-registered, #most_connected th.tc3.tc-posts, #most_connected th.tc3.tc-timevisit,
#most_invitations th.tc3.tc-registered, #most_invitations th.tc3.tc-invites, #most_invitations th.tc3.tc-lastvisit,
#most_viewed_topics th.tc3.tc-replies, #most_viewed_topics th.tc3.tc-views,
#most_replied_topics th.tc3.tc-replies, #most_replied_topics th.tc3.tc-views {
    padding-left: 2px !important;
    text-align: left;
}

/* страница подробной статистики */

#pun-statistic #pun-main .section {
    margin: 0 0 18px;
    padding: 6px 18px 10px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--card);
}

#pun-statistic #pun-main .section:not(:has(tbody tr)) {
    display: none;
}

#pun-statistic #pun-main .section h1 {
    margin: 10px 0 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

#pun-statistic #pun-main .section table {
    width: 100%;
    table-layout: auto;
}

#pun-statistic #pun-main .section :is(th, td) {
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
}

#pun-statistic #pun-main .section th {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-align: left !important;
    color: var(--muted);
}

#pun-statistic #pun-main .section tbody tr + tr td {
    border-top: 1px solid var(--line);
}

#pun-statistic #pun-main .section .tc-username {
    width: 22%;
}

#pun-statistic #pun-main .section .tc3 {
    width: 1%;
    white-space: nowrap;
    text-align: center !important;
}

/* 6.5 Личные сообщения
-------------------------------------------------------------*/

.tcl.pmtcl1 {
    width: 30% !important;
}

.tc2.pmtc22 {
    width: 17% !important;
    text-align: center;
}

.tc3.pmtc33, .tc2.pmtc24 {
    text-align: center;
}

#messages .fs-box .container {
    width: 104% !important;
    margin-left: -60px !important;
    padding: 10px !important;
}

#messages .fs-box .container table {
    width: 100% !important;
}

.formal.messages-container #notify-settings {
    margin-left: 40px !important;
}

.formal.messages-container #post-form.formal {
    margin-left: -40px !important;
    margin-right: 50px;
}

/* 6.6 Инфо-панель
-------------------------------------------------------------*/

#info {
    display: block;
    max-width: 900px;
    margin: 0 auto 18px;
    border-radius: var(--radius);
    padding: 30px;
    border: 0;
    background: var(--bckg-img, none) center / cover no-repeat var(--card-line);
    font-family: var(--f-sans);
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--muted);
}

#info tbody {
    display: block;
}

#info tr {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    border-radius: 2px;
    background: var(--card);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}

#info td {
    display: block;
    width: auto !important;
    padding: 0;
}

#info br + br,
#info td:first-child br,
#info td:nth-child(3) > strong:first-child,
#info td:nth-child(3) > strong:first-child + br {
    display: none;
}

#info td:first-child {
    flex: 0 0 96px;
    text-align: center;
}

#info td:first-child img {
    display: block;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto !important;
    padding: 3px !important;
    object-fit: cover;
    background: var(--plate);
    box-shadow: 0 1px 4px var(--shadow);
    transform: rotate(-2deg);
}

.info-link img:hover {
    filter: grayscale(1);
    transition: filter .3s ease;
}

#info td:first-child strong {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    width: auto !important;
    margin-top: 8px;
    font-family: var(--f-sans) !important;
    font-size: 9.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: var(--muted);
}

#info td:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--ink);
}

#info td:nth-child(2) strong {
    font-weight: 700;
    color: var(--ink);
}

#info td:nth-child(2) a,
#info td:nth-child(2) a strong {
    color: var(--red);
}

#info td:nth-child(2) a:hover strong {
    text-decoration: underline;
}

#info td:nth-child(2) > strong:last-child {
    display: flex !important;
    gap: 10px;
    margin-top: 8px;
    letter-spacing: 0 !important;
}

#info td:nth-child(2) > strong:last-child img {
    display: block;
    width: 18px;
    height: 18px;
    opacity: .55;
    transition: opacity .15s;
}

#info td:nth-child(2) > strong:last-child a:hover img {
    opacity: 1;
}

#info td:nth-child(3) {
    flex: 0 0 290px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.75;
    text-transform: lowercase;
}

#info td:nth-child(3) strong {
    font-weight: 700;
    color: var(--ink);
}

#info td:nth-child(3) a {
    color: var(--red);
}

#info td:nth-child(3) a:hover {
    text-decoration: underline;
}

/* 6.7 Опросы
-------------------------------------------------------------*/

.formal.vote-result {
    width: 95%;
    margin-left: 20px;
    padding-top: 0 !important;
}

#pun-main .vote-result h1 {
    margin: 13px 0 !important;
}

#poll-special td {
    padding: 0 12px;
}

.question td.tac strong {
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
}

.poll2 {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--f-sans);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.poll2 td {
    padding: 5px 8px;
    vertical-align: middle;
    border-bottom: 1px dotted rgba(var(--ink-rgb),  .15);
    color: rgba(var(--ink-rgb),  .55);
}

.poll2 tr.question td {
    padding: 8px 8px 10px;
    border-bottom: 1px solid var(--line);
}

.poll2 td:nth-child(2) h1 {
    min-width: 2px;
    height: 4px !important;
    margin: 0;
    padding: 0;
    background: var(--sage) !important;
    font-size: 1px !important;
}

.poll2 tr:last-child td {
    padding-top: 6px;
    border-top: 1px dashed rgba(var(--ink-rgb),  .2);
    border-bottom: none;
    text-align: center;
    color: rgba(var(--ink-rgb),  .35);
}

.poll2 strong {
    font-weight: 400;
    color: var(--ink);
}

/* 6.8 Страница наград и админка
-------------------------------------------------------------*/

#awards-content .tcl {
    width: 5%;
    padding-left: 10px;
}

#pun-main.main.mod-page tbody#awards-content .tc2 {
    text-align: center;
}

.adminmain {
    padding-left: 17em !important;
}

/* 6.9 Справка
-------------------------------------------------------------*/

#pun-help .formal .info-box h3.legend {
    margin-bottom: 0.8em;
    padding-bottom: 0;
    border-bottom-style: none;
    border-bottom-width: 0;
}

#pun-help .formal .info-box h3.legend span {
    display: block;
    padding-bottom: 0.6em;
    border-bottom-style: none;
    border-bottom-width: 0;
    font-size: 1.1em;
}

#pun-help .formal p, #pun-help .formal dd {
    margin-bottom: 1em;
}

#pun-help .formal ul, #pun-help .formal dl {
    padding: 0 0 0 1em;
}

#pun-help .formal li {
    padding: 0;
    line-height: 130%;
}

#pun-help .formal li * {
    vertical-align: text-top;
}

#pun-help .formal dt span {
    font: 1.4em/120% monaco, "bitstream vera sans mono", "courier new", courier, monospace;
}

#pun-help .formal .parsedmsg, #pun-help .formal .parsedmsg .incode {
    padding-bottom: 0;
}

/* 6.10 Отладка
-------------------------------------------------------------*/

#pun-debug table .tcl {
    width: 15%;
    white-space: normal;
    background-color: transparent;
}

#pun-debug .tcr {
    width: 90%;
    white-space: normal;
    background-color: transparent;
}


/*************************************************************
  7. ТЕМА: ПОСТЫ, ПРОФИЛЬ АВТОРА, ССЫЛКИ ПОСТА
**************************************************************/

/* 7.1 Пост целиком
-------------------------------------------------------------*/

.topic .post {
    --pg: 12px;
    --pin: 20px;
    margin: 18px -30px 0;
}

.punbb .post .container {
	width: auto;
}

.punbb .post-body {
    margin-left: calc(var(--pg) * 2 + 252px + var(--pin));
    margin-right: calc(var(--pg) + var(--pin));
    padding: 0 0 1px;
    border-left: 0;
}

.punbb .post-box {
    padding: 1px 0 0 2px;
}

.punbb fieldset .post-box {
    margin-bottom: 0.8em;
}

.punbb .clearer {
    clear: both;
    height: 0;
    font-size: 0;
}

/* для страницы поиска */

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) .post {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 18px 0 0;
}

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) .post > .container {
    display: contents;
}

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) .post > h3 {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    margin: 0 var(--pg) 0 0;
}

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) .post .post-author {
    order: 0;
    float: none;
    width: auto !important;
    min-height: 0;
    margin: 0 var(--pg) 0 var(--pg) !important;
    padding: 0;
    border-radius: 0;
    background: none;
}

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) .post .post-author ul {
    display: block;
    padding: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
}

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) .post .pa-author {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 150px;
    height: 32px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--paper);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) .post .post-author li:not(.pa-author) {
    display: none;
}

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) .post .post-body {
    order: 2;
    flex: 0 0 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 var(--pg);
    border-left: 0;
    min-width: 0;
}

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) .post .post-links {
    order: 3;
    flex: 0 0 100%;
}

:is(#pun-searchposts, #pun-post, #pun-edit, #pun-messages) :is(.post-content, .post-links) {
    padding-right: 14px;
}

#pun-messages .post .post-author li:not(.pa-author),
#pun-messages .post .post-author .profilefields {
    display: none;
}

#pun-messages.punbb .post {
    flex-wrap: wrap;
    align-items: center;
}

#pun-messages.punbb .post > h3 {
    margin: 0 0 0 10px!important;
}

#pun-messages.punbb .post .post-body {
    flex-basis: 100%;
    margin: 10px 0 0 !important;
}

/* 7.2 Заголовок поста
-------------------------------------------------------------*/

.punbb .post h3 {
    margin: 0 var(--pg) 10px calc(var(--pg) * 2 + 252px);
    border: 0;
}

.punbb .post h3 strong {
    float: right;
    text-align: right;
    font-weight: normal;
}

#pun-main .topic h3 span {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    height: 32px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(var(--ink-rgb), .65);
}

#pun-main .topic h3 span .FNTslider {
    display: none;
}

#pun-main .topic h3 span .permalink {
    order: 1;
    margin-left: 0;
    border-bottom: 1px solid transparent;
    color: rgba(var(--ink-rgb), .65);
    text-decoration: none;
}

#pun-main .topic h3 span .copy-permalink {
    order: 2;
    margin-left: -4px;
}

#pun-main .topic h3 span strong:first-of-type {
    order: 3;
    margin-left: auto;
    font-weight: 500;
    color: var(--muted);
}

#pun-main .topic h3 span strong.fnt {
    order: 4;
}

#pun-main .topic h3 span .permalink:hover {
    border-bottom-color: var(--red);
    color: var(--red);
}

#pun-main .topic h3 span strong.fnt {
    margin-right: 0 !important;
    font-weight: 400;
    color: rgba(var(--ink-rgb), .65);
}

#pun-main .topic h3 span strong.fnt img {
    vertical-align: middle;
    opacity: 0.6;
}

.fnt {
    font-family: var(--f-sans);
}

.fnt img {
    margin: 0 5px -2px;
    border-radius: 0;
    cursor: pointer;
    filter: grayscale(100%);
}

#pun-main .topic h3 span strong.fnt {
    margin-right: 0 !important;
}

#pun-main .topic h3 span strong.fnt {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 0 !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    font-weight: 600;
}

#pun-main .topic h3 span strong.fnt img {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

#pun-main .topic h3 span strong.fnt::before,
#pun-main .topic h3 span strong.fnt::after {
    position: absolute;
    top: 50%;
    z-index: 0;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--paper);
    text-align: center;
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: var(--muted);
    transition: background-color .15s, color .15s;
    pointer-events: none;
}

#pun-main .topic h3 span strong.fnt::before {
    content: "\2212";
    left: 0;
}

#pun-main .topic h3 span strong.fnt::after {
    content: "+";
    right: 0;
}

#pun-main .topic h3 span strong.fnt:has(img:first-of-type:hover)::before,
#pun-main .topic h3 span strong.fnt:has(img:last-of-type:hover)::after {
    background: var(--fill-2);
    color: var(--red);
}

/* 7.3 Профиль автора
-------------------------------------------------------------*/

:root {
    --ico-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M10.5 2.5l3 3L6 13H3v-3z'/%3E%3Cpath d='M9 4l3 3'/%3E%3C/svg%3E");
    --ico-coins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'%3E%3Cellipse cx='8' cy='4.5' rx='5' ry='2'/%3E%3Cpath d='M3 4.5v3.5c0 1.1 2.2 2 5 2s5-.9 5-2V4.5M3 8v3.5c0 1.1 2.2 2 5 2s5-.9 5-2V8'/%3E%3C/svg%3E");
    --ico-bubble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M3 2.5h10a1 1 0 0 1 1 1V10a1 1 0 0 1-1 1H7l-3 2.5V11H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
    --ico-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M8 1.8l1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.6l-3.8 2 .7-4.3-3.1-3 4.3-.6z'/%3E%3C/svg%3E");
}

/* рама и карточка */

.punbb .post .post-author {
    position: relative;
    float: left;
    width: 234px;
    min-height: 76px;
    padding: 9px;
    overflow: visible;
    border: 0;
    border-radius: var(--radius);
    background: var(--pa-img, var(--bckg-img, none)) center / cover no-repeat var(--card-line);
    backdrop-filter: none;
    box-shadow: none;
    margin: -42px 0 0 var(--pg) !important;
}

.punbb .post .post-author ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 16px 10px 10px;
    border-radius: 2px;
    background: var(--card);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    text-align: center;
}

.punbb .post .post-author p {
    margin: 0;
    padding: 0;
}

/* порядок внутри карточки */

.post-author .pa-author     { order: 1; }
.post-author .pa-title      { order: 2; }
.post-author .pa-avatar     { order: 3; }
.post-author .pa-fld4       { order: 4; }
.post-author .pa-fld1       { order: 5; }
.post-author .pa-fld2       { order: 6; }
.post-author .profilefields { order: 7; }
.post-author .pa-online,
.post-author .pa-last-visit { order: 8; }
.post-author .pa-awards     { order: 9; }
.post-author .pa-ip         { order: 10; }

.post-author .pa-ua,
.pa-replies {
    display: none !important;
}

/* значок над рамой */

.pa-fld6 {
    position: absolute;
    top: -9px;
    left: 50%;
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--card);
    transform: translateX(-50%);
}

.pa-fld6 img {
    max-width: 24px;
    max-height: 24px;
}

/* ник и статус */

.pa-author {
    margin: 0 0 2px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.pa-author a {
    overflow-wrap: anywhere;
    color: var(--ink) !important;
    text-decoration: none;
}

.pa-author a:hover {
    color: var(--red) !important;
}

.post-author li.pa-title {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--f-sans);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    overflow-wrap: anywhere;
    box-shadow: none;
    transform: none;
}

/* аватар */

.post-author li.pa-avatar.item2 {
    padding: 0;
    background: transparent;
}

.post-author li.pa-avatar.item2 img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
    max-width: 180px;
    max-height: 180px;
}

.pa-avatar.item2 img.allow_change {
    transition: filter .8s ease !important;
}

.pa-avatar.item2 img.allow_change:hover {
    outline-color: transparent !important;
    filter: grayscale(1);
}

/* плашка под аватаром */

.post-author li.pa-fld4:has(img) {
    margin: -8px -10px 0;
    padding: 0;
    background: transparent;
}

.post-author li.pa-fld4:not(:has(img)) {
    display: none;
}

.post-author li.pa-fld4 img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* иконки ссылок */

.pa-fld1 {
    position: static;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.pa-fld1 a {
    display: inline-flex;
    width: 16px;
    height: 16px;
    line-height: 0;
    opacity: .55;
    transition: opacity .15s;
}

.pa-fld1 a:hover {
    opacity: 1;
}

.pa-fld1 img {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    border: 0 !important;
    background: transparent !important;
}

:is(.pa-fld1, #pa-fld1) button {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    cursor: pointer;
    line-height: 0;
    opacity: .55;
}

:is(.pa-fld1, #pa-fld1) button:hover {
    opacity: 1;
}

:is(.pa-fld1, #pa-fld1) button img {
    display: block;
}

/* лз */

.pa-fld2 {
    margin: 6px 0 0 !important;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--f-sans);
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
}

.pa-fld2:first-line {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ink);
}

.pa-fld2 b {
    font-weight: 600;
    color: var(--ink);
}

.pa-fld2 a {
    font-weight: 600;
    color: var(--red) !important;
    text-decoration: none;
}

.pa-fld2 a:hover {
    text-decoration: underline;
}

/* счётчики */

.post-author .profilefields {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    margin: 8px 0 0;
    padding: 7px 0 0;
    border-top: 1px solid var(--line);
}

.post-author .profilefields li {
    position: relative;
    display: grid !important;
    grid-template-rows: 14px auto;
    row-gap: 3px;
    justify-items: center;
    align-content: start;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 !important;
    white-space: nowrap;
    font-family: var(--f-sans);
    font-size: 10.5px !important;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: rgba(var(--ink-rgb), .8);
}

.post-author .profilefields li br {
    display: none !important;
}

.post-author .profilefields li:hover {
    z-index: 2;
}

.post-author ul > li:is(.pa-fld3, .pa-fld5, .pa-posts, .pa-respect) {
    display: none !important;
}

.post-author li.pa-fld3    { --ico: var(--ico-pen); }
.post-author li.pa-fld5    { --ico: var(--ico-coins); }
.post-author li.pa-posts   { --ico: var(--ico-bubble); }
.post-author li.pa-respect { --ico: var(--ico-star); }

.post-author li.pa-fld3::before,
.post-author li.pa-fld5::before,
.post-author li.pa-posts > a::before,
.post-author li.pa-respect .fld-name a::before,
.post-author li.pa-respect:not(:has(a))::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    margin: 0;
    background: var(--muted);
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
}

.post-author li.pa-posts > a:hover::before,
.post-author li.pa-respect .fld-name a:hover::before{
    background: var(--red);
}

.post-author li.pa-fld3 .fld-name,
.post-author li.pa-fld5 .fld-name,
.post-author li.pa-respect .fld-name:not(:has(a)) {
    display: none;
}

.post-author li.pa-posts > a,
.post-author li.pa-respect .fld-name,
.post-author li.pa-respect .fld-name a {
    display: block;
    width: 14px;
    height: 14px;
    font-size: 0;
    line-height: 0;
}

.post-author li.pa-respect > span:not(.fld-name) {
    display: block !important;
    grid-row: 2;
}

.post-author li.pa-respect > a {
    position: absolute;
    top: -1px;
    left: calc(50% + 7px);
    z-index: 2;
    width: 10px;
    height: 12px;
    line-height: 0;
}

.post-author li.pa-respect > a img {
    display: none;
}

.post-author li.pa-respect > a::after {
    content: "+";
    position: absolute;
    top: -3px;
    left: -1px;
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--muted);
}

.post-author li.pa-respect > a:hover::after {
    color: var(--red);
}

.post-author li.pa-respect:has(.fld-name a:hover)::before {
    background: var(--red);
}

.post-author li.pa-respect .fld-name {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    display: block;
    width: 16px;
    height: 16px;
    overflow: hidden;
    font-size: 0;
    transform: translateX(-50%);
}

.post-author li.pa-respect .fld-name a {
    display: block;
    width: 100%;
    height: 100%;
}

/* онлайн, визит, награды, ip */

li.pa-online,
li.pa-last-visit,
li.pa-awards,
.punbb .pa-ip {
    margin: 0;
    padding: 0;
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--muted);
}

li.pa-online,
li.pa-last-visit {
    margin-top: 6px;
}

li.pa-online::before {
    content: "\25CF\00A0";
    vertical-align: 1px;
    font-size: 7px;
    color: var(--red);
}

li.pa-awards a {
    font-weight: 600;
    color: var(--red) !important;
}

li.pa-awards .mini_awards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

li.pa-awards br {
    display: none;
}

.punbb .pa-ip {
    color: rgba(var(--ink-rgb), .4);
}

/* 7.4 Ссылки под постом
-------------------------------------------------------------*/

.punbb .post-links {
    margin: 0 var(--pg);
    border-left: 0;
}

.punbb .post-links ul {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 0;
    padding: 6px 0 2px;
    border-top: 0;
    background: transparent;
}

.punbb .post-links li {
    display: block;
    float: none;
    padding: 0;
    line-height: 0;
}

.punbb .post-links li:not(.pl-email, .pl-website):first-child,
.punbb .post-links li:is(.pl-email, .pl-website) + li:not(.pl-email, .pl-website) {
    margin-left: auto;
}

.main.multipage.show_user_posts .post-links a,
.main.multipage.search .post-links a {
    font-family: var(--f-sans);
    font-size: 11px !important;
    font-weight: 600;
}

.main.multipage.show_user_posts .post-links ul {
    margin-left: -225px;
    padding: 0 25px;
}

.post-links a {
    display: inline-flex;
    align-items: center;
    font-size: 0 !important;
    color: rgba(var(--ink-rgb), .55) !important;
    transition: color .15s;
    --ico: var(--pl-email);
}

.post-links a:hover {
    color: var(--red) !important;
}

.post-links a::after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    margin-left: 3px;
    background: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
}

.pl-delete a                       { --ico: var(--pl-delete); }
.pl-edit a                         { --ico: var(--pl-edit); }
.pl-quote a { --ico: var(--i-quote); }
.pl-quote.pl-reply a               { --ico: var(--pl-reply); }
.pl-reports a                      { --ico: var(--pl-report); }
.pl-ats a                          { --ico: var(--pl-search); }
.pl-email.profile a                { --ico: var(--pl-profile); }
.pl-email.profile a:nth-child(2)   { --ico: var(--pl-edit); margin-left: 10px; }
.pl-email.pm a                     { --ico: var(--pl-pm); }
.pl-email.email a                  { --ico: var(--pl-email); }

.main.multipage.show_user_posts .post-links a::after,
.main.multipage.search .post-links a::after {
    display: none;
}

/* 7.5 Репутация
-------------------------------------------------------------*/

.post-rating,
.post-vote {
    float: right;
    display: flex !important;
    align-items: center;
    width: auto;
    height: auto;
    margin: 14px 0 0;
    background: none;
}

.post-vote {
    margin-right: 6px;
}

.post-rating p.container,
.post-vote p.container {
    display: flex;
    align-items: center;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.post-rating p.container a {
    margin: 0;
    font-family: var(--f-sans);
    font-size: 12px !important;
    font-weight: 600;
    color: var(--muted) !important;
    opacity: 1;
    text-decoration: none;
    cursor: default !important;
}

div.post-vote p.container a {
    display: block;
    width: 16px;
    height: 16px;
    font-size: 0 !important;
    line-height: 0;
    color: var(--muted);
    --heart: var(--pl-heart);
    transition: color .15s;
    background: none !important;
}

div.post-vote p.container a:hover {
    color: var(--red) !important;
}

div.post-vote p.container a::after {
    transition: transform .15s;
}

div.post-vote p.container a:hover::after {
    transform: scale(1.15);
}

.post-vote a::after,
.post-rating p.container::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--heart, var(--pl-heart)) center / contain no-repeat;
    mask: var(--heart, var(--pl-heart)) center / contain no-repeat;
}

.post-rating p.container::before {
    margin-right: 6px;
    color: var(--muted);
}

.post-rating:has(+ .post-vote) p.container::before {
    display: none;
}

/* 7.6 Подпись
-------------------------------------------------------------*/

.punbb .post-sig dt {
    display: block;
    width: 70%;
    margin-left: 140px;
    margin-bottom: 5px;
    text-align: center;
}

img.sigimage {
    max-height: 140px;
}

.post-sig:before {
    content: '';
    position: absolute;
    left: 50%;
    width: 50%;
    height: 0;
    margin-top: -4px;
    border-top: 1px solid rgba(var(--ink-rgb), .15);
    transform: translateX(-50%);
}

/* 7.7 Страницы и «Ответить»
-------------------------------------------------------------*/

.punbb .linkst,
.punbb .linksb {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 4px;
    border: 0;
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.punbb .linkst::after,
.punbb .linksb::after {
    display: none;
}

.linkst .pagelink,
.linksb .pagelink {
    order: 1;
}

.linkst > noindex,
.linksb > noindex,
.linkst > .postlink,
.linksb > .postlink {
    order: 2;
    margin-left: auto;
}

.punbb .postlink {
    display: flex;
    gap: 6px;
    text-align: right;
    align-items: center;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--muted);
}

.punbb .linksb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border: 0;
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.linksb .postlink {
    order: 2;
}

.linksb .subscribelink {
    order: 2;
    width: auto;
    margin-left: auto;
    text-align: right;
}

.pagelink {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--card);
    font-size: 0;
    color: var(--muted);
}

.pagelink:not(:has(a)) {
    display: none;
}

.punbb .pagelink a,
.punbb .pagelink strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 24px;
    height: 24px;
    margin: 0;
    padding: 0 7px;
    border: 0 !important;
    border-radius: 999px;
    background: none !important;
    box-shadow: none !important;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    color: rgba(var(--ink-rgb), .65);
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.punbb .pagelink a:hover {
    background: var(--fill-2) !important;
    color: var(--ink);
}

.punbb .pagelink strong {
    background: var(--red) !important;
    color: var(--plate);
}

.pagelink span {
    padding: 0 3px;
    font-size: 11px;
    color: var(--muted);
}

.punbb .pagelink a.next,
.punbb .pagelink a.prev {
    color: var(--muted);
}

.punbb .linkst .postlink a,
.punbb .linksb .postlink a {
    display: inline-block;
    background: transparent !important;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--red) !important;
    text-decoration: none;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color .15s;
}

.punbb .linkst .postlink a:hover,
.punbb .linksb .postlink a:hover {
    text-decoration: underline;
}

.postlink.long {
    width: auto !important;
}

.subscribelink a {
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: lowercase;
    color: var(--red)!important;
}

.subscribelink a:hover {
    color: var(--sage)!important;
}

#pun-viewtopic .linkst > noindex,
#pun-viewtopic .linksb > noindex,
#pun-viewtopic .linkst .postlink,
#pun-viewtopic .linksb .postlink,
#pun-viewtopic .linkst .subscribelink {
    display: none;
}

/* 7.8 Кто в теме, модераторское меню
-------------------------------------------------------------*/

div#topic-users-in.modmenu {
    width: 99%;
}

#topic-users-in a:after {
    content: ',';
    font-size: 13px;
}

#topic-users-in a:last-child:after {
    display: none;
}

.punbb .modmenu strong, .punbb .modmenu a {
    height: 1.8em;
    line-height: 1.8em;
}

.punbb .modmenu .container strong {
    float: left;
    font-weight: 700!important;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.punbb .modmenu input {
    margin-left: 1em;
}

.punbb .modmenu .container {
    padding: 4px;
    text-align: left;
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.punbb .modmenu a {
    color: var(--red);
}

.punbb .modmenu a:hover {
    color: var(--red);
    text-decoration: underline;
}

.punbb .modmenu p.container:has(#messages-selector) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.punbb .modmenu p.container:has(#messages-selector) strong {
    margin-right: auto;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--muted);
}

.punbb .modmenu #messages-selector {
    margin: 0;
}

.punbb .modmenu p.container:has(#messages-selector) input.button {
    margin: 0 0 0 6px;
}

/* 7.9 Сообщения платформы (инфо-блоки)
-------------------------------------------------------------*/

.punbb .info .container {
    padding: 0.8em 3em;
}

.punbb .info .container .backlink {
    padding-top: 0.8em;
}

.punbb .info-box {
    margin: 0 0 1.1em 0;
    padding: 1.1em 1.7em 1em 1.7em;
    border: 0;
    border-top: 1px solid rgba(var(--ink-rgb), .2);
    background: transparent;
}

.punbb .info-box * {
    padding: 0 0 0.7em 0;
}

.punbb #pun-main .info-box .legend {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
}

.notify-message.jg-mention {
    border-left: none !important;
}

/* 7.10 Размер шрифта
-------------------------------------------------------------*/

strong.fnt .fnt-label {
    font-style: normal;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

strong.fnt .fnt-label:hover {
    color: var(--red);
}

strong.fnt .fnt-min {
    display: none;
    width: 42px;
    height: 20px;
    margin: 0 4px;
    padding: 0 4px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    text-align: center;
}

strong.fnt.fnt-min-open .fnt-min {
    display: inline-block;
}

strong.fnt .fnt-min {
    -moz-appearance: textfield;
    appearance: textfield;
}

strong.fnt .fnt-min::-webkit-outer-spin-button,
strong.fnt .fnt-min::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*************************************************************
  8. СОДЕРЖИМОЕ ПОСТОВ
**************************************************************/

/* 8.1 Текст
-------------------------------------------------------------*/

.punbb .post-content {
    width: 100%;
    margin: -3px 0 0 -1px;
    padding: 0;
    overflow: hidden;
    text-align: justify;
}

.punbb .post-content p {
    margin: 10px 0 0 0;
    padding: 0 0 1em 0;
    line-height: 170%;
    color: var(--ink);
}

[data-theme="dark"] .post-content :is([style*="background"], [bgcolor], [background]):not(.hv-root *) {
    --ink: #34302c;
    --ink-rgb: 52, 48, 44;
    --muted: #7c746b;
    color: var(--ink);
}

[data-theme="dark"] .hv-root :is(.hv-panel, .hv-dialog) {
    color: var(--ink);
}

.punbb .post-content em {
    font-style: italic;
}

.punbb .post-content em.bbuline {
    font-style: normal;
    text-decoration: underline;
}

.punbb .post-content img {
    vertical-align: text-bottom;
}

.punbb .post-content img.postimg {
    vertical-align: middle;
}

ul.post-ul-Sp, .post-img-Sp {
    text-align: center;
}

.custom_tag_indent {
    display: inline-block;
    margin: 1em 2.1em;
}

.leftimg {
    float: left;
}

.rightimg {
    float: right;
    margin: 7px 0 7px 7px;
}

.vi {
    max-width: 64px;
    max-height: 64px;
    cursor: pointer;
}

.punbb .post-content a,
.punbb .post-content a:link {
    padding-bottom: 1px;
    color: var(--red);
    text-decoration: none;
}

.punbb .post-content a:hover {
    border-bottom-color: var(--ink);
    color: var(--ink);
}

.punbb .post-content a:active,
.punbb .post-content a:focus {
    border-bottom-color: var(--red);
    color: var(--red);
}

.post-content table {
    width: 100%;
    margin: auto !important;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 1px;
}

.post-content td {
    border-width: 0 !important;
}

/* 8.2 Цитата, код, спойлер
-------------------------------------------------------------*/

.punbb .post-content .blockcode, .punbb .post-content blockquote {
    overflow: hidden;
    padding: 5px 9px;
}

.punbb .post-content blockquote p {
    color: var(--ink) !important;
}

.punbb .post-content .blockcode pre {
    color: var(--ink) !important;
}

.punbb .post-content .scrollbox {
    width: 100%;
    overflow: auto;
    color: inherit;
}

.quote-box {
    position: relative;
    margin: 16px 0 12px;
    padding: 14px 16px 10px;
    border: 0;
    border-radius: var(--radius);
    background: var(--fill);
    border: 1px solid var(--card-line);
    box-shadow: none;
    font-size: 11px;
    line-height: 1.7;
    color: rgba(var(--ink-rgb), .8);
}

.quote-box:not(.spoiler-box) {
    position: relative;
    margin: 12px 0;
    padding: 11px 14px 12px !important;
    border: 0 !important;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: none;
    font-size: 11.5px;
    line-height: 1.7;
    color: rgba(var(--ink-rgb), .85);
}

.quote-box:not(.spoiler-box) > cite {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 5px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    transform: none;
    font-family: var(--f-sans);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.quote-box:not(.spoiler-box) > cite::before {
    content: "";
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    background: var(--red);
    opacity: .75;
    -webkit-mask: var(--i-quote) center / contain no-repeat;
    mask: var(--i-quote) center / contain no-repeat;
}

.quote-box:not(.spoiler-box) > blockquote {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

.quote-box:not(.spoiler-box) blockquote p {
    margin: 0;
}

.quote-box:not(.spoiler-box) blockquote p + p {
    margin-top: .6em;
}

.quote-box:not(.spoiler-box) .quote-box:not(.spoiler-box) {
    margin: 8px 0 10px;
    background: var(--card);
    border: 1px solid var(--card-line)!important;
}

.quote-box.spoiler-box span {
    color: var(--ink) !important;
}

.code-box .blockcode {
    position: relative;
    margin: 10px 0;
    padding: 10px 14px;
    border: 0;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--card-line);
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 10px;
    line-height: 1.6;
    color: rgba(var(--ink-rgb), .8);
}

.code-box .legend.code-tools {
    display: flex !important;
    align-items: baseline;
    gap: 12px;
    margin: 12px 0 5px;
    padding: 0 2px;
    font-family: var(--f-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.code-box .legend.code-tools::before {
    content: "код";
    font-weight: 700;
    color: var(--red);
}

.code-box .legend.code-tools a {
    color: var(--muted);
    text-decoration: none;
}

.code-box .legend.code-tools a:hover {
    color: var(--red);
}

.code-box .legend.code-tools a.done {
    color: var(--ink);
}

.code-box .legend + .blockcode {
    margin-top: 0;
}

.post-content .spoiler-box {
    margin: 12px 0;
    overflow: visible;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    box-shadow: none;
}

.post-content .spoiler-box > div {
    position: relative;
    padding: 9px 12px 9px 30px !important;
    border-radius: var(--radius);
    background: var(--card) !important;
    border: 1px solid var(--card-line);
    cursor: pointer;
    font-family: var(--f-sans);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    transition: background-color .15s, color .15s;
}

.post-content .spoiler-box > div:hover {
    color: var(--red);
}

.post-content .spoiler-box > div::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 11px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background: currentColor;
    opacity: .6;
    -webkit-mask: var(--i-chevron) center / contain no-repeat;
    mask: var(--i-chevron) center / contain no-repeat;
    transition: transform .2s;
}

.post-content .spoiler-box > div.visible {
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--fill-2) !important;
}

.post-content .spoiler-box > div.visible::before {
    transform: rotate(90deg);
}

.post-content .spoiler-box > blockquote {
    display: none;
    margin: 0;
    padding: 12px 14px !important;
    border: 1px solid var(--fill-2);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--card);
    font-size: 11.5px;
    line-height: 1.7;
    color: rgba(var(--ink-rgb), .85);
}

.post-content .spoiler-box > blockquote.visible {
    display: block;
    overflow: visible !important;
}

/* 8.3 Оформление служебных постов (правила, инфо-темы)
-------------------------------------------------------------*/

.sacraforum1 {
    margin-bottom: 6px;
    font-family: var(--f-sans);
    font-size: 11px;
    font-style: italic;
    line-height: 1.2em;
    text-transform: lowercase;
    color: rgba(var(--ink-rgb), .55);
}

.sacraforum2 {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 12px 0;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: lowercase;
}

.sacraforum2 .sacralink {
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(var(--ink-rgb), .4);
}

.sacraforum2 .sacralink:hover {
    border-color: var(--red);
    color: var(--red);
}

.sacth {
    position: relative;
    isolation: isolate;
    width: 576px;
    margin: 34px auto 16px;
    padding: 76px 38px 34px;
    border: 0;
    border-radius: var(--radius);
    background: var(--sacth-img, var(--cat-bg, var(--bckg-img, none))) center / cover no-repeat var(--card-line);
    box-shadow: none;
}

.sacth::before {
    content: "";
    position: absolute;
    top: 56px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: -1;
    border-radius: calc(var(--radius) - 2px);
    background: var(--card);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}

.sacttitle {
    display: table;
    margin: -60px auto 36px;
    padding: .12em .5em .16em;
    border: 0;
    background: var(--red);
    text-align: center;
    font-family: var(--f-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--plate);
    box-shadow: 1px 2px 0 var(--shadow);
    transform: rotate(-2deg);
}

.saccita {
    max-width: 500px;
    margin: 10px auto;
    text-align: center;
    font-family: var(--f-sans);
    font-size: 11.5px;
    font-style: normal;
    color: var(--muted);
    letter-spacing: 0;
}

.sacth hr {
    margin: 10px 0 14px;
    border: none;
    border-top: 1px solid rgba(var(--ink-rgb), .2);
}

.sacth > center > div > div[style] {
    width: 100% !important;
    text-align: left !important;
    font-family: var(--f-sans) !important;
    font-size: 11.5px !important;
    line-height: 1.7 !important;
    color: rgba(var(--ink-rgb), .8) !important;
}

.sacth img {
    max-width: 100%;
    margin: 12px 0;
    padding: 4px;
    border: 0;
    border-radius: 0;
    background: var(--plate);
    box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .15), 2px 3px 6px rgba(0, 0, 0, .15);
}


/*************************************************************
  9. ФОРМЫ, КНОПКИ, РЕДАКТОР
**************************************************************/

/* 9.1 Раскладка форм
-------------------------------------------------------------*/

.punbb .formal .container {
    padding: 1.7em 2.3em 1.1em 2.3em;
}

#pun-main #subforums {
    padding: 1em 3em !important;
}

.punbb .formsubmit {
    margin: 1em 0 0 0;
    padding: 0 0 0 1.7em;
}

.punbb fieldset {
    margin: 0 0 1em 0;
    padding: 0 18px;
    border-style: solid;
    border-width: 1px;
}

.punbb fieldset legend {
    margin: 0 0 -3px -10px;
    padding: 0;
    font-family: var(--f-sans);
    font-size: 12px;
    text-transform: lowercase;
}

.punbb fieldset fieldset {
    margin: 0;
    padding: 0 0 8px 0;
    border-style: none;
}

#profile fieldset {
    margin-top: 20px;
}

.punbb .fs-box {
    padding: 1em 0 0.8em 0;
}

.punbb .fs-box p, .punbb .fs-box fieldset {
    margin: -1px 0 0;
    padding: 0 0 0.8em 0;
}

.formal .fs-box p {
    margin: 5px 0 0 !important;
}

.formal .fs-box p.areafield {
    margin: -1px 0 0 !important;
}

.fs-box h3 {
    margin: 0 0 20px 2px;
}

div.formal h2 {
    height: 10px !important;
}

#post-form h2 {
    display: none;
}

.punbb .inline .inputfield, .punbb .inline .selectfield, .punbb .inline .passfield {
    float: left;
    margin-right: 1em;
}

.punbb .inline .infofield {
    clear: both;
}

.punbb .datafield br {
    display: none;
}

.punbb .required label, .punbb .datafield span.input {
    font-weight: bold;
}

.punbb .datafield span.input a {
    font-weight: normal;
}

.punbb .areafield span.input, .punbb p.longinput span.input {
    display: block;
    height: 100%;
    padding: 0 12em 0 0;
}

.checkfield input[type="checkbox"], .radiofield input[type="radio"] {
    margin: 0 0.3em;
}

p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
    height: 1.8em;
    vertical-align: middle;
}

.punbb .hashelp {
    position: relative;
}

.punbb .helplinks {
    position: absolute;
    top: 1em;
    right: 0;
    display: block;
    width: 36%;
    font-weight: normal;
}

.punbb #profile .helplinks {
    top: 1.5em;
}

.punbb .helplinks span {
    display: block;
    padding-bottom: 0.2em;
}

#pun-post .formal .info-box li {
    margin: 0;
    padding-left: 4px;
    line-height: 1.5;
    list-style-type: square;
    list-style-position: inside;
}

#post-errors {
    margin-left: -20px !important;
}

#post-new #post #post-form p span.checkfield {
    margin-right: -5%;
}

#pun-main #profile div.container #notify-settings {
    margin-left: 18px !important;
}

#register .info-box {
    width: 97% !important;
    margin-left: -10px !important;
}

#post-preview .fs-box .post-box .post-content {
    width: 95%;
}

#history_selected_version textarea {
    width: 104% !important;
}

/* 9.2 Поля ввода
-------------------------------------------------------------*/

.punbb input {
    margin: 0 5px 0 0;
    border-width: 1px;
    border-radius: 0;
    background-color: transparent;
    outline: none;
}

#login input {
    margin-right: 13px !important;
}

.punbb textarea,
.punbb input[type="text"],
.punbb input[type="password"],
.punbb input[type="email"],
.punbb input[type="url"],
.punbb input[type="number"],
.punbb select {
    border: 1px solid rgba(var(--ink-rgb), .45);
    border-radius: 0;
    outline: none;
    background-color: rgba(var(--plate-rgb), .7);
    box-shadow: none;
    font: 1em verdana, arial, helvetica, sans-serif;
    font-size: 11px;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

.punbb textarea:focus:not(#main-reply),
.punbb input[type="text"]:focus,
.punbb input[type="password"]:focus,
.punbb input[type="email"]:focus,
.punbb input[type="url"]:focus,
.punbb input[type="number"]:focus,
.punbb select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}

.punbb textarea,
.punbb .longinput input {
    overflow: auto;
    resize: both;
}

#form-buttons,
.punbb textarea,
.punbb .longinput input,
.punbb select {
    display: block;
    box-sizing: border-box;
    margin: 0;
}

#form-buttons,
.punbb textarea,
.punbb .longinput input{
    width: 100%;
}

#main-reply {
    border-top: none;
    border-radius: 0;
    line-height: 1.3;
    resize: both;
}

#post-form textarea {
    padding: 6px 8px;
    #post-form textarea
}

input[name='form[fld4]'], input[name='form[fld2]'], input[name='form[fld1]'], input[name='form[fld6]'] {
    width: 100%;
}

.inp2 input {
    margin: 0;
}

.inp2 label {
    line-height: 10px !important;
}

#post-form p.inputfield {
    margin: 0 0 12px;
}

#post-form p.inputfield br {
    display: none;
}

#post-form p.inputfield label {
    display: block;
    margin-bottom: 4px;
    font-family: var(--f-sans);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: lowercase;
    color: var(--muted);
}

#post-form p.inputfield input[type="text"] {
    box-sizing: border-box;
    width: 260px;
    max-width: 100%;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--card);
    font-family: var(--f-sans);
    font-size: 12px;
    color: var(--ink);
}

#post-form *:has(> p.inputfield) {
    display: flex;
    flex-direction: column;
}

#post-form p.inputfield {
    order: -1;
}

/* чекбоксы */

.punbb input[type="checkbox"],
.punbb input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-grid;
    place-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin: 0 6px 0 0!important;
    vertical-align: middle;
    margin-top: -2px;
    border: 1px solid rgba(var(--ink-rgb), .35);
    border-radius: 3px;
    background: var(--card);
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.punbb input[type="radio"] {
    border-radius: 50%;
}

.punbb input[type="checkbox"]:hover,
.punbb input[type="radio"]:hover {
    border-color: var(--red);
}

.punbb input[type="checkbox"]:checked,
.punbb input[type="radio"]:checked {
    border-color: var(--red);
    background: var(--red);
}

.punbb input[type="checkbox"]::before {
    content: "";
    width: 3.5px;
    height: 7px;
    margin-top: -2px;
    border: solid var(--plate);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .12s;
}

.punbb input[type="checkbox"]:checked::before {
    transform: rotate(45deg) scale(1);
}

.punbb input[type="checkbox"]:focus,
.punbb input[type="radio"]:focus {
    box-shadow: none;
}

.punbb input[type="radio"]::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--plate);
    transform: scale(0);
    transition: transform .12s;
}

.punbb input[type="radio"]:checked::before {
    transform: scale(1);
}

.punbb input[type="checkbox"]:focus-visible,
.punbb input[type="radio"]:focus-visible {
    outline: 2px solid rgba(var(--red-rgb), .35);
    outline-offset: 1px;
}

.punbb label:has(input[type="checkbox"]),
.punbb label:has(input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-sans);
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--ink);
    cursor: pointer;
}

.punbb span.input:has(> input[type="checkbox"]),
.punbb span.input:has(> input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.punbb span.input > input[type="checkbox"],
.punbb span.input > input[type="radio"],
.punbb label > input[type="checkbox"],
.punbb label > input[type="radio"] {
    margin: 0;
    vertical-align: 0;
}

/* 9.3 Кнопки
-------------------------------------------------------------*/

.punbb input.button,
input#pustoj2,
.AnswerButton input,
input[type="submit"],
input[type="button"] {
    min-width: 100px;
    height: 30px;
    margin: 5px 3px;
    padding: 3px 14px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background-color: var(--card);
    cursor: pointer;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    transition: background-color .15s, filter .15s;
}

.punbb input.button:hover,
input#pustoj2:hover,
.AnswerButton input:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--paper);
}

.punbb input.button:active,
input#pustoj2:active,
.AnswerButton input:active,
input[type="submit"]:active,
input[type="button"]:active {
    background-color: var(--paper);
    filter: brightness(.95);
}

.punbb input.button[name="submit"],
.punbb .formsubmit input[type="submit"]:first-child {
    background-color: var(--red);
    color: var(--plate);
}

.punbb input.button[name="submit"]:hover,
.punbb .formsubmit input[type="submit"]:first-child:hover {
    color: var(--red-soft);
}

.punbb input.button[name="submit"]:active,
.punbb .formsubmit input[type="submit"]:first-child:active {
    color: var(--red-soft);
}

/* 9.4 Панель редактора
-------------------------------------------------------------*/

#form-buttons {
    padding: 4px 8px;
    border: 1.5px solid rgba(var(--ink-rgb),  .25);
    border-bottom: 1px dashed rgba(var(--ink-rgb),  .15);
    border-radius: var(--radius) var(--radius) 0 0;
    background-color: var(--fill);
}

#pun-messages #form-buttons table {
    display: inline-table;
}

div#form-buttons table,
div#form-buttons tbody {
    display: block;
    width: 100%;
}

div#form-buttons table tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

div#form-buttons table tr > td:hover {
    opacity: 1;
}

#form-buttons td img {
    position: absolute;
    z-index: 10;
    width: 15px !important;
    height: 100%;
    margin-top: -19px;
    margin-left: -7px;
    opacity: 0;
}

div#form-buttons table tr > td,
.punbb-admin div#form-buttons table tr > td,
#form-buttons td#button-sticker {
    position: relative;
    flex: 0 0 26px;
    width: 26px !important;
    height: 24px;
    padding: 0;
    background-image: none !important;
    opacity: .9;
    transition: opacity .15s;
}

div#form-buttons table tr > td#button-html {
    flex-basis: 30px;
    width: 30px !important;
}

#form-buttons td[id^="button-"]::before,
#form-buttons td#floatbut::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    margin: 4px auto 0;
    background: var(--muted);
    -webkit-mask: var(--ico, var(--fb-dots)) center / contain no-repeat;
    mask: var(--ico, var(--fb-dots)) center / contain no-repeat;
    transition: background-color .15s;
}

#form-buttons td:hover::before {
    background: var(--red);
}

#form-buttons td#button-font           { --ico: var(--fb-font); }
#form-buttons td#button-size           { --ico: var(--fb-size); }
#form-buttons td#button-bold           { --ico: var(--fb-bold); }
#form-buttons td#button-italic         { --ico: var(--fb-italic); }
#form-buttons td#button-underline      { --ico: var(--fb-underline); }
#form-buttons td#button-strike         { --ico: var(--fb-strike); }
#form-buttons td#button-indent         { --ico: var(--fb-indent); }
#form-buttons td#button-left           { --ico: var(--fb-left); }
#form-buttons td#button-center         { --ico: var(--fb-center); }
#form-buttons td#button-right          { --ico: var(--fb-right); }
#form-buttons td#button-justify        { --ico: var(--fb-justify); }
#form-buttons td#floatbut,
#form-buttons td#button-floatbut       { --ico: var(--fb-float); }
#form-buttons td#button-link           { --ico: var(--fb-link); }
#form-buttons td#button-spoiler        { --ico: var(--fb-spoiler); }
#form-buttons td#button-image          { --ico: var(--fb-image); }
#form-buttons td#button-uploadimg      { --ico: var(--fb-upload); }
#form-buttons td#button-video          { --ico: var(--fb-video); }
#form-buttons td#button-hide           { --ico: var(--fb-hide); }
#form-buttons td#button-quote          { --ico: var(--i-quote); }
#form-buttons td#button-code           { --ico: var(--fb-code); }
#form-buttons td#button-color          { --ico: var(--fb-color); }
#form-buttons td#button-table          { --ico: var(--fb-table); }
#form-buttons td#button-smile          { --ico: var(--fb-smile); }
#form-buttons td#button-sticker        { --ico: var(--fb-sticker); }
#form-buttons td#button-keyboard       { --ico: var(--fb-keyboard); }
#form-buttons td#button-addition       { --ico: var(--fb-more); }
#form-buttons td#button-mask           { --ico: var(--fb-mask); }
#form-buttons td#button-files_rusff    { --ico: var(--fb-attach); }

/* html: подпись вместо значка */

#form-buttons td#button-html::before {
    content: "html";
    width: auto;
    height: 16px;
    background: none;
    -webkit-mask: none;
    mask: none;
    text-align: center;
    font-family: var(--f-sans);
    font-size: 8.5px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: .02em;
    color: var(--muted);
}

#form-buttons td#button-html:hover::before {
    background: none;
    color: var(--red);
}

/* «2» у вторых вариантов и подпись imgur */

#form-buttons td > b > p {
    position: absolute !important;
    top: auto;
    left: auto;
    right: 1px;
    bottom: 1px;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--f-sans) !important;
    font-size: 8px !important;
    font-weight: 700;
    line-height: 1;
    color: var(--muted);
    pointer-events: none;
}

#form-buttons td#button-uploadimg > b {
    display: none;
}

/* лупа поиска */

.icons-search::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    background: currentColor;
    -webkit-mask: var(--pl-search) center / contain no-repeat;
    mask: var(--pl-search) center / contain no-repeat;
}

#font-area, #size-area, #color-area, #table-area, #smilies-area, #image-area, #imageup-area,
#imageattach-area, #keyboard-area, #video-area, #addition-area, #spoiler-area {
    position: absolute;
    top: 43px;
    right: 6px;
    overflow-y: auto;
    padding: 10px;
    border-left: none;
    background-color: var(--plate);
    box-shadow: none;
    border-radius: var(--radius);
    border: 1px solid var(--card-line) !important;
}

#font-area {
    max-height: 250px;
    overflow: auto;
}

#smilies-area {
    width: 500px !important;
}

#imgNIK-SIG {
    margin-top: -49px !important;
    margin-left: 100% !important;
}

ul.tabs li.tab-current a {
    color: var(--ink) !important;
}

#float {
    border: 1px solid var(--line) !important;
    background-color: var(--fill) !important;
}

#tags .container {
    top: 39px !important;
    border: 1px solid var(--line);
    background: var(--plate);
}

#pun-edit #tags .container {
    top: 59px !important;
}

#plng {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 0 0 10px!important;
    padding: 4px 10px 5px !important;
    border: 1px solid var(--card-line) !important;
    border-radius: var(--radius);
    background: var(--card);
    font-family: var(--f-sans);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--muted);
}

#plng b {
    min-width: 2ch;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

#post-form:has(input[name="req_username"]) #plng {
    display: none !important;
}

#post-form:has(input[name="req_username"]) :is(#font-area, #size-area, #color-area, #table-area, #smilies-area, #image-area, #imageup-area, #imageattach-area, #keyboard-area, #video-area, #addition-area, #spoiler-area) {
    top: calc(43px + 60px) !important;
}

#keyboard-area { overflow: visible; }

#stk {
    margin: -17px 0 0;
}

#stk > input {
    display: none;
}

.stk-tabs {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    align-items: center;
}

.stk-tab {
    padding: 5px 12px 6px;
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    user-select: none;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--muted);
    transition: color .15s;
}

.stk-tab:hover {
    color: var(--ink);
}

.stk-tab.on {
    display: none;
    background: var(--card);
    color: var(--ink);
}

#stk-1:checked ~ .stk-tabs .t1:not(.on),
#stk-2:checked ~ .stk-tabs .t2:not(.on),
#stk-3:checked ~ .stk-tabs .t3:not(.on) {
    display: none;
}

#stk-1:checked ~ .stk-tabs .t1.on,
#stk-2:checked ~ .stk-tabs .t2.on,
#stk-3:checked ~ .stk-tabs .t3.on {
    display: inline-block;
}

.stk-panel {
    display: none;
    padding: 10px;
    border-radius: var(--radius) 0 var(--radius) var(--radius);
    background: var(--card);
}

#stk-0:not(:checked) ~ .stk-panel {
    display: block;
}

.stk-page {
    display: none;
}

#stk-1:checked ~ .stk-panel #stickers,
#stk-2:checked ~ .stk-panel #sacrastickers,
#stk-3:checked ~ .stk-panel #tumblr {
    display: block;
}

.stk-page > input {
    display: none !important;
}

.stk-page > p {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-height: 220px;
    margin: 0;
    overflow-y: auto;
}

.stk-page img {
    cursor: pointer;
}

.stk-tabs > .t1 {
    margin-left: auto;
}

.punbb .rusff-mention-picker {
    max-height: 200px;
    margin: 6px 0 0;
    padding: 4px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 4px 14px var(--shadow);
}

.punbb .rusff-mention-picker button {
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
}

.punbb .rusff-mention-picker button[aria-selected="true"],
.punbb .rusff-mention-picker button:hover {
    background: var(--fill);
    color: var(--red);
}

.punbb .rusff-mention-status {
    margin: 6px 0 0;
    font-family: var(--f-sans);
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--muted);
}

.punbb .rusff-mention {
    font-weight: 700;
    color: var(--red);
}

.grippie {
    display: none;
}

/* 9.5 Маска профиля
-------------------------------------------------------------*/

#mask_dialog .inner {
    width: 900px !important;
    background: var(--plate) !important;
}

#mask_dialog .hv-form-block {
    width: 550px;
    padding: 20px;
}

#mask_dialog .hv-preview-block {
    flex: 0 0 180px !important;
    max-width: 180px !important;
}

#mask_dialog .inner.container .hv-mask-block .description {
    font-size: 10px;
    line-height: 14px;
}

.hv-preview-author {
    font-weight: bold;
}

.hv-preview-title {
    letter-spacing: 2px;
    text-transform: lowercase;
}


/*************************************************************
  10. ВСПЛЫВАЮЩИЕ ОКНА И ПЕРЕАДРЕСАЦИЯ
**************************************************************/

/* 10.1 Репутация, жалобы, награды
-------------------------------------------------------------*/

#pun-report .bg,
#pun-reputation .bg,
#pun-admin-award-form .bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.5;
    cursor: pointer;
}

#pun-report .inner,
#pun-reputation .inner,
#pun-admin-award-form .inner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100;
    width: 560px;
    margin: 0 !important;
    padding: 15px 10px;
    transform: translate(-50%, -50%);
    background: var(--paper);
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

#pun-admin-award-form .inner {
    background: var(--plate);
}

#pun-report .inner h2,
#pun-reputation .inner h2,
#pun-admin-award-form .inner h2 {
    margin: 0;
    padding: 8px 14px;
    border-bottom: none;
    background: var(--fill);
    font-family: var(--f-sans);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
}

#pun-report .inner .container,
#pun-reputation .inner .container,
#pun-admin-award-form .inner .container {
    padding: 16px 14px;
    font-size: 11px;
    line-height: 1.6;
}

#pun-report .inner textarea,
#pun-reputation .inner textarea,
#pun-reputation .inner input[type="text"] {
    padding: 6px 8px;
    border: 1.5px solid rgba(var(--ink-rgb),  .25);
    border-radius: 0;
    background: var(--plate);
    font-family: var(--f-sans);
    font-size: 11px;
}

#pun-report .inner label,
#pun-reputation .inner label,
#pun-admin-award-form .inner label {
    font-family: var(--f-sans);
    font-size: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(var(--ink-rgb),  .4);
}

#pun-report span {
    font-size: 20px;
    font-weight: bold;
    color: red !important;
}

.inner.post_report h1 {
    height: 24px !important;
}

.inner.post_report td.tcl {
    width: 20% !important;
}

.inner.post_report td.tcl span {
    font-size: 12px !important;
}

.pun-modal .modal-inner {
    width: 640px;
    padding: 0;
    border-radius: var(--radius);
    background: var(--paper);
    background-image: var(--tex-paper, none);
    background-blend-mode: multiply;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    font-family: var(--f-sans);
    font-size: 12px;
    color: var(--ink);
}

.pun-modal .modal-inner > h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 11px 16px;
    border: 0;
    background: var(--fill);
}

.pun-modal .modal-inner > h2 span {
    margin: 0;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--ink);
}

.pun-modal .modal-inner .closer {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1;
    color: var(--muted) !important;
    cursor: pointer;
}

.pun-modal .modal-inner .closer:hover {
    color: var(--red) !important;
}

.pun-modal .modal-inner > .container {
    padding: 16px;
}

.pun-modal fieldset {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.pun-modal legend span {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: lowercase;
    color: var(--muted);
}

.pun-modal .fs-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pun-modal select,
.pun-modal input[type="text"] {
    box-sizing: border-box;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--card);
    font-family: var(--f-sans);
    font-size: 12px;
    color: var(--ink);
}

.pun-modal select {
    flex: 1 1 260px;
}

.pun-modal input[type="text"] {
    flex: 1 1 200px;
}

.pun-modal .formsubmit {
    margin: 4px 0 0;
    text-align: right;
}

.pun-modal input.button {
    height: 30px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius);
    background: var(--red);
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--plate);
    cursor: pointer;
}

.pun-modal input.button:disabled {
    background: var(--fill-2);
    color: var(--muted);
    cursor: default;
}

/* 10.2 Перенос сообщений
-------------------------------------------------------------*/

#movePostsTable {
    padding-top: 0;
}

#PMove_1, #PMove_2 {
    padding: 0 !important;
}

#PMove_2 span {
    width: 100%;
    margin-right: 0;
}

#PMove_2 .fs-box .Select_Topics th.tcl, #PMove_2 .fs-box .Select_Topics th.tc2 {
    font-weight: bold;
    letter-spacing: 1px;
}

#move_posts_form .formal .fs-box .Select_Topics table.container tbody {
    margin-top: 10px !important;
}

.pun-modal.move_posts_form .modal-inner.section h2 {
    height: 24px !important;
}

.pun-modal.move_posts_form .modal-inner.section h2 span.closer {
    font-size: 3em !important;
}

#afterMove .container.moved_success {
    padding-top: 20px;
    padding-bottom: 20px;
}

#afterMove .container.moved_success strong {
    padding-bottom: 5px;
}

/* 10.3 Смена аватара
-------------------------------------------------------------*/

.pun-modal.change_avatar_theme .modal-inner {
    padding: 10px 10px 50px !important;
}

/* 10.4 Страница переадресации
-------------------------------------------------------------*/

#pun-redirect {
    position: fixed;
    top: 100px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 0;
    text-align: center;
    background: none !important;
}

#pun-redirect #pun-main .info {
    width: 50%;
    margin-top: -40px;
    margin-left: 25%;
    padding: 25px 0;
    background: var(--plate);
}

#pun-redirect h1 {
    height: 70px !important;
    margin-left: 25%;
}

#pun-redirect h1 span {
    border: none !important;
    font-size: 40px;
    letter-spacing: 2px !important;
    color: var(--ink) !important;
}

#pun-redirect #pun-main .info a {
    color: inherit !important;
}

#pun-redirect #pun-main .info a:hover {
    color: var(--red) !important;
}


/*************************************************************
  11. ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ
**************************************************************/

/* 11.1 Просмотр профиля
-------------------------------------------------------------*/

#viewprofile .container,
#viewprofile .container > ul,
#viewprofile #profile-signature > ul {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

#viewprofile .container > ul > table,
#viewprofile .container > ul > table > tbody {
    display: block;
    width: 100%;
}

#viewprofile .container > ul > table > tbody {
    background: var(--pa-img, var(--bckg-img, none)) center / cover no-repeat border-box;
    border: 9px solid transparent;
    border-radius: var(--radius);
}

#viewprofile .container > ul > table > tbody > tr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

#viewprofile #profile-left li,
#viewprofile #profile-right li {
    margin: 0;
    list-style: none;
}

#viewprofile #profile-left li > span,
#viewprofile #profile-left li > strong,
#viewprofile #profile-right li > span,
#viewprofile #profile-right li > strong {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* левая карточка */

#viewprofile #profile-left {
    display: block;
    flex: 0 0 234px;
    box-sizing: border-box;
    width: 234px;
    padding: 18px 12px 14px;
    border: 9px solid transparent;
    border-radius: var(--radius);
    background: var(--card);
    text-align: center;
}

#viewprofile #profile-left li {
    padding: 0;
    text-align: center;
}

#viewprofile #profile-name > strong {
    display: block;
    margin-bottom: 3px !important;
    text-align: center !important;
    font-family: var(--f-sans);
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--ink);
    overflow-wrap: anywhere;
}

#viewprofile #profile-title > strong {
    display: block;
    margin-bottom: 10px !important;
    text-align: center !important;
    font-family: var(--f-sans);
    font-size: 9px;
    font-weight: 500 !important;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

#viewprofile #pa-avatar img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 2px;
}

#viewprofile #pa-online {
    margin-top: 12px! important;
    font-family: var(--f-sans);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
}

#viewprofile #pa-online::before {
    content: "\25CF\00A0";
    vertical-align: 1px;
    font-size: 7px;
    color: var(--red);
}

#viewprofile #pa-online > strong {
    display: inline;
    font-weight: 600;
}

#viewprofile #pa-edit,
#viewprofile #pa-edit2 {
    margin-top: 6px;
}

#viewprofile #pa-edit a,
#viewprofile #pa-edit2 a {
    font-family: var(--f-sans);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
}

#viewprofile #pa-edit a:hover,
#viewprofile #pa-edit2 a:hover {
    color: var(--red);
}

#viewprofile #pa-ua {
    margin-top: 10px!important;
    line-height: 0;
}

#viewprofile #pa-ua .user-agent {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 !important;
    opacity: .55;
    transition: opacity .15s;
}

#viewprofile #pa-ua .user-agent:hover {
    opacity: 1;
}

#viewprofile #pa-ua .user-agent i {
    display: inline-block !important;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* правая часть: строки */

#viewprofile #profile-right {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px 0;
    min-width: 0;
    padding: 0;
}

#viewprofile #profile-right li {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 50;
    flex: 1 1 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: 7px 12px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    background: var(--card);
    text-align: left;
    font-family: var(--f-sans);
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink);
}

/* порядок и ширина */

#viewprofile #profile-right #pa-invites { display: none; }

#viewprofile #profile-right #pa-fld1          { order: 1; }
#viewprofile #profile-right #pa-fld2          { order: 2;  flex: 1 1 64%; }
#viewprofile #profile-right #pa-fld4          { order: 3;  flex: 1 1 36%; justify-content: center; }
#viewprofile #profile-right #pa-fld3          { order: 4;  flex: 1 1 24%; }
#viewprofile #profile-right #pa-fld5          { order: 5;  flex: 1 1 24%; }
#viewprofile #profile-right #pa-respect       { order: 6;  flex: 1 1 26%; }
#viewprofile #profile-right #pa-positive      { order: 7;  flex: 1 1 26%; }
#viewprofile #profile-right #pa-posts         { order: 8; }
#viewprofile #profile-right #pa-register-date { order: 9;  flex: 1 1 50%; }
#viewprofile #profile-right #pa-time-visit    { order: 10; flex: 1 1 50%; }
#viewprofile #profile-right #pa-last-visit    { order: 11; flex: 1 1 50%; }
#viewprofile #profile-right #pa-last-post     { order: 12; flex: 1 1 50%; }
#viewprofile #profile-right #pa-email         { order: 13; }
#viewprofile #profile-right #pa-awards        { order: 14; }

#viewprofile #profile-right:not(:has(#pa-fld4)) #pa-fld2 {
    flex-basis: 100%;
}

/* склейка: срез справа */

#viewprofile #profile-right:has(#pa-fld4) #pa-fld2,
#viewprofile #profile-right #pa-fld3,
#viewprofile #profile-right #pa-fld5,
#viewprofile #profile-right #pa-respect,
#viewprofile #profile-right #pa-register-date,
#viewprofile #profile-right:has(#pa-last-post) #pa-last-visit {
    border-right-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* склейка: срез слева */

#viewprofile #profile-right #pa-fld4,
#viewprofile #profile-right:has(#pa-fld3) #pa-fld5,
#viewprofile #profile-right:has(#pa-fld3, #pa-fld5) #pa-respect,
#viewprofile #profile-right #pa-positive,
#viewprofile #profile-right #pa-time-visit,
#viewprofile #profile-right #pa-last-post {
    border-left-color: var(--line);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* подписи и значения */

#viewprofile #profile-right #pa-fld2 > span,
#viewprofile #profile-right #pa-fld4 > span {
    display: none;
}

#viewprofile #profile-right li > span {
    flex-shrink: 0;
    padding: 2px 8px 3px;
    border-radius: var(--radius);
    background: var(--fill);
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--muted);
}

#viewprofile #profile-right li > span a {
    color: var(--muted) !important;
}

#viewprofile #profile-right li > strong {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    font-weight: 500;
    color: var(--ink);
    overflow-wrap: anywhere;
}

#viewprofile #profile-right #pa-fld4 > strong {
    flex: 0 1 auto;
}

#viewprofile #pa-fld2 > strong::first-line {
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink);
}

#viewprofile #profile-right li > strong b {
    font-weight: 700;
}

#viewprofile #profile-right li a {
    border: 0;
    color: var(--red);
    text-decoration: none;
}

#viewprofile #profile-right li a:hover {
    text-decoration: underline;
}

#viewprofile #pa-fld4 img {
    display: block;
    max-width: 100%;
    max-height: 48px;
    width: auto;
}

#viewprofile #pa-fld1 > strong {
    display: flex;
    align-items: center;
    gap: 12px;
}

#viewprofile #pa-fld1 img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* подпись */

#viewprofile #profile-signature {
    margin-top: 24px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
}

#viewprofile #profile-signature::before {
    content: "подпись";
    display: block;
    margin-bottom: 10px;
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 600;
    text-transform: lowercase;
    color: var(--muted);
}

/* 11.2 Навигация профиля и заголовки
-------------------------------------------------------------*/

#profilenav {
    display: inline;
    float: left;
    width: 14em;
    margin-left: -16.3em;
}

#profilenav ul {
    margin: 10px 0 1em 0;
    padding: 1.5em 18px 0.8em 0;
    border-style: solid;
    border-width: 1px;
}

#profilenav li {
    padding-bottom: 0.8em;
    list-style: none;
    font-family: var(--f-sans);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#profilenav li a {
    color: rgba(var(--ink-rgb),  .5);
    text-decoration: none;
}

#profilenav li a:hover {
    color: var(--red);
}

#viewprofile h2,
#profilenav h2 {
    margin: 0 14px -0.6em 14px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--f-sans);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(var(--ink-rgb),  .4);
}

#viewprofile h2 span, #profilenav h2 span {
    position: relative;
    padding: 0 5px;
}

#setmods dl,
#setmods dd {
    margin: 0;
    padding: 0;
}

#setmods dl dt {
    position: static;
    float: none;
    width: auto;
    margin: 14px 0 6px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}

#setmods dl:first-child dt {
    margin-top: 0;
}

/* 11.3 Старая база PunBB для профиля
-------------------------------------------------------------*/

#profile .container {
    padding-left: 18.6em;
}

#setmods dt {
    display: inline;
    float: left;
    width: 14em;
    margin-left: -16em;
    padding: 0.8em 1em;
    font-weight: bold;
}

.punbb img.avatardemo {
    float: right;
    margin: 0 0 0.8em 1.8em;
}

/* 11.4 Награды в профиле
-------------------------------------------------------------*/

#profileContainer > fieldset:nth-child(1) > div > table > thead > tr > th:nth-child(1),
#profileContainer > fieldset:nth-child(2) > div > div:nth-child(2) > table > thead > tr > th:nth-child(1) {
    padding-left: 0 !important;
    text-align: left !important;
}

#profile.formal #profileContainer fieldset div.fs-box table td.tcl { width: 5% !important; }
#profile.formal #profileContainer fieldset div.fs-box table td.tc2 { width: 30% !important; }
#profile.formal #profileContainer fieldset div.fs-box table td.tc3 { width: 5% !important; }

#profileContainer > fieldset:nth-child(1) > div > table {
    table-layout: auto;
}

#profileContainer > fieldset:nth-child(2) > div > div:nth-child(2) {
    max-height: 500px !important;
}


/*************************************************************
  12. НИЗ СТРАНИЦЫ
**************************************************************/

/* 12.1 Хлебные крошки
-------------------------------------------------------------*/

#pun-crumbs1, #pun-crumbs2 {
    width: 100%;
    margin: 0;
    overflow: hidden;
    font-weight: normal;
}

#pun-crumbs2 {
    margin-bottom: 0;
    border-bottom: none;
}

#pun-crumbs1 p.container, #pun-crumbs2 p.container {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 16px;
    border-top: none;
    text-align: center;
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(var(--ink-rgb), .45);
}

#pun-crumbs2 .container {
    border-bottom: none;
    margin-bottom: 30px!important;
}

#pun-crumbs1 em, #pun-crumbs2 em {
    margin: 0 4px;
    font-style: normal;
    font-weight: 700;
    color: var(--red);
}

#pun-crumbs1 a, #pun-crumbs2 a {
    border-bottom: 1px solid transparent;
    color: rgba(var(--ink-rgb), .6);
    text-decoration: none;
}

#pun-crumbs1 a:hover, #pun-crumbs2 a:hover {
    border-bottom-color: var(--red);
    color: var(--red);
}

#pun-crumbs1 p > a:last-of-type, #pun-crumbs2 p > a:last-of-type {
    color: var(--ink);
}

#pun-mod #pun-crumbs1 {
    margin-top: 80px;
}

.punbb-admin #pun-crumbs1 {
    position: relative;
    z-index: 2;
    margin: 40px 0 10px;
}

/* #pun-viewtopic #pun-main > h1,
#pun-viewforum #pun-main > h1,
#pun-profile #pun-main > h1,
#pun-searchposts #pun-main.show_user_posts > h1 */ 
#pun-main > h1 {
    display: none;
}

#pun-crumbs1 .copy-all {
    display: inline-flex;
    margin-left: 6px;
    vertical-align: -1px;
    color: var(--muted);
    cursor: pointer;
}

#pun-crumbs1 .copy-all:hover {
    color: var(--red);
}

/* 12.2 Статистика
-------------------------------------------------------------*/

#pun-stats {
    position: relative;
    margin-top: 34px;
    padding: 22px 30px 0;
}

#pun-stats::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    height: 230px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--bckg-img, none) top / cover no-repeat var(--card-line);
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
    mask-image: linear-gradient(to bottom, #000 50%, transparent);
    pointer-events: none;
}

#pun-stats::before {
    content: "статистика";
    position: absolute;
    top: 18px;
    left: 44px;
    z-index: 2;
    padding: .12em .5em .16em;
    background: var(--plate);
    font-family: var(--f-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--red);
    box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), .55), 1px 2px 0 var(--shadow);
    transform: rotate(-2deg);
}

#pun-stats .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 36px;
    width: auto;
    margin: 0;
    padding: 24px 26px 18px;
    border: 0;
    border-radius: 2px;
    background: var(--card);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    font-family: var(--f-sans);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

#pun-stats li.item1,
#pun-stats li.item2,
#pun-stats li.item3,
#pun-stats li.item4 {
    grid-column: 1;
    float: none;
    clear: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0 4px;
    border-bottom: 1px dotted rgba(var(--ink-rgb), .45);
    text-align: left;
    line-height: 1.4;
}

#pun-stats li.item1,
#pun-stats li.item2,
#pun-stats li.item3,
#pun-stats li.item4 {
    grid-column: 1;
    float: none;
    clear: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0 4px;
    border-bottom: 1px dotted rgba(var(--ink-rgb), .45);
    text-align: left;
    line-height: 1.4;
}

#pun-stats li.item1 { grid-row: 1; }
#pun-stats li.item2 { grid-row: 2; }
#pun-stats li.item3 { grid-row: 3; }
#pun-stats li.item4 { grid-row: 4; }

#pun-stats li.item1 strong,
#pun-stats li.item2 strong,
#pun-stats li.item3 strong,
#pun-stats li.item4 strong {
    font-family: var(--f-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

#pun-stats li.item4 strong a {
    color: var(--red);
}

#pun-stats li#onlinelist {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
    text-align: left;
    font-size: 12px;
    line-height: 1.6;
}

#pun-stats li#onlinelist.onlinelist  { grid-column: 2; grid-row: 1 / 3; }
#pun-stats li#onlinelist.users_24h   { grid-column: 2; grid-row: 3 / 5; padding-top: 10px; }
#pun-stats li#onlinelist.statistics  { grid-column: 1 / -1; grid-row: 5; }

li#onlinelist div {
    padding: 0;
}

#pun-stats li.onlinelist > div > a:first-child,
#pun-stats li.users_24h > div > a:first-child {
    display: block;
    margin-bottom: 2px;
    border: 0;
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink) !important;
}

#pun-stats li.onlinelist > div > a:first-child:hover,
#pun-stats li.users_24h > div > a:first-child:hover {
    color: var(--red) !important;
}

#pun-stats li#onlinelist strong {
    font-family: var(--f-sans);
    font-weight: 700;
}

#pun-stats li#onlinelist div > span {
    display: block;
    margin-top: 4px;
    font-family: var(--f-sans);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.6;
}

#onlinelist span a {
    border-bottom: 1px solid transparent;
    color: var(--red) !important;
    text-decoration: none;
}

#onlinelist span a:hover {
    border-bottom-color: var(--red) !important;
}

#statistic-other {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
    width: 100%;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(var(--ink-rgb), .2);
    text-align: center;
}

#statistic-other span {
    padding-right: 0 !important;
}

#statistic-other span + span::before {
    content: "\00B7";
    margin: 0 8px;
    color: var(--red);
}

#statistic-other a {
    border-bottom: 1px solid transparent;
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
    color: rgba(var(--ink-rgb), .7);
    text-decoration: none;
}

#statistic-other a:hover {
    border-bottom-color: var(--red);
    color: var(--red);
}

/* 12.3 Быстрый переход и футер
-------------------------------------------------------------*/

#pun-qjump {
    position: relative;
    float: left;
    width: 50%;
    margin: 0;
    border: none;
}

#pun-qjump .container {
    padding: 0.8em 1em;
    border: none;
    background: transparent;
}

#pun-about { 
    display: none;
}

#pun-about .container {
    border-top-style: none;
    text-align: center;
    line-height: 150%;
}

#pun-about p.container {
    width: 1000px;
    height: 92px;
    margin: -257px 0 207px -120px;
    background-position: center top;
    background-repeat: no-repeat;
}

#pun-about p span {
    display: none;
    margin-top: -200px;
    padding-left: 50%;
}

#pun-break4 {
    position: relative;
    z-index: 1;
    height: 0;
    margin: -2px 1em;
    border-style: none;
    border-width: 0;
}

/* 12.4 Баннеры
-------------------------------------------------------------*/

#banners {
    position: absolute;
    width: 921px;
    height: 41px;
    margin: -41px 0 0 27px !important;
    overflow-y: auto;
}

#banners img {
    opacity: 70%;
    filter: grayscale(1);
}

#banners img:hover {
    opacity: 100%;
    filter: grayscale(0);
    transition: ease 1s;
}

.banners {
    width: 542px;
    padding-top: 10px;
}

.banners2 {
    padding-top: 10px;
    overflow: hidden;
    text-align: left;
    opacity: 0.5;
    transition: 1s ease-out;
}

.banners2:hover {
    opacity: 1;
}

.banners-footer {
    width: 1040px;
    height: 60px;
    margin: -22px 0 -41px 0 !important;
    overflow-y: hidden;
}

.banners-footer-content {
    overflow: hidden;
    text-align: center;
    animation: carousel 10s linear infinite forwards;
}

.banners-footer-content:hover {
    animation-play-state: paused;
}

.banners-footer-content img {
    opacity: 0.7;
    transition: opacity .3s ease;
}

.banners-footer-content img:hover {
    opacity: 1;
}

@keyframes carousel {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-80%); }
    100% { transform: translateY(0); }
}


/*************************************************************
  13. ПЛАГИНЫ
**************************************************************/

/* 13.1 Иконочный шрифт Icons (Сириус и Астарта)
-------------------------------------------------------------*/

[class^="icon-"], [class*=" icon-"] {
    font-family: 'Icons', 'Icons' !important;
    font-style: normal;
    font-weight: light;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    speak: never;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 13.2 Закладки
-------------------------------------------------------------*/

.post .bookmark {
    color: rgba(var(--ink-rgb),  .3) !important;
    transition: color .15s;
}

.post .bookmark:hover {
    color: var(--red) !important;
}

#BookmCntToggle {
    left: 0!important;
}

#BookmCntToggle.default-style {
    display: block;
    width: 20px;
    height: 26px;
    border: 1px solid var(--card-line) !important;
    border-left: 0 !important;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--paper) !important;
    cursor: pointer;
    color: var(--ink) !important;
    transition: background .15s;
}

#BookmCntToggle.default-style:hover {
    background: var(--red) !important;
    color: var(--paper) !important;
}

#MyBookmarks {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    z-index: 2000 !important;
    width: 240px;
    height: 100%;
    border-right: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 4px 0 0 rgba(0, 0, 0, .08) !important;
}

#MyBookmarks h2 {
    margin: 0 !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--line) !important;
    background: var(--fill);
    font-family: var(--f-sans) !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--ink) !important;
}

#MyBookmarks h2 span {
    font-family: var(--f-sans) !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    color: var(--ink) !important;
}

#MyBookmarks span.scrl {
    text-shadow: none !important;
    font-family: var(--f-sans);
    font-size: 8px;
    letter-spacing: 0.1em;
    color: rgba(var(--ink-rgb),  .4) !important;
}

.editBookmark {
    position: absolute;
    top: 30px;
    right: -5px;
    z-index: 999999;
    padding: 10px;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    background: var(--paper) !important;
    box-shadow: 0 4px 14px var(--shadow) !important;
}

.editBookmark h1 {
    height: 16px !important;
}

/* 13.3 Чёрный список
-------------------------------------------------------------*/

#panel {
    position: fixed;
    top: 170px;
    left: -261px;
    z-index: 10000;
    margin: 0;
    overflow: hidden;
    transition: left .25s ease;
}

#panel-content {
    float: left;
    box-sizing: border-box;
    width: 260px;
    height: auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-right: none;
    background: var(--paper);
    font-family: var(--f-sans);
    font-size: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

#panel-content::before {
    content: "BLACKLIST";
    display: block;
    margin: -8px -10px 8px;
    padding: 4px 20px;
    background: var(--fill);
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 8px;
    letter-spacing: 0.2em;
    color: var(--ink);
}

#panel-sticker {
    position: relative;
    float: left;
    margin: 0;
    padding: 6px 4px;
    border: 1px solid var(--line);
    border-left: none;
    background: var(--paper);
    cursor: pointer;
    font-family: var(--f-sans);
    font-size: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    pointer-events: auto;
    user-select: none;
}

#panel-sticker:hover {
    border-color: var(--red);
    background: var(--red);
    color: var(--paper);
}

ul#blockUsers {
    float: left;
    width: 100%;
    margin: 4px 0 0 0;
    padding: 0 10px;
    list-style: none;
}

ul#blockUsers li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px dotted rgba(var(--ink-rgb),  .15);
    font-family: var(--f-sans);
    font-size: 8px;
    letter-spacing: 0.1em;
}

ul#blockUsers li:last-child {
    border-bottom: none;
}

#blockUsers > li > strong {
    flex-shrink: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    color: rgba(var(--ink-rgb),  .3);
}

#blockUsers > li > strong:hover {
    color: var(--red);
}

.blockButton::before {
    content: "\00D7";
    position: absolute;
    z-index: 2;
    width: 15px;
    height: 15px;
    margin-top: -33px;
    margin-left: -21px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    color: rgba(var(--ink-rgb),  .3);
    transition: color .15s;
}

.blockButton:hover::before {
    transform: none;
    color: var(--red);
}

/* 13.4 Копирование ссылки на пост
-------------------------------------------------------------*/

.copy-permalink {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 0;
    cursor: pointer;
    opacity: .6;
}

.copy-permalink:hover {
    opacity: 1;
}


/*************************************************************
  14. СТАРЫЕ ШАБЛОНЫ ПОСТОВ
**************************************************************/

.calendar p, .greyBack p, .visa span,
.anketafon table, .anketa1, .relationsbb table span, .relationsbb table p,
.anketaformbb p, .episod p, .statistic p, .deathlist p, .stuhle p {
    color: #1b1a18 !important;
}

.ams a, .ams a:hover {
    color: #3e3d3f !important;
}

#first-column, #second-column, #third-column {
    display: inline-block;
    width: 130px;
}

/* анкета */
#menu1 span {
    margin: 7px;
    padding: 4px 18px;
    border-radius: 15px 0;
    background-color: #b9b9b9;
    font-family: arial;
    font-size: 12px;
    color: #ffffff;
}

#menu1 .tabactive1 {
    background: #a5a5a5;
    transition-duration: 0.5s;
}

#submenu1 {
    padding: 5px;
    text-align: left;
    font-size: 12px;
}

.submenutext1 {
    display: none;
    height: 320px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #DCDCDC;
    box-shadow: inset 0 0 5px rgb(141, 141, 141);
    text-align: justify;
    font-family: arial;
    font-size: 11px;
    line-height: 1.5;
}

.anketafon {
    width: 600px;
    height: auto;
    margin: 0 auto;
    border: outset 3px #dadada;
    background-color: #8D8D8D;
}

.anketa1 {
    height: 296px;
    margin: 15px;
    padding: 10px;
    background-color: #DCDCDC;
    box-shadow: inset 0 0 5px rgb(141, 141, 141);
}

.photo1 { float: left; }
.photo2 { float: right; margin: -138px 0 0 0; }

.name {
    float: right;
    width: 370px;
    padding: 5px;
    border-radius: 15px 0;
    background-color: #8D8D8D;
    text-align: center;
    font-family: lobster;
    font-size: 24px;
    line-height: 70%;
    color: #ffffff;
}

.poloska {
    height: 22px;
    overflow-y: auto;
    background-color: #ffffff;
    text-align: center;
    line-height: 22px;
}

.poloska1 { float: left; width: 164px; margin: 170px 0 0 -164px; }
.poloska2 { float: left; width: 164px; margin: 196px 0 0 -164px; }
.poloska3 { float: left; width: 383px; margin: 174px 0 0 -164px; }
.poloska4 { float: left; width: 383px; margin: 4px 0 0 0; }
.poloska5 { float: left; width: 383px; margin: 4px 0 0 0; }
.poloska6 { float: right; width: 164px; margin: -242px 0 0 386px; }
.poloska7 { float: right; width: 164px; margin: -216px 0 0 386px; }
.poloska8 { float: right; width: 164px; margin: -190px 0 0 386px; }

.property {
    float: right;
    width: 201px;
    height: 153px;
    margin: -242px 169px 0 0;
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #ffffff;
    text-align: justify;
}

.anketaplaceholder {
    border: 2px solid #ffffff !important;
}

.opisanie {
    padding: 0 10px;
    background-color: #DCDCDC;
    text-shadow: none;
    font-family: arial;
    font-size: 10px;
    letter-spacing: 2px;
    color: #8d8d8d;
}

/* виза */
.visafon {
    width: 400px;
    height: auto;
    margin: 0 auto;
    border: outset 3px #dadada;
    background-color: #8D8D8D;
}

.visa1 {
    height: 126px;
    margin: 10px;
    padding: 10px;
    background-color: #DCDCDC;
    box-shadow: inset 0 0 5px rgb(141, 141, 141);
}

.visaamsfoto {
    float: left;
    margin: -27px 0 0 -3px;
}

.visawelcome {
    float: right;
    width: 260px;
    margin: -10px -12px 0 142px;
    padding: 5px;
    border-radius: 15px 0;
    background-color: #8D8D8D;
    text-align: center;
    font-family: lobster;
    font-size: 16px;
    line-height: 70%;
    color: #ffffff;
}

.visawelcometext {
    float: right;
    width: 220px;
    height: 84px;
    margin: 4px -7px 0 0;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #ffffff;
    box-shadow: inset 0 0 5px rgb(141, 141, 141);
    text-align: justify;
}

.visaicons  { float: left; margin: 4px 0 0 0; }
.visaicons2 { float: left; margin: 2px 0 0 0; }

/* отношения */
.relatz {
    width: 570px;
    height: auto;
    padding: 5px 10px;
    border-radius: 10px 0 10px 0;
    background-color: #8D8D8D;
    text-align: center;
    font-family: lobster;
    font-size: 18px;
    color: #fff;
}

.relback {
    position: relative;
    width: 180px;
    height: 180px;
    background-color: #DCDCDC;
}

.relstatus {
    position: absolute;
    right: 7px;
    z-index: 2;
    margin-top: 5px;
    padding: 1px 15px;
    background-color: #8D8D8D;
    font-family: bebas neue;
    font-size: 12px;
    letter-spacing: 1px;
    color: #ffffff;
}

.relface {
    position: absolute;
    width: 150px;
    height: 100px;
    margin-top: 10px;
    margin-left: 15px;
    background-image: url(http://placehold.it/150x100);
}

.relname {
    position: absolute;
    margin-top: 100px;
    margin-left: 7px;
    padding: 1px 15px;
    background-color: #8D8D8D;
    font-family: bebas neue;
    font-size: 12px;
    letter-spacing: 1px;
}

.relname a {
    color: #ffffff !important;
}

.reltext {
    position: absolute;
    width: 140px;
    height: 31px;
    margin-top: 120px;
    margin-left: 10px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 15px;
    background-color: #ffffff;
    font-size: 9px;
    line-height: 9px;
}

/* хроники */
.hron1 {
    position: relative;
    width: 310px;
    height: 150px;
    background-color: #DCDCDC;
}

.hronname1, .hronname2, .hronname3 {
    position: absolute;
    width: 265px;
    margin-left: 7px;
    padding: 1px 15px;
    text-align: center;
    font-family: bebas neue;
    font-size: 12px;
    letter-spacing: 1px;
}

.hronname1 { margin-top: 10px; background-color: #8D8D8D; }
.hronname2 { margin-top: 30px; background-color: #ffffff; }
.hronname3 { margin-top: 50px; background-color: #8D8D8D; color: #ffffff; }

.hronname1 a {
    color: #ffffff !important;
}

.hrontext1 {
    position: absolute;
    width: 271px;
    height: 51px;
    margin-top: 72px;
    margin-left: 10px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 15px;
    background-color: #ffffff;
    font-size: 9px;
    line-height: 9px;
}

   /* итоги */
  .itogifon {
       width: 600px;
    background-color: #ffffff;
    height: auto;
    /* border: outset 3px #dadada; */
    margin: 0 auto;
    border-radius: 20px 0px 20px 0px;
    border: 2px solid #efefef;
    --ink: #34302c;
    --ink-rgb: 52, 48, 44;
    --muted: #7c746b;
    color: var(--ink);
   }
   
   .itogi1 {
       width: 580px;
    /* background-color: #dcdcdc; */
    height: 320px;
    margin: 10px 10px 10px 10px;
    /* box-shadow: inset 0px 0px 5px rgb(169 169 169); */
    color: var(--common-text-color);
   }
   
   .nameitogi {
    text-align: center;
    /* font-family: lobster; */
    font-size: 13px;
    /* color: #ffffff; */
    border-radius: 25px 0px;
    padding: 5px;
    line-height: 70%;
    /* margin-left: 100px; */
    width: 410px;
    height: 40px;
    /* margin-bottom: 20px; */
    margin-left: 170px;
    text-transform: uppercase;
    line-height: 16px;
   }
   
   .itogidata {
    font-size: 10px;
    letter-spacing: 1px;
    /*color: #505050;*/
    opacity: .6;
    text-shadow: none;
    /* background-color: #dcdcdc; */
    padding: 5px 5px;
   }
   
   .igrokmesfoto {
      float: left;
    margin: -29px 0 0 10px;
    filter: grayscale(1);
   }
   
   .igroknedfoto {
       float: left;
    margin: 22px 0 0 -104px;
    filter: grayscale(1);
    padding: 2px;
    border: 1px solid #efefef;
   }
   
   .nameigrokmes {
    text-align: center;
    font-family: arial;
    font-size: 10px;
    /* color: #ffffff; */
    padding: 5px;
    line-height: 70%;
    float: left;
    width: 150px;
    height: auto;
    margin: -48px 0px 0 12px;
    opacity: .6;
   }
   
   .nameigrokned {
    text-align: center;
    font-family: arial;
    font-size: 10px;
    /* color: #ffffff; */
    padding: 5px;
    line-height: 70%;
    float: left;
    width: 94px;
    height: auto;
    margin: 0px 0px 0 10px;
    opacity: .6;
   }
   
   .namepost {
    text-align: center;
    font-family: arial;
    font-size: 10px;
    /* color: #ffffff; */
    padding: 5px;
    line-height: 70%;
    float: right;
    width: 260px;
    height: auto;
    /* margin: 0 10px 0 0; */
    margin-top: -130px;
    margin-right: 10px;
    opacity: .6;
   }
   
   .postned {
     width: 260px;
    height: 100px;
    background-color: #ffffff;
    float: right;
    margin: 20px 5px 0 0;
    text-align: justify;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
    filter: grayscale(1);
    font-size: 10px;
   }

   .postned img {
    margin: 0px 0px -2px 6px!important;
   }

   .postned a{
    font-size: 8px;
    }
   
   .epfoto {
       float: left; 
           filter: grayscale(1);
   }
   
   .itogi2 {
       background-color: #ffffff;
       width: 560px;
       height: 110px;
       margin: 10px 0 0 10px;
       float: left; 
   }
   
   .parafoto1 {
       float: left; 
           filter: grayscale(1);
   }
   
   .akt1 {
       float: left; 
           filter: grayscale(1);
   }
   
   .akt2 {
       float: right; 
       margin: -54px 0 0 0;
           filter: grayscale(1);
   }
   
   .postzaned {
      background-color: #efefef;
    text-align: center;
    /* font-family: arial; */
    font-size: 10px;
    /* color: #ffffff; */
    padding: 10px;
    line-height: 100%;
    float: right;
    width: 150px;
    height: 30px;
    margin: -52px 115px 0 0;
   }
   
   .para1 {
       filter: grayscale(1);
       margin-left: 162px;
   }
   
   .blabla {
       width: 265px;
    height: 46px;
    background-color: #ffffff;
    float: right;
    margin: 5px 5px 0 0;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 10px;
    text-align: center;
   }
   
   .kolvopostov {
    font-size: 16px;
    letter-spacing: 2px;
    color: #505050;
    text-shadow: none;
    /* background-color: #dcdcdc; */
    padding: 0 10px 0 10px;
   }
   /* итоги */

/* «хочу видеть» */
img.wannasee {
    max-width: 470px;
    border: solid 2px #452003 !important;
}

/* прайс подарков */
.p1 {
    display: inline-block;
    min-width: 60px;
    margin: 2px 0;
    padding: 5px;
    border-radius: 15px;
    background-color: #E4E4E4;
    box-shadow: inset 0 0 15px #BBB6B6, 0 1px 2px #A8A5A5, 0 -1px 1px #E4E4E4;
    text-align: center;
    font-family: lobster;
    font-size: 12px;
    color: #645D5D;
}

.lable {
    display: block;
    width: 130px;
    margin: 0 auto 10px auto;
    padding: 5px;
    border-radius: 15px;
    background-color: #E4E4E4;
    box-shadow: inset 0 0 15px #BBB6B6, 0 1px 2px #A8A5A5, 0 -1px 1px #E4E4E4;
    text-align: center;
    text-shadow: 0 1px 3px #FDF5F5, 0 -1px 1px #F7F2F2;
    font-family: lobster;
    font-size: 16px;
    color: #7C7676;
}

/* аэстетики (старый формат) */
.aesthetic-photo-upd { position: relative; top: 13px; max-width: 500px; margin-top: -18px; margin-left: 6px; }
.aesthetic-photo-upd img { max-width: 500px; }
.aesthetic-text-upd {
    position: relative;
    top: 10px;
    left: 4px;
    width: 350px;
    min-height: 13px;
    background-color: #000000;
    text-align: center;
    font-family: kelly slab;
    font-size: 10px;
    line-height: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #FFF;
}
.aesthetic-upd div { margin: 0 auto; }
.aesthetic-upd { margin-bottom: 35px; }

/* ===== новый инстаграм ===== */
.ig-post-modern {
  width: 468px;
  max-width: 100%;
  margin: 10px auto;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
  text-align: left;
}

.ig-post-modern__header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
}

.ig-post-modern__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dbdbdb;
  flex-shrink: 0;
}

.ig-post-modern__headtext {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 16px;
  overflow: hidden;
}

.ig-post-modern__username {
  font-weight: 600;
  white-space: nowrap;
}

.ig-post-modern__dot,
.ig-post-modern__time {
  color: #8e8e8e;
  white-space: nowrap;
}

.ig-post-modern__menu {
  color: #262626;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
}

.ig-post-modern__image-wrap {
  width: 100%;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  background: #fafafa;
  line-height: 0;
}

.ig-post-modern__image {
  width: 100%;
  display: block;
}

.ig-post-modern__actions {
  display: flex;
  align-items: center;
  padding: 10px 14px 0;
}

.ig-post-modern__likes-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ig-post-modern__likes-inline .ig-post-modern__icon {
  width: 22px;
  height: 22px;
}

.ig-post-modern__likes-count {
  font-size: 14px;
  font-weight: 600;
  color: #262626;
}

.ig-post-modern__actions-right {
  margin-left: auto;
}

.ig-post-modern__caption {
  padding: 4px 14px 0;
  font-size: 13px;
  line-height: 18px;
  word-wrap: break-word;
}

.ig-post-modern__caption .ig-post-modern__username {
  margin-right: 4px;
}

.ig-post-modern__time-footer {
  padding: 6px 14px 14px;
  font-size: 10px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #8e8e8e;
}

/* инстаграм (старый формат) */
.ibk2 { width: 340px; padding: 5px; background: linear-gradient(to bottom, rgba(85,134,171,1) 0%, rgba(67,114,152,1) 41%, rgba(51,97,135,1) 100%); }
.ilogo { text-align: center; text-shadow: 1px 1px 1px #2c4860; font-family: lobster two; font-size: 19px; line-height: 100%; color: #e6edf4; }
.insus { margin-left: 4px; margin-right: 8px; text-shadow: 1px 1px 1px #1f3547; font-family: calibri; font-size: 12px; font-weight: bold; line-height: 100%; letter-spacing: -0.5px; color: #ffffed; }
.ins111 { width: 1px; height: 30px; margin-left: 10px; margin-right: 10px; background-color: #426d8d; box-shadow: 1px 1px 0 #5b85a6; }
.ins22 { width: 25px; height: 21px; margin-right: 5px; background-image: url(http://i.imgur.com/VsbBWbI.png); }
.ins33 { letter-spacing: 0; text-shadow: 1px 1px 0 #1f3547; color: #e3ecf1; }
.ins44 { width: 350px; height: 1px; background-color: #e4e4e4; box-shadow: 0 1px 0 #ffffff; }
.ins55 { padding: 10px; background-color: #f6f6f6; }
.inscredit { padding: 4px; background-color: #ffffff; font-family: calibri; font-size: 8px; line-height: 100%; color: #8e8e8e; }
.insh { margin-right: 15px; text-align: center; font-family: calibri; font-size: 26px; font-weight: bold; line-height: 100%; letter-spacing: -1px; text-transform: lowercase; color: #4175a4; }
.inslike { margin-right: 115px; text-align: center; font-family: calibri; font-size: 17px; font-weight: bold; line-height: 100%; letter-spacing: -1px; color: #4175a4; }
.insa1, .insa3 { width: 23px; height: 23px; padding: 4px; border: 1px #b6b6b6 solid; border-radius: 3px; background-color: #d9d9d9; }
.insa1 { margin-right: 6px; }
.insa2, .insa4 { margin-top: 3px; text-align: center; text-shadow: #6c6c6c 1px 0, #6c6c6c 0 1px, #6c6c6c 0 -1px, #6c6c6c -1px 0; font-family: calibri; font-weight: bold; line-height: 100%; letter-spacing: -1px; text-transform: lowercase; color: #8a8a8a; }
.insa2 { font-size: 20px; }
.insa4 { margin-right: 6px; font-size: 22px; }
.insii { border: 1px #c5c5c3 solid; border-radius: 3px; }
.inshh { margin-left: 6px; text-align: left; font-family: calibri; font-size: 20px; font-weight: bold; line-height: 100%; letter-spacing: -1px; text-transform: lowercase; color: #070707; }
.insah { margin-left: 6px; padding: 0; font-family: calibri; font-size: 13px; font-weight: lighter; line-height: 95%; color: #393939; }
.insah i { color: #7972a5; }
.imgtagg { width: 280px; padding: 4px; text-align: left; font-family: calibri; font-size: 9.5px; font-weight: lighter; line-height: 95%; color: #508fbc; }

/* сообщение в объявлениях (старый формат) */
.announce {
    width: 400px;
    height: auto;
    margin: 15px auto 0;
    border-radius: 10px;
    background-color: var(--plate);
    text-align: justify;
    line-height: 1.5;
    color: var(--ink);
}

.announce .icon {
    width: 65px;
}

/* бункер */
.bunker {
    position: relative;
    width: 780px;
    margin: auto;
    padding: 5px;
    border: 5px solid #f3e04190;
    background-color: #fff;
}

.bunker_description {
    display: inline-table;
    width: 195px;
    margin-left: 15px;
    margin-bottom: 5px;
    padding: 5px;
}

.bunker_description p { max-height: 17px; }
.bunker_description img { margin: 0 !important; }

.bunker_specs {
    display: inline-table;
    width: 75px;
    margin-left: 5px;
    padding: 5px;
    background-color: #f3e04190;
}

.bunker_profile_ava { display: inline-block; }

.bunker_profile_name {
    display: inline-block;
    height: 70px;
    padding-top: 25px;
    padding-left: 5px;
    vertical-align: middle;
    text-transform: uppercase;
}

.bunker_profile { vertical-align: top; }

.bunker_vibil {
    background-color: #efefef50;
    color: #efefef;
}

.bunker_vibil img {
    opacity: 30%;
    filter: grayscale(100%);
}

.bunker_description.bunker_vibil p { opacity: 30%; }

.bunker_description.bunker_vibil:hover {
    background-color: #fff;
    color: #000;
    transition: .7s;
}

.bunker_description.bunker_vibil:hover p,
.bunker_description.bunker_vibil:hover img {
    opacity: 100%;
    transition: .7s;
}

.bunker_info { padding: 10px; }

.bunker_title {
    height: 44px;
    margin: 10px 5px;
    padding: 5px;
    background-color: #f3e04190;
    vertical-align: middle;
    text-align: center;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 16px;
}

.bunker_subtitle {
    height: 22px;
    text-align: left;
    text-transform: uppercase;
    font-size: 14px;
}

/* ведьмачья неделя */
.sacthwitcher {
    width: 671px;
    height: 510px;
    margin: 10px 0 16px 20px !important;
    padding: 40px 10px 50px 10px !important;
    background: url(https://i.imgur.com/sCL1Uo8.png);
    font-family: Arial;
    color: #979797;
}

.sacttitlewitcher {
    margin: 0 43px 10px -10px !important;
    padding: 5px 0;
    text-align: center;
    font-family: "Roboto Condensed";
    font-size: 32px;
    color: #9f9187 !important;
}

.saccitawitcher {
    max-width: 600px;
    margin: 10px 75px 0 10px !important;
    padding: 5px;
    border-radius: 15px;
    text-align: center;
    font-family: Verdana;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
}

.sacbodywitcher {
    width: 480px;
    max-height: 420px;
    margin-right: 50px;
    padding-right: 20px;
    overflow: auto;
    text-align: justify;
    text-transform: none;
    font: 11px arial;
    line-height: 11px;
}

.sacbodywitcher p {
    font-family: "Roboto Condensed";
    font-size: 14px;
    color: #b2b1b1 !important;
}

.sacbodywitcher::-webkit-scrollbar-thumb:vertical {
    background-color: #bebcba !important;
}

.sacbodywitcher::-webkit-scrollbar {
    background-color: #120501 !important;
}

/* купоны и тотемы на личных страницах */
.coupon, .totem {
    display: inline-block;
    padding: 3px;
    vertical-align: top;
}

.coupon p, .totem p {
    display: none;
    max-width: 72px;
    min-height: 72px;
    margin-top: 5px;
    padding: 3px;
    border: 1px solid #cfcfcf;
    border-radius: 9px;
    background-color: #dfdfdf;
    word-wrap: break-word;
    hyphens: auto;
    font-size: 10px;
}

#toggleCouponDescriptions, #toggleTotemDescriptions {
    display: inline-table;
    margin-bottom: 10px;
    cursor: pointer;
}

/* стиль от хочу видеть версия 2.0 */
.wanted1, .wanted2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
}

.wanted2 img {
    width: 245px;
    max-width: 100%;
    display: inline-block;
}

/* стиль от шаблона эпизода версия 2.0 */
.episode-place {
    text-align: right;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    padding: 0px 40px;
}

.episode-date {
    text-align: right;
    font-size: 14px;
    margin-top: -20px;
    padding: 0px 40px;
}

.episode-members {
text-align: center;
    font-size: 14px;
}

.episode-pictures {
text-align: center;
}

.episode-description {
padding: 0px 40px;
}

.episode-music {
   text-align: center;
   font-size: 10px;
   font-weight: bold;
}

.episode-faces {
text-align: center;
font-size: 8px;
opacity: .8;
margin-top: -10px;
}

/* конец стилей от шаблона эпизода */

/* стиль от шаблона хронологии 2.0*/

.chrono-shbln {

}

.chrono-episode {
padding: 5px 20px;
margin-bottom: 10px;
border-bottom: 1px solid #00000050;
}

.chrono-shbln .chrono-episode:last-child{
border-bottom: none;
}

.chrono-episode p {
padding: 0 0 3px 0!important;
}

.chrono-header {
display: flex;
    gap: 10px;
    border-bottom: 1px solid #efefef;
    margin-bottom: 5px;
}

.chrono-ep-title {
font-weight: bolder;
    text-transform: uppercase;
}

.chrono-ep-date {
font-size: 10px;
    opacity: .8;
}

.chrono-ep-members {
font-size: 10px;
}

.chrono-ep-description {
border-top: 1px solid #00000070;
}

.chrono-ep-status {
font-size: 10px;
text-transform: lowercase;
opacity: .5;
}

/* конец стиля от шаблона хронологии */

/* стиль от шаблона отношений 2.0 */

.relations-shbln {

}

.relations-member-duo {
padding: 5px 20px;
margin-bottom: 10px;
border-left: 1px solid #00000050;
    display: flex;
    flex-wrap: nowrap;
}

.relations-duo .relations-member-duo:first-child {
border-left: none;
}

.relations-member {
padding: 5px 20px;
margin-bottom: 10px;
border-bottom: 1px solid #00000050;
display: flex;
flex-wrap: nowrap;
}

.relations-shbln .relations-member:last-child{
border-bottom: none;
}

.relations-member p {
padding: 0 0 3px 0!important;
}

.relations-photo {
padding: 5px;
min-width: 60px;
}

.relations-photo img {
width: 50px;
height: 50px;
}

.relations-general {
display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
    padding: 0 0 0 10px;
}

.relations-header {
display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid #efefef;
    margin-bottom: 5px;
}

.relations-mb-name {
font-weight: bolder;
    text-transform: uppercase;
}

.relations-mb-status {
font-size: 10px;
    opacity: .8;
}


.relations-mb-description {
border-top: 1px solid #00000070;
}

.relations-duo {
display: flex;
padding: 5px;
}

/*конец стилей от шаблона отношений 2.0 */
