.lfp-panel-hub {
	--lfp-panel-orange: #f58220;
	--lfp-panel-ink: #171717;
	--lfp-panel-muted: #575757;
	--lfp-panel-line: #d9d9d9;
	color: var(--lfp-panel-ink);
}

.lfp-panel-hub__intro {
	margin: 0 0 28px;
}

.lfp-panel-hub__eyebrow {
	margin: 0 0 8px;
	color: var(--lfp-panel-orange);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.lfp-panel-hub__lead {
	max-width: 70ch;
	color: var(--lfp-panel-muted);
	font-size: 1.08rem;
}

.lfp-panel-hub__actions,
.lfp-panel-hub__usecases {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lfp-panel-hub__actions a,
.lfp-panel-hub__usecases a {
	border: 1px solid var(--lfp-panel-line);
	border-radius: 4px;
	padding: 9px 13px;
	color: var(--lfp-panel-ink);
	text-decoration: none;
}

.lfp-panel-hub__actions a:hover,
.lfp-panel-hub__usecases a:hover {
	border-color: var(--lfp-panel-orange);
}

.lfp-panel-hub__guide {
	margin: 22px 0;
	padding: 18px;
	border-left: 4px solid var(--lfp-panel-orange);
	background: #f7f7f7;
}

.lfp-panel-hub__stat {
	font-weight: 700;
}

.lfp-panel-hub__filters {
	margin: 28px 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #efd8c4;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 12px 40px rgb(91 48 10 / 8%);
	scroll-margin-top: 24px;
}

.lfp-panel-hub__filters *,
.lfp-panel-hub__filters *::before,
.lfp-panel-hub__filters *::after {
	box-sizing: border-box;
}

.lfp-panel-hub__filter-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 30px;
	border-bottom: 1px solid #f2dcc7;
	background: radial-gradient(circle at 94% 0, #ffcf84 0, transparent 42%), linear-gradient(115deg, #fff8ef, #ffebd4);
}

.lfp-panel-hub__filter-kicker {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 9px;
	color: #91410d;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .13em;
	line-height: 1.4;
	text-transform: uppercase;
}

.lfp-panel-hub__filter-kicker::before {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ef7919;
	box-shadow: 0 0 0 4px rgb(245 130 32 / 15%);
	content: "";
}

.lfp-panel-hub__filter-header h2 {
	margin: 0 0 8px;
	color: #202327;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.15;
}

.lfp-panel-hub__filter-intro {
	margin: 0;
	color: #634b38;
	font-size: 15px;
	line-height: 1.5;
}

.lfp-panel-hub__filter-art {
	flex: 0 0 152px;
	width: 152px;
	height: 112px;
	transform: rotate(-4deg);
}

.lfp-panel-hub__filter-body {
	padding: 26px 30px;
}

.lfp-panel-hub__filter-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: #252a2f;
	font-size: 17px;
	font-weight: 750;
	line-height: 1.4;
}

.lfp-panel-hub__filter-heading > span {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: #fff0df;
	color: #91410d;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .03em;
}

.lfp-panel-hub__filter-main,
.lfp-panel-hub__filter-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: end;
	gap: 18px;
}

.lfp-panel-hub__filter-main {
	grid-template-columns: 1fr 1fr 1.35fr;
}

.lfp-panel-hub__filter-more {
	margin-top: 24px;
	padding: 20px;
	border: 1px solid #f1e4d6;
	border-radius: 16px;
	background: #fffbf6;
}

.lfp-panel-hub__filter-more summary {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	padding-right: 30px;
	list-style: none;
	cursor: pointer;
}

.lfp-panel-hub__filter-more summary::-webkit-details-marker {
	display: none;
}

.lfp-panel-hub__filter-more summary::after {
	position: absolute;
	right: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid #ecd4bc;
	border-radius: 50%;
	color: #91410d;
	font-size: 22px;
	line-height: 1;
	content: "+";
}

.lfp-panel-hub__filter-more[open] summary::after {
	content: "−";
}

.lfp-panel-hub__filter-more .lfp-panel-hub__filter-heading {
	margin: 0;
}

.lfp-panel-hub__filter-summary {
	color: #6d5b4b;
	font-size: 13px;
	line-height: 1.5;
}

.lfp-panel-hub__filter-grid {
	margin-top: 20px;
}

.lfp-panel-hub__filter-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid #f1e4d6;
}

.lfp-panel-hub__filter-actions > a {
	color: #5c5148;
	font-size: 14px;
	font-weight: 600;
	text-underline-offset: 4px;
}

.lfp-panel-hub__filter-actions > a:hover {
	color: #91410d;
}

.lfp-panel-hub__filter-count {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 0 auto;
	color: #4c5359;
	font-size: 14px;
	font-weight: 600;
}

.lfp-panel-hub__filter-count-dot {
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e7791d;
	box-shadow: 0 0 0 4px #fff0df;
}

.lfp-panel-hub__active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.lfp-panel-hub__active-filters a {
	display: inline-block;
	max-width: 100%;
	padding: 7px 12px;
	border: 1px solid #f0c89e;
	border-radius: 18px;
	background: #fff5e9;
	color: #77390b;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.lfp-panel-hub__active-filters a:hover {
	border-color: #dc812d;
	background: #ffead0;
}

.lfp-panel-hub__filters label {
	display: grid;
	min-width: 0;
	gap: 8px;
	margin: 0;
	color: #40474d;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
}

.lfp-panel-hub__filters label.is-selected > span {
	color: #91410d;
}

.lfp-panel-hub .lfp-panel-hub__filters input,
.lfp-panel-hub__filters select {
	width: 100%;
	min-width: 0;
	min-height: 48px;
	max-width: 100%;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid #cbd0d3;
	border-radius: 11px;
	background: #fff;
	color: #252a2f;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	box-shadow: 0 2px 3px rgb(36 30 20 / 2%);
	transition: border-color .15s, box-shadow .15s;
}

.lfp-panel-hub__filters select {
	padding-right: 36px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23735b46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
}

.lfp-panel-hub__filters input::placeholder {
	color: #70777d;
	opacity: 1;
}

.lfp-panel-hub__filters label.is-selected input,
.lfp-panel-hub__filters label.is-selected select {
	border-color: #d87a2b;
	background-color: #fff8ed;
}

.lfp-panel-hub__filters input:hover,
.lfp-panel-hub__filters select:hover {
	border-color: #db8c45;
}

.lfp-panel-hub__filters input:focus,
.lfp-panel-hub__filters select:focus {
	border-color: #ca6c1c;
	box-shadow: 0 0 0 4px rgb(245 130 32 / 12%);
}

.lfp-panel-hub__filters button,
.lfp-panel-compare-tray button,
.lfp-panel-compare-dialog button {
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid var(--lfp-panel-ink);
	border-radius: 4px;
	background: var(--lfp-panel-ink);
	color: #fff;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.lfp-panel-hub__filters button:hover,
.lfp-panel-compare-tray button:hover,
.lfp-panel-compare-dialog button:hover {
	border-color: var(--lfp-panel-orange);
	background: var(--lfp-panel-orange);
	color: var(--lfp-panel-ink);
}

.lfp-panel-hub .lfp-panel-hub__filters button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 50px;
	padding: 13px 24px;
	border: 1px solid #ed841f;
	border-radius: 999px;
	background: linear-gradient(110deg, #ffb04d, #f58220);
	color: #24190f;
	font-size: 16px;
	font-weight: 750;
	line-height: 22px;
	text-decoration: none;
	box-shadow: 0 5px 12px rgb(229 115 15 / 18%);
	transition: box-shadow .15s, transform .15s;
}

.lfp-panel-hub .lfp-panel-hub__filters button.button:hover {
	border-color: #db761b;
	background: linear-gradient(110deg, #ffba65, #ff922f);
	color: #24190f;
	box-shadow: 0 7px 16px rgb(229 115 15 / 25%);
	transform: translateY(-1px);
}

.lfp-panel-hub .lfp-panel-hub__filters[data-auto-filter] button[type="submit"] {
	display: none;
}

.lfp-panel-hub__results {
	transition: opacity .15s ease;
	scroll-margin-top: 24px;
}

.lfp-panel-hub.is-filtering .lfp-panel-hub__results {
	opacity: .55;
}

.lfp-panel-hub.is-filtering .lfp-panel-hub__filter-count {
	cursor: progress;
}

.lfp-panel-hub :focus-visible,
.lfp-panel-compare-tray :focus-visible,
.lfp-panel-compare-dialog :focus-visible {
	outline: 3px solid var(--lfp-panel-orange);
	outline-offset: 3px;
}

.lfp-panel-compare {
	accent-color: var(--lfp-panel-orange);
}

.lfp-panel-compare-choice {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--lfp-panel-ink);
}

.lfp-panel-compare-choice[hidden] {
	display: none;
}

.lfp-panel-compare-tray {
	position: sticky;
	z-index: 20;
	bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	width: fit-content;
	max-width: min(100%, 900px);
	margin: 24px auto;
	padding: 12px 16px;
	border: 1px solid var(--lfp-panel-line);
	border-top: 3px solid var(--lfp-panel-orange);
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 3px 14px rgb(0 0 0 / 14%);
}

.lfp-panel-compare-tray[hidden] {
	display: none;
}

.lfp-panel-compare-tray__items {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lfp-panel-compare-tray__item {
	min-height: 32px !important;
	padding: 5px 8px !important;
	border-color: var(--lfp-panel-line) !important;
	background: #fff !important;
	color: var(--lfp-panel-ink) !important;
	font-size: .9rem !important;
}

.lfp-panel-compare-tray__item:hover {
	border-color: var(--lfp-panel-orange) !important;
	background: #fff !important;
}

.lfp-panel-compare-tray button:disabled {
	border-color: #aaa;
	background: #eee;
	color: #555;
	cursor: not-allowed;
}

.lfp-panel-compare-dialog {
	width: min(1100px, calc(100vw - 24px));
	max-width: 1100px;
	max-height: min(90vh, 900px);
	padding: 22px;
	border: 1px solid var(--lfp-panel-line);
	border-top: 5px solid var(--lfp-panel-orange);
	border-radius: 6px;
	color: var(--lfp-panel-ink);
}

.lfp-panel-compare-dialog::backdrop {
	background: rgb(0 0 0 / 55%);
}

.lfp-panel-compare-dialog__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

[data-compare-table] {
	max-width: 100%;
	margin-top: 18px;
	overflow-x: auto;
}

.lfp-panel-compare-table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	text-align: left;
}

.lfp-panel-compare-table th,
.lfp-panel-compare-table td {
	min-width: 130px;
	padding: 11px 12px;
	border: 1px solid var(--lfp-panel-line);
	vertical-align: top;
}

.lfp-panel-compare-table thead th {
	background: #f7f7f7;
}

.lfp-panel-compare-table tbody th {
	position: sticky;
	left: 0;
	background: #fff;
}

.lfp-panel-compare-table__image {
	display: block;
	width: min(150px, 100%);
	height: 110px;
	margin: 0 0 10px;
	object-fit: contain;
}

[data-compare-status] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (min-width: 641px) and (max-width: 960px) {
	.lfp-panel-hub__filter-main,
	.lfp-panel-hub__filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lfp-panel-hub__filter-main > label:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.lfp-panel-hub__filters {
		border-radius: 20px;
	}

	.lfp-panel-hub__filter-header {
		padding: 24px 20px;
	}

	.lfp-panel-hub__filter-art {
		display: none;
	}

	.lfp-panel-hub__filter-body {
		padding: 20px;
	}

	.lfp-panel-hub__filter-main,
	.lfp-panel-hub__filter-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.lfp-panel-hub__filter-more {
		margin-top: 22px;
		padding: 16px;
	}

	.lfp-panel-hub__filter-summary {
		flex-basis: 100%;
	}

	.lfp-panel-hub__filter-actions {
		gap: 18px 20px;
	}

	.lfp-panel-hub__filter-count {
		flex-basis: 100%;
		margin-left: 4px;
	}

	.lfp-panel-compare-tray {
		position: sticky;
		bottom: 4px;
		width: 100%;
		max-width: none;
		justify-content: space-between;
		padding: 10px;
	}

	.lfp-panel-compare-dialog {
		padding: 14px;
	}

	.lfp-panel-compare-table {
		min-width: 560px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lfp-panel-hub__results { transition: none; }
	.lfp-panel-hub__filters input,
	.lfp-panel-hub__filters select,
	.lfp-panel-hub .lfp-panel-hub__filters button.button {
		transition: none;
	}

	.lfp-panel-hub .lfp-panel-hub__filters button.button:hover {
		transform: none;
	}
}
