/* ============================================
   WEIRD.NET V5 — INNER PAGES OVERRIDE
   Dark-first with light mode toggle
   Loaded AFTER responsive.css in header.php
   ============================================ */

/* --- DESIGN TOKENS (same as index.php) --- */
:root {
	--purple: #8b5cf6;
	--purple-light: #a78bfa;
	--purple-glow: rgba(139, 92, 246, 0.15);
	--purple-border: rgba(139, 92, 246, 0.2);
	--orange: #f97316;
	--orange-glow: rgba(249, 115, 22, 0.12);
	--coral: #f97316;
	--cyan: #22d3ee;
	--green: #22c55e;
	--green-bg: rgba(34, 197, 94, 0.12);
	--pink: #4ade80;
	--yellow: #facc15;
	--bg: #0c0a14;
	--bg-raised: #141025;
	--surface: #1a1530;
	--surface-hover: #221d3a;
	--border: #2a2545;
	--border-hover: #3d3660;
	--text-primary: #eeeaf6;
	--text-secondary: #b0a8c4;
	--text-muted: #807896;
	--shadow: 0 2px 8px rgba(0,0,0,0.2), 0 12px 40px rgba(0,0,0,0.15);
	--shadow-glow: 0 0 40px rgba(139, 92, 246, 0.12);
	--radius: 16px;
	--radius-sm: 12px;
	--radius-pill: 100px;
	--ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html.light-mode {
	--purple: #7c3aed;
	--purple-light: #8b5cf6;
	--purple-glow: rgba(124, 58, 237, 0.08);
	--purple-border: rgba(124, 58, 237, 0.15);
	--orange: #ea580c;
	--orange-glow: rgba(234, 88, 12, 0.06);
	--coral: #ea580c;
	--cyan: #0891b2;
	--green: #16a34a;
	--green-bg: rgba(22, 163, 74, 0.08);
	--pink: #16a34a;
	--yellow: #ca8a04;
	--bg: #f8f7fc;
	--bg-raised: #f0eef6;
	--surface: #ffffff;
	--surface-hover: #f5f3fa;
	--border: #e2dff0;
	--border-hover: #c9c4db;
	--text-primary: #1a1740;
	--text-secondary: #57526e;
	--text-muted: #8a84a0;
	--shadow: 0 2px 8px rgba(26,23,64,0.04), 0 12px 40px rgba(26,23,64,0.06);
	--shadow-glow: 0 0 40px rgba(124, 58, 237, 0.06);
}

/* --- GLOBAL RESET --- */
*, *::before, *::after { box-sizing: border-box; }
/* Force html + body to fill viewport so a partial / mid-render page never
   exposes the device's pure black backstop below the body. On iOS Capacitor
   shells especially, scrolling past content shows the WebView underlay; this
   keeps that surface brand-tinted instead. Uses dvh so iOS dynamic toolbar
   resizes don't expose a sliver. */
html { background-color: var(--bg); min-height: 100%; }
html, body { min-height: 100vh; min-height: 100dvh; min-height: 100dvh; }
body {
	background-color: var(--bg) !important;
	background-image: none !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
	color: var(--text-secondary) !important;
	font-size: 15px !important;
	-webkit-font-smoothing: antialiased;
}

.weird-ai-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	vertical-align: middle;
	padding: 2px 7px;
	border-radius: 999px;
	border: 1px solid rgba(34, 211, 238, .34);
	background: rgba(34, 211, 238, .12);
	color: var(--cyan);
	font-size: 11px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	white-space: nowrap;
}
.weird-ai-badge i { font-size: 10px; }
.weird-ai-disclosure {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 8px 0 4px;
	color: var(--text-secondary);
	font-size: 13px;
	line-height: 1.4;
}
html.light-mode .weird-ai-badge {
	border-color: rgba(8, 145, 178, .24);
	background: rgba(8, 145, 178, .08);
	color: #0e7490;
}
h1, h2, h3, h4, h5, h6 {
	color: var(--text-primary) !important;
	font-family: 'Space Grotesk', sans-serif !important;
}
a { color: var(--purple) !important; text-decoration: none !important; }
a:hover { color: var(--purple-light) !important; }
a.user { color: var(--text-secondary) !important; }
a.user:hover { color: var(--purple) !important; }
img { max-width: 100%; }

/* --- HEADER / NAV --- */
#sticky-header {
	padding: 0 !important;
	z-index: 999;
	transition: all 0.3s;
	width: 100%;
	background: var(--bg) !important;
}
#sticky-header.sticky-menu { background: var(--surface) !important; border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }

html.light-mode #sticky-header.sticky-menu {
	background: rgba(255, 255, 255, 0.95) !important;
}
#sticky-header .container { max-width: 1150px !important; }
.e-transparent-menu.sticky-menu, .sticky-menu {
	background: rgba(12, 10, 20, 0.85) !important;
	backdrop-filter: blur(12px) !important;
}
html.light-mode .e-transparent-menu.sticky-menu,
html.light-mode .sticky-menu {
	background: rgba(255, 255, 255, 0.9) !important;
}
.navbar { padding: 10px 0 !important; }
.navbar-toggler { border: 1px solid var(--border) !important; padding: 6px 10px !important; width: auto !important; border-radius: 8px !important; }
.navbar-icon { background: var(--text-primary) !important; display: block; width: 22px; height: 2px; margin: 4px 0; border-radius: 2px; }
.weird-nav-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 14px;
	flex: 0 0 auto;
}
.weird-nav-actions .weird-notif-trigger,
.weird-nav-actions .weird-search-trigger { margin-left: 0 !important; }
.main-menu .navbar-nav li.nav-item { margin-left: 30px !important; }
.main-menu .navbar-nav li.nav-item:first-child { margin-left: 0 !important; }
.main-menu .navbar-nav li.nav-item a.nav-link {
	color: var(--text-secondary) !important;
	font-family: 'Inter', -apple-system, sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	padding: 35px 0 !important;
	line-height: 1 !important;
	border-radius: 0 !important;
	transition: all 0.3s !important;
	background: none !important;
}
.main-menu .navbar-nav li.nav-item a.nav-link:hover {
	color: var(--purple) !important;
	background: none !important;
}
.main-menu .navbar-nav li.nav-item a.nav-link::before { display: none !important; }
.main-menu .navbar-nav li.nav-item a.nav-link i {
	color: var(--text-muted) !important;
	margin-right: 4px;
}
.main-menu .navbar-nav li.nav-item a.weird-nav-play-link {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
}
.main-menu .navbar-nav li.nav-item a.weird-nav-play-link i { margin-right: 0; }
.weird-nav-play-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 6px;
	border-radius: 999px;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: #fff;
	font-size: 10.5px;
	font-weight: 900;
	line-height: 18px;
	box-shadow: 0 0 0 2px rgba(15,12,28,.88), 0 8px 16px -10px rgba(34,197,94,.9);
}
.weird-nav-play-badge.is-dot {
	min-width: 10px;
	width: 10px;
	height: 10px;
	padding: 0;
	font-size: 0;
	line-height: 10px;
}
html.light-mode .weird-nav-play-badge {
	box-shadow: 0 0 0 2px rgba(255,255,255,.96), 0 8px 16px -12px rgba(22,163,74,.5);
}
/* Logo light-mode — uses SVG filter #logo-purple for exact color */
html.light-mode .navbar-brand-logo { filter: url(#logo-purple); }

/* --- Header Explore dropdown --- */
#sticky-header .weird-nav-explore-menu {
	position: relative;
}
#sticky-header .weird-nav-explore-menu > summary.nav-link {
	list-style: none;
	cursor: pointer;
	user-select: none;
	display: flex !important;
	align-items: center;
	color: var(--text-secondary) !important;
	font-family: 'Inter', -apple-system, sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	padding: 35px 0 !important;
	line-height: 1 !important;
	border-radius: 0 !important;
	background: none !important;
	transition: all 0.3s !important;
}
#sticky-header .weird-nav-explore-menu > summary.nav-link::-webkit-details-marker {
	display: none;
}
#sticky-header .weird-nav-explore-menu > summary.nav-link i {
	color: var(--text-muted) !important;
	margin-right: 4px;
}
#sticky-header .weird-nav-explore-menu > summary.nav-link::after {
	content: '\f107';
	font-family: 'Font Awesome 5 Free', FontAwesome, sans-serif;
	font-weight: 900;
	font-size: 11px;
	margin-left: 7px;
	opacity: 0.72;
	transition: transform 0.18s ease, opacity 0.18s ease;
}
#sticky-header .weird-nav-explore-menu[open] > summary.nav-link,
#sticky-header .weird-nav-explore-menu > summary.nav-link:hover,
#sticky-header .weird-nav-explore-menu > summary.nav-link.is-active {
	color: var(--purple) !important;
}
#sticky-header .weird-nav-explore-menu[open] > summary.nav-link::after {
	transform: rotate(180deg);
	opacity: 1;
}
#sticky-header .weird-nav-explore-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	padding: 8px;
	background: linear-gradient(180deg, rgba(7, 9, 18, 0.99), rgba(13, 16, 31, 0.99));
	border: 1px solid rgba(167,139,250,0.36);
	border-radius: 14px;
	box-shadow: 0 28px 70px -24px rgba(0,0,0,0.92), 0 0 0 1px rgba(255,255,255,0.055) inset, 0 1px 0 rgba(255,255,255,0.09) inset;
	backdrop-filter: saturate(1.35) blur(22px);
	-webkit-backdrop-filter: saturate(1.35) blur(22px);
}
html.light-mode #sticky-header .weird-nav-explore-panel {
	background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,244,255,0.99));
	border-color: rgba(124,58,237,0.28);
	box-shadow: 0 26px 62px -28px rgba(44,31,85,0.42), 0 0 0 1px rgba(255,255,255,0.92) inset;
}
#sticky-header .weird-nav-explore-panel-item,
#sticky-header .weird-nav-explore-panel-item:visited {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 6px 8px;
	border-radius: 10px;
	border: 1px solid rgba(148,163,184,0.15);
	background: rgba(16, 20, 36, 0.88);
	color: #f8fafc !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.15;
	text-decoration: none !important;
	white-space: nowrap;
}
#sticky-header .weird-nav-explore-panel-item:hover,
#sticky-header .weird-nav-explore-panel-item:focus,
#sticky-header .weird-nav-explore-panel-item:focus-visible,
#sticky-header .weird-nav-explore-panel-item.is-active {
	border-color: var(--cat-ring-strong, rgba(167,139,250,0.54));
	background: linear-gradient(90deg, var(--cat-wash, rgba(124,58,237,0.14)), rgba(255,255,255,0.055));
	color: #f8fafc !important;
}
html.light-mode #sticky-header .weird-nav-explore-panel-item,
html.light-mode #sticky-header .weird-nav-explore-panel-item:visited {
	background: rgba(255,255,255,0.82);
	border-color: rgba(51,65,85,0.10);
	color: #24163f !important;
}
html.light-mode #sticky-header .weird-nav-explore-panel-item:hover,
html.light-mode #sticky-header .weird-nav-explore-panel-item:focus,
html.light-mode #sticky-header .weird-nav-explore-panel-item:focus-visible,
html.light-mode #sticky-header .weird-nav-explore-panel-item.is-active {
	background: linear-gradient(90deg, var(--cat-wash, rgba(124,58,237,0.10)), rgba(255,255,255,0.92));
	border-color: var(--cat-ring-strong, rgba(124,58,237,0.30));
	color: #24163f !important;
}
#sticky-header .weird-nav-explore-panel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: var(--cat-icon-bg, rgba(167,139,250,0.15));
	color: var(--cat-accent, #c4b5fd);
	font-size: 12px;
	box-shadow: 0 0 0 1px var(--cat-ring, rgba(167,139,250,0.22)) inset;
}
html.light-mode #sticky-header .weird-nav-explore-panel-icon {
	background: var(--cat-icon-bg, rgba(124,58,237,0.09));
	color: var(--cat-accent, #6d28d9);
}
#sticky-header .weird-nav-explore-panel-item > span:last-child,
.weird-explore-sheet-item > span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
#sticky-header .weird-nav-explore-panel-item > span:last-child {
	overflow: visible;
	text-overflow: clip;
}
#sticky-header .weird-nav-explore-panel-item,
.weird-explore-sheet-item {
	--cat-accent: #c4b5fd;
	--cat-icon-bg: rgba(167,139,250,0.15);
	--cat-ring: rgba(167,139,250,0.25);
	--cat-ring-strong: rgba(167,139,250,0.54);
	--cat-wash: rgba(167,139,250,0.13);
}
#sticky-header .weird-nav-explore-panel-item[data-cat="boardgames"], .weird-explore-sheet-item[data-cat="boardgames"] { --cat-accent: #f59e0b; --cat-icon-bg: rgba(245,158,11,0.17); --cat-ring: rgba(245,158,11,0.30); --cat-ring-strong: rgba(245,158,11,0.58); --cat-wash: rgba(245,158,11,0.12); }
#sticky-header .weird-nav-explore-panel-item[data-cat="books"], .weird-explore-sheet-item[data-cat="books"] { --cat-accent: #38bdf8; --cat-icon-bg: rgba(56,189,248,0.16); --cat-ring: rgba(56,189,248,0.28); --cat-ring-strong: rgba(56,189,248,0.54); --cat-wash: rgba(56,189,248,0.11); }
#sticky-header .weird-nav-explore-panel-item[data-cat="facts"], .weird-explore-sheet-item[data-cat="facts"] { --cat-accent: #facc15; --cat-icon-bg: rgba(250,204,21,0.16); --cat-ring: rgba(250,204,21,0.28); --cat-ring-strong: rgba(250,204,21,0.52); --cat-wash: rgba(250,204,21,0.10); }
#sticky-header .weird-nav-explore-panel-item[data-cat="jokes"], .weird-explore-sheet-item[data-cat="jokes"] { --cat-accent: #fb923c; --cat-icon-bg: rgba(251,146,60,0.16); --cat-ring: rgba(251,146,60,0.28); --cat-ring-strong: rgba(251,146,60,0.54); --cat-wash: rgba(251,146,60,0.11); }
#sticky-header .weird-nav-explore-panel-item[data-cat="lifehacks"], .weird-explore-sheet-item[data-cat="lifehacks"] { --cat-accent: #c084fc; --cat-icon-bg: rgba(192,132,252,0.16); --cat-ring: rgba(192,132,252,0.28); --cat-ring-strong: rgba(192,132,252,0.54); --cat-wash: rgba(192,132,252,0.11); }
#sticky-header .weird-nav-explore-panel-item[data-cat="local"], .weird-explore-sheet-item[data-cat="local"] { --cat-accent: #22c55e; --cat-icon-bg: rgba(34,197,94,0.16); --cat-ring: rgba(34,197,94,0.28); --cat-ring-strong: rgba(34,197,94,0.52); --cat-wash: rgba(34,197,94,0.10); }
#sticky-header .weird-nav-explore-panel-item[data-cat="memes"], .weird-explore-sheet-item[data-cat="memes"] { --cat-accent: #f97316; --cat-icon-bg: rgba(249,115,22,0.16); --cat-ring: rgba(249,115,22,0.28); --cat-ring-strong: rgba(249,115,22,0.54); --cat-wash: rgba(249,115,22,0.11); }
#sticky-header .weird-nav-explore-panel-item[data-cat="movies"], .weird-explore-sheet-item[data-cat="movies"] { --cat-accent: #4ade80; --cat-icon-bg: rgba(74,222,128,0.16); --cat-ring: rgba(74,222,128,0.28); --cat-ring-strong: rgba(74,222,128,0.54); --cat-wash: rgba(74,222,128,0.11); }
#sticky-header .weird-nav-explore-panel-item[data-cat="music"], .weird-explore-sheet-item[data-cat="music"] { --cat-accent: #60a5fa; --cat-icon-bg: rgba(96,165,250,0.16); --cat-ring: rgba(96,165,250,0.28); --cat-ring-strong: rgba(96,165,250,0.54); --cat-wash: rgba(96,165,250,0.11); }
#sticky-header .weird-nav-explore-panel-item[data-cat="podcasts"], .weird-explore-sheet-item[data-cat="podcasts"] { --cat-accent: #14b8a6; --cat-icon-bg: rgba(20,184,166,0.16); --cat-ring: rgba(20,184,166,0.28); --cat-ring-strong: rgba(20,184,166,0.52); --cat-wash: rgba(20,184,166,0.10); }
#sticky-header .weird-nav-explore-panel-item[data-cat="shopping"], .weird-explore-sheet-item[data-cat="shopping"] { --cat-accent: #22c55e; --cat-icon-bg: rgba(34,197,94,0.16); --cat-ring: rgba(34,197,94,0.28); --cat-ring-strong: rgba(34,197,94,0.54); --cat-wash: rgba(34,197,94,0.11); }
#sticky-header .weird-nav-explore-panel-item[data-cat="sports"], .weird-explore-sheet-item[data-cat="sports"] { --cat-accent: #84cc16; --cat-icon-bg: rgba(132,204,22,0.16); --cat-ring: rgba(132,204,22,0.28); --cat-ring-strong: rgba(132,204,22,0.52); --cat-wash: rgba(132,204,22,0.10); }
#sticky-header .weird-nav-explore-panel-item[data-cat="travel"], .weird-explore-sheet-item[data-cat="travel"] { --cat-accent: #06b6d4; --cat-icon-bg: rgba(6,182,212,0.16); --cat-ring: rgba(6,182,212,0.28); --cat-ring-strong: rgba(6,182,212,0.52); --cat-wash: rgba(6,182,212,0.10); }
#sticky-header .weird-nav-explore-panel-item[data-cat="tv"], .weird-explore-sheet-item[data-cat="tv"] { --cat-accent: #818cf8; --cat-icon-bg: rgba(129,140,248,0.16); --cat-ring: rgba(129,140,248,0.28); --cat-ring-strong: rgba(129,140,248,0.54); --cat-wash: rgba(129,140,248,0.11); }
#sticky-header .weird-nav-explore-panel-item[data-cat="videogames"], .weird-explore-sheet-item[data-cat="videogames"] { --cat-accent: #f97316; --cat-icon-bg: rgba(249,115,22,0.16); --cat-ring: rgba(249,115,22,0.28); --cat-ring-strong: rgba(249,115,22,0.54); --cat-wash: rgba(249,115,22,0.11); }
#sticky-header .weird-nav-explore-panel-item[data-cat="videos"], .weird-explore-sheet-item[data-cat="videos"] { --cat-accent: #ef4444; --cat-icon-bg: rgba(239,68,68,0.16); --cat-ring: rgba(239,68,68,0.28); --cat-ring-strong: rgba(239,68,68,0.54); --cat-wash: rgba(239,68,68,0.11); }
@media (min-width: 992px) {
	#sticky-header .weird-nav-explore-panel {
		position: absolute;
		top: calc(100% + 10px);
		left: 50%;
		transform: translateX(-50%);
		z-index: 1085;
		width: min(640px, calc(100vw - 28px));
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 991px) {
	#sticky-header .weird-nav-explore-menu > summary.nav-link {
		color: var(--text-primary) !important;
		font-size: 15px !important;
		font-weight: 600 !important;
		padding: 10px 8px !important;
		line-height: 1.4 !important;
	}
	#sticky-header .weird-nav-explore-panel {
		position: static;
		margin: 2px 0 10px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		box-shadow: none;
	}
	#sticky-header .weird-nav-explore-panel-item {
		min-height: 40px;
		white-space: normal;
	}
}
@media (max-width: 380px) {
	#sticky-header .weird-nav-explore-panel {
		grid-template-columns: 1fr;
	}
}

/* --- SLIDER / SECTION RESET --- */
.slider-area, .slider-four-non-bg, .slider-eight-bg,
[data-background="img/slider/weird_slider9.png"] {
	background: none !important;
	background-image: none !important;
	min-height: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}
#home { display: none !important; }

/* --- MAIN CONTENT AREA --- */
main {
	padding-top: 96px !important;
	min-height: 100vh; min-height: 100dvh;
	min-height: 100dvh;
}
/* V6.8 patch 28 — widen the legacy Bootstrap container to match the
   .discover-wrap width (1320px) so non-Discover pages (profile, match, etc.)
   get the same edge-to-edge feel as Messages/Discover. */
.container { max-width: 1320px !important; }
.wrapper {
	width: 100% !important;
	max-width: 100% !important;
	padding: 8px 0 !important;
	text-align: center;
	color: var(--text-secondary) !important;
}

/* --- PORTAL SECTIONS --- */
.topav, .topav2, .topav3, .topav4, .topav5 {
	background: var(--surface) !important;
	background-image: none !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important;
	color: var(--text-secondary) !important;
	padding: 20px !important;
	margin-bottom: 16px !important;
	opacity: 1 !important;
}
.topbut, .topbut2 {
	background: var(--bg-raised) !important;
	background-image: none !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important;
	color: var(--text-secondary) !important;
	padding: 16px !important;
	margin-bottom: 12px !important;
}
.topbut2 {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	justify-content: center !important;
	align-items: center !important;
}
.topfon, .topfon2 {
	color: var(--text-primary) !important;
	background-color: transparent !important;
	font-weight: 600 !important;
}
.toppbg {
	background-color: var(--purple) !important;
	border-radius: var(--radius-sm) !important;
	color: #fff !important;
}
.fonttop {
	color: var(--text-primary) !important;
	font-weight: 700 !important;
}

/* --- BUTTONS (portal) --- */
.btnport, .btnport2, .btnport3 {
	background: #7c3aed !important;
	background-image: none !important;
	border: 1px solid transparent !important;
	border-radius: var(--radius-pill) !important;
	color: #fff !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	padding: 10px 22px !important;
	box-shadow: none !important;
	transition: all 0.2s !important;
	display: inline-block !important;
	text-decoration: none !important;
	letter-spacing: 0.03em !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
	line-height: 1.4 !important;
}
.btnport:hover, .btnport2:hover, .btnport3:hover {
	background: var(--purple-light) !important;
	background-image: none !important;
	color: #fff !important;
	border-color: transparent !important;
	transform: translateY(-1px);
	text-decoration: none !important;
}
.btnport2 {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	color: var(--text-primary) !important;
	text-shadow: none !important;
	font-weight: 600 !important;
}
.btnport2:hover {
	background: var(--surface-hover) !important;
	color: var(--purple) !important;
	border-color: var(--purple-border) !important;
}
.btnport3 {
	background: var(--orange) !important;
	color: #fff !important;
}
.btnport3:hover {
	background: #fb923c !important;
}
html.light-mode .btnport {
	background: #7c3aed !important;
	color: #fff !important;
}
html.light-mode .btnport2 {
	background: var(--surface) !important;
	border-color: var(--border) !important;
	color: var(--text-primary) !important;
}
html.light-mode .btnport3 {
	background: var(--orange) !important;
	color: #fff !important;
}

/* --- SECTION VIEW ALL (below scroll) --- */
.section-viewall {
	padding: 12px 0 4px !important;
	margin-top: 4px !important;
}
.section-viewall a {
	font-size: 13px !important;
}

/* --- CARD ACTIONS (follow/profile/message) --- */
.card-actions {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	gap: 4px !important;
	padding: 4px 0 !important;
}
.card-actions .tvmatch2,
.card-actions .tvmatch3 {
	display: inline-flex !important;
	align-items: center !important;
	padding: 4px 8px !important;
	font-size: 11px !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	margin: 0 !important;
}

/* --- BOOTSTRAP OVERRIDES --- */
.btn-primary, .btn-info {
	background: #7c3aed !important;
	border-color: #7c3aed !important;
	color: #fff !important;
	border-radius: var(--radius-sm) !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}
.btn-primary:hover, .btn-info:hover {
	background: #6d28d9 !important;
	border-color: #6d28d9 !important;
}
.btn-secondary {
	background: #7c3aed !important;
	border-color: #7c3aed !important;
	color: #fff !important;
	border-radius: var(--radius-sm) !important;
	font-weight: 700 !important;
}
.btn-secondary:hover {
	background: #6d28d9 !important;
	border-color: #6d28d9 !important;
}
.btn-success {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	color: var(--text-secondary) !important;
	border-radius: var(--radius-sm) !important;
	font-weight: 500 !important;
}
.btn-success:hover {
	background: var(--surface-hover) !important;
	color: var(--text-primary) !important;
}
.btn-danger {
	background: var(--coral) !important;
	border-color: var(--coral) !important;
	border-radius: var(--radius-sm) !important;
}
.btn-outline-secondary {
	border-color: var(--border) !important;
	color: var(--text-secondary) !important;
	border-radius: var(--radius-sm) !important;
}
.btn-outline-secondary:hover {
	background: var(--surface-hover) !important;
	color: var(--purple) !important;
}

/* --- FORMS --- */
.form-control {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--text-primary) !important;
	padding: 10px 16px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 14px !important;
}
.form-control:focus {
	border-color: var(--purple) !important;
	box-shadow: 0 0 0 3px var(--purple-glow) !important;
	background: var(--surface) !important;
	color: var(--text-primary) !important;
}
.form-control::placeholder { color: var(--text-muted) !important; }
select {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--text-primary) !important;
	box-shadow: none !important;
	padding: 8px 12px !important;
}
textarea {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--text-primary) !important;
}

/* --- CARDS / PANELS --- */
.card, .panel {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important;
	color: var(--text-secondary) !important;
	box-shadow: var(--shadow) !important;
}
.card-header, .panel-heading {
	background: var(--bg-raised) !important;
	border-bottom: 1px solid var(--border) !important;
	color: var(--text-primary) !important;
}
.card-body, .panel-body {
	color: var(--text-secondary) !important;
}

/* --- ALERTS --- */
.alert-success {
	background: var(--green-bg) !important;
	border: 1px solid rgba(52, 211, 153, 0.3) !important;
	color: var(--green) !important;
	border-radius: var(--radius-sm) !important;
}
.alert-danger, .alert-warning {
	background: rgba(249, 115, 22, 0.1) !important;
	border: 1px solid rgba(249, 115, 22, 0.3) !important;
	color: var(--coral) !important;
	border-radius: var(--radius-sm) !important;
}
.alert-info {
	background: rgba(34, 211, 238, 0.1) !important;
	border: 1px solid rgba(34, 211, 238, 0.3) !important;
	color: var(--cyan) !important;
	border-radius: var(--radius-sm) !important;
}

/* --- TABLES --- */
table, .table {
	color: var(--text-secondary) !important;
}
.table th {
	color: var(--text-primary) !important;
	border-color: var(--border) !important;
	font-weight: 600 !important;
}
.table td {
	border-color: var(--border) !important;
	color: var(--text-secondary) !important;
}
.table-striped tbody tr:nth-of-type(odd) {
	background-color: var(--bg-raised) !important;
}
.table-hover tbody tr:hover {
	background-color: var(--surface-hover) !important;
}

/* --- SCROLLABLE LISTS (avatars) --- */
.avatars, .avatars2, .avatars3 {
	color: var(--text-primary) !important;
	scrollbar-color: var(--text-muted) var(--surface) !important;
}
.avatars::-webkit-scrollbar-thumb,
.avatars2::-webkit-scrollbar-thumb,
.avatars3::-webkit-scrollbar-thumb {
	background-color: var(--text-muted) !important;
}

/* --- JUMP CARDS --- */
.jumpa {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border-radius: var(--radius-sm) !important;
	border: 1px solid var(--border) !important;
}
.jumpa:hover {
	border-color: var(--purple-border) !important;
	box-shadow: var(--shadow-glow) !important;
}
.jumpa2 {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border-radius: var(--radius-sm) !important;
	border: 1px solid var(--border) !important;
	margin: 6px !important;
	padding: 12px !important;
}
.jumpa2:hover {
	background-color: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}

/* --- STATS --- */
.stats-item .label {
	color: var(--text-muted) !important;
}
.stats-item .stat {
	color: var(--text-primary) !important;
}
.stat-group header { color: var(--text-primary) !important; }

/* --- PURPLE BG SECTIONS (footer, share bar) --- */
.purplebg4 {
	background: var(--bg-raised) !important;
	background-image: none !important;
	color: var(--text-muted) !important;
	border-top: 1px solid var(--border) !important;
}
.purpletext4 { color: var(--purple) !important; }
.whitec { color: var(--purple-light) !important; }

/* --- FOOTER --- */
#fbg, footer {
	background: var(--bg) !important;
	background-image: none !important;
	border-top: 1px solid var(--border) !important;
}
.footer-text p, .copyright-text { color: var(--text-muted) !important; }
.fw-link ul li a { color: var(--text-muted) !important; }
.fw-link ul li a:hover { color: var(--purple) !important; }
/* WCAG 2.1 SC 2.5.5 (Target Size) — give footer links a comfortable
   tap target. Default theme renders them at ~24px tall which is too
   tight for thumbs on mobile. */
.fw-link ul li a {
	display: inline-block;
	padding: 8px 4px;
	min-height: 36px;
	line-height: 1.4;
}
.fw-title h5 { color: var(--text-primary) !important; }
html.light-mode .footer-widget img[src*="logo"] { filter: url(#logo-purple); }
html.light-mode nav img[src*="logo"],
html.light-mode .navbar img[src*="logo"],
html.light-mode header img[src*="logo"] { filter: url(#logo-purple); }

/* --- PAGINATION --- */
.pagination .page-link {
	background: var(--surface) !important;
	border-color: var(--border) !important;
	color: var(--text-secondary) !important;
}
.pagination .page-item.active .page-link {
	background: var(--purple) !important;
	border-color: var(--purple) !important;
	color: #fff !important;
}

/* --- TOOLTIPS --- */
.tooltipa .tooltiptexta {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
}

/* --- MODALS --- */
.modal-content {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important;
	color: var(--text-secondary) !important;
}
.modal-header {
	border-bottom-color: var(--border) !important;
	color: var(--text-primary) !important;
}
.modal-footer {
	border-top-color: var(--border) !important;
}
.close { color: var(--text-muted) !important; }

/* --- BADGES --- */
.badge-primary, .badge-info {
	background: var(--purple) !important;
	color: #fff !important;
}
.badge-success {
	background: var(--green) !important;
	color: #fff !important;
}
.badge-danger {
	background: var(--coral) !important;
	color: #fff !important;
}

/* --- MISC TEXT --- */
.text-muted { color: var(--text-muted) !important; }
.text-muted2 { color: var(--text-secondary) !important; opacity: 1 !important; }
.font12 { color: var(--text-muted) !important; }
strong, b { color: var(--text-primary); }
hr { border-color: var(--border) !important; }

/* Text inside colored badges should inherit parent color */
.toppbg .text-muted2 { color: rgba(255,255,255,0.85) !important; }
.toppbg strong, .toppbg b { color: #fff !important; }
.toppbg a { color: #fff !important; }

/* --- WEIRD COIN SPINNER --- */
.weirdcointext {
	color: var(--purple) !important;
}

/* --- IMAGES IN DARK MODE --- */
img[src*="weird_slider"], img[src*="footer6"] {
	display: none !important;
}

/* --- THEME TOGGLE (matches homepage exactly) --- */
.theme-toggle {
	background: var(--surface); border: 1px solid var(--border);
	width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	font-size: 16px; transition: all 0.3s var(--ease);
	color: var(--orange); flex-shrink: 0;
	margin-left: 14px;
	padding: 0;
}
.theme-toggle:hover {
	background: var(--purple);
	color: #fff;
	border-color: var(--purple);
	transform: scale(1.1);
}
/* Dark mode: show sun (you can switch to light) */
html:not(.light-mode) .theme-toggle .fa-sun { display: inline; }
html:not(.light-mode) .theme-toggle .fa-moon { display: none; }
/* Light mode: show moon (you can switch to dark) */
html.light-mode .theme-toggle .fa-sun { display: none; }
html.light-mode .theme-toggle .fa-moon { display: inline; }

/* Mobile theme toggle */
.theme-toggle-mobile {
	background: var(--surface); border: 1px solid var(--border);
	width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
	display: none; align-items: center; justify-content: center;
	font-size: 15px; transition: all 0.3s var(--ease);
	color: var(--orange); flex-shrink: 0;
	margin-left: auto; margin-right: 12px;
	padding: 0;
}
.theme-toggle-mobile:hover {
	background: var(--purple); color: #fff; border-color: var(--purple);
}
html:not(.light-mode) .theme-toggle-mobile .fa-sun { display: inline; }
html:not(.light-mode) .theme-toggle-mobile .fa-moon { display: none; }
html.light-mode .theme-toggle-mobile .fa-sun { display: none; }
html.light-mode .theme-toggle-mobile .fa-moon { display: inline; }
@media (max-width: 991px) {
	.theme-toggle-mobile { display: flex; }
	/* V6.8 patch 86 — scoped to the legacy guest-page navbar containers
	   only (login, forgot, register, terms, privacy, messages, notifylib,
	   index). Logged-in headers (header.php / header2.php) no longer
	   render a navbar theme toggle, and the new in-settings theme toggle
	   on editinfo.php must remain visible on mobile. */
	.main-menu .theme-toggle,
	.transparent-menu .theme-toggle { display: none !important; }
}

/* V6.8 patch 86 — Account settings theme row */
.acct-theme-row {
	display: flex; align-items: center; gap: 14px;
	flex-wrap: wrap;
}
.acct-theme-row .theme-toggle {
	margin-left: 0;
	width: 44px; height: 44px;
	font-size: 18px;
}
.acct-theme-hint {
	color: var(--text-secondary, #8a8a8a);
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
}

/* --- DROPDOWN --- */
.dropdown-menu {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
}
.dropdown-item {
	color: var(--text-secondary) !important;
}
.dropdown-item:hover {
	background: var(--surface-hover) !important;
	color: var(--purple) !important;
}

/* --- LIST GROUP --- */
.list-group-item {
	background: var(--surface) !important;
	border-color: var(--border) !important;
	color: var(--text-secondary) !important;
}

/* --- BREADCRUMB --- */
.breadcrumb {
	background: var(--bg-raised) !important;
	border-radius: var(--radius-sm) !important;
}
.breadcrumb-item a { color: var(--purple) !important; }
.breadcrumb-item.active { color: var(--text-muted) !important; }

/* --- RESPONSIVE: MOBILE NAV (matches homepage) --- */
@media (max-width: 991px) {
	ul.navbar-nav,
	.sticky-menu ul.navbar-nav,
	.main-menu ul.navbar-nav {
		background: var(--surface) !important;
		border: 1px solid var(--border) !important;
		border-radius: var(--radius-sm) !important;
		padding: 12px 16px !important;
		margin-top: 10px !important;
		box-shadow: var(--shadow) !important;
	}
	.navbar-collapse {
		background: none !important;
		border: none !important;
		margin-top: 0 !important;
		padding: 0 !important;
	}
	.main-menu .navbar-nav li.nav-item {
		margin: 0 !important;
	}
	.main-menu .navbar-nav li.nav-item a.nav-link,
	.main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link,
	.sticky-menu .main-menu .navbar-nav li.nav-item a.nav-link {
		color: var(--text-primary) !important;
		font-size: 15px !important;
		font-weight: 600 !important;
		padding: 10px 8px !important;
		line-height: 1.4 !important;
	}
	.main-menu .navbar-nav li.nav-item a.nav-link:hover,
	.main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link:hover {
		color: var(--purple) !important;
	}
	.main-menu .navbar-nav li.nav-item a.nav-link::before,
	.main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link::before,
	.sticky-menu .main-menu .navbar-nav li.nav-item a.nav-link::before {
		display: none !important;
	}
	.navbar-collapse .theme-toggle { margin: 8px 0 0; }
	#sticky-header .navbar {
		column-gap: 0;
		row-gap: 0;
	}
	#sticky-header .navbar > a:first-child {
		order: 1;
	}
	#sticky-header .weird-nav-actions {
		order: 2;
		margin-left: auto !important;
		gap: 8px;
	}
	#sticky-header .weird-nav-actions .weird-notif-trigger,
	#sticky-header .weird-nav-actions .weird-search-trigger {
		width: 42px !important;
		height: 42px !important;
		border-radius: 12px !important;
		background: rgba(124,58,237,0.10) !important;
		border-color: rgba(124,58,237,0.24) !important;
	}
	#sticky-header .weird-nav-actions .weird-notif-trigger:hover,
	#sticky-header .weird-nav-actions .weird-search-trigger:hover,
	#sticky-header .weird-nav-actions .weird-notif-trigger:focus-visible,
	#sticky-header .weird-nav-actions .weird-search-trigger:focus-visible {
		background: rgba(124,58,237,0.18) !important;
		border-color: rgba(124,58,237,0.44) !important;
	}
	.navbar-toggler {
		order: 3;
		margin-left: 8px !important;
		border: 1px solid rgba(124,58,237,0.36) !important;
		padding: 0 !important;
		width: 44px !important;
		height: 44px !important;
		border-radius: 12px !important;
		background: linear-gradient(180deg, rgba(124,58,237,0.16), rgba(124,58,237,0.08)) !important;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		box-shadow: 0 10px 22px rgba(12,10,20,0.18);
	}
	.navbar-icon {
		background: var(--text-primary) !important;
		height: 2px !important;
		width: 20px !important;
		margin: 3px 0 !important;
		border-radius: 2px;
		transition: transform .18s ease, opacity .18s ease;
	}
	.navbar-toggler[aria-expanded="true"] .navbar-icon:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.navbar-toggler[aria-expanded="true"] .navbar-icon:nth-child(2) { opacity: 0; }
	.navbar-toggler[aria-expanded="true"] .navbar-icon:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	#sticky-header .navbar-collapse {
		order: 4;
		flex: 0 0 100% !important;
		width: 100% !important;
		margin-top: 10px !important;
	}
	#sticky-header ul.navbar-nav,
	#sticky-header .sticky-menu ul.navbar-nav,
	#sticky-header .main-menu ul.navbar-nav {
		background: rgba(26,19,48,0.96) !important;
		border: 1px solid rgba(124,58,237,0.24) !important;
		border-radius: 16px !important;
		padding: 8px !important;
		box-shadow: 0 22px 48px rgba(0,0,0,0.28) !important;
		backdrop-filter: blur(14px);
	}
	html.light-mode #sticky-header ul.navbar-nav,
	html.light-mode #sticky-header .main-menu ul.navbar-nav {
		background: rgba(255,255,255,0.96) !important;
		border-color: rgba(124,58,237,0.18) !important;
		box-shadow: 0 20px 38px rgba(30,20,55,0.14) !important;
	}
	#sticky-header .main-menu .navbar-nav li.nav-item a.nav-link,
	#sticky-header .main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link,
	#sticky-header .sticky-menu .main-menu .navbar-nav li.nav-item a.nav-link {
		display: flex !important;
		align-items: center !important;
		gap: 10px;
		min-height: 46px;
		padding: 11px 12px !important;
		border-radius: 12px !important;
		font-size: 15px !important;
	}
	#sticky-header .main-menu .navbar-nav li.nav-item a.nav-link i,
	#sticky-header .main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link i {
		width: 26px;
		height: 26px;
		border-radius: 9px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-right: 0 !important;
		background: rgba(124,58,237,0.12);
		color: var(--purple, #7c3aed) !important;
	}
	#sticky-header .main-menu .navbar-nav li.nav-item a.nav-link:hover,
	#sticky-header .main-menu .navbar-nav li.nav-item a.nav-link.is-active,
	#sticky-header .main-menu .navbar-nav li.nav-item a.nav-link[aria-current="page"],
	#sticky-header .main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link:hover,
	#sticky-header .main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link.is-active,
	#sticky-header .main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link[aria-current="page"] {
		background: rgba(124,58,237,0.14) !important;
		color: var(--text-primary) !important;
	}
}

/* --- LINK COLORS IN CONTENT --- */
.wrapper a { color: var(--purple) !important; }
.wrapper a:hover { color: var(--purple-light) !important; }

/* --- PROGRESS BARS --- */
.progress {
	background: var(--bg-raised) !important;
	border-radius: var(--radius-sm) !important;
}
.progress-bar {
	background: var(--purple) !important;
}

/* --- INPUT GROUP --- */
.input-group-text {
	background: var(--bg-raised) !important;
	border-color: var(--border) !important;
	color: var(--text-muted) !important;
}

/* --- SUBMITREG (login/register button) --- */
.submitreg {
	background: var(--purple) !important;
	border-color: var(--purple) !important;
	color: #fff !important;
	border-radius: var(--radius-sm) !important;
	font-weight: 600 !important;
	padding: 10px 24px !important;
}
.submitreg:hover {
	background: var(--purple-light) !important;
	border-color: var(--purple-light) !important;
}

/* --- MESSAGES PAGE --- */
.chat-messages {
	background-color: var(--bg-raised) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--text-secondary) !important;
}
.chat-messages::-webkit-scrollbar-thumb { background-color: var(--text-muted) !important; }
.chat-message-left, .chat-message-right { color: var(--text-secondary) !important; }
.profilea {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
}
.profilea:hover {
	background-color: var(--purple) !important;
	color: #fff !important;
}
.accordion-button {
	background-color: var(--surface) !important;
	color: var(--text-primary) !important;
	border: none !important;
	font-family: 'Inter', sans-serif !important;
}
.accordion-button:not(.collapsed) {
	background-color: var(--purple) !important;
	color: #fff !important;
}
.accordion-button:focus { box-shadow: 0 0 0 3px var(--purple-glow) !important; }
.accordion-item {
	background-color: var(--surface) !important;
	border-color: var(--border) !important;
}
.accordion-body {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
}

/* --- LOGIN / REGISTER PAGES (standalone head) --- */
.wrapper h2, .wrapper h3 { color: var(--text-primary) !important; }
.wrapper p { color: var(--text-secondary) !important; }

/* ============================================
   CONTENT SECTION OVERRIDES
   Override inline <style> blocks on inner pages
   ============================================ */

/* --- BOX / CONTENT CONTAINERS --- */
.box2 {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
}
.box3 {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border-color: var(--border) !important;
}
.purple {
	background: var(--bg-raised) !important;
	border: 2px solid var(--purple) !important;
	border-radius: var(--radius-sm) !important;
}
.purple2 {
	border: 15px solid var(--bg-raised) !important;
}
.input {
	background: var(--surface) !important;
	color: var(--text-secondary) !important;
	border: 2px solid var(--purple) !important;
	border-radius: var(--radius-sm) !important;
}
.input::placeholder {
	color: var(--text-muted) !important;
}
::placeholder {
	color: var(--text-muted) !important;
}

/* --- BUTTONS (content areas) --- */
.buttonaa {
	background: #7c3aed !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--radius-sm) !important;
	font-weight: 700 !important;
	transition: background 0.25s var(--ease) !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}
.buttonaa:hover {
	background: #6d28d9 !important;
	color: #fff !important;
}
.box:hover button {
	background: var(--purple-light) !important;
	color: #fff !important;
}
.box:hover .input,
.box:hover input {
	background: var(--surface-hover) !important;
	color: var(--text-primary) !important;
}

/* --- THUMBS / RATING --- */
.linkthumbs {
	color: var(--green) !important;
	background-color: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
	transition: all 0.25s var(--ease) !important;
}
.linkthumbs:hover {
	background-color: var(--green-bg) !important;
	color: var(--green) !important;
}
.linkthumbsr {
	color: var(--coral) !important;
	background-color: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
	transition: all 0.25s var(--ease) !important;
}
.linkthumbsr:hover {
	background-color: rgba(249, 115, 22, 0.12) !important;
	color: var(--coral) !important;
}
.redt, .redt a { color: var(--coral) !important; }
.greent, .greent a { color: var(--green) !important; }

/* --- FILTER / TAG PILLS --- */
.tvmatch {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-pill) !important;
	transition: all 0.25s var(--ease) !important;
}
.tvmatch:hover {
	background-color: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}
.tvmatch2 {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-pill) !important;
	transition: all 0.25s var(--ease) !important;
}
.tvmatch2:hover {
	background-color: var(--coral) !important;
	color: #fff !important;
	border-color: var(--coral) !important;
}
.tvmatch3 {
	background-color: var(--purple) !important;
	color: #fff !important;
	border-radius: var(--radius-pill) !important;
	transition: all 0.25s var(--ease) !important;
}
.tvmatch3:hover {
	background-color: var(--purple-light) !important;
}
.tvmatch4 {
	background-color: var(--purple) !important;
	color: #fff !important;
	border-radius: var(--radius-pill) !important;
}
.selectedtv {
	background-color: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
	border-radius: var(--radius-pill) !important;
}

/* --- CUSTOM SELECT DROPDOWNS --- */
.custom-select {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border: 2px solid var(--purple) !important;
	border-radius: var(--radius-sm) !important;
}
.custom-select select {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
}
.custom-select:after {
	background-color: var(--purple) !important;
}
.purplesel {
	background-color: var(--purple) !important;
	color: #fff !important;
	border-radius: var(--radius-sm) !important;
}

/* --- TEXT / MUTED HELPERS --- */
.text-muted3, .text-muted3 a { color: var(--text-muted) !important; }
.text-muted4 { color: var(--text-muted) !important; }
.text-muted5 { color: var(--text-muted) !important; opacity: 0.8 !important; }
.text-muted6 { color: var(--text-muted) !important; font-size: 10px !important; }
.purpletext { color: var(--purple) !important; }
.whitetext { color: var(--text-primary) !important; }
.dottedb {
	border-bottom: 1px dotted var(--border) !important;
}

/* --- TABLE ROWS --- */
tr:nth-child(even) {
	background-color: var(--surface) !important;
}
tr:nth-child(odd) {
	background-color: var(--bg-raised) !important;
}
td, th {
	color: var(--text-secondary) !important;
	border-color: var(--border) !important;
}

/* --- EDITINFO / PROFILE FORMS --- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], textarea, select {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border-color: var(--border) !important;
	border-radius: var(--radius-sm) !important;
	font-size: 16px !important; /* Prevent iOS focus auto-zoom */
}
input:focus, textarea:focus, select:focus {
	background-color: var(--surface-hover) !important;
	color: var(--text-primary) !important;
	border-color: var(--purple) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px var(--purple-glow) !important;
}
input[type="range"] {
	accent-color: var(--purple) !important;
}
input[type="range"]::-webkit-slider-thumb {
	background: var(--purple) !important;
}
input[type="range"]::-webkit-slider-runnable-track {
	background: var(--border) !important;
}

/* --- ACTIVITY PAGE INLINE STYLE FIX --- */
div[style*="background-color: #F0F3F4"],
div[style*="background-color:#F0F3F4"] {
	background-color: var(--surface) !important;
	border-radius: var(--radius-sm) !important;
}

/* --- PAGINATION --- */
.mobilepag {
	color: var(--text-secondary) !important;
}
.mobilepag a {
	color: var(--purple) !important;
}

/* --- GENERAL CONTENT AREA --- */
main, .main-area, section {
	color: var(--text-secondary) !important;
}
h1, h2, h3, h4, h5, h6 {
	color: var(--text-primary) !important;
}
p {
	color: var(--text-secondary) !important;
}
a {
	color: var(--purple-light) !important;
}
a:hover {
	color: var(--purple) !important;
}
.nav-link, .nav-link.user {
	color: var(--text-secondary) !important;
	transition: all 0.3s !important;
	font-size: 18px !important;
}
.nav-link:hover, .nav-link.user:hover {
	color: var(--purple) !important;
}

/* --- COIN SPINNER (thisorthat / welcome) --- */
.weirdcointext {
	color: var(--purple) !important;
}

/* --- TOGGLE BUTTON PATTERN (avatar/interest selection) --- */
.btn-check.hidden {
	position: absolute !important;
	clip: rect(0,0,0,0) !important;
	pointer-events: none !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
}
[data-toggle="buttons"] label.btn {
	cursor: pointer !important;
	position: relative !important;
	z-index: 1 !important;
}
[data-toggle="buttons"] label.btn-primary {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	color: var(--text-secondary) !important;
	margin: 3px !important;
	transition: all 0.2s var(--ease) !important;
}
[data-toggle="buttons"] label.btn-primary:hover {
	background: var(--surface-hover) !important;
	color: var(--text-primary) !important;
	border-color: var(--purple-border) !important;
}
[data-toggle="buttons"] label.btn-primary.active,
label.btn:has(input:checked) {
	background: var(--purple) !important;
	border-color: var(--purple) !important;
	color: #fff !important;
	box-shadow: 0 0 0 3px var(--purple-glow) !important;
}
.avatars label.btn {
	padding: 2px !important;
	margin: 2px !important;
	border-radius: 50% !important;
	background: transparent !important;
	border: 3px solid transparent !important;
}
.avatars label.btn.active,
.avatars label.btn:has(input:checked) {
	border-color: var(--purple) !important;
	box-shadow: 0 0 0 3px var(--purple-glow) !important;
	background: var(--purple-glow) !important;
}

/* --- CARD LINK READABILITY --- */
.jumpa2 .tvmatch2 {
	color: var(--text-secondary) !important;
	font-size: 11px !important;
}
.jumpa2 .tvmatch2:hover {
	color: #fff !important;
}
.jumpa2 .tvmatch3:hover {
	color: #fff !important;
}
.jumpa .font-weight-bold a,
.jumpa2 .font-weight-bold a,
.card .font-weight-bold a {
	color: var(--text-primary) !important;
}
.card .font-weight-bold a:hover {
	color: var(--purple-light) !important;
}

/* Discover page category links */
.wrapper a strong,
main a strong {
	color: var(--purple-light) !important;
}
.wrapper a:hover strong,
main a:hover strong {
	color: #fff !important;
}

/* Form labels readability */
.reglab, label.reglab {
	color: var(--text-secondary) !important;
}

/* Input group addon */
.input-group-text {
	background: var(--bg-raised) !important;
	border-color: var(--border) !important;
	color: var(--text-muted) !important;
}

/* --- LIGHT MODE content overrides --- */
html.light-mode .linkthumbs { border-color: var(--border) !important; }
html.light-mode .linkthumbsr { border-color: var(--border) !important; }
html.light-mode tr:nth-child(even) { background-color: var(--surface) !important; }
html.light-mode tr:nth-child(odd) { background-color: var(--bg-raised) !important; }
html.light-mode .tvmatch { border-color: var(--border) !important; }
html.light-mode .tvmatch2 { border-color: var(--border) !important; }
html.light-mode a { color: var(--purple) !important; }
html.light-mode a:hover { color: var(--purple-light) !important; }
html.light-mode [data-toggle="buttons"] label.btn-primary {
	background: var(--bg-raised) !important;
	border-color: var(--border) !important;
	color: var(--text-secondary) !important;
}
html.light-mode [data-toggle="buttons"] label.btn-primary.active,
html.light-mode label.btn:has(input:checked) {
	background: var(--purple) !important;
	color: #fff !important;
}
html.light-mode .wrapper a strong,
html.light-mode main a strong {
	color: var(--purple) !important;
}
html.light-mode .wrapper a:hover strong {
	color: var(--purple-light) !important;
}

/* ============================================
   BOOTSTRAP UTILITY OVERRIDES
   Ensure bg-light, bg-dark, text-* work in dark mode
   ============================================ */
.bg-light {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
}
.bg-dark {
	background-color: var(--bg-raised) !important;
	color: var(--text-primary) !important;
}
.bg-white {
	background-color: var(--surface) !important;
}
.bg-secondary {
	background-color: var(--surface-hover) !important;
}
.text-dark {
	color: var(--text-primary) !important;
}
.text-white {
	color: var(--text-primary) !important;
}
html.light-mode .text-white {
	color: var(--text-primary) !important;
}
html.light-mode .bg-light {
	background-color: var(--surface) !important;
}
html.light-mode .bg-dark {
	background-color: var(--bg-raised) !important;
	color: var(--text-primary) !important;
}

/* ============================================
   MESSAGES PAGE — CHAT BUBBLES & BORDERS
   ============================================ */
/* Received message bubble */
.chat-message-left .bg-light {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
}
.chat-message-left .bg-light .font-weight-bold {
	color: var(--text-primary) !important;
}
.chat-message-left .bg-light a {
	color: var(--purple-light) !important;
}
/* Sent message bubble */
.chat-message-right .bg-dark {
	background-color: #7c3aed !important;
	color: #fff !important;
	border: 1px solid rgba(139, 92, 246, 0.3) !important;
}
.chat-message-right .bg-dark .font-weight-bold {
	color: rgba(255,255,255,0.9) !important;
}
.chat-message-right .bg-dark font,
.chat-message-right .bg-dark font[color],
.chat-message-right .bg-dark .msg-sender,
.chat-message-right .bg-dark .msg-text {
	color: #fff !important;
}
/* Override all <font> tags in chat */
.chat-messages font[color] {
	color: inherit !important;
}
.chat-message-right font[color] {
	color: #fff !important;
}
.chat-message-left font[color] {
	color: var(--purple) !important;
}
/* Message "NEW" badge */
.msg-new, font[color="330099"] {
	color: var(--purple) !important;
	font-weight: 700 !important;
}
/* Message border overrides */
.border-bottom {
	border-bottom-color: var(--border) !important;
}
.border-bottom2 {
	border-bottom: 0.5px solid var(--border) !important;
}
.border-top {
	border-top-color: var(--border) !important;
}
/* Badge in message list */
.badge {
	color: var(--purple) !important;
}
.badge font[color] {
	color: var(--purple) !important;
}
/* Message list items */
.list-group-item.list-group-item-action {
	background: var(--surface) !important;
	color: var(--text-secondary) !important;
	border-color: var(--border) !important;
}
.list-group-item.list-group-item-action:hover {
	background: var(--surface-hover) !important;
	color: var(--text-primary) !important;
}
.list-group-item.list-group-item-action .font-weight-bold {
	color: var(--text-primary) !important;
}
/* Message timestamps */
.chat-message-left .text-muted,
.chat-message-right .text-muted {
	color: var(--text-muted) !important;
	font-size: 11px !important;
}

/* ============================================
   GENERAL <font> TAG OVERRIDES
   For any remaining <font color> in PHP
   ============================================ */
font[color] {
	color: inherit !important;
}
font[color="330099"],
font[color="#330099"] {
	color: var(--purple) !important;
}
font[color="#fff"],
font[color="fff"],
font[color="#ffffff"],
font[color="white"] {
	color: var(--text-primary) !important;
}
/* Except inside sent bubbles where white is correct */
.bg-dark font[color="#fff"],
.bg-dark font[color="fff"] {
	color: #fff !important;
}

/* ============================================
   BTN-PRIMARY / BTN-INFO / SUBMIT — CONTRAST FIX
   Use darker purple for better contrast ratio
   ============================================ */
.btn-primary, .btn-info, .submitreg {
	background: #7c3aed !important;
	border-color: #7c3aed !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}
.btn-primary:hover, .btn-info:hover, .submitreg:hover {
	background: #6d28d9 !important;
	border-color: #6d28d9 !important;
	color: #fff !important;
}
.btn-primary:focus, .btn-info:focus, .submitreg:focus {
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3) !important;
}

/* ============================================
   SEARCH / FILTER BOX — BETTER READABILITY
   ============================================ */
.box {
	background: var(--surface) !important;
	border-radius: var(--radius-sm) !important;
}
.box:hover {
	background: var(--surface-hover) !important;
}
.box .input, .box input {
	background: var(--surface) !important;
	color: var(--text-primary) !important;
	border-color: var(--purple) !important;
}
.box .buttonaa, .box button {
	background: #7c3aed !important;
	color: #fff !important;
}

/* ============================================
   PROFILE PAGE FIXES
   ============================================ */
.purpletext {
	color: var(--text-secondary) !important;
}
.whitetext {
	color: var(--text-primary) !important;
}
/* Profile progress bars */
.progress {
	background: var(--bg-raised) !important;
	border: 1px solid var(--border) !important;
	height: 20px !important;
}
.progress-bar {
	background: linear-gradient(90deg, #7c3aed, var(--purple-light)) !important;
	color: #fff !important;
	font-weight: 600 !important;
	font-size: 12px !important;
}
/* Profile share textarea */
textarea {
	background: var(--surface) !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
}
textarea:focus {
	background: var(--surface-hover) !important;
	color: var(--text-primary) !important;
	border-color: var(--purple) !important;
}

/* ============================================
   CUSTOM SELECT — BETTER DARK MODE
   ============================================ */
.custom-select {
	background-color: var(--surface) !important;
	color: var(--text-primary) !important;
	border: 2px solid var(--purple) !important;
	border-radius: var(--radius-sm) !important;
}
.custom-select select {
	background-color: var(--surface) !important;
	color: var(--text-primary) !important;
	border: none !important;
}
.custom-select::after,
.custom-select:after {
	background-color: #7c3aed !important;
	color: #fff !important;
}
select option {
	background-color: var(--surface) !important;
	color: var(--text-primary) !important;
}

/* ============================================
   TABLE / LIST READABILITY
   ============================================ */
table {
	color: var(--text-secondary) !important;
}
tr {
	color: var(--text-secondary) !important;
}
tr:nth-child(even) {
	background-color: var(--surface) !important;
}
tr:nth-child(odd) {
	background-color: var(--bg-raised) !important;
}
td {
	color: var(--text-secondary) !important;
	border-color: var(--border) !important;
	padding: 8px !important;
}
th {
	color: var(--text-primary) !important;
	border-color: var(--border) !important;
	font-weight: 700 !important;
}
/* Make percentage/rating text more readable */
td .text-muted3, td .text-muted4,
td small, td .small {
	color: var(--text-muted) !important;
	font-size: 12px !important;
}

/* ============================================
   THUMBS UP/DOWN — HOVER STATE FIX
   Inline styles set :hover to #F0F0F0 bg
   ============================================ */
.linkthumbs:hover {
	background-color: var(--green-bg) !important;
	color: var(--green) !important;
	border-color: var(--green) !important;
}
.linkthumbsr:hover {
	background-color: rgba(249, 115, 22, 0.12) !important;
	color: var(--coral) !important;
	border-color: var(--coral) !important;
}
.redt a:hover, .greent a:hover {
	color: var(--text-primary) !important;
}

/* ============================================
   FILTER PILLS — ACTIVE/HOVER STATE FIXES
   ============================================ */
.tvmatch2:hover {
	background-color: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}
.tvmatch3:hover {
	background-color: var(--purple-light) !important;
	color: #fff !important;
	border-color: var(--purple-light) !important;
}
/* Ensure toggle-style pills (.tvmatch2/.tvmatch3 used as Follow/Unfollow) */
a.tvmatch2, a.tvmatch3, span.tvmatch2, span.tvmatch3 {
	cursor: pointer !important;
	user-select: none !important;
}

/* ============================================
   PURPLE2 SECTION HEADER
   ============================================ */
.purple2 {
	border: 4px solid var(--purple) !important;
	color: var(--text-primary) !important;
	background-color: var(--bg-raised) !important;
	border-radius: var(--radius) !important;
}

/* ============================================
   TOOLTIP FIX
   ============================================ */
.dottedb {
	border-bottom: 1px dotted var(--text-muted) !important;
	cursor: help !important;
}
.tooltipa .tooltiptexta {
	background-color: var(--surface) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
	box-shadow: var(--shadow) !important;
}

/* ============================================
   INLINE STYLE ATTRIBUTE OVERRIDES
   Target elements with hardcoded inline colors
   ============================================ */
[style*="background-color: #F0F0F0"],
[style*="background-color:#F0F0F0"],
[style*="background-color: #f0f0f0"],
[style*="background-color:#f0f0f0"],
[style*="background: #F0F0F0"],
[style*="background: #f0f0f0"] {
	background-color: var(--surface) !important;
}
[style*="background-color: #F0F3F4"],
[style*="background-color:#F0F3F4"] {
	background-color: var(--surface) !important;
}
[style*="color:#000"],
[style*="color: #000"],
[style*="color:black"],
[style*="color: black"] {
	color: var(--text-secondary) !important;
}
[style*="color:#333"],
[style*="color: #333"] {
	color: var(--text-secondary) !important;
}

/* ============================================
   MOBILE / RESPONSIVE — READABILITY
   ============================================ */
@media (max-width: 767px) {
	.btnport, .btnport2, .btnport3 {
		font-size: 13px !important;
		padding: 8px 16px !important;
	}
	.topav, .topav2, .topav3, .topav4, .topav5 {
		padding: 12px !important;
	}
	.avatars, .avatars2, .avatars3 {
		padding: 6px !important;
	}
	.box2 {
		padding: 10px !important;
	}
	td {
		font-size: 13px !important;
		padding: 6px !important;
	}
	.jumpa, .jumpa2 {
		margin: 4px !important;
		padding: 8px !important;
	}
	.chat-messages {
		max-height: 350px !important;
	}
}

@media (max-width: 480px) {
	.btnport, .btnport2, .btnport3 {
		font-size: 12px !important;
		padding: 7px 14px !important;
	}
	.topbut2 {
		gap: 4px !important;
	}
}

/* ============================================================
   V6 — UNIFIED DESIGN SYSTEM
   - Consistent buttons everywhere (.btn-glow same as homepage)
   - Trust signals, feed, AI section, testimonials
   - All AA contrast verified
   ============================================================ */

/* --- UNIFIED BUTTONS (matches homepage .btn-glow) --- */
.btn-glow {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 14px 28px !important;
	border-radius: var(--radius-pill) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	font-family: 'Space Grotesk', 'Inter', sans-serif !important;
	transition: all 0.4s var(--ease) !important;
	cursor: pointer !important;
	border: none !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}
.btn-glow.primary {
	background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
	color: #fff !important;
	box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3) !important;
}
.btn-glow.primary:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45) !important;
	color: #fff !important;
}
.btn-glow.secondary {
	background: var(--surface) !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--border) !important;
}
.btn-glow.secondary:hover {
	border-color: var(--purple) !important;
	color: var(--purple) !important;
	transform: translateY(-2px);
}
.btn-glow.ghost {
	background: transparent !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--border) !important;
}
.btn-glow.ghost:hover {
	background: var(--surface) !important;
	border-color: var(--purple) !important;
	color: var(--purple) !important;
}
.btn-glow.sm { padding: 8px 16px !important; font-size: 13px !important; }
.btn-glow.lg { padding: 18px 36px !important; font-size: 17px !important; }
.btn-glow:disabled, .btn-glow.disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

/* --- TRUST BAR (homepage logged-out) --- */
.trust-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px;
	padding: 20px;
	margin: 20px auto 0;
	max-width: 900px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	backdrop-filter: blur(10px);
}
.trust-item {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px; color: var(--text-secondary);
	font-weight: 600;
}
.trust-item i { color: var(--green); font-size: 16px; }
.trust-item.purple i { color: var(--purple); }
.trust-item.orange i { color: var(--orange); }
@media (max-width: 640px) {
	.trust-bar { gap: 12px; padding: 14px; }
	.trust-item { font-size: 12px; }
}

/* --- TESTIMONIALS --- */
.testimonials-section {
	padding: 80px 24px;
}
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	max-width: 1200px;
	margin: 40px auto 0;
}
.testimonial-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
	transition: all 0.3s var(--ease);
}
.testimonial-card:hover {
	border-color: var(--purple-border);
	box-shadow: var(--shadow-glow);
	transform: translateY(-2px);
}
.testimonial-quote {
	color: var(--text-primary);
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 20px;
	font-style: italic;
}
.testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
}
.testimonial-avatar {
	width: 44px; height: 44px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; color: #fff; font-size: 16px;
}
.testimonial-meta { display: flex; flex-direction: column; }
.testimonial-name { color: var(--text-primary); font-weight: 700; font-size: 14px; }
.testimonial-role { color: var(--text-muted); font-size: 12px; }
.testimonial-stars { color: var(--yellow); margin-bottom: 12px; font-size: 14px; }

/* --- SOCIAL PROOF STRIP --- */
.social-proof {
	background: var(--bg-raised);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 32px 24px;
	text-align: center;
}
.social-proof-label {
	font-size: 11px;
	letter-spacing: 0.2em;
	color: var(--text-muted);
	text-transform: uppercase;
	margin-bottom: 16px;
	font-weight: 700;
}
.social-proof-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
	margin-top: 8px;
}
.social-proof-stat {
	display: flex; flex-direction: column; align-items: center;
}
.social-proof-stat strong {
	font-size: 28px;
	color: var(--text-primary);
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 800;
}
.social-proof-stat span {
	color: var(--text-muted); font-size: 12px;
	text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}

/* --- FEED PAGE --- */
.feed-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px;
	text-align: left;
}
.feed-header {
	display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: 12px;
	margin-bottom: 24px;
}
.feed-header h1 {
	font-size: 28px;
	color: var(--text-primary);
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 800;
	letter-spacing: -0.5px;
}
.feed-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab {
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s var(--ease);
	text-decoration: none !important;
}
.feed-tab:hover {
	border-color: var(--purple-border);
	color: var(--text-primary) !important;
}
.feed-tab.active {
	background: var(--purple);
	border-color: var(--purple);
	color: #fff !important;
}
.feed-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 16px;
	transition: all 0.3s var(--ease);
}
.feed-card:hover {
	border-color: var(--purple-border);
	box-shadow: var(--shadow);
}
.feed-card-head {
	display: flex; align-items: center; gap: 12px;
	margin-bottom: 14px;
}
.feed-card-avatar {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--purple), var(--orange));
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 700; font-size: 15px;
	flex-shrink: 0;
}
.feed-card-meta { flex: 1; min-width: 0; }
.feed-card-name {
	color: var(--text-primary); font-weight: 700;
	font-size: 14px;
}
.feed-card-name .match-pct {
	color: var(--purple);
	font-size: 12px;
	font-weight: 700;
	margin-left: 4px;
}
.feed-card-time {
	color: var(--text-muted);
	font-size: 12px;
}
.feed-card-action {
	color: var(--text-secondary);
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 1.5;
}
.feed-card-action strong {
	color: var(--text-primary);
}
.feed-card-action .verb-up { color: var(--green); font-weight: 700; }
.feed-card-action .verb-down { color: var(--coral); font-weight: 700; }
.feed-card-item {
	display: flex; align-items: center; gap: 14px;
	padding: 14px;
	background: var(--bg-raised);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	transition: all 0.3s var(--ease);
}
.feed-card-item-icon {
	width: 56px; height: 56px;
	border-radius: var(--radius-sm);
	background: var(--purple-glow);
	display: flex; align-items: center; justify-content: center;
	font-size: 24px;
	flex-shrink: 0;
}
.feed-card-item-info { flex: 1; min-width: 0; }
.feed-card-item-title {
	color: var(--text-primary);
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 2px;
}
.feed-card-item-cat {
	color: var(--text-muted);
	font-size: 12px;
}
.feed-card-actions {
	display: flex; gap: 8px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.feed-action-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	color: var(--text-secondary);
	font-size: 12px; font-weight: 600;
	cursor: pointer;
	transition: all 0.2s var(--ease);
	text-decoration: none !important;
}
.feed-action-btn:hover {
	border-color: var(--purple-border);
	color: var(--purple) !important;
	background: var(--surface-hover);
}
.feed-action-btn.up:hover { color: var(--green) !important; border-color: var(--green); }
.feed-action-btn.down:hover { color: var(--coral) !important; border-color: var(--coral); }
.feed-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-muted);
}
.feed-empty h3 { color: var(--text-primary); margin-bottom: 12px; }

/* --- AI DISCOVER PAGE --- */
.ai-hero {
	max-width: 1100px; margin: 0 auto;
	padding: 24px 16px 8px;
	text-align: center;
}
.ai-badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(34, 211, 238, 0.1));
	border: 1px solid var(--purple-border);
	border-radius: var(--radius-pill);
	color: var(--purple);
	font-size: 11px; font-weight: 700;
	letter-spacing: 0.15em; text-transform: uppercase;
	margin-bottom: 14px;
}
.ai-hero h1 {
	font-size: clamp(28px, 4vw, 42px);
	color: var(--text-primary);
	margin-bottom: 12px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 800;
	letter-spacing: -1px;
}
.ai-hero p {
	color: var(--text-secondary);
	font-size: 16px;
	max-width: 600px;
	margin: 0 auto 24px;
	line-height: 1.6;
}
.ai-filters {
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 8px; margin-bottom: 32px;
}
.ai-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px 60px;
	text-align: left;
}
.ai-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: all 0.3s var(--ease);
	display: flex;
	flex-direction: column;
}
.ai-card:hover {
	border-color: var(--purple-border);
	transform: translateY(-3px);
	box-shadow: var(--shadow-glow);
}
.ai-card-img {
	height: 160px;
	background: linear-gradient(135deg, var(--purple), var(--orange));
	display: flex; align-items: center; justify-content: center;
	font-size: 48px;
	position: relative;
	overflow: hidden;
}
.ai-card-img.green { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.ai-card-img.coral { background: linear-gradient(135deg, var(--coral), var(--pink)); }
.ai-card-img.cyan  { background: linear-gradient(135deg, var(--cyan), var(--purple)); }
.ai-card-img.yellow { background: linear-gradient(135deg, var(--yellow), var(--orange)); }
.ai-card-img::after {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2), transparent 50%);
	pointer-events: none;
}
.ai-card-type {
	position: absolute;
	top: 12px; left: 12px;
	padding: 4px 10px;
	background: rgba(0,0,0,0.5);
	border-radius: var(--radius-pill);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
	z-index: 1;
}
.ai-card-body {
	padding: 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.ai-card-title {
	color: var(--text-primary);
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 6px;
	line-height: 1.3;
}
.ai-card-desc {
	color: var(--text-secondary);
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 14px;
	flex: 1;
}
.ai-card-stats {
	display: flex; gap: 12px;
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
}
.ai-card-stat { display: flex; align-items: center; gap: 4px; }
.ai-card-stat i { font-size: 12px; }
.ai-card-stat.up { color: var(--green); }
.ai-card-stat.down { color: var(--coral); }
.ai-card-actions {
	display: flex; gap: 6px;
}
.ai-card-actions .btn-rate {
	flex: 1;
	padding: 8px;
	border: 1px solid var(--border);
	background: transparent;
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	font-size: 13px; font-weight: 600;
	cursor: pointer;
	transition: all 0.2s var(--ease);
}
.ai-card-actions .btn-rate:hover { border-color: var(--purple); color: var(--purple); }
.ai-card-actions .btn-rate.up:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.ai-card-actions .btn-rate.down:hover { border-color: var(--coral); color: var(--coral); background: rgba(249, 115, 22, 0.08); }
.ai-card-actions .btn-rate.open {
	flex: 2;
	background: var(--purple);
	border-color: var(--purple);
	color: #fff;
}
.ai-card-actions .btn-rate.open:hover { background: var(--purple-light); border-color: var(--purple-light); color: #fff; }

/* --- COMMUNITY PULSE WIDGET (welcome page) --- */
.pulse-widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	margin: 20px 0;
}
.pulse-head {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 16px;
}
.pulse-head h3 {
	color: var(--text-primary);
	font-size: 16px;
	margin: 0;
}
.pulse-head .live-dot {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--green); font-size: 11px;
	font-weight: 700; letter-spacing: 0.1em;
	text-transform: uppercase;
}
.pulse-head .live-dot::before {
	content: ''; width: 8px; height: 8px;
	background: var(--green); border-radius: 50%;
	animation: pulse 2s infinite;
}
@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(0.85); }
}
.pulse-item {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
}
.pulse-item:last-child { border-bottom: none; }
.pulse-item-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--purple);
	flex-shrink: 0;
}
.pulse-item-dot.green { background: var(--green); }
.pulse-item-dot.orange { background: var(--orange); }
.pulse-item-text {
	color: var(--text-secondary);
	flex: 1; min-width: 0;
}
.pulse-item-text strong { color: var(--text-primary); }

/* --- STREAK / DAILY WIDGET --- */
.streak-widget {
	background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(139, 92, 246, 0.1));
	border: 1px solid var(--orange-glow);
	border-radius: var(--radius);
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}
.streak-icon {
	font-size: 32px;
	flex-shrink: 0;
}
.streak-info { flex: 1; min-width: 0; }
.streak-info strong {
	display: block;
	color: var(--text-primary);
	font-size: 18px;
	margin-bottom: 2px;
	font-family: 'Space Grotesk', sans-serif;
}
.streak-info span {
	color: var(--text-secondary);
	font-size: 13px;
}

/* --- VALUE PROP TILES (logged-out hero) --- */
.value-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	max-width: 1100px;
	margin: 32px auto 0;
	padding: 0 16px;
}
.value-tile {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	text-align: center;
	transition: all 0.3s var(--ease);
}
.value-tile:hover {
	border-color: var(--purple-border);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}
.value-tile-icon {
	font-size: 32px;
	margin-bottom: 12px;
}
.value-tile h4 {
	color: var(--text-primary);
	font-size: 16px;
	margin: 0 0 8px;
	font-weight: 700;
}
.value-tile p {
	color: var(--text-secondary);
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

/* --- BETTER FOCUS STATES (a11y) --- */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--purple) !important;
	outline-offset: 2px !important;
}
/* V207 polish (pass 4) — only suppress the focus ring on pointer/touch
   focus, never on keyboard navigation. The `:focus-visible` rule above
   already handles keyboard focus; older browsers that don't support
   `:focus-visible` will leave the native ring intact via this :not() guard. */
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* --- FIX READABILITY OF SOME LEGACY BUTTONS --- */
input[type="submit"],
input[type="button"],
button[type="submit"],
button:not(.theme-toggle):not(.theme-toggle-mobile):not(.navbar-toggler):not(.btn-rate):not(.feed-action-btn):not(.btn-glow):not(.drift-opt):not(.btn-outline):not(.faq-q):not(.close):not(.btn):not(.discover-quiz-opt):not(.discover-quiz-skip):not(.discover-quiz-next):not(.discover-tab):not(.discover-card-rate-btn):not(.discover-bar-stat):not(.connect-tile-act):not(.discover-rate):not(.discover-skip):not(.discover-card-save):not(.discover-follow):not(.discover-greet-chip):not(.discover-card-actions button):not(.ans-opt):not(.ans-foot-btn):not(.ttt-cell):not(.c4-drop):not(.mm-card):not(.gm-cell):not(.mc-pit):not(.chop-hand):not(.db-h):not(.db-v):not(.profile-share-link):not(.acct-quicklink):not(.weird-search-trigger):not(.weird-search-clear):not(.subpage-search-trigger):not(.weird-notif-trigger):not(.weird-notif-mark-all):not(.msg-side-tabs button):not(.msg-thread-back):not(.msg-composer button):not(.weird-infscroll-retry):not(.video-expand-btn):not(.video-expand-hit):not(.meme-zoom-trigger):not(.meme-lightbox-close):not(.pvpgf-pill):not(.ch-cell):not(.ch-promo-btn):not(.discover-card-pct):not(.msg-side-pin):not(.msg-thread-pin):not(.msg-thread-kebab-btn):not(.msg-react-btn):not(.msg-react-chip):not(.msg-react-open):not(.msg-react-choice):not(.weird-tabbar-item):not(.vb-close):not(.vb-tab):not(.weird-action-sheet-item):not(.weird-action-sheet-cancel):not(.weird-message-share-tab):not(.weird-message-share-close):not(.weird-message-share-cancel):not(.weird-message-share-send):not(.weird-explore-sheet-close):not(.discover-card-more):not(.discover-why-btn):not(.dcib-submit):not(.dcib-tri-btn):not(.dcib-filter-btn):not(.toy-vote-btn):not(.meme-tpl-chip):not(.meme-btn):not(.weird-fb-x):not(.pvp-solo-wintoggle-btn):not(.v6-app-tab):not(.v5s-toggle-btn):not(.v5s-nav-btn) {
	background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--radius-pill) !important;
	padding: 10px 22px !important;
	font-weight: 700 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 14px !important;
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25) !important;
	cursor: pointer !important;
	transition: all 0.2s var(--ease) !important;
}
input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

/* --- LIGHT MODE BUTTON CONTRAST --- */
html.light-mode .btn-glow.primary {
	background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
	box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25) !important;
}
html.light-mode .btn-glow.secondary {
	background: #ffffff !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--border) !important;
}

/* --- HOMEPAGE FAQ-STYLE EXPAND/COLLAPSE (reused) --- */
.faq-x {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 12px;
	overflow: hidden;
	transition: all 0.3s var(--ease);
}
.faq-x:hover { border-color: var(--purple-border); }
.faq-x-q {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 24px;
	cursor: pointer;
	color: var(--text-primary);
	font-weight: 700;
	font-size: 15px;
	gap: 12px;
}
.faq-x-toggle {
	color: var(--purple);
	font-size: 20px;
	transition: transform 0.3s var(--ease);
}
.faq-x.active .faq-x-toggle { transform: rotate(45deg); }
.faq-x-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
	padding: 0 24px;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.6;
}
.faq-x.active .faq-x-a {
	max-height: 400px;
	padding: 0 24px 18px;
}

/* --- BADGE / PILL HELPERS --- */
.badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--surface);
	color: var(--text-secondary);
	border: 1px solid var(--border);
}
.badge-pill.purple { background: var(--purple-glow); color: var(--purple); border-color: var(--purple-border); }
.badge-pill.green  { background: var(--green-bg); color: var(--green); border-color: rgba(52, 211, 153, 0.3); }
.badge-pill.orange { background: var(--orange-glow); color: var(--orange); border-color: rgba(249, 115, 22, 0.3); }

/* --- MOBILE: RESPONSIVE HEADERS --- */
@media (max-width: 640px) {
	.feed-wrap { padding: 16px 12px; }
	.feed-card { padding: 16px; }
	.feed-card-item { padding: 10px; gap: 10px; }
	.feed-card-item-icon { width: 44px; height: 44px; font-size: 20px; }
	.feed-header h1 { font-size: 22px; }
	.ai-hero { padding: 16px 12px 4px; }
	.ai-grid { gap: 14px; padding: 0 12px 40px; }
	.testimonials-grid { gap: 16px; }
	.testimonial-card { padding: 20px; }
	.value-grid { gap: 12px; padding: 0 12px; }
	.value-tile { padding: 18px; }
}


/* ============================================================
   V6.1 — BUTTON AUDIT FIXES
   - Fix .selectedtv / .tvmatch losing to .wrapper a
   - Bullet-proof contrast on all action buttons
   - Use compound selectors (.tvmatch.selectedtv) to win specificity
   ============================================================ */

/* Pills inside .wrapper - override .wrapper a */
.wrapper a.tvmatch,
.wrapper a.tvmatch2,
.wrapper a.tvmatch3,
.wrapper a.tvmatch4 { color: var(--text-secondary) !important; }
.wrapper a.tvmatch.selectedtv,
.wrapper a.tvmatch3,
.wrapper a.tvmatch4 { color: #ffffff !important; }
.wrapper a.tvmatch:hover,
.wrapper a.tvmatch2:hover,
.wrapper a.tvmatch3:hover { color: #ffffff !important; }

/* Selected tab/pill - solid filled */
a.tvmatch.selectedtv,
.tvmatch.selectedtv {
	background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%) !important;
	color: #ffffff !important;
	border-color: var(--purple) !important;
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35) !important;
	font-weight: 600 !important;
}

/* Search button (magnifying glass) on movies/tv/music etc - .buttonaa class */
.buttonaa,
button.buttonaa,
input.buttonaa {
	background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%) !important;
	color: #ffffff !important;
	border: none !important;
	font-weight: 600 !important;
	transition: all 0.25s var(--ease) !important;
}
.buttonaa:hover {
	background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}
.buttonaa i, .buttonaa svg { color: #ffffff !important; }

/* Search input field - readable in dark mode */
.input,
input.input,
.box .input {
	background: var(--surface) !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--border) !important;
	border-right: none !important;
}
.input::placeholder { color: var(--text-muted) !important; opacity: 1 !important; }
.input:focus { border-color: var(--purple) !important; outline: none !important; }
.box:hover .input,
.box:hover input.input { background: var(--surface) !important; color: var(--text-primary) !important; }
.box:hover .buttonaa { background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%) !important; color:#fff !important; }

/* Custom select dropdowns - readable */
.custom-select,
.custom-select select {
	background: var(--surface) !important;
	color: var(--text-primary) !important;
	border-color: var(--purple) !important;
}
.custom-select::after { color: var(--purple) !important; }

/* Pagination numbers - keep readable */
.page-link,
.pagination .page-link,
.wrapper a.page-link {
	background: var(--surface) !important;
	color: var(--text-primary) !important;
	border-color: var(--border) !important;
	font-weight: 600 !important;
}
.page-link:hover { background: var(--purple) !important; color: #fff !important; border-color: var(--purple) !important; }
.page-item.active .page-link,
.pagination .page-item.active .page-link {
	background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}
.page-item.disabled .page-link { background: var(--bg) !important; color: var(--text-muted) !important; opacity: 0.6 !important; }

/* Recommend / match percentage badges */
.toppbg,
span.toppbg,
div.toppbg {
	background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%) !important;
	color: #ffffff !important;
	border-radius: var(--radius-pill) !important;
	font-weight: 700 !important;
	padding: 6px 14px !important;
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
	display: inline-block !important;
}
.toppbg a, .toppbg span { color: #ffffff !important; }

/* Movie/TV/Music cards - title and description */
.wrapper .pcol a,
.wrapper a.pcol,
.fonttop a,
.wrapper .fonttop a {
	color: var(--text-primary) !important;
	font-weight: 600 !important;
}
.wrapper .pcol a:hover,
.fonttop a:hover { color: var(--purple-light) !important; }

/* Thumbs up/down (linkthumbs) - bigger contrast */
.linkthumbs,
a.linkthumbs,
.wrapper a.linkthumbs {
	background: rgba(34, 197, 94, 0.15) !important;
	color: var(--green) !important;
	border: 1px solid var(--green) !important;
	border-radius: 8px !important;
	padding: 6px 10px !important;
	font-weight: 700 !important;
	transition: all 0.2s var(--ease) !important;
}
.linkthumbs:hover { background: var(--green) !important; color: #ffffff !important; }
.linkthumbsr,
a.linkthumbsr,
.wrapper a.linkthumbsr {
	background: rgba(255, 90, 95, 0.15) !important;
	color: var(--coral) !important;
	border: 1px solid var(--coral) !important;
	border-radius: 8px !important;
	padding: 6px 10px !important;
	font-weight: 700 !important;
	transition: all 0.2s var(--ease) !important;
}
.linkthumbsr:hover { background: var(--coral) !important; color: #ffffff !important; }
.linkthumbsn,
a.linkthumbsn,
.wrapper a.linkthumbsn {
	background: rgba(245, 158, 11, 0.15) !important;
	color: #f59e0b !important;
	border: 1px solid #f59e0b !important;
	border-radius: 8px !important;
	padding: 6px 10px !important;
	font-weight: 700 !important;
	transition: all 0.2s var(--ease) !important;
}
.linkthumbsn:hover { background: var(--rate-neutral, #f59e0b) !important; color: #111827 !important; }

/* Tooltip text - readable bg */
.tooltiptexta,
span.tooltiptexta {
	background: var(--bg-raised) !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--border) !important;
	box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}

/* Edit/profile/account form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
	background: var(--surface) !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
	padding: 10px 12px !important;
	font-size: 14px !important;
	transition: border-color 0.2s var(--ease) !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus { border-color: var(--purple) !important; outline: none !important; box-shadow: 0 0 0 3px rgba(139,92,246,0.2) !important; }
input::placeholder, textarea::placeholder { color: var(--text-muted) !important; opacity: 1 !important; }

/* Generic submit buttons */
input[type="submit"],
button[type="submit"],
button.btn-primary,
.btn-primary,
.button {
	background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: var(--radius-sm) !important;
	padding: 12px 24px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	cursor: pointer !important;
	transition: all 0.25s var(--ease) !important;
}
input[type="submit"]:hover,
button[type="submit"]:hover,
button.btn-primary:hover {
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 20px rgba(139,92,246,0.4) !important;
}

/* Light mode adjustments */
html.light-mode a.tvmatch,
html.light-mode .wrapper a.tvmatch { color: var(--text-secondary) !important; background: var(--surface) !important; border-color: var(--border) !important; }
html.light-mode a.tvmatch.selectedtv,
html.light-mode .wrapper a.tvmatch.selectedtv {
	background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%) !important;
	color: #ffffff !important;
}
html.light-mode .input,
html.light-mode input[type="text"],
html.light-mode input[type="email"],
html.light-mode input[type="password"],
html.light-mode textarea,
html.light-mode select {
	background: #ffffff !important;
	color: #1f1d2b !important;
	border-color: var(--border) !important;
}
html.light-mode .input::placeholder,
html.light-mode input::placeholder,
html.light-mode textarea::placeholder { color: #6b7280 !important; }
html.light-mode .page-link { background: #ffffff !important; color: #1f1d2b !important; }
html.light-mode .toppbg { color: #ffffff !important; }
html.light-mode .tooltiptexta { background: #ffffff !important; color: #1f1d2b !important; }


/* ============================================================
   V6.2 — STICKY HEADER ALIGNMENT FIX (Chrome quirk)
   - Logo was sitting at bottom because nav-link padding (35px 0)
     created an 86px nav inside an 80px sticky header.
   - Solution: use flex centering, fixed heights, smaller padding
   ============================================================ */

/* Header heights: consistent at top and when sticky */
#sticky-header {
	min-height: 80px;
}
#sticky-header .container,
#sticky-header .row,
#sticky-header .col-xl-12,
#sticky-header .main-menu {
	height: 100%;
}
#sticky-header .navbar {
	display: flex !important;
	align-items: center !important;
	min-height: 80px !important;
	padding: 0 !important;
	flex-wrap: wrap !important;
}

/* Strip the 180px side padding that was making nav cramped on Chrome */
.e-transparent-menu.sticky-menu,
.transparent-menu.sticky-menu {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Logo: stays at proper height, no bottom-shift */
#sticky-header .navbar > a:first-child {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
#sticky-header .navbar-brand-logo {
	height: 38px !important;
	width: auto !important;
	display: block !important;
}

/* Nav-links: use flex centering, NOT giant padding */
@media (min-width: 992px) {
	.main-menu .navbar-nav li.nav-item a.nav-link,
	#sticky-header .main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link,
	.sticky-menu .main-menu .navbar-nav li.nav-item a.nav-link {
		padding: 12px 0 !important;
		font-size: 15px !important;
		display: flex !important;
		align-items: center !important;
		height: 80px !important;
		line-height: 1.2 !important;
	}
	.main-menu .navbar-nav li.nav-item {
		margin-left: 22px !important;
	}
	.main-menu .navbar-nav {
		align-items: center !important;
	}
	.navbar-collapse {
		display: flex !important;
		align-items: center !important;
		flex: 1 1 auto !important;
	}
	#sticky-header .theme-toggle {
		margin-left: 16px;
		flex-shrink: 0;
	}
}

/* Mobile: reset flex height */
@media (max-width: 991px) {
	#sticky-header .navbar {
		min-height: 64px !important;
	}
	#sticky-header .navbar-brand-logo {
		height: 32px !important;
	}
	.main-menu .navbar-nav li.nav-item a.nav-link {
		height: auto !important;
		padding: 10px 8px !important;
	}
	#sticky-header .main-menu .navbar-nav li.nav-item .weird-nav-explore-menu > summary.nav-link {
		height: auto !important;
		padding: 10px 8px !important;
	}
}


/* ============================================================
   V6.3 — UNIFIED CONTENT HUB (content.php)
   Combines Feed + Discover + Interactive into one page.
   Every rating feeds the same recommendation engine.
   ============================================================ */

.hub-wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px 16px 60px;
	text-align: left;
}

/* ---- HERO ---- */
.hub-hero {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 32px;
	padding: 8px 16px 0;
}
.hub-hero h1 {
	font-size: clamp(28px, 4vw, 40px) !important;
	color: var(--text-primary) !important;
	margin: 12px 0 12px !important;
	font-family: 'Space Grotesk', sans-serif !important;
	font-weight: 800 !important;
	letter-spacing: -1px;
	line-height: 1.15;
}
.hub-hero p {
	color: var(--text-secondary) !important;
	font-size: 16px !important;
	max-width: 620px;
	margin: 0 auto 24px;
	line-height: 1.6;
}
.hub-stats {
	display: flex;
	justify-content: center;
	gap: 32px;
	flex-wrap: wrap;
	margin-top: 20px;
	padding: 18px 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}
.hub-stat { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.hub-stat strong {
	font-size: 24px; color: var(--text-primary);
	font-family: 'Space Grotesk', sans-serif; font-weight: 800;
	line-height: 1;
}
.hub-stat span {
	color: var(--text-muted); font-size: 11px;
	text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
	margin-top: 6px;
}

/* ---- FILTER PILLS ---- */
.hub-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 8px 4px 16px;
	margin: 0 -4px 24px;
	border-bottom: 1px solid var(--border);
	scroll-snap-type: x mandatory;
}
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs .feed-tab { scroll-snap-align: start; flex-shrink: 0; }

/* ---- SECTIONS ---- */
.hub-section { margin-bottom: 40px; }
.hub-section-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 16px;
}
.hub-section-head h2 {
	color: var(--text-primary) !important;
	font-size: 18px !important;
	font-family: 'Space Grotesk', sans-serif !important;
	font-weight: 700 !important;
	margin: 0 !important;
	display: inline-flex; align-items: center; gap: 10px;
}
.hub-section-head h2 i { color: var(--purple); }
.hub-section-more {
	color: var(--purple) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	white-space: nowrap;
	display: inline-flex; align-items: center; gap: 6px;
	transition: gap 0.25s var(--ease);
}
.hub-section-more:hover { gap: 10px; color: var(--purple-light) !important; }

/* ---- FEED CARDS ---- */
.hub-feed {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 14px;
}
.hub-feed-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	transition: all 0.3s var(--ease);
}
.hub-feed-card:hover {
	border-color: var(--purple-border);
	box-shadow: var(--shadow);
}
.hub-feed-head {
	display: flex; align-items: center; gap: 12px;
	margin-bottom: 12px;
}
.hub-feed-head .feed-card-avatar { width: 38px; height: 38px; font-size: 14px; }
.hub-feed-head .feed-card-name { font-size: 13px; }
.hub-feed-head .feed-card-time { font-size: 11px; }
.hub-feed-head .hub-loc { color: var(--text-muted); font-weight: 500; }
.hub-verb {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
	margin-left: auto;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: var(--bg-raised);
	display: inline-flex; align-items: center; gap: 5px;
}
.hub-verb.verb-up { color: var(--green); }
.hub-verb.verb-down { color: var(--coral); }
.hub-feed-item {
	display: flex; align-items: center; gap: 12px;
	padding: 10px;
	background: var(--bg-raised);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	transition: all 0.25s var(--ease);
	text-decoration: none !important;
}
.hub-feed-item:hover { border-color: var(--purple-border); transform: translateX(2px); }
.hub-feed-item .feed-card-item-icon { width: 44px; height: 44px; font-size: 20px; }

/* ---- HUB CARDS (movies/tv/music/travel/local) ---- */
.hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.hub-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.3s var(--ease);
}
.hub-card:hover {
	border-color: var(--purple-border);
	transform: translateY(-3px);
	box-shadow: var(--shadow-glow);
}
.hub-card.rated { opacity: 0.85; }
.hub-card.rated-up { border-color: rgba(52, 211, 153, 0.4); }
.hub-card.rated-down { border-color: rgba(249, 115, 22, 0.35); }
.hub-card-media {
	position: relative;
	aspect-ratio: 3 / 4;
	background: linear-gradient(135deg, var(--purple), var(--orange));
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.hub-card-media img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.hub-card-media-icon { aspect-ratio: 16 / 9; }
.hub-card-emoji { font-size: 56px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.hub-card[data-cat="music"]  .hub-card-media { background: linear-gradient(135deg, var(--coral), var(--pink)); }
.hub-card[data-cat="travel"] .hub-card-media { background: linear-gradient(135deg, var(--cyan), var(--purple)); }
.hub-card[data-cat="local"]  .hub-card-media { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.hub-card[data-cat="tv"]     .hub-card-media { background: linear-gradient(135deg, var(--orange), var(--coral)); }
.hub-card-tag {
	position: absolute; top: 10px; left: 10px;
	padding: 4px 10px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 10px; font-weight: 700;
	letter-spacing: 0.1em; text-transform: uppercase;
	border-radius: var(--radius-pill);
	backdrop-filter: blur(4px);
	z-index: 1;
}
.hub-card-pct {
	position: absolute; top: 10px; right: 10px;
	padding: 4px 10px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 11px; font-weight: 800;
	border-radius: var(--radius-pill);
	backdrop-filter: blur(4px);
	z-index: 1;
}
.hub-card-body {
	padding: 14px;
	display: flex; flex-direction: column;
	flex: 1;
	gap: 6px;
}
.hub-card-title {
	color: var(--text-primary) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.3;
	margin: 0 !important;
	font-family: 'Inter', sans-serif !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hub-card-meta-line {
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.hub-card-desc {
	color: var(--text-secondary) !important;
	font-size: 12px !important;
	line-height: 1.5;
	margin: 4px 0 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}
.hub-card-foot {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.hub-card-rate-label {
	font-size: 11px;
	color: var(--text-muted);
	font-weight: 600;
	letter-spacing: 0.03em;
}
.hub-card-actions {
	display: flex;
	gap: 6px;
}
.hub-rate {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-raised);
	color: var(--text-secondary);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: all 0.2s var(--ease);
	font-size: 14px;
	padding: 0;
}
.hub-rate.up:hover {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
	transform: scale(1.08);
}
.hub-rate.down:hover {
	background: var(--coral);
	border-color: var(--coral);
	color: #fff;
	transform: scale(1.08);
}
.hub-rate.up.active {
	background: var(--green) !important;
	border-color: var(--green) !important;
	color: #fff !important;
}
.hub-rate.down.active {
	background: var(--coral) !important;
	border-color: var(--coral) !important;
	color: #fff !important;
}
.hub-rate:disabled { cursor: not-allowed; opacity: 0.6; }
.hub-rate:disabled:hover { transform: none; }

/* ---- CTA SECTION ---- */
.hub-cta-section { margin-top: 16px; }
.hub-cta {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(249, 115, 22, 0.08));
	border: 1px solid var(--purple-border);
	border-radius: var(--radius);
	flex-wrap: wrap;
}

/* ---- LIGHT MODE ---- */
html.light-mode .hub-card-tag,
html.light-mode .hub-card-pct {
	background: rgba(26, 23, 64, 0.7);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
	.hub-wrap { padding: 16px 12px 40px; }
	.hub-stats { gap: 18px; padding: 14px 18px; }
	.hub-stat strong { font-size: 20px; }
	.hub-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
	.hub-card-body { padding: 12px; }
	.hub-card-title { font-size: 13px !important; }
	.hub-card-desc { -webkit-line-clamp: 2; line-clamp: 2; }
	.hub-feed { grid-template-columns: 1fr; }
	.hub-cta { padding: 18px; }
}

@media (max-width: 480px) {
	.hub-grid { grid-template-columns: 1fr 1fr; }
	.hub-stats { gap: 12px; }
	.hub-stat strong { font-size: 18px; }
	.hub-rate { width: 32px; height: 32px; font-size: 12px; }
}
/* ===========================================================
   V6.4 — UNIFIED DISCOVER FEED + SUBPAGE COHESION
   May 2026
   ----------------------------------------------------------
   - Merges old /discover, /content, /feed, /discover-ai into a
     single cohesive Discover stream (one feed, many card types).
   - Brings movies / tv / music / travel / local subpages into
     the same visual language: gradient hero strip, modern
     filter pills, card aesthetics, circular thumbs.
   =========================================================== */

/* ---------- shared ---------- */
.discover-wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 12px 16px 56px;
}

/* HERO */
.discover-hero {
	background:
		radial-gradient(circle at 0% 0%, rgba(124,58,237,0.18), transparent 55%),
		radial-gradient(circle at 100% 100%, rgba(255,140,0,0.14), transparent 55%),
		linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
	border: 1px solid var(--border);
	border-radius: 22px;
	padding: 44px clamp(20px, 4vw, 56px);
	margin-bottom: 28px;
	position: relative;
	overflow: hidden;
}
.discover-hero h1 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: clamp(28px, 4.2vw, 44px);
	line-height: 1.12;
	color: var(--text-primary);
	margin: 12px 0 14px;
	letter-spacing: -0.02em;
	font-weight: 700;
	max-width: 880px;
}
.discover-hero p {
	color: var(--text-secondary);
	font-size: 16px;
	line-height: 1.55;
	max-width: 720px;
	margin: 0 0 22px;
}
.discover-stats {
	display: flex; flex-wrap: wrap; gap: 24px;
}
.discover-stat {
	display: flex; flex-direction: column;
	min-width: 110px;
}
.discover-stat strong {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 28px; font-weight: 700;
	color: var(--text-primary);
	line-height: 1;
}
.discover-stat span {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 6px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* TABS */
.discover-tabs {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin-bottom: 28px;
	padding: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
}
.discover-tab {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px;
	border-radius: 12px;
	background: transparent;
	color: var(--text-secondary) !important;
	font-size: 14px; font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s var(--ease);
	border: 1px solid transparent;
}
.discover-tab:hover {
	background: var(--surface-hover);
	color: var(--text-primary) !important;
}
.discover-tab.active {
	background: linear-gradient(135deg, var(--purple), #6d28d9);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}

/* SECTION HEADER */
.discover-section { margin-bottom: 36px; }
.discover-section-head {
	display: flex; align-items: baseline; flex-wrap: wrap;
	gap: 12px; margin-bottom: 18px;
}
.discover-section-head h2 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 22px; font-weight: 700;
	color: var(--text-primary) !important;
	margin: 0;
	letter-spacing: -0.01em;
}
.discover-section-head h2 i { color: var(--purple); margin-right: 8px; }
.discover-section-sub {
	color: var(--text-muted);
	font-size: 13px;
}
.discover-section-more {
	margin-left: auto;
	color: var(--purple) !important;
	font-size: 14px; font-weight: 600;
	text-decoration: none !important;
	display: inline-flex; align-items: center; gap: 6px;
}
.discover-section-more:hover { color: var(--purple-light) !important; }
.discover-section-head-actions {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.discover-section-chiplink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(124,58,237,0.24);
	background: rgba(124,58,237,0.08);
	color: var(--text-secondary) !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
}
.discover-section-chiplink:hover,
.discover-section-chiplink:focus-visible {
	background: rgba(124,58,237,0.16);
	border-color: rgba(124,58,237,0.38);
	color: var(--text-primary) !important;
	outline: none;
}
.discover-section-chiplink i { color: var(--purple-light, #a78bfa); }
html.light-mode .discover-section-chiplink {
	background: rgba(124,58,237,0.06);
	border-color: rgba(124,58,237,0.18);
	color: #4b5563 !important;
}

/* THE STREAM — uniform 220px+ grid; cards span 1 col by default */
.discover-stream {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}
@media (min-width: 1100px) {
	/* V6.8 patch 29 — was capped at 260px which left ~190px unused on the
	   right of the new 1320px container. minmax(220px, 1fr) auto-fills 5 even
	   ~245px cols at 1320px (or 4 ~253px cols at 1100px) so the grid fills
	   whatever container width the page provides. */
	.discover-stream { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
	.discover-stream { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* CARD BASE */
.discover-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: all 0.25s var(--ease);
	position: relative;
}
.discover-card:hover {
	transform: translateY(-3px);
	border-color: var(--purple-border);
	box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.discover-card-item,
.discover-card-social {
	background:
		radial-gradient(circle at 20% 0%, rgba(255,255,255,0.07), transparent 30%),
		linear-gradient(145deg, rgba(124,58,237,0.045), rgba(20,184,166,0.035)),
		var(--surface);
	box-shadow: 0 16px 38px -34px rgba(0,0,0,0.80), inset 0 1px 0 rgba(255,255,255,0.045);
}
.discover-card-item:hover,
.discover-card-social:hover {
	box-shadow: 0 20px 46px -32px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
html.light-mode .discover-card-item,
html.light-mode .discover-card-social {
	background: linear-gradient(145deg, #fff, #fafafa);
	box-shadow: 0 14px 34px -30px rgba(15,23,42,0.26), inset 0 1px 0 rgba(255,255,255,0.9);
}
.discover-card.rated { opacity: 0.92; }
.discover-card.rated-up   { border-color: rgba(34,197,94,0.45); }
.discover-card.rated-neutral { border-color: rgba(245,158,11,0.48); }
.discover-card.rated-down { border-color: rgba(249,115,22,0.45); }

.discover-card-body {
	padding: 14px 16px 16px;
	display: flex; flex-direction: column;
	gap: 8px; flex: 1;
}
.discover-card-title {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 16px; font-weight: 700;
	color: var(--text-primary) !important;
	line-height: 1.25;
	margin: 0;
	display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.discover-card-meta {
	font-size: 12px;
	color: var(--text-muted);
	letter-spacing: 0.02em;
}
.discover-card-desc {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.45;
	margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
	overflow: hidden;
}
.discover-card-foot {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin-top: auto; padding-top: 10px;
	border-top: 1px solid var(--border-soft, rgba(255,255,255,0.06));
}
.discover-card-prompt {
	font-size: 12px; font-weight: 600;
	color: var(--text-muted);
	letter-spacing: 0.02em;
	text-align: center;
}
.discover-card-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap;
}

/* CIRCULAR THUMBS — used everywhere */
.discover-rate {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-raised);
	color: var(--text-secondary);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: all 0.2s var(--ease);
	font-size: 14px;
	flex-shrink: 0;
}
.discover-rate:not(:disabled):hover { transform: scale(1.07); }
.discover-rate.up:hover, .discover-rate.up.active { background: var(--green); color: #fff; border-color: var(--green); }
.discover-rate.neutral:hover, .discover-rate.neutral.active { background: #f59e0b; color: #111827; border-color: #f59e0b; }
.discover-rate.down:hover, .discover-rate.down.active { background: #dc2626; color: #fff; border-color: #dc2626; }
.discover-rate:disabled { cursor: default; opacity: 0.7; }
.discover-rate.up.active { box-shadow: 0 0 0 4px rgba(34,197,94,0.15); }
.discover-rate.neutral.active { box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
.discover-rate.down.active { box-shadow: 0 0 0 4px rgba(220,38,38,0.18); }
.discover-neutral-thumb { transform: rotate(-90deg); transform-origin: center; }

/* ITEM CARD — cover image + tag + pct chip */
.discover-card-item .discover-card-media {
	position: relative;
	aspect-ratio: 3 / 4;
	max-height: 320px;
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(0,0,0,0.4));
	overflow: hidden;
}
.discover-card-item[data-cat="movies"] .discover-card-media,
.discover-card-item[data-cat="tv"]     .discover-card-media {
	/* V6.8 patch 33 — short banner crop so cards stay scannable. The full
	   poster (with description) is revealed on hover (see :hover rule below). */
	aspect-ratio: 16 / 10;
	max-height: 170px;
	transition: max-height 0.35s var(--ease), aspect-ratio 0.35s var(--ease);
}
.discover-card-item[data-cat="movies"]:hover .discover-card-media,
.discover-card-item[data-cat="tv"]:hover .discover-card-media {
	aspect-ratio: 2 / 3;
	max-height: 400px;
}
.discover-card-item[data-cat="movies"]:hover .discover-card-media img,
.discover-card-item[data-cat="tv"]:hover .discover-card-media img {
	object-fit: contain;
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(0,0,0,0.45));
}
.discover-card-item[data-cat="movies"]:hover,
.discover-card-item[data-cat="tv"]:hover {
	z-index: 10;
}
.discover-card-item[data-cat="movies"]:hover .discover-card-desc,
.discover-card-item[data-cat="tv"]:hover .discover-card-desc {
	/* V6.8 patch 34 — canonical "unclamp" for a -webkit-box element. Setting
	   line-clamp: 999 alone is unreliable across engines; switching back to
	   block layout + visible overflow guarantees the full description is
	   shown on hover. */
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	-webkit-box-orient: initial;
	overflow: visible;
}
.discover-card-item[data-cat="travel"] .discover-card-media,
.discover-card-item[data-cat="local"]  .discover-card-media {
	aspect-ratio: 4 / 3;
	max-height: 240px;
}
.discover-card-item[data-cat="music"]  .discover-card-media {
	aspect-ratio: 1 / 1;
	max-height: 220px;
}
/* V6.8 patch 66 — board games: square tile like music (no image library yet). */
.discover-card-item[data-cat="boardgames"] .discover-card-media {
	aspect-ratio: 1 / 1;
	max-height: 220px;
	background: linear-gradient(135deg, #22c55e, #16a34a);
}
/* V6.8 patch 81 — books: portrait tile (book cover proportions); amber fallback
   when Open Library cover is missing. */
.discover-card-item[data-cat="books"] .discover-card-media {
	aspect-ratio: 2 / 3;
	max-height: 280px;
	background: linear-gradient(135deg, #a16207, #854d0e);
}
/* V6.8 patch 156 — shopping: square tile (product-photo proportions); orange
   fallback for the blank-card gift emoji state. */
.discover-card-item[data-cat="shopping"] .discover-card-media {
	aspect-ratio: 1 / 1;
	max-height: 220px;
	background: linear-gradient(135deg, #ea580c, #c2410c);
}
.discover-card-item[data-cat="shopping"] .discover-card-media-blank {
	background: linear-gradient(135deg, #ea580c, #c2410c);
}
/* V6.8 patch 139 — podcasts: square tile (cover-art proportions); teal fallback
   for the blank-card emoji state. */
.discover-card-item[data-cat="podcasts"] .discover-card-media-blank {
	background: linear-gradient(135deg, #0d9488, #0f766e);
}
.discover-card-item .discover-card-media img {
	width: 100%; height: 100%; object-fit: cover;
	display: block;
}
/* V6.9 — Movie/TV posters frame the title + face at the top of the artwork.
   With aspect 16/10 + object-fit:cover the middle of a 2:3 poster lands in
   the frame (tuxedo body, mouth) and crops off the title and eyes. Anchor
   the crop near the top so the recognizable part stays visible. */
.discover-card-item[data-cat="movies"] .discover-card-media img,
.discover-card-item[data-cat="tv"]     .discover-card-media img {
	object-position: center 18%;
}
.discover-card-item[data-cat="movies"]:hover .discover-card-media img,
.discover-card-item[data-cat="tv"]:hover     .discover-card-media img {
	object-position: center center;
}
/* Books: cover titles also sit at the top — bias crop upward. */
.discover-card-item[data-cat="books"] .discover-card-media img {
	object-position: center top;
}
.discover-card-media-blank {
	display: flex; align-items: center; justify-content: center;
}
.discover-card-emoji { font-size: 64px; opacity: 0.85; }
.discover-card-tag {
	position: absolute; top: 10px; left: 10px;
	background: rgba(0,0,0,0.62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px; font-weight: 700;
	letter-spacing: 0.04em;
	display: inline-flex; align-items: center; gap: 5px;
}
.wrapper a.discover-card-tag,
.discover-card-tag-link {
	color: #fff !important;
	text-decoration: none !important;
	cursor: pointer;
}
.wrapper a.discover-card-tag:hover,
.wrapper a.discover-card-tag:focus-visible,
.discover-card-tag-link:hover,
.discover-card-tag-link:focus-visible {
	color: #fff !important;
	filter: brightness(1.08) saturate(1.08);
	transform: translateY(-1px);
	outline: none;
}
.discover-card-tag i { font-size: 11px; }
.discover-card-pct {
	position: absolute; top: 10px; right: 10px;
	background: rgba(0,0,0,0.62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px; font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	max-width: none;
	overflow: visible;
}
.discover-card-pct i { font-size: 10px; }
.discover-card-pct-votes { opacity: 0.88; font-variant-numeric: tabular-nums; }
.discover-card-tag-inline {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 11px; font-weight: 700;
	color: var(--purple);
	letter-spacing: 0.04em; text-transform: uppercase;
}
/* category-tinted top borders & gradients */
.discover-card-item[data-cat="movies"] { border-top: 3px solid #7c3aed; }
.discover-card-item[data-cat="tv"]     { border-top: 3px solid #f97316; }
.discover-card-item[data-cat="music"]  { border-top: 3px solid #f97316; }
.discover-card-item[data-cat="travel"] { border-top: 3px solid #06b6d4; }
.discover-card-item[data-cat="local"]  { border-top: 3px solid #22c55e; }
.discover-card-item[data-cat="boardgames"] { border-top: 3px solid #22c55e; }
.discover-card-item[data-cat="books"] { border-top: 3px solid #a16207; }
.discover-card-item[data-cat="shopping"] { border-top: 3px solid #ea580c; }
.discover-card-item[data-cat="podcasts"] { border-top: 3px solid #0d9488; }
.discover-card-item[data-cat="movies"] .discover-card-tag { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.discover-card-item[data-cat="tv"]     .discover-card-tag { background: linear-gradient(135deg, #f97316, #ea580c); }
.discover-card-item[data-cat="music"]  .discover-card-tag { background: linear-gradient(135deg, #f97316, #ea580c); }
.discover-card-item[data-cat="travel"] .discover-card-tag { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.discover-card-item[data-cat="local"]  .discover-card-tag { background: linear-gradient(135deg, #22c55e, #16a34a); }
.discover-card-item[data-cat="boardgames"] .discover-card-tag { background: linear-gradient(135deg, #22c55e, #16a34a); }
.discover-card-item[data-cat="books"] .discover-card-tag { background: linear-gradient(135deg, #a16207, #854d0e); }
.discover-card-item[data-cat="shopping"] .discover-card-tag { background: linear-gradient(135deg, #ea580c, #c2410c); }
.discover-card-item[data-cat="podcasts"] .discover-card-tag { background: linear-gradient(135deg, #0d9488, #0f766e); }

/* SOCIAL CARD — match avatar + verb + item ref */
.discover-card-social { padding: 14px 14px 0; }
.discover-card-social-head {
	display: flex; align-items: center; gap: 10px;
	margin-bottom: 12px;
}
.discover-card-avatar {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--purple), #6d28d9);
	color: #fff;
	font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.discover-card-avatar:hover {
	transform: scale(1.06);
	box-shadow: 0 0 0 2px var(--purple);
}
.discover-card-avatar-img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.discover-card-avatar-hidden {
	background: linear-gradient(135deg, #444, #222);
	opacity: 0.85;
}
.discover-social-namelink {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}
.discover-social-namelink:hover {
	color: var(--purple);
	text-decoration: none;
}
.discover-card-social-meta { flex: 1; min-width: 0; }
.discover-card-social-name {
	font-size: 14px; font-weight: 600;
	color: var(--text-primary);
	line-height: 1.2;
	/* V6.9 — was -webkit-line-clamp:1, which truncated the privacy-ladder
	   name + "X% match" pill into "Jared G…." in narrow cards. The name is
	   already privacy-limited by dh_displayName (first + last initial at most),
	   so allow up to two lines: the name always survives on line one and the
	   match pill / taste tag wrap underneath instead of clipping the name. */
	display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.discover-card-social-time {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 2px;
}
.discover-match-pct {
	display: inline-block;
	background: rgba(124,58,237,0.18);
	color: var(--purple);
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 11px; font-weight: 700;
	margin-left: 4px;
}
.discover-verb { font-weight: 600; }
.discover-verb.verb-up   { color: var(--green); }
.discover-verb.verb-neutral { color: #f59e0b; }
.discover-verb.verb-down { color: var(--coral); }
.discover-card-social-item {
	display: flex; align-items: center; gap: 10px;
	background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(20,184,166,0.045));
	border: 1px solid var(--border-soft, rgba(255,255,255,0.08));
	border-radius: 12px;
	padding: 8px;
	margin-bottom: 12px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}
.discover-card-social-item:hover { border-color: rgba(124,58,237,0.32); }
/* V247 — follow relocated to the social card header (person action), styled as
   a distinct pill next to the name so it reads as "follow this person" and is
   clearly separate from the item-rating row below. Keeps the .discover-follow
   class so the global button reset's :not(.discover-follow) exclusion applies. */
.discover-card-social-head .discover-follow-head {
	flex-shrink: 0;
	display: inline-flex; align-items: center; gap: 6px;
	width: auto !important; height: auto !important;
	border: 1px solid rgba(124,58,237,0.42) !important;
	background: rgba(124,58,237,0.12) !important;
	color: var(--text-primary) !important;
	border-radius: 999px !important;
	padding: 6px 12px !important;
	font-size: 12px !important; font-weight: 700 !important;
	line-height: 1 !important; box-shadow: none !important; text-shadow: none !important;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.discover-card-social-head .discover-follow-head:hover {
	background: rgba(124,58,237,0.20) !important;
	border-color: rgba(124,58,237,0.62) !important;
}
.discover-card-social-head .discover-follow-head.connect-tile-following {
	background: rgba(45,212,191,0.14) !important;
	border-color: rgba(45,212,191,0.42) !important;
}
.discover-card-social-head .discover-follow-head.connect-tile-following:hover {
	background: rgba(45,212,191,0.22) !important;
}
html.light-mode .discover-card-social-head .discover-follow-head {
	background: rgba(124,58,237,0.10) !important;
	border-color: rgba(124,58,237,0.30) !important;
}
@media (max-width: 420px) {
	.discover-card-social-head .discover-follow-head { padding: 6px 9px !important; font-size: 11px !important; }
}
/* V247 — rated item is now tappable through to its detail page. Wrap the info
   column (not the title div) so the title keeps its own color. A chevron hints
   at the affordance. */
a.discover-card-social-info.discover-card-social-info-link { display: block; text-decoration: none; cursor: pointer; }
a.discover-card-social-info-link:hover .discover-card-social-title { color: var(--purple); }
.discover-card-social-go {
	flex-shrink: 0; align-self: center;
	color: var(--text-secondary); opacity: 0.5;
	font-size: 13px; padding-left: 2px;
	transition: opacity .15s ease, color .15s ease;
}
.discover-card-social-item:hover .discover-card-social-go { opacity: 1; color: var(--purple); }
.discover-card-social-thumb {
	width: 56px; height: 56px;
	border-radius: 8px; overflow: hidden;
	background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(0,0,0,0.4));
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 28px;
}
.discover-card-social-thumb img { width: 100%; height: 100%; object-fit: cover; }
.discover-card-social-info { flex: 1; min-width: 0; }
.discover-card-social-cat {
	font-size: 11px; font-weight: 700;
	color: var(--purple);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	display: inline-flex; align-items: center; gap: 5px;
}
.discover-card-social-title {
	font-size: 14px; font-weight: 700;
	color: var(--text-primary);
	margin-top: 2px;
	line-height: 1.25;
	display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.discover-card-social .discover-card-foot {
	border-top: 1px solid var(--border-soft, rgba(255,255,255,0.06));
	padding: 10px 0 12px;
	margin: auto 0 0;
}

.discover-why {
	margin-top: 10px;
}
.discover-card-social .discover-why {
	margin: -2px 0 10px;
}
.discover-why-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--border-soft, rgba(255,255,255,0.08)) !important;
	background: rgba(124,58,237,0.08) !important;
	color: var(--text-secondary) !important;
	border-radius: 999px !important;
	padding: 6px 10px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
}
.discover-why-btn:hover,
.discover-why-btn[aria-expanded="true"] {
	background: rgba(45,212,191,0.12) !important;
	border-color: rgba(45,212,191,0.35) !important;
	color: var(--text-primary) !important;
}
.discover-why-panel {
	margin-top: 8px;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid rgba(45,212,191,0.2);
	background: rgba(8,13,28,0.42);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.discover-why-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	margin-bottom: 7px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid rgba(45,212,191,0.22);
	background: rgba(45,212,191,0.08);
	color: #99f6e4;
	font-size: 10.5px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .08em;
}
.discover-why-headline,
.discover-why-loading,
.discover-why-error {
	font-size: 12px;
	line-height: 1.4;
	color: var(--text-secondary);
}
.discover-why-headline {
	color: var(--text-primary);
	font-weight: 700;
}
.discover-why-meter {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.discover-why-meter span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 26px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid rgba(167,139,250,0.20);
	background: rgba(124,58,237,0.10);
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 800;
}
.discover-why-meter strong { color: var(--text-primary); }
.discover-why-list {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	display: grid;
	gap: 7px;
}
.discover-why-list li {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 7px;
	align-items: start;
	font-size: 12px;
	line-height: 1.35;
	color: var(--text-secondary);
}
.discover-why-list li i {
	color: #2dd4bf;
	font-size: 11px;
	margin-top: 2px;
}
.discover-why-list strong {
	display: block;
	font-weight: 700;
	color: var(--text-primary);
}
.discover-why-list em {
	display: block;
	font-style: normal;
	font-size: 11px;
	color: var(--text-muted);
	margin-top: 1px;
}
.discover-why-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 9px;
	font-size: 12px;
	font-weight: 700;
	color: #2dd4bf !important;
	text-decoration: none;
}
.discover-why-link:hover { color: var(--text-primary) !important; }

/* AI CARD — gradient banner + try button */
.discover-card-ai {
	border-top: 3px solid #fbbf24;
}
.discover-card-ai-banner {
	height: 110px;
	background: linear-gradient(135deg, #7c3aed 0%, #f97316 100%);
	position: relative;
	display: flex; align-items: center; justify-content: center;
}
.discover-card-ai-banner.cyan   { background: linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%); }
.discover-card-ai-banner.coral  { background: linear-gradient(135deg, #f97316 0%, #f97316 100%); }
.discover-card-ai-banner.yellow { background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%); }
.discover-card-ai-banner.green  { background: linear-gradient(135deg, #22c55e 0%, #06b6d4 100%); }
.discover-card-ai-icon { font-size: 52px; line-height: 1; }
.discover-card-ai-type {
	position: absolute; top: 10px; left: 10px;
	background: rgba(0,0,0,0.45);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px; font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.discover-card-ai-stats {
	display: flex; gap: 12px; flex-wrap: wrap;
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 4px;
}
.discover-card-ai-stats .up { color: var(--green); }
.discover-card-ai-stats .neutral { color: #f59e0b; }
.discover-card-ai-stats .rated { margin-left: auto; }
.discover-card-ai-stats .rated.up { color: var(--green); }
.discover-card-ai-stats .rated.neutral { color: #f59e0b; }
.discover-card-ai-stats .rated.down { color: var(--coral); }
.discover-card-ai-stats .ai-stat-new {
	color: rgba(255,255,255,0.45);
	font-style: italic;
}
/* V207 polish (pass 3) — `New` badge was rgba(255,255,255,0.45) which is
   readable only on the dark-mode card surface. On the white light-mode
   card it composites to ~contrast 1 → invisible. Theme override. */
html.light-mode .discover-card-ai-stats .ai-stat-new { color: rgba(31,18,53,0.65); }
.discover-card-actions .discover-rate.active.up {
	color: var(--green);
	border-color: rgba(34,197,94,0.5);
	background: rgba(34,197,94,0.12);
}
.discover-card-actions .discover-rate.active.down {
	color: #dc2626;
	border-color: rgba(220,38,38,0.5);
	background: rgba(220,38,38,0.12);
}
.discover-card-try {
	font-size: 13px !important;
	padding: 8px 16px !important;
}

/* CTA CARD — full-width, more prominent */
.discover-card-cta {
	grid-column: span 2;
	background:
		radial-gradient(circle at 0% 0%, rgba(124,58,237,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(255,140,0,0.16), transparent 50%),
		var(--surface);
	border: 1px solid var(--purple-border);
	padding: 22px 24px;
	display: flex; flex-direction: column; gap: 8px;
	align-items: flex-start;
	min-height: 220px;
	justify-content: center;
}
.discover-card-cta-emoji { font-size: 38px; }
.discover-card-cta .discover-card-title { font-size: 20px; }
.discover-card-cta .discover-card-title,
.discover-card-cta .discover-card-desc { text-align: left !important; align-self: stretch; }
.discover-card-cta .discover-card-desc { -webkit-line-clamp: 4; line-clamp: 4; }
.discover-card-cta .btn-glow { margin-top: 8px; align-self: flex-start; }
@media (max-width: 600px) {
	.discover-card-cta { grid-column: span 2; min-height: 0; padding: 18px; }
}

/* V6.8 patch 169.15 — engagement-CTA polish.
   The discover stream now rotates the CTA slot through ~10 kinds (quiz,
   compare, agent, saved, tournament, create, pvp, connect, follow,
   achievements, twins). Each kind gets a subtle accent tint + eyebrow
   badge so users can tell them apart at a glance without overwhelming
   the surrounding item/social cards. */
.discover-card-cta-eyebrow {
	display: inline-block;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim, #9aa1ab);
	background: rgba(124,58,237,0.10);
	border: 1px solid rgba(124,58,237,0.22);
	border-radius: 999px;
	padding: 3px 10px;
	margin: 0 0 4px 0;
	line-height: 1.4;
}
/* Per-kind accent washes. Tint the radial gradient + border + eyebrow chip
   so the same CTA shell visually communicates which engagement track it is. */
.discover-card-cta-compare {
	background:
		radial-gradient(circle at 0% 0%, rgba(20,184,166,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(124,58,237,0.14), transparent 50%),
		var(--surface);
	border-color: rgba(20,184,166,0.32);
}
.discover-card-cta-compare .discover-card-cta-eyebrow {
	background: rgba(20,184,166,0.14); border-color: rgba(20,184,166,0.32); color: #14b8a6;
}
.discover-card-cta-agent {
	background:
		radial-gradient(circle at 0% 0%, rgba(34,197,94,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(124,58,237,0.14), transparent 50%),
		var(--surface);
	border-color: rgba(34,197,94,0.32);
}
.discover-card-cta-agent .discover-card-cta-eyebrow {
	background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.32); color: #22c55e;
}
.discover-card-cta-saved {
	background:
		radial-gradient(circle at 0% 0%, rgba(245,158,11,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(124,58,237,0.10), transparent 50%),
		var(--surface);
	border-color: rgba(245,158,11,0.32);
}
.discover-card-cta-saved .discover-card-cta-eyebrow {
	background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.32); color: #f59e0b;
}
.discover-card-cta-tournament {
	background:
		radial-gradient(circle at 0% 0%, rgba(234,179,8,0.20), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(255,140,0,0.16), transparent 50%),
		var(--surface);
	border-color: rgba(234,179,8,0.36);
}
.discover-card-cta-tournament .discover-card-cta-eyebrow {
	background: rgba(234,179,8,0.14); border-color: rgba(234,179,8,0.34); color: #eab308;
}
.discover-card-cta-create {
	background:
		radial-gradient(circle at 0% 0%, rgba(34,197,94,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(124,58,237,0.12), transparent 50%),
		var(--surface);
	border-color: rgba(34,197,94,0.32);
}
.discover-card-cta-create .discover-card-cta-eyebrow {
	background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.32); color: #22c55e;
}
.discover-card-cta-pvp {
	background:
		radial-gradient(circle at 0% 0%, rgba(239,68,68,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(255,140,0,0.14), transparent 50%),
		var(--surface);
	border-color: rgba(239,68,68,0.32);
}
.discover-card-cta-pvp .discover-card-cta-eyebrow {
	background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.32); color: #ef4444;
}
.discover-card-cta-connect {
	background:
		radial-gradient(circle at 0% 0%, rgba(249,115,22,0.20), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(239,68,68,0.14), transparent 50%),
		var(--surface);
	border-color: rgba(249,115,22,0.32);
}
.discover-card-cta-connect .discover-card-cta-eyebrow {
	background: rgba(249,115,22,0.14); border-color: rgba(249,115,22,0.32); color: #f97316;
}
.discover-card-cta-follow {
	background:
		radial-gradient(circle at 0% 0%, rgba(59,130,246,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(124,58,237,0.12), transparent 50%),
		var(--surface);
	border-color: rgba(59,130,246,0.32);
}
.discover-card-cta-follow .discover-card-cta-eyebrow {
	background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.32); color: #3b82f6;
}
.discover-card-cta-achievements {
	background:
		radial-gradient(circle at 0% 0%, rgba(168,85,247,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(234,179,8,0.14), transparent 50%),
		var(--surface);
	border-color: rgba(168,85,247,0.32);
}
.discover-card-cta-achievements .discover-card-cta-eyebrow {
	background: rgba(168,85,247,0.14); border-color: rgba(168,85,247,0.32); color: #a855f7;
}
.discover-card-cta-twins {
	background:
		radial-gradient(circle at 0% 0%, rgba(34,197,94,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(124,58,237,0.14), transparent 50%),
		var(--surface);
	border-color: rgba(34,197,94,0.32);
}
.discover-card-cta-twins .discover-card-cta-eyebrow {
	background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.32); color: #22c55e;
}
.discover-card-cta-quiz {
	background:
		radial-gradient(circle at 0% 0%, rgba(124,58,237,0.22), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(255,140,0,0.16), transparent 50%),
		var(--surface);
	border-color: rgba(124,58,237,0.34);
}
.discover-card-cta-quiz .discover-card-cta-eyebrow {
	background: rgba(124,58,237,0.16); border-color: rgba(124,58,237,0.36); color: #c4b5fd;
}

/* V6.9 — Anti-Twin card polish. The base CTA card centers content and clamps
   copy, which made this feel empty and unfinished in the Stream. Keep it dark,
   compact, and readable while preserving the red/opposite-taste signal. */
.discover-card-doppelganger {
	justify-content: flex-start !important;
	align-items: stretch !important;
	gap: 14px !important;
	min-height: 0 !important;
	padding: clamp(18px, 2.6vw, 24px) !important;
	background:
		radial-gradient(circle at 100% 0%, rgba(248,113,113,.18), transparent 34%),
		radial-gradient(circle at 0% 100%, rgba(124,58,237,.16), transparent 38%),
		linear-gradient(145deg, #101827 0%, #0c1220 54%, #171023 100%) !important;
	border-color: rgba(248,113,113,.24) !important;
	box-shadow: 0 18px 46px -34px rgba(0,0,0,.90), inset 0 1px 0 rgba(255,255,255,.055) !important;
	color: #f8fafc !important;
}
.discover-card-doppelganger .discover-card-cta-eyebrow {
	width: fit-content;
	padding: 7px 16px !important;
	border-color: rgba(248,113,113,.34) !important;
	background: rgba(124,58,237,.18) !important;
	color: #fecaca !important;
	font-size: 11px !important;
	font-weight: 900 !important;
	letter-spacing: .12em !important;
}
.discover-card-doppelganger > div[style*="display:flex"] {
	display: grid !important;
	grid-template-columns: 58px minmax(0, 1fr) !important;
	align-items: center !important;
	gap: 14px !important;
	margin-top: 8px !important;
}
.discover-card-doppelganger > div[style*="display:flex"] > div:first-child {
	width: 58px !important;
	height: 58px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 18px !important;
	background: linear-gradient(135deg, rgba(248,113,113,.20), rgba(124,58,237,.22)) !important;
	border: 1px solid rgba(248,113,113,.24) !important;
	font-size: 26px !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.discover-card-doppelganger .discover-card-title {
	font-size: clamp(22px, 2.8vw, 30px) !important;
	line-height: 1.05 !important;
	letter-spacing: 0 !important;
	color: #ffffff !important;
}
.discover-card-doppelganger > div[style*="display:flex"] > div:last-child > div {
	gap: 8px 10px !important;
	margin-top: 8px !important;
	font-size: 14px !important;
	color: #fecaca !important;
}
.discover-card-doppelganger > div[style*="display:flex"] > div:last-child > div > span:first-child {
	padding: 6px 12px !important;
	background: rgba(248,250,252,.15) !important;
	border: 1px solid rgba(255,255,255,.13) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.discover-card-doppelganger .discover-card-desc {
	max-width: 46rem;
	margin: 2px 0 0 !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	color: rgba(226,232,240,.82) !important;
	font-size: clamp(15px, 1.7vw, 17px) !important;
	line-height: 1.45 !important;
}
.discover-card-doppelganger .btn-glow.primary,
.wrapper .discover-card-doppelganger .btn-glow.primary {
	align-self: flex-start !important;
	margin-top: 4px !important;
	min-height: 46px !important;
	padding: 12px 18px !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, rgba(248,113,113,.18), rgba(124,58,237,.20)) !important;
	border: 1px solid rgba(248,113,113,.38) !important;
	color: #fecaca !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-weight: 900 !important;
}
.discover-card-doppelganger .btn-glow.primary:hover,
.wrapper .discover-card-doppelganger .btn-glow.primary:hover {
	background: linear-gradient(135deg, rgba(248,113,113,.28), rgba(124,58,237,.28)) !important;
	color: #ffffff !important;
	border-color: rgba(252,165,165,.52) !important;
}
.discover-card-doppelganger > p:last-child {
	margin: 4px 0 0 !important;
	padding-top: 12px !important;
	border-top: 1px solid rgba(248,113,113,.14) !important;
	color: rgba(203,213,225,.78) !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
	text-align: left !important;
}
@media (max-width: 640px) {
	.discover-card-doppelganger { gap: 12px !important; padding: 18px !important; }
	.discover-card-doppelganger > div[style*="display:flex"] {
		grid-template-columns: 46px minmax(0, 1fr) !important;
		gap: 11px !important;
		margin-top: 4px !important;
	}
	.discover-card-doppelganger > div[style*="display:flex"] > div:first-child {
		width: 46px !important;
		height: 46px !important;
		border-radius: 14px !important;
		font-size: 21px !important;
	}
	.discover-card-doppelganger .discover-card-title { font-size: 21px !important; }
	.discover-card-doppelganger .btn-glow.primary { width: 100% !important; justify-content: center !important; }
}
/* Light mode tweaks — accent washes remain visible on the light surface. */
html.light-mode .discover-card-cta-eyebrow { color: #6b7280; }
html.light-mode .discover-card-cta-compare .discover-card-cta-eyebrow { color: #0d9488; }
html.light-mode .discover-card-cta-agent .discover-card-cta-eyebrow { color: #16a34a; }
html.light-mode .discover-card-cta-saved .discover-card-cta-eyebrow { color: #d97706; }
html.light-mode .discover-card-cta-tournament .discover-card-cta-eyebrow { color: #ca8a04; }
html.light-mode .discover-card-cta-create .discover-card-cta-eyebrow { color: #16a34a; }
html.light-mode .discover-card-cta-pvp .discover-card-cta-eyebrow { color: #dc2626; }
html.light-mode .discover-card-cta-connect .discover-card-cta-eyebrow { color: #ea580c; }
html.light-mode .discover-card-cta-follow .discover-card-cta-eyebrow { color: #2563eb; }
html.light-mode .discover-card-cta-achievements .discover-card-cta-eyebrow { color: #9333ea; }
html.light-mode .discover-card-cta-twins .discover-card-cta-eyebrow { color: #16a34a; }
html.light-mode .discover-card-cta-quiz .discover-card-cta-eyebrow { color: #6d28d9; }

/* EMPTY STATE */
.discover-empty {
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: 16px;
	padding: 48px 32px;
	text-align: center;
}
.discover-empty h3 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	color: var(--text-primary);
	font-size: 22px; font-weight: 700;
	margin: 0 0 8px;
}
.discover-empty p { color: var(--text-secondary); margin: 0 0 20px; }

/* LIGHT MODE */
html.light-mode .discover-card { background: #ffffff; border-color: rgba(0,0,0,0.08); }
html.light-mode .discover-card-tag,
html.light-mode .discover-card-pct {
	background: rgba(0,0,0,0.78);
}
html.light-mode .discover-card-social-item { background: #f8f5ff; border-color: rgba(0,0,0,0.05); }
html.light-mode .discover-why-btn {
	background: #f6f3ff !important;
	border-color: rgba(31,18,53,0.1) !important;
	color: #5b5367 !important;
}
html.light-mode .discover-why-btn:hover,
html.light-mode .discover-why-btn[aria-expanded="true"] {
	background: rgba(13,148,136,0.1) !important;
	border-color: rgba(13,148,136,0.26) !important;
	color: #1f2937 !important;
}
html.light-mode .discover-why-panel {
	background: #fbfafc;
	border-color: rgba(13,148,136,0.2);
}
html.light-mode .discover-why-kicker {
	background: rgba(13,148,136,0.08);
	border-color: rgba(13,148,136,0.18);
	color: #0f766e;
}
html.light-mode .discover-why-meter span {
	background: rgba(124,58,237,0.07);
	border-color: rgba(124,58,237,0.14);
	color: #4b5563;
}
html.light-mode .discover-why-list li i,
html.light-mode .discover-why-link { color: #0f766e !important; }
html.light-mode .discover-tabs { background: #f6f3ff; border-color: rgba(0,0,0,0.06); }
html.light-mode .discover-empty { background: #ffffff; border-color: rgba(0,0,0,0.1); }
html.light-mode .discover-rate { background: #f6f3ff; border-color: rgba(0,0,0,0.06); color: #4b3a7a; }


/* =====================================================
   SUBPAGE COHESION — movies / tv / music / travel / local
   Wrap subpages with .discover-sub[data-cat="<cat>"] to
   re-skin the legacy filter UI in the new visual language.
   ===================================================== */
.discover-sub {
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px 16px 56px;
}

/* Breadcrumb / back-bar at top of every subpage */
.discover-sub-bar {
	display: flex; align-items: center; flex-wrap: wrap;
	gap: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 12px 16px;
	margin-bottom: 18px;
}
.discover-sub-back {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--text-secondary) !important;
	font-size: 13px; font-weight: 600;
	text-decoration: none !important;
	padding: 6px 10px;
	border-radius: 8px;
	transition: all 0.2s var(--ease);
}
.discover-sub-back:hover { color: var(--purple) !important; background: var(--surface-hover); }
.discover-sub-cat {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 700;
	color: var(--text-primary);
}
.discover-sub-bar > .spacer { flex: 1; }
.discover-sub-quick {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 700;
	color: var(--purple) !important;
	text-decoration: none !important;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(124,58,237,0.12);
	transition: all 0.2s var(--ease);
}
.discover-sub-quick:hover { background: rgba(124,58,237,0.22); }

/* Subpage hero — replaces small h2 with a gradient banner */
.discover-sub > h2:first-of-type,
.discover-sub-hero {
	background:
		radial-gradient(circle at 0% 0%, rgba(124,58,237,0.18), transparent 55%),
		linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 22px 24px !important;
	margin: 0 0 14px !important;
	font-family: 'Space Grotesk', 'Inter', sans-serif !important;
	font-size: 28px !important;
	font-weight: 700 !important;
	color: var(--text-primary) !important;
	letter-spacing: -0.01em !important;
	display: flex; align-items: center; gap: 12px;
}
.discover-sub > h2:first-of-type i { color: var(--purple); }
.discover-sub[data-cat="movies"] > h2:first-of-type { border-top: 3px solid #7c3aed; }
.discover-sub[data-cat="tv"]     > h2:first-of-type { border-top: 3px solid #f97316; }
.discover-sub[data-cat="music"]  > h2:first-of-type { border-top: 3px solid #f97316; }
.discover-sub[data-cat="travel"] > h2:first-of-type { border-top: 3px solid #06b6d4; }
.discover-sub[data-cat="local"]  > h2:first-of-type { border-top: 3px solid #22c55e; }
.discover-sub[data-cat="boardgames"] > h2:first-of-type { border-top: 3px solid #22c55e; }
.discover-sub[data-cat="books"] > h2:first-of-type { border-top: 3px solid #a16207; }
.discover-sub[data-cat="shopping"] > h2:first-of-type { border-top: 3px solid #ea580c; }
.discover-sub[data-cat="podcasts"] > h2:first-of-type { border-top: 3px solid #0d9488; }
.discover-sub[data-cat="movies"] > h2:first-of-type i { color: #7c3aed; }
.discover-sub[data-cat="tv"]     > h2:first-of-type i { color: #f97316; }
.discover-sub[data-cat="music"]  > h2:first-of-type i { color: #f97316; }
.discover-sub[data-cat="travel"] > h2:first-of-type i { color: #06b6d4; }
.discover-sub[data-cat="local"]  > h2:first-of-type i { color: #22c55e; }
.discover-sub[data-cat="boardgames"] > h2:first-of-type i { color: #22c55e; }
.discover-sub[data-cat="books"] > h2:first-of-type i { color: #a16207; }
.discover-sub[data-cat="shopping"] > h2:first-of-type i { color: #ea580c; }
.discover-sub[data-cat="podcasts"] > h2:first-of-type i { color: #0d9488; }

/* Filter row .box2 → modern chip strip */
.discover-sub .box2 {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: 14px !important;
	padding: 14px !important;
	margin: 0 0 18px !important;
}

/* Filter pills inside subpage */
.discover-sub .tvmatch {
	background: var(--bg-raised) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
	border-radius: 999px !important;
	padding: 8px 14px !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	max-height: none !important;
	transition: all 0.2s var(--ease) !important;
	margin: 2px !important;
	min-height: 36px;
	line-height: 1.2;
}
.discover-sub .tvmatch:hover {
	background: linear-gradient(135deg, var(--purple), #6d28d9) !important;
	color: #fff !important;
	border-color: transparent !important;
}
.discover-sub .selectedtv,
.discover-sub .tvmatch.selectedtv {
	background: linear-gradient(135deg, var(--purple), #6d28d9) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

/* Item cards — re-skin .jumpa to discover aesthetic */
.discover-sub .card.jumpa,
.discover-sub .jumpa {
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	border-radius: 16px !important;
	padding: 0 !important;
	overflow: hidden !important;
	transition: all 0.25s var(--ease) !important;
	color: var(--text-secondary) !important;
}
.discover-sub .card.jumpa:hover,
.discover-sub .jumpa:hover {
	transform: translateY(-3px);
	border-color: var(--purple-border) !important;
	box-shadow: 0 12px 32px rgba(0,0,0,0.35) !important;
}
.discover-sub[data-cat="movies"] .jumpa { border-top: 3px solid #7c3aed !important; }
.discover-sub[data-cat="tv"]     .jumpa { border-top: 3px solid #f97316 !important; }
.discover-sub[data-cat="music"]  .jumpa { border-top: 3px solid #f97316 !important; }
.discover-sub[data-cat="travel"] .jumpa { border-top: 3px solid #06b6d4 !important; }
.discover-sub[data-cat="local"]  .jumpa { border-top: 3px solid #22c55e !important; }
.discover-sub .jumpa .pcol { padding: 12px !important; }

/* Image inside subpage card */
.discover-sub .jumpa img.img-fluid {
	border-radius: 0 !important;
	width: 100% !important;
	max-height: 260px;
	object-fit: cover;
}

/* % chip — replace solid purple banner with gradient pill positioned over image */
.discover-sub .toppbg {
	display: inline-block !important;
	background: linear-gradient(135deg, var(--purple), #6d28d9) !important;
	color: #fff !important;
	padding: 5px 12px !important;
	border-radius: 999px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	max-width: none !important;
	margin: 6px 0 !important;
}
.discover-sub[data-cat="movies"] .toppbg { background: linear-gradient(135deg, #7c3aed, #6d28d9) !important; }
.discover-sub[data-cat="tv"]     .toppbg { background: linear-gradient(135deg, #f97316, #ea580c) !important; }
.discover-sub[data-cat="music"]  .toppbg { background: linear-gradient(135deg, #f97316, #ea580c) !important; }
.discover-sub[data-cat="travel"] .toppbg { background: linear-gradient(135deg, #06b6d4, #0891b2) !important; }
.discover-sub[data-cat="local"]  .toppbg { background: linear-gradient(135deg, #22c55e, #16a34a) !important; }

/* Item title + descriptions */
.discover-sub .fonttop {
	font-family: 'Space Grotesk', 'Inter', sans-serif !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	color: var(--text-primary) !important;
	padding: 4px 0 !important;
	margin-top: 8px !important;
	line-height: 1.25 !important;
}
.discover-sub .pcol { color: var(--text-secondary) !important; font-size: 13px; line-height: 1.45; }
.discover-sub .text-muted2,
.discover-sub .text-muted3,
.discover-sub .text-muted5 { color: var(--text-muted) !important; }

/* Circular thumbs on subpages */
.discover-sub .linkthumbs,
.discover-sub .linkthumbsr {
	width: 38px !important;
	height: 38px !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 4px !important;
	font-weight: 700 !important;
	transition: all 0.2s var(--ease) !important;
}
.discover-sub .linkthumbs {
	color: var(--green) !important;
	background: var(--bg-raised) !important;
	border: 1px solid var(--border) !important;
}
.discover-sub .linkthumbs:hover {
	background: var(--green) !important;
	color: #fff !important;
	border-color: var(--green) !important;
	transform: scale(1.07);
}
.discover-sub .linkthumbsr {
	color: var(--coral) !important;
	background: var(--bg-raised) !important;
	border: 1px solid var(--border) !important;
}
.discover-sub .linkthumbsr:hover {
	background: var(--coral) !important;
	color: #fff !important;
	border-color: var(--coral) !important;
	transform: scale(1.07);
}

/* Search input/button on subpages — match discover style */
.discover-sub .input {
	background: var(--bg-raised) !important;
	border: 1px solid var(--border) !important;
	color: var(--text-primary) !important;
	border-right: none !important;
	border-radius: 999px 0 0 999px !important;
	padding: 10px 16px !important;
	height: auto !important;
	min-height: 40px;
}
.discover-sub .buttonaa {
	background: linear-gradient(135deg, var(--purple), #6d28d9) !important;
	color: #fff !important;
	border: 1px solid transparent !important;
	border-radius: 0 999px 999px 0 !important;
	padding: 10px 18px !important;
	min-height: 40px;
	font-weight: 700 !important;
}

/* Custom select on subpages */
.discover-sub .custom-select {
	background: var(--bg-raised) !important;
	border: 1px solid var(--border) !important;
	border-radius: 999px !important;
	overflow: hidden;
	color: var(--text-primary) !important;
}
.discover-sub .custom-select select {
	background: transparent !important;
	color: var(--text-primary) !important;
	padding: 10px 50px 10px 16px !important;
	font-weight: 600 !important;
}
.discover-sub .custom-select:after {
	background: linear-gradient(135deg, var(--purple), #6d28d9) !important;
	color: #fff !important;
	border-radius: 0 999px 999px 0 !important;
}
.discover-sub .purplesel,
.discover-sub .custom-select.purplesel {
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(249,115,22,0.12)) !important;
}

/* Pagination links */
.discover-sub a[class*="tvmatch"][href*="?"],
.discover-sub .mobilepag a {
	display: inline-block;
}
.discover-sub .colxs { color: var(--text-muted); font-size: 13px; }

/* Light mode for subpages */
html.light-mode .discover-sub-bar { background: #ffffff; }
html.light-mode .discover-sub > h2:first-of-type { background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%); }
html.light-mode .discover-sub .box2 { background: #ffffff !important; }
html.light-mode .discover-sub .jumpa { background: #ffffff !important; }
html.light-mode .discover-sub .tvmatch { background: #f6f3ff !important; }
html.light-mode .discover-sub .input { background: #ffffff !important; }
html.light-mode .discover-sub .custom-select { background: #ffffff !important; }
html.light-mode .discover-sub .linkthumbs,
html.light-mode .discover-sub .linkthumbsr { background: #f6f3ff !important; }

/* small responsive fixes */
@media (max-width: 600px) {
	.discover-sub > h2:first-of-type { font-size: 22px !important; padding: 16px 18px !important; }
	.discover-sub-bar { padding: 10px 12px; gap: 8px; }
	.discover-sub-quick { font-size: 12px; padding: 6px 10px; }
}

/* ===========================================================
   V6.5 — DISCOVER COMPACT BAR + INLINE TASTE QUIZ
   May 2026
   ----------------------------------------------------------
   - Replaces the bulky .discover-hero with a slim .discover-bar
     that puts above-the-fold focus on rating, not marketing.
   - Adds .discover-quiz-card: inline taste-quiz that swaps in
     the next question via fetch — keeps users on Discover.
   =========================================================== */

/* COMPACT BAR — replaces the old hero */
.discover-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: 14px 18px;
	margin: 0 0 16px;
	background: linear-gradient(135deg, rgba(124,58,237,0.10) 0%, rgba(249,115,22,0.06) 50%, rgba(6,182,212,0.06) 100%), var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	color: var(--text-primary);
}
.discover-bar-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.01em;
	/* V6.8 patch 37 — reset user-agent <h1> margin/line-height so the title
	   sits identically inside the flex bar regardless of whether it's
	   rendered as <div> (Discover) or <h1> (Messages/Account). */
	margin: 0;
	line-height: 1.1;
}
.discover-bar-title i {
	color: var(--purple);
	font-size: 22px;
}
.discover-bar-stats {
	margin-left: auto;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}
.discover-bar-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--text-secondary);
	background: var(--bg-raised);
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--border-soft, rgba(255,255,255,0.06));
}
.discover-bar-stat i { color: var(--purple); font-size: 12px; }
.discover-bar-stat strong { color: var(--text-primary); font-weight: 700; }
@media (max-width: 600px) {
	.discover-bar { padding: 12px 14px; gap: 8px; }
	.discover-bar-title { font-size: 18px; }
	.discover-bar-title i { font-size: 18px; }
	.discover-bar-stats { margin-left: 0; width: 100%; gap: 6px; }
	.discover-bar-stat { font-size: 12px; padding: 4px 10px; }
}

/* V6.8 patch 36 — Messages and Account use the SAME discover-bar styling as
   Discover itself (no per-page padding/font overrides). The earlier patch-35
   tightening made these bars feel inconsistent next to Discover; let them
   share defaults so the heading reads identically across all pages. */

/* TASTE QUIZ — inline card. Lives in its own section above the stream. */
.discover-quiz-wrap {
	margin-bottom: 24px;
}
.discover-quiz-card {
	position: relative;
	background:
		radial-gradient(circle at 0% 0%, rgba(124,58,237,0.18), transparent 50%),
		radial-gradient(circle at 100% 100%, rgba(255,140,0,0.14), transparent 50%),
		linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
	border: 1px solid var(--purple-border);
	border-radius: 18px;
	padding: 18px 22px 20px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(124,58,237,0.18);
}
/* V222 — signature top accent bar ties the question card to the brand
   line used on greet/profile cards, so welcome \u2192 question \u2192 stream reads
   as one designed flow. */
.discover-quiz-card::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 3px;
	z-index: 4;
	background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 52%, #0891b2 100%);
	opacity: 0.92;
}
.discover-quiz-card.discover-quiz-card-ongoing::before {
	background: linear-gradient(90deg, #06b6d4 0%, #4f46e5 54%, #7c3aed 100%);
}
.discover-quiz-card.discover-quiz-card-instream::before { opacity: 0.7; }
.discover-quiz-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}
.discover-quiz-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	background: linear-gradient(135deg, var(--purple), #6d28d9);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
}
.discover-quiz-progress {
	flex: 1;
	min-width: 180px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.discover-quiz-progress-label {
	font-size: 12px;
	color: var(--text-muted);
}
.discover-quiz-progress-label strong { color: var(--text-primary); }
.discover-quiz-progress-bar {
	height: 6px;
	background: var(--bg-raised);
	border-radius: 999px;
	overflow: hidden;
	position: relative;
}
.discover-quiz-progress-bar > span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--purple) 0%, #6d28d9 50%, #f97316 100%);
	border-radius: 999px;
	transition: width .5s var(--ease);
}
.discover-quiz-coins {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(251,191,36,0.16);
	color: #fbbf24;
	padding: 6px 12px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
	border: 1px solid rgba(251,191,36,0.25);
}
.discover-quiz-coins i { font-size: 13px; }
.discover-quiz-coins-ongoing {
	gap: 8px;
	white-space: nowrap;
}
.discover-quiz-coins-ongoing .discover-quiz-earn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-left: 8px;
	margin-left: 2px;
	border-left: 1px solid rgba(251,191,36,0.28);
	font-weight: 900;
	letter-spacing: 0.02em;
	color: #fde68a;
}
html.light-mode .discover-quiz-coins-ongoing .discover-quiz-earn {
	border-left-color: rgba(180,83,9,0.24);
	color: #92400e;
}
html.light-mode .discover-quiz-coins {
	background: rgba(217,119,6,0.12);
	border-color: rgba(180,83,9,0.28);
	color: #92400e;
}

.discover-quiz-next,
.wrapper a.discover-quiz-next {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	color: var(--text-muted, #94a3b8) !important;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	text-decoration: none !important;
	line-height: 1.1;
	padding: 3px 0;
	cursor: pointer;
}
.discover-quiz-next i { font-size: 13px; transition: transform .14s ease; }
.discover-quiz-next:hover,
.discover-quiz-next:focus-visible,
.wrapper a.discover-quiz-next:hover,
.wrapper a.discover-quiz-next:focus-visible {
	color: var(--text-primary, #fff) !important;
	outline: none;
}
.discover-quiz-next:hover i,
.discover-quiz-next:focus-visible i { transform: translateX(2px); }
.discover-quiz-next.is-disabled,
.discover-quiz-next[aria-disabled="true"] {
	cursor: default;
	opacity: 0.55;
	pointer-events: none;
}

/* V6.8 patch 164 — collapse toggle for the inline quiz card */
.discover-quiz-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.04);
	color: var(--text-secondary, #9aa);
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .25s var(--ease);
	flex: 0 0 auto;
	margin-left: 4px;
}
.discover-quiz-toggle i { font-size: 12px; transition: transform .25s var(--ease); }
.discover-quiz-toggle:hover {
	background: rgba(124,58,237,0.12);
	border-color: rgba(124,58,237,0.35);
	color: var(--text-primary, #fff);
}
.discover-quiz-toggle:focus-visible {
	outline: 2px solid rgba(124,58,237,0.55);
	outline-offset: 2px;
}
html.light-mode .discover-quiz-toggle {
	background: rgba(0,0,0,0.04);
	border-color: rgba(0,0,0,0.08);
	color: #555;
}
html.light-mode .discover-quiz-toggle:hover {
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.35);
	color: #111;
}
.discover-quiz-wrap.is-collapsed .discover-quiz-toggle i { transform: rotate(180deg); }
.discover-quiz-wrap.is-collapsed .discover-quiz-body {
	display: none;
}
.discover-quiz-wrap.is-collapsed .discover-quiz-card { padding-bottom: 14px; }
.discover-quiz-wrap.is-collapsed .discover-quiz-head { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.discover-quiz-story {
	color: var(--text-muted);
	font-size: 13px;
	font-style: italic;
	margin: 0 0 8px;
	line-height: 1.5;
}
.discover-quiz-text {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 16px;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
@media (min-width: 768px) {
	.discover-quiz-text { font-size: 24px; }
}
/* "Asked by [Name]" attribution chip for user-submitted (moment) questions. */
.discover-quiz-creator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--text-muted);
	background: rgba(124,58,237,0.10);
	border: 1px solid rgba(124,58,237,0.22);
	padding: 4px 10px;
	border-radius: 999px;
	margin: 0 0 14px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.discover-quiz-creator[hidden] { display: none; }
.discover-quiz-creator i { color: var(--purple); font-size: 11px; }
.discover-quiz-creator-link {
	color: var(--text-primary);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease;
}
.discover-quiz-creator-link:hover {
	color: var(--purple);
	text-decoration: none;
}
.discover-quiz-creator .hub-loc { font-weight: 400; color: var(--text-muted); }
.discover-quiz-options {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 16px;
}
.discover-quiz-options.is-grid,
.discover-quiz-options.discover-quiz-options-tiles {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.discover-quiz-options > .discover-quiz-drift-skip {
	display: none !important;
}
.discover-quiz-card.is-drift-answering .discover-quiz-options > .discover-quiz-drift-skip {
	display: flex !important;
}
@media (max-width: 540px) {
	.discover-quiz-options { grid-template-columns: 1fr; }
}
.discover-quiz-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	color: var(--text-primary);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.3;
	padding: 13px 15px;
	border-radius: 14px;
	cursor: pointer;
	text-align: left;
	transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
	font-family: 'Inter', sans-serif;
}
/* Letter badge (A/B/C/D) — scannable + keyboard-style affordance. */
.dqo-key {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: rgba(124,58,237,0.14);
	border: 1px solid rgba(124,58,237,0.26);
	color: var(--purple-light, #a78bfa);
	font-size: 12px;
	font-weight: 900;
	transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.dqo-text { flex: 1 1 auto; min-width: 0; }
.dqo-tick {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-left: auto;
	border-radius: 999px;
	background: rgba(148,163,184,0.10);
	color: transparent;
	font-size: 11px;
	opacity: 0;
	transform: scale(0.5);
	transition: transform .18s var(--ease), opacity .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
/* V6.9 patch 207 — gate hover behind (hover: hover) so iOS Safari's
   sticky :hover after tap doesn't make the just-tapped option look
   pre-selected on a fresh, unanswered question. */
@media (hover: hover) {
.discover-quiz-opt:hover:not(:disabled) {
	background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(249,115,22,0.05));
	border-color: var(--purple-border);
	transform: translateY(-1px);
	color: var(--text-primary);
	box-shadow: 0 10px 24px -14px rgba(124,58,237,0.55);
}
.discover-quiz-opt:hover:not(:disabled) .dqo-key { background: rgba(124,58,237,0.24); color: #fff; border-color: transparent; }
}
.discover-quiz-opt.chosen {
	background: linear-gradient(135deg, var(--purple), #6d28d9) !important;
	color: #fff !important;
	border-color: transparent !important;
	transform: none;
}
.discover-quiz-opt.chosen .dqo-key { background: rgba(255,255,255,0.20); border-color: transparent; color: #fff; }
.discover-quiz-opt.chosen .dqo-tick { background: #fff; color: var(--purple); opacity: 1; transform: scale(1); }
.discover-quiz-opt:disabled { cursor: default; }
.discover-quiz-opt:disabled:not(.chosen) { opacity: 0.45; }

.discover-quiz-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.discover-quiz-skip {
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 8px;
	transition: all .2s var(--ease);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.discover-quiz-skip:hover:not(:disabled) {
	background: var(--surface-hover);
	color: var(--text-primary);
}
/* V249 — Skip control moved to the TOP of the question card head (replaces the
   old in-stream "Question" pill and the footer skip). Pill-shaped so it reads as
   a deliberate top control rather than a footer link. */
.discover-quiz-skip-top {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(148,163,184,0.12);
	font-size: 12px;
	font-weight: 700;
}
.discover-quiz-skip-top:hover:not(:disabled) {
	background: rgba(148,163,184,0.22);
	color: var(--text-primary);
}
html.light-mode .discover-quiz-skip-top { background: rgba(15,23,42,0.06); }
html.light-mode .discover-quiz-skip-top:hover:not(:disabled) { background: rgba(15,23,42,0.12); }
.discover-quiz-reward {
	font-size: 12px;
	font-weight: 700;
	color: #fbbf24;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
/* V207 polish (pass 2) — amber-400 was unreadable on the white inline
   quiz-card surface in light mode (contrast 1.6). Darken to amber-700. */
html.light-mode .discover-quiz-reward { color: #b45309; }
/* Patch — inline-quiz reward slot now links to the My Answers editor.
   Drop the amber treatment so it reads like a clear secondary CTA. */
.discover-quiz-reward-link {
	color: var(--text-secondary, #cbc6df) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-decoration: none;
	display: inline-flex; align-items: center; gap: 6px;
}
.discover-quiz-reward-link:hover,
.discover-quiz-reward-link:focus { color: var(--text-primary, #fff) !important; text-decoration: underline; }
html.light-mode .discover-quiz-reward-link { color: #4b5563 !important; }
html.light-mode .discover-quiz-reward-link:hover { color: #1f1235 !important; }

/* V6.8 patch 63 — soft inline CTA below the quiz foot. Always visible
   on the inline this-or-that card so members discover the "create your
   own question" feature without leaving the rating flow. */
.discover-quiz-create {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(124,58,237,0.10);
	border: 1px dashed rgba(124,58,237,0.35);
	color: var(--text-secondary) !important;
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none !important;
	transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.discover-quiz-create:hover {
	background: rgba(124,58,237,0.16);
	border-color: rgba(124,58,237,0.55);
	color: var(--text-primary) !important;
	transform: translateY(-1px);
}
.discover-quiz-create i { color: var(--purple-light); font-size: 14px; }
.discover-quiz-create strong { color: var(--text-primary); margin-left: 2px; }

.discover-quiz-puff {
	position: absolute;
	right: 22px;
	top: 22px;
	background: rgba(251,191,36,0.95);
	color: #1a0f0a;
	font-weight: 800;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	box-shadow: 0 4px 14px rgba(251,191,36,0.45);
	pointer-events: none;
	animation: dq-puff 1.4s var(--ease) forwards;
}
@keyframes dq-puff {
	0%   { opacity: 0; transform: translateY(0) scale(0.7); }
	18%  { opacity: 1; transform: translateY(-10px) scale(1.05); }
	60%  { opacity: 1; transform: translateY(-30px) scale(1); }
	100% { opacity: 0; transform: translateY(-60px) scale(0.95); }
}

/* Done celebration */
.discover-quiz-done {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
}
.discover-quiz-done-icon {
	font-size: 48px;
	line-height: 1;
}
.discover-quiz-celebrate {
	text-align: center;
	padding: 8px 0;
}
.discover-quiz-celebrate .discover-quiz-done-icon { font-size: 56px; margin-bottom: 8px; }
.discover-quiz-celebrate h3 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	color: var(--text-primary);
	font-size: 22px;
	margin: 0 0 6px;
}
.discover-quiz-celebrate p {
	color: var(--text-secondary);
	margin: 0;
	font-size: 14px;
}

/* light mode tweaks */
html.light-mode .discover-bar {
	background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, rgba(249,115,22,0.04) 100%), #ffffff;
}
html.light-mode .discover-bar-stat { background: #f6f3ff; }
html.light-mode .discover-quiz-card { background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%); }
html.light-mode .discover-quiz-opt { background: #f6f3ff; color: #1a0f2e; }
html.light-mode .dqo-key { background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.20); color: #6d28d9; }
html.light-mode .discover-quiz-opt.chosen { color: #fff !important; }
html.light-mode .discover-quiz-opt.chosen .dqo-key { background: rgba(255,255,255,0.26); color: #fff; }

/* Hide the legacy big hero if it's still rendered for some reason */
.discover-wrap > .discover-hero { display: none !important; }

/* =============================================================
   V6.6 — Ongoing quiz variant (returning users) + image tiles
   Same .discover-quiz-card chassis, different head/options
   ============================================================= */
.discover-quiz-card.discover-quiz-card-ongoing {
	border-color: rgba(6,182,212,0.35);
	background: linear-gradient(180deg, rgba(6,182,212,0.06) 0%, rgba(124,58,237,0.04) 100%), var(--surface);
}
.discover-quiz-badge.discover-quiz-badge-ongoing {
	background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}
.discover-quiz-progress.discover-quiz-progress-ongoing {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: center;
}
.discover-quiz-progress.discover-quiz-progress-ongoing .discover-quiz-progress-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--text-secondary);
	font-weight: 500;
}
.discover-quiz-progress.discover-quiz-progress-ongoing .discover-quiz-progress-label i {
	color: #06b6d4;
}
.discover-quiz-progress.discover-quiz-progress-ongoing .discover-quiz-progress-reward {
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(251,191,36,0.14);
	border: 1px solid rgba(251,191,36,0.28);
	color: #fbbf24;
	font-weight: 800;
	letter-spacing: 0.02em;
}
.discover-quiz-progress.discover-quiz-progress-ongoing .discover-quiz-progress-reward i {
	color: #fbbf24;
}
html.light-mode .discover-quiz-progress.discover-quiz-progress-ongoing .discover-quiz-progress-reward {
	background: rgba(217,119,6,0.12);
	border-color: rgba(217,119,6,0.24);
	color: #b45309;
}
html.light-mode .discover-quiz-progress.discover-quiz-progress-ongoing .discover-quiz-progress-reward i {
	color: #b45309;
}

/* Image-tile options ("this or that") — premium tiles with corner badge,
   optional caption strip, and a select tick. */
.discover-quiz-opt-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0 !important;
	overflow: hidden;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 16px;
	color: var(--text-primary);
	cursor: pointer;
	min-height: 0;
	transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.discover-quiz-opt-tile .dqo-key {
	position: absolute;
	top: 9px;
	left: 9px;
	z-index: 3;
	background: rgba(10,8,20,0.58);
	border-color: rgba(255,255,255,0.22);
	color: #fff;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.discover-quiz-opt-tile .dqo-tick {
	position: absolute;
	top: 9px;
	right: 9px;
	z-index: 3;
	margin: 0;
	background: rgba(10,8,20,0.58);
}
.discover-quiz-opt-tile .dqo-media { display: block; width: 100%; }
.discover-quiz-opt-tile .dqo-media img,
.discover-quiz-opt-tile img {
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	display: block;
	margin: 0;
}
.discover-quiz-opt-tile .dqo-cap {
	display: block;
	padding: 10px 12px;
	font-size: 13.5px;
	font-weight: 750;
	line-height: 1.25;
	color: var(--text-primary);
}
.discover-quiz-opt-tile br { display: none; }
@media (hover: hover) {
.discover-quiz-opt-tile:hover:not(:disabled) {
	transform: translateY(-2px);
	border-color: var(--purple-border);
	box-shadow: 0 16px 32px -16px rgba(124,58,237,0.55);
}
}
.discover-quiz-opt-tile.chosen {
	background: linear-gradient(135deg, var(--purple), #6d28d9) !important;
	color: #fff !important;
	border-color: transparent !important;
}
.discover-quiz-opt-tile.chosen .dqo-media img,
.discover-quiz-opt-tile.chosen img { opacity: 0.82; }
.discover-quiz-opt-tile.chosen .dqo-cap { color: #fff; }

@media (max-width: 540px) {
	.discover-quiz-options.discover-quiz-options-tiles,
	.discover-quiz-options.is-grid { gap: 10px; }
	.discover-quiz-opt-tile { font-size: 13px; }
	.discover-quiz-opt-tile .dqo-cap { padding: 8px 10px; font-size: 12.5px; }
}

html.light-mode .discover-quiz-card.discover-quiz-card-ongoing {
	background: linear-gradient(180deg, #f0fbfd 0%, #faf7ff 100%);
}
html.light-mode .discover-quiz-opt-tile { background: #ffffff; color: #1a0f2e; }
html.light-mode .discover-quiz-opt-tile .dqo-cap { color: #1a0f2e; }
html.light-mode .discover-quiz-opt-tile.chosen .dqo-cap { color: #fff; }

/* ============================================================
   V6.8 patch 8 — Connect strip + Save button
   ============================================================ */

/* CONNECT STRIP (#1) */
.connect-strip-wrap {
	margin: 0 0 26px;
	padding: 16px 18px 18px;
	background: linear-gradient(180deg, rgba(124,58,237,0.08), rgba(124,58,237,0.02));
	border: 1px solid var(--purple-border, rgba(124,58,237,0.28));
	border-radius: 18px;
}
.connect-strip-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.connect-strip-title {
	font-size: 1.15rem; font-weight: 700;
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--text-primary); margin: 0;
}
.connect-strip-title i { color: var(--purple); }
.connect-strip-sub { font-size: .82rem; color: var(--text-secondary); }

.connect-row { margin-top: 14px; }
.connect-row-head {
	display: flex; align-items: center; gap: 8px;
	font-size: .76rem; font-weight: 700;
	letter-spacing: .07em; text-transform: uppercase;
	color: var(--text-secondary); margin-bottom: 8px;
}
.connect-row-head i { color: var(--purple); }
.connect-row-more {
	margin-left: auto;
	font-size: .72rem; font-weight: 700;
	color: var(--purple) !important; text-decoration: none !important;
	display: inline-flex; align-items: center; gap: 4px;
	letter-spacing: .04em;
}
.connect-row-more:hover { color: var(--purple-light, #a78bfa) !important; }
.connect-row-tiles {
	display: flex; gap: 12px;
	overflow-x: scroll; overflow-y: hidden;
	padding: 4px 4px 14px;
	scroll-snap-type: x mandatory;
	/* V6.8 patch 18 — make the horizontal scrollbar persistent so users
	   know the row is scrollable on hover-less devices. Firefox: thin +
	   colored. WebKit: explicit thumb/track shown always (not auto). */
	scrollbar-width: thin;
	scrollbar-color: rgba(124,58,237,0.55) rgba(255,255,255,0.06);
}
.connect-row-tiles::-webkit-scrollbar { height: 10px; }
.connect-row-tiles::-webkit-scrollbar-track {
	background: rgba(255,255,255,0.06);
	border-radius: 6px;
}
.connect-row-tiles::-webkit-scrollbar-thumb {
	background: rgba(124,58,237,0.55);
	border-radius: 6px;
	border: 2px solid transparent;
	background-clip: padding-box;
}
.connect-row-tiles::-webkit-scrollbar-thumb:hover {
	background: rgba(124,58,237,0.85);
	background-clip: padding-box;
}

.connect-tile {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 200px;
	padding: 14px 12px 12px;
	background: var(--surface, rgba(255,255,255,0.04));
	border: 1px solid var(--border, rgba(255,255,255,0.08));
	border-radius: 14px;
	display: flex; flex-direction: column; gap: 10px;
	color: var(--text-primary) !important;
	text-decoration: none !important;
	transition: transform .15s, border-color .15s, background .15s;
}
.connect-tile:hover {
	transform: translateY(-2px);
	border-color: var(--purple-border, rgba(124,58,237,0.45));
	background: rgba(124,58,237,0.06);
}
.connect-tile-top {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.connect-tile-avatar {
	display: inline-block;
	border-radius: 50%;
	overflow: hidden;
}
.connect-tile-avatar img {
	width: 56px; height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(124,58,237,0.4);
	display: block;
}
.connect-tile-avatar-hidden img {
	filter: grayscale(0.4);
	opacity: 0.85;
}
.connect-tile-name {
	font-size: .85rem; font-weight: 600;
	text-align: center;
	max-width: 100%;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	line-height: 1.2;
}
.connect-tile-name .hub-loc { display: none; }  /* keep tiles compact */
.connect-tile-pct {
	font-size: .7rem; font-weight: 700;
	letter-spacing: .03em;
	padding: 3px 10px;
	border-radius: 99px;
	background: rgba(255,255,255,0.06);
	white-space: nowrap;
}
.connect-tile-pct-high  { background: rgba(34,197,94,0.18);  color: #22c55e; }
.connect-tile-pct-mid   { background: rgba(245,158,11,0.18); color: #f59e0b; }
.connect-tile-pct-low   { background: rgba(249,115,22,0.18);  color: #f97316; }
.connect-tile-pct-fresh { background: rgba(124,58,237,0.18); color: var(--purple); }

/* Action chips inside each Connect tile (Follow / Profile / Message) */
.connect-tile-actions {
	display: flex; flex-direction: column; gap: 6px;
	margin-top: 2px;
}
.connect-tile-act {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 6px;
	padding: 7px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.10);
	background: rgba(255,255,255,0.03);
	color: var(--text-primary) !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: inherit;
}
.connect-tile-act:hover {
	background: rgba(124,58,237,0.14);
	border-color: rgba(124,58,237,0.45);
	color: #fff !important;
	transform: translateY(-1px);
}
.connect-tile-act.connect-tile-following {
	background: rgba(124,58,237,0.20);
	border-color: rgba(124,58,237,0.55);
	color: #d8c8ff !important;
}
.connect-tile-act:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 600px) {
	.connect-strip-wrap { padding: 12px 12px 14px; border-radius: 14px; }
	.connect-tile { width: 170px; padding: 12px 10px 10px; }
	.connect-tile-avatar img { width: 50px; height: 50px; }
	.connect-tile-act { font-size: 11.5px; padding: 6px 9px; }
}

/* SAVE BUTTON (#9) */
.discover-card-save {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px; height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(0,0,0,0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: rgba(255,255,255,0.9);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: all 0.18s var(--ease);
	z-index: 4;
	font-size: 13px;
}
/* When the pct chip is also showing in top-right, push the save button left of it. */
.discover-card-item .discover-card-media .discover-card-pct + .discover-card-save,
.discover-card-item .discover-card-media .discover-card-save:has(+ .discover-card-pct) {
	right: 90px;
}
.discover-card-item .discover-card-media:has(.discover-card-pct) .discover-card-save {
	right: 90px;
}
.discover-card-save:hover { transform: scale(1.1); background: rgba(124,58,237,0.85); }
.discover-card-save.saved { background: var(--purple); color: #fff; }
.discover-card-save.saved:hover { background: var(--purple-dark, #6d28d9); }
.discover-card-save:disabled { opacity: 0.6; cursor: default; }
/* AI banner variant — sit on the gradient banner itself, top-right */
.discover-card-save-onbanner {
	top: 8px; right: 8px;
	background: rgba(0,0,0,0.4);
}
.discover-card-save-onbanner.saved { background: rgba(255,255,255,0.92); color: var(--purple); }

/* SAVED-tab empty state */
.discover-empty-saved {
	background: rgba(124,58,237,0.05);
	border: 1px dashed rgba(124,58,237,0.32);
	border-radius: 16px;
	padding: 30px 20px;
	text-align: center;
}

html.light-mode .connect-strip-wrap { background: linear-gradient(180deg, rgba(124,58,237,0.04), rgba(124,58,237,0.0)); }
html.light-mode .discover-card-save { background: rgba(0,0,0,0.6); }
html.light-mode .discover-card-save.saved { background: var(--purple); }

/* ============================================================
   V6.8 patch 9 — Connect as its own tab (fuller layout)
   ============================================================ */
.connect-tab-page {
	margin-top: 18px;
	padding: 24px 22px 26px;
	background: linear-gradient(180deg, rgba(124,58,237,0.10), rgba(124,58,237,0.02));
}
.connect-tab-page .connect-strip-title {
	font-size: 1.55rem;
	margin-bottom: 2px;
}
.connect-tab-page .connect-strip-sub {
	font-size: .92rem;
	color: var(--text-secondary);
}
.connect-tab-page .connect-row {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(124,58,237,0.18);
}
.connect-tab-page .connect-row:first-of-type {
	border-top: 0;
	margin-top: 8px;
	padding-top: 0;
}
.connect-tab-page .connect-row-head {
	font-size: .9rem;
	margin-bottom: 12px;
}
/* Bigger tiles on the dedicated tab */
.connect-tab-page .connect-tile {
	width: 150px;
	padding: 14px 12px;
}
.connect-tab-page .connect-tile-avatar img {
	width: 64px; height: 64px;
}
.connect-tab-page .connect-tile-name {
	font-size: .88rem;
}
.connect-tab-page .connect-tile-pct {
	font-size: .72rem;
}
.connect-tab-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid rgba(124,58,237,0.18);
}
@media (max-width: 600px) {
	.connect-tab-page { padding: 16px 14px 18px; }
	.connect-tab-page .connect-strip-title { font-size: 1.25rem; }
	.connect-tab-page .connect-tile { width: 120px; padding: 10px 8px; }
	.connect-tab-page .connect-tile-avatar img { width: 52px; height: 52px; }
}

/* ============================================================
   V6.8 patch 8 — Live coin counter flash (#8)
   The original nav-coin-pill was reverted in patch 9; the flash
   keyframe still applies to any [data-coin-counter] element that
   gets updated by WeirdPulse.applyCoin(n).
   ============================================================ */
.coin-pulse-flash {
	animation: coin-pulse-flash 0.6s ease-out;
}
@keyframes coin-pulse-flash {
	0%   { transform: scale(1); color: inherit; }
	30%  { transform: scale(1.18); color: #fde047; text-shadow: 0 0 12px rgba(253,224,71,0.7); }
	100% { transform: scale(1); color: inherit; }
}

/* ============================================================
   V6.8 patch 10 — Discover-style sub-pages
   Tiny back-arrow chip in the slim .discover-bar so movies.php /
   tv.php / music.php / travel.php / local.php can lead with a
   compact "← Movies" header that matches Discover's chrome.
   ============================================================ */
.discover-bar-left {
	display: inline-flex; align-items: center; gap: 10px;
}
.discover-bar-back {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: rgba(124,58,237,0.14);
	color: var(--purple) !important;
	border: 1px solid rgba(124,58,237,0.28);
	transition: all 0.15s var(--ease);
	text-decoration: none !important;
}
.discover-bar-back:hover {
	background: var(--purple);
	color: #fff !important;
	transform: translateX(-2px);
}
html.light-mode .discover-bar-back {
	background: rgba(124,58,237,0.10);
}


/* ===========================================================
   V6.8 patch 11 — Mobile compaction for Discover + sub-pages
   ----------------------------------------------------------
   On phones the chrome (slim bar + 11-tab nav + section header
   + 2 filter pillrows) was eating the whole viewport above the
   fold, pushing the actual cards way down. Switch wrapping rows
   to horizontal scroll, shrink type, drop redundant padding.
   =========================================================== */
@media (max-width: 640px) {
  /* TABS — single horizontal scroll row instead of 3-col wrap grid.
     Slim purple scrollbar + double-edge fade make scrollability obvious. */
  .discover-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    margin-bottom: 14px;
    padding: 5px 10px 7px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(124,58,237,0.45) transparent;
    /* fade BOTH edges so hidden content on either side is implied */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }
  .discover-tabs::-webkit-scrollbar { height: 4px; }
  .discover-tabs::-webkit-scrollbar-thumb {
    background: rgba(124,58,237,0.55); border-radius: 4px;
  }
  .discover-tabs::-webkit-scrollbar-track { background: transparent; }
  .discover-tab {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 13px;
    gap: 6px;
    scroll-snap-align: start;
  }
  .discover-tab i { font-size: 12px; }

  /* DISCOVER BAR — slimmer & stats become a one-row scroller. */
  .discover-bar {
    padding: 10px 12px !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .discover-bar-back { width: 32px; height: 32px; font-size: 13px; }
  .discover-bar-title { font-size: 16px !important; gap: 6px; }
  .discover-bar-title i { font-size: 16px !important; }
  .discover-bar-stats {
    margin-left: 0;
    width: 100%;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px !important;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
  }
  .discover-bar-stats::-webkit-scrollbar { display: none; }
  .discover-bar-stat {
    flex: 0 0 auto;
    font-size: 11.5px !important;
    padding: 4px 10px !important;
  }

  /* SECTION HEADER — smaller h2, descriptor de-emphasised. */
  .discover-section { margin-bottom: 24px; }
  .discover-section-head { gap: 4px 10px; margin-bottom: 12px; }
  .discover-section-head h2 { font-size: 18px !important; line-height: 1.2; }
  .discover-section-sub { font-size: 12px; line-height: 1.3; }

  /* SUB-PAGE TOOLBAR & PILLROWS — horizontal scroll, no wrap. */
  .subpage-toolbar { margin: 8px 0 12px !important; gap: 8px !important; }
  .subpage-toolbar form.subpage-search { min-width: 0 !important; }
  .subpage-toolbar .subpage-search input[type="text"] {
    padding: 8px 14px !important; font-size: 14px;
  }
  .subpage-toolbar .subpage-search button {
    padding: 8px 14px !important;
  }
  .subpage-pillrow {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(124,58,237,0.45) transparent;
    margin-bottom: 8px !important;
    padding-bottom: 4px;
    scroll-padding-inline: 18px;
    /* fade BOTH edges so users see there's more to scroll on either side */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }
  .subpage-pillrow::-webkit-scrollbar { height: 3px; }
  .subpage-pillrow::-webkit-scrollbar-thumb {
    background: rgba(124,58,237,0.45); border-radius: 3px;
  }
  .subpage-pillrow::-webkit-scrollbar-track { background: transparent; }
  .subpage-pillrow-label {
    flex: 0 0 auto;
    font-size: .68rem !important;
    padding: 4px 4px 4px 0 !important;
  }
  .subpage-pill {
    flex: 0 0 auto;
    font-size: .78rem !important;
    padding: 5px 11px !important;
  }
  .subpage-result-meta { font-size: .78rem; margin-bottom: 8px; }
  .subpage-pager a, .subpage-pager span {
    padding: 6px 10px;
    min-width: 32px;
    font-size: .82rem;
  }
}

/* Even tighter on small phones. */
@media (max-width: 420px) {
  .discover-bar-title { font-size: 15px !important; }
  .discover-bar-stat { font-size: 11px !important; padding: 3px 9px !important; }
  .discover-tab { padding: 6px 10px; font-size: 12.5px; }
}

/* ===========================================================
   V6.8 patch 12 — Mobile scroll-discoverability
   ----------------------------------------------------------
   Add a once-per-page "nudge" animation to scrollable rows so
   users see them peek-scroll right then back, plus a small
   chevron hint on tab rows that overflow. Only fires on
   touch + ≤640px so desktop behaviour is unchanged.
   =========================================================== */
@media (max-width: 640px) {
  /* one-shot peek animation: slides 20px right, settles back. */
  @keyframes scrollNudge {
    0%   { transform: translateX(0); }
    35%  { transform: translateX(-22px); }
    70%  { transform: translateX(0); }
    100% { transform: translateX(0); }
  }
  .scroll-nudge > * { animation: scrollNudge 1.4s ease-in-out 0.6s 1 both; }

  /* When a row is overflowed, optionally show a small chevron at the
     trailing edge. Activated only when JS adds .has-overflow class. */
  .has-overflow-right { position: relative; }
  .has-overflow-right::after {
    content: '';
    position: absolute;
    right: 2px; top: 50%;
    width: 18px; height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background: rgba(124,58,237,0.85);
    /* embed a chevron-right glyph via mask */
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 3l5 5-5 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 10px 10px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 3l5 5-5 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 10px 10px no-repeat;
    pointer-events: none;
    animation: chevPulse 2s ease-in-out infinite;
    z-index: 4;
  }
  @keyframes chevPulse {
    0%, 100% { opacity: 0.55; transform: translateX(0); }
    50%      { opacity: 1;    transform: translateX(3px); }
  }

  /* respect users who don't want motion */
  @media (prefers-reduced-motion: reduce) {
    .scroll-nudge > * { animation: none !important; }
    .has-overflow-right::after { animation: none !important; opacity: 0.7 !important; }
  }
}

/* ===========================================================
   V6.8 patch 13 — Mobile dropdown filters
   ----------------------------------------------------------
   On mobile, audience+genre pillrows wasted 2 rows of vertical
   space and hid options behind a horizontal scroll. Replace
   with native <select>-backed chips ("Audience: Anyone ▾").
   Native picker = familiar, accessible, zero scroll.
   =========================================================== */
.subpage-filters-mobile { display: none; }

@media (max-width: 640px) {
  /* Hide the pill version of FILTER rows only (audience + genre).
     The .discover-tabs nav row is unaffected — it stays scrollable. */
  .subpage-pillrow-filter { display: none !important; }

  /* Show the dropdown row */
  .subpage-filters-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
  }
  .subpage-select-chip {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 32px 8px 12px;
    border-radius: 999px;
    background: rgba(124,58,237,0.10);
    border: 1px solid rgba(124,58,237,0.28);
    cursor: pointer;
    transition: all .15s var(--ease);
  }
  .subpage-select-chip:focus-within,
  .subpage-select-chip:active {
    border-color: var(--purple);
    background: rgba(124,58,237,0.18);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
  }
  .subpage-select-chip-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-secondary);
    flex-shrink: 0;
  }
  /* V6.8 patch 128 — visible label span (shows current selected option). */
  .subpage-select-chip-val {
    flex: 1 1 0;
    min-width: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
  }
  /* V6.8 patch 128 — overlay the <select> on the FULL chip area (incl. padding
     + caret) so iOS Safari taps anywhere on the chip reliably open the native
     picker. Prior layout (select as a flex sibling) sometimes failed to
     forward padding-area taps to the inner control. opacity:0 keeps the chip
     visual driven by .subpage-select-chip-val + .subpage-select-chip-caret;
     iOS picker still uses the <option> text for the wheel display. */
  .subpage-select-chip select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    /* iOS auto-zooms inputs with font-size < 16px on focus; lock to 16. */
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
  }
  .subpage-select-chip select option {
    color: var(--text-primary);
    background: var(--surface, #1a1625);
  }
  /* V6.8 patch 25 — disabled first option acts as picker header. */
  .subpage-select-chip select option:disabled {
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .85rem;
  }
  .subpage-select-chip-caret {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--purple);
    pointer-events: none;
    z-index: 1;
  }
}

/* Light-mode tint for the chip */
html.light-mode .subpage-select-chip {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.22);
}
html.light-mode .subpage-select-chip select option {
  background: #ffffff;
}

/* ===========================================================
   V6.8 patch 14 — Tighter nav-to-content gap + mobile padding
   ----------------------------------------------------------
   Was 120px main padding-top + 20px wrapper padding = 140px of
   dead space below an 80px header. Now 96 + 8 = 104px on
   desktop, with a smaller bump on phones.
   =========================================================== */
@media (max-width: 640px) {
  main { padding-top: 76px !important; }
  .wrapper { padding: 4px 0 !important; }
  /* Ensure the discover-wrap doesn't add an extra 32+ buffer that
     was visible above the .discover-bar */
  .discover-wrap { padding-top: 4px !important; }
}

/* V6.8 patch 14 — fallback open state when Bootstrap collapse JS
   isn't wired up (e.g. messages.php's BS5 vs nav's BS4 attrs). */
.collapse.navbar-collapse.navbar-open-fallback {
  display: block !important;
  height: auto !important;
}

/* ============================================================
   V6.8 patch 16 — Stream tab merge + Skip control + obvious
   rated state + mobile card-foot fix
   ------------------------------------------------------------
   1) Stream filter chips (top/opposites/follow on the new
      single Stream tab that replaces For You + Feed).
   2) `.discover-skip` button — small "Not interested" eye-slash
      icon that lives left of the up/down thumbs.
   3) Whole-card visual when the user has already rated
      (.discover-card.rated.rated-up / .rated-down): tinted
      green/coral border, prominent ✓ badge in the foot prompt.
   4) Mobile breakpoint fix: card-foot wraps so the 3 action
      buttons + prompt don't overflow on phones.
   ============================================================ */

/* (1) Stream filter chips — sit right below the .discover-tabs nav */
.stream-filters {
	display: flex;
	gap: 8px;
	margin: 0 0 14px;
	padding: 4px 2px 6px;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 16px;
	scrollbar-width: thin;
	scrollbar-color: rgba(124,58,237,0.45) transparent;
	/* V6.8 patch 31 — fade only the right edge so the leftmost "All" pill
	   stays solid and readable. Right-edge fade still hints at scrollability. */
	mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 18px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 18px), transparent 100%);
}
.stream-filters::-webkit-scrollbar { height: 4px; }
.stream-filters::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.45); border-radius: 999px; }
.stream-filter {
	display: inline-flex; align-items: center; gap: 6px;
	flex: 0 0 auto;
	scroll-snap-align: start;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(124,58,237,0.10);
	border: 1px solid rgba(124,58,237,0.32);
	/* V6.8 patch 32 — was --text-secondary (mid-grey) which got washed out on
	   the purple-tinted background; bump to primary for full contrast. */
	color: var(--text-primary);
	font-size: 13px; font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.stream-filter:hover { background: rgba(124,58,237,0.22); border-color: rgba(124,58,237,0.55); color: var(--text-primary); }
.stream-filter.active {
	/* Brighter purple gradient + heavier weight + glow so the active pill
	   reads loud against any neighbouring tile background. */
	background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 60%, #6d28d9 100%);
	border-color: #a78bfa;
	color: #fff !important;
	font-weight: 700;
	box-shadow: 0 6px 22px rgba(124,58,237,0.45);
}
.stream-filter.active i { color: #fff; }
html.light-mode .stream-filter { background: rgba(124,58,237,0.16); color: #2b2350; border-color: rgba(124,58,237,0.40); }
/* V6.8 patch 69 — light-mode bug fix. The `html.light-mode .stream-filter` rule
   above ties on specificity (0,2,0) with `.stream-filter.active` and wins by
   source order, which silently reset the active pill's gradient back to the
   soft purple wash and left WHITE TEXT on a near-white background (invisible).
   Restate the gradient + border + glow here so the active pill stays loud in
   light mode too. */
html.light-mode .stream-filter.active {
	background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 60%, #6d28d9 100%);
	border-color: #6d28d9;
	color: #fff !important;
	box-shadow: 0 6px 22px rgba(124,58,237,0.35);
}
html.light-mode .stream-filter.active i { color: #fff; }
html.light-mode .stream-filter:hover { background: rgba(124,58,237,0.18); border-color: rgba(124,58,237,0.55); color: #2b2350; }
html.light-mode .stream-filter.active:hover { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 60%, #6d28d9 100%); color: #fff !important; }

/* (2) Skip "Not interested" button — eye-slash icon */
.discover-skip {
	width: 32px; height: 32px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-raised);
	color: var(--text-muted);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: all 0.18s var(--ease);
	font-size: 12px;
	flex-shrink: 0;
}
.discover-skip:hover:not(:disabled) {
	background: rgba(255,255,255,0.06);
	color: var(--text-primary);
	transform: scale(1.07);
}
.discover-skip:disabled { opacity: 0.4; cursor: default; }
html.light-mode .discover-skip { background: #f1f5f9; border-color: rgba(15,23,42,0.08); color: #64748b; }

/* V6.8 patch 156 — shopping cards: the thumbnail and the title both
   link out to the Amazon Associates affiliate URL. The image wrapper
   is a block-level <a> that fills the .discover-card-media frame, so
   the entire thumbnail is clickable. A small Amazon "a." badge in the
   corner advertises the destination (no separate buy button). */
.discover-card-media .discover-card-shop-link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}
.discover-card-media .discover-card-shop-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.32s cubic-bezier(.2,.7,.3,1);
}
.discover-card-media .discover-card-shop-link:hover img,
.discover-card-media .discover-card-shop-link:focus-visible img {
	transform: scale(1.04);
}
.discover-card-media .discover-card-shop-link:focus-visible {
	outline: 2px solid rgba(255,153,0,0.85);
	outline-offset: -2px;
}
.discover-card-shop-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	min-width: 30px;
	height: 26px;
	padding: 0 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255,153,0,0.95);
	color: #1a1a1a;
	font-size: 13px;
	box-shadow: 0 6px 18px -8px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.18) inset;
	pointer-events: none;
	transition: transform 0.18s ease, background 0.18s ease;
	z-index: 3;
}
.discover-card-media .discover-card-shop-link:hover .discover-card-shop-badge,
.discover-card-media .discover-card-shop-link:focus-visible .discover-card-shop-badge {
	background: #ff9900;
	transform: scale(1.08);
}
/* Title link: inherit the h3's typography, just add hover affordance. */
.discover-card-title .discover-card-shop-title {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}
.discover-card-title .discover-card-shop-title:hover,
.discover-card-title .discover-card-shop-title:focus-visible {
	color: #ff9900;
	text-decoration: underline;
	text-underline-offset: 3px;
}
html.light-mode .discover-card-title .discover-card-shop-title:hover,
html.light-mode .discover-card-title .discover-card-shop-title:focus-visible {
	color: #d97706;
}

/* Card-title LINKS (web-content `discover-card-detail-title`, shopping
   `discover-card-shop-title`) inherit the global `.wrapper a { color:
   var(--purple) !important }` (0,1,1) rule, which paints them brand-purple —
   unreadable on the dark card surface (purple-on-navy). Pin them to the card
   title colour like the non-link titles, with a readable hover. Scope
   `.wrapper a.<class>` = (0,2,1) so it beats `.wrapper a` = (0,1,1) even with
   both !important. */
.wrapper a.discover-card-detail-title {
	color: var(--text-primary) !important;
	text-decoration: none;
	transition: color 0.18s ease;
}
.wrapper a.discover-card-detail-title:hover,
.wrapper a.discover-card-detail-title:focus-visible {
	color: #c4b5fd !important; /* readable lavender on the dark card */
	text-decoration: underline;
	text-underline-offset: 3px;
}
html.light-mode .wrapper a.discover-card-detail-title {
	color: var(--text-primary) !important;
}
html.light-mode .wrapper a.discover-card-detail-title:hover,
html.light-mode .wrapper a.discover-card-detail-title:focus-visible {
	color: #6d28d9 !important; /* readable purple on light */
}
/* Shopping titles share the same latent bug; pin the resting colour while
   keeping the Amazon-orange hover (restated !important so it still wins). */
.wrapper a.discover-card-shop-title {
	color: var(--text-primary) !important;
}
.wrapper a.discover-card-shop-title:hover,
.wrapper a.discover-card-shop-title:focus-visible {
	color: #ff9900 !important;
}
html.light-mode .wrapper a.discover-card-shop-title:hover,
html.light-mode .wrapper a.discover-card-shop-title:focus-visible {
	color: #d97706 !important;
}

/* (3) Whole-card "I rated this" treatment for item + social cards.
       AI cards already have their own .ai-stat-mine badge in the
       stats row, so we leave them alone here. */
.discover-card-item.rated, .discover-card-social.rated {
	position: relative;
}
.discover-card-item.rated-up, .discover-card-social.rated-up {
	border-color: rgba(34,197,94,0.45);
	box-shadow: 0 0 0 1px rgba(34,197,94,0.25), 0 6px 18px rgba(34,197,94,0.10);
}
.discover-card-item.rated-neutral, .discover-card-social.rated-neutral {
	border-color: rgba(245,158,11,0.48);
	box-shadow: 0 0 0 1px rgba(245,158,11,0.26), 0 6px 18px rgba(245,158,11,0.10);
}
.discover-card-item.rated-down, .discover-card-social.rated-down {
	border-color: rgba(220,38,38,0.45);
	box-shadow: 0 0 0 1px rgba(220,38,38,0.25), 0 6px 18px rgba(220,38,38,0.10);
}
/* Subtle banner stripe across the top of rated cards */
.discover-card.rated::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--green);
	opacity: 0.85;
	z-index: 2;
}
.discover-card.rated-down::before { background: #dc2626; }
.discover-card.rated-neutral::before { background: #f59e0b; }
/* The category-tinted top border defined elsewhere uses `border-top: 3px`,
   so suppress it on rated cards (the coloured stripe replaces it). */
.discover-card-item.rated { border-top-color: transparent !important; }
/* Foot prompt becomes the rated badge — clearly green/coral with checkmark */
.discover-card.rated-up .discover-card-prompt {
	color: var(--green);
	font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.discover-card.rated-neutral .discover-card-prompt {
	color: #f59e0b;
	font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.discover-card.rated-down .discover-card-prompt {
	color: #dc2626;
	font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.discover-card.rated-up .discover-card-prompt i,
.discover-card.rated-neutral .discover-card-prompt i,
.discover-card.rated-down .discover-card-prompt i { font-size: 11px; }
/* Hide skip on rated cards — the rating already filters it from future fetches */
.discover-card.rated .discover-skip { display: none; }
/* Pulse the rated card briefly when it first gets the class via JS */
@keyframes ratedFlashUp {
	0%   { box-shadow: 0 0 0 1px rgba(34,197,94,0.25); }
	50%  { box-shadow: 0 0 0 4px rgba(34,197,94,0.45), 0 8px 24px rgba(34,197,94,0.30); }
	100% { box-shadow: 0 0 0 1px rgba(34,197,94,0.25), 0 6px 18px rgba(34,197,94,0.10); }
}
@keyframes ratedFlashDown {
	0%   { box-shadow: 0 0 0 1px rgba(220,38,38,0.25); }
	50%  { box-shadow: 0 0 0 4px rgba(220,38,38,0.45), 0 8px 24px rgba(220,38,38,0.30); }
	100% { box-shadow: 0 0 0 1px rgba(220,38,38,0.25), 0 6px 18px rgba(220,38,38,0.10); }
}
@keyframes ratedFlashNeutral {
	0%   { box-shadow: 0 0 0 1px rgba(245,158,11,0.25); }
	50%  { box-shadow: 0 0 0 4px rgba(245,158,11,0.42), 0 8px 24px rgba(245,158,11,0.28); }
	100% { box-shadow: 0 0 0 1px rgba(245,158,11,0.26), 0 6px 18px rgba(245,158,11,0.10); }
}
.discover-card.rated-up   { animation: ratedFlashUp   0.7s ease 1; }
.discover-card.rated-neutral { animation: ratedFlashNeutral 0.7s ease 1; }
.discover-card.rated-down { animation: ratedFlashDown 0.7s ease 1; }

/* (4) Mobile fixes — already stacked from desktop now; just tighten spacing
       and shrink the circular controls so 3 buttons fit on tiny phones. */
@media (max-width: 640px) {
	.discover-card-foot {
		gap: 6px;
		padding-top: 8px;
	}
	.discover-card-prompt {
		font-size: 11.5px;
	}
	.discover-card-actions {
		gap: 6px;
	}
	/* Slightly smaller circular controls on phones (was 36×36 → 32×32) */
	.discover-rate { width: 32px; height: 32px; font-size: 13px; }
	.discover-skip { width: 30px; height: 30px; font-size: 11px; }
	/* Top-corner badges: only pct sits opposite the cat tag now
	   (save moved into actions row in patch 47). */
	.discover-card-tag, .discover-card-pct {
		font-size: 10px;
		padding: 4px 8px;
		top: 8px;
	}
	.discover-card-tag { left: 8px; }
	.discover-card-pct { right: 8px; }
	.discover-card-save {
		top: 8px; right: 8px;
		width: 28px; height: 28px;
	}
	/* Larger AI banner save lifted similarly */
	.discover-card-save.discover-card-save-onbanner {
		top: 8px; right: 8px;
	}
	/* Body text smaller, tighter padding so card has less vertical bulk */
	.discover-card-body { padding: 12px; gap: 6px; }
	.discover-card-title { font-size: 15px; }
	.discover-card-desc  { font-size: 12.5px; line-height: 1.4; }
	.discover-card-meta  { font-size: 11.5px; }
	/* AI card stats wrap properly */
	.discover-card-ai-stats { font-size: 11.5px; gap: 8px; }
	.discover-card-ai-stats .rated { margin-left: 0; }
	/* AI try button shrinks a hair */
	.discover-card-try { font-size: 12px !important; padding: 7px 12px !important; }
	/* Section heading drops the trailing "Browse all" link to next line so it
	   doesn't push the h2 off-screen */
	.discover-section-head { flex-wrap: wrap; gap: 6px; }
	.discover-section-more { width: 100%; justify-content: flex-start; font-size: 12px; }
	/* Stream filter chip row — match other mobile chip rows */
	.stream-filter { font-size: 12.5px; padding: 6px 11px; }
	.stream-filters { gap: 6px; padding-bottom: 4px; }
}

/* Even tighter on tiny phones — 3 buttons fit without wrap below 380px */
@media (max-width: 380px) {
	.discover-rate { width: 30px; height: 30px; font-size: 12px; }
	.discover-skip { width: 28px; height: 28px; font-size: 10px; }
	.discover-card-actions { gap: 4px; }
	.discover-card-pct { right: 40px; }
}

/* =============================================================
   V6.8 patch 17 — Hidden-items tab + persistent skip surface
   ============================================================= */

/* Small numeric badge next to "Hidden" tab label */
.discover-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	padding: 0 6px;
	height: 18px;
	margin-left: 4px;
	border-radius: 999px;
	background: rgba(124, 58, 237, 0.22);
	border: 1px solid rgba(124, 58, 237, 0.45);
	color: #d8c8ff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.discover-tab.active .discover-tab-count {
	background: rgba(255,255,255,0.16);
	border-color: rgba(255,255,255,0.28);
	color: #fff;
}

/* Hidden tab — cards rendered with a "Show again" CTA in the foot */
.discover-card.discover-card-hidden {
	opacity: 0.78;
	border-color: rgba(255,255,255,0.08);
}
.discover-card.discover-card-hidden:hover {
	opacity: 1;
}
.discover-card.discover-card-hidden .discover-card-prompt {
	color: var(--text-secondary, #aaa);
}
.discover-card.discover-card-hidden .discover-card-prompt i {
	margin-right: 4px;
}

/* Show-again button — full-width pill, not a circle, since it replaces
   the up/down/skip cluster entirely. */
.discover-unhide {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(124, 58, 237, 0.45);
	background: rgba(124, 58, 237, 0.16);
	color: #d8c8ff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}
.discover-unhide:hover {
	background: rgba(124, 58, 237, 0.32);
	border-color: rgba(124, 58, 237, 0.7);
	color: #fff;
}
.discover-unhide:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Hidden-tab grid layout matches discover-stream; no size override needed. */

@media (max-width: 640px) {
	.discover-tab-count { min-width: 16px; height: 16px; font-size: 10px; padding: 0 5px; }
	.discover-unhide { font-size: 12px; padding: 7px 12px; }
}

/* =============================================================
   V6.8 patch 18 — Connect heading + persistent scrollbar +
   priv-aware avatar / profile-link suppression on friends.php
   ============================================================= */

/* friends.php top heading — match the discover-bar / connect-strip pattern */
.connect-page-head {
	margin: 14px 0 18px;
	padding: 16px 20px;
	background: linear-gradient(180deg, rgba(124,58,237,0.10), rgba(124,58,237,0.02));
	border: 1px solid var(--border, rgba(255,255,255,0.10));
	border-radius: 16px;
}
.connect-page-head .connect-strip-head {
	margin-bottom: 0;
}
.connect-page-head .connect-strip-title {
	font-size: 1.4rem;
	margin: 0 0 4px;
}
.connect-page-head .connect-strip-sub {
	font-size: .88rem;
	color: var(--text-secondary, rgba(255,255,255,0.65));
}

@media (max-width: 600px) {
	.connect-page-head { padding: 14px 16px; border-radius: 14px; }
	.connect-page-head .connect-strip-title { font-size: 1.18rem; }
	.connect-page-head .connect-strip-sub { font-size: .8rem; }
}

/* Hidden-user avatar treatment on legacy friends.php cards too */
.card .avatar-hidden img,
.card a.avatar-hidden img {
	filter: grayscale(0.4);
	opacity: 0.85;
}

/* =============================================================
   V6.8 patch 19 — Connect heading unification (matches other
   discover-section headings) + horizontal action chips on
   friends.php cards.
   ============================================================= */

/* Connect tab on discover.php now uses .discover-section markup like every
   other category. Drop the surrounding purple-tinted card box and let the
   .discover-section-head h2 + sub-text speak for itself, identical to
	Movies / TV / Music / Travel / Local. Nothing extra needed here. */
.connect-section .connect-row {
	margin-top: 18px;
}
.connect-section .connect-row + .connect-row {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(124,58,237,0.18);
}
.connect-section .connect-tab-foot {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(124,58,237,0.18);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

/* Horizontal action-chip layout for friends.php cards (and anywhere else
   with enough width for chips to sit side-by-side). */
.connect-tile-actions-row {
	flex-direction: row !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 8px;
	padding: 0 6px 6px;
}
.connect-tile-actions-row .connect-tile-act {
	flex: 1 1 auto;
	min-width: 0;
	padding: 7px 10px;
	font-size: 12px;
}

/* Friends.php legacy `.card.jumpa` cells now host chip actions. Make sure
   the chip text inherits the dark/light theme correctly and isn't crushed
   by Bootstrap's text-center utilities. */
.card.jumpa .connect-tile-actions-row {
	justify-content: center;
}
@media (max-width: 480px) {
	.connect-tile-actions-row .connect-tile-act {
		flex: 1 1 100%;
		font-size: 12px;
	}
}

/* =============================================================
   V6.8 patch 20 — friends.php sub-page chrome + grid tile
   Wraps the legacy Bootstrap layout in the same .discover-wrap /
   .discover-bar / .discover-tabs chrome used by movies.php, tv.php,
   etc. (via subpage.php). Cards become full-width connect-tiles
   that fit the .discover-stream auto-fill grid.
   ============================================================= */

/* Stream grid for friends.php — same auto-fill behaviour as the rest
   of the discover sub-pages, but tuned for the people-tile aspect ratio
   (taller minimum so name + 3 chips don't crowd). */
.connect-stream {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	margin-top: 16px;
}
@media (min-width: 1100px) {
	/* V6.8 patch 29 — fill the wider container instead of capping at 280px. */
	.connect-stream { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* Connect-tile in grid mode — overrides the horizontal-scroll
   defaults (fixed 200px width, scroll-snap) so it can fill a grid cell. */
.connect-tile-grid {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	scroll-snap-align: none;
}
.connect-tile-grid .connect-tile-top {
	gap: 8px;
}
.connect-tile-grid .connect-tile-avatar img {
	width: 64px;
	height: 64px;
}
.connect-tile-grid .connect-tile-name .hub-loc {
	display: inline;
	font-weight: 400;
	color: var(--text-secondary, rgba(255,255,255,0.6));
	font-size: .78rem;
}
.connect-tile-grid .connect-tile-name {
	white-space: normal;        /* allow wrap on grid card */
	overflow: visible;
	text-overflow: clip;
	line-height: 1.3;
}
.connect-tile-meta {
	font-size: .72rem;
	color: var(--text-muted, rgba(255,255,255,0.5));
	letter-spacing: .03em;
}

/* Friends.php legacy filter rows — keep the existing form markup but
   reshape it visually so it sits inside the discover-wrap without
   colliding with the new chrome. */
.discover-wrap .row.box2 {
	background: rgba(124,58,237,0.04);
	border: 1px solid rgba(124,58,237,0.18);
	border-radius: 14px;
	margin: 12px 0 18px !important;
	padding: 14px 12px !important;
}
.discover-wrap .custom-select.purplesel {
	border-color: var(--purple) !important;
}
.discover-wrap .box .input {
	max-width: 480px;
}

@media (max-width: 600px) {
	.connect-stream { grid-template-columns: 1fr 1fr; gap: 12px; }
	.connect-tile-grid .connect-tile-avatar img { width: 56px; height: 56px; }
}
@media (max-width: 380px) {
	.connect-stream { grid-template-columns: 1fr; }
}

/* =============================================================
   V6.8 patch 21 — Connect chip parity, smaller meta, more spacing,
   "Discover" branding on sub-pages, glass behind Connect hub.
   ============================================================= */

/* (#1) Follow chip styling parity. The default `.connect-tile-act`
   colored anchors as purple (via the `.wrapper a` killer rule) but
   buttons stayed white — making Follow look mismatched next to
   Profile/Message in light AND dark mode. Force purple text + purple
   icon on every chip in the default state so all three look identical;
   the .connect-tile-following modifier still wins for the active state.
   Specificity is bumped (.connect-tile-actions descendant) to beat the
   .wrapper a !important killer. */
.connect-tile-actions .connect-tile-act,
.connect-tile-actions-row .connect-tile-act {
	color: var(--purple) !important;
	background: rgba(124,58,237,0.06);
	border-color: rgba(124,58,237,0.22);
}
.connect-tile-actions .connect-tile-act i,
.connect-tile-actions-row .connect-tile-act i {
	color: var(--purple) !important;
}
.connect-tile-actions .connect-tile-act:hover,
.connect-tile-actions-row .connect-tile-act:hover {
	color: #fff !important;
	background: rgba(124,58,237,0.22);
	border-color: rgba(124,58,237,0.55);
}
.connect-tile-actions .connect-tile-act:hover i,
.connect-tile-actions-row .connect-tile-act:hover i {
	color: #fff !important;
}
/* Active "Following" — keep distinct: filled purple chip, light text. */
.connect-tile-actions .connect-tile-act.connect-tile-following,
.connect-tile-actions-row .connect-tile-act.connect-tile-following {
	color: #fff !important;
	background: var(--purple);
	border-color: var(--purple);
}
.connect-tile-actions .connect-tile-act.connect-tile-following i,
.connect-tile-actions-row .connect-tile-act.connect-tile-following i {
	color: #fff !important;
}
.connect-tile-actions .connect-tile-act.connect-tile-following:hover,
.connect-tile-actions-row .connect-tile-act.connect-tile-following:hover {
	background: #6d28d9; /* slightly darker purple */
	border-color: #6d28d9;
}
/* Light-mode tweak — soften the purple-on-white default a hair so chips
   read as outline rather than solid. */
html.light-mode .connect-tile-actions .connect-tile-act,
html.light-mode .connect-tile-actions-row .connect-tile-act {
	background: rgba(124,58,237,0.05);
	border-color: rgba(124,58,237,0.28);
}

/* (#2) Smaller "Based on N answers" meta line. Was .72rem and looked
   chunky on light mode where it competed with the name. Shrink + lower
   contrast so it reads as a footnote. Spacing pulled tighter against
   the pct chip. Applies on both surfaces (discover hub + friends.php). */
.connect-tile .connect-tile-meta {
	font-size: 11px;
	line-height: 1.3;
	margin-top: 4px;
	color: var(--text-secondary, rgba(255,255,255,0.55));
	letter-spacing: 0;
	font-weight: 500;
	opacity: 0.85;
}
html.light-mode .connect-tile .connect-tile-meta {
	color: rgba(0,0,0,0.55);
}

/* (#3) More breathing room between Connect cards on sub-pages. The
   16px gap looked cramped/unfinished. Bump to 22px and add bottom
   padding so the last row doesn't sit flush against the pagination. */
.connect-stream {
	gap: 22px;
	padding-bottom: 8px;
}
@media (min-width: 1100px) {
	.connect-stream { gap: 24px; }
}
@media (max-width: 600px) {
	.connect-stream { gap: 14px; }
}
/* Generic discover sub-page streams (movies/tv/music/travel/local) also
   benefit from a hair more space between cards. */
.discover-stream { gap: 22px; }
@media (min-width: 1100px) {
	.discover-stream { gap: 24px; }
}
@media (max-width: 600px) {
	.discover-stream { gap: 14px; }
}

/* (#5) Glass card behind the discover.php Connect hub. The .connect-section
   was sitting on the raw page background which made the heading + tile rows
   feel ungrounded. Wrap it in a soft purple-tinted glass surface that
   matches subpage.php's .row.box2 filter card aesthetic. */
.discover-section.connect-section {
	background:
		linear-gradient(135deg, rgba(124,58,237,0.06) 0%, rgba(249,115,22,0.04) 50%, rgba(6,182,212,0.04) 100%),
		var(--surface, rgba(255,255,255,0.02));
	border: 1px solid var(--border, rgba(255,255,255,0.06));
	border-radius: 18px;
	padding: 18px 18px 22px;
	margin-top: 18px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 8px 24px -16px rgba(0,0,0,0.5);
}
.discover-section.connect-section .discover-section-head {
	margin-bottom: 4px;
}
.discover-section.connect-section .connect-row-head {
	color: var(--text-secondary, rgba(255,255,255,0.6));
	letter-spacing: 0.06em;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 600;
}
@media (max-width: 600px) {
	.discover-section.connect-section { padding: 14px 12px 16px; border-radius: 14px; }
}
html.light-mode .discover-section.connect-section {
	background:
		linear-gradient(135deg, rgba(124,58,237,0.05) 0%, rgba(249,115,22,0.03) 50%, rgba(6,182,212,0.03) 100%),
		rgba(255,255,255,0.7);
	border-color: rgba(124,58,237,0.14);
}

/* (#4) "Discover" branding in the sub-page top bar. The category label
   was being shown twice — once in the header bar AND again in the
   .discover-section-head h2 right below. The bar now reads
   "Discover" + cat icon (set by the PHP). Style tweak: keep the icon
   accent but tighten the spacing to feel less repetitive. */
.discover-bar .discover-bar-title { letter-spacing: -0.01em; }

/* ==========================================================
   V6.8 patch 38 — discover/subpage card fixes
   1) titles never truncated
   2) action buttons centred (incl. new follow on social cards)
   3) "You [coloured-thumb] this" rated prompt
   4) (PHP-side) skip duplicate-of-meta blurbs
   5) mobile fixes — pct/save no-overlap + smaller music tile
   6) full-poster movies/tv on subpage (only crop on mixed stream)
   ========================================================== */

/* (1) — never clamp the card title; let the full name show. */
.discover-card-title {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: unset !important;
	overflow: visible !important;
}
.discover-card-social-title {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: unset !important;
	overflow: visible !important;
	white-space: normal;
}

/* (2) — center the actions row across all cards. */
.discover-card-actions {
	justify-content: center !important;
}

/* (2) — follow button on social cards is icon-only and matches the
   .discover-rate footprint so the four buttons read as a centred row. */
.discover-card-actions .discover-follow {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-raised);
	color: var(--text-secondary);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: all 0.2s var(--ease);
	font-size: 14px;
	flex-shrink: 0;
}
.discover-card-actions .discover-follow:not(:disabled):hover {
	transform: scale(1.07);
	background: rgba(124,58,237,0.18);
	color: var(--purple);
	border-color: var(--purple);
}
.discover-card-actions .discover-follow.connect-tile-following {
	background: var(--purple);
	color: #fff;
	border-color: var(--purple);
	box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
}
.discover-card-actions .discover-follow.connect-tile-following:hover {
	background: var(--purple);
	color: #fff;
}

/* (3) — coloured-thumb verb in the rated prompt. */
.discover-card-prompt {
	text-align: center;
}
.discover-prompt-icon {
	font-size: 14px;
	vertical-align: -1px;
	margin: 0 3px;
}
.discover-prompt-icon.up   { color: var(--green); }
.discover-prompt-icon.neutral { color: #f59e0b; }
.discover-prompt-icon.down { color: var(--coral); }

/* (6) — Subpages and single-cat discover tabs (no [data-mixed]) get the
   full poster aspect for movies/tv. The mixed stream keeps the short
   16/10 banner crop with hover unfurl. */
.discover-stream:not([data-mixed]) .discover-card-item[data-cat="movies"] .discover-card-media,
.discover-stream:not([data-mixed]) .discover-card-item[data-cat="tv"]     .discover-card-media {
	aspect-ratio: 2 / 3;
	max-height: none;
	transition: none;
}
.discover-stream:not([data-mixed]) .discover-card-item[data-cat="movies"] .discover-card-media img,
.discover-stream:not([data-mixed]) .discover-card-item[data-cat="tv"]     .discover-card-media img {
	object-fit: cover;
}
/* Disable the hover-unfurl on non-mixed grids since the poster is already
   full size — keep it for the discover stream. */
.discover-stream:not([data-mixed]) .discover-card-item[data-cat="movies"]:hover .discover-card-media,
.discover-stream:not([data-mixed]) .discover-card-item[data-cat="tv"]:hover     .discover-card-media {
	aspect-ratio: 2 / 3;
	max-height: none;
}
.discover-stream:not([data-mixed]) .discover-card-item[data-cat="movies"]:hover .discover-card-media img,
.discover-stream:not([data-mixed]) .discover-card-item[data-cat="tv"]:hover     .discover-card-media img {
	object-fit: cover;
}

/* (5) — mobile fixes for discover/subpage cards. */
@media (max-width: 600px) {
	/* Music's square 1:1 was eating the entire viewport on mobile.
	   Cap height so cards stay scannable without having to scroll
	   per card. */
	.discover-card-item[data-cat="music"] .discover-card-media {
		aspect-ratio: 16 / 7;
		max-height: 160px;
	}
	/* Hard-stop the pct/save overlap: shrink the chip on mobile and
	   force the save offset with high specificity so any later rule
	   can't undo it. */
	.discover-card-pct {
		font-size: 10px;
		padding: 3px 7px;
		max-width: none;
		white-space: nowrap;
		overflow: visible;
		text-overflow: clip;
	}
	.discover-card-item .discover-card-media .discover-card-pct + .discover-card-save {
		right: 96px !important;
	}
	.discover-card-save {
		z-index: 5;
	}
	/* Tighten the action row spacing so 4 centred buttons fit on the
	   narrowest phones without wrapping. */
	.discover-card-actions {
		gap: 6px;
		flex-wrap: wrap;
	}
	/* Reduce body padding so we get more room for the title. */
	.discover-card-body {
		padding: 12px 12px 14px;
	}
	/* On the discover stream, even mixed mode, keep the movies/tv crop
	   short so the grid scrolls fast — but make sure the hover unfurl
	   doesn't fire on touch (handled by :hover requiring a pointer). */
}

/* V6.9 patch 294 — generated music fallback artwork is landscape and
   crop-safe. In app/tablet/mobile views, keep music media compact and
   centered so fallback art and real artist photos do not become huge slabs. */
@media (max-width: 900px) {
	.discover-card-item[data-cat="music"] .discover-card-media {
		aspect-ratio: 16 / 7 !important;
		max-height: 170px !important;
	}
	.discover-card-item[data-cat="music"] .discover-card-media img,
	.discover-card-item[data-cat="music"] .discover-card-media .meme-zoom-trigger img {
		object-position: center center !important;
	}
}

/* ==========================================================
   V6.8 patch 39 — site-wide UX audit fixes
   1) Messages: mobile pane-switching (list ↔ thread) so the long
      conversation list stops dominating phone screens, and a back
      button on the thread head returns to the list.
   2) Messages: stronger active-tab contrast on phones so users can
      actually see whether they're on Inbox / Sent / Help.
   3) Top nav: visual indicator of the current page so users always
      know which section they're on.
   4) Theme toggle: aria-pressed surface, no behavioural change.
   ========================================================== */

/* (1) — Messages mobile pane-switch. Desktop: both panes side-by-side
   (unchanged). Phones (≤860px): show ONLY the pane that matches the
   shell's data-mobile-pane attribute. The rule has higher specificity
   than the existing 70vh cap so the list can scroll naturally. */
@media (max-width: 860px) {
	.msg-shell { gap: 0; }
	.msg-shell[data-mobile-pane="list"]   .msg-thread  { display: none; }
	.msg-shell[data-mobile-pane="thread"] .msg-sidebar { display: none; }
	/* V207 polish — was 60vh min-height which created a huge empty dead-zone
	   below the inbox list on tablet (60vh of 1180px = ~708px, content ~250px).
	   Drop to a sensible 280px so the list sizes to its content but still has
	   presence when empty. */
	.msg-shell .msg-sidebar {
		max-height: none;
		min-height: 280px;
	}
	.msg-shell .msg-thread { min-height: 40vh; }
	.msg-thread-body {
		max-height: none !important;
		min-height: 200px !important;
	}
}

/* (1) — Back-arrow on the thread header, mobile only. */
.msg-thread-back {
	display: none;
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-raised);
	color: var(--text-secondary);
	cursor: pointer;
	margin-right: 4px;
	flex-shrink: 0;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.msg-thread-back:hover {
	background: rgba(124,58,237,0.18);
	color: var(--purple);
	transform: translateX(-1px);
}
@media (max-width: 860px) {
	.msg-thread-back { display: inline-flex; align-items: center; justify-content: center; }
}

/* (2) — Stronger active-tab styling on phones. The default gradient
   pill can wash out on small screens; bump font weight, add a brighter
   ring, and dim the inactive tabs more so the contrast is unmistakable. */
@media (max-width: 600px) {
	.msg-side-tabs button {
		font-size: 13px;
		padding: 9px 8px;
	}
	.msg-side-tabs button:not(.is-active) {
		color: var(--text-secondary);
		opacity: 0.65;
	}
	.msg-side-tabs button.is-active {
		font-weight: 700;
		box-shadow: 0 6px 18px -8px rgba(124,58,237,0.85),
		            0 0 0 2px rgba(255,255,255,0.06) inset;
	}
}

/* (3) — Top-nav active-page indicator. Adds a subtle purple wash and
   underline to the link representing the current section so users
   always know where they are without reading the URL. */
.navbar-nav .nav-link.user.is-active {
	color: var(--purple) !important;
	background: rgba(124,58,237,0.10);
	border-radius: 999px;
	position: relative;
}
.navbar-nav .nav-link.user.is-active i {
	color: var(--purple) !important;
}
@media (min-width: 992px) {
	.navbar-nav a.nav-link.user.is-active::after {
		content: "";
		position: absolute;
		left: 18px; right: 18px; bottom: 6px;
		height: 2px;
		background: linear-gradient(90deg, var(--purple), #f97316);
		border-radius: 2px;
	}
	#sticky-header .weird-nav-explore-menu > summary.nav-link::after {
		display: none !important;
		content: none !important;
	}
	#sticky-header .weird-nav-explore-menu > summary.nav-link.is-active::before {
		content: "";
		position: absolute;
		left: 18px; right: 18px; bottom: 6px;
		height: 2px;
		background: linear-gradient(90deg, var(--purple), #f97316);
		border-radius: 2px;
	}
}

/* =================================================================
   V6.8 patch 40 — site-wide UX audit follow-up
   1) Skip-link for keyboard users
   2) :focus-visible outlines on .nav-link.user
   3) Empty-state pattern (friends.php, messages sidebar)
   4) Sidebar long-name truncation already present; ensure flex min-width
   5) Light-mode overrides for hard-coded surfaces (.msg-shell,
      .msg-sidebar, .msg-thread, .msg-side-tabs, .msg-thread-body,
      .connect-tile, .subpage-pill, hub-stat) so every dark surface
      flips cleanly when the user picks light mode or their OS prefers it.
   ================================================================= */

/* (1) Skip-link
   V6.8 patch 41 — bullet-proof visually-hidden pattern. The previous
   `left: -9999px` approach left the link visible on register.php in
   some browser/viewport combos because positioning context could be
   defeated by ancestor styles. clip + clip-path + 1px size is the
   WAI-ARIA recommended pattern and renders nothing until :focus. */
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	z-index: 100000;
}
.skip-link:focus {
	position: fixed;
	width: auto;
	height: auto;
	padding: 10px 16px;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
	left: 12px;
	top: 12px;
	background: var(--purple, #7c3aed);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* (2) Keyboard focus rings */
.navbar-nav .nav-link.user:focus-visible,
.theme-toggle:focus-visible,
.theme-toggle-mobile:focus-visible,
.navbar-toggler:focus-visible,
.msg-thread-back:focus-visible,
.msg-side-tabs button:focus-visible {
	outline: 2px solid var(--purple, #7c3aed);
	outline-offset: 2px;
	border-radius: 8px;
}

/* (3) Generic empty-state pattern */
.empty-state {
	width: 100%;
	max-width: 540px;
	margin: 24px auto 32px;
	padding: 28px 24px;
	text-align: center;
	background: rgba(124, 58, 237, 0.06);
	border: 1px dashed rgba(124, 58, 237, 0.35);
	border-radius: 14px;
	color: var(--text-primary);
}
.empty-state i { color: var(--purple, #7c3aed); margin-bottom: 12px; opacity: 0.85; }
.empty-state h3 { margin: 6px 0 6px; font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.empty-state p  { margin: 0 0 14px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.4; }
.empty-state-btn,
.empty-state-btn-secondary {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none !important;
	margin: 4px 4px 0;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.empty-state-btn {
	background: var(--purple, #7c3aed);
	color: #fff !important;
	box-shadow: 0 6px 18px -8px rgba(124,58,237,0.85);
}
.empty-state-btn:hover { transform: translateY(-1px); }
.empty-state-btn-secondary {
	background: transparent;
	border: 1px solid var(--border, rgba(255,255,255,0.18));
	color: var(--text-primary) !important;
}
.empty-state-btn-secondary:hover { background: rgba(124,58,237,0.10); }
html.light-mode .empty-state { background: rgba(124, 58, 237, 0.05); border-color: rgba(124, 58, 237, 0.30); }
html.light-mode .empty-state-btn-secondary { border-color: rgba(0,0,0,0.14); }

/* Messages sidebar empty CTA — uses .msg-side-empty wrapper */
.msg-side-empty {
	padding: 28px 18px;
	text-align: center;
	color: var(--text-secondary);
}
.msg-side-empty i { color: var(--purple, #7c3aed); margin-bottom: 10px; opacity: 0.85; }
.msg-side-empty h4 { margin: 4px 0 6px; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.msg-side-empty p { margin: 0 0 12px; font-size: 0.85rem; line-height: 1.4; }
.msg-side-empty-btn,
.msg-side-empty-btn-secondary {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	margin: 6px 0 0;
	transition: transform 0.15s ease, background 0.2s ease;
}
.msg-side-empty-btn {
	background: var(--purple, #7c3aed);
	color: #fff !important;
	box-shadow: 0 6px 14px -6px rgba(124,58,237,0.75);
}
.msg-side-empty-btn:hover { transform: translateY(-1px); }
.msg-side-empty-btn-secondary {
	color: var(--text-secondary) !important;
	background: transparent;
}
.msg-side-empty-btn-secondary:hover { background: rgba(124,58,237,0.08); color: var(--text-primary) !important; }

/* (4) Defensive truncation parent — prevent flex-children from forcing overflow */
.msg-side-card { min-width: 0; }
.msg-side-card-body { min-width: 0; flex: 1 1 auto; }
.msg-side-card-name { max-width: 100%; }

/* (5) Light-mode parity for messages chrome (lots of inline rgba(255,255,255,...) surfaces) */
html.light-mode .msg-shell,
html.light-mode .msg-sidebar,
html.light-mode .msg-thread,
html.light-mode .msg-thread-body,
html.light-mode .msg-thread-head,
html.light-mode .msg-side-tabs,
html.light-mode .msg-side-card {
	background: #fff;
	color: var(--text-primary);
	border-color: rgba(0,0,0,0.08);
}
html.light-mode .msg-shell { background: #faf9ff; }
html.light-mode .msg-side-card:hover { background: rgba(124,58,237,0.06); }
html.light-mode .msg-side-card.is-active { background: rgba(124,58,237,0.12); }
html.light-mode .msg-side-tabs button { color: #4a3f6b; }
html.light-mode .msg-side-tabs button:not(.is-active) { color: #6b5e88; }
html.light-mode .msg-side-tabs button.is-active { color: var(--purple); background: rgba(124,58,237,0.12); }
html.light-mode .msg-thread-back { background: #fff; border-color: rgba(0,0,0,0.10); color: var(--text-secondary); }
html.light-mode .msg-thread-back:hover { background: rgba(124,58,237,0.08); color: var(--purple); }

/* Light-mode parity for connect tiles + subpage pills (catch hard-coded rgba whites) */
html.light-mode .connect-tile,
html.light-mode .subpage-pill {
	background: #fff;
	border-color: rgba(0,0,0,0.10);
	color: var(--text-primary);
}
html.light-mode .subpage-pill:hover { background: rgba(124,58,237,0.06); border-color: rgba(124,58,237,0.30); }

/* Light-mode parity for the Discover hub stats pill (rgba bg) */
html.light-mode .discover-bar-stat,
html.light-mode .hub-stat {
	background: #fff;
	border-color: rgba(0,0,0,0.08);
	color: var(--text-primary);
}

/* Light-mode parity for the subpage search input (rgba surface) */
html.light-mode .subpage-toolbar .subpage-search input[type="text"] {
	background: #fff;
	border-color: rgba(0,0,0,0.12);
	color: var(--text-primary);
}

/* =================================================================
   V6.8 patch 41 — Auth pages (login / register / forgot) redesigned
   to match the Account page (.acct-card) language. The old screens
   had inline 80%-wide centered <div class="wrapper"> with a giant
   slider hero and ad-hoc Bootstrap input-groups. New shell:

	   .auth-wrap (≤ .discover-wrap)
	     └ .discover-bar (page title)
	     └ .auth-shell  (centered, max 720px on login/forgot;
	                     max 920px on register)
	         └ .auth-card (mirrors .acct-card visual)
	            └ .auth-card-head (h2 + sub-paragraph)
	            └ .auth-fields (column of .auth-field rows)
	            └ .auth-actions (right-aligned button row)
	     └ .auth-meta  (links to forgot / register / login)

   Every input is a pill (.auth-input), labels live above, errors
   live below, and the submit button reuses the .acct-save gradient.
   ================================================================= */

.auth-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 12px 16px 56px;
}
/* V6.8 patch 46 — auth-shell now spans the full .auth-wrap so the auth-card
   and auth-meta render at the same width as the .discover-bar heading. */
.auth-shell {
	max-width: none;
	margin: 0 auto;
}
.auth-shell.is-wide {
	max-width: none;
}
.auth-card {
	background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(249,115,22,0.04), rgba(6,182,212,0.04)), var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 26px clamp(18px, 3vw, 30px) 28px;
	box-shadow: 0 8px 24px -16px rgba(0,0,0,0.5);
	text-align: left;
	margin-bottom: 18px;
}
.auth-card-head { margin: 0 0 6px; }
.auth-card-head h2 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 4px;
	letter-spacing: -0.01em;
	display: inline-flex; align-items: center; gap: 8px;
}
.auth-card-head h2 i { color: var(--purple); }
.auth-card-sub {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 18px;
}
.auth-fields { display: flex; flex-direction: column; gap: 14px; }
.auth-field  { display: flex; flex-direction: column; gap: 6px; }
.auth-field-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}
@media (min-width: 640px) {
	.auth-field-row.cols-2 { grid-template-columns: 1fr 1fr; }
}
.auth-field-label {
	font-size: 13px; font-weight: 600;
	color: var(--text-secondary);
	letter-spacing: 0.02em;
	display: inline-flex; align-items: center; gap: 6px;
}
.auth-field-label i { color: var(--purple); width: 16px; text-align: center; }
.auth-input {
	width: 100%;
	padding: 12px 16px;
	border-radius: 999px;
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	background: var(--surface, rgba(255,255,255,0.04));
	color: var(--text-primary);
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	box-sizing: border-box;
}
.auth-input:focus {
	border-color: var(--purple);
	box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.auth-input.is-invalid { border-color: #f97316; }
html.light-mode .auth-input {
	background: #fff;
	border-color: rgba(0,0,0,0.12);
	color: var(--text-primary, #1a1330);
}
.auth-field-err {
	color: #f97316;
	font-size: 12px;
	margin: 2px 4px 0;
	display: block;
}
.auth-field-err a { color: #f97316; text-decoration: underline; }

/* Decade slider + range styling (register) */
.auth-decade-row { display: flex; align-items: baseline; gap: 14px; margin: 4px 4px 8px; }
.auth-decade {
	font-size: 24px;
	font-weight: 800;
	color: var(--purple);
	font-family: 'Space Grotesk', sans-serif;
}
.auth-decade-hint { color: var(--text-secondary); font-size: 12px; }
.auth-card input[type=range].auth-range {
	-webkit-appearance: none; appearance: none;
	width: 100%; height: 6px; border-radius: 999px;
	background: linear-gradient(to right, rgba(124,58,237,0.7), rgba(249,115,22,0.5));
	outline: none; margin: 6px 0 4px;
}
.auth-card input[type=range].auth-range::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--purple); border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
	cursor: pointer;
}
.auth-card input[type=range].auth-range::-moz-range-thumb {
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--purple); border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
	cursor: pointer;
}

/* Privacy radio cards (register) */
.auth-priv { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .auth-priv { grid-template-columns: 1fr 1fr; } }
.auth-priv label.auth-priv-opt {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 14px 16px; border-radius: 14px;
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	background: rgba(124,58,237,0.06);
	cursor: pointer; margin: 0;
	transition: border-color .15s ease, background-color .15s ease;
}
.auth-priv label.auth-priv-opt:hover { border-color: var(--purple); }
.auth-priv input[type=radio] { accent-color: var(--purple); margin-top: 3px; }
.auth-priv-opt-title { display:block; font-weight: 700; color: var(--text-primary); font-size: 14px; }
.auth-priv-opt-desc  { display:block; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Interest pills (register) */
.auth-interests {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}
.auth-interests label.auth-interest {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 14px; border-radius: 999px;
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	background: rgba(124,58,237,0.06);
	color: var(--text-primary);
	cursor: pointer; margin: 0; font-size: 13px;
	font-weight: 600;
	transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.auth-interests label.auth-interest:hover { border-color: var(--purple); transform: translateY(-1px); }
.auth-interests label.auth-interest.is-active,
.auth-interests label.auth-interest.active {
	background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(249,115,22,0.16));
	border-color: var(--purple);
	color: var(--text-primary);
}
.auth-interests label.auth-interest input { display: none; }
.auth-interests label.auth-interest i { color: var(--purple); }
.auth-interests label.auth-interest.is-active i,
.auth-interests label.auth-interest.active i { color: var(--purple); }

/* Avatar grid (register) */
.auth-avatars {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
	gap: 8px;
	max-height: 280px;
	overflow-y: auto;
	padding: 12px;
	border-radius: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid var(--border, rgba(255,255,255,0.10));
	scrollbar-width: thin;
	scrollbar-color: rgba(124,58,237,0.5) transparent;
}
.auth-avatars::-webkit-scrollbar { width: 8px; }
.auth-avatars::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.5); border-radius: 999px; }
.auth-avatars label.auth-avatar-opt {
	cursor: pointer;
	border-radius: 12px;
	padding: 4px;
	border: 2px solid transparent;
	transition: border-color .15s ease, transform .15s ease, background-color .15s ease;
	display: block;
	margin: 0;
}
.auth-avatars label.auth-avatar-opt:hover { transform: scale(1.05); border-color: rgba(124,58,237,0.5); }
.auth-avatars label.auth-avatar-opt.is-active {
	border-color: var(--purple);
	background: rgba(124,58,237,0.18);
	box-shadow: 0 0 0 1px rgba(124,58,237,0.4);
}
.auth-avatars img { width: 100%; aspect-ratio: 1/1; display: block; border-radius: 8px; }
.auth-avatars input[type=radio] { display: none; }

/* Action buttons */
.auth-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 6px;
	flex-wrap: wrap;
}
.auth-btn-primary {
	background: linear-gradient(135deg, var(--purple), #f97316) !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 30px !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	cursor: pointer;
	box-shadow: 0 6px 18px -8px rgba(124,58,237,0.6);
	font-size: 14px;
	display: inline-flex; align-items: center; gap: 8px;
	font-family: inherit;
	transition: transform .12s ease;
}
.auth-btn-primary:hover { transform: translateY(-1px); color: #fff !important; }
.auth-btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Inline alerts (logout banner, login error, code-not-matched) */
.auth-alert {
	border-radius: 14px;
	padding: 14px 18px;
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.5;
	display: flex; align-items: flex-start; gap: 10px;
	border: 1px solid transparent;
}
.auth-alert i { margin-top: 2px; flex-shrink: 0; }
.auth-alert a { font-weight: 700; text-decoration: underline; }
.auth-alert.is-info {
	background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.10));
	border-color: rgba(124,58,237,0.35);
	color: var(--text-primary);
}
.auth-alert.is-info i, .auth-alert.is-info a { color: var(--purple); }
.auth-alert.is-warn {
	background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(249,115,22,0.10));
	border-color: rgba(245,158,11,0.45);
	color: var(--text-primary);
}
.auth-alert.is-warn i { color: #f59e0b; }
.auth-alert.is-warn a { color: var(--text-primary); }
.auth-alert.is-error {
	background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(124,58,237,0.10));
	border-color: rgba(249,115,22,0.45);
	color: var(--text-primary);
}
.auth-alert.is-error i, .auth-alert.is-error a { color: #f97316; }
.auth-alert.is-success {
	background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(124,58,237,0.10));
	border-color: rgba(34,197,94,0.45);
	color: var(--text-primary);
}
.auth-alert.is-success i { color: #22c55e; }

/* Footer meta links under the card */
.auth-meta {
	text-align: center;
	color: var(--text-secondary);
	font-size: 14px;
	margin-top: 12px;
	display: flex; flex-direction: column; gap: 8px;
	align-items: center;
}
.auth-meta a {
	color: var(--purple);
	font-weight: 600;
	text-decoration: none;
}
.auth-meta a:hover { text-decoration: underline; }
.auth-meta-row { display: inline-flex; align-items: center; gap: 8px; }
.auth-meta-row i { color: var(--purple); }

/* Terms reminder block on register */
.auth-terms-note {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 14px;
	line-height: 1.5;
	text-align: center;
}
.auth-terms-note a { color: var(--purple); font-weight: 600; }

/* Light-mode parity for auth surfaces */
html.light-mode .auth-card {
	background: #fff;
	border-color: rgba(0,0,0,0.08);
	box-shadow: 0 8px 24px -16px rgba(0,0,0,0.15);
}
html.light-mode .auth-priv label.auth-priv-opt {
	background: rgba(124,58,237,0.05);
	border-color: rgba(0,0,0,0.10);
}
html.light-mode .auth-interests label.auth-interest {
	background: rgba(124,58,237,0.05);
	border-color: rgba(0,0,0,0.10);
	color: var(--text-primary);
}
html.light-mode .auth-avatars {
	background: rgba(124,58,237,0.04);
	border-color: rgba(0,0,0,0.10);
}
html.light-mode .auth-alert.is-info,
html.light-mode .auth-alert.is-warn,
html.light-mode .auth-alert.is-error,
html.light-mode .auth-alert.is-success { color: var(--text-primary, #1a1330); }

/* Hide the legacy hero slider on the auth pages — we now use .discover-bar */
.auth-wrap .slider-area,
body.auth-page .slider-area { display: none !important; }

/* =================================================================
   V6.8 patch 42 (revised in patch 51) — Cat-tag overflow fix
   The two media-corner controls (.discover-card-tag at top-left and
   .discover-card-pct at top-right) are absolutely positioned. When
	the badge label is long ("Destinations" for Places > travel rows),
	the tag would overrun the pct chip on narrow cards.

   Original patch 42 reserved 144px assuming save+pct were both in
   the corner. V6.8 patch 47 moved save out of the corner into the
	actions row, so only pct sits opposite the tag. The old
   144px reserve was capping the tag at ~101px on a 245px desktop
   card, slicing "Destinations" → "Destinatio".

   Patch 51 (May 2026) corrections:
	  1. Reserve enough room for the lone pct chip in the corner.
     2. Switch .discover-card-tag from inline-flex to inline-block
        so text-overflow:ellipsis actually engages — flex anonymous
        text nodes block ellipsis from rendering.
     3. The icon swaps from `gap` to `margin-right` + vertical-align.
   ================================================================= */
.discover-card-tag {
	display: inline-block;
	max-width: calc(100% - 128px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	z-index: 4;
	box-sizing: border-box;
	vertical-align: top;
}
.discover-card-tag > i {
	margin-right: 5px;
	vertical-align: -1px;
}
/* No pct chip → only the card's own padding to clear. */
.discover-card-item .discover-card-media:not(:has(.discover-card-pct)) .discover-card-tag {
	max-width: calc(100% - 28px);
}
@media (max-width: 640px) {
	.discover-card-tag {
		max-width: calc(100% - 128px);
	}
	.discover-card-item .discover-card-media:not(:has(.discover-card-pct)) .discover-card-tag {
		max-width: calc(100% - 24px);
	}
	/* Tighten the pct chip on narrow cards without dropping the vote count. */
	.discover-card-pct {
		max-width: none;
	}
}
@media (max-width: 380px) {
	.discover-card-tag {
		max-width: calc(100% - 124px);
		font-size: 9.5px;
		padding: 3px 7px;
	}
	.discover-card-pct {
		max-width: none;
		right: 8px;
		font-size: 9.5px;
		padding: 3px 6px;
	}
}

/* Social cards on phones: the name + "67% match" pill row could
   overlap when the name was long. Let the match pill drop to its
   own line under the name. */
@media (max-width: 640px) {
	.discover-card-social-name {
		display: flex;
		flex-wrap: wrap;
		row-gap: 4px;
		column-gap: 6px;
		align-items: center;
	}
	.discover-card-social-name .discover-match-pct {
		flex: 0 0 auto;
	}
}

/* =============================================================
   V6.8 patch 44 — Mobile audit pass.
   On phones every page was bleeding off the right edge: card grids
   running into the second column with no breathing room, the Discover
   tab strip overshooting the viewport, and the wide 1320px container
   nudging body-scroll-width past 100vw. This block adds a strict
   "nothing escapes the viewport" guard, single-column card grids
   below 480px, and a hair more breathing room around section chrome.
   ============================================================= */
@media (max-width: 640px) {
	html, body { max-width: 100vw; overflow-x: hidden; }
	main { padding-left: 0 !important; padding-right: 0 !important; }
	main > .container { padding-left: 12px !important; padding-right: 12px !important; max-width: 100vw !important; }
	.discover-wrap { padding-left: 12px; padding-right: 12px; max-width: 100vw; }

	/* Discover stream + connect stream go single column on real phones
	   so the cards have enough width for the title + thumbnail without
	   the right column getting clipped off-screen. The earlier 600px
	   minmax(160px,1fr) was making 2 cols that overshot the .discover-wrap
	   inside a 100vw container. */
	.discover-stream { grid-template-columns: 1fr !important; gap: 14px !important; }
	.connect-stream  { grid-template-columns: 1fr !important; gap: 14px !important; }

	/* Hero text shrink so the headline doesn't try to wrap into an
	   awkward third line. */
	.discover-hero { padding: 24px 18px !important; margin-bottom: 18px !important; }
	.discover-hero h1 { font-size: 24px !important; margin-bottom: 8px !important; }
	.discover-hero p { font-size: 14px !important; margin-bottom: 14px !important; }
	.discover-stats { gap: 14px !important; }
	.discover-stat { min-width: 0 !important; }
	.discover-stat strong { font-size: 22px !important; }
	.discover-stat span { font-size: 11px !important; }

	/* Section heading row — drop the "see all" link onto its own line
	   below the title instead of overflowing right when the title is
	   long ("Find your Taste Twins" + "More"). */
	.discover-section-head { gap: 6px !important; }
	.discover-section-head h2 { font-size: 18px !important; }
	.discover-section-more { margin-left: 0 !important; font-size: 13px !important; }

	/* Subpage toolbars (movies/tv/etc.) — keep search + filter chips
	   contained, no horizontal jitter from a single oversize select. */
	.subpage-toolbar { flex-wrap: wrap !important; }
	.subpage-toolbar form.subpage-search { width: 100% !important; flex: 1 1 100% !important; }

	/* Tables and code blocks on legacy pages (terms/privacy) often
	   forced horizontal scroll. Force them to wrap. */
	pre, code { white-space: pre-wrap !important; word-break: break-word !important; }
	.wrapper, .wrapper > * { max-width: 100%; }

	/* Connect tile in grid mode — ensure the fixed 200px tile fallback
	   never sneaks in on mobile and the avatar+name+chips column always
	   fits the cell. */
	.connect-tile-grid { width: 100% !important; min-width: 0 !important; }

	/* Profile page legacy grid — long usernames + meta lines were
	   pushing the .profilebar wider than the screen. */
	.profilebar, .profileb, .matchbar { max-width: 100% !important; }
	.profileb img { max-width: 100% !important; height: auto !important; }
}

@media (max-width: 480px) {
	/* Tighten card body type so a 360px wide tile still reads cleanly. */
	.discover-card-body { padding: 12px 12px 14px !important; gap: 6px !important; }
	.discover-card-title { font-size: 15px !important; }
	.discover-card-desc { font-size: 12.5px !important; -webkit-line-clamp: 2 !important; line-clamp: 2 !important; }

	/* Discover slim-bar stat pills — let them wrap onto two rows
	   instead of horizontal-scrolling off-screen. */
	.discover-bar { flex-wrap: wrap !important; row-gap: 6px !important; }

	/* Messages — sidebar list stays scrollable; avoid the
	   conversation header overlapping the back chevron. */
	.msg-thread-head { padding: 10px 12px !important; gap: 8px !important; }
	.msg-thread-head .msg-thread-title { font-size: 15px !important; min-width: 0 !important; }
}

/* =============================================================
   V6.8 patch 44b — Mobile audit pass, harder overflow guards.
   The first pass (44) wasn't enough on subpages (movies/places/
   editinfo). The poster cards still bled past the right edge,
   the discover-bar stats stayed on one row, and the subpage
   toolbar's min-width:220px search input pushed past 100vw.
   This block clamps everything inside main to 100% width with
   box-sizing:border-box, lets the discover-bar stats wrap at the
   wider 640px breakpoint (was 600px which the screenshots failed),
   and adds an explicit min-width:0 reset on flex children so the
   intrinsic content size doesn't expand them past the cell.
   ============================================================= */
@media (max-width: 640px) {
	/* Universal flex-child reset: stop intrinsic content from
	   blowing out flex parents. The single biggest cause of right-
	   edge clipping on the subpage browse pages. */
	main .subpage-toolbar,
	main .subpage-toolbar > *,
	main .discover-bar,
	main .discover-bar > *,
	main .discover-card,
	main .discover-card *,
	main .acct-form,
	main .acct-form > *,
	main .matchbar,
	main .profilebar,
	main .msg-shell,
	main .msg-shell > * { min-width: 0 !important; }

	/* Containers that should never exceed the screen. The bootstrap
	   .container at 390px is width:100%, but its 15px padding plus
	   our discover-wrap padding compounded — collapse the container
	   padding so we have one source of truth. */
	main > .container,
	main > .container-fluid,
	main > section > .container { padding-left: 12px !important; padding-right: 12px !important; }
	main .container,
	main .container > .wrapper { max-width: 100% !important; box-sizing: border-box !important; }
	main .discover-wrap { padding-left: 0 !important; padding-right: 0 !important; }

	/* The subpage toolbar (search + filters) had `min-width: 220px`
	   on the search form which forced the whole row past 390px.
	   On mobile, search takes the full row and filters wrap below. */
	.subpage-toolbar { gap: 8px !important; }
	.subpage-toolbar form.subpage-search,
	.subpage-toolbar .subpage-search { min-width: 0 !important; flex: 1 1 100% !important; width: 100% !important; }
	.subpage-toolbar .subpage-search input[type="text"] { min-width: 0 !important; width: 100% !important; }
	.subpage-toolbar select,
	.subpage-toolbar .subpage-filter,
	.subpage-toolbar .subpage-filter select { max-width: 100% !important; min-width: 0 !important; }

	/* Discover-bar pulls stats onto the second row so the header
	   row title doesn't push them off-screen. */
	.discover-bar { padding: 12px 14px !important; gap: 8px !important; }
	.discover-bar-stats { margin-left: 0 !important; width: 100% !important; flex-wrap: wrap !important; gap: 6px !important; }

	/* Cards: clamp every card to the grid cell width so a long
	   poster image or social-name doesn't punch out the right side. */
	.discover-card,
	.discover-card-item,
	.discover-card-social,
	.discover-card-cta { max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
	.discover-card img,
	.discover-card-media,
	.discover-card-media img,
	.discover-card-social-thumb img { max-width: 100% !important; height: auto; }

	/* Account/editinfo: the interests-grid uses minmax(140px, 1fr)
	   which fits 2 columns at 390px (140+140+gap < 390) — keep that
	   but make sure every form control fills its cell instead of
	   forcing the page wider. V6.8 patch 59: exclude checkbox/radio
	   from the blanket `width:100%` rule — they need to stay at their
	   intrinsic 18px size inside .acct-priv-opt or notify-prefs +
	   editinfo's privacy/notification rows break apart with the
	   checkbox eating ~80% of the row width. */
	.acct-form input:not([type=checkbox]):not([type=radio]),
	.acct-form select,
	.acct-form textarea,
	.acct-form .acct-field { max-width: 100% !important; box-sizing: border-box !important; width: 100% !important; }
	.acct-decade-row { flex-wrap: wrap !important; gap: 6px !important; }

	/* Profile (legacy) — the matchbar showed a long username +
	   chips on one line. Wrap. */
	.matchbar { flex-wrap: wrap !important; gap: 6px !important; }

	/* Connect tile in grid mode — already targeted in 44, but the
	   tile's internal name/match row was breaking. Reset min-width. */
	.connect-tile-grid .connect-tile-meta,
	.connect-tile-grid .connect-tile-name,
	.connect-tile-grid .connect-tile-foot { min-width: 0 !important; }

	/* Messages thread: the message body was overflowing its bubble
	   when a long URL or unbroken token appeared. */
	.msg-bubble, .msg-bubble * { word-break: break-word !important; overflow-wrap: anywhere !important; }
	.msg-list, .msg-thread, .msg-shell { max-width: 100vw !important; }
}

/* ===========================================================================
   V6.8 patch 44c — CTA span override + flex fallback for discover-stream
   Root cause discovered: `.discover-card-cta { grid-column: span 2 }` plus
   the existing `@media(max-width:600px)` rule that reinforces it. When the
   grid template is collapsed to a single column, `span 2` on the CTA card
   forces the browser to create an implicit second column to honor the span,
   which then pulls all sibling cards into a 2-col layout that bleeds off
   the viewport at 390px.
   Fix:
   (1) Reset every direct child of `.discover-stream` to `grid-column: auto`
       so no card forces an implicit column.
   (2) Defensively switch the stream to `display:flex; flex-direction:column`
       on phones — no grid math, no implicit tracks, no overflow risk.
   ========================================================================== */
@media (max-width: 640px) {
	.discover-stream {
		display: flex !important;
		flex-direction: column !important;
		gap: 14px !important;
		grid-template-columns: 1fr !important;
		grid-auto-columns: auto !important;
		grid-auto-flow: row !important;
	}
	.connect-stream {
		display: flex !important;
		flex-direction: column !important;
		gap: 14px !important;
		grid-template-columns: 1fr !important;
	}
	.discover-stream > *,
	.discover-stream > .discover-card,
	.discover-stream > .discover-card-cta,
	.discover-stream > article,
	.connect-stream > *,
	.connect-stream > .connect-tile {
		grid-column: auto !important;
		grid-row: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
}

/* ===========================================================================
   V6.8 patch 47 — Action row redesign + mobile compact movies/tv +
                   light-mode interest visibility + general mobile spacing
   ------------------------------------------------------------------------
   (1) `.discover-card-actions` is now centred and the row carries the save /
       follow button alongside thumbs + hide. Save is no longer floating in
       the media corner. Order everywhere: up → down → hide → save (or
       follow on social cards).
   (2) Movies / TV cards on mobile default to a compact horizontal layout
       (small portrait thumb left, title + actions right). Hover OR
       `.is-expanded` (toggled by tap) blows the card back up to the
       full poster + multi-line title.
   (3) Selected interest pills are visible in light mode and clearer in
       dark mode.
   (4) A handful of mobile spacing tweaks for Account + Discover bar so
       things don't kiss the viewport edge.
   ========================================================================= */

/* (1) Centered actions row + save/follow as inline circular buttons -------- */
.discover-card-actions {
	justify-content: center !important;
}
/* When .discover-card-save or .discover-follow live INSIDE the actions row
   they shed their absolute / banner styling and look like a thumb. */
.discover-card-actions .discover-card-save,
.discover-card-actions .discover-follow {
	position: static !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	bottom: auto !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	border: 1px solid var(--border) !important;
	background: var(--bg-raised) !important;
	color: var(--text-secondary) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px !important;
	flex-shrink: 0;
	transition: all 0.18s var(--ease);
	cursor: pointer;
}
.discover-card-actions .discover-card-save:hover,
.discover-card-actions .discover-follow:hover {
	transform: scale(1.07);
	background: rgba(124,58,237,0.18) !important;
	color: var(--text-primary) !important;
	border-color: var(--purple) !important;
}
.discover-card-actions .discover-card-save.saved {
	background: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}
.discover-card-actions .discover-follow.connect-tile-following {
	background: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}
html.light-mode .discover-card-actions .discover-card-save,
html.light-mode .discover-card-actions .discover-follow {
	background: #f6f3ff !important;
	border-color: rgba(0,0,0,0.08) !important;
	color: #6b6378 !important;
}
html.light-mode .discover-card-actions .discover-card-save.saved,
html.light-mode .discover-card-actions .discover-follow.connect-tile-following {
	background: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}

/* (3) Interest pills — selected state must be obvious in both modes ------- */
.auth-interests label.auth-interest.is-active,
.auth-interests label.auth-interest.active,
.acct-interests label.acct-interest.is-active {
	background: linear-gradient(135deg, rgba(124,58,237,0.50), rgba(249,115,22,0.34)) !important;
	border-color: var(--purple) !important;
	color: #fff !important;
	box-shadow: 0 4px 14px -6px rgba(124,58,237,0.55);
}
.auth-interests label.auth-interest.is-active i,
.auth-interests label.auth-interest.active i,
.acct-interests label.acct-interest.is-active i {
	color: #fff !important;
}
html.light-mode .auth-interests label.auth-interest.is-active,
html.light-mode .auth-interests label.auth-interest.active,
html.light-mode .acct-interests label.acct-interest.is-active {
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
	border-color: #6d28d9 !important;
	color: #fff !important;
	box-shadow: 0 6px 18px -8px rgba(124,58,237,0.6);
}
html.light-mode .auth-interests label.auth-interest.is-active i,
html.light-mode .auth-interests label.auth-interest.active i,
html.light-mode .acct-interests label.acct-interest.is-active i {
	color: #fff !important;
}

/* (2) Movies / TV mobile layout ------------------------------------------- */
/* V6.9 patch 195 — The previous "compact row" layout for movies/tv on
   mobile (image on left 110px, body on right) broke at the 2-column
   discover grid (~178px per card → only ~66px body width → titles
   wrapped to 5 lines, descriptions were display:none). The generic
   tap-to-expand unclamp rule further below (~line 20464) handles
   description reveal for ALL .discover-card-item categories, so the
   special-cased compact mode was redundant as well as broken.
   Movies/TV now render the same column layout (image on top, body
   below, desc clamped to 2 lines) as every other category card. */

/* (4) General mobile spacing audit — Discover bar + Account form --------- */
@media (max-width: 640px) {
	/* Tighten outer page padding so cards don't kiss the viewport edge but
	   also don't lose horizontal real estate. */
	.discover-wrap { padding-left: 12px !important; padding-right: 12px !important; }
	.discover-bar { padding: 10px 12px !important; gap: 8px !important; margin-bottom: 12px !important; }
	.discover-bar-title { font-size: 17px !important; line-height: 1.25 !important; }
	/* Account form cards — reduce inner padding so the chip grids breathe */
	.acct-card { padding: 16px 14px !important; }
	.acct-fields { gap: 10px !important; }
	.acct-priv { grid-template-columns: 1fr !important; gap: 8px !important; }
	.acct-interests { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; gap: 6px !important; }
	.acct-interests label.acct-interest { padding: 8px 12px !important; font-size: 12.5px !important; }
	/* Toast banner — full-bleed inside the wrap */
	.acct-toast { padding: 10px 14px !important; font-size: 13px !important; }
}


/* =============================================================
   V6.8 patch 49 — Infinite scroll (continuous feeds)
   =============================================================
   Used by discover.php, subpage.php (movies/tv/music/place) and
   the messages.php thread. The legacy paginated `.subpage-pager`
   is hidden when JS is present (`html.js .subpage-pager-fallback
   { display: none }`) — only screen-reader/no-script users see
   the page links.
   ============================================================= */
html.js .subpage-pager-fallback { display: none !important; }
.weird-infscroll {
	display: flex; flex-direction: column; align-items: stretch;
	gap: 14px; padding: 18px 0 8px;
	margin: 8px 0 12px;
	position: relative;
}
.weird-infscroll.is-end { padding-bottom: 22px; }
.weird-infscroll-sentinel {
	width: 100%; height: 1px;
	pointer-events: none; user-select: none;
}
.weird-infscroll-status {
	min-height: 30px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--text-secondary, rgba(255,255,255,0.7));
	display: flex; align-items: center; justify-content: center;
	gap: 8px;
}
.weird-infscroll-status.is-loading {
	align-self: center;
	min-height: 46px;
	padding: 10px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(249,115,22,0.90));
	border: 1px solid rgba(255,255,255,0.20);
	box-shadow: 0 16px 42px rgba(124,58,237,0.24), 0 0 0 1px rgba(255,255,255,0.06) inset;
	color: #fff !important;
	font-weight: 800;
}
.weird-infscroll-status.is-loading::before {
	content: '';
	display: inline-block;
	width: 20px; height: 20px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,0.45);
	border-top-color: #fff;
	animation: weird-infs-spin 620ms linear infinite;
	box-shadow: 0 0 16px rgba(255,255,255,0.42);
}
.weird-infscroll-status.is-end {
	color: var(--text-secondary, rgba(255,255,255,0.6));
	font-style: italic;
	font-size: 13px;
	opacity: 0.78;
}
.weird-infscroll-status.is-end::before {
	content: '✓';
	color: var(--purple, #7c3aed);
	font-weight: 800;
	font-style: normal;
	margin-right: 4px;
}
.weird-infscroll-status.is-error {
	color: #fb923c;
}
.weird-infscroll-retry {
	align-self: center;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid rgba(248,113,113,0.5);
	background: rgba(248,113,113,0.08);
	color: #fb923c;
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
	transition: all .2s ease;
}
.weird-infscroll-retry:hover {
	background: rgba(248,113,113,0.16);
	border-color: rgba(248,113,113,0.7);
}
@keyframes weird-infs-spin { to { transform: rotate(360deg); } }

/* Skeleton ghost cards — match the rounded card visual while a
   page is in flight. We render them inside the same grid as the
   real cards so layout doesn't jump. */
.weird-infscroll-skeleton {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
	width: 100%;
	min-height: 1px;
}
.weird-infscroll-skeleton[hidden] { display: none; }
.weird-infscroll-skeleton-card {
	background: linear-gradient(180deg, rgba(124,58,237,0.11), rgba(15,23,42,0.72));
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 14px;
	padding: 0;
	height: 280px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 16px 34px rgba(15,23,42,0.26);
}
.weird-infscroll-skeleton-card::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(110deg,
		transparent 0%, transparent 40%,
		rgba(255,255,255,0.28) 50%,
		transparent 60%, transparent 100%);
	background-size: 250% 100%;
	animation: weird-infs-shimmer 1.15s linear infinite;
}
.weird-infscroll-skeleton-card-thumb {
	height: 60%;
	background: radial-gradient(circle at 30% 20%, rgba(249,115,22,0.22), transparent 34%), rgba(124,58,237,0.16);
	border-bottom: 1px solid rgba(255,255,255,0.10);
}
.weird-infscroll-skeleton-card-body {
	padding: 12px;
	display: flex; flex-direction: column; gap: 8px;
}
.weird-infscroll-skeleton-card-line {
	height: 10px; border-radius: 6px;
	background: rgba(255,255,255,0.18);
}
.weird-infscroll-skeleton-card-line.short { width: 60%; }
.weird-infscroll-skeleton-card-line.tiny  { width: 35%; height: 8px; }
@keyframes weird-infs-shimmer { to { background-position: -250% 0; } }

/* Light-mode shimmer + skeleton fill tuned for white backgrounds */
html.light-mode .weird-infscroll-skeleton-card {
	background: linear-gradient(180deg, rgba(124,58,237,0.10), rgba(255,255,255,0.92));
	border-color: rgba(124,58,237,0.16);
	box-shadow: 0 14px 30px rgba(80,61,124,0.12);
}
html.light-mode .weird-infscroll-skeleton-card-thumb,
html.light-mode .weird-infscroll-skeleton-card-line {
	background: rgba(124,58,237,0.13);
}
html.light-mode .weird-infscroll-skeleton-card::before {
	background: linear-gradient(110deg,
		transparent 0%, transparent 40%,
		rgba(124,58,237,0.20) 50%,
		transparent 60%, transparent 100%);
	background-size: 250% 100%;
}
html.light-mode .weird-infscroll-status { color: rgba(26,19,48,0.7); }
html.light-mode .weird-infscroll-status.is-loading { color: #fff !important; }
html.light-mode .weird-infscroll-status.is-end { color: rgba(26,19,48,0.55); }

/* Messages thread variant — the sentinel sits inside the scrollable
   thread body, NOT at the page bottom. Make the skeleton compact too
   so it matches message bubble height. */
.msg-thread-body .weird-infscroll {
	padding: 8px 0 4px;
	gap: 6px;
}
.msg-thread-body .weird-infscroll-skeleton {
	grid-template-columns: 1fr;
	gap: 8px;
}
.msg-thread-body .weird-infscroll-skeleton-card {
	height: 64px;
	border-radius: 14px;
}
.msg-thread-body .weird-infscroll-skeleton-card-thumb { display: none; }
.msg-thread-body .weird-infscroll-skeleton-card-body { padding: 10px 14px; }

/* Mobile — tighter sentinel/skeleton spacing on phones. */
@media (max-width: 640px) {
	.weird-infscroll { padding: 14px 0 6px; gap: 10px; }
	.weird-infscroll-skeleton {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.weird-infscroll-skeleton-card { height: 220px; }
	.weird-infscroll-status { font-size: 13px; }
	.weird-infscroll-status.is-end { font-size: 12.5px; }
}

/* Tablet — 2-up skeleton. */
@media (min-width: 641px) and (max-width: 1024px) {
	.weird-infscroll-skeleton {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
}

/* Reduce-motion — kill shimmer + spinner animation. */
@media (prefers-reduced-motion: reduce) {
	.weird-infscroll-skeleton-card::before { animation: none; opacity: 0.5; }
	.weird-infscroll-status.is-loading::before { animation: none; }
}

/* =============================================================
   V6.8 patch 50 — Profile cohesion (May 2026)
   =============================================================
   profile.php gets the Discover-style chrome: a hero card on
   top with avatar + match%, then a 2-column grid for About and
   "How you match up". All colours route through site tokens so
   light/dark modes share one source of truth.
   ============================================================= */

/* ---------- Hero ------------------------------------------------ */
.profile-hero {
	position: relative;
	margin: 0 0 20px;
	border-radius: 22px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 12px 32px -22px rgba(0,0,0,0.55);
}
.profile-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(circle at 0% 0%, rgba(124,58,237,0.28), transparent 55%),
		radial-gradient(circle at 100% 0%, rgba(249,115,22,0.20), transparent 55%),
		radial-gradient(circle at 50% 100%, rgba(6,182,212,0.16), transparent 60%);
	opacity: 0.95;
}
html.light-mode .profile-hero-bg {
	background:
		radial-gradient(circle at 0% 0%, rgba(124,58,237,0.14), transparent 55%),
		radial-gradient(circle at 100% 0%, rgba(249,115,22,0.10), transparent 55%),
		radial-gradient(circle at 50% 100%, rgba(6,182,212,0.10), transparent 60%);
}
.profile-hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 28px 22px 24px;
	text-align: center;
}
.profile-hero-avatar {
	width: 104px;
	height: 104px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--bg-raised);
	border: 3px solid rgba(255,255,255,0.95);
	box-shadow: 0 10px 30px -10px rgba(124,58,237,0.55);
}
html.light-mode .profile-hero-avatar {
	border-color: #fff;
	box-shadow: 0 10px 30px -10px rgba(124,58,237,0.35);
}
.profile-hero-name {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 28px;
	font-weight: 800;
	margin: 0;
	color: var(--text-primary);
	letter-spacing: -0.01em;
	line-height: 1.15;
}

/* V6.8 patch 185 — Achievement title chip under the name. Was inline
   color:#7c3aed which had near-zero contrast against the purple hero
   gradient. Now a translucent purple pill that reads cleanly on both
   the dark hero gradient and the light-mode card. */
.profile-hero-title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0 8px;
	padding: 4px 11px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(249,115,22,0.14));
	border: 1px solid var(--purple-border);
	color: var(--text-primary);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
}
.profile-hero-title i {
	color: #c4a8ff;
	font-size: 11px;
}
html.light-mode .profile-hero-title {
	background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(249,115,22,0.10));
	color: #4c1d95;
	border-color: rgba(124,58,237,0.30);
}
html.light-mode .profile-hero-title i { color: #7c3aed; }

/* Match% banner inside hero. */
.profile-hero-pct {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(249,115,22,0.14));
	border: 1px solid var(--purple-border);
}
.profile-hero-pct strong { font-size: 18px; }
.profile-hero-pct i { color: var(--purple); }
.profile-hero-pct-sub {
	color: var(--text-secondary);
	font-weight: 500;
	font-size: 12.5px;
	margin-left: 4px;
}
.profile-hero-pct-high {
	background: linear-gradient(135deg, rgba(34,197,94,0.20), rgba(6,182,212,0.16));
	border-color: rgba(34,197,94,0.40);
}
.profile-hero-pct-high i { color: #22c55e; }
.profile-hero-pct-mid {
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(249,115,22,0.14));
	border-color: rgba(124,58,237,0.30);
}
.profile-hero-pct-low {
	background: linear-gradient(135deg, rgba(148,148,164,0.18), rgba(127,127,141,0.10));
	border-color: rgba(127,127,141,0.30);
}
.profile-hero-pct-low i { color: var(--text-muted); }

/* Meta chip strip. */
.profile-hero-meta {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 8px;
}
.profile-hero-meta li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 999px;
	white-space: nowrap;
}
.profile-hero-meta li i { color: var(--purple); font-size: 12px; }
.profile-hero-meta li a {
	color: inherit !important;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.profile-hero-meta li a:hover { color: var(--text-primary) !important; }
.profile-hero-meta li:has(a):hover {
	border-color: var(--purple-border);
	background: var(--purple-glow);
}

/* Hero action buttons. */
.profile-hero-actions {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}
.profile-hero-actions-main,
.profile-hero-actions-safety {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.profile-hero-actions-safety {
	padding-top: 6px;
	border-top: 1px dashed var(--border);
}
.profile-hero-safety-foot {
	margin-top: 2px;
	display: flex;
	justify-content: flex-end;
}
.profile-hero-safety-manage,
.profile-hero-safety-manage:link,
.profile-hero-safety-manage:visited {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-secondary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 2px;
}
.profile-hero-safety-manage:hover,
.profile-hero-safety-manage:focus {
	color: var(--purple-light);
	text-decoration: none;
}
.profile-action-form { margin: 0; }
.profile-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	cursor: pointer;
	transition: all 0.18s ease;
	background: var(--bg-raised);
	color: var(--text-primary);
	text-decoration: none !important;
	width: 100%;
}
.profile-action i { font-size: 13px; }
.profile-hero-actions-main .profile-action-primary,
.profile-hero-actions-main .profile-action-following {
	grid-column: 1 / -1;
}
.profile-action:hover {
	border-color: var(--purple);
	transform: translateY(-1px);
	color: var(--text-primary);
}
.profile-action-primary {
	background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%);
	border-color: var(--purple);
	color: #fff !important;
	box-shadow: 0 6px 18px -8px rgba(124,58,237,0.7);
}
.profile-action-primary:hover {
	background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
	box-shadow: 0 8px 22px -8px rgba(124,58,237,0.85);
	color: #fff !important;
}
.profile-action-secondary {
	background: var(--bg-raised);
	color: var(--text-primary);
}
.profile-action-secondary:hover {
	background: var(--purple-glow);
	border-color: var(--purple);
}
.profile-action-following {
	background: rgba(34,197,94,0.14);
	border-color: rgba(34,197,94,0.45);
	color: #22c55e;
}
.profile-action-following:hover {
	background: rgba(249,115,22,0.14);
	border-color: rgba(249,115,22,0.55);
	color: #f97316;
}
.profile-action-following:hover::before {
	content: "\f234"; /* fa-user-times — Awesome 5 free */
}
.profile-action-following:hover i { display: none; }
.profile-action.weird-tip-btn i { color: #f59e0b; }

/* ---------- V6.8 patch 201 — Block + Report consistency ----------
   The Block <button> was being painted red-on-dark (red text, red
   border, red icon) which is hard to read at a glance against the
   dark hero card, while the sibling Report <a> rendered as
   white-on-dark with just a subtle red border + red icon — much
   easier to read. User feedback: "block button should match report
   styling so it's easier to read." Make both buttons read identically
   as a "danger pill": dark/transparent fill, subtle coral border,
   WHITE label text, coral-tinted icon. The repeated selectors +
   !important are required to (a) beat the global button:not(...)
   gradient reset (~specificity 0,40,1) and (b) defeat the global
   `a { color: var(--purple) !important }` rule on the Report <a>. */
.profile-action.profile-action-block,
button.profile-action.profile-action-block,
button.profile-action.profile-action-block:hover,
button.profile-action.profile-action-block:focus,
button.profile-action.profile-action-block:active,
a.profile-action.profile-action-report,
a.profile-action.profile-action-report:link,
a.profile-action.profile-action-report:visited,
a.profile-action.profile-action-report:hover,
a.profile-action.profile-action-report:focus {
	background: var(--bg-raised) !important;
	background-image: none !important;
	border: 1px solid rgba(249,115,22,0.45) !important;
	color: var(--text-primary) !important;
	box-shadow: none !important;
	/* Re-state the base .profile-action geometry so the button:not(...)
	   reset can't widen/repad this pill into a different shape. */
	padding: 11px 22px !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
}
.profile-action.profile-action-block:hover,
a.profile-action.profile-action-report:hover {
	background: rgba(249,115,22,0.10) !important;
	border-color: rgba(249,115,22,0.65) !important;
	color: var(--text-primary) !important;
}
/* Keep the icon coral so the destructive intent still reads. */
.profile-action.profile-action-block i,
a.profile-action.profile-action-report i {
	color: #f97316 !important;
}
/* Light-mode tuning — keep coral border but soften background. */
html.light-mode .profile-action.profile-action-block,
html.light-mode button.profile-action.profile-action-block,
html.light-mode a.profile-action.profile-action-report,
html.light-mode a.profile-action.profile-action-report:visited {
	background: #fff !important;
	border-color: rgba(249,115,22,0.55) !important;
	color: #1a1330 !important;
}
html.light-mode .profile-action.profile-action-block:hover,
html.light-mode a.profile-action.profile-action-report:hover {
	background: rgba(249,115,22,0.08) !important;
	border-color: rgba(249,115,22,0.75) !important;
	color: #1a1330 !important;
}

/* ---------- V6.8 patch 185 — Pinned answers showcase --------------
   Was inline-styled with yellow accent + narrow max-width:760px which
   stood out from the rest of the profile chrome (purple, full-width).
   Now matches the canonical .discover-section-head + h2 pattern and
   uses the purple accent + auto-fit grid for a clean multi-pin row. */
.profile-pins,
.profile-pins-empty {
	margin: 22px 0 6px;
}
.profile-pins .discover-section-head,
.profile-pins-empty .discover-section-head { margin-bottom: 14px; }
.profile-pins-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 12px;
}
.profile-pin-card {
	position: relative;
	display: block;
	padding: 14px 16px 14px 20px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--bg-raised);
	color: var(--text-primary) !important;
	text-decoration: none !important;
	transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
	overflow: hidden;
}
.profile-pin-card::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--purple), var(--purple-light));
	opacity: 0.85;
}
.profile-pin-card:hover {
	border-color: var(--purple-border);
	background: var(--purple-glow);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(124,58,237,0.18);
}
.profile-pin-card-q {
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.4;
	margin-bottom: 6px;
	color: var(--text-primary);
}
.profile-pin-card-a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--text-secondary);
}
.profile-pin-card-a i { color: #22c55e; font-size: 11px; }
.profile-pins-footer {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--text-secondary);
	text-align: right;
}
.profile-pins-footer a {
	color: var(--purple) !important;
	font-weight: 600;
	text-decoration: none !important;
}
.profile-pins-footer a:hover { text-decoration: underline !important; }
.profile-pins-empty-card {
	padding: 18px 16px;
	border-radius: 14px;
	border: 1px dashed var(--purple-border);
	background: var(--purple-glow);
	text-align: center;
	font-size: 13.5px;
	color: var(--text-secondary);
	line-height: 1.5;
}
.profile-pins-empty-card i { color: var(--purple); margin-right: 6px; }
.profile-pins-empty-card strong { color: var(--text-primary); }
.profile-pins-empty-card a {
	color: var(--purple) !important;
	font-weight: 600;
	text-decoration: none !important;
}
.profile-pins-empty-card a:hover { text-decoration: underline !important; }
@media (max-width: 700px) {
	.profile-pins,
	.profile-pins-empty { margin: 16px 0 4px; }
	.profile-pin-card { padding: 12px 14px 12px 18px; }
	.profile-pin-card-q { font-size: 14px; }
	.profile-pins-list { grid-template-columns: 1fr; }
}

/* ---------- Compare picker (self mode only) -------------------- */
.profile-compare {
	margin: 0 0 22px;
	padding: 18px 20px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
}
.profile-compare-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 14px;
	margin-bottom: 12px;
}
.profile-compare-title {
	margin: 0;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: var(--text-primary);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.profile-compare-title i { color: var(--purple); }
.profile-compare-sub { font-size: 12.5px; color: var(--text-secondary); }
.profile-compare-empty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0 4px;
	color: var(--text-secondary);
	font-size: 14px;
}
.profile-compare-chiprow {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px 8px;
	margin: 0 -2px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}
.profile-compare-chiprow::-webkit-scrollbar { height: 6px; }
.profile-compare-chiprow::-webkit-scrollbar-thumb {
	background: var(--purple-border);
	border-radius: 999px;
}
.profile-compare-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 12px 8px 8px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--bg-raised);
	color: var(--text-primary) !important;
	text-decoration: none !important;
	font-size: 13.5px;
	font-weight: 600;
	scroll-snap-align: start;
	transition: all 0.15s ease;
	min-width: 132px;
}
.profile-compare-chip:hover {
	border-color: var(--purple);
	background: var(--purple-glow);
}
.profile-compare-chip.is-active {
	background: linear-gradient(135deg, var(--purple), #6d28d9);
	border-color: var(--purple);
	color: #fff !important;
	box-shadow: 0 6px 16px -8px rgba(124,58,237,0.55);
}
.profile-compare-chip-avatar,
.profile-compare-chip-more-ic {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	overflow: hidden;
	display: inline-grid;
	place-items: center;
	background: rgba(124,58,237,0.16);
	border: 1px solid rgba(167,139,250,0.30);
}
.profile-compare-chip-avatar-img,
.profile-compare-chip-avatar img {
	width: 32px;
	height: 32px;
	border-radius: inherit;
	object-fit: cover;
	display: block;
}
.profile-compare-chip-more-ic { color: var(--purple-light); font-size: 13px; }
.profile-compare-chip-copy {
	display: grid;
	gap: 1px;
	min-width: 0;
}
.profile-compare-chip-name {
	max-width: 118px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.profile-compare-chip-sub {
	font-size: 11.5px;
	font-weight: 750;
	/* V207 polish (pass 2) — was var(--text-muted) which resolves to a
	   too-light gray on the purple-tinted chip surface (contrast 1.2 on
	   light). Use explicit gray-700/lavender per theme to clear AA. */
	color: #cbd5e1;
}
html.dark-mode .profile-compare-chip-sub { color: #d8d2ec; }
html.light-mode .profile-compare-chip-sub { color: #4b5563; }
.profile-compare-chip.is-active .profile-compare-chip-sub {
	color: rgba(255,255,255,0.92);
}
.profile-compare-chip.is-active .profile-compare-chip-more-ic,
.profile-compare-chip.is-active .profile-compare-chip-avatar {
	border-color: rgba(255,255,255,0.45);
	background: rgba(255,255,255,0.18);
}

/* ---------- Card grid ------------------------------------------ */
.profile-grid {
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(0,1fr);
	gap: 18px;
}
.profile-card {
	background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(249,115,22,0.04), rgba(6,182,212,0.04)), var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 22px 22px 24px;
	box-shadow: 0 8px 24px -16px rgba(0,0,0,0.5);
	text-align: left;
}
.profile-card .discover-section-head { margin-bottom: 4px; }
.profile-card .discover-section-sub  { margin: 0 0 18px; }

.profile-about-block { margin-bottom: 22px; }
.profile-about-block:last-child { margin-bottom: 0; }
.profile-subheading {
	margin: 0 0 10px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-secondary);
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.profile-subheading i { color: var(--purple); font-size: 12px; }
.profile-bio {
	margin: 0;
	color: var(--text-primary);
	font-size: 15px;
	line-height: 1.55;
}
.profile-bio-empty {
	color: var(--text-muted);
	font-style: italic;
	font-size: 14px;
}
.profile-bio-empty a { color: var(--purple) !important; }

/* Interest chips. */
.profile-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
}
.profile-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--bg-raised);
	color: var(--text-primary) !important;
	border: 1px solid var(--border);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.15s ease;
}
.profile-chip:hover {
	background: var(--purple-glow);
	border-color: var(--purple);
	color: var(--purple-light) !important;
	transform: translateY(-1px);
}
html.light-mode .profile-chip:hover { color: var(--purple) !important; }

/* Explore-recommendations buttons (per-category coloured). */
.profile-explore {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.profile-explore-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 14px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text-primary) !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 700;
	transition: all 0.18s ease;
}
.profile-explore-btn i { font-size: 14px; }
.profile-explore-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -12px rgba(124,58,237,0.55);
}
.profile-explore-btn[data-cat="movies"] { border-top: 3px solid #7c3aed; }
.profile-explore-btn[data-cat="movies"]:hover { color: #a78bfa !important; border-color: #7c3aed; }
.profile-explore-btn[data-cat="tv"]     { border-top: 3px solid #f97316; }
.profile-explore-btn[data-cat="tv"]:hover     { color: #fb923c !important; border-color: #f97316; }
.profile-explore-btn[data-cat="music"]  { border-top: 3px solid #f97316; }
.profile-explore-btn[data-cat="music"]:hover  { color: #fb923c !important; border-color: #f97316; }
.profile-explore-btn[data-cat="place"]  { border-top: 3px solid #22c55e; }
.profile-explore-btn[data-cat="place"]:hover  { color: #4ade80 !important; border-color: #22c55e; }
html.light-mode .profile-explore-btn[data-cat="movies"]:hover { color: #6d28d9 !important; }
html.light-mode .profile-explore-btn[data-cat="tv"]:hover     { color: #c2410c !important; }
html.light-mode .profile-explore-btn[data-cat="music"]:hover  { color: #c2410c !important; }
html.light-mode .profile-explore-btn[data-cat="place"]:hover  { color: #15803d !important; }
/* V6.9 patch 237 — accents for the remaining rated categories now surfaced in
   the Explore-recommendations strip. Palette mirrors the discover signal-board
   / taste-map per-category colours. */
.profile-explore-btn[data-cat="boardgames"] { border-top: 3px solid #34d399; }
.profile-explore-btn[data-cat="boardgames"]:hover { color: #6ee7b7 !important; border-color: #34d399; }
.profile-explore-btn[data-cat="books"] { border-top: 3px solid #f59e0b; }
.profile-explore-btn[data-cat="books"]:hover { color: #fbbf24 !important; border-color: #f59e0b; }
.profile-explore-btn[data-cat="sports"] { border-top: 3px solid #84cc16; }
.profile-explore-btn[data-cat="sports"]:hover { color: #a3e635 !important; border-color: #84cc16; }
.profile-explore-btn[data-cat="videogames"] { border-top: 3px solid #60a5fa; }
.profile-explore-btn[data-cat="videogames"]:hover { color: #93c5fd !important; border-color: #60a5fa; }
.profile-explore-btn[data-cat="podcasts"] { border-top: 3px solid #22d3ee; }
.profile-explore-btn[data-cat="podcasts"]:hover { color: #67e8f9 !important; border-color: #22d3ee; }
.profile-explore-btn[data-cat="videos"] { border-top: 3px solid #ef4444; }
.profile-explore-btn[data-cat="videos"]:hover { color: #f87171 !important; border-color: #ef4444; }
.profile-explore-btn[data-cat="shopping"] { border-top: 3px solid #eab308; }
.profile-explore-btn[data-cat="shopping"]:hover { color: #facc15 !important; border-color: #eab308; }
.profile-explore-btn[data-cat="facts"] { border-top: 3px solid #facc15; }
.profile-explore-btn[data-cat="facts"]:hover { color: #fde047 !important; border-color: #facc15; }
.profile-explore-btn[data-cat="memes"] { border-top: 3px solid #c084fc; }
.profile-explore-btn[data-cat="memes"]:hover { color: #d8b4fe !important; border-color: #c084fc; }
.profile-explore-btn[data-cat="jokes"] { border-top: 3px solid #fb923c; }
.profile-explore-btn[data-cat="jokes"]:hover { color: #fdba74 !important; border-color: #fb923c; }
.profile-explore-btn[data-cat="lifehacks"] { border-top: 3px solid #14b8a6; }
.profile-explore-btn[data-cat="lifehacks"]:hover { color: #2dd4bf !important; border-color: #14b8a6; }
html.light-mode .profile-explore-btn[data-cat="boardgames"]:hover { color: #047857 !important; }
html.light-mode .profile-explore-btn[data-cat="books"]:hover { color: #b45309 !important; }
html.light-mode .profile-explore-btn[data-cat="sports"]:hover { color: #4d7c0f !important; }
html.light-mode .profile-explore-btn[data-cat="videogames"]:hover { color: #1d4ed8 !important; }
html.light-mode .profile-explore-btn[data-cat="podcasts"]:hover { color: #0e7490 !important; }
html.light-mode .profile-explore-btn[data-cat="videos"]:hover { color: #b91c1c !important; }
html.light-mode .profile-explore-btn[data-cat="shopping"]:hover { color: #a16207 !important; }
html.light-mode .profile-explore-btn[data-cat="facts"]:hover { color: #a16207 !important; }
html.light-mode .profile-explore-btn[data-cat="memes"]:hover { color: #7e22ce !important; }
html.light-mode .profile-explore-btn[data-cat="jokes"]:hover { color: #c2410c !important; }
html.light-mode .profile-explore-btn[data-cat="lifehacks"]:hover { color: #0f766e !important; }

/* ---------- Match meter rows ----------------------------------- */
.profile-match-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.profile-match-row {
	display: grid;
	grid-template-columns: minmax(190px, 0.45fr) 1fr 60px;
	align-items: center;
	gap: 12px;
}
.profile-match-label {
	display: inline-flex;
	align-items: center;
	gap: 6px 8px;
	flex-wrap: wrap;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
}
.profile-match-label i { color: var(--purple); font-size: 13px; }
.profile-match-name { min-width: 0; }
.profile-match-count {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(124,58,237,0.10);
	border: 1px solid rgba(124,58,237,0.20);
	color: var(--text-secondary);
	font-size: 10.5px;
	font-weight: 750;
	line-height: 1.25;
	white-space: nowrap;
}
.profile-match-bar {
	position: relative;
	height: 10px;
	background: var(--bg-raised);
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid var(--border);
}
.profile-match-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--purple), #f97316);
	width: 0;
	transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 0 0 12px -2px rgba(124,58,237,0.45);
	position: relative;
	overflow: hidden;
}
/* Soft shimmer along the gradient bar. */
.profile-match-fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
	animation: profileShimmer 2.4s ease-in-out infinite;
}
@keyframes profileShimmer {
	0%   { transform: translateX(-100%); }
	60%  { transform: translateX(100%); }
	100% { transform: translateX(100%); }
}
.profile-match-row.is-high  .profile-match-fill { background: linear-gradient(90deg, #22c55e, #06b6d4); }
.profile-match-row.is-mid   .profile-match-fill { background: linear-gradient(90deg, var(--purple), #f97316); }
.profile-match-row.is-low   .profile-match-fill { background: linear-gradient(90deg, #f97316, #f97316); opacity: 0.85; }
.profile-match-row.is-empty .profile-match-fill {
	background: var(--border);
	animation: none;
}
.profile-match-row.is-empty .profile-match-fill::after { display: none; }
.profile-match-pct {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 800;
	color: var(--text-primary);
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.profile-match-row.is-high  .profile-match-pct { color: #22c55e; }
.profile-match-row.is-low   .profile-match-pct { color: #f97316; }
.profile-match-row.is-empty .profile-match-pct { color: var(--text-muted); font-weight: 600; font-size: 13px; }
html.light-mode .profile-match-row.is-high .profile-match-pct { color: #15803d; }
html.light-mode .profile-match-row.is-low  .profile-match-pct { color: #c2410c; }

/* Discover-bar back link variant (Connect link on other-user view). */
.discover-bar-back {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary) !important;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	padding: 6px 14px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: all 0.15s ease;
}
.discover-bar-back:hover {
	border-color: var(--purple);
	color: var(--purple-light) !important;
	background: var(--purple-glow);
}
html.light-mode .discover-bar-back:hover { color: var(--purple) !important; }

/* ---------- Tablet (641-1024px) -------------------------------- */
@media (min-width: 641px) and (max-width: 1024px) {
	.profile-grid { grid-template-columns: minmax(0,1fr); }
	.profile-hero-name { font-size: 25px; }
	.profile-match-row { grid-template-columns: minmax(180px, 0.45fr) 1fr 56px; }
}

/* ---------- Mobile (<= 640px) ---------------------------------- */
@media (max-width: 640px) {
	.profile-hero { border-radius: 18px; }
	.profile-hero-content { padding: 22px 16px 20px; gap: 10px; }
	.profile-hero-avatar { width: 88px; height: 88px; }
	.profile-hero-name { font-size: 22px; }
	.profile-hero-pct { font-size: 13px; padding: 7px 12px; }
	.profile-hero-pct strong { font-size: 16px; }
	.profile-hero-meta li { font-size: 12px; padding: 5px 10px; }
	.profile-hero-actions { gap: 8px; }
	.profile-action { padding: 10px 16px; font-size: 13px; }

	.profile-compare { padding: 14px 14px 12px; border-radius: 16px; }
	.profile-compare-title { font-size: 15px; }
	.profile-compare-chip { padding: 7px 11px 7px 7px; font-size: 13px; min-width: 126px; }

	.profile-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
	.profile-card { padding: 18px 16px 20px; border-radius: 16px; }

	.profile-match-row {
		grid-template-columns: 1fr auto;
		gap: 6px 10px;
	}
	.profile-match-label { grid-column: 1 / 2; font-size: 13px; }
	.profile-match-pct   { grid-column: 2 / 3; font-size: 14px; }
	.profile-match-bar   { grid-column: 1 / -1; height: 9px; }

	.profile-explore { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Anchor-as-button overrides ------------------------- */
/* The global `a { color: var(--purple) !important; }` rule (line ~78)
   wins on specificity against single-class rules. Scope these with
   `a.…` to bump them up to (0,1,1) so the intended button colours
   apply on real <a> elements. */
a.profile-action,
a.profile-action:visited,
a.profile-action:link            { color: var(--text-primary) !important; }
a.profile-action-primary,
a.profile-action-primary:visited,
a.profile-action-primary:hover   { color: #fff !important; }
a.profile-action-secondary,
a.profile-action-secondary:visited { color: var(--text-primary) !important; }
a.profile-action-following,
a.profile-action-following:visited { color: #22c55e !important; }
a.profile-action-following:hover { color: #f97316 !important; }

a.profile-chip,
a.profile-chip:visited            { color: var(--text-primary) !important; }
a.profile-chip:hover              { color: var(--purple-light) !important; }
html.light-mode a.profile-chip:hover { color: var(--purple) !important; }

a.profile-explore-btn,
a.profile-explore-btn:visited     { color: var(--text-primary) !important; }
a.profile-explore-btn[data-cat="movies"]:hover { color: #a78bfa !important; }
a.profile-explore-btn[data-cat="tv"]:hover     { color: #fb923c !important; }
a.profile-explore-btn[data-cat="music"]:hover  { color: #fb923c !important; }
a.profile-explore-btn[data-cat="place"]:hover  { color: #4ade80 !important; }
html.light-mode a.profile-explore-btn[data-cat="movies"]:hover { color: #6d28d9 !important; }
html.light-mode a.profile-explore-btn[data-cat="tv"]:hover     { color: #c2410c !important; }
html.light-mode a.profile-explore-btn[data-cat="music"]:hover  { color: #c2410c !important; }
html.light-mode a.profile-explore-btn[data-cat="place"]:hover  { color: #15803d !important; }

a.profile-compare-chip,
a.profile-compare-chip:visited    { color: var(--text-primary) !important; }
a.profile-compare-chip.is-active  { color: #fff !important; }

a.discover-bar-back,
a.discover-bar-back:visited       { color: var(--text-secondary) !important; }
a.discover-bar-back:hover         { color: var(--purple-light) !important; }
html.light-mode a.discover-bar-back:hover { color: var(--purple) !important; }

/* Meta-row anchor (questions-created link). */
.profile-hero-meta li a,
.profile-hero-meta li a:visited   { color: inherit !important; }
.profile-hero-meta li a:hover     { color: var(--text-primary) !important; }

/* Owner & compare-name links in the section-sub text. */
.discover-section-sub a,
.discover-section-sub a:visited   { color: var(--purple-light) !important; }
html.light-mode .discover-section-sub a { color: var(--purple) !important; }

/* ---------- Reduce motion -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.profile-match-fill { transition: none; }
	.profile-match-fill::after { animation: none; opacity: 0.4; }
	.profile-action:hover { transform: none; }
	.profile-chip:hover { transform: none; }
	.profile-explore-btn:hover { transform: none; }
}

/* ================================================================
   V6.8 patch 54 — Personalized "Today" greeting strip on Discover.
   Sits above the .discover-bar on `?tab=stream` only. Shows a
   time-aware hello + up to 3 contextual next-action chips. Goal:
   give returning users an immediate, clear reason to engage today.
   ================================================================ */
.discover-greet {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: 14px 18px;
	margin: 4px 0 18px;
	padding: 16px 20px;
	background:
		radial-gradient(ellipse 70% 100% at 0% 0%, rgba(139,92,246,0.10) 0%, transparent 60%),
		var(--surface);
	border: 1px solid var(--purple-border);
	border-radius: var(--radius, 16px);
	box-shadow: 0 8px 28px rgba(0,0,0,0.18), 0 0 0 1px rgba(139,92,246,0.04) inset;
}
html.light-mode .discover-greet {
	background:
		radial-gradient(ellipse 70% 100% at 0% 0%, rgba(124,58,237,0.07) 0%, transparent 60%),
		#ffffff;
	box-shadow: 0 6px 22px rgba(26,23,64,0.06), 0 0 0 1px rgba(124,58,237,0.04) inset;
}
/* V6.8 patch 57 — defeat legacy `.wrapper { text-align: center }` (line ~159)
   so the greeting reads as a clean left-anchored "name + welcome" block,
   and let the chips sit hard-right via `margin-left: auto` instead of letting
   the text container grow to consume the slack (which left the name floating
   in dead-center on wide desktops). */
.discover-greet-text {
	display: flex; flex-direction: column; gap: 2px;
	flex: 0 1 auto; min-width: 0;
	text-align: left;
}
.discover-greet-hi {
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(18px, 2.4vw, 22px);
	font-weight: 800; letter-spacing: -0.4px;
	color: var(--text-primary);
	line-height: 1.2;
	text-align: left;
}
.discover-greet-tag {
	font-size: 13px; color: var(--text-muted); font-weight: 500;
	line-height: 1.4;
	text-align: left;
}
.discover-greet-chips {
	display: flex; flex-wrap: wrap; gap: 8px;
	list-style: none; padding: 0; margin: 0 0 0 auto;
	max-width: 100%; min-width: 0;
}
.discover-greet-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 14px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 13px; font-weight: 700; letter-spacing: -0.1px;
	color: var(--text-primary) !important;
	text-decoration: none !important;
	transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	white-space: nowrap;
}
.discover-greet-chip i { font-size: 13px; }
.discover-greet-chip:hover, .discover-greet-chip:focus-visible {
	transform: translateY(-1px);
	border-color: var(--border-hover);
	background: var(--surface-hover);
}
.discover-greet-chip.is-purple { border-color: var(--purple-border); background: var(--purple-glow); }
.discover-greet-chip.is-purple i { color: var(--purple); }
.discover-greet-chip.is-orange { border-color: rgba(249,115,22,0.25); background: var(--orange-glow); }
.discover-greet-chip.is-orange i { color: var(--orange); }
.discover-greet-chip.is-green  { border-color: rgba(52,211,153,0.25); background: var(--green-bg); }
.discover-greet-chip.is-green i  { color: var(--green); }
.discover-greet-chip.is-cyan   { border-color: rgba(34,211,238,0.25); background: rgba(34,211,238,0.10); }
.discover-greet-chip.is-cyan i   { color: var(--cyan); }

/* V218 — "done" badges (Daily question / Daily challenge) pop in to celebrate
   completion. A one-shot bounce-scale draws the eye, then a soft green glow
   pulses a couple of times before settling. */
.discover-greet-chip.is-done {
	transform-origin: center;
	animation: discoverChipPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both,
	           discoverChipGlow 1.6s ease-out 0.4s 2;
}
.discover-greet-chip.is-done i { animation: discoverChipIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes discoverChipPop {
	0%   { opacity: 0; transform: scale(0.6) translateY(4px); }
	60%  { opacity: 1; transform: scale(1.08) translateY(0); }
	100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes discoverChipIconPop {
	0%   { transform: scale(0.4) rotate(-12deg); }
	55%  { transform: scale(1.25) rotate(6deg); }
	100% { transform: scale(1) rotate(0); }
}
@keyframes discoverChipGlow {
	0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.45); }
	100% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
}
@media (prefers-reduced-motion: reduce) {
	.discover-greet-chip.is-done,
	.discover-greet-chip.is-done i { animation: none; }
}

/* Tablet: stack text + chips vertically with slightly tighter chips. */
@media (max-width: 820px) {
	.discover-greet { padding: 14px 16px; }
	.discover-greet-hi { font-size: 18px; }
	.discover-greet-chip { padding: 9px 12px; font-size: 12px; }
}
/* Mobile: full-bleed chips row, allow horizontal scroll if very many. */
@media (max-width: 560px) {
	.discover-greet { gap: 12px; padding: 14px; border-radius: 14px; }
	.discover-greet-text { flex-basis: 100%; }
	.discover-greet-chips {
		flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px;
		scrollbar-width: none; flex: 1 1 100%; width: 100%; max-width: 100%; margin-left: 0;
		-webkit-overflow-scrolling: touch;
	}
	.discover-greet-chips::-webkit-scrollbar { display: none; }
	.discover-greet-chip { flex-shrink: 0; }
}
/* Reduce motion: kill transform. */
@media (prefers-reduced-motion: reduce) {
	.discover-greet-chip:hover { transform: none; }
}


/* ===========================================================================
   V6.8 patch 55 — Icon-only circular action buttons (centering + colors)
   ------------------------------------------------------------------------
   Symptom: thumbs up/down, hide, save, and follow buttons in the card
   actions row rendered as wide purple PILLS with off-center glyphs.

   Root cause: the legacy `button:not(...)` fallback at the top of this
   file applies `padding: 10px 22px !important` + a purple gradient +
   box-shadow + text-shadow to every <button> not in its exclusion list.
   Specificity (0,15,1) beat the patch-47 rules, and because parents are
   flex containers with `min-width: auto`, the 44 px of padding became
   the min-content width — blowing past the explicit 36 px circle.

   Fix part A (above): added `.discover-rate`, `.discover-skip`,
   `.discover-card-save`, `.discover-follow`, `.discover-greet-chip`,
   and the descendant `.discover-card-actions button` to the legacy
   :not() exclusion list, so the fallback never targets them.

   Fix part B (below): defensive reset — even if another global rule
   ever creeps in, these icon buttons stay circular with a centered
   single glyph. Uses `body` + a chained selector for extra specificity.
   ========================================================================= */

body .discover-rate,
body .discover-skip,
body .discover-card-actions .discover-card-save,
body .discover-card-actions .discover-follow {
	padding: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	background-image: none !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	flex: 0 0 auto;
	min-width: 0 !important;
}

/* Lock circle dimensions (border-box + flex min-content can otherwise
   stretch them). 36 px is the touch-target sweet spot. */
body .discover-rate,
body .discover-card-actions .discover-card-save,
body .discover-card-actions .discover-follow {
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	font-size: 14px !important;
}
body .discover-skip {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	font-size: 12px !important;
}

/* Default (unselected) backgrounds — neutral raised, not purple. */
body .discover-rate:not(.active),
body .discover-skip,
body .discover-card-actions .discover-card-save:not(.saved),
body .discover-card-actions .discover-follow:not(.connect-tile-following) {
	background: var(--bg-raised) !important;
	background-color: var(--bg-raised) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
}

/* Active up = green */
body .discover-rate.up.active,
body .discover-rate.up:hover:not(:disabled) {
	background: var(--green) !important;
	background-color: var(--green) !important;
	background-image: none !important;
	color: #fff !important;
	border-color: var(--green) !important;
}
/* Active down = coral */
body .discover-rate.down.active,
body .discover-rate.down:hover:not(:disabled) {
	background: var(--coral) !important;
	background-color: var(--coral) !important;
	background-image: none !important;
	color: #fff !important;
	border-color: var(--coral) !important;
}

/* Saved = purple */
body .discover-card-actions .discover-card-save.saved {
	background: var(--purple) !important;
	background-color: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}
/* Following = purple */
body .discover-card-actions .discover-follow.connect-tile-following {
	background: var(--purple) !important;
	background-color: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}

/* Icon inside is reset to inline-flex centered glyph */
body .discover-rate > i,
body .discover-skip > i,
body .discover-card-actions .discover-card-save > i,
body .discover-card-actions .discover-follow > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	vertical-align: middle;
	margin: 0;
	width: auto;
	height: auto;
}

/* Light mode — neutral raised lavender */
html.light-mode body .discover-rate:not(.active),
html.light-mode body .discover-skip,
html.light-mode body .discover-card-actions .discover-card-save:not(.saved),
html.light-mode body .discover-card-actions .discover-follow:not(.connect-tile-following) {
	background: #f6f3ff !important;
	background-color: #f6f3ff !important;
	color: #4b3a7a !important;
	border-color: rgba(0,0,0,0.08) !important;
}

/* Mobile: keep size for fat-fingers (36 px is already small enough). */
@media (max-width: 560px) {
	body .discover-rate,
	body .discover-card-actions .discover-card-save,
	body .discover-card-actions .discover-follow {
		width: 38px !important;
		height: 38px !important;
		font-size: 13px !important;
	}
	body .discover-skip {
		width: 34px !important;
		height: 34px !important;
		font-size: 11px !important;
	}
}

/* ================================================================
   V6.8 patch 58 — Profile hero layout + back-link cleanup
   ----------------------------------------------------------------
   Symptoms reported:
     • "Both views take up too much room with the icon, name, meta,
       and buttons... too vertical."
     • "Connect" link awkwardly placed in the discover-bar.
   Root cause: hero was a centered flex-COLUMN with a 104px avatar
   and a chips-wrap meta row, eating ~300px of vertical space on
   desktop where there's plenty of horizontal real estate. Back-
   link was a word-pill "← Connect" that read as a CTA, not a nav.
   Fix:
     1. Hero on >640px → 2-col grid: avatar (76px) on the left,
        name / match-pct / meta / actions stacked on the right
        with left-aligned text. Halves the section's height.
     2. Mobile <=640px keeps the current centered vertical look
        with a slightly tighter avatar.
     3. `.discover-bar-back.is-icon` strips the "Connect" word and
        renders a clean 36px circle arrow, matching movies/tv/music
        sub-pages. The text variant is kept for any other callers.
   ================================================================ */
@media (min-width: 641px) {
	.profile-hero-content {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 22px;
		row-gap: 4px;
		align-items: start;
		text-align: left;
		padding: 20px 24px 22px;
	}
	.profile-hero-avatar {
		grid-row: 1 / -1;
		grid-column: 1;
		align-self: center;
		width: 84px;
		height: 84px;
		border-width: 2px;
	}
	.profile-hero-name {
		grid-column: 2;
		font-size: 24px;
		margin: 0;
		line-height: 1.2;
	}
	.profile-hero-pct {
		grid-column: 2;
		justify-self: start;
		margin-top: 4px;
	}
	.profile-hero-meta {
		grid-column: 2;
		justify-content: flex-start;
		margin: 8px 0 0;
	}
	.profile-hero-actions {
		grid-column: 2;
		justify-content: flex-start;
		margin-top: 10px;
	}
}

/* Icon-only back-arrow chip in the profile discover-bar. Overrides the
   patch 10 (line ~4457) and the later text-pill rule (line ~7289) by
   coming later in the cascade with a compound selector. */
.discover-bar-back.is-icon {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	gap: 0;
	border-radius: 50%;
	background: rgba(124,58,237,0.14);
	color: var(--purple) !important;
	border: 1px solid rgba(124,58,237,0.28);
	font-size: 13px;
	transition: all 0.15s var(--ease);
	text-decoration: none !important;
}
.discover-bar-back.is-icon:hover {
	background: var(--purple);
	color: #fff !important;
	transform: translateX(-2px);
}
html.light-mode .discover-bar-back.is-icon { background: rgba(124,58,237,0.10); }
html.light-mode .discover-bar-back.is-icon:hover { color: #fff !important; }
@media (max-width: 640px) {
	.discover-bar-back.is-icon { width: 32px; height: 32px; font-size: 12px; }
}
/* ================================================================
   V6.8 patch 59 — Unify Account-page chrome
   ----------------------------------------------------------------
   User reported:
     • "notifications doesn't match rest of account pages.
        Same goes for reset password."
     • "white text issue on buttons in light mode"
     • "Profile page also has notifications displayed even though
        it's a separate page and password is linked at the bottom
        still even though we added a button"
     • "Mobile: text not lining up next to radio/checkboxes,
        buttons bumping to 2 rows, odd spacing on interests text"
     • "register page spacing issues at the top"
   Root cause: the `.acct-*` rules were defined ONLY inside the
   inline <style> block in editinfo.php (patch 27/43/45/53). Other
   account-shell pages (notify-prefs.php, reset-password.php) had
   their own partial copies inline, so styles drifted: checkboxes
   on notify-prefs collapsed to default browser layout (squished
   title+description in one inline run), and the dark-mode is-active
   gradient didn't apply consistently. Move everything into the
   shared sheet so every account surface looks identical.
   ================================================================ */

/* Account form scaffolding — promoted from editinfo.php inline block.
   V6.8 patch 207i.ai — tighten card spacing. Was 22px gap + 22/24
   card padding + 18px sub-margin = ~70px between sections. Now
   12px gap + 18/20 padding + 12px sub-margin. */
.acct-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.acct-card {
	background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(249,115,22,0.04), rgba(6,182,212,0.04)), var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 18px 22px 20px;
	box-shadow: 0 8px 24px -16px rgba(0,0,0,0.5);
	text-align: left;
}
.acct-card .discover-section-head { margin-bottom: 2px; }
.acct-card .discover-section-sub  { margin: 0 0 12px; }
.acct-fields { display: flex; flex-direction: column; gap: 14px; }
.acct-field  { display: flex; flex-direction: column; gap: 6px; }
.acct-field-label {
	font-size: 13px; font-weight: 600;
	color: var(--text-secondary);
	letter-spacing: 0.02em;
	display: inline-flex; align-items: center; gap: 6px;
}
.acct-field-label i { color: var(--purple); }
.acct-card input[type=email],
.acct-card input[type=text],
.acct-card input[type=password] {
	width: 100%;
	padding: 11px 16px;
	border-radius: 999px;
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	background: var(--surface, rgba(255,255,255,0.04));
	color: var(--text-primary);
	font-size: 14px;
	outline: none;
	transition: border-color .15s ease;
}
.acct-card input[type=email]:focus,
.acct-card input[type=text]:focus,
.acct-card input[type=password]:focus { border-color: var(--purple); }
.acct-card input.is-invalid { border-color: #f97316 !important; }
.acct-field-err {
	color: #f97316; font-size: 12px; margin-top: 2px;
	display: block;
}
.acct-decade-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.acct-decade { font-size: 24px; font-weight: 800; color: var(--purple); font-family: 'Space Grotesk', sans-serif; }
.acct-decade-row .acct-decade-hint { color: var(--text-secondary); font-size: 12px; }
.acct-card input[type=range].acct-range {
	-webkit-appearance: none; appearance: none;
	width: 100%; height: 6px; border-radius: 999px;
	background: linear-gradient(to right, rgba(124,58,237,0.7), rgba(249,115,22,0.5));
	outline: none; margin: 6px 0;
}
.acct-card input[type=range].acct-range::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--purple); border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
	cursor: pointer;
}
.acct-card input[type=range].acct-range::-moz-range-thumb {
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--purple); border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
	cursor: pointer;
}

/* Privacy / Notification radio + checkbox option cards. The KEY rule
   that was missing on notify-prefs.php — without it the <input> sat
   inline next to <span> with no gap, and the title/desc spans had no
   display:block so they ran together as one squished line. */
.acct-priv { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .acct-priv { grid-template-columns: 1fr 1fr; } }
.acct-priv label.acct-priv-opt,
.acct-notif label.acct-priv-opt,
label.acct-priv-opt {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 14px 16px; border-radius: 14px;
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	background: rgba(124,58,237,0.06);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.acct-priv label.acct-priv-opt:hover,
.acct-notif label.acct-priv-opt:hover,
label.acct-priv-opt:hover { border-color: var(--purple); }
.acct-priv input[type=radio],
.acct-priv-opt input[type=radio] {
	accent-color: var(--purple); margin-top: 3px;
	width: 18px; height: 18px; flex-shrink: 0;
}
.acct-notif input[type=checkbox],
.acct-priv-opt input[type=checkbox] {
	accent-color: var(--purple); margin-top: 3px;
	width: 18px; height: 18px; flex-shrink: 0;
}
.acct-priv-opt.is-active {
	border-color: var(--purple);
	background: rgba(124,58,237,0.18);
}
/* display:block on the title/desc is critical — without it (the
   notify-prefs bug pre-patch-59) the text wrapped inline and read as
   a single squished sentence on mobile. */
.acct-priv-opt-title { display:block; font-weight: 700; color: var(--text-primary); font-size: 14px; line-height: 1.3; }
.acct-priv-opt-desc  { display:block; font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }
/* The wrapping <span> around title+desc must grow so the text fills the
   remaining flex track. Without flex:1 + min-width:0 the inner spans
   shrink to min-content (single-character columns) on mobile. */
.acct-priv-opt > span { flex: 1 1 auto; min-width: 0; }

/* Avatar picker. */
.acct-avatars {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: 10px; max-height: 280px; overflow-y: auto;
	padding: 12px; border-radius: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid var(--border, rgba(255,255,255,0.10));
	scrollbar-width: thin;
	scrollbar-color: rgba(124,58,237,0.5) transparent;
}
.acct-avatars::-webkit-scrollbar { width: 8px; }
.acct-avatars::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.5); border-radius: 999px; }
.acct-avatars label.acct-avatar-opt {
	cursor: pointer; border-radius: 12px; padding: 4px;
	border: 2px solid transparent;
	transition: border-color .15s ease, transform .15s ease, background-color .15s ease, box-shadow .15s ease;
	display: block; margin: 0;
	position: relative;
	z-index: 1;
}
.acct-avatars label.acct-avatar-opt.is-active {
	border-color: var(--purple);
	background: rgba(124,58,237,0.18);
	box-shadow: 0 0 0 1px rgba(124,58,237,0.4);
}
@media (hover: hover) and (pointer: fine) {
	.acct-avatars label.acct-avatar-opt:hover,
	.acct-avatars label.acct-avatar-opt:focus-within {
		transform: scale(1.42);
		z-index: 30;
		border-color: rgba(124,58,237,0.82);
		background: rgba(124,58,237,0.14);
		box-shadow: 0 18px 42px rgba(0,0,0,0.46), 0 0 0 1px rgba(167,139,250,0.38);
	}
}
@media (hover: none), (pointer: coarse) {
	.acct-avatars label.acct-avatar-opt.is-active {
		transform: scale(1.38);
		z-index: 30;
		border-color: rgba(167,139,250,0.9);
		background: rgba(124,58,237,0.16);
		box-shadow: 0 18px 42px rgba(0,0,0,0.44), 0 0 0 1px rgba(167,139,250,0.42);
	}
}
.acct-avatars img { width: 100%; aspect-ratio: 1/1; display: block; border-radius: 8px; }
.acct-avatars input[type=radio] { display: none; }

/* Form actions / save button. */
.acct-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.acct-save {
	background: linear-gradient(135deg, var(--purple), #f97316) !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 30px !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	cursor: pointer;
	box-shadow: 0 6px 18px -8px rgba(124,58,237,0.6);
	font-size: 14px;
	display: inline-flex; align-items: center; gap: 6px;
}
.acct-save:hover { transform: translateY(-1px); }
.acct-toast {
	background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(124,58,237,0.16));
	border: 1px solid rgba(34,197,94,0.45);
	border-radius: 14px;
	padding: 14px 18px;
	color: var(--text-primary);
	font-weight: 600;
	margin-bottom: 18px;
	display: flex; align-items: center; gap: 10px;
}
.acct-toast i { color: #22c55e; }

/* Interest chips. */
.acct-interests {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}
.acct-interests label.acct-interest {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 14px; border-radius: 999px;
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	background: rgba(124,58,237,0.06);
	color: var(--text-primary);
	cursor: pointer; margin: 0; font-size: 13px;
	font-weight: 600;
	transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.acct-interests label.acct-interest:hover { border-color: var(--purple); transform: translateY(-1px); }
.acct-interests label.acct-interest.is-active {
	background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(249,115,22,0.16));
	border-color: var(--purple);
	color: var(--text-primary);
}
.acct-interests label.acct-interest input { display: none; }
.acct-interests label.acct-interest i { color: var(--purple); }
/* Tighten the gap between the section-sub paragraph and the bolt-hint
   — user-reported "odd spacing on interests text above buttons".
   The hint had `margin: -6px 0 4px` which pulled it up against the
   sub-paragraph, but on mobile the sub-paragraph wraps to 2 lines and
   the negative margin clipped through it. Use positive margin + tighter
   bottom margin on the sub. */
.acct-card .discover-section-sub + .acct-interest-hint { margin-top: -8px; }
.acct-interest-hint {
	display: flex; align-items: center; gap: 8px;
	font-size: 12px; color: var(--text-secondary);
	margin: 0 0 12px;
	line-height: 1.45;
}
.acct-interest-hint i { color: var(--purple); flex-shrink: 0; }
html.light-mode .acct-interests label.acct-interest {
	background: rgba(124,58,237,0.05);
	border-color: rgba(0,0,0,0.08);
}

/* Account quick-link chip nav (shared by every account page).
   V6.8 patch 207i.aa — re-designed as a tab-bar that integrates with
   the page rather than floating as a bordered capsule. Stretches to
   the page width, has a subtle bottom divider, inactive chips are
   ghost-style, active chip is a filled gradient pill. */
.acct-quicklinks {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	margin: 0 0 22px;
	padding: 4px 0 10px;
	border: none;
	background: transparent;
	border-radius: 0;
	border-bottom: 1px solid rgba(167,139,250,0.18);
	position: relative;
	max-width: 100%;
	width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}
.acct-quicklinks::-webkit-scrollbar { display: none; }
.acct-quicklink {
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 36px;
	padding: 7px 14px; border-radius: 10px 10px 0 0;
	background: transparent;
	border: none;
	color: var(--text-secondary, #cbc6df) !important;
	font-size: 13.5px; font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	position: relative;
	transition: background .15s ease, color .15s ease;
}
.acct-quicklink:hover {
	background: rgba(124,58,237,0.10);
	color: var(--text-primary, #fff) !important;
	transform: none;
}
.acct-quicklink i { color: var(--text-secondary, #cbc6df); transition: color .15s ease; }
.acct-quicklink:hover i { color: var(--purple); }
.acct-quicklink.is-active,
.acct-quicklink.is-active:hover,
.acct-quicklink.is-active:focus,
.acct-quicklink.is-active:visited {
	background: rgba(124,58,237,0.18) !important;
	border: none !important;
	color: var(--text-primary, #fff) !important;
	cursor: default;
	transform: none;
}
/* purple underline beneath the active chip — sits on top of the bottom-border */
.acct-quicklink.is-active::after {
	content: '';
	position: absolute;
	left: 8px; right: 8px; bottom: -11px;
	height: 3px;
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	border-radius: 3px 3px 0 0;
}
.acct-quicklink.is-active i { color: var(--purple) !important; }
html.light-mode .acct-quicklinks { border-bottom-color: rgba(124,58,237,0.20); }
html.light-mode .acct-quicklink { color: #4b5563 !important; }
html.light-mode .acct-quicklink i { color: #6b7280; }
html.light-mode .acct-quicklink:hover { background: rgba(124,58,237,0.08); color: #1f1235 !important; }
html.light-mode .acct-quicklink.is-active,
html.light-mode .acct-quicklink.is-active:hover { background: rgba(124,58,237,0.12) !important; color: #1f1235 !important; }
html.light-mode .acct-quicklink.is-active i { color: var(--purple) !important; }
.acct-quicklink.acct-quicklink-extra { display: none !important; }
.acct-quickmore { display: inline-flex; position: relative; flex: 0 0 auto; }
.acct-quickmore summary { list-style: none; cursor: pointer; }
.acct-quickmore summary::-webkit-details-marker { display: none; }
.acct-quickmore-menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 50;
	min-width: 190px;
	padding: 7px;
	border-radius: 14px;
	background: rgba(15,12,28,.98);
	border: 1px solid rgba(167,139,250,.22);
	box-shadow: 0 20px 42px -22px rgba(0,0,0,.74);
}
.acct-quickmore[open] .acct-quickmore-menu { display: grid; gap: 3px; }
.acct-quickmore-menu a,
.acct-quickmore-menu a:visited {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 38px;
	padding: 9px 10px;
	border-radius: 10px;
	color: var(--text-primary) !important;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none !important;
}
.acct-quickmore-menu a:hover,
.acct-quickmore-menu a:focus-visible { background: rgba(124,58,237,.16); }
.acct-quickmore-menu a.is-active,
.acct-quickmore-menu a.is-active:visited { background: var(--weird-chip-active-bg, #7c3aed); color: #fff !important; }
.acct-quickmore-menu i { width: 16px; text-align: center; color: var(--purple); }
.acct-quickmore-menu a.is-active i { color: #fff !important; }
html.light-mode .acct-quickmore-menu { background: rgba(255,255,255,.98); border-color: rgba(124,58,237,.18); box-shadow: 0 20px 42px -24px rgba(47,34,84,.28); }

/* Account/profile pages already have the app-style contextual header.
	Hide the repeated in-page Account/Profile bars so the nav becomes the
	first useful element on every account surface. Keep other-user profile
	back bars, because those provide return navigation to Connect. */
.discover-wrap[data-cat="account"] > .discover-bar,
.discover-wrap[data-cat="profile"] > .discover-bar:not(:has(.discover-bar-back)) {
	display: none !important;
}

/* Reset-password page bespoke card (so reset-password.php can drop its
   inline .rp-card style). */
.acct-rp-card {
	background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(249,115,22,0.04), rgba(6,182,212,0.04)), var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 24px clamp(18px, 3vw, 28px) 26px;
	box-shadow: 0 8px 24px -16px rgba(0,0,0,0.5);
	max-width: 540px;
	margin: 0 auto;
}
.acct-rp-card h2 {
	margin: 0 0 8px;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 20px; font-weight: 700; color: var(--text-primary);
	display: inline-flex; align-items: center; gap: 8px;
}
.acct-rp-card h2 i { color: var(--purple); }
.acct-rp-card p.acct-rp-sub {
	color: var(--text-secondary); font-size: 14px; line-height: 1.5;
	margin: 0 0 16px;
}
.acct-rp-card .input-group { margin-bottom: 12px; }
.acct-rp-card .input-group-text {
	background: rgba(124,58,237,0.10);
	border: 1px solid var(--border);
	color: var(--purple);
	border-right: none;
	border-radius: 999px 0 0 999px;
}
.acct-rp-card .form-control {
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text-primary) !important;
	border-radius: 0 999px 999px 0;
	padding: 11px 16px;
}
.acct-rp-card .form-control:focus {
	border-color: var(--purple);
	box-shadow: none;
	background: var(--surface);
}
html.light-mode .acct-rp-card .form-control { background: #fff; color: var(--text-primary) !important; }
.acct-rp-card .submitreg {
	background: linear-gradient(135deg, var(--purple), #f97316) !important;
	color: #fff !important;
	border: none !important;
	padding: 11px 26px !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	cursor: pointer;
}
.acct-rp-card .submitreg:hover { transform: translateY(-1px); }

/* ----- Mobile fixes for account pages (<=640px) ----- */
@media (max-width: 640px) {
	/* User: "buttons bumping to 2 rows causing things to bump down too much".
	   With 4 chips at ~108px each, total ~440px doesn't fit in 360px viewport
	   and breaks across 3 rows on iPhone SE. Switch to a horizontally
	   scrollable single row that hides the scrollbar — same pattern as
	   .stream-filters and .discover-greet-chips on mobile (patch 54). */
	.acct-quicklinks {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 6px;
		margin: 0 0 14px;
		padding: 7px;
		max-width: 100%;
		width: 100%;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%);
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%);
	}
	.acct-quicklinks::-webkit-scrollbar { display: none; }
	.acct-quicklink { flex-shrink: 0; padding: 8px 12px; font-size: 12.5px; scroll-snap-align: start; }
	.acct-quickmore { display: inline-flex; flex-shrink: 0; }
	.acct-quickmore .acct-quicklink-more { margin: 0; }
	.acct-quickmore-menu { right: auto; left: 50%; transform: translateX(-50%); top: calc(100% + 7px); }

	/* Tighter card padding on mobile to give content more room. */
	.acct-card { padding: 18px 16px 20px; border-radius: 16px; }

	/* User: "text not lining up next to radio/checkboxes" — on mobile the
	   18px input + 12px gap was fine but `align-items: flex-start` paired
	   with `margin-top: 3px` on the input made the radio sit BELOW the
	   title. Use flex-start with no extra margin so the radio's vertical
	   midline matches the title's first cap-height. */
	.acct-priv label.acct-priv-opt,
	.acct-notif label.acct-priv-opt,
	label.acct-priv-opt {
		padding: 12px 14px;
		gap: 10px;
	}
	.acct-priv-opt-title { font-size: 13.5px; }
	.acct-priv-opt-desc  { font-size: 12px; margin-top: 3px; }

	/* Interests grid: tighter rows on mobile. */
	.acct-interests { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
	.acct-interests label.acct-interest { padding: 9px 12px; font-size: 12.5px; }

	/* Save button full-width on mobile so users can't miss it. */
	.acct-actions { justify-content: stretch; }
	.acct-save { width: 100%; justify-content: center; }
}

/* ----- Register-page top spacing tighten (patch 59 follow-on) -----
   User: "while you're at it, fix the register page spacing issues at
   the top". The .auth-wrap padding (12px top) + .discover-bar's own
   ~22px top padding + .auth-shell + .auth-alert margin all stacked,
   producing ~80px of dead space above the welcome callout on mobile.
   Tighten the auth-alert top margin and pull the first .auth-card
   up under it. */
.auth-wrap .auth-shell > .auth-alert:first-child { margin-top: 4px; }
.auth-wrap .auth-shell > form { margin-top: 14px; }
@media (max-width: 640px) {
	.auth-wrap { padding: 8px 12px 48px; }
	.auth-wrap .discover-bar { margin-bottom: 10px; padding: 12px 14px; }
	.auth-wrap .auth-shell > .auth-alert:first-child { margin-top: 0; }
	.auth-wrap .auth-shell > form { margin-top: 10px; }
}

/* ================================================================
   V6.8 patch 60 — Profile hero spacing + always-on compare strip
   ----------------------------------------------------------------
   User reported (May 2026):
     • "Opportunity to fix spacing on profile pages where name and
        icons are displayed."
     • "I liked having the scrollbar for others to compare against.
        Keep that always but show the current person compared as
        the one highlighted."
     • "Be sure to update the top profile header to the person being
        compared against."
     • "On account page create a link with a button at the top for
        people to view their profile page."

   Background: patch 58 turned the hero into a 2-col grid (avatar |
   right-column stack of name → pct → meta → actions). On desktop
   that right column gets ~900px of width but only ~360px of content
   is ever wider than ~200px, so a huge amount of horizontal space
   on the right of the card sits empty while the vertical stack
   makes the card ~270px tall. Also the avatar was `align-self:
   center`, which floats it visually below the name instead of
   anchoring at the title line.

   Patch 60 changes:
     1. Desktop hero → 3-col grid (avatar | text-stack | actions).
        The actions column ("Edit account / Copy share link", or
        "Follow / Message") sits to the RIGHT of the meta chips on
        wide screens, eating the previously-empty horizontal space.
        Card height drops from ~270px to ~170px.
     2. Avatar `align-self: start` (was center) so it anchors to
        the title baseline. Adds 8px top inset for optical balance.
     3. Tighter row-gap (2px), tighter padding, tighter name margin.
     4. `.profile-grid.profile-grid-single` lets self-profile use
        a single-column grid (no breakdown card).
   ================================================================ */
@media (min-width: 880px) {
	.profile-hero-content {
		grid-template-columns: auto 1fr auto;
		column-gap: 22px;
		row-gap: 2px;
		align-items: start;
		padding: 18px 22px 20px;
	}
	.profile-hero-avatar {
		grid-row: 1 / span 3;
		grid-column: 1;
		align-self: start;
		margin-top: 4px;
		width: 80px;
		height: 80px;
	}
	.profile-hero-name {
		grid-column: 2;
		grid-row: 1;
		font-size: 22px;
		line-height: 1.2;
		margin: 0;
	}
	.profile-hero-pct {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
		margin-top: 4px;
	}
	.profile-hero-meta {
		grid-column: 2;
		grid-row: 3;
		justify-content: flex-start;
		margin: 8px 0 0;
	}
	.profile-hero-actions {
		/* Right rail with grouped actions to reduce visual clutter. */
		grid-column: 3;
		grid-row: 1 / span 3;
		align-self: center;
		justify-content: center;
		gap: 10px;
		margin-top: 0;
		min-width: 320px;
		max-width: 420px;
	}
	.profile-hero-actions-main,
	.profile-hero-actions-safety {
		grid-template-columns: repeat(2, minmax(136px, 1fr));
	}
}

/* On tablet/narrow desktop (641-879px) keep the patch-58 2-col grid
   but with patch-60's tighter spacing. */
@media (min-width: 641px) and (max-width: 879px) {
	.profile-hero-content {
		row-gap: 2px;
		padding: 18px 22px 20px;
	}
	.profile-hero-avatar {
		align-self: start;
		margin-top: 4px;
		width: 78px;
		height: 78px;
	}
	.profile-hero-name { font-size: 22px; line-height: 1.2; margin: 0; }
	.profile-hero-pct { margin-top: 4px; }
	.profile-hero-meta { margin: 8px 0 0; }
	.profile-hero-actions { margin-top: 10px; gap: 9px; }
	.profile-hero-actions-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.profile-hero-actions-main .profile-action-primary,
	.profile-hero-actions-main .profile-action-following { grid-column: 1 / -1; }
}

/* Self-profile: no match-breakdown card, so the About card alone
   should NOT stay stuck at 50% width with empty whitespace beside it. */
.profile-grid.profile-grid-single {
	grid-template-columns: minmax(0, 1fr) !important;
}
.profile-grid.profile-grid-single .profile-card { max-width: 100%; }

/* ----- Mobile (<=640px) — keep centered stack but make actions row
   inline with meta chips so the hero card is shorter. ----- */
@media (max-width: 640px) {
	/* V6.9 patch — force the avatar+name to stack vertically on phones.
	   The default .profile-hero-content above is already flex-column,
	   but the >=641px grid layout was leaking onto narrow viewports in
	   the iOS app (Capacitor reports a wider viewport on some devices),
	   producing avatar-left / name-right side-by-side. Re-assert the
	   centered column layout and clear any grid placements so name,
	   chips, and actions stack neatly under the avatar. */
	.profile-hero-content {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
		grid-template-columns: none !important;
		padding: 20px 14px 18px; gap: 8px;
	}
	.profile-hero-content > .profile-hero-avatar-col,
	.profile-hero-content > .profile-hero-main,
	.profile-hero-name,
	.profile-hero-pct,
	.profile-hero-meta,
	.profile-hero-taste-tag,
	.profile-hero-title,
	.profile-hero-actions {
		grid-column: auto !important;
		grid-row: auto !important;
		justify-self: center !important;
		align-self: auto !important;
	}
	.profile-hero-avatar { width: 78px; height: 78px; }
	.profile-hero-name { font-size: 20px; margin: 0; }
	.profile-hero-pct { font-size: 12.5px; padding: 6px 12px; }
	.profile-hero-pct strong { font-size: 15px; }
	.profile-hero-meta { gap: 5px 6px; margin-top: 4px; justify-content: center; }
	.profile-hero-meta li { font-size: 11.5px; padding: 4px 9px; }
	.profile-hero-actions { gap: 8px; margin-top: 6px; }
	.profile-hero-actions-main,
	.profile-hero-actions-safety { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
	.profile-hero-actions-main .profile-action-primary,
	.profile-hero-actions-main .profile-action-following { grid-column: 1 / -1; }
	.profile-hero-actions-safety { padding-top: 5px; }
	.profile-hero-actions .profile-action { padding: 9px 12px; font-size: 12.5px; }
	.profile-hero-safety-foot { justify-content: center; margin-top: 0; }
	.profile-hero-safety-manage { font-size: 12px; }
	.profile-compare { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* Account-page header — "View my profile" CTA that opens above the
   chip nav so users can immediately jump to their public profile.
   Mirrors the gradient .profile-action style. Selector uses the
   `a.acct-profile-cta` compound (specificity 0,1,1) so it ties — and
   because it's later in the cascade, defeats — the global
   `.wrapper a { color: var(--purple) !important }` rule that would
   otherwise leave the button text in faint purple-on-purple. */
.acct-profile-cta-wrap {
	display: flex; justify-content: flex-start;
	margin: 0 0 14px;
}
a.acct-profile-cta,
a.acct-profile-cta:link,
a.acct-profile-cta:visited,
a.acct-profile-cta:hover,
a.acct-profile-cta:focus {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 22px; border-radius: 999px;
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
	color: #fff !important;
	font-weight: 700; font-size: 14px;
	border: 1px solid #6d28d9;
	box-shadow: 0 6px 18px -8px rgba(124,58,237,0.6);
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
a.acct-profile-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -10px rgba(124,58,237,0.7);
	color: #fff !important;
}
a.acct-profile-cta i { color: #fff !important; }
@media (max-width: 640px) {
	.acct-profile-cta-wrap { margin-bottom: 10px; }
	a.acct-profile-cta { padding: 10px 18px; font-size: 13px; }
}

/* Blocked users page (account safety management) */
.blocked-list { display: grid; gap: 12px; margin-top: 14px; }
.blocked-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--bg-raised);
}
.blocked-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(124,58,237,0.4);
}
.blocked-meta { min-width: 0; }
.blocked-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 16px;
	color: var(--text-primary);
	text-decoration: none !important;
}
.blocked-name:hover { color: var(--purple-light); }
.blocked-sub {
	font-size: 12.5px;
	color: var(--text-secondary);
	margin-top: 3px;
	line-height: 1.35;
}
.blocked-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.blocked-actions .profile-action {
	width: auto;
	min-width: 122px;
	padding: 9px 14px;
}
.blocked-empty {
	text-align: center;
	padding: 28px 16px;
	border: 1px dashed var(--border);
	border-radius: 14px;
	color: var(--text-secondary);
}
.blocked-empty i {
	display: block;
	font-size: 28px;
	margin-bottom: 10px;
	color: var(--purple-light);
}
@media (max-width: 640px) {
	.blocked-item {
		grid-template-columns: auto 1fr;
		align-items: start;
	}
	.blocked-actions {
		grid-column: 1 / -1;
		justify-content: stretch;
	}
	.blocked-actions .profile-action {
		width: 100%;
		min-width: 0;
	}
}

/* =====================================================================
   V6.8 patch 61 — Compact image-less cards + filter pillrow polish +
   "scroll for more" hint (May 2026)
   ---------------------------------------------------------------------
   * Music / Local / Place / AI cards that show only an emoji fallback
     were stretched as tall as their image-bearing siblings (220-280px).
     Now capped at ~96px so the card collapses to the body height.
   * Filter pillrow on movies / tv / music / place subpages was visually
     flat — bigger pills, brighter active state, "By" label moved into
     pill chrome, sub-line under section heading restates "showing N
     items, scroll for more".
   * Removed the legacy "Showing 1–24 of N" + bottom paginator since
     infinite scroll handles loading.
   ===================================================================== */

/* (1) Tighter media block when there's no real image to show. The base
   per-cat aspect-ratio + max-height rules at ~line 3142 inflate the
   emoji-only fallback to ~220-280px tall. Lock the blank variant to a
   compact 96px strip so the card height equals the body. */
.discover-card-item .discover-card-media.discover-card-media-blank {
	aspect-ratio: auto !important;
	max-height: 96px !important;
	min-height: 96px !important;
	height: 96px !important;
}
.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji {
	font-size: 42px;
	opacity: 0.55;
}
@media (max-width: 640px) {
	.discover-card-item .discover-card-media.discover-card-media-blank {
		max-height: 80px !important;
		min-height: 80px !important;
		height: 80px !important;
	}
	.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji {
		font-size: 34px;
	}
}

/* (2) Filter pillrow polish for subpages — bigger, more inviting,
   stronger active state that reads as "this is the current view". */
.subpage-pillrow {
	gap: 8px !important;
	margin-bottom: 14px !important;
}
.subpage-pillrow-label {
	font-size: .68rem !important;
	color: var(--text-secondary);
	padding: 6px 8px 6px 2px !important;
}
.subpage-pill {
	font-size: .88rem !important;
	font-weight: 600 !important;
	padding: 8px 16px !important;
	border-radius: 999px !important;
	background: rgba(124,58,237,0.06) !important;
	border: 1px solid rgba(124,58,237,0.18) !important;
	color: var(--text-primary) !important;
	transition: all 0.18s ease;
}
.subpage-pill:hover {
	background: rgba(124,58,237,0.14) !important;
	border-color: rgba(124,58,237,0.42) !important;
	transform: translateY(-1px);
}
.subpage-pill.active {
	background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 60%, #6d28d9 100%) !important;
	color: #fff !important;
	border-color: #6d28d9 !important;
	box-shadow: 0 6px 18px -6px rgba(124,58,237,0.55);
	font-weight: 700 !important;
}
.subpage-pill.active:hover { transform: translateY(-1px); color: #fff !important; }
/* "Recommended" gets a small star icon to underline it's the default smart pick. */
.subpage-pill-rec::before {
	content: "\f005"; /* fas fa-star */
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
	font-weight: 900;
	margin-right: 6px;
	font-size: .78rem;
	opacity: 0.85;
}
html.light-mode .subpage-pill {
	background: rgba(124,58,237,0.05) !important;
	border-color: rgba(124,58,237,0.22) !important;
}

/* (3) Result-count line — converted from "Showing N–M of T · …" into a
   single calm sentence: "T items · filters · scroll for more". */
.subpage-result-meta {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
	font-size: .9rem !important;
	color: var(--text-secondary);
	margin: 6px 0 14px !important;
}
.subpage-result-meta strong {
	color: var(--text-primary);
	font-weight: 700;
}
.subpage-result-meta .subpage-scroll-hint {
	display: inline-flex; align-items: center; gap: 6px;
	margin-left: auto;
	font-size: .82rem;
	color: var(--text-secondary);
	opacity: 0.85;
}
.subpage-result-meta .subpage-scroll-hint i {
	font-size: 11px;
	transform: translateY(1px);
}
@media (max-width: 640px) {
	.subpage-result-meta { font-size: .85rem !important; }
	.subpage-result-meta .subpage-scroll-hint { margin-left: 0; font-size: .78rem; }
}

/* (4) Sub-page section heading tighter so the filters sit closer. */
.discover-wrap .discover-section .discover-section-head {
	margin-bottom: 10px;
}

/* (5) Mobile select-chip row — apply same active-state visual lift. */
.subpage-select-chip select {
	font-weight: 600;
}

/* =================================================================
   V6.8 patch 68 — Profile breakdown drill-down + compare-detail page
   =================================================================
   - Make the per-cat .profile-match-row cards clickable (hover state +
     chevron + cursor) when there's data to drill into.
   - New compare-detail.php chrome: hero with both avatars + per-cat
     match%, filter pills (All/Agree/Differ), item rows with both
     users' picks side-by-side.
   ================================================================= */

/* clickable rows on .profile-match-list ----------------------------- */
.profile-match-list a.profile-match-row,
.profile-match-list a.profile-match-row:link,
.profile-match-list a.profile-match-row:visited {
    text-decoration: none;
    color: inherit;
    display: flex;
}
.profile-match-row.is-drillable {
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.18s ease, transform 0.18s ease;
}
.profile-match-row.is-drillable:hover,
.profile-match-row.is-drillable:focus-visible {
    background: rgba(124, 58, 237, 0.08);
    transform: translateX(2px);
    outline: none;
}
html.light-mode .profile-match-row.is-drillable:hover,
html.light-mode .profile-match-row.is-drillable:focus-visible {
    background: rgba(124, 58, 237, 0.06);
}
.profile-match-chev {
    margin-left: 6px;
    opacity: 0.45;
    font-size: 11px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.profile-match-row.is-drillable:hover .profile-match-chev {
    opacity: 1;
    transform: translateX(2px);
}
.profile-match-foot {
    margin: 14px 4px 0;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-secondary, #a8a4c4);
    background: rgba(124, 58, 237, 0.05);
    border-radius: 10px;
    border-left: 3px solid rgba(124, 58, 237, 0.3);
}
.profile-match-foot i { color: var(--purple, #7c3aed); margin-right: 4px; }

/* compare-detail.php hero ------------------------------------------ */
.cd-hero {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 22px 22px;
    background: var(--surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    margin-bottom: 18px;
    background-image: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.10), transparent 70%);
}
.cd-hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    min-width: 0;
}
.cd-hero-them { align-items: flex-start; text-align: left; }
.cd-hero-me   { align-items: flex-end;   text-align: right; }
.cd-avatar img {
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.4);
    background: rgba(0, 0, 0, 0.2);
    object-fit: cover;
    display: block;
}
.cd-hero-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary, #fff);
}
.cd-hero-side a.cd-hero-name,
.cd-hero-side a.cd-hero-name:link,
.cd-hero-side a.cd-hero-name:visited { color: var(--text-primary, #fff) !important; text-decoration: none; }
.cd-hero-side a.cd-hero-name:hover { color: var(--purple, #7c3aed) !important; }
.cd-hero-loc { font-size: 12px; color: var(--text-secondary, #a8a4c4); }
.cd-hero-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 22px;
    border-radius: 14px;
    min-width: 130px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.cd-hero-score-pct {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-hero-score-sub { font-size: 11px; color: var(--text-secondary, #a8a4c4); text-transform: uppercase; letter-spacing: 0.04em; }
.cd-hero-score-high .cd-hero-score-pct { color: #22c55e; }
.cd-hero-score-mid  .cd-hero-score-pct { color: #f59e0b; }
.cd-hero-score-low  .cd-hero-score-pct { color: #f97316; }
.cd-hero-score-na   .cd-hero-score-pct { color: var(--text-secondary, #a8a4c4); font-size: 22px; }
.cd-hero-score-high { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.05); }
.cd-hero-score-mid  { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.05); }
.cd-hero-score-low  { border-color: rgba(249, 115, 22, 0.4); background: rgba(249, 115, 22, 0.05); }

/* compare-detail summary + filter pills ---------------------------- */
.cd-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 4px;
}
.cd-summary-stats { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cd-stat { font-size: 13px; color: var(--text-secondary, #a8a4c4); }
.cd-stat strong { color: var(--text-primary, #fff); margin-right: 2px; font-variant-numeric: tabular-nums; }
.cd-stat-agree i  { color: #22c55e; margin-right: 3px; }
.cd-stat-differ i { color: #f97316; margin-right: 3px; }
.cd-filters { display: flex; gap: 6px; }
.cd-filters a.cd-filter,
.cd-filters a.cd-filter:link,
.cd-filters a.cd-filter:visited {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff) !important;
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.22);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.cd-filters a.cd-filter:hover { background: rgba(124, 58, 237, 0.20); }
.cd-filters a.cd-filter.is-active {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 60%, #6d28d9 100%);
    color: #fff !important;
    border-color: #6d28d9;
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
}
.cd-filters a.cd-filter-agree.is-active  { background: linear-gradient(135deg, #4ade80, #16a34a); border-color: #16a34a; box-shadow: 0 6px 22px rgba(34, 197, 94, 0.35); }
.cd-filters a.cd-filter-differ.is-active { background: linear-gradient(135deg, #fb923c, #ea580c); border-color: #ea580c; box-shadow: 0 6px 22px rgba(249, 115, 22, 0.35); }

/* compare-detail item rows ----------------------------------------- */
.cd-list { display: flex; flex-direction: column; gap: 10px; }
.cd-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: var(--surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-left-width: 4px;
    border-radius: 14px;
}
.cd-row-agree  { border-left-color: #22c55e; background-image: linear-gradient(90deg, rgba(34, 197, 94, 0.06), transparent 30%); }
.cd-row-differ { border-left-color: #f97316; background-image: linear-gradient(90deg, rgba(249, 115, 22, 0.06), transparent 30%); }
.cd-row-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.cd-row-title {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary, #fff);
    line-height: 1.3;
}
.cd-row-sub { font-size: 12px; color: var(--text-secondary, #a8a4c4); }
.cd-row-status {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cd-row-agree  .cd-row-status { color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.cd-row-differ .cd-row-status { color: #f97316; background: rgba(249, 115, 22, 0.12); }
.cd-row-votes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.cd-row-vote {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    min-width: 0;
}
html.light-mode .cd-row-vote { background: rgba(0, 0, 0, 0.04); }
.cd-row-vote-who {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #a8a4c4);
    font-weight: 600;
}
.cd-vote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    overflow-wrap: anywhere;
}
.cd-vote i { font-size: 13px; }
.cd-vote-up    { color: #22c55e; }
.cd-vote-down  { color: #f97316; }
.cd-vote-pick  { color: var(--text-primary, #fff); }
.cd-vote-pick i { color: #a78bfa; }

/* compare-detail empty + pager ------------------------------------- */
.cd-empty { padding: 28px 16px; text-align: center; }
.cd-empty p { margin: 0 0 8px; }
.cd-empty-hint { font-size: 13px; color: var(--text-secondary, #a8a4c4); }
.cd-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    padding: 14px;
}
.cd-pager-state { font-size: 13px; color: var(--text-secondary, #a8a4c4); font-variant-numeric: tabular-nums; }
.cd-pager a.cd-pager-btn,
.cd-pager a.cd-pager-btn:link,
.cd-pager a.cd-pager-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.22);
    color: var(--text-primary, #fff) !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.18s ease;
}
.cd-pager a.cd-pager-btn:hover { background: rgba(124, 58, 237, 0.20); }

/* compare-detail mobile -------------------------------------------- */
@media (max-width: 640px) {
    .cd-hero { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
    .cd-hero-them { grid-row: 1; }
    .cd-hero-me   { grid-row: 2; align-items: flex-start; text-align: left; }
    .cd-hero-score { grid-row: 1 / span 2; grid-column: 2; min-width: 100px; padding: 10px 14px; }
    .cd-hero-score-pct { font-size: 26px; }
    .cd-summary { flex-direction: column; align-items: stretch; }
    .cd-summary-stats { justify-content: space-between; }
    .cd-filters { justify-content: stretch; }
    .cd-filters a.cd-filter { flex: 1 1 0; text-align: center; }
    .cd-row-votes { grid-template-columns: 1fr; }
    .cd-row-head { flex-wrap: wrap; }
}

/* =================================================================
   V6.8 patch 71 — Uniform card-image heights in the mixed stream
                 + much shorter blank/emoji-only thumbs on desktop
   =================================================================
   The For-You / discover mixed stream interleaves cats with very
   different aspect ratios (movies 16/10 → 170px banner, music 1/1
   → 220px square, local 4/3 → 240px). Real-image cards looked fine
   at 170px but blank/emoji-only fallbacks (Music, Local without
   photos, Boardgames) towered over the row, breaking the visual
   grid. Lock everything in [data-mixed] streams to the same 170px
   banner. On desktop also collapse the blank-emoji thumb to ~110px
   so an empty fallback isn't louder than a real cover image.
   Per-cat tabs (no [data-mixed]) keep their original taller layouts.
   ================================================================= */
.discover-stream[data-mixed] .discover-card-item .discover-card-media {
	aspect-ratio: 16 / 10 !important;
	max-height: 170px !important;
}
/* keep the existing movies/tv hover-unfurl behaviour by NOT overriding
   the :hover rule — the !important above only hits the base state. The
   per-cat :hover rules at line 3157+ still bump movies/tv to 2/3 / 400px.
   But we DO need the new uniform height to apply to travel/local/music/
   boardgames, which never had hover state. Confirmed visually: these
   cats don't define :hover overrides on .discover-card-media. */

/* Boardgames default banner: keep its pink gradient backdrop visible.
   The base rule at line 3192 sets a pink bg — the new uniform height
   above wins, but the bg follows from .discover-card-item[data-cat=...] */

@media (min-width: 601px) {
	/* Blank-emoji fallback thumb: be small and quiet on desktop. Mobile
	   keeps its current sizing because emoji at small widths fills the
	   tile naturally and there's no "hand-me-down" cropping issue. */
	.discover-card-media-blank {
		aspect-ratio: auto !important;
		max-height: 110px !important;
		min-height: 110px !important;
	}
	.discover-card-media-blank .discover-card-emoji {
		font-size: 44px;
	}
}

/* =================================================================
   V6.8 patch 72 — Connect tab matches the other Discover sub-pages
   =================================================================
   Connect tab's bespoke "glass card → horizontal scroll-snap rows of
   200px tiles" looked nothing like the other tabs (Movies / TV /
   Music / Travel / Local / Boardgames), which use a flat
   .discover-section + responsive .discover-stream grid + rounded
   .discover-card chrome.

   This patch:
   1. Drops the Connect-only glass-card wrapper so the section sits
      flat like every other tab.
   2. Converts each .connect-row-tiles from a horizontal flex carousel
      into a responsive CSS grid mirroring .discover-stream's
      auto-fill / minmax(220px, 1fr) pattern.
   3. Restyles .connect-tile to read like a .discover-card (full-cell
      width, larger avatar, soft shadow on hover, generous padding).
   4. Inlines .connect-row-head as a discover-section-style sub-bar
      so the per-row dividers feel like the rest of the discover hub.
   ================================================================= */

/* (1) Drop the bespoke glass wrapper — let .connect-section inherit
       the flat .discover-section spacing every other tab uses. We
       use !important to defeat the earlier "(#5) Glass card" block
       at line ~5377 without rewriting that block. */
.discover-section.connect-section {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin-top: 0 !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: none !important;
}
html.light-mode .discover-section.connect-section {
	background: none !important;
	border: none !important;
}

/* (2) Convert the horizontal flex-scroll row into a responsive grid.
       Mirrors .discover-stream's auto-fill / minmax(220px, 1fr) so
       Connect tiles flow into the same column count as item cards on
       any viewport. Defeat the existing flex/scroll-snap rules from
       line ~4235 with !important. */
.discover-section.connect-section .connect-row-tiles {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
	gap: 18px !important;
	overflow: visible !important;
	scroll-snap-type: none !important;
	padding: 4px 0 4px !important;
}
@media (max-width: 600px) {
	.discover-section.connect-section .connect-row-tiles {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
		gap: 12px !important;
	}
}

/* (3) Tile chrome that matches .discover-card. Full-cell width (no
       fixed 200px), 16px radius, surface bg, hover lift + shadow. */
.discover-section.connect-section .connect-tile {
	width: 100% !important;
	flex: initial !important;
	scroll-snap-align: none !important;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 18px 14px 14px;
	gap: 12px;
	transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.discover-section.connect-section .connect-tile:hover {
	transform: translateY(-3px);
	border-color: var(--purple-border, rgba(124,58,237,0.45));
	box-shadow: 0 12px 32px rgba(0,0,0,0.35);
	background: rgba(124,58,237,0.04);
}
html.light-mode .discover-section.connect-section .connect-tile:hover {
	box-shadow: 0 10px 28px rgba(124,58,237,0.18);
	background: rgba(124,58,237,0.04);
}
/* Larger avatar to match the card aesthetic (was 56px → 72px). */
.discover-section.connect-section .connect-tile-avatar img {
	width: 72px; height: 72px;
}
.discover-section.connect-section .connect-tile-name {
	font-size: 0.95rem;
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.discover-section.connect-section .connect-tile-meta {
	font-size: 12px;
	color: var(--text-secondary, #a8a4c4);
	text-align: center;
}
.discover-section.connect-section .connect-tile-pct {
	font-size: 12px;
	padding: 4px 12px;
}
/* Action chips horizontal at the bottom (matches .discover-card-actions). */
.discover-section.connect-section .connect-tile-actions {
	flex-direction: row !important;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid var(--border-soft, rgba(255,255,255,0.06));
}
.discover-section.connect-section .connect-tile-act {
	flex: 1 1 0;
	min-width: 0;
	padding: 7px 8px;
	font-size: 11.5px;
}
@media (max-width: 600px) {
	.discover-section.connect-section .connect-tile { padding: 14px 10px 10px; }
	.discover-section.connect-section .connect-tile-avatar img { width: 60px; height: 60px; }
	.discover-section.connect-section .connect-tile-act { font-size: 11px; padding: 6px 6px; }
}

/* (4) Per-row sub-head feels like a discover section divider
       instead of a tiny uppercase chip floating above a carousel. */
.discover-section.connect-section .connect-row {
	margin-top: 24px;
}
.discover-section.connect-section .connect-row:first-of-type {
	margin-top: 14px;
}
.discover-section.connect-section .connect-row-head {
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0.01em;
	color: var(--text-primary);
	padding-bottom: 8px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--border-soft, rgba(255,255,255,0.06));
}
.discover-section.connect-section .connect-row-head i { color: var(--purple); }
.discover-section.connect-section .connect-row-more {
	font-size: 12px;
	text-transform: none;
	letter-spacing: 0;
}
/* Drop the +divider between rows since each row now has its own header
   underline — double-divider would be visually noisy. */
.discover-section.connect-section .connect-row + .connect-row {
	border-top: none !important;
	padding-top: 0 !important;
	margin-top: 24px !important;
}
.discover-section.connect-section .connect-tab-foot {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--border-soft, rgba(255,255,255,0.06));
}

/* =================================================================
   V6.8 patch 73 — Default emoji fallback thumbs: shrink aggressively
   =================================================================
   When a card has no real image, we used to show a 96x222 strip with
   a 42px emoji at 0.55 opacity (per patches 70/71). The emoji still
   visually dominated the card. Per user request: "wherever we are
   using default icons, like music, make the images very small."

   Fix: Push the blank thumb down to ~64px tall with a 24px emoji on
   desktop (~50px / 18px on mobile), at 0.4 opacity so it reads as a
   quiet category marker rather than the centerpiece. Specificity is
   high enough (0,4,1) and !important is used on the box dims to
   defeat the earlier patch 70/71 blocks at line ~8370 / ~8794
   without rewriting them.
*/
.discover-card-item .discover-card-media.discover-card-media-blank {
	max-height: 64px !important;
	min-height: 64px !important;
	height: 64px !important;
}
.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji {
	font-size: 24px;
	opacity: 0.4;
	line-height: 1;
}
@media (max-width: 640px) {
	.discover-card-item .discover-card-media.discover-card-media-blank {
		max-height: 50px !important;
		min-height: 50px !important;
		height: 50px !important;
	}
	.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji {
		font-size: 18px;
	}
	/* V6.9 — chip size match. The previous override shrank the tag/pct
	   chips on blank-media cards (facts/jokes/lifehacks/podcasts) to
	   10px/3px while imaged cards stayed at 11px/5-10px, producing
	   visibly different chip sizes within the same mixed stream row.
	   Keep the chip size identical across cards; only re-anchor the
	   vertical offset so it still sits inside the shorter strip. */
	.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-tag,
	.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-pct {
		top: 6px;
	}
}
/* Desktop: keep the same chip dimensions everywhere; only re-anchor. */
.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-tag,
.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-pct {
	top: 8px;
}
.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-save {
	top: 8px;
}


/* =================================================================
   V6.8 patch 74 — Hide redundant category tag on single-cat pages
   =================================================================
   On music.php / movies.php / tv.php / travel.php / local.php /
   boardgames.php (and discover.php?tab=cat), every card on the page
   is the same category, so the "Music" / "Movies" pill in the top-
   left of every thumbnail is just noise. Only the For-You mixed
   stream actually mixes categories.

   The mixed stream is marked `<div class="discover-stream"
   data-mixed="1">` (discover.php:1778) — single-cat streams have no
   data-mixed attr (discover.php:1703, subpage.php:1124).

   Hide the tag in non-mixed streams. Social cards inside the mixed
   stream still show category context via .discover-card-social-cat
   (different class, untouched by this rule).
*/
.discover-stream:not([data-mixed]) .discover-card-tag {
	display: none !important;
}


/* =================================================================
   V6.8 patch 76 — "View my profile" CTA inline with account heading
   =================================================================
   Across editinfo / answers / notify-prefs / reset-password the
   "View my profile" gradient button now lives inside the .discover-bar
   header (right-aligned via margin-left:auto) instead of below it as
   a full-width row. Tighter chrome, identical placement on every
   account page, and the chip nav still sits underneath.
*/
.discover-bar a.acct-profile-cta {
	margin-left: auto;
	padding: 8px 16px;
	font-size: 13px;
	box-shadow: 0 4px 14px -8px rgba(124,58,237,0.55);
}
.discover-bar a.acct-profile-cta i { font-size: 12px; }
@media (max-width: 600px) {
	/* On narrow screens .discover-bar wraps; keep the CTA full-width on
	   its own row instead of squashed next to a long title. */
	.discover-bar a.acct-profile-cta {
		margin-left: 0;
		width: 100%;
		justify-content: center;
		padding: 10px 16px;
		font-size: 13px;
	}
}



/* =============================================================
   V6.8 patch 77 — Messaging UX: oldest at top, newest at bottom,
   composer always within thumb reach.

   Until now, .msg-thread-body rendered DOM in DESC order (newest
   first) and *displayed* them that way, which placed the composer
   at the very bottom of the page — on mobile that meant scrolling
   past the entire history before you could type a reply.

   Fix: flex-direction:column-reverse flips the visual order so
   the oldest message sits at the top, newest just above the
   composer (the standard chat layout every messaging app uses).
   No PHP/SQL changes: the DOM stays newest-first, the .weird-
   infscroll loader stays at the END of DOM = the visual TOP,
   which is exactly where "load older" belongs.

   Also: cap the whole thread (head+body+composer) to the viewport
   on mobile so the composer is one tap away, not buried below
   the messages.

   NOTE: messages.php has an inline <style> with .msg-thread-body
   rules that loads AFTER this external sheet, so we boost
   specificity to .msg-shell .msg-thread-body (0,2,0) to win the
   cascade. The same trick is used by the mobile rules below.
   ============================================================= */
.msg-shell .msg-thread-body {
        flex-direction: column-reverse;
}
@media (max-width: 860px) {
        /* When the user is in the thread pane on mobile, lock the
           entire .msg-thread to the viewport so head + body + composer
           always fit on screen and composer stays pinned at the bottom. */
        .msg-shell[data-mobile-pane="thread"] .msg-thread {
			height: calc(100dvh - 150px);
			min-height: calc(100dvh - 150px);
			max-height: calc(100dvh - 150px);
			height: min(76vh, calc(100dvh - 150px));
			min-height: min(76vh, calc(100dvh - 150px));
			max-height: min(76vh, calc(100dvh - 150px));
        }
        .msg-shell[data-mobile-pane="thread"] .msg-thread-body {
                flex: 1 1 auto !important;
                max-height: none !important;
                min-height: 0 !important;
                overflow-y: auto !important;
        }
		.msg-shell[data-mobile-pane="thread"] .msg-composer {
			flex: 0 0 auto !important;
		}
		.msg-shell[data-mobile-pane="thread"] .msg-composer-field {
			flex: 1 1 auto !important;
			min-width: 0 !important;
		}
}

/* =====================================================================
   V6.8 patch 87 — Geo preferences picker (editinfo.php) + "filtering by"
   chip (place.php result-meta).

   Lets users opt into a set of US metros so the local-content stream and
   place.php local rows bias toward those cities. Travel/destination rows
   are NEVER filtered. Mirrors the .acct-interest chip pattern from patch
   47 for dark + light mode contrast.
   ===================================================================== */
.acct-geo-toolbar {
	display: flex; align-items: center; gap: 10px;
	flex-wrap: wrap;
	margin: 4px 0 12px;
}
.acct-geo-search {
	position: relative; flex: 1 1 220px; min-width: 200px;
}
.acct-geo-search i {
	position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
	color: var(--text-secondary); pointer-events: none; font-size: 13px;
}
.acct-geo-search input {
	width: 100%;
	padding: 9px 12px 9px 34px !important;
	border-radius: 999px !important;
	border: 1px solid var(--border, rgba(255,255,255,0.12)) !important;
	background: rgba(255,255,255,0.04) !important;
	color: var(--text-primary) !important;
	font-size: 13px;
	outline: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.acct-geo-search input:focus {
	border-color: var(--purple);
	background: rgba(124,58,237,0.06);
}
html.light-mode .acct-geo-search input {
	background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.10);
}
html.light-mode .acct-geo-search input:focus {
	background: rgba(124,58,237,0.06); border-color: var(--purple);
}
.acct-geo-count {
	font-size: 12px; font-weight: 700;
	color: var(--text-secondary);
	padding: 6px 12px; border-radius: 999px;
	background: rgba(124,58,237,0.10);
	border: 1px solid rgba(124,58,237,0.20);
	white-space: nowrap;
}
.acct-geo-count.has-selection { color: var(--purple); }
.acct-geo-clear {
	font-size: 12px; font-weight: 700;
	padding: 6px 12px; border-radius: 999px;
	background: transparent;
	color: var(--text-secondary);
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease;
}
.acct-geo-clear:hover { color: var(--purple); border-color: var(--purple); }
.acct-geos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 8px;
}
.acct-geos label.acct-geo {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 14px; border-radius: 12px;
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	background: rgba(124,58,237,0.06);
	color: var(--text-primary);
	cursor: pointer; margin: 0;
	font-size: 13px; font-weight: 600;
	transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
	min-width: 0;
}
.acct-geos label.acct-geo:hover { border-color: var(--purple); transform: translateY(-1px); }
.acct-geos label.acct-geo input { display: none; }
.acct-geos label.acct-geo.is-active {
	background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(249,115,22,0.16));
	border-color: var(--purple);
}
.acct-geo-name { font-weight: 700; flex: 1 1 auto; min-width: 0; white-space: normal; word-break: break-word; }
.acct-geo-state {
	font-size: 11px; font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--text-secondary);
	background: rgba(255,255,255,0.04);
	padding: 2px 6px; border-radius: 6px;
}
.acct-geos label.acct-geo.is-active .acct-geo-state {
	color: var(--purple);
	background: rgba(124,58,237,0.15);
}
.acct-geo-empty {
	grid-column: 1 / -1;
	padding: 24px 16px; border-radius: 12px;
	text-align: center;
	color: var(--text-secondary);
	font-size: 13px;
	border: 1px dashed var(--border, rgba(255,255,255,0.12));
}
/* Native `hidden` attribute toggled by JS handles show/hide. */
html.light-mode .acct-geos label.acct-geo {
	background: rgba(124,58,237,0.05);
	border-color: rgba(0,0,0,0.08);
}
html.light-mode .acct-geo-state {
	background: rgba(0,0,0,0.04);
	color: var(--text-secondary);
}
html.light-mode .acct-geo-count {
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.25);
}

/* Compact "Filtering by your N places · Show all" indicator on place.php. */
.hub-geo-chip {
	display: inline-flex; align-items: center; gap: 6px;
}
.hub-geo-chip .hub-geo-clear {
	margin-left: 4px;
	font-size: 11px;
	font-weight: 700;
	color: var(--purple);
	text-decoration: none;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(124,58,237,0.10);
	border: 1px solid rgba(124,58,237,0.25);
	transition: background-color .15s ease, color .15s ease;
}
.hub-geo-chip .hub-geo-clear:hover {
	background: rgba(124,58,237,0.20);
	color: var(--text-primary);
}

@media (max-width: 600px) {
	.acct-geos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 6px !important; }
	.acct-geos label.acct-geo { padding: 8px 10px !important; font-size: 12.5px !important; }
	.acct-geo-state { font-size: 10px !important; padding: 2px 5px !important; }
}

/* ================================================================
   V6.8 patch 142 — Self-profile UX tidy-up.

   Problem: on your own profile.php the hero showed FOUR action pills
   ("Edit account / Copy share link / My AI agent / My games") while
   the chip-nav directly ABOVE the hero already exposed Edit Profile.
   That made the Edit-account pill a redundant duplicate, and the
   four-pill row was visually heavy for a self-view that has no
   match-percentage card next to it.

   Fix:
     1. Edit account pill removed from .profile-hero-actions (self
        branch) — the chip nav handles it.
     2. Copy-share-link button relocated OUT of the actions row into
        a new .profile-hero-avatar-col wrapper that sits directly
        below the avatar. The wrapper takes over grid-column 1 from
        the bare <img>, so the patch-58/60 2-col & 3-col hero grids
        keep working unchanged.
     3. .profile-share-link styled as a small ghost pill (compact
        padding, 12.5px font) so it feels like a subtle "share this
        page" affordance rather than a primary CTA.

   The button id stays #profile-share-btn so the inline JS click
   handler in profile.php (clipboard copy + "Copied!" toast) keeps
   working with no changes.
   ================================================================ */
.profile-hero-avatar-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	/* When the hero is the default flex-column layout (<=640px) the
	   wrapper just stacks naturally — no grid placement needed. */
}
/* The avatar inside the wrapper still owns its size/border/shadow. */
.profile-hero-avatar-col .profile-hero-avatar { margin: 0; }

/* Small "Copy share link" pill that sits below the avatar (self only).
   Compound selector .profile-hero .profile-share-link (specificity
   0,2,0) beats the legacy .wrapper a {color:var(--purple) !important}
   rule on equal-or-better specificity, and the global
   button:not(...){gradient} rule is sidestepped by adding
   .profile-share-link to that :not() chain (see line ~2281). */
.profile-hero .profile-share-link,
.profile-share-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid var(--purple-border);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	background: var(--purple-glow);
	color: var(--purple) !important;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
	text-decoration: none !important;
	box-shadow: none;
	margin-bottom: 14px;
}
.profile-hero .profile-share-link i,
.profile-share-link i { font-size: 10.5px; color: var(--purple); }
.profile-hero .profile-share-link:hover,
.profile-share-link:hover {
	background: rgba(124,58,237,0.18);
	border-color: var(--purple);
	color: var(--purple) !important;
	transform: translateY(-1px);
}
.profile-hero .profile-share-link:active,
.profile-share-link:active { transform: translateY(0); }
.profile-hero .profile-share-link:focus-visible,
.profile-share-link:focus-visible {
	outline: 2px solid var(--purple);
	outline-offset: 2px;
}
html.light-mode .profile-hero .profile-share-link,
html.light-mode .profile-share-link {
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.30);
}
html.light-mode .profile-hero .profile-share-link:hover,
html.light-mode .profile-share-link:hover {
	background: rgba(124,58,237,0.18);
}

/* Grid placement: when the hero is a 2-col grid (>=641px) or 3-col
   grid (>=880px), the wrapper takes the avatar's old slot in column 1
   and spans all rows so the share button sits directly under the
   image. The original .profile-hero-avatar grid-row/grid-column rules
   higher up in this file (lines ~7081, ~7915, ~8404, ~8453) are now
   inert (avatar is no longer a direct grid child) but harmless. */
@media (min-width: 641px) {
	.profile-hero-content > .profile-hero-avatar-col {
		grid-row: 1 / -1;
		grid-column: 1;
		align-self: center;
	}
}
@media (min-width: 641px) and (max-width: 879px) {
	.profile-hero-content > .profile-hero-avatar-col {
		align-self: start;
		margin-top: 4px;
	}
}
@media (min-width: 880px) {
	.profile-hero-content > .profile-hero-avatar-col {
		grid-row: 1 / span 3;
		grid-column: 1;
		align-self: start;
		margin-top: 4px;
	}
}
@media (max-width: 480px) {
	.profile-hero .profile-share-link,
	.profile-share-link { padding: 4px 10px; font-size: 11.5px; gap: 5px; }
	.profile-hero .profile-share-link i,
	.profile-share-link i { font-size: 10px; }
}

/* ================================================================
   V6.8 patch 143 — self-profile hero refinements.

   Two issues spotted on the rendered self-profile:

   (1) The meta-chip strip (80's baby / N followers / N questions
       created) was rendering with a visible empty row above it at
       >=880px. Cause: the patch-60 grid pins .profile-hero-name to
       row 1, .profile-hero-pct to row 2, .profile-hero-meta to row 3.
       On self-profile there is no match-percentage row to fill row 2,
       so the chips ended up two rows below the name with a yawning
       gap. Fix: when the hero has the .profile-hero-self modifier
       (set in PHP via $isSelf), promote .profile-hero-meta to row 2.

   (2) The Copy share link pill was visually pushed to the LEFT of
       the avatar instead of sitting centered below it. Cause: the
       earlier patch-58/60 rules set `align-self: start` directly on
       .profile-hero-avatar — when the avatar was a direct grid
       child, that controlled VERTICAL alignment in the row span. But
       after patch 142 wrapped it inside .profile-hero-avatar-col
       (a flex column), the same `align-self: start` now controls
       HORIZONTAL alignment along the cross axis, pinning the avatar
       to the wrapper's left edge while the share button is centered.
       Reset the avatar inside the wrapper to `align-self: center`
       so both children align on the same vertical axis.

   Compound selector .profile-hero-avatar-col .profile-hero-avatar
   has specificity (0,2,0) which beats the existing
   .profile-hero-avatar (0,1,0) rule without needing !important.
   ================================================================ */
.profile-hero-avatar-col .profile-hero-avatar {
	align-self: center;
}

@media (min-width: 880px) {
	.profile-hero-self .profile-hero-meta {
		grid-row: 2;
	}
}

/* ================================================================
	V6.8 patch 144 - Palette readability rebalance.

   The site had become purple by default: page backgrounds, cards,
   filter pills, active states, glows, and light-mode surfaces all
   leaned lavender. This keeps Weird's indigo accent, but moves the
   neutral UI back to slate/white surfaces and reserves saturated
   color for selected states and primary actions.
   ================================================================ */
:root {
	--purple: #8b5cf6;
	--purple-light: #a78bfa;
	--purple-dark: #6d28d9;
	--purple-glow: rgba(139, 92, 246, 0.15);
	--purple-border: rgba(139, 92, 246, 0.22);
	--bg: #0b1020;
	--app-canvas: #0b1020;
	--bg-raised: #111827;
	--surface: #172033;
	--surface-hover: #1f2937;
	--border: #2d3748;
	--border-hover: #475569;
	--text-primary: #f3f6fb;
	--text-secondary: #c4cad8;
	--text-muted: #8992a8;
	--shadow-glow: 0 0 34px rgba(139, 92, 246, 0.16);
	--brand-action-start: #8b5cf6;
	--brand-action-mid: #7c3aed;
	--brand-action-end: #6d28d9;
	--brand-action-shadow: rgba(124, 58, 237, 0.32);
}

html.light-mode {
	--purple: #7c3aed;
	--purple-light: #8b5cf6;
	--purple-dark: #5b21b6;
	--purple-glow: rgba(124, 58, 237, 0.08);
	--purple-border: rgba(124, 58, 237, 0.18);
	--bg: #f6f7fb;
	--app-canvas: #f6f7fb;
	--bg-raised: #edf1f7;
	--surface: #ffffff;
	--surface-hover: #f3f6fb;
	--border: #d8dee9;
	--border-hover: #b8c2d4;
	--text-primary: #172033;
	--text-secondary: #4b5563;
	--text-muted: #6b7280;
	--shadow-glow: 0 0 32px rgba(124, 58, 237, 0.10);
	--brand-action-start: #8b5cf6;
	--brand-action-mid: #7c3aed;
	--brand-action-end: #6d28d9;
	--brand-action-shadow: rgba(124, 58, 237, 0.22);
}

body { background-color: var(--bg) !important; }
html.light-mode body { background-color: var(--bg) !important; }

/* Neutral chrome: cards and page bars get a faint multi-accent wash,
   but no longer read as solid purple panels. */
.discover-bar,
.discover-greet,
.profile-card,
.acct-card,
.acct-rp-card,
.profile-compare,
.cd-hero,
.cd-row,
.pulse-widget,
.streak-widget,
.hub-cta,
.connect-strip-wrap {
	background:
		linear-gradient(135deg, rgba(37,99,235,0.045) 0%, rgba(15,118,110,0.035) 58%, rgba(234,88,12,0.025) 100%),
		var(--surface) !important;
	border-color: var(--border) !important;
}

html.light-mode .discover-bar,
html.light-mode .discover-greet,
html.light-mode .profile-card,
html.light-mode .acct-card,
html.light-mode .acct-rp-card,
html.light-mode .profile-compare,
html.light-mode .cd-hero,
html.light-mode .cd-row,
html.light-mode .pulse-widget,
html.light-mode .streak-widget,
html.light-mode .hub-cta,
html.light-mode .connect-strip-wrap {
	background:
		linear-gradient(135deg, rgba(37,99,235,0.032) 0%, rgba(15,118,110,0.026) 58%, rgba(234,88,12,0.018) 100%),
		#ffffff !important;
	border-color: var(--border) !important;
}

.discover-greet,
.profile-card,
.acct-card,
.acct-rp-card,
.profile-compare,
.cd-hero,
.cd-row {
	box-shadow: 0 8px 24px -18px rgba(0,0,0,0.48) !important;
}
html.light-mode .discover-greet,
html.light-mode .profile-card,
html.light-mode .acct-card,
html.light-mode .acct-rp-card,
html.light-mode .profile-compare,
html.light-mode .cd-hero,
html.light-mode .cd-row {
	box-shadow: 0 8px 24px -18px rgba(23,32,51,0.18) !important;
}

/* Idle chips should be readable surfaces, not purple fog. */
.stream-filter:not(.active),
.subpage-pill:not(.active),
.acct-quicklink:not(.is-active),
.discover-greet-chip,
.profile-share-link,
.cd-filters a.cd-filter:not(.is-active),
.cd-pager a.cd-pager-btn,
.hub-geo-chip .hub-geo-clear,
.acct-geo-count,
.acct-geos label.acct-geo,
.acct-priv label.acct-priv-opt,
.acct-notif label.acct-priv-opt,
label.acct-priv-opt,
.acct-interests label.acct-interest {
	background: rgba(37,99,235,0.07) !important;
	border-color: rgba(129,140,248,0.18) !important;
	color: var(--text-primary) !important;
}

html.light-mode .stream-filter:not(.active),
html.light-mode .subpage-pill:not(.active),
html.light-mode .acct-quicklink:not(.is-active),
html.light-mode .discover-greet-chip,
html.light-mode .profile-share-link,
html.light-mode .cd-filters a.cd-filter:not(.is-active),
html.light-mode .cd-pager a.cd-pager-btn,
html.light-mode .hub-geo-chip .hub-geo-clear,
html.light-mode .acct-geo-count,
html.light-mode .acct-geos label.acct-geo,
html.light-mode .acct-priv label.acct-priv-opt,
html.light-mode .acct-notif label.acct-priv-opt,
html.light-mode label.acct-priv-opt,
html.light-mode .acct-interests label.acct-interest {
	background: #ffffff !important;
	border-color: var(--border) !important;
	color: var(--text-primary) !important;
}

.stream-filter:hover,
.subpage-pill:hover,
.acct-quicklink:hover,
.discover-greet-chip:hover,
.profile-share-link:hover,
.cd-filters a.cd-filter:hover,
.cd-pager a.cd-pager-btn:hover {
	background: rgba(37,99,235,0.12) !important;
	border-color: rgba(129,140,248,0.32) !important;
}

html.light-mode .stream-filter:hover,
html.light-mode .subpage-pill:hover,
html.light-mode .acct-quicklink:hover,
html.light-mode .discover-greet-chip:hover,
html.light-mode .profile-share-link:hover,
html.light-mode .cd-filters a.cd-filter:hover,
html.light-mode .cd-pager a.cd-pager-btn:hover {
	background: #eef4ff !important;
	border-color: #bfcae8 !important;
}

/* Primary and selected states: clearer, less violet-heavy, still branded. */
.btn-glow.primary,
html.light-mode .btn-glow.primary,
input[type="submit"],
input[type="button"],
button[type="submit"],
button:not(.theme-toggle):not(.theme-toggle-mobile):not(.navbar-toggler):not(.btn-rate):not(.feed-action-btn):not(.btn-glow):not(.drift-opt):not(.btn-outline):not(.faq-q):not(.close):not(.btn):not(.discover-quiz-opt):not(.discover-quiz-skip):not(.discover-quiz-next):not(.discover-tab):not(.discover-card-rate-btn):not(.discover-bar-stat):not(.connect-tile-act):not(.discover-rate):not(.discover-skip):not(.discover-card-save):not(.discover-follow):not(.discover-greet-chip):not(.discover-card-actions button):not(.ans-opt):not(.ans-foot-btn):not(.ttt-cell):not(.c4-drop):not(.mm-card):not(.gm-cell):not(.mc-pit):not(.chop-hand):not(.db-h):not(.db-v):not(.profile-share-link):not(.acct-quicklink):not(.weird-search-trigger):not(.weird-search-clear):not(.subpage-search-trigger):not(.weird-notif-trigger):not(.weird-notif-mark-all):not(.msg-side-tabs button):not(.msg-thread-back):not(.msg-composer button):not(.weird-infscroll-retry):not(.video-expand-btn):not(.video-expand-hit):not(.meme-zoom-trigger):not(.meme-lightbox-close):not(.pvpgf-pill):not(.ch-cell):not(.ch-promo-btn):not(.discover-card-pct):not(.msg-side-pin):not(.msg-thread-pin):not(.msg-thread-kebab-btn):not(.msg-react-btn):not(.msg-react-chip):not(.msg-react-open):not(.msg-react-choice):not(.weird-tabbar-item):not(.vb-close):not(.vb-tab):not(.weird-action-sheet-item):not(.weird-action-sheet-cancel):not(.weird-message-share-tab):not(.weird-message-share-close):not(.weird-message-share-cancel):not(.weird-message-share-send):not(.weird-explore-sheet-close):not(.discover-card-more):not(.discover-why-btn):not(.toy-vote-btn):not(.meme-tpl-chip):not(.meme-btn):not(.weird-fb-x):not(.pvp-solo-wintoggle-btn):not(.v6-app-tab):not(.v5s-toggle-btn):not(.v5s-nav-btn),
.discover-tab.active,
html.light-mode .discover-tab.active,
.stream-filter.active,
html.light-mode .stream-filter.active,
.subpage-pill.active,
html.light-mode .subpage-pill.active,
.profile-action-primary,
html.light-mode .profile-action-primary,
.profile-compare-chip.is-active,
html.light-mode .profile-compare-chip.is-active,
.acct-quicklink.is-active,
html.light-mode .acct-quicklink.is-active,
.acct-quicklink.is-active:hover,
.acct-quicklink.is-active:focus,
.acct-quicklink.is-active:visited,
.acct-save,
html.light-mode .acct-save,
a.acct-profile-cta,
a.acct-profile-cta:link,
a.acct-profile-cta:visited,
a.acct-profile-cta:hover,
a.acct-profile-cta:focus,
.discover-quiz-opt.chosen,
.discover-quiz-opt-tile.chosen,
.cd-filters a.cd-filter.is-active:not(.cd-filter-agree):not(.cd-filter-differ) {
	background: linear-gradient(135deg, var(--brand-action-start) 0%, var(--brand-action-mid) 52%, var(--brand-action-end) 100%) !important;
	border-color: var(--brand-action-mid) !important;
	color: #fff !important;
	box-shadow: 0 7px 22px -8px var(--brand-action-shadow) !important;
}

.btn-glow.primary:hover,
html.light-mode .btn-glow.primary:hover,
.profile-action-primary:hover,
html.light-mode .profile-action-primary:hover,
.acct-save:hover,
html.light-mode .acct-save:hover,
a.acct-profile-cta:hover,
.stream-filter.active:hover,
html.light-mode .stream-filter.active:hover,
.subpage-pill.active:hover,
html.light-mode .subpage-pill.active:hover,
.profile-compare-chip.is-active:hover,
html.light-mode .profile-compare-chip.is-active:hover,
.cd-filters a.cd-filter.is-active:not(.cd-filter-agree):not(.cd-filter-differ):hover {
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 54%, #4f46e5 100%) !important;
	color: #fff !important;
}

.discover-tab.active i,
.stream-filter.active i,
.subpage-pill.active i,
.acct-quicklink.is-active i,
.profile-action-primary i,
.profile-compare-chip.is-active i { color: #fff !important; }

/* Keep success/error semantics distinct from the new primary ramp. */
.cd-filters a.cd-filter-agree.is-active { background: linear-gradient(135deg, #4ade80, #16a34a) !important; border-color: #16a34a !important; }
.cd-filters a.cd-filter-differ.is-active { background: linear-gradient(135deg, #fb923c, #ea580c) !important; border-color: #ea580c !important; }

/* Icon/action buttons now use indigo through variables, but their neutral
   states are slate/white for readability. */
body .discover-card-actions .discover-card-save.saved,
body .discover-card-actions .discover-follow.connect-tile-following {
	background: var(--brand-action-mid) !important;
	border-color: var(--brand-action-mid) !important;
}
html.light-mode body .discover-rate:not(.active),
html.light-mode body .discover-skip,
html.light-mode body .discover-card-actions .discover-card-save:not(.saved),
html.light-mode body .discover-card-actions .discover-follow:not(.connect-tile-following) {
	background: #ffffff !important;
	color: var(--text-secondary) !important;
	border-color: var(--border) !important;
}

/* De-purple common scroll hints and decorative borders. */
.stream-filters,
.connect-row-tiles,
.profile-compare-chiprow,
.acct-avatars {
	scrollbar-color: var(--border-hover) transparent !important;
}
.stream-filters::-webkit-scrollbar-thumb,
.connect-row-tiles::-webkit-scrollbar-thumb,
.profile-compare-chiprow::-webkit-scrollbar-thumb,
.acct-avatars::-webkit-scrollbar-thumb {
	background: var(--border-hover) !important;
}

.profile-match-foot {
	background: rgba(37,99,235,0.06) !important;
	border-left-color: rgba(37,99,235,0.32) !important;
}

html.light-mode .discover-bar-stat,
html.light-mode .hub-stat {
	background: #ffffff !important;
	border-color: var(--border) !important;
	color: var(--text-primary) !important;
}

/* ================================================================
   V6.8 patch 145 — editinfo.php Theme card promoted to top + compact.

   Originally (patch 86) the Theme toggle was a full-size .acct-card
   at the BOTTOM of editinfo.php, well below the long Your-places
   metro grid, Your-interests checklist, and 75-avatar picker. The
   long pages above made it almost invisible.

   Two changes:
     1. PHP moved the <section> from after </form> to BEFORE the
        form opens (still outside the form tags — the toggle is a
        localStorage-only client pref, no POST round-trip).
     2. Markup restructured to a single .acct-theme-row containing
        h2 title + hint + theme-toggle button on one line. Wrapped
        in a new .acct-card-compact variant that drops the regular
        .acct-card's 22/24 padding to a tight 10/16, removes the
        gradient backdrop's vertical heft, and snaps the toggle to
        the right edge so the row feels like a settings sliver
        rather than a "section".

   .acct-card-compact is generic on purpose — future one-line
   settings rows (e.g. "Color accent", "Reduced motion") can reuse
   it without adding more bespoke CSS.
   ================================================================ */
.acct-card.acct-card-compact {
	padding: 10px 16px;
	/* Standard .acct-card gradient still applies; just less vertical heft. */
}
.acct-card.acct-card-compact .acct-theme-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0;
}
.acct-card.acct-card-compact .acct-theme-title {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	color: var(--text-primary);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	letter-spacing: -0.005em;
	line-height: 1.2;
}
.acct-card.acct-card-compact .acct-theme-title i {
	color: var(--purple);
	font-size: 15px;
}
.acct-card.acct-card-compact .acct-theme-hint {
	color: var(--text-secondary);
	font-size: 12.5px;
	line-height: 1.35;
	margin: 0;
	flex: 1 1 200px;
	min-width: 0;
}
/* Shrink the toggle inside the compact card (default is 44x44 from
   patch 86); push it to the right of the row. */
.acct-card.acct-card-compact .acct-theme-row .theme-toggle {
	margin-left: auto;
	width: 38px;
	height: 38px;
	font-size: 15px;
	flex: 0 0 auto;
}

/* Mobile (<=600px): keep the row layout but wrap the hint underneath
   the title so the toggle stays accessible on small screens. */
@media (max-width: 600px) {
	.acct-card.acct-card-compact { padding: 10px 14px; }
	.acct-card.acct-card-compact .acct-theme-row { gap: 8px 12px; }
	.acct-card.acct-card-compact .acct-theme-title { font-size: 15px; }
	.acct-card.acct-card-compact .acct-theme-hint {
		flex-basis: 100%;
		order: 3;
		font-size: 11.5px;
	}
	.acct-card.acct-card-compact .acct-theme-row .theme-toggle {
		width: 36px; height: 36px; font-size: 14px;
	}
}

/* ================================================================
   V6.8 patch 146 — Visual pop pass on the editinfo.php Theme card.

   Follow-up to patch 145: a mobile screenshot of the new compact
   card (see /tmp/editinfo-top.png) showed it sat between the chip
   nav and the Profile card with no visual differentiation — both
   cards rendered with the same muted purple wash and the Theme
   title icon was actually missing (fa-circle-half-stroke is FA6,
   site is on FA5; corrected to fa-adjust in editinfo.php).

   Scope: ONLY the Theme card on editinfo.php, via the new
   .acct-card-theme class. The generic .acct-card-compact variant
   from patch 145 stays plain so future settings-sliver rows
   (e.g. Color accent, Reduced motion) can opt out of the day/night
   styling and reuse the compact layout cleanly.

   Adds:
     1. Layered dual-tone radial gradient backdrop (purple top-right,
        sun-orange bottom-left) that mirrors the toggle's day/night
        intent.
     2. Left-edge accent stripe via ::before (purple→orange vertical
        gradient, 3px). Reads as a "settings sliver" at a glance.
     3. Theme title with gradient text fill (purple→warm) AND a
        glowing FA icon — the icon was invisible pre-patch (wrong
        FA name) so this is the first time it actually appears.
     4. Toggle button gets a soft radial gradient pill + outer glow
        ring + a small rotate-on-hover micro-interaction. The base
        .theme-toggle from the homepage header stays untouched
        because we scope every rule under .acct-card-theme.
     5. Optional slow shimmer (12s loop) on a ::after layer that
        respects prefers-reduced-motion.

   Light-mode parallels follow per the theme-mode trap (every
   html.light-mode override must restate the modifier props or the
   card goes flat). Mobile (<=600px) keeps the pop but tones the
   glow + stripe slightly so a 360-wide screen doesn't feel busy.
   ================================================================ */
.acct-card.acct-card-compact.acct-card-theme {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 100% 0%, rgba(124,134,247,0.22) 0%, rgba(124,134,247,0) 55%),
		radial-gradient(circle at 0% 100%, rgba(255,140,66,0.18) 0%, rgba(255,140,66,0) 50%),
		linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(124,58,237,0.02) 100%),
		var(--surface);
	border-color: rgba(124,134,247,0.32);
	box-shadow:
		0 6px 22px -10px rgba(124,134,247,0.35),
		0 1px 0 rgba(255,255,255,0.04) inset;
}
.acct-card.acct-card-compact.acct-card-theme::before {
	content: "";
	position: absolute;
	left: 0; top: 8px; bottom: 8px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(180deg, #7c86f7 0%, #b88dff 50%, #ff8c42 100%);
	box-shadow: 0 0 12px rgba(124,134,247,0.45);
	pointer-events: none;
}
.acct-card.acct-card-compact.acct-card-theme::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(120deg,
		transparent 30%,
		rgba(255,255,255,0.05) 50%,
		transparent 70%);
	background-size: 220% 100%;
	animation: acct-theme-shimmer 14s linear infinite;
}
@keyframes acct-theme-shimmer {
	0%   { background-position: 220% 0; }
	100% { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.acct-card.acct-card-compact.acct-card-theme::after { animation: none; }
}

/* Title: gradient text fill (purple → warm). Keep icon solid so it
   doesn't get clipped by background-clip:text. */
.acct-card.acct-card-compact.acct-card-theme .acct-theme-title {
	background: linear-gradient(95deg, #7c86f7 0%, #b88dff 55%, #ff8c42 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.acct-card.acct-card-compact.acct-card-theme .acct-theme-title i {
	color: var(--purple);
	-webkit-text-fill-color: var(--purple);
	background: none;
	-webkit-background-clip: initial;
	background-clip: initial;
	filter: drop-shadow(0 0 6px rgba(124,134,247,0.55));
}

/* Hint stays muted but readable. */
.acct-card.acct-card-compact.acct-card-theme .acct-theme-hint {
	color: var(--text-secondary);
}

/* Toggle: soft radial gradient pill + glow ring. Hover/active add
   micro-rotation. Z-index keeps the button above the ::after shimmer
   so clicks always register. */
.acct-card.acct-card-compact.acct-card-theme .acct-theme-row .theme-toggle {
	position: relative;
	z-index: 1;
	background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f3edff 55%, #e3d4ff 100%);
	border-color: rgba(124,134,247,0.55);
	box-shadow:
		0 0 0 4px rgba(124,134,247,0.10),
		0 4px 12px -4px rgba(124,134,247,0.45);
	color: #ff8c42;
	transition: transform 0.25s ease-out,
		box-shadow 0.25s ease-out,
		background 0.3s ease-out,
		color 0.25s ease-out;
}
.acct-card.acct-card-compact.acct-card-theme .acct-theme-row .theme-toggle:hover {
	transform: scale(1.08) rotate(-12deg);
	background: radial-gradient(circle at 30% 30%, #ffffff 0%, #ece0ff 55%, #c9b3ff 100%);
	box-shadow:
		0 0 0 6px rgba(124,134,247,0.18),
		0 6px 16px -4px rgba(124,134,247,0.55);
	color: #7c86f7;
	border-color: var(--purple);
}
.acct-card.acct-card-compact.acct-card-theme .acct-theme-row .theme-toggle:active {
	transform: scale(0.96) rotate(-6deg);
}
@media (prefers-reduced-motion: reduce) {
	.acct-card.acct-card-compact.acct-card-theme .acct-theme-row .theme-toggle {
		transition: none;
	}
	.acct-card.acct-card-compact.acct-card-theme .acct-theme-row .theme-toggle:hover,
	.acct-card.acct-card-compact.acct-card-theme .acct-theme-row .theme-toggle:active {
		transform: none;
	}
}

/* Keep the row's wrapped text above the ::after shimmer too. */
.acct-card.acct-card-compact.acct-card-theme .acct-theme-row {
	position: relative;
	z-index: 1;
}

/* Light-mode parallels: restate every modifier prop or the override
   trap strips the day/night accents (see debugging.md theme-mode trap). */
html.light-mode .acct-card.acct-card-compact.acct-card-theme {
	background:
		radial-gradient(circle at 100% 0%, rgba(124,134,247,0.18) 0%, rgba(124,134,247,0) 55%),
		radial-gradient(circle at 0% 100%, rgba(255,140,66,0.14) 0%, rgba(255,140,66,0) 50%),
		linear-gradient(135deg, rgba(124,58,237,0.05) 0%, rgba(255,255,255,0.92) 100%),
		#ffffff;
	border-color: rgba(124,134,247,0.30);
	box-shadow:
		0 6px 22px -10px rgba(124,134,247,0.25),
		0 1px 0 rgba(255,255,255,0.6) inset;
}
html.light-mode .acct-card.acct-card-compact.acct-card-theme::after {
	background: linear-gradient(120deg,
		transparent 30%,
		rgba(255,255,255,0.45) 50%,
		transparent 70%);
	background-size: 220% 100%;
}
html.light-mode .acct-card.acct-card-compact.acct-card-theme .acct-theme-row .theme-toggle {
	background: radial-gradient(circle at 30% 30%, #ffffff 0%, #faf3ff 55%, #ede0ff 100%);
	color: #ff8c42;
}
html.light-mode .acct-card.acct-card-compact.acct-card-theme .acct-theme-row .theme-toggle:hover {
	background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f1e6ff 55%, #d8c2ff 100%);
	color: #7c86f7;
}

/* Mobile (<=600px): tame the stripe + glow ring slightly. */
@media (max-width: 600px) {
	.acct-card.acct-card-compact.acct-card-theme::before {
		top: 6px; bottom: 6px;
	}
	.acct-card.acct-card-compact.acct-card-theme .acct-theme-row .theme-toggle {
		box-shadow:
			0 0 0 3px rgba(124,134,247,0.12),
			0 3px 10px -3px rgba(124,134,247,0.40);
	}
}

/* ================================================================
   V6.8 patch 147 - Site-wide signature pop layer.

   Patch 144 made the palette calmer and more readable. This layer
   adds back memorability through contrast, category accents, focus
   clarity, and tactile depth without flooding every surface purple.
   ================================================================ */
:root {
	--brand-pop-blue: #2563eb;
	--brand-pop-sky: #0891b2;
	--brand-pop-teal: #047857;
	--brand-pop-warm: #f97316;
	--brand-pop-rose: #ea580c;
	--brand-pop-line: linear-gradient(90deg, #2563eb 0%, #06b6d4 32%, #22c55e 62%, #f97316 100%);
	--brand-pop-glow: 0 18px 44px -28px rgba(8,145,178,0.58), 0 1px 0 rgba(255,255,255,0.05) inset;
}
html.light-mode {
	--brand-pop-glow: 0 18px 44px -30px rgba(37,99,235,0.28), 0 1px 0 rgba(255,255,255,0.85) inset;
}

/* Keyboard users should get a visible, brand-consistent target ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(6,182,212,0.72) !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px rgba(6,182,212,0.16) !important;
}

/* Main actions now have a brighter blue/sky/teal push with a warm edge.
   The warm stop sits past 100%, so it reads as energy instead of orange UI. */
.btn-glow.primary,
html.light-mode .btn-glow.primary,
input[type="submit"],
input[type="button"],
button[type="submit"],
.discover-tab.active,
html.light-mode .discover-tab.active,
.stream-filter.active,
html.light-mode .stream-filter.active,
.subpage-pill.active,
html.light-mode .subpage-pill.active,
.profile-action-primary,
html.light-mode .profile-action-primary,
.profile-compare-chip.is-active,
html.light-mode .profile-compare-chip.is-active,
.acct-quicklink.is-active,
html.light-mode .acct-quicklink.is-active,
.acct-save,
html.light-mode .acct-save,
a.acct-profile-cta,
a.acct-profile-cta:link,
a.acct-profile-cta:visited,
a.acct-profile-cta:hover,
a.acct-profile-cta:focus,
.discover-quiz-opt.chosen,
.discover-quiz-opt-tile.chosen,
.cd-filters a.cd-filter.is-active:not(.cd-filter-agree):not(.cd-filter-differ) {
	background: linear-gradient(135deg, var(--brand-pop-blue) 0%, var(--brand-pop-sky) 48%, var(--brand-pop-teal) 86%, var(--brand-pop-warm) 130%) !important;
	background-size: 150% 150% !important;
	border-color: rgba(6,182,212,0.52) !important;
	box-shadow:
		0 12px 30px -14px rgba(8,145,178,0.68),
		0 0 0 1px rgba(255,255,255,0.10) inset !important;
	color: #fff !important;
}

.btn-glow.primary:hover,
html.light-mode .btn-glow.primary:hover,
.profile-action-primary:hover,
html.light-mode .profile-action-primary:hover,
.acct-save:hover,
html.light-mode .acct-save:hover,
a.acct-profile-cta:hover,
.stream-filter.active:hover,
html.light-mode .stream-filter.active:hover,
.subpage-pill.active:hover,
html.light-mode .subpage-pill.active:hover,
.profile-compare-chip.is-active:hover,
html.light-mode .profile-compare-chip.is-active:hover,
.cd-filters a.cd-filter.is-active:not(.cd-filter-agree):not(.cd-filter-differ):hover {
	background-position: 100% 35% !important;
	box-shadow:
		0 16px 36px -15px rgba(6,182,212,0.82),
		0 0 0 1px rgba(255,255,255,0.14) inset !important;
	color: #fff !important;
}

/* Signature edge on high-traffic cards: recognizable, scannable, and slim. */
.discover-bar,
.discover-greet,
.profile-card,
.acct-card:not(.acct-card-theme),
.acct-rp-card,
.profile-compare,
.cd-hero,
.cd-row,
.pulse-widget,
.streak-widget,
.hub-cta,
.connect-strip-wrap {
	position: relative;
	box-shadow: var(--brand-pop-glow) !important;
}
.discover-bar::before,
.discover-greet::before,
.profile-card::before,
.acct-card:not(.acct-card-theme)::before,
.acct-rp-card::before,
.profile-compare::before,
.cd-hero::before,
.cd-row::before,
.pulse-widget::before,
.streak-widget::before,
.hub-cta::before,
.connect-strip-wrap::before {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	top: 0;
	height: 3px;
	border-radius: 0 0 999px 999px;
	background: var(--brand-pop-line);
	opacity: 0.92;
	pointer-events: none;
}
html.light-mode .discover-bar::before,
html.light-mode .discover-greet::before,
html.light-mode .profile-card::before,
html.light-mode .acct-card:not(.acct-card-theme)::before,
html.light-mode .acct-rp-card::before,
html.light-mode .profile-compare::before,
html.light-mode .cd-hero::before,
html.light-mode .cd-row::before,
html.light-mode .pulse-widget::before,
html.light-mode .streak-widget::before,
html.light-mode .hub-cta::before,
html.light-mode .connect-strip-wrap::before {
	opacity: 0.72;
}

/* Idle chips get a little more object-ness while staying quiet. */
.stream-filter:not(.active),
.subpage-pill:not(.active),
.acct-quicklink:not(.is-active),
.discover-greet-chip,
.profile-share-link,
.cd-filters a.cd-filter:not(.is-active),
.cd-pager a.cd-pager-btn {
	box-shadow: 0 8px 18px -16px rgba(8,145,178,0.44), 0 1px 0 rgba(255,255,255,0.04) inset !important;
}
html.light-mode .stream-filter:not(.active),
html.light-mode .subpage-pill:not(.active),
html.light-mode .acct-quicklink:not(.is-active),
html.light-mode .discover-greet-chip,
html.light-mode .profile-share-link,
html.light-mode .cd-filters a.cd-filter:not(.is-active),
html.light-mode .cd-pager a.cd-pager-btn {
	box-shadow: 0 8px 18px -16px rgba(37,99,235,0.28), 0 1px 0 rgba(255,255,255,0.88) inset !important;
}

/* Semantic chips can be vivid because green/red carry meaning here. */
.cd-filters a.cd-filter-agree.is-active {
	box-shadow: 0 12px 30px -14px rgba(34,197,94,0.72) !important;
}
.cd-filters a.cd-filter-differ.is-active {
	box-shadow: 0 12px 30px -14px rgba(234,88,12,0.72) !important;
}

@media (prefers-reduced-motion: no-preference) {
	.btn-glow.primary,
	html.light-mode .btn-glow.primary,
	.stream-filter,
	.subpage-pill,
	.profile-action-primary,
	.acct-save,
	.acct-quicklink,
	.cd-filters a.cd-filter {
		transition:
			transform 0.22s ease-out,
			box-shadow 0.22s ease-out,
			background-position 0.32s ease-out,
			border-color 0.22s ease-out;
	}
	.btn-glow.primary:hover,
	html.light-mode .btn-glow.primary:hover,
	.stream-filter:hover,
	.subpage-pill:hover,
	.profile-action-primary:hover,
	.acct-save:hover,
	.acct-quicklink:hover,
	.cd-filters a.cd-filter:hover {
		transform: translateY(-2px);
	}
}

@media (max-width: 600px) {
	.discover-bar::before,
	.discover-greet::before,
	.profile-card::before,
	.acct-card:not(.acct-card-theme)::before,
	.acct-rp-card::before,
	.profile-compare::before,
	.cd-hero::before,
	.cd-row::before,
	.pulse-widget::before,
	.streak-widget::before,
	.hub-cta::before,
	.connect-strip-wrap::before {
		left: 10px;
		right: 10px;
		height: 2px;
	}
}

/* Full-label connect chips should share the new action language. */
.connect-tile-actions .connect-tile-act.connect-tile-following,
.connect-tile-actions-row .connect-tile-act.connect-tile-following,
html.light-mode .connect-tile-actions .connect-tile-act.connect-tile-following,
html.light-mode .connect-tile-actions-row .connect-tile-act.connect-tile-following {
	background: linear-gradient(135deg, var(--brand-pop-blue) 0%, var(--brand-pop-sky) 48%, var(--brand-pop-teal) 86%, var(--brand-pop-warm) 130%) !important;
	background-size: 150% 150% !important;
	border-color: rgba(6,182,212,0.52) !important;
	color: #fff !important;
	box-shadow: 0 10px 26px -14px rgba(8,145,178,0.70), 0 0 0 1px rgba(255,255,255,0.10) inset !important;
}
.connect-tile-actions .connect-tile-act.connect-tile-following i,
.connect-tile-actions-row .connect-tile-act.connect-tile-following i,
html.light-mode .connect-tile-actions .connect-tile-act.connect-tile-following i,
html.light-mode .connect-tile-actions-row .connect-tile-act.connect-tile-following i {
	color: #fff !important;
}
.connect-tile-actions .connect-tile-act.connect-tile-following:hover,
.connect-tile-actions-row .connect-tile-act.connect-tile-following:hover,
html.light-mode .connect-tile-actions .connect-tile-act.connect-tile-following:hover,
html.light-mode .connect-tile-actions-row .connect-tile-act.connect-tile-following:hover {
	background-position: 100% 35% !important;
	box-shadow: 0 14px 32px -15px rgba(6,182,212,0.82), 0 0 0 1px rgba(255,255,255,0.14) inset !important;
	color: #fff !important;
}

/* ============================================================================
   V6.8 patch 147 — Theme toggle is now a chip in .acct-quicklinks nav.
   ----------------------------------------------------------------------------
   The dedicated "Theme" card from patches 145/146 has been removed from
   editinfo.php. The dark/light mode toggle now lives as the LAST chip in
   the .acct-quicklinks nav on every account page (profile, edit, answers,
   notify-prefs, reset-password), so users get one-tap theme switching
   without a dedicated row.

   The button reuses the existing chip styling via the .acct-quicklink
   base class, plus an .acct-quicklink-theme modifier that:
   - resets <button> default browser styling (font-family, cursor, etc.)
   - tightens the padding so it renders as an icon-only chip (no text)
   - controls sun/moon visibility via the html.light-mode class
   - tints the icon orange (matches the homepage navbar theme toggle)

   The existing JS handler in header2.php uses event delegation against
   [data-theme-toggle] / .theme-toggle, so this new chip works with zero
   JS changes — every click toggles localStorage 'theme' and flips
   html.light-mode globally.
   ============================================================================ */
.acct-quicklink.acct-quicklink-theme {
	/* Reset native <button> defaults that the chip styling doesn't cover. */
	font-family: inherit;
	cursor: pointer;
	/* Square-ish icon-only chip — slightly narrower than text chips. */
	padding: 9px 12px;
	min-width: 42px;
	justify-content: center;
	gap: 0;
	/* Warm accent so the toggle reads as a distinct affordance, not another
	   nav link. Keeps the chip silhouette but swaps icon color. */
	color: var(--orange, #f59e0b) !important;
}
.acct-quicklink.acct-quicklink-theme i {
	color: var(--orange, #f59e0b) !important;
	font-size: 14px;
	line-height: 1;
}
.acct-quicklink.acct-quicklink-theme:hover {
	background: rgba(245,158,11,0.16);
	border-color: rgba(245,158,11,0.45);
}
.acct-quicklink.acct-quicklink-theme:focus,
.acct-quicklink.acct-quicklink-theme:focus-visible {
	outline: 2px solid rgba(245,158,11,0.55);
	outline-offset: 2px;
}
/* Show ONE icon at a time based on the current theme. In dark mode the sun
   is visible ("tap to go light"); in light mode the moon is visible. */
html:not(.light-mode) .acct-quicklink.acct-quicklink-theme .fa-sun { display: inline-block; }
html:not(.light-mode) .acct-quicklink.acct-quicklink-theme .fa-moon { display: none; }
html.light-mode .acct-quicklink.acct-quicklink-theme .fa-sun { display: none; }
html.light-mode .acct-quicklink.acct-quicklink-theme .fa-moon { display: inline-block; }
/* Light-mode chip tinting parallels for the theme toggle. */
html.light-mode .acct-quicklink.acct-quicklink-theme {
	background: rgba(245,158,11,0.08);
	border-color: rgba(245,158,11,0.30);
	color: var(--orange, #d97706) !important;
}
html.light-mode .acct-quicklink.acct-quicklink-theme i {
	color: var(--orange, #d97706) !important;
}
html.light-mode .acct-quicklink.acct-quicklink-theme:hover {
	background: rgba(245,158,11,0.16);
	border-color: rgba(245,158,11,0.45);
}
/* Tighter padding on the mobile horizontal-scroll variant. */
@media (max-width: 640px) {
	.acct-quicklink.acct-quicklink-theme { padding: 8px 11px; min-width: 38px; }
	.acct-quicklink.acct-quicklink-theme i { font-size: 13px; }
}

/* ================================================================
   V6.8 patch 148 - Signature-purple correction.

   Patch 147 added too much rainbow energy. Weird's memorable color is
   purple, so this keeps purple as the signature while using blue/teal
   only as restrained support. Decorative orange/green/red stops are
   removed from brand moments; semantic agree/differ colors remain.
   ================================================================ */
:root {
	--brand-pop-blue: #7c3aed;
	--brand-pop-sky: #4f46e5;
	--brand-pop-teal: #0891b2;
	--brand-pop-warm: #0891b2;
	--brand-pop-rose: #7c3aed;
	--brand-pop-line: linear-gradient(90deg, #7c3aed 0%, #4f46e5 52%, #0891b2 100%);
	--brand-pop-glow: 0 18px 44px -30px rgba(124,58,237,0.50), 0 1px 0 rgba(255,255,255,0.05) inset;
}
html.light-mode {
	--brand-pop-glow: 0 18px 42px -32px rgba(124,58,237,0.24), 0 1px 0 rgba(255,255,255,0.85) inset;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline-color: rgba(124,58,237,0.72) !important;
	box-shadow: 0 0 0 6px rgba(124,58,237,0.14) !important;
}

.btn-glow.primary,
html.light-mode .btn-glow.primary,
input[type="submit"],
input[type="button"],
button[type="submit"],
.discover-tab.active,
html.light-mode .discover-tab.active,
.stream-filter.active,
html.light-mode .stream-filter.active,
.subpage-pill.active,
html.light-mode .subpage-pill.active,
.profile-action-primary,
html.light-mode .profile-action-primary,
.profile-compare-chip.is-active,
html.light-mode .profile-compare-chip.is-active,
.acct-quicklink.is-active,
html.light-mode .acct-quicklink.is-active,
.acct-save,
html.light-mode .acct-save,
a.acct-profile-cta,
a.acct-profile-cta:link,
a.acct-profile-cta:visited,
a.acct-profile-cta:hover,
a.acct-profile-cta:focus,
.discover-quiz-opt.chosen,
.discover-quiz-opt-tile.chosen,
.cd-filters a.cd-filter.is-active:not(.cd-filter-agree):not(.cd-filter-differ),
.connect-tile-actions .connect-tile-act.connect-tile-following,
.connect-tile-actions-row .connect-tile-act.connect-tile-following,
html.light-mode .connect-tile-actions .connect-tile-act.connect-tile-following,
html.light-mode .connect-tile-actions-row .connect-tile-act.connect-tile-following {
	background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 56%, #0891b2 100%) !important;
	background-size: 135% 135% !important;
	border-color: rgba(124,58,237,0.56) !important;
	box-shadow: 0 12px 30px -15px rgba(124,58,237,0.54), 0 0 0 1px rgba(255,255,255,0.10) inset !important;
	color: #fff !important;
}

.btn-glow.primary:hover,
html.light-mode .btn-glow.primary:hover,
.profile-action-primary:hover,
html.light-mode .profile-action-primary:hover,
.acct-save:hover,
html.light-mode .acct-save:hover,
a.acct-profile-cta:hover,
.stream-filter.active:hover,
html.light-mode .stream-filter.active:hover,
.subpage-pill.active:hover,
html.light-mode .subpage-pill.active:hover,
.profile-compare-chip.is-active:hover,
html.light-mode .profile-compare-chip.is-active:hover,
.cd-filters a.cd-filter.is-active:not(.cd-filter-agree):not(.cd-filter-differ):hover,
.connect-tile-actions .connect-tile-act.connect-tile-following:hover,
.connect-tile-actions-row .connect-tile-act.connect-tile-following:hover,
html.light-mode .connect-tile-actions .connect-tile-act.connect-tile-following:hover,
html.light-mode .connect-tile-actions-row .connect-tile-act.connect-tile-following:hover {
	background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 58%, #0e7490 100%) !important;
	background-position: 100% 35% !important;
	box-shadow: 0 15px 34px -16px rgba(124,58,237,0.62), 0 0 0 1px rgba(255,255,255,0.14) inset !important;
	color: #fff !important;
}

.discover-bar::before,
.discover-greet::before,
.profile-card::before,
.acct-card:not(.acct-card-theme)::before,
.acct-rp-card::before,
.profile-compare::before,
.cd-hero::before,
.cd-row::before,
.pulse-widget::before,
.streak-widget::before,
.hub-cta::before,
.connect-strip-wrap::before {
	background: var(--brand-pop-line) !important;
	box-shadow: 0 0 14px rgba(124,58,237,0.22) !important;
}

.stream-filter:not(.active):hover,
.subpage-pill:not(.active):hover,
.acct-quicklink:not(.is-active):hover,
.discover-greet-chip:hover,
.profile-share-link:hover,
.cd-filters a.cd-filter:not(.is-active):hover,
.cd-pager a.cd-pager-btn:hover {
	border-color: rgba(124,58,237,0.34) !important;
	box-shadow: 0 8px 20px -18px rgba(124,58,237,0.54), 0 1px 0 rgba(255,255,255,0.06) inset !important;
}

html.light-mode .stream-filter:not(.active):hover,
html.light-mode .subpage-pill:not(.active):hover,
html.light-mode .acct-quicklink:not(.is-active):hover,
html.light-mode .discover-greet-chip:hover,
html.light-mode .profile-share-link:hover,
html.light-mode .cd-filters a.cd-filter:not(.is-active):hover,
html.light-mode .cd-pager a.cd-pager-btn:hover {
	background: #f7f5ff !important;
	border-color: rgba(124,58,237,0.28) !important;
}

body .discover-card-actions .discover-card-save.saved,
body .discover-card-actions .discover-follow.connect-tile-following {
	background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 62%, #0891b2 100%) !important;
	box-shadow: 0 8px 22px -13px rgba(124,58,237,0.52), 0 0 0 1px rgba(255,255,255,0.12) inset !important;
}

/* ================================================================
   V6.8 patch 149 - Purple/plum readability correction.

   The purple + blue/teal support still felt discordant. This layer
   removes blue from branded UI moments, keeps purple as the signature,
   uses plum/lavender for depth, and makes search/notification popouts
   read as neutral panels with purple affordances.
   ================================================================ */
:root {
	--brand-pop-blue: #6d28d9;
	--brand-pop-sky: #7c3aed;
	--brand-pop-teal: #9333ea;
	--brand-pop-warm: #9333ea;
	--brand-pop-rose: #7c3aed;
	--brand-pop-line: linear-gradient(90deg, #6d28d9 0%, #7c3aed 56%, #a855f7 100%);
	--brand-pop-glow: 0 18px 44px -32px rgba(124,58,237,0.46), 0 1px 0 rgba(255,255,255,0.05) inset;
	--overlay-panel-bg: #111827;
	--overlay-panel-border: #2d3748;
	--overlay-panel-soft: rgba(255,255,255,0.045);
	--overlay-panel-hover: rgba(124,58,237,0.12);
	--overlay-text: #f8fafc;
	--overlay-text-soft: #cbd5e1;
	--overlay-text-muted: #94a3b8;
}
html.light-mode {
	--brand-pop-glow: 0 18px 42px -34px rgba(124,58,237,0.22), 0 1px 0 rgba(255,255,255,0.86) inset;
	--overlay-panel-bg: #ffffff;
	--overlay-panel-border: #d8dee9;
	--overlay-panel-soft: #f7f7fb;
	--overlay-panel-hover: #f4efff;
	--overlay-text: #111827;
	--overlay-text-soft: #475569;
	--overlay-text-muted: #64748b;
}
body[data-theme="light"] {
	--overlay-panel-bg: #ffffff;
	--overlay-panel-border: #d8dee9;
	--overlay-panel-soft: #f7f7fb;
	--overlay-panel-hover: #f4efff;
	--overlay-text: #111827;
	--overlay-text-soft: #475569;
	--overlay-text-muted: #64748b;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline-color: rgba(124,58,237,0.76) !important;
	box-shadow: 0 0 0 5px rgba(124,58,237,0.15) !important;
}

.btn-glow.primary,
html.light-mode .btn-glow.primary,
input[type="submit"],
input[type="button"],
button[type="submit"],
.discover-tab.active,
html.light-mode .discover-tab.active,
.stream-filter.active,
html.light-mode .stream-filter.active,
.subpage-pill.active,
html.light-mode .subpage-pill.active,
.profile-action-primary,
html.light-mode .profile-action-primary,
.profile-compare-chip.is-active,
html.light-mode .profile-compare-chip.is-active,
.acct-quicklink.is-active,
html.light-mode .acct-quicklink.is-active,
.acct-save,
html.light-mode .acct-save,
a.acct-profile-cta,
a.acct-profile-cta:link,
a.acct-profile-cta:visited,
a.acct-profile-cta:hover,
a.acct-profile-cta:focus,
.discover-quiz-opt.chosen,
.discover-quiz-opt-tile.chosen,
.cd-filters a.cd-filter.is-active:not(.cd-filter-agree):not(.cd-filter-differ),
.connect-tile-actions .connect-tile-act.connect-tile-following,
.connect-tile-actions-row .connect-tile-act.connect-tile-following,
html.light-mode .connect-tile-actions .connect-tile-act.connect-tile-following,
html.light-mode .connect-tile-actions-row .connect-tile-act.connect-tile-following {
	background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 58%, #9333ea 100%) !important;
	background-size: 125% 125% !important;
	border-color: rgba(124,58,237,0.58) !important;
	box-shadow: 0 12px 30px -16px rgba(124,58,237,0.52), 0 0 0 1px rgba(255,255,255,0.12) inset !important;
	color: #fff !important;
}

.btn-glow.primary:hover,
html.light-mode .btn-glow.primary:hover,
.profile-action-primary:hover,
html.light-mode .profile-action-primary:hover,
.acct-save:hover,
html.light-mode .acct-save:hover,
a.acct-profile-cta:hover,
.stream-filter.active:hover,
html.light-mode .stream-filter.active:hover,
.subpage-pill.active:hover,
html.light-mode .subpage-pill.active:hover,
.profile-compare-chip.is-active:hover,
html.light-mode .profile-compare-chip.is-active:hover,
.cd-filters a.cd-filter.is-active:not(.cd-filter-agree):not(.cd-filter-differ):hover,
.connect-tile-actions .connect-tile-act.connect-tile-following:hover,
.connect-tile-actions-row .connect-tile-act.connect-tile-following:hover,
html.light-mode .connect-tile-actions .connect-tile-act.connect-tile-following:hover,
html.light-mode .connect-tile-actions-row .connect-tile-act.connect-tile-following:hover {
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 62%, #5b21b6 100%) !important;
	background-position: 100% 35% !important;
	box-shadow: 0 15px 34px -17px rgba(124,58,237,0.60), 0 0 0 1px rgba(255,255,255,0.15) inset !important;
	color: #fff !important;
}

.discover-bar::before,
.discover-greet::before,
.profile-card::before,
.acct-card:not(.acct-card-theme)::before,
.acct-rp-card::before,
.profile-compare::before,
.cd-hero::before,
.cd-row::before,
.pulse-widget::before,
.streak-widget::before,
.hub-cta::before,
.connect-strip-wrap::before {
	background: var(--brand-pop-line) !important;
	box-shadow: 0 0 12px rgba(124,58,237,0.18) !important;
	opacity: 0.84 !important;
}
html.light-mode .discover-bar::before,
html.light-mode .discover-greet::before,
html.light-mode .profile-card::before,
html.light-mode .acct-card:not(.acct-card-theme)::before,
html.light-mode .acct-rp-card::before,
html.light-mode .profile-compare::before,
html.light-mode .cd-hero::before,
html.light-mode .cd-row::before,
html.light-mode .pulse-widget::before,
html.light-mode .streak-widget::before,
html.light-mode .hub-cta::before,
html.light-mode .connect-strip-wrap::before {
	opacity: 0.62 !important;
}

body .discover-card-actions .discover-card-save.saved,
body .discover-card-actions .discover-follow.connect-tile-following {
	background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 58%, #9333ea 100%) !important;
	box-shadow: 0 8px 22px -14px rgba(124,58,237,0.50), 0 0 0 1px rgba(255,255,255,0.12) inset !important;
}

/* Search and notification overlays: neutral, readable panels with purple cues. */
body .weird-search-popout,
body .weird-notif-popout {
	background: var(--overlay-panel-bg) !important;
	border-color: var(--overlay-panel-border) !important;
	box-shadow: 0 24px 56px -26px rgba(0,0,0,0.66), 0 1px 0 rgba(255,255,255,0.05) inset !important;
	color: var(--overlay-text) !important;
}
html.light-mode body .weird-search-popout,
html.light-mode body .weird-notif-popout,
body[data-theme="light"] .weird-search-popout,
body[data-theme="light"] .weird-notif-popout {
	background: #ffffff !important;
	border-color: var(--overlay-panel-border) !important;
	box-shadow: 0 24px 56px -30px rgba(15,23,42,0.22), 0 1px 0 rgba(255,255,255,0.9) inset !important;
	color: var(--overlay-text) !important;
}

body .weird-search-form {
	background: var(--overlay-panel-soft) !important;
	border-color: var(--overlay-panel-border) !important;
}
body .weird-search-form:focus-within {
	background: rgba(124,58,237,0.10) !important;
	border-color: rgba(124,58,237,0.58) !important;
	box-shadow: 0 0 0 4px rgba(124,58,237,0.12) !important;
}
body .weird-search-input,
body .weird-search-result,
body .weird-notif-item,
body .weird-notif-title,
body .weird-notif-itm-title,
body .weird-notif-mark-all {
	color: var(--overlay-text) !important;
}
body .weird-search-form-icon,
body .weird-search-input::placeholder,
body .weird-search-hint,
body .weird-search-group-head,
body .weird-search-result-sub,
body .weird-search-empty,
body .weird-notif-itm-sub,
body .weird-notif-itm-time,
body .weird-notif-empty,
body .weird-notif-loading {
	color: var(--overlay-text-soft) !important;
}
body .weird-search-result,
body .weird-notif-item {
	border-color: transparent !important;
}
body .weird-search-result:hover,
body .weird-search-result.is-active,
body .weird-notif-item:hover,
body .weird-notif-item.is-unread {
	background: var(--overlay-panel-hover) !important;
	border-color: rgba(124,58,237,0.26) !important;
}
body .weird-search-result-name mark {
	background: rgba(124,58,237,0.22) !important;
	color: var(--overlay-text) !important;
	border-radius: 4px !important;
	padding: 0 2px !important;
}
body .weird-search-result-thumb,
body .weird-notif-icon {
	background: rgba(124,58,237,0.12) !important;
	color: #a78bfa !important;
}
html.light-mode body .weird-search-result-thumb,
html.light-mode body .weird-notif-icon,
body[data-theme="light"] .weird-search-result-thumb,
body[data-theme="light"] .weird-notif-icon {
	background: rgba(124,58,237,0.08) !important;
	color: #6d28d9 !important;
}
body .weird-search-result-cat,
body .weird-notif-mark-all,
body .weird-notif-foot-link {
	background: rgba(124,58,237,0.12) !important;
	border-color: rgba(124,58,237,0.24) !important;
	color: #c4b5fd !important;
}
html.light-mode body .weird-search-result-cat,
html.light-mode body .weird-notif-mark-all,
html.light-mode body .weird-notif-foot-link,
body[data-theme="light"] .weird-search-result-cat,
body[data-theme="light"] .weird-notif-mark-all,
body[data-theme="light"] .weird-notif-foot-link {
	background: rgba(124,58,237,0.08) !important;
	border-color: rgba(124,58,237,0.18) !important;
	color: #5b21b6 !important;
}
body .weird-search-clear {
	background: var(--overlay-panel-soft) !important;
	border-color: var(--overlay-panel-border) !important;
	color: var(--overlay-text-soft) !important;
}
body .weird-search-clear:hover,
body .weird-notif-mark-all:hover {
	background: rgba(124,58,237,0.16) !important;
	border-color: rgba(124,58,237,0.34) !important;
	color: var(--overlay-text) !important;
}
body .weird-notif-head,
body .weird-notif-foot,
body .weird-notif-item {
	border-color: var(--overlay-panel-border) !important;
}

@media (max-width: 640px) {
	body .weird-search-popout,
	body .weird-notif-popout {
		left: 10px !important;
		right: 10px !important;
		width: auto !important;
		top: 58px !important;
		max-width: none !important;
		max-height: calc(100dvh - 72px) !important;
		max-height: calc(100dvh - 72px) !important;
		border-radius: 14px !important;
	}
	body .weird-search-popout { padding: 10px !important; }
	body .weird-search-results,
	body .weird-notif-list {
		max-height: calc(100dvh - 206px) !important;
		max-height: calc(100dvh - 206px) !important;
	}
	body .weird-search-result {
		grid-template-columns: 42px minmax(0, 1fr) !important;
		gap: 10px !important;
		padding: 9px 8px !important;
	}
	body .weird-search-result-cat {
		grid-column: 2 !important;
		justify-self: start !important;
		max-width: 100% !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}
	body .weird-search-result-thumb,
	body .weird-notif-icon {
		width: 42px !important;
		height: 42px !important;
	}
	body .weird-notif-head {
		padding: 12px 14px !important;
		gap: 10px !important;
	}
	body .weird-notif-item {
		padding: 12px 14px !important;
	}
}

/* V6.9 patch 239 — tighter notification rows. Header.php defines compact
   notification spacing, but this later overlay block used to re-expand rows
   on mobile. Keep the popout dense enough for game notifications with longer
   participant names while preserving touch targets. */
body .weird-notif-popout .weird-notif-item {
	gap: 9px !important;
	padding: 8px 14px !important;
}
body .weird-notif-popout {
	width: min(440px, calc(100vw - 24px)) !important;
	max-height: min(560px, calc(100dvh - 88px)) !important;
	max-height: min(560px, calc(100dvh - 88px)) !important;
}
body .weird-notif-popout .weird-notif-list {
	max-height: min(410px, calc(100dvh - 224px)) !important;
	max-height: min(410px, calc(100dvh - 224px)) !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}
body .weird-notif-popout .weird-notif-icon {
	width: 34px !important;
	height: 34px !important;
	border-radius: 9px !important;
	font-size: 15px !important;
}
body .weird-notif-popout .weird-notif-itm-title {
	line-height: 1.15 !important;
	margin: 0 0 2px !important;
}
body .weird-notif-popout .weird-notif-itm-sub {
	line-height: 1.22 !important;
	margin: 0 0 2px !important;
}
body .weird-notif-popout .weird-notif-itm-time {
	line-height: 1.1 !important;
}

@media (max-width: 640px) {
	body .weird-notif-popout {
		max-height: min(520px, calc(100dvh - 78px)) !important;
	}
	body .weird-notif-popout .weird-notif-list {
		max-height: min(360px, calc(100dvh - 210px)) !important;
	}
	body .weird-notif-popout .weird-notif-item {
		padding: 8px 12px !important;
	}
}

/* ============================================================
   V6.8 patch 151 — Meme click-to-zoom lightbox
   ============================================================
   User ask: "Across memes, let people click on them (indicate that)
   to view the full meme pic."

   Renders an always-visible magnifier badge in the corner of every
   meme thumbnail so the affordance is discoverable without hover,
   then opens a centered lightbox overlay on click. Mobile-friendly:
   tap badge or anywhere on the image. Lightbox respects
   `prefers-reduced-motion` (no fade-in if user opted out) and locks
   body scroll while open.

   Handler lives in inline <script> in discover.php and subpage.php.
*/

/* The image becomes the wrapper button. Strip native button chrome
   so the <img> still fills the container exactly like before. */
.discover-card-media .meme-zoom-trigger {
	all: unset;
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
	overflow: hidden;
}
.discover-card-media .meme-zoom-trigger img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.32s cubic-bezier(.2,.7,.3,1);
}
.discover-card-media .meme-zoom-trigger:hover img,
.discover-card-media .meme-zoom-trigger:focus-visible img {
	transform: scale(1.04);
}
.discover-card-media .meme-zoom-trigger:focus-visible {
	outline: 2px solid rgba(124,58,237,0.85);
	outline-offset: -2px;
}

/* Magnifier badge — bottom-right corner. On hover-capable devices the
   badge fades in on rollover ("hover to reveal"); on touch devices
   (no hover) it stays visible so the affordance is discoverable. */
.meme-zoom-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: rgba(15,12,28,0.72);
	color: #fff;
	font-size: 13px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 6px 18px -8px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.18) inset;
	pointer-events: none;
	transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
	z-index: 3;
}
@media (hover: hover) {
	.meme-zoom-badge { opacity: 0; transform: translateY(4px); }
	.discover-card-media .meme-zoom-trigger:hover .meme-zoom-badge,
	.discover-card-media .meme-zoom-trigger:focus-visible .meme-zoom-badge,
	.discover-card-social-thumb .meme-zoom-trigger:hover .meme-zoom-badge,
	.discover-card-social-thumb .meme-zoom-trigger:focus-visible .meme-zoom-badge {
		opacity: 1;
		transform: translateY(0);
	}
}
.discover-card-media .meme-zoom-trigger:hover .meme-zoom-badge,
.discover-card-media .meme-zoom-trigger:focus-visible .meme-zoom-badge {
	background: rgba(124,58,237,0.92);
	transform: scale(1.08);
}

/* Smaller variant for the social-card thumbnail (friend feed) where
   the thumb is only ~88px square. */
.discover-card-social-thumb .meme-zoom-trigger {
	all: unset;
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
	overflow: hidden;
	border-radius: inherit;
}
.discover-card-social-thumb .meme-zoom-trigger img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.meme-zoom-trigger-social .meme-zoom-badge {
	width: 22px;
	height: 22px;
	right: 4px;
	bottom: 4px;
	font-size: 9px;
}

/* ----- Lightbox overlay ----- */
.meme-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9990;
	background: rgba(8,6,18,0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.22s ease;
}
.meme-lightbox.is-open {
	display: flex;
	opacity: 1;
}
.meme-lightbox-figure {
	margin: 0;
	max-width: min(1100px, 96vw);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	animation: memeLightboxPop 0.28s cubic-bezier(.2,.8,.3,1.05);
}
@keyframes memeLightboxPop {
	from { transform: scale(0.94); opacity: 0; }
	to   { transform: scale(1);    opacity: 1; }
}
.meme-lightbox-img {
	max-width: 100%;
	max-height: calc(92vh - 60px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 14px;
	box-shadow: 0 24px 60px -18px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08) inset;
	background: #0a0814;
}
.meme-lightbox-caption {
	color: rgba(255,255,255,0.88);
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
	max-width: 100%;
	overflow-wrap: anywhere;
	text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.meme-lightbox-close {
	position: fixed;
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 0;
	background: rgba(28,22,46,0.78);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.14) inset;
	transition: background 0.18s ease, transform 0.18s ease;
	z-index: 10000;
}
.meme-lightbox-close:hover,
.meme-lightbox-close:focus-visible {
	background: rgba(124,58,237,0.92);
	transform: scale(1.06);
	outline: none;
}

/* Lock body scroll while the lightbox is open. */
body.meme-lightbox-locked {
	overflow: hidden;
}

/* Light-mode parallel — slightly lighter scrim, dark caption text. */
html.light-mode .meme-lightbox {
	background: rgba(245,243,255,0.92);
}
html.light-mode .meme-lightbox-img {
	background: #fff;
	box-shadow: 0 24px 60px -18px rgba(60,40,120,0.35), 0 0 0 1px rgba(124,58,237,0.18) inset;
}
html.light-mode .meme-lightbox-caption {
	color: #2a1f4a;
	text-shadow: none;
}
html.light-mode .meme-lightbox-close {
	background: #fff;
	color: #4b2fb3;
	box-shadow: 0 8px 22px -10px rgba(124,58,237,0.4), 0 0 0 1px rgba(124,58,237,0.22) inset;
}
html.light-mode .meme-lightbox-close:hover,
html.light-mode .meme-lightbox-close:focus-visible {
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	color: #fff;
}
html.light-mode .meme-zoom-badge {
	background: rgba(38,28,82,0.82);
}

/* Respect reduced-motion: disable scale and fade animations. */
@media (prefers-reduced-motion: reduce) {
	.discover-card-media .meme-zoom-trigger:hover img,
	.discover-card-media .meme-zoom-trigger:focus-visible img,
	.discover-card-media .meme-zoom-trigger:hover .meme-zoom-badge,
	.discover-card-media .meme-zoom-trigger:focus-visible .meme-zoom-badge,
	.meme-lightbox-close:hover,
	.meme-lightbox-close:focus-visible { transform: none; }
	.meme-lightbox { transition: none; }
	.meme-lightbox-figure { animation: none; }
}

/* Mobile tweaks: bigger close button comfort area, padded badges. */
@media (max-width: 600px) {
	.meme-zoom-badge {
		width: 30px;
		height: 30px;
		right: 8px;
		bottom: 8px;
		font-size: 11px;
	}
	.meme-lightbox { padding: 12px; }
	.meme-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* ============================================================================
   V6.8 patch 150 — "Your places" picker collapse-by-default.
   ----------------------------------------------------------------------------
   Prior to this patch, editinfo.php rendered ALL 406 US metros as visible
   checkboxes in the DOM at page load. Mobile users had to scroll past
   hundreds of unselected city chips just to reach the rest of the form
   (avatars, interests, save button). The user called this "horrible UX".

   New behavior (DOM unchanged — still 406 labels rendered for form submit
   integrity — but visibility is JS-controlled):
   - default state: ONLY the user's selected (.is-active) cities are visible
   - typing in the search input reveals matching cities
   - clicking "Browse all" toggles the full grid open
   - an empty-state message guides users when no cities are picked

   Selectors below are scoped to .acct-geos so they don't bleed into other
   chip pickers (interests, avatars).
   ============================================================================ */
.acct-geo-toggle {
	font-size: 12px; font-weight: 700;
	padding: 6px 14px; border-radius: 999px;
	background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(124,58,237,0.08));
	color: var(--purple);
	border: 1px solid rgba(124,58,237,0.35);
	cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.acct-geo-toggle:hover {
	background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(124,58,237,0.15));
	border-color: var(--purple);
	transform: translateY(-1px);
}
.acct-geo-toggle:focus-visible {
	outline: 2px solid rgba(124,58,237,0.55);
	outline-offset: 2px;
}
.acct-geo-toggle i { font-size: 12px; }
.acct-geo-toggle[aria-expanded="true"] {
	background: linear-gradient(135deg, var(--purple, #7c3aed), #6d28d9);
	color: #fff;
	border-color: #6d28d9;
}
.acct-geo-toggle[aria-expanded="true"] i { color: #fff; }
html.light-mode .acct-geo-toggle {
	background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(124,58,237,0.05));
	border-color: rgba(124,58,237,0.30);
}
html.light-mode .acct-geo-toggle:hover {
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(124,58,237,0.10));
}
html.light-mode .acct-geo-toggle[aria-expanded="true"] {
	background: linear-gradient(135deg, var(--purple, #7c3aed), #6d28d9);
	color: #fff;
}

/* Empty-state message is now visible by default (no `hidden` attr) since
   the picker starts collapsed with no selections. JS toggles `.hidden`
   when the user starts picking or expands. Restyled to feel like a
   helpful prompt, not an error. */
.acct-geo-empty {
	grid-column: 1 / -1;
	padding: 18px 16px;
	margin: 12px 0 0;
	border-radius: 12px;
	text-align: center;
	color: var(--text-secondary);
	font-size: 13.5px;
	line-height: 1.5;
	background: rgba(124,58,237,0.04);
	border: 1px dashed rgba(124,58,237,0.25);
}
.acct-geo-empty strong { color: var(--purple, #7c3aed); font-weight: 700; }
html.light-mode .acct-geo-empty {
	background: rgba(124,58,237,0.04);
	border-color: rgba(124,58,237,0.20);
}

/* When the picker is collapsed AND the user has selections, tighten the
   grid: the selected cities feel like chips rather than a sparse half-
   row of cards. When expanded, the existing patch 87 grid takes over.
   V6.8 patch 207i.u — bumped from 160px → 280px so the full MSA name
   ("Seattle–Tacoma–Bellevue, WA") fits without clipping. */
.acct-geos[data-state="collapsed"] {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 6px;
}
.acct-geos[data-state="collapsed"] label.acct-geo {
	padding: 8px 12px;
}

/* Mobile compaction: tighter toolbar so the search + count + toggle +
   clear all stay on a single comfortable line where possible. The
   buttons wrap to the next row only when they truly can't fit. */
@media (max-width: 640px) {
	.acct-geo-toolbar {
		gap: 6px;
	}
	.acct-geo-toggle, .acct-geo-clear {
		font-size: 11.5px;
		padding: 6px 10px;
	}
	.acct-geo-count {
		font-size: 11.5px;
		padding: 5px 10px;
	}
	.acct-geos[data-state="collapsed"] {
		grid-template-columns: 1fr 1fr;
	}
	.acct-geos[data-state="expanded"] {
		grid-template-columns: 1fr;
	}
}

/* ================================================================
   V6.8 patch 152 — "Your places" chip: prevent awkward 2-line wraps
   ================================================================
   User ask: "Fix the odd spacing and alignment for metros taking up
   2 lines. Also, organize them by alphabetical order by state and
   then city."

   Cause: at narrow column widths (e.g. 2-col mobile, ~150-180px per
   cell), long city names like "San Francisco" or "Saint Petersburg"
   wrapped onto a second line. Because the grid uses `grid-auto-rows:
   auto`, the entire ROW stretched to match the tallest (2-line) chip,
   leaving single-line siblings with visible vertical whitespace and
   an uneven visual rhythm.

   Fix: keep chips on a single line with `text-overflow: ellipsis`.
   The full "City, ST" is exposed via the new `title` attribute on
   the label, and the state badge alongside the chip clarifies which
   "San..." or "Saint..." it is. Sort-by-state-then-city (in PHP) is
   the complementary change so the expanded 400-city grid is now
   scannable rather than scrambled-by-population.
*/
.acct-geos label.acct-geo {
	/* Make sure the icon, name, and state badge stay vertically
	   centered relative to each other in the chip. (Inherited
	   from the patch 87 base rule but re-declared here so this
	   block is self-contained and survives future cascades.) */
	align-items: center;
}
.acct-geos label.acct-geo .acct-geo-name {
	/* V6.8 patch 207i.u — allow wrapping so the full MSA name
	   (e.g. "Seattle–Tacoma–Bellevue, WA") is visible. The chip
	   grows vertically to fit; the grid keeps the same column width. */
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	word-break: break-word;
	text-align: center;
}
.acct-geos label.acct-geo > .fa-map-marker-alt,
.acct-geos label.acct-geo .acct-geo-state {
	flex: 0 0 auto;
}
/* On very narrow viewports the ellipsis can swallow most of the
   name. Trim the inner padding so we reclaim a few extra px for
   the city label. */
@media (max-width: 480px) {
	.acct-geos label.acct-geo {
		padding-left: 8px !important;
		padding-right: 8px !important;
		gap: 6px;
	}
	.acct-geo-state {
		padding: 1px 4px !important;
		font-size: 9.5px !important;
	}
}

/* ============================================================
   V6.8 patch 160 — Profile subpage theme + width normalization
   ------------------------------------------------------------
   Audit found 3 profile subpages (notifications, notify-prefs,
   reset-password) were forcing an inline `style="max-width:720-
   780px"` directly on `.discover-wrap`, which clashed with the
   canonical 1320-pixel wrapper used by profile/editinfo/answers
   and produced a visible width JUMP when the chip nav was used
   to hop between subpages.

   Fix: those inline overrides have been removed from the PHP
   pages.  Pages with content that genuinely benefits from a
   narrower visible footprint (notify-prefs form, the like) now
   wrap their inner `.acct-card` in `.acct-card-narrow`, which
   self-centres at 720px without disturbing the outer 1320-pixel
   wrap or its chip nav.  Reset-password already uses the
   stand-alone `.acct-rp-card` which is self-narrow at 540px.

   .acct-card-narrow is also safe to layer on any future single-
   column form card that wants the canonical card chrome
   constrained to a readable width.
   ============================================================ */
.acct-card-narrow {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 760px) {
	.acct-card-narrow {
		max-width: 100%;
	}
}


/* ============================================================
   V6.8 patch 153 — Meme card visual fixes
   ============================================================
   User asks:
     1) Memes had no category icon (fa-face-laugh-squint was FA6-only;
        bundled FA is 5.10.1 → rendered blank). PHP side now emits
        fa-laugh-squint; nothing CSS-only to do for #1.
     2) Description with "..." should expand on hover (the 3-line clamp
        was hiding 2+ lines of meme blurb).
     3) Meme images were object-fit:cover, cropping the meme on the
        sides (per attached screenshot the Scumbag Steve image showed
        only "EDS A PLACE TO CR…" / "NEVER LEAVE" — half of each line
        was off-canvas). Switch to object-fit:contain so the WHOLE meme
        fits inside the card. Background gradient masks any letterbox.
     4) Stream/social-card variants also get the lightbox affordance
        (already shipped in patch 151; this patch adds the same
        contain-fit behaviour to the social-thumb so the badge sits on
        a proper preview, not a crop). Lightbox is the "full screen".
*/

/* (3) — show the WHOLE meme inside the item card. */
.discover-card-item[data-cat="memes"] .discover-card-media {
	/* Memes vary wildly in aspect ratio (portraits like Drake, squares
	   like Scumbag Steve, wide formats like Distracted Boyfriend).
	   A 1:1 frame fits all three reasonably and lines up with adjacent
	   square thumbs (music, boardgames). The `contain` rule below
	   handles the actual letterboxing without cropping. */
	aspect-ratio: 1 / 1;
	max-height: 320px;
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(15,12,28,0.55));
	transition: max-height 0.32s var(--ease, cubic-bezier(.2,.7,.3,1)),
	            aspect-ratio 0.32s var(--ease, cubic-bezier(.2,.7,.3,1));
}
.discover-card-item[data-cat="memes"] .discover-card-media img,
.discover-card-item[data-cat="memes"] .discover-card-media .meme-zoom-trigger img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	background: rgba(8,6,18,0.6);
}

/* (2) — expand description fully on hover (same pattern as movies/tv).
   Without this the user only sees the first 3 lines + "…" with no way
   to read the rest without clicking through. */
.discover-card-item[data-cat="memes"]:hover {
	z-index: 10;
}
.discover-card-item[data-cat="memes"]:hover .discover-card-desc {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	-webkit-box-orient: initial;
	overflow: visible;
}

/* Touch devices have no hover. Tap-to-expand via :focus-within so a
   user can tap the card body to read the full description on mobile. */
.discover-card-item[data-cat="memes"]:focus-within .discover-card-desc {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	-webkit-box-orient: initial;
	overflow: visible;
}

/* (4) — social-card thumb: meme preview also uses contain so the
   tiny 56×56 preview shows the WHOLE meme rather than a cropped
   centre-square. Lightbox still opens the full image. */
.discover-card-social-thumb .meme-zoom-trigger img {
	object-fit: contain;
	background: rgba(8,6,18,0.6);
}

/* Light-mode parallel: subtler letterbox tint. */
html.light-mode .discover-card-item[data-cat="memes"] .discover-card-media {
	background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(245,243,255,0.6));
}
html.light-mode .discover-card-item[data-cat="memes"] .discover-card-media img,
html.light-mode .discover-card-item[data-cat="memes"] .discover-card-media .meme-zoom-trigger img,
html.light-mode .discover-card-social-thumb .meme-zoom-trigger img {
	background: rgba(245,243,255,0.85);
}

/* Mobile: relax the height ceiling so portrait memes have room. */
@media (max-width: 600px) {
	.discover-card-item[data-cat="memes"] .discover-card-media {
		max-height: 360px;
	}
}

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
	.discover-card-item[data-cat="memes"] .discover-card-media {
		transition: none;
	}
}

/* ============================================================
	V6.8 patch 155 — Broader purple/plum chip language

   The selected-interest chips are the visual direction: dark navy
   idle pills, crisp lavender borders, solid purple-to-plum selected
   states, and readable white active text. Extend that language to
   the reusable nav/filter/action chips and lightweight card accents
   without turning full content surfaces purple.
*/
:root {
	--weird-chip-idle-bg: rgba(16, 31, 61, 0.82);
	--weird-chip-idle-border: rgba(139, 124, 246, 0.34);
	--weird-chip-idle-text: #ede9fe;
	--weird-chip-icon: #a78bfa;
	--weird-chip-active-bg: linear-gradient(135deg, #5b21b6 0%, #7c3aed 52%, #166534 100%);
	--weird-chip-active-border: rgba(167, 139, 250, 0.86);
	--weird-chip-active-shadow: 0 12px 28px -16px rgba(124,58,237,0.70), 0 0 0 1px rgba(255,255,255,0.14) inset;
	--weird-chip-soft-shadow: 0 8px 20px -18px rgba(124,58,237,0.50), 0 0 0 1px rgba(255,255,255,0.035) inset;
}
html.light-mode,
body[data-theme="light"] {
	--weird-chip-idle-bg: rgba(124, 58, 237, 0.075);
	--weird-chip-idle-border: rgba(124, 58, 237, 0.24);
	--weird-chip-idle-text: #2a1f4a;
	--weird-chip-icon: #6d28d9;
	--weird-chip-active-shadow: 0 12px 26px -18px rgba(124,58,237,0.44), 0 0 0 1px rgba(255,255,255,0.72) inset;
	--weird-chip-soft-shadow: 0 8px 18px -18px rgba(124,58,237,0.28), 0 0 0 1px rgba(255,255,255,0.82) inset;
}

.auth-interests label.auth-interest:not(.is-active):not(.active),
.acct-interests label.acct-interest:not(.is-active),
.acct-geos label.acct-geo:not(.is-active),
.discover-tab:not(.active),
.stream-filter:not(.active),
.subpage-pill:not(.active),
.acct-quicklink:not(.is-active),
.profile-compare-chip:not(.is-active),
.connect-tile-actions .connect-tile-act:not(.connect-tile-following),
.connect-tile-actions-row .connect-tile-act:not(.connect-tile-following),
.msg-side-tabs button:not(.is-active),
body .weird-search-result-cat,
body .weird-notif-foot-link {
	background: var(--weird-chip-idle-bg) !important;
	border-color: var(--weird-chip-idle-border) !important;
	color: var(--weird-chip-idle-text) !important;
	box-shadow: var(--weird-chip-soft-shadow) !important;
}
.auth-interests label.auth-interest:not(.is-active):not(.active) i,
.acct-interests label.acct-interest:not(.is-active) i,
.acct-geos label.acct-geo:not(.is-active) i,
.discover-tab:not(.active) i,
.stream-filter:not(.active) i,
.subpage-pill:not(.active) i,
.acct-quicklink:not(.is-active) i,
.profile-compare-chip:not(.is-active) i,
.connect-tile-actions .connect-tile-act:not(.connect-tile-following) i,
.connect-tile-actions-row .connect-tile-act:not(.connect-tile-following) i,
.msg-side-tabs button:not(.is-active) i {
	color: var(--weird-chip-icon) !important;
}

.auth-interests label.auth-interest.is-active,
.auth-interests label.auth-interest.active,
.acct-interests label.acct-interest.is-active,
.acct-geos label.acct-geo.is-active,
.discover-tab.active,
html.light-mode .discover-tab.active,
.stream-filter.active,
html.light-mode .stream-filter.active,
.subpage-pill.active,
html.light-mode .subpage-pill.active,
.acct-quicklink.is-active,
html.light-mode .acct-quicklink.is-active,
.profile-compare-chip.is-active,
html.light-mode .profile-compare-chip.is-active,
.connect-tile-actions .connect-tile-act.connect-tile-following,
.connect-tile-actions-row .connect-tile-act.connect-tile-following,
html.light-mode .connect-tile-actions .connect-tile-act.connect-tile-following,
html.light-mode .connect-tile-actions-row .connect-tile-act.connect-tile-following,
.msg-side-tabs button.is-active,
body .discover-card-actions .discover-card-save.saved,
body .discover-card-actions .discover-follow.connect-tile-following,
body .weird-notif-mark-all,
body .weird-notif-mark-all:hover {
	background: var(--weird-chip-active-bg) !important;
	border-color: var(--weird-chip-active-border) !important;
	color: #fff !important;
	box-shadow: var(--weird-chip-active-shadow) !important;
}
.auth-interests label.auth-interest.is-active i,
.auth-interests label.auth-interest.active i,
.acct-interests label.acct-interest.is-active i,
.acct-geos label.acct-geo.is-active i,
.discover-tab.active i,
.stream-filter.active i,
.subpage-pill.active i,
.acct-quicklink.is-active i,
.profile-compare-chip.is-active i,
.connect-tile-actions .connect-tile-act.connect-tile-following i,
.connect-tile-actions-row .connect-tile-act.connect-tile-following i,
.msg-side-tabs button.is-active i,
body .discover-card-actions .discover-card-save.saved i,
body .discover-card-actions .discover-follow.connect-tile-following i {
	color: #fff !important;
}

.discover-card .discover-card-tag,
.discover-card-social-tag,
.discover-card-ai-type,
.discover-card-pct,
.games-filter-pill.active,
.discover-tab-count {
	background: var(--weird-chip-active-bg) !important;
	border-color: var(--weird-chip-active-border) !important;
	color: #fff !important;
	box-shadow: 0 10px 24px -17px rgba(124,58,237,0.66) !important;
}
.discover-card .discover-card-tag i,
.discover-card-social-tag i,
.discover-card-ai-type i,
.discover-card-pct i,
.games-filter-pill.active i,
.discover-tab-count i {
	color: #fff !important;
}

.discover-card,
.profile-card,
.acct-card,
.acct-rp-card,
.connect-tile,
.games-lb-card,
.msg-sidebar,
.msg-thread,
.msg-composer {
	border-color: rgba(139,124,246,0.24) !important;
}
.discover-card:hover,
.profile-card:hover,
.acct-card:hover,
.connect-tile:hover,
.games-lb-card:hover {
	border-color: rgba(167,139,250,0.46) !important;
	box-shadow: 0 22px 52px -38px rgba(124,58,237,0.54), 0 1px 0 rgba(255,255,255,0.07) inset !important;
}
html.light-mode .discover-card,
html.light-mode .profile-card,
html.light-mode .acct-card,
html.light-mode .acct-rp-card,
html.light-mode .connect-tile,
html.light-mode .games-lb-card,
html.light-mode .msg-sidebar,
html.light-mode .msg-thread,
html.light-mode .msg-composer {
	border-color: rgba(124,58,237,0.18) !important;
}

@media (max-width: 640px) {
	.discover-tab,
	.stream-filter,
	.subpage-pill,
	.acct-quicklink,
	.auth-interests label.auth-interest,
	.acct-interests label.acct-interest {
		box-shadow: 0 6px 16px -16px rgba(124,58,237,0.54) !important;
	}
}

/* ============================================================
	V6.8 patch 159 - Aurora welcome gradient

   Match the new profile-header gradient direction on the Discover
   greeting strip: lavender on the left, cool blue through the middle,
   and a warm rose edge on the right. Dark mode keeps the same color
   story with deeper plum/navy/berry tones.
*/
.discover-greet {
	background:
		radial-gradient(ellipse 78% 118% at 0% 0%, rgba(124,58,237,0.34) 0%, rgba(124,58,237,0.10) 42%, transparent 72%),
		radial-gradient(ellipse 72% 118% at 48% 54%, rgba(8,145,178,0.24) 0%, rgba(8,145,178,0.09) 46%, transparent 74%),
		radial-gradient(ellipse 80% 120% at 100% 0%, rgba(21,128,61,0.30) 0%, rgba(21,128,61,0.11) 48%, transparent 76%),
		linear-gradient(105deg, #30246b 0%, #172640 48%, #442537 100%) !important;
	border-color: rgba(167,139,250,0.30) !important;
	box-shadow: 0 18px 44px -32px rgba(124,58,237,0.64), 0 1px 0 rgba(255,255,255,0.06) inset !important;
}
.discover-greet::before { opacity: 0 !important; }
.discover-greet .discover-greet-hi { color: #f8f7ff !important; }
.discover-greet .discover-greet-tag { color: rgba(237,233,254,0.78) !important; }

html.light-mode .discover-greet {
	background:
		radial-gradient(ellipse 78% 118% at 0% 0%, rgba(124,58,237,0.16) 0%, rgba(124,58,237,0.055) 46%, transparent 72%),
		radial-gradient(ellipse 72% 118% at 48% 54%, rgba(34,211,238,0.13) 0%, rgba(34,211,238,0.045) 48%, transparent 74%),
		radial-gradient(ellipse 80% 120% at 100% 0%, rgba(74,222,128,0.16) 0%, rgba(74,222,128,0.055) 50%, transparent 76%),
		linear-gradient(105deg, #f3eaff 0%, #f8fbff 48%, #fff0f3 100%) !important;
	border-color: rgba(124,58,237,0.16) !important;
	box-shadow: 0 18px 42px -34px rgba(124,58,237,0.30), 0 1px 0 rgba(255,255,255,0.82) inset !important;
}
html.light-mode .discover-greet .discover-greet-hi { color: #172033 !important; }
html.light-mode .discover-greet .discover-greet-tag { color: #586174 !important; }

/* ============================================================
	V6.8 patch 160 - Combined Discover welcome/header

   The default Discover stream used to stack the personalized greeting
   above a separate Discover stats bar. Merge those jobs into one
   compact surface so the first viewport opens with content sooner.
*/
.discover-greet-combined {
	display: grid !important;
	position: relative;
	z-index: 40;
	grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
	align-items: center;
	gap: 10px 18px;
	padding: 14px 18px !important;
	margin: 4px 0 16px !important;
}
.discover-greet-combined .discover-greet-text {
	min-width: 0;
}
.discover-greet-combined .discover-greet-tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.discover-greet-combined .discover-greet-tag i {
	color: #a78bfa;
	font-size: 12px;
}
html.light-mode .discover-greet-combined .discover-greet-tag i { color: #6d28d9; }
.discover-greet-rail {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.discover-greet-rail::-webkit-scrollbar { display: none; }
.discover-greet-combined .discover-greet-chips,
.discover-greet-combined .discover-greet-stats {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap !important;
	gap: 8px;
	flex: 0 0 auto;
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	min-width: 0;
}
.discover-greet-combined .discover-greet-stats {
	margin-left: 0 !important;
}
.discover-greet-stats-details {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
	gap: 8px;
}
.discover-greet-stats-toggle {
	list-style: none;
	cursor: pointer;
	user-select: none;
}
.discover-greet-stats-toggle::-webkit-details-marker { display: none; }
.discover-greet-stats-caret {
	font-size: 10px !important;
	transition: transform 160ms ease;
}
.discover-greet-stats-details[open] .discover-greet-stats-caret {
	transform: rotate(180deg);
}
.discover-greet-stats-details[open] .discover-greet-stats {
	margin-left: 8px !important;
}
.discover-greet-combined .discover-greet-chip,
.discover-greet-combined .discover-greet-stats-toggle,
.discover-greet-combined .discover-bar-stat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	border-radius: 999px;
	border: 1px solid rgba(167,139,250,0.24) !important;
	color: rgba(237,233,254,0.92) !important;
	padding-top: 7px !important;
	padding-bottom: 7px !important;
	background: rgba(16,31,61,0.50) !important;
	box-shadow: 0 8px 20px -18px rgba(124,58,237,0.62), 0 1px 0 rgba(255,255,255,0.08) inset !important;
}
.discover-greet-combined .discover-greet-stats-toggle {
	padding-left: 11px !important;
	padding-right: 11px !important;
}
.discover-greet-combined .discover-greet-stats-toggle i { color: #f8f7ff !important; }
.discover-greet-combined .discover-bar-stat strong,
.discover-greet-combined .discover-bar-stat i { color: #f8f7ff !important; }
html.light-mode .discover-greet-combined .discover-greet-chip,
html.light-mode .discover-greet-combined .discover-greet-stats-toggle,
html.light-mode .discover-greet-combined .discover-bar-stat {
	background: rgba(255,255,255,0.62) !important;
	border-color: rgba(124,58,237,0.16) !important;
	color: #24163f !important;
	box-shadow: 0 8px 20px -18px rgba(124,58,237,0.30), 0 1px 0 rgba(255,255,255,0.84) inset !important;
}
html.light-mode .discover-greet-combined .discover-greet-stats-toggle i { color: #6d28d9 !important; }
html.light-mode .discover-greet-combined .discover-bar-stat strong { color: #172033 !important; }
html.light-mode .discover-greet-combined .discover-bar-stat i { color: #6d28d9 !important; }

@media (max-width: 920px) {
	.discover-greet-combined {
		grid-template-columns: 1fr;
		padding: 16px !important;
	}
	.discover-greet-rail,
	.discover-greet-combined .discover-greet-chips,
	.discover-greet-combined .discover-greet-stats {
		justify-content: flex-start;
	}
}
@media (max-width: 640px) {
	.discover-greet-combined {
		gap: 10px;
		padding: 14px !important;
	}
	.discover-greet-combined .discover-greet-hi { font-size: 19px !important; }
	.discover-greet-rail {
		display: flex;
		flex-wrap: nowrap;
		gap: 7px;
	}
	.discover-greet-combined .discover-greet-chips,
	.discover-greet-combined .discover-greet-stats {
		overflow: visible;
		justify-content: flex-start;
		padding-bottom: 1px;
	}
	.discover-greet-combined .discover-greet-chip,
	.discover-greet-combined .discover-greet-stats-toggle,
	.discover-greet-combined .discover-bar-stat {
		flex: 0 0 auto;
		min-height: 32px;
		padding: 7px 10px !important;
		font-size: 11.5px !important;
	}
}

/* ============================================================
	V6.8 patch 161 - Category browse UX polish

   Explore/Play category pages now use category-specific copy and a
   single control deck for search, audience, subcategory, platform,
   and result state. These overrides keep that deck compact, scanable,
   and consistent across desktop, tablet, and mobile.
*/
.discover-bar-left .subpage-bar-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.discover-bar-left .subpage-bar-copy .discover-bar-title {
	margin: 0;
	line-height: 1.08;
}
.subpage-bar-sub {
	display: block;
	max-width: 720px;
	font-size: 13px;
	line-height: 1.35;
	font-weight: 600;
	color: rgba(237,233,254,0.72);
}
html.light-mode .subpage-bar-sub { color: #5c6474; }

.subpage-browse-section {
	margin-top: 10px !important;
}
.subpage-control-deck {
	position: relative;
	margin: 0 0 18px;
	padding: 12px;
	border-radius: 8px;
	border: 1px solid rgba(167,139,250,0.22);
	background:
		radial-gradient(ellipse 82% 120% at 0% 0%, rgba(124,58,237,0.18) 0%, rgba(124,58,237,0.06) 48%, transparent 74%),
		radial-gradient(ellipse 70% 110% at 100% 20%, rgba(8,145,178,0.14) 0%, rgba(8,145,178,0.04) 48%, transparent 76%),
		linear-gradient(135deg, rgba(19,16,36,0.78), rgba(15,23,42,0.72));
	box-shadow: 0 18px 42px -36px rgba(124,58,237,0.62), 0 1px 0 rgba(255,255,255,0.05) inset;
}
html.light-mode .subpage-control-deck {
	border-color: rgba(124,58,237,0.15);
	background:
		radial-gradient(ellipse 82% 120% at 0% 0%, rgba(124,58,237,0.12) 0%, rgba(124,58,237,0.035) 50%, transparent 74%),
		radial-gradient(ellipse 70% 110% at 100% 20%, rgba(8,145,178,0.10) 0%, rgba(8,145,178,0.025) 48%, transparent 76%),
		linear-gradient(135deg, #fbfaff, #f3fbff 62%, #fffaf0);
	box-shadow: 0 16px 34px -32px rgba(124,58,237,0.24), 0 1px 0 rgba(255,255,255,0.82) inset;
}
.subpage-control-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 10px;
}
.subpage-control-kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 1 auto;
	min-width: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(237,233,254,0.78);
}
.subpage-control-kicker i { color: #a78bfa; font-size: 11px; }
html.light-mode .subpage-control-kicker { color: #5a4a80; }
html.light-mode .subpage-control-kicker i { color: #6d28d9; }
.subpage-control-head .subpage-search-head {
	display: flex;
	align-items: stretch;
	flex: 0 0 96px !important;
	width: 96px !important;
	min-width: 96px !important;
	max-width: 96px;
	margin-left: 0;
	overflow: hidden;
	order: 2;
	transition: width 180ms ease, max-width 180ms ease, flex-basis 180ms ease;
}
.subpage-control-head .subpage-search-head.is-open,
.subpage-control-head .subpage-search-head.has-value,
.subpage-control-head .subpage-search-head:focus-within {
	flex: 1 1 320px !important;
	width: min(100%, 380px) !important;
	max-width: 380px;
}
.subpage-control-head .subpage-search-head input[type="text"] {
	flex: 1 1 auto;
	width: 0 !important;
	min-width: 0 !important;
	max-width: 0;
	min-height: 38px;
	padding-left: 0 !important;
	padding-right: 0 !important;
	border-left-width: 0 !important;
	border-right-width: 0 !important;
	border-radius: 999px 0 0 999px;
	border-color: rgba(167,139,250,0.20) !important;
	background-color: rgba(255,255,255,0.06) !important;
	color: var(--text-primary) !important;
	opacity: 0;
	pointer-events: none;
	outline: none;
	transition: opacity 150ms ease, max-width 180ms ease, padding 180ms ease;
}
.subpage-control-head .subpage-search-head.is-open input[type="text"],
.subpage-control-head .subpage-search-head.has-value input[type="text"],
.subpage-control-head .subpage-search-head:focus-within input[type="text"] {
	width: 100% !important;
	max-width: 100%;
	padding-left: 14px !important;
	padding-right: 12px !important;
	border-left-width: 1px !important;
	border-right-width: 0 !important;
	opacity: 1;
	pointer-events: auto;
}
.subpage-control-head .subpage-search-trigger,
.subpage-control-head button.subpage-search-trigger[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px;
	flex: 0 0 96px !important;
	width: 96px !important;
	min-width: 96px !important;
	height: 38px !important;
	min-height: 38px !important;
	padding: 0 !important;
	border-radius: 999px !important;
	border: 1px solid rgba(167,139,250,0.28) !important;
	background: rgba(124,58,237,0.10) !important;
	background-image: none !important;
	color: #c4b5fd !important;
	box-shadow: 0 8px 20px -18px rgba(124,58,237,0.62), 0 1px 0 rgba(255,255,255,0.08) inset !important;
	cursor: pointer;
	font-size: 12px !important;
	font-weight: 850 !important;
	letter-spacing: 0.01em;
	transform: none !important;
}
.subpage-control-head .subpage-search-head.is-open .subpage-search-trigger,
.subpage-control-head .subpage-search-head.has-value .subpage-search-trigger,
.subpage-control-head .subpage-search-head:focus-within .subpage-search-trigger {
	border-radius: 0 999px 999px 0 !important;
	background: var(--weird-chip-active-bg) !important;
	border-color: var(--weird-chip-active-border) !important;
	color: #fff !important;
	flex-basis: 42px !important;
	width: 42px !important;
	min-width: 42px !important;
}
.subpage-control-head .subpage-search-trigger i { color: inherit !important; }
.subpage-control-head .subpage-search-trigger span { color: inherit !important; }
.subpage-control-head .subpage-search-head.is-open .subpage-search-trigger span,
.subpage-control-head .subpage-search-head.has-value .subpage-search-trigger span,
.subpage-control-head .subpage-search-head:focus-within .subpage-search-trigger span { display: none; }
.subpage-control-head .subpage-search-head input[type="text"]::placeholder { color: rgba(237,233,254,0.58); }
html.light-mode .subpage-control-head .subpage-search-head input[type="text"] {
	background-color: rgba(255,255,255,0.80) !important;
	border-color: rgba(124,58,237,0.16) !important;
	color: #24163f !important;
}
html.light-mode .subpage-control-head .subpage-search-trigger,
html.light-mode .subpage-control-head button.subpage-search-trigger[type="submit"] {
	background: rgba(124,58,237,0.08) !important;
	background-image: none !important;
	border-color: rgba(124,58,237,0.18) !important;
	color: #6d28d9 !important;
	box-shadow: 0 8px 20px -18px rgba(124,58,237,0.30), 0 1px 0 rgba(255,255,255,0.84) inset !important;
}
html.light-mode .subpage-control-head .subpage-search-head.is-open .subpage-search-trigger,
html.light-mode .subpage-control-head .subpage-search-head.has-value .subpage-search-trigger,
html.light-mode .subpage-control-head .subpage-search-head:focus-within .subpage-search-trigger {
	background: var(--weird-chip-active-bg) !important;
	border-color: var(--weird-chip-active-border) !important;
	color: #fff !important;
}
html.light-mode .subpage-control-head .subpage-search-head input[type="text"]::placeholder { color: #7a6b96; }
.subpage-clear-filters {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	min-height: 30px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(167,139,250,0.45);
	background: rgba(124,58,237,0.18);
	color: #f4f1ff !important;
	font-size: 12px;
	font-weight: 850;
	text-decoration: none !important;
	margin-left: auto;
	order: 3;
}
.subpage-clear-filters:hover {
	background: rgba(124,58,237,0.30);
	border-color: rgba(167,139,250,0.62);
	color: #fff !important;
}
.subpage-clear-filters i { font-size: 11px; }
html.light-mode .subpage-clear-filters {
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.34);
	color: #4c1d95 !important;
}
html.light-mode .subpage-clear-filters:hover {
	background: rgba(124,58,237,0.16);
	border-color: rgba(124,58,237,0.48);
	color: #3b1571 !important;
}
/* The Clear button is an <a> inside .wrapper, so the global
   `.wrapper a { color: var(--purple) !important }` (0,1,1) beats the
   `.subpage-clear-filters` (0,1,0) colour above and paints the label purple —
   unreadable on the deck. Re-assert with deck-scoped `a.…` (0,2,1) so it wins. */
.subpage-control-deck a.subpage-clear-filters { color: #f4f1ff !important; }
.subpage-control-deck a.subpage-clear-filters:hover { color: #fff !important; }
html.light-mode .subpage-control-deck a.subpage-clear-filters { color: #4c1d95 !important; }
html.light-mode .subpage-control-deck a.subpage-clear-filters:hover { color: #3b1571 !important; }

.subpage-active-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin: -2px 0 10px;
}
.subpage-control-deck .subpage-active-filter,
.subpage-control-deck a.subpage-active-filter {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	max-width: 100%;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(167,139,250,0.24);
	background: rgba(255,255,255,0.055);
	color: rgba(255,255,255,0.90) !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none !important;
}
.subpage-control-deck .subpage-active-filter:first-child {
	border-color: rgba(167,139,250,0.48);
	background: linear-gradient(135deg, rgba(124,58,237,0.42), rgba(8,145,178,0.22));
	box-shadow: 0 10px 24px -20px rgba(124,58,237,0.85);
}
.subpage-control-deck a.subpage-active-filter:hover {
	border-color: rgba(167,139,250,0.58);
	background: rgba(124,58,237,0.20);
	color: #fff !important;
}
.subpage-active-filter > i:first-child {
	flex: 0 0 auto;
	font-size: 11px;
	color: #c4b5fd;
}
.subpage-active-filter-text {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	min-width: 0;
}
.subpage-active-filter-label {
	flex: 0 0 auto;
	font-size: 10px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(237,233,254,0.62);
}
.subpage-active-filter-value {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.subpage-active-filter-x {
	flex: 0 0 auto;
	font-size: 10px;
	color: rgba(237,233,254,0.62);
}
html.light-mode .subpage-control-deck .subpage-active-filter,
html.light-mode .subpage-control-deck a.subpage-active-filter {
	background: rgba(255,255,255,0.78);
	border-color: rgba(124,58,237,0.18);
	color: #24163f !important;
}
html.light-mode .subpage-control-deck .subpage-active-filter:first-child {
	background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(8,145,178,0.10));
	border-color: rgba(124,58,237,0.32);
}
html.light-mode .subpage-active-filter-label { color: #6b5e88; }
html.light-mode .subpage-active-filter > i:first-child { color: #6d28d9; }

.subpage-control-deck .subpage-toolbar {
	margin: 0 0 10px !important;
	gap: 8px !important;
}
.subpage-control-deck .subpage-toolbar form.subpage-search {
	display: flex;
	align-items: stretch;
	flex: 0 0 42px !important;
	width: 42px !important;
	min-width: 42px !important;
	max-width: 42px;
	overflow: hidden;
	transition: width 180ms ease, max-width 180ms ease, flex-basis 180ms ease;
}
.subpage-control-deck .subpage-toolbar form.subpage-search.is-open,
.subpage-control-deck .subpage-toolbar form.subpage-search.has-value,
.subpage-control-deck .subpage-toolbar form.subpage-search:focus-within {
	flex: 1 1 320px !important;
	width: min(100%, 420px) !important;
	max-width: 420px;
}
.subpage-control-deck .subpage-toolbar .subpage-search input[type="text"],
.subpage-control-deck .subpage-locfilter-sel {
	min-height: 38px;
	background-color: rgba(255,255,255,0.06) !important;
	border-color: rgba(167,139,250,0.18) !important;
	box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
}
html.light-mode .subpage-control-deck .subpage-toolbar .subpage-search input[type="text"],
html.light-mode .subpage-control-deck .subpage-locfilter-sel {
	background-color: rgba(255,255,255,0.78) !important;
	border-color: rgba(124,58,237,0.14) !important;
}
.subpage-control-deck .subpage-locfilter-sel.is-selected,
html.light-mode .subpage-control-deck .subpage-locfilter-sel.is-selected {
	background-color: rgba(124,58,237,0.62) !important;
	border-color: rgba(167,139,250,0.56) !important;
	color: #fff !important;
	box-shadow: var(--weird-chip-active-shadow) !important;
}
.subpage-control-deck .subpage-toolbar .subpage-search input[type="text"] {
	flex: 1 1 auto;
	width: 0 !important;
	min-width: 0 !important;
	max-width: 0;
	padding-left: 0 !important;
	padding-right: 0 !important;
	border-left-width: 0 !important;
	border-right-width: 0 !important;
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms ease, max-width 180ms ease, padding 180ms ease;
}
.subpage-control-deck .subpage-toolbar form.subpage-search.is-open input[type="text"],
.subpage-control-deck .subpage-toolbar form.subpage-search.has-value input[type="text"],
.subpage-control-deck .subpage-toolbar form.subpage-search:focus-within input[type="text"] {
	width: 100% !important;
	max-width: 100%;
	padding-left: 14px !important;
	padding-right: 14px !important;
	border-left-width: 1px !important;
	border-right-width: 1px !important;
	opacity: 1;
	pointer-events: auto;
}
.subpage-control-deck .subpage-toolbar .subpage-search button,
.subpage-control-deck .subpage-locfilter button {
	min-width: 42px;
	min-height: 38px;
	padding: 9px 14px !important;
}
.subpage-control-deck .subpage-toolbar .subpage-search button {
	width: 42px !important;
	padding: 0 !important;
	border-radius: 8px !important;
}

.subpage-control-deck .discover-audience {
	margin: 0 0 10px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	gap: 7px !important;
}
.subpage-control-deck .discover-audience-pill,
.subpage-control-deck .discover-audience-toggle {
	background: rgba(255,255,255,0.045) !important;
	border: 1px solid rgba(167,139,250,0.16) !important;
	font-weight: 750 !important;
}
.subpage-control-deck .discover-audience-pill:hover,
.subpage-control-deck .discover-audience-toggle:hover {
	background: rgba(124,58,237,0.13) !important;
	border-color: rgba(167,139,250,0.38) !important;
}
.subpage-control-deck .discover-audience-pill.active {
	background: var(--brand-pop-line) !important;
	border-color: rgba(124,58,237,0.50) !important;
}
.subpage-control-deck .discover-audience-toggle.active {
	background: var(--weird-chip-active-bg) !important;
	border-color: var(--weird-chip-active-border) !important;
	border-style: solid !important;
	color: #fff !important;
	box-shadow: var(--weird-chip-active-shadow) !important;
}
.subpage-control-deck .discover-audience-toggle.active i { color: #fff !important; }
html.light-mode .subpage-control-deck .discover-audience-pill,
html.light-mode .subpage-control-deck .discover-audience-toggle {
	background: rgba(255,255,255,0.74) !important;
	border-color: rgba(124,58,237,0.16) !important;
}
html.light-mode .subpage-control-deck .discover-audience-pill.active,
html.light-mode .subpage-control-deck .discover-audience-toggle.active {
	background: var(--weird-chip-active-bg) !important;
	border-color: var(--weird-chip-active-border) !important;
	color: #fff !important;
	box-shadow: var(--weird-chip-active-shadow) !important;
}

.subpage-control-deck .subpage-pillrow {
	align-items: center;
	gap: 7px !important;
	margin: 0 0 10px !important;
}
.subpage-control-deck .subpage-pillrow-label {
	flex: 0 0 auto;
	min-width: 92px;
	padding: 6px 8px 6px 0 !important;
	font-size: 11px !important;
	letter-spacing: 0.02em !important;
	color: rgba(237,233,254,0.62) !important;
}
html.light-mode .subpage-control-deck .subpage-pillrow-label { color: #665879 !important; }
.subpage-control-deck .subpage-pill {
	padding: 7px 13px !important;
	font-size: 13px !important;
	background: rgba(255,255,255,0.045) !important;
	border-color: rgba(167,139,250,0.16) !important;
}
html.light-mode .subpage-control-deck .subpage-pill {
	background: rgba(255,255,255,0.74) !important;
	border-color: rgba(124,58,237,0.16) !important;
}
.subpage-control-deck .subpage-pill.active,
html.light-mode .subpage-control-deck .subpage-pill.active {
	background: var(--weird-chip-active-bg) !important;
	border-color: var(--weird-chip-active-border) !important;
	color: #fff !important;
	box-shadow: var(--weird-chip-active-shadow) !important;
}
/* Facet bar — a labeled "Type" gutter, the genre pills (which may wrap to
   several rows on genre-rich categories like Movies/Books), and a right-pinned
   Popular | Newest segmented sort control. Emitted for every single-table
   Explore category; the segmented only renders where sorting is supported. The
   deck swaps to native select chips at ≤640px, where the facetbar is hidden. */
.subpage-control-deck .subpage-deck-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(237,233,254,0.66);
}
/* Align the two deck rows: the inline "Rated by" lead label and the "Type"
   label share ONE fixed-width gutter so the audience pills and the type pills
   start at the same x (a clean vertical column). Both rows use the same 7px
   label→pill gap. */
.subpage-control-deck .discover-audience-lead,
.subpage-control-deck .subpage-facetbar > .subpage-deck-label {
	flex: 0 0 auto;
	min-width: 92px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	color: rgba(237,233,254,0.66);
}
html.light-mode .subpage-control-deck .discover-audience-lead,
html.light-mode .subpage-control-deck .subpage-facetbar > .subpage-deck-label { color: #5e4f86; }
html.light-mode .subpage-control-deck .subpage-deck-label { color: #5e4f86; }
/* Type row: label gutter | pills (flex middle, wraps internally) | segmented
   sort control pinned right. Top-aligned so when the genre pills wrap to
   multiple rows the Type label and the segmented stay on the first row. */
.subpage-control-deck .subpage-facetbar {
	display: flex;
	align-items: flex-start;
	gap: 7px;
}
.subpage-control-deck .subpage-facetbar > .subpage-deck-label {
	padding-top: 9px;
}
.subpage-control-deck .subpage-facetbar .subpage-facetbar-pills {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
}
.subpage-control-deck .subpage-segmented {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	border: 1px solid rgba(167,139,250,0.16);
	background: rgba(255,255,255,0.045);
}
.subpage-control-deck .subpage-seg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 750;
	line-height: 1;
	white-space: nowrap;
	color: rgba(237,233,254,0.74) !important;
	text-decoration: none !important;
	transition: background .15s ease, color .15s ease;
}
.subpage-control-deck .subpage-seg:hover {
	color: #fff !important;
	background: rgba(124,58,237,0.16);
}
.subpage-control-deck .subpage-seg.is-active {
	background: var(--weird-chip-active-bg);
	color: #fff !important;
	box-shadow: var(--weird-chip-active-shadow);
}
html.light-mode .subpage-control-deck .subpage-segmented {
	background: rgba(255,255,255,0.74);
	border-color: rgba(124,58,237,0.16);
}
html.light-mode .subpage-control-deck .subpage-seg { color: #5a4a80 !important; }
html.light-mode .subpage-control-deck .subpage-seg:hover { color: #24163f !important; background: rgba(124,58,237,0.10); }
html.light-mode .subpage-control-deck .subpage-seg.is-active { color: #fff !important; }
@media (max-width: 640px) {
	.subpage-control-deck .subpage-facetbar { display: none !important; }
}
.subpage-control-deck .subpage-pillrow-sub {
	padding-left: 0 !important;
	margin-top: -2px !important;
}
.subpage-control-deck .connect-active-filters {
	display: grid;
	gap: 8px;
	margin: 0 0 8px !important;
}
.subpage-control-deck .connect-active-filter-row,
.subpage-control-deck .subpage-pillrow-filter.connect-active-filter-row {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center;
	justify-content: flex-start;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
}
.subpage-control-deck .connect-active-filter-row .subpage-pillrow-label {
	flex: 0 0 86px;
	min-width: 86px;
	padding: 0 8px 0 0 !important;
}
.subpage-control-deck .connect-active-filter-row .subpage-pill {
	flex: 0 0 auto;
	margin: 0 !important;
}
@media (max-width: 520px) {
	.subpage-control-deck .connect-active-filter-row .subpage-pillrow-label {
		flex-basis: 100%;
		min-width: 0;
	}
}

/* V6.9 patch 238 — "Filter by interest" native-select dropdown. Self-contained
   so it renders identically on desktop + mobile (the shared .subpage-select-chip
   styling is mobile-only, inside an @media block) and for guests. The native
   <select> is overlaid transparently across the whole chip; the visible state
   is driven by the lead icon + .connect-interest-filter-val + caret. */
.subpage-control-deck .connect-interest-row {
	display: grid;
	grid-template-columns: 86px minmax(220px, 360px);
	align-items: center;
	justify-content: start;
	gap: 8px;
	margin: 2px 0 10px;
}
.connect-interest-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	padding-right: 8px;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(237,233,254,0.66);
}
.connect-interest-filter {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 360px;
	min-height: 36px;
	padding: 8px 34px 8px 12px;
	border: 1px solid rgba(167,139,250,0.16);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(15,23,42,0.72), rgba(15,23,42,0.62));
	color: var(--text-primary);
	font-size: 13.5px;
	font-weight: 750;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.connect-interest-filter:hover {
	background: linear-gradient(180deg, rgba(49,46,129,0.46), rgba(30,41,59,0.64));
	border-color: rgba(167,139,250,0.38);
}
.connect-interest-filter:focus-within {
	border-color: rgba(167,139,250,0.62);
	box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.connect-interest-filter.is-selected {
	background: var(--weird-chip-active-bg);
	border-color: var(--weird-chip-active-border);
	color: #fff;
	box-shadow: var(--weird-chip-active-shadow);
}
.connect-interest-label .connect-if-lead { color: #b6f3d2; font-size: 12px; flex: 0 0 auto; }
.connect-interest-filter-val {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.25;
}
.connect-interest-filter-caret {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 11px;
	opacity: 0.74;
	pointer-events: none;
}
/* The real <select> sits transparent over the whole chip so the entire pill is
   the click/tap target and the native option list anchors to it. */
.connect-interest-filter select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	font-size: 16px; /* iOS: ≥16px avoids zoom-on-focus */
}
.connect-interest-filter select option { color: #1a1740; }
html.light-mode .connect-interest-label { color: #665879; }
html.light-mode .connect-interest-label .connect-if-lead { color: #0f766e; }
html.light-mode .connect-interest-filter {
	background: rgba(255,255,255,0.74);
	border-color: rgba(124,58,237,0.16);
	color: #172033;
	box-shadow: 0 1px 0 rgba(255,255,255,0.78) inset;
}
html.light-mode .connect-interest-filter:hover {
	background: #fff;
	border-color: rgba(124,58,237,0.30);
}
html.light-mode .connect-interest-filter:focus-within { box-shadow: 0 0 0 3px rgba(124,58,237,0.14); }
html.light-mode .connect-interest-filter.is-selected {
	background: var(--weird-chip-active-bg);
	border-color: var(--weird-chip-active-border);
	color: #fff;
	box-shadow: var(--weird-chip-active-shadow);
}
html.dark-mode .connect-interest-label { color: rgba(237,233,254,0.66); }
html.dark-mode .connect-interest-label .connect-if-lead { color: #b6f3d2; }
html.dark-mode .connect-interest-filter:not(.is-selected) {
	background: linear-gradient(180deg, rgba(15,23,42,0.72), rgba(15,23,42,0.62));
	border-color: rgba(167,139,250,0.16);
	color: var(--text-primary);
}
html.dark-mode .connect-interest-filter:not(.is-selected):hover {
	background: linear-gradient(180deg, rgba(49,46,129,0.46), rgba(30,41,59,0.64));
	border-color: rgba(167,139,250,0.38);
}
@media (max-width: 760px) {
	.subpage-control-deck .connect-interest-row {
		grid-template-columns: 78px minmax(180px, 1fr);
	}
	.connect-interest-filter { max-width: none; }
}
@media (max-width: 520px) {
	.subpage-control-deck .connect-interest-row {
		grid-template-columns: 1fr;
		gap: 6px;
		margin: 0 0 12px;
	}
	.connect-interest-label {
		padding-right: 0;
	}
	.connect-interest-filter {
		min-height: 40px;
		font-size: 14px;
	}
}
/* Final scoped cascade locks: global form/label rules in this stylesheet use
   high-specificity/important resets in a few places, so keep this control's
   surface deterministic after all theme/responsive branches. */
.subpage-control-deck .connect-interest-filter:not(.is-selected) {
	background: linear-gradient(180deg, rgba(15,23,42,0.72), rgba(15,23,42,0.62)) !important;
	border-color: rgba(167,139,250,0.16) !important;
	color: var(--text-primary) !important;
}
.subpage-control-deck .connect-interest-filter:not(.is-selected):hover {
	background: linear-gradient(180deg, rgba(49,46,129,0.46), rgba(30,41,59,0.64)) !important;
	border-color: rgba(167,139,250,0.38) !important;
}
.subpage-control-deck .connect-interest-filter.is-selected {
	background: var(--weird-chip-active-bg) !important;
	border-color: var(--weird-chip-active-border) !important;
	color: #fff !important;
	box-shadow: var(--weird-chip-active-shadow) !important;
}
html.light-mode .subpage-control-deck .connect-interest-filter:not(.is-selected) {
	background: rgba(255,255,255,0.74) !important;
	border-color: rgba(124,58,237,0.16) !important;
	color: #172033 !important;
}
html.light-mode .subpage-control-deck .connect-interest-filter:not(.is-selected):hover {
	background: #fff !important;
	border-color: rgba(124,58,237,0.30) !important;
}
html.dark-mode .subpage-control-deck .connect-interest-filter:not(.is-selected) {
	background: linear-gradient(180deg, rgba(15,23,42,0.72), rgba(15,23,42,0.62)) !important;
	border-color: rgba(167,139,250,0.16) !important;
	color: var(--text-primary) !important;
}

.subpage-control-deck .subpage-result-meta {
	margin: 2px 0 0 !important;
	padding-top: 10px;
	border-top: 1px solid rgba(167,139,250,0.16);
}
html.light-mode .subpage-control-deck .subpage-result-meta { border-top-color: rgba(124,58,237,0.12); }
.subpage-control-deck .subpage-result-from,
.subpage-control-deck .subpage-result-of {
	color: rgba(237,233,254,0.66);
	font-weight: 650;
}
.subpage-control-deck .subpage-metric-scope {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(8,145,178,0.13);
	border: 1px solid rgba(34,211,238,0.16);
	color: rgba(224,242,254,0.84);
	font-size: 12px;
	font-weight: 750;
	white-space: normal;
}
.subpage-control-deck .subpage-metric-scope i {
	font-size: 10px;
	color: #67e8f9;
}
html.light-mode .subpage-control-deck .subpage-result-from,
html.light-mode .subpage-control-deck .subpage-result-of { color: #665879; }
html.light-mode .subpage-control-deck .subpage-metric-scope {
	background: rgba(8,145,178,0.08);
	border-color: rgba(8,145,178,0.16);
	color: #23566b;
}
html.light-mode .subpage-control-deck .subpage-metric-scope i { color: #0891b2; }

@media (max-width: 760px) {
	.discover-bar-left .subpage-bar-copy { gap: 2px; }
	.subpage-bar-sub {
		font-size: 12px;
		line-height: 1.28;
		max-width: 560px;
	}
	.subpage-control-deck { padding: 10px; }
}
@media (max-width: 640px) {
	.subpage-bar-sub {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		  line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.subpage-control-head {
		flex-wrap: wrap;
		margin-bottom: 8px;
	}
	.subpage-control-kicker {
		order: 1;
		flex: 0 1 auto;
		font-size: 11px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.subpage-control-head .subpage-search-head {
		order: 2;
		margin-left: auto;
		flex: 0 0 38px !important;
		width: 38px !important;
		min-width: 38px !important;
		max-width: 38px;
	}
	.subpage-control-head .subpage-search-head.is-open,
	.subpage-control-head .subpage-search-head.has-value,
	.subpage-control-head .subpage-search-head:focus-within {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100%;
		order: 4;
		margin-left: 0;
	}
	.subpage-control-head .subpage-search-trigger,
	.subpage-control-head button.subpage-search-trigger[type="submit"] {
		flex-basis: 38px !important;
		width: 38px !important;
		min-width: 38px !important;
		height: 36px !important;
		min-height: 36px !important;
	}
	.subpage-control-head .subpage-search-trigger span { display: none; }
	.subpage-control-head .subpage-search-head input[type="text"] {
		min-height: 36px;
	}
	.subpage-clear-filters {
		order: 5;
		margin-left: 0;
		min-height: 28px;
		padding: 5px 9px;
		font-size: 11.5px;
	}
	.subpage-control-deck .subpage-toolbar {
		margin-bottom: 8px !important;
	}
	.subpage-control-deck .subpage-toolbar form.subpage-locfilter {
		flex: 1 1 100% !important;
	}
	.subpage-control-deck .subpage-toolbar form.subpage-search {
		flex: 0 0 42px !important;
		width: 42px !important;
		min-width: 42px !important;
		max-width: 42px;
	}
	.subpage-control-deck .subpage-toolbar form.subpage-search.is-open,
	.subpage-control-deck .subpage-toolbar form.subpage-search.has-value,
	.subpage-control-deck .subpage-toolbar form.subpage-search:focus-within {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100%;
	}
	.subpage-active-filters {
		gap: 6px;
		margin-bottom: 8px;
	}
	.subpage-control-deck .subpage-active-filter,
	.subpage-control-deck a.subpage-active-filter {
		flex: 1 1 150px;
		min-width: 0;
		padding: 6px 9px;
	}
	.subpage-active-filter-text {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}
	.subpage-filters-mobile {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 7px !important;
		margin: 0 0 8px !important;
	}
	.subpage-filters-mobile .subpage-select-chip {
		min-height: 38px;
		padding: 8px 30px 8px 11px !important;
		background: rgba(255,255,255,0.055) !important;
		border-color: rgba(167,139,250,0.20) !important;
	}
	html.light-mode .subpage-filters-mobile .subpage-select-chip {
		background: rgba(255,255,255,0.78) !important;
		border-color: rgba(124,58,237,0.17) !important;
	}
	.subpage-filters-mobile .subpage-select-chip.is-selected,
	html.light-mode .subpage-filters-mobile .subpage-select-chip.is-selected {
		background: var(--weird-chip-active-bg) !important;
		border-color: var(--weird-chip-active-border) !important;
		box-shadow: var(--weird-chip-active-shadow) !important;
	}
	.subpage-filters-mobile .subpage-select-chip.is-selected .subpage-select-chip-val,
	.subpage-filters-mobile .subpage-select-chip.is-selected .subpage-select-chip-caret {
		color: #fff !important;
	}
	.subpage-control-deck .discover-audience {
		display: none !important;
	}
	.subpage-control-deck .subpage-result-meta {
		padding-top: 8px;
	}
}
@media (max-width: 420px) {
	.subpage-filters-mobile {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   V6.8 patch 148 — Weird Coin Shop (Phase 1 of coin economy)
   ============================================================
   First user-facing spend surface. WA-compliant by construction:
   pure utility purchase, no contest, no chance, no loot boxes.
   Routes through coinlib.php for audit logging.
*/

.shop-section { padding: 28px 28px 36px; }
.shop-head {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.shop-h2 {
	margin: 0 0 6px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 28px;
	color: var(--text-primary, #fff);
}
.shop-sub { margin: 0; font-size: 14px; opacity: .8; }
.shop-sub a { color: inherit; text-decoration: underline; }
.shop-bal {
	background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(79,70,229,0.22));
	border: 1px solid rgba(124,58,237,0.42);
	border-radius: 14px;
	padding: 14px 22px;
	text-align: right;
}
.shop-bal-num {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 26px;
	font-weight: 800;
	color: #fbbf24;
}
.shop-bal-num .fa-coins { margin-right: 6px; }
.shop-bal-lbl { font-size: 12px; opacity: .75; margin-top: 2px; text-transform: uppercase; letter-spacing: .08em; }

.shop-flash {
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 14px;
}
.shop-flash.ok  { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #6ee7b7; }
.shop-flash.err { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.4);  color: #fdba74; }

.shop-cat { margin-top: 26px; }
.shop-cat-h {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 14px;
	color: var(--text-primary, #fff);
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .9;
}
.shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.shop-card {
	background: rgba(28,22,46,0.5);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.shop-card:hover { transform: translateY(-2px); border-color: rgba(124,58,237,0.5); }
.shop-card.is-equipped { border-color: rgba(16,185,129,0.55); box-shadow: 0 0 0 2px rgba(16,185,129,0.18); }
.shop-card.rarity-uncommon { border-color: rgba(59,130,246,0.35); }
.shop-card.rarity-rare     { border-color: rgba(168,85,247,0.5);  box-shadow: 0 0 18px -8px rgba(168,85,247,0.55); }
.shop-card.rarity-epic     { border-color: rgba(251,191,36,0.55); box-shadow: 0 0 22px -6px rgba(251,191,36,0.5); }

.shop-preview {
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: rgba(15,12,28,0.55);
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.shop-info { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.shop-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.shop-label { font-weight: 600; font-size: 15px; color: var(--text-primary, #fff); }
.shop-rar { font-size: 10px; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.rar-common { background: rgba(148,163,184,0.22); color: #cbd5e1; }
.rar-uncommon { background: rgba(59,130,246,0.22); color: #93c5fd; }
.rar-rare    { background: rgba(168,85,247,0.22); color: #d8b4fe; }
.rar-epic    { background: rgba(251,191,36,0.25); color: #fde68a; }
.shop-desc { font-size: 13px; opacity: .75; line-height: 1.4; min-height: 36px; }
.shop-action-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.shop-price { font-weight: 700; color: #fbbf24; font-size: 14px; }
.shop-price .fa-coins { margin-right: 4px; }
.shop-act-form { margin: 0; }
.shop-btn {
	border: 0;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: transform .12s ease, background .18s ease;
}
.shop-btn.buy {
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	color: #fff;
}
.shop-btn.buy:hover { transform: scale(1.04); }
.shop-btn.owned { background: rgba(255,255,255,0.12); color: #fff; }
.shop-btn.owned:hover { background: rgba(124,58,237,0.5); }
.shop-btn.equipped { background: rgba(16,185,129,0.25); color: #6ee7b7; cursor: pointer; }
.shop-btn.nofunds  { background: rgba(255,255,255,0.06); color: #94a3b8; cursor: not-allowed; }
.shop-btn.locked   { background: rgba(255,255,255,0.06); color: #94a3b8; cursor: not-allowed; }

.shop-foot {
	margin-top: 32px;
	padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,0.08);
	font-size: 14px;
	line-height: 1.6;
	opacity: .85;
}

/* --- Cosmetic previews / live application -----------------
   Each cosmetic has a `.cosmetic` base class + a slug-specific
   modifier (e.g. nc-electric-violet). The same classes are reused
   when the cosmetic is actually equipped on a username elsewhere
   on the site (apply to <span class="cosmetic nc-electric-violet">).
*/

/* Name colors */
.shop-name-sample { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
.cosmetic.nc-electric-violet .shop-name-sample,
.cosmetic.nc-electric-violet { color: #7c3aed; }
.cosmetic.nc-sunset .shop-name-sample,
.cosmetic.nc-sunset { background: linear-gradient(90deg,#f97316,#22c55e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cosmetic.nc-emerald .shop-name-sample,
.cosmetic.nc-emerald { color: #10b981; }
.cosmetic.nc-rose-gold .shop-name-sample,
.cosmetic.nc-rose-gold { background: linear-gradient(90deg,#86efac,#fbbf24); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cosmetic.nc-ocean .shop-name-sample,
.cosmetic.nc-ocean { background: linear-gradient(90deg,#06b6d4,#3b82f6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cosmetic.nc-neon .shop-name-sample,
.cosmetic.nc-neon { color: #22ff88; text-shadow: 0 0 8px rgba(34,255,136,0.7); }
.cosmetic.nc-monarch .shop-name-sample,
.cosmetic.nc-monarch { background: linear-gradient(90deg,#4c1d95,#facc15); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cosmetic.nc-rainbow .shop-name-sample,
.cosmetic.nc-rainbow {
	background: linear-gradient(90deg,#ef4444,#f59e0b,#10b981,#3b82f6,#8b5cf6,#22c55e,#ef4444);
	background-size: 300% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	animation: weirdRainbow 4s linear infinite;
}
@keyframes weirdRainbow { from { background-position: 0% 0; } to { background-position: 300% 0; } }

/* Avatar frames — wrap an <img> inside <span class="cosmetic af-*"> */
.shop-frame-sample { display: inline-block; padding: 4px; border-radius: 50%; }
.shop-frame-sample img { width: 60px; height: 60px; border-radius: 50%; display: block; }
.cosmetic.af-classic-gold   .shop-frame-sample,
.cosmetic.af-classic-gold   { box-shadow: 0 0 0 3px #fbbf24, 0 0 0 5px #b45309; border-radius: 50%; padding: 4px; }
.cosmetic.af-electric       .shop-frame-sample,
.cosmetic.af-electric       { box-shadow: 0 0 0 3px #7c3aed, 0 0 12px rgba(124,58,237,0.7); border-radius: 50%; padding: 4px; }
.cosmetic.af-emerald-pulse  .shop-frame-sample,
.cosmetic.af-emerald-pulse  { box-shadow: 0 0 0 3px #10b981; border-radius: 50%; padding: 4px; animation: weirdEmeraldPulse 2.4s ease-in-out infinite; }
@keyframes weirdEmeraldPulse {
	0%,100% { box-shadow: 0 0 0 3px #10b981, 0 0 10px rgba(16,185,129,0.6); }
	50%     { box-shadow: 0 0 0 3px #34d399, 0 0 22px rgba(16,185,129,0.95); }
}
.cosmetic.af-sunset-haze    .shop-frame-sample,
.cosmetic.af-sunset-haze    { box-shadow: 0 0 0 3px #f97316, 0 0 18px rgba(34,197,94,0.7); border-radius: 50%; padding: 4px; }
.cosmetic.af-aurora         .shop-frame-sample,
.cosmetic.af-aurora         { box-shadow: 0 0 0 3px #3b82f6, 0 0 22px rgba(59,130,246,0.5); border-radius: 50%; padding: 4px; animation: weirdAurora 5s linear infinite; }
@keyframes weirdAurora {
	0%   { box-shadow: 0 0 0 3px #3b82f6, 0 0 24px rgba(59,130,246,0.7); }
	33%  { box-shadow: 0 0 0 3px #10b981, 0 0 24px rgba(16,185,129,0.7); }
	66%  { box-shadow: 0 0 0 3px #a855f7, 0 0 24px rgba(168,85,247,0.7); }
	100% { box-shadow: 0 0 0 3px #3b82f6, 0 0 24px rgba(59,130,246,0.7); }
}

/* Profile themes (preview only here — actual application goes on
   .acct-card.cosmetic.pt-* in profile.php in a follow-up patch) */
.shop-theme-sample {
	display: inline-block;
	padding: 16px 22px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
}
.cosmetic.pt-noir       .shop-theme-sample,
.cosmetic.pt-noir       { background: #0a0814; color: #e2e8f0; border: 1px solid rgba(124,58,237,0.4); }
.cosmetic.pt-paper      .shop-theme-sample,
.cosmetic.pt-paper      { background: #faf5e8; color: #422614; border: 1px solid #d6cab1; }
.cosmetic.pt-synthwave  .shop-theme-sample,
.cosmetic.pt-synthwave  { background: linear-gradient(180deg,#1a0b34,#3a0c4f); color: #86efac; border: 1px solid #86efac; text-shadow: 0 0 6px rgba(134,239,172,0.7); }
.cosmetic.pt-galaxy     .shop-theme-sample,
.cosmetic.pt-galaxy     { background: radial-gradient(ellipse at center, #1e1b4b 0%, #0c0a1e 70%); color: #e9d5ff; border: 1px solid rgba(168,85,247,0.5); }

/* Badges */
.shop-badge-sample {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.cosmetic.bdg-early    .shop-badge-sample,
.cosmetic.bdg-early    { background: linear-gradient(135deg,#7c3aed,#4f46e5); color: #fff; }
.cosmetic.bdg-tipper   .shop-badge-sample,
.cosmetic.bdg-tipper   { background: linear-gradient(135deg,#10b981,#3b82f6); color: #fff; }
.cosmetic.bdg-streak7  .shop-badge-sample,
.cosmetic.bdg-streak7  { background: rgba(251,191,36,0.25); color: #fbbf24; border: 1px solid #fbbf24; }
.cosmetic.bdg-streak30 .shop-badge-sample,
.cosmetic.bdg-streak30 { background: linear-gradient(135deg,#f59e0b,#dc2626); color: #fff; }

/* -----------------------------------------------------------
   V6.8 patch 195 — catalog expansion CSS (the patch 152 seed
   added these cosmetic slugs to the `cosmetics` table but the
   matching CSS rules were never written, so any user who
   purchased AND equipped one rendered an invisible cosmetic
   on their profile (e.g. Aaron equipped nc-phoenix + af-cosmic
   + pt-prism and saw plain text / no frame / no theme). All
   selectors below mirror the existing pattern: the standalone
   `.cosmetic.X-Y` selector handles the live-application
   surface (profile hero name span, avatar frame wrapper,
   profile-hero-content theme div), while the `.X-Y .shop-*`
   variant decorates the shop.php preview tile.
   ----------------------------------------------------------- */

/* New name colors (patch 152) */
.cosmetic.nc-crimson .shop-name-sample,
.cosmetic.nc-crimson { color: #dc2626; }
.cosmetic.nc-cyber .shop-name-sample,
.cosmetic.nc-cyber { background: linear-gradient(90deg,#06d6f0,#22c55e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cosmetic.nc-amber .shop-name-sample,
.cosmetic.nc-amber { color: #f59e0b; }
.cosmetic.nc-frost .shop-name-sample,
.cosmetic.nc-frost { background: linear-gradient(90deg,#cffafe,#0ea5e9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cosmetic.nc-phoenix .shop-name-sample,
.cosmetic.nc-phoenix {
	background: linear-gradient(90deg,#fde68a,#f97316,#dc2626,#facc15,#f97316,#fde68a);
	background-size: 300% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	animation: weirdPhoenix 5s linear infinite;
	text-shadow: 0 0 6px rgba(249,115,22,0.45);
}
@keyframes weirdPhoenix { from { background-position: 0% 0; } to { background-position: 300% 0; } }

/* New avatar frames (patch 152) */
.cosmetic.af-rose   .shop-frame-sample,
.cosmetic.af-rose   { box-shadow: 0 0 0 3px #86efac, 0 0 12px rgba(74,222,128,0.55); border-radius: 50%; padding: 4px; }
.cosmetic.af-storm  .shop-frame-sample,
.cosmetic.af-storm  { box-shadow: 0 0 0 3px #475569, 0 0 18px rgba(148,163,184,0.55); border-radius: 50%; padding: 4px; animation: weirdStorm 3.8s ease-in-out infinite; }
@keyframes weirdStorm {
	0%,90%,100% { box-shadow: 0 0 0 3px #475569, 0 0 14px rgba(148,163,184,0.45); }
	92%         { box-shadow: 0 0 0 3px #cbd5e1, 0 0 24px rgba(226,232,240,0.95); }
	94%         { box-shadow: 0 0 0 3px #475569, 0 0 14px rgba(148,163,184,0.45); }
	96%         { box-shadow: 0 0 0 3px #cbd5e1, 0 0 26px rgba(226,232,240,1.0); }
}
.cosmetic.af-cosmic .shop-frame-sample,
.cosmetic.af-cosmic {
	box-shadow:
		0 0 0 3px #4c1d95,
		0 0 0 5px rgba(168,85,247,0.55),
		0 0 24px rgba(168,85,247,0.6),
		inset 0 0 0 1px rgba(255,255,255,0.35);
	border-radius: 50%;
	padding: 4px;
	background:
		radial-gradient(1px 1px at 20% 30%, #fff 1px, transparent 2px),
		radial-gradient(1px 1px at 70% 60%, #fff 1px, transparent 2px),
		radial-gradient(1px 1px at 40% 80%, #fff 1px, transparent 2px),
		radial-gradient(1px 1px at 80% 20%, #fff 1px, transparent 2px),
		radial-gradient(circle, #1e1b4b 0%, #0c0a1e 70%);
	animation: weirdCosmicSpin 12s linear infinite;
}
@keyframes weirdCosmicSpin {
	from { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, center; }
	to   { background-position: 100% 100%, -100% -100%, 200% 50%, -50% 200%, center; }
}

/* New profile themes (patch 152) */
.cosmetic.pt-meadow   .shop-theme-sample,
.cosmetic.pt-meadow   { background: linear-gradient(180deg,#dcfce7,#86efac); color: #14532d; border: 1px solid #4ade80; }
.cosmetic.pt-cherry   .shop-theme-sample,
.cosmetic.pt-cherry   { background: linear-gradient(180deg,#f0fdf4,#bbf7d0); color: #14532D; border: 1px solid #86efac; }
.cosmetic.pt-midnight .shop-theme-sample,
.cosmetic.pt-midnight { background: radial-gradient(ellipse at top, #1e3a8a 0%, #020617 80%); color: #dbeafe; border: 1px solid rgba(59,130,246,0.5); }
.cosmetic.pt-prism    .shop-theme-sample,
.cosmetic.pt-prism    {
	background: linear-gradient(135deg,#fb923c,#fbbf24,#10b981,#06b6d4,#8b5cf6,#22c55e,#fb923c);
	background-size: 400% 400%;
	color: #fff;
	border: 1px solid rgba(255,255,255,0.45);
	text-shadow: 0 0 8px rgba(255,255,255,0.55);
	animation: weirdPrism 8s ease-in-out infinite;
}
@keyframes weirdPrism {
	0%,100% { background-position: 0% 50%; }
	50%     { background-position: 100% 50%; }
}

/* New badges (patch 152) */
.cosmetic.bdg-top10 .shop-badge-sample,
.cosmetic.bdg-top10 { background: linear-gradient(135deg,#3b82f6,#0ea5e9); color: #fff; }
.cosmetic.bdg-champ .shop-badge-sample,
.cosmetic.bdg-champ { background: linear-gradient(135deg,#facc15,#f59e0b,#fbbf24); color: #422614; box-shadow: 0 0 12px rgba(250,204,21,0.6); }
.cosmetic.bdg-1k    .shop-badge-sample,
.cosmetic.bdg-1k    { background: linear-gradient(135deg,#8b5cf6,#22c55e); color: #fff; }

/* Light-mode parallel */
html.light-mode .shop-card { background: rgba(255,255,255,0.85); border-color: rgba(124,58,237,0.18); }
html.light-mode .shop-card.is-equipped { border-color: rgba(16,185,129,0.55); }
html.light-mode .shop-preview { background: rgba(245,243,255,0.75); }
html.light-mode .shop-label { color: #2a1f4a; }
html.light-mode .shop-bal { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(79,70,229,0.12)); border-color: rgba(124,58,237,0.32); }

@media (max-width: 600px) {
	.shop-section { padding: 18px 14px 24px; }
	.shop-head { flex-direction: column; align-items: flex-start; }
	.shop-bal { width: 100%; text-align: left; }
	.shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.shop-preview { height: 80px; }
	.shop-info { padding: 10px; }
	.shop-action-row { flex-direction: column; align-items: stretch; gap: 8px; }
	.shop-btn { width: 100%; }
}

/* ============================================================
   V6.8 patch 149 — Tipping UI + header coin balance + streak toast
                  + profile cosmetic application
   ============================================================
   User ask follow-up to patch 148 coin economy:
   "ship the four no-risk items now as patch 149" =
     1. tipping UI (coin_transfer between users)
     2. daily streak earn lever
     3. header coin balance widget
     4. profile theme + name color + avatar frame application
*/

/* -----------------------------------------------------------
   Header coin pill — sits in .weird-nav-actions next to bell.
*/
.weird-coin-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(79,70,229,0.18));
	border: 1px solid rgba(124,58,237,0.42);
	color: #fbbf24;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
	box-shadow: 0 4px 14px -8px rgba(124,58,237,0.4), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.weird-coin-pill i.fa-coins,
.weird-coin-pill i.fas.fa-coins {
	font-size: 13px;
	color: #fbbf24;
	text-shadow: 0 0 6px rgba(251,191,36,0.6);
}
.weird-coin-pill:hover,
.weird-coin-pill:focus-visible {
	background: linear-gradient(135deg, rgba(124,58,237,0.32), rgba(79,70,229,0.32));
	border-color: rgba(124,58,237,0.7);
	color: #fde68a;
	transform: translateY(-1px);
	text-decoration: none;
	outline: none;
}
.weird-coin-pill.is-active {
	background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(79,70,229,0.5));
	border-color: rgba(251,191,36,0.7);
}
html.light-mode .weird-coin-pill {
	background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(79,70,229,0.1));
	border-color: rgba(124,58,237,0.35);
	color: #b45309;
}
html.light-mode .weird-coin-pill:hover,
html.light-mode .weird-coin-pill:focus-visible {
	background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(79,70,229,0.22));
	color: #92400e;
}
html.light-mode .weird-coin-pill i.fa-coins,
html.light-mode .weird-coin-pill i.fas.fa-coins { color: #b45309; text-shadow: none; }

@media (max-width: 600px) {
	.weird-coin-pill { padding: 5px 10px; font-size: 12px; }
}

/* -----------------------------------------------------------
   Tip modal — universal; lives in header.php. Hidden by [hidden].
*/
.weird-tip-modal[hidden] { display: none !important; }
.weird-tip-modal {
	position: fixed;
	inset: 0;
	z-index: 10100;
	background: rgba(8,6,18,0.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	box-sizing: border-box;
	animation: weirdTipFade 0.18s ease-out;
}
@keyframes weirdTipFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.weird-tip-card {
	background: linear-gradient(180deg, #1a1535 0%, #15102b 100%);
	border: 1px solid rgba(124,58,237,0.32);
	border-radius: 16px;
	padding: 24px 22px 18px;
	width: 100%;
	max-width: 420px;
	box-shadow: 0 24px 60px -18px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) inset;
	position: relative;
	color: #f1ecff;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	animation: weirdTipPop 0.24s cubic-bezier(.2,.7,.3,1.05);
}
@keyframes weirdTipPop {
	from { transform: scale(0.94) translateY(8px); opacity: 0; }
	to   { transform: scale(1) translateY(0); opacity: 1; }
}
.weird-tip-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: rgba(255,255,255,0.66);
	font-size: 22px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
	padding: 0;
	line-height: 1;
}
.weird-tip-close:hover,
.weird-tip-close:focus-visible {
	background: rgba(124,58,237,0.22);
	color: #fff;
	outline: none;
}
.weird-tip-h {
	font-size: 18px;
	font-weight: 700;
	margin: 0 28px 6px 0;
	letter-spacing: -0.01em;
	color: #fff;
}
.weird-tip-h [data-tip-name] {
	background: linear-gradient(90deg, #c4b5fd, #fbbf24);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.weird-tip-sub {
	font-size: 13px;
	color: rgba(241,236,255,0.65);
	margin: 0 0 14px;
	line-height: 1.45;
}
.weird-tip-balance {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(251,191,36,0.12);
	border: 1px solid rgba(251,191,36,0.32);
	border-radius: 999px;
	font-size: 13px;
	color: #fde68a;
	margin-bottom: 14px;
}
.weird-tip-balance i { color: #fbbf24; }
.weird-tip-presets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 12px;
}
.weird-tip-amt {
	background: rgba(124,58,237,0.14);
	border: 1px solid rgba(124,58,237,0.36);
	color: #e9d5ff;
	padding: 10px 0;
	border-radius: 10px;
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.weird-tip-amt:hover:not(:disabled),
.weird-tip-amt:focus-visible {
	background: rgba(124,58,237,0.3);
	border-color: rgba(124,58,237,0.7);
	outline: none;
	transform: translateY(-1px);
}
.weird-tip-amt.is-active {
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	border-color: rgba(251,191,36,0.7);
	color: #fff;
	box-shadow: 0 6px 18px -8px rgba(124,58,237,0.7);
}
.weird-tip-amt:disabled { opacity: 0.5; cursor: not-allowed; }
.weird-tip-status {
	min-height: 18px;
	font-size: 13px;
	color: #a7f3d0;
	margin: 8px 0 12px;
	text-align: center;
}
.weird-tip-status.is-err { color: #fdba74; }
.weird-tip-send {
	width: 100%;
	padding: 12px 16px;
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-family: inherit;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
	box-shadow: 0 8px 22px -10px rgba(124,58,237,0.65);
}
.weird-tip-send:hover:not(:disabled),
.weird-tip-send:focus-visible:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px -10px rgba(124,58,237,0.85);
	outline: none;
}
.weird-tip-send:disabled { opacity: 0.45; cursor: not-allowed; }

body.weird-tip-locked { overflow: hidden; }

html.light-mode .weird-tip-modal { background: rgba(245,243,255,0.86); }
html.light-mode .weird-tip-card {
	background: #fff;
	border-color: rgba(124,58,237,0.25);
	color: #2a1f4a;
	box-shadow: 0 24px 60px -18px rgba(60,40,120,0.35);
}
html.light-mode .weird-tip-h { color: #2a1f4a; }
html.light-mode .weird-tip-sub { color: rgba(42,31,74,0.7); }
html.light-mode .weird-tip-close { color: rgba(42,31,74,0.7); }
html.light-mode .weird-tip-close:hover { background: rgba(124,58,237,0.12); color: #2a1f4a; }
html.light-mode .weird-tip-balance {
	background: rgba(251,191,36,0.18);
	border-color: rgba(251,191,36,0.42);
	color: #92400e;
}
html.light-mode .weird-tip-amt {
	background: rgba(124,58,237,0.06);
	border-color: rgba(124,58,237,0.28);
	color: #4b2fb3;
}
html.light-mode .weird-tip-amt:hover:not(:disabled) {
	background: rgba(124,58,237,0.14);
	border-color: rgba(124,58,237,0.5);
}
html.light-mode .weird-tip-status { color: #047857; }
html.light-mode .weird-tip-status.is-err { color: #b91c1c; }

@media (max-width: 600px) {
	.weird-tip-card { padding: 22px 16px 16px; max-width: 100%; }
	.weird-tip-presets { grid-template-columns: repeat(4, 1fr); gap: 6px; }
	.weird-tip-amt { font-size: 14px; padding: 9px 0; }
}

@media (prefers-reduced-motion: reduce) {
	.weird-tip-modal,
	.weird-tip-card { animation: none; }
	.weird-tip-amt:hover,
	.weird-tip-send:hover { transform: none; }
}

/* -----------------------------------------------------------
   Streak toast — top-right notice when a daily credit fired.
*/
.weird-streak-toast {
	position: fixed;
	top: 84px;
	right: 18px;
	z-index: 10050;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #f59e0b, #dc2626);
	color: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 32px -8px rgba(220,38,38,0.45), 0 0 0 1px rgba(255,255,255,0.12) inset;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 600;
	font-size: 14px;
	max-width: 92vw;
	animation: weirdStreakIn 0.36s cubic-bezier(.2,.7,.3,1.05);
}
.weird-streak-toast i { font-size: 18px; color: #fde68a; }
.weird-streak-toast-text strong { font-weight: 800; }
.weird-streak-milestone {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	background: rgba(255,255,255,0.22);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.weird-streak-toast.is-leaving {
	animation: weirdStreakOut 0.5s ease-in forwards;
}
@keyframes weirdStreakIn {
	from { transform: translateY(-12px) scale(0.96); opacity: 0; }
	to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes weirdStreakOut {
	from { transform: translateY(0); opacity: 1; }
	to   { transform: translateY(-8px); opacity: 0; }
}
@media (max-width: 600px) {
	.weird-streak-toast { top: 72px; right: 10px; left: 10px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.weird-streak-toast { animation: none; }
	.weird-streak-toast.is-leaving { animation: none; opacity: 0; }
}

/* -----------------------------------------------------------
   askme.php — tip button beside agent owner line.
*/
.askme-head-actions {
	margin-top: 10px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.askme-tip-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(124,58,237,0.18));
	border: 1px solid rgba(251,191,36,0.42);
	color: #fde68a;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: transform 0.12s, background 0.18s, border-color 0.18s;
}
.askme-tip-btn i { color: #fbbf24; }
.askme-tip-btn:hover,
.askme-tip-btn:focus-visible {
	background: linear-gradient(135deg, rgba(251,191,36,0.32), rgba(124,58,237,0.32));
	border-color: rgba(251,191,36,0.7);
	color: #fff;
	transform: translateY(-1px);
	outline: none;
}
html.light-mode .askme-tip-btn {
	background: linear-gradient(135deg, rgba(251,191,36,0.16), rgba(124,58,237,0.1));
	border-color: rgba(251,191,36,0.45);
	color: #92400e;
}
html.light-mode .askme-tip-btn i { color: #b45309; }

/* -----------------------------------------------------------
   profile.php — tip pill (reuses .profile-action sizing). Gold
   coin glyph; nudge color so it stands out from Follow/Message.
*/
.profile-action.weird-tip-btn { cursor: pointer; }
.profile-action.weird-tip-btn i.fa-coins,
.profile-action.weird-tip-btn i.fas.fa-coins { color: #fbbf24; }

/* -----------------------------------------------------------
   profile.php — equipped avatar-frame wrapper. The base
   .cosmetic.af-* rules supply box-shadow + animation; here we
   only fix layout so the wrapper sits exactly where the bare
   <img> used to.
*/
.profile-hero-avatar-frame {
	display: inline-block;
	line-height: 0;
	border-radius: 50%;
}
.profile-hero-avatar-frame .profile-hero-avatar {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
}

/* -----------------------------------------------------------
   profile.php — equipped profile_theme paints the hero card.
   We don't redefine the colors here; the existing
   .cosmetic.pt-* rules supply background/color/border.
   `min-height` and the inset padding ensure the theme actually
   reads as the hero surface, not just a thin chip.
*/
.profile-hero-content.cosmetic.pt-noir,
.profile-hero-content.cosmetic.pt-paper,
.profile-hero-content.cosmetic.pt-synthwave,
.profile-hero-content.cosmetic.pt-galaxy {
	border-radius: 16px;
	padding: 22px;
	border-width: 1px;
	border-style: solid;
}
.profile-hero-content.cosmetic.pt-synthwave .profile-hero-name,
.profile-hero-content.cosmetic.pt-galaxy    .profile-hero-name {
	color: inherit;
}

/* The hero already has its own purple bg image (.profile-hero-bg);
   when a theme is equipped, hide that so the theme shows through. */
.profile-hero.has-theme .profile-hero-bg { display: none; }

/* -----------------------------------------------------------
   Name-color span inside .profile-hero-name — bump the font
   weight + size so the gradient classes paint a visible swatch.
*/
.profile-hero-name .cosmetic {
	font-weight: 800;
	letter-spacing: -0.01em;
}


/* ============================================================
   V6.8 patch 150 — Weekly Tournament leaderboard
   ============================================================
   Free-entry, system-funded weekly contest. See coinlib.php
   lb_* helpers for the 50-state + federal compliance reasoning.

   Structure on leaderboard.php:
     .lb-hero-card           : top card (prize pool + countdown + your rank)
     .lb-hero-grid           : 3-column responsive layout
     .lb-prize-grid          : 10-cell grid of prize ranks
     .lb-standings           : ordered list of top 50
     .lb-history             : table of recent settled weeks
     .lb-fine-print          : compliance footnote
   ============================================================ */

/* Hero card */
.lb-hero-card {
	background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(79,70,229,0.08));
	border: 1px solid rgba(124,58,237,0.22);
}
.lb-hero-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 16px;
}
.lb-hero-cell {
	padding: 18px 20px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.lb-hero-cell.lb-hero-mine {
	background: linear-gradient(135deg, rgba(251,191,36,0.16), rgba(124,58,237,0.12));
	border-color: rgba(251,191,36,0.35);
}
.lb-hero-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255,255,255,0.6);
	font-weight: 600;
}
.lb-hero-value {
	font-size: 28px;
	font-weight: 800;
	color: #fbbf24;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-variant-numeric: tabular-nums;
}
.lb-hero-cell:not(.lb-hero-mine) .lb-hero-value:not(:has(.fa-coins)) {
	color: #fff;
}
.lb-hero-foot {
	font-size: 12px;
	color: rgba(255,255,255,0.65);
	line-height: 1.4;
}

@media (max-width: 760px) {
	.lb-hero-grid { grid-template-columns: 1fr; }
}

/* Prize tiers grid */
.lb-prize-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin-top: 14px;
}
.lb-prize-cell {
	padding: 14px 8px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.lb-prize-rank {
	font-size: 13px;
	font-weight: 700;
	color: rgba(255,255,255,0.55);
	letter-spacing: 0.04em;
}
.lb-prize-amt {
	font-size: 18px;
	font-weight: 800;
	color: #fbbf24;
	font-variant-numeric: tabular-nums;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	justify-content: center;
}
.lb-prize-cell.lb-prize-rank-1 {
	background: linear-gradient(135deg, rgba(251,191,36,0.22), rgba(251,146,60,0.12));
	border-color: rgba(251,191,36,0.55);
}
.lb-prize-cell.lb-prize-rank-2 {
	background: linear-gradient(135deg, rgba(203,213,225,0.18), rgba(148,163,184,0.10));
	border-color: rgba(203,213,225,0.45);
}
.lb-prize-cell.lb-prize-rank-3 {
	background: linear-gradient(135deg, rgba(217,119,87,0.18), rgba(184,79,53,0.10));
	border-color: rgba(217,119,87,0.45);
}
.lb-prize-foot {
	margin-top: 14px;
	font-size: 14px;
	color: rgba(255,255,255,0.72);
	line-height: 1.5;
}
@media (max-width: 760px) {
	.lb-prize-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
	.lb-prize-grid { grid-template-columns: 1fr; }
}

/* Standings */
.lb-empty {
	padding: 24px 12px;
	text-align: center;
	color: rgba(255,255,255,0.7);
}
.lb-standings {
	list-style: none;
	padding: 0;
	margin: 14px 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.lb-row {
	display: grid;
	grid-template-columns: 56px 48px 1fr auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	transition: background 0.18s ease, border-color 0.18s ease;
}
.lb-row:hover {
	background: rgba(255,255,255,0.06);
	border-color: rgba(124,58,237,0.25);
}
.lb-row-mine {
	background: linear-gradient(135deg, rgba(251,191,36,0.10), rgba(124,58,237,0.10));
	border-color: rgba(251,191,36,0.35);
}
.lb-row-podium {
	font-weight: 600;
}
.lb-row-rank-1 .lb-row-rank { color: #fbbf24; }
.lb-row-rank-2 .lb-row-rank { color: #cbd5e1; }
.lb-row-rank-3 .lb-row-rank { color: #d97757; }
.lb-row-rank {
	font-size: 18px;
	font-weight: 800;
	color: rgba(255,255,255,0.7);
	font-variant-numeric: tabular-nums;
}
.lb-row-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(124,58,237,0.18);
	flex-shrink: 0;
}
.lb-row-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lb-row-avatar-fallback {
	font-weight: 700;
	font-size: 16px;
	color: #fff;
}
.lb-row-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 8px;
}
.lb-row-name a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.lb-row-name a:hover { color: #fbbf24; }
.lb-row-name-hidden { color: rgba(255,255,255,0.55); font-style: italic; }
/* V207 polish — was amber-on-amber (contrast 1.0, text matched bg hue). Solid
   amber chip with near-black text reads in both light + dark themes. */
.lb-row-mine-pill {
	background: rgb(251,191,36);
	color: #1f1235;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 2px 8px;
	border-radius: 999px;
	font-weight: 800;
	text-shadow: none;
}
html.light-mode .lb-row-mine-pill { background: rgb(245,158,11); color: #1f1235; }
.lb-row-pts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	font-variant-numeric: tabular-nums;
	min-width: 80px;
}
.lb-row-pts-total {
	font-weight: 700;
	font-size: 15px;
	color: #fff;
}
.lb-row-pts-detail {
	font-size: 11px;
	color: rgba(255,255,255,0.55);
}
.lb-row-prize {
	min-width: 80px;
	text-align: right;
}
.lb-row-prize-amt {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #fbbf24;
	font-weight: 700;
	font-size: 14px;
}
.lb-row-prize-empty {
	color: rgba(255,255,255,0.35);
}

@media (max-width: 600px) {
	.lb-row {
		grid-template-columns: 34px 40px minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		column-gap: 10px;
		row-gap: 4px;
		padding: 10px;
	}
	.lb-row-rank {
		grid-column: 1;
		grid-row: 1 / span 2;
		align-self: center;
		font-size: 14px;
	}
	.lb-row-avatar {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
		width: 36px;
		height: 36px;
	}
	.lb-row-name {
		grid-column: 3;
		grid-row: 1;
		min-width: 0;
	}
	.lb-row-pts {
		grid-column: 3;
		grid-row: 2;
		flex-direction: row;
		align-items: center;
		gap: 8px;
		justify-content: flex-start;
		min-width: 0;
	}
	.lb-row-prize {
		grid-column: 4;
		grid-row: 1 / span 2;
		align-self: center;
		text-align: right;
	}
}

/* History table */
.lb-history {
	width: 100%;
	border-collapse: collapse;
	margin-top: 14px;
	font-size: 14px;
}
.lb-history th,
.lb-history td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lb-history th {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255,255,255,0.55);
	font-weight: 700;
}
.lb-history-settled {
	color: #4ade80;
	font-weight: 600;
}
.lb-history-pending {
	color: rgba(255,255,255,0.6);
}
.lb-history-amt {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #fbbf24;
	font-weight: 700;
}

/* Compliance fine-print */
.lb-fine-print {
	background: rgba(255,255,255,0.02);
	border: 1px dashed rgba(255,255,255,0.12);
}
.lb-fine-print p {
	font-size: 13px;
	color: rgba(255,255,255,0.7);
	line-height: 1.6;
	margin: 0;
}
.lb-fine-print a {
	color: #c4b5fd;
	text-decoration: underline;
}

/* ---------- Light-mode parallel ---------- */
html.light-mode .lb-hero-card {
	background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(251,191,36,0.05));
	border-color: rgba(124,58,237,0.18);
}
html.light-mode .lb-hero-cell {
	background: #fff;
	border-color: rgba(124,58,237,0.14);
}
html.light-mode .lb-hero-cell.lb-hero-mine {
	background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(124,58,237,0.06));
	border-color: rgba(251,191,36,0.4);
}
html.light-mode .lb-hero-label { color: #6b5b9a; }
html.light-mode .lb-hero-cell:not(.lb-hero-mine) .lb-hero-value:not(:has(.fa-coins)) { color: #2a1f4a; }
html.light-mode .lb-hero-value { color: #b45309; }
html.light-mode .lb-hero-foot { color: #5b4b7c; }
html.light-mode .lb-prize-cell {
	background: #fff;
	border-color: rgba(124,58,237,0.14);
}
html.light-mode .lb-prize-rank { color: #6b5b9a; }
html.light-mode .lb-prize-amt { color: #b45309; }
html.light-mode .lb-prize-foot { color: #3d2e62; }
html.light-mode .lb-row {
	background: #fff;
	border-color: rgba(124,58,237,0.12);
}
html.light-mode .lb-row:hover {
	background: rgba(124,58,237,0.05);
	border-color: rgba(124,58,237,0.28);
}
html.light-mode .lb-row-mine {
	background: linear-gradient(135deg, rgba(251,191,36,0.10), rgba(124,58,237,0.06));
	border-color: rgba(251,191,36,0.45);
}
html.light-mode .lb-row-rank { color: #6b5b9a; }
/* Avatar fallback initial was white on a faint purple circle (rgba(124,58,237,.18)
   over white = light lavender) → invisible in light mode. Darken both. */
html.light-mode .lb-row-avatar { background: rgba(124,58,237,0.22); }
html.light-mode .lb-row-avatar-fallback { color: #4c1d95; }
html.light-mode .lb-row-name a { color: #2a1f4a; }
html.light-mode .lb-row-name a:hover { color: #b45309; }
html.light-mode .lb-row-name-hidden { color: #8a7baa; }
html.light-mode .lb-row-pts-total { color: #2a1f4a; }
html.light-mode .lb-row-pts-detail { color: #6b5b9a; }
html.light-mode .lb-row-prize-amt { color: #b45309; }
html.light-mode .lb-row-prize-empty { color: #b8aed4; }
html.light-mode .lb-history th { color: #6b5b9a; }
html.light-mode .lb-history th,
html.light-mode .lb-history td { border-bottom-color: rgba(124,58,237,0.10); }
html.light-mode .lb-history-settled { color: #15803d; }
html.light-mode .lb-history-pending { color: #6b5b9a; }
html.light-mode .lb-history-amt { color: #b45309; }
html.light-mode .lb-fine-print {
	background: rgba(124,58,237,0.03);
	border-color: rgba(124,58,237,0.14);
}
html.light-mode .lb-fine-print p { color: #3d2e62; }
html.light-mode .lb-fine-print a { color: #5b21b6; }

@media (prefers-reduced-motion: reduce) {
	.lb-row { transition: none; }
}

/* ============================================================
   V6.8 patch 151 — Last week's winners panel + shop recently-earned
   ============================================================
   Last week's winners panel renders BETWEEN Prize Tiers and Current
   Standings on leaderboard.php. Adopts the same dark-card aesthetic
   used elsewhere in .discover-wrap; gold/silver/bronze accents echo
   the prize tier styling. Shop "recently earned" is a compact pill
   strip at the top of shop.php drawing the eye to the coin economy
   loop ("earned X today — now spend it").

   No new colors or motion primitives; reuses the patch 150 palette.
*/

.lb-winners-card {
	background: linear-gradient(160deg, rgba(124,58,237,0.08), rgba(79,70,229,0.04) 50%, transparent);
	border: 1px solid rgba(255,255,255,0.08);
}
.lb-winners-list {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.lb-winner-row {
	display: grid;
	grid-template-columns: 70px 40px 1fr auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	font-family: 'Space Grotesk', system-ui, sans-serif;
}
.lb-winner-rank {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 16px;
	color: rgba(255,255,255,0.85);
	letter-spacing: 0.02em;
}
.lb-winner-medal {
	font-size: 18px;
	line-height: 1;
}
.lb-winner-avatar {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(124,58,237,0.18);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.lb-winner-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lb-winner-avatar-fallback {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}
.lb-winner-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: rgba(255,255,255,0.92);
	font-weight: 500;
}
.lb-winner-name a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.lb-winner-name a:hover { color: #c4b5fd; border-bottom-color: #c4b5fd; }
.lb-winner-name-hidden {
	color: rgba(255,255,255,0.5);
	font-style: italic;
}
.lb-winner-pts {
	color: rgba(255,255,255,0.65);
	font-variant-numeric: tabular-nums;
	font-size: 13px;
	white-space: nowrap;
}
.lb-winner-amt {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #fbbf24;
	white-space: nowrap;
}
.lb-winner-amt i { margin-right: 4px; }
/* V207 polish — see .lb-row-mine-pill rationale above. */
.lb-winner-mine-pill {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgb(251,191,36);
	color: #1f1235;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-shadow: none;
}
html.light-mode .lb-winner-mine-pill { background: rgb(245,158,11); color: #1f1235; }
.lb-winner-row-mine {
	background: rgba(251,191,36,0.08);
	border-color: rgba(251,191,36,0.32);
}
.lb-winner-row-podium {
	box-shadow: 0 0 0 1px rgba(255,255,255,0.04), inset 0 0 24px rgba(255,255,255,0.02);
}
.lb-winner-row-rank-1 { border-color: rgba(251,191,36,0.42); }
.lb-winner-row-rank-2 { border-color: rgba(203,213,225,0.32); }
.lb-winner-row-rank-3 { border-color: rgba(217,119,87,0.34); }
.lb-winner-row-rank-1 .lb-winner-rank { color: #fbbf24; }
.lb-winner-row-rank-2 .lb-winner-rank { color: #cbd5e1; }
.lb-winner-row-rank-3 .lb-winner-rank { color: #d97757; }

/* Light-mode parallel */
html.light-mode .lb-winners-card {
	background: linear-gradient(160deg, rgba(124,58,237,0.06), rgba(79,70,229,0.03) 50%, transparent);
	border-color: rgba(124,58,237,0.18);
}
html.light-mode .lb-winner-row {
	background: rgba(255,255,255,0.7);
	border-color: rgba(124,58,237,0.14);
}
html.light-mode .lb-winner-rank { color: #2a1f4a; }
html.light-mode .lb-winner-name { color: #2a1f4a; }
html.light-mode .lb-winner-name a { color: #4b2fb3; border-bottom-color: rgba(124,58,237,0.3); }
html.light-mode .lb-winner-name a:hover { color: #6d28d9; }
html.light-mode .lb-winner-pts { color: rgba(42,31,74,0.65); }
html.light-mode .lb-winner-amt { color: #c97104; }
html.light-mode .lb-winner-row-mine {
	background: rgba(251,191,36,0.18);
	border-color: rgba(202,138,4,0.45);
}

/* Mobile reflow — collapse to 2 rows: top row rank+avatar+name, bottom row pts+amt */
@media (max-width: 600px) {
	.lb-winner-row {
		grid-template-columns: 64px 36px 1fr auto;
		grid-template-areas: "rank avatar name amt" "pts pts pts amt";
		gap: 8px 10px;
		padding: 10px;
	}
	.lb-winner-rank   { grid-area: rank; }
	.lb-winner-avatar { grid-area: avatar; }
	.lb-winner-name   { grid-area: name; }
	.lb-winner-pts    { grid-area: pts; text-align: left; padding-left: 70px; }
	.lb-winner-amt    { grid-area: amt; align-self: center; }
}

/* ---------- Shop "Recently earned" panel ---------- */
.shop-recent-card {
	margin-bottom: 18px;
	background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(124,58,237,0.06) 70%);
	border: 1px solid rgba(34,197,94,0.18);
}
.shop-recent-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.shop-recent-h {
	margin: 0;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: rgba(255,255,255,0.92);
	letter-spacing: 0.01em;
}
.shop-recent-h i { margin-right: 6px; color: #34d399; }
.shop-recent-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(124,58,237,0.14);
	color: #c4b5fd;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(124,58,237,0.32);
	transition: background 0.18s ease, color 0.18s ease;
}
.shop-recent-cta:hover {
	background: rgba(124,58,237,0.28);
	color: #fff;
}
.shop-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.shop-recent-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.06);
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 13px;
	color: rgba(255,255,255,0.86);
}
.shop-recent-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(124,58,237,0.22);
	color: #fff;
	font-size: 11px;
}
.shop-recent-row-earn_prize .shop-recent-icon { background: rgba(251,191,36,0.32); color: #fbbf24; }
.shop-recent-row-earn_streak .shop-recent-icon { background: rgba(239,68,68,0.28); color: #fdba74; }
.shop-recent-row-earn_game .shop-recent-icon { background: rgba(34,197,94,0.28); color: #86efac; }
.shop-recent-row-earn_rating .shop-recent-icon { background: rgba(59,130,246,0.28); color: #93c5fd; }
.shop-recent-row-gift_in .shop-recent-icon { background: rgba(34,197,94,0.28); color: #86efac; }
.shop-recent-label { font-weight: 600; }
.shop-recent-time {
	color: rgba(255,255,255,0.5);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}
.shop-recent-amt {
	font-weight: 700;
	color: #fbbf24;
	font-variant-numeric: tabular-nums;
}

/* Light-mode parallel */
html.light-mode .shop-recent-card {
	background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(124,58,237,0.04) 70%);
	border-color: rgba(34,197,94,0.28);
}
html.light-mode .shop-recent-h { color: #14532d; }
html.light-mode .shop-recent-h i { color: #16a34a; }
html.light-mode .shop-recent-row {
	background: rgba(255,255,255,0.78);
	border-color: rgba(124,58,237,0.18);
	color: #2a1f4a;
}
html.light-mode .shop-recent-time { color: rgba(42,31,74,0.5); }
html.light-mode .shop-recent-amt { color: #c97104; }
html.light-mode .shop-recent-cta {
	background: rgba(124,58,237,0.10);
	color: #6d28d9;
	border-color: rgba(124,58,237,0.32);
}
html.light-mode .shop-recent-cta:hover {
	background: rgba(124,58,237,0.22);
	color: #4b2fb3;
}

/* Mobile tweaks — wrap pills tighter */
@media (max-width: 600px) {
	.shop-recent-row { padding: 5px 10px; font-size: 12px; }
	.shop-recent-time { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.shop-recent-cta { transition: none; }
}

/* ============================================================
   V6.8 patch 152 — Achievements page + Daily Challenge banner
   ============================================================
   New surfaces:
   - achievements.php: gallery grouped by category, daily challenge
     card at top, summary header.
   - discover.php (stream tab): pinned mini daily-challenge banner.
   - shop.php: a second CTA pill linking to /achievements.php inside
     the patch-151 "Recently earned" head.

   Reuses the patch 150/151 palette: violet primary, gold accents,
   dark-card glass aesthetic. Full light-mode parallel block + mobile
   reflow + prefers-reduced-motion.
*/

/* ---- Shop "Recently earned" CTA wrapper (multi-pill) ---- */
.shop-recent-ctas {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* ============== Daily Challenge — discover.php banner ============== */
.discover-dc-banner {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 14px 18px;
	margin: 0 0 16px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(34,197,94,0.10) 70%);
	border: 1px solid rgba(124,58,237,0.28);
	text-decoration: none;
	color: inherit;
	box-shadow: 0 8px 22px -14px rgba(124,58,237,0.4), 0 0 0 1px rgba(255,255,255,0.04) inset;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.discover-dc-banner:hover,
.discover-dc-banner:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px -14px rgba(124,58,237,0.55), 0 0 0 1px rgba(124,58,237,0.18) inset;
	border-color: rgba(124,58,237,0.5);
	outline: none;
}
.discover-dc-banner-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(124,58,237,0.22);
	color: #c4b5fd;
	font-size: 22px;
	flex-shrink: 0;
}
.discover-dc-banner-body { min-width: 0; }
.discover-dc-banner-eyebrow {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #d8d3e8;
	margin-bottom: 2px;
}
.discover-dc-banner-label {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: rgba(255,255,255,0.96);
	margin-bottom: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.discover-dc-banner-progress-shell {
	height: 8px;
	background: rgba(0,0,0,0.32);
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.discover-dc-banner-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #7c3aed, #22c55e);
	border-radius: 999px;
	transition: width 0.32s ease;
}
.discover-dc-banner-amt {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #fbbf24;
	white-space: nowrap;
	font-size: 15px;
}
.discover-dc-banner-amt i { margin-right: 4px; }
.discover-dc-banner-done {
	background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(124,58,237,0.10) 70%);
	border-color: rgba(34,197,94,0.42);
}
.discover-dc-banner-done .discover-dc-banner-icon {
	background: rgba(34,197,94,0.28);
	color: #86efac;
}
.discover-dc-banner-done .discover-dc-banner-eyebrow { color: rgba(134,239,172,0.92); }

/* ============== achievements.php — Daily Challenge card ============== */
.dc-card {
	background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(34,197,94,0.06) 70%);
	border: 1px solid rgba(124,58,237,0.22);
	padding: 22px;
	margin-bottom: 18px;
}
.dc-card-head {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 16px;
	align-items: center;
	margin-bottom: 14px;
}
.dc-card-icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(124,58,237,0.22);
	color: #c4b5fd;
	font-size: 28px;
}
.dc-card-eyebrow {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #d8d3e8;
	margin-bottom: 2px;
}
.dc-card-h {
	margin: 0;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 800;
	color: rgba(255,255,255,0.96);
	letter-spacing: -0.01em;
}
.dc-card-sub {
	margin-top: 4px;
	font-size: 13px;
	color: rgba(255,255,255,0.72);
}
.dc-card-amt {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: #fbbf24;
	font-size: 22px;
	white-space: nowrap;
}
.dc-card-amt i { margin-right: 6px; }
.dc-progress-shell {
	position: relative;
	height: 14px;
	background: rgba(0,0,0,0.36);
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.dc-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #7c3aed, #22c55e);
	border-radius: 999px;
	transition: width 0.32s ease;
}
.dc-progress-num {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: rgba(255,255,255,0.92);
	letter-spacing: 0.04em;
	pointer-events: none;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.dc-card-done {
	background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(124,58,237,0.08) 70%);
	border-color: rgba(34,197,94,0.4);
}
.dc-card-done .dc-card-icon { background: rgba(34,197,94,0.28); color: #86efac; }
.dc-card-done .dc-progress-bar { background: linear-gradient(90deg, #22c55e, #16a34a); }
.dc-just-claimed {
	margin-top: 12px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(34,197,94,0.18);
	border: 1px solid rgba(34,197,94,0.4);
	color: #86efac;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	animation: dcJustClaimedPop 0.5s cubic-bezier(.2,.8,.3,1.05);
}
@keyframes dcJustClaimedPop {
	0% { opacity: 0; transform: translateY(6px) scale(0.96); }
	100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============== achievements.php — Header card ============== */
.ach-head-card {
	background: linear-gradient(160deg, rgba(124,58,237,0.10), transparent 60%);
	border: 1px solid rgba(255,255,255,0.06);
	padding: 24px;
	margin-bottom: 18px;
}
.ach-head-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: center;
}
.ach-head-h {
	margin: 0 0 4px;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 26px;
	font-weight: 800;
	color: rgba(255,255,255,0.96);
	letter-spacing: -0.01em;
}
.ach-head-h i { color: #fbbf24; margin-right: 8px; }
.ach-head-sub {
	margin: 0;
	color: rgba(255,255,255,0.7);
	font-size: 14px;
}
.ach-head-stats {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.ach-head-stat {
	min-width: 110px;
	padding: 10px 14px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	text-align: center;
}
.ach-head-stat-num {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 18px;
	font-weight: 800;
	color: rgba(255,255,255,0.96);
	font-variant-numeric: tabular-nums;
}
.ach-head-stat-num i { color: #fbbf24; margin-right: 4px; }
.ach-head-stat-lbl {
	margin-top: 2px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255,255,255,0.5);
}

/* ============== achievements.php — Gallery sections ============== */
.ach-section {
	padding: 22px;
	margin-bottom: 18px;
}
.ach-section-h {
	margin: 0 0 14px;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: rgba(255,255,255,0.92);
	letter-spacing: 0.01em;
}
.ach-section-h i { margin-right: 8px; color: #c4b5fd; }
.ach-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.ach-card {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	align-items: center;
	padding: 14px;
	border-radius: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ach-card-locked { opacity: 0.78; }
.ach-card-unlocked {
	background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(251,191,36,0.04) 70%);
	border-color: rgba(251,191,36,0.32);
	box-shadow: 0 4px 18px -10px rgba(251,191,36,0.32);
}
.ach-card-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: rgba(255,255,255,0.04);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	color: rgba(255,255,255,0.6);
	position: relative;
	flex-shrink: 0;
}
.ach-card-unlocked .ach-card-icon {
	background: rgba(251,191,36,0.16);
	color: #fbbf24;
}
.ach-card-check {
	position: absolute;
	right: -4px;
	top: -4px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: #22c55e;
	color: #fff;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.ach-card-body { min-width: 0; }
.ach-card-label-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 2px;
}
.ach-card-label {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: rgba(255,255,255,0.94);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ach-card-rar {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.7);
}
.ach-card-rar.rar-uncommon { background: rgba(34,197,94,0.18); color: #86efac; }
.ach-card-rar.rar-rare     { background: rgba(59,130,246,0.18); color: #93c5fd; }
.ach-card-rar.rar-epic     { background: rgba(168,85,247,0.18); color: #d8b4fe; }
.ach-card-rar.rar-legendary{ background: rgba(251,191,36,0.18); color: #fbbf24; }
.ach-card-desc {
	font-size: 12px;
	color: rgba(255,255,255,0.6);
	margin-bottom: 8px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ach-card-progress-shell {
	height: 6px;
	background: rgba(0,0,0,0.32);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 6px;
}
.ach-card-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #7c3aed, #22c55e);
	border-radius: 999px;
	transition: width 0.32s ease;
}
.ach-card-unlocked .ach-card-progress-bar { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.ach-card-foot {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: rgba(255,255,255,0.55);
	font-variant-numeric: tabular-nums;
}
.ach-card-reward { color: #fbbf24; font-weight: 700; }
.ach-card-reward i { margin-right: 3px; }

.ach-empty-card { padding: 22px; text-align: center; }
.ach-empty { color: rgba(255,255,255,0.6); font-size: 13px; }
.ach-empty code { background: rgba(0,0,0,0.32); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.ach-foot {
	text-align: center;
	margin-top: 16px;
	color: rgba(255,255,255,0.45);
	font-size: 12px;
}
.ach-foot a { color: #c4b5fd; }

/* ============== Light-mode parallel ============== */
html.light-mode .discover-dc-banner {
	background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(34,197,94,0.08) 70%);
	border-color: rgba(124,58,237,0.32);
	color: #2a1f4a;
}
html.light-mode .discover-dc-banner-icon { background: rgba(124,58,237,0.18); color: #6d28d9; }
html.light-mode .discover-dc-banner-eyebrow { color: #6d28d9; }
html.light-mode .discover-dc-banner-label { color: #2a1f4a; }
html.light-mode .discover-dc-banner-progress-shell { background: rgba(124,58,237,0.12); }
html.light-mode .discover-dc-banner-amt { color: #c97104; }
html.light-mode .discover-dc-banner-done {
	background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(124,58,237,0.10) 70%);
	border-color: rgba(34,197,94,0.4);
}
html.light-mode .discover-dc-banner-done .discover-dc-banner-icon {
	background: rgba(34,197,94,0.22);
	color: #15803d;
}
html.light-mode .discover-dc-banner-done .discover-dc-banner-eyebrow { color: #15803d; }

html.light-mode .dc-card {
	background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(34,197,94,0.06) 70%);
	border-color: rgba(124,58,237,0.22);
}
html.light-mode .dc-card-icon { background: rgba(124,58,237,0.18); color: #6d28d9; }
html.light-mode .dc-card-eyebrow { color: #6d28d9; }
html.light-mode .dc-card-h { color: #2a1f4a; }
html.light-mode .dc-card-sub { color: rgba(42,31,74,0.72); }
html.light-mode .dc-card-amt { color: #c97104; }
html.light-mode .dc-progress-shell { background: rgba(124,58,237,0.14); }
html.light-mode .dc-progress-num { color: #2a1f4a; text-shadow: none; }
html.light-mode .dc-card-done {
	background: linear-gradient(135deg, rgba(34,197,94,0.14), rgba(124,58,237,0.06) 70%);
	border-color: rgba(34,197,94,0.4);
}
html.light-mode .dc-card-done .dc-card-icon { background: rgba(34,197,94,0.22); color: #15803d; }
html.light-mode .dc-just-claimed {
	background: rgba(34,197,94,0.18);
	border-color: rgba(34,197,94,0.4);
	color: #15803d;
}

html.light-mode .ach-head-card {
	background: linear-gradient(160deg, rgba(124,58,237,0.08), transparent 60%);
	border-color: rgba(124,58,237,0.18);
}
html.light-mode .ach-head-h { color: #2a1f4a; }
html.light-mode .ach-head-h i { color: #c97104; }
html.light-mode .ach-head-sub { color: rgba(42,31,74,0.7); }
html.light-mode .ach-head-stat {
	background: rgba(255,255,255,0.7);
	border-color: rgba(124,58,237,0.14);
}
html.light-mode .ach-head-stat-num { color: #2a1f4a; }
html.light-mode .ach-head-stat-num i { color: #c97104; }
html.light-mode .ach-head-stat-lbl { color: rgba(42,31,74,0.55); }

html.light-mode .ach-section-h { color: #2a1f4a; }
html.light-mode .ach-section-h i { color: #6d28d9; }
html.light-mode .ach-card {
	background: rgba(255,255,255,0.7);
	border-color: rgba(124,58,237,0.14);
}
html.light-mode .ach-card-locked { opacity: 0.82; }
html.light-mode .ach-card-unlocked {
	background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(251,191,36,0.06) 70%);
	border-color: rgba(202,138,4,0.45);
	box-shadow: 0 4px 18px -10px rgba(202,138,4,0.35);
}
html.light-mode .ach-card-icon { background: rgba(124,58,237,0.10); color: rgba(42,31,74,0.7); }
html.light-mode .ach-card-unlocked .ach-card-icon { background: rgba(251,191,36,0.22); color: #c97104; }
html.light-mode .ach-card-label { color: #2a1f4a; }
html.light-mode .ach-card-desc { color: rgba(42,31,74,0.65); }
html.light-mode .ach-card-foot { color: rgba(42,31,74,0.55); }
html.light-mode .ach-card-reward { color: #c97104; }
html.light-mode .ach-card-progress-shell { background: rgba(124,58,237,0.12); }
html.light-mode .ach-empty { color: rgba(42,31,74,0.65); }
html.light-mode .ach-empty code { background: rgba(124,58,237,0.10); color: #4b2fb3; }
html.light-mode .ach-foot { color: rgba(42,31,74,0.5); }
html.light-mode .ach-foot a { color: #6d28d9; }

/* ============== Mobile reflow ============== */
@media (max-width: 700px) {
	.ach-head-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.ach-head-stats { justify-content: flex-start; }
	.dc-card-head {
		grid-template-columns: 52px 1fr;
		grid-template-areas: "icon body" "amt amt";
		gap: 14px;
	}
	.dc-card-icon { grid-area: icon; width: 52px; height: 52px; font-size: 22px; }
	.dc-card-text { grid-area: body; }
	.dc-card-amt { grid-area: amt; justify-self: end; }
	.dc-card-h { font-size: 18px; }
}
@media (max-width: 600px) {
	.discover-dc-banner {
		grid-template-columns: 44px 1fr;
		grid-template-areas: "icon body" "amt amt";
		gap: 10px 12px;
		padding: 12px 14px;
	}
	.discover-dc-banner-icon { grid-area: icon; width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
	.discover-dc-banner-body { grid-area: body; }
	.discover-dc-banner-amt { grid-area: amt; justify-self: end; font-size: 14px; }
	.discover-dc-banner-label { font-size: 14px; }
	.ach-grid { grid-template-columns: 1fr; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.discover-dc-banner,
	.dc-progress-bar,
	.discover-dc-banner-progress-bar,
	.ach-card-progress-bar,
	.ach-card { transition: none; }
	.dc-just-claimed { animation: none; }
}

/* ============================================================
   V6.8 patch 160 — Meme thumbnails fill the card (cover, not contain)
   ============================================================
   User ask (verbatim): "Some memes have no pictures. ALso, none of
   them fill the bg area all the way so look awkward. On dicvover
   stream, show images for memes just like in memes category page."

   Patch 152 switched memes to object-fit:contain so the WHOLE meme
   (including caption text) was visible inside the 1:1 frame — but
   the trade-off was big letterbox bars on every non-square meme
   ("doesn't fill the bg area"). Patches 147/151 added a click-to-zoom
   lightbox with a magnifier badge, so the FULL meme is one tap away.
   That safety net lets us revert to object-fit:cover here: the
   thumbnail now fills the card edge-to-edge, and users tap the badge
   (or the image itself) to see the full meme in the lightbox.

   The DB-level fix (showing meme images in the discover stream, not
   just on the dedicated /memes page) lives in discover.php — the
   three stream/saved/hidden meme queries now SELECT the real `image`
   column instead of forcing '' AS image.
*/

.discover-card-item[data-cat="memes"] .discover-card-media img,
.discover-card-item[data-cat="memes"] .discover-card-media .meme-zoom-trigger img {
	object-fit: cover;
	object-position: center;
	background: transparent;
}

/* Social-card thumb mirrors the same fill-the-frame behaviour so the
   friend-feed preview is consistent with the main item card. */
.discover-card-social-thumb .meme-zoom-trigger img {
	object-fit: cover;
	background: transparent;
}

/* Light-mode parallel — strip the patch 152 letterbox tint. */
html.light-mode .discover-card-item[data-cat="memes"] .discover-card-media img,
html.light-mode .discover-card-item[data-cat="memes"] .discover-card-media .meme-zoom-trigger img,
html.light-mode .discover-card-social-thumb .meme-zoom-trigger img {
	background: transparent;
}

/* ============================================================
   V6.8 patch 153 — Admin panel + anti-fraud sweeper UI
   ============================================================
   Powers /admin.php (admin-only). Two tabs:
     - Admin users: promote / demote roster
     - Fraud review: cards-of-flags grouped by user

   Mark-only model: no styles encourage "ban" / "kick" type
   actions. Buttons are dismiss/reopen only.
*/

.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 18px 14px 40px; }

.admin-head-card { margin-bottom: 18px; }
.admin-head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
.admin-head-row h1 {
	margin: 0;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: rgba(255,255,255,0.95);
	letter-spacing: 0.01em;
}
.admin-head-row h1 i { color: #fbbf24; margin-right: 6px; }
.admin-head-sub {
	color: rgba(255,255,255,0.72);
	font-size: 13px;
}
.admin-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(124,58,237,0.22);
	color: #c4b5fd;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-left: 6px;
}
.admin-pill-super { background: rgba(251,191,36,0.22); color: #fbbf24; }
.admin-pill-warn  { background: rgba(239,68,68,0.22);  color: #fdba74; }

.admin-head-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin-top: 14px;
}
.admin-stat-tile {
	padding: 12px;
	border-radius: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06);
	display: block;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.admin-stat-tile-link:hover { border-color: rgba(124,58,237,0.40); background: rgba(124,58,237,0.06); transform: translateY(-1px); }
.admin-stat-tile-hi { border-color: rgba(239,68,68,0.42); background: rgba(239,68,68,0.06); }
.admin-stat-tile-warn { border-color: rgba(251,191,36,0.42); background: rgba(251,191,36,0.06); }
.admin-stat-tile-review { border-color: rgba(124,58,237,0.42); background: rgba(124,58,237,0.08); }
.admin-stat-tile-review .admin-stat-val { color: #c4b5fd; }
.admin-stat-tile-hi .admin-stat-val { color: #fdba74; }
.admin-stat-tile-warn .admin-stat-val { color: #fcd34d; }
.admin-stat-label {
	color: rgba(255,255,255,0.55);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}
.admin-stat-label i { font-size: 11px; opacity: 0.7; }
.admin-stat-val {
	margin-top: 4px;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: rgba(255,255,255,0.95);
	font-variant-numeric: tabular-nums;
}

.admin-tabs {
	display: flex;
	gap: 6px;
	margin: 14px 0 12px;
	flex-wrap: wrap;
}
.admin-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,0.04);
	color: rgba(255,255,255,0.75);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(255,255,255,0.06);
	transition: background 0.18s ease, color 0.18s ease;
}
.admin-tab:hover { background: rgba(124,58,237,0.14); color: #fff; }
.admin-tab.is-active {
	background: linear-gradient(135deg, rgba(124,58,237,0.4), rgba(79,70,229,0.32));
	color: #fff;
	border-color: rgba(124,58,237,0.5);
}
.admin-tab-count {
	display: inline-block;
	min-width: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(0,0,0,0.4);
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.admin-flash {
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	margin: 10px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.admin-flash-ok  { background: rgba(34,197,94,0.14);  color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.admin-flash-err { background: rgba(239,68,68,0.14);  color: #fdba74; border: 1px solid rgba(239,68,68,0.3); }

.admin-section { margin-bottom: 16px; }
.admin-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.admin-section-h {
	margin: 0 0 8px;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: rgba(255,255,255,0.92);
}
.admin-section-sub {
	color: rgba(255,255,255,0.6);
	font-size: 13px;
	margin: 0 0 12px;
}
.admin-policy-note {
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(59,130,246,0.10);
	border: 1px solid rgba(59,130,246,0.28);
	color: #bfdbfe;
}

.admin-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255,255,255,0.7); }
.admin-mono-muted { color: rgba(255,255,255,0.4); font-size: 12px; font-style: italic; }

.admin-promote-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.admin-promote-input {
	flex: 1 1 240px;
	min-width: 0;
	padding: 9px 12px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.04);
	color: #fff;
	font-size: 14px;
}
.admin-promote-input:focus {
	outline: none;
	border-color: rgba(124,58,237,0.6);
	background: rgba(124,58,237,0.08);
}

.admin-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.1);
	background: rgba(255,255,255,0.05);
	color: rgba(255,255,255,0.9);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.12s ease;
	font-family: 'Space Grotesk', system-ui, sans-serif;
}
.admin-btn:hover { background: rgba(255,255,255,0.1); }
.admin-btn-primary {
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	color: #fff;
	border-color: rgba(124,58,237,0.5);
}
.admin-btn-primary:hover { transform: translateY(-1px); }
.admin-btn-danger { color: #fdba74; border-color: rgba(239,68,68,0.34); }
.admin-btn-danger:hover { background: rgba(239,68,68,0.16); }
.admin-btn-warn { color: #fbbf24; border-color: rgba(251,191,36,0.34); }
.admin-btn-warn:hover { background: rgba(251,191,36,0.12); }
.admin-btn-small { padding: 5px 11px; font-size: 12px; }

.admin-inline-form { display: inline-block; }

.admin-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.admin-table thead th {
	text-align: left;
	padding: 8px 10px;
	color: rgba(255,255,255,0.55);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-table tbody td {
	padding: 10px;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	color: rgba(255,255,255,0.85);
	vertical-align: middle;
}
.admin-table tbody tr:hover td { background: rgba(124,58,237,0.04); }
.admin-table a { color: #c4b5fd; text-decoration: none; }
.admin-table a:hover { color: #ddd6fe; }
.admin-tr-actions { text-align: right; }

.admin-empty {
	padding: 30px;
	text-align: center;
	color: rgba(255,255,255,0.6);
	font-size: 14px;
	background: rgba(255,255,255,0.02);
	border-radius: 12px;
	border: 1px dashed rgba(255,255,255,0.08);
}
.admin-empty i { margin-right: 6px; color: #34d399; }

.admin-flag-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
	gap: 14px;
	margin-top: 12px;
}
.admin-flag-card {
	padding: 14px;
	border-radius: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.08);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.admin-flag-sev-high   { border-color: rgba(239,68,68,0.42); background: linear-gradient(160deg, rgba(239,68,68,0.10), rgba(239,68,68,0.02) 60%, transparent); }
.admin-flag-sev-medium { border-color: rgba(251,191,36,0.42); background: linear-gradient(160deg, rgba(251,191,36,0.08), rgba(251,191,36,0.02) 60%, transparent); }
.admin-flag-sev-low    { border-color: rgba(59,130,246,0.32); }

.admin-flag-user {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 8px 12px;
	align-items: baseline;
}
.admin-flag-user-id a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
}
.admin-flag-user-id a:hover { color: #c4b5fd; }
.admin-flag-user-id i { color: #a78bfa; margin-right: 4px; }
.admin-flag-user-name {
	color: rgba(255,255,255,0.75);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.admin-flag-user-coin {
	color: #fbbf24;
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.admin-flag-user-coin i { margin-right: 3px; }

.admin-flag-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.admin-flag-row {
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(0,0,0,0.18);
	border: 1px solid rgba(255,255,255,0.06);
	font-family: 'Space Grotesk', system-ui, sans-serif;
}
.admin-flag-row-dismissed { opacity: 0.55; }
.admin-flag-row-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
}
.admin-flag-type {
	font-size: 13px;
	font-weight: 700;
	color: rgba(255,255,255,0.92);
}
.admin-flag-type i { color: #fbbf24; margin-right: 4px; }
.admin-flag-sev {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 999px;
}
.admin-flag-sev-pill-high   { background: rgba(239,68,68,0.32); color: #fdba74; }
.admin-flag-sev-pill-medium { background: rgba(251,191,36,0.28); color: #fbbf24; }
.admin-flag-sev-pill-low    { background: rgba(59,130,246,0.22); color: #93c5fd; }

.admin-flag-desc {
	color: rgba(255,255,255,0.78);
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 6px;
}
.admin-flag-evidence summary {
	cursor: pointer;
	color: rgba(255,255,255,0.5);
	font-size: 12px;
	user-select: none;
	padding: 2px 0;
}
.admin-flag-evidence summary:hover { color: #c4b5fd; }
.admin-flag-evidence pre {
	margin-top: 6px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(0,0,0,0.4);
	color: rgba(255,255,255,0.75);
	font-size: 11px;
	overflow: auto;
	max-height: 200px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.admin-flag-row-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed rgba(255,255,255,0.06);
}
.admin-flag-time {
	color: rgba(255,255,255,0.4);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.admin-denied {
	margin: 60px auto;
	max-width: 480px;
	text-align: center;
}
.admin-denied h2 { color: #fdba74; }

/* ---- Light-mode parallel ---- */
html.light-mode .admin-head-row h1 { color: #2a1f4a; }
html.light-mode .admin-head-sub { color: rgba(42,31,74,0.72); }
html.light-mode .admin-stat-tile { background: rgba(255,255,255,0.7); border-color: rgba(124,58,237,0.18); }
html.light-mode .admin-stat-tile-hi { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.4); }
html.light-mode .admin-stat-label { color: rgba(42,31,74,0.6); }
html.light-mode .admin-stat-val { color: #2a1f4a; }

html.light-mode .admin-tab { background: rgba(255,255,255,0.6); color: #4b2fb3; border-color: rgba(124,58,237,0.22); }
html.light-mode .admin-tab:hover { background: rgba(124,58,237,0.10); }
html.light-mode .admin-tab.is-active { color: #fff; }
html.light-mode .admin-tab-count { background: rgba(0,0,0,0.55); color: #fff; }

html.light-mode .admin-section-h { color: #2a1f4a; }
html.light-mode .admin-section-sub { color: rgba(42,31,74,0.6); }
html.light-mode .admin-policy-note { background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.32); color: #1d4ed8; }

html.light-mode .admin-promote-input {
	background: #fff; border-color: rgba(124,58,237,0.22); color: #2a1f4a;
}

html.light-mode .admin-btn { background: rgba(255,255,255,0.8); color: #2a1f4a; border-color: rgba(124,58,237,0.22); }
html.light-mode .admin-btn:hover { background: rgba(124,58,237,0.10); }

html.light-mode .admin-table thead th { color: rgba(42,31,74,0.55); border-bottom-color: rgba(124,58,237,0.18); }
html.light-mode .admin-table tbody td { color: #2a1f4a; border-bottom-color: rgba(124,58,237,0.08); }
html.light-mode .admin-table tbody tr:hover td { background: rgba(124,58,237,0.05); }
html.light-mode .admin-table a { color: #4b2fb3; }
html.light-mode .admin-table a:hover { color: #6d28d9; }
html.light-mode .admin-mono { color: rgba(42,31,74,0.6); }
html.light-mode .admin-mono-muted { color: rgba(42,31,74,0.4); }

html.light-mode .admin-empty { background: rgba(255,255,255,0.6); color: rgba(42,31,74,0.6); border-color: rgba(124,58,237,0.18); }

html.light-mode .admin-flag-card { background: rgba(255,255,255,0.78); border-color: rgba(124,58,237,0.18); }
html.light-mode .admin-flag-sev-high { background: linear-gradient(160deg, rgba(239,68,68,0.10), rgba(239,68,68,0.02) 60%, rgba(255,255,255,0.78)); border-color: rgba(239,68,68,0.5); }
html.light-mode .admin-flag-sev-medium { background: linear-gradient(160deg, rgba(251,191,36,0.10), rgba(251,191,36,0.02) 60%, rgba(255,255,255,0.78)); border-color: rgba(251,191,36,0.5); }
html.light-mode .admin-flag-sev-low { border-color: rgba(59,130,246,0.4); }

html.light-mode .admin-flag-user-id a { color: #2a1f4a; }
html.light-mode .admin-flag-user-id a:hover { color: #4b2fb3; }
html.light-mode .admin-flag-user-name { color: rgba(42,31,74,0.72); }
html.light-mode .admin-flag-row { background: rgba(255,255,255,0.6); border-color: rgba(124,58,237,0.14); }
html.light-mode .admin-flag-type { color: #2a1f4a; }
html.light-mode .admin-flag-desc { color: rgba(42,31,74,0.78); }
html.light-mode .admin-flag-evidence summary { color: rgba(42,31,74,0.5); }
html.light-mode .admin-flag-evidence pre { background: rgba(42,31,74,0.06); color: #2a1f4a; }

/* ---- Mobile reflow ---- */
@media (max-width: 700px) {
	.admin-head-stats { grid-template-columns: repeat(2, 1fr); }
	.admin-flag-grid { grid-template-columns: 1fr; }
	.admin-table thead { display: none; }
	.admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
	.admin-table tbody tr { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
	.admin-table tbody td { padding: 4px 0; border: none; }
	.admin-table tbody td.admin-tr-actions { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.admin-btn, .admin-btn-primary:hover { transition: none; transform: none; }
}

/* ============================================================
   V6.8 patch 160 — Admin "Weird Support" inbox
   ============================================================
   Two-pane admin surface that lets admins read every support
   conversation (uid 1) and reply directly as Weird Support.

   Reuses the .admin-* design tokens already defined for the
   admin panel. The thread bubbles mirror messages.php's
   visual language so admins recognize what the user will see.
*/

.admin-tab-count-hot {
	background: linear-gradient(135deg, #ef4444, #dc2626) !important;
	color: #fff !important;
}

.admin-section-stats {
	font-size: 12px;
	white-space: nowrap;
}

.admin-support-shell {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 16px;
	margin-top: 14px;
	min-height: 520px;
}
@media (max-width: 860px) {
	.admin-support-shell { grid-template-columns: 1fr; }
}

.admin-support-sidebar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	padding: 12px;
	max-height: 70vh;
	overflow: hidden;
}
.admin-support-search { display: flex; gap: 6px; }
.admin-support-search-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.04);
	color: #fff;
	font-size: 13px;
}
.admin-support-search-input:focus {
	outline: none;
	border-color: rgba(124,58,237,0.6);
	background: rgba(124,58,237,0.08);
}

.admin-support-list {
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(124,58,237,0.5) transparent;
}
.admin-support-list::-webkit-scrollbar { width: 8px; }
.admin-support-list::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.5); border-radius: 999px; }

.admin-support-row {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.05);
	text-decoration: none;
	color: rgba(255,255,255,0.92);
	transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-support-row:hover { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.28); }
.admin-support-row.is-active {
	background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(79,70,229,0.18));
	border-color: rgba(124,58,237,0.55);
}
.admin-support-row-av {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	object-fit: cover;
}
.admin-support-row-body { min-width: 0; }
.admin-support-row-name {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.admin-support-row-uid {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: rgba(255,255,255,0.42);
	font-size: 11px;
	font-weight: 500;
}
.admin-support-row-badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.admin-support-row-preview {
	font-size: 12px;
	color: rgba(255,255,255,0.62);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: 2px;
}
.admin-support-row-time {
	font-size: 11px;
	color: rgba(255,255,255,0.42);
	margin-top: 2px;
	font-variant-numeric: tabular-nums;
}
.admin-support-row-time i { margin-right: 3px; }

.admin-support-empty {
	padding: 28px 18px;
	text-align: center;
	color: rgba(255,255,255,0.5);
	border-radius: 12px;
	background: rgba(255,255,255,0.02);
	border: 1px dashed rgba(255,255,255,0.08);
}
.admin-support-empty i { display: block; margin-bottom: 8px; }
.admin-support-empty p { margin: 0; font-size: 13px; }

.admin-support-thread-pane {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	padding: 14px;
	min-height: 520px;
}
.admin-support-placeholder {
	margin: auto;
	padding: 28px 18px;
	text-align: center;
	color: rgba(255,255,255,0.55);
}
.admin-support-placeholder i { color: rgba(124,58,237,0.5); display: block; margin-bottom: 10px; }
.admin-support-placeholder h3 {
	margin: 4px 0 6px;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 16px;
	color: #fff;
}
.admin-support-placeholder p { margin: 0; font-size: 13px; }

.admin-support-thread-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255,255,255,0.07);
}
.admin-support-thread-head img {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	object-fit: cover;
}
.admin-support-thread-head-body { min-width: 0; flex: 1 1 auto; }
.admin-support-thread-head-name {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.admin-support-thread-head-name a {
	color: #c4b5fd;
	text-decoration: none;
}
.admin-support-thread-head-name a:hover { color: #ddd6fe; text-decoration: underline; }
.admin-support-thread-head-uid {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: rgba(255,255,255,0.5);
	font-size: 11px;
	font-weight: 500;
}
.admin-support-thread-head-meta {
	margin-top: 4px;
	font-size: 12px;
	color: rgba(255,255,255,0.6);
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.admin-support-thread-head-meta i { margin-right: 4px; color: rgba(255,255,255,0.45); }

.admin-support-thread-body {
	flex: 1 1 auto;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 4px 4px 4px 0;
	max-height: 56vh;
	scrollbar-width: thin;
	scrollbar-color: rgba(124,58,237,0.5) transparent;
}
.admin-support-thread-body::-webkit-scrollbar { width: 8px; }
.admin-support-thread-body::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.5); border-radius: 999px; }

.admin-support-bubble-row {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 8px;
	align-items: flex-start;
}
.admin-support-bubble-row.admin-support-bubble-mine {
	grid-template-columns: 1fr 36px;
}
.admin-support-bubble-row.admin-support-bubble-mine .admin-support-bubble-av { order: 2; }
.admin-support-bubble-row.admin-support-bubble-mine .admin-support-bubble-stack { order: 1; }

.admin-support-bubble-av {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	object-fit: cover;
}
.admin-support-bubble-stack { min-width: 0; }
.admin-support-bubble-row.admin-support-bubble-mine .admin-support-bubble-stack { text-align: right; }

.admin-support-bubble-name {
	font-size: 11px;
	color: rgba(255,255,255,0.55);
	margin-bottom: 3px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.admin-support-bubble-newdot {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.05em;
}
.admin-support-bubble {
	display: inline-block;
	max-width: 86%;
	padding: 8px 12px;
	border-radius: 14px;
	background: rgba(255,255,255,0.06);
	color: rgba(255,255,255,0.92);
	font-size: 14px;
	line-height: 1.45;
	border: 1px solid rgba(255,255,255,0.06);
	word-break: break-word;
	overflow-wrap: anywhere;
	text-align: left;
}
.admin-support-bubble-mine .admin-support-bubble {
	background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(79,70,229,0.28));
	border-color: rgba(124,58,237,0.45);
	color: #fff;
}
.admin-support-bubble-time {
	font-size: 11px;
	color: rgba(255,255,255,0.4);
	margin-top: 2px;
	font-variant-numeric: tabular-nums;
}

.admin-support-composer {
	border-top: 1px solid rgba(255,255,255,0.07);
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.admin-support-composer textarea {
	width: 100%;
	resize: vertical;
	min-height: 78px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.04);
	color: #fff;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.5;
}
.admin-support-composer textarea:focus {
	outline: none;
	border-color: rgba(124,58,237,0.6);
	background: rgba(124,58,237,0.06);
}
.admin-support-composer-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12px;
}

/* Light-mode parallel */
html.light-mode .admin-support-sidebar,
html.light-mode .admin-support-thread-pane {
	background: rgba(255,255,255,0.78);
	border-color: rgba(124,58,237,0.14);
}
html.light-mode .admin-support-row {
	background: rgba(255,255,255,0.92);
	border-color: rgba(124,58,237,0.14);
	color: #2a1f4a;
}
html.light-mode .admin-support-row:hover { background: rgba(124,58,237,0.10); }
html.light-mode .admin-support-row.is-active {
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(79,70,229,0.14));
	border-color: rgba(124,58,237,0.45);
}
html.light-mode .admin-support-row-name { color: #2a1f4a; }
html.light-mode .admin-support-row-uid { color: rgba(42,31,74,0.45); }
html.light-mode .admin-support-row-preview { color: rgba(42,31,74,0.65); }
html.light-mode .admin-support-row-time { color: rgba(42,31,74,0.5); }
html.light-mode .admin-support-thread-head { border-color: rgba(124,58,237,0.18); }
html.light-mode .admin-support-thread-head-name { color: #2a1f4a; }
html.light-mode .admin-support-thread-head-name a { color: #4b2fb3; }
html.light-mode .admin-support-thread-head-meta { color: rgba(42,31,74,0.65); }
html.light-mode .admin-support-thread-head-uid { color: rgba(42,31,74,0.5); }
html.light-mode .admin-support-bubble {
	background: rgba(255,255,255,0.92);
	border-color: rgba(124,58,237,0.18);
	color: #2a1f4a;
}
html.light-mode .admin-support-bubble-mine .admin-support-bubble {
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	color: #fff;
	border-color: rgba(124,58,237,0.6);
}
html.light-mode .admin-support-bubble-name { color: rgba(42,31,74,0.65); }
html.light-mode .admin-support-bubble-time { color: rgba(42,31,74,0.5); }
html.light-mode .admin-support-composer textarea {
	background: rgba(255,255,255,0.95);
	color: #2a1f4a;
	border-color: rgba(124,58,237,0.22);
}
html.light-mode .admin-support-empty,
html.light-mode .admin-support-placeholder { color: rgba(42,31,74,0.6); }
html.light-mode .admin-support-empty { background: rgba(255,255,255,0.6); border-color: rgba(124,58,237,0.14); }

/* Mobile: stack composer foot vertically for breathing room. */
@media (max-width: 600px) {
	.admin-support-composer-foot { flex-direction: column; align-items: stretch; }
	.admin-support-composer-foot .admin-btn { width: 100%; justify-content: center; }
	.admin-support-thread-body { max-height: 50vh; }
}

/* ============================================================
   V6.8 patch 163 — Places control-deck UX repair
   ============================================================
   Places has one extra concept other Explore sections do not: saved
   default metros. This keeps the shared Explore shell intact while
   making the Places-specific controls explicit, tappable, and legible
   across desktop, tablet, and mobile.
*/

.subpage-control-deck.is-place-deck {
	padding: 14px;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(19,16,36,0.88), rgba(12,24,38,0.82));
}
html.light-mode .subpage-control-deck.is-place-deck {
	background: linear-gradient(135deg, #fbfaff, #f4fbff 68%, #fffdf8);
}

.subpage-control-deck.is-place-deck .subpage-control-head {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(250px, 380px) auto;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.subpage-control-deck.is-place-deck .subpage-control-kicker {
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Places search is always visible. A collapsed search affordance works on
   lighter category pages, but Local/Places already has location + type
   decisions, so hiding search adds needless uncertainty. */
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head,
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.is-open,
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.has-value,
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head:focus-within {
	justify-self: stretch;
	flex: 1 1 100% !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 380px !important;
	order: 0;
}
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head input[type="text"],
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.is-open input[type="text"],
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.has-value input[type="text"],
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head:focus-within input[type="text"] {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	padding-left: 14px !important;
	padding-right: 12px !important;
	border-left-width: 1px !important;
	border-right-width: 0 !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-trigger,
.subpage-control-deck.is-place-deck .subpage-control-head button.subpage-search-trigger[type="submit"],
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.is-open .subpage-search-trigger,
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.has-value .subpage-search-trigger,
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head:focus-within .subpage-search-trigger {
	flex: 0 0 42px !important;
	width: 42px !important;
	min-width: 42px !important;
	border-radius: 0 999px 999px 0 !important;
	background: rgba(124,58,237,0.18) !important;
	border-color: rgba(167,139,250,0.30) !important;
}
.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-trigger span { display: none !important; }
.subpage-control-deck.is-place-deck .subpage-clear-filters { margin-left: 0; justify-self: end; }

.places-defaults-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid rgba(45,212,191,0.18);
	background: rgba(8,145,178,0.075);
	box-shadow: 0 1px 0 rgba(255,255,255,0.055) inset;
}
.places-defaults-row.is-active {
	border-color: rgba(34,197,94,0.34);
	background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(8,145,178,0.08));
}
.places-defaults-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.places-defaults-icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(45,212,191,0.16);
	color: #5eead4;
	border: 1px solid rgba(45,212,191,0.22);
}
.places-defaults-row.is-active .places-defaults-icon {
	background: rgba(34,197,94,0.18);
	color: #86efac;
	border-color: rgba(34,197,94,0.28);
}
.places-defaults-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.25;
}
.places-defaults-label {
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(204,251,241,0.66);
}
.places-defaults-copy strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 800;
	color: rgba(255,255,255,0.94);
}
.places-defaults-copy span:last-child {
	font-size: 12px;
	font-weight: 650;
	color: rgba(237,233,254,0.68);
}
.places-defaults-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 7px;
	flex: 1 1 430px;
	min-width: min(100%, 320px);
	flex-wrap: wrap;
}
.places-defaults-metro,
.places-defaults-actions form.places-defaults-metro.subpage-locfilter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 300px;
	min-width: min(100%, 260px);
	max-width: 430px;
	margin: 0 !important;
	padding: 0;
}
.places-defaults-metro .subpage-locfilter-label {
	min-width: auto;
	color: rgba(237,233,254,0.70);
}
.places-defaults-metro .subpage-locfilter-sel,
.subpage-control-deck.is-place-deck .places-defaults-metro .subpage-locfilter-sel {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 34px;
	margin: 0 !important;
	text-align: left;
	background: rgba(255,255,255,0.045);
	border-color: rgba(167,139,250,0.22);
}
.places-defaults-metro .subpage-locfilter-clear,
.subpage-control-deck.is-place-deck .places-defaults-metro .subpage-locfilter-clear {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin: 0 !important;
}
.places-defaults-action,
.places-defaults-actions a.places-defaults-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 32px;
	padding: 6px 11px;
	border-radius: 999px;
	border: 1px solid rgba(167,139,250,0.22);
	background: rgba(255,255,255,0.045);
	color: rgba(237,233,254,0.86) !important;
	font-size: 12px;
	font-weight: 820;
	line-height: 1.1;
	text-decoration: none !important;
}
.places-defaults-action:hover,
.places-defaults-actions a.places-defaults-action:hover {
	background: rgba(124,58,237,0.16);
	border-color: rgba(167,139,250,0.42);
	color: #fff !important;
}
.places-defaults-action-primary,
.places-defaults-actions a.places-defaults-action-primary {
	background: linear-gradient(135deg, rgba(124,58,237,0.92), rgba(79,70,229,0.88)) !important;
	border-color: rgba(167,139,250,0.54) !important;
	color: #fff !important;
}
.places-defaults-action i { font-size: 11px; color: inherit; }

html.light-mode .places-defaults-row {
	background: rgba(8,145,178,0.055);
	border-color: rgba(8,145,178,0.18);
	box-shadow: 0 1px 0 rgba(255,255,255,0.78) inset;
}
html.light-mode .places-defaults-row.is-active {
	background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(8,145,178,0.055));
	border-color: rgba(22,163,74,0.26);
}
html.light-mode .places-defaults-icon {
	background: rgba(8,145,178,0.10);
	border-color: rgba(8,145,178,0.18);
	color: #047481;
}
html.light-mode .places-defaults-row.is-active .places-defaults-icon {
	background: rgba(34,197,94,0.12);
	border-color: rgba(22,163,74,0.20);
	color: #15803d;
}
html.light-mode .places-defaults-label { color: #28727d; }
html.light-mode .places-defaults-copy strong { color: #24163f; }
html.light-mode .places-defaults-copy span:last-child { color: #5c6474; }
html.light-mode .places-defaults-action,
html.light-mode .places-defaults-actions a.places-defaults-action {
	background: rgba(255,255,255,0.78);
	border-color: rgba(124,58,237,0.17);
	color: #4b3a7a !important;
}
html.light-mode .places-defaults-action:hover,
html.light-mode .places-defaults-actions a.places-defaults-action:hover {
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.30);
	color: #24163f !important;
}
html.light-mode .places-defaults-action-primary,
html.light-mode .places-defaults-actions a.places-defaults-action-primary {
	background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
	border-color: rgba(124,58,237,0.52) !important;
	color: #fff !important;
}
html.light-mode .places-defaults-metro .subpage-locfilter-label { color: #665879; }
html.light-mode .places-defaults-metro .subpage-locfilter-sel {
	background: rgba(255,255,255,0.78);
	border-color: rgba(124,58,237,0.17);
}

.subpage-control-deck.is-place-deck .subpage-toolbar {
	display: flex;
	align-items: center;
	gap: 8px !important;
	margin: 0 0 10px !important;
	padding: 8px;
	border-radius: 8px;
	border: 1px solid rgba(167,139,250,0.13);
	background: rgba(255,255,255,0.025);
}
html.light-mode .subpage-control-deck.is-place-deck .subpage-toolbar {
	background: rgba(255,255,255,0.58);
	border-color: rgba(124,58,237,0.12);
}
.subpage-control-deck.is-place-deck .subpage-toolbar form.subpage-locfilter {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}
.subpage-locfilter-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(237,233,254,0.62);
}
.subpage-locfilter-label i { font-size: 10px; color: #67e8f9; }
html.light-mode .subpage-locfilter-label { color: #665879; }
html.light-mode .subpage-locfilter-label i { color: #0891b2; }
.subpage-control-deck.is-place-deck .subpage-locfilter-sel {
	flex: 1 1 260px;
	width: auto !important;
	min-width: 180px !important;
	max-width: 360px !important;
	height: 38px;
	margin: 0 !important;
	text-align: left;
}
.subpage-control-deck.is-place-deck .subpage-locfilter-clear {
	flex: 0 0 32px;
}
.subpage-control-deck.is-place-deck .discover-audience {
	margin-bottom: 10px !important;
}
.subpage-control-deck.is-place-deck .subpage-pillrow {
	align-items: center;
}
.subpage-control-deck.is-place-deck .subpage-result-meta {
	gap: 7px 10px;
}
.hub-geo-chip .hub-geo-edit {
	background: rgba(8,145,178,0.10);
	border-color: rgba(8,145,178,0.24);
	color: #67e8f9;
}
html.light-mode .hub-geo-chip .hub-geo-edit {
	background: rgba(8,145,178,0.08);
	border-color: rgba(8,145,178,0.18);
	color: #047481;
}

@media (max-width: 900px) {
	.subpage-control-deck.is-place-deck .subpage-control-head {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head,
	.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.is-open,
	.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.has-value,
	.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head:focus-within {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none !important;
	}
	.places-defaults-row {
		align-items: stretch;
		flex-direction: column;
	}
	.places-defaults-actions {
		flex: 0 0 auto;
		min-width: 0;
		width: 100%;
		justify-content: flex-start;
	}
}

@media (min-width: 641px) and (max-width: 980px) {
	.subpage-control-deck.is-place-deck .subpage-pillrow-filter {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(124,58,237,0.45) transparent;
		padding-bottom: 4px;
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
		        mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
	}
	.subpage-control-deck.is-place-deck .subpage-pillrow-filter::-webkit-scrollbar { height: 3px; }
	.subpage-control-deck.is-place-deck .subpage-pillrow-filter::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.45); border-radius: 999px; }
	.subpage-control-deck.is-place-deck .subpage-pillrow-filter > * { flex: 0 0 auto; }
}

@media (max-width: 640px) {
	.subpage-control-deck.is-place-deck {
		padding: 9px;
		margin-bottom: 12px;
	}
	.subpage-control-deck.is-place-deck .subpage-control-head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 7px;
	}
	.subpage-control-deck.is-place-deck .subpage-control-kicker {
		font-size: 11px;
	}
	.subpage-control-deck.is-place-deck .subpage-clear-filters {
		justify-self: end;
	}
	.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head,
	.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.is-open,
	.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head.has-value,
	.subpage-control-deck.is-place-deck .subpage-control-head .subpage-search-head:focus-within {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none !important;
	}
	.places-defaults-row {
		padding: 8px;
		gap: 8px;
	}
	.places-defaults-main {
		align-items: flex-start;
		gap: 8px;
	}
	.places-defaults-icon {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
	}
	.places-defaults-label {
		font-size: 9.5px;
		letter-spacing: 0.06em;
	}
	.places-defaults-copy {
		gap: 1px;
		line-height: 1.2;
	}
	.places-defaults-copy strong {
		white-space: normal;
		font-size: 13px;
	}
	.places-defaults-copy span:last-child {
		font-size: 11px;
	}
	.places-defaults-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
		width: 100%;
	}
	.places-defaults-metro,
	.places-defaults-actions form.places-defaults-metro.subpage-locfilter {
		grid-column: 1 / -1;
		width: 100%;
		max-width: none;
	}
	.places-defaults-metro .subpage-locfilter-label {
		font-size: 10px;
		letter-spacing: 0.05em;
	}
	.subpage-control-deck.is-place-deck .places-defaults-metro .subpage-locfilter-sel {
		height: 36px;
		min-height: 36px;
		font-size: 12.5px;
	}
	.places-defaults-action,
	.places-defaults-actions a.places-defaults-action {
		width: 100%;
		min-width: 0;
		min-height: 30px;
		padding: 6px 9px;
		font-size: 11px;
	}
	.places-defaults-actions a.places-defaults-action-primary:only-child {
		grid-column: 1 / -1;
	}
	.subpage-control-deck.is-place-deck .subpage-toolbar {
		padding: 7px;
	}
	.subpage-control-deck.is-place-deck .subpage-toolbar form.subpage-locfilter {
		width: 100%;
		flex-wrap: nowrap;
	}
	.subpage-locfilter-label {
		min-width: 58px;
		font-size: 10.5px;
	}
	.subpage-control-deck.is-place-deck .subpage-locfilter-sel {
		flex: 1 1 auto;
		min-width: 0 !important;
		max-width: none !important;
		font-size: 13px;
	}
	.subpage-control-deck.is-place-deck .subpage-result-meta {
		align-items: flex-start;
		gap: 6px 8px;
		line-height: 1.35;
		padding-top: 8px;
	}
	.subpage-control-deck.is-place-deck .hub-geo-chip {
		flex-wrap: wrap;
	}
}

@media (max-width: 420px) {
	.places-defaults-actions {
		grid-template-columns: 1fr;
	}
	.subpage-locfilter-label {
		min-width: auto;
	}
	.subpage-locfilter-label i { display: none; }
}

/* ============================================================
   V6.8 patch 161 — User question moderation
   ============================================================
   - Admin Questions tab cards + sub-nav + audit log table
   - Pending banner shown on q.php for pending user questions
   - Created.php status pills are styled inline on the page
   ============================================================ */

.admin-subtabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.6rem 0 1.1rem 0;
	padding: 0.45rem;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 0.75rem;
}
.admin-subtab {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.85rem;
	border-radius: 0.55rem;
	color: rgba(255,255,255,0.78) !important;
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none !important;
	transition: background 0.18s ease, color 0.18s ease;
}
.admin-subtab:hover, .admin-subtab:focus, .admin-subtab:visited {
	color: #fff !important;
	background: rgba(255,255,255,0.07);
	text-decoration: none !important;
}
.admin-subtab.is-active,
.admin-subtab.is-active:hover,
.admin-subtab.is-active:focus,
.admin-subtab.is-active:visited {
	background: linear-gradient(135deg, rgba(124,58,237,0.55), rgba(168,85,247,0.55)) !important;
	color: #fff !important;
	box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 4px 10px rgba(124,58,237,0.28);
}
html.light-mode .admin-subtabs { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.10); }
html.light-mode .admin-subtab { color: #4a3a78 !important; }
html.light-mode .admin-subtab:hover, html.light-mode .admin-subtab:focus { color: #2a1f4a !important; background: rgba(0,0,0,0.06); }
html.light-mode .admin-subtab.is-active,
html.light-mode .admin-subtab.is-active:hover,
html.light-mode .admin-subtab.is-active:focus { color: #fff !important; }

.admin-q-search {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1rem 0;
	align-items: center;
}
.admin-q-search-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.55rem 0.8rem;
	border-radius: 0.55rem;
	border: 1px solid rgba(255,255,255,0.18);
	background: rgba(255,255,255,0.06);
	color: #fff;
	font-size: 0.95rem;
}
html.light-mode .admin-q-search-input {
	background: #fff;
	border-color: rgba(0,0,0,0.18);
	color: #1a1233;
}

.admin-q-empty {
	padding: 2.2rem 1rem;
	border-radius: 0.75rem;
	background: rgba(255,255,255,0.04);
	border: 1px dashed rgba(255,255,255,0.18);
	text-align: center;
	color: rgba(255,255,255,0.72);
}
.admin-q-empty p { margin: 0.6rem 0 0 0; }
html.light-mode .admin-q-empty { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.16); color: #4a3a78; }

.admin-q-list {
	display: grid;
	gap: 0.85rem;
}
.admin-q-row {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 0.85rem;
	padding: 0.95rem 1.05rem;
	display: grid;
	gap: 0.7rem;
}
html.light-mode .admin-q-row { background: #fff; border-color: rgba(0,0,0,0.10); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }

.admin-q-row-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.admin-q-row-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.9rem;
}
.admin-q-row-id {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	color: rgba(255,255,255,0.55);
	font-size: 0.85rem;
}
html.light-mode .admin-q-row-id { color: rgba(0,0,0,0.45); }
.admin-q-row-av {
	width: 28px; height: 28px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(255,255,255,0.18);
}
.admin-q-row-creator {
	font-weight: 600;
	color: #c8b7ff !important;
	text-decoration: none !important;
}
.admin-q-row-creator:hover { text-decoration: underline !important; }
html.light-mode .admin-q-row-creator { color: #5b21b6 !important; }
.admin-q-row-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	font-size: 0.8rem;
	color: rgba(255,255,255,0.82);
}
html.light-mode .admin-q-row-pill { background: rgba(0,0,0,0.06); color: #4a3a78; }
.admin-q-row-deleted { color: #fdba74 !important; }
html.light-mode .admin-q-row-deleted { color: #b91c1c !important; }
.admin-q-row-rejected { color: #fdba74 !important; }
html.light-mode .admin-q-row-rejected { color: #c2410c !important; }

.admin-q-row-body { display: grid; gap: 0.55rem; }
.admin-q-row-text {
	font-size: 1.05rem;
	line-height: 1.45;
	color: #fff;
	font-weight: 600;
}
html.light-mode .admin-q-row-text { color: #1a1233; }
.admin-q-row-options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}
.admin-q-row-options li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.45rem 0.65rem;
	border-radius: 0.45rem;
	background: rgba(255,255,255,0.04);
	color: rgba(255,255,255,0.92);
	font-size: 0.94rem;
}
html.light-mode .admin-q-row-options li { background: rgba(0,0,0,0.04); color: #2a1f4a; }
.admin-q-row-opt-n {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 50%;
	background: rgba(124,58,237,0.35);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	flex: 0 0 auto;
}
.admin-q-row-reason {
	padding: 0.55rem 0.75rem;
	background: rgba(239,68,68,0.10);
	border: 1px solid rgba(239,68,68,0.28);
	border-radius: 0.5rem;
	color: #fecaca;
	font-size: 0.9rem;
}
html.light-mode .admin-q-row-reason { color: #991b1b; background: rgba(239,68,68,0.08); }

.admin-q-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
	padding-top: 0.5rem;
	border-top: 1px solid rgba(255,255,255,0.08);
}
html.light-mode .admin-q-row-actions { border-top-color: rgba(0,0,0,0.08); }
.admin-q-inline-form {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	flex-wrap: wrap;
}
.admin-q-reason-form { flex: 1 1 280px; }
.admin-q-reason-input {
	flex: 1 1 200px;
	min-width: 0;
	padding: 0.45rem 0.7rem;
	border-radius: 0.45rem;
	border: 1px solid rgba(255,255,255,0.18);
	background: rgba(255,255,255,0.05);
	color: #fff;
	font-size: 0.88rem;
}
html.light-mode .admin-q-reason-input {
	background: #fff;
	border-color: rgba(0,0,0,0.16);
	color: #1a1233;
}
.admin-btn-danger {
	background: linear-gradient(135deg, #ef4444, #dc2626) !important;
	color: #fff !important;
	border: 1px solid rgba(239,68,68,0.55) !important;
}
.admin-btn-danger:hover, .admin-btn-danger:focus { filter: brightness(1.08); }

.admin-q-log-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.admin-q-log-table th, .admin-q-log-table td {
	padding: 0.55rem 0.7rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.88);
}
.admin-q-log-table thead th {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.6);
	border-bottom-color: rgba(255,255,255,0.16);
}
html.light-mode .admin-q-log-table th, html.light-mode .admin-q-log-table td { color: #2a1f4a; border-bottom-color: rgba(0,0,0,0.08); }
html.light-mode .admin-q-log-table thead th { color: rgba(0,0,0,0.55); border-bottom-color: rgba(0,0,0,0.16); }
.admin-q-log-action {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	background: rgba(255,255,255,0.08);
	color: #fff;
}
.admin-q-log-action-approve { background: rgba(34,197,94,0.22); color: #86efac; }
.admin-q-log-action-reject  { background: rgba(234,179,8,0.22); color: #fde68a; }
.admin-q-log-action-delete  { background: rgba(239,68,68,0.22); color: #fecaca; }
.admin-q-log-action-restore { background: rgba(59,130,246,0.22); color: #bfdbfe; }
html.light-mode .admin-q-log-action-approve { background: rgba(34,197,94,0.18); color: #166534; }
html.light-mode .admin-q-log-action-reject  { background: rgba(234,179,8,0.20); color: #854d0e; }
html.light-mode .admin-q-log-action-delete  { background: rgba(239,68,68,0.16); color: #991b1b; }
html.light-mode .admin-q-log-action-restore { background: rgba(59,130,246,0.18); color: #1e3a8a; }
.admin-q-log-text {
	display: block;
	color: rgba(255,255,255,0.62);
	font-size: 0.84rem;
	margin-top: 0.2rem;
	max-width: 38ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
html.light-mode .admin-q-log-text { color: rgba(0,0,0,0.55); }
.admin-q-log-reason {
	color: rgba(255,255,255,0.72);
	max-width: 32ch;
}
html.light-mode .admin-q-log-reason { color: #4a3a78; }

/* ----- q.php pending banner (visible to creator + visitors on the share link) ----- */
.uqc-pending-banner {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 0.9rem;
	margin: 0 0 1rem 0;
	border-radius: 0.7rem;
	background: rgba(234,179,8,0.16);
	color: #fde68a;
	border: 1px solid rgba(234,179,8,0.40);
	font-size: 0.94rem;
	line-height: 1.4;
}
.uqc-pending-banner i { font-size: 1.1rem; flex: 0 0 auto; }
html.light-mode .uqc-pending-banner {
	background: rgba(234,179,8,0.14);
	color: #854d0e;
	border-color: rgba(234,179,8,0.55);
}

/* =============================================================
   V6.8 patch 163 — connect.php polish:
   (1) left-align the breadcrumb + title + sub copy in the hero so it
       reads the same as movies.php / tv.php (the long sub-line was
       inflating the flex-column to ~472px, leaving the short
       breadcrumb visually centered inside it);
   (2) re-skin .connect-tile in grid mode so it matches the
       .discover-card poster aesthetic — same surface, hover lift,
       and shadow ring vocabulary, just with a violet (people) accent
       instead of green (rated-up media).
   ============================================================= */

.discover-wrap[data-cat="connect"] .subpage-bar-copy {
	text-align: left;
	align-items: flex-start;
}
.discover-wrap[data-cat="connect"] .subpage-bar-eyebrow {
	justify-content: flex-start;
}
.discover-wrap[data-cat="connect"] .subpage-pillrow {
	justify-content: flex-start;
}

/* Card-style framing for grid-mode connect tiles. Mirrors .discover-card
   defaults so a row of people-tiles and a row of media-cards look like
   siblings in the same design system. */
.connect-tile-grid {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 18px 14px 16px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0,0,0,0.18);
	transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
	position: relative;
}
.connect-tile-grid:hover {
	transform: translateY(-3px);
	border-color: var(--purple-border, rgba(124,58,237,0.45));
	box-shadow: rgba(124,58,237,0.25) 0 0 0 1px,
	            rgba(124,58,237,0.18) 0 12px 32px 0;
	background: var(--surface); /* keep white in light mode on hover */
}

/* V6.9 — Connect tile follow state no longer adds a tile-level glow,
   so the Following affordance matches Discover where only the chip itself
   changes color (not the entire card outline). */
.connect-tile-grid:has(.connect-tile-act.connect-tile-following) {
	box-shadow: none;
}

html.light-mode .connect-tile-grid {
	background: #ffffff;
	border-color: rgba(124,58,237,0.16);
	box-shadow: 0 2px 8px rgba(60,40,120,0.08);
}
html.light-mode .connect-tile-grid:hover {
	background: #ffffff;
	border-color: rgba(124,58,237,0.45);
	box-shadow: rgba(124,58,237,0.22) 0 0 0 1px,
	            rgba(124,58,237,0.14) 0 12px 32px 0;
}
html.light-mode .connect-tile-grid:has(.connect-tile-act.connect-tile-following) {
	box-shadow: 0 2px 8px rgba(60,40,120,0.08);
}

/* V6.8 patch 163 follow-up — the pillrow is `display:block; text-align:center`
   not flex, so we must left-align it via text-align rather than
   justify-content. */
.discover-wrap[data-cat="connect"] .subpage-pillrow,
.discover-wrap[data-cat="connect"] .subpage-pillrow-filter {
	text-align: left;
}

/* ============================================================
   V6.8 patch 167 — "How to play" tooltip for game pages + pig-die centering fix
   ============================================================
   User ask: "add a tooltip somewhere on all games pages for users
   to understand how to play."

   Renders a small question-mark pill button (Font Awesome) inside
   the game page chrome. Click toggles a popover anchored under the
   button with the game's one-liner rules. Closes on outside-click,
   ESC, or the close button. Mobile-friendly: popover anchors below
   the trigger and clamps to viewport width.

   Used on play.php (.play-bar) and pvp-game.php (.pvpg-header).
*/
.game-howto-wrap { position: relative; display: inline-flex; align-items: center; }
.game-howto-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 13px; border-radius: 99px;
	background: rgba(124,58,237,0.10);
	border: 1px solid rgba(124,58,237,0.32);
	color: var(--purple, #7c3aed);
	font-size: .82rem; font-weight: 700;
	letter-spacing: .2px;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease, border-color .15s ease;
	font-family: inherit;
}
.game-howto-btn i { font-size: .9rem; }
.game-howto-btn:hover,
.game-howto-btn:focus-visible {
	background: rgba(124,58,237,0.20);
	border-color: rgba(124,58,237,0.55);
	transform: translateY(-1px);
	outline: none;
}
.game-howto-btn[aria-expanded="true"] {
	background: rgba(124,58,237,0.28);
	border-color: rgba(124,58,237,0.65);
}
html.light-mode .game-howto-btn {
	background: rgba(124,58,237,0.06);
	color: #4b2fb3;
}
html.light-mode .game-howto-btn:hover,
html.light-mode .game-howto-btn:focus-visible {
	background: rgba(124,58,237,0.14);
}

/* Popover anchored under the trigger. The wrap is relative, so this is
   absolutely positioned below. On narrow screens we widen the card to
   the viewport instead of overflowing horizontally. */
.game-howto-pop {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 200;
	min-width: 260px;
	max-width: min(360px, calc(100vw - 24px));
	animation: gameHowtoPop .18s cubic-bezier(.2,.8,.3,1.05);
}
.game-howto-pop[hidden] { display: none; }
@keyframes gameHowtoPop {
	from { transform: translateY(-4px); opacity: 0; }
	to   { transform: translateY(0);     opacity: 1; }
}
.game-howto-card {
	position: relative;
	background: rgba(22, 16, 44, 0.96);
	color: #f4f1ff;
	border: 1px solid rgba(124,58,237,0.42);
	border-radius: 14px;
	padding: 14px 16px 14px;
	box-shadow: 0 18px 40px -14px rgba(0,0,0,0.55),
	            0 0 0 1px rgba(255,255,255,0.04) inset;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
/* Small arrow pointing at the trigger button. */
.game-howto-card::before {
	content: "";
	position: absolute;
	top: -7px; left: 22px;
	width: 12px; height: 12px;
	background: rgba(22, 16, 44, 0.96);
	border-top: 1px solid rgba(124,58,237,0.42);
	border-left: 1px solid rgba(124,58,237,0.42);
	transform: rotate(45deg);
}
.game-howto-title {
	margin: 0 28px 6px 0;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: .98rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: .2px;
}
.game-howto-text {
	margin: 0;
	font-size: .88rem;
	line-height: 1.5;
	color: rgba(244,241,255,0.88);
}
.game-howto-close {
	position: absolute;
	top: 6px; right: 6px;
	width: 28px; height: 28px;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: rgba(244,241,255,0.7);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s ease, color .15s ease;
	font-family: inherit;
}
.game-howto-close:hover,
.game-howto-close:focus-visible {
	background: rgba(255,255,255,0.08);
	color: #fff;
	outline: none;
}
html.light-mode .game-howto-card {
	background: #fff;
	color: #2a1f4a;
	border-color: rgba(124,58,237,0.30);
	box-shadow: 0 18px 40px -14px rgba(60,40,120,0.30),
	            0 0 0 1px rgba(124,58,237,0.10) inset;
}
html.light-mode .game-howto-card::before {
	background: #fff;
	border-color: rgba(124,58,237,0.30);
}
html.light-mode .game-howto-title { color: #2a1f4a; }
html.light-mode .game-howto-text { color: rgba(60,40,90,0.84); }
html.light-mode .game-howto-close { color: rgba(60,40,90,0.7); }
html.light-mode .game-howto-close:hover,
html.light-mode .game-howto-close:focus-visible {
	background: rgba(124,58,237,0.10);
	color: #2a1f4a;
}

/* If the popover would overflow the right edge (e.g. when the trigger
   is near a right-aligned area in pvp-game.php), flip it to anchor from
   the right edge. Toggled by JS via a .is-right class. */
.game-howto-pop.is-right { left: auto; right: 0; }
.game-howto-pop.is-right .game-howto-card::before { left: auto; right: 22px; }

@media (max-width: 600px) {
	.game-howto-btn { padding: 6px 11px; font-size: .78rem; }
	.game-howto-pop { min-width: 240px; max-width: calc(100vw - 16px); }
}

@media (prefers-reduced-motion: reduce) {
	.game-howto-btn:hover,
	.game-howto-btn:focus-visible { transform: none; }
	.game-howto-pop { animation: none; }
}

/* ============================================================
   V6.8 patch 170 — Admin "All users" tab
   ============================================================ */
.admin-users-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0 0 1rem 0;
}
.admin-users-toolbar .admin-q-search-input { flex: 1 1 220px; }
.admin-users-sort-label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
}
.admin-users-sort-select {
	padding: 0.5rem 0.7rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(255,255,255,0.18);
	background: rgba(255,255,255,0.06);
	color: #fff;
	font-size: 0.9rem;
}
html.light-mode .admin-users-sort-select {
	background: #fff;
	border-color: rgba(0,0,0,0.18);
	color: #1a1233;
}

.admin-users-summary { margin: 0 0 0.6rem 0; font-size: 0.85rem; }

.admin-table-wrap { overflow-x: auto; }
.admin-users-table { width: 100%; }
.admin-users-table th.admin-users-num,
.admin-users-table td.admin-users-num { text-align: right; white-space: nowrap; }
.admin-users-icon { color: #fbbf24; opacity: 0.85; margin-right: 0.15rem; }

.admin-users-cell {
	display: flex;
	gap: 0.7rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
}
.admin-users-cell:hover .admin-users-name { color: #c4b5fd; }
html.light-mode .admin-users-cell:hover .admin-users-name { color: #6d28d9; }
.admin-users-av {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	flex: 0 0 auto;
	object-fit: cover;
}
.admin-users-namestack {
	display: inline-flex;
	flex-direction: column;
	gap: 0.05rem;
	min-width: 0;
}
.admin-users-name {
	font-weight: 600;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
html.light-mode .admin-users-name { color: #1a1233; }

.admin-users-last { white-space: nowrap; }
.admin-users-last-never { opacity: 0.55; font-style: italic; }

.admin-pill-tiny {
	font-size: 0.62rem;
	padding: 0.05rem 0.45rem;
	border-radius: 999px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.admin-users-pager {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	justify-content: center;
	margin: 1.1rem 0 0 0;
	font-size: 0.9rem;
}
.admin-users-pager .is-disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

@media (max-width: 720px) {
	.admin-users-table thead { display: none; }
	.admin-users-table, .admin-users-table tbody, .admin-users-table tr, .admin-users-table td { display: block; width: 100%; }
	.admin-users-table tbody tr {
		padding: 0.7rem 0;
		border-bottom: 1px solid rgba(255,255,255,0.06);
	}
	html.light-mode .admin-users-table tbody tr { border-bottom-color: rgba(0,0,0,0.06); }
	.admin-users-table tbody td { padding: 0.2rem 0; border: none; }
	.admin-users-table td.admin-users-num { text-align: left; }
	.admin-users-table td.admin-users-num::before { content: attr(data-label); opacity: 0.6; margin-right: 0.5rem; }
}

/* ============================================================
   V6.8 patch 162 — Combined Discover greet + Daily Challenge + Q accordion
   ============================================================
   The default Stream view used to stack the standalone Daily Challenge
   banner ON TOP OF the personalized greet card, eating ~150 px of
   above-the-fold real estate with two near-identical surfaces. We
   now inline the DC as a compact strip across the top of the greet
   card and pull the "N new questions for you" chip out into a
   dropdown accordion that previews the next 8 question titles.

   - .discover-greet-combined.has-dc           — grid row added for DC strip
   - .discover-greet-dc                        — inline DC strip (link)
   - .discover-greet-q-details / *-toggle      — accordion summary chip
   - .discover-greet-q-panel / *-list          — drop-down popover
   - .discover-greet-q-item                    — single question row in list

   The standalone .discover-dc-banner block is now only emitted on
   non-default stream filters (where the greet card is hidden).
*/

/* Push the DC inline strip into a new top row that spans both grid
   columns so the greeting + rail sit underneath it. */
.discover-greet-combined.has-dc {
	grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
	grid-template-rows: auto auto;
	row-gap: 14px;
}
.discover-greet-combined .discover-greet-dc {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid rgba(167,139,250,0.20);
	background:
		linear-gradient(95deg, rgba(124,58,237,0.18) 0%, rgba(124,58,237,0.06) 38%, rgba(8,145,178,0.08) 78%, rgba(21,128,61,0.10) 100%),
		rgba(16,12,32,0.36);
	color: inherit;
	text-decoration: none !important;
	box-shadow: 0 8px 22px -20px rgba(124,58,237,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.discover-greet-combined .discover-greet-dc:hover,
.discover-greet-combined .discover-greet-dc:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(167,139,250,0.40);
	box-shadow: 0 14px 30px -22px rgba(124,58,237,0.75), 0 1px 0 rgba(255,255,255,0.08) inset;
	outline: none;
}
.discover-greet-dc-icon {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(124,58,237,0.28);
	color: #f5e3ff;
	font-size: 18px;
	box-shadow: 0 0 0 1px rgba(167,139,250,0.30) inset;
}
.discover-greet-dc-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.discover-greet-dc-eyebrow {
	font-size: 10.5px;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	font-weight: 800;
	color: rgba(196,181,253,0.92);
}
.discover-greet-dc-label {
	font-size: 14px;
	font-weight: 700;
	color: #f8f7ff;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.discover-greet-dc-progress-shell {
	display: block;
	width: 100%;
	height: 4px;
	border-radius: 999px;
	background: rgba(124,58,237,0.18);
	overflow: hidden;
	margin-top: 2px;
}
.discover-greet-dc-progress-bar {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #a78bfa, #38bdf8);
	border-radius: inherit;
	transition: width 320ms ease;
}
.discover-greet-dc-amt {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 800;
	font-size: 14px;
	color: #fbbf24;
	white-space: nowrap;
}
.discover-greet-dc.is-done {
	background:
		linear-gradient(95deg, rgba(34,197,94,0.20) 0%, rgba(34,197,94,0.08) 50%, rgba(34,197,94,0.04) 100%),
		rgba(10,28,18,0.40);
	border-color: rgba(74,222,128,0.32);
}
.discover-greet-dc.is-done .discover-greet-dc-icon {
	background: rgba(34,197,94,0.28);
	color: #bbf7d0;
}
.discover-greet-dc.is-done .discover-greet-dc-eyebrow { color: rgba(134,239,172,0.92); }

/* Light mode for the inline DC strip. */
html.light-mode .discover-greet-combined .discover-greet-dc {
	background:
		linear-gradient(95deg, rgba(124,58,237,0.10) 0%, rgba(124,58,237,0.03) 38%, rgba(8,145,178,0.05) 78%, rgba(21,128,61,0.07) 100%),
		rgba(255,255,255,0.55);
	border-color: rgba(124,58,237,0.18);
	box-shadow: 0 8px 22px -20px rgba(124,58,237,0.30), 0 1px 0 rgba(255,255,255,0.82) inset;
}
html.light-mode .discover-greet-dc-icon { background: rgba(124,58,237,0.16); color: #6d28d9; }
html.light-mode .discover-greet-dc-eyebrow { color: #6d28d9; }
html.light-mode .discover-greet-dc-label { color: #1f1240; }
html.light-mode .discover-greet-dc-progress-shell { background: rgba(124,58,237,0.12); }
html.light-mode .discover-greet-dc-amt { color: #b45309; }
html.light-mode .discover-greet-dc.is-done {
	background:
		linear-gradient(95deg, rgba(34,197,94,0.12) 0%, rgba(34,197,94,0.04) 50%, rgba(34,197,94,0.02) 100%),
		rgba(240,253,244,0.85);
	border-color: rgba(74,222,128,0.40);
}
html.light-mode .discover-greet-dc.is-done .discover-greet-dc-icon { background: rgba(34,197,94,0.18); color: #15803d; }
html.light-mode .discover-greet-dc.is-done .discover-greet-dc-eyebrow { color: #15803d; }

/* ----- Questions accordion ----- 
   Sits as a full-width row at the bottom of the combined card, so it
   doesn't conflict with the rail's horizontal-scroll overflow. The
   summary is a slim horizontal banner pill; opening drops the list
   in natural flow inside the card so nothing gets clipped. */
.discover-greet-combined .discover-greet-q-details {
	grid-column: 1 / -1;
	display: block;
	margin-top: 4px;
}
/* V6.8 patch 169.7 — when the questions-waiting accordion lives inside the
   inline quiz card (post-patch-166 location, marked with .discover-quiz-q-details),
   give it a little breathing room from the quiz body above. Previously they
   were touching at 0px gap. */
.discover-quiz-q-details {
	display: block;
	margin-top: 10px;
}
.discover-greet-q-toggle {
	list-style: none;
	cursor: pointer;
	user-select: none;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto 14px;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid rgba(167,139,250,0.30) !important;
	color: rgba(237,233,254,0.94) !important;
	background:
		linear-gradient(95deg, rgba(124,58,237,0.18) 0%, rgba(124,58,237,0.06) 60%, rgba(8,145,178,0.08) 100%),
		rgba(16,12,32,0.34);
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 8px 22px -20px rgba(124,58,237,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.discover-greet-q-toggle::-webkit-details-marker { display: none; }
.discover-greet-q-toggle::marker { display: none; }
.discover-greet-q-toggle:hover,
.discover-greet-q-toggle:focus-visible {
	background:
		linear-gradient(95deg, rgba(124,58,237,0.28) 0%, rgba(124,58,237,0.10) 60%, rgba(8,145,178,0.10) 100%),
		rgba(16,12,32,0.34);
	border-color: rgba(167,139,250,0.55) !important;
	transform: translateY(-1px);
	outline: none;
}
.discover-greet-q-toggle-icon {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: rgba(124,58,237,0.30);
	color: #ede9fe;
	font-size: 12px;
}
.discover-greet-q-toggle-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
	color: rgba(237,233,254,0.92);
}
.discover-greet-q-toggle-text strong {
	color: #f8f7ff;
	font-weight: 800;
}
.discover-greet-q-toggle-hint {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #d8d3e8;
	white-space: nowrap;
}
.discover-greet-q-caret {
	font-size: 11px !important;
	color: #d8d3e8;
	transition: transform 200ms ease;
}
.discover-greet-q-details[open] .discover-greet-q-caret { transform: rotate(180deg); }
.discover-greet-q-details[open] .discover-greet-q-toggle {
	border-color: rgba(167,139,250,0.65) !important;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom-color: transparent !important;
}

/* Expanded panel sits flush under the summary inside the card. */
.discover-greet-q-panel {
	margin-top: -1px;
	padding: 6px;
	border-radius: 0 0 12px 12px;
	border: 1px solid rgba(167,139,250,0.30);
	border-top: none;
	background:
		linear-gradient(180deg, rgba(28,18,58,0.55), rgba(20,14,42,0.40));
	animation: discoverGreetQFade 220ms ease;
}
@keyframes discoverGreetQFade {
	from { opacity: 0; transform: translateY(-3px); }
	to   { opacity: 1; transform: translateY(0); }
}
.discover-greet-q-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
}
.discover-greet-q-list li { margin: 0; padding: 0; min-width: 0; }
.discover-greet-q-item {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr) 14px;
	align-items: center;
	gap: 10px;
	padding: 9px 11px;
	border-radius: 10px;
	color: rgba(237,233,254,0.92) !important;
	text-decoration: none !important;
	font-size: 13px;
	line-height: 1.32;
	transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.wrapper a.discover-greet-q-item,
.wrapper a.discover-greet-q-item:visited {
	color: rgba(237,233,254,0.94) !important;
}
.discover-greet-q-item:hover,
.discover-greet-q-item:focus-visible {
	background: rgba(124,58,237,0.22);
	color: #fff !important;
	outline: none;
	transform: translateX(1px);
}
.wrapper a.discover-greet-q-item:hover,
.wrapper a.discover-greet-q-item:focus-visible {
	color: #fff !important;
}
.discover-greet-q-item i.fa-question-circle,
.discover-greet-q-item i.fa-circle-question {
	color: #d8d3e8;
	font-size: 14px;
}
.discover-greet-q-item-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	white-space: normal;
}
.discover-greet-q-item-arrow {
	color: rgba(237,233,254,0.68);
	font-size: 11px;
	opacity: 0;
	transition: opacity 140ms ease, transform 140ms ease;
}
.discover-greet-q-item:hover .discover-greet-q-item-arrow,
.discover-greet-q-item:focus-visible .discover-greet-q-item-arrow {
	opacity: 1;
	transform: translateX(2px);
}
.discover-greet-q-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 8px 4px 4px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(167,139,250,0.34);
	background: rgba(124,58,237,0.22);
	color: #f5e3ff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.02em;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.wrapper a.discover-greet-q-more,
.wrapper a.discover-greet-q-more:visited {
	color: #f8f7ff !important;
}
.discover-greet-q-more:hover,
.discover-greet-q-more:focus-visible {
	background: rgba(124,58,237,0.34);
	border-color: rgba(167,139,250,0.60);
	outline: none;
	transform: translateY(-1px);
}

/* Light mode for the accordion. */
html.light-mode .discover-greet-q-toggle {
	background:
		linear-gradient(95deg, rgba(124,58,237,0.10) 0%, rgba(124,58,237,0.03) 60%, rgba(8,145,178,0.05) 100%),
		rgba(255,255,255,0.62);
	border-color: rgba(124,58,237,0.24) !important;
	color: #24163f !important;
	box-shadow: 0 8px 20px -18px rgba(124,58,237,0.30), 0 1px 0 rgba(255,255,255,0.82) inset !important;
}
html.light-mode .discover-greet-q-toggle:hover,
html.light-mode .discover-greet-q-toggle:focus-visible {
	background:
		linear-gradient(95deg, rgba(124,58,237,0.16) 0%, rgba(124,58,237,0.05) 60%, rgba(8,145,178,0.06) 100%),
		rgba(255,255,255,0.72);
	border-color: rgba(124,58,237,0.40) !important;
}
html.light-mode .discover-greet-q-toggle-icon { background: rgba(124,58,237,0.16); color: #1f2937; }
html.light-mode .discover-greet-q-toggle-text { color: #2a1f4a; }
html.light-mode .discover-greet-q-toggle-text strong { color: #1f1240; }
html.light-mode .discover-greet-q-toggle-hint { color: #4b5563; }
html.light-mode .discover-greet-q-caret { color: #4b5563; }
html.light-mode .discover-greet-q-details[open] .discover-greet-q-toggle {
	border-color: rgba(124,58,237,0.45) !important;
	border-bottom-color: transparent !important;
}
html.light-mode .discover-greet-q-panel {
	background: rgba(255,255,255,0.78);
	border-color: rgba(124,58,237,0.24);
}
html.light-mode .discover-greet-q-item { color: #24163f !important; }
html.light-mode .wrapper a.discover-greet-q-item,
html.light-mode .wrapper a.discover-greet-q-item:visited { color: #24163f !important; }
html.light-mode .discover-greet-q-item:hover,
html.light-mode .discover-greet-q-item:focus-visible {
	background: rgba(124,58,237,0.10);
	color: #1f1240 !important;
}
html.light-mode .wrapper a.discover-greet-q-item:hover,
html.light-mode .wrapper a.discover-greet-q-item:focus-visible { color: #1f1240 !important; }
html.light-mode .discover-greet-q-item i.fa-question-circle,
html.light-mode .discover-greet-q-item i.fa-circle-question { color: #4b5563; }
html.light-mode .discover-greet-q-item-arrow { color: rgba(31,41,55,0.58); }
html.light-mode .discover-greet-q-more {
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.30);
	color: #1f2937 !important;
}
html.light-mode .wrapper a.discover-greet-q-more,
html.light-mode .wrapper a.discover-greet-q-more:visited { color: #1f2937 !important; }
html.light-mode .discover-greet-q-more:hover,
html.light-mode .discover-greet-q-more:focus-visible {
	background: rgba(124,58,237,0.16);
	border-color: rgba(124,58,237,0.45);
}

@media (max-width: 920px) {
	.discover-greet-combined.has-dc { grid-template-columns: 1fr; }
	.discover-greet-q-list {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 600px) {
	.discover-greet-combined .discover-greet-dc {
		grid-template-columns: 38px minmax(0, 1fr) auto;
		gap: 10px;
		padding: 9px 11px;
		border-radius: 12px;
	}
	.discover-greet-dc-icon {
		width: 38px;
		height: 38px;
		font-size: 15px;
		border-radius: 10px;
	}
	.discover-greet-dc-label {
		font-size: 13px;
		white-space: normal;
	}
	.discover-greet-dc-amt { font-size: 13px; }
	.discover-greet-q-toggle {
		grid-template-columns: 24px minmax(0, 1fr) 14px;
		padding: 9px 12px;
		font-size: 12px;
	}
	.discover-greet-q-toggle-hint { display: none; }
	.discover-greet-q-item { font-size: 12.5px; padding: 8px 9px; }
}

@media (prefers-reduced-motion: reduce) {
	.discover-greet-combined .discover-greet-dc,
	.discover-greet-q-toggle,
	.discover-greet-q-item,
	.discover-greet-q-item-arrow,
	.discover-greet-q-more {
		transition: none !important;
	}
	.discover-greet-q-panel { animation: none !important; }
}

/* ===========================================================
   V6.8 patch 173 — Admin Review Queue styles
   ===========================================================
   Sits inside the existing .admin-panel chrome. Mirrors the
   moderator-questions look-and-feel (cards with status pills +
   bulk-action toolbar). All sizing keyed off the .admin-card
   typography from earlier patches.
*/

.admin-review-section { margin-top: 8px; }

.admin-review-bucketrow { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.admin-review-bucket { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-review-bucket-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted, #8a8a99);
	min-width: 70px;
}
.admin-review-bucket-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-review-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 11px; border-radius: 999px;
	background: rgba(124,58,237,0.08); color: inherit;
	font-size: 12.5px; font-weight: 500; text-decoration: none;
	border: 1px solid rgba(124,58,237,0.18);
	transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-review-chip:hover, .admin-review-chip:focus { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.35); }
.admin-review-chip.is-active {
	background: linear-gradient(135deg, #7c3aed, #22c55e);
	color: #fff; border-color: transparent;
	box-shadow: 0 2px 10px rgba(124,58,237,0.32);
}
.admin-review-chip.is-clear {
	background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08);
	opacity: 0.62;
}
.admin-review-chip.is-clear:hover { opacity: 0.95; background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.18); }
.admin-review-chip i { font-size: 13px; opacity: 0.85; }
.admin-review-chip-count {
	background: rgba(239,68,68,0.20);
	color: #fdba74; font-weight: 700;
	border-radius: 999px; padding: 1px 7px;
	font-size: 11px; min-width: 18px; text-align: center;
	font-variant-numeric: tabular-nums;
}
.admin-review-chip-clear {
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; border-radius: 999px;
	background: rgba(16,185,129,0.18); color: #10b981;
	font-size: 9px;
}
.admin-review-chip.is-active .admin-review-chip-count { background: rgba(255,255,255,0.22); color: #fff; }
.admin-review-chip.is-active .admin-review-chip-clear { background: rgba(255,255,255,0.22); color: #fff; }

.admin-review-cathead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"title    gen"
		"stats    stats";
	gap: 14px 18px; align-items: center;
	margin-bottom: 14px;
	padding: 14px 16px; border-radius: 12px;
	background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(34,197,94,0.05));
	border: 1px solid rgba(124,58,237,0.20);
}
.admin-review-cathead-title { grid-area: title; min-width: 0; }
.admin-review-cathead-title h2 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; }
.admin-review-cathead-title h2 i { color: #c4b5fd; }
.admin-review-cathead-title p { margin: 0; font-size: 12px; color: var(--muted, #8a8a99); font-family: ui-monospace, monospace; }
.admin-review-cathead h2 i { color: #c4b5fd; }
.admin-review-cathead p { margin: 0; font-size: 13px; color: var(--muted, #8a8a99); }
.admin-review-cathead-stats { grid-area: stats; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.admin-review-statpill {
	display: flex; flex-direction: column; align-items: flex-start;
	padding: 10px 12px; border-radius: 10px;
	background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.06);
	position: relative;
}
.admin-review-statpill::before {
	content: ''; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px;
	border-radius: 0 3px 3px 0;
	background: rgba(255,255,255,0.10);
}
.admin-review-statpill.is-pending::before { background: #fbbf24; }
.admin-review-statpill.is-pending .admin-review-statpill-val { color: #fcd34d; }
.admin-review-statpill.is-approved::before { background: #10b981; }
.admin-review-statpill.is-approved .admin-review-statpill-val { color: #34d399; }
.admin-review-statpill.is-rejected::before { background: #f97316; }
.admin-review-statpill.is-rejected .admin-review-statpill-val { color: #fdba74; }
.admin-review-statpill-val { font-size: 19px; font-weight: 700; line-height: 1.1; font-family: 'Space Grotesk', system-ui, sans-serif; font-variant-numeric: tabular-nums; padding-left: 6px; }
.admin-review-statpill-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted, #8a8a99); margin-top: 2px; padding-left: 6px; }

.admin-review-genform { grid-area: gen; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.admin-review-genform.admin-review-genform-disabled { flex-direction: row; align-items: center; gap: 8px; font-size: 12.5px; }
.admin-review-genform button.admin-review-gen-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 16px; border-radius: 9px; border: 0;
	background: linear-gradient(135deg, #7c3aed, #22c55e); color: #fff;
	font-size: 13px; font-weight: 600; cursor: pointer;
	box-shadow: 0 4px 14px rgba(124,58,237,0.30);
	transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}
.admin-review-genform button.admin-review-gen-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(124,58,237,0.40); }
.admin-review-genform button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.admin-review-gen-hint { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.admin-review-gen-hint i { font-size: 10px; opacity: 0.7; }

.admin-review-statusrow { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0; padding-bottom: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-review-statustab {
	padding: 9px 16px; border-radius: 9px 9px 0 0;
	text-decoration: none; color: rgba(255,255,255,0.65); font-size: 13.5px;
	border: 1px solid transparent; border-bottom: 0;
	display: inline-flex; gap: 6px; align-items: center;
	transition: background 0.15s ease, color 0.15s ease;
	position: relative; top: 1px;
}
.admin-review-statustab:hover { background: rgba(124,58,237,0.08); color: rgba(255,255,255,0.92); }
.admin-review-statustab.is-active {
	background: rgba(124,58,237,0.14);
	border-color: rgba(124,58,237,0.28);
	color: #fff;
	font-weight: 700;
}

.admin-review-main { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start; }
.admin-review-itemcol { min-width: 0; }
.admin-review-sidecol { display: flex; flex-direction: column; gap: 14px; }

.admin-review-actions { margin-bottom: 12px; }
.admin-review-actionbar {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
	padding: 12px 14px; border-radius: 12px;
	background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
}
.admin-review-actionbar-spacer { flex: 1 1 auto; }
.admin-review-selectall { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.78); }
.admin-review-selectall input[type=checkbox] { width: 16px; height: 16px; flex: 0 0 16px; accent-color: #7c3aed; }
.admin-review-selcount {
	display: inline-flex; align-items: center;
	padding: 3px 10px; border-radius: 999px;
	background: rgba(124,58,237,0.10); border: 1px solid rgba(124,58,237,0.20);
	font-size: 11.5px; font-variant-numeric: tabular-nums;
	color: #c4b5fd;
}
.admin-review-reject-group {
	display: inline-flex; flex-wrap: nowrap; gap: 6px; align-items: center;
	padding: 5px 8px; border-radius: 9px;
	background: rgba(249,115,22,0.06); border: 1px solid rgba(249,115,22,0.18);
	flex: 1 1 360px; min-width: 0;
}
.admin-review-reason-select, .admin-review-reason-text {
	padding: 7px 10px; border-radius: 7px; font-size: 12.5px;
	border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.22); color: inherit;
}
.admin-review-reason-select:focus, .admin-review-reason-text:focus {
	outline: none; border-color: rgba(249,115,22,0.45);
	box-shadow: 0 0 0 3px rgba(249,115,22,0.10);
}
.admin-review-reason-select { flex: 0 0 auto; min-width: 0; max-width: 140px; }
.admin-review-reason-text { min-width: 0; flex: 1 1 120px; }
.admin-review-actionbar button {
	padding: 8px 14px; border-radius: 7px; border: 0;
	font-size: 12.5px; font-weight: 700; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background 0.12s ease, transform 0.1s ease;
}
.admin-review-actionbar button:hover { transform: translateY(-1px); }
.admin-review-approve-btn { background: linear-gradient(135deg, #10b981, #059669) !important; color: #fff !important; box-shadow: 0 3px 10px rgba(16,185,129,0.30); }
.admin-review-approve-btn:hover { background: linear-gradient(135deg, #0d9d6f, #047857) !important; }
.admin-review-reject-btn { background: linear-gradient(135deg, #f97316, #c2410c) !important; color: #fff !important; box-shadow: 0 3px 10px rgba(249,115,22,0.30); }
.admin-review-reject-btn:hover { background: linear-gradient(135deg, #d3304b, #9a3412) !important; }
.admin-review-actionbar button.is-approve { background: #10b981; color: #fff; }
.admin-review-actionbar button.is-approve:hover { background: #0d9d6f; }
.admin-review-actionbar button.is-reject  { background: #f97316; color: #fff; }
.admin-review-actionbar button.is-reject:hover  { background: #d3304b; }

/* V6.8 patch 191 — sweep bar (videos: scan YouTube for unavailable IDs).
   Less prominent than the bulk-action bar above it; muted blue accent so
   it doesn't compete visually with approve (green) / reject (red). */
.admin-review-actionbar-sweep {
	margin-top: 8px;
	background: rgba(59,130,246,0.06);
	border-color: rgba(59,130,246,0.18);
}
.admin-review-actionbar-sweep .admin-review-sweep-label {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12.5px; color: rgba(255,255,255,0.74);
}
.admin-review-actionbar-sweep .admin-review-sweep-label .fa {
	color: #93c5fd; font-size: 14px;
}
.admin-review-actionbar-sweep .admin-btn-secondary {
	background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
	color: #fff !important;
	box-shadow: 0 3px 10px rgba(59,130,246,0.30);
}
.admin-review-actionbar-sweep .admin-btn-secondary:hover {
	background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}
html.light-mode .admin-review-actionbar-sweep {
	background: rgba(59,130,246,0.05);
	border-color: rgba(59,130,246,0.16);
}
html.light-mode .admin-review-actionbar-sweep .admin-review-sweep-label {
	color: rgba(0,0,0,0.66);
}

.admin-review-itemlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-review-item {
	display: grid; grid-template-columns: 28px 72px minmax(0,1fr);
	gap: 12px; padding: 12px;
	border-radius: 10px; border: 1px solid rgba(255,255,255,0.07);
	background: rgba(255,255,255,0.03);
	transition: border-color 0.12s ease, background 0.12s ease, transform 0.1s ease;
}
.admin-review-item:hover { border-color: rgba(124,58,237,0.30); }
.admin-review-item--no-thumb { grid-template-columns: 28px minmax(0,1fr); }
.admin-review-item.is-checked {
	border-color: rgba(124,58,237,0.50);
	background: rgba(124,58,237,0.08);
	box-shadow: 0 2px 12px rgba(124,58,237,0.10);
}
.admin-review-item-check { display: flex; align-items: flex-start; padding-top: 4px; }
.admin-review-item-check input { width: 18px; height: 18px; accent-color: #7c3aed; cursor: pointer; }
.admin-review-item-thumb {
	width: 72px; height: 72px; border-radius: 8px;
	overflow: hidden; flex: 0 0 72px;
	background: rgba(124,58,237,0.10); display: flex; align-items: center; justify-content: center;
	font-size: 24px; color: var(--muted, #8a8a99);
}
.admin-review-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-review-item-thumb.is-broken, .admin-review-item-thumb.is-empty { background: rgba(124,58,237,0.10); color: #c4b5fd; }
.admin-review-item-thumb.is-broken { background: rgba(249,115,22,0.10); color: #f97316; }
.admin-review-item-thumb i { font-size: 24px; opacity: 0.8; }
.admin-review-item-body { min-width: 0; }
.admin-review-item-head {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px;
}
.admin-review-item-title { font-weight: 600; font-size: 14px; overflow-wrap: break-word; word-break: normal; line-height: 1.35; }
.admin-review-item-genre {
	font-size: 11px; padding: 2px 8px; border-radius: 999px;
	background: rgba(124,58,237,0.12); color: #c4b5fd;
}
.admin-review-item-id { font-size: 11px; color: var(--muted, #8a8a99); font-family: ui-monospace, monospace; }
.admin-review-item-src { font-size: 11px; color: var(--muted, #8a8a99); }
.admin-review-item-text {
	font-size: 12.5px; color: var(--muted, #8a8a99);
	line-height: 1.45; word-break: break-word;
	max-height: 5.4em; overflow: hidden;
}
.admin-review-options {
	list-style: none; padding: 0; margin: 8px 0 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px;
}
.admin-review-options li {
	display: flex; align-items: center; gap: 7px; min-width: 0;
	padding: 6px 8px; border-radius: 7px;
	background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
	font-size: 12px; line-height: 1.25; color: rgba(255,255,255,0.86);
	word-break: break-word;
}
.admin-review-options li span {
	width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(124,58,237,0.22); color: #ddd6fe;
	font-size: 11px; font-weight: 800;
}
.admin-review-item-rejreason {
	margin-top: 6px; padding: 6px 10px; border-radius: 6px;
	background: rgba(249,115,22,0.10); color: #fdba74; font-size: 12px;
	border-left: 3px solid rgba(249,115,22,0.6);
}

.admin-review-side-card {
	padding: 14px 16px; border-radius: 12px;
	background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
}
.admin-review-side-h {
	margin: 0 0 10px; font-size: 14px;
	display: flex; align-items: center; gap: 8px;
}
.admin-review-side-h i { color: #7c3aed; }
.admin-review-side-detail { font-size: 12px; color: var(--muted, #8a8a99); margin-bottom: 10px; }
.admin-review-reason-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-review-reason-list li {
	display: flex; justify-content: space-between; gap: 8px;
	padding: 6px 10px; border-radius: 6px;
	background: rgba(0,0,0,0.18); font-size: 12.5px;
}
.admin-review-reason-list b { font-weight: 700; color: #f97316; }

.admin-review-lesson-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-review-lesson-list li {
	padding: 8px 10px; border-radius: 8px;
	background: rgba(0,0,0,0.18); font-size: 12.5px;
	border-left: 3px solid rgba(249,115,22,0.6);
}
.admin-review-lesson-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.admin-review-lesson-title { font-weight: 600; overflow-wrap: anywhere; }
.admin-review-lesson-reason { color: #fdba74; font-size: 11px; }

.admin-review-genlog { display: flex; flex-direction: column; gap: 10px; }
.admin-review-genlog-item {
	padding: 8px 10px; border-radius: 8px;
	background: rgba(0,0,0,0.18);
	border-left: 3px solid rgba(255,255,255,0.10);
}
.admin-review-genlog-head { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.admin-review-genlog-stat { font-size: 11.5px; color: var(--muted, #8a8a99); margin-top: 3px; }
.admin-review-genlog-stat b { color: inherit; font-weight: 700; }
.admin-review-genlog-num { color: #fff; font-weight: 700; }
.admin-review-genlog-dot {
	display: inline-block; width: 8px; height: 8px; border-radius: 999px;
	background: rgba(255,255,255,0.20); flex: 0 0 8px;
}
.admin-review-genlog-dot.is-success { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.50); }
.admin-review-genlog-dot.is-empty { background: rgba(255,255,255,0.18); }
.admin-review-genlog-item:has(.admin-review-genlog-dot.is-success) { border-left-color: rgba(16,185,129,0.50); }

.admin-review-empty {
	padding: 36px 20px; text-align: center;
	color: var(--muted, #8a8a99);
	border: 1px dashed rgba(124,58,237,0.20);
	border-radius: 12px;
	background: rgba(124,58,237,0.03);
}
.admin-review-empty i { font-size: 38px; opacity: 0.75; margin-bottom: 10px; display: block; color: #c4b5fd; }
.admin-review-empty h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.92); font-family: 'Space Grotesk', system-ui, sans-serif; }
.admin-review-empty p { margin: 0 0 4px; font-size: 13.5px; }
.admin-review-empty p em { color: #c4b5fd; font-style: normal; font-weight: 600; }

/* ----- Light-mode reskins ----- */
html.light-mode .admin-review-chip { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.22); color: #2a1b4f; }
html.light-mode .admin-review-chip:hover { background: rgba(124,58,237,0.16); }
html.light-mode .admin-review-chip.is-active { color: #fff; }
html.light-mode .admin-review-chip.is-clear { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); color: #6b7280; }
html.light-mode .admin-review-chip-count { background: rgba(239,68,68,0.14); color: #b91c1c; }
html.light-mode .admin-review-chip-clear { background: rgba(16,185,129,0.18); color: #047857; }
html.light-mode .admin-review-cathead { background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(34,197,94,0.04)); border-color: rgba(124,58,237,0.20); }
html.light-mode .admin-review-cathead-title h2 i { color: #5b21b6; }
html.light-mode .admin-review-statpill { background: #fff; border-color: rgba(0,0,0,0.07); }
html.light-mode .admin-review-statpill-lbl { color: #6b7280; }
html.light-mode .admin-review-statpill.is-pending .admin-review-statpill-val { color: #b45309; }
html.light-mode .admin-review-statpill.is-approved .admin-review-statpill-val { color: #047857; }
html.light-mode .admin-review-statpill.is-rejected .admin-review-statpill-val { color: #b91c1c; }
html.light-mode .admin-review-statustab { color: #4b5563; }
html.light-mode .admin-review-statustab.is-active { background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.22); color: #2a1b4f; }
html.light-mode .admin-review-actionbar { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
html.light-mode .admin-review-selcount { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.22); color: #5b21b6; }
html.light-mode .admin-review-reject-group { background: rgba(249,115,22,0.04); border-color: rgba(249,115,22,0.20); }
html.light-mode .admin-review-reason-select, html.light-mode .admin-review-reason-text { background: #fff; border-color: rgba(0,0,0,0.12); color: #1a1a1a; }
html.light-mode .admin-review-item { background: #fff; border-color: rgba(0,0,0,0.07); }
html.light-mode .admin-review-item:hover { border-color: rgba(124,58,237,0.40); }
html.light-mode .admin-review-item.is-checked { background: rgba(124,58,237,0.04); border-color: rgba(124,58,237,0.45); }
html.light-mode .admin-review-item-thumb { background: rgba(124,58,237,0.08); }
html.light-mode .admin-review-item-genre { background: rgba(124,58,237,0.10); color: #5b21b6; }
html.light-mode .admin-review-options li { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06); color: #2a1f4a; }
html.light-mode .admin-review-options li span { background: rgba(124,58,237,0.12); color: #5b21b6; }
html.light-mode .admin-review-side-card { background: #fff; border-color: rgba(0,0,0,0.07); }
html.light-mode .admin-review-reason-list li, html.light-mode .admin-review-lesson-list li { background: rgba(0,0,0,0.04); }
html.light-mode .admin-review-genlog-item { background: rgba(0,0,0,0.03); }
html.light-mode .admin-review-empty { background: rgba(124,58,237,0.04); border-color: rgba(124,58,237,0.22); }
html.light-mode .admin-review-empty h4 { color: #2a1b4f; }
html.light-mode .admin-review-empty i { color: #7c3aed; }
html.light-mode .admin-review-gen-hint { color: #6b7280; }
html.light-mode .admin-stat-tile-link:hover { background: rgba(124,58,237,0.06); }

/* ----- Mobile collapse ----- */
@media (max-width: 880px) {
	.admin-review-main { grid-template-columns: 1fr; }
	.admin-review-sidecol { order: 2; }
	.admin-review-cathead {
		grid-template-columns: 1fr;
		grid-template-areas:
			"title"
			"stats"
			"gen";
	}
	.admin-review-genform { align-items: stretch; }
	.admin-review-genform button.admin-review-gen-btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
	.admin-review-item { grid-template-columns: 26px 56px minmax(0,1fr); }
	.admin-review-item-thumb { width: 56px; height: 56px; flex-basis: 56px; }
	.admin-review-cathead { padding: 12px; }
	.admin-review-cathead-stats { gap: 6px; grid-template-columns: repeat(2, 1fr); }
	.admin-review-statpill { padding: 8px 9px; }
	.admin-review-statpill-val { font-size: 16px; }
	.admin-review-actionbar { padding: 8px; gap: 6px; }
	.admin-review-reason-text { min-width: 0; flex: 1 1 100%; }
	.admin-review-reject-group { flex-basis: 100%; }
	.admin-review-approve-btn { flex: 1 1 auto; justify-content: center; }
	.admin-review-empty { padding: 24px 14px; }
	.admin-review-empty i { font-size: 30px; }
	.admin-review-empty h4 { font-size: 14px; }
}

/* ============================================================
   V6.8 patch 167 — Header re-layout + coin balance in notif popout
   ============================================================
   User ask (revised v5): "For desktop, keep logo left aligned. Leave
   mobile as is. Update homepage, register, etc. to follow as well."

   The DOM source order inside `.navbar` is:
     1. <a> logo
     2. .navbar-toggler (mobile hamburger; hidden ≥992px)
     3. .navbar-collapse (the nav links)
     4. .weird-nav-actions (search + bell — logged-in only)
   We use flex `order` to lay them out visually as:
     MOBILE:  hamburger (LEFT) | logo (CENTER, absolute) | actions (RIGHT)
              [collapse panel wraps below, full-width, when opened]
     DESKTOP: logo (LEFT) | nav-collapse (justified RIGHT) | actions (RIGHT)

   IMPORTANT: the absolutely-positioned mobile logo is anchored at
   top:32px instead of top:50%. When the mobile hamburger is tapped,
   the .navbar-collapse expands and the `.navbar` (flex-wrap: wrap)
   grows tall. top:50% would then drag the logo down into the nav
   menu; top:32px keeps it pinned to the middle of the first 64px row.

   The coin pill that used to live inside .weird-nav-actions was moved
   into #weirdNotifPopout as a hero block (see header.php / header2.php).

   Logged-out pages (login.php, register.php, forgot.php, terms.php,
   privacy.php) share the same `#sticky-header .navbar` structure so
   they inherit the same layout automatically.
   ============================================================ */

/* --- Navbar layout: nav LEFT, logo CENTER, icons RIGHT --- */
#sticky-header .navbar {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	position: relative;
	min-height: 64px;
}
/* Logo wrapper. Anchored to the middle of the top 64px row so it
   stays put even when the mobile collapse panel expands the navbar. */
#sticky-header .navbar > a:first-child {
	order: 2 !important;
	position: absolute;
	left: 50%;
	top: 32px;
	transform: translate(-50%, -50%);
	margin: 0 !important;
	z-index: 1;
	pointer-events: auto;
}
#sticky-header .navbar > a:first-child .navbar-brand-logo {
	display: inline-block;
	vertical-align: middle;
}
/* Mobile: hamburger toggler on the LEFT. */
#sticky-header .navbar-toggler {
	order: 1 !important;
	margin-left: 0 !important;
	margin-right: auto !important;
	flex: 0 0 auto !important;
}
/* Search + notif group sits on the RIGHT. */
#sticky-header .weird-nav-actions {
	order: 3 !important;
	margin-left: auto !important;
	margin-right: 0 !important;
	flex: 0 0 auto !important;
}
/* Logged-out pages (login.php / register.php / forgot.php /
   terms.php / privacy.php / index.php) render a `.theme-toggle-mobile`
   button between the logo and the hamburger in DOM order. Without an
   explicit `order`, it defaults to `0` and ends up clustered near
   the centered logo. Anchor it to the FAR RIGHT (the same slot the
   logged-in pages use for `.weird-nav-actions`) so it doesn't overlap
   the logo on phones. Logged-in pages don't render this button, so
   there's no conflict with `.weird-nav-actions`. */
#sticky-header .theme-toggle-mobile {
	order: 3 !important;
	margin-left: auto !important;
	margin-right: 0 !important;
	flex: 0 0 auto !important;
}
/* Collapse panel drops below as a full-width tray on mobile.
   flex-basis:100% forces it to wrap to its own row and not steal
   horizontal space from the top row. */
#sticky-header .navbar-collapse {
	order: 4 !important;
	flex-basis: 100% !important;
}

/* Desktop (≥992px): hamburger hidden; LOGO sits on the LEFT, the rest
   (nav links + icons) is pushed to the RIGHT. This applies to both the
   logged-in headers (header.php / header2.php) and the logged-out pages
   (login.php, register.php, forgot.php, terms.php, privacy.php, etc.)
   since they all share `#sticky-header .navbar`. */
@media (min-width: 992px) {
	#sticky-header .navbar > a:first-child {
		position: static;
		transform: none;
		top: auto;
		order: 1 !important;
		flex: 0 0 auto !important;
		text-align: left;
		margin: 0 !important;
		margin-right: 24px !important;
		z-index: auto;
	}
	#sticky-header .navbar-collapse {
		order: 2 !important;
		flex: 1 1 auto !important;
		flex-basis: auto !important;
		width: auto !important;
		margin-top: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		justify-content: flex-end;
	}
	#sticky-header .weird-nav-actions {
		order: 3 !important;
		flex: 0 0 auto !important;
		justify-content: flex-end;
		margin-left: 12px !important;
	}
	#sticky-header .navbar-nav {
		margin-left: auto !important;
		margin-right: 0 !important;
		flex-direction: row !important;
	}
	/* Bootstrap's ml-auto already pushes the nav UL to the right within
	   the collapse column — keep that behavior on desktop. */
	#sticky-header .navbar-nav.ml-auto { margin-left: auto !important; margin-right: 0 !important; }
	/* Prevent multi-word link labels (e.g. "Sign Out", "Messages (0)")
	   from wrapping to two lines when the nav-link container is tight. */
	#sticky-header .navbar-nav .nav-link { white-space: nowrap; }
}

/* --- Coin balance block for the profile/avatar popout --- */
.weird-notif-coin {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	margin: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(245,158,11,0.16));
	border: 1px solid rgba(124,58,237,0.32);
	color: var(--text-primary, #fff);
	text-decoration: none !important;
	box-shadow: 0 10px 24px -14px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	margin-bottom: 12px;
}
.weird-notif-coin:hover,
.weird-notif-coin:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(124,58,237,0.55);
	box-shadow: 0 14px 28px -14px rgba(124,58,237,0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
	outline: none;
}
.weird-notif-coin-ic {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: rgba(245,158,11,0.18);
	color: #f59e0b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex: 0 0 auto;
	text-shadow: 0 0 14px rgba(245,158,11,0.55);
}
.weird-notif-coin-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	min-width: 0;
	flex: 1 1 auto;
}
.weird-notif-coin-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.68);
	margin-bottom: 4px;
}
.weird-notif-coin-val {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	letter-spacing: -0.01em;
}
.weird-notif-coin-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255,255,255,0.85);
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.10);
	padding: 6px 10px;
	border-radius: 999px;
	flex: 0 0 auto;
}
.weird-notif-coin:hover .weird-notif-coin-cta,
.weird-notif-coin:focus-visible .weird-notif-coin-cta {
	background: rgba(124,58,237,0.32);
	border-color: rgba(124,58,237,0.55);
	color: #fff;
}
.weird-avatar-popout .weird-avatar-coin {
	margin: 2px 0 4px;
	padding: 10px 11px;
	gap: 10px;
	border-radius: 13px;
}
.weird-avatar-popout .weird-notif-coin-ic {
	width: 34px;
	height: 34px;
	font-size: 15px;
}
.weird-avatar-popout .weird-notif-coin-label {
	font-size: 10px;
	margin-bottom: 3px;
}
.weird-avatar-popout .weird-notif-coin-val {
	font-size: 18px;
}
.weird-avatar-popout .weird-notif-coin-cta {
	padding: 5px 9px;
	font-size: 12px;
}

/* Light-mode parallel. */
html.light-mode .weird-notif-coin {
	background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(245,158,11,0.16));
	border-color: rgba(124,58,237,0.24);
	color: #2a1f4a;
}
html.light-mode .weird-notif-coin-label { color: #6b5e8f; }
html.light-mode .weird-notif-coin-val   { color: #2a1f4a; }
html.light-mode .weird-notif-coin-ic    { background: rgba(245,158,11,0.20); color: #b45309; text-shadow: none; }
html.light-mode .weird-notif-coin-cta   { background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.22); color: #4b2fb3; }
html.light-mode .weird-notif-coin:hover .weird-notif-coin-cta,
html.light-mode .weird-notif-coin:focus-visible .weird-notif-coin-cta {
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	border-color: transparent;
	color: #fff;
}

/* Tighten the coin block on mobile. */
@media (max-width: 600px) {
	.weird-notif-coin { padding: 12px 14px; gap: 10px; margin-bottom: 10px; }
	.weird-notif-coin-ic { width: 36px; height: 36px; font-size: 15px; }
	.weird-notif-coin-val { font-size: 19px; }
	.weird-notif-coin-cta { padding: 5px 9px; font-size: 12px; }
}

/* Coin-pulse flash compatibility — the .weird-notif-coin-val element still
   gets WeirdPulse's `coin-pulse-flash` class on update; nothing to do here
   beyond letting the existing keyframe (defined earlier) take effect. */

/* ============================================================
   V6.8 patch 169 — inline-quiz card header alignment
   ============================================================
   The quiz-head row in `.discover-quiz-card` lays out:
     [badge] [progress] [coins] [accordion-toggle]
   In the "ongoing" mode (Never-Have-I-Ever, etc.) `.discover-quiz-progress`
   is hidden (patch 168), so all three remaining items previously clustered
   on the LEFT with only `gap: 12px` between them. That made the card feel
   left-heavy with a big empty right side.

   New layout:
     • DESKTOP (≥992px): badge LEFT, coins + accordion RIGHT. A
       `margin-left: auto` on `.discover-quiz-coins` pushes it (and the
       toggle that follows) to the right edge of the row. Taste-mode is
       unaffected because the progress bar already takes `flex: 1` and
       eats the free space before the auto-margin can.
     • MOBILE / TABLET (≤991px): badge LEFT, coins truly CENTERED in the
       row, accordion stays anchored RIGHT. Implemented with a 3-column
       grid (`1fr auto 1fr`) so the coin pill is centered relative to the
       container midpoint regardless of how wide the badge gets. Only
       applied to `.discover-quiz-card-ongoing` so the taste card keeps
       its flex layout for the progress bar.
   ============================================================ */

/* Desktop: anchor coins (and the toggle that follows) to the right of the
   header row. Works in both modes — in taste mode the flex:1 progress eats
   the free space first so this is a no-op there. */
.discover-quiz-head .discover-quiz-coins { margin-left: auto; }

/* Mobile / tablet (≤991px), ongoing card only: use a compact grid so
	Skip stays left, the coin pill stays right, and the toggle stays tucked
	at the far edge without wrapping the row. */
@media (max-width: 991px) {
	.discover-quiz-card-ongoing .discover-quiz-head {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) auto auto;
		column-gap: 12px;
		row-gap: 12px;
		align-items: center;
	}
	.discover-quiz-card-ongoing .discover-quiz-head .discover-quiz-badge,
	.discover-quiz-card-ongoing .discover-quiz-head .discover-quiz-next {
		grid-column: 1;
		justify-self: start;
	}
	.discover-quiz-card-ongoing .discover-quiz-head .discover-quiz-progress {
		grid-column: 2;
		justify-self: center;
		display: inline-flex !important;
		min-width: 0 !important;
		width: auto;
	}
	.discover-quiz-card-ongoing .discover-quiz-head .discover-quiz-coins {
		grid-column: 3;
		justify-self: end;
		display: inline-flex !important;
		margin: 0 !important;  /* override desktop margin-left:auto */
	}
	.discover-quiz-card-ongoing .discover-quiz-head .discover-quiz-toggle {
		grid-column: 4;
		justify-self: end;
		margin: 0 !important;  /* override base margin-left: 4px */
	}
}

@media (max-width: 640px) {
	.discover-section-head-actions {
		width: 100%;
		margin-left: 0;
	}
}

/* ============================================================
   V6.8 patch 169.4 — "Stats" accordion on discover.php greet card
   ============================================================
   The `<details class="discover-greet-stats-details">` toggle never
   appeared to do anything because:

     (1) `.discover-greet-combined .discover-greet-stats { display:
         inline-flex !important; }` overrode the native `<details>`
         behavior of hiding non-summary children when closed. Result:
         the stat pills were ALWAYS rendered, just pushed past the
         right edge of the horizontally-scrollable rail. Tapping the
         summary flipped `[open]` but the visible state was unchanged.

     (2) On mobile (390px) the opened panel sat at x=240..594 — the
         third pill (coins) at x=486..602 was always off-viewport,
         and discovering it required a horizontal swipe of the rail
         that most users wouldn't think to do.

   Fix:
     • Hide the panel when closed (so the first tap actually reveals
       something new on every viewport).
     • On mobile/tablet (≤991px), drop the opened panel into a wrapped
       row UNDERNEATH the summary chip so all three pills appear
       inline without a horizontal swipe. Implemented by letting the
       rail wrap and the `<details>` element grow to full width when
       open; the summary stays at its natural pill size.
   ============================================================ */

/* All viewports: hide the panel when closed so the toggle actually
   shows/hides content. */
.discover-greet-stats-details:not([open]) .discover-greet-stats {
	display: none !important;
}

/* Mobile / tablet: when opened, the panel wraps onto its own row(s)
   below the summary chip instead of overflowing the rail. */
@media (max-width: 991px) {
	/* Let the rail wrap so the opened details can take a new row. */
	.discover-greet-rail {
		flex-wrap: wrap !important;
	}
	/* When open, the details element spans the full width of the rail
	   and stacks summary + panel vertically. Closed-state stays at the
	   default inline-flex pill so the summary fits inline with the chips. */
	.discover-greet-stats-details[open] {
		display: flex !important;
		flex-direction: column !important;
		flex: 1 1 100% !important;
		align-items: flex-start !important;
		gap: 8px !important;
	}
	.discover-greet-stats-details[open] .discover-greet-stats {
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: flex-start !important;
		gap: 6px !important;
		margin: 0 !important;
		width: 100% !important;
	}
}

/* ============================================================
   V6.8 patch 169.5 — Subtle "X / Y" counter on the Daily Challenge bar
   ============================================================
   Without a count, users couldn't tell how many more items they needed
   to rate to complete the challenge — the progress bar alone is too
   abstract ("am I at 8 or 18?"). Added a small muted "X / Y" element
   sitting on the same row as the "DAILY CHALLENGE" eyebrow, right-
   aligned. Same pattern for both surfaces:
     • Inline DC strip inside the greet card (default Stream tab)
     • Standalone banner (non-default filters)

   Subtle by design:
     • ~10.5px (smaller than the eyebrow's 11px)
     • Roughly half the opacity of the eyebrow color
     • Tabular numerals so it never reflows as the count climbs
     • Hidden via the existing .is-done / .discover-dc-banner-done
       modifier so the eyebrow's " · Complete" suffix stands alone.

   Reuses the [data-dc-progress-num] hook in header.php WeirdPulse JS
   (introduced in patch 163 but never previously rendered anywhere on
   discover.php) so the number ticks up live after every inline rating.
   ============================================================ */

/* Head row: eyebrow on the left, count on the right. */
.discover-dc-banner-head,
.discover-greet-dc-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 2px;
}
/* Eyebrow inside the head row inherits its own size; just collapse the
   bottom margin so the head row controls spacing instead of doubling. */
.discover-dc-banner-head .discover-dc-banner-eyebrow,
.discover-greet-dc-head .discover-greet-dc-eyebrow {
	margin-bottom: 0;
}
/* The count itself — muted, monospaced numerals, never reflows. */
.discover-dc-banner-count,
.discover-greet-dc-count {
	font-size: 10.5px;
	font-weight: 600;
	color: rgba(196,181,253,0.55);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	flex: 0 0 auto;
	line-height: 1;
	white-space: nowrap;
}
/* When the challenge is done, the eyebrow already says "· Complete";
   hide the now-redundant "20 / 20" so the bar looks clean. */
.discover-dc-banner-done .discover-dc-banner-count,
.discover-greet-dc.is-done .discover-greet-dc-count {
	display: none;
}
/* Light mode: drop saturation, keep muted. */
html.light-mode .discover-dc-banner-count,
html.light-mode .discover-greet-dc-count {
	color: rgba(109,40,217,0.55);
}

/* ============================================================
   V6.8 patch 169.6 — Stats popover anchored to the greeting name
   ============================================================
   Replaces the "Stats" accordion that used to live in the greet rail
   (patches 162–169.4). The accordion was always either off-screen on
   mobile or competing with the action chips for horizontal space, and
   stats are passive information not an action — so they don't belong
   in the action rail.

   New UX: a tiny chart-bar icon button immediately after the user's
   name. Tap/click opens a tooltip-style popover anchored above the
   icon, containing the 3 stat pills. Pure CSS using native <details>;
   no JS needed for the toggle. Live-update counters still work via
   the existing [data-rated-counter] / [data-match-counter] / 
   [data-coin-counter] hooks (header.php WeirdPulse).

   Also: at ≤991px viewports the greeting text and the chip rail both
   center horizontally per user request ("center all in mobile view").
   Desktop layout (left-aligned text, right-aligned rail per patch 169)
   is preserved.
   ============================================================ */

/* --- Popover trigger button (the small chart-bar circle by the name) --- */
.discover-greet-stats-pop {
	display: inline-block;
	position: relative;
	margin-left: 8px;
	vertical-align: middle;
	z-index: 120;
}
.discover-greet-stats-pop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(167,139,250,0.16);
	color: #c4b5fd;
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	border: 1px solid rgba(167,139,250,0.28);
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
	vertical-align: middle;
	list-style: none;
}
.discover-greet-stats-pop-btn::-webkit-details-marker { display: none; }
.discover-greet-stats-pop-btn::marker { content: ''; }
.discover-greet-stats-pop-btn:hover,
.discover-greet-stats-pop-btn:focus-visible,
.discover-greet-stats-pop[open] .discover-greet-stats-pop-btn {
	background: rgba(167,139,250,0.30);
	color: #f5e3ff;
	border-color: rgba(167,139,250,0.52);
	outline: none;
}
.discover-greet-stats-pop[open] .discover-greet-stats-pop-btn {
	transform: translateY(-1px);
}

/* --- Tooltip-like floating panel above the trigger --- */
.discover-greet-stats-pop-panel {
	position: absolute;
	/* V6.8 patch 169.6.1 — pop BELOW the trigger instead of above. The
	   greet card sits at the top of the viewport, so popping up runs the
	   panel off-screen with nothing to anchor it visually. Popping down
	   anchors the panel under the name in the open space below the
	   greeting tagline, which still reads as "tooltip-like" while staying
	   on-screen. */
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 5000;
	/* V6.8 patch 169.6.2 — panel sizing.
	   `width: max-content` collapsed to ~26px on mobile because the absolute
	   panel's containing block is the inline-block <details> parent (button-
	   width). An explicit min-width + viewport-clamped max-width is
	   predictable across breakpoints. 420px is wide enough to keep the 3
	   stat pills inline on desktop (content measures ~385px + a comfort
	   buffer that survives slight font-rendering variance); mobile clamps
	   to the viewport and the panel wraps to multiple rows when forced. */
	min-width: min(420px, calc(100vw - 24px));
	max-width: calc(100vw - 24px);
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(16,31,61,0.97);
	border: 1px solid rgba(167,139,250,0.32);
	box-shadow: 0 18px 40px -18px rgba(0,0,0,0.55), 0 0 0 1px rgba(167,139,250,0.10);
	line-height: normal;
	animation: discoverGreetStatsPopFade 160ms ease;
}
/* CRITICAL: hide the panel when <details> is closed. The display: flex
   !important above overrides the native <details>-hides-children rule,
   so without this :not([open]) override the panel is ALWAYS rendered
   (same bug pattern as patch 169.4's accordion). */
.discover-greet-stats-pop:not([open]) .discover-greet-stats-pop-panel {
	display: none !important;
}
.discover-greet-stats-pop-panel::after {
	/* Upward-pointing tail at the TOP edge of the panel, anchored to the
	   trigger above. */
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-bottom: 8px solid rgba(16,31,61,0.97);
	filter: drop-shadow(0 -1px 0 rgba(167,139,250,0.32));
}
.discover-greet-stats-pop-panel .discover-bar-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(124,58,237,0.18);
	border: 1px solid rgba(167,139,250,0.22);
	color: #f8f7ff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	flex: 0 0 auto;
}
.discover-greet-stats-pop-panel .discover-bar-stat strong { color: #ffffff; font-weight: 700; }
.discover-greet-stats-pop-panel .discover-bar-stat i { color: #c4b5fd; }
@keyframes discoverGreetStatsPopFade {
	from { opacity: 0; transform: translate(-50%, 4px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}
/* On narrow viewports, the panel may wrap onto multiple lines and the
   trigger may be near the centerline (mobile centering), so the panel
   is already clamped to the viewport above. Nothing extra needed here
   — the flex-wrap + min-width clamp handle small screens cleanly. */

/* Light mode */
html.light-mode .discover-greet-stats-pop-btn {
	background: rgba(124,58,237,0.10);
	color: #6d28d9;
	border-color: rgba(124,58,237,0.22);
}
html.light-mode .discover-greet-stats-pop-btn:hover,
html.light-mode .discover-greet-stats-pop-btn:focus-visible,
html.light-mode .discover-greet-stats-pop[open] .discover-greet-stats-pop-btn {
	background: rgba(124,58,237,0.22);
	color: #4c1d95;
	border-color: rgba(124,58,237,0.42);
}
html.light-mode .discover-greet-stats-pop-panel {
	background: #ffffff;
	border-color: rgba(124,58,237,0.22);
	box-shadow: 0 18px 40px -18px rgba(124,58,237,0.30), 0 0 0 1px rgba(124,58,237,0.10);
}
html.light-mode .discover-greet-stats-pop-panel::after {
	border-top-color: #ffffff;
}
html.light-mode .discover-greet-stats-pop-panel .discover-bar-stat {
	background: rgba(124,58,237,0.08);
	border-color: rgba(124,58,237,0.18);
	color: #1f1240;
}
html.light-mode .discover-greet-stats-pop-panel .discover-bar-stat strong { color: #0f0a24; }
html.light-mode .discover-greet-stats-pop-panel .discover-bar-stat i { color: #6d28d9; }

/* --- Mobile-only centering of the greet text + chip rail --- */
@media (max-width: 991px) {
	.discover-greet-combined .discover-greet-text,
	.discover-greet-combined .discover-greet-text .discover-greet-hi,
	.discover-greet-combined .discover-greet-text .discover-greet-tag {
		text-align: center;
	}
	.discover-greet-combined .discover-greet-text .discover-greet-tag {
		justify-content: center;
	}
	.discover-greet-rail,
	.discover-greet-combined .discover-greet-chips {
		justify-content: center !important;
	}
}

/* ============================================================
   V6.8 patch 174 — Admin Review polish (flat catnav + contrast)
   ============================================================
   - .admin-review-catnav: replaces .admin-review-bucketrow.
     One flat row of chips, no bucket labels, alphabetical.
   - Chips inactive-but-pending: bumped text color to white-ish
     so labels read clearly against the dark card background.
   - Chips clear-state: bumped opacity 0.62 → 0.82 so "queue
     clear" categories aren't washed-out illegible.
   - .admin-review-statustab inactive: was 0.65 white, now 0.85
     (Pending/Approved/Rejected tabs are easier to read).
   ============================================================ */
.admin-review-catnav {
	display: flex; flex-wrap: wrap; gap: 7px;
	margin-bottom: 18px;
	padding: 12px 14px;
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
}
.admin-review-catnav .admin-review-chip {
	font-size: 13px;
	color: rgba(255,255,255,0.95);
	background: rgba(124,58,237,0.14);
	border-color: rgba(124,58,237,0.30);
}
.admin-review-catnav .admin-review-chip:hover,
.admin-review-catnav .admin-review-chip:focus {
	background: rgba(124,58,237,0.26);
	border-color: rgba(124,58,237,0.55);
	color: #fff;
}
.admin-review-catnav .admin-review-chip.is-clear {
	background: rgba(255,255,255,0.05);
	border-color: rgba(255,255,255,0.12);
	color: rgba(255,255,255,0.82);
	opacity: 0.82;
}
.admin-review-catnav .admin-review-chip.is-clear:hover {
	opacity: 1;
	background: rgba(124,58,237,0.16);
	border-color: rgba(124,58,237,0.30);
	color: #fff;
}
.admin-review-catnav .admin-review-chip.is-active {
	color: #fff;
	background: linear-gradient(135deg, #7c3aed, #22c55e);
	border-color: transparent;
	box-shadow: 0 2px 12px rgba(124,58,237,0.45);
}

/* Bump inactive status-tab text contrast.
   Old: rgba(255,255,255,0.65)/0.92 hover.
   New: 0.88 inactive, full white on hover. */
.admin-review-statustab {
	color: rgba(255,255,255,0.88) !important;
	font-weight: 600;
}
.admin-review-statustab:hover {
	color: #fff !important;
	background: rgba(124,58,237,0.16) !important;
}
.admin-review-statustab.is-active {
	color: #fff !important;
	background: rgba(124,58,237,0.22) !important;
	border-color: rgba(124,58,237,0.45) !important;
	font-weight: 700;
}

/* Light-mode mirrors for the new catnav. */
html.light-mode .admin-review-catnav {
	background: rgba(0,0,0,0.025);
	border-color: rgba(0,0,0,0.06);
}
html.light-mode .admin-review-catnav .admin-review-chip {
	color: #2a1b4f;
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.25);
}
html.light-mode .admin-review-catnav .admin-review-chip:hover,
html.light-mode .admin-review-catnav .admin-review-chip:focus {
	background: rgba(124,58,237,0.20);
	border-color: rgba(124,58,237,0.40);
}
html.light-mode .admin-review-catnav .admin-review-chip.is-clear {
	color: #4b5563;
	background: rgba(0,0,0,0.04);
	border-color: rgba(0,0,0,0.08);
}
html.light-mode .admin-review-catnav .admin-review-chip.is-active { color: #fff; }
html.light-mode .admin-review-statustab { color: #2a1b4f !important; }
html.light-mode .admin-review-statustab:hover { background: rgba(124,58,237,0.10) !important; color: #2a1b4f !important; }
html.light-mode .admin-review-statustab.is-active { color: #fff !important; background: linear-gradient(135deg, #7c3aed, #22c55e) !important; border-color: transparent !important; }


/* V6.8 patch 176 — categorised avatar picker.
   Chips above the grid filter by data-cat. The picker now holds 4 chunks:
   Portraits (0-75), Monograms (100-125), Bauhaus (126-141), Gradient (142-153).
   Without filtering the grid would be ~130 tiles which is unusable. */
.acct-avatars-chips {
	display: flex; flex-wrap: wrap; gap: 6px;
	margin: 8px 0 12px;
}
.acct-avatars-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: 999px;
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	background: rgba(255,255,255,0.04);
	color: var(--text-secondary, #cbd5e1);
	font-size: 12px; font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.acct-avatars-chip:hover { background: rgba(124,58,237,0.18); border-color: rgba(124,58,237,0.45); color: #fff; transform: translateY(-1px); }
.acct-avatars-chip.is-active {
	background: linear-gradient(135deg, #7c3aed, #22c55e);
	border-color: transparent; color: #fff;
}
.acct-avatars-chip-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 22px; height: 18px; padding: 0 6px;
	border-radius: 999px;
	background: rgba(255,255,255,0.16);
	color: #fff; font-size: 11px; font-weight: 700;
	line-height: 1;
}
.acct-avatars-chip:not(.is-active) .acct-avatars-chip-count {
	background: rgba(124,58,237,0.22); color: var(--text-secondary, #cbd5e1);
}
/* Category filter: hide tiles whose data-cat doesn't match the active one.
   V6.8 patch 179 collapsed the 14-category list back to the 2-category form
   (portrait + interest) after the abstract chunks shipped in patches 176/178
   were retired from the picker.
   V6.8 patch 180 added a third "vibe" category (30 fun/pop archetype icons
   on IDs 400-429) so users can express mood/aesthetic in addition to taste. */
.acct-avatars[data-active-cat="portrait"] .acct-avatar-opt:not([data-cat="portrait"]),
.acct-avatars[data-active-cat="interest"] .acct-avatar-opt:not([data-cat="interest"]),
.acct-avatars[data-active-cat="vibe"]     .acct-avatar-opt:not([data-cat="vibe"]),
.acct-avatars[data-active-cat="mine"]     .acct-avatar-opt:not([data-cat="mine"]) {
	display: none !important;
}
/* With chips, the grid no longer needs the 280px inner-scroll cap. */
.acct-avatars { max-height: none; }
/* Subtle inline note shown when a user is still on a legacy off-brand avatar
   (IDs 100-299). Their saved avatar still loads on profile etc.; the picker
   just no longer lists those IDs so they can transition gracefully. */
.acct-avatars-legacy-note {
	display: flex; align-items: flex-start; gap: 8px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(245,158,11,0.10);
	border: 1px solid rgba(245,158,11,0.30);
	color: var(--text-secondary, #cbd5e1);
	font-size: 13px; line-height: 1.4;
}
.acct-avatars-legacy-note i { color: #f59e0b; margin-top: 2px; }

html.light-mode .acct-avatars-chip {
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.25);
	color: #2a1b4f;
}
html.light-mode .acct-avatars-chip:hover { background: rgba(124,58,237,0.22); }
html.light-mode .acct-avatars-chip.is-active { color: #fff; }
html.light-mode .acct-avatars-chip:not(.is-active) .acct-avatars-chip-count { background: rgba(124,58,237,0.18); color: #2a1b4f; }

/* ============================================================
 * V6.8 patch 177 — Admin > Logs tab
 * Unified change-log viewer styling (dev notes + admin actions).
 * ============================================================ */
.admin-logs-head { margin-bottom: 14px; }

.admin-logs-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 10px;
	padding: 6px;
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 10px;
}
.admin-logs-subnav .admin-subtab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 8px;
	color: rgba(255,255,255,0.88) !important;
	font-weight: 600;
	text-decoration: none;
	background: transparent;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-logs-subnav .admin-subtab:hover { background: rgba(124,58,237,0.14); }
.admin-logs-subnav .admin-subtab.is-active {
	background: rgba(124,58,237,0.22) !important;
	border-color: rgba(124,58,237,0.45);
	color: #fff !important;
}
.admin-logs-subnav .admin-subtab-count {
	font-size: 12px;
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(255,255,255,0.10);
	color: rgba(255,255,255,0.92);
}
.admin-logs-subnav .admin-subtab.is-active .admin-subtab-count {
	background: rgba(255,255,255,0.20);
	color: #fff;
}

.admin-logs-search {
	display: flex;
	gap: 8px;
	margin: 10px 0 14px;
	flex-wrap: wrap;
}
.admin-logs-search-input {
	flex: 1 1 240px;
	min-width: 0;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.04);
	color: #fff;
	font-size: 14px;
}
.admin-logs-search-input::placeholder { color: rgba(255,255,255,0.45); }

.admin-logs-scan-form {
	display: flex;
	align-items: center;
	margin: -4px 0 14px;
}
.admin-logs-scan-form .admin-btn {
	background: rgba(245,158,11,0.10);
	border: 1px solid rgba(245,158,11,0.35);
	color: rgba(253,230,138,0.95);
}
.admin-logs-scan-form .admin-btn:hover {
	background: rgba(245,158,11,0.18);
	border-color: rgba(245,158,11,0.55);
}
html.light-mode .admin-logs-scan-form .admin-btn {
	background: rgba(245,158,11,0.10);
	border-color: rgba(245,158,11,0.40);
	color: #7c2d12;
}

.admin-logs-add {
	margin: 0 0 16px;
	border: 1px solid rgba(124,58,237,0.30);
	background: rgba(124,58,237,0.06);
	border-radius: 10px;
	padding: 10px 14px;
}
.admin-logs-add > summary {
	cursor: pointer;
	font-weight: 600;
	color: rgba(255,255,255,0.95);
	list-style: none;
	padding: 4px 0;
}
.admin-logs-add > summary::-webkit-details-marker { display: none; }
.admin-logs-add > summary::before {
	content: '▸';
	display: inline-block;
	width: 1em;
	transition: transform 0.15s ease;
}
.admin-logs-add[open] > summary::before { transform: rotate(90deg); }
.admin-logs-add-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}
.admin-logs-add-label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: rgba(255,255,255,0.85);
	font-weight: 600;
}
.admin-logs-add-input,
.admin-logs-add-textarea {
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.15);
	background: rgba(0,0,0,0.25);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
}
.admin-logs-add-textarea { resize: vertical; min-height: 80px; }

.admin-logs-empty {
	text-align: center;
	padding: 32px 16px;
	color: rgba(255,255,255,0.55);
}
.admin-logs-empty i { color: rgba(124,58,237,0.55); margin-bottom: 8px; display: block; }

.admin-logs-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.admin-log-entry {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
}
.admin-log-entry.admin-log-dev {
	border-left: 3px solid #f59e0b;
	background: rgba(245,158,11,0.04);
}
.admin-log-entry.admin-log-admin {
	border-left: 3px solid #7c3aed;
}
.admin-log-when {
	font-size: 12px;
	color: rgba(255,255,255,0.55);
	padding-top: 4px;
}
.admin-log-headrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 13px;
}
.admin-log-typepill {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(124,58,237,0.20);
	color: #fff;
}
.admin-log-typepill-dev {
	background: rgba(245,158,11,0.25);
	color: #fde68a;
}
.admin-log-actionpill {
	font-size: 12px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.92);
}
.admin-log-actor { color: rgba(255,255,255,0.65); }
.admin-log-actor strong { color: rgba(255,255,255,0.95); }
.admin-log-target {
	margin-left: auto;
	font-size: 12px;
	color: rgba(255,255,255,0.55);
	padding: 1px 6px;
	background: rgba(255,255,255,0.05);
	border-radius: 4px;
}
.admin-log-summary {
	color: rgba(255,255,255,0.95);
	font-size: 14px;
	line-height: 1.45;
}
.admin-log-details {
	margin: 8px 0 0;
	padding: 8px 10px;
	background: rgba(0,0,0,0.18);
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,0.05);
	color: rgba(255,255,255,0.82);
	font-family: inherit;
	font-size: 13px;
	white-space: pre-wrap;
	word-break: break-word;
}
.admin-log-meta {
	margin-top: 8px;
}
.admin-log-meta > summary {
	cursor: pointer;
	font-size: 11px;
	color: rgba(255,255,255,0.50);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.admin-log-meta-pre {
	margin: 6px 0 0;
	padding: 8px 10px;
	background: rgba(0,0,0,0.25);
	border-radius: 6px;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 11px;
	color: rgba(255,255,255,0.72);
	overflow-x: auto;
}
.admin-logs-footnote {
	margin-top: 10px;
	font-size: 12px;
	color: rgba(255,255,255,0.55);
	text-align: center;
}

@media (max-width: 640px) {
	.admin-log-entry {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.admin-log-when { padding-top: 0; }
	.admin-log-target { margin-left: 0; }
}

/* ----- Light-mode mirrors ----- */
html.light-mode .admin-logs-subnav {
	background: rgba(124,58,237,0.04);
	border-color: rgba(124,58,237,0.12);
}
html.light-mode .admin-logs-subnav .admin-subtab {
	color: #2a1b4f !important;
}
html.light-mode .admin-logs-subnav .admin-subtab:hover {
	background: rgba(124,58,237,0.12);
}
html.light-mode .admin-logs-subnav .admin-subtab.is-active {
	background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
	border-color: rgba(124,58,237,0.55);
	color: #fff !important;
}
html.light-mode .admin-logs-subnav .admin-subtab-count {
	background: rgba(124,58,237,0.14);
	color: #2a1b4f;
}
html.light-mode .admin-logs-subnav .admin-subtab.is-active .admin-subtab-count {
	background: rgba(255,255,255,0.25);
	color: #fff;
}
html.light-mode .admin-logs-search-input,
html.light-mode .admin-logs-add-input,
html.light-mode .admin-logs-add-textarea {
	background: #fff;
	border-color: rgba(124,58,237,0.20);
	color: #1a1a1a;
}
html.light-mode .admin-logs-search-input::placeholder { color: rgba(0,0,0,0.40); }
html.light-mode .admin-logs-add {
	background: rgba(124,58,237,0.05);
	border-color: rgba(124,58,237,0.25);
}
html.light-mode .admin-logs-add > summary { color: #2a1b4f; }
html.light-mode .admin-logs-add-label { color: #2a1b4f; }
html.light-mode .admin-log-entry {
	background: #fff;
	border-color: rgba(0,0,0,0.10);
}
html.light-mode .admin-log-entry.admin-log-dev {
	background: rgba(245,158,11,0.06);
}
html.light-mode .admin-log-when { color: rgba(0,0,0,0.55); }
html.light-mode .admin-log-actionpill {
	background: rgba(124,58,237,0.10);
	color: #2a1b4f;
}
html.light-mode .admin-log-actor { color: rgba(0,0,0,0.60); }
html.light-mode .admin-log-actor strong { color: #1a1a1a; }
html.light-mode .admin-log-target {
	background: rgba(0,0,0,0.05);
	color: rgba(0,0,0,0.55);
}
html.light-mode .admin-log-summary { color: #1a1a1a; }
html.light-mode .admin-log-details {
	background: rgba(0,0,0,0.04);
	border-color: rgba(0,0,0,0.06);
	color: rgba(0,0,0,0.82);
}
html.light-mode .admin-log-meta > summary { color: rgba(0,0,0,0.50); }
html.light-mode .admin-log-meta-pre {
	background: rgba(0,0,0,0.06);
	color: rgba(0,0,0,0.72);
}
html.light-mode .admin-log-typepill {
	background: rgba(124,58,237,0.18);
	color: #2a1b4f;
}
html.light-mode .admin-log-typepill-dev {
	background: rgba(245,158,11,0.20);
	color: #7c2d12;
}
html.light-mode .admin-logs-empty { color: rgba(0,0,0,0.55); }
html.light-mode .admin-logs-footnote { color: rgba(0,0,0,0.55); }

/* ============================================================
   V6.8 patch 169.10 / 169.11 — In-stream question cards
   ============================================================
   The hero `.discover-quiz-card` lives in its own
   `<section class="discover-quiz-wrap">` at the top of discover.php.
   Patch 169.10 also injects slim variants of the card every ~6
   entries inside `.discover-stream`.

   Patch 169.11 — tightened the in-stream variant to a SINGLE grid
   cell so it visually matches surrounding `.discover-card` items
   (220-260px wide on desktop). Options stack vertically, text is
   line-clamped, and the card stays the same height as item cards
   so the masonry-style grid stays tidy.

   Submission/swap behavior: when the card has `data-instream="1"`,
   `submitTasteAnswer()` dissolves it after the answer is recorded
   and triggers `WeirdPulse.refresh()` so coins/matches/rated/dc
   counters update site-wide.
*/
.discover-quiz-card.discover-quiz-card-instream {
	/* Single grid cell — matches `.discover-card` dimensions. */
	padding: 14px 14px 16px;
	border-radius: 16px;
	min-height: 332px;
	box-shadow: 0 4px 12px -6px rgba(124,58,237,0.30);
	background:
		linear-gradient(180deg, rgba(124,58,237,0.12) 0%, rgba(124,58,237,0.04) 100%),
		var(--surface);
	border: 1px solid rgba(124,58,237,0.32);
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: all 0.25s var(--ease, ease);
}
.discover-quiz-card.discover-quiz-card-instream:hover {
	transform: translateY(-3px);
	border-color: rgba(124,58,237,0.55);
	box-shadow: 0 12px 28px -10px rgba(124,58,237,0.45);
}
.discover-quiz-instream-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 2px;
}
.discover-quiz-instream-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(124,58,237,0.22);
	color: #c4b5fd;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	max-width: 52%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.discover-quiz-instream-tag i { font-size: 9px; }
.discover-quiz-instream-reward {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: #fbbf24;
	font-weight: 700;
	font-size: 12px;
	flex: 0 0 auto;
	white-space: nowrap;
}
.discover-quiz-instream-reward i { font-size: 11px; }
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-text {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 6px;
	/* V6.9 patch 203 — question text must never truncate. Removed the
	   4-line -webkit-line-clamp; the card grows to fit. */
	color: var(--text-primary);
}
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-story {
	font-size: 12px;
	color: var(--text-secondary, #94a3b8);
	margin: 0 0 4px;
	/* V6.9 patch 203 — story/setup text is part of the question for
	   formats like Never-Have-I-Ever; show it in full too. */
}
/* Force single-column options regardless of `discover-quiz-options-tiles`
   variant — the narrow card can't fit a 2-up grid of full buttons. */
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 4px;
}
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-opt {
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 10px;
	width: 100%;
	min-height: 0;
}
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-opt-tile {
	/* Image-tile options: shrink to fit narrow card */
	padding: 6px;
	border-radius: 10px;
}
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-opt-tile img {
	width: 100%;
	height: auto;
	max-height: 80px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-foot {
	margin-top: auto;
	display: flex;
	justify-content: flex-end;
}
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-skip {
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 600;
}
.discover-quiz-card.discover-quiz-card-instream .discover-quiz-skip i {
	font-size: 9px;
}
.discover-quiz-instream-thanks {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 6px;
	min-height: 120px;
}
.discover-quiz-instream-thanks-icon {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
	flex: 0 0 auto;
}
.discover-quiz-instream-thanks p {
	margin: 0;
	color: var(--text-primary, #f1f5f9);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}
html.light-mode .discover-quiz-card.discover-quiz-card-instream {
	background:
		linear-gradient(180deg, rgba(124,58,237,0.08) 0%, rgba(124,58,237,0.02) 100%),
		#ffffff;
	border-color: rgba(124,58,237,0.22);
}
html.light-mode .discover-quiz-instream-tag {
	background: rgba(124,58,237,0.14);
	color: #6d28d9;
}
html.light-mode .discover-quiz-card.discover-quiz-card-instream .discover-quiz-story {
	color: #64748b;
}
html.light-mode .discover-quiz-instream-thanks p { color: #0f172a; }
.discover-quiz-card-instream.is-answered {
	align-self: start !important;
	height: auto !important;
	min-height: 0 !important;
	justify-content: flex-start !important;
}
.discover-quiz-card-instream.is-answered .discover-quiz-body {
	justify-content: flex-start !important;
	gap: 0 !important;
}
.discover-quiz-card-instream.is-answered .discover-quiz-instream-head {
	margin-bottom: 8px !important;
}
.discover-quiz-card-instream.is-answered .discover-quiz-instream-reward.is-earned {
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(251,191,36,.10);
	border: 1px solid rgba(251,191,36,.28);
}
.discover-quiz-card-instream.is-answered .discover-quiz-instream-thanks {
	display: grid !important;
	grid-template-columns: 40px minmax(0, 1fr) !important;
	grid-template-areas: "icon copy" "icon actions" !important;
	align-items: center;
	gap: 8px 12px;
	min-height: 0 !important;
	padding: 12px !important;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(124,58,237,.10));
	border: 1px solid rgba(74,222,128,.22);
}
.discover-quiz-card-instream.is-answered .discover-quiz-instream-thanks-icon {
	grid-area: icon;
	width: 40px;
	height: 40px;
	font-size: 20px;
}
.discover-quiz-instream-thanks-copy {
	grid-area: copy;
	display: grid;
	gap: 2px;
	min-width: 0;
}
.discover-quiz-instream-thanks-copy strong {
	color: var(--text-primary, #f8fafc);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.15;
}
.discover-quiz-instream-thanks-copy span {
	color: var(--text-secondary, #cbd5e1);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.35;
}
.discover-quiz-card-instream.is-answered .discover-quiz-instream-actions {
	grid-area: actions;
	justify-content: flex-start !important;
	margin-top: 2px !important;
	gap: 8px !important;
}
.discover-quiz-card-instream.is-answered .discover-quiz-reward-link,
.discover-quiz-card-instream.is-answered button.discover-quiz-reward-link {
	min-height: 32px !important;
	padding: 6px 10px !important;
	font-size: 12px !important;
}
.discover-wrap-stream #discover-stream.discover-stream[data-mixed="1"] > .discover-quiz-card-instream.is-answered,
.discover-wrap-signal-board #discover-stream.discover-stream > .discover-quiz-card-instream.is-answered {
	align-self: start !important;
	height: auto !important;
	min-height: 0 !important;
}
html.light-mode .discover-quiz-card-instream.is-answered .discover-quiz-instream-thanks {
	background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(124,58,237,.07));
	border-color: rgba(22,163,74,.22);
}
html.light-mode .discover-quiz-instream-thanks-copy strong { color: #0f172a; }
html.light-mode .discover-quiz-instream-thanks-copy span { color: #475569; }

/* ============================================================
   V6.8 patch 179 — Admin panel mobile reflow pass
   ============================================================
   The admin panel was largely designed desktop-first. This block
   tightens every surface (tabs, sub-tabs, head stats, tables,
   forms, log entries, review queue, support pane) to stay readable
   and tappable on phones. Also tucks the previously-top-level
   "Admin users" tab into the Users sub-nav (see admin.php).
   ------------------------------------------------------------ */

/* Make every admin-table-wrap that hosts a wide table scroll on
   touch instead of overflowing the viewport. */
.admin-table-wrap { -webkit-overflow-scrolling: touch; }

/* The top tab-rail can get tall when all 7 tabs wrap. On phones
   we switch to a single horizontally-scrolling row so the rest
   of the page (sections, content) shows up immediately. */
@media (max-width: 700px) {
	body.admin-wrap, body.admin-wrap-narrow { padding-left: 8px; padding-right: 8px; }
	.admin-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin: 10px -8px;
		padding: 0 8px 4px;
		scrollbar-width: none;
	}
	.admin-tabs::-webkit-scrollbar { display: none; }
	.admin-tab {
		flex: 0 0 auto;
		padding: 8px 12px;
		font-size: 12.5px;
	}
	.admin-tab-count { font-size: 10px; min-width: 18px; padding: 0 5px; }

	.admin-subtabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0.35rem;
		gap: 0.3rem;
		scrollbar-width: none;
	}
	.admin-subtabs::-webkit-scrollbar { display: none; }
	.admin-subtab { flex: 0 0 auto; padding: 0.4rem 0.7rem; font-size: 0.85rem; }
	.admin-subtab-count { font-size: 10px; }

	/* Section cards: tighter inner padding so content actually breathes */
	.admin-section { padding: 14px !important; }
	.admin-section-h { font-size: 17px; }
	.admin-section-sub { font-size: 13px; }
	.admin-section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.admin-section-stats { font-size: 11.5px; line-height: 1.5; }

	/* Head stats: 1 column at the smallest sizes, 2 at narrow-mid */
	.admin-head-stats { gap: 8px; grid-template-columns: repeat(2, 1fr); }
	.admin-stat-tile { padding: 10px; }
	.admin-stat-val { font-size: 18px; }
	.admin-stat-label { font-size: 10px; }

	/* Promote/demote/inline form: stack input + button */
	.admin-promote-form {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.admin-promote-form .admin-promote-input,
	.admin-promote-form .admin-btn { width: 100%; }

	/* Users toolbar: stack search + sort + button */
	.admin-users-toolbar {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.admin-users-toolbar .admin-q-search-input,
	.admin-users-toolbar .admin-users-sort-select { width: 100%; min-width: 0; }
	.admin-users-toolbar .admin-users-sort-label { width: 100%; }

	/* Logs toolbar: search box + filter + clear stack vertically */
	.admin-logs-search { flex-direction: column; align-items: stretch; gap: 8px; }
	.admin-logs-search .admin-logs-search-input { width: 100%; }
	.admin-logs-scan-form { margin-top: -2px; }
	.admin-logs-scan-form .admin-btn { width: 100%; justify-content: center; }

	/* Default tap target ≥44px for primary buttons on mobile */
	.admin-section .admin-btn,
	.admin-section .admin-btn-primary,
	.admin-section .admin-btn-secondary { min-height: 40px; }

	/* The default mobile-table rule (display:block) renders one row
	   per "cell" which is too noisy for the users table. Restore a
	   compact layout: avatar+name on top line, email muted under it,
	   coins / answers / last-activity inline on a third line. */
	.admin-users-table { display: block; }
	.admin-users-table thead { display: none; }
	.admin-users-table tbody { display: block; }
	.admin-users-table tbody tr {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"avatar   identity"
			"avatar   email"
			"meta     meta";
		column-gap: 10px;
		row-gap: 2px;
		padding: 12px 0;
		border-bottom: 1px solid rgba(255,255,255,0.07);
		align-items: start;
	}
	.admin-users-table tbody td { display: block; padding: 0; }
	.admin-users-table tbody td:nth-child(1) { grid-area: identity; }
	.admin-users-table tbody td:nth-child(1) .admin-users-av { grid-area: avatar; }
	.admin-users-table tbody td:nth-child(1) .admin-users-cell { gap: 8px; }
	.admin-users-table tbody td:nth-child(2) {
		grid-area: email;
		color: rgba(255,255,255,0.55);
		font-size: 12px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.admin-users-table tbody td:nth-child(3),
	.admin-users-table tbody td:nth-child(4),
	.admin-users-table tbody td:nth-child(5) {
		grid-area: auto;
		display: inline-block;
		margin-right: 14px;
		font-size: 12.5px;
	}
	.admin-users-table tbody td:nth-child(3)::before { content: "Coins: "; opacity: 0.55; }
	.admin-users-table tbody td:nth-child(4)::before { content: "Answers: "; opacity: 0.55; }
	.admin-users-table tbody td:nth-child(5)::before { content: "Active: "; opacity: 0.55; }
	html.light-mode .admin-users-table tbody td:nth-child(2) { color: rgba(42,31,74,0.62); }

	/* Pager */
	.admin-users-pager {
		display: flex;
		gap: 8px;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		margin-top: 14px;
	}

	/* Review queue: long category nav becomes a horizontal scroller */
	.admin-review-catnav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}
	.admin-review-catnav::-webkit-scrollbar { display: none; }
	.admin-review-catnav > * { flex: 0 0 auto; }

	/* Logs: hide the metadata <pre> by default and let user expand */
	.admin-log-entry { padding: 10px; }
	.admin-log-headrow {
		flex-wrap: wrap;
		gap: 6px;
	}
	.admin-log-when { font-size: 11px; }
	.admin-log-details {
		font-size: 11.5px;
		max-height: 140px;
		overflow: auto;
	}
	.admin-log-summary { font-size: 13px; }
	.admin-log-target { font-size: 11px; }

	/* Support pane: stack the two-column layout */
	.admin-support-shell,
	.admin-support-grid { grid-template-columns: 1fr !important; gap: 12px; }
	.admin-support-list { max-height: 50vh; overflow: auto; }
	.admin-support-thread { padding: 10px !important; }
	/* When no thread is selected on mobile, don't reserve a giant empty pane */
	.admin-support-empty,
	.admin-support-thread-empty { padding: 20px 12px !important; min-height: 0 !important; }

	/* Review queue: 2-col main grid → single column on mobile */
	.admin-review-main { grid-template-columns: 1fr !important; }
	.admin-review-sidecol { order: 2; }

	/* Review status tabs: improve contrast on mobile (the inactive tabs
	   blended into the background because their border is transparent
	   and their text alpha was 0.65). */
	.admin-review-statusrow {
		gap: 6px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}
	.admin-review-statusrow::-webkit-scrollbar { display: none; }
	.admin-review-statustab {
		flex: 0 0 auto;
		padding: 8px 12px;
		font-size: 13px;
		border: 1px solid rgba(124,58,237,0.20) !important;
		background: rgba(124,58,237,0.06) !important;
		border-radius: 8px;
	}

	/* Metrics tables: render each row as a card with the date as a header
	   and labeled value pairs in a 2-col grid below. The .admin-table generic
	   mobile rule (display:block per cell) is overridden here. */
	.admin-metrics-table { display: block; border: 0; }
	.admin-metrics-table thead { display: none; }
	.admin-metrics-table tbody { display: block; }
	.admin-metrics-table tbody tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 12px;
		padding: 10px 0;
		border-bottom: 1px solid rgba(255,255,255,0.07);
	}
	.admin-metrics-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 8px;
		padding: 0;
		border: 0;
		font-size: 13px;
	}
	.admin-metrics-table tbody td:first-child {
		grid-column: 1 / -1;
		font-weight: 600;
		margin-bottom: 4px;
		padding-bottom: 4px;
		border-bottom: 1px dashed rgba(255,255,255,0.08);
		color: rgba(255,255,255,0.92);
	}
	.admin-metrics-table tbody td:first-child::before { display: none; }
	.admin-metrics-table tbody td:not(:first-child)::before {
		content: attr(data-label);
		opacity: 0.55;
		font-size: 11.5px;
		font-weight: 400;
		text-transform: none;
		letter-spacing: 0;
		flex: 0 0 auto;
	}
	.admin-metrics-table tbody td[colspan] {
		grid-column: 1 / -1;
		justify-content: flex-start;
		font-size: 12.5px;
	}
	.admin-metrics-table tbody td[colspan]::before { display: none; }
	html.light-mode .admin-metrics-table tbody tr { border-bottom-color: rgba(0,0,0,0.08); }
	html.light-mode .admin-metrics-table tbody td:first-child { border-bottom-color: rgba(0,0,0,0.10); color: #2a1f4a; }

	/* Top user-created questions table: the text column is the meaningful
	   anchor, so promote it to the card header instead of the QID. */
	.admin-topq-table { display: block; border: 0; }
	.admin-topq-table thead { display: none; }
	.admin-topq-table tbody { display: block; }
	.admin-topq-table tbody tr {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"text    text"
			"qid     answers";
		gap: 4px 12px;
		padding: 10px 0;
		border-bottom: 1px solid rgba(255,255,255,0.07);
	}
	.admin-topq-table tbody td { padding: 0; border: 0; font-size: 13px; }
	.admin-topq-table tbody td:nth-child(1) {
		grid-area: qid;
		font-size: 11.5px;
		opacity: 0.55;
	}
	.admin-topq-table tbody td:nth-child(2) {
		grid-area: text;
		font-weight: 500;
	}
	.admin-topq-table tbody td:nth-child(3) {
		grid-area: answers;
		justify-self: end;
	}
	.admin-topq-table tbody td:nth-child(3)::before {
		content: attr(data-label) ": ";
		opacity: 0.55;
		font-size: 11.5px;
		margin-right: 4px;
	}
	.admin-topq-table tbody td[colspan] {
		grid-area: auto;
		grid-column: 1 / -1;
	}
	html.light-mode .admin-topq-table tbody tr { border-bottom-color: rgba(0,0,0,0.08); }

	/* Modal/form fields: comfortable thumbs */
	.admin-section input[type="text"],
	.admin-section input[type="email"],
	.admin-section input[type="search"],
	.admin-section select,
	.admin-section textarea {
		font-size: 16px; /* iOS Safari: ≥16px stops auto-zoom on focus */
	}
}

@media (max-width: 480px) {
	.admin-head-stats { grid-template-columns: 1fr 1fr; }
	.admin-stat-val { font-size: 16px; }
	.admin-head h1 { font-size: 20px; }
	.admin-head-sub { font-size: 12px; }

	.admin-tab i,
	.admin-subtab i { font-size: 11px; }

	.admin-flash { font-size: 12px; padding: 8px 10px; }

	/* Make the dev-note "Add a note" details/summary readable */
	.admin-logs-add-note summary { padding: 8px 10px; font-size: 13px; }
}

/* =====================================================================
   V6.8 patch 181 — Avatar usage rethink (mood vibe + taste tags + microcopy)
   ---------------------------------------------------------------------
   New components, all opt-in via class hooks:
   • .weird-av / .weird-av-mood — layered avatar (main + corner badge)
   • .acct-avatar-cap            — picker tile hover/focus caption
   • .acct-avatars-chip-desc     — explanation strip below picker chips
   • .acct-mood-*                — mood vibe picker (preview + grid + None)
   • .user-taste-tag             — "Wizard energy" pill near user names
   • .lb-taste-tag               — leaderboard-specific inline taste tag
   • .discover-taste-tag         — discover-specific inline taste tag
   • .connect-tile-taste-tag     — connect-row tile taste tag
   • .profile-hero-taste-tag     — profile hero block tag
   • .connect-row-vibe           — "X-energy folks" row variant + hint text
   ===================================================================== */

/* ---------- Layered avatar (main + optional corner mood badge) ---------- */
.weird-av {
	display: inline-block;
	position: relative;
	line-height: 0;
}
.weird-av > img {
	display: block;
	width: var(--weird-av-size, 48px);
	height: var(--weird-av-size, 48px);
	border-radius: 50%;
	object-fit: cover;
}
.weird-av-mood {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: calc(var(--weird-av-size, 48px) * 0.40);
	height: calc(var(--weird-av-size, 48px) * 0.40);
	border-radius: 50%;
	background: #fdebd0;
	border: 2px solid var(--card-bg, #1a1a2e);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.35);
	line-height: 0;
}
.weird-av-mood > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Light mode: badge ring blends into the white card. */
:root[data-theme="light"] .weird-av-mood,
.light-theme .weird-av-mood {
	border-color: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ---------- Picker tile caption (hover + focus + active) ---------- */
.acct-avatar-opt { position: relative; }
.acct-avatar-cap {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 3px 5px 4px;
	font-size: 10px;
	line-height: 1.15;
	color: #fff;
	background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.0));
	text-align: center;
	border-radius: 0 0 8px 8px;
	opacity: 0;
	transform: translateY(3px);
	transition: opacity .15s ease, transform .15s ease;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0.01em;
}
.acct-avatar-opt:hover .acct-avatar-cap,
.acct-avatar-opt:focus-within .acct-avatar-cap,
.acct-avatar-opt.is-active .acct-avatar-cap {
	opacity: 1;
	transform: translateY(0);
}
.acct-avatar-del {
	position: absolute;
	top: 3px;
	right: 3px;
	z-index: 3;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 1px solid rgba(255,255,255,0.24);
	border-radius: 999px;
	background: rgba(10, 14, 28, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.38);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-1px) scale(0.88);
	transition: opacity .14s ease, transform .14s ease, filter .12s ease;
}
.acct-avatar-opt:hover .acct-avatar-del,
.acct-avatar-opt:focus-within .acct-avatar-del,
.acct-avatar-opt.is-active .acct-avatar-del {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}
.acct-avatar-del:hover,
.acct-avatar-del:focus {
	background: rgba(220, 38, 38, 0.88);
	filter: brightness(1.05);
	transform: translateY(0) scale(1.06);
}
/* V6.9 — download-watermarked-copy chip on the owner's own custom avatars.
   Mirrors .acct-avatar-del but sits in the top-LEFT and uses a teal accent so
   it's visually distinct from the destructive delete chip. */
.acct-avatar-dl {
	position: absolute;
	top: 3px;
	left: 3px;
	z-index: 3;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 1px solid rgba(255,255,255,0.24);
	border-radius: 999px;
	background: rgba(10, 14, 28, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	text-decoration: none;
	box-shadow: 0 2px 5px rgba(0,0,0,0.38);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-1px) scale(0.88);
	transition: opacity .14s ease, transform .14s ease, filter .12s ease;
}
.acct-avatar-opt:hover .acct-avatar-dl,
.acct-avatar-opt:focus-within .acct-avatar-dl,
.acct-avatar-opt.is-active .acct-avatar-dl {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

@media (hover: none), (pointer: coarse) {
	.acct-avatar-opt:hover .acct-avatar-del,
	.acct-avatar-opt:hover .acct-avatar-dl {
		opacity: 0;
		pointer-events: none;
		transform: translateY(-1px) scale(0.88);
	}
	.acct-avatar-opt.is-active .acct-avatar-del,
	.acct-avatar-opt.is-active .acct-avatar-dl,
	.acct-avatar-opt:focus-within .acct-avatar-del,
	.acct-avatar-opt:focus-within .acct-avatar-dl {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0) scale(1);
	}
}
.acct-avatar-dl:hover,
.acct-avatar-dl:focus {
	background: rgba(20, 184, 166, 0.88);
	filter: brightness(1.05);
	transform: translateY(0) scale(1.06);
	color: #fff;
	text-decoration: none;
}

/* ---------- Chip microcopy strip ---------- */
.acct-avatars-chip-desc {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: -4px 0 14px;
	padding: 8px 11px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--text-secondary, #cbd5e1);
	font-style: italic;
	background: rgba(124,58,237,0.08);
	border-left: 3px solid rgba(124,58,237,0.45);
	border-radius: 0 8px 8px 0;
}
.acct-avatars-chip-desc i {
	color: #9b6bff;
	margin-top: 2px;
	font-style: normal;
}
:root[data-theme="light"] .acct-avatars-chip-desc,
.light-theme .acct-avatars-chip-desc {
	background: rgba(124,58,237,0.06);
	color: #475569;
}

/* ---------- Mood vibe picker ---------- */
.acct-mood-wrap {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px dashed rgba(124,58,237,0.35);
}
.acct-mood-head { margin-bottom: 10px; }
.acct-mood-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-primary, #fff);
}
.acct-mood-title i { color: #9b6bff; }
.acct-mood-pill {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(124,58,237,0.18);
	color: #c4a8ff;
}
.acct-mood-sub {
	margin: 0;
	font-size: 13px;
	color: var(--text-secondary, #cbd5e1);
	line-height: 1.5;
}
.acct-mood-preview {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 14px 0 18px;
	padding: 12px 14px;
	background: rgba(124,58,237,0.06);
	border: 1px solid rgba(124,58,237,0.20);
	border-radius: 12px;
}
.acct-mood-preview-frame {
	flex: 0 0 auto;
	--weird-av-size: 72px;
}
.acct-mood-preview-frame .weird-av > img {
	width: 72px; height: 72px;
	border: 2px solid rgba(124,58,237,0.35);
}
.acct-mood-preview-meta { flex: 1 1 auto; min-width: 0; }
.acct-mood-preview-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary, #fff);
	margin-bottom: 2px;
}
.acct-mood-preview-empty {
	font-weight: 500;
	font-style: italic;
	color: var(--text-secondary, #cbd5e1);
}
.acct-mood-preview-hint {
	font-size: 12px;
	color: var(--text-secondary, #cbd5e1);
	opacity: 0.85;
}
.acct-mood-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
	gap: 8px;
}
.acct-mood-opt {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4px;
	background: var(--card-bg-soft, rgba(255,255,255,0.04));
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s, transform .1s;
}
.acct-mood-opt input { position: absolute; opacity: 0; pointer-events: none; }
.acct-mood-opt img {
	width: 54px; height: 54px;
	border-radius: 50%;
	object-fit: cover;
}
.acct-mood-opt-cap {
	display: block;
	font-size: 10px;
	line-height: 1.1;
	color: var(--text-secondary, #cbd5e1);
	margin-top: 3px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 60px;
}
.acct-mood-opt:hover { border-color: rgba(124,58,237,0.35); }
.acct-mood-opt.is-active {
	border-color: #7c3aed;
	background: rgba(124,58,237,0.14);
}
.acct-mood-opt.is-active .acct-mood-opt-cap {
	color: #c4a8ff;
	font-weight: 600;
}
.acct-mood-opt-none {
	background: transparent;
	border: 2px dashed rgba(255,255,255,0.18);
}
.acct-mood-opt-none-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px; height: 54px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	color: var(--text-secondary, #94a3b8);
	font-size: 18px;
}
.acct-mood-opt-none:hover { border-color: rgba(255,255,255,0.35); }
.acct-mood-opt-none.is-active {
	border-color: #c4a8ff;
	background: rgba(255,255,255,0.04);
}
:root[data-theme="light"] .acct-mood-opt-none,
.light-theme .acct-mood-opt-none {
	border-color: rgba(0,0,0,0.18);
}
:root[data-theme="light"] .acct-mood-opt-none-icon,
.light-theme .acct-mood-opt-none-icon {
	background: rgba(0,0,0,0.04);
	color: #64748b;
}

/* ---------- Custom avatar uploads (selfie -> styled avatar) ---------- */
.acct-custom-upload {
	margin: 8px 0 14px;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid rgba(124,58,237,0.25);
	background: rgba(124,58,237,0.06);
}
.acct-custom-upload-head h4 {
	margin: 0 0 5px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary, #fff);
	display: flex;
	align-items: center;
	gap: 7px;
}
.acct-custom-upload-head h4 i { color: #9b6bff; }
.acct-custom-price {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.01em;
	background: rgba(250,204,21,0.2);
	color: #fde68a;
	border: 1px solid rgba(250,204,21,0.35);
}
.acct-custom-upload-head p {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--text-secondary, #cbd5e1);
}
.acct-custom-wallet {
	margin-top: 8px;
	font-size: 12px;
	color: var(--text-secondary, #cbd5e1);
}
.acct-custom-wallet strong {
	color: #fff;
	font-weight: 800;
}
.acct-custom-upload-row {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 10px;
	flex-wrap: wrap;
}
.acct-custom-upload-input {
	flex: 1 1 240px;
	font-size: 12px;
	color: var(--text-secondary, #cbd5e1);
}
.acct-custom-style {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.acct-custom-style-opt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(124,58,237,0.32);
	background: rgba(124,58,237,0.08);
	color: var(--text-secondary, #cbd5e1);
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.acct-custom-style-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.acct-custom-style-opt:hover {
	background: rgba(124,58,237,0.18);
	border-color: rgba(124,58,237,0.5);
	color: #fff;
	transform: translateY(-1px);
}
.acct-custom-style-opt.is-active {
	background: linear-gradient(135deg, #7c3aed, #22c55e);
	border-color: transparent;
	color: #fff;
}
.acct-custom-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 0;
	border-radius: 10px;
	padding: 8px 11px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #7c3aed, #5b21b6);
	cursor: pointer;
}
.acct-custom-upload-btn:hover { filter: brightness(1.07); }
.acct-custom-upload-foot {
	margin-top: 8px;
	font-size: 11px;
	color: var(--text-secondary, #94a3b8);
	font-style: italic;
}
.acct-custom-earn {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 11px;
	color: var(--text-secondary, #94a3b8);
}
.acct-custom-earn strong {
	color: var(--text-primary, #fff);
	font-weight: 700;
}
.acct-custom-earn a {
	color: #c4a8ff;
	text-decoration: none;
	font-weight: 600;
}
.acct-custom-earn a:hover {
	text-decoration: underline;
}
.acct-custom-upload-flash {
	margin-top: 8px;
	font-size: 12px;
	padding: 7px 9px;
	border-radius: 8px;
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.acct-custom-upload-flash.is-ok {
	background: rgba(16,185,129,0.14);
	color: #34d399;
}
.acct-custom-upload-flash.is-err {
	background: rgba(239,68,68,0.14);
	color: #fdba74;
}
.acct-custom-upload-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 8px;
	margin-top: 10px;
}
.acct-custom-upload-item {
	border-radius: 10px;
	border: 1px solid rgba(124,58,237,0.25);
	background: rgba(15,23,42,0.35);
	padding: 6px;
}
.acct-custom-upload-item.is-current {
	border-color: rgba(16,185,129,0.75);
	box-shadow: 0 0 0 1px rgba(16,185,129,0.35) inset;
}
.acct-custom-upload-item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: block;
	border-radius: 8px;
	object-fit: cover;
	background: rgba(0,0,0,0.2);
}
.acct-custom-upload-meta {
	margin-top: 6px;
	font-size: 10px;
	color: var(--text-secondary, #cbd5e1);
	text-align: center;
	display: grid;
	gap: 5px;
}
.acct-custom-upload-del {
	border: 0;
	border-radius: 999px;
	padding: 4px 8px;
	font-size: 10px;
	font-weight: 700;
	color: #fee2e2;
	background: rgba(239,68,68,0.24);
	cursor: pointer;
}
.acct-custom-upload-del:hover { background: rgba(239,68,68,0.34); }

:root[data-theme="light"] .acct-custom-upload,
.light-theme .acct-custom-upload {
	background: rgba(124,58,237,0.04);
	border-color: rgba(124,58,237,0.22);
}
:root[data-theme="light"] .acct-custom-upload-head p,
.light-theme .acct-custom-upload-head p,
:root[data-theme="light"] .acct-custom-upload-foot,
.light-theme .acct-custom-upload-foot,
:root[data-theme="light"] .acct-custom-upload-meta,
.light-theme .acct-custom-upload-meta {
	color: #64748b;
}
:root[data-theme="light"] .acct-custom-wallet,
.light-theme .acct-custom-wallet,
:root[data-theme="light"] .acct-custom-earn,
.light-theme .acct-custom-earn {
	color: #64748b;
}
:root[data-theme="light"] .acct-custom-wallet strong,
.light-theme .acct-custom-wallet strong,
:root[data-theme="light"] .acct-custom-earn strong,
.light-theme .acct-custom-earn strong {
	color: #1f2937;
}
:root[data-theme="light"] .acct-custom-earn a,
.light-theme .acct-custom-earn a {
	color: #6d28d9;
}
:root[data-theme="light"] .acct-custom-upload-item,
.light-theme .acct-custom-upload-item {
	background: #fff;
	border-color: rgba(124,58,237,0.28);
}
:root[data-theme="light"] .acct-custom-style-opt,
.light-theme .acct-custom-style-opt {
	background: rgba(124,58,237,0.09);
	border-color: rgba(124,58,237,0.26);
	color: #2a1b4f;
}
:root[data-theme="light"] .acct-custom-style-opt:hover,
.light-theme .acct-custom-style-opt:hover {
	background: rgba(124,58,237,0.2);
	color: #2a1b4f;
}
:root[data-theme="light"] .acct-custom-style-opt.is-active,
.light-theme .acct-custom-style-opt.is-active {
	color: #fff;
}

/* ---------- "Taste tag" — generic pill (block context) ---------- */
.user-taste-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(124,58,237,0.12);
	color: #c4a8ff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
}
.user-taste-tag i { font-size: 10px; opacity: 0.8; }

/* ---------- Profile hero taste tag (under name) ----------
   V207 polish — was lavender-on-purple (#c4a8ff on rgba(124,58,237,0.14),
   contrast 2.8, fails AA). The old light-mode override used
   `[data-theme="light"]` / `.light-theme` selectors which this site doesn't
   set — it uses `html.light-mode`. Fix both axes. */
.profile-hero-taste-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(124,58,237,0.22);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	text-shadow: 0 1px 1px rgba(0,0,0,0.18);
}
.profile-hero-taste-tag i {
	font-size: 10px;
	opacity: 0.95;
	color: #fff;
}
html.light-mode .profile-hero-taste-tag,
:root[data-theme="light"] .profile-hero-taste-tag,
.light-theme .profile-hero-taste-tag {
	background: rgba(124,58,237,0.16);
	color: #1f1235;
	text-shadow: none;
}
html.light-mode .profile-hero-taste-tag i,
:root[data-theme="light"] .profile-hero-taste-tag i,
.light-theme .profile-hero-taste-tag i { color: #1f1235; }

/* ---------- Inline taste tag in card name lines ---------- */
.discover-taste-tag,
.connect-tile-taste-tag,
.lb-taste-tag {
	display: inline;
	font-size: 11.5px;
	font-weight: 500;
	color: rgba(196,168,255,0.85);
	letter-spacing: 0.01em;
	margin-left: 2px;
}
.connect-tile-taste-tag {
	display: block;
	font-size: 11px;
	margin-top: 1px;
	color: rgba(196,168,255,0.80);
	font-style: italic;
}
:root[data-theme="light"] .discover-taste-tag,
:root[data-theme="light"] .connect-tile-taste-tag,
:root[data-theme="light"] .lb-taste-tag,
.light-theme .discover-taste-tag,
.light-theme .connect-tile-taste-tag,
.light-theme .lb-taste-tag {
	color: rgba(124,58,237,0.85);
}

/* ---------- Discover "vibe-energy folks" row ---------- */
.connect-row-vibe .connect-row-head i { color: #ffd166; }
.connect-row-vibe .connect-row-head {
	background: linear-gradient(90deg, rgba(255,209,102,0.10), rgba(124,58,237,0.06) 60%, transparent);
	border-radius: 8px;
	padding: 7px 10px;
}
.connect-row-vibe-hint {
	font-size: 12px;
	font-weight: 400;
	color: var(--text-secondary, #cbd5e1);
	opacity: 0.85;
	margin-left: 6px;
	font-style: italic;
}

/* ---------- Profile hero avatar helper: keep helper-rendered img sized ---------- */
.profile-hero-avatar-col .weird-av { --weird-av-size: 96px; }
.profile-hero-avatar-col .weird-av > img {
	width: 96px; height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

/* ---------- Discover card avatar helper: respect existing wrap class ---------- */
.discover-card-av-wrap.weird-av { --weird-av-size: 40px; }
.discover-card-av-wrap.weird-av > img {
	width: 40px; height: 40px;
}

/* ---------- Leaderboard avatar helper sizing ---------- */
.lb-winner-avatar .weird-av { --weird-av-size: 56px; }
.lb-winner-avatar .weird-av > img { width: 56px; height: 56px; }
.lb-row-avatar .weird-av { --weird-av-size: 40px; }
.lb-row-avatar .weird-av > img { width: 40px; height: 40px; }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
	.acct-mood-grid { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
	.acct-mood-opt img { width: 46px; height: 46px; }
	.acct-mood-opt-none-icon { width: 46px; height: 46px; }
	.acct-mood-opt-cap { font-size: 9.5px; max-width: 54px; }
	.acct-mood-preview { gap: 10px; padding: 10px; }
	.acct-mood-preview-frame { --weird-av-size: 64px; }
	.acct-mood-preview-frame .weird-av > img { width: 64px; height: 64px; }
	.acct-avatar-cap { font-size: 9px; padding: 2px 4px 3px; }
	.connect-row-vibe-hint { display: block; margin: 2px 0 0 18px; }
}

/* =============================================================
   V6.8 patch 167 — connect.php tile buttons match site standard:
   replace text+icon pills with the canonical 36px circular
   icon-only buttons used by .discover-card-actions on movies/tv/etc.
   Three buttons (Follow, Profile, Message) sit in a centered row
   under the avatar + name + match%. Tooltips (title=) carry the
   labels for accessibility.
   ============================================================= */

/* Layout: horizontal row of icon buttons, centered. */
.connect-tile-grid .connect-tile-actions {
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

/* Circle button — matches .discover-card-actions .discover-follow shape. */
.connect-tile-grid .connect-tile-act {
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 0;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1;
	background: var(--bg-raised) !important;
	background-color: var(--bg-raised) !important;
	background-image: none !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
	box-shadow: none !important;
}
.connect-tile-grid .connect-tile-act > i {
	margin: 0;
	font-size: 14px;
	line-height: 1;
}
.connect-tile-grid .connect-tile-act:hover {
	transform: translateY(-1px);
	border-color: var(--purple-border, rgba(124,58,237,0.45)) !important;
	color: var(--text-primary) !important;
	background: var(--bg-raised) !important;
}

/* Following = purple (parallel to .discover-follow.connect-tile-following). */
.connect-tile-grid .connect-tile-act.connect-tile-following {
	background: var(--purple) !important;
	background-color: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}
.connect-tile-grid .connect-tile-act.connect-tile-following:hover {
	background: var(--purple) !important;
	background-color: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}

/* Light-mode tuning. */
html.light-mode .connect-tile-grid .connect-tile-act {
	background: #f4f0fb !important;
	background-color: #f4f0fb !important;
	color: #4a3a78 !important;
	border-color: rgba(124,58,237,0.18) !important;
}
html.light-mode .connect-tile-grid .connect-tile-act:hover {
	background: #ece6f8 !important;
	background-color: #ece6f8 !important;
	border-color: rgba(124,58,237,0.45) !important;
	color: #2e2058 !important;
}
html.light-mode .connect-tile-grid .connect-tile-act.connect-tile-following {
	background: var(--purple) !important;
	background-color: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}

/* V6.8 patch 167 — fix: `.discover-section.connect-section .connect-tile-act`
   (specificity 0,3,0) sets `flex: 1 1 0px` which stretches the buttons across
   the row and silently overrides my `width: 36px !important`. Lock with
   !important so the circle stays a circle in the grid context. */
.connect-tile-grid .connect-tile-act {
	flex: 0 0 36px !important;
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	flex-basis: 36px !important;
}

/* =============================================================
   V6.8 patch 168 — connect.php tiles 2-across on mobile.
   Default mobile rule (patch 44/46) forces `.discover-stream` to
   `display:flex; flex-direction:column` so movie/tv cards (which
   have wide thumbnails) stack 1 per row. Connect tiles are small
   (avatar + name + match% + 3 icon buttons) so 2 per row fits
   comfortably on phones and reads as a denser, more browsable list.
   Scope: `.discover-stream.connect-grid` (only connect.php) — leaves
   movies/tv/etc alone.
   ============================================================= */
@media (max-width: 640px) {
	.discover-stream.connect-grid {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 10px !important;
	}
	.discover-stream.connect-grid > * {
		width: auto !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	/* Tighter padding so the inner content (avatar + name + buttons)
	   doesn't get squeezed at ~170px tile width. */
	.discover-stream.connect-grid .connect-tile-grid {
		padding: 14px 10px 12px;
	}
	.discover-stream.connect-grid .connect-tile-grid .connect-tile-avatar img {
		width: 56px;
		height: 56px;
	}
	.discover-stream.connect-grid .connect-tile-grid .connect-tile-actions {
		gap: 6px;
	}
}
@media (max-width: 360px) {
	/* Very small phones: fall back to 1 column so the 3 icon-buttons
	   row + name doesn't get cramped. */
	.discover-stream.connect-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ============================================================
   V6.8 patch 188 — meme thumbnail rendering + admin full-pic review
   ============================================================
   User ask (verbatim): "Enable ability for admins to see the full meme
   pic before upload. Also, on the meme category page and elsewhere the
   meme pic doesnt cover the full area as it's circular and the
   bvackgriund srea is square/rectangualr".

   Root cause for the "circular" memes: the legacy global button rule
   around line 2280 (`button:not(...long blacklist...) { background: ...
   purple gradient; border-radius: var(--radius-pill); padding: 10px 22px;
   !important }`) was clobbering every `.meme-zoom-trigger` button.
   `all: unset` at line 11066 reset the trigger BEFORE that rule cascaded,
   so the trigger ended up styled like a pill button: rounded purple
   background + 10px/22px padding. The square 1:1 meme frame then showed
   the purple gradient through the pill-shaped corners, and the padding
   pushed the image inward leaving visible purple bands at the edges —
   the "circular, doesn't cover full area" effect.

   Fix here neutralises the rogue button-skin on .meme-zoom-trigger and
   bumps the admin review thumbnail to 140×140 with object-fit:contain
   so reviewers can see the WHOLE meme before approving (the trigger is
   also wired in admin.php to open the existing lightbox on click). */

/* (1) Neutralise the legacy button skin on the meme zoom trigger. Has to
   be !important because the global rule at line ~2280 / ~9911 uses
   !important. Targets both .discover-card-media .meme-zoom-trigger (item
   cards) and .discover-card-social-thumb .meme-zoom-trigger (friend feed
   social cards), plus the admin-review variant added below. */
.discover-card-media .meme-zoom-trigger,
.discover-card-social-thumb .meme-zoom-trigger,
.admin-review-item-thumb .meme-zoom-trigger {
	background: transparent !important;
	background-image: none !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit !important;
}

/* The lightbox close button also lives on a <button> without one of
   the blacklisted classes, so it was getting the pill skin too. Style
   it as the original round close affordance instead. */
.meme-lightbox .meme-lightbox-close {
	background: rgba(15,12,28,0.62) !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 0 !important;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset !important;
}

/* (2) Admin review: bump the meme/podcast/shopping/travel/local thumb
   to 140×140 with object-fit:contain so the whole image is visible
   inline. The 28px / 140px / minmax(0,1fr) grid keeps the body legible
   on desktop; mobile drops back to 56px (rule at line ~17180 stays). */
.admin-review-item {
	grid-template-columns: 28px 140px minmax(0,1fr);
}
/* V6.8 patch 168.1 — categories with no image library (lifehacks, facts,
   questions) render with the `--no-thumb` modifier and only two children
   (checkbox + body). The 3-column rule above would shove the body into
   the narrow 2nd track and leave the 3rd empty, crushing titles into
   1–2-word wraps. Restore the 2-column layout with a compound selector
   so it beats the (0,1,0) rule above on specificity. */
.admin-review-item.admin-review-item--no-thumb {
	grid-template-columns: 28px minmax(0,1fr);
}
.admin-review-item-thumb {
	width: 140px;
	height: 140px;
	flex: 0 0 140px;
	border-radius: 10px;
}
.admin-review-item-thumb img {
	object-fit: contain;
	background: rgba(8,6,18,0.45);
	cursor: zoom-in;
}
html.light-mode .admin-review-item-thumb img {
	background: rgba(245,243,255,0.6);
}
/* The hover hint communicates the click-to-zoom affordance. */
.admin-review-item-thumb .meme-zoom-trigger {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
	position: relative;
	overflow: hidden;
}
.admin-review-item-thumb .meme-zoom-trigger:hover img,
.admin-review-item-thumb .meme-zoom-trigger:focus-visible img {
	filter: brightness(1.08);
}
.admin-review-item-thumb .meme-zoom-badge {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: rgba(15,12,28,0.7);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset;
}

/* V6.8 patch 190 — videos category in the admin review queue. The
   thumbnail box hosts the actual YouTube iframe (not a still image)
   so admins can play the video inline to decide approve/reject.
   16:9 aspect ratio (240×140) is wide enough for YouTube's player
   chrome to fit; the parent grid is widened to match. */
.admin-review-item-thumb--video {
	width: 240px !important;
	height: 140px !important;
	flex: 0 0 240px !important;
	background: #000;
	overflow: hidden;
}
.admin-review-item-thumb--video .video-inline-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.admin-review-item:has(.admin-review-item-thumb--video) {
	grid-template-columns: 28px 240px minmax(0,1fr);
}

@media (max-width: 760px) {
	.admin-review-item { grid-template-columns: 26px 96px minmax(0,1fr); }
	.admin-review-item.admin-review-item--no-thumb { grid-template-columns: 26px minmax(0,1fr); }
	.admin-review-item-thumb { width: 96px; height: 96px; flex: 0 0 96px; }
	.admin-review-item-thumb--video {
		width: 160px !important; height: 90px !important; flex: 0 0 160px !important;
	}
	.admin-review-item:has(.admin-review-item-thumb--video) {
		grid-template-columns: 26px 160px minmax(0,1fr);
	}
}
@media (max-width: 560px) {
	/* Mobile: keep the existing 56×56 thumb (rule already in v5-override).
	   Override the desktop bump above. */
	.admin-review-item { grid-template-columns: 26px 56px minmax(0,1fr) !important; }
	.admin-review-item.admin-review-item--no-thumb { grid-template-columns: 26px minmax(0,1fr) !important; }
	.admin-review-item-thumb { width: 56px !important; height: 56px !important; flex: 0 0 56px !important; }
	.admin-review-item-thumb--video {
		width: 120px !important; height: 68px !important; flex: 0 0 120px !important;
	}
	.admin-review-item:has(.admin-review-item-thumb--video) {
		grid-template-columns: 26px 120px minmax(0,1fr) !important;
	}
}

/* ─────────────────────────────────────────────────────────────
   V6.8 patch 169.13 — Vote breakdown modal ("who rated what")
   Click any .discover-card-pct chip to open a modal that shows:
     • Big animated % ring + vote tally
	• Audience tabs (Everyone / Taste Twins / Following / Fans)
     • Two avatar grids: 👍 Loved it · 👎 Not for them
   ───────────────────────────────────────────────────────────── */

/* Make the pct chip feel clickable. We don't change shape — just hint
   it's interactive. Override the default button reset since some
   surfaces will render this as <button>. */
.discover-card-pct[data-vb-cat] {
	cursor: pointer;
	border: 1px solid var(--weird-chip-active-border, rgba(167,139,250,0.86));
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: inherit;
	transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.discover-card-pct[data-vb-cat]:hover {
	transform: translateY(-1px) scale(1.04);
	box-shadow:
		0 6px 18px rgba(124,58,237,0.45),
		inset 0 0 0 1px rgba(255,255,255,0.32) !important;
}
.discover-card-pct[data-vb-cat]:active { transform: translateY(0) scale(0.98); }
.discover-card-pct[data-vb-cat]:focus-visible {
	outline: 2px solid var(--purple-light);
	outline-offset: 2px;
}

/* V6.8 patch 192 — Align vote-breakdown chip with the .discover-card-tag
   chip on the left. The chip was being bloated by the global
   button:not(...) reset (padding 10px 22px, font-size 14px, lighter
   gradient) — making it visually disconnected from the category tag.
   Pin chip back to the same dimensions/gradient as the tag, and use a
   subtle inset highlight ring as the always-on "this is tappable" cue
   for touch / no-hover devices. Desktop hover/focus states above stay. */
.discover-card-pct[data-vb-cat] {
	padding: 5px 10px !important;
	font-size: 11px !important;
	border-radius: 999px !important;
	line-height: 1.4 !important;
	box-shadow:
		0 10px 24px -17px rgba(124,58,237,0.66),
		inset 0 0 0 1px rgba(255,255,255,0.22) !important;
	gap: 5px !important;
}
.discover-card-pct[data-vb-cat] i {
	font-size: 10px !important;
	opacity: 0.95;
}
.discover-card-pct[data-vb-cat] .discover-card-pct-votes {
	opacity: 0.85;
	font-variant-numeric: tabular-nums;
}
/* Mobile breakpoint (matches existing media query in this file): keep
   the same compact dimensions as the tag chip. */
@media (max-width: 560px) {
	.discover-card-pct[data-vb-cat] {
		padding: 4px 9px !important;
		font-size: 10.5px !important;
		gap: 4px !important;
	}
	.discover-card-pct[data-vb-cat] i { font-size: 9.5px !important; }
}
/* Light mode parity — same subtle ring + shadow. */
html.light-mode .discover-card-pct[data-vb-cat] {
	box-shadow:
		0 8px 20px -14px rgba(124,58,237,0.55),
		inset 0 0 0 1px rgba(255,255,255,0.32) !important;
}

/* Backdrop + container */
.vb-modal {
	position: fixed; inset: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .24s var(--ease);
}
.vb-modal.is-open { opacity: 1; pointer-events: auto; }
.vb-backdrop {
	position: absolute; inset: 0;
	background: rgba(8,6,18,0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.vb-card {
	position: relative;
	width: min(720px, 100%);
	max-height: calc(100dvh - 48px);
	overflow: auto;
	background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
	border: 1px solid var(--purple-border);
	border-radius: 20px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,58,237,0.18);
	color: var(--text-primary);
	transform: translateY(12px) scale(0.98);
	transition: transform .28s var(--ease);
}
.vb-modal.is-open .vb-card { transform: translateY(0) scale(1); }

/* Close affordance — V6.9 patch 204: now a direct child of .vb-modal
   (not .vb-card) so it stays pinned to the viewport when the user
   scrolls the modal body on mobile. */
.vb-close {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 10;
	width: 36px; height: 36px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: rgba(0,0,0,0.55);
	color: var(--text-primary);
	font-size: 14px;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.vb-modal[hidden] .vb-close { display: none; }
.vb-close:hover { background: var(--purple); border-color: var(--purple); color: #fff; transform: rotate(90deg); }

/* HEAD / hero */
.vb-head {
	padding: 28px 24px 18px;
	background:
		radial-gradient(ellipse at 0% 0%, rgba(124,58,237,0.22), transparent 55%),
		radial-gradient(ellipse at 100% 0%, rgba(251,191,36,0.14), transparent 55%);
	border-bottom: 1px solid var(--border);
	border-radius: 20px 20px 0 0;
}
.vb-hero {
	display: grid;
	grid-template-columns: 132px 1fr;
	gap: 22px;
	align-items: center;
}
.vb-pct-ring {
	position: relative;
	width: 132px; height: 132px;
	display: inline-block;
}
.vb-pct-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vb-pct-track {
	fill: none;
	stroke: rgba(255,255,255,0.10);
	stroke-width: 8;
}
.vb-pct-fill {
	fill: none;
	stroke: var(--purple);
	stroke-width: 8;
	stroke-linecap: round;
	stroke-dasharray: 213.63;
	stroke-dashoffset: 213.63;
	transition: stroke-dashoffset .8s var(--ease), stroke .3s var(--ease);
	filter: drop-shadow(0 0 6px rgba(124,58,237,0.55));
}
.vb-pct-tier-hot  .vb-pct-fill { stroke: #34d399; filter: drop-shadow(0 0 8px rgba(52,211,153,0.7)); }
.vb-pct-tier-warm .vb-pct-fill { stroke: #fbbf24; filter: drop-shadow(0 0 7px rgba(251,191,36,0.65)); }
.vb-pct-tier-mid  .vb-pct-fill { stroke: #f97316; filter: drop-shadow(0 0 7px rgba(249,115,22,0.6)); }
.vb-pct-tier-cool .vb-pct-fill { stroke: rgba(255,255,255,0.32); filter: none; }
.vb-pct-inner {
	position: absolute; inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-variant-numeric: tabular-nums;
	color: var(--text-primary);
}
.vb-pct-num { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.vb-pct-sym { font-size: 18px; font-weight: 700; color: var(--text-secondary); margin-left: 1px; line-height: 1; }
.vb-pct-inner > .vb-pct-num,
.vb-pct-inner > .vb-pct-sym { display: inline; }
.vb-pct-thumb {
	margin-top: 4px;
	font-size: 14px;
	color: var(--purple-light);
}
.vb-pct-tier-hot  .vb-pct-thumb { color: #34d399; }
.vb-pct-tier-warm .vb-pct-thumb { color: #fbbf24; }
.vb-pct-tier-mid  .vb-pct-thumb { color: #f97316; }
.vb-pct-tier-cool .vb-pct-thumb { color: var(--text-muted); }

.vb-hero-body { min-width: 0; }
.vb-eyebrow {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--purple-light);
	margin-bottom: 6px;
}
.vb-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 4px;
	line-height: 1.2;
	color: var(--text-primary);
	word-wrap: break-word;
}
.vb-meta {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 12px;
}
.vb-tally {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	background: rgba(0,0,0,0.32);
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
}
.vb-tally strong { color: var(--text-primary); }
.vb-tally-up   i { color: #34d399; margin-right: 4px; }
.vb-tally-neutral i { color: #f59e0b; margin-right: 4px; }
.vb-tally-down i { color: #ef4444; margin-right: 4px; }
.vb-tally-sep  { color: var(--text-muted); }

/* TABS */
.vb-tabs {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap !important;
	gap: 8px;
	padding: 14px 18px 0;
	overflow: visible !important;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.vb-tabs > * { min-width: 0; }
.vb-tabs::-webkit-scrollbar { display: none; }
.vb-tab {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text-secondary);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.vb-tab i { font-size: 11px; }
.vb-tab:hover {
	background: rgba(124,58,237,0.08);
	border-color: rgba(124,58,237,0.45);
	color: var(--text-primary);
	transform: translateY(-1px);
}
.vb-tab.is-active {
	background: linear-gradient(135deg, var(--purple), #6d28d9);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 14px rgba(124,58,237,0.42);
}
.vb-tab-badge {
	background: rgba(255,255,255,0.16);
	border-radius: 999px;
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--text-primary);
}
.vb-tab.is-active .vb-tab-badge { background: rgba(255,255,255,0.28); color: #fff; }

/* V6.8 — Circles dropdown trigger inside .vb-tabs. Inherits the .vb-tab pill
	look so it blends with Everyone / Taste Twins / Following / Fans. */
.vb-tab-circles-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.vb-circles-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 10;
	min-width: 240px;
	max-width: 320px;
	max-height: 340px;
	overflow-y: auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 18px 44px -18px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,58,237,0.18);
	padding: 6px;
}
.vb-circle-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	background: transparent;
	border: 0;
	border-radius: 10px;
	color: var(--text-primary);
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: background .12s ease;
}
.vb-circle-item:hover { background: rgba(124,58,237,0.14); }
.vb-circle-item i { width: 16px; text-align: center; color: var(--purple); font-size: 12px; }
.vb-circle-item-meta {
	margin-left: auto;
	font-size: 11px;
	color: var(--text-muted);
	font-variant-numeric: tabular-nums;
}
.vb-circles-empty { padding: 14px 16px; font-size: 12.5px; color: var(--text-secondary); text-align: center; line-height: 1.45; }
.vb-circles-empty a { color: var(--purple); text-decoration: underline; }
html.light-mode .vb-circles-menu { background: #fff; border-color: rgba(124,58,237,0.22); }
html.light-mode .vb-circle-item { color: #1a1740; }

/* User's own vote pill, inline in the hero tally row. */
.vb-tally-mine {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin-left: 4px;
}
.vb-tally-mine.is-up   { background: rgba(52,211,153,0.16); color: #34d399; border: 1px solid rgba(52,211,153,0.45); }
.vb-tally-mine.is-neutral { background: rgba(245,158,11,0.14); color: #f59e0b; border: 1px solid rgba(245,158,11,0.42); }
.vb-tally-mine.is-down { background: rgba(239,68,68,0.16);  color: #ef4444; border: 1px solid rgba(239,68,68,0.45); }
.vb-tally-mine i { font-size: 11px; }

/* My-vote callout */
.vb-myvote {
	margin: 14px 18px 0;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.vb-myvote.is-up   { background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.35); }
.vb-myvote.is-neutral { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.35); }
.vb-myvote.is-down { background: rgba(239,68,68,0.12);  color: #ef4444; border: 1px solid rgba(239,68,68,0.35); }
.vb-myvote i { font-size: 14px; }

/* BODY (rater grids) */
.vb-body {
	padding: 18px 18px 8px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.vb-group-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--text-secondary);
	margin: 0 0 10px;
}
.vb-group-icon-up   { color: #34d399; }
.vb-group-icon-neutral { color: #f59e0b; }
.vb-group-icon-down { color: #ef4444; }
.vb-group-count {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	padding: 2px 8px;
	background: rgba(255,255,255,0.07);
	border-radius: 999px;
	color: var(--text-primary);
	letter-spacing: 0;
}

.vb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
	gap: 10px;
}
.vb-rater {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 6px 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 14px;
	text-decoration: none !important;
	color: var(--text-primary);
	transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
	opacity: 0;
	transform: translateY(6px);
}
.vb-rater.vb-rater-in {
	animation: vbRaterIn .42s var(--ease) both;
}
@keyframes vbRaterIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.vb-rater:hover {
	border-color: rgba(124,58,237,0.5);
	background: rgba(124,58,237,0.08);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(124,58,237,0.18);
}
.vb-rater-locked { cursor: default; opacity: 0.62; }
.vb-rater-locked:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); }

.vb-rater-av {
	width: 56px; height: 56px;
	border-radius: 999px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.3);
}
.vb-rater-av img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.vb-rater-name {
	font-size: 12px;
	font-weight: 700;
	color: var(--text-primary);
	text-align: center;
	line-height: 1.2;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	width: 100%;
}
.vb-rater-you {
	background: linear-gradient(135deg, var(--purple), #6d28d9);
	color: #fff;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
}
.vb-rater-ago {
	font-size: 10.5px;
	color: var(--text-muted);
	font-weight: 600;
}

/* Empty states */
.vb-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 22px 12px;
	background: rgba(255,255,255,0.02);
	border: 1px dashed rgba(255,255,255,0.10);
	border-radius: 14px;
	color: var(--text-muted);
	font-size: 13px;
	text-align: center;
}
.vb-empty-icon { font-size: 28px; line-height: 1; }

/* Loading */
.vb-loading {
	position: absolute;
	inset: 0;
	background: rgba(8,6,18,0.55);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
}
.vb-spinner {
	width: 32px; height: 32px;
	border-radius: 999px;
	border: 3px solid rgba(255,255,255,0.15);
	border-top-color: var(--purple-light);
	animation: vbSpin .8s linear infinite;
}
@keyframes vbSpin { to { transform: rotate(360deg); } }

/* Footer */
.vb-foot {
	padding: 12px 18px 18px;
	font-size: 12px;
	color: var(--text-muted);
	border-top: 1px solid var(--border);
	margin-top: 4px;
}
.vb-foot strong { color: var(--text-primary); }

/* LIGHT MODE */
html.light-mode .vb-card {
	background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
	border-color: rgba(124,58,237,0.22);
}
html.light-mode .vb-pct-track  { stroke: rgba(0,0,0,0.08); }
html.light-mode .vb-tally,
html.light-mode .vb-close      { background: rgba(0,0,0,0.04); }
html.light-mode .vb-rater      { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
html.light-mode .vb-rater:hover { background: rgba(124,58,237,0.08); }
html.light-mode .vb-group-count { background: rgba(0,0,0,0.06); }
html.light-mode .vb-empty      { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.10); }

/* MOBILE — V6.9 patch 206: convert from fullscreen modal to true
   iOS-style bottom sheet. Slides up from the bottom, peek of backdrop
   visible above, rounded top corners, drag handle, swipe-down-to-
   dismiss (gesture wired in votebreakdown_modal.php JS). */
@media (max-width: 720px) {
	.vb-modal {
		padding: 0;
		align-items: flex-end;
		justify-content: stretch;
	}
	.vb-card {
		width: 100%;
		max-height: 92vh;
		min-height: 60vh;
		border-radius: 18px 18px 0 0;
		border-left: none;
		border-right: none;
		border-bottom: none;
		/* Slide-up entrance/exit. Overrides the desktop scale entrance. */
		transform: translateY(100%);
		transition: transform .32s cubic-bezier(.2, .8, .25, 1);
		padding-bottom: env(safe-area-inset-bottom, 0px);
		box-shadow: 0 -16px 48px -16px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,58,237,0.12);
	}
	.vb-modal.is-open .vb-card { transform: translateY(0); }
	/* Drag-handle pill at the top of the sheet — universally readable
	   "I can swipe this down" affordance. */
	.vb-card::before {
		content: "";
		position: absolute;
		left: 50%;
		top: 8px;
		transform: translateX(-50%);
		width: 38px;
		height: 4px;
		border-radius: 999px;
		background: rgba(255,255,255,0.32);
		pointer-events: none;
	}
	html.light-mode .vb-card::before { background: rgba(60,40,120,0.28); }
	/* When actively dragging, drop the easing so finger tracks 1:1.
	   The JS adds .vb-card-dragging during touchmove. */
	.vb-card.vb-card-dragging { transition: none !important; }

	/* V6.9 patch 207 — re-enable a visible close affordance on mobile.
	   Earlier patch-206 reasoning (drag handle + swipe + backdrop are
	   "enough") proved wrong in real-user testing: once the user
	   scrolls inside the sheet body, the swipe gesture goes to the
	   scroll container instead of dismissing, the drag handle scrolls
	   out of view, and the tiny backdrop peek above the sheet is not
	   discoverable as a tap target. Pin a larger X to the top-right
	   of the viewport ABOVE the sheet so it's always reachable. */
	.vb-close {
		display: inline-flex;
		position: fixed;
		top: calc(env(safe-area-inset-top, 0px) + 10px);
		right: calc(env(safe-area-inset-right, 0px) + 12px);
		width: 40px; height: 40px;
		font-size: 16px;
		background: rgba(8,6,18,0.78) !important;
		border: 1px solid rgba(255,255,255,0.22) !important;
		color: #fff !important;
		box-shadow: 0 6px 18px -8px rgba(0,0,0,0.65);
		z-index: 10000;
	}
	html.light-mode .vb-close {
		background: rgba(255,255,255,0.96) !important;
		border-color: rgba(60,40,120,0.20) !important;
		color: #1f1235 !important;
	}
	/* The backdrop peek above the sheet is now an obvious tap target. */
	.vb-backdrop {
		cursor: pointer;
	}

	/* Head padding-top accommodates the drag handle (8px top + 4px pill + 8px gap). */
	.vb-head { border-radius: 18px 18px 0 0; padding: 28px 16px 20px; }
	.vb-hero { grid-template-columns: 92px 1fr; gap: 16px; align-items: start; }
	.vb-pct-ring { width: 92px; height: 92px; }
	.vb-pct-num { font-size: 26px; }
	.vb-pct-sym { font-size: 14px; }
	.vb-eyebrow { padding-right: 40px; margin-bottom: 4px; }
	.vb-title { font-size: 18px; margin-bottom: 6px; }
	.vb-meta { margin-bottom: 10px; }
	.vb-tally { font-size: 12px; padding: 6px 10px; }
	.vb-tabs { padding: 14px 14px 0; gap: 8px; }
	.vb-tab { padding: 7px 10px; font-size: 11.5px; }
	.vb-body { padding: 16px 14px 16px; gap: 14px; }
	.vb-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
	.vb-rater-av { width: 44px; height: 44px; }
	.vb-rater-name { font-size: 11px; }
	.vb-rater-ago { font-size: 10px; }
}

/* ============================================================
   V6.8 patch 170 — Mobile + native-app polish
   ============================================================
   Tightens iOS/Android WebView behavior so the apps feel less
   "web-shell". Same rules also benefit the mobile-web surface,
   which is now our most-used platform.

   - Eliminates the gray tap-flash on iOS.
   - Removes the 300ms tap delay on buttons + links.
   - Prevents Android's rubber-band overscroll from showing
     the bare browser-chrome behind the page.
   - Honors iPhone notch / Dynamic Island safe areas.
   - Provides `.show-native-only` / `.show-web-only` utility
     classes so PHP can hide irrelevant UI per surface.
   ============================================================ */

html, body {
	/* Block the white "pull-down" flash on Android Chrome WebView. */
	overscroll-behavior-y: none;
	/* Improve text rendering on Retina + AMOLED. */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* iOS gray tap-flash off; momentum scrolling on. */
* {
	-webkit-tap-highlight-color: transparent;
}
body, .scrollable, .modal-body {
	-webkit-overflow-scrolling: touch;
}

/* Buttons + links: kill the 300ms tap delay AND the iOS callout menu
   that appears when long-pressing. Keep selection on input/textarea. */
a, button, .btn, [role="button"], [data-haptic], .acct-mood-opt, .pill,
.discover-card-action, .stream-mix-card, .meme-zoom-trigger {
	touch-action: manipulation;
	-webkit-touch-callout: none;
}

/* Stop horizontal swipes inside tile rows from being misread as
   browser-back navigation on Android WebView. */
.tile-row, .stream-mix-grid, .discover-grid, .horiz-scroll-row {
	overscroll-behavior-x: contain;
}

/* ===== Safe-area awareness ===== */
body.is-native-app {
	/* Pages already use their own padding; we add safe-area only on
	   the OUTER edges so fixed/floating UI doesn't sit under notches. */
	padding-top:    env(safe-area-inset-top, 0);
	padding-bottom: env(safe-area-inset-bottom, 0);
}
/* Bottom-floating elements (FABs, sticky CTAs, toasts, lightboxes)
   need to clear the iOS home indicator. Anything `position: fixed`
   at the bottom should opt in via this class. */
.native-safe-bottom,
body.is-native-app .meme-lightbox-close {
	padding-bottom: max(env(safe-area-inset-bottom, 0), 12px);
}

/* ===== Surface-utility classes ===== */
/* Hide on the plain web; visible inside the iOS/Android shell. */
.show-native-only       { display: none !important; }
.is-native-app .show-native-only { display: revert !important; }

/* Hide inside the app; visible on plain web only. Use for
   "install our app!" banners, PWA-install prompts, etc. */
.is-native-app .show-web-only    { display: none !important; }

/* iOS-only / Android-only nudge classes for platform-specific UX. */
.is-native-ios .show-android-only,
.is-native-android .show-ios-only { display: none !important; }

/* ===== Native-only animation polish =====
   Inside the app we keep all transitions snappier — the WebView is
   a single isolated context, so we don't need to be conservative
   the way we would on a public web page. */
body.is-native-app .discover-card-action,
body.is-native-app .stream-mix-card {
	transition-duration: 0.18s;
}

/* ===== Pull-to-refresh "spinner kill" (Android default behavior) =====
   We never want Android's built-in pull-to-refresh on weird.net
   because refreshing mid-discover loses the user's swipe state.
   The `overscroll-behavior-y: none` on <html> above already
   suppresses it; this extra guard catches any older WebView. */
body.is-native-android { overscroll-behavior: none; }

/* ===== Status-bar contrast guard =====
   When the page background is light (e.g. modal open, light-mode
   gradients), the iOS status bar text might disappear. Bridge
   already toggles statusBar style on theme change; this is a
   visual fallback. */
@media (prefers-color-scheme: light) {
	body.is-native-app { background-color: #f7f5ff; }
}

/* =============================================================
   V6.8 patch 190 — Mobile card sizing.
   Patch 44 / 44c forced .discover-stream into `display: flex;
   flex-direction: column;` on phones, which made every meme /
   movie / tv / book / podcast card consume the full viewport
   width. On a 390px iPhone that's one card per scroll — too
   tall to scan.

   This patch switches phone layouts back to a 2-column auto-fill
   grid (display: grid) down to ~360px, then degrades to 1 column
   on the very smallest legacy phones (≤340px). It explicitly
   excludes layouts that already manage their own mobile rules:
     - .connect-grid      (Connect grid on connect.php)
     - .mq-stream         (Match Quiz stream)
     - .pvp-game-cards    (PvP game tiles)

   Specificity is one extra :not() over patch 44c's selector, and
   the block is positioned at end-of-file so source order also
   wins. The implicit-track risk from patch 44c (CTA span:2 creating
   a phantom 2nd column) is harmless here — we *want* 2 columns. */
@media (max-width: 640px) {
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) {
		display: grid !important;
		flex-direction: row !important;
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
		grid-auto-flow: row !important;
		gap: 10px !important;
	}
	/* Children: cancel the patch 44c `width: 100%` so each card
	   sizes itself to its grid track instead of the container. */
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) > *,
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) > .discover-card,
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) > .discover-card-cta,
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) > article {
		width: auto !important;
		max-width: 100% !important;
	}
	/* Tighter inner padding so the cards themselves don't look
	   cramped at half-width. */
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) .discover-card-body {
		padding: 10px 11px 12px !important;
	}
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) .discover-card-title {
		font-size: 14px !important;
		line-height: 1.25 !important;
	}
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) .discover-card-desc {
		font-size: 12px !important;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) .discover-card-pct {
		font-size: 11.5px !important;
		padding: 4px 8px !important;
	}
}
/* Very narrow phones — fall back to a single column so cards still
   show enough title and image. */
@media (max-width: 340px) {
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}
}

/* ============================================================
   V6.8 patch 169.14 — Generalized "tap-to-expand" on every
   discover-card category (not just movies/tv). When a card has
   `.is-expanded` it unclamps the title + description so the full
   blurb is readable, and gets a soft purple highlight so the user
   knows the toggle landed. Videos are excluded (own expand UX).
   ============================================================ */

/* Subtle pointer affordance so the body reads as tappable */
.discover-card-item[data-cat]:not([data-cat="videos"]) .discover-card-body {
	cursor: pointer;
}
/* But text-only inner controls inside the body keep their normal cursor */
.discover-card-item[data-cat]:not([data-cat="videos"]) .discover-card-body a,
.discover-card-item[data-cat]:not([data-cat="videos"]) .discover-card-body button,
.discover-card-item[data-cat]:not([data-cat="videos"]) .discover-card-actions,
.discover-card-item[data-cat]:not([data-cat="videos"]) .discover-card-actions * {
	cursor: auto;
}
.discover-card-item[data-cat]:not([data-cat="videos"]) .discover-card-actions button,
.discover-card-item[data-cat]:not([data-cat="videos"]) .discover-card-pct {
	cursor: pointer;
}

/* Unclamp the description for any expanded card */
.discover-card-item[data-cat]:not([data-cat="videos"]).is-expanded .discover-card-desc {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
}
/* Unclamp the title too (some categories — facts, jokes — put long
   text in the title element) */
.discover-card-item[data-cat]:not([data-cat="videos"]).is-expanded .discover-card-title {
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
	display: block !important;
}

/* Soft purple highlight so the tap feels acknowledged. Uses border
   + box-shadow rather than transforms so we don't establish a new
   containing block (avoids Safari fixed-position clipping traps). */
.discover-card-item[data-cat]:not([data-cat="videos"]).is-expanded {
	border-color: rgba(124, 58, 237, 0.45) !important;
	box-shadow: 0 8px 26px -10px rgba(124, 58, 237, 0.32),
	            0 0 0 1px rgba(124, 58, 237, 0.18) inset !important;
	transition: border-color .18s ease, box-shadow .18s ease;
}
html.light-mode .discover-card-item[data-cat]:not([data-cat="videos"]).is-expanded {
	border-color: rgba(109, 40, 217, 0.40) !important;
	box-shadow: 0 8px 22px -10px rgba(109, 40, 217, 0.28),
	            0 0 0 1px rgba(109, 40, 217, 0.20) inset !important;
}
/* Mobile: lift the tighter 2-line desc clamp too */
@media (max-width: 640px) {
	.discover-card-item[data-cat]:not([data-cat="videos"]).is-expanded .discover-card-desc {
		-webkit-line-clamp: unset !important;
		line-clamp: unset !important;
	}
}

/* ============================================================
   V6.8 patch 193 — Tap-to-expand parity for .discover-card-ai
   suggestion cards. Patch 169.14 introduced .is-expanded for
   .discover-card-item cards but skipped the AI game/quiz wrapper
   (it uses <article class="discover-card discover-card-ai"> with
   its OWN .discover-card-body), so AI cards with long blurbs like
   "Words With Friends-style word game for 2-4 players. Build words
   on a 15×15 board, score premium squares…" stayed truncated at
   3 lines forever. Mirror the same affordance + unclamp rules here.
   ============================================================ */

/* Pointer affordance on the body */
.discover-card.discover-card-ai .discover-card-body {
	cursor: pointer;
}
.discover-card.discover-card-ai .discover-card-body a,
.discover-card.discover-card-ai .discover-card-body button,
.discover-card.discover-card-ai .discover-card-actions,
.discover-card.discover-card-ai .discover-card-actions * {
	cursor: auto;
}
.discover-card.discover-card-ai .discover-card-actions button {
	cursor: pointer;
}

/* Unclamp description on .is-expanded */
.discover-card.discover-card-ai.is-expanded .discover-card-desc {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
}
/* Unclamp the title too */
.discover-card.discover-card-ai.is-expanded .discover-card-title {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
}

/* Soft purple highlight on tap acknowledgment (same as .discover-card-item) */
.discover-card.discover-card-ai.is-expanded {
	border-color: rgba(124, 58, 237, 0.45) !important;
	box-shadow: 0 8px 26px -10px rgba(124, 58, 237, 0.32),
	            0 0 0 1px rgba(124, 58, 237, 0.18) inset !important;
	transition: border-color .18s ease, box-shadow .18s ease;
}
html.light-mode .discover-card.discover-card-ai.is-expanded {
	border-color: rgba(109, 40, 217, 0.40) !important;
	box-shadow: 0 8px 22px -10px rgba(109, 40, 217, 0.28),
	            0 0 0 1px rgba(109, 40, 217, 0.20) inset !important;
}

/* Mobile: lift any tighter desc clamp */
@media (max-width: 640px) {
	.discover-card.discover-card-ai.is-expanded .discover-card-desc {
		-webkit-line-clamp: unset !important;
		line-clamp: unset !important;
	}
}

/* ==========================================================================
   V6.8 patch 187 — profile.php "What makes you unique?" inline bio editor.
   Edit mode is gated by ?edit=bio on the URL (zero-JS toggle). The textarea
   and chip buttons mirror the canonical purple-themed surface used elsewhere
   on the profile (matches .profile-pin-card and friends from patch 185).
   ========================================================================== */
.profile-bio-form { margin-top: .5em; }
.profile-bio-textarea {
	width: 100%;
	min-height: 96px;
	padding: .7em .85em;
	border: 1px solid var(--purple-border);
	border-radius: 12px;
	background: var(--bg-raised);
	color: var(--text-primary);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	box-sizing: border-box;
	resize: vertical;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.profile-bio-textarea:focus {
	outline: none;
	border-color: var(--purple);
	box-shadow: 0 0 0 3px var(--purple-glow);
}
.profile-bio-textarea::placeholder { color: var(--text-secondary); opacity: .8; }
.profile-bio-form-row {
	display: flex;
	align-items: center;
	gap: .55em;
	margin-top: .6em;
	flex-wrap: wrap;
}
.profile-bio-save-btn,
.profile-bio-cancel-btn {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	padding: .45em .95em;
	border-radius: 999px;
	font-size: .92rem;
	font-weight: 600;
	border: 1px solid var(--purple-border);
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	line-height: 1.2;
}
.profile-bio-save-btn {
	background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%);
	color: #fff !important;
	border-color: var(--purple);
}
.profile-bio-save-btn:hover { filter: brightness(1.08); }
.profile-bio-cancel-btn {
	background: transparent;
	color: var(--text-secondary);
}
.profile-bio-cancel-btn:hover {
	color: var(--text-primary);
	border-color: var(--purple);
}
.profile-bio-charcount {
	color: var(--text-secondary);
	font-size: .85rem;
	margin-left: auto;
	font-variant-numeric: tabular-nums;
}
.profile-bio-edit-link {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	margin-top: .45em;
	font-size: .88rem;
	color: var(--text-secondary);
	text-decoration: none;
	opacity: .85;
	transition: color .15s ease, opacity .15s ease;
}
.profile-bio-edit-link:hover { color: var(--purple); opacity: 1; }
.profile-bio-empty-card {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: .75em 1.05em;
	margin-top: .35em;
	border-radius: 12px;
	border: 1px dashed var(--purple-border);
	background: rgba(124, 58, 237, 0.06);
	color: var(--text-secondary);
	text-decoration: none;
	font-style: italic;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.profile-bio-empty-card:hover {
	color: var(--text-primary);
	border-color: var(--purple);
	background: rgba(124, 58, 237, 0.12);
}
.profile-bio-empty-card i { color: var(--purple); font-style: normal; }
html.light-mode .profile-bio-empty-card {
	background: rgba(109, 40, 217, 0.05);
}
html.light-mode .profile-bio-empty-card:hover {
	background: rgba(109, 40, 217, 0.10);
}

/* ============================================================
   V6.8 patch 183 — Admin metrics conversion funnel
   Renders a 3-step Homepage → Sign-up page → New sign-ups flow
   with a separated "logins" callout so existing returning users
   are never confused with new acquisition.
   ============================================================ */
.admin-funnel {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 8px;
	margin-top: 20px;
	flex-wrap: nowrap;
}
.admin-funnel-step {
	flex: 1 1 0;
	min-width: 0;
	padding: 18px 14px 16px;
	border-radius: 14px;
	border: 1px solid rgba(124,58,237,0.30);
	background: linear-gradient(180deg, rgba(124,58,237,0.10), rgba(124,58,237,0.04));
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.admin-funnel-step-2 {
	border-color: rgba(167, 139, 250, 0.40);
	background: linear-gradient(180deg, rgba(167,139,250,0.14), rgba(167,139,250,0.05));
}
.admin-funnel-step-3 {
	border-color: rgba(34, 197, 94, 0.45);
	background: linear-gradient(180deg, rgba(34,197,94,0.14), rgba(34,197,94,0.05));
}
.admin-funnel-icon {
	width: 44px; height: 44px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.10);
	color: var(--purple, #a78bfa);
	font-size: 18px;
	margin-bottom: 4px;
}
.admin-funnel-step-3 .admin-funnel-icon { color: #4ade80; }
.admin-funnel-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-primary, #f5f3ff);
	letter-spacing: .02em;
}
.admin-funnel-val {
	font-size: 28px;
	font-weight: 800;
	color: var(--text-primary, #f5f3ff);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}
.admin-funnel-step-3 .admin-funnel-val { color: #86efac; }
.admin-funnel-sub {
	font-size: 11.5px;
}
.admin-funnel-arrow {
	flex: 0 0 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: rgba(255,255,255,0.45);
	font-size: 20px;
}
.admin-funnel-arrow-pct {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-primary, #f5f3ff);
	background: rgba(124,58,237,0.20);
	border: 1px solid rgba(124,58,237,0.35);
	border-radius: 999px;
	padding: 2px 10px;
	font-variant-numeric: tabular-nums;
}

.admin-funnel-headline {
	margin-top: 18px;
	padding: 16px 18px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(34,197,94,0.10));
	border: 1px solid rgba(124,58,237,0.30);
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 14px;
}
.admin-funnel-headline-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary, #f5f3ff);
}
.admin-funnel-headline-val {
	font-size: 36px;
	font-weight: 900;
	color: #86efac;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.admin-funnel-headline-sub {
	font-size: 12.5px;
	flex: 1 1 auto;
	text-align: right;
}

.admin-funnel-callout {
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(245, 158, 11, 0.06);
	border-left: 4px solid #f59e0b;
}
.admin-funnel-callout-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--text-primary, #f5f3ff);
	margin-bottom: 10px;
}
.admin-funnel-callout-head i { color: #f59e0b; }
.admin-funnel-callout-body {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.admin-funnel-callout-stat {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.admin-funnel-callout-num {
	font-size: 22px;
	font-weight: 800;
	color: #fbbf24;
	font-variant-numeric: tabular-nums;
}
.admin-funnel-callout-lbl {
	font-size: 12.5px;
	color: var(--text-secondary, rgba(245,243,255,0.65));
}
.admin-funnel-callout-note {
	font-size: 11.5px;
	font-style: italic;
}

/* Light mode */
html.light-mode .admin-funnel-step {
	background: linear-gradient(180deg, rgba(109,40,217,0.08), rgba(109,40,217,0.02));
	border-color: rgba(109,40,217,0.22);
}
html.light-mode .admin-funnel-step-2 {
	background: linear-gradient(180deg, rgba(139,92,246,0.10), rgba(139,92,246,0.03));
	border-color: rgba(139,92,246,0.28);
}
html.light-mode .admin-funnel-step-3 {
	background: linear-gradient(180deg, rgba(22,163,74,0.10), rgba(22,163,74,0.03));
	border-color: rgba(22,163,74,0.32);
}
html.light-mode .admin-funnel-label,
html.light-mode .admin-funnel-val,
html.light-mode .admin-funnel-headline-label { color: #2a1f4a; }
html.light-mode .admin-funnel-step-3 .admin-funnel-val { color: #16a34a; }
html.light-mode .admin-funnel-arrow { color: rgba(42,31,74,0.4); }
html.light-mode .admin-funnel-arrow-pct {
	color: #4c1d95;
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.25);
}
html.light-mode .admin-funnel-headline {
	background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(22,163,74,0.06));
	border-color: rgba(124,58,237,0.22);
}
html.light-mode .admin-funnel-headline-val { color: #16a34a; }
html.light-mode .admin-funnel-callout {
	background: rgba(245,158,11,0.07);
}
html.light-mode .admin-funnel-callout-head { color: #2a1f4a; }
html.light-mode .admin-funnel-callout-num { color: #b45309; }

/* Mobile — stack vertically with down-arrows */
@media (max-width: 720px) {
	.admin-funnel {
		flex-direction: column;
		gap: 6px;
	}
	.admin-funnel-step { padding: 14px 12px; }
	.admin-funnel-arrow {
		flex: 0 0 auto;
		flex-direction: row;
		padding: 4px 0;
	}
	.admin-funnel-arrow i { transform: rotate(90deg); }
	.admin-funnel-arrow-pct { font-size: 12.5px; }
	.admin-funnel-headline {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.admin-funnel-headline-sub { text-align: left; }
	.admin-funnel-callout-body { gap: 12px; flex-direction: column; }
}

/* ============================================================
   V6.8 patch 197 — promote .discover-bar-compact to a site-wide
   class so connect.php can use the same single-row hero that
   movies / tv / music / etc use via subpage.php. Rules mirror the
   <style>-scoped block inside subpage.php exactly so behaviour
   stays identical.
   ============================================================ */
.discover-bar.discover-bar-compact {
	flex-wrap: nowrap;
	gap: 12px;
	padding: 12px 16px;
	align-items: center;
	min-height: 56px;
}
.discover-bar.discover-bar-compact .discover-bar-title {
	margin: 0;
	line-height: 1.15;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.discover-bar.discover-bar-compact .discover-bar-title i {
	flex-shrink: 0;
}
@media (max-width: 600px) {
	.discover-bar.discover-bar-compact { padding: 10px 12px; gap: 10px; min-height: 48px; }
	.discover-bar.discover-bar-compact .discover-bar-title { font-size: 17px; }
	.discover-bar.discover-bar-compact .discover-bar-title i { font-size: 17px; }
}

/* ============================================================
   V6.9 patch 196 — Discover stream variety + gap fixes
   ============================================================
   Two issues this patch addresses:
   (a) The first stream row often ended at 4 cards with an empty
       5th grid cell — the next item in queue was a 2-col-spanning
       lobby card that couldn't fit in the last slot, so default
       grid-auto-flow:row punted it to row 2 and left col 5 empty.
   (b) Category cards without a description (e.g. Music — Elvis
       Presley shows only title + "Rock") stretched to match the
       tallest card in the row (movies/tv with full blurbs), so
       the body had a huge empty middle between meta and the
       action footer. Looked broken.

   Fix (a): grid-auto-flow:dense on the mixed stream — lets the
   browser pack later items into earlier empty cells, eliminating
   the trailing-empty-column glitch.

   Fix (b): cards that lack .discover-card-desc no longer stretch
   to fill the row's track. align-self:start lets them sit at the
   top of their cell with their natural height. If there is empty
   grid track below, it now reads as "this is just a smaller card"
   rather than "this card is broken with a void in the middle".
   ============================================================ */
.discover-stream[data-mixed] {
	grid-auto-flow: dense;
}
.discover-card-item:not(:has(.discover-card-desc)) {
	align-self: start;
}
.discover-card.discover-card-social:not(:has(.discover-card-desc)) {
	align-self: start;
}

/* ================================================================
   V6.8 patch 198 — Pink-gradient action button readability.

   Symptom: "Open lobby" link in the PvP lobby card rendered with
   lavender text (#7c86f7 = var(--purple)) on the pink-purple
   gradient — effectively invisible.

   Root cause: `.wrapper a { color: var(--purple) !important }` at
   spec (0,1,1) beat the inline `.pvp-lobby-btn { color: #fff !important }`
   at spec (0,1,0). Same trap hits `.subpage-lobby-btn` and any future
   `<a class="X-btn">` styled as a button.

   Fix:
   • Scope the color override with `.wrapper a.X-btn` (spec (0,2,1)) so
     it wins over both the offending rule and the `a:hover` variants.
   • Darken the pink endpoint (#16a34a → #15803d) so white-on-pink
     contrast clears WCAG AA (3.2:1 → 4.4:1).
   • Add a subtle text-shadow so the label stays crisp on the brighter
     half of the gradient on both desktop and mobile.
   • Restore the secondary variant's neutral background/text for both
     dark and light modes so it doesn't get caught by the global rule.
   ================================================================ */
.wrapper a.pvp-lobby-btn,
.wrapper a.subpage-lobby-btn,
a.pvp-lobby-btn,
a.subpage-lobby-btn,
button.pvp-lobby-btn,
button.subpage-lobby-btn {
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	background: linear-gradient(135deg, #6d28d9, #15803d) !important;
}
.wrapper a.pvp-lobby-btn:hover,
.wrapper a.subpage-lobby-btn:hover,
a.pvp-lobby-btn:hover,
a.subpage-lobby-btn:hover,
button.pvp-lobby-btn:hover,
button.subpage-lobby-btn:hover {
	color: #fff !important;
	background: linear-gradient(135deg, #7c3aed, #16a34a) !important;
	box-shadow: 0 6px 18px -6px rgba(21, 128, 61, 0.55);
}
/* Secondary variant: neutral surface, not the pink gradient.
   `.wrapper a.X.Y` is (0,3,1), beats the global `.wrapper a` (0,1,1)
   and the primary `.wrapper a.X-btn` (0,2,1) rule above. */
.wrapper a.pvp-lobby-btn.is-secondary,
a.pvp-lobby-btn.is-secondary,
button.pvp-lobby-btn.is-secondary {
	color: rgba(255, 255, 255, 0.92) !important;
	text-shadow: none;
	background: rgba(255, 255, 255, 0.08) !important;
}
html.light-mode .wrapper a.pvp-lobby-btn.is-secondary,
html.light-mode a.pvp-lobby-btn.is-secondary,
html.light-mode button.pvp-lobby-btn.is-secondary {
	color: #1e1b4b !important;
	background: rgba(0, 0, 0, 0.04) !important;
}
/* The PvP-hub "Open lobby" form button (#pvp-lobby-open-btn) ships
   the same pink gradient inline. The global `button:not(.X)…` rule
   usually overrides it with a solid purple gradient, but on screens
   where the global rule doesn't match (or when its exclusion list
   adds the button class), the same pink-end contrast issue surfaces.
   Pin readability here too. */
#pvp-lobby-open-btn {
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
/* Pink-gradient admin action chip used in admin/review tools — same
   white-on-pink contrast risk. Lift readability without changing the
   palette. */
.admin-review-genform button.admin-review-gen-btn,
.admin-review-chip.is-active,
.admin-review-statustab.is-active {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.30);
}

/* ============================================================
   V6.8 patch 201 — Vaults (coin-gated private circles)
   vault.php landing + detail surfaces.
   ============================================================ */
.vault-wrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 24px 18px 64px;
}
.vault-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 8px 0 24px;
	padding: 22px 24px;
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(15,10,40,0.55));
	border: 1px solid rgba(168,140,255,0.35);
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(20,8,55,0.30);
}
.vault-hero-icon {
	width: 64px; height: 64px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg,#7c3aed,#a855f7);
	color: #fff;
	font-size: 26px;
	flex-shrink: 0;
	box-shadow: 0 8px 24px rgba(124,58,237,0.45);
}
.vault-hero-text h1 {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.vault-hero-text p {
	margin: 0;
	color: var(--text-muted, #b9adda);
	line-height: 1.45;
}

/* Landing grid */
.vault-landing-grid {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.4fr);
	gap: 18px;
	margin-top: 6px;
}
@media (max-width: 720px) {
	.vault-landing-grid { grid-template-columns: 1fr; }
}
.vault-create h3,
.vault-list-pane h3,
.vault-invite-form h3,
.vault-roster h3,
.vault-danger-zone h3 {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	display: flex; align-items: center; gap: 8px;
}
.vault-help {
	margin: 0 0 12px;
	color: var(--text-muted, #b9adda);
	font-size: 13px;
	line-height: 1.4;
}
.vault-create-form label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: var(--text-muted, #b9adda);
	margin: 12px 0 6px;
}
.vault-input {
	width: 100%;
	padding: 10px 12px !important;
	border-radius: 10px !important;
	border: 1px solid rgba(168,140,255,0.30) !important;
	background: rgba(8,5,20,0.55) !important;
	color: var(--text, #f1ecff) !important;
	font: inherit;
	box-sizing: border-box;
}
.vault-input:focus {
	outline: none;
	border-color: rgba(168,140,255,0.65) !important;
	box-shadow: 0 0 0 3px rgba(168,140,255,0.20) !important;
}
textarea.vault-input { resize: vertical; min-height: 80px; }

/* Buttons */
.vault-btn-primary,
.vault-btn-secondary,
.vault-btn-danger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 10px;
	font-weight: 700;
	border: 1px solid transparent;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.2;
}
.vault-btn-primary {
	background: linear-gradient(135deg,#7c3aed,#a855f7);
	color: #fff;
}
.vault-btn-primary:hover { filter: brightness(1.08); }
.vault-btn-secondary {
	background: rgba(168,140,255,0.10);
	color: var(--text, #f1ecff);
	border-color: rgba(168,140,255,0.30);
}
.vault-btn-secondary:hover { background: rgba(168,140,255,0.18); }
.vault-btn-danger {
	background: rgba(220,38,38,0.15);
	color: #fdba74;
	border-color: rgba(220,38,38,0.40);
}
.vault-btn-danger:hover { background: rgba(220,38,38,0.25); }

/* List of vaults */
.vault-list-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 14px;
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(168,140,255,0.18);
	color: var(--text, #f1ecff);
	text-decoration: none;
	margin-bottom: 8px;
	transition: background 0.15s, border-color 0.15s;
}
.vault-list-item:hover {
	background: rgba(168,140,255,0.10);
	border-color: rgba(168,140,255,0.40);
	color: var(--text, #f1ecff);
	text-decoration: none;
}
.vault-list-item.is-pending {
	border-color: rgba(250,204,21,0.40);
	background: rgba(250,204,21,0.05);
}
.vault-list-icon {
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg,#7c3aed,#a855f7);
	color: #fff;
	border-radius: 50%;
	flex-shrink: 0;
}
.vault-list-body { flex: 1 1 auto; min-width: 0; }
.vault-list-title {
	font-weight: 700;
	font-size: 16px;
	display: flex; align-items: center; gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 2px;
}
.vault-list-desc {
	color: var(--text-muted, #b9adda);
	font-size: 13px;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vault-list-meta {
	display: flex;
	gap: 14px;
	font-size: 12px;
	color: var(--text-muted, #b9adda);
}
.vault-list-meta i { margin-right: 4px; }
.vault-list-chev {
	color: var(--text-muted, #b9adda);
	flex-shrink: 0;
}

.vault-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.vault-pill-owner { background: rgba(124,58,237,0.30); color: #ddd6fe; }
.vault-pill-pending { background: rgba(250,204,21,0.20); color: #fde68a; }

/* Detail view */
.vault-detail-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
}
.vault-detail-id {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.vault-detail-id > i {
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg,#7c3aed,#a855f7);
	color: #fff;
	border-radius: 50%;
	flex-shrink: 0;
}
.vault-detail-id h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}
.vault-desc {
	color: var(--text-muted, #b9adda);
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.5;
}
.vault-back {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--text-muted, #b9adda);
	text-decoration: none;
	font-size: 14px;
	padding: 8px 12px;
	border-radius: 8px;
}
.vault-back:hover { color: var(--text, #f1ecff); background: rgba(255,255,255,0.05); }

.vault-subnav {
	display: flex;
	gap: 4px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(168,140,255,0.20);
}
.vault-subnav-tab {
	padding: 10px 14px;
	color: var(--text-muted, #b9adda);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	font-weight: 600;
	font-size: 14px;
	display: inline-flex; align-items: center; gap: 6px;
}
.vault-subnav-tab:hover { color: var(--text, #f1ecff); }
.vault-subnav-tab.is-active {
	color: var(--text, #f1ecff);
	border-bottom-color: #a855f7;
}

.vault-invite-card {
	border: 1px solid rgba(250,204,21,0.30);
	background: rgba(250,204,21,0.05);
}
.vault-invite-actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

/* Posts feed */
.vault-composer textarea {
	width: 100%;
	min-height: 80px;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid rgba(168,140,255,0.30);
	background: rgba(8,5,20,0.55);
	color: var(--text, #f1ecff);
	font: inherit;
	resize: vertical;
	box-sizing: border-box;
}
.vault-composer-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text, #f1ecff);
}
.vault-composer-label i { margin-right: 6px; color: #a855f7; }
.vault-composer-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	gap: 10px;
	flex-wrap: wrap;
}
.vault-feed { margin-top: 14px; }
.vault-post {
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(168,140,255,0.18);
	margin-bottom: 10px;
}
.vault-post-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 13px;
}
.vault-post-user a {
	font-weight: 700;
	color: var(--text, #f1ecff);
	text-decoration: none;
}
.vault-post-user a:hover { text-decoration: underline; }
.vault-post-time { color: var(--text-muted, #b9adda); }
.vault-post-body {
	color: var(--text, #f1ecff);
	line-height: 1.5;
	word-wrap: break-word;
	white-space: pre-wrap;
}

/* Roster */
.vault-roster-list {
	list-style: none;
	margin: 0; padding: 0;
}
.vault-roster-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid rgba(168,140,255,0.10);
}
.vault-roster-item:last-child { border-bottom: none; }
.vault-roster-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vault-roster-name a {
	font-weight: 600;
	color: var(--text, #f1ecff);
	text-decoration: none;
}
.vault-roster-name a:hover { text-decoration: underline; }
.vault-roster-remove {
	background: transparent;
	color: #fdba74;
	border: 1px solid rgba(220,38,38,0.30);
	padding: 6px 10px;
	border-radius: 8px;
	cursor: pointer;
}
.vault-roster-remove:hover {
	background: rgba(220,38,38,0.15);
}
.vault-invite-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.vault-invite-row .vault-input { flex: 1 1 auto; }

.vault-danger-zone { margin-top: 12px; }

.vault-empty {
	text-align: center;
	color: var(--text-muted, #b9adda);
	padding: 26px 12px;
}
.vault-empty i {
	display: block;
	font-size: 32px;
	margin-bottom: 10px;
	opacity: 0.6;
}
.vault-empty p { margin: 0; line-height: 1.5; }

/* Light mode adjustments */
html.light-mode .vault-hero {
	background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(255,255,255,0.85));
	border-color: rgba(124,58,237,0.25);
}
html.light-mode .vault-list-item {
	background: rgba(124,58,237,0.04);
	border-color: rgba(124,58,237,0.18);
}
html.light-mode .vault-list-item:hover {
	background: rgba(124,58,237,0.10);
}
html.light-mode .vault-post {
	background: rgba(124,58,237,0.04);
	border-color: rgba(124,58,237,0.18);
}
html.light-mode .vault-input {
	background: #fff !important;
	color: #1a1330 !important;
	border-color: rgba(124,58,237,0.30) !important;
}
html.light-mode .vault-composer textarea {
	background: #fff;
	color: #1a1330;
	border-color: rgba(124,58,237,0.30);
}

/* ============================================================
   V6.8 patch 202 — Feedback widget (modal + admin list)
   ============================================================ */
/* Modal */
.weird-fb-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.weird-fb-modal.is-open { display: flex; }
.weird-fb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8,5,20,0.72);
	backdrop-filter: blur(6px);
}
.weird-fb-card {
	position: relative;
	z-index: 1;
	max-width: 460px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	background: linear-gradient(180deg,#1a1330,#0f0a25);
	color: #fff;
	border: 1px solid rgba(168,140,255,0.35);
	border-radius: 16px;
	padding: 24px 24px 18px;
	box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.weird-fb-card h3 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	display: flex; align-items: center; gap: 8px;
	color: #f1ecff;
}
.weird-fb-card h3 i { color: #a855f7; }
.weird-fb-help {
	margin: 0 0 16px;
	font-size: 13px;
	color: #b9adda;
	line-height: 1.45;
}
.weird-fb-x {
	position: absolute;
	top: 10px; right: 12px;
	width: 32px !important; height: 32px !important;
	min-width: 32px !important;
	padding: 0 !important;
	background: transparent !important;
	background-image: none !important;
	border: none !important;
	color: #b9adda;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px !important;
	box-shadow: none !important;
	/* V6.9 patch 229 family#4 — global button:not(...) reset was giving this
	   a gradient bg + 10px 22px padding, knocking the &times; glyph off
	   center. Force flex-center + 0 padding so the X sits true-center. */
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.weird-fb-x:hover { background: rgba(255,255,255,0.06) !important; color: #fff; }
.weird-fb-form label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: #cfc8e6;
	margin: 8px 0 6px;
}
.weird-fb-kind-row {
	display: flex; gap: 6px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.weird-fb-kind {
	flex: 1 1 0;
	min-width: 90px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 10px;
	border: 1px solid rgba(168,140,255,0.30);
	border-radius: 10px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #cfc8e6;
	background: rgba(255,255,255,0.02);
	transition: all 0.15s;
	margin: 0 !important;
}
.weird-fb-kind input[type="radio"] {
	width: auto !important;
	margin: 0 !important;
	accent-color: #a855f7;
}
.weird-fb-kind:has(input:checked) {
	background: rgba(168,140,255,0.20);
	border-color: rgba(168,140,255,0.65);
	color: #f1ecff;
}
.weird-fb-form textarea {
	width: 100%;
	min-height: 110px;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid rgba(168,140,255,0.30);
	background: rgba(8,5,20,0.55);
	color: #f1ecff;
	font: inherit;
	resize: vertical;
	box-sizing: border-box;
}
.weird-fb-form textarea:focus {
	outline: none;
	border-color: rgba(168,140,255,0.65);
	box-shadow: 0 0 0 3px rgba(168,140,255,0.20);
}
.weird-fb-shot-input { width: 100%; }
.weird-fb-shot-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.weird-fb-shot-preview[hidden] { display: none !important; }
.weird-fb-shot-item { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid rgba(168,140,255,0.30); background: rgba(15,23,42,0.38); }
.weird-fb-shot-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.weird-fb-shot-clear { position: absolute; top: 6px; right: 6px; width: 28px !important; height: 28px !important; min-width: 28px !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: rgba(15,23,42,0.78) !important; color: #fff !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
.weird-fb-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 14px;
}
.weird-fb-cancel {
	background: transparent;
	color: #cfc8e6;
	border: 1px solid rgba(168,140,255,0.30);
	padding: 9px 16px;
	border-radius: 9px;
	font-weight: 600;
	cursor: pointer;
}
.weird-fb-cancel:hover { background: rgba(168,140,255,0.10); }
.weird-fb-submit {
	background: linear-gradient(135deg,#7c3aed,#a855f7);
	color: #fff;
	padding: 9px 18px;
	border-radius: 9px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
}
.weird-fb-submit:hover { filter: brightness(1.08); }
.weird-fb-submit:disabled, .weird-fb-submit.is-loading {
	opacity: 0.7;
	cursor: not-allowed;
}
.weird-fb-status {
	margin-top: 10px;
	font-size: 13px;
	min-height: 18px;
}
.weird-fb-status.is-ok      { color: #4ade80; }
.weird-fb-status.is-err     { color: #fdba74; }
.weird-fb-status.is-pending { color: #b9adda; }

body.weird-fb-open { overflow: hidden; }

@media (max-width: 520px) {
	.weird-fb-card { padding: 22px 18px 16px; max-width: 100%; }
	.weird-fb-kind { font-size: 12px; padding: 8px 6px; min-width: 0; }
}

/* Light mode */
html.light-mode .weird-fb-card {
	background: linear-gradient(180deg,#ffffff,#f6f2ff);
	color: #1a1330;
	border-color: rgba(124,58,237,0.30);
}
html.light-mode .weird-fb-card h3 { color: #1a1330; }
html.light-mode .weird-fb-help { color: #4b3a78; }
html.light-mode .weird-fb-x { color: #4b3a78; }
html.light-mode .weird-fb-form label { color: #4b3a78; }
html.light-mode .weird-fb-form textarea {
	background: #fff;
	color: #1a1330;
	border-color: rgba(124,58,237,0.25);
}
html.light-mode .weird-fb-kind {
	background: #fff;
	color: #4b3a78;
	border-color: rgba(124,58,237,0.25);
}
html.light-mode .weird-fb-kind:has(input:checked) {
	background: rgba(124,58,237,0.10);
	color: #1a1330;
}

/* Admin list */
.admin-feedback-card { padding: 22px; }
.admin-feedback-head h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
	display: flex; align-items: center; gap: 8px;
}
.fb-filters {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	margin: 16px 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(168,140,255,0.20);
}
.fb-filter-group {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}
.fb-filter-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted, #b9adda);
	margin-right: 4px;
}
.fb-chip {
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid rgba(168,140,255,0.25);
	background: rgba(255,255,255,0.03);
	color: var(--text-muted, #b9adda);
	text-decoration: none;
	display: inline-flex; align-items: center; gap: 6px;
}
.fb-chip:hover {
	background: rgba(168,140,255,0.10);
	color: var(--text, #f1ecff);
	text-decoration: none;
}
.fb-chip.is-active {
	background: linear-gradient(135deg,#7c3aed,#a855f7);
	color: #fff !important;
	border-color: transparent;
}
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item {
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(168,140,255,0.18);
}
.fb-item.is-archived { opacity: 0.72; }
.fb-item-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.fb-item-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 13px;
}
.fb-kind-pill {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.10);
}
.fb-item-user a {
	color: var(--text, #f1ecff);
	text-decoration: none;
	font-weight: 600;
}
.fb-item-user a:hover { text-decoration: underline; }
.fb-item-time { color: var(--text-muted, #b9adda); font-size: 12px; }
.fb-pill-archived {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(180,180,180,0.18);
	color: #cfc8e6;
}
.fb-item-actions { display: flex; gap: 6px; }
.fb-item-actions .btn {
	padding: 6px 10px;
	font-size: 13px;
}
.fb-item-body {
	color: var(--text, #f1ecff);
	line-height: 1.5;
	white-space: pre-wrap;
	word-wrap: break-word;
	margin-bottom: 8px;
}
.fb-item-shots {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 10px 0 8px;
}
.fb-item-shots a {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.12);
	background: rgba(15,23,42,.30);
}
.fb-item-shots img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fb-item-context {
	font-size: 12px;
	color: var(--text-muted, #b9adda);
	margin-top: 4px;
	word-wrap: break-word;
}
.fb-item-context a { color: var(--text, #f1ecff); }
.fb-item-ua { font-family: monospace; }
.fb-note-details {
	margin-top: 8px;
	padding: 8px 0 0;
	border-top: 1px solid rgba(168,140,255,0.12);
}
.fb-note-details summary {
	cursor: pointer;
	font-size: 12px;
	color: var(--text-muted, #b9adda);
	font-weight: 600;
}
.fb-note-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}
.fb-note-form textarea {
	width: 100%;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid rgba(168,140,255,0.30);
	background: rgba(8,5,20,0.55);
	color: var(--text, #f1ecff);
	font: inherit;
	resize: vertical;
}
.fb-note-form button { align-self: flex-end; }

/* ================================================================
   V6.9 patch 200 — Profile top redesign (hero + actions)
   ----------------------------------------------------------------
   Goals:
     1) Make the top profile section feel intentional, not vertically
        stretched by oversized full-width pills.
     2) Normalize button styles so global button gradients do not leak
        into secondary actions.
     3) Keep desktop compact (info on left, action rail on right) and
        preserve a clean stacked layout on tablet/mobile.
   ================================================================ */

@media (min-width: 1081px) {
	.profile-hero-content {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) minmax(310px, 420px) !important;
		column-gap: 22px;
		row-gap: 8px;
		align-items: start;
		text-align: left;
		padding: 20px 22px 20px !important;
	}
	.profile-hero-content > .profile-hero-avatar-col {
		grid-column: 1;
		grid-row: 1 / -1;
		align-self: start;
		margin-top: 2px;
	}
	.profile-hero-main {
		grid-column: 2;
		grid-row: 1 / -1;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		min-width: 0;
	}
	.profile-hero-main .profile-hero-name { margin: 0; }
	.profile-hero-main .profile-hero-pct {
		justify-self: start;
		margin: 2px 0 0;
	}
	.profile-hero-main .profile-hero-meta {
		justify-content: flex-start;
		margin: 4px 0 0;
	}
	.profile-hero-rail {
		grid-column: 3;
		grid-row: 1 / -1;
		align-self: stretch;
		width: 100%;
		padding: 12px;
		border-radius: 16px;
		border: 1px solid rgba(124,58,237,0.24);
		background: linear-gradient(170deg, rgba(7,12,30,0.56), rgba(7,12,30,0.28));
	}
}

@media (min-width: 641px) and (max-width: 1080px) {
	.profile-hero-content {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 18px;
		row-gap: 8px;
		align-items: start;
		text-align: left;
		padding: 18px 18px 18px !important;
	}
	.profile-hero-content > .profile-hero-avatar-col {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
	}
	.profile-hero-main {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 7px;
	}
	.profile-hero-main .profile-hero-name { margin: 0; }
	.profile-hero-main .profile-hero-meta {
		justify-content: flex-start;
		margin: 4px 0 0;
	}
	.profile-hero-rail {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		padding: 10px;
		border-radius: 14px;
		border: 1px solid rgba(124,58,237,0.20);
		background: rgba(6,10,24,0.28);
	}
}

.profile-hero-rail .profile-hero-actions {
	margin-top: 0 !important;
	gap: 10px;
}
.profile-hero-rail .profile-hero-actions-main,
.profile-hero-rail .profile-hero-actions-safety {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.profile-hero-rail .profile-hero-actions-safety {
	padding-top: 8px;
	border-top: 1px dashed rgba(124,58,237,0.28);
}
.profile-hero-rail .profile-hero-actions-main .profile-action-primary,
.profile-hero-rail .profile-hero-actions-main .profile-action-following {
	grid-column: 1 / -1;
}

.profile-hero .profile-action,
.profile-hero button.profile-action,
.profile-hero a.profile-action,
.profile-hero a.profile-action:link,
.profile-hero a.profile-action:visited {
	min-height: 44px;
	padding: 11px 14px !important;
	border-radius: 12px !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	background: rgba(6, 12, 30, 0.76) !important;
	background-image: none !important;
	border: 1px solid rgba(156, 163, 175, 0.28) !important;
	color: var(--text-primary) !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.profile-hero .profile-action:hover {
	background: rgba(18, 28, 58, 0.82) !important;
	border-color: rgba(167, 139, 250, 0.62) !important;
	transform: translateY(-1px);
}

.profile-hero .profile-action.profile-action-primary {
	background: linear-gradient(135deg, #8b5cf6 0%, #5b42f3 100%) !important;
	border-color: rgba(167,139,250,0.9) !important;
	color: #fff !important;
	box-shadow: 0 10px 24px -14px rgba(124,58,237,0.88) !important;
}
.profile-hero .profile-action.profile-action-primary:hover {
	background: linear-gradient(135deg, #9d74ff 0%, #6c57ff 100%) !important;
	color: #fff !important;
}

.profile-hero .profile-action.profile-action-following,
.profile-hero a.profile-action.profile-action-following,
.profile-hero a.profile-action.profile-action-following:visited {
	background: linear-gradient(135deg, rgba(34,197,94,0.30), rgba(20,83,45,0.36)) !important;
	border-color: rgba(74, 222, 128, 0.65) !important;
	color: #f0fdf4 !important;
}

.profile-hero .profile-action.weird-tip-btn {
	border-color: rgba(245, 158, 11, 0.52) !important;
	background: linear-gradient(135deg, rgba(245,158,11,0.16), rgba(120,53,15,0.20)) !important;
}
.profile-hero .profile-action.weird-tip-btn i { color: #fbbf24 !important; }

.profile-hero .profile-action.profile-action-block,
.profile-hero .profile-action.profile-action-report {
	border-color: rgba(249, 115, 22, 0.52) !important;
	background: rgba(35, 9, 18, 0.54) !important;
}
.profile-hero .profile-action.profile-action-block i,
.profile-hero .profile-action.profile-action-report i { color: #fb923c !important; }

html.light-mode .profile-hero-rail {
	background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246,242,255,0.82));
	border-color: rgba(124,58,237,0.26);
}
html.light-mode .profile-hero .profile-action,
html.light-mode .profile-hero button.profile-action,
html.light-mode .profile-hero a.profile-action,
html.light-mode .profile-hero a.profile-action:link,
html.light-mode .profile-hero a.profile-action:visited {
	background: #ffffff !important;
	border-color: rgba(124,58,237,0.26) !important;
	color: #1a1330 !important;
}
html.light-mode .profile-hero .profile-action:hover {
	background: rgba(124,58,237,0.10) !important;
	border-color: rgba(124,58,237,0.48) !important;
}
html.light-mode .profile-hero .profile-action.profile-action-primary {
	color: #fff !important;
}
html.light-mode .profile-hero .profile-action.profile-action-following,
html.light-mode .profile-hero a.profile-action.profile-action-following,
html.light-mode .profile-hero a.profile-action.profile-action-following:visited {
	color: #14532d !important;
	background: linear-gradient(135deg, rgba(187,247,208,0.70), rgba(134,239,172,0.50)) !important;
	border-color: rgba(22,163,74,0.45) !important;
}

@media (max-width: 640px) {
	.profile-hero-content {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 18px 14px 16px !important;
		gap: 8px;
	}
	.profile-hero-main {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 7px;
		width: 100%;
	}
	.profile-hero-main .profile-hero-meta {
		justify-content: center;
		margin: 4px 0 0;
	}
	.profile-hero-rail {
		width: 100%;
		padding: 8px;
		border-radius: 12px;
		border: 1px solid rgba(124,58,237,0.22);
		background: rgba(6,10,24,0.26);
	}
	.profile-hero-rail .profile-hero-actions-main,
	.profile-hero-rail .profile-hero-actions-safety {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
	}
	.profile-hero .profile-action,
	.profile-hero button.profile-action,
	.profile-hero a.profile-action,
	.profile-hero a.profile-action:link,
	.profile-hero a.profile-action:visited {
		min-height: 40px;
		padding: 9px 10px !important;
		font-size: 12.5px;
	}
}

/* ================================================================
   V6.9 patch 200b — Compact action board (6-7 button friendly)
   ----------------------------------------------------------------
   User feedback: the first redesign still felt too large/heavy.
   This pass makes every action a compact tile and uses a consistent
   dense grid that looks balanced whether we render 6 or 7 actions.
   ================================================================ */
.profile-hero-rail {
	padding: 9px !important;
	border-radius: 14px;
}

.profile-hero-rail .profile-hero-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
	align-items: stretch;
}

/* Flatten wrappers so all actions flow into one compact board. */
.profile-hero-rail .profile-hero-actions-main,
.profile-hero-rail .profile-hero-actions-safety {
	display: contents;
}

/* Safety section is now visually integrated; divider removed. */
.profile-hero-rail .profile-hero-actions-safety {
	padding-top: 0;
	border-top: 0;
}

.profile-hero-rail .profile-hero-actions-main .profile-action-primary,
.profile-hero-rail .profile-hero-actions-main .profile-action-following {
	grid-column: auto !important;
}

.profile-hero-rail .profile-action-form {
	margin: 0;
	width: 100%;
	display: block;
}

.profile-hero .profile-action,
.profile-hero button.profile-action,
.profile-hero a.profile-action,
.profile-hero a.profile-action:link,
.profile-hero a.profile-action:visited {
	min-height: 36px;
	height: 36px;
	padding: 7px 9px !important;
	border-radius: 10px !important;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	gap: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profile-hero .profile-action i {
	font-size: 12px;
	flex: 0 0 auto;
}

.profile-hero .profile-action.profile-action-primary,
.profile-hero .profile-action.profile-action-following {
	box-shadow: none !important;
}

@media (min-width: 1081px) {
	.profile-hero-rail .profile-hero-actions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}
}

@media (min-width: 641px) and (max-width: 1080px) {
	.profile-hero-rail .profile-hero-actions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}
	.profile-hero .profile-action,
	.profile-hero button.profile-action,
	.profile-hero a.profile-action,
	.profile-hero a.profile-action:link,
	.profile-hero a.profile-action:visited {
		min-height: 35px;
		height: 35px;
		font-size: 12px;
		padding: 7px 8px !important;
	}
}

@media (max-width: 760px) {
	.profile-hero-rail .profile-hero-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
	}
	.profile-hero .profile-action,
	.profile-hero button.profile-action,
	.profile-hero a.profile-action,
	.profile-hero a.profile-action:link,
	.profile-hero a.profile-action:visited {
		min-height: 34px;
		height: 34px;
		font-size: 12px;
		padding: 6px 8px !important;
		border-radius: 9px !important;
	}
}

/* Global `button:not(...)` reset is extremely specific. Anchor actions
   already use compact tiles, but button actions (Follow/Tip/Block) were
   still inheriting giant pill geometry. Use #main-scoped overrides to
   deterministically beat the reset only inside profile hero. */
#main .profile-hero button.profile-action {
	min-height: 36px !important;
	height: 36px !important;
	padding: 7px 9px !important;
	border-radius: 10px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	gap: 6px !important;
	background: rgba(6, 12, 30, 0.76) !important;
	background-image: none !important;
	border: 1px solid rgba(156, 163, 175, 0.28) !important;
	color: var(--text-primary) !important;
	box-shadow: none !important;
}

#main .profile-hero button.profile-action:hover {
	background: rgba(18, 28, 58, 0.82) !important;
	border-color: rgba(167, 139, 250, 0.62) !important;
}

#main .profile-hero button.profile-action.profile-action-primary {
	background: linear-gradient(135deg, #8b5cf6 0%, #5b42f3 100%) !important;
	border-color: rgba(167,139,250,0.90) !important;
	color: #fff !important;
}

#main .profile-hero button.profile-action.profile-action-following {
	background: linear-gradient(135deg, rgba(34,197,94,0.30), rgba(20,83,45,0.36)) !important;
	border-color: rgba(74,222,128,0.65) !important;
	color: #f0fdf4 !important;
}

#main .profile-hero button.profile-action.weird-tip-btn {
	border-color: rgba(245, 158, 11, 0.52) !important;
	background: linear-gradient(135deg, rgba(245,158,11,0.16), rgba(120,53,15,0.20)) !important;
}
#main .profile-hero button.profile-action.weird-tip-btn i { color: #fbbf24 !important; }

#main .profile-hero button.profile-action.profile-action-block {
	border-color: rgba(249, 115, 22, 0.52) !important;
	background: rgba(35, 9, 18, 0.54) !important;
	color: var(--text-primary) !important;
}
#main .profile-hero button.profile-action.profile-action-block i { color: #fb923c !important; }

/* Balanced row splits for the common profile-action counts. */
.profile-hero-rail.profile-actions-6 .profile-hero-actions {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profile-hero-rail.profile-actions-7 .profile-hero-actions {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 641px) and (max-width: 1080px) {
	#main .profile-hero button.profile-action {
		min-height: 44px !important;
		height: auto !important;
		font-size: 12px !important;
		padding: 7px 8px !important;
	}
}

@media (max-width: 760px) {
	#main .profile-hero button.profile-action {
		min-height: 44px !important;
		height: auto !important;
		font-size: 12px !important;
		padding: 7px 8px !important;
		border-radius: 9px !important;
	}
}

/* V6.9 patch 206 — profile action board rollback (mobile icon/text fix).
   Patch 200b compacted tiles too aggressively (fixed 34-36px heights,
   ellipsis, dense 3/4-col grids), which clipped icons and truncated
   labels like "Challenge" in the app shell. Restore readable geometry.
   Also hide legacy safety-foot manage link if an old cached DOM still
   contains it. */
.profile-hero-rail .profile-hero-safety-foot { display: none !important; }

.profile-hero-rail .profile-hero-actions,
.profile-hero-rail.profile-actions-6 .profile-hero-actions,
.profile-hero-rail.profile-actions-7 .profile-hero-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.profile-hero .profile-action,
.profile-hero button.profile-action,
.profile-hero a.profile-action,
.profile-hero a.profile-action:link,
.profile-hero a.profile-action:visited,
#main .profile-hero button.profile-action {
	/* V6.9 — 44px is the minimum comfortable tap target across
	   mobile/app, tablet, and desktop breakpoints. */
	min-height: 44px !important;
	height: auto !important;
	padding: 10px 12px !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
	gap: 8px !important;
}

.profile-hero .profile-action i,
#main .profile-hero button.profile-action i {
	font-size: 14px !important;
	line-height: 1;
	flex: 0 0 auto;
}

@media (min-width: 1081px) {
	.profile-hero-rail .profile-hero-actions,
	.profile-hero-rail.profile-actions-6 .profile-hero-actions,
	.profile-hero-rail.profile-actions-7 .profile-hero-actions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ============================================================
   V6.9 patch 205 — Mobile / native-app bottom tab bar
   ============================================================
   Markup in footer.php (gated to signed-in users only). Visible on
   mobile web ≤720px and in the Capacitor-wrapped app on any width.
   Hidden on desktop web. Tabs: Discover · Connect · Play · Messages
   · Profile.

   Native app feel:
     - Translucent surface with backdrop-filter blur
     - Safe-area-inset-bottom for notch / home-indicator
     - 56px usable height + safe-area, never more
     - Subtle top divider so it floats over content
     - Tab tap target = full column, 48px+ minimum (WCAG 2.5.5)
     - No focus outline outside :focus-visible (looks "appy")

   The body gets a matching bottom padding via :has() so page
   content never hides behind the bar. Existing guest-sticky-cta
   never co-occurs (it's signed-out only) so no stacking conflict.
============================================================ */
.weird-tabbar {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 1035;
	background: rgba(15, 12, 28, 0.84);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: saturate(1.4) blur(18px);
	-webkit-backdrop-filter: saturate(1.4) blur(18px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.45);
}
html.light-mode .weird-tabbar {
	background: rgba(255, 255, 255, 0.88);
	border-top: 1px solid rgba(124, 58, 237, 0.12);
	box-shadow: 0 -8px 24px -16px rgba(60, 40, 120, 0.18);
}
.weird-tabbar-item {
	flex: 1 1 0;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 8px 4px 6px;
	min-height: 56px;
	text-decoration: none !important;
	color: #94a3b8 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.18s ease, transform 0.18s ease;
}
.weird-tabbar a.weird-tabbar-item,
.weird-tabbar a.weird-tabbar-item:link,
.weird-tabbar a.weird-tabbar-item:visited,
.weird-tabbar a.weird-tabbar-item:hover { color: #94a3b8 !important; }
.weird-tabbar a.weird-tabbar-item.is-active,
.weird-tabbar a.weird-tabbar-item.is-active:link,
.weird-tabbar a.weird-tabbar-item.is-active:visited,
.weird-tabbar a.weird-tabbar-item.is-active:hover { color: #a78bfa !important; }
html.light-mode .weird-tabbar a.weird-tabbar-item,
html.light-mode .weird-tabbar a.weird-tabbar-item:link,
html.light-mode .weird-tabbar a.weird-tabbar-item:visited,
html.light-mode .weird-tabbar a.weird-tabbar-item:hover { color: #64748b !important; }
html.light-mode .weird-tabbar a.weird-tabbar-item.is-active,
html.light-mode .weird-tabbar a.weird-tabbar-item.is-active:link,
html.light-mode .weird-tabbar a.weird-tabbar-item.is-active:visited,
html.light-mode .weird-tabbar a.weird-tabbar-item.is-active:hover { color: #6d28d9 !important; }
.weird-tabbar-item:active { transform: scale(0.94); }
.weird-tabbar-item:focus-visible {
	outline: 2px solid rgba(124, 58, 237, 0.85);
	outline-offset: -4px;
	border-radius: 12px;
}
.weird-tabbar-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px; height: 28px;
	font-size: 19px;
	line-height: 1;
}
.weird-tabbar-item.is-active .weird-tabbar-icon::before {
	content: "";
	position: absolute;
	left: -6px; right: -6px;
	top: -4px; bottom: -4px;
	border-radius: 12px;
	background: rgba(124, 58, 237, 0.18);
	z-index: -1;
}
html.light-mode .weird-tabbar-item.is-active .weird-tabbar-icon::before {
	background: rgba(124, 58, 237, 0.10);
}
.weird-tabbar-label {
	font-size: 10.5px;
	line-height: 1;
}
.weird-tabbar-badge {
	position: absolute;
	top: -4px; right: -8px;
	min-width: 16px; height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: #fff;
	font-size: 9.5px;
	font-weight: 800;
	line-height: 16px;
	text-align: center;
	box-shadow: 0 0 0 2px rgba(15, 12, 28, 0.84), 0 8px 16px -10px rgba(34,197,94,.9);
}
.weird-tabbar-badge.is-dot {
	top: -2px;
	right: -5px;
	min-width: 10px;
	width: 10px;
	height: 10px;
	padding: 0;
	font-size: 0;
	line-height: 10px;
}
html.light-mode .weird-tabbar-badge {
	box-shadow: 0 0 0 2px #fff, 0 8px 16px -12px rgba(22,163,74,.5);
}

/* Mobile/tablet web: show while tablet layout uses the app-style nav. */
@media (max-width: 1024px) {
	.weird-tabbar { display: flex; }
}
/* Capacitor-wrapped app: show on all widths (covers iPad portrait, etc.). */
body.is-native-app .weird-tabbar { display: flex; }

.weird-explore-sheet[hidden] {
	display: none !important;
}
.weird-explore-sheet {
	position: fixed;
	inset: 0;
	z-index: 1042;
	pointer-events: none;
}
.weird-explore-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 3, 12, 0.58);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	pointer-events: auto;
}
.weird-explore-sheet-card {
	position: absolute;
	left: max(8px, env(safe-area-inset-left, 0px));
	right: max(8px, env(safe-area-inset-right, 0px));
	bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	max-width: 560px;
	max-height: min(72vh, 500px);
	margin: 0 auto;
	padding: 10px;
	border-radius: 18px;
	border: 1px solid rgba(167,139,250,0.40);
	background: linear-gradient(180deg, rgba(7, 9, 18, 0.99), rgba(13, 16, 31, 0.99));
	box-shadow: 0 28px 80px -26px rgba(0,0,0,0.94), 0 0 0 1px rgba(255,255,255,0.06) inset, 0 1px 0 rgba(255,255,255,0.09) inset;
	backdrop-filter: saturate(1.45) blur(22px);
	-webkit-backdrop-filter: saturate(1.45) blur(22px);
	overflow: auto;
	pointer-events: auto;
}
html.light-mode .weird-explore-sheet-card {
	background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,244,255,0.99));
	border-color: rgba(124,58,237,0.30);
	box-shadow: 0 28px 74px -30px rgba(44,31,85,0.46), 0 0 0 1px rgba(255,255,255,0.92) inset;
}
.weird-explore-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 0 2px 8px;
}
.weird-explore-sheet-head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 850;
	line-height: 1.1;
	color: #f8fafc;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.weird-explore-sheet-head h2 i { color: #a78bfa; }
.weird-explore-sheet-head p {
	margin: 4px 0 0;
	font-size: 11.5px;
	line-height: 1.35;
	color: #cbd5e1;
}
html.light-mode .weird-explore-sheet-head h2 { color: #24163f; }
html.light-mode .weird-explore-sheet-head p { color: #475569; }
.weird-explore-sheet-close {
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	padding: 0 !important;
	border-radius: 12px !important;
	border: 1px solid rgba(167,139,250,0.30) !important;
	background: rgba(255,255,255,0.075) !important;
	background-image: none !important;
	color: #f8fafc !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
html.light-mode .weird-explore-sheet-close {
	background: rgba(124,58,237,0.08) !important;
	color: #24163f !important;
}
.weird-explore-sheet-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}
.weird-explore-sheet-item,
.weird-explore-sheet-item:visited {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	align-items: center;
	gap: 7px;
	min-height: 42px;
	padding: 6px 8px;
	border-radius: 12px;
	border: 1px solid rgba(148,163,184,0.15);
	background: rgba(16,20,36,0.88);
	color: #f8fafc !important;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none !important;
}
.weird-explore-sheet-item:hover,
.weird-explore-sheet-item:focus-visible,
.weird-explore-sheet-item.is-active {
	border-color: var(--cat-ring-strong, rgba(167,139,250,0.54));
	background: linear-gradient(90deg, var(--cat-wash, rgba(124,58,237,0.14)), rgba(255,255,255,0.055));
	color: #f8fafc !important;
}
html.light-mode .weird-explore-sheet-item,
html.light-mode .weird-explore-sheet-item:visited {
	background: rgba(255,255,255,0.82);
	border-color: rgba(51,65,85,0.10);
	color: #24163f !important;
}
html.light-mode .weird-explore-sheet-item:hover,
html.light-mode .weird-explore-sheet-item:focus-visible,
html.light-mode .weird-explore-sheet-item.is-active {
	background: linear-gradient(90deg, var(--cat-wash, rgba(124,58,237,0.10)), rgba(255,255,255,0.92));
	border-color: var(--cat-ring-strong, rgba(124,58,237,0.30));
	color: #24163f !important;
}
.weird-explore-sheet-icon {
	width: 30px;
	height: 30px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cat-icon-bg, rgba(124,58,237,0.18));
	color: var(--cat-accent, #a78bfa);
	font-size: 12px;
	box-shadow: 0 0 0 1px var(--cat-ring, rgba(167,139,250,0.22)) inset;
}
@media (min-width: 640px) and (max-width: 1024px) {
	.weird-explore-sheet-card {
		max-width: 760px;
		padding: 12px;
	}
	.weird-explore-sheet-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.weird-explore-sheet-item,
	.weird-explore-sheet-item:visited {
		grid-template-columns: 28px minmax(0, 1fr);
		min-height: 40px;
		font-size: 12px;
	}
	.weird-explore-sheet-icon {
		width: 28px;
		height: 28px;
		font-size: 11.5px;
	}
}

/* Make room for the bar so page content never hides behind it. The
   :has() selector is supported in every browser the app ships to. */
@media (max-width: 1024px) {
	body:has(.weird-tabbar) {
		padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	}
	body.page-discover:has(.weird-tabbar) .discover-audience {
		position: sticky !important;
		bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
		z-index: 1034 !important;
		margin-top: 10px !important;
		margin-bottom: 14px !important;
		box-shadow: 0 18px 36px -24px rgba(20,16,40,.32) !important;
	}
}

/* ============================================================
   V6.9 patch 227 — Native app footer + floating tabbar
   ============================================================
   Footer now reads like app/settings chrome instead of marketing:
   compact brand row, grouped settings-style links, native share,
   and a floating frosted bottom tabbar with safe-area clearance.
============================================================ */
footer.weird-native-footer {
	background:
		linear-gradient(180deg, rgba(12,10,20,0.72), rgba(12,10,20,0.94)),
		linear-gradient(120deg, rgba(124,58,237,0.10), rgba(6,182,212,0.06) 46%, rgba(34,197,94,0.07)) !important;
	background-image:
		linear-gradient(180deg, rgba(12,10,20,0.72), rgba(12,10,20,0.94)),
		linear-gradient(120deg, rgba(124,58,237,0.10), rgba(6,182,212,0.06) 46%, rgba(34,197,94,0.07)) !important;
	border-top: 1px solid rgba(167,139,250,0.16) !important;
	padding: 28px 0 34px !important;
	margin-top: 28px !important;
	color: var(--text-primary, #f8fafc) !important;
	text-align: left !important;
}
.weird-footer-shell {
	width: min(1120px, calc(100vw - 32px));
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.weird-footer-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}
.weird-footer-brand {
	display: inline-flex !important;
	align-items: center !important;
	gap: 11px !important;
	min-width: 0 !important;
	color: inherit !important;
	text-decoration: none !important;
}
.weird-footer-mark {
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	height: 31px;
	min-height: 31px;
	max-height: 31px;
	margin-right: 0;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	background: transparent;
	filter: none;
	flex: 0 0 40px;
	overflow: hidden;
}
.weird-footer-mark img { width: 40px !important; min-width: 0 !important; max-width: 40px !important; height: 31px !important; max-height: 31px !important; display: block; object-fit: contain; filter: none !important; opacity: 1 !important; }
html.light-mode .weird-footer-mark img { content: url('/img/logo/weird_w_psd_light.png?v=3'); filter: none !important; }
.weird-footer-brand-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.1;
}
.weird-footer-brand-copy strong {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 18px;
	font-weight: 800;
	color: var(--text-primary, #fff);
}
.weird-footer-brand-copy small {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 650;
	color: rgba(196,181,253,0.72);
}
.weird-footer-share {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	min-height: 40px !important;
	padding: 0 14px !important;
	border-radius: 14px !important;
	border: 1px solid rgba(167,139,250,0.24) !important;
	background: rgba(255,255,255,0.055) !important;
	color: rgba(248,250,252,0.92) !important;
	text-decoration: none !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	box-shadow: 0 10px 24px -18px rgba(0,0,0,0.70), 0 1px 0 rgba(255,255,255,0.05) inset !important;
	-webkit-tap-highlight-color: transparent;
}
.weird-footer-share:hover,
.weird-footer-share:focus-visible {
	background: rgba(124,58,237,0.22) !important;
	border-color: rgba(196,181,253,0.44) !important;
	color: #fff !important;
	outline: none !important;
}
.weird-footer-share:active { transform: scale(0.96); }
.weird-footer-groups {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.weird-footer-group {
	min-width: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(167,139,250,0.14);
	border-radius: 18px;
	background: rgba(255,255,255,0.035);
	overflow: hidden;
	box-shadow: 0 18px 34px -30px rgba(0,0,0,0.72), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.weird-footer-group h2 {
	margin: 0 !important;
	padding: 11px 14px 8px !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: rgba(196,181,253,0.72) !important;
	font-family: 'Inter', system-ui, sans-serif !important;
}
.weird-footer-group a {
	display: grid !important;
	grid-template-columns: 22px minmax(0, 1fr) 12px !important;
	align-items: center !important;
	gap: 9px !important;
	min-height: 46px !important;
	padding: 0 14px !important;
	border-top: 1px solid rgba(255,255,255,0.06) !important;
	color: rgba(248,250,252,0.90) !important;
	text-decoration: none !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: left !important;
}
.weird-footer-group a:hover,
.weird-footer-group a:focus-visible {
	background: rgba(124,58,237,0.14) !important;
	color: #fff !important;
	outline: none !important;
}
.weird-footer-group a > i:first-child {
	width: 22px;
	text-align: center;
	color: #a78bfa;
	font-size: 13px;
}
.weird-footer-group a > i:last-child {
	color: rgba(196,181,253,0.44);
	font-size: 10px;
	justify-self: end;
}
.weird-footer-group a span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.weird-footer-bottom {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 28px;
	font-size: 11.5px;
	font-weight: 650;
	color: rgba(148,163,184,0.82);
	text-align: center;
}
.weird-footer-dot {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: rgba(148,163,184,0.48);
}
.weird-footer-credit-extra { margin-left: 4px; }
.weird-footer-toast {
	position: fixed;
	left: 50%;
	bottom: calc(92px + env(safe-area-inset-bottom, 0px));
	z-index: 99999;
	transform: translateX(-50%) translateY(12px);
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(15,12,28,0.92);
	color: #fff;
	font: 13px/1.25 -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
	box-shadow: 0 14px 34px -18px rgba(0,0,0,0.8);
	opacity: 0;
	transition: opacity .22s ease, transform .22s ease;
}
.weird-footer-toast.is-on {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
html.light-mode footer.weird-native-footer {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.88), rgba(249,247,255,0.98)),
		linear-gradient(120deg, rgba(124,58,237,0.08), rgba(6,182,212,0.045) 46%, rgba(34,197,94,0.045)) !important;
	background-image:
		linear-gradient(180deg, rgba(255,255,255,0.88), rgba(249,247,255,0.98)),
		linear-gradient(120deg, rgba(124,58,237,0.08), rgba(6,182,212,0.045) 46%, rgba(34,197,94,0.045)) !important;
	border-top-color: rgba(124,58,237,0.12) !important;
	color: #24163f !important;
}
html.light-mode .weird-footer-brand-copy strong { color: #24163f; }
html.light-mode .weird-footer-brand-copy small { color: #6d28d9; }
html.light-mode .weird-footer-share {
	background: rgba(124,58,237,0.07) !important;
	border-color: rgba(124,58,237,0.16) !important;
	color: #5b21b6 !important;
	box-shadow: 0 10px 22px -18px rgba(74,58,120,0.28), 0 1px 0 rgba(255,255,255,0.88) inset !important;
}
html.light-mode .weird-footer-share:hover,
html.light-mode .weird-footer-share:focus-visible {
	background: rgba(124,58,237,0.14) !important;
	color: #3b0764 !important;
}
html.light-mode .weird-footer-group {
	background: rgba(255,255,255,0.72);
	border-color: rgba(124,58,237,0.12);
	box-shadow: 0 18px 32px -30px rgba(74,58,120,0.30), 0 1px 0 rgba(255,255,255,0.92) inset;
}
html.light-mode .weird-footer-group h2 { color: #6d28d9 !important; }
html.light-mode .weird-footer-group a {
	border-top-color: rgba(124,58,237,0.08) !important;
	color: #24163f !important;
}
html.light-mode .weird-footer-group a:hover,
html.light-mode .weird-footer-group a:focus-visible { background: rgba(124,58,237,0.08) !important; color: #1f1240 !important; }
html.light-mode .weird-footer-group a > i:first-child { color: #6d28d9; }
html.light-mode .weird-footer-group a > i:last-child { color: rgba(109,40,217,0.42); }
html.light-mode .weird-footer-bottom { color: #64748b; }
html.light-mode .weird-footer-dot { background: rgba(100,116,139,0.45); }

@media (max-width: 1024px) {
	footer.weird-native-footer {
		padding: 20px 0 calc(28px + env(safe-area-inset-bottom, 0px)) !important;
		margin-top: 20px !important;
	}
	body:has(.weird-tabbar) footer.weird-native-footer,
	body.is-native-app footer.weird-native-footer {
		padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important;
	}
	.weird-footer-shell {
		width: min(640px, calc(100vw - 24px));
		gap: 14px;
	}
	.weird-footer-topline {
		align-items: center;
	}
	.weird-footer-groups {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.weird-footer-group {
		border-radius: 16px;
	}
	.weird-footer-group h2 {
		padding: 10px 13px 7px !important;
	}
	.weird-footer-group a {
		min-height: 48px !important;
		font-size: 14px !important;
	}
	.weird-footer-share-inline span {
		display: none;
	}
	.weird-footer-share-inline {
		width: 40px !important;
		min-width: 40px !important;
		padding: 0 !important;
	}
}

@media (max-width: 430px) {
	.weird-footer-brand-copy strong { font-size: 16px; }
	.weird-footer-brand-copy small { font-size: 11px; }
	.weird-footer-bottom { flex-wrap: wrap; }
}

@media (max-width: 1024px) {
	.weird-tabbar {
		left: max(10px, env(safe-area-inset-left, 0px)) !important;
		right: max(10px, env(safe-area-inset-right, 0px)) !important;
		bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
		border-radius: 22px !important;
		padding: 5px 6px !important;
		padding-bottom: 5px !important;
		min-height: 66px !important;
		background: rgba(15,12,28,0.80) !important;
		border: 1px solid rgba(255,255,255,0.09) !important;
		box-shadow: 0 18px 42px -18px rgba(0,0,0,0.80), 0 1px 0 rgba(255,255,255,0.06) inset !important;
	}
	html.light-mode .weird-tabbar {
		background: rgba(255,255,255,0.90) !important;
		border-color: rgba(124,58,237,0.13) !important;
		box-shadow: 0 18px 36px -22px rgba(74,58,120,0.34), 0 1px 0 rgba(255,255,255,0.96) inset !important;
	}
	.weird-tabbar-item {
		min-height: 56px !important;
		border-radius: 17px !important;
		padding: 7px 3px 5px !important;
		transition: background-color .16s ease, color .16s ease, transform .14s ease !important;
	}
	.weird-tabbar-item.is-active {
		background: rgba(124,58,237,0.18) !important;
		box-shadow: 0 10px 24px -18px rgba(124,58,237,0.72), 0 1px 0 rgba(255,255,255,0.06) inset !important;
	}
	html.light-mode .weird-tabbar-item.is-active {
		background: rgba(124,58,237,0.10) !important;
		box-shadow: 0 10px 22px -18px rgba(124,58,237,0.34), 0 1px 0 rgba(255,255,255,0.92) inset !important;
	}
	.weird-tabbar-item.is-active .weird-tabbar-icon::before {
		display: none !important;
	}
	.weird-tabbar-icon {
		width: 27px !important;
		height: 27px !important;
		font-size: 18px !important;
	}
	.weird-tabbar-label {
		font-size: 10px !important;
		font-weight: 750 !important;
	}
	body:has(.weird-tabbar) {
		padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
	}
	body.is-native-app:has(.weird-tabbar) {
		padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
	}
	body:has(.weird-tabbar) #scrollUp {
		bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.weird-footer-share,
	.weird-footer-toast,
	.weird-tabbar-item { transition: none !important; }
}

/* Patch 227b — beat older #fbg mobile-hide/background rules. */
footer#fbg.weird-native-footer,
body:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) footer#fbg.weird-native-footer,
body.is-native-app:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) footer#fbg.weird-native-footer {
	display: block !important;
	background:
		linear-gradient(180deg, rgba(12,10,20,0.72), rgba(12,10,20,0.94)),
		linear-gradient(120deg, rgba(124,58,237,0.10), rgba(6,182,212,0.06) 46%, rgba(34,197,94,0.07)) !important;
	background-image:
		linear-gradient(180deg, rgba(12,10,20,0.72), rgba(12,10,20,0.94)),
		linear-gradient(120deg, rgba(124,58,237,0.10), rgba(6,182,212,0.06) 46%, rgba(34,197,94,0.07)) !important;
}
html.light-mode footer#fbg.weird-native-footer,
html.light-mode body:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) footer#fbg.weird-native-footer,
html.light-mode body.is-native-app:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) footer#fbg.weird-native-footer {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.88), rgba(249,247,255,0.98)),
		linear-gradient(120deg, rgba(124,58,237,0.08), rgba(6,182,212,0.045) 46%, rgba(34,197,94,0.045)) !important;
	background-image:
		linear-gradient(180deg, rgba(255,255,255,0.88), rgba(249,247,255,0.98)),
		linear-gradient(120deg, rgba(124,58,237,0.08), rgba(6,182,212,0.045) 46%, rgba(34,197,94,0.045)) !important;
}

/* Patch 227c — mobile/native footer should be compact app chrome. */
@media (max-width: 1024px) {
	body:has(.weird-tabbar) .weird-footer-group[aria-label="Account"],
	body.is-native-app .weird-footer-group[aria-label="Account"] {
		display: none !important;
	}
	body:has(.weird-tabbar) footer#fbg.weird-native-footer,
	body.is-native-app footer#fbg.weird-native-footer {
		padding-top: 16px !important;
		padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
	}
	body:has(.weird-tabbar) .weird-footer-shell,
	body.is-native-app .weird-footer-shell {
		gap: 10px !important;
	}
	body:has(.weird-tabbar) .weird-footer-mark,
	body.is-native-app .weird-footer-mark {
		width: 40px !important;
		height: 31px !important;
		margin-right: 0 !important;
		border-radius: 0 !important;
	}
	body:has(.weird-tabbar) .weird-footer-brand-copy strong,
	body.is-native-app .weird-footer-brand-copy strong {
		font-size: 16px !important;
	}
	body:has(.weird-tabbar) .weird-footer-brand-copy small,
	body.is-native-app .weird-footer-brand-copy small {
		font-size: 11px !important;
	}
	body:has(.weird-tabbar) .weird-footer-group h2,
	body.is-native-app .weird-footer-group h2 {
		padding: 8px 13px 6px !important;
		font-size: 10px !important;
	}
	body:has(.weird-tabbar) .weird-footer-group a,
	body.is-native-app .weird-footer-group a {
		min-height: 44px !important;
	}
}
body.is-native-app:has(.weird-tabbar) {
	padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

/* If both the bottom tab bar AND a sticky CTA somehow co-exist
   (e.g., a future patch), stack the CTA above the tab bar. */
.weird-tabbar ~ .guest-sticky-cta,
body:has(.weird-tabbar) .guest-sticky-cta {
	bottom: calc(56px + 12px + env(safe-area-inset-bottom, 0px));
}

/* Hide on the auth pages — there's no point sending newly-arrived
   guests deeper into the app before they finish signing in. The
   server-side $_SESSION check already gates this, but if a logged-in
   user lands on /login.php to "switch accounts" we still hide it. */
body.page-login .weird-tabbar,
body.page-register .weird-tabbar,
body.page-forgot .weird-tabbar { display: none !important; }
@media (max-width: 720px) {
	body.page-login,
	body.page-register,
	body.page-forgot { padding-bottom: 0 !important; }
}

/* ============================================================
   V6.9 patch 207 — Native-app top header + tactile press feel
   ============================================================
   Two coordinated mobile / native-app polish wins:

   A) PIN THE TOP HEADER. Previously #sticky-header was
      position: static (default) so it scrolled away with the
      page. On native apps you never lose access to the header
      chrome — pin it. Includes safe-area-inset-top padding so
      the W logo / hamburger / search / bell never sit under
      the iPhone notch when the page scrolls.

   B) TACTILE PRESS-DOWN on the high-traffic interactive
      surfaces. The 60ms scale-to-0.96 feedback is the single
      most "I'm touching a real native control" signal there is.
      Limited to coarse-pointer / touch input via @media so
      desktop mouse hovers don't get bouncy.
============================================================ */

/* ---- A) Pinned top header on mobile + in Capacitor app ----
   Using position: fixed (not sticky) because some ancestor on certain
   pages has overflow:hidden which kills position:sticky scroll-pinning.
   Fixed is bulletproof, just requires body padding-top to reserve the
   header's space so content doesn't slip under it. */
@media (max-width: 991px) {
	#sticky-header {
		position: fixed !important;
		top: 0; left: 0; right: 0;
		z-index: 1030;
		padding-top: env(safe-area-inset-top, 0px) !important;
		background: rgba(12, 10, 20, 0.92) !important;
		backdrop-filter: saturate(1.4) blur(18px);
		-webkit-backdrop-filter: saturate(1.4) blur(18px);
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}
	html.light-mode #sticky-header {
		background: rgba(255, 255, 255, 0.92) !important;
		border-bottom: 1px solid rgba(124, 58, 237, 0.10);
	}
	/* Reserve space at the top so page content starts BELOW the
	   pinned header. Header is ~74px tall plus iOS safe-area. */
	body {
		padding-top: calc(74px + env(safe-area-inset-top, 0px));
	}
	/* The marketing homepage has its own giant hero that intentionally
	   sits behind a transparent header; keep that layout intact. */
	body.page-index,
	body.page-login,
	body.page-register,
	body.page-forgot {
		padding-top: 0;
	}
	body.page-index #sticky-header,
	body.page-login #sticky-header,
	body.page-register #sticky-header,
	body.page-forgot #sticky-header {
		background: transparent !important;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border-bottom: none;
	}
}
body.is-native-app #sticky-header {
	position: fixed !important;
	top: 0; left: 0; right: 0;
	z-index: 1030;
	padding-top: env(safe-area-inset-top, 0px) !important;
}
body.is-native-app {
	padding-top: calc(74px + env(safe-area-inset-top, 0px));
}

/* The header's expanding mobile nav (the hamburger menu drawer) was
   rendering inside the now-pinned header, so when it opens it gets
   clipped against the viewport. Detach the collapse menu so it can
   absolutely position below the header. */
@media (max-width: 991px) {
	#sticky-header .navbar-collapse {
		position: absolute;
		left: 0; right: 0;
		top: 100%;
		max-height: calc(100dvh - 100% - env(safe-area-inset-top, 0px));
		overflow-y: auto;
		background: inherit;
		backdrop-filter: inherit;
		-webkit-backdrop-filter: inherit;
	}
}

/* ---- B) Tactile press-down on touch surfaces ---- */
@media (hover: none) and (pointer: coarse) {
	.btn-glow,
	.btn-pill,
	.discover-card,
	.discover-card-pct,
	.discover-rate,
	.discover-skip,
	.vb-tab,
	.vb-rater,
	.weird-notif-trigger,
	.weird-search-trigger,
	.navbar-toggler,
	.theme-toggle-mobile,
	.cd-hero-side a,
	.connect-row-more,
	.connect-row-head a,
	.subpage-pill,
	.subpage-pillrow a,
	.discover-audience-pill,
	.places-defaults-action,
	.mock-btn-up,
	.mock-btn-down {
		transition: transform 0.12s cubic-bezier(.2, .8, .25, 1),
		            background-color 0.18s ease,
		            color 0.18s ease,
		            box-shadow 0.18s ease;
	}
	.btn-glow:active,
	.btn-pill:active,
	.discover-card:active,
	.discover-card-pct:active,
	.discover-rate:active,
	.discover-skip:active,
	.vb-tab:active,
	.vb-rater:active,
	.weird-notif-trigger:active,
	.weird-search-trigger:active,
	.navbar-toggler:active,
	.theme-toggle-mobile:active,
	.cd-hero-side a:active,
	.connect-row-more:active,
	.subpage-pill:active,
	.discover-audience-pill:active {
		transform: scale(0.96);
	}
	/* Cards get a softer press because they're large surfaces. */
	.discover-card:active { transform: scale(0.985); }

	/* Eliminate the gray tap-flash globally on touch devices.
	   Patch 170 already did this for some surfaces; doing it once
	   on the html root is the canonical fix. */
	html { -webkit-tap-highlight-color: transparent; }

	/* Disable text-select on UI chrome — buttons, nav, badges,
	   tabs. Native apps never let you accidentally text-select
	   the chrome by long-pressing. */
	.btn-glow, .btn-pill, .navbar-toggler, .weird-tabbar,
	.weird-tabbar-item, .vb-tab, .vb-eyebrow, .vb-title,
	.weird-notif-trigger, .weird-search-trigger,
	.discover-audience-pill, .subpage-pill {
		-webkit-user-select: none;
		user-select: none;
	}
}

/* ============================================================
   V6.9 patch 209 — App-like auth pages (login / register /
   forgot) + global horizontal-overflow guard
   ============================================================
   User report: "login app page has a horizontal scrollbar. we
   can do better on there..."

   Two coordinated fixes:

   1) Defensive overflow-x: hidden on html + body.
      The Capacitor WKWebView occasionally renders 1-2px wider
      than the viewport (safe-area edges, scrollbar reservation),
      producing a horizontal scrollbar where headless Chromium
      reports none. This is a universally-safe defense — no page
      in the site relies on horizontal scrolling at the document
      level.

   2) Mobile redesign of /login, /register, /forgot:
      - Hide the .discover-bar "Sign In" sub-header (redundant
        with the .auth-card h2 — saves a row of chrome).
      - Hide the marketing footer (legal/support links etc.) on
        these pages — irrelevant noise for someone trying to log
        in via the app.
      - Hide the hamburger drawer & search/bell quick-actions —
        signed-out users shouldn't see app-shell chrome anyway.
        Logo stays so the brand is still anchored.
      - Make the Sign In submit button FULL WIDTH on mobile
        (was bottom-right pill, easy to miss). 48px+ tap target.
      - Bigger, more comfortable inputs (16px font defeats iOS
        safari zoom-on-focus too).
      - Tighter card padding, more breathing room around the
        form, vertically centered.
   ============================================================ */

/* (1) Horizontal-overflow guard — scoped to mobile + Capacitor.
   V6.9 patch 213: previously this rule was global, which broke
   vertical scrolling on desktop Chrome in some interactions
   between html/body's new scroll container and existing
   position:fixed/sticky elements. Restrict to where the issue
   actually manifests (Capacitor WKWebView + mobile widths). */
@media (max-width: 720px) {
	html, body { overflow-x: hidden; max-width: 100%; }
}
body.is-native-app,
html:has(> body.is-native-app) { overflow-x: hidden; max-width: 100%; }

/* (2) Auth-page mobile polish */
@media (max-width: 720px) {
	/* Hide app-shell noise that doesn't belong on auth pages. */
	body.page-login .navbar-toggler,
	body.page-register .navbar-toggler,
	body.page-forgot .navbar-toggler,
	body.page-login .weird-nav-actions,
	body.page-register .weird-nav-actions,
	body.page-forgot .weird-nav-actions {
		display: none !important;
	}

	/* Hide the redundant ".discover-bar" sub-header — the card
	   already has its own h2 title. */
	body.page-login .discover-bar,
	body.page-register .discover-bar,
	body.page-forgot .discover-bar {
		display: none !important;
	}

	/* Hide the marketing footer on auth pages — Support / Legal
	   links etc. are chrome that doesn't help a signed-out user
	   trying to authenticate. They're still reachable via /privacy,
	   /terms, /contact direct URLs from inside the app. */
	body.page-login #fbg,
	body.page-register #fbg,
	body.page-forgot #fbg,
	body.page-login .purplebg4,
	body.page-register .purplebg4,
	body.page-forgot .purplebg4 {
		display: none !important;
	}

	/* The form card itself — tighten padding so it doesn't waste
	   space on a small screen, and round corners more gently for
	   a softer, app-feel. */
	body.page-login .auth-card,
	body.page-register .auth-card,
	body.page-forgot .auth-card {
		padding: 22px 18px 22px !important;
		border-radius: 16px !important;
		margin-bottom: 14px !important;
	}

	/* FULL-WIDTH primary submit on mobile. The default was right-
	   aligned pill (easy to miss visually). Make it a giant,
	   thumb-reach-friendly button at the bottom of the card. */
	body.page-login .auth-actions,
	body.page-register .auth-actions,
	body.page-forgot .auth-actions {
		justify-content: stretch !important;
	}
	body.page-login .auth-btn-primary,
	body.page-register .auth-btn-primary,
	body.page-forgot .auth-btn-primary {
		width: 100% !important;
		justify-content: center !important;
		padding: 14px 22px !important;
		font-size: 15px !important;
		min-height: 48px !important;
	}

	/* Inputs: 16px font on iOS prevents zoom-on-focus, taller
	   tap target. */
	body.page-login .auth-input,
	body.page-register .auth-input,
	body.page-forgot .auth-input {
		font-size: 16px !important;
		padding: 13px 18px !important;
		min-height: 48px !important;
	}

	/* Auth-meta links: stack tighter, no per-row big icons. */
	body.page-login .auth-meta,
	body.page-register .auth-meta,
	body.page-forgot .auth-meta {
		gap: 10px !important;
		padding-top: 4px !important;
		text-align: center !important;
	}
	body.page-login .auth-meta-row,
	body.page-register .auth-meta-row,
	body.page-forgot .auth-meta-row {
		flex-wrap: wrap;
		justify-content: center !important;
		font-size: 13.5px !important;
	}

	/* SIWA / SIWG buttons: full width, taller. */
	body.page-login .auth-oauth-btn,
	body.page-register .auth-oauth-btn,
	body.page-login button[class*="apple"],
	body.page-login button[class*="google"] {
		width: 100% !important;
		min-height: 48px !important;
		font-size: 15px !important;
	}
}

/* ============================================================
   V6.9 patch 208e (re-added) — Patch 207 pinned the top header
   and added body { padding-top: 80px + safe-area } to make
   room. The existing `main { padding-top: 96px }` rule (designed
   for an un-pinned header that scrolled away) was stacking on
   top of that, creating ~200px of empty black space above page
   content on mobile. Zero out main's padding-top on mobile so
   only the body reserves space for the pinned header.

   Also overrides the (max-width: 640px) `main { padding-top: 76px }`
   rule that exists earlier in this stylesheet by using a wider
   media query AND being later in source order at equal specificity.
   ============================================================ */
@media (max-width: 991px) {
	main { padding-top: 0 !important; }
	/* Auth + marketing pages don't pin the header, so they shouldn't
	   lose their original top padding.
	   V6.9 patch 229 family#1 — was 76px which is LESS than the 80px
	   fixed header height, causing the auth card to slide 4px under the
	   header and the W logo to appear floating on top of content. Bump
	   to 96px (header + 16px breathing room). */
	body.page-index main,
	body.page-login main,
	body.page-register main,
	body.page-forgot main { padding-top: 96px !important; }
}
body.is-native-app main { padding-top: 0 !important; }

/* ============================================================
   V6.9 patch 210 — Defeat iOS zoom-on-input
   ============================================================
   User report: "whenever there is a textbox it zooms in on the
   app and creates a horizontal bar."

   iOS Safari (and WKWebView in Capacitor) automatically zooms
   the viewport when an <input>/<textarea>/<select> is focused
   AND its computed font-size is less than 16px. The zoomed
   viewport doesn't fit the device width, producing the
   horizontal scrollbar the user is seeing.

   The clean fix (Apple-recommended) is to bump every form
   control to 16px. We deliberately do NOT add
   `maximum-scale=1` to the viewport meta — that breaks
   pinch-zoom accessibility everywhere.

   Scope: every common input variant + textarea + select.
   Date/time/color inputs included so their picker affordance
   doesn't trigger zoom either.

   Patch 209 already did this for .auth-input specifically;
   this is the global net so we never have to chase per-input
   rules again.
============================================================ */
@media (max-width: 991px) {
	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="search"],
	input[type="tel"],
	input[type="url"],
	input[type="number"],
	input[type="date"],
	input[type="datetime-local"],
	input[type="time"],
	input[type="month"],
	input[type="week"],
	input:not([type]),
	textarea,
	select {
		font-size: 16px !important;
	}
}
/* Also apply inside the Capacitor app on every viewport. */
body.is-native-app input[type="text"],
body.is-native-app input[type="email"],
body.is-native-app input[type="password"],
body.is-native-app input[type="search"],
body.is-native-app input[type="tel"],
body.is-native-app input[type="url"],
body.is-native-app input[type="number"],
body.is-native-app input[type="date"],
body.is-native-app input[type="datetime-local"],
body.is-native-app input[type="time"],
body.is-native-app input[type="month"],
body.is-native-app input[type="week"],
body.is-native-app input:not([type]),
body.is-native-app textarea,
body.is-native-app select {
	font-size: 16px !important;
}

/* ============================================================
   V6.9 patch 211 — Stop the top nav from duplicating the bottom
   tab bar on mobile.
   ============================================================
   User insight: "Is it odd to have a top nav on the app and
   then one on the bottom" — yes. The hamburger drawer surfaced
   Discover / Messages / Profile, all of which are now in the
   bottom tab bar. Instagram, X, YouTube, TikTok, Spotify all
   resolve this the same way: drop the hamburger when you have
   a bottom bar. The top bar then becomes brand + utility
   (logo, search, notifications), not navigation.

   Items unique to the hamburger (Admin, Sign Out) were just
   added to the .acct-quicklinks chip strip on every account
   surface (_account_nav.php) so they're still reachable.

   Hide on:
     - viewport ≤ 991px (Bootstrap lg breakpoint, which is what
       triggers the hamburger pattern in the first place)
     - inside the Capacitor wrapper on every width
   Keep on:
     - signed-out auth/marketing pages (they don't have the
       bottom tab bar — the hamburger drawer IS their nav)
============================================================ */
@media (max-width: 991px) {
	/* Hide the hamburger button + its expanded drawer on every
	   page that gets the bottom tab bar (signed-in app surfaces). */
	body:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) .navbar-toggler,
	body:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) #navbarNav,
	body:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) .navbar-collapse {
		display: none !important;
	}
	/* W logo + search + bell stay. Give the logo a touch more
	   left padding now that the hamburger button vanished, so
	   it isn't slammed against the screen edge. */
	body:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) #sticky-header .navbar > a:first-child {
		margin-left: 4px;
	}
}
/* Same rules apply inside the Capacitor wrapper on every viewport. */
body.is-native-app:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) .navbar-toggler,
body.is-native-app:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) #navbarNav,
body.is-native-app:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) .navbar-collapse {
	display: none !important;
}

/* ============================================================
   V6.9 patch 212 — Search popout: never wider than viewport
   ============================================================
   User report: "ensure search results pane doesnt get wider
   than app."

   The popout's base rule sets width: min(560px, 100vw - 24px),
   which is correct on desktop, and the @media (max-width: 640px)
   rule pins it to left:8 / right:8 with width:auto. But there's
   a gap: 641–720px width loses the mobile pin AND any inner
   element that doesn't wrap (long search result name, "View
   all results" CTA, category pill) can push the contents wider
   than the viewport.

   Fix: bump the mobile breakpoint to 720px (matches our other
   app-mobile rules) AND clamp every inner element from being
   wider than its container.
============================================================ */
@media (max-width: 720px) {
	body .weird-search-popout {
		top: 64px !important;
		left: 8px !important;
		right: 8px !important;
		width: auto !important;
		max-width: calc(100vw - 16px) !important;
		box-sizing: border-box !important;
	}
	body.is-native-app .weird-search-popout {
		top: calc(64px + env(safe-area-inset-top, 0px)) !important;
	}
}

/* Inner elements: enforce min-width: 0 + clamp so the grid track
   `1fr` can actually shrink (without min-width:0 it defaults to
   min-content which can exceed the viewport for long names). */
.weird-search-popout,
.weird-search-popout-inner,
.weird-search-results,
.weird-search-result,
.weird-search-result-body {
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* "View all results" CTA on mobile — the inline query echo
   (.weird-search-all-q) has max-width: 220px which can exceed
   viewport-minus-padding on small screens. Clamp to available
   space. */
@media (max-width: 720px) {
	.weird-search-all .weird-search-all-q {
		max-width: calc(100vw - 220px) !important;
	}
	.weird-search-all {
		flex-wrap: wrap;
		text-align: center;
	}
}

/* ============================================================
   V6.9 patch 214 — Step 1 of the Apple-News-inspired card pass:
   visual polish only, no interaction changes.
   ============================================================
   User asked "what if we did all cards like this in the app" with
   an Apple News screenshot. The full answer is "steal the visual
   DNA, keep Weird's rating model intact." Step 1 = visual DNA.
   Step 2 (forthcoming) = long-press action sheet for secondary
   actions (Save / Hide / Share / Who rated this / Open).

   Changes:
   - Bigger border-radius (20px, was 16) — iOS card feel.
   - Always-present subtle elevation, not just on hover.
   - Tighter typography: title 17px (was 16), meta uppercases like
     the Apple News source-byline pattern.
   - Drop the 2-line title clamp so longer titles aren't truncated.
   - Make the save button slimmer and aligned to the bottom of
     the actions row (instead of overlaid on the image) so the
     image stays clean.
   - Skip button gets smaller + more muted to read as secondary.
   - Card body padding modernised.
   - Foot border softened.
============================================================ */

.discover-card,
.discover-card.discover-card-item {
	border-radius: 20px !important;
	box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.35),
	            0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.discover-card.discover-card-item:hover {
	box-shadow: 0 14px 36px -16px rgba(0, 0, 0, 0.50),
	            0 0 0 1px rgba(124, 58, 237, 0.18) inset;
}

/* Title — bump 1px, drop clamp so long titles render in full
   like Apple News headlines. */
.discover-card-title {
	font-size: 17px !important;
	line-height: 1.22 !important;
	letter-spacing: -0.01em !important;
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	overflow: visible !important;
}

/* Meta line — small caps source-style chrome (Apple News pattern). */
.discover-card-meta {
	font-size: 11.5px !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	font-weight: 700 !important;
	opacity: 0.78;
}

/* Body padding — a hair tighter, looks more iOS. */
.discover-card-body {
	padding: 14px 16px 14px !important;
	gap: 6px !important;
}

/* Foot — softer divider, less visual noise above the actions row. */
.discover-card-foot {
	padding-top: 10px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}
html.light-mode .discover-card-foot {
	border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* SAVE button — move from "overlaid on image" to "right side of
   the actions row." Frees the poster from chrome and groups all
   tap targets together at the bottom (the Apple News pattern). */
.discover-card-media .discover-card-save {
	display: none !important;
}
.discover-card-foot .discover-card-save,
.discover-card-actions .discover-card-save {
	width: 32px !important;
	height: 32px !important;
	border-radius: 999px !important;
	position: static !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.10) !important;
	color: var(--text-secondary, #94a3b8) !important;
	font-size: 12px !important;
	box-shadow: none !important;
	margin-left: auto !important;
}
.discover-card-actions .discover-card-save.saved,
.discover-card-foot .discover-card-save.saved {
	background: rgba(124, 58, 237, 0.16) !important;
	border-color: rgba(124, 58, 237, 0.4) !important;
	color: #c4b5fd !important;
}

/* Skip button — read as secondary. Slightly smaller + muted. */
.discover-skip {
	width: 32px !important;
	height: 32px !important;
	font-size: 11px !important;
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	color: var(--text-muted, #94a3b8) !important;
}

/* Vote-breakdown chip — slight rounding tweak so it visually
   pairs with the new 20px card corners. */
.discover-card-pct {
	border-radius: 999px !important;
	padding: 5px 11px !important;
}

/* Media corners follow the card corners — top-left + top-right
   only, since the body sits below. */
.discover-card-item .discover-card-media {
	border-radius: 20px 20px 0 0;
}

/* Slightly larger vertical gap between cards in the grid so each
   one breathes — Apple News uses ~14px stack spacing. */
.discover-grid,
.discover-stream {
	gap: 14px;
}

/* ============================================================
   V6.9 patch 215 — Step 2: Global card action sheet
   ============================================================
   Bottom-sheet menu opened by long-press on any .discover-card
   (touch) or right-click (desktop) or a small "..." button in
   the card's actions row. Markup + JS in _action_sheet.php.

   Reuses the same iOS-bottom-sheet visual language as the
   vote breakdown modal (patch 206).
============================================================ */

/* "..." trigger button — sits at the far-right of the actions row
   on every card. */
.discover-card-more {
	width: 32px !important;
	height: 32px !important;
	border-radius: 999px !important;
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.10) !important;
	color: var(--text-secondary, #94a3b8) !important;
	font-size: 13px !important;
	line-height: 1 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .12s ease, border-color .15s ease;
	margin-left: auto;
}
.discover-card-more:hover,
.discover-card-more:focus-visible {
	background: rgba(124, 58, 237, 0.10) !important;
	color: var(--text-primary, #fff) !important;
	border-color: rgba(124, 58, 237, 0.34) !important;
}
.discover-card-more:active { transform: scale(0.94); }
.discover-card-more:not(.discover-card-message) { margin-left: 0; }
.discover-card-message { margin-left: auto; }
html.light-mode .discover-card-more {
	border-color: rgba(0, 0, 0, 0.10) !important;
	color: var(--text-secondary, #475569) !important;
}
html.light-mode .discover-card-more:hover { background: rgba(124, 58, 237, 0.08) !important; }

/* Patch 272 - direct share + social-card cleanup from user feedback. */
body .discover-card.discover-card-social .discover-card-social-head,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-head,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-head {
	display: grid !important;
	grid-template-columns: 44px minmax(0, 1fr) auto !important;
	align-items: center !important;
	gap: 10px !important;
}
body .discover-card.discover-card-social .discover-card-social-head .discover-card-avatar {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	flex: 0 0 44px !important;
}
body .discover-card.discover-card-social .discover-card-social-meta {
	min-width: 0 !important;
	width: 100% !important;
}
body .discover-card.discover-card-social .discover-card-social-name {
	display: block !important;
	min-width: 0 !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}
body .discover-card.discover-card-social .discover-card-social-time {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}
body .discover-card.discover-card-social .discover-card-social-item,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
	grid-template-columns: 112px minmax(0, 1fr) 24px !important;
	min-height: 112px !important;
}
body .discover-card.discover-card-social .discover-card-social-thumb,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-thumb,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-thumb {
	width: 112px !important;
	height: 112px !important;
	min-width: 112px !important;
	align-self: stretch !important;
}
body .discover-card.discover-card-item > .discover-card-body > .discover-why,
body .discover-wrap-signal-board #discover-stream .discover-card-item > .discover-card-body > .discover-why,
body .discover-stream[data-mixed="1"] .discover-card-item > .discover-card-body > .discover-why {
	width: auto !important;
	margin: 2px 0 4px !important;
	align-self: flex-start !important;
}
body .discover-card.discover-card-item .discover-why-btn {
	min-height: 28px !important;
	padding: 4px 9px !important;
	font-size: 12px !important;
}
@media (max-width: 520px) {
	body .discover-card.discover-card-social .discover-card-social-head,
	body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-head,
	body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-head {
		grid-template-columns: 40px minmax(0, 1fr) !important;
	}
	body .discover-card.discover-card-social .discover-card-social-head .discover-follow-head { grid-column: 2; justify-self: start; }
	body .discover-card.discover-card-social .discover-card-social-item,
	body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
	body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
		grid-template-columns: 92px minmax(0, 1fr) 20px !important;
		min-height: 92px !important;
	}
	body .discover-card.discover-card-social .discover-card-social-thumb,
	body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-thumb,
	body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-thumb {
		width: 92px !important;
		height: 92px !important;
		min-width: 92px !important;
	}
}

/* ---- Action sheet (mirror of vb-modal bottom-sheet styling) ---- */
.weird-action-sheet {
	position: fixed; inset: 0;
	z-index: 1090;
	display: flex; align-items: flex-end; justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s var(--ease, ease);
}
.weird-action-sheet.is-open { opacity: 1; pointer-events: auto; }
.weird-action-backdrop {
	position: absolute; inset: 0;
	background: rgba(8, 6, 18, 0.80);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.weird-action-sheet-card {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
	border: 1px solid var(--purple-border);
	border-bottom: none;
	border-radius: 20px 20px 0 0;
	padding: 8px 12px calc(16px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -16px 48px -16px rgba(0,0,0,0.6);
	color: var(--text-primary);
	transform: translateY(100%);
	transition: transform .30s cubic-bezier(.2, .8, .25, 1);
}
.weird-action-sheet.is-open .weird-action-sheet-card { transform: translateY(0); }
html.light-mode .weird-action-backdrop { background: rgba(238, 234, 252, 0.78); }
html.light-mode .weird-action-sheet-card {
	background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
	border-color: rgba(124, 58, 237, 0.18);
	box-shadow: 0 -16px 48px -16px rgba(60, 40, 120, 0.30);
}

.weird-action-sheet-handle {
	width: 38px; height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.30);
	margin: 6px auto 14px;
}
html.light-mode .weird-action-sheet-handle { background: rgba(60, 40, 120, 0.28); }

.weird-action-sheet-head {
	display: flex; align-items: center; gap: 12px;
	padding: 0 8px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	margin-bottom: 6px;
}
html.light-mode .weird-action-sheet-head { border-bottom-color: rgba(0, 0, 0, 0.08); }
.weird-action-sheet-thumb {
	width: 44px; height: 44px;
	border-radius: 10px;
	background: rgba(124, 58, 237, 0.20) center/cover no-repeat;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #c4b5fd;
	font-size: 23px;
	font-weight: 800;
	line-height: 1;
	overflow: hidden;
}
.weird-action-sheet-thumb.is-image {
	background-color: rgba(124, 58, 237, 0.18);
}
.weird-action-sheet-thumb.is-emoji,
.weird-action-sheet-thumb.is-icon,
.weird-action-sheet-thumb.is-empty {
	background:
		radial-gradient(circle at 28% 22%, rgba(255,255,255,0.13), transparent 36%),
		linear-gradient(135deg, rgba(124,58,237,0.30), rgba(31,41,75,0.68));
	border: 1px solid rgba(167,139,250,0.22);
}
.weird-action-sheet-thumb.is-emoji {
	font-size: 27px;
}
.weird-action-sheet-thumb.is-icon i {
	font-size: 20px;
	color: #c4b5fd;
}
.weird-action-sheet-meta { min-width: 0; flex: 1 1 auto; }
.weird-action-sheet-cat {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted, #94a3b8);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.weird-action-sheet-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	margin-top: 2px;
}

.weird-action-sheet-menu {
	display: flex; flex-direction: column;
	padding: 4px 0 8px;
}
.weird-action-sheet-item {
	all: unset;
	display: flex; align-items: center;
	gap: 14px;
	padding: 14px 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
	cursor: pointer;
	border-radius: 12px;
	min-height: 48px;
	box-sizing: border-box;
}
.weird-action-sheet-item i {
	width: 22px; text-align: center;
	color: var(--text-secondary, #94a3b8);
	font-size: 15px;
}
.weird-action-sheet-item:hover,
.weird-action-sheet-item:focus-visible {
	background: rgba(124, 58, 237, 0.10);
	outline: none;
}
.weird-action-sheet-item:active { background: rgba(124, 58, 237, 0.18); }
.weird-action-sheet-item-danger { color: #fb923c; }
.weird-action-sheet-item-danger i { color: #fb923c; }

.weird-action-sheet-cancel {
	all: unset;
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 0;
	margin-top: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 14px;
	cursor: pointer;
	box-sizing: border-box;
	min-height: 48px;
	line-height: 20px;
}
.weird-action-sheet-cancel:hover { background: rgba(255, 255, 255, 0.08); }
html.light-mode .weird-action-sheet-cancel {
	background: rgba(0, 0, 0, 0.03);
	border-color: rgba(0, 0, 0, 0.10);
}

/* Lock body scroll while open */
body.weird-action-sheet-locked { overflow: hidden; }

/* Toast (Share → "Link copied") */
.weird-action-sheet-toast {
	position: fixed;
	left: 50%; transform: translateX(-50%) translateY(20px);
	bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(15, 12, 28, 0.92);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	z-index: 1100;
	opacity: 0;
	transition: opacity .22s ease, transform .22s ease;
	box-shadow: 0 12px 32px -10px rgba(0,0,0,0.55);
	pointer-events: none;
}
.weird-action-sheet-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- In-place Weird Message share picker ---- */
.weird-message-share {
	position: fixed;
	inset: 0;
	z-index: 1094;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 14px;
	padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s var(--ease, ease);
}
.weird-message-share.is-open { opacity: 1; pointer-events: auto; }
.weird-message-share-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 6, 18, 0.82);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}
.weird-message-share-card {
	position: relative;
	width: min(100%, 560px);
	max-height: min(720px, calc(100dvh - 28px));
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: linear-gradient(180deg, rgba(24, 28, 55, 0.98), rgba(17, 20, 42, 0.98));
	border: 1px solid rgba(139, 92, 246, 0.36);
	border-radius: 18px;
	box-shadow: 0 24px 70px -28px rgba(0,0,0,0.78);
	color: var(--text-primary, #fff);
	transform: translateY(22px);
	transition: transform .24s cubic-bezier(.2, .8, .25, 1);
	overflow: hidden;
}
.weird-message-share.is-open .weird-message-share-card { transform: translateY(0); }
.weird-message-share-head {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) 34px;
	gap: 12px;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.weird-message-share-thumb {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(124,58,237,0.20) center/cover no-repeat;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #c4b5fd;
	font-size: 24px;
	font-weight: 800;
	overflow: hidden;
}
.weird-message-share-thumb.is-emoji { font-size: 28px; }
.weird-message-share-thumb.is-icon i { font-size: 20px; }
.weird-message-share-kicker {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-muted, #94a3b8);
}
.weird-message-share-head h3 {
	margin: 1px 0 0;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.weird-message-share-close {
	all: unset;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: var(--text-secondary, #cbd5e1);
	cursor: pointer;
}
.weird-message-share-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.weird-message-share-search {
	margin: 12px 16px 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 12px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.10);
	color: var(--text-secondary, #cbd5e1);
}
.weird-message-share-search input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text-primary, #fff);
	font: inherit;
	font-size: 14px;
}
.weird-message-share-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin: 0 16px 10px;
	padding: 4px;
	border-radius: 13px;
	background: rgba(255,255,255,0.045);
	border: 1px solid rgba(255,255,255,0.08);
}
.weird-message-share-tab {
	all: unset;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	min-height: 34px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 800;
	color: var(--text-secondary, #cbd5e1);
	cursor: pointer;
	box-sizing: border-box;
}
.weird-message-share-tab span {
	min-width: 18px;
	padding: 1px 6px;
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	font-size: 10px;
	line-height: 16px;
	text-align: center;
}
.weird-message-share-tab.is-active {
	background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(99,102,241,0.82));
	color: #fff;
	box-shadow: 0 8px 18px -14px rgba(124,58,237,0.9);
}
.weird-message-share-tab.is-active span { background: rgba(255,255,255,0.18); color: #fff; }
.weird-message-share-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 0 12px 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(124,58,237,0.46) transparent;
}
.weird-message-share-section {
	padding: 9px 4px 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-muted, #94a3b8);
}
.weird-message-share-target {
	display: grid;
	grid-template-columns: 20px 38px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	min-height: 54px;
	padding: 8px 10px;
	border-radius: 12px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease;
}
.weird-message-share-target:hover,
.weird-message-share-target.is-selected {
	background: rgba(124,58,237,0.14);
	border-color: rgba(167,139,250,0.34);
}
.weird-message-share-target input {
	width: 18px;
	height: 18px;
	accent-color: var(--purple, #7c3aed);
	margin: 0;
}
.weird-message-share-avatar {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(124,58,237,0.16);
	border: 1px solid rgba(167,139,250,0.22);
	overflow: hidden;
	color: #c4b5fd;
}
.weird-message-share-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.weird-message-share-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.weird-message-share-name {
	font-size: 14px;
	font-weight: 800;
	color: var(--text-primary, #fff);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.weird-message-share-kind { font-size: 11px; color: var(--text-secondary, #cbd5e1); }
.weird-message-share-empty,
.weird-message-share-status {
	padding: 10px 16px;
	font-size: 13px;
	color: var(--text-secondary, #cbd5e1);
}
.weird-message-share-status { min-height: 18px; padding-top: 0; }
.weird-message-share-actions {
	display: grid;
	flex: 0 0 auto;
	position: sticky;
	bottom: 0;
	z-index: 3;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 8px;
	align-items: center;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid rgba(255,255,255,0.08);
	background: rgba(0,0,0,0.18);
}
.admin-content-edit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 44px !important;
	padding: 4px 8px !important;
	border: 1px solid rgba(167,139,250,.48) !important;
	border-radius: 999px !important;
	background: rgba(76,29,149,.28) !important;
	color: #ddd6fe !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	white-space: nowrap;
}
html.light-mode .admin-content-edit {
	background: #ede9fe !important;
	border-color: #8b5cf6 !important;
	color: #4c1d95 !important;
}
.weird-message-share-actions span { font-size: 12px; font-weight: 700; color: var(--text-secondary, #cbd5e1); }
.weird-message-share-cancel,
.weird-message-share-send {
	all: unset;
	min-height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	box-sizing: border-box;
}
.weird-message-share-cancel { background: rgba(255,255,255,0.08); color: var(--text-primary, #fff); }
.weird-message-share-send { background: linear-gradient(135deg, var(--purple, #7c3aed), #f97316); color: #fff; }
.weird-message-share-send:disabled { opacity: .42; cursor: not-allowed; }
html.light-mode .weird-message-share-backdrop { background: rgba(238,234,252,0.80); }
html.light-mode .weird-message-share-card {
	background: linear-gradient(180deg, #ffffff, #faf9ff);
	border-color: rgba(124,58,237,0.18);
	box-shadow: 0 24px 70px -30px rgba(60,40,120,0.34);
}
html.light-mode .weird-message-share-head,
html.light-mode .weird-message-share-actions { border-color: rgba(20,16,40,0.08); }
html.light-mode .weird-message-share-search { background: rgba(20,16,40,0.035); border-color: rgba(20,16,40,0.10); }
html.light-mode .weird-message-share-search input { color: #14102a; }
html.light-mode .weird-message-share-tabs { background: rgba(20,16,40,0.035); border-color: rgba(20,16,40,0.08); }
html.light-mode .weird-message-share-tab { color: rgba(20,16,40,0.64); }
html.light-mode .weird-message-share-tab span { background: rgba(20,16,40,0.07); }
html.light-mode .weird-message-share-tab.is-active { color: #fff; }
html.light-mode .weird-message-share-target:hover,
html.light-mode .weird-message-share-target.is-selected { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.24); }
html.light-mode .weird-message-share-name { color: #14102a; }
html.light-mode .weird-message-share-actions { background: rgba(20,16,40,0.025); }
html.light-mode .weird-message-share-cancel { background: rgba(20,16,40,0.06); color: #14102a; }
@media (max-width: 560px) {
	.weird-message-share {
		padding: 0 0 calc(66px + env(safe-area-inset-bottom, 0px));
		align-items: flex-end;
	}
	.weird-message-share-card {
		width: 100%;
		max-height: min(calc(86dvh - 66px), 694px);
		border-radius: 20px 20px 0 0;
		border-bottom: 0;
	}
	.weird-message-share-actions { grid-template-columns: 1fr auto auto; }
	.weird-message-share-cancel,
	.weird-message-share-send { padding: 0 14px; }
}

/* Long-press: prevent the iOS text-select callout from interfering. */
@media (hover: none) and (pointer: coarse) {
	.discover-card { -webkit-touch-callout: none; }
	.discover-card .discover-card-title,
	.discover-card .discover-card-desc,
	.discover-card .discover-card-meta {
		-webkit-user-select: none;
		user-select: none;
	}
}

/* V6.9 patch 215b — Bump card title specificity. The original
   patch 214 rule lost to a more-specific .discover-card-item
   .discover-card-title rule elsewhere. */
.discover-card .discover-card-title,
.discover-card-item .discover-card-title {
	font-size: 17px !important;
	line-height: 1.22 !important;
	letter-spacing: -0.01em !important;
}

/* V6.9 patch 215c — Beat the (0,5,0) rule that pins title to 14px
   on mobile inside .discover-stream. Use matching specificity. */
@media (max-width: 720px) {
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) .discover-card-title {
		font-size: 16px !important;
		line-height: 1.25 !important;
	}
}

/* ============================================================
   V6.9 patch 216 — Hide Save + Skip buttons from card action
   rows; they're now in the "..." action sheet menu (patch 215).
   ============================================================
   Keep them in the DOM though — the action sheet's Save/Hide
   menu items work by .click()-ing these very buttons, so they
   have to exist; we just don't show them on the card surface.

   Result: each card's action row is just Thumbs-up · Thumbs-down
   · "..." — clean Apple-News-style minimal footer.
============================================================ */
.discover-card-actions .discover-card-save,
.discover-card-foot .discover-card-save {
	display: none !important;
}

/* The "..." pushes itself with margin-left: auto already, so no
   extra spacing fix is needed once Save/Skip vanish. */

/* V6.9 patch 216b — Bump specificity past the `body .discover-card-actions .discover-card-save` rule that was beating patch 216. */
body .discover-card-actions .discover-card-save,
body .discover-card-foot .discover-card-save {
	display: none !important;
}

/* ============================================================
   V6.9 patch 217 — Single-column stream on all phone widths
   ============================================================
   Existing rule already pins to 1 column at ≤640px. Extending
   to ≤720px (matches our other app-mobile rules) and always-on
   inside the Capacitor wrapper. Rationale: Apple News, Twitter,
   Instagram all use 1-col feeds because the user evaluates one
   item at a time. 2-col is a Pinterest/photo-grid pattern that
   fights against Weird's rate-and-react flow.
============================================================ */
@media (max-width: 720px) {
	.discover-stream,
	.connect-stream {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}
}
body.is-native-app .discover-stream,
body.is-native-app .connect-stream {
	grid-template-columns: 1fr !important;
	gap: 14px !important;
}

/* ============================================================
   V6.9 patch 218 — Pull-to-refresh on the Discover stream
   ============================================================
   JS in _action_sheet.php… no — pull-to-refresh deserves its
   own partial. Wired in this CSS purely for the visual chrome
   (the loading indicator + the pulled-down hint). Behavior is
   in inline JS in discover.php.
============================================================ */

.weird-ptr {
	position: fixed;
	left: 0; right: 0;
	top: calc(80px + env(safe-area-inset-top, 0px));
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--text-secondary, #94a3b8);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	pointer-events: none;
	opacity: 0;
	transform: translateY(-60px);
	transition: opacity .18s ease, transform .18s ease;
	z-index: 1025;
}
.weird-ptr.is-active { opacity: 1; }
.weird-ptr.is-refreshing {
	opacity: 1;
	transform: translateY(0);
	transition: transform .24s cubic-bezier(.2,.8,.25,1), opacity .24s ease;
}
.weird-ptr-spinner {
	width: 22px; height: 22px;
	border-radius: 50%;
	border: 2.5px solid rgba(124, 58, 237, 0.25);
	border-top-color: var(--purple, #7c3aed);
	animation: weirdPtrSpin 0.7s linear infinite;
	display: none;
}
.weird-ptr.is-refreshing .weird-ptr-spinner { display: block; }
.weird-ptr.is-refreshing .weird-ptr-arrow,
.weird-ptr.is-refreshing .weird-ptr-text { display: none; }
.weird-ptr-arrow {
	width: 22px; height: 22px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 14px;
	transition: transform .2s ease;
}
.weird-ptr.is-ready .weird-ptr-arrow { transform: rotate(180deg); color: var(--purple, #7c3aed); }
.weird-ptr.is-ready .weird-ptr-text::after { content: "Release to refresh"; }
.weird-ptr:not(.is-ready) .weird-ptr-text::after { content: "Pull to refresh"; }

@keyframes weirdPtrSpin {
	to { transform: rotate(360deg); }
}

/* V6.9 patch 217b — Beat the (0,4,0) `.discover-stream:not(...)` rule
   that was forcing 2-col 150px grid on mobile. Match its specificity
   AND extend the breakpoint to 720px. */
@media (max-width: 720px) {
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards),
	.connect-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}
}
body.is-native-app .discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards),
body.is-native-app .connect-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) {
	grid-template-columns: 1fr !important;
	gap: 14px !important;
}

/* ============================================================
   V6.9 patch 225 — App-like signed-in header
   ============================================================
   Top bar should feel like native app chrome, not a web navbar:
     - logo/brand anchored LEFT
     - utilities anchored RIGHT: theme, search, notifications
     - hamburger hidden because bottom tabbar owns primary nav
   Guest/auth/marketing pages keep their own chrome because they do
   not have the signed-in bottom tabbar.
============================================================ */
@media (max-width: 1024px) {
	body:has(.weird-tabbar) #sticky-header .navbar {
		align-items: center !important;
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
		column-gap: 10px !important;
		height: auto !important;
		min-height: 66px !important;
		padding: 0 2px !important;
	}
	body:has(.weird-tabbar) #sticky-header .navbar > a:first-child {
		align-items: center !important;
		position: static !important;
		left: auto !important;
		top: auto !important;
		transform: none !important;
		order: 1 !important;
		margin: 0 auto 0 0 !important;
		flex: 0 1 auto !important;
		min-width: 0 !important;
		z-index: 2 !important;
	}
	body:has(.weird-tabbar) #sticky-header .navbar > a:first-child .navbar-brand-logo {
		height: 34px !important;
		max-width: 132px !important;
		object-fit: contain !important;
	}
	body:has(.weird-tabbar) #sticky-header .navbar-toggler,
	body:has(.weird-tabbar) #sticky-header #navbarNav,
	body:has(.weird-tabbar) #sticky-header .navbar-collapse {
		display: none !important;
	}
	body:has(.weird-tabbar) #sticky-header .weird-nav-actions {
		order: 3 !important;
		margin-left: auto !important;
		margin-right: 0 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 8px !important;
		flex: 0 0 auto !important;
	}
	body:has(.weird-tabbar) #sticky-header .weird-theme-trigger,
	body:has(.weird-tabbar) #sticky-header .weird-search-trigger,
	body:has(.weird-tabbar) #sticky-header .weird-notif-trigger {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		border-radius: 14px !important;
		padding: 0 !important;
		margin: 0 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		background: rgba(124,58,237,0.11) !important;
		border: 1px solid rgba(124,58,237,0.28) !important;
		color: var(--text-primary, #f8fafc) !important;
		box-shadow: 0 8px 20px -16px rgba(124,58,237,0.50),
		            0 1px 0 rgba(255,255,255,0.05) inset !important;
		-webkit-tap-highlight-color: transparent;
	}
	body:has(.weird-tabbar) #sticky-header .weird-theme-trigger:hover,
	body:has(.weird-tabbar) #sticky-header .weird-search-trigger:hover,
	body:has(.weird-tabbar) #sticky-header .weird-notif-trigger:hover,
	body:has(.weird-tabbar) #sticky-header .weird-theme-trigger:focus-visible,
	body:has(.weird-tabbar) #sticky-header .weird-search-trigger:focus-visible,
	body:has(.weird-tabbar) #sticky-header .weird-notif-trigger:focus-visible {
		background: rgba(124,58,237,0.20) !important;
		border-color: rgba(167,139,250,0.50) !important;
		color: #fff !important;
	}
	body:has(.weird-tabbar) #sticky-header .weird-theme-trigger:active,
	body:has(.weird-tabbar) #sticky-header .weird-search-trigger:active,
	body:has(.weird-tabbar) #sticky-header .weird-notif-trigger:active {
		transform: scale(0.94);
	}
	body:has(.weird-tabbar) #sticky-header .weird-theme-trigger .fa-sun,
	body:has(.weird-tabbar) #sticky-header .weird-theme-trigger .fa-moon {
		font-size: 15px;
		line-height: 1;
	}
	html:not(.light-mode) body:has(.weird-tabbar) #sticky-header .weird-theme-trigger .fa-sun { display: inline; }
	html:not(.light-mode) body:has(.weird-tabbar) #sticky-header .weird-theme-trigger .fa-moon { display: none; }
	html.light-mode body:has(.weird-tabbar) #sticky-header .weird-theme-trigger .fa-sun { display: none; }
	html.light-mode body:has(.weird-tabbar) #sticky-header .weird-theme-trigger .fa-moon { display: inline; }
	html.light-mode body:has(.weird-tabbar) #sticky-header .weird-theme-trigger,
	html.light-mode body:has(.weird-tabbar) #sticky-header .weird-search-trigger,
	html.light-mode body:has(.weird-tabbar) #sticky-header .weird-notif-trigger {
		background: rgba(124,58,237,0.075) !important;
		border-color: rgba(124,58,237,0.18) !important;
		color: #5b21b6 !important;
		box-shadow: 0 8px 20px -17px rgba(124,58,237,0.30),
		            0 1px 0 rgba(255,255,255,0.90) inset !important;
	}
}

/* Same app-like header layout inside the Capacitor wrapper on any
   viewport width (e.g. iPad landscape). */
body.is-native-app #sticky-header .navbar > a:first-child {
	position: static !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
	order: 1 !important;
	margin: 0 auto 0 0 !important;
}
body.is-native-app #sticky-header .navbar {
	align-items: center !important;
	flex-wrap: nowrap !important;
	justify-content: space-between !important;
	column-gap: 10px !important;
	height: auto !important;
	min-height: 66px !important;
	padding: 0 2px !important;
}
body.is-native-app #sticky-header .weird-nav-actions {
	order: 3 !important;
	margin-left: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 8px !important;
}
body.is-native-app #sticky-header .weird-theme-trigger,
body.is-native-app #sticky-header .weird-search-trigger,
body.is-native-app #sticky-header .weird-notif-trigger {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	border-radius: 14px !important;
	padding: 0 !important;
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: rgba(124,58,237,0.11) !important;
	border: 1px solid rgba(124,58,237,0.28) !important;
	color: var(--text-primary, #f8fafc) !important;
}
html.light-mode body.is-native-app #sticky-header .weird-theme-trigger,
html.light-mode body.is-native-app #sticky-header .weird-search-trigger,
html.light-mode body.is-native-app #sticky-header .weird-notif-trigger {
	background: rgba(124,58,237,0.075) !important;
	border-color: rgba(124,58,237,0.18) !important;
	color: #5b21b6 !important;
}

/* V6.9 patch 217c — Extend 1-column to ≤1024px so iPhone Pro Max
   landscape and iPad portrait both get the app-like single column. */
@media (max-width: 1024px) {
	.discover-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards),
	.connect-stream:not(.connect-grid):not(.mq-stream):not(.pvp-game-cards) {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}
}

/* ============================================================
   V6.9 patch 219 — Jump-arrow + footer app-makeover
   ============================================================
   A) #scrollUp restyle: circular iOS-style floating button with
      backdrop blur, sitting above the bottom tab bar with safe-
      area clearance. Was 50×50 grey square.
   B) Marketing footer (#fbg + share row) hidden on mobile /
      native; replaced with a minimal one-line credit row that
      reads like an iOS Settings → About row.
============================================================ */

/* ---------- A) Jump-to-top button ---------- */
#scrollUp {
	background: rgba(15, 12, 28, 0.78) !important;
	color: var(--purple-light, #a78bfa) !important;
	width: 44px !important;
	height: 44px !important;
	line-height: 44px !important;
	border-radius: 999px !important;
	right: 14px !important;
	bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
	font-size: 16px !important;
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.55),
	            0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
	transition: transform 0.18s cubic-bezier(.2, .8, .25, 1),
	            background 0.18s ease !important;
	z-index: 1025 !important;
}
#scrollUp:hover,
#scrollUp:focus-visible {
	background: rgba(124, 58, 237, 0.92) !important;
	color: #fff !important;
	transform: translateY(-2px) !important;
}
#scrollUp:active { transform: scale(0.94) !important; }
html.light-mode #scrollUp {
	background: rgba(255, 255, 255, 0.92) !important;
	color: var(--purple, #7c3aed) !important;
	box-shadow: 0 8px 22px -10px rgba(60, 40, 120, 0.30),
	            0 0 0 1px rgba(124, 58, 237, 0.12) inset !important;
}
html.light-mode #scrollUp:hover {
	background: var(--purple, #7c3aed) !important;
	color: #fff !important;
}
/* On signed-out pages / desktop (no tab bar), sit closer to bottom edge. */
@media (min-width: 1025px) {
	#scrollUp { bottom: 24px !important; }
}

/* ---------- B) Footer makeover on mobile / native ---------- */

/* Hide the legacy marketing footer + share strip on phones and in
   the wrapped app. Keep on desktop where users have horizontal real
   estate to glance at it. */
@media (max-width: 1024px) {
	body:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) #fbg,
	body:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) .purplebg4 {
		display: none !important;
	}
}
body.is-native-app:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) #fbg,
body.is-native-app:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) .purplebg4 {
	display: none !important;
}

/* The mini app-style credit row, injected by footer.php right before
   </body>. iOS-Settings-row visual language. */
.weird-app-credit {
	display: none;
	padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	text-align: center;
	font-size: 11.5px;
	letter-spacing: 0.02em;
	color: var(--text-muted, #94a3b8);
	background: transparent;
	margin-top: 24px;
}
.weird-app-credit a {
	color: var(--text-muted, #94a3b8);
	text-decoration: none;
	padding: 2px 4px;
}
.weird-app-credit a:hover { color: var(--purple-light, #a78bfa); }
.weird-app-credit .weird-app-credit-sep { opacity: 0.4; padding: 0 4px; }
.weird-app-credit .weird-app-credit-brand {
	display: block;
	font-weight: 700;
	color: var(--text-secondary, #a8a4c4);
	margin-bottom: 4px;
	letter-spacing: 0.02em;
}
html.light-mode .weird-app-credit { color: var(--text-muted, #64748b); }
html.light-mode .weird-app-credit a { color: var(--text-muted, #64748b); }
html.light-mode .weird-app-credit a:hover { color: var(--purple, #7c3aed); }

@media (max-width: 1024px) {
	body:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) .weird-app-credit {
		display: block;
	}
}
body.is-native-app:not(.page-index):not(.page-login):not(.page-register):not(.page-forgot) .weird-app-credit {
	display: block;
}

/* ============================================================
   V6.9 patch 226 — Native contextual app header
   ============================================================
   Implements the next app-shell pass:
     - contextual title in the top bar
     - page-specific primary action
     - avatar/account menu with theme toggle inside
     - blur + stronger color once scrolled
     - compact one-line Messages thread chrome
============================================================ */
.weird-brand-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 9px !important;
	min-width: 0 !important;
	text-decoration: none !important;
}
.weird-brand-glyph {
	display: none;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	height: 31px;
	min-height: 31px;
	max-height: 31px;
	margin-right: 0;
	border-radius: 0;
	align-items: center;
	justify-content: center;
	line-height: 1;
	background: transparent;
	filter: none;
	flex: 0 0 40px;
	overflow: hidden;
}
.weird-brand-glyph img {
	width: 40px !important;
	min-width: 0 !important;
	max-width: 40px !important;
	height: 31px !important;
	max-height: 31px !important;
	display: block;
	object-fit: contain;
	filter: none !important;
	opacity: 1 !important;
}

/* Patch 230 — shared support/contact page chrome after header unification. */
.contact-wrap {
	max-width: 880px;
	margin: 0 auto;
	padding: 24px 0 8px;
	text-align: left;
}
.contact-wrap h2 {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 8px;
	color: var(--text-primary, #fff);
}
.contact-wrap .contact-lede {
	color: var(--text-secondary, #cbd5e1);
	font-size: 17px;
	line-height: 1.55;
	margin: 0 0 22px;
}
.contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}
.contact-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 14px;
	padding: 22px 24px;
	margin-bottom: 18px;
}
.contact-card h3 {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-primary, #fff);
}
.contact-card h3 i {
	color: #a78bfa;
	width: 24px;
	text-align: center;
}
.contact-card p {
	margin: 0 0 8px;
	line-height: 1.6;
	color: var(--text-secondary, #cbd5e1);
}
.contact-card ul {
	margin: 8px 0 0 20px;
	line-height: 1.7;
	color: var(--text-secondary, #cbd5e1);
}
.contact-card .contact-email {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg,#7c3aed,#6d28d9);
	color: #fff !important;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 800;
	text-decoration: none;
	margin-top: 4px;
}
.contact-card .contact-email:hover { color: #fff !important; filter: brightness(1.08); }
.contact-meta {
	color: var(--text-secondary, #94a3b8);
	font-size: 14px;
	text-align: center;
	margin-top: 24px;
}
html.light-mode .contact-card {
	background: #fff;
	border-color: rgba(0,0,0,.08);
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
html.light-mode .contact-wrap h2,
html.light-mode .contact-card h3 { color: #24163f; }
html.light-mode .contact-wrap .contact-lede,
html.light-mode .contact-card p,
html.light-mode .contact-card ul { color: #4b5563; }
@media (max-width: 640px) {
	.contact-grid { grid-template-columns: 1fr; gap: 0; }
	.contact-card { padding: 18px 16px; }
}

/* ============================================================
   V6.9 patch 231 — App/mobile page-heading density
   ============================================================
   The native header now carries page context (Discover, Explore,
   Play, Profile, etc). On app/mobile, duplicate in-page H1 bars
   burn vertical space without adding orientation. Keep useful
   controls/stats; hide or compress page-level title chrome only.
============================================================ */
@media (max-width: 1024px) {
	body:has(.weird-tabbar) .discover-wrap > .discover-bar,
	body:has(.weird-tabbar) .auth-wrap > .discover-bar {
		padding: 6px 8px !important;
		min-height: 0 !important;
		margin: 0 0 10px !important;
		gap: 6px !important;
		background: transparent !important;
		border-color: transparent !important;
		box-shadow: none !important;
	}
	body:has(.weird-tabbar) .discover-wrap > .discover-bar::before,
	body:has(.weird-tabbar) .auth-wrap > .discover-bar::before {
		display: none !important;
	}
	body:has(.weird-tabbar) .discover-wrap > .discover-bar .discover-bar-title,
	body:has(.weird-tabbar) .auth-wrap > .discover-bar .discover-bar-title {
		display: none !important;
	}
	body:has(.weird-tabbar) .discover-wrap > .discover-bar:not(:has(.discover-bar-stats)):not(:has(.discover-bar-back)):not(:has(.acct-profile-cta)),
	body:has(.weird-tabbar) .auth-wrap > .discover-bar:not(:has(.discover-bar-stats)):not(:has(.discover-bar-back)):not(:has(.acct-profile-cta)) {
		display: none !important;
	}
	body:has(.weird-tabbar) .discover-wrap > .discover-bar .discover-bar-stats {
		width: 100% !important;
		margin: 0 !important;
		gap: 6px !important;
		padding: 0 !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	body:has(.weird-tabbar) .discover-wrap > .discover-bar .discover-bar-stats::-webkit-scrollbar {
		display: none !important;
	}
	body:has(.weird-tabbar) .discover-wrap > .discover-bar .discover-bar-stat {
		font-size: 11px !important;
		padding: 4px 9px !important;
		min-height: 26px !important;
		white-space: nowrap !important;
	}
	body:has(.weird-tabbar) .discover-wrap > .discover-bar .discover-bar-back {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		margin: 0 !important;
	}
	body:has(.weird-tabbar) main .wrapper > h1:first-child,
	body:has(.weird-tabbar) main .wrapper > h2:first-child,
	body:has(.weird-tabbar) .contact-wrap > h2:first-child {
		display: none !important;
	}
	body:has(.weird-tabbar) .contact-wrap {
		padding-top: 6px !important;
	}
}

body.is-native-app .discover-wrap > .discover-bar,
body.is-native-app .auth-wrap > .discover-bar {
	padding: 6px 8px !important;
	min-height: 0 !important;
	margin: 0 0 10px !important;
	gap: 6px !important;
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
body.is-native-app .discover-wrap > .discover-bar::before,
body.is-native-app .auth-wrap > .discover-bar::before,
body.is-native-app .discover-wrap > .discover-bar .discover-bar-title,
body.is-native-app .auth-wrap > .discover-bar .discover-bar-title {
	display: none !important;
}
body.is-native-app .discover-wrap > .discover-bar:not(:has(.discover-bar-stats)):not(:has(.discover-bar-back)):not(:has(.acct-profile-cta)),
body.is-native-app .auth-wrap > .discover-bar:not(:has(.discover-bar-stats)):not(:has(.discover-bar-back)):not(:has(.acct-profile-cta)) {
	display: none !important;
}
body.is-native-app main .wrapper > h1:first-child,
body.is-native-app main .wrapper > h2:first-child,
body.is-native-app .contact-wrap > h2:first-child {
	display: none !important;
}

/* Patch 232 — tighten remaining section headings in app/mobile. */
@media (max-width: 1024px) {
	body:has(.weird-tabbar) .discover-section-head,
	body:has(.weird-tabbar) .profile-compare-head,
	body:has(.weird-tabbar) .acct-card .discover-section-head {
		margin: 0 0 8px !important;
		min-height: 0 !important;
		gap: 4px !important;
	}
	body:has(.weird-tabbar) .discover-section-head h2,
	body:has(.weird-tabbar) .acct-card .discover-section-head h2,
	body:has(.weird-tabbar) .pvp-coll-title,
	body:has(.weird-tabbar) .profile-compare-title,
	body:has(.weird-tabbar) .profile-subheading,
	body:has(.weird-tabbar) .contact-card h3 {
		font-size: 12px !important;
		line-height: 1.18 !important;
		font-weight: 800 !important;
		letter-spacing: 0.06em !important;
		text-transform: uppercase !important;
		color: var(--text-muted, #94a3b8) !important;
	}
	body:has(.weird-tabbar) .discover-section-head h2 i,
	body:has(.weird-tabbar) .profile-subheading i,
	body:has(.weird-tabbar) .profile-compare-title i,
	body:has(.weird-tabbar) .contact-card h3 i {
		font-size: 11px !important;
		opacity: 0.72 !important;
	}
	body:has(.weird-tabbar) .discover-section-head .discover-section-sub,
	body:has(.weird-tabbar) .acct-card > .discover-section-sub,
	body:has(.weird-tabbar) .profile-compare-sub,
	body:has(.weird-tabbar) .subpage-control-kicker {
		display: none !important;
	}
	body.page-discover:has(.weird-tabbar) .discover-section > .discover-section-head,
	body.page-profile:has(.weird-tabbar) .profile-pins > .discover-section-head,
	body.page-profile:has(.weird-tabbar) .profile-pins-empty > .discover-section-head,
	body.page-profile:has(.weird-tabbar) .profile-card > .discover-section-head,
	body.page-editinfo:has(.weird-tabbar) .acct-card > .discover-section-head,
	body.page-created:has(.weird-tabbar) .uqc-listhead-text h1,
	body.page-created:has(.weird-tabbar) .uqc-listhead-text .uqc-listhead-title {
		display: none !important;
	}
	body.page-pvp:has(.weird-tabbar) .pvp-hero {
		padding: 0 !important;
		margin: 0 0 10px !important;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
	}
	body.page-pvp:has(.weird-tabbar) .pvp-hero-icon,
	body.page-pvp:has(.weird-tabbar) .pvp-hero-text h1,
	body.page-pvp:has(.weird-tabbar) .pvp-hero-text > p:not(.pvp-hero-preselect) {
		display: none !important;
	}
	body.page-q:has(.weird-tabbar) main h2:not(.uqc-q-text) {
		font-size: 13px !important;
		line-height: 1.2 !important;
		margin-bottom: 8px !important;
		color: var(--text-secondary, #cbd5e1) !important;
	}
	body:has(.weird-tabbar) .contact-card {
		padding: 16px 15px !important;
		margin-bottom: 12px !important;
	}
}

body.is-native-app .discover-section-head,
body.is-native-app .profile-compare-head,
body.is-native-app .acct-card .discover-section-head {
	margin: 0 0 8px !important;
	min-height: 0 !important;
	gap: 4px !important;
}
body.is-native-app .discover-section-head h2,
body.is-native-app .acct-card .discover-section-head h2,
body.is-native-app .pvp-coll-title,
body.is-native-app .profile-compare-title,
body.is-native-app .profile-subheading,
body.is-native-app .contact-card h3 {
	font-size: 12px !important;
	line-height: 1.18 !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	color: var(--text-muted, #94a3b8) !important;
}
body.is-native-app .discover-section-head .discover-section-sub,
body.is-native-app .acct-card > .discover-section-sub,
body.is-native-app .profile-compare-sub,
body.is-native-app .subpage-control-kicker,
body.is-native-app.page-discover .discover-section > .discover-section-head,
body.is-native-app.page-profile .profile-pins > .discover-section-head,
body.is-native-app.page-profile .profile-pins-empty > .discover-section-head,
body.is-native-app.page-profile .profile-card > .discover-section-head,
body.is-native-app.page-editinfo .acct-card > .discover-section-head,
body.is-native-app.page-created .uqc-listhead-text h1,
body.is-native-app.page-created .uqc-listhead-text .uqc-listhead-title {
	display: none !important;
}
body.is-native-app.page-pvp .pvp-hero {
	padding: 0 !important;
	margin: 0 0 10px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.is-native-app.page-pvp .pvp-hero-icon,
body.is-native-app.page-pvp .pvp-hero-text h1,
body.is-native-app.page-pvp .pvp-hero-text > p:not(.pvp-hero-preselect) {
	display: none !important;
}
.weird-header-title {
	display: none;
	min-width: 0;
	flex: 1 1 auto;
	max-width: none;
	flex-direction: column;
	min-height: 36px;
	max-height: none;
	align-items: flex-start;
	justify-content: center;
	gap: 1px;
	line-height: 1.04;
	text-align: left;
	overflow: visible;
}
.weird-header-title-main {
	display: block;
	max-width: 100%;
	flex: 0 1 auto;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
}
.weird-header-title-sub {
	display: block;
	max-width: 100%;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	overflow-wrap: break-word;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(196,181,253,0.78);
}

body:has(.weird-tabbar) #sticky-header,
body.is-native-app #sticky-header {
	background: rgba(12,10,20,0.62) !important;
	border-bottom: 1px solid rgba(255,255,255,0.04) !important;
	backdrop-filter: saturate(1.35) blur(18px);
	-webkit-backdrop-filter: saturate(1.35) blur(18px);
	transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body:has(.weird-tabbar) #sticky-header.weird-header-scrolled,
body.is-native-app #sticky-header.weird-header-scrolled {
	background: rgba(12,10,20,0.88) !important;
	border-bottom-color: rgba(167,139,250,0.18) !important;
	box-shadow: 0 10px 30px -24px rgba(0,0,0,0.78), 0 1px 0 rgba(255,255,255,0.04) inset !important;
}
html.light-mode body:has(.weird-tabbar) #sticky-header,
html.light-mode body.is-native-app #sticky-header {
	background: rgba(255,255,255,0.72) !important;
	border-bottom-color: rgba(124,58,237,0.08) !important;
}
html.light-mode body:has(.weird-tabbar) #sticky-header.weird-header-scrolled,
html.light-mode body.is-native-app #sticky-header.weird-header-scrolled {
	background: rgba(255,255,255,0.94) !important;
	border-bottom-color: rgba(124,58,237,0.16) !important;
	box-shadow: 0 10px 28px -24px rgba(74,58,120,0.45) !important;
}
html.light-mode .weird-header-title-main { color: #24163f; }
html.light-mode .weird-header-title-sub { color: #6d28d9; }

@media (max-width: 1024px) {
	body:has(.weird-tabbar) #sticky-header .weird-brand-glyph { display: inline-flex !important; }
	body:has(.weird-tabbar) #sticky-header .weird-header-title { display: flex !important; }
	body:has(.weird-tabbar) #sticky-header .navbar-brand-logo { display: none !important; }
	body:has(.weird-tabbar) #sticky-header .weird-brand-link {
		flex: 1 1 auto !important;
		max-width: min(250px, calc(100vw - 196px)) !important;
		gap: 8px !important;
		overflow: visible !important;
	}
}
body.is-native-app #sticky-header .weird-brand-glyph { display: inline-flex !important; }
body.is-native-app #sticky-header .weird-header-title { display: flex !important; }
body.is-native-app #sticky-header .navbar-brand-logo { display: none !important; }

html.light-mode .weird-brand-glyph,
html.light-mode body:has(.weird-tabbar) #sticky-header .weird-brand-glyph,
html.light-mode body.is-native-app #sticky-header .weird-brand-glyph { color: #5b21b6; }
html.light-mode body:has(.weird-tabbar) #sticky-header .weird-brand-glyph img,
html.light-mode body.is-native-app #sticky-header .weird-brand-glyph img { content: url('/img/logo/weird_w_psd_light.png?v=3'); filter: none !important; }

/* V6.9 patch 235 — App home uses brand chrome, not a generated "App" title. */
body.page-app:has(.weird-tabbar) #sticky-header .weird-brand-glyph,
body.is-native-app.page-app #sticky-header .weird-brand-glyph,
body.page-app:has(.weird-tabbar) #sticky-header .weird-header-title,
body.is-native-app.page-app #sticky-header .weird-header-title {
	display: none !important;
}
body.page-app:has(.weird-tabbar) #sticky-header .navbar-brand-logo,
body.is-native-app.page-app #sticky-header .navbar-brand-logo {
	display: block !important;
	height: 34px !important;
	max-width: 132px !important;
	object-fit: contain !important;
}
body.page-app:has(.weird-tabbar) #sticky-header .weird-brand-link,
body.is-native-app.page-app #sticky-header .weird-brand-link {
	max-width: 146px !important;
}
body.is-native-app #sticky-header .weird-brand-link {
	flex: 1 1 auto !important;
	max-width: min(250px, calc(100vw - 196px)) !important;
	gap: 8px !important;
	overflow: visible !important;
}

.weird-message-trigger {
	position: relative !important;
}
.weird-message-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ef4444, #b91c1c);
	color: #fff;
	font-size: 10px;
	font-weight: 850;
	line-height: 18px;
	text-align: center;
	box-shadow: 0 0 0 2px rgba(15,12,28,0.88), 0 4px 10px -6px rgba(239,68,68,0.85);
	pointer-events: none;
}
html.light-mode .weird-message-badge {
	box-shadow: 0 0 0 2px #fff, 0 4px 10px -6px rgba(239,68,68,0.48);
}

body:has(.weird-tabbar) #sticky-header .weird-context-trigger,
body:has(.weird-tabbar) #sticky-header .weird-avatar-trigger,
body.is-native-app #sticky-header .weird-context-trigger,
body.is-native-app #sticky-header .weird-avatar-trigger {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	border-radius: 14px !important;
	padding: 0 !important;
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: rgba(124,58,237,0.11) !important;
	border: 1px solid rgba(124,58,237,0.28) !important;
	color: var(--text-primary, #f8fafc) !important;
	text-decoration: none !important;
	box-shadow: 0 8px 20px -16px rgba(124,58,237,0.50), 0 1px 0 rgba(255,255,255,0.05) inset !important;
	-webkit-tap-highlight-color: transparent;
}
body:has(.weird-tabbar) #sticky-header .weird-context-trigger:hover,
body:has(.weird-tabbar) #sticky-header .weird-avatar-trigger:hover,
body:has(.weird-tabbar) #sticky-header .weird-context-trigger:focus-visible,
body:has(.weird-tabbar) #sticky-header .weird-avatar-trigger:focus-visible,
body.is-native-app #sticky-header .weird-context-trigger:hover,
body.is-native-app #sticky-header .weird-avatar-trigger:hover,
body.is-native-app #sticky-header .weird-context-trigger:focus-visible,
body.is-native-app #sticky-header .weird-avatar-trigger:focus-visible {
	background: rgba(124,58,237,0.20) !important;
	border-color: rgba(167,139,250,0.50) !important;
	color: #fff !important;
	outline: none !important;
}
body:has(.weird-tabbar) #sticky-header .weird-context-trigger:active,
body:has(.weird-tabbar) #sticky-header .weird-avatar-trigger:active,
body.is-native-app #sticky-header .weird-context-trigger:active,
body.is-native-app #sticky-header .weird-avatar-trigger:active { transform: scale(0.94); }
html.light-mode body:has(.weird-tabbar) #sticky-header .weird-context-trigger,
html.light-mode body:has(.weird-tabbar) #sticky-header .weird-avatar-trigger,
html.light-mode body.is-native-app #sticky-header .weird-context-trigger,
html.light-mode body.is-native-app #sticky-header .weird-avatar-trigger {
	background: rgba(124,58,237,0.075) !important;
	border-color: rgba(124,58,237,0.18) !important;
	color: #5b21b6 !important;
	box-shadow: 0 8px 20px -17px rgba(124,58,237,0.30), 0 1px 0 rgba(255,255,255,0.90) inset !important;
}
.weird-avatar-trigger img {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	display: block;
	object-fit: cover;
	background: rgba(255,255,255,0.08);
}
.weird-avatar-trigger[aria-expanded="true"] {
	background: rgba(124,58,237,0.28) !important;
	border-color: rgba(196,181,253,0.62) !important;
}

.weird-avatar-popout {
	position: fixed;
	top: calc(70px + env(safe-area-inset-top, 0px));
	right: max(12px, env(safe-area-inset-right, 0px));
	z-index: 10001;
	width: min(286px, calc(100vw - 24px));
	padding: 8px;
	border-radius: 18px;
	border: 1px solid rgba(167,139,250,0.22);
	background: rgba(22,17,39,0.96);
	box-shadow: 0 18px 46px -22px rgba(0,0,0,0.78), 0 0 0 1px rgba(255,255,255,0.04) inset;
	backdrop-filter: saturate(1.35) blur(18px);
	-webkit-backdrop-filter: saturate(1.35) blur(18px);
	text-align: left;
}
.weird-avatar-popout[hidden] { display: none !important; }
.weird-avatar-popout.is-open { display: flex; flex-direction: column; gap: 4px; }
.weird-avatar-menu-headrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 42px;
	align-items: center;
	gap: 6px;
}
.weird-avatar-menu-head,
.weird-avatar-menu-item {
	display: flex !important;
	align-items: center !important;
	gap: 11px !important;
	width: 100% !important;
	min-height: 42px !important;
	padding: 9px 10px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: rgba(248,250,252,0.92) !important;
	text-decoration: none !important;
	font: inherit !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-align: left !important;
	cursor: pointer !important;
}
.weird-avatar-menu-headrow .weird-avatar-menu-head { min-width: 0 !important; }
.weird-avatar-theme-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: rgba(248,250,252,0.92) !important;
	cursor: pointer !important;
}
.weird-avatar-theme-icon:hover,
.weird-avatar-theme-icon:focus-visible {
	background: rgba(124,58,237,0.18) !important;
	color: #fff !important;
	outline: none !important;
}
.weird-avatar-theme-icon i {
	font-size: 15px;
	line-height: 1;
	color: #c4b5fd;
}
.weird-avatar-menu-head:hover,
.weird-avatar-menu-item:hover,
.weird-avatar-menu-head:focus-visible,
.weird-avatar-menu-item:focus-visible {
	background: rgba(124,58,237,0.18) !important;
	color: #fff !important;
	outline: none !important;
}
.weird-avatar-menu-head img {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	object-fit: cover;
	background: rgba(255,255,255,0.08);
	box-shadow: 0 0 0 2px rgba(167,139,250,0.28);
}
.weird-avatar-menu-head span,
.weird-avatar-menu-item span {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.1;
}
.weird-avatar-menu-head strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	color: #fff;
}
.weird-avatar-menu-head small {
	margin-top: 3px;
	font-size: 11px;
	font-weight: 700;
	color: rgba(196,181,253,0.75);
}
.weird-avatar-menu-item i {
	width: 19px;
	min-width: 19px;
	text-align: center;
	color: #c4b5fd;
}
.weird-avatar-theme-row,
.weird-avatar-menu-signout {
	color: rgba(248,250,252,0.72) !important;
	font-weight: 650 !important;
}
.weird-avatar-theme-row i,
.weird-avatar-menu-signout i { color: rgba(196,181,253,0.68) !important; }
.weird-avatar-theme-row:hover,
.weird-avatar-theme-row:focus-visible,
.weird-avatar-menu-signout:hover,
.weird-avatar-menu-signout:focus-visible {
	background: rgba(255,255,255,0.055) !important;
	color: rgba(248,250,252,0.92) !important;
}
.weird-avatar-theme-row:hover i,
.weird-avatar-theme-row:focus-visible i,
.weird-avatar-menu-signout:hover i,
.weird-avatar-menu-signout:focus-visible i { color: rgba(196,181,253,0.86) !important; }
html:not(.light-mode) .weird-avatar-theme .fa-sun { display: inline; }
html:not(.light-mode) .weird-avatar-theme .fa-moon { display: none; }
html.light-mode .weird-avatar-theme .fa-sun { display: none; }
html.light-mode .weird-avatar-theme .fa-moon { display: inline; }
.weird-avatar-theme-row .weird-theme-label { display: none !important; }
html:not(.light-mode) .weird-avatar-theme-row .weird-theme-label-light { display: block !important; }
html.light-mode .weird-avatar-theme-row .weird-theme-label-dark { display: block !important; }
html.light-mode .weird-avatar-popout {
	background: rgba(255,255,255,0.96);
	border-color: rgba(124,58,237,0.16);
	box-shadow: 0 18px 42px -24px rgba(74,58,120,0.36), 0 0 0 1px rgba(255,255,255,0.90) inset;
}
html.light-mode .weird-avatar-menu-head,
html.light-mode .weird-avatar-menu-item { color: #24163f !important; }
html.light-mode .weird-avatar-menu-head:hover,
html.light-mode .weird-avatar-menu-item:hover,
html.light-mode .weird-avatar-menu-head:focus-visible,
html.light-mode .weird-avatar-menu-item:focus-visible { background: rgba(124,58,237,0.09) !important; color: #24163f !important; }
html.light-mode .weird-avatar-menu-head strong { color: #24163f; }
html.light-mode .weird-avatar-menu-head small { color: #6d28d9; }
html.light-mode .weird-avatar-menu-item i { color: #6d28d9; }
html.light-mode .weird-avatar-theme-row,
html.light-mode .weird-avatar-menu-signout { color: rgba(36,22,63,0.68) !important; }
html.light-mode .weird-avatar-theme-row i,
html.light-mode .weird-avatar-menu-signout i { color: rgba(109,40,217,0.60) !important; }
html.light-mode .weird-avatar-theme-row:hover,
html.light-mode .weird-avatar-theme-row:focus-visible,
html.light-mode .weird-avatar-menu-signout:hover,
html.light-mode .weird-avatar-menu-signout:focus-visible {
	background: rgba(124,58,237,0.055) !important;
	color: #24163f !important;
}
html.light-mode .weird-avatar-theme-row:hover i,
html.light-mode .weird-avatar-theme-row:focus-visible i,
html.light-mode .weird-avatar-menu-signout:hover i,
html.light-mode .weird-avatar-menu-signout:focus-visible i { color: #6d28d9 !important; }
html.light-mode .weird-avatar-theme-icon { color: #24163f !important; }
html.light-mode .weird-avatar-theme-icon:hover,
html.light-mode .weird-avatar-theme-icon:focus-visible { background: rgba(124,58,237,0.09) !important; color: #24163f !important; }
html.light-mode .weird-avatar-theme-icon i { color: #6d28d9; }

@media (max-width: 430px) {
	body:has(.weird-tabbar) #sticky-header .weird-nav-actions,
	body.is-native-app #sticky-header .weird-nav-actions { gap: 4px !important; }
	body:has(.weird-tabbar) #sticky-header .weird-brand-link,
	body.is-native-app #sticky-header .weird-brand-link { max-width: min(250px, calc(100vw - 196px)) !important; }
	.weird-header-title-main { font-size: 14.5px; line-height: 1.02; }
	.weird-header-title-sub { font-size: 9.5px; line-height: 1.05; }
}
@media (max-width: 360px) {
	body:has(.weird-tabbar) #sticky-header .weird-context-trigger:not(.weird-message-trigger),
	body.is-native-app #sticky-header .weird-context-trigger:not(.weird-message-trigger) { display: none !important; }
	body:has(.weird-tabbar) #sticky-header .weird-brand-link,
	body.is-native-app #sticky-header .weird-brand-link { max-width: min(220px, calc(100vw - 196px)) !important; }
	.weird-header-title-sub { display: none !important; }
}

/* Patch 228 — three-mode bottom nav has room to breathe. */
@media (max-width: 1024px) {
	.weird-tabbar .weird-tabbar-item {
		max-width: none !important;
	}
	.weird-tabbar .weird-tabbar-icon {
		font-size: 19px !important;
	}
	.weird-tabbar .weird-tabbar-label {
		font-size: 11px !important;
	}
}

@media (max-width: 860px) {
	body.page-messages .msg-shell[data-mobile-pane="thread"] {
		margin-top: 8px !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head {
		display: grid !important;
		grid-template-columns: 38px 42px minmax(0, 1fr) auto !important;
		align-items: center !important;
		gap: 8px !important;
		padding: 8px 10px !important;
		min-height: 56px !important;
		flex-wrap: nowrap !important;
		background: rgba(18,14,32,0.88) !important;
		backdrop-filter: saturate(1.25) blur(14px);
		-webkit-backdrop-filter: saturate(1.25) blur(14px);
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-back {
		width: 36px !important;
		height: 36px !important;
		margin: 0 !important;
		border-radius: 13px !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-avatar-link,
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-avatar-link img,
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head > img,
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head-group .msg-group-avatars-lg {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-avatar-link {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		text-decoration: none !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head > img {
		border-width: 1px !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head-name {
		min-width: 0 !important;
		font-size: 14px !important;
		line-height: 1.12 !important;
		color: #f7f8ff !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head-name-text,
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head-name a.name-link,
	body.page-messages .msg-shell[data-mobile-pane="thread"] .wrapper a.name-link {
		color: #f7f8ff !important;
		-webkit-text-fill-color: #f7f8ff !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head-name-row {
		display: flex !important;
		align-items: center !important;
		gap: 5px !important;
		flex-wrap: nowrap !important;
		min-width: 0 !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head-name-text {
		display: block !important;
		min-width: 0 !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: nowrap !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head-sub {
		display: none !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-tools {
		width: auto !important;
		margin: 0 !important;
		margin-left: 0 !important;
		gap: 4px !important;
		justify-self: end !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-pin.msg-side-pin,
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-kebab-btn,
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-group-tool-btn {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		padding: 0 !important;
		border-radius: 13px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-pin-inline.msg-side-pin {
		width: 22px !important;
		height: 22px !important;
		min-width: 22px !important;
		border-radius: 999px !important;
	}
	body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-kebab-menu {
		position: fixed !important;
		top: calc(128px + env(safe-area-inset-top, 0px)) !important;
		right: 10px !important;
		max-width: calc(100vw - 20px) !important;
	}
	html.light-mode body.page-messages .msg-shell[data-mobile-pane="thread"] .msg-thread-head {
		background: rgba(255,255,255,0.92) !important;
	}
}

/* Patch 233 — Messages should read as app chat, not a card page.
   V207 polish — was margin:0 -12px which overshot the 15px-padded
   .container by 3px on tablet 820 (audit family #1, hard-pinned via
   CDP). Pull back exactly the container's gutter so edges align. */
@media (max-width: 860px) {
	body.page-messages:has(.weird-tabbar) .discover-wrap[data-cat="messages"],
	body.page-messages.is-native-app .discover-wrap[data-cat="messages"] {
		max-width: 100vw !important;
		width: 100vw !important;
		margin: 0 -15px !important;
		padding: 0 !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-shell[data-mobile-pane="thread"],
	body.page-messages.is-native-app .msg-shell[data-mobile-pane="thread"] {
		--msg-native-top: calc(80px + env(safe-area-inset-top, 0px));
		--msg-native-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
		margin: 0 !important;
		gap: 0 !important;
		height: calc(100dvh - var(--msg-native-top) - var(--msg-native-bottom)) !important;
		height: calc(100dvh - var(--msg-native-top) - var(--msg-native-bottom)) !important;
		min-height: calc(100dvh - var(--msg-native-top) - var(--msg-native-bottom)) !important;
		min-height: calc(100dvh - var(--msg-native-top) - var(--msg-native-bottom)) !important;
		max-height: calc(100dvh - var(--msg-native-top) - var(--msg-native-bottom)) !important;
		max-height: calc(100dvh - var(--msg-native-top) - var(--msg-native-bottom)) !important;
	}
	body.page-messages.weird-kb-open:has(.weird-tabbar) .msg-shell[data-mobile-pane="thread"],
	body.page-messages.is-native-app.weird-kb-open .msg-shell[data-mobile-pane="thread"] {
		--msg-native-bottom: env(safe-area-inset-bottom, 0px);
	}
	body.page-messages:has(.weird-tabbar) .msg-shell[data-mobile-pane="thread"] .msg-thread,
	body.page-messages.is-native-app .msg-shell[data-mobile-pane="thread"] .msg-thread {
		height: 100% !important;
		min-height: 0 !important;
		max-height: none !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: linear-gradient(180deg, rgba(20,22,48,0.98), rgba(17,20,42,0.98)) !important;
		box-shadow: none !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-shell[data-mobile-pane="thread"] .msg-thread-head,
	body.page-messages.is-native-app .msg-shell[data-mobile-pane="thread"] .msg-thread-head {
		border-bottom: 1px solid rgba(255,255,255,0.08) !important;
		border-radius: 0 !important;
		box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-shell[data-mobile-pane="thread"] .msg-thread-body,
	body.page-messages.is-native-app .msg-shell[data-mobile-pane="thread"] .msg-thread-body {
		flex: 1 1 auto !important;
		min-height: 0 !important;
		max-height: none !important;
		padding: 14px 10px 10px !important;
		gap: 7px !important;
		background: transparent !important;
		scrollbar-width: none !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-thread-body::-webkit-scrollbar,
	body.page-messages.is-native-app .msg-thread-body::-webkit-scrollbar {
		display: none !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-row,
	body.page-messages.is-native-app .msg-row {
		gap: 7px !important;
		max-width: calc(100% - 18px) !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-thread-dm-shell .msg-row-me,
	body.page-messages.is-native-app .msg-thread-dm-shell .msg-row-me {
		max-width: 78% !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-thread-dm-shell .msg-row-them,
	body.page-messages.is-native-app .msg-thread-dm-shell .msg-row-them {
		max-width: 82% !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-thread-dm-shell .msg-row-me img.msg-avatar,
	body.page-messages.is-native-app .msg-thread-dm-shell .msg-row-me img.msg-avatar,
	body.page-messages:has(.weird-tabbar) .msg-thread-dm-shell .msg-bubble-name,
	body.page-messages.is-native-app .msg-thread-dm-shell .msg-bubble-name {
		display: none !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-row img.msg-avatar,
	body.page-messages.is-native-app .msg-row img.msg-avatar {
		width: 25px !important;
		height: 25px !important;
		border-color: rgba(255,255,255,0.14) !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-bubble,
	body.page-messages.is-native-app .msg-bubble {
		padding: 9px 13px !important;
		border-radius: 20px !important;
		font-size: 15.5px !important;
		line-height: 1.34 !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-row-them .msg-bubble,
	body.page-messages.is-native-app .msg-row-them .msg-bubble {
		background: rgba(255,255,255,0.085) !important;
		border-color: rgba(255,255,255,0.09) !important;
		border-top-left-radius: 7px !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-row-me .msg-bubble,
	body.page-messages.is-native-app .msg-row-me .msg-bubble {
		border-top-right-radius: 7px !important;
		box-shadow: 0 8px 20px -12px rgba(124,58,237,0.76), 0 1px 0 rgba(255,255,255,0.16) inset !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-bubble-meta,
	body.page-messages.is-native-app .msg-bubble-meta {
		margin: 4px 4px 0 !important;
		font-size: 11px !important;
		line-height: 1.2 !important;
		color: rgba(226,232,240,0.68) !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-row-event,
	body.page-messages.is-native-app .msg-row-event {
		width: min(100% - 28px, 420px) !important;
		max-width: min(100% - 28px, 420px) !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-event-card,
	body.page-messages.is-native-app .msg-event-card {
		border-radius: 18px !important;
		background: rgba(124,58,237,0.16) !important;
		border-color: rgba(167,139,250,0.30) !important;
		box-shadow: none !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-event-summary .msg-event-main,
	body.page-messages.is-native-app .msg-event-summary .msg-event-main,
	body.page-messages:has(.weird-tabbar) .msg-event-card > .msg-event-main,
	body.page-messages.is-native-app .msg-event-card > .msg-event-main {
		display: grid !important;
		gap: 2px !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-event-title,
	body.page-messages.is-native-app .msg-event-title,
	body.page-messages:has(.weird-tabbar) .msg-event-body,
	body.page-messages.is-native-app .msg-event-body,
	body.page-messages:has(.weird-tabbar) .msg-event-meta,
	body.page-messages.is-native-app .msg-event-meta {
		display: block !important;
		min-width: 0 !important;
		overflow-wrap: anywhere !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-event-title,
	body.page-messages.is-native-app .msg-event-title {
		font-size: 13px !important;
		line-height: 1.2 !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-event-body,
	body.page-messages.is-native-app .msg-event-body {
		font-size: 12px !important;
		line-height: 1.25 !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-composer,
	body.page-messages.is-native-app .msg-composer {
		position: relative !important;
		flex: 0 0 auto !important;
		padding: 8px 10px 10px !important;
		gap: 8px !important;
		align-items: flex-end !important;
		background: rgba(18,14,32,0.92) !important;
		border-top: 1px solid rgba(255,255,255,0.08) !important;
		backdrop-filter: saturate(1.25) blur(14px);
		-webkit-backdrop-filter: saturate(1.25) blur(14px);
	}
	body.page-messages:has(.weird-tabbar) .msg-composer-field,
	body.page-messages.is-native-app .msg-composer-field {
		display: flex !important;
		flex: 1 1 auto !important;
		flex-direction: column !important;
		gap: 6px !important;
		min-width: 0 !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-composer-inputrow,
	body.page-messages.is-native-app .msg-composer-inputrow {
		display: flex !important;
		align-items: flex-end !important;
		gap: 7px !important;
		min-width: 0 !important;
		width: 100% !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-emoji-trigger,
	body.page-messages.is-native-app .msg-emoji-trigger {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
		border-radius: 21px !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-emoji-picker,
	body.page-messages.is-native-app .msg-emoji-picker {
		left: 0 !important;
		bottom: calc(100% + 8px) !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-composer textarea,
	body.page-messages.is-native-app .msg-composer textarea {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		min-height: 42px !important;
		max-height: 128px !important;
		padding: 10px 14px !important;
		border-radius: 21px !important;
		line-height: 1.25 !important;
		background: rgba(255,255,255,0.075) !important;
		border-color: rgba(255,255,255,0.12) !important;
		box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-composer button[type="submit"],
	body.page-messages.is-native-app .msg-composer button[type="submit"] {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
	}
	body.page-messages:has(.weird-tabbar) .msg-composer button[type="submit"]:disabled,
	body.page-messages.is-native-app .msg-composer button[type="submit"]:disabled {
		opacity: 0.55 !important;
		transform: none !important;
	}
	html.light-mode body.page-messages:has(.weird-tabbar) .msg-shell[data-mobile-pane="thread"] .msg-thread,
	html.light-mode body.page-messages.is-native-app .msg-shell[data-mobile-pane="thread"] .msg-thread {
		background: #f7f5ff !important;
	}
	html.light-mode body.page-messages:has(.weird-tabbar) .msg-composer,
	html.light-mode body.page-messages.is-native-app .msg-composer,
	html.light-mode body.page-messages:has(.weird-tabbar) .msg-shell[data-mobile-pane="thread"] .msg-thread-head,
	html.light-mode body.page-messages.is-native-app .msg-shell[data-mobile-pane="thread"] .msg-thread-head {
		background: rgba(255,255,255,0.92) !important;
		border-color: rgba(124,58,237,0.12) !important;
	}
	html.light-mode body.page-messages:has(.weird-tabbar) .msg-row-them .msg-bubble,
	html.light-mode body.page-messages.is-native-app .msg-row-them .msg-bubble,
	html.light-mode body.page-messages:has(.weird-tabbar) .msg-composer textarea,
	html.light-mode body.page-messages.is-native-app .msg-composer textarea {
		background: #fff !important;
		border-color: rgba(124,58,237,0.14) !important;
	}
	html.light-mode body.page-messages:has(.weird-tabbar) .msg-bubble-meta,
	html.light-mode body.page-messages.is-native-app .msg-bubble-meta {
		color: rgba(60,47,86,0.62) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body:has(.weird-tabbar) #sticky-header,
	body.is-native-app #sticky-header,
	.weird-context-trigger,
	.weird-avatar-trigger { transition: none !important; }
}

/* Account for bottom tab bar so the credit row isn't pinned against it. */
body:has(.weird-tabbar) .weird-app-credit {
	margin-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

/* ============================================================
   V6.9 patch 220 — Native polish sweep
   ============================================================
   Coordinated CSS for:
   A) Optimistic vote pulse (immediate visual feedback)
   B) Image fade-in (lazy-loaded images smoothly appear)
   C) Spring physics on bottom sheets (tiny overshoot)
   D) Skeleton on initial stream load (first paint never blank)
   E) Keyboard-aware composer / inputs (don't get covered)
   Behavior wired in _app_polish.php (footer.php include).
============================================================ */

/* ---- A) Vote pulse — punch + glow ringup on commit ---- */
.discover-rate.is-pulse-up {
	animation: weirdVotePulseUp 0.42s cubic-bezier(.2, .8, .25, 1.4);
}
.discover-rate.is-pulse-down {
	animation: weirdVotePulseDown 0.42s cubic-bezier(.2, .8, .25, 1.4);
}
@keyframes weirdVotePulseUp {
	0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
	35%  { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.0); }
	100% { transform: scale(1); }
}
@keyframes weirdVotePulseDown {
	0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
	35%  { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0.0); }
	100% { transform: scale(1); }
}
.discover-card-save.is-pulse-save {
	animation: weirdSavePulse 0.45s cubic-bezier(.2, .8, .25, 1.4);
}
@keyframes weirdSavePulse {
	0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.45); }
	35%  { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.0); }
	100% { transform: scale(1); }
}

/* ---- B) Image fade-in for lazy-loaded images ---- */
img.weird-img-fade {
	opacity: 0;
	transition: opacity 0.32s ease;
}
img.weird-img-fade.is-loaded { opacity: 1; }

/* Soft tinted background placeholder under the lazy image so the
   container doesn't flash empty. */
.discover-card-media img,
.discover-card-social-thumb img {
	background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(249, 115, 22, 0.05));
}

.discover-card-media img[src*="img/logo/"],
.discover-card-media .meme-zoom-trigger img[src*="img/logo/"],
.discover-card-media .discover-card-shop-link img[src*="img/logo/"],
.discover-card-social-thumb img[src*="img/logo/"],
.subpage-detail-media img[src*="img/logo/"],
.subpage-related-thumb img[src*="img/logo/"],
.weird-search-result-thumb img[src*="img/logo/"],
.discover-card-media img.img-fallback,
.discover-card-media .meme-zoom-trigger img.img-fallback,
.discover-card-media .discover-card-shop-link img.img-fallback,
.discover-card-social-thumb img.img-fallback,
.subpage-detail-media img.img-fallback,
.subpage-related-thumb img.img-fallback,
.weird-search-result-thumb img.img-fallback {
	object-fit: contain !important;
	object-position: center center !important;
	box-sizing: border-box !important;
	padding: clamp(18px, 9%, 42px) !important;
	background:
		radial-gradient(circle at 50% 38%, rgba(124,58,237,.18), transparent 48%),
		linear-gradient(135deg, #0f172a, #17112d) !important;
	transform: none !important;
}

/* ---- C) Spring physics on bottom sheets ----
   Pre-existing rules use cubic-bezier(.2,.8,.25,1) (smooth).
   Override the OPEN-to-visible transition with a tiny overshoot
   so it feels iOS-native. Close keeps the smooth ease. */
.vb-modal.is-open .vb-card,
.weird-action-sheet.is-open .weird-action-sheet-card {
	transition: transform .32s cubic-bezier(.2, .9, .3, 1.18) !important;
}

/* ---- D) Initial-load skeleton on the empty stream ----
   When the stream renders with zero cards (slow PHP or first hit),
   show a pulsing skeleton row so the user sees activity instead
   of black. The class is removed in _app_polish.php once any
   real card appears. */
.discover-stream.weird-stream-loading::before {
	content: 'Loading your stream...';
	display: flex;
	align-items: center;
	justify-content: center;
	height: 280px;
	border-radius: 20px;
	background: radial-gradient(circle at 26% 20%, rgba(249,115,22,0.24), transparent 38%),
		linear-gradient(110deg,
		rgba(124,58,237,0.24) 0%,
		rgba(255,255,255,0.12) 40%,
		rgba(249,115,22,0.22) 60%,
		rgba(124,58,237,0.18) 100%);
	background-size: 200% 100%;
	animation: weirdSkeletonShimmer 1.15s linear infinite;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 20px 48px rgba(15,23,42,0.26), 0 0 0 1px rgba(255,255,255,0.06) inset;
	color: #fff;
	font-size: 16px;
	font-weight: 850;
	letter-spacing: 0;
	text-align: center;
}
.discover-stream.weird-stream-loading::after {
	content: '';
	display: block;
	height: 280px;
	border-radius: 20px;
	margin-top: 14px;
	background: linear-gradient(110deg,
		rgba(124,58,237,0.12) 0%,
		rgba(255,255,255,0.10) 40%,
		rgba(249,115,22,0.14) 60%,
		rgba(124,58,237,0.10) 100%);
	background-size: 200% 100%;
	animation: weirdSkeletonShimmer 1.15s linear infinite;
	animation-delay: 0.2s;
	border: 1px solid rgba(255, 255, 255, 0.10);
	box-shadow: 0 16px 36px rgba(15,23,42,0.18);
}
@keyframes weirdSkeletonShimmer {
	0%   { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

/* ---- E) Keyboard-aware composer ----
   When the keyboard is open on iOS, body.weird-kb-open is set.
   Hide the bottom tab bar and let the composer + chrome rise
   above the keyboard. */
body.weird-kb-open .weird-tabbar { display: none !important; }
body.weird-kb-open:has(.weird-tabbar) { padding-bottom: env(safe-area-inset-bottom, 0px) !important; }

/* Patch 234 — keyboard-safe new-circle modal. iOS WKWebView overlays
   the keyboard instead of reliably shrinking fixed full-screen modals;
   _app_polish.php mirrors visualViewport height into CSS vars. */
@media (max-width: 600px) {
	body.page-messages .msg-new-group-backdrop {
		align-items: flex-start !important;
		overflow: hidden !important;
	}
	body.page-messages .msg-new-group-dialog {
		min-height: 0 !important;
	}
	body.page-messages .msg-new-group-form {
		min-height: 0 !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		scroll-padding-bottom: 96px;
	}
	body.page-messages .msg-new-group-actions {
		position: sticky !important;
		bottom: 0 !important;
		z-index: 6 !important;
		background: linear-gradient(180deg, rgba(18,24,42,0.94), rgba(18,24,42,0.99)) !important;
		box-shadow: 0 -16px 26px -22px rgba(0,0,0,0.85), 0 -1px 0 rgba(255,255,255,0.08) !important;
	}
	html.light-mode body.page-messages .msg-new-group-actions {
		background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.99)) !important;
		box-shadow: 0 -16px 26px -22px rgba(20,16,40,0.20), 0 -1px 0 rgba(124,58,237,0.12) !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-backdrop,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-backdrop,
	body.page-messages .msg-new-group-backdrop.is-keyboarding {
		height: var(--msg-modal-vh, var(--weird-visual-viewport-height, 100dvh)) !important;
		max-height: var(--msg-modal-vh, var(--weird-visual-viewport-height, 100dvh)) !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-dialog,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-dialog,
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-dialog {
		height: var(--msg-modal-vh, var(--weird-visual-viewport-height, 100dvh)) !important;
		max-height: var(--msg-modal-vh, var(--weird-visual-viewport-height, 100dvh)) !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-head,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-head,
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-head {
		padding: 12px 16px 9px !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-form > .msg-new-group-field,
	body.page-messages.weird-kb-open .msg-new-group-form > label.msg-new-group-field,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-form > .msg-new-group-field,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-form > label.msg-new-group-field,
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-form > .msg-new-group-field,
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-form > label.msg-new-group-field {
		padding-top: 10px !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-vis,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-vis,
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-vis {
		gap: 6px !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-vis-opt,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-vis-opt,
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-vis-opt {
		padding: 9px 11px !important;
		border-radius: 12px !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-vis-blurb,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-vis-blurb,
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-vis-blurb {
		font-size: 12px !important;
		line-height: 1.2 !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-form,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-form,
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-form {
		scroll-padding-bottom: 88px !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-form > .msg-new-group-field:has(.msg-new-group-peers),
	body.page-messages.weird-kb-open .msg-new-group-form > .msg-new-group-field:has(.msg-new-group-empty),
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-form > .msg-new-group-field:has(.msg-new-group-peers),
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-form > .msg-new-group-field:has(.msg-new-group-empty),
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-form > .msg-new-group-field:has(.msg-new-group-peers),
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-form > .msg-new-group-field:has(.msg-new-group-empty) {
		flex: 0 0 auto !important;
		min-height: 238px !important;
	}
	body.page-messages.weird-kb-open .msg-new-group-peers,
	body.page-messages.is-native-app.weird-kb-open .msg-new-group-peers,
	body.page-messages .msg-new-group-backdrop.is-keyboarding .msg-new-group-peers {
		flex: 0 0 auto !important;
		min-height: 156px !important;
		max-height: 220px !important;
	}
}

/* Reduce-motion respect for the new animations. */
@media (prefers-reduced-motion: reduce) {
	.discover-rate.is-pulse-up,
	.discover-rate.is-pulse-down,
	.discover-card-save.is-pulse-save { animation: none; }
	img.weird-img-fade { opacity: 1; transition: none; }
	.vb-modal.is-open .vb-card,
	.weird-action-sheet.is-open .weird-action-sheet-card { transition: opacity .15s ease !important; }
	.discover-stream.weird-stream-loading::before,
	.discover-stream.weird-stream-loading::after { animation: none; }
}

/* ============================================================
   V6.9 patch 221 + 222 — Swipe-back + "new items" pill
   ============================================================
   Gesture logic in _app_gestures.php. CSS here covers:
   - The pinned "X new" pill that drops down from under the
     header when fresh activity is detected.
   - Reset main's translate transition baseline so the swipe-
     back JS doesn't fight with other transforms.
============================================================ */

/* Main element is the swipe-back stage. Make sure transitions
   don't compound (the JS sets transform on demand). */
main { transition: transform .26s cubic-bezier(.2, .85, .3, 1); }

/* "X new" pill — drops in under the pinned top header. */
.weird-newitems-pill {
	position: fixed;
	top: calc(80px + env(safe-area-inset-top, 0px));
	left: 50%;
	transform: translateX(-50%) translateY(-72px);
	z-index: 1028;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--purple, #7c3aed), #6d28d9);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.6),
	            0 0 0 1px rgba(255, 255, 255, 0.12) inset;
	transition: transform .32s cubic-bezier(.2, .9, .3, 1.2), opacity .2s ease;
	opacity: 0;
	user-select: none;
	-webkit-user-select: none;
	white-space: nowrap;
}
.weird-newitems-pill[hidden] { display: none; }
.weird-newitems-pill.is-on {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
.weird-newitems-pill:hover,
.weird-newitems-pill:focus-visible {
	box-shadow: 0 14px 36px -10px rgba(124, 58, 237, 0.7),
	            0 0 0 1px rgba(255, 255, 255, 0.18) inset;
	outline: none;
}
.weird-newitems-pill:active,
.weird-newitems-pill.is-clicked {
	transform: translateX(-50%) translateY(0) scale(0.94);
}
.weird-newitems-pill i {
	font-size: 11px;
	opacity: 0.9;
}

/* Reduce motion: skip the slide-in / scale. */
@media (prefers-reduced-motion: reduce) {
	main { transition: none !important; }
	.weird-newitems-pill,
	.weird-newitems-pill.is-on,
	.weird-newitems-pill:active { transition: opacity .15s ease; transform: translateX(-50%); }
}

/* Patch 314 - retire misleading raw-activity update pill. */
.weird-newitems-pill {
	display: none !important;
	pointer-events: none !important;
}

/* ============================================================
   V6.9 patch 223 — Tablet-width app layout correction
   Audit finding: at 900px viewport the stream computed
   grid-template-columns: 30px 794px because older CTA cards still
   had `grid-column: span 2`; the flex fallback that neutralizes this
   only ran at ≤640px. Also, the hamburger is hidden at ≤991px while
   the tabbar previously only showed at ≤720px, leaving tablet web
   with no primary nav.

   Fix:
     - Use flex-column for Discover/Connect streams through 1024px.
     - Reset direct child grid spans through 1024px.
     - Show bottom tabbar through 1024px, matching iPad portrait and
       narrow desktop/tablet web.
     - Body bottom padding follows the same breakpoint.
============================================================ */
@media (max-width: 1024px) {
	.discover-stream,
	.connect-stream {
		display: flex !important;
		flex-direction: column !important;
		gap: 14px !important;
		grid-template-columns: 1fr !important;
		grid-auto-columns: auto !important;
		grid-auto-flow: row !important;
	}
	.discover-stream > *,
	.discover-stream > .discover-card,
	.discover-stream > .discover-card-cta,
	.discover-stream > article,
	.connect-stream > *,
	.connect-stream > .connect-tile {
		grid-column: auto !important;
		grid-row: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	.weird-tabbar { display: flex; }
	body:has(.weird-tabbar) {
		padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
	}
}

/* ============================================================
   V6.9 patch 234 — Explore hub
   ============================================================ */
.explore-hub-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 2px 14px 36px;
}
.explore-hub-hero {
	margin: 0 0 16px;
}
.explore-hub-hero.discover-greet {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 14px;
	padding: 4px 2px 12px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
.explore-hub-hero .discover-greet-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
}
.explore-hub-hero .discover-greet-actions .btn-glow {
	min-height: 40px;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 13px;
}
.explore-hub-hero .discover-greet-hi {
	font-size: clamp(24px, 3vw, 31px);
	line-height: 1.05;
	margin-bottom: 2px;
}
.explore-hub-hero .discover-greet-tag {
	max-width: 560px;
	font-size: 13px;
	line-height: 1.35;
}
.explore-hub-section {
	margin-bottom: 12px;
}
.explore-hub-section .discover-section-head {
	margin-bottom: 10px;
}
.explore-hub-section .discover-section-head h2 {
	color: #f8fafc !important;
}
.explore-hub-section .discover-section-sub {
	color: #cbd5e1 !important;
}
.explore-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
	gap: 9px;
	align-items: stretch;
}
a.explore-hub-card,
a.explore-hub-card:visited {
	--hub-accent: #8b5cf6;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	grid-template-rows: 1fr;
	gap: 10px;
	align-items: center;
	justify-items: stretch;
	text-align: left;
	min-height: 66px;
	padding: 10px 12px;
	color: var(--text-primary) !important;
	text-decoration: none !important;
	border-top-color: var(--hub-accent) !important;
	position: relative;
	overflow: visible;
}
.explore-hub-card[data-cat="movies"] { --hub-accent: #8b5cf6; }
.explore-hub-card[data-cat="tv"] { --hub-accent: #f97316; }
.explore-hub-card[data-cat="music"] { --hub-accent: #f97316; }
.explore-hub-card[data-cat="books"] { --hub-accent: #b45309; }
.explore-hub-card[data-cat="podcasts"] { --hub-accent: #0d9488; }
.explore-hub-card[data-cat="videos"] { --hub-accent: #14b8a6; }
.explore-hub-card[data-cat="videogames"] { --hub-accent: #2563eb; }
.explore-hub-card[data-cat="boardgames"] { --hub-accent: #16a34a; }
.explore-hub-card[data-cat="sports"] { --hub-accent: #16a34a; }
.explore-hub-card[data-cat="travel"] { --hub-accent: #0891b2; }
.explore-hub-card[data-cat="local"] { --hub-accent: #22c55e; }
.explore-hub-card[data-cat="facts"] { --hub-accent: #ca8a04; }
.explore-hub-card[data-cat="jokes"] { --hub-accent: #ea580c; }
.explore-hub-card[data-cat="memes"] { --hub-accent: #16a34a; }
.explore-hub-card[data-cat="lifehacks"] { --hub-accent: #eab308; }
.explore-hub-card[data-cat="shopping"] { --hub-accent: #f59e0b; }
.explore-hub-card-compact {
	--hub-accent: #06b6d4;
	min-height: 64px !important;
}
.explore-hub-icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	background: color-mix(in srgb, var(--hub-accent) 18%, rgba(255,255,255,0.04));
	border: 1px solid color-mix(in srgb, var(--hub-accent) 36%, transparent);
	color: var(--hub-accent);
	font-size: 15px;
	box-shadow: 0 12px 24px -18px rgba(124,58,237,0.62);
	box-shadow: 0 12px 24px -18px color-mix(in srgb, var(--hub-accent) 72%, transparent);
}
.explore-hub-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	min-width: 0;
}
.explore-hub-copy strong {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;
	color: #f8fafc !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.explore-hub-copy small {
	display: none;
}
.explore-hub-arrow {
	display: none;
	align-items: center;
	justify-content: center;
	color: var(--hub-accent);
	opacity: 0.64;
	transition: opacity .16s ease, transform .16s ease;
}
a.explore-hub-card:hover,
a.explore-hub-card:focus-visible {
	color: var(--text-primary) !important;
	outline: none;
}
a.explore-hub-card:hover .explore-hub-arrow,
a.explore-hub-card:focus-visible .explore-hub-arrow {
	opacity: 1;
	transform: translateX(2px);
}
html.light-mode .explore-hub-icon {
	background: color-mix(in srgb, var(--hub-accent) 12%, #fff);
	border-color: color-mix(in srgb, var(--hub-accent) 28%, rgba(255,255,255,0.82));
}
html.light-mode .explore-hub-section .discover-section-head h2,
html.light-mode .explore-hub-copy strong {
	color: #24163f !important;
}
html.light-mode .explore-hub-section .discover-section-sub {
	color: #475569 !important;
}
html.light-mode .explore-hub-copy small {
	background: rgba(255,255,255,.98);
	border-color: rgba(15,12,28,.12);
	color: #334155;
	box-shadow: 0 14px 30px -18px rgba(15,12,28,.28);
}
@media (max-width: 720px) {
	.explore-hub-wrap {
		padding: 2px 10px 100px;
	}
	.explore-hub-hero.discover-greet {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 10px;
		padding: 2px 0 10px !important;
		margin-bottom: 10px;
	}
	.explore-hub-hero .discover-greet-kicker {
		display: none;
	}
	.explore-hub-hero .discover-greet-hi {
		font-size: 24px;
		line-height: 1.1;
	}
	.explore-hub-hero .discover-greet-tag {
		font-size: 12.5px;
		line-height: 1.35;
	}
	.explore-hub-hero .discover-greet-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		justify-content: stretch;
	}
	.explore-hub-hero .discover-greet-actions .btn-glow {
		min-height: 44px;
		padding: 10px 8px;
		font-size: 13px;
		border-radius: 999px;
		flex: 1 1 auto;
		justify-content: center;
	}
	.explore-hub-section {
		margin-top: 4px;
	}
	.explore-hub-section .discover-section-head {
		margin-bottom: 9px;
	}
	.explore-hub-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}
	a.explore-hub-card,
	a.explore-hub-card:visited {
		min-height: 64px;
		padding: 9px 10px;
		grid-template-columns: 34px minmax(0, 1fr);
		grid-template-rows: 1fr;
		gap: 8px;
		align-items: center;
		justify-items: stretch;
		border-radius: 16px;
		text-align: left;
	}
	.explore-hub-icon {
		width: 34px;
		height: 34px;
		border-radius: 11px;
		font-size: 14px;
	}
	.explore-hub-copy {
		gap: 0;
	}
	.explore-hub-copy strong {
		font-size: 13.5px;
		line-height: 1.05;
	}
	.explore-hub-copy small {
		display: none;
	}
	.explore-hub-arrow {
		display: none;
	}
	.explore-hub-grid-compact a.explore-hub-card,
	.explore-hub-grid-compact a.explore-hub-card:visited {
		min-height: 64px !important;
	}
}

@media (max-width: 340px) {
	.explore-hub-grid {
		grid-template-columns: 1fr;
	}
}

body.page-explore .explore-hub-section .discover-section-head h2,
body.page-explore .explore-hub-wrap a.explore-hub-card .explore-hub-copy strong,
body.is-native-app.page-explore .explore-hub-section .discover-section-head h2,
body.is-native-app.page-explore .explore-hub-wrap a.explore-hub-card .explore-hub-copy strong {
	color: #f8fafc !important;
}
body.page-explore .explore-hub-section .discover-section-sub,
body.is-native-app.page-explore .explore-hub-section .discover-section-sub {
	color: #cbd5e1 !important;
}
html.light-mode body.page-explore .explore-hub-section .discover-section-head h2,
html.light-mode body.page-explore .explore-hub-wrap a.explore-hub-card .explore-hub-copy strong,
html.light-mode body.is-native-app.page-explore .explore-hub-section .discover-section-head h2,
html.light-mode body.is-native-app.page-explore .explore-hub-wrap a.explore-hub-card .explore-hub-copy strong {
	color: #24163f !important;
}
html.light-mode body.page-explore .explore-hub-section .discover-section-sub,
html.light-mode body.is-native-app.page-explore .explore-hub-section .discover-section-sub {
	color: #475569 !important;
}

/* ============================================================
	V6.9 patch 236 — Connect as primary nav destination
   ============================================================ */
.connect-wrap-compact > .discover-bar.connect-hero {
	margin-bottom: 12px;
	padding: 14px 16px;
	gap: 12px;
	align-items: center;
}
.connect-wrap-compact .subpage-bar-copy {
	gap: 3px;
}
.connect-wrap-compact .discover-bar-title {
	font-size: clamp(1.35rem, 3vw, 1.8rem);
	line-height: 1.08;
}
.connect-wrap-compact .subpage-bar-sub {
	font-size: .88rem;
	line-height: 1.32;
}
.connect-wrap-compact .discover-bar-stats {
	gap: 8px;
}
.connect-wrap-compact .discover-bar-stat {
	padding: 6px 10px;
	font-size: 12px;
}
.connect-wrap-compact .discover-section.connect-section {
	margin-top: 10px;
	padding: 14px;
	border-radius: 16px;
}
.connect-wrap-compact .subpage-control-deck {
	padding: 12px;
	border-radius: 16px;
	margin-bottom: 12px;
}
.connect-wrap-compact .subpage-control-head {
	gap: 8px;
	margin-bottom: 8px;
}
.connect-wrap-compact .subpage-pillrow-filter {
	gap: 8px;
	margin-top: 8px;
	padding-bottom: 2px;
}
.connect-wrap-compact .subpage-pill {
	min-height: 34px;
	padding: 8px 11px;
}
.connect-wrap-compact .subpage-result-meta {
	margin-top: 8px;
	padding-top: 8px;
	font-size: 12px;
	gap: 6px;
}
.connect-wrap-compact .discover-stream.connect-grid {
	margin-top: 12px !important;
	gap: 14px !important;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.connect-wrap-compact .connect-tile-grid {
	padding: 14px 12px 12px !important;
	gap: 8px !important;
	border-radius: 14px !important;
}
.connect-wrap-compact .connect-tile-grid .connect-tile-top {
	gap: 5px;
}
.connect-wrap-compact .connect-tile-grid .connect-tile-avatar img {
	width: 60px;
	height: 60px;
}
.connect-wrap-compact .connect-tile-grid .connect-tile-name {
	font-size: .9rem;
	line-height: 1.2;
}
.connect-wrap-compact .connect-tile-grid .connect-tile-meta {
	font-size: 10.8px;
	margin-top: 2px;
}
.connect-wrap-compact .connect-tile-grid .connect-tile-pct {
	font-size: 11px;
	padding: 3px 10px;
}
.connect-wrap-compact .connect-tile-grid .connect-tile-actions {
	gap: 6px;
	margin-top: 4px;
	padding-top: 7px;
}
.connect-wrap-compact .connect-tile-grid .connect-tile-act {
	width: 34px !important;
	height: 34px !important;
	flex-basis: 34px !important;
	font-size: 13px !important;
}
.connect-wrap-compact .connect-more-actions {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	min-width: 0;
}
.connect-wrap-compact .connect-more-actions summary {
	list-style: none;
	cursor: pointer;
}
.connect-wrap-compact .connect-more-actions summary::-webkit-details-marker {
	display: none;
}
.connect-wrap-compact .connect-more-menu {
	display: none;
	position: absolute;
	left: 50%;
	right: auto;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	z-index: 40;
	min-width: 142px;
	padding: 6px;
	border-radius: 12px;
	background: rgba(15, 12, 28, .98);
	border: 1px solid rgba(167,139,250,.22);
	box-shadow: 0 18px 36px -18px rgba(0,0,0,.72);
}
.connect-wrap-compact .connect-more-actions[open] .connect-more-menu {
	display: grid;
	gap: 3px;
}
.connect-wrap-compact .connect-more-menu a,
.connect-wrap-compact .connect-more-menu a:visited {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 8px 10px;
	border-radius: 9px;
	color: rgba(237,233,254,.92) !important;
	font-size: 12.5px;
	font-weight: 750;
	text-decoration: none !important;
}
.connect-wrap-compact .connect-more-menu a:hover,
.connect-wrap-compact .connect-more-menu a:focus-visible {
	background: rgba(124,58,237,.18);
	color: #fff !important;
}
.connect-wrap-compact .connect-more-menu i {
	width: 15px;
	text-align: center;
	color: #a78bfa;
}
html.light-mode .connect-wrap-compact .connect-more-menu {
	background: rgba(255,255,255,.98);
	border-color: rgba(124,58,237,.18);
	box-shadow: 0 18px 34px -22px rgba(47,34,84,.28);
}
html.light-mode .connect-wrap-compact .connect-more-menu a,
html.light-mode .connect-wrap-compact .connect-more-menu a:visited {
	color: #2e2058 !important;
}
html.light-mode .connect-wrap-compact .connect-more-menu a:hover,
html.light-mode .connect-wrap-compact .connect-more-menu a:focus-visible {
	background: rgba(124,58,237,.10);
	color: #24163f !important;
}

@media (max-width: 1024px) {
	.connect-wrap-compact .discover-stream.connect-grid {
		display: grid !important;
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
		gap: 12px !important;
	}
	.connect-wrap-compact .discover-stream.connect-grid > .connect-tile-grid {
		width: auto !important;
		max-width: 100% !important;
	}
}

@media (max-width: 640px) {
	.connect-wrap-compact > .discover-bar.connect-hero {
		margin-bottom: 10px;
		padding: 12px;
		gap: 8px;
	}
	.connect-wrap-compact .discover-bar-title {
		font-size: 1.3rem;
	}
	.connect-wrap-compact .subpage-bar-sub {
		font-size: .8rem;
	}
	.connect-wrap-compact .discover-bar-stats {
		width: 100%;
		gap: 6px;
	}
	.connect-wrap-compact .discover-bar-stat {
		padding: 5px 8px;
		font-size: 11.5px;
	}
	.connect-wrap-compact .discover-section.connect-section {
		padding: 10px;
	}
	.connect-wrap-compact .subpage-control-deck {
		padding: 10px;
		margin-bottom: 10px;
	}
	.connect-wrap-compact .subpage-control-head {
		display: none;
	}
	.connect-wrap-compact .subpage-control-kicker {
		font-size: 11px;
	}
	.connect-wrap-compact .subpage-filters-mobile {
		display: grid !important;
		grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr) !important;
		gap: 7px !important;
		margin: 0 0 8px !important;
		align-items: stretch;
	}
	.connect-wrap-compact .connect-mobile-search {
		display: flex !important;
		align-items: stretch;
		width: 38px !important;
		min-width: 38px !important;
		max-width: 38px !important;
		overflow: hidden;
		transition: width 180ms ease, max-width 180ms ease;
	}
	.connect-wrap-compact .connect-mobile-search.is-open,
	.connect-wrap-compact .connect-mobile-search.has-value,
	.connect-wrap-compact .connect-mobile-search:focus-within {
		grid-column: 1 / -1;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}
	.connect-wrap-compact .connect-mobile-search input[type="text"] {
		flex: 1 1 auto;
		width: 0 !important;
		min-width: 0 !important;
		max-width: 0;
		min-height: 38px;
		padding-left: 0 !important;
		padding-right: 0 !important;
		border-left-width: 0 !important;
		border-right-width: 0 !important;
		border-radius: 999px 0 0 999px;
		border-color: rgba(167,139,250,0.20) !important;
		background-color: rgba(255,255,255,0.06) !important;
		color: var(--text-primary) !important;
		opacity: 0;
		pointer-events: none;
	}
	.connect-wrap-compact .connect-mobile-search.is-open input[type="text"],
	.connect-wrap-compact .connect-mobile-search.has-value input[type="text"],
	.connect-wrap-compact .connect-mobile-search:focus-within input[type="text"] {
		width: 100% !important;
		max-width: 100%;
		padding-left: 14px !important;
		padding-right: 12px !important;
		border-left-width: 1px !important;
		opacity: 1;
		pointer-events: auto;
	}
	.connect-wrap-compact .connect-mobile-search .subpage-search-trigger,
	.connect-wrap-compact .connect-mobile-search button.subpage-search-trigger[type="submit"] {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex: 0 0 38px !important;
		width: 38px !important;
		min-width: 38px !important;
		height: 38px !important;
		min-height: 38px !important;
		padding: 0 !important;
		border-radius: 999px !important;
		border: 1px solid rgba(167,139,250,0.28) !important;
		background: rgba(124,58,237,0.10) !important;
		background-image: none !important;
		color: #c4b5fd !important;
		box-shadow: none !important;
	}
	.connect-wrap-compact .connect-mobile-search.is-open .subpage-search-trigger,
	.connect-wrap-compact .connect-mobile-search.has-value .subpage-search-trigger,
	.connect-wrap-compact .connect-mobile-search:focus-within .subpage-search-trigger {
		border-radius: 0 999px 999px 0 !important;
		background: var(--weird-chip-active-bg) !important;
		border-color: var(--weird-chip-active-border) !important;
		color: #fff !important;
	}
	.connect-wrap-compact .connect-mobile-search .subpage-search-trigger span {
		display: none !important;
	}
	.connect-wrap-compact .subpage-filters-mobile .subpage-select-chip,
	.connect-wrap-compact .subpage-filters-mobile .cf-wrap,
	.connect-wrap-compact .subpage-filters-mobile button.cf-pill {
		min-width: 0;
		width: 100%;
		height: 38px !important;
		min-height: 38px !important;
		max-height: 38px !important;
		border-radius: 999px !important;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
	}
	.connect-wrap-compact .subpage-filters-mobile button.cf-pill {
		padding: 8px 30px 8px 11px !important;
		line-height: 1 !important;
	}
	.connect-wrap-compact .subpage-filters-mobile .subpage-select-chip-val,
	.connect-wrap-compact .subpage-filters-mobile button.cf-pill span {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.connect-wrap-compact .connect-mobile-clear {
		grid-column: 1 / -1;
		margin: 0;
	}
	.connect-wrap-compact .discover-stream.connect-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 9px !important;
		margin-top: 10px !important;
	}
	.connect-wrap-compact .connect-tile-grid {
		padding: 11px 8px 10px !important;
		gap: 7px !important;
	}
	.connect-wrap-compact .connect-tile-grid .connect-tile-avatar img {
		width: 52px;
		height: 52px;
	}
	.connect-wrap-compact .connect-tile-grid .connect-tile-name {
		font-size: .84rem;
	}
	.connect-wrap-compact .connect-tile-grid .connect-tile-meta {
		font-size: 10px;
	}
	.connect-wrap-compact .connect-tile-grid .connect-tile-act {
		width: 32px !important;
		height: 32px !important;
		flex-basis: 32px !important;
		font-size: 12.5px !important;
	}
}

@media (max-width: 360px) {
	.connect-wrap-compact .subpage-filters-mobile {
		grid-template-columns: 38px minmax(0, 1fr) !important;
	}
	.connect-wrap-compact .subpage-filters-mobile .cf-wrap {
		grid-column: 1 / -1;
	}
	.connect-wrap-compact .discover-stream.connect-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ============================================================
   V6.9 patch 238 — audit polish: scroll rows + confidence labels
   ============================================================ */
.connect-confidence-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 4px;
	padding: 2px 6px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	background: rgba(124,58,237,.12);
	border: 1px solid rgba(167,139,250,.18);
	color: rgba(216,180,254,.92);
}
.connect-confidence-strong {
	background: rgba(34,197,94,.13);
	border-color: rgba(34,197,94,.24);
	color: #86efac;
}
.connect-confidence-early {
	background: rgba(245,158,11,.13);
	border-color: rgba(245,158,11,.24);
	color: #fcd34d;
}
html.light-mode .connect-confidence-chip { background: rgba(124,58,237,.08); color: #6d28d9; border-color: rgba(124,58,237,.16); }
html.light-mode .connect-confidence-strong { background: rgba(22,163,74,.10); color: #15803d; border-color: rgba(22,163,74,.18); }
html.light-mode .connect-confidence-early { background: rgba(217,119,6,.10); color: #92400e; border-color: rgba(217,119,6,.18); }

@media (max-width: 720px) {
	.discover-greet-chips,
	.pvp-audience-pillrow,
	.pvpgf-filter-row,
	.admin-tabs,
	.acct-quicklinks {
		scroll-padding-inline: 14px;
		mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%);
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%);
	}
	.discover-greet-chips > *,
	.pvp-audience-pillrow > *,
	.pvpgf-filter-row > *,
	.admin-tabs > *,
	.acct-quicklinks > * {
		scroll-snap-align: start;
	}
	.acct-quicklinks:has(.acct-quickmore[open]) {
		overflow: visible;
		mask-image: none;
		-webkit-mask-image: none;
	}
}

/* V6.9 patch 239b — account chip strip can exceed tablet widths when the
   active Notifications chip and More menu are visible. Let it scroll as one
   row before it reaches phone-only breakpoints. */
@media (max-width: 900px) {
	.acct-quicklinks {
		max-width: 100% !important;
		width: 100% !important;
		overflow-x: auto !important;
		overflow-y: visible !important;
		flex-wrap: nowrap !important;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.acct-quicklinks::-webkit-scrollbar { display: none; }
	.acct-quicklinks > * { flex: 0 0 auto; }
}

.admin-pill-ok {
	background: rgba(34,197,94,.18);
	color: #86efac;
}
html.light-mode .admin-pill-ok {
	background: rgba(22,163,74,.12);
	color: #15803d;
}
.admin-lessons-list {
	margin: 10px 0 0;
	padding-left: 18px;
	color: var(--text-secondary, #b0a8c4);
	line-height: 1.55;
}
.admin-lessons-list li + li { margin-top: 6px; }
.admin-lessons-list strong { color: var(--text-primary, #fff); }

.weird-notif-tools {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.weird-notif-settings,
.weird-notif-settings:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(124,58,237,0.12);
	border: 1px solid rgba(124,58,237,0.28);
	color: var(--text-primary, #fff) !important;
	text-decoration: none !important;
}
.weird-notif-settings:hover,
.weird-notif-settings:focus-visible {
	background: rgba(124,58,237,0.22);
	color: #fff !important;
	outline: none;
}
.weird-notif-settings i { color: inherit !important; font-size: 13px; }
html.light-mode .weird-notif-settings,
body[data-theme="light"] .weird-notif-settings {
	background: rgba(124,58,237,0.08);
	border-color: rgba(124,58,237,0.18);
	color: #1a1330 !important;
}
html.light-mode .weird-notif-settings:hover,
html.light-mode .weird-notif-settings:focus-visible,
body[data-theme="light"] .weird-notif-settings:hover,
body[data-theme="light"] .weird-notif-settings:focus-visible {
	background: rgba(124,58,237,0.13);
	color: #24163f !important;
}
@media (max-width: 390px) {
	.weird-notif-tools { gap: 6px; }
	.weird-notif-mark-all { padding-inline: 8px !important; }
}

/* V6.8 patch 207 — Discover stat pills made into links (answers/matches/coins).
   Defeat the global `.wrapper a { color: var(--purple) !important }` so the
   pill text keeps the intended secondary/light color, and add a subtle hover
   affordance so users discover the link. Works for both the compact discover-bar
   variant and the .discover-greet-combined pop panel variant. */
a.discover-bar-stat,
.wrapper a.discover-bar-stat,
.discover-greet-combined a.discover-bar-stat {
	text-decoration: none !important;
	color: var(--text-secondary) !important;
	cursor: pointer;
	transition: transform 120ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.discover-greet-combined a.discover-bar-stat {
	color: rgba(237,233,254,0.95) !important;
}
html.light-mode .discover-greet-combined a.discover-bar-stat,
body[data-theme="light"] .discover-greet-combined a.discover-bar-stat {
	color: #24163f !important;
}
a.discover-bar-stat:hover,
a.discover-bar-stat:focus-visible,
.wrapper a.discover-bar-stat:hover,
.wrapper a.discover-bar-stat:focus-visible {
	background: rgba(124,58,237,0.16) !important;
	border-color: rgba(167,139,250,0.55) !important;
	box-shadow: 0 6px 16px -10px rgba(124,58,237,0.55) !important;
	transform: translateY(-1px);
	outline: none;
}
a.discover-bar-stat:focus-visible {
	box-shadow: 0 0 0 2px rgba(167,139,250,0.85) !important;
}
html.light-mode a.discover-bar-stat:hover,
html.light-mode a.discover-bar-stat:focus-visible,
body[data-theme="light"] a.discover-bar-stat:hover,
body[data-theme="light"] a.discover-bar-stat:focus-visible {
	background: rgba(124,58,237,0.10) !important;
	border-color: rgba(124,58,237,0.32) !important;
}
a.discover-bar-stat:active { transform: translateY(0); }
@media (hover: none) {
	a.discover-bar-stat { -webkit-tap-highlight-color: rgba(124,58,237,0.18); }
}

/* ============================================================
   V207 polish (pass 4) — touch-target compliance.
   Audit found ~530 interactive elements on index/discover with
   height 32–42px on mobile (Apple HIG + WCAG 2.5.5 require 44×44).
   Bump the primary pill/tab/chip/button classes to min-height:44px
   on touch viewports. Scoped to ≤860 so desktop layouts keep their
   compact pill chrome. */
@media (max-width: 860px) {
	.discover-tab,
	.discover-tab-menu-item,
	.discover-greet-chip,
	.discover-audience-pill,
	.pvp-audience-pill,
	.subpage-pill,
	.acct-quicklink,
	.msg-side-tabs button,
	.msg-new-dm-btn,
	.msg-new-group-btn,
	.circles-tabs a,
	.circles-cta {
		min-height: 44px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
	}
	/* Tab menu kebab (3 dots) icons — keep visual size but give a 44×44 hit area
	   via padding rather than expanding the visible chip. */
	a.discover-tab-menu-item {
		min-width: 44px;
		min-width: 40px;
		max-width: 40px;
		padding-left: 6px;
		min-height: 31px;
		max-height: 31px;
		padding-right: 6px;
	}
}

/* V6.9 patch 240 — mobile/app chrome trim.
   The persistent header and bottom tab bar already provide a way home on
   compact surfaces, so repeated circular back arrows waste the first screen.
   Keep desktop arrows, hide them on tablet/mobile and in the native app. */
body.is-native-app .discover-wrap > .discover-bar .discover-bar-back {
	display: none !important;
}
body.is-native-app .discover-wrap > .discover-bar:has(.discover-bar-back):not(:has(.discover-bar-stats)):not(:has(.acct-profile-cta)) {
	display: none !important;
}
body.is-native-app .subpage-control-deck .subpage-control-kicker {
	display: inline-flex !important;
}
body:has(.weird-tabbar) .subpage-control-deck .subpage-control-kicker {
	display: inline-flex !important;
}
body .subpage-control-deck .subpage-control-kicker i {
	color: rgba(237,233,254,0.92) !important;
}
body .subpage-control-deck .subpage-search-trigger,
body .subpage-control-deck .subpage-search-trigger i {
	color: rgba(237,233,254,0.94) !important;
}
html.light-mode body .subpage-control-deck .subpage-control-kicker,
html.light-mode body .subpage-control-deck .subpage-control-kicker i,
html.light-mode body .subpage-control-deck .subpage-search-trigger,
html.light-mode body .subpage-control-deck .subpage-search-trigger i {
	color: #1f2937 !important;
}
body.is-native-app .subpage-control-head .subpage-search-head {
	margin-left: auto;
}


/* V6.9 — Click-to-enlarge avatar zoom.
   The trigger is a transparent <button> wrapping the existing avatar
   render. We MUST keep the unchanged visual size/shape of the avatar, so
   the button itself is unstyled (no border / no background / no padding)
   and just adds an affordance cursor + a tiny focus ring. */
.profile-hero-avatar-zoom {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: zoom-in;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	line-height: 0;
}
.profile-hero-avatar-zoom:focus-visible {
	outline: 2px solid rgba(255,255,255,0.55);
	outline-offset: 4px;
}

/* Lightbox modal. Lives at the end of <body> so it escapes any clipping
   parent. Fixed positioning + flex centering. Hidden by default via the
   `hidden` attribute; .is-open flips display to flex and fades in. */
.avatar-zoom-modal[hidden] { display: none !important; }
.avatar-zoom-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(8, 6, 18, 0.86);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity .14s ease;
}
.avatar-zoom-modal.is-open { opacity: 1; }
.avatar-zoom-backdrop {
	position: absolute;
	inset: 0;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: zoom-out;
}
.avatar-zoom-stage {
	position: relative;
	max-width: min(92vw, 720px);
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}
.avatar-zoom-img {
	display: block;
	max-width: 100%;
	max-height: 88vh;
	width: auto;
	height: auto;
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4);
	background: #1a1530;
}
.avatar-zoom-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.22);
	background: linear-gradient(135deg, #8b5cf6, #5b3df5);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 15px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.45);
	z-index: 2;
}
.avatar-zoom-close:hover,
.avatar-zoom-close:focus {
	filter: brightness(1.08);
	transform: scale(1.04);
}
/* V6.9 patch — download chip mirrors the close chip but pinned top-left.
   Hidden via [hidden] when the current avatar has no download URL
   (e.g. another user's custom avatar where ownership gates the file). */
.avatar-zoom-download[hidden] { display: none !important; }
.avatar-zoom-download {
	position: absolute;
	top: -14px;
	left: -14px;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.22);
	background: linear-gradient(135deg, #8b5cf6, #5b3df5);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 15px;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0,0,0,0.45);
	z-index: 2;
}
.avatar-zoom-download:hover,
.avatar-zoom-download:focus {
	filter: brightness(1.08);
	transform: scale(1.04);
	color: #fff;
}
body.avatar-zoom-open { overflow: hidden; }

/* ============================================================
	V6.9 patch 232 — Stream balance + richer card actions
   ============================================================ */

/* The mixed stream has social, item, game, and CTA cards side by side.
   Keep the first row visually even without changing subpage/category grids. */
.discover-stream[data-mixed="1"] {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
	/* V6.9 — was `align-items: start`, which made every card render at its
	   intrinsic height so adjacent cards in the same row were visibly uneven
	   (332 / 382 / 304 / 417 in the same row). Stretch makes every card in a
	   row match the tallest, and the inner flex-column + .discover-card-foot
	   { margin-top: auto } already pushes the action row to the bottom. */
	align-items: stretch;
}
.discover-stream[data-mixed="1"] .discover-card:not(.discover-card-social) {
	min-height: 332px;
}
.discover-stream[data-mixed="1"] .discover-card-item .discover-card-media {
	aspect-ratio: 16 / 10 !important;
	max-height: 180px !important;
}
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="videos"] .discover-card-media,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="videos"].is-expanded .discover-card-media {
	aspect-ratio: 16 / 9 !important;
	max-height: none !important;
}
.discover-stream[data-mixed="1"] .discover-card-social {
	min-height: 0;
	align-self: start;
}
.discover-stream[data-mixed="1"] .discover-card-social .discover-card-foot {
	margin-top: 0 !important;
}
.discover-stream[data-mixed="1"] .discover-card-title,
.discover-stream[data-mixed="1"] .discover-card-social-title {
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	letter-spacing: 0 !important;
}
/* V6.9 — Blank-media categories (facts, jokes, lifehacks) put the entire
   "content" of the card in the title. Clamping to 2 lines truncates a
   single meaningful word with an ellipsis (e.g. "Doom was named after a
   Tom Cruise…" hiding "line"). Let these titles wrap freely. */
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="facts"]    .discover-card-title,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="jokes"]    .discover-card-title,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="lifehacks"] .discover-card-title {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
}
.discover-stream[data-mixed="1"] .discover-card-desc {
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}
.discover-stream[data-mixed="1"] .discover-card-item.is-expanded .discover-card-title,
.discover-stream[data-mixed="1"] .discover-card-item.is-expanded .discover-card-desc,
.discover-stream[data-mixed="1"] .discover-card.discover-card-ai.is-expanded .discover-card-title,
.discover-stream[data-mixed="1"] .discover-card.discover-card-ai.is-expanded .discover-card-desc {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
}

/* Action-sheet "View full meme" expands the card itself so the whole image
   is visible in context; tapping the image can still open the lightbox. */
.discover-card-item[data-cat="memes"].is-expanded .discover-card-media {
	aspect-ratio: auto !important;
	max-height: none !important;
}
.discover-card-item[data-cat="memes"].is-expanded .meme-zoom-trigger {
	height: auto !important;
}
.discover-card-item[data-cat="memes"].is-expanded .meme-zoom-trigger img,
.discover-card-item[data-cat="memes"].is-expanded .discover-card-media img {
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	object-fit: contain !important;
	background: rgba(8, 6, 18, 0.72) !important;
}
html.light-mode .discover-card-item[data-cat="memes"].is-expanded .meme-zoom-trigger img,
html.light-mode .discover-card-item[data-cat="memes"].is-expanded .discover-card-media img {
	background: rgba(245, 243, 255, 0.9) !important;
}

@media (max-width: 1024px) {
	.discover-stream[data-mixed="1"] .discover-quiz-card-instream {
		min-height: 0;
	}
	.discover-stream[data-mixed="1"] {
		grid-template-columns: 1fr !important;
	}
	.discover-stream[data-mixed="1"] .discover-card,
	.discover-stream[data-mixed="1"] .discover-card-social {
		min-height: 0;
	}
	.discover-stream[data-mixed="1"] .discover-card-item .discover-card-media {
		max-height: 180px !important;
	}
}
@media (max-width: 480px) {
	.discover-stream[data-mixed="1"] .discover-card-item .discover-card-media {
		max-height: 168px !important;
	}
}

/* ===== V6.8 patch 207i.k — interests batch & manage card (dcib-*) =====
   The PHP renders dcib-* classes but no CSS shipped → labels/icons
   appeared in muted/default gray on the purple-tinted card. */
.dcib-card-page {
	padding: 22px 20px !important;
	border-radius: 18px !important;
}
.dcib-form { display: flex; flex-direction: column; gap: 14px; }
.dcib-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px 12px;
	align-items: start;
	padding-bottom: 6px;
}
.dcib-head-ic { color: var(--purple); font-size: 22px; margin-top: 2px; }
.dcib-head-title {
	font-size: clamp(24px, 5.6vw, 34px);
	line-height: 1.08;
	font-weight: 800;
	color: var(--text-primary, #fff);
	flex: 1 1 auto; min-width: 0;
}
.dcib-head-reward {
	grid-column: 2;
	justify-self: start;
	display: inline-flex; align-items: center; gap: 4px;
	background: rgba(124,58,237,0.16);
	color: var(--text-primary, #fff);
	padding: 6px 12px; border-radius: 999px;
	font-size: 15px; font-weight: 700;
	border: 1px solid rgba(124,58,237,0.35);
}
.dcib-head-reward .fa-coins { color: #fbbf24; }
.dcib-chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin: 6px 0 8px;
}
.dcib-stream-card .dcib-chips { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 520px) { .dcib-chips, .dcib-stream-card .dcib-chips { grid-template-columns: 1fr; } }
.dcib-chip {
	display: grid;
	grid-template-columns: 20px 24px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.10);
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
	min-width: 0;
}
.dcib-chip:hover { background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.35); }
.dcib-chip:has(.dcib-cb:checked) {
	background: rgba(124,58,237,0.20);
	border-color: rgba(124,58,237,0.55);
}
.dcib-cb { width: 18px !important; height: 18px !important; accent-color: var(--purple); margin: 0 !important; flex: 0 0 18px; }
.dcib-chip-ic { color: var(--purple); font-size: 20px; width: 24px; text-align: center; flex: 0 0 24px; }
.dcib-chip-label {
	color: var(--text-primary, #fff);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	min-width: 0;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	word-break: normal;
}
.dcib-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.dcib-foot-hint { color: #cbc6df; font-size: 12px; flex: 1 1 220px; min-width: 0; }
.dcib-foot-hint .fa-info-circle { color: #9aa0b4; margin-right: 4px; }
.dcib-submit {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 18px !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
	color: #fff !important;
	font-weight: 700 !important;
	border: none !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}
.dcib-submit:hover { filter: brightness(1.08); }
.wrapper a.dcib-submit,
.wrapper a.dcib-submit:visited,
a.dcib-submit,
a.dcib-submit:visited {
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.wrapper a.dcib-submit:hover,
a.dcib-submit:hover {
	color: #fff !important;
	text-decoration: none !important;
}
.dcib-page-link { text-align: center; margin: 10px 0 0; }
.dcib-page-link a { color: var(--purple); text-decoration: none; font-weight: 600; }
.dcib-page-link a:hover { text-decoration: underline; }
.dcib-flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.dcib-flash.is-ok { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.35); }
.dcib-flash.is-err { background: rgba(239,68,68,0.12); color: #fb923c; border: 1px solid rgba(239,68,68,0.35); }
html.light-mode .dcib-head-title,
html.light-mode .dcib-chip-label { color: #1f1235; }
html.light-mode .dcib-foot-hint { color: #4b5563; }
html.light-mode .dcib-chip { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.10); }
html.light-mode .dcib-chip:hover { background: rgba(124,58,237,0.08); }
html.light-mode .dcib-chip:has(.dcib-cb:checked) { background: rgba(124,58,237,0.14); border-color: rgba(124,58,237,0.45); }

/* Compact stream variant: this card lives inside the Discover grid next to
   movie/music/social cards, so it must use card-scale type and fit the same
   visual rhythm as the rest of the stream. */
.dcib-stream-card {
	padding: 14px 14px !important;
	align-self: stretch;
}
.dcib-stream-card .dcib-form { gap: 8px; }
.dcib-stream-card .dcib-head {
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 6px 8px;
	padding-bottom: 2px;
}
.dcib-stream-card .dcib-head-ic { font-size: 17px; margin-top: 2px; }
.dcib-stream-card .dcib-head-title {
	font-size: clamp(17px, 1.35vw, 20px);
	line-height: 1.12;
	letter-spacing: 0;
}
.dcib-stream-card .dcib-head-reward {
	grid-column: 2;
	padding: 3px 8px;
	font-size: 12px;
}
.dcib-stream-card .dcib-chips {
	grid-template-columns: 1fr;
	gap: 6px;
	margin: 1px 0 2px;
}
.dcib-stream-card .dcib-chip {
	grid-template-columns: 16px 19px minmax(0, 1fr);
	gap: 7px;
	min-height: 30px;
	padding: 5px 8px;
	border-radius: 10px;
	margin: 0 !important;
}
.dcib-stream-card .dcib-cb { width: 15px !important; height: 15px !important; flex-basis: 15px; }
.dcib-stream-card .dcib-chip-ic { width: 19px; font-size: 16px; }
.dcib-stream-card .dcib-chip-label {
	font-size: 12.5px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dcib-stream-card .dcib-foot {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 7px;
	align-items: center;
}
.dcib-stream-card .dcib-foot-hint { display: none; }
.dcib-stream-card .dcib-edit-link {
	justify-self: start;
	font-size: 12px;
	font-weight: 800;
	color: #bda8ff;
	text-decoration: none;
}
.dcib-stream-card .dcib-edit-link:hover { color: #fff; text-decoration: underline; }
.dcib-stream-card .dcib-submit {
	justify-content: center;
	justify-self: end;
	width: auto;
	min-width: 88px;
	min-height: 32px;
	padding: 7px 12px !important;
	font-size: 12px !important;
}
html.light-mode .dcib-stream-card .dcib-edit-link { color: #5b21b6; }

/* Full interest manager --------------------------------------------------- */
.dcib-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	color: #bda8ff;
	text-decoration: none;
	margin-bottom: 6px;
	position: relative;
	z-index: 3;
}
.dcib-close:hover,
.dcib-close:focus { background: rgba(124,58,237,0.12); color: #fff; text-decoration: none; }
.dcib-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}
.dcib-page-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.dcib-page-title h1 {
	margin: 0;
	font-size: clamp(26px, 3.2vw, 34px);
	line-height: 1;
	letter-spacing: 0;
	color: var(--text-primary, #fff);
}
.dcib-page-title > i { font-size: 20px; flex: 0 0 auto; }
.dcib-page-stat {
	color: #d8d2eb;
	font-size: 13px;
	white-space: nowrap;
}
.dcib-page-sub {
	margin: 0 0 18px;
	color: #c7c0dd;
	font-size: 13px;
	line-height: 1.5;
	max-width: 920px;
}
.dcib-inline-error {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(248,113,113,0.10);
	border: 1px solid rgba(248,113,113,0.30);
	color: #fecaca;
	font-weight: 700;
	font-size: 13px;
}
.dcib-inline-done {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 6px 10px;
	align-items: center;
	padding: 12px;
	border-radius: 14px;
	background: rgba(16,185,129,0.10);
	border: 1px solid rgba(16,185,129,0.30);
	color: #d1fae5;
}
.dcib-inline-done > i {
	grid-row: span 2;
	color: #34d399;
	font-size: 22px;
}
.dcib-inline-done strong { color: #fff; font-size: 16px; line-height: 1.2; }
.dcib-inline-done span { color: #c7f9df; font-size: 13px; line-height: 1.35; }
.dcib-inline-link {
	grid-column: 2;
	justify-self: start;
	color: #c4b5fd;
	font-weight: 800;
	text-decoration: none;
	font-size: 13px;
}
.dcib-inline-link:hover,
.dcib-inline-link:focus { color: #fff; text-decoration: underline; }
.dcib-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}
.dcib-filter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 32px;
	padding: 6px 11px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(124,58,237,0.32) !important;
	background: rgba(124,58,237,0.13) !important;
	color: var(--text-primary, #fff) !important;
	font-weight: 800 !important;
	font-size: 12px !important;
	line-height: 1 !important;
	white-space: nowrap;
	box-shadow: none !important;
}
.dcib-filter-btn.is-active {
	background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
	border-color: rgba(255,255,255,0.18) !important;
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.28);
}
.dcib-filter-n { opacity: .86; }
.dcib-sections {
	display: grid;
	gap: 18px;
}
.dcib-sec {
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 16px;
	background: rgba(255,255,255,0.025);
	padding: 12px;
}
.dcib-sec[hidden] { display: none !important; }
.dcib-sec-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 800;
	color: var(--text-primary, #fff);
}
.dcib-sec-head i { color: #a78bfa; width: 18px; text-align: center; }
.dcib-sec-n { color: #aaa2c6; font-weight: 700; }
.dcib-sec-body {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
}
.dcib-tri {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 7px;
	min-height: 42px;
	padding: 7px 8px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.10);
	background: rgba(15, 23, 42, 0.58);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}
.dcib-tri[data-state="yes"] { border-color: rgba(16,185,129,0.34); background: rgba(16,185,129,0.07); }
.dcib-tri[data-state="no"] { border-color: rgba(248,113,113,0.30); background: rgba(248,113,113,0.055); }
.dcib-tri-ic {
	color: #a78bfa;
	font-size: 15px;
	text-align: center;
}
.dcib-tri-label {
	min-width: 0;
	color: #e9e6f5;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dcib-tri-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 28px;
	padding: 0 !important;
	border-radius: 999px !important;
	border: 1px solid rgba(124,58,237,0.28) !important;
	background: rgba(124,58,237,0.13) !important;
	color: #c4b5fd !important;
	font-size: 11px !important;
	box-shadow: none !important;
}
.dcib-card-page button.dcib-tri-btn,
.dcib-card-page .dcib-tri button.dcib-tri-btn,
.wrapper .dcib-card-page button.dcib-tri-btn {
	width: 30px !important;
	min-width: 30px !important;
	max-width: 30px !important;
	height: 28px !important;
	min-height: 28px !important;
	max-height: 28px !important;
	padding: 0 !important;
	font-size: 11px !important;
	line-height: 1 !important;
}
.dcib-card-page button.dcib-tri-btn i,
.wrapper .dcib-card-page button.dcib-tri-btn i {
	font-size: 11px !important;
	line-height: 1 !important;
}
.dcib-tri-btn:hover,
.dcib-tri-btn:focus { filter: brightness(1.08); }
.dcib-tri[data-state="yes"] .dcib-tri-yes {
	background: linear-gradient(135deg, #22c55e, #10b981) !important;
	border-color: rgba(255,255,255,0.18) !important;
	color: #fff !important;
}
.dcib-tri[data-state="no"] .dcib-tri-no {
	background: linear-gradient(135deg, #ef4444, #f97316) !important;
	border-color: rgba(255,255,255,0.18) !important;
	color: #fff !important;
}
.dcib-autosave {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	margin-top: 2px;
	padding: 8px 11px;
	border-radius: 999px;
	border: 1px solid rgba(124,58,237,0.24);
	background: rgba(124,58,237,0.08);
	color: #c7c0dd;
	font-size: 12.5px;
	font-weight: 700;
}
.dcib-autosave.is-saving { color: #fbbf24; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); }
.dcib-autosave.is-ok { color: #34d399; border-color: rgba(52,211,153,0.34); background: rgba(52,211,153,0.08); }
.dcib-autosave.is-err { color: #fb923c; border-color: rgba(248,113,113,0.34); background: rgba(248,113,113,0.08); }
html.light-mode .dcib-page-title h1,
html.light-mode .dcib-sec-head,
html.light-mode .dcib-tri-label { color: #1f2937; }
html.light-mode .dcib-page-stat,
html.light-mode .dcib-page-sub,
html.light-mode .dcib-sec-n,
html.light-mode .dcib-autosave { color: #4b5563; }
html.light-mode .dcib-inline-error { color: #991b1b; background: rgba(248,113,113,0.11); }
html.light-mode .dcib-inline-done { color: #065f46; background: rgba(16,185,129,0.10); }
html.light-mode .dcib-inline-done strong { color: #064e3b; }
html.light-mode .dcib-inline-done span { color: #047857; }
html.light-mode .dcib-inline-link { color: #5b21b6; }
html.light-mode .dcib-sec,
html.light-mode .dcib-tri {
	background: rgba(255,255,255,0.72);
	border-color: rgba(17,24,39,0.10);
}
html.light-mode .dcib-tri[data-state="yes"] { background: rgba(16,185,129,0.09); border-color: rgba(16,185,129,0.28); }
html.light-mode .dcib-tri[data-state="no"] { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.24); }
html.light-mode .dcib-filter-btn,
html.light-mode .dcib-tri-btn {
	background: rgba(124,58,237,0.08) !important;
	border-color: rgba(124,58,237,0.20) !important;
	color: #1f1235 !important;
}
html.light-mode .dcib-filter-btn.is-active,
html.light-mode .dcib-tri[data-state="yes"] .dcib-tri-yes,
html.light-mode .dcib-tri[data-state="no"] .dcib-tri-no { color: #fff !important; }
@media (max-width: 720px) {
	.dcib-card-page { padding: 18px 14px !important; }
	.dcib-page-head { align-items: flex-start; flex-direction: column; gap: 6px; }
	.dcib-page-stat { white-space: normal; }
	.dcib-filter { gap: 7px; }
	.dcib-filter-btn { flex: 1 1 calc(50% - 7px); min-width: 136px; }
	.dcib-sec { padding: 10px; }
	.dcib-sec-body { grid-template-columns: 1fr; }
	.dcib-tri {
		grid-template-columns: 20px minmax(0, 1fr) auto auto;
		min-height: 42px;
		padding: 7px 8px;
	}
	.dcib-tri-label { white-space: normal; }
}
@media (max-width: 420px) {
	.dcib-filter-btn { flex-basis: 100%; }
	.dcib-tri-btn { width: 30px; height: 28px; }
}

/* ===== V6.8 patch 207i.m — primary metro picker (acct-primary-metro) ===== */
.acct-primary-metro { margin: 8px 0 18px; }
.acct-primary-metro .acct-field-label {
	display: flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 600;
	margin-bottom: 8px;
	color: var(--text-primary, #fff);
}
.acct-primary-metro .acct-field-label .fa-home { color: var(--purple); }
.acct-primary-metro-pill {
	display: inline-flex; align-items: center;
	background: rgba(124,58,237,0.18);
	color: var(--text-primary, #fff);
	padding: 2px 9px; border-radius: 999px;
	font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
	border: 1px solid rgba(124,58,237,0.40);
	text-transform: uppercase;
}
.acct-primary-metro select#acct-metro {
	width: 100%;
	padding: 11px 38px 11px 14px !important;
	border-radius: 12px !important;
	border: 1px solid rgba(124,58,237,0.45) !important;
	background: rgba(124,58,237,0.08) !important;
	color: var(--text-primary, #fff) !important;
	font-size: 15px; font-weight: 500;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237c3aed' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 12px 8px !important;
	cursor: pointer;
	outline: none;
}
.acct-primary-metro select#acct-metro:focus {
	border-color: var(--purple) !important;
	box-shadow: 0 0 0 3px rgba(124,58,237,0.20) !important;
}
.acct-primary-metro select#acct-metro option { color: #1f1235; background: #fff; }
html.light-mode .acct-primary-metro select#acct-metro {
	background-color: rgba(124,58,237,0.06) !important;
	color: #1f1235 !important;
	border-color: rgba(124,58,237,0.45) !important;
}
html.light-mode .acct-primary-metro .acct-field-label { color: #1f1235; }

/* Subheading for the "Follow additional metros" header inside the same card */
.acct-subheading {
	display: flex; align-items: center; gap: 8px;
	font-size: 16px; font-weight: 700;
	margin: 18px 0 6px;
	color: var(--text-primary, #fff);
}
.acct-subheading .fa-plus-circle { color: var(--purple); }
html.light-mode .acct-subheading { color: #1f1235; }

/* V6.9 — Connect tile follow + more triggers match Stream's
   `.discover-card-actions .discover-follow` aesthetic so users see the
   same neutral default / solid-purple active state across the site. */
body .connect-tile-actions .connect-tile-act,
body .connect-tile-actions .connect-tile-act.discover-follow,
body .connect-tile-actions .connect-tile-more,
body .connect-tile-actions-row .connect-tile-act,
body .connect-tile-actions-row .connect-tile-act.discover-follow {
	width: 36px !important;
	height: 36px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background: var(--bg-raised) !important;
	color: var(--text-secondary) !important;
	border: 1px solid var(--border) !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 14px !important;
	line-height: 1 !important;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease !important;
}
body .connect-tile-actions .connect-tile-act > i,
body .connect-tile-actions .connect-tile-more > i,
body .connect-tile-actions-row .connect-tile-act > i,
body .connect-tile-actions .connect-tile-act:not(.connect-tile-following) > i,
body .connect-tile-actions .connect-tile-act:not(.connect-tile-following):not(.connect-tile-more) > i,
body .connect-tile-actions-row .connect-tile-act:not(.connect-tile-following) > i {
	color: inherit !important;
	margin: 0 !important;
}
body .connect-tile-actions .connect-tile-act:hover:not(:disabled),
body .connect-tile-actions .connect-tile-more:hover,
body .connect-tile-actions-row .connect-tile-act:hover:not(:disabled) {
	background: rgba(124,58,237,0.18) !important;
	color: var(--text-primary) !important;
	border-color: var(--purple) !important;
	transform: scale(1.05);
}
body .connect-tile-actions .connect-tile-act.connect-tile-following,
body .connect-tile-actions-row .connect-tile-act.connect-tile-following {
	background: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}
body .connect-tile-actions .connect-tile-act.connect-tile-following:hover,
body .connect-tile-actions-row .connect-tile-act.connect-tile-following:hover {
	background: #6d28d9 !important;
	border-color: #6d28d9 !important;
	color: #fff !important;
}
html.light-mode body .connect-tile-actions .connect-tile-act,
html.light-mode body .connect-tile-actions .connect-tile-more,
html.light-mode body .connect-tile-actions-row .connect-tile-act {
	background: #f6f3ff !important;
	border-color: rgba(0,0,0,0.08) !important;
	color: #6b6378 !important;
}
html.light-mode body .connect-tile-actions .connect-tile-act.connect-tile-following,
html.light-mode body .connect-tile-actions-row .connect-tile-act.connect-tile-following {
	background: var(--purple) !important;
	color: #fff !important;
	border-color: var(--purple) !important;
}

/* V6.9 — Connect "..." popout adopts the discover action-sheet card look so it
   feels like the same component the user already knows from Stream. */
.connect-wrap-compact .connect-more-menu,
.connect-grid .connect-more-menu {
	min-width: 168px;
	padding: 8px;
	border-radius: 14px;
	background: rgba(15, 12, 28, 0.96) !important;
	border: 1px solid rgba(167,139,250,0.24) !important;
	box-shadow: 0 22px 44px -22px rgba(0,0,0,0.78), 0 0 0 1px rgba(255,255,255,0.03) inset !important;
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.connect-wrap-compact .connect-more-menu a,
.connect-grid .connect-more-menu a,
.connect-wrap-compact .connect-more-menu a:visited,
.connect-grid .connect-more-menu a:visited {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	padding: 8px 12px;
	border-radius: 10px;
	color: #ede9fe !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}
.connect-wrap-compact .connect-more-menu a:hover,
.connect-grid .connect-more-menu a:hover,
.connect-wrap-compact .connect-more-menu a:focus-visible,
.connect-grid .connect-more-menu a:focus-visible {
	background: rgba(124,58,237,0.22) !important;
	color: #fff !important;
}
.connect-wrap-compact .connect-more-menu i,
.connect-grid .connect-more-menu i {
	width: 18px;
	text-align: center;
	color: #a78bfa !important;
	font-size: 13px;
}
html.light-mode .connect-wrap-compact .connect-more-menu,
html.light-mode .connect-grid .connect-more-menu {
	background: rgba(255,255,255,0.98) !important;
	border-color: rgba(124,58,237,0.18) !important;
	box-shadow: 0 22px 40px -24px rgba(47,34,84,0.32) !important;
}
html.light-mode .connect-wrap-compact .connect-more-menu a,
html.light-mode .connect-grid .connect-more-menu a,
html.light-mode .connect-wrap-compact .connect-more-menu a:visited,
html.light-mode .connect-grid .connect-more-menu a:visited {
	color: #2e2058 !important;
}
html.light-mode .connect-wrap-compact .connect-more-menu a:hover,
html.light-mode .connect-grid .connect-more-menu a:hover,
html.light-mode .connect-wrap-compact .connect-more-menu a:focus-visible,
html.light-mode .connect-grid .connect-more-menu a:focus-visible {
	background: rgba(124,58,237,0.10) !important;
	color: #1f1235 !important;
}
html.light-mode .connect-wrap-compact .connect-more-menu i,
html.light-mode .connect-grid .connect-more-menu i {
	color: #7c3aed !important;
}

/* V6.9 — Connect action sheet header: no eyebrow label, name left-aligned to avatar. */
.weird-action-sheet-head-connect {
	align-items: center;
}
.weird-action-sheet-head-connect .weird-action-sheet-title {
	text-align: left;
	font-size: 17px;
	font-weight: 700;
}

/* ===== V6.8 patch 207i.o — searchable primary metro combobox ===== */
.acct-metro-combo { position: relative; }
.acct-metro-combo-input-wrap {
	position: relative;
	display: flex; align-items: center;
}
.acct-metro-combo-icon {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
	color: var(--purple); font-size: 13px; pointer-events: none;
}
.acct-metro-combo-input,
.acct-primary-metro .acct-metro-combo input.acct-metro-combo-input {
	width: 100%;
	padding: 11px 44px 11px 40px !important;
	border-radius: 12px !important;
	border: 1px solid rgba(124,58,237,0.45) !important;
	background: rgba(124,58,237,0.08) !important;
	color: var(--text-primary, #fff) !important;
	font-size: 15px; font-weight: 500;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.acct-metro-combo-input:focus {
	border-color: var(--purple) !important;
	box-shadow: 0 0 0 3px rgba(124,58,237,0.20) !important;
}
.acct-metro-combo-clear {
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px;
	border-radius: 999px !important; border: none !important;
	background: rgba(255,255,255,0.06) !important;
	color: var(--text-secondary, #cbc6df) !important;
	cursor: pointer; padding: 0 !important;
	display: inline-flex; align-items: center; justify-content: center;
}
.acct-metro-combo-clear:hover { background: rgba(124,58,237,0.25) !important; color: #fff !important; }
.acct-metro-combo-list {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0;
	max-height: 320px; overflow-y: auto;
	margin: 0; padding: 6px;
	list-style: none;
	background: #1a1530;
	border: 1px solid rgba(124,58,237,0.45);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0,0,0,0.45);
	z-index: 50;
}
.acct-metro-combo-item {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--text-primary, #fff);
	font-size: 14px;
	cursor: pointer;
}
.acct-metro-combo-item:hover { background: rgba(124,58,237,0.18); }
.acct-metro-combo-item.is-selected {
	background: rgba(124,58,237,0.30);
	border: 1px solid rgba(124,58,237,0.55);
}
.acct-metro-combo-item .fa-map-marker-alt { color: var(--purple); }
.acct-metro-combo-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.light-mode .acct-metro-combo-input { color: #1f1235 !important; }
html.light-mode .acct-metro-combo-list { background: #fff; border-color: rgba(124,58,237,0.45); }
html.light-mode .acct-metro-combo-item { color: #1f1235; }
html.light-mode .acct-metro-combo-item:hover { background: rgba(124,58,237,0.10); }
html.light-mode .acct-metro-combo-clear { background: rgba(0,0,0,0.06) !important; color: #4b5563 !important; }

/* Onboarding feedback: search belongs on the trailing edge; keep clear on the
   leading edge so the two controls never overlap. */
#onb-main .acct-metro-combo-icon { left: auto; right: 14px; }
#onb-main .acct-metro-combo-clear {
	left: 0;
	right: auto;
	width: 44px;
	height: 44px;
}
#onb-main .acct-metro-combo input.acct-metro-combo-input {
	padding: 11px 40px 11px 44px !important;
	min-height: 44px;
}

/* V6.9 — Site-wide rate accent refresh.
   Up = on-brand emerald, Down = clean rose, Neutral = warm amber with
   real hover + selected affordances. Applies to every .discover-rate
   instance on Stream, Subpages, Profile compare, PvP catalog, etc. */
:root {
	--rate-up: #22c55e;
	--rate-up-soft: rgba(34, 197, 94, 0.18);
	--rate-down: #fb923c;
	--rate-down-soft: rgba(248, 113, 113, 0.18);
	--rate-neutral: #f59e0b;
	--rate-neutral-soft: rgba(245, 158, 11, 0.18);
}
html.light-mode {
	--rate-up: #16a34a;
	--rate-up-soft: rgba(22, 163, 74, 0.12);
	--rate-down: #dc2626;
	--rate-down-soft: rgba(220, 38, 38, 0.12);
	--rate-neutral: #d97706;
	--rate-neutral-soft: rgba(217, 119, 6, 0.14);
}

body .discover-rate.up.active,
body .discover-rate.up:hover:not(:disabled),
body .discover-rate.up:focus-visible {
	background: var(--rate-up) !important;
	background-color: var(--rate-up) !important;
	background-image: none !important;
	color: #fff !important;
	border-color: var(--rate-up) !important;
}
body .discover-rate.up.active {
	box-shadow: 0 0 0 4px var(--rate-up-soft);
}
body .discover-rate.down.active,
body .discover-rate.down:hover:not(:disabled),
body .discover-rate.down:focus-visible {
	background: var(--rate-down) !important;
	background-color: var(--rate-down) !important;
	background-image: none !important;
	color: #fff !important;
	border-color: var(--rate-down) !important;
}
body .discover-rate.down.active {
	box-shadow: 0 0 0 4px var(--rate-down-soft);
}
body .discover-rate.neutral.active,
body .discover-rate.neutral:hover:not(:disabled),
body .discover-rate.neutral:focus-visible {
	background: var(--rate-neutral) !important;
	background-color: var(--rate-neutral) !important;
	background-image: none !important;
	color: #111827 !important;
	border-color: var(--rate-neutral) !important;
}
body .discover-rate.neutral.active {
	box-shadow: 0 0 0 4px var(--rate-neutral-soft);
}
body .discover-rate.neutral.active .discover-neutral-thumb,
body .discover-rate.neutral:hover .discover-neutral-thumb { color: #111827 !important; }

/* Mirror the rate accents on any small `rated` / pct chips so the legacy
   "you rated this" badges line up with the new palette. */
body .rated.up,
body .ai-stat-mine.up { color: var(--rate-up) !important; }
body .rated.down,
body .ai-stat-mine.down { color: var(--rate-down) !important; }
body .rated.neutral,
body .ai-stat-mine.neutral { color: var(--rate-neutral) !important; }

/* ===== V6.8 patch 207i.v — subpage local-page metro combobox fixes ===== */
/* (a) Beat the global input[type=text] padding rule so the search icon
       doesn't overlap the value text — same trap as the editinfo combo. */
.places-defaults-metro .acct-metro-combo input.acct-metro-combo-input,
.subpage-metro-combo input.acct-metro-combo-input {
	padding: 11px 44px 11px 40px !important;
	border-radius: 12px !important;
	background: rgba(124,58,237,0.08) !important;
	color: var(--text-primary, #fff) !important;
	font-size: 14px !important;
	min-height: 40px !important;
	width: 100% !important;
}
/* (b) Let the combobox fill the form row so the input gets a usable width
       (was rendering at ~110px placeholder-width due to default flex sizing). */
.places-defaults-metro .subpage-metro-combo,
.places-defaults-actions form.places-defaults-metro .subpage-metro-combo {
	flex: 1 1 auto !important;
	min-width: 220px !important;
	max-width: none !important;
}
.places-defaults-metro .subpage-metro-combo .acct-metro-combo-input-wrap {
	width: 100%;
}
/* Also bump the form's own max-width so the combo has room to breathe. */
.places-defaults-metro,
.places-defaults-actions form.places-defaults-metro.subpage-locfilter {
	max-width: none !important;
	flex: 1 1 360px !important;
}
@media (max-width: 640px) {
	.places-defaults-metro .subpage-metro-combo {
		flex: 1 1 100% !important;
		min-width: 100% !important;
	}
}
/* (c) Anchor the open dropdown to the combobox so it doesn't get clipped. */
.places-defaults-metro .acct-metro-combo .acct-metro-combo-list {
	left: 0; right: auto; min-width: 320px;
}

/* ===== V6.8 patch 207i.x — condensed profile fields ===== */
.acct-fields .acct-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 640px) {
	.acct-fields .acct-field-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== V6.8 patch 207i.z — privacy autosave saved-pulse ===== */
.acct-priv label.acct-priv-opt.autosaved {
	box-shadow: 0 0 0 2px rgba(16,185,129,0.55) inset;
	transition: box-shadow .35s ease;
}

/* ===== V6.8 patch 207i.aa — chip-nav active state final override =====
   Several later legacy blocks bundle .acct-quicklink.is-active with
   profile-action-primary / acct-save and force a gradient. Re-declare
   here at file end so the integrated tab-bar wins source-order. */
nav.acct-quicklinks a.acct-quicklink.is-active,
nav.acct-quicklinks a.acct-quicklink.is-active:hover,
nav.acct-quicklinks a.acct-quicklink.is-active:focus,
nav.acct-quicklinks a.acct-quicklink.is-active:visited {
	background: rgba(124,58,237,0.18) !important;
	background-image: none !important;
	border: none !important;
	color: var(--text-primary, #fff) !important;
	box-shadow: none !important;
}
nav.acct-quicklinks a.acct-quicklink.is-active i { color: var(--purple) !important; }
html.light-mode nav.acct-quicklinks a.acct-quicklink.is-active,
html.light-mode nav.acct-quicklinks a.acct-quicklink.is-active:hover {
	background: rgba(124,58,237,0.12) !important;
	background-image: none !important;
	color: #1f1235 !important;
}
html.light-mode nav.acct-quicklinks a.acct-quicklink.is-active i { color: var(--purple) !important; }

/* ===== V6.8 patch 207i.ac (re-applied) — mobile chip-nav slimming ===== */
.acct-quickmore-menu a.is-mobile-only { display: none; }
@media (max-width: 720px) {
	.acct-quicklink.acct-quicklink-collapsible { display: none !important; }
	.acct-quickmore[open] .acct-quickmore-menu a.is-mobile-only { display: flex !important; }
	/* V6.9 patch — JS toggles `.is-open` class (not [open] attribute) on
	   the wrapper; the existing rule above only matched the old <details>
	   variant, so the menu items stayed hidden when expanded via JS. */
	.acct-quickmore.is-open .acct-quickmore-menu a.is-mobile-only { display: flex !important; }
}

/* ===== V6.8 patch 207i.ae — More dropdown must paint above the form. */
.acct-quickmore-menu { z-index: 1000 !important; }
.acct-quickmore[open] .acct-quickmore-menu,
.acct-quickmore.is-open .acct-quickmore-menu { z-index: 1000 !important; }

/* ===== V6.9 patch — the JS-driven menu toggles `.is-open` on the wrapper.
   The earlier rules at line ~9140 only show the menu via the legacy
   <details>[open] selector, so clicking More opened+positioned the menu
   but left it `display: none`. Mirror the show rule for `.is-open`. */
.acct-quickmore.is-open .acct-quickmore-menu { display: grid !important; gap: 3px; }

/* ===== V6.8 patch 207i.af — escape stacking context with position:fixed.
   An ancestor (likely .acct-form / .acct-card with transforms/contain) was
   trapping the menu under the form even at z-index:1000. Fixed positioning
   takes it out of every ancestor stacking context. JS sets top/left below. */
.acct-quickmore-menu {
	/* Must be fixed: parent `nav.acct-quicklinks` has `overflow: auto`
	   to allow horizontal chip scroll on mobile, which CLIPS any
	   absolute-positioned descendant. Position is set in JS based on
	   the button's getBoundingClientRect (desktop) or overridden to a
	   bottom sheet by the mobile media query below. */
	position: fixed !important;
	z-index: 9999 !important;
}

/* ===== V6.9 patch — mobile bottom-sheet for More dropdown.
   Previous fixed-position math could push the menu off-screen-right when
   the chip nav was horizontally scrolled, and the menu could be clipped
   by the bottom tabbar. Render as a centered sheet on small screens so
   it's always reachable. JS skips its top/left writes in this mode (any
   inline values are overridden by !important here). */
@media (max-width: 720px) {
	.acct-quickmore.is-open .acct-quickmore-menu {
		position: fixed !important;
		left: 12px !important;
		right: 12px !important;
		top: auto !important;
		bottom: calc(env(safe-area-inset-bottom, 0px) + 96px) !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		max-height: 60vh !important;
		overflow-y: auto !important;
		z-index: 10000 !important;
		display: grid !important;
		gap: 4px !important;
		padding: 10px !important;
		border-radius: 16px !important;
		box-shadow: 0 -10px 40px rgba(0,0,0,.5) !important;
	}
	.acct-quickmore.is-open .acct-quickmore-menu a {
		min-height: 44px;
		font-size: 14px;
	}
	/* Backdrop for the sheet so tap-outside-to-close is obvious. */
	.acct-quickmore.is-open::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,.35);
		z-index: 9998;
		pointer-events: none;
	}
}

/* ===== V6.9 patch 240 — compact profile top + shared avatar halo. */
.weird-av {
	isolation: isolate;
	z-index: 0;
	--weird-av-halo-x: 1.44;
	--weird-av-halo-y: 1.18;
	--weird-av-halo-opacity: .42;
	--weird-av-halo-rotate: -6deg;
}
.weird-av::before,
.weird-avatar-halo::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 0;
	width: calc(var(--weird-av-size, 48px) * var(--weird-av-halo-x, 1.44));
	height: calc(var(--weird-av-size, 48px) * var(--weird-av-halo-y, 1.18));
	border-radius: 48% 52% 43% 57% / 52% 44% 56% 48%;
	background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
	box-shadow: 0 4px 14px rgba(139,92,246,.25);
	transform: translate(-50%, -50%) rotate(var(--weird-av-halo-rotate, -6deg));
	opacity: var(--weird-av-halo-opacity, .42);
	pointer-events: none;
}
.weird-av > img,
.weird-avatar-halo img {
	position: relative;
	z-index: 1;
}
.weird-av-mood { position: absolute; z-index: 2; }

.profile-hero-avatar-zoom {
	--profile-avatar-stage-w: 140px;
	--profile-avatar-stage-h: 116px;
	width: var(--profile-avatar-stage-w) !important;
	min-width: var(--profile-avatar-stage-w) !important;
	height: var(--profile-avatar-stage-h) !important;
	min-height: var(--profile-avatar-stage-h) !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 48% 52% 43% 57% / 52% 44% 56% 48% !important;
	background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
	background-image: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
	box-shadow: 0 4px 14px rgba(139,92,246,.25) !important;
	overflow: visible !important;
}
.profile-hero-av-wrap::before { display: none; }

.weird-avatar-halo {
	--weird-av-size: 28px;
	--weird-av-halo-x: 1.46;
	--weird-av-halo-y: 1.18;
	--weird-av-halo-opacity: .88;
	--weird-av-halo-rotate: -6deg;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--weird-av-size) * 1.58);
	height: calc(var(--weird-av-size) * 1.32);
	line-height: 0;
	flex: 0 0 auto;
	isolation: isolate;
}
.weird-avatar-halo img {
	display: block;
	width: var(--weird-av-size) !important;
	height: var(--weird-av-size) !important;
	border-radius: 999px;
	object-fit: cover;
	background: rgba(255,255,255,.08);
	box-shadow: 0 0 0 2px rgba(255,255,255,.82), 0 7px 18px -10px rgba(0,0,0,.72);
}
.weird-avatar-halo-menu {
	--weird-av-size: 36px;
	width: 50px;
	height: 44px;
}
.weird-avatar-menu-head .weird-avatar-halo-menu img { box-shadow: 0 0 0 2px rgba(255,255,255,.78), 0 7px 18px -10px rgba(0,0,0,.72); }
html.light-mode .weird-avatar-halo img {
	box-shadow: 0 0 0 2px #fff, 0 7px 18px -12px rgba(67,56,202,.42);
}

@media (max-width: 1080px) {
	.acct-quicklinks {
		margin-bottom: 12px !important;
		padding-top: 4px !important;
		padding-bottom: 7px !important;
	}
	.acct-quicklink {
		min-height: 34px !important;
		padding: 6px 11px !important;
		font-size: 12px !important;
	}
	.acct-quicklink.is-active::after { bottom: -8px !important; }
	.profile-hero-self .profile-hero-content {
		display: grid !important;
		grid-template-columns: 132px minmax(0, 1fr) !important;
		align-items: center !important;
		column-gap: 14px !important;
		row-gap: 8px !important;
		padding: 14px !important;
		text-align: left !important;
	}
	.profile-hero-self .profile-hero-content > .profile-hero-avatar-col {
		grid-column: 1 !important;
		grid-row: 1 / span 2 !important;
		align-self: center !important;
		justify-self: center !important;
		gap: 7px !important;
		margin: 0 !important;
	}
	.profile-hero-self .profile-hero-main {
		grid-column: 2 !important;
		grid-row: 1 !important;
		align-items: flex-start !important;
		text-align: left !important;
		gap: 5px !important;
		min-width: 0 !important;
	}
	.profile-hero-self .profile-hero-name {
		font-size: 23px !important;
		line-height: 1.12 !important;
	}
	.profile-hero-self .profile-hero-taste-tag,
	.profile-hero-self .profile-hero-title {
		margin: 0 !important;
		padding: 3px 9px !important;
		font-size: 12px !important;
	}
	.profile-hero-self .profile-hero-main .profile-hero-meta {
		justify-content: flex-start !important;
		gap: 5px !important;
		margin: 2px 0 0 !important;
	}
	.profile-hero-self .profile-hero-meta li {
		max-width: 100%;
		min-width: 0;
		padding: 4px 8px !important;
		font-size: 11.5px !important;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.profile-hero-self .profile-hero-rail {
		grid-column: 2 !important;
		grid-row: 2 !important;
		align-self: start !important;
		width: 100% !important;
		padding: 6px !important;
		border-radius: 11px !important;
	}
	.profile-hero-self .profile-hero-rail .profile-hero-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 6px !important;
	}
	.profile-hero-self .profile-hero .profile-action,
	.profile-hero-self .profile-action,
	.profile-hero-self a.profile-action,
	.profile-hero-self a.profile-action:visited,
	#main .profile-hero-self button.profile-action {
		min-height: 36px !important;
		padding: 8px 9px !important;
		font-size: 12px !important;
		border-radius: 9px !important;
	}
}

@media (max-width: 640px) {
	.profile-hero-self .profile-hero-content {
		grid-template-columns: 118px minmax(0, 1fr) !important;
		column-gap: 10px !important;
		row-gap: 8px !important;
		padding: 12px !important;
	}
	.profile-hero-self .profile-hero-avatar-zoom {
		--profile-avatar-stage-w: 112px;
		--profile-avatar-stage-h: 92px;
	}
	.profile-hero-self .profile-hero-avatar-col .weird-av { --weird-av-size: 76px !important; }
	.profile-hero-self .profile-hero-avatar-col .weird-av > img,
	.profile-hero-self .profile-hero-avatar {
		width: 76px !important;
		height: 76px !important;
	}
	.profile-hero-self .profile-share-link {
		padding: 4px 8px !important;
		font-size: 10.5px !important;
		gap: 4px !important;
	}
	.profile-hero-self .profile-hero-name { font-size: 21px !important; }
	.profile-hero-self .profile-hero-taste-tag,
	.profile-hero-self .profile-hero-title {
		font-size: 11.5px !important;
		padding: 3px 8px !important;
	}
	.profile-hero-self .profile-hero-meta li {
		font-size: 11px !important;
		padding: 3px 7px !important;
		gap: 5px !important;
	}
	.profile-hero-self .profile-hero-rail {
		grid-column: 1 / -1 !important;
		grid-row: 2 !important;
		padding: 6px !important;
	}
}

@media (max-width: 360px) {
	.profile-hero-self .profile-hero-content {
		grid-template-columns: 104px minmax(0, 1fr) !important;
		column-gap: 8px !important;
	}
	.profile-hero-self .profile-hero-avatar-zoom {
		--profile-avatar-stage-w: 100px;
		--profile-avatar-stage-h: 84px;
	}
	.profile-hero-self .profile-share-link span { display: none; }
}

.discover-card-avatar,
.connect-tile-avatar {
	overflow: visible !important;
}
.discover-card-avatar .discover-card-av-wrap.weird-av {
	--weird-av-size: 36px !important;
}
.discover-card-avatar .discover-card-av-wrap.weird-av > img {
	width: 36px !important;
	height: 36px !important;
}
.connect-tile-avatar .discover-card-av-wrap.weird-av {
	--weird-av-size: 56px !important;
}
.connect-tile-avatar .discover-card-av-wrap.weird-av > img {
	width: 56px !important;
	height: 56px !important;
}
.uqc-q-byline-av,
.uqc-listhead-avatar {
	background: transparent !important;
	overflow: visible !important;
	position: relative;
	isolation: isolate;
}
.uqc-q-byline-av .weird-av { --weird-av-size: 30px !important; }
.uqc-listhead-avatar .weird-av { --weird-av-size: 56px !important; }
.uqc-q-byline-av .weird-av > img,
.uqc-q-byline-av img {
	width: 30px !important;
	height: 30px !important;
	border-radius: 999px;
}
.uqc-listhead-avatar .weird-av > img,
.uqc-listhead-avatar img {
	width: 56px !important;
	height: 56px !important;
	border-radius: 999px;
}
.blocked-avatar-halo {
	--weird-av-size: 50px !important;
}
.blocked-avatar-halo .blocked-avatar {
	width: 50px !important;
	height: 50px !important;
}
img.msg-avatar,
img.qmc-avatar,
img.qm-card-avatar,
img.smc-avatar,
img.sm-card-avatar {
	background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
	box-shadow: 0 0 0 2px rgba(255,255,255,.78), 0 7px 18px -12px rgba(124,58,237,.70) !important;
}

/* V6.8 patch 207i.ai — when .discover-section is inside .acct-form, the
   form's flex gap controls spacing; kill its legacy 36px bottom margin
   so cards don't double-space. */
.acct-form .acct-card.discover-section { margin-bottom: 0; }


/* V6.8 patch 208 — "NEW" badge for freshly-ingested movies/tv cards. */
.discover-card-media { position: relative; }
.discover-card-new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
    pointer-events: none;
}
.discover-card-new-badge i { font-size: 10px; color: #fff !important; }
html.light-mode .discover-card-new-badge { color: #fff !important; }

.toys-hub-wrap { max-width: 1100px; margin: 0 auto; padding: 0 4px 48px; }
.toys-hub-head { padding: 8px 4px 18px; }
.toys-hub-head h1 { font-size: 28px; font-weight: 800; margin: 0 0 6px; color: var(--text-primary); }
.toys-hub-sub { color: #cbc6df; font-size: 14px; line-height: 1.45; margin: 0; max-width: 600px; }
html.light-mode .toys-hub-sub { color: #4b5563; }

.toys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.toy-card {
	display: flex; align-items: flex-start; gap: 14px;
	padding: 16px; border-radius: 16px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	text-decoration: none !important; color: inherit;
	transition: transform 0.15s, background 0.15s, border-color 0.15s;
	position: relative;
}
html.light-mode .toy-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.toy-card.is-live { cursor: pointer; }
.toy-card.is-live:hover { transform: translateY(-2px); background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.35); }
html.light-mode .toy-card.is-live:hover { background: rgba(124,58,237,0.06); }
.toy-card.is-soon { opacity: 0.85; }

.toy-card-icon {
	flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(34,197,94,0.18));
	font-size: 18px; color: #fff;
}
html.light-mode .toy-card-icon { color: #1f1235; background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(34,197,94,0.10)); }

.toy-card-body { flex: 1 1 auto; min-width: 0; }
.toy-card-title {
	font-weight: 700; font-size: 15px; color: var(--text-primary);
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px;
}
.toy-card-blurb { font-size: 13px; color: #cbc6df; line-height: 1.45; }
html.light-mode .toy-card-blurb { color: #4b5563; }

.toy-badge {
	display: inline-flex; align-items: center; padding: 2px 8px;
	border-radius: 999px; font-size: 10px; font-weight: 700;
	letter-spacing: 0.04em; text-transform: uppercase;
}
.toy-badge-live { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.toy-badge-soon { background: rgba(255,255,255,0.10); color: #cbc6df; }
html.light-mode .toy-badge-soon { background: rgba(0,0,0,0.06); color: #4b5563; }

.toy-card-cta { flex: 0 0 auto; align-self: center; color: var(--purple); font-size: 14px; }
html.light-mode .toy-card-cta { color: #7c3aed; }

.toy-vote-btn {
	flex: 0 0 auto; align-self: center;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
	background: rgba(255,255,255,0.04); color: var(--text-primary);
	font-size: 12px; font-weight: 600; cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.toy-vote-btn:hover { background: rgba(124,58,237,0.18); border-color: rgba(124,58,237,0.4); }
.toy-vote-btn.is-voted {
	background: linear-gradient(135deg, #7c3aed, #22c55e) !important;
	color: #fff !important; border-color: transparent !important;
	cursor: default;
}
html.light-mode .toy-vote-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #1f1235; }
html.light-mode .toy-vote-btn.is-voted { color: #fff !important; }

/* === Meme Studio === */
.meme-studio-wrap { max-width: 1100px; margin: 0 auto; padding: 0 4px 48px; }
.meme-studio-head { padding: 8px 4px 18px; }
.meme-studio-back {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; color: #cbc6df; text-decoration: none;
	margin-bottom: 8px;
}
html.light-mode .meme-studio-back { color: #6b7280; }
.meme-studio-back:hover { color: var(--text-primary); }
.meme-studio-head h1 { font-size: 28px; font-weight: 800; margin: 0 0 6px; color: var(--text-primary); }
.meme-studio-sub { color: #cbc6df; font-size: 14px; margin: 0; }
html.light-mode .meme-studio-sub { color: #4b5563; }

.meme-studio-grid {
	display: grid; grid-template-columns: 240px 1fr; gap: 18px;
	align-items: flex-start;
}
@media (max-width: 720px) {
	.meme-studio-grid { grid-template-columns: 1fr; }
}

.meme-tpl-rail {
	display: flex; flex-direction: column; gap: 6px;
	max-height: 70vh; overflow-y: auto;
	padding: 6px; border-radius: 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.08);
}
html.light-mode .meme-tpl-rail { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
@media (max-width: 720px) {
	.meme-tpl-rail { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
	.meme-tpl-chip { flex: 0 0 auto; width: 100px; }
}

.meme-tpl-chip {
	display: flex; align-items: center; gap: 8px;
	padding: 6px; border-radius: 8px;
	background: transparent; border: 1px solid transparent;
	cursor: pointer; text-align: left; color: var(--text-primary);
	transition: background 0.12s, border-color 0.12s;
}
.meme-tpl-chip:hover { background: rgba(124,58,237,0.10); }
.meme-tpl-chip.is-active {
	background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(34,197,94,0.18)) !important;
	border-color: rgba(124,58,237,0.5) !important;
}
.meme-tpl-chip img {
	width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover;
	border-radius: 6px; background: rgba(0,0,0,0.2);
}
.meme-tpl-chip-label { font-size: 12px; font-weight: 600; line-height: 1.25; }
@media (max-width: 720px) {
	.meme-tpl-chip { flex-direction: column; align-items: stretch; }
	.meme-tpl-chip img { width: 100%; height: 80px; flex: 0 0 80px; }
	.meme-tpl-chip-label { font-size: 11px; text-align: center; }
}

.meme-studio-main { display: flex; flex-direction: column; gap: 14px; }
.meme-preview {
	position: relative; border-radius: 14px; overflow: hidden;
	background: #0b0612; min-height: 280px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid rgba(255,255,255,0.08);
}
html.light-mode .meme-preview { background: #f3f0fb; border-color: rgba(0,0,0,0.08); }
.meme-preview img { max-width: 100%; max-height: 60vh; display: block; }
.meme-preview-loader {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,0.4); color: #fff; font-size: 22px;
}

.meme-form { display: flex; flex-direction: column; gap: 10px; }
.meme-field { display: flex; flex-direction: column; gap: 4px; }
.meme-field-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #cbc6df; }
html.light-mode .meme-field-label { color: #6b7280; }
.meme-field input {
	padding: 10px 12px !important; border-radius: 10px !important;
	background: rgba(255,255,255,0.04) !important;
	border: 1px solid rgba(255,255,255,0.12) !important;
	color: var(--text-primary) !important; font-size: 14px;
}
html.light-mode .meme-field input { background: #fff !important; border-color: rgba(0,0,0,0.12) !important; color: #1f1235 !important; }
.meme-field input:focus { outline: 2px solid var(--purple); outline-offset: 1px; }

.meme-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.meme-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 16px; border-radius: 999px;
	font-size: 13px; font-weight: 600;
	border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04);
	color: var(--text-primary) !important; text-decoration: none !important;
	cursor: pointer; transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
html.light-mode .meme-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #1f1235 !important; }
.meme-btn:hover { transform: translateY(-1px); background: rgba(124,58,237,0.14); }
.meme-btn-primary {
	background: linear-gradient(135deg, #7c3aed, #22c55e) !important;
	color: #fff !important; border-color: transparent !important;
	text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}
.meme-btn-primary:hover { background: linear-gradient(135deg, #6d28d9, #16a34a) !important; }
.meme-status { font-size: 12px; color: #cbc6df; min-height: 16px; }
html.light-mode .meme-status { color: #6b7280; }

/* V6.9 patch 209 hotfix — defeat global button:not(...) gradient on
 * default-state chips/vote buttons. Active/voted states keep gradient. */
.toy-vote-btn:not(.is-voted) {
	background: rgba(255,255,255,0.04) !important;
	background-image: none !important;
}
html.light-mode .toy-vote-btn:not(.is-voted) {
	background: rgba(0,0,0,0.04) !important;
	background-image: none !important;
}
.meme-tpl-chip:not(.is-active) {
	background: transparent !important;
	background-image: none !important;
}
.meme-tpl-chip:not(.is-active):hover {
	background: rgba(124,58,237,0.10) !important;
}
.meme-btn-secondary {
	background: rgba(255,255,255,0.04) !important;
	background-image: none !important;
}
html.light-mode .meme-btn-secondary {
	background: rgba(0,0,0,0.04) !important;
	background-image: none !important;
}

/* V6.9 patch 210 — UGC meme card credit pill + meme studio "saved" state. */
.discover-card-ugc-pill {
	display: inline-flex; align-items: center; gap: 5px;
	margin: 4px 0 6px; padding: 2px 8px;
	font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(124,58,237,0.20), rgba(34,197,94,0.18));
	color: #e9e6f5;
}
html.light-mode .discover-card-ugc-pill {
	background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(34,197,94,0.10));
	color: #1f1235;
}
.discover-card-ugc-pill i { font-size: 9px; opacity: 0.85; }
.discover-card-ugc-pill .discover-card-ugc-by { opacity: .82; }
.discover-card-ugc-pill a,
.wrapper .discover-card-ugc-pill a,
.discover-card-ugc-pill a:visited,
.wrapper .discover-card-ugc-pill a:visited {
	color: inherit !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 2px !important;
}
.discover-card-ugc-pill a:hover,
.wrapper .discover-card-ugc-pill a:hover { color: #fff !important; }
html.light-mode .discover-card-ugc-pill a:hover,
html.light-mode .wrapper .discover-card-ugc-pill a:hover { color: #166534 !important; }

.meme-btn.is-saved {
	background: linear-gradient(135deg, #10b981, #059669) !important;
	color: #fff !important; border-color: transparent !important;
	cursor: default; opacity: 0.95;
}

/* ============================================================
   V6.9 patch 240 — Header search bar redesign
   ============================================================
   Issues fixed:
   - Global `input[type="search"]` rule (line ~2773) was forcing
     background/border/border-radius/padding on .weird-search-input,
     so the input rendered as a boxed sub-input INSIDE the form's
     purple pill — visually mismatched the rest of the site.
   - Result rows used grid `48px 1fr auto` without minmax(0,1fr),
     so a long item title + nowrap category pill could overflow
     horizontally inside the popout (mobile horizontal scroll).
   - Popout chrome was a heavy purple-tinted card; the rest of the
     site uses neutral surface cards with subtle purple accents.
   Redesign: single clean card, single input row (no pill-in-pill),
   results clamp safely on mobile, results scroll vertically only.
============================================================ */

/* Popout: clean neutral card, never scrolls horizontally */
body .weird-search-popout {
	padding: 12px !important;
	overflow: hidden !important;
	border-radius: 16px !important;
}
body .weird-search-popout-inner {
	gap: 8px !important;
	overflow: hidden !important;
}

/* Form row: no pill chrome — the input itself is the styled control */
body .weird-search-form {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	position: relative !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}
body .weird-search-form:focus-within {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Search icon sits inside the input, not the form */
body .weird-search-form-icon {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: var(--text-secondary) !important;
	font-size: 14px !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

/* The input — explicitly override the global input[type=search]
   block so the search bar matches site convention (rounded card,
   surface bg) but with extra left padding for the inset icon. */
body .weird-search-input,
body input[type="search"].weird-search-input {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: 100% !important;
	background: var(--surface) !important;
	color: var(--text-primary) !important;
	border: 1px solid var(--border) !important;
	border-radius: 12px !important;
	padding: 10px 14px 10px 40px !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
	transition: border-color .15s, box-shadow .15s !important;
}
body .weird-search-input::placeholder {
	color: var(--text-muted) !important;
	opacity: 1 !important;
}
body .weird-search-input:focus,
body input[type="search"].weird-search-input:focus {
	border-color: var(--purple) !important;
	box-shadow: 0 0 0 3px rgba(124,58,237,0.18) !important;
	outline: none !important;
}

/* Clear button: subtle, matches input height */
body .weird-search-clear {
	flex: 0 0 auto !important;
	width: 32px !important; height: 32px !important;
	border-radius: 10px !important;
	background: var(--surface) !important;
	border: 1px solid var(--border) !important;
	color: var(--text-secondary) !important;
}
body .weird-search-clear:hover {
	color: var(--text-primary) !important;
	border-color: var(--purple) !important;
}

/* Results: vertical scroll only — never horizontal */
body .weird-search-results {
	overflow-x: hidden !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch !important;
}

/* Result row: minmax(0,1fr) is the fix that lets long names ellipsize
   instead of pushing the cat pill off-screen. */
body .weird-search-result {
	display: grid !important;
	grid-template-columns: 44px minmax(0, 1fr) auto !important;
	gap: 10px !important;
	align-items: center !important;
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}
body .weird-search-result-body {
	min-width: 0 !important;
	overflow: hidden !important;
}
body .weird-search-result-name,
body .weird-search-result-sub {
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

/* "View all results" CTA — clean pill, not heavy purple gradient
   pile-up that competed with the input below it. */
body .weird-search-all {
	margin-top: 4px !important;
	padding: 10px 14px !important;
	border-radius: 12px !important;
	font-size: 14px !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

/* Mobile: switch placeholder to a short, useful string via ::before
   would require markup change — instead, simply allow the input to
   never overflow horizontally, and reduce horizontal padding so the
   inset icon stays comfortable on narrow screens. */
@media (max-width: 480px) {
	body .weird-search-popout { padding: 10px !important; border-radius: 14px !important; }
	body .weird-search-form-icon { left: 12px !important; font-size: 13px !important; }
	body .weird-search-input,
	body input[type="search"].weird-search-input {
		padding: 10px 12px 10px 36px !important;
		font-size: 15px !important; /* keep ≥16px-equiv to avoid iOS zoom-on-focus */
	}
	body .weird-search-result {
		grid-template-columns: 40px minmax(0, 1fr) !important;
	}
	body .weird-search-result-cat {
		grid-column: 2 !important;
		justify-self: start !important;
		margin-top: 2px !important;
		max-width: 100% !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}
	body .weird-search-all .weird-search-all-q {
		max-width: calc(100vw - 200px) !important;
	}
}

/* iOS Safari: prevent input-focus zoom by ensuring 16px font-size
   minimum. (Above we set 15px on mobile — bump it.) */
@media (max-width: 480px) and (hover: none) {
	body .weird-search-input,
	body input[type="search"].weird-search-input { font-size: 16px !important; }
}

/* V6.9 patch 211 hotfix — .wrapper a (0,1,1) was beating .meme-btn (0,1,0)
 * so the Download <a> link text rendered in --purple instead of inheriting
 * the button white/text color. Bump specificity with compound selectors. */
a.meme-btn, a.meme-btn:visited, a.meme-btn:hover, a.meme-btn:focus,
.wrapper a.meme-btn, .wrapper a.meme-btn:visited, .wrapper a.meme-btn:hover, .wrapper a.meme-btn:focus {
	color: var(--text-primary) !important;
	text-decoration: none !important;
}
html.light-mode a.meme-btn,
html.light-mode .wrapper a.meme-btn { color: #1f1235 !important; }
a.meme-btn.meme-btn-primary,
.wrapper a.meme-btn.meme-btn-primary,
html.light-mode a.meme-btn.meme-btn-primary { color: #fff !important; }

/* ============================================================
   V6.9 patch 241 — Meme Studio belongs to the Memes section.
   ============================================================ */
.meme-studio-wrap {
	max-width: 1180px !important;
	padding: clamp(10px, 2vw, 20px) clamp(8px, 2vw, 18px) calc(104px + env(safe-area-inset-bottom, 0px)) !important;
	box-sizing: border-box !important;
}
.meme-studio-head {
	display: grid !important;
	gap: 8px !important;
	padding: 4px 2px 16px !important;
}
.meme-studio-topbar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	flex-wrap: wrap !important;
}
.meme-studio-back {
	margin: 0 !important;
	min-height: 38px !important;
	padding: 0 12px !important;
	border: 1px solid var(--border) !important;
	border-radius: 999px !important;
	background: var(--surface) !important;
	color: var(--text-secondary) !important;
	text-decoration: none !important;
}
.wrapper a.meme-studio-back,
.wrapper a.meme-studio-back:visited,
.wrapper a.meme-studio-back:hover,
.wrapper a.meme-studio-back:focus { color: var(--text-secondary) !important; }
.meme-studio-back:hover { border-color: var(--purple) !important; color: var(--text-primary) !important; }
.meme-studio-community { padding: 8px 13px !important; font-size: 12px !important; min-height: 38px !important; }
.meme-studio-head h1 {
	font-size: clamp(28px, 5vw, 46px) !important;
	line-height: 1.02 !important;
	letter-spacing: 0 !important;
	margin: 0 !important;
}
.meme-studio-sub { max-width: 680px !important; color: var(--text-secondary) !important; line-height: 1.5 !important; }
.meme-studio-empty { color: var(--text-secondary) !important; }
.meme-studio-grid {
	grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) !important;
	gap: clamp(12px, 2vw, 22px) !important;
	align-items: start !important;
}
.meme-tpl-rail {
	max-height: min(72vh, 760px) !important;
	border-radius: 12px !important;
	background: var(--surface) !important;
	border-color: var(--border) !important;
	box-shadow: 0 14px 34px -28px rgba(0,0,0,0.65) !important;
	scrollbar-color: var(--border-hover) transparent !important;
}
.meme-tpl-chip {
	min-width: 0 !important;
	min-height: 72px !important;
	border-radius: 10px !important;
	color: var(--text-primary) !important;
}
.meme-tpl-chip img { width: 58px !important; height: 58px !important; flex-basis: 58px !important; border-radius: 8px !important; }
.meme-tpl-chip-label { min-width: 0 !important; overflow-wrap: anywhere !important; letter-spacing: 0 !important; }
.meme-studio-main { min-width: 0 !important; }
.meme-preview {
	min-height: clamp(230px, 46vw, 540px) !important;
	max-height: min(68vh, 720px) !important;
	border-radius: 12px !important;
	background: var(--bg-raised) !important;
	border-color: var(--border) !important;
	box-shadow: 0 20px 44px -32px rgba(0,0,0,0.72) !important;
}
html.light-mode .meme-preview { background: #eef2f7 !important; border-color: var(--border) !important; }
.meme-preview img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: min(64vh, 700px) !important;
	object-fit: contain !important;
}
.meme-form {
	padding: 14px !important;
	border: 1px solid var(--border) !important;
	border-radius: 12px !important;
	background: var(--surface) !important;
	box-shadow: 0 14px 32px -30px rgba(0,0,0,0.72) !important;
}
.meme-field input { min-height: 46px !important; font-size: 16px !important; border-color: var(--border) !important; background: var(--bg-raised) !important; }
html.light-mode .meme-field input { background: #fff !important; border-color: var(--border) !important; color: var(--text-primary) !important; }
.meme-actions { display: grid !important; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(128px, 0.8fr)); gap: 9px !important; }
.meme-actions .meme-btn {
	justify-content: center !important;
	min-width: 0 !important;
	min-height: 46px !important;
	padding: 10px 12px !important;
	text-align: center !important;
	white-space: normal !important;
	line-height: 1.2 !important;
}
.meme-status { color: var(--text-secondary) !important; line-height: 1.35 !important; }
.meme-studio-footnote {
	display: flex !important;
	align-items: center !important;
	gap: 7px !important;
	color: var(--text-muted) !important;
	font-size: 12px !important;
	line-height: 1.35 !important;
}
.subpage-meme-source-row .subpage-meme-make {
	margin-left: auto !important;
	background: linear-gradient(135deg, #7c3aed, #16a34a) !important;
	border-color: transparent !important;
	color: #fff !important;
	box-shadow: 0 10px 24px -14px rgba(22,163,74,0.66) !important;
}
.wrapper .subpage-meme-source-row a.subpage-meme-make,
.wrapper .subpage-meme-source-row a.subpage-meme-make:visited,
.wrapper .subpage-meme-source-row a.subpage-meme-make:hover,
.wrapper .subpage-meme-source-row a.subpage-meme-make:focus { color: #fff !important; }
@media (max-width: 840px) {
	.meme-studio-grid { grid-template-columns: 1fr !important; }
	.meme-tpl-rail {
		position: relative !important;
		flex-direction: row !important;
		align-items: flex-start !important;
		max-height: none !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch !important;
		scroll-snap-type: x proximity !important;
	}
	.meme-tpl-chip { flex: 0 0 112px !important; scroll-snap-align: start !important; height: 132px !important; min-height: 132px !important; }
	.meme-tpl-chip img { width: 100% !important; height: 82px !important; flex: 0 0 82px !important; }
	.meme-tpl-chip-label { text-align: center !important; }
}
@media (max-width: 560px) {
	.meme-studio-wrap { padding-left: 6px !important; padding-right: 6px !important; }
	.meme-studio-topbar { align-items: stretch !important; }
	.meme-studio-back, .meme-studio-community { flex: 1 1 auto !important; justify-content: center !important; }
	.meme-preview { min-height: 250px !important; max-height: none !important; }
	.meme-preview img { max-height: 54vh !important; }
	.meme-form { padding: 12px !important; }
	.meme-actions { grid-template-columns: 1fr !important; }
	.subpage-meme-source-row .subpage-meme-make { margin-left: 0 !important; }
}

/* ============================================================
 * V6.9 patch 211 — Admin panel polish.
 * Refines header, tabs, stat tiles, sub-tabs, status counts,
 * pagination, and table density. Pure overrides, no markup change.
 * ============================================================ */
.admin-wrap { max-width: 1240px; padding: 24px 18px 56px; }

/* Header card — give it a real "control center" feel */
.admin-head-card {
    padding: 22px 24px 20px !important;
    background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(79,70,229,0.06) 60%, rgba(255,255,255,0.02)) !important;
    border: 1px solid rgba(124,58,237,0.22) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 28px rgba(15,10,40,0.35);
    margin-bottom: 22px !important;
}
.admin-head-row h1 { font-size: 26px; letter-spacing: 0.005em; }
.admin-head-row h1 i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f1235 !important;
    border-radius: 10px; font-size: 15px;
    margin-right: 10px; vertical-align: middle;
    box-shadow: 0 2px 8px rgba(251,191,36,0.35);
}
.admin-head-sub { font-size: 13px; opacity: 0.85; }
.admin-pill { padding: 3px 11px; font-size: 10.5px; }

/* Stat tiles — richer surface, bigger numbers, icon accent */
.admin-head-stats { gap: 12px; margin-top: 18px; }
.admin-stat-tile {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}
.admin-stat-tile::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(180deg, #7c3aed, #4f46e5);
    border-radius: 14px 0 0 14px; opacity: 0.7;
}
.admin-stat-tile-hi::before     { background: linear-gradient(180deg, #ef4444, #dc2626); }
.admin-stat-tile-warn::before   { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.admin-stat-tile-review::before { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.admin-stat-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,10,40,0.32); }
.admin-stat-val { font-size: 26px; margin-top: 6px; }
.admin-stat-label { font-size: 10.5px; letter-spacing: 0.12em; }
.admin-stat-label i {
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(124,58,237,0.18); border-radius: 6px;
    font-size: 10px; opacity: 1; color: #c4b5fd;
}
.admin-stat-tile-hi   .admin-stat-label i { background: rgba(239,68,68,0.18); color: #fdba74; }
.admin-stat-tile-warn .admin-stat-label i { background: rgba(251,191,36,0.18); color: #fbbf24; }
.admin-stat-tile-review .admin-stat-label i { background: rgba(167,139,250,0.18); color: #c4b5fd; }

/* Tabs — slimmer, with primary/secondary visual layer */
.admin-tabs { gap: 4px; margin: 16px 0 14px; padding: 6px; background: rgba(255,255,255,0.03); border-radius: 14px; border: 1px solid rgba(255,255,255,0.05); }
.admin-tab {
    padding: 8px 12px; font-size: 12.5px; gap: 5px;
    background: transparent; border-color: transparent;
    border-radius: 10px;
}
.admin-tab:hover { background: rgba(124,58,237,0.10); border-color: transparent; }
.admin-tab.is-active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}
.admin-tab-count { padding: 1px 7px; background: rgba(0,0,0,0.28); }
.admin-tab.is-active .admin-tab-count { background: rgba(255,255,255,0.25); }
.admin-tab-count-hot { background: rgba(239,68,68,0.85) !important; color: #fff !important; }

/* Preview-theme segmented switch (admin-only, this-browser preview) */
.admin-theme-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; margin-right: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
.admin-theme-switch-lab { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px 0 7px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,0.5); white-space: nowrap; }
.admin-theme-opt { padding: 6px 12px; font-size: 12.5px; font-weight: 600; border-radius: 9px; color: rgba(255,255,255,0.72); background: transparent; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; }
.admin-theme-opt:hover { background: rgba(124,58,237,0.12); color: #fff; }
.admin-theme-opt.is-active { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,0.35); }

/* Sub-tab chips (e.g. All users / Admin users) */
.admin-subtabs, .admin-section-tabs {
    display: flex; gap: 6px; padding: 4px; margin: 0 0 18px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}
.admin-subtabs a, .admin-section-tabs a {
    padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
    color: rgba(255,255,255,0.7); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.admin-subtabs a:hover, .admin-section-tabs a:hover { background: rgba(124,58,237,0.10); color: #fff; }
.admin-subtabs a.is-active, .admin-section-tabs a.is-active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
    box-shadow: 0 3px 10px rgba(124,58,237,0.3);
}

/* Status counters in review queue (Pending/Approved/Rejected/Generated) */
.admin-review-status, .admin-review-totals {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.admin-review-status > *, .admin-review-totals > * {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    position: relative; overflow: hidden;
}

/* Status sub-tabs in review (Pending / Approved / Rejected) */
.admin-review-statusrow {
    display: flex; gap: 4px; padding: 4px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; margin: 16px 0;
}
.admin-review-statustab { padding: 8px 14px; font-size: 12.5px; border-radius: 8px; border: none; }
.admin-review-statustab.is-active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(124,58,237,0.3);
}

/* Filter chips (genres/sources etc) — tighter spacing */
.admin-review-chip { padding: 5px 11px; font-size: 12.5px; border-radius: 999px; }

/* Pagination — pill buttons */
.admin-page-nav, .admin-pagination, .admin-pager {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 18px 0; margin-top: 8px; font-size: 13px;
}
.admin-page-nav a, .admin-pagination a, .admin-pager a {
    padding: 8px 14px; border-radius: 10px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600;
    transition: background 0.15s, transform 0.12s;
}
.admin-page-nav a:hover, .admin-pagination a:hover, .admin-pager a:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff; border-color: transparent;
    transform: translateY(-1px);
}
.admin-page-nav span, .admin-pagination span, .admin-pager span {
    color: rgba(255,255,255,0.5); font-size: 12px;
}

/* User table — more breathing room, softer zebra, hover lift on row */
.admin-table tbody td { padding: 12px 12px; }
.admin-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.admin-table tbody tr:hover td { background: rgba(124,58,237,0.07); }

/* Review item card hover affordance */
.admin-review-item, .admin-review-row {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.025);
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
    margin-bottom: 10px;
}
.admin-review-item:hover, .admin-review-row:hover {
    border-color: rgba(124,58,237,0.32);
    background: rgba(124,58,237,0.04);
    transform: translateY(-1px);
}

/* Section card unification */
.acct-card.admin-section, .admin-section.acct-card {
    padding: 22px 22px 18px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.02) !important;
}

/* Light mode parity */
html.light-mode .admin-head-card {
    background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(79,70,229,0.04) 60%, rgba(255,255,255,0.4)) !important;
    border-color: rgba(124,58,237,0.18) !important;
    box-shadow: 0 6px 22px rgba(124,58,237,0.10);
}
html.light-mode .admin-tabs,
html.light-mode .admin-subtabs,
html.light-mode .admin-section-tabs,
html.light-mode .admin-review-statusrow { background: rgba(0,0,0,0.025); border-color: rgba(0,0,0,0.07); }
html.light-mode .admin-tab,
html.light-mode .admin-subtabs a,
html.light-mode .admin-section-tabs a,
html.light-mode .admin-review-statustab { color: #4b5563; }
html.light-mode .admin-tab:hover,
html.light-mode .admin-subtabs a:hover,
html.light-mode .admin-section-tabs a:hover,
html.light-mode .admin-review-statustab:hover { background: rgba(124,58,237,0.08); color: #1f1235; }
html.light-mode .admin-stat-tile { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); }
html.light-mode .admin-stat-val { color: #1f1235; }
html.light-mode .admin-stat-label { color: #6b7280; }
html.light-mode .admin-page-nav a,
html.light-mode .admin-pagination a,
html.light-mode .admin-pager a { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: #1f1235; }
html.light-mode .admin-page-nav a:hover,
html.light-mode .admin-pagination a:hover,
html.light-mode .admin-pager a:hover { color: #fff; }
html.light-mode .admin-table tbody tr:nth-child(even) td { background: rgba(0,0,0,0.015); }
html.light-mode .admin-table tbody tr:hover td { background: rgba(124,58,237,0.05); }
html.light-mode .admin-review-item,
html.light-mode .admin-review-row { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); }
html.light-mode .acct-card.admin-section { background: #fff !important; border-color: rgba(0,0,0,0.06) !important; }

/* V6.9 patch 212 — memes source filter row on memes.php. */
.subpage-meme-source-row {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	padding: 12px 14px; margin: 0;
	border-top: 1px solid rgba(255,255,255,0.06);
}
html.light-mode .subpage-meme-source-row { border-top-color: rgba(0,0,0,0.06); }
@media (max-width: 540px) {
	.subpage-meme-source-row { padding: 10px; }
	.subpage-meme-make { width: 100%; justify-content: center; margin-left: 0 !important; margin-top: 4px; }
}

/* V6.9 patch 212 hotfix — .subpage-meme-source-row chips need higher specificity
 * to defeat .wrapper a color and the gradient deck background. */
.subpage-meme-source-row a.subpage-new-toggle,
.wrapper .subpage-meme-source-row a.subpage-new-toggle {
	background: rgba(0,0,0,0.35) !important;
	background-image: none !important;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,0.18) !important;
	text-decoration: none !important;
	padding: 6px 12px !important;
	border-radius: 999px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
}
.subpage-meme-source-row a.subpage-new-toggle.is-active,
.wrapper .subpage-meme-source-row a.subpage-new-toggle.is-active {
	background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
	border-color: transparent !important;
	color: #fff !important;
}
.subpage-meme-source-row a.subpage-meme-make,
.wrapper .subpage-meme-source-row a.subpage-meme-make {
	background: linear-gradient(135deg, #7c3aed, #22c55e) !important;
	border-color: transparent !important;
	color: #fff !important;
}
html.light-mode .subpage-meme-source-row a.subpage-new-toggle,
html.light-mode .wrapper .subpage-meme-source-row a.subpage-new-toggle {
	background: rgba(255,255,255,0.85) !important;
	color: #1f1235 !important;
	border-color: rgba(0,0,0,0.1) !important;
}

/* ============================================================
   Patch 214 (trimmed) — Fraunces display utility only.
   Lime accent tokens, .weird-cta, .weird-breath, and fingerprint
   styles were removed after design feedback on 2026-05-28.
   Fraunces font itself stays loaded in header.php / header2.php
   for future use; this utility class lets us opt-in to it.
   ============================================================ */
:root  { --display-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif; }
.weird-display {
	font-family: var(--display-serif) !important;
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.05;
}

/* Patch 215.1 — Drift link inside the inline quiz card foot.
   Patch 216 — purple text on a purple-tinted chip background was unreadable.
   Switch to white text (icon stays purple-light for the accent), and on
   hover use a solid purple gradient with white text. */
a.discover-quiz-drift-link, .discover-quiz-foot a.discover-quiz-drift-link {
	display: inline-flex; align-items: center; gap: 6px;
	color: #fff !important;
	font-size: 13px; font-weight: 700;
	text-decoration: none !important;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(124,58,237,0.22);
	border: 1px solid rgba(167,139,250,0.45);
	transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
a.discover-quiz-drift-link i, .discover-quiz-foot a.discover-quiz-drift-link i { color: #c4b5fd; }
a.discover-quiz-drift-link:hover, a.discover-quiz-drift-link:focus-visible,
.discover-quiz-foot a.discover-quiz-drift-link:hover, .discover-quiz-foot a.discover-quiz-drift-link:focus-visible {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	border-color: var(--purple);
	color: #fff !important;
}
.discover-quiz-drift-link:hover i,
.discover-quiz-drift-link:focus-visible i { color: #fff; }
html.light-mode a.discover-quiz-drift-link, html.light-mode .discover-quiz-foot a.discover-quiz-drift-link {
	color: #1f1235 !important;
	background: rgba(124,58,237,0.10);
	border-color: rgba(124,58,237,0.30);
}
html.light-mode a.discover-quiz-drift-link i, html.light-mode .discover-quiz-foot a.discover-quiz-drift-link i { color: var(--purple); }
html.light-mode a.discover-quiz-drift-link:hover, html.light-mode a.discover-quiz-drift-link:focus-visible,
html.light-mode .discover-quiz-foot a.discover-quiz-drift-link:hover, html.light-mode .discover-quiz-foot a.discover-quiz-drift-link:focus-visible {
	color: #fff !important;
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
}
html.light-mode .discover-quiz-drift-link:hover i,
html.light-mode .discover-quiz-drift-link:focus-visible i { color: #fff; }

/* Patch 216 — Quiet Brutalist Wave 1
   .btn-outline = opt-in secondary action. Refuses to be friendly:
   pure stroke on transparent, no gradient, no glow.
   Use ALONGSIDE the existing .btn-glow / .profile-action-secondary
   for surfaces where we want a sharper read. */
.btn-outline,
a.btn-outline,
button.btn-outline {
	display: inline-flex; align-items: center; gap: 8px;
	background: transparent !important;
	color: var(--text-primary) !important;
	border: 1.5px solid var(--text-primary) !important;
	padding: 9px 18px !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn-outline:hover, a.btn-outline:hover, button.btn-outline:hover {
	background: var(--text-primary) !important;
	color: var(--bg) !important;
}
html.light-mode .btn-outline { color: #1a1740 !important; border-color: #1a1740 !important; }
html.light-mode .btn-outline:hover { background: #1a1740 !important; color: #fff !important; }

/* Patch 218 — zoomable image crop polish.
   The shared .meme-zoom-trigger now wraps most imageable cards, but meme and
   screenshot-style images are not poster art: cropping them to cover can land
   on a random torso/center slice. Keep normal category photos/posters cropped;
   show the full meme image wherever the zoom trigger appears. */
.discover-card-media .meme-zoom-trigger img,
.discover-card-social-thumb .meme-zoom-trigger img {
	object-position: center center;
	transform-origin: center center;
}
.discover-card-item[data-cat="memes"] .discover-card-media {
	aspect-ratio: 16 / 10;
	max-height: 320px;
	background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(8,6,18,0.74));
}
.discover-card-item[data-cat="memes"] .discover-card-media img,
.discover-card-item[data-cat="memes"] .discover-card-media .meme-zoom-trigger img,
.discover-card-social[data-cat="memes"] .discover-card-social-thumb .meme-zoom-trigger img,
.discover-card-social-thumb .meme-zoom-trigger-social img {
	object-fit: contain !important;
	object-position: center center !important;
	background: rgba(8,6,18,0.72) !important;
}
.discover-card-item[data-cat="memes"] .discover-card-media .meme-zoom-trigger:hover img,
.discover-card-item[data-cat="memes"] .discover-card-media .meme-zoom-trigger:focus-visible img,
.discover-card-social[data-cat="memes"] .discover-card-social-thumb .meme-zoom-trigger:hover img,
.discover-card-social[data-cat="memes"] .discover-card-social-thumb .meme-zoom-trigger:focus-visible img {
	transform: none;
}
html.light-mode .discover-card-item[data-cat="memes"] .discover-card-media {
	background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(245,243,255,0.88));
}
html.light-mode .discover-card-item[data-cat="memes"] .discover-card-media img,
html.light-mode .discover-card-item[data-cat="memes"] .discover-card-media .meme-zoom-trigger img,
html.light-mode .discover-card-social[data-cat="memes"] .discover-card-social-thumb .meme-zoom-trigger img,
html.light-mode .discover-card-social-thumb .meme-zoom-trigger-social img {
	background: rgba(245,243,255,0.92) !important;
}



/* Patch 216 — Live activity ticker (stickiness mechanic) */
.weird-activity-pulse {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 500;
}
.weird-activity-pulse .dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 0 rgba(52,211,153,0.55);
	animation: weird-pulse 2.2s ease-out infinite;
}
@keyframes weird-pulse {
	0%   { box-shadow: 0 0 0 0   rgba(52,211,153,0.55); }
	70%  { box-shadow: 0 0 0 8px rgba(52,211,153,0);    }
	100% { box-shadow: 0 0 0 0   rgba(52,211,153,0);    }
}
.weird-activity-pulse strong { color: var(--text-primary); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .weird-activity-pulse .dot { animation: none; } }



/* Patch 216 Wave 2 #6 — magazine-cover match% headline strip.
   Renders BETWEEN the hero and the compare picker. Big italic numeral
   left, verdict pill right. Asymmetric on purpose. */
.profile-pct-headline {
	display: flex; align-items: center; gap: 24px;
	padding: 14px 22px 18px;
	margin: 12px 0 6px;
}
.profile-pct-headline-num {
	font-family: var(--display-serif);
	font-style: italic; font-weight: 400;
	font-size: clamp(96px, 16vw, 180px);
	line-height: 0.88;
	letter-spacing: -0.04em;
	color: var(--text-primary);
	flex: 0 0 auto;
	user-select: none;
}
.profile-pct-headline-pct {
	font-size: 0.45em;
	color: var(--text-muted);
	font-style: italic;
	margin-left: 2px;
	vertical-align: baseline;
}
.profile-pct-headline-meta {
	flex: 1 1 auto; min-width: 0;
	display: flex; flex-direction: column; gap: 8px;
}
.profile-pct-headline-verdict {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	color: var(--text-primary);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	align-self: flex-start;
}
.profile-pct-headline-sub {
	font-size: 14px;
	color: var(--text-secondary);
}
.profile-pct-headline-high .profile-pct-headline-num     { color: #fff; }
.profile-pct-headline-high .profile-pct-headline-verdict { color: var(--green); border-color: rgba(52,211,153,0.45); background: rgba(52,211,153,0.10); }
.profile-pct-headline-mid  .profile-pct-headline-verdict { color: var(--purple-light); border-color: var(--purple-border); background: var(--purple-glow); }
.profile-pct-headline-low  .profile-pct-headline-verdict { color: var(--coral); border-color: rgba(249,115,22,0.40); background: rgba(249,115,22,0.10); }
html.light-mode .profile-pct-headline-num { color: #1a1740; }
@media (max-width: 520px) {
	.profile-pct-headline { gap: 14px; padding: 8px 16px 12px; }
	.profile-pct-headline-num { font-size: 84px; }
}

/* Patch 217 — Unified verdict pill (Taste twin / Vibe match / Wild card / Taste opposite / Too early).
   Single canonical pill class used by profile.php, connect.php, and any
	future surface. Color-coded by suffix class; orbit/frenemy suffixes are legacy hooks. */
.verdict-pill {
	display: inline-flex; align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	border: 1px solid transparent;
	white-space: nowrap;
	line-height: 1.6;
}
.verdict-pill-twin     { background: rgba(52,211,153,0.14); color: var(--green);        border-color: rgba(52,211,153,0.4); }
.verdict-pill-orbit    { background: var(--purple-glow);    color: var(--purple-light); border-color: var(--purple-border); }
.verdict-pill-frenemy  { background: rgba(249,115,22,0.15); color: #fb923c;              border-color: rgba(249,115,22,0.4); }
.verdict-pill-opposite { background: rgba(249,115,22,0.15);  color: var(--coral);         border-color: rgba(249,115,22,0.4); }
.verdict-pill-tooearly { background: var(--bg-raised);      color: var(--text-muted);    border-color: var(--border); }

/* Hide the prior .profile-hero-pct-sub em verdict text on profile chip — verdict
   now ONLY lives in the magazine headline below, not the chip. */
.profile-hero-pct-sub em { display: none; }

/* Magazine headline verdict pill — re-apply the .verdict-pill via class on the
   .profile-pct-headline-verdict element. The legacy hardcoded color rules below
   are kept as a fallback for older renders but the inline class wins. */
.profile-pct-headline .verdict-pill {
	font-size: 13px;
	letter-spacing: 0.18em;
	padding: 6px 14px;
}

/* ============================================================
   Patch 218 — Admin panel refresh ("Quiet Brutalist" applied
   to the admin chrome). Bigger Fraunces numerals, sharper tabs,
   live pulse dot. Scoped to .admin-wrap so it can't leak.
   ============================================================ */
.admin-wrap .admin-head-card {
	padding: 24px 28px;
	border-radius: 18px;
	background: linear-gradient(160deg, var(--bg-raised), var(--bg));
	border: 1px solid var(--border);
}
.admin-wrap .admin-head-row h1 {
	font-family: var(--display-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	font-size: clamp(32px, 4vw, 44px);
	margin: 0;
}
.admin-wrap .admin-head-row h1 i {
	font-size: 0.7em; color: var(--text-muted); margin-right: 10px;
}
.admin-wrap .admin-head-sub {
	font-size: 13px; color: var(--text-secondary); margin-top: 6px;
	text-transform: uppercase; letter-spacing: 0.16em;
}
.admin-wrap .admin-pill {
	display: inline-block; margin-left: 8px;
	padding: 2px 10px; border-radius: 999px;
	background: var(--bg-raised); border: 1px solid var(--border);
	font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--text-primary);
}
.admin-wrap .admin-pill-super { background: rgba(124,58,237,0.18); border-color: var(--purple); color: var(--purple-light); }

/* Stat tiles: bigger Fraunces numerals, restrained chrome */
.admin-wrap .admin-head-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-top: 20px;
}
.admin-wrap .admin-stat-tile {
	display: block;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--text-primary) !important;
	text-decoration: none !important;
	transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 120ms var(--ease);
}
.admin-wrap a.admin-stat-tile:hover {
	border-color: var(--purple);
	background: var(--bg-raised);
	transform: translateY(-1px);
}
.admin-wrap .admin-stat-label {
	font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.16em;
	color: var(--text-secondary);
	margin-bottom: 6px;
	display: flex; align-items: center; gap: 6px;
}
.admin-wrap .admin-stat-val {
	font-family: var(--display-serif);
	font-style: italic; font-weight: 400;
	letter-spacing: -0.02em;
	font-size: clamp(40px, 4vw, 52px);
	line-height: 0.95;
	color: var(--text-primary);
}
.admin-wrap .admin-stat-tile-warn   { border-color: rgba(249,115,22,0.5); }
.admin-wrap .admin-stat-tile-warn   .admin-stat-val { color: #fb923c; }
.admin-wrap .admin-stat-tile-hi     { border-color: rgba(249,115,22,0.55); background: rgba(249,115,22,0.06); }
.admin-wrap .admin-stat-tile-hi     .admin-stat-val { color: var(--coral); }
.admin-wrap .admin-stat-tile-review { border-color: rgba(52,211,153,0.45); }
.admin-wrap .admin-stat-tile-review .admin-stat-val { color: var(--green); }

/* Live pulse dot on the Pulse tile */
.admin-wrap .admin-stat-tile-pulse { border-color: var(--purple-border); }
.admin-wrap .admin-pulse-dot {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 0 rgba(52,211,153,0.55);
	animation: admin-pulse-kf 2.2s ease-out infinite;
}
@keyframes admin-pulse-kf {
	0%   { box-shadow: 0 0 0 0   rgba(52,211,153,0.55); }
	70%  { box-shadow: 0 0 0 8px rgba(52,211,153,0);    }
	100% { box-shadow: 0 0 0 0   rgba(52,211,153,0);    }
}
@media (prefers-reduced-motion: reduce) { .admin-wrap .admin-pulse-dot { animation: none; } }

/* Tabs: tighter, brutalist underline rather than rounded chips */
.admin-wrap .admin-tabs {
	display: flex; flex-wrap: wrap; gap: 2px;
	margin: 24px 0 18px;
	padding-bottom: 0;
	border-bottom: 1px solid var(--border);
}
.admin-wrap .admin-tab {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 16px;
	color: var(--text-muted) !important;
	font-size: 13px; font-weight: 600;
	text-decoration: none !important;
	text-transform: uppercase; letter-spacing: 0.12em;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.admin-wrap .admin-tab:hover { color: var(--text-secondary) !important; }
.admin-wrap .admin-tab.is-active {
	color: var(--text-primary) !important;
	border-bottom-color: var(--purple);
}
.admin-wrap .admin-tab-count {
	display: inline-block; min-width: 22px; padding: 1px 8px;
	border-radius: 999px;
	background: var(--bg-raised); border: 1px solid var(--border);
	font-size: 10px; font-weight: 700; letter-spacing: 0;
	color: var(--text-secondary);
}
.admin-wrap .admin-tab.is-active .admin-tab-count {
	background: var(--purple); color: #fff; border-color: var(--purple);
}
.admin-wrap .admin-tab-count-hot {
	background: rgba(249,115,22,0.18) !important;
	border-color: rgba(249,115,22,0.45) !important;
	color: var(--coral) !important;
}

/* Flash messages: brutalist */
.admin-wrap .admin-flash {
	margin: 10px 0;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	border: 1px solid var(--border);
}
.admin-wrap .admin-flash-ok  { background: rgba(52,211,153,0.10); border-color: rgba(52,211,153,0.4); color: var(--green); }
.admin-wrap .admin-flash-err { background: rgba(249,115,22,0.10); border-color: rgba(249,115,22,0.4); color: var(--coral); }

@media (max-width: 640px) {
	.admin-wrap .admin-head-stats { grid-template-columns: repeat(2, 1fr); }
	.admin-wrap .admin-stat-val { font-size: 36px; }
	.admin-wrap .admin-tab { padding: 8px 12px; font-size: 12px; }
}

/* ============================================================
   Patch 218b — Books card crop + natural-height readability
   ============================================================
   Books are cover art, not square thumbnails. Let covers fill the whole
   portrait media frame, let each card keep its natural height, and reveal
   full title/description on hover/focus instead of forcing every row to
   stretch around the tallest card.
   ============================================================ */
.discover-card-item[data-cat="books"] {
	align-self: flex-start !important;
	height: auto !important;
}
.discover-card-item[data-cat="books"] .discover-card-media {
	aspect-ratio: 2 / 3 !important;
	max-height: none !important;
	min-height: 0 !important;
	background: linear-gradient(135deg, #a16207, #854d0e);
}
.discover-card-item[data-cat="books"] .discover-card-media .meme-zoom-trigger {
	height: 100% !important;
}
.discover-card-item[data-cat="books"] .discover-card-media img,
.discover-card-item[data-cat="books"] .discover-card-media .meme-zoom-trigger img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
	background: transparent !important;
}
.discover-card-item[data-cat="books"]:hover,
.discover-card-item[data-cat="books"]:focus-within,
.discover-card-item[data-cat="books"].is-expanded {
	z-index: 10;
}
.discover-card-item[data-cat="books"]:hover .discover-card-title,
.discover-card-item[data-cat="books"]:focus-within .discover-card-title,
.discover-card-item[data-cat="books"].is-expanded .discover-card-title,
.discover-card-item[data-cat="books"]:hover .discover-card-desc,
.discover-card-item[data-cat="books"]:focus-within .discover-card-desc,
.discover-card-item[data-cat="books"].is-expanded .discover-card-desc {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
}
html.light-mode .discover-card-item[data-cat="books"] .discover-card-media img,
html.light-mode .discover-card-item[data-cat="books"] .discover-card-media .meme-zoom-trigger img {
	background: transparent !important;
}

/* V6.9 user-feedback polish: keep long avatar/mood pickers inside their
   sections, and show only the avatar mood image outside profile pages. */
.acct-card .acct-avatars {
	max-height: min(52vh, 460px) !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: rgba(168, 140, 255, 0.55) rgba(255, 255, 255, 0.08);
}
.acct-card .acct-mood-grid {
	max-height: min(44vh, 330px) !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: rgba(168, 140, 255, 0.55) rgba(255, 255, 255, 0.08);
}
.acct-card .acct-avatars::-webkit-scrollbar,
.acct-card .acct-mood-grid::-webkit-scrollbar {
	width: 8px;
}
.acct-card .acct-avatars::-webkit-scrollbar-track,
.acct-card .acct-mood-grid::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
}
.acct-card .acct-avatars::-webkit-scrollbar-thumb,
.acct-card .acct-mood-grid::-webkit-scrollbar-thumb {
	background: rgba(168, 140, 255, 0.55);
	border-radius: 999px;
}
.acct-password-card .discover-section-sub {
	margin-bottom: 14px;
}
.acct-password-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.acct-password-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.acct-password-actions {
	justify-content: flex-start;
	margin-top: 0;
}
.connect-tile-taste-tag,
.discover-taste-tag,
.lb-taste-tag,
.tp-match-tag {
	display: none !important;
}
@media (max-width: 720px) {
	.acct-password-row {
		grid-template-columns: 1fr;
	}
}

/* Connect ↔ Circles segmented mode toggle. Restyled to match the
   premium segmented control used on pvp.php (.pvp-mode-switch). One
   shared component class — .weird-modeswitch / .weird-modetab — keeps
   the look consistent across Play, Connect, and any future surface. */
.connect-modetabs,
.weird-modeswitch {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 14px 0 18px;
	padding: 8px;
	border: 1px solid rgba(124,58,237,.18);
	border-radius: 20px;
	background:
		linear-gradient(135deg, rgba(124,58,237,.10), rgba(34,197,94,.05) 55%, rgba(56,189,248,.06)),
		var(--surface, rgba(255,255,255,.03));
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 10px 30px -22px rgba(124,58,237,.55);
}
.connect-modetab,
.weird-modetab {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	text-decoration: none !important;
	color: #e9e6f5 !important;
	font-weight: 700;
	line-height: 1.2;
	border: 1px solid transparent;
	transition: background .18s ease, color .18s ease, transform .12s ease, border-color .18s ease, box-shadow .18s ease;
}
.connect-modetab:hover,
.weird-modetab:hover {
	background: rgba(124,58,237,.10);
	color: #ffffff !important;
	transform: translateY(-1px);
}
.connect-modetab > span:first-of-type,
.weird-modetab > span:first-of-type {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}
.connect-modetab > span:first-of-type > i,
.weird-modetab > span:first-of-type > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: 11px;
	background: rgba(124,58,237,.28);
	color: #ffffff;
	font-size: 15px;
	flex: 0 0 auto;
	transition: background .18s ease, color .18s ease;
}
.connect-modetab > span:first-of-type > span,
.weird-modetab > span:first-of-type > span {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	flex: 1 1 auto;
	font-size: 14.5px;
	font-weight: 800;
	letter-spacing: .01em;
}
.connect-modetab small,
.weird-modetab small {
	display: block;
	font-weight: 600;
	font-size: 11.5px;
	color: #cbc6df;
	opacity: .95;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.connect-modetab-count,
.weird-modetab-count {
	flex: 0 0 auto;
	min-width: 34px;
	text-align: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.10);
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
}
.connect-modetab.is-active,
.weird-modetab.is-active {
	color: #fff !important;
	background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 45%, #22c55e 100%);
	border-color: transparent;
	box-shadow: 0 14px 32px -16px rgba(124,58,237,.85), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.connect-modetab.is-active > span:first-of-type > i,
.weird-modetab.is-active > span:first-of-type > i {
	background: rgba(255,255,255,.22);
	color: #fff;
}
.connect-modetab.is-active small,
.weird-modetab.is-active small { color: rgba(255,255,255,.94); opacity: 1; }
.connect-modetab.is-active .connect-modetab-count,
.weird-modetab.is-active .weird-modetab-count { background: rgba(255,255,255,.22); color:#fff; }
.connect-modetab:focus-visible,
.weird-modetab:focus-visible {
	outline: 2px solid var(--purple, #7c3aed);
	outline-offset: 2px;
}

html.light-mode .connect-modetabs,
html.light-mode .weird-modeswitch {
	background:
		linear-gradient(135deg, rgba(124,58,237,.06), rgba(34,197,94,.04) 55%, rgba(56,189,248,.04)),
		#ffffff;
	border-color: rgba(124,58,237,.18);
	box-shadow: 0 8px 24px -18px rgba(124,58,237,.35);
}
html.light-mode .connect-modetab,
html.light-mode .weird-modetab { color:#1f1235 !important; }
html.light-mode .connect-modetab:hover,
html.light-mode .weird-modetab:hover {
	background: rgba(124,58,237,.07);
	color: #100828 !important;
}
html.light-mode .connect-modetab small,
html.light-mode .weird-modetab small { color:#4b5563; opacity: 1; }
html.light-mode .connect-modetab > span:first-of-type > i,
html.light-mode .weird-modetab > span:first-of-type > i {
	background: rgba(124,58,237,.14);
	color: #1f1235;
}
html.light-mode .connect-modetab-count,
html.light-mode .weird-modetab-count { background: rgba(15,12,28,.08); color:#1f1235; }
html.light-mode .connect-modetab.is-active,
html.light-mode .weird-modetab.is-active { color:#fff !important; }
html.light-mode .connect-modetab.is-active small,
html.light-mode .weird-modetab.is-active small { color: rgba(255,255,255,.94); }
html.light-mode .connect-modetab.is-active > span:first-of-type > i,
html.light-mode .weird-modetab.is-active > span:first-of-type > i { background: rgba(255,255,255,.30); color:#fff; }
html.light-mode .connect-modetab.is-active .connect-modetab-count,
html.light-mode .weird-modetab.is-active .weird-modetab-count { background: rgba(255,255,255,.28); color:#fff; }

/* ============================================================
   Contrast pass (patch — readability fixes for purple/blue text
   on purple/blue surfaces). See /memories/design-rules.md.
   ============================================================ */

/* profile.php > Circles section: pills and helper text. */
.profile-circles-row {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: .8rem;
}
.profile-circle-pill {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5em 1em;
	border-radius: 999px;
	background: rgba(124,58,237,0.10);
	border: 1px solid rgba(124,58,237,0.25);
	color: var(--text-primary, #fff) !important;
	text-decoration: none !important;
	font-size: .92em;
	font-weight: 700;
	transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.profile-circle-pill:hover {
	background: rgba(124,58,237,0.18);
	border-color: rgba(124,58,237,0.40);
	color: var(--text-primary, #fff) !important;
	transform: translateY(-1px);
}
.profile-circle-pill-ic { color: #c4b5fd !important; }
.profile-circle-pill:hover .profile-circle-pill-ic { color: #fff !important; }
.profile-circle-pill-name { color: var(--text-primary, #fff) !important; }
.profile-circle-pill-count { color: #cbc6df; opacity: .85; font-size: .85em; }
.profile-circles-manage,
.profile-circles .discover-section-sub a {
	color: #c4b5fd !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	font-weight: 700;
}
.profile-circles-manage:hover,
.profile-circles .discover-section-sub a:hover { color: #fff !important; }
.profile-circles-note {
	margin: .8rem 0 0;
	font-size: .85em;
	color: #cbc6df;
	line-height: 1.5;
}

html.light-mode .profile-circle-pill {
	background: rgba(124,58,237,0.06);
	border-color: rgba(124,58,237,0.22);
	color: #1f1235 !important;
}
html.light-mode .profile-circle-pill:hover {
	background: rgba(124,58,237,0.12);
	border-color: rgba(124,58,237,0.36);
	color: #100828 !important;
}
html.light-mode .profile-circle-pill-ic { color: #6d28d9 !important; }
html.light-mode .profile-circle-pill:hover .profile-circle-pill-ic { color: #4c1d95 !important; }
html.light-mode .profile-circle-pill-name { color: #1f1235 !important; }
html.light-mode .profile-circle-pill-count { color: #4b5563; }
html.light-mode .profile-circles-manage,
html.light-mode .profile-circles .discover-section-sub a {
	color: #6d28d9 !important;
}
html.light-mode .profile-circles-manage:hover,
html.light-mode .profile-circles .discover-section-sub a:hover { color: #4c1d95 !important; }
html.light-mode .profile-circles-note { color: #4b5563; }

/* ============================================================
   Sitewide contrast fallbacks. Any chip / pill / link that uses
   a purple-tinted background should NOT inherit lavender body
   text (--text-secondary #b0a8c4). Force a high-contrast color.
   These selectors are deliberately narrow so they don't blow up
   intentionally muted UI elsewhere.
   ============================================================ */
.discover-section-sub a:not([class*="btn"]):not([class*="action"]) {
	color: #c4b5fd !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.discover-section-sub a:not([class*="btn"]):not([class*="action"]):hover { color: #fff !important; }
html.light-mode .discover-section-sub a:not([class*="btn"]):not([class*="action"]) { color: #6d28d9 !important; }
html.light-mode .discover-section-sub a:not([class*="btn"]):not([class*="action"]):hover { color: #4c1d95 !important; }

/* messages.php circles empty-state link — light mode needs a darker
   tone since the brand lavender (#c4b5fd) used for dark mode is
   unreadable on the white card surface. */
html.light-mode .msg-side-list a[href="circles.php"] { color: #6d28d9 !important; }
html.light-mode .msg-side-list a[href="circles.php"]:hover { color: #4c1d95 !important; }

/* Open-lobby stream card (discover.php dh_renderLobbyCard).
   Moved here from an inline <style> that was being emitted inside the
   .discover-stream grid — the grid forces display on direct children, so a
   <style> child rendered its CSS source as visible text in the feed. */
.discover-card-lobby { position: relative; align-items:flex-start !important; text-align:left !important; background:
	radial-gradient(circle at 0% 0%, rgba(34,197,94,0.14), transparent 50%),
	radial-gradient(circle at 100% 100%, rgba(124,58,237,0.18), transparent 50%),
	var(--surface) !important; border-color: rgba(34,197,94,0.30) !important; }
.discover-card-lobby-badge { position: absolute; top: 12px; right: 12px;
	display: inline-flex; align-items: center; gap: .35rem;
	font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
	background: rgba(34,197,94,0.18); color: #86efac; }
html.light-mode .discover-card-lobby-badge { background: rgba(22,163,74,0.16); color: #15803d; }
.discover-card-lobby .discover-card-cta-emoji,
.discover-card-lobby .discover-card-title,
.discover-card-lobby .discover-card-desc,
.discover-card-lobby .btn-glow { align-self:flex-start !important; text-align:left !important; }
.discover-card-lobby .discover-card-desc { max-width: 760px; }

/* ============================================================
   Mixed Discover card polish: compact natural-height cards

   In the Signal Board / mixed stream, cards with little content (music,
   local blanks, social recommendations) were stretching to match taller
   image cards. The footer stayed pinned at the bottom, leaving a large
   empty void between "Why this?" and the action row. Let mixed cards keep
   their natural height, and tighten the social-item/thumb scale for app,
   mobile, and wide desktop rows.
   ============================================================ */
.discover-wrap-signal-board #discover-stream.discover-stream,
.discover-stream[data-mixed="1"] {
	align-items: start !important;
}
.discover-wrap-signal-board #discover-stream > .discover-card,
.discover-stream[data-mixed="1"] > .discover-card {
	align-self: start !important;
	min-height: 0 !important;
}
.discover-wrap-signal-board #discover-stream .discover-card-body,
.discover-stream[data-mixed="1"] .discover-card-body {
	flex: 0 1 auto !important;
}
.discover-wrap-signal-board #discover-stream .discover-card-foot,
.discover-stream[data-mixed="1"] .discover-card-foot {
	margin-top: 10px !important;
}
.discover-wrap-signal-board #discover-stream .discover-why,
.discover-stream[data-mixed="1"] .discover-why {
	margin: 4px 0 0 !important;
}
.discover-wrap-signal-board #discover-stream .discover-why-panel,
.discover-stream[data-mixed="1"] .discover-why-panel {
	margin-top: 8px !important;
}
.discover-wrap-signal-board #discover-stream > .discover-card-social,
.discover-stream[data-mixed="1"] > .discover-card-social {
	gap: 0;
}
.discover-wrap-signal-board #discover-stream .discover-card-social-head,
.discover-stream[data-mixed="1"] .discover-card-social-head {
	margin-bottom: 10px !important;
}
.discover-wrap-signal-board #discover-stream .discover-card-social-item,
.discover-stream[data-mixed="1"] .discover-card-social-item {
	grid-template-columns: 58px minmax(0, 1fr) 22px !important;
	align-items: center !important;
	min-height: 0 !important;
	margin-bottom: 8px !important;
	padding: 8px !important;
}
.discover-wrap-signal-board #discover-stream .discover-card-social-thumb,
.discover-stream[data-mixed="1"] .discover-card-social-thumb {
	width: 50px !important;
	height: 50px !important;
	font-size: 24px !important;
}
.discover-wrap-signal-board #discover-stream .discover-card-social-title,
.discover-stream[data-mixed="1"] .discover-card-social-title {
	font-size: 14px !important;
	line-height: 1.2 !important;
}
.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-foot,
.discover-stream[data-mixed="1"] .discover-card-social .discover-card-foot {
	padding-bottom: 0 !important;
}
@media (min-width: 1025px) {
	.discover-wrap-signal-board #discover-stream > .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap-signal-board #discover-stream > .discover-card-item[data-cat="local"] .discover-card-media,
	.discover-wrap-signal-board #discover-stream > .discover-card-item[data-cat="boardgames"] .discover-card-media,
	.discover-stream[data-mixed="1"] > .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-stream[data-mixed="1"] > .discover-card-item[data-cat="local"] .discover-card-media,
	.discover-stream[data-mixed="1"] > .discover-card-item[data-cat="boardgames"] .discover-card-media {
		max-height: 150px !important;
	}
}
@media (max-width: 1024px) {
	.discover-wrap-signal-board #discover-stream .discover-card-foot,
	.discover-stream[data-mixed="1"] .discover-card-foot {
		margin-top: 8px !important;
	}
	.discover-wrap-signal-board #discover-stream .discover-card-social-thumb,
	.discover-stream[data-mixed="1"] .discover-card-social-thumb {
		width: 48px !important;
		height: 48px !important;
		font-size: 22px !important;
	}
}
@media (max-width: 520px) {
	.discover-wrap-signal-board #discover-stream > .discover-card-social,
	.discover-stream[data-mixed="1"] > .discover-card-social {
		padding: 12px !important;
		border-radius: 18px !important;
	}
	.discover-wrap-signal-board #discover-stream .discover-card-social-item,
	.discover-stream[data-mixed="1"] .discover-card-social-item {
		grid-template-columns: 46px minmax(0, 1fr) 20px !important;
		gap: 8px !important;
	}
	.discover-wrap-signal-board #discover-stream .discover-card-social-thumb,
	.discover-stream[data-mixed="1"] .discover-card-social-thumb {
		width: 44px !important;
		height: 44px !important;
		font-size: 20px !important;
	}
	.discover-wrap-signal-board #discover-stream .discover-card-actions,
	.discover-stream[data-mixed="1"] .discover-card-actions {
		gap: 7px !important;
	}
}

/* ================================================================
   V6.9 patch 249 — Profile stream refresh
   ----------------------------------------------------------------
   Bring profile.php closer to the current Stream visual language:
   crisper glass surfaces, clearer hierarchy, richer multi-accent
   borders, dense mobile/app chrome, and better light-mode parity.
   Scoped to body.page-profile so Discover itself stays untouched.
   ================================================================ */
body.page-profile #main {
	background:
		radial-gradient(circle at 10% 0%, rgba(20,184,166,.08), transparent 28%),
		radial-gradient(circle at 90% 8%, rgba(249,115,22,.07), transparent 30%);
}

body.page-profile .profile-hero,
body.page-profile .profile-compare,
body.page-profile .profile-card,
body.page-profile .profile-pins-empty-card {
	position: relative;
	isolation: isolate;
	border-color: rgba(167,139,250,.22) !important;
	box-shadow: 0 18px 44px -34px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.045) !important;
}

body.page-profile .profile-hero {
	border-radius: 20px !important;
	background:
		linear-gradient(135deg, rgba(20,184,166,.14), rgba(20,184,166,0) 32%),
		linear-gradient(115deg, rgba(42,24,82,.98) 0%, rgba(36,27,68,.96) 48%, rgba(18,31,50,.98) 100%) !important;
	border-color: rgba(182,243,210,.16) !important;
	margin-bottom: 14px !important;
}
body.page-profile .profile-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, #b6f3d2, #a78bfa 48%, #fbbf24);
	opacity: .95;
	z-index: 2;
}
body.page-profile .profile-hero-bg {
	background:
		linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0) 36%),
		radial-gradient(circle at 12% 15%, rgba(182,243,210,.18), transparent 28%),
		radial-gradient(circle at 92% 0%, rgba(249,115,22,.18), transparent 30%),
		radial-gradient(circle at 55% 110%, rgba(124,58,237,.22), transparent 38%) !important;
	opacity: 1 !important;
}
body.page-profile .profile-hero-content { padding-top: 18px !important; padding-bottom: 18px !important; }
body.page-profile .profile-hero-name {
	color: #fff !important;
	text-shadow: 0 1px 16px rgba(0,0,0,.34);
}
body.page-profile .profile-hero-title,
body.page-profile .profile-hero-taste-tag {
	background: rgba(255,255,255,.11) !important;
	border-color: rgba(255,255,255,.18) !important;
	color: rgba(255,255,255,.90) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
body.page-profile .profile-hero-pct {
	background:
		linear-gradient(135deg, rgba(2,6,23,.84), rgba(15,23,42,.72)),
		linear-gradient(135deg, rgba(182,243,210,.16), rgba(167,139,250,.14)) !important;
	border-color: rgba(182,243,210,.42) !important;
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0,0,0,.72);
	box-shadow: 0 16px 34px -24px rgba(0,0,0,.92), inset 0 1px 0 rgba(255,255,255,.12) !important;
	backdrop-filter: blur(14px) saturate(1.25);
	-webkit-backdrop-filter: blur(14px) saturate(1.25);
}
body.page-profile .profile-hero-pct i { color: #b6f3d2 !important; }
body.page-profile .profile-hero-pct strong { color: #fff !important; }
body.page-profile .profile-hero-pct-sub { color: rgba(226,232,240,.92) !important; }
body.page-profile .profile-hero-pct .verdict-pill { text-shadow: none !important; }

body.page-profile .profile-hero-meta li,
body.page-profile .profile-compare-chip,
body.page-profile .profile-chip,
body.page-profile .profile-explore-btn {
	background: rgba(255,255,255,.075) !important;
	border-color: rgba(255,255,255,.12) !important;
	color: rgba(255,255,255,.90) !important;
}
body.page-profile .profile-hero-meta li i,
body.page-profile .profile-subheading i,
body.page-profile .profile-compare-title i,
body.page-profile .profile-chip i,
body.page-profile .profile-match-label i { color: #b6f3d2 !important; }
body.page-profile .profile-hero-meta li a { color: inherit !important; }

body.page-profile .profile-hero-avatar,
body.page-profile .profile-hero-avatar-col .weird-av > img {
	box-shadow: 0 0 0 3px rgba(255,255,255,.82), 0 14px 34px -18px rgba(0,0,0,.90), 0 0 0 9px rgba(182,243,210,.10) !important;
}
body.page-profile .profile-share-link {
	background: rgba(255,255,255,.10) !important;
	border-color: rgba(255,255,255,.16) !important;
	color: rgba(255,255,255,.88) !important;
	margin-bottom: 6px !important;
}

body.page-profile .profile-hero-rail {
	background: linear-gradient(180deg, rgba(8,13,31,.66), rgba(8,13,31,.34)) !important;
	border-color: rgba(255,255,255,.14) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
body.page-profile .profile-hero .profile-action,
body.page-profile .profile-hero button.profile-action,
body.page-profile .profile-hero a.profile-action,
body.page-profile #main .profile-hero button.profile-action {
	background: rgba(255,255,255,.08) !important;
	border-color: rgba(255,255,255,.13) !important;
	color: rgba(255,255,255,.93) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}
body.page-profile .profile-hero .profile-action:hover,
body.page-profile #main .profile-hero button.profile-action:hover {
	background: rgba(255,255,255,.13) !important;
	border-color: rgba(182,243,210,.38) !important;
}
body.page-profile .profile-hero .profile-action.profile-action-primary,
body.page-profile #main .profile-hero button.profile-action.profile-action-primary {
	background: linear-gradient(135deg, #8b5cf6, #4f46e5) !important;
	border-color: rgba(199,210,254,.72) !important;
	color: #fff !important;
}
body.page-profile .profile-hero .profile-action.weird-tip-btn,
body.page-profile #main .profile-hero button.profile-action.weird-tip-btn {
	background: linear-gradient(135deg, rgba(251,191,36,.22), rgba(245,158,11,.13)) !important;
	border-color: rgba(251,191,36,.34) !important;
}

body.page-profile .profile-compare,
body.page-profile .profile-card {
	background:
		linear-gradient(135deg, rgba(20,184,166,.085), rgba(20,184,166,0) 34%),
		linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.018)),
		var(--surface) !important;
	border-radius: 18px !important;
}
body.page-profile .profile-compare::before,
body.page-profile .profile-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, #b6f3d2, #a78bfa 62%, #fbbf24);
	border-radius: inherit;
	opacity: .88;
	z-index: -1;
}
body.page-profile .profile-card:hover,
body.page-profile .profile-compare:hover {
	border-color: rgba(182,243,210,.24) !important;
}
body.page-profile .profile-subheading,
body.page-profile .profile-compare-title,
body.page-profile .profile-card .discover-section-head h2 {
	color: var(--text-primary) !important;
	letter-spacing: .04em;
}
body.page-profile .profile-bio,
body.page-profile .profile-match-label,
body.page-profile .profile-pin-card-q { color: var(--text-primary) !important; }
body.page-profile .profile-bio-prompt,
body.page-profile .profile-bio-empty,
body.page-profile .profile-compare-sub,
body.page-profile .profile-pins-footer,
body.page-profile .profile-match-count { color: var(--text-secondary) !important; }

body.page-profile .profile-about-block {
	padding: 12px 0 0;
	border-top: 1px solid rgba(167,139,250,.12);
}
body.page-profile .profile-about-block:first-of-type { padding-top: 0; border-top: 0; }

body.page-profile .profile-chip,
body.page-profile .profile-explore-btn,
body.page-profile .profile-pin-card,
body.page-profile .profile-compare-chip,
body.page-profile .profile-match-row {
	background: rgba(255,255,255,.045) !important;
	border-color: rgba(167,139,250,.16) !important;
}
body.page-profile .profile-chip:hover,
body.page-profile .profile-explore-btn:hover,
body.page-profile .profile-pin-card:hover,
body.page-profile .profile-compare-chip:hover {
	background: rgba(182,243,210,.08) !important;
	border-color: rgba(182,243,210,.28) !important;
}
body.page-profile .profile-compare-chip.is-active {
	background: linear-gradient(135deg, #0f766e, #7c3aed) !important;
	border-color: rgba(182,243,210,.42) !important;
}
body.page-profile .profile-match-row {
	padding: 10px 11px;
	border: 1px solid rgba(167,139,250,.14);
	border-radius: 13px;
}
body.page-profile .profile-match-bar {
	background: rgba(255,255,255,.08) !important;
	border-color: rgba(255,255,255,.10) !important;
}
body.page-profile .profile-match-row.is-high .profile-match-fill { background: linear-gradient(90deg, #10b981, #22d3ee) !important; }
body.page-profile .profile-match-row.is-mid .profile-match-fill { background: linear-gradient(90deg, #8b5cf6, #f59e0b) !important; }
body.page-profile .profile-match-row.is-low .profile-match-fill { background: linear-gradient(90deg, #f97316, #fbbf24) !important; }

html.light-mode body.page-profile #main {
	background:
		radial-gradient(circle at 10% 0%, rgba(20,184,166,.08), transparent 28%),
		radial-gradient(circle at 90% 8%, rgba(124,58,237,.06), transparent 30%);
}
html.light-mode body.page-profile .profile-hero {
	background:
		linear-gradient(135deg, rgba(20,184,166,.10), rgba(255,255,255,0) 34%),
		linear-gradient(115deg, #ffffff 0%, #f8f5ff 54%, #eef7ff 100%) !important;
	border-color: rgba(15,23,42,.10) !important;
	box-shadow: 0 16px 38px -30px rgba(30,41,59,.42), inset 0 1px 0 rgba(255,255,255,.75) !important;
}
html.light-mode body.page-profile .profile-hero-name,
html.light-mode body.page-profile .profile-hero-pct,
html.light-mode body.page-profile .profile-hero-meta li,
html.light-mode body.page-profile .profile-hero-title,
html.light-mode body.page-profile .profile-hero-taste-tag {
	color: #172033 !important;
	text-shadow: none !important;
}
html.light-mode body.page-profile .profile-hero-pct-sub { color: #64748b !important; }
html.light-mode body.page-profile .profile-hero-meta li,
html.light-mode body.page-profile .profile-hero-title,
html.light-mode body.page-profile .profile-hero-taste-tag,
html.light-mode body.page-profile .profile-chip,
html.light-mode body.page-profile .profile-explore-btn,
html.light-mode body.page-profile .profile-pin-card,
html.light-mode body.page-profile .profile-compare-chip,
html.light-mode body.page-profile .profile-match-row {
	background: rgba(255,255,255,.74) !important;
	border-color: rgba(15,23,42,.08) !important;
}
html.light-mode body.page-profile .profile-chip,
html.light-mode body.page-profile a.profile-chip,
html.light-mode body.page-profile a.profile-chip:visited,
html.light-mode body.page-profile .profile-explore-btn,
html.light-mode body.page-profile a.profile-explore-btn,
html.light-mode body.page-profile a.profile-explore-btn:visited,
html.light-mode body.page-profile .profile-pin-card,
html.light-mode body.page-profile a.profile-pin-card,
html.light-mode body.page-profile a.profile-pin-card:visited,
html.light-mode body.page-profile .profile-compare-chip,
html.light-mode body.page-profile a.profile-compare-chip,
html.light-mode body.page-profile a.profile-compare-chip:visited,
html.light-mode body.page-profile .profile-match-row {
	color: #172033 !important;
}
html.light-mode body.page-profile .profile-chip:hover,
html.light-mode body.page-profile a.profile-chip:hover,
html.light-mode body.page-profile .profile-explore-btn:hover,
html.light-mode body.page-profile a.profile-explore-btn:hover {
	color: #0f172a !important;
}
html.light-mode body.page-profile .profile-explore-btn i,
html.light-mode body.page-profile .profile-chip i,
html.light-mode body.page-profile .profile-subheading i,
html.light-mode body.page-profile .profile-compare-title i,
html.light-mode body.page-profile .profile-match-label i {
	color: #0f766e !important;
}
html.light-mode body.page-profile .profile-hero-rail,
html.light-mode body.page-profile .profile-card,
html.light-mode body.page-profile .profile-compare {
	background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(248,250,252,.78)) !important;
	border-color: rgba(15,23,42,.09) !important;
}
html.light-mode body.page-profile .profile-hero .profile-action,
html.light-mode body.page-profile .profile-hero button.profile-action,
html.light-mode body.page-profile .profile-hero a.profile-action,
html.light-mode body.page-profile #main .profile-hero button.profile-action {
	background: rgba(255,255,255,.86) !important;
	border-color: rgba(15,23,42,.11) !important;
	color: #172033 !important;
}
html.light-mode body.page-profile .profile-hero .profile-action.profile-action-primary,
html.light-mode body.page-profile #main .profile-hero button.profile-action.profile-action-primary { color: #fff !important; }

body.page-profile .profile-hero-content.cosmetic.pt-noir .profile-hero-pct,
body.page-profile .profile-hero-content.cosmetic.pt-synthwave .profile-hero-pct,
body.page-profile .profile-hero-content.cosmetic.pt-galaxy .profile-hero-pct,
body.page-profile .profile-hero-content.cosmetic.pt-midnight .profile-hero-pct {
	background:
		linear-gradient(135deg, rgba(2,6,23,.88), rgba(15,23,42,.78)),
		linear-gradient(135deg, rgba(182,243,210,.18), rgba(167,139,250,.16)) !important;
	border-color: rgba(182,243,210,.48) !important;
	color: rgba(248,250,252,.97) !important;
	text-shadow: 0 1px 2px rgba(0,0,0,.76) !important;
	box-shadow: 0 15px 34px -22px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.14) !important;
}
body.page-profile .profile-hero-content.cosmetic.pt-noir .profile-hero-pct-sub,
body.page-profile .profile-hero-content.cosmetic.pt-synthwave .profile-hero-pct-sub,
body.page-profile .profile-hero-content.cosmetic.pt-galaxy .profile-hero-pct-sub,
body.page-profile .profile-hero-content.cosmetic.pt-midnight .profile-hero-pct-sub {
	color: rgba(226,232,240,.94) !important;
}
body.page-profile .profile-hero-content.cosmetic.pt-noir .profile-hero-pct strong,
body.page-profile .profile-hero-content.cosmetic.pt-synthwave .profile-hero-pct strong,
body.page-profile .profile-hero-content.cosmetic.pt-galaxy .profile-hero-pct strong,
body.page-profile .profile-hero-content.cosmetic.pt-midnight .profile-hero-pct strong {
	color: #fff !important;
}

@media (max-width: 1080px) {
	body.page-profile .profile-hero { border-radius: 18px !important; }
	body.page-profile .profile-hero-content { gap: 10px !important; }
	body.page-profile .profile-card,
	body.page-profile .profile-compare { border-radius: 16px !important; }
}

@media (max-width: 640px) {
	body.page-profile .profile-hero { margin-bottom: 11px !important; }
	body.page-profile .profile-hero-content { padding: 12px !important; }
	body.page-profile .profile-hero-name { font-size: 21px !important; }
	body.page-profile .profile-hero-meta { gap: 5px !important; }
	body.page-profile .profile-hero-meta li { padding: 4px 8px !important; font-size: 11px !important; }
	body.page-profile .profile-hero-rail { padding: 7px !important; }
	body.page-profile .profile-hero .profile-action,
	body.page-profile #main .profile-hero button.profile-action {
		min-height: 36px !important;
		padding: 8px 9px !important;
		font-size: 12px !important;
	}
	body.page-profile .profile-compare,
	body.page-profile .profile-card { padding: 14px 13px 15px !important; }
	body.page-profile .profile-about-block { margin-bottom: 16px !important; padding-top: 10px; }
	body.page-profile .profile-match-row { padding: 9px 10px; }
}

body.is-native-app.page-profile .profile-hero,
body.is-native-app.page-profile .profile-card,
body.is-native-app.page-profile .profile-compare {
	box-shadow: none !important;
}
body.is-native-app.page-profile .profile-hero-content { padding-top: 10px !important; padding-bottom: 10px !important; }
body.is-native-app.page-profile .profile-grid { gap: 10px !important; }

/* V6.9 patch 249d — profile color system.
   Strategic, profile-scoped color: mint/teal = personal taste identity,
   violet = primary brand action, amber = prompts/share/difference, cyan =
   informational navigation. Uses OKLCH so light/dark tints stay perceptual. */
body.page-profile {
	--profile-mint: oklch(82% 0.13 154);
	--profile-mint-ink: oklch(91% 0.08 154);
	--profile-mint-soft: oklch(82% 0.13 154 / .115);
	--profile-mint-line: oklch(82% 0.13 154 / .34);
	--profile-violet: oklch(64% 0.22 288);
	--profile-violet-soft: oklch(64% 0.22 288 / .12);
	--profile-violet-line: oklch(64% 0.22 288 / .34);
	--profile-amber: oklch(78% 0.15 74);
	--profile-amber-soft: oklch(78% 0.15 74 / .13);
	--profile-amber-line: oklch(78% 0.15 74 / .38);
	--profile-cyan: oklch(78% 0.12 215);
	--profile-cyan-soft: oklch(78% 0.12 215 / .115);
	--profile-cyan-line: oklch(78% 0.12 215 / .32);
}
html.light-mode body.page-profile {
	--profile-mint: oklch(48% 0.12 158);
	--profile-mint-ink: oklch(35% 0.11 158);
	--profile-mint-soft: oklch(82% 0.13 154 / .14);
	--profile-mint-line: oklch(55% 0.12 158 / .30);
	--profile-violet: oklch(48% 0.22 288);
	--profile-violet-soft: oklch(64% 0.22 288 / .10);
	--profile-violet-line: oklch(48% 0.22 288 / .24);
	--profile-amber: oklch(53% 0.14 66);
	--profile-amber-soft: oklch(78% 0.15 74 / .16);
	--profile-amber-line: oklch(53% 0.14 66 / .28);
	--profile-cyan: oklch(47% 0.12 220);
	--profile-cyan-soft: oklch(78% 0.12 215 / .14);
	--profile-cyan-line: oklch(47% 0.12 220 / .24);
}

body.page-profile .profile-hero::before {
	background: linear-gradient(90deg, var(--profile-mint), var(--profile-violet) 48%, var(--profile-amber)) !important;
}
body.page-profile .profile-hero-title,
body.page-profile .profile-hero-taste-tag {
	background: linear-gradient(135deg, var(--profile-mint-soft), var(--profile-violet-soft)) !important;
	border-color: var(--profile-mint-line) !important;
	color: oklch(97% 0.02 240) !important;
}
body.page-profile .profile-hero-title i,
body.page-profile .profile-hero-taste-tag i { color: var(--profile-mint) !important; }
html.light-mode body.page-profile .profile-hero-title,
html.light-mode body.page-profile .profile-hero-taste-tag {
	background: linear-gradient(135deg, var(--profile-mint-soft), var(--profile-violet-soft)) !important;
	border-color: var(--profile-mint-line) !important;
	color: #172033 !important;
}
html.light-mode body.page-profile .profile-hero-title i,
html.light-mode body.page-profile .profile-hero-taste-tag i { color: var(--profile-mint) !important; }

body.page-profile .profile-hero-meta li {
	--profile-chip-soft: var(--profile-mint-soft);
	--profile-chip-line: var(--profile-mint-line);
	--profile-chip-ink: var(--profile-mint);
	background: linear-gradient(135deg, var(--profile-chip-soft), rgba(255,255,255,.035)) !important;
	border-color: var(--profile-chip-line) !important;
}
body.page-profile .profile-hero-meta li:has(.fa-location-arrow) {
	--profile-chip-soft: var(--profile-cyan-soft);
	--profile-chip-line: var(--profile-cyan-line);
	--profile-chip-ink: var(--profile-cyan);
}
body.page-profile .profile-hero-meta li:has(.fa-calendar) {
	--profile-chip-soft: var(--profile-amber-soft);
	--profile-chip-line: var(--profile-amber-line);
	--profile-chip-ink: var(--profile-amber);
}
body.page-profile .profile-hero-meta li:has(.fa-question) {
	--profile-chip-soft: var(--profile-violet-soft);
	--profile-chip-line: var(--profile-violet-line);
	--profile-chip-ink: var(--profile-violet);
}
body.page-profile .profile-hero-meta li i { color: var(--profile-chip-ink) !important; }

body.page-profile .profile-card,
body.page-profile .profile-compare {
	--profile-card-soft: var(--profile-mint-soft);
	--profile-card-line: var(--profile-mint-line);
	--profile-card-accent: var(--profile-mint);
	background:
		linear-gradient(135deg, var(--profile-card-soft), transparent 36%),
		linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.018)),
		var(--surface) !important;
	border-color: var(--profile-card-line) !important;
}
body.page-profile .profile-card::before,
body.page-profile .profile-compare::before {
	background: linear-gradient(180deg, var(--profile-card-accent), var(--profile-violet) 62%, var(--profile-amber)) !important;
}
body.page-profile .profile-card.profile-match,
body.page-profile .profile-compare {
	--profile-card-soft: var(--profile-cyan-soft);
	--profile-card-line: var(--profile-cyan-line);
	--profile-card-accent: var(--profile-cyan);
}
body.page-profile .profile-card.profile-argument {
	--profile-card-soft: var(--profile-amber-soft);
	--profile-card-line: var(--profile-amber-line);
	--profile-card-accent: var(--profile-amber);
}
body.page-profile .profile-card.profile-circles,
body.page-profile .profile-card.profile-toy-share {
	--profile-card-soft: var(--profile-violet-soft);
	--profile-card-line: var(--profile-violet-line);
	--profile-card-accent: var(--profile-violet);
}
body.page-profile .profile-subheading .fa-magic { color: var(--profile-amber) !important; }
body.page-profile .profile-subheading .fa-star { color: var(--profile-violet) !important; }
body.page-profile .profile-subheading .fa-compass { color: var(--profile-cyan) !important; }
body.page-profile .profile-card .discover-section-head h2 i,
body.page-profile .profile-compare-title i { color: var(--profile-card-accent, var(--profile-mint)) !important; }

body.page-profile .profile-chip {
	background: linear-gradient(135deg, var(--profile-mint-soft), rgba(255,255,255,.035)) !important;
	border-color: var(--profile-mint-line) !important;
}
body.page-profile .profile-chip i { color: var(--profile-mint) !important; }
body.page-profile .profile-chip:hover {
	background: linear-gradient(135deg, oklch(82% 0.13 154 / .18), var(--profile-violet-soft)) !important;
	border-color: var(--profile-mint-line) !important;
}
html.light-mode body.page-profile .profile-chip:hover,
html.light-mode body.page-profile a.profile-chip:hover { color: #12312d !important; }

body.page-profile .profile-pin-card,
body.page-profile .profile-bio-empty-card,
body.page-profile .profile-pins-empty-card {
	background: linear-gradient(135deg, var(--profile-amber-soft), rgba(255,255,255,.035)) !important;
	border-color: var(--profile-amber-line) !important;
}
body.page-profile .profile-pin-card::before { background: linear-gradient(180deg, var(--profile-amber), var(--profile-violet)) !important; }
body.page-profile .profile-pin-card-a i { color: var(--profile-mint) !important; }
body.page-profile .profile-bio-empty-card i,
body.page-profile .profile-pins-empty-card i { color: var(--profile-amber) !important; }

body.page-profile .profile-map-bridge {
	background: linear-gradient(135deg, var(--profile-cyan-soft), var(--profile-violet-soft)) !important;
	border-color: var(--profile-cyan-line) !important;
}
body.page-profile .profile-map-bridge i { color: var(--profile-cyan) !important; }
body.page-profile .profile-match-challenge {
	background: linear-gradient(135deg, oklch(36% 0.13 290 / .78), oklch(35% 0.11 62 / .68)) !important;
	border-color: var(--profile-amber-line) !important;
}
body.page-profile .profile-match-challenge i { color: var(--profile-amber) !important; }
html.light-mode body.page-profile .profile-map-bridge {
	background: linear-gradient(135deg, var(--profile-cyan-soft), var(--profile-violet-soft)) !important;
}
html.light-mode body.page-profile .profile-match-challenge {
	background: linear-gradient(135deg, var(--profile-amber-soft), var(--profile-violet-soft)) !important;
}
html.light-mode body.page-profile .profile-match-challenge span { color: #172033 !important; }

body.page-profile .profile-hero .profile-action:has(.fa-comment) i { color: var(--profile-cyan) !important; }
body.page-profile .profile-hero .profile-action:has(.fa-gamepad) i { color: var(--profile-amber) !important; }
body.page-profile .profile-hero .profile-action:has(.fa-robot) i { color: var(--profile-mint) !important; }
body.page-profile .profile-hero .profile-action.profile-action-primary i,
body.page-profile .profile-hero .profile-action.profile-action-following i { color: #fff !important; }
html.light-mode body.page-profile .profile-hero .profile-action.profile-action-primary,
html.light-mode body.page-profile .profile-hero a.profile-action.profile-action-primary,
html.light-mode body.page-profile .profile-hero a.profile-action.profile-action-primary:link,
html.light-mode body.page-profile .profile-hero a.profile-action.profile-action-primary:visited,
html.light-mode body.page-profile #main .profile-hero button.profile-action.profile-action-primary {
	background: linear-gradient(135deg, var(--profile-violet), oklch(43% 0.22 288)) !important;
	border-color: var(--profile-violet-line) !important;
	color: #fff !important;
	box-shadow: 0 10px 24px -16px oklch(48% 0.22 288 / .62) !important;
}
html.light-mode body.page-profile .profile-hero .profile-action.profile-action-primary i,
html.light-mode body.page-profile .profile-hero a.profile-action.profile-action-primary i,
html.light-mode body.page-profile #main .profile-hero button.profile-action.profile-action-primary i { color: #fff !important; }

body.page-profile .profile-match-count {
	background: var(--profile-cyan-soft) !important;
	border-color: var(--profile-cyan-line) !important;
	color: var(--profile-mint-ink) !important;
}
body.page-profile .profile-match-row.is-high .profile-match-label i { color: var(--profile-mint) !important; }
body.page-profile .profile-match-row.is-mid .profile-match-label i { color: var(--profile-violet) !important; }
body.page-profile .profile-match-row.is-low .profile-match-label i { color: var(--profile-amber) !important; }
body.page-profile .profile-match-row.is-empty .profile-match-label i { color: var(--text-muted) !important; }
body.page-profile .profile-match-row.is-drillable:hover,
body.page-profile .profile-match-row.is-drillable:focus-visible {
	background: linear-gradient(135deg, var(--profile-cyan-soft), var(--profile-violet-soft)) !important;
	border-color: var(--profile-cyan-line) !important;
}

html.light-mode body.page-profile .profile-card,
html.light-mode body.page-profile .profile-compare {
	background:
		linear-gradient(135deg, var(--profile-card-soft), transparent 42%),
		linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.80)) !important;
}
html.light-mode body.page-profile .profile-pin-card,
html.light-mode body.page-profile .profile-bio-empty-card,
html.light-mode body.page-profile .profile-pins-empty-card {
	background: linear-gradient(135deg, var(--profile-amber-soft), rgba(255,255,255,.82)) !important;
}
html.light-mode body.page-profile .profile-match-count { color: #1f2937 !important; }

body.page-profile .profile-hero-content.cosmetic.pt-noir .profile-hero-title,
body.page-profile .profile-hero-content.cosmetic.pt-noir .profile-hero-taste-tag,
body.page-profile .profile-hero-content.cosmetic.pt-synthwave .profile-hero-title,
body.page-profile .profile-hero-content.cosmetic.pt-synthwave .profile-hero-taste-tag,
body.page-profile .profile-hero-content.cosmetic.pt-galaxy .profile-hero-title,
body.page-profile .profile-hero-content.cosmetic.pt-galaxy .profile-hero-taste-tag,
body.page-profile .profile-hero-content.cosmetic.pt-midnight .profile-hero-title,
body.page-profile .profile-hero-content.cosmetic.pt-midnight .profile-hero-taste-tag {
	background: linear-gradient(135deg, rgba(15,23,42,.78), rgba(30,41,59,.64)) !important;
	border-color: var(--profile-mint-line) !important;
	color: oklch(97% 0.02 240) !important;
}

@media (max-width: 640px) {
	body.page-profile .profile-card::before,
	body.page-profile .profile-compare::before { width: 2px !important; }
	body.page-profile .profile-map-bridge,
	body.page-profile .profile-match-challenge { padding: 10px 11px !important; }
}

/* V6.9 patch 249b — polish the mobile account picker + share pill.
   _account_nav.php emits a body inline <style>, so these profile-scoped
   !important rules intentionally beat it. */
@media (max-width: 720px) {
	body.page-profile .acct-nav-select-wrap {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) !important;
		align-items: center !important;
		gap: 8px !important;
		margin: 8px 0 12px !important;
		padding: 7px !important;
		border-radius: 14px !important;
		background: linear-gradient(135deg, rgba(20,184,166,.11), rgba(124,58,237,.11)) !important;
		border: 1px solid rgba(167,139,250,.24) !important;
		box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
	}
	body.page-profile .acct-nav-select-label {
		font-size: 11.5px !important;
		font-weight: 850 !important;
		letter-spacing: .04em !important;
		text-transform: uppercase !important;
		color: var(--text-secondary,#cbd5e1) !important;
		white-space: nowrap !important;
	}
	body.page-profile .acct-nav-select {
		min-height: 38px !important;
		padding: 8px 38px 8px 12px !important;
		border-radius: 11px !important;
		background-image:
			url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='white'><path d='M6 8L0 0h12z'/></svg>"),
			linear-gradient(135deg, #7c3aed, #4f46e5) !important;
		background-repeat: no-repeat, no-repeat !important;
		background-position: right 13px center, left top !important;
		background-size: 12px 8px, 100% 100% !important;
		box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 18px -16px rgba(124,58,237,.65) !important;
	}
	html.light-mode body.page-profile .acct-nav-select-wrap {
		background: linear-gradient(135deg, rgba(20,184,166,.08), rgba(124,58,237,.075)) !important;
		border-color: rgba(124,58,237,.20) !important;
	}
	html.light-mode body.page-profile .acct-nav-select-label { color: #475569 !important; }
}

html.light-mode body.page-profile .profile-share-link,
html.light-mode body.page-profile .profile-hero .profile-share-link {
	background: rgba(255,255,255,.78) !important;
	border-color: rgba(124,58,237,.18) !important;
	color: #5b21b6 !important;
	box-shadow: 0 8px 18px -16px rgba(67,56,202,.42) !important;
}
html.light-mode body.page-profile .profile-share-link i,
html.light-mode body.page-profile .profile-hero .profile-share-link i { color: #7c3aed !important; }

/* V6.9 patch 249c — hard-clamp compact W marks on profile mobile/app.
   The light/dark W image can be swapped with `content:url(...)`; on some
   mobile profile states the intrinsic bitmap width escaped its 40px shell and
   created a giant diagonal logo plus horizontal scroll. Clamp the shell and
   bitmap directly instead of relying on percentage sizing. */
@media (max-width: 1024px) {
	body.page-profile #sticky-header .weird-brand-link,
	body.page-profile:has(.weird-tabbar) #sticky-header .weird-brand-link,
	body.is-native-app.page-profile #sticky-header .weird-brand-link {
		max-width: min(250px, calc(100vw - 196px)) !important;
		min-width: 0 !important;
		overflow: visible !important;
	}
	body.page-profile #sticky-header .weird-brand-glyph,
	body.page-profile:has(.weird-tabbar) #sticky-header .weird-brand-glyph,
	body.is-native-app.page-profile #sticky-header .weird-brand-glyph,
	body.page-profile .weird-footer-mark,
	body.page-profile:has(.weird-tabbar) .weird-footer-mark,
	body.is-native-app.page-profile .weird-footer-mark {
		flex: 0 0 40px !important;
		width: 40px !important;
		min-width: 40px !important;
		max-width: 40px !important;
		height: 31px !important;
		min-height: 31px !important;
		max-height: 31px !important;
		overflow: hidden !important;
	}
	body.page-profile #sticky-header .weird-brand-glyph img,
	body.page-profile:has(.weird-tabbar) #sticky-header .weird-brand-glyph img,
	body.is-native-app.page-profile #sticky-header .weird-brand-glyph img,
	body.page-profile .weird-footer-mark img,
	body.page-profile:has(.weird-tabbar) .weird-footer-mark img,
	body.is-native-app.page-profile .weird-footer-mark img {
		display: block !important;
		width: 40px !important;
		min-width: 0 !important;
		max-width: 40px !important;
		height: 31px !important;
		max-height: 31px !important;
		object-fit: contain !important;
	}
}

/* V6.9 patch — Admin Shopping ASIN preview/approve panel. */
.admin-review-asin-card {
	margin: 12px 0 14px;
	padding: 14px;
	border-radius: 8px;
	border: 1px solid rgba(167,139,250,0.24);
	background: linear-gradient(135deg, rgba(22,18,42,0.78), rgba(15,23,42,0.62));
	box-shadow: 0 18px 42px -36px rgba(124,58,237,0.58), 0 1px 0 rgba(255,255,255,0.05) inset;
}
.admin-review-asin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-review-asin-head h3 {
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 16px;
	font-weight: 800;
	color: var(--text-primary);
}
.admin-review-asin-head h3 i { color: #ff9900; }
.admin-review-asin-head p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted, #8a8a99); }
.admin-review-asin-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: end; gap: 10px; }
.admin-review-asin-inputwrap,
.admin-review-asin-fields label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.admin-review-asin-inputwrap span,
.admin-review-asin-fields label span {
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(237,233,254,0.72);
}
.admin-review-asin-form .admin-btn,
.admin-review-asin-actions .admin-btn { min-height: 40px; }
.admin-review-asin-alert {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
}
.admin-review-asin-alert.is-error { border: 1px solid rgba(248,113,113,0.38); background: rgba(127,29,29,0.22); color: #fecaca; }
.admin-review-asin-alert.is-ok { border: 1px solid rgba(74,222,128,0.34); background: rgba(22,101,52,0.18); color: #bbf7d0; }
.admin-review-asin-preview {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	gap: 14px;
	margin-top: 14px;
	padding: 12px;
	border-radius: 8px;
	border: 1px solid rgba(167,139,250,0.20);
	background: rgba(255,255,255,0.045);
}
.admin-review-asin-thumb {
	width: 116px;
	height: 116px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 8px;
	border: 1px solid rgba(167,139,250,0.20);
	background: rgba(255,255,255,0.06);
}
.admin-review-asin-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: rgba(255,255,255,0.04); }
.admin-review-asin-thumb.is-empty { background: rgba(255,153,0,0.12); color: #ffcc80; }
.admin-review-asin-thumb i { font-size: 34px; }
.admin-review-asin-copy { min-width: 0; }
.admin-review-asin-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.admin-review-asin-copy h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.25; font-weight: 850; color: var(--text-primary); }
.admin-review-asin-brand { margin: 0 0 4px !important; font-size: 12.5px !important; font-weight: 800; color: #c4b5fd !important; }
.admin-review-asin-copy p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.admin-review-asin-approve-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(167,139,250,0.16); }
.admin-review-asin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-review-asin-overview { grid-column: 1 / -1; }
.admin-review-asin-textarea { min-height: 86px; resize: vertical; line-height: 1.4; }
.admin-review-asin-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.admin-review-asin-actions .admin-mono-muted { min-width: 0; overflow-wrap: anywhere; }
html.light-mode .admin-review-asin-card {
	background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(248,250,252,0.82));
	border-color: rgba(124,58,237,0.18);
	box-shadow: 0 16px 34px -32px rgba(124,58,237,0.24), 0 1px 0 rgba(255,255,255,0.84) inset;
}
html.light-mode .admin-review-asin-head h3 i { color: #c2410c; }
html.light-mode .admin-review-asin-head p { color: #5f6470; }
html.light-mode .admin-review-asin-inputwrap span,
html.light-mode .admin-review-asin-fields label span { color: #5a4a80; }
html.light-mode .admin-review-asin-preview { background: rgba(255,255,255,0.78); border-color: rgba(124,58,237,0.16); }
html.light-mode .admin-review-asin-thumb { background: rgba(124,58,237,0.055); border-color: rgba(124,58,237,0.16); }
html.light-mode .admin-review-asin-thumb img { background: #fff; }
html.light-mode .admin-review-asin-thumb.is-empty { background: rgba(249,115,22,0.10); color: #c2410c; }
html.light-mode .admin-review-asin-brand { color: #5b21b6 !important; }
html.light-mode .admin-review-asin-alert.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
html.light-mode .admin-review-asin-alert.is-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
@media (max-width: 760px) {
	.admin-review-asin-form,
	.admin-review-asin-preview,
	.admin-review-asin-fields { grid-template-columns: 1fr; }
	.admin-review-asin-form .admin-btn { width: 100%; justify-content: center; }
	.admin-review-asin-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 220px; }
}

/* ============================================================
   V6.9 patch 254 — Shared fallback media panels
   ============================================================ */
.discover-card-item {
	--dc-media-a: #7c3aed;
	--dc-media-b: #0ea5e9;
	--dc-media-glow: rgba(255,255,255,0.18);
}
.discover-card-item[data-cat="movies"] { --dc-media-a: #7c3aed; --dc-media-b: #4f46e5; }
.discover-card-item[data-cat="tv"] { --dc-media-a: #8b5cf6; --dc-media-b: #2563eb; }
.discover-card-item[data-cat="music"] { --dc-media-a: #f97316; --dc-media-b: #db2777; }
.discover-card-item[data-cat="travel"] { --dc-media-a: #0ea5e9; --dc-media-b: #14b8a6; }
.discover-card-item[data-cat="local"] { --dc-media-a: #22c55e; --dc-media-b: #15803d; }
.discover-card-item[data-cat="boardgames"] { --dc-media-a: #22c55e; --dc-media-b: #166534; }
.discover-card-item[data-cat="books"] { --dc-media-a: #a16207; --dc-media-b: #7c2d12; }
.discover-card-item[data-cat="shopping"] { --dc-media-a: #f97316; --dc-media-b: #c2410c; }
.discover-card-item[data-cat="sports"] { --dc-media-a: #38bdf8; --dc-media-b: #2563eb; }
.discover-card-item[data-cat="videos"] { --dc-media-a: #ef4444; --dc-media-b: #7c3aed; }
.discover-card-item[data-cat="facts"] { --dc-media-a: #facc15; --dc-media-b: #ca8a04; }
.discover-card-item[data-cat="memes"] { --dc-media-a: #ec4899; --dc-media-b: #7c3aed; }
.discover-card-item[data-cat="videogames"] { --dc-media-a: #6366f1; --dc-media-b: #0f766e; }
.discover-card-item[data-cat="podcasts"] { --dc-media-a: #14b8a6; --dc-media-b: #0f766e; }
.discover-card-item[data-cat="webcontent"] { --dc-media-a: #38bdf8; --dc-media-b: #4f46e5; }
.discover-card-item[data-cat="jokes"] { --dc-media-a: #fb923c; --dc-media-b: #e11d48; }
.discover-card-item[data-cat="lifehacks"] { --dc-media-a: #22d3ee; --dc-media-b: #f59e0b; }
.discover-card-item[data-cat="ai"] { --dc-media-a: #7c3aed; --dc-media-b: #f97316; }

.discover-card-item .discover-card-media.discover-card-media-blank {
	aspect-ratio: 16 / 10 !important;
	height: clamp(140px, 38vw, 190px) !important;
	min-height: 140px !important;
	max-height: 190px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background:
		linear-gradient(115deg, var(--dc-media-glow), transparent 38%),
		linear-gradient(135deg, var(--dc-media-a), var(--dc-media-b)) !important;
	isolation: isolate;
}
.discover-card-item .discover-card-media.discover-card-media-blank::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 44%),
		linear-gradient(140deg, transparent 0%, rgba(15,23,42,0.18) 100%);
	z-index: 0;
}
.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji {
	position: relative;
	z-index: 1;
	width: 72px;
	height: 72px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	background: rgba(255,255,255,0.16);
	border: 1px solid rgba(255,255,255,0.24);
	box-shadow: 0 18px 36px -24px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.24);
	color: rgba(255,255,255,0.96);
	font-size: 34px;
	line-height: 1;
	opacity: 1;
}
.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji i {
	font-size: 1em;
	line-height: 1;
}
.discover-stream[data-mixed="1"] .discover-card-item .discover-card-media.discover-card-media-blank,
.discover-wrap-signal-board #discover-stream .discover-card-item .discover-card-media.discover-card-media-blank {
	height: clamp(150px, 16vw, 180px) !important;
	min-height: 150px !important;
	max-height: 180px !important;
}
.discover-stream[data-mixed="1"] .discover-card-ai-banner,
.discover-wrap-signal-board #discover-stream .discover-card-ai-banner {
	height: clamp(150px, 16vw, 180px) !important;
	min-height: 150px !important;
	max-height: 180px !important;
}
.discover-card-ai-banner {
	border-radius: 20px 20px 0 0;
	overflow: hidden;
}
.discover-card-social {
	--dc-media-a: #7c3aed;
	--dc-media-b: #0ea5e9;
}
.discover-card-social[data-cat="movies"] { --dc-media-a: #7c3aed; --dc-media-b: #4f46e5; }
.discover-card-social[data-cat="tv"] { --dc-media-a: #8b5cf6; --dc-media-b: #2563eb; }
.discover-card-social[data-cat="music"] { --dc-media-a: #f97316; --dc-media-b: #db2777; }
.discover-card-social[data-cat="travel"] { --dc-media-a: #0ea5e9; --dc-media-b: #14b8a6; }
.discover-card-social[data-cat="local"] { --dc-media-a: #22c55e; --dc-media-b: #15803d; }
.discover-card-social[data-cat="boardgames"] { --dc-media-a: #22c55e; --dc-media-b: #166534; }
.discover-card-social[data-cat="books"] { --dc-media-a: #a16207; --dc-media-b: #7c2d12; }
.discover-card-social[data-cat="shopping"] { --dc-media-a: #f97316; --dc-media-b: #c2410c; }
.discover-card-social[data-cat="sports"] { --dc-media-a: #38bdf8; --dc-media-b: #2563eb; }
.discover-card-social[data-cat="videos"] { --dc-media-a: #ef4444; --dc-media-b: #7c3aed; }
.discover-card-social[data-cat="facts"] { --dc-media-a: #facc15; --dc-media-b: #ca8a04; }
.discover-card-social[data-cat="memes"] { --dc-media-a: #ec4899; --dc-media-b: #7c3aed; }
.discover-card-social[data-cat="videogames"] { --dc-media-a: #6366f1; --dc-media-b: #0f766e; }
.discover-card-social[data-cat="podcasts"] { --dc-media-a: #14b8a6; --dc-media-b: #0f766e; }
.discover-card-social[data-cat="webcontent"] { --dc-media-a: #38bdf8; --dc-media-b: #4f46e5; }
.discover-card-social[data-cat="jokes"] { --dc-media-a: #fb923c; --dc-media-b: #e11d48; }
.discover-card-social[data-cat="lifehacks"] { --dc-media-a: #22d3ee; --dc-media-b: #f59e0b; }
.discover-card-social-thumb.discover-card-social-thumb-blank {
	background:
		linear-gradient(115deg, rgba(255,255,255,0.18), transparent 38%),
		linear-gradient(135deg, var(--dc-media-a), var(--dc-media-b)) !important;
	color: rgba(255,255,255,0.94) !important;
	border: 1px solid rgba(255,255,255,0.16);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
@media (max-width: 640px) {
	.discover-card-item .discover-card-media.discover-card-media-blank,
	.discover-stream[data-mixed="1"] .discover-card-item .discover-card-media.discover-card-media-blank,
	.discover-wrap-signal-board #discover-stream .discover-card-item .discover-card-media.discover-card-media-blank {
		height: clamp(128px, 44vw, 168px) !important;
		min-height: 128px !important;
		max-height: 168px !important;
	}
	.discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji {
		width: 58px;
		height: 58px;
		border-radius: 16px;
		font-size: 28px;
	}
	.discover-stream[data-mixed="1"] .discover-card-ai-banner,
	.discover-wrap-signal-board #discover-stream .discover-card-ai-banner {
		height: clamp(128px, 44vw, 168px) !important;
		min-height: 128px !important;
		max-height: 168px !important;
	}
}

/* ============================================================
   V6.9 patch 258 — Social card header uncramp
   ============================================================ */
.discover-card-social .discover-card-social-head,
.discover-wrap-signal-board #discover-stream .discover-card-social-head,
.discover-stream[data-mixed="1"] .discover-card-social-head {
	display: grid !important;
	grid-template-columns: 48px minmax(0, 1fr) !important;
	grid-template-areas:
		"avatar meta"
		"avatar action" !important;
	align-items: start !important;
	gap: 6px 12px !important;
}
.discover-card-social .discover-card-social-head .discover-card-avatar {
	grid-area: avatar;
	width: 48px;
	height: 48px;
	align-self: start;
}
.discover-card-social .discover-card-social-meta {
	grid-area: meta;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.discover-card-social .discover-card-social-name {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	overflow: visible;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	-webkit-box-orient: initial;
}
.discover-card-social .discover-match-pct {
	margin-left: 0;
}
.discover-card-social .discover-card-social-time {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 3px 5px;
	margin-top: 0;
	line-height: 1.25;
}
.discover-card-social .discover-verb {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.discover-card-social .discover-card-social-head .discover-follow-head {
	grid-area: action;
	justify-self: start;
	max-width: 100%;
	min-width: 0;
	padding: 5px 10px !important;
	font-size: 12px !important;
}
@media (max-width: 520px) {
	.discover-card-social .discover-card-social-head,
	.discover-wrap-signal-board #discover-stream .discover-card-social-head,
	.discover-stream[data-mixed="1"] .discover-card-social-head {
		grid-template-columns: 44px minmax(0, 1fr) !important;
		gap: 6px 10px !important;
	}
	.discover-card-social .discover-card-social-head .discover-card-avatar {
		width: 44px;
		height: 44px;
	}
}

/* ============================================================
   V6.9 patch 260 — Cross-page taste rails
   ============================================================ */
.discover-wrap,
.explore-hub-wrap {
	--weird-rail-a: #22d3ee;
	--weird-rail-b: #8b5cf6;
	--weird-rail-c: #f59e0b;
}
.discover-wrap[data-cat="movies"] { --weird-rail-a:#8b5cf6; --weird-rail-b:#4f46e5; --weird-rail-c:#22d3ee; }
.discover-wrap[data-cat="tv"] { --weird-rail-a:#f97316; --weird-rail-b:#8b5cf6; --weird-rail-c:#22d3ee; }
.discover-wrap[data-cat="music"] { --weird-rail-a:#f97316; --weird-rail-b:#db2777; --weird-rail-c:#8b5cf6; }
.discover-wrap[data-cat="place"] { --weird-rail-a:#22c55e; --weird-rail-b:#06b6d4; --weird-rail-c:#8b5cf6; }
.discover-wrap[data-cat="boardgames"] { --weird-rail-a:#22c55e; --weird-rail-b:#16a34a; --weird-rail-c:#f59e0b; }
.discover-wrap[data-cat="books"] { --weird-rail-a:#d97706; --weird-rail-b:#38bdf8; --weird-rail-c:#8b5cf6; }
.discover-wrap[data-cat="sports"] { --weird-rail-a:#84cc16; --weird-rail-b:#2563eb; --weird-rail-c:#22d3ee; }
.discover-wrap[data-cat="videos"] { --weird-rail-a:#ef4444; --weird-rail-b:#f97316; --weird-rail-c:#8b5cf6; }
.discover-wrap[data-cat="facts"] { --weird-rail-a:#facc15; --weird-rail-b:#f59e0b; --weird-rail-c:#22d3ee; }
.discover-wrap[data-cat="memes"] { --weird-rail-a:#ec4899; --weird-rail-b:#f97316; --weird-rail-c:#22c55e; }
.discover-wrap[data-cat="videogames"] { --weird-rail-a:#6366f1; --weird-rail-b:#2563eb; --weird-rail-c:#22d3ee; }
.discover-wrap[data-cat="podcasts"] { --weird-rail-a:#14b8a6; --weird-rail-b:#0d9488; --weird-rail-c:#8b5cf6; }
.discover-wrap[data-cat="shopping"] { --weird-rail-a:#f59e0b; --weird-rail-b:#f97316; --weird-rail-c:#22c55e; }
.discover-wrap[data-cat="webcontent"] { --weird-rail-a:#38bdf8; --weird-rail-b:#4f46e5; --weird-rail-c:#22c55e; }
.discover-wrap[data-cat="jokes"] { --weird-rail-a:#fb923c; --weird-rail-b:#e11d48; --weird-rail-c:#facc15; }
.discover-wrap[data-cat="lifehacks"] { --weird-rail-a:#22d3ee; --weird-rail-b:#f59e0b; --weird-rail-c:#22c55e; }

.discover-wrap.explore-hub-wrap,
.discover-wrap[data-cat],
.discover-wrap.discover-wrap-signal-board {
	position: relative;
	isolation: isolate;
}
.discover-wrap.explore-hub-wrap::before,
.discover-wrap[data-cat]::before,
.discover-wrap.discover-wrap-signal-board::before {
	content: "";
	display: none !important;
	position: absolute;
	left: max(-18px, -1.2vw);
	top: 0;
	bottom: 0;
	width: 1px;
	border-radius: 999px;
	background: linear-gradient(180deg, transparent 0%, var(--weird-rail-a) 10%, var(--weird-rail-b) 52%, var(--weird-rail-c) 88%, transparent 100%) !important;
	opacity: .18;
	pointer-events: none;
	z-index: 0;
}
.discover-wrap.explore-hub-wrap > *,
.discover-wrap[data-cat] > *,
.discover-wrap.discover-wrap-signal-board > * {
	position: relative;
	z-index: 1;
}
html.light-mode .discover-wrap.explore-hub-wrap::before,
html.light-mode .discover-wrap[data-cat]::before,
html.light-mode .discover-wrap.discover-wrap-signal-board::before {
	display: none !important;
	width: 2px;
	background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--weird-rail-a) 88%, #0f172a) 9%, color-mix(in srgb, var(--weird-rail-b) 84%, #0f172a) 52%, color-mix(in srgb, var(--weird-rail-c) 86%, #0f172a) 91%, transparent 100%) !important;
	opacity: .24;
}

.explore-hub-card,
.discover-wrap[data-cat] .discover-card-item,
.discover-sub .jumpa,
.jumpa,
.jumpa2 {
	position: relative;
}
.explore-hub-card {
	overflow: hidden !important;
}
.discover-wrap[data-cat] .discover-card-item {
	overflow: hidden;
}
.explore-hub-card::after,
.discover-wrap[data-cat] .discover-card-item::after {
	content: none !important;
	display: none !important;
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 999px;
	background: var(--hub-accent, var(--weird-rail-a, #8b5cf6));
	pointer-events: none;
	z-index: 2;
}
.explore-hub-action {
	position: relative;
	border: 1px solid rgba(255,255,255,.18);
	box-shadow: 0 12px 26px -18px rgba(124,58,237,.9);
}

@media (max-width: 1024px) {
	.discover-wrap.explore-hub-wrap::before,
	.discover-wrap[data-cat]::before,
	.discover-wrap.discover-wrap-signal-board::before {
		display: none;
	}
	.explore-hub-wrap .explore-hub-grid,
	.discover-wrap[data-cat] .discover-stream,
	.discover-wrap.discover-wrap-signal-board #discover-stream {
		position: relative;
		isolation: isolate;
	}
	.explore-hub-wrap .explore-hub-grid::before,
	.discover-wrap[data-cat] .discover-stream::before,
	.discover-wrap.discover-wrap-signal-board #discover-stream::before {
		content: "";
		display: none !important;
		position: absolute;
		left: 0;
		top: 8px;
		bottom: 8px;
		width: 1px;
		border-radius: 999px;
		transform: none;
		background: linear-gradient(180deg, transparent 0%, var(--weird-rail-a) 12%, var(--weird-rail-b) 52%, var(--weird-rail-c) 88%, transparent 100%);
		opacity: .12;
		pointer-events: none;
		z-index: 0;
	}
	.explore-hub-wrap .explore-hub-grid > *,
	.discover-wrap[data-cat] .discover-stream > *,
	.discover-wrap.discover-wrap-signal-board #discover-stream > * {
		position: relative;
		z-index: 1;
	}
	html.light-mode .explore-hub-wrap .explore-hub-grid::before,
	html.light-mode .discover-wrap[data-cat] .discover-stream::before,
	html.light-mode .discover-wrap.discover-wrap-signal-board #discover-stream::before {
		display: none !important;
		width: 2px;
		opacity: .20;
	}
}

/* ============================================================
   V6.9 patch 261 — Compact icon media in single-column views
   ============================================================ */
@media (max-width: 1024px) {
	.discover-stream[data-mixed="1"] .discover-card-item .discover-card-media.discover-card-media-blank,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat] .discover-card-media.discover-card-media-blank,
	.discover-wrap[data-cat] .discover-stream .discover-card-item .discover-card-media.discover-card-media-blank {
		aspect-ratio: auto !important;
		height: clamp(92px, 24vw, 124px) !important;
		min-height: 92px !important;
		max-height: 124px !important;
	}
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="facts"] .discover-card-media.discover-card-media-blank {
		min-height: 92px !important;
	}
	.discover-stream[data-mixed="1"] .discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat] .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-wrap[data-cat] .discover-stream .discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji {
		width: 50px !important;
		height: 50px !important;
		border-radius: 14px !important;
		font-size: 24px !important;
	}
	.discover-stream[data-mixed="1"] .discover-card-ai-banner,
	.discover-wrap-signal-board #discover-stream .discover-card-ai-banner {
		height: clamp(96px, 26vw, 128px) !important;
		min-height: 96px !important;
		max-height: 128px !important;
	}
}
@media (max-width: 520px) {
	.discover-stream[data-mixed="1"] .discover-card-item .discover-card-media.discover-card-media-blank,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat] .discover-card-media.discover-card-media-blank,
	.discover-wrap[data-cat] .discover-stream .discover-card-item .discover-card-media.discover-card-media-blank {
		height: clamp(78px, 23vw, 106px) !important;
		min-height: 78px !important;
		max-height: 106px !important;
	}
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="facts"] .discover-card-media.discover-card-media-blank {
		min-height: 78px !important;
	}
	.discover-stream[data-mixed="1"] .discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat] .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-wrap[data-cat] .discover-stream .discover-card-item .discover-card-media.discover-card-media-blank .discover-card-emoji {
		width: 42px !important;
		height: 42px !important;
		border-radius: 12px !important;
		font-size: 21px !important;
	}
	.discover-stream[data-mixed="1"] .discover-card-ai-banner,
	.discover-wrap-signal-board #discover-stream .discover-card-ai-banner {
		height: clamp(84px, 24vw, 110px) !important;
		min-height: 84px !important;
		max-height: 110px !important;
	}
}

/* ============================================================
   V6.9 patch 263 — Explore cards match Stream cards
   ============================================================ */
.explore-hub-grid {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
	gap: 14px !important;
}
a.explore-hub-card,
a.explore-hub-card:visited {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: stretch !important;
	gap: 0 !important;
	min-height: 314px !important;
	padding: 0 !important;
	text-align: left !important;
	border-radius: 20px !important;
	border-top: 3px solid var(--hub-accent) !important;
	overflow: hidden !important;
	background: var(--surface, rgba(255,255,255,.04)) !important;
}
.explore-hub-media {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(148px, 16vw, 178px);
	min-height: 148px;
	border-radius: 20px 20px 0 0;
	overflow: hidden;
	background:
		linear-gradient(115deg, rgba(255,255,255,.18), transparent 38%),
		linear-gradient(135deg, var(--hub-accent), color-mix(in srgb, var(--hub-accent) 58%, #0f172a)) !important;
}
.explore-hub-media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 44%),
		linear-gradient(140deg, transparent 0%, rgba(15,23,42,.24) 100%);
	z-index: 0;
}
.explore-hub-card .discover-card-tag {
	left: 14px !important;
	top: 14px !important;
	z-index: 2;
	background: color-mix(in srgb, var(--hub-accent) 88%, rgba(15,23,42,.55)) !important;
	border: 1px solid rgba(255,255,255,.22) !important;
	box-shadow: 0 12px 26px -18px var(--hub-accent) !important;
}
.explore-hub-icon {
	position: relative;
	z-index: 1;
	width: 72px !important;
	height: 72px !important;
	border-radius: 20px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.16) !important;
	border: 1px solid rgba(255,255,255,.24) !important;
	color: rgba(255,255,255,.96) !important;
	font-size: 34px !important;
	box-shadow: 0 18px 36px -24px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.24) !important;
}
.explore-hub-copy {
	flex: 1 1 auto;
	display: flex !important;
	flex-direction: column;
	align-items: stretch !important;
	gap: 6px !important;
	min-width: 0;
	padding: 14px 16px 48px;
}
.explore-hub-copy strong {
	font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.22 !important;
	white-space: normal !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.explore-hub-copy small {
	display: -webkit-box !important;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.42;
	color: var(--text-secondary, #a8a4c4);
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.explore-hub-arrow {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 32px;
	height: 32px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.10);
	color: var(--hub-accent) !important;
	opacity: .86;
}
html.light-mode .explore-hub-media {
	background:
		linear-gradient(115deg, rgba(255,255,255,.54), transparent 40%),
		linear-gradient(135deg, color-mix(in srgb, var(--hub-accent) 82%, #fff), color-mix(in srgb, var(--hub-accent) 32%, #fff)) !important;
}
html.light-mode .explore-hub-icon {
	background: rgba(255,255,255,.46) !important;
	border-color: rgba(255,255,255,.62) !important;
	color: color-mix(in srgb, var(--hub-accent) 72%, #0f172a) !important;
}
html.light-mode .explore-hub-card .discover-card-tag {
	background: color-mix(in srgb, var(--hub-accent) 76%, #fff) !important;
	color: #fff !important;
}
html.light-mode .explore-hub-copy small {
	color: #475569 !important;
}
html.light-mode .explore-hub-arrow {
	background: rgba(15,23,42,.04);
	border-color: rgba(15,23,42,.10);
}
@media (max-width: 720px) {
	.explore-hub-grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}
	a.explore-hub-card,
	a.explore-hub-card:visited {
		min-height: 0 !important;
		border-radius: 18px !important;
	}
	.explore-hub-media {
		height: clamp(92px, 24vw, 122px) !important;
		min-height: 92px !important;
	}
	.explore-hub-icon {
		width: 50px !important;
		height: 50px !important;
		border-radius: 14px !important;
		font-size: 24px !important;
	}
	.explore-hub-card .discover-card-tag {
		left: 10px !important;
		top: 10px !important;
	}
	.explore-hub-copy {
		padding: 12px 14px 46px;
	}
	.explore-hub-copy strong {
		font-size: 15px !important;
	}
}

/* V6.9 patch 292 — remove the noisy rail/cap experiment from Explore surfaces. */
.discover-bar::before,
.discover-wrap.explore-hub-wrap::before,
.discover-wrap[data-cat]::before,
.discover-wrap.discover-wrap-signal-board::before,
.explore-hub-wrap .explore-hub-grid::before,
.discover-wrap[data-cat] .discover-stream::before,
.discover-wrap.discover-wrap-signal-board #discover-stream::before,
.explore-hub-card::after,
.discover-card.rated::before,
.discover-card-item::before,
.discover-card-item::after,
.discover-sub > h2:first-of-type::before,
.discover-sub .jumpa::before,
.discover-sub .jumpa::after {
	content: none !important;
	display: none !important;
}
.discover-stream > .discover-card.discover-card-item,
.discover-card.discover-card-item,
.discover-card-item,
.discover-card-item[data-cat],
.discover-card-item.rated,
.discover-card.discover-card-item.rated,
a.explore-hub-card,
a.explore-hub-card:visited,
.discover-sub > h2:first-of-type,
.discover-sub .card.jumpa,
.discover-sub .jumpa {
	border-top: 1px solid var(--border, rgba(148,163,184,.22)) !important;
}
.discover-card.discover-card-item.rated-up,
.discover-card.discover-card-item.rated-neutral,
.discover-card.discover-card-item.rated-down,
.discover-card-item.rated-up,
.discover-card-item.rated-neutral,
.discover-card-item.rated-down,
.discover-card-social.rated-up,
.discover-card-social.rated-neutral,
.discover-card-social.rated-down {
	border: 1px solid var(--border, rgba(148,163,184,.22)) !important;
	border-color: var(--border, rgba(148,163,184,.22)) !important;
	box-shadow: 0 4px 14px -8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
html.light-mode .discover-stream > .discover-card.discover-card-item,
html.light-mode .discover-card.discover-card-item,
html.light-mode .discover-card-item,
html.light-mode .discover-card-item[data-cat],
html.light-mode .discover-card-item.rated,
html.light-mode .discover-card.discover-card-item.rated,
html.light-mode a.explore-hub-card,
html.light-mode a.explore-hub-card:visited,
html.light-mode .discover-sub > h2:first-of-type,
html.light-mode .discover-sub .card.jumpa,
html.light-mode .discover-sub .jumpa {
	border-top: 1px solid rgba(15,23,42,.10) !important;
}
html.light-mode .discover-card.discover-card-item.rated-up,
html.light-mode .discover-card.discover-card-item.rated-neutral,
html.light-mode .discover-card.discover-card-item.rated-down,
html.light-mode .discover-card-item.rated-up,
html.light-mode .discover-card-item.rated-neutral,
html.light-mode .discover-card-item.rated-down,
html.light-mode .discover-card-social.rated-up,
html.light-mode .discover-card-social.rated-neutral,
html.light-mode .discover-card-social.rated-down {
	border: 1px solid rgba(15,23,42,.10) !important;
	border-color: rgba(15,23,42,.10) !important;
	box-shadow: 0 4px 14px -8px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.78) !important;
}

/* V6.9 patch 293 — Local cards: varied, compact placeholders by place type. */
.discover-card-item[data-cat="local"].local-visual-coffee { --dc-media-a:#7c3f1d; --dc-media-b:#0f766e; --local-angle:132deg; }
.discover-card-item[data-cat="local"].local-visual-dining { --dc-media-a:#f97316; --dc-media-b:#dc2626; --local-angle:138deg; }
.discover-card-item[data-cat="local"].local-visual-parks { --dc-media-a:#16a34a; --dc-media-b:#0f766e; --local-angle:128deg; }
.discover-card-item[data-cat="local"].local-visual-night { --dc-media-a:#7c3aed; --dc-media-b:#1d4ed8; --local-angle:144deg; }
.discover-card-item[data-cat="local"].local-visual-pets { --dc-media-a:#06b6d4; --dc-media-b:#16a34a; --local-angle:136deg; }
.discover-card-item[data-cat="local"].local-visual-shops { --dc-media-a:#db2777; --dc-media-b:#f97316; --local-angle:130deg; }
.discover-card-item[data-cat="local"].local-visual-fitness { --dc-media-a:#2563eb; --dc-media-b:#14b8a6; --local-angle:140deg; }
.discover-card-item[data-cat="local"].local-visual-wellness { --dc-media-a:#14b8a6; --dc-media-b:#7c3aed; --local-angle:132deg; }
.discover-card-item[data-cat="local"].local-visual-arts { --dc-media-a:#ec4899; --dc-media-b:#7c3aed; --local-angle:142deg; }
.discover-card-item[data-cat="local"].local-visual-auto { --dc-media-a:#475569; --dc-media-b:#2563eb; --local-angle:135deg; }
.discover-card-item[data-cat="local"].local-visual-stay { --dc-media-a:#0ea5e9; --dc-media-b:#6366f1; --local-angle:129deg; }
.discover-card-item[data-cat="local"].local-visual-civic { --dc-media-a:#64748b; --dc-media-b:#0f766e; --local-angle:137deg; }
.discover-card-item[data-cat="local"].local-visual-services { --dc-media-a:#334155; --dc-media-b:#7c3aed; --local-angle:133deg; }
.discover-card-item[data-cat="local"].local-visual-place { --dc-media-a:#22c55e; --dc-media-b:#15803d; --local-angle:135deg; }
.discover-card-item[data-cat="local"].local-palette-0 { --dc-media-a:#7c3aed; --dc-media-b:#1d4ed8; }
.discover-card-item[data-cat="local"].local-palette-1 { --dc-media-a:#db2777; --dc-media-b:#7c3aed; }
.discover-card-item[data-cat="local"].local-palette-2 { --dc-media-a:#0ea5e9; --dc-media-b:#0f766e; }
.discover-card-item[data-cat="local"].local-palette-3 { --dc-media-a:#f97316; --dc-media-b:#dc2626; }
.discover-card-item[data-cat="local"].local-palette-4 { --dc-media-a:#334155; --dc-media-b:#0f766e; }
.discover-card-item[data-cat="local"].local-palette-5 { --dc-media-a:#2563eb; --dc-media-b:#14b8a6; }
.discover-card-item[data-cat="local"].local-tone-1 { --local-angle:126deg; --local-grid-size:30px; }
.discover-card-item[data-cat="local"].local-tone-2 { --local-angle:146deg; --local-grid-size:38px; }
.discover-card-item[data-cat="local"].local-tone-3 { --local-angle:118deg; --local-grid-size:42px; }
.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank {
	aspect-ratio: auto !important;
	height: clamp(104px, 11vw, 132px) !important;
	min-height: 104px !important;
	max-height: 132px !important;
	background:
		linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
		linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px),
		linear-gradient(115deg, rgba(255,255,255,.18), transparent 42%),
		linear-gradient(var(--local-angle, 135deg), var(--dc-media-a), var(--dc-media-b)) !important;
	background-size: var(--local-grid-size, 34px) var(--local-grid-size, 34px), var(--local-grid-size, 34px) var(--local-grid-size, 34px), auto, auto !important;
}
.discover-card-media .local-map-preview,
.subpage-detail-media .local-map-preview {
	--local-map-a: var(--dc-media-a, #22c55e);
	--local-map-b: var(--dc-media-b, #15803d);
	--local-map-road: rgba(248,250,252,.88);
	--local-map-road-shadow: rgba(15,23,42,.18);
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
		linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px),
		linear-gradient(135deg, var(--local-map-a), var(--local-map-b));
	background-size: 42px 42px, 42px 42px, auto;
	color: #fff;
}
.local-map-preview.local-map-tone-1 { --local-map-a:#0ea5e9; --local-map-b:#0f766e; }
.local-map-preview.local-map-tone-2 { --local-map-a:#7c3aed; --local-map-b:#1d4ed8; }
.local-map-preview.local-map-tone-3 { --local-map-a:#f97316; --local-map-b:#dc2626; }
.local-map-preview.local-map-tone-4 { --local-map-a:#334155; --local-map-b:#0f766e; }
.local-map-preview.local-map-tone-5 { --local-map-a:#db2777; --local-map-b:#7c3aed; }
.local-map-preview .local-map-frame {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	filter: saturate(.9) contrast(1.04) brightness(.92);
	pointer-events: none;
}
.local-map-preview::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(15,23,42,.10), rgba(15,23,42,.30)),
		radial-gradient(circle at 50% 45%, transparent 0 30%, rgba(15,23,42,.18) 72%);
}
.local-map-preview .local-map-grid {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(28deg, transparent 0 46%, rgba(255,255,255,.12) 46% 48%, transparent 48% 100%),
		radial-gradient(circle at 18% 24%, rgba(255,255,255,.16), transparent 26%),
		radial-gradient(circle at 88% 72%, rgba(15,23,42,.16), transparent 34%);
	opacity: .9;
}
.local-map-preview .local-map-park {
	position: absolute;
	left: 8%;
	top: 14%;
	width: 34%;
	height: 44%;
	border-radius: 34% 58% 42% 54%;
	background: rgba(134,239,172,.34);
	border: 1px solid rgba(255,255,255,.22);
}
.local-map-preview .local-map-road {
	position: absolute;
	display: block;
	background: var(--local-map-road);
	box-shadow: 0 0 0 2px var(--local-map-road-shadow), 0 8px 18px -14px rgba(15,23,42,.72);
	z-index: 2;
}
.local-map-preview .local-map-road.is-main {
	left: -10%;
	top: 55%;
	width: 120%;
	height: 14px;
	border-radius: 999px;
	transform: rotate(-7deg);
}
.local-map-preview .local-map-road.is-cross {
	left: 58%;
	top: -12%;
	width: 13px;
	height: 126%;
	border-radius: 999px;
	transform: rotate(10deg);
}
.local-map-preview .local-map-road.is-diag {
	left: 8%;
	top: 27%;
	width: 86%;
	height: 10px;
	border-radius: 999px;
	transform: rotate(33deg);
	opacity: .76;
}
.local-map-preview .local-map-pin {
	position: absolute;
	left: 50%;
	top: 46%;
	width: 42px;
	height: 42px;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	background: linear-gradient(135deg, #ef4444, #b91c1c);
	border: 2px solid rgba(255,255,255,.92);
	box-shadow: 0 14px 28px -18px rgba(0,0,0,.72), 0 0 0 7px rgba(239,68,68,.16);
}
.local-map-preview .local-map-pin i {
	font-size: 18px;
	line-height: 1;
	color: #fff !important;
}
.local-map-preview .local-map-label {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 10px;
	z-index: 6;
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(15,23,42,.72);
	border: 1px solid rgba(255,255,255,.18);
	box-shadow: 0 12px 22px -18px rgba(0,0,0,.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.local-map-preview .local-map-label strong,
.local-map-preview .local-map-label small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}
.local-map-preview .local-map-label strong {
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}
.local-map-preview .local-map-label small {
	margin-left: auto;
	color: rgba(226,232,240,.82);
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.subpage-detail-media .local-map-preview {
	min-height: 220px;
	background-size: 58px 58px, 58px 58px, auto;
}
.subpage-detail-media .local-map-preview .local-map-pin {
	width: 54px;
	height: 54px;
}
.subpage-detail-media .local-map-preview .local-map-pin i { font-size: 23px; }
.subpage-detail-media .local-map-preview .local-map-label {
	left: 16px;
	right: 16px;
	bottom: 14px;
	padding: 9px 13px;
}
.subpage-detail-media .local-map-preview .local-map-label strong { font-size: 14px; }
html.light-mode .local-map-preview .local-map-label {
	background: rgba(255,255,255,.82);
	border-color: rgba(15,23,42,.10);
	box-shadow: 0 12px 22px -20px rgba(15,23,42,.30);
}
html.light-mode .local-map-preview .local-map-label strong { color: #111827; }
html.light-mode .local-map-preview .local-map-label small { color: #4b5563; }
.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji {
	width: 54px !important;
	height: 54px !important;
	border-radius: 16px !important;
	font-size: 25px !important;
	background: rgba(255,255,255,.18) !important;
	border-color: rgba(255,255,255,.28) !important;
}
@media (max-width: 640px) {
	.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank {
		height: clamp(82px, 22vw, 106px) !important;
		min-height: 82px !important;
		max-height: 106px !important;
	}
	.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji {
		width: 42px !important;
		height: 42px !important;
		border-radius: 12px !important;
		font-size: 20px !important;
	}
}

/* V6.9 patch 297 — app/mobile-safe placeholder media for Music + Local. */
.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank,
.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
.discover-wrap[data-cat="place"] .discover-stream .discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank,
.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank {
	aspect-ratio: auto !important;
	height: clamp(96px, 10vw, 128px) !important;
	min-height: 96px !important;
	max-height: 128px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
}
.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank {
	background:
		linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
		linear-gradient(180deg, rgba(255,255,255,.07) 1px, transparent 1px),
		linear-gradient(115deg, rgba(255,255,255,.18), transparent 42%),
		linear-gradient(135deg, var(--dc-media-a), var(--dc-media-b)) !important;
	background-size: 34px 34px, 34px 34px, auto, auto !important;
}
.discover-card-item[data-cat="music"] .discover-card-media .meme-zoom-trigger:has(img[src*="img/images/music/"]),
.discover-card-item[data-cat="music"] .discover-card-media:has(img[src*="img/images/music/"]) {
	background:
		linear-gradient(115deg, rgba(255,255,255,.12), transparent 42%),
		linear-gradient(135deg, var(--dc-media-a), var(--dc-media-b)) !important;
}
.discover-card-item[data-cat="music"] .discover-card-media img[src*="img/images/music/"],
.discover-card-item[data-cat="music"] .discover-card-media .meme-zoom-trigger img[src*="img/images/music/"] {
	object-fit: contain !important;
	object-position: center center !important;
	background: transparent !important;
}
.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
.discover-wrap[data-cat] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
.discover-wrap[data-cat] .discover-stream .discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji {
	width: clamp(44px, 4.4vw, 58px) !important;
	height: clamp(44px, 4.4vw, 58px) !important;
	border-radius: clamp(12px, 1.2vw, 16px) !important;
	font-size: clamp(21px, 2.2vw, 28px) !important;
	line-height: 1 !important;
	flex: 0 0 auto !important;
	max-width: calc(100% - 28px) !important;
	max-height: calc(100% - 28px) !important;
}
.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank .discover-card-emoji i,
.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji i {
	font-size: 1em !important;
	line-height: 1 !important;
}
@media (max-width: 640px) {
	.discover-card-item[data-cat="music"] .discover-card-media,
	.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
	.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank,
	.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
	.discover-wrap[data-cat="place"] .discover-stream .discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank {
		height: clamp(74px, 20vw, 96px) !important;
		min-height: 74px !important;
		max-height: 96px !important;
	}
	.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-wrap[data-cat] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-wrap[data-cat] .discover-stream .discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media.discover-card-media-blank .discover-card-emoji,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="local"] .discover-card-media.discover-card-media-blank .discover-card-emoji {
		width: 38px !important;
		height: 38px !important;
		border-radius: 11px !important;
		font-size: 19px !important;
		max-width: calc(100% - 20px) !important;
		max-height: calc(100% - 20px) !important;
	}
}

/* ============================================================
   V6.9 patch 296 - Social recommendation card refresh
   ============================================================ */
.discover-stream > .discover-card.discover-card-social,
.discover-wrap-signal-board #discover-stream > .discover-card.discover-card-social,
.discover-stream[data-mixed="1"] > .discover-card.discover-card-social {
	align-self: start !important;
	min-height: 0 !important;
}

.discover-card.discover-card-social {
	gap: 10px !important;
	padding: clamp(12px, 1.8vw, 16px) !important;
	border-radius: clamp(18px, 2vw, 22px) !important;
	background:
		linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 34%),
		linear-gradient(135deg, rgba(124,58,237,.10), rgba(20,184,166,.045) 52%, rgba(249,115,22,.035)),
		var(--surface, #101525) !important;
	border-color: rgba(167,139,250,.22) !important;
	box-shadow: 0 16px 38px -30px rgba(0,0,0,.82), inset 0 1px 0 rgba(255,255,255,.055) !important;
	color: var(--text-primary, #f8fafc);
}

.discover-card.discover-card-social .discover-card-social-head,
.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-head,
.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-head {
	grid-template-columns: clamp(48px, 4.8vw, 58px) minmax(0, 1fr) !important;
	gap: 7px 12px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.discover-card.discover-card-social .discover-card-social-head .discover-card-avatar {
	width: clamp(48px, 4.8vw, 58px) !important;
	height: clamp(48px, 4.8vw, 58px) !important;
	box-shadow: 0 0 0 3px rgba(139,92,246,.44), 0 12px 26px -18px rgba(0,0,0,.90) !important;
}

.discover-card.discover-card-social .discover-card-social-meta { gap: 4px !important; }

.discover-card.discover-card-social .discover-card-social-name {
	gap: 4px 7px !important;
	font-size: clamp(15px, 1.55vw, 17px) !important;
	font-weight: 850 !important;
	line-height: 1.14 !important;
}

.discover-card.discover-card-social .discover-social-namelink,
.discover-card.discover-card-social .discover-social-namelink:visited {
	color: #a78bfa !important;
	text-decoration: none !important;
}
.discover-card.discover-card-social .discover-social-namelink:hover { color: #c4b5fd !important; }

.discover-card.discover-card-social .discover-match-pct {
	padding: 3px 9px !important;
	border: 1px solid rgba(167,139,250,.24);
	background: rgba(124,58,237,.20) !important;
	color: #c4b5fd !important;
	font-size: 12px !important;
	font-weight: 850 !important;
	line-height: 1 !important;
}

.discover-card.discover-card-social .discover-card-social-time {
	gap: 4px 6px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: rgba(203,213,225,.76) !important;
}
.discover-card.discover-card-social .discover-verb { font-weight: 850 !important; }

.discover-card.discover-card-social .discover-card-social-head .discover-follow-head {
	min-height: 32px !important;
	padding: 6px 12px !important;
	border-color: rgba(45,212,191,.46) !important;
	background: rgba(20,184,166,.14) !important;
	color: rgba(248,250,252,.95) !important;
	font-size: 12px !important;
	font-weight: 850 !important;
}
.discover-card.discover-card-social .discover-card-social-head .discover-follow-head:not(.connect-tile-following) {
	border-color: rgba(167,139,250,.42) !important;
	background: rgba(124,58,237,.14) !important;
}

.discover-card.discover-card-social .discover-card-social-item,
.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
	display: grid !important;
	grid-template-columns: clamp(54px, 5.8vw, 68px) minmax(0, 1fr) auto !important;
	align-items: center !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	border-radius: 17px !important;
	background:
		linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
		rgba(15,23,42,.46) !important;
	border-color: rgba(148,163,184,.20) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.055) !important;
}

.discover-card.discover-card-social .discover-card-social-thumb,
.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-thumb,
.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-thumb {
	width: clamp(54px, 5.8vw, 68px) !important;
	height: clamp(54px, 5.8vw, 68px) !important;
	border-radius: 14px !important;
	font-size: clamp(22px, 2.1vw, 28px) !important;
	background:
		linear-gradient(135deg, rgba(167,139,250,.24), rgba(34,211,238,.13)),
		rgba(15,23,42,.72) !important;
	border: 1px solid rgba(255,255,255,.12) !important;
}

.discover-card.discover-card-social .discover-card-social-info { min-width: 0 !important; }
.discover-card.discover-card-social .discover-card-social-cat {
	font-size: 11px !important;
	font-weight: 900 !important;
	letter-spacing: .07em !important;
	color: #a78bfa !important;
}

.discover-card.discover-card-social .discover-card-social-title,
.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-title,
.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-title {
	margin-top: 3px !important;
	font-size: clamp(15px, 1.55vw, 17px) !important;
	font-weight: 850 !important;
	line-height: 1.18 !important;
	color: rgba(248,250,252,.96) !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
}

.discover-card.discover-card-social .discover-card-social-go {
	width: 30px !important;
	height: 30px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 999px !important;
	background: rgba(255,255,255,.045) !important;
	border: 1px solid rgba(255,255,255,.08) !important;
	color: rgba(226,232,240,.70) !important;
	opacity: 1 !important;
}

.discover-card.discover-card-social .discover-why,
.discover-wrap-signal-board #discover-stream .discover-card-social .discover-why,
.discover-stream[data-mixed="1"] .discover-card-social .discover-why {
	align-self: flex-start !important;
	margin: 0 !important;
}
.discover-card.discover-card-social .discover-why-btn {
	padding: 6px 10px !important;
	background: rgba(124,58,237,.12) !important;
	border-color: rgba(167,139,250,.25) !important;
	color: rgba(226,232,240,.84) !important;
}

.discover-card.discover-card-social .discover-card-foot,
.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-foot,
.discover-stream[data-mixed="1"] .discover-card-social .discover-card-foot {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	align-items: center !important;
	gap: 10px 12px !important;
	margin-top: 0 !important;
	padding: 10px 0 0 !important;
	border-top-color: rgba(148,163,184,.16) !important;
}

.discover-card.discover-card-social .discover-card-prompt {
	min-width: 0 !important;
	text-align: left !important;
	font-size: 12px !important;
	font-weight: 850 !important;
	letter-spacing: .03em !important;
	color: rgba(203,213,225,.74) !important;
}

.discover-card.discover-card-social .discover-card-actions,
.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-actions,
.discover-stream[data-mixed="1"] .discover-card-social .discover-card-actions {
	justify-content: flex-end !important;
	gap: 8px !important;
	flex-wrap: nowrap !important;
}

.discover-card.discover-card-social .discover-rate,
.discover-card.discover-card-social .discover-skip,
.discover-card.discover-card-social .discover-card-save,
.discover-card.discover-card-social .discover-card-more {
	width: 38px !important;
	height: 38px !important;
	background: rgba(15,23,42,.42) !important;
	border-color: rgba(148,163,184,.24) !important;
	color: rgba(226,232,240,.76) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
}
.discover-card.discover-card-social .discover-rate.up:hover,
.discover-card.discover-card-social .discover-rate.up.active { background: var(--green, #22c55e) !important; color: #fff !important; border-color: var(--green, #22c55e) !important; }
.discover-card.discover-card-social .discover-rate.neutral:hover,
.discover-card.discover-card-social .discover-rate.neutral.active { background: #f59e0b !important; color: #111827 !important; border-color: #f59e0b !important; }
.discover-card.discover-card-social .discover-rate.down:hover,
.discover-card.discover-card-social .discover-rate.down.active { background: #dc2626 !important; color: #fff !important; border-color: #dc2626 !important; }

html.light-mode .discover-card.discover-card-social {
	background:
		linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.76) 36%),
		linear-gradient(135deg, rgba(124,58,237,.075), rgba(20,184,166,.07) 58%, rgba(249,115,22,.055)),
		#ffffff !important;
	border-color: rgba(15,23,42,.11) !important;
	box-shadow: 0 14px 32px -26px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.90) !important;
}
html.light-mode .discover-card.discover-card-social .discover-social-namelink,
html.light-mode .discover-card.discover-card-social .discover-social-namelink:visited { color: #6d28d9 !important; }
html.light-mode .discover-card.discover-card-social .discover-social-namelink:hover { color: #4c1d95 !important; }
html.light-mode .discover-card.discover-card-social .discover-match-pct {
	background: rgba(124,58,237,.10) !important;
	border-color: rgba(124,58,237,.18) !important;
	color: #6d28d9 !important;
}
html.light-mode .discover-card.discover-card-social .discover-card-social-time,
html.light-mode .discover-card.discover-card-social .discover-card-prompt { color: #64748b !important; }
html.light-mode .discover-card.discover-card-social .discover-card-social-item,
html.light-mode .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
html.light-mode .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
	background: rgba(248,250,252,.88) !important;
	border-color: rgba(15,23,42,.09) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.84) !important;
}
html.light-mode .discover-card.discover-card-social .discover-card-social-title,
html.light-mode .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-title,
html.light-mode .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-title { color: #111827 !important; }
html.light-mode .discover-card.discover-card-social .discover-card-social-cat { color: #6d28d9 !important; }
html.light-mode .discover-card.discover-card-social .discover-card-social-go {
	background: rgba(15,23,42,.035) !important;
	border-color: rgba(15,23,42,.09) !important;
	color: #64748b !important;
}
html.light-mode .discover-card.discover-card-social .discover-why-btn {
	background: rgba(124,58,237,.075) !important;
	border-color: rgba(124,58,237,.16) !important;
	color: #475569 !important;
}
html.light-mode .discover-card.discover-card-social .discover-card-foot { border-top-color: rgba(15,23,42,.10) !important; }
html.light-mode .discover-card.discover-card-social .discover-rate,
html.light-mode .discover-card.discover-card-social .discover-skip,
html.light-mode .discover-card.discover-card-social .discover-card-save,
html.light-mode .discover-card.discover-card-social .discover-card-more {
	background: rgba(255,255,255,.78) !important;
	border-color: rgba(15,23,42,.13) !important;
	color: #475569 !important;
}
html.light-mode .discover-card.discover-card-social .discover-rate.up:hover,
html.light-mode .discover-card.discover-card-social .discover-rate.up.active { background: var(--green, #16a34a) !important; color: #fff !important; border-color: var(--green, #16a34a) !important; }
html.light-mode .discover-card.discover-card-social .discover-rate.neutral:hover,
html.light-mode .discover-card.discover-card-social .discover-rate.neutral.active { background: #f59e0b !important; color: #111827 !important; border-color: #f59e0b !important; }
html.light-mode .discover-card.discover-card-social .discover-rate.down:hover,
html.light-mode .discover-card.discover-card-social .discover-rate.down.active { background: #dc2626 !important; color: #fff !important; border-color: #dc2626 !important; }

@media (min-width: 900px) {
	.discover-card.discover-card-social .discover-card-foot,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-foot,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-foot {
		grid-template-columns: minmax(96px, 1fr) auto !important;
	}
}

@media (max-width: 520px) {
	.discover-card.discover-card-social { padding: 12px !important; gap: 9px !important; }
	.discover-card.discover-card-social .discover-card-social-head,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-head,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-head {
		grid-template-columns: 46px minmax(0, 1fr) !important;
		gap: 6px 10px !important;
	}
	.discover-card.discover-card-social .discover-card-social-head .discover-card-avatar {
		width: 46px !important;
		height: 46px !important;
	}
	.discover-card.discover-card-social .discover-card-social-name { font-size: 15px !important; }
	.discover-card.discover-card-social .discover-card-social-time { font-size: 12px !important; }
	.discover-card.discover-card-social .discover-card-social-item,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
		grid-template-columns: 52px minmax(0, 1fr) 28px !important;
		gap: 10px !important;
		padding: 10px !important;
		border-radius: 16px !important;
	}
	.discover-card.discover-card-social .discover-card-social-thumb,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-thumb,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-thumb {
		width: 52px !important;
		height: 52px !important;
		border-radius: 13px !important;
	}
	.discover-card.discover-card-social .discover-card-social-title,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-title,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-title { font-size: 15px !important; }
	.discover-card.discover-card-social .discover-card-foot,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-foot,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-foot {
		grid-template-columns: 1fr !important;
		gap: 8px !important;
	}
	.discover-card.discover-card-social .discover-card-prompt { text-align: center !important; }
	.discover-card.discover-card-social .discover-card-actions,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-actions,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-actions {
		justify-content: space-between !important;
		width: 100% !important;
		gap: 7px !important;
	}
	.discover-card.discover-card-social .discover-rate,
	.discover-card.discover-card-social .discover-skip,
	.discover-card.discover-card-social .discover-card-save,
	.discover-card.discover-card-social .discover-card-more {
		width: 42px !important;
		height: 42px !important;
	}
}

@media (max-width: 360px) {
	.discover-card.discover-card-social .discover-card-social-item,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
		grid-template-columns: 46px minmax(0, 1fr) 24px !important;
		gap: 8px !important;
	}
	.discover-card.discover-card-social .discover-card-social-thumb,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-thumb,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-thumb {
		width: 46px !important;
		height: 46px !important;
	}
	.discover-card.discover-card-social .discover-rate,
	.discover-card.discover-card-social .discover-skip,
	.discover-card.discover-card-social .discover-card-save,
	.discover-card.discover-card-social .discover-card-more {
		width: 39px !important;
		height: 39px !important;
	}
}

/* Patch 296b - keep social cards compact inside narrow desktop grid cells. */
body .discover-stream[data-mixed="1"] > .discover-card.discover-card-social,
body .discover-wrap-signal-board #discover-stream > .discover-card.discover-card-social,
body .discover-stream > .discover-card.discover-card-social {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	align-self: start !important;
	justify-content: flex-start !important;
}

body .discover-card.discover-card-social {
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
}

body .discover-card.discover-card-social .discover-card-foot,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-foot,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-foot {
	grid-template-columns: 1fr !important;
	align-items: stretch !important;
	align-self: stretch !important;
	gap: 8px !important;
	margin-top: 0 !important;
	padding-top: 10px !important;
}

body .discover-card.discover-card-social .discover-card-prompt {
	text-align: center !important;
}

body .discover-card.discover-card-social .discover-card-actions,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-actions,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-actions {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(36px, 1fr)) !important;
	justify-items: center !important;
	align-items: center !important;
	justify-content: stretch !important;
	width: 100% !important;
	min-width: 0 !important;
	gap: 7px !important;
}

body .discover-card.discover-card-social .discover-card-more {
	margin-left: 0 !important;
}

/* Patch 307b - Signal Board rows should align vertically on desktop/tablet.
   Patch 296b keeps social cards compact everywhere else; this narrower rule
   restores row stretch only inside the mixed Signal Board grid. */
@media (min-width: 681px) {
	body .discover-wrap-signal-board #discover-stream.discover-stream {
		align-items: stretch !important;
	}
	body .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-social {
		align-self: stretch !important;
		height: 100% !important;
		min-height: 332px !important;
		justify-content: flex-start !important;
	}
	body .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-social .discover-card-foot {
		margin-top: auto !important;
	}
}

/* Patch 307c - the refreshed social-card avatar read like a giant badge in
   the desktop Signal Board. Keep the real member avatar, but quiet the ring
   and size so the activity card balances with neighboring stream cards. */
@media (min-width: 681px) {
	body .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-social .discover-card-social-head {
		display: grid !important;
		grid-template-columns: 40px minmax(0, 1fr) auto !important;
		align-items: center !important;
	}
	body .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-social .discover-card-social-head .discover-card-avatar {
		width: 40px !important;
		height: 40px !important;
		box-shadow: 0 0 0 1px rgba(167,139,250,.30), 0 8px 18px -16px rgba(0,0,0,.78) !important;
	}
}

/* Patch 307d - make social cards read as recommendation sources, not generic
   activity. The compact source line pairs the person with the item below. */
.discover-card.discover-card-social .discover-card-social-source {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 850;
}
.discover-card.discover-card-social .discover-card-social-signal {
	display: grid;
	gap: 3px;
	padding: 10px 12px;
	border-radius: 15px;
	background: rgba(124,58,237,.10);
	border: 1px solid rgba(167,139,250,.18);
}
.discover-card.discover-card-social .discover-card-social-signal-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #a78bfa;
}
.discover-card.discover-card-social .discover-card-social-signal strong {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.16;
	color: rgba(248,250,252,.96);
}
.discover-card.discover-card-social .discover-card-social-signal.verb-up {
	background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(124,58,237,.09));
	border-color: rgba(34,197,94,.24);
}
.discover-card.discover-card-social .discover-card-social-signal.verb-up .discover-card-social-signal-kicker,
.discover-card.discover-card-social .discover-card-social-source.verb-up {
	color: #86efac;
}
.discover-card.discover-card-social .discover-card-social-signal.verb-neutral .discover-card-social-signal-kicker,
.discover-card.discover-card-social .discover-card-social-source.verb-neutral {
	color: #fbbf24;
}
.discover-card.discover-card-social .discover-card-social-signal.verb-down .discover-card-social-signal-kicker,
.discover-card.discover-card-social .discover-card-social-source.verb-down {
	color: #fb923c;
}
html.light-mode .discover-card.discover-card-social .discover-card-social-signal {
	background: rgba(124,58,237,.06);
	border-color: rgba(124,58,237,.14);
}
html.light-mode .discover-card.discover-card-social .discover-card-social-signal strong {
	color: #111827;
}
html.light-mode .discover-card.discover-card-social .discover-card-social-signal-kicker { color: #6d28d9; }
html.light-mode .discover-card.discover-card-social .discover-card-social-signal.verb-up {
	background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(124,58,237,.05));
	border-color: rgba(22,163,74,.18);
}
html.light-mode .discover-card.discover-card-social .discover-card-social-signal.verb-up .discover-card-social-signal-kicker,
html.light-mode .discover-card.discover-card-social .discover-card-social-source.verb-up { color: #15803d; }

/* Patch 311 - social recommendation cards: one compact recommendation story. */
.discover-card.discover-card-social .discover-card-social-source {
	font-size: .96em !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.discover-card.discover-card-social .discover-card-social-signal {
	display: none !important;
}
.discover-card.discover-card-social .discover-card-social-item,
.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
	padding: 9px 10px !important;
	border-radius: 15px !important;
}
.discover-card.discover-card-social .discover-card-foot,
body .discover-card.discover-card-social .discover-card-foot,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-foot,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-foot {
	padding-top: 8px !important;
}
.discover-card.discover-card-social .discover-card-prompt,
body .discover-card.discover-card-social .discover-card-prompt {
	font-size: 11.5px !important;
	font-weight: 850 !important;
	letter-spacing: .02em !important;
}

@media (max-width: 520px) {
	.discover-card.discover-card-social .discover-card-social-item,
	.discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
	.discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
		padding: 9px !important;
	}
}

/* Patch 312 - regular stream cards should stay compact and scan as content. */
body .discover-wrap-signal-board #discover-stream.discover-stream,
body .discover-stream[data-mixed="1"] {
	align-items: start !important;
}
body .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card,
body .discover-stream[data-mixed="1"] > .discover-card {
	align-self: start !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
}
body .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card .discover-card-body,
body .discover-stream[data-mixed="1"] > .discover-card .discover-card-body {
	flex: 0 1 auto !important;
}
body .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card .discover-card-foot,
body .discover-stream[data-mixed="1"] > .discover-card .discover-card-foot {
	margin-top: 8px !important;
	padding-top: 8px !important;
}
body .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card .discover-why,
body .discover-stream[data-mixed="1"] > .discover-card .discover-why {
	margin: 8px 0 0 !important;
}
body .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card:not(.rated) .discover-card-prompt,
body .discover-stream[data-mixed="1"] > .discover-card:not(.rated) .discover-card-prompt {
	font-size: 11.5px !important;
	font-weight: 850 !important;
	letter-spacing: .02em !important;
}

/* Patch 313 - Stream Signal Board color system.
   Keep per-category content accents, then use a small shared palette for board
   meaning: cyan = wayfinding/info, violet = primary/selected, mint = positive
   social signal, amber = prompts/challenges. */
body.page-discover .discover-wrap-signal-board {
	--stream-cyan: oklch(78% 0.12 220);
	--stream-cyan-soft: oklch(78% 0.12 220 / .12);
	--stream-cyan-line: oklch(78% 0.12 220 / .34);
	--stream-violet: oklch(64% 0.22 288);
	--stream-violet-soft: oklch(64% 0.22 288 / .12);
	--stream-violet-line: oklch(64% 0.22 288 / .34);
	--stream-mint: oklch(80% 0.13 154);
	--stream-mint-soft: oklch(80% 0.13 154 / .12);
	--stream-mint-line: oklch(80% 0.13 154 / .34);
	--stream-amber: oklch(78% 0.15 74);
	--stream-amber-soft: oklch(78% 0.15 74 / .13);
	--stream-amber-line: oklch(78% 0.15 74 / .38);
	--weird-rail-a: var(--stream-cyan);
	--weird-rail-b: var(--stream-violet);
	--weird-rail-c: var(--stream-amber);
}
html.light-mode body.page-discover .discover-wrap-signal-board {
	--stream-cyan: oklch(47% 0.12 220);
	--stream-cyan-soft: oklch(78% 0.12 220 / .14);
	--stream-cyan-line: oklch(47% 0.12 220 / .24);
	--stream-violet: oklch(48% 0.22 288);
	--stream-violet-soft: oklch(64% 0.22 288 / .10);
	--stream-violet-line: oklch(48% 0.22 288 / .24);
	--stream-mint: oklch(48% 0.12 158);
	--stream-mint-soft: oklch(80% 0.13 154 / .14);
	--stream-mint-line: oklch(48% 0.12 158 / .24);
	--stream-amber: oklch(53% 0.14 66);
	--stream-amber-soft: oklch(78% 0.15 74 / .16);
	--stream-amber-line: oklch(53% 0.14 66 / .28);
}

body.page-discover .discover-wrap-signal-board .discover-briefing {
	background:
		radial-gradient(circle at 8% 0%, var(--stream-cyan-soft), transparent 30%),
		radial-gradient(circle at 96% 8%, var(--stream-amber-soft), transparent 32%),
		linear-gradient(135deg, rgba(12,18,38,.96), rgba(23,22,46,.94) 52%, rgba(20,37,48,.94)) !important;
	border-color: color-mix(in srgb, var(--stream-cyan) 34%, rgba(167,139,250,.22)) !important;
	box-shadow: 0 20px 48px -36px rgba(0,0,0,.90), 0 1px 0 rgba(255,255,255,.07) inset !important;
}
body.page-discover .discover-wrap-signal-board > .discover-greet.discover-greet-combined {
	background:
		radial-gradient(circle at 8% 0%, var(--stream-cyan-soft), transparent 30%),
		radial-gradient(circle at 96% 8%, var(--stream-amber-soft), transparent 32%),
		linear-gradient(135deg, rgba(12,18,38,.96), rgba(23,22,46,.94) 52%, rgba(20,37,48,.94)) !important;
	border-color: color-mix(in srgb, var(--stream-cyan) 34%, rgba(167,139,250,.22)) !important;
	box-shadow: 0 20px 48px -36px rgba(0,0,0,.90), 0 1px 0 rgba(255,255,255,.07) inset !important;
}
body.page-discover .discover-wrap-signal-board .discover-briefing::after {
	background: linear-gradient(90deg, var(--stream-cyan-soft), transparent 44%, var(--stream-amber-soft)) !important;
}
body.page-discover .discover-wrap-signal-board .discover-briefing .discover-greet.discover-greet-combined {
	background: transparent !important;
	border-bottom-color: color-mix(in srgb, var(--stream-cyan) 22%, transparent) !important;
}
body.page-discover .discover-wrap-signal-board .discover-greet-hi,
body.page-discover .discover-wrap-signal-board .discover-section-head h2 {
	color: oklch(97% 0.02 240) !important;
}
body.page-discover .discover-wrap-signal-board .discover-greet-tag,
body.page-discover .discover-wrap-signal-board .discover-section-sub {
	color: rgba(226,232,240,.76) !important;
}
body.page-discover .discover-wrap-signal-board .discover-greet-tag i,
body.page-discover .discover-wrap-signal-board .discover-section-head h2 i { color: var(--stream-cyan) !important; }

body.page-discover .discover-wrap-signal-board .discover-greet-chip,
body.page-discover .discover-wrap-signal-board .discover-greet-stats-toggle,
body.page-discover .discover-wrap-signal-board .discover-bar-stat {
	background: rgba(255,255,255,.065) !important;
	border-color: color-mix(in srgb, var(--stream-cyan) 22%, rgba(255,255,255,.10)) !important;
	color: rgba(248,250,252,.92) !important;
}
body.page-discover .discover-wrap-signal-board .discover-greet-chip.is-green,
body.page-discover .discover-wrap-signal-board .discover-greet-pop.is-green {
	background: linear-gradient(135deg, var(--stream-mint-soft), rgba(255,255,255,.05)) !important;
	border-color: var(--stream-mint-line) !important;
}
body.page-discover .discover-wrap-signal-board .discover-greet-chip.is-green i { color: var(--stream-mint) !important; }
body.page-discover .discover-wrap-signal-board .discover-greet-chip.is-orange,
body.page-discover .discover-wrap-signal-board .discover-greet-pop.is-daily-pulse {
	background: linear-gradient(135deg, var(--stream-amber-soft), rgba(255,255,255,.045)) !important;
	border-color: var(--stream-amber-line) !important;
}
body.page-discover .discover-wrap-signal-board .discover-greet-chip.is-orange i { color: var(--stream-amber) !important; }
body.page-discover .discover-wrap-signal-board .discover-greet-chip.is-cyan i { color: var(--stream-cyan) !important; }
body.page-discover .discover-wrap-signal-board .discover-greet-chip.is-purple i { color: var(--stream-violet) !important; }
body.page-discover .discover-wrap-signal-board .discover-greet-chip.is-pop-open,
body.page-discover .discover-wrap-signal-board .discover-audience-pill.active {
	background: linear-gradient(135deg, var(--stream-violet), oklch(55% 0.18 265)) !important;
	border-color: var(--stream-violet-line) !important;
	color: #fff !important;
}
body.page-discover .discover-wrap-signal-board .discover-greet-chip.is-pop-open *,
body.page-discover .discover-wrap-signal-board .discover-audience-pill.active * { color: #fff !important; }

body.page-discover .discover-wrap-signal-board .discover-audience {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--stream-cyan) 13%, rgba(15,23,42,.72)), rgba(17,24,39,.48)),
		rgba(2,6,23,.24) !important;
	border-color: color-mix(in srgb, var(--stream-cyan) 24%, rgba(148,163,184,.16)) !important;
}
body.page-discover .discover-wrap-signal-board .discover-audience::before {
	background: linear-gradient(180deg, var(--stream-cyan), var(--stream-violet), var(--stream-amber)) !important;
}
body.page-discover .discover-wrap-signal-board .discover-audience-pill:not(.active) {
	background: rgba(2,6,23,.34) !important;
	border-color: color-mix(in srgb, var(--stream-cyan) 20%, rgba(148,163,184,.16)) !important;
	color: rgba(226,232,240,.82) !important;
}

body.page-discover .discover-wrap-signal-board .discover-section-head::after {
	background: linear-gradient(90deg, var(--stream-cyan), var(--stream-violet) 58%, transparent) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card {
	border-color: color-mix(in srgb, var(--stream-accent, #8b5cf6) 25%, rgba(167,139,250,.14)) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card-social { --stream-accent: var(--stream-mint); }
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card-cta { --stream-accent: var(--stream-amber); }
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card-ai { --stream-accent: var(--stream-violet); }
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .dcib-stream-card,
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-quiz-card-instream { --stream-accent: var(--stream-cyan); }
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item,
body.page-discover .discover-stream[data-mixed="1"] > .discover-card.discover-card-item {
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--stream-accent, #8b5cf6) 8%, rgba(15,23,42,.96)), rgba(17,24,39,.96)),
		var(--surface) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item::before {
	background: linear-gradient(90deg, var(--stream-accent, var(--stream-violet)), color-mix(in srgb, var(--stream-accent, #8b5cf6) 32%, transparent)) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-tag,
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-social-cat,
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-ai-type {
	background: color-mix(in srgb, var(--stream-accent, var(--stream-violet)) 24%, rgba(15,23,42,.78)) !important;
	border-color: color-mix(in srgb, var(--stream-accent, var(--stream-violet)) 45%, transparent) !important;
	color: #fff !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-tag i,
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-social-cat i,
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-ai-type i { color: #fff !important; }

body.page-discover .discover-wrap-signal-board #discover-stream > .discover-card-social,
body.page-discover .discover-stream[data-mixed="1"] > .discover-card-social,
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-social {
	background:
		linear-gradient(135deg, var(--stream-mint-soft), rgba(17,24,39,.96) 42%),
		var(--surface) !important;
	border-color: var(--stream-mint-line) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-ai,
body.page-discover .discover-stream[data-mixed="1"] > .discover-card-ai {
	background:
		linear-gradient(135deg, var(--stream-violet-soft), rgba(17,24,39,.96) 44%),
		var(--surface) !important;
	border-color: var(--stream-violet-line) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .dcib-stream-card,
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-quiz-card-instream {
	background:
		linear-gradient(135deg, var(--stream-cyan-soft), rgba(17,24,39,.96) 44%),
		var(--surface) !important;
	border-color: var(--stream-cyan-line) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-social-source.verb-up { color: var(--stream-mint) !important; }
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-social-source.verb-neutral { color: var(--stream-amber) !important; }
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-social-source.verb-down { color: #fb7185 !important; }
body.page-discover .discover-wrap-signal-board #discover-stream .discover-match-pct {
	background: var(--stream-mint-soft) !important;
	border-color: var(--stream-mint-line) !important;
	color: var(--stream-mint) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream .discover-why-btn,
body.page-discover .discover-wrap-signal-board #discover-stream .discover-why-panel {
	background: var(--stream-cyan-soft) !important;
	border-color: var(--stream-cyan-line) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream .discover-why-kicker,
body.page-discover .discover-wrap-signal-board #discover-stream .discover-why-list li i,
body.page-discover .discover-wrap-signal-board #discover-stream .discover-why-link { color: var(--stream-cyan) !important; }

body.page-discover .discover-wrap-signal-board #discover-stream > .discover-card-cta,
body.page-discover .discover-stream[data-mixed="1"] > .discover-card-cta,
body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-cta {
	background:
		linear-gradient(135deg, var(--stream-amber-soft), rgba(17,24,39,.96) 46%),
		var(--surface) !important;
	border-color: var(--stream-amber-line) !important;
}
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-cta-eyebrow,
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-cta-emoji i,
body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-cta-emoji { color: var(--stream-amber) !important; }

html.light-mode body.page-discover .discover-wrap-signal-board .discover-briefing {
	background:
		radial-gradient(circle at 8% 0%, var(--stream-cyan-soft), transparent 32%),
		radial-gradient(circle at 96% 8%, var(--stream-amber-soft), transparent 34%),
		linear-gradient(135deg, #ffffff, #f8fbff 58%, #fffaf2) !important;
	border-color: rgba(15,23,42,.10) !important;
	box-shadow: 0 18px 44px -34px rgba(15,23,42,.24), 0 1px 0 rgba(255,255,255,.96) inset !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board > .discover-greet.discover-greet-combined {
	background:
		radial-gradient(circle at 8% 0%, var(--stream-cyan-soft), transparent 32%),
		radial-gradient(circle at 96% 8%, var(--stream-amber-soft), transparent 34%),
		linear-gradient(135deg, #ffffff, #f8fbff 58%, #fffaf2) !important;
	border-color: rgba(15,23,42,.10) !important;
	box-shadow: 0 18px 44px -34px rgba(15,23,42,.24), 0 1px 0 rgba(255,255,255,.96) inset !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board .discover-greet-hi,
html.light-mode body.page-discover .discover-wrap-signal-board .discover-section-head h2 { color: #111827 !important; }
html.light-mode body.page-discover .discover-wrap-signal-board .discover-greet-tag,
html.light-mode body.page-discover .discover-wrap-signal-board .discover-section-sub { color: #5f6b7a !important; }
html.light-mode body.page-discover .discover-wrap-signal-board .discover-greet-chip,
html.light-mode body.page-discover .discover-wrap-signal-board .discover-greet-stats-toggle,
html.light-mode body.page-discover .discover-wrap-signal-board .discover-bar-stat,
html.light-mode body.page-discover .discover-wrap-signal-board .discover-audience-pill:not(.active) {
	background: rgba(255,255,255,.84) !important;
	border-color: rgba(15,23,42,.10) !important;
	color: #253244 !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board .discover-audience {
	background: linear-gradient(135deg, var(--stream-cyan-soft), rgba(255,255,255,.92)) !important;
	border-color: rgba(15,23,42,.10) !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item,
html.light-mode body.page-discover .discover-stream[data-mixed="1"] > .discover-card.discover-card-item {
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--stream-accent, #8b5cf6) 7%, #fff), #ffffff 64%) !important;
	border-color: color-mix(in srgb, var(--stream-accent, #8b5cf6) 20%, rgba(15,23,42,.10)) !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream > .discover-card-social,
html.light-mode body.page-discover .discover-stream[data-mixed="1"] > .discover-card-social,
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-social {
	background: linear-gradient(135deg, var(--stream-mint-soft), #ffffff 48%) !important;
	border-color: var(--stream-mint-line) !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-ai,
html.light-mode body.page-discover .discover-stream[data-mixed="1"] > .discover-card-ai {
	background: linear-gradient(135deg, var(--stream-violet-soft), #ffffff 48%) !important;
	border-color: var(--stream-violet-line) !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .dcib-stream-card,
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-quiz-card-instream {
	background: linear-gradient(135deg, var(--stream-cyan-soft), #ffffff 48%) !important;
	border-color: var(--stream-cyan-line) !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream > .discover-card-cta,
html.light-mode body.page-discover .discover-stream[data-mixed="1"] > .discover-card-cta,
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-cta {
	background: linear-gradient(135deg, var(--stream-amber-soft), #ffffff 48%) !important;
	border-color: var(--stream-amber-line) !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-tag,
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-social-cat,
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-ai-type {
	background: color-mix(in srgb, var(--stream-accent, var(--stream-violet)) 13%, #ffffff) !important;
	border-color: color-mix(in srgb, var(--stream-accent, var(--stream-violet)) 28%, rgba(15,23,42,.10)) !important;
	color: #172033 !important;
}
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-tag i,
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-social-cat i,
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream .discover-card-ai-type i { color: var(--stream-accent, var(--stream-violet)) !important; }
html.light-mode body.page-discover .discover-wrap-signal-board #discover-stream .discover-match-pct {
	color: var(--stream-mint) !important;
}

@media (max-width: 680px) {
	body.page-discover .discover-wrap-signal-board .discover-briefing { border-radius: 18px !important; }
	body.page-discover .discover-wrap-signal-board .discover-audience::before { height: 28px !important; }
	body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item,
	body.page-discover .discover-wrap-signal-board #discover-stream > .discover-card-social,
	body.page-discover .discover-wrap-signal-board #discover-stream > .discover-card-cta { border-radius: 18px !important; }
}

/* Patch 304 - keep the original generated music-art style, fix framing only. */
.discover-card-item[data-cat="music"] .discover-card-media,
.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media,
.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media {
	aspect-ratio: 16 / 9 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: 220px !important;
	background: #0f172a !important;
}

.discover-card-item[data-cat="music"].music-image-real .discover-card-media img[src*="img/images/music/"],
.discover-card-item[data-cat="music"].music-image-real .discover-card-media .meme-zoom-trigger img[src*="img/images/music/"] {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center 24% !important;
	background: transparent !important;
}

/* Patch 316 - app/mobile/tablet bottom nav should behave like anchored app chrome. */
@media (max-width: 1024px) {
	.weird-tabbar {
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		box-sizing: border-box !important;
		align-items: center !important;
		justify-content: space-around !important;
		min-height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
		padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(3px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)) !important;
		border: 0 !important;
		border-top: 1px solid rgba(255,255,255,0.10) !important;
		border-radius: 0 !important;
		background: linear-gradient(180deg, rgba(16,11,31,0.98), rgba(10,7,18,0.99)) !important;
		box-shadow: 0 -14px 34px -28px rgba(0,0,0,0.95), 0 -1px 0 rgba(167,139,250,0.18) inset, 0 1px 0 rgba(255,255,255,0.04) inset !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}
	html.light-mode .weird-tabbar {
		background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,245,255,0.99)) !important;
		border-top-color: rgba(31,41,55,0.14) !important;
		box-shadow: 0 -12px 28px -24px rgba(44,31,85,0.36), 0 -1px 0 rgba(124,58,237,0.10) inset !important;
	}
	.weird-tabbar-item {
		align-items: center !important;
		flex: 1 1 25% !important;
		justify-content: center !important;
		min-width: 0 !important;
		max-width: none !important;
		min-height: 54px !important;
		padding: 5px 2px 3px !important;
		border-radius: 13px !important;
		gap: 3px !important;
		letter-spacing: 0 !important;
		position: relative !important;
		isolation: isolate !important;
		box-shadow: none !important;
	}
	.weird-tabbar-item::after {
		content: "";
		position: absolute;
		left: 50%;
		top: 3px;
		width: 18px;
		height: 3px;
		border-radius: 999px;
		background: transparent;
		transform: translateX(-50%) scaleX(0.35);
		opacity: 0;
		transition: opacity .18s ease, transform .18s ease;
	}
	.weird-tabbar-item.is-active::after {
		background: linear-gradient(90deg, #22c55e, #a78bfa);
		box-shadow: 0 0 16px rgba(167,139,250,0.62);
		opacity: 1;
		transform: translateX(-50%) scaleX(1);
	}
	.weird-tabbar-item.is-active {
		background: transparent !important;
		box-shadow: none !important;
	}
	html.light-mode .weird-tabbar-item.is-active {
		background: transparent !important;
		box-shadow: none !important;
	}
	.weird-tabbar-icon {
		position: relative !important;
		width: 30px !important;
		height: 28px !important;
		font-size: 19px !important;
		border-radius: 12px !important;
		transition: background-color .18s ease, color .18s ease, transform .16s ease;
		z-index: 1;
	}
	.weird-tabbar-item.is-active .weird-tabbar-icon {
		background: rgba(124,58,237,0.18) !important;
		box-shadow: 0 8px 18px -14px rgba(124,58,237,0.82), 0 0 0 1px rgba(167,139,250,0.18) inset !important;
		transform: translateY(-1px);
	}
	.weird-tabbar-item.is-active .weird-tabbar-icon::before {
		display: none !important;
	}
	html.light-mode .weird-tabbar-item.is-active .weird-tabbar-icon {
		background: rgba(124,58,237,0.10) !important;
		box-shadow: 0 8px 18px -15px rgba(124,58,237,0.42), 0 0 0 1px rgba(124,58,237,0.12) inset !important;
	}
	.weird-tabbar-label {
		display: block !important;
		max-width: 100% !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: nowrap !important;
		font-size: 10.5px !important;
		font-weight: 760 !important;
		line-height: 1.05 !important;
		letter-spacing: 0 !important;
	}
	.weird-tabbar-badge {
		top: -3px !important;
		right: -10px !important;
	}
	body:has(.weird-tabbar) {
		padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
	}
	body:has(.weird-tabbar) footer#fbg.weird-native-footer {
		padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
	}
	body:has(.weird-tabbar) .weird-explore-sheet-card {
		bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
	}
	body.page-discover:has(.weird-tabbar) .discover-audience {
		bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
	}
	body:has(.weird-tabbar) #scrollUp,
	body:has(.weird-tabbar) .weird-footer-toast {
		bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
	}
	body:has(.weird-tabbar) .guest-sticky-cta {
		bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

body.is-native-app .weird-tabbar {
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	box-sizing: border-box !important;
	align-items: center !important;
	justify-content: space-around !important;
	min-height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
	padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(3px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)) !important;
	border: 0 !important;
	border-top: 1px solid rgba(255,255,255,0.10) !important;
	border-radius: 0 !important;
	background: linear-gradient(180deg, rgba(16,11,31,0.98), rgba(10,7,18,0.99)) !important;
	box-shadow: 0 -14px 34px -28px rgba(0,0,0,0.95), 0 -1px 0 rgba(167,139,250,0.18) inset, 0 1px 0 rgba(255,255,255,0.04) inset !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}
html.light-mode body.is-native-app .weird-tabbar {
	background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,245,255,0.99)) !important;
	border-top-color: rgba(31,41,55,0.14) !important;
	box-shadow: 0 -12px 28px -24px rgba(44,31,85,0.36), 0 -1px 0 rgba(124,58,237,0.10) inset !important;
}
body.is-native-app .weird-tabbar-item {
	align-items: center !important;
	flex: 1 1 25% !important;
	justify-content: center !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 54px !important;
	padding: 5px 2px 3px !important;
	border-radius: 13px !important;
	gap: 3px !important;
	letter-spacing: 0 !important;
	position: relative !important;
	isolation: isolate !important;
	box-shadow: none !important;
}
body.is-native-app .weird-tabbar-item::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 3px;
	width: 18px;
	height: 3px;
	border-radius: 999px;
	background: transparent;
	transform: translateX(-50%) scaleX(0.35);
	opacity: 0;
	transition: opacity .18s ease, transform .18s ease;
}
body.is-native-app .weird-tabbar-item.is-active::after {
	background: linear-gradient(90deg, #22c55e, #a78bfa);
	box-shadow: 0 0 16px rgba(167,139,250,0.62);
	opacity: 1;
	transform: translateX(-50%) scaleX(1);
}
body.is-native-app .weird-tabbar-item.is-active {
	background: transparent !important;
	box-shadow: none !important;
}
html.light-mode body.is-native-app .weird-tabbar-item.is-active {
	background: transparent !important;
	box-shadow: none !important;
}
body.is-native-app .weird-tabbar-icon {
	position: relative !important;
	width: 30px !important;
	height: 28px !important;
	font-size: 19px !important;
	border-radius: 12px !important;
	transition: background-color .18s ease, color .18s ease, transform .16s ease;
	z-index: 1;
}
body.is-native-app .weird-tabbar-item.is-active .weird-tabbar-icon {
	background: rgba(124,58,237,0.18) !important;
	box-shadow: 0 8px 18px -14px rgba(124,58,237,0.82), 0 0 0 1px rgba(167,139,250,0.18) inset !important;
	transform: translateY(-1px);
}
body.is-native-app .weird-tabbar-item.is-active .weird-tabbar-icon::before {
	display: none !important;
}
html.light-mode body.is-native-app .weird-tabbar-item.is-active .weird-tabbar-icon {
	background: rgba(124,58,237,0.10) !important;
	box-shadow: 0 8px 18px -15px rgba(124,58,237,0.42), 0 0 0 1px rgba(124,58,237,0.12) inset !important;
}
body.is-native-app .weird-tabbar-label {
	display: block !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	font-size: 10.5px !important;
	font-weight: 760 !important;
	line-height: 1.05 !important;
	letter-spacing: 0 !important;
}
body.is-native-app .weird-tabbar-badge {
	top: -3px !important;
	right: -10px !important;
}
body.is-native-app:has(.weird-tabbar) {
	padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}
body.is-native-app:has(.weird-tabbar) footer#fbg.weird-native-footer {
	padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
}
body.is-native-app:has(.weird-tabbar) .weird-explore-sheet-card {
	bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
}
body.is-native-app.page-discover:has(.weird-tabbar) .discover-audience {
	bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}
body.is-native-app:has(.weird-tabbar) #scrollUp,
body.is-native-app:has(.weird-tabbar) .weird-footer-toast {
	bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Streaming availability: movie/TV provider badges and Watch Tonight module. */
.streaming-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 1px 0 5px;
}
.streaming-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 22px;
	max-width: 100%;
	padding: 3px 7px;
	border-radius: 8px;
	border: 1px solid rgba(45, 212, 191, 0.22);
	background: rgba(20, 184, 166, 0.075);
	color: var(--text-primary, #f8fafc);
	font-size: 10.5px;
	font-weight: 850;
	line-height: 1.1;
	text-decoration: none !important;
}
.wrapper a.streaming-badge { color: var(--text-secondary, #b0a8c4) !important; }
.wrapper a.streaming-badge:hover {
	transform: translateY(-1px);
	border-color: rgba(148, 163, 184, 0.30);
	background: rgba(148, 163, 184, 0.11) !important;
}
.streaming-badge span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.streaming-badge em {
	font-style: normal;
	color: #8ddfd4;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .02em;
}
.streaming-badge.is-included { border-color: rgba(45, 212, 191, 0.30); }
.streaming-badge.is-rental,
.streaming-badge.is-rental-summary {
	color: var(--text-secondary, #b0a8c4);
	background: rgba(148, 163, 184, 0.07);
	border-color: rgba(148, 163, 184, 0.18);
}
.streaming-badge.is-rental em { color: rgba(203, 213, 225, 0.78); }
.streaming-badge.is-rental-summary span { color: var(--text-secondary, #b0a8c4); }
.streaming-badge.is-mine {
	border-color: rgba(34, 197, 94, 0.34);
	background: rgba(34, 197, 94, 0.10);
}
.streaming-badge.is-more {
	color: var(--text-secondary, #b0a8c4);
	background: rgba(148, 163, 184, 0.10);
	border-color: rgba(148, 163, 184, 0.22);
}
.streaming-watch-link,
.wrapper a.streaming-watch-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	align-self: start;
	width: fit-content;
	max-width: 100%;
	min-height: 28px;
	padding: 5px 9px;
	border-radius: 9px;
	background: rgba(14, 165, 233, 0.095) !important;
	border: 1px solid rgba(14, 165, 233, 0.24) !important;
	color: #bae6fd !important;
	font-size: 11.5px;
	font-weight: 900;
	text-decoration: none !important;
}
.streaming-watch-link i { font-size: 11px; }
.streaming-watch-link:hover,
.wrapper a.streaming-watch-link:hover {
	background: rgba(14, 165, 233, 0.18) !important;
	border-color: rgba(14, 165, 233, 0.42) !important;
	color: #e0f2fe !important;
}
.music-streaming-badge em { color: #c4b5fd; }
.music-listen-link,
.wrapper a.music-listen-link {
	background: rgba(168, 85, 247, 0.10) !important;
	border-color: rgba(168, 85, 247, 0.25) !important;
	color: #e9d5ff !important;
}
.music-listen-link:hover,
.wrapper a.music-listen-link:hover {
	background: rgba(168, 85, 247, 0.18) !important;
	border-color: rgba(168, 85, 247, 0.42) !important;
	color: #f5f3ff !important;
}
.subpage-detail-streaming {
	display: grid;
	gap: 7px;
	justify-items: start;
}
.subpage-pill-owned:not(.active) {
	border-color: rgba(34, 197, 94, 0.38) !important;
	background: rgba(34, 197, 94, 0.08) !important;
}
.subpage-pill-manage:not(.active),
.wrapper a.subpage-pill-manage:not(.active) {
	color: #bae6fd !important;
	border-color: rgba(14, 165, 233, 0.26) !important;
}
.subpage-streaming-service-select {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	max-width: 230px;
	padding: 8px 34px 8px 13px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.20);
	background: rgba(255, 255, 255, 0.045);
	color: var(--text-primary, #f8fafc);
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}
.subpage-streaming-service-select.is-selected {
	border-color: rgba(14, 165, 233, 0.34);
	background: rgba(14, 165, 233, 0.10);
}
.subpage-streaming-service-select span {
	white-space: nowrap;
	color: inherit;
}
.subpage-streaming-service-select select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.subpage-streaming-service-select i {
	position: absolute;
	right: 13px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 10px;
	color: var(--text-secondary, #b0a8c4);
	pointer-events: none;
}
.discover-watch-tonight-card {
	display: grid;
	gap: 9px;
	padding: 16px !important;
	align-content: start;
	align-items: stretch;
	justify-content: stretch !important;
	justify-items: stretch;
}
.discover-watch-tonight-card .discover-card-cta-eyebrow {
	width: fit-content;
	justify-self: start;
}
.discover-watch-tonight-card .discover-card-title {
	font-size: 17px !important;
	line-height: 1.15 !important;
	margin-bottom: 0 !important;
}
.discover-watch-tonight-list {
	display: grid;
	gap: 7px;
	width: 100%;
	min-width: 0;
}
.discover-watch-tonight-row,
.wrapper a.discover-watch-tonight-row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 9px;
	align-items: center;
	padding: 7px;
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 9px;
	background:
		linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(20, 184, 166, 0.035)),
		rgba(255, 255, 255, 0.03);
	color: inherit !important;
	text-decoration: none !important;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.discover-watch-tonight-row:hover,
.wrapper a.discover-watch-tonight-row:hover {
	transform: translateY(-1px);
	border-color: rgba(94, 234, 212, 0.34);
	background:
		linear-gradient(135deg, rgba(124, 58, 237, 0.13), rgba(20, 184, 166, 0.07)),
		rgba(255, 255, 255, 0.045) !important;
}
.discover-watch-tonight-poster {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	aspect-ratio: 2 / 3;
	border-radius: 7px;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.72);
	color: #c4b5fd !important;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.wrapper a.discover-watch-tonight-poster,
.wrapper a.discover-watch-tonight-poster:hover,
.wrapper a.discover-watch-tonight-poster:focus-visible {
	color: #c4b5fd !important;
	text-decoration: none !important;
}
.discover-watch-tonight-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.discover-music-tonight-poster img {
	object-fit: cover;
}
.discover-watch-tonight-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}
.discover-watch-tonight-title {
	color: var(--text-primary, #f8fafc) !important;
	font-size: 13.5px;
	font-weight: 950;
	line-height: 1.2;
	text-decoration: none !important;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}
.wrapper a.discover-watch-tonight-title,
.wrapper a.discover-watch-tonight-title:visited {
	color: var(--text-primary, #f8fafc) !important;
	text-decoration: none !important;
}
.wrapper a.discover-watch-tonight-title:hover,
.wrapper a.discover-watch-tonight-title:focus-visible {
	color: #ccfbf1 !important;
}
.discover-watch-tonight-row:hover .discover-watch-tonight-title {
	color: #ccfbf1 !important;
}
.discover-watch-tonight-meta {
	color: var(--text-secondary, #b0a8c4);
	font-size: 11.5px;
	font-weight: 750;
}
.discover-watch-tonight-kind {
	display: inline-flex;
	align-items: center;
	margin-right: 5px;
	padding: 1px 5px;
	border-radius: 999px;
	background: rgba(124, 58, 237, 0.16);
	color: #ddd6fe;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
}
.discover-watch-tonight-more-items {
	display: grid;
	gap: 7px;
	width: 100%;
	min-width: 0;
}
.discover-watch-tonight-more-items summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: fit-content;
	min-height: 28px;
	padding: 5px 9px;
	border-radius: 999px;
	border: 1px solid rgba(167, 139, 250, 0.24);
	background: rgba(124, 58, 237, 0.09);
	color: var(--text-secondary, #b0a8c4);
	font-size: 11.5px;
	font-weight: 900;
	cursor: pointer;
	list-style: none;
}
.discover-watch-tonight-more-items summary::-webkit-details-marker { display: none; }
.discover-watch-tonight-more-items summary i { font-size: 10px; transition: transform .18s ease; }
.discover-watch-tonight-more-items[open] summary i { transform: rotate(180deg); }
.discover-watch-tonight-list.is-expanded { margin-top: 0; }
.discover-watch-tonight-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 1px;
	width: 100%;
	min-width: 0;
}
.discover-watch-tonight-actions .btn-glow {
	justify-content: center !important;
	flex: 1 1 118px;
	min-height: 35px;
	margin-top: 0 !important;
	padding: 8px 11px !important;
	font-size: 12.5px !important;
}
.discover-watch-tonight-more {
	width: auto;
}
html.light-mode .streaming-badge {
	background: rgba(13, 148, 136, 0.065);
	border-color: rgba(13, 148, 136, 0.18);
	color: #0f172a;
}
html.light-mode .streaming-badge em { color: #0f766e; }
html.light-mode .streaming-badge.is-mine {
	background: rgba(22, 163, 74, 0.08);
	border-color: rgba(22, 163, 74, 0.24);
}
html.light-mode .streaming-badge.is-rental,
html.light-mode .streaming-badge.is-rental-summary {
	background: rgba(100, 116, 139, 0.055);
	border-color: rgba(100, 116, 139, 0.16);
	color: #475569;
}
html.light-mode .streaming-badge.is-rental em { color: #64748b; }
html.light-mode .streaming-badge.is-rental-summary span { color: #475569; }
html.light-mode .wrapper a.streaming-badge { color: #475569 !important; }
html.light-mode .subpage-streaming-service-select {
	background: rgba(255, 255, 255, 0.82);
	border-color: rgba(15, 23, 42, 0.12);
	color: #0f172a;
}
html.light-mode .subpage-streaming-service-select.is-selected {
	background: rgba(14, 165, 233, 0.08);
	border-color: rgba(14, 165, 233, 0.22);
}
html.light-mode .streaming-watch-link,
html.light-mode .wrapper a.streaming-watch-link {
	background: rgba(14, 165, 233, 0.065) !important;
	border-color: rgba(14, 165, 233, 0.20) !important;
	color: #075985 !important;
}
html.light-mode .music-streaming-badge em { color: #6d28d9; }
html.light-mode .music-listen-link,
html.light-mode .wrapper a.music-listen-link {
	background: rgba(124, 58, 237, 0.075) !important;
	border-color: rgba(124, 58, 237, 0.22) !important;
	color: #5b21b6 !important;
}
html.light-mode .discover-watch-tonight-row {
	background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(13, 148, 136, 0.035)), rgba(15, 23, 42, 0.02);
	border-color: rgba(15, 23, 42, 0.10);
}
html.light-mode .discover-watch-tonight-row:hover { border-color: rgba(13, 148, 136, 0.24); }
html.light-mode .discover-watch-tonight-kind { background: rgba(124, 58, 237, 0.10); color: #5b21b6; }
html.light-mode .discover-watch-tonight-more-items summary { background: rgba(124, 58, 237, 0.07); border-color: rgba(124, 58, 237, 0.18); color: #5b21b6; }
html.light-mode .discover-watch-tonight-poster { background: #eef2ff; color: #6d28d9 !important; }
@media (max-width: 520px) {
	.discover-watch-tonight-row { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
	.discover-watch-tonight-poster { width: 40px; }
	.discover-watch-tonight-actions .btn-glow { flex-basis: 100%; }
	.streaming-badge { max-width: 150px; }
	.streaming-watch-link { max-width: 100%; }
	.subpage-streaming-service-select { max-width: 180px; }
}

/* Patch 316 - make social recommendation cards easier to follow. */
body .discover-stream > .discover-card.discover-card-social,
body .discover-wrap-signal-board #discover-stream > .discover-card.discover-card-social,
body .discover-stream[data-mixed="1"] > .discover-card.discover-card-social {
	align-self: start !important;
	container-type: inline-size;
	height: auto !important;
	min-height: auto !important;
	max-height: none !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	padding: 14px !important;
}

body .discover-card.discover-card-social .discover-card-social-head,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-head,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-head {
	display: grid !important;
	grid-template-columns: 56px minmax(0, 1fr) auto !important;
	align-items: center !important;
	gap: 8px 12px !important;
}

body .discover-card.discover-card-social .discover-card-social-head .discover-card-avatar {
	width: 56px !important;
	height: 56px !important;
}

body .discover-card.discover-card-social .discover-card-social-name {
	align-items: center !important;
	font-size: 17px !important;
	line-height: 1.08 !important;
}

body .discover-card.discover-card-social .discover-card-social-time {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-top: 2px !important;
	font-size: 13px !important;
	line-height: 1.25 !important;
}

body .discover-card.discover-card-social .discover-card-social-head .discover-follow-head {
	grid-column: 3 !important;
	grid-row: 1 / span 2 !important;
	justify-self: end !important;
	align-self: center !important;
	min-height: 34px !important;
	padding: 7px 12px !important;
	white-space: nowrap !important;
}

body .discover-card.discover-card-social .discover-card-social-item,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
	grid-template-columns: 58px minmax(0, 1fr) 32px !important;
	min-height: 84px !important;
	margin: 2px 0 0 !important;
	padding: 10px !important;
	gap: 11px !important;
	border-radius: 16px !important;
}

body .discover-card.discover-card-social .discover-card-social-thumb,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-thumb,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-thumb {
	width: 58px !important;
	height: 58px !important;
	min-width: 58px !important;
	max-width: 58px !important;
	flex-basis: 58px !important;
	border-radius: 13px !important;
}

body .discover-card.discover-card-social .discover-card-social-cat {
	font-size: 11px !important;
	line-height: 1.05 !important;
}

body .discover-card.discover-card-social .discover-card-social-title,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-title,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-title {
	font-size: 17px !important;
	line-height: 1.13 !important;
	margin-top: 4px !important;
}

body .discover-card.discover-card-social .discover-why,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-why,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-why {
	margin: 0 !important;
}

body .discover-card.discover-card-social .discover-why-btn {
	min-height: 32px !important;
	padding: 6px 11px !important;
}

body .discover-card.discover-card-social .discover-card-foot,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-foot,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-foot {
	margin-top: 0 !important;
	padding-top: 10px !important;
	grid-template-columns: 1fr !important;
	gap: 8px !important;
	align-self: stretch !important;
}

body .discover-card.discover-card-social .discover-card-prompt {
	text-align: center !important;
	font-size: 12px !important;
	line-height: 1.1 !important;
}

body .discover-card.discover-card-social .discover-card-actions,
body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-actions,
body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-actions {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(38px, 1fr)) !important;
	gap: 7px !important;
	width: 100% !important;
}

body .discover-card.discover-card-social .discover-rate,
body .discover-card.discover-card-social .discover-skip,
body .discover-card.discover-card-social .discover-card-save,
body .discover-card.discover-card-social .discover-card-more {
	width: 42px !important;
	height: 42px !important;
	justify-self: center !important;
}

@media (max-width: 560px) {
	body .discover-card.discover-card-social .discover-card-social-head,
	body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-head,
	body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-head {
		grid-template-columns: 50px minmax(0, 1fr) !important;
	}
	body .discover-card.discover-card-social .discover-card-social-head .discover-card-avatar {
		width: 50px !important;
		height: 50px !important;
	}
	body .discover-card.discover-card-social .discover-card-social-head .discover-follow-head {
		grid-column: 2 !important;
		grid-row: 3 !important;
		justify-self: start !important;
		margin-top: 2px !important;
	}
	body .discover-card.discover-card-social .discover-card-social-item,
	body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-item,
	body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-item {
		grid-template-columns: 52px minmax(0, 1fr) 28px !important;
		min-height: 76px !important;
		padding: 9px !important;
		gap: 9px !important;
	}
	body .discover-card.discover-card-social .discover-card-social-thumb,
	body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-thumb,
	body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-thumb {
		width: 52px !important;
		height: 52px !important;
		min-width: 52px !important;
		max-width: 52px !important;
		flex-basis: 52px !important;
	}
}

@container (max-width: 360px) {
	body .discover-card.discover-card-social .discover-card-social-head,
	body .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-head,
	body .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-head {
		grid-template-columns: 50px minmax(0, 1fr) !important;
	}
	body .discover-card.discover-card-social .discover-card-social-head .discover-follow-head {
		grid-column: 2 !important;
		grid-row: 3 !important;
		justify-self: start !important;
		margin-top: 2px !important;
	}
}

/* Patch 317 - show stream-question poll results inline after answering. */
.discover-quiz-card-instream.is-answered .discover-quiz-instream-results {
	display: grid;
	gap: 10px;
	padding: 12px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(124,58,237,.10));
	border: 1px solid rgba(74,222,128,.22);
	color: var(--text-primary, #f8fafc);
}
.discover-quiz-instream-results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	font-weight: 900;
}
.discover-quiz-instream-results-head span,
.discover-quiz-instream-results-head strong {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}
.discover-quiz-instream-results-head strong {
	flex: 0 0 auto;
	color: #86efac;
}
.discover-quiz-instream-results-question {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	color: rgba(226,232,240,.86);
}
.discover-quiz-instream-results-bars {
	display: grid;
	gap: 7px;
}
.discover-quiz-instream-result-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 7px 9px;
	border-radius: 12px;
	background: rgba(15,23,42,.34);
	border: 1px solid rgba(148,163,184,.16);
	overflow: hidden;
}
.discover-quiz-instream-result-row.is-mine {
	border-color: rgba(74,222,128,.40);
}
.discover-quiz-instream-result-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: linear-gradient(90deg, rgba(124,58,237,.34), rgba(20,184,166,.24));
	pointer-events: none;
}
.discover-quiz-instream-result-row.is-mine .discover-quiz-instream-result-fill {
	background: linear-gradient(90deg, rgba(34,197,94,.42), rgba(20,184,166,.24));
}
.discover-quiz-instream-result-label,
.discover-quiz-instream-result-row b,
.discover-quiz-instream-result-row em {
	position: relative;
	z-index: 1;
}
.discover-quiz-instream-result-label {
	min-width: 0;
	font-size: 12.5px;
	font-weight: 850;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.discover-quiz-instream-result-row b {
	font-size: 12.5px;
	font-weight: 950;
	color: var(--text-primary, #f8fafc);
}
.discover-quiz-instream-result-row em {
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
	color: rgba(203,213,225,.72);
}
.discover-quiz-instream-result-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 1px;
}
.discover-quiz-instream-result-actions > span {
	color: rgba(203,213,225,.78);
	font-size: 12px;
	font-weight: 850;
}
html.light-mode .discover-quiz-card-instream.is-answered .discover-quiz-instream-results {
	background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(124,58,237,.07));
	border-color: rgba(22,163,74,.22);
}
html.light-mode .discover-quiz-instream-results-question { color: #475569; }
html.light-mode .discover-quiz-instream-results-head strong { color: #15803d; }
html.light-mode .discover-quiz-instream-result-row {
	background: rgba(255,255,255,.78);
	border-color: rgba(15,23,42,.10);
}
html.light-mode .discover-quiz-instream-result-row b { color: #0f172a; }
html.light-mode .discover-quiz-instream-result-row em,
html.light-mode .discover-quiz-instream-result-actions > span { color: #64748b; }

/* Patch 312 - compatibility quizzes are playable on profile + stream. */
.discover-card.discover-card-compat {
	min-height: 0;
	justify-content: flex-start;
}
.discover-card.discover-card-compat .discover-card-desc {
	-webkit-line-clamp: 2;
	line-clamp: 2;
}
.discover-compat-expand {
	width: 100%;
	margin-top: 8px;
}
.discover-compat-expand > summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	max-width: 100%;
	cursor: pointer;
}
.discover-compat-expand > summary::-webkit-details-marker { display: none; }
.discover-compat-expand > summary:focus-visible {
	outline: 3px solid rgba(124,58,237,.38);
	outline-offset: 4px;
	border-radius: 999px;
}
.discover-compat-summary-main {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 15px;
	border-radius: 999px;
	border: 1px solid rgba(216,180,254,.58);
	background: linear-gradient(135deg, #7c3aed, #db2777);
	box-shadow: 0 14px 32px -22px rgba(219,39,119,.78), inset 0 1px 0 rgba(255,255,255,.18);
	color: #ffffff;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
}
.discover-compat-summary-chevron {
	font-size: 11px;
	opacity: .86;
	transition: transform .16s ease;
}
.discover-compat-expand[open] .discover-compat-summary-chevron { transform: rotate(180deg); }
.discover-compat-summary-meta {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(148,163,184,.12);
	border: 1px solid rgba(148,163,184,.18);
	color: rgba(226,232,240,.78);
	font-size: 12px;
	font-weight: 850;
	line-height: 1;
	white-space: nowrap;
}
.compat-quiz-play {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-top: 12px;
}
.compat-quiz-item {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 12px;
	border-radius: 14px;
	background: rgba(15,23,42,.30);
	border: 1px solid rgba(148,163,184,.16);
}
.compat-quiz-item-title {
	min-width: 0;
	color: var(--text-primary, #f8fafc);
	font-weight: 850;
	font-size: 14px;
	line-height: 1.25;
}
.compat-quiz-choice-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.compat-quiz-context {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	margin-top: -2px;
}
.compat-quiz-context img {
	width: 48px;
	height: 48px;
	border-radius: 9px;
	object-fit: cover;
	background: rgba(15,23,42,.38);
	border: 1px solid rgba(148,163,184,.20);
}
.compat-quiz-context p {
	margin: 0;
	color: rgba(203,213,225,.82);
	font-size: 12.5px;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.compat-quiz-prefilled {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	max-width: 100%;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(34,197,94,.10);
	border: 1px solid rgba(34,197,94,.24);
	color: rgba(187,247,208,.92);
	font-size: 12.5px;
	font-weight: 850;
}
.compat-quiz-prefilled strong { color: #fff; }
.compat-quiz-choice {
	position: relative;
	display: block;
	min-width: 0;
	cursor: pointer;
}
.compat-quiz-choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.compat-quiz-choice span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border-radius: 999px;
	border: 1px solid rgba(148,163,184,.20);
	background: rgba(255,255,255,.055);
	color: rgba(226,232,240,.88);
	font-weight: 850;
	line-height: 1.1;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.compat-quiz-choice:hover span,
.compat-quiz-choice input:focus-visible + span {
	border-color: rgba(226,232,240,.38);
	color: #ffffff;
}
.compat-quiz-choice input:checked + span {
	transform: translateY(-1px);
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}
.compat-quiz-choice.is-love input:checked + span {
	background: linear-gradient(135deg, #16a34a, #0f766e) !important;
	border-color: rgba(134,239,172,.78) !important;
}
.compat-quiz-choice.is-meh input:checked + span {
	background: linear-gradient(135deg, #64748b, #475569) !important;
	border-color: rgba(203,213,225,.66) !important;
}
.compat-quiz-choice.is-nope input:checked + span {
	background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
	border-color: rgba(252,165,165,.78) !important;
}
.compat-quiz-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 2px;
}
.compat-quiz-profile-link {
	color: var(--text-secondary, #cbd5e1) !important;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none !important;
}
.compat-quiz-profile-link:hover { color: #ffffff !important; }
.compat-quiz-msg {
	min-height: 18px;
	color: #fca5a5;
	font-size: 13px;
	font-weight: 800;
}
html.light-mode .compat-quiz-item {
	background: #f8fafc;
	border-color: rgba(15,23,42,.10);
}
html.light-mode .compat-quiz-choice span {
	background: #ffffff;
	border-color: rgba(15,23,42,.14);
	color: #334155;
}
html.light-mode .compat-quiz-context p { color: #64748b; }
html.light-mode .compat-quiz-context img { background: #e2e8f0; border-color: rgba(15,23,42,.10); }
html.light-mode .compat-quiz-prefilled { background: rgba(22,163,74,.08); border-color: rgba(22,163,74,.22); color: #15803d; }
html.light-mode .compat-quiz-prefilled strong { color: #14532d; }
html.light-mode .compat-quiz-choice:hover span,
html.light-mode .compat-quiz-choice input:focus-visible + span { color: #0f172a; }
html.light-mode .compat-quiz-choice input:checked + span {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}
html.light-mode .compat-quiz-choice.is-love input:checked + span {
	background: linear-gradient(135deg, #16a34a, #0f766e) !important;
	border-color: rgba(21,128,61,.55) !important;
}
html.light-mode .compat-quiz-choice.is-meh input:checked + span {
	background: linear-gradient(135deg, #64748b, #475569) !important;
	border-color: rgba(71,85,105,.45) !important;
}
html.light-mode .compat-quiz-choice.is-nope input:checked + span {
	background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
	border-color: rgba(185,28,28,.55) !important;
}
html.light-mode .discover-compat-summary-main {
	border-color: rgba(124,58,237,.30);
	box-shadow: 0 14px 30px -24px rgba(124,58,237,.58), inset 0 1px 0 rgba(255,255,255,.28);
}
html.light-mode .discover-compat-summary-meta {
	background: rgba(124,58,237,.08);
	border-color: rgba(124,58,237,.16);
	color: #5b21b6;
}
html.light-mode .compat-quiz-profile-link { color: #475569 !important; }
html.light-mode .compat-quiz-profile-link:hover { color: #111827 !important; }
@media (max-width: 460px) {
	.discover-compat-expand > summary {
		width: 100%;
	}
	.discover-compat-summary-main {
		flex: 1 1 auto;
		min-width: 0;
	}
}
@media (max-width: 380px) {
	.compat-quiz-choice-row { gap: 6px; }
	.compat-quiz-choice span { min-height: 40px; padding: 8px 7px; gap: 5px; font-size: 12.5px; }
}

/* Patch 313 - Two Truths is selectable directly in the stream. */
.two-truths-play {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-top: 8px;
}
.two-truths-choice-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}
.two-truths-choice {
	position: relative;
	display: block;
	min-width: 0;
	cursor: pointer;
}
.two-truths-choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.two-truths-choice span {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 48px;
	padding: 10px 13px;
	border-radius: 14px;
	border: 1px solid rgba(148,163,184,.24);
	background: rgba(15,23,42,.30);
	color: rgba(226,232,240,.90);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.32;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.two-truths-choice:hover span,
.two-truths-choice input:focus-visible + span {
	border-color: rgba(226,232,240,.42);
	color: #ffffff;
}
.two-truths-choice input:checked + span {
	transform: translateY(-1px);
	background: linear-gradient(135deg, rgba(124,58,237,.62), rgba(14,165,233,.38)) !important;
	border-color: rgba(196,181,253,.72) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}
.two-truths-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 2px;
}
.two-truths-profile-link {
	color: var(--text-secondary, #cbd5e1) !important;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none !important;
}
.two-truths-profile-link:hover { color: #ffffff !important; }
.two-truths-msg {
	min-height: 18px;
	color: #fca5a5;
	font-size: 13px;
	font-weight: 800;
}
html.light-mode .two-truths-choice span {
	background: #ffffff;
	border-color: rgba(15,23,42,.14);
	color: #334155;
}
html.light-mode .two-truths-choice:hover span,
html.light-mode .two-truths-choice input:focus-visible + span { color: #0f172a; }
html.light-mode .two-truths-choice input:checked + span {
	background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
	border-color: rgba(91,33,182,.55) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}
html.light-mode .two-truths-profile-link { color: #475569 !important; }
html.light-mode .two-truths-profile-link:hover { color: #111827 !important; }

/* Patch 311 - no purple text on purple/blue panels.
   The global `.wrapper a { color: var(--purple) !important }` can beat
   component rules when the text is a link. These scoped guards keep names,
   detail links, and small metadata readable on dark/tinted game/discover
   panels while preserving purple as an accent color for fills, borders, and
   light-background links elsewhere. */
.wrapper .pvp-solo-win-row a.pvp-solo-win-name,
.wrapper .pvp-solo-win-row a.pvp-solo-win-name:visited {
	color: var(--text-primary, #f8fafc) !important;
}
.wrapper .pvp-solo-win-row a.pvp-solo-win-name:hover,
.wrapper .pvp-solo-win-row a.pvp-solo-win-name:focus-visible {
	color: #ffffff !important;
	text-decoration: underline !important;
}
.pvp-solo-winboards .pvp-solo-winboard .pvp-solo-winboard-kicker,
.pvp-solo-wins .pvp-solo-winboard-kicker,
.pvp-multi-wins .pvp-solo-winboard-kicker {
	color: #67e8f9 !important;
}

.wrapper .games-lb-card .games-lb-name a,
.wrapper .games-lb-card .games-lb-name a:visited {
	color: var(--text-primary, #f8fafc) !important;
}
.wrapper .games-lb-card .games-lb-name a:hover,
.wrapper .games-lb-card .games-lb-name a:focus-visible {
	color: #ffffff !important;
	text-decoration: underline !important;
}

.wrapper .discover-card.discover-card-social a.discover-social-namelink,
.wrapper .discover-card.discover-card-social a.discover-social-namelink:visited,
.wrapper .discover-card.discover-card-social a.discover-card-social-info-link,
.wrapper .discover-card.discover-card-social a.discover-card-social-info-link:visited {
	color: var(--text-primary, #f8fafc) !important;
}
.wrapper .discover-card.discover-card-social a.discover-social-namelink:hover,
.wrapper .discover-card.discover-card-social a.discover-social-namelink:focus-visible,
.wrapper .discover-card.discover-card-social a.discover-card-social-info-link:hover,
.wrapper .discover-card.discover-card-social a.discover-card-social-info-link:focus-visible {
	color: #ffffff !important;
}
.wrapper .discover-card.discover-card-social a.discover-card-social-info-link:hover .discover-card-social-title,
.wrapper .discover-card.discover-card-social a.discover-card-social-info-link:focus-visible .discover-card-social-title {
	color: #ffffff !important;
	text-decoration: underline !important;
}
.wrapper .discover-card.discover-card-social .discover-card-social-cat,
.wrapper .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-cat,
.wrapper .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-cat {
	color: rgba(203,213,225,.86) !important;
}
.wrapper .discover-card.discover-card-social .discover-card-social-go,
.wrapper .discover-card.discover-card-social:hover .discover-card-social-go {
	color: rgba(226,232,240,.82) !important;
}
.wrapper .discover-card.discover-card-social .discover-match-pct {
	background: rgba(20,184,166,.14) !important;
	border-color: rgba(45,212,191,.34) !important;
	color: #99f6e4 !important;
}
.wrapper .dcib-stream-card .dcib-edit-link,
.wrapper .dcib-stream-card .dcib-edit-link:visited {
	color: #f8fafc !important;
}
.wrapper .dcib-stream-card .dcib-edit-link:hover,
.wrapper .dcib-stream-card .dcib-edit-link:focus-visible {
	color: #ffffff !important;
	text-decoration: underline !important;
}
.connect-tile-pct-fresh,
.wrapper .connect-tile .connect-tile-pct-fresh {
	background: rgba(20,184,166,.14) !important;
	color: #5eead4 !important;
}
.games-lb-card-head i,
.discover-section-head h2 i,
.discover-wrap-stream .discover-section > .discover-section-head h2 i,
.discover-wrap-signal-board .discover-section-head h2 i,
.discover-greet-stats-pop-btn i,
.dcib-stream-card .dcib-head-ic,
.dcib-stream-card .dcib-chip-ic {
	color: #67e8f9 !important;
}
.wrapper a.pvp-urgency,
.wrapper a.pvp-urgency:visited,
.wrapper a.pvp-urgency .pvp-urgency-text,
.wrapper a.pvp-urgency .pvp-urgency-arrow {
	color: #dcfce7 !important;
}
.wrapper a.pvp-urgency-pending,
.wrapper a.pvp-urgency-pending:visited,
.wrapper a.pvp-urgency-pending .pvp-urgency-text,
.wrapper a.pvp-urgency-pending .pvp-urgency-arrow {
	color: #fde68a !important;
}
.wrapper a.pvp-urgency:hover .pvp-urgency-arrow,
.wrapper a.pvp-urgency:focus-visible .pvp-urgency-arrow { color: #ffffff !important; }
.wrapper .profile-argument a.profile-arg-reply,
.wrapper .profile-argument a.profile-arg-reply:visited {
	color: #f8fafc !important;
	-webkit-text-fill-color: #f8fafc !important;
}
.wrapper .profile-argument a.profile-arg-reply:hover,
.wrapper .profile-argument a.profile-arg-reply:focus-visible {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}
.wrapper .dcib-stream-card a.dcib-edit-link,
.wrapper .dcib-stream-card a.dcib-edit-link:visited {
	-webkit-text-fill-color: #f8fafc !important;
}
html:not(.light-mode) body.page-discover .dcib-stream-card a.dcib-edit-link,
html:not(.light-mode) body.page-discover .dcib-stream-card a.dcib-edit-link:visited {
	color: #f8fafc !important;
	-webkit-text-fill-color: #f8fafc !important;
}
body.page-profile .profile-hero-title i,
body.page-profile .profile-card.profile-about i,
body.page-profile .profile-card.profile-argument i,
body.page-profile .profile-argument .profile-arg-vs {
	color: #67e8f9 !important;
}
body.page-pvp-game #pvpGameShell .pvpg-player a,
body.page-pvp-game #pvpGameShell .pvpg-player a:visited,
body.page-pvp-game #pvpGameShell .pvpg-roster a,
body.page-pvp-game #pvpGameShell .pvpg-roster a:visited,
body.page-pvp-game .pvpg-header .pvpg-player a,
body.page-pvp-game .pvpg-header .pvpg-player a:visited,
body.page-pvp-game .pvpg-header .pvpg-name a,
body.page-pvp-game .pvpg-header .pvpg-name a:visited,
body.page-pvp-game .pvpg-roster a,
body.page-pvp-game .pvpg-roster a:visited {
	color: #f8fafc !important;
	-webkit-text-fill-color: #f8fafc !important;
}
.weird-native-footer .weird-footer-brand,
.weird-native-footer .weird-footer-brand-copy,
.weird-native-footer .weird-footer-brand-copy small,
.weird-native-footer .weird-footer-share,
.weird-native-footer .weird-footer-share i,
.weird-native-footer .weird-footer-share span,
.weird-native-footer .weird-footer-group h2,
.weird-native-footer .weird-footer-group a,
.weird-native-footer .weird-footer-group a i,
.weird-native-footer .weird-footer-faq-section summary::after {
	color: rgba(226,232,240,.88) !important;
	-webkit-text-fill-color: rgba(226,232,240,.88) !important;
}
.weird-native-footer .weird-footer-share:hover,
.weird-native-footer .weird-footer-share:focus-visible,
.weird-native-footer .weird-footer-group a:hover,
.weird-native-footer .weird-footer-group a:focus-visible {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}
.weird-tabbar a.weird-tabbar-item.is-active,
.weird-tabbar a.weird-tabbar-item.is-active:link,
.weird-tabbar a.weird-tabbar-item.is-active:visited,
.weird-tabbar a.weird-tabbar-item.is-active:hover,
.weird-tabbar-item.is-active .weird-tabbar-icon,
.weird-tabbar-item.is-active .weird-tabbar-icon i,
.weird-tabbar-item.is-active .weird-tabbar-label {
	color: #f8fafc !important;
	-webkit-text-fill-color: #f8fafc !important;
}

html.light-mode .wrapper .pvp-solo-win-row a.pvp-solo-win-name,
html.light-mode .wrapper .pvp-solo-win-row a.pvp-solo-win-name:visited,
html.light-mode .wrapper .games-lb-card .games-lb-name a,
html.light-mode .wrapper .games-lb-card .games-lb-name a:visited,
html.light-mode .wrapper .discover-card.discover-card-social a.discover-social-namelink,
html.light-mode .wrapper .discover-card.discover-card-social a.discover-social-namelink:visited,
html.light-mode .wrapper .discover-card.discover-card-social a.discover-card-social-info-link,
html.light-mode .wrapper .discover-card.discover-card-social a.discover-card-social-info-link:visited,
html.light-mode .wrapper .dcib-stream-card .dcib-edit-link,
html.light-mode .wrapper .dcib-stream-card .dcib-edit-link:visited {
	color: #111827 !important;
}
html.light-mode .wrapper .pvp-solo-win-row a.pvp-solo-win-name:hover,
html.light-mode .wrapper .pvp-solo-win-row a.pvp-solo-win-name:focus-visible,
html.light-mode .wrapper .games-lb-card .games-lb-name a:hover,
html.light-mode .wrapper .games-lb-card .games-lb-name a:focus-visible,
html.light-mode .wrapper .discover-card.discover-card-social a.discover-social-namelink:hover,
html.light-mode .wrapper .discover-card.discover-card-social a.discover-social-namelink:focus-visible,
html.light-mode .wrapper .discover-card.discover-card-social a.discover-card-social-info-link:hover,
html.light-mode .wrapper .discover-card.discover-card-social a.discover-card-social-info-link:focus-visible,
html.light-mode .wrapper .dcib-stream-card .dcib-edit-link:hover,
html.light-mode .wrapper .dcib-stream-card .dcib-edit-link:focus-visible {
	color: #0f172a !important;
}
html.light-mode .wrapper a.pvp-urgency,
html.light-mode .wrapper a.pvp-urgency:visited,
html.light-mode .wrapper a.pvp-urgency .pvp-urgency-text,
html.light-mode .wrapper a.pvp-urgency .pvp-urgency-arrow {
	color: #14532d !important;
}
html.light-mode .wrapper a.pvp-urgency-pending,
html.light-mode .wrapper a.pvp-urgency-pending:visited,
html.light-mode .wrapper a.pvp-urgency-pending .pvp-urgency-text,
html.light-mode .wrapper a.pvp-urgency-pending .pvp-urgency-arrow {
	color: #713f12 !important;
}
html.light-mode .wrapper .profile-argument a.profile-arg-reply,
html.light-mode .wrapper .profile-argument a.profile-arg-reply:visited,
html.light-mode .wrapper .profile-argument a.profile-arg-reply:hover,
html.light-mode .wrapper .profile-argument a.profile-arg-reply:focus-visible {
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
}
html.light-mode .wrapper .dcib-stream-card a.dcib-edit-link,
html.light-mode .wrapper .dcib-stream-card a.dcib-edit-link:visited {
	-webkit-text-fill-color: #111827 !important;
}
html.light-mode .games-lb-card-head i,
html.light-mode .discover-section-head h2 i,
html.light-mode .discover-wrap-stream .discover-section > .discover-section-head h2 i,
html.light-mode .discover-wrap-signal-board .discover-section-head h2 i,
html.light-mode .discover-greet-stats-pop-btn i,
html.light-mode .dcib-stream-card .dcib-head-ic,
html.light-mode .dcib-stream-card .dcib-chip-ic,
html.light-mode body.page-profile .profile-hero-title i,
html.light-mode body.page-profile .profile-card.profile-about i,
html.light-mode body.page-profile .profile-card.profile-argument i,
html.light-mode body.page-profile .profile-argument .profile-arg-vs {
	color: #475569 !important;
}
html.light-mode body.page-pvp-game #pvpGameShell .pvpg-player a,
html.light-mode body.page-pvp-game #pvpGameShell .pvpg-player a:visited,
html.light-mode body.page-pvp-game #pvpGameShell .pvpg-roster a,
html.light-mode body.page-pvp-game #pvpGameShell .pvpg-roster a:visited,
html.light-mode body.page-pvp-game .pvpg-header .pvpg-player a,
html.light-mode body.page-pvp-game .pvpg-header .pvpg-player a:visited,
html.light-mode body.page-pvp-game .pvpg-header .pvpg-name a,
html.light-mode body.page-pvp-game .pvpg-header .pvpg-name a:visited,
html.light-mode body.page-pvp-game .pvpg-roster a,
html.light-mode body.page-pvp-game .pvpg-roster a:visited,
html.light-mode .weird-native-footer .weird-footer-brand,
html.light-mode .weird-native-footer .weird-footer-brand-copy,
html.light-mode .weird-native-footer .weird-footer-brand-copy small,
html.light-mode .weird-native-footer .weird-footer-share,
html.light-mode .weird-native-footer .weird-footer-share i,
html.light-mode .weird-native-footer .weird-footer-share span,
html.light-mode .weird-native-footer .weird-footer-group h2,
html.light-mode .weird-native-footer .weird-footer-group a,
html.light-mode .weird-native-footer .weird-footer-group a i,
html.light-mode .weird-native-footer .weird-footer-faq-section summary::after {
	color: #475569 !important;
	-webkit-text-fill-color: #475569 !important;
}
html.light-mode .weird-tabbar a.weird-tabbar-item.is-active,
html.light-mode .weird-tabbar a.weird-tabbar-item.is-active:link,
html.light-mode .weird-tabbar a.weird-tabbar-item.is-active:visited,
html.light-mode .weird-tabbar a.weird-tabbar-item.is-active:hover,
html.light-mode .weird-tabbar-item.is-active .weird-tabbar-icon,
html.light-mode .weird-tabbar-item.is-active .weird-tabbar-icon i,
html.light-mode .weird-tabbar-item.is-active .weird-tabbar-label {
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
}
html.light-mode .pvp-solo-winboards .pvp-solo-winboard .pvp-solo-winboard-kicker,
html.light-mode .pvp-solo-wins .pvp-solo-winboard-kicker,
html.light-mode .pvp-multi-wins .pvp-solo-winboard-kicker,
html.light-mode .wrapper .discover-card.discover-card-social .discover-card-social-cat,
html.light-mode .wrapper .discover-wrap-signal-board #discover-stream .discover-card-social .discover-card-social-cat,
html.light-mode .wrapper .discover-stream[data-mixed="1"] .discover-card-social .discover-card-social-cat {
	color: #475569 !important;
}
html.light-mode .wrapper .discover-card.discover-card-social a.discover-card-social-info-link:hover .discover-card-social-title,
html.light-mode .wrapper .discover-card.discover-card-social a.discover-card-social-info-link:focus-visible .discover-card-social-title {
	color: #111827 !important;
}
html.light-mode .wrapper .discover-card.discover-card-social .discover-match-pct,
html.light-mode .connect-tile-pct-fresh,
html.light-mode .wrapper .connect-tile .connect-tile-pct-fresh {
	background: rgba(20,184,166,.10) !important;
	border-color: rgba(15,118,110,.22) !important;
	color: #0f766e !important;
}

.discover-card-item[data-cat="music"].music-image-generated .discover-card-media img[src*="img/images/music/"],
.discover-card-item[data-cat="music"].music-image-generated .discover-card-media .meme-zoom-trigger img[src*="img/images/music/"] {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
	background: transparent !important;
}

@media (max-width: 900px) {
	.discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media {
		aspect-ratio: 16 / 8 !important;
		max-height: 180px !important;
	}
	.discover-card-item[data-cat="music"].music-image-generated .discover-card-media,
	.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"].music-image-generated .discover-card-media,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"].music-image-generated .discover-card-media,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"].music-image-generated .discover-card-media {
		aspect-ratio: 1 / 1 !important;
		max-height: min(64vw, 260px) !important;
	}
}

@media (max-width: 640px) {
	.discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media {
		aspect-ratio: 16 / 8 !important;
		max-height: 170px !important;
	}
	.discover-card-item[data-cat="music"].music-image-generated .discover-card-media,
	.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"].music-image-generated .discover-card-media,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"].music-image-generated .discover-card-media,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"].music-image-generated .discover-card-media {
		aspect-ratio: 1 / 1 !important;
		max-height: 220px !important;
	}
}

/* Patch 303 - music images fill the card frame without giant gutters.
   Patch 297 made local music images `contain`, which left real artist photos
   too narrow on desktop and could crop generated fallback art down to just the
   background on mobile/app views. Keep the compact mobile frame, but let the
   artwork fill it. */
.discover-card-item[data-cat="music"] .discover-card-media,
.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media,
.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media {
	aspect-ratio: 16 / 9 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: 220px !important;
	background: #0f172a !important;
}

.discover-card-item[data-cat="music"] .discover-card-media img[src*="img/images/music/"],
.discover-card-item[data-cat="music"] .discover-card-media .meme-zoom-trigger img[src*="img/images/music/"] {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
	background: transparent !important;
}

@media (max-width: 900px) {
	.discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media {
		aspect-ratio: 16 / 8 !important;
		max-height: 180px !important;
	}
}

@media (max-width: 640px) {
	.discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"] .discover-card-media,
	.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"] .discover-card-media {
		aspect-ratio: 16 / 7 !important;
		max-height: 150px !important;
	}
}

/* Patch 310/315 - generated music tiles keep their printed text without stretching. */
.discover-card-item[data-cat="music"].music-image-generated .discover-card-media img[src*="img/images/music/"],
.discover-card-item[data-cat="music"].music-image-generated .discover-card-media .meme-zoom-trigger img[src*="img/images/music/"] {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
	background: transparent !important;
	transform: none !important;
}

.discover-card-item[data-cat="music"].music-image-generated .discover-card-media,
.discover-wrap[data-cat="music"] .discover-stream .discover-card-item[data-cat="music"].music-image-generated .discover-card-media,
.discover-stream[data-mixed="1"] .discover-card-item[data-cat="music"].music-image-generated .discover-card-media,
.discover-wrap-signal-board #discover-stream.discover-stream > .discover-card.discover-card-item[data-cat="music"].music-image-generated .discover-card-media {
	aspect-ratio: 16 / 10 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: 220px !important;
	background: #0f172a !important;
}

.discover-card-item[data-cat="music"].music-image-generated .discover-card-media .meme-zoom-trigger {
	background: #0f172a !important;
}

.discover-card-item[data-cat="music"].music-image-real .discover-card-media img[src*="img/images/music/"],
.discover-card-item[data-cat="music"].music-image-real .discover-card-media .meme-zoom-trigger img[src*="img/images/music/"] {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center 24% !important;
	background: transparent !important;
}

/* Patch 273 - mobile no-ellipsis polish for shared chrome.
   Keep data-dense lists compact, but do not cut page context, popout
   headers, match verdicts, or current-account navigation labels. */
@media (max-width: 720px) {
	.discover-bar {
		align-items: flex-start !important;
	}
	.discover-bar-title,
	.discover-bar.discover-bar-compact .discover-bar-title,
	.connect-wrap-compact .discover-bar-title,
	.discover-bar-left .subpage-bar-copy .discover-bar-title {
		display: inline-flex !important;
		align-items: flex-start !important;
		min-width: 0 !important;
		max-width: 100% !important;
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: clip !important;
		line-height: 1.14 !important;
		overflow-wrap: anywhere !important;
		letter-spacing: 0 !important;
	}
	.discover-bar-title i,
	.discover-bar.discover-bar-compact .discover-bar-title i,
	.connect-wrap-compact .discover-bar-title i {
		flex: 0 0 auto !important;
		margin-top: 1px !important;
	}
	.discover-section-head h2,
	.explore-hub-section .discover-section-head h2,
	body.page-profile .profile-card .discover-section-head h2,
	body.page-profile .profile-subheading,
	body.page-profile .profile-compare-title,
	.profile-compare-title,
	.pvp-coll-title,
	.pvp-solo-wins .pvp-solo-winboard-head h3 {
		min-width: 0 !important;
		max-width: 100% !important;
		overflow: visible !important;
		text-overflow: clip !important;
		white-space: normal !important;
		line-height: 1.16 !important;
		overflow-wrap: anywhere !important;
		letter-spacing: 0 !important;
	}
	.discover-section-head h2 i,
	.profile-subheading i,
	.profile-compare-title i,
	.pvp-coll-title i {
		margin-right: 6px !important;
	}
	.discover-section-more,
	.discover-section-head-actions {
		margin-left: 0 !important;
	}
	.weird-action-sheet-cat,
	.weird-action-sheet-title,
	body .weird-notif-popout .weird-notif-itm-title,
	body .weird-notif-popout .weird-notif-itm-sub,
	.weird-avatar-menu-head strong,
	.weird-avatar-menu-head small,
	body .discover-card.discover-card-social .discover-card-social-name,
	body .discover-card.discover-card-social .discover-card-social-time {
		display: block !important;
		min-width: 0 !important;
		max-width: 100% !important;
		overflow: visible !important;
		text-overflow: clip !important;
		white-space: normal !important;
		line-height: 1.18 !important;
		overflow-wrap: anywhere !important;
	}
	body .weird-notif-popout .weird-notif-itm-sub {
		display: block !important;
		-webkit-line-clamp: unset !important;
		line-clamp: unset !important;
		-webkit-box-orient: initial !important;
	}
	.weird-action-sheet-cat {
		font-size: 10px !important;
		letter-spacing: 0.05em !important;
	}
	.weird-action-sheet-title {
		font-size: 15px !important;
		font-weight: 800 !important;
	}
	.verdict-pill,
	.profile-pct-headline .verdict-pill,
	.profile-pct-headline-verdict,
	.pvp-pick-match,
	.subpage-tier-chip,
	.subpage-match-score strong {
		white-space: normal !important;
		text-align: center !important;
		line-height: 1.18 !important;
		letter-spacing: 0.06em !important;
	}
	body.page-profile .acct-nav-select-wrap,
	.acct-nav-select-wrap {
		grid-template-columns: 1fr !important;
		align-items: stretch !important;
	}
	body.page-profile .acct-nav-select-label,
	.acct-nav-select-label {
		white-space: normal !important;
		line-height: 1.15 !important;
	}
	body.page-profile .acct-nav-select,
	.acct-nav-select {
		width: 100% !important;
		max-width: 100% !important;
		text-overflow: clip !important;
	}
}

@media (max-width: 420px) {
	.discover-bar-stats,
	.discover-section-head-actions {
		width: 100% !important;
	}
	.discover-bar-stat,
	.discover-quiz-coins,
	.discover-today-action-coins {
		max-width: 100% !important;
		min-width: 0 !important;
		justify-content: center !important;
		line-height: 1.15 !important;
	}
	.discover-bar-stat {
		white-space: normal !important;
		text-align: center !important;
	}
	.discover-quiz-coins,
	.discover-today-action-coins {
		white-space: nowrap !important;
	}
}

/* Patch 322 - Stream signal summary + taste micro-feedback. */
.discover-signal-strip {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
	gap: 10px;
	align-items: stretch;
	margin: 0 0 16px;
	padding: 10px;
	border: 1px solid rgba(148,163,184,0.16);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(15,23,42,.70), rgba(20,18,38,.58));
	box-shadow: 0 16px 42px -36px rgba(0,0,0,.88), inset 0 1px 0 rgba(255,255,255,.055);
}
.discover-signal-strip-head,
.discover-signal-chip {
	min-width: 0;
	border: 1px solid rgba(167,139,250,0.16);
	border-radius: 14px;
	background: rgba(255,255,255,0.035);
}
.discover-signal-strip-head {
	display: grid;
	align-content: center;
	gap: 5px;
	padding: 12px;
}
.discover-signal-strip-head span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #a78bfa;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.discover-signal-strip-head strong {
	color: var(--text-primary);
	font-size: 13px;
	font-weight: 850;
	line-height: 1.24;
}
.discover-signal-strip-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	min-width: 0;
}
.discover-signal-chip {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	padding: 9px;
}
.discover-signal-chip > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: rgba(45,212,191,0.10);
	color: #5eead4;
}
.discover-signal-copy {
	display: grid;
	gap: 1px;
	min-width: 0;
}
.discover-signal-copy em,
.discover-signal-copy small {
	font-style: normal;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.05;
	color: var(--text-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.discover-signal-copy strong {
	color: var(--text-primary);
	font-size: 18px;
	font-weight: 950;
	line-height: 1.05;
}
.discover-taste-toast-host {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: calc(18px + env(safe-area-inset-bottom));
	z-index: 1200;
	display: grid;
	gap: 8px;
	pointer-events: none;
}
.discover-taste-toast {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: min(340px, calc(100vw - 32px));
	padding: 10px 13px;
	border-radius: 999px;
	border: 1px solid rgba(167,139,250,0.22);
	background: rgba(15,23,42,0.92);
	color: #f8fafc;
	box-shadow: 0 18px 42px -26px rgba(0,0,0,.88), inset 0 1px 0 rgba(255,255,255,.08);
	font-size: 13px;
	font-weight: 850;
	line-height: 1.1;
	opacity: 0;
	transform: translateY(8px) scale(.98);
	transition: opacity .18s ease, transform .18s ease;
}
.discover-taste-toast.is-on { opacity: 1; transform: translateY(0) scale(1); }
.discover-taste-toast i { color: #5eead4; }
.discover-taste-toast.is-up i,
.discover-taste-toast.is-save i { color: #86efac; }
.discover-taste-toast.is-down i,
.discover-taste-toast.is-skip i { color: #fb923c; }
.discover-card.taste-pulse-up,
.discover-card.taste-pulse-save { animation: discoverTastePulseGreen .82s ease both; }
.discover-card.taste-pulse-neutral,
.discover-card.taste-pulse-signal { animation: discoverTastePulseViolet .82s ease both; }
.discover-card.taste-pulse-down,
.discover-card.taste-pulse-skip { animation: discoverTastePulseAmber .82s ease both; }
@keyframes discoverTastePulseGreen {
	0% { box-shadow: 0 0 0 rgba(34,197,94,0); }
	35% { box-shadow: 0 0 0 4px rgba(34,197,94,.18), 0 18px 46px -34px rgba(34,197,94,.55); }
	100% { box-shadow: inherit; }
}
@keyframes discoverTastePulseViolet {
	0% { box-shadow: 0 0 0 rgba(124,58,237,0); }
	35% { box-shadow: 0 0 0 4px rgba(124,58,237,.18), 0 18px 46px -34px rgba(124,58,237,.55); }
	100% { box-shadow: inherit; }
}
@keyframes discoverTastePulseAmber {
	0% { box-shadow: 0 0 0 rgba(249,115,22,0); }
	35% { box-shadow: 0 0 0 4px rgba(249,115,22,.18), 0 18px 46px -34px rgba(249,115,22,.48); }
	100% { box-shadow: inherit; }
}
html.light-mode .discover-signal-strip {
	background: rgba(255,255,255,.82);
	border-color: rgba(15,23,42,.10);
	box-shadow: 0 18px 44px -38px rgba(15,23,42,.26), inset 0 1px 0 rgba(255,255,255,.9);
}
html.light-mode .discover-signal-strip-head,
html.light-mode .discover-signal-chip {
	background: rgba(248,250,252,.72);
	border-color: rgba(15,23,42,.08);
}
html.light-mode .discover-taste-toast {
	background: rgba(255,255,255,.96);
	color: #111827;
	border-color: rgba(15,23,42,.12);
}
@media (max-width: 820px) {
	.discover-signal-strip { grid-template-columns: 1fr; }
	.discover-signal-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.discover-signal-strip { padding: 9px; border-radius: 16px; }
	.discover-signal-strip-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
	.discover-signal-chip { grid-template-columns: 26px minmax(0, 1fr); padding: 8px; gap: 7px; }
	.discover-signal-chip > i { width: 26px; height: 26px; border-radius: 9px; font-size: 12px; }
	.discover-signal-copy strong { font-size: 16px; }
	.discover-taste-toast-host { left: 14px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); }
	.discover-taste-toast { justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.discover-taste-toast,
	.discover-card.taste-pulse-up,
	.discover-card.taste-pulse-save,
	.discover-card.taste-pulse-neutral,
	.discover-card.taste-pulse-signal,
	.discover-card.taste-pulse-down,
	.discover-card.taste-pulse-skip {
		animation: none !important;
		transition: none !important;
	}
}

/* Patch 323 - Mobile/app-first Stream pass. Keep the new delight layer
   thumb-native: compact signal rail, larger touch targets, no bottom-bar clash. */
@media (max-width: 560px) {
	.discover-signal-strip {
		grid-template-columns: 1fr !important;
		gap: 8px !important;
		margin: 0 0 12px !important;
		padding: 8px !important;
		border-radius: 16px !important;
	}
	.discover-signal-strip-head {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 10px !important;
		min-height: 36px !important;
		padding: 8px 10px !important;
	}
	.discover-signal-strip-head span,
	.discover-signal-strip-head strong {
		min-width: 0 !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}
	.discover-signal-strip-grid {
		display: flex !important;
		grid-template-columns: none !important;
		gap: 7px !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		margin: 0 -2px !important;
		padding: 0 2px 2px !important;
	}
	.discover-signal-strip-grid::-webkit-scrollbar { display: none; }
	.discover-signal-chip {
		flex: 0 0 clamp(142px, 47vw, 172px) !important;
		scroll-snap-align: start;
		grid-template-columns: 26px minmax(0, 1fr) !important;
		padding: 8px !important;
		gap: 7px !important;
	}
	.discover-signal-chip > i {
		width: 26px !important;
		height: 26px !important;
		border-radius: 9px !important;
		font-size: 12px !important;
	}
	.discover-signal-copy strong { font-size: 16px !important; }
	.discover-stream .discover-card-actions,
	.discover-wrap-signal-board #discover-stream .discover-card-actions {
		display: grid !important;
		grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)) !important;
		gap: 6px !important;
		width: 100% !important;
		align-items: center !important;
		justify-items: center !important;
	}
	body .discover-stream .discover-rate,
	body .discover-stream .discover-skip,
	body .discover-stream .discover-card-actions .discover-card-save,
	body .discover-stream .discover-card-actions .discover-follow,
	body .discover-stream .discover-card-more,
	body .discover-wrap-signal-board #discover-stream .discover-rate,
	body .discover-wrap-signal-board #discover-stream .discover-skip,
	body .discover-wrap-signal-board #discover-stream .discover-card-actions .discover-card-save,
	body .discover-wrap-signal-board #discover-stream .discover-card-actions .discover-follow,
	body .discover-wrap-signal-board #discover-stream .discover-card-more {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		border-radius: 50% !important;
		font-size: 14px !important;
		justify-self: center !important;
	}
	.discover-card-foot { gap: 10px !important; }
	.discover-card-prompt { min-height: 18px; font-size: 13px !important; }
	.discover-why-btn { min-height: 38px !important; padding: 8px 12px !important; font-size: 13px !important; }
	.discover-why-panel { padding: 12px !important; border-radius: 14px !important; }
}
body.is-native-app.page-discover .discover-signal-strip {
	grid-template-columns: 1fr !important;
	gap: 8px !important;
}
body.is-native-app.page-discover .discover-signal-strip-grid {
	display: flex !important;
	grid-template-columns: none !important;
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
body.is-native-app.page-discover .discover-signal-strip-grid::-webkit-scrollbar { display: none; }
body.is-native-app.page-discover .discover-signal-chip {
	flex: 0 0 clamp(150px, 34vw, 190px) !important;
	scroll-snap-align: start;
}
body.is-native-app.page-discover .discover-taste-toast-host {
	bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Patch 324 - Cross-site mobile/app cohesion layer.
   Bring recurring action rows onto the Stream touch rhythm without changing
   each page's structure: 44px+ targets, predictable wrapping, bottom-bar-safe
   spacing, and no tiny action chips in the Capacitor shell. */
@media (max-width: 560px) {
	.connect-tile-actions,
	.connect-tile-actions-row,
	.profile-hero-actions,
	.profile-hero-actions-main,
	.profile-hero-actions-safety,
	.subpage-detail-actions,
	.subpage-practical-actions,
	.subpage-biz-actionrow,
	.pvp-lobby-actions,
	.pvp-pack-actions,
	.pvp-pack-editor-actions,
	.pvpg-actions,
	.msg-side-tabs,
	.acct-quicklinks {
		gap: 8px !important;
	}
	.connect-tile-actions,
	.connect-tile-actions-row,
	.subpage-detail-actions,
	.subpage-practical-actions,
	.subpage-biz-actionrow,
	.pvp-lobby-actions,
	.pvp-pack-actions,
	.pvp-pack-editor-actions,
	.pvpg-actions {
		display: grid !important;
		grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important;
		align-items: stretch !important;
		width: 100% !important;
	}
	.profile-hero-actions-main,
	.profile-hero-actions-safety {
		display: grid !important;
		grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
		width: 100% !important;
	}
	.connect-tile-act,
	.connect-wrap-compact .connect-tile-grid .connect-tile-act,
	.profile-action,
	a.profile-action,
	button.profile-action,
	.subpage-biz-action,
	button.subpage-biz-action,
	.subpage-practical-action,
	.pvp-lobby-btn,
	.pvp-pack-btn,
	.pvpg-btn,
	.msg-side-tabs button,
	.acct-quicklink,
	.weird-action-sheet-item,
	.weird-action-sheet-cancel,
	.weird-message-share-tab,
	.weird-message-share-cancel,
	.weird-message-share-send {
		box-sizing: border-box !important;
		min-height: 44px !important;
		min-width: 44px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 8px !important;
		padding: 10px 13px !important;
		line-height: 1.12 !important;
		text-align: center !important;
		white-space: normal !important;
		text-wrap: balance;
	}
	.connect-wrap-compact .connect-tile-grid .connect-tile-act,
	.connect-tile-actions .connect-tile-act,
	.connect-tile-actions-row .connect-tile-act {
		width: 100% !important;
		flex-basis: auto !important;
		border-radius: 999px !important;
	}
	.subpage-detail-actions .discover-rate,
	.subpage-detail-actions .discover-card-save,
	.pvp-solo-card .discover-rate,
	.pvp-game-cards .discover-rate {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		border-radius: 50% !important;
	}
	.acct-nav-select-wrap {
		min-height: 54px !important;
		align-items: center !important;
	}
	.acct-nav-select {
		min-height: 44px !important;
		font-size: 16px !important;
	}
	.weird-action-sheet-card,
	.weird-message-share-card,
	.weird-explore-sheet-card {
		border-radius: 18px !important;
	}
}
body.is-native-app .connect-tile-actions,
body.is-native-app .connect-tile-actions-row,
body.is-native-app .subpage-detail-actions,
body.is-native-app .subpage-practical-actions,
body.is-native-app .subpage-biz-actionrow,
body.is-native-app .pvp-lobby-actions,
body.is-native-app .pvp-pack-actions,
body.is-native-app .pvp-pack-editor-actions,
body.is-native-app .pvpg-actions {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
	gap: 8px !important;
	align-items: stretch !important;
	width: 100% !important;
}
body.is-native-app .connect-tile-act,
body.is-native-app .connect-wrap-compact .connect-tile-grid .connect-tile-act,
body.is-native-app .profile-action,
body.is-native-app a.profile-action,
body.is-native-app button.profile-action,
body.is-native-app .subpage-biz-action,
body.is-native-app button.subpage-biz-action,
body.is-native-app .subpage-practical-action,
body.is-native-app .pvp-lobby-btn,
body.is-native-app .pvp-pack-btn,
body.is-native-app .pvpg-btn,
body.is-native-app .msg-side-tabs button,
body.is-native-app .acct-quicklink,
body.is-native-app .weird-action-sheet-item,
body.is-native-app .weird-action-sheet-cancel,
body.is-native-app .weird-message-share-tab,
body.is-native-app .weird-message-share-cancel,
body.is-native-app .weird-message-share-send {
	box-sizing: border-box !important;
	min-height: 44px !important;
	min-width: 44px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 10px 13px !important;
	line-height: 1.12 !important;
	text-align: center !important;
	white-space: normal !important;
	text-wrap: balance;
}
body.is-native-app .connect-wrap-compact .connect-tile-grid .connect-tile-act,
body.is-native-app .connect-tile-actions .connect-tile-act,
body.is-native-app .connect-tile-actions-row .connect-tile-act {
	width: 100% !important;
	flex-basis: auto !important;
	border-radius: 999px !important;
}
body.is-native-app .subpage-detail-actions .discover-rate,
body.is-native-app .subpage-detail-actions .discover-card-save,
body.is-native-app .pvp-solo-card .discover-rate,
body.is-native-app .pvp-game-cards .discover-rate {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	border-radius: 50% !important;
}
body.is-native-app .acct-nav-select-wrap { min-height: 54px !important; align-items: center !important; }
body.is-native-app .acct-nav-select { min-height: 44px !important; font-size: 16px !important; }

@media (max-width: 560px) {
	body.page-profile .profile-hero .profile-action,
	body.page-profile .profile-hero a.profile-action,
	body.page-profile .profile-hero button.profile-action,
	body.page-profile #main .profile-hero button.profile-action,
	body.is-native-app.page-profile .profile-hero .profile-action,
	body.is-native-app.page-profile .profile-hero a.profile-action,
	body.is-native-app.page-profile .profile-hero button.profile-action,
	body.is-native-app.page-profile #main .profile-hero button.profile-action {
		min-height: 44px !important;
		height: auto !important;
		padding: 10px 13px !important;
		border-radius: 999px !important;
		font-size: 13px !important;
		line-height: 1.12 !important;
	}
}
body.is-native-app.page-profile .profile-hero .profile-action,
body.is-native-app.page-profile .profile-hero a.profile-action,
body.is-native-app.page-profile .profile-hero button.profile-action,
body.is-native-app.page-profile #main .profile-hero button.profile-action {
	min-height: 44px !important;
	height: auto !important;
	padding: 10px 13px !important;
	border-radius: 999px !important;
	font-size: 13px !important;
	line-height: 1.12 !important;
}

/* Patch 325 - Shared category/detail color system.
   Category pages already expose --weird-rail-a/b/c. Use those as the local
   palette so browse and detail surfaces gain warmth without arbitrary new
   colors or page-by-page paint. */
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) {
	--sub-info: var(--weird-rail-a, #22d3ee);
	--sub-brand: var(--weird-rail-b, #8b5cf6);
	--sub-warm: var(--weird-rail-c, #f59e0b);
	--sub-success: #22c55e;
	--sub-info-soft: color-mix(in srgb, var(--sub-info) 13%, transparent);
	--sub-brand-soft: color-mix(in srgb, var(--sub-brand) 12%, transparent);
	--sub-warm-soft: color-mix(in srgb, var(--sub-warm) 13%, transparent);
	--sub-info-line: color-mix(in srgb, var(--sub-info) 30%, transparent);
	--sub-brand-line: color-mix(in srgb, var(--sub-brand) 30%, transparent);
	--sub-warm-line: color-mix(in srgb, var(--sub-warm) 34%, transparent);
}

body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck {
	background:
		radial-gradient(circle at 0% 0%, var(--sub-info-soft), transparent 34%),
		radial-gradient(circle at 100% 0%, var(--sub-warm-soft), transparent 36%),
		linear-gradient(135deg, rgba(15,23,42,.70), rgba(17,24,39,.54)) !important;
	border-color: var(--sub-brand-line) !important;
	box-shadow: 0 18px 44px -34px rgba(0,0,0,.86), 0 1px 0 rgba(255,255,255,.06) inset !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck::before {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	top: 0;
	height: 3px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, var(--sub-info), var(--sub-brand) 52%, var(--sub-warm));
	pointer-events: none;
	opacity: .9;
}
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck {
	background:
		radial-gradient(circle at 0% 0%, var(--sub-info-soft), transparent 34%),
		radial-gradient(circle at 100% 0%, var(--sub-warm-soft), transparent 36%),
		linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.88)) !important;
	border-color: color-mix(in srgb, var(--sub-brand) 18%, rgba(15,23,42,.10)) !important;
	box-shadow: 0 16px 38px -32px rgba(30,41,59,.24), 0 1px 0 rgba(255,255,255,.92) inset !important;
}

body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-section-head h2 i,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-kicker i,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-deck-label i,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-pillrow-label i {
	color: var(--sub-info) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-section-head {
	border-bottom-color: var(--sub-brand-line) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-section-head::after {
	background: linear-gradient(90deg, var(--sub-info), var(--sub-brand) 58%, transparent) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-result-meta,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-metric-scope {
	border-color: var(--sub-info-line) !important;
	background: var(--sub-info-soft) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-metric-scope i { color: var(--sub-info) !important; }

body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .discover-audience-pill:not(.active),
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .discover-audience-toggle:not(.active),
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-pill:not(.active),
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-seg:not(.is-active),
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .connect-interest-filter:not(.is-selected),
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-active-filter {
	background: rgba(255,255,255,.055) !important;
	border-color: color-mix(in srgb, var(--sub-info) 20%, rgba(148,163,184,.18)) !important;
	color: rgba(226,232,240,.86) !important;
}
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .discover-audience-pill:not(.active),
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .discover-audience-toggle:not(.active),
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-pill:not(.active),
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-seg:not(.is-active),
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .connect-interest-filter:not(.is-selected),
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-active-filter {
	background: rgba(255,255,255,.82) !important;
	border-color: color-mix(in srgb, var(--sub-info) 18%, rgba(15,23,42,.10)) !important;
	color: #334155 !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .discover-audience-pill.active,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .discover-audience-toggle.active {
	background: linear-gradient(135deg, var(--sub-success), var(--sub-info)) !important;
	border-color: color-mix(in srgb, var(--sub-success) 45%, transparent) !important;
	color: #fff !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-pill.active,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-seg.is-active,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .connect-interest-filter.is-selected {
	background: linear-gradient(135deg, var(--sub-brand), var(--sub-warm)) !important;
	border-color: var(--sub-brand-line) !important;
	color: #fff !important;
	box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--sub-brand) 60%, transparent) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .discover-audience-pill.active *,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .discover-audience-toggle.active *,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-pill.active *,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck .subpage-seg.is-active * { color: #fff !important; }

body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-stream > .discover-card.discover-card-item {
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--sub-info) 6%, rgba(17,24,39,.96)), rgba(17,24,39,.96)),
		var(--surface) !important;
	border-color: color-mix(in srgb, var(--sub-info) 24%, rgba(167,139,250,.14)) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-stream > .discover-card.discover-card-item::after {
	background: linear-gradient(90deg, var(--sub-info), var(--sub-brand) 58%, var(--sub-warm)) !important;
}
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-stream > .discover-card.discover-card-item {
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--sub-info) 5%, #fff), #ffffff 62%) !important;
	border-color: color-mix(in srgb, var(--sub-info) 18%, rgba(15,23,42,.10)) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-card-tag,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-card-pct {
	background: color-mix(in srgb, var(--sub-brand) 22%, rgba(15,23,42,.76)) !important;
	border-color: color-mix(in srgb, var(--sub-brand) 42%, transparent) !important;
	color: #fff !important;
}
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-card-tag,
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .discover-card-pct {
	background: color-mix(in srgb, var(--sub-brand) 11%, #fff) !important;
	border-color: color-mix(in srgb, var(--sub-brand) 26%, rgba(15,23,42,.10)) !important;
	color: #172033 !important;
}

body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-panel,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-card,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-fact,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-biz-panel {
	background:
		linear-gradient(135deg, var(--sub-info-soft), transparent 38%),
		linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
		var(--surface) !important;
	border-color: var(--sub-info-line) !important;
}
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-panel,
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-card,
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-fact,
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-biz-panel {
	background:
		linear-gradient(135deg, var(--sub-info-soft), transparent 42%),
		linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.82)) !important;
	border-color: color-mix(in srgb, var(--sub-info) 20%, rgba(15,23,42,.10)) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-kicker,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-card h3 i,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-fact span { color: var(--sub-info) !important; }
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-link {
	background: var(--sub-brand-soft) !important;
	border-color: var(--sub-brand-line) !important;
	color: var(--text-primary) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-link.subpage-detail-share {
	background: var(--sub-warm-soft) !important;
	border-color: var(--sub-warm-line) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-link.subpage-detail-share i { color: var(--sub-warm) !important; }
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-link.subpage-detail-next {
	background: linear-gradient(135deg, var(--sub-success), var(--sub-info)) !important;
	border-color: color-mix(in srgb, var(--sub-success) 45%, transparent) !important;
	color: #fff !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-link.subpage-detail-next i { color: #fff !important; }

body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link:link,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link:visited {
	background: var(--sub-brand-soft) !important;
	border-color: var(--sub-brand-line) !important;
	color: var(--text-primary) !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link.subpage-detail-share,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link.subpage-detail-share:link,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link.subpage-detail-share:visited {
	background: var(--sub-warm-soft) !important;
	border-color: var(--sub-warm-line) !important;
	color: var(--text-primary) !important;
}
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link,
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link:link,
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link:visited,
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link.subpage-detail-share,
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link.subpage-detail-share:link,
html.light-mode body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link.subpage-detail-share:visited {
	color: #172033 !important;
}
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link.subpage-detail-next,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link.subpage-detail-next:link,
body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) a.subpage-detail-link.subpage-detail-next:visited {
	background: linear-gradient(135deg, var(--sub-success), var(--sub-info)) !important;
	border-color: color-mix(in srgb, var(--sub-success) 45%, transparent) !important;
	color: #fff !important;
}

@media (max-width: 640px) {
	body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck::before { left: 10px; right: 10px; }
	body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-control-deck { border-radius: 18px !important; }
	body .discover-wrap[data-cat]:not(.discover-wrap-signal-board) .subpage-detail-panel { border-radius: 18px !important; }
}

/* Patch 326 - Remaining shared app-shell color layer.
   Conservative tinting for repeated non-stream surfaces: Connect/person cards,
   account panels, messages, and game lobbies. */
body {
	--shell-cyan: oklch(78% 0.12 220);
	--shell-violet: oklch(64% 0.22 288);
	--shell-mint: oklch(80% 0.13 154);
	--shell-amber: oklch(78% 0.15 74);
	--shell-cyan-soft: oklch(78% 0.12 220 / .10);
	--shell-violet-soft: oklch(64% 0.22 288 / .10);
	--shell-mint-soft: oklch(80% 0.13 154 / .10);
	--shell-amber-soft: oklch(78% 0.15 74 / .12);
	--shell-cyan-line: oklch(78% 0.12 220 / .28);
	--shell-violet-line: oklch(64% 0.22 288 / .28);
	--shell-mint-line: oklch(80% 0.13 154 / .30);
	--shell-amber-line: oklch(78% 0.15 74 / .32);
}
html.light-mode body {
	--shell-cyan: oklch(47% 0.12 220);
	--shell-violet: oklch(48% 0.22 288);
	--shell-mint: oklch(48% 0.12 158);
	--shell-amber: oklch(53% 0.14 66);
	--shell-cyan-soft: oklch(78% 0.12 220 / .12);
	--shell-violet-soft: oklch(64% 0.22 288 / .08);
	--shell-mint-soft: oklch(80% 0.13 154 / .12);
	--shell-amber-soft: oklch(78% 0.15 74 / .14);
	--shell-cyan-line: oklch(47% 0.12 220 / .22);
	--shell-violet-line: oklch(48% 0.22 288 / .22);
	--shell-mint-line: oklch(48% 0.12 158 / .22);
	--shell-amber-line: oklch(53% 0.14 66 / .26);
}

body .connect-tile,
body .connect-tile-grid,
body .acct-card:not(.acct-card-theme),
body .msg-shell,
body .msg-sidebar,
body .msg-thread,
body .msg-composer,
body .pvp-lobby-card,
body .pvp-solo-card,
body .pvp-pack-card,
body .pvpg-card,
body .pvpg-panel,
body .challenge-hero,
body .sports-pick-hero {
	background:
		linear-gradient(135deg, var(--shell-cyan-soft), transparent 42%),
		linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
		var(--surface) !important;
	border-color: var(--shell-cyan-line) !important;
}
html.light-mode body .connect-tile,
html.light-mode body .connect-tile-grid,
html.light-mode body .acct-card:not(.acct-card-theme),
html.light-mode body .msg-shell,
html.light-mode body .msg-sidebar,
html.light-mode body .msg-thread,
html.light-mode body .msg-composer,
html.light-mode body .pvp-lobby-card,
html.light-mode body .pvp-solo-card,
html.light-mode body .pvp-pack-card,
html.light-mode body .pvpg-card,
html.light-mode body .pvpg-panel,
html.light-mode body .challenge-hero,
html.light-mode body .sports-pick-hero {
	background:
		linear-gradient(135deg, var(--shell-cyan-soft), transparent 44%),
		linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.84)) !important;
	border-color: var(--shell-cyan-line) !important;
}

body .connect-tile::before,
body .acct-card:not(.acct-card-theme)::before,
body .msg-sidebar::before,
body .msg-thread::before,
body .pvp-lobby-card::before,
body .pvp-solo-card::before,
body .pvp-pack-card::before,
body .pvpg-card::before,
body .pvpg-panel::before {
	background: linear-gradient(90deg, var(--shell-cyan), var(--shell-violet) 58%, var(--shell-amber)) !important;
}

body .connect-tile-pct-high,
body .connect-tile-act.connect-tile-following,
body .connect-tile-actions .connect-tile-act.connect-tile-following,
body .connect-tile-actions-row .connect-tile-act.connect-tile-following {
	background: var(--shell-mint-soft) !important;
	border-color: var(--shell-mint-line) !important;
	color: var(--shell-mint) !important;
}
body .connect-tile-pct-mid {
	background: var(--shell-amber-soft) !important;
	border-color: var(--shell-amber-line) !important;
	color: var(--shell-amber) !important;
}
body .connect-tile-pct-low {
	background: oklch(70% 0.16 32 / .12) !important;
	border-color: oklch(70% 0.16 32 / .30) !important;
	color: oklch(72% 0.17 32) !important;
}
html.light-mode body .connect-tile-pct-low { color: #b91c1c !important; }
body .connect-tile-act:not(.connect-tile-following),
body .connect-tile-actions .connect-tile-act:not(.connect-tile-following),
body .connect-tile-actions-row .connect-tile-act:not(.connect-tile-following),
body .msg-thread-back,
body .msg-side-tabs button:not(.is-active) {
	background: rgba(255,255,255,.055) !important;
	border-color: var(--shell-violet-line) !important;
	color: var(--text-primary) !important;
}
html.light-mode body .connect-tile-act:not(.connect-tile-following),
html.light-mode body .connect-tile-actions .connect-tile-act:not(.connect-tile-following),
html.light-mode body .connect-tile-actions-row .connect-tile-act:not(.connect-tile-following),
html.light-mode body .msg-thread-back,
html.light-mode body .msg-side-tabs button:not(.is-active) {
	background: rgba(255,255,255,.84) !important;
	border-color: var(--shell-violet-line) !important;
	color: #172033 !important;
}
body .connect-tile-act:has(.fa-comment) i,
body .msg-thread-back i { color: var(--shell-cyan) !important; }
body .connect-tile-act:has(.fa-bolt) i,
body .connect-tile-act:has(.fa-gamepad) i { color: var(--shell-amber) !important; }
body .connect-tile-act:has(.fa-user-plus) i,
body .connect-tile-act:has(.fa-user-check) i { color: var(--shell-mint) !important; }

body .msg-side-tabs button.is-active,
body .acct-quicklink.is-active,
html.light-mode body .msg-side-tabs button.is-active,
html.light-mode body .acct-quicklink.is-active {
	background: linear-gradient(135deg, var(--shell-violet), color-mix(in srgb, var(--shell-cyan) 62%, var(--shell-violet))) !important;
	border-color: var(--shell-violet-line) !important;
	color: #fff !important;
}
body .msg-side-tabs button.is-active i,
body .acct-quicklink.is-active i { color: #fff !important; }
body .acct-field-label i,
body .acct-card .discover-section-head h2 i,
body .msg-thread-head i,
body .msg-sidebar i { color: var(--shell-cyan) !important; }
body .acct-field-err,
body .acct-card input.is-invalid { border-color: var(--shell-amber) !important; color: var(--shell-amber) !important; }

body .pvp-lobby-card.is-action-required,
body .pvpg-card.is-action-required {
	background:
		linear-gradient(135deg, var(--shell-amber-soft), transparent 42%),
		var(--surface) !important;
	border-color: var(--shell-amber-line) !important;
}

html body #pvp-picker-section button.pvp-pack-inline-btn,
html body #pvp-lobbies button.pvp-pack-inline-btn,
html body #pvp-judge-packs button.pvp-pack-inline-btn {
	display: inline-flex !important;
	align-items: center;
	min-height: 44px !important;
	padding: 0 .15rem !important;
	vertical-align: middle;
}

/* Ensure minimum 44px tap targets for mobile without expanding visible boxes (via pseudo-elements) */
@media (max-width: 640px) {
    .subpage-clear-filters,
    .ans-search-clear,
    .weird-search-clear,
    .pvp-hero-preselect-clear,
    .acct-metro-combo-clear,
    .msg-reply-compose-clear,
    .profile-toy-delete-btn,
    .acct-geo-clear,
    button[class*="-clear"],
    a[class*="-clear"],
    button[class*="-delete"],
    a[class*="-delete"],
    .badge-clear {
        position: relative;
    }
    
    .subpage-clear-filters::before,
    .ans-search-clear::before,
    .weird-search-clear::before,
    .pvp-hero-preselect-clear::before,
    .acct-metro-combo-clear::before,
    .msg-reply-compose-clear::before,
    .profile-toy-delete-btn::before,
    .acct-geo-clear::before,
    button[class*="-clear"]::before,
    a[class*="-clear"]::before,
    button[class*="-delete"]::before,
    a[class*="-delete"]::before,
    .badge-clear::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 44px;
        min-height: 44px;
        z-index: 1; /* ensure it sits above adjacent elements while remaining clickable */
    }
}
