@charset "windows-1251";
/*
 * ORBIS MOBILE THEME
 */

/* ==========================================================================
   00. Иконки Font Awesome
   ========================================================================== */
:root {
  --orb-icon-user: "\f007";
  --orb-icon-mail: "\f0e0";
  --orb-icon-at: "\f1fa";
  --orb-icon-link: "\f0c1";
  --orb-icon-home: "\f015";
  --orb-icon-users: "\f0c0";
  --orb-icon-search: "\f002";
  --orb-icon-trophy: "\f091";
  --orb-icon-logout: "\f2f5";
  --orb-icon-login: "\f2f6";
  --orb-icon-register: "\f234";
  --orb-icon-settings: "\f013";
  --orb-icon-admin: "\f7d9";
  --orb-icon-file: "\f15c";
  --orb-icon-heart: "\f004";
  --orb-icon-trash: "\f2ed";
  --orb-icon-edit: "\f044";
  --orb-icon-quote: "\f10e";
}

/* Glyph rendering is shared; each component below sets its own size. */
#orb-settings-trigger::before,
html.orbis-mobile #pun-navlinks li > a:not(#New-exit)::before,
html.orbis-mobile .post-author :is(.pa-posts, .pa-respect, .pa-awards)::before,
html.orbis-mobile .post-author.no-avatar ul::before,
html.orbis-mobile .post-links li a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-align: center;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  width: 13px;
  height: 13px;
  font-size: 13px;
}

/* ==========================================================================
   01. Настройки чтения и размер текста
   ========================================================================== */

#orb-settings {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 100001;
  font: 14px/1.5 "Inter Tight", sans-serif;
  color: #dfd7c8;
  text-transform: none;
  letter-spacing: normal;
}

#orb-settings button,
#orb-settings > summary {
  appearance: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #8b7654;
  border-radius: 7px;
  background: #302e29;
  color: #e9d4a4;
  font: 500 15px/1 "Inter Tight", sans-serif;
  padding: 8px 12px;
  box-sizing: border-box;
}

#orb-settings button:hover,
#orb-settings > summary:hover {
  background: #453c2f;
}

#orb-settings button:disabled {
  opacity: 0.35;
  cursor: default;
}

#orb-settings-panel {
  position: fixed;
  inset: 62px 12px auto auto;
  margin: 0;
  box-sizing: border-box;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid #8b7654;
  border-radius: 8px;
  background: linear-gradient(150deg, #39362f, #242522);
  box-shadow: 0 12px 40px #0007;
  text-align: left;
}

#orb-settings #orb-settings-panel h2 {
  display: block;
  position: static;
  margin: 0 0 18px;
  padding: 0;
  background: none;
  height: auto;
  color: #dbc394;
  font: italic 23px/1.2 "Playfair Display", serif;
  text-transform: none;
}

#orb-settings-panel h2::before,
#orb-settings-panel h2::after {
  display: none;
}

.orb-setting-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #71644b;
}

html.orbis-small-screen #orb-settings .orb-setting-row {
  display: flex;
}

#orb-settings #orb-mobile-toggle[aria-checked="true"] {
  background: #b28b53;
  color: #171915;
}

#orb-font-label {
  margin: 16px 0 8px;
  color: #dfd7c8;
  font: 14px/1.5 "Inter Tight", sans-serif;
}

.orb-font-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

#orb-font-value {
  min-width: 48px;
  text-align: center;
  font: 22px/1.2 "Playfair Display", serif;
  font-variant-numeric: tabular-nums;
  color: #e9d4a4;
}

.post-content {
  font-size: var(--orbis-post-font-size, 12px) !important;
}

.post-content :where(p, li, blockquote, dd, dt) {
  font-size: inherit !important;
}

#orb-settings #orb-settings-trigger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  box-shadow: 0 3px 14px #0005;
}

#orb-settings-trigger::before {
  content: var(--orb-icon-settings);
  display: block;
  width: 18px;
  height: 18px;
  background: none !important;
  font-size: 18px;
}

/* Native details works without the Popover API or a JavaScript click handler. */
#orb-settings > summary {
  list-style: none;
}

#orb-settings > summary::-webkit-details-marker {
  display: none;
}

#orb-settings:not([open]) > #orb-settings-panel {
  display: none;
}

#orb-settings[open] > #orb-settings-panel {
  display: block;
}

#orb-settings :is(button, summary):focus-visible {
  outline: 2px solid #d6b572;
  outline-offset: 2px;
}

/* ==========================================================================
   Мобильная тема включается двумя условиями, как на Shadows of Old:
   класс html.orbis-mobile (переключатель + маленький экран, ставит скрипт
   вместе с <meta name="viewport">) и media-запрос по ширине окна.
   ========================================================================== */

@media screen and (max-width: 1024px) {

  html.orbis-mobile #orb-settings {
    top: 4px;
    right: max(6px, calc((100vw - 800px) / 2 + 6px));
  }

  html.orbis-mobile #orb-settings #orb-settings-trigger {
    width: 32px;
    min-width: 32px;
    height: 36px;
    min-height: 36px;
    padding: 6px;
  }

  html.orbis-mobile #orb-settings-trigger::before {
    width: 16px;
    height: 16px;
    font-size: 16px;
  }

  html.orbis-mobile #orb-settings-panel {
    top: 48px;
    right: max(6px, calc((100vw - 800px) / 2 + 6px));
  }

  /* ==========================================================================
     02. Основа страницы и ограничения ширины
     ========================================================================== */

  html.orbis-mobile {
    -webkit-text-size-adjust: 100%;
  }

  html.orbis-mobile body {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    height: auto !important;
    overflow-x: visible !important;
    background-attachment: scroll;
  }

  html.orbis-mobile #pun_wrap {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0;
    padding: 0;
  }

  html.orbis-mobile #pun {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 800px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html.orbis-mobile .punbb {
    top: 0 !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
  }

  html.orbis-mobile .punbb > * {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  html.orbis-mobile #pun-main {
    padding: 0 12px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* ==========================================================================
     03. Шапка
     ========================================================================== */

  html.orbis-mobile #html-header {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html.orbis-mobile #pun-title {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: clamp(180px, 54vw, 360px) !important;
    margin: 0 !important;
    background-color: #262721 !important;
    background-image: url(https://forumstatic.ru/files/001c/d4/a8/80578.jpg?v=1) !important;
    background-size: 100% auto !important;
    background-position: center 35% !important;
    isolation: isolate;
    overflow: hidden;
  }

  html.orbis-mobile #pun-title table {
    height: 100% !important;
  }

  html.orbis-mobile #pun-title table,
  html.orbis-mobile #pun-title tbody,
  html.orbis-mobile #pun-title tr {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-title td {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-title h1 {
    padding: 0 !important;
  }

  /* ==========================================================================
     04. Главная навигация и подписи иконок
     ========================================================================== */

  html.orbis-mobile #pun-navlinks,
  html.orbis-mobile #pun-navlinks.is-fixed {
    order: -1;
    position: sticky !important;
    inset: auto !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 4px 40px 4px 6px !important;
    z-index: 10000;
    background: #262721f5;
    border-bottom: 1px solid #796647;
    backdrop-filter: blur(12px);
  }

  html.orbis-mobile #pun-navlinks ul.container,
  html.orbis-mobile #pun-navlinks.is-fixed ul.container {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0 2px;
  }

  html.orbis-mobile #pun-navlinks li {
    display: block !important;
    position: relative;
  }

  html.orbis-mobile #pun-navlinks li a:not(#New-exit) {
    min-height: 36px;
    height: auto !important;
    padding: 9px 8px !important;
    font: 13px/18px "Inter Tight", sans-serif !important;
    color: #e0d4bb !important;
    text-transform: none;
    width: auto;
    white-space: nowrap;
  }

  html.orbis-mobile #pun-navlinks li > a:not(#New-exit) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    min-width: 28px;
    height: 36px !important;
    min-height: 36px;
    padding: 0 !important;
    border-radius: 6px;
    font-size: 0 !important;
  }

  html.orbis-mobile #pun-navlinks li > a:not(#New-exit)::before {
    content: var(--orb-icon, var(--orb-icon-link));
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: none !important;
    font-size: 16px;
  }

  html.orbis-mobile #pun-navlinks li > a:not(#New-exit) > span:not(.num_msg) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  html.orbis-mobile #pun-navlinks .num_msg {
    font-size: 10px;
  }

  html.orbis-mobile #pun-navlinks li > a:focus-visible {
    outline: 2px solid #d6b572;
    outline-offset: -2px;
  }

  html.orbis-mobile #navindex {
    --orb-icon: var(--orb-icon-home);
  }

  html.orbis-mobile #navuserlist {
    --orb-icon: var(--orb-icon-users);
  }

  html.orbis-mobile #navawards {
    --orb-icon: var(--orb-icon-trophy);
  }

  html.orbis-mobile #navsearch {
    --orb-icon: var(--orb-icon-search);
  }

  html.orbis-mobile #navprofile {
    --orb-icon: var(--orb-icon-user);
  }

  html.orbis-mobile #navpm {
    --orb-icon: var(--orb-icon-mail);
  }

  html.orbis-mobile #navadmin {
    --orb-icon: var(--orb-icon-admin);
  }

  html.orbis-mobile #navlogout {
    --orb-icon: var(--orb-icon-logout);
  }

  html.orbis-mobile #navlogin {
    --orb-icon: var(--orb-icon-login);
  }

  html.orbis-mobile #navregister {
    --orb-icon: var(--orb-icon-register);
  }

  html.orbis-mobile #twink-trigger {
    --orb-icon: var(--orb-icon-users);
  }

  /* ==========================================================================
     05. Пользовательские ссылки, объявление и новости
     ========================================================================== */

  html.orbis-mobile #pun-ulinks,
  html.orbis-mobile #pun-ulinks.is-fixed {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    background: #302e29;
    border-bottom: 1px solid #796647;
  }

  html.orbis-mobile #pun-ulinks ul.container,
  html.orbis-mobile #pun-ulinks ul.is-fixed {
    position: static !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 12px;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-ulinks a {
    display: inline-block;
    padding: 6px 0;
    color: #d7c7a6 !important;
    font: 12px/1.4 "Inter Tight", sans-serif !important;
  }

  html.orbis-mobile #pun-announcement {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px !important;
    z-index: auto;
    background: #292b27;
    color: #d6cebc;
  }

  html.orbis-mobile #pun-announcement::before {
    display: none !important;
  }

  html.orbis-mobile #pun-announcement .container,
  html.orbis-mobile #pun-announcement > div > div {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    gap: 12px;
  }

  html.orbis-mobile #pun-announcement section {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
    transform: none !important;
  }

  html.orbis-mobile #pun-announcement .headnews {
    min-width: 0;
    padding: 4px 0 !important;
  }

  html.orbis-mobile .headnews > div {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    padding: 16px 0 6px !important;
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: normal;
    box-sizing: border-box;
    scrollbar-width: thin;
    margin-top: -16px;
  }

  html.orbis-mobile .headnews > div > div {
    flex: 0 0 183px;
    max-width: 100%;
    height: auto !important;
  }

  html.orbis-mobile #pun-announcement .headnews > div > div > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #766548;
    border-radius: 8px;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-announcement .headnews l1,
  html.orbis-mobile #pun-announcement .headnews l2 {
    margin: 0 !important;
    line-height: 1.3 !important;
    white-space: normal;
    text-align: center;
  }

  html.orbis-mobile .blush-dropdown {
    width: 100%;
  }

  html.orbis-mobile .blush-dropdown-toggle {
    width: 100%;
    min-height: 44px;
    font-size: 17px;
    padding: 10px;
    height: auto;
  }

  html.orbis-mobile .blush-dropdown-menu {
    position: static;
    width: 100%;
    clip-path: none;
    opacity: 1;
    display: none;
    padding: 8px 0;
    background: none;
  }

  html.orbis-mobile .blush-dropdown.open .blush-dropdown-menu {
    display: flex;
  }

  html.orbis-mobile .blush-dropdown-menu a {
    width: 100%;
    min-height: 38px;
    height: auto;
    padding: 10px;
    font-size: 14px;
  }

  html.orbis-mobile #pun-announcement :is(.turn-tracker, .headpost, .headchars, .amt) {
    display: none !important;
  }

  /* ==========================================================================
     06. Хлебные крошки, статус и кнопки прокрутки
     ========================================================================== */

  html.orbis-mobile #pun-status,
  html.orbis-mobile #pun-status .container {
    margin: 0 !important;
    padding: 10px 12px !important;
    width: 100% !important;
    box-sizing: border-box;
    white-space: normal;
  }

  html.orbis-mobile #pun-status span {
    white-space: normal;
  }

  html.orbis-mobile #pun-status .status-right {
    position: static !important;
    margin: 0 !important;
  }

  html.orbis-mobile #pun-crumbs1,
  html.orbis-mobile #pun-crumbs2,
  html.orbis-mobile #pun-about,
  html.orbis-mobile #pun-stats {
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-crumbs1 p.container,
  html.orbis-mobile #pun-crumbs2 p.container {
    padding: 0 !important;
    text-align: left;
  }

  html.orbis-mobile #pun-crumbs1 p.container,
  html.orbis-mobile #pun-crumbs2 p.container,
  html.orbis-mobile #pun-about p.container {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }

  /* Reset the desktop footer offset on every mobile page. */
  html.orbis-mobile #pun-about p.container {
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-about p.container > span {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #ToTop,
  html.orbis-mobile #OnBottom {
    position: fixed !important;
    left: auto !important;
    right: 12px !important;
    bottom: auto !important;
    width: 36px !important;
    height: 40px !important;
    margin: 0 !important;
    z-index: 10000 !important;
    background-color: #292b27 !important;
    background-position: center !important;
    background-size: 26px auto !important;
    border: 1px solid #a58f64;
    border-radius: 6px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px #0005;
    cursor: pointer;
  }

  html.orbis-mobile #ToTop {
    top: calc(50% - 44px) !important;
  }

  html.orbis-mobile #OnBottom {
    top: calc(50% + 4px) !important;
  }

  /* ==========================================================================
     07. Главная: разделы и статистика
     ========================================================================== */

  html.orbis-mobile .category,
  html.orbis-mobile .forum {
    width: 100% !important;
    margin: 12px 0 !important;
  }

  html.orbis-mobile .category h2,
  html.orbis-mobile #pun-main > h2 {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: auto !important;
    padding: 12px !important;
    font-size: 24px !important;
    background-size: cover;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile .category h2::before {
    display: none;
  }

  html.orbis-mobile .punbb .category h2,
  html.orbis-mobile #pun-stats h2 {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    inset: auto !important;
  }

  html.orbis-mobile .punbb .category h2 span,
  html.orbis-mobile #pun-stats h2 span {
    display: block;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 !important;
    inset: auto !important;
    transform: none !important;
    overflow-wrap: anywhere;
    font-size: 30px !important;
    line-height: 1.2;
  }

  html.orbis-mobile .category table,
  html.orbis-mobile .forum table {
    display: block;
    width: 100%;
  }

  html.orbis-mobile .category tbody,
  html.orbis-mobile .forum tbody {
    display: block;
  }

  html.orbis-mobile .category tr,
  html.orbis-mobile .forum tr {
    display: flex !important;
    flex-wrap: wrap;
    width: 100% !important;
    padding: 12px !important;
    margin: 0 0 8px !important;
    gap: 8px;
    box-sizing: border-box;
  }

  html.orbis-mobile .category td,
  html.orbis-mobile .forum td {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .category td.tcl,
  html.orbis-mobile .forum td.tcl {
    flex: 1 1 100%;
  }

  html.orbis-mobile .category .intd,
  html.orbis-mobile .forum .intd,
  html.orbis-mobile .category .tclcon,
  html.orbis-mobile .forum .tclcon {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html.orbis-mobile .category .tcr,
  html.orbis-mobile .forum .tcr {
    flex: 1 1 100%;
  }

  html.orbis-mobile .category .tcl h3,
  html.orbis-mobile .forum .tcl h3 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.4;
  }

  html.orbis-mobile .category .icon,
  html.orbis-mobile .forum .icon {
    display: none;
  }

  /* Индикатор новых сообщений с основного форума: маленькая картинка «new»
     сразу после названия раздела, внутри блока. Сама div.icon скрыта выше. */
  html.orbis-mobile #pun-index .category tr.inew .tclcon h3::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 24px;
    margin-left: 6px;
    vertical-align: -5px;
    background: var(--icon-new) no-repeat center / contain;
  }

  /* Списки тем: точка у темы с новыми сообщениями, как на основном форуме. */
  html.orbis-mobile .forum .tcl .icon.icon-new {
    display: inline-block !important;
    position: static !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 6px 0 0 !important;
    border: 0 !important;
    border-radius: 50%;
    transform: none !important;
    vertical-align: middle;
    background: rgb(124 124 221) !important;
  }

  html.orbis-mobile .forum .tcl .intd:has(> .icon.icon-new) {
    display: flex !important;
    align-items: baseline;
  }

  html.orbis-mobile .forum .tcl .intd:has(> .icon.icon-new) > .icon {
    flex: 0 0 8px;
    align-self: center;
  }

  html.orbis-mobile .forum .tcl .intd:has(> .icon.icon-new) > .tclcon {
    flex: 1 1 auto;
    min-width: 0;
  }

  html.orbis-mobile .category thead,
  html.orbis-mobile .forum thead {
    display: none;
  }

  html.orbis-mobile #pun-stats .container,
  html.orbis-mobile #pun-stats .statscon {
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-stats li,
  html.orbis-mobile #pun-stats .statcont {
    position: static !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    margin: 4px 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-index .category {
    margin: 8px 0 12px !important;
  }

  html.orbis-mobile #pun-index .category h2 {
    margin: 0 !important;
    padding: 8px 12px !important;
    background-size: cover !important;
  }

  html.orbis-mobile #pun-index .category h2 span {
    position: static !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  html.orbis-mobile #pun-index .category tr:last-child {
    margin-bottom: 0 !important;
  }

  html.orbis-mobile #pun-index .category .tcl,
  html.orbis-mobile #pun-index .category .intd,
  html.orbis-mobile #pun-index .category .tclcon {
    min-height: 0 !important;
  }

  html.orbis-mobile #pun-index .category .tclcon {
    padding: 8px 10px !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-index .category .tcl h3 {
    padding: 0 0 4px !important;
    line-height: 1.4 !important;
  }

  html.orbis-mobile #pun-index .category .tcl h3 a {
    padding: 0 !important;
  }

  html.orbis-mobile #pun-index .category .tcr {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 8px;
    align-items: center;
    justify-content: start;
    min-height: 0 !important;
  }

  html.orbis-mobile #pun-index .category .tcr .user-avatar {
    position: static !important;
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0 !important;
  }

  html.orbis-mobile #pun-index .category .tcr .lastpost-link,
  html.orbis-mobile #pun-index .category .tcr .lastpost {
    grid-column: 2;
    margin: 0 !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile #pun-index .category .tcr > br {
    display: none;
  }

  html.orbis-mobile #pun-index #pun-stats {
    width: calc(100% - 24px) !important;
    margin: 0 12px 12px !important;
    padding: 12px !important;
    border: 0 !important;
  }

  html.orbis-mobile #pun-index #pun-stats h2 {
    width: calc(100% + 24px) !important;
    max-width: none !important;
    height: auto !important;
    margin: -12px -12px 8px !important;
    padding: 0 !important;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
  }

  html.orbis-mobile #pun-index #pun-stats h2 span {
    position: static !important;
    padding: 8px 12px !important;
    line-height: 1.2 !important;
    box-sizing: border-box;
    background-size: cover !important;
  }

  html.orbis-mobile #pun-index #pun-stats .container {
    margin: 0 !important;
    gap: 6px;
  }

  html.orbis-mobile #pun-index #pun-stats .container::after {
    display: none;
  }

  html.orbis-mobile #pun-index #pun-stats li {
    min-width: 0;
    margin: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-index #pun-stats li.item4 {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 2px 5px;
  }

  html.orbis-mobile #pun-index #onlinelist {
    flex: 1 1 100%;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile #pun-index #onlinelist > div {
    padding: 2px 0 0 !important;
  }

  html.orbis-mobile #pun-index #pun-about {
    float: none;
    padding: 0 12px 12px !important;
  }

  html.orbis-mobile #pun-index #pun-about .container {
    padding: 0 !important;
    text-align: center;
  }

  html.orbis-mobile #pun-index #pun-about p span {
    margin: 0 !important;
  }

  /* ==========================================================================
     08. Подвал и партнёрские баннеры
     ========================================================================== */

  html.orbis-mobile #html-footer {
    top: 0 !important;
    height: auto !important;
    background-color: #3e4245;
    background-image: none !important;
  }

  html.orbis-mobile #html-footer::before {
    content: "";
    display: block;
    position: static;
    width: 100%;
    aspect-ratio: 1040 / 185;
    background: var(--bg-footer) no-repeat center / contain;
  }

  html.orbis-mobile banners {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 !important;
    padding: 12px !important;
    background: #3e4245;
    overflow-x: auto;
    box-sizing: border-box;
  }

  html.orbis-mobile #html-footer banners > div {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    box-sizing: border-box;
  }

  /* ==========================================================================
     09. Тема: каркас сообщения и дата
     ========================================================================== */

  html.orbis-mobile .punbb .topic {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .post .container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .punbb .post-body,
  html.orbis-mobile #pun-messages .post-body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-viewforum td.tcl,
  html.orbis-mobile #pun-viewforum .intd,
  html.orbis-mobile #pun-viewforum .tclcon,
  html.orbis-mobile #pun-viewforum .tclcon > a {
    min-width: 0 !important;
    max-width: 100%;
    width: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile .post {
    width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 !important;
    box-sizing: border-box;
    overflow: visible;
  }

  html.orbis-mobile .post h3,
  html.orbis-mobile .post h3 span {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    margin: 0 !important;
    height: auto !important;
    white-space: normal;
  }

  /* Extend the date, author and actions into the page gutters only. */
  html.orbis-mobile .punbb .post h3,
  html.orbis-mobile .punbb .post .post-author,
  html.orbis-mobile .punbb .post-links {
    width: calc(100% + 24px) !important;
    max-width: none !important;
    margin: 0 -12px !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .punbb .post h3 {
    display: flex !important;
    align-items: center;
    padding: 6px 10px !important;
    min-height: 30px;
    box-sizing: border-box;
    background: #ccc5b5;
    border-radius: 7px 7px 0 0;
    border-bottom: 1px solid #a49b8666;
    font-size: 12px !important;
  }

  html.orbis-mobile .post h3 > span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    background: none !important;
    line-height: 1.4;
    font-size: 11px !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .post h3 strong,
  html.orbis-mobile .post h3 .permalink {
    position: static !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
  }

  html.orbis-mobile .post h3 .sharelink {
    display: none !important;
  }

  /* ==========================================================================
     10. Тема: автор, аватар и счётчики
     ========================================================================== */

  html.orbis-mobile .punbb .post .post-author {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    display: block !important;
    height: auto !important;
    padding: 10px 12px !important;
    box-sizing: border-box;
    border-radius: 0;
    border-bottom: 1px solid #b5a07866;
    background-position: center;
  }

  html.orbis-mobile .post-author ul {
    display: grid !important;
    grid-template-columns: 76px fit-content(46px) fit-content(66px) minmax(0, 1fr);
    align-items: start;
    gap: 4px 8px;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    position: static !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    box-sizing: border-box;
    background-image: none !important;
  }

  html.orbis-mobile .post-author ul::before,
  html.orbis-mobile .post-author ul::after,
  html.orbis-mobile .post-author::after {
    display: none !important;
  }

  html.orbis-mobile .post-author li {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  html.orbis-mobile .post-author li:not(.pa-author):not(.pa-title):not(.pa-avatar):not(.pa-posts):not( .pa-respect ):not(.pa-awards),
  html.orbis-mobile .post-author ul > :not(li),
  html.orbis-mobile .post-author > :not(ul) {
    display: none !important;
  }

  html.orbis-mobile .post-author .pa-avatar {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
  }

  html.orbis-mobile .post-author .pa-avatar img {
    position: static !important;
    width: 64px !important;
    object-fit: cover;
    border-radius: 0;
    height: 64px !important;
    aspect-ratio: 1;
    box-sizing: border-box;
    object-position: center;
  }

  html.orbis-mobile .post-author .pa-author {
    grid-column: 2 / -1;
    grid-row: 1;
    text-align: left;
    font-size: 16px !important;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
    align-self: end;
  }

  html.orbis-mobile .post-author .pa-author .flag-i {
    display: none !important;
  }

  html.orbis-mobile .post-author .pa-author a {
    color: #ead8b0 !important;
    -webkit-text-fill-color: #ead8b0 !important;
    background: none !important;
  }

  html.orbis-mobile .post-author .pa-title {
    grid-column: 2 / -1;
    grid-row: 2;
    text-align: left;
    color: #e3dccb;
    font-size: 11px;
    line-height: 1.35;
    align-self: start;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile .post-author :is(.pa-posts, .pa-respect, .pa-awards) {
    grid-row: 3;
    justify-self: start;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 4px;
    padding: 4px 6px !important;
    margin-top: 2px !important;
    min-height: 26px;
    box-sizing: border-box;
    border: 1px solid #b5a07866;
    border-radius: 4px;
    background: #252b27bb;
    font-size: 11px;
    color: #eadfc9;
    line-height: 1.2;
    white-space: normal;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Compact message and reputation counters beside the avatar. */
  html.orbis-mobile .post-author :is(.pa-posts, .pa-respect) {
    gap: 3px;
    padding: 2px 5px !important;
    min-height: 22px;
    font-size: 10px;
  }

  html.orbis-mobile .post-author .pa-posts {
    grid-column: 2;
    --orb-icon: var(--orb-icon-file);
  }

  html.orbis-mobile .post-author .pa-respect {
    grid-column: 3;
    --orb-icon: var(--orb-icon-heart);
  }

  html.orbis-mobile .post-author .pa-awards {
    grid-column: 4;
    font-size: 0;
    --orb-icon: var(--orb-icon-trophy);
  }

  html.orbis-mobile .post-author .pa-awards > span {
    font-size: 11px;
  }

  html.orbis-mobile .post-author .pa-awards > a {
    display: none;
  }

  /* Visually hide labels while preserving their text for assistive technology. */
  html.orbis-mobile .post-author :is(.pa-posts, .pa-respect) .fld-name {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  html.orbis-mobile .post-author :is(.pa-posts, .pa-respect, .pa-awards)::before {
    content: var(--orb-icon);
    display: inline-block;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    background: none !important;
    font-size: 12px;
  }

  html.orbis-mobile .post-author :is(.pa-posts, .pa-respect)::before {
    flex-basis: 11px;
    width: 11px;
    height: 11px;
    font-size: 11px;
  }

  html.orbis-mobile .post-author.no-avatar ul::before {
    content: var(--orb-icon-user);
    display: grid !important;
    place-items: center;
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none !important;
    align-self: center;
    border: 0 !important;
    box-shadow: none !important;
    grid-column: 1;
    grid-row: 1 / 4;
    width: 76px;
    height: 64px;
    box-sizing: border-box;
    background: none !important;
    color: #bda77c;
    font-size: 28px;
    padding-left: 12px;
  }

  /* Keep long counters inside the text column; the avatar spans all three rows. */
  html.orbis-mobile .post-author :is(.pa-posts, .pa-respect, .pa-awards) > span:not(.fld-name) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile .post-author:has(.pa-avatar img) ul::before {
    display: none !important;
  }

  html.orbis-mobile .punbb .hideprofile .post-author {
    display: none !important;
  }

  /* Search results have only an avatar and name, so use a compact two-column card. */
  html.orbis-mobile #pun-searchposts .post .post-author {
    display: block !important;
    padding: 8px 12px !important;
  }

  html.orbis-mobile #pun-searchposts .post-author ul {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px !important;
  }

  html.orbis-mobile #pun-searchposts .post-author .pa-avatar {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
  }

  html.orbis-mobile #pun-searchposts .post-author .pa-avatar img {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
  }

  html.orbis-mobile #pun-searchposts .post-author .pa-author {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    padding: 0 !important;
    background: none !important;
    text-align: left;
  }

  html.orbis-mobile #pun-searchposts .post-author .pa-author strong {
    display: block;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: none !important;
    color: #eadfc9;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  /* ==========================================================================
     11. Тема: текст, медиа, таблицы и код
     ========================================================================== */

  html.orbis-mobile .punbb .post-box,
  html.orbis-mobile .hideprofile .post-box {
    margin: 0 !important;
    padding: 12px 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .post-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.65;
  }

  html.orbis-mobile .post-content img,
  html.orbis-mobile .post-content video,
  html.orbis-mobile .post-content iframe {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .post-content img {
    height: auto;
  }

  html.orbis-mobile .post-content .quote-box,
  html.orbis-mobile .post-content .spoiler-box,
  html.orbis-mobile .post-content .code-box {
    box-sizing: border-box;
    width: auto !important;
    max-width: 100%;
    margin: 12px 0 !important;
    padding: 10px !important;
  }

  html.orbis-mobile .post-content blockquote {
    margin: 0;
  }

  html.orbis-mobile .post-content pre {
    white-space: pre;
    overflow: auto;
    max-width: 100%;
    display: block;
    overscroll-behavior-inline: contain;
  }

  html.orbis-mobile .post-sig {
    position: static !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }

  /* Native elements scroll locally; no JavaScript wrapper is needed. */
  html.orbis-mobile .post-content table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  /* ==========================================================================
     12. Тема: действия, реакции и оценка
     ========================================================================== */

  html.orbis-mobile .punbb .post-links {
    display: block;
    position: static !important;
    height: auto !important;
    padding: 7px 12px !important;
    background: #c9c3b3;
    border-top: 1px solid #a49b8666;
    border-radius: 0 0 7px 7px;
  }

  /* Join adjacent posts with one line and balanced spacing around it. */
  html.orbis-mobile .topic > .post:has(+ .post) {
    margin-bottom: 0 !important;
  }

  html.orbis-mobile .topic > .post + .post {
    margin-top: 0 !important;
  }

  html.orbis-mobile .topic > .post:has(+ .post) .post-links {
    border-radius: 0;
    padding: 4px 12px !important;
  }

  html.orbis-mobile .topic > .post + .post > h3 {
    border-radius: 0;
    border-top: 1px solid #9e9179;
    padding: 4px 10px !important;
    min-height: 24px;
  }

  html.orbis-mobile .punbb .post-links ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile .punbb .post-links li {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
  }

  html.orbis-mobile .post-links li.pl-delete {
    margin-left: auto !important;
  }

  html.orbis-mobile .punbb .post-links li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 32px !important;
    height: 22px !important;
    min-height: 22px;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 1px solid #827960;
    border-radius: 999px;
    background: #363d35 !important;
    color: #e5d5b4 !important;
    font-size: 0 !important;
    line-height: 1;
    box-sizing: border-box;
    text-decoration: none;
    box-shadow: none;
  }

  html.orbis-mobile .post-links li a::before {
    content: var(--orb-icon, var(--orb-icon-link)) !important;
    display: block;
    position: static !important;
    width: 12px;
    height: 12px;
    background: none !important;
    font-size: 12px;
  }

  html.orbis-mobile .post-links .profile {
    --orb-icon: var(--orb-icon-user);
  }

  html.orbis-mobile .post-links .pm {
    --orb-icon: var(--orb-icon-mail);
  }

  html.orbis-mobile .post-links .email {
    --orb-icon: var(--orb-icon-at);
  }

  html.orbis-mobile .post-links .pl-delete {
    --orb-icon: var(--orb-icon-trash);
  }

  html.orbis-mobile .post-links .pl-edit {
    --orb-icon: var(--orb-icon-edit);
  }

  html.orbis-mobile .post-links .pl-quote {
    --orb-icon: var(--orb-icon-quote);
  }

  html.orbis-mobile .post-links li a::after {
    display: none !important;
  }

  html.orbis-mobile .punbb .post-links a:hover {
    background: #505744 !important;
  }

  html.orbis-mobile .punbb .post-links a:focus-visible {
    outline: 2px solid #745d32;
    outline-offset: 2px;
  }

  html.orbis-mobile .punbb .post .post-rating {
    position: static !important;
    margin: 0 !important;
    padding: 0 12px 8px !important;
    height: auto !important;
  }

  html.orbis-mobile .post-rating p.container {
    display: flex;
    justify-content: flex-end;
  }

  /* Share the rating row with reactions without moving their DOM nodes. */
  html.orbis-mobile .punbb .post-body:has(> .reactions-root) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 8px;
    align-items: center;
    padding: 12px 0 !important;
  }

  html.orbis-mobile .punbb .post-body:has(> .reactions-root) > .post-box {
    display: contents;
  }

  html.orbis-mobile .punbb .post-body:has(> .reactions-root) > .clearer {
    display: none;
  }

  html.orbis-mobile .punbb .post-body:has(> .reactions-root) > .post-box > :not(.post-rating) {
    grid-column: 1 / -1;
    min-width: 0;
  }

  html.orbis-mobile .punbb .post-body:has(> .reactions-root) .post-content {
    grid-row: 1;
  }

  html.orbis-mobile .punbb .post-body:has(> .reactions-root) .mini_gifts {
    grid-row: 2;
  }

  html.orbis-mobile .punbb .post-body:has(> .reactions-root) .post-rating {
    grid-column: 2;
    grid-row: 3;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
  }

  html.orbis-mobile .post-body > .reactions-root {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
  }

  html.orbis-mobile .post-body .reactions-container {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
  }

  html.orbis-mobile .post-body .reaction-counters-container {
    flex-wrap: wrap;
    min-width: 0;
  }

  /* ==========================================================================
     13. Тема: страницы и модерация
     ========================================================================== */

  /* Keep pagination and reply on one row, followed by the subscription link. */
  html.orbis-mobile .linkst,
  html.orbis-mobile .linksb {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 8px -12px !important;
    padding: 8px 12px !important;
    width: calc(100% + 24px) !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  /* The desktop clearfix would create an empty grid row below the panel. */
  html.orbis-mobile :is(.linkst, .linksb)::after {
    content: none !important;
    display: none !important;
  }

  html.orbis-mobile :is(.linkst, .linksb) > * {
    float: none !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    min-width: 0;
    max-width: 100%;
    height: auto !important;
    box-sizing: border-box;
  }

  html.orbis-mobile :is(.linkst, .linksb) .pagelink {
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    width: auto !important;
    padding: 0 !important;
  }

  html.orbis-mobile :is(.linkst, .linksb) .pagelink :is(a, strong) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static !important;
    min-width: 28px;
    width: auto !important;
    min-height: 28px;
    height: auto !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 11px;
    line-height: 1.2;
  }

  html.orbis-mobile :is(.linkst, .linksb) .postlink {
    grid-column: 2;
    grid-row: 1;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    background: none !important;
  }

  html.orbis-mobile :is(.linkst, .linksb) .postlink a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 0 !important;
    padding: 5px 12px !important;
    border: 1px solid #827960;
    border-radius: 999px;
    background: #363d35 !important;
    color: #e5d5b4 !important;
    font-size: 11px;
    line-height: 1.2;
    box-sizing: border-box;
    text-decoration: none;
  }

  /* Hide the topic search field and button in the mobile navigation. */
  html.orbis-mobile :is(.linkst, .linksb) #s-block {
    display: none !important;
  }

  html.orbis-mobile :is(.linkst, .linksb) .subscribelink {
    grid-column: 1 / -1;
    width: 100% !important;
    padding: 0 !important;
    text-align: left;
    line-height: 1.4;
  }

  html.orbis-mobile :is(.linkst, .linksb) .subscribelink a {
    display: inline-block;
    max-width: 100%;
    padding: 6px 10px !important;
    box-sizing: border-box;
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile #topic-modmenu,
  html.orbis-mobile #topic-users-in,
  html.orbis-mobile #topic-modmenu p.container,
  html.orbis-mobile #topic-users-in p.container {
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
    white-space: normal;
  }

  html.orbis-mobile #topic-modmenu p.container,
  html.orbis-mobile #topic-users-in p.container {
    inset: auto !important;
  }

  html.orbis-mobile #pun-main .modmenu,
  html.orbis-mobile #pun-main .modmenu p.container {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 8px 0 !important;
    box-sizing: border-box;
    white-space: normal;
  }

  /* ==========================================================================
     14. Редактор ответа и вложения
     ========================================================================== */

  html.orbis-mobile #post-form,
  html.orbis-mobile #post-form .container,
  html.orbis-mobile #post-form fieldset {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    min-width: 0;
  }

  html.orbis-mobile #post-form {
    padding: 12px 0 !important;
  }

  html.orbis-mobile textarea[name="req_message"],
  html.orbis-mobile #main-reply {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 220px;
    box-sizing: border-box;
    padding: 12px !important;
    font-size: 16px !important;
  }

  /* Give the toolbar one padded wrapper, not four nested padded boxes. */
  html.orbis-mobile #form-buttons,
  html.orbis-mobile #form-buttons table,
  html.orbis-mobile #form-buttons tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #form-buttons {
    margin: 8px 0 !important;
    padding: 8px !important;
  }

  /* Thirteen compact buttons per row when space permits; center every wrap. */
  html.orbis-mobile #form-buttons tr {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 1px;
    width: 100% !important;
    max-width: 336px;
    margin: 0 auto !important;
    padding: 0 !important;
    height: auto !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #form-buttons td {
    display: block !important;
    flex: 0 0 24px;
    width: 24px !important;
    height: 24px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background-position: center !important;
  }

  html.orbis-mobile #form-buttons td img {
    display: block;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
  }

  html.orbis-mobile #form-buttons #button-graffiti_rusff {
    display: none !important;
  }

  /* Remove inherited spacing around the textarea and nested editor fields. */
  html.orbis-mobile #post-form .fs-box,
  html.orbis-mobile #post-form .fs-box > p,
  html.orbis-mobile #post-form .fs-box fieldset {
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #post-form .formsubmit {
    position: static !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #post-form .formsubmit input:is([type="submit"], [type="button"]) {
    width: auto !important;
    max-width: 100%;
    min-height: 30px;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    font-size: 11px;
    line-height: 1.2;
    box-sizing: border-box;
  }

  html.orbis-mobile #addition-area,
  html.orbis-mobile #image-area,
  html.orbis-mobile #font-area,
  html.orbis-mobile #smilies-area {
    max-width: calc(100vw - 40px) !important;
    box-sizing: border-box;
  }

  /* ==========================================================================
     15. Формы, профиль и личные сообщения
     ========================================================================== */

  /* --- 15.1. Общие поля, кнопки и ограничения размеров --- */

  html.orbis-mobile .punbb form,
  html.orbis-mobile .punbb fieldset,
  html.orbis-mobile .punbb .fs-box {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  html.orbis-mobile .punbb fieldset {
    margin: 12px 0 !important;
    padding: 12px !important;
  }

  html.orbis-mobile .punbb input,
  html.orbis-mobile .punbb select,
  html.orbis-mobile .punbb textarea {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .punbb input[type="text"],
  html.orbis-mobile .punbb input[type="password"],
  html.orbis-mobile .punbb input[type="email"],
  html.orbis-mobile .punbb select {
    min-height: 40px;
    font-size: 16px;
  }

  html.orbis-mobile .punbb .inputfield,
  html.orbis-mobile .punbb .selectfield {
    float: none !important;
    margin: 8px 0 !important;
    max-width: 100%;
  }

  html.orbis-mobile .punbb .formsubmit input,
  html.orbis-mobile .punbb .formsubmit button {
    min-height: 44px;
    margin: 4px;
  }

  html.orbis-mobile #profile-left,
  html.orbis-mobile #profile-right {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #profile-left img {
    max-width: 100%;
    height: auto;
  }

  html.orbis-mobile #pun-profile #profilenav,
  html.orbis-mobile #pun-messages #profilenav,
  html.orbis-mobile .punbb .side {
    float: none !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
  }

  html.orbis-mobile .punbb .side ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  html.orbis-mobile .punbb .side a {
    display: inline-block;
    padding: 8px;
  }

  html.orbis-mobile .punbb .hashelp,
  html.orbis-mobile .punbb .formal,
  html.orbis-mobile .punbb .usertable,
  html.orbis-mobile .punbb .hasmenu {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .usertable .container,
  html.orbis-mobile #pun-search .container,
  html.orbis-mobile #pun-messages .main > .container {
    max-width: 100%;
    overflow-x: auto;
  }

  html.orbis-mobile .usertable table,
  html.orbis-mobile #pun-messages .main table {
    width: 100% !important;
    table-layout: auto;
  }

  html.orbis-mobile .usertable td,
  html.orbis-mobile .usertable th {
    padding: 8px !important;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile #pun-search input[type="text"] {
    width: 100%;
  }

  html.orbis-mobile #pun-profile .container,
  html.orbis-mobile #pun-userlist .container,
  html.orbis-mobile #pun-mod .container {
    box-sizing: border-box;
    max-width: 100%;
  }

  html.orbis-mobile .formal > .container,
  html.orbis-mobile .usertable > .container {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box;
  }

  html.orbis-mobile .punbb fieldset legend {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 4px 0 !important;
    height: auto !important;
    box-sizing: border-box;
    white-space: normal;
  }

  html.orbis-mobile #pun-messages #profile,
  html.orbis-mobile #pun-messages #messages,
  html.orbis-mobile #pun-messages fieldset {
    width: 100% !important;
    margin: 0 !important;
  }

  html.orbis-mobile #pun-messages #pun-main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  html.orbis-mobile .punbb .formal .formsubmit,
  html.orbis-mobile .punbb .formal .infofield {
    width: auto !important;
    max-width: 100%;
    margin: 8px 0 !important;
    padding: 8px 0 !important;
    box-sizing: border-box;
    white-space: normal;
  }

  html.orbis-mobile .punbb .formal .formsubmit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  html.orbis-mobile .punbb .formal .formsubmit a {
    position: static !important;
    margin: 0 !important;
    max-width: 100%;
    white-space: normal;
  }

  /* --- 15.2. Навигация и редактирование профиля --- */
  html.orbis-mobile :is(#pun-profile, #pun-messages) #profilenav {
    display: block !important;
    background: none !important;
    box-shadow: none;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile :is(#pun-profile, #pun-messages) #profilenav h2 {
    padding: 0 !important;
    height: auto !important;
    background: none !important;
    font-size: 14px;
    line-height: 1.4;
    margin: 12px 0 8px !important;
    text-align: left;
  }

  html.orbis-mobile :is(#pun-profile, #pun-messages) #profilenav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    list-style: none;
    box-sizing: border-box;
  }

  html.orbis-mobile :is(#pun-profile, #pun-messages) #profilenav li {
    display: block;
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  html.orbis-mobile :is(#pun-profile, #pun-messages) #profilenav a {
    display: flex;
    align-items: center;
    min-height: 32px;
    height: 100%;
    padding: 7px 10px !important;
    border: 1px solid #827960;
    border-radius: 6px;
    background: #363d35;
    color: #e5d5b4;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  html.orbis-mobile :is(#pun-profile, #pun-messages) #profilenav .isactive a {
    background: #bda77c;
    color: #252b27;
    border-color: #bda77c;
  }

  /* Profile sections share one gutter and full-width, vertically stacked fields. */
  html.orbis-mobile #pun-profile :is(#profile, #viewprofile-next, #viewprofile) {
    position: static !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-profile :is(#profile, #viewprofile) > .container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-profile #profile fieldset {
    width: 100% !important;
    min-width: 0;
    margin: 12px 0 !important;
    padding: 10px 12px !important;
  }

  html.orbis-mobile #pun-profile #profile .fs-box {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-profile #profile .fs-box > p {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile #pun-profile #profile .fs-box > p:last-child {
    margin-bottom: 0 !important;
  }

  html.orbis-mobile #pun-profile #profile :is(.inputfield, .selectfield, .areafield) > label {
    display: block;
    margin: 0 0 5px;
  }

  html.orbis-mobile #pun-profile #profile :is(.inputfield, .selectfield, .areafield) > br {
    display: none;
  }

  html.orbis-mobile #pun-profile #profile .input {
    display: block;
    min-width: 0;
    max-width: 100%;
  }

  html.orbis-mobile #pun-profile #profile input:is([type="text"], [type="email"], [type="password"], [type="number"]),
  html.orbis-mobile #pun-profile #profile select,
  html.orbis-mobile #pun-profile #profile textarea {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 8px 10px;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-profile #profile textarea {
    min-height: 120px;
    resize: vertical;
  }

  html.orbis-mobile #pun-profile #birthday .input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 6px;
  }

  html.orbis-mobile #pun-profile #profile fieldset.radiofield {
    margin: 8px 0 12px !important;
    padding: 0 !important;
    border: 0;
  }

  html.orbis-mobile #pun-profile #profile .radio {
    display: block;
    margin: 0 0 6px;
    line-height: 1.5;
  }

  html.orbis-mobile #pun-profile #profile .radiofield > br {
    display: none;
  }

  html.orbis-mobile #pun-profile #profile input:is([type="checkbox"], [type="radio"]) {
    width: auto !important;
    min-height: 0;
    margin: 0 6px 0 0 !important;
    vertical-align: middle;
  }

  html.orbis-mobile #pun-profile #profile .formsubmit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 12px 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-profile #profile input:is([type="submit"], [type="button"]) {
    max-width: 100%;
    min-height: 32px;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    font-size: 11px;
    line-height: 1.3;
    box-sizing: border-box;
  }

  /* Administration lists must not retain desktop label offsets. */
  html.orbis-mobile #pun-profile #profile :is(dl, dt, dd) {
    display: block;
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 4px 0 !important;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-profile #profile .submitfield {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* --- 15.3. Публичный профиль --- */
  html.orbis-mobile #pun-profile #viewprofile > .container > ul {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-profile #viewprofile table,
  html.orbis-mobile #pun-profile #viewprofile tbody {
    display: block;
    width: 100% !important;
  }

  html.orbis-mobile #pun-profile #viewprofile tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100% !important;
  }

  html.orbis-mobile #pun-profile :is(#profile-left, #profile-right) {
    display: block;
    min-width: 0;
    padding: 12px !important;
    border-radius: 6px;
    background: #34382f;
    color: #eadfc9;
  }

  html.orbis-mobile #pun-profile #profile-left .prof-view,
  html.orbis-mobile #pun-profile #profile-right ul {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-profile :is(#profile-left, #profile-right) li {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    list-style: none;
    line-height: 1.5;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-profile #profile-right li {
    display: grid !important;
    padding: 6px 10px !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    justify-items: stretch;
    gap: 4px 10px;
    border-bottom: 1px solid #b5a07833;
  }

  html.orbis-mobile #pun-profile :is(#profile-left, #profile-right) li > :is(span, strong) {
    position: static !important;
    display: block;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile #pun-profile #profile-right li > span {
    color: #bda77c;
  }

  html.orbis-mobile #pun-profile #profile-name strong {
    font-size: 18px;
  }

  html.orbis-mobile #pun-profile #pa-avatar img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 0;
  }

  /* Upload tables scroll within their own section, never the whole page. */
  html.orbis-mobile #pun-profile .adfs-box {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  html.orbis-mobile #pun-profile #filetable {
    width: 100% !important;
    min-width: 460px;
  }

  html.orbis-mobile #pun-profile #filetable :is(th, td) {
    padding: 6px !important;
    overflow-wrap: anywhere;
  }

  @media (min-width: 600px) {
    html.orbis-mobile :is(#pun-profile, #pun-messages) #profilenav ul {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  /* --- 15.4. Личные сообщения: контейнеры и папки --- */
  html.orbis-mobile #pun-messages #profile > .container {
    padding: 0 !important;
    overflow: visible;
  }

  html.orbis-mobile #pun-messages #profile fieldset {
    width: 100% !important;
    min-width: 0;
    margin: 12px 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-messages #profile .fs-box {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* --- 15.5. Личные сообщения: список писем --- */
  html.orbis-mobile #pun-messages #messages > fieldset > .container {
    padding: 0 !important;
    overflow: visible;
  }

  html.orbis-mobile #pun-messages #messages table,
  html.orbis-mobile #pun-messages #messages tbody {
    display: block;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-messages #messages tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 8px !important;
    padding: 10px !important;
    border: 1px solid #a49b8666;
    border-radius: 6px;
    background: #d5cebd;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-messages #messages tbody td {
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-messages #messages .pmtcl1 {
    grid-column: 1;
    grid-row: 1;
  }

  html.orbis-mobile #pun-messages #messages .pmtcl1 :is(.intd, .tclcon) {
    position: static !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile #pun-messages #messages .pmtcl1 .intd {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  html.orbis-mobile #pun-messages #messages .pmtcl1 a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile #pun-messages #messages .pmtc22 {
    display: flex;
    align-items: center;
    gap: 6px;
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
  }

  html.orbis-mobile #pun-messages #messages .user-avatar {
    position: static !important;
    flex: 0 0 24px;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
  }

  html.orbis-mobile #pun-messages #messages .user-avatar img {
    width: 24px !important;
    height: 24px !important;
    object-fit: cover;
  }

  html.orbis-mobile #pun-messages #messages .pmtc33 {
    grid-column: 2;
    grid-row: 2;
    font-size: 10px;
    line-height: 1.4;
    text-align: right;
  }

  html.orbis-mobile #pun-messages #messages .pmtc24 {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  html.orbis-mobile #pun-messages #messages input[type="checkbox"] {
    margin: 0 !important;
    min-height: 0;
  }

  html.orbis-mobile #pun-messages #messages .linksb {
    width: calc(100% + 24px) !important;
    box-sizing: border-box;
    margin: 8px -12px !important;
    padding: 8px 12px !important;
  }

  /* Center both footer controls without inline-input baseline spacing. */
  html.orbis-mobile #pun-messages #messages .linksb .postlink {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    line-height: 1;
  }

  html.orbis-mobile #pun-messages #messages .linksb .pagelink :is(a, strong) {
    min-height: 30px;
  }

  html.orbis-mobile #pun-messages #messages input[type="submit"] {
    width: auto !important;
    min-height: 30px;
    margin: 0 !important;
    padding: 6px 12px !important;
    font-size: 11px;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-messages #messages .pmtcl1 .icon {
    position: static !important;
    flex: 0 0 6px;
    margin: 0 !important;
  }

  html.orbis-mobile #pun-messages #messages .linksb > .clearer {
    display: none;
  }

  /* --- 15.6. Личные сообщения: переписка --- */
  html.orbis-mobile #pun-messages #profile .post .post-author {
    margin: 0 -12px !important;
  }

  html.orbis-mobile #pun-messages .post-links .pl-email {
    --orb-icon: var(--orb-icon-mail);
  }

  html.orbis-mobile #pun-messages #post-form :is(.inputfield, .areafield) > label {
    display: block;
    margin-bottom: 5px;
  }

  html.orbis-mobile #pun-messages #post-form .inputfield input[type="text"] {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px;
  }

  /* Reset offsets on the inner heading badges as well as their wrappers. */

  html.orbis-mobile :is(#pun-profile, #pun-messages) #profilenav h2:first-child {
    margin-top: 0 !important;
  }

  html.orbis-mobile :is(#pun-profile, #pun-messages) #profilenav h2 > span {
    display: inline-block;
    position: static !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    font-size: 12px;
    line-height: 1.4;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-profile #profile-left #pa-edit > strong > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    max-width: 100%;
    margin: 0 !important;
    padding: 6px 10px !important;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    box-sizing: border-box;
  }

  html.orbis-mobile :is(#pun-profile, #pun-messages) #profile > div > fieldset > legend {
    padding: 0 !important;
  }

  html.orbis-mobile :is(#pun-profile, #pun-messages) #profile > div > fieldset > legend > strong {
    display: inline-block;
    max-width: 100%;
    margin: 0 !important;
    padding: 6px 10px !important;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  /* --- 15.7. Личные сообщения: уведомления и громкость --- */
  html.orbis-mobile #pun-messages #notify-settings {
    height: auto !important;
    margin: 0 0 12px !important;
    display: block;
    padding: 8px 0;
  }

  html.orbis-mobile #pun-messages #notify-settings > .inp2 {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  html.orbis-mobile #pun-messages #OnOff_Notify {
    float: none !important;
    margin: 0 !important;
    grid-column: 1;
    grid-row: 1;
  }

  html.orbis-mobile #pun-messages #notify-settings label {
    display: block;
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: 2;
    grid-row: 1;
    font-size: 11px !important;
    line-height: 1.4;
    white-space: normal;
  }

  html.orbis-mobile #pun-messages #volume-set {
    display: flex;
    align-items: center;
    float: none !important;
    margin: 0 !important;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 24px;
    font-size: 11px;
    line-height: 1.4;
  }

  html.orbis-mobile #pun-messages #volSlider {
    position: relative !important;
    flex: 0 0 100px;
    width: 100px !important;
    height: 8px;
    margin: 0 !important;
    box-sizing: content-box;
    cursor: pointer;
  }

  html.orbis-mobile #pun-messages #volSlider .before {
    position: absolute !important;
    top: 0;
    left: 0;
    height: 100%;
    margin: 0 !important;
    padding: 0;
    border: 0;
    box-sizing: border-box;
  }

  html.orbis-mobile #pun-messages #volSlider .thumb {
    position: absolute !important;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: 0 !important;
    transform: translate(-50%, -50%);
    touch-action: none;
  }

  /* Fieldset backgrounds must not paint empty bands around message sections. */
  html.orbis-mobile #pun-messages #profile > .container > fieldset,
  html.orbis-mobile #pun-messages #messages > fieldset {
    background: none !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
  }

  html.orbis-mobile #pun-messages #profile > .container > fieldset > .fs-box > .post {
    margin: 8px 0 0 !important;
  }

  html.orbis-mobile #pun-messages #messages > fieldset > legend {
    display: block;
    width: auto !important;
    padding: 0 0 8px !important;
  }

  html.orbis-mobile #pun-messages .post-author ul {
    border-radius: 10px;
  }

  /* Flex layouts no longer need the desktop clearing pseudo-elements. */
  html.orbis-mobile #pun-messages .post-links ul::after,
  html.orbis-mobile #pun-messages .post > .container::after {
    content: none !important;
    display: none !important;
  }

  /* ==========================================================================
     16. Диалоги и уведомления
     ========================================================================== */

  html.orbis-mobile .multiacc-overlay {
    padding: 12px;
    box-sizing: border-box;
  }

  html.orbis-mobile .multiacc-dialog,
  html.orbis-mobile #orb-dice-dialog > div {
    box-sizing: border-box;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  html.orbis-mobile .profilemenu,
  html.orbis-mobile .multiacc-profilemenu {
    max-width: calc(100vw - 24px);
    max-height: 60dvh;
    overflow: auto;
  }

  html.orbis-mobile #jGrowl {
    max-width: calc(100vw - 24px) !important;
    right: 12px !important;
    left: auto !important;
  }

  html.orbis-mobile .jGrowl-notification {
    box-sizing: border-box;
    max-width: 100%;
    width: auto !important;
    font-size: 12px;
  }

  html.orbis-mobile .reveal-modal {
    box-sizing: border-box;
    width: calc(100% - 24px) !important;
    max-width: 760px !important;
    min-width: 0 !important;
    left: 12px !important;
    margin-left: 0 !important;
    padding: 12px !important;
  }

  html.orbis-mobile .reveal-modal .modal_wrap {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  html.orbis-mobile .reveal-modal .close-reveal-modal {
    right: 12px !important;
    left: auto !important;
  }

  html.orbis-mobile .twink-modal {
    box-sizing: border-box;
    max-width: calc(100vw - 24px) !important;
  }

  /* ==========================================================================
     17. Списки тем и результаты поиска
     ========================================================================== */

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) #pun-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-margin-top: 56px;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) #pun-main > * {
    position: static !important;
    inset: auto !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) #pun-main h1 {
    display: block !important;
    padding: 8px 0 !important;
    font-family: var(--font-cat-title);
    font-size: 24px;
    line-height: 1.3;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) #pun-main h1 span {
    display: inline !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum h2 {
    display: none;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum .container,
  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum table,
  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum tbody {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum tbody tr {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 8px !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum tbody tr:last-child {
    margin-bottom: 0 !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum .tclcon {
    padding: 0 !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum .tclcon > a {
    padding: 0 !important;
    font-size: 16px;
    line-height: 1.4;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum .tc2,
  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum .tc3 {
    display: inline-flex;
    gap: 4px;
    line-height: 1.5;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum .tc2::before {
    content: "Ответов:";
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum .tc3::before {
    content: "Просмотров:";
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum .tcr {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: flex-start;
    line-height: 1.5;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .forum .tcr > span {
    margin: 0 !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .linkst,
  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .linksb {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .linkst noindex,
  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .linksb noindex {
    display: contents;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .postlink {
    position: static !important;
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .postlink span,
  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .postlink a {
    position: static !important;
    float: none !important;
    margin: 0 !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .postlink span {
    height: auto !important;
    padding: 0 !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .postlink a {
    display: block;
    width: auto !important;
    height: auto !important;
    min-height: 36px;
    padding: 8px 12px !important;
    overflow: visible;
    line-height: 1.4;
    box-sizing: border-box;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .pagelink {
    align-items: center;
    min-height: 32px;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .modmenu p.container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.5;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) #pun-main .modmenu {
    padding: 0 !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) .modmenu p.container > * {
    position: static !important;
    float: none !important;
    margin: 0 !important;
  }

  html.orbis-mobile :is(#pun-viewforum, #pun-searchtopics, #pun-userlist) #pun-about p span {
    margin: 0 !important;
  }

  html.orbis-mobile #pun-searchtopics .forum .tc2::before {
    content: "Форум:";
  }

  html.orbis-mobile #pun-searchtopics .forum .tc3::before {
    content: "Ответов:";
  }

  html.orbis-mobile #pun-searchtopics .forum .user-avatar {
    display: none !important;
  }

  html.orbis-mobile #pun-searchtopics .modmenu p.container {
    padding: 0 !important;
  }

  /* ==========================================================================
     18. Поиск участников и карточки
     ========================================================================== */

  html.orbis-mobile #pun-userlist #pun-main table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0 !important;
    overflow: visible;
  }

  html.orbis-mobile #pun-userlist #pun-main table tbody,
  html.orbis-mobile #pun-userlist #pun-main table thead {
    width: auto !important;
  }

  html.orbis-mobile #pun-userlist .formal > .container {
    padding: 0 !important;
  }

  html.orbis-mobile #userlist fieldset {
    margin: 0 !important;
  }

  html.orbis-mobile #userlist .fs-box {
    display: grid;
    gap: 12px;
    padding: 0 !important;
  }

  html.orbis-mobile #userlist .fs-box > p {
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #userlist label {
    display: block;
    margin-bottom: 4px;
  }

  html.orbis-mobile #userlist .input {
    display: block;
    width: 100%;
  }

  html.orbis-mobile #userlist .inputfield br,
  html.orbis-mobile #userlist .selectfield br {
    display: none;
  }

  html.orbis-mobile #userlist input[type="text"],
  html.orbis-mobile #userlist select {
    width: 100% !important;
  }

  html.orbis-mobile #userlist .infofield {
    line-height: 1.5;
    font-size: 12px;
  }

  html.orbis-mobile #userlist .formsubmit {
    margin: 0 !important;
    padding: 0 12px 12px !important;
  }

  html.orbis-mobile #pun-userlist .usertable > h2 {
    display: none;
  }

  html.orbis-mobile #pun-userlist .usertable > .container {
    padding: 0 !important;
    overflow: visible;
  }

  html.orbis-mobile #pun-userlist #pun-main thead {
    display: none !important;
  }

  html.orbis-mobile #pun-userlist #pun-main tbody {
    display: grid;
    gap: 8px;
    width: 100% !important;
  }

  html.orbis-mobile #pun-userlist #pun-main tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box;
    background: rgb(var(--canvas-secondary));
  }

  html.orbis-mobile #pun-userlist #pun-main td {
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 0;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  html.orbis-mobile #pun-userlist td.username {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  html.orbis-mobile #pun-userlist td.user_title {
    grid-column: 1 / -1;
  }

  html.orbis-mobile #pun-userlist .username .user-avatar,
  html.orbis-mobile #pun-userlist .usersname {
    position: static !important;
    float: none !important;
    margin: 0 !important;
  }

  html.orbis-mobile #pun-userlist .username .user-avatar {
    flex: 0 0 37px;
  }

  html.orbis-mobile #pun-userlist td.relation::before {
    content: "Уважение";
  }

  html.orbis-mobile #pun-userlist td.num_posts::before {
    content: "Сообщений";
  }

  html.orbis-mobile #pun-userlist td.registered::before {
    content: "Регистрация";
  }

  html.orbis-mobile #pun-userlist td.last_visit::before {
    content: "Последний визит";
  }

  html.orbis-mobile #pun-userlist td.tc3::before {
    display: block;
    opacity: 0.65;
    font-size: 11px;
  }

  @media (min-width: 480px) {
    html.orbis-mobile #userlist .fs-box {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html.orbis-mobile #userlist .infofield {
      grid-column: 1 / -1;
    }
  }

  /* ==========================================================================
     19. Доступность: уменьшение анимации
     ========================================================================== */

  @media (prefers-reduced-motion: reduce) {
    html.orbis-mobile *,
    html.orbis-mobile *::before,
    html.orbis-mobile *::after {
      scroll-behavior: auto !important;
      transition: none !important;
      animation: none !important;
    }
  }

  /* ==========================================================================
     20. Исправления основного форума: подсказки, ссылки разделов, цитаты, реакции
     ========================================================================== */

  /* The Telegram invite tooltip is positioned for desktop and widens the page. */
  html.orbis-mobile .tipsy.notifications-telegram-invite {
    display: none !important;
  }

  /* Forum quick links: flow under the description and wrap instead of overflowing. */
  html.orbis-mobile #pun-index .tclcon mainlinks {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px;
    width: auto !important;
    height: auto !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile #pun-index .tclcon mainlinks a {
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    white-space: nowrap;
  }

  /* Quotes keep the desktop top padding that holds the author label. */
  html.orbis-mobile .post-content .quote-box {
    padding: 30px 6px 1px !important;
  }

  /* Reactions inside .post-box: one right-aligned row after the post text. */
  html.orbis-mobile .punbb .post-box:has(> .reactions-root) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    column-gap: 6px;
  }

  html.orbis-mobile .punbb .post-box:has(> .reactions-root) > * {
    flex: 0 0 100%;
    min-width: 0;
  }

  html.orbis-mobile .punbb .post-box:has(> .reactions-root) > :is(.reactions-root, .post-vote, .post-rating) {
    flex: 0 0 auto;
    float: none !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.orbis-mobile .punbb .post-box > .reactions-root {
    order: 1;
  }

  html.orbis-mobile .punbb .post-box:has(> .reactions-root) > .post-vote {
    order: 2;
  }

  html.orbis-mobile .punbb .post-box:has(> .reactions-root) > .post-rating {
    order: 3;
  }

  html.orbis-mobile .punbb .post-box:has(> .reactions-root) > .post-sig {
    order: 4;
  }

  html.orbis-mobile .punbb .post-box:has(> .reactions-root) .post-vote a {
    margin: 0 !important;
  }

  html.orbis-mobile .post-box > .reactions-root .reactions-container {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
  }

  /* Message and reputation numbers stay on one line. */
  html.orbis-mobile .post-author :is(.pa-posts, .pa-respect) {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  html.orbis-mobile .post-author :is(.pa-posts, .pa-respect) > span:not(.fld-name) {
    overflow-wrap: normal;
  }

}
