/**
 * Forumax Extension — User profile styles.
 * Loaded only on the bbPress single-user screen.
 * All selectors are namespaced with .fmxext-profile so they never leak elsewhere.
 */

/* ---- Layout ----
 * The profile itself spans full width; inner content is constrained by
 * .fmxext-container. Adjust --fmxext-content-max to match your content box.
 */
/* Page background behind the profile (cards stay white on top). */
body.fmxext-profile-page {
	background-color: #f5f8f9;
}

/* Forumax sets a white background on the user body; remove it so the page
 * background shows through (cards/content provide their own surfaces).
 * Same selector specificity as the original, loaded later, so it wins. */
#bbpress-forums #bbp-user-wrapper .bbp-user-body {
	background: transparent !important;
}

/* The profile spans full width so the header band and its bottom border bleed
 * edge-to-edge. Width is controlled by the inner .fmxext-container instead. */
.fmxext-profile {
	width: 100%;
	box-sizing: border-box;
	--fmxext-accent: #0e9384;       /* active text + icon  */
	--fmxext-accent-bg: #d8f3ec;    /* active background   */
}

.fmxext-profile *,
.fmxext-profile *::before,
.fmxext-profile *::after {
	box-sizing: border-box;
}

/* The single width controller: centers content at 1440px with 20px gutters.
 * Used by both the header content and the body grid so they align. */
.fmxext-container {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 20px;
}

/* Full-width sections; their inner .fmxext-container does the constraining. */
.fmxext-account-header,
.fmxext-profile-grid,
.fmxext-profile-main {
	width: 100%;
}

/* Remove the default 4px right margin bbPress adds to avatar images. */
#bbpress-forums img.avatar {
	margin-right: 0;
}

/* Space between the header band and the body. */
.fmxext-profile-content {
	padding-top: 2rem;
}

/* bbPress notices (e.g. "User updated.") restyled to match the design.
 * Matches bbPress's own selector specificity and loads later, so it wins. */
#bbpress-forums div.bbp-template-notice {
	margin: 0 0 1.5rem;
	padding: 0.85rem 1.1rem;
	border: 1px solid #b9e6dd;
	border-left: 4px solid var(--fmxext-accent, #0e9384);
	border-radius: 10px;
	background: #e9f7f3;
	color: #0f5f57;
	box-shadow: none;
	text-shadow: none;
}

#bbpress-forums div.bbp-template-notice ul,
#bbpress-forums div.bbp-template-notice li {
	margin: 0;
	padding: 0;
	list-style: none;
}

#bbpress-forums div.bbp-template-notice.error {
	border-color: #f3c0c0;
	border-left-color: #d92d20;
	background: #fdecec;
	color: #912018;
}

/* ---- Account header (full-width band) ---- */
.fmxext-account-header {
	padding-top: 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fmxext-account-eyebrow {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6b7280;
}

.fmxext-account-identity {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.85rem;
}

.fmxext-account-avatar {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, #10b981, #059669);
	color: #fff;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Real profile picture variant (drops the gradient behind the image). */
.fmxext-account-avatar--img {
	background: #f3f4f6;
}

.fmxext-account-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.fmxext-account-name {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.15;
	color: #111827;
}

.fmxext-account-sub {
	margin: 0.25rem 0 0;
	color: #6b7280;
	font-size: 0.95rem;
}

.fmxext-account-username {
	font-weight: 600;
	color: #475467;
}

.fmxext-profile-grid {
	display: grid;
	/* Fixed sidebar; main column may shrink (minmax 0) so wide tab content
	 * never squeezes the sidebar and forces its items to wrap. */
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

@media (max-width: 782px) {
	.fmxext-profile-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Sidebar navigation ---- */
.fmxext-profile-aside {
	min-width: 240px;
}

.fmxext-profile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.fmxext-profile-nav li {
	margin: 0;
}

.fmxext-profile-nav a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	text-decoration: none;
	color: #344054;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.fmxext-profile-nav a svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: #667085;
}

.fmxext-profile-nav a:hover {
	background: #eef1f4;
	color: #111827;
}

.fmxext-profile-nav li.current a {
	background: var(--fmxext-accent-bg);
	color: var(--fmxext-accent);
	font-weight: 600;
}

.fmxext-profile-nav li.current a svg {
	color: var(--fmxext-accent);
}

/* Divider before the Sign out group */
.fmxext-nav-divider {
	height: 1px;
	border: 0;
	background: #dce6e9;
	margin: 1.75rem 0.25rem 0.75rem;
}

/* Main body */
.fmxext-profile-body {
	padding: 1.75rem;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Profile stats */
.fmxext-profile-stats {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
}

.fmxext-profile-stats li {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
}

.fmxext-stat-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.6;
}

.fmxext-stat-value {
	font-size: 1.1rem;
	font-weight: 600;
	margin-top: 0.25rem;
}

/* On the edit screen, drop the outer body panel so each card stands alone
 * (separate shadow per the reference design). */
.fmxext-profile-body--flush {
	padding: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

/* ---- Combined edit form (cards) ---- */
.fmxext-edit-form .fmxext-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.fmxext-card-title {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
}

.fmxext-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 640px) {
	.fmxext-field-grid {
		grid-template-columns: 1fr;
	}
}

.fmxext-field--full {
	grid-column: 1 / -1;
}

.fmxext-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #344054;
}

.fmxext-edit-form input[type="text"],
.fmxext-edit-form input[type="email"],
.fmxext-edit-form select,
.fmxext-edit-form textarea {
	width: 100%;
	padding: 0.6rem 0.8rem;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	font: inherit;
	color: #111827;
	background: #fff;
}

.fmxext-edit-form input:focus,
.fmxext-edit-form select:focus,
.fmxext-edit-form textarea:focus {
	outline: none;
	border-color: var(--fmxext-accent, #0e9384);
	box-shadow: 0 0 0 3px rgba(14, 147, 132, 0.15);
}

.fmxext-field-hint {
	margin: 0.4rem 0 0;
	font-size: 0.8rem;
	color: #667085;
}

/* Footer actions */
.fmxext-card-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fmxext-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.6rem 1.1rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
}

.fmxext-btn--ghost {
	background: #fff;
	border-color: #d0d5dd;
	color: #344054;
}

.fmxext-btn--ghost:hover {
	background: #f9fafb;
}

.fmxext-btn--primary {
	background: var(--fmxext-accent, #0e9384);
	color: #fff;
}

.fmxext-btn--primary:hover {
	filter: brightness(0.96);
}

/* Profile photo card — reuse Forumax's avatar uploader markup */
.fmxext-card--photo .frmx-avatar-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.fmxext-card--photo .frmx-avatar-fieldset legend {
	float: none;
	width: auto;
	margin: 0 0 1rem;
	padding: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
}

.fmxext-card--photo .frmx-avatar-upload-wrap {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.fmxext-card--photo .frmx-avatar-preview {
	position: relative;
	flex: 0 0 auto;
}

.fmxext-card--photo .frmx-avatar-preview img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

/* Upload Photo button: match the theme accent (Forumax turns it blue on hover)
 * and restore the pointer cursor (it's a <label>, so it defaults to text). */
.fmxext-card--photo .frmx-avatar-upload-btn,
.fmxext-card--photo .frmx-avatar-upload-btn * {
	cursor: pointer !important;
}

.fmxext-card--photo .frmx-avatar-upload-btn {
	background-color: var(--fmxext-accent, #0e9384) !important;
}

.fmxext-card--photo .frmx-avatar-upload-btn:hover {
	filter: brightness(0.96);
	box-shadow: none !important;
}

/* =====================================================================
 * Read-only profile view (the "Profile" tab; editing lives at /edit/).
 * ===================================================================== */
.fmxext-profile-view .fmxext-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.fmxext-pv-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.fmxext-pv-identity {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.fmxext-pv-avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: block;
	margin: 0;
}

.fmxext-pv-name {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #101828;
}

.fmxext-pv-role {
	margin: 0.15rem 0 0;
	color: #667085;
	font-size: 0.9rem;
}

.fmxext-pv-edit {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 1rem;
	border: 1px solid #d0d5dd !important; /* bbPress strips link borders inside #bbpress-forums */
	border-radius: 8px;
	background: #fff;
	color: #344054;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	flex: 0 0 auto;
}

.fmxext-pv-edit:hover {
	background: #f9fafb;
	border-color: #98a2b3;
	color: #344054;
}

.fmxext-pv-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 2rem;
}

@media (max-width: 640px) {
	.fmxext-pv-grid {
		grid-template-columns: 1fr;
	}
}

.fmxext-pv-field {
	min-width: 0;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid #eef1f4;
}

.fmxext-pv-field--full {
	grid-column: 1 / -1;
	border-bottom: 0;
	padding-bottom: 0;
}

.fmxext-pv-label {
	display: block;
	font-size: 0.8rem;
	color: #98a2b3;
	margin-bottom: 0.35rem;
}

.fmxext-pv-value {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #101828;
	word-break: break-word;
}

.fmxext-pv-empty {
	color: #cbd5e1;
	font-weight: 400;
}

/* =====================================================================
 * Topics Started page — "Your topics" summary + "Recent topics" list.
 * ===================================================================== */
.fmxext-topics-page .fmxext-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* "Your topics" header card */
.fmxext-yt-head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem 1.5rem;
}

.fmxext-yt-intro {
	min-width: 0;
}

.fmxext-yt-head .fmxext-card-title {
	margin: 0 0 0.25rem;
}

.fmxext-yt-sub {
	margin: 0;
	color: #667085;
	font-size: 0.9rem;
}

.fmxext-yt-newtopic {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	align-self: start;
	padding: 0.6rem 1.1rem;
	border-radius: 8px;
	background: var(--fmxext-accent, #0e9384);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	border: 1px solid transparent !important;
}

.fmxext-yt-newtopic:hover {
	filter: brightness(0.96);
	color: #fff !important;
}

/* Stats row spans both columns under the intro + button. */
.fmxext-yt-stats {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border: 1px solid #eef1f4;
	border-radius: 12px;
	overflow: hidden;
	margin-top: 0.25rem;
}

.fmxext-yt-stats--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fmxext-yt-stat {
	padding: 1rem 1.25rem;
	border-right: 1px solid #eef1f4;
}

.fmxext-yt-stat:last-child {
	border-right: 0;
}

.fmxext-yt-stat-label {
	display: block;
	font-size: 0.82rem;
	color: #667085;
	margin-bottom: 0.35rem;
}

.fmxext-yt-stat-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	color: #101828;
	line-height: 1.1;
}

@media (max-width: 640px) {
	.fmxext-yt-head {
		grid-template-columns: 1fr;
	}
	.fmxext-yt-stats {
		grid-template-columns: repeat(2, 1fr);
	}
	.fmxext-yt-stat:nth-child(2) {
		border-right: 0;
	}
}

/* "Recent topics" list */
.fmxext-yt-list-card .fmxext-card-title {
	margin-bottom: 0.5rem;
}

.fmxext-yt-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 0;
	text-decoration: none;
}

/* The rows are <a> elements; bbPress's `#bbpress-forums a` rule (id + element)
 * outranks a plain class and strips the border, so scope the separator under
 * #bbpress-forums to win the cascade deterministically. */
#bbpress-forums .fmxext-yt-row,
#bbpress-forums .fmxext-yt-row:hover {
	border-bottom: 1px solid #e5e7eb;
}

#bbpress-forums .fmxext-yt-row:last-child,
#bbpress-forums .fmxext-yt-row:last-child:hover {
	border-bottom: 0;
}

.fmxext-yt-row-main {
	flex: 1 1 auto;
	min-width: 0;
}

.fmxext-yt-row-title {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: #101828;
	line-height: 1.4;
}

.fmxext-yt-row:hover .fmxext-yt-row-title {
	color: var(--fmxext-accent, #0e9384);
}

/* "Reply to:" prefix — muted, so the topic title stays the emphasis. */
.fmxext-yt-row-prefix {
	font-weight: 500;
	color: #667085;
}

.fmxext-yt-row:hover .fmxext-yt-row-prefix {
	color: #667085;
}

/* Reply excerpt clamped to 2 lines. */
.fmxext-yt-excerpt {
	margin: 0.35rem 0 0;
	color: #667085;
	font-size: 0.88rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fmxext-yt-row-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 0.35rem;
	font-size: 0.82rem;
	color: #667085;
}

.fmxext-yt-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.fmxext-yt-status {
	flex: 0 0 auto;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.5;
}

.fmxext-yt-status--solved,
.fmxext-yt-status--answered {
	background: #d1fadf;
	color: #087443;
}

.fmxext-yt-status--open {
	background: #eef2f6;
	color: #475467;
}

.fmxext-yt-status--closed {
	background: #fee4e2;
	color: #b42318;
}

.fmxext-yt-chevron {
	flex: 0 0 auto;
	display: inline-flex;
	color: #cbd5e1;
}

.fmxext-yt-row:hover .fmxext-yt-chevron {
	color: #98a2b3;
}

.fmxext-yt-empty {
	margin: 0;
	color: #667085;
}

/* Topics list pagination */
.fmxext-yt-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1.25rem;
}

.fmxext-yt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 0.6rem;
	border: 1px solid #e4e9ee;
	border-radius: 8px;
	background: #fff;
	color: #475467;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
}

.fmxext-yt-pagination a.page-numbers:hover {
	border-color: #98a2b3;
	color: #101828;
}

.fmxext-yt-pagination .page-numbers.current {
	background: var(--fmxext-accent, #0e9384);
	border-color: var(--fmxext-accent, #0e9384);
	color: #fff;
}

.fmxext-yt-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* -------------------------------------------------------------------------
 * Security page (/users/{name}/security/)
 * ---------------------------------------------------------------------- */
.fmxext-security {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.fmxext-security-notice {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 600;
	border: 1px solid transparent;
}

.fmxext-security-notice--success {
	background: #ecfdf3;
	border-color: #abefc6;
	color: #067647;
}

.fmxext-security-notice--error {
	background: #fef3f2;
	border-color: #fecdca;
	color: #b42318;
}

.fmxext-security-head {
	margin-bottom: 1.25rem;
}

.fmxext-security-card .fmxext-card-title {
	margin: 0 0 0.35rem;
}

.fmxext-security-sub {
	margin: 0;
	font-size: 0.875rem;
	color: #667085;
}

/* View mode: masked password + change button */
.fmxext-security-display {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border: 1px solid #eaecf0;
	border-radius: 10px;
	background: #f9fafb;
}

.fmxext-security-lock {
	display: inline-flex;
	color: #667085;
}

.fmxext-security-dots {
	font-size: 1.35rem;
	letter-spacing: 0.15em;
	color: #344054;
	line-height: 1;
}

.fmxext-security-view-footer {
	justify-content: flex-end;
}

/* Toggle between view and edit modes */
.fmxext-security-form {
	display: none;
	flex-direction: column;
	gap: 1.25rem;
}

.fmxext-security-card.is-editing .fmxext-security-view {
	display: none;
}

.fmxext-security-card.is-editing .fmxext-security-form {
	display: flex;
}

/* Password inputs — match the edit-profile fields; prefix with #bbpress-forums
 * so bbPress's id-scoped input rules don't override padding/height. */
#bbpress-forums .fmxext-security-form input[type="password"] {
	width: 100%;
	height: auto;
	padding: 0.6rem 0.8rem;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	font: inherit;
	color: #111827;
	background: #fff;
	box-shadow: none;
}

#bbpress-forums .fmxext-security-form input[type="password"]:focus {
	outline: none;
	border-color: var(--fmxext-accent, #0e9384);
	box-shadow: 0 0 0 3px rgba(14, 147, 132, 0.15);
}

.fmxext-security-form .fmxext-card-footer {
	margin-top: 0.25rem;
}

/* -------------------------------------------------------------------------
 * Points earned page (/users/{name}/points/)
 * ---------------------------------------------------------------------- */

/* Balance badge in the sidebar nav */
.fmxext-nav-badge {
	margin-left: auto;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: var(--fmxext-accent-bg, #d5f5f0);
	color: var(--fmxext-accent, #0e9384);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
}

.fmxext-profile-nav li.current a .fmxext-nav-badge {
	background: var(--fmxext-accent, #0e9384);
	color: #fff;
}

.fmxext-points {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Summary: Your earnings */
.fmxext-earn-summary-head {
	margin-bottom: 1.25rem;
}

.fmxext-earn-summary .fmxext-card-title {
	margin: 0 0 0.35rem;
}

.fmxext-earn-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 640px) {
	.fmxext-earn-stats {
		grid-template-columns: 1fr;
	}
}

.fmxext-earn-stat {
	padding: 1rem 1.1rem;
	border: 1px solid #eaecf0;
	border-radius: 12px;
	background: #f9fafb;
}

.fmxext-earn-stat-label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #667085;
}

.fmxext-earn-stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #101828;
	line-height: 1.1;
}

.fmxext-earn-stat-unit {
	font-size: 0.8rem;
	font-weight: 600;
	color: #98a2b3;
}

/* Shared list (How you earned it + Recent activity) */
.fmxext-earn-list {
	display: flex;
	flex-direction: column;
}

.fmxext-earn-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.9rem 0;
	border-top: 1px solid #f2f4f7;
}

.fmxext-earn-row:first-child {
	border-top: 0;
}

.fmxext-earn-row-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border-radius: 10px;
	background: var(--fmxext-accent-bg, #d5f5f0);
	color: var(--fmxext-accent, #0e9384);
}

.fmxext-earn-row-main {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	flex: 1 1 auto;
}

.fmxext-earn-row-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #101828;
}

.fmxext-earn-row-sub {
	font-size: 0.8rem;
	color: #667085;
}

.fmxext-earn-row-amount {
	flex: 0 0 auto;
	font-size: 0.95rem;
	font-weight: 700;
	color: #101828;
	white-space: nowrap;
}

.fmxext-earn-row-amount--gain {
	color: var(--fmxext-accent, #0e9384);
}

/* Remove the Visual/Code (TinyMCE/Text) editor switcher on all forum editors:
 * new topic, reply, and inline/standalone topic & reply edit forms. Scoped to
 * #bbpress-forums so it never affects other front-end wp_editor instances. */
#bbpress-forums .wp-editor-tabs {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * "Blogs written" profile page (/users/{name}/blogs/)
 * ---------------------------------------------------------------------- */
/* Summary + list reuse the .fmxext-yt-* head/list/stat styles. */

/* Status pills */
.fmxext-blogs-status {
	display: inline-block;
	flex: 0 0 auto;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.fmxext-blogs-status--published { background: #ecfdf3; color: #067647; }
.fmxext-blogs-status--pending   { background: #fff6ed; color: #b93815; }
.fmxext-blogs-status--draft     { background: #f2f4f7; color: #475467; }
.fmxext-blogs-status--scheduled,
.fmxext-blogs-status--private   { background: #eff4ff; color: #3538cd; }

/* Blog list row: title link + meta (reuses .fmxext-yt-row / -main / -meta). */
.fmxext-blog-row .fmxext-yt-row-title a {
	color: inherit;
	text-decoration: none;
}

.fmxext-blog-row:hover .fmxext-yt-row-title a {
	color: var(--fmxext-accent, #0e9384);
}

/* Ideas submitted list row: title link + workflow status pill. These mirror the
 * ideas.css pill styling here because ideas.css isn't loaded on profile pages. */
.fmxext-idea-profile-row .fmxext-yt-row-title a {
	color: inherit;
	text-decoration: none;
}

.fmxext-idea-profile-row:hover .fmxext-yt-row-title a {
	color: var(--fmxext-accent, #0e9384);
}

.fmxext-idea-profile-row .fmxext-idea-status {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 0.4rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.fmxext-idea-profile-row .fmxext-idea-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

.fmxext-idea-profile-row .fmxext-idea-status--new                 { background: #f2f4f7; color: #475467; }
.fmxext-idea-profile-row .fmxext-idea-status--needs-clarification { background: #fff6ed; color: #b93815; }
.fmxext-idea-profile-row .fmxext-idea-status--needs-votes         { background: #eef4ff; color: #3538cd; }
.fmxext-idea-profile-row .fmxext-idea-status--under-review        { background: #fffaeb; color: #b54708; }
.fmxext-idea-profile-row .fmxext-idea-status--planned             { background: #eff8ff; color: #175cd3; }
.fmxext-idea-profile-row .fmxext-idea-status--completed           { background: #ecfdf3; color: #067647; }
.fmxext-idea-profile-row .fmxext-idea-status--abandoned           { background: #fef3f2; color: #b42318; }

/* Row action buttons (view / edit / delete). Fixed width so the column stays
 * aligned regardless of how many actions a row has (right-aligned within it). */
.fmxext-blog-row-actions {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.4rem;
	flex: 0 0 118px;
	width: 118px;
}

.fmxext-blog-delete-form {
	margin: 0;
	display: inline-flex;
}

/* View/Edit are <a> elements; scope under #bbpress-forums so bbPress's
 * `#bbpress-forums a` rule can't strip the border (the <button> delete is fine
 * either way, but keeping one rule covers both). */
#bbpress-forums .fmxext-blog-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #fff;
	color: #667085;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#bbpress-forums .fmxext-blog-icon-btn:hover {
	background: #f9fafb;
	color: #101828;
	border-color: #d0d5dd;
}

.fmxext-blog-icon-btn svg {
	display: block;
	width: 16px;
	height: 16px;
}

#bbpress-forums .fmxext-blog-icon-btn--danger {
	color: #d92d20;
}

#bbpress-forums .fmxext-blog-icon-btn--danger:hover {
	background: #fef3f2;
	color: #b42318;
	border-color: #fecdca;
}

/* -------------------------------------------------------------------------
 * Replies-created list rows ("Replied to … / Accepted answer")
 * ---------------------------------------------------------------------- */
.fmxext-reply-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.4rem;
}

.fmxext-reply-to {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4rem;
	min-width: 0;
	font-size: 0.95rem;
	line-height: 1.4;
}

.fmxext-reply-to-icon {
	color: #98a2b3;
	flex: 0 0 auto;
	position: relative;
	top: 2px;
}

.fmxext-reply-to-icon svg {
	display: block;
}

.fmxext-reply-to-label {
	color: #667085;
	flex: 0 0 auto;
}

.fmxext-reply-to-title {
	color: #101828;
	font-weight: 700;
	transition: color 0.15s ease;
}

.fmxext-reply-row:hover .fmxext-reply-to-title {
	color: var(--fmxext-accent, #0e9384);
}

.fmxext-reply-accepted {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	flex: 0 0 auto;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: #ecfdf3;
	color: #067647;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.fmxext-reply-accepted svg {
	display: block;
}
