/* ==========================================================================
   GF Feedback Add-On – Frontend Board Styles
   Dual-mode (dark default, light toggle). Full-bleed container.
   ========================================================================== */

/* ---------- Dark Mode (default) ---------- */

.gf-fb {
	--gf-fb-bg: #0d1117;
	--gf-fb-surface: #161b22;
	--gf-fb-surface-hover: #1c2129;
	--gf-fb-border: rgba(255, 255, 255, 0.08);
	--gf-fb-border-strong: rgba(255, 255, 255, 0.13);
	--gf-fb-text: #e6edf3;
	--gf-fb-text-secondary: #9ca3af;
	--gf-fb-text-muted: #6b7280;
	--gf-fb-accent: #3b82f6;
	--gf-fb-accent-hover: #60a5fa;
	--gf-fb-card-bg: rgba(255, 255, 255, 0.04);
	--gf-fb-card-hover: rgba(255, 255, 255, 0.07);
	--gf-fb-card-radius: 12px;
	--gf-fb-vote-color: #9ca3af;
	--gf-fb-vote-active: #3b82f6;
	--gf-fb-vote-active-bg: rgba(59, 130, 246, 0.12);
	--gf-fb-status-open: #6b7280;
	--gf-fb-status-planned: #f59e0b;
	--gf-fb-status-assigned: #3b82f6;
	--gf-fb-status-completed: #10b981;
	--gf-fb-status-declined: #ef4444;
	--gf-fb-tag-color: #9ca3af;
	--gf-fb-sidebar-width: 240px;
	--gf-fb-radius: 8px;
	--gf-fb-speed: 0.15s ease;
}

/* ---------- Light Mode ---------- */

.gf-fb.gf-fb--light {
	--gf-fb-bg: #f8f9fb;
	--gf-fb-surface: #ffffff;
	--gf-fb-surface-hover: #f3f4f6;
	--gf-fb-border: rgba(0, 0, 0, 0.08);
	--gf-fb-border-strong: rgba(0, 0, 0, 0.13);
	--gf-fb-text: #111827;
	--gf-fb-text-secondary: #4b5563;
	--gf-fb-text-muted: #9ca3af;
	--gf-fb-accent: #2563eb;
	--gf-fb-accent-hover: #3b82f6;
	--gf-fb-card-bg: #ffffff;
	--gf-fb-card-hover: #f9fafb;
	--gf-fb-vote-color: #6b7280;
	--gf-fb-vote-active: #2563eb;
	--gf-fb-vote-active-bg: rgba(37, 99, 235, 0.08);
	--gf-fb-status-open: #9ca3af;
	--gf-fb-status-planned: #d97706;
	--gf-fb-status-assigned: #2563eb;
	--gf-fb-status-completed: #059669;
	--gf-fb-status-declined: #dc2626;
	--gf-fb-tag-color: #4b5563;
}

.gf-fb.gf-fb--light .gf-fb-card {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
	border-color: transparent;
}

.gf-fb.gf-fb--light .gf-fb-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
	border-color: transparent;
}

.gf-fb.gf-fb--light .gf-fb-search-input {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.12);
}

.gf-fb.gf-fb--light .gf-fb-vote-btn {
	border-color: rgba(0, 0, 0, 0.15);
}

/* ---------- Full-Bleed Container ---------- */

/* WordPress .alignfull handles max-width: none. Fallback + kill block gap. */
:where(.is-layout-constrained) > .gf-fb,
:where(.is-layout-flow) > .gf-fb {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-block-start: 0 !important;
}

.gf-fb {
	display: flex;
	gap: 40px;
	justify-content: center;
	padding: 48px 40px 64px;
	background: var(--gf-fb-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--gf-fb-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background 0.25s ease, color 0.25s ease;
}

.gf-fb *,
.gf-fb *::before,
.gf-fb *::after {
	box-sizing: border-box;
}

.gf-fb a { color: inherit; text-decoration: none; }
.gf-fb a:hover { color: inherit; text-decoration: none; }
.gf-fb ul, .gf-fb ol { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.gf-fb li { list-style: none !important; margin: 0 !important; padding: 0 !important; border: none !important; }
.gf-fb h1, .gf-fb h2, .gf-fb h3, .gf-fb h4 {
	font-family: inherit;
	color: var(--gf-fb-text);
	line-height: 1.3;
}
.gf-fb button { font-family: inherit; }

/* ---------- Inner max-width ---------- */

.gf-fb .gf-fb-sidebar {
	flex: 0 0 var(--gf-fb-sidebar-width);
	width: var(--gf-fb-sidebar-width);
	position: sticky;
	top: 32px;
	align-self: flex-start;
	max-width: var(--gf-fb-sidebar-width);
}

.gf-fb .gf-fb-main {
	flex: 1;
	min-width: 0;
	max-width: 820px;
}

/* ---------- Sidebar ---------- */

.gf-fb .gf-fb-sidebar-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 16px;
	background: var(--gf-fb-surface);
	border: 1px solid var(--gf-fb-border);
	border-radius: var(--gf-fb-radius);
	color: var(--gf-fb-text-secondary);
	font-size: 14px;
	cursor: pointer;
	transition: background var(--gf-fb-speed);
}

.gf-fb .gf-fb-sidebar-toggle:hover {
	background: var(--gf-fb-card-hover);
}

/* Clear filters */

.gf-fb .gf-fb-clear-filters {
	display: none;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 9px 12px;
	margin-bottom: 16px;
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.2);
	border-radius: var(--gf-fb-radius);
	color: #ef4444;
	font-size: 13px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background var(--gf-fb-speed), border-color var(--gf-fb-speed);
}

.gf-fb .gf-fb-clear-filters.is-visible {
	display: flex;
}

.gf-fb .gf-fb-clear-filters:hover {
	background: rgba(239, 68, 68, 0.14);
	border-color: rgba(239, 68, 68, 0.35);
}

.gf-fb .gf-fb-clear-filters-count {
	margin-left: auto;
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 10px;
	line-height: 1.5;
}

.gf-fb.gf-fb--light .gf-fb-clear-filters {
	background: rgba(220, 38, 38, 0.06);
	border-color: rgba(220, 38, 38, 0.18);
	color: #dc2626;
}

.gf-fb.gf-fb--light .gf-fb-clear-filters:hover {
	background: rgba(220, 38, 38, 0.1);
	border-color: rgba(220, 38, 38, 0.3);
}

.gf-fb.gf-fb--light .gf-fb-clear-filters-count {
	background: rgba(220, 38, 38, 0.1);
	color: #dc2626;
}

.gf-fb .gf-fb-search {
	position: relative;
	margin-bottom: 28px;
}

.gf-fb .gf-fb-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--gf-fb-text-muted);
	pointer-events: none;
}

.gf-fb .gf-fb-search-input {
	width: 100%;
	padding: 10px 14px 10px 38px;
	background: var(--gf-fb-surface);
	border: 1px solid var(--gf-fb-border);
	border-radius: var(--gf-fb-radius);
	color: var(--gf-fb-text);
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color var(--gf-fb-speed), background 0.25s ease;
}

.gf-fb .gf-fb-search-input::placeholder {
	color: var(--gf-fb-text-muted);
}

.gf-fb .gf-fb-search-input:focus {
	border-color: var(--gf-fb-accent);
}

.gf-fb .gf-fb-filter-section {
	margin-bottom: 28px;
}

.gf-fb .gf-fb-filter-heading {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gf-fb-text-muted);
	margin: 0 0 12px 0;
	padding: 0;
}

.gf-fb .gf-fb-filter-list li {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	list-style: none !important;
}

.gf-fb .gf-fb-filter-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 8px !important;
	border-radius: var(--gf-fb-radius);
	cursor: pointer;
	transition: background var(--gf-fb-speed);
	font-size: 14px;
	color: var(--gf-fb-text-secondary);
	margin-bottom: .25em;
}

.gf-fb .gf-fb-filter-item:hover {
	background: var(--gf-fb-card-bg);
	color: var(--gf-fb-text);
}

.gf-fb .gf-fb-filter-item.is-active {
	background: color-mix(in srgb, var(--gf-fb-accent) 12%, transparent);
	color: var(--gf-fb-accent);
	font-weight: 600;
}

.gf-fb .gf-fb-filter-item.is-active .gf-fb-filter-count {
	color: var(--gf-fb-accent);
}

.gf-fb .gf-fb-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex-shrink: 0;
}

.gf-fb .gf-fb-filter-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gf-fb .gf-fb-filter-label {
	flex: 1;
}

.gf-fb .gf-fb-filter-count {
	font-size: 13px;
	color: var(--gf-fb-text-muted);
	min-width: 22px;
	text-align: right;
}

.gf-fb .gf-fb-filter-icon {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	flex-shrink: 0;
	object-fit: contain;
}

/* ---------- Header ---------- */

.gf-fb .gf-fb-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 16px;
}

.gf-fb .gf-fb-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--gf-fb-text);
	margin: 0;
	padding: 0;
	letter-spacing: -0.01em;
}

.gf-fb .gf-fb-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Mode toggle */

.gf-fb .gf-fb-mode-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: var(--gf-fb-surface);
	border: 1px solid var(--gf-fb-border-strong);
	border-radius: var(--gf-fb-radius);
	color: var(--gf-fb-text-muted);
	cursor: pointer;
	transition: background var(--gf-fb-speed), color var(--gf-fb-speed), border-color var(--gf-fb-speed);
}

.gf-fb .gf-fb-mode-toggle:hover {
	color: var(--gf-fb-text);
	background: var(--gf-fb-card-hover);
}

.gf-fb .gf-fb-icon-sun { display: none; }
.gf-fb .gf-fb-icon-moon { display: block; }

.gf-fb.gf-fb--light .gf-fb-icon-sun { display: block; }
.gf-fb.gf-fb--light .gf-fb-icon-moon { display: none; }

.gf-fb .gf-fb-submit-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 22px;
	background: var(--gf-fb-accent);
	color: #fff !important;
	border: none;
	border-radius: var(--gf-fb-radius);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: background var(--gf-fb-speed);
	white-space: nowrap;
}

.gf-fb .gf-fb-submit-btn:hover {
	background: var(--gf-fb-accent-hover);
	color: #fff !important;
	text-decoration: none !important;
}

/* Sort tabs */

.gf-fb .gf-fb-sort {
	display: flex;
	gap: 0;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--gf-fb-border);
}

.gf-fb .gf-fb-sort-btn {
	padding: 12px 18px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--gf-fb-text-muted);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: color var(--gf-fb-speed), border-color var(--gf-fb-speed);
	margin-bottom: -1px;
	white-space: nowrap;
}

.gf-fb .gf-fb-sort-btn:hover {
	color: var(--gf-fb-text-secondary);
}

.gf-fb .gf-fb-sort-btn.is-active {
	color: var(--gf-fb-text);
	border-bottom-color: var(--gf-fb-accent);
	font-weight: 600;
}

/* ---------- Feedback Cards ---------- */

.gf-fb .gf-fb-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gf-fb .gf-fb-card {
	display: flex;
	gap: 18px;
	padding: 22px 24px;
	background: var(--gf-fb-card-bg);
	border: 1px solid var(--gf-fb-border);
	border-radius: var(--gf-fb-card-radius);
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	cursor: default;
}

.gf-fb .gf-fb-card:hover {
	background: var(--gf-fb-card-hover);
	border-color: var(--gf-fb-border-strong);
}

.gf-fb .gf-fb-card.is-hidden {
	display: none;
}

.gf-fb .gf-fb-card-vote {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	min-width: 52px;
}

.gf-fb .gf-fb-vote-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 32px;
	background: transparent;
	border: 1px solid var(--gf-fb-border-strong);
	border-radius: var(--gf-fb-radius);
	color: var(--gf-fb-vote-color);
	cursor: pointer;
	transition: all var(--gf-fb-speed);
	padding: 0;
	line-height: 1;
}

.gf-fb .gf-fb-vote-btn:hover {
	border-color: var(--gf-fb-accent);
	color: var(--gf-fb-accent);
	background: var(--gf-fb-vote-active-bg);
}

.gf-fb .has-voted .gf-fb-vote-btn {
	border-color: var(--gf-fb-vote-active);
	color: var(--gf-fb-vote-active);
	background: var(--gf-fb-vote-active-bg);
}

.gf-fb .gf-fb-vote-count {
	font-size: 22px;
	font-weight: 700;
	color: var(--gf-fb-text);
	line-height: 1.1;
	text-align: center;
	transition: transform 0.2s ease;
	letter-spacing: -0.02em;
}

.gf-fb .gf-fb-vote-count.is-animating {
	transform: scale(1.2);
}

.gf-fb .gf-fb-card-body {
	flex: 1;
	min-width: 0;
}

.gf-fb .gf-fb-card-link {
	text-decoration: none !important;
	color: inherit !important;
}

.gf-fb .gf-fb-card-link:hover .gf-fb-card-title {
	color: var(--gf-fb-accent-hover) !important;
}

.gf-fb .gf-fb-card-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--gf-fb-text);
	margin: 0 0 6px;
	padding: 0;
	line-height: 1.4;
	transition: color var(--gf-fb-speed);
}

.gf-fb .gf-fb-card-excerpt {
	font-size: 14px;
	color: var(--gf-fb-text-secondary);
	margin: 0 0 12px;
	padding: 0;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gf-fb .gf-fb-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--gf-fb-text-muted);
}

.gf-fb .gf-fb-card-sep {
	font-size: 6px;
	opacity: 0.5;
}

.gf-fb .gf-fb-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.gf-fb .gf-fb-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gf-fb .gf-fb-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	background: color-mix(in srgb, var(--gf-fb-tag-color) 12%, transparent);
	color: var(--gf-fb-tag-color);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	line-height: 1.4;
}

.gf-fb .gf-fb-tag--has-icon {
	background: transparent;
}

.gf-fb .gf-fb-tag-icon {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	flex-shrink: 0;
	object-fit: contain;
}

.gf-fb .gf-fb-card-end {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

/* Status badges */

.gf-fb .gf-fb-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	line-height: 1.4;
}

.gf-fb .gf-fb-status--planned {
	background: rgba(245, 158, 11, 0.15);
	color: var(--gf-fb-status-planned);
}

.gf-fb .gf-fb-status--assigned {
	background: rgba(59, 130, 246, 0.15);
	color: var(--gf-fb-status-assigned);
}

.gf-fb .gf-fb-status--completed {
	background: rgba(16, 185, 129, 0.15);
	color: var(--gf-fb-status-completed);
}

.gf-fb .gf-fb-status--declined {
	background: rgba(239, 68, 68, 0.15);
	color: var(--gf-fb-status-declined);
}

.gf-fb .gf-fb-status--open {
	background: rgba(107, 114, 128, 0.15);
	color: var(--gf-fb-status-open);
}

.gf-fb .gf-fb-card-comments {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--gf-fb-text-muted);
	font-size: 13px;
}

/* ---------- Empty / Error / Pagination ---------- */

.gf-fb .gf-fb-empty {
	text-align: center;
	padding: 60px 24px;
	color: var(--gf-fb-text-muted);
	font-size: 15px;
}

.gf-fb .gf-fb-error {
	text-align: center;
	padding: 24px;
	color: var(--gf-fb-status-declined);
}

.gf-fb .gf-fb-pagination {
	text-align: center;
	padding: 28px 0;
}

.gf-fb .gf-fb-load-more {
	padding: 12px 28px;
	background: var(--gf-fb-surface);
	border: 1px solid var(--gf-fb-border-strong);
	border-radius: var(--gf-fb-radius);
	color: var(--gf-fb-text-secondary);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background var(--gf-fb-speed), color var(--gf-fb-speed);
}

.gf-fb .gf-fb-load-more:hover {
	background: var(--gf-fb-card-hover);
	color: var(--gf-fb-text);
}

/* ---------- Single Feedback Overlay ---------- */

.gf-fb-single-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	justify-content: flex-end;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.gf-fb-single-overlay.is-open { opacity: 1; visibility: visible; }

/* Panel inherits mode from root */
.gf-fb .gf-fb-single-overlay { color: var(--gf-fb-text); }

.gf-fb .gf-fb-single-panel {
	width: 100%; max-width: 640px; height: 100%;
	background: var(--gf-fb-bg);
	border-left: 1px solid var(--gf-fb-border);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.25s ease;
}

.gf-fb .gf-fb-single-overlay.is-open .gf-fb-single-panel { transform: translateX(0); }

.gf-fb .gf-fb-single-close {
	position: sticky; top: 0; float: right; z-index: 2;
	width: 40px; height: 40px; margin: 16px;
	background: var(--gf-fb-surface);
	border: 1px solid var(--gf-fb-border);
	border-radius: 50%;
	color: var(--gf-fb-text-muted);
	font-size: 22px; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: background var(--gf-fb-speed);
}

.gf-fb .gf-fb-single-close:hover {
	background: var(--gf-fb-card-hover);
	color: var(--gf-fb-text);
}

.gf-fb .gf-fb-single-content { padding: 32px 36px; }

.gf-fb .gf-fb-single-header { display: flex; gap: 20px; margin-bottom: 24px; }

.gf-fb .gf-fb-single-vote {
	display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}

.gf-fb .gf-fb-single-vote .gf-fb-vote-btn {
	width: 52px; height: 38px;
}

.gf-fb .gf-fb-single-vote .gf-fb-vote-count {
	font-size: 26px;
}

.gf-fb .gf-fb-single-info { flex: 1; min-width: 0; }

.gf-fb .gf-fb-single-title {
	font-size: 22px; font-weight: 700; color: var(--gf-fb-text);
	margin: 0 0 8px; line-height: 1.3;
}

.gf-fb .gf-fb-single-meta { font-size: 14px; color: var(--gf-fb-text-muted); }

.gf-fb .gf-fb-single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* Completed link */

.gf-fb .gf-fb-completed-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	margin-bottom: 20px;
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.25);
	border-radius: var(--gf-fb-radius);
	color: var(--gf-fb-status-completed) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background var(--gf-fb-speed), border-color var(--gf-fb-speed);
}

.gf-fb .gf-fb-completed-link:hover {
	background: rgba(16, 185, 129, 0.18);
	border-color: rgba(16, 185, 129, 0.4);
	text-decoration: none !important;
}

.gf-fb .gf-fb-single-description {
	color: var(--gf-fb-text-secondary); font-size: 15px; line-height: 1.7;
	margin-bottom: 32px; padding-bottom: 24px;
	border-bottom: 1px solid var(--gf-fb-border);
}

.gf-fb .gf-fb-single-description p { margin: 0 0 14px; }

/* Comments */

.gf-fb .gf-fb-comments-heading {
	font-size: 16px; font-weight: 600; color: var(--gf-fb-text); margin: 0 0 20px;
}

.gf-fb .gf-fb-comments-list { display: flex; flex-direction: column; }

.gf-fb .gf-fb-comment {
	display: flex; gap: 14px; padding: 16px 0;
	border-top: 1px solid var(--gf-fb-border);
}

.gf-fb .gf-fb-comment:first-child { border-top: none; }

.gf-fb .gf-fb-comment-avatar {
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--gf-fb-surface); flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 14px; font-weight: 600; color: var(--gf-fb-text-secondary);
	text-transform: uppercase; overflow: hidden;
}

.gf-fb .gf-fb-comment-avatar-img {
	width: 36px; height: 36px; border-radius: 50%;
	object-fit: cover; display: block;
}

.gf-fb .gf-fb-comment-content { flex: 1; min-width: 0; }
.gf-fb .gf-fb-comment-author { font-size: 14px; font-weight: 600; color: var(--gf-fb-text); margin-bottom: 3px; }
.gf-fb .gf-fb-comment-body { font-size: 14px; color: var(--gf-fb-text-secondary); line-height: 1.55; margin-bottom: 6px; }
.gf-fb .gf-fb-comment-time { font-size: 12px; color: var(--gf-fb-text-muted); }

.gf-fb .gf-fb-comment-reply-btn {
	background: none; border: none; color: var(--gf-fb-text-muted);
	font-size: 12px; cursor: pointer; text-decoration: underline;
	padding: 0; margin-left: 10px; font-family: inherit;
}

.gf-fb .gf-fb-comment-reply-btn:hover { color: var(--gf-fb-text-secondary); }
.gf-fb .gf-fb-comment-replies { margin-left: 48px; }

/* Reply indicator */

.gf-fb .gf-fb-reply-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	margin-bottom: 10px;
	background: var(--gf-fb-vote-active-bg);
	border-left: 3px solid var(--gf-fb-accent);
	border-radius: 0 var(--gf-fb-radius) var(--gf-fb-radius) 0;
	font-size: 13px;
	color: var(--gf-fb-text-secondary);
}

.gf-fb .gf-fb-reply-indicator strong {
	color: var(--gf-fb-text);
}

.gf-fb .gf-fb-reply-cancel {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--gf-fb-text-muted);
	font-size: 16px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	font-family: inherit;
}

.gf-fb .gf-fb-reply-cancel:hover {
	color: var(--gf-fb-text);
}

/* Comment form */

.gf-fb .gf-fb-comment-form {
	margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gf-fb-border);
}

.gf-fb .gf-fb-comment-form-heading {
	font-size: 14px; font-weight: 600; color: var(--gf-fb-text); margin: 0 0 14px;
}

.gf-fb .gf-fb-comment-fields {
	display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;
}

.gf-fb .gf-fb-comment-name,
.gf-fb .gf-fb-comment-email,
.gf-fb .gf-fb-comment-text {
	width: 100%; padding: 10px 14px;
	background: var(--gf-fb-surface);
	border: 1px solid var(--gf-fb-border);
	border-radius: var(--gf-fb-radius);
	color: var(--gf-fb-text);
	font-size: 14px; font-family: inherit; outline: none;
	transition: border-color var(--gf-fb-speed);
	resize: vertical;
}

.gf-fb .gf-fb-comment-name::placeholder,
.gf-fb .gf-fb-comment-email::placeholder,
.gf-fb .gf-fb-comment-text::placeholder {
	color: var(--gf-fb-text-muted);
}

.gf-fb .gf-fb-comment-name:focus,
.gf-fb .gf-fb-comment-email:focus,
.gf-fb .gf-fb-comment-text:focus {
	border-color: var(--gf-fb-accent);
}

.gf-fb .gf-fb-comment-text { margin-bottom: 10px; }

.gf-fb .gf-fb-comment-submit {
	padding: 10px 22px; background: var(--gf-fb-accent); border: none;
	border-radius: var(--gf-fb-radius); color: #fff;
	font-size: 14px; font-weight: 600; font-family: inherit;
	cursor: pointer; transition: background var(--gf-fb-speed);
}

.gf-fb .gf-fb-comment-submit:hover { background: var(--gf-fb-accent-hover); }
.gf-fb .gf-fb-comment-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.gf-fb .gf-fb-comment-notice { margin-top: 10px; font-size: 13px; color: var(--gf-fb-status-planned); }

/* ---------- Loading ---------- */

.gf-fb .gf-fb-spinner {
	display: inline-block; width: 22px; height: 22px;
	border: 2px solid var(--gf-fb-border); border-top-color: var(--gf-fb-accent);
	border-radius: 50%; animation: gf-fb-spin 0.6s linear infinite;
}

@keyframes gf-fb-spin { to { transform: rotate(360deg); } }

.gf-fb .gf-fb-loading {
	display: flex; align-items: center; justify-content: center; padding: 40px;
}

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

@media (max-width: 768px) {
	.gf-fb {
		flex-direction: column;
		gap: 0;
		padding: 24px 16px 40px;
	}

	.gf-fb .gf-fb-sidebar {
		flex: none; width: 100%; max-width: 100%;
		position: static; margin-bottom: 20px;
	}

	.gf-fb .gf-fb-sidebar-toggle { display: flex; }

	.gf-fb .gf-fb-sidebar-inner { display: none; padding-top: 20px; }
	.gf-fb .gf-fb-sidebar-inner.is-open { display: block; }

	.gf-fb .gf-fb-header {
		flex-direction: column; gap: 14px; align-items: flex-start;
	}

	.gf-fb .gf-fb-sort {
		overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
	}

	.gf-fb .gf-fb-sort::-webkit-scrollbar { display: none; }
	.gf-fb .gf-fb-sort-btn { white-space: nowrap; padding: 10px 14px; }
	.gf-fb .gf-fb-card { padding: 16px; gap: 14px; }
	.gf-fb .gf-fb-main { max-width: 100%; }

	.gf-fb .gf-fb-single-panel { max-width: 100%; }
	.gf-fb .gf-fb-single-content { padding: 24px 20px; }
	.gf-fb .gf-fb-comment-fields { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.gf-fb .gf-fb-card-vote { min-width: 40px; }
	.gf-fb .gf-fb-vote-count { font-size: 18px; }
	.gf-fb .gf-fb-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}
