.chat-msg.chat-msg-system {
  justify-content: center;
}

.chat-msg.chat-msg-system .chat-msg-body {
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(208, 232, 131, 0.14);
  background: rgba(38, 38, 42, 0.2);
  color: #e8e9e6;
  text-align: center;
  padding: 8px 12px;
}

.chat-msg.chat-msg-system .chat-msg-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.community-live-stage .community-live-watch-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(188, 213, 104, 0.18);
  background:
    radial-gradient(circle at top, rgba(147, 165, 88, 0.22), rgba(7, 7, 8, 0.98) 62%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 36px rgba(0, 0, 0, 0.24);
}

.community-live-stage-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.2), transparent 26%, transparent 62%, rgba(5, 5, 5, 0.56));
}

.community-live-stage-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 15, 17, 0.72);
  border: 1px solid rgba(194, 219, 110, 0.28);
  color: #f4f5f3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.community-live-stage-badge i {
  color: #bdda5f;
  font-size: 10px;
}

.community-live-stage-footer {
  align-self: end;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.community-live-stage-copy {
  display: grid;
  gap: 4px;
  max-width: min(70%, 420px);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(10, 10, 11, 0.5);
  border: 1px solid rgba(196, 221, 116, 0.14);
  backdrop-filter: blur(10px);
}

.community-live-stage-copy strong {
  color: #f8f8f7;
  font-size: 16px;
}

.community-live-stage-copy span {
  color: #dfe7c4;
  font-size: 12px;
}

.community-live-stage-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  pointer-events: auto;
}

.community-live-stage-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(213, 232, 152, 0.16);
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(12px);
  color: #f5f5f4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.community-live-stage-control i {
  font-size: 13px;
}

.community-live-stage-control-icon {
  min-width: 44px;
  width: 44px;
  padding: 0;
}

.community-live-stage-control-icon span {
  display: none;
}

.community-live-stage-control:hover,
.community-live-stage-control:focus-visible {
  border-color: rgba(214, 239, 131, 0.3);
  background: rgba(17, 17, 19, 0.9);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.community-live-compose {
  margin-top: auto;
}

.community-thread-detail {
  min-height: 220px;
}

.community-thread-detail-modal-panel {
  width: min(900px, 96vw);
  max-height: min(90vh, 940px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(161, 189, 68, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(13, 16, 22, 0.98), rgba(10, 13, 18, 0.98));
  border-color: rgba(145, 166, 78, 0.34);
}

.community-thread-detail-modal-panel .community-thread-detail {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 2px;
  padding-bottom: 4px;
}

#calendarDayList.calendar-thread-detail,
#calendarDayList.community-thread-detail {
  min-height: 0;
}

.calendar-day-feed {
  display: grid;
  gap: 10px;
}

.calendar-day-feed.feed.is-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.calendar-day-feed .card {
  cursor: pointer;
}

.calendar-day-feed.feed.is-list .card {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.community-thread-detail-modal-panel .community-thread {
  gap: 10px;
}

.community-live-history-modal-panel {
  width: min(920px, 96vw);
  max-height: min(90vh, 920px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.community-live-history-list {
  min-height: 180px;
  max-height: 100%;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 17, 20, 0.98), rgba(12, 14, 17, 0.96));
  padding: 10px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.community-live-history-empty {
  min-height: 124px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(17, 20, 24, 0.82);
}

.community-live-history-empty strong {
  color: #e6ebf2;
  font-size: 15px;
}

.community-live-history-empty span {
  color: #9da9b5;
  font-size: 13px;
}

.community-live-history-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 30, 37, 0.98), rgba(19, 24, 30, 0.96));
  padding: 12px;
  display: grid;
  gap: 10px;
}

.community-live-history-card-head {
  display: grid;
  gap: 4px;
}

.community-live-history-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-live-history-card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  color: #edf2f7;
}

.community-live-history-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d3dbe5;
  background: rgba(255, 255, 255, 0.05);
}

.community-live-history-card-status.is-ended {
  border-color: rgba(191, 216, 109, 0.26);
  color: #eaf2cd;
  background: rgba(145, 167, 70, 0.16);
}

.community-live-history-card-meta {
  margin: 0;
  font-size: 12px;
  color: #9da9b5;
}

.community-live-history-card-desc {
  margin: 0;
  font-size: 14px;
  color: #d3dbe5;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-live-history-card-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.community-live-history-stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  min-height: 54px;
  padding: 8px;
  display: grid;
  align-content: center;
  gap: 2px;
}

.community-live-history-stat-label {
  font-size: 11px;
  color: #8f9ba7;
}

.community-live-history-stat-value {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  color: #edf2f7;
}

.community-live-history-card-actions {
  display: flex;
  justify-content: flex-start;
}

.community-live-history-comments {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.community-live-history-comment {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.community-live-history-comment strong {
  color: #eef5fb;
  font-size: 13px;
}

.community-live-history-comment p {
  margin: 0;
  color: #d3dbe5;
  font-size: 13px;
  line-height: 1.45;
}

.community-live-history-comment span,
.community-live-history-comments-empty {
  color: #94a0ad;
  font-size: 12px;
}

.community-thread-detail-modal-panel .community-reply-form {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0), rgba(9, 9, 9, 0.94) 35%);
}

.community-thread-item {
  width: 100%;
  min-height: 120px;
  border: 0;
  border-bottom: 1px solid rgba(157, 176, 93, 0.2);
  border-radius: 0;
  background: transparent;
  text-align: left;
  padding: 14px 16px 13px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  box-shadow: none;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.community-thread-item:hover {
  background: transparent;
  box-shadow: none;
}

.community-thread-item:focus-visible {
  outline: 2px solid rgba(221, 250, 124, 0.7);
  outline-offset: 2px;
}

.community-thread-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 0;
}

.community-thread-item.is-active {
  background: transparent;
  box-shadow: inset 2px 0 0 rgba(203, 232, 109, 0.72);
}

.community-thread-item.has-replies {
  background-color: transparent;
}

.community-thread-item.is-quiet {
  opacity: 0.94;
}

.community-thread-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.community-thread-item-author-row,
.community-thread-author-row,
.community-reply-author {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.community-thread-item-author-row strong,
.community-thread-author-row strong,
.community-reply-author strong {
  font-size: 14px;
  line-height: 1.2;
  color: #f4f5f3;
}

.community-meta-separator {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(209, 219, 179, 0.5);
  flex: 0 0 auto;
}

.community-thread-item-handle,
.community-thread-item-time,
.community-thread-handle,
.community-thread-time,
.community-reply-handle,
.community-reply-time {
  font-size: 12px;
  color: rgba(203, 211, 174, 0.78);
}

.community-thread-item-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f5f5f4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.community-thread-item:hover .community-thread-item-title,
.community-thread-item:focus-visible .community-thread-item-title,
.community-thread-item.is-active .community-thread-item-title {
  color: #f8f8f7;
}

.community-thread-item-preview {
  margin: 0;
  font-size: 14px;
  line-height: 1.44;
  color: #e3eacb;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.community-thread-item-meta {
  font-size: 12px;
  color: rgba(202, 212, 171, 0.82);
  white-space: normal;
  margin-left: auto;
}

.community-thread {
  display: grid;
  gap: 10px;
}

.community-thread-post {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.community-thread-post-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-thread-post-rail .community-avatar {
  width: 48px;
  height: 48px;
}

.community-thread-post-body,
.community-thread-author-meta {
  min-width: 0;
  display: grid;
}

.community-thread-post-body {
  gap: 8px;
}

.community-thread-author-meta {
  gap: 6px;
}

.community-thread-main {
  padding: 0;
  display: grid;
  gap: 8px;
}

.community-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 0;
}

.community-thread-head h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.community-thread-message {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.62;
  color: #e3e3e1;
  padding: 0;
  max-width: 72ch;
}

.community-thread-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.community-thread-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(203, 211, 174, 0.82);
  font-size: 12px;
  font-weight: 600;
}

.community-thread-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.community-thread-menu-wrap {
  position: relative;
}

.community-thread-menu-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 0;
}

.community-thread-menu-toggle i {
  margin: 0;
}

.community-thread-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 156px;
  z-index: 6;
  border: 1px solid rgba(173, 194, 106, 0.3);
  border-radius: 12px;
  background: rgba(6, 6, 7, 0.96);
  padding: 6px;
  display: grid;
  gap: 4px;
}

.community-thread-menu .community-action-btn-inline {
  width: 100%;
  justify-content: flex-start;
  border-radius: 10px;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.community-replies {
  display: grid;
  gap: 0;
  margin-top: 10px;
  padding-top: 4px;
  padding-left: 0;
  margin-left: 0;
  border-top: 1px solid rgba(143, 159, 91, 0.15);
}

.community-replies::before {
  display: none;
}

.community-reply {
  border: 0;
  border-radius: 0;
  padding: 12px 0 10px;
  background: transparent;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.community-reply.community-reply-threaded {
  display: grid;
  padding: 12px 0 10px;
  border-radius: 0;
  background: transparent;
}

.community-reply-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.community-reply-rail-line {
  flex: 1 1 auto;
  width: 2px;
  min-height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(175, 194, 111, 0.5), rgba(175, 194, 111, 0.08));
}

.community-reply-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.community-reply-children {
  display: grid;
  gap: 0;
  margin-top: 6px;
  margin-left: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(169, 188, 106, 0.2);
}

.community-reply.depth-1,
.community-reply.depth-2,
.community-reply.depth-3 {
  padding-top: 12px;
  padding-bottom: 10px;
}

.community-reply.community-reply-threaded.has-children {
  padding-bottom: 6px;
}

.community-reply-head {
  display: block;
  justify-content: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.community-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  object-fit: cover;
  background: rgba(11, 11, 12, 0.9);
}

.community-avatar.community-avatar-sm {
  width: 40px;
  height: 40px;
}

.community-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.community-reply-message {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.58;
  font-size: 14px;
  color: #e5ead5;
}

.community-reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
}

.community-reply-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.community-reply-action-group .community-action-btn {
  width: auto;
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 999px;
  justify-content: center;
  opacity: 0.82;
}

.community-social-btn {
  width: auto;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(203, 211, 174, 0.9);
  opacity: 1;
}

.community-social-btn:hover,
.community-thread-item:hover .community-social-btn,
.community-reply:hover .community-social-btn {
  background: rgba(255, 255, 255, 0.04);
}

.community-social-btn-primary {
  color: #eff0ee;
}

.community-social-btn.is-liked {
  color: rgb(255, 0, 0);
  border-color: rgba(255, 0, 0, 0.52);
  background: rgba(255, 0, 0, 0.12);
  opacity: 1;
}

.community-social-btn.is-liked i {
  color: rgb(255, 0, 0);
}

.community-social-btn.is-reported {
  border-color: rgba(255, 120, 120, 0.4);
  color: #ffdede;
}

.community-reply-form {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.community-reply-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.community-reply-target-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.community-reply-target-copy strong {
  font-size: 13px;
  color: #f3f4f2;
}

.community-reply-target-copy span {
  font-size: 11px;
  color: rgba(215, 223, 187, 0.72);
}

.community-reply-target .community-action-btn-inline {
  width: auto;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.community-reply-form textarea {
  min-height: 44px;
  max-height: 120px;
  border-radius: 12px;
  padding: 10px 12px;
  resize: vertical;
}

.community-reply-compose {
  display: block;
}

.community-reply-compose-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(160, 178, 103, 0.16);
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.58);
  overflow: hidden;
  box-shadow: none;
}

.community-reply-compose-pill textarea {
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 13px 16px 12px;
  resize: none;
  box-shadow: none;
}

.community-reply-compose-pill textarea:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}

.community-reply-submit-pill {
  width: 48px !important;
  min-width: 48px !important;
  height: auto !important;
  min-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  align-self: stretch;
  flex: 0 0 48px;
  border: 0 !important;
  border-left: 1px solid rgba(160, 178, 103, 0.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.community-reply-submit-pill:hover,
.community-reply-submit-pill:focus-visible {
  background: rgba(255, 255, 255, 0.04) !important;
  border-left-color: rgba(160, 178, 103, 0.28) !important;
  box-shadow: none !important;
  transform: none !important;
}

.community-reply-submit-pill i {
  margin: 0;
  font-size: 15px;
  pointer-events: none;
}

.community-reply-hint {
  color: rgba(215, 226, 180, 0.76);
  font-size: 12px;
  margin-left: 2px;
}

@media (max-width: 680px) {
  .community-reply-children {
    padding-left: 10px;
  }

  .community-reply-target {
    align-items: stretch;
    flex-direction: column;
  }

  .community-reply-target .community-action-btn-inline {
    width: 100%;
    justify-content: center;
  }
}

.community-action-group {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.community-action-group-2 {
  display: inline-flex;
  grid-template-columns: none;
  width: auto;
}

.community-action-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.community-action-btn i {
  margin: 0;
}

.community-action-btn-primary {
  border-color: rgba(221, 250, 124, 0.55);
  background: linear-gradient(180deg, rgba(32, 32, 36, 0.95), rgba(23, 23, 25, 0.92));
}

.community-action-btn.is-reported {
  border-color: rgba(255, 120, 120, 0.4);
  color: #ffdede;
}

@media (max-width: 480px) {
  .community-reply-actions {
    flex-wrap: wrap;
  }
}

.community-empty,
.community-reply-empty {
  border: 1px dashed rgba(210, 243, 101, 0.28);
  border-radius: 10px;
  padding: 10px;
  color: var(--text-muted);
  text-align: center;
}

.board-card {
  display: grid;
  gap: 14px;
}

.board-head {
  display: grid;
  gap: 6px;
}

.board-head h3 {
  margin: 0;
  font-size: 28px;
}

.board-head p {
  margin: 0;
  color: var(--text-muted);
}

.board-toolbar {
  display: grid;
  gap: 8px;
  position: relative;
  width: 100%;
  max-width: 720px;
  justify-self: center;
}

.board-create {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(210, 243, 101, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(209, 241, 103, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.94), rgba(8, 8, 8, 0.9));
  position: static;
  top: auto;
}

.board-create h4 {
  margin: 0;
  font-size: 15px;
  color: #ebece9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-create .form-grid {
  gap: 8px;
  grid-template-columns: 1fr;
}

.board-create textarea {
  min-height: 130px;
}

.board-create-layout {
  display: grid;
  gap: 12px;
  align-items: start;
}

.board-create-image-col,
.board-create-form-col {
  display: grid;
  gap: 10px;
}

#boardImageDropZone {
  min-height: 210px;
  align-content: start;
}

#boardImagePreview.profile-preview {
  width: 100%;
  height: 220px;
  margin-left: 0;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(7, 7, 8, 0.7);
}

@media (min-width: 920px) {
  #boardAdModal .community-thread-modal-panel {
    width: min(1040px, 96vw);
  }

  #boardAdModal .board-create {
    width: 100%;
    padding: 14px;
    gap: 12px;
  }

  .board-create {
    width: min(980px, 100%);
  }

  .board-create-layout {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.4fr);
    align-items: stretch;
    gap: 14px;
  }

  .board-create-image-col {
    grid-column: 1;
  }

  .board-create-form-col {
    grid-column: 2;
    align-content: start;
  }

  #boardImageDropZone {
    min-height: 100%;
    min-height: 340px;
  }

  #boardImagePreview.profile-preview {
    height: 100%;
    min-height: 320px;
    max-height: 520px;
  }
}

.board-create .primary {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

#boardAdModal.modal {
  align-items: flex-start;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

#boardAdModal .community-thread-modal-panel {
  max-height: calc(100dvh - 20px - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.board-ads {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.board-ad-card {
  border: 1px solid rgba(241, 241, 240, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 12, 13, 0.9), rgba(8, 8, 9, 0.86));
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 9px;
  min-height: 320px;
  box-shadow: 0 12px 24px rgba(7, 8, 3, 0.24);
}

.board-ad-media {
  position: relative;
  width: calc(100% + 24px);
  margin: -12px -12px 0;
  border-radius: 16px 16px 10px 10px;
  overflow: hidden;
  border-bottom: 1px solid rgba(241, 241, 240, 0.14);
}

.board-ad-image {
  width: 100%;
  margin: 0;
  height: 166px;
  object-fit: cover;
  border-radius: 0;
  border-bottom: 0;
  background: rgba(7, 7, 8, 0.72);
  display: block;
}

.board-ad-image-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(220, 251, 116, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(17, 17, 19, 0.98), rgba(11, 11, 12, 0.94));
}

.board-ad-image-placeholder i {
  font-size: 34px;
  color: rgba(240, 241, 239, 0.88);
}

.board-ad-menu-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  padding: 0;
  z-index: 2;
}

.board-ad-menu-toggle i {
  margin: 0;
}

.board-ad-menu {
  position: absolute;
  top: 46px;
  right: 10px;
  z-index: 3;
  width: 148px;
  border-radius: 12px;
  border: 1px solid rgba(241, 241, 240, 0.2);
  background: rgba(7, 7, 8, 0.96);
  padding: 6px;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.board-ad-menu .board-action-btn-inline {
  min-height: 34px;
  justify-content: flex-start;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.board-ad-card h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  color: #f3f3f2;
}

.board-ad-card p {
  margin: 0;
  white-space: normal;
  word-break: break-word;
  color: rgba(225, 229, 209, 0.84);
  font-size: 14px;
  line-height: 1.4;
}

.board-ad-details {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-ad-author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.board-ad-author-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.board-ad-author-meta strong {
  font-size: 15px;
  color: #f5f5f4;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-ad-author-meta span {
  font-size: 12px;
  color: rgba(214, 220, 196, 0.7);
}

.board-ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(214, 220, 196, 0.78);
}

.board-ad-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-ad-meta i {
  color: rgba(221, 250, 124, 0.86);
}

.board-ad-type {
  margin-left: auto;
  border: 1px solid rgba(241, 241, 240, 0.2);
  border-radius: 999px;
  padding: 2px 8px;
  color: #eeeeed;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  white-space: nowrap;
}

.board-ad-type--buy {
  border-color: rgba(119, 183, 255, 0.36);
  background: rgba(119, 183, 255, 0.14);
  color: #e8f2ff;
}

.board-ad-type--sell {
  border-color: rgba(221, 252, 120, 0.34);
  background: rgba(221, 252, 120, 0.14);
  color: #f5f5f4;
}

.board-ad-type--exchange {
  border-color: rgba(178, 160, 255, 0.34);
  background: rgba(178, 160, 255, 0.14);
  color: #eee9ff;
}

.board-contact-btn,
.board-action-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(210, 243, 101, 0.28);
  padding: 0 14px;
  text-decoration: none;
  color: #ebece9;
  background: rgba(11, 11, 12, 0.76);
  align-self: stretch;
  margin-top: 0;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.board-ad-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: end;
}

.board-action-group {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.board-action-btn {
  width: 100%;
  min-height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
}

.board-action-btn i {
  margin: 0;
}

.board-action-btn-primary {
  border-color: rgba(221, 250, 124, 0.55);
  background: linear-gradient(180deg, rgba(32, 32, 36, 0.95), rgba(23, 23, 25, 0.92));
  color: #f4f5f3;
}

.board-action-btn-danger {
  border-color: rgba(255, 120, 120, 0.38);
  color: #ffdede;
}

.board-edit-btn {
  min-height: 42px;
  border-radius: 11px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-contact-btn:hover {
  border-color: rgba(221, 250, 124, 0.5);
  background: rgba(17, 17, 19, 0.9);
  transform: translateY(-1px);
}

.board-contact-btn.is-disabled {
  opacity: 0.65;
}

@media (max-width: 480px) {
  .board-action-group {
    grid-template-columns: 1fr;
  }
  .board-action-btn-primary {
    grid-column: auto;
  }
}

.chat-card {
  display: grid;
  border-radius: 16px;
  width: min(980px, 100%);
  margin-inline: auto;
  align-content: stretch;
  min-height: clamp(520px, calc(100dvh - 210px), 860px);
}

.chat-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chat-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  max-width: 62ch;
  font-size: 15px;
}

.chat-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  align-content: stretch;
  width: 100%;
  min-width: 0;
  max-width: 920px;
  margin: 0 auto;
  min-height: 0;
}

.chat-search-block,
.chat-conversations-block {
  display: grid;
  gap: var(--sp-2);
}

.chat-conversations-block {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.chat-section-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a8b3bd;
}

.chat-search-block .chat-section-label {
  margin-bottom: 2px;
}

.chat-sidebar input[type="text"] {
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
}

.chat-user-results,
.chat-conversations {
  display: grid;
  gap: 6px;
  align-content: start;
  grid-auto-rows: max-content;
}

.chat-user-results {
  max-height: 220px;
  min-height: 76px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(17, 20, 24, 0.96), rgba(13, 16, 19, 0.94));
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 138, 150, 0.72) rgba(18, 21, 26, 0.68);
}

.chat-conversations {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 138, 150, 0.72) rgba(18, 21, 26, 0.68);
}

.chat-user-results::-webkit-scrollbar,
.chat-conversations::-webkit-scrollbar {
  width: 8px;
}

.chat-user-results::-webkit-scrollbar-track,
.chat-conversations::-webkit-scrollbar-track {
  background: rgba(18, 21, 26, 0.72);
  border-radius: 999px;
}

.chat-user-results::-webkit-scrollbar-thumb,
.chat-conversations::-webkit-scrollbar-thumb {
  background: rgba(125, 138, 150, 0.82);
  border: 1px solid rgba(18, 21, 26, 0.85);
  border-radius: 999px;
}

.chat-user-results::-webkit-scrollbar-thumb:hover,
.chat-conversations::-webkit-scrollbar-thumb:hover {
  background: rgba(146, 159, 171, 0.92);
}

.chat-thread {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  gap: 10px;
  min-height: 560px;
}

.chat-private-modal-panel {
  width: min(980px, 96vw);
  height: min(92vh, 940px);
  max-height: min(92vh, 940px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.chat-private-modal-panel .chat-messages {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
}

@media (min-width: 1280px) {
  .chat-private-modal-panel {
    width: min(1120px, 92vw);
    height: min(92vh, 980px);
    max-height: min(92vh, 980px);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .chat-private-modal-panel .chat-messages {
    min-height: 0;
  }
}

.chat-thread-title {
  padding: 6px 8px;
  font-weight: 700;
  color: #edf2f7;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chat-thread-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.chat-thread-status {
  font-size: 12px;
  font-weight: 500;
  color: #8f9ba7;
  line-height: 1.2;
}

.chat-conv-item {
  --chat-conv-py: 9px;
  --chat-conv-px: 10px;
  --chat-conv-gap: 8px;
  width: 100%;
  color: var(--text);
  text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--chat-conv-gap);
  align-items: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: var(--chat-conv-py) var(--chat-conv-px);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(180deg, rgba(21, 25, 30, 0.94), rgba(16, 19, 23, 0.92));
}

.chat-conv-item:focus-visible {
  outline: 2px solid rgba(221, 250, 124, 0.78);
  outline-offset: 2px;
}

.chat-conv-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(28, 33, 39, 0.96);
  transform: translateY(-1px) translateX(2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.chat-conv-item.is-active {
  border-color: rgba(210, 243, 101, 0.14);
  background: linear-gradient(180deg, rgba(29, 37, 43, 0.98), rgba(23, 30, 35, 0.96));
  box-shadow: inset 3px 0 0 rgba(210, 243, 101, 0.42), 0 10px 20px rgba(0, 0, 0, 0.18);
}

.chat-conv-item.is-unread {
  border-color: rgba(210, 243, 101, 0.16);
  background: linear-gradient(180deg, rgba(25, 31, 36, 0.98), rgba(19, 24, 28, 0.95));
}

.chat-conv-body {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: center;
}

.chat-conv-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.chat-conv-body strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-item.is-unread .chat-conv-body strong {
  color: #f6f6f6;
  font-weight: 800;
}

.chat-conv-time {
  font-size: 11px !important;
  color: #7e8994 !important;
  white-space: nowrap;
}

.chat-conv-avatar-wrap {
  position: relative;
  width: 45px;
  height: 45px;
}

.chat-conv-avatar-wrap .community-avatar {
  width: 45px;
  height: 45px;
}

.chat-conv-presence {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(9, 9, 9, 0.95);
  background: rgba(120, 140, 130, 0.8);
}

.chat-conv-presence.is-online {
  background: #c0df59;
  box-shadow: 0 0 0 3px rgba(192, 223, 89, 0.14);
}

.chat-conv-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.chat-conv-preview {
  font-size: 12px;
  color: #9aa5b1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-item.is-unread .chat-conv-preview {
  color: #cad4de;
}

.chat-conv-unread {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #f8f8f7;
  background: rgba(149, 174, 65, 0.92);
  border: 1px solid rgba(210, 243, 101, 0.22);
}

.chat-user-results .chat-conv-body span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-search-item {
  border-radius: 11px;
}

.chat-search-empty {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  color: #99a4ae;
  text-align: center;
  background: rgba(17, 20, 24, 0.86);
}

.chat-search-skeleton {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 9px;
  background: rgba(17, 20, 24, 0.86);
}

.chat-search-skeleton-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(117, 124, 93, 0.22), rgba(148, 155, 123, 0.45), rgba(117, 124, 93, 0.22));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.chat-search-skeleton-lines {
  display: grid;
  gap: 7px;
}

.chat-search-skeleton-lines .sk-line {
  margin-bottom: 0;
}

.chat-search-skeleton-title {
  width: 64%;
  height: 14px;
}

.chat-search-skeleton-sub {
  width: 48%;
  height: 11px;
}

.chat-messages {
  min-height: 280px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 17, 20, 0.98), rgba(12, 14, 17, 0.96));
  padding: 10px 8px;
  display: grid;
  gap: 8px;
  align-content: start;
  grid-auto-rows: max-content;
}

.chat-msg {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  animation: chat-msg-in 0.2s ease;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.chat-msg + .chat-msg {
  margin-top: 4px;
}

.chat-day-separator {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 6px 0 2px;
}

.chat-day-separator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #99a5af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chat-msg-body {
  border: 0;
  border-radius: 18px 18px 18px 10px;
  background: linear-gradient(180deg, rgba(29, 33, 39, 0.98), rgba(22, 26, 31, 0.96));
  padding: 12px 14px 10px;
  max-width: min(82%, 620px);
  width: fit-content;
  display: grid;
  gap: 7px;
  justify-items: start;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.chat-msg.is-me .chat-msg-body {
  border-radius: 18px 18px 10px 18px;
  background: linear-gradient(135deg, rgba(94, 111, 40, 0.96), rgba(129, 151, 58, 0.96));
  box-shadow: inset 0 0 0 1px rgba(210, 243, 101, 0.12), 0 8px 18px rgba(0, 0, 0, 0.16);
  justify-self: end;
}

/* Reaction-only messages (image + emoji) float on the chat background instead
   of sitting inside the usual bubble chrome. Needs to out-specificity both the
   base and the .is-me bubble rules above. */
.chat-msg .chat-msg-body.chat-msg-body-bare,
.chat-msg.is-me .chat-msg-body.chat-msg-body-bare {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.chat-msg.is-me {
  justify-content: flex-end;
}

.chat-msg-author {
  font-size: 12px;
  color: #98a5b1;
  line-height: 1.2;
  font-weight: 700;
}

.chat-msg p {
  margin: 0;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  max-width: none;
  color: #edf2f7;
}

.chat-msg-foot {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.chat-msg-time {
  font-size: 11px;
  color: #7d8792;
  letter-spacing: 0.01em;
}

.chat-msg:hover .chat-msg-body:not(.chat-msg-body-bare) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), 0 5px 15px rgba(0, 0, 0, 0.22);
}

.chat-empty-state {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px;
}

.chat-empty-state strong {
  font-size: 15px;
  color: #f3f3f2;
}

.chat-empty-state span {
  font-size: 13px;
  color: #c0cb9a;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 21, 25, 0.98), rgba(14, 17, 20, 0.96));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.chat-ad-context {
  margin-top: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(18, 21, 25, 0.94);
  padding: 8px 10px;
}

.chat-ad-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-ad-context-head strong {
  font-size: 12px;
  color: #e7e8e5;
}

.chat-ad-context-meta {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.chat-profile-context {
  margin-top: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(18, 21, 25, 0.94);
  padding: 8px 10px;
}

.chat-profile-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-profile-context-head strong,
.chat-profile-context-meta {
  font-size: 12px;
}

.chat-profile-context-head strong {
  color: #e7e8e5;
}

.chat-profile-context-meta {
  color: var(--text-muted);
}

.chat-ad-preview {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(20, 24, 29, 0.9);
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  height: fit-content;
}

.chat-ad-preview-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

/* Story/event reaction preview in chat (large image + reaction badge, Instagram-style). */
.chat-reaction-preview {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
}

.chat-reaction-preview.is-clickable {
  cursor: pointer;
}

.chat-reaction-preview.is-clickable .chat-reaction-thumb {
  transition: transform 0.15s ease;
}

.chat-reaction-preview.is-clickable:hover .chat-reaction-thumb {
  transform: scale(1.02);
}

.chat-reaction-thumb {
  position: relative;
  display: block;
  width: 168px;
  height: 224px;
  border-radius: 16px;
  overflow: hidden;
}

.chat-reaction-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-reaction-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(216, 222, 198, 0.5);
  font-size: 28px;
}

.chat-reaction-emoji {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(20, 24, 29, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.chat-reaction-emoji img.dv-emoji {
  width: 22px;
  height: 22px;
  margin: 0;
  vertical-align: top;
}

.chat-ad-preview strong {
  font-size: 13px;
  color: #edf2f7;
}

.chat-ad-preview span {
  font-size: 12px;
  color: #97a3ae;
}

.chat-ad-preview-image {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}

.chat-ad-preview-context.has-image {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.chat-ad-preview-context.has-image .chat-ad-preview-image {
  width: 92px;
  height: 92px;
  max-height: none;
  margin: 0;
  border-radius: 10px;
}

.chat-ad-preview-context .chat-ad-preview-copy {
  min-width: 0;
}

.chat-profile-preview {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(20, 24, 29, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.chat-profile-preview-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chat-profile-preview-meta strong,
.chat-profile-preview-meta span,
.chat-mention-item-meta strong,
.chat-mention-item-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-profile-preview-meta strong,
.chat-mention-item-meta strong {
  font-size: 13px;
  color: #edf2f7;
}

.chat-profile-preview-meta span,
.chat-mention-item-meta span {
  font-size: 12px;
  color: #97a3ae;
}

.chat-mention-results {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.chat-mention-item {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(20, 24, 29, 0.92);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.chat-mention-item-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.board-ad-preview-panel {
  max-width: 620px;
}

.board-ad-preview-body {
  display: grid;
  gap: 10px;
}

.board-ad-preview-image {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(210, 243, 101, 0.2);
}

.board-ad-preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.chat-compose textarea {
  min-height: 44px;
  height: 44px;
  max-height: calc(1.35em * 3 + 18px);
  resize: none;
  overflow-y: hidden;
  line-height: 1.35;
  border-radius: 0;
  border: 0;
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: 14px;
  padding-right: 14px;
  background: transparent;
  color: #edf2f7;
  font-size: 15px;
}

.chat-compose .primary {
  min-width: 120px;
}

.chat-send-icon-btn {
  width: 46px;
  min-width: 46px !important;
  height: 46px;
  min-height: 46px !important;
  max-height: 46px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  border-radius: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-send-icon-btn.primary {
  background: linear-gradient(180deg, #c3e25e, #a3c042);
  color: #141805;
  border: 0;
  box-shadow: 0 8px 16px rgba(163, 192, 66, 0.22);
}

.chat-msg-body .chat-ad-preview,
.chat-msg-body .chat-profile-preview {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 2px;
  box-shadow: none;
}

.chat-msg-body .chat-ad-preview-image {
  display: none;
}

.chat-msg-body .chat-ad-preview.has-image {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.chat-msg-body .chat-ad-preview.has-image .chat-ad-preview-image {
  display: block;
  width: 72px;
  height: 72px;
  max-height: none;
  margin: 0;
  border-radius: 10px;
  object-fit: cover;
}

.chat-msg-body .chat-ad-preview.has-image .chat-ad-preview-copy {
  min-width: 0;
}

.chat-msg-body .chat-ad-preview strong,
.chat-msg-body .chat-profile-preview-meta strong {
  font-size: 15px;
  line-height: 1.25;
}

.chat-msg-body .chat-ad-preview span,
.chat-msg-body .chat-profile-preview-meta span {
  font-size: 12px;
  color: #95a0ab;
}

@keyframes chat-msg-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-send-icon-btn i {
  margin: 0;
}

#chatPrivateModal.modal {
  z-index: 120;
}

#boardAdPreviewModal.modal {
  z-index: 130;
}

.feed-intro strong {
  color: var(--text);
  font-family: "Sora", sans-serif;
}

.feed-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feed-view-toggle button {
  height: 34px;
  border-radius: 10px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
}

.feed-view-toggle button i {
}

.feed-view-toggle button.is-active {
  border-color: transparent;
  background: linear-gradient(180deg, #ddfa7c, #c6e560);
  color: #101011;
}

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-3);
  align-items: start;
}

.feed:not(.is-list):not(.is-calendar) {
  align-items: stretch;
}

.feed.is-calendar {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  justify-items: center;
}

.feed-calendar-board {
  border: 1px solid rgba(210, 243, 101, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.94), rgba(9, 9, 10, 0.9));
  padding: 12px;
  max-width: 700px;
}

.feed-calendar-board-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.feed-calendar-heading-copy {
  display: grid;
  justify-items: center;
}

.feed-calendar-board-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1;
  text-align: center;
}

.feed-calendar-year {
  justify-self: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.feed-calendar-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(210, 243, 101, 0.32);
  background: rgba(11, 11, 12, 0.88);
  color: #eaebe8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.feed-calendar-nav-btn:hover {
  border-color: rgba(221, 250, 124, 0.6);
  background: rgba(15, 15, 17, 0.95);
}

.feed-calendar-grid-head,
.feed-calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}

.feed-calendar-weekday {
  border: 1px solid rgba(210, 243, 101, 0.2);
  background: rgba(16, 16, 18, 0.85);
  padding: 7px 2px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #e8e9e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-calendar-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  min-height: 0;
  border: 1px solid rgba(210, 243, 101, 0.2);
  background: rgba(10, 10, 11, 0.8);
  border-radius: 12px;
  padding: 8px 7px 6px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 4px;
  overflow: hidden;
  cursor: pointer;
}

.feed-calendar-cell.is-muted {
  opacity: 0.46;
}

.feed-calendar-cell.is-today {
  border-color: rgba(221, 250, 124, 0.64);
  box-shadow: inset 0 0 0 1px rgba(221, 250, 124, 0.24);
}

.feed-calendar-cell:hover {
  border-color: rgba(221, 250, 124, 0.55);
  background: rgba(15, 15, 17, 0.9);
}

.feed-calendar-day-number {
  font-size: 15px;
  font-weight: 800;
  color: #f5f5f4;
  line-height: 1;
}

.feed-calendar-count {
  position: static;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(210, 243, 101, 0.36);
  background: rgba(221, 250, 124, 0.22);
  color: #ebebe9;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  margin-top: 3px;
}

.feed-calendar-cell-events {
  display: grid;
  align-content: start;
  gap: 4px;
}

.feed-calendar-mini-event {
  width: 100%;
  min-height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(210, 243, 101, 0.18);
  background: rgba(10, 10, 11, 0.84);
  display: block;
  text-align: left;
  padding: 2px 6px;
  font-size: 11px;
  color: #eaebe8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-calendar-mini-more {
  font-size: 11px;
  color: #bec998;
  padding-left: 2px;
}

.feed-calendar-side {
  display: none;
}

