.fb-crosspost-page {
  min-height: 100vh;
  background: #0b0b0b;
  color: var(--text, #f2f2f2);
  font-family: "DM Sans", system-ui, sans-serif;
}

.fb-crosspost-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.fb-crosspost-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.fb-crosspost-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1877f2;
  font-weight: 700;
}

.fb-crosspost-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.fb-crosspost-sub,
.fb-crosspost-note {
  margin: 0;
  color: #b8b8b8;
  line-height: 1.5;
}

.fb-crosspost-header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-crosspost-gate {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #141414;
  text-align: center;
}

.fb-crosspost-card {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #141414;
}

.fb-crosspost-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.fb-crosspost-card label {
  display: block;
  margin: 12px 0;
  font-size: 13px;
  color: #ddd;
}

.fb-crosspost-card input,
.fb-crosspost-card textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f0f0f;
  color: #fff;
}

.fb-crosspost-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fb-crosspost-fb-btn {
  background: #1877f2;
  border-color: #1877f2;
}

.fb-crosspost-fb-btn:hover {
  filter: brightness(1.08);
}

.fb-crosspost-danger {
  color: #ff8a80;
}

.fb-crosspost-token-details {
  margin-top: 14px;
  font-size: 13px;
}

.fb-crosspost-pages-list,
.fb-crosspost-post-results,
.fb-crosspost-delegates-list,
.fb-crosspost-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.fb-crosspost-page-item,
.fb-crosspost-post-hit,
.fb-crosspost-delegate-item,
.fb-crosspost-history-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #101010;
}

.fb-crosspost-page-item label,
.fb-crosspost-post-hit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.fb-crosspost-post-hit strong,
.fb-crosspost-history-item strong {
  display: block;
  margin-bottom: 4px;
}

.fb-crosspost-post-hit small,
.fb-crosspost-history-item small,
.fb-crosspost-selected-post {
  color: #aaa;
  line-height: 1.4;
}

.fb-crosspost-selected-post {
  margin: 8px 0;
  padding: 10px 12px;
  border-left: 3px solid #1877f2;
  background: rgba(24, 119, 242, 0.08);
  border-radius: 8px;
}

.fb-crosspost-delegate-form {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.fb-crosspost-status {
  margin-top: 10px;
  font-size: 13px;
}

.fb-crosspost-status.ok { color: #7dffb2; }
.fb-crosspost-status.error { color: #ff8a80; }

@media (min-width: 720px) {
  .fb-crosspost-delegate-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}
