/*
 | FiveLive site pages (shop, profile, forum, admin).
 | main.css is left untouched; this file only styles elements that main.css has no rules for,
 | using the same palette: #100F14 / #1A191E / #1E1E23 surfaces, #FFBB1C accent, #E4E4E2 text.
 */

/* ---------- Inner pages ---------- */
body.inner_site {
  background: #100F14;
}
.inner_site .page {
  min-height: 100vh;
}
.inner_site header {
  z-index: 20;
}
.inner_site .fl_shop,
.inner_site .fl_forum {
  padding: 40px 0 120px 0;
}
.inner_site .container.default {
  max-width: 1400px;
}
.inner_site .userpanel {
  margin-left: auto;
}

/* Flash messages */
.site_flash_wrap {
  padding-top: 24px;
}
.site_flash {
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 22px;
  margin: 0 0 12px 0;
}
.site_flash.good {
  background: rgba(139, 236, 93, 0.06);
  border: 1px solid rgba(122, 236, 93, 0.2);
  color: #8BEC5D;
}
.site_flash.error {
  background: rgba(236, 93, 100, 0.06);
  border: 1px solid rgba(236, 93, 100, 0.2);
  color: #EC5D64;
}

/* Shared controls */
.fl_btn,
a.fl_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: 10px;
  background: #FFBB1C;
  color: #151418;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}
.fl_btn:hover {
  background: #FFC940;
  color: #794B20;
}
.fl_btn.small,
.fl_btn_ghost.small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
}
.fl_btn_ghost {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  border: 1px solid #38363D;
  border-radius: 10px;
  background: transparent;
  color: #FFBB1C;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.fl_btn_ghost:hover {
  background: rgba(53, 52, 58, 0.4);
  border-color: #47464D;
}
.fl_btn_ghost.danger {
  color: #EC5D64;
}
.fl_link {
  color: #FFBB1C;
  text-decoration: none;
}
.fl_link:hover {
  color: #FFC940;
}
.fl_muted {
  color: #727274;
  font-size: 14px;
  line-height: 22px;
}
.fl_good {
  color: #82E292;
}
.fl_bad {
  color: #DB6159;
}
.fl_input,
input.default.fl_input {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 0 20px;
  margin: 0 0 10px 0;
}
.fl_textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;
  background: rgba(48, 47, 54, 0.6);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 17px;
  line-height: 26px;
  font-weight: 300;
  color: #E4E4E2;
  resize: vertical;
  margin: 0 0 12px 0;
}
.fl_textarea:hover,
.fl_textarea:focus {
  background: rgb(48 47 54);
  color: #fff;
}
.fl_select {
  display: block;
  width: 100%;
  height: 56px;
  margin: 8px 0 12px 0;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: rgba(48, 47, 54, 0.6);
  color: #E4E4E2;
  font-size: 16px;
}
.fl_label {
  display: block;
  color: #585960;
  font-size: 14px;
  font-weight: 700;
}
.fl_label .fl_input {
  margin-top: 8px;
}
.fl_check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E4E4E2;
  font-size: 16px;
  margin: 6px 0 14px 0;
  cursor: pointer;
}
.fl_check input,
.fl_agree input {
  width: 18px;
  height: 18px;
  accent-color: #FFBB1C;
  flex: none;
}
.fl_inline {
  display: flex;
  gap: 12px;
}
.fl_inline > * {
  flex: 1;
}
.fl_code {
  background: #100F14;
  border: 1px dashed #302F36;
  border-radius: 10px;
  padding: 18px 20px;
  color: #FFBB1C;
  font-family: Consolas, monospace;
  font-size: 14px;
  line-height: 22px;
  overflow-x: auto;
  white-space: pre;
  margin: 14px 0;
}
code {
  font-family: Consolas, monospace;
}

/* ---------- Shop ---------- */
.fl_shop .shop_selection .currency {
  margin-left: 39px;
}
.fl_shop .nickname input[readonly] {
  color: #E4E4E2;
}
.fl_shop .gameservices li h3 {
  font-size: 15px;
}
.fl_shop .gameservices li.fl_empty {
  cursor: default;
}
.fl_bonus {
  color: #82E292;
  font-style: normal;
  font-size: 13px;
  margin: 0 0 0 6px;
}
.fl_summary_rows {
  margin: 20px 0 0 0;
}
.fl_summary_rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #26262C;
  font-size: 16px;
}
.fl_summary_rows > div:first-child {
  border-top: 0;
}
.fl_summary_rows h4 {
  color: #8B8B8B;
}
.fl_summary_rows p {
  color: #E4E4E2;
  font-weight: 500;
  text-align: right;
}
.fl_summary_rows .fl_sum_flc {
  color: #FFBB1C;
  font-weight: 900;
}
.fl_summary_note {
  margin: 30px 0 0 0;
  color: #727274;
  font-size: 14px;
  line-height: 21px;
}
.fl_shop .purchase:after {
  background: url(../images/benjamines.png) no-repeat 0 100%;
  background-size: 235px auto;
}
.fl_shop .buy_gta_link.fl_inactive,
.fl_shop .buy_gta_link.fl_disabled {
  color: #56555B;
  background: #302F36;
}
.fl_shop .buy_gta_link.fl_disabled {
  cursor: not-allowed;
}
.fl_shake {
  animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}
.fl_shop .shop_page_info > p b,
.fl_window_text b {
  color: #FFBB1C;
  font-weight: 700;
}
.fl_checkout .window_section > h3.fl_checkout_summary {
  color: #FFBB1C;
  font-size: 20px;
}
.fl_checkout .window_field input {
  box-sizing: border-box;
  width: 100%;
  padding-left: 20px;
}
.fl_agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #9A9A9A;
  font-size: 14px;
  line-height: 20px;
  margin: 18px 0 0 0;
  cursor: pointer;
}
.fl_agree input {
  margin-top: 1px;
}

/* ---------- Forum ---------- */
.fl_forum .news_page_row {
  margin: 0 0 32px 0;
}
.fl_forum .news_page_row > h3 {
  color: #E4E4E2;
  font-size: 55px;
  font-weight: 300;
  line-height: 64px;
}
.fl_forum .fl_topic_heading {
  font-size: 40px !important;
  line-height: 50px !important;
  word-break: break-word;
}
.fl_category_grid {
  display: flex;
  justify-content: space-between;
  max-width: 906px;
}
.fl_category_grid .news_container_unit,
.fl_category_grid .news_container_unit:last-of-type {
  margin: 0 0 24px 0 !important;
  top: 0 !important;
}
.fl_category_grid .news_container_unit > a {
  margin: 0 !important;
  opacity: 1;
}
.fl_category_grid .news_container_unit span {
  color: #585960;
}
.fl_crumbs {
  color: #585960;
  font-size: 15px;
  margin: 0 0 14px 0;
}
.fl_crumbs a {
  color: #9A9A9A;
  text-decoration: none;
}
.fl_crumbs a:hover {
  color: #FFBB1C;
}
.fl_lead {
  color: #9A9A9A;
  font-size: 17px;
  line-height: 26px;
  margin: 0 0 24px 0;
  max-width: 906px;
}
.fl_access {
  max-width: 906px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px dashed #302F36;
  border-radius: 10px;
  padding: 22px 24px;
  margin: 0 0 28px 0;
  color: #9A9A9A;
  font-size: 17px;
  line-height: 25px;
}
.fl_access b {
  color: #FFBB1C;
}
.fl_access .fl_btn {
  flex: none;
}
.fl_box {
  max-width: 906px;
  background: #1A191E;
  border-radius: 14px;
  padding: 30px;
  margin: 0 0 24px 0;
  box-sizing: border-box;
}
.fl_box_title {
  color: #585960;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 18px 0;
}
.fl_form .fl_btn {
  margin-top: 4px;
}
.fl_topic_list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #26262C;
}
.fl_topic_list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.fl_topic_title {
  width: calc(100% - 110px);
  color: #E4E4E2;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  line-height: 24px;
  word-break: break-word;
}
.fl_topic_title:hover {
  color: #FFBB1C;
}
.fl_topic_count {
  width: 110px;
  text-align: right;
  color: #FFBB1C;
  font-size: 14px;
  font-weight: 700;
}
.fl_topic_meta {
  order: 3;
  width: 100%;
  color: #727274;
  font-size: 14px;
  margin: 6px 0 0 0;
}
.fl_empty_row {
  color: #727274;
  font-size: 16px;
}
.fl_tag {
  display: inline-block;
  vertical-align: middle;
  background: #7056A7;
  color: #F4EAFF;
  border-radius: 9px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 22px;
  font-style: normal;
  font-weight: 700;
  margin: 0 6px 0 0;
}
.fl_tag.muted {
  background: #302F36;
  color: #9A9A9A;
}
.fl_mod_bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px 0;
}
.fl_post {
  max-width: 906px;
  display: flex;
  background: #1A191E;
  border-radius: 14px;
  margin: 0 0 14px 0;
  overflow: hidden;
}
.fl_post_author {
  width: 180px;
  flex: none;
  background: #16151A;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
}
.fl_post_author b {
  color: #E4E4E2;
  font-weight: 700;
  font-size: 16px;
  word-break: break-all;
}
.fl_post_author span {
  color: #727274;
  font-size: 13px;
}
.fl_post_body {
  flex: 1;
  min-width: 0;
  padding: 26px 30px;
  position: relative;
}
.fl_post_date {
  display: block;
  color: #3F4045;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px 0;
}
.fl_post_text {
  color: #E4E4E2;
  font-size: 16px;
  line-height: 26px;
  word-wrap: break-word;
}
.fl_post_actions {
  position: absolute;
  top: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.fl_post_actions a,
.fl_post_actions button {
  background: none;
  color: #727274;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.fl_post_actions a:hover {
  color: #FFBB1C;
}
.fl_post_actions button {
  color: #EC5D64;
}
.fl_note {
  font-size: 15px;
  color: #727274;
  margin-top: -12px;
}
.fl_form_actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.fl_form_actions .fl_btn_ghost {
  height: 56px;
}
.fl_pagination {
  display: flex;
  gap: 6px;
  margin: 20px 0 0 0;
}
.fl_pagination a,
.fl_pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #1D1D22;
  color: #9A9A9A;
  text-decoration: none;
  font-size: 14px;
}
.fl_pagination a:hover {
  color: #fff;
  background: #242428;
}
.fl_pagination .active {
  background: #FFBB1C;
  color: #151418;
  font-weight: 700;
}
.fl_pagination .disabled {
  opacity: .4;
}

/* ---------- Panel (profile / admin) ---------- */
.panel > .row > .container {
  display: block;
}
.fl_panel_body {
  width: 100%;
}
.fl_panel_columns {
  display: flex;
  justify-content: space-between;
}
.panel_actions .fl_logout_form {
  display: flex;
}
.panel_actions button.settings,
.panel_actions button.logout {
  cursor: pointer;
}
.panel_actions button.logout {
  background-color: transparent;
}
.panel_user_avatar img {
  display: block;
  width: 70px;
  height: 70px;
  margin: 10px;
}
.panel .panel_history table td {
  padding-right: 12px;
}
.panel_history_date .fl_link {
  color: #FFBB1C;
}
.panel footer {
  padding: 40px 0;
}
.fl_account_list li > h3 {
  width: 45%;
}
.fl_account_list li > p {
  width: 55%;
  text-align: right;
}
.fl_window_text {
  color: #9A9A9A;
  font-size: 15px;
  line-height: 23px;
  margin: 24px 0 0 0;
}
.fl_title {
  color: #E4E4E2;
  font-size: 40px;
  font-weight: 300;
  margin: 0 0 24px 0;
}
.fl_admin_box {
  background: #16151A;
  border-radius: 12px;
  padding: 28px;
  margin: 0 0 22px 0;
  box-sizing: border-box;
}
.fl_result {
  max-width: 720px;
  margin: 20px auto;
}
.fl_actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 28px 0 0 0;
}
.panel_deposit_button.fl_btn {
  margin: 0;
  display: inline-block;
  padding: 0 28px;
  height: auto;
}
.fl_grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.fl_grid2 > .fl_admin_box {
  margin: 0 0 22px 0;
}
.fl_stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 0 0 22px 0;
}
.fl_stat {
  background: #1D1D22;
  border-radius: 12px;
  padding: 22px 24px;
}
.fl_stat h3 {
  color: #9A9A9A;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}
.fl_stat span {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}
.fl_table_wrap {
  overflow-x: auto;
}
.fl_table {
  width: 100%;
  font-size: 14px;
  text-align: left;
}
.fl_table th {
  color: #585960;
  font-weight: 700;
  padding: 0 12px 12px 12px;
  white-space: nowrap;
}
.fl_table td {
  color: #E4E4E2;
  padding: 12px;
  vertical-align: middle;
}
.fl_table tbody tr:nth-of-type(odd) td {
  background: #19181D;
}
.fl_cell_input {
  width: 120px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(48, 47, 54, 0.6);
  color: #E4E4E2;
  font-size: 14px;
  box-sizing: border-box;
}
.fl_cell_input.narrow {
  width: 64px;
}
.fl_cell_input.wide {
  width: 260px;
}
.fl_row_actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.fl_pill {
  display: inline-block;
  border-radius: 8px;
  padding: 0 8px;
  line-height: 24px;
  font-size: 12px;
  background: #302F36;
  color: #9A9A9A;
}
.fl_pill.paid,
.fl_pill.approved {
  background: rgba(139, 236, 93, 0.08);
  color: #8BEC5D;
}
.fl_pill.failed,
.fl_pill.banned {
  background: rgba(236, 93, 100, 0.08);
  color: #EC5D64;
}
.fl_pill.pending {
  background: rgba(255, 187, 28, 0.08);
  color: #FFBB1C;
}
.fl_filters {
  display: flex;
  gap: 8px;
  margin: 0 0 18px 0;
}
.fl_filters a {
  padding: 0 16px;
  line-height: 38px;
  border-radius: 8px;
  background: #1D1D22;
  color: #9A9A9A;
  text-decoration: none;
  font-size: 14px;
}
.fl_filters a.active,
.fl_filters a:hover {
  background: #FFBB1C;
  color: #151418;
}
.fl_search {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 0 18px 0;
}
.fl_search .fl_input {
  margin: 0;
  height: 56px;
}
.fl_chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fl_chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1D1D22;
  border-radius: 8px;
  padding: 0 6px 0 12px;
  line-height: 34px;
  font-size: 14px;
}
.fl_chip button {
  background: none;
  color: #727274;
  font-size: 18px;
  cursor: pointer;
}
.fl_chip button:hover {
  color: #EC5D64;
}
.fl_admin_page .panel_left,
.fl_admin_page .panel_right {
  display: none;
}

/* Selects are turned into the site's nice-select widget by scripts.js; these fit it to admin forms. */
.nice-select.fl_select,
.nice-select.fl_cell_select {
  float: none;
  clear: none;
}
.nice-select.fl_select:before,
.nice-select.fl_cell_select:before {
  display: none;
}
.nice-select.fl_select {
  height: 56px;
  line-height: 56px;
  padding-left: 20px;
  font-size: 16px;
}
.nice-select.fl_select:after {
  right: 20px;
}
.nice-select.fl_cell_select {
  width: 150px;
  height: 36px;
  line-height: 36px;
  padding: 0 28px 0 12px;
  border-radius: 8px;
  font-size: 14px;
}
.nice-select.fl_cell_select:after {
  right: 12px;
  border-width: 5px;
  border-top-width: 7px;
}
.nice-select.fl_cell_select .list {
  padding: 8px 0;
}
.nice-select.fl_cell_select .option {
  width: calc(100% - 16px);
  line-height: 34px;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
}
.nice-select.fl_cell_select .option:hover {
  width: calc(100% - 16px);
  padding: 0 10px;
}
.fl_perm_wrap {
  overflow: visible;
}
/* Forum roles */
.fl_role_tag {
  --role: #7056A7;
  display: inline-block;
  vertical-align: middle;
  border-radius: 9px;
  padding: 0 9px;
  font-size: 12px;
  line-height: 22px;
  font-weight: 700;
  font-style: normal;
  color: var(--role);
  background: color-mix(in srgb, var(--role) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--role) 45%, transparent);
  white-space: nowrap;
}
.fl_post_roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.fl_role_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 0 0 18px 0;
  margin: 0 0 18px 0;
  border-bottom: 1px solid #26262C;
}
.fl_role_edit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fl_role_new {
  margin: 0;
}
.fl_role_name {
  width: 200px;
}
.fl_color {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.fl_color::-webkit-color-swatch-wrapper {
  padding: 3px;
}
.fl_color::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}
.fl_role_members {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fl_role_members > .fl_muted {
  flex: none;
  width: 70px;
}
.fl_role_add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fl_role_checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}
/* Forum section permissions (admin) */
.fl_perm_intro {
  max-width: 980px;
  margin: 0 0 22px 0;
}
.fl_perm_intro b {
  color: #E4E4E2;
}
.fl_cat_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.fl_cat_head .fl_box_title .fl_muted {
  font-weight: 400;
  margin-left: 8px;
}
.fl_cat_fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 18px;
}
.fl_cat_fields .fl_span2 {
  grid-column: span 2;
}
.fl_cat_fields .fl_span3 {
  grid-column: span 3;
}
.fl_cat_checks {
  margin: 4px 0 10px 0;
}
.fl_cat_checks .fl_check {
  margin: 0 0 10px 0;
  font-size: 15px;
}
.fl_perm_title {
  margin: 34px 0 14px 0;
  padding-top: 26px;
  border-top: 1px solid #26262C;
}
.fl_cell_select {
  width: 140px;
  border: 0;
  cursor: pointer;
}
.fl_cell_check {
  width: 18px;
  height: 18px;
  accent-color: #FFBB1C;
  cursor: pointer;
}
.fl_perm_table .fl_pill {
  margin-left: 6px;
}
.fl_perm_save {
  margin-top: 18px;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .fl_cat_fields {
    grid-template-columns: 1fr;
  }
  .fl_cat_fields .fl_span2,
  .fl_cat_fields .fl_span3 {
    grid-column: auto;
  }
  .fl_panel_columns {
    flex-direction: column;
  }
  .fl_panel_columns .panel_left,
  .fl_panel_columns .panel_right {
    width: 100%;
  }
  .fl_panel_columns .panel_right {
    margin-top: 30px;
  }
  .fl_grid2 {
    grid-template-columns: 1fr;
  }
  .fl_category_grid {
    flex-direction: column;
  }
  .fl_category_grid .news_container_unit {
    width: 100% !important;
  }
}
@media (max-width: 700px) {
  .inner_site .fl_shop,
  .inner_site .fl_forum,
  .fl_panel_body {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  .fl_post {
    flex-direction: column;
  }
  .fl_post_author {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 14px 20px;
  }
  .fl_post_author img {
    width: 28px;
    height: 28px;
  }
  .fl_access {
    flex-direction: column;
    align-items: flex-start;
  }
  .fl_title {
    font-size: 30px;
  }
  .fl_forum .news_page_row > h3 {
    font-size: 40px;
    line-height: 48px;
  }
  .fl_inline {
    flex-direction: column;
    gap: 0;
  }
}

/* Side gutters on panel pages (main.css sizes these containers edge to edge). */
.panel header .container,
.panel > .row > .container,
.panel footer .container {
  box-sizing: border-box;
  padding-left: 24px;
  padding-right: 24px;
}

/* Admin: six menu items must clear the centered panel logo. */
.fl_admin_page header nav ul li a {
  margin-left: 40px;
}
.fl_admin_page header nav ul li:first-of-type a {
  margin-left: 0;
}
.fl_form .fl_muted {
  margin: 0 0 16px 0;
}
.fl_form .fl_label {
  margin: 0 0 4px 0;
}
.fl_admin_box > .fl_muted {
  margin: 0 0 14px 0;
}
@media (max-width: 1100px) {
  .fl_admin_page header .logo {
    display: none;
  }
}

/* Forum lists, topics and member profiles */
.fx_forum {
  --fx-line: #34323a;
  --fx-surface: #1a191e;
  --fx-raised: #242229;
  --fx-muted: #aaa7b1;
  --fx-text: #e4e4e2;
  --fx-accent: #ffbb1c;
  color: var(--fx-text);
}
.fx_forum a:focus-visible,
.fx_forum button:focus-visible,
.fx_forum input:focus-visible,
.fx_forum textarea:focus-visible,
.fx_forum select:focus-visible,
.fx_forum summary:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 2px;
}
.fx_forum .fx_page_head {
  margin: 0 0 18px;
  min-width: 0;
}
.fx_forum .fx_page_head > h3 { overflow-wrap: anywhere; }
.fx_title_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
}
.fx_forum .fx_title_row .fx_page_head { margin: 0; }
.fx_new_btn { white-space: nowrap; }
.fx_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  align-items: start;
  gap: 22px;
}
.fx_main, .fx_side {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 16px;
}
.fx_block, .fx_side_box, .fx_post {
  min-width: 0;
  background: var(--fx-surface);
  border: 1px solid var(--fx-line);
  border-radius: 10px;
}
.fx_block_head, .fx_side_head {
  margin: 0;
  padding: 13px 17px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-text);
  background: var(--fx-raised);
  border-bottom: 1px solid var(--fx-line);
  border-radius: 9px 9px 0 0;
}
.fx_block_head {
  box-shadow: inset 3px 0 var(--fx-accent);
}
.fx_item + .fx_block_head {
  border-top: 1px solid var(--fx-line);
  border-radius: 0;
}
.fx_side_head {
  display: flex;
  justify-content: space-between;
}
.fx_side_head span { color: var(--fx-accent); }
.fx_node, .fx_item {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 16px;
}
.fx_node { grid-template-columns: 34px minmax(0, 1fr) 106px minmax(125px, 25%); }
.fx_item { grid-template-columns: 38px minmax(0, 1fr) minmax(118px, 13%) minmax(135px, 19%); }
.fx_node + .fx_node, .fx_item + .fx_item, .fx_member_post + .fx_member_post {
  border-top: 1px solid var(--fx-line);
}
.fx_node:hover, .fx_item:hover { background: #201f24; }
.fx_item.pinned { background: #26221d; }
.fx_node_icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #312a20;
  border-radius: 8px;
  color: var(--fx-accent);
}
.fx_node_icon::before {
  content: "";
  width: 16px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 4px 4px 4px 0;
  box-shadow: inset 0 -3px #312a20;
  background: linear-gradient(currentColor, currentColor) center / 7px 1px no-repeat;
}
.fx_node_icon.private::before, .fx_icon_lock {
  width: 12px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: none;
  box-shadow: none;
}
.fx_icon_lock {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  color: var(--fx-muted);
}
.fx_icon_lock::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 2px;
  width: 5px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
.fx_node_title, .fx_item_title, .fx_last_title, .fx_side_title, .fx_member_post > a {
  color: var(--fx-text);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.fx_forum a:hover { color: var(--fx-accent); }
.fx_forum a.fl_btn:hover { color: #151418; }
.fx_node_title { font-size: 17px; }
.fx_node_desc { margin: 5px 0 0; color: var(--fx-muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.fx_node_notes, .fx_badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.fx_node_notes em { color: #d5c6a3; background: #302a21; border-radius: 4px; padding: 3px 6px; font-size: 11px; font-style: normal; }
.fx_user { font-weight: 600; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.fx_meta { display: block; margin-top: 4px; color: var(--fx-muted); font-size: 12px; line-height: 1.5; }
.fx_node_stats, .fx_item_stats, .fx_stat_list, .fx_member_facts { margin: 0; }
.fx_node_stats, .fx_item_stats { color: var(--fx-muted); font-size: 12px; }
.fx_node_stats { display: flex; justify-content: space-evenly; gap: 9px; text-align: center; }
.fx_node_stats dd { margin: 5px 0 0; color: var(--fx-text); font-weight: 700; }
.fx_item_stats > div, .fx_stat_list > div, .fx_member_facts > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.fx_item_stats dd, .fx_stat_list dd, .fx_member_facts dd {
  margin: 0;
  color: var(--fx-text);
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.fx_item_stats > div + div { margin-top: 4px; }
.fx_node_last, .fx_item_last, .fx_side_topics li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
}
.fx_node_last > div, .fx_item_last > div, .fx_side_topics li > div { min-width: 0; }
.fx_last_title, .fx_side_title { display: block; }
.fx_item_last { justify-content: flex-end; text-align: right; }
.fx_avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--av) 30%, #1a191e);
  border: 1px solid color-mix(in srgb, var(--av) 65%, #34323a);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.fx_avatar_s { width: 29px; height: 29px; font-size: 13px; }
.fx_avatar_l { width: 62px; height: 62px; font-size: 25px; }
.fx_prefix {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--px) 16%, #242229);
  color: color-mix(in srgb, var(--px) 64%, #fff);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}
.fx_stat_list, .fx_online, .fx_side_note, .fx_side_empty { padding: 12px 15px; }
.fx_stat_list { color: var(--fx-muted); font-size: 13px; }
.fx_stat_list > div { padding: 5px 0; }
.fx_online { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx_online_more { font-size: 12px; color: var(--fx-accent); }
.fx_side_note, .fx_side_empty { margin: 0; color: var(--fx-muted); font-size: 12px; }
.fx_side_note { padding-top: 0; }
.fx_side_topics { padding: 0; margin: 0; list-style: none; }
.fx_side_topics li { padding: 12px 14px; }
.fx_side_topics li + li { border-top: 1px solid var(--fx-line); }
.fx_filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.fx_filter > a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--fx-muted);
  text-decoration: none;
  font-size: 13px;
}
.fx_filter > a.active { border-color: var(--fx-accent); color: var(--fx-accent); }
.fx_filter .fx_prefix { margin: 0; }
.fx_empty { padding: 21px 17px; color: var(--fx-muted); margin: 0; font-size: 14px; }
.fx_form { padding: 18px; overflow: visible; }
.fx_form .fl_box_title { color: var(--fx-text); }
.fx_form .fx_textarea::placeholder { color: var(--fx-muted) !important; }
.fx_last_time { text-decoration: none; }
.fx_title_input {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.fx_title_input label {
  flex: 1;
  min-width: min(150px, 100%);
  color: var(--fx-muted);
  font-size: 13px;
}
.fx_title_input label:has(input) { flex: 3; }
.fx_title_input input.default.fl_input, .fx_title_input .fx_select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  line-height: 44px;
  margin: 6px 0 0;
  padding: 0 12px;
  background: var(--fx-raised);
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  color: var(--fx-text);
  font-size: 15px;
}
.fx_title_input .fx_select { color-scheme: dark; }
.fx_editor { margin-bottom: 15px; }
.fx_toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--fx-line);
  border-radius: 7px 7px 0 0;
  background: var(--fx-raised);
}
.fx_toolbar button, .fx_post_actions button, .fx_post_actions a {
  padding: 7px 9px;
  background: none;
  color: var(--fx-text);
  font-size: 13px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.fx_toolbar button:hover, .fx_post_actions button:hover, .fx_post_actions a:hover {
  color: var(--fx-accent);
  background: var(--fx-raised);
}
.fx_toolbar button:hover { background: var(--fx-line); }
.fx_textarea {
  display: block;
  margin: 0;
  border: 1px solid var(--fx-line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: #17161b;
  font-size: 15px;
}
.fx_thread_meta, .fx_post_head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  color: var(--fx-muted);
  font-size: 13px;
}
.fx_thread_meta { margin-bottom: 18px; }
.fx_post {
  display: grid;
  grid-template-columns: minmax(155px, 185px) minmax(0, 1fr);
  margin: 0 0 14px;
  scroll-margin-top: 18px;
}
.fx_post:target { border-color: #8b6d28; }
.fx_post_author {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--fx-raised);
  border-radius: 9px 0 0 9px;
  border-right: 1px solid var(--fx-line);
}
.fx_author_name { min-width: 0; text-align: center; }
.fx_author_name .fx_badges { justify-content: center; }
.fx_member_facts { width: 100%; color: var(--fx-muted); font-size: 12px; line-height: 1.45; }
.fx_member_facts > div { padding-top: 5px; }
.fx_member_facts dt { flex-shrink: 0; }
.fx_post_main { min-width: 0; padding: 14px 17px; }
.fx_post_head {
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fx-line);
}
.fx_post_head a, .fx_post_body a, .fx_likes a { color: var(--fx-accent); text-decoration: underline; }
.fx_post_body {
  min-height: 75px;
  padding: 14px 0;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.fx_post_actions { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--fx-line); padding-top: 7px; }
.fx_post_actions button[aria-pressed="true"] { color: var(--fx-accent); }
.fx_post_actions button:disabled { opacity: .65; cursor: wait; }
.fx_action_error { margin: 8px 0 0; color: #ff999e; font-size: 13px; }
.fx_likes { padding: 7px 9px; margin: 0 0 8px; color: var(--fx-muted); background: var(--fx-raised); border-radius: 5px; font-size: 12px; }
.fx_likes:empty { display: none; }
.fx_quote, .fx_code, .fx_spoiler {
  margin: 8px 0;
  padding: 9px 12px;
  background: #151419;
  border: 1px solid var(--fx-line);
  border-radius: 5px;
}
.fx_quote { border-left: 3px solid var(--fx-accent); }
.fx_quote_head { color: var(--fx-muted); font-size: 13px; margin-bottom: 5px; }
.fx_code { overflow: auto; max-width: 100%; }
.fx_spoiler > summary { cursor: pointer; color: var(--fx-accent); }
.fx_bb_list { padding-left: 22px; list-style: disc; }
.fx_bb_img { display: inline-block; max-width: 100%; height: auto; }
.fx_member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, 32%);
  align-items: start;
  gap: 13px;
  padding: 18px;
  margin-bottom: 14px;
}
.fx_member_identity h3 { margin: 0; color: var(--fx-text); font-size: 28px; overflow-wrap: anywhere; }
.fx_member_post { padding: 13px 17px; }
.fx_member_post p { margin: 7px 0 0; color: var(--fx-muted); font-size: 14px; overflow-wrap: anywhere; }
.fx_post_main, .fx_item_main, .fx_node_main { min-width: 0; }
.fx_new_menu { position: relative; }
.fx_new_menu summary { list-style: none; }
.fx_new_menu summary::-webkit-details-marker { display: none; }
.fx_new_menu summary::after { content: "+"; margin-left: 9px; }
.fx_new_menu[open] summary::after { content: "−"; }
.fx_new_choices {
  position: absolute;
  z-index: 5;
  right: 0;
  min-width: 210px;
  margin-top: 5px;
  padding: 5px;
  background: var(--fx-raised);
  border: 1px solid var(--fx-line);
  border-radius: 7px;
}
.fx_new_choices a {
  display: block;
  padding: 9px;
  color: var(--fx-text);
  text-decoration: none;
  font-size: 14px;
}
.fx_new_choices a:hover { background: var(--fx-surface); }
@media (max-width: 1050px) {
  .fx_layout { grid-template-columns: minmax(0, 1fr); }
  .fx_side { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); align-items: start; }
}
@media (max-width: 700px) {
  .fx_forum .fx_page_head > h3 { font-size: clamp(26px, 8vw, 36px); }
  .fx_node, .fx_item { gap: 9px; padding: 12px; }
  .fx_node { grid-template-columns: 34px minmax(0, 1fr); }
  .fx_item { grid-template-columns: 38px minmax(0, 1fr); }
  .fx_node_stats, .fx_item_stats { display: none; }
  .fx_node_last, .fx_item_last { grid-column: 2; font-size: 12px; }
  .fx_item_last { justify-content: flex-start; text-align: left; }
  .fx_item_last .fx_avatar { order: -1; }
  .fx_node_last .fx_avatar, .fx_item_last .fx_avatar { width: 25px; height: 25px; font-size: 11px; }
  .fx_item_last .fx_meta { display: inline; margin-right: 4px; }
  .fx_post { grid-template-columns: minmax(0, 1fr); }
  .fx_post_author { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; border-right: 0; border-bottom: 1px solid var(--fx-line); border-radius: 9px 9px 0 0; }
  .fx_post_author .fx_avatar_l { width: 38px; height: 38px; font-size: 17px; }
  .fx_author_name { text-align: left; }
  .fx_author_name .fx_badges { justify-content: flex-start; }
  .fx_post_author .fx_member_facts { display: none; }
  .fx_member { grid-template-columns: auto minmax(0, 1fr); }
  .fx_member > .fx_member_facts { grid-column: 1 / -1; }
  .fx_post_main, .fx_form { padding: 12px; }
  .fx_new_choices { left: 0; right: auto; }
}
