.x3-social {
  --x3sf-ink: #111827;
  --x3sf-muted: #64748b;
  --x3sf-border: #e5e7eb;
  --x3sf-panel: #ffffff;
  --x3sf-soft: #f8fafc;
  --x3sf-accent: #dc2626;
  --x3sf-gap: 14px;
  width: 100%;
  margin-inline: auto;
  color: var(--x3sf-ink);
}

.x3-social,
.x3-social * {
  box-sizing: border-box;
}

.x3-social--preview {
  border: 1px dashed var(--x3sf-border);
  border-radius: 8px;
  padding: 18px;
  background: var(--x3sf-soft);
}

.x3-social-preview-card {
  display: grid;
  gap: 4px;
}

.x3-social-preview-card span {
  color: var(--x3sf-muted);
}

.x3-social-feed {
  display: grid;
  gap: var(--x3sf-gap);
}

.x3-social-tutorial-bar {
  display: flex;
  justify-content: flex-end;
}

.x3-social-tutorial-bar--composer {
  margin: -2px 0 0;
}

.x3-social-tabs,
.x3-social-search,
.x3-social-composer-tools,
.x3-social-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.x3-social-tab,
.x3-social-search button,
.x3-social-composer button,
.x3-social-load-more,
.x3-social-action {
  min-height: 36px;
  border: 1px solid var(--x3sf-border);
  border-radius: 7px;
  background: #fff;
  color: var(--x3sf-ink);
  padding: 0 12px;
  font: inherit;
  cursor: pointer;
}

.x3-social-tab.is-active,
.x3-social-composer button,
.x3-social-load-more {
  background: var(--x3sf-ink);
  border-color: var(--x3sf-ink);
  color: #fff;
}

.x3-social button.is-loading {
  opacity: .58;
  cursor: wait;
}

.x3-social-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.x3-social-search input,
.x3-social-composer textarea,
.x3-social-composer input,
.x3-social-composer select,
.x3-social-comment-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--x3sf-border);
  border-radius: 7px;
  background: #fff;
  color: var(--x3sf-ink);
  padding: 9px 11px;
  font: inherit;
}

.x3-social-composer {
  display: grid;
  gap: 12px;
  border: 1px solid var(--x3sf-border);
  border-radius: 8px;
  background: var(--x3sf-panel);
  padding: 14px;
}

.x3-social-composer-v2 {
  max-width: min(100%, 720px);
  margin-inline: auto;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 9px rgba(0, 0, 0, .14);
}

.x3-social-composer-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.x3-social-composer-head img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}

.x3-social-composer textarea {
  min-height: 86px;
  resize: vertical;
}

.x3-social-composer-panel {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 15px;
  background: #fff;
  padding: 10px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}

.x3-social-composer-panel textarea {
  min-height: 128px;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.x3-social-tool {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--x3sf-border);
  border-radius: 7px;
  padding: 0 12px;
  cursor: pointer;
}

.x3-social-composer-tools {
  position: relative;
  justify-content: center;
  border-top: 1px solid rgba(17, 24, 39, .08);
  padding-top: 10px;
}

.x3-social-composer-pill {
  gap: 5px;
  min-height: 24px;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid var(--x3sf-composer-pill-border, rgba(100, 116, 139, .2)) !important;
  background: var(--x3sf-composer-pill-bg, rgba(255, 255, 255, .72)) !important;
  color: var(--x3sf-composer-pill-text, var(--x3sf-muted)) !important;
  padding: 0 8px !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.x3-social-composer .x3-social-composer-tools .x3-social-composer-pill {
  min-height: 24px !important;
  border-radius: 999px !important;
  background: var(--x3sf-composer-pill-bg, rgba(255, 255, 255, .72)) !important;
  border-color: var(--x3sf-composer-pill-border, rgba(100, 116, 139, .2)) !important;
  color: var(--x3sf-composer-pill-text, var(--x3sf-muted)) !important;
}

.x3-social-composer-pill span {
  order: 2;
}

.x3-social-composer-pill i {
  position: relative;
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font-size: 0;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.x3-social-composer-pill i::before,
.x3-social-composer-pill i::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.x3-social-composer-pill[data-x3-composer-bubble="media"] i::before {
  width: 13px;
  height: 10px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
}

.x3-social-composer-pill[data-x3-composer-bubble="media"] i::after {
  left: 4px;
  bottom: 4px;
  width: 8px;
  height: 5px;
  border-left: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: skew(-18deg);
}

.x3-social-composer-pill[data-x3-composer-bubble="vehicle"] i::before {
  top: 5px;
  width: 14px;
  height: 7px;
  border: 1.7px solid currentColor;
  border-radius: 6px 6px 3px 3px;
}

.x3-social-composer-pill[data-x3-composer-bubble="vehicle"] i::after {
  left: 3px;
  bottom: 3px;
  width: 3.5px;
  height: 3.5px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 8px 0 0 currentColor;
}

.x3-social-composer-pill[data-x3-composer-bubble="link"] i::before,
.x3-social-composer-pill[data-x3-composer-bubble="link"] i::after {
  width: 9px;
  height: 6px;
  border: 1.7px solid currentColor;
  border-radius: 999px;
  transform: rotate(-28deg);
}

.x3-social-composer-pill[data-x3-composer-bubble="link"] i::before {
  left: 2px;
  top: 5px;
}

.x3-social-composer-pill[data-x3-composer-bubble="link"] i::after {
  right: 2px;
  bottom: 5px;
}

.x3-social-composer-pill:hover,
.x3-social-composer-pill:focus-visible,
.x3-social-composer-pill.is-open {
  border-color: var(--x3sf-composer-pill-hover-border, rgba(100, 116, 139, .28)) !important;
  background: var(--x3sf-composer-pill-hover-bg, #fff) !important;
  color: var(--x3sf-composer-pill-hover-text, #475569) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 9px rgba(15, 23, 42, .08);
}

.x3-social-composer-pill.is-filled {
  border-color: var(--x3sf-composer-pill-active-border, rgba(220, 38, 38, .22)) !important;
  background: var(--x3sf-composer-pill-active-bg, #fff) !important;
  color: var(--x3sf-composer-pill-active-text, #b91c1c) !important;
}

.x3-social-composer-submit {
  margin-left: auto;
  border-radius: 999px;
  font-weight: 900;
}

.x3-social-composer-bubble {
  position: absolute;
  left: 50%;
  bottom: 56px;
  z-index: 12;
  width: min(360px, calc(100vw - 44px));
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .2);
  transform: translateX(-50%);
  animation: x3-social-chat-balloon-in .16s ease both;
}

.x3-social-composer-bubble::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(15, 23, 42, .1);
  border-bottom: 1px solid rgba(15, 23, 42, .1);
  background: rgba(255, 255, 255, .98);
  transform: translateX(-50%) rotate(45deg);
}

.x3-social-composer-bubble input[type="url"],
.x3-social-composer-bubble input[type="search"] {
  min-height: 40px;
  border-radius: 11px;
}

.x3-social-composer-bubble p {
  margin: 8px 0 0;
  color: var(--x3sf-muted);
  font-size: 12px;
}

.x3-social-composer-add-media {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
}

.x3-social-composer-media-preview {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.x3-social-media-preview-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-width: min(100%, 260px);
  max-width: 100%;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 13px;
  background: #f8fafc;
  padding: 7px;
  cursor: grab;
}

.x3-social-media-preview-item.is-dragging {
  opacity: .58;
}

.x3-social-media-preview-item img,
.x3-social-media-preview-item > span:first-child {
  width: 74px;
  height: 54px;
  border-radius: 9px;
  object-fit: cover;
  background: #e5e7eb;
}

.x3-social-media-preview-item > span {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x3-social-media-preview-eye,
.x3-social-media-preview-remove {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0;
  font-size: 0;
}

.x3-social-media-preview-eye::before {
  content: "";
  width: 15px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px / 75%;
}

.x3-social-media-preview-eye::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.x3-social-media-preview-remove::before {
  content: "x";
  font-size: 14px;
  font-weight: 900;
}

.x3-social-vehicle-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  margin-top: 9px;
  overflow: auto;
}

.x3-social-vehicle-clear {
  justify-self: start;
  min-height: 30px;
  margin-top: 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--x3sf-muted);
}

.x3-social-vehicle-choice {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 12px;
  background: #fff;
  color: var(--x3sf-ink);
  padding: 7px;
  text-align: left;
}

.x3-social-vehicle-choice:hover,
.x3-social-vehicle-choice.is-selected {
  border-color: rgba(220, 38, 38, .28);
  box-shadow: 0 0 9px rgba(0, 0, 0, .1);
}

.x3-social-vehicle-choice img,
.x3-social-vehicle-choice-empty {
  width: 56px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
  background: #eef2f7;
}

.x3-social-vehicle-choice span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.x3-social-vehicle-choice strong,
.x3-social-vehicle-choice small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x3-social-vehicle-choice small {
  color: var(--x3sf-muted);
}

.x3-social-composer-feedback {
  min-height: 18px;
  color: var(--x3sf-muted);
  font-size: 13px;
}

.x3-social-list {
  display: grid;
  gap: var(--x3sf-gap);
}

.x3-social-post {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid var(--x3sf-border);
  border-radius: 8px;
  background: var(--x3sf-panel);
  padding: 16px;
  padding-right: 48px;
}

.x3-social-author {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.x3-social-author img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--x3sf-soft);
}

.x3-social-sample-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.x3-social-sample-avatar--member {
  background: var(--x3sf-accent);
}

.x3-social-sample-avatar--comment {
  width: 32px;
  height: 32px;
  background: #475569;
  font-size: 11px;
}

.x3-social-author-name {
  color: var(--x3sf-ink);
  font-weight: 800;
  text-decoration: none;
}

.x3-social-meta {
  color: var(--x3sf-muted);
  font-size: 12px;
}

.x3-social-content {
  color: var(--x3sf-ink);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.x3-social-hashtag {
  color: var(--x3sf-accent);
  font-weight: 700;
  text-decoration: none;
}

.x3-social-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.x3-social-media-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.x3-social-media-item {
  min-height: 0;
  height: 240px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--x3sf-soft);
}

.x3-social-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.x3-social-sample-photo {
  position: relative;
  display: inline-flex;
  align-items: end;
  justify-content: start;
  box-sizing: border-box;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  isolation: isolate;
}

.x3-social-sample-photo::before,
.x3-social-sample-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.x3-social-sample-photo::before {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .06) 0 25%, transparent 25% 50%, rgba(255, 255, 255, .08) 50% 75%, transparent 75%),
    var(--x3-sample-photo-bg, #334155);
  background-size: 42px 42px, auto;
}

.x3-social-sample-photo::after {
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, .82));
}

.x3-social-sample-photo span,
.x3-social-sample-photo.x3-social-vehicle-empty {
  position: relative;
  padding: 12px;
}

.x3-social-sample-photo.x3-social-vehicle-empty {
  align-items: center;
  justify-content: center;
  padding: 0;
}

.x3-social-sample-photo--garage {
  --x3-sample-photo-bg: linear-gradient(135deg, #991b1b, #334155 56%, #020617);
}

.x3-social-sample-photo--detail {
  --x3-sample-photo-bg: linear-gradient(135deg, #0f766e, #1e293b 60%, #111827);
}

.x3-social-sample-photo--car {
  --x3-sample-photo-bg: linear-gradient(135deg, #dc2626, #475569 58%, #111827);
}

.x3-social-sample-photo--link {
  --x3-sample-photo-bg: linear-gradient(135deg, #2563eb, #0f172a);
}

.x3-social-vehicle,
.x3-social-link-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--x3sf-border);
  border-radius: 8px;
  background: var(--x3sf-soft);
  color: var(--x3sf-ink);
  padding: 10px;
  text-decoration: none;
}

.x3-social-vehicle img,
.x3-social-vehicle-empty {
  width: 96px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #e5e7eb;
}

.x3-social-vehicle-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--x3sf-muted);
  font-size: 12px;
}

.x3-social-vehicle-empty.x3-social-sample-photo {
  color: #fff;
}

.x3-social-vehicle span,
.x3-social-link-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.x3-social-vehicle small,
.x3-social-link-card small {
  color: var(--x3sf-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x3-social-vehicle .x3-social-build-rep {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 5px;
  align-items: center;
  max-width: 260px;
  margin-top: 5px;
  color: var(--x3sf-ink);
  font-size: 11px;
  font-weight: 800;
}

.x3-social-vehicle .x3-social-build-rep > span {
  color: var(--x3sf-muted);
  text-transform: uppercase;
  letter-spacing: 0;
}

.x3-social-vehicle .x3-social-build-rep > strong {
  font-size: 14px;
  line-height: 1;
}

.x3-social-vehicle .x3-social-build-rep > em {
  color: var(--x3sf-muted);
  font-style: normal;
}

.x3-social-vehicle .x3-social-build-rep > i {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--x3sf-border), #fff 40%);
  overflow: hidden;
}

.x3-social-vehicle .x3-social-build-rep > i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--x3-social-build-rep-fill, 0%);
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15, #ef4444);
}

.x3-social-vehicle .x3-social-build-rep.is-overglow > strong,
.x3-social-vehicle .x3-social-build-rep.is-overglow > em {
  color: #f97316;
}

.x3-social-vehicle .x3-social-build-rep.is-overglow > i::before {
  background: linear-gradient(90deg, #facc15, #ef4444 78%, #f97316);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.75);
}

.x3-social-vehicle--private {
  display: block;
  color: var(--x3sf-muted);
}

.x3-social-repost {
  border-left: 3px solid var(--x3sf-border);
  padding-left: 12px;
}

.x3-social-repost > span {
  display: block;
  margin-bottom: 8px;
  color: var(--x3sf-muted);
  font-size: 12px;
  font-weight: 800;
}

.x3-social-repost .x3-social-post {
  box-shadow: none;
}

.x3-social-actions {
  border-top: 1px solid var(--x3sf-border);
  padding-top: 10px;
}

.x3-social-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--x3sf-muted);
}

.x3-social-action.is-active {
  color: var(--x3sf-accent);
  border-color: color-mix(in srgb, var(--x3sf-accent), #fff 55%);
}

.x3-social-icon-action {
  min-width: 40px;
  justify-content: center;
  gap: 7px;
}

.x3-social-icon-action span,
.x3-social-post-corner-action span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.x3-social-icon-action::before,
.x3-social-post-corner-action::before,
.x3-social-post-corner-action::after {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.x3-social-comment-toggle::before {
  width: 16px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 rgba(100, 116, 139, .08);
}

.x3-social-comment-toggle::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: -13px;
  margin-right: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(7px) skew(-20deg);
}

.x3-social-repost-btn::before {
  width: 17px;
  height: 17px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(45deg);
}

.x3-social-repost-btn::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: -15px;
  margin-right: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.x3-social-bookmark::before {
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 2px 2px;
}

.x3-social-bookmark::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: -17px;
  margin-right: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(8px) rotate(-45deg);
}

.x3-social-post-corner-action {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(100, 116, 139, .72);
  padding: 0;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}

.x3-social-post-corner-action::before {
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
}

.x3-social-post-corner-action::after {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.x3-social-post-corner-action:hover,
.x3-social-post-corner-action:focus-visible {
  color: var(--x3sf-accent);
  transform: translateY(-1px);
}

.x3-social-post > .x3-social-post-report-popover {
  top: 42px;
  right: 12px;
}

.x3-social-post > .x3-social-post-report-popover::before {
  right: 10px;
}

.x3-social-comments {
  display: grid;
  gap: 10px;
}

.x3-social .x3-social-comments[hidden],
.x3-social .x3-social-comments-more[hidden] { display: none !important; }

.x3-social .x3-social-svg-action {
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--x3sf-muted);
}
.x3-social .x3-social-svg-action::before,
.x3-social .x3-social-svg-action::after { display: none; }
.x3-social-post-icon { display: block; width: 19px; height: 19px; flex: 0 0 auto; }
.x3-social-svg-action strong { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.x3-social .x3-social-svg-action:hover,
.x3-social .x3-social-svg-action[aria-expanded="true"] { background: rgba(100, 116, 139, .08); color: var(--x3sf-ink); }
.x3-social .x3-social-svg-action.is-active { color: var(--x3sf-accent); }
.x3-social-svg-action.is-active .x3-social-post-icon { fill: color-mix(in srgb, currentColor 12%, transparent); }
.x3-social .x3-social-svg-action:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.x3-social-mention { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.x3-social-caption { display: grid; gap: 5px; min-width: 0; }
.x3-social-author-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.x3-social-vehicle-mention { color: var(--x3sf-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.x3-social-vehicle-mention a { color: var(--x3sf-ink); font-family: "Libre Bodoni", Georgia, serif; font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(100, 116, 139, .35); text-underline-offset: 3px; }
.x3-social-vehicle-mention a:hover { text-decoration-color: currentColor; }
.x3-social-vehicle-mention a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.x3-social-comments-more { justify-self: start; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--x3sf-soft); color: var(--x3sf-ink); cursor: pointer; }
.x3-social-comments-status { font-size: 12px; color: var(--x3sf-muted); }
.x3-social-comments-status:empty { display: none; }
.x3-social-vehicle .x3-social-vehicle-label { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }

/* Optional homepage presentation: one page scroll for both post columns. */
.x3-social-feed--editorial { --x3sf-gap: 24px; --x3sf-accent: #354756; }
.x3-social-feed--editorial > .x3-social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  overflow: visible;
  max-height: none;
}
@media (min-width: 768px) {
  .x3-social-feed--editorial > .x3-social-list[data-masonry-ready] {
    grid-auto-rows: 1px;
    grid-auto-flow: row dense;
    row-gap: 0;
  }
  .x3-social-feed--editorial > .x3-social-list[data-masonry-ready] > .x3-social-post {
    grid-row-end: span var(--x3-social-row-span, 1);
  }
}
.x3-social-feed--editorial .x3-social-post {
  min-width: 0;
  gap: 18px;
  padding: 24px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(24, 35, 50, .065);
}
.x3-social-feed--editorial .x3-social-author-name,
.x3-social-feed--editorial .x3-social-vehicle-copy > strong,
.x3-social-feed--editorial .x3-social-vehicle > span > strong { font-family: "Libre Bodoni", Georgia, serif; font-weight: 500; font-size: 19px; }
.x3-social-feed--editorial .x3-social-author { align-items: center; }
.x3-social-feed--editorial .x3-social-author > :last-child { display: grid; gap: 1px; align-content: center; }
.x3-social-feed--editorial .x3-social-author-name { display: block; line-height: 1.1; }
.x3-social-feed--editorial .x3-social-meta { display: block; margin-top: 0; font-size: 11px; line-height: 1.2; }
.x3-social-feed--editorial .x3-social-content { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.x3-social-feed--editorial .x3-social-mention { background: rgba(226, 232, 240, .6); padding: 2px 5px; border-radius: 5px; text-decoration: none; }
.x3-social-feed--editorial .x3-social-media-grid { gap: 8px; }
.x3-social-feed--editorial .x3-social-media-item { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 14px; }
.x3-social-feed--editorial .x3-social-media-count-1 .x3-social-media-item { aspect-ratio: 16 / 9; }
.x3-social-feed--editorial .x3-social-vehicle,
.x3-social-feed--editorial .x3-social-link-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: rgba(243, 245, 247, .7);
  color: var(--x3sf-ink);
  text-decoration: none;
}
.x3-social-feed--editorial .x3-social-vehicle img,
.x3-social-feed--editorial .x3-social-vehicle-empty { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; }
.x3-social-feed--editorial .x3-social-vehicle span { min-width: 0; }
.x3-social-feed--editorial .x3-social-vehicle small,
.x3-social-feed--editorial .x3-social-link-card small { overflow-wrap: anywhere; font-size: 11px; line-height: 1.5; }
.x3-social-feed--editorial .x3-social-vehicle .x3-social-build-rep { display: none !important; }
.x3-social-feed--editorial .x3-social-actions { gap: 3px; border: 0; padding: 0; margin: 0 -6px -6px; }
.x3-social-feed--editorial .x3-social-bookmark { margin-left: auto; }
.x3-social-feed--editorial .x3-social-report-btn { opacity: .6; }
.x3-social-feed--editorial .x3-social-comments { padding-top: 4px; }
.x3-social-feed--editorial .x3-social-comment { background: rgba(243, 245, 247, .7); border: 0; border-radius: 14px; padding: 12px; }
.x3-social-feed--editorial .x3-social-comment-form input,
.x3-social-feed--editorial .x3-social-comment-form button { border: 0; border-radius: 12px; min-height: 42px; }
.x3-social-feed--editorial .x3-social-comment-form input { min-width: 0; background: rgba(243, 245, 247, .85); }
.x3-social-feed--editorial .x3-social-tabs { gap: 4px; padding: 5px; justify-self: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: 0 5px 22px rgba(24, 35, 50, .045); }
.x3-social-feed--editorial .x3-social-tab { border: 0; border-radius: 999px; background: transparent; color: var(--x3sf-muted); padding: 0 16px; }
.x3-social-feed--editorial .x3-social-tab.is-active { background: rgba(226, 232, 240, .6); color: var(--x3sf-ink); }
.x3-social-feed--editorial .x3-social-load-more { justify-self: center; border: 0; border-radius: 999px; padding: 0 24px; background: rgba(255, 255, 255, .8); color: var(--x3sf-ink); box-shadow: 0 5px 22px rgba(24, 35, 50, .05); }
.x3-social-feed--editorial .x3-social-sample-avatar--member { background: #e4e9ed; color: #354756; }
.x3-social-feed--editorial .x3-social-sample-photo { background: #e8edf0; color: #64748b; }
.x3-social-feed--editorial .x3-social-sample-photo::before,
.x3-social-feed--editorial .x3-social-sample-photo::after { display: none; }
.x3-social-feed--editorial .x3-social-sample-photo span { text-shadow: none; }
@media (max-width: 767px) {
  .x3-social-feed--editorial > .x3-social-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .x3-social-feed--editorial .x3-social-post { padding: 14px; border-radius: 18px; gap: 12px; }
  .x3-social-feed--editorial .x3-social-author { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
  .x3-social-feed--editorial .x3-social-author img,
  .x3-social-feed--editorial .x3-social-author .x3-social-sample-avatar { width: 34px; height: 34px; font-size: 11px; }
  .x3-social-feed--editorial .x3-social-author-name { font-size: 16px; }
  .x3-social-feed--editorial .x3-social-author-line .x3-social-vehicle-mention { font-size: 11px; }
  .x3-social-feed--editorial .x3-social-author-line .x3-social-vehicle-mention a { font-size: 13px; }
  .x3-social-feed--editorial .x3-social-meta { font-size: 10.5px; }
  .x3-social-feed--editorial .x3-social-content { font-size: 14px; line-height: 1.5; }
  .x3-social-feed--editorial .x3-social-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .x3-social-feed--editorial .x3-social-media-count-1 { grid-template-columns: minmax(0, 1fr); }
  .x3-social-feed--editorial .x3-social-media-item { border-radius: 10px; }
  .x3-social-feed--editorial .x3-social-vehicle,
  .x3-social-feed--editorial .x3-social-link-card { grid-template-columns: 66px minmax(0, 1fr); padding: 8px; gap: 10px; border-radius: 12px; }
  .x3-social-feed--editorial .x3-social-vehicle img,
  .x3-social-feed--editorial .x3-social-vehicle-empty { width: 66px; height: 50px; border-radius: 8px; }
  .x3-social-feed--editorial .x3-social-vehicle-copy > strong,
  .x3-social-feed--editorial .x3-social-vehicle > span > strong { font-size: 15px; line-height: 1.25; }
  .x3-social-feed--editorial .x3-social-link-card strong { font-size: 13px; line-height: 1.35; }
  .x3-social-feed--editorial .x3-social-vehicle small,
  .x3-social-feed--editorial .x3-social-link-card small { font-size: 10.5px; line-height: 1.35; }
  .x3-social-feed--editorial .x3-social-tabs { max-width: 100%; flex-wrap: wrap; padding: 4px; }
  .x3-social-feed--editorial .x3-social-tab { padding: 0 10px; font-size: 12px; }
  .x3-social-feed--editorial .x3-social-actions { gap: 0; }
  .x3-social-feed--editorial .x3-social-svg-action { min-width: 40px; padding-inline: 7px; }
  .x3-social-feed--editorial .x3-social-post-icon { width: 17px; height: 17px; }
  .x3-social-feed--editorial .x3-social-svg-action strong { font-size: 11px; }
  .x3-social-feed--editorial .x3-social-comment { grid-template-columns: 26px minmax(0, 1fr); padding: 10px; border-radius: 10px; }
  .x3-social-feed--editorial .x3-social-comment img,
  .x3-social-feed--editorial .x3-social-comment .x3-social-sample-avatar { width: 26px; height: 26px; font-size: 10px; }
  .x3-social-feed--editorial .x3-social-comment strong { font-size: 12px; }
  .x3-social-feed--editorial .x3-social-comment p { font-size: 12px; line-height: 1.45; }
  .x3-social-feed--editorial .x3-social-comment-form { grid-template-columns: minmax(0, 1fr) auto; }
  .x3-social-feed--editorial .x3-social-comment-form input { font-size: 16px; }
  .x3-social-feed--editorial .x3-social-comment-form button { font-size: 13px; }
}

.x3-social-comments-list {
  display: grid;
  gap: 8px;
}

.x3-social-comment {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  border-radius: 7px;
  background: var(--x3sf-soft);
  padding: 8px;
}

.x3-social-comment img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.x3-social-comment .x3-social-sample-avatar {
  grid-row: span 2;
}

.x3-social-comment strong {
  font-size: 13px;
}

.x3-social-comment p {
  margin: 2px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
}

.x3-social-comment-delete {
  margin-top: 4px;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--x3sf-muted);
  padding: 0;
  font-size: 12px;
}

.x3-social-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.x3-social-comment-form button {
  border: 1px solid var(--x3sf-ink);
  border-radius: 7px;
  background: var(--x3sf-ink);
  color: #fff;
  padding: 0 12px;
}

.x3-social-empty,
.x3-social-login,
.x3-social-empty-inline {
  color: var(--x3sf-muted);
}

.x3-social-load-more {
  justify-self: center;
}

.x3-social-trending-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.x3-social-trending-title {
  margin: 0 0 8px;
  color: var(--x3sf-ink);
  font-size: 15px;
  line-height: 1.2;
}

.x3-social-hashtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--x3sf-border);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--x3sf-ink);
  text-decoration: none;
  font-weight: 800;
}

.x3-social-hashtag-pill span {
  color: var(--x3sf-muted);
  font-size: 12px;
}

.x3-social-chat {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  border: 1px solid var(--x3sf-border);
  border-radius: 8px;
  background: var(--x3sf-panel);
  padding: 14px;
}

.x3-social-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--x3sf-border);
  padding-bottom: 10px;
}

.x3-social-chat-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.x3-social-chat-mobile-toggle,
.x3-social-chat-mobile-close {
  display: none;
}

@media (max-width: 767px) {
  .elementor-widget-x3_social_chat,
  .elementor-widget-x3_social_chat > .elementor-widget-container,
  .x3-social-chat-lazy-bypass {
    content-visibility: visible !important;
    contain-intrinsic-size: auto !important;
  }

  .x3-social-chat[data-mobile-floating="1"] {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 99990;
    display: block;
    width: 50px;
    height: 50px;
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .x3-social-chat[data-mobile-floating="1"] > .x3-social-chat-head,
  .x3-social-chat[data-mobile-floating="1"] > .x3-social-chat-messages,
  .x3-social-chat[data-mobile-floating="1"] > .x3-social-chat-empty,
  .x3-social-chat[data-mobile-floating="1"] > .x3-social-chat-form,
  .x3-social-chat[data-mobile-floating="1"] > .x3-social-chat-feedback,
  .x3-social-chat[data-mobile-floating="1"] > .x3-tutorial-payload {
    display: none;
  }

  .x3-social-chat[data-mobile-floating="1"] .x3-social-chat-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0 !important;
    outline: 0;
    border-radius: 50%;
    background: #101827;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .24);
    font: 25px/1 Georgia, serif;
    cursor: pointer;
  }

  .x3-social-chat[data-mobile-floating="1"].is-mobile-open,
  .x3-social-chat[data-mobile-floating="1"].is-mobile-closing {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    width: min(420px, calc(100vw - 24px));
    height: min(650px, calc(100dvh - 32px));
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 1px solid var(--x3sf-border);
    border-radius: 8px;
    background: var(--x3sf-panel);
    padding: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .25);
    transform-origin: right bottom;
  }

  .x3-social-chat[data-mobile-floating="1"].is-mobile-open {
    animation: x3-social-chat-mobile-open .22s ease-out both;
  }

  .x3-social-chat[data-mobile-floating="1"].is-mobile-closing {
    pointer-events: none;
    animation: x3-social-chat-mobile-close .18s ease-in both;
  }

  .x3-social-chat[data-mobile-floating="1"].is-mobile-open > .x3-social-chat-head,
  .x3-social-chat[data-mobile-floating="1"].is-mobile-closing > .x3-social-chat-head {
    display: flex;
    flex-wrap: nowrap;
  }

  .x3-social-chat[data-mobile-floating="1"].is-mobile-open > .x3-social-chat-messages,
  .x3-social-chat[data-mobile-floating="1"].is-mobile-closing > .x3-social-chat-messages {
    display: grid;
    max-height: none;
    min-height: 0;
    align-content: end;
  }

  .x3-social-chat[data-mobile-floating="1"].is-mobile-open > .x3-social-chat-empty,
  .x3-social-chat[data-mobile-floating="1"].is-mobile-open > .x3-social-chat-form,
  .x3-social-chat[data-mobile-floating="1"].is-mobile-open > .x3-social-chat-feedback,
  .x3-social-chat[data-mobile-floating="1"].is-mobile-closing > .x3-social-chat-empty,
  .x3-social-chat[data-mobile-floating="1"].is-mobile-closing > .x3-social-chat-form,
  .x3-social-chat[data-mobile-floating="1"].is-mobile-closing > .x3-social-chat-feedback {
    display: block;
  }

  .x3-social-chat[data-mobile-floating="1"].is-mobile-open > [hidden],
  .x3-social-chat[data-mobile-floating="1"].is-mobile-closing > [hidden] {
    display: none !important;
  }

  .x3-social-chat[data-mobile-floating="1"].is-mobile-open .x3-social-chat-mobile-toggle,
  .x3-social-chat[data-mobile-floating="1"].is-mobile-closing .x3-social-chat-mobile-toggle {
    display: none;
  }

  .x3-social-chat[data-mobile-floating="1"] .x3-social-chat-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--x3sf-ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
}

@keyframes x3-social-chat-mobile-open {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes x3-social-chat-mobile-close {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(.97); }
}

.x3-social-chat-gate {
  display: grid;
  gap: 8px;
  border: 1px solid var(--x3sf-border);
  border-radius: 8px;
  background: var(--x3sf-soft);
  padding: 12px;
}

.x3-social-chat-gate label {
  font-weight: 800;
}

.x3-social-chat-gate div,
.x3-social-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.x3-social-chat-form {
  display: block;
  position: relative;
  width: 100%;
}

.x3-social-chat-composer {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.x3-social-chat-emoji-suggestions {
  position: absolute;
  z-index: 12;
  left: 0;
  bottom: calc(100% + 8px);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: max-content;
  max-width: min(100%, 360px);
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 9px 22px rgba(15, 23, 42, .18);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.x3-social-chat-emoji-suggestions.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.x3-social-chat-emoji-choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px !important;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--x3sf-ink) !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.x3-social-chat-emoji-choice:hover,
.x3-social-chat-emoji-choice.is-active {
  background: #f1f5f9 !important;
  color: var(--x3sf-ink) !important;
  transform: none !important;
}

.x3-social-chat-login-composer {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--x3sf-border);
  border-radius: 999px;
  padding: 8px 16px;
  background: #f8fafc;
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, .12);
  color: var(--x3sf-muted);
  text-decoration: none;
  font: inherit;
}

.x3-social-chat-login-composer:hover {
  color: var(--x3sf-ink);
  text-decoration: none;
}

.x3-social-chat-gate input,
.x3-social-chat-form input {
  width: 100%;
  min-height: 42px;
  height: 42px;
  border: 1px solid var(--x3sf-border);
  border-radius: 7px;
  padding: 8px 52px 8px 14px;
  background: #f8fafc;
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, .12);
  font: inherit;
}

.x3-social-chat-gate button,
.x3-social-chat-form button {
  min-height: 38px;
  border: 1px solid var(--x3sf-ink);
  border-radius: 7px;
  background: var(--x3sf-ink);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
}

.x3-social-chat-form .x3-social-chat-send,
.x3-social-chat-form > button[type="submit"],
.x3-social-chat-form > button[type="button"] {
  position: absolute;
  right: 6px;
  top: 50%;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 999px;
  padding: 0;
  box-shadow: 0 0 9px rgba(0, 0, 0, .22);
  transform: translateY(-50%);
  font-size: 0;
  line-height: 1;
}

.x3-social-chat-form .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.x3-social-chat-form .x3-social-chat-send::before,
.x3-social-chat-form > button[type="submit"]::before,
.x3-social-chat-form > button[type="button"]::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(8% 45%, 92% 8%, 55% 92%, 44% 57%);
}

.x3-social-chat-form .x3-social-chat-send:hover,
.x3-social-chat-form > button[type="submit"]:hover,
.x3-social-chat-form > button[type="button"]:hover {
  transform: translateY(-50%) scale(1.04);
}

.x3-social-chat-gate p,
.x3-social-chat-login,
.x3-social-chat-empty,
.x3-social-chat-feedback {
  margin: 0;
  color: var(--x3sf-muted);
  font-size: 13px;
}

.x3-social-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scroll-behavior: smooth;
}

.x3-social-chat-message {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.x3-social-chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--x3-chat-user-color, #64748b);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.x3-social-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.x3-social-chat-bubble {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--x3sf-border);
  border-radius: 8px;
  background: var(--x3sf-soft);
  padding: 8px 34px 8px 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.x3-social-chat-report {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(100, 116, 139, .72);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}

.x3-social-chat-report[data-tooltip]::before,
.x3-social-chat-report[data-tooltip]::after {
  position: absolute;
  right: 50%;
  z-index: 14;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, -4px);
  transition: opacity .16s ease, transform .16s ease;
}

.x3-social-chat-report[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: 160px;
  padding: 7px 9px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: rgba(17, 24, 39, .94);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .18);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.x3-social-chat-report[data-tooltip]::after {
  content: "";
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  background: rgba(17, 24, 39, .94);
  transform: translate(50%, -4px) rotate(45deg);
}

.x3-social-chat-report[data-tooltip]:hover::before,
.x3-social-chat-report[data-tooltip]:hover::after,
.x3-social-chat-report[data-tooltip]:focus-visible::before,
.x3-social-chat-report[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(50%, 0);
}

.x3-social-chat-report[data-tooltip]:hover::after,
.x3-social-chat-report[data-tooltip]:focus-visible::after {
  transform: translate(50%, 0) rotate(45deg);
}

.x3-social-chat-report:hover,
.x3-social-chat-report:focus-visible {
  background: transparent;
  color: var(--x3sf-accent);
  transform: translateY(-1px);
}

.x3-social-chat-report.is-loading,
.x3-social-chat-report.is-reported {
  opacity: .58;
}

.x3-social-chat-report-popover {
  position: absolute;
  top: 32px;
  right: 6px;
  z-index: 13;
  width: min(260px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .2);
  animation: x3-social-chat-balloon-in .16s ease both;
}

.x3-social-chat-report-popover.is-floating {
  right: auto;
  max-width: calc(100vw - 48px);
}

.x3-social-chat-report-popover::before {
  content: "";
  position: absolute;
  top: -5px;
  right: var(--x3-social-chat-report-arrow-right, 11px);
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(15, 23, 42, .1);
  border-top: 1px solid rgba(15, 23, 42, .1);
  background: rgba(255, 255, 255, .96);
  transform: rotate(45deg);
}

.x3-social-action-popover-host {
  position: relative;
}

.x3-social-action-popover,
.x3-social-post-report-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 15;
  width: min(260px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .2);
  animation: x3-social-chat-balloon-in .16s ease both;
}

.x3-social-action-popover::before,
.x3-social-post-report-popover::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(15, 23, 42, .1);
  border-top: 1px solid rgba(15, 23, 42, .1);
  background: rgba(255, 255, 255, .96);
  transform: rotate(45deg);
}

.x3-social-action-popover-text {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.x3-social-action-popover-actions,
.x3-social-post-report-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.x3-social-action-popover-actions button,
.x3-social-post-report-actions button {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.x3-social-action-popover-actions .x3-social-action-confirm,
.x3-social-post-report-actions button[type="submit"] {
  border-color: var(--x3sf-ink);
  background: var(--x3sf-ink);
  color: #fff;
}

.x3-social-post-report-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.x3-social-post-report-form label {
  display: grid;
  gap: 7px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.x3-social-post-report-form textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(100, 116, 139, .24);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
}

.x3-social-post-report-feedback {
  min-height: 1em;
  color: var(--x3sf-accent);
  font-size: 11px;
  font-weight: 800;
}

.x3-social-chat-report-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.x3-social-chat-report-form label {
  display: grid;
  gap: 7px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.x3-social-chat-report-form textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(100, 116, 139, .24);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
}

.x3-social-chat-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.x3-social-chat-report-actions button {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.x3-social-chat-report-actions button[type="submit"] {
  border-color: var(--x3sf-ink);
  background: var(--x3sf-ink);
  color: #fff;
}

.x3-social-chat-report-feedback {
  min-height: 1em;
  color: var(--x3sf-accent);
  font-size: 11px;
  font-weight: 800;
}

@keyframes x3-social-chat-balloon-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.x3-social-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.x3-social-chat-name {
  min-width: 0;
  max-width: 100%;
  color: var(--x3-chat-user-color, var(--x3sf-ink));
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.x3-social-chat-badge {
  border-radius: 999px;
  background: rgba(17, 24, 39, .08);
  color: var(--x3sf-muted);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
}

.x3-social-chat-message--member .x3-social-chat-badge {
  background: rgba(220, 38, 38, .11);
  color: #b91c1c;
}

.x3-social-chat-message--admin .x3-social-chat-badge {
  background: #fef3c7;
  color: #92400e;
}

.x3-social-chat-time {
  color: var(--x3sf-muted);
  font-size: 11px;
}

.x3-social-chat-bubble p {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.x3-social-chat-reactions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
}

.x3-social-chat-reaction-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  min-width: 26px;
  min-height: 24px;
  border: 1px solid rgba(100, 116, 139, .18);
  border-radius: 999px;
  background: rgba(100, 116, 139, .08);
  color: rgba(100, 116, 139, .92);
  padding: 0;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.x3-social-chat-reaction-toggle:hover,
.x3-social-chat-reaction-toggle:focus-visible,
.x3-social-chat-reactions.is-open .x3-social-chat-reaction-toggle {
  border-color: rgba(100, 116, 139, .28);
  background: rgba(100, 116, 139, .12);
  color: #475569;
  transform: translateY(-1px);
}

.x3-social-chat-reaction-picker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 12;
  display: flex;
  gap: 5px;
  max-width: min(260px, calc(100vw - 40px));
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) scale(.98);
  transition: opacity .16s ease, transform .16s ease;
}

.x3-social-chat-reaction-picker::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(15, 23, 42, .1);
  border-bottom: 1px solid rgba(15, 23, 42, .1);
  background: rgba(255, 255, 255, .96);
  transform: rotate(45deg);
}

.x3-social-chat-reactions.is-open .x3-social-chat-reaction-picker {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.x3-social-chat-reaction-option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.x3-social-chat-reaction-option:hover,
.x3-social-chat-reaction-option:focus-visible,
.x3-social-chat-reaction-option.is-active {
  background: rgba(100, 116, 139, .1);
  transform: translateY(-1px);
}

.x3-social-chat-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  border: 1px solid rgba(100, 116, 139, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--x3sf-muted);
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.x3-social-chat-reaction:hover,
.x3-social-chat-reaction.is-active {
  border-color: rgba(220, 38, 38, .28);
  background: #fff;
  color: var(--x3sf-accent);
  transform: translateY(-1px);
}

.x3-social-chat-reaction.is-loading {
  cursor: wait;
  opacity: .58;
}

.x3-social-chat-reaction-option.is-loading {
  cursor: wait;
  opacity: .58;
}

.x3-social-chat-reaction-icon {
  font-size: 14px;
  line-height: 1;
}

.x3-social-chat-reaction-count {
  min-width: 1ch;
  font-size: 11px;
  font-weight: 800;
}

.x3-social-chat-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.x3-social-chat-actions button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--x3sf-muted);
  padding: 0;
  font-size: 11px;
  cursor: pointer;
}

.x3-social-chat-actions button:hover {
  color: var(--x3sf-accent);
}

@media (max-width: 640px) {
  .x3-social-search,
  .x3-social-comment-form {
    grid-template-columns: 1fr;
  }

  .x3-social-composer-head {
    grid-template-columns: 1fr;
  }

  .x3-social-composer-head > img,
  .x3-social-composer-head > .x3-social-sample-avatar {
    display: none;
  }

  .x3-social-composer-tools {
    justify-content: flex-start;
  }

  .x3-social-composer-submit {
    width: 100%;
    margin-left: 0;
  }

  .x3-social-post {
    padding: 12px;
  }

  .x3-social-media-grid,
  .x3-social-vehicle,
  .x3-social-link-card {
    grid-template-columns: 1fr;
  }

  .x3-social-media-item {
    height: 210px;
  }

  .x3-social-chat-gate div,
  .x3-social-chat-form {
    grid-template-columns: 1fr;
  }

  .x3-social-chat-form {
    display: block;
  }

  .x3-social-chat-messages {
    max-height: 360px;
  }
}
