.sxf-app-body {
	--sxf-bg: #07070b;
	--sxf-side: #0b0b12;
	--sxf-card: #14141d;
	--sxf-card-2: #1b1b27;
	--sxf-ink: #f5f5f7;
	--sxf-muted: #9aa0b3;
	--sxf-line: rgba(255, 255, 255, 0.08);
	--sxf-accent: #c026d3;
	--sxf-accent-2: #7c3aed;
	--sxf-live: #f5c518;
	--sxf-ok: #38bdf8;
	margin: 0;
	background: var(--sxf-bg);
	color: var(--sxf-ink);
	font-family: "Segoe UI", Inter, "SF Pro Display", system-ui, sans-serif;
}

.sxf-app-body #wpadminbar {
	z-index: 100100;
}

.sxf-app {
	display: flex;
	min-height: 100vh;
	background:
		radial-gradient(900px 420px at 80% -10%, rgba(192, 38, 211, 0.18), transparent 55%),
		radial-gradient(700px 360px at 0% 10%, rgba(124, 58, 237, 0.16), transparent 50%),
		var(--sxf-bg);
}

.admin-bar .sxf-app {
	min-height: calc(100vh - 32px);
}

.sxf-ico {
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sxf-brand-mark .sxf-ico {
	width: 1.35rem;
	height: 1.35rem;
	fill: #fff;
	stroke: none;
}

.sxf-side {
	width: 270px;
	flex: 0 0 270px;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.2rem 1rem 1.4rem;
	background: linear-gradient(180deg, #0d0d14 0%, #09090f 100%);
	border-right: 1px solid var(--sxf-line);
	min-height: 100vh;
}

.admin-bar .sxf-side {
	min-height: calc(100vh - 32px);
}

.sxf-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.15rem 0.4rem 0.7rem;
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-size: 1.25rem;
}

.sxf-brand-mark {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 10px;
	background: linear-gradient(135deg, #c026d3, #7c3aed);
	box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.sxf-side-nav {
	display: grid;
	gap: 0.3rem;
}

.sxf-side-link {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 0.85rem;
	border-radius: 12px;
	color: #d4d4dc;
	text-decoration: none;
	position: relative;
}

.sxf-side-link em,
.sxf-icon-btn em {
	margin-left: auto;
	min-width: 1.15rem;
	padding: 0.05rem 0.4rem;
	border-radius: 999px;
	background: var(--sxf-live);
	color: #1a1400;
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 800;
	text-align: center;
}

.sxf-side-link.is-active {
	background: rgba(124, 58, 237, 0.18);
	color: #fff;
}

.sxf-side-link.is-active::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18%;
	bottom: 18%;
	width: 3px;
	border-radius: 99px;
	background: linear-gradient(180deg, #e879f9, #7c3aed);
}

.sxf-side-block h2,
.sxf-rail-card h2 {
	margin: 0 0 0.7rem;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sxf-muted);
}

.sxf-side-forum,
.sxf-rail-item {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.55rem 0.35rem;
	color: inherit;
	text-decoration: none;
	border-radius: 12px;
}

.sxf-side-forum:hover,
.sxf-rail-item:hover,
.sxf-side-link:hover {
	background: rgba(255, 255, 255, 0.04);
}

.sxf-side-forum strong,
.sxf-rail-item strong,
.sxf-card-meta h3,
.sxf-page-head h1,
.sxf-cat-head h2 {
	display: block;
	color: #fff;
	font-size: 0.95rem;
}

.sxf-side-forum small,
.sxf-rail-item small,
.sxf-muted,
.sxf-card-meta p,
.sxf-page-head p,
.sxf-cat-head p {
	color: var(--sxf-muted);
}

.sxf-side-avatar,
.sxf-card-art {
	display: grid;
	place-items: center;
	border-radius: 14px;
	color: #fff;
}

.sxf-side-avatar {
	width: 2.2rem;
	height: 2.2rem;
	flex: 0 0 2.2rem;
}

.sxf-side-promo {
	margin-top: auto;
	padding: 1rem;
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(192, 38, 211, 0.9), rgba(67, 56, 202, 0.95));
	color: #fff;
}

.sxf-side-promo p {
	margin: 0 0 0.85rem;
	font-size: 0.92rem;
	line-height: 1.45;
}

.sxf-go,
.sxf-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.5rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #e879f9, #7c3aed);
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
}

.sxf-stage {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.sxf-top {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.4rem 0.4rem;
}

.sxf-search {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 48px;
	padding: 0 1rem;
	border-radius: 999px;
	background: #16161f;
	border: 1px solid var(--sxf-line);
	color: var(--sxf-muted);
}

.sxf-search input {
	flex: 1;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	outline: none;
}

.sxf-top-actions {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.sxf-icon-btn,
.sxf-menu-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #16161f;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
}

.sxf-menu-btn {
	display: none;
}

.sxf-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.12);
}

.sxf-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 1.2rem;
	padding: 0.6rem 1.4rem 2.5rem;
}

.sxf-main,
.sxf {
	min-width: 0;
}

.sxf-page-head,
.sxf-bar {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-end;
	margin: 0.6rem 0 1.1rem;
}

.sxf-page-head h1,
.sxf-bar h1,
.sxf-cat-head h2 {
	margin: 0 0 0.35rem;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	letter-spacing: -0.04em;
}

.sxf-kicker {
	margin: 0 0 0.3rem;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #e879f9;
}

.sxf-cats {
	display: flex;
	gap: 0.85rem;
	overflow-x: auto;
	padding: 0.2rem 0 1.2rem;
}

.sxf-cat {
	flex: 0 0 auto;
	display: grid;
	justify-items: center;
	gap: 0.45rem;
	min-width: 86px;
	padding: 0;
	border: 0;
	background: none;
	color: #d4d4dc;
	cursor: pointer;
	font: inherit;
}

.sxf-cat .sxf-ico {
	width: 2.4rem;
	height: 2.4rem;
	padding: 0.7rem;
	border-radius: 18px;
	background: var(--sxf-card);
	box-shadow: inset 0 0 0 1px var(--sxf-line);
}

.sxf-cat.is-active,
.sxf-cat:hover {
	color: #fff;
}

.sxf-cat.is-active .sxf-ico {
	background: linear-gradient(135deg, #c026d3, #7c3aed);
	box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}

.sxf-card-grid,
.sxf-node-map {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.1rem;
}

.sxf-cat-block {
	grid-column: 1 / -1;
	display: grid;
	gap: 0.9rem;
}

.sxf-card {
	display: flex;
	flex-direction: column;
	background: var(--sxf-card);
	border: 1px solid var(--sxf-line);
	border-radius: 18px;
	overflow: hidden;
	min-width: 0;
}

.sxf-card-cover {
	position: relative;
	display: block;
	min-height: 148px;
	text-decoration: none;
}

.sxf-card-art {
	width: 100%;
	min-height: 148px;
	font-size: 0;
}

.sxf-card-art .sxf-ico {
	width: 3.2rem;
	height: 3.2rem;
}

.sxf-art-discussion,
.sxf-art-forum { background: linear-gradient(145deg, #312e81, #6d28d9); }
.sxf-art-question { background: linear-gradient(145deg, #0f766e, #22d3ee); }
.sxf-art-article { background: linear-gradient(145deg, #9a3412, #f59e0b); }
.sxf-art-suggestion { background: linear-gradient(145deg, #a16207, #facc15); }
.sxf-art-announcement { background: linear-gradient(145deg, #9d174d, #f472b6); }
.sxf-art-category { background: linear-gradient(145deg, #1e3a8a, #60a5fa); }
.sxf-art-link { background: linear-gradient(145deg, #334155, #94a3b8); }
.sxf-art-search { background: linear-gradient(145deg, #0e7490, #22d3ee); }

.sxf-live,
.sxf-viewers {
	position: absolute;
	padding: 0.22rem 0.5rem;
	border-radius: 8px;
	font-size: 0.72rem;
	font-weight: 800;
}

.sxf-live {
	top: 0.7rem;
	left: 0.7rem;
	background: var(--sxf-live);
	color: #1a1400;
}

.sxf-viewers {
	right: 0.7rem;
	bottom: 0.7rem;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
}

.sxf-card-meta {
	padding: 0.9rem 1rem 1.05rem;
}

.sxf-card-meta h3 {
	margin: 0 0 0.3rem;
	font-size: 1.05rem;
}

.sxf-card-meta h3 a,
.sxf-cat-head a,
.sxf-crumb a,
.sxf-threads a,
.sxf-subforums a {
	color: inherit;
	text-decoration: none;
}

.sxf-card-meta p,
.sxf-empty,
.sxf-empty-hero p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
}

.sxf-pills,
.sxf-tags,
.sxf-subforums,
.sxf-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0.7rem 0 0;
	padding: 0;
}

.sxf-pills span,
.sxf-tags a,
.sxf-subforums a {
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	background: #222230;
	color: #d4d4dc;
	font-size: 0.74rem;
}

.sxf-rail {
	display: grid;
	align-content: start;
	gap: 1rem;
}

.sxf-rail-card,
.sxf-forum-card,
.sxf-compose,
.sxf-post,
.sxf-poll,
.sxf-forum-filters {
	background: var(--sxf-card);
	border: 1px solid var(--sxf-line);
	border-radius: 18px;
	padding: 1rem 1.05rem;
}

.sxf-rail-item .sxf-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--sxf-live);
	box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.12);
	flex: 0 0 0.5rem;
}

.sxf-empty-hero {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 0.7rem;
	padding: 2.4rem 1rem;
	border: 1px dashed var(--sxf-line);
	border-radius: 22px;
	background: rgba(20, 20, 29, 0.7);
}

.sxf-empty-hero .sxf-card-art {
	width: 4.5rem;
	min-height: 4.5rem;
	border-radius: 20px;
}

.sxf-empty-hero h2 {
	margin: 0;
}

.sxf-btn,
.sxf-search button {
	background: #222230;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.55rem 1rem;
	cursor: pointer;
	font: inherit;
}

.sxf-link {
	background: none;
	border: 0;
	color: #e879f9;
	cursor: pointer;
	padding: 0;
	font: inherit;
}

.sxf-crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0.4rem 0 0.8rem;
	color: var(--sxf-muted);
	font-size: 0.9rem;
}

.sxf-threads {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}

.sxf-threads li {
	background: var(--sxf-card);
	border: 1px solid var(--sxf-line);
	border-radius: 16px;
}

.sxf-threads a {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
}

.sxf-threads .is-sticky strong::before {
	content: "★ ";
	color: var(--sxf-live);
}

.sxf-compose input,
.sxf-compose textarea,
.sxf-compose select,
.sxf-forum-filters select,
.sxf-forum-filters input[type="text"] {
	width: 100%;
	border: 1px solid var(--sxf-line);
	border-radius: 12px;
	padding: 0.7rem 0.8rem;
	background: #101018;
	color: #fff;
	font: inherit;
}

.sxf-compose,
.sxf-forum-filters,
.sxf-poll {
	margin: 1rem 0;
	display: grid;
	gap: 0.7rem;
}

.sxf-forum-filters {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	align-items: end;
}

.sxf-post header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.sxf-post header img,
.sxf-forum-card img {
	border-radius: 50%;
}

.sxf-body {
	line-height: 1.7;
}

.sxf-pages {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.sxf-pages a {
	padding: 0.35rem 0.7rem;
	border-radius: 10px;
	background: var(--sxf-card);
	color: #fff;
	text-decoration: none;
}

.sxf-pages a[aria-current="page"] {
	background: linear-gradient(135deg, #c026d3, #7c3aed);
}

.sxf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.sxf-msg {
	color: #e879f9;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 1180px) {
	.sxf-workspace {
		grid-template-columns: 1fr;
	}

	.sxf-rail {
		display: none;
	}

	.sxf-card-grid,
	.sxf-node-map {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.sxf-menu-btn {
		display: grid;
	}

	.sxf-side {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		z-index: 80;
		transform: translateX(-110%);
		transition: transform 0.2s ease;
	}

	.admin-bar .sxf-side {
		top: 32px;
	}

	.sxf-app.is-nav-open .sxf-side {
		transform: none;
	}

	.sxf-card-grid,
	.sxf-node-map,
	.sxf-page-head,
	.sxf-bar,
	.sxf-threads a {
		grid-template-columns: 1fr;
		flex-direction: column;
	}

	.sxf-top,
	.sxf-workspace {
		padding-left: 0.9rem;
		padding-right: 0.9rem;
	}
}
