.social-workspace {
  --soc-black: var(--black, #000000);
  --soc-ink: var(--ink, #f3f1ec);
  --soc-muted: var(--muted, #969897);
  --soc-dim: var(--dim, #666a69);
  --soc-panel: var(--panel, #080808);
  --soc-panel-strong: var(--panel-strong, #101010);
  --soc-line: var(--line, rgba(243, 241, 236, 0.11));
  --soc-line-strong: var(--line-strong, rgba(243, 241, 236, 0.2));
  --soc-accent: var(--accent, #f3f1ec);
  --soc-sans: var(--sans, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --soc-mono: var(--mono, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace);
  --soc-ease: var(--motion-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.soc-surface {
  color: var(--soc-ink);
  background:
    radial-gradient(1100px circle at 12% -12%, var(--soc-panel-strong), transparent 55%),
    var(--soc-black);
  font-family: var(--soc-sans);
  container-type: inline-size;
}

.adaptive-surface[data-surface="social"] [data-surface-view="social"] {
  display: grid;
  animation: soc-surface-in 180ms var(--soc-ease) both;
}

@keyframes soc-surface-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.soc-surface *,
.soc-surface *::before,
.soc-surface *::after { box-sizing: border-box; }

.soc-surface button,
.soc-surface input { font: inherit; color: inherit; }

.soc-surface button:focus-visible,
.soc-surface input:focus-visible {
  outline: 2px solid var(--soc-accent);
  outline-offset: 2px;
}

.soc-surface svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

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

.soc-frame {
  width: min(1400px, 100%);
  min-width: 0;
  min-height: 100%;
  margin: 0 auto;
  padding: 34px clamp(24px, 3vw, 60px) 132px;
}

.soc-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--soc-line-strong);
}

.soc-heading > div { min-width: 0; }

.soc-kicker {
  margin: 0;
  color: var(--soc-muted);
  font: 650 13px/1.35 var(--soc-mono);
}

.soc-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 590;
  line-height: 1.08;
  text-wrap: balance;
}

.soc-boundary {
  max-width: 48ch;
  margin: 0;
  color: var(--soc-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.soc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  margin-top: 28px;
  align-items: start;
}

.soc-main { min-width: 0; }

.soc-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--soc-line);
}

.soc-tabs button {
  padding: 14px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--soc-muted);
  font: 600 14px/1 var(--soc-mono);
  cursor: pointer;
}

.soc-tabs button:hover { color: var(--soc-ink); }
.soc-tabs button[aria-selected="true"] { color: var(--soc-ink); border-bottom-color: var(--soc-accent); }

.soc-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.soc-post {
  display: flex;
  gap: 14px;
  padding: 18px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--soc-line);
  transition: background 120ms var(--soc-ease);
}

.soc-post:hover { background: var(--soc-line); }

.soc-post-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(var(--soc-avatar-angle, 135deg), var(--soc-avatar-a, var(--soc-panel-strong)), var(--soc-avatar-b, var(--soc-panel-strong)));
  border: 1px solid var(--soc-line-strong);
  color: rgba(255, 255, 255, 0.94);
  font: 650 14px/1 var(--soc-sans);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.soc-post-avatar-small { width: 34px; height: 34px; font-size: 12px; }

.soc-post-body { min-width: 0; }

.soc-post-body header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
}

.soc-post-body strong { font-weight: 640; }

.soc-verified {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--soc-ink);
  color: var(--soc-black);
}

.soc-verified svg {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}

.soc-handle, .soc-post-body time, .soc-dot { color: var(--soc-muted); font-size: 13.5px; }

.soc-post-body p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.soc-engagement {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 420px;
  margin-top: 12px;
}

.soc-engagement button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 6px 8px;
  margin: -6px -8px;
  color: var(--soc-muted);
  font: 500 13px/1 var(--soc-mono);
  cursor: pointer;
  transition: background 120ms var(--soc-ease), color 120ms var(--soc-ease);
}

.soc-engagement button:hover:not(:disabled) { background: var(--soc-line-strong); color: var(--soc-ink); }
.soc-engagement button:disabled { cursor: default; opacity: 0.7; }
.soc-engagement button:disabled:hover { background: transparent; }
.soc-engagement button.is-active { color: var(--soc-ink); font-weight: 650; }
.soc-engagement button svg { width: 16px; height: 16px; }

.soc-surface svg.soc-heart { stroke-linecap: round; stroke-linejoin: round; }
.soc-engagement button[data-soc-action="like"].is-active .soc-heart { fill: currentColor; }

.soc-empty {
  padding: 40px 4px;
  color: var(--soc-muted);
  font-size: 14px;
}

.soc-rail {
  display: grid;
  gap: 20px;
  align-content: start;
}

.soc-search label {
  position: relative;
  display: block;
}

.soc-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--soc-dim);
}

.soc-search input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--soc-line-strong);
  border-radius: 999px;
  background: var(--soc-panel);
  color: var(--soc-ink);
  font-size: 14px;
}

.soc-card {
  padding: 18px;
  border: 1px solid var(--soc-line);
  background: var(--soc-panel);
}

.soc-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 620;
}

.soc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.soc-card li:not(:last-child) { padding-bottom: 14px; border-bottom: 1px solid var(--soc-line); }

.soc-trend-context, .soc-trend-count {
  display: block;
  color: var(--soc-muted);
  font-size: 12.5px;
}

.soc-card ul li strong { display: block; font-size: 14px; font-weight: 620; margin: 2px 0; }

[data-soc-suggestions] li {
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-soc-suggestions] li > div { flex: 1; min-width: 0; }
[data-soc-suggestions] li strong { margin: 0; }

.soc-follow-button {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--soc-line-strong);
  border-radius: 999px;
  background: var(--soc-ink);
  color: var(--soc-black);
  font: 620 13px/1 var(--soc-mono);
  cursor: pointer;
}

.soc-follow-button.is-following {
  background: transparent;
  color: var(--soc-ink);
}

.soc-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--soc-line);
}

.soc-account strong { display: block; font-size: 14px; }
.soc-account span[data-soc-account-handle] { color: var(--soc-muted); font-size: 13px; }

.soc-account-avatar { width: 36px; height: 36px; font-size: 13px; }

@media (max-width: 900px) {
  .soc-layout { grid-template-columns: 1fr; }
  .soc-rail { order: 3; }
}

@media (max-width: 760px) {
  .soc-frame { padding: 24px 18px 132px; }
  .soc-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .soc-boundary { text-align: left; }
  .soc-engagement { gap: 12px 16px; max-width: none; flex-wrap: wrap; }
  .soc-post { gap: 10px; }
  .soc-post-avatar { width: 36px; height: 36px; }
}
