/* Shared feature controls and visibility; no replacement backend or mobile stylesheet. */
@media(min-width:768px){.hide_desktop_a2,.hide_desktop_A2,.hide_tablet_a2,.hide_tablet_A2 {display:none!important;}}
.aico-design-preview {position:fixed;right:16px;bottom:64px;z-index:5000;padding:8px 12px;border-radius:8px;background:#1877f2;color:white;font:13px system-ui;box-shadow:0 2px 10px #0003;}
.aico-design-preview a {color:inherit;text-decoration:underline;}
.aipair-feed-ai-card {
	--aipair-feed-ai-primary: #7064e9;
	--aipair-feed-ai-surface: #121212;
	position: relative;
	overflow: hidden;
	margin: 0 0 2px;
	border-radius: 10px;
	background: transparent;
	color: #f4f4f5;
}

.aipair-feed-ai-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	height: 200%;
	border-radius: 10px;
	background: radial-gradient(var(--aipair-feed-ai-primary), transparent, transparent);
	transform: translate(-50%, -50%);
}

.aipair-feed-ai-card::after {
	content: "";
	position: absolute;
	inset: 2px;
	border-radius: 10px;
	background: var(--aipair-feed-ai-surface);
}

.aipair-feed-ai-inner {
	position: relative;
	z-index: 2;
	padding: 18px;
	border-radius: 10px;
}

.aipair-feed-ai-layout {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
}

.aipair-feed-ai-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	overflow: hidden;
	border-radius: 50%;
}

.aipair-feed-ai-logo img {
	display: block;
	width: 23px;
	height: 23px;
	object-fit: contain;
}

.aipair-feed-ai-content {
	min-width: 0;
	width: calc(100% - 50px);
}

.aipair-feed-ai-title {
	display: flex;
	align-items: center;
	min-height: 36px;
	margin: 0 0 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
}

.aipair-feed-ai-body {
	max-height: 110px;
	overflow: hidden;
	color: #f1f1f1;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	overflow-wrap: anywhere;
}

.aipair-feed-ai-card.is-expanded .aipair-feed-ai-body {
	max-height: none;
	overflow: visible;
}

.aipair-feed-ai-body p,
.aipair-feed-ai-body div {
	margin: 0 0 10px;
	color: inherit;
	font: inherit;
}

.aipair-feed-ai-body p:last-child,
.aipair-feed-ai-body div:last-child {
	margin-bottom: 0;
}

.aipair-feed-ai-body ul,
.aipair-feed-ai-body ol {
	margin: 8px 0 10px 18px;
	padding: 0;
	color: inherit;
}

.aipair-feed-ai-body ul {
	list-style: disc;
}

.aipair-feed-ai-body ol {
	list-style: decimal;
}

.aipair-feed-ai-body li {
	margin: 5px 0;
}

.aipair-feed-ai-body .aipair-message-heading {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 7px;
	width: 100%;
	margin: 16px 0 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	white-space: normal;
}

.aipair-feed-ai-body .aipair-message-heading:first-child {
	margin-top: 0;
}

.aipair-feed-ai-body .aipair-message-heading-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	font-size: 14px;
	line-height: 18px;
}

.aipair-feed-ai-body .aipair-message-heading-text {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}

.aipair-feed-ai-more {
	display: inline-block;
	margin: 5px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	cursor: pointer;
}

.aipair-feed-ai-card.is-expanded .aipair-feed-ai-more {
	margin-top: 10px;
	opacity: 0.85;
}

.aipair-feed-ai-stack-ready {
	--aipair-feed-ai-stack-offset: 26px;
	--aipair-feed-ai-stack-inset: 8px;
	--aipair-feed-ai-stack-toggle-size: 28px;
	--aipair-feed-ai-stack-toggle-width: 76px;
	overflow: visible;
	padding-top: var(--aipair-feed-ai-stack-offset);
	perspective: 1000px;
}

.aipair-feed-ai-stack-ready::before,
.aipair-feed-ai-stack-ready::after {
	display: none;
}

.aipair-feed-ai-stack-ready > .aipair-feed-ai-inner {
	z-index: 2;
	isolation: isolate;
	overflow: hidden;
	background: var(--aipair-feed-ai-surface);
	transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
	transform-origin: top center;
	backface-visibility: hidden;
	transition: transform 260ms ease, opacity 260ms ease;
	will-change: transform;
}

.aipair-feed-ai-stack-ready > .aipair-feed-ai-inner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 200%;
	height: 200%;
	border-radius: 10px;
	background: radial-gradient(var(--aipair-feed-ai-primary), transparent, transparent);
	opacity: 1;
	transform: translate(-50%, -50%);
	transition: opacity 260ms ease;
}

.aipair-feed-ai-stack-ready > .aipair-feed-ai-inner::after {
	content: "";
	position: absolute;
	inset: 2px;
	z-index: 1;
	border-radius: 10px;
	background: var(--aipair-feed-ai-surface);
}

.aipair-feed-ai-stack-ready > .aipair-feed-ai-inner > .aipair-feed-ai-layout {
	position: relative;
	z-index: 2;
	isolation: isolate;
	transition: opacity 180ms ease;
}

.aipair-feed-ai-stack-ready > .aipair-feed-ai-inner > .aipair-feed-ai-layout::before,
.aipair-feed-ai-prompt-card .aipair-feed-ai-layout::before {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
	width: 300px;
	height: 150px;
	border-radius: 999px;
	background: var(--aipair-feed-ai-primary);
	filter: blur(140px);
	opacity: 0.62;
	transform: translateY(-50%) translateX(-50%) scale(0.98);
	pointer-events: none;
}

.aipair-feed-ai-stack-ready > .aipair-feed-ai-inner .aipair-feed-ai-title {
	padding-right: calc(var(--aipair-feed-ai-stack-toggle-width) + 12px);
}

.aipair-feed-ai-prompt-card {
	position: absolute;
	top: 0;
	left: var(--aipair-feed-ai-stack-inset);
	right: var(--aipair-feed-ai-stack-inset);
	bottom: var(--aipair-feed-ai-stack-offset);
	z-index: 1;
	overflow: hidden;
	border: 0;
	border-radius: 10px;
	background: rgba(18, 18, 18, 0.28);
	color: #f4f4f5;
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
	isolation: isolate;
	opacity: 0.96;
	pointer-events: none;
	-webkit-backdrop-filter: blur(18px) saturate(145%);
	backdrop-filter: blur(18px) saturate(145%);
	transform: translate3d(0, -4px, -44px) rotateX(7deg) scale(0.965);
	transform-origin: top center;
	backface-visibility: hidden;
	transition: top 260ms ease, left 260ms ease, right 260ms ease, bottom 260ms ease, transform 260ms ease, opacity 260ms ease;
	will-change: transform, top, left, right, bottom;
}

.aipair-feed-ai-prompt-card::before,
.aipair-feed-ai-prompt-card::after {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
}

.aipair-feed-ai-prompt-card::before {
	top: 0;
	left: 0;
	width: 200%;
	height: 200%;
	border-radius: 10px;
	background: radial-gradient(var(--aipair-feed-ai-primary), transparent, transparent);
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity 260ms ease;
}

.aipair-feed-ai-prompt-card::after {
	inset: 0;
	z-index: 1;
	border-radius: 10px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.015)),
		rgba(18, 18, 18, 0.64);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -20px 42px rgba(0, 0, 0, 0.18);
	opacity: 1;
	transform: none;
}

.aipair-feed-ai-card:not(.is-prompt-front) > .aipair-feed-ai-prompt-card {
	top: 0;
	left: 0;
	right: 0;
	bottom: var(--aipair-feed-ai-stack-offset);
	background: var(--aipair-feed-ai-surface);
	opacity: 1;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	transform: translate3d(0, 0, -44px) rotateX(0deg) scale(1);
}

.aipair-feed-ai-card:not(.is-prompt-front) > .aipair-feed-ai-prompt-card::before {
	opacity: 0;
}

.aipair-feed-ai-card:not(.is-prompt-front) > .aipair-feed-ai-prompt-card::after {
	inset: 2px;
	background:
		radial-gradient(340px 170px at 0 0, rgba(112, 100, 233, 0.34), rgba(112, 100, 233, 0.15) 34%, rgba(112, 100, 233, 0.05) 62%, transparent 86%),
		var(--aipair-feed-ai-surface);
	box-shadow: none;
}

.aipair-feed-ai-card.is-prompt-front > .aipair-feed-ai-inner {
	z-index: 1;
	opacity: 1;
	pointer-events: none;
	transform: translate3d(0, calc(-1 * var(--aipair-feed-ai-stack-offset)), -44px) rotateX(0deg) scale(1);
}

.aipair-feed-ai-card.is-prompt-front > .aipair-feed-ai-inner > .aipair-feed-ai-layout {
	opacity: 1;
}

.aipair-feed-ai-card.is-prompt-front > .aipair-feed-ai-inner::before {
	opacity: 0;
}

.aipair-feed-ai-card.is-prompt-front > .aipair-feed-ai-prompt-card {
	top: var(--aipair-feed-ai-stack-offset);
	left: 0;
	right: 0;
	bottom: 0;
	height: auto;
	min-height: 0;
	z-index: 3;
	opacity: 1;
	pointer-events: auto;
	transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.aipair-feed-ai-prompt-card .aipair-feed-ai-layout {
	transition: opacity 180ms ease, transform 180ms ease;
}

.aipair-feed-ai-card:not(.is-prompt-front) > .aipair-feed-ai-prompt-card .aipair-feed-ai-layout {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-3px);
}

.aipair-feed-ai-prompt-text {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	max-height: 100%;
	overflow: auto;
	padding: 18px;
	color: #f4f4f5;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	overflow-wrap: anywhere;
	white-space: normal;
}

.aipair-feed-ai-prompt-card .aipair-feed-ai-title {
	color: #fff;
	padding-right: calc(var(--aipair-feed-ai-stack-toggle-width) + 12px);
}

.aipair-feed-ai-prompt-card .aipair-feed-ai-layout {
	position: relative;
	z-index: 2;
	isolation: isolate;
	padding: 18px;
}

.aipair-feed-ai-sparkle {
	background: rgba(255, 255, 255, 0.11);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 22px rgba(112, 100, 233, 0.22);
	color: #fff;
}

.aipair-feed-ai-sparkle svg {
	display: block;
	width: 20px;
	height: 20px;
}

.aipair-feed-ai-prompt-actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 20px 0 0;
}

.aipair-feed-ai-prompt-action,
.aipair-feed-ai-prompt-copy {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: 30px;
	height: 30px;
	min-width: 30px;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	cursor: pointer;
	transition: color 160ms ease, transform 160ms ease;
}

.aipair-feed-ai-prompt-action:hover,
.aipair-feed-ai-prompt-action:focus,
.aipair-feed-ai-prompt-copy:hover,
.aipair-feed-ai-prompt-copy:focus {
	background: transparent;
	transform: scale(1.04);
}

.aipair-feed-ai-prompt-copy.is-copied {
	background: transparent;
	color: #b9b2ff;
}

.aipair-feed-ai-prompt-save svg .hover_path {
	display: none;
}

	.aipair-feed-ai-prompt-save.is-saved-to-aipair-app svg path {
		display: none;
	}

	.aipair-feed-ai-prompt-save.is-saved-to-aipair-app svg .hover_path {
		display: block;
	}

	.aipair-feed-ai-prompt-action svg,
	.aipair-feed-ai-prompt-copy svg {
	display: block;
	width: 15px;
	height: 15px;
}

.aipair-feed-ai-prompt-card.is-enhanced .aipair-feed-ai-prompt-text {
	height: auto;
	max-height: 126px;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
}

.aipair-feed-ai-card.is-expanded .aipair-feed-ai-prompt-card.is-enhanced .aipair-feed-ai-prompt-text {
	max-height: none;
}

.aipair-feed-ai-stack-toggle {
	position: absolute;
	top: 13px;
	right: 14px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: var(--aipair-feed-ai-stack-toggle-width);
	height: var(--aipair-feed-ai-stack-toggle-size);
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.13);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	cursor: pointer;
	line-height: 1;
	transition: background-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.aipair-feed-ai-card:not(.is-prompt-front) > .aipair-feed-ai-prompt-card > .aipair-feed-ai-stack-toggle,
.aipair-feed-ai-card.is-prompt-front > .aipair-feed-ai-inner > .aipair-feed-ai-stack-toggle {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.96);
}

.aipair-feed-ai-stack-toggle:hover,
.aipair-feed-ai-stack-toggle:focus {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	transform: scale(1.04);
}

.aipair-feed-ai-stack-toggle span {
	display: block;
	max-width: 56px;
	overflow: hidden;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 520px) {
	.aipair-feed-ai-inner {
		padding: 16px 14px;
	}

	.aipair-feed-ai-stack-ready {
		--aipair-feed-ai-stack-offset: 24px;
		--aipair-feed-ai-stack-inset: 7px;
		--aipair-feed-ai-stack-toggle-size: 27px;
		--aipair-feed-ai-stack-toggle-width: 70px;
	}

	.aipair-feed-ai-stack-ready > .aipair-feed-ai-inner .aipair-feed-ai-title {
		padding-right: calc(var(--aipair-feed-ai-stack-toggle-width) + 9px);
	}

	.aipair-feed-ai-body {
		max-height: 105px;
		line-height: 21px;
	}

	.aipair-feed-ai-prompt-text {
		padding: 16px 14px;
		font-size: 14px;
		line-height: 21px;
	}

	.aipair-feed-ai-prompt-card .aipair-feed-ai-layout {
		padding: 16px 14px;
	}

	.aipair-feed-ai-prompt-card.is-enhanced .aipair-feed-ai-prompt-text {
		font-size: 14px;
		line-height: 21px;
	}

	.aipair-feed-ai-stack-toggle {
		top: 11px;
		right: 10px;
		padding: 0 10px;
	}

	.aipair-feed-ai-layout {
		gap: 12px;
	}

	.aipair-feed-ai-logo {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
	}

	.aipair-feed-ai-content {
		width: calc(100% - 46px);
	}

	.aipair-feed-ai-title {
		min-height: 34px;
	}
}

/* Shared Aipair reaction state and custom feed navigation controls. */
.wonder-svg .filled{display:none;}
.wonder-svg .outline{display:inline-block;}
.active-wonder .wonder-svg .outline{display:none;}
.active-wonder .wonder-svg .filled{display:inline-block;}
.tag_post_actions .wonder-svg{display:inline-flex;align-items:center;}
#filterby-post{scrollbar-width:none;}
#filterby-post::-webkit-scrollbar{display:none;}

.aico-shared-ai{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-inline:8px;padding:7px 10px;border-radius:8px;font-weight:600;color:var(--main)!important;background:var(--hover-light);}
