/* =========================================================
   QueerFriends Profile Layout
   Version 1.6.19
   Clean geometry reset
   ========================================================= */

body.qf-profile-layout-active {
	overflow-x: hidden;
}

html.qf-profile-layout-loading #buddypress {
	visibility: hidden !important;
}

body.qf-profile-layout-active .site-content,
body.qf-profile-layout-active .container,
body.qf-profile-layout-active .content-area,
body.qf-profile-layout-active .entry-content {
	width: 100% !important;
	max-width: none !important;
}

body.qf-profile-layout-active .entry-content {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ---------------- Main desktop grid ---------------- */

.qf-profile-layout {
	display: grid !important;
	grid-template-columns: 190px minmax(0, 1fr) 390px !important;
	row-gap: 0 !important;
	column-gap: 10px !important;
	align-items: start !important;
	width: min(calc(100vw - 80px), 1440px) !important;
	max-width: 1440px !important;
	margin: 0 auto !important;
	padding: 20px 0 48px !important;
	box-sizing: border-box !important;
}

.qf-profile-sidebar-left,
.qf-profile-main,
.qf-profile-sidebar-right {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	align-self: start !important;
}

.qf-profile-main {
	justify-self: stretch !important;
}

.qf-profile-main > #buddypress,
.qf-profile-main .buddypress-wrap,
.qf-profile-main #item-header,
.qf-profile-main .bp-wrap,
.qf-profile-main #object-nav,
.qf-profile-main .bb-profile-grid,
.qf-profile-main #item-body,
.qf-profile-main .qf-profile-photo-strip {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

/* ---------------- Left sidebar ---------------- */

.qf-profile-sidebar-left,
.qf-profile-sidebar-right {
	position: sticky !important;
	top: 24px !important;
}

.qf-profile-left-card,
.qf-profile-widget {
	background: #fff;
	border: 1px solid #e8e9f1;
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(30, 33, 63, .05);
}

.qf-profile-left-card {
	padding: 14px 12px;
}

.qf-profile-left-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.qf-profile-left-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	padding: 0 14px;
	border-radius: 12px;
	color: #23263a;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
}

.qf-profile-left-nav a:hover,
.qf-profile-left-nav a:focus-visible {
	background: #f4efff;
	color: #6f42ff;
	outline: none;
}

.qf-profile-left-nav a.qf-active {
	background: linear-gradient(135deg, #f2edff, #fff0f7);
	color: #6f42ff;
}

.qf-profile-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	font-size: 18px;
}

/* ---------------- Center profile card ---------------- */

.qf-profile-main #item-header {
	overflow: hidden !important;
	border: 1px solid #e8e9f1;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(30, 33, 63, .05);
}

.qf-profile-main #cover-image-container {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	padding-top: 360px !important;
	background: #fff;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

/* The cover is removed from BuddyBoss's narrow flow and stretched
   to the full width of the profile card. */
.qf-profile-main #header-cover-image {
	position: absolute !important;
	inset: 0 0 auto 0 !important;
	display: block !important;
	width: 100% !important;
	height: 360px !important;
	min-height: 360px !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border-radius: 0 !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	box-sizing: border-box !important;
}

.qf-profile-main #header-cover-image > img.header-cover-img {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.qf-profile-main #item-header-cover-image {
	position: relative !important;
	display: flex !important;
	align-items: flex-end !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 210px !important;
	padding: 0 34px 30px !important;
	box-sizing: border-box !important;
	background: #fff !important;
}

.qf-profile-main #item-header-avatar {
	flex: 0 0 auto !important;
	margin: -88px 28px 0 0 !important;
	position: relative !important;
	z-index: 3 !important;
}

.qf-profile-main #item-header-avatar img.avatar {
	width: 176px !important;
	height: 176px !important;
	max-width: 176px !important;
	border: 6px solid #fff !important;
	border-radius: 50% !important;
	box-shadow: 0 10px 28px rgba(31, 34, 66, .16) !important;
	object-fit: cover !important;
}

.qf-profile-main #item-header-content {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	padding: 0 0 8px !important;
}

.qf-profile-main #item-header-content > .flex,
.qf-profile-main .bb-user-content-wrap {
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
}

.qf-profile-main #item-header-content .user-nicename {
	margin: 0 !important;
	font-size: clamp(34px, 2.3vw, 46px) !important;
	line-height: 1.08 !important;
	letter-spacing: -.03em !important;
	white-space: nowrap !important;
}

/* ---------------- Profile nav ---------------- */

.qf-profile-main #object-nav {
	margin-top: 14px !important;
	overflow: hidden !important;
	border: 1px solid #e8e9f1;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(30, 33, 63, .04);
}

.qf-profile-main #object-nav > ul {
	padding-left: 18px !important;
	padding-right: 18px !important;
}

/* ---------------- Photo strip ---------------- */

.qf-profile-overview #item-body {
	display: none !important;
}

.qf-profile-photo-strip {
	margin-top: 14px !important;
	padding: 16px 18px 18px;
	border: 1px solid #e8e9f1;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(30, 33, 63, .04);
}

.qf-profile-photo-strip-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.qf-profile-photo-strip-header h3 {
	margin: 0;
	font-size: 16px;
	color: #202338;
}

.qf-profile-photo-strip-header a {
	color: #6f42ff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
}

.qf-profile-photo-strip-track {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.qf-profile-photo-card {
	overflow: hidden;
	aspect-ratio: 1.3 / 1;
	border-radius: 12px;
	background: #f3f1fa;
}

.qf-profile-photo-card img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* ---------------- Right sidebar ---------------- */

.qf-profile-sidebar-right {
	display: flex !important;
	flex-direction: column !important;
	gap: 14px !important;
}

.qf-profile-widget {
	padding: 18px;
}

.qf-profile-widget h3 {
	margin: 0 0 12px;
	font-size: 16px;
	color: #202338;
}

.qf-profile-search input {
	width: 100%;
	height: 44px;
	border: 1px solid #dde0ea;
	border-radius: 999px;
	padding: 0 16px;
	font: inherit;
	font-size: 13px;
	background: #fbfbfe;
	box-sizing: border-box;
}

.qf-profile-placeholder {
	min-height: 116px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 1px dashed #d9dbea;
	border-radius: 14px;
	background: linear-gradient(135deg, #fbf9ff, #fff8fc);
	padding: 18px;
	color: #777b91;
	font-size: 13px;
	line-height: 1.55;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1250px) {
	.qf-profile-layout {
		width: calc(100vw - 32px) !important;
		grid-template-columns: 185px minmax(0, 1fr) 310px !important;
		row-gap: 0 !important;
		column-gap: 10px !important;
	}
}

@media (max-width: 900px) {
	.qf-profile-layout {
		grid-template-columns: 180px minmax(0, 1fr) !important;
	}

	.qf-profile-sidebar-right {
		position: static !important;
		grid-column: 2 !important;
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.qf-profile-widget:first-child {
		grid-column: 1 / -1 !important;
	}
}

@media (max-width: 782px) {
	.qf-profile-layout {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 12px 12px 36px !important;
	}

	.qf-profile-sidebar-left {
		position: static !important;
		margin-bottom: 12px !important;
	}

	.qf-profile-left-card {
		overflow-x: auto;
		padding: 8px;
	}

	.qf-profile-left-nav {
		flex-direction: row;
		width: max-content;
	}

	.qf-profile-sidebar-right {
		display: block !important;
		margin-top: 14px !important;
	}

	.qf-profile-widget + .qf-profile-widget {
		margin-top: 12px;
	}

	.qf-profile-main #cover-image-container {
		padding-top: 220px !important;
	}

	.qf-profile-main #header-cover-image {
		height: 220px !important;
		min-height: 220px !important;
	}

	.qf-profile-main #item-header-cover-image {
		display: block !important;
		min-height: 0 !important;
		padding: 0 18px 22px !important;
	}

	.qf-profile-main #item-header-avatar {
		margin: -62px 0 12px !important;
	}

	.qf-profile-main #item-header-avatar img.avatar {
		width: 124px !important;
		height: 124px !important;
		max-width: 124px !important;
		border-width: 5px !important;
	}

	.qf-profile-main #item-header-content .user-nicename {
		font-size: 30px !important;
		white-space: normal !important;
	}

	.qf-profile-photo-strip-track {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.qf-profile-photo-card {
		flex: 0 0 150px;
		scroll-snap-align: start;
	}
}


/* =========================================================
   v1.5.2 — Refined three-column geometry
   The center track remains fluid with 10px spacing and
   wider sidebars for complete navigation and search text.
   ========================================================= */

@media (min-width: 901px) {
	.qf-profile-layout {
		display: grid !important;
		grid-template-columns: 190px minmax(0, 1fr) 390px !important;
		grid-template-areas: "qf-left qf-main qf-right" !important;
		row-gap: 0 !important;
		column-gap: 10px !important;
		width: min(calc(100vw - 80px), 1440px) !important;
		max-width: 1440px !important;
		margin: 0 auto !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		justify-content: stretch !important;
		align-items: start !important;
		overflow: visible !important;
	}

	.qf-profile-sidebar-left {
		grid-area: qf-left !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		justify-self: stretch !important;
	}

	.qf-profile-main {
		grid-area: qf-main !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		justify-self: stretch !important;
		overflow: hidden !important;
	}

	.qf-profile-sidebar-right {
		grid-area: qf-right !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		justify-self: stretch !important;
	}

	.qf-profile-left-card,
	.qf-profile-widget {
		width: 100% !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box !important;
	}

	.qf-profile-main > #buddypress,
	.qf-profile-main #buddypress,
	.qf-profile-main #buddypress > .buddypress-wrap,
	.qf-profile-main #buddypress .buddypress-wrap,
	.qf-profile-main #buddypress .bp-wrap,
	.qf-profile-main #item-header,
	.qf-profile-main #object-nav,
	.qf-profile-main .bb-profile-grid,
	.qf-profile-main .bb-grid,
	.qf-profile-main #item-body,
	.qf-profile-main .qf-profile-photo-strip {
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		transform: none !important;
		left: auto !important;
		right: auto !important;
		box-sizing: border-box !important;
	}

	.qf-profile-main > #buddypress,
	.qf-profile-main #buddypress > .buddypress-wrap,
	.qf-profile-main #buddypress .bp-wrap {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.qf-profile-main .bb-profile-grid,
	.qf-profile-main .bb-grid {
		float: none !important;
		clear: both !important;
	}
}


/* ---------------- Profile bio and interest pills ---------------- */

.qf-profile-extras {
	margin-top: 10px;
	max-width: 680px;
}

.qf-profile-bio {
	margin: 0 0 10px !important;
	color: #555a70;
	font-size: 15px;
	line-height: 1.5;
}

.qf-profile-interest-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}

.qf-profile-interest-pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 12px;
	border: 1px solid #e3d9ff;
	border-radius: 999px;
	background: linear-gradient(135deg, #f4efff, #fff1f8);
	color: #6437dd;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.qf-profile-nav-label {
	min-width: 0;
	white-space: nowrap;
}

/* ---------------- Edit Profile fields ---------------- */

.qf-bio-edit-field textarea {
	width: 100% !important;
	min-height: 118px !important;
	max-height: 220px;
	resize: vertical;
	box-sizing: border-box !important;
}

.qf-bio-counter {
	display: block;
	margin-top: 7px;
	color: #7b7f92;
	font-size: 12px;
	text-align: right;
}

.qf-bio-counter.qf-limit-reached {
	color: #7c32d5;
	font-weight: 700;
}

.qf-tags-edit-field .input-options,
.qf-tags-edit-field .checkbox-options {
	margin: 0 !important;
}

.qf-tag-dropdown {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.qf-tag-dropdown-toggle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 54px;
	padding: 10px 46px 10px 16px;
	border: 1px solid #d7d9e3;
	border-radius: 12px;
	background: #fff;
	color: #2b2e41;
	font: inherit;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
}

.qf-tag-dropdown-toggle::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #777b8e;
	border-bottom: 2px solid #777b8e;
	transform: translateY(-65%) rotate(45deg);
	transition: transform .2s ease;
}

.qf-tag-dropdown.qf-open .qf-tag-dropdown-toggle::after {
	transform: translateY(-25%) rotate(225deg);
}

.qf-tag-dropdown-toggle:focus-visible {
	outline: 3px solid rgba(111, 66, 255, .18);
	border-color: #8f68ff;
}

.qf-tag-dropdown-panel {
	position: absolute;
	z-index: 100;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	display: none;
	max-height: 290px;
	overflow-y: auto;
	padding: 10px;
	border: 1px solid #e1e2ea;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 42px rgba(31, 34, 66, .14);
	box-sizing: border-box;
}

.qf-tag-dropdown.qf-open .qf-tag-dropdown-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
}

.qf-tag-dropdown-panel label {
	display: flex !important;
	align-items: center;
	gap: 9px;
	min-height: 38px;
	margin: 0 !important;
	padding: 7px 9px;
	border-radius: 9px;
	color: #303347;
	font-size: 13px;
	cursor: pointer;
}

.qf-tag-dropdown-panel label:hover {
	background: #f7f3ff;
}

.qf-tag-dropdown-panel input[type="checkbox"] {
	width: 17px !important;
	height: 17px !important;
	margin: 0 !important;
	accent-color: #7542eb;
	flex: 0 0 17px;
}

.qf-tag-dropdown-panel input[type="checkbox"]:disabled + span,
.qf-tag-dropdown-panel label.qf-disabled-option {
	opacity: .48;
	cursor: not-allowed;
}

.qf-tag-selection-status {
	grid-column: 1 / -1;
	position: sticky;
	bottom: -10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 6px -10px -10px;
	padding: 10px 12px;
	border-top: 1px solid #ececf2;
	background: #fff;
	color: #73778b;
	font-size: 12px;
}

.qf-tag-selection-status strong {
	color: #6838dc;
}

@media (max-width: 1250px) and (min-width: 901px) {
	.qf-profile-layout {
		grid-template-columns: 185px minmax(0, 1fr) 310px !important;
		width: calc(100vw - 32px) !important;
		max-width: none !important;
		row-gap: 0 !important;
		column-gap: 10px !important;
	}
}

@media (max-width: 782px) {
	.qf-profile-extras {
		margin-top: 8px;
	}

	.qf-profile-bio {
		font-size: 14px;
	}

	.qf-tag-dropdown.qf-open .qf-tag-dropdown-panel {
		grid-template-columns: 1fr;
	}
}


/* =========================================================
   v1.5.2 — Account/edit screens and Bio editor
   ========================================================= */

@media (min-width: 901px) {
	.qf-profile-layout.qf-profile-layout--management {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas: "qf-main" !important;
		column-gap: 0 !important;
		row-gap: 0 !important;
		width: min(calc(100vw - 80px), 1340px) !important;
		max-width: 1340px !important;
		margin: 0 auto !important;
	}

	.qf-profile-layout--management .qf-profile-main {
		grid-area: qf-main !important;
		width: 100% !important;
		max-width: none !important;
		overflow: visible !important;
	}
}

.qf-profile-layout--management .qf-profile-sidebar-left,
.qf-profile-layout--management .qf-profile-sidebar-right {
	display: none !important;
}

.qf-bio-editor-card {
	width: 100%;
	padding: 36px;
	border: 1px solid #e1e3ec;
	border-radius: 18px;
	background: #fff;
	box-sizing: border-box;
}

.qf-bio-editor-header {
	margin-bottom: 30px;
}

.qf-bio-editor-header h2 {
	margin: 0 0 10px;
	color: #202338;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.15;
}

.qf-bio-editor-header p {
	max-width: 760px;
	margin: 0;
	color: #686d82;
	font-size: 15px;
	line-height: 1.6;
}

.qf-bio-editor-form {
	display: grid;
	gap: 28px;
}

.qf-bio-editor-form .editfield {
	margin: 0 !important;
}

.qf-bio-editor-form label {
	display: block;
	margin: 0 0 10px;
	color: #25283b;
	font-size: 17px;
	font-weight: 600;
}

.qf-bio-editor-form .description {
	margin: 8px 0 0 !important;
	color: #777b8d;
	font-size: 13px;
	line-height: 1.55;
}

.qf-bio-editor-form textarea {
	width: 100% !important;
	min-height: 132px !important;
	padding: 16px !important;
	border: 1px solid #d9dce6 !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #292c3f !important;
	font: inherit !important;
	font-size: 15px !important;
	line-height: 1.55 !important;
	box-sizing: border-box !important;
}

.qf-bio-editor-actions {
	display: flex;
	justify-content: flex-start;
}

.qf-bio-editor-actions .button {
	min-height: 48px;
	padding: 0 26px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, #6f42ff, #8f2bd7) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	box-shadow: 0 10px 24px rgba(111, 66, 255, .18);
}

@media (max-width: 1250px) and (min-width: 901px) {
	.qf-profile-layout.qf-profile-layout--management {
		width: calc(100vw - 32px) !important;
		max-width: none !important;
	}
}

@media (max-width: 782px) {
	.qf-bio-editor-card {
		padding: 22px 18px;
	}

	.qf-tag-dropdown.qf-open .qf-tag-dropdown-panel {
		grid-template-columns: 1fr;
	}
}


/* =========================================================
   v1.5.3 — Right-rail breathing room, native Bio navigation,
   reliable management layout, and visible cover controls
   ========================================================= */

@media (min-width: 901px) {
	.qf-profile-sidebar-right {
		padding-right: 24px !important;
		box-sizing: border-box !important;
	}

	body.qf-profile-management-active .qf-profile-layout,
	body.qf-profile-management-page .qf-profile-layout {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas: "qf-main" !important;
		column-gap: 0 !important;
		row-gap: 0 !important;
		width: min(calc(100vw - 80px), 1340px) !important;
		max-width: 1340px !important;
		margin: 0 auto !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.qf-profile-management-active .qf-profile-sidebar-left,
	body.qf-profile-management-active .qf-profile-sidebar-right,
	body.qf-profile-management-page .qf-profile-sidebar-left,
	body.qf-profile-management-page .qf-profile-sidebar-right {
		display: none !important;
	}

	body.qf-profile-management-active .qf-profile-main,
	body.qf-profile-management-page .qf-profile-main {
		grid-area: qf-main !important;
		width: 100% !important;
		max-width: none !important;
		overflow: visible !important;
	}
}

.qf-bio-edit-link {
	font-weight: 500;
}

.qf-cover-controls {
	position: absolute !important;
	z-index: 60 !important;
	top: 14px !important;
	right: 14px !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	max-width: calc(100% - 28px) !important;
	pointer-events: auto !important;
}

.qf-cover-control {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px !important;
	min-width: 40px !important;
	height: 40px !important;
	padding: 0 12px !important;
	border: 1px solid rgba(255,255,255,.7) !important;
	border-radius: 999px !important;
	background: rgba(255,255,255,.94) !important;
	color: #202338 !important;
	box-shadow: 0 8px 24px rgba(25,28,55,.18) !important;
	backdrop-filter: blur(10px) !important;
	-webkit-backdrop-filter: blur(10px) !important;
	cursor: pointer !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
	box-sizing: border-box !important;
}

.qf-cover-control:hover,
.qf-cover-control:focus-visible {
	background: #fff !important;
	color: #6f42ff !important;
	outline: none !important;
}

.qf-cover-control svg {
	display: block !important;
	width: 19px !important;
	height: 19px !important;
	fill: currentColor !important;
	flex: 0 0 19px !important;
}

.qf-cover-control span {
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}

.qf-original-cover-control {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 1250px) and (min-width: 901px) {
	.qf-profile-sidebar-right {
		padding-right: 24px !important;
	}
}

@media (max-width: 782px) {
	.qf-cover-controls {
		top: 10px !important;
		right: 10px !important;
	}

	.qf-cover-control {
		height: 38px !important;
		padding: 0 10px !important;
	}

	.qf-cover-control span {
		display: none !important;
	}
}


/* =========================================================
   v1.5.3 — Profile Tags dropdown and custom Other tag
   ========================================================= */

.qf-tags-edit-field > .input-options,
.qf-tags-edit-field > .checkbox-options {
	display: none;
}

.qf-tag-dropdown {
	position: relative;
	width: 100%;
	max-width: 720px;
	margin-top: 12px;
}

.qf-tag-dropdown-toggle {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	min-height: 54px !important;
	padding: 0 52px 0 18px !important;
	border: 1px solid #d9dce6 !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #2b2e41 !important;
	font: inherit !important;
	font-size: 15px !important;
	text-align: left !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
}

.qf-tag-dropdown-panel {
	position: absolute !important;
	z-index: 1000 !important;
	top: calc(100% + 8px) !important;
	left: 0 !important;
	right: 0 !important;
	display: none !important;
	max-height: 360px !important;
	overflow-y: auto !important;
	padding: 10px !important;
	border: 1px solid #e1e2ea !important;
	border-radius: 14px !important;
	background: #fff !important;
	box-shadow: 0 18px 42px rgba(31, 34, 66, .16) !important;
	box-sizing: border-box !important;
}

.qf-tag-dropdown.qf-open .qf-tag-dropdown-panel {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 4px !important;
}

.qf-tag-dropdown-panel > label {
	display: flex !important;
	align-items: center !important;
	gap: 9px !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 8px 10px !important;
	border-radius: 9px !important;
	color: #303347 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
}

.qf-tag-dropdown-panel > label:hover {
	background: #f7f3ff !important;
}

.qf-custom-tag-source {
	display: none !important;
}

.qf-other-tag-entry {
	grid-column: 1 / -1 !important;
	display: none;
	margin: 8px 0 2px;
	padding: 14px;
	border: 1px solid #ebe4fb;
	border-radius: 11px;
	background: #faf7ff;
}

.qf-other-tag-entry.qf-visible {
	display: block;
}

.qf-other-tag-entry label {
	display: block !important;
	margin: 0 0 8px !important;
	color: #303347 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
}

.qf-other-tag-input {
	display: block !important;
	width: 100% !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	border: 1px solid #d9d2ec !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: #292c3f !important;
	font: inherit !important;
	font-size: 14px !important;
	box-sizing: border-box !important;
}

.qf-other-tag-entry small {
	display: block;
	margin-top: 7px;
	color: #777b8d;
	font-size: 11px;
	line-height: 1.4;
}

.qf-profile-sidebar-right {
	padding-right: 24px !important;
	box-sizing: border-box !important;
}

@media (max-width: 782px) {
	.qf-tag-dropdown.qf-open .qf-tag-dropdown-panel {
		grid-template-columns: 1fr !important;
	}
}


/* =========================================================
   v1.5.4 — Management-screen safety
   Edit Profile and Settings stay in BuddyBoss's native layout.
   ========================================================= */

body.qf-profile-management-active #buddypress {
	visibility: visible !important;
	opacity: 1 !important;
	display: block !important;
}

body.qf-profile-management-active .qf-profile-layout {
	display: none !important;
}


/* =========================================================
   v1.5.5 — Reliable grouped Profile Tags checkboxes
   ========================================================= */

.qf-native-tag-source {
	display: none !important;
}

.qf-tag-dropdown-panel {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.qf-tag-dropdown-intro,
.qf-tag-group-heading,
.qf-tag-selection-status,
.qf-other-tag-entry {
	grid-column: 1 / -1 !important;
}

.qf-tag-dropdown-intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: -2px -2px 6px;
	padding: 8px 8px 12px;
	border-bottom: 1px solid #ececf2;
	color: #303347;
}

.qf-tag-dropdown-intro strong {
	font-size: 13px;
	font-weight: 700;
}

.qf-tag-dropdown-intro span {
	color: #74788b;
	font-size: 12px;
	white-space: nowrap;
}

.qf-tag-group-heading {
	margin: 7px 2px 1px;
	color: #6d3ed7;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.qf-tag-option {
	position: relative;
	display: flex !important;
	align-items: center !important;
	gap: 9px !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 8px 10px !important;
	border-radius: 9px !important;
	color: #303347 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
}

.qf-tag-option:hover {
	background: #f7f3ff !important;
}

.qf-tag-option input[type="checkbox"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.qf-tag-checkbox {
	position: relative;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	height: 18px !important;
	flex: 0 0 18px !important;
	border: 1.5px solid #b9bdca !important;
	border-radius: 5px !important;
	background: #fff !important;
	box-sizing: border-box !important;
}

.qf-tag-option input[type="checkbox"]:checked + .qf-tag-checkbox {
	border-color: #7542eb !important;
	background: #7542eb !important;
}

.qf-tag-option input[type="checkbox"]:checked + .qf-tag-checkbox::after {
	content: "";
	width: 8px;
	height: 4px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translateY(-1px) rotate(-45deg);
}

.qf-tag-option input[type="checkbox"]:focus-visible + .qf-tag-checkbox {
	outline: 3px solid rgba(111, 66, 255, .18);
	outline-offset: 2px;
}

.qf-tag-option.qf-disabled-option {
	opacity: .46 !important;
	cursor: not-allowed !important;
}

.qf-tag-option-text {
	min-width: 0;
	line-height: 1.35;
}

@media (max-width: 782px) {
	.qf-tag-dropdown-panel {
		grid-template-columns: 1fr !important;
	}

	.qf-tag-dropdown-intro {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}
}


/* =========================================================
   v1.5.6 — Mockup proportions and About Me
   ========================================================= */

@media (min-width: 1251px) {
	.qf-profile-layout {
		grid-template-columns: 190px minmax(0, 1fr) 390px !important;
	}
}

@media (max-width: 1250px) and (min-width: 901px) {
	.qf-profile-layout {
		grid-template-columns: 185px minmax(0, 1fr) 310px !important;
	}
}

.qf-profile-about-card {
	margin-top: 14px;
	padding: 18px 20px 20px;
	border: 1px solid #e8e9f1;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(30, 33, 63, .04);
	box-sizing: border-box;
}

.qf-profile-about-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}

.qf-profile-about-header h3 {
	margin: 0;
	color: #202338;
	font-size: 16px;
	line-height: 1.2;
}

.qf-profile-about-edit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border: 1px solid #e2e4ed;
	border-radius: 10px;
	background: #fff;
	color: #51566c;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.qf-profile-about-edit:hover,
.qf-profile-about-edit:focus-visible {
	border-color: #d8c9ff;
	background: #f6f1ff;
	color: #6f42ff;
	outline: none;
}

.qf-profile-about-edit svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.qf-profile-about-text {
	max-width: 760px;
	margin: 0 !important;
	color: #555a70;
	font-size: 14px;
	line-height: 1.65;
	white-space: pre-wrap;
}

.qf-profile-about-empty {
	color: #8a8ea1;
	font-style: italic;
}

.qf-about-edit-field textarea {
	width: 100% !important;
	min-height: 180px !important;
	max-height: 360px;
	resize: vertical;
	box-sizing: border-box !important;
}

.qf-about-counter {
	display: block;
	margin-top: 7px;
	color: #7b7f92;
	font-size: 12px;
	text-align: right;
}

.qf-about-counter.qf-limit-reached {
	color: #7c32d5;
	font-weight: 700;
}

.qf-about-edit-link {
	font-weight: 500;
}

@media (max-width: 782px) {
	.qf-profile-about-card {
		padding: 16px;
	}

	.qf-profile-about-text {
		font-size: 14px;
	}
}


/* =========================================================
   v1.5.7 — Hover-only cover controls, About Me recovery,
   and functional profile overflow menu
   ========================================================= */

/* Keep BuddyBoss's More/three-dot dropdown outside the rounded nav bar. */
.qf-profile-main,
.qf-profile-main #buddypress,
.qf-profile-main .buddypress-wrap,
.qf-profile-main #object-nav,
.qf-profile-main #object-nav > ul,
.qf-profile-main #object-nav li {
	overflow: visible !important;
}

.qf-profile-main #object-nav {
	position: relative !important;
	z-index: 80 !important;
}

.qf-profile-main #object-nav .sub-menu,
.qf-profile-main #object-nav .bb_more_options,
.qf-profile-main #object-nav .bb-more-menu,
.qf-profile-main #object-nav .more-nav,
.qf-profile-main #object-nav .hideshow {
	z-index: 9999 !important;
}

/* Cover controls remain inside the banner and appear only on hover/focus. */
.qf-cover-controls {
	top: 28px !important;
	right: 18px !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transform: translateY(-6px) !important;
	transition:
		opacity .18s ease,
		visibility .18s ease,
		transform .18s ease !important;
}

.qf-profile-main #header-cover-image:hover .qf-cover-controls,
.qf-profile-main #header-cover-image:focus-within .qf-cover-controls {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: translateY(0) !important;
}

@media (hover: none) {
	.qf-cover-controls {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		transform: none !important;
	}
}

@media (max-width: 782px) {
	.qf-cover-controls {
		top: 16px !important;
		right: 12px !important;
	}
}


/* =========================================================
   v1.5.8 — Compact profile header, colorful tag icons,
   and clean direct profile navigation
   ========================================================= */

/* Place the name, account line, Short Bio and tags beside the avatar. */
.qf-profile-main #item-header-cover-image.qf-profile-header-arranged {
	display: flex !important;
	align-items: flex-end !important;
	gap: 26px !important;
	min-height: 224px !important;
	padding: 0 30px 28px !important;
}

.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-avatar {
	flex: 0 0 176px !important;
	margin: -92px 0 0 !important;
	align-self: flex-start !important;
}

.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
	flex: 1 1 auto !important;
	align-self: flex-end !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: calc(100% - 202px) !important;
	padding: 0 0 8px !important;
}

.qf-profile-main #item-header-content .user-nicename {
	font-size: clamp(31px, 2.15vw, 40px) !important;
	line-height: 1.06 !important;
	white-space: normal !important;
}

.qf-profile-extras {
	width: 100%;
	max-width: 560px;
	margin-top: 8px;
}

.qf-profile-bio {
	max-width: 540px;
	margin: 0 0 10px !important;
	font-size: 13.5px;
	line-height: 1.48;
}

.qf-profile-interest-pills {
	gap: 7px;
	margin-bottom: 0;
}

.qf-profile-interest-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 30px;
	padding: 4px 11px 4px 6px;
	border: 1px solid #e5e2ed;
	background: #fff;
	color: #36394d;
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 3px 10px rgba(39, 42, 75, .05);
}

.qf-profile-interest-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	flex: 0 0 21px;
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
}

.qf-profile-interest-text {
	line-height: 1;
	white-space: nowrap;
}

.qf-tag-theme-rainbow .qf-profile-interest-icon {
	background: linear-gradient(135deg, #ff5e8a, #ffb347 35%, #42cf8d 65%, #6f63ff);
}

.qf-tag-theme-pink .qf-profile-interest-icon {
	background: #ffe3ef;
	color: #ef3e88;
}

.qf-tag-theme-orange .qf-profile-interest-icon {
	background: #ffead7;
	color: #e36d18;
}

.qf-tag-theme-gold .qf-profile-interest-icon {
	background: #fff1c7;
	color: #c88700;
}

.qf-tag-theme-blue .qf-profile-interest-icon {
	background: #e1ebff;
	color: #3c63d9;
}

.qf-tag-theme-purple .qf-profile-interest-icon {
	background: #eee4ff;
	color: #7542db;
}

.qf-tag-theme-teal .qf-profile-interest-icon {
	background: #dff8f3;
	color: #168b77;
}

.qf-tag-theme-green .qf-profile-interest-icon {
	background: #e3f6df;
	color: #3b9145;
}

.qf-tag-theme-brown .qf-profile-interest-icon {
	background: #f1e4dc;
	color: #8a5135;
}

.qf-tag-theme-red .qf-profile-interest-icon {
	background: #ffe1e1;
	color: #d84747;
}

.qf-tag-theme-slate .qf-profile-interest-icon {
	background: #e9eaf0;
	color: #55596a;
}

/* Promote hidden overflow links into the main row and remove the inactive dots. */
.qf-profile-main #object-nav > ul {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
}

.qf-profile-main #object-nav > ul > li {
	display: list-item !important;
	flex: 0 0 auto !important;
}

.qf-profile-main #object-nav > ul > li.hideshow,
.qf-profile-main #object-nav > ul > li.bb_more_options,
.qf-profile-main #object-nav > ul > li.bb-more-menu,
.qf-profile-main #object-nav > ul > li.more-nav {
	display: none !important;
}

.qf-profile-main #object-nav > ul > li > a {
	padding-left: 16px !important;
	padding-right: 16px !important;
	font-size: 14px !important;
	white-space: nowrap !important;
}

.qf-promoted-profile-nav-item {
	display: list-item !important;
}

@media (max-width: 1100px) and (min-width: 901px) {
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged {
		gap: 20px !important;
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-avatar {
		flex-basis: 156px !important;
	}

	.qf-profile-main #item-header-avatar img.avatar {
		width: 156px !important;
		height: 156px !important;
		max-width: 156px !important;
	}

	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
		max-width: calc(100% - 176px) !important;
	}

	.qf-profile-main #object-nav > ul > li > a {
		padding-left: 12px !important;
		padding-right: 12px !important;
		font-size: 13px !important;
	}
}

@media (max-width: 782px) {
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged {
		display: block !important;
		min-height: 0 !important;
		padding: 0 20px 24px !important;
	}

	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-avatar {
		margin: -76px 0 16px !important;
	}

	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
		max-width: none !important;
		padding: 0 !important;
	}

	.qf-profile-extras,
	.qf-profile-bio {
		max-width: none;
	}

	.qf-profile-main #object-nav > ul {
		overflow-x: auto !important;
	}
}


/* =========================================================
   v1.5.9 — Profile-owner and visitor action buttons
   ========================================================= */

.qf-profile-extras {
	max-width: none !important;
}

.qf-profile-extras-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}

.qf-profile-extras-footer .qf-profile-interest-pills {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.qf-profile-header-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	flex: 0 0 auto;
	margin-left: auto;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #6f42ff, #8b2dd7);
	color: #fff !important;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(111, 66, 255, .2);
	transition:
		transform .2s ease,
		box-shadow .2s ease,
		filter .2s ease;
	white-space: nowrap;
}

.qf-profile-header-action:hover,
.qf-profile-header-action:focus-visible {
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(111, 66, 255, .27);
	filter: brightness(1.04);
	outline: none;
}

.qf-profile-header-action svg {
	display: block;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	fill: currentColor;
}

.qf-profile-header-action--message {
	background: linear-gradient(135deg, #7346f3, #ef3e92);
}

@media (max-width: 1100px) and (min-width: 901px) {
	.qf-profile-extras-footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.qf-profile-header-action {
		margin-left: 0;
	}
}

@media (max-width: 782px) {
	.qf-profile-extras-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.qf-profile-header-action {
		align-self: flex-start;
		margin-left: 0;
	}
}


/* =========================================================
   v1.6.0 — Full-width Short Bio and horizontal tag row
   ========================================================= */

.qf-profile-main #item-header-content .qf-profile-extras {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin-top: 10px !important;
}

.qf-profile-main #item-header-content .qf-profile-bio {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	font-size: 13.5px !important;
	line-height: 1.45 !important;
	white-space: normal !important;
}

@media (min-width: 783px) {
	.qf-profile-main .qf-profile-extras-footer {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: center !important;
		justify-content: stretch !important;
		gap: 16px !important;
		width: 100% !important;
	}

	.qf-profile-main .qf-profile-interest-pills,
	.qf-profile-main .qf-profile-extras-footer .qf-profile-interest-pills {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 8px !important;
		width: auto !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
	}

	.qf-profile-main .qf-profile-interest-pill {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		width: auto !important;
		margin: 0 !important;
	}

	.qf-profile-main .qf-profile-header-action {
		align-self: center !important;
		justify-self: end !important;
		margin: 0 !important;
	}
}

@media (max-width: 782px) {
	.qf-profile-main .qf-profile-extras-footer {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 12px !important;
	}

	.qf-profile-main .qf-profile-interest-pills {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		gap: 8px !important;
		width: 100% !important;
	}
}


/* =========================================================
   v1.6.1 — Hard-refresh flash prevention
   ========================================================= */

body.qf-profile-public-page #primary,
body.qf-profile-public-page main.site-main,
body.qf-profile-public-page .site-main,
body.qf-profile-public-page .content-area,
body.qf-profile-public-page .entry-content {
	transition: none !important;
}

html.qf-profile-layout-ready body.qf-profile-public-page #primary,
html.qf-profile-layout-ready body.qf-profile-public-page main.site-main,
html.qf-profile-layout-ready body.qf-profile-public-page .site-main,
html.qf-profile-layout-ready body.qf-profile-public-page .content-area,
html.qf-profile-layout-ready body.qf-profile-public-page .entry-content {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}


/* =========================================================
   v1.6.2 — Full-panel Short Bio and one-row profile actions
   ========================================================= */

@media (min-width: 1101px) {
	/*
	 * The name and account line remain beside the avatar.
	 * The Short Bio and the row beneath it extend back across
	 * the complete usable width of the profile panel.
	 */
	.qf-profile-main #item-header-content .qf-profile-extras {
		width: calc(100% + 202px) !important;
		max-width: none !important;
		margin-left: -202px !important;
		margin-right: 0 !important;
		padding-top: 18px !important;
		box-sizing: border-box !important;
	}
}

@media (max-width: 1100px) and (min-width: 901px) {
	.qf-profile-main #item-header-content .qf-profile-extras {
		width: calc(100% + 176px) !important;
		max-width: none !important;
		margin-left: -176px !important;
		margin-right: 0 !important;
		padding-top: 16px !important;
		box-sizing: border-box !important;
	}
}

@media (min-width: 783px) {
	.qf-profile-main #item-header-content,
	.qf-profile-main #item-header-content .qf-profile-extras,
	.qf-profile-main #item-header-content .qf-profile-bio {
		text-align: left !important;
	}

	.qf-profile-main #item-header-content .qf-profile-bio {
		display: block !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 0 14px !important;
		padding: 0 !important;
		font-size: 13.5px !important;
		line-height: 1.5 !important;
		white-space: normal !important;
		overflow-wrap: normal !important;
		word-break: normal !important;
	}

	.qf-profile-main .qf-profile-extras-footer {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: center !important;
		gap: 14px !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	.qf-profile-main .qf-profile-interest-pills,
	.qf-profile-main .qf-profile-extras-footer .qf-profile-interest-pills {
		display: flex !important;
		flex-flow: row nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 8px !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
	}

	.qf-profile-main .qf-profile-interest-pill {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		width: auto !important;
		min-height: 30px !important;
		margin: 0 !important;
		padding: 4px 10px 4px 5px !important;
		gap: 6px !important;
		font-size: 11.5px !important;
	}

	.qf-profile-main .qf-profile-interest-icon {
		width: 20px !important;
		height: 20px !important;
		flex-basis: 20px !important;
		font-size: 11px !important;
	}

	.qf-profile-main .qf-profile-header-action {
		align-self: center !important;
		justify-self: end !important;
		min-height: 36px !important;
		margin: 0 !important;
		padding: 0 14px !important;
		font-size: 12px !important;
		white-space: nowrap !important;
	}

	.qf-profile-main .qf-profile-header-action svg {
		width: 14px !important;
		height: 14px !important;
		flex-basis: 14px !important;
	}
}

@media (max-width: 782px) {
	.qf-profile-main #item-header-content .qf-profile-extras {
		width: 100% !important;
		margin-left: 0 !important;
		padding-top: 10px !important;
		text-align: left !important;
	}

	.qf-profile-main #item-header-content .qf-profile-bio {
		width: 100% !important;
		max-width: none !important;
		text-align: left !important;
	}

	.qf-profile-main .qf-profile-interest-pills {
		flex-flow: row wrap !important;
	}
}


/* =========================================================
   v1.6.3 — Non-overlapping profile navigation tabs
   ========================================================= */

.qf-profile-main #object-nav {
	overflow: hidden !important;
}

.qf-profile-main #object-nav > ul {
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 14px !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scrollbar-width: none;
	box-sizing: border-box !important;
}

.qf-profile-main #object-nav > ul::-webkit-scrollbar {
	display: none;
}

.qf-profile-main #object-nav > ul > li,
.qf-profile-main #object-nav > ul > li.qf-promoted-profile-nav-item {
	position: relative !important;
	inset: auto !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	display: block !important;
	float: none !important;
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: max-content !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
	box-sizing: border-box !important;
}

.qf-profile-main #object-nav > ul > li > a {
	position: relative !important;
	inset: auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: max-content !important;
	max-width: none !important;
	min-height: 54px !important;
	margin: 0 !important;
	padding: 0 13px !important;
	transform: none !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	text-align: center !important;
	box-sizing: border-box !important;
}

.qf-profile-main #object-nav > ul > li.current > a::after,
.qf-profile-main #object-nav > ul > li.selected > a::after {
	left: 13px !important;
	right: 13px !important;
	width: auto !important;
	transform: none !important;
}

.qf-profile-main #object-nav > ul > li[hidden],
.qf-profile-main #object-nav > ul > li[style*="display: none"] {
	display: none !important;
}

@media (min-width: 1300px) {
	.qf-profile-main #object-nav > ul {
		justify-content: space-between !important;
		gap: 0 !important;
	}

	.qf-profile-main #object-nav > ul > li > a {
		padding-left: 15px !important;
		padding-right: 15px !important;
	}
}

@media (max-width: 782px) {
	.qf-profile-main #object-nav > ul {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}

	.qf-profile-main #object-nav > ul > li > a {
		min-height: 50px !important;
		padding-left: 11px !important;
		padding-right: 11px !important;
		font-size: 12.5px !important;
	}
}


/* =========================================================
   v1.6.4 — Colorful semantic left-navigation icons
   ========================================================= */

.qf-profile-left-link {
	font-weight: 600 !important;
}

.qf-profile-left-label {
	font-weight: 600 !important;
}

.qf-profile-left-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 30px !important;
	height: 30px !important;
	flex: 0 0 30px !important;
	border-radius: 9px !important;
	background: var(--qf-nav-icon-bg, #f1ecff) !important;
	color: var(--qf-nav-icon-color, #7043ee) !important;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.58);
}

.qf-profile-left-icon svg {
	display: block !important;
	width: 17px !important;
	height: 17px !important;
	fill: currentColor !important;
}

.qf-profile-left-link--home {
	--qf-nav-icon-bg: #eee8ff;
	--qf-nav-icon-color: #7043ee;
}

.qf-profile-left-link--activity {
	--qf-nav-icon-bg: #ffe6f1;
	--qf-nav-icon-color: #ec3d86;
}

.qf-profile-left-link--members {
	--qf-nav-icon-bg: #e4efff;
	--qf-nav-icon-color: #3d69d8;
}

.qf-profile-left-link--groups {
	--qf-nav-icon-bg: #e5f8ef;
	--qf-nav-icon-color: #278960;
}

.qf-profile-left-link--events {
	--qf-nav-icon-bg: #fff0d6;
	--qf-nav-icon-color: #d47917;
}

.qf-profile-left-link--messages {
	--qf-nav-icon-bg: #e6f7fb;
	--qf-nav-icon-color: #2088a1;
}

.qf-profile-left-link--notifications {
	--qf-nav-icon-bg: #ffe5e5;
	--qf-nav-icon-color: #d94949;
}

.qf-profile-left-link--saved {
	--qf-nav-icon-bg: #ffe7f4;
	--qf-nav-icon-color: #db4389;
}

.qf-profile-left-link--profile {
	--qf-nav-icon-bg: #eee5ff;
	--qf-nav-icon-color: #7442f3;
}

.qf-profile-left-link--settings {
	--qf-nav-icon-bg: #ebedf2;
	--qf-nav-icon-color: #5c6273;
}

.qf-profile-left-link.qf-active {
	font-weight: 600 !important;
}

.qf-profile-left-link.qf-active .qf-profile-left-icon {
	background: linear-gradient(135deg, #7442f3, #ef3e91) !important;
	color: #fff !important;
	box-shadow: 0 7px 18px rgba(116,66,243,.22) !important;
}


/* =========================================================
   v1.6.5 — Prevent tag/action overlap
   ========================================================= */

@media (min-width: 783px) {
	.qf-profile-main .qf-profile-extras-footer {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) max-content !important;
		align-items: center !important;
		column-gap: 12px !important;
		width: 100% !important;
		min-width: 0 !important;
		overflow: hidden !important;
	}

	.qf-profile-main .qf-profile-interest-pills,
	.qf-profile-main .qf-profile-extras-footer .qf-profile-interest-pills {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		align-items: center !important;
		gap: 7px !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}

	.qf-profile-main .qf-profile-interest-pill {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 6px !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		min-height: 30px !important;
		margin: 0 !important;
		padding: 4px 8px 4px 5px !important;
		box-sizing: border-box !important;
		font-size: 11px !important;
	}

	.qf-profile-main .qf-profile-interest-text {
		min-width: 0 !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: nowrap !important;
	}

	.qf-profile-main .qf-profile-interest-icon {
		width: 19px !important;
		height: 19px !important;
		flex: 0 0 19px !important;
		font-size: 10.5px !important;
	}

	.qf-profile-main .qf-profile-header-action {
		position: static !important;
		inset: auto !important;
		z-index: auto !important;
		align-self: center !important;
		justify-self: end !important;
		min-width: 0 !important;
		max-width: 150px !important;
		min-height: 34px !important;
		margin: 0 !important;
		padding: 0 12px !important;
		font-size: 11.5px !important;
		gap: 6px !important;
		transform: none !important;
		box-sizing: border-box !important;
	}

	.qf-profile-main .qf-profile-header-action:hover,
	.qf-profile-main .qf-profile-header-action:focus-visible {
		transform: none !important;
	}

	.qf-profile-main .qf-profile-header-action svg {
		width: 13px !important;
		height: 13px !important;
		flex: 0 0 13px !important;
	}
}

@media (max-width: 900px) and (min-width: 783px) {
	.qf-profile-main .qf-profile-extras-footer {
		grid-template-columns: 1fr !important;
		row-gap: 10px !important;
		overflow: visible !important;
	}

	.qf-profile-main .qf-profile-header-action {
		justify-self: start !important;
	}
}


/* =========================================================
   v1.6.6 — No right rail on Messages or private member areas
   ========================================================= */

body.qf-profile-backend-page .qf-profile-sidebar-right,
body.qf-profile-backend-active .qf-profile-sidebar-right,
.qf-profile-layout--backend .qf-profile-sidebar-right {
	display: none !important;
}

@media (min-width: 901px) {
	body.qf-profile-backend-active .qf-profile-layout,
	.qf-profile-layout.qf-profile-layout--backend {
		display: grid !important;
		grid-template-columns: 190px minmax(0, 1fr) !important;
		grid-template-areas: "qf-left qf-main" !important;
		column-gap: 10px !important;
		width: min(calc(100vw - 80px), 1440px) !important;
		max-width: 1440px !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.qf-profile-backend-active .qf-profile-main,
	.qf-profile-layout--backend .qf-profile-main {
		grid-area: qf-main !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
	}
}

@media (max-width: 1250px) and (min-width: 901px) {
	body.qf-profile-backend-active .qf-profile-layout,
	.qf-profile-layout.qf-profile-layout--backend {
		grid-template-columns: 185px minmax(0, 1fr) !important;
		width: calc(100vw - 32px) !important;
		max-width: none !important;
	}
}


/* =========================================================
   v1.6.7 — Reduce space below the site header
   ========================================================= */

body.qf-profile-public-page .site-content,
body.qf-profile-public-page #content,
body.qf-profile-public-page #primary,
body.qf-profile-public-page main.site-main,
body.qf-profile-public-page .site-main,
body.qf-profile-public-page .content-area,
body.qf-profile-public-page article,
body.qf-profile-public-page .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.qf-profile-public-page .qf-profile-layout {
	margin-top: 0 !important;
	padding-top: 20px !important;
}

/* Keep private member screens consistent when they use the custom shell. */
body.qf-profile-backend-active .site-content,
body.qf-profile-backend-active #content,
body.qf-profile-backend-active #primary,
body.qf-profile-backend-active main.site-main,
body.qf-profile-backend-active .site-main,
body.qf-profile-backend-active .content-area,
body.qf-profile-backend-active article,
body.qf-profile-backend-active .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.qf-profile-backend-active .qf-profile-layout {
	margin-top: 0 !important;
	padding-top: 20px !important;
}


/* =========================================================
   v1.6.8 — Distinct Overview and Timeline pages
   ========================================================= */

/* Timeline contains only its tab navigation, composer, filters and feed. */
body.qf-profile-timeline-page .qf-profile-main #item-header,
body.qf-profile-timeline-active .qf-profile-main #item-header,
.qf-profile-main--timeline #item-header {
	display: none !important;
}

body.qf-profile-timeline-page .qf-profile-main .qf-profile-photo-strip,
body.qf-profile-timeline-page .qf-profile-main .qf-profile-about-card,
body.qf-profile-timeline-page .qf-profile-main .qf-profile-extras,
body.qf-profile-timeline-active .qf-profile-main .qf-profile-photo-strip,
body.qf-profile-timeline-active .qf-profile-main .qf-profile-about-card,
body.qf-profile-timeline-active .qf-profile-main .qf-profile-extras {
	display: none !important;
}

body.qf-profile-timeline-page .qf-profile-main #object-nav,
body.qf-profile-timeline-active .qf-profile-main #object-nav,
.qf-profile-main--timeline #object-nav {
	margin-top: 0 !important;
	border-radius: 18px !important;
}

body.qf-profile-timeline-page .qf-profile-main #item-body,
body.qf-profile-timeline-active .qf-profile-main #item-body,
.qf-profile-main--timeline #item-body {
	margin-top: 14px !important;
}

/* Keep the Timeline feed full-width inside the center column. */
body.qf-profile-timeline-page .qf-profile-main .bb-profile-grid,
body.qf-profile-timeline-page .qf-profile-main .bb-grid,
body.qf-profile-timeline-page .qf-profile-main #item-body,
body.qf-profile-timeline-active .qf-profile-main .bb-profile-grid,
body.qf-profile-timeline-active .qf-profile-main .bb-grid,
body.qf-profile-timeline-active .qf-profile-main #item-body {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}


/* =========================================================
   v1.6.9 — Align avatar, Short Bio and tags to one left edge
   ========================================================= */

@media (min-width: 1101px) {
	/*
	 * Move the avatar 15px left by reducing the profile-header
	 * left inset from 30px to 15px. The existing -202px offset
	 * on the extras block then places the Short Bio and tag row
	 * on the exact same left edge as the avatar.
	 */
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged {
		padding-left: 15px !important;
	}

	.qf-profile-main #item-header-content .qf-profile-extras {
		width: calc(100% + 202px) !important;
		margin-left: -202px !important;
	}
}

@media (max-width: 1100px) and (min-width: 901px) {
	/*
	 * The medium-desktop header previously used 24px on the left.
	 * Reducing it to 9px applies the same 15px leftward movement.
	 */
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged {
		padding-left: 9px !important;
	}

	.qf-profile-main #item-header-content .qf-profile-extras {
		width: calc(100% + 176px) !important;
		margin-left: -176px !important;
	}
}


/* =========================================================
   v1.6.10 — Extend profile actions toward the right edge
   ========================================================= */

@media (min-width: 1101px) {
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged {
		padding-left: 15px !important;
		padding-right: 12px !important;
	}

	.qf-profile-main #item-header-content .qf-profile-extras {
		width: calc(100% + 202px) !important;
		margin-left: -202px !important;
		margin-right: 0 !important;
	}
}

@media (max-width: 1100px) and (min-width: 901px) {
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged {
		padding-left: 9px !important;
		padding-right: 10px !important;
	}

	.qf-profile-main #item-header-content .qf-profile-extras {
		width: calc(100% + 176px) !important;
		margin-left: -176px !important;
		margin-right: 0 !important;
	}
}

@media (min-width: 783px) {
	.qf-profile-main .qf-profile-extras-footer {
		column-gap: 9px !important;
	}

	.qf-profile-main .qf-profile-header-action {
		max-width: 140px !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}


/* =========================================================
   v1.6.11 — Move Edit Profile / Message Me to the top right
   ========================================================= */

@media (min-width: 901px) {
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
		position: relative !important;
		padding-right: 176px !important;
	}

	.qf-profile-main .qf-profile-extras {
		max-width: none !important;
		width: calc(100% + 202px) !important;
		margin-left: -202px !important;
		margin-right: 0 !important;
	}

	.qf-profile-main .qf-profile-extras-footer {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		overflow: visible !important;
	}

	.qf-profile-main .qf-profile-interest-pills,
	.qf-profile-main .qf-profile-extras-footer .qf-profile-interest-pills {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 10px !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
	}

	.qf-profile-main .qf-profile-header-action {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		justify-self: auto !important;
		align-self: auto !important;
		max-width: 162px !important;
		min-width: 162px !important;
		min-height: 42px !important;
		padding: 0 14px !important;
		margin: 0 !important;
		z-index: 3 !important;
	}

	.qf-profile-main .qf-profile-header-action:hover,
	.qf-profile-main .qf-profile-header-action:focus-visible {
		transform: translateY(-1px) !important;
	}
}

@media (max-width: 1100px) and (min-width: 901px) {
	.qf-profile-main .qf-profile-extras {
		width: calc(100% + 176px) !important;
		margin-left: -176px !important;
	}

	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
		padding-right: 164px !important;
	}
}


/* =========================================================
   v1.6.12 — Sticky left panel, aligned top links, My Profile on Timeline
   ========================================================= */

@media (min-width: 901px) {
	.qf-profile-sidebar-left {
		top: 20px !important;
		max-height: calc(100vh - 40px) !important;
		overflow: hidden !important;
	}

	.qf-profile-left-card {
		max-height: calc(100vh - 40px) !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	/* Keep the top profile tabs visually aligned with consistent spacing. */
	.qf-profile-main #object-nav > ul {
		align-items: center !important;
		justify-content: flex-start !important;
		gap: clamp(22px, 3vw, 46px) !important;
		padding-left: 26px !important;
		padding-right: 26px !important;
	}

	.qf-profile-main #object-nav > ul > li {
		display: flex !important;
		align-items: center !important;
		flex: 0 0 auto !important;
		min-width: 0 !important;
	}

	.qf-profile-main #object-nav > ul > li > a {
		align-items: center !important;
		justify-content: center !important;
		min-height: 58px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		line-height: 1.1 !important;
		text-align: center !important;
		white-space: nowrap !important;
	}
}

/* Cancel the wide-screen space-between rule so text links stay aligned. */
@media (min-width: 1300px) {
	.qf-profile-main #object-nav > ul {
		justify-content: flex-start !important;
		gap: clamp(24px, 3.1vw, 48px) !important;
	}

	.qf-profile-main #object-nav > ul > li > a {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}


/* =========================================================
   v1.6.13 — Background emoji-picker prewarming
   ========================================================= */

body.qf-emoji-prewarming .emojionearea-picker,
body.qf-emoji-prewarming .emoji-picker,
body.qf-emoji-prewarming .emoji-picker-container,
body.qf-emoji-prewarming .emoji-mart,
body.qf-emoji-prewarming [class*="emoji"][class*="picker"] {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: none !important;
	animation: none !important;
}


/* =========================================================
   v1.6.14 — Correct top-right profile action placement
   ========================================================= */

@media (min-width: 901px) {
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged {
		position: relative !important;
	}

	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
		padding-right: 0 !important;
	}

	.qf-profile-main .qf-profile-header-action {
		position: absolute !important;
		top: 24px !important;
		right: 16px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: auto !important;
		min-width: 132px !important;
		max-width: 148px !important;
		min-height: 38px !important;
		margin: 0 !important;
		padding: 0 14px !important;
		border-radius: 10px !important;
		font-size: 12px !important;
		line-height: 1 !important;
		z-index: 8 !important;
		box-sizing: border-box !important;
	}

	.qf-profile-main .qf-profile-header-action svg {
		width: 14px !important;
		height: 14px !important;
		flex: 0 0 14px !important;
	}

	.qf-profile-main .qf-profile-extras-footer {
		display: block !important;
		width: 100% !important;
		overflow: visible !important;
	}

	.qf-profile-main .qf-profile-interest-pills,
	.qf-profile-main .qf-profile-extras-footer .qf-profile-interest-pills {
		display: flex !important;
		flex-flow: row nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 10px !important;
		width: 100% !important;
		max-width: none !important;
		overflow: visible !important;
	}

	.qf-profile-main .qf-profile-interest-pill {
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: none !important;
		padding: 4px 11px 4px 6px !important;
	}

	.qf-profile-main .qf-profile-interest-text {
		overflow: visible !important;
		text-overflow: clip !important;
		white-space: nowrap !important;
	}
}

@media (max-width: 1100px) and (min-width: 901px) {
	.qf-profile-main .qf-profile-header-action {
		top: 18px !important;
		right: 12px !important;
		min-width: 120px !important;
		max-width: 136px !important;
		padding-left: 11px !important;
		padding-right: 11px !important;
	}
}

@media (max-width: 900px) {
	.qf-profile-main .qf-profile-header-action {
		position: static !important;
		width: auto !important;
		max-width: none !important;
		margin-top: 12px !important;
	}
}


/* =========================================================
   v1.6.15 — Reliable sticky left navigation
   ========================================================= */

@media (min-width: 901px) {
	/*
	 * Keep the outer grid cell neutral. The inner card is the sticky
	 * element, which avoids the sticky + overflow conflict that caused
	 * the entire left column to scroll away.
	 */
	.qf-profile-sidebar-left {
		position: relative !important;
		top: auto !important;
		max-height: none !important;
		overflow: visible !important;
		align-self: stretch !important;
	}

	.qf-profile-left-card {
		position: sticky !important;
		top: calc(var(--bb-header-height, 76px) + 20px) !important;
		max-height: calc(100vh - var(--bb-header-height, 76px) - 40px) !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	/*
	 * Sticky positioning fails when an ancestor creates an overflow
	 * clipping context. Keep the profile-page ancestor chain open.
	 */
	body.qf-profile-layout-active .site-content,
	body.qf-profile-layout-active #content,
	body.qf-profile-layout-active #primary,
	body.qf-profile-layout-active main.site-main,
	body.qf-profile-layout-active .site-main,
	body.qf-profile-layout-active .content-area,
	body.qf-profile-layout-active article,
	body.qf-profile-layout-active .entry-content,
	body.qf-profile-layout-active .qf-profile-layout {
		overflow: visible !important;
	}
}


/* =========================================================
   v1.6.16 — Tighten name-to-avatar spacing and slim top-right action
   ========================================================= */

@media (min-width: 901px) {
	/* Bring the name/meta block closer to the avatar. */
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
		padding-left: 12px !important;
		gap: 18px !important;
	}

	/* Keep the bio/tags aligned with the avatar’s left edge after shifting content. */
	.qf-profile-main .qf-profile-extras {
		width: calc(100% + 214px) !important;
		margin-left: -214px !important;
	}

	/* Push the action to the far right and make it narrower. */
	.qf-profile-main .qf-profile-header-action {
		right: 10px !important;
		min-width: 116px !important;
		max-width: 128px !important;
		min-height: 36px !important;
		padding: 0 12px !important;
		border-radius: 9px !important;
		font-size: 11px !important;
		gap: 7px !important;
	}

	.qf-profile-main .qf-profile-header-action svg {
		width: 13px !important;
		height: 13px !important;
		flex: 0 0 13px !important;
	}
}

@media (max-width: 1100px) and (min-width: 901px) {
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
		padding-left: 10px !important;
		gap: 16px !important;
	}

	.qf-profile-main .qf-profile-extras {
		width: calc(100% + 186px) !important;
		margin-left: -186px !important;
	}

	.qf-profile-main .qf-profile-header-action {
		right: 8px !important;
		min-width: 108px !important;
		max-width: 120px !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}


/* =========================================================
   v1.6.17 — Smaller bottom-right action, tighter header spacing
   ========================================================= */

@media (min-width: 901px) {
	/* Pull the text block closer to the profile photo. */
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
		padding-left: 4px !important;
		gap: 10px !important;
	}

	/* Keep the short bio and tags aligned after the tighter text shift. */
	.qf-profile-main .qf-profile-extras {
		width: calc(100% + 222px) !important;
		margin-left: -222px !important;
	}

	/* Give the lower content a little reserved room on the right for the button. */
	.qf-profile-main .qf-profile-extras-footer {
		padding-right: 126px !important;
		box-sizing: border-box !important;
	}

	.qf-profile-main .qf-profile-interest-pills,
	.qf-profile-main .qf-profile-extras-footer .qf-profile-interest-pills {
		gap: 8px !important;
	}

	.qf-profile-main .qf-profile-interest-pill {
		padding-left: 5px !important;
		padding-right: 10px !important;
	}

	/* Move the action button back to the bottom right and make it much smaller. */
	.qf-profile-main .qf-profile-header-action {
		top: auto !important;
		bottom: 22px !important;
		right: 14px !important;
		min-width: 92px !important;
		max-width: 104px !important;
		min-height: 30px !important;
		padding: 0 10px !important;
		border-radius: 8px !important;
		font-size: 10px !important;
		line-height: 1 !important;
		gap: 6px !important;
		box-shadow: 0 8px 18px rgba(115, 65, 231, 0.16) !important;
	}

	.qf-profile-main .qf-profile-header-action svg {
		width: 11px !important;
		height: 11px !important;
		flex: 0 0 11px !important;
	}

	/* Slightly reduce left-right visual gaps within the header content area. */
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}

@media (max-width: 1100px) and (min-width: 901px) {
	.qf-profile-main #item-header-cover-image.qf-profile-header-arranged #item-header-content {
		padding-left: 2px !important;
		gap: 8px !important;
	}

	.qf-profile-main .qf-profile-extras {
		width: calc(100% + 194px) !important;
		margin-left: -194px !important;
	}

	.qf-profile-main .qf-profile-extras-footer {
		padding-right: 114px !important;
	}

	.qf-profile-main .qf-profile-header-action {
		bottom: 20px !important;
		right: 10px !important;
		min-width: 86px !important;
		max-width: 98px !important;
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
}


/* =========================================================
   v1.6.18 — Reliable sticky left panel
   ========================================================= */

@media (min-width: 901px) {
	/*
	 * The grid item itself must be sticky and must not stretch to the
	 * full height of the center column. The menu card can then scroll
	 * internally when it is taller than the visible viewport.
	 */
	.qf-profile-sidebar-left {
		position: sticky !important;
		top: calc(var(--bb-header-height, 76px) + 20px) !important;
		align-self: start !important;
		height: fit-content !important;
		max-height: none !important;
		overflow: visible !important;
		transform: none !important;
		z-index: 30 !important;
	}

	.qf-profile-left-card {
		position: static !important;
		max-height: calc(100vh - var(--bb-header-height, 76px) - 40px) !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	/*
	 * Sticky positioning is disabled by overflow clipping on any ancestor.
	 * Keep the profile-layout ancestor chain open on desktop.
	 */
	body.qf-profile-layout-active .site,
	body.qf-profile-layout-active .site-content,
	body.qf-profile-layout-active #content,
	body.qf-profile-layout-active #primary,
	body.qf-profile-layout-active main.site-main,
	body.qf-profile-layout-active .site-main,
	body.qf-profile-layout-active .content-area,
	body.qf-profile-layout-active article,
	body.qf-profile-layout-active .entry-content,
	body.qf-profile-layout-active .qf-profile-layout {
		overflow: visible !important;
	}
}


/* =========================================================
   v1.6.19 — Sticky left panel and tag-aligned profile action
   ========================================================= */

@media (min-width: 901px) {
	/* Retain the reliable sticky behavior from v1.6.18. */
	.qf-profile-sidebar-left {
		position: sticky !important;
		top: calc(var(--bb-header-height, 76px) + 20px) !important;
		align-self: start !important;
		height: fit-content !important;
		max-height: none !important;
		overflow: visible !important;
		transform: none !important;
		z-index: 30 !important;
	}

	.qf-profile-left-card {
		position: static !important;
		max-height: calc(100vh - var(--bb-header-height, 76px) - 40px) !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	/* Align Edit Profile / Message Me directly with the tag row. */
	.qf-profile-main .qf-profile-extras-footer {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: center !important;
		column-gap: 8px !important;
		width: 100% !important;
		min-width: 0 !important;
		padding-right: 0 !important;
		overflow: visible !important;
		box-sizing: border-box !important;
	}

	.qf-profile-main .qf-profile-interest-pills,
	.qf-profile-main .qf-profile-extras-footer .qf-profile-interest-pills {
		display: flex !important;
		flex-flow: row nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 8px !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
	}

	.qf-profile-main .qf-profile-header-action {
		position: static !important;
		inset: auto !important;
		justify-self: end !important;
		align-self: center !important;
		width: auto !important;
		min-width: 92px !important;
		max-width: 106px !important;
		min-height: 30px !important;
		margin: 0 !important;
		padding: 0 9px !important;
		border-radius: 8px !important;
		font-size: 10px !important;
		gap: 5px !important;
		transform: none !important;
		white-space: nowrap !important;
	}

	.qf-profile-main .qf-profile-header-action:hover,
	.qf-profile-main .qf-profile-header-action:focus-visible {
		transform: none !important;
	}

	.qf-profile-main .qf-profile-header-action svg {
		width: 11px !important;
		height: 11px !important;
		flex: 0 0 11px !important;
	}
}

@media (max-width: 1100px) and (min-width: 901px) {
	.qf-profile-main .qf-profile-extras-footer {
		column-gap: 6px !important;
	}

	.qf-profile-main .qf-profile-header-action {
		min-width: 86px !important;
		max-width: 98px !important;
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
}
