/* ===== Social page revamp (social-cards.js + social.js) =====
   Header with pill actions, segmented tabs, a slim search hero, trader cards
   (cover + ring + stats), the Trades tab grid, Posts / Saved journal cards and
   the Autopilot panel. Loaded after social.css; every rule is scoped to
   #view-social so the Activity chat and the profile page keep their own. ===== */
#view-social.community-workspace {
	max-width: none;
	margin: 0;
	padding: 16px 24px 60px;
}
#view-social .sc-ic {
	width: 16px;
	height: 16px;
	flex: none;
	fill: currentColor;
}
/* local-demo note and the live-status line cost height; the "new activity"
   button still shows when there is something to show */
#view-social .social-demo-notice {
	display: none;
}
#view-social .social-update-bar {
	display: none;
}
#view-social .social-update-bar:has(#social-new-updates:not([hidden])) {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 12px;
}
#view-social #social-live-status {
	display: none;
}
#view-social #social-new-updates {
	height: 34px;
	min-height: 0;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	font-size: 12.5px;
	font-weight: 600;
}

/* ----- Header ----- */
#view-social.community-workspace > .social-heading {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin: 6px 0 18px;
}
#view-social.community-workspace > .social-heading h1 {
	margin: 0 0 6px;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
#view-social.community-workspace > .social-heading p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}
#view-social > .social-heading .social-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}
#view-social.community-workspace > .social-heading .btn {
	height: 40px;
	min-height: 0;
	padding: 0 16px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
#view-social.community-workspace > .social-heading .btn.ghost {
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt);
}
#view-social.community-workspace > .social-heading .btn.ghost:hover {
	background: var(--hover);
	border-color: var(--border-2);
}
#view-social > .social-heading .tb-ic {
	width: 18px;
	height: 18px;
}
#view-social.community-workspace > .social-heading .sh-icon {
	width: 40px;
	padding: 0;
	justify-content: center;
}
#view-social.community-workspace > .social-heading .sh-own {
	padding: 0 16px 0 5px;
}
#view-social .sh-own-av,
#view-social .sh-own-av .social-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
	flex: none;
	font-size: 11px;
	font-weight: 700;
	align-items: center;
	justify-content: center;
	background: var(--card);
}
#view-social .sh-own-av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#view-social > .social-heading .lq-btn {
	min-height: 40px;
	height: 40px;
	padding: 0 18px;
	font-size: 13.5px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ----- Tabs: segmented pills ----- */
#view-social.community-workspace .social-toolbar {
	display: flex;
	align-items: center;
	margin: 0 0 18px;
	border: 0;
}
#view-social.community-workspace .social-toolbar > .social-tabs {
	display: inline-flex;
	gap: 2px;
	padding: 4px;
	margin: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--card-2);
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}
#view-social.community-workspace .social-toolbar .social-tab {
	flex: none;
	height: 36px;
	margin: 0;
	padding: 0 18px;
	border: 0 !important;
	border-radius: 999px;
	background: none;
	box-shadow: none !important;
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}
#view-social.community-workspace .social-toolbar .social-tab::after,
#view-social.community-workspace .social-toolbar .social-tab::before {
	content: none !important;
}
#view-social.community-workspace .social-toolbar .social-tab:hover {
	color: var(--txt);
	background: var(--hover);
}
#view-social.community-workspace .social-toolbar .social-tab.active {
	background: var(--accent);
	color: var(--on-accent);
}

/* ----- Find traders: search hero ----- */
#view-social .social-discovery {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 18px;
	padding: 22px 26px;
	border-radius: 24px;
	border: 1px solid var(--border);
	background:
		radial-gradient(60% 140% at 0% 0%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 60%),
		var(--card);
	overflow: hidden;
}
#view-social .social-discovery.hidden {
	display: none;
}
#view-social .social-discovery h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
#view-social .social-discovery p {
	margin: 0;
	font-size: 13.5px;
	color: var(--muted);
}
#view-social .social-search-field {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(440px, 46%);
	height: 46px;
	margin: 0;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--muted);
}
#view-social .social-search-field:focus-within {
	border-color: var(--txt);
}
#view-social .social-search-field input {
	flex: 1;
	min-width: 0;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0 !important;
	color: var(--txt);
	font-size: 14px;
}

/* ----- Trader cards ----- */
#view-social .social-directory {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 16px;
}
#view-social .social-directory > .btn,
#view-social .social-directory > .st-btn {
	grid-column: 1 / -1;
	justify-self: center;
}
#view-social .social-directory-note {
	margin: 14px 0 0;
	font-size: 12px;
	text-align: center;
	color: var(--muted);
}
#view-social .st-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 8px 12px;
	border-radius: 28px;
	border: 1px solid var(--border);
	background: var(--card);
	text-align: center;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}
#view-social .st-card:hover {
	transform: translateY(-3px);
	border-color: var(--border-2);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}
#view-social .st-cover {
	position: relative;
	align-self: stretch;
	height: 124px;
	border-radius: 22px;
	overflow: hidden;
}
#view-social .st-follow {
	position: absolute;
	top: 10px;
	right: 10px;
	height: 34px;
	padding: 0 13px 0 10px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: #0f1012;
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	backdrop-filter: blur(8px);
	box-shadow: 0 6px 18px rgba(15, 16, 18, 0.18);
	cursor: pointer;
	transition:
		background 0.15s,
		transform 0.15s;
}
#view-social .st-follow:hover {
	background: #fff;
	transform: translateY(-1px);
}
#view-social .st-follow.on {
	background: rgba(15, 16, 18, 0.55);
	color: #fff;
}
#view-social .st-follow.st-you {
	cursor: default;
	background: rgba(15, 16, 18, 0.45);
	color: #fff;
}
#view-social .st-follow:disabled {
	opacity: 0.6;
}
#view-social .st-avatar {
	position: relative;
	width: 112px;
	height: 112px;
	margin-top: -58px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--card);
	cursor: pointer;
}
#view-social .st-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}
#view-social .st-ring-track {
	fill: none;
	stroke: var(--border);
	stroke-width: 4;
}
#view-social .st-ring-fill {
	fill: none;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-dasharray: 326.73;
	stroke-dashoffset: 326.73;
	transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#view-social .st-avatar .social-avatar {
	position: absolute;
	inset: 9px;
	width: 94px;
	height: 94px;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--card-2);
	font-size: 26px;
	font-weight: 700;
}
#view-social .st-avatar .social-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
#view-social .st-name {
	margin: 8px 12px 0;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-transform: none;
	color: var(--txt);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#view-social .st-handle {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: var(--muted);
}
#view-social .st-bio {
	margin: 10px 16px 0;
	min-height: 39px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--txt-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#view-social .st-bio.muted {
	color: var(--muted);
}
#view-social .st-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	min-height: 24px;
	margin: 10px 8px 0;
}
#view-social .st-chip {
	height: 24px;
	padding: 0 9px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt-2);
	font-size: 11.5px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
#view-social .st-chip .sc-ic {
	width: 13px;
	height: 13px;
}
#view-social .st-chip[hidden] {
	display: none;
}
#view-social .st-chip.up {
	color: var(--up);
}
#view-social .st-chip.down {
	color: var(--down);
}
#view-social .st-stats {
	align-self: stretch;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 14px 4px 0;
	padding: 12px 4px;
	border-radius: 20px;
	border: 1px solid var(--border);
	background: var(--card-2);
}
#view-social .st-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
#view-social .st-stat + .st-stat {
	border-left: 1px solid var(--border);
}
#view-social .st-stat b {
	font-family: "Satoshi", ui-sans-serif, sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--txt);
}
#view-social .st-stat span {
	font-size: 11.5px;
	color: var(--muted);
}
#view-social .st-foot {
	align-self: stretch;
	display: flex;
	margin: 10px 4px 0;
}
#view-social .st-btn {
	flex: 1;
	height: 40px;
	min-height: 0;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	transition:
		background 0.12s,
		border-color 0.12s;
}
#view-social .st-btn:hover {
	background: var(--hover);
	border-color: var(--border-2);
}

/* ----- Trades tab ----- */
#view-social .sc-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
}
#view-social .sc-head h2 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
#view-social .sc-head p {
	margin: 0;
	font-size: 13.5px;
}
#view-social .sc-head .ac-filters .vsel {
	min-width: 150px;
}
#view-social .sc-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 16px;
}
#view-social .sc-stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 16px 18px;
	border-radius: 20px;
	border: 1px solid var(--border);
	background: var(--card);
}
#view-social .sc-stat > span {
	font-size: 12px;
	color: var(--muted);
}
#view-social .sc-stat b {
	font-family: "Satoshi", ui-sans-serif, sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#view-social .sc-stat b.up {
	color: var(--up);
}
#view-social .sc-stat b.down {
	color: var(--down);
}
#view-social .sc-stat small {
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#view-social .sc-market {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
#view-social .sc-coin,
#view-social .sc-coin .coin-ico {
	width: 24px;
	height: 24px;
	display: inline-flex;
}
#view-social .sc-split {
	display: flex;
	gap: 2px;
	height: 6px;
	border-radius: 3px;
	overflow: hidden;
	margin-top: 2px;
}
#view-social .sc-split i {
	display: block;
	height: 100%;
}
#view-social .sc-split i.up {
	background: var(--up);
}
#view-social .sc-split i.down {
	background: var(--down);
}
#view-social .sc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 12px;
	align-items: start;
}
#view-social .sc-grid .ac-msg {
	max-width: none;
	margin: 0 !important;
}
#view-social .sc-grid .ac-msg-avatar {
	display: none;
}
#view-social .sc-more {
	flex: none;
	display: flex;
	margin: 16px auto 0;
	width: auto;
}
#view-social .sc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 56px 20px;
	border-radius: 24px;
	border: 1px dashed var(--border-2);
	text-align: center;
}
#view-social .sc-empty .st-btn {
	flex: none;
	margin-top: 6px;
}
#view-social .sc-empty-ic {
	width: 34px;
	height: 34px;
	color: var(--muted);
}
#view-social .sc-empty p {
	margin: 0;
	font-size: 13px;
}
/* author avatar inside trade cards: shown in grids, not in the chat stream
   (which has its own avatar column) or on a profile (the page is the author) */
:is(#view-social, #view-profile) .ac-who-av {
	width: 22px;
	height: 22px;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
	background: var(--card);
}
:is(#view-social, #view-profile) .ac-who-av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#view-social .ac-stream .ac-who-av,
#view-profile .ac-who-av {
	display: none;
}

/* ----- Posts & strategies, Saved ----- */
#view-social .social-post-composer {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 16px;
	padding: 20px 24px;
	border-radius: 24px;
	border: 1px solid var(--border);
	background:
		radial-gradient(50% 140% at 100% 0%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 60%),
		var(--card);
}
#view-social .social-post-composer > .social-avatar {
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
}
#view-social .social-post-composer > .social-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#view-social .social-post-composer > div:not(.social-actions) {
	flex: 1;
	min-width: 0;
}
#view-social .social-post-composer strong {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
#view-social .social-post-composer p {
	margin: 4px 0 0;
	font-size: 13px;
}
#view-social .social-post-composer .social-actions {
	display: flex;
	gap: 8px;
	flex: none;
}
#view-social .social-post-composer .btn {
	height: 40px;
	min-height: 0;
	padding: 0 16px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
}
#view-social .social-post-composer .btn.ghost {
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt);
}
#view-social .social-post-composer .lq-btn {
	min-height: 40px;
	height: 40px;
}
#view-social #social-content > .social-section-heading {
	margin: 0 0 14px;
}
#view-social #social-content > .social-section-heading h2 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
#view-social #social-content > .social-section-heading p {
	margin: 0;
	font-size: 13.5px;
}
#view-social .social-journal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 14px;
	align-items: start;
}
#view-social .social-journal-grid > .social-journal {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 20px 16px;
	border-radius: 24px;
	border: 1px solid var(--border);
	background: var(--card);
}
#view-social .social-journal > .social-person {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--txt);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
#view-social .social-journal > .social-person .social-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
	background: var(--card-2);
}
#view-social .social-journal > .social-person .social-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#view-social .social-journal > .social-person strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
}
#view-social .social-journal > .social-person small {
	font-size: 12px;
	color: var(--muted);
}
#view-social .social-journal > small.muted {
	margin-top: -8px;
	font-size: 11.5px;
}
#view-social .social-journal-copy h3 {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.3;
	text-transform: none;
	color: var(--txt);
}
#view-social .social-journal-text {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--txt-2);
	white-space: pre-wrap;
}
#view-social .social-journal-plan {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
}
#view-social .social-journal-plan span {
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt);
	font-size: 12px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
}
#view-social .social-journal-plan span:first-child {
	border-color: color-mix(in srgb, var(--blue) 30%, var(--border));
	background: color-mix(in srgb, var(--blue) 14%, var(--card-2));
}
#view-social .social-journal .social-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
}
#view-social .social-journal .social-actions .btn {
	height: 32px;
	min-height: 0;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt);
	font-size: 12.5px;
	font-weight: 600;
}
#view-social .social-journal .social-actions .btn:hover {
	background: var(--hover);
}
/* Icon-only post actions (comment / save / edit / delete / report). */
#view-social .social-journal .social-actions .social-ic-btn {
	width: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	color: var(--muted);
}
#view-social .social-journal .social-actions .social-ic-btn:hover {
	color: var(--txt);
}
#view-social .social-journal .social-actions .social-ic-btn.on {
	color: var(--accent);
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
/* Thread/tweet body: clamp long takes, reveal with Show more. */
#view-social .social-journal-text.clamped {
	display: -webkit-box;
	-webkit-line-clamp: 12;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#view-social .social-journal .social-text-action.btn {
	align-self: flex-start;
	justify-self: start;
	padding: 2px 0;
	min-height: 0;
	height: auto;
	border: 0;
	background: none;
	color: var(--accent);
	font-size: 12px;
}
/* A single scrollable column of takes, not a card grid. */
#view-social.community-workspace .social-journal-grid {
	grid-template-columns: minmax(0, 640px);
	justify-content: center;
	gap: 14px;
}
#view-social .social-journal-grid > .btn {
	grid-column: 1 / -1;
	justify-self: center;
}
#view-social #social-content > .social-empty,
#view-social .social-journal-grid > .social-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 56px 20px;
	border-radius: 24px;
	border: 1px dashed var(--border-2);
	text-align: center;
	font-size: 14px;
	color: var(--muted);
}

/* ----- Autopilot ----- */
#view-social #social-content > .social-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 12px;
}
#view-social #social-content > .social-heading h2 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
#view-social #social-content > .social-heading p {
	margin: 0;
	font-size: 13.5px;
}
#view-social #social-content > .social-heading .btn,
#view-social .autopilot-mandate .btn {
	height: 36px;
	min-height: 0;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt);
	font-size: 13px;
	font-weight: 600;
}
#view-social .autopilot-disclosure {
	margin: 0 0 14px;
	padding: 12px 16px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: var(--card-2);
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--txt-2);
}
#view-social .autopilot-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 36px 28px 32px;
	border-radius: 28px;
	border: 1px solid var(--border);
	background:
		radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 65%),
		var(--card);
	text-align: center;
}
#view-social .autopilot-empty h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
#view-social .autopilot-empty > p {
	margin: 0;
	max-width: 56ch;
	font-size: 14px;
}
#view-social .autopilot-steps {
	counter-reset: ap;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	align-self: stretch;
	margin: 14px 0 8px;
}
#view-social .autopilot-steps > div {
	counter-increment: ap;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 18px;
	border-radius: 20px;
	border: 1px solid var(--border);
	background: var(--card-2);
	text-align: left;
}
#view-social .autopilot-steps > div::before {
	content: counter(ap);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 4px;
}
#view-social .autopilot-steps strong {
	font-size: 14.5px;
	font-weight: 700;
}
#view-social .autopilot-steps p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--muted);
}
#view-social .autopilot-empty .lq-btn,
#view-social .autopilot-empty .btn.primary {
	min-height: 42px;
	height: 42px;
	padding: 0 20px;
}
#view-social .autopilot-mandate {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
	padding: 18px 20px;
	border-radius: 24px;
	border: 1px solid var(--border);
	background: var(--card);
}
#view-social .autopilot-mandate h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
}
#view-social .autopilot-state {
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--card-2);
	border: 1px solid var(--border);
	font-size: 11.5px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
}
#view-social .autopilot-mandate p {
	margin: 0;
	font-size: 13px;
}
#view-social #social-content > details {
	margin: 0 0 14px;
	padding: 12px 16px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: var(--card);
	font-size: 13px;
}

@media (max-width: 1100px) {
	#view-social .sc-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 760px) {
	#view-social.community-workspace {
		padding: 12px 14px 48px;
	}
	#view-social.community-workspace > .social-heading {
		flex-direction: column;
		align-items: flex-start;
	}
	#view-social .social-discovery {
		flex-direction: column;
		align-items: stretch;
	}
	#view-social .social-search-field {
		width: auto;
	}
	#view-social .sc-head {
		flex-direction: column;
		align-items: flex-start;
	}
	#view-social .sc-grid {
		grid-template-columns: 1fr;
	}
	#view-social .autopilot-steps {
		grid-template-columns: 1fr;
	}
	#view-social .social-post-composer {
		flex-direction: column;
		align-items: flex-start;
	}
}
@media (prefers-reduced-motion: reduce) {
	#view-social .st-card,
	#view-social .st-ring-fill {
		transition: none;
	}
}
/* the trade-card / filter rules from activity-chat.css read these sizes */
#view-social {
	--ac-ctl: 38px;
	--ac-ctl-sm: 32px;
}
#view-social .sc-head .ac-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}
#view-social .sc-head .ac-filters .vsel {
	min-width: 150px;
	margin: 0;
}
#view-social .sc-head .ac-filters .vsel-btn {
	height: 38px;
	padding: 0 12px 0 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card-2);
	color: var(--txt);
	font-size: 13px;
	font-weight: 600;
}

/* ----- Loading skeletons (skeleton.css), shaped like each tab's cards ----- */
#view-social .sk-card {
	pointer-events: none;
}
#view-social .st-card.sk-card {
	align-items: center;
	gap: 0;
	min-height: 360px;
}
#view-social .st-sk-cover {
	width: 100%;
	height: 124px;
	border-radius: 22px;
}
#view-social .st-sk-av {
	width: 112px;
	height: 112px;
	margin-top: -56px;
	box-shadow: 0 0 0 6px var(--card);
}
#view-social .st-sk-mid {
	align-items: center;
	width: 100%;
	margin: 14px 0 16px;
}
#view-social .st-sk-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	width: calc(100% - 16px);
	margin-bottom: 14px;
}
#view-social .st-card.sk-card > .sk:last-child {
	width: calc(100% - 16px) !important;
}
#view-social .sc-sk-trade,
:is(#view-social, #view-profile) .ac-sk-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 186px;
	padding: 16px;
	border-radius: 24px;
	border: 1px solid var(--border);
	background: var(--card);
}
#view-social .sc-sk-trade .sk-row > .sk:not(.circle),
:is(#view-social, #view-profile) .ac-sk-card .sk-row:last-child > .sk {
	flex: 1;
}
#view-social .social-journal.sk-card {
	min-height: 230px;
}
