:root {
  color-scheme: dark;
  --shell: #0e0f10;
  --shell-2: #121314;
  --panel: #151617;
  --panel-hover: #1c1d1f;
  --line: #292b2e;
  --line-strong: #3a3d41;
  --ink: #f2f2f2;
  --muted: #a0a2a6;
  --faint: #686b70;
  --accent: #2d7fff;
  --accent-ink: #ffffff;
  --danger: #ff6b65;
  --radius: 8px;
  --font-ui: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-social: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

:root[data-ui-theme="light"] {
  color-scheme: light;
  --shell: #eceeed;
  --shell-2: #f7f8f6;
  --panel: #ffffff;
  --panel-hover: #f0f2ef;
  --line: #d7dad7;
  --line-strong: #bfc3c0;
  --ink: #171918;
  --muted: #666c69;
  --faint: #858b88;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--shell);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
label:focus-within {
  outline: 2px solid color-mix(in srgb, var(--accent) 85%, white);
  outline-offset: 1px;
}

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

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) auto;
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  padding: 0 16px 0 18px;
  background: var(--shell);
  border-bottom: 1px solid var(--line);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-sub {
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 650;
}

.platform-tabs {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-tabs::-webkit-scrollbar {
  display: none;
}

.platform-tab {
  position: relative;
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.platform-tab::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  background: transparent;
}

.platform-tab:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 60%, transparent);
}

.platform-tab.is-active {
  color: var(--ink);
}

.platform-tab.is-active::after {
  background: var(--accent);
}

.platform-glyph {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 800;
}

.glyph-instagram,
.glyph-weibo,
.glyph-wechat {
  color: var(--muted);
}

.glyph-threads img {
  width: 13px;
  height: 15px;
  object-fit: contain;
  filter: invert(1);
}

:root[data-ui-theme="light"] .glyph-threads img {
  filter: none;
}

.platform-tab.is-active .platform-glyph {
  color: var(--ink);
  border-color: var(--accent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.export-button,
.stage-toolbar button,
.segmented button {
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 90ms ease;
}

.icon-button:active,
.export-button:active,
.stage-toolbar button:active,
.segmented button:active {
  transform: translateY(1px);
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.icon-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.export-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.export-button:hover {
  background: color-mix(in srgb, var(--accent) 90%, white);
}

.export-button[disabled] {
  cursor: wait;
  opacity: .65;
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 368px minmax(0, 1fr);
}

.editor {
  min-width: 0;
  overflow: auto;
  background: var(--shell-2);
  border-right: 1px solid var(--line);
  scrollbar-color: var(--line-strong) transparent;
}

.editor-section {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.section-heading > span {
  color: var(--faint);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
}

.section-heading > .char-count.is-over {
  color: var(--danger);
}

.identity-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.avatar-control {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  cursor: pointer;
}

.avatar-preview {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #f6f6f2;
  background: #3a4d55;
  font-size: 18px;
  font-weight: 700;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-add {
  position: absolute;
  right: -2px;
  bottom: -1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.identity-fields,
.field-grid {
  display: grid;
  gap: 9px;
}

.identity-fields {
  grid-template-columns: 1fr 1fr;
}

.field-grid.two-col {
  grid-template-columns: 1fr 1fr;
  margin-top: 9px;
}

.field-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.identity-fields label,
.field-grid label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.identity-fields label > span,
.field-grid label > span,
.control-label {
  color: var(--faint);
  font-size: 10px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--shell);
  transition: border-color 140ms ease, background-color 140ms ease;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select {
  height: 34px;
  padding: 0 9px;
  font-size: 11px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input[type="number"] {
  padding-right: 3px;
  font-family: Consolas, "SFMono-Regular", monospace;
}

textarea {
  display: block;
  min-height: 138px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.65;
  font-size: 13px;
}

textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 76%, transparent);
}

.textarea-wrap {
  display: block;
  overflow: hidden;
  margin-bottom: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--shell);
}

.textarea-wrap:focus-within {
  border-color: var(--accent);
}

.textarea-wrap textarea {
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: 0;
}

.input-risk {
  display: block;
  padding: 7px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  background: color-mix(in srgb, var(--panel-hover) 70%, transparent);
  font-size: 9px;
  line-height: 1.55;
}

.media-control {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--shell);
}

.media-control:hover {
  background: var(--panel-hover);
  border-color: var(--line-strong);
}

.media-thumb {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 5px;
  background: #d9dce1;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-copy strong {
  font-size: 11px;
}

.media-copy small {
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-action {
  padding-right: 5px;
  color: var(--accent);
  font-size: 10px;
}

.compact-toggle {
  margin-top: 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-ui {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color 140ms ease;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f5f6f3;
  transition: transform 140ms ease;
}

.toggle-row input:checked + .toggle-ui {
  background: var(--accent);
}

.toggle-row input:checked + .toggle-ui::after {
  transform: translateX(13px);
  background: var(--accent-ink);
}

.control-label {
  margin-bottom: 6px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--shell-2);
}

.segmented button {
  height: 29px;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
}

.segmented button.is-active {
  color: var(--ink);
  background: var(--panel-hover);
}

.output-toggles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 47px minmax(0, 1fr) 31px;
  background-color: var(--shell);
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
}

.stage-toolbar,
.preview-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--shell-2);
}

.stage-toolbar {
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.stage-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.stage-toolbar strong {
  font-size: 11px;
}

.stage-toolbar span,
.preview-status {
  color: var(--faint);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
}

.stage-toolbar button {
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.stage-toolbar button:hover {
  color: var(--ink);
  background: var(--panel-hover);
}

.preview-viewport {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 26px;
}

.preview-scaler {
  position: relative;
  flex: 0 0 auto;
}

.artboard {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  display: block;
  padding: 0;
  background: transparent;
  transform-origin: top left;
}

.post-mount {
  width: max-content;
  display: block;
}

.preview-status {
  padding: 0 15px;
  border-top: 1px solid var(--line);
}

.preview-status #statusText.is-over {
  color: var(--danger);
}

.legal-note {
  padding: 8px 18px 9px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  background: var(--shell-2);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 44px;
  max-width: min(400px, calc(100vw - 32px));
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .25);
  font-size: 11px;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Shared social post primitives */
.social-post {
  --social-bg: #ffffff;
  --social-ink: #0f1419;
  --social-muted: #536471;
  --social-line: #eff3f4;
  --social-blue: #1d9bf0;
  width: 690px;
  overflow: hidden;
  color: var(--social-ink);
  background: var(--social-bg);
  border-radius: 0;
  font-family: var(--font-social);
  box-shadow: none;
}

.social-post.is-dark {
  --social-bg: #000000;
  --social-ink: #e7e9ea;
  --social-muted: #71767b;
  --social-line: #2f3336;
  color: var(--social-ink);
}

.social-avatar {
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  background: #3a4d55;
  font-size: 18px;
  font-weight: 700;
}

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

.social-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-handle,
.social-meta {
  color: var(--social-muted);
}

.verified-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-left: 3px;
  border-radius: 50%;
  color: #ffffff;
  background: #1d9bf0;
  font-size: 11px;
  font-weight: 900;
}

.post-body {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post-body.is-placeholder {
  color: var(--social-muted);
}

.post-media {
  display: block;
  width: 100%;
  object-fit: cover;
}

.more-glyph {
  margin-left: auto;
  color: var(--social-muted);
  font-size: 25px;
  line-height: .7;
}

.action-icon {
  color: currentColor;
  font-family: Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
}

/* X */
.post-x {
  width: min(100%, 660px);
  padding: 23px 26px 19px;
  border: 1px solid var(--social-line);
}

.x-author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.x-author-copy {
  min-width: 0;
  display: grid;
}

.x-author-line {
  min-width: 0;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 20px;
}

.x-author-copy .social-handle {
  font-size: 15px;
  line-height: 20px;
}

.post-x .post-body {
  margin-top: 18px;
  font-size: 23px;
  line-height: 1.38;
}

.x-translation {
  margin-top: 13px;
  color: var(--social-blue);
  font-size: 15px;
}

.post-x .post-media {
  max-height: 360px;
  margin-top: 16px;
  border: 1px solid var(--social-line);
  border-radius: 14px;
  object-fit: cover;
}

.x-timestamp {
  margin-top: 19px;
  color: var(--social-muted);
  font-size: 15px;
}

.x-timestamp strong {
  color: var(--social-ink);
  font-weight: 400;
}

.x-metrics {
  display: flex;
  gap: 23px;
  margin-top: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--social-line);
  border-bottom: 1px solid var(--social-line);
  color: var(--social-muted);
  font-size: 14px;
}

.x-metrics strong {
  color: var(--social-ink);
}

.x-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding-top: 13px;
  color: var(--social-muted);
  text-align: center;
}

/* Threads */
.post-threads {
  width: min(100%, 650px);
  padding: 23px 26px 20px;
}

.threads-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.threads-avatar-wrap {
  position: relative;
}

.threads-follow {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--social-bg);
  border-radius: 50%;
  color: var(--social-bg);
  background: var(--social-ink);
  font-size: 13px;
}

.threads-content {
  min-width: 0;
}

.threads-name-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
  line-height: 20px;
}

.threads-time {
  color: var(--social-muted);
  font-size: 14px;
}

.post-threads .post-body {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.45;
}

.threads-translation {
  margin-top: 11px;
  font-size: 14px;
  font-weight: 650;
}

.post-threads .post-media {
  max-height: 365px;
  margin-top: 13px;
  border-radius: 9px;
}

.threads-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
}

.threads-actions .action-icon {
  font-size: 22px;
}

.threads-replies {
  margin-top: 15px;
  color: var(--social-muted);
  font-size: 14px;
}

/* Instagram */
.post-instagram {
  width: min(100%, 570px);
  border: 1px solid var(--social-line);
}

.instagram-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 8px 14px;
}

.instagram-top .social-avatar {
  width: 40px;
  height: 40px;
  padding: 2px;
  border: 2px solid #d94876;
  background-clip: content-box;
  font-size: 14px;
}

.instagram-user {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.instagram-location {
  color: var(--social-ink);
  font-size: 11px;
  font-weight: 400;
}

.post-instagram .post-media {
  aspect-ratio: 1 / 1;
}

.instagram-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 13px 14px 8px;
}

.instagram-actions .bookmark {
  margin-left: auto;
}

.instagram-likes {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.instagram-caption {
  padding: 8px 14px 0;
  font-size: 13px;
  line-height: 1.45;
}

.instagram-caption .social-name {
  margin-right: 5px;
}

.instagram-caption-text {
  display: inline;
  white-space: pre-wrap;
}

.instagram-more {
  color: var(--social-muted);
}

.instagram-comments,
.instagram-date {
  padding: 5px 14px 0;
  color: var(--social-muted);
  font-size: 12px;
}

.instagram-date {
  padding-bottom: 14px;
  font-size: 10px;
  text-transform: uppercase;
}

/* Weibo */
.post-weibo {
  --social-ink: #242424;
  --social-muted: #939393;
  --social-line: #e9e9e9;
  width: min(100%, 650px);
  padding: 0;
  border-radius: 5px;
}

.post-weibo.is-dark {
  --social-bg: #171717;
  --social-ink: #e5e5e5;
  --social-muted: #8d8d8d;
  --social-line: #303030;
}

.weibo-top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 19px 20px 13px;
}

.weibo-top .social-avatar {
  width: 45px;
  height: 45px;
  font-size: 16px;
}

.weibo-user {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.weibo-name-row {
  display: flex;
  align-items: center;
  color: #eb7350;
  font-size: 15px;
}

.weibo-meta {
  color: var(--social-muted);
  font-size: 11px;
}

.weibo-v {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border-radius: 50%;
  color: #ffffff;
  background: #f6b43d;
  font-size: 9px;
  font-weight: 800;
}

.post-weibo .post-body {
  padding: 0 20px 18px;
  font-size: 17px;
  line-height: 1.66;
}

.post-weibo .post-body.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.weibo-expand {
  color: #eb7350;
}

.post-weibo .post-media {
  max-height: 350px;
  object-fit: cover;
}

.weibo-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--social-line);
}

.weibo-actions span {
  padding: 13px 6px;
  color: var(--social-muted);
  font-size: 12px;
  text-align: center;
}

.weibo-actions span + span {
  border-left: 1px solid var(--social-line);
}

/* WeChat Moments */
.post-wechat {
  --social-bg: #ffffff;
  --social-ink: #191919;
  --social-muted: #8b8b8b;
  --social-line: #ededed;
  width: min(100%, 640px);
  padding: 0 24px;
  box-shadow: 0 24px 70px rgba(20, 25, 27, .18);
}

.post-wechat.is-dark {
  --social-bg: #111111;
  --social-ink: #e8e8e8;
  --social-muted: #777777;
  --social-line: #2c2c2c;
}

.wechat-nav {
  position: relative;
  display: grid;
  place-items: center;
  height: 58px;
  border-bottom: 1px solid var(--social-line);
  font-size: 17px;
  font-weight: 600;
}

.wechat-back {
  position: absolute;
  left: 1px;
  top: 50%;
  color: var(--social-ink);
  font-size: 29px;
  font-weight: 300;
  transform: translateY(-52%);
}

.wechat-post {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0 17px;
  border-bottom: 1px solid var(--social-line);
}

.post-wechat .social-avatar {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  font-size: 17px;
}

.wechat-name {
  color: #576b95;
  font-size: 15px;
  font-weight: 600;
}

.post-wechat .post-body {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.55;
}

.post-wechat .post-body.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.wechat-expand {
  display: block;
  margin-top: 4px;
  color: #576b95;
}

.post-wechat .post-media {
  width: min(100%, 330px);
  max-height: 330px;
  margin-top: 9px;
  object-fit: cover;
}

.wechat-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  color: var(--social-muted);
  font-size: 12px;
}

.wechat-menu {
  display: grid;
  place-items: center;
  width: 31px;
  height: 20px;
  border-radius: 3px;
  color: #576b95;
  background: var(--social-line);
  font-weight: 800;
  letter-spacing: 2px;
}

.wechat-likes {
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 3px;
  color: #576b95;
  background: color-mix(in srgb, var(--social-line) 82%, var(--social-bg));
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  .brand-sub,
  .platform-tab > span:last-child {
    display: none;
  }

  .platform-tab {
    padding-inline: 12px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-rows: auto auto auto;
  }

  .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: 54px 48px;
    padding: 0 12px;
  }

  .platform-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-inline: -12px;
    border-top: 1px solid var(--line);
  }

  .platform-tab {
    flex: 1 0 auto;
    justify-content: center;
  }

  .platform-tab > span:last-child {
    display: inline;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .editor {
    overflow: visible;
    border-right: 0;
  }

  .stage {
    min-height: 720px;
    border-top: 1px solid var(--line);
  }

  .preview-viewport {
    min-height: 620px;
    padding: 18px 12px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 14px;
  }

  .export-button {
    padding-inline: 10px;
  }

  .export-button span:last-child {
    display: none;
  }

  .topbar-actions {
    gap: 6px;
  }

  .platform-tab {
    min-width: 69px;
    padding-inline: 9px;
  }

  .platform-tab > span:last-child {
    font-size: 10px;
  }

  .identity-fields,
  .field-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .field-grid.four-col {
    grid-template-columns: 1fr 1fr;
  }

  .output-toggles {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Reference-matched mobile social surfaces */
.app-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  vertical-align: middle;
}

.phone-shot {
  --phone-bg: #ffffff;
  --phone-ink: #111111;
  --phone-muted: #9b9b9b;
  --phone-line: #ececec;
  position: relative;
  width: 520px;
  height: 940px;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--phone-ink);
  background: var(--phone-bg);
  border: 0;
  border-radius: 0;
  box-shadow: 0 25px 76px rgba(23, 29, 31, .22), 0 2px 12px rgba(23, 29, 31, .08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.phone-shot.is-dark {
  --phone-bg: #050505;
  --phone-ink: #f2f2f2;
  --phone-muted: #777b81;
  --phone-line: #242628;
  color: var(--phone-ink);
  background: var(--phone-bg);
}

.phone-shot .social-avatar {
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: #3b535a;
  font-size: 16px;
}

.phone-shot .social-name {
  color: var(--phone-ink);
  font-weight: 700;
}

.phone-shot .social-handle,
.phone-shot .social-meta {
  color: var(--phone-muted);
}

.phone-status {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 30px;
  color: #050505;
  background: var(--phone-bg);
  font-size: 18px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.phone-status.is-dark {
  color: #f7f7f7;
}

.phone-status strong {
  font-weight: 750;
}

.phone-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-bars {
  height: 17px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.signal-bars i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: currentColor;
}

.signal-bars i:nth-child(1) { height: 6px; }
.signal-bars i:nth-child(2) { height: 9px; }
.signal-bars i:nth-child(3) { height: 13px; }
.signal-bars i:nth-child(4) { height: 17px; }

.wifi-mark {
  position: relative;
  width: 23px;
  height: 17px;
  overflow: hidden;
}

.wifi-mark::before,
.wifi-mark::after,
.wifi-mark i {
  content: "";
  position: absolute;
  left: 50%;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.wifi-mark::before { top: 0; width: 23px; height: 12px; }
.wifi-mark::after { top: 5px; width: 14px; height: 8px; }
.wifi-mark i { top: 10px; width: 6px; height: 4px; }

.battery-mark {
  position: relative;
  width: 29px;
  height: 14px;
  border: 1.7px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 4px;
}

.battery-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 4px;
  width: 2px;
  height: 6px;
  border-radius: 0 2px 2px 0;
  background: color-mix(in srgb, currentColor 55%, transparent);
}

.battery-mark i {
  position: absolute;
  inset: 2px 8px 2px 2px;
  border-radius: 2px;
  background: currentColor;
}

.platform-action {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  white-space: nowrap;
}

.platform-action b {
  font-size: 13px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}

.translate-link {
  display: block;
  margin-top: 6px;
  color: var(--phone-muted);
  font-size: 13px;
  font-weight: 500;
}

.phone-shot .verified-badge {
  width: 15px;
  height: 15px;
  margin-left: 4px;
  font-size: 9px;
}

/* X reference */
.phone-shot.post-x {
  --social-bg: var(--phone-bg);
  --social-ink: var(--phone-ink);
  --social-muted: var(--phone-muted);
  --social-line: var(--phone-line);
  padding: 0;
  border: 0;
}

.x-app-header {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--phone-line);
}

.x-mini-avatar .social-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.x-brand {
  font-size: 39px;
  font-weight: 300;
  line-height: 1;
}

.x-header-plus {
  justify-self: end;
  color: var(--phone-muted);
  font-size: 34px;
  font-weight: 300;
}

.x-feed-tabs {
  height: 49px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  border-bottom: 1px solid var(--phone-line);
  color: var(--phone-muted);
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.x-feed-tabs span,
.x-feed-tabs strong {
  height: 49px;
  display: grid;
  place-items: center;
}

.x-feed-tabs strong {
  position: relative;
  color: var(--phone-ink);
}

.x-feed-tabs strong::after {
  content: "";
  position: absolute;
  left: 26%;
  right: 26%;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--phone-ink);
}

.x-feed-body {
  height: 705px;
  overflow: hidden;
}

.x-feed-post {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 12px 12px;
  border-bottom: 1px solid var(--phone-line);
}

.x-feed-post > .social-avatar {
  width: 48px;
  height: 48px;
  font-size: 17px;
}

.x-post-main {
  min-width: 0;
}

.x-author-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  line-height: 20px;
}

.x-author-line .social-handle {
  min-width: 0;
  overflow: hidden;
  margin-left: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-row-mark {
  margin-left: auto;
  color: var(--phone-ink);
  font-size: 28px;
  font-weight: 300;
}

.post-x .post-body {
  margin-top: 3px;
  color: var(--phone-ink);
  font-size: 17px;
  line-height: 1.43;
}

.post-x .x-translation {
  margin-top: 6px;
  color: #1d9bf0;
  font-size: 13px;
}

.post-x .post-media {
  width: 100%;
  max-height: 430px;
  aspect-ratio: 4 / 5;
  margin-top: 11px;
  border: 1px solid var(--phone-line);
  border-radius: 14px;
  object-fit: cover;
}

.x-feed-actions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-top: 12px;
  color: var(--phone-muted);
}

.x-feed-actions .platform-action {
  gap: 4px;
}

.x-feed-actions .app-icon {
  width: 21px;
  height: 21px;
}

.x-feed-actions .platform-action:nth-child(5),
.x-feed-actions .platform-action:nth-child(6) {
  justify-content: flex-end;
}

.x-next-post {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--phone-line);
}

.x-ad-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #050505;
  background: #f2f2f2;
  font-size: 25px;
  font-weight: 800;
}

.x-next-post p {
  margin: 2px 0 9px;
  font-size: 16px;
}

.x-ad-label {
  margin-left: auto;
  color: var(--phone-muted);
}

.x-ad-media {
  height: 150px;
  border-radius: 14px;
  background: #202629;
}

.x-compose {
  position: absolute;
  right: 14px;
  bottom: 76px;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: #1d9bf0;
  box-shadow: 0 6px 16px rgba(29, 155, 240, .28);
  font-size: 36px;
  font-weight: 300;
}

.x-bottom-nav,
.threads-bottom-nav,
.instagram-bottom-nav,
.weibo-bottom-nav {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  place-items: center;
  border-top: 1px solid var(--phone-line);
  color: var(--phone-ink);
  background: var(--phone-bg);
}

.x-bottom-nav .app-icon,
.threads-bottom-nav .app-icon,
.instagram-bottom-nav .app-icon,
.weibo-bottom-nav .app-icon {
  width: 28px;
  height: 28px;
}

.nav-badge-wrap {
  position: relative;
}

.nav-badge-wrap i {
  position: absolute;
  right: -10px;
  top: -9px;
  min-width: 20px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--phone-bg);
  border-radius: 10px;
  color: #ffffff;
  background: #1d9bf0;
  font-size: 10px;
  font-style: normal;
}

/* Threads reference */
.phone-shot.post-threads {
  padding: 0;
}

.threads-app-header {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
}

.threads-back {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
}

.threads-back .app-icon {
  width: 24px;
}

.threads-title {
  display: grid;
  text-align: center;
}

.threads-title strong {
  font-size: 18px;
}

.threads-title small {
  color: var(--phone-muted);
  font-size: 13px;
  font-weight: 400;
}

.threads-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.threads-page-body {
  height: 698px;
  overflow: hidden;
}

.threads-primary {
  padding: 14px 15px 16px;
}

.threads-primary-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.threads-primary-head .social-avatar {
  width: 46px;
  height: 46px;
}

.threads-name-row {
  display: flex;
  align-items: center;
  font-size: 16px;
}

.threads-age {
  margin-left: 5px;
  color: var(--phone-muted);
  font-size: 14px;
  font-weight: 400;
}

.threads-logo {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}

.post-threads .post-body {
  margin-top: 13px;
  color: var(--phone-ink);
  font-size: 17px;
  line-height: 1.5;
}

.post-threads .post-media {
  width: 100%;
  max-height: 300px;
  margin-top: 12px;
  border-radius: 9px;
  object-fit: cover;
}

.threads-metrics {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 14px;
  color: #444748;
}

.threads-metrics .app-icon {
  width: 23px;
  height: 23px;
}

.threads-related {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-top: 1px solid var(--phone-line);
  border-bottom: 1px solid var(--phone-line);
  font-size: 15px;
}

.threads-related span {
  color: var(--phone-muted);
}

.threads-reply {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 16px 15px;
  border-bottom: 1px solid var(--phone-line);
}

.threads-avatar-stack {
  position: relative;
}

.threads-avatar-stack .social-avatar {
  width: 46px;
  height: 46px;
}

.threads-avatar-stack i {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid var(--phone-bg);
  border-radius: 50%;
  color: #ffffff;
  background: #050505;
  font-size: 14px;
  font-style: normal;
}

.threads-reply p {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.threads-composer {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 71px;
  height: 48px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #e7e7e7;
  border-radius: 24px;
  color: var(--phone-muted);
  background: #f7f7f7;
  font-size: 14px;
}

.composer-avatar .social-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.threads-composer .app-icon {
  width: 23px;
  color: #111111;
}

.threads-nav-plus {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #8c8c8c;
  background: #f1f1f1;
  font-size: 33px;
  font-weight: 250;
}

/* Instagram reference */
.phone-shot.post-instagram {
  padding: 0;
  border: 0;
}

.instagram-feed {
  height: 828px;
  overflow: hidden;
}

.post-instagram .instagram-top {
  height: 66px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 8px 14px;
}

.post-instagram .instagram-top .social-avatar {
  width: 43px;
  height: 43px;
  padding: 0;
  border: 0;
  font-size: 15px;
}

.instagram-user {
  font-size: 14px;
}

.instagram-location {
  font-size: 12px;
}

.instagram-top button {
  min-width: 72px;
  height: 36px;
  border-radius: 9px;
  color: #111111;
  background: #eff0f3;
  font-size: 14px;
  font-weight: 650;
}

.instagram-top > .app-icon {
  width: 23px;
}

.post-instagram > .instagram-feed > .post-media {
  width: 100%;
  height: 520px;
  aspect-ratio: auto;
  object-fit: cover;
}

.post-instagram .instagram-actions {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 10px 14px 6px;
}

.instagram-actions .platform-action {
  gap: 5px;
}

.instagram-actions .app-icon {
  width: 25px;
  height: 25px;
}

.instagram-actions .bookmark {
  margin-left: auto;
}

.post-instagram .instagram-caption {
  padding: 1px 14px 0;
  color: var(--phone-ink);
  font-size: 14px;
  line-height: 1.45;
}

.instagram-caption .social-name {
  margin-right: 5px;
}

.instagram-more {
  color: var(--phone-muted);
}

.post-instagram .instagram-date {
  padding: 7px 14px 15px;
  color: var(--phone-muted);
  font-size: 12px;
  text-transform: none;
}

.instagram-date .translate-link {
  display: inline;
  margin: 0;
  color: var(--phone-ink);
}

.instagram-next {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border-top: 1px solid var(--phone-line);
}

.instagram-next .social-avatar,
.bottom-avatar .social-avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.instagram-bottom-nav {
  left: 20px;
  right: 20px;
  bottom: 10px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 32px;
  background: rgba(237, 229, 225, .91);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 8px 25px rgba(64, 48, 40, .12);
  backdrop-filter: blur(18px);
}

.reel-mark {
  font-size: 29px;
}

.instagram-bottom-nav .bottom-avatar .social-avatar {
  width: 34px;
  height: 34px;
}

/* Weibo reference */
.phone-shot.post-weibo {
  --phone-muted: #a9aaac;
  padding: 0;
  border-radius: 0;
}

.weibo-app-header {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid var(--phone-line);
}

.weibo-app-header strong {
  font-size: 18px;
}

.weibo-app-header > span:last-child {
  justify-self: end;
  display: flex;
  gap: 20px;
}

.weibo-me .social-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.weibo-feed {
  height: 764px;
  overflow: hidden;
  background: #f6f6f6;
}

.weibo-card {
  margin-bottom: 10px;
  background: var(--phone-bg);
}

.post-weibo .weibo-top {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 15px 16px 10px;
}

.post-weibo .weibo-top .social-avatar {
  width: 45px;
  height: 45px;
}

.post-weibo .weibo-name-row {
  color: var(--phone-ink);
  font-size: 16px;
}

.post-weibo .weibo-meta {
  font-size: 12px;
}

.weibo-chevron {
  color: var(--phone-muted);
  font-size: 19px;
}

.post-weibo .post-body {
  padding: 4px 16px 8px;
  color: var(--phone-ink);
  font-size: 17px;
  line-height: 1.55;
}

.post-weibo .translate-link {
  margin: 2px 16px 10px;
}

.post-weibo .post-media {
  width: 68%;
  max-height: 420px;
  margin: 0 16px 13px;
  object-fit: cover;
}

.post-weibo .weibo-actions {
  height: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-top: 1px solid var(--phone-line);
  color: var(--phone-muted);
}

.post-weibo .weibo-actions .platform-action {
  justify-content: center;
}

.post-weibo .weibo-actions .app-icon {
  width: 24px;
  height: 24px;
}

.weibo-card-next .post-body {
  max-height: 80px;
  overflow: hidden;
}

.weibo-bottom-nav {
  grid-template-columns: repeat(4, 1fr);
  color: #a9aaac;
}

.weibo-bottom-nav .app-icon:first-child {
  color: #181818;
  fill: #181818;
}

.weibo-bottom-nav .nav-badge-wrap i {
  right: -1px;
  top: 0;
  min-width: 7px;
  width: 7px;
  height: 7px;
  padding: 0;
  border-width: 1px;
  background: #ff4f55;
}

/* WeChat Moments reference */
.phone-shot.post-wechat {
  padding: 0;
  box-shadow: 0 25px 76px rgba(23, 29, 31, .22), 0 2px 12px rgba(23, 29, 31, .08);
}

.post-wechat .wechat-nav {
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  place-items: center;
  border-bottom: 1px solid #dfdfdf;
  background: #ededed;
}

.post-wechat .wechat-nav strong {
  font-size: 19px;
}

.post-wechat .wechat-nav > .app-icon {
  justify-self: end;
  width: 27px;
  height: 27px;
  margin-right: 18px;
}

.post-wechat .wechat-back {
  justify-self: start;
  margin-left: 12px;
  font-size: inherit;
  transform: none;
}

.post-wechat .wechat-back .app-icon {
  width: 29px;
  height: 29px;
}

.wechat-feed {
  height: 830px;
  overflow: hidden;
  background: #ffffff;
}

.post-wechat .wechat-post {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 22px 17px 28px;
  border-bottom: 1px solid #ededed;
}

.post-wechat .wechat-post > .social-avatar {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.post-wechat .wechat-name {
  color: #576b95;
  font-size: 17px;
  font-weight: 650;
}

.post-wechat .post-body {
  margin-top: 5px;
  color: #151515;
  font-size: 17px;
  line-height: 1.5;
}

.post-wechat .post-media {
  width: 76%;
  max-height: 350px;
  margin-top: 9px;
  object-fit: cover;
}

.post-wechat .wechat-meta-row {
  margin-top: 10px;
  color: #adadad;
  font-size: 13px;
}

.post-wechat .wechat-menu {
  width: 35px;
  height: 24px;
  color: #536a94;
  background: #f5f5f5;
  font-size: 14px;
  letter-spacing: 1px;
}

.post-wechat .wechat-likes {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 9px 11px;
  color: #576b95;
  background: #f6f6f6;
  font-size: 13px;
}

.post-wechat .wechat-likes span {
  color: #9a9a9a;
}

.wechat-link-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px;
  background: #f5f5f5;
}

.wechat-link-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.wechat-link-card span {
  font-size: 14px;
}

/* Final single-post templates, calibrated from supplied references */
.ref-post {
  --ref-bg: #ffffff;
  --ref-ink: #111111;
  --ref-muted: #9a9a9a;
  --ref-line: #ececec;
  position: relative;
  width: min(100%, 660px);
  max-height: none;
  overflow: hidden;
  color: var(--ref-ink);
  background: var(--ref-bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.ref-post.is-dark {
  --ref-bg: #000000;
  --ref-ink: #f1f1f1;
  --ref-muted: #74787e;
  --ref-line: #242628;
}

.ref-post .social-avatar {
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: #3a5359;
  font-size: 17px;
}

.ref-post .social-name {
  color: var(--ref-ink);
  font-weight: 700;
}

.ref-post .social-handle {
  color: var(--ref-muted);
}

.ref-post .post-body {
  color: var(--ref-ink);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ref-post .post-body.is-placeholder {
  color: var(--ref-muted);
}

.ref-post .post-media {
  display: block;
  object-fit: cover;
}

.ref-post-grid {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
}

.ref-post-main {
  min-width: 0;
}

.ref-author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ref-actions {
  color: var(--ref-muted);
}

.ref-actions .platform-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ref-actions .platform-action b {
  font-size: 14px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}

.ref-actions .app-icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.75;
}

/* X single post */
.ref-x {
  width: 650px;
  padding: 20px 16px 18px;
}

.ref-x-detail-author {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.ref-x-detail-author .social-avatar {
  width: 68px;
  height: 68px;
}

.ref-x-identity {
  min-width: 0;
  display: grid;
  gap: 3px;
  font-size: 21px;
  line-height: 1.2;
}

.ref-x-identity > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ref-x-identity .social-handle {
  min-width: 0;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-x-follow {
  min-width: 76px;
  height: 38px;
  border-radius: 999px;
  color: #0f1419;
  background: #eff3f4;
  font-size: 17px;
  font-weight: 700;
}

.ref-x .post-body {
  margin: 34px 0 0 81px;
  font-size: 25px;
  line-height: 1.5;
}

.ref-x .x-translation {
  margin: 7px 0 0 81px;
  color: #1d9bf0;
  font-size: 14px;
}

.ref-x .post-media {
  width: auto;
  max-width: calc(100% - 81px);
  max-height: 590px;
  height: auto;
  margin: 20px 0 0 81px;
  border: 1px solid var(--ref-line);
  border-radius: 14px;
  object-fit: contain;
}

.ref-x-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0 0 81px;
  color: var(--ref-muted);
  font-size: 20px;
  line-height: 1.25;
}

.ref-x-meta i {
  font-style: normal;
}

.ref-x-meta strong {
  color: var(--ref-ink);
  font-weight: 700;
}

.ref-x-actions {
  width: calc(100% - 81px);
  margin: 18px 0 0 81px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 57px 28px;
  align-items: center;
}

.ref-x-actions .platform-action {
  justify-content: flex-start;
  gap: 8px;
}

.ref-x-actions .app-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.ref-x-actions .platform-action b {
  font-family: var(--font-social);
  font-size: 21px;
  font-weight: 400;
  font-variant-numeric: proportional-nums;
  line-height: 1;
}

/* Threads single post */
.ref-threads {
  width: 650px;
  padding: 20px 19px 15px;
}

.ref-threads-author {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.ref-threads-author .social-avatar {
  width: 56px;
  height: 56px;
}

.ref-threads-author .ref-author {
  font-size: 17px;
}

.ref-threads-author .social-handle {
  margin-left: 3px;
  font-size: 15px;
}

.ref-threads-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.threads-official-logo {
  width: 25px;
  height: 28px;
  object-fit: contain;
}

.ref-threads .post-body {
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.58;
}

.ref-threads .translate-link {
  margin-top: 7px;
  color: var(--ref-muted);
  font-size: 14px;
}

.ref-threads .post-media {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-top: 13px;
  border-radius: 9px;
  object-fit: contain;
}

.ref-threads-actions {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 16px;
  color: #444748;
}

.ref-threads-actions .app-icon {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.ref-threads-actions .platform-action b {
  font-size: 16px;
  font-weight: 400;
}

/* Instagram single post */
.ref-instagram {
  width: 570px;
  padding: 0 0 14px;
}

.ref-instagram-author {
  height: 58px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.ref-instagram-author .social-avatar {
  width: 43px;
  height: 43px;
  font-size: 15px;
}

.ref-instagram-author > div {
  min-width: 0;
  display: grid;
}

.ref-instagram-author .social-name {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-instagram-author small {
  font-size: 12px;
  font-weight: 400;
}

.ref-instagram-author button {
  min-width: 86px;
  height: 40px;
  border-radius: 9px;
  color: #111111;
  background: #eff0f3;
  font-size: 14px;
  font-weight: 650;
}

.ref-instagram-author > .app-icon {
  width: 23px;
  height: 23px;
}

.ref-instagram > .post-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ref-instagram-actions {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 14px 6px;
}

.ref-instagram-actions .app-icon {
  width: 29px;
  height: 29px;
  stroke-width: 2;
}

.ref-instagram-actions .platform-action b {
  font-size: 16px;
  font-weight: 500;
}

.ref-instagram-actions .bookmark {
  margin-left: auto;
}

.ref-instagram-caption {
  padding: 1px 14px 0;
  color: var(--ref-ink);
  font-size: 14px;
  line-height: 1.48;
}

.ref-instagram-caption .social-name {
  margin-right: 5px;
}

.ref-instagram-caption em {
  color: var(--ref-muted);
  font-style: normal;
}

.ref-instagram-meta {
  padding: 7px 14px 0;
  color: var(--ref-muted);
  font-size: 12px;
}

.ref-instagram-meta .translate-link {
  display: inline;
  margin: 0;
  color: var(--ref-ink);
}

/* Weibo single post */
.ref-weibo {
  width: 640px;
  padding: 0;
}

.ref-weibo-author {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 17px 18px 11px;
}

.ref-weibo-author .social-avatar {
  width: 60px;
  height: 60px;
}

.ref-weibo-author > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ref-weibo-author .ref-author {
  font-size: 20px;
}

.ref-weibo-author .social-handle {
  font-size: 13px;
}

.ref-chevron {
  color: var(--ref-muted);
}

.ref-chevron .app-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.ref-weibo .post-body {
  padding: 3px 18px 9px;
  font-size: 22px;
  line-height: 1.58;
}

.ref-weibo .translate-link {
  margin: 1px 18px 10px;
  color: var(--ref-muted);
  font-size: 14px;
}

.ref-weibo .post-media {
  width: 47%;
  height: auto;
  margin: 0 18px 14px;
  object-fit: contain;
}

.ref-weibo-actions {
  height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-top: 1px solid var(--ref-line);
  color: #a9aaac;
}

.ref-weibo-actions .platform-action {
  justify-content: center;
}

.ref-weibo-actions .app-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.9;
}

.ref-weibo-actions .platform-action b {
  font-size: 16px;
  font-weight: 400;
}

/* WeChat Moments single post */
.ref-wechat {
  width: 640px;
  padding: 28px 44px 30px;
}

.ref-wechat .ref-post-grid {
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
}

.ref-wechat .social-avatar {
  width: 60px;
  height: 60px;
  border-radius: 4px;
}

.ref-wechat-name {
  color: #576b95;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
}

.ref-wechat .post-body {
  margin-top: 6px;
  color: #151515;
  font-size: 20px;
  line-height: 1.48;
}

.ref-wechat .post-media {
  width: min(100%, 320px);
  height: auto;
  margin-top: 12px;
  object-fit: contain;
}

.ref-wechat-meta-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.ref-wechat-location {
  color: #576b95;
}

.ref-wechat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
  margin-top: 13px;
  color: #a8a8a8;
  font-size: 15px;
}

.ref-wechat-menu {
  width: 46px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #576b95;
  background: #f5f5f5;
}

.ref-wechat-menu .app-icon {
  width: 24px;
  height: 24px;
}

.ref-wechat-likes {
  position: relative;
  margin-top: 10px;
  padding: 11px 13px;
  color: #576b95;
  background: #f6f6f6;
  border-radius: 6px;
  font-size: 17px;
  line-height: 1.35;
}

.ref-wechat-likes::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 15px;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #f6f6f6;
  border-left: 8px solid transparent;
}

.ref-wechat-like-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ref-wechat-like-line strong {
  font-weight: 500;
}

.ref-wechat-like-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.ref-wechat.is-dark .post-body {
  color: #f2f2f2;
}

.ref-wechat.is-dark .ref-wechat-meta {
  color: #858585;
}

.ref-wechat.is-dark .ref-wechat-name,
.ref-wechat.is-dark .ref-wechat-location,
.ref-wechat.is-dark .ref-wechat-menu,
.ref-wechat.is-dark .ref-wechat-likes {
  color: #7f95c4;
}

.ref-wechat.is-dark .ref-wechat-menu,
.ref-wechat.is-dark .ref-wechat-likes {
  background: #292929;
}

.ref-wechat.is-dark .ref-wechat-likes::before {
  border-bottom-color: #292929;
}
