/* AI 圈子 — 与每日分享 / AI 资源导航同宽（max 1540px，避免 100vw 含滚动条错位） */
.leafs-main.leafs-container.leafs-circle {
	--leafs-circle-page-max: 1540px;
	width: 100%;
	max-width: min(var(--leafs-circle-page-max), 100%);
	box-sizing: border-box;
	min-width: 0;
	overflow-x: clip;
	padding-top: 8px;
	padding-bottom: 36px;
	color: var(--leafs-text);
}

.leafs-circle a:not(.leafs-btn):not(.leafs-tag) {
	color: var(--leafs-link);
}

.leafs-circle .leafs-muted {
	color: var(--leafs-muted);
}

/* 顶部动态 SVG 海报（明亮日间 · 略增高 · 夜间单独适配） */
.leafs-circle-banner {
	--leafs-circle-banner-fg: var(--leafs-text, #0f172a);
	--leafs-circle-banner-muted: var(--leafs-muted, #64748b);
	--leafs-circle-banner-grid: color-mix(in srgb, var(--leafs-brand, #2d6a4f) 18%, #94a3b8);
	--leafs-circle-banner-blob-1: #6ee7b7;
	--leafs-circle-banner-blob-2: #93c5fd;
	--leafs-circle-banner-blob-3: #c4b5fd;
	--leafs-circle-banner-blob-4: #5eead4;
	--leafs-circle-banner-node: var(--leafs-brand, #2d6a4f);
	--leafs-circle-banner-spark: #38bdf8;
	--leafs-circle-banner-stat-bg: rgba(255, 255, 255, 0.78);
	--leafs-circle-banner-stat-border: rgba(255, 255, 255, 0.95);
	--leafs-circle-banner-stat-value: var(--leafs-text, #0f172a);
	--leafs-circle-banner-stat-label: var(--leafs-muted, #64748b);
	--leafs-circle-banner-btn-primary-bg: var(--leafs-brand, #2d6a4f);
	--leafs-circle-banner-btn-primary-fg: var(--leafs-on-primary, #fff);
	--leafs-circle-banner-btn-ghost-fg: var(--leafs-text, #0f172a);
	--leafs-circle-banner-btn-ghost-border: color-mix(in srgb, var(--leafs-brand) 35%, var(--leafs-border));
	--leafs-circle-banner-btn-ghost-bg: rgba(255, 255, 255, 0.55);
	position: relative;
	margin-bottom: 14px;
	border-radius: var(--leafs-radius-lg, 16px);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--leafs-brand) 22%, var(--leafs-border));
	box-shadow: 0 4px 24px color-mix(in srgb, var(--leafs-brand) 8%, transparent);
	min-height: 156px;
	color: var(--leafs-circle-banner-fg);
	isolation: isolate;
}

html[data-leafs-theme="dark"] .leafs-circle-banner {
	--leafs-circle-banner-fg: #f1f5f9;
	--leafs-circle-banner-muted: #cbd5e1;
	--leafs-circle-banner-grid: rgba(148, 163, 184, 0.22);
	--leafs-circle-banner-blob-1: #14b8a6;
	--leafs-circle-banner-blob-2: #3b82f6;
	--leafs-circle-banner-blob-3: #8b5cf6;
	--leafs-circle-banner-blob-4: #06b6d4;
	--leafs-circle-banner-node: #67e8f9;
	--leafs-circle-banner-spark: #a5b4fc;
	--leafs-circle-banner-stat-bg: rgba(15, 23, 42, 0.5);
	--leafs-circle-banner-stat-border: rgba(148, 163, 184, 0.35);
	--leafs-circle-banner-stat-value: #f8fafc;
	--leafs-circle-banner-stat-label: #cbd5e1;
	--leafs-circle-banner-btn-primary-bg: #f8fafc;
	--leafs-circle-banner-btn-primary-fg: var(--leafs-brand, #2d6a4f);
	--leafs-circle-banner-btn-ghost-fg: #f1f5f9;
	--leafs-circle-banner-btn-ghost-border: rgba(248, 250, 252, 0.4);
	--leafs-circle-banner-btn-ghost-bg: rgba(248, 250, 252, 0.08);
	box-shadow: 0 4px 28px rgba(0, 0, 0, 0.25);
}

html[data-leafs-theme="dark"] .leafs-circle-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		rgba(2, 6, 23, 0.55) 0%,
		rgba(30, 27, 75, 0.42) 50%,
		rgba(8, 47, 73, 0.48) 100%
	);
}

html[data-leafs-theme="dark"] .leafs-circle-banner__stop-a {
	stop-color: #0f172a;
}

html[data-leafs-theme="dark"] .leafs-circle-banner__stop-b {
	stop-color: #1e3a5f;
}

html[data-leafs-theme="dark"] .leafs-circle-banner__stop-c {
	stop-color: #312e81;
}

.leafs-circle-banner .leafs-circle-banner__text,
.leafs-circle-banner .leafs-circle-banner__aside {
	color: var(--leafs-circle-banner-fg);
}

.leafs-circle-banner .leafs-muted {
	color: var(--leafs-circle-banner-muted);
}

.leafs-circle-banner__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.leafs-circle-banner__bg-photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.38;
}

.leafs-circle-banner--has-image .leafs-circle-banner__svg {
	opacity: 0.78;
}

html[data-leafs-theme="dark"] .leafs-circle-banner--has-image .leafs-circle-banner__bg-photo {
	opacity: 0.28;
}

.leafs-circle-banner__svg {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 156px;
}

/* SVG 渐变呼吸 */
.leafs-circle-banner__stop-a,
.leafs-circle-banner__stop-b,
.leafs-circle-banner__stop-c {
	animation: leafs-circle-grad-shift 14s ease-in-out infinite alternate;
}

.leafs-circle-banner__stop-b {
	animation-delay: -5s;
}

.leafs-circle-banner__stop-c {
	animation-delay: -10s;
}

@keyframes leafs-circle-grad-shift {
	0% { stop-opacity: 1; }
	100% { stop-opacity: 0.82; }
}

.leafs-circle-banner__shine {
	animation: leafs-circle-shine 9s ease-in-out infinite alternate;
}

@keyframes leafs-circle-shine {
	0% { opacity: 0.75; }
	100% { opacity: 1; }
}

.leafs-circle-banner__grid {
	color: var(--leafs-circle-banner-grid);
}

.leafs-circle-banner__blob {
	fill-opacity: 0.38;
}

.leafs-circle-banner__blob--1 {
	fill: var(--leafs-circle-banner-blob-1);
	animation: leafs-circle-blob-a 16s ease-in-out infinite;
}

.leafs-circle-banner__blob--2 {
	fill: var(--leafs-circle-banner-blob-2);
	animation: leafs-circle-blob-b 20s ease-in-out infinite;
}

.leafs-circle-banner__blob--3 {
	fill: var(--leafs-circle-banner-blob-3);
	animation: leafs-circle-blob-c 18s ease-in-out infinite;
}

.leafs-circle-banner__blob--4 {
	fill: var(--leafs-circle-banner-blob-4);
	animation: leafs-circle-blob-d 22s ease-in-out infinite;
}

@keyframes leafs-circle-blob-a {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(24px, -14px) scale(1.06); }
}

@keyframes leafs-circle-blob-b {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(-30px, 10px) scale(0.94); }
}

@keyframes leafs-circle-blob-c {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(18px, 16px); }
}

@keyframes leafs-circle-blob-d {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-16px, -10px) scale(1.05); }
}

.leafs-circle-banner__ring--1 {
	stroke-dasharray: 12 18;
	animation: leafs-circle-ring-spin 28s linear infinite;
	transform-origin: 0 0;
}

.leafs-circle-banner__ring--2 {
	stroke-dasharray: 8 14;
	animation: leafs-circle-ring-spin 36s linear infinite reverse;
	transform-origin: 0 0;
}

@keyframes leafs-circle-ring-spin {
	to {
		transform: rotate(360deg);
	}
}

.leafs-circle-banner__link {
	stroke-dasharray: 6 10;
	animation: leafs-circle-link-pulse 5s ease-in-out infinite;
}

.leafs-circle-banner__link--2 {
	animation-delay: -1.6s;
}

.leafs-circle-banner__link--3 {
	animation-delay: -3.2s;
}

@keyframes leafs-circle-link-pulse {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 0.75; }
}

.leafs-circle-banner__node {
	fill: var(--leafs-circle-banner-node);
	fill-opacity: 0.85;
}

.leafs-circle-banner__node--1 { animation: leafs-circle-node-pulse 4s ease-in-out infinite; }
.leafs-circle-banner__node--2 { animation: leafs-circle-node-pulse 4s ease-in-out infinite -0.5s; }
.leafs-circle-banner__node--3 { animation: leafs-circle-node-pulse 4s ease-in-out infinite -1s; }
.leafs-circle-banner__node--4 { animation: leafs-circle-node-pulse 4s ease-in-out infinite -1.5s; }
.leafs-circle-banner__node--5 { animation: leafs-circle-node-pulse 4s ease-in-out infinite -2s; }
.leafs-circle-banner__node--6 { animation: leafs-circle-node-pulse 4s ease-in-out infinite -2.5s; }
.leafs-circle-banner__node--7 { animation: leafs-circle-node-pulse 4s ease-in-out infinite -3s; }
.leafs-circle-banner__node--8 { animation: leafs-circle-node-pulse 4s ease-in-out infinite -3.5s; }

@keyframes leafs-circle-node-pulse {
	0%, 100% { transform: scale(1); opacity: 0.7; }
	50% { transform: scale(1.35); opacity: 1; }
}

.leafs-circle-banner__flow-line {
	stroke-dasharray: 100 150;
	animation: leafs-circle-flow 16s linear infinite;
}

.leafs-circle-banner__flow-line--2 {
	stroke-dasharray: 70 110;
	animation-duration: 20s;
	animation-direction: reverse;
}

@keyframes leafs-circle-flow {
	to {
		stroke-dashoffset: -250;
	}
}

.leafs-circle-banner__spark {
	fill: var(--leafs-circle-banner-spark);
	fill-opacity: 0.75;
}

.leafs-circle-banner__spark--1 { animation: leafs-circle-spark-a 5s ease-in-out infinite; }
.leafs-circle-banner__spark--2 { animation: leafs-circle-spark-b 6s ease-in-out infinite; }
.leafs-circle-banner__spark--3 { animation: leafs-circle-spark-c 5.5s ease-in-out infinite; }
.leafs-circle-banner__spark--4 { animation: leafs-circle-spark-d 7s ease-in-out infinite; }
.leafs-circle-banner__spark--5 { animation: leafs-circle-spark-a 6.5s ease-in-out infinite -2s; }

@keyframes leafs-circle-spark-a {
	0%, 100% { transform: translate(0, 0); opacity: 0.45; }
	50% { transform: translate(5px, -7px); opacity: 1; }
}

@keyframes leafs-circle-spark-b {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(-6px, 4px); opacity: 0.95; }
}

@keyframes leafs-circle-spark-c {
	0%, 100% { opacity: 0.5; }
	50% { transform: translate(8px, 5px); opacity: 1; }
}

@keyframes leafs-circle-spark-d {
	0%, 100% { transform: translate(0, 0); opacity: 0.4; }
	50% { transform: translate(-4px, -5px); opacity: 0.9; }
}

.leafs-circle-banner__wave {
	fill: var(--leafs-surface, #fff);
	fill-opacity: 1;
	animation: leafs-circle-wave 9s ease-in-out infinite alternate;
	transform-origin: center bottom;
}

@keyframes leafs-circle-wave {
	0% { transform: translateY(0); }
	100% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
	.leafs-circle-banner__blob,
	.leafs-circle-banner__wave,
	.leafs-circle-banner__spark,
	.leafs-circle-banner__flow-line,
	.leafs-circle-banner__ring,
	.leafs-circle-banner__link,
	.leafs-circle-banner__node,
	.leafs-circle-banner__stop-a,
	.leafs-circle-banner__stop-b,
	.leafs-circle-banner__stop-c,
	.leafs-circle-banner__shine {
		animation: none;
	}
}

.leafs-circle-banner__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 18px 20px 14px;
	min-height: 156px;
	box-sizing: border-box;
}

.leafs-circle-banner__text {
	flex: 1 1 220px;
	min-width: 0;
}

.leafs-circle-banner__aside {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.leafs-circle-banner__kicker {
	margin: 0 0 4px;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--leafs-circle-banner-muted);
	font-weight: 600;
}

.leafs-circle-banner__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	line-height: 1.25;
	font-weight: 700;
	color: var(--leafs-circle-banner-fg);
}

.leafs-circle-banner__desc {
	margin: 6px 0 0;
	max-width: 44em;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--leafs-circle-banner-muted);
}

html[data-leafs-theme="dark"] .leafs-circle-banner__title {
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

html[data-leafs-theme="dark"] .leafs-circle-banner__desc {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.leafs-circle-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.leafs-circle-banner .leafs-btn--banner.leafs-btn--primary {
	background: var(--leafs-circle-banner-btn-primary-bg);
	color: var(--leafs-circle-banner-btn-primary-fg);
	border: none;
	box-shadow: 0 2px 12px color-mix(in srgb, var(--leafs-brand) 28%, transparent);
	font-size: 0.875rem;
	min-height: 36px;
	padding: 6px 16px;
}

.leafs-circle-banner .leafs-btn--banner.leafs-btn--primary:hover {
	filter: brightness(1.04);
	color: var(--leafs-circle-banner-btn-primary-fg);
}

.leafs-btn--on-banner.leafs-btn--ghost {
	border: 1px solid var(--leafs-circle-banner-btn-ghost-border);
	color: var(--leafs-circle-banner-btn-ghost-fg);
	background: var(--leafs-circle-banner-btn-ghost-bg);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	font-size: 0.875rem;
	min-height: 36px;
	padding: 6px 14px;
}

.leafs-btn--on-banner.leafs-btn--ghost:hover {
	background: color-mix(in srgb, var(--leafs-circle-banner-btn-ghost-bg) 80%, var(--leafs-surface));
	color: var(--leafs-circle-banner-btn-ghost-fg);
}

.leafs-circle-banner .leafs-circle-stats--banner {
	margin: 0;
	padding: 0;
	border: 0;
	gap: 8px 10px;
}

.leafs-circle-banner .leafs-circle-stats--banner .leafs-circle-stats__item {
	min-width: 76px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--leafs-circle-banner-stat-bg);
	border: 1px solid var(--leafs-circle-banner-stat-border);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	text-align: center;
	box-shadow: 0 2px 10px color-mix(in srgb, var(--leafs-text) 4%, transparent);
}

.leafs-circle-banner .leafs-circle-stats--banner .leafs-circle-stats__value {
	display: block;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--leafs-circle-banner-stat-value);
}

.leafs-circle-banner .leafs-circle-stats--banner .leafs-circle-stats__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--leafs-circle-banner-stat-label);
}

@media (max-width: 640px) {
	.leafs-circle-banner {
		min-height: 140px;
	}

	.leafs-circle-banner__svg {
		min-height: 140px;
	}

	.leafs-circle-banner__content {
		min-height: 0;
		padding: 14px 14px 12px;
	}

	.leafs-circle-banner__aside {
		align-items: flex-start;
		width: 100%;
	}

	.leafs-circle-form__inner--compose {
		padding: 12px;
	}
}

/* 中栏顶部发帖区 */
.leafs-circle-compose {
	margin-bottom: 10px;
}

.leafs-circle-form--compose {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.leafs-circle-form__inner--compose {
	padding: 12px 14px;
	border-radius: var(--leafs-radius-md, 12px);
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface);
	box-shadow: 0 2px 12px color-mix(in srgb, var(--leafs-text) 4%, transparent);
}

.leafs-circle-form--compose .leafs-circle-form__field {
	margin-bottom: 10px;
}

.leafs-circle-form--compose label {
	color: var(--leafs-text);
	font-size: 0.8125rem;
	font-weight: 600;
}

.leafs-circle-form--compose input,
.leafs-circle-form--compose textarea,
.leafs-circle-form--compose select {
	color: var(--leafs-text);
	background: var(--leafs-surface-2, #f8fafc);
	border-color: var(--leafs-border);
}

.leafs-circle-form--compose .leafs-circle-form__field textarea {
	min-height: 72px;
}

.leafs-circle-form__label {
	display: block;
	margin-bottom: 6px;
	color: var(--leafs-text);
	font-size: 0.8125rem;
	font-weight: 600;
}

.leafs-circle-form__upload {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.leafs-circle-form__upload-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.leafs-circle-form__upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px dashed color-mix(in srgb, var(--leafs-brand) 45%, var(--leafs-border));
	background: color-mix(in srgb, var(--leafs-brand) 8%, var(--leafs-surface-2, #f8fafc));
	color: var(--leafs-text);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.leafs-circle-form__upload-btn:hover {
	border-color: var(--leafs-brand);
	background: color-mix(in srgb, var(--leafs-brand) 14%, var(--leafs-surface));
	color: var(--leafs-text);
}

.leafs-circle-form__upload-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: var(--leafs-brand);
	color: var(--leafs-on-primary, #fff);
	font-size: 1rem;
	line-height: 1;
	font-weight: 700;
}

.leafs-circle-form__upload-hint {
	font-size: 0.75rem;
	color: var(--leafs-muted);
}

.leafs-circle-form__image-preview {
	position: relative;
	margin-top: 8px;
	max-width: 200px;
}

.leafs-circle-form__image-preview[hidden] {
	display: none !important;
}

.leafs-circle-form__preview-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 120px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--leafs-border);
}

.leafs-circle-form__preview-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.65);
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
}

.leafs-circle-form__field--inline select {
	max-width: 100%;
}

.leafs-circle__rail--left,
.leafs-circle__rail--right {
	min-width: 0;
}

.leafs-circle__widgets {
	min-width: 0;
	max-width: 100%;
}

.leafs-circle__widgets--left {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.leafs-circle__widgets--right {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.leafs-circle__widgets .leafs-widget {
	margin-bottom: 10px;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.leafs-circle__widgets .leafs-widget__title {
	color: var(--leafs-text);
}

/* 圈子侧栏小工具：与 .leafs-widget-area 同套防溢出规则（精选工具、左侧工具卡片、AI 资源网格等） */
.leafs-circle__widgets .leafs-widget.leafs-wp-widget {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: clip;
}

.leafs-circle__widgets .leafs-widget.leafs-wp-widget > :not(.leafs-widget__title) {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.leafs-circle__widgets .leafs-widget.leafs-wp-widget > .lumo-ai-res,
.leafs-circle__widgets .leafs-widget.leafs-wp-widget > .leafs-side-tool-cards,
.leafs-circle__widgets .leafs-widget.leafs-wp-widget > .lumo-picked-tools,
.leafs-circle__widgets .leafs-widget.leafs-wp-widget > ul.lumo-picked-tools,
.leafs-circle__widgets .leafs-widget.leafs-wp-widget > .leafs-panel.leafs-panel--side-daily-share,
.leafs-circle__widgets .leafs-widget.leafs-wp-widget > .leafs-panel.leafs-panel--side-tools,
.leafs-circle__widgets .leafs-widget.leafs-wp-widget > section.leafs-panel,
.leafs-circle__widgets .leafs-widget.leafs-wp-widget > aside.leafs-ad-slot {
	overflow: visible;
	overflow-wrap: normal;
	word-break: normal;
}

.leafs-circle__widgets .leafs-widget.leafs-wp-widget img,
.leafs-circle__widgets .leafs-widget.leafs-wp-widget video {
	max-width: 100%;
	height: auto;
}

.leafs-circle__widgets .lumo-picked-tools {
	min-width: 0;
	max-width: 100%;
}

.leafs-circle__widgets .lumo-picked-tools__link {
	min-width: 0;
	max-width: 100%;
}

.leafs-circle__widgets .lumo-picked-tools__name {
	max-width: 100%;
}

/* 窄侧栏内 AI 资源双列易挤压，改为单列 */
.leafs-circle__widgets .lumo-ai-res__grid {
	grid-template-columns: 1fr;
}

.leafs-circle__widgets .leafs-side-card__inner {
	padding: 14px 14px;
}

.leafs-circle__widgets .leafs-side-card__visual {
	width: min(38%, 120px);
}

/* 近期用户（小工具） */
.lumo-widget-circle-recent-users .leafs-circle-recent-users-wrap,
.leafs-circle-panel--recent-users {
	padding: 12px;
	border-radius: var(--leafs-radius-md, 12px);
	border: 1px solid var(--leafs-border);
	background: linear-gradient(
		160deg,
		color-mix(in srgb, var(--leafs-brand) 6%, var(--leafs-surface)),
		var(--leafs-surface)
	);
}

.leafs-circle-recent-users {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.leafs-circle-recent-users__item {
	border-radius: 10px;
	overflow: hidden;
}

.leafs-circle-recent-users__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--leafs-text);
	background: color-mix(in srgb, var(--leafs-surface-2, #f1f5f9) 55%, transparent);
	border: 1px solid transparent;
	transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.leafs-circle-recent-users__link:hover {
	background: var(--leafs-surface-2, #f1f5f9);
	border-color: color-mix(in srgb, var(--leafs-brand) 25%, var(--leafs-border));
	color: var(--leafs-text);
	transform: translateX(2px);
}

.leafs-circle-recent-users__avatar-wrap {
	position: relative;
	flex-shrink: 0;
}

.leafs-circle-recent-users__avatar {
	border-radius: 50%;
	display: block;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--leafs-brand) 18%, transparent);
}

.leafs-circle-recent-users__status {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid var(--leafs-surface);
}

.leafs-circle-recent-users__body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.leafs-circle-recent-users__name {
	font-size: 0.8125rem;
	font-weight: 650;
	color: var(--leafs-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.leafs-circle-recent-users__time {
	font-size: 0.7rem;
	color: var(--leafs-muted);
}

.leafs-circle__hero {
	margin-bottom: 24px;
	padding: 28px 32px;
	border-radius: var(--leafs-radius-lg, 16px);
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--leafs-brand, #2d6a4f) 14%, var(--leafs-surface, #fff)),
		color-mix(in srgb, var(--leafs-brand, #2d6a4f) 6%, var(--leafs-surface-2, #f8fafc))
	);
	border: 1px solid color-mix(in srgb, var(--leafs-brand) 18%, transparent);
}

.leafs-circle__kicker {
	margin: 0 0 6px;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--leafs-muted, #64748b);
}

.leafs-circle__title {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.25;
}

.leafs-circle__subtitle {
	margin: 0;
	max-width: 52em;
	color: var(--leafs-muted, #64748b);
	line-height: 1.6;
}

.leafs-circle__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

@media (min-width: 1025px) {
	.leafs-circle__layout:not(.leafs-circle__layout--rich):not(.leafs-circle__layout--single) {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	}
}

.leafs-circle__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.leafs-circle__sort,
.leafs-circle__regions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.leafs-circle__sort-btn,
.leafs-circle__region-btn,
.leafs-circle__cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.875rem;
	text-decoration: none;
	border: 1px solid color-mix(in srgb, var(--leafs-border, #e2e8f0) 80%, transparent);
	background: var(--leafs-surface, #fff);
	color: var(--leafs-text, #0f172a);
	transition: border-color 0.15s, background 0.15s;
}

.leafs-circle__sort-btn.is-active,
.leafs-circle__region-btn.is-active,
.leafs-circle__cat-pill.is-active {
	border-color: var(--leafs-brand, #2d6a4f);
	background: color-mix(in srgb, var(--leafs-brand) 12%, var(--leafs-surface));
	color: var(--leafs-brand, #2d6a4f);
	font-weight: 600;
}

.leafs-circle__region-btn--cn.is-active {
	border-color: hsl(8 70% 48%);
	background: color-mix(in srgb, hsl(8 70% 48%) 12%, var(--leafs-surface));
	color: hsl(8 55% 38%);
}

.leafs-circle__region-btn--intl.is-active {
	border-color: hsl(252 60% 52%);
	background: color-mix(in srgb, hsl(252 60% 52%) 12%, var(--leafs-surface));
	color: hsl(252 45% 42%);
}

.leafs-circle__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.leafs-circle__cat-count {
	font-size: 0.75rem;
	opacity: 0.7;
}

/* 话题列表容器（归档信息流在 leafs-circle-ui.css 覆盖） */
.leafs-circle__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.leafs-circle-topic__cover {
	margin: 0 0 16px;
	border-radius: var(--leafs-radius-md, 12px);
	overflow: hidden;
	border: 1px solid var(--leafs-border);
}

.leafs-circle-topic__cover-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}

html[data-leafs-theme="dark"] .leafs-circle__sort-btn,
html[data-leafs-theme="dark"] .leafs-circle__cat-pill {
	background: var(--leafs-surface);
	color: var(--leafs-text);
}

/* Contribution badge */
.leafs-circle-badge,
.leafs-circle-badge-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1;
	vertical-align: middle;
}

.leafs-circle-badge-link {
	text-decoration: none;
	color: inherit;
}

.leafs-circle-badge {
	padding: 2px 7px 2px 4px;
	border-radius: 999px;
	background: color-mix(
		in srgb,
		hsl(var(--leafs-circle-badge-hue, 210) 55% 48%) 14%,
		var(--leafs-surface-2, #f1f5f9)
	);
	border: 1px solid color-mix(in srgb, hsl(var(--leafs-circle-badge-hue, 210) 50% 45%) 28%, transparent);
	color: hsl(var(--leafs-circle-badge-hue, 210) 45% 32%);
}

.leafs-circle-badge__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: hsl(var(--leafs-circle-badge-hue, 210) 62% 46%);
	box-shadow: 0 0 0 2px color-mix(in srgb, hsl(var(--leafs-circle-badge-hue) 62% 46%) 25%, transparent);
}

.leafs-circle-badge--cn .leafs-circle-badge__dot {
	background: hsl(var(--leafs-circle-badge-hue, 18) 72% 48%);
}

.leafs-circle-badge--intl .leafs-circle-badge__dot {
	background: hsl(var(--leafs-circle-badge-hue, 252) 58% 52%);
}

.leafs-circle-badge--star .leafs-circle-badge__dot {
	box-shadow: 0 0 6px color-mix(in srgb, hsl(var(--leafs-circle-badge-hue) 70% 50%) 60%, transparent);
}

.leafs-comment-card__meta .leafs-circle-badge {
	margin-left: 4px;
}

/* Single topic + archive breadcrumb */
.leafs-circle__breadcrumb {
	margin-bottom: 16px;
	color: var(--leafs-muted);
}

.leafs-circle__breadcrumb--archive {
	margin-top: -4px;
	margin-bottom: 18px;
}

.leafs-circle__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
}

.leafs-circle__breadcrumb-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.leafs-circle__breadcrumb-item:not(:last-child)::after {
	content: '/';
	color: color-mix(in srgb, var(--leafs-muted) 70%, transparent);
	pointer-events: none;
}

.leafs-circle__breadcrumb a {
	color: var(--leafs-muted);
	text-decoration: none;
}

.leafs-circle__breadcrumb a:hover {
	color: var(--leafs-brand);
}

.leafs-circle__breadcrumb-current {
	color: var(--leafs-text);
	max-width: 20em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.leafs-circle-topic {
	padding: 24px 28px;
	border-radius: var(--leafs-radius-lg, 16px);
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface);
	margin-bottom: 28px;
}

.leafs-circle-topic__title {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	line-height: 1.3;
}

.leafs-circle-topic__lead {
	margin: 0 0 16px;
	font-size: 1rem;
	color: var(--leafs-muted);
	line-height: 1.65;
}

.leafs-circle-topic__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--leafs-border);
	margin-bottom: 16px;
}

.leafs-circle-topic__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.leafs-circle-topic__name {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.leafs-circle-topic__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
	color: var(--leafs-muted);
}

.leafs-circle-topic__region {
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
}

.leafs-circle-topic__region--global {
	background: color-mix(in srgb, hsl(215 60% 50%) 12%, transparent);
	color: hsl(215 45% 38%);
}

.leafs-circle-topic__region--cn {
	background: color-mix(in srgb, hsl(8 70% 50%) 12%, transparent);
	color: hsl(8 50% 40%);
}

.leafs-circle-topic__region--intl {
	background: color-mix(in srgb, hsl(252 60% 55%) 12%, transparent);
	color: hsl(252 42% 42%);
}

.leafs-circle-topic__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.leafs-circle-topic__body {
	font-size: 1rem;
	line-height: 1.75;
}

.leafs-circle-topic__body img,
.leafs-circle-topic__body video,
.leafs-circle-topic__body iframe,
.leafs-circle-topic__body pre,
.leafs-circle-topic__body table {
	max-width: 100%;
	height: auto;
}

.leafs-circle-topic__body pre,
.leafs-circle-topic__body table {
	overflow-x: auto;
	display: block;
}

.leafs-circle-discuss {
	margin-top: 8px;
}

.leafs-circle-discuss__title {
	margin: 0 0 6px;
	font-size: 1.2rem;
}

.leafs-circle-discuss__hint {
	margin: 0 0 16px;
	font-size: 0.875rem;
	color: var(--leafs-muted);
}

/* Submit form */
.leafs-circle-form {
	padding: 18px;
	border-radius: var(--leafs-radius-md, 12px);
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface);
	margin-bottom: 16px;
}

.leafs-circle-form__field {
	margin: 0 0 12px;
}

.leafs-circle-form__field label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.85rem;
	font-weight: 600;
}

.leafs-circle-form__field input,
.leafs-circle-form__field textarea,
.leafs-circle-form__field select {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface-2, #f8fafc);
	color: var(--leafs-text);
}

.leafs-circle-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 520px) {
	.leafs-circle-form__row {
		grid-template-columns: 1fr;
	}
}

.leafs-circle-form__notice {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 0.875rem;
}

.leafs-circle-form__notice--ok {
	background: color-mix(in srgb, var(--leafs-brand) 12%, transparent);
	color: var(--leafs-brand);
}

.leafs-circle-form__notice--err {
	background: color-mix(in srgb, #dc2626 12%, transparent);
	color: #b91c1c;
}

html[data-leafs-theme="dark"] .leafs-circle-form__notice--err {
	background: color-mix(in srgb, #dc2626 22%, transparent);
	color: #fca5a5;
}

html[data-leafs-theme="dark"] .leafs-circle-form__notice--ok {
	color: color-mix(in srgb, var(--leafs-brand) 80%, #fff);
}

.leafs-circle-form__hint {
	margin: 8px 0 0;
	font-size: 0.78rem;
	color: var(--leafs-muted);
}

.leafs-circle__empty {
	padding: 32px;
	text-align: center;
	color: var(--leafs-muted);
	border: 1px dashed var(--leafs-border);
	border-radius: 12px;
}

.leafs-circle__empty .leafs-btn {
	margin-top: 12px;
}

/* —— 饱满布局：三栏 + 统计 + 置顶 —— */
.leafs-circle__hero--rich {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px 32px;
	align-items: end;
}

.leafs-circle__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.leafs-circle-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.leafs-circle-stats__item {
	min-width: 88px;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--leafs-surface, #fff);
	border: 1px solid color-mix(in srgb, var(--leafs-brand) 20%, var(--leafs-border));
	text-align: center;
}

.leafs-circle-stats__value {
	display: block;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--leafs-brand);
	line-height: 1.2;
}

.leafs-circle-stats__label {
	font-size: 0.75rem;
	color: var(--leafs-muted);
}

.leafs-circle-pinned {
	margin-bottom: 22px;
}

.leafs-circle-pinned__title {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 650;
}

.leafs-circle-pinned__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
}

.leafs-circle-pinned__card {
	flex: 0 0 min(320px, 85vw);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--leafs-border);
	background: linear-gradient(145deg, var(--leafs-surface), var(--leafs-surface-2, #f8fafc));
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, transform 0.15s;
}

.leafs-circle-pinned__card:hover {
	border-color: color-mix(in srgb, var(--leafs-brand) 40%, var(--leafs-border));
	transform: translateY(-2px);
}

.leafs-circle-pinned__text {
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.leafs-circle-pinned__region {
	align-self: flex-start;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
}

.leafs-circle-pinned__region--global { background: color-mix(in srgb, hsl(215 60% 50%) 14%, transparent); color: hsl(215 45% 38%); }
.leafs-circle-pinned__region--cn { background: color-mix(in srgb, hsl(8 70% 50%) 14%, transparent); color: hsl(8 50% 40%); }
.leafs-circle-pinned__region--intl { background: color-mix(in srgb, hsl(252 60% 55%) 14%, transparent); color: hsl(252 42% 42%); }

.leafs-circle-pinned__meta {
	font-size: 0.78rem;
	color: var(--leafs-muted);
}

.leafs-circle__layout--rich {
	--leafs-circle-rail-left-w: 280px;
	--leafs-circle-rail-right-w: 280px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.leafs-circle__rail--left,
.leafs-circle__rail--right {
	display: none;
}

.leafs-circle--uied .leafs-circle__primary {
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
}

@media (min-width: 1100px) {
	.leafs-circle__layout--rich {
		grid-template-columns:
			minmax(0, var(--leafs-circle-rail-left-w))
			minmax(0, 1fr)
			minmax(0, var(--leafs-circle-rail-right-w));
		gap: 24px;
	}

	.leafs-circle__layout--single {
		grid-template-columns: minmax(0, 1fr) minmax(0, var(--leafs-circle-rail-right-w, 300px));
	}

	.leafs-circle__rail--left,
	.leafs-circle__rail--right {
		display: block;
		position: sticky;
		top: calc(var(--leafs-header-h, 64px) + 12px);
	}

	.leafs-circle__rail--left {
		max-height: none;
		overflow: visible;
	}

	.leafs-circle__rail--right {
		max-height: calc(100vh - var(--leafs-header-h, 64px) - 24px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

@media (min-width: 1280px) {
	.leafs-circle__layout--rich {
		--leafs-circle-rail-left-w: 300px;
		--leafs-circle-rail-right-w: 300px;
		gap: 28px;
	}

	.leafs-circle__layout--single {
		--leafs-circle-rail-right-w: 300px;
	}
}

.leafs-circle-catgrid__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.leafs-circle-catgrid__card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, background 0.15s;
}

.leafs-circle-catgrid__card:hover,
.leafs-circle-catgrid__card.is-active {
	border-color: var(--leafs-brand);
	background: color-mix(in srgb, var(--leafs-brand) 8%, var(--leafs-surface));
}

.leafs-circle-catgrid__name {
	font-weight: 650;
	font-size: 0.9rem;
}

.leafs-circle-catgrid__desc {
	font-size: 0.78rem;
	color: var(--leafs-muted);
	line-height: 1.45;
}

.leafs-circle-catgrid__count {
	font-size: 0.72rem;
	color: var(--leafs-muted);
}

.leafs-circle-panel {
	padding: 16px;
	margin-bottom: 14px;
	border-radius: 12px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface);
}

.leafs-circle-panel__title {
	margin: 0 0 8px;
	font-size: 0.875rem;
	font-weight: 650;
	color: var(--leafs-text);
}

.leafs-circle-panel {
	color: var(--leafs-text);
	border-color: var(--leafs-border);
	background: var(--leafs-surface);
}

.leafs-circle-hotlist a {
	color: var(--leafs-text);
}

.leafs-circle-hotlist__count {
	color: var(--leafs-muted);
}

.leafs-circle-panel__desc {
	margin: -6px 0 10px;
	font-size: 0.78rem;
	color: var(--leafs-muted);
}

.leafs-circle-hotlist {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hot;
}

.leafs-circle-hotlist li {
	counter-increment: hot;
}

.leafs-circle-hotlist a {
	display: grid;
	grid-template-columns: 22px 1fr auto;
	gap: 8px;
	align-items: start;
	padding: 8px 0;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid color-mix(in srgb, var(--leafs-border) 60%, transparent);
}

.leafs-circle-hotlist li:last-child a {
	border-bottom: none;
}

.leafs-circle-hotlist__rank {
	font-weight: 700;
	color: var(--leafs-brand);
	font-size: 0.85rem;
}

.leafs-circle-hotlist__title {
	font-size: 0.85rem;
	line-height: 1.4;
}

.leafs-circle-hotlist__count {
	font-size: 0.75rem;
	color: var(--leafs-muted);
}

.leafs-circle-rank {
	margin: 0;
	padding: 0;
	list-style: none;
}

.leafs-circle-rank__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
}

.leafs-circle-rank__pos {
	width: 18px;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--leafs-muted);
}

.leafs-circle-rank__avatar {
	border-radius: 50%;
}

.leafs-circle-rank__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.leafs-circle-rank__name {
	font-size: 0.85rem;
	font-weight: 600;
}

.leafs-circle-legend {
	padding: 12px;
	border-radius: var(--leafs-radius-md, 12px);
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface);
	color: var(--leafs-text);
}

.leafs-circle-legend .leafs-circle-panel__title {
	color: var(--leafs-text);
}

.leafs-circle-legend .leafs-circle-panel__desc {
	color: var(--leafs-muted);
	font-size: 0.75rem;
	line-height: 1.45;
}

.leafs-circle-legend__tiers {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.leafs-circle-legend__tiers li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	padding: 6px 8px;
	border-radius: 8px;
	color: var(--leafs-text);
	background: color-mix(in srgb, var(--leafs-brand) 5%, var(--leafs-surface-2, #f8fafc));
}

.leafs-circle-legend__min {
	margin-left: auto;
	font-size: 0.7rem;
	color: var(--leafs-muted);
}

.leafs-circle-actions--compact {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	border: 0;
}

.leafs-circle-actions--compact .leafs-circle-actions__btn {
	padding: 3px 8px;
	font-size: 0.72rem;
	min-height: 0;
	border-radius: 6px;
}

.leafs-circle-form__compose {
	margin-bottom: 8px;
}

.leafs-circle-form__compose textarea {
	width: 100%;
	min-height: 56px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface-2, #f8fafc);
	font-size: 0.875rem;
	resize: vertical;
	box-sizing: border-box;
}

.leafs-circle-form__compose .leafs-comment-sketch-canvas {
	max-width: 100%;
	height: auto;
}

.leafs-circle-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--leafs-border);
}

.leafs-circle-actions__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface-2, #f8fafc);
	font-size: 0.85rem;
	cursor: pointer;
	text-decoration: none;
	color: var(--leafs-text);
	transition: border-color 0.15s, background 0.15s;
}

.leafs-circle-actions__btn:hover:not(:disabled) {
	border-color: var(--leafs-brand);
}

.leafs-circle-actions__btn.is-active {
	border-color: var(--leafs-brand);
	background: color-mix(in srgb, var(--leafs-brand) 12%, transparent);
	color: var(--leafs-brand);
}

.leafs-circle-actions__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.leafs-circle-actions__btn--like.is-active {
	color: #e11d48;
	border-color: color-mix(in srgb, #e11d48 35%, var(--leafs-border));
}

.leafs-circle-actions__btn--fav.is-active {
	color: #d97706;
	border-color: color-mix(in srgb, #d97706 35%, var(--leafs-border));
}

.leafs-card--circle-fav {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.leafs-card--circle-fav .leafs-card__main {
	flex: 1;
	min-width: 0;
}

.leafs-card--circle-fav .leafs-fav-btn {
	flex-shrink: 0;
	margin-top: 2px;
}

.leafs-circle-tools {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--leafs-border);
}

.leafs-circle-tools__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.leafs-circle-tools__card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface-2, #f8fafc);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s;
}

.leafs-circle-tools__card:hover {
	border-color: color-mix(in srgb, var(--leafs-brand) 35%, var(--leafs-border));
}

.leafs-circle-tools__icon-wrap {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--leafs-surface);
}

.leafs-circle-tools__icon {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.leafs-circle-tools__info {
	flex: 1;
	min-width: 0;
}

.leafs-circle-tools__name {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
}

.leafs-circle-tools__tagline {
	display: block;
	font-size: 0.78rem;
	color: var(--leafs-muted);
	margin-top: 2px;
}

/* —— 用户中心 / 作者页 —— */
.leafs-uc-circle-contrib {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid color-mix(in srgb, var(--leafs-border) 70%, transparent);
}

.leafs-uc-circle-contrib__label {
	display: block;
	font-size: 0.72rem;
	color: var(--leafs-muted);
	margin-bottom: 6px;
}

.leafs-uc-circle-contrib__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

#leafs-uc-circle .leafs-uc-circle-contrib--panel {
	margin: 0 0 14px;
	padding: 14px 16px;
	border: 1px solid var(--leafs-border);
	border-radius: 14px;
	background: color-mix(in srgb, var(--leafs-brand) 4%, var(--leafs-surface));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
}

#leafs-uc-circle .leafs-uc-circle-contrib--panel .leafs-uc-circle-contrib__label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--leafs-text);
	white-space: nowrap;
	flex-shrink: 0;
}

#leafs-uc-circle .leafs-uc-circle-contrib--panel .leafs-uc-circle-contrib__badges {
	flex: 0 1 auto;
	justify-content: flex-end;
}

#leafs-uc-circle .leafs-uc-circle-contrib--panel .leafs-circle-badge {
	padding: 5px 12px 5px 8px;
	font-size: 0.8125rem;
	gap: 6px;
}

#leafs-uc-circle .leafs-uc-circle-contrib--panel .leafs-circle-badge__dot {
	width: 8px;
	height: 8px;
}

.leafs-uc-circle-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

#leafs-uc-circle .leafs-uc-circle-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin: 0 0 18px;
	padding: 5px;
	border-radius: 14px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface2);
}

.leafs-uc-circle-tabs__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--leafs-border);
	text-decoration: none;
	font-size: 0.85rem;
	color: var(--leafs-text);
	background: var(--leafs-surface-2, #f8fafc);
}

#leafs-uc-circle .leafs-uc-circle-tabs__btn {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 64px;
	padding: 10px 8px;
	border: none;
	border-radius: 10px;
	background: transparent;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--leafs-muted);
	text-align: center;
	line-height: 1.3;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

#leafs-uc-circle .leafs-uc-circle-tabs__label {
	display: block;
	white-space: nowrap;
}

#leafs-uc-circle .leafs-uc-circle-tabs__count {
	display: block;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
	color: var(--leafs-text);
	font-variant-numeric: tabular-nums;
	opacity: 1;
}

.leafs-uc-circle-tabs__btn.is-active {
	border-color: var(--leafs-brand);
	background: color-mix(in srgb, var(--leafs-brand) 10%, var(--leafs-surface));
	color: var(--leafs-brand);
	font-weight: 600;
}

#leafs-uc-circle .leafs-uc-circle-tabs__btn.is-active {
	border: none;
	background: var(--leafs-surface);
	color: var(--leafs-brand);
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
	font-weight: 600;
}

#leafs-uc-circle .leafs-uc-circle-tabs__btn.is-active .leafs-uc-circle-tabs__count {
	color: var(--leafs-brand);
}

#leafs-uc-circle .leafs-uc-circle-tabs__btn:hover:not(.is-active) {
	background: color-mix(in srgb, var(--leafs-brand) 6%, transparent);
	color: var(--leafs-text);
}

.leafs-uc-circle-tabs__btn span:not(.leafs-uc-circle-tabs__label):not(.leafs-uc-circle-tabs__count) {
	font-size: 0.75rem;
	opacity: 0.75;
}

@media (max-width: 480px) {
	#leafs-uc-circle .leafs-uc-panel__head {
		flex-direction: column;
		align-items: stretch;
	}

	#leafs-uc-circle .leafs-uc-panel__head .leafs-btn {
		width: 100%;
		justify-content: center;
	}

	#leafs-uc-circle .leafs-uc-circle-contrib--panel {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	#leafs-uc-circle .leafs-uc-circle-contrib--panel .leafs-uc-circle-contrib__badges {
		justify-content: center;
	}

	#leafs-uc-circle .leafs-uc-circle-tabs__btn {
		min-height: 58px;
		padding: 8px 4px;
	}

	#leafs-uc-circle .leafs-uc-circle-tabs__label {
		font-size: 0.75rem;
	}

	#leafs-uc-circle .leafs-uc-circle-tabs__count {
		font-size: 1rem;
	}

	.leafs-uc-circle-item__inner {
		flex-wrap: wrap;
		gap: 8px;
	}

	.leafs-uc-circle-unfollow {
		margin-left: auto;
	}
}

.leafs-uc-circle-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.leafs-uc-circle-item {
	border-bottom: 1px solid color-mix(in srgb, var(--leafs-border) 65%, transparent);
}

.leafs-uc-circle-item__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.leafs-uc-circle-item:last-child {
	border-bottom: none;
}

.leafs-uc-circle-item__link {
	display: block;
	flex: 1;
	min-width: 0;
	padding: 12px 0;
	text-decoration: none;
	color: inherit;
}

.leafs-uc-circle-unfollow {
	flex-shrink: 0;
	white-space: nowrap;
}

.leafs-uc-circle-item__link:hover .leafs-uc-circle-item__title {
	color: var(--leafs-brand);
}

.leafs-uc-circle-item__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.leafs-uc-circle-item__title {
	font-size: 0.95rem;
}

.leafs-uc-circle-item__region {
	font-size: 0.68rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
}

.leafs-uc-circle-item__region--global { background: color-mix(in srgb, hsl(215 60% 50%) 12%, transparent); color: hsl(215 45% 38%); }
.leafs-uc-circle-item__region--cn { background: color-mix(in srgb, hsl(8 70% 50%) 12%, transparent); color: hsl(8 50% 40%); }
.leafs-uc-circle-item__region--intl { background: color-mix(in srgb, hsl(252 60% 55%) 12%, transparent); color: hsl(252 42% 42%); }

.leafs-uc-circle-item__excerpt {
	margin: 0 0 6px;
	font-size: 0.82rem;
	line-height: 1.45;
}

.leafs-uc-circle-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.78rem;
}

.leafs-author-public__circle-badges {
	margin-top: 12px;
}

.leafs-author-public__circle-section {
	margin-top: 20px;
	padding: 20px 22px;
}

.leafs-author-public__circle-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.leafs-author-circle-row__link {
	display: block;
	padding: 12px 0;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid color-mix(in srgb, var(--leafs-border) 60%, transparent);
}

.leafs-author-circle-row:last-child .leafs-author-circle-row__link {
	border-bottom: none;
}

.leafs-author-circle-row__title {
	margin: 0 0 4px;
	font-size: 1rem;
}

.leafs-author-circle-row__excerpt {
	margin: 0 0 6px;
	font-size: 0.85rem;
}

.leafs-author-circle-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.78rem;
}

.leafs-author-public__circle-more {
	margin: 12px 0 0;
}

@media (max-width: 900px) {
	.leafs-circle__hero--rich {
		grid-template-columns: 1fr;
	}

	.leafs-circle-stats {
		width: 100%;
		justify-content: space-between;
	}

	.leafs-circle-stats__item {
		flex: 1;
		min-width: 0;
	}
}

/* —— 圈子 · 夜间模式配色统一 —— */
html[data-leafs-theme="dark"] .leafs-circle__sort-btn.is-active,
html[data-leafs-theme="dark"] .leafs-circle__cat-pill.is-active {
	color: color-mix(in srgb, var(--leafs-brand) 72%, #fff);
	background: color-mix(in srgb, var(--leafs-brand) 24%, var(--leafs-surface));
	border-color: color-mix(in srgb, var(--leafs-brand) 45%, var(--leafs-border));
}

html[data-leafs-theme="dark"] .leafs-circle-topic__region--global,
html[data-leafs-theme="dark"] .leafs-circle-pinned__region--global,
html[data-leafs-theme="dark"] .leafs-uc-circle-item__region--global {
	color: hsl(215 75% 78%);
	background: color-mix(in srgb, hsl(215 55% 48%) 24%, var(--leafs-surface));
}

html[data-leafs-theme="dark"] .leafs-circle-topic__region--cn,
html[data-leafs-theme="dark"] .leafs-circle-pinned__region--cn,
html[data-leafs-theme="dark"] .leafs-uc-circle-item__region--cn {
	color: hsl(8 80% 78%);
	background: color-mix(in srgb, hsl(8 60% 48%) 24%, var(--leafs-surface));
}

html[data-leafs-theme="dark"] .leafs-circle-topic__region--intl,
html[data-leafs-theme="dark"] .leafs-circle-pinned__region--intl,
html[data-leafs-theme="dark"] .leafs-uc-circle-item__region--intl {
	color: hsl(252 75% 82%);
	background: color-mix(in srgb, hsl(252 55% 52%) 24%, var(--leafs-surface));
}

html[data-leafs-theme="dark"] .leafs-circle-badge {
	color: hsl(var(--leafs-circle-badge-hue, 210) 70% 84%);
	background: color-mix(
		in srgb,
		hsl(var(--leafs-circle-badge-hue, 210) 50% 42%) 22%,
		var(--leafs-surface-2)
	);
	border-color: color-mix(in srgb, hsl(var(--leafs-circle-badge-hue, 210) 55% 48%) 38%, transparent);
}


html[data-leafs-theme="dark"] .leafs-circle-legend,
html[data-leafs-theme="dark"] .leafs-circle-panel,
html[data-leafs-theme="dark"] .leafs-circle-form,
html[data-leafs-theme="dark"] .leafs-circle-stats__item {
	background: var(--leafs-surface);
	border-color: var(--leafs-border);
}

html[data-leafs-theme="dark"] .leafs-circle-legend__tiers li {
	background: color-mix(in srgb, var(--leafs-brand) 14%, var(--leafs-surface-2));
}

html[data-leafs-theme="dark"] .leafs-circle-form__inner--compose {
	background: var(--leafs-surface);
	border-color: var(--leafs-border);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

html[data-leafs-theme="dark"] .leafs-circle-form--compose input,
html[data-leafs-theme="dark"] .leafs-circle-form--compose textarea,
html[data-leafs-theme="dark"] .leafs-circle-form--compose select,
html[data-leafs-theme="dark"] .leafs-circle-form__field input,
html[data-leafs-theme="dark"] .leafs-circle-form__field textarea,
html[data-leafs-theme="dark"] .leafs-circle-form__field select {
	background: var(--leafs-surface-2);
	border-color: var(--leafs-border);
	color: var(--leafs-text);
}

html[data-leafs-theme="dark"] .leafs-circle-form__upload-btn {
	background: color-mix(in srgb, var(--leafs-brand) 16%, var(--leafs-surface-2));
	border-color: color-mix(in srgb, var(--leafs-brand) 40%, var(--leafs-border));
	color: var(--leafs-text);
}

html[data-leafs-theme="dark"] .leafs-circle-form__upload-btn:hover {
	background: color-mix(in srgb, var(--leafs-brand) 24%, var(--leafs-surface));
}

html[data-leafs-theme="dark"] .leafs-circle-pinned__card {
	background: linear-gradient(
		145deg,
		var(--leafs-surface),
		color-mix(in srgb, var(--leafs-surface-2) 75%, var(--leafs-surface))
	);
	color: var(--leafs-text);
}

html[data-leafs-theme="dark"] .leafs-circle-catgrid__card {
	background: var(--leafs-surface);
	color: var(--leafs-text);
}

html[data-leafs-theme="dark"] .leafs-circle-catgrid__card:hover,
html[data-leafs-theme="dark"] .leafs-circle-catgrid__card.is-active {
	background: color-mix(in srgb, var(--leafs-brand) 20%, var(--leafs-surface));
}

html[data-leafs-theme="dark"] .leafs-circle-actions__btn {
	background: var(--leafs-surface-2);
	color: var(--leafs-text);
	border-color: var(--leafs-border);
}

html[data-leafs-theme="dark"] .leafs-circle-actions__btn.is-active {
	color: color-mix(in srgb, var(--leafs-brand) 75%, #fff);
}

html[data-leafs-theme="dark"] .leafs-circle-actions__btn--like.is-active {
	color: #fb7185;
}

html[data-leafs-theme="dark"] .leafs-circle-actions__btn--fav.is-active {
	color: #fbbf24;
}

html[data-leafs-theme="dark"] .leafs-circle-tools__card {
	background: var(--leafs-surface-2);
	border-color: var(--leafs-border);
	color: var(--leafs-text);
}

html[data-leafs-theme="dark"] .leafs-circle-recent-users__link {
	background: color-mix(in srgb, var(--leafs-surface-2) 65%, transparent);
	color: var(--leafs-text);
	border-color: transparent;
}

html[data-leafs-theme="dark"] .leafs-circle-recent-users__link:hover {
	background: var(--leafs-surface-2);
	border-color: color-mix(in srgb, var(--leafs-brand) 30%, var(--leafs-border));
}

html[data-leafs-theme="dark"] .lumo-widget-circle-recent-users .leafs-circle-recent-users-wrap,
html[data-leafs-theme="dark"] .leafs-circle-panel--recent-users {
	background: linear-gradient(
		160deg,
		color-mix(in srgb, var(--leafs-brand) 12%, var(--leafs-surface)),
		var(--leafs-surface)
	);
	border-color: var(--leafs-border);
}

html[data-leafs-theme="dark"] .leafs-circle__widgets .lumo-picked-tools__link {
	background: color-mix(in srgb, var(--leafs-surface-2) 70%, transparent);
	border-color: var(--leafs-border);
	color: var(--leafs-text);
}

html[data-leafs-theme="dark"] .leafs-circle__widgets .lumo-picked-tools__link:hover {
	background: var(--leafs-surface-2);
	border-color: color-mix(in srgb, var(--leafs-brand) 35%, var(--leafs-border));
}

html[data-leafs-theme="dark"] .leafs-circle__widgets .lumo-ai-res,
html[data-leafs-theme="dark"] .leafs-circle__widgets .lumo-ai-res__cell {
	background: var(--leafs-surface);
	border-color: var(--leafs-border);
	color: var(--leafs-text);
}

html[data-leafs-theme="dark"] .leafs-circle__widgets .lumo-ai-res__cell:hover {
	background: color-mix(in srgb, var(--leafs-brand) 12%, var(--leafs-surface-2));
}

html[data-leafs-theme="dark"] .leafs-circle-form__preview-remove {
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
}

html[data-leafs-theme="dark"] .leafs-circle-form__notice--ok {
	background: color-mix(in srgb, var(--leafs-brand) 22%, transparent);
	color: color-mix(in srgb, var(--leafs-brand) 65%, #fff);
}

html[data-leafs-theme="dark"] .leafs-author-public__circle-section {
	background: var(--leafs-surface);
	border-color: var(--leafs-border);
}

html[data-leafs-theme="dark"] .leafs-circle-hotlist__rank {
	color: color-mix(in srgb, var(--leafs-brand) 72%, #fff);
}

html[data-leafs-theme="dark"] .leafs-circle-hotlist a {
	border-bottom-color: color-mix(in srgb, var(--leafs-border) 55%, transparent);
}

html[data-leafs-theme="dark"] .leafs-circle__empty {
	border-color: var(--leafs-border);
	color: var(--leafs-muted);
}

/* 海报统计：覆盖全局白底，保证日/夜可读 */
.leafs-circle-banner .leafs-circle-stats--banner .leafs-circle-stats__item {
	background: var(--leafs-circle-banner-stat-bg) !important;
	border-color: var(--leafs-circle-banner-stat-border) !important;
}

.leafs-circle-banner .leafs-circle-stats--banner .leafs-circle-stats__value {
	color: var(--leafs-circle-banner-stat-value) !important;
}

.leafs-circle-banner .leafs-circle-stats--banner .leafs-circle-stats__label {
	color: var(--leafs-circle-banner-stat-label) !important;
}

/* —— 手机 / 小平板：单列、防横向错位 —— */
@media (max-width: 899px) {
	.leafs-circle__layout--rich,
	.leafs-circle__layout--single {
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100%;
	}

	.leafs-circle__layout--single .leafs-circle__rail--right {
		display: block;
		position: static;
		top: auto;
		max-height: none;
		overflow: visible;
		width: 100%;
	}

	.leafs-circle__primary,
	.leafs-circle__layout,
	.leafs-circle__list,
	.leafs-circle-compose,
	.leafs-circle-form__inner--compose,
	.leafs-circle-pinned__track {
		min-width: 0;
		max-width: 100%;
	}

	.leafs-circle__hero--rich {
		gap: 16px;
	}

	.leafs-circle__hero-actions {
		width: 100%;
	}

	.leafs-circle__hero-actions .leafs-btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.leafs-circle-topic {
		padding: 16px 14px;
		margin-bottom: 20px;
	}

	.leafs-circle-topic__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.leafs-circle-topic__author {
		max-width: 100%;
		min-width: 0;
	}

	.leafs-circle-topic__stats {
		width: 100%;
	}

	.leafs-circle__breadcrumb-current {
		max-width: 100%;
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
		word-break: break-word;
	}

	.leafs-circle .leafs-comment-sketch-canvas {
		width: 100%;
		max-width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 767px) {
	.leafs-main.leafs-container.leafs-circle {
		padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
	}

	.leafs-circle-banner__content {
		flex-direction: column;
		align-items: stretch;
	}

	.leafs-circle-banner__text {
		flex-basis: auto;
	}

	.leafs-circle-banner__aside {
		width: 100%;
		align-items: stretch;
	}

	.leafs-circle-banner__actions {
		width: 100%;
	}

	.leafs-circle-banner__actions .leafs-btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.leafs-circle-banner .leafs-circle-stats--banner {
		width: 100%;
		justify-content: space-between;
	}

	.leafs-circle-banner .leafs-circle-stats--banner .leafs-circle-stats__item {
		flex: 1 1 0;
		min-width: 0;
		padding: 6px 8px;
	}

	.leafs-circle__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.leafs-circle__sort {
		width: 100%;
	}

	.leafs-circle__sort-btn {
		flex: 1 1 0;
		justify-content: center;
		min-width: 0;
	}

	.leafs-circle__cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		padding-bottom: 4px;
		margin-inline: -2px;
	}

	.leafs-circle__cat-pill {
		flex-shrink: 0;
	}

	.leafs-circle-form__upload {
		flex-direction: column;
		align-items: stretch;
	}

	.leafs-circle-form__upload-btn {
		justify-content: center;
	}

	.leafs-circle-card__author-text {
		overflow-wrap: anywhere;
	}

	.leafs-circle-actions {
		gap: 8px;
	}

	.leafs-circle-actions__btn {
		flex: 1 1 auto;
		justify-content: center;
		min-width: 0;
	}

	.leafs-circle-tools__card {
		align-items: flex-start;
	}

	.leafs-circle__regions {
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
	}

	.leafs-circle__region-btn {
		flex-shrink: 0;
	}

	.leafs-circle-pinned__card {
		flex: 0 0 min(280px, 88vw);
	}
}

@media (max-width: 480px) {
	.leafs-circle-banner__title {
		font-size: 1.15rem;
		word-break: break-word;
	}

	.leafs-circle-banner .leafs-circle-stats--banner .leafs-circle-stats__value {
		font-size: 0.95rem;
	}

	.leafs-circle-card__title-text {
		font-size: 0.95rem;
	}

	.leafs-circle-topic {
		padding: 14px 12px;
	}

	.leafs-circle-topic__title {
		font-size: 1.2rem;
		word-break: break-word;
	}

	.leafs-circle-actions__btn {
		flex: 1 1 calc(50% - 4px);
	}
}

/* 分页、发帖、讨论区、登录提示 */
.leafs-circle .leafs-pagination,
.leafs-circle .nav-links {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--leafs-border);
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.leafs-circle-form__actions {
	margin: 4px 0 0;
}

.leafs-circle-form__actions .leafs-btn {
	min-height: 40px;
}

.leafs-circle-form__login {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: var(--leafs-radius-md, 12px);
	border: 1px dashed var(--leafs-border);
	background: var(--leafs-surface-2, #f8fafc);
	font-size: 0.875rem;
}

.leafs-circle-catgrid .leafs-circle-panel__title {
	margin-bottom: 10px;
}

.leafs-circle-discuss .leafs-comments-wrap,
.leafs-circle-discuss .leafs-comments {
	margin-top: 8px;
}

.leafs-circle-discuss .leafs-comment-respond {
	margin-top: 12px;
}

.leafs-circle--single .leafs-circle__layout--single {
	gap: 16px;
}

.leafs-circle-card__cats .leafs-tag {
	font-size: 0.72rem;
}

html[data-leafs-theme="dark"] .leafs-circle-form__login {
	background: color-mix(in srgb, var(--leafs-surface-2) 80%, transparent);
	border-color: var(--leafs-border);
}

/* —— 发帖：截图式发布框 —— */
.leafs-circle-form--publish {
	margin-bottom: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.leafs-circle-publish-box {
	display: block;
	grid-template-columns: none;
	gap: 0;
}

.leafs-circle-publish-box.leafs-comment-form {
	display: block;
	grid-template-columns: none;
	gap: 0;
}

.leafs-circle-publish-box__shell {
	border-radius: 12px;
	overflow: hidden;
	padding: 14px;
}

.leafs-circle-publish-box__shell.is-compose-popover-open {
	overflow: visible;
}

.leafs-circle-publish-box__head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
}

.leafs-circle-publish-box__head-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--leafs-brand) 12%, transparent);
	color: var(--leafs-brand);
	flex-shrink: 0;
}

.leafs-circle-publish-box__head-text {
	min-width: 0;
}

.leafs-circle-publish-box__head-title {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--leafs-text);
}

.leafs-circle-publish-box__head-desc {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--leafs-muted);
}

.leafs-circle-publish-box__fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}

.leafs-circle-publish-box__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.leafs-circle-publish-box__label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--leafs-muted);
}

.leafs-circle-publish-box__control-shell {
	position: relative;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--leafs-border);
	background: color-mix(in srgb, var(--leafs-text) 2%, transparent);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.leafs-circle-publish-box__control-shell:focus-within {
	border-color: color-mix(in srgb, var(--leafs-brand) 40%, var(--leafs-border));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--leafs-brand) 14%, transparent);
	background: var(--leafs-card, var(--leafs-surface));
}

.leafs-circle-publish-box__control {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--leafs-text);
	box-sizing: border-box;
	font-family: inherit;
}

.leafs-circle-publish-box__control:focus {
	outline: none;
}

.leafs-circle-publish-box__title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
}

.leafs-circle-publish-box__title::placeholder {
	color: var(--leafs-muted);
	font-weight: 500;
}

.leafs-circle-publish-box__textarea {
	min-height: 96px;
	max-height: 200px;
	resize: vertical;
	font-size: 0.875rem;
	line-height: 1.6;
	font-weight: 400;
}

.leafs-circle-publish-box__textarea::placeholder {
	color: var(--leafs-muted);
}

.leafs-circle-publish-box__control-shell .leafs-comment-emoji-panel,
.leafs-circle-publish-box__control-shell .leafs-comment-sketch-panel,
.leafs-circle-publish-box__input-wrap .leafs-comment-emoji-panel,
.leafs-circle-publish-box__input-wrap .leafs-comment-sketch-panel {
	margin-top: 8px;
	margin-bottom: 0;
}

.leafs-circle-publish-box__control-shell .leafs-comment-sketch-canvas,
.leafs-circle-publish-box__input-wrap .leafs-comment-sketch-canvas {
	max-width: 100%;
	height: auto;
}

.leafs-circle-publish-box__sketch-preview {
	margin-top: 8px;
}

.leafs-circle-publish-box__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid color-mix(in srgb, var(--leafs-border) 72%, transparent);
}

.leafs-circle-publish-box__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

.leafs-circle-publish-box__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.leafs-circle-publish-box__tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--leafs-muted);
	cursor: pointer;
}

.leafs-circle-publish-box__tool-label {
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
}

.leafs-circle-publish-box__tool:hover {
	background: color-mix(in srgb, var(--leafs-text) 8%, transparent);
	color: var(--leafs-text);
}

.leafs-circle-publish-box__cat {
	height: 32px;
	max-width: 132px;
	padding: 0 10px;
	border: 1px solid var(--leafs-border);
	border-radius: 8px;
	background: color-mix(in srgb, var(--leafs-text) 4%, transparent);
	font-size: 0.75rem;
	color: var(--leafs-text);
}

.leafs-circle-publish-box__preview {
	display: inline-flex;
	max-width: 48px;
}

.leafs-circle-publish-box__preview .leafs-circle-form__preview-img {
	display: block;
	max-height: 32px;
	border-radius: 4px;
}

.leafs-circle-publish-box__submit {
	flex-shrink: 0;
	min-height: 36px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.leafs-circle-publish-box__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.leafs-circle-form__notice {
	margin: 0 0 8px;
	font-size: 0.8125rem;
}

/* —— 左侧分类 —— */
.leafs-circle__rail--left {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.leafs-circle__widgets--left .leafs-widget {
	padding: 14px;
	border-radius: 12px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-card, var(--leafs-surface));
	box-shadow: var(--leafs-shadow-card, none);
}

.leafs-circle-catgrid--rail .leafs-circle-catgrid__list {
	display: flex;
	flex-direction: column;
}

/* 手机端：显示左侧分类（可折叠），隐藏主栏横向分类条 */
@media (max-width: 1099px) {
	.leafs-circle__rail--left {
		display: block;
		position: static;
		top: auto;
		max-height: none;
		overflow: visible;
		width: 100%;
	}

	.leafs-circle--uied .leafs-circle__cats-wrap {
		display: none;
	}
}

/* 桌面端左侧已有分类时，隐藏主栏横向分类条以省高度 */
@media (min-width: 1100px) {
	.leafs-circle--uied .leafs-circle__cats-wrap {
		display: none;
	}
}

/* —— 置顶：右侧栏纵向 —— */
.leafs-circle-pinned--sidebar {
	margin-bottom: 12px;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid color-mix(in srgb, var(--leafs-brand) 22%, var(--leafs-border));
	background: linear-gradient(160deg, color-mix(in srgb, var(--leafs-brand) 6%, var(--leafs-surface)), var(--leafs-surface));
}

.leafs-circle-pinned--sidebar .leafs-circle-pinned__title {
	margin-bottom: 8px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--leafs-brand);
}

.leafs-circle-pinned--sidebar .leafs-circle-pinned__track {
	flex-direction: column;
	overflow: visible;
	gap: 6px;
	padding-bottom: 0;
}

.leafs-circle-pinned--sidebar .leafs-circle-pinned__card {
	flex: none;
	width: 100%;
	padding: 8px 10px;
	border-radius: 8px;
	gap: 2px;
}

.leafs-circle-pinned__card--btn {
	width: 100%;
	text-align: left;
	cursor: pointer;
	font: inherit;
	appearance: none;
}

.leafs-circle-pinned--sidebar .leafs-circle-pinned__text {
	font-size: 0.8125rem;
	-webkit-line-clamp: 1;
}

.leafs-circle-pinned--sidebar .leafs-circle-pinned__meta {
	font-size: 0.7rem;
}

/* —— 话题卡片（四行布局，列表唯一实现） —— */
.leafs-circle-card {
	position: relative;
	border-radius: 10px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.leafs-circle-card--pinned {
	border-color: color-mix(in srgb, var(--leafs-border) 90%, transparent);
}

.leafs-circle-card:hover {
	border-color: color-mix(in srgb, var(--leafs-brand) 35%, var(--leafs-border));
}

.leafs-circle-card.is-expanded {
	border-color: color-mix(in srgb, var(--leafs-brand) 35%, var(--leafs-border));
	box-shadow: 0 2px 12px color-mix(in srgb, var(--leafs-brand) 8%, transparent);
}

html[data-leafs-theme="dark"] .leafs-circle-card {
	background: var(--leafs-surface);
}

.leafs-circle-card__surface {
	position: relative;
	overflow: hidden;
	padding: 12px 14px;
}

.leafs-circle-card__main {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.leafs-circle-card__pin {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	width: 72px;
	height: 72px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	pointer-events: none;
	border: 0;
	background: transparent;
}

.leafs-circle-card__pin-text {
	position: absolute;
	top: 16px;
	right: -30px;
	display: block;
	width: 118px;
	padding: 5px 0;
	background: var(--leafs-brand);
	color: var(--leafs-on-primary, #fff);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	letter-spacing: 0.06em;
	transform: rotate(45deg);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--leafs-brand) 38%, transparent);
}

.leafs-circle-card--pinned .leafs-circle-card__row--head {
	padding-right: 48px;
}

html[data-leafs-theme="dark"] .leafs-circle-card__pin-text {
	color: var(--leafs-on-primary, #fff);
	box-shadow: 0 2px 10px color-mix(in srgb, var(--leafs-brand) 45%, transparent);
}

.leafs-circle-card__row--head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
}

.leafs-circle-card__author-block {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.leafs-circle-card__avatar {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	flex-shrink: 0;
	object-fit: cover;
}

.leafs-circle-card__author-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.leafs-circle-card__name-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.leafs-circle-card__name {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--leafs-text);
	line-height: 1.3;
}

.leafs-circle-card__time {
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--leafs-muted);
	line-height: 1.3;
	white-space: nowrap;
}

.leafs-circle-card__time::before {
	content: '·';
	margin-right: 6px;
	color: var(--leafs-muted2);
	font-weight: 400;
}

.leafs-circle-card__follow {
	padding: 1px 8px;
	border: 1px solid var(--leafs-border);
	border-radius: 999px;
	background: transparent;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--leafs-muted);
	cursor: pointer;
	line-height: 1.4;
}

.leafs-circle-card__follow.is-active,
.leafs-circle-card__follow:hover {
	border-color: var(--leafs-brand);
	color: var(--leafs-brand);
	background: color-mix(in srgb, var(--leafs-brand) 8%, transparent);
}

.leafs-circle-card__badge {
	line-height: 1.2;
}

.leafs-circle-card__cats {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	max-width: none;
	text-align: left;
}

.leafs-circle-card__cats::before {
	content: '·';
	color: var(--leafs-muted2);
	font-weight: 400;
}

.leafs-circle-card__cat {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--leafs-muted);
	text-decoration: none;
	line-height: 1.35;
	word-break: break-word;
}

.leafs-circle-card__cat:hover {
	color: var(--leafs-brand);
}

.leafs-circle-card__cat-hash {
	color: color-mix(in srgb, var(--leafs-muted) 80%, var(--leafs-text));
	font-weight: 500;
}

.leafs-circle-card__title {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 8px;
	padding: 0;
}

.leafs-circle-card__title-text {
	flex: 1;
	margin: 0;
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.4;
	color: var(--leafs-text);
	letter-spacing: -0.01em;
}

.leafs-circle-card__expand-hit[data-circle-expand-trigger] {
	cursor: pointer;
	border-radius: 8px;
	outline: none;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.leafs-circle-card.is-expanded .leafs-circle-card__expand-hit[data-circle-expand-trigger] {
	cursor: default;
}

.leafs-circle-card__title.leafs-circle-card__expand-hit {
	padding: 3px 6px;
	margin: -3px -6px 5px;
}

.leafs-circle-card__row--body.leafs-circle-card__expand-hit {
	padding: 4px 6px;
	margin: -4px -6px 0;
}

/* 标题与正文共用同一悬停高亮，避免两块不同底色 */
.leafs-circle-card__main:has(.leafs-circle-card__expand-hit:hover) .leafs-circle-card__expand-hit[data-circle-expand-trigger],
.leafs-circle-card__main:has(.leafs-circle-card__expand-hit:focus-visible) .leafs-circle-card__expand-hit[data-circle-expand-trigger] {
	background: color-mix(in srgb, var(--leafs-brand) 6%, transparent);
}

.leafs-circle-card__expand-hit[data-circle-expand-trigger]:hover,
.leafs-circle-card__expand-hit[data-circle-expand-trigger]:focus-visible {
	background: transparent;
}

.leafs-circle-card__expand-hit[data-circle-expand-trigger]:focus-visible {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--leafs-brand) 28%, transparent);
}

.leafs-circle-card__open {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 5px;
	font-size: 0.7rem;
	color: var(--leafs-muted);
	text-decoration: none;
}

.leafs-circle-card__open:hover {
	color: var(--leafs-brand);
	background: color-mix(in srgb, var(--leafs-brand) 8%, transparent);
}

.leafs-circle-card__row--body {
	margin-bottom: 10px;
}

.leafs-circle-card__content {
	margin: 0 0 8px;
	font-size: 0.875rem;
	line-height: 1.65;
	color: color-mix(in srgb, var(--leafs-text) 88%, var(--leafs-muted));
	white-space: pre-wrap;
	word-break: break-word;
}

.leafs-circle-url {
	display: inline;
	white-space: normal;
	word-break: break-all;
}

.leafs-circle-url__text {
	color: color-mix(in srgb, var(--leafs-brand) 78%, var(--leafs-text));
}

.leafs-circle-url__copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	width: 22px;
	height: 22px;
	margin: 0 1px 0 3px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: var(--leafs-muted);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.leafs-circle-url__copy:hover {
	color: var(--leafs-brand);
	background: color-mix(in srgb, var(--leafs-brand) 10%, transparent);
}

.leafs-circle-url__copy:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--leafs-brand) 35%, transparent);
	outline-offset: 1px;
}

.leafs-circle-url__copy.is-copied {
	color: var(--leafs-brand);
}

.leafs-circle-card__content:last-child {
	margin-bottom: 0;
}

.leafs-circle-card__media {
	margin-top: 8px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface-2, #f1f5f9);
	max-width: 280px;
}

.leafs-circle-card__media .leafs-circle-card__thumb {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
}

.leafs-circle-card__row--actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 8px;
	border-top: 0;
}

.leafs-circle-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.leafs-circle-card__action {
	font-size: 0.8125rem;
	color: var(--leafs-muted);
	white-space: nowrap;
}

.leafs-circle-card__action--like {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--leafs-muted);
	cursor: pointer;
}

.leafs-circle-card__action--like .leafs-circle-card__action-icon {
	font-size: 0.65rem;
	line-height: 1;
	opacity: 0.75;
}

.leafs-circle-card__action--like.is-active,
.leafs-circle-card__action--like.is-active .leafs-circle-card__action-icon {
	opacity: 1;
}

.leafs-circle-card__action--like:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.leafs-circle-card__discuss-btn {
	flex-shrink: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--leafs-muted);
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.leafs-circle-card__discuss-btn:hover,
.leafs-circle-card.is-expanded .leafs-circle-card__discuss-btn {
	color: var(--leafs-brand);
}

.leafs-circle-card__panel {
	border-top: 1px solid var(--leafs-divider, var(--leafs-border));
	background: var(--leafs-surface);
}

/* —— 展开区：讨论列表 + 回复 —— */
.leafs-circle-expand {
	padding: 12px 14px 14px;
}

.leafs-circle-expand__discuss {
	margin: 0;
}

.leafs-circle-expand__discuss-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.leafs-circle-expand__discuss-title {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 650;
}

.leafs-circle-expand__more-link {
	font-size: 0.72rem;
	color: var(--leafs-brand);
	text-decoration: none;
	white-space: nowrap;
}

.leafs-circle-expand__comments {
	margin: 0 0 8px;
	padding: 0 4px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: min(280px, 38vh);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.leafs-circle-expand__comment {
	padding: 10px 10px;
	border-radius: 8px;
	background: transparent;
	border: 0;
}

.leafs-circle-expand__comment-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	font-size: 0.7rem;
	color: var(--leafs-muted);
}

.leafs-circle-expand__comment-author {
	color: var(--leafs-text);
	font-size: 0.75rem;
	font-weight: 600;
}

.leafs-circle-expand__comment-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.leafs-circle-expand__comment-row .leafs-circle-expand__comment-body {
	flex: 1;
	min-width: 0;
	font-size: 0.78rem;
	line-height: 1.5;
}

.leafs-circle-expand__comment-body {
	font-size: 0.78rem;
	line-height: 1.5;
}

.leafs-circle-expand__comment-body p {
	margin: 0 0 4px;
}

.leafs-circle-expand__comment-sketch img {
	max-width: 160px;
	height: auto;
	border-radius: 6px;
}

.leafs-circle-expand__empty,
.leafs-circle-expand__error {
	margin: 0 0 8px;
	font-size: 0.78rem;
	color: var(--leafs-muted);
}

.leafs-circle-expand__loading {
	margin: 0;
}

.leafs-circle-expand__comment--pending {
	border-style: dashed;
	opacity: 0.9;
}

/* —— 内联回复：头像 + 输入 + 发表 一行 —— */
.leafs-circle-reply {
	margin: 0;
	padding-top: 0;
	border-top: 0;
}

.leafs-circle-reply__row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.leafs-circle-reply__avatar-wrap {
	flex-shrink: 0;
	padding-top: 4px;
}

.leafs-circle-reply__avatar {
	display: block;
	border-radius: 50%;
}

.leafs-circle-reply__editor {
	flex: 1;
	min-width: 0;
}

.leafs-circle-reply__compose .leafs-comment-compose__toolbar {
	margin-bottom: 4px;
}

.leafs-circle-publish-box__input-wrap .leafs-comment-sketch-canvas {
	max-width: 100%;
	height: auto;
}

.leafs-circle-reply__input {
	display: block;
	width: 100%;
	min-height: 36px;
	max-height: 100px;
	padding: 7px 10px;
	border-radius: 8px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface);
	color: var(--leafs-text);
	font-size: 0.8125rem;
	line-height: 1.45;
	resize: vertical;
	box-sizing: border-box;
}

.leafs-circle-reply__input:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--leafs-brand) 45%, var(--leafs-border));
}

.leafs-circle-reply__submit {
	flex-shrink: 0;
	align-self: flex-end;
	min-height: 34px;
	padding-inline: 12px;
	white-space: nowrap;
}

.leafs-circle-reply__status {
	margin: 6px 0 0;
	font-size: 0.75rem;
}

.leafs-circle-reply__status--ok {
	color: var(--leafs-brand);
}

.leafs-circle-reply__status--err {
	color: #dc2626;
}

html[data-leafs-theme="dark"] .leafs-circle-reply__input {
	background: var(--leafs-surface-2, #1e293b);
}

.leafs-circle__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.leafs-circle-compose {
	margin-bottom: 8px;
}

.leafs-circle__toolbar {
	margin-bottom: 8px;
}

@media (max-width: 640px) {
	.leafs-circle-publish-box__bar {
		flex-wrap: wrap;
	}

	.leafs-circle-publish-box__submit {
		width: 100%;
	}

	.leafs-circle-card__row--head {
		gap: 8px;
	}

	.leafs-circle-card__name-row {
		gap: 2px 6px;
	}

	.leafs-circle-card__media {
		max-width: 100%;
	}

	.leafs-circle-reply__row {
		flex-wrap: wrap;
	}

	.leafs-circle-reply__submit {
		width: 100%;
		align-self: stretch;
	}
}
