/* === ЕДИНЫЙ СТИЛЬ РАЗДЕЛОВ ГОРОДА === */
.city-forum-wrapper {
  max-width: 1180px;
  margin: 18px auto 36px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Шапка локации с описанием (индивидуальный стиль через .forum-fid-X) */
.city-location-banner {
  background: #fafafa;
  border: 1px solid #888888;
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.city-location-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.city-location-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

.city-location-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #444444;
}

/* Двухколоночная сетка: слева карточка жителя, справа контент форума */
.city-forum-grid {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.city-forum-sidebar {
  flex: 0 0 245px;
  width: 245px;
}

.city-forum-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* Карточка игрока со статами */
.city-player-card {
  background: #fafafa;
  border: 1px solid #888888;
  border-radius: 18px;
  padding: 15px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.city-player-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e2e2;
}

.city-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #333333;
  background: #ffffff;
  flex-shrink: 0;
}

.city-player-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #111111;
}

.city-player-status {
  font-size: 11.5px;
  color: #666666;
  margin-top: 2px;
}

.city-player-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.city-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.city-stat-label {
  color: #555555;
}

.city-stat-value {
  font-weight: 600;
  color: #111111;
}

/* Кнопки в стиле главного меню */
.city-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #111111 !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #888888 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.city-menu-btn:hover:not(:disabled) {
  background: #efefef !important;
  border-color: #111111 !important;
}

.city-menu-btn-full {
  width: 100%;
}

/* Кнопка активности (заглушка под будущие скрипты локации) */
.city-menu-btn-activity:disabled,
.city-menu-btn-activity.is-disabled {
  background: #f2f2f2 !important;
  color: #888888 !important;
  border-color: #cccccc !important;
  cursor: not-allowed;
}

/* Единый стиль стандартных кнопок MyBB внутри основного блока */
.city-forum-main a.button,
.city-forum-main button,
.city-forum-main input[type="submit"].button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 7px 15px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #111111 !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #888888 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
}

.city-forum-main a.button:hover,
.city-forum-main button:hover,
.city-forum-main input[type="submit"].button:hover {
  background: #efefef !important;
  border-color: #111111 !important;
}

.city-forum-main a.button span {
  background: none !important;
  padding-left: 0 !important;
}

/* Минималистичное оформление таблиц форумов и тем */
.city-forum-main table.tborder {
  border: 1px solid #888888 !important;
  border-radius: 16px !important;
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
}

.city-forum-main td.thead {
  background: #f3f3f3 !important;
  background-image: none !important;
  color: #111111 !important;
  border-bottom: 1px solid #cccccc !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
}

.city-forum-main td.thead a {
  color: #111111 !important;
}

.city-forum-main td.tcat {
  background: #fafafa !important;
  background-image: none !important;
  color: #555555 !important;
  border-bottom: 1px solid #e5e5e5 !important;
  font-size: 12px !important;
}

.city-forum-main td.trow1,
.city-forum-main td.trow2 {
  background: #ffffff !important;
  border-bottom: 1px solid #eeeeee !important;
  padding: 11px 14px !important;
}

/* Блок "Кто здесь:" в левом нижнем углу */
.city-whos-here-corner {
  position: fixed;
  left: 14px;
  bottom: 12px;
  z-index: 50;
  background: #fafafa;
  border: 1px solid #888888;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.city-whos-here-corner .smalltext {
  display: inline !important;
  font-size: 12px !important;
}

.city-whos-here-prefix {
  font-weight: 600;
  color: #111111;
  margin-right: 4px;
}

@media (max-width: 820px) {
  .city-forum-grid {
    flex-direction: column;
  }

  .city-forum-sidebar {
    width: 100%;
    flex: none;
  }
}
/* === СТИЛИ НАЗВАНИЙ РАЗДЕЛОВ/ТЕМ И АВТОРА ПОСЛЕДНЕГО СООБЩЕНИЯ === */

/* Красные области: жирный чёрный шрифт */
.city-forum-main table.tborder strong a,
.city-forum-main table.tborder td.trow1 strong,
.city-forum-main table.tborder td.trow2 strong,
.city-forum-main .forumbit_forum .forum_name a,
.city-forum-main .lastpost a {
  color: #111111 !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-decoration: none !important;
}

.city-forum-main table.tborder strong a:hover,
.city-forum-main .forumbit_forum .forum_name a:hover,
.city-forum-main .lastpost a:hover {
  color: #000000 !important;
  text-decoration: underline !important;
}

/* Голубая область: чёрный курсив для автора последнего сообщения */
.city-forum-main .lastpost .smalltext,
.city-forum-main .lastpost .smalltext a {
  color: #111111 !important;
  font-style: italic !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.city-forum-main .lastpost .smalltext a:hover {
  color: #000000 !important;
  text-decoration: underline !important;
}
/* === УБИРАЕМ ЗАЧЁРНУТЫЙ ПОДВАЛ И ТЕХНИЧЕСКУЮ СТРОКУ === */
#footer .bottommenu,
#footer .debuginfo,
#footer form[action*="index.php"],
#footer select[name="language"],
#footer ul,
#debug,
div[id*="debug"] {
  display: none !important;
}

/* На всякий случай скрываем зачёркнутые ссылки/строки перед копирайтом в подвале */
#footer a[href*="showteam.php"],
#footer a[href*="contact.php"],
#footer a[href*="archive"],
#footer a[href*="misc.php?action=markread"],
#footer a[href*="syndication.php"] {
  display: none !important;
}

/* === ЗЕЛЁНАЯ ОБЛАСТЬ: УБИРАЕМ ПОДЧЁРКИВАНИЕ И ДЕЛАЕМ АВТОРА ЧЁРНЫМ КУРСИВОМ === */

/* Убираем подчёркивание с названия темы/сообщения в колонке последнего сообщения */
.city-forum-main table.tborder td a,
.city-forum-main table.tborder td a:hover,
.city-forum-main .lastpost a,
.city-forum-main .lastpost a:hover {
  text-decoration: none !important;
}

/* Ник автора (и текст "от ...") в блоке последнего сообщения / темы: чёрный курсив без подчёркивания */
.city-forum-main .lastpost,
.city-forum-main .lastpost span,
.city-forum-main .lastpost a,
.city-forum-main .lastpost a span,
.city-forum-main .author,
.city-forum-main .author a,
.city-forum-main .author a span {
  color: #111111 !important;
  font-style: italic !important;
  text-decoration: none !important;
}

.city-forum-main .lastpost a:hover,
.city-forum-main .author a:hover {
  color: #000000 !important;
  font-style: italic !important;
  text-decoration: none !important;
}
/* === 1. КНОПКИ-РАМКИ В ЛЁГКОМ БЕЖЕВОМ ЦВЕТЕ ДЛЯ ТЕМ И ПОСЛЕДНЕГО СООБЩЕНИЯ === */

/* Название темы / подфорума как кнопка в лёгком бежевом тоне */
.city-forum-main table.tborder td strong a,
.city-forum-main .forumbit_forum .forum_name a,
.city-forum-main .subject_new a,
.city-forum-main .subject_old a {
  display: inline-block !important;
  padding: 5px 12px !important;
  background: #fbf7ef !important;
  border: 1px solid #c9b99a !important;
  border-radius: 10px !important;
  color: #111111 !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.city-forum-main table.tborder td strong a:hover,
.city-forum-main .forumbit_forum .forum_name a:hover,
.city-forum-main .subject_new a:hover,
.city-forum-main .subject_old a:hover {
  background: #f3ead8 !important;
  border-color: #9e8a67 !important;
  text-decoration: none !important;
}

/* Блок последнего сообщения в виде кнопки-рамки с лёгким бежевым оттенком */
.city-forum-main .lastpost {
  display: inline-block !important;
  padding: 6px 12px !important;
  background: #fbf7ef !important;
  border: 1px solid #c9b99a !important;
  border-radius: 10px !important;
  color: #222222 !important;
  text-decoration: none !important;
  line-height: 1.35;
}

.city-forum-main .lastpost a {
  color: #111111 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.city-forum-main .lastpost a:hover {
  text-decoration: underline !important;
}

.city-forum-main .lastpost .smalltext,
.city-forum-main .lastpost .smalltext a,
.city-forum-main .lastpost span {
  font-style: italic !important;
  font-weight: 400 !important;
  color: #111111 !important;
  text-decoration: none !important;
}

/* === 2. ВЕРХНЯЯ ПАНЕЛЬ ПОЛЬЗОВАТЕЛЯ / ПУ — В ОДНУ СТРОКУ === */
#panel,
#panel .upper,
#panel .wrapper,
#panel ul,
.usercp_nav,
.modcp_nav,
.admincp_nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 14px !important;
  list-style: none !important;
}

#panel ul li,
#panel .upper li,
#panel .wrapper li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

#panel a {
  text-decoration: none !important;
  white-space: nowrap;
}

#panel a:hover {
  text-decoration: underline !important;
}

/* === 3. СКРЫВАЕМ И УВОДИМ ВНИЗ «ВЫПОЛНИТЬ» И «ТЕКУЩЕЕ ВРЕМЯ / РАБОТАЕТ НА MYBB» === */
.city-whos-here-corner {
  z-index: 60 !important;
}

#footer input[type="submit"],
#footer button[type="submit"],
#footer .copyright,
#footer #copyright,
#footer .current_time,
#footer p:last-child {
  display: none !important;
}

/* Страховка: если какой-то блок времени/копирайта остался, уводим его ниже "Кто здесь" */
#footer {
  position: relative;
  z-index: 10;
}
/* Убираем оставшуюся строчку "Текущее время" */
#footer span.smalltext,
#footer .smalltext,
#footer div:not(.city-whos-here-corner) > span {
  display: none !important;
}

/* Возвращаем видимость тексту внутри плашки "Кто здесь" в левом нижнем углу */
.city-whos-here-corner,
.city-whos-here-corner * {
  display: inline !important;
}

.city-whos-here-corner {
  display: inline-flex !important;
  align-items: center;
}
/* === ЕДИНАЯ КНОПКА ДЛЯ НАЗВАНИЯ И ОПИСАНИЯ РАЗДЕЛА / ПОДФОРУМА === */
.city-forum-main .forumbit_forum td:first-child,
.city-forum-main table.tborder td.trow1:first-child,
.city-forum-main table.tborder td.trow2:first-child {
  position: relative;
}

/* Сбрасываем прошлую маленькую бежевую пилюлю только вокруг названия внутри объединённого блока */
.city-forum-main .forumbit_forum td:first-child strong a,
.city-forum-main .forumbit_forum td:first-child .forum_name a,
.city-forum-main table.tborder td.trow1:first-child > strong > a,
.city-forum-main table.tborder td.trow2:first-child > strong > a {
  display: inline !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  text-decoration: none !important;
}

/* Растягиваем кликабельность главной ссылки на всю карточку раздела/описания */
.city-forum-main .forumbit_forum td:first-child > strong > a::after,
.city-forum-main .forumbit_forum td:first-child .forum_name > a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Внешняя рамка единой кнопки вокруг названия и описания подфорума */
.city-forum-main .forumbit_forum td:first-child > div,
.city-forum-main .forumbit_forum td:first-child {
  cursor: pointer;
}

.city-forum-main .forumbit_forum td:first-child .forum_desc,
.city-forum-main .forumbit_forum td:first-child .smalltext {
  display: block;
  margin-top: 4px;
  color: #444444 !important;
  font-style: normal !important;
  font-weight: 400 !important;
}
/* === ЕДИНАЯ КНОПКА ДЛЯ БЛОКА ПОСЛЕДНЕГО СООБЩЕНИЯ === */
.city-forum-main .lastpost,
.city-forum-main td[class*="trow"]:last-child .smalltext {
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 14px !important;
  background: #ffffff !important;
  border: 1px solid #888888 !important;
  border-radius: 14px !important;
  color: #222222 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.city-forum-main .lastpost:hover,
.city-forum-main td[class*="trow"]:last-child .smalltext:hover {
  background: #efefef !important;
  border-color: #111111 !important;
}

/* Внутри карточки последнего сообщения: название жирное, автор курсивом, без подчёркиваний */
.city-forum-main .lastpost a,
.city-forum-main .lastpost a:hover {
  color: #111111 !important;
  text-decoration: none !important;
  position: relative;
  z-index: 2;
}

.city-forum-main .lastpost strong,
.city-forum-main .lastpost .post_subject a {
  font-weight: 700 !important;
  font-style: normal !important;
}

.city-forum-main .lastpost .author,
.city-forum-main .lastpost .author a,
.city-forum-main .lastpost span[class*="author"] {
  font-style: italic !important;
  font-weight: 400 !important;
  color: #111111 !important;
}
/* === ФИКС КНОПКИ ФОРУМА + ОПИСАНИЯ (БЕЗ СТАРОЙ БЕЖЕВОЙ ПИЛЮЛИ) === */
.city-forum-main table.tborder td strong a,
.city-forum-main .forumbit_forum .forum_name a,
.city-forum-main .subject_new a,
.city-forum-main .subject_old a {
  display: inline !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  text-decoration: none !important;
}

/* Оформляем первую ячейку с названием и описанием как единую кнопку-карточку */
.city-forum-main table.tborder td:first-child {
  position: relative;
}

.city-forum-main table.tborder td:first-child > div,
.city-forum-main .forumbit_forum td:first-child > div {
  display: inline-block;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #888888;
  border-radius: 14px;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.city-forum-main table.tborder td:first-child > div:hover,
.city-forum-main .forumbit_forum td:first-child > div:hover {
  background: #f5f5f5;
  border-color: #111111;
}

.city-forum-main table.tborder td:first-child strong a::after,
.city-forum-main .forumbit_forum td:first-child .forum_name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.city-forum-main table.tborder td:first-child .smalltext,
.city-forum-main .forumbit_forum td:first-child .smalltext {
  display: block;
  margin-top: 3px;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  color: #444444 !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

/* === ФИКС КНОПКИ ПОСЛЕДНЕГО СООБЩЕНИЯ: ВЫРАВНИВАНИЕ ВЛЕВО И ПЛОТНЫЕ СТРОКИ === */
.city-forum-main .lastpost,
.city-forum-main td[class*="trow"]:last-child .smalltext {
  display: inline-block !important;
  text-align: left !important;
  padding: 8px 13px !important;
  background: #ffffff !important;
  border: 1px solid #888888 !important;
  border-radius: 14px !important;
  color: #222222 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.city-forum-main .lastpost:hover,
.city-forum-main td[class*="trow"]:last-child .smalltext:hover {
  background: #f5f5f5 !important;
  border-color: #111111 !important;
}

/* Убираем лишние отступы у <br> и внутренних элементов внутри кнопки последнего сообщения */
.city-forum-main .lastpost br,
.city-forum-main td[class*="trow"]:last-child .smalltext br {
  line-height: 1.2;
}

.city-forum-main .lastpost *,
.city-forum-main td[class*="trow"]:last-child .smalltext * {
  float: none !important;
  text-align: left !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
}

/* Название сообщения — жирное чёрное */
.city-forum-main .lastpost strong,
.city-forum-main .lastpost strong a,
.city-forum-main td[class*="trow"]:last-child .smalltext strong,
.city-forum-main td[class*="trow"]:last-child .smalltext strong a {
  font-weight: 700 !important;
  font-style: normal !important;
  color: #111111 !important;
}

/* Автор ("от Creator") — чёрный курсив */
.city-forum-main .lastpost .author,
.city-forum-main .lastpost .author a,
.city-forum-main td[class*="trow"]:last-child .smalltext a[href*="member.php"] {
  font-style: italic !important;
  font-weight: 400 !important;
  color: #111111 !important;
}
/* === КНОПКА-КАРТОЧКА ДЛЯ НАЗВАНИЯ И ОПИСАНИЯ (КАК У ПОСЛЕДНЕГО СООБЩЕНИЯ) === */
.city-forum-main table.tborder td.trow1:first-child,
.city-forum-main table.tborder td.trow2:first-child,
.city-forum-main .forumbit_forum td:first-child {
  position: relative;
}

.city-forum-main table.tborder td.trow1:first-child > a,
.city-forum-main table.tborder td.trow2:first-child > a,
.city-forum-main .forumbit_forum td:first-child > a {
  display: inline-block !important;
  padding: 8px 13px !important;
  background: #ffffff !important;
  border: 1px solid #888888 !important;
  border-radius: 14px !important;
  color: #111111 !important;
  text-decoration: none !important;
  text-align: left !important;
  line-height: 1.35 !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

/* Если название и описание внутри первой ячейки лежат без общей ссылки, оборачиваем визуально саму ячейку/внутренний блок */
.city-forum-main table.tborder td.trow1:first-child:not(:has(> a)),
.city-forum-main table.tborder td.trow2:first-child:not(:has(> a)),
.city-forum-main .forumbit_forum td:first-child:not(:has(> a)) {
  padding: 10px 14px !important;
}

.city-forum-main table.tborder td.trow1:first-child strong,
.city-forum-main table.tborder td.trow2:first-child strong,
.city-forum-main .forumbit_forum td:first-child strong,
.city-forum-main table.tborder td.trow1:first-child strong a,
.city-forum-main table.tborder td.trow2:first-child strong a,
.city-forum-main .forumbit_forum td:first-child strong a {
  font-weight: 700 !important;
  color: #111111 !important;
  text-decoration: none !important;
}

/* Делаем рамку вокруг содержимого левой ячейки */
.city-forum-main .forumbit_forum td:first-child::before,
.city-forum-main table.tborder td.trow1:first-child::before,
.city-forum-main table.tborder td.trow2:first-child::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  bottom: 6px;
  background: #ffffff;
  border: 1px solid #888888;
  border-radius: 14px;
  z-index: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.city-forum-main .forumbit_forum td:first-child > *,
.city-forum-main table.tborder td.trow1:first-child > *,
.city-forum-main table.tborder td.trow2:first-child > * {
  position: relative;
  z-index: 1;
}

.city-forum-main .forumbit_forum td:first-child:hover::before,
.city-forum-main table.tborder td.trow1:first-child:hover::before,
.city-forum-main table.tborder td.trow2:first-child:hover::before {
  background: #f5f5f5;
  border-color: #111111;
}

/* Растягиваем клик по ссылке названия на всю карточку */
.city-forum-main .forumbit_forum td:first-child strong a::after,
.city-forum-main table.tborder td.trow1:first-child strong a::after,
.city-forum-main table.tborder td.trow2:first-child strong a::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -14px;
  right: -180px;
  bottom: -24px;
  z-index: 2;
}
/* === СКРЫВАЕМ СТАНДАРТНЫЕ СПИСКИ РАЗДЕЛОВ И СТАТИСТИКУ НА ЗАГЛАВНОЙ (INDEX) === */
body#index .tborder:not(.city-hub-box):not(.chat-box),
body#index .forumbit_cat,
body#index .forumbit_forum,
body#index .statistics,
body#index #boardstats,
body#index table[summary*="Forum Statistics"],
body#index .bottommenu {
  display: none !important;
}

/* На случай если у <body> нет id="index", скрываем стандартные таблицы разделов/статистики вне хаба и чата */
.tborder:not(.city-hub-box):not(.chat-box):not(.city-forum-main .tborder),
#boardstats,
.statistics {
  display: none !important;
}
/* === ЕДИНЫЙ БАННЕР СЕНАТА ДЛЯ РАЗДЕЛА И ПОДФОРУМОВ (FID: 2, 20, 21, 22) === */
.forum-fid-2 .city-location-banner,
.forum-fid-20 .city-location-banner,
.forum-fid-21 .city-location-banner,
.forum-fid-22 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-2 .city-location-banner::after,
.forum-fid-20 .city-location-banner::after,
.forum-fid-21 .city-location-banner::after,
.forum-fid-22 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64%;
  background: url(../../../images/senate-hall.jpg) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 30%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 30%);
}

/* === ЕДИНЫЙ БАННЕР СЕНАТА ДЛЯ РАЗДЕЛА И ПОДФОРУМОВ (FID:1, 2, 20, 21, 22) === */
.forum-fid-1 .city-location-banner,
.forum-fid-2 .city-location-banner,
.forum-fid-20 .city-location-banner,
.forum-fid-21 .city-location-banner,
.forum-fid-22 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-1 .city-location-banner::after,
.forum-fid-2 .city-location-banner::after,
.forum-fid-20 .city-location-banner::after,
.forum-fid-21 .city-location-banner::after,
.forum-fid-22 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64%;
  background: url(../../../images/senate-hall.jpg) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 30%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 30%);
}
.forum-fid-1 .city-location-header-row,
.forum-fid-1 .city-location-desc,
.forum-fid-2 .city-location-header-row,
.forum-fid-2 .city-location-desc,
.forum-fid-20 .city-location-header-row,
.forum-fid-20 .city-location-desc,
.forum-fid-21 .city-location-header-row,
.forum-fid-21 .city-location-desc,
.forum-fid-22 .city-location-header-row,
.forum-fid-22 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-1 .city-location-banner::after,
  .forum-fid-2 .city-location-banner::after,
  .forum-fid-20 .city-location-banner::after,
  .forum-fid-21 .city-location-banner::after,
  .forum-fid-22 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* === БАННЕР СУДА В ШАПКЕ РАЗДЕЛА И ПОДФОРУМОВ === */
.forum-fid-14 .city-location-banner,
.forum-fid-25 .city-location-banner,
.forum-fid-26 .city-location-banner,
.forum-fid-27 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-14 .city-location-banner::after,
.forum-fid-25 .city-location-banner::after,
.forum-fid-26 .city-location-banner::after,
.forum-fid-27 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 68%;
  background: url(../../../images/court-hall.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 28%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 28%);
}

/* Текст и кнопки остаются поверх изображения */
.forum-fid-14 .city-location-header-row,
.forum-fid-14 .city-location-desc,
.forum-fid-25 .city-location-header-row,
.forum-fid-25 .city-location-desc,
.forum-fid-26 .city-location-header-row,
.forum-fid-26 .city-location-desc,
.forum-fid-27 .city-location-header-row,
.forum-fid-27 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-14 .city-location-banner::after,
  .forum-fid-25 .city-location-banner::after,
  .forum-fid-26 .city-location-banner::after,
  .forum-fid-27 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* === ВХОДЯЩИЕ (PRIVATE.PHP) В СТИЛЕ ГЛАВНОЙ СТРАНИЦЫ === */
.city-pm-wrapper {
  max-width: 1180px;
  margin: 18px auto 36px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.city-pm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fafafa;
  border: 1px solid #888888;
  border-radius: 18px;
  padding: 14px 20px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.city-pm-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

.city-pm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Двухколоночная сетка: слева список чатов/отправителей, справа текст сообщения */
.city-pm-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Левая колонка: список собеседников */
.city-pm-sidebar {
  background: #fafafa;
  border: 1px solid #888888;
  border-radius: 18px;
  padding: 14px;
  box-sizing: border-box;
}

.city-pm-sidebar-head {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
  padding: 0 4px 10px 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e2e2;
}

.city-pm-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.city-pm-chat-item {
  display: block;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 14px;
  color: #111111 !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.city-pm-chat-item:hover,
.city-pm-chat-item.is-active {
  background: #f3f3f3;
  border-color: #111111;
}

.city-pm-chat-user {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.city-pm-chat-subject {
  font-size: 12.5px;
  color: #333333;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-pm-chat-date {
  font-size: 11.5px;
  font-style: italic;
  color: #666666;
  margin-top: 3px;
}

.city-pm-unread-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: #fbf7ef;
  border: 1px solid #c9b99a;
  color: #111111;
}

/* Правая колонка: текст сообщения и панель действий */
.city-pm-reader {
  background: #fafafa;
  border: 1px solid #888888;
  border-radius: 18px;
  padding: 18px 22px;
  box-sizing: border-box;
  min-width: 0;
}

.city-pm-message-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e2e2;
}

.city-pm-message-subject {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111111;
}

.city-pm-message-author {
  font-size: 12.5px;
  font-style: italic;
  color: #444444;
}

.city-pm-message-body {
  font-size: 14px;
  line-height: 1.6;
  color: #111111;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  word-wrap: break-word;
}

/* Приводим таблицы и кнопки внутри ЛС к стилю главной */
.city-pm-wrapper table.tborder {
  border: 1px solid #888888 !important;
  border-radius: 16px !important;
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
}

.city-pm-wrapper td.thead {
  background: #f3f3f3 !important;
  background-image: none !important;
  color: #111111 !important;
  border-bottom: 1px solid #cccccc !important;
}

.city-pm-wrapper td.tcat {
  background: #fafafa !important;
  background-image: none !important;
  color: #333333 !important;
  border-bottom: 1px solid #e5e5e5 !important;
}

.city-pm-wrapper td.trow1,
.city-pm-wrapper td.trow2 {
  background: #ffffff !important;
  border-bottom: 1px solid #eeeeee !important;
}

.city-pm-wrapper a.button,
.city-pm-wrapper button,
.city-pm-wrapper input[type="submit"],
.city-pm-wrapper input[type="button"],
.city-pm-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111111 !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #888888 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.city-pm-wrapper a.button:hover,
.city-pm-wrapper button:hover,
.city-pm-wrapper input[type="submit"]:hover,
.city-pm-wrapper input[type="button"]:hover,
.city-pm-btn:hover {
  background: #efefef !important;
  border-color: #111111 !important;
}

.city-pm-wrapper a.button span {
  background: none !important;
  padding-left: 0 !important;
}

@media (max-width: 820px) {
  .city-pm-grid {
    grid-template-columns: 1fr;
  }

  .city-pm-wrapper a.button,
  .city-pm-wrapper button,
  .city-pm-wrapper input[type="submit"],
  .city-pm-wrapper input[type="button"],
  .city-pm-btn {
    min-height: 44px;
  }
}
/* === РАДИАЛЬНОЕ МЕНЮ АКТИВНОСТИ В СТИЛЕ THE SIMS / WEB-CITY === */
.city-radial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.city-radial-backdrop.open {
  display: flex;
}

.city-radial-wheel {
  position: relative;
  width: 540px;
  height: 360px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Центральный узел ("голова" меню как в Sims) */
.city-radial-hub {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: #fafafa;
  border: 1px solid #888888;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  z-index: 2;
}

.city-radial-hub-title {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 3px;
}

.city-radial-hub-sub {
  font-size: 11px;
  color: #666666;
}

/* Лепестки-кнопки вокруг центра */
.city-radial-option {
  position: absolute;
  width: 210px;
  padding: 10px 15px;
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #888888 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.city-radial-option:hover {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
  transform: scale(1.04);
}

/* Позиции 4 лепестков по кругу */
.city-radial-option.pos-top {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}
.city-radial-option.pos-top:hover {
  transform: translateX(-50%) scale(1.04);
}

.city-radial-option.pos-left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.city-radial-option.pos-left:hover {
  transform: translateY(-50%) scale(1.04);
}

.city-radial-option.pos-right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.city-radial-option.pos-right:hover {
  transform: translateY(-50%) scale(1.04);
}

.city-radial-option.pos-bottom {
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: #fafafa !important;
  color: #555555 !important;
}
.city-radial-option.pos-bottom:hover {
  transform: translateX(-50%) scale(1.04);
  background: #efefef !important;
  color: #111111 !important;
}

@media (max-width: 580px) {
  .city-radial-wheel {
    height: auto;
    flex-direction: column;
    gap: 10px;
  }
  .city-radial-option,
  .city-radial-option.pos-top,
  .city-radial-option.pos-left,
  .city-radial-option.pos-right,
  .city-radial-option.pos-bottom {
    position: static;
    transform: none;
    width: 100%;
    max-width: 300px;
  }
}
/* Принудительное отображение всплывающей формы входа MyBB */
#quick_login,
.modal#quick_login {
  display: block !important;
  background: #ffffff !important;
  color: #111111 !important;
  padding: 20px !important;
  border-radius: 16px !important;
  border: 1px solid #888888 !important;
  z-index: 99999 !important;
}

#quick_login table,
#quick_login tr,
#quick_login td,
#quick_login form,
#quick_login input {
  display: revert !important;
  visibility: visible !important;
  opacity: 1 !important;
}
/* === ВХОДЯЩИЕ: КОМПАКТНЫЙ СПИСОК КНОПОК БЕЗ БОЛЬШИХ КОНВЕРТОВ === */

/* На всякий случай полностью скрываем любые стандартные иконки-конверты в списке ЛС */
.city-pm-sidebar img[src*="pm_"],
.city-pm-sidebar img[src*="folder"],
.city-pm-chat-list img {
  display: none !important;
}

.city-pm-sidebar {
  width: 310px;
  background: #fafafa;
  border: 1px solid #888888;
  border-radius: 18px;
  padding: 12px;
  box-sizing: border-box;
}

.city-pm-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Элемент списка размером со стандартную кнопку Web-City */
.city-pm-chat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #888888;
  border-radius: 999px;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.city-pm-chat-item:hover,
.city-pm-chat-item.is-active {
  background: #efefef;
  border-color: #111111;
}

.city-pm-chat-link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: #111111 !important;
  line-height: 1.25;
}

.city-pm-chat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.city-pm-chat-subject {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-pm-chat-date {
  font-size: 11px;
  color: #666666;
  white-space: nowrap;
  flex-shrink: 0;
}

.city-pm-chat-sender {
  font-size: 11.5px;
  font-style: italic;
  color: #444444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-pm-check {
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}
/* Баннер police_station.webp в шапке описания для разделов 15, 29, 31, 28, 30 */
.forum-fid-15 .city-location-banner,
.forum-fid-29 .city-location-banner,
.forum-fid-31 .city-location-banner,
.forum-fid-28 .city-location-banner,
.forum-fid-30 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-15 .city-location-banner::after,
.forum-fid-29 .city-location-banner::after,
.forum-fid-31 .city-location-banner::after,
.forum-fid-28 .city-location-banner::after,
.forum-fid-30 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/police_station.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-15 .city-location-header-row,
.forum-fid-15 .city-location-desc,
.forum-fid-29 .city-location-header-row,
.forum-fid-29 .city-location-desc,
.forum-fid-31 .city-location-header-row,
.forum-fid-31 .city-location-desc,
.forum-fid-28 .city-location-header-row,
.forum-fid-28 .city-location-desc,
.forum-fid-30 .city-location-header-row,
.forum-fid-30 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-15 .city-location-banner::after,
  .forum-fid-29 .city-location-banner::after,
  .forum-fid-31 .city-location-banner::after,
  .forum-fid-28 .city-location-banner::after,
  .forum-fid-30 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер market_square.webp в шапке описания для разделов/подфорумов 6, 17, 34, 35 */
.forum-fid-6 .city-location-banner,
.forum-fid-17 .city-location-banner,
.forum-fid-34 .city-location-banner,
.forum-fid-35 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-6 .city-location-banner::after,
.forum-fid-17 .city-location-banner::after,
.forum-fid-34 .city-location-banner::after,
.forum-fid-35 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/market_square.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-6 .city-location-header-row,
.forum-fid-6 .city-location-desc,
.forum-fid-17 .city-location-header-row,
.forum-fid-17 .city-location-desc,
.forum-fid-34 .city-location-header-row,
.forum-fid-34 .city-location-desc,
.forum-fid-35 .city-location-header-row,
.forum-fid-35 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-6 .city-location-banner::after,
  .forum-fid-17 .city-location-banner::after,
  .forum-fid-34 .city-location-banner::after,
  .forum-fid-35 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер bar_street.webp в шапке описания для разделов/подфорумов 8, 36, 37, 38 */
.forum-fid-8 .city-location-banner,
.forum-fid-36 .city-location-banner,
.forum-fid-37 .city-location-banner,
.forum-fid-38 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-8 .city-location-banner::after,
.forum-fid-36 .city-location-banner::after,
.forum-fid-37 .city-location-banner::after,
.forum-fid-38 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/bar_street.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-8 .city-location-header-row,
.forum-fid-8 .city-location-desc,
.forum-fid-36 .city-location-header-row,
.forum-fid-36 .city-location-desc,
.forum-fid-37 .city-location-header-row,
.forum-fid-37 .city-location-desc,
.forum-fid-38 .city-location-header-row,
.forum-fid-38 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-8 .city-location-banner::after,
  .forum-fid-36 .city-location-banner::after,
  .forum-fid-37 .city-location-banner::after,
  .forum-fid-38 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер elections_hall.webp в шапке описания для разделов/подфорумов 13, 23, 24 */
.forum-fid-13 .city-location-banner,
.forum-fid-23 .city-location-banner,
.forum-fid-24 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-13 .city-location-banner::after,
.forum-fid-23 .city-location-banner::after,
.forum-fid-24 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/elections_hall.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-13 .city-location-header-row,
.forum-fid-13 .city-location-desc,
.forum-fid-23 .city-location-header-row,
.forum-fid-23 .city-location-desc,
.forum-fid-24 .city-location-header-row,
.forum-fid-24 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-13 .city-location-banner::after,
  .forum-fid-23 .city-location-banner::after,
  .forum-fid-24 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер mayor.webp в шапке описания для разделов/подфорумов 16, 32, 33 */
.forum-fid-16 .city-location-banner,
.forum-fid-32 .city-location-banner,
.forum-fid-33 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-16 .city-location-banner::after,
.forum-fid-32 .city-location-banner::after,
.forum-fid-33 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/mayor.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-16 .city-location-header-row,
.forum-fid-16 .city-location-desc,
.forum-fid-32 .city-location-header-row,
.forum-fid-32 .city-location-desc,
.forum-fid-33 .city-location-header-row,
.forum-fid-33 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-16 .city-location-banner::after,
  .forum-fid-32 .city-location-banner::after,
  .forum-fid-33 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер offices.webp в шапке описания для разделов/подфорумов 9, 11, 39 */
.forum-fid-9 .city-location-banner,
.forum-fid-11 .city-location-banner,
.forum-fid-39 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-9 .city-location-banner::after,
.forum-fid-11 .city-location-banner::after,
.forum-fid-39 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/offices.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-9 .city-location-header-row,
.forum-fid-9 .city-location-desc,
.forum-fid-11 .city-location-header-row,
.forum-fid-11 .city-location-desc,
.forum-fid-39 .city-location-header-row,
.forum-fid-39 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-9 .city-location-banner::after,
  .forum-fid-11 .city-location-banner::after,
  .forum-fid-39 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер bank.webp в шапке описания для разделов/подфорумов 10, 77, 69 */
.forum-fid-10 .city-location-banner,
.forum-fid-77 .city-location-banner,
.forum-fid-69 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-10 .city-location-banner::after,
.forum-fid-77 .city-location-banner::after,
.forum-fid-69 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/bank.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-10 .city-location-header-row,
.forum-fid-10 .city-location-desc,
.forum-fid-77 .city-location-header-row,
.forum-fid-77 .city-location-desc,
.forum-fid-69 .city-location-header-row,
.forum-fid-69 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-10 .city-location-banner::after,
  .forum-fid-77 .city-location-banner::after,
  .forum-fid-69 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* === ВЛОЖЕНИЯ И МОДАЛЬНОЕ ОКНО ПРЕДПРОСМОТРА В NEWTHREAD === */
.city-attachments-panel {
  background: #fafafa;
  border: 1px solid #888888;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.city-attachments-panel table,
.city-attachments-panel tr,
.city-attachments-panel td {
  width: 100% !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  padding: 2px 0 !important;
}

.city-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.city-modal-dialog {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: #ffffff;
  border: 1px solid #888888;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #111111;
}

.city-modal-header {
  padding: 16px 20px;
  background: #fafafa;
  border-bottom: 1px solid #e2e2e2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.city-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #444444;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 6px;
}

.city-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.city-modal-desc {
  margin-top: 4px;
  font-size: 13px;
  color: #555555;
}

.city-modal-author-bar {
  padding: 10px 20px;
  background: #fcfcfd;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.city-modal-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #888888;
}

.city-modal-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
}

.city-modal-author-sub {
  font-size: 11.5px;
  color: #666666;
}

.city-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.6;
  color: #111111;
  word-wrap: break-word;
}

.city-modal-files {
  padding: 10px 20px;
  background: #fafafa;
  border-top: 1px solid #eeeeee;
  font-size: 12.5px;
  color: #333333;
}

.city-modal-footer {
  padding: 14px 20px;
  background: #fafafa;
  border-top: 1px solid #e2e2e2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.city-fullpost-card {
  display: flex;
  gap: 16px;
  background: #fafafa;
  border: 1px solid #cccccc;
  border-radius: 16px;
  padding: 16px;
}

.city-fullpost-sidebar {
  width: 150px;
  flex-shrink: 0;
  text-align: center;
  border-right: 1px solid #e2e2e2;
  padding-right: 14px;
}

.city-fullpost-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #888888;
  margin: 0 auto 8px auto;
  display: block;
}

.city-fullpost-author {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
}

.city-fullpost-role {
  font-size: 11.5px;
  color: #666666;
  margin-top: 2px;
}

.city-fullpost-meta {
  font-size: 11.5px;
  color: #444444;
  margin-top: 8px;
}

.city-fullpost-content {
  flex: 1 1 auto;
  min-width: 0;
}

.city-fullpost-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #666666;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e6e6e6;
}

.city-fullpost-text {
  font-size: 14px;
  line-height: 1.6;
  color: #111111;
  word-wrap: break-word;
}

.city-fullpost-quote {
  margin: 10px 0;
  padding: 10px 14px;
  background: #ffffff;
  border-left: 3px solid #888888;
  border-radius: 0 10px 10px 0;
  color: #333333;
}

@media (max-width: 680px) {
  .city-fullpost-card {
    flex-direction: column;
  }
  .city-fullpost-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e2e2;
    padding-right: 0;
    padding-bottom: 12px;
  }
}
/* === ПРОСМОТР ТЕМЫ (SHOWTHREAD) И ЛЕНТА ОБСУЖДЕНИЯ (POSTBIT) === */
.city-posts-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.city-post-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  background: #fafafa;
  border: 1px solid #888888;
  border-radius: 18px;
  overflow: hidden;
  box-sizing: border-box;
}

.city-post-author {
  background: #f2f3f5;
  border-right: 1px solid #d4d4d4;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.city-post-avatar-wrap img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #888888;
  background: #ffffff;
}

.city-post-username {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  word-break: break-word;
}

.city-post-username a {
  color: #111111 !important;
  text-decoration: none;
}

.city-post-usertitle {
  font-size: 11.5px;
  color: #555555;
}

.city-post-meta {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #dddddd;
  width: 100%;
  font-size: 11.5px;
  line-height: 1.45;
  color: #444444;
  text-align: left;
}

.city-post-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  min-width: 0;
}

.city-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
  font-size: 12px;
  color: #666666;
}

.city-post-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-post-body {
  font-size: 14px;
  line-height: 1.65;
  color: #111111;
  word-wrap: break-word;
  flex: 1 1 auto;
}

.city-post-body blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  background: #f6f7f9;
  border-left: 3px solid #111111;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  color: #333333;
}

.city-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
}

.city-post-actions-left,
.city-post-actions-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.city-post-btn {
  padding: 5px 14px !important;
  font-size: 12px !important;
  min-height: auto !important;
}

@media (max-width: 760px) {
  .city-post-card {
    grid-template-columns: 1fr;
  }
  .city-post-author {
    border-right: none;
    border-bottom: 1px solid #d4d4d4;
    flex-direction: row;
    text-align: left;
  }
  .city-post-meta {
    display: none;
  }
}
/* Баннер calm_river.webp в шапке описания для разделов/подфорумов 47, 48 */
.forum-fid-47 .city-location-banner,
.forum-fid-48 .city-location-banner
{
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-47 .city-location-banner::after,
.forum-fid-48 .city-location-banner::after
{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/calm_river.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}
.forum-fid-47 .city-location-header-row,
.forum-fid-47 .city-location-desc,
.forum-fid-48 .city-location-header-row,
.forum-fid-48 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-47 .city-location-banner::after,
  .forum-fid-48 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер dark_forest.webp в шапке описания для разделов/подфорумов 51, 52 */
.forum-fid-51 .city-location-banner,
.forum-fid-52 .city-location-banner
{
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-51 .city-location-banner::after,
.forum-fid-52 .city-location-banner::after
{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/dark_forest.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}
.forum-fid-51 .city-location-header-row,
.forum-fid-51 .city-location-desc,
.forum-fid-52 .city-location-header-row,
.forum-fid-52 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-51 .city-location-banner::after,
  .forum-fid-52 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер forest.webp в шапке описания для разделов/подфорумов 49, 50, 53 */
.forum-fid-49 .city-location-banner,
.forum-fid-50 .city-location-banner,
.forum-fid-53 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-49 .city-location-banner::after,
.forum-fid-50 .city-location-banner::after,
.forum-fid-53 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/forest.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-49 .city-location-header-row,
.forum-fid-49 .city-location-desc,
.forum-fid-50 .city-location-header-row,
.forum-fid-50 .city-location-desc,
.forum-fid-53 .city-location-header-row,
.forum-fid-53 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-49 .city-location-banner::after,
  .forum-fid-50 .city-location-banner::after,
  .forum-fid-53 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер forest.webp в шапке описания для разделов/подфорумов 54, 55, 56, 57,58*/
.forum-fid-54 .city-location-banner,
.forum-fid-55 .city-location-banner,
.forum-fid-56 .city-location-banner,
.forum-fid-57 .city-location-banner,
.forum-fid-58 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-54 .city-location-banner::after,
.forum-fid-55 .city-location-banner::after,
.forum-fid-56 .city-location-banner::after,
.forum-fid-57 .city-location-banner::after,
.forum-fid-58 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/hils.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-54 .city-location-header-row,
.forum-fid-54 .city-location-desc,
.forum-fid-55 .city-location-header-row,
.forum-fid-55 .city-location-desc,
.forum-fid-56 .city-location-header-row,
.forum-fid-56 .city-location-desc,
.forum-fid-57 .city-location-header-row,
.forum-fid-57 .city-location-desc,
.forum-fid-58 .city-location-header-row,
.forum-fid-58 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-54 .city-location-banner::after,
  .forum-fid-55 .city-location-banner::after,
  .forum-fid-56 .city-location-banner::after,
  .forum-fid-57 .city-location-banner::after,
  .forum-fid-58 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* Баннер prom.webp в шапке описания для разделов/подфорумов 78, 79, 80, 81,82*/
.forum-fid-78 .city-location-banner,
.forum-fid-79 .city-location-banner,
.forum-fid-80 .city-location-banner,
.forum-fid-81 .city-location-banner,
.forum-fid-82 .city-location-banner {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.forum-fid-78 .city-location-banner::after,
.forum-fid-79 .city-location-banner::after,
.forum-fid-80 .city-location-banner::after,
.forum-fid-81 .city-location-banner::after,
.forum-fid-82 .city-location-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: url(../../../images/prom.webp) right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000000 32%);
}

.forum-fid-78 .city-location-header-row,
.forum-fid-78 .city-location-desc,
.forum-fid-79 .city-location-header-row,
.forum-fid-79 .city-location-desc,
.forum-fid-80 .city-location-header-row,
.forum-fid-80 .city-location-desc,
.forum-fid-81 .city-location-header-row,
.forum-fid-81 .city-location-desc,
.forum-fid-82 .city-location-header-row,
.forum-fid-82 .city-location-desc {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .forum-fid-78 .city-location-banner::after,
  .forum-fid-79 .city-location-banner::after,
  .forum-fid-80 .city-location-banner::after,
  .forum-fid-81 .city-location-banner::after,
  .forum-fid-82 .city-location-banner::after {
    width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85));
  }
}
/* === 1. СКРЫВАЕМ ВЕРХНИЕ СИСТЕМНЫЕ ПАНЕЛИ И ССЫЛКИ (ПК + МОБИЛЬНЫЕ) === */
#header,
#panel,
#panel .upper,
.top_links,
.quick_search,
form[action*="search.php"],
a[href*="usercp.php"],
a[href*="modcp.php"],
a[href*="admin/"],
a[href*="search.php?action=getnew"],
a[href*="search.php?action=getdaily"],
a[href*="private.php"],
a[href*="member.php?action=logout"],
.welcome_member {
  display: none !important;
}

/* На случай если верхняя строка в шаблоне обёрнута в отдельный блок/список */
#content > .wrapper > br:first-child,
#container > br:first-child {
  display: none !important;
}

/* === УБИРАЕМ ЛИШНЮЮ ПРОКРУТКУ И ВЫРАВНИВАЕМ ПРОСТРАНСТВО === */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

#container,
#content,
#content > .wrapper,
.wrapper,
.city-hub,
.city-hub-wrap,
.city-page-wrap,
.city-forum-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

/* Сетка колонок: компактная карточка слева, меню по центру, чат справа */
.hub-columns,
.city-hub-grid,
.city-main-grid,
.city-two-col,
.city-forum-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Компактная карточка игрока ближе к квадрату, не тянется по высоте */
.citizen-card {
  flex: 0 0 230px !important;
  width: 230px !important;
  max-width: 230px !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 12px !important;
  gap: 8px !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

.citizen-card .citizen-header {
  gap: 8px !important;
  padding-bottom: 8px !important;
}

.citizen-card .citizen-avatar {
  width: 38px !important;
  height: 38px !important;
}

.citizen-card .citizen-stats {
  gap: 4px !important;
}

.citizen-card .stat-row {
  font-size: 12px !important;
}

.citizen-card .news-placeholder {
  padding: 6px 8px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

/* Центральное меню занимает освободившуюся ширину */
.hub-menu,
#city-nav-hub {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Правая колонка живого чата без искусственного растягивания вниз */
.city-live-chat,
.city-chat-box,
.live-chat-box {
  flex: 0 0 340px !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Мобильный вид */
@media (max-width: 820px) {
  .hub-columns,
  .city-hub-grid,
  .city-main-grid,
  .city-two-col,
  .city-forum-grid {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .citizen-card,
  .hub-menu,
  #city-nav-hub,
  .city-live-chat,
  .city-chat-box,
  .live-chat-box {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  input[type="text"],
  textarea {
    font-size: 16px !important;
  }
}
/* === ЗАПОЛНЯЕМ ПУСТЫЕ ЗОНЫ ВНУТРИ ПАНЕЛИ И СПИСКЕ КНОПОК === */
.city-hub,
.city-hub-wrap,
.city-hub-panel,
.hub-panel,
.city-main-panel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Растягиваем колонки внутри панели по всей ширине и высоте контейнера */
.hub-columns,
.city-hub-grid,
.city-main-grid {
  width: 100% !important;
  max-width: 100% !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 18px !important;
}

/* Центральная колонка меню: распределяем кнопки равномерно, чтобы не оставалось пустого провала снизу */
.hub-menu,
#city-nav-hub {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 420px !important;
}

#city-nav-hub .nav-screen.active {
  flex: 1 1 auto !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

/* Кнопки чуть выше и плотнее, чтобы заполнять центральную колонку */
#city-nav-hub .hub-btn {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Правая колонка чата тянется по высоте ряда */
.city-live-chat,
.city-chat-box,
.live-chat-box {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-self: stretch !important;
}

@media (max-width: 820px) {
  .hub-columns,
  .city-hub-grid,
  .city-main-grid {
    align-items: stretch !important;
    gap: 12px !important;
  }

  .hub-menu,
  #city-nav-hub {
    min-height: 0 !important;
    justify-content: flex-start !important;
  }

  #city-nav-hub .nav-screen.active {
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .city-live-chat,
  .city-chat-box,
  .live-chat-box {
    align-self: auto !important;
  }
}
/* Убираем пустые блоки/отступы и случайные боковые рамки сверху */
#header,
#panel,
.top_links,
.welcome_member,
.pm_alert,
.remote_avatar_notice,
.banned_warning,
.bbclosed_warning,
.mod_notice,
.pending_joinrequests,
.awaiting_users {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  border: none !important;
}

/* Выравниваем общий контейнер без лишних полей */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

#container,
#content,
#content > .wrapper,
.wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

/* Сетка колонок главной: компактная карточка, широкое меню, живой чат */
.hub-columns,
.city-hub-grid,
.city-main-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.citizen-card {
  flex: 0 0 220px !important;
  width: 220px !important;
  max-width: 220px !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.hub-menu,
#city-nav-hub {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.city-live-chat,
.city-chat-box,
.live-chat-box {
  flex: 0 0 340px !important;
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 820px) {
  .hub-columns,
  .city-hub-grid,
  .city-main-grid {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .citizen-card,
  .hub-menu,
  #city-nav-hub,
  .city-live-chat,
  .city-chat-box,
  .live-chat-box {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  input[type="text"],
  textarea {
    font-size: 16px !important;
  }
}