.xf-thread-view {
  color: #1f2328;
}

.xf-thread-header {
  padding: 16px 20px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title actions" "meta  actions";
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
}
@media (max-width: 768px) {
  .xf-thread-header {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "meta" "actions";
    row-gap: 8px;
    padding: 14px 16px;
  }
}
.xf-thread-header__title {
  grid-area: title;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: #1f2328;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (max-width: 600px) {
  .xf-thread-header__title {
    font-size: 18px;
  }
}
.xf-thread-header__meta {
  grid-area: meta;
  font-size: 13px;
  color: #6b7280;
  min-width: 0;
}
.xf-thread-header__actions {
  grid-area: actions;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 768px) {
  .xf-thread-header__actions {
    justify-self: stretch;
  }
}
.xf-thread-header__jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .xf-thread-header__jump {
    justify-content: center;
    width: 100%;
    white-space: normal;
  }
}

.xf-thread-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xf-post {
  display: grid;
  grid-template-columns: 180px 1fr;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .xf-post {
    grid-template-columns: 1fr;
  }
}
.xf-post--op {
  border-left: 3px solid #8A2A6B;
}
.xf-post--nested {
  margin-left: 80px;
}
@media (max-width: 768px) {
  .xf-post--nested {
    margin-left: 40px;
  }
}
.xf-post__author {
  background-color: #f9fafb;
  padding: 16px;
  border-right: 1px solid #d1d5db;
  text-align: center;
}
@media (max-width: 768px) {
  .xf-post__author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid #d1d5db;
    padding: 10px 14px;
  }
}
.xf-post__avatar {
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .xf-post__avatar {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}
.xf-post__avatar img {
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}
.xf-post__author-name {
  font-size: 14px;
  font-weight: 600;
  color: #8A2A6B;
  margin-bottom: 4px;
}
.xf-post__author-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6e2256;
  margin-bottom: 8px;
}
.xf-post__author-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  margin: 12px 0 0;
}
@media (max-width: 768px) {
  .xf-post__author-stats {
    flex-direction: row;
    gap: 16px;
    margin: 0;
    margin-left: auto;
  }
}
.xf-post__author-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
}
@media (max-width: 768px) {
  .xf-post__author-stats > div {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
}
.xf-post__author-stats dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #9ca3af;
}
.xf-post__author-stats dd {
  margin: 0;
  font-weight: 600;
  color: #374151;
}
.xf-post__main {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.xf-post__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
}
.xf-post__permalink {
  color: #9ca3af;
  font-family: monospace;
}
.xf-post__flags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.xf-post__quote {
  font-size: 13px;
  color: #6b7280;
  background-color: #f9fafb;
  padding: 6px 12px;
  border-left: 3px solid #8A2A6B;
  margin-bottom: 12px;
  border-radius: 0 4px 4px 0;
}
.xf-post__quote a {
  color: #8A2A6B;
  text-decoration: none;
  font-weight: 600;
}
.xf-post__content {
  font-size: 15px;
  line-height: 1.6;
  color: #1f2328;
  word-wrap: break-word;
}
.xf-post__content p:first-child {
  margin-top: 0;
}
.xf-post__content p:last-child {
  margin-bottom: 0;
}
.xf-post__content p {
  margin: 0 0 12px;
}
.xf-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.xf-post__content a:not(.forum-mention) {
  color: #8A2A6B;
  text-decoration: underline;
  word-break: break-word;
  transition: color 0.15s ease;
}
.xf-post__content a:not(.forum-mention):hover {
  color: #6e2256;
}
.xf-post__gallery {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.xf-post__gallery li {
  margin: 0;
}
.xf-post__gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.xf-post__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  gap: 12px;
  flex-wrap: wrap;
}
.xf-post__votes {
  display: flex;
  gap: 6px;
}
.xf-post__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.xf-post__actions form {
  margin: 0;
}

.xf-pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.xf-pagination > .page-numbers {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.xf-pagination li {
  margin: 0;
}
.xf-pagination a.page-numbers,
.xf-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.xf-pagination a.page-numbers:hover {
  background-color: rgba(138, 42, 107, 0.1);
  color: #8A2A6B;
  transform: translateY(-1px);
}
.xf-pagination a.page-numbers:active {
  transform: translateY(0);
}
.xf-pagination span.page-numbers.current {
  background-image: linear-gradient(135deg, #8A2A6B 0%, #a83d85 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(138, 42, 107, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  cursor: default;
}
.xf-pagination a.page-numbers.prev,
.xf-pagination a.page-numbers.next {
  padding: 0 18px;
  background-color: #f9fafb;
  color: #4b5563;
  gap: 4px;
}
.xf-pagination a.page-numbers.prev:hover,
.xf-pagination a.page-numbers.next:hover {
  background-color: #8A2A6B;
  color: #ffffff;
}
.xf-pagination a.page-numbers.prev:hover {
  transform: translateY(-1px) translateX(-2px);
}
.xf-pagination a.page-numbers.next:hover {
  transform: translateY(-1px) translateX(2px);
}
.xf-pagination span.page-numbers.dots {
  color: #9ca3af;
  cursor: default;
  min-width: 28px;
  padding: 0 4px;
}
@media (max-width: 480px) {
  .xf-pagination a.page-numbers,
  .xf-pagination span.page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
  .xf-pagination a.page-numbers.prev,
  .xf-pagination a.page-numbers.next {
    padding: 0 14px;
  }
}

body.sc-premium .xf-pagination a.page-numbers:hover {
  background-color: rgba(101, 49, 144, 0.1);
  color: #653190;
}
body.sc-premium .xf-pagination span.page-numbers.current {
  background-image: linear-gradient(135deg, #653190 0%, #7d3da9 100%);
  box-shadow: 0 4px 10px rgba(101, 49, 144, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
body.sc-premium .xf-pagination a.page-numbers.prev:hover,
body.sc-premium .xf-pagination a.page-numbers.next:hover {
  background-color: #653190;
  color: #ffffff;
}

.xf-thread-posts__heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px auto 18px;
  padding: 6px 16px;
  background-color: rgba(138, 42, 107, 0.06);
  color: #8A2A6B;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.xf-thread-posts__heading:empty {
  display: none;
}
.xf-thread-posts__heading::before {
  content: "";
}

.xf-thread-posts > .xf-thread-posts__heading {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: max-content;
  justify-content: center;
}

body.sc-premium .xf-thread-posts__heading {
  background-color: rgba(101, 49, 144, 0.08);
  color: #653190;
}

.xf-post:target {
  animation: xf-post-target-pulse 2.4s ease-out;
}

@keyframes xf-post-target-pulse {
  0% {
    box-shadow: 0 0 0 4px rgba(138, 42, 107, 0.45);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(138, 42, 107, 0);
  }
}
body.sc-premium .xf-post:target {
  animation-name: xf-post-target-pulse-premium;
}

@keyframes xf-post-target-pulse-premium {
  0% {
    box-shadow: 0 0 0 4px rgba(101, 49, 144, 0.45);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(101, 49, 144, 0);
  }
}
.xf-post__content--truncated {
  position: relative;
  max-height: 360px;
  overflow: hidden;
}
.xf-post__content--truncated::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgb(255, 255, 255) 85%);
  pointer-events: none;
}

.xf-post__content--expanded {
  max-height: none;
  overflow: visible;
}

.xf-post__read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 6px 16px;
  background-color: #f8f8f9;
  color: #8A2A6B;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.xf-post__read-more:hover {
  background-color: #8A2A6B;
  color: #ffffff;
}

body.sc-premium .xf-post__read-more {
  background-color: rgba(101, 49, 144, 0.1);
  color: #653190;
}
body.sc-premium .xf-post__read-more:hover {
  background-color: #653190;
  color: #ffffff;
}

.forum-rt-input {
  position: relative;
  width: 100%;
}
.forum-rt-input__editor {
  width: 100%;
  min-height: 90px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background-color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2328;
  white-space: pre-wrap;
  word-wrap: break-word;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.forum-rt-input__editor:focus {
  border-color: #8A2A6B;
  box-shadow: 0 0 0 3px rgba(138, 42, 107, 0.12);
}
.forum-rt-input__editor:empty:before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
}
.forum-rt-input__editor p, .forum-rt-input__editor div {
  margin: 0;
}
.forum-rt-input__editor p:not(:last-child) {
  margin-bottom: 0.5em;
}
.forum-rt-input__editor p:empty {
  display: none;
}

.xf-reply-dock .forum-rt-input__editor {
  min-height: 60px;
}

.xf-post-edit__rt .forum-rt-input__editor {
  min-height: 100px;
  font-size: 15px;
  line-height: 1.6;
}

body.sc-premium .forum-rt-input__editor:focus {
  border-color: #653190;
  box-shadow: 0 0 0 3px rgba(101, 49, 144, 0.15);
}

.forum-mention-token {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 1px;
  background-color: rgba(138, 42, 107, 0.12);
  color: #8A2A6B;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95em;
  user-select: all;
  cursor: default;
  line-height: 1.4;
}

body.sc-premium .forum-mention-token {
  background-color: rgba(101, 49, 144, 0.12);
  color: #653190;
}

.forum-mention-dropdown {
  position: fixed;
  z-index: 10000;
  list-style: none;
  margin: 0;
  padding: 4px;
  width: 300px;
  max-width: calc(100vw - 24px);
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}
@media (max-width: 600px) {
  .forum-mention-dropdown {
    width: calc(100vw - 24px);
    max-height: 50vh;
  }
}
.forum-mention-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  color: #1f2328;
  transition: background-color 0.1s ease;
}
@media (max-width: 600px) {
  .forum-mention-dropdown__item {
    padding: 10px 10px;
    font-size: 15px;
  }
}
.forum-mention-dropdown__item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.forum-mention-dropdown__item[aria-selected=true] {
  background-color: rgba(138, 42, 107, 0.1);
}
.forum-mention-dropdown__item:hover {
  background-color: rgba(138, 42, 107, 0.08);
}
.forum-mention-dropdown__empty {
  padding: 12px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

body.sc-premium .forum-mention-dropdown__item[aria-selected=true], body.sc-premium .forum-mention-dropdown__item:hover {
  background-color: rgba(101, 49, 144, 0.1);
}

.forum-mention {
  display: inline-block;
  padding: 0 6px;
  background-color: rgba(138, 42, 107, 0.1);
  color: #8A2A6B;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.forum-mention:hover {
  background-color: #8A2A6B;
  color: #ffffff;
}

body.sc-premium .forum-mention {
  background-color: rgba(101, 49, 144, 0.1);
  color: #653190;
}
body.sc-premium .forum-mention:hover {
  background-color: #653190;
  color: #ffffff;
}

.xf-post-edit {
  margin-top: 4px;
}
.xf-post-edit__images {
  margin-top: 14px;
}
.xf-post-edit__images-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.xf-post-edit__images-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.xf-post-edit__image {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.xf-post-edit__image img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.xf-post-edit__image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.xf-post-edit__image-remove:hover {
  background: #c0392b;
}
.xf-post-edit__upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #6b7280;
  margin-top: 12px;
  transition: all 0.15s ease;
}
.xf-post-edit__upload:hover {
  border-color: #8A2A6B;
  color: #8A2A6B;
}
.xf-post-edit__upload input {
  display: none;
}
.xf-post-edit__new-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
}
.xf-post-edit__new-list:empty {
  display: none;
}
.xf-post-edit__new-image img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  display: block;
}
.xf-post-edit__textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2328;
  resize: vertical;
  box-sizing: border-box;
}
.xf-post-edit__textarea:focus {
  outline: none;
  border-color: #8A2A6B;
  box-shadow: 0 0 0 3px rgba(138, 42, 107, 0.12);
}
.xf-post-edit__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.xf-post-edit__save {
  background-color: #8A2A6B !important;
  color: #ffffff !important;
  border: 1px solid #8A2A6B !important;
}
.xf-post-edit__save:hover {
  background-color: #6e2256 !important;
  border-color: #6e2256 !important;
  color: #ffffff !important;
}
.xf-post-edit__save:disabled {
  opacity: 0.6;
  cursor: wait;
}
.xf-post-edit__feedback {
  font-size: 12px;
  color: #6b7280;
  margin-left: auto;
}
.xf-post-edit__feedback.is-error {
  color: #c0392b;
}

body.sc-premium .xf-post-edit__textarea:focus {
  border-color: #653190;
  box-shadow: 0 0 0 3px rgba(101, 49, 144, 0.15);
}
body.sc-premium .xf-post-edit__save {
  background-color: #653190 !important;
  border-color: #653190 !important;
}
body.sc-premium .xf-post-edit__save:hover {
  background-color: #4f2572 !important;
  border-color: #4f2572 !important;
}

.xf-post--just-edited {
  animation: xf-post-edited-pulse 1.5s ease-out;
}

@keyframes xf-post-edited-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 42, 107, 0.5);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(138, 42, 107, 0);
  }
}
body.sc-premium .xf-post--just-edited {
  animation-name: xf-post-edited-pulse-premium;
}

@keyframes xf-post-edited-pulse-premium {
  0% {
    box-shadow: 0 0 0 0 rgba(101, 49, 144, 0.5);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(101, 49, 144, 0);
  }
}
.xf-post__edited-marker {
  margin-top: 8px;
  font-size: 11px;
  color: #9ca3af;
}

.xf-post-children {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.xf-flag {
  display: inline-block;
  padding: 2px 8px;
  background-color: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
}

.xf-reactions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.xf-reactions__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.xf-reactions__trigger:hover:not(:disabled) {
  border-color: #8A2A6B;
  color: #8A2A6B;
}
.xf-reactions__trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.xf-reactions__trigger.is-reaction-like {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.4);
  background-color: rgba(24, 119, 242, 0.08);
}
.xf-reactions__trigger.is-reaction-love {
  color: #e0245e;
  border-color: rgba(224, 36, 94, 0.4);
  background-color: rgba(224, 36, 94, 0.08);
}
.xf-reactions__trigger.is-reaction-care {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.4);
  background-color: rgba(180, 83, 9, 0.08);
}
.xf-reactions__trigger.is-reaction-laugh {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.4);
  background-color: rgba(245, 158, 11, 0.08);
}
.xf-reactions__trigger.is-reaction-celebrate {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.4);
  background-color: rgba(124, 58, 237, 0.08);
}
@media (max-width: 480px) {
  .xf-reactions__trigger {
    padding: 5px 10px;
  }
}
.xf-reactions__trigger-emoji {
  font-size: 15px;
  line-height: 1;
}
@media (max-width: 480px) {
  .xf-reactions__trigger-label {
    display: none;
  }
}
.xf-reactions__picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 6px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  animation: xf-reactions-fade-in 0.12s ease;
}
.xf-reactions__picker[hidden] {
  display: none;
}
.xf-reactions__picker::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
}
.xf-reactions__option {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.xf-reactions__option:hover {
  transform: scale(1.25) translateY(-2px);
  background-color: #f3f4f6;
}
.xf-reactions__option.is-active {
  background-color: rgba(138, 42, 107, 0.12);
}
.xf-reactions__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.xf-reactions__stack {
  display: inline-flex;
  align-items: center;
}
.xf-reactions__stack-emoji {
  font-size: 14px;
  line-height: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.xf-reactions__stack-emoji + .xf-reactions__stack-emoji {
  margin-left: -6px;
}
.xf-reactions__count {
  font-weight: 600;
  color: #4b5563;
}

@keyframes xf-reactions-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.xf-post-action {
  display: inline-block;
  padding: 4px 12px;
  background-color: transparent;
  border: 1px solid transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.xf-post-action:hover {
  background-color: #e5e7eb;
  color: #8A2A6B;
}
.xf-post-action--danger:hover {
  background-color: #fef2f2;
  color: #c0392b;
}
.xf-post-action--report {
  color: #c0392b;
  order: 99;
  margin-left: auto;
}
.xf-post-action--report:hover {
  background-color: #fef2f2;
  color: #c0392b;
}
.xf-post-action--favorite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.xf-post-action--favorite .xf-favorite__icon {
  font-size: 15px;
  line-height: 1;
}
.xf-post-action--favorite.is-active {
  color: #b45309;
}
.xf-post-action--favorite.is-active .xf-favorite__icon {
  color: #f59e0b;
}
.xf-post-action--favorite.is-active:hover {
  background-color: #fff7ed;
  color: #b45309;
}

.xf-reply-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background-color: #ffffff;
  border-top: 1px solid #d1d5db;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.xf-reply-dock__inner {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 1024px) {
  .xf-reply-dock__inner {
    padding: 0 16px;
  }
}
.xf-reply-dock__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  margin: 12px 0;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.xf-reply-dock__trigger:hover {
  background-color: #ffffff;
  border-color: #8A2A6B;
  color: #8A2A6B;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.xf-reply-dock__trigger-icon {
  font-size: 18px;
}
.xf-reply-dock__trigger-text {
  flex: 1;
}
.xf-reply-dock__form {
  padding: 16px 0 20px;
}
.xf-reply-dock__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
}
.xf-reply-dock__form textarea:focus {
  outline: none;
  border-color: #8A2A6B;
  box-shadow: 0 0 0 3px rgba(138, 42, 107, 0.12);
}
.xf-reply-dock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.xf-reply-dock__title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2328;
}
.xf-reply-dock__close {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}
.xf-reply-dock__close:hover {
  background: #f3f4f6;
  color: #1f2328;
}
.xf-reply-dock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.xf-reply-dock__upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #6b7280;
  transition: all 0.15s ease;
}
.xf-reply-dock__upload:hover {
  border-color: #8A2A6B;
  color: #8A2A6B;
}
.xf-reply-dock__upload input {
  display: none;
}
.xf-reply-dock__upload-icon {
  font-size: 14px;
}
.xf-reply-dock__target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background-color: rgba(138, 42, 107, 0.08);
  border-left: 3px solid #8A2A6B;
  border-radius: 0 4px 4px 0;
  margin: 0 0 10px;
  font-size: 13px;
  color: #1f2328;
}
.xf-reply-dock__target-cancel {
  margin-left: auto;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  color: #6b7280;
}
.xf-reply-dock__target-cancel:hover {
  border-color: #8A2A6B;
  color: #8A2A6B;
}
.xf-reply-dock--locked, .xf-reply-dock--guest {
  padding: 14px 0;
  text-align: center;
}
.xf-reply-dock__locked-msg {
  color: #92400e;
  font-size: 13px;
}
.xf-reply-dock__login {
  color: #8A2A6B;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

body.has-reply-dock-open .xf-thread-view {
  padding-bottom: 320px;
}

.xf-thread-view {
  padding-bottom: 100px;
}

body.sc-premium .xf-reply-dock__trigger:hover {
  border-color: #653190;
  color: #653190;
}
body.sc-premium .xf-reply-dock__form textarea:focus {
  border-color: #653190;
  box-shadow: 0 0 0 3px rgba(101, 49, 144, 0.15);
}
body.sc-premium .xf-reply-dock__upload:hover {
  border-color: #653190;
  color: #653190;
}
body.sc-premium .xf-reply-dock__target {
  background-color: rgba(101, 49, 144, 0.1);
  border-left-color: #653190;
}
body.sc-premium .xf-reply-dock__target-cancel:hover {
  border-color: #653190;
  color: #653190;
}
body.sc-premium .xf-reply-dock__login {
  color: #653190;
}

.xf-post-action--primary {
  background-color: rgba(138, 42, 107, 0.08);
  color: #8A2A6B;
  border: 1px solid rgba(138, 42, 107, 0.25);
}
.xf-post-action--primary:hover {
  background-color: #8A2A6B;
  color: #ffffff;
  border-color: #8A2A6B;
}

body.sc-premium .xf-post-action--primary {
  background-color: rgba(101, 49, 144, 0.1);
  color: #653190;
  border-color: rgba(101, 49, 144, 0.25);
}
body.sc-premium .xf-post-action--primary:hover {
  background-color: #653190;
  color: #ffffff;
  border-color: #653190;
}

.xf-reply-box {
  margin-top: 24px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 20px;
}
.xf-reply-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #1f2328;
}
.xf-reply-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px;
  box-sizing: border-box;
}
.xf-reply-box textarea:focus {
  outline: none;
  border-color: #8A2A6B;
}
.xf-reply-box__images {
  margin-top: 12px;
}
.xf-reply-box__images label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}
.xf-reply-box__images input[type=file] {
  font-size: 13px;
}
.xf-reply-box__target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background-color: #eff6ff;
  border-left: 3px solid #8A2A6B;
  border-radius: 0 4px 4px 0;
  margin-bottom: 12px;
  font-size: 13px;
  color: #1f2328;
}
.xf-reply-box__cancel {
  margin-left: auto;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  color: #6b7280;
}
.xf-reply-box__cancel:hover {
  border-color: #8A2A6B;
  color: #8A2A6B;
}
.xf-reply-box__login {
  text-align: center;
  margin: 0;
  padding: 20px;
}
.xf-reply-box__login a {
  color: #8A2A6B;
  font-weight: 600;
  font-size: 15px;
}
.xf-reply-box button[type=submit] {
  margin-top: 14px;
}

.sc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}
.sc-lightbox.is-open {
  display: flex;
}
.sc-lightbox__stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}
.sc-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.sc-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.sc-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 22px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.sc-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.sc-lightbox__nav--prev {
  left: 16px;
}
.sc-lightbox__nav--next {
  right: 16px;
}
.sc-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

body.sc-lightbox-open {
  overflow: hidden;
}

.xf-back-to-top {
  position: fixed;
  bottom: 96px;
  right: 16px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #8A2A6B;
  color: #ffffff;
  border: 0;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}
.xf-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.xf-back-to-top:hover, .xf-back-to-top:focus {
  background-color: #6e2256;
  outline: none;
}
@media (max-width: 600px) {
  .xf-back-to-top {
    bottom: 80px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

body.has-reply-dock-open .xf-back-to-top {
  bottom: 260px;
}
@media (max-width: 600px) {
  body.has-reply-dock-open .xf-back-to-top {
    bottom: 220px;
  }
}
